Remove info_terminal_command declaration, make definition static
[binutils-gdb.git] / gdb / ChangeLog
1 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * inferior.h (info_terminal_command): Remove declaration.
4 * inflow.c (info_terminal_command): Make static.
5
6 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
7
8 * inferior.c (exit_inferior_silent): Remove.
9
10 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
11
12 * dictionary.c (dict_empty, mdict_empty): Remove.
13 * dictionary.c (mdict_empty): Remove.
14
15 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
16
17 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
18 (arc_insn_get_memory_offset): Likewise.
19 (arc_insn_dump): Likewise.
20 * cp-support.c (test_cp_symbol_name_matches): Likewise.
21 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
22 * dictionary.c (dict_iterator_next): Likewise.
23 (dict_iter_match_first): Likewise.
24 (dict_iter_match_next): Likewise.
25 * f-lang.c (evaluate_subexp_f): Likewise.
26 * hppa-tdep.c (hppa_read_pc): Likewise.
27 * i386-tdep.c (i386_floatformat_for_type): Likewise.
28 * parse.c (write_exp_elt_msym): Likewise.
29 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
30 * remote.c (remote_packet_size): Likewise.
31 (remote_notif_stop_parse): Likewise.
32 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
33 * s12z-tdep.c (s12z_disassemble_info): Likewise.
34 * source.c (prepare_path_for_appending): Likewise.
35 * sparc64-linux-tdep.c
36 (sparc64_linux_handle_segmentation_fault); Likewise.
37 * stack.c (frame_selection_by_function_completer): Likewise.
38
39 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
40
41 * completer.c (set_gdb_completion_word_break_characters):
42 Remove.
43
44 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
45
46 * dwarf-index-write.c: Include dwarf-index-write.h.
47 * mi/mi-interp.c: Include mi/mi-interp.h.
48
49 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
50
51 * aarch32-tdep.c: Include aarch32-tdep.h.
52 * aarch32-tdep.h: Forward-declare struct target_desc.
53
54 2019-11-26 Christian Biesinger <cbiesinger@google.com>
55
56 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
57 strerror.
58 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
59 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
60
61 2019-11-25 Tom de Vries <tdevries@suse.de>
62
63 * contrib/words.sh: Add -c option.
64
65 2019-11-25 Christian Biesinger <cbiesinger@google.com>
66
67 * solib.c (solib_find_1): Change int to bool.
68 (exec_file_find): Change int to bool.
69 (solib_find): Change int to bool.
70 (solib_read_symbols): Change int to bool.
71 (solib_used): Change int to bool.
72 (solib_add): Change int to bool.
73 (info_sharedlibrary_command): Change int to bool.
74 (solib_contains_address_p): Change int to bool.
75 (solib_keep_data_in_core): Change int to bool.
76 (in_solib_dynsym_resolve_code): Change int to bool.
77 (reload_shared_libraries_1): Change int to bool.
78 (gdb_sysroot_changed): Change int to bool.
79 * solib.h (solib_read_symbols): Change int to bool.
80 (solib_contains_address_p): Change int to bool.
81 (solib_keep_data_in_core): Change int to bool.
82 (in_solib_dynsym_resolve_code): Change int to bool.
83 (libpthread_name_p): Change int to bool.
84
85 2019-11-25 Luis Machado <luis.machado@linaro.org>
86
87 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
88 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
89 (remote_packet_max_chars): New static global.
90 (show_remote_packet_max_chars): New function.
91 (remote_target::putpkt_binary): Adjust to use new
92 remote_packet_max_chars option.
93 (remote_target::getpkt_or_notif_sane_1): Likewise.
94 (_initialize_remote): Register new remote-packet-max-chars option.
95
96 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
97
98 * m68k-linux-nat.c: Include gdbarch.h.
99
100 2019-11-24 Tom Tromey <tom@tromey.com>
101
102 * symfile.c (read_symbols): Update.
103 * psymtab.c (require_partial_symbols): Change type of "verbose" to
104 bool.
105 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
106 (psym_lookup_symbol, psym_find_last_source_symtab)
107 (psym_forget_cached_source_info, psym_print_stats)
108 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
109 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
110 (psym_map_matching_symbols, psym_expand_symtabs_matching)
111 (psym_find_compunit_symtab_by_address)
112 (maintenance_print_psymbols, maintenance_info_psymtabs)
113 (maintenance_check_psymtabs): Update.
114 * psymtab.h (require_partial_symbols): Change type of "verbose" to
115 bool.
116
117 2019-11-22 Tom Tromey <tom@tromey.com>
118
119 * observable.h: Update comments.
120
121 2019-11-22 Tom Tromey <tromey@adacore.com>
122
123 * ada-tasks.c (ada_task_is_alive): Make parameter const.
124 (print_ada_task_info): Don't try to fetch thread id if task is not
125 alive.
126
127 2019-11-22 Christian Biesinger <cbiesinger@google.com>
128
129 * ada-exp.y: Update.
130 * ada-lang.c (sort_choices): Update.
131 (ada_print_symbol_signature): Update.
132 (resolve_subexp): Update.
133 (ada_parse_renaming): Update.
134 (ada_read_renaming_var_value): Update.
135 (lesseq_defined_than): Update.
136 (remove_extra_symbols): Update.
137 (remove_irrelevant_renamings): Update.
138 (ada_add_block_symbols): Update.
139 (ada_collect_symbol_completion_matches): Update.
140 (ada_is_renaming_symbol): Update.
141 (aggregate_assign_from_choices): Update.
142 (ada_evaluate_subexp): Update.
143 (ada_has_this_exception_support): Update.
144 (ada_is_non_standard_exception_sym): Update.
145 (ada_add_exceptions_from_frame): Update.
146 (ada_add_global_exceptions): Update.
147 (ada_print_subexp): Update.
148 * ax-gdb.c (gen_var_ref): Update.
149 (gen_maybe_namespace_elt): Update.
150 (gen_expr_for_cast): Update.
151 (gen_expr): Update.
152 * block.h: Update.
153 * blockframe.c (find_pc_partial_function): Update.
154 * breakpoint.c (print_breakpoint_location): Update.
155 (update_static_tracepoint): Update.
156 * btrace.c (ftrace_print_function_name): Update.
157 (ftrace_function_switched): Update.
158 * buildsym.c (find_symbol_in_list): Update.
159 * c-exp.y: Update.
160 * c-typeprint.c (c_print_typedef): Update.
161 (c_type_print_template_args): Update.
162 * cli/cli-cmds.c (edit_command): Update.
163 (list_command): Update.
164 (print_sal_location): Update.
165 * coffread.c (patch_opaque_types): Update.
166 (process_coff_symbol): Update.
167 (coff_read_enum_type): Update.
168 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
169 (convert_one_symbol): Update.
170 (hash_symname): Update.
171 (eq_symname): Update.
172 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
173 * compile/compile-cplus-types.c (debug_print_scope): Update.
174 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
175 * compile/compile-object-load.c (get_out_value_type): Update.
176 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
177 (search_symbol_list): Update.
178 (cp_lookup_symbol_imports_or_template): Update.
179 * cp-support.c (overload_list_add_symbol): Update.
180 * ctfread.c (psymtab_to_symtab): Update.
181 * dbxread.c (cp_set_block_scope): Update.
182 * dictionary.c (iter_match_first_hashed): Update.
183 (iter_match_next_hashed): Update.
184 (insert_symbol_hashed): Update.
185 (iter_match_next_linear): Update.
186 * dictionary.h: Update.
187 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
188 (locexpr_describe_location_piece): Update.
189 (locexpr_describe_location_1): Update.
190 (locexpr_generate_c_location): Update.
191 (loclist_describe_location): Update.
192 (loclist_generate_c_location): Update.
193 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
194 (read_func_scope): Update.
195 (process_enumeration_scope): Update.
196 (new_symbol): Update.
197 (dwarf2_const_value): Update.
198 (dwarf2_symbol_mark_computed): Update.
199 * eval.c (evaluate_funcall): Update.
200 (evaluate_subexp_standard): Update.
201 * expprint.c (print_subexp_standard): Update.
202 (dump_subexp_body_standard): Update.
203 * f-valprint.c (info_common_command_for_block): Update.
204 * findvar.c (get_hosting_frame): Update.
205 (default_read_var_value): Update.
206 * go-lang.c (go_symbol_package_name): Update.
207 * guile/scm-block.c (bkscm_print_block_smob): Update.
208 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
209 (gdbscm_symbol_name): Update.
210 (gdbscm_symbol_linkage_name): Update.
211 (gdbscm_symbol_print_name): Update.
212 * infcall.c (get_function_name): Update.
213 * infcmd.c (jump_command): Update.
214 (finish_command): Update.
215 * infrun.c (insert_exception_resume_breakpoint): Update.
216 * linespec.c (canonicalize_linespec): Update.
217 (create_sals_line_offset): Update.
218 (convert_linespec_to_sals): Update.
219 (complete_label): Update.
220 (find_label_symbols_in_block): Update.
221 * m2-typeprint.c (m2_print_typedef): Update.
222 * mdebugread.c (mdebug_reg_to_regnum): Update.
223 (parse_symbol): Update.
224 (mylookup_symbol): Update.
225 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
226 (list_args_or_locals): Update.
227 * objc-lang.c (compare_selectors): Update.
228 (info_selectors_command): Update.
229 (compare_classes): Update.
230 (info_classes_command): Update.
231 (find_imps): Update.
232 * p-typeprint.c (pascal_print_typedef): Update.
233 * printcmd.c (build_address_symbolic): Update.
234 (info_address_command): Update.
235 (print_variable_and_value): Update.
236 * python/py-framefilter.c (extract_sym): Update.
237 (py_print_single_arg): Update.
238 * python/py-symbol.c (sympy_str): Update.
239 (sympy_get_name): Update.
240 (sympy_get_linkage_name): Update.
241 * python/python.c (gdbpy_rbreak): Update.
242 * record-btrace.c (btrace_get_bfun_name): Update.
243 (btrace_call_history): Update.
244 * rust-lang.c (rust_print_typedef): Update.
245 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
246 * stabsread.c (stab_reg_to_regnum): Update.
247 (define_symbol): Update.
248 (read_enum_type): Update.
249 (common_block_end): Update.
250 (cleanup_undefined_types_1): Update.
251 (scan_file_globals): Update.
252 * stack.c (print_frame_arg): Update.
253 (print_frame_args): Update.
254 (find_frame_funname): Update.
255 (info_frame_command_core): Update.
256 (iterate_over_block_locals): Update.
257 (print_block_frame_labels): Update.
258 (do_print_variable_and_value): Update.
259 (iterate_over_block_arg_vars): Update.
260 (return_command): Update.
261 * symmisc.c (dump_symtab_1): Update.
262 (print_symbol): Update.
263 * symtab.c (eq_symbol_entry): Update.
264 (symbol_cache_dump): Update.
265 (lookup_language_this): Update.
266 (find_pc_sect_line): Update.
267 (skip_prologue_sal): Update.
268 (symbol_search::compare_search_syms): Update.
269 (treg_matches_sym_type_name): Update.
270 (search_symbols): Update.
271 (print_symbol_info): Update.
272 (rbreak_command): Update.
273 (completion_list_add_symbol): Update.
274 (find_gnu_ifunc): Update.
275 (get_symbol_address): Update.
276 (search_module_symbols): Update.
277 (info_module_subcommand): Update.
278 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
279 (SYMBOL_LINKAGE_NAME): Remove.
280 (SYMBOL_DEMANGLED_NAME): Remove.
281 (SYMBOL_PRINT_NAME): Remove.
282 (SYMBOL_SEARCH_NAME): Remove.
283 * tracepoint.c (set_traceframe_context): Update.
284 (validate_actionline): Update.
285 (collection_list::collect_symbol): Update.
286 (encode_actions_1): Update.
287 (info_scope_command): Update.
288 (print_one_static_tracepoint_marker): Update.
289 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
290 * valops.c (address_of_variable): Update.
291 (find_overload_match): Update.
292 (find_oload_champ): Update.
293
294 2019-11-22 Christian Biesinger <cbiesinger@google.com>
295
296 * ada-lang.c (ada_lookup_simple_minsym): Update.
297 (ada_collect_symbol_completion_matches): Update.
298 * ada-tasks.c (read_atcb): Update.
299 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
300 (amd64_windows_skip_trampoline_code): Update.
301 * arm-tdep.c (skip_prologue_function): Update.
302 (arm_skip_stack_protector): Update.
303 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
304 (arm_wince_skip_main_prologue): Update.
305 * ax-gdb.c (gen_expr): Update.
306 * block.c (call_site_for_pc): Update.
307 * blockframe.c (find_pc_partial_function): Update.
308 * breakpoint.c (set_breakpoint_location_function): Update.
309 * btrace.c (ftrace_print_function_name): Update.
310 (ftrace_function_switched): Update.
311 * c-valprint.c (print_unpacked_pointer): Update.
312 * coffread.c (coff_symfile_read): Update.
313 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
314 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
315 * dwarf-index-write.c (write_psymbols): Update.
316 * dwarf2loc.c (call_site_to_target_addr): Update.
317 (func_verify_no_selftailcall): Update.
318 (tailcall_dump): Update.
319 (call_site_find_chain_1): Update.
320 (dwarf_expr_reg_to_entry_parameter): Update.
321 * elfread.c (elf_gnu_ifunc_record_cache): Update.
322 * eval.c (evaluate_funcall): Update.
323 (evaluate_subexp_standard): Update.
324 (evaluate_subexp_for_sizeof): Update.
325 * expprint.c (print_subexp_standard): Update.
326 (dump_subexp_body_standard): Update.
327 * frame.c (get_prev_frame_always_1): Update.
328 * frv-tdep.c (frv_skip_main_prologue): Update.
329 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
330 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
331 (gnuv3_get_typename_from_type_info): Update.
332 (gnuv3_skip_trampoline): Update.
333 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
334 * i386-tdep.c (i386_skip_main_prologue): Update.
335 (i386_pe_skip_trampoline_code): Update.
336 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
337 * infcall.c (get_function_name): Update.
338 * linespec.c (minsym_found): Update.
339 * linux-fork.c (info_checkpoints_command): Update.
340 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
341 (m32c_m16c_pointer_to_address): Update.
342 * maint.c (maintenance_translate_address): Update.
343 * minsyms.c (add_minsym_to_hash_table): Update.
344 (add_minsym_to_demangled_hash_table): Update.
345 (lookup_minimal_symbol_mangled): Update.
346 (lookup_minimal_symbol_demangled): Update.
347 (lookup_minimal_symbol_linkage): Update.
348 (lookup_minimal_symbol_text): Update.
349 (lookup_minimal_symbol_by_pc_name): Update.
350 (minimal_symbol_is_less_than): Update.
351 (compact_minimal_symbols): Update.
352 (build_minimal_symbol_hash_tables): Update.
353 (find_solib_trampoline_target): Update.
354 * mips-tdep.c (mips_stub_frame_sniffer): Update.
355 (mips_skip_pic_trampoline_code): Update.
356 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
357 * objc-lang.c (info_selectors_command): Update.
358 (info_classes_command): Update.
359 (find_methods): Update.
360 (find_imps): Update.
361 * p-valprint.c (pascal_val_print): Update.
362 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
363 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
364 * printcmd.c (build_address_symbolic): Update.
365 (info_symbol_command): Update.
366 * psymtab.c (psymbol_name_matches): Update.
367 (match_partial_symbol): Update.
368 (lookup_partial_symbol): Update.
369 (print_partial_symbols): Update.
370 (sort_pst_symbols): Update.
371 (maintenance_check_psymtabs): Update.
372 * python/py-framefilter.c (py_print_frame): Update.
373 * python/python.c (gdbpy_rbreak): Update.
374 * record-btrace.c (btrace_get_bfun_name): Update.
375 (btrace_call_history): Update.
376 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
377 (rs6000_skip_trampoline_code): Update.
378 * sol-thread.c (info_cb): Update.
379 * stabsread.c (scan_file_globals): Update.
380 * stack.c (find_frame_funname): Update.
381 (info_frame_command_core): Update.
382 * symmisc.c (dump_msymbols): Update.
383 * symtab.c (symbol_natural_name): Rename to..,
384 (general_symbol_info::natural_name): ...this.
385 (symbol_demangled_name): Rename to...
386 (general_symbol_info::demangled_name): ...this.
387 (symbol_search_name): Rename to...
388 (general_symbol_info::search_name): ...this.
389 (symbol_matches_search_name): Update.
390 (find_pc_sect_line): Update.
391 (skip_prologue_sal): Update.
392 (search_symbols): Update.
393 (print_msymbol_info): Update.
394 (rbreak_command): Update.
395 (completion_list_add_msymbol): Update.
396 (completion_list_objc_symbol): Update.
397 (get_msymbol_address): Update.
398 * symtab.h (struct general_symbol_info): Add member functions
399 natural_name (), linkage_name (), print_name (), demangled_name (),
400 and search_name ().
401 (SYMBOL_NATURAL_NAME): Update.
402 (symbol_natural_name): Move to a member function on general_symbol_info.
403 (SYMBOL_DEMANGLED_NAME): Update.
404 (symbol_demangled_name): Move to a member function on
405 general_symbol_info.
406 (SYMBOL_SEARCH_NAME): Update.
407 (symbol_search_name): Move to a member function on general_symbol_info.
408 (MSYMBOL_NATURAL_NAME): Remove.
409 (MSYMBOL_LINKAGE_NAME): Remove.
410 (MSYMBOL_PRINT_NAME): Remove.
411 (MSYMBOL_DEMANGLED_NAME): Remove.
412 (MSYMBOL_SEARCH_NAME): Remove.
413 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
414
415 2019-11-22 Christian Biesinger <cbiesinger@google.com>
416
417 * symtab.c (create_demangled_names_hash): Use per_bfd->
418 minimal_symbol_count for computing the initial size, if greater
419 than our default size.
420
421 2019-11-22 Tom de Vries <tdevries@suse.de>
422
423 * contrib/words.sh: Improve words extraction.
424
425 2019-11-22 Tom de Vries <tdevries@suse.de>
426
427 * contrib/words.sh: Combine sed invocations.
428
429 2019-11-21 Christian Biesinger <cbiesinger@google.com>
430
431 * Makefile.in: Update.
432 * demangle.c: Rename to...
433 * gdb-demangle.c: ..this.
434 (is_cplus_marker): Change return type to bool.
435 (_initialize_demangler): Rename to...
436 (_initialize_gdb_demangle): ...this.
437 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
438 * symtab.h (demangle): Remove declaration; instead include
439 gdb-demangle.h.
440
441 2019-11-21 Tom Tromey <tromey@adacore.com>
442
443 * gdbsupport/format.c (format_pieces): Parse %I64d.
444 * unittests/format_pieces-selftests.c (test_windows_formats): New
445 function.
446 (run_tests): Call it.
447
448 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
449
450 Byte reverse display of variables with DW_END_big, DW_END_little
451 (DW_AT_endianity) dwarf attributes if different than the native
452 byte order.
453 * ada-lang.c (ada_value_binop):
454 Use type_byte_order instead of gdbarch_byte_order.
455 * ada-valprint.c (printstr):
456 (ada_val_print_string):
457 * ada-lang.c (value_pointer):
458 (ada_value_binop):
459 Use type_byte_order instead of gdbarch_byte_order.
460 * c-lang.c (c_get_string):
461 Use type_byte_order instead of gdbarch_byte_order.
462 * c-valprint.c (c_val_print_array):
463 Use type_byte_order instead of gdbarch_byte_order.
464 * cp-valprint.c (cp_print_class_member):
465 Use type_byte_order instead of gdbarch_byte_order.
466 * dwarf2loc.c (rw_pieced_value):
467 Use type_byte_order instead of gdbarch_byte_order.
468 * dwarf2read.c (read_base_type): Handle DW_END_big,
469 DW_END_little
470 * f-lang.c (f_get_encoding):
471 Use type_byte_order instead of gdbarch_byte_order.
472 * findvar.c (default_read_var_value):
473 Use type_byte_order instead of gdbarch_byte_order.
474 * gdbtypes.c (check_types_equal):
475 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
476 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
477 and TYPE_ENDIANITY_LITTLE if set.
478 (type_byte_order): new function.
479 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
480 (struct main_type) <flag_endianity_not_default>:
481 New field.
482 (type_byte_order): New function.
483 * infcmd.c (default_print_one_register_info):
484 Use type_byte_order instead of gdbarch_byte_order.
485 * p-lang.c (pascal_printstr):
486 Use type_byte_order instead of gdbarch_byte_order.
487 * p-valprint.c (pascal_val_print):
488 Use type_byte_order instead of gdbarch_byte_order.
489 * printcmd.c (print_scalar_formatted):
490 Use type_byte_order instead of gdbarch_byte_order.
491 * solib-darwin.c (darwin_current_sos):
492 Use type_byte_order instead of gdbarch_byte_order.
493 * solib-svr4.c (solib_svr4_r_ldsomap):
494 Use type_byte_order instead of gdbarch_byte_order.
495 * stap-probe.c (stap_modify_semaphore):
496 Use type_byte_order instead of gdbarch_byte_order.
497 * target-float.c (target_float_same_format_p):
498 Use type_byte_order instead of gdbarch_byte_order.
499 * valarith.c (scalar_binop):
500 (value_bit_index):
501 Use type_byte_order instead of gdbarch_byte_order.
502 * valops.c (value_cast):
503 Use type_byte_order instead of gdbarch_byte_order.
504 * valprint.c (generic_emit_char):
505 (generic_printstr):
506 (val_print_string):
507 Use type_byte_order instead of gdbarch_byte_order.
508 * value.c (unpack_long):
509 (unpack_bits_as_long):
510 (unpack_value_bitfield):
511 (modify_field):
512 (pack_long):
513 (pack_unsigned_long):
514 Use type_byte_order instead of gdbarch_byte_order.
515 * findvar.c (unsigned_pointer_to_address):
516 (signed_pointer_to_address):
517 (unsigned_address_to_pointer):
518 (address_to_signed_pointer):
519 (default_read_var_value):
520 (default_value_from_register):
521 Use type_byte_order instead of gdbarch_byte_order.
522 * gnu-v3-abi.c (gnuv3_make_method_ptr):
523 Use type_byte_order instead of gdbarch_byte_order.
524 * riscv-tdep.c (riscv_print_one_register_info):
525 Use type_byte_order instead of gdbarch_byte_order.
526
527 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
530 (current_ui_gdb_stdin_ptr): Likewise.
531 (current_ui_gdb_stderr_ptr): Likewise.
532 (current_ui_gdb_stdlog_ptr): Likewise.
533 (current_ui_current_uiout_ptr): Likewise.
534 (gen_ret_current_ui_field_ptr): Remove.
535
536 2019-11-21 Tom de Vries <tdevries@suse.de>
537
538 PR gdb/24956
539 * cli/cli-script.c (execute_control_command): Only switch to
540 INTERP_CONSOLE's ui_out when INTERP_MI is active.
541
542 2019-11-19 Tom Tromey <tom@tromey.com>
543
544 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
545 Now static. Change type of "name".
546 (tui_set_win_height_command): Don't copy "arg".
547 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
548 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
549
550 2019-11-19 Ali Tamur <tamur@google.com>
551
552 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
553 "if (attr != nullptr)".
554 (dwarf2_find_base_address): Likewise.
555 (dwarf2_build_include_psymtabs): Likewise.
556 (read_cutu_die_from_dwo): Likewise.
557 (read_func_scope): Likewise.
558 (read_call_site_scope): Likewise.
559 (dwarf2_get_pc_bounds): Likewise.
560 (dwarf2_record_block_ranges): Likewise.
561 (dwarf2_add_field): Likewise.
562 (dwarf2_add_member_fn): Likewise.
563 (read_structure_type): Likewise.
564 (read_enumeration_type): Likewise.
565 (read_array_type): Likewise.
566 (read_array_order): Likewise.
567 (read_set_type): Likewise.
568 (read_common_block): Likewise.
569 (read_tag_reference_type): Likewise.
570 (read_tag_string_type): Likewise.
571 (read_subroutine_type): Likewise.
572 (read_base_type): Likewise.
573 (read_subrange_type): Likewise.
574 (new_symbol): Likewise.
575 (prepare_one_comp_unit): Likewise.
576
577 2019-11-19 Tom Tromey <tromey@adacore.com>
578
579 * windows-nat.c (windows_nat_target::attach): Include GetLastError
580 result in error when DebugActiveProcess fails.
581
582 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
583 Pedro Alves <palves@redhat.com>
584
585 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
586 * target.c (target_stack::push): Call 'unpush' if there's a
587 target on top of the stack.
588
589 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
590
591 * python/py-block.c (blpy_dealloc): Call tp_free.
592 (blpy_block_syms_dealloc): Likewise.
593 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
594 * python/py-inferior.c (infpy_dealloc): Likewise.
595 * python/py-lazy-string.c (stpy_dealloc): Likewise.
596 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
597 * python/py-symbol.c (sympy_dealloc): Likewise.
598 * python/py-symtab.c (stpy_dealloc): Likewise.
599 * python/py-type.c (typy_iterator_dealloc): Likewise.
600
601 2019-11-18 Christian Biesinger <cbiesinger@google.com>
602
603 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
604 constructor instead of using a class initializer.
605
606 2019-11-15 Christian Biesinger <cbiesinger@google.com>
607
608 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
609 * configure: Regenerate.
610 * configure.ac: Don't source common.host.
611 * gdbsupport/common.host: Remove.
612 * gdbsupport/mingw-strerror.c: Remove.
613 * gdbsupport/posix-strerror.c: Rename to...
614 * gdbsupport/safe-strerror.c: ...this.
615
616 2019-11-15 Christian Biesinger <cbiesinger@google.com>
617
618 * maint.c (scoped_command_stats::print_time): Use localtime_r
619 instead of localtime (provided through gnulib if necessary).
620 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
621 of ctime.
622
623 2019-11-15 Christian Biesinger <cbiesinger@google.com>
624
625 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
626 avoid compile errors.
627
628 2019-11-15 Christian Biesinger <cbiesinger@google.com>
629
630 * config.in: Regenerate.
631 * configure: Regenerate.
632 * gdbsupport/common.m4: No longer check for strerror_r.
633 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
634 POSIX version of strerror_r, now that gnulib provides it if
635 necessary.
636
637 2019-11-14 Christian Biesinger <cbiesinger@google.com>
638
639 * README (`configure' options): Update.
640
641 2019-11-14 Tom Tromey <tromey@adacore.com>
642
643 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
644 expected type for the RHS if the LHS is a convenience variable.
645
646 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
649 Provide explicit default and copy constructor.
650
651 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
652
653 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
654 only call Py_INCREF (newbp) in the bppy_pending_object case.
655
656 2019-11-13 Tom Tromey <tromey@adacore.com>
657
658 PR build/25182:
659 * psympriv.h (partial_symbol): Remove static assert.
660 * symtab.h (general_symbol_info, symbol): Remove static assert.
661
662 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * gdbsupport/format.c (format_pieces::format_pieces): Support
665 printf 'z' size modifier.
666 * gdbsupport/format.h (enum argclass): Add size_t_arg.
667 * printcmd.c (ui_printf): Handle size_t_arg.
668 * ui-out.c (ui_out::vmessage): Likewise.
669 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
670 function.
671 (run_tests): Call test_format_int_sizes.
672
673 2019-11-12 Christian Biesinger <cbiesinger@google.com>
674
675 * ada-exp.y (write_ambiguous_var): Update.
676 * buildsym.c (add_symbol_to_list): Update.
677 * dwarf2read.c (read_variable): Update.
678 (new_symbol): Update.
679 * jit.c (finalize_symtab): Update.
680 * language.c (language_alloc_type_symbol): Update.
681 * symtab.c (fixup_symbol_section): Update.
682 (initialize_objfile_symbol_1): Move code to...
683 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
684 (allocate_symbol): Update.
685 (allocate_template_symbol): Update.
686 (get_symbol_address): Update.
687 * symtab.h (struct symbol): Inherit from general_symbol_info instead
688 of having as a field, and add a constructor.
689 (SYMBOL_VALUE): Update.
690 (SYMBOL_VALUE_ADDRESS): Update.
691 (SET_SYMBOL_VALUE_ADDRESS): Update.
692 (SYMBOL_VALUE_BYTES): Update.
693 (SYMBOL_VALUE_COMMON_BLOCK): Update.
694 (SYMBOL_BLOCK_VALUE): Update.
695 (SYMBOL_VALUE_CHAIN): Update.
696 (SYMBOL_LANGUAGE): Update.
697 (SYMBOL_SECTION): Update.
698 (SYMBOL_OBJ_SECTION): Update.
699 (SYMBOL_SET_LANGUAGE): Update.
700 (SYMBOL_SET_LINKAGE_NAME): Update.
701 (SYMBOL_SET_NAMES): Update.
702 (SYMBOL_NATURAL_NAME): Update.
703 (SYMBOL_LINKAGE_NAME): Update.
704 (SYMBOL_DEMANGLED_NAME): Update.
705 (SYMBOL_SEARCH_NAME): Update.
706 (SYMBOL_MATCHES_SEARCH_NAME): Update.
707 (struct symbol): Update.
708 (struct template_symbol): Update.
709 (struct rust_vtable_symbol): Update.
710 * xcoffread.c (SYMBOL_DUP): Update.
711
712 2019-11-12 Tom Tromey <tom@tromey.com>
713
714 * tui/tui-layout.c (show_layout): Set current_layout.
715 (show_source_disasm_command, show_data)
716 (show_source_or_disasm_and_command): Don't set current_layout.
717
718 2019-11-12 Tom Tromey <tom@tromey.com>
719
720 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
721
722 2019-11-12 Tom Tromey <tom@tromey.com>
723
724 * tui/tui-win.c (resize_message): New global.
725 (show_tui_resize_message): New function.
726 (tui_async_resize_screen): Print message if requested.
727 (_initialize_tui_win): Add tui-resize-message setting.
728 * NEWS: Add entry for new commands.
729
730 2019-11-11 Tom Tromey <tom@tromey.com>
731
732 * tui/tui.c (tui_initialize_readline): Add new bindable readline
733 functions.
734
735 2019-11-11 Christian Biesinger <cbiesinger@google.com>
736
737 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
738
739 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
742 function.
743 * python/python-internal.h (gdbpy_lookup_static_symbols):
744 Declare new function.
745 * python/python.c (python_GdbMethods): Add
746 gdb.lookup_static_symbols method.
747 * NEWS: Mention gdb.lookup_static_symbols.
748
749 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
752 static block of current object file first. Also fix typo in
753 header comment.
754
755 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * stack.c (set_last_displayed_sal): Delete.
758 (last_displayed_sal_valid): Delete.
759 (last_displayed_pspace): Delete.
760 (last_displayed_addr): Delete.
761 (last_displayed_symtab): Delete.
762 (last_displayed_line): Delete.
763 (class last_displayed_symtab_info_type): New.
764 (last_displayed_symtab_info): New static global variable.
765 (print_frame_info): Call methods on last_displayed_symtab_info.
766 (clear_last_displayed_sal): Update header comment, and make use of
767 last_displayed_symtab_info.
768 (last_displayed_sal_is_valid): Likewise.
769 (get_last_displayed_pspace): Likewise.
770 (get_last_displayed_addr): Likewise.
771 (get_last_displayed_symtab): Likewise.
772 (get_last_displayed_line): Likewise.
773 (get_last_displayed_sal): Likewise.
774 * stack.h (clear_last_displayed_sal): Update header comment.
775 (last_displayed_sal_is_valid): Likewise.
776 (get_last_displayed_pspace): Likewise.
777 (get_last_displayed_addr): Likewise.
778 (get_last_displayed_symtab): Likewise.
779 (get_last_displayed_line): Likewise.
780 (get_last_displayed_sal): Likewise.
781
782 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * stack.c (frame_show_address): Convert return type to bool.
785 * stack.h (frame_show_address): Likewise, and update header
786 comment.
787
788 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
791 * unittests/vec-utils-selftests.c: New file.
792 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
793
794 2019-11-10 Tom Tromey <tom@tromey.com>
795
796 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
797 (tui_highlight_win): Likewise.
798 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
799 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
800 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
801 Don't set can_highlight.
802
803 2019-11-10 Tom Tromey <tom@tromey.com>
804
805 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
806 Remove unused declaration.
807
808 2019-11-08 Tom Tromey <tromey@adacore.com>
809
810 * top.c (read_command_file): Update.
811 (command_line_input): Make return type const.
812 * python/py-gdb-readline.c: Update.
813 * linespec.c (decode_line_2): Update.
814 * defs.h (command_line_input): Make return type const.
815 * cli/cli-script.c (read_next_line): Make return type const.
816 * ada-lang.c (get_selections): Update.
817
818 2019-11-06 Christian Biesinger <cbiesinger@google.com>
819
820 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
821 * mi/mi-main.c (output_cores): Likewise.
822 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
823 (linux_xfer_osdata_modules): Likewise.
824 * remote.c (register_remote_support_xml): Likewise.
825 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
826 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
827
828 2019-11-06 Tom Tromey <tom@tromey.com>
829
830 * tui/tui-interp.c: Don't include readline.h.
831 * tui/tui-hooks.c: Don't include readline.h.
832 * symmisc.c: Include tilde.h, not readline.h.
833 * symfile.c: Include tilde.h, not readline.h.
834 * source.c: Include tilde.h, not readline.h.
835 * solib.c: Include tilde.h, not readline.h.
836 * psymtab.c: Include tilde.h, not readline.h.
837 * exec.c: Include tilde.h, not readline.h.
838 * corelow.c: Include tilde.h, not readline.h.
839 * cli/cli-dump.c: Include tilde.h, not readline.h.
840 * cli/cli-cmds.c: Don't include readline.h.
841
842 2019-11-05 Tom Tromey <tom@tromey.com>
843
844 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
845 (tui_disassemble): Set addr_size.
846 (tui_disasm_window::set_contents): Use addr_size.
847
848 2019-11-05 Tom Tromey <tom@tromey.com>
849
850 * rust-lang.c (rust_language_defn): Update.
851 * python/py-value.c (valpy_string): Call c_get_string.
852 * p-lang.c (pascal_language_defn): Update.
853 * opencl-lang.c (opencl_language_defn): Update.
854 * objc-lang.c (objc_language_defn): Update.
855 * m2-lang.c (m2_language_defn): Update.
856 * language.c (unknown_language_defn, auto_language_defn): Update.
857 (default_get_string): Remove.
858 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
859 * go-lang.c (go_language_defn): Update.
860 * f-lang.c (f_language_defn): Update.
861 * d-lang.c (d_language_defn): Update.
862 * c-lang.c (c_language_defn, cplus_language_defn)
863 (asm_language_defn, minimal_language_defn): Update.
864 * ada-lang.c (ada_language_defn): Update.
865 * language.h (struct language_defn) <la_get_string>: Remove.
866 (LA_GET_STRING): Remove.
867 (default_get_string): Don't declare.
868
869 2019-11-05 Tom Tromey <tom@tromey.com>
870
871 * tui/tui-source.h (struct tui_source_window): Inline
872 constructor. Remove destructor.
873 <style_changed, m_observable>: Move to superclass.
874 * tui/tui-winsource.h (tui_copy_source_line): Declare.
875 (struct tui_source_window_base): Move private members to end.
876 <style_changed, m_observable>: Move from tui_source_window.
877 * tui/tui-winsource.c (tui_copy_source_line): Move from
878 tui-source.c. Rename from copy_source_line. Add special handling
879 for negative line number.
880 (tui_source_window_base::style_changed): Move from
881 tui_source_window.
882 (tui_source_window_base): Register observer.
883 (~tui_source_window_base): New.
884 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
885 rename.
886 (tui_source_window::set_contents): Use tui_copy_source_line.
887 (tui_source_window::tui_source_window): Move to tui-source.h.
888 (tui_source_window::~tui_source_window): Remove.
889 (tui_source_window::style_changed): Move to superclass.
890 * tui/tui-disasm.c (tui_disassemble): Create string file with
891 styling, when possible. Add "addr_size" parameter.
892 (tui_disasm_window::set_contents): Use tui_copy_source_line.
893 Don't compute maximum size.
894 (len_without_escapes): New function
895
896 2019-11-05 Tom Tromey <tom@tromey.com>
897
898 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
899 std::string.
900 * tui/tui-winsource.c (tui_show_source_line): Update.
901 * tui/tui-source.c (tui_source_window::set_contents): Update.
902 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
903
904 2019-11-05 Christian Biesinger <cbiesinger@google.com>
905
906 * symtab.h (gdb_static_assert): Put && operator at the beginning
907 of the line instead of the end.
908
909 2019-11-04 Christian Biesinger <cbiesinger@google.com>
910
911 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
912 and sizeof (symbol).
913 * symtab.h: Add a static_assert for sizeof (partial_symbol).
914
915 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
916
917 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
918 * configure.host: Mark *-*-solaris2.10* obsolete.
919 * configure.tgt: Mark Solaris < 11 obsolete.
920 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
921 Update target triplet.
922
923 2019-11-01 Tom Tromey <tromey@adacore.com>
924
925 * utils.c (print_sys_errmsg): Simplify.
926
927 2019-11-01 Tom Tromey <tromey@adacore.com>
928
929 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
930
931 2019-11-01 Christian Biesinger <cbiesinger@google.com>
932
933 * configure: Regenerate.
934 * configure.ac: Remove check for strerror_r.
935 * gdbsupport/common.m4: Check for strerror_r.
936
937 2019-11-01 Luis Machado <luis.machado@linaro.org>
938
939 PR gdb/25124
940
941 * arm-tdep.c (arm_per_objfile): Rename to ...
942 (arm_per_bfd): ... this.
943 (arm_objfile_data_key): Rename to ...
944 (arm_bfd_data_key): ... this.
945 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
946 data.
947 (arm_record_special_symbol): Likewise.
948
949 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
952 end.
953 * c-typeprint.c (c_print_typedef): Likewise.
954 * f-typeprint.c (f_print_typedef): Likewise.
955 * m2-typeprint.c (m2_print_typedef): Likewise.
956 * p-typeprint.c (pascal_print_typedef): Likewise.
957 * rust-lang.c (rust_print_typedef): Likewise.
958 * symtab.c (print_symbol_info): Print a newline after calling
959 typedef_print.
960
961 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
962
963 * symtab.c (info_module_cmdlist): New variable.
964 (info_module_command): New function.
965 (search_module_symbols): New function.
966 (info_module_subcommand): New function.
967 (struct info_modules_var_func_options): New struct.
968 (info_modules_var_func_options_defs): New variable.
969 (make_info_modules_var_func_options_def_group): New function.
970 (info_module_functions_command): New function.
971 (info_module_variables_command): New function.
972 (info_module_var_func_command_completer): New function.
973 (_initialize_symtab): Register new 'info module functions' and
974 'info module variables' commands.
975 * symtab.h (typedef symbol_search_in_module): New typedef.
976 (search_module_symbols): Declare new function.
977 * NEWS: Mention new commands.
978
979 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
982 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
983 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
984 MODULES_DOMAIN.
985 (scan_partial_symbols): Only create partial module symbols for non
986 declarations.
987 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
988 and MODULES_DOMAIN.
989 * symtab.c (search_domain_name): Likewise.
990 (search_symbols): Likewise.
991 (print_symbol_info): Likewise.
992 (symtab_symbol_info): Likewise.
993 (info_modules_command): New function.
994 (_initialize_symtab): Register 'info modules' command.
995 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
996 * NEWS: Mention new 'info modules' command.
997
998 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
999
1000 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1001 and $_gdb_maint_setting_str.
1002
1003 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1004
1005 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1006 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1007 (str_value_from_setting, gdb_setting_str_internal_fn)
1008 (gdb_maint_setting_str_internal_fn): New functions.
1009 (_initialize_cli_cmds): Define the new convenience functions.
1010 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1011 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1012
1013 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1014
1015 * agent.c (set_can_use_agent): When the setting is turned on,
1016 look up agent symbols if we don't have them yet.
1017 (agent_new_objfile): Don't look up agent symbols when the agent
1018 setting is off.
1019
1020 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1021
1022 * config.in: Regenerate.
1023
1024 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1025
1026 * configure: Regenerate.
1027 * configure.ac: Check for strerror_r.
1028 * gdbsupport/common-utils.h (safe_strerror): Change return value
1029 to const char * and document that this function is now threadsafe.
1030 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1031 thread_local and call strerror_r, if available.
1032 * utils.c (perror_string): Update.
1033 (print_sys_errmsg): Update.
1034
1035 2019-10-31 Luis Machado <luis.machado@linaro.org>
1036
1037 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1038 objfile_key.
1039 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1040 objfile to fetch per-bfd data.
1041 (arm_find_exidx_entry): Likewise.
1042
1043 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1044
1045 * gdbsupport/agent.c (debug_agent): Change type to bool.
1046 (use_agent): Likewise.
1047 (all_agent_symbols_look_up): Likewise.
1048 (agent_loaded_p): Change return value to bool.
1049 (agent_look_up_symbols): Update.
1050 (agent_capability_check): Change return value to bool.
1051 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1052 (debug_agent): Change type to bool.
1053 (use_agent): Likewise.
1054 (agent_capability_check): Change return value to bool.
1055
1056 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1057
1058 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1059 (build_minimal_symbol_hash_tables): Code to clear the table moved
1060 to clear_minimal_symbol_hash_tables.
1061 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1062 when needed.
1063
1064 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * infcmd.c: Remove includes.
1067 * infrun.c: Remove includes.
1068
1069 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1070
1071 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1072 (grow_vect): Remove declaration.
1073 (ada_type_of_array): Remove declaration.
1074 (ada_update_initial_language): Remove declaration.
1075 (ada_fold_name): Remove declaration.
1076 (ada_fill_in_ada_prototype): Remove declaration.
1077 (user_select_syms): Remove declaration.
1078 (get_selections): Remove declaration.
1079 (ada_tag_type): Remove declaration.
1080 (ada_value_tag): Remove declaration.
1081 (ada_is_others_clause): Remove declaration.
1082 (ada_in_variant): Remove declaration.
1083 (ada_value_struct_elt): Remove declaration.
1084 (ada_attribute_name): Remove declaration.
1085 (ada_system_address_type): Remove declaration.
1086 * ada-lang.c (ada_watch_location_expression): Make static.
1087 (GROW_VECT): Move here from ada-lang.h.
1088 (grow_vect): Make static.
1089 (ada_update_initial_language): Make static.
1090 (ada_fold_name): Make static.
1091 (ada_type_of_array): Make static.
1092 (encoded_ordered_before): Move up.
1093 (sort_choices): Move up.
1094 (print_signatures): Move up.
1095 (ada_print_symbol_signature): Move up.
1096 (get_selections): Move up and make static.
1097 (user_select_syms): Move up and make static.
1098 (ada_value_struct_elt): Move up and make static.
1099 (ada_tag_type): Make static.
1100 (ada_value_tag): Make static.
1101 (ada_is_others_clause): Make static.
1102 (ada_in_variant): Make static.
1103 (ada_attribute_name): Make static.
1104
1105 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1106
1107 * ada-lang.c: Remove includes.
1108 * ada-typeprint.c: Remove includes.
1109 * ada-valprint.c: Remove includes.
1110
1111 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * addrmap.c: Add static assertions of type size, moved from
1114 _initialize_addrmap.
1115 (_initialize_addrmap): Remove.
1116
1117 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1118
1119 * coffread.c (record_minimal_symbol): Update.
1120 (process_coff_symbol): Update.
1121 * dbxread.c (read_dbx_symtab): Update.
1122 * dwarf2read.c (add_partial_symbol): Update.
1123 (fixup_go_packaging): Update.
1124 (load_partial_dies): Update.
1125 (new_symbol): Update.
1126 * elfread.c (record_minimal_symbol): Change signature to use
1127 gdb::string_view instead of name+len.
1128 (elf_symtab_read): Update.
1129 (elf_rel_plt_read): Update.
1130 * mdebugread.c (parse_partial_symbols): Update.
1131 (handle_psymbol_enumerators): Update.
1132 (new_symbol): Update.
1133 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1134 to use gdb::string_view instead of name+len.
1135 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1136 * psympriv.h (add_psymbol_to_list): Likewise.
1137 * psymtab.c (add_psymbol_to_bcache): Likewise.
1138 (add_psymbol_to_list): Likewise.
1139 * stabsread.c (define_symbol): Update.
1140 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1141 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1142 (symbol_set_names): Likewise.
1143 * xcoffread.c (scan_xcoff_symtab): Update.
1144
1145 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1146
1147 * symtab.h (symbol_set_names): Document that copy_name must be
1148 set to true for non-nullterminated strings.
1149 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1150 linkage_name if the entry was not found and we need to demangle.
1151
1152 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1153
1154 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1155 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1156 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1157 * gdbsupport/gdb_binary_search.h: New file.
1158
1159 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1160
1161 * NEWS: Mention new --with-system-gdbinit-dir option.
1162 * config.in: Regenerate.
1163 * configure: Regenerate.
1164 * configure.ac: Add new option --with-system-gdbinit-dir.
1165 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1166 for a ".gdb" suffix.
1167 * main.c (get_init_files): Change system_gdbinit argument to
1168 a vector and return the files in SYSTEM_GDBINIT_DIR in
1169 addition to SYSTEM_GDBINIT.
1170 (captured_main_1): Update.
1171 (print_gdb_help): Update.
1172 * top.c (print_gdb_configuration): Also print the value of
1173 SYSTEM_GDBINIT_DIR.
1174
1175 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1176
1177 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1178 that takes gdb::string_view arguments.
1179
1180 2019-10-26 Tom de Vries <tdevries@suse.de>
1181
1182 * aarch64-linux-tdep.c: Fix typos in comments.
1183 * aarch64-tdep.c: Same.
1184 * ada-lang.c: Same.
1185 * amd64-nat.c: Same.
1186 * arc-tdep.c: Same.
1187 * arch/aarch64-insn.c: Same.
1188 * block.c: Same.
1189 * breakpoint.h: Same.
1190 * btrace.h: Same.
1191 * c-varobj.c: Same.
1192 * cli/cli-decode.c: Same.
1193 * cli/cli-script.c: Same.
1194 * cli/cli-utils.h: Same.
1195 * coff-pe-read.c: Same.
1196 * coffread.c: Same.
1197 * compile/compile-cplus-symbols.c: Same.
1198 * compile/compile-object-run.c: Same.
1199 * completer.c: Same.
1200 * corelow.c: Same.
1201 * cp-support.c: Same.
1202 * demangle.c: Same.
1203 * dwarf-index-write.c: Same.
1204 * dwarf2-frame.c: Same.
1205 * dwarf2-frame.h: Same.
1206 * eval.c: Same.
1207 * frame-base.h: Same.
1208 * frame.h: Same.
1209 * gdbcmd.h: Same.
1210 * gdbtypes.h: Same.
1211 * gnu-nat.c: Same.
1212 * guile/scm-objfile.c: Same.
1213 * i386-tdep.c: Same.
1214 * i386-tdep.h: Same.
1215 * infcall.c: Same.
1216 * infcall.h: Same.
1217 * linux-nat.c: Same.
1218 * m68k-tdep.c: Same.
1219 * macroexp.c: Same.
1220 * memattr.c: Same.
1221 * mi/mi-cmd-disas.c: Same.
1222 * mi/mi-getopt.h: Same.
1223 * mi/mi-main.c: Same.
1224 * minsyms.c: Same.
1225 * nat/aarch64-sve-linux-sigcontext.h: Same.
1226 * objfiles.h: Same.
1227 * ppc-linux-nat.c: Same.
1228 * ppc-linux-tdep.c: Same.
1229 * ppc-tdep.h: Same.
1230 * progspace.h: Same.
1231 * prologue-value.h: Same.
1232 * python/py-evtregistry.c: Same.
1233 * python/py-instruction.h: Same.
1234 * record-btrace.c: Same.
1235 * record-full.c: Same.
1236 * remote.c: Same.
1237 * rs6000-tdep.c: Same.
1238 * ser-tcp.c: Same.
1239 * sol-thread.c: Same.
1240 * sparc-sol2-tdep.c: Same.
1241 * sparc64-tdep.c: Same.
1242 * stabsread.c: Same.
1243 * symfile.c: Same.
1244 * symtab.h: Same.
1245 * target.c: Same.
1246 * tracepoint.c: Same.
1247 * tui/tui-data.h: Same.
1248 * tui/tui-io.c: Same.
1249 * tui/tui-win.c: Same.
1250 * tui/tui.c: Same.
1251 * unittests/rsp-low-selftests.c: Same.
1252 * user-regs.h: Same.
1253 * utils.c: Same.
1254 * utils.h: Same.
1255 * valarith.c: Same.
1256 * valops.c: Same.
1257 * valprint.c: Same.
1258 * valprint.h: Same.
1259 * value.c: Same.
1260 * value.h: Same.
1261 * varobj.c: Same.
1262 * x86-nat.h: Same.
1263 * xtensa-tdep.c: Same.
1264
1265 2019-10-25 Ali Tamur <tamur@google.com>
1266
1267 * charset.c (find_charset_names): Reflect API change.
1268
1269 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1270
1271 * symtab.c (struct demangled_name_entry): Change demangled name
1272 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1273 part of the struct anymore.
1274 (symbol_set_names): No longer obstack allocate + copy the demangled
1275 name, just store the allocated name from bfd.
1276
1277 2019-10-25 Tom Tromey <tromey@adacore.com>
1278
1279 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1280 (bsearch_cie_cmp, add_cie): Remove.
1281 (find_cie): Reimplement.
1282 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1283 (dwarf2_build_frame_info): Update.
1284
1285 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1286
1287 PR gdb/25126
1288 * symfile.c (reread_symbols): Call forget_cached_source_info to
1289 clear the stale source cache.
1290
1291 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1292
1293 * configure: Regenerate.
1294 * configure.ac: Remove code that sets python_has_threads.
1295
1296 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1297
1298 * config.in: Regenerate.
1299 * configure: Regenerate.
1300 * configure.ac: Remove the code that uses sed to get the python
1301 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1302
1303 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1306 error paths.
1307
1308 2019-10-23 Tom Tromey <tom@tromey.com>
1309
1310 * arc-tdep.c: Remove ".." from include.
1311 * frv-tdep.c: Remove ".." from include.
1312 * lm32-tdep.c: Remove ".." from include.
1313 * microblaze-tdep.c: Remove ".." from include.
1314 * or1k-tdep.h: Remove ".." from include.
1315 * s12z-tdep.c: Remove ".." from include.
1316 * Makefile.in (OPCODES_CFLAGS): Add comment.
1317 (TOP_CFLAGS): New variable.
1318 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1319
1320 2019-10-23 Tom Tromey <tom@tromey.com>
1321
1322 * Makefile.in (READLINE_DIR): Update.
1323
1324 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1325
1326 * infcall.c (call_function_by_hand_dummy): Fix the function
1327 comment. And extract out a code section into...
1328 (reserve_stack_space): ...this new function.
1329
1330 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1331
1332 * infcall.c (value_arg_coerce): Remove an unused parameter.
1333 (call_function_by_hand_dummy): Update the call to
1334 'value_arg_coerce'.
1335
1336 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1337
1338 * infcall.c (call_function_by_hand_dummy): Refactor.
1339
1340 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341
1342 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1343
1344 2019-10-23 Tom Tromey <tom@tromey.com>
1345
1346 * configure: Rebuild.
1347 * configure.ac: Don't check for sigprocmask.
1348 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1349
1350 2019-10-23 Tom Tromey <tom@tromey.com>
1351
1352 * configure: Rebuild.
1353 * acinclude.m4: Use m4_include, not sinclude.
1354
1355 2019-10-23 Tom de Vries <tdevries@suse.de>
1356
1357 PR breakpoints/24687
1358 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1359
1360 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1361
1362 * symtab.c (struct demangled_name_entry) <language>: Change from
1363 bitfield to regular variable.
1364
1365 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1366
1367 * symtab.c (struct demangled_name_entry): Add a constructor.
1368 (free_demangled_name_entry): New function to call the destructor
1369 for demangled_name_entry.
1370 (create_demangled_names_hash): Pass free_demangled_name_entry to
1371 htab_create_alloc.
1372 (symbol_set_names): Call placement new for demangled_name_entry.
1373 * utils.c: No longer include xxhash.h here, now that fast_hash
1374 is inlined in the header.
1375 * utils.h: Instead, include it here.
1376
1377 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1378
1379 * Makefile.in: Link with libxxhash.
1380 * config.in: Regenerate.
1381 * configure: Regenerate.
1382 * configure.ac: Search for libxxhash.
1383 * utils.c (fast_hash): Use xxhash if present.
1384
1385 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1386
1387 * utils.h (fast_hash): New function.
1388 * symtab.c (hash_demangled_name_entry): Call new function
1389 fast_hash.
1390
1391 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1392
1393 * symtab.c (struct demangled_name_entry): Change type of mangled
1394 to gdb::string_view. Also adds a constructor that takes the
1395 mangled name.
1396 (hash_demangled_name_entry): Update.
1397 (eq_demangled_name_entry): Update.
1398 (free_demangled_name_entry): New function to call the destructor
1399 now that this is not a POD anymore.
1400 (create_demangled_names_hash): Pass free_demangled_name_entry to
1401 htab_create_alloc.
1402 (symbol_set_names): Update.
1403
1404 2019-10-21 Ali Tamur <tamu@google.com>
1405
1406 * dwarf2read.c (dir_index): Change type.
1407 (file_name_index): Likewise.
1408 (line_header::include_dir_at): Change comment and implementation on
1409 whether it is DWARF 5.
1410 (line_header::is_valid_file_index): New function.
1411 (line_header::file_name_at): Change comment and implementation on
1412 whether it is DWARF 5.
1413 (line_header::file_names): Change to private field renamed as
1414 m_file_names and introduce a new accessor method.
1415 (line_header::file_names_size): New method.
1416 (line_header::include_dirs): Change to private field and rename as
1417 m_include_dirs.
1418 (dw2_get_file_names_reader): Define local var at a smaller scope and
1419 reflect API change.
1420 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1421 (process_structure_scope): Likewise.
1422 (line_header::add_include_dir): Change message and reflect renaming.
1423 (line_header::add_file_name): Likewise.
1424 (read_formatted_entries): Handle DW_FORM_data16.
1425 (dwarf_decode_line_header): Fix line header length calculation.
1426 (psymtab_include_file_name): Change comment and API.
1427 (lnp_state_machine::m_file): Update comment and reflect type change.
1428 (lnp_state_machine::record_line): Reflect type change.
1429 (dwarf_decode_lines): Reflect API change.
1430 (file_file_name): Likewise.
1431 (file_full_name): Likewise.
1432
1433 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1436
1437 2019-10-21 Tom Tromey <tom@tromey.com>
1438
1439 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1440
1441 2019-10-21 Tom Tromey <tom@tromey.com>
1442
1443 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1444 NM_H. Use AC_CONFIG_LINKS.
1445 * configure: Rebuild.
1446 * Makefile.in (NM_H): New variable.
1447 (generated_files): Add NM_H. Remove gcore.
1448 (nm.h, stamp-nmh): New targets.
1449
1450 2019-10-20 Tom Tromey <tom@tromey.com>
1451
1452 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1453 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1454 obsolete comment.
1455 (put_objfile_before): Now static.
1456
1457 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * gdbsupport/common-utils.h (startswith): Change return type to
1460 bool.
1461
1462 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1463
1464 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1465 * breakpoint.c (bp_locations_compare): Rename to...
1466 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1467 (update_global_location_list): Use std::sort instead of qsort.
1468 * buildsym.c (compare_line_numbers): Rename to...
1469 (lte_is_less_than): ...this, and change to std::sort semantics.
1470 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1471 instead of qsort.
1472 * disasm.c (compare_lines): Rename to...
1473 (line_is_less_than): ...this, and change to std::sort semantics.
1474 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1475 of qsort.
1476 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1477 (fde_is_less_than): ...this, and change to std::sort semantics.
1478 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1479 * mdebugread.c (compare_blocks):
1480 (block_is_less_than): ...this, and change to std::sort semantics.
1481 (sort_blocks): Call std::sort instead of qsort.
1482 * objfiles.c (qsort_cmp): Rename to...
1483 (sort_cmp): ...this, and change to std::sort semantics.
1484 (update_section_map): Call std::sort instead of qsort.
1485 * remote.c (compare_pnums): Remove.
1486 (map_regcache_remote_table): Call std::sort instead of qsort.
1487 * utils.c (compare_positive_ints): Remove.
1488 * utils.h (compare_positive_ints): Remove.
1489 * xcoffread.c (compare_lte): Remove.
1490 (arrange_linetable): Call std::sort instead of qsort.
1491
1492 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1493
1494 * symfile.c (init_entry_point_info): Fix typo.
1495 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1496
1497 2019-10-18 Tom de Vries <tdevries@suse.de>
1498
1499 * aarch64-tdep.c: Fix typos in comments.
1500 * ada-lang.c: Same.
1501 * ada-tasks.c: Same.
1502 * alpha-tdep.c: Same.
1503 * alpha-tdep.h: Same.
1504 * amd64-nat.c: Same.
1505 * amd64-windows-tdep.c: Same.
1506 * arc-tdep.c: Same.
1507 * arc-tdep.h: Same.
1508 * arch-utils.c: Same.
1509 * arm-nbsd-tdep.c: Same.
1510 * arm-tdep.c: Same.
1511 * ax-gdb.c: Same.
1512 * blockframe.c: Same.
1513 * btrace.c: Same.
1514 * c-varobj.c: Same.
1515 * coff-pe-read.c: Same.
1516 * coffread.c: Same.
1517 * cris-tdep.c: Same.
1518 * darwin-nat.c: Same.
1519 * dbxread.c: Same.
1520 * dcache.c: Same.
1521 * disasm.c: Same.
1522 * dtrace-probe.c: Same.
1523 * dwarf-index-write.c: Same.
1524 * dwarf2-frame-tailcall.c: Same.
1525 * dwarf2-frame.c: Same.
1526 * dwarf2read.c: Same.
1527 * eval.c: Same.
1528 * exceptions.c: Same.
1529 * fbsd-tdep.c: Same.
1530 * findvar.c: Same.
1531 * frame.c: Same.
1532 * frv-tdep.c: Same.
1533 * gnu-v3-abi.c: Same.
1534 * go32-nat.c: Same.
1535 * h8300-tdep.c: Same.
1536 * hppa-tdep.c: Same.
1537 * i386-linux-tdep.c: Same.
1538 * i386-tdep.c: Same.
1539 * ia64-libunwind-tdep.c: Same.
1540 * ia64-tdep.c: Same.
1541 * infcmd.c: Same.
1542 * infrun.c: Same.
1543 * linespec.c: Same.
1544 * linux-nat.c: Same.
1545 * linux-thread-db.c: Same.
1546 * machoread.c: Same.
1547 * mdebugread.c: Same.
1548 * mep-tdep.c: Same.
1549 * mn10300-tdep.c: Same.
1550 * namespace.c: Same.
1551 * objfiles.c: Same.
1552 * opencl-lang.c: Same.
1553 * or1k-tdep.c: Same.
1554 * osabi.c: Same.
1555 * ppc-linux-nat.c: Same.
1556 * ppc-linux-tdep.c: Same.
1557 * ppc-sysv-tdep.c: Same.
1558 * printcmd.c: Same.
1559 * procfs.c: Same.
1560 * record-btrace.c: Same.
1561 * record-full.c: Same.
1562 * remote-fileio.c: Same.
1563 * remote.c: Same.
1564 * rs6000-tdep.c: Same.
1565 * s12z-tdep.c: Same.
1566 * score-tdep.c: Same.
1567 * ser-base.c: Same.
1568 * ser-go32.c: Same.
1569 * skip.c: Same.
1570 * sol-thread.c: Same.
1571 * solib-svr4.c: Same.
1572 * solib.c: Same.
1573 * source.c: Same.
1574 * sparc-nat.c: Same.
1575 * sparc-sol2-tdep.c: Same.
1576 * sparc-tdep.c: Same.
1577 * sparc64-tdep.c: Same.
1578 * stabsread.c: Same.
1579 * stack.c: Same.
1580 * symfile.c: Same.
1581 * symtab.c: Same.
1582 * target-descriptions.c: Same.
1583 * target-float.c: Same.
1584 * thread.c: Same.
1585 * utils.c: Same.
1586 * valops.c: Same.
1587 * valprint.c: Same.
1588 * value.c: Same.
1589 * varobj.c: Same.
1590 * windows-nat.c: Same.
1591 * xcoffread.c: Same.
1592 * xstormy16-tdep.c: Same.
1593 * xtensa-tdep.c: Same.
1594
1595 2019-10-17 Tom Tromey <tromey@adacore.com>
1596
1597 * configure: Rebuild.
1598 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1599 in AC_CONFIG_FILES invocation.
1600 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1601 new-style config.status invocation.
1602
1603 2019-10-17 Tom de Vries <tdevries@suse.de>
1604
1605 * arm-nbsd-nat.c: Fix typos in comments.
1606 * arm-tdep.c: Same.
1607 * darwin-nat-info.c: Same.
1608 * dwarf2read.c: Same.
1609 * elfread.c: Same.
1610 * event-top.c: Same.
1611 * findvar.c: Same.
1612 * gdbtypes.c: Same.
1613 * hppa-tdep.c: Same.
1614 * i386-tdep.c: Same.
1615 * jit.c: Same.
1616 * main.c: Same.
1617 * mdebugread.c: Same.
1618 * moxie-tdep.c: Same.
1619 * nto-procfs.c: Same.
1620 * osabi.c: Same.
1621 * ppc-linux-tdep.c: Same.
1622 * remote.c: Same.
1623 * riscv-tdep.c: Same.
1624 * s390-tdep.c: Same.
1625 * sh-tdep.c: Same.
1626 * sparc-linux-tdep.c: Same.
1627 * sparc-nat.c: Same.
1628 * stack.c: Same.
1629 * target-descriptions.c: Same.
1630 * top.c: Same.
1631 * varobj.c: Same.
1632
1633 2019-10-16 Tom Tromey <tom@tromey.com>
1634
1635 * objfiles.h (struct objfile) <original_name>: Now const.
1636
1637 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1638
1639 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1640 pass on to sigsetjmp's second argument.
1641 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1642
1643 2019-10-16 Keith Seitz <keiths@redhat.com>
1644
1645 PR gdb/23567
1646 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1647 sections whose size is greater than the file size.
1648
1649 2019-10-16 Jim Wilson <jimw@sifive.com>
1650
1651 * riscv-tdep.c (riscv_gcc_target_options): New.
1652 (riscv_gnu_triplet_regexp): New.
1653 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1654 set_gdbarch_gnu_triplet_regexp.
1655
1656 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1657
1658 * Makefile.in: Add xml-builtin.h.
1659 * features/feature_to_c.sh: Add an include for xml-builtin.h
1660 to ensure that the compiler checks that the types match.
1661 * xml-builtin.h: New file.
1662 * xml-support.c (fetch_xml_builtin): Add missing const.
1663 * xml-support.h: Remove declaration of xml_builtins.
1664
1665 2019-10-16 Tom de Vries <tdevries@suse.de>
1666
1667 PR tdep/25096
1668 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1669 (amd64_classify_aggregate): ... here.
1670 (amd64_classify_aggregate_field): Handled fiels of nested structs
1671 recursively.
1672
1673 2019-10-16 Tom de Vries <tdevries@suse.de>
1674
1675 PR tdep/24104
1676 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1677 that handles 'theclass'.
1678
1679 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1680
1681 * linespec.c (decode_digits_ordinary): Update comment.
1682 * make-target-delegates: No longer need to handle VEC case.
1683 * memrange.c (normalize_mem_ranges): Update comment.
1684 * namespace.c (add_using_directive): Update comment.
1685 * objc-lang.c (uniquify_strings): Update comment.
1686 * ppc-linux-nat.c (struct thread_points): Update comment.
1687 * probe.h (find_probes_in_objfile): Update comment.
1688 * target.h (enum flash_preserve_mode): Update comment.
1689 * varobj.c (varobj_restrict_range): Update comment.
1690 * varobj.h (varobj_list_children): Update comment.
1691
1692 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * Makefile.in: Remove references to vec.h and vec.c.
1695 * aarch64-tdep.c: No longer include vec.h.
1696 * ada-lang.c: Likewise.
1697 * ada-lang.h: Likewise.
1698 * arm-tdep.c: Likewise.
1699 * ax.h: Likewise.
1700 * breakpoint.h: Likewise.
1701 * charset.c: Likewise.
1702 * cp-support.h: Likewise.
1703 * dtrace-probe.c: Likewise.
1704 * dwarf2read.c: Likewise.
1705 * extension.h: Likewise.
1706 * gdb_bfd.c: Likewise.
1707 * gdbsupport/gdb_vecs.h: Likewise.
1708 * gdbsupport/vec.c: Remove.
1709 * gdbsupport/vec.h: Remove.
1710 * gdbthread.h: Likewise.
1711 * guile/scm-type.c: Likewise.
1712 * inline-frame.c: Likewise.
1713 * machoread.c: Likewise.
1714 * memattr.c: Likewise.
1715 * memrange.h: Likewise.
1716 * namespace.h: Likewise.
1717 * nat/linux-btrace.h: Likewise.
1718 * osdata.c: Likewise.
1719 * parser-defs.h: Likewise.
1720 * progspace.h: Likewise.
1721 * python/py-type.c: Likewise.
1722 * record-btrace.c: Likewise.
1723 * rust-exp.y: Likewise.
1724 * solib-target.c: Likewise.
1725 * stap-probe.c: Likewise.
1726 * target-descriptions.c: Likewise.
1727 * target-memory.c: Likewise.
1728 * target.h: Likewise.
1729 * varobj.c: Likewise.
1730 * varobj.h: Likewise.
1731 * xml-support.h: Likewise.
1732
1733 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1736 Update for new std::vector based implementation.
1737 (process_psymtab_comp_unit_reader): Likewise.
1738 (scan_partial_symbols): Likewise.
1739 (recursively_compute_inclusions): Likewise.
1740 (compute_compunit_symtab_includes): Likewise.
1741 (process_imported_unit_die): Likewise.
1742 (queue_and_load_dwo_tu): Likewise.
1743 (follow_die_sig_1): Likewise.
1744 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1745 (typedef dwarf2_per_cu_ptr): Remove.
1746 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1747 function.
1748 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1749 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1750 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1751 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1752 std::vector.
1753
1754 2019-10-15 Tom Tromey <tromey@adacore.com>
1755
1756 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1757 TID.
1758
1759 2019-10-15 Tom Tromey <tromey@adacore.com>
1760
1761 * windows-nat.c (windows_nat_target::fetch_registers)
1762 (windows_nat_target::store_registers): Rename "pid" to "tid".
1763
1764 2019-10-15 Tom Tromey <tromey@adacore.com>
1765
1766 * gdbarch.h, gdbarch.c: Rebuild.
1767 * gdbarch.sh (gcc_target_options): Change return type to
1768 std::string.
1769 * compile/compile.c (get_args): Update.
1770 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1771 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1772 std::string.
1773 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1774 std::string.
1775 * arch-utils.c (default_gcc_target_options): Return std::string.
1776 * arch-utils.h (default_gcc_target_options): Return std::string.
1777 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1778
1779 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1780
1781 * breakpoint.c (breakpoint_chain): Make static.
1782 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1783 of accessing breakpoint_chain.
1784
1785 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1786
1787 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1788 to a gdb::function_view and return value to bool.
1789 * breakpoint.h (iterate_over_breakpoints): Likewise.
1790 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1791 (pop_dummy_frame): Update.
1792 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1793 (gdbscm_breakpoints): Update.
1794 * python/py-breakpoint.c (build_bp_list): Update.
1795 (gdbpy_breakpoints): Update.
1796 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1797 Update.
1798 (bpfinishpy_handle_stop): Update.
1799 (bpfinishpy_handle_exit): Update.
1800 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1801 (svr4_update_solib_event_breakpoints): Update.
1802
1803 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1804
1805 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1806 when unwrapping single-field structs.
1807
1808 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * dwarf2read.c: Remove includes.
1811
1812 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * ui-out.c (ui_out::call_do_message): Silence
1815 -Wformat-nonliteral warning.
1816
1817 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1820 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1821 include: readline/tilde.h.
1822
1823 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1824
1825 * remote.c (remote_target::get_trace_status): Remove declaration of
1826 trace_regblock_size.
1827
1828 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1829
1830 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1831 (show_user): Remove declaration of cmdlist.
1832 * cli/cli-cmds.h (max_user_call_depth): Declare.
1833 * cli/cli-script.c (execute_user_command): Remove declaration
1834 of max_user_call_depth.
1835
1836 2019-10-11 Jim Wilson <jimw@sifive.com>
1837
1838 * gdbsupport/print-utils.h (pulongest): Fix comment.
1839 (plongest): Likewise.
1840 (phex): Add missing comment, mention leading zeros.
1841 (phex_nz): Add mention of no leading zeros to comment.
1842
1843 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1844 plongest instead of unsigned long long cast.
1845
1846 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1847
1848 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1849 for external_editor_command and gdbtk_test.
1850
1851 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1852
1853 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1854 * varobj.c (varobjdebug): Move comment to...
1855 * varobj.h (varobjdebug): ...here, and declare.
1856
1857 2019-10-09 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1860 erase_data_content.
1861
1862 2019-10-09 Tom Tromey <tom@tromey.com>
1863
1864 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1865 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1866 * tui/tui-command.c (tui_cmd_window::resize)
1867 (tui_refresh_cmd_win): Update.
1868 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1869 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1870 * tui/tui-data.c (~tui_gen_win_info): Remove.
1871 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1872 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1873 (tui_redisplay_readline, tui_mld_flush)
1874 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1875 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1876 (tui_data_window::erase_data_content)
1877 (tui_data_item_window::rerender)
1878 (tui_data_item_window::refresh_window): Update.
1879 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1880 (box_win, tui_gen_win_info::make_window)
1881 (tui_gen_win_info::make_visible): Update.
1882 (tui_delete_win): Remove.
1883 * tui/tui-winsource.c
1884 (tui_source_window_base::do_erase_source_content): Update.
1885 (tui_show_source_line, tui_source_window_base::update_tab_width)
1886 (tui_source_window_base::update_exec_info): Update.
1887 * tui/tui-data.h (struct curses_deleter): New.
1888 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1889 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1890
1891 2019-10-09 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1894
1895 2019-10-09 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1898 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1899
1900 2019-10-09 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1903 window height directly.
1904 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1905 declare.
1906 * tui/tui-layout.c (tui_default_win_height): Remove.
1907 (tui_default_win_viewport_height): Remove.
1908
1909 2019-10-09 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui.h: Remove comments.
1912
1913 2019-10-09 Tom de Vries <tdevries@suse.de>
1914
1915 * python/lib/gdb/printer/bound_registers.py: Use
1916 '^builtin_type_bound128' as regexp argument for
1917 add_builtin_pretty_printer.
1918
1919 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1920
1921 * guile/guile.c (guile_extension_script_ops): Remove forward
1922 declaration and mark as static.
1923 (guile_script_ops): Likewise.
1924 (extension_language_guile): Move further down in the file so
1925 it can reference the definitions for guile_{extension_,}script_ops.
1926
1927 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1928
1929 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1930 except SORTL, DFLTCC, and KDSA.
1931
1932 2019-10-08 Tom Tromey <tromey@adacore.com>
1933
1934 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1935 (struct safe_symbol_file_add_args): Remove.
1936
1937 2019-10-08 Tom Tromey <tromey@adacore.com>
1938
1939 * windows-nat.c: Don't include buildsym-legacy.h.
1940
1941 2019-10-08 Tom Tromey <tromey@adacore.com>
1942
1943 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1944
1945 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1946
1947 * gdbtypes.c (overload_debug): Move comment to header.
1948 * gdbtypes.h (overload_debug): Declare.
1949 * valops.c: Remove declaration of overload_debug, instead
1950 include gdbtypes.h.
1951
1952 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1953
1954 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1955 through _().
1956 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1957 move comment...
1958 * language.h (lang_frame_mismatch_warn): ... here. Also add
1959 declaration.
1960 * top.c (lang_frame_mismatch_warn): Remove declaration.
1961 (check_frame_language_change): Pass lang_frame_mismatch_warn
1962 through _().
1963
1964 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1965
1966 * c-lang.h (vtbl_ptr_name): Declare.
1967 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1968 it from the header.
1969 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1970
1971 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1972
1973 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1974 gdb_static_assert.
1975
1976 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1977
1978 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1979 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1980 * ctfread.c: New file.
1981 * ctfread.h: New file.
1982 * elfread.c: Include ctfread.h.
1983 (struct elfinfo text_p): New member ctfsect.
1984 (elf_locate_sections): Mark CTF section.
1985 (elf_symfile_read): Call elfctf_build_psymtabs.
1986 * Makefile.in (LIBCTF): Add.
1987 (CLIBS): Use it.
1988 (CDEPS): Likewise.
1989 (DIST): Add ctfread.c.
1990
1991 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * ctfread.c (struct nextfield): Renamed to ...
1994 (struct ctf_nextfield): ... this.
1995 (struct field_info): Renamed to ...
1996 (strut ctf_field_info): ... this.
1997 (attach_fields_to_type): Update for renamed structures.
1998 (ctf_add_member_cb): Likewise.
1999 (ctf_add_enum_member_cb): Likewise.
2000 (process_struct_members): Likewise.
2001 (process_enum_type): Likewise.
2002
2003 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2004
2005 * tracectf.h: Rename, was ctf.h.
2006 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2007 * tracefile.c: Likewise.
2008 * tracepoint.c: Remove unused include ctf.h.
2009 * mi/mi-main.c: Likewise.
2010 * Makefile.in Replace ctf.c with tracectf.c.
2011
2012 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2013
2014 * version.in: Change version number to "9.0.50.DATE-git".
2015
2016 2019-10-03 Tom Tromey <tom@tromey.com>
2017
2018 PR rust/24976:
2019 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2020
2021 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2024 cp_search_name_hash.
2025 * NEWS: Add entry about nested function support.
2026
2027 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2028 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2031 for nested static variables when searchin VAR_DOMAIN.
2032 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2033 global scope, update comment.
2034 (add_partial_subprogram): Call add_partial_subprogram recursively
2035 for nested subroutines when processinng Fortran.
2036 (load_partial_dies): Process the child entities of a subprogram
2037 when processing Fortran.
2038 (partial_die_parent_scope): Handle building scope
2039 for Fortran nested functions.
2040 (process_die): Record that nested functions have a scope.
2041 (new_symbol): Always record Fortran subprograms on the global
2042 symbol list.
2043 (determine_prefix): How to build the prefix for Fortran
2044 subprograms.
2045
2046 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2049 have just sent the thread a SIGSTOP and are waiting for it to
2050 arrive.
2051
2052 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * btrace.c (btrace_add_pc): Remove whitespace before the template
2055 parameter in 'std::vector <...>'.
2056 (parse_xml_btrace_block): Likewise.
2057 (btrace_maint_decode_pt): Likewise.
2058 (btrace_maint_update_packets): Likewise.
2059 (btrace_maint_print_packets): Likewise.
2060 * btrace.h (struct btrace_maint_info): Likewise.
2061 * dwarf2read.c (struct type_unit_group): Likewise.
2062 (build_type_psymtabs_reader): Likewise.
2063 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2064 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2065 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2066
2067 2019-10-03 Tom de Vries <tdevries@suse.de>
2068
2069 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2070 the first line of the help text for set/show style metadata.
2071
2072 2019-10-02 Tom Tromey <tromey@adacore.com>
2073
2074 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2075 * gdbsupport/common-inferior.c: New file.
2076 * infcmd.c (startup_with_shell): Don't define.
2077 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2078 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2079 * inferior.h (startup_with_shell): Don't declare.
2080
2081 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2082
2083 * gdbsupport/gdb_assert.h: Include errors.h.
2084 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2085
2086 2019-10-02 Tom Tromey <tromey@adacore.com>
2087
2088 * NEWS: Add $_ada_exception entry.
2089 * ada-lang.c (struct ada_catchpoint): Add constructor.
2090 <m_kind>: New member.
2091 (allocate_location_exception, re_set_exception): Remove
2092 "ex" parameter.
2093 (should_stop_exception): Compute $_ada_exception.
2094 (check_status_exception, print_it_exception)
2095 (print_one_exception, print_mention_exception): Remove
2096 "ex" parameter.
2097 (allocate_location_catch_exception, re_set_catch_exception)
2098 (check_status_exception, print_it_catch_exception)
2099 (print_one_catch_exception, print_mention_catch_exception)
2100 (print_recreate_catch_exception)
2101 (allocate_location_catch_exception_unhandled)
2102 (re_set_catch_exception_unhandled)
2103 (check_status_exception, print_it_catch_exception_unhandled)
2104 (print_one_catch_exception_unhandled)
2105 (print_mention_catch_exception_unhandled)
2106 (print_recreate_catch_exception_unhandled)
2107 (allocate_location_catch_assert, re_set_catch_assert)
2108 (check_status_assert, print_it_catch_assert)
2109 (print_one_catch_assert, print_mention_catch_assert)
2110 (print_recreate_catch_assert)
2111 (allocate_location_catch_handlers, re_set_catch_handlers)
2112 (check_status_handlers, print_it_catch_handlers)
2113 (print_one_catch_handlers, print_mention_catch_handlers)
2114 (print_recreate_catch_handlers): Remove.
2115 (create_ada_exception_catchpoint): Update.
2116 (initialize_ada_catchpoint_ops): Update.
2117
2118 2019-10-02 Tom Tromey <tromey@adacore.com>
2119
2120 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2121 (create_excep_cond_exprs): Simplify exception string computation.
2122 (ada_exception_catchpoint_cond_string): Likewise.
2123
2124 2019-10-02 Tom Tromey <tromey@adacore.com>
2125
2126 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2127 * ada-lang.c (lesseq_defined_than): Handle
2128 LOC_STATIC.
2129 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2130 parameter.
2131 (dwarf2_has_info): Likewise.
2132 (new_symbol): Set maybe_copied on symbol when
2133 appropriate.
2134 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2135 parameter.
2136 <can_copy>: New member.
2137 * elfread.c (record_minimal_symbol): Set maybe_copied
2138 on symbol when appropriate.
2139 (elf_symfile_read): Update call to dwarf2_has_info.
2140 * minsyms.c (lookup_minimal_symbol_linkage): New
2141 function.
2142 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2143 * symtab.c (get_symbol_address, get_msymbol_address):
2144 New functions.
2145 * symtab.h (get_symbol_address, get_msymbol_address):
2146 Declare.
2147 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2148 maybe_copied.
2149 (struct symbol, struct minimal_symbol) <maybe_copied>:
2150 New member.
2151
2152 2019-10-02 Tom Tromey <tromey@adacore.com>
2153
2154 * source.c (struct current_source_location): New.
2155 (current_source_key): New global.
2156 (current_source_symtab, current_source_line)
2157 (current_source_pspace): Remove.
2158 (get_source_location): New function.
2159 (get_current_source_symtab_and_line)
2160 (set_default_source_symtab_and_line)
2161 (set_current_source_symtab_and_line)
2162 (clear_current_source_symtab_and_line, select_source_symtab)
2163 (info_source_command, print_source_lines_base)
2164 (info_line_command, search_command_helper, _initialize_source):
2165 Update.
2166
2167 2019-10-02 Tom Tromey <tromey@adacore.com>
2168
2169 * source.c (select_source_symtab): Don't call
2170 decode_line_with_current_source.
2171
2172 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * symtab.c (lookup_global_symbol): Search global block.
2175
2176 2019-10-02 Tom Tromey <tromey@adacore.com>
2177
2178 * coffread.c (process_coff_symbol): Update.
2179 * dwarf2read.c (var_decode_location, new_symbol): Update.
2180 * mdebugread.c (parse_symbol): Update.
2181 * objfiles.c (relocate_one_symbol): Update.
2182 * stabsread.c (define_symbol, fix_common_block)
2183 (scan_file_globals): Update.
2184 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2185 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2186 * xcoffread.c (process_xcoff_symbol): Update.
2187
2188 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2189
2190 * MAINTAINERS: Update my email address.
2191
2192 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2195 std::vector.
2196 (build_type_psymtabs_reader): Update for std::vector.
2197 (build_type_psymtab_dependencies): Likewise.
2198 * dwarf2read.h: Remove use of DEF_VEC_P.
2199 (typedef sig_type_ptr): Delete.
2200
2201 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2204 to std::vector.
2205 (btrace_maint_decode_pt): Likewise, and move allocation of the
2206 vector outside of the loop.
2207 (btrace_maint_update_packets): Update to handle change from VEC to
2208 std::vector.
2209 (btrace_maint_print_packets): Likewise.
2210 (maint_info_btrace_cmd): Likewise.
2211 * btrace.h: Remove use of DEF_VEC_O.
2212 (typedef btrace_pt_packet_s): Delete.
2213 (struct btrace_maint_info) <packets>: Change fromm VEC to
2214 std::vector.
2215 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2216
2217 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2220 make accesses into the vector constant references.
2221 (btrace_add_pc): Update for std::vector.
2222 (btrace_stitch_bts): Likewise.
2223 (parse_xml_btrace_block): Likewise.
2224 (btrace_maint_update_packets): Likewise.
2225 (btrace_maint_print_packets): Likewise.
2226 (maint_info_btrace_cmd): Likewise.
2227 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2228 std::vector.
2229 (btrace_data::empty): Likewise.
2230 (btrace_data_append): Likewise.
2231 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2232 (typedef btrace_block_s): Delete.
2233 (struct btrace_block): Add constructor.
2234 (struct btrace_data_bts) <blocks>: Change to std::vector.
2235 * nat/linux-btrace.c (perf_event_read_bts): Update for
2236 std::vector.
2237 (linux_read_bts): Likewise.
2238
2239 2019-10-01 Tom Tromey <tom@tromey.com>
2240
2241 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2242
2243 2019-10-01 Tom Tromey <tom@tromey.com>
2244
2245 * stack.c (print_frame, info_frame_command_core): Use
2246 styled_string.
2247 * linux-thread-db.c (try_thread_db_load_1)
2248 (try_thread_db_load_from_pdir_1): Use styled_string.
2249 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2250 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2251 (maybe_print_unsupported_script_warning)
2252 (maybe_print_script_not_found_warning): Use styled_string.
2253 * ada-lang.c (user_select_syms): Use styled_string.
2254
2255 2019-10-01 Tom Tromey <tom@tromey.com>
2256
2257 * p-lang.c (pascal_printstr): Use metadata style.
2258 * value.c (show_convenience): Use metadata style.
2259 * valprint.c (valprint_check_validity, val_print_optimized_out)
2260 (val_print_not_saved, val_print_unavailable)
2261 (val_print_invalid_address, generic_val_print, val_print)
2262 (value_check_printable, val_print_array_elements): Use metadata
2263 style.
2264 * ui-out.h (class ui_out) <field_fmt>: New overload.
2265 <do_field_fmt>: Add style parameter.
2266 * ui-out.c (ui_out::field_fmt): New overload.
2267 * typeprint.c (type_print_unknown_return_type)
2268 (val_print_not_allocated, val_print_not_associated): Use metadata
2269 style.
2270 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2271 parameter.
2272 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2273 * tracepoint.c (tvariables_info_1): Use metadata style.
2274 * stack.c (print_frame_arg, print_frame_info, print_frame)
2275 (info_frame_command_core): Use metadata style.
2276 * skip.c (info_skip_command): Use metadata style.
2277 * rust-lang.c (rust_print_enum): Use metadata style.
2278 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2279 metadata style.
2280 * python/py-framefilter.c (py_print_single_arg): Use metadata
2281 style.
2282 * printcmd.c (do_one_display, print_variable_and_value): Use
2283 metadata style.
2284 * p-valprint.c (pascal_val_print)
2285 (pascal_object_print_value_fields): Use metadata style.
2286 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2287 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2288 parameter.
2289 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2290 * m2-valprint.c (m2_print_long_set): Use metadata style.
2291 * m2-typeprint.c (m2_print_type): Use metadata style.
2292 * infcmd.c (print_return_value_1): Use metadata style.
2293 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2294 * f-valprint.c (info_common_command_for_block): Use metadata
2295 style.
2296 * f-typeprint.c (f_type_print_base): Use metadata style.
2297 * expprint.c (print_subexp_standard): Use metadata style.
2298 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2299 * cli/cli-style.h (class cli_style_option): Add constructor.
2300 (metadata_style): Declare.
2301 * cli/cli-style.c (metadata_style): New global.
2302 (_initialize_cli_style): Register metadata style.
2303 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2304 parameter.
2305 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2306 * c-typeprint.c (c_type_print_base_struct_union)
2307 (c_type_print_base_1): Use metadata style.
2308 * breakpoint.c (watchpoint_value_print)
2309 (print_one_breakpoint_location): Use metadata style.
2310 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2311 style.
2312 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2313 style.
2314 * ada-valprint.c (val_print_packed_array_elements, printstr)
2315 (print_field_values, ada_val_print_ref, ada_val_print): Use
2316 metadata style.
2317 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2318 style.
2319 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2320 style.
2321 * ada-lang.c (user_select_syms): Use metadata style.
2322
2323 2019-10-01 Tom Tromey <tom@tromey.com>
2324
2325 * cli/cli-cmds.c (pwd_command): Style output.
2326
2327 2019-10-01 Pedro Alves <palves@redhat.com>
2328 Tom Tromey <tom@tromey.com>
2329
2330 * symtab.c (print_symbol_info): Use %ps.
2331 (print_msymbol_info): Use %ps.
2332 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2333 * printcmd.c (print_variable_and_value): Use %ps.
2334 * macrocmd.c (show_pp_source_pos): Use %ps.
2335 * infrun.c (print_exited_reason): Use ui_out::message.
2336 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2337 (describe_other_breakpoints): Use ui_out::message and new
2338 formats.
2339 (say_where): Use new formats.
2340 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2341 and new formats.
2342
2343 2019-10-01 Pedro Alves <palves@redhat.com>
2344 Tom Tromey <tom@tromey.com>
2345
2346 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2347 (test_gdb_formats): New function.
2348 (run_tests): Call it.
2349 (test_format_specifier): Update.
2350 * utils.h (fputs_filtered): Update comment.
2351 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2352 (fputs_styled_unfiltered): Declare.
2353 * utils.c (fputs_styled_unfiltered): New function.
2354 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2355 (vfprintf_filtered): Update.
2356 (vfprintf_unfiltered, vprintf_filtered): Update.
2357 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2358 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2359 disallow_ui_out_field>: New constants.
2360 (enum class field_kind): New.
2361 (struct base_field_s, struct signed_field_s): New.
2362 (signed_field): New function.
2363 (struct string_field_s): New.
2364 (string_field): New function.
2365 (struct styled_string_s): New.
2366 (styled_string): New function.
2367 (class ui_out) <message>: Add comment.
2368 <vmessage, call_do_message>: New methods.
2369 <do_message>: Add style parameter.
2370 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2371 methods.
2372 (ui_out::message): Rewrite.
2373 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2374 parameter.
2375 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2376 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2377 gdb_extensions parameter.
2378 (class format_piece): Add parameter to constructor.
2379 (n_int_args): New field.
2380 * gdbsupport/format.c (format_pieces::format_pieces): Add
2381 gdb_extensions parameter. Handle '*'.
2382 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2383 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2384 vfprintf_styled_no_gdbfmt.
2385 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2386 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2387 unfiltered output.
2388 * ui-style.h (struct ui_file_style) <ptr>: New method.
2389
2390 2019-10-01 Tom Tromey <tom@tromey.com>
2391
2392 * unittests/format_pieces-selftests.c: Update. Add final format.
2393 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2394 empty literal pieces.
2395
2396 2019-10-01 Tom Tromey <tom@tromey.com>
2397
2398 * ui-out.h (enum class ui_out_style_kind): Remove.
2399 (class ui_out) <field_string, field_stsream, do_field_string>:
2400 Change type of "style".
2401 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2402 (ui_out::field_string): Update.
2403 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2404 of "style".
2405 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2406 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2407 * stack.c (print_frame_arg, print_frame_info, print_frame):
2408 Update.
2409 * source.c (print_source_lines_base): Update.
2410 * solib.c (info_sharedlibrary_command): Update.
2411 * skip.c (info_skip_command): Update.
2412 * record-btrace.c (btrace_call_history_src_line)
2413 (btrace_call_history): Update.
2414 * python/py-framefilter.c (py_print_frame): Update.
2415 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2416 "style".
2417 * mi/mi-out.c (mi_ui_out::do_table_header)
2418 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2419 (mi_ui_out::do_field_string): Update.
2420 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2421 Update.
2422 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2423 "style".
2424 * cli-out.c (cli_ui_out::do_table_header)
2425 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2426 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2427 (cli_ui_out::do_field_fmt): Update.
2428 * breakpoint.c (print_breakpoint_location): Update.
2429 (update_static_tracepoint): Update.
2430
2431 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2432
2433 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2434 conversion of gdb_datadir.
2435 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2436 remove not needed c_str ().
2437
2438 2019-09-30 Ali Tamur <tamur@google.com>
2439
2440 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2441 (dwarf2_string_attr): Likewise.
2442
2443 2019-09-30 Ali Tamur <tamur@google.com>
2444
2445 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2446 (process_full_type_unit): Likewise.
2447 (dump_die_shallow): Likewise.
2448 (cu_debug_loc_section): Likewise.
2449
2450 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2451
2452 * minsyms.c (compare_minimal_symbols): Rename to...
2453 (minimal_symbol_is_less_than): ...this, and adjust to STL
2454 conventions (return bool, take arguments as references)
2455 (minimal_symbol_reader::install): Call std::sort instead
2456 of qsort.
2457
2458 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2459
2460 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2461 hash and why.
2462 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2463 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2464
2465 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2466
2467 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2468 * psympriv.h (add_psymbol_to_list): Move comment here and update
2469 it.
2470
2471 2019-09-29 Tom de Vries <tdevries@suse.de>
2472
2473 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2474 Use $tmpdir/$(basename "$output_file").dwz instead of
2475 "${output_file}.dwz".
2476
2477 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 PR gdb/25045
2480 * hppa-linux-nat.c: Include gdbarch.h.
2481
2482 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2483
2484 * blockframe.c (find_pc_partial_function): Change return type to bool.
2485 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2486 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2487 (stub_gnu_ifunc_resolve_name): Likewise.
2488 * symtab.c (compare_filenames_for_search): Likewise.
2489 (compare_glob_filenames_for_search): Likewise.
2490 (matching_obj_sections): Likewise.
2491 (symbol_matches_domain): Likewise.
2492 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2493 (find_line_pc): Change return type to bool.
2494 (find_line_pc_range): Likewise.
2495 (producer_is_realview): Likewise.
2496 * symtab.h (symbol_matches_domain): Likewise.
2497 (find_pc_partial_function): Likewise.
2498 (find_pc_line_pc_range): Likewise.
2499 (in_gnu_ifunc_stub): Likewise.
2500 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2501 (find_line_pc): Likewise.
2502 (find_line_pc_range): Likewise.
2503 (matching_obj_sections): Likewise.
2504 (find_line_symtab): Change out parameter to bool.
2505 (producer_is_realview): Change return type to bool.
2506 (compare_filenames_for_search): Likewise.
2507 (compare_glob_filenames_for_search): Likewise.
2508
2509 2019-09-26 Tom Tromey <tom@tromey.com>
2510
2511 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2512 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2513 * gdb_usleep.h: Remove.
2514 * gdb_usleep.c: Remove.
2515 * utils.c: Don't include gdb_usleep.h.
2516
2517 2019-09-26 Tom Tromey <tromey@adacore.com>
2518
2519 * python/py-type.c (type_to_type_object): Call check_typedef
2520 for stub types.
2521
2522 2019-09-26 Tom Tromey <tom@tromey.com>
2523
2524 * utils.h (initialize_utils): Don't declare.
2525 * top.c (gdb_init): Don't call initialize_utils.
2526 * utils.c (initialize_utils): Remove. Move contents...
2527 (_initialize_utils): ... here.
2528
2529 2019-09-25 Tom Tromey <tom@tromey.com>
2530
2531 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2532 * utils.h (make_hex_string): Don't declare.
2533 * utils.c (make_hex_string): Remove.
2534
2535 2019-09-24 Tom de Vries <tdevries@suse.de>
2536
2537 PR gdb/23815
2538 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2539 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2540
2541 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2542
2543 * NEWS: Mention new simulator port for PRU.
2544
2545 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2546
2547 * ada-exp.y (write_object_remaining): Update.
2548 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2549 and eliminate the static buffer.
2550 (ada_decode_symbol): Update.
2551 (ada_la_decode): Update.
2552 (ada_sniff_from_mangled_name): Update.
2553 (is_valid_name_for_wild_match): Update.
2554 (ada_lookup_name_info::matches): Update and simplify.
2555 (name_matches_regex): Update.
2556 (ada_add_global_exceptions): Update.
2557 * ada-lang.h (ada_decode): Update signature.
2558 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2559 * dwarf-index-write.c (debug_names::insert): Update.
2560
2561 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2564 formatting.
2565
2566 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2567
2568 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2569 Change "nonzero" to "true" in documentation.
2570
2571 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2572
2573 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2574 (_initialize_darwin_solib): Don't set
2575 darwin_so_ops.lookup_lib_global_symbol.
2576 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2577 set_gdbarch_iterate_over_objfiles_in_search_order.
2578 (elf_lookup_lib_symbol): Rename to...
2579 (svr4_iterate_over_objfiles_in_search_order): this, and update
2580 to iterate semantics.
2581 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2582 * solib.c (solib_global_lookup): Remove.
2583 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2584 (solib_global_lookup): Remove.
2585 * symtab.c (lookup_global_or_static_symbol): Remove call to
2586 solib_global_lookup.
2587
2588 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2589
2590 * NEWS: Move entries about default MI version now being
2591 version 3, and about the GDB/MI fix for multi-location
2592 breakpoints to the "since GDB 8.3" section.
2593
2594 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2595
2596 GDB 8.3.1 released.
2597
2598 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2599
2600 * NEWS: Mention that Cell/B.E. debugging support was removed.
2601 * MAINTAINERS: Remove spu target.
2602
2603 * config/djgpp/fnchange.lst: Remove entries for removed files.
2604
2605 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2606 spu-multiarch.o, and spu-tdep.o.
2607 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2608 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2609 spu-multiarch.c, and spu-tdep.c.
2610 * spu-linux-nat.c: Remove file.
2611 * spu-multiarch.c: Remove file.
2612 * spu-tdep.c: Remove file.
2613 * spu-tdep.h: Remove file.
2614 * solib-spu.c: Remove file.
2615 * solib-spu.h: Remove file.
2616
2617 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2618 * configure.nat (spu-linux): Remove.
2619 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2620 solib-multiarch.o from gdb_target_obs.
2621 (spu*-*-*): Remove.
2622
2623 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2624 feature flag.
2625 (ppc_linux_no_features): Update.
2626 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2627 Cell/B.E. support.
2628 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2629 (tdesc_powerpc_cell64l): Likewise.
2630 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2631 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2632 Cell/B.E. support.
2633 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2634 Do not include "features/rs6000/powerpc-cell32l.c" or
2635 "features/rs6000/powerpc-cell64l.c".
2636 (ppc_linux_spu_section): Remove.
2637 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2638 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2639 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2640 (ppc_linux_spe_context_lookup): Remove.
2641 (ppc_linux_spe_context_inferior_created): Remove.
2642 (ppc_linux_spe_context_solib_loaded): Remove.
2643 (ppc_linux_spe_context_solib_unloaded): Remove.
2644 (ppc_linux_spe_context): Remove.
2645 (struct ppu2spu_cache): Remove.
2646 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2647 (struct ppu2spu_data): Remove.
2648 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2649 ppu2spu_unwind): Remove.
2650 (ppc_linux_init_abi): Remove Cell/B.E. support.
2651 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2652
2653 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2654 (rs6000/powerpc-cell64l-expedite): Likewise
2655 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2656 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2657 rs6000/powerpc-cell64l.xml.
2658 * features/rs6000/powerpc-cell32l.xml: Remove.
2659 * features/rs6000/powerpc-cell64l.xml: Likewise.
2660 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2661 * features/rs6000/powerpc-cell64l.c: Likewise.
2662 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2663 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2664 * regformats/reg-spu.dat: Remove.
2665
2666 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2667 * corelow.c (struct spuid_list): Remove.
2668 (add_to_spuid_list): Remove.
2669 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2670 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2671 (remote_protocol_features): Remove associated entries.
2672 (_initialize_remote): No longer initialize them.
2673 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2674 * linux-nat.c (SPUFS_MAGIC): Remove.
2675 (linux_proc_xfer_spu): Remove.
2676 (spu_enumerate_spu_ids): Remove.
2677 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2678 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2679 (linux_make_corefile_notes): No longer call it.
2680
2681 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2682 (cooked_write_test): Likewise.
2683
2684 2019-09-20 Tom Tromey <tom@tromey.com>
2685
2686 * NEWS: Mention case-sensitivity of TUI commands.
2687 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2688 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2689 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2690
2691 2019-09-20 Tom Tromey <tom@tromey.com>
2692
2693 * tui/tui-source.c (tui_source_window::set_contents): Use
2694 make_unique_xstrdup.
2695 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2696 make_unique_xstrdup.
2697
2698 2019-09-20 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-data.c: Remove separator comments.
2701 * tui/tui-layout.c: Remove separator comments.
2702 * tui/tui-win.c: Remove separator comments.
2703 * tui/tui-wingeneral.c: Remove separator comments.
2704
2705 2019-09-20 Tom Tromey <tom@tromey.com>
2706
2707 * tui/tui.h (strcat_to_buf): Don't declare.
2708 * tui/tui.c (strcat_to_buf): Remove.
2709
2710 2019-09-20 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2713 from "fullname".
2714 * tui/tui-source.c (tui_source_window::set_contents)
2715 (tui_source_window::location_matches_p)
2716 (tui_source_window::maybe_update): Update.
2717
2718 2019-09-20 Tom Tromey <tom@tromey.com>
2719
2720 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2721 Update.
2722 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2723 prefix.
2724 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2725 (tui_data_window::line_from_reg_element_no)
2726 (tui_data_window::first_reg_element_no_inline)
2727 (tui_data_window::show_registers)
2728 (tui_data_window::show_register_group)
2729 (tui_data_window::display_registers_from)
2730 (tui_data_window::display_registers_from_line)
2731 (tui_data_window::first_data_item_displayed)
2732 (tui_data_window::delete_data_content_windows)
2733 (tui_data_window::erase_data_content)
2734 (tui_data_window::do_scroll_vertical)
2735 (tui_data_window::refresh_window)
2736 (tui_data_window::check_register_values): Update.
2737
2738 2019-09-20 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2741 (struct tui_locator_window) <full_name, proc_name>: Now
2742 std::string.
2743 * tui/tui-stack.c (tui_locator_window::make_status_line)
2744 (tui_locator_window::set_locator_fullname)
2745 (tui_locator_window::set_locator_info): Update.
2746 * tui/tui-source.c (tui_source_window::set_contents)
2747 (tui_source_window::showing_source_p): Update.
2748
2749 2019-09-20 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2752 Don't call tui_locator_win_info_ptr.
2753
2754 2019-09-20 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2757
2758 2019-09-20 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2761 height for locator.
2762 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2763 * tui/tui-layout.c (show_source_disasm_command, show_data)
2764 (show_source_or_disasm_and_command): Use 1 as height for locator.
2765
2766 2019-09-20 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui.c (tui_enable): Update.
2769 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2770 Update.
2771 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2772 Update.
2773 * tui/tui-data.c (win_resized): Now bool.
2774 (tui_win_resized): Return bool.
2775 (tui_set_win_resized_to): Accept a bool.
2776
2777 2019-09-20 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2780 Change type of "refresh_values_only".
2781 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2782 type of "refresh_values_only".
2783
2784 2019-09-20 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2787 std::string.
2788 (tui_disassemble): Add "pos" parameter.
2789 (tui_disasm_window::set_contents): Simplify.
2790
2791 2019-09-20 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-winsource.h (struct tui_source_window_base)
2794 <show_source_content>: Now private.
2795 * tui/tui-winsource.c
2796 (tui_source_window_base::show_source_content): Don't handle empty
2797 content case.
2798
2799 2019-09-20 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-layout.c (show_source_disasm_command)
2802 (show_source_or_disasm_and_command): Don't call
2803 show_source_content.
2804
2805 2019-09-20 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2808 Declare.
2809 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2810 from tui_make_status_line.
2811 (tui_locator_window::rerender): Update.
2812
2813 2019-09-20 Tom Tromey <tom@tromey.com>
2814
2815 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2816 (tui_locator_window::rerender): Update.
2817
2818 2019-09-20 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-winsource.h (struct tui_source_window_base)
2821 <~tui_source_window_base>: Don't declare.
2822 <fullname>: Remove.
2823 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2824 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2825 member.
2826 * tui/tui-source.c (tui_source_window::set_contents): Update.
2827 (tui_source_window::location_matches_p)
2828 (tui_source_window::maybe_update): Update.
2829
2830 2019-09-20 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-winsource.h (~tui_source_element): Remove.
2833 (tui_source_element): Update.
2834 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2835 * tui/tui-winsource.c (tui_show_source_line): Update.
2836 * tui/tui-source.c (tui_source_window::set_contents): Update.
2837 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2838
2839 2019-09-20 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2842 declare.
2843 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2844 tui_clear_source_windows_detail.
2845 * tui/tui-winsource.h (struct tui_source_window_base)
2846 <clear_detail>: Don't declare.
2847 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2848 Remove.
2849 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2850
2851 2019-09-20 Tom Tromey <tromey@adacore.com>
2852
2853 PR ada/24919:
2854 * block.c (contained_in): Fix final return value.
2855
2856 2019-09-20 Alan Modra <amodra@gmail.com>
2857
2858 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2859 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2860 (read_indirect_string_from_dwz): Use bfd accessor.
2861 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2862 * machoread.c (macho_symfile_read_all_oso): Likewise.
2863 * solib.c (solib_bfd_open): Likewise.
2864
2865 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2866
2867 * eval.c: Move declaration of overload_resolution to...
2868 * value.h: ...here.
2869
2870 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2871
2872 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2873 * arm-linux-tdep.c: Likewise.
2874 * arm-nbsd-nat.c: Likewise.
2875 * arm-tdep.h: Declare arm_apcs_32.
2876 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2877
2878 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2879
2880 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2881 * dwarf2read.h: Declare dwarf_always_disassemble.
2882
2883 2019-09-19 Tom de Vries <tdevries@suse.de>
2884
2885 PR gdb/25009
2886 * source-cache.c (source_cache::ensure): Catch exception thrown during
2887 construction of the highlighter.
2888
2889 2019-09-18 Alan Modra <amodra@gmail.com>
2890
2891 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2892 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2893 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2894 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2895 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2896 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2897 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2898 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2899 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2900 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2901 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2902 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2903 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2904 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2905 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2906 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2907 * mi/mi-interp.c: Update throughout for bfd section macro and
2908 function changes.
2909 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2910 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2911
2912 2019-09-18 Tom Tromey <tom@tromey.com>
2913
2914 * NEWS: Add entry.
2915 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2916 call rl_initialize.
2917 (tui_enable): Do not call rl_initialize.
2918
2919 2019-09-18 Christian Groessler <chris@groessler.org>
2920
2921 * alpha-linux-nat.c: Include gdbarch.h.
2922
2923 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2924
2925 * ui-file.c: Include cli/cli-style.h.
2926 (term_cli_styling): Remove cli_styling declaration.
2927
2928 2019-09-18 Alan Modra <amodra@gmail.com>
2929
2930 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2931 to bfd_asymbol_section.
2932
2933 2019-09-18 Alan Modra <amodra@gmail.com>
2934
2935 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2936 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2937 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2938
2939 2019-09-18 Alan Modra <amodra@gmail.com>
2940
2941 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2942 * spu-linux-nat.c (spu_bfd_open): Likewise.
2943
2944 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2945
2946 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2947 to bool to match definition in dwarf2read.c.
2948
2949 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2950
2951 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2952 (print_signatures): Likewise.
2953 (trust_pad_over_xvs): Likewise.
2954 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2955 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2956 * arm-linux-nat.c (arm_apcs_32): Likewise.
2957 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2958 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2959 * arm-tdep.c (arm_debug): Likewise.
2960 (arm_apcs_32): Likewise.
2961 * auto-load.c (debug_auto_load): Likewise.
2962 (auto_load_gdb_scripts): Likewise.
2963 (global_auto_load): Likewise.
2964 (auto_load_local_gdbinit): Likewise.
2965 (auto_load_local_gdbinit_loaded): Likewise.
2966 * auto-load.h (global_auto_load): Likewise.
2967 (auto_load_local_gdbinit): Likewise.
2968 (auto_load_local_gdbinit_loaded): Likewise.
2969 * breakpoint.c (disconnected_dprintf): Likewise.
2970 (breakpoint_proceeded): Likewise.
2971 (automatic_hardware_breakpoints): Likewise.
2972 (always_inserted_mode): Likewise.
2973 (target_exact_watchpoints): Likewise.
2974 (_initialize_breakpoint): Update.
2975 * breakpoint.h (target_exact_watchpoints): Change to bool.
2976 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2977 * cli/cli-cmds.c (trace_commands): Likewise.
2978 * cli/cli-cmds.h (trace_commands): Likewise.
2979 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2980 to bool*.
2981 * cli/cli-logging.c (logging_overwrite): Change to bool.
2982 (logging_redirect): Likewise.
2983 (debug_redirect): Likewise.
2984 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2985 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2986 to bool.
2987 <boolean_option_def>: Update.
2988 (struct flag_option_def): Change default type of Context to bool
2989 from int.
2990 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2991 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2992 (get_setshow_command_value_string): Likewise.
2993 * cli/cli-style.c (cli_styling): Change to bool.
2994 (source_styling): Likewise.
2995 * cli/cli-style.h (source_styling): Likewise.
2996 (cli_styling): Likewise.
2997 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2998 to bool.
2999 * command.h (var_types): Update comment.
3000 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3001 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3002 bool.
3003 (debug_compile_cplus_scopes): Likewise.
3004 * compile/compile-internal.h (compile_debug): Likewise.
3005 * compile/compile.c (compile_debug): Likewise.
3006 (struct compile_options) <raw>: Likewise.
3007 * cp-support.c (catch_demangler_crashes): Likewise.
3008 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3009 (usr_cmd_cris_dwarf2_cfi): Likewise.
3010 * csky-tdep.c (csky_debug): Likewise.
3011 * darwin-nat.c (enable_mach_exceptions): Likewise.
3012 * dcache.c (dcache_enabled_p): Likewise.
3013 * defs.h (info_verbose): Likewise.
3014 * demangle.c (demangle): Likewise.
3015 (asm_demangle): Likewise.
3016 * dwarf-index-cache.c (debug_index_cache): Likewise.
3017 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3018 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3019 * dwarf2read.c (check_physname): Likewise.
3020 (use_deprecated_index_sections): Likewise.
3021 (dwarf_always_disassemble): Likewise.
3022 * eval.c (overload_resolution): Likewise.
3023 * event-top.c (set_editing_cmd_var): Likewise.
3024 (exec_done_display_p): Likewise.
3025 * event-top.h (set_editing_cmd_var): Likewise.
3026 (exec_done_display_p): Likewise.
3027 * exec.c (write_files): Likewise.
3028 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3029 (debug_fbsd_nat): Likewise.
3030 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3031 Likewise.
3032 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3033 <backtrace_past_entry> Likewise.
3034 * gdb-demangle.h (demangle): Likewise.
3035 (asm_demangle): Likewise.
3036 * gdb_bfd.c (bfd_sharing): Likewise.
3037 * gdbcore.h (write_files): Likewise.
3038 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3039 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3040 * gdbthread.h (print_thread_events): Likewise.
3041 * gdbtypes.c (opaque_type_resolution): Likewise.
3042 (strict_type_checking): Likewise.
3043 * gnu-nat.c (gnu_debug_flag): Likewise.
3044 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3045 * guile/scm-param.c (pascm_variable): Add boolval.
3046 (add_setshow_generic): Update.
3047 (pascm_param_value): Update.
3048 (pascm_set_param_value_x): Update.
3049 * hppa-tdep.c (hppa_debug): Change to bool..
3050 * infcall.c (may_call_functions_p): Likewise.
3051 (coerce_float_to_double_p): Likewise.
3052 (unwind_on_signal_p): Likewise.
3053 (unwind_on_terminating_exception_p): Likewise.
3054 * infcmd.c (startup_with_shell): Likewise.
3055 * inferior.c (print_inferior_events): Likewise.
3056 * inferior.h (startup_with_shell): Likewise.
3057 (print_inferior_events): Likewise.
3058 * infrun.c (step_stop_if_no_debug): Likewise.
3059 (detach_fork): Likewise.
3060 (debug_displaced): Likewise.
3061 (disable_randomization): Likewise.
3062 (non_stop): Likewise.
3063 (non_stop_1): Likewise.
3064 (observer_mode): Likewise.
3065 (observer_mode_1): Likewise.
3066 (set_observer_mode): Update.
3067 (sched_multi): Change to bool.
3068 * infrun.h (debug_displaced): Likewise.
3069 (sched_multi): Likewise.
3070 (step_stop_if_no_debug): Likewise.
3071 (non_stop): Likewise.
3072 (disable_randomization): Likewise.
3073 * linux-tdep.c (use_coredump_filter): Likewise.
3074 (dump_excluded_mappings): Likewise.
3075 * linux-thread-db.c (auto_load_thread_db): Likewise.
3076 (check_thread_db_on_load): Likewise.
3077 * main.c (captured_main_1): Update.
3078 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3079 xx2_opt, boolean_opt>: Change to bool.
3080 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3081 * maint.c (maintenance_profile_p): Likewise.
3082 (per_command_time): Likewise.
3083 (per_command_space): Likewise.
3084 (per_command_symtab): Likewise.
3085 * memattr.c (inaccessible_by_default): Likewise.
3086 * mi/mi-main.c (mi_async): Likewise.
3087 (mi_async_1): Likewise.
3088 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3089 * nat/fork-inferior.h (startup_with_shell): Likewise.
3090 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3091 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3092 * nios2-tdep.c (nios2_debug): Likewise.
3093 * or1k-tdep.c (or1k_debug): Likewise.
3094 * parse.c (parser_debug): Likewise.
3095 * parser-defs.h (parser_debug): Likewise.
3096 * printcmd.c (print_symbol_filename): Likewise.
3097 * proc-api.c (procfs_trace): Likewise.
3098 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3099 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3100 (set_parameter_value): Update.
3101 (add_setshow_generic): Update.
3102 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3103 to bool*.
3104 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3105 int*.
3106 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3107 * record-btrace.c (record_btrace_target::store_registers): Update.
3108 * record-full.c (record_full_memory_query): Change to bool.
3109 (record_full_stop_at_limit): Likewise.
3110 * record-full.h (record_full_memory_query): Likewise.
3111 * remote-notif.c (notif_debug): Likewise.
3112 * remote-notif.h (notif_debug): Likewise.
3113 * remote.c (use_range_stepping): Likewise.
3114 (interrupt_on_connect): Likewise.
3115 (remote_break): Likewise.
3116 * ser-tcp.c (tcp_auto_retry): Likewise.
3117 * ser-unix.c (serial_hwflow): Likewise.
3118 * skip.c (debug_skip): Likewise.
3119 * solib-aix.c (solib_aix_debug): Likewise.
3120 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3121 (spu_auto_flush_cache_p): Likewise.
3122 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3123 Likewise.
3124 (struct info_print_options) <quiet>: Likewise.
3125 * symfile-debug.c (debug_symfile): Likewise.
3126 * symfile.c (auto_solib_add): Likewise.
3127 (separate_debug_file_debug): Likewise.
3128 * symfile.h (auto_solib_add): Likewise.
3129 (separate_debug_file_debug): Likewise.
3130 * symtab.c (basenames_may_differ): Likewise.
3131 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3132 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3133 (struct info_types_options) <quiet>: Likewise.
3134 * symtab.h (demangle): Likewise.
3135 (basenames_may_differ): Likewise.
3136 * target-dcache.c (stack_cache_enabled_1): Likewise.
3137 (code_cache_enabled_1): Likewise.
3138 * target.c (trust_readonly): Likewise.
3139 (may_write_registers): Likewise.
3140 (may_write_memory): Likewise.
3141 (may_insert_breakpoints): Likewise.
3142 (may_insert_tracepoints): Likewise.
3143 (may_insert_fast_tracepoints): Likewise.
3144 (may_stop): Likewise.
3145 (auto_connect_native_target): Likewise.
3146 (target_stop_and_wait): Update.
3147 (target_async_permitted): Change to bool.
3148 (target_async_permitted_1): Likewise.
3149 (may_write_registers_1): Likewise.
3150 (may_write_memory_1): Likewise.
3151 (may_insert_breakpoints_1): Likewise.
3152 (may_insert_tracepoints_1): Likewise.
3153 (may_insert_fast_tracepoints_1): Likewise.
3154 (may_stop_1): Likewise.
3155 * target.h (target_async_permitted): Likewise.
3156 (may_write_registers): Likewise.
3157 (may_write_memory): Likewise.
3158 (may_insert_breakpoints): Likewise.
3159 (may_insert_tracepoints): Likewise.
3160 (may_insert_fast_tracepoints): Likewise.
3161 (may_stop): Likewise.
3162 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3163 (make_thread_apply_all_options_def_group): Change argument from int*
3164 to bool*.
3165 (thread_apply_all_command): Update.
3166 (print_thread_events): Change to bool.
3167 * top.c (confirm): Likewise.
3168 (command_editing_p): Likewise.
3169 (history_expansion_p): Likewise.
3170 (write_history_p): Likewise.
3171 (info_verbose): Likewise.
3172 * top.h (confirm): Likewise.
3173 (history_expansion_p): Likewise.
3174 * tracepoint.c (disconnected_tracing): Likewise.
3175 (circular_trace_buffer): Likewise.
3176 * typeprint.c (print_methods): Likewise.
3177 (print_typedefs): Likewise.
3178 * utils.c (debug_timestamp): Likewise.
3179 (sevenbit_strings): Likewise.
3180 (pagination_enabled): Likewise.
3181 * utils.h (sevenbit_strings): Likewise.
3182 (pagination_enabled): Likewise.
3183 * valops.c (overload_resolution): Likewise.
3184 * valprint.h (struct value_print_options) <prettyformat_arrays,
3185 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3186 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3187 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3188 Likewise.
3189 * windows-nat.c (new_console): Likewise.
3190 (cygwin_exceptions): Likewise.
3191 (new_group): Likewise.
3192 (debug_exec): Likewise.
3193 (debug_events): Likewise.
3194 (debug_memory): Likewise.
3195 (debug_exceptions): Likewise.
3196 (useshell): Likewise.
3197 * windows-tdep.c (maint_display_all_tib): Likewise.
3198 * xml-support.c (debug_xml): Likewise.
3199
3200 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3201
3202 * source.c (prepare_path_for_appending): New function.
3203 (openp): Make use of new function.
3204 (find_and_open_source): Search for the compilation directory and
3205 source file as a relative path beneath the directory search path.
3206
3207 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * source-cache.c (source_cache::get_line_charpos): Catch
3210 exceptions and return false, this matches the behaviour documented
3211 in the header file.
3212
3213 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3214
3215 * ada-tasks.c (info_task): Remove quoting of the task's name.
3216
3217 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3218
3219 * symfile.c (auto_solib_add): Replace comment with a reference
3220 to the header file.
3221
3222 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3223
3224 * NEWS: Mention that gdb can now be compiled with Python 3
3225 on Windows.
3226
3227 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * maint.c (maint_print_section_data::maint_print_section_data):
3230 Force use of 'float log10 (float)' by casting the argument to
3231 float.
3232
3233 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * maint.c: Add 'cmath' include.
3236 (struct maint_print_section_data): New structure.
3237 (print_section_index): New function.
3238 (print_bfd_section_info): Add header comment, small whitespace
3239 cleanup, and update to call new print_section_index function.
3240 (print_objfile_section_info): Likewise.
3241 (maint_obj_section_from_bfd_section): New function.
3242 (print_bfd_section_info_maybe_relocated): New function.
3243 (maintenance_info_sections): Add header comment, always use
3244 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3245
3246 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3249 inner scope, add check that the objfile has psymtabs before
3250 checking psymtabs_addrmap.
3251 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3252
3253 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3254
3255 * NEWS: Announce that Ada task names are now shown at more places,
3256 and between quotes (except in info task output).
3257 * gdb/ada-tasks.c (task_to_str): New function.
3258 (display_current_task_id): Call task_to_str.
3259 (task_command_1): Likewise.
3260 (print_ada_task_info): In non-mi mode, Properly align headers and data
3261 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3262
3263 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3264
3265 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3266 prstatus.pr_lwp.pr_info instead of making it up.
3267
3268 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3269
3270 * auto-load.c (auto_load_expand_dir_vars): Update.
3271 * defs.h (gdb_datadir): Change to std::string.
3272 (python_libdir): Likewise.
3273 (relocate_gdb_directory): Change return type to std::string.
3274 * guile/guile.c (gdbscm_data_directory): Update.
3275 (initialize_scheme_side): Update.
3276 * jit.c (jit_reader_dir): Change to std::string.
3277 (jit_reader_load_command): Update.
3278 * main.c (gdb_datadir): Change to std::string.
3279 (python_libdir): Likewise.
3280 (set_gdb_data_directory): Update.
3281 (relocate_path): Change to return std::string.
3282 (relocate_gdb_directory): Change to return std::string.
3283 (relocate_gdbinit_path_maybe_in_datadir): Update.
3284 (captured_main_1): Update.
3285 * python/python.c (do_start_initialization): Update.
3286 * top.c (show_gdb_datadir): Update.
3287 * xml-syscall.c (xml_init_syscalls_info): Update.
3288 (init_syscalls_info): Update.
3289
3290 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3291
3292 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3293 out of get_init_files.
3294 (get_init_files): Update.
3295
3296 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3297
3298 * main.c (get_init_files): Change to use std::string.
3299 (captured_main_1): Update.
3300 (print_gdb_help): Update.
3301
3302 2019-09-11 Ali Tamur <tamur@google.com>
3303
3304 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3305 implementation.
3306
3307 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3308
3309 * dbxread.c (read_dbx_symtab): Update.
3310 * dwarf2read.c (load_partial_dies): Update.
3311 * mdebugread.c (parse_partial_symbols): Update.
3312 (handle_psymbol_enumerators): Update.
3313 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3314 * psymtab.c (add_psymbol_to_bcache): Likewise.
3315 (add_psymbol_to_list): Likewise.
3316 * symtab.c (symbol_set_names): Likewise.
3317 * symtab.h (symbol_set_names): Likewise.
3318 * xcoffread.c (scan_xcoff_symtab): Update.
3319
3320 2019-09-11 Tom Tromey <tom@tromey.com>
3321
3322 * symfile-mem.c (symbol_file_add_from_memory): Use
3323 bfd_set_filename.
3324 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3325 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3326
3327 2019-09-10 Tom Tromey <tromey@adacore.com>
3328
3329 * dwarf-index-write.c (write_psymbols): Extend error message.
3330 (debug_names::insert): Add Ada code.
3331 (debug_names::write_psymbols): Remove Ada check.
3332 (debug_names) <m_string_obstack>: New member.
3333 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3334 (gdb_index_symbol_name_matcher::matches): Remove.
3335 (mapped_index_base::find_name_components_bounds): Add "lang"
3336 parameter.
3337 (mapped_index_base::build_name_components): Also split names
3338 according to Ada syntax.
3339 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3340 type of "match_callback".
3341 (check_match, check_find_bounds_finds)
3342 (dw2_expand_symtabs_matching): Update.
3343 (dw2_debug_names_iterator): Add new constructor.
3344 (dw2_debug_names_map_matching_symbols): New function.
3345 (dw2_debug_names_expand_symtabs_matching): Update.
3346 (dwarf2_debug_names_functions): Use
3347 dw2_debug_names_map_matching_symbols.
3348
3349 2019-09-10 Tom Tromey <tromey@adacore.com>
3350
3351 * dwarf2read.c (dw2_get_file_names_reader): Add the
3352 CU's file name to the results.
3353
3354 2019-09-10 Tom Tromey <tromey@adacore.com>
3355
3356 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3357 map_matching_symbols. Update.
3358 * dwarf2read.c (dw2_map_matching_symbols): Update.
3359 * psymtab.c (match_partial_symbol): Change type; update.
3360 (psym_map_matching_symbols): Likewise.
3361 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3362 type; update.
3363 * symfile.h (struct quick_symbol_functions)
3364 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3365 Remove "match".
3366
3367 2019-09-10 Tom Tromey <tromey@adacore.com>
3368
3369 * psymtab.c (map_block): Remove.
3370 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3371 * symtab.c (iterate_over_symbols_terminated): New function.
3372 * symtab.c (iterate_over_symbols_terminated): Declare.
3373
3374 2019-09-10 Tom Tromey <tromey@adacore.com>
3375
3376 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3377 * language.h (struct language_defn) <la_iterate_over_symbols>:
3378 Return bool.
3379 * symtab.c (iterate_over_symbols): Return bool.
3380 * symtab.h (iterate_over_symbols): Return bool.
3381
3382 2019-09-10 Tom Tromey <tromey@adacore.com>
3383
3384 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3385 (add_nonlocal_symbols): Update.
3386 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3387 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3388 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3389 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3390 Change type of "callback". Remove "data".
3391
3392
3393 2019-09-09 Ali Tamur <tamur@google.com>
3394
3395 * dwarf2read.c (comp_unit_head): Update comment.
3396 (dwarf2_dwo_name): New function declaration.
3397 (dwarf_unit_type_name): New function declaration.
3398 (read_comp_unit_head): Add support for new compilation units,
3399 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3400 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3401 (currently named as "signature") in their header. Also clarify error
3402 messages.
3403 (lookup_dwo_id): New function. Returns the dwo id of the given
3404 compile unit.
3405 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3406 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3407 functions.
3408 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3409 (dwarf2_dwo_name): Get the dwo name if present.
3410 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3411 purposes.
3412
3413 2019-09-09 Tom Tromey <tom@tromey.com>
3414
3415 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3416
3417 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3418
3419 * python/python.c (do_start_initialization): Make progname_copy static,
3420 to avoid a leak report.
3421
3422 2019-09-08 Tom Tromey <tom@tromey.com>
3423
3424 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3425
3426 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3429 Change type to gdb::optional<block_enum>.
3430 (dw2_symtab_iter_init): Change block_index parameter type
3431 to gdb::optional<block_enum>.
3432 (dw2_lookup_symbol): Change block_index parameter
3433 type to block_enum.c
3434 (dw2_debug_names_lookup_symbol): Likewise.
3435 * psymtab.c (psym_lookup_symbol): Likewise.
3436 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3437 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3438 Likewise.
3439
3440 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3441
3442 * defs.h (relocate_gdb_directory): Change int to bool in
3443 signature and rename flag to relocatable.
3444 * main.c (relocate_path): Likewise.
3445 (relocate_gdb_directory): Likewise.
3446
3447 2019-09-06 Alan Modra <amodra@gmail.com>
3448
3449 * coffread.c (coff_symfile_read): Constify filename variable.
3450 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3451 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3452 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3453 * solib.c (reload_shared_libraries_1): Likewise.
3454 * symfile.c (reread_symbols): Likewise.
3455 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3456 * solib-darwin.c (darwin_bfd_open): Likewise.
3457 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3458
3459 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3462 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3463
3464 2019-09-03 Tom Tromey <tromey@adacore.com>
3465
3466 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3467 types.
3468 (has_negatives): Unbias a range type bound.
3469 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3470 * gdbtypes.c (operator==): Handle new field.
3471 (create_range_type): Add "bias" parameter.
3472 (create_static_range_type, resolve_dynamic_range): Update.
3473 * gdbtypes.h (struct range_bounds) <bias>: New member.
3474 (create_range_type): Add bias parameter.
3475 * printcmd.c (print_scalar_formatted): Unbias range types.
3476 * value.c (unpack_long): Unbias range types.
3477 (pack_long): Bias range types.
3478
3479 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3480
3481 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3482 probe arguments.
3483
3484 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3485
3486 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3487 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3488 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3489 (compile_probe_arg): Likewise.
3490 * probe.h (get_argument_count): Likewise.
3491 * solib-svr4.c (solib_event_probe_action): Likewise.
3492 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3493
3494 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3495
3496 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3497 code to here...
3498 (svr4_create_solib_event_breakpoints): ...from here.
3499
3500 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3501
3502 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3503 suffix from warning message.
3504
3505 2019-08-30 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-winsource.h (struct tui_source_window_base)
3508 <refresh_all>: Don't declare.
3509 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3510 Remove.
3511 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3512 tui_show_locator_content.
3513 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3514 declare.
3515 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3516 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3517 declare.
3518
3519 2019-08-30 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3522
3523 2019-08-30 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3526 Remove unnecessary forward declarations.
3527
3528 2019-08-30 Tom Tromey <tom@tromey.com>
3529
3530 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3531 rerender.
3532 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3533 tui_show_locator_content.
3534
3535 2019-08-30 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3538 (tui_locator_window::rerender): Rewrite using body of previous
3539 tui_show_locator_content.
3540
3541 2019-08-30 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3544 set_locator_fullname>: New methods.
3545 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3546 Rename from tui_set_locator_fullname.
3547 (tui_locator_window::set_locator_info): Rename from
3548 tui_set_locator_info. Return bool.
3549 (tui_update_locator_fullname, tui_show_frame_info): Update.
3550
3551 2019-08-30 Tom Tromey <tom@tromey.com>
3552
3553 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3554
3555 2019-08-30 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3558 call touchwin.
3559
3560 2019-08-30 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-wingeneral.c (box_win): Assume win_info and
3563 win_info->handle cannot be NULL.
3564
3565 2019-08-30 Tom Tromey <tom@tromey.com>
3566
3567 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3568 refresh_window>: Declare.
3569 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3570 resize.
3571 (tui_data_item_window::rerender): Rename from
3572 tui_display_register.
3573 (tui_data_item_window::refresh_window): New method.
3574 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3575 no-op.
3576
3577 2019-08-30 Tom Tromey <tom@tromey.com>
3578
3579 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3580 regs_column_count, current_group>: Move later. Now private.
3581 <get_current_group>: New method.
3582 * tui/tui-regs.c (tui_reg_command): Update.
3583 * tui/tui-layout.c (tui_set_layout): Update.
3584
3585 2019-08-30 Tom Tromey <tom@tromey.com>
3586
3587 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3588 (tui_data_window::rerender): Don't call
3589 check_and_display_highlight_if_needed.
3590 (tui_data_window::refresh_all): Remove call to
3591 erase_data_content.
3592
3593 2019-08-30 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3596 (tui_data_window::display_registers_from)
3597 (tui_data_window::display_reg_element_at_line)
3598 (tui_data_window::display_registers_from_line): Remove checks of
3599 "empty".
3600
3601 2019-08-30 Tom Tromey <tom@tromey.com>
3602
3603 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3604 Don't declare.
3605 * tui/tui-regs.c (tui_data_window::show_registers): Call
3606 rerender.
3607 (tui_data_window::rerender): Rename from display_all_data.
3608 (tui_data_window::rerender): Remove old implementation.
3609
3610 2019-08-30 Tom Tromey <tom@tromey.com>
3611
3612 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3613 text.
3614 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3615
3616 2019-08-29 Bernhard Wodok <barto@gmx.net>
3617 Sergio Durigan Junior <sergiodj@redhat.com>
3618
3619 PR win32/24284
3620 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3621
3622 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3625 when searching for types.
3626
3627 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * f-lang.c (f_language_defn): Use f_print_typedef.
3630 * f-lang.h (f_print_typedef): Declare.
3631 * f-typeprint.c (f_print_typedef): Define.
3632
3633 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3634
3635 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3636
3637 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3638
3639 * cli/cli-utils.c (info_print_options_defs): Delete.
3640 (make_info_print_options_def_group): Delete.
3641 (extract_info_print_options): Delete.
3642 (info_print_command_completer): Delete.
3643 (info_print_args_help): Add extra parameter, and optionally
3644 include text about -n flag.
3645 * cli/cli-utils.h (struct info_print_options): Delete.
3646 (extract_info_print_options): Delete declaration.
3647 (info_print_command_completer): Delete declaration.
3648 (info_print_args_help): Add extra parameter, extend header
3649 comment.
3650 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3651 search_symbols.
3652 * stack.c (struct info_print_options): New type.
3653 (info_print_options_defs): New file scoped variable.
3654 (make_info_print_options_def_group): New static function.
3655 (info_print_command_completer): New static function.
3656 (info_locals_command): Update to use new local functions.
3657 (info_args_command): Likewise.
3658 (_initialize_stack): Add extra parameter to calls to
3659 info_print_args_help.
3660 * symtab.c (search_symbols): Add extra parameter, use this to
3661 possibly excluse non-debug symbols.
3662 (symtab_symbol_info): Add extra parameter, which is passed on to
3663 search_symbols.
3664 (struct info_print_options): New type.
3665 (info_print_options_defs): New file scoped variable.
3666 (make_info_print_options_def_group): New static function.
3667 (info_print_command_completer): New static function.
3668 (info_variables_command): Update to use local functions, and pass
3669 extra parameter through to symtab_symbol_info.
3670 (info_functions_command): Likewise.
3671 (info_types_command): Pass additional argument through to
3672 symtab_symbol_info.
3673 (rbreak_command): Pass extra argument to search_symbols.
3674 (_initialize_symtab): Add extra arguments for calls to
3675 info_print_args_help, and update help text for 'info variables',
3676 'whereis', and 'info functions' commands.
3677 * symtab.h (search_symbols): Add extra argument to declaration.
3678 * NEWS: Mention new flags.
3679
3680 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3681
3682 * symtab.c (lookup_static_symbol): Call the new function (and move
3683 it down to be next to lookup_global_symbol).
3684 (struct global_sym_lookup_data): Add block_enum member and rename to...
3685 (struct global_or_static_sym_lookup_data): ...this.
3686 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3687 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3688 (lookup_symbol_global_or_static_iterator_cb): ...this.
3689 (lookup_global_or_static_symbol): New function.
3690 (lookup_global_symbol): Call new function.
3691
3692 2019-08-26 Tom de Vries <tdevries@suse.de>
3693
3694 PR c++/24852
3695 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3696 when pc_probe.prob == NULL.
3697
3698 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3701 variable symbol_linkage to symbol_linkage_.
3702
3703 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3706 represent whether the symbol is static, dynamic, or we don't
3707 know.
3708
3709 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3710
3711 * gdb/rx-tdep.c (rx_register_names): New.
3712 (rx_register_name): Delete.
3713 (rx_psw_type): Delete.
3714 (rx_fpsw_type): Delete.
3715 (rx_register_type): Delete.
3716 (rx_gdbarch_init): Convert target-descriptions.
3717 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3718 * gdb/features/Makefile: Add rx.xml.
3719 * gdb/features/rx.xml: New.
3720 * gdb/features/rx.c: Generated.
3721 * gdb/NEWS: Mention target description support.
3722
3723 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3724
3725 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3726 *slot_ptr.
3727
3728 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3729
3730 * configure.ac: Don't check for 'dlfcn.h' (moved to
3731 gdbsupport/common.m4).
3732 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3733 'gdbsupport/'.
3734 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3735 * compile/compile-c-support.c: Include
3736 'gdbsupport/gdb-dlfcn.h'.
3737 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3738 * gdb-dlfcn.c: Move to...
3739 * gdbsupport/gdb-dlfcn.c: ... here.
3740 * gdb-dlfcn.h: Move to...
3741 * gdbsupport/gdb-dlfcn.h: ... here.
3742
3743 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3744
3745 * nios2-tdep.c (struct reg_value): Improve comments. Make
3746 the offset field signed.
3747
3748 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3749
3750 * python/lib/gdb/__init__.py (_execute_file): New function.
3751 * python/python.c (python_run_simple_file): Call gdb._execute_file
3752 on Windows.
3753
3754 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3755
3756 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3757 all uses as this was never set to anything but a zero value.
3758
3759 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3760
3761 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3762
3763 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3764
3765 * tui/tui-data.h (tui_gen_win_info): Add an =default
3766 move constructor, required by some GCC versions.
3767
3768 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3769
3770 * go32-nat.c (go32_sysinfo): Add hygon_p.
3771
3772 2019-08-20 Tom Tromey <tom@tromey.com>
3773
3774 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3775 line_from_reg_element_no, first_reg_element_no_inline,
3776 display_all_data, delete_data_content_windows,
3777 erase_data_content>: Now private.
3778
3779 2019-08-20 Tom Tromey <tom@tromey.com>
3780
3781 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3782 (tui_unhighlight_win, tui_highlight_win)
3783 (tui_win_info::make_window): Update.
3784 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3785
3786 2019-08-20 Tom Tromey <tom@tromey.com>
3787
3788 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3789 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3790 (MAX_PID_WIDTH): Move to tui-stack.c.
3791 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3792 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3793 (MAX_PID_WIDTH): Move from tui-data.h.
3794
3795 2019-08-20 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3798 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3799 (box_win): Update.
3800 (tui_gen_win_info::make_window): Rename from tui_make_window.
3801 (tui_win_info::make_window): New method.
3802 (tui_gen_win_info::make_visible): Update.
3803 * tui/tui-source.c (tui_source_window::set_contents): Update.
3804 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3805 (tui_data_window::display_registers_from): Update.
3806 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3807 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3808 Declare.
3809 <can_box>: Remove.
3810 <title>: Remove.
3811 (struct tui_win_info) <make_window>: Declare.
3812 <can_box>: Now virtual.
3813 <title>: New member.
3814 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3815 * tui/tui-command.c (tui_cmd_window::resize): Update.
3816
3817 2019-08-20 Tom Tromey <tom@tromey.com>
3818
3819 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3820 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3821 (tui_data_window::check_register_values): Update.
3822
3823 2019-08-20 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-regs.h (struct tui_data_window): Use
3826 DISABLE_COPY_AND_ASSIGN.
3827 <regs_content>: Change type, removing unique_ptr.
3828 <tui_data_window>: Add move constructor.
3829 * tui/tui-regs.c (tui_data_window::show_registers)
3830 (tui_data_window::show_register_group)
3831 (tui_data_window::display_registers_from)
3832 (tui_data_window::display_registers_from)
3833 (tui_data_window::first_data_item_displayed)
3834 (tui_data_window::delete_data_content_windows)
3835 (tui_data_window::rerender, tui_data_window::refresh_window)
3836 (tui_data_window::check_register_values): Update.
3837
3838 2019-08-20 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3841 show_register_group>: Declare.
3842 (tui_show_register_group): Don't declare.
3843 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3844 tui_show_registers.
3845 (tui_data_window::show_register_group): Rename from
3846 tui_show_register_group.
3847 (tui_data_window::check_register_values, tui_reg_command):
3848 Update.
3849 * tui/tui-layout.c (tui_set_layout): Update.
3850
3851 2019-08-20 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3854 Declare.
3855 (tui_check_register_values): Don't declare.
3856 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3857 from tui_check_register_values.
3858 * tui/tui-hooks.c (tui_register_changed): Update.
3859
3860 2019-08-20 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-regs.c (tui_reg_layout): Move later.
3863 (tui_show_registers): Don't enable TUI mode or change layout.
3864
3865 2019-08-20 Tom Tromey <tom@tromey.com>
3866
3867 * tui/tui-regs.h (struct tui_data_item_window)
3868 <~tui_data_item_window>: Remove.
3869 <content>: Now a unique_xmalloc_ptr.
3870 * tui/tui-regs.c (tui_register_format): Return a
3871 unique_xmalloc_ptr.
3872 (tui_get_register): Update.
3873 (~tui_data_item_window): Remove.
3874 (tui_data_window::display_registers_from, tui_display_register):
3875 Update.
3876 * tui/tui-io.h (tui_expand_tabs): Update.
3877 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3878 Remove "col" parameter.
3879
3880 2019-08-20 Tom Tromey <tom@tromey.com>
3881
3882 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3883 field.
3884 * tui/tui-regs.c (~tui_data_item_window): Update.
3885
3886 2019-08-20 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3889 earlier.
3890
3891 2019-08-20 Tom Tromey <tom@tromey.com>
3892
3893 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3894
3895 2019-08-20 Tom Tromey <tom@tromey.com>
3896
3897 * tui/tui-source.h (struct tui_source_window): Update.
3898 * tui/tui-regs.c (tui_show_registers): Update.
3899 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3900 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3901 (NO_REGS_STRING): Remove defines.
3902
3903 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3904
3905 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3906 unnecessary thread walk if remote doesn't support the packet.
3907
3908 2019-08-19 Tom Tromey <tromey@adacore.com>
3909
3910 * python/py-value.c (value_has_field): Fix indentation.
3911
3912 2019-08-19 Tom Tromey <tromey@adacore.com>
3913
3914 * printcmd.c (do_one_display, info_display_command): Update.
3915 * block.h (contained_in): Return bool. Add allow_nested
3916 parameter.
3917 * block.c (contained_in): Return bool. Add allow_nested
3918 parameter.
3919
3920 2019-08-19 Tom Tromey <tom@tromey.com>
3921
3922 * configure: Rebuild.
3923 * configure.ac: Disallow the combination of -static-libstdc++ and
3924 source highlight.
3925 * source-cache.c (get_language_name): Handle rust.
3926 (source_cache::get_source_lines): Ignore highlighting exceptions.
3927
3928 2019-08-16 Tom Tromey <tom@tromey.com>
3929
3930 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3931 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3932 (struct tui_source_window_base) <make_visible, refresh_window,
3933 resize>: Remove methods.
3934 <execution_info>: Remove field.
3935 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3936 (tui_show_source_line, tui_source_window_base)
3937 (~tui_source_window_base): Update.
3938 (tui_source_window_base::resize)
3939 (tui_source_window_base::make_visible)
3940 (tui_source_window_base::refresh_window): Remove.
3941 (tui_source_window_base::update_exec_info): Update.
3942 * tui/tui-source.c (tui_source_window::set_contents): Update.
3943 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3944
3945 2019-08-16 Tom Tromey <tom@tromey.com>
3946
3947 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3948 deprecated_query_hook.
3949
3950 2019-08-16 Tom Tromey <tom@tromey.com>
3951
3952 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3953 (tui_update_source_windows_with_line): Update.
3954 * tui/tui-source.h (struct tui_source_window)
3955 <show_symtab_source>: Declare.
3956 (tui_show_symtab_source): Don't declare.
3957 * tui/tui-source.c (tui_show_symtab_source): Rename from
3958 tui_show_symtab_source.
3959
3960 2019-08-16 Tom Tromey <tom@tromey.com>
3961
3962 * tui/tui-winsource.h (struct tui_source_window_base)
3963 <set_contents>: Declare.
3964 * tui/tui-winsource.c
3965 (tui_source_window_base::update_source_window_as_is): Update.
3966 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3967 Declare.
3968 (tui_set_source_content): Don't declare.
3969 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3970 tui_set_source_content.
3971 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3972 Declare.
3973 (tui_set_disassem_content): Don't declare.
3974 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3975 tui_set_disassem_content.
3976
3977 2019-08-16 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-winsource.h (struct tui_source_window_base)
3980 <update_breakpoint_info>: Declare.
3981 (tui_update_breakpoint_info): Don't declare.
3982 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3983 (tui_update_all_breakpoint_info): Update.
3984 (tui_source_window_base::update_breakpoint_info): Rename from
3985 tui_update_breakpoint_info.
3986 (tui_source_window_base::update_exec_info): Update.
3987
3988 2019-08-16 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-winsource.h (struct tui_source_window_base)
3991 <update_source_window>: Declare.
3992 (tui_update_source_window): Don't declare.
3993 * tui/tui-winsource.c
3994 (tui_source_window_base::update_source_window): Rename from
3995 tui_update_source_window.
3996 (tui_source_window_base::rerender): Update.
3997 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3998 * tui/tui-disasm.c (tui_show_disassem)
3999 (tui_show_disassem_and_update_source)
4000 (tui_disasm_window::maybe_update): Update.
4001
4002 2019-08-16 Tom Tromey <tom@tromey.com>
4003
4004 * tui/tui-winsource.h (struct tui_source_window_base)
4005 <update_source_window_as_is>: Declare.
4006 (tui_update_source_window_as_is): Don't declare.
4007 * tui/tui-winsource.c (tui_update_source_window): Update
4008 (tui_source_window_base::update_source_window_as_is): Rename from
4009 tui_update_source_window_as_is.
4010 (tui_source_window_base::refill): Update.
4011 * tui/tui-source.c (tui_show_symtab_source): Update.
4012 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4013 Update.
4014
4015 2019-08-16 Tom Tromey <tom@tromey.com>
4016
4017 * tui/tui-winsource.h (tui_update_source_window)
4018 (tui_update_source_window_as_is): Remove "noerror" parameter.
4019 * tui/tui-winsource.c (tui_update_source_window)
4020 (tui_update_source_window_as_is): Remove "noerror" parameter.
4021 (tui_update_source_windows_with_addr)
4022 (tui_update_source_windows_with_line)
4023 (tui_source_window_base::rerender)
4024 (tui_source_window_base::refill): Update.
4025 * tui/tui-source.h (tui_set_source_content)
4026 (tui_show_symtab_source): Remove "noerror" parameter.
4027 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4028 parameter.
4029 (tui_show_symtab_source): Likewise.
4030 (tui_source_window::maybe_update): Update.
4031 * tui/tui-disasm.c (tui_show_disassem)
4032 (tui_show_disassem_and_update_source)
4033 (tui_disasm_window::do_scroll_vertical)
4034 (tui_disasm_window::maybe_update): Update.
4035
4036 2019-08-16 Tom Tromey <tom@tromey.com>
4037
4038 * tui/tui.c (tui_is_window_visible): Update.
4039 * tui/tui-wingeneral.c (tui_make_window)
4040 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4041 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4042 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4043 (tui_set_win_height_command, parse_scrolling_args): Update.
4044 * tui/tui-source.c (tui_source_window::style_changed): Update.
4045 * tui/tui-regs.c (tui_show_registers)
4046 (tui_data_window::first_data_item_displayed)
4047 (tui_data_window::delete_data_content_windows)
4048 (tui_check_register_values, tui_reg_command): Update.
4049 * tui/tui-disasm.c (tui_show_disassem): Update.
4050 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4051 method.
4052 <is_visible>: Remove field.
4053 * tui/tui-data.c (tui_next_win, tui_prev_win)
4054 (tui_delete_invisible_windows): Update.
4055
4056 2019-08-16 Tom Tromey <tom@tromey.com>
4057
4058 * tui/tui-winsource.h (struct tui_source_window_base)
4059 <m_has_locator>: Remove.
4060 * tui/tui-layout.c (show_source_disasm_command, show_data)
4061 (show_source_or_disasm_and_command): Update.
4062
4063 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4064
4065 * NEWS (Other MI changes): New subsection.
4066 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4067 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4068 * arch-utils.c (default_get_pc_address_flags): New function.
4069 * arch-utils.h (default_get_pc_address_flags): New declaration.
4070 * gdbarch.sh: Add get_pc_address_flags.
4071 * gdbarch.c: Regenerate.
4072 * gdbarch.h: Likewise.
4073 * stack.c (print_pc): New function.
4074 (print_frame_info) (print_frame): Call print_pc.
4075
4076 2019-08-16 Tom de Vries <tdevries@suse.de>
4077
4078 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4079 print_objfile_section_info.
4080
4081 2019-08-15 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4084 calling update_cmdwin_start_line.
4085 * tui/tui-winsource.h (struct tui_source_window_base)
4086 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4087 <rerender>: Declare.
4088 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4089 Call rerender.
4090 (tui_source_window_base::set_new_height): Remove.
4091 (tui_source_window_base::rerender): Rename from
4092 do_make_visible_with_new_height.
4093 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4094 resize method.
4095 (tui_win_info::make_invisible_and_set_new_height)
4096 (tui_win_info::make_visible_with_new_height): Remove.
4097 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4098 Declare.
4099 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4100 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4101 do_make_visible_with_new_height>: Don't declare.
4102 <rerender>: Declare.
4103 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4104 set_new_height.
4105 (tui_data_window::do_make_visible_with_new_height): Remove.
4106 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4107 call tui_show_locator_content.
4108 (tui_gen_win_info::resize): Call rerender.
4109 (show_source_or_disasm_and_command): Don't call
4110 tui_show_locator_content.
4111 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4112 method.
4113 (struct tui_win_info) <rerender>: Declare.
4114 <set_new_height, make_invisible_and_set_new_height,
4115 make_visible_with_new_height>: Don't declare.
4116 * tui/tui-data.c (tui_win_list::rerender): New method.
4117 * tui/tui-command.h (struct tui_cmd_window)
4118 <do_make_visible_with_new_height>: Don't declare.
4119 * tui/tui-command.c
4120 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4121
4122 2019-08-15 Tom Tromey <tromey@adacore.com>
4123
4124 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4125 * ada-lang.c (ada_enum_name): Likewise.
4126
4127 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4128
4129 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4130 leading underscore.
4131 (GdbOutputErrorFile): Likewise.
4132 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4133 accordingly.
4134 (execute_unwinders): Rename to have a leading underscore.
4135 (auto_load_packages): Likewise.
4136 (global scope): Adjust call to auto_load_packages accordingly.
4137 (GdbSetPythonDirectory): Likewise.
4138 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4139 instead of execute_unwinders.
4140
4141 2019-08-15 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4144 (show_data): Don't change window visibility.
4145 (tui_gen_win_info::resize): Remove special case for command
4146 window. Use wresize, when available.
4147 (show_source_or_disasm_and_command): Don't change window
4148 visibility.
4149 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4150 <make_visible>: New method.
4151 * tui/tui-command.c (tui_cmd_window::resize): New method.
4152
4153 2019-08-15 Tom Tromey <tom@tromey.com>
4154
4155 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4156 (struct tui_source_windows): New.
4157 * tui/tui-winsource.c (tui_display_main): Update.
4158 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4159 (new_height_ok, parse_scrolling_args): Update.
4160 * tui/tui-layout.c (show_layout, show_data): Update.
4161 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4162 (tui_add_to_source_windows): Don't declare.
4163 * tui/tui-data.c (source_windows, tui_source_windows)
4164 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4165
4166 2019-08-15 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4169 Rename from reset.
4170 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4171 * tui/tui-layout.c (show_source_disasm_command, show_data):
4172 Update.
4173 (tui_gen_win_info::resize): Rename.
4174 (show_source_or_disasm_and_command): Update.
4175 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4176 reset.
4177
4178 2019-08-15 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4181 * tui/tui-interp.c (tui_interp::init): Don't call
4182 tui_initialize_static_data.
4183 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4184
4185 2019-08-15 Tom Tromey <tom@tromey.com>
4186
4187 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4188 examine tui_win_list.
4189
4190 2019-08-15 Tom Tromey <tom@tromey.com>
4191
4192 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4193 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4194 tui_clear_source_content.
4195 (tui_clear_source_content): Remove.
4196 (tui_source_window_base::do_erase_source_content): Hoist call to
4197 content.clear().
4198 * tui/tui-stack.c (tui_show_frame_info): Don't call
4199 tui_clear_source_content.
4200
4201 2019-08-15 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-winsource.h (struct tui_source_window_base)
4204 <do_erase_source_content>: New method.
4205 <erase_source_content>: New method.
4206 (tui_erase_source_content): Don't declare.
4207 * tui/tui-winsource.c (tui_clear_source_content): Update.
4208 (tui_source_window_base::do_erase_source_content): Rename from
4209 tui_erase_source_content.
4210 (tui_source_window_base::show_source_content): Update.
4211 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4212 * tui/tui-source.h (struct tui_source_window)
4213 <erase_source_content>: New method.
4214 * tui/tui-disasm.h (struct tui_disasm_window)
4215 <erase_source_content>: New method.
4216
4217 2019-08-15 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4220 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4221 constructor.
4222 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4223 * tui/tui-source.c (tui_set_source_content): Update.
4224 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4225
4226 2019-08-15 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4229 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4230 tui-source.c.
4231 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4232 Declare.
4233 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4234 method.
4235 (tui_source_window::maybe_update): Update.
4236
4237 2019-08-15 Tom Tromey <tom@tromey.com>
4238
4239 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4240 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4241 tui-disasm.c.
4242 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4243 Declare.
4244 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4245 method.
4246 (tui_disasm_window::maybe_update): Update.
4247
4248 2019-08-15 Tom Tromey <tom@tromey.com>
4249
4250 * tui/tui-winsource.h (struct tui_source_window_base)
4251 <maybe_update>: Declare.
4252 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4253 method.
4254 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4255 Declare.
4256 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4257 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4258 Declare.
4259 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4260
4261 2019-08-15 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4264
4265 2019-08-15 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-wingeneral.c: Include tui-stack.h.
4268 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4269 (struct tui_locator_window): Move from tui-data.h.
4270 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4271 (tui_initialize_static_data): Move from tui-data.c.
4272 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4273 (struct tui_locator_window): Move to tui-stack.c.
4274 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4275 (tui_initialize_static_data): Move to tui-stack.c.
4276
4277 2019-08-15 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-layout.c (show_source_disasm_command)
4280 (show_source_or_disasm_and_command): Use make_visible method, not
4281 tui_make_window.
4282 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4283 Remove.
4284
4285 2019-08-15 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui-wingeneral.h (tui_make_window): Update.
4288 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4289 parameter.
4290 (tui_gen_win_info::make_visible): Update.
4291 * tui/tui-regs.c (tui_data_window::display_registers_from):
4292 Update.
4293 * tui/tui-layout.c (show_source_disasm_command)
4294 (show_source_or_disasm_and_command): Update.
4295 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4296 (enum tui_box): Remove.
4297 (struct tui_win_info) <can_box>: New method.
4298 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4299 method.
4300
4301 2019-08-15 Tom de Vries <tdevries@suse.de>
4302
4303 * linux-nat-trad.c: Include gdbarch.h.
4304
4305 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4306
4307 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4308 register sizes.
4309
4310 2019-08-14 Tom Tromey <tromey@adacore.com>
4311
4312 * darwin-nat.c: Include gdbarch.h.
4313 * darwin-nat-info.c: Include gdbarch.h.
4314
4315 2019-08-13 Tom Tromey <tom@tromey.com>
4316
4317 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4318 Remove.
4319 * tui/tui-data.c (tui_initialize_static_data): Update.
4320
4321 2019-08-13 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-winsource.h (struct tui_exec_info_window)
4324 <~tui_exec_info_window, maybe_allocate_content, get_content,
4325 m_content>: Remove.
4326 (struct tui_source_window_base) <set_exec_info_content,
4327 show_exec_info_content>: Don't declare.
4328 * tui/tui-winsource.c
4329 (tui_exec_info_window::maybe_allocate_content): Remove.
4330 (tui_source_window_base::update_exec_info): Rename from
4331 set_exec_info_content.
4332 (tui_source_window_base::show_exec_info_content)
4333 (tui_source_window_base::update_exec_info): Remove.
4334
4335 2019-08-13 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4338 declare.
4339 * tui/tui-winsource.c (tui_update_source_window_as_is)
4340 (tui_update_source_windows_with_addr, tui_erase_source_content):
4341 Update.
4342 (tui_clear_exec_info_content): Remove.
4343
4344 2019-08-13 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4347 declare.
4348 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4349 call tui_erase_exec_info_content.
4350 (tui_clear_exec_info_content): Rename from
4351 tui_erase_exec_info_content.
4352 (tui_clear_exec_info_content): Delete.
4353
4354 2019-08-13 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-winsource.h (struct tui_source_window_base)
4357 <show_exec_info_content>: Declare.
4358 (tui_show_exec_info_content): Don't declare.
4359 * tui/tui-winsource.c
4360 (tui_source_window_base::show_exec_info_content): Rename from
4361 tui_show_exec_info_content.
4362 (tui_source_window_base::update_exec_info): Update.
4363
4364 2019-08-13 Tom Tromey <tom@tromey.com>
4365
4366 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4367 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4368 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4369 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4370 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4371 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4372 ... here.
4373
4374 2019-08-13 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui-winsource.h (struct tui_source_window_base)
4377 <update_exec_info>: Declare.
4378 (tui_update_exec_info): Don't declare.
4379 * tui/tui-winsource.c (tui_update_source_window_as_is)
4380 (tui_source_window_base::refresh_all)
4381 (tui_update_all_breakpoint_info): Update.
4382 (tui_source_window_base::update_exec_info): Rename from
4383 tui_update_exec_info.
4384 * tui/tui-stack.c (tui_show_frame_info): Update.
4385
4386 2019-08-13 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-winsource.h (struct tui_source_window_base)
4389 <set_exec_info_content>: Declare.
4390 (tui_set_exec_info_content): Don't declare.
4391 * tui/tui-winsource.c
4392 (tui_source_window_base::set_exec_info_content): Rename from
4393 tui_set_exec_info_content.
4394 (tui_update_exec_info): Update.
4395
4396 2019-08-13 Tom Tromey <tom@tromey.com>
4397
4398 * tui/tui-winsource.h (struct tui_source_window_base)
4399 <show_source_content>: Declare.
4400 (tui_show_source_content): Don't declare.
4401 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4402 (tui_source_window_base::show_source_content): Rename from
4403 tui_show_source_content.
4404 (tui_source_window_base::refresh_all): Update.
4405 * tui/tui-layout.c (show_source_disasm_command)
4406 (show_source_or_disasm_and_command): Update.
4407
4408 2019-08-13 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui-winsource.c (tui_erase_source_content)
4411 (tui_show_source_content, tui_source_window_base::refresh_all):
4412 Update.
4413 * tui/tui-wingeneral.h
4414 (tui_check_and_display_highlight_if_needed): Don't declare.
4415 * tui/tui-wingeneral.c
4416 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4417 check_and_display_highlight_if_needed.
4418 * tui/tui-win.c (tui_rehighlight_all)
4419 (tui_win_info::make_visible_with_new_height): Update.
4420 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4421 (tui_data_window::erase_data_content)
4422 (tui_data_window::display_all_data): Update.
4423 * tui/tui-data.h (struct tui_win_info)
4424 <check_and_display_highlight_if_needed>: Declare.
4425
4426 2019-08-13 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui-win.c (tui_resize_all): Call
4429 tui_delete_invisible_windows.
4430 * tui/tui-layout.c (show_layout): Call
4431 tui_delete_invisible_windows.
4432 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4433 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4434
4435 2019-08-13 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4438 tui_add_win_to_layout.
4439
4440 2019-08-13 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4443 * tui/tui-layout.c (tui_default_win_height): Now static.
4444
4445 2019-08-13 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4448 single switch.
4449 (show_source_disasm_command, show_source_or_disasm_and_command):
4450 Don't check current layout.
4451
4452 2019-08-13 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-wingeneral.c (make_all_visible): Remove.
4455 (tui_make_all_invisible): Simplify.
4456 * tui/tui-layout.c (tui_make_all_invisible): Move from
4457 tui-wingeneral.c; simplify.
4458 (show_layout): Hoist call to tui_make_all_invisible.
4459 (show_data): Don't call tui_make_all_invisible.
4460
4461 2019-08-13 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4464 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4465
4466 2019-08-13 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4469 tui-data.c.
4470 (show_source_disasm_command, show_data)
4471 (show_source_or_disasm_and_command): Don't use
4472 tui_set_current_layout_to.
4473 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4474 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4475 tui-layout.c.
4476 (tui_set_current_layout_to): Remove.
4477
4478 2019-08-13 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-layout.c (tui_set_layout): Update.
4481 * tui/tui-data.h (struct tui_layout_def): Remove.
4482 (tui_layout_def): Don't declare.
4483 * tui/tui-data.c (layout_def): Remove.
4484 (tui_layout_def): Remove.
4485
4486 2019-08-13 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-winsource.h (struct tui_source_window_base)
4489 <clear_detail>: No longer "override".
4490 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4491 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4492 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4493 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4494 Remove.
4495 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4496
4497 2019-08-13 Tom Tromey <tromey@adacore.com>
4498
4499 * tracepoint.c: Don't include readline.h or history.h.
4500
4501 2019-08-12 Tom Tromey <tom@tromey.com>
4502
4503 * configure: Rebuild.
4504 * configure.ac: Check for readline 7.
4505 * NEWS: Mention readline 7 requirement.
4506 * README: Update.
4507
4508 2019-08-12 Tom Tromey <tom@tromey.com>
4509
4510 * mingw-hdep.c (gdb_select): Remove readline hack.
4511
4512 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4513
4514 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4515 when the function fails.
4516
4517 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4518
4519 * s390-tdep.c (s390_type_align): New function.
4520 (s390_gdbarch_init): Set it as type_align gdbarch method.
4521
4522 2019-08-09 Tom de Vries <tdevries@suse.de>
4523
4524 PR gdb/24591
4525 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4526 pc_low with relocation offset.
4527
4528 2019-08-07 Tom Tromey <tromey@adacore.com>
4529
4530 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4531 (print_frame_args): Update.
4532 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4533 Update.
4534 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4535 * frame.h (struct frame_arg): Add initializers.
4536 <error>: Now a unique_xmalloc_ptr.
4537
4538 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4539
4540 * NEWS: Expand the Pointer Authentication entry.
4541 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4542 (aarch64_frame_unmask_lr): ... to this.
4543 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4544 Call aarch64_frame_unmask_lr.
4545 * frame.c (struct frame_info): Add "masked" variable.
4546 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4547 (fprint_frame): Check for masked pc.
4548 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4549 declarations.
4550 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4551 * stack.c (print_frame): Check for masked pc.
4552
4553 2019-08-06 Tom Tromey <tom@tromey.com>
4554
4555 * stabsread.c (patch_block_stabs, read_one_struct_field)
4556 (read_enum_type): Use obstack_strndup.
4557 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4558 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4559 * dwarf2read.c (guess_full_die_structure_name)
4560 (anonymous_struct_prefix): Use obstack_strndup.
4561 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4562 * c-exp.y (yylex): Use obstack_strndup.
4563 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4564 (write_var_or_type): Use obstack_strndup.
4565
4566 2019-08-06 Tom Tromey <tom@tromey.com>
4567
4568 * symfile.c (reread_symbols): Use obstack_strdup.
4569 * stabsread.c (read_type): Use obstack_strdup.
4570 * gdb_obstack.h (obstack_strdup): New overload.
4571 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4572 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4573 (dwarf2_canonicalize_name): Use obstack_strdup.
4574 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4575 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4576 Use obstack_strdup.
4577
4578 2019-08-06 Tom Tromey <tom@tromey.com>
4579
4580 * gdb_obstack.h (obstack_strdup): Define.
4581 * gdb_obstack.c (obstack_strdup): Don't define.
4582
4583 2019-08-06 Tom Tromey <tom@tromey.com>
4584
4585 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4586 obstack_strdup.
4587 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4588 obstack_strdup.
4589 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4590 * stabsread.c (common_block_start): Use obstack_strdup.
4591 * objfiles.c (set_objfile_main_name, objfile): Use
4592 obstack_strdup.
4593 * namespace.c (add_using_directive): Use obstack_strdup.
4594 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4595 * jit.c (finalize_symtab): Use obstack_strdup.
4596 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4597 (guess_partial_die_structure_name, partial_die_info::fixup)
4598 (dwarf2_name): Use obstack_strdup.
4599 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4600 obstack_strdup.
4601 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4602 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4603 obstack_strdup.
4604 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4605
4606 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4607
4608 * unittests/help-doc-selftests.c: New file.
4609 * Makefile.in: Add the new file.
4610
4611 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4612
4613 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4614 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4615 the full first line, except when FOR_VALUE_PREFIX. In this case,
4616 the trailing '.' is not output, and the first character is uppercased.
4617 (print_help_for_command): Update call to print_doc_line.
4618 (print_doc_of_command): Likewise.
4619 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4620 * cli/cli-option.c (append_indented_doc): Do not append newline.
4621 (build_help_option): Append newline after first appended_indented_doc
4622 only if a second call is done.
4623 (build_help): Append 2 new lines before each option, except the first
4624 one.
4625 * compile/compile.c (_initialize_compile): Add new lines after
4626 %OPTIONS%, when not at the end of the help.
4627 Change help doc or code
4628 producing the help doc to respect the invariants.
4629 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4630 Also removed the new line after 'Options:', as all other commands
4631 do not put an empty line between 'Options:' and the first option.
4632 * printcmd.c (_initialize_printcmd): Likewise.
4633 * stack.c (_initialize_stack): Likewise.
4634 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4635 incorrectly telling COMMAND is optional.
4636 * ada-lang.c (_initialize_ada_language): Change help doc or code
4637 producing the help doc to respect the invariants.
4638 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4639 * breakpoint.c (_initialize_breakpoint): Likewise.
4640 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4641 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4642 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4643 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4644 _initialize_cli_style): Likewise.
4645 * corelow.c (core_target_info): Likewise.
4646 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4647 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4648 * filesystem.c (_initialize_filesystem): Likewise.
4649 * frame.c (_initialize_frame): Likewise.
4650 * gnu-nat.c (add_task_commands): Likewise.
4651 * infcall.c (_initialize_infcall): Likewise.
4652 * infcmd.c (_initialize_infcmd): Likewise.
4653 * interps.c (_initialize_interpreter): Likewise.
4654 * language.c (_initialize_language): Likewise.
4655 * linux-fork.c (_initialize_linux_fork): Likewise.
4656 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4657 * maint.c (_initialize_maint_cmds): Likewise.
4658 * memattr.c (_initialize_mem): Likewise.
4659 * printcmd.c (_initialize_printcmd): Likewise.
4660 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4661 _RegEx): Likewise.
4662 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4663 * record-btrace.c (_initialize_record_btrace): Likewise.
4664 * record-full.c (_initialize_record_full): Likewise.
4665 * record.c (_initialize_record): Likewise.
4666 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4667 * regcache.c (_initialize_regcache): Likewise.
4668 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4669 _initialize_remote): Likewise.
4670 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4671 * serial.c (_initialize_serial): Likewise.
4672 * skip.c (_initialize_step_skip): Likewise.
4673 * source.c (_initialize_source): Likewise.
4674 * stack.c (_initialize_stack): Likewise.
4675 * symfile.c (_initialize_symfile): Likewise.
4676 * symtab.c (_initialize_symtab): Likewise.
4677 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4678 * top.c (init_main): Likewise.
4679 * tracefile-tfile.c (tfile_target_info): Likewise.
4680 * tracepoint.c (_initialize_tracepoint): Likewise.
4681 * tui/tui-win.c (_initialize_tui_win): Likewise.
4682 * utils.c (add_internal_problem_command): Likewise.
4683 * valprint.c (value_print_option_defs): Likewise.
4684
4685 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4686
4687 PR build/24886
4688 * configure.ac: Drop enable-libmcheck support.
4689 * configure, config.in: Rebuild.
4690 * libmcheck.m4: Remove.
4691 * acinclude.m4: Don't include it.
4692 * Makefile.in: Don't distribute it.
4693 * top.c (print_gdb_configuration): Don't mention it.
4694
4695 2019-08-06 Tom Tromey <tom@tromey.com>
4696
4697 * utils.c (set_output_style): Sometimes pass stream to
4698 emit_style_escape.
4699 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4700 * record-btrace.c (btrace_insn_history): Update.
4701 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4702 method.
4703 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4704 Update initializers.
4705 <m_uiout>: New field.
4706 <m_di>: Move lower.
4707 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4708 Remove "uiout" parameter.
4709 (dump_insns): Update.
4710 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4711 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4712
4713 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4714
4715 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4716 (error_in_psymtab_expansion): Likewise.
4717 (lookup_symbol_via_quick_fns): Likewise.
4718 (basic_lookup_transparent_type_quick): Likewise.
4719 (basic_lookup_transparent_type_1): Likewise.
4720
4721 2019-08-06 Tom Tromey <tromey@adacore.com>
4722
4723 * source.c (last_source_error): Now bool.
4724 (print_source_lines_base): Make "noprint" bool. Only open
4725 source file when last_source_visited changes.
4726
4727 2019-08-06 Tom Tromey <tromey@adacore.com>
4728
4729 * annotate.c (annotate_source_line): Use g_source_cache.
4730 * source-cache.c (source_cache::get_plain_source_lines): Change
4731 parameters. Populate m_offset_cache.
4732 (source_cache::ensure): New method.
4733 (source_cache::get_line_charpos): New method.
4734 (extract_lines): Move lower. Change parameters.
4735 (source_cache::get_source_lines): Move lower.
4736 * source-cache.h (class source_cache): Update comment.
4737 <get_line_charpos>: New method.
4738 <get_source_lines>: Update comment.
4739 <clear>: Clear m_offset_cache.
4740 <get_plain_source_lines>: Change parameters.
4741 <ensure>: New method
4742 <m_offset_cache>: New member.
4743 * source.c (forget_cached_source_info_for_objfile): Update.
4744 (info_source_command): Use g_source_cache.
4745 (find_source_lines, open_source_file_with_line_charpos): Remove.
4746 (print_source_lines_base, search_command_helper): Use g_source_cache.
4747 * source.h (open_source_file_with_line_charpos): Don't declare.
4748 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4749 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4750 Use g_source_cache.
4751
4752 2019-08-06 Tom Tromey <tromey@adacore.com>
4753
4754 * source-cache.c (source_cache::get_plain_source_lines):
4755 Remove "first_line" and "last_line" parameters.
4756 (source_cache::get_source_lines): Cache plain text.
4757 * source-cache.h (class source_cache)
4758 <get_plain_source_lines>: Update.
4759
4760 2019-08-06 Tom Tromey <tromey@adacore.com>
4761
4762 * source-cache.c (extract_lines): No longer a method.
4763 Changed type of parameter. Include final newline.
4764 (selftests::extract_lines_test): New function.
4765 (_initialize_source_cache): Likewise.
4766 * source-cache.h (class source_cache)
4767 <extract_lines>: Don't declare.
4768
4769 2019-08-06 Tom Tromey <tromey@adacore.com>
4770
4771 * breakpoint.c (init_breakpoint_sal): Update.
4772 (breakpoint): Update.
4773 * breakpoint.h (struct breakpoint) <filter>: Now a
4774 unique_xmalloc_ptr.
4775
4776 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4777
4778 * NEWS: Mention dictionary access on blocks.
4779 * python/py-block.c (blpy_getitem): New function.
4780 (block_object_as_mapping): New struct.
4781 (block_object_type): Use new struct for tp_as_mapping field.
4782
4783 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4784
4785 * objfiles.h (objfile): Add a comment describing partial symbols.
4786
4787 2019-08-05 Tom Tromey <tromey@adacore.com>
4788
4789 * compile/compile.c (_initialize_compile): Use _(), not N_().
4790 * thread.c (_initialize_thread): Use _(), not N_().
4791 * stack.c (_initialize_stack): Use _(), not N_().
4792 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4793
4794 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 * dwarf2read.c (struct dw2_symtab_iterator):
4797 <want_specific_block>: Remove.
4798 <block_index>: Change type to gdb::optional.
4799 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4800 change type of BLOCK_INDEX parameter to gdb::optional.
4801 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4802 (dw2_lookup_symbol): Don't pass argument for
4803 WANT_SPECIFIC_BLOCK.
4804 (dw2_expand_symtabs_for_function): Don't pass argument for
4805 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4806 (class dw2_debug_names_iterator)
4807 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4808 parameter, change BLOCK_INDEX type to gdb::optional.
4809 <m_want_specific_block>: Remove.
4810 <m_block_index>: Change type to gdb::optional.
4811 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4812 gdb::optional. Re-write in function of gdb::optional.
4813 (dw2_debug_names_lookup_symbol): Don't pass argument for
4814 WANT_SPECIFIC_BLOCK.
4815 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4816 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4817 BLOCK_INDEX.
4818
4819 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4820
4821 * NEWS: Mention changes to "info sources" command.
4822
4823 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4824
4825 * symtab.c (filename_partial_match_opts): New struct type.
4826 (struct output_source_filename_data): New members
4827 regexp, c_regexp, partial_match.
4828 (output_source_filename): Use new members to decide to print file.
4829 (info_sources_option_defs): New variable.
4830 (make_info_sources_options_def_group, print_info_sources_header,
4831 info_sources_command_completer):
4832 New functions.
4833 (info_sources_command): Read new optional arguments.
4834 (_initialize_symtab): Update info sources help.
4835
4836 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4837
4838 * ada-lang.c (exception_support_info_v0): Renamed from...
4839 (default_exception_support_info): ... this. Create new
4840 definition for v1.
4841 (ada_has_this_exception_support): Look up catch_handlers_sym.
4842 (ada_exception_support_info_sniffer): Try v0 after default.
4843
4844 2019-08-01 Tom Tromey <tromey@adacore.com>
4845
4846 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4847 gdbarch.h.
4848
4849 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4850
4851 * s12z-tdep.c: Fix include path for s12z-opc.h.
4852
4853 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4854
4855 * NEWS: Require GNU make 3.82.
4856
4857 2019-07-16 Tom Tromey <tom@tromey.com>
4858
4859 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4860 declare.
4861
4862 2019-07-30 Tom Tromey <tromey@adacore.com>
4863
4864 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4865
4866 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4867
4868 * printcmd.c (print_address_symbolic): Print negative offsets.
4869 (build_address_symbolic): Force signed arithmetic when computing
4870 offset.
4871
4872 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4873
4874 PR/24474: Add a function to lookup static variables.
4875 * NEWS: Mention this new function.
4876 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4877 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4878 * python/python.c (python_GdbMethods): Add new function.
4879
4880 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4881
4882 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4883 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4884 (objfpy_lookup_static_symbol): New function.
4885 (objfile_object_methods): Add new functions.
4886
4887 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4888
4889 * NEWS: Mention 'set|show print frame-info'. Mention new
4890 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4891 backtrace argument. Mention that python frame filtering code
4892 is now consistent with what 'backtrace' command prints.
4893
4894 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895
4896 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4897 comments.
4898 (print_frame_info_auto, print_frame_info_source_line,
4899 print_frame_info_location, print_frame_info_source_and_location,
4900 print_frame_info_location_and_address, print_frame_info_short_location):
4901 New declarations.
4902 (struct frame_print_options): New member print_frame_info.
4903 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4904 * stack.h (get_user_print_what_frame_info): New declaration.
4905 (frame_show_address): New declaration.
4906 * stack.c (print_frame_arguments_choices): New value 'presence'.
4907 (print_frame_info_auto, print_frame_info_source_line,
4908 print_frame_info_location, print_frame_info_source_and_location,
4909 print_frame_info_location_and_address, print_frame_info_short_location,
4910 print_frame_info_choices, print_frame_info_print_what): New definitions.
4911 (print_frame_args): Only print dots for args if print frame-arguments
4912 is 'presence'.
4913 (frame_print_option_defs): New element for "frame-info".
4914 (get_user_print_what_frame_info): New function.
4915 (frame_show_address): Make non static. Move comment to stack.h.
4916 (print_frame_info_to_print_what): New function.
4917 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4918 to decide what to print.
4919 (backtrace_command_1): Handle the new print_frame_arguments_presence
4920 value.
4921 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4922 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4923 (py_print_frame): In non-mi mode, use LOCATION as default for
4924 print_what, similarly to frame information printed directly by
4925 backtrace command. Handle frame-info user option in non MI mode.
4926
4927 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4928
4929 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4930 Add case for debugging 32-bit target on 64-bit host. Revise
4931 comment.
4932
4933 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4934
4935 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4936 instead of find_function_entry_range_from_pc.
4937
4938 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4939
4940 * stack.c (find_frame_funname): Remove code which preferred
4941 minsym over symtab sym in "certain pathological cases".
4942
4943 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4944 parameter. Change type of "do_demangle" to bool.
4945 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4946 Pass suitable "prefer_sym_over_minsym" flag to
4947 build_address_symbolic(). Don't output "+" for negative offsets.
4948 * printcmd.c (print_address_symbolic): Update invocation of
4949 build_address_symbolic to include a "prefer_sym_over_minsym"
4950 flag.
4951 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4952 Restrict cases in which use of minimal symbol is preferred to that
4953 of a found symbol. Update comments.
4954
4955 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4956 for entry pc when entry pc is out of range for that FDE.
4957
4958 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4959
4960 PR gdb/24839:
4961 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4962 type.
4963
4964 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4965
4966 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4967 this function's Python signature.
4968
4969
4970 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4971
4972 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4973 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4974 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4975 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4976 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4977
4978
4979 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4980
4981 * h8300-tdep.c (h8300_register_name_common): New.
4982 h8300_register_name): Use h8300_register_name_common.
4983 (h8300s_register_name): Likewise.
4984 (h8300sx_register_name): Likewise.
4985 (h8300h_register_nam): New.
4986 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4987
4988
4989 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4990
4991 * arm-tdep.c (arm_skip_cmse_entry): New function.
4992 (arm_is_sgstubs_section): New function.
4993 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4994
4995 2019-07-22 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4998 Don't self-assign.
4999
5000 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5003 type_print.
5004
5005 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5008 so that GDB doesn't match any msymbols when searching in the
5009 TYPES_DOMAIN.
5010 (print_symbol_info): Print using typedef_print or type_print based
5011 on the type of the symbol. Add updated FIXME comment moved from...
5012 (_initialize_symtab): ... move and update FIXME comment to above.
5013
5014 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * NEWS: Mention adding -q option to "info types".
5017 * symtab.c (struct info_types_options): New struct.
5018 (info_types_options_defs): New variable.
5019 (make_info_types_options_def_group): New function.
5020 (info_types_command): Use gdb::option framework to parse options.
5021 (info_types_command_completer): New function.
5022 (_initialize_symtab): Extend the help text on "info types" and
5023 register command completer.
5024
5025 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5026
5027 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5028 (lookup_symbol_in_objfile): Change int to block_enum and add a
5029 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5030
5031 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5032
5033 * MAINTAINERS (Write After Approval): Add self.
5034
5035 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5038 instruction to the dummy code region.
5039
5040 2019-07-19 Tom Tromey <tromey@adacore.com>
5041
5042 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5043 (ARGSUSED, PARAMS, __func__): Remove rules.
5044
5045 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5046
5047 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5048 * features/arm/arm-with-iwmmxt.c: Remove.
5049 * features/arm/arm-with-iwmmxt.xml: Remove.
5050 * features/arm/arm-with-m-fpa-layout.c: Remove.
5051 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5052 * features/arm/arm-with-m-vfp-d16.c: Remove.
5053 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5054 * features/arm/arm-with-m.c: Remove.
5055 * features/arm/arm-with-m.xml: Remove.
5056 * features/arm/arm-with-neon.c: Remove.
5057 * features/arm/arm-with-neon.xml: Remove.
5058 * features/arm/arm-with-vfpv2.c: Remove.
5059 * features/arm/arm-with-vfpv2.xml: Remove.
5060 * features/arm/arm-with-vfpv3.c: Remove.
5061 * features/arm/arm-with-vfpv3.xml: Remove.
5062
5063 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5064
5065 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5066
5067 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5068
5069 * arch/aarch32.c (aarch32_create_target_description): Create
5070 target descriptions using features.
5071 * arch/arm.c (arm_create_target_description)
5072 (arm_create_mprofile_target_description): Likewise.
5073 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5074
5075 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5076
5077 * Makefile.in: Add new files.
5078 * aarch32-tdep.c: New file.
5079 * aarch32-tdep.h: New file.
5080 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5081 Call aarch32_read_description.
5082 * arch/aarch32.c: New file.
5083 * arch/aarch32.h: New file.
5084 * arch/arm.c (arm_create_target_description)
5085 (arm_create_mprofile_target_description): New function.
5086 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5087 (arm_create_target_description)
5088 (arm_create_mprofile_target_description): New declaration.
5089 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5090 read_description functions.
5091 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5092 Likewise.
5093 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5094 * arm-tdep.c (tdesc_arm_list): New variable.
5095 (arm_register_g_packet_guesses): Call create description functions.
5096 (arm_read_description) (arm_read_mprofile_description): New
5097 function.
5098 * arm-tdep.h (arm_read_description)
5099 (arm_read_mprofile_description): Add declaration.
5100 * configure.tgt: Add new files.
5101
5102 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5103
5104 * top.c (new_ui_command): Open specified terminal just once.
5105
5106 2019-07-18 Tom Tromey <tromey@adacore.com>
5107
5108 * symtab.c (main_name): Constify return type.
5109 * symfile.c (set_initial_language): Update.
5110 * symtab.h (main_name): Constify return type.
5111
5112 2019-07-17 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui-winsource.c (tui_update_source_window)
5115 (tui_update_source_window_as_is)
5116 (tui_update_source_windows_with_line): Remove return.
5117 * tui/tui-disasm.c (tui_show_disassem)
5118 (tui_show_disassem_and_update_source): Remove return.
5119 * tui/tui.c (tui_reset): Remove return.
5120 * tui/tui-wingeneral.c
5121 (tui_check_and_display_highlight_if_needed): Remove return.
5122
5123 2019-07-17 Tom Tromey <tom@tromey.com>
5124
5125 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5126
5127 2019-07-17 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-winsource.h (struct tui_exec_info_window)
5130 (struct tui_source_window_base): Move from tui-data.h.
5131 * tui/tui-winsource.c: Move many method definitions from
5132 elsewhere. Remove "structuring" comments.
5133 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5134 (tui_source_window_base::refresh_window): Move to
5135 tui-winsource.c.
5136 * tui/tui-win.c (tui_source_window_base::refresh_all)
5137 (tui_source_window_base::update_tab_width)
5138 (tui_source_window_base::set_new_height)
5139 (tui_source_window_base::do_make_visible_with_new_height): Move to
5140 tui-winsource.c.
5141 * tui/tui-source.h: Update.
5142 * tui/tui-source.c (tui_source_window_base::reset): Move to
5143 tui-winsource.c.
5144 * tui/tui-disasm.h: Update.
5145 * tui/tui-data.h (struct tui_exec_info_window): Move to
5146 tui-winsource.h.
5147 (struct tui_source_window_base): Likewise.
5148 * tui/tui-data.c (tui_source_window_base::clear_detail)
5149 (tui_source_window_base, ~tui_source_window_base): Move to
5150 tui-winsource.c.
5151
5152 2019-07-17 Tom Tromey <tom@tromey.com>
5153
5154 * tui/tui-win.c (tui_resize_all)
5155 (tui_source_window_base::update_tab_width)
5156 (tui_adjust_win_heights): Update.
5157 (tui_win_info::make_invisible_and_set_new_height): Rename from
5158 make_invisible_and_set_new_height.
5159 * tui/tui-data.h (struct tui_win_info)
5160 <make_invisible_and_set_new_height>: New method.
5161
5162 2019-07-17 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui.c: Update.
5165 * tui/tui-source.h (struct tui_source_window): Move from
5166 tui-data.h.
5167 * tui/tui-layout.c: Update.
5168 * tui/tui-disasm.c: Update.
5169 * tui/tui-data.h (struct tui_source_window): Move to
5170 tui-source.h.
5171
5172 2019-07-17 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5175 tui-data.h.
5176 * tui/tui-data.h (struct tui_disasm_window): Move to
5177 tui-disasm.h.
5178
5179 2019-07-17 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-regs.h (struct tui_data_item_window): Move from
5182 tui-data.h.
5183 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5184 * tui/tui-data.h (struct tui_data_item_window): Move to
5185 tui-regs.h.
5186 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5187
5188 2019-07-17 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui.c: Update.
5191 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5192 (tui_cmd_window::max_height): Move to tui-command.c.
5193 * tui/tui-layout.c: Update.
5194 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5195 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5196 tui-command.c.
5197 * tui/tui-command.h (struct tui_cmd_window): Move from
5198 tui-data.h.
5199 * tui/tui-command.c: Remove "structuring" comments.
5200 (tui_cmd_window::clear_detail)
5201 (tui_cmd_window::do_make_visible_with_new_height)
5202 (tui_cmd_window::max_height): Move from elsewhere.
5203
5204 2019-07-17 Tom Tromey <tom@tromey.com>
5205
5206 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5207 Now static.
5208 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5209 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5210
5211 2019-07-17 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui.c: Update.
5214 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5215 tui-regs.c.
5216 * tui/tui-windata.h: Remove file.
5217 * tui/tui-windata.c: Remove file.
5218 * tui/tui-win.c (tui_data_window::set_new_height)
5219 (tui_data_window::do_make_visible_with_new_height): Move to
5220 tui-regs.c.
5221 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5222 * tui/tui-regs.c: Remove "structuring" comments.
5223 (tui_data_window::first_data_item_displayed)
5224 (tui_data_window::delete_data_content_windows)
5225 (tui_data_window::erase_data_content)
5226 (tui_data_window::display_all_data)
5227 (tui_data_window::refresh_all)
5228 (tui_data_window::do_scroll_vertical)
5229 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5230 (tui_data_window::do_make_visible_with_new_height)
5231 (tui_data_window::refresh_window): Move from elsewhere.
5232 (_initialize_tui_regs): Move to end of file.
5233 * tui/tui-layout.c: Update.
5234 * tui/tui-hooks.c: Update.
5235 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5236 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5237 tui-regs.c.
5238 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5239
5240 2019-07-17 Tom Tromey <tom@tromey.com>
5241
5242 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5243 seen.
5244
5245 2019-07-17 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-win.c (tui_source_window_base::set_new_height)
5248 (tui_source_window_base::do_make_visible_with_new_height): Use
5249 m_has_locator field directly.
5250 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5251 method.
5252 (struct tui_source_window_base) <has_locator>: Likewise.
5253
5254 2019-07-17 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5257 Don't declare.
5258 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5259 Remove.
5260 * tui/tui-win.c (tui_source_window_base::set_new_height)
5261 (tui_source_window_base::set_new_height)
5262 (make_invisible_and_set_new_height)
5263 (tui_source_window_base::do_make_visible_with_new_height)
5264 (tui_source_window_base::do_make_visible_with_new_height):
5265 Update.
5266 * tui/tui-layout.c (show_source_disasm_command, show_data)
5267 (show_source_or_disasm_and_command): Update.
5268 * tui/tui-layout.c (show_layout): Update.
5269
5270 2019-07-17 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-layout.c (make_data_window): Remove.
5273 (show_data): Unify creation and re-initialization cases.
5274
5275 2019-07-17 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-layout.c (make_source_window, make_disasm_window):
5278 Remove.
5279 (show_data): Unify creation and re-initialization cases.
5280
5281 2019-07-17 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-layout.c (make_command_window): Remove.
5284 (show_source_disasm_command, show_source_or_disasm_and_command):
5285 Unify creation and re-initialization cases.
5286
5287 2019-07-17 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5290 creation and re-initialization cases.
5291
5292 2019-07-17 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-regs.c (tui_get_register): Return void.
5295
5296 2019-07-17 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5299 Simplify.
5300
5301 2019-07-17 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5304 resetting.
5305
5306 2019-07-17 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5309 * tui/tui-regs.c (tui_reg_layout): New function.
5310 (tui_show_registers, tui_reg_command): Use it.
5311 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5312 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5313 parameters.
5314 (tui_layout_command): Remove.
5315
5316 2019-07-17 Tom Tromey <tom@tromey.com>
5317
5318 * tui/tui-layout.h (tui/tui-layout): Return void.
5319 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5320
5321 2019-07-17 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-layout.c (show_source_disasm_command, show_data):
5324 Update.
5325 (reset_locator): Remove.
5326 (show_source_or_disasm_and_command): Update.
5327
5328 2019-07-17 Tom Tromey <tom@tromey.com>
5329
5330 * tui/tui-source.c (tui_source_window_base::reset): Remove
5331 win_type parameter.
5332 * tui/tui-layout.c (make_command_window, make_source_window)
5333 (make_disasm_window, make_data_window)
5334 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5335 (reset_locator, show_source_or_disasm_and_command): Update.
5336 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5337 win_type parameter.
5338 (struct tui_source_window_base) <reset>: Likewise.
5339
5340 2019-07-17 Tom Tromey <tom@tromey.com>
5341
5342 * tui/tui-layout.c (show_source_disasm_command): Use
5343 reset_locator.
5344 (reset_locator): New function.
5345 (init_and_make_win): Remove.
5346 (show_source_or_disasm_and_command): Use reset_locator.
5347
5348 2019-07-17 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5351 condition.
5352 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5353 Remove condition.
5354 * tui/tui-source.c (tui_source_window_base::reset): New method.
5355 * tui/tui-layout.c (make_command_window): Don't call
5356 init_and_make_win.
5357 (make_source_window, make_disasm_window): Don't call
5358 make_source_or_disasm_window.
5359 (make_data_window): Don't call init_and_make_win. Change calling
5360 convention.
5361 (show_source_disasm_command, show_data): Simplify.
5362 (make_source_or_disasm_window): Remove.
5363 (show_source_or_disasm_and_command): Simplify.
5364 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5365 (struct tui_source_window_base) <reset>: Likewise.
5366 <execution_info>: Remove initializer.
5367 * tui/tui-data.c (tui_source_window_base): Initialize
5368 execution_info.
5369
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5373 variable.
5374
5375 2019-07-17 Tom Tromey <tom@tromey.com>
5376
5377 * tui/tui.c (tui_rl_other_window): Update.
5378 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5379 superclass method first. Always iterate over regs_content.
5380 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5381 method.
5382 * tui/tui-win.c (tui_set_focus_command): Update.
5383
5384 2019-07-17 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-win.c (tui_set_focus_command): Rename from
5387 tui_set_focus. Call tui_enable.
5388 (tui_set_focus_command): Remove.
5389
5390 2019-07-17 Tom Tromey <tom@tromey.com>
5391
5392 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5393 refresh_window.
5394 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5395 touchwin.
5396 (tui_data_window::refresh_window): Call refresh_window on data
5397 items. Always call superclass refresh_window.
5398 (tui_win_info::refresh): Remove.
5399 (tui_source_window_base::refresh_window): Update.
5400 (tui_refresh_all): Update.
5401 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5402 refresh_window.
5403 (show_source_or_disasm_and_command): Likewise.
5404 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5405 (struct tui_source_window_base) <refresh>: Likewise.
5406
5407 2019-07-17 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-winsource.c (tui_clear_source_content)
5410 (tui_show_source_content): Update.
5411 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5412 whether content is empty.
5413 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5414 Remove.
5415
5416 2019-07-17 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5419 window's contents.
5420 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5421 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5422
5423 2019-07-17 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5426 (struct tui_data_item_window): Update.
5427
5428 2019-07-17 Tom Tromey <tom@tromey.com>
5429
5430 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5431 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5432 defines.
5433
5434 2019-07-17 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-winsource.h (tui_erase_source_content)
5437 (tui_clear_source_content): Remove "display_prompt" parameter.
5438 * tui/tui-winsource.c (tui_update_source_window_as_is)
5439 (tui_update_source_windows_with_addr): Update.
5440 (tui_clear_source_content): Remove "display_prompt" parameter.
5441 (tui_erase_source_content): Likewise. Simplify.
5442 (tui_show_source_content): Update.
5443 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5444 * tui/tui-stack.c (tui_show_frame_info): Update.
5445 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5446 Remove defines.
5447
5448 2019-07-17 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5451 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5452 parameter.
5453 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5454 parameter.
5455
5456 2019-07-17 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-winsource.c (tui_clear_source_content)
5459 (tui_show_source_content, tui_show_exec_info_content)
5460 (tui_clear_exec_info_content): Update.
5461 * tui/tui-stack.c (tui_show_locator_content): Update.
5462 (tui_show_frame_info): Update.
5463 * tui/tui-source.h (tui_source_window): Don't declare.
5464 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5465 from tui_source_is_displayed.
5466 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5467 Remove field.
5468 (struct tui_source_window_base) <content_in_use>: New field. Now
5469 bool.
5470 (struct tui_source_window) <showing_source_p>: New method.
5471 (TUI_SRC_WIN): Change cast.
5472 * tui/tui-data.c (tui_initialize_static_data): Update.
5473
5474 2019-07-17 Tom Tromey <tom@tromey.com>
5475
5476 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5477 location_matches_p.
5478 * tui/tui-source.c (tui_source_window::location_matches_p): New
5479 method.
5480 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5481 method.
5482 * tui/tui-data.h (struct tui_source_window_base)
5483 <location_matches_p>: New method.
5484 (struct tui_source_window, struct tui_disasm_window)
5485 <location_matches_p>: Likewise.
5486
5487 2019-07-17 Tom Tromey <tom@tromey.com>
5488
5489 * tui/tui-win.c (tui_set_win_height_command): Rename from
5490 tui_set_win_height.
5491 (tui_set_win_height_command): Remove.
5492
5493 2019-07-17 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-source.c (tui_source_window): New constructor. Add
5496 observer.
5497 (~tui_source_window): New destructor.
5498 (tui_source_window::style_changed): New method.
5499 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5500 (tui_attach_detach_observers): Update.
5501 * tui/tui-data.h (struct tui_source_window): Make constructor not
5502 inline. Add destructor.
5503 (struct tui_source_window) <style_changed>: New method.
5504 <m_observable>: New member.
5505
5506 2019-07-17 Tom Tromey <tom@tromey.com>
5507
5508 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5509 * tui/tui-win.c (tui_resize_all): Fix typo.
5510
5511 2019-07-17 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5514 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5515 (tui_refresh_all): Remove "list" parameter. Use foreach.
5516 * tui/tui-win.c (window_name_completer): Use foreach.
5517 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5518 (update_tab_width): Likewise.
5519 * tui/tui-layout.c (show_layout): Update.
5520 * tui/tui-data.h (class tui_window_iterator): New.
5521 (struct all_tui_windows): New.
5522 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5523
5524 2019-07-17 Tom Tromey <tom@tromey.com>
5525
5526 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5527 parameter. Don't reference globals.
5528 (tui_reg_command): Update.
5529
5530 2019-07-17 Tom Tromey <tom@tromey.com>
5531
5532 * tui/tui-regs.c (tui_show_registers): Simplify.
5533
5534 2019-07-17 Tom Tromey <tom@tromey.com>
5535
5536 * tui/tui-regs.c (tui_show_registers): Update.
5537 (tui_show_register_group): Add win_info parameter.
5538
5539 2019-07-17 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5542 Rename from tui_display_reg_element_at_line.
5543 (tui_data_window::display_registers_from_line): Update.
5544 * tui/tui-data.h (struct tui_data_window)
5545 <display_reg_element_at_line>: New method.
5546
5547 2019-07-17 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui-regs.h (tui_display_registers_from)
5550 (tui_display_registers_from_line): Don't declare.
5551 * tui/tui-windata.c (tui_data_window::display_all_data)
5552 (tui_data_window::refresh_all)
5553 (tui_data_window::do_scroll_vertical): Update.
5554 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5555 from tui_display_registers_from.
5556 (tui_display_reg_element_at_line): Update.
5557 (tui_data_window::display_registers_from_line): Rename from
5558 tui_display_registers_from_line.
5559 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5560 display_registers_from_line>: New methods.
5561
5562 2019-07-17 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5565 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5566 from tui_erase_data_content.
5567 (tui_data_window::display_all_data)
5568 (tui_data_window::refresh_all)
5569 (tui_data_window::do_scroll_vertical): Update.
5570 * tui/tui-regs.c (tui_show_registers): Update.
5571 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5572 New method.
5573
5574 2019-07-17 Tom Tromey <tom@tromey.com>
5575
5576 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5577 declare.
5578 * tui/tui-windata.c
5579 (tui_data_window::delete_data_content_windows): Rename from
5580 tui_delete_data_content_windows.
5581 (tui_data_window::display_all_data)
5582 (tui_data_window::do_scroll_vertical): Update.
5583 * tui/tui-data.h (struct tui_data_window)
5584 <delete_data_content_windows>: New method.
5585
5586 2019-07-17 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5589 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5590
5591 2019-07-17 Tom Tromey <tom@tromey.com>
5592
5593 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5594 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5595 from tui_display_all_data.
5596 * tui/tui-win.c
5597 (tui_data_window::do_make_visible_with_new_height): Update.
5598 * tui/tui-regs.c (tui_show_registers): Update.
5599 * tui/tui-layout.c (tui_set_layout): Update.
5600 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5601 method.
5602
5603 2019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5606 * tui/tui-windata.c (tui_display_data_from): Remove.
5607 (tui_data_window::refresh_all): Update.
5608
5609 2019-07-17 Tom Tromey <tom@tromey.com>
5610
5611 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5612 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5613 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5614 tui_display_registers_from_line.
5615 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5616 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5617 "force_display" parameter.
5618
5619 2019-07-17 Tom Tromey <tom@tromey.com>
5620
5621 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5622 declare.
5623 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5624 Rename from tui_first_reg_element_no_inline.
5625 (tui_display_reg_element_at_line)
5626 (tui_display_registers_from_line): Update.
5627 * tui/tui-data.h (struct tui_data_window)
5628 <first_reg_element_no_inline>: New method.
5629
5630 2019-07-17 Tom Tromey <tom@tromey.com>
5631
5632 * tui/tui-windata.c (tui_display_data_from)
5633 (tui_data_window::do_scroll_vertical): Update.
5634 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5635 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5636 Rename from tui_line_from_reg_element_no.
5637 (tui_display_registers_from_line): Update.
5638 * tui/tui-data.h (struct tui_data_window)
5639 <line_from_reg_element_no>: New method.
5640
5641 2019-07-17 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5644 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5645 tui_last_regs_line_no.
5646 (tui_display_reg_element_at_line)
5647 (tui_display_registers_from_line): Update.
5648 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5649 method.
5650
5651 2019-07-17 Tom Tromey <tom@tromey.com>
5652
5653 PR tui/24722:
5654 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5655 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5656 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5657 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5658 (tui_update_breakpoint_info): Likewise.
5659 * tui/tui-hooks.c (tui_event_create_breakpoint)
5660 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5661 Update.
5662
5663 2019-07-17 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5666
5667 2019-07-17 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-winsource.c (tui_update_source_window_as_is)
5670 (tui_update_source_windows_with_addr): Update.
5671 * tui/tui-source.h (tui_set_source_content)
5672 (tui_show_symtab_source): Add "win_info" parameter.
5673 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5674 parameter.
5675 (tui_show_symtab_source): Likewise.
5676
5677 2019-07-17 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-wingeneral.c
5680 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5681
5682 2019-07-17 Tom Tromey <tom@tromey.com>
5683
5684 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5685 (struct tui_cmd_window) <can_scroll>: New method.
5686 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5687 method.
5688
5689 2019-07-17 Tom Tromey <tromey@adacore.com>
5690
5691 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5692 do_field_signed>: Rename. Change type of "value".
5693 * ui-out.c (ui_out::field_signed): Rename from field_int.
5694 Change type of "value".
5695 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5696 type of "value".
5697 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5698 do_field_int. Change type of "value".
5699 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5700 do_field_int. Change type of "value".
5701 * tracepoint.c (trace_status_mi, tfind_1)
5702 (print_one_static_tracepoint_marker): Update.
5703 * thread.c (print_thread_info_1, print_selected_thread_frame):
5704 Update.
5705 * stack.c (print_frame, print_frame_info): Update.
5706 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5707 Update.
5708 * source.c (print_source_lines_base): Update.
5709 * skip.c (info_skip_command): Update.
5710 * record-btrace.c (btrace_ui_out_decode_error)
5711 (btrace_call_history_src_line): Update.
5712 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5713 Update.
5714 * progspace.c (print_program_space): Update.
5715 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5716 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5717 do_field_int. Change type of "value".
5718 * mi/mi-out.c (mi_ui_out::do_table_begin)
5719 (mi_ui_out::do_table_header): Update.
5720 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5721 type of "value".
5722 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5723 (mi_cmd_data_list_changed_registers, output_register)
5724 (mi_cmd_data_read_memory, mi_load_progress)
5725 (mi_cmd_trace_frame_collected): Update.
5726 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5727 Update.
5728 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5729 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5730 (mi_cmd_var_list_children, varobj_update_one): Update.
5731 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5732 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5733 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5734 * inferior.c (print_inferior): Update.
5735 * gdb_bfd.c (print_one_bfd): Update.
5736 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5737 Update.
5738 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5739 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5740 do_field_int. Change type of "value".
5741 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5742 do_field_int. Change type of "value".
5743 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5744 (print_one_breakpoint_location, print_it_catch_fork)
5745 (print_one_catch_fork, print_it_catch_vfork)
5746 (print_one_catch_vfork, print_it_catch_solib)
5747 (print_it_catch_exec, print_it_ranged_breakpoint)
5748 (print_mention_watchpoint, print_mention_masked_watchpoint)
5749 (bkpt_print_it, update_static_tracepoint): Update.
5750 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5751 * break-catch-syscall.c (print_it_catch_syscall): Update.
5752 * ada-tasks.c (print_ada_task_info): Update.
5753 * ada-lang.c (print_it_exception, print_mention_exception):
5754 Update.
5755
5756 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 PR breakpoints/24541
5759 * gdbarch.c: Regenerate.
5760 * gdbarch.h: Regenerate.
5761 * gdbarch.sh: Adjust return type and parameter types for
5762 'stap_adjust_register'.
5763 (i386_stap_adjust_register): Adjust signature and return new
5764 register name.
5765 * stap-probe.c (stap_parse_register_operand): Adjust use of
5766 'gdbarch_stap_adjust_register'.
5767
5768 2019-07-17 Tom Tromey <tromey@adacore.com>
5769
5770 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5771 declare VEC.
5772 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5773 std::vector.
5774 (struct s390_process_info): Add initializers.
5775 (s390_add_process): Use new.
5776 (s390_linux_nat_target::low_forget_process): Use delete.
5777 (s390_linux_nat_target::low_new_fork)
5778 (s390_linux_nat_target::stopped_by_watchpoint)
5779 (s390_linux_nat_target::low_prepare_to_resume)
5780 (s390_linux_nat_target::insert_watchpoint)
5781 (s390_linux_nat_target::insert_hw_breakpoint)
5782 (s390_linux_nat_target::remove_watchpoint)
5783 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5784
5785 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5786
5787 * aarch64-fbsd-nat.c: Include regcache.h.
5788 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5789 argument.
5790 (aarch64_fbsd_nat_target::fetch_registers)
5791 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5792 variable.
5793 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5794
5795 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5796
5797 * fbsd-nat.c: Include gdbarch.h.
5798
5799 2019-07-15 Tom Tromey <tromey@adacore.com>
5800
5801 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5802
5803 2019-07-15 Tom Tromey <tromey@adacore.com>
5804
5805 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5806 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5807 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5808 * cli-out.c (cli_ui_out::do_field_int): New method.
5809 * ui-out.c (ui_out::field_unsigned): New method.
5810 * symfile.c (generic_load): Use field_unsigned.
5811 (print_transfer_performance): Likewise.
5812 * record-btrace.c (ui_out_field_uint): Remove.
5813 (btrace_call_history_insn_range, btrace_call_history): Use
5814 field_unsigned.
5815 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5816 field_unsigned.
5817 * ui-out.h (class ui_out) <field_unsigned>: New method.
5818 <do_field_unsigned>: Likewise.
5819
5820 2019-07-15 Tom Tromey <tromey@adacore.com>
5821
5822 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5823 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5824 * target.c (flash_erase_command): Use field_string.
5825 * infrun.c (print_signal_received_reason): Use field_string.
5826 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5827 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5828 field_string.
5829 * ada-tasks.c (print_ada_task_info): Use field_string.
5830
5831 2019-07-15 Tom Tromey <tromey@adacore.com>
5832
5833 * target.c (flash_erase_command): Use field_core_addr.
5834 * symfile.c (generic_load): Use field_core_addr.
5835 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5836 Use field_core_addr.
5837 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5838 field_core_addr.
5839
5840 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5843 value if its desired type is smaller than a CORE_ADDR and signed.
5844
5845 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5848 of changes to field names, and use new is_reference field to
5849 decide if a property is a reference or not.
5850 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5851 field.
5852 (struct dwarf2_property_baton): Update header comment, rename
5853 'referenced_type' to 'property_type' and update comments.
5854 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5855 default property type, store in property baton, update to take
5856 accound of renamed field.
5857 (read_func_scope): Update call to attr_to_dynamic_prop.
5858 (read_array_type): Likewise.
5859 (dwarf2_per_cu_addr_sized_int_type): New function.
5860 (read_subrange_index_type): Move type finding code to
5861 dwarf2_per_cu_addr_sized_int_type.
5862 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5863 (dwarf2_per_cu_addr_type): New function.
5864 (set_die_type): Update calls to attr_to_dynamic_prop.
5865
5866 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5867
5868 * dwarf2read.c (read_subrange_index_type): New function.
5869 (read_subrange_type): Move code into new function and call it.
5870 * gdbtypes.c (create_range_type): Add some asserts.
5871
5872 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5875 update return statements.
5876 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5877 declaration, and update comment to match.
5878 * gdbtypes.c (resolve_dynamic_array): Update call to
5879 dwarf2_evaluate_property to match new return type.
5880
5881 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5882
5883 * valarith.c (value_subscripted_rvalue): Change lowerbound
5884 parameter type from int to LONGEST.
5885 * value.h (value_subscripted_rvalue): Likewise in declaration.
5886
5887 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5888
5889 * cli/cli-utils.c (info_print_command_completer): New function.
5890 * cli/cli-utils.h: Add 'completer.h' include, and forward
5891 declaration for 'struct cmd_list_element'.
5892 (info_print_command_completer): Declare.
5893 * stack.c (_initialize_stack): Add completer for 'info locals' and
5894 'info args'.
5895 * symtab.c (_initialize_symtab): Add completer for 'info
5896 variables' and 'info functions'.
5897 * NEWS: Mention completion for additional info commands.
5898
5899 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * cli/cli-utils.c (extract_info_print_args): Delete.
5902 (extract_arg_maybe_quoted): Delete.
5903 (info_print_options_defs): New variable.
5904 (make_info_print_options_def_group): New function.
5905 (extract_info_print_options): Define new function.
5906 * cli/cli-utils.h (extract_info_print_args): Delete.
5907 (struct info_print_options): New structure.
5908 (extract_info_print_options): Declare new function.
5909 * stack.c (info_locals_command): Update to use new
5910 extract_info_print_options, also add a header comment.
5911 (info_args_command): Likewise.
5912 * symtab.c (info_variables_command): Likewise.
5913 (info_functions_command): Likewise.
5914
5915 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5918 to extract string arguments.
5919 * common/common-utils.c (extract_string_maybe_quoted): New function.
5920 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5921
5922 2019-07-11 Tom Tromey <tromey@adacore.com>
5923
5924 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5925 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5926 * top.h (gdbinit): Don't declare.
5927 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5928 into...
5929 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5930 * top.c (gdb_init): Don't call init_cli_cmds.
5931 (gdbinit): Remove.
5932 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5933
5934 2019-07-11 Tom Tromey <tromey@adacore.com>
5935
5936 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5937 after it has been moved.
5938
5939 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * valops.c (value_must_coerce_to_target): Change return type to
5942 bool.
5943 * value.h (value_must_coerce_to_target): Likewise.
5944
5945 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5946
5947 * breakpoint.c (is_hardware_watchpoint): Remove
5948 forward-declaration.
5949 (is_masked_watchpoint): Change return type to bool.
5950 (is_tracepoint): Likewise.
5951 (is_breakpoint): Likewise.
5952 (is_hardware_watchpoint): Likewise.
5953 (is_watchpoint): Likewise.
5954 (is_no_memory_software_watchpoint): Likewise.
5955 (is_catchpoint): Likewise.
5956 (breakpoint_1): Make FILTER parameter's return type bool.
5957 is_masked_watchpoint): Change return type to bool.
5958 (save_breakpoints): Make FILTER parameter's return type bool.
5959 * breakpoint.h (is_breakpoint): Change return type to bool.
5960 (is_watchpoint): Likewise.
5961 (is_catchpoint): Likewise.
5962 (is_tracepoint): Likewise.
5963
5964 2019-07-10 Tom Tromey <tom@tromey.com>
5965
5966 * defs.h: Don't include gdbarch.h.
5967 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5968 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5969 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5970 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5971 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5972 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5973 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5974 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5975 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5976 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5977 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5978 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5979 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5980 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5981 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5982 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5983 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5984 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5985 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5986 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5987 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5988 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5989 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5990 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5991 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5992 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5993 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5994
5995 2019-07-10 Tom Tromey <tromey@adacore.com>
5996
5997 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5998 * breakpoint.c (init_ada_exception_breakpoint): Register as
5999 bp_catchpoint.
6000 (print_one_breakpoint_location, print_one_breakpoint): Use
6001 is_ada_exception_catchpoint.
6002 * ada-lang.c (class ada_catchpoint_location): Pass
6003 bp_loc_software_breakpoint to bp_location constructor.
6004 (is_ada_exception_catchpoint): New function.
6005
6006 2019-07-10 Tom Tromey <tromey@adacore.com>
6007
6008 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6009 VEC.
6010 (struct arm_exidx_entry): New method operator<.
6011 (struct arm_exidx_data) <section_maps>: Change type.
6012 (arm_exidx_data_free): Remove.
6013 (arm_exidx_data_key): Change type. Move lower.
6014 (arm_exidx_new_objfile): Update.
6015 (arm_compare_exidx_entries): Remove.
6016 (arm_find_exidx_entry, _initialize_arm_tdep)
6017
6018 2019-07-10 Tom Tromey <tromey@adacore.com>
6019
6020 * solib-spu.c (ocl_program_data_key): Change type.
6021 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6022 Update.
6023
6024 2019-07-10 Tom Tromey <tromey@adacore.com>
6025
6026 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6027 (struct solib_aix_inferior_data) <library_list>: Change type.
6028 (solib_aix_inferior_data_handle): Change type.
6029 (get_solib_aix_inferior_data): Update.
6030 (solib_aix_free_library_list): Remove.
6031 (library_list_start_library): Update.
6032 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6033 return type.
6034 (solib_aix_get_library_list)
6035 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6036 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6037
6038 2019-07-10 Tom Tromey <tromey@adacore.com>
6039
6040 * solib-dsbt.c (struct dsbt_info): Add initializers.
6041 (solib_dsbt_pspace_data): Change type.
6042 (dsbt_pspace_data_cleanup): Remove.
6043 (get_dsbt_info, _initialize_dsbt_solib): Update.
6044
6045 2019-07-10 Tom Tromey <tromey@adacore.com>
6046
6047 * spu-tdep.c (spu_overlay_data): Change type.
6048 (spu_get_overlay_table, spu_overlay_new_objfile)
6049 (_initialize_spu_tdep): Update.
6050
6051 2019-07-10 Tom Tromey <tromey@adacore.com>
6052
6053 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6054 destructor.
6055 (dbx_objfile_data_key): Change type and declare later.
6056 (DBX_SYMFILE_INFO): Rewrite.
6057 * dbxread.c (dbx_objfile_data_key): Change type.
6058 (dbx_symfile_init): Update.
6059 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6060 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6061 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6062
6063 2019-07-10 Tom Tromey <tromey@adacore.com>
6064
6065 * jit.c (jit_program_space_key): Change type. Move lower.
6066 (get_jit_program_space_data): Update.
6067 (jit_program_space_data_cleanup): Remove.
6068 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6069 Update.
6070 (struct jit_program_space_data): Add initializers.
6071
6072 2019-07-10 Tom Tromey <tromey@adacore.com>
6073
6074 * solib-darwin.c (struct darwin_info): Add initializers.
6075 (solib_darwin_pspace_data): Change type.
6076 (darwin_pspace_data_cleanup): Remove.
6077 (get_darwin_info, _initialize_darwin_solib): Update.
6078
6079 2019-07-10 Tom Tromey <tromey@adacore.com>
6080
6081 * remote-sim.c (struct sim_inferior_data): Add initializers,
6082 constructor, and destructor.
6083 (sim_inferior_data_key): Change type. Move lower.
6084 (check_for_duplicate_sim_descriptor): Update.
6085 (get_sim_inferior_data): Use new. Update.
6086 (~sim_inferior_data_cleanup): Rename from
6087 sim_inferior_data_cleanup. Simplify.
6088 (gdbsim_close_inferior, simulator_command)
6089 (sim_command_completer, _initialize_remote_sim): Update.
6090 (next_pid, INITIAL_PID): Move earlier.
6091
6092 2019-07-10 Tom Tromey <tromey@adacore.com>
6093
6094 * python/python-internal.h (create_thread_object): Return
6095 gdbpy_ref.
6096 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6097 * python/py-inferior.c (struct threadlist_entry): Add
6098 constructor.
6099 <thread_obj>: Now a gdbpy_ref.
6100 (thread_to_thread_object): Update.
6101 (add_thread_object): Use new.
6102 (delete_thread_object): Use delete.
6103 (infpy_threads): Update.
6104 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6105 GIL.
6106
6107 2019-07-10 Tom Tromey <tromey@adacore.com>
6108
6109 * valops.c (value_cast): Specialize error message for Ada.
6110
6111 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6114
6115 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6116
6117 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6118 bpstat_should_step): Return bool, adjust comments.
6119 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6120 bpstat_should_step): Likewise.
6121
6122 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6123
6124 * features/Makefile: Use feature target descriptions for Arm.
6125 * features/arm/arm-core.c: Generate new file.
6126 * features/arm/arm-fpa.c: Likewise.
6127 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6128 * features/arm/arm-m-profile.c: Likewise.
6129 * features/arm/arm-vfpv2.c: Likewise.
6130 * features/arm/arm-vfpv3.c: Likewise.
6131 * features/arm/xscale-iwmmxt.c: Likewise.
6132 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6133
6134 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6135
6136 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6137 ptrace earlier.
6138
6139 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6140
6141 * features/aarch64-pauth.c: Regenerate.
6142
6143 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6144
6145 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6146 bool.
6147 (bpstat_what): Use false instead of 0.
6148
6149 2019-07-09 Pedro Alves <palves@redhat.com>
6150
6151 * break-catch-throw.c (is_exception_catchpoint): New.
6152 * breakpoint.c (print_one_breakpoint_location): New parameter
6153 'raw_loc'. Handle it. Use
6154 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6155 looking at the breakpoint's type.
6156 (print_one_breakpoint): If handling "maint info breakpoints", also
6157 print locations of exception catchpoints.
6158 * breakpoint.h (is_exception_catchpoint): Declare.
6159
6160 2019-07-09 Pedro Alves <palves@redhat.com>
6161
6162 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6163 "addr" field.
6164 (allocate_location_exception_catchpoint): New.
6165 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6166 (initialize_throw_catchpoint_ops): Install
6167 allocate_location_exception_catchpoint as allocate_location
6168 method.
6169 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6170 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6171 bp_loc_other.
6172 (breakpoint_address_is_meaningful): Delete.
6173 (bl_address_is_meaningful): New.
6174 (breakpoint_locations_match): Adjust comment.
6175 (bp_location_from_bp_type): New, factored out of...
6176 (bp_location::bp_location(breakpoint *)): ... this.
6177 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6178 factored out of...
6179 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6180 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6181 breakpoint_address_is_meaningful.
6182 (bp_locations_compare): Adjust comment.
6183 (update_global_location_list): Use bl_address_is_meaningful
6184 instead of breakpoint_address_is_meaningful.
6185 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6186 explicit.
6187 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6188 * python/py-breakpoint.c (bppy_get_location): No longer check
6189 whether location is null.
6190
6191 2019-07-09 Pedro Alves <palves@redhat.com>
6192
6193 PR c++/15468
6194 * breakpoint.c (print_one_breakpoint_location): Remove
6195 single-location assert.
6196
6197 2019-07-09 Tom Tromey <tom@tromey.com>
6198
6199 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6200 * configure: Rebuild.
6201 * configure.ac: Change common to gdbsupport.
6202 * gdbsupport: Rename from common.
6203 * acinclude.m4: Change common to gdbsupport.
6204 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6205 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6206 gdbsupport.
6207 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6208 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6209 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6210 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6211 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6212 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6213 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6214 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6215 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6216 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6217 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6218 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6219 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6220 coff-pe-read.c, command.h, compile/compile-c-support.c,
6221 compile/compile-c.h, compile/compile-cplus-symbols.c,
6222 compile/compile-cplus-types.c, compile/compile-cplus.h,
6223 compile/compile-loc2c.c, compile/compile.c, completer.c,
6224 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6225 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6226 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6227 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6228 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6229 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6230 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6231 features/aarch64-core.c, features/aarch64-fpu.c,
6232 features/aarch64-pauth.c, features/aarch64-sve.c,
6233 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6234 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6235 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6236 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6237 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6238 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6239 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6240 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6241 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6242 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6243 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6244 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6245 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6246 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6247 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6248 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6249 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6250 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6251 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6252 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6253 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6254 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6255 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6256 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6257 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6258 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6259 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6260 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6261 minsyms.c, mips-linux-tdep.c, namespace.h,
6262 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6263 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6264 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6265 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6266 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6267 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6268 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6269 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6270 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6271 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6272 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6273 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6274 procfs.c, producer.c, progspace.h, psymtab.h,
6275 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6276 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6277 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6278 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6279 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6280 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6281 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6282 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6283 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6284 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6285 target-memory.c, target.c, target.h, target/waitstatus.c,
6286 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6287 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6288 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6289 unittests/array-view-selftests.c,
6290 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6291 unittests/common-utils-selftests.c,
6292 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6293 unittests/format_pieces-selftests.c,
6294 unittests/function-view-selftests.c,
6295 unittests/lookup_name_info-selftests.c,
6296 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6297 unittests/mkdir-recursive-selftests.c,
6298 unittests/observable-selftests.c,
6299 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6300 unittests/parse-connection-spec-selftests.c,
6301 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6302 unittests/scoped_fd-selftests.c,
6303 unittests/scoped_mmap-selftests.c,
6304 unittests/scoped_restore-selftests.c,
6305 unittests/string_view-selftests.c, unittests/style-selftests.c,
6306 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6307 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6308 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6309 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6310 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6311 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6312
6313 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6314
6315 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6316 bool value.
6317 (decode_digits_ordinary): Set explicit_line field in sal.
6318 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6319 symtab_and_line that was set on an explicit line number in
6320 assembler code. Do always update the recorded symtab and line if
6321 we do skip the prologue.
6322
6323 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * breakpoint.c (set_breakpoint_location_function): Remove
6326 explicit_loc parameter.
6327 (momentary_breakpoint_from_master): Update call to
6328 set_breakpoint_location_function.
6329 (add_location_to_breakpoint): Likewise.
6330
6331 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6334 required features based on default bfd type when no specific bfd
6335 is present.
6336
6337 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6338
6339 * NEWS: Mention that GDB printf and eval commands can now print
6340 C-style and Ada-style convenience var strings without
6341 calling the inferior.
6342 * printcmd.c (printf_c_string): Locally print GDB internal var
6343 instead of transiting via the inferior.
6344 (printf_wide_c_string): Likewise.
6345
6346 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6347
6348 PR breakpoints/25011
6349 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6350
6351 2019-07-04 Tom Tromey <tom@tromey.com>
6352
6353 PR tui/24724:
6354 * tui/tui-winsource.c (tui_clear_source_content): Update.
6355 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6356 (tui_update_breakpoint_info): Update.
6357 (tui_set_exec_info_content): Update.
6358 * tui/tui-source.c (tui_set_source_content_nil): Update.
6359 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6360 has_break.
6361 * tui/tui-data.h (enum tui_bp_flag): New.
6362 (tui_bp_flags): New enum flags type.
6363 (struct tui_source_element) <break_mode>: Change type. Rename
6364 from has_break.
6365 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6366 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6367 constants.
6368 * tui/tui-winsource.h: Fix comment.
6369
6370 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6371
6372 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6373 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6374 (store_fpregs_to_thread)
6375 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6376 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6377 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6378 (IWMMXT_REGS_SIZE): Add define.
6379 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6380 (fetch_vfp_regs, store_vfp_regs)
6381 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6382 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6383
6384 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6385
6386 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6387 defines.
6388 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6389 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6390 (ARM_INT_REGISTER_SIZE): ...to this.
6391 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6392 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6393 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6394 (arm_linux_collect_gregset, supply_nwfpe_register)
6395 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6396 defines.
6397 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6398 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6399 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6400 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6401 (arm_return_in_memory, arm_store_return_value)
6402 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6403 (arm_record_ld_st_multiple): Likewise.
6404 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6405 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6406
6407 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6408
6409 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6410 AARCH64_DISPLACED_MODIFIED_INSNS.
6411 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6412 (aarch64_displaced_step_copy_insn): Likewise.
6413 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6414 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6415 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6416 ARM_DISPLACED_MODIFIED_INSNS.
6417 * arm-tdep.c (arm_gdbarch_init): Likewise.
6418 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6419 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6420 (struct arm_displaced_step_closure): Use
6421 ARM_DISPLACED_MODIFIED_INSNS.
6422
6423 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6424
6425 * features/Makefile: Remove unused xml files.
6426 * features/aarch64.xml: Remove.
6427 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6428 * features/i386/amd64-avx-avx512.xml: Remove.
6429 * features/i386/amd64-avx-linux.xml: Remove.
6430 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6431 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6432 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6433 * features/i386/amd64-avx-mpx.xml: Remove.
6434 * features/i386/amd64-avx.xml: Remove.
6435 * features/i386/amd64-linux.xml: Remove.
6436 * features/i386/amd64-mpx-linux.xml: Remove.
6437 * features/i386/amd64-mpx.xml: Remove.
6438 * features/i386/amd64.xml: Remove.
6439 * features/i386/i386-avx-avx512-linux.xml: Remove.
6440 * features/i386/i386-avx-avx512.xml: Remove.
6441 * features/i386/i386-avx-linux.xml: Remove.
6442 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6443 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6444 * features/i386/i386-avx-mpx-linux.xml: Remove.
6445 * features/i386/i386-avx-mpx.xml: Remove.
6446 * features/i386/i386-avx.xml: Remove.
6447 * features/i386/i386-linux.xml: Remove.
6448 * features/i386/i386-mmx-linux.xml: Remove.
6449 * features/i386/i386-mmx.xml: Remove.
6450 * features/i386/i386-mpx-linux.xml: Remove.
6451 * features/i386/i386-mpx.xml: Remove.
6452 * features/i386/i386.xml: Remove.
6453 * features/i386/x32-avx-avx512-linux.xml: Remove.
6454 * features/i386/x32-avx-linux.xml: Remove.
6455 * features/i386/x32-linux.xml: Remove.
6456
6457 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6458
6459 * regformats/aarch64.dat: Remove.
6460 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6461 * regformats/i386/amd64-avx-linux.dat: Remove.
6462 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6463 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6464 * regformats/i386/amd64-linux.dat: Remove.
6465 * regformats/i386/amd64-mpx-linux.dat: Remove.
6466 * regformats/i386/amd64.dat: Remove.
6467 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6468 * regformats/i386/i386-avx-linux.dat: Remove.
6469 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6470 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6471 * regformats/i386/i386-linux.dat: Remove.
6472 * regformats/i386/i386-mmx-linux.dat: Remove.
6473 * regformats/i386/i386-mpx-linux.dat: Remove.
6474 * regformats/i386/i386.dat: Remove.
6475 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6476 * regformats/i386/x32-avx-linux.dat: Remove.
6477 * regformats/i386/x32-linux.dat: Remove.
6478
6479 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6480
6481 * aarch64-tdep.c: Remove xml self tests.
6482 * amd64-linux-tdep.c: Likewise.
6483 * amd64-tdep.c: Likewise.
6484 * i386-linux-tdep.c: Likewise.
6485 * i386-tdep.c: Likewise.
6486
6487 2019-07-03 Pedro Alves <palves@redhat.com>
6488
6489 PR cli/24732
6490 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6491 (pipe_cmd_option_defs): New.
6492 (make_pipe_cmd_options_def_group): New.
6493 (pipe_command): Use gdb::option::process_options.
6494 (pipe_command_completer): New function.
6495 (_initialize_cli_cmds): Install completer for "pipe" command.
6496
6497 2019-07-03 Pedro Alves <palves@redhat.com>
6498
6499 * cli/cli-option.c (union option_value) <string>: New field.
6500 (struct option_def_and_value): Add ctor, move ctor, dtor and
6501 use DISABLE_COPY_AND_ASSIGN.
6502 (option_def_and_value::clear_value): New.
6503 (parse_option, save_option_value_in_ctx, get_val_type_str)
6504 (add_setshow_cmds_for_options): Handle var_string.
6505 * cli-option.h (union option_def::var_address) <string>: New
6506 field.
6507 (struct string_option_def): New.
6508 * maint-test-options.c (struct test_options_opts): Add default
6509 ctor and use DISABLE_COPY_AND_ASSIGN.
6510 <string_opt>: New field.
6511 (test_options_opts::~test_options_opts): New.
6512 (test_options_opts::dump): Also dump "-string".
6513 (test_options_option_defs): Install "string.
6514
6515 2019-07-03 Pedro Alves <palves@redhat.com>
6516
6517 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6518 option_value with a null enumeration.
6519 (complete_options): Save the option values in the context.
6520 (save_option_value_in_ctx): New, factored out from ...
6521 (process_options): ... here.
6522 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6523 of the function.
6524 * maint-test-options.c (test_options_opts::dump): New, factored
6525 out from ...
6526 (maintenance_test_options_command_mode): ... here.
6527 (maintenance_test_options_command_completion_result): Delete.
6528 (maintenance_test_options_command_completion_text): Update
6529 comment.
6530 (maintenance_show_test_options_completion_result): Change
6531 prototype. Just print
6532 maintenance_test_options_command_completion_text.
6533 (save_completion_result): New.
6534 (maintenance_test_options_completer_mode): Pass options context to
6535 complete_options, and then save a dump.
6536 (_initialize_maint_test_options): Use add_cmd to install "maint
6537 show test-options-completion-result".
6538
6539 2019-07-03 Pedro Alves <palves@redhat.com>
6540
6541 * NEWS (New commands): Mention "with" and "maint with".
6542 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6543 (with_command, with_command_completer): New.
6544 (pipe_command): Adjust to new repeat_previous
6545 interface.
6546 (_initialize_cli_cmds): Install the "with" command and its "w"
6547 alias.
6548 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6549 declarations.
6550 * cli/cli-setshow.c (parse_cli_var_uinteger)
6551 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6552 argument strings for all var_types.
6553 (get_setshow_command_value_string): New, factored out from ...
6554 (do_show_command): ... this.
6555 * cli/cli-setshow.h: Include <string>.
6556 (get_setshow_command_value_string): Declare.
6557 * command.h (repeat_previous): Now returns const char *. Adjust
6558 comment.
6559 * maint.c: Include "cli/cli-cmds.h".
6560 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6561 (_initialize_maint_cmds): Register the "maintenance with" command.
6562 * top.c (repeat_previous): Move bits from pipe_command here:
6563 Return the saved command line, if any; error out if there's no
6564 command to relaunch.
6565
6566 2019-07-03 Pedro Alves <palves@redhat.com>
6567
6568 * NEWS (New commands): Mention "maint set/show test-settings"
6569 instead of "maint test-settings".
6570 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6571 (maintenance_test_settings_set_list): Rename to ...
6572 (maintenance_set_test_settings_list): ... this.
6573 (maintenance_test_settings_show_list): Rename to ...
6574 (maintenance_show_test_settings_list): ... this.
6575 (maintenance_test_settings_cmd): Delete.
6576 (maintenance_test_settings_set_cmd): ...
6577 (maintenance_set_test_settings_cmd): ... this.
6578 (maintenance_test_settings_show_cmd): ...
6579 (maintenance_show_test_settings_cmd): ... this.
6580 (maintenance_test_settings_show_value_cmd):
6581 (maintenance_show_test_settings_value_cmd): ... this.
6582 (_initialize_maint_test_settings): No longer install the "maint
6583 test-settings" prefix command. Rename "maint test-settings set"
6584 to "maint set test-settings", and "maint test-settings show" to
6585 "maint show test-settings". Adjust all subcommands.
6586
6587 2019-07-03 Pedro Alves <palves@redhat.com>
6588
6589 * maint-test-settings.c: Fix file's intro comment. Replace all
6590 references to "test-options" with references to "test-settings",
6591 in comments.
6592
6593 2019-07-03 Pedro Alves <palves@redhat.com>
6594
6595 * maint-test-settings.c (maintenance_test_settings_xxx)
6596 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6597 New.
6598 (maintenance_test_settings_enums): Use them.
6599 (maintenance_test_settings_enum): Default to
6600 maintenance_test_settings_xxx.
6601 (_initialize_maint_test_settings): Initialize
6602 MAINTENANCE_TEST_SETTINGS_FILENAME.
6603
6604 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * breakpoint.h (remove_breakpoints_inf): Change return type to
6607 void, move function documentation here.
6608 * breakpoint.c (remove_breakpoints_inf): Change return type to
6609 void, move function documentation to header.
6610
6611 2019-07-02 Pedro Alves <palves@redhat.com>
6612
6613 * NEWS (Completion improvements): Mention "info threads".
6614 * thread.c (struct info_threads_opts, info_threads_option_defs)
6615 (make_info_threads_options_def_group): New.
6616 (info_threads_command): Use gdb::option::process_options.
6617 (info_threads_command_completer): New.
6618 (_initialize_thread): Use gdb::option::build_help to build the
6619 help text for "info threads".
6620
6621 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6622
6623 * defs.h (generic_load): Move from here...
6624 * symfile.h (generic_load): ... to here. Rename name parameter
6625 to args.
6626 * symfile.c (generic_load): Add comment.
6627
6628 2019-07-01 Tom Tromey <tromey@adacore.com>
6629
6630 * dwarf2read.c
6631 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6632 declaration of without_params. Fix formatting.
6633
6634 2019-07-01 Tom Tromey <tromey@adacore.com>
6635
6636 * ada-exp.y (find_primitive_type): Update.
6637 * ada-lang.h (ada_lookup_symbol): Update.
6638 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6639 parameter.
6640 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6641
6642 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6643
6644 PR breakpoints/24541
6645 * gdbarch.c: Regenerate.
6646 * gdbarch.h: Regenerate.
6647 * gdbarch.sh: Add 'stap_adjust_register'.
6648 * i386-tdep.c: Include '<unordered_set>'.
6649 (i386_stap_adjust_register): New function.
6650 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6651 * stap-probe.c (stap_parse_register_operand): Call
6652 'gdbarch_stap_adjust_register'.
6653
6654 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6655
6656 PR python/24742
6657 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6658 * python/python.c (do_start_initialization): Use 'xmalloc'
6659 instead of 'PyMem_Malloc'.
6660
6661 2019-06-28 Tom Tromey <tromey@adacore.com>
6662
6663 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6664 for Ada.
6665
6666 2019-06-27 Tom Tromey <tromey@adacore.com>
6667
6668 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6669 objfile_key.
6670 (arm_find_mapping_symbol, arm_record_special_symbol)
6671 (_initialize_arm_tdep): Update.
6672 (arm_objfile_data_free): Remove.
6673
6674 2019-06-27 Tom Tromey <tromey@adacore.com>
6675
6676 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6677 to cp_print_static_field.
6678
6679 2019-06-26 Tom Tromey <tromey@adacore.com>
6680
6681 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6682 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6683 declare.
6684
6685 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6686
6687 * features/aarch64-core.c (create_feature_aarch64_core):
6688 Regenerate.
6689 * features/aarch64-core.xml: Add cpsr flags.
6690
6691 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6692
6693 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6694 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6695
6696 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6697
6698 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6699 field.
6700 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6701 use.
6702 (arm_record_special_symbol): Don't insert new symbol in sorted
6703 position, push it at the end.
6704
6705 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6706
6707 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6708 (arm_mapping_symbol_s): Remove.
6709 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6710 (arm_mapping_symbol_vec): New typedef.
6711 (struct arm_per_objfile): Add constructor.
6712 <section_maps>: Change type to
6713 std::unique_ptr<arm_mapping_symbol_vec[]>.
6714 (arm_compare_mapping_symbols): Remove.
6715 (arm_find_mapping_symbol): Adjust to section_maps type change.
6716 (arm_objfile_data_free): Call delete on arm_per_objfile.
6717 (arm_record_special_symbol): Adjust to section_maps type change.
6718 Allocate arm_per_objfile with new.
6719
6720 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6721
6722 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6723 with the command prefix.
6724
6725 2019-06-25 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6728 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6729
6730 2019-06-25 Tom Tromey <tom@tromey.com>
6731
6732 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6733 type.
6734 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6735 protected.
6736
6737 2019-06-25 Tom Tromey <tom@tromey.com>
6738
6739 * tui/tui-winsource.c
6740 (tui_source_window_base::set_is_exec_point_at): Add check against
6741 LOA_ADDRESS.
6742
6743 2019-06-25 Tom Tromey <tom@tromey.com>
6744
6745 * tui/tui-source.c (tui_set_source_content): Don't check before
6746 xfree.
6747 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6748
6749 2019-06-25 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui-winsource.h (tui_update_source_window_as_is)
6752 (tui_alloc_source_buffer, tui_line_is_displayed)
6753 (tui_addr_is_displayed): Change type of win_info.
6754 * tui/tui-winsource.c (tui_update_source_window_as_is)
6755 (tui_clear_source_content, tui_show_source_line)
6756 (tui_show_source_content, tui_source_window_base::refill)
6757 (tui_source_window_base::set_is_exec_point_at)
6758 (tui_source_window_base::set_is_exec_point_at)
6759 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6760 (tui_alloc_source_buffer, tui_line_is_displayed)
6761 (tui_addr_is_displayed): Change type of win_info. Update.
6762 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6763 (tui_source_window_base::do_make_visible_with_new_height):
6764 Update.
6765 * tui/tui-source.c (tui_set_source_content)
6766 (tui_set_source_content_nil)
6767 (tui_source_window::do_scroll_vertical): Update.
6768 * tui/tui-layout.c (show_layout): Update.
6769 * tui/tui-disasm.c (tui_set_disassem_content)
6770 (tui_disasm_window::do_scroll_vertical): Update.
6771 * tui/tui-data.h (tui_win_content): Remove.
6772 (struct tui_gen_win_info) <content, content_size>: Remove.
6773 (struct tui_source_element): Add initializers and destructor.
6774 (union tui_which_element, struct tui_win_element): Remove.
6775 (struct tui_source_window_base) <content>: New field.
6776 (struct tui_data_window): Remove destructor.
6777 (tui_alloc_content, tui_free_win_content)
6778 (tui_free_all_source_wins_content): Don't declare.
6779 * tui/tui-data.c (tui_initialize_static_data): Update.
6780 (init_content_element, tui_alloc_content): Remove.
6781 (~tui_gen_win_info): Update.
6782 (~tui_data_window, tui_free_all_source_wins_content)
6783 (tui_free_win_content, free_content, free_content_elements):
6784 Remove.
6785
6786 2019-06-25 Tom Tromey <tom@tromey.com>
6787
6788 * tui/tui-winsource.h (tui_clear_source_content)
6789 (tui_erase_source_content, tui_show_source_content): Change type
6790 of win_info.
6791 * tui/tui-winsource.c (tui_clear_source_content)
6792 (tui_erase_source_content, tui_show_source_content): Change type
6793 of win_info.
6794 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6795 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6796 win_info.
6797 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6798 win_info.
6799 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6800
6801 2019-06-25 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-winsource.c (tui_clear_source_content)
6804 (tui_source_window_base::set_is_exec_point_at): Update.
6805 * tui/tui-source.c (tui_set_source_content_nil): Update.
6806 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6807 a bool.
6808 * tui/tui-data.c (init_content_element): Update.
6809
6810 2019-06-25 Tom Tromey <tom@tromey.com>
6811
6812 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6813 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6814 * tui/tui-layout.c (init_and_make_win): Update.
6815 * tui/tui.h (enum tui_win_type): Update.
6816 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6817 tui_win_is_auxillary.
6818 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6819 tui_win_is_auxillary.
6820
6821 2019-06-25 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6824 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6825 (tui_delete_data_content_windows, tui_display_all_data)
6826 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6827 Update.
6828 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6829 * tui/tui-regs.c (tui_last_regs_line_no)
6830 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6831 (tui_show_registers): Update.
6832 (tui_show_register_group): Return void. Update.
6833 (tui_display_registers_from, tui_display_reg_element_at_line)
6834 (tui_display_registers_from_line, tui_check_register_values):
6835 Update.
6836 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6837 member.
6838 (struct tui_data_window) <regs_content>: Now a std::vector.
6839 <regs_content_count>: Remove.
6840 (tui_add_content_elements, tui_free_data_content): Don't declare.
6841 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6842 (init_content_element): Remove DATA_WIN case. Add assert.
6843 (tui_add_content_elements): Remove.
6844 (tui_data_window): Update.
6845 (tui_free_data_content): Remove.
6846 (free_content_elements): Remove DATA_WIN case.
6847
6848 2019-06-25 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui-data.c (tui_data_item_window): Update.
6851 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6852 * tui/tui-windata.c (tui_display_all_data)
6853 (tui_display_data_from_line): Update.
6854 (tui_check_data_values): Remove.
6855 * tui/tui-regs.c (tui_show_register_group)
6856 (tui_display_reg_element_at_line): Update.
6857 * tui/tui-hooks.c (tui_register_changed)
6858 (tui_refresh_frame_and_register_information): Call
6859 tui_check_register_values.
6860 * tui/tui-data.h (struct tui_data_window) <data_content,
6861 data_content_count, data_type>: Remove.
6862 (enum tui_data_type): Remove.
6863
6864 * tui/tui-data.c (tui_data_window::clear_detail)
6865 (~tui_data_window): Update.
6866
6867 2019-06-25 Tom Tromey <tom@tromey.com>
6868
6869 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6870 declare.
6871 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6872 Rename from tui_first_data_item_displayed. Update.
6873 (tui_data_window::refresh_all)
6874 (tui_data_window::do_scroll_vertical): Update.
6875 * tui/tui-data.h (struct tui_data_window)
6876 <first_data_item_displayed>: Declare new method.
6877
6878 2019-06-25 Tom Tromey <tom@tromey.com>
6879
6880 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6881 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6882 contents...
6883 (tui_initialize_static_data): ...here.
6884
6885 2019-06-25 Tom Tromey <tom@tromey.com>
6886
6887 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6888 (tui_display_registers_from, tui_check_register_values): Update.
6889 (tui_display_register): Remove win_info parameter; update.
6890 (tui_get_register): Change type of parameters.
6891 * tui/tui-data.h (struct tui_data_element): Remove.
6892 (union tui_which_element) <data>: Remove.
6893 <data_window>: Change type.
6894 (struct tui_data_item_window): New.
6895 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6896 case. Add assert.
6897 (~tui_data_item_window): New destructor.
6898 (free_content_elements): Remove DATA_ITEM_WIN case.
6899
6900 2019-06-25 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6903 Remove.
6904
6905 2019-06-25 Tom Tromey <tom@tromey.com>
6906
6907 * tui/tui-data.h (struct tui_command_element): Remove.
6908 (union tui_which_element) <command>: Remove.
6909 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6910 assert.
6911 (free_content_elements): Remove CMD_WIN case.
6912
6913 2019-06-25 Tom Tromey <tom@tromey.com>
6914
6915 * tui/tui-layout.c (tui_set_layout): Update.
6916 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6917 * tui/tui-data.c (layout_def): Update.
6918
6919 2019-06-25 Tom Tromey <tom@tromey.com>
6920
6921 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6922 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6923 (tui_source_window_base::set_new_height): Update.
6924 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6925 Update.
6926 (tui_set_locator_fullname, tui_set_locator_info)
6927 (tui_show_frame_info): Update.
6928 * tui/tui-source.c (tui_set_source_content)
6929 (tui_source_is_displayed): Update.
6930 * tui/tui-layout.c (show_source_disasm_command, show_data)
6931 (show_source_or_disasm_and_command): Update.
6932 * tui/tui-disasm.c (tui_set_disassem_content)
6933 (tui_get_begin_asm_address): Update.
6934 * tui/tui-data.h (struct tui_locator_element): Remove.
6935 (union tui_which_element) <locator>: Remove.
6936 (struct tui_locator_window): New.
6937 (tui_locator_win_info_ptr): Change return type.
6938 * tui/tui-data.c (_locator): Change type.
6939 (tui_locator_win_info_ptr): Change return type.
6940 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6941 (tui_alloc_content): Add assert.
6942
6943 2019-06-25 Tom Tromey <tom@tromey.com>
6944
6945 * tui/tui-winsource.c
6946 (tui_exec_info_window::maybe_allocate_content): New method.
6947 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6948 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6949 (make_source_or_disasm_window): Add cast.
6950 * tui/tui-data.h (union tui_which_element) <simple_string>:
6951 Remove.
6952 (struct tui_source_info): New.
6953 (struct tui_source_window_base) <execution_info>: Change type.
6954 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6955 case, and add assert.
6956 (tui_alloc_content): Add assert.
6957
6958 2019-06-25 Tom Tromey <tom@tromey.com>
6959
6960 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6961 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6962 * tui/tui-data.c (tui_alloc_win_info): Remove.
6963
6964 2019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6967 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6968 can_highlight.
6969
6970 2019-06-25 Tom Tromey <tom@tromey.com>
6971
6972 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6973 make_visible_with_new_height method.
6974 (tui_win_info::make_visible_with_new_height): New method.
6975 (tui_source_window_base::do_make_visible_with_new_height)
6976 (tui_data_window::do_make_visible_with_new_height)
6977 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6978 (make_visible_with_new_height): Remove.
6979 (tui_resize_all, tui_adjust_win_heights): Use
6980 make_visible_with_new_height method.
6981 * tui/tui-data.h (struct tui_win_info)
6982 <do_make_visible_with_new_height, make_visible_with_new_height>:
6983 New methods.
6984 (struct tui_source_window_base, struct tui_data_window)
6985 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6986 methods.
6987
6988 2019-06-25 Tom Tromey <tom@tromey.com>
6989
6990 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6991 method.
6992 (update_tab_width): Call update_tab_width method.
6993 * tui/tui-data.h (struct tui_win_info)
6994 (struct tui_source_window_base) <update_tab_width>: New methods.
6995
6996 2019-06-25 Tom Tromey <tom@tromey.com>
6997
6998 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6999 parameter.
7000 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7001 parameter.
7002 (tui_gen_win_info::make_visible): Update.
7003 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7004 parameter.
7005 * tui/tui-data.h (enum tui_box): New enum.
7006 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7007
7008 2019-06-25 Tom Tromey <tom@tromey.com>
7009
7010 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7011 init_and_make_win for EXEC_INFO_WIN.
7012 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7013 longer inline.
7014 (struct tui_win_info) <~tui_win_info>: Inline.
7015 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7016 Don't declare.
7017 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7018 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7019 Remove.
7020 (tui_initialize_static_data): Update.
7021 (~tui_gen_win_info): Handle more cleanup here.
7022 (~tui_source_window_base): Delete "execution_info".
7023 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7024
7025 2019-06-25 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui-layout.c (make_command_window): Don't set
7028 can_highlight.
7029 (show_source_disasm_command): Call the reset method.
7030 (show_data): Don't set can_highlight. Call the reset method.
7031 (tui_gen_win_info::reset): Rename from init_gen_win_info
7032 (init_and_make_win): Simplify. Return tui_gen_win_info.
7033 (show_source_or_disasm_and_command): Call the reset method.
7034 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7035 (struct tui_cmd_window): Set can_highlight.
7036
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7038
7039 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7040 from make_visible.
7041 (tui_make_visible, tui_make_invisible): Rewrite.
7042 (tui_win_info::make_visible): Remove.
7043 (tui_source_window_base::make_visible): Update.
7044 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7045 method. Moved from...
7046 (struct tui_win_info) <make_visible>: ...here.
7047
7048 2019-06-25 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-winsource.c
7051 (tui_source_window_base::do_scroll_horizontal): Remove direction
7052 parameter.
7053 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7054 direction parameter.
7055 * tui/tui-win.c (tui_win_info::forward_scroll)
7056 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7057 (tui_win_info::right_scroll): Update.
7058 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7059 direction parameter.
7060 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7061 direction parameter.
7062 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7063 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7064 Remove direction parameter.
7065 (struct tui_source_window_base, struct tui_source_window)
7066 (struct tui_disasm_window, struct tui_data_window)
7067 (struct tui_cmd_window): Update.
7068
7069 2019-06-25 Tom Tromey <tom@tromey.com>
7070
7071 * tui/tui-winsource.h (tui_set_exec_info_content)
7072 (tui_show_exec_info_content, tui_erase_exec_info_content)
7073 (tui_clear_exec_info_content, tui_update_exec_info): Change
7074 argument to tui_source_window_base.
7075 * tui/tui-winsource.c (tui_set_exec_info_content)
7076 (tui_show_exec_info_content, tui_erase_exec_info_content)
7077 (tui_clear_exec_info_content, tui_update_exec_info): Change
7078 argument to tui_source_window_base.
7079
7080 2019-06-25 Tom Tromey <tom@tromey.com>
7081
7082 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7083 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7084
7085 2019-06-25 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7088 check.
7089
7090 2019-06-25 Tom Tromey <tom@tromey.com>
7091
7092 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7093 type to void.
7094 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7095 type to void.
7096 * tui/tui-source.c (tui_set_source_content): Update.
7097 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7098
7099 2019-06-25 Tom Tromey <tom@tromey.com>
7100
7101 * tui/tui-win.c (window_name_completer, tui_set_focus)
7102 (tui_all_windows_info): Use name method.
7103 * tui/tui-data.h (struct tui_gen_win_info)
7104 (struct tui_source_window, struct tui_disasm_window)
7105 (struct tui_data_window, struct tui_cmd_window) <name>: New
7106 method.
7107 (tui_win_name): Don't declare.
7108 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7109 (tui_win_name): Remove.
7110
7111 2019-06-25 Tom Tromey <tom@tromey.com>
7112
7113 * tui/tui-winsource.h (tui_update_source_window)
7114 (tui_update_source_window_as_is): Change parameter type.
7115 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7116 to be a tui_source_window_base.
7117 (tui_update_source_window_as_is): Likewise.
7118 * tui/tui-win.c (make_visible_with_new_height): Update.
7119
7120 2019-06-25 Tom Tromey <tom@tromey.com>
7121
7122 * tui/tui-winsource.c (tui_erase_source_content)
7123 (tui_show_source_content, tui_show_exec_info_content)
7124 (tui_erase_exec_info_content): Use refresh_window method.
7125 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7126 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7127 from tui_refresh_win.
7128 (tui_data_window::refresh_window): New method.
7129 (tui_win_info::refresh, tui_source_window_base::refresh)
7130 (tui_refresh_all): Use refresh_window method.
7131 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7132 method.
7133 * tui/tui-regs.c (tui_display_register): Call refresh_window
7134 method.
7135 * tui/tui-layout.c (show_source_disasm_command)
7136 (show_source_or_disasm_and_command): Call refresh_window method.
7137 * tui/tui-data.h (struct tui_gen_win_info)
7138 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7139 New method.
7140
7141 2019-06-25 Tom Tromey <tom@tromey.com>
7142
7143 * tui/tui.c (tui_rl_other_window, tui_enable)
7144 (tui_is_window_visible, tui_get_command_dimension): Update.
7145 * tui/tui-winsource.c (tui_update_source_window_as_is)
7146 (tui_clear_source_content, tui_erase_source_content)
7147 (tui_show_source_line, tui_source_window_base::refill)
7148 (tui_source_window_base::do_scroll_horizontal)
7149 (tui_source_window_base::set_is_exec_point_at)
7150 (tui_update_breakpoint_info, tui_set_exec_info_content)
7151 (tui_alloc_source_buffer, tui_line_is_displayed)
7152 (tui_addr_is_displayed): Update.
7153 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7154 (tui_check_and_display_highlight_if_needed)
7155 (tui_win_info::make_visible, tui_win_info::refresh)
7156 (tui_refresh_all): Update.
7157 * tui/tui-windata.c (tui_first_data_item_displayed)
7158 (tui_delete_data_content_windows, tui_erase_data_content)
7159 (tui_display_all_data, tui_data_window::refresh_all)
7160 (tui_check_data_values): Update.
7161 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7162 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7163 (tui_win_info::backward_scroll, tui_refresh_all_win)
7164 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7165 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7166 (tui_source_window_base::set_new_height)
7167 (tui_data_window::set_new_height)
7168 (make_invisible_and_set_new_height)
7169 (make_visible_with_new_height, new_height_ok)
7170 (parse_scrolling_args): Update.
7171 * tui/tui-stack.c (tui_show_frame_info): Update.
7172 * tui/tui-source.c (tui_set_source_content)
7173 (tui_set_source_content_nil, tui_source_is_displayed)
7174 (tui_source_window::do_scroll_vertical): Update.
7175 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7176 (tui_display_registers_from, tui_display_reg_element_at_line)
7177 (tui_check_register_values, tui_reg_command): Update.
7178 * tui/tui-layout.c (tui_default_win_height)
7179 (show_source_disasm_command, show_data, init_and_make_win)
7180 (show_source_or_disasm_and_command): Update.
7181 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7182 (tui_redisplay_readline, tui_mld_flush)
7183 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7184 (tui_getc): Update.
7185 * tui/tui-disasm.c (tui_set_disassem_content)
7186 (tui_disasm_window::do_scroll_vertical): Update.
7187 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7188 Now virtual.
7189 (struct tui_win_info): Derive from tui_gen_win_info.
7190 <~tui_win_info>: Mark as override.
7191 <generic>: Remove member.
7192 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7193 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7194 (~tui_data_window, ~tui_win_info)
7195 (tui_free_all_source_wins_content): Update.
7196 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7197
7198 2019-06-25 Tom Tromey <tom@tromey.com>
7199
7200 * tui/tui-layout.c (init_and_make_win): Use new.
7201 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7202 destructor, initializers.
7203 (tui_alloc_generic_win_info): Don't declare.
7204 * tui/tui-data.c (_locator): Add argument to constructor.
7205 (source_win, disasm_win): New globals.
7206 (exec_info): Remove.
7207 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7208 Update.
7209 (tui_alloc_generic_win_info): Remove.
7210 (init_content_element): Use new.
7211 (tui_win_info::tui_win_info): Update.
7212 (free_content_elements) <case DATA_WIN>: Use delete.
7213
7214 2019-06-25 Tom Tromey <tom@tromey.com>
7215
7216 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7217 * tui/tui-windata.c (tui_first_data_item_displayed)
7218 (tui_delete_data_content_windows): Update.
7219 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7220 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7221 (tui_display_registers_from, tui_check_register_values): Update.
7222 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7223 pointer.
7224 * tui/tui-data.c (init_content_element): Update. Allocate the new
7225 window.
7226 (tui_free_data_content): Update.
7227 (free_content_elements) <case DATA_WIN>: Free the window.
7228
7229 2019-06-25 Tom Tromey <tom@tromey.com>
7230
7231 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7232 Update.
7233 * tui/tui-layout.c (make_command_window)
7234 (show_source_disasm_command, show_data, init_and_make_win)
7235 (show_source_or_disasm_and_command): Update.
7236 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7237 method.
7238 <can_highight, is_highlighted>: Now bool.
7239 (tui_set_win_highlight): Don't declare.
7240 * tui/tui-data.c (tui_set_win_highlight): Remove.
7241
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-wingeneral.c (make_visible): Remove check of window
7245 type.
7246
7247 2019-06-25 Tom Tromey <tom@tromey.com>
7248
7249 * tui/tui-win.c (tui_win_info::max_height)
7250 (tui_cmd_window::max_height): New methods.
7251 (new_height_ok): Call max_height.
7252 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7253 <max_height>: New method.
7254
7255 2019-06-25 Tom Tromey <tom@tromey.com>
7256
7257 * tui/tui-win.c (tui_source_window_base::set_new_height)
7258 (tui_data_window::set_new_height): New methods.
7259 (make_invisible_and_set_new_height): Call set_new_height method.
7260 * tui/tui-data.h (struct tui_win_info)
7261 (struct tui_source_window_base, struct tui_data_window)
7262 <set_new_height>: New method.
7263
7264 2019-06-25 Tom Tromey <tom@tromey.com>
7265
7266 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7267 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7268 tui_refresh_data_win.
7269 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7270 method.
7271 (tui_refresh_all_win): Call the refresh_all method.
7272 (tui_set_focus): Likewise.
7273 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7274 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7275 Likewise.
7276
7277 2019-06-25 Tom Tromey <tom@tromey.com>
7278
7279 * tui/tui-winsource.h (tui_refill_source_window)
7280 (tui_set_is_exec_point_at): Don't declare.
7281 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7282 (tui_source_window_base::refill): Rename from
7283 tui_refill_source_window.
7284 (tui_source_window_base::do_scroll_horizontal): Update.
7285 (tui_source_window_base::set_is_exec_point_at): Rename from
7286 tui_set_is_exec_point_at.
7287 (tui_update_all_breakpoint_info): Update.
7288 * tui/tui-stack.c (tui_show_frame_info): Update.
7289 * tui/tui-layout.c (show_data): Add cast.
7290 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7291 * tui/tui-data.h (struct tui_source_window_base) <refill,
7292 set_is_exec_point_at>: New methods.
7293 (tui_source_windows, tui_add_to_source_windows): Update types.
7294 (tui_add_to_source_windows): Remove redundant declaration.
7295 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7296 (tui_source_windows): Change return type.
7297 (tui_clear_source_windows_detail): Update.
7298 (tui_add_to_source_windows): Change type of parameter.
7299 (tui_free_all_source_wins_content): Update.
7300
7301 2019-06-25 Tom Tromey <tom@tromey.com>
7302
7303 * tui/tui-wingeneral.c (tui_win_info::refresh)
7304 (tui_source_window_base::refresh): New methods.
7305 (tui_refresh_all): Call the refresh method.
7306 * tui/tui-data.h (struct tui_win_info)
7307 (struct tui_source_window_base) <refresh>: New method.
7308
7309 2019-06-25 Tom Tromey <tom@tromey.com>
7310
7311 * tui/tui.h (tui_is_window_visible): Return bool.
7312 * tui/tui.c (tui_is_window_visible): Return bool.
7313 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7314 (tui_make_visible, tui_make_invisible)
7315 (tui_win_info::make_visible)
7316 (tui_source_window_base::make_visible, make_all_visible)
7317 (tui_make_all_visible, tui_make_all_invisible): Update.
7318 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7319 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7320 bool.
7321 (struct tui_win_info, struct tui_source_window_base)
7322 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7323 * tui/tui-data.c (tui_init_generic_part): Update.
7324
7325 2019-06-25 Tom Tromey <tom@tromey.com>
7326
7327 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7328 (tui_source_window_base::make_visible): New methods.
7329 (make_all_visible): Make method call.
7330 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7331 (struct tui_source_window_base, struct tui_cmd_window): Override
7332 make_visible.
7333 (tui_win_is_source_type): Don't declare.
7334 * tui/tui-data.c (tui_win_is_source_type): Remove.
7335
7336 2019-06-25 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7339 NULL check.
7340
7341 2019-06-25 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7344 Inline constructor. Add initializers for members.
7345 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7346 constructors; now inline in class.
7347
7348 2019-06-25 Tom Tromey <tom@tromey.com>
7349
7350 * tui/tui-regs.c (tui_show_registers): Update.
7351 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7352 bool.
7353 * tui/tui-data.c (tui_data_window::clear_detail)
7354 (tui_data_window): Update.
7355
7356 2019-06-25 Tom Tromey <tom@tromey.com>
7357
7358 * tui/tui-windata.c (tui_display_all_data)
7359 (tui_display_data_from_line, tui_display_data_from)
7360 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7361 Update.
7362 * tui/tui-regs.c (tui_last_regs_line_no)
7363 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7364 (tui_show_registers, tui_show_register_group)
7365 (tui_display_registers_from, tui_display_reg_element_at_line)
7366 (tui_display_registers_from_line, tui_check_register_values)
7367 (tui_reg_next, tui_reg_prev): Update.
7368 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7369 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7370 tui_data_window.
7371 (struct tui_win_info) <detail>: Remove. Add new fields from
7372 tui_data_info.
7373 (TUI_DATA_WIN): Add cast.
7374 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7375 (~tui_data_window): Simplify.
7376
7377 2019-06-25 Tom Tromey <tom@tromey.com>
7378
7379 * tui/tui-layout.c (show_source_disasm_command)
7380 (show_source_or_disasm_and_command): Update.
7381 * tui/tui-io.c (update_cmdwin_start_line)
7382 (tui_redisplay_readline): Update.
7383 * tui/tui-data.h (struct tui_command_info): Remove.
7384 (struct tui_win_info) <detail>: Remove command_info member.
7385 (struct tui_data_window) <start_line>: New member, from
7386 tui_command_info.
7387 (TUI_CMD_WIN): Add casts.
7388
7389 2019-06-25 Tom Tromey <tom@tromey.com>
7390
7391 * tui/tui-winsource.c (tui_update_source_window)
7392 (tui_refill_source_window)
7393 (tui_source_window_base::do_scroll_horizontal)
7394 (tui_update_breakpoint_info, tui_set_exec_info_content)
7395 (tui_show_exec_info_content, tui_erase_exec_info_content)
7396 (tui_clear_exec_info_content): Update.
7397 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7398 Update.
7399 * tui/tui-win.c (make_invisible_and_set_new_height)
7400 (make_visible_with_new_height): Update.
7401 * tui/tui-source.c (tui_set_source_content)
7402 (tui_show_symtab_source): Update.
7403 * tui/tui-layout.c (extract_display_start_addr)
7404 (show_source_disasm_command, show_data)
7405 (make_source_or_disasm_window)
7406 (show_source_or_disasm_and_command): Update.
7407 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7408 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7409 "gdbarch".
7410 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7411 to tui_source_window_base.
7412 (struct tui_win_info) <detail>: Remove source_info member.
7413 (struct tui_source_window_base) <has_locator>: Inline.
7414 Move contents from tui_source_info; rename has_locator member to
7415 m_has_locator.
7416 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7417 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7418 header file.
7419 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7420 Simplify.
7421 (tui_free_all_source_wins_content): Cast to
7422 tui_source_window_base.
7423
7424 2019-06-25 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-win.c (make_invisible_and_set_new_height)
7427 (make_visible_with_new_height): Call has_locator method.
7428 * tui/tui-layout.c (show_source_disasm_command, show_data)
7429 (show_source_or_disasm_and_command): Update for bool change.
7430 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7431 (tui_win_info) <has_locator>: New method.
7432 (struct tui_source_window_base) <has_locator>: New method.
7433 (tui_win_has_locator): Don't declare.
7434 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7435 from tui_win_has_locator.
7436 (tui_source_window_base): Use false, not FALSE.
7437
7438 2019-06-25 Tom Tromey <tom@tromey.com>
7439
7440 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7441 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7442 clear_detail method directly.
7443 (tui_clear_win_detail): Remove.
7444
7445 2019-06-25 Tom Tromey <tom@tromey.com>
7446
7447 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7448 "this", not TUI_DISASM_WIN.
7449
7450 2019-06-25 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7453 declare.
7454 * tui/tui-winsource.c
7455 (tui_source_window_base::do_scroll_horizontal): Rename from
7456 tui_horizontal_source_scroll.
7457 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7458 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7459 from tui_vertical_data_scroll.
7460 * tui/tui-win.h (tui_scroll): Don't declare.
7461 * tui/tui-win.c (tui_win_info::forward_scroll)
7462 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7463 (tui_win_info::right_scroll): Rename and update.
7464 (tui_scroll_forward_command, tui_scroll_backward_command)
7465 (tui_scroll_left_command, tui_scroll_right_command): Update.
7466 (tui_scroll): Remove.
7467 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7468 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7469 from tui_vertical_source_scroll.
7470 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7471 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7472 from tui_vertical_disassem_scroll.
7473 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7474 do_scroll_horizontal>: New methods.
7475 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7476 Likewise.
7477 (struct tui_source_window_base): Add do_scroll_horizontal.
7478 (struct tui_source_window, struct tui_disasm_window): Add
7479 do_scroll_vertical.
7480 (struct tui_data_window, struct tui_cmd_window): Add
7481 do_scroll_horizontal and do_scroll_vertical.
7482 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7483
7484 2019-06-25 Tom Tromey <tom@tromey.com>
7485
7486 * tui/tui-data.h (struct tui_source_window_base): New struct.
7487 (struct tui_source_window): Derive from tui_source_window_base.
7488 (struct tui_disasm_window): New struct.
7489 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7490 from tui_source_window::clear_detail.
7491 (tui_source_window_base): Rename from tui_source_window.
7492 (~tui_source_window_base): Rename from ~tui_source_window.
7493 (tui_alloc_win_info): Create a tui_disasm_window.
7494
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7496
7497 * tui/tui-data.h (struct tui_source_window)
7498 (struct tui_data_window): Declare destructors.
7499 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7500 destructors.
7501 (tui_win_info): Simplify.
7502
7503 2019-06-25 Tom Tromey <tom@tromey.com>
7504
7505 * tui/tui-winsource.c (tui_display_main)
7506 (tui_update_source_windows_with_addr)
7507 (tui_update_all_breakpoint_info): Update.
7508 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7509 (new_height_ok, parse_scrolling_args): Update.
7510 * tui/tui-stack.c (tui_show_frame_info): Update.
7511 * tui/tui-data.h (struct tui_list): Remove.
7512 (tui_source_windows): Return a reference to a std::vector.
7513 * tui/tui-data.c (source_windows): Now a std::vector.
7514 (tui_source_windows): Change return type.
7515 (tui_clear_source_windows): Rewrite.
7516 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7517 (tui_free_all_source_wins_content): Rewrite.
7518
7519 2019-06-25 Tom Tromey <tom@tromey.com>
7520
7521 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7522 (struct tui_data_window, struct tui_cmd_window): Declare
7523 clear_detail method.
7524 * tui/tui-data.c (tui_source_window::clear_detail)
7525 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7526 methods.
7527 (tui_clear_win_detail): Simplify.
7528
7529 2019-06-25 Tom Tromey <tom@tromey.com>
7530
7531 * tui/tui-layout.c (make_source_window, make_disasm_window)
7532 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7533 Return the new window.
7534 (show_source_disasm_command, show_data)
7535 (show_source_or_disasm_and_command): Update.
7536
7537 2019-06-25 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7540 parameter. Return the new window.
7541 (show_source_disasm_command): Update and remove NULL check.
7542 (show_source_or_disasm_and_command): Update.
7543
7544 2019-06-25 Tom Tromey <tom@tromey.com>
7545
7546 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7547
7548 2019-06-25 Tom Tromey <tom@tromey.com>
7549
7550 * tui/tui-data.h (struct tui_win_info): Make constructor
7551 protected. Make destructor virtual. Add initializers.
7552 (tui_source_window, tui_data_window, tui_cmd_window): New
7553 classes.
7554 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7555 constructor. Add "type" parameter.
7556 (tui_source_window, tui_data_window, tui_cmd_window): New
7557 constructors.
7558 (tui_alloc_win_info): Instantiate the appropriate subclass.
7559
7560 2019-06-25 Tom Tromey <tom@tromey.com>
7561
7562 * tui/tui-win.c (tui_resize_all): Use delete.
7563 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7564 destructor.
7565 (tui_free_window): Don't declare.
7566 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7567 Update.
7568
7569 2019-06-25 Tom Tromey <tom@tromey.com>
7570
7571 * tui/tui-data.h (struct tui_win_info): Add constructor.
7572 * tui/tui-data.c (tui_alloc_win_info): Use new.
7573 (tui_free_window): Use delete.
7574
7575 2019-06-22 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7578 declare.
7579 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7580
7581 2019-06-22 Tom Tromey <tom@tromey.com>
7582
7583 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7584 declare.
7585 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7586
7587 2019-06-22 Tom de Vries <tdevries@suse.de>
7588
7589 * dwarf2read.c (create_addrmap_from_aranges)
7590 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7591 instead of '%zu'.
7592
7593 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * dwarf2read.h (dwarf2_section_info_def): Remove.
7596 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7597 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7598 std::vector<dwarf2_section_info>.
7599 (struct dwo_file) <~dwo_file>: Remove.
7600 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7601 types field.
7602 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7603 (dwarf2_read_debug_names): Likewise.
7604 (create_debug_types_hash_table): Change parameter type to
7605 array_view, adjust code accordingly.
7606 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7607 (partial_die_info::fixup): Likewise.
7608 (determine_prefix): Likewise.
7609 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7610
7611 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7612
7613 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7614 gdb_bfd_ref_ptr.
7615 <~dwo_file>: Remove call to gdb_bfd_unref.
7616 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7617 gdb_bfd_ref_ptr::get.
7618
7619 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7620
7621 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7622 type to htab_up.
7623 * dwarf2read.c (struct dwo_file): Initialize fields.
7624 <~dwo_file>: New.
7625 (free_dwo_file): Remove, move content to ~dwo_file.
7626 (struct dwo_file_deleter): Remove.
7627 (dwo_file_up>: Remove custom deleter.
7628 (free_dwo_files): Remove.
7629 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7630 dwo_files.
7631 (process_skeletonless_type_units): Call unique_ptr::get.
7632 (allocate_dwo_file_hash_table): Add deleter to created hash
7633 table. Change return type to htab_up.
7634 (lookup_dwo_file_slot): Don't memset dwo_file, call
7635 unique_ptr::get.
7636 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7637 (create_dwo_unit_in_dwp_v2): Likewise.
7638 (open_and_init_dwo_file): Likewise.
7639 (free_dwo_file_from_slot): Remove.
7640
7641 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7642
7643 * dwarf2read.h (struct dwarf2_section_info) <readin,
7644 is_virtual>: Change type to bool.
7645 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7646 true instead of 1.
7647
7648 2019-06-19 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-data.h (tui_init_content_element): Don't declare.
7651
7652 2019-06-19 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui-data.h (tui_init_win_info): Don't declare.
7655
7656 2019-06-19 Tom de Vries <tdevries@suse.de>
7657
7658 * dwarf2read.h (abstract_to_concrete): Change type to
7659 std::unordered_map<sect_offset, std::vector<sect_offset>,
7660 gdb::hash_enum<sect_offset>>.
7661
7662 2019-06-19 Tom Tromey <tromey@adacore.com>
7663
7664 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7665 EVAL_AVOID_SIDE_EFFECTS specially.
7666
7667 2019-06-19 Tom Tromey <tromey@adacore.com>
7668
7669 * source-cache.c (highlighter): New global.
7670 (source_cache::get_source_lines): Create a highlighter on demand.
7671
7672 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * defs.h (deprecated_interactive_hook): Delete declaration.
7675 * interps.c (clear_interpreter_hooks): Remove use of
7676 deprecated_interactive_hook.
7677 * top.c (deprecated_interactive_hook): Delete definition.
7678 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7679
7680 2019-06-18 Tom de Vries <tdevries@suse.de>
7681
7682 PR gdb/24515
7683 * dwarf2read.h (abstract_to_concrete): Change type from
7684 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7685 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7686 * dwarf2read.c (read_variable): Update.
7687 (dwarf2_fetch_die_loc_sect_off): Update.
7688
7689 2019-06-17 Tom de Vries <tdevries@suse.de>
7690
7691 PR gdb/24617
7692 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7693 accessing parent[parent_len - 1].
7694
7695 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7696
7697 PR gdb/24364
7698 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7699 call dtrace_process_dof with NULL dof.
7700
7701 2019-06-16 Tom de Vries <tdevries@suse.de>
7702
7703 PR gdb/24445
7704 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7705
7706 2019-06-16 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7709 (make_all_visible): Use address of member.
7710
7711 2019-06-16 Tom Tromey <tom@tromey.com>
7712
7713 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7714 (tui_free_window, free_content, free_content_elements): Remove
7715 unnecessary cast.
7716 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7717 cast.
7718 * tui/tui-regs.c (tui_show_register_group)
7719 (tui_display_registers_from, tui_display_reg_element_at_line):
7720 Remove unnecessary cast.
7721
7722 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 * linux-nat.c (normal_mask): Delete.
7725 (_initialize_linux_nat): Don't initialise normal_mask.
7726
7727 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7728
7729 PR gdb/24445
7730 * dwarf-index-write.h (write_psymtabs_to_index): Add
7731 dwz_basename parameter.
7732 * dwarf-index-write.c (write_gdbindex): Move file writing to
7733 write_gdbindex_1. Change return type void.
7734 (assert_file_size): Move up, remove filename parameter.
7735 (write_gdbindex_1): New function.
7736 (write_debug_names): Change return type to void, call
7737 assert_file_size.
7738 (struct index_wip_file): New struct.
7739 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7740 file logic to index_wip_file. Write index for dwz file if
7741 needed.
7742 (save_gdb_index_command): Pass basename of dwz file, if present.
7743 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7744 build-id of dwz file, if present.
7745 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7746 (dwarf2_get_dwz_file): Likewise.
7747 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7748 (dwarf2_get_dwz_file): Likewise.
7749
7750 2019-06-16 Tom Tromey <tom@tromey.com>
7751
7752 * coffread.c (process_coff_symbol): Use xstrdup.
7753 * value.c (create_internalvar): Use xstrdup.
7754
7755 2019-06-16 Tom Tromey <tom@tromey.com>
7756
7757 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7758 * breakpoint.c (stopin_command, stopat_command)
7759 (until_break_command, decode_location_default): Remove unnecessary
7760 cast.
7761 * utils.c (subset_compare): Remove unnecessary cast.
7762 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7763 cast.
7764 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7765 cast.
7766 * infcmd.c (path_command): Remove unnecessary cast.
7767 * coffread.c (decode_type): Remove unnecessary cast.
7768 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7769 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7770 * tui/tui-stack.c (tui_show_locator_content)
7771 (tui_show_frame_info): Remove unnecessary cast.
7772 * tui/tui-win.c (tui_scroll_forward_command)
7773 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7774 (parse_scrolling_args): Remove unnecessary cast.
7775 * tui/tui-data.c (init_win_info, tui_del_window)
7776 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7777 (free_content_elements): Remove unnecessary cast.
7778 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7779 unnecessary cast.
7780 * tui/tui-source.c (tui_set_source_content)
7781 (tui_vertical_source_scroll): Remove unnecessary cast.
7782 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7783 cast.
7784 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7785 * tui/tui-regs.c (tui_display_registers_from)
7786 (tui_display_register): Remove unnecessary cast.
7787 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7788 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7789 (make_visible): Remove unnecessary cast.
7790 * tui/tui-winsource.c (tui_erase_source_content)
7791 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7792 unnecessary cast.
7793 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7794 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7795 * stabsread.c (read_type, read_array_type, read_range_type):
7796 Remove unnecessary cast.
7797 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7798 (parse_symbol, parse_type, upgrade_type, parse_external)
7799 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7800 unnecessary cast.
7801 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7802
7803 2019-06-16 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-data.c (tui_alloc_generic_win_info)
7806 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7807 checks.
7808
7809 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7810 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * f-typeprint.c (f_print_type): Don't return early for not
7813 associated or not allocated types.
7814 (f_type_print_varspec_suffix): Add print_rank parameter and print
7815 ranks of array types in case they dangling.
7816 (f_type_print_base): Add print_rank parameter.
7817
7818 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7819
7820 * NEWS: Mention new MI commands.
7821 * break-catch-throw.c (enum exception_event_kind): Move to
7822 breakpoint.h.
7823 (print_mention_exception_catchpoint): Output text as a single
7824 message.
7825 (catch_exception_command_1): Rename to...
7826 (catch_exception_event): ...this, make non-static, update header
7827 command, and change some parameter types.
7828 (catch_catch_command): Update for changes to
7829 catch_exception_command_1.
7830 (catch_throw_command): Likewise.
7831 (catch_rethrow_command): Likewise.
7832 * breakpoint.c (enum exception_event_kind): Delete.
7833 * breakpoint.h (enum exception_event_kind): Moved here from
7834 break-catch-throw.c.
7835 (catch_exception_event): Declare.
7836 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7837 (mi_cmd_catch_throw): New function.
7838 (mi_cmd_catch_rethrow): New function.
7839 (mi_cmd_catch_catch): New function.
7840 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7841 'catch-catch' entries.
7842 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7843 (mi_cmd_catch_rethrow): Declare.
7844 (mi_cmd_catch_catch): Declare.
7845
7846 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * annotate.c (annotate_source_line): Change return type to void,
7849 update implementation to match.
7850 * annotate.h (annotate_source_line): Change return type to void,
7851 update header comment.
7852 * stack.c (print_frame_info): Don't change what frame information
7853 is printed based on whether annotations are on or not.
7854
7855 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7858 (annotate_source): Make static.
7859 (annotate_source_line): Moved from source.c and renamed from
7860 identify_source_line. Update the return type.
7861 * annotate.h (annotate_source): Delete declaration.
7862 (annotate_source_line): Declaration moved from source.h, and
7863 renamed from identify_source_line. Return type updated.
7864 * source.c (identify_source_line): Moved to annotate.c and renamed
7865 to annotate_source_line.
7866 (info_line_command): Remove check of annotation_level.
7867 * source.h (identify_source_line): Move declaration to annotate.h
7868 and rename to annotate_source_line.
7869 * stack.c: Add 'annotate.h' include.
7870 (print_frame_info): Remove check of annotation_level before
7871 calling annotate_source_line.
7872
7873 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7874
7875 * source-cache.c (source_cache::get_plain_source_lines): Use
7876 open_source_file_with_line_charpos instead of just
7877 open_source_file, remove call to find_source_lines.
7878 (source_cache::get_source_lines): Likewise.
7879 * source.c (find_source_lines): Make static.
7880 (get_filename_and_charpos): Renamed into...
7881 (open_source_file_with_line_charpos): ..this along with changes to
7882 return a scoped_fd, and some other minor clean ups.
7883 (identify_source_line): Use open_source_file_with_line_charpos.
7884 (search_command_helper): Use open_source_file_with_line_charpos
7885 instead of just open_source_file, remove call to
7886 find_source_lines.
7887 * source.h (open_source_file_with_line_charpos): Declare new
7888 function.
7889 (find_source_lines): Delete declaration.
7890
7891 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7892
7893 * source.c (get_filename_and_charpos): Remove fullname
7894 parameter.
7895 (identify_source_line): Update call to get_filename_and_charpos.
7896
7897 2019-06-14 Tom Tromey <tromey@adacore.com>
7898
7899 PR gdb/24502:
7900 * ui-style.h (skip_ansi_escape): Update comment.
7901 * ui-file.h (class no_terminal_escape_file): New class.
7902 * ui-file.c (no_terminal_escape_file::write)
7903 (no_terminal_escape_file::puts): New methods.
7904 * cli/cli-logging.c (handle_redirections): Use
7905 no_terminal_escape_file.
7906
7907 2019-06-14 Tom Tromey <tromey@adacore.com>
7908
7909 * NEWS: Move convenience variable news above Python news.
7910
7911 2019-06-14 Tom Tromey <tom@tromey.com>
7912
7913 * gnulib: Move directory to top-level.
7914 * configure.ac: Don't configure gnulib.
7915 * configure: Rebuild.
7916 * common/common-defs.h: Use new path to gnulib.
7917 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7918 (GNULIB_H): Remove.
7919 (INCGNU): Look in new gnulib location.
7920 (HFILES_NO_SRCDIR): Remove gnulib files.
7921 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7922 (generated_files): Remove GNULIB_H.
7923 ($(LIBGNU), all-lib): Remove targets.
7924 (distclean): Don't mention GNULIB_BUILDDIR.
7925 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7926
7927 2019-06-14 Tom Tromey <tromey@adacore.com>
7928
7929 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7930 Warn if symbol file does not provide any symbols.
7931
7932 2019-06-14 Tom Tromey <tromey@adacore.com>
7933
7934 * source.c (find_and_open_source): Respect basenames_may_differ.
7935
7936 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7937
7938 * annotate.c (annotate_breakpoints_invalid): Make use of
7939 scoped_restore_terminal_state.
7940 (annotate_frames_invalid): Likewise.
7941
7942 2019-06-14 Tom Tromey <tromey@adacore.com>
7943
7944 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7945 allow assignment to an internalvar.
7946
7947 2019-06-14 Tom Tromey <tromey@adacore.com>
7948
7949 * ada-lex.l: Allow "_" in attribute names.
7950
7951 2019-06-14 Tom Tromey <tromey@adacore.com>
7952
7953 PR gdb/24653:
7954 * regcache.c (registers_changed): Don't call alloca.
7955 * top.c (execute_command): Don't call alloca.
7956
7957 2019-06-13 Pedro Alves <palves@redhat.com>
7958
7959 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7960 'expression'. When parsing an expression, error out if there's
7961 junk after "unlimited".
7962 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7963 (do_set_command): Adjust calls to is_unlimited_literal.
7964
7965 2019-06-13 Pedro Alves <palves@redhat.com>
7966
7967 * compile/compile.c (make_compile_options_def_group): Add braces
7968 around array_view initializer.
7969 * thread.c (make_thread_apply_all_options_def_group)
7970 (make_thread_apply_all_options_def_group): Likewise.
7971
7972 2019-06-13 Pedro Alves <palves@redhat.com>
7973
7974 * NEWS (New commands): Mention "maint test-options
7975 require-delimiter", "maint test-options unknown-is-error", "maint
7976 test-options unknown-is-operand" and "maint show
7977 test-options-completion-result".
7978 (New command options, command completion): New section.
7979 (Completion improvements): New section.
7980 Mention that you can abbreviate "unlimited".
7981
7982 2019-06-13 Pedro Alves <palves@redhat.com>
7983
7984 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7985 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7986 * unittests/cli-utils-selftests.c (test_parse_flags)
7987 (test_parse_flags_qcs): Delete.
7988 (test_cli_utils): Don't call deleted functions.
7989
7990 2019-06-13 Pedro Alves <palves@redhat.com>
7991
7992 * thread.c: Include "cli/cli-option.h".
7993 (tp_array_compar_ascending): Global.
7994 (tp_array_compar): Delete function.
7995 (tp_array_compar_ascending, tp_array_compar_descending): New
7996 functions.
7997 (ascending_option_def, qcs_flag_option_def)
7998 (thr_qcs_flags_option_defs)
7999 (make_thread_apply_all_options_def_group)
8000 (make_thread_apply_options_def_group): New.
8001 (thread_apply_all_command): Use gdb::option::process_options.
8002 (thread_apply_command_completer)
8003 (thread_apply_all_command_completer): New.
8004 (thread_apply_command): Use gdb::option::process_options.
8005 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8006 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8007 to generate help text of "thread apply". Adjust "taas"'s help.
8008 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8009 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8010
8011 2019-06-13 Pedro Alves <palves@redhat.com>
8012
8013 * thread.c (thread_apply_command): Check for invalid TID with
8014 isdigit instead of !isalpha.
8015
8016 2019-06-13 Pedro Alves <palves@redhat.com>
8017
8018 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8019 (validate_flags_qcs): New.
8020 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8021 (validate_flags_qcs): Declare.
8022 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8023 (make_frame_apply_options_def_group): New.
8024 (frame_apply_command_count): Process options with
8025 gdb::option::process_options.
8026 (frame_apply_completer): New.
8027 (frame_apply_level_completer, frame_apply_all_completer)
8028 (frame_apply_completer): New.
8029 (_initialize_stack): Update help of "frame apply", "frame apply
8030 level", "frame apply all" and "faas" to mention supported options
8031 and install command completers.
8032 * stack.h (frame_apply_all_completer): Declare.
8033 * thread.c: Include "stack.h".
8034 (tfaas_command): Add "--".
8035 (_initialize_thread): Update help "tfaas" to mention supported
8036 options and install command completer.
8037
8038 2019-06-13 Pedro Alves <palves@redhat.com>
8039
8040 * completer.c (complete_nested_command_line): New.
8041 (gdb_completion_word_break_characters_throw): Add assertion.
8042 * completer.h (complete_nested_command_line): Declare.
8043
8044 2019-06-13 Pedro Alves <palves@redhat.com>
8045
8046 * stack.c (parse_backtrace_qualifiers): New.
8047 (backtrace_command): Use it.
8048 (backtrace_command_completer): Complete on qualifiers.
8049
8050 2019-06-13 Pedro Alves <palves@redhat.com>
8051
8052 * frame.c: Include "cli/cli-option.h.
8053 (user_set_backtrace_options): New.
8054 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8055 Delete.
8056 (get_prev_frame): Adjust.
8057 (boolean_option_def, uinteger_option_def)
8058 (set_backtrace_option_defs): New.
8059 (_initialize_frame): Adjust and use
8060 gdb::option::add_setshow_cmds_for_options to install "set
8061 backtrace past-main" and "set backtrace past-entry".
8062 * frame.h: Include "cli/cli-option.h".
8063 (struct frame_print_options): Forward declare.
8064 (print_frame_arguments_all, print_frame_arguments_scalars)
8065 (print_frame_arguments_none): Declare.
8066 (print_entry_values): Delete declaration.
8067 (struct frame_print_options, user_frame_print_options): New.
8068 (struct set_backtrace_options): New.
8069 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8070 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8071 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8072 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8073 (list_args_or_locals): Add frame_print_options parameter.
8074 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8075 * python/py-framefilter.c (enumerate_args): Pass down
8076 USER_FRAME_PRINT_OPTIONS.
8077 * stack.c: Include "cli/cli-option.h".
8078 (print_frame_arguments_all, print_frame_arguments_scalars)
8079 (print_frame_arguments_none): Declare.
8080 (print_raw_frame_arguments, print_entry_values): Delete.
8081 (user_frame_print_options): New.
8082 (boolean_option_def, enum_option_def, frame_print_option_defs):
8083 New.
8084 (struct backtrace_cmd_options): New.
8085 (bt_flag_option_def): New.
8086 (backtrace_command_option_defs): New.
8087 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8088 (print_frame_arg, read_frame_arg, print_frame_args)
8089 (print_frame_info, print_frame): Add frame_print_options parameter
8090 and use it.
8091 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8092 (backtrace_command_1): Add frame_print_options and
8093 backtrace_cmd_options parameters and use them.
8094 (make_backtrace_options_def_group): New.
8095 (backtrace_command): Process command options with
8096 gdb::option::process_options.
8097 (backtrace_command_completer): New.
8098 (_initialize_stack): Extend "backtrace"'s help to mention
8099 supported options. Install completer for "backtrace".
8100 Install some settings commands with add_setshow_cmds_for_options.
8101
8102 2019-06-13 Pedro Alves <palves@redhat.com>
8103
8104 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8105 and that "set/show print raw frame-arguments" are now deprecated.
8106
8107 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8108 command.
8109 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8110 * stack.c (_initialize_stack): Install "set/show print
8111 raw-frame-arguments", and deprecate "set/show print raw
8112 frame-arguments".
8113 * valprint.c (_initialize_valprint): Deprecate "set/show print
8114 raw".
8115
8116 2019-06-13 Pedro Alves <palves@redhat.com>
8117
8118 * compile/compile.c (struct compile_options): New.
8119 (compile_flag_option_def, compile_command_option_defs)
8120 (make_compile_options_def_group): New.
8121 (compile_file_command): Handle options with
8122 gdb::option::process_options.
8123 (compile_file_command_completer): New function.
8124 (compile_code_command): Handle options with
8125 gdb::option::process_options.
8126 (compile_code_command_completer): New function.
8127 (_initialize_compiler): Install completers for "compile code" and
8128 "compile file". Mention available options in "compile code" and
8129 "compile code"'s help.
8130 * completer.c (advance_to_completion_word): New, factored out from
8131 ...
8132 (advance_to_expression_complete_word_point): ... this.
8133 (advance_to_filename_complete_word_point): New.
8134 * completer.h (advance_to_filename_complete_word_point): New
8135 declaration.
8136
8137 2019-06-13 Pedro Alves <palves@redhat.com>
8138
8139 * compile/compile.c: Include "cli/cli-option.h".
8140 (compile_print_value): Scope data pointer is now a
8141 value_print_options pointer; adjust.
8142 (compile_print_command): Process options. Scope data pointer is
8143 now a value_print_options pointer; adjust.
8144 (_initialize_compile): Update "compile print"'s help to include
8145 supported options. Install a completer for "compile print".
8146 * cp-valprint.c (show_vtblprint, show_objectprint)
8147 (show_static_field_print): Delete.
8148 (_initialize_cp_valprint): Don't install "set print
8149 static-members", "set print vtbl", "set print object" here.
8150 * printcmd.c: Include "cli/cli-option.h" and
8151 "common/gdb_optional.h".
8152 (print_command_parse_format): Rework to fill in a
8153 value_print_options instead of a format_data.
8154 (print_value): Change parameter type from format_data pointer to
8155 value_print_options reference. Adjust.
8156 (print_command_1): Process options. Adjust to pass down a
8157 value_print_options.
8158 (print_command_completer): New.
8159 (_initialize_printcmd): Install print_command_completer as
8160 handle_brkchars completer for the "print" command. Update
8161 "print"'s help to include supported options.
8162 * valprint.c: Include "cli/cli-option.h".
8163 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8164 here from cp-valprint.c.
8165 (boolean_option_def, uinteger_option_def)
8166 (value_print_option_defs, make_value_print_options_def_group):
8167 New. Use gdb::option::add_setshow_cmds_for_options to install
8168 "set print elements", "set print null-stop", "set print repeats",
8169 "set print pretty", "set print union", "set print array", "set
8170 print address", "set print symbol", "set print array-indexes".
8171 * valprint.h: Include <string> and "cli/cli-option.h".
8172 (make_value_print_options_def_group): Declare.
8173 (print_value): Change parameter type from format_data pointer to
8174 value_print_options reference.
8175 (print_command_completer): Declare.
8176
8177 2019-06-13 Pedro Alves <palves@redhat.com>
8178
8179 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8180 (COMMON_SFILES): Add maint-test-settings.c.
8181 * cli/cli-decode.c (boolean_enums): New global, factored out from
8182 ...
8183 (add_setshow_boolean_cmd): ... here.
8184 * cli/cli-decode.h (boolean_enums): Declare.
8185 * cli/cli-option.c: New file.
8186 * cli/cli-option.h: New file.
8187 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8188 factored out from ...
8189 (parse_cli_boolean_value(const char *)): ... this.
8190 (is_unlimited_literal): Change parameter type to pointer to
8191 pointer. Adjust and advance ARG pointer.
8192 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8193 (parse_cli_var_enum): New, factored out from ...
8194 (do_set_command): ... this. Adjust.
8195 * cli/cli-setshow.h (parse_cli_boolean_value)
8196 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8197 (parse_cli_var_enum): Declare.
8198 * cli/cli-utils.c: Include "cli/cli-option.h".
8199 (get_ulongest): New.
8200 * cli/cli-utils.h (get_ulongest): Declare.
8201 (check_for_argument): New overloads.
8202 * maint-test-options.c: New file.
8203
8204 2019-06-13 Pedro Alves <palves@redhat.com>
8205
8206 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8207 parse a range if "-" is at the end of the string.
8208
8209 2019-06-13 Pedro Alves <palves@redhat.com>
8210
8211 * cli/cli-setshow.c (parse_auto_binary_operation)
8212 (parse_cli_boolean_value): Don't allow "o".
8213
8214 2019-06-13 Pedro Alves <palves@redhat.com>
8215
8216 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8217 * NEWS: Mention maint test-settings KIND.
8218 * maint-test-settings.c: New file.
8219
8220 2019-06-13 Pedro Alves <palves@redhat.com>
8221
8222 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8223 completer.
8224 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8225 "set" completers.
8226
8227 2019-06-13 Pedro Alves <palves@redhat.com>
8228
8229 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8230 after item.
8231
8232 2019-06-13 Pedro Alves <palves@redhat.com>
8233
8234 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8235
8236 2019-06-13 Pedro Alves <palves@redhat.com>
8237
8238 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8239 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8240 call.
8241 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8242 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8243 calls.
8244 (check_for_argument): Skip spaces after argument.
8245
8246 2019-06-13 Pedro Alves <palves@redhat.com>
8247
8248 * thread.c (thread_apply_command): Adjust TID parsing.
8249 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8250 detected before end of string.
8251 (tid_is_in_list): Error out if LIST is invalid.
8252
8253 2019-06-13 Pedro Alves <palves@redhat.com>
8254
8255 * completer.c (complete_line_internal_1): Rewind completion word
8256 point.
8257 (completion_tracker::advance_custom_word_point_by): Change
8258 parameter type to int.
8259 * completer.h (completion_tracker::advance_custom_word_point_by):
8260 Likewise.
8261
8262 2019-06-13 Pedro Alves <palves@redhat.com>
8263
8264 * completer.c (advance_to_completion_word): Handle delimiters.
8265
8266 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8267
8268 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8269
8270 2019-06-11 Tom Tromey <tom@tromey.com>
8271
8272 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8273 (xmalloc_failed): Move to alloc.c.
8274 * alloc.c: New file.
8275 * Makefile.in (COMMON_SFILES): Add alloc.c.
8276
8277 2019-06-11 Tom Tromey <tom@tromey.com>
8278
8279 * nat/linux-waitpid.c: Don't include server.h.
8280 (linux_debug): Remove.
8281 (my_waitpid): Update.
8282
8283 2019-06-11 Tom Tromey <tromey@adacore.com>
8284
8285 * infcall.c (_initialize_infcall): Remove trailing newline from
8286 help.
8287 * user-regs.c (_initialize_user_regs): Remove trailing newline
8288 from help.
8289 * typeprint.c (_initialize_typeprint): Remove trailing newline
8290 from help.
8291 * reverse.c (_initialize_reverse): Remove trailing newlines from
8292 help.
8293 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8294 from help.
8295 * language.c (add_set_language_command): Remove trailing newline
8296 from help.
8297 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8298 help.
8299 * disasm.c (_initialize_disasm): Remove trailing newline from
8300 help.
8301 * top.c (init_main): Remove trailing newline from help.
8302 * interps.c (_initialize_interpreter): Remove trailing newline
8303 from help.
8304 * btrace.c (_initialize_btrace): Remove trailing newlines from
8305 help.
8306 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8307 from help.
8308 * python/python.c (_initialize_python): Remove trailing newline
8309 from help.
8310 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8311 help.
8312 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8313 from help. Reformat some text.
8314 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8315 from help.
8316 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8317 newline from help.
8318
8319 2019-06-11 Tom Tromey <tromey@adacore.com>
8320
8321 * darwin-nat.c (darwin_decode_exception_message)
8322 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8323
8324 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8325
8326 * valops.c (value_slice): Check for not allocated or not
8327 associated values.
8328
8329 2019-06-10 Tom de Vries <tdevries@suse.de>
8330
8331 PR gdb/24618
8332 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8333 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8334 invalid.
8335
8336 2019-06-10 Tom de Vries <tdevries@suse.de>
8337
8338 PR gdb/24611
8339 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8340 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8341
8342 2019-06-10 Tom de Vries <tdevries@suse.de>
8343
8344 PR symtab/24545
8345 * symtab.c (struct demangled_name_entry): Add language field.
8346 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8347 static minimal symbol". Set and use language field.
8348
8349 2019-06-10 Tom Tromey <tromey@adacore.com>
8350
8351 * ada-lang.c (_initialize_ada_language): Update help text.
8352
8353 2019-06-10 Tom Tromey <tromey@adacore.com>
8354
8355 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8356 with a newline.
8357 * guile/guile.c (handle_boot_error): Don't end warning with a
8358 newline.
8359 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8360 warning with a newline.
8361 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8362 newline.
8363 (s12z_frame_cache): Likewise.
8364 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8365 a newline.
8366 * solib-svr4.c (disable_probes_interface): Don't end warning with
8367 a newline.
8368 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8369 newline.
8370 * python/python.c (do_finish_initialization): Don't end warning
8371 with a newline.
8372
8373 2019-06-10 Tom Tromey <tom@tromey.com>
8374
8375 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8376 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8377 gdbpy_enter.
8378
8379 2019-06-10 Tom Tromey <tromey@adacore.com>
8380
8381 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8382 data.
8383 (elf_new_init): Don't call stabsread_new_init.
8384 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8385 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8386 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8387
8388 2019-06-10 Tom de Vries <tdevries@suse.de>
8389
8390 PR symtab/16264
8391 PR symtab/24517
8392 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8393
8394 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8395
8396 * source.c (find_and_open_source): Also rewrite relative file
8397 names.
8398
8399 2019-04-26 Amos Bird <amosbird@gmail.com>
8400
8401 * annotate.c (annotate_thread_exited): Add "thread-exited"
8402 annotation.
8403
8404 2019-06-06 Tom Tromey <tromey@adacore.com>
8405
8406 * maint.h (class scoped_command_stats): Use
8407 DISABLE_COPY_AND_ASSIGN.
8408 <print_time>: New method.
8409 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8410 print_time.
8411 (scoped_command_stats::print_time): New method.
8412
8413 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8414
8415 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8416 instructions of lengths 6 or 8 bytes.
8417
8418 2019-06-04 Pedro Alves <palves@redhat.com>
8419
8420 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8421
8422 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8423 * breakpoint.c (condition_completer): Likewise.
8424 * cli/cli-dump.c (scan_expression): Likewise.
8425 * common/filestuff.c (mkdir_recursive): Likewise.
8426 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8427 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8428 (gdb_abspath): Likewise.
8429 * compile/compile-cplus-types.c
8430 (compile_cplus_instance::decl_name): Likewise.
8431 * completer.c (complete_explicit_location):
8432 (signal_completer, reg_or_group_completer_1): Likewise.
8433 * cp-support.c (cp_remove_params_if_any): Likewise.
8434 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8435 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8436 * infcmd.c (strip_bg_char): Likewise.
8437 * linespec.c (copy_token_string): Likewise.
8438 * mi/mi-main.c (output_cores): Likewise.
8439 * psymtab.c (psymtab_search_name):
8440 * symfile.c (test_set_ext_lang_command): Likewise.
8441 * target.c (target_fileio_read_stralloc): Likewise.
8442 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8443 * value.c (complete_internalvar): Likewise.
8444
8445 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8446
8447 Add objfile property to gdb.Type.
8448 * NEWS: Mention Python API addition.
8449 * python/py-type.c (typy_get_objfile): New method.
8450
8451 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8452
8453 * NEWS: Mention the new set|show style [title|highlight].
8454 Mention changes to "show style", "help" and "apropos".
8455
8456 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8457
8458 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8459 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8460 instead of print_help_for_command.
8461 (print_doc_of_command): New function.
8462 (help_list): Add 'apropos -v word' suggestion.
8463 (print_help_for_command): Style the command name using title style.
8464 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8465 (_initialize_cli_cmds): Describe -v in apropos_command help.
8466
8467 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8468
8469 * cli/cli-style.h (cli_style_option): Add name in constructor,
8470 add m_name class member, add constructor with intensity,
8471 add name class function.
8472 (cli_style_option::add_setshow_commands): Remove name argument.
8473 (highlight_style, title_style): New styles.
8474 * cli/cli-style.c (do_show): New function that shows a style
8475 characteristic styling the style name with itself.
8476 (set_style_name): New function.
8477 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8478 Update all callers according to the changes in cli/cli-style.h.
8479 * utils.h (fputs_highlighted): New function.
8480 * utils.c (fputs_highlighted): Likewise.
8481
8482 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8483
8484 * NEWS: Mention new pipe command and new convenience variables.
8485
8486 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8487
8488 * cli/cli-cmds.c (pipe_command): New function.
8489 (_initialize_cli_cmds): Call add_com for pipe_command.
8490 Define | as an alias for pipe.
8491 (exit_status_set_internal_vars): New function.
8492 (shell_escape): Call exit_status_set_internal_vars.
8493 cli/cli-decode.c (find_command_name_length): Recognize | as
8494 a single character command.
8495
8496 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8497
8498 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8499 top.c (execute_command_to_ui_file): New function, mostly a copy
8500 of execute_command_to_string.
8501 (execute_command_to_string): Implement by calling
8502 execute_command_to_ui_file.
8503
8504 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8505
8506 * top.h (saved_command_line): Remove declaration.
8507 * top.c (previous_saved_command_line, previous_repeat_arguments):
8508 New variables.
8509 (saved_command_line): Make static, define together with other
8510 'repeat variables'.
8511 (dont_repeat): Clear repeat_arguments.
8512 (repeat_previous, get_saved_command_line, save_command_line):
8513 New functions.
8514 (gdb_init): Initialize saved_command_line
8515 and previous_saved_command_line.
8516 * main.c (captured_main_1): Remove saved_command_line initialization.
8517 * event-top.c (handle_line_of_input): Update to use
8518 the new 'repeat' related functions instead of direct access to
8519 saved_command_line.
8520 * command.h (repeat_previous, get_saved_command_line,
8521 save_command_line): New declarations.
8522 (dont_repeat): Add comment.
8523
8524 2019-05-30 Tom Tromey <tromey@adacore.com>
8525
8526 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8527 Fix comment.
8528 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8529
8530 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8531
8532 PR cli/24587
8533 * completer.c (complete): Initialize variable word.
8534
8535 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8536
8537 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8538 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8539 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8540 'body' is NULL to the outter 'if', protecting the '!is_define'
8541 situation as well.
8542
8543 2019-05-29 Tom Tromey <tromey@adacore.com>
8544
8545 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8546 (dwarf_unknown): New function.
8547 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8548 (dwarf_type_encoding_name): Use dwarf_unknown.
8549
8550 2019-05-29 Tom Tromey <tromey@adacore.com>
8551
8552 PR c++/20020:
8553 * cp-valprint.c (cp_print_value_fields): Call
8554 cp_print_static_field inside "try".
8555
8556 2019-05-29 Tom Tromey <tromey@adacore.com>
8557
8558 * inflow.c (struct terminal_info): Add default operator=.
8559 * configure: Rebuild.
8560 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8561 -Wdeprecated-copy-dtor, -Wredundant-move.
8562
8563 2019-05-29 Tom Tromey <tromey@adacore.com>
8564
8565 * NEWS: Add entry.
8566 * infcmd.c (print_return_value_1): Handle finish_print
8567 option.
8568 (show_print_finish): New function.
8569 (_initialize_infcmd): Add "set/show print finish" commands.
8570 * valprint.c (user_print_options): Initialize new member.
8571 * valprint.h (struct value_print_options) <finish_print>: New
8572 member.
8573
8574 2019-05-28 Tom Tromey <tromey@adacore.com>
8575
8576 * ada-lang.c (ada_remove_Xbn_suffix)
8577 (find_old_style_renaming_symbol)
8578 (parse_old_style_renaming): Remove.
8579 (ada_find_renaming_symbol): Don't call
8580 find_old_style_renaming_symbol.
8581 (ada_is_renaming_symbol): Rename from
8582 ada_find_renaming_symbol. Remove "block" parameter. Return
8583 bool. Now static.
8584 (ada_read_var_value): Update and simplify.
8585 * ada-exp.y (write_var_or_type): Remove old code.
8586
8587 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8588
8589 PR gdb/25010
8590 * event-top.c: Remove include comment.
8591 * inflow.c (class scoped_ignore_sigttou): Move from here...
8592 * inflow.h (class scoped_ignore_sigttou): ...to here.
8593 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8594 * top.c: Remove include comment.
8595
8596 2019-05-27 Tom Tromey <tom@tromey.com>
8597
8598 * NEWS: Fix typo.
8599
8600 2019-05-22 Tom Tromey <tromey@adacore.com>
8601
8602 * target.c (target_follow_exec): Constify parameter.
8603 * target-delegates.c: Rebuild.
8604 * remote.c (remote_target::follow_exec): Constify parameter.
8605 * infrun.c (follow_exec): Constify parameter.
8606 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8607 (target_follow_exec): Likewise.
8608
8609 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8610
8611 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8612 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8613
8614 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8615
8616 * NEWS: Add debugredirect and testsuite sections.
8617
8618 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8619
8620 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8621 target descriptions using exclusively floating point register name
8622 aliases.
8623
8624 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8625
8626 PR gdb/18644:
8627 * f-lang.c (build_fortran_types): Handle the case where
8628 gdbarch_floatformat_for_type returns a nullptr.
8629
8630 2019-05-21 Tom de Vries <tdevries@suse.de>
8631
8632 PR cli/24587
8633 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8634
8635 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 PR gdb/18644:
8638 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8639 16-byte floats.
8640 * i386-tdep.c (i386_floatformat_for_type): Use
8641 floatformats_ia64_quad for the 16-byte floating point component
8642 within a fortran 32-byte complex number.
8643
8644 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8645
8646 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8647 delete default constructor.
8648 (find_partial_die): Update to return const struct.
8649 (partial_die_parent_scope): Move variable declaration into scope
8650 of its use and change its type to auto.
8651 (guess_partial_die_structure_name): Likewise.
8652 (partial_die_info::fixup): Likewise.
8653
8654 2019-05-17 Tom Tromey <tromey@adacore.com>
8655
8656 * source.c (find_and_open_source): Remove cast.
8657
8658 2019-05-17 Tom Tromey <tromey@adacore.com>
8659
8660 * annotate.c (annotate_source): Make "filename" const.
8661 * annotate.h (annotate_source): Use const.
8662
8663 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8664
8665 * disasm.c (set_disassembler_options): Send errors to stderr.
8666
8667 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8668
8669 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8670 (cli_interp_base::set_logging): Check debug_redirect.
8671 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8672 * cli/cli-logging.c (debug_redirect): Add static variable.
8673 (pop_output_files): Add default param.
8674 (handle_redirections): Print debug setting.
8675 (show_logging_command): Likewise.
8676 (_initialize_cli_logging): Add debugredirect command.
8677 * interps.c (current_interp_set_logging): Add debug_redirect
8678 parameter.
8679 * interps.h (set_logging): Add debug_redirect parameter.
8680 (current_interp_set_logging): Likewise.
8681 * mi/mi-common.h: Likewise.
8682 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8683
8684 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8685 Tom Tromey <tromey@adacore.com>
8686
8687 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8688 directly.
8689 * cli/cli-interp.h (make_logging_output): Remove declaration.
8690 * cli/cli-logging.c (make_logging_output): Remove function.
8691 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8692 directly.
8693 * ui-file.c (tee_file::tee_file): Remove bools.
8694 (tee_file::~tee_file): Remove deletes.
8695 * ui-file.h (tee_file): Remove bools.
8696
8697 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8698
8699 * mi/mi-cmds.h (mi_cmd_complete): New function.
8700 * mi/mi-main.c (mi_cmd_complete): Likewise.
8701 * mi/mi-cmds.c: Define new MI command -complete.
8702 * NEWS: Mention new -complete command.
8703
8704 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8705
8706 * completer.h (complete): New function.
8707 * completer.c (complete): Likewise.
8708 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8709 function defined in completer.h.
8710
8711 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8712
8713 * MAINTAINERS (Write After Approval): Add myself.
8714
8715 2019-05-17 Tom de Vries <tdevries@suse.de>
8716
8717 PR gdb/24094
8718 * dwarf2read.c (struct cu_partial_die_info): New struct.
8719 (find_partial_die): Return cu_partial_die_info.
8720 (partial_die_parent_scope, guess_partial_die_structure_name)
8721 (partial_die_info::fixup): Handle new return type of find_partial_die.
8722
8723 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8724
8725 PR breakpoints/24541
8726 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8727 "std::string", simplifying the algorithm.
8728
8729 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8730
8731 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8732 (stap_static_probe_ops::get_probes): Likewise.
8733
8734 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8735
8736 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8737 '-')" and "else if".
8738 (stap_parse_single_operand): Join checks for
8739 "gdbarch_stap_parse_special_token_p" and
8740 "gdbarch_stap_parse_special_token" in the same "if" statement.
8741 Invert check when verifying for operation on register
8742 displacement.
8743
8744 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8745
8746 * stap-probe.c (stap_get_opcode): Update comment.
8747 (stap_get_expected_argument_type): Likewise.
8748 (handle_stap_probe): Likewise.
8749
8750 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8751
8752 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8753 return type to 'bool'. Adjust comment. Use 'bool' when
8754 appropriate.
8755 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8756 * stap-probe.c (stap_parse_argument_1): Likewise.
8757 (stap_is_operator): Likewise.
8758 (stap_is_generic_prefix): Likewise.
8759 (stap_is_register_prefix): Likewise.
8760 (stap_is_register_indirection_prefix): Likewise.
8761 (stap_is_integer_prefix): Likewise.
8762 (stap_generic_check_suffix): Likewise.
8763 (stap_check_integer_suffix): Likewise.
8764 (stap_check_register_suffix): Likewise.
8765 (stap_check_register_indirection_suffix): Likewise.
8766 (stap_parse_register_operand): Likewise.
8767 (stap_parse_single_operand): Likewise.
8768 (stap_parse_argument_1): Likewise.
8769 (stap_probe::get_argument_count): Likewise.
8770 (stap_is_operator): Likewise.
8771
8772 2019-05-16 Tom Tromey <tromey@adacore.com>
8773
8774 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8775 keyword to foreach.
8776
8777 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * linux-thread-db.c (try_thread_db_load_1): Change return type
8780 to bool.
8781 (try_thread_db_load): Likewise.
8782 (try_thread_db_load_from_pdir_1): Likewise.
8783 (try_thread_db_load_from_pdir): Likewise.
8784 (try_thread_db_load_from_sdir): Likewise.
8785 (try_thread_db_load_from_dir): Likewise.
8786 (thread_db_load_search): Likewise.
8787 (has_libpthread): Likewise.
8788 (thread_db_load): Likewise.
8789
8790 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8791
8792 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8793 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8794 NULL, and complain/return if that's the case.
8795
8796 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8797
8798 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8799 (advance, posn, abstract_read_memory): New functions.
8800 [struct mem_read_abstraction]: New struct.
8801 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8802
8803 2019-05-14 Tom Tromey <tromey@adacore.com>
8804
8805 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8806 value is not lval_memory.
8807
8808 2019-05-14 Tom Tromey <tromey@adacore.com>
8809
8810 * solib.c (info_sharedlibrary_command): Style the file name.
8811
8812 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8813
8814 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8815 (aarch64_vnv_type): Likewise.
8816 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8817 * common/tdesc.c: Likewise.
8818 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8819 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8820 * features/aarch64-fpu.xml: Add ieee half view.
8821 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8822 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8823 * gdbtypes.h (struct builtin_type): Likewise.
8824 (struct objfile_type): Likewise.
8825
8826 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8827
8828 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8829 typo.
8830 * location.h (string_to_event_location): Likewise.
8831
8832 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8833
8834 GDB 8.3 released.
8835
8836 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8837
8838 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8839 New variable declaration.
8840 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8841 New variable.
8842 (print_one_breakpoint): Use ui_out::test_flags and new global
8843 variable to compute use_fixed_output.
8844 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8845 Remove.
8846 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8847 (mi_multi_location_breakpoint_output_fixed): Remove.
8848 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8849 new variable.
8850 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8851 fix_multi_location_breakpoint_output flag if version >= 3.
8852 * ui-out.h (enum ui_out_flag)
8853 <fix_multi_location_breakpoint_output>: New enumerator.
8854
8855 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8858
8859 2019-05-10 Tom Tromey <tromey@adacore.com>
8860
8861 * ada-lang.c (catch_ada_completer): New function.
8862 (_initialize_ada_language): Use it.
8863
8864 2019-05-10 Tom Tromey <tromey@adacore.com>
8865
8866 * thread.c (print_thread_info): Make "requested_threads" const.
8867 * gdbthread.h (print_thread_info): Make "requested_threads"
8868 const.
8869 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8870 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8871
8872 2019-05-08 Tom Tromey <tom@tromey.com>
8873
8874 * gdbtypes.c (objfile_type_data): Change type.
8875 (objfile_type, _initialize_gdbtypes): Update.
8876
8877 2019-05-08 Tom Tromey <tom@tromey.com>
8878
8879 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8880 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8881 (_initialize_dwarf2_frame): Update.
8882
8883 2019-05-08 Tom Tromey <tom@tromey.com>
8884
8885 * objc-lang.c (objc_objfile_data): Change type.
8886 (find_methods): Update.
8887 (_initialize_objc_lang): Remove.
8888
8889 2019-05-08 Tom Tromey <tom@tromey.com>
8890
8891 * stabsread.c (rs6000_builtin_type_data): Change type.
8892 (rs6000_builtin_type, _initialize_stabsread): Update.
8893
8894 2019-05-08 Tom Tromey <tom@tromey.com>
8895
8896 * mips-tdep.c (mips_pdr_data): Remove.
8897 (_initialize_mips_tdep): Update.
8898
8899 2019-05-08 Tom Tromey <tom@tromey.com>
8900
8901 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8902 (hppa_init_objfile_priv_data, read_unwind_info)
8903 (find_unwind_entry, _initialize_hppa_tdep): Update.
8904
8905 2019-05-08 Tom Tromey <tom@tromey.com>
8906
8907 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8908 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8909 on obstack.
8910 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8911
8912 2019-05-08 Tom Tromey <tom@tromey.com>
8913
8914 * mdebugread.c (basic_type_data): Change type.
8915 (basic_type, _initialize_mdebugread): Update.
8916
8917 2019-05-08 Tom Tromey <tom@tromey.com>
8918
8919 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8920
8921 2019-05-08 Tom Tromey <tom@tromey.com>
8922
8923 * nto-tdep.c (nto_inferior_data_reg): Change type.
8924 (nto_inferior_data): Update.
8925 (nto_inferior_data_cleanup, nto_new_inferior_data)
8926 (_initialize_nto_tdep): Remove.
8927 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8928
8929 2019-05-08 Tom Tromey <tom@tromey.com>
8930
8931 * ada-lang.c (struct ada_inferior_data): Add initializers.
8932 (ada_inferior_data): Change type.
8933 (ada_inferior_data_cleanup): Remove.
8934 (get_ada_inferior_data, ada_inferior_exit)
8935 (struct ada_pspace_data): Add initializers, destructor.
8936 (ada_pspace_data_handle): Change type.
8937 (get_ada_pspace_data): Update.
8938 (ada_pspace_data_cleanup): Remove.
8939
8940 2019-05-08 Tom Tromey <tom@tromey.com>
8941
8942 * coffread.c (struct coff_symfile_info): Add initializers.
8943 (coff_objfile_data_key): Move lower. Change type.
8944 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8945 Update.
8946 (coff_free_info): Remove.
8947
8948 2019-05-08 Tom Tromey <tom@tromey.com>
8949
8950 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8951 (fbsd_pspace_data_handle): Move lower. Change type.
8952 (get_fbsd_pspace_data): Update.
8953 (fbsd_pspace_data_cleanup): Remove.
8954 (_initialize_fbsd_tdep): Update.
8955
8956 2019-05-08 Tom Tromey <tom@tromey.com>
8957
8958 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8959 (get_ada_tasks_pspace_data): Update.
8960 (ada_tasks_pspace_data_cleanup): Remove.
8961 (_initialize_tasks): Update.
8962 (ada_tasks_inferior_data_handle): Change type.
8963 (get_ada_tasks_inferior_data): Update.
8964 (ada_tasks_inferior_data_cleanup): Remove.
8965 (struct ada_tasks_pspace_data): Add initializers.
8966
8967 2019-05-08 Tom Tromey <tom@tromey.com>
8968
8969 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8970 * symfile-debug.c (debug_sym_get_probes): Change type.
8971 * stap-probe.c (handle_stap_probe):
8972 (stap_static_probe_ops::get_probes): Change type.
8973 * probe.h (class static_probe_ops) <get_probes>: Change type.
8974 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8975 (parse_probes_in_pspace): Update.
8976 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8977 Update.
8978 (any_static_probe_ops::get_probes): Change type.
8979 * elfread.c (elfread_data): New typedef.
8980 (probe_key): Change type.
8981 (elf_get_probes): Likewise. Update.
8982 (probe_key_free): Remove.
8983 (_initialize_elfread): Update.
8984 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8985 Change type.
8986 (dtrace_process_dof_probe, dtrace_process_dof)
8987 (dtrace_static_probe_ops::get_probe): Change type.
8988
8989 2019-05-08 Tom Tromey <tom@tromey.com>
8990
8991 * xcoffread.c (struct xcoff_symfile_info): Rename from
8992 coff_symfile_info. Add initializers.
8993 (xcoff_objfile_data_key): Move lower. Change type.
8994 (XCOFF_DATA): Rewrite.
8995 (xcoff_free_info): Remove.
8996 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8997 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8998 (xcoff_initial_scan): Update.
8999
9000 2019-05-08 Tom Tromey <tom@tromey.com>
9001
9002 * solib-svr4.c (struct svr4_info): Add initializers and
9003 destructor.
9004 <probes_table>: Now an htab_up.
9005 (solib_svr4_pspace_data): Change type.
9006 (free_probes_table): Simplify.
9007 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9008 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9009 (probes_table_remove_objfile_probes, register_solib_event_probe)
9010 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9011 (_initialize_svr4_solib): Update.
9012
9013 2019-05-08 Tom Tromey <tom@tromey.com>
9014
9015 * remote.c (remote_pspace_data): Change type.
9016 (remote_pspace_data_cleanup): Remove.
9017 (get_remote_exec_file, set_pspace_remote_exec_file)
9018 (_initialize_remote): Update.
9019
9020 2019-05-08 Tom Tromey <tom@tromey.com>
9021
9022 * breakpoint.c (breakpoint_objfile_key): Change type.
9023 (get_breakpoint_objfile_data): Update.
9024 (free_breakpoint_objfile_data): Remove.
9025 (_initialize_breakpoint): Update.
9026
9027 2019-05-08 Tom Tromey <tom@tromey.com>
9028
9029 * linux-tdep.c (struct linux_info): Add initializers.
9030 (linux_inferior_data): Move. Change type.
9031 (invalidate_linux_cache_inf): Update.
9032 (linux_inferior_data_cleanup): Remove.
9033 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9034
9035 2019-05-08 Tom Tromey <tom@tromey.com>
9036
9037 * auxv.c (auxv_inferior_data): Move. Change type.
9038 (auxv_inferior_data_cleanup): Remove.
9039 (invalidate_auxv_cache_inf): Rewrite.
9040 (get_auxv_inferior_data, _initialize_auxv): Update.
9041
9042 2019-05-08 Tom Tromey <tom@tromey.com>
9043
9044 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9045 (symfile_debug_objfile_data_key): Change type.
9046 (symfile_debug_installed, debug_qf_has_symbols)
9047 (debug_qf_find_last_source_symtab)
9048 (debug_qf_forget_cached_source_info)
9049 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9050 (debug_qf_print_stats, debug_qf_dump)
9051 (debug_qf_expand_symtabs_for_function)
9052 (debug_qf_expand_all_symtabs)
9053 (debug_qf_expand_symtabs_with_fullname)
9054 (debug_qf_map_matching_symbols)
9055 (debug_qf_expand_symtabs_matching)
9056 (debug_qf_find_pc_sect_compunit_symtab)
9057 (debug_qf_map_symbol_filenames)
9058 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9059 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9060 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9061 (debug_sym_read_linetable, debug_sym_relocate): Update.
9062 (symfile_debug_free_objfile): Remove.
9063 (install_symfile_debug_logging, _initialize_symfile_debug):
9064 Update.
9065
9066 2019-05-08 Tom Tromey <tom@tromey.com>
9067
9068 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9069 allocate_on_obstack.
9070 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9071 (get_dwarf2_per_objfile): Update.
9072 (set_dwarf2_per_objfile): Remove.
9073 (dwarf2_has_info, dwarf2_get_section_info): Update.
9074 (dwarf2_free_objfile): Remove.
9075 (_initialize_dwarf2_read): Update.
9076
9077 2019-05-08 Tom Tromey <tom@tromey.com>
9078
9079 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9080 initializers.
9081 <unsupported_script_warning_printed,
9082 script_not_found_warning_printed>: Now bool.
9083 (auto_load_pspace_data): Change type.
9084 (~auto_load_pspace_info): Rename from
9085 auto_load_pspace_data_cleanup.
9086 (get_auto_load_pspace_data, init_loaded_scripts_info)
9087 (clear_section_scripts, maybe_print_unsupported_script_warning)
9088 (maybe_print_script_not_found_warning, _initialize_auto_load):
9089 Update.
9090
9091 2019-05-08 Tom Tromey <tom@tromey.com>
9092
9093 * objfiles.c (objfile_pspace_info): Add destructor and
9094 initializers.
9095 (objfiles_pspace_data): Change type.
9096 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9097 (get_objfile_pspace_data): Update.
9098 (objfiles_bfd_data): Change type.
9099 (get_objfile_bfd_data): Update.
9100 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9101
9102 2019-05-08 Tom Tromey <tom@tromey.com>
9103
9104 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9105 Change type.
9106 (get_catch_syscall_inferior_data): Update.
9107 (catch_syscall_inferior_data_cleanup): Remove.
9108 (_initialize_break_catch_syscall): Update.
9109
9110 2019-05-08 Tom Tromey <tom@tromey.com>
9111
9112 * inflow.c (struct terminal_info): Add destructor and
9113 initializers.
9114 (inflow_inferior_data): Change type.
9115 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9116 (get_inflow_inferior_data, inflow_inferior_exit)
9117 (swap_terminal_info, _initialize_inflow): Update.
9118
9119 2019-05-08 Tom Tromey <tom@tromey.com>
9120
9121 * target-dcache.c (target_dcache_cleanup): Remove.
9122 (target_dcache_aspace_key): Change type.
9123 (target_dcache_init_p, target_dcache_invalidate)
9124 (target_dcache_get, target_dcache_get_or_init)
9125 (_initialize_target_dcache): Update.
9126 * dcache.h (struct dcache_deleter): New.
9127
9128 2019-05-08 Tom Tromey <tom@tromey.com>
9129
9130 * symtab.c (struct symbol_cache): Add destructor and
9131 initializers.
9132 (symbol_cache_key): Move. Change type.
9133 (make_symbol_cache, free_symbol_cache): Remove.
9134 (get_symbol_cache): Update.
9135 (symbol_cache_cleanup): Remove.
9136 (ALL_PSPACES, symbol_cache_flush)
9137 (maintenance_print_symbol_cache)
9138 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9139 Update.
9140
9141 2019-05-08 Tom Tromey <tom@tromey.com>
9142
9143 * symtab.c (struct main_info): Add destructor and initializers.
9144 (main_progspace_key): Move. Change type.
9145 (get_main_info): Update.
9146 (main_info_cleanup): Remove.
9147 (_initialize_symtab): Update.
9148
9149 2019-05-08 Tom Tromey <tom@tromey.com>
9150
9151 * registry.h (DECLARE_REGISTRY): Define the _key class.
9152
9153 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9154
9155 * NEWS: Merge two 'New commands' sections.
9156
9157 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9158
9159 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9160 parameter and use Ada language definition instead.
9161 (ada_val_print_ptr): Remove unused language parameter.
9162 (ada_val_print_num): Remove language parameter and use Ada language
9163 definition instead.
9164 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9165 parameter.
9166 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9167 parameter and use Ada language definition instead.
9168 (ada_val_print_1): Update all ada_val_print_xxx calls.
9169 Remove language parameter.
9170 (ada_val_print): Update ada_val_print_1 call.
9171
9172 2019-05-08 Tom Tromey <tromey@adacore.com>
9173
9174 * remote.c (remote_hw_watchpoint_limit)
9175 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9176 Now static.
9177
9178 2019-05-08 Tom Tromey <tromey@adacore.com>
9179
9180 * maint.c (_initialize_maint_cmds): Move initialization code to
9181 remote.c.
9182 (watchdog, show_watchdog): Move to remote.c.
9183 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9184 "watchdog" static.
9185 (_initialize_remote): Move initialization code from maint.c.
9186 * defs.h (watchdog): Don't declare.
9187
9188 2019-05-08 Tom Tromey <tromey@adacore.com>
9189
9190 * tui/tui-interp.c: Include main.h.
9191 * interps.c: Include main.h.
9192 * main.h (interpreter_p): Declare.
9193 * defs.h (interpreter_p): Don't declare.
9194
9195 2019-05-08 Tom Tromey <tromey@adacore.com>
9196
9197 * dwarf2loc.c: Include dwarf2read.h.
9198 * defs.h (read_unsigned_leb128): Don't declare.
9199 * dwarf2read.h (read_unsigned_leb128): Declare.
9200
9201 2019-05-08 Tom Tromey <tromey@adacore.com>
9202
9203 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9204 method.
9205
9206 2019-05-08 Tom Tromey <tromey@adacore.com>
9207
9208 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9209 when no wrap column is set.
9210
9211 2019-05-08 Tom Tromey <tromey@adacore.com>
9212
9213 * c-lang.c (c_get_string): Handle non-C-style arrays.
9214
9215 2019-05-08 Tom Tromey <tromey@adacore.com>
9216
9217 * typeprint.c (print_offset_data::update): Print the bit offset,
9218 not the number of bits remaining.
9219
9220 2019-05-08 Tom Tromey <tromey@adacore.com>
9221
9222 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9223 padding at end of comment.
9224
9225 2019-05-08 Tom Tromey <tromey@adacore.com>
9226
9227 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9228 Compare main types.
9229
9230 2019-05-06 Tom Tromey <tom@tromey.com>
9231
9232 * common/scoped_mmap.c: Include common-defs.h.
9233 * common/scoped_mmap.h: Don't include config.h.
9234
9235 2019-05-04 Tom Tromey <tom@tromey.com>
9236
9237 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9238 (struct aarch64_call_info): Add initializers.
9239 <si>: Now a std::vector.
9240 (pass_on_stack, aarch64_push_dummy_call): Update.
9241
9242 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9243 Tom Tromey <tom@tromey.com>
9244
9245 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9246 (ppc_threads): Now a std::vector. Now static.
9247 (hwdebug_find_thread_points_by_tid)
9248 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9249 Update.
9250
9251 2019-05-04 Tom Tromey <tom@tromey.com>
9252
9253 * arc-tdep.c (arc_tdesc_init): Return bool.
9254
9255 2019-05-04 Tom Tromey <tom@tromey.com>
9256
9257 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9258 Use gdb_assert_not_reached.
9259
9260 2019-05-04 Tom Tromey <tom@tromey.com>
9261
9262 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9263 "false".
9264
9265 2019-05-04 Tom Tromey <tom@tromey.com>
9266
9267 * arc-tdep.c (arc_tdesc_init): Use bool.
9268
9269 2019-05-04 Tom Tromey <tom@tromey.com>
9270
9271 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9272
9273 2019-05-04 Tom Tromey <tom@tromey.com>
9274
9275 * cli/cli-cmds.c (valid_command_p): Return bool.
9276
9277 2019-05-04 Tom Tromey <tom@tromey.com>
9278
9279 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9280 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9281
9282 2019-05-04 Raul Tambre <raul@tambre.ee>
9283
9284 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9285 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9286 operator for comparison.
9287
9288 2019-05-04 Tom Tromey <tom@tromey.com>
9289
9290 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9291 (lookup_partial_symbol, print_partial_symbols)
9292 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9293 (psymbol_compare): Update.
9294 (add_psymbol_to_bcache): Clear the entire psymbol.
9295 (maintenance_check_psymtabs): Update.
9296 * psympriv.h (struct partial_symbol): Don't derive from
9297 general_symbol_info.
9298 <obj_section, unrelocated_address, address,
9299 set_unrelocated_address>: Update.
9300 <ginfo>: New member.
9301 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9302 (debug_names::write_psymbols): Update.
9303
9304 2019-05-04 Tom de Vries <tdevries@suse.de>
9305
9306 * contrib/cc-with-tweaks.sh: Support -n arg.
9307
9308 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9309
9310 * corelow.c (core_target::detach): Ensure frame cache and
9311 register caches are cleared.
9312 inferior.c (exit_inferior_1): Likewise.
9313
9314 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9315 Tom Tromey <tom@tromey.com>
9316
9317 * dictionary.c (collate_pending_symbols_by_language): Remove
9318 "struct" from foreach.
9319 * symtab.c (lookup_global_symbol_from_objfile)
9320 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9321 foreach.
9322 * ser-tcp.c (net_open): Remove "struct" from foreach.
9323 * objfiles.c (objfile_relocate, objfile_rebase)
9324 (objfile_has_symbols): Remove "struct" from foreach.
9325 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9326 from foreach.
9327 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9328 foreach.
9329 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9330 "struct" from foreach.
9331 * ada-lang.c (create_excep_cond_exprs)
9332 (ada_exception_catchpoint_cond_string): Remove "struct" from
9333 foreach.
9334
9335 2019-05-03 Tom Tromey <tromey@adacore.com>
9336
9337 * ada-exp.y (convert_char_literal): Check suffix of each
9338 enumerator.
9339
9340 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9341
9342 PR ada/21406:
9343 * ada-exp.y (yywrap): Don't define.
9344 * ada-lex.l (%option): Add noyywrap
9345 (yywrap): Remove.
9346
9347 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9348
9349 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9350 _WIN32_WINNT to the XP level, unless already defined to a higher
9351 level.
9352
9353 * unittests/parse-connection-spec-selftests.c:
9354 * ser-tcp.c:
9355 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9356 override.
9357
9358 * symfile.c (find_separate_debug_file): Remove colon from the
9359 drive spec of DOS/Windows file names of the target, so that the
9360 file name produced from DEBUGDIR and the target's directory will
9361 be valid on DOS/Windows systems.
9362
9363 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9364
9365 * rust-lang.c (val_print_struct): Handle printing structures
9366 containing strings.
9367
9368 2019-05-02 Tom Tromey <tromey@adacore.com>
9369
9370 * valarith.c (_initialize_valarith): Remove.
9371
9372 2019-05-01 Tom Tromey <tromey@adacore.com>
9373
9374 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9375 bitfields.
9376
9377 2019-05-01 Tom Tromey <tromey@adacore.com>
9378
9379 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9380 for big-endian copies.
9381
9382 2019-04-30 Ali Tamur <tamur@google.com>
9383 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9384 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9385 (read_3_bytes): New function.
9386
9387 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9388
9389 * windows-nat.c (main_thread_id): Delete.
9390 (handle_output_debug_string): Replace main_thread_id by
9391 current_event.dwThreadId.
9392 (fake_create_process): Likewise.
9393 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9394 Do not set main_thread_id.
9395 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9396 current_event.dwThreadId.
9397 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9398
9399 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9400
9401 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9402 Use current_event.dwThreadId instead of main_thread_id.
9403
9404 2019-04-30 Tom Tromey <tromey@adacore.com>
9405
9406 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9407 (create_excep_cond_exprs): Iterate over program spaces.
9408 (ada_exception_catchpoint_cond_string): Examine all minimal
9409 symbols for exception types.
9410
9411 2019-04-30 Tom Tromey <tromey@adacore.com>
9412
9413 PR c++/24470:
9414 * dwarf2read.c (process_structure_scope): Handle case where type
9415 has template parameters but no symbol was created.
9416
9417 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9418 Chris January <chris.january@arm.com>
9419
9420 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9421 qualifier.
9422 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9423
9424 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9425
9426 * f-typeprint.c (f_print_type): Update rules for printing
9427 whitespace.
9428 (f_type_print_varspec_suffix): Likewise.
9429
9430 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9431 Chris January <chris.january@arm.com>
9432
9433 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9434 function arguments.
9435
9436 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9437
9438 * f-lang.c (build_fortran_types): Change name of void type to
9439 lower case.
9440 * f-typeprint.c (f_type_print_base): Print the name of the void
9441 type, rather than a fixed string.
9442 * f-valprint.c (f_decorations): Use lower case void string.
9443
9444 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9445 Chris January <chris.january@arm.com>
9446
9447 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9448 types for Fortran.
9449
9450 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9451 Chris January <chris.january@arm.com>
9452 David Lecomber <david.lecomber@arm.com>
9453
9454 * f-exp.y (BINOP_INTRINSIC): New token.
9455 (exp): New parser rule handling BINOP_INTRINSIC.
9456 (f77_keywords): Add new builtin procedures.
9457 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9458 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9459 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9460 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9461 (print_unop_subexp_f): New function.
9462 (print_binop_subexp_f): New function.
9463 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9464 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9465 (dump_subexp_body_f): Likewise.
9466 (operator_check_f): Likewise.
9467 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9468 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9469
9470 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9473 UNOP_KIND.
9474 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9475 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9476 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9477 (operator_length_f): New fuction.
9478 (print_subexp_f): New function.
9479 (op_name_f): New function.
9480 (dump_subexp_body_f): New function.
9481 (operator_check_f): New function.
9482 (exp_descriptor_f): Replace standard expression handling functions
9483 with new functions.
9484 * gdb/fortran-operator.def: New file.
9485 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9486 * gdb/std-operator.def: Remove UNOP_KIND.
9487
9488 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9489
9490 * std-operator.def: Remove unbalanced, stray double quote
9491 character.
9492
9493 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9494 Chris January <chris.january@arm.com>
9495 Daniel Everett <daniel.everett@arm.com>
9496 Nick Forrington <nick.forrington@arm.com>
9497 Richard Bunt <richard.bunt@arm.com>
9498
9499 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9500 of depth when printing anonymous structs or unions.
9501 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9502 Don't print either the top-level value, or the children if the
9503 max-depth is exceeded.
9504 (ppscm_print_children): When printing the key of a map, allow one
9505 extra level of depth.
9506 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9507 print either the top-level value, or the children if the max-depth
9508 is exceeded.
9509 (print_children): When printing the key of a map, allow one extra
9510 level of depth.
9511 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9512 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9513 (user_print_options): Initialise max_depth field.
9514 (val_print_scalar_or_string_type_p): New function.
9515 (val_print): Check to see if the max depth has been reached.
9516 (val_print_check_max_depth): Define new function.
9517 (show_print_max_depth): New function.
9518 (_initialize_valprint): Add 'print max-depth' option.
9519 * valprint.h (struct value_print_options) <max_depth>: New field.
9520 (val_print_check_max_depth): Declare new function.
9521 * NEWS: Document new feature.
9522
9523 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9524
9525 * ada-lang.c (ada_language_defn): Initialise new field.
9526 * c-lang.c (c_is_string_type_p): New function.
9527 (c_language_defn): Initialise new field.
9528 (cplus_language_defn): Initialise new field.
9529 (asm_language_defn): Initialise new field.
9530 (minimal_language_defn): Initialise new field.
9531 * c-lang.h (c_is_string_type_p): Declare new function.
9532 * d-lang.c (d_language_defn): Initialise new field.
9533 * f-lang.c (f_is_string_type_p): New function.
9534 (f_language_defn): Initialise new field.
9535 * go-lang.c (go_is_string_type_p): New function.
9536 (go_language_defn): Initialise new field.
9537 * language.c (default_is_string_type_p): New function.
9538 (unknown_language_defn): Initialise new field.
9539 (auto_language_defn): Initialise new field.
9540 * language.h (struct language_defn) <la_is_string_type_p>: New
9541 member variable.
9542 (default_is_string_type_p): Declare new function.
9543 * m2-lang.c (m2_language_defn): Initialise new field.
9544 * objc-lang.c (objc_language_defn): Initialise new field.
9545 * opencl-lang.c (opencl_language_defn): Initialise new field.
9546 * p-lang.c (pascal_is_string_type_p): New function.
9547 (pascal_language_defn): Initialise new field.
9548 * rust-lang.c (rust_is_string_type_p): New function.
9549 (rust_language_defn): Initialise new field.
9550
9551 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9552
9553 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9554 New field.
9555 * ada-lang.c (ada_language_defn): Initialise new field.
9556 * c-lang.c (c_language_defn): Likewise.
9557 (cplus_language_defn): Likewise.
9558 (asm_language_defn): Likewise.
9559 (minimal_language_defn): Likewise.
9560 * d-lang.c (d_language_defn): Likewise.
9561 * f-lang.c (f_language_defn): Likewise.
9562 * go-lang.c (go_language_defn): Likewise.
9563 * language.c (unknown_language_defn): Likewise.
9564 (auto_language_defn): Likewise.
9565 * m2-lang.c (m2_language_defn): Likewise.
9566 * objc-lang.c (objc_language_defn): Likewise.
9567 * opencl-lang.c (opencl_language_defn): Likewise.
9568 * p-lang.c (pascal_language_defn): Likewise.
9569 * rust-lang.c (rust_language_defn): Likewise.
9570
9571 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9572
9573 * ada-lang.c (ada_is_character_type): Change return type to bool.
9574 (ada_is_string_type): Likewise.
9575 * ada-lang.h (ada_is_character_type): Update declaration
9576 (ada_is_string_type): Likewise.
9577
9578 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9579
9580 Support style in 'frame|thread apply'
9581
9582 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9583 * record.c (record_start, record_stop): Update callers of
9584 execute_command_to_string with false.
9585 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9586 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9587 methods.
9588 (class string_file): New constructor with term_out parameter.
9589 Override methods term_out and can_emit_style_escape. New member
9590 term_out.
9591 (class stdio_file): Override can_emit_style_escape.
9592 (class tee_file): Override term_out and can_emit_style_escape.
9593 * utils.h (can_emit_style_escape): Remove.
9594 * utils.c (can_emit_style_escape): Likewise.
9595 Update all callers of can_emit_style_escape (SOMESTREAM) to
9596 SOMESTREAM->can_emit_style_escape.
9597 * source-cache.c (source_cache::get_source_lines): Likewise.
9598 * stack.c (frame_apply_command_count): Call execute_command_to_string
9599 passing the term_out characteristic of the current gdb_stdout.
9600 * thread.c (thr_try_catch_cmd): Likewise.
9601 * top.c (execute_command_to_string): pass term_out parameter
9602 to construct the string_file for the command output.
9603 * ui-file.c (term_cli_styling): New function (most code moved
9604 from utils.c can_emit_style_escape).
9605 (string_file::string_file, string_file::can_emit_style_escape,
9606 stdio_file::can_emit_style_escape, tee_file::term_out,
9607 tee_file::can_emit_style_escape): New functions.
9608
9609 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9610
9611 * NEWS: Mention the new set|show may-call-functions.
9612 * infcall.c (may_call_functions_p): New variable.
9613 (show_may_call_functions_p): New function.
9614 (call_function_by_hand_dummy): Throws an error if not
9615 may-call-functions.
9616 (_initialize_infcall): Call add_setshow_boolean_cmd for
9617 may-call-functions.
9618
9619 2019-04-25 Keith Seitz <keiths@redhat.com>
9620
9621 PR c++/24367
9622 * cp-support.c (inspect_type): Don't attempt substitutions
9623 of symbol with the same name.
9624
9625 2019-04-25 Tom Tromey <tromey@adacore.com>
9626
9627 PR gdb/24475:
9628 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9629 static.
9630
9631 2019-04-25 Tom Tromey <tromey@adacore.com>
9632
9633 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9634 rvalue reference.
9635 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9636 (gdb_xml_parser::parse): Use std::move.
9637 * python/python-internal.h (gdbpy_convert_exception): Take a const
9638 reference.
9639 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9640 std::move.
9641 * python/py-utils.c (gdbpy_convert_exception): Take a const
9642 reference.
9643 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9644 Use std::move.
9645 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9646 Use std::move.
9647 * mi/mi-main.c (mi_print_exception): Take a const reference.
9648 * main.c (handle_command_errors): Take a const reference.
9649 * linespec.c (parse_linespec): Use std::move.
9650 * infcall.c (run_inferior_call): Use std::move.
9651 (call_function_by_hand_dummy): Use std::move.
9652 * exec.c (try_open_exec_file): Use std::move.
9653 * exceptions.h (exception_print, exception_fprintf)
9654 (exception_print_same): Update.
9655 * exceptions.c (print_exception, exception_print)
9656 (exception_fprintf, exception_print_same): Change parameters to
9657 const reference.
9658 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9659 * common/new-op.c: Use std::move.
9660 * common/common-exceptions.h (struct gdb_exception): Add move
9661 constructor.
9662 (struct gdb_exception_error, struct gdb_exception_quit, struct
9663 gdb_quit_bad_alloc): Change constructor to move constructor.
9664 (throw_exception): Change parameter to rvalue reference.
9665 * common/common-exceptions.c (throw_exception): Take rvalue
9666 reference.
9667 * cli/cli-interp.c (safe_execute_command): Use std::move.
9668 * breakpoint.c (insert_bp_location, location_to_sals): Use
9669 std::move.
9670
9671 2019-04-25 Tom Tromey <tromey@adacore.com>
9672
9673 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9674 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9675 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9676 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9677 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9678 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9679 guile/scm-value.c: Use unpack.
9680 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9681 gdbscm_gdb_exception.
9682 (gdbscm_throw_gdb_exception): Likewise.
9683 (struct gdbscm_gdb_exception): New.
9684 (unpack): New function.
9685 (gdbscm_wrap): Use unpack.
9686
9687 2019-04-25 Tom Tromey <tromey@adacore.com>
9688
9689 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9690 (gdb_rl_callback_handler): Use std::move.
9691 * common/common-exceptions.h (struct gdb_exception): Add move
9692 assignment operator.
9693 (throw_exception_sjlj): Change "exception" to const reference.
9694 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9695 (throw_exception_sjlj): Change "exception" to const reference.
9696
9697 2019-04-25 Tom Tromey <tromey@adacore.com>
9698
9699 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9700 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9701 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9702 Update.
9703 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9704 Update.
9705 * mi/mi-interp.c (mi_interp::exec): Update.
9706 * linespec.c (parse_linespec): Update.
9707 * infcall.c (run_inferior_call): Update.
9708 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9709 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9710 (gdbscm_lookup_global_symbol): Update.
9711 * guile/scm-param.c (gdbscm_parameter_value): Update.
9712 * guile/scm-frame.c (gdbscm_frame_read_register)
9713 (gdbscm_frame_read_var): Update.
9714 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9715 * exec.c (try_open_exec_file): Update.
9716 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9717 (gdb_rl_callback_handler): Update.
9718 * common/common-exceptions.h (exception_none): Don't declare.
9719 * common/common-exceptions.c (exception_none): Don't define.
9720 (struct catcher) <exception>: Update.
9721 * cli/cli-interp.c (safe_execute_command): Update.
9722 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9723
9724 2019-04-25 Ali Tamur <tamur@google.com>
9725
9726 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9727 (read_attribute_value): Likewise.
9728 (dwarf2_read_addr_index): Update comment.
9729 (read_str_index): Add DW_FORM_strx.
9730 (dwarf2_string_attr): Likewise.
9731 (dwarf2_const_value_attr): Likewise.
9732 (dump_die_shallow): Likewise.
9733 (dwarf2_fetch_constant_bytes): Likewise.
9734 (skip_form_bytes): Likewise.
9735 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9736
9737 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9738
9739 PR corefiles/11608
9740 PR corefiles/18187
9741 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9742 OFFSET. Verify if current mapping contains an ELF header.
9743 (linux_find_memory_regions_full): Adjust call to
9744 dump_mapping_p.
9745
9746 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9747 Kang Li <kanglictf@gmail.com>
9748
9749 PR gdb/21600
9750
9751 * dwarf2-frame.c (read_initial_length): Be consistent about using
9752 unsigned representation of length.
9753 (decode_frame_entry_1): Likewise. Check for wraparound of
9754 end pointer as well as buffer overflow.
9755
9756 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9757
9758 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9759 "vq".
9760
9761 2019-04-24 Tom Tromey <tromey@adacore.com>
9762
9763 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9764
9765 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9766
9767 * s12z-tdep.c (s12z_unwind_pc): Delete.
9768 (s12z_unwind_sp): Delete.
9769 (s12z_gdbarch_init): Don't register deleted functions with
9770 gdbarch.
9771
9772 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9773
9774 * rl78-tdep.c (rl78_unwind_sp): Delete.
9775 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9776
9777 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9778
9779 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9780 (xstormy16_unwind_pc): Delete.
9781 (xstormy16_dummy_id): Delete.
9782 (xstormy16_gdbarch_init): Don't register deleted functions with
9783 gdbarch.
9784
9785 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9786
9787 * vax-tdep.c (vax_unwind_pc): Delete.
9788 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9789
9790 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9791
9792 * v850-tdep.c (v850_unwind_sp): Delete.
9793 (v850_unwind_pc): Delete.
9794 (v850_dummy_id): Delete.
9795 (v850_gdbarch_init): Don't register deleted functions with
9796 gdbarch.
9797
9798 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9799
9800 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9801 (tilegx_unwind_pc): Delete.
9802 (tilegx_unwind_dummy_id): Delete.
9803 (tilegx_gdbarch_init): Don't register deleted functions with
9804 gdbarch.
9805
9806 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9807
9808 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9809 (tic6x_dummy_id): Delete.
9810 (tic6x_gdbarch_init): Don't register deleted functions with
9811 gdbarch.
9812
9813 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9814
9815 * sparc-tdep.c (sparc_unwind_pc): Delete.
9816 (sparc32_gdbarch_init): Don't register deleted function with
9817 gdbarch.
9818
9819 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9820
9821 * sh-tdep.c (sh_unwind_sp): Delete.
9822 (sh_unwind_pc): Delete.
9823 (sh_dummy_id): Delete.
9824 (sh_gdbarch_init): Don't register deleted functions with
9825 gdbarch.
9826
9827 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9828
9829 * score-tdep.c (score_unwind_sp): Delete.
9830 (score_unwind_pc): Delete.
9831 (score_dummy_id): Delete.
9832 (score_gdbarch_init): Don't register deleted functions with
9833 gdbarch.
9834
9835 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * rx-tdep.c (rx_unwind_pc): Delete.
9838 (rx_unwind_sp): Delete.
9839 (rx_dummy_id): Delete.
9840 (rx_gdbarch_init): Don't register deleted functions with
9841 gdbarch. Update comment.
9842
9843 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9844
9845 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9846 (rs6000_dummy_id): Delete.
9847 (rs6000_gdbarch_init): Don't register deleted functions with
9848 gdbarch.
9849
9850 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9851
9852 * or1k-tdep.c (or1k_dummy_id): Delete.
9853 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9854
9855 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9856
9857 * nios2-tdep.c (nios2_dummy_id): Delete.
9858 (nios2_unwind_sp): Delete.
9859 (nios2_gdbarch_init): Don't register deleted functions with
9860 gdbarch.
9861
9862 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * nds32-tdep.c (nds32_dummy_id): Delete.
9865 (nds32_unwind_pc): Delete.
9866 (nds32_unwind_sp): Delete.
9867 (nds32_gdbarch_init): Don't register deleted functions with
9868 gdbarch.
9869
9870 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * msp430-tdep.c (msp430_unwind_pc): Delete.
9873 (msp430_unwind_sp): Delete.
9874 (msp430_dummy_id): Delete.
9875 (msp430_gdbarch_init): Don't register deleted functions with
9876 gdbarch.
9877
9878 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9879
9880 * moxie-tdep.c (moxie_unwind_sp): Delete.
9881 (moxie_unwind_pc): Delete.
9882 (moxie_dummy_id): Delete.
9883 (moxie_gdbarch_init): Don't register deleted functions with
9884 gdbarch.
9885
9886 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9887
9888 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9889 (mn10300_unwind_pc): Delete.
9890 (mn10300_unwind_sp): Delete.
9891 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9892 mn10300_unwind_sp.
9893 (mn10300_frame_unwind_init): Don't register deleted functions with
9894 gdbarch.
9895
9896 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9897
9898 * mep-tdep.c (mep_unwind_pc): Delete.
9899 (mep_unwind_sp): Delete.
9900 (mep_dummy_id): Delete.
9901 (mep_gdbarch_init): Don't register deleted functions with
9902 gdbarch.
9903
9904 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9905
9906 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9907 (m68hc11_unwind_sp): Delete.
9908 (m68hc11_gdbarch_init): Don't register deleted functions with
9909 gdbarch.
9910
9911 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9912
9913 * m32r-tdep.c (m32r_unwind_sp): Delete.
9914 (m32r_unwind_pc): Delete.
9915 (m32r_dummy_id): Delete.
9916 (m32r_gdbarch_init): Don't register deleted functions with
9917 gdbarch.
9918
9919 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9920
9921 * m32c-tdep.c (m32c_unwind_pc): Delete.
9922 (m32c_unwind_sp): Delete.
9923 (m32c_dummy_id): Delete.
9924 (m32c_gdbarch_init): Don't register deleted functions with
9925 gdbarch.
9926
9927 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9928
9929 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9930 (lm32_unwind_pc): Delete.
9931 (lm32_dummy_id): Delete.
9932 (lm32_gdbarch_init): Don't register deleted functions with
9933 gdbarch.
9934
9935 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9936
9937 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9938 (iq2000_unwind_pc): Delete.
9939 (iq2000_dummy_id): Delete.
9940 (iq2000_gdbarch_init): Don't register deleted functions with
9941 gdbarch.
9942
9943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9944
9945 * nds32-tdep.c (nds32_type_align): Delete.
9946 (nds32_push_dummy_call): Use type_align instead.
9947
9948 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9949
9950 * arm-tdep.c (arm_type_align): Only handle vector override case.
9951 (arm_push_dummy_call): Use type_align.
9952 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9953
9954 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9955
9956 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9957 case.
9958 (pass_on_stack): Use type_align.
9959 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9960 function.
9961
9962 2019-04-23 Tom Tromey <tromey@adacore.com>
9963
9964 * dwarf2read.c (line_header::file_name_at): Remove unused
9965 overload.
9966
9967 2019-04-23 Tom de Vries <tdevries@suse.de>
9968
9969 PR gdb/24438
9970 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9971 invocation.
9972
9973
9974 2019-03-27 Ali Tamur <tamur@google.com>
9975
9976 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9977 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9978 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9979 (dwarf_expr_context::get_addr_index): Likewise
9980 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9981 (symbol_needs_eval_context::get_addr_index): Likewise
9982 (disassemble_dwarf_expression): Add DW_OP_addrx
9983 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9984 (read_cutu_die_from_dwo): Update comment
9985 (skip_one_die): Add DW_FORM_addrx
9986 (read_attribute_value): Likewise
9987 (var_decode_location): Add DW_OP_addrx
9988 (dwarf2_const_value_attr): Add DW_FORM_addrx
9989 (dump_die_shallow): Likewise
9990 (dwarf2_fetch_constant_bytes): Likewise
9991 (decode_locdesc): Add DW_OP_addrx
9992 (skip_form_bytes): Add DW_FORM_addrx
9993
9994 2019-04-22 Ali Tamur <tamur@google.com>
9995
9996 * MAINTAINERS (Write After Approval): Add self.
9997
9998 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10001 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10002 (open_symbol_file_object): Likewise.
10003 (svr4_default_sos): Add info parameter.
10004 (svr4_read_so_list): Likewise.
10005 (svr4_current_sos_direct): Adjust functions calls to pass down
10006 info.
10007 (svr4_current_sos_1): Add info parameter.
10008 (svr4_current_sos): Call get_svr4_info, pass info down to
10009 svr4_current_sos_1.
10010 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10011 get_svr4_info.
10012 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10013 get_svr4_info.
10014 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10015 to get_svr4_info.
10016 (probes_table_remove_objfile_probes): Likewise.
10017 (register_solib_event_probe): Add info parameter.
10018 (solist_update_incremental): Pass info parameter down to
10019 svr4_read_so_list.
10020 (disable_probes_interface): Add info parameter.
10021 (svr4_handle_solib_event): Pass current_program_space to
10022 get_svr4_info. Adjust disable_probes_interface cleanup.
10023 (svr4_create_probe_breakpoints): Add info parameter, pass it
10024 down to register_solib_event_probe.
10025 (svr4_create_solib_event_breakpoints): Add info parameter,
10026 pass it down to svr4_create_probe_breakpoints.
10027 (enable_break): Pass info down to
10028 svr4_create_solib_event_breakpoints.
10029 (svr4_solib_create_inferior_hook): Pass current_program_space to
10030 get_svr4_info.
10031 (svr4_clear_solib): Likewise.
10032
10033 2019-04-22 Pedro Alves <palves@redhat.com>
10034
10035 * solib-svr4.c (svr4_free_objfile_observer): New.
10036 (probe_and_action::objfile): New field.
10037 (probes_table_htab_remove_objfile_probes)
10038 (probes_table_remove_objfile_probes): New functions.
10039 (register_solib_event_probe): Add 'objfile' parameter. Store it
10040 in the new probe_and_action. Don't store the probe in 'lookup'.
10041 (svr4_create_probe_breakpoints): Pass objfile to
10042 register_solib_event_probe.
10043 (_initialize_svr4_solib): Register a free_objfile observer.
10044
10045 2019-04-19 Tom Tromey <tom@tromey.com>
10046
10047 * common/queue.h: Remove.
10048
10049 2019-04-19 Tom Tromey <tom@tromey.com>
10050
10051 * event-loop.c: Don't include "common/queue.h".
10052
10053 2019-04-19 Tom Tromey <tom@tromey.com>
10054
10055 * remote.c (remote_target): Use delete.
10056 * remote-notif.h: Include <list>, not "common/queue.h".
10057 (notif_client_p): Remove typedef.
10058 (remote_notif_state): Add constructor, destructor, initializer.
10059 <notif_queue>: Now a std::list.
10060 (remote_notif_state_xfree): Don't declare.
10061 * remote-notif.c (remote_notif_process, handle_notification)
10062 (remote_notif_state_allocate): Update.
10063 (~remote_notif_state): Rename from remote_notif_state_xfree.
10064
10065 2019-04-19 Tom Tromey <tom@tromey.com>
10066
10067 * symfile.c (reread_symbols): Update.
10068 * objfiles.c (objfile_register_static_link)
10069 (objfile_lookup_static_link): Update
10070 (~objfile) Don't delete static_links.
10071 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10072
10073 2019-04-19 Tom Tromey <tom@tromey.com>
10074
10075 * type-stack.h (struct type_stack) <insert>: Constify string.
10076 * type-stack.c (type_stack::insert): Constify string.
10077 * gdbtypes.h (lookup_template_type): Update.
10078 (address_space_name_to_int): Update.
10079 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10080 const.
10081 (lookup_template_type): Make name const.
10082 * c-exp.y: Update rules.
10083 (lex_one_token, classify_name, classify_inner_name)
10084 (c_print_token): Update.
10085 * p-exp.y: Update rules.
10086 (yylex): Update.
10087 * f-exp.y: Update rules.
10088 (yylex): Update.
10089 * d-exp.y: Update rules.
10090 (lex_one_token, classify_name, classify_inner_name): Update.
10091 * parse.c (write_dollar_variable, copy_name): Return std::string.
10092 * parser-defs.h (copy_name): Change return type.
10093 * m2-exp.y: Update rules.
10094 (yylex): Update.
10095 * go-exp.y (lex_one_token): Update.
10096 Update rules.
10097 (classify_unsafe_function, classify_packaged_name)
10098 (classify_name, yylex): Update.
10099
10100 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10101
10102 * configure.ac: add --enable-source-highlight switch.
10103 * configure: Regenerate.
10104 * top.c (print_gdb_version): plumb --enable-source-highlight
10105 status to "show configuration".
10106
10107 2019-04-19 Tom Tromey <tromey@adacore.com>
10108
10109 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10110 Check ADA_TYPE_P.
10111 (empty_record, ada_template_to_fixed_record_type_1)
10112 (template_to_static_fixed_type)
10113 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10114 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10115 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10116 macros.
10117
10118 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10119
10120 PR symtab/24423:
10121 * source.c (print_source_lines_base): Advance "iter" when a
10122 control character is seen.
10123
10124 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10125
10126 * inferior.h (struct infcall_suspend_state_deleter):
10127 Catch exception in destructor to avoid crash.
10128
10129 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10130
10131 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10132 close to the add_com "shell".
10133
10134 2019-04-18 Tom Tromey <tromey@adacore.com>
10135
10136 * process-stratum-target.h (class process_stratum_target)
10137 <stratum>: Add "final".
10138
10139 2019-04-17 Tom Tromey <tromey@adacore.com>
10140
10141 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10142 against nullptr before use.
10143
10144 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10145
10146 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10147
10148 2019-04-17 Jim Wilson <jimw@sifive.com>
10149 Andrew Burgess <andrew.burgess@embecosm.com>
10150
10151 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10152 code read might fail, assume 4-byte breakpoint in that case.
10153
10154 2019-04-15 Leszek Swirski <leszeks@google.com>
10155
10156 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10157 rather than a hand-rolled POD check when checking for forced MEMORY
10158 classification.
10159
10160 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10161
10162 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10163 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10164 function.
10165 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10166 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10167 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10168 declaration.
10169
10170 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10171
10172 * aarch64-linux-nat.c
10173 (aarch64_linux_nat_target::thread_architecture): Add override.
10174 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10175 each VQ.
10176
10177 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10178
10179 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10180
10181 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10184 target types of size 96-bits, add some additional comments, and
10185 check that the builtin type we found was the correct size.
10186
10187 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10188
10189 * utils.c (prompt_for_continue): Don't restore the styling at the
10190 end, as applied_style has the wrong value. This fixes styling in
10191 long lists of file names that are interrupted by the "Continue?"
10192 prompt.
10193
10194 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10195
10196 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10197 * c-lang.c (c_language_defn): Likewise.
10198 (cplus_language_defn): Likewise.
10199 (asm_language_defn): Likewise.
10200 (minimal_language_defn): Likewise.
10201 * d-lang.c (d_language_defn): Likewise.
10202 * f-lang.c (f_language_defn): Likewise.
10203 * go-lang.c (go_language_defn): Likewise.
10204 * language.c (unknown_language_defn): Likewise.
10205 (auto_language_defn): Likewise.
10206 * language.h (struct language_defn): Remove la_magic field.
10207 (LANG_MAGIC): Delete.
10208 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10209 * objc-lang.c (objc_language_defn): Likewise.
10210 * opencl-lang.c (opencl_language_defn): Likewise.
10211 * p-lang.c (pascal_language_defn): Likewise.
10212 * rust-lang.c (rust_language_defn): Likewise.
10213
10214 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10215
10216 * riscv-tdep.c (riscv_type_align): New function.
10217 (riscv_type_alignment): Delete.
10218 (riscv_arg_location): Use 'type_align'.
10219 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10220
10221 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * gdbtypes.c (type_align): A struct with no non-static fields also
10224 has alignment of 1.
10225
10226 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10227
10228 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10229 component to 0.
10230 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10231 member.
10232 (riscv_struct_info::analyse): New implementation using new
10233 analyse_inner member function.
10234 (riscv_struct_info::field_offset): New member function.
10235 (riscv_struct_info::m_offsets): New member variable.
10236 (riscv_struct_info::analyse_inner): New private member function,
10237 takes the old implementation of riscv_struct_info::analyse but
10238 extended to track field offsets.
10239 (riscv_call_arg_struct): Update the struct folding special cases
10240 to handle cases where empty C++ structs, which are non-zero
10241 length, are found.
10242 (riscv_arg_location): Initialise the length of each location, a
10243 non-zero length now indicates the location is in use.
10244 (riscv_push_dummy_call): Allow for the first location having a
10245 non-zero offset when setting up arguments.
10246 (riscv_return_value): Likewise, but for return values.
10247
10248 2019-04-11 Tom Tromey <tromey@adacore.com>
10249
10250 * utils.c (internal_vproblem): Make "msg" const.
10251
10252 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10253
10254 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10255 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10256 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10257 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10258
10259 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10260
10261 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10262 function.
10263 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10264 of amd64_collect_native_gregset.
10265 (amd64_linux_nat_target::store_registers): Likewise.
10266
10267 2019-04-10 Tom Tromey <tom@tromey.com>
10268
10269 * symtab.c (lookup_global_symbol_from_objfile)
10270 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10271 * objfiles.h (class separate_debug_iterator): New.
10272 (class separate_debug_range): New.
10273 (struct objfile) <separate_debug_objfiles>: New method.
10274 (objfile_separate_debug_iterate): Don't declare.
10275 * objfiles.c (separate_debug_iterator::operator++): Rename from
10276 objfile_separate_debug_iterate.
10277 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10278 iterator.
10279 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10280 iterator.
10281
10282 2019-04-10 Tom Tromey <tom@tromey.com>
10283
10284 * symfile.c (reread_symbols): Remove old comment.
10285 * objfiles.c (free_all_objfiles): Fix a typo.
10286
10287 2019-04-10 Tom Tromey <tom@tromey.com>
10288
10289 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10290 * minsyms.c (lookup_minimal_symbol): Use foreach.
10291 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10292 (lookup_minimal_symbol_solib_trampoline): Likewise.
10293 * symfile.c (reread_symbols): Use foreach.
10294
10295 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10296 Tom Tromey <tromey@adacore.com>
10297
10298 PR rust/24414:
10299 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10300 (rust_lex_int_test): Change "value" to be LONGEST.
10301 (rust_lex_tests): Add test for long integer literal.
10302
10303 2019-04-09 Tom Tromey <tromey@adacore.com>
10304
10305 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10306 to bool.
10307 (extended_remote_target::attach): Update.
10308 (remote_target::remote_notice_new_inferior): Update.
10309 (remote_target::add_current_inferior_and_thread): Update.
10310 * inferior.c (exit_inferior_1): Use "false".
10311 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10312
10313 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10316 the "start" command.
10317
10318 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10319
10320 * python/py-inferior.c (infpy_thread_from_thread_handle):
10321 Adjust comments to reflect renaming of thread_from_thread_handle
10322 to thread_from_handle. Adjust keywords. Fix type error message.
10323 (inferior_object_methods): Add thread_from_handle. Retain
10324 thread_from_thread_handle, but mark it as deprecated.
10325
10326 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10327
10328 * gdbthread.h (find_thread_by_handle): Revise declaration.
10329 * thread.c (find_thread_by_handle): Likewise. Adjust
10330 implementation too.
10331 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10332 support for buffer objects as handles.
10333
10334 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10335
10336 * python/py-infthread.c (thpy_thread_handle): New function.
10337 (thread_object_methods): Register thpy_thread_handle.
10338
10339 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10340
10341 * gdbthread.h (thread_to_thread_handle): Declare.
10342 * thread.c (gdbtypes.h): Include.
10343 (thread_to_thread_handle): New function.
10344
10345 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10346 (target_thread_info_to_thread_handle): Declare.
10347 * target.c (target_thread_info_to_thread_handle): New function.
10348 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10349 * target-delegates.c: Regenerate.
10350
10351 * linux-thread-db.c (class thread_db_target): Add method
10352 thread_info_to_thread_handle.
10353 (thread_db_target::thread_info_to_thread_handle): Define.
10354 * remote.c (class remote_target): Add new method
10355 thread_info_to_thread_handle.
10356 (remote_target::thread_info_to_thread_handle): Define.
10357
10358 2019-04-08 Pedro Alves <palves@redhat.com>
10359
10360 * common/common-exceptions.c (throw_exception): Don't create
10361 named object to throw; throw directly.
10362 (throw_it): Likewise. Don't initialize gdb_exception::message
10363 here, with new; pass FMT and AP to the ctor instead.
10364 * common/common-exceptions.h: Include <string>.
10365 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10366 const char *, va_list)): New ctor. Use std::make_shared.
10367 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10368 errors)): Delete.
10369 (gdb_exception_error::gdb_exception_error(enum errors, const char
10370 *, va_list)): New.
10371 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10372 Add assertion.
10373 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10374 errors)): Delete.
10375 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10376 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10377 Add assertion.
10378
10379 2019-04-08 Tom Tromey <tom@tromey.com>
10380
10381 * valops.c (value_rtti_indirect_type): Replace throw_exception
10382 with throw.
10383 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10384 with throw.
10385 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10386 throw.
10387 * target.c (target_translate_tls_address): Replace throw_exception
10388 with throw.
10389 * stack.c (frame_apply_command_count): Replace throw_exception
10390 with throw.
10391 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10392 throw.
10393 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10394 with throw.
10395 * rs6000-tdep.c (rs6000_frame_cache)
10396 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10397 * remote.c: Replace throw_exception with throw.
10398 * record-full.c (record_full_message, record_full_wait_1)
10399 (record_full_restore): Replace throw_exception with throw.
10400 * record-btrace.c:
10401 (get_thread_current_frame_id, record_btrace_start_replaying)
10402 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10403 (cmd_record_btrace_start): Replace throw_exception with throw.
10404 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10405 throw.
10406 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10407 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10408 * linespec.c:
10409 (find_linespec_symbols): Replace throw_exception with throw.
10410 * infrun.c (displaced_step_prepare, resume): Replace
10411 throw_exception with throw.
10412 * infcmd.c (post_create_inferior): Replace throw_exception with
10413 throw.
10414 * inf-loop.c (inferior_event_handler): Replace throw_exception
10415 with throw.
10416 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10417 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10418 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10419 (get_prev_frame_always, get_frame_pc_if_available)
10420 (get_frame_address_in_block_if_available, get_frame_language):
10421 Replace throw_exception with throw.
10422 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10423 throw_exception with throw.
10424 * eval.c (fetch_subexp_value, evaluate_var_value)
10425 (evaluate_funcall, evaluate_subexp_standard): Replace
10426 throw_exception with throw.
10427 * dwarf2loc.c (call_site_find_chain)
10428 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10429 Replace throw_exception with throw.
10430 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10431 with throw.
10432 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10433 throw.
10434 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10435 * completer.c (complete_line_internal): Replace throw_exception
10436 with throw.
10437 * compile/compile-object-run.c (compile_object_run): Replace
10438 throw_exception with throw.
10439 * cli/cli-script.c (process_next_line): Replace throw_exception
10440 with throw.
10441 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10442 (btrace_enable, btrace_maint_update_pt_packets): Replace
10443 throw_exception with throw.
10444 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10445 throw_exception with throw.
10446 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10447 throw_exception with throw.
10448 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10449 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10450 * aarch64-tdep.c (aarch64_make_prologue_cache)
10451 (aarch64_make_stub_cache): Replace throw_exception with throw.
10452
10453 2019-04-08 Tom Tromey <tom@tromey.com>
10454
10455 * common/common-exceptions.c (throw_exception): Rename from
10456 throw_exception_cxx. Remove old copy. Make argument const.
10457 (throw_it): Create and throw exception objects directly.
10458 * common/common-exceptions.h (throw_exception): Make argument
10459 const.
10460 (struct gdb_exception_error): Add constructor.
10461 (struct gdb_exception_quit): Add constructor.
10462
10463 2019-04-08 Tom Tromey <tom@tromey.com>
10464
10465 * common/common-exceptions.h (exception_rethrow): Don't declare.
10466 (TRY_SJLJ): Update comment.
10467 (TRY, CATCH, END_CATCH): Remove.
10468 * common/common-exceptions.c (exception_rethrow): Remove.
10469
10470 2019-04-08 Tom Tromey <tom@tromey.com>
10471
10472 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10473 Remove.
10474 (gdb_exception_error): Rename from
10475 gdb_exception_RETURN_MASK_ERROR.
10476 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10477 (gdb_quit_bad_alloc): Update.
10478 * aarch64-tdep.c: Update.
10479 * ada-lang.c: Update.
10480 * ada-typeprint.c: Update.
10481 * ada-valprint.c: Update.
10482 * amd64-tdep.c: Update.
10483 * arch-utils.c: Update.
10484 * break-catch-throw.c: Update.
10485 * breakpoint.c: Update.
10486 * btrace.c: Update.
10487 * c-varobj.c: Update.
10488 * cli/cli-cmds.c: Update.
10489 * cli/cli-interp.c: Update.
10490 * cli/cli-script.c: Update.
10491 * common/common-exceptions.c: Update.
10492 * common/new-op.c: Update.
10493 * common/selftest.c: Update.
10494 * compile/compile-c-symbols.c: Update.
10495 * compile/compile-cplus-symbols.c: Update.
10496 * compile/compile-object-load.c: Update.
10497 * compile/compile-object-run.c: Update.
10498 * completer.c: Update.
10499 * corelow.c: Update.
10500 * cp-abi.c: Update.
10501 * cp-support.c: Update.
10502 * cp-valprint.c: Update.
10503 * darwin-nat.c: Update.
10504 * disasm-selftests.c: Update.
10505 * dtrace-probe.c: Update.
10506 * dwarf-index-cache.c: Update.
10507 * dwarf-index-write.c: Update.
10508 * dwarf2-frame-tailcall.c: Update.
10509 * dwarf2-frame.c: Update.
10510 * dwarf2loc.c: Update.
10511 * dwarf2read.c: Update.
10512 * eval.c: Update.
10513 * event-loop.c: Update.
10514 * event-top.c: Update.
10515 * exec.c: Update.
10516 * f-valprint.c: Update.
10517 * fbsd-tdep.c: Update.
10518 * frame-unwind.c: Update.
10519 * frame.c: Update.
10520 * gdbtypes.c: Update.
10521 * gnu-v3-abi.c: Update.
10522 * guile/guile-internal.h: Update.
10523 * guile/scm-block.c: Update.
10524 * guile/scm-breakpoint.c: Update.
10525 * guile/scm-cmd.c: Update.
10526 * guile/scm-disasm.c: Update.
10527 * guile/scm-frame.c: Update.
10528 * guile/scm-lazy-string.c: Update.
10529 * guile/scm-math.c: Update.
10530 * guile/scm-param.c: Update.
10531 * guile/scm-ports.c: Update.
10532 * guile/scm-pretty-print.c: Update.
10533 * guile/scm-symbol.c: Update.
10534 * guile/scm-symtab.c: Update.
10535 * guile/scm-type.c: Update.
10536 * guile/scm-value.c: Update.
10537 * i386-linux-tdep.c: Update.
10538 * i386-tdep.c: Update.
10539 * inf-loop.c: Update.
10540 * infcall.c: Update.
10541 * infcmd.c: Update.
10542 * infrun.c: Update.
10543 * jit.c: Update.
10544 * language.c: Update.
10545 * linespec.c: Update.
10546 * linux-fork.c: Update.
10547 * linux-nat.c: Update.
10548 * linux-tdep.c: Update.
10549 * linux-thread-db.c: Update.
10550 * main.c: Update.
10551 * mi/mi-cmd-break.c: Update.
10552 * mi/mi-cmd-stack.c: Update.
10553 * mi/mi-interp.c: Update.
10554 * mi/mi-main.c: Update.
10555 * objc-lang.c: Update.
10556 * p-valprint.c: Update.
10557 * parse.c: Update.
10558 * ppc-linux-tdep.c: Update.
10559 * printcmd.c: Update.
10560 * python/py-arch.c: Update.
10561 * python/py-breakpoint.c: Update.
10562 * python/py-cmd.c: Update.
10563 * python/py-finishbreakpoint.c: Update.
10564 * python/py-frame.c: Update.
10565 * python/py-framefilter.c: Update.
10566 * python/py-gdb-readline.c: Update.
10567 * python/py-inferior.c: Update.
10568 * python/py-infthread.c: Update.
10569 * python/py-lazy-string.c: Update.
10570 * python/py-linetable.c: Update.
10571 * python/py-objfile.c: Update.
10572 * python/py-param.c: Update.
10573 * python/py-prettyprint.c: Update.
10574 * python/py-progspace.c: Update.
10575 * python/py-record-btrace.c: Update.
10576 * python/py-record.c: Update.
10577 * python/py-symbol.c: Update.
10578 * python/py-type.c: Update.
10579 * python/py-unwind.c: Update.
10580 * python/py-utils.c: Update.
10581 * python/py-value.c: Update.
10582 * python/python.c: Update.
10583 * record-btrace.c: Update.
10584 * record-full.c: Update.
10585 * remote-fileio.c: Update.
10586 * remote.c: Update.
10587 * riscv-tdep.c: Update.
10588 * rs6000-aix-tdep.c: Update.
10589 * rs6000-tdep.c: Update.
10590 * rust-exp.y: Update.
10591 * rust-lang.c: Update.
10592 * s390-tdep.c: Update.
10593 * selftest-arch.c: Update.
10594 * solib-dsbt.c: Update.
10595 * solib-frv.c: Update.
10596 * solib-spu.c: Update.
10597 * solib-svr4.c: Update.
10598 * solib.c: Update.
10599 * sparc64-linux-tdep.c: Update.
10600 * stack.c: Update.
10601 * symfile-mem.c: Update.
10602 * symmisc.c: Update.
10603 * target.c: Update.
10604 * thread.c: Update.
10605 * top.c: Update.
10606 * tracefile-tfile.c: Update.
10607 * tui/tui.c: Update.
10608 * typeprint.c: Update.
10609 * unittests/cli-utils-selftests.c: Update.
10610 * unittests/parse-connection-spec-selftests.c: Update.
10611 * valops.c: Update.
10612 * valprint.c: Update.
10613 * value.c: Update.
10614 * varobj.c: Update.
10615 * windows-nat.c: Update.
10616 * x86-linux-nat.c: Update.
10617 * xml-support.c: Update.
10618
10619 2019-04-08 Tom Tromey <tom@tromey.com>
10620
10621 * xml-support.c: Use C++ exception handling.
10622 * x86-linux-nat.c: Use C++ exception handling.
10623 * windows-nat.c: Use C++ exception handling.
10624 * varobj.c: Use C++ exception handling.
10625 * value.c: Use C++ exception handling.
10626 * valprint.c: Use C++ exception handling.
10627 * valops.c: Use C++ exception handling.
10628 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10629 handling.
10630 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10631 * typeprint.c: Use C++ exception handling.
10632 * tui/tui.c: Use C++ exception handling.
10633 * tracefile-tfile.c: Use C++ exception handling.
10634 * top.c: Use C++ exception handling.
10635 * thread.c: Use C++ exception handling.
10636 * target.c: Use C++ exception handling.
10637 * symmisc.c: Use C++ exception handling.
10638 * symfile-mem.c: Use C++ exception handling.
10639 * stack.c: Use C++ exception handling.
10640 * sparc64-linux-tdep.c: Use C++ exception handling.
10641 * solib.c: Use C++ exception handling.
10642 * solib-svr4.c: Use C++ exception handling.
10643 * solib-spu.c: Use C++ exception handling.
10644 * solib-frv.c: Use C++ exception handling.
10645 * solib-dsbt.c: Use C++ exception handling.
10646 * selftest-arch.c: Use C++ exception handling.
10647 * s390-tdep.c: Use C++ exception handling.
10648 * rust-lang.c: Use C++ exception handling.
10649 * rust-exp.y: Use C++ exception handling.
10650 * rs6000-tdep.c: Use C++ exception handling.
10651 * rs6000-aix-tdep.c: Use C++ exception handling.
10652 * riscv-tdep.c: Use C++ exception handling.
10653 * remote.c: Use C++ exception handling.
10654 * remote-fileio.c: Use C++ exception handling.
10655 * record-full.c: Use C++ exception handling.
10656 * record-btrace.c: Use C++ exception handling.
10657 * python/python.c: Use C++ exception handling.
10658 * python/py-value.c: Use C++ exception handling.
10659 * python/py-utils.c: Use C++ exception handling.
10660 * python/py-unwind.c: Use C++ exception handling.
10661 * python/py-type.c: Use C++ exception handling.
10662 * python/py-symbol.c: Use C++ exception handling.
10663 * python/py-record.c: Use C++ exception handling.
10664 * python/py-record-btrace.c: Use C++ exception handling.
10665 * python/py-progspace.c: Use C++ exception handling.
10666 * python/py-prettyprint.c: Use C++ exception handling.
10667 * python/py-param.c: Use C++ exception handling.
10668 * python/py-objfile.c: Use C++ exception handling.
10669 * python/py-linetable.c: Use C++ exception handling.
10670 * python/py-lazy-string.c: Use C++ exception handling.
10671 * python/py-infthread.c: Use C++ exception handling.
10672 * python/py-inferior.c: Use C++ exception handling.
10673 * python/py-gdb-readline.c: Use C++ exception handling.
10674 * python/py-framefilter.c: Use C++ exception handling.
10675 * python/py-frame.c: Use C++ exception handling.
10676 * python/py-finishbreakpoint.c: Use C++ exception handling.
10677 * python/py-cmd.c: Use C++ exception handling.
10678 * python/py-breakpoint.c: Use C++ exception handling.
10679 * python/py-arch.c: Use C++ exception handling.
10680 * printcmd.c: Use C++ exception handling.
10681 * ppc-linux-tdep.c: Use C++ exception handling.
10682 * parse.c: Use C++ exception handling.
10683 * p-valprint.c: Use C++ exception handling.
10684 * objc-lang.c: Use C++ exception handling.
10685 * mi/mi-main.c: Use C++ exception handling.
10686 * mi/mi-interp.c: Use C++ exception handling.
10687 * mi/mi-cmd-stack.c: Use C++ exception handling.
10688 * mi/mi-cmd-break.c: Use C++ exception handling.
10689 * main.c: Use C++ exception handling.
10690 * linux-thread-db.c: Use C++ exception handling.
10691 * linux-tdep.c: Use C++ exception handling.
10692 * linux-nat.c: Use C++ exception handling.
10693 * linux-fork.c: Use C++ exception handling.
10694 * linespec.c: Use C++ exception handling.
10695 * language.c: Use C++ exception handling.
10696 * jit.c: Use C++ exception handling.
10697 * infrun.c: Use C++ exception handling.
10698 * infcmd.c: Use C++ exception handling.
10699 * infcall.c: Use C++ exception handling.
10700 * inf-loop.c: Use C++ exception handling.
10701 * i386-tdep.c: Use C++ exception handling.
10702 * i386-linux-tdep.c: Use C++ exception handling.
10703 * guile/scm-value.c: Use C++ exception handling.
10704 * guile/scm-type.c: Use C++ exception handling.
10705 * guile/scm-symtab.c: Use C++ exception handling.
10706 * guile/scm-symbol.c: Use C++ exception handling.
10707 * guile/scm-pretty-print.c: Use C++ exception handling.
10708 * guile/scm-ports.c: Use C++ exception handling.
10709 * guile/scm-param.c: Use C++ exception handling.
10710 * guile/scm-math.c: Use C++ exception handling.
10711 * guile/scm-lazy-string.c: Use C++ exception handling.
10712 * guile/scm-frame.c: Use C++ exception handling.
10713 * guile/scm-disasm.c: Use C++ exception handling.
10714 * guile/scm-cmd.c: Use C++ exception handling.
10715 * guile/scm-breakpoint.c: Use C++ exception handling.
10716 * guile/scm-block.c: Use C++ exception handling.
10717 * guile/guile-internal.h: Use C++ exception handling.
10718 * gnu-v3-abi.c: Use C++ exception handling.
10719 * gdbtypes.c: Use C++ exception handling.
10720 * frame.c: Use C++ exception handling.
10721 * frame-unwind.c: Use C++ exception handling.
10722 * fbsd-tdep.c: Use C++ exception handling.
10723 * f-valprint.c: Use C++ exception handling.
10724 * exec.c: Use C++ exception handling.
10725 * event-top.c: Use C++ exception handling.
10726 * event-loop.c: Use C++ exception handling.
10727 * eval.c: Use C++ exception handling.
10728 * dwarf2read.c: Use C++ exception handling.
10729 * dwarf2loc.c: Use C++ exception handling.
10730 * dwarf2-frame.c: Use C++ exception handling.
10731 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10732 * dwarf-index-write.c: Use C++ exception handling.
10733 * dwarf-index-cache.c: Use C++ exception handling.
10734 * dtrace-probe.c: Use C++ exception handling.
10735 * disasm-selftests.c: Use C++ exception handling.
10736 * darwin-nat.c: Use C++ exception handling.
10737 * cp-valprint.c: Use C++ exception handling.
10738 * cp-support.c: Use C++ exception handling.
10739 * cp-abi.c: Use C++ exception handling.
10740 * corelow.c: Use C++ exception handling.
10741 * completer.c: Use C++ exception handling.
10742 * compile/compile-object-run.c: Use C++ exception handling.
10743 * compile/compile-object-load.c: Use C++ exception handling.
10744 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10745 * compile/compile-c-symbols.c: Use C++ exception handling.
10746 * common/selftest.c: Use C++ exception handling.
10747 * common/new-op.c: Use C++ exception handling.
10748 * cli/cli-script.c: Use C++ exception handling.
10749 * cli/cli-interp.c: Use C++ exception handling.
10750 * cli/cli-cmds.c: Use C++ exception handling.
10751 * c-varobj.c: Use C++ exception handling.
10752 * btrace.c: Use C++ exception handling.
10753 * breakpoint.c: Use C++ exception handling.
10754 * break-catch-throw.c: Use C++ exception handling.
10755 * arch-utils.c: Use C++ exception handling.
10756 * amd64-tdep.c: Use C++ exception handling.
10757 * ada-valprint.c: Use C++ exception handling.
10758 * ada-typeprint.c: Use C++ exception handling.
10759 * ada-lang.c: Use C++ exception handling.
10760 * aarch64-tdep.c: Use C++ exception handling.
10761
10762 2019-04-08 Tom Tromey <tom@tromey.com>
10763
10764 * xml-support.c (gdb_xml_parser::parse): Update.
10765 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10766 * value.c (show_convenience): Update.
10767 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10768 (test_parse_flags_qcs): Update.
10769 * thread.c (thr_try_catch_cmd): Update.
10770 * target.c (target_translate_tls_address): Update.
10771 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10772 (info_frame_command_core, frame_apply_command_count): Update.
10773 * rust-exp.y (rust_lex_exception_test): Update.
10774 * riscv-tdep.c (riscv_print_one_register_info): Update.
10775 * remote.c (remote_target::enable_btrace): Update.
10776 * record-btrace.c (record_btrace_enable_warn): Update.
10777 * python/py-utils.c (gdbpy_convert_exception): Update.
10778 * printcmd.c (do_one_display, print_variable_and_value): Update.
10779 * mi/mi-main.c (mi_print_exception): Update.
10780 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10781 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10782 * linux-nat.c (linux_nat_target::attach): Update.
10783 * linux-fork.c (class scoped_switch_fork_info): Update.
10784 * infrun.c (displaced_step_prepare): Update.
10785 * infcall.c (call_function_by_hand_dummy): Update.
10786 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10787 * gnu-v3-abi.c (print_one_vtable): Update.
10788 * frame.c (get_prev_frame_always): Update.
10789 * f-valprint.c (info_common_command_for_block): Update.
10790 * exec.c (try_open_exec_file): Update.
10791 * exceptions.c (print_exception, exception_print)
10792 (exception_fprintf, exception_print_same): Update.
10793 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10794 * dwarf-index-cache.c (index_cache::store)
10795 (index_cache::lookup_gdb_index): Update.
10796 * darwin-nat.c (maybe_cache_shell): Update.
10797 * cp-valprint.c (cp_print_value_fields): Update.
10798 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10799 (gcc_cplus_symbol_address): Update.
10800 * compile/compile-c-symbols.c (gcc_convert_symbol)
10801 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10802 * common/selftest.c: Update.
10803 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10804 a std::string.
10805 (exception_try_scope_entry, exception_try_scope_exit): Don't
10806 declare.
10807 (struct exception_try_scope): Remove.
10808 (TRY): Don't use exception_try_scope.
10809 (struct gdb_exception): Add constructor, operator=.
10810 <what>: New method.
10811 (struct gdb_exception_RETURN_MASK_ALL)
10812 (struct gdb_exception_RETURN_MASK_ERROR)
10813 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10814 (struct gdb_quit_bad_alloc): Update.
10815 * common/common-exceptions.c (exception_none): Change
10816 initializer.
10817 (struct catcher) <state, exception>: Initialize inline.
10818 <prev>: Remove member.
10819 (current_catcher): Remove.
10820 (catchers): New global.
10821 (exceptions_state_mc_init): Simplify.
10822 (catcher_pop): Remove.
10823 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10824 (try_scope_depth, exception_try_scope_entry)
10825 (exception_try_scope_exit): Remove.
10826 (throw_exception_sjlj): Update.
10827 (exception_messages, exception_messages_size): Remove.
10828 (throw_it): Simplify.
10829 (gdb_exception_sliced_copy): Remove.
10830 (throw_exception_cxx): Update.
10831 * cli/cli-script.c (script_from_file): Update.
10832 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10833 Update.
10834 * ada-valprint.c (ada_val_print): Update.
10835 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10836 (create_excep_cond_exprs): Update.
10837
10838 2019-04-08 Tom Tromey <tom@tromey.com>
10839
10840 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10841 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10842 (TRY, CATCH, END_CATCH): Remove some definitions.
10843 * common/common-exceptions.c: Don't use GDB_XCPT.
10844 (catcher_list_size): Remove.
10845 (throw_exception, throw_it): Simplify.
10846
10847 2019-04-05 Tom Tromey <tom@tromey.com>
10848
10849 Revert the header-sorting patch.
10850 * ft32-tdep.c: Revert.
10851 * frv-tdep.c: Revert.
10852 * frv-linux-tdep.c: Revert.
10853 * frame.c: Revert.
10854 * frame-unwind.c: Revert.
10855 * frame-base.c: Revert.
10856 * fork-child.c: Revert.
10857 * findvar.c: Revert.
10858 * findcmd.c: Revert.
10859 * filesystem.c: Revert.
10860 * filename-seen-cache.h: Revert.
10861 * filename-seen-cache.c: Revert.
10862 * fbsd-tdep.c: Revert.
10863 * fbsd-nat.h: Revert.
10864 * fbsd-nat.c: Revert.
10865 * f-valprint.c: Revert.
10866 * f-typeprint.c: Revert.
10867 * f-lang.c: Revert.
10868 * extension.h: Revert.
10869 * extension.c: Revert.
10870 * extension-priv.h: Revert.
10871 * expprint.c: Revert.
10872 * exec.h: Revert.
10873 * exec.c: Revert.
10874 * exceptions.c: Revert.
10875 * event-top.c: Revert.
10876 * event-loop.c: Revert.
10877 * eval.c: Revert.
10878 * elfread.c: Revert.
10879 * dwarf2read.h: Revert.
10880 * dwarf2read.c: Revert.
10881 * dwarf2loc.c: Revert.
10882 * dwarf2expr.h: Revert.
10883 * dwarf2expr.c: Revert.
10884 * dwarf2-frame.c: Revert.
10885 * dwarf2-frame-tailcall.c: Revert.
10886 * dwarf-index-write.h: Revert.
10887 * dwarf-index-write.c: Revert.
10888 * dwarf-index-common.c: Revert.
10889 * dwarf-index-cache.h: Revert.
10890 * dwarf-index-cache.c: Revert.
10891 * dummy-frame.c: Revert.
10892 * dtrace-probe.c: Revert.
10893 * disasm.h: Revert.
10894 * disasm.c: Revert.
10895 * disasm-selftests.c: Revert.
10896 * dictionary.c: Revert.
10897 * dicos-tdep.c: Revert.
10898 * demangle.c: Revert.
10899 * dcache.h: Revert.
10900 * dcache.c: Revert.
10901 * darwin-nat.h: Revert.
10902 * darwin-nat.c: Revert.
10903 * darwin-nat-info.c: Revert.
10904 * d-valprint.c: Revert.
10905 * d-namespace.c: Revert.
10906 * d-lang.c: Revert.
10907 * ctf.c: Revert.
10908 * csky-tdep.c: Revert.
10909 * csky-linux-tdep.c: Revert.
10910 * cris-tdep.c: Revert.
10911 * cris-linux-tdep.c: Revert.
10912 * cp-valprint.c: Revert.
10913 * cp-support.c: Revert.
10914 * cp-namespace.c: Revert.
10915 * cp-abi.c: Revert.
10916 * corelow.c: Revert.
10917 * corefile.c: Revert.
10918 * continuations.c: Revert.
10919 * completer.h: Revert.
10920 * completer.c: Revert.
10921 * complaints.c: Revert.
10922 * coffread.c: Revert.
10923 * coff-pe-read.c: Revert.
10924 * cli-out.h: Revert.
10925 * cli-out.c: Revert.
10926 * charset.c: Revert.
10927 * c-varobj.c: Revert.
10928 * c-valprint.c: Revert.
10929 * c-typeprint.c: Revert.
10930 * c-lang.c: Revert.
10931 * buildsym.c: Revert.
10932 * buildsym-legacy.c: Revert.
10933 * build-id.h: Revert.
10934 * build-id.c: Revert.
10935 * btrace.c: Revert.
10936 * bsd-uthread.c: Revert.
10937 * breakpoint.h: Revert.
10938 * breakpoint.c: Revert.
10939 * break-catch-throw.c: Revert.
10940 * break-catch-syscall.c: Revert.
10941 * break-catch-sig.c: Revert.
10942 * blockframe.c: Revert.
10943 * block.c: Revert.
10944 * bfin-tdep.c: Revert.
10945 * bfin-linux-tdep.c: Revert.
10946 * bfd-target.c: Revert.
10947 * bcache.c: Revert.
10948 * ax-general.c: Revert.
10949 * ax-gdb.h: Revert.
10950 * ax-gdb.c: Revert.
10951 * avr-tdep.c: Revert.
10952 * auxv.c: Revert.
10953 * auto-load.c: Revert.
10954 * arm-wince-tdep.c: Revert.
10955 * arm-tdep.c: Revert.
10956 * arm-symbian-tdep.c: Revert.
10957 * arm-pikeos-tdep.c: Revert.
10958 * arm-obsd-tdep.c: Revert.
10959 * arm-nbsd-tdep.c: Revert.
10960 * arm-nbsd-nat.c: Revert.
10961 * arm-linux-tdep.c: Revert.
10962 * arm-linux-nat.c: Revert.
10963 * arm-fbsd-tdep.c: Revert.
10964 * arm-fbsd-nat.c: Revert.
10965 * arm-bsd-tdep.c: Revert.
10966 * arch-utils.c: Revert.
10967 * arc-tdep.c: Revert.
10968 * arc-newlib-tdep.c: Revert.
10969 * annotate.h: Revert.
10970 * annotate.c: Revert.
10971 * amd64-windows-tdep.c: Revert.
10972 * amd64-windows-nat.c: Revert.
10973 * amd64-tdep.c: Revert.
10974 * amd64-sol2-tdep.c: Revert.
10975 * amd64-obsd-tdep.c: Revert.
10976 * amd64-obsd-nat.c: Revert.
10977 * amd64-nbsd-tdep.c: Revert.
10978 * amd64-nbsd-nat.c: Revert.
10979 * amd64-nat.c: Revert.
10980 * amd64-linux-tdep.c: Revert.
10981 * amd64-linux-nat.c: Revert.
10982 * amd64-fbsd-tdep.c: Revert.
10983 * amd64-fbsd-nat.c: Revert.
10984 * amd64-dicos-tdep.c: Revert.
10985 * amd64-darwin-tdep.c: Revert.
10986 * amd64-bsd-nat.c: Revert.
10987 * alpha-tdep.c: Revert.
10988 * alpha-obsd-tdep.c: Revert.
10989 * alpha-nbsd-tdep.c: Revert.
10990 * alpha-mdebug-tdep.c: Revert.
10991 * alpha-linux-tdep.c: Revert.
10992 * alpha-linux-nat.c: Revert.
10993 * alpha-bsd-tdep.c: Revert.
10994 * alpha-bsd-nat.c: Revert.
10995 * aix-thread.c: Revert.
10996 * agent.c: Revert.
10997 * addrmap.c: Revert.
10998 * ada-varobj.c: Revert.
10999 * ada-valprint.c: Revert.
11000 * ada-typeprint.c: Revert.
11001 * ada-tasks.c: Revert.
11002 * ada-lang.c: Revert.
11003 * aarch64-tdep.c: Revert.
11004 * aarch64-ravenscar-thread.c: Revert.
11005 * aarch64-newlib-tdep.c: Revert.
11006 * aarch64-linux-tdep.c: Revert.
11007 * aarch64-linux-nat.c: Revert.
11008 * aarch64-fbsd-tdep.c: Revert.
11009 * aarch64-fbsd-nat.c: Revert.
11010 * aarch32-linux-nat.c: Revert.
11011
11012 2019-04-05 Tom Tromey <tom@tromey.com>
11013
11014 * ft32-tdep.c: Sort headers.
11015 * frv-tdep.c: Sort headers.
11016 * frv-linux-tdep.c: Sort headers.
11017 * frame.c: Sort headers.
11018 * frame-unwind.c: Sort headers.
11019 * frame-base.c: Sort headers.
11020 * fork-child.c: Sort headers.
11021 * findvar.c: Sort headers.
11022 * findcmd.c: Sort headers.
11023 * filesystem.c: Sort headers.
11024 * filename-seen-cache.h: Sort headers.
11025 * filename-seen-cache.c: Sort headers.
11026 * fbsd-tdep.c: Sort headers.
11027 * fbsd-nat.h: Sort headers.
11028 * fbsd-nat.c: Sort headers.
11029 * f-valprint.c: Sort headers.
11030 * f-typeprint.c: Sort headers.
11031 * f-lang.c: Sort headers.
11032 * extension.h: Sort headers.
11033 * extension.c: Sort headers.
11034 * extension-priv.h: Sort headers.
11035 * expprint.c: Sort headers.
11036 * exec.h: Sort headers.
11037 * exec.c: Sort headers.
11038 * exceptions.c: Sort headers.
11039 * event-top.c: Sort headers.
11040 * event-loop.c: Sort headers.
11041 * eval.c: Sort headers.
11042 * elfread.c: Sort headers.
11043 * dwarf2read.h: Sort headers.
11044 * dwarf2read.c: Sort headers.
11045 * dwarf2loc.c: Sort headers.
11046 * dwarf2expr.h: Sort headers.
11047 * dwarf2expr.c: Sort headers.
11048 * dwarf2-frame.c: Sort headers.
11049 * dwarf2-frame-tailcall.c: Sort headers.
11050 * dwarf-index-write.h: Sort headers.
11051 * dwarf-index-write.c: Sort headers.
11052 * dwarf-index-common.c: Sort headers.
11053 * dwarf-index-cache.h: Sort headers.
11054 * dwarf-index-cache.c: Sort headers.
11055 * dummy-frame.c: Sort headers.
11056 * dtrace-probe.c: Sort headers.
11057 * disasm.h: Sort headers.
11058 * disasm.c: Sort headers.
11059 * disasm-selftests.c: Sort headers.
11060 * dictionary.c: Sort headers.
11061 * dicos-tdep.c: Sort headers.
11062 * demangle.c: Sort headers.
11063 * dcache.h: Sort headers.
11064 * dcache.c: Sort headers.
11065 * darwin-nat.h: Sort headers.
11066 * darwin-nat.c: Sort headers.
11067 * darwin-nat-info.c: Sort headers.
11068 * d-valprint.c: Sort headers.
11069 * d-namespace.c: Sort headers.
11070 * d-lang.c: Sort headers.
11071 * ctf.c: Sort headers.
11072 * csky-tdep.c: Sort headers.
11073 * csky-linux-tdep.c: Sort headers.
11074 * cris-tdep.c: Sort headers.
11075 * cris-linux-tdep.c: Sort headers.
11076 * cp-valprint.c: Sort headers.
11077 * cp-support.c: Sort headers.
11078 * cp-namespace.c: Sort headers.
11079 * cp-abi.c: Sort headers.
11080 * corelow.c: Sort headers.
11081 * corefile.c: Sort headers.
11082 * continuations.c: Sort headers.
11083 * completer.h: Sort headers.
11084 * completer.c: Sort headers.
11085 * complaints.c: Sort headers.
11086 * coffread.c: Sort headers.
11087 * coff-pe-read.c: Sort headers.
11088 * cli-out.h: Sort headers.
11089 * cli-out.c: Sort headers.
11090 * charset.c: Sort headers.
11091 * c-varobj.c: Sort headers.
11092 * c-valprint.c: Sort headers.
11093 * c-typeprint.c: Sort headers.
11094 * c-lang.c: Sort headers.
11095 * buildsym.c: Sort headers.
11096 * buildsym-legacy.c: Sort headers.
11097 * build-id.h: Sort headers.
11098 * build-id.c: Sort headers.
11099 * btrace.c: Sort headers.
11100 * bsd-uthread.c: Sort headers.
11101 * breakpoint.h: Sort headers.
11102 * breakpoint.c: Sort headers.
11103 * break-catch-throw.c: Sort headers.
11104 * break-catch-syscall.c: Sort headers.
11105 * break-catch-sig.c: Sort headers.
11106 * blockframe.c: Sort headers.
11107 * block.c: Sort headers.
11108 * bfin-tdep.c: Sort headers.
11109 * bfin-linux-tdep.c: Sort headers.
11110 * bfd-target.c: Sort headers.
11111 * bcache.c: Sort headers.
11112 * ax-general.c: Sort headers.
11113 * ax-gdb.h: Sort headers.
11114 * ax-gdb.c: Sort headers.
11115 * avr-tdep.c: Sort headers.
11116 * auxv.c: Sort headers.
11117 * auto-load.c: Sort headers.
11118 * arm-wince-tdep.c: Sort headers.
11119 * arm-tdep.c: Sort headers.
11120 * arm-symbian-tdep.c: Sort headers.
11121 * arm-pikeos-tdep.c: Sort headers.
11122 * arm-obsd-tdep.c: Sort headers.
11123 * arm-nbsd-tdep.c: Sort headers.
11124 * arm-nbsd-nat.c: Sort headers.
11125 * arm-linux-tdep.c: Sort headers.
11126 * arm-linux-nat.c: Sort headers.
11127 * arm-fbsd-tdep.c: Sort headers.
11128 * arm-fbsd-nat.c: Sort headers.
11129 * arm-bsd-tdep.c: Sort headers.
11130 * arch-utils.c: Sort headers.
11131 * arc-tdep.c: Sort headers.
11132 * arc-newlib-tdep.c: Sort headers.
11133 * annotate.h: Sort headers.
11134 * annotate.c: Sort headers.
11135 * amd64-windows-tdep.c: Sort headers.
11136 * amd64-windows-nat.c: Sort headers.
11137 * amd64-tdep.c: Sort headers.
11138 * amd64-sol2-tdep.c: Sort headers.
11139 * amd64-obsd-tdep.c: Sort headers.
11140 * amd64-obsd-nat.c: Sort headers.
11141 * amd64-nbsd-tdep.c: Sort headers.
11142 * amd64-nbsd-nat.c: Sort headers.
11143 * amd64-nat.c: Sort headers.
11144 * amd64-linux-tdep.c: Sort headers.
11145 * amd64-linux-nat.c: Sort headers.
11146 * amd64-fbsd-tdep.c: Sort headers.
11147 * amd64-fbsd-nat.c: Sort headers.
11148 * amd64-dicos-tdep.c: Sort headers.
11149 * amd64-darwin-tdep.c: Sort headers.
11150 * amd64-bsd-nat.c: Sort headers.
11151 * alpha-tdep.c: Sort headers.
11152 * alpha-obsd-tdep.c: Sort headers.
11153 * alpha-nbsd-tdep.c: Sort headers.
11154 * alpha-mdebug-tdep.c: Sort headers.
11155 * alpha-linux-tdep.c: Sort headers.
11156 * alpha-linux-nat.c: Sort headers.
11157 * alpha-bsd-tdep.c: Sort headers.
11158 * alpha-bsd-nat.c: Sort headers.
11159 * aix-thread.c: Sort headers.
11160 * agent.c: Sort headers.
11161 * addrmap.c: Sort headers.
11162 * ada-varobj.c: Sort headers.
11163 * ada-valprint.c: Sort headers.
11164 * ada-typeprint.c: Sort headers.
11165 * ada-tasks.c: Sort headers.
11166 * ada-lang.c: Sort headers.
11167 * aarch64-tdep.c: Sort headers.
11168 * aarch64-ravenscar-thread.c: Sort headers.
11169 * aarch64-newlib-tdep.c: Sort headers.
11170 * aarch64-linux-tdep.c: Sort headers.
11171 * aarch64-linux-nat.c: Sort headers.
11172 * aarch64-fbsd-tdep.c: Sort headers.
11173 * aarch64-fbsd-nat.c: Sort headers.
11174 * aarch32-linux-nat.c: Sort headers.
11175
11176 2019-04-04 Tom Tromey <tom@tromey.com>
11177
11178 * varobj.c (varobj_create): Update.
11179 * rust-exp.y (struct rust_parser) <update_innermost_block,
11180 lookup_symbol>: New methods.
11181 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11182 Rename.
11183 (rust_parser::rust_lookup_type)
11184 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11185 * printcmd.c (display_command, do_one_display): Update.
11186 * parser-defs.h (struct parser_state) <parser_state>: Add
11187 "tracker" parameter.
11188 (block_tracker): New member.
11189 (class innermost_block_tracker) <innermost_block_tracker>: Add
11190 "types" parameter.
11191 <reset>: Remove method.
11192 (innermost_block): Don't declare.
11193 (null_post_parser): Update.
11194 * parse.c (innermost_block): Remove global.
11195 (write_dollar_variable): Update.
11196 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11197 Remove "tracker_types" parameter.
11198 (parse_expression): Add "tracker" parameter.
11199 (parse_expression_for_completion): Update.
11200 (null_post_parser): Add "tracker" parameter.
11201 * p-exp.y: Update rules.
11202 * m2-exp.y: Update rules.
11203 * language.h (struct language_defn) <la_post_parser>: Add
11204 "tracker" parameter.
11205 * go-exp.y: Update rules.
11206 * f-exp.y: Update rules.
11207 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11208 parameter.
11209 * d-exp.y: Update rules.
11210 * c-exp.y: Update rules.
11211 * breakpoint.c (set_breakpoint_condition): Create an
11212 innermost_block_tracker.
11213 (watch_command_1): Likewise.
11214 * ada-lang.c (resolve): Add "tracker" parameter.
11215 (resolve_subexp): Likewise.
11216 * ada-exp.y (write_var_from_sym): Update.
11217
11218 2019-04-04 Tom Tromey <tom@tromey.com>
11219
11220 * type-stack.h: New file.
11221 * type-stack.c: New file.
11222 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11223 type-stack.h.
11224 (insert_into_type_stack, insert_type, push_type, push_type_int)
11225 (insert_type_address_space, pop_type, pop_type_int)
11226 (pop_typelist, pop_type_stack, append_type_stack)
11227 (push_type_stack, get_type_stack, push_typelist)
11228 (follow_type_instance_flags, follow_types): Don't declare.
11229 * parse.c (type_stack): Remove global.
11230 (parse_exp_in_context): Update.
11231 (insert_into_type_stack, insert_type, push_type, push_type_int)
11232 (insert_type_address_space, pop_type, pop_type_int)
11233 (pop_typelist, pop_type_stack, append_type_stack)
11234 (push_type_stack, get_type_stack, push_typelist)
11235 (follow_type_instance_flags, follow_types): Remove (moved to
11236 type-stack.c).
11237 * f-exp.y (type_stack): New global.
11238 Update rules.
11239 (push_kind_type, f_parse): Update.
11240 * d-exp.y (type_stack): New global.
11241 Update rules.
11242 (d_parse): Update.
11243 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11244 Update rules.
11245 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11246 (HFILES_NO_SRCDIR): Add type-stack.h.
11247
11248 2019-04-04 Tom Tromey <tom@tromey.com>
11249
11250 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11251 (rust_parser::convert_ast_to_expression, rust_parse)
11252 (rust_lex_test_completion, rust_lex_tests): Update.
11253 * parser-defs.h (struct expr_completion_state): New.
11254 (struct parser_state) <parser_state>: Add completion parameter.
11255 <mark_struct_expression, mark_completion_tag>: New methods.
11256 <parse_completion, m_completion_state>: New members.
11257 (prefixify_expression, null_post_parser): Update.
11258 (mark_struct_expression, mark_completion_tag): Don't declare.
11259 * parse.c (parse_completion, expout_last_struct)
11260 (expout_tag_completion_type, expout_completion_name): Remove
11261 globals.
11262 (parser_state::mark_struct_expression)
11263 (parser_state::mark_completion_tag): Now methods.
11264 (prefixify_expression): Add last_struct parameter.
11265 (prefixify_subexp): Likewise.
11266 (parse_exp_1): Update.
11267 (parse_exp_in_context): Add cstate parameter. Update.
11268 (parse_expression_for_completion): Create an
11269 expr_completion_state.
11270 (null_post_parser): Add "completion" parameter.
11271 * p-exp.y: Update rules.
11272 (yylex): Update.
11273 * language.h (struct language_defn) <la_post_parser>: Add
11274 "completing" parameter.
11275 * go-exp.y: Update rules.
11276 (lex_one_token): Update.
11277 * expression.h (parse_completion): Don't declare.
11278 * d-exp.y: Update rules.
11279 (lex_one_token): Update rules.
11280 * c-exp.y: Update rules.
11281 (lex_one_token): Update.
11282 * ada-lang.c (resolve): Add "parse_completion" parameter.
11283 (resolve_subexp): Likewise.
11284 (ada_resolve_function): Likewise.
11285
11286 2019-04-04 Tom Tromey <tom@tromey.com>
11287
11288 * parser-defs.h (struct parser_state) <start_arglist,
11289 end_arglist>: New methods.
11290 <arglist_len, m_funcall_chain>: New members.
11291 (arglist_len, start_arglist, end_arglist): Don't declare.
11292 * parse.c (arglist_len, funcall_chain): Remove global.
11293 (start_arglist, end_arglist): Remove functions.
11294 (parse_exp_in_context): Update.
11295 * p-exp.y: Update rules.
11296 * m2-exp.y: Update rules.
11297 * go-exp.y: Update rules.
11298 * f-exp.y: Update rules.
11299 * d-exp.y: Update rules.
11300 * c-exp.y: Update rules.
11301
11302 2019-04-04 Tom Tromey <tom@tromey.com>
11303
11304 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11305 lex_operator, push_back>: New methods.
11306 Update all rules.
11307 (rust_parser::lex_hex, lex_escape): Rename and update.
11308 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11309 (rust_parser::lex_operator): Rename and update.
11310 (rust_parser::lex_number, rustyylex, rustyyerror)
11311 (rust_lex_test_init, rust_lex_test_sequence)
11312 (rust_lex_test_push_back, rust_lex_tests): Update.
11313 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11314 parameter.
11315 <lexptr, prev_lexptr>: New members.
11316 (lexptr, prev_lexptr): Don't declare.
11317 * parse.c (lexptr, prev_lexptr): Remove globals.
11318 (parse_exp_in_context): Update.
11319 * p-exp.y (yylex, yyerror): Update.
11320 * m2-exp.y (parse_number, yylex, yyerror): Update.
11321 * go-exp.y (lex_one_token, yyerror): Update.
11322 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11323 * d-exp.y (lex_one_token, yyerror): Update.
11324 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11325 (lex_one_token, yyerror): Update.
11326 * ada-lex.l (YY_INPUT): Update.
11327 (rewind_to_char): Update.
11328 * ada-exp.y (yyerror): Update.
11329
11330 2019-04-04 Tom Tromey <tom@tromey.com>
11331
11332 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11333 * parser-defs.h (struct parser_state) <parser_state>: Add new
11334 parameter.
11335 <comma_terminates>: New member.
11336 (comma_terminates): Don't declare global.
11337 * parse.c (comma_terminates): Remove global.
11338 (parse_exp_in_context): Update.
11339 * p-exp.y (yylex): Update.
11340 * m2-exp.y (yylex): Update.
11341 * go-exp.y (lex_one_token): Update.
11342 * f-exp.y (yylex): Update.
11343 * d-exp.y (lex_one_token): Update.
11344 * c-exp.y (lex_one_token): Update.
11345 * ada-lex.l: Update.
11346
11347 2019-04-04 Tom Tromey <tom@tromey.com>
11348
11349 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11350 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11351 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11352 * parser-defs.h (paren_depth): Don't declare.
11353 * parse.c (paren_depth): Remove global.
11354 (parse_exp_in_context): Update.
11355 * p-exp.y (paren_depth): New global.
11356 (pascal_parse): Initialize it.
11357 * m2-exp.y (paren_depth): New global.
11358 (m2_parse): Initialize it.
11359 * go-exp.y (paren_depth): New global.
11360 (go_parse): Initialize it.
11361 * f-exp.y (paren_depth): New global.
11362 (f_parse): Initialize it.
11363 * d-exp.y (paren_depth): New global.
11364 (d_parse): Initialize it.
11365 * c-exp.y (paren_depth): New global.
11366 (c_parse): Initialize it.
11367 * ada-lex.l (paren_depth): New global.
11368 (lexer_init): Initialize it.
11369
11370 2019-04-04 Tom Tromey <tom@tromey.com>
11371
11372 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11373 (rust_parser::convert_ast_to_type)
11374 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11375 * parser-defs.h (struct parser_state) <parser_state>: Add
11376 parameters. Initialize new members.
11377 <expression_context_block, expression_context_pc>: New members.
11378 * parse.c (expression_context_block, expression_context_pc):
11379 Remove globals.
11380 (parse_exp_in_context): Update.
11381 * p-exp.y: Update all rules.
11382 (yylex): Update.
11383 * m2-exp.y: Update all rules.
11384 (yylex): Update.
11385 * go-exp.y (yylex): Update.
11386 * f-exp.y (yylex): Update.
11387 * d-exp.y: Update all rules.
11388 (yylex): Update.
11389 * c-exp.y: Update all rules.
11390 (lex_one_token, classify_name, yylex, c_parse): Update.
11391 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11392
11393 2019-04-04 Tom Tromey <tom@tromey.com>
11394
11395 * gdbarch.h, gdbarch.c: Rebuild.
11396 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11397 * stap-probe.h:
11398 (struct stap_parse_info): Replace "parser_state" with
11399 "expr_builder".
11400 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11401 (parser_state): New class.
11402 * parse.c (expr_builder): Rename.
11403 (expr_builder::release): Rename.
11404 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11405 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11406 (write_exp_elt_longcst, write_exp_elt_floatcst)
11407 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11408 (write_exp_string_vector, write_exp_bitstring)
11409 (write_exp_msymbol, mark_struct_expression)
11410 (write_dollar_variable)
11411 (insert_type_address_space, increase_expout_size): Replace
11412 "parser_state" with "expr_builder".
11413 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11414 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11415 "parser_state" with "expr_builder".
11416
11417 2019-04-04 Tom Tromey <tom@tromey.com>
11418
11419 * rust-exp.y: Replace "parse_language" with method call.
11420 * p-exp.y:
11421 (yylex): Replace "parse_language" with method call.
11422 * m2-exp.y:
11423 (yylex): Replace "parse_language" with method call.
11424 * go-exp.y (classify_name): Replace "parse_language" with method
11425 call.
11426 * f-exp.y (yylex): Replace "parse_language" with method call.
11427 * d-exp.y (lex_one_token): Replace "parse_language" with method
11428 call.
11429 * c-exp.y:
11430 (lex_one_token, classify_name, yylex): Replace "parse_language"
11431 with method call.
11432 * ada-exp.y (find_primitive_type, type_char)
11433 (type_system_address): Replace "parse_language" with method call.
11434
11435 2019-04-04 Tom Tromey <tom@tromey.com>
11436
11437 * rust-exp.y: Replace "parse_gdbarch" with method call.
11438 * parse.c (write_dollar_variable, insert_type_address_space):
11439 Replace "parse_gdbarch" with method call.
11440 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11441 call.
11442 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11443 call.
11444 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11445 "parse_gdbarch" with method call.
11446 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11447 with method call.
11448 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11449 "parse_gdbarch" with method call.
11450 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11451 "parse_gdbarch" with method call.
11452 * c-exp.y (parse_type, parse_number, classify_name): Replace
11453 "parse_gdbarch" with method call.
11454 * ada-lex.l: Replace "parse_gdbarch" with method call.
11455 * ada-exp.y (parse_type, find_primitive_type, type_char)
11456 (type_system_address): Replace "parse_gdbarch" with method call.
11457
11458 2019-04-04 Tom Tromey <tom@tromey.com>
11459
11460 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11461 * stap-probe.c (stap_parse_argument): Update.
11462 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11463 initial_size parameter.
11464 * rust-exp.y (rust_lex_tests): Update.
11465 * parse.c (parser_state): Update.
11466 (parse_exp_in_context): Update.
11467 * parser-defs.h (struct parser_state) <parser_state>: Remove
11468 "initial_size" parameter.
11469
11470 2019-04-04 Tom Tromey <tom@tromey.com>
11471
11472 * parser-defs.h (increase_expout_size): Don't declare.
11473 * parse.c (increase_expout_size): Now static.
11474
11475 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11476
11477 * gnu-nat.c (gnu_nat_target::wait): Fix
11478 target_waitstatus_to_string call.
11479
11480 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * eval.c (evaluate_subexp_standard): Handle internal functions
11483 during Fortran function call handling.
11484
11485 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11486
11487 * NEWS: Mention new internal functions.
11488 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11489 (read_base_type): Use dwarf2_init_complex_target_type.
11490 * value.c (creal_internal_fn): New function.
11491 (cimag_internal_fn): New function.
11492 (_initialize_values): Register new internal functions.
11493
11494 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11495
11496 * infrun.c (stop_all_threads): If debug_infrun, always
11497 trace the wait status after wait_one, using
11498 target_waitstatus_to_string and target_pid_to_str.
11499 (handle_inferior_event): Replace various trace of
11500 wait status kind by a single trace.
11501 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11502 wait status kind image by target_waitstatus_to_string.
11503 * target/waitstatus.c (target_waitstatus_to_string): Fix
11504 obsolete comment.
11505
11506 2019-04-01 Tom Tromey <tromey@adacore.com>
11507
11508 PR symtab/23331:
11509 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11510
11511 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11512 Pedro Alves <palves@redhat.com>
11513
11514 * top.c (quit_force): Call 'finalize_values'.
11515 * value.c (finalize_values): New function.
11516 * value.h (finalize_values): Declare.
11517
11518 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11519
11520 * NEWS: Announce $_gdb_major and $_gdb_minor.
11521
11522 * top.c (init_gdb_version_vars): New function.
11523 (gdb_init): Call init_gdb_version_vars.
11524
11525 2019-03-29 Tom Tromey <tromey@adacore.com>
11526
11527 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11528 help text. Remove dead code.
11529
11530 2019-03-29 Keith Seitz <keiths@redhat.com>
11531
11532 From Siddhesh Poyarekar:
11533 * f-lang.h (f77_get_upperbound): Return LONGEST.
11534 (f77_get_lowerbound): Likewise.
11535 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11536 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11537 print them.
11538 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11539 plongest to format print it.
11540 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11541 (f77_get_upperbound): Likewise.
11542 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11543 LOWER_BOUND to LONGEST.
11544 (f77_create_arrayprint_offset_tbl): Likewise.
11545
11546 2019-03-29 Keith Seitz <keiths@redhat.com>
11547
11548 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11549 %s/pulongest for TYPE_LENGTH instead of %d in format
11550 strings.
11551 * ada-typerint.c (ada_print_type): Likewise.
11552 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11553 * compile/compile-c-support.c (generate_register_struct): Likewise.
11554 * gdbtypes.c (recursive_dump_type): Likewise.
11555 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11556 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11557 instead of %d in format strings.
11558 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11559 to std::min to ULONGEST.
11560 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11561 instead of %d in format strings.
11562 * tracepoint.c (info_scope_command): Likewise.
11563 * typeprint.c (print_offset_data::update)
11564 (print_offset_data::finish): Likewise.
11565 * xtensa-tdep.c (xtensa_store_return_value)
11566 (xtensa_push_dummy_call): Likewise.
11567
11568 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11569
11570 * windows-nat.c (display_selector): Fixed format specifications
11571 for 64-bit Cygwin.
11572
11573 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11574
11575 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11576
11577 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11578
11579 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11580 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11581 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11582 (nios2_linux_init_abi): Install it.
11583
11584 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11585
11586 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11587
11588 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11589
11590 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11591
11592 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11593 Tom Tromey <tromey@adacore.com>
11594
11595 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11596
11597 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11598
11599 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11600 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11601 method to compute the bounds of range types. Also print "[evaluated]"
11602 if the bounds' values come from a dynamic evaluation.
11603
11604 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11605
11606 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11607 whitespace when pretty printing is on.
11608
11609 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11610
11611 * ppc-linux-nat.c: Add include.
11612
11613 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11614
11615 * NEWS: Mention AArch64 Pointer Authentication.
11616
11617 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11618
11619 * arm-linux-nat.c: Add include.
11620
11621 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11622
11623 * source-cache.c (source_cache::get_source_lines): Re-read
11624 fullname after calling open_source_file.
11625
11626 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11627
11628 * NEWS: Mention TLS support for FreeBSD.
11629
11630 2019-03-25 Tom Tromey <tromey@adacore.com>
11631
11632 * minsyms.c (BUNCH_SIZE): Update comment.
11633 (~minimal_symbol_reader): Remove old comment.
11634 (compact_minimal_symbols): Update comment.
11635 (minimal_symbol_reader::install): Remove old comment. Update
11636 other comments.
11637
11638 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11639
11640 * s390-linux-nat.c: Add include.
11641
11642 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11643
11644 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11645 Call linux_get_hwcap.
11646 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11647 Likewise.
11648 (aarch64_linux_get_hwcap): Remove function.
11649 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11650 declaration.
11651 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11652 linux_get_hwcap.
11653 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11654 * linux-tdep.c (linux_get_hwcap): Add function.
11655 (linux_get_hwcap2): Likewise.
11656 * linux-tdep.h (linux_get_hwcap): Add declaration.
11657 (linux_get_hwcap2): Likewise.
11658 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11659 (ppc_linux_get_hwcap2): Likewise.
11660 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11661 linux_get_hwcap.
11662 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11663 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11664 (ppc_linux_nat_target::read_description): Likewise.
11665 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11666 * s390-linux-nat.c: Likewise.
11667 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11668
11669 2019-03-24 Tom Tromey <tom@tromey.com>
11670
11671 * ada-lang.c (standard_lookup): Simplify initialization.
11672 (ada_lookup_symbol_nonlocal): Simplify return.
11673 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11674 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11675 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11676 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11677 initialization.
11678 * solib.c (solib_global_lookup): Simplify.
11679 * symtab.c (null_block_symbol): Remove.
11680 (symbol_cache_lookup): Simplify returns.
11681 (lookup_language_this): Simplify returns.
11682 (lookup_symbol_aux): Simplify return.
11683 (lookup_local_symbol): Simplify returns.
11684 (lookup_global_symbol_from_objfile): Simplify return.
11685 (lookup_symbol_in_objfile_symtabs)
11686 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11687 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11688 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11689 * cp-namespace.c (cp_lookup_bare_symbol)
11690 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11691 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11692 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11693 (cp_lookup_symbol_via_imports): Simplify initialization.
11694 (find_symbol_in_baseclass): Likewise.
11695 * symtab.h (null_block_symbol): Remove.
11696 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11697 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11698 (d_lookup_symbol_module): Likewise.
11699 (find_symbol_in_baseclass): Simplify initialization.
11700
11701 2019-03-24 Tom Tromey <tom@tromey.com>
11702
11703 * expression.h: Don't include symtab.h.
11704 (struct block): Forward declare.
11705
11706 2019-03-24 Tom Tromey <tom@tromey.com>
11707
11708 * c-exp.y (typebase): Remove casts.
11709 * gdbtypes.c (lookup_unsigned_typename, )
11710 (lookup_signed_typename): Remove cast.
11711 * eval.c (parse_to_comma_and_eval): Remove cast.
11712 * parse.c (write_dollar_variable): Remove cast.
11713 * block.h (struct block) <superblock>: Now const.
11714 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11715 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11716 (map_block): Make "block" const.
11717 * symfile.h (struct quick_symbol_functions)
11718 <map_matching_symbols>: Constify block argument to "callback".
11719 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11720 const.
11721 (find_pc_sect_compunit_symtab): Make "b" const.
11722 (find_symbol_at_address): Likewise.
11723 (search_symbols): Likewise.
11724 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11725 (dw2_debug_names_lookup_symbol): Likewise.
11726 (dw2_map_matching_symbols): Update.
11727 * p-valprint.c (pascal_val_print): Remove "block".
11728 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11729 (aux_add_nonlocal_symbols): Make "block" const.
11730 (resolve_subexp): Remove cast.
11731 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11732 const.
11733 (iterate_over_file_blocks): Likewise.
11734 * f-exp.y (%union) <bval>: Remove.
11735 * coffread.c (patch_opaque_types): Make "b" const.
11736 * spu-tdep.c (spu_catch_start): Make "block" const.
11737 * c-valprint.c (print_unpacked_pointer): Remove "block".
11738 * symmisc.c (dump_symtab_1): Make "b" const.
11739 (block_depth): Make "block" const.
11740 * d-exp.y (%union) <bval>: Remove.
11741 * cp-support.h (cp_lookup_rtti_type): Update.
11742 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11743 * psymtab.c (psym_lookup_symbol): Make "block" const.
11744 (maintenance_check_psymtabs): Make "b" const.
11745 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11746 (enumerate_locals, enumerate_args): Update.
11747 * python/py-symtab.c (stpy_global_block): Make "block" const.
11748 (stpy_static_block): Likewise.
11749 * inline-frame.c (block_starting_point_at): Make "new_block"
11750 const.
11751 * block.c (find_block_in_blockvector): Make return type const.
11752 (blockvector_for_pc_sect): Make "b" const.
11753 (find_block_in_blockvector): Make "b" const.
11754
11755 2019-03-23 Tom Tromey <tom@tromey.com>
11756
11757 * varobj.c (varobj_create): Update.
11758 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11759 * printcmd.c (display_command, do_one_display): Don't reset
11760 innermost_block.
11761 * parser-defs.h (enum innermost_block_tracker_type): Move to
11762 expression.h.
11763 (innermost_block): Update comment.
11764 * parse.c (parse_exp_1): Add tracker_types parameter.
11765 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11766 tracker_types parameter. Reset innermost_block.
11767 (parse_exp_in_context): Remove.
11768 (parse_expression_for_completion): Update.
11769 * objfiles.c (~objfile): Don't reset expression_context_block or
11770 innermost_block.
11771 * expression.h (enum innermost_block_tracker_type): Move from
11772 parser-defs.h.
11773 (parse_exp_1): Add tracker_types parameter.
11774 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11775 reset innermost_block.
11776
11777 2019-03-23 Tom Tromey <tom@tromey.com>
11778
11779 * objfiles.h: Include bcache.h.
11780
11781 2019-03-23 Tom Tromey <tom@tromey.com>
11782
11783 * linespec.c (get_current_search_block): Use
11784 scoped_restore_current_language.
11785 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11786
11787 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11788 Jiong Wang <jiong.wang@arm.com>
11789
11790 * aarch64-linux-tdep.c
11791 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11792 section.
11793 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11794
11795 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11796 Jiong Wang <jiong.wang@arm.com>
11797
11798 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11799 instructions.
11800 (aarch64_analyze_prologue_test): Add PACIASP test.
11801 (aarch64_prologue_prev_register): Unmask PC value.
11802
11803 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11804 Jiong Wang <jiong.wang@arm.com>
11805
11806 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11807 (aarch64_dwarf2_prev_register): Unmask PC value.
11808 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11809 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11810 DW_CFA_AARCH64_negate_ra_state.
11811 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11812
11813 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11814 Jiong Wang <jiong.wang@arm.com>
11815
11816 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11817 registers.
11818 (aarch64_pseudo_register_name): Likewise.
11819 (aarch64_pseudo_register_type): Likewise.
11820 (aarch64_pseudo_register_reggroup_p): Likewise.
11821 (aarch64_gdbarch_init): Add pauth registers.
11822 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11823 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11824 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11825 (struct gdbarch_tdep): Add regnum for ra_state.
11826
11827 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11828 Jiong Wang <jiong.wang@arm.com>
11829
11830 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11831
11832 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11833 Jiong Wang <jiong.wang@arm.com>
11834
11835 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11836 function.
11837 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11838 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11839 (aarch64_gdbarch_init): Add puth registers.
11840 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11841 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11842 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11843
11844 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11845 Jiong Wang <jiong.wang@arm.com>
11846
11847 * aarch64-linux-nat.c
11848 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11849 * aarch64-linux-tdep.c
11850 (aarch64_linux_core_read_description): Likewise.
11851 (aarch64_linux_get_hwcap): New function.
11852 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11853 (aarch64_linux_get_hwcap): New declaration.
11854
11855 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11856 Jiong Wang <jiong.wang@arm.com>
11857
11858 * aarch64-linux-nat.c
11859 (aarch64_linux_nat_target::read_description): Add pauth param.
11860 * aarch64-linux-tdep.c
11861 (aarch64_linux_core_read_description): Likewise.
11862 * aarch64-tdep.c (struct target_desc): Add in pauth.
11863 (aarch64_read_description): Add pauth param.
11864 (aarch64_gdbarch_init): Likewise.
11865 * aarch64-tdep.h (aarch64_read_description): Likewise.
11866 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11867 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11868 * features/Makefile: Add new files.
11869 * features/aarch64-pauth.c: New file.
11870 * features/aarch64-pauth.xml: New file.
11871
11872 2019-03-20 Tom Tromey <tromey@adacore.com>
11873
11874 * infrun.c (handle_inferior_event): Rename from
11875 handle_inferior_event_1. Create a scoped_value_mark.
11876 (handle_inferior_event): Remove.
11877
11878 2019-03-19 Tom Tromey <tromey@adacore.com>
11879
11880 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11881 * infrun.h (print_stop_event): Add "displays" parameter.
11882 * infrun.c (print_stop_event): Add "displays" parameter.
11883
11884 2019-03-19 Pedro Alves <palves@redhat.com>
11885
11886 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11887 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11888 to -1. Fix TABs vs spaces.
11889 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11890 * tui/tui-out.h (tui_ui_out) Add intro comments.
11891 <m_line, m_start_of_line>: In-class initialize, and add describing
11892 comment.
11893
11894 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11895
11896 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11897 variable names.
11898 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11899
11900 2019-03-18 Pedro Alves <palves@redhat.com>
11901 Eli Zaretskii <eliz@gnu.org>
11902
11903 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11904 m_line and m_start_of_line.
11905
11906 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11907
11908 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11909 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11910 it returns a newline. This fixes a regression in TU mode, whereby
11911 the next line is output on the same screen line as the user input.
11912
11913 2019-03-18 Tom Tromey <tromey@adacore.com>
11914
11915 * minsyms.c (minimal_symbol_reader::install): Remove call to
11916 obstack_blank.
11917
11918 2019-03-18 Pedro Alves <palves@redhat.com>
11919
11920 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11921 New globals.
11922 (apply_style): New, factored out from ...
11923 (apply_ansi_escape): ... this. Handle reverse video mode.
11924 (tui_set_reverse_mode): New function.
11925 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11926 * tui/tui-winsource.c (tui_show_source_line): Use
11927 tui_set_reverse_mode instead of setting A_STANDOUT.
11928 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11929 New setter methods.
11930
11931 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11932
11933 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11934 Handle tabs.
11935
11936 2019-03-18 Tom Tromey <tromey@adacore.com>
11937
11938 * ada-lang.c (empty_array): Add "high" parameter.
11939 (ada_evaluate_subexp): Update.
11940
11941 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11942
11943 * unittests/string_view-selftests.c: Define
11944 _initialize_string_view_selftests unconditionally.
11945
11946 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11947
11948 PR gdb/24350
11949 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11950
11951 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11952
11953 PR gdb/24351
11954 * windows-nat.c (display_selector): Fix format specifiers.
11955
11956 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11957
11958 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11959 tui_refill_source_window instead of tui_refresh_win, to update the
11960 current execution line. This fixes redisplay of the current line
11961 when stepping through the code with "next" or "step".
11962
11963 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11964
11965 * source-cache.c (source_cache::get_source_lines): Call
11966 find_source_lines to initialize s->nlines. This fixes vertical
11967 scrolling of TUI source window when the DOWN arrow is pressed.
11968
11969 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11970
11971 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11972 linux-thread-db.c (_initialize_thread_db): Likewise.
11973
11974 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11975
11976 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11977 wclrtoeol in tui_show_source_line". This reverts changes made in
11978 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11979
11980 2019-03-15 Tom Tromey <tom@tromey.com>
11981
11982 * symtab.h (struct minimal_symbol): Derive from
11983 general_symbol_info.
11984 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11985 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11986 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11987 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11988 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11989 (MSYMBOL_SEARCH_NAME): Update.
11990 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11991 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11992 * minsyms.c (minimal_symbol_reader::record_full): Update.
11993
11994 2019-03-15 Tom Tromey <tom@tromey.com>
11995
11996 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11997
11998 2019-03-15 Tom Tromey <tom@tromey.com>
11999
12000 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12001 unique_xmalloc_ptr.
12002 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12003 Update.
12004 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12005 (build_minimal_symbol_hash_tables)
12006 (minimal_symbol_reader::install): Update.
12007
12008 2019-03-15 Tom Tromey <tom@tromey.com>
12009
12010 * symtab.c (create_demangled_names_hash): Update.
12011 (symbol_set_names): Update.
12012 * objfiles.h (struct objfile_per_bfd_storage)
12013 <demangled_names_hash>: Now an htab_up.
12014 * objfiles.c (objfile_per_bfd_storage): Simplify.
12015
12016 2019-03-15 Tom Tromey <tom@tromey.com>
12017
12018 * objfiles.h (struct objfile_per_bfd_storage): Declare
12019 destructor.
12020 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12021 New.
12022 (get_objfile_bfd_data): Use new. Don't initialize
12023 language_of_main.
12024 (free_objfile_per_bfd_storage): Remove.
12025 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12026
12027 2019-03-15 Tom Tromey <tom@tromey.com>
12028
12029 * symfile.c (reread_symbols): Update.
12030 * objfiles.c (objfile::objfile): Update.
12031 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12032 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12033 comment.
12034 (minimal_symbol_reader::install): Update.
12035 (terminate_minimal_symbol_table): Remove.
12036 * jit.c (jit_object_close_impl): Update.
12037
12038 2019-03-15 Tom Tromey <tom@tromey.com>
12039
12040 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12041 initializations.
12042
12043 2019-03-15 Tom Tromey <tom@tromey.com>
12044
12045 * objfiles.h (struct objfile_per_bfd_storage)
12046 <demangled_hash_languages>: Now a bitset.
12047 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12048 (lookup_minimal_symbol): Update.
12049
12050 2019-03-15 Tom Tromey <tom@tromey.com>
12051
12052 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12053 Don't return the symbol.
12054 * coffread.c (record_minimal_symbol): Use record_full.
12055
12056 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12057
12058 The MS-Windows port of ncurses fails to switch to a color pair if
12059 one or both of the colors are the implicit default colors. This
12060 change records the default colors when TUI is initialized, and
12061 then specifies them explicitly when a color pair uses the default
12062 colors. This allows color styling in TUI mode on MS-Windows.
12063
12064 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12065 ncurses_norm_attr.
12066 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12067 colors in ncurses_norm_attr.
12068 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12069 "none", replace it with the default color recorded in
12070 ncurses_norm_attr.
12071
12072 2019-03-14 Tom Tromey <tromey@adacore.com>
12073
12074 * source-cache.h (class source_cache) <get_source_lines>: Return
12075 std::string.
12076 * source-cache.c (source_cache::extract_lines): Handle case where
12077 first_pos==npos. Return std::string.
12078 (source_cache::get_source_lines): Update.
12079
12080 2019-03-14 Tom Tromey <tromey@adacore.com>
12081
12082 * NEWS: Add item for "style sources" commands.
12083 * source-cache.c (source_cache::get_source_lines): Check
12084 source_styling.
12085 * cli/cli-style.c (source_styling): New global.
12086 (_initialize_cli_style): Add "style sources" commands.
12087 (show_style_sources): New function.
12088 * cli/cli-style.h (source_styling): Declare.
12089
12090 2019-03-14 Pedro Alves <palves@redhat.com>
12091 Tom Tromey <tromey@adacore.com>
12092
12093 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12094 * tui/tui-winsource.c (tui_refill_source_window): New function,
12095 from...
12096 (tui_horizontal_source_scroll): ... here. Move some logic.
12097 * cli/cli-style.c (set_style_enabled): Notify new observable.
12098 * tui/tui-hooks.c (tui_redisplay_source): New function.
12099 (tui_attach_detach_observers): Attach or detach
12100 tui_redisplay_source.
12101 * observable.h (source_styling_changed): New observable.
12102 * observable.c: Define source_styling_changed observable.
12103
12104 2019-03-13 Tom Tromey <tromey@adacore.com>
12105
12106 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12107 (i386_gnu_nat_target::store_registers): Update.
12108 * target-debug.h (target_debug_print_std_string): New macro.
12109 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12110 * windows-tdep.c (display_one_tib): Update.
12111 * tui/tui-stack.c (tui_make_status_line): Update.
12112 * top.c (print_inferior_quit_action): Update.
12113 * thread.c (thr_try_catch_cmd): Update.
12114 (add_thread_with_info): Update.
12115 (thread_target_id_str): Update.
12116 (thr_try_catch_cmd): Update.
12117 (thread_command): Update.
12118 (thread_find_command): Update.
12119 * record-btrace.c (record_btrace_target::info_record)
12120 (record_btrace_resume_thread, record_btrace_target::resume)
12121 (record_btrace_cancel_resume, record_btrace_step_thread)
12122 (record_btrace_target::wait, record_btrace_target::wait)
12123 (record_btrace_target::wait, record_btrace_target::stop): Update.
12124 * progspace.c (print_program_space): Update.
12125 * process-stratum-target.c
12126 (process_stratum_target::thread_address_space): Update.
12127 * linux-fork.c (linux_fork_mourn_inferior)
12128 (detach_checkpoint_command, info_checkpoints_command)
12129 (linux_fork_context): Update.
12130 (linux_fork_detach): Update.
12131 (class scoped_switch_fork_info): Update.
12132 (delete_checkpoint_command): Update.
12133 * infrun.c (follow_fork_inferior): Update.
12134 (follow_fork_inferior): Update.
12135 (proceed_after_vfork_done): Update.
12136 (handle_vfork_child_exec_or_exit): Update.
12137 (follow_exec): Update.
12138 (displaced_step_prepare_throw): Update.
12139 (displaced_step_restore): Update.
12140 (start_step_over): Update.
12141 (resume_1): Update.
12142 (clear_proceed_status_thread): Update.
12143 (proceed): Update.
12144 (print_target_wait_results): Update.
12145 (do_target_wait): Update.
12146 (context_switch): Update.
12147 (stop_all_threads): Update.
12148 (restart_threads): Update.
12149 (finish_step_over): Update.
12150 (handle_signal_stop): Update.
12151 (switch_back_to_stepped_thread): Update.
12152 (keep_going_pass_signal): Update.
12153 (print_exited_reason): Update.
12154 (normal_stop): Update.
12155 * inferior.c (inferior_pid_to_str): Change return type.
12156 (print_selected_inferior): Update.
12157 (add_inferior): Update.
12158 (detach_inferior): Update.
12159 * dummy-frame.c (fprint_dummy_frames): Update.
12160 * dcache.c (dcache_info_1): Update.
12161 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12162 (btrace_fetch, btrace_clear): Update.
12163 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12164 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12165 type.
12166 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12167 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12168 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12169 * gdbarch.c, gdbarch.h: Rebuild.
12170 * gdbarch.sh (core_pid_to_str): Change return type.
12171 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12172 return type.
12173 (windows_nat_target::pid_to_str): Change return type.
12174 (windows_delete_thread): Update.
12175 (windows_nat_target::attach): Update.
12176 (windows_nat_target::files_info): Update.
12177 * target-delegates.c: Rebuild.
12178 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12179 return type.
12180 (sol_thread_target::pid_to_str): Change return type.
12181 * remote.c (class remote_target) <pid_to_str>: Change return
12182 type.
12183 (remote_target::pid_to_str): Change return type.
12184 (extended_remote_target::attach, remote_target::remote_stop_ns)
12185 (remote_target::remote_notif_remove_queued_reply)
12186 (remote_target::push_stop_reply, remote_target::disable_btrace):
12187 Update.
12188 (extended_remote_target::attach): Update.
12189 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12190 type.
12191 (gdbsim_target::pid_to_str): Change return type.
12192 * ravenscar-thread.c (struct ravenscar_thread_target)
12193 <pid_to_str>: Change return type.
12194 (ravenscar_thread_target::pid_to_str): Change return type.
12195 * procfs.c (class procfs_target) <pid_to_str>: Change return
12196 type.
12197 (procfs_target::pid_to_str): Change return type.
12198 (procfs_target::attach): Update.
12199 (procfs_target::detach): Update.
12200 (procfs_target::fetch_registers): Update.
12201 (procfs_target::store_registers): Update.
12202 (procfs_target::wait): Update.
12203 (procfs_target::files_info): Update.
12204 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12205 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12206 return type.
12207 (nto_procfs_target::pid_to_str): Change return type.
12208 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12209 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12210 return type.
12211 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12212 (exit_lwp): Update.
12213 (attach_proc_task_lwp_callback, get_detach_signal)
12214 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12215 (linux_nat_target::resume, wait_lwp, stop_callback)
12216 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12217 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12218 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12219 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12220 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12221 type.
12222 (inf_ptrace_target::attach): Update.
12223 (inf_ptrace_target::files_info): Update.
12224 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12225 type.
12226 (go32_nat_target::pid_to_str): Change return type.
12227 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12228 (gnu_nat_target::wait): Update.
12229 (gnu_nat_target::wait): Update.
12230 (gnu_nat_target::resume): Update.
12231 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12232 (fbsd_nat_target::wait): Update.
12233 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12234 type.
12235 (darwin_nat_target::attach): Update.
12236 * corelow.c (class core_target) <pid_to_str>: Change return type.
12237 (core_target::pid_to_str): Change return type.
12238 * target.c (normal_pid_to_str): Change return type.
12239 (default_pid_to_str): Likewise.
12240 (target_pid_to_str): Change return type.
12241 (target_translate_tls_address): Update.
12242 (target_announce_detach): Update.
12243 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12244 return type.
12245 (bsd_uthread_target::pid_to_str): Change return type.
12246 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12247 type.
12248 (bsd_kvm_target::pid_to_str): Change return type.
12249 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12250 return type.
12251 (aix_thread_target::pid_to_str): Change return type.
12252 * target.h (struct target_ops) <pid_to_str>: Change return type.
12253 (target_pid_to_str, normal_pid_to_str): Likewise.
12254 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12255 type.
12256 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12257 type.
12258 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12259 return type.
12260 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12261 type.
12262 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12263 type.
12264 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12265 return type.
12266
12267 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12268
12269 * NEWS: Mention that the new default MI version is 3. Mention
12270 changes to the output of commands and events that deal with
12271 multi-location breakpoints.
12272 * breakpoint.c: Include "mi/mi-out.h".
12273 (print_one_breakpoint): Change output syntax if using MI version
12274 >= 3.
12275 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12276 New.
12277 (mi_multi_location_breakpoint_output_fixed): New.
12278 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12279 (mi_cmd_fix_multi_location_breakpoint_output): New.
12280 (mi_multi_location_breakpoint_output_fixed): New.
12281 * mi/mi-cmds.c (mi_cmds): Register command
12282 -fix-multi-location-breakpoint-output.
12283 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12284 interpreter "mi".
12285
12286 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12287
12288 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12289 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12290 instantiate mi_ui_out based on interpreter name.
12291 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12292 * mi/mi-main.c (mi_load_progress): Likewise.
12293
12294 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12295
12296 * NEWS: Combine separate "New targets" sections for 8.3.
12297
12298 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12299
12300 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12301 (ppcfbsd_init_abi): Install gdbarch
12302 "fetch_tls_load_module_address" and "get_thread_local_address"
12303 methods.
12304
12305 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12306
12307 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12308 (riscv_fbsd_init_abi): Install gdbarch
12309 "fetch_tls_load_module_address" and "get_thread_local_address"
12310 methods.
12311
12312 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12313
12314 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12315 (i386fbsd_init_abi): Install gdbarch
12316 "fetch_tls_load_module_address" and "get_thread_local_address"
12317 methods.
12318
12319 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12320
12321 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12322 (amd64fbsd_init_abi): Install gdbarch
12323 "fetch_tls_load_module_address" and "get_thread_local_address"
12324 methods.
12325
12326 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12327
12328 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12329 (struct fbsd_pspace_data): New type.
12330 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12331 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12332 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12333 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12334 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12335
12336 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12337
12338 * gdbtypes.c (lookup_struct_elt): New function.
12339 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12340 * gdbtypes.h (struct struct_elt): New type.
12341 (lookup_struct_elt): New prototype.
12342
12343 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12344
12345 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12346 remove disabled code block.
12347
12348 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12349
12350 * gdbarch.sh (get_thread_local_address): New method.
12351 * gdbarch.h, gdbarch.c: Regenerate.
12352 * target.c (target_translate_tls_address): Use
12353 gdbarch_get_thread_local_address if present instead of
12354 target::get_thread_local_address.
12355
12356 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12357
12358 * target.h (target::get_thread_local_address): Update comment.
12359
12360 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12361
12362 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12363 objfile->separate_debug_objfile_backlink if not NULL.
12364
12365 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12366
12367 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12368 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12369 (amd64bsd_store_inferior_registers): Likewise.
12370 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12371 Enable segment base registers.
12372 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12373 PT_GETFSBASE and PT_GETGSBASE.
12374 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12375 PT_SETGSBASE.
12376 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12377 segment base registers.
12378 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12379
12380 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12381
12382 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12383 Update calls to i386_target_description to add 'segments'
12384 parameter.
12385 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12386 add segment base registers.
12387 * arch/i386.c (i386_create_target_description): Add 'segments'
12388 parameter to enable segment base registers.
12389 * arch/i386.h (i386_create_target_description): Likewise.
12390 * features/i386/32bit-segments.xml: New file.
12391 * features/i386/32bit-segments.c: Generate.
12392 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12393 call to i386_target_description to add 'segments' parameter.
12394 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12395 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12396 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12397 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12398 if feature is present.
12399 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12400 Add 'segments' parameter to call to i386_target_description.
12401 (i386_target_description): Add 'segments' parameter to enable
12402 segment base registers.
12403 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12404 to call to i386_target_description.
12405 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12406 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12407 Define I386_NUM_REGS.
12408 (i386_target_description): Add 'segments' parameter to enable
12409 segment base registers.
12410
12411 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12412
12413 PR/24325
12414 * source-cache.c: #undef open and close, to avoid unresolved
12415 externals during linking.
12416
12417 2019-03-12 Tom Tromey <tromey@adacore.com>
12418
12419 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12420 const. Add initializers.
12421 (_initialize_remote): Don't initialize ptid globals.
12422
12423 2019-03-12 Pedro Alves <palves@redhat.com>
12424
12425 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12426
12427 2019-03-12 Pedro Alves <palves@redhat.com>
12428
12429 * cp-name-parser.y (main): Remove unused 'len' variable.
12430
12431 2019-03-12 Tom Tromey <tromey@adacore.com>
12432
12433 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12434 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12435
12436 2019-03-12 Tom Tromey <tromey@adacore.com>
12437
12438 * linux-nat.c (iterate_over_lwps): Update.
12439 (stop_callback): Remove parameter.
12440 (stop_wait_callback, detach_callback, resume_set_callback)
12441 (select_singlestep_lwp_callback, set_ignore_sigint)
12442 (status_callback, resumed_callback, resume_clear_callback)
12443 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12444 data parameter.
12445 (linux_nat_target::detach, linux_nat_target::resume)
12446 (linux_stop_and_wait_all_lwps, select_event_lwp)
12447 (linux_nat_filter_event, linux_nat_wait_1)
12448 (linux_nat_target::kill, linux_nat_target::stop)
12449 (linux_nat_target::stop): Update.
12450 (linux_nat_resume_callback): Change type.
12451 (resume_stopped_resumed_lwps, count_events_callback)
12452 (select_event_lwp_callback): Likewise.
12453 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12454 * arm-linux-nat.c (struct update_registers_data): Remove.
12455 (update_registers_callback): Change type.
12456 (arm_linux_insert_hw_breakpoint1): Update.
12457 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12458 parameter.
12459 (x86_linux_dr_set_addr): Update.
12460 (x86_linux_dr_set_control): Update.
12461 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12462 (iterate_over_lwps): Use gdb::function_view.
12463 * nat/aarch64-linux-hw-point.c (struct
12464 aarch64_dr_update_callback_param): Remove.
12465 (debug_reg_change_callback): Change type.
12466 (aarch64_notify_debug_reg_change): Update.
12467 * s390-linux-nat.c (s390_refresh_per_info): Update.
12468
12469 2019-03-11 Tom Tromey <tromey@adacore.com>
12470
12471 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12472 redundant assignment to "this_cu".
12473
12474 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12475
12476 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12477
12478 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12479
12480 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12481 from...
12482 (rank_one_type): ... this.
12483
12484 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12487 from...
12488 (rank_one_type): ... this.
12489
12490 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12491
12492 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12493 from...
12494 (rank_one_type): ... this.
12495
12496 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12497
12498 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12499 from...
12500 (rank_one_type): ... this.
12501
12502 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12503
12504 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12505 from...
12506 (rank_one_type): ... this.
12507
12508 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12509
12510 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12511 from...
12512 (rank_one_type): ... this.
12513
12514 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12515
12516 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12517 from...
12518 (rank_one_type): ... this.
12519
12520 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12521
12522 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12523 from...
12524 (rank_one_type): ... this.
12525
12526 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12529 from...
12530 (rank_one_type): ... this.
12531
12532 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12533
12534 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12535 from...
12536 (rank_one_type): ... this.
12537
12538 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12539
12540 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12541 from...
12542 (rank_one_type): ... this.
12543
12544 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12545
12546 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12547 from...
12548 (rank_one_type): ... this.
12549
12550 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12551
12552 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12553 inferior-events' shows the example events.
12554
12555 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12556
12557 Support styling on native MS-Windows console
12558
12559 PR/24315
12560 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12561 on MS-Windows if $TERM is not defined.
12562
12563 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12564
12565 * posix-hdep.c (gdb_console_fputs):
12566 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12567 functions.
12568 * ui-file.h (gdb_console_fputs): Add prototype.
12569
12570 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12571 back to fputs only if the former returns zero.
12572
12573 2019-03-07 Tom Tromey <tom@tromey.com>
12574
12575 * symmisc.c (print_symbol_bcache_statistics): Update.
12576 (print_objfile_statistics): Update.
12577 * symfile.c (allocate_symtab): Update.
12578 * stabsread.c: Don't include bcache.h.
12579 * psymtab.h (struct psymbol_bcache): Don't declare.
12580 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12581 (psymbol_bcache_init, psymbol_bcache_free)
12582 (psymbol_bcache_get_bcache): Don't declare.
12583 * psymtab.c (struct psymbol_bcache): Remove.
12584 (psymtab_storage::psymtab_storage): Update.
12585 (psymtab_storage::~psymtab_storage): Update.
12586 (psymbol_bcache_init, psymbol_bcache_free)
12587 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12588 (add_psymbol_to_bcache): Update.
12589 (allocate_psymtab): Update.
12590 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12591 macro_cache>: No longer pointers.
12592 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12593 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12594 * macrotab.c (macro_bcache): Update.
12595 * macroexp.c: Don't include bcache.h.
12596 * gdbtypes.c (check_types_worklist): Update.
12597 (types_deeply_equal): Remove TRY/CATCH. Update.
12598 * elfread.c (elf_symtab_read): Update.
12599 * dwarf2read.c: Don't include bcache.h.
12600 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12601 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12602 (print_bcache_statistics, bcache_memory_used): Don't declare.
12603 (struct bcache): Move from bcache.c. Add constructor, destructor,
12604 methods. Rename all data members.
12605 * bcache.c (struct bcache): Move to bcache.h.
12606 (bcache::expand_hash_table): Rename from expand_hash_table.
12607 (bcache): Remove.
12608 (bcache::insert): Rename from bcache_full.
12609 (bcache::compare): Rename from bcache_compare.
12610 (bcache_xmalloc): Remove.
12611 (bcache::~bcache): Rename from bcache_xfree.
12612 (bcache::print_statistics): Rename from print_bcache_statistics.
12613 (bcache::memory_used): Rename from bcache_memory_used.
12614
12615 2019-03-07 Pedro Alves <palves@redhat.com>
12616
12617 * infrun.c (normal_stop): Also check for
12618 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12619
12620 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12621
12622 * f-lang.c (value_from_host_double): Moved to...
12623 * value.c (value_from_host_double): ...here.
12624 * value.h (value_from_host_double): Declare.
12625 * guile/scm-math.c (vlscm_convert_typed_number): Use
12626 value_from_host_double.
12627 (vlscm_convert_number): Likewise.
12628 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12629 * python/py-value.c (convert_value_from_python): Likewise.
12630
12631 2019-03-06 Tom Tromey <tom@tromey.com>
12632
12633 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12634
12635 2019-03-06 Tom Tromey <tom@tromey.com>
12636
12637 * utils.h (free_current_contents): Don't declare.
12638 * utils.c (free_current_contents): Remove.
12639
12640 2019-03-06 Tom Tromey <tom@tromey.com>
12641
12642 * top.c (quit_force): Update.
12643 * main.c (captured_command_loop): Update.
12644 * common/new-op.c (operator new): Update.
12645 * common/common-exceptions.c (struct catcher)
12646 <save_cleanup_chain>: Remove member.
12647 (exceptions_state_mc_init): Update.
12648 (exception_try_scope_entry): Return nullptr.
12649 (exception_try_scope_exit, exception_rethrow)
12650 (throw_exception_sjlj, throw_exception_cxx): Update.
12651 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12652 (all_cleanups, do_cleanups, discard_cleanups)
12653 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12654 (restore_cleanups, restore_final_cleanups): Don't declare.
12655 (do_final_cleanups): Remove parameter.
12656 * common/cleanups.c (cleanup_chain, make_cleanup)
12657 (make_cleanup_dtor, all_cleanups, do_cleanups)
12658 (discard_my_cleanups, discard_cleanups)
12659 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12660 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12661 (null_cleanup): Remove.
12662 (do_final_cleanups): Remove parameter.
12663
12664 2019-03-06 Tom Tromey <tom@tromey.com>
12665
12666 * remote.c (remote_target::remote_parse_stop_reply): Use
12667 unique_xmalloc_ptr.
12668
12669 2019-03-06 Tom Tromey <tom@tromey.com>
12670
12671 * stabsread.c (struct stabs_field_info): Rename from field_info.
12672 <list, fnlist>: Add initializers.
12673 <obstack>: New member.
12674 (read_member_functions, read_struct_fields, read_baseclasses):
12675 Allocate on obstack. Don't use cleanups.
12676 (read_one_struct_field, read_member_functions, read_struct_fields)
12677 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12678 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12679 (read_struct_type): Update.
12680
12681 2019-03-06 Tom Tromey <tom@tromey.com>
12682
12683 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12684 * common/filestuff.h (make_cleanup_close): Don't declare.
12685 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12686 Remove.
12687
12688 2019-03-06 Tom Tromey <tom@tromey.com>
12689
12690 * solib-aix.c: Use make_scope_exit.
12691
12692 2019-03-06 Tom Tromey <tom@tromey.com>
12693
12694 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12695 Use make_scope_exit.
12696
12697 2019-03-06 Tom Tromey <tom@tromey.com>
12698
12699 * solib-svr4.c (disable_probes_interface): Remove parameter.
12700 (svr4_handle_solib_event): Use make_scope_exit.
12701
12702 2019-03-06 Tom Tromey <tom@tromey.com>
12703
12704 * remote.c (struct stop_reply_deleter): Remove.
12705 (stop_reply_up): Update.
12706 (struct stop_reply): Derive from notif_event. Don't typedef.
12707 <regcache>: Now a std::vector.
12708 (stop_reply_xfree): Remove.
12709 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12710 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12711 (remote_target::discard_pending_stop_replies): Use delete.
12712 (remote_target::remote_parse_stop_reply): Update.
12713 (remote_target::process_stop_reply): Update.
12714 * remote-notif.h (struct notif_event): Add virtual destructor.
12715 Remove "dtr" member.
12716 (struct notif_client) <alloc_event>: Return a unique_ptr.
12717 (notif_event_xfree): Don't declare.
12718 (notif_event_up): New typedef.
12719 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12720 (notif_event_xfree, do_notif_event_xfree): Remove.
12721 (remote_notif_state_xfree): Update.
12722
12723 2019-03-06 Tom Tromey <tom@tromey.com>
12724
12725 * infrun.c (displaced_step_clear_cleanup): Now a
12726 forward_scope_exit type.
12727 (displaced_step_prepare_throw): Update.
12728 (displaced_step_fixup): Update.
12729
12730 2019-03-06 Tom Tromey <tom@tromey.com>
12731
12732 * inferior.h (class inferior): Update comment.
12733 * gdbthread.h (class thread_info): Update comment.
12734
12735 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12736 Tom Tromey <tom@tromey.com>
12737
12738 * stabsread.h (struct stab_section_list): Remove.
12739 (coffstab_build_psymtabs): Update.
12740 * dbxread.c (symbuf_sections): Now a std::vector.
12741 (sect_idx): New global.
12742 (fill_symbuf): Update.
12743 (coffstab_build_psymtabs): Change type of stabsects parameter.
12744 Update.
12745 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12746 std::vector.
12747 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12748 (coff_locate_sections): Update.
12749 (coff_symfile_read): Remove cleanups. Update.
12750 (init_stringtab): Add storage parameter.
12751 (free_stringtab, free_stringtab_cleanup): Remove.
12752 (init_lineno): Add storage parameter.
12753 (free_linetab, free_linetab_cleanup): Remove.
12754
12755 2019-03-06 Pedro Alves <palves@redhat.com>
12756
12757 * linux-fork.c (fork_info::clobber_regs): Delete.
12758 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12759 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12760 comment. Adjust.
12761 (scoped_switch_fork_info::scoped_switch_fork_info)
12762 (checkpoint_command, linux_fork_context): Adjust
12763 fork_save_infrun_state calls.
12764
12765 2019-03-06 Pedro Alves <palves@redhat.com>
12766
12767 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12768 (inf_has_multiple_threads): Return 'bool' and rewrite using
12769 inferior_info::threads().
12770
12771 2019-03-06 Pedro Alves <palves@redhat.com>
12772
12773 * linux-fork.c: Include <list>.
12774 (fork_list): Now a std::list instance.
12775 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12776 (forks_exist_p, find_last_fork): Adjust.
12777 (new_fork): Delete.
12778 (one_fork_p): New.
12779 (add_fork): Adjust.
12780 (free_fork): Delete, folded into fork_info::~fork_info().
12781 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12782 Adjust.
12783 (init_fork_list): Delete.
12784 (linux_fork_killall, linux_fork_mourn_inferior)
12785 (linux_fork_detach, info_checkpoints_command): Adjust.
12786 (_initialize_linux_fork): No longer call init_fork_list.
12787
12788 2019-03-06 Pedro Alves <palves@redhat.com>
12789
12790 * linux-fork.c (new_fork): New, split out of ...
12791 (add_fork): ... this. Return void. Move "first fork" special
12792 case from here, to ...
12793 (checkpoint_command): ... here.
12794 * linux-linux.h (add_fork): Return void.
12795
12796 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12797
12798 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12799
12800 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12801 Chris January <chris.january@arm.com>
12802 David Lecomber <david.lecomber@arm.com>
12803
12804 * f-exp.y: New token, UNOP_INTRINSIC.
12805 (exp): New pattern using UNOP_INTRINSIC token.
12806 (f77_keywords): Add 'abs' keyword.
12807 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12808 (value_from_host_double): New function.
12809 (evaluate_subexp_f): Support UNOP_ABS.
12810
12811 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12812
12813 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12814 types.
12815
12816 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12817
12818 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12819 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12820 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12821
12822 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12823
12824 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12825
12826 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12827 Chris January <chris.january@arm.com>
12828
12829 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12830 * f-exp.y: Define 'KIND' token.
12831 (exp): New pattern for KIND expressions.
12832 (ptype): Handle types with a kind extension.
12833 (direct_abs_decl): Extend to spot kind extensions.
12834 (f77_keywords): Add 'kind' to the list.
12835 (push_kind_type): New function.
12836 (convert_to_kind_type): New function.
12837 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12838 * parse.c (operator_length_standard): Likewise.
12839 * parser-defs.h (enum type_pieces): Add tp_kind.
12840 * std-operator.def: Add UNOP_KIND.
12841
12842 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12843
12844 * f-exp.y (f_parse): Set yydebug.
12845
12846 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12847
12848 * f-lang.c (evaluate_subexp_f): New function.
12849 (exp_descriptor_f): New global.
12850 (f_language_defn): Use exp_descriptor_f instead of
12851 exp_descriptor_standard.
12852
12853 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12854
12855 * f-exp.y (struct token): Add comments.
12856 (dot_ops): Remove uppercase versions and the end marker.
12857 (f77_keywords): Likewise.
12858 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12859 entries in the dot_ops array are case insensitive, and use
12860 strncasecmp to compare strings. Also some whitespace cleanup in
12861 this area. Similar for the f77_keywords array, except entries in
12862 this list might be case sensitive.
12863
12864 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12865
12866 * f-exp.y (struct f77_boolean_val): Add comments.
12867 (boolean_values): Remove uppercase versions, and end marker.
12868 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12869 and use strncasecmp to achieve case insensitivity. Additionally,
12870 perform whitespace cleanup around this code.
12871
12872 2019-03-06 Tom Tromey <tromey@adacore.com>
12873
12874 * remote-sim.c (gdbsim_target_open): Use result of
12875 gdb_argv::release.
12876
12877 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12878 Dirk Schubert <dirk.schubert@arm.com>
12879 Chris January <chris.january@arm.com>
12880
12881 * eval.c (evaluate_subexp_standard): Call Fortran argument
12882 wrapping logic.
12883 * f-lang.c (struct value): A value which can be passed into a
12884 Fortran function call.
12885 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12886 where appropriate.
12887 (struct type): Value ready for a Fortran function call.
12888 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12889 is needed.
12890 * f-lang.h (fortran_argument_convert): Declaration.
12891 (fortran_preserve_arg_pointer): Declaration.
12892 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12893
12894 2019-03-05 Tom Tromey <tromey@adacore.com>
12895
12896 * python/py-prettyprint.c (print_string_repr): Remove #if.
12897 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12898
12899 2019-03-05 Tom Tromey <tromey@adacore.com>
12900
12901 * target.c (the_dummy_target): Move later. Change type to
12902 "dummy_target".
12903 (initialize_targets): Don't initialize the_dummy_target.
12904
12905 2019-03-05 Tom Tromey <tromey@adacore.com>
12906
12907 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12908 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12909
12910 2019-03-05 Tom Tromey <tromey@adacore.com>
12911
12912 * windows-nat.c (windows_nat_target::attach)
12913 (windows_nat_target::detach): Don't call gdb_flush.
12914 * valprint.c (generic_val_print, val_print, val_print_string):
12915 Don't call gdb_flush.
12916 * utils.c (defaulted_query): Don't call gdb_flush.
12917 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12918 * target.c (target_announce_detach): Don't call gdb_flush.
12919 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12920 * remote.c (extended_remote_target::attach): Don't call
12921 gdb_flush.
12922 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12923 * printcmd.c (do_examine): Don't call gdb_flush.
12924 (info_display_command): Don't call gdb_flush.
12925 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12926 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12927 * memattr.c (info_mem_command): Don't call gdb_flush.
12928 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12929 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12930 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12931 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12932 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12933 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12934 (gnu_nat_target::detach): Don't call gdb_flush.
12935 * f-valprint.c (f_val_print): Don't call gdb_flush.
12936 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12937 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12938 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12939 gdb_flush.
12940 * c-valprint.c (c_val_print): Don't call gdb_flush.
12941 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12942
12943 2019-03-05 Tom Tromey <tromey@adacore.com>
12944
12945 * varobj.c (update_dynamic_varobj_children): Update.
12946 (install_default_visualizer): Use reset, not release.
12947 * value.c (set_internalvar): Update.
12948 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12949 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12950 ATTRIBUTE_UNUSED_RESULT.
12951
12952 2019-03-05 Tom Tromey <tromey@adacore.com>
12953
12954 * remote.c (class scoped_remote_fd) <release>: Add
12955 ATTRIBUTE_UNUSED_RESULT.
12956
12957 2019-03-05 Tom Tromey <tromey@adacore.com>
12958
12959 * macroexp.c (struct macro_buffer) <release>: Add
12960 ATTRIBUTE_UNUSED_RESULT.
12961
12962 2019-03-05 Tom Tromey <tromey@adacore.com>
12963
12964 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12965 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12966 ATTRIBUTE_UNUSED_RESULT.
12967
12968 2019-03-05 Tom Tromey <tromey@adacore.com>
12969
12970 * common/scoped_fd.h (class scoped_fd) <release>: Add
12971 ATTRIBUTE_UNUSED_RESULT.
12972
12973 2019-03-05 Tom Tromey <tromey@adacore.com>
12974
12975 * parser-defs.h (struct parser_state) <release>: Add
12976 ATTRIBUTE_UNUSED_RESULT.
12977
12978 2019-03-05 Tom Tromey <tromey@adacore.com>
12979
12980 * utils.h (class gdb_argv) <release>: Add
12981 ATTRIBUTE_UNUSED_RESULT.
12982 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12983
12984 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12985
12986 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12987 for-loop range, to avoid compiler warnings.
12988
12989 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12990 avoid compiler warnings about unused variables.
12991
12992 * NEWS: Mention end of support for native debugging on MS-Windows
12993 before XP.
12994
12995 PR gdb/24292
12996 * common/netstuff.c:
12997 * gdbserver/gdbreplay.c
12998 * gdbserver/remote-utils.c:
12999 * ser-tcp.c:
13000 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13001 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13002 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13003 'getaddrinfo' and 'freeaddrinfo' were not available before
13004 Windows XP, and mingw.org's MinGW headers by default define
13005 _WIN32_WINNT to 0x500.
13006
13007 2019-03-01 Gary Benson <gbenson@redhat.com>
13008
13009 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13010
13011 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13012 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13013
13014 PR gdb/8527
13015 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13016 set_sigint_trap, clear_sigint_trap.
13017
13018 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13019
13020 * target.c (target_detach): Clear the regcache and the
13021 frame cache.
13022
13023 2019-02-27 Pedro Alves <palves@redhat.com>
13024
13025 * utils.c (set_screen_size): When we cap the height/width sizes,
13026 tweak the corresponding command variable to show "unlimited":
13027
13028 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13029 Pedro Alves <palves@redhat.com>
13030
13031 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13032 before calling rl_set_screen_size.
13033
13034 2019-02-27 Tom Tromey <tromey@adacore.com>
13035
13036 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13037 define.
13038 * python/py-value.c: Remove Python 2.4 workaround.
13039 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13040 workaround.
13041 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13042 Python 2.4 workaround.
13043 * python/python-internal.h: Remove Python 2.4 comment.
13044 (Py_ssize_t): Don't define.
13045 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13046 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13047 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13048 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13049 * python/python.c (do_start_initialization): Remove Python 2.4
13050 workaround.
13051 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13052 (print_children): Remove Python 2.4 workaround.
13053 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13054 workaround.
13055 (CHARBUFFERPROC_NAME): Remove.
13056 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13057 Python 2.4 workaround.
13058
13059 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13060
13061 * NEWS: Note minimum Python version.
13062
13063 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13064
13065 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13066 code from these functions. Remove corresponding ifdefs. Use
13067 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13068 Remove gotos and target of gotos.
13069 (infpy_search_memory): Likewise.
13070
13071 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13072
13073 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13074 (hppa_gdbarch_init): Don't register deleted functions with
13075 gdbarch.
13076
13077 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13078
13079 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13080 (h8300_unwind_sp): Delete.
13081 (h8300_dummy_id): Delete.
13082 (h8300_gdbarch_init): Don't register deleted functions with
13083 gdbarch.
13084
13085 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13086
13087 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13088 (ft32_unwind_pc): Delete.
13089 (ft32_unwind_sp): Delete.
13090 (ft32_gdbarch_init): Don't register deleted functions with
13091 gdbarch.
13092
13093 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13094
13095 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13096 (frv_unwind_pc): Delete.
13097 (frv_unwind_sp): Delete.
13098 (frv_gdbarch_init): Don't register deleted functions with
13099 gdbarch.
13100
13101 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13102
13103 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13104 (riscv_unwind_pc): Delete.
13105 (riscv_unwind_sp): Delete.
13106 (riscv_gdbarch_init): Don't register deleted functions with
13107 gdbarch.
13108
13109 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13110
13111 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13112 (csky_unwind_pc): Delete.
13113 (csky_unwind_sp): Delete.
13114 (csky_gdbarch_init): Don't register deleted functions with
13115 gdbarch.
13116
13117 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13118
13119 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13120 (cris_unwind_pc): Delete.
13121 (cris_unwind_sp): Delete.
13122 (cris_gdbarch_init): Don't register deleted functions with
13123 gdbarch.
13124
13125 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13126
13127 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13128 (bfin_unwind_pc): Delete.
13129 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13130
13131 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13132
13133 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13134 (arm_unwind_pc): Delete.
13135 (arm_unwind_sp): Delete.
13136 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13137
13138 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13139
13140 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13141 (arc_unwind_pc): Delete.
13142 (arc_unwind_sp): Delete.
13143 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13144
13145 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13146
13147 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13148 (alpha_unwind_pc): Delete.
13149 (alpha_gdbarch_init): Don't register deleted functions with
13150 gdbarch.
13151
13152 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13153
13154 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13155 (aarch64_unwind_pc): Delete.
13156 (aarch64_unwind_sp): Delete.
13157 (aarch64_gdbarch_init): Don't register deleted functions with
13158 gdbarch.
13159
13160 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13161
13162 * gdbtypes.c (type_align): Don't consider static members when
13163 computing structure alignment.
13164
13165 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13166
13167 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13168 return 0 for other types.
13169 * arch-utils.c (default_type_align): Always return 0.
13170 * gdbarch.h: Regenerate.
13171 * gdbarch.sh (type_align): Extend comment.
13172 * gdbtypes.c (type_align): Add additional comments, always call
13173 gdbarch_type_align before applying the default rules.
13174 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13175 generic code will then apply a suitable default.
13176 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13177 types, return 0 for other types.
13178
13179 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13180
13181 * NEWS: Create a new section for the next release branch.
13182 Rename the section of the current branch, now that it has
13183 been cut.
13184
13185 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13186
13187 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13188 * version.in: Bump version to 8.3.50.DATE-git.
13189
13190 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13191
13192 * aix-thread.c (ptid_cmp): Remove unused variable.
13193 (get_signaled_thread): Likewise.
13194 (store_regs_user_thread): Likewise.
13195 (store_regs_kernel_thread): Likewise.
13196 (fetch_regs_kernel_thread): Remove shadowed variable.
13197
13198 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13199
13200 * features/riscv/32bit-cpu.xml: Add register numbers.
13201 * features/riscv/32bit-fpu.c: Regenerate.
13202 * features/riscv/32bit-fpu.xml: Add register numbers.
13203 * features/riscv/64bit-cpu.xml: Add register numbers.
13204 * features/riscv/64bit-fpu.c: Regenerate.
13205 * features/riscv/64bit-fpu.xml: Add register numbers.
13206
13207 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13208
13209 * NEWS: Mention two argument form of gdb.Value constructor.
13210 * python/py-value.c (convert_buffer_and_type_to_value): New
13211 function.
13212 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13213 Add support for handling an optional second argument. Call
13214 convert_buffer_and_type_to_value as appropriate.
13215 * python/python-internal.h (Py_buffer_deleter): New struct.
13216 (Py_buffer_up): New typedef.
13217
13218 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13219
13220 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13221 instead of releasing ownership.
13222
13223 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13224
13225 * dwarf2read.c (open_and_init_dwp_file): Call
13226 elf_numsections instead of bfd_count_sections to initialize
13227 dwp_file->num_sections.
13228
13229 2019-02-25 Tom Tromey <tromey@adacore.com>
13230
13231 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13232
13233 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13234
13235 * gcore.in: Add '--readnever' option when invoking GDB.
13236
13237 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13238
13239 * MAINTAINERS: Update my email address.
13240
13241 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13242
13243 * build-id.c (build_id_to_debug_bfd_1): New function.
13244 (build_id_to_debug_bfd): Look for separate debug file in
13245 sysroot.
13246
13247 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * gdbarch.sh: Update the copyright year range that is placed into
13250 generated files.
13251
13252 2019-02-22 Keith Seitz <keiths@redhat.com>
13253
13254 PR symtab/23853
13255 * linespec.c (create_sals_line_offset): Search for the default
13256 symtab's filename instead of its fullname.
13257
13258 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13259
13260 * NEWS: Update style defaults.
13261
13262 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13263
13264 * main.c (captured_main_1): Disable styling in batch mode.
13265
13266 2019-02-20 Tom Tromey <tom@tromey.com>
13267
13268 * symtab.c (symtab_symbol_info): Fix typos.
13269
13270 2019-02-20 Tom Tromey <tromey@adacore.com>
13271
13272 * findcmd.c (_initialize_mem_search): Use upper case for
13273 metasyntactic variables.
13274
13275 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13276
13277 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13278 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13279
13280 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13281
13282 * top.h (source_file_name): Change to std::string.
13283 * top.c (source_file_name): Likewise.
13284 (command_line_input): Adjust.
13285 * cli/cli-script.c (script_from_file): Adjust.
13286
13287 2019-02-19 Tom Tromey <tromey@adacore.com>
13288
13289 * ravenscar-thread.c
13290 (ravenscar_thread_target::update_thread_list): Don't call
13291 ada_build_task_list.
13292 * ada-lang.h (ada_build_task_list): Don't declare.
13293 * ada-tasks.c (struct ada_tasks_inferior_data)
13294 <task_list_valid_p>: Now bool.
13295 (read_known_tasks, ada_task_list_changed)
13296 (ada_tasks_invalidate_inferior_data): Update.
13297 (read_known_tasks_array): Return bool.
13298 (read_known_tasks_list): Likewise.
13299 (read_known_tasks): Return void.
13300 (ada_build_task_list): Now static.
13301
13302 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13303
13304 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13305 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13306
13307 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13308
13309 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13310 variant for ada_tasks_pspace_data_handle and
13311 ada_tasks_inferior_data_handle.
13312 (ada_tasks_pspace_data_cleanup): New function.
13313 (ada_tasks_inferior_data_cleanup): New function.
13314
13315 2019-02-17 Tom Tromey <tom@tromey.com>
13316
13317 * macrotab.h (macro_source_fullname): Return a std::string.
13318 * macrotab.c (macro_include, check_for_redefinition)
13319 (macro_undef, macro_lookup_definition, foreach_macro)
13320 (foreach_macro_in_scope): Update.
13321 (macro_source_fullname): Return a std::string.
13322 * macrocmd.c (show_pp_source_pos): Update.
13323
13324 2019-02-17 Tom Tromey <tom@tromey.com>
13325
13326 * macrocmd.c (show_pp_source_pos): Style the file names.
13327
13328 2019-02-17 Tom Tromey <tom@tromey.com>
13329
13330 PR tui/24197:
13331 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13332
13333 2019-02-17 Tom Tromey <tom@tromey.com>
13334
13335 * ada-lang.c (user_select_syms): Use filtered printing.
13336 * utils.c (wrap_style): New global.
13337 (desired_style): Remove.
13338 (emit_style_escape): Add stream parameter.
13339 (set_output_style, reset_terminal_style, prompt_for_continue):
13340 Update.
13341 (flush_wrap_buffer): Only flush gdb_stdout.
13342 (wrap_here): Set wrap_style.
13343 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13344 treat escape sequences as a character. Change when wrap buffer is
13345 flushed.
13346 (fputs_styled): Do not set the output style when the default is
13347 requested.
13348 * ui-style.h (struct ui_file_style) <is_default>: New method.
13349 * source.c (print_source_lines_base): Emit escape sequences in one
13350 piece.
13351
13352 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13353
13354 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13355 integers and enumeration types.
13356
13357 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13358
13359 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13360 instead of lookup_symbol_in_language
13361 (do_exact_match): New function.
13362 (ada_get_symbol_name_matcher): Return do_exact_match when
13363 doing a verbatim match.
13364
13365 2019-02-15 Tom Tromey <tromey@adacore.com>
13366
13367 * ravenscar-thread.c (ravenscar_thread_target::resume)
13368 (ravenscar_thread_target::wait): Special case wildcard requests.
13369
13370 2019-02-15 Tom Tromey <tromey@adacore.com>
13371
13372 * ravenscar-thread.c (base_ptid): Remove.
13373 (struct ravenscar_thread_target) <close>: New method.
13374 <m_base_ptid>: New member.
13375 <update_inferior_ptid, active_task, task_is_currently_active,
13376 runtime_initialized>: Declare methods.
13377 <ravenscar_thread_target>: Add constructor.
13378 (ravenscar_thread_target::task_is_currently_active)
13379 (ravenscar_thread_target::update_inferior_ptid)
13380 (ravenscar_runtime_initialized): Rename. Now methods.
13381 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13382 (ravenscar_thread_target::update_thread_list): Update.
13383 (ravenscar_thread_target::active_task): Now method.
13384 (ravenscar_thread_target::store_registers)
13385 (ravenscar_thread_target::prepare_to_store)
13386 (ravenscar_thread_target::prepare_to_store)
13387 (ravenscar_thread_target::mourn_inferior): Update.
13388 (ravenscar_inferior_created): Use "new" to create target.
13389 (ravenscar_thread_target::get_ada_task_ptid): Update.
13390 (_initialize_ravenscar): Don't initialize base_ptid.
13391 (ravenscar_ops): Remove global.
13392
13393 2019-02-15 Tom Tromey <tromey@adacore.com>
13394
13395 * target.h (push_target): Declare new overload.
13396 * target.c (push_target): New overload, taking an rvalue reference.
13397 * remote.c (remote_target::open_1): Use push_target overload.
13398 * corelow.c (core_target_open): Use push_target overload.
13399
13400 2019-02-15 Tom Tromey <tromey@adacore.com>
13401
13402 * ravenscar-thread.c (is_ravenscar_task)
13403 (ravenscar_task_is_currently_active): Return bool.
13404 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13405 (_initialize_ravenscar): Remove "(void)".
13406 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13407 Return bool.
13408
13409 2019-02-15 Tom Tromey <tromey@adacore.com>
13410
13411 * ravenscar-thread.c (ravenscar_runtime_initializer)
13412 (has_ravenscar_runtime, get_running_thread_id)
13413 (ravenscar_thread_target::resume): Fix indentation.
13414
13415 2019-02-15 Tom Tromey <tromey@adacore.com>
13416
13417 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13418 from ravenscar_arch_ops.
13419 (sparc_ravenscar_ops::fetch_registers)
13420 (sparc_ravenscar_ops::store_registers): Now methods.
13421 (sparc_ravenscar_prepare_to_store): Remove.
13422 (sparc_ravenscar_ops): Redefine.
13423 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13424 methods and destructor. Remove members.
13425 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13426 (ravenscar_thread_target::store_registers)
13427 (ravenscar_thread_target::prepare_to_store): Update.
13428 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13429 Remove.
13430 (struct ppc_ravenscar_powerpc_ops): Derive from
13431 ravenscar_arch_ops.
13432 (ppc_ravenscar_powerpc_ops::fetch_registers)
13433 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13434 (ppc_ravenscar_powerpc_ops): Redefine.
13435 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13436 (ppc_ravenscar_e500_ops::fetch_registers)
13437 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13438 (ppc_ravenscar_e500_ops): Redefine.
13439 * aarch64-ravenscar-thread.c
13440 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13441 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13442 (aarch64_ravenscar_fetch_registers)
13443 (aarch64_ravenscar_store_registers): Now methods.
13444 (aarch64_ravenscar_ops): Redefine.
13445
13446 2019-02-15 Tom Tromey <tromey@adacore.com>
13447
13448 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13449 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13450 (ravenscar_thread_target::stopped_by_watchpoint)
13451 (ravenscar_thread_target::stopped_data_address)
13452 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13453
13454 2019-02-15 Tom Tromey <tromey@adacore.com>
13455
13456 * ravenscar-thread.c: Fix some typos.
13457
13458 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13459 Tom Tromey <tromey@adacore.com>
13460
13461 * ada-lang.c (ada_exception_sal): Change addr_string to a
13462 std::string.
13463 (create_ada_exception_catchpoint): Update.
13464
13465 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13466 Tom Tromey <tromey@adacore.com>
13467
13468 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13469 (bp_location_ops): Remove.
13470 (base_breakpoint_allocate_location): Update.
13471 (free_bp_location): Update.
13472 * ada-lang.c (class ada_catchpoint_location)
13473 <ada_catchpoint_location>: Remove ops parameter.
13474 (ada_catchpoint_location_dtor): Remove.
13475 (ada_catchpoint_location_ops): Remove.
13476 (allocate_location_exception): Update.
13477 * breakpoint.h (struct bp_location_ops): Remove.
13478 (class bp_location) <bp_location>: Remove bp_location_ops
13479 parameter.
13480 <~bp_location>: Add destructor.
13481 <ops>: Remove.
13482
13483 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13484 Pedro Alves <palves@redhat.com>
13485
13486 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13487 'PATH_MAX'.
13488
13489 2019-02-14 David Michael <fedora.dm0@gmail.com>
13490 Samuel Thibault <samuel.thibault@gnu.org>
13491 Thomas Schwinge <thomas@codesourcery.com>
13492
13493 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13494 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13495
13496 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13497
13498 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13499 (check_empty): Use "const char *".
13500
13501 * gnu-nat.c (gnu_nat_target::detach): Instead of
13502 'detach_inferior (pid)' call
13503 'detach_inferior (find_inferior_pid (pid))'.
13504
13505 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13506 'nat/fork-inferior.o'.
13507 * gnu-nat.c: #include "nat/fork-inferior.h".
13508
13509 * gnu-nat.c (gnu_nat_target::detach): Instead of
13510 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13511 * gnu-nat.h: #include "inf-child.h".
13512 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13513 'i386_gnu_nat_target::fetch_registers'.
13514 (gnu_store_registers): Rename/move to
13515 'i386_gnu_nat_target::store_registers'.
13516
13517 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13518 * gnu-nat.h (mach_thread_info): New function.
13519 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13520
13521 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13522
13523 2019-02-14 Frederic Konrad <konrad@adacore.com>
13524
13525 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13526
13527 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13528
13529 * windows-nat.c (windows_add_thread): Add new parameter
13530 "main_thread_p" with default value set to false. Update
13531 function documentation as well as all callers.
13532 (windows_delete_thread): Likewise.
13533 (fake_create_process): Update call to windows_add_thread.
13534 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13535 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13536 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13537 call to windows_delete_thread.
13538
13539 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13540
13541 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13542
13543 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13544
13545 * symfile.c (find_separate_debug_file): Use canonical path of
13546 sysroot with child_path instead of gdb_sysroot if it is valid.
13547
13548 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13549
13550 * symfile.c (find_separate_debug_file): Use child_path to
13551 determine if an object file is under a sysroot.
13552
13553 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13554
13555 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13556 unittests/child-path-selftests.c.
13557 * common/pathstuff.c (child_path): New function.
13558 * common/pathstuff.h (child_path): New prototype.
13559 * unittests/child-path-selftests.c: New file.
13560
13561 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13562
13563 * symfile.c (find_separate_debug_file): Look for separate debug
13564 files in debug directories under the sysroot.
13565
13566 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13567
13568 * symtab.h (struct minimal_symbol data_p): New const method.
13569 (struct minimal_symbol text_p): Likewise.
13570 * symtab.c (output_source_filename): Use file name style
13571 to print file name.
13572 (print_symbol_info): Likewise.
13573 (print_msymbol_info): Use address style to print addresses.
13574 Use function name style to print executable text symbols.
13575 (expand_symtab_containing_pc): Use data_p.
13576 (find_pc_sect_compunit_symtab): Likewise.
13577
13578 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13579
13580 * breakpoint.c (describe_other_breakpoints): Use address style
13581 to print addresses.
13582 (say_where): Likewise.
13583
13584 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13585
13586 * ada-typeprint.c (print_func_type): Print function name
13587 style to print function name.
13588 * c-typeprint.c (c_print_type_1): Likewise.
13589
13590 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13591
13592 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13593 for execve.
13594
13595 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13596
13597 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13598 type_stack.
13599
13600 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13601
13602 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13603 TYPE_CODE_REF types.
13604
13605 2019-02-08 Jim Wilson <jimw@sifive.com>
13606
13607 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13608 (riscv_linux_fregset): New.
13609 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13610
13611 2019-02-07 Tom Tromey <tom@tromey.com>
13612
13613 * thread.c (thread_cancel_execution_command): Update.
13614 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13615 methods.
13616 (struct thread_fsm_ops): Remove.
13617 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13618 (thread_fsm_should_stop, thread_fsm_return_value)
13619 (thread_fsm_set_finished, thread_fsm_finished_p)
13620 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13621 Don't declare.
13622 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13623 * infrun.c (clear_proceed_status_thread)
13624 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13625 (print_stop_event): Update.
13626 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13627 Add constructor.
13628 (step_command_fsm_ops): Remove.
13629 (new_step_command_fsm): Remove.
13630 (step_1): Update.
13631 (step_command_fsm::should_stop): Rename from
13632 step_command_fsm_should_stop.
13633 (step_command_fsm::clean_up): Rename from
13634 step_command_fsm_clean_up.
13635 (step_command_fsm::do_async_reply_reason): Rename from
13636 step_command_fsm_async_reply_reason.
13637 (struct until_next_fsm): Inherit from thread_fsm. Add
13638 constructor.
13639 (until_next_fsm_ops): Remove.
13640 (new_until_next_fsm): Remove.
13641 (until_next_fsm::should_stop): Rename from
13642 until_next_fsm_should_stop.
13643 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13644 (until_next_fsm::do_async_reply_reason): Rename from
13645 until_next_fsm_async_reply_reason.
13646 (struct finish_command_fsm): Inherit from thread_fsm. Add
13647 constructor. Change type of breakpoint.
13648 (finish_command_fsm_ops): Remove.
13649 (new_finish_command_fsm): Remove.
13650 (finish_command_fsm::should_stop): Rename from
13651 finish_command_fsm_should_stop.
13652 (finish_command_fsm::clean_up): Rename from
13653 finish_command_fsm_clean_up.
13654 (finish_command_fsm::return_value): Rename from
13655 finish_command_fsm_return_value.
13656 (finish_command_fsm::do_async_reply_reason): Rename from
13657 finish_command_fsm_async_reply_reason.
13658 (finish_command): Update.
13659 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13660 Add constructor.
13661 (call_thread_fsm_ops): Remove.
13662 (call_thread_fsm::call_thread_fsm): Rename from
13663 new_call_thread_fsm.
13664 (call_thread_fsm::should_stop): Rename from
13665 call_thread_fsm_should_stop.
13666 (call_thread_fsm::should_notify_stop): Rename from
13667 call_thread_fsm_should_notify_stop.
13668 (run_inferior_call, call_function_by_hand_dummy): Update.
13669 * cli/cli-interp.c (should_print_stop_to_console): Update.
13670 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13671 Add constructor. Change type of location_breakpoint,
13672 caller_breakpoint.
13673 (until_break_fsm_ops): Remove.
13674 (new_until_break_fsm): Remove.
13675 (until_break_fsm::should_stop): Rename from
13676 until_break_fsm_should_stop.
13677 (until_break_fsm::clean_up): Rename from
13678 until_break_fsm_clean_up.
13679 (until_break_fsm::do_async_reply_reason): Rename from
13680 until_break_fsm_async_reply_reason.
13681 (until_break_command): Update.
13682 * thread-fsm.c: Remove.
13683 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13684
13685 2019-02-07 Tom Tromey <tom@tromey.com>
13686
13687 * yy-remap.h: Add include guard.
13688 * xtensa-tdep.h: Add include guard.
13689 * xcoffread.h: Rename include guard.
13690 * varobj-iter.h: Add include guard.
13691 * tui/tui.h: Rename include guard.
13692 * tui/tui-winsource.h: Rename include guard.
13693 * tui/tui-wingeneral.h: Rename include guard.
13694 * tui/tui-windata.h: Rename include guard.
13695 * tui/tui-win.h: Rename include guard.
13696 * tui/tui-stack.h: Rename include guard.
13697 * tui/tui-source.h: Rename include guard.
13698 * tui/tui-regs.h: Rename include guard.
13699 * tui/tui-out.h: Rename include guard.
13700 * tui/tui-layout.h: Rename include guard.
13701 * tui/tui-io.h: Rename include guard.
13702 * tui/tui-hooks.h: Rename include guard.
13703 * tui/tui-file.h: Rename include guard.
13704 * tui/tui-disasm.h: Rename include guard.
13705 * tui/tui-data.h: Rename include guard.
13706 * tui/tui-command.h: Rename include guard.
13707 * tic6x-tdep.h: Add include guard.
13708 * target/waitstatus.h: Rename include guard.
13709 * target/wait.h: Rename include guard.
13710 * target/target.h: Rename include guard.
13711 * target/resume.h: Rename include guard.
13712 * target-float.h: Rename include guard.
13713 * stabsread.h: Add include guard.
13714 * rs6000-tdep.h: Add include guard.
13715 * riscv-fbsd-tdep.h: Add include guard.
13716 * regformats/regdef.h: Rename include guard.
13717 * record.h: Rename include guard.
13718 * python/python.h: Rename include guard.
13719 * python/python-internal.h: Rename include guard.
13720 * python/py-stopevent.h: Rename include guard.
13721 * python/py-ref.h: Rename include guard.
13722 * python/py-record.h: Rename include guard.
13723 * python/py-record-full.h: Rename include guard.
13724 * python/py-record-btrace.h: Rename include guard.
13725 * python/py-instruction.h: Rename include guard.
13726 * python/py-events.h: Rename include guard.
13727 * python/py-event.h: Rename include guard.
13728 * procfs.h: Add include guard.
13729 * proc-utils.h: Add include guard.
13730 * p-lang.h: Add include guard.
13731 * or1k-tdep.h: Rename include guard.
13732 * observable.h: Rename include guard.
13733 * nto-tdep.h: Rename include guard.
13734 * nat/x86-linux.h: Rename include guard.
13735 * nat/x86-linux-dregs.h: Rename include guard.
13736 * nat/x86-gcc-cpuid.h: Add include guard.
13737 * nat/x86-dregs.h: Rename include guard.
13738 * nat/x86-cpuid.h: Rename include guard.
13739 * nat/ppc-linux.h: Rename include guard.
13740 * nat/mips-linux-watch.h: Rename include guard.
13741 * nat/linux-waitpid.h: Rename include guard.
13742 * nat/linux-ptrace.h: Rename include guard.
13743 * nat/linux-procfs.h: Rename include guard.
13744 * nat/linux-osdata.h: Rename include guard.
13745 * nat/linux-nat.h: Rename include guard.
13746 * nat/linux-namespaces.h: Rename include guard.
13747 * nat/linux-btrace.h: Rename include guard.
13748 * nat/glibc_thread_db.h: Rename include guard.
13749 * nat/gdb_thread_db.h: Rename include guard.
13750 * nat/gdb_ptrace.h: Rename include guard.
13751 * nat/fork-inferior.h: Rename include guard.
13752 * nat/amd64-linux-siginfo.h: Rename include guard.
13753 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13754 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13755 * nat/aarch64-linux.h: Rename include guard.
13756 * nat/aarch64-linux-hw-point.h: Rename include guard.
13757 * mn10300-tdep.h: Add include guard.
13758 * mips-linux-tdep.h: Add include guard.
13759 * mi/mi-parse.h: Rename include guard.
13760 * mi/mi-out.h: Rename include guard.
13761 * mi/mi-main.h: Rename include guard.
13762 * mi/mi-interp.h: Rename include guard.
13763 * mi/mi-getopt.h: Rename include guard.
13764 * mi/mi-console.h: Rename include guard.
13765 * mi/mi-common.h: Rename include guard.
13766 * mi/mi-cmds.h: Rename include guard.
13767 * mi/mi-cmd-break.h: Rename include guard.
13768 * m2-lang.h: Add include guard.
13769 * location.h: Rename include guard.
13770 * linux-record.h: Rename include guard.
13771 * linux-nat.h: Add include guard.
13772 * linux-fork.h: Add include guard.
13773 * i386-darwin-tdep.h: Rename include guard.
13774 * hppa-linux-offsets.h: Add include guard.
13775 * guile/guile.h: Rename include guard.
13776 * guile/guile-internal.h: Rename include guard.
13777 * gnu-nat.h: Rename include guard.
13778 * gdb-stabs.h: Rename include guard.
13779 * frv-tdep.h: Add include guard.
13780 * f-lang.h: Add include guard.
13781 * event-loop.h: Add include guard.
13782 * darwin-nat.h: Rename include guard.
13783 * cp-abi.h: Rename include guard.
13784 * config/sparc/nm-sol2.h: Rename include guard.
13785 * config/nm-nto.h: Rename include guard.
13786 * config/nm-linux.h: Add include guard.
13787 * config/i386/nm-i386gnu.h: Rename include guard.
13788 * config/djgpp/nl_types.h: Rename include guard.
13789 * config/djgpp/langinfo.h: Rename include guard.
13790 * compile/gcc-cp-plugin.h: Add include guard.
13791 * compile/gcc-c-plugin.h: Add include guard.
13792 * compile/compile.h: Rename include guard.
13793 * compile/compile-object-run.h: Rename include guard.
13794 * compile/compile-object-load.h: Rename include guard.
13795 * compile/compile-internal.h: Rename include guard.
13796 * compile/compile-cplus.h: Rename include guard.
13797 * compile/compile-c.h: Rename include guard.
13798 * common/xml-utils.h: Rename include guard.
13799 * common/x86-xstate.h: Rename include guard.
13800 * common/version.h: Rename include guard.
13801 * common/vec.h: Rename include guard.
13802 * common/tdesc.h: Rename include guard.
13803 * common/selftest.h: Rename include guard.
13804 * common/scoped_restore.h: Rename include guard.
13805 * common/scoped_mmap.h: Rename include guard.
13806 * common/scoped_fd.h: Rename include guard.
13807 * common/safe-iterator.h: Rename include guard.
13808 * common/run-time-clock.h: Rename include guard.
13809 * common/refcounted-object.h: Rename include guard.
13810 * common/queue.h: Rename include guard.
13811 * common/ptid.h: Rename include guard.
13812 * common/print-utils.h: Rename include guard.
13813 * common/preprocessor.h: Rename include guard.
13814 * common/pathstuff.h: Rename include guard.
13815 * common/observable.h: Rename include guard.
13816 * common/netstuff.h: Rename include guard.
13817 * common/job-control.h: Rename include guard.
13818 * common/host-defs.h: Rename include guard.
13819 * common/gdb_wait.h: Rename include guard.
13820 * common/gdb_vecs.h: Rename include guard.
13821 * common/gdb_unlinker.h: Rename include guard.
13822 * common/gdb_unique_ptr.h: Rename include guard.
13823 * common/gdb_tilde_expand.h: Rename include guard.
13824 * common/gdb_sys_time.h: Rename include guard.
13825 * common/gdb_string_view.h: Rename include guard.
13826 * common/gdb_splay_tree.h: Rename include guard.
13827 * common/gdb_setjmp.h: Rename include guard.
13828 * common/gdb_ref_ptr.h: Rename include guard.
13829 * common/gdb_optional.h: Rename include guard.
13830 * common/gdb_locale.h: Rename include guard.
13831 * common/gdb_assert.h: Rename include guard.
13832 * common/filtered-iterator.h: Rename include guard.
13833 * common/filestuff.h: Rename include guard.
13834 * common/fileio.h: Rename include guard.
13835 * common/environ.h: Rename include guard.
13836 * common/common-utils.h: Rename include guard.
13837 * common/common-types.h: Rename include guard.
13838 * common/common-regcache.h: Rename include guard.
13839 * common/common-inferior.h: Rename include guard.
13840 * common/common-gdbthread.h: Rename include guard.
13841 * common/common-exceptions.h: Rename include guard.
13842 * common/common-defs.h: Rename include guard.
13843 * common/common-debug.h: Rename include guard.
13844 * common/cleanups.h: Rename include guard.
13845 * common/buffer.h: Rename include guard.
13846 * common/btrace-common.h: Rename include guard.
13847 * common/break-common.h: Rename include guard.
13848 * cli/cli-utils.h: Rename include guard.
13849 * cli/cli-style.h: Rename include guard.
13850 * cli/cli-setshow.h: Rename include guard.
13851 * cli/cli-script.h: Rename include guard.
13852 * cli/cli-interp.h: Rename include guard.
13853 * cli/cli-decode.h: Rename include guard.
13854 * cli/cli-cmds.h: Rename include guard.
13855 * charset-list.h: Add include guard.
13856 * buildsym-legacy.h: Rename include guard.
13857 * bfin-tdep.h: Add include guard.
13858 * ax.h: Rename include guard.
13859 * arm-linux-tdep.h: Add include guard.
13860 * arm-fbsd-tdep.h: Add include guard.
13861 * arch/xtensa.h: Rename include guard.
13862 * arch/tic6x.h: Add include guard.
13863 * arch/i386.h: Add include guard.
13864 * arch/arm.h: Rename include guard.
13865 * arch/arm-linux.h: Rename include guard.
13866 * arch/arm-get-next-pcs.h: Rename include guard.
13867 * arch/amd64.h: Add include guard.
13868 * arch/aarch64-insn.h: Rename include guard.
13869 * arch-utils.h: Rename include guard.
13870 * annotate.h: Add include guard.
13871 * amd64-darwin-tdep.h: Rename include guard.
13872 * aarch64-linux-tdep.h: Add include guard.
13873 * aarch64-fbsd-tdep.h: Add include guard.
13874 * aarch32-linux-nat.h: Add include guard.
13875
13876 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13877
13878 * macrotab.c (macro_define_internal): New function that
13879 factorizes macro_define_object_internal and macro_define_function
13880 code.
13881 (macro_define_object_internal): Use macro_define_internal.
13882 (macro_define_function): Likewise.
13883
13884 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13885
13886 * macrocmd.c (extract_identifier): Return
13887 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13888 callers.
13889
13890 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13891
13892 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13893
13894 2019-02-05 Tom Tromey <tom@tromey.com>
13895
13896 * target.c (target_stack::unpush): Move assertion earlier.
13897
13898 2019-01-30 Tom Tromey <tom@tromey.com>
13899
13900 PR python/23615:
13901 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13902 (gdbpy_parse_and_eval): Likewise.
13903 * python/python-internal.h (gdbpy_allow_threads): New class.
13904
13905 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13906
13907 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13908 (aarch64_fbsd_fpregmap): Move earlier.
13909 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13910 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13911 instead of individual calls to trad_frame_set_reg_addr.
13912 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13913 earlier.
13914 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13915 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13916 instead of individual calls to trad_frame_set_reg_addr.
13917
13918 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13919
13920 * CONTRIBUTE: Replace contribution list with wiki link.
13921
13922 2019-01-25 Tom Tromey <tom@tromey.com>
13923
13924 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13925
13926 2019-01-25 Tom Tromey <tom@tromey.com>
13927
13928 * xtensa-linux-nat.c: Fix common/ includes.
13929 * xml-support.h: Fix common/ includes.
13930 * xml-support.c: Fix common/ includes.
13931 * x86-linux-nat.c: Fix common/ includes.
13932 * windows-nat.c: Fix common/ includes.
13933 * varobj.h: Fix common/ includes.
13934 * varobj.c: Fix common/ includes.
13935 * value.c: Fix common/ includes.
13936 * valops.c: Fix common/ includes.
13937 * utils.c: Fix common/ includes.
13938 * unittests/xml-utils-selftests.c: Fix common/ includes.
13939 * unittests/utils-selftests.c: Fix common/ includes.
13940 * unittests/unpack-selftests.c: Fix common/ includes.
13941 * unittests/tracepoint-selftests.c: Fix common/ includes.
13942 * unittests/style-selftests.c: Fix common/ includes.
13943 * unittests/string_view-selftests.c: Fix common/ includes.
13944 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13945 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13946 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13947 * unittests/rsp-low-selftests.c: Fix common/ includes.
13948 * unittests/parse-connection-spec-selftests.c: Fix common/
13949 includes.
13950 * unittests/optional-selftests.c: Fix common/ includes.
13951 * unittests/offset-type-selftests.c: Fix common/ includes.
13952 * unittests/observable-selftests.c: Fix common/ includes.
13953 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13954 * unittests/memrange-selftests.c: Fix common/ includes.
13955 * unittests/memory-map-selftests.c: Fix common/ includes.
13956 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13957 * unittests/function-view-selftests.c: Fix common/ includes.
13958 * unittests/environ-selftests.c: Fix common/ includes.
13959 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13960 * unittests/common-utils-selftests.c: Fix common/ includes.
13961 * unittests/cli-utils-selftests.c: Fix common/ includes.
13962 * unittests/array-view-selftests.c: Fix common/ includes.
13963 * ui-file.c: Fix common/ includes.
13964 * tui/tui-io.c: Fix common/ includes.
13965 * tracepoint.h: Fix common/ includes.
13966 * tracepoint.c: Fix common/ includes.
13967 * tracefile-tfile.c: Fix common/ includes.
13968 * top.h: Fix common/ includes.
13969 * top.c: Fix common/ includes.
13970 * thread.c: Fix common/ includes.
13971 * target/waitstatus.h: Fix common/ includes.
13972 * target/waitstatus.c: Fix common/ includes.
13973 * target.h: Fix common/ includes.
13974 * target.c: Fix common/ includes.
13975 * target-memory.c: Fix common/ includes.
13976 * target-descriptions.c: Fix common/ includes.
13977 * symtab.h: Fix common/ includes.
13978 * symfile.c: Fix common/ includes.
13979 * stap-probe.c: Fix common/ includes.
13980 * spu-linux-nat.c: Fix common/ includes.
13981 * sparc-nat.c: Fix common/ includes.
13982 * source.c: Fix common/ includes.
13983 * solib.c: Fix common/ includes.
13984 * solib-target.c: Fix common/ includes.
13985 * ser-unix.c: Fix common/ includes.
13986 * ser-tcp.c: Fix common/ includes.
13987 * ser-pipe.c: Fix common/ includes.
13988 * ser-base.c: Fix common/ includes.
13989 * selftest-arch.c: Fix common/ includes.
13990 * s12z-tdep.c: Fix common/ includes.
13991 * rust-exp.y: Fix common/ includes.
13992 * rs6000-aix-tdep.c: Fix common/ includes.
13993 * riscv-tdep.c: Fix common/ includes.
13994 * remote.c: Fix common/ includes.
13995 * remote-notif.h: Fix common/ includes.
13996 * remote-fileio.h: Fix common/ includes.
13997 * remote-fileio.c: Fix common/ includes.
13998 * regcache.h: Fix common/ includes.
13999 * regcache.c: Fix common/ includes.
14000 * record-btrace.c: Fix common/ includes.
14001 * python/python.c: Fix common/ includes.
14002 * python/py-type.c: Fix common/ includes.
14003 * python/py-inferior.c: Fix common/ includes.
14004 * progspace.h: Fix common/ includes.
14005 * producer.c: Fix common/ includes.
14006 * procfs.c: Fix common/ includes.
14007 * proc-api.c: Fix common/ includes.
14008 * printcmd.c: Fix common/ includes.
14009 * ppc-linux-nat.c: Fix common/ includes.
14010 * parser-defs.h: Fix common/ includes.
14011 * osdata.c: Fix common/ includes.
14012 * obsd-nat.c: Fix common/ includes.
14013 * nat/x86-linux.c: Fix common/ includes.
14014 * nat/x86-linux-dregs.c: Fix common/ includes.
14015 * nat/x86-dregs.h: Fix common/ includes.
14016 * nat/x86-dregs.c: Fix common/ includes.
14017 * nat/ppc-linux.c: Fix common/ includes.
14018 * nat/mips-linux-watch.h: Fix common/ includes.
14019 * nat/mips-linux-watch.c: Fix common/ includes.
14020 * nat/linux-waitpid.c: Fix common/ includes.
14021 * nat/linux-ptrace.h: Fix common/ includes.
14022 * nat/linux-ptrace.c: Fix common/ includes.
14023 * nat/linux-procfs.c: Fix common/ includes.
14024 * nat/linux-personality.c: Fix common/ includes.
14025 * nat/linux-osdata.c: Fix common/ includes.
14026 * nat/linux-namespaces.c: Fix common/ includes.
14027 * nat/linux-btrace.h: Fix common/ includes.
14028 * nat/linux-btrace.c: Fix common/ includes.
14029 * nat/fork-inferior.c: Fix common/ includes.
14030 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14031 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14032 * nat/aarch64-linux.c: Fix common/ includes.
14033 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14034 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14035 * namespace.h: Fix common/ includes.
14036 * mips-linux-tdep.c: Fix common/ includes.
14037 * minsyms.c: Fix common/ includes.
14038 * mi/mi-parse.h: Fix common/ includes.
14039 * mi/mi-main.c: Fix common/ includes.
14040 * mi/mi-cmd-env.c: Fix common/ includes.
14041 * memrange.h: Fix common/ includes.
14042 * memattr.c: Fix common/ includes.
14043 * maint.h: Fix common/ includes.
14044 * maint.c: Fix common/ includes.
14045 * main.c: Fix common/ includes.
14046 * machoread.c: Fix common/ includes.
14047 * location.c: Fix common/ includes.
14048 * linux-thread-db.c: Fix common/ includes.
14049 * linux-nat.c: Fix common/ includes.
14050 * linux-fork.c: Fix common/ includes.
14051 * inline-frame.c: Fix common/ includes.
14052 * infrun.c: Fix common/ includes.
14053 * inflow.c: Fix common/ includes.
14054 * inferior.h: Fix common/ includes.
14055 * inferior.c: Fix common/ includes.
14056 * infcmd.c: Fix common/ includes.
14057 * inf-ptrace.c: Fix common/ includes.
14058 * inf-child.c: Fix common/ includes.
14059 * ia64-linux-nat.c: Fix common/ includes.
14060 * i387-tdep.c: Fix common/ includes.
14061 * i386-tdep.c: Fix common/ includes.
14062 * i386-linux-tdep.c: Fix common/ includes.
14063 * i386-linux-nat.c: Fix common/ includes.
14064 * i386-go32-tdep.c: Fix common/ includes.
14065 * i386-fbsd-tdep.c: Fix common/ includes.
14066 * i386-fbsd-nat.c: Fix common/ includes.
14067 * guile/scm-type.c: Fix common/ includes.
14068 * guile/guile.c: Fix common/ includes.
14069 * go32-nat.c: Fix common/ includes.
14070 * gnu-nat.c: Fix common/ includes.
14071 * gdbthread.h: Fix common/ includes.
14072 * gdbarch-selftests.c: Fix common/ includes.
14073 * gdb_usleep.c: Fix common/ includes.
14074 * gdb_select.h: Fix common/ includes.
14075 * gdb_bfd.c: Fix common/ includes.
14076 * gcore.c: Fix common/ includes.
14077 * fork-child.c: Fix common/ includes.
14078 * findvar.c: Fix common/ includes.
14079 * fbsd-nat.c: Fix common/ includes.
14080 * event-top.c: Fix common/ includes.
14081 * event-loop.c: Fix common/ includes.
14082 * dwarf2read.c: Fix common/ includes.
14083 * dwarf2loc.c: Fix common/ includes.
14084 * dwarf2-frame.c: Fix common/ includes.
14085 * dwarf-index-cache.c: Fix common/ includes.
14086 * dtrace-probe.c: Fix common/ includes.
14087 * disasm-selftests.c: Fix common/ includes.
14088 * defs.h: Fix common/ includes.
14089 * csky-tdep.c: Fix common/ includes.
14090 * cp-valprint.c: Fix common/ includes.
14091 * cp-support.h: Fix common/ includes.
14092 * cp-support.c: Fix common/ includes.
14093 * corelow.c: Fix common/ includes.
14094 * completer.h: Fix common/ includes.
14095 * completer.c: Fix common/ includes.
14096 * compile/compile.c: Fix common/ includes.
14097 * compile/compile-loc2c.c: Fix common/ includes.
14098 * compile/compile-cplus-types.c: Fix common/ includes.
14099 * compile/compile-cplus-symbols.c: Fix common/ includes.
14100 * command.h: Fix common/ includes.
14101 * cli/cli-dump.c: Fix common/ includes.
14102 * cli/cli-cmds.c: Fix common/ includes.
14103 * charset.c: Fix common/ includes.
14104 * build-id.c: Fix common/ includes.
14105 * btrace.h: Fix common/ includes.
14106 * btrace.c: Fix common/ includes.
14107 * breakpoint.h: Fix common/ includes.
14108 * breakpoint.c: Fix common/ includes.
14109 * ax.h:
14110 (enum agent_op): Fix common/ includes.
14111 * ax-general.c (struct aop_map): Fix common/ includes.
14112 * ax-gdb.c: Fix common/ includes.
14113 * auxv.c: Fix common/ includes.
14114 * auto-load.c: Fix common/ includes.
14115 * arm-tdep.c: Fix common/ includes.
14116 * arch/riscv.c: Fix common/ includes.
14117 * arch/ppc-linux-common.c: Fix common/ includes.
14118 * arch/i386.c: Fix common/ includes.
14119 * arch/arm.c: Fix common/ includes.
14120 * arch/arm-linux.c: Fix common/ includes.
14121 * arch/arm-get-next-pcs.c: Fix common/ includes.
14122 * arch/amd64.c: Fix common/ includes.
14123 * arch/aarch64.c: Fix common/ includes.
14124 * arch/aarch64-insn.c: Fix common/ includes.
14125 * arch-utils.c: Fix common/ includes.
14126 * amd64-windows-tdep.c: Fix common/ includes.
14127 * amd64-tdep.c: Fix common/ includes.
14128 * amd64-sol2-tdep.c: Fix common/ includes.
14129 * amd64-obsd-tdep.c: Fix common/ includes.
14130 * amd64-nbsd-tdep.c: Fix common/ includes.
14131 * amd64-linux-tdep.c: Fix common/ includes.
14132 * amd64-linux-nat.c: Fix common/ includes.
14133 * amd64-fbsd-tdep.c: Fix common/ includes.
14134 * amd64-fbsd-nat.c: Fix common/ includes.
14135 * amd64-dicos-tdep.c: Fix common/ includes.
14136 * amd64-darwin-tdep.c: Fix common/ includes.
14137 * agent.c: Fix common/ includes.
14138 * ada-lang.h: Fix common/ includes.
14139 * ada-lang.c: Fix common/ includes.
14140 * aarch64-tdep.c: Fix common/ includes.
14141
14142 2019-01-25 Tom Tromey <tom@tromey.com>
14143
14144 * common/create-version.sh: Use common/version.h.
14145
14146 2019-01-24 Pedro Alves <palves@redhat.com>
14147
14148 * infrun.c (signal_stop, signal_print, signal_program)
14149 (signal_catch, signal_pass): Now arrays instead of pointers.
14150 (update_signals_program_target, do_target_resume)
14151 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14152 * linux-nat.c (linux_nat_target::pass_signals)
14153 (linux_nat_target::create_inferior, linux_nat_target::attach):
14154 Adjust.
14155 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14156 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14157 * procfs.c (procfs_target::pass_signals): Adjust.
14158 * record-full.c (record_full_target::resume): Adjust.
14159 * remote.c (remote_target::pass_signals)
14160 (remote_target::program_signals): Adjust.
14161 * target-debug.h (target_debug_print_signals): Now takes a
14162 gdb::array_view as parameter. Adjust.
14163 * target.h (target_ops) <pass_signals, program_signals>: Replace
14164 pointer and length parameters with gdb::array_view.
14165 (target_pass_signals, target_program_signals): Likewise.
14166 * target-delegates.c: Regenerate.
14167
14168 2019-01-24 Pedro Alves <palves@redhat.com>
14169
14170 * common/forward-scope-exit.h
14171 (forward_scope_exit::forward_scope_exit): Pass arguments to
14172 m_bind_function directly, instead of creating a std::bind and
14173 copying that.
14174
14175 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14176
14177 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14178 for static members.
14179 (pass_in_v_vfp_candidate): Likewise.
14180
14181 2019-01-23 Tom Tromey <tom@tromey.com>
14182 Pedro Alves <palves@redhat.com>
14183
14184 * regcache.c (class regcache_invalidator): Remove.
14185 (regcache::raw_write): Use make_scope_exit.
14186
14187 2019-01-23 Tom Tromey <tom@tromey.com>
14188
14189 * ui-out.h (class ui_out_emit_type): Update comment.
14190
14191 2019-01-23 Tom Tromey <tom@tromey.com>
14192
14193 * infrun.c (fetch_inferior_event): Update comment.
14194
14195 2019-01-23 Tom Tromey <tom@tromey.com>
14196 Pedro Alves <palves@redhat.com>
14197
14198 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14199 parameter.
14200 (fetch_inferior_event): Use SCOPE_EXIT.
14201
14202
14203 2019-01-23 Tom Tromey <tom@tromey.com>
14204 Pedro Alves <palves@redhat.com>
14205
14206 * infrun.c (disable_thread_events): Delete.
14207 (stop_all_threads): Use SCOPE_EXIT.
14208
14209 2019-01-23 Tom Tromey <tom@tromey.com>
14210 Pedro Alves <palves@redhat.com>
14211
14212 * symfile.c: Include forward-scope-exit.h.
14213 (clear_symtab_users_cleanup): Replace forward declaration with
14214 a FORWARD_SCOPE_EXIT.
14215 (syms_from_objfile_1): Use the forward_scope_exit and
14216 gdb::optional instead of cleanup_function.
14217 (reread_symbols): Use the forward_scope_exit instead of
14218 cleanup_function.
14219 (clear_symtab_users_cleanup): Remove function.
14220
14221 2019-01-23 Tom Tromey <tom@tromey.com>
14222 Pedro Alves <palves@redhat.com>
14223
14224 * linux-nat.c: Include scope-exit.h.
14225 (cleanup_target_stop): Remove.
14226 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14227 SCOPE_EXIT.
14228
14229 2019-01-23 Tom Tromey <tom@tromey.com>
14230 Pedro Alves <palves@redhat.com>
14231
14232 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14233 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14234
14235 2019-01-23 Tom Tromey <tom@tromey.com>
14236 Andrew Burgess <andrew.burgess@embecosm.com>
14237 Pedro Alves <palves@redhat.com>
14238
14239 * infrun.c (fetch_inferior_event): Use scope_exit.
14240 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14241 * top.c (execute_command): Use scope_exit.
14242 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14243 * utils.c (do_bpstat_clear_actions_cleanup)
14244 (make_bpstat_clear_actions_cleanup): Remove.
14245
14246 2019-01-23 Tom Tromey <tom@tromey.com>
14247 Pedro Alves <palves@redhat.com>
14248
14249 * infrun.c: Include "common/scope-exit.h"
14250 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14251 (wait_for_inferior): Use SCOPE_EXIT.
14252 (fetch_inferior_event): Use scope_exit.
14253
14254 2019-01-23 Tom Tromey <tom@tromey.com>
14255 Pedro Alves <palves@redhat.com>
14256
14257 * breakpoint.c (create_breakpoint): Remove cleanup.
14258
14259 2019-01-23 Tom Tromey <tom@tromey.com>
14260 Andrew Burgess <andrew.burgess@embecosm.com>
14261 Pedro Alves <palves@redhat.com>
14262
14263 2019-01-23 Pedro Alves <palves@redhat.com>
14264
14265 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14266
14267 2019-01-23 Pedro Alves <palves@redhat.com>
14268 Andrew Burgess <andrew.burgess@embecosm.com>
14269
14270 * gdbthread.h: Include "common/forward-scope-exit.h".
14271 (scoped_finish_thread_state): Redefine custom class in terms of
14272 forward_scope_exit.
14273
14274 2019-01-23 Pedro Alves <palves@redhat.com>
14275 Andrew Burgess <andrew.burgess@embecosm.com>
14276
14277 * common/forward-scope-exit.h: New file.
14278
14279 2019-01-23 Pedro Alves <palves@redhat.com>
14280 Andrew Burgess <andrew.burgess@embecosm.com>
14281 Tom Tromey <tom@tromey.com>
14282
14283 * common/scope-exit.h: New file.
14284
14285 2019-01-23 Pedro Alves <palves@redhat.com>
14286
14287 * common/preprocessor.h (ESC): Rename to ...
14288 (ESC_PARENS): ... this.
14289 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14290 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14291
14292 2019-01-23 Tom Tromey <tom@tromey.com>
14293
14294 * language.h (class scoped_switch_to_sym_language_if_auto):
14295 Initialize m_lang in both cases.
14296
14297 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14298
14299 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14300 with XCNEW.
14301
14302 2019-01-22 Tom Tromey <tom@tromey.com>
14303
14304 * corelow.c: Do not include sys/file.h.
14305
14306 2019-01-22 Tom Tromey <tom@tromey.com>
14307
14308 * tui/tui-wingeneral.h: Include gdb_curses.h.
14309
14310 2019-01-22 Tom Tromey <tom@tromey.com>
14311
14312 * source-cache.h (class source_cache) <get_source_lines,
14313 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14314
14315 2019-01-22 Tom Tromey <tom@tromey.com>
14316
14317 * remote-fileio.h (struct remote_target): Declare.
14318
14319 2019-01-22 Tom Tromey <tom@tromey.com>
14320
14321 * python/py-arch.c: Do not include py-ref.h.
14322 * python/py-bpevent.c: Do not include py-ref.h.
14323 * python/py-cmd.c: Do not include py-ref.h.
14324 * python/py-continueevent.c: Do not include py-ref.h.
14325 * python/py-event.h: Do not include py-ref.h.
14326 * python/py-evtregistry.c: Do not include py-ref.h.
14327 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14328 * python/py-frame.c: Do not include py-ref.h.
14329 * python/py-framefilter.c: Do not include py-ref.h.
14330 * python/py-function.c: Do not include py-ref.h.
14331 * python/py-infevents.c: Do not include py-ref.h.
14332 * python/py-linetable.c: Do not include py-ref.h.
14333 * python/py-objfile.c: Do not include py-ref.h.
14334 * python/py-param.c: Do not include py-ref.h.
14335 * python/py-prettyprint.c: Do not include py-ref.h.
14336 * python/py-progspace.c: Do not include py-ref.h.
14337 * python/py-symbol.c: Do not include py-ref.h.
14338 * python/py-symtab.c: Do not include py-ref.h.
14339 * python/py-type.c: Do not include py-ref.h.
14340 * python/py-unwind.c: Do not include py-ref.h.
14341 * python/py-utils.c: Do not include py-ref.h.
14342 * python/py-value.c: Do not include py-ref.h.
14343 * python/py-varobj.c: Do not include py-ref.h.
14344 * python/py-xmethods.c: Do not include py-ref.h.
14345 * python/python.c: Do not include py-ref.h.
14346 * varobj.c: Do not include py-ref.h.
14347
14348 2019-01-22 Tom Tromey <tom@tromey.com>
14349
14350 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14351 keyword for bcache.
14352
14353 2019-01-22 Tom Tromey <tom@tromey.com>
14354
14355 * compile/compile-cplus-types.c: Remove a comment by #include.
14356
14357 2019-01-22 Tom Tromey <tom@tromey.com>
14358
14359 * compile/gcc-c-plugin.h: Include compile-internal.h.
14360
14361 2019-01-22 Tom Tromey <tom@tromey.com>
14362
14363 * stabsread.c (EXTERN): Do not define.
14364 (symnum, next_symbol_text_func, processing_gcc_compilation)
14365 (within_function, global_sym_chain, global_stabs)
14366 (previous_stab_code, this_object_header_files)
14367 (n_this_object_header_files)
14368 (n_allocated_this_object_header_files): Define.
14369 * stabsread.h (EXTERN): Never define. Use "extern".
14370
14371 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14372
14373 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14374 history_value.
14375
14376 2019-01-21 Tom Tromey <tom@tromey.com>
14377
14378 * ui-out.c: Fix includes.
14379 * tui/tui-source.c: Fix includes.
14380 * target.c: Fix includes.
14381 * remote.c: Fix includes.
14382 * regcache.c: Fix includes.
14383 * python/py-block.c: Fix includes.
14384 * printcmd.c: Fix includes.
14385 * or1k-tdep.c: Fix includes.
14386 * mi/mi-main.c: Fix includes.
14387 * m32r-tdep.c: Fix includes.
14388 * csky-tdep.c: Fix includes.
14389 * compile/compile-cplus-types.c: Fix includes.
14390 * cli/cli-interp.c: Fix includes.
14391
14392 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14393
14394 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14395 for padding.
14396
14397 2019-01-16 Tom Tromey <tom@tromey.com>
14398
14399 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14400 earlier.
14401 (struct objfile) <msymbols_range>: Move from top level.
14402 <msymbols>: New method.
14403 (class objfile_msymbols): Remove.
14404 * symtab.c (default_collect_symbol_completion_matches_break_on):
14405 Update.
14406 * symmisc.c (dump_msymbols): Update.
14407 * stabsread.c (scan_file_globals): Update.
14408 * objc-lang.c (info_selectors_command, info_classes_command)
14409 (find_methods): Update.
14410 * minsyms.c (find_solib_trampoline_target): Update.
14411 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14412 * coffread.c (coff_symfile_read): Update.
14413 * ada-lang.c (ada_lookup_simple_minsym)
14414 (ada_collect_symbol_completion_matches): Update.
14415
14416 2019-01-16 Tom Tromey <tom@tromey.com>
14417
14418 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14419 type. Remove no-argument constructor.
14420 <iterator::operator++>: Simplify.
14421 <begin>: Update.
14422 <end>: Use minimal_symbol_count.
14423
14424 2019-01-16 Tom Tromey <tom@tromey.com>
14425
14426 * objfiles.h (struct objfile) <psymtabs>: New method.
14427 (class objfile_psymtabs): Remove.
14428 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14429 typedef.
14430 <range>: New method.
14431 (require_partial_symbols): Change return type.
14432 * psymtab.c (require_partial_symbols)
14433 (psym_expand_symtabs_matching): Update.
14434 * mdebugread.c (parse_partial_symbols): Update.
14435 * dbxread.c (dbx_end_psymtab): Update.
14436
14437 2019-01-15 Tom Tromey <tom@tromey.com>
14438
14439 * symtab.c (lookup_objfile_from_block)
14440 (lookup_symbol_in_objfile_symtabs)
14441 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14442 (find_line_symtab, info_sources_command)
14443 (default_collect_symbol_completion_matches_break_on)
14444 (make_source_files_completion_list): Update.
14445 * symmisc.c (print_objfile_statistics, dump_objfile)
14446 (maintenance_print_symbols, maintenance_info_symtabs)
14447 (maintenance_check_symtabs, maintenance_info_line_tables):
14448 Update.
14449 * source.c (select_source_symtab)
14450 (forget_cached_source_info_for_objfile): Update.
14451 * objfiles.h (class objfile_compunits): Remove.
14452 (struct objfile) <compunits_range>: New typedef.
14453 (compunits): New method.
14454 * objfiles.c (objfile_relocate1): Update.
14455 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14456 * maint.c (count_symtabs_and_blocks): Update.
14457 * linespec.c (iterate_over_all_matching_symtabs): Update.
14458 * cp-support.c (add_symbol_overload_list_qualified): Update.
14459 * coffread.c (coff_symtab_read): Update.
14460 * ada-lang.c (add_nonlocal_symbols)
14461 (ada_collect_symbol_completion_matches)
14462 (ada_add_global_exceptions): Update.
14463
14464 2019-01-15 Tom Tromey <tom@tromey.com>
14465
14466 * progspace.h (program_space) <objfiles_safe_range>: New
14467 typedef.
14468 <objfiles_safe>: New method.
14469 * objfiles.h (class all_objfiles_safe): Remove.
14470 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14471 * jit.c (jit_inferior_exit_hook): Update.
14472
14473 2019-01-17 Tom Tromey <tom@tromey.com>
14474
14475 * progspace.h (program_space) <objfiles_range>: New typedef.
14476 <objfiles>: New method.
14477 <objfiles_head>: Rename from objfiles.
14478 (object_files): Update.
14479 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14480 * guile/scm-pretty-print.c
14481 (ppscm_find_pretty_printer_from_objfiles): Update.
14482 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14483 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14484 Update.
14485 * python/py-progspace.c (pspy_get_objfiles): Update.
14486 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14487 Update.
14488 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14489 (objfpy_lookup_objfile_by_build_id): Update.
14490 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14491 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14492 Update.
14493 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14494 (expand_symtab_containing_pc, lookup_objfile_from_block)
14495 (lookup_static_symbol, basic_lookup_transparent_type)
14496 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14497 (find_line_symtab, info_sources_command)
14498 (default_collect_symbol_completion_matches_break_on)
14499 (make_source_files_completion_list, find_main_name): Update.
14500 * symmisc.c (print_symbol_bcache_statistics)
14501 (print_objfile_statistics, maintenance_print_symbols)
14502 (maintenance_print_msymbols, maintenance_print_objfiles)
14503 (maintenance_info_symtabs, maintenance_check_symtabs)
14504 (maintenance_expand_symtabs, maintenance_info_line_tables):
14505 Update.
14506 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14507 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14508 (map_overlay_command, unmap_overlay_command)
14509 (simple_overlay_update, expand_symtabs_matching)
14510 (map_symbol_filenames): Update.
14511 * symfile-debug.c (set_debug_symfile): Update.
14512 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14513 Update.
14514 * source.c (select_source_symtab, forget_cached_source_info):
14515 Update.
14516 * solib.c (solib_read_symbols): Update.
14517 * solib-spu.c (append_ocl_sos): Update.
14518 * psymtab.c (maintenance_print_psymbols)
14519 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14520 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14521 * printcmd.c (info_symbol_command): Update.
14522 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14523 Update.
14524 * objfiles.h (class all_objfiles): Remove.
14525 * objfiles.c (have_partial_symbols, have_full_symbols)
14526 (have_minimal_symbols, qsort_cmp, update_section_map)
14527 (shared_objfile_contains_address_p)
14528 (default_iterate_over_objfiles_in_search_order): Update.
14529 * objc-lang.c (info_selectors_command, info_classes_command)
14530 (find_methods): Update.
14531 * minsyms.c (find_solib_trampoline_target): Update.
14532 * maint.c (maintenance_info_sections)
14533 (maintenance_translate_address, count_symtabs_and_blocks):
14534 Update.
14535 * main.c (captured_main_1): Update.
14536 * linux-thread-db.c (try_thread_db_load_from_pdir)
14537 (has_libpthread): Update.
14538 * linespec.c (iterate_over_all_matching_symtabs)
14539 (search_minsyms_for_name): Update.
14540 * jit.c (jit_find_objf_with_entry_addr): Update.
14541 * hppa-tdep.c (find_unwind_entry)
14542 (hppa_lookup_stub_minimal_symbol): Update.
14543 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14544 Update.
14545 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14546 (elf_gnu_ifunc_resolve_by_got): Update.
14547 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14548 * dwarf-index-write.c (save_gdb_index_command): Update.
14549 * cp-support.c (add_symbol_overload_list_qualified): Update.
14550 * breakpoint.c (create_overlay_event_breakpoint)
14551 (create_longjmp_master_breakpoint)
14552 (create_std_terminate_master_breakpoint)
14553 (create_exception_master_breakpoint): Update.
14554 * blockframe.c (find_pc_partial_function): Update.
14555 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14556 (ada_collect_symbol_completion_matches)
14557 (ada_add_global_exceptions): Update.
14558
14559 2019-01-17 Tom Tromey <tom@tromey.com>
14560
14561 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14562 declare VEC.
14563 (solib_target_parse_libraries): Change return type.
14564 (library_list_start_segment, library_list_start_section)
14565 (library_list_end_library, library_list_start_library); Update.
14566 (solib_target_free_library_list): Remove.
14567 (solib_target_parse_libraries): Remove cleanup. Change return
14568 type.
14569 (solib_target_current_sos): Update.
14570
14571 2019-01-17 Tom Tromey <tromey@bapiya>
14572
14573 * valprint.c: Replace "the the" with "the".
14574 * symtab.c: Replace "the the" with "the".
14575 * solib.c: Replace "the the" with "the".
14576 * solib-dsbt.c: Replace "the the" with "the".
14577 * linespec.c: Replace "the the" with "the".
14578 * dwarf2loc.h: Replace "the the" with "the".
14579 * amd64-windows-tdep.c: Replace "the the" with "the".
14580 * aarch64-tdep.c: Replace "the the" with "the".
14581
14582 2019-01-16 Keith Seitz <keiths@redhat.com>
14583
14584 PR gdb/23773
14585 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14586 <builder>: Rename to ..
14587 <m_builder>: ... this and make private.
14588 (dwarf2_cu::get_builder): New method. Change all users of
14589 `builder' to use this method.
14590 (dwarf2_start_symtab): Move to ...
14591 (dwarf2_cu::start_symtab): ... here. Update all callers
14592 (setup_type_unit_groups): Move to ...
14593 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14594 callers.
14595 (dwarf2_cu::reset_builder): New method.
14596 (process_full_compunit, process_full_type_unit): Use
14597 dwarf2_cu::reset_builder.
14598 (follow_die_offset): Record the ancestor CU if it is different
14599 from the followed DIE's CU.
14600 (follow_die_sig_1): Likewise.
14601
14602 2019-01-15 Tom Tromey <tom@tromey.com>
14603
14604 * remote.c (class remote_state) <buf>: Now a char_vector.
14605 <buf_size>: Remove.
14606 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14607 parameter.
14608 (remote_target::getpkt_or_notif_sane_1)
14609 (remote_target::getpkt_sane)
14610 (remote_target::getpkt_or_notif_sane): Likewise.
14611 (class remote_target) <putpkt>: New overload.
14612 (remote_target::read_frame): Change type of "buf_p". Remove
14613 sizeof_p parameter.
14614 (packet_ok): New overload.
14615 (packet_check_result): New overload.
14616 Update all uses.
14617
14618 2019-01-14 Tom Tromey <tom@tromey.com>
14619
14620 * remote-notif.c (handle_notification, remote_notif_ack)
14621 (remote_notif_parse): Make "buf" const.
14622 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14623 const.
14624 (remote_notif_parse, remote_notif_ack, handle_notification):
14625 Likewise.
14626 * remote.c (remote_notif_stop_parse): Make "buf" const.
14627 (remote_target::remote_parse_stop_reply): Make "buf" const.
14628 (remote_notif_stop_ack): Make "buf" const.
14629
14630 2019-01-14 Tom Tromey <tom@tromey.com>
14631
14632 * remote.c (remote_console_output): Make parameter const.
14633
14634 2019-01-14 Tom Tromey <tom@tromey.com>
14635
14636 * target-debug.h (target_debug_print_signals): Constify.
14637 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14638 * procfs.c (procfs_target::pass_signals): Update.
14639 * linux-nat.c (linux_nat_target::pass_signals): Update.
14640 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14641 * target-delegates.c: Rebuild.
14642 * remote.c (remote_target::program_signals): Update.
14643 (remote_target::pass_signals): Update.
14644 * target.c (target_pass_signals): Constify argument.
14645 (target_program_signals): Likewise.
14646 * target.h (struct target_ops) <pass_signals, program_signals>:
14647 Constify argument.
14648 (target_pass_signals, target_program_signals): Constify argument.
14649
14650 2019-01-14 Tom Tromey <tom@tromey.com>
14651
14652 PR tui/28819:
14653 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14654
14655 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14656
14657 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14658 field.
14659 * rs6000-tdep.c: Include reggroups.h.
14660 (IS_V_ALIAS_PSEUDOREG): Define.
14661 (rs6000_register_name): Return names for the "vX" aliases.
14662 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14663 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14664 aliases. Call default_register_reggroup_p for all other
14665 pseudo-registers.
14666 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14667 New functions.
14668 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14669 Handle "vX" aliases.
14670 (v_alias_pseudo_register_collect): New function.
14671 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14672 (rs6000_gdbarch_init): Initialize "vX" aliases as
14673 pseudo-registers. Restore registration of
14674 rs6000_pseudo_register_reggroup_p with
14675 set_tdesc_pseudo_register_reggroup_p.
14676
14677 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14678
14679 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14680 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14681 set_gdbarch_num_pseudo_regs.
14682
14683 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14684
14685 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14686 Remove arg prefixname, add do_set and do_show.
14687 Add member functions set_list and show_list.
14688 * cli/cli-style.c (class cli_style_option): Update accordingly.
14689 (style_set_list): Move to file scope.
14690 (style_show_list): Likewise.
14691 (set_style): Call help_list.
14692 (show_style): Call cmd_show_list.
14693 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14694 Update to use the new macro.
14695
14696 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14697
14698 * ada-lang.c (_initialize_ada_language): Expand the help text
14699 for the "catch exception" command.
14700
14701 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14702
14703 * symtab.c (matching_obj_sections): Initialize obj,
14704 declare it closer to its usage.
14705
14706 2019-01-10 Tom Tromey <tom@tromey.com>
14707
14708 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14709 (basic_inf_threads_range): Remove.
14710 (inf_threads_range, inf_non_exited_threads_range)
14711 (safe_inf_threads_range): Use next_adapter.
14712
14713 2019-01-10 Keith Seitz <keiths@redhat.com>
14714
14715 PR gdb/23712
14716 PR symtab/23010
14717 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14718 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14719
14720 2019-01-10 Keith Seitz <keiths@redhat.com>
14721
14722 PR gdb/23712
14723 PR symtab/23010
14724 * dictionary.c (pending_to_vector): Remove.
14725 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14726 Remove _1 suffix, replacing functions of the same name. Update
14727 all callers.
14728 (dict_create_hashed, dict_create_hashed_expandable)
14729 (dict_create_linear, dict_create_linear_expandable, dict_free)
14730 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14731 Make functions static.
14732
14733 2019-01-10 Keith Seitz <keiths@redhat.com>
14734
14735 PR gdb/23712
14736 PR symtab/23010
14737 * dictionary.h (struct dictionary): Replace declaration with
14738 multidictionary.
14739 (dict_create_hashed, dict_create_hashed_expandable)
14740 (dict_create_linear, dict_create_linear_expandable)
14741 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14742 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14743 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14744 taking multidictionary argument.
14745 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14746 * block.h (struct block) <dict>: Change to multidictionary
14747 and rename `multidict'.
14748 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14749 symmisc.c: Update all dictionary references to multidictionary.
14750
14751 2019-01-10 Keith Seitz <keiths@redhat.com>
14752
14753 PR gdb/23712
14754 PR symtab/23010
14755 * dictionary.c: Include unordered_map.
14756 (pending_to_vector): New function.
14757 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14758 Rewrite the non-"_1" functions to take vector instead
14759 of linked list.
14760 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14761 "new" _1 versions of the same name.
14762 (multidictionary): Define.
14763 (std::hash<enum language): New definition.
14764 (collate_pending_symbols_by_language, mdict_create_hashed)
14765 (mdict_create_hashed_expandable, mdict_create_linear)
14766 (mdict_create_linear_expandable, mdict_free)
14767 (find_language_dictionary, create_new_language_dictionary)
14768 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14769 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14770 (mdict_size, mdict_empty): New functions.
14771 * dictionary.h (mdict_iterator): Define.
14772
14773 2019-01-10 Pedro Alves <palves@redhat.com>
14774
14775 * breakpoint.c (read_uploaded_action)
14776 (create_tracepoint_from_upload): Adjust to use
14777 gdb::unique_xmalloc_ptr.
14778 * ctf.c (ctf_write_uploaded_tp):
14779 (SET_ARRAY_FIELD): Use emplace_back.
14780 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14781 * tracefile-tfile.c (tfile_write_uploaded_tp):
14782 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14783 gdb::unique_xmalloc_ptr.
14784 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14785 at_string, cond_string, cmd_strings>: Replace char pointers
14786 with gdb::unique_xmalloc_ptr.
14787
14788 2019-01-10 Pedro Alves <palves@redhat.com>
14789
14790 * solib-target.c (library_list_start_library): Don't xstrdup name.
14791
14792 2019-01-10 Pedro Alves <palves@redhat.com>
14793
14794 * mdebugread.c (parse_partial_symbols): Use
14795 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14796
14797 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14798
14799 * linux-fork.c (scoped_switch_fork_info)
14800 <~scoped_switch_fork_info>: Fix incorrect variable name.
14801
14802 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14803
14804 * linux-fork.c (scoped_switch_fork_info)
14805 <scoped_switch_fork_info>: Make explicit.
14806 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14807
14808 2019-01-10 Tom Tromey <tom@tromey.com>
14809
14810 * objfiles.h (objfile::reset_psymtabs): Update.
14811 * objfiles.c (objfile::objfile): Update.
14812 * psymtab.h (psymtab_storage::obstack): Update.
14813 (psymtab_storage::m_obstack): Use gdb::optional.
14814 (class psymtab_storage): Update comment. Remove objfile
14815 parameter.
14816 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14817
14818 2019-01-10 Tom Tromey <tom@tromey.com>
14819
14820 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14821 <free_psymtabs>: Now private.
14822 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14823 (allocate_psymtab): Use new method.
14824
14825 2019-01-10 Tom Tromey <tom@tromey.com>
14826
14827 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14828 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14829 * mdebugread.c (parse_partial_symbols): Use
14830 allocate_dependencies.
14831 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14832 allocate_dependencies.
14833 (process_psymtab_comp_unit_reader)
14834 (build_type_psymtab_dependencies): Likewise.
14835 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14836
14837 2019-01-10 Tom Tromey <tom@tromey.com>
14838
14839 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14840 PSYMBOL_SET_LANGUAGE.
14841 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14842
14843 2019-01-10 Tom Tromey <tom@tromey.com>
14844
14845 * psymtab.h (psymtab_storage::obstack): New method.
14846 <m_obstack>: Rename from obstack; now private.
14847 * psymtab.c (psymtab_storage): Update.
14848 * dwarf2read.c (create_addrmap_from_index)
14849 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14850 Update.
14851
14852 2019-01-10 Tom Tromey <tom@tromey.com>
14853
14854 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14855 * objfiles.h (objfile::reset_psymtabs): New method.
14856
14857 2019-01-10 Tom Tromey <tom@tromey.com>
14858
14859 * symmisc.c (print_symbol_bcache_statistics): Update.
14860 (print_objfile_statistics): Update.
14861 * symfile.c (reread_symbols): Update.
14862 * psymtab.h (class psymtab_storage): New.
14863 * psymtab.c (psymtab_storage): New constructor.
14864 (~psymtab_storage): New destructor.
14865 (require_partial_symbols): Update.
14866 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14867 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14868 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14869 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14870 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14871 (start_psymtab_common, end_psymtab_common)
14872 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14873 (allocate_psymtab): Update.
14874 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14875 Update.
14876 (dump_psymtab_addrmap, maintenance_print_psymbols)
14877 (maintenance_check_psymtabs): Update.
14878 (class objfile_psymtabs): Move to objfiles.h.
14879 * psympriv.h (discard_psymtab): Now inline.
14880 (psymtab_discarder::psymtab_discarder): Update.
14881 (psymtab_discarder::~psymtab_discarder): Update.
14882 (ALL_OBJFILE_PSYMTABS): Rewrite.
14883 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14884 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14885 Remove fields.
14886 <partial_symtabs>: New field.
14887 (class objfile_psymtabs): Move from psymtab.h. Update.
14888 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14889 psymbol_cache.
14890 (objfile::~objfile): Don't destroy psymbol_cache.
14891 * mdebugread.c (parse_partial_symbols): Update.
14892 * dwarf2read.c (create_addrmap_from_index)
14893 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14894 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14895 (add_partial_subprogram, dwarf2_ranges_read): Update.
14896 * dwarf-index-write.c (write_address_map)
14897 (write_one_signatured_type, recursively_write_psymbols)
14898 (class debug_names, class debug_names, write_psymtabs_to_index):
14899 Update.
14900
14901 2019-01-10 Tom Tromey <tom@tromey.com>
14902
14903 * symtab.h (SYMBOL_SET_NAMES): Update.
14904 (symbol_set_names): Update.
14905 (MSYMBOL_SET_NAMES): Update.
14906 * symtab.c (symbol_set_names): Change argument to be an
14907 objfile_per_bfd_storage.
14908 * psymtab.c (add_psymbol_to_bcache): Update.
14909 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14910
14911 2019-01-10 Tom Tromey <tom@tromey.com>
14912
14913 * symtab.c (create_demangled_names_hash): Change argument to be an
14914 objfile_per_bfd_storage.
14915 (symbol_set_names): Update.
14916
14917 2019-01-10 Tom Tromey <tom@tromey.com>
14918
14919 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14920 init_psymbol_list.
14921 * psymtab.c (init_psymbol_list): Do nothing if already called.
14922 * psympriv.h (init_psymbol_list): Add comment.
14923 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14924 init_psymbol_list.
14925 * dbxread.c (dbx_symfile_read): Unconditionally call
14926 init_psymbol_list.
14927
14928 2019-01-10 Tom Tromey <tom@tromey.com>
14929
14930 * xcoffread.c (scan_xcoff_symtab): Update.
14931 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14932 "where".
14933 * mdebugread.c (parse_partial_symbols)
14934 (handle_psymbol_enumerators): Update.
14935 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14936 * dbxread.c (read_dbx_symtab): Update.
14937 * psympriv.h (psymbol_placement): New enum.
14938 (add_psymbol_to_list): Update.
14939
14940 2019-01-10 Tom Tromey <tom@tromey.com>
14941
14942 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14943 static_psymbols parameters.
14944 (scan_xcoff_symtab): Update.
14945 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14946 static_psymbols parameters.
14947 * psympriv.h (start_psymtab_common): Update.
14948 * mdebugread.c (parse_partial_symbols): Update.
14949 * dwarf2read.c (create_partial_symtab): Update.
14950 * dbxread.c (read_dbx_symtab): Update.
14951 (start_psymtab): Remove global_psymbols and static_psymbols
14952 parameters.
14953
14954 2019-01-10 Tom Tromey <tom@tromey.com>
14955
14956 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14957 * psymtab.c (allocate_psymtab): Add comment.
14958 * psympriv.h (allocate_psymtab): Add comment.
14959 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14960 initializations.
14961 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14962
14963 2019-01-10 Tom Tromey <tom@tromey.com>
14964
14965 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14966 Don't declare.
14967 * mipsread.c: Include mdebugread.h.
14968 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14969 Declare.
14970 * elfread.c: Include mdebugread.h.
14971
14972 2019-01-09 Tom Tromey <tom@tromey.com>
14973
14974 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14975 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14976 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14977 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14978 (psym_lookup_symbol, psym_find_last_source_symtab)
14979 (psym_forget_cached_source_info, psym_print_stats)
14980 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14981 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14982 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14983 (psym_find_compunit_symtab_by_address)
14984 (maintenance_print_psymbols, maintenance_info_psymtabs)
14985 (maintenance_check_psymtabs): Use ranged for.
14986 * psymtab.h (class objfile_psymtabs): New.
14987 (require_partial_symbols): Return objfile_psymtabs.
14988 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14989
14990 2019-01-09 Tom Tromey <tom@tromey.com>
14991
14992 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14993 (find_pc_mapped_section, list_overlays_command)
14994 (map_overlay_command, unmap_overlay_command)
14995 (simple_overlay_update): Use all_objfiles.
14996 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14997 * printcmd.c (info_symbol_command): Use all_objfiles.
14998 * objfiles.h (ALL_OBJSECTIONS): Remove.
14999 * maint.c (maintenance_translate_address): Use all_objfiles.
15000 * gcore.c (gcore_create_callback): Use all_objfiles.
15001 (objfile_find_memory_regions): Likewise.
15002
15003 2019-01-09 Tom Tromey <tom@tromey.com>
15004
15005 * symtab.c (find_line_symtab, info_sources_command)
15006 (make_source_files_completion_list): Use objfile_compunits.
15007 * source.c (select_source_symtab): Use objfile_compunits.
15008 * objfiles.h (struct objfile): Update comment.
15009 (ALL_OBJFILES): Remove.
15010 (ALL_FILETABS): Remove.
15011 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15012 objfile_compunits.
15013
15014 2019-01-09 Tom Tromey <tom@tromey.com>
15015
15016 * symmisc.c (print_objfile_statistics, dump_objfile)
15017 (maintenance_print_symbols): Use compunit_filetabs.
15018 * source.c (forget_cached_source_info_for_objfile): Use
15019 compunit_filetabs.
15020 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15021 (ALL_FILETABS): Use compunit_filetabs.
15022 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15023 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15024
15025 2019-01-09 Tom Tromey <tom@tromey.com>
15026
15027 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15028 (compunit_filetabs): New.
15029 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15030 compunit_filetabs.
15031 (info_sources_command, make_source_files_completion_list): Remove
15032 declaration.
15033 * symmisc.c (print_objfile_statistics, dump_objfile)
15034 (maintenance_print_symbols): Remove declaration.
15035 (maintenance_info_symtabs): Use compunit_filetabs.
15036 (maintenance_info_line_tables): Likewise.
15037 * source.c (select_source_symtab): Change local variable name.
15038 (forget_cached_source_info_for_objfile): Remove declaration.
15039 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15040 * objfiles.c (objfile_relocate1): Remove declaration.
15041 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15042 declaration.
15043 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15044 * coffread.c (coff_symtab_read): Remove declaration.
15045 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15046 compunit_filetabs.
15047
15048 2019-01-09 Tom Tromey <tom@tromey.com>
15049
15050 * symtab.c (lookup_objfile_from_block)
15051 (find_pc_sect_compunit_symtab, search_symbols)
15052 (default_collect_symbol_completion_matches_break_on): Use
15053 objfile_compunits.
15054 * objfiles.h (ALL_COMPUNITS): Remove.
15055 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15056 * cp-support.c (add_symbol_overload_list_qualified): Use
15057 objfile_compunits.
15058 * ada-lang.c (ada_collect_symbol_completion_matches)
15059 (ada_add_global_exceptions): Use objfile_compunits.
15060
15061 2019-01-09 Tom Tromey <tom@tromey.com>
15062
15063 * source.c (select_source_symtab)
15064 (forget_cached_source_info_for_objfile): Remove declaration.
15065 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15066 declaration.
15067 * maint.c (count_symtabs_and_blocks): Remove declaration.
15068 * cp-support.c (add_symbol_overload_list_qualified): Remove
15069 declaration.
15070 * coffread.c (coff_symtab_read): Remove declaration.
15071 * symtab.c (lookup_symbol_in_objfile_symtabs)
15072 (basic_lookup_transparent_type_1): Use objfile_compunits.
15073 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15074 (info_sources_command, search_symbols)
15075 (default_collect_symbol_completion_matches_break_on)
15076 (make_source_files_completion_list): Remove declaration.
15077 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15078 (ada_collect_symbol_completion_matches)
15079 (ada_add_global_exceptions): Remove declaration.
15080 * linespec.c (iterate_over_all_matching_symtabs): Use
15081 objfile_compunits.
15082 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15083 (class objfile_compunits): New.
15084 (ALL_COMPUNITS): Use objfile_compunits.
15085 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15086 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15087 objfile_compunits.
15088 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15089
15090 2019-01-09 Tom Tromey <tom@tromey.com>
15091
15092 * symtab.c (search_symbols)
15093 (default_collect_symbol_completion_matches_break_on): Use
15094 objfile_msymbols.
15095 * ada-lang.c (ada_lookup_simple_minsym)
15096 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15097 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15098 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15099 objfile_msymbols.
15100 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15101 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15102 * objc-lang.c (find_methods): Use objfile_msymbols.
15103 (info_selectors_command, info_classes_command): Likewise.
15104 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15105 * objfiles.h (class objfile_msymbols): New.
15106 (ALL_OBJFILE_MSYMBOLS): Remove.
15107 (ALL_MSYMBOLS): Remove.
15108
15109 2019-01-09 Tom Tromey <tom@tromey.com>
15110
15111 * common/next-iterator.h (next_adapter): Add Iterator template
15112 parameter.
15113 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15114 (class all_objfiles_safe): New.
15115 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15116 * objfiles.c (put_objfile_before): Update comment.
15117 (add_separate_debug_objfile): Likewise.
15118 (free_all_objfiles): Use all_objfiles_safe.
15119 (objfile_purge_solibs): Likewise.
15120
15121 2019-01-09 Tom Tromey <tom@tromey.com>
15122
15123 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15124 (expand_symtab_containing_pc, lookup_static_symbol)
15125 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15126 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15127 all_objfiles.
15128 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15129 * breakpoint.c (create_overlay_event_breakpoint)
15130 (create_longjmp_master_breakpoint)
15131 (create_std_terminate_master_breakpoint)
15132 (create_exception_master_breakpoint): Use all_objfiles.
15133 * linux-thread-db.c (try_thread_db_load_from_pdir)
15134 (has_libpthread): Use all_objfiles.
15135 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15136 * linespec.c (iterate_over_all_matching_symtabs)
15137 (search_minsyms_for_name): Use all_objfiles.
15138 * maint.c (maintenance_info_sections): Use all_objfiles.
15139 * main.c (captured_main_1): Use all_objfiles.
15140 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15141 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15142 * guile/scm-pretty-print.c
15143 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15144 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15145 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15146 (maintenance_print_msymbols): Use all_objfiles.
15147 * source.c (select_source_symtab): Use all_objfiles.
15148 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15149 * symfile.c (remove_symbol_file_command)
15150 (expand_symtabs_matching, map_symbol_filenames): Use
15151 all_objfiles.
15152 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15153 all_objfiles.
15154 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15155 * objc-lang.c (find_methods): Use all_objfiles.
15156 * objfiles.c (have_partial_symbols, have_full_symbols)
15157 (have_minimal_symbols, qsort_cmp)
15158 (default_iterate_over_objfiles_in_search_order): Use
15159 all_objfiles.
15160 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15161 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15162 (maintenance_check_psymtabs): Use all_objfiles.
15163 (ALL_PSYMTABS): Remove.
15164 * compile/compile-object-run.c (do_module_cleanup): Use
15165 all_objfiles.
15166 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15167 * cp-support.c (add_symbol_overload_list_qualified): Use
15168 all_objfiles.
15169 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15170 Use all_objfiles.
15171 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15172 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15173 all_objfiles.
15174 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15175 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15176 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15177 Uses all_objfiles.
15178 * solib.c (solib_read_symbols): Use all_objfiles
15179
15180 2019-01-09 Tom Tromey <tom@tromey.com>
15181
15182 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15183 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15184 all_objfiles.
15185 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15186 * symmisc.c (print_symbol_bcache_statistics)
15187 (print_objfile_statistics, maintenance_print_objfiles)
15188 (maintenance_info_symtabs, maintenance_check_symtabs)
15189 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15190 all_objfiles.
15191 * source.c (forget_cached_source_info): Use all_objfiles.
15192 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15193 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15194 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15195 * objfiles.c (update_section_map): Use all_objfiles.
15196 (shared_objfile_contains_address_p): Likewise.
15197 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15198 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15199
15200 2019-01-09 Tom Tromey <tom@tromey.com>
15201
15202 * common/next-iterator.h: New file.
15203 * objfiles.h (class all_objfiles): New.
15204 (struct objfile_iterator): New.
15205
15206 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15207
15208 * NEWS: Move the description of the changed "frame", "select-frame",
15209 and "info frame" commands to the Changed commands section.
15210
15211 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15212
15213 * gdbtypes.c (check_stub_method_group): Remove handling of old
15214 mangling schemes.
15215 * linespec.c (find_methods): Likewise.
15216 * stabsread.c (read_member_functions): Likewise.
15217 * valops.c (search_struct_method): Likewise.
15218 (value_struct_elt_for_reference): Likewise.
15219 * NEWS: Mention this change.
15220
15221 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15222
15223 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15224 print_source_lines.
15225 * source.c (print_source_lines_base): Update line number check.
15226 (print_source_lines): New function.
15227 (source_lines_range::source_lines_range): New function.
15228 * source.h (class source_lines_range): New class.
15229 (print_source_lines): New declaration.
15230
15231 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15232
15233 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15234
15235 2019-01-08 Tom Tromey <tom@tromey.com>
15236 Simon Marchi <simon.marchi@ericsson.com>
15237
15238 PR gdb/24060
15239 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15240 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15241 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15242 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15243 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15244 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15245
15246 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15247
15248 * source.c (select_source_symtab): Move header comment to
15249 declaration in source.h.
15250 (forget_cached_source_info_for_objfile): Likewise.
15251 (forget_cached_source_info): Likewise.
15252 (identify_source_line): Likewise.
15253 * source.h (identify_source_line): Move declaration from symtab.h
15254 and add comment from source.c
15255 (print_source_lines): Likewise.
15256 (forget_cached_source_info_for_objfile): Likewise.
15257 (forget_cached_source_info): Likewise.
15258 (select_source_symtab): Likewise.
15259 (enum print_source_lines_flag): Move definition from symtab.h.
15260 * symtab.h (identify_source_line): Move declaration to source.h.
15261 (print_source_lines): Likewise.
15262 (forget_cached_source_info_for_objfile): Likewise.
15263 (forget_cached_source_info): Likewise.
15264 (select_source_symtab): Likewise.
15265 (enum print_source_lines_flag): Move definition to source.h.
15266 * tui/tui-hooks.c: Add 'source.h' include.
15267
15268 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15269
15270 * source.c (print_source_lines_base): Handle requests to print
15271 reverse line number sequences, and guard against empty lines
15272 string.
15273
15274 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15275
15276 * source.c (print_source_lines_base): Fix skip of '\r' if next
15277 character is '\n'.
15278
15279 2019-01-06 Tom Tromey <tom@tromey.com>
15280
15281 * c-exp.y (struct c_parse_state) <macro_original_text,
15282 expansion_obstack>: New member.
15283 (macro_original_text, expansion_obstack): Remove globals.
15284 (scan_macro_expansion, scanning_macro_expansion)
15285 (finished_macro_expansion): Update.
15286 (scan_macro_cleanup): Remove.
15287 (yylex, c_parse): Update.
15288
15289 2019-01-06 Tom Tromey <tom@tromey.com>
15290
15291 * c-exp.y (struct c_parse_state) <strings>: New member.
15292 (operator_stoken): Update.
15293
15294 2019-01-06 Tom Tromey <tom@tromey.com>
15295
15296 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15297 (union type_stack_elt) <typelist_val>: Now a pointer to
15298 std::vector.
15299 (type_stack_cleanup): Don't declare.
15300 (push_typelist): Update.
15301 * parse.c (pop_typelist): Return a std::vector.
15302 (push_typelist): Take a std::vector.
15303 (follow_types): Update. Do not free args.
15304 (type_stack_cleanup): Remove.
15305 * c-exp.y (struct c_parse_state): New.
15306 (cpstate): New global.
15307 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15308 (nonempty_typelist): Update.
15309 (func_mod): Create a new vector.
15310 (c_parse): Create a c_parse_state.
15311 (check_parameter_typelist): Do not delete params.
15312 (function_method): Update. Do not delete type_list.
15313
15314 2019-01-06 Tom Tromey <tom@tromey.com>
15315
15316 PR gdb/28155:
15317 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15318 check_typedef.
15319 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15320 (print_return_value): Likewise.
15321
15322 2019-01-05 Tom Tromey <tom@tromey.com>
15323
15324 * contrib/cleanup_check.py: Remove.
15325 * contrib/gcc-with-excheck: Remove.
15326 * contrib/exsummary.py: Remove.
15327 * contrib/excheck.py: Remove.
15328
15329 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15330
15331 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15332 NULL. Initialize tpprev to NULL instead of assigning it
15333 to NULL on the next statement.
15334 * windows-nat.c (windows_delete_thread): Remove check for
15335 main_thread_id before printing thread exit notifications.
15336 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15337 Remove thread ID check against main_thread_id.
15338 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15339 windows_delete_thread.
15340 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15341
15342 2019-01-04 Tom Tromey <tom@tromey.com>
15343
15344 * compile/compile.c (_initialize_compile): Use upper case for
15345 metasyntactic variables.
15346 * symmisc.c (_initialize_symmisc): Use upper case for
15347 metasyntactic variables.
15348 * psymtab.c (_initialize_psymtab): Use upper case for
15349 metasyntactic variables.
15350 * demangle.c (demangle_command): Use upper case for metasyntactic
15351 variables.
15352 (_initialize_demangler): Likewise.
15353 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15354 variables.
15355
15356 2019-01-03 Tom Tromey <tom@tromey.com>
15357
15358 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15359
15360 2019-01-03 Tom Tromey <tom@tromey.com>
15361
15362 * python/py-symtab.c (salpy_str): Update.
15363 (struct salpy_sal_object) <symtab>: Now a PyObject.
15364 (salpy_dealloc): Update.
15365 (del_objfile_sal): Use gdbpy_ref.
15366
15367 2019-01-03 Tom Tromey <tom@tromey.com>
15368
15369 * python/py-type.c (convert_field): Use new_reference. Return
15370 gdbpy_ref.
15371 (make_fielditem): Return gdbpy_ref.
15372 (typy_fields): Update.
15373 (typy_getitem): Update.
15374 (field_name): Return gdbpy_ref. Use new_reference.
15375 (typy_iterator_iternext): Update.
15376
15377 2019-01-03 Tom Tromey <tom@tromey.com>
15378
15379 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15380
15381 2019-01-03 Tom Tromey <tom@tromey.com>
15382
15383 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15384 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15385 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15386 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15387 (pspy_set_type_printers): Likewise.
15388 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15389 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15390 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15391 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15392 (objfpy_set_type_printers): Likewise.
15393
15394 2019-01-03 Tom Tromey <tom@tromey.com>
15395
15396 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15397 (gdbpy_print_stack): Use gdbpy_err_fetch.
15398 * python/python-internal.h (class gdbpy_err_fetch): New class.
15399 (class gdbpy_enter) <m_error_type, m_error_value,
15400 m_error_traceback>: Remove.
15401 <m_error>: New member.
15402 (gdbpy_exception_to_string): Don't declare.
15403 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15404 * python/py-value.c (convert_value_from_python): Use
15405 gdbpy_err_fetch.
15406 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15407 gdbpy_exception_to_string.
15408 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15409 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15410 gdbpy_err_fetch.
15411
15412 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15413
15414 * linux-nat.c (delete_lwp_cleanup): Delete.
15415 (struct lwp_deleter): New struct.
15416 (lwp_info_up): New typedef.
15417 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15418 lwp_info_up.
15419
15420 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15421
15422 * linux-fork.c (class scoped_switch_fork_info): New class.
15423 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15424
15425 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15426
15427 * valops.c (find_overload_match): Remove use of null_cleanup, and
15428 calls to do_cleanups.
15429
15430 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15431
15432 * compile/compile-cplus-types.c
15433 (compile_cplus_instance::decl_name): Handle changes to
15434 cp_func_name.
15435 * cp-support.c (cp_func_name): Update header comment, update
15436 return type.
15437 * cp-support.h (cp_func_name): Update return type in declaration.
15438 * valops.c (find_overload_match): Move temp_func local to top
15439 level of function and change its type. Use temp_func to hold and
15440 delete temporary string obtained from cp_func_name.
15441
15442 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15443
15444 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15445 gdb::char_vector, remove cleanup, and update uses of `msg`.
15446
15447 2019-01-03 Jim Wilson <jimw@sifive.com>
15448
15449 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15450
15451 2019-01-02 Tom Tromey <tom@tromey.com>
15452
15453 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15454 (tdesc_parse_xml): Remove cleanups.
15455 * target-descriptions.h (make_cleanup_free_target_description):
15456 Don't declare.
15457 (target_desc_deleter): New struct.
15458 (target_desc_up): New typedef.
15459 * target-descriptions.c (target_desc_deleter::operator()): Rename
15460 from free_target_description.
15461 (make_cleanup_free_target_description): Remove.
15462
15463 2019-01-02 Tom Tromey <tom@tromey.com>
15464
15465 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15466 constructor, destructor.
15467 (linespec_parser): Remove typedef.
15468 (~linespec_parser): Rename from linespec_parser_delete.
15469 (linespec_lex_to_end, linespec_complete_label)
15470 (linespec_complete): Update.
15471 (decode_line_full): Remove cleanups.
15472 (decode_line_1): Update.
15473
15474 2019-01-02 Tom Tromey <tom@tromey.com>
15475
15476 * python/python-internal.h (inferior_to_inferior_object): Change
15477 return type.
15478 * python/py-exitedevent.c (create_exited_event_object): Update.
15479 * python/py-inferior.c (inferior_to_inferior_object): Return
15480 gdbpy_ref.
15481 (python_new_inferior, python_inferior_deleted)
15482 (thread_to_thread_object, delete_thread_object)
15483 (build_inferior_list, gdbpy_selected_inferior): Update.
15484 * python/py-infthread.c (create_thread_object): Update. Also fail
15485 if inferior_to_inferior_object fails.
15486
15487 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15488
15489 * inferior.h (class inferior) <displaced_step_state>: New field.
15490 * infrun.h (struct displaced_step_state): Move here from
15491 infrun.c. Initialize fields, add constructor.
15492 <inf>: Remove field.
15493 <reset>: New method.
15494 * infrun.c (struct displaced_step_inferior_state): Move to
15495 infrun.h.
15496 (displaced_step_inferior_states): Remove.
15497 (get_displaced_stepping_state): Adust.
15498 (displaced_step_in_progress_any_inferior): Adjust.
15499 (displaced_step_in_progress_thread): Adjust.
15500 (displaced_step_in_progress): Adjust.
15501 (add_displaced_stepping_state): Remove.
15502 (get_displaced_step_closure_by_addr): Adjust.
15503 (remove_displaced_stepping_state): Remove.
15504 (infrun_inferior_exit): Call displaced_step_state.reset.
15505 (use_displaced_stepping): Don't check for NULL.
15506 (displaced_step_prepare_throw): Call
15507 get_displaced_stepping_state.
15508 (displaced_step_fixup): Don't check for NULL.
15509 (prepare_for_detach): Don't check for NULL.
15510
15511 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15512
15513 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15514 in case of call that did not complete.
15515
15516 2019-01-02 Andrey Utkin <autkin@undo.io>
15517
15518 * symfile.c (find_separate_debug_file): Fix search of debug files for
15519 remote debuggee.
15520
15521 2019-01-02 Tom Tromey <tom@tromey.com>
15522
15523 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15524 indentation.
15525 * python/py-frame.c (frapy_older): Remove cast.
15526 (frapy_newer): Likewise.
15527 * python/py-breakpoint.c (local_setattro): Remove cast.
15528 * python/py-arch.c (archpy_name): Remove local variable.
15529 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15530
15531 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15532
15533 * unittests/basic_string_view/element_access/char/empty.cc:
15534 Fix year range in copyright header.
15535
15536 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15537
15538 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15539 Delete.
15540 <operator==>: Update with for removed field.
15541 <hash>: Likewise.
15542 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15543 <isa_features>: ...this.
15544 <abi_features>: New field.
15545 (riscv_isa_flen): Update comment.
15546 (riscv_abi_xlen): New declaration.
15547 (riscv_abi_flen): New declaration.
15548 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15549 isa_features.
15550 (riscv_abi_xlen): New function.
15551 (riscv_isa_flen): Update to get answer from isa_features.
15552 (riscv_abi_flen): New function.
15553 (riscv_has_fp_abi): Update to get answer from abi_features.
15554 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15555 xlen and flen.
15556 (riscv_call_info) <xlen, flen>: Update comment.
15557 (riscv_call_arg_struct): Remove invalid assertions
15558 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15559 is removed.
15560 (riscv_gdbarch_init): Gather isa features and abi features
15561 separately, ensure both match on the gdbarch when reusing an old
15562 gdbarch. Relax an error check to allow 32-bit abi float to run on
15563 a target with 64-bit float hardware.
15564
15565 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15566
15567 * source.c (search_command_helper): Stop reverse search
15568 when line 1 has been searched.
15569
15570 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15571
15572 * record-full.c (record_full_base_target::close): Rewrite
15573 record_full_core_buf_list free logic.
15574
15575 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15576
15577 * break-catch-syscall.c (print_one_catch_syscall): xfree
15578 the last text.
15579
15580 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15581
15582 * top.c (print_gdb_version): Update Copyright year in version
15583 message.
15584
15585 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15586
15587 Update copyright year range in all GDB files.
15588
15589 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15590
15591 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15592
15593 For older changes see ChangeLog-2018.
15594 \f
15595 Local Variables:
15596 mode: change-log
15597 left-margin: 8
15598 fill-column: 74
15599 version-control: never
15600 coding: utf-8
15601 End:
15602