7288efa37c5a4f250e6f21e0127e04dea3aa289f
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
4 (arc_insn_get_memory_offset): Likewise.
5 (arc_insn_dump): Likewise.
6 * cp-support.c (test_cp_symbol_name_matches): Likewise.
7 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
8 * dictionary.c (dict_iterator_next): Likewise.
9 (dict_iter_match_first): Likewise.
10 (dict_iter_match_next): Likewise.
11 * f-lang.c (evaluate_subexp_f): Likewise.
12 * hppa-tdep.c (hppa_read_pc): Likewise.
13 * i386-tdep.c (i386_floatformat_for_type): Likewise.
14 * parse.c (write_exp_elt_msym): Likewise.
15 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
16 * remote.c (remote_packet_size): Likewise.
17 (remote_notif_stop_parse): Likewise.
18 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
19 * s12z-tdep.c (s12z_disassemble_info): Likewise.
20 * source.c (prepare_path_for_appending): Likewise.
21 * sparc64-linux-tdep.c
22 (sparc64_linux_handle_segmentation_fault); Likewise.
23 * stack.c (frame_selection_by_function_completer): Likewise.
24
25 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
26
27 * completer.c (set_gdb_completion_word_break_characters):
28 Remove.
29
30 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
31
32 * dwarf-index-write.c: Include dwarf-index-write.h.
33 * mi/mi-interp.c: Include mi/mi-interp.h.
34
35 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
36
37 * aarch32-tdep.c: Include aarch32-tdep.h.
38 * aarch32-tdep.h: Forward-declare struct target_desc.
39
40 2019-11-26 Christian Biesinger <cbiesinger@google.com>
41
42 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
43 strerror.
44 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
45 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
46
47 2019-11-25 Tom de Vries <tdevries@suse.de>
48
49 * contrib/words.sh: Add -c option.
50
51 2019-11-25 Christian Biesinger <cbiesinger@google.com>
52
53 * solib.c (solib_find_1): Change int to bool.
54 (exec_file_find): Change int to bool.
55 (solib_find): Change int to bool.
56 (solib_read_symbols): Change int to bool.
57 (solib_used): Change int to bool.
58 (solib_add): Change int to bool.
59 (info_sharedlibrary_command): Change int to bool.
60 (solib_contains_address_p): Change int to bool.
61 (solib_keep_data_in_core): Change int to bool.
62 (in_solib_dynsym_resolve_code): Change int to bool.
63 (reload_shared_libraries_1): Change int to bool.
64 (gdb_sysroot_changed): Change int to bool.
65 * solib.h (solib_read_symbols): Change int to bool.
66 (solib_contains_address_p): Change int to bool.
67 (solib_keep_data_in_core): Change int to bool.
68 (in_solib_dynsym_resolve_code): Change int to bool.
69 (libpthread_name_p): Change int to bool.
70
71 2019-11-25 Luis Machado <luis.machado@linaro.org>
72
73 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
74 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
75 (remote_packet_max_chars): New static global.
76 (show_remote_packet_max_chars): New function.
77 (remote_target::putpkt_binary): Adjust to use new
78 remote_packet_max_chars option.
79 (remote_target::getpkt_or_notif_sane_1): Likewise.
80 (_initialize_remote): Register new remote-packet-max-chars option.
81
82 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
83
84 * m68k-linux-nat.c: Include gdbarch.h.
85
86 2019-11-24 Tom Tromey <tom@tromey.com>
87
88 * symfile.c (read_symbols): Update.
89 * psymtab.c (require_partial_symbols): Change type of "verbose" to
90 bool.
91 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
92 (psym_lookup_symbol, psym_find_last_source_symtab)
93 (psym_forget_cached_source_info, psym_print_stats)
94 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
95 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
96 (psym_map_matching_symbols, psym_expand_symtabs_matching)
97 (psym_find_compunit_symtab_by_address)
98 (maintenance_print_psymbols, maintenance_info_psymtabs)
99 (maintenance_check_psymtabs): Update.
100 * psymtab.h (require_partial_symbols): Change type of "verbose" to
101 bool.
102
103 2019-11-22 Tom Tromey <tom@tromey.com>
104
105 * observable.h: Update comments.
106
107 2019-11-22 Tom Tromey <tromey@adacore.com>
108
109 * ada-tasks.c (ada_task_is_alive): Make parameter const.
110 (print_ada_task_info): Don't try to fetch thread id if task is not
111 alive.
112
113 2019-11-22 Christian Biesinger <cbiesinger@google.com>
114
115 * ada-exp.y: Update.
116 * ada-lang.c (sort_choices): Update.
117 (ada_print_symbol_signature): Update.
118 (resolve_subexp): Update.
119 (ada_parse_renaming): Update.
120 (ada_read_renaming_var_value): Update.
121 (lesseq_defined_than): Update.
122 (remove_extra_symbols): Update.
123 (remove_irrelevant_renamings): Update.
124 (ada_add_block_symbols): Update.
125 (ada_collect_symbol_completion_matches): Update.
126 (ada_is_renaming_symbol): Update.
127 (aggregate_assign_from_choices): Update.
128 (ada_evaluate_subexp): Update.
129 (ada_has_this_exception_support): Update.
130 (ada_is_non_standard_exception_sym): Update.
131 (ada_add_exceptions_from_frame): Update.
132 (ada_add_global_exceptions): Update.
133 (ada_print_subexp): Update.
134 * ax-gdb.c (gen_var_ref): Update.
135 (gen_maybe_namespace_elt): Update.
136 (gen_expr_for_cast): Update.
137 (gen_expr): Update.
138 * block.h: Update.
139 * blockframe.c (find_pc_partial_function): Update.
140 * breakpoint.c (print_breakpoint_location): Update.
141 (update_static_tracepoint): Update.
142 * btrace.c (ftrace_print_function_name): Update.
143 (ftrace_function_switched): Update.
144 * buildsym.c (find_symbol_in_list): Update.
145 * c-exp.y: Update.
146 * c-typeprint.c (c_print_typedef): Update.
147 (c_type_print_template_args): Update.
148 * cli/cli-cmds.c (edit_command): Update.
149 (list_command): Update.
150 (print_sal_location): Update.
151 * coffread.c (patch_opaque_types): Update.
152 (process_coff_symbol): Update.
153 (coff_read_enum_type): Update.
154 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
155 (convert_one_symbol): Update.
156 (hash_symname): Update.
157 (eq_symname): Update.
158 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
159 * compile/compile-cplus-types.c (debug_print_scope): Update.
160 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
161 * compile/compile-object-load.c (get_out_value_type): Update.
162 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
163 (search_symbol_list): Update.
164 (cp_lookup_symbol_imports_or_template): Update.
165 * cp-support.c (overload_list_add_symbol): Update.
166 * ctfread.c (psymtab_to_symtab): Update.
167 * dbxread.c (cp_set_block_scope): Update.
168 * dictionary.c (iter_match_first_hashed): Update.
169 (iter_match_next_hashed): Update.
170 (insert_symbol_hashed): Update.
171 (iter_match_next_linear): Update.
172 * dictionary.h: Update.
173 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
174 (locexpr_describe_location_piece): Update.
175 (locexpr_describe_location_1): Update.
176 (locexpr_generate_c_location): Update.
177 (loclist_describe_location): Update.
178 (loclist_generate_c_location): Update.
179 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
180 (read_func_scope): Update.
181 (process_enumeration_scope): Update.
182 (new_symbol): Update.
183 (dwarf2_const_value): Update.
184 (dwarf2_symbol_mark_computed): Update.
185 * eval.c (evaluate_funcall): Update.
186 (evaluate_subexp_standard): Update.
187 * expprint.c (print_subexp_standard): Update.
188 (dump_subexp_body_standard): Update.
189 * f-valprint.c (info_common_command_for_block): Update.
190 * findvar.c (get_hosting_frame): Update.
191 (default_read_var_value): Update.
192 * go-lang.c (go_symbol_package_name): Update.
193 * guile/scm-block.c (bkscm_print_block_smob): Update.
194 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
195 (gdbscm_symbol_name): Update.
196 (gdbscm_symbol_linkage_name): Update.
197 (gdbscm_symbol_print_name): Update.
198 * infcall.c (get_function_name): Update.
199 * infcmd.c (jump_command): Update.
200 (finish_command): Update.
201 * infrun.c (insert_exception_resume_breakpoint): Update.
202 * linespec.c (canonicalize_linespec): Update.
203 (create_sals_line_offset): Update.
204 (convert_linespec_to_sals): Update.
205 (complete_label): Update.
206 (find_label_symbols_in_block): Update.
207 * m2-typeprint.c (m2_print_typedef): Update.
208 * mdebugread.c (mdebug_reg_to_regnum): Update.
209 (parse_symbol): Update.
210 (mylookup_symbol): Update.
211 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
212 (list_args_or_locals): Update.
213 * objc-lang.c (compare_selectors): Update.
214 (info_selectors_command): Update.
215 (compare_classes): Update.
216 (info_classes_command): Update.
217 (find_imps): Update.
218 * p-typeprint.c (pascal_print_typedef): Update.
219 * printcmd.c (build_address_symbolic): Update.
220 (info_address_command): Update.
221 (print_variable_and_value): Update.
222 * python/py-framefilter.c (extract_sym): Update.
223 (py_print_single_arg): Update.
224 * python/py-symbol.c (sympy_str): Update.
225 (sympy_get_name): Update.
226 (sympy_get_linkage_name): Update.
227 * python/python.c (gdbpy_rbreak): Update.
228 * record-btrace.c (btrace_get_bfun_name): Update.
229 (btrace_call_history): Update.
230 * rust-lang.c (rust_print_typedef): Update.
231 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
232 * stabsread.c (stab_reg_to_regnum): Update.
233 (define_symbol): Update.
234 (read_enum_type): Update.
235 (common_block_end): Update.
236 (cleanup_undefined_types_1): Update.
237 (scan_file_globals): Update.
238 * stack.c (print_frame_arg): Update.
239 (print_frame_args): Update.
240 (find_frame_funname): Update.
241 (info_frame_command_core): Update.
242 (iterate_over_block_locals): Update.
243 (print_block_frame_labels): Update.
244 (do_print_variable_and_value): Update.
245 (iterate_over_block_arg_vars): Update.
246 (return_command): Update.
247 * symmisc.c (dump_symtab_1): Update.
248 (print_symbol): Update.
249 * symtab.c (eq_symbol_entry): Update.
250 (symbol_cache_dump): Update.
251 (lookup_language_this): Update.
252 (find_pc_sect_line): Update.
253 (skip_prologue_sal): Update.
254 (symbol_search::compare_search_syms): Update.
255 (treg_matches_sym_type_name): Update.
256 (search_symbols): Update.
257 (print_symbol_info): Update.
258 (rbreak_command): Update.
259 (completion_list_add_symbol): Update.
260 (find_gnu_ifunc): Update.
261 (get_symbol_address): Update.
262 (search_module_symbols): Update.
263 (info_module_subcommand): Update.
264 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
265 (SYMBOL_LINKAGE_NAME): Remove.
266 (SYMBOL_DEMANGLED_NAME): Remove.
267 (SYMBOL_PRINT_NAME): Remove.
268 (SYMBOL_SEARCH_NAME): Remove.
269 * tracepoint.c (set_traceframe_context): Update.
270 (validate_actionline): Update.
271 (collection_list::collect_symbol): Update.
272 (encode_actions_1): Update.
273 (info_scope_command): Update.
274 (print_one_static_tracepoint_marker): Update.
275 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
276 * valops.c (address_of_variable): Update.
277 (find_overload_match): Update.
278 (find_oload_champ): Update.
279
280 2019-11-22 Christian Biesinger <cbiesinger@google.com>
281
282 * ada-lang.c (ada_lookup_simple_minsym): Update.
283 (ada_collect_symbol_completion_matches): Update.
284 * ada-tasks.c (read_atcb): Update.
285 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
286 (amd64_windows_skip_trampoline_code): Update.
287 * arm-tdep.c (skip_prologue_function): Update.
288 (arm_skip_stack_protector): Update.
289 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
290 (arm_wince_skip_main_prologue): Update.
291 * ax-gdb.c (gen_expr): Update.
292 * block.c (call_site_for_pc): Update.
293 * blockframe.c (find_pc_partial_function): Update.
294 * breakpoint.c (set_breakpoint_location_function): Update.
295 * btrace.c (ftrace_print_function_name): Update.
296 (ftrace_function_switched): Update.
297 * c-valprint.c (print_unpacked_pointer): Update.
298 * coffread.c (coff_symfile_read): Update.
299 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
300 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
301 * dwarf-index-write.c (write_psymbols): Update.
302 * dwarf2loc.c (call_site_to_target_addr): Update.
303 (func_verify_no_selftailcall): Update.
304 (tailcall_dump): Update.
305 (call_site_find_chain_1): Update.
306 (dwarf_expr_reg_to_entry_parameter): Update.
307 * elfread.c (elf_gnu_ifunc_record_cache): Update.
308 * eval.c (evaluate_funcall): Update.
309 (evaluate_subexp_standard): Update.
310 (evaluate_subexp_for_sizeof): Update.
311 * expprint.c (print_subexp_standard): Update.
312 (dump_subexp_body_standard): Update.
313 * frame.c (get_prev_frame_always_1): Update.
314 * frv-tdep.c (frv_skip_main_prologue): Update.
315 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
316 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
317 (gnuv3_get_typename_from_type_info): Update.
318 (gnuv3_skip_trampoline): Update.
319 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
320 * i386-tdep.c (i386_skip_main_prologue): Update.
321 (i386_pe_skip_trampoline_code): Update.
322 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
323 * infcall.c (get_function_name): Update.
324 * linespec.c (minsym_found): Update.
325 * linux-fork.c (info_checkpoints_command): Update.
326 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
327 (m32c_m16c_pointer_to_address): Update.
328 * maint.c (maintenance_translate_address): Update.
329 * minsyms.c (add_minsym_to_hash_table): Update.
330 (add_minsym_to_demangled_hash_table): Update.
331 (lookup_minimal_symbol_mangled): Update.
332 (lookup_minimal_symbol_demangled): Update.
333 (lookup_minimal_symbol_linkage): Update.
334 (lookup_minimal_symbol_text): Update.
335 (lookup_minimal_symbol_by_pc_name): Update.
336 (minimal_symbol_is_less_than): Update.
337 (compact_minimal_symbols): Update.
338 (build_minimal_symbol_hash_tables): Update.
339 (find_solib_trampoline_target): Update.
340 * mips-tdep.c (mips_stub_frame_sniffer): Update.
341 (mips_skip_pic_trampoline_code): Update.
342 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
343 * objc-lang.c (info_selectors_command): Update.
344 (info_classes_command): Update.
345 (find_methods): Update.
346 (find_imps): Update.
347 * p-valprint.c (pascal_val_print): Update.
348 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
349 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
350 * printcmd.c (build_address_symbolic): Update.
351 (info_symbol_command): Update.
352 * psymtab.c (psymbol_name_matches): Update.
353 (match_partial_symbol): Update.
354 (lookup_partial_symbol): Update.
355 (print_partial_symbols): Update.
356 (sort_pst_symbols): Update.
357 (maintenance_check_psymtabs): Update.
358 * python/py-framefilter.c (py_print_frame): Update.
359 * python/python.c (gdbpy_rbreak): Update.
360 * record-btrace.c (btrace_get_bfun_name): Update.
361 (btrace_call_history): Update.
362 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
363 (rs6000_skip_trampoline_code): Update.
364 * sol-thread.c (info_cb): Update.
365 * stabsread.c (scan_file_globals): Update.
366 * stack.c (find_frame_funname): Update.
367 (info_frame_command_core): Update.
368 * symmisc.c (dump_msymbols): Update.
369 * symtab.c (symbol_natural_name): Rename to..,
370 (general_symbol_info::natural_name): ...this.
371 (symbol_demangled_name): Rename to...
372 (general_symbol_info::demangled_name): ...this.
373 (symbol_search_name): Rename to...
374 (general_symbol_info::search_name): ...this.
375 (symbol_matches_search_name): Update.
376 (find_pc_sect_line): Update.
377 (skip_prologue_sal): Update.
378 (search_symbols): Update.
379 (print_msymbol_info): Update.
380 (rbreak_command): Update.
381 (completion_list_add_msymbol): Update.
382 (completion_list_objc_symbol): Update.
383 (get_msymbol_address): Update.
384 * symtab.h (struct general_symbol_info): Add member functions
385 natural_name (), linkage_name (), print_name (), demangled_name (),
386 and search_name ().
387 (SYMBOL_NATURAL_NAME): Update.
388 (symbol_natural_name): Move to a member function on general_symbol_info.
389 (SYMBOL_DEMANGLED_NAME): Update.
390 (symbol_demangled_name): Move to a member function on
391 general_symbol_info.
392 (SYMBOL_SEARCH_NAME): Update.
393 (symbol_search_name): Move to a member function on general_symbol_info.
394 (MSYMBOL_NATURAL_NAME): Remove.
395 (MSYMBOL_LINKAGE_NAME): Remove.
396 (MSYMBOL_PRINT_NAME): Remove.
397 (MSYMBOL_DEMANGLED_NAME): Remove.
398 (MSYMBOL_SEARCH_NAME): Remove.
399 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
400
401 2019-11-22 Christian Biesinger <cbiesinger@google.com>
402
403 * symtab.c (create_demangled_names_hash): Use per_bfd->
404 minimal_symbol_count for computing the initial size, if greater
405 than our default size.
406
407 2019-11-22 Tom de Vries <tdevries@suse.de>
408
409 * contrib/words.sh: Improve words extraction.
410
411 2019-11-22 Tom de Vries <tdevries@suse.de>
412
413 * contrib/words.sh: Combine sed invocations.
414
415 2019-11-21 Christian Biesinger <cbiesinger@google.com>
416
417 * Makefile.in: Update.
418 * demangle.c: Rename to...
419 * gdb-demangle.c: ..this.
420 (is_cplus_marker): Change return type to bool.
421 (_initialize_demangler): Rename to...
422 (_initialize_gdb_demangle): ...this.
423 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
424 * symtab.h (demangle): Remove declaration; instead include
425 gdb-demangle.h.
426
427 2019-11-21 Tom Tromey <tromey@adacore.com>
428
429 * gdbsupport/format.c (format_pieces): Parse %I64d.
430 * unittests/format_pieces-selftests.c (test_windows_formats): New
431 function.
432 (run_tests): Call it.
433
434 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
435
436 Byte reverse display of variables with DW_END_big, DW_END_little
437 (DW_AT_endianity) dwarf attributes if different than the native
438 byte order.
439 * ada-lang.c (ada_value_binop):
440 Use type_byte_order instead of gdbarch_byte_order.
441 * ada-valprint.c (printstr):
442 (ada_val_print_string):
443 * ada-lang.c (value_pointer):
444 (ada_value_binop):
445 Use type_byte_order instead of gdbarch_byte_order.
446 * c-lang.c (c_get_string):
447 Use type_byte_order instead of gdbarch_byte_order.
448 * c-valprint.c (c_val_print_array):
449 Use type_byte_order instead of gdbarch_byte_order.
450 * cp-valprint.c (cp_print_class_member):
451 Use type_byte_order instead of gdbarch_byte_order.
452 * dwarf2loc.c (rw_pieced_value):
453 Use type_byte_order instead of gdbarch_byte_order.
454 * dwarf2read.c (read_base_type): Handle DW_END_big,
455 DW_END_little
456 * f-lang.c (f_get_encoding):
457 Use type_byte_order instead of gdbarch_byte_order.
458 * findvar.c (default_read_var_value):
459 Use type_byte_order instead of gdbarch_byte_order.
460 * gdbtypes.c (check_types_equal):
461 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
462 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
463 and TYPE_ENDIANITY_LITTLE if set.
464 (type_byte_order): new function.
465 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
466 (struct main_type) <flag_endianity_not_default>:
467 New field.
468 (type_byte_order): New function.
469 * infcmd.c (default_print_one_register_info):
470 Use type_byte_order instead of gdbarch_byte_order.
471 * p-lang.c (pascal_printstr):
472 Use type_byte_order instead of gdbarch_byte_order.
473 * p-valprint.c (pascal_val_print):
474 Use type_byte_order instead of gdbarch_byte_order.
475 * printcmd.c (print_scalar_formatted):
476 Use type_byte_order instead of gdbarch_byte_order.
477 * solib-darwin.c (darwin_current_sos):
478 Use type_byte_order instead of gdbarch_byte_order.
479 * solib-svr4.c (solib_svr4_r_ldsomap):
480 Use type_byte_order instead of gdbarch_byte_order.
481 * stap-probe.c (stap_modify_semaphore):
482 Use type_byte_order instead of gdbarch_byte_order.
483 * target-float.c (target_float_same_format_p):
484 Use type_byte_order instead of gdbarch_byte_order.
485 * valarith.c (scalar_binop):
486 (value_bit_index):
487 Use type_byte_order instead of gdbarch_byte_order.
488 * valops.c (value_cast):
489 Use type_byte_order instead of gdbarch_byte_order.
490 * valprint.c (generic_emit_char):
491 (generic_printstr):
492 (val_print_string):
493 Use type_byte_order instead of gdbarch_byte_order.
494 * value.c (unpack_long):
495 (unpack_bits_as_long):
496 (unpack_value_bitfield):
497 (modify_field):
498 (pack_long):
499 (pack_unsigned_long):
500 Use type_byte_order instead of gdbarch_byte_order.
501 * findvar.c (unsigned_pointer_to_address):
502 (signed_pointer_to_address):
503 (unsigned_address_to_pointer):
504 (address_to_signed_pointer):
505 (default_read_var_value):
506 (default_value_from_register):
507 Use type_byte_order instead of gdbarch_byte_order.
508 * gnu-v3-abi.c (gnuv3_make_method_ptr):
509 Use type_byte_order instead of gdbarch_byte_order.
510 * riscv-tdep.c (riscv_print_one_register_info):
511 Use type_byte_order instead of gdbarch_byte_order.
512
513 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
516 (current_ui_gdb_stdin_ptr): Likewise.
517 (current_ui_gdb_stderr_ptr): Likewise.
518 (current_ui_gdb_stdlog_ptr): Likewise.
519 (current_ui_current_uiout_ptr): Likewise.
520 (gen_ret_current_ui_field_ptr): Remove.
521
522 2019-11-21 Tom de Vries <tdevries@suse.de>
523
524 PR gdb/24956
525 * cli/cli-script.c (execute_control_command): Only switch to
526 INTERP_CONSOLE's ui_out when INTERP_MI is active.
527
528 2019-11-19 Tom Tromey <tom@tromey.com>
529
530 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
531 Now static. Change type of "name".
532 (tui_set_win_height_command): Don't copy "arg".
533 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
534 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
535
536 2019-11-19 Ali Tamur <tamur@google.com>
537
538 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
539 "if (attr != nullptr)".
540 (dwarf2_find_base_address): Likewise.
541 (dwarf2_build_include_psymtabs): Likewise.
542 (read_cutu_die_from_dwo): Likewise.
543 (read_func_scope): Likewise.
544 (read_call_site_scope): Likewise.
545 (dwarf2_get_pc_bounds): Likewise.
546 (dwarf2_record_block_ranges): Likewise.
547 (dwarf2_add_field): Likewise.
548 (dwarf2_add_member_fn): Likewise.
549 (read_structure_type): Likewise.
550 (read_enumeration_type): Likewise.
551 (read_array_type): Likewise.
552 (read_array_order): Likewise.
553 (read_set_type): Likewise.
554 (read_common_block): Likewise.
555 (read_tag_reference_type): Likewise.
556 (read_tag_string_type): Likewise.
557 (read_subroutine_type): Likewise.
558 (read_base_type): Likewise.
559 (read_subrange_type): Likewise.
560 (new_symbol): Likewise.
561 (prepare_one_comp_unit): Likewise.
562
563 2019-11-19 Tom Tromey <tromey@adacore.com>
564
565 * windows-nat.c (windows_nat_target::attach): Include GetLastError
566 result in error when DebugActiveProcess fails.
567
568 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
569 Pedro Alves <palves@redhat.com>
570
571 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
572 * target.c (target_stack::push): Call 'unpush' if there's a
573 target on top of the stack.
574
575 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
576
577 * python/py-block.c (blpy_dealloc): Call tp_free.
578 (blpy_block_syms_dealloc): Likewise.
579 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
580 * python/py-inferior.c (infpy_dealloc): Likewise.
581 * python/py-lazy-string.c (stpy_dealloc): Likewise.
582 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
583 * python/py-symbol.c (sympy_dealloc): Likewise.
584 * python/py-symtab.c (stpy_dealloc): Likewise.
585 * python/py-type.c (typy_iterator_dealloc): Likewise.
586
587 2019-11-18 Christian Biesinger <cbiesinger@google.com>
588
589 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
590 constructor instead of using a class initializer.
591
592 2019-11-15 Christian Biesinger <cbiesinger@google.com>
593
594 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
595 * configure: Regenerate.
596 * configure.ac: Don't source common.host.
597 * gdbsupport/common.host: Remove.
598 * gdbsupport/mingw-strerror.c: Remove.
599 * gdbsupport/posix-strerror.c: Rename to...
600 * gdbsupport/safe-strerror.c: ...this.
601
602 2019-11-15 Christian Biesinger <cbiesinger@google.com>
603
604 * maint.c (scoped_command_stats::print_time): Use localtime_r
605 instead of localtime (provided through gnulib if necessary).
606 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
607 of ctime.
608
609 2019-11-15 Christian Biesinger <cbiesinger@google.com>
610
611 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
612 avoid compile errors.
613
614 2019-11-15 Christian Biesinger <cbiesinger@google.com>
615
616 * config.in: Regenerate.
617 * configure: Regenerate.
618 * gdbsupport/common.m4: No longer check for strerror_r.
619 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
620 POSIX version of strerror_r, now that gnulib provides it if
621 necessary.
622
623 2019-11-14 Christian Biesinger <cbiesinger@google.com>
624
625 * README (`configure' options): Update.
626
627 2019-11-14 Tom Tromey <tromey@adacore.com>
628
629 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
630 expected type for the RHS if the LHS is a convenience variable.
631
632 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
635 Provide explicit default and copy constructor.
636
637 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
638
639 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
640 only call Py_INCREF (newbp) in the bppy_pending_object case.
641
642 2019-11-13 Tom Tromey <tromey@adacore.com>
643
644 PR build/25182:
645 * psympriv.h (partial_symbol): Remove static assert.
646 * symtab.h (general_symbol_info, symbol): Remove static assert.
647
648 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * gdbsupport/format.c (format_pieces::format_pieces): Support
651 printf 'z' size modifier.
652 * gdbsupport/format.h (enum argclass): Add size_t_arg.
653 * printcmd.c (ui_printf): Handle size_t_arg.
654 * ui-out.c (ui_out::vmessage): Likewise.
655 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
656 function.
657 (run_tests): Call test_format_int_sizes.
658
659 2019-11-12 Christian Biesinger <cbiesinger@google.com>
660
661 * ada-exp.y (write_ambiguous_var): Update.
662 * buildsym.c (add_symbol_to_list): Update.
663 * dwarf2read.c (read_variable): Update.
664 (new_symbol): Update.
665 * jit.c (finalize_symtab): Update.
666 * language.c (language_alloc_type_symbol): Update.
667 * symtab.c (fixup_symbol_section): Update.
668 (initialize_objfile_symbol_1): Move code to...
669 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
670 (allocate_symbol): Update.
671 (allocate_template_symbol): Update.
672 (get_symbol_address): Update.
673 * symtab.h (struct symbol): Inherit from general_symbol_info instead
674 of having as a field, and add a constructor.
675 (SYMBOL_VALUE): Update.
676 (SYMBOL_VALUE_ADDRESS): Update.
677 (SET_SYMBOL_VALUE_ADDRESS): Update.
678 (SYMBOL_VALUE_BYTES): Update.
679 (SYMBOL_VALUE_COMMON_BLOCK): Update.
680 (SYMBOL_BLOCK_VALUE): Update.
681 (SYMBOL_VALUE_CHAIN): Update.
682 (SYMBOL_LANGUAGE): Update.
683 (SYMBOL_SECTION): Update.
684 (SYMBOL_OBJ_SECTION): Update.
685 (SYMBOL_SET_LANGUAGE): Update.
686 (SYMBOL_SET_LINKAGE_NAME): Update.
687 (SYMBOL_SET_NAMES): Update.
688 (SYMBOL_NATURAL_NAME): Update.
689 (SYMBOL_LINKAGE_NAME): Update.
690 (SYMBOL_DEMANGLED_NAME): Update.
691 (SYMBOL_SEARCH_NAME): Update.
692 (SYMBOL_MATCHES_SEARCH_NAME): Update.
693 (struct symbol): Update.
694 (struct template_symbol): Update.
695 (struct rust_vtable_symbol): Update.
696 * xcoffread.c (SYMBOL_DUP): Update.
697
698 2019-11-12 Tom Tromey <tom@tromey.com>
699
700 * tui/tui-layout.c (show_layout): Set current_layout.
701 (show_source_disasm_command, show_data)
702 (show_source_or_disasm_and_command): Don't set current_layout.
703
704 2019-11-12 Tom Tromey <tom@tromey.com>
705
706 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
707
708 2019-11-12 Tom Tromey <tom@tromey.com>
709
710 * tui/tui-win.c (resize_message): New global.
711 (show_tui_resize_message): New function.
712 (tui_async_resize_screen): Print message if requested.
713 (_initialize_tui_win): Add tui-resize-message setting.
714 * NEWS: Add entry for new commands.
715
716 2019-11-11 Tom Tromey <tom@tromey.com>
717
718 * tui/tui.c (tui_initialize_readline): Add new bindable readline
719 functions.
720
721 2019-11-11 Christian Biesinger <cbiesinger@google.com>
722
723 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
724
725 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
728 function.
729 * python/python-internal.h (gdbpy_lookup_static_symbols):
730 Declare new function.
731 * python/python.c (python_GdbMethods): Add
732 gdb.lookup_static_symbols method.
733 * NEWS: Mention gdb.lookup_static_symbols.
734
735 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
738 static block of current object file first. Also fix typo in
739 header comment.
740
741 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 * stack.c (set_last_displayed_sal): Delete.
744 (last_displayed_sal_valid): Delete.
745 (last_displayed_pspace): Delete.
746 (last_displayed_addr): Delete.
747 (last_displayed_symtab): Delete.
748 (last_displayed_line): Delete.
749 (class last_displayed_symtab_info_type): New.
750 (last_displayed_symtab_info): New static global variable.
751 (print_frame_info): Call methods on last_displayed_symtab_info.
752 (clear_last_displayed_sal): Update header comment, and make use of
753 last_displayed_symtab_info.
754 (last_displayed_sal_is_valid): Likewise.
755 (get_last_displayed_pspace): Likewise.
756 (get_last_displayed_addr): Likewise.
757 (get_last_displayed_symtab): Likewise.
758 (get_last_displayed_line): Likewise.
759 (get_last_displayed_sal): Likewise.
760 * stack.h (clear_last_displayed_sal): Update header comment.
761 (last_displayed_sal_is_valid): Likewise.
762 (get_last_displayed_pspace): Likewise.
763 (get_last_displayed_addr): Likewise.
764 (get_last_displayed_symtab): Likewise.
765 (get_last_displayed_line): Likewise.
766 (get_last_displayed_sal): Likewise.
767
768 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * stack.c (frame_show_address): Convert return type to bool.
771 * stack.h (frame_show_address): Likewise, and update header
772 comment.
773
774 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
777 * unittests/vec-utils-selftests.c: New file.
778 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
779
780 2019-11-10 Tom Tromey <tom@tromey.com>
781
782 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
783 (tui_highlight_win): Likewise.
784 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
785 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
786 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
787 Don't set can_highlight.
788
789 2019-11-10 Tom Tromey <tom@tromey.com>
790
791 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
792 Remove unused declaration.
793
794 2019-11-08 Tom Tromey <tromey@adacore.com>
795
796 * top.c (read_command_file): Update.
797 (command_line_input): Make return type const.
798 * python/py-gdb-readline.c: Update.
799 * linespec.c (decode_line_2): Update.
800 * defs.h (command_line_input): Make return type const.
801 * cli/cli-script.c (read_next_line): Make return type const.
802 * ada-lang.c (get_selections): Update.
803
804 2019-11-06 Christian Biesinger <cbiesinger@google.com>
805
806 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
807 * mi/mi-main.c (output_cores): Likewise.
808 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
809 (linux_xfer_osdata_modules): Likewise.
810 * remote.c (register_remote_support_xml): Likewise.
811 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
812 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
813
814 2019-11-06 Tom Tromey <tom@tromey.com>
815
816 * tui/tui-interp.c: Don't include readline.h.
817 * tui/tui-hooks.c: Don't include readline.h.
818 * symmisc.c: Include tilde.h, not readline.h.
819 * symfile.c: Include tilde.h, not readline.h.
820 * source.c: Include tilde.h, not readline.h.
821 * solib.c: Include tilde.h, not readline.h.
822 * psymtab.c: Include tilde.h, not readline.h.
823 * exec.c: Include tilde.h, not readline.h.
824 * corelow.c: Include tilde.h, not readline.h.
825 * cli/cli-dump.c: Include tilde.h, not readline.h.
826 * cli/cli-cmds.c: Don't include readline.h.
827
828 2019-11-05 Tom Tromey <tom@tromey.com>
829
830 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
831 (tui_disassemble): Set addr_size.
832 (tui_disasm_window::set_contents): Use addr_size.
833
834 2019-11-05 Tom Tromey <tom@tromey.com>
835
836 * rust-lang.c (rust_language_defn): Update.
837 * python/py-value.c (valpy_string): Call c_get_string.
838 * p-lang.c (pascal_language_defn): Update.
839 * opencl-lang.c (opencl_language_defn): Update.
840 * objc-lang.c (objc_language_defn): Update.
841 * m2-lang.c (m2_language_defn): Update.
842 * language.c (unknown_language_defn, auto_language_defn): Update.
843 (default_get_string): Remove.
844 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
845 * go-lang.c (go_language_defn): Update.
846 * f-lang.c (f_language_defn): Update.
847 * d-lang.c (d_language_defn): Update.
848 * c-lang.c (c_language_defn, cplus_language_defn)
849 (asm_language_defn, minimal_language_defn): Update.
850 * ada-lang.c (ada_language_defn): Update.
851 * language.h (struct language_defn) <la_get_string>: Remove.
852 (LA_GET_STRING): Remove.
853 (default_get_string): Don't declare.
854
855 2019-11-05 Tom Tromey <tom@tromey.com>
856
857 * tui/tui-source.h (struct tui_source_window): Inline
858 constructor. Remove destructor.
859 <style_changed, m_observable>: Move to superclass.
860 * tui/tui-winsource.h (tui_copy_source_line): Declare.
861 (struct tui_source_window_base): Move private members to end.
862 <style_changed, m_observable>: Move from tui_source_window.
863 * tui/tui-winsource.c (tui_copy_source_line): Move from
864 tui-source.c. Rename from copy_source_line. Add special handling
865 for negative line number.
866 (tui_source_window_base::style_changed): Move from
867 tui_source_window.
868 (tui_source_window_base): Register observer.
869 (~tui_source_window_base): New.
870 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
871 rename.
872 (tui_source_window::set_contents): Use tui_copy_source_line.
873 (tui_source_window::tui_source_window): Move to tui-source.h.
874 (tui_source_window::~tui_source_window): Remove.
875 (tui_source_window::style_changed): Move to superclass.
876 * tui/tui-disasm.c (tui_disassemble): Create string file with
877 styling, when possible. Add "addr_size" parameter.
878 (tui_disasm_window::set_contents): Use tui_copy_source_line.
879 Don't compute maximum size.
880 (len_without_escapes): New function
881
882 2019-11-05 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
885 std::string.
886 * tui/tui-winsource.c (tui_show_source_line): Update.
887 * tui/tui-source.c (tui_source_window::set_contents): Update.
888 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
889
890 2019-11-05 Christian Biesinger <cbiesinger@google.com>
891
892 * symtab.h (gdb_static_assert): Put && operator at the beginning
893 of the line instead of the end.
894
895 2019-11-04 Christian Biesinger <cbiesinger@google.com>
896
897 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
898 and sizeof (symbol).
899 * symtab.h: Add a static_assert for sizeof (partial_symbol).
900
901 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
902
903 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
904 * configure.host: Mark *-*-solaris2.10* obsolete.
905 * configure.tgt: Mark Solaris < 11 obsolete.
906 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
907 Update target triplet.
908
909 2019-11-01 Tom Tromey <tromey@adacore.com>
910
911 * utils.c (print_sys_errmsg): Simplify.
912
913 2019-11-01 Tom Tromey <tromey@adacore.com>
914
915 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
916
917 2019-11-01 Christian Biesinger <cbiesinger@google.com>
918
919 * configure: Regenerate.
920 * configure.ac: Remove check for strerror_r.
921 * gdbsupport/common.m4: Check for strerror_r.
922
923 2019-11-01 Luis Machado <luis.machado@linaro.org>
924
925 PR gdb/25124
926
927 * arm-tdep.c (arm_per_objfile): Rename to ...
928 (arm_per_bfd): ... this.
929 (arm_objfile_data_key): Rename to ...
930 (arm_bfd_data_key): ... this.
931 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
932 data.
933 (arm_record_special_symbol): Likewise.
934
935 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
936
937 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
938 end.
939 * c-typeprint.c (c_print_typedef): Likewise.
940 * f-typeprint.c (f_print_typedef): Likewise.
941 * m2-typeprint.c (m2_print_typedef): Likewise.
942 * p-typeprint.c (pascal_print_typedef): Likewise.
943 * rust-lang.c (rust_print_typedef): Likewise.
944 * symtab.c (print_symbol_info): Print a newline after calling
945 typedef_print.
946
947 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
948
949 * symtab.c (info_module_cmdlist): New variable.
950 (info_module_command): New function.
951 (search_module_symbols): New function.
952 (info_module_subcommand): New function.
953 (struct info_modules_var_func_options): New struct.
954 (info_modules_var_func_options_defs): New variable.
955 (make_info_modules_var_func_options_def_group): New function.
956 (info_module_functions_command): New function.
957 (info_module_variables_command): New function.
958 (info_module_var_func_command_completer): New function.
959 (_initialize_symtab): Register new 'info module functions' and
960 'info module variables' commands.
961 * symtab.h (typedef symbol_search_in_module): New typedef.
962 (search_module_symbols): Declare new function.
963 * NEWS: Mention new commands.
964
965 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
968 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
969 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
970 MODULES_DOMAIN.
971 (scan_partial_symbols): Only create partial module symbols for non
972 declarations.
973 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
974 and MODULES_DOMAIN.
975 * symtab.c (search_domain_name): Likewise.
976 (search_symbols): Likewise.
977 (print_symbol_info): Likewise.
978 (symtab_symbol_info): Likewise.
979 (info_modules_command): New function.
980 (_initialize_symtab): Register 'info modules' command.
981 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
982 * NEWS: Mention new 'info modules' command.
983
984 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
985
986 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
987 and $_gdb_maint_setting_str.
988
989 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
990
991 * cli/cli-cmds.c (setting_cmd, value_from_setting)
992 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
993 (str_value_from_setting, gdb_setting_str_internal_fn)
994 (gdb_maint_setting_str_internal_fn): New functions.
995 (_initialize_cli_cmds): Define the new convenience functions.
996 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
997 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
998
999 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1000
1001 * agent.c (set_can_use_agent): When the setting is turned on,
1002 look up agent symbols if we don't have them yet.
1003 (agent_new_objfile): Don't look up agent symbols when the agent
1004 setting is off.
1005
1006 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1007
1008 * config.in: Regenerate.
1009
1010 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1011
1012 * configure: Regenerate.
1013 * configure.ac: Check for strerror_r.
1014 * gdbsupport/common-utils.h (safe_strerror): Change return value
1015 to const char * and document that this function is now threadsafe.
1016 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1017 thread_local and call strerror_r, if available.
1018 * utils.c (perror_string): Update.
1019 (print_sys_errmsg): Update.
1020
1021 2019-10-31 Luis Machado <luis.machado@linaro.org>
1022
1023 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1024 objfile_key.
1025 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1026 objfile to fetch per-bfd data.
1027 (arm_find_exidx_entry): Likewise.
1028
1029 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1030
1031 * gdbsupport/agent.c (debug_agent): Change type to bool.
1032 (use_agent): Likewise.
1033 (all_agent_symbols_look_up): Likewise.
1034 (agent_loaded_p): Change return value to bool.
1035 (agent_look_up_symbols): Update.
1036 (agent_capability_check): Change return value to bool.
1037 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1038 (debug_agent): Change type to bool.
1039 (use_agent): Likewise.
1040 (agent_capability_check): Change return value to bool.
1041
1042 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1043
1044 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1045 (build_minimal_symbol_hash_tables): Code to clear the table moved
1046 to clear_minimal_symbol_hash_tables.
1047 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1048 when needed.
1049
1050 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * infcmd.c: Remove includes.
1053 * infrun.c: Remove includes.
1054
1055 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1056
1057 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1058 (grow_vect): Remove declaration.
1059 (ada_type_of_array): Remove declaration.
1060 (ada_update_initial_language): Remove declaration.
1061 (ada_fold_name): Remove declaration.
1062 (ada_fill_in_ada_prototype): Remove declaration.
1063 (user_select_syms): Remove declaration.
1064 (get_selections): Remove declaration.
1065 (ada_tag_type): Remove declaration.
1066 (ada_value_tag): Remove declaration.
1067 (ada_is_others_clause): Remove declaration.
1068 (ada_in_variant): Remove declaration.
1069 (ada_value_struct_elt): Remove declaration.
1070 (ada_attribute_name): Remove declaration.
1071 (ada_system_address_type): Remove declaration.
1072 * ada-lang.c (ada_watch_location_expression): Make static.
1073 (GROW_VECT): Move here from ada-lang.h.
1074 (grow_vect): Make static.
1075 (ada_update_initial_language): Make static.
1076 (ada_fold_name): Make static.
1077 (ada_type_of_array): Make static.
1078 (encoded_ordered_before): Move up.
1079 (sort_choices): Move up.
1080 (print_signatures): Move up.
1081 (ada_print_symbol_signature): Move up.
1082 (get_selections): Move up and make static.
1083 (user_select_syms): Move up and make static.
1084 (ada_value_struct_elt): Move up and make static.
1085 (ada_tag_type): Make static.
1086 (ada_value_tag): Make static.
1087 (ada_is_others_clause): Make static.
1088 (ada_in_variant): Make static.
1089 (ada_attribute_name): Make static.
1090
1091 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * ada-lang.c: Remove includes.
1094 * ada-typeprint.c: Remove includes.
1095 * ada-valprint.c: Remove includes.
1096
1097 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * addrmap.c: Add static assertions of type size, moved from
1100 _initialize_addrmap.
1101 (_initialize_addrmap): Remove.
1102
1103 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1104
1105 * coffread.c (record_minimal_symbol): Update.
1106 (process_coff_symbol): Update.
1107 * dbxread.c (read_dbx_symtab): Update.
1108 * dwarf2read.c (add_partial_symbol): Update.
1109 (fixup_go_packaging): Update.
1110 (load_partial_dies): Update.
1111 (new_symbol): Update.
1112 * elfread.c (record_minimal_symbol): Change signature to use
1113 gdb::string_view instead of name+len.
1114 (elf_symtab_read): Update.
1115 (elf_rel_plt_read): Update.
1116 * mdebugread.c (parse_partial_symbols): Update.
1117 (handle_psymbol_enumerators): Update.
1118 (new_symbol): Update.
1119 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1120 to use gdb::string_view instead of name+len.
1121 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1122 * psympriv.h (add_psymbol_to_list): Likewise.
1123 * psymtab.c (add_psymbol_to_bcache): Likewise.
1124 (add_psymbol_to_list): Likewise.
1125 * stabsread.c (define_symbol): Update.
1126 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1127 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1128 (symbol_set_names): Likewise.
1129 * xcoffread.c (scan_xcoff_symtab): Update.
1130
1131 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1132
1133 * symtab.h (symbol_set_names): Document that copy_name must be
1134 set to true for non-nullterminated strings.
1135 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1136 linkage_name if the entry was not found and we need to demangle.
1137
1138 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1139
1140 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1141 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1142 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1143 * gdbsupport/gdb_binary_search.h: New file.
1144
1145 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1146
1147 * NEWS: Mention new --with-system-gdbinit-dir option.
1148 * config.in: Regenerate.
1149 * configure: Regenerate.
1150 * configure.ac: Add new option --with-system-gdbinit-dir.
1151 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1152 for a ".gdb" suffix.
1153 * main.c (get_init_files): Change system_gdbinit argument to
1154 a vector and return the files in SYSTEM_GDBINIT_DIR in
1155 addition to SYSTEM_GDBINIT.
1156 (captured_main_1): Update.
1157 (print_gdb_help): Update.
1158 * top.c (print_gdb_configuration): Also print the value of
1159 SYSTEM_GDBINIT_DIR.
1160
1161 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1162
1163 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1164 that takes gdb::string_view arguments.
1165
1166 2019-10-26 Tom de Vries <tdevries@suse.de>
1167
1168 * aarch64-linux-tdep.c: Fix typos in comments.
1169 * aarch64-tdep.c: Same.
1170 * ada-lang.c: Same.
1171 * amd64-nat.c: Same.
1172 * arc-tdep.c: Same.
1173 * arch/aarch64-insn.c: Same.
1174 * block.c: Same.
1175 * breakpoint.h: Same.
1176 * btrace.h: Same.
1177 * c-varobj.c: Same.
1178 * cli/cli-decode.c: Same.
1179 * cli/cli-script.c: Same.
1180 * cli/cli-utils.h: Same.
1181 * coff-pe-read.c: Same.
1182 * coffread.c: Same.
1183 * compile/compile-cplus-symbols.c: Same.
1184 * compile/compile-object-run.c: Same.
1185 * completer.c: Same.
1186 * corelow.c: Same.
1187 * cp-support.c: Same.
1188 * demangle.c: Same.
1189 * dwarf-index-write.c: Same.
1190 * dwarf2-frame.c: Same.
1191 * dwarf2-frame.h: Same.
1192 * eval.c: Same.
1193 * frame-base.h: Same.
1194 * frame.h: Same.
1195 * gdbcmd.h: Same.
1196 * gdbtypes.h: Same.
1197 * gnu-nat.c: Same.
1198 * guile/scm-objfile.c: Same.
1199 * i386-tdep.c: Same.
1200 * i386-tdep.h: Same.
1201 * infcall.c: Same.
1202 * infcall.h: Same.
1203 * linux-nat.c: Same.
1204 * m68k-tdep.c: Same.
1205 * macroexp.c: Same.
1206 * memattr.c: Same.
1207 * mi/mi-cmd-disas.c: Same.
1208 * mi/mi-getopt.h: Same.
1209 * mi/mi-main.c: Same.
1210 * minsyms.c: Same.
1211 * nat/aarch64-sve-linux-sigcontext.h: Same.
1212 * objfiles.h: Same.
1213 * ppc-linux-nat.c: Same.
1214 * ppc-linux-tdep.c: Same.
1215 * ppc-tdep.h: Same.
1216 * progspace.h: Same.
1217 * prologue-value.h: Same.
1218 * python/py-evtregistry.c: Same.
1219 * python/py-instruction.h: Same.
1220 * record-btrace.c: Same.
1221 * record-full.c: Same.
1222 * remote.c: Same.
1223 * rs6000-tdep.c: Same.
1224 * ser-tcp.c: Same.
1225 * sol-thread.c: Same.
1226 * sparc-sol2-tdep.c: Same.
1227 * sparc64-tdep.c: Same.
1228 * stabsread.c: Same.
1229 * symfile.c: Same.
1230 * symtab.h: Same.
1231 * target.c: Same.
1232 * tracepoint.c: Same.
1233 * tui/tui-data.h: Same.
1234 * tui/tui-io.c: Same.
1235 * tui/tui-win.c: Same.
1236 * tui/tui.c: Same.
1237 * unittests/rsp-low-selftests.c: Same.
1238 * user-regs.h: Same.
1239 * utils.c: Same.
1240 * utils.h: Same.
1241 * valarith.c: Same.
1242 * valops.c: Same.
1243 * valprint.c: Same.
1244 * valprint.h: Same.
1245 * value.c: Same.
1246 * value.h: Same.
1247 * varobj.c: Same.
1248 * x86-nat.h: Same.
1249 * xtensa-tdep.c: Same.
1250
1251 2019-10-25 Ali Tamur <tamur@google.com>
1252
1253 * charset.c (find_charset_names): Reflect API change.
1254
1255 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1256
1257 * symtab.c (struct demangled_name_entry): Change demangled name
1258 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1259 part of the struct anymore.
1260 (symbol_set_names): No longer obstack allocate + copy the demangled
1261 name, just store the allocated name from bfd.
1262
1263 2019-10-25 Tom Tromey <tromey@adacore.com>
1264
1265 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1266 (bsearch_cie_cmp, add_cie): Remove.
1267 (find_cie): Reimplement.
1268 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1269 (dwarf2_build_frame_info): Update.
1270
1271 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1272
1273 PR gdb/25126
1274 * symfile.c (reread_symbols): Call forget_cached_source_info to
1275 clear the stale source cache.
1276
1277 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1278
1279 * configure: Regenerate.
1280 * configure.ac: Remove code that sets python_has_threads.
1281
1282 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1283
1284 * config.in: Regenerate.
1285 * configure: Regenerate.
1286 * configure.ac: Remove the code that uses sed to get the python
1287 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1288
1289 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1292 error paths.
1293
1294 2019-10-23 Tom Tromey <tom@tromey.com>
1295
1296 * arc-tdep.c: Remove ".." from include.
1297 * frv-tdep.c: Remove ".." from include.
1298 * lm32-tdep.c: Remove ".." from include.
1299 * microblaze-tdep.c: Remove ".." from include.
1300 * or1k-tdep.h: Remove ".." from include.
1301 * s12z-tdep.c: Remove ".." from include.
1302 * Makefile.in (OPCODES_CFLAGS): Add comment.
1303 (TOP_CFLAGS): New variable.
1304 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1305
1306 2019-10-23 Tom Tromey <tom@tromey.com>
1307
1308 * Makefile.in (READLINE_DIR): Update.
1309
1310 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1311
1312 * infcall.c (call_function_by_hand_dummy): Fix the function
1313 comment. And extract out a code section into...
1314 (reserve_stack_space): ...this new function.
1315
1316 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1317
1318 * infcall.c (value_arg_coerce): Remove an unused parameter.
1319 (call_function_by_hand_dummy): Update the call to
1320 'value_arg_coerce'.
1321
1322 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1323
1324 * infcall.c (call_function_by_hand_dummy): Refactor.
1325
1326 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1327
1328 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1329
1330 2019-10-23 Tom Tromey <tom@tromey.com>
1331
1332 * configure: Rebuild.
1333 * configure.ac: Don't check for sigprocmask.
1334 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1335
1336 2019-10-23 Tom Tromey <tom@tromey.com>
1337
1338 * configure: Rebuild.
1339 * acinclude.m4: Use m4_include, not sinclude.
1340
1341 2019-10-23 Tom de Vries <tdevries@suse.de>
1342
1343 PR breakpoints/24687
1344 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1345
1346 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1347
1348 * symtab.c (struct demangled_name_entry) <language>: Change from
1349 bitfield to regular variable.
1350
1351 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1352
1353 * symtab.c (struct demangled_name_entry): Add a constructor.
1354 (free_demangled_name_entry): New function to call the destructor
1355 for demangled_name_entry.
1356 (create_demangled_names_hash): Pass free_demangled_name_entry to
1357 htab_create_alloc.
1358 (symbol_set_names): Call placement new for demangled_name_entry.
1359 * utils.c: No longer include xxhash.h here, now that fast_hash
1360 is inlined in the header.
1361 * utils.h: Instead, include it here.
1362
1363 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1364
1365 * Makefile.in: Link with libxxhash.
1366 * config.in: Regenerate.
1367 * configure: Regenerate.
1368 * configure.ac: Search for libxxhash.
1369 * utils.c (fast_hash): Use xxhash if present.
1370
1371 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1372
1373 * utils.h (fast_hash): New function.
1374 * symtab.c (hash_demangled_name_entry): Call new function
1375 fast_hash.
1376
1377 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1378
1379 * symtab.c (struct demangled_name_entry): Change type of mangled
1380 to gdb::string_view. Also adds a constructor that takes the
1381 mangled name.
1382 (hash_demangled_name_entry): Update.
1383 (eq_demangled_name_entry): Update.
1384 (free_demangled_name_entry): New function to call the destructor
1385 now that this is not a POD anymore.
1386 (create_demangled_names_hash): Pass free_demangled_name_entry to
1387 htab_create_alloc.
1388 (symbol_set_names): Update.
1389
1390 2019-10-21 Ali Tamur <tamu@google.com>
1391
1392 * dwarf2read.c (dir_index): Change type.
1393 (file_name_index): Likewise.
1394 (line_header::include_dir_at): Change comment and implementation on
1395 whether it is DWARF 5.
1396 (line_header::is_valid_file_index): New function.
1397 (line_header::file_name_at): Change comment and implementation on
1398 whether it is DWARF 5.
1399 (line_header::file_names): Change to private field renamed as
1400 m_file_names and introduce a new accessor method.
1401 (line_header::file_names_size): New method.
1402 (line_header::include_dirs): Change to private field and rename as
1403 m_include_dirs.
1404 (dw2_get_file_names_reader): Define local var at a smaller scope and
1405 reflect API change.
1406 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1407 (process_structure_scope): Likewise.
1408 (line_header::add_include_dir): Change message and reflect renaming.
1409 (line_header::add_file_name): Likewise.
1410 (read_formatted_entries): Handle DW_FORM_data16.
1411 (dwarf_decode_line_header): Fix line header length calculation.
1412 (psymtab_include_file_name): Change comment and API.
1413 (lnp_state_machine::m_file): Update comment and reflect type change.
1414 (lnp_state_machine::record_line): Reflect type change.
1415 (dwarf_decode_lines): Reflect API change.
1416 (file_file_name): Likewise.
1417 (file_full_name): Likewise.
1418
1419 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1422
1423 2019-10-21 Tom Tromey <tom@tromey.com>
1424
1425 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1426
1427 2019-10-21 Tom Tromey <tom@tromey.com>
1428
1429 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1430 NM_H. Use AC_CONFIG_LINKS.
1431 * configure: Rebuild.
1432 * Makefile.in (NM_H): New variable.
1433 (generated_files): Add NM_H. Remove gcore.
1434 (nm.h, stamp-nmh): New targets.
1435
1436 2019-10-20 Tom Tromey <tom@tromey.com>
1437
1438 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1439 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1440 obsolete comment.
1441 (put_objfile_before): Now static.
1442
1443 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * gdbsupport/common-utils.h (startswith): Change return type to
1446 bool.
1447
1448 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1449
1450 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1451 * breakpoint.c (bp_locations_compare): Rename to...
1452 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1453 (update_global_location_list): Use std::sort instead of qsort.
1454 * buildsym.c (compare_line_numbers): Rename to...
1455 (lte_is_less_than): ...this, and change to std::sort semantics.
1456 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1457 instead of qsort.
1458 * disasm.c (compare_lines): Rename to...
1459 (line_is_less_than): ...this, and change to std::sort semantics.
1460 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1461 of qsort.
1462 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1463 (fde_is_less_than): ...this, and change to std::sort semantics.
1464 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1465 * mdebugread.c (compare_blocks):
1466 (block_is_less_than): ...this, and change to std::sort semantics.
1467 (sort_blocks): Call std::sort instead of qsort.
1468 * objfiles.c (qsort_cmp): Rename to...
1469 (sort_cmp): ...this, and change to std::sort semantics.
1470 (update_section_map): Call std::sort instead of qsort.
1471 * remote.c (compare_pnums): Remove.
1472 (map_regcache_remote_table): Call std::sort instead of qsort.
1473 * utils.c (compare_positive_ints): Remove.
1474 * utils.h (compare_positive_ints): Remove.
1475 * xcoffread.c (compare_lte): Remove.
1476 (arrange_linetable): Call std::sort instead of qsort.
1477
1478 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1479
1480 * symfile.c (init_entry_point_info): Fix typo.
1481 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1482
1483 2019-10-18 Tom de Vries <tdevries@suse.de>
1484
1485 * aarch64-tdep.c: Fix typos in comments.
1486 * ada-lang.c: Same.
1487 * ada-tasks.c: Same.
1488 * alpha-tdep.c: Same.
1489 * alpha-tdep.h: Same.
1490 * amd64-nat.c: Same.
1491 * amd64-windows-tdep.c: Same.
1492 * arc-tdep.c: Same.
1493 * arc-tdep.h: Same.
1494 * arch-utils.c: Same.
1495 * arm-nbsd-tdep.c: Same.
1496 * arm-tdep.c: Same.
1497 * ax-gdb.c: Same.
1498 * blockframe.c: Same.
1499 * btrace.c: Same.
1500 * c-varobj.c: Same.
1501 * coff-pe-read.c: Same.
1502 * coffread.c: Same.
1503 * cris-tdep.c: Same.
1504 * darwin-nat.c: Same.
1505 * dbxread.c: Same.
1506 * dcache.c: Same.
1507 * disasm.c: Same.
1508 * dtrace-probe.c: Same.
1509 * dwarf-index-write.c: Same.
1510 * dwarf2-frame-tailcall.c: Same.
1511 * dwarf2-frame.c: Same.
1512 * dwarf2read.c: Same.
1513 * eval.c: Same.
1514 * exceptions.c: Same.
1515 * fbsd-tdep.c: Same.
1516 * findvar.c: Same.
1517 * frame.c: Same.
1518 * frv-tdep.c: Same.
1519 * gnu-v3-abi.c: Same.
1520 * go32-nat.c: Same.
1521 * h8300-tdep.c: Same.
1522 * hppa-tdep.c: Same.
1523 * i386-linux-tdep.c: Same.
1524 * i386-tdep.c: Same.
1525 * ia64-libunwind-tdep.c: Same.
1526 * ia64-tdep.c: Same.
1527 * infcmd.c: Same.
1528 * infrun.c: Same.
1529 * linespec.c: Same.
1530 * linux-nat.c: Same.
1531 * linux-thread-db.c: Same.
1532 * machoread.c: Same.
1533 * mdebugread.c: Same.
1534 * mep-tdep.c: Same.
1535 * mn10300-tdep.c: Same.
1536 * namespace.c: Same.
1537 * objfiles.c: Same.
1538 * opencl-lang.c: Same.
1539 * or1k-tdep.c: Same.
1540 * osabi.c: Same.
1541 * ppc-linux-nat.c: Same.
1542 * ppc-linux-tdep.c: Same.
1543 * ppc-sysv-tdep.c: Same.
1544 * printcmd.c: Same.
1545 * procfs.c: Same.
1546 * record-btrace.c: Same.
1547 * record-full.c: Same.
1548 * remote-fileio.c: Same.
1549 * remote.c: Same.
1550 * rs6000-tdep.c: Same.
1551 * s12z-tdep.c: Same.
1552 * score-tdep.c: Same.
1553 * ser-base.c: Same.
1554 * ser-go32.c: Same.
1555 * skip.c: Same.
1556 * sol-thread.c: Same.
1557 * solib-svr4.c: Same.
1558 * solib.c: Same.
1559 * source.c: Same.
1560 * sparc-nat.c: Same.
1561 * sparc-sol2-tdep.c: Same.
1562 * sparc-tdep.c: Same.
1563 * sparc64-tdep.c: Same.
1564 * stabsread.c: Same.
1565 * stack.c: Same.
1566 * symfile.c: Same.
1567 * symtab.c: Same.
1568 * target-descriptions.c: Same.
1569 * target-float.c: Same.
1570 * thread.c: Same.
1571 * utils.c: Same.
1572 * valops.c: Same.
1573 * valprint.c: Same.
1574 * value.c: Same.
1575 * varobj.c: Same.
1576 * windows-nat.c: Same.
1577 * xcoffread.c: Same.
1578 * xstormy16-tdep.c: Same.
1579 * xtensa-tdep.c: Same.
1580
1581 2019-10-17 Tom Tromey <tromey@adacore.com>
1582
1583 * configure: Rebuild.
1584 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1585 in AC_CONFIG_FILES invocation.
1586 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1587 new-style config.status invocation.
1588
1589 2019-10-17 Tom de Vries <tdevries@suse.de>
1590
1591 * arm-nbsd-nat.c: Fix typos in comments.
1592 * arm-tdep.c: Same.
1593 * darwin-nat-info.c: Same.
1594 * dwarf2read.c: Same.
1595 * elfread.c: Same.
1596 * event-top.c: Same.
1597 * findvar.c: Same.
1598 * gdbtypes.c: Same.
1599 * hppa-tdep.c: Same.
1600 * i386-tdep.c: Same.
1601 * jit.c: Same.
1602 * main.c: Same.
1603 * mdebugread.c: Same.
1604 * moxie-tdep.c: Same.
1605 * nto-procfs.c: Same.
1606 * osabi.c: Same.
1607 * ppc-linux-tdep.c: Same.
1608 * remote.c: Same.
1609 * riscv-tdep.c: Same.
1610 * s390-tdep.c: Same.
1611 * sh-tdep.c: Same.
1612 * sparc-linux-tdep.c: Same.
1613 * sparc-nat.c: Same.
1614 * stack.c: Same.
1615 * target-descriptions.c: Same.
1616 * top.c: Same.
1617 * varobj.c: Same.
1618
1619 2019-10-16 Tom Tromey <tom@tromey.com>
1620
1621 * objfiles.h (struct objfile) <original_name>: Now const.
1622
1623 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1624
1625 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1626 pass on to sigsetjmp's second argument.
1627 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1628
1629 2019-10-16 Keith Seitz <keiths@redhat.com>
1630
1631 PR gdb/23567
1632 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1633 sections whose size is greater than the file size.
1634
1635 2019-10-16 Jim Wilson <jimw@sifive.com>
1636
1637 * riscv-tdep.c (riscv_gcc_target_options): New.
1638 (riscv_gnu_triplet_regexp): New.
1639 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1640 set_gdbarch_gnu_triplet_regexp.
1641
1642 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1643
1644 * Makefile.in: Add xml-builtin.h.
1645 * features/feature_to_c.sh: Add an include for xml-builtin.h
1646 to ensure that the compiler checks that the types match.
1647 * xml-builtin.h: New file.
1648 * xml-support.c (fetch_xml_builtin): Add missing const.
1649 * xml-support.h: Remove declaration of xml_builtins.
1650
1651 2019-10-16 Tom de Vries <tdevries@suse.de>
1652
1653 PR tdep/25096
1654 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1655 (amd64_classify_aggregate): ... here.
1656 (amd64_classify_aggregate_field): Handled fiels of nested structs
1657 recursively.
1658
1659 2019-10-16 Tom de Vries <tdevries@suse.de>
1660
1661 PR tdep/24104
1662 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1663 that handles 'theclass'.
1664
1665 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * linespec.c (decode_digits_ordinary): Update comment.
1668 * make-target-delegates: No longer need to handle VEC case.
1669 * memrange.c (normalize_mem_ranges): Update comment.
1670 * namespace.c (add_using_directive): Update comment.
1671 * objc-lang.c (uniquify_strings): Update comment.
1672 * ppc-linux-nat.c (struct thread_points): Update comment.
1673 * probe.h (find_probes_in_objfile): Update comment.
1674 * target.h (enum flash_preserve_mode): Update comment.
1675 * varobj.c (varobj_restrict_range): Update comment.
1676 * varobj.h (varobj_list_children): Update comment.
1677
1678 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * Makefile.in: Remove references to vec.h and vec.c.
1681 * aarch64-tdep.c: No longer include vec.h.
1682 * ada-lang.c: Likewise.
1683 * ada-lang.h: Likewise.
1684 * arm-tdep.c: Likewise.
1685 * ax.h: Likewise.
1686 * breakpoint.h: Likewise.
1687 * charset.c: Likewise.
1688 * cp-support.h: Likewise.
1689 * dtrace-probe.c: Likewise.
1690 * dwarf2read.c: Likewise.
1691 * extension.h: Likewise.
1692 * gdb_bfd.c: Likewise.
1693 * gdbsupport/gdb_vecs.h: Likewise.
1694 * gdbsupport/vec.c: Remove.
1695 * gdbsupport/vec.h: Remove.
1696 * gdbthread.h: Likewise.
1697 * guile/scm-type.c: Likewise.
1698 * inline-frame.c: Likewise.
1699 * machoread.c: Likewise.
1700 * memattr.c: Likewise.
1701 * memrange.h: Likewise.
1702 * namespace.h: Likewise.
1703 * nat/linux-btrace.h: Likewise.
1704 * osdata.c: Likewise.
1705 * parser-defs.h: Likewise.
1706 * progspace.h: Likewise.
1707 * python/py-type.c: Likewise.
1708 * record-btrace.c: Likewise.
1709 * rust-exp.y: Likewise.
1710 * solib-target.c: Likewise.
1711 * stap-probe.c: Likewise.
1712 * target-descriptions.c: Likewise.
1713 * target-memory.c: Likewise.
1714 * target.h: Likewise.
1715 * varobj.c: Likewise.
1716 * varobj.h: Likewise.
1717 * xml-support.h: Likewise.
1718
1719 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1722 Update for new std::vector based implementation.
1723 (process_psymtab_comp_unit_reader): Likewise.
1724 (scan_partial_symbols): Likewise.
1725 (recursively_compute_inclusions): Likewise.
1726 (compute_compunit_symtab_includes): Likewise.
1727 (process_imported_unit_die): Likewise.
1728 (queue_and_load_dwo_tu): Likewise.
1729 (follow_die_sig_1): Likewise.
1730 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1731 (typedef dwarf2_per_cu_ptr): Remove.
1732 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1733 function.
1734 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1735 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1736 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1737 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1738 std::vector.
1739
1740 2019-10-15 Tom Tromey <tromey@adacore.com>
1741
1742 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1743 TID.
1744
1745 2019-10-15 Tom Tromey <tromey@adacore.com>
1746
1747 * windows-nat.c (windows_nat_target::fetch_registers)
1748 (windows_nat_target::store_registers): Rename "pid" to "tid".
1749
1750 2019-10-15 Tom Tromey <tromey@adacore.com>
1751
1752 * gdbarch.h, gdbarch.c: Rebuild.
1753 * gdbarch.sh (gcc_target_options): Change return type to
1754 std::string.
1755 * compile/compile.c (get_args): Update.
1756 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1757 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1758 std::string.
1759 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1760 std::string.
1761 * arch-utils.c (default_gcc_target_options): Return std::string.
1762 * arch-utils.h (default_gcc_target_options): Return std::string.
1763 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1764
1765 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1766
1767 * breakpoint.c (breakpoint_chain): Make static.
1768 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1769 of accessing breakpoint_chain.
1770
1771 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1772
1773 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1774 to a gdb::function_view and return value to bool.
1775 * breakpoint.h (iterate_over_breakpoints): Likewise.
1776 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1777 (pop_dummy_frame): Update.
1778 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1779 (gdbscm_breakpoints): Update.
1780 * python/py-breakpoint.c (build_bp_list): Update.
1781 (gdbpy_breakpoints): Update.
1782 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1783 Update.
1784 (bpfinishpy_handle_stop): Update.
1785 (bpfinishpy_handle_exit): Update.
1786 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1787 (svr4_update_solib_event_breakpoints): Update.
1788
1789 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1790
1791 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1792 when unwrapping single-field structs.
1793
1794 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 * dwarf2read.c: Remove includes.
1797
1798 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1799
1800 * ui-out.c (ui_out::call_do_message): Silence
1801 -Wformat-nonliteral warning.
1802
1803 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1806 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1807 include: readline/tilde.h.
1808
1809 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1810
1811 * remote.c (remote_target::get_trace_status): Remove declaration of
1812 trace_regblock_size.
1813
1814 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1815
1816 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1817 (show_user): Remove declaration of cmdlist.
1818 * cli/cli-cmds.h (max_user_call_depth): Declare.
1819 * cli/cli-script.c (execute_user_command): Remove declaration
1820 of max_user_call_depth.
1821
1822 2019-10-11 Jim Wilson <jimw@sifive.com>
1823
1824 * gdbsupport/print-utils.h (pulongest): Fix comment.
1825 (plongest): Likewise.
1826 (phex): Add missing comment, mention leading zeros.
1827 (phex_nz): Add mention of no leading zeros to comment.
1828
1829 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1830 plongest instead of unsigned long long cast.
1831
1832 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1833
1834 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1835 for external_editor_command and gdbtk_test.
1836
1837 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1838
1839 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1840 * varobj.c (varobjdebug): Move comment to...
1841 * varobj.h (varobjdebug): ...here, and declare.
1842
1843 2019-10-09 Tom Tromey <tom@tromey.com>
1844
1845 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1846 erase_data_content.
1847
1848 2019-10-09 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1851 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1852 * tui/tui-command.c (tui_cmd_window::resize)
1853 (tui_refresh_cmd_win): Update.
1854 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1855 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1856 * tui/tui-data.c (~tui_gen_win_info): Remove.
1857 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1858 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1859 (tui_redisplay_readline, tui_mld_flush)
1860 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1861 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1862 (tui_data_window::erase_data_content)
1863 (tui_data_item_window::rerender)
1864 (tui_data_item_window::refresh_window): Update.
1865 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1866 (box_win, tui_gen_win_info::make_window)
1867 (tui_gen_win_info::make_visible): Update.
1868 (tui_delete_win): Remove.
1869 * tui/tui-winsource.c
1870 (tui_source_window_base::do_erase_source_content): Update.
1871 (tui_show_source_line, tui_source_window_base::update_tab_width)
1872 (tui_source_window_base::update_exec_info): Update.
1873 * tui/tui-data.h (struct curses_deleter): New.
1874 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1875 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1876
1877 2019-10-09 Tom Tromey <tom@tromey.com>
1878
1879 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1880
1881 2019-10-09 Tom Tromey <tom@tromey.com>
1882
1883 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1884 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1885
1886 2019-10-09 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1889 window height directly.
1890 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1891 declare.
1892 * tui/tui-layout.c (tui_default_win_height): Remove.
1893 (tui_default_win_viewport_height): Remove.
1894
1895 2019-10-09 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui.h: Remove comments.
1898
1899 2019-10-09 Tom de Vries <tdevries@suse.de>
1900
1901 * python/lib/gdb/printer/bound_registers.py: Use
1902 '^builtin_type_bound128' as regexp argument for
1903 add_builtin_pretty_printer.
1904
1905 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1906
1907 * guile/guile.c (guile_extension_script_ops): Remove forward
1908 declaration and mark as static.
1909 (guile_script_ops): Likewise.
1910 (extension_language_guile): Move further down in the file so
1911 it can reference the definitions for guile_{extension_,}script_ops.
1912
1913 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1914
1915 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1916 except SORTL, DFLTCC, and KDSA.
1917
1918 2019-10-08 Tom Tromey <tromey@adacore.com>
1919
1920 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1921 (struct safe_symbol_file_add_args): Remove.
1922
1923 2019-10-08 Tom Tromey <tromey@adacore.com>
1924
1925 * windows-nat.c: Don't include buildsym-legacy.h.
1926
1927 2019-10-08 Tom Tromey <tromey@adacore.com>
1928
1929 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1930
1931 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1932
1933 * gdbtypes.c (overload_debug): Move comment to header.
1934 * gdbtypes.h (overload_debug): Declare.
1935 * valops.c: Remove declaration of overload_debug, instead
1936 include gdbtypes.h.
1937
1938 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1939
1940 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1941 through _().
1942 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1943 move comment...
1944 * language.h (lang_frame_mismatch_warn): ... here. Also add
1945 declaration.
1946 * top.c (lang_frame_mismatch_warn): Remove declaration.
1947 (check_frame_language_change): Pass lang_frame_mismatch_warn
1948 through _().
1949
1950 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1951
1952 * c-lang.h (vtbl_ptr_name): Declare.
1953 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1954 it from the header.
1955 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1956
1957 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1958
1959 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1960 gdb_static_assert.
1961
1962 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1963
1964 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1965 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1966 * ctfread.c: New file.
1967 * ctfread.h: New file.
1968 * elfread.c: Include ctfread.h.
1969 (struct elfinfo text_p): New member ctfsect.
1970 (elf_locate_sections): Mark CTF section.
1971 (elf_symfile_read): Call elfctf_build_psymtabs.
1972 * Makefile.in (LIBCTF): Add.
1973 (CLIBS): Use it.
1974 (CDEPS): Likewise.
1975 (DIST): Add ctfread.c.
1976
1977 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * ctfread.c (struct nextfield): Renamed to ...
1980 (struct ctf_nextfield): ... this.
1981 (struct field_info): Renamed to ...
1982 (strut ctf_field_info): ... this.
1983 (attach_fields_to_type): Update for renamed structures.
1984 (ctf_add_member_cb): Likewise.
1985 (ctf_add_enum_member_cb): Likewise.
1986 (process_struct_members): Likewise.
1987 (process_enum_type): Likewise.
1988
1989 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1990
1991 * tracectf.h: Rename, was ctf.h.
1992 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1993 * tracefile.c: Likewise.
1994 * tracepoint.c: Remove unused include ctf.h.
1995 * mi/mi-main.c: Likewise.
1996 * Makefile.in Replace ctf.c with tracectf.c.
1997
1998 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1999
2000 * version.in: Change version number to "9.0.50.DATE-git".
2001
2002 2019-10-03 Tom Tromey <tom@tromey.com>
2003
2004 PR rust/24976:
2005 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2006
2007 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2010 cp_search_name_hash.
2011 * NEWS: Add entry about nested function support.
2012
2013 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2014 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2017 for nested static variables when searchin VAR_DOMAIN.
2018 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2019 global scope, update comment.
2020 (add_partial_subprogram): Call add_partial_subprogram recursively
2021 for nested subroutines when processinng Fortran.
2022 (load_partial_dies): Process the child entities of a subprogram
2023 when processing Fortran.
2024 (partial_die_parent_scope): Handle building scope
2025 for Fortran nested functions.
2026 (process_die): Record that nested functions have a scope.
2027 (new_symbol): Always record Fortran subprograms on the global
2028 symbol list.
2029 (determine_prefix): How to build the prefix for Fortran
2030 subprograms.
2031
2032 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2035 have just sent the thread a SIGSTOP and are waiting for it to
2036 arrive.
2037
2038 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2039
2040 * btrace.c (btrace_add_pc): Remove whitespace before the template
2041 parameter in 'std::vector <...>'.
2042 (parse_xml_btrace_block): Likewise.
2043 (btrace_maint_decode_pt): Likewise.
2044 (btrace_maint_update_packets): Likewise.
2045 (btrace_maint_print_packets): Likewise.
2046 * btrace.h (struct btrace_maint_info): Likewise.
2047 * dwarf2read.c (struct type_unit_group): Likewise.
2048 (build_type_psymtabs_reader): Likewise.
2049 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2050 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2051 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2052
2053 2019-10-03 Tom de Vries <tdevries@suse.de>
2054
2055 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2056 the first line of the help text for set/show style metadata.
2057
2058 2019-10-02 Tom Tromey <tromey@adacore.com>
2059
2060 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2061 * gdbsupport/common-inferior.c: New file.
2062 * infcmd.c (startup_with_shell): Don't define.
2063 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2064 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2065 * inferior.h (startup_with_shell): Don't declare.
2066
2067 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2068
2069 * gdbsupport/gdb_assert.h: Include errors.h.
2070 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2071
2072 2019-10-02 Tom Tromey <tromey@adacore.com>
2073
2074 * NEWS: Add $_ada_exception entry.
2075 * ada-lang.c (struct ada_catchpoint): Add constructor.
2076 <m_kind>: New member.
2077 (allocate_location_exception, re_set_exception): Remove
2078 "ex" parameter.
2079 (should_stop_exception): Compute $_ada_exception.
2080 (check_status_exception, print_it_exception)
2081 (print_one_exception, print_mention_exception): Remove
2082 "ex" parameter.
2083 (allocate_location_catch_exception, re_set_catch_exception)
2084 (check_status_exception, print_it_catch_exception)
2085 (print_one_catch_exception, print_mention_catch_exception)
2086 (print_recreate_catch_exception)
2087 (allocate_location_catch_exception_unhandled)
2088 (re_set_catch_exception_unhandled)
2089 (check_status_exception, print_it_catch_exception_unhandled)
2090 (print_one_catch_exception_unhandled)
2091 (print_mention_catch_exception_unhandled)
2092 (print_recreate_catch_exception_unhandled)
2093 (allocate_location_catch_assert, re_set_catch_assert)
2094 (check_status_assert, print_it_catch_assert)
2095 (print_one_catch_assert, print_mention_catch_assert)
2096 (print_recreate_catch_assert)
2097 (allocate_location_catch_handlers, re_set_catch_handlers)
2098 (check_status_handlers, print_it_catch_handlers)
2099 (print_one_catch_handlers, print_mention_catch_handlers)
2100 (print_recreate_catch_handlers): Remove.
2101 (create_ada_exception_catchpoint): Update.
2102 (initialize_ada_catchpoint_ops): Update.
2103
2104 2019-10-02 Tom Tromey <tromey@adacore.com>
2105
2106 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2107 (create_excep_cond_exprs): Simplify exception string computation.
2108 (ada_exception_catchpoint_cond_string): Likewise.
2109
2110 2019-10-02 Tom Tromey <tromey@adacore.com>
2111
2112 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2113 * ada-lang.c (lesseq_defined_than): Handle
2114 LOC_STATIC.
2115 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2116 parameter.
2117 (dwarf2_has_info): Likewise.
2118 (new_symbol): Set maybe_copied on symbol when
2119 appropriate.
2120 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2121 parameter.
2122 <can_copy>: New member.
2123 * elfread.c (record_minimal_symbol): Set maybe_copied
2124 on symbol when appropriate.
2125 (elf_symfile_read): Update call to dwarf2_has_info.
2126 * minsyms.c (lookup_minimal_symbol_linkage): New
2127 function.
2128 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2129 * symtab.c (get_symbol_address, get_msymbol_address):
2130 New functions.
2131 * symtab.h (get_symbol_address, get_msymbol_address):
2132 Declare.
2133 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2134 maybe_copied.
2135 (struct symbol, struct minimal_symbol) <maybe_copied>:
2136 New member.
2137
2138 2019-10-02 Tom Tromey <tromey@adacore.com>
2139
2140 * source.c (struct current_source_location): New.
2141 (current_source_key): New global.
2142 (current_source_symtab, current_source_line)
2143 (current_source_pspace): Remove.
2144 (get_source_location): New function.
2145 (get_current_source_symtab_and_line)
2146 (set_default_source_symtab_and_line)
2147 (set_current_source_symtab_and_line)
2148 (clear_current_source_symtab_and_line, select_source_symtab)
2149 (info_source_command, print_source_lines_base)
2150 (info_line_command, search_command_helper, _initialize_source):
2151 Update.
2152
2153 2019-10-02 Tom Tromey <tromey@adacore.com>
2154
2155 * source.c (select_source_symtab): Don't call
2156 decode_line_with_current_source.
2157
2158 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * symtab.c (lookup_global_symbol): Search global block.
2161
2162 2019-10-02 Tom Tromey <tromey@adacore.com>
2163
2164 * coffread.c (process_coff_symbol): Update.
2165 * dwarf2read.c (var_decode_location, new_symbol): Update.
2166 * mdebugread.c (parse_symbol): Update.
2167 * objfiles.c (relocate_one_symbol): Update.
2168 * stabsread.c (define_symbol, fix_common_block)
2169 (scan_file_globals): Update.
2170 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2171 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2172 * xcoffread.c (process_xcoff_symbol): Update.
2173
2174 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2175
2176 * MAINTAINERS: Update my email address.
2177
2178 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2181 std::vector.
2182 (build_type_psymtabs_reader): Update for std::vector.
2183 (build_type_psymtab_dependencies): Likewise.
2184 * dwarf2read.h: Remove use of DEF_VEC_P.
2185 (typedef sig_type_ptr): Delete.
2186
2187 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2190 to std::vector.
2191 (btrace_maint_decode_pt): Likewise, and move allocation of the
2192 vector outside of the loop.
2193 (btrace_maint_update_packets): Update to handle change from VEC to
2194 std::vector.
2195 (btrace_maint_print_packets): Likewise.
2196 (maint_info_btrace_cmd): Likewise.
2197 * btrace.h: Remove use of DEF_VEC_O.
2198 (typedef btrace_pt_packet_s): Delete.
2199 (struct btrace_maint_info) <packets>: Change fromm VEC to
2200 std::vector.
2201 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2202
2203 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2206 make accesses into the vector constant references.
2207 (btrace_add_pc): Update for std::vector.
2208 (btrace_stitch_bts): Likewise.
2209 (parse_xml_btrace_block): Likewise.
2210 (btrace_maint_update_packets): Likewise.
2211 (btrace_maint_print_packets): Likewise.
2212 (maint_info_btrace_cmd): Likewise.
2213 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2214 std::vector.
2215 (btrace_data::empty): Likewise.
2216 (btrace_data_append): Likewise.
2217 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2218 (typedef btrace_block_s): Delete.
2219 (struct btrace_block): Add constructor.
2220 (struct btrace_data_bts) <blocks>: Change to std::vector.
2221 * nat/linux-btrace.c (perf_event_read_bts): Update for
2222 std::vector.
2223 (linux_read_bts): Likewise.
2224
2225 2019-10-01 Tom Tromey <tom@tromey.com>
2226
2227 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2228
2229 2019-10-01 Tom Tromey <tom@tromey.com>
2230
2231 * stack.c (print_frame, info_frame_command_core): Use
2232 styled_string.
2233 * linux-thread-db.c (try_thread_db_load_1)
2234 (try_thread_db_load_from_pdir_1): Use styled_string.
2235 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2236 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2237 (maybe_print_unsupported_script_warning)
2238 (maybe_print_script_not_found_warning): Use styled_string.
2239 * ada-lang.c (user_select_syms): Use styled_string.
2240
2241 2019-10-01 Tom Tromey <tom@tromey.com>
2242
2243 * p-lang.c (pascal_printstr): Use metadata style.
2244 * value.c (show_convenience): Use metadata style.
2245 * valprint.c (valprint_check_validity, val_print_optimized_out)
2246 (val_print_not_saved, val_print_unavailable)
2247 (val_print_invalid_address, generic_val_print, val_print)
2248 (value_check_printable, val_print_array_elements): Use metadata
2249 style.
2250 * ui-out.h (class ui_out) <field_fmt>: New overload.
2251 <do_field_fmt>: Add style parameter.
2252 * ui-out.c (ui_out::field_fmt): New overload.
2253 * typeprint.c (type_print_unknown_return_type)
2254 (val_print_not_allocated, val_print_not_associated): Use metadata
2255 style.
2256 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2257 parameter.
2258 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2259 * tracepoint.c (tvariables_info_1): Use metadata style.
2260 * stack.c (print_frame_arg, print_frame_info, print_frame)
2261 (info_frame_command_core): Use metadata style.
2262 * skip.c (info_skip_command): Use metadata style.
2263 * rust-lang.c (rust_print_enum): Use metadata style.
2264 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2265 metadata style.
2266 * python/py-framefilter.c (py_print_single_arg): Use metadata
2267 style.
2268 * printcmd.c (do_one_display, print_variable_and_value): Use
2269 metadata style.
2270 * p-valprint.c (pascal_val_print)
2271 (pascal_object_print_value_fields): Use metadata style.
2272 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2273 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2274 parameter.
2275 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2276 * m2-valprint.c (m2_print_long_set): Use metadata style.
2277 * m2-typeprint.c (m2_print_type): Use metadata style.
2278 * infcmd.c (print_return_value_1): Use metadata style.
2279 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2280 * f-valprint.c (info_common_command_for_block): Use metadata
2281 style.
2282 * f-typeprint.c (f_type_print_base): Use metadata style.
2283 * expprint.c (print_subexp_standard): Use metadata style.
2284 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2285 * cli/cli-style.h (class cli_style_option): Add constructor.
2286 (metadata_style): Declare.
2287 * cli/cli-style.c (metadata_style): New global.
2288 (_initialize_cli_style): Register metadata style.
2289 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2290 parameter.
2291 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2292 * c-typeprint.c (c_type_print_base_struct_union)
2293 (c_type_print_base_1): Use metadata style.
2294 * breakpoint.c (watchpoint_value_print)
2295 (print_one_breakpoint_location): Use metadata style.
2296 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2297 style.
2298 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2299 style.
2300 * ada-valprint.c (val_print_packed_array_elements, printstr)
2301 (print_field_values, ada_val_print_ref, ada_val_print): Use
2302 metadata style.
2303 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2304 style.
2305 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2306 style.
2307 * ada-lang.c (user_select_syms): Use metadata style.
2308
2309 2019-10-01 Tom Tromey <tom@tromey.com>
2310
2311 * cli/cli-cmds.c (pwd_command): Style output.
2312
2313 2019-10-01 Pedro Alves <palves@redhat.com>
2314 Tom Tromey <tom@tromey.com>
2315
2316 * symtab.c (print_symbol_info): Use %ps.
2317 (print_msymbol_info): Use %ps.
2318 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2319 * printcmd.c (print_variable_and_value): Use %ps.
2320 * macrocmd.c (show_pp_source_pos): Use %ps.
2321 * infrun.c (print_exited_reason): Use ui_out::message.
2322 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2323 (describe_other_breakpoints): Use ui_out::message and new
2324 formats.
2325 (say_where): Use new formats.
2326 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2327 and new formats.
2328
2329 2019-10-01 Pedro Alves <palves@redhat.com>
2330 Tom Tromey <tom@tromey.com>
2331
2332 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2333 (test_gdb_formats): New function.
2334 (run_tests): Call it.
2335 (test_format_specifier): Update.
2336 * utils.h (fputs_filtered): Update comment.
2337 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2338 (fputs_styled_unfiltered): Declare.
2339 * utils.c (fputs_styled_unfiltered): New function.
2340 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2341 (vfprintf_filtered): Update.
2342 (vfprintf_unfiltered, vprintf_filtered): Update.
2343 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2344 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2345 disallow_ui_out_field>: New constants.
2346 (enum class field_kind): New.
2347 (struct base_field_s, struct signed_field_s): New.
2348 (signed_field): New function.
2349 (struct string_field_s): New.
2350 (string_field): New function.
2351 (struct styled_string_s): New.
2352 (styled_string): New function.
2353 (class ui_out) <message>: Add comment.
2354 <vmessage, call_do_message>: New methods.
2355 <do_message>: Add style parameter.
2356 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2357 methods.
2358 (ui_out::message): Rewrite.
2359 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2360 parameter.
2361 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2362 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2363 gdb_extensions parameter.
2364 (class format_piece): Add parameter to constructor.
2365 (n_int_args): New field.
2366 * gdbsupport/format.c (format_pieces::format_pieces): Add
2367 gdb_extensions parameter. Handle '*'.
2368 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2369 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2370 vfprintf_styled_no_gdbfmt.
2371 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2372 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2373 unfiltered output.
2374 * ui-style.h (struct ui_file_style) <ptr>: New method.
2375
2376 2019-10-01 Tom Tromey <tom@tromey.com>
2377
2378 * unittests/format_pieces-selftests.c: Update. Add final format.
2379 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2380 empty literal pieces.
2381
2382 2019-10-01 Tom Tromey <tom@tromey.com>
2383
2384 * ui-out.h (enum class ui_out_style_kind): Remove.
2385 (class ui_out) <field_string, field_stsream, do_field_string>:
2386 Change type of "style".
2387 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2388 (ui_out::field_string): Update.
2389 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2390 of "style".
2391 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2392 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2393 * stack.c (print_frame_arg, print_frame_info, print_frame):
2394 Update.
2395 * source.c (print_source_lines_base): Update.
2396 * solib.c (info_sharedlibrary_command): Update.
2397 * skip.c (info_skip_command): Update.
2398 * record-btrace.c (btrace_call_history_src_line)
2399 (btrace_call_history): Update.
2400 * python/py-framefilter.c (py_print_frame): Update.
2401 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2402 "style".
2403 * mi/mi-out.c (mi_ui_out::do_table_header)
2404 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2405 (mi_ui_out::do_field_string): Update.
2406 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2407 Update.
2408 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2409 "style".
2410 * cli-out.c (cli_ui_out::do_table_header)
2411 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2412 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2413 (cli_ui_out::do_field_fmt): Update.
2414 * breakpoint.c (print_breakpoint_location): Update.
2415 (update_static_tracepoint): Update.
2416
2417 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2418
2419 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2420 conversion of gdb_datadir.
2421 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2422 remove not needed c_str ().
2423
2424 2019-09-30 Ali Tamur <tamur@google.com>
2425
2426 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2427 (dwarf2_string_attr): Likewise.
2428
2429 2019-09-30 Ali Tamur <tamur@google.com>
2430
2431 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2432 (process_full_type_unit): Likewise.
2433 (dump_die_shallow): Likewise.
2434 (cu_debug_loc_section): Likewise.
2435
2436 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2437
2438 * minsyms.c (compare_minimal_symbols): Rename to...
2439 (minimal_symbol_is_less_than): ...this, and adjust to STL
2440 conventions (return bool, take arguments as references)
2441 (minimal_symbol_reader::install): Call std::sort instead
2442 of qsort.
2443
2444 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2445
2446 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2447 hash and why.
2448 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2449 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2450
2451 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2452
2453 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2454 * psympriv.h (add_psymbol_to_list): Move comment here and update
2455 it.
2456
2457 2019-09-29 Tom de Vries <tdevries@suse.de>
2458
2459 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2460 Use $tmpdir/$(basename "$output_file").dwz instead of
2461 "${output_file}.dwz".
2462
2463 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 PR gdb/25045
2466 * hppa-linux-nat.c: Include gdbarch.h.
2467
2468 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2469
2470 * blockframe.c (find_pc_partial_function): Change return type to bool.
2471 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2472 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2473 (stub_gnu_ifunc_resolve_name): Likewise.
2474 * symtab.c (compare_filenames_for_search): Likewise.
2475 (compare_glob_filenames_for_search): Likewise.
2476 (matching_obj_sections): Likewise.
2477 (symbol_matches_domain): Likewise.
2478 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2479 (find_line_pc): Change return type to bool.
2480 (find_line_pc_range): Likewise.
2481 (producer_is_realview): Likewise.
2482 * symtab.h (symbol_matches_domain): Likewise.
2483 (find_pc_partial_function): Likewise.
2484 (find_pc_line_pc_range): Likewise.
2485 (in_gnu_ifunc_stub): Likewise.
2486 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2487 (find_line_pc): Likewise.
2488 (find_line_pc_range): Likewise.
2489 (matching_obj_sections): Likewise.
2490 (find_line_symtab): Change out parameter to bool.
2491 (producer_is_realview): Change return type to bool.
2492 (compare_filenames_for_search): Likewise.
2493 (compare_glob_filenames_for_search): Likewise.
2494
2495 2019-09-26 Tom Tromey <tom@tromey.com>
2496
2497 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2498 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2499 * gdb_usleep.h: Remove.
2500 * gdb_usleep.c: Remove.
2501 * utils.c: Don't include gdb_usleep.h.
2502
2503 2019-09-26 Tom Tromey <tromey@adacore.com>
2504
2505 * python/py-type.c (type_to_type_object): Call check_typedef
2506 for stub types.
2507
2508 2019-09-26 Tom Tromey <tom@tromey.com>
2509
2510 * utils.h (initialize_utils): Don't declare.
2511 * top.c (gdb_init): Don't call initialize_utils.
2512 * utils.c (initialize_utils): Remove. Move contents...
2513 (_initialize_utils): ... here.
2514
2515 2019-09-25 Tom Tromey <tom@tromey.com>
2516
2517 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2518 * utils.h (make_hex_string): Don't declare.
2519 * utils.c (make_hex_string): Remove.
2520
2521 2019-09-24 Tom de Vries <tdevries@suse.de>
2522
2523 PR gdb/23815
2524 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2525 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2526
2527 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2528
2529 * NEWS: Mention new simulator port for PRU.
2530
2531 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2532
2533 * ada-exp.y (write_object_remaining): Update.
2534 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2535 and eliminate the static buffer.
2536 (ada_decode_symbol): Update.
2537 (ada_la_decode): Update.
2538 (ada_sniff_from_mangled_name): Update.
2539 (is_valid_name_for_wild_match): Update.
2540 (ada_lookup_name_info::matches): Update and simplify.
2541 (name_matches_regex): Update.
2542 (ada_add_global_exceptions): Update.
2543 * ada-lang.h (ada_decode): Update signature.
2544 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2545 * dwarf-index-write.c (debug_names::insert): Update.
2546
2547 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2550 formatting.
2551
2552 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2555 Change "nonzero" to "true" in documentation.
2556
2557 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2558
2559 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2560 (_initialize_darwin_solib): Don't set
2561 darwin_so_ops.lookup_lib_global_symbol.
2562 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2563 set_gdbarch_iterate_over_objfiles_in_search_order.
2564 (elf_lookup_lib_symbol): Rename to...
2565 (svr4_iterate_over_objfiles_in_search_order): this, and update
2566 to iterate semantics.
2567 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2568 * solib.c (solib_global_lookup): Remove.
2569 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2570 (solib_global_lookup): Remove.
2571 * symtab.c (lookup_global_or_static_symbol): Remove call to
2572 solib_global_lookup.
2573
2574 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2575
2576 * NEWS: Move entries about default MI version now being
2577 version 3, and about the GDB/MI fix for multi-location
2578 breakpoints to the "since GDB 8.3" section.
2579
2580 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2581
2582 GDB 8.3.1 released.
2583
2584 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2585
2586 * NEWS: Mention that Cell/B.E. debugging support was removed.
2587 * MAINTAINERS: Remove spu target.
2588
2589 * config/djgpp/fnchange.lst: Remove entries for removed files.
2590
2591 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2592 spu-multiarch.o, and spu-tdep.o.
2593 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2594 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2595 spu-multiarch.c, and spu-tdep.c.
2596 * spu-linux-nat.c: Remove file.
2597 * spu-multiarch.c: Remove file.
2598 * spu-tdep.c: Remove file.
2599 * spu-tdep.h: Remove file.
2600 * solib-spu.c: Remove file.
2601 * solib-spu.h: Remove file.
2602
2603 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2604 * configure.nat (spu-linux): Remove.
2605 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2606 solib-multiarch.o from gdb_target_obs.
2607 (spu*-*-*): Remove.
2608
2609 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2610 feature flag.
2611 (ppc_linux_no_features): Update.
2612 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2613 Cell/B.E. support.
2614 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2615 (tdesc_powerpc_cell64l): Likewise.
2616 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2617 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2618 Cell/B.E. support.
2619 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2620 Do not include "features/rs6000/powerpc-cell32l.c" or
2621 "features/rs6000/powerpc-cell64l.c".
2622 (ppc_linux_spu_section): Remove.
2623 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2624 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2625 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2626 (ppc_linux_spe_context_lookup): Remove.
2627 (ppc_linux_spe_context_inferior_created): Remove.
2628 (ppc_linux_spe_context_solib_loaded): Remove.
2629 (ppc_linux_spe_context_solib_unloaded): Remove.
2630 (ppc_linux_spe_context): Remove.
2631 (struct ppu2spu_cache): Remove.
2632 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2633 (struct ppu2spu_data): Remove.
2634 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2635 ppu2spu_unwind): Remove.
2636 (ppc_linux_init_abi): Remove Cell/B.E. support.
2637 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2638
2639 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2640 (rs6000/powerpc-cell64l-expedite): Likewise
2641 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2642 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2643 rs6000/powerpc-cell64l.xml.
2644 * features/rs6000/powerpc-cell32l.xml: Remove.
2645 * features/rs6000/powerpc-cell64l.xml: Likewise.
2646 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2647 * features/rs6000/powerpc-cell64l.c: Likewise.
2648 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2649 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2650 * regformats/reg-spu.dat: Remove.
2651
2652 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2653 * corelow.c (struct spuid_list): Remove.
2654 (add_to_spuid_list): Remove.
2655 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2656 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2657 (remote_protocol_features): Remove associated entries.
2658 (_initialize_remote): No longer initialize them.
2659 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2660 * linux-nat.c (SPUFS_MAGIC): Remove.
2661 (linux_proc_xfer_spu): Remove.
2662 (spu_enumerate_spu_ids): Remove.
2663 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2664 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2665 (linux_make_corefile_notes): No longer call it.
2666
2667 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2668 (cooked_write_test): Likewise.
2669
2670 2019-09-20 Tom Tromey <tom@tromey.com>
2671
2672 * NEWS: Mention case-sensitivity of TUI commands.
2673 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2674 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2675 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2676
2677 2019-09-20 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-source.c (tui_source_window::set_contents): Use
2680 make_unique_xstrdup.
2681 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2682 make_unique_xstrdup.
2683
2684 2019-09-20 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-data.c: Remove separator comments.
2687 * tui/tui-layout.c: Remove separator comments.
2688 * tui/tui-win.c: Remove separator comments.
2689 * tui/tui-wingeneral.c: Remove separator comments.
2690
2691 2019-09-20 Tom Tromey <tom@tromey.com>
2692
2693 * tui/tui.h (strcat_to_buf): Don't declare.
2694 * tui/tui.c (strcat_to_buf): Remove.
2695
2696 2019-09-20 Tom Tromey <tom@tromey.com>
2697
2698 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2699 from "fullname".
2700 * tui/tui-source.c (tui_source_window::set_contents)
2701 (tui_source_window::location_matches_p)
2702 (tui_source_window::maybe_update): Update.
2703
2704 2019-09-20 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2707 Update.
2708 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2709 prefix.
2710 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2711 (tui_data_window::line_from_reg_element_no)
2712 (tui_data_window::first_reg_element_no_inline)
2713 (tui_data_window::show_registers)
2714 (tui_data_window::show_register_group)
2715 (tui_data_window::display_registers_from)
2716 (tui_data_window::display_registers_from_line)
2717 (tui_data_window::first_data_item_displayed)
2718 (tui_data_window::delete_data_content_windows)
2719 (tui_data_window::erase_data_content)
2720 (tui_data_window::do_scroll_vertical)
2721 (tui_data_window::refresh_window)
2722 (tui_data_window::check_register_values): Update.
2723
2724 2019-09-20 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2727 (struct tui_locator_window) <full_name, proc_name>: Now
2728 std::string.
2729 * tui/tui-stack.c (tui_locator_window::make_status_line)
2730 (tui_locator_window::set_locator_fullname)
2731 (tui_locator_window::set_locator_info): Update.
2732 * tui/tui-source.c (tui_source_window::set_contents)
2733 (tui_source_window::showing_source_p): Update.
2734
2735 2019-09-20 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2738 Don't call tui_locator_win_info_ptr.
2739
2740 2019-09-20 Tom Tromey <tom@tromey.com>
2741
2742 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2743
2744 2019-09-20 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2747 height for locator.
2748 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2749 * tui/tui-layout.c (show_source_disasm_command, show_data)
2750 (show_source_or_disasm_and_command): Use 1 as height for locator.
2751
2752 2019-09-20 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui.c (tui_enable): Update.
2755 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2756 Update.
2757 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2758 Update.
2759 * tui/tui-data.c (win_resized): Now bool.
2760 (tui_win_resized): Return bool.
2761 (tui_set_win_resized_to): Accept a bool.
2762
2763 2019-09-20 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2766 Change type of "refresh_values_only".
2767 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2768 type of "refresh_values_only".
2769
2770 2019-09-20 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2773 std::string.
2774 (tui_disassemble): Add "pos" parameter.
2775 (tui_disasm_window::set_contents): Simplify.
2776
2777 2019-09-20 Tom Tromey <tom@tromey.com>
2778
2779 * tui/tui-winsource.h (struct tui_source_window_base)
2780 <show_source_content>: Now private.
2781 * tui/tui-winsource.c
2782 (tui_source_window_base::show_source_content): Don't handle empty
2783 content case.
2784
2785 2019-09-20 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-layout.c (show_source_disasm_command)
2788 (show_source_or_disasm_and_command): Don't call
2789 show_source_content.
2790
2791 2019-09-20 Tom Tromey <tom@tromey.com>
2792
2793 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2794 Declare.
2795 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2796 from tui_make_status_line.
2797 (tui_locator_window::rerender): Update.
2798
2799 2019-09-20 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2802 (tui_locator_window::rerender): Update.
2803
2804 2019-09-20 Tom Tromey <tom@tromey.com>
2805
2806 * tui/tui-winsource.h (struct tui_source_window_base)
2807 <~tui_source_window_base>: Don't declare.
2808 <fullname>: Remove.
2809 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2810 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2811 member.
2812 * tui/tui-source.c (tui_source_window::set_contents): Update.
2813 (tui_source_window::location_matches_p)
2814 (tui_source_window::maybe_update): Update.
2815
2816 2019-09-20 Tom Tromey <tom@tromey.com>
2817
2818 * tui/tui-winsource.h (~tui_source_element): Remove.
2819 (tui_source_element): Update.
2820 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2821 * tui/tui-winsource.c (tui_show_source_line): Update.
2822 * tui/tui-source.c (tui_source_window::set_contents): Update.
2823 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2824
2825 2019-09-20 Tom Tromey <tom@tromey.com>
2826
2827 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2828 declare.
2829 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2830 tui_clear_source_windows_detail.
2831 * tui/tui-winsource.h (struct tui_source_window_base)
2832 <clear_detail>: Don't declare.
2833 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2834 Remove.
2835 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2836
2837 2019-09-20 Tom Tromey <tromey@adacore.com>
2838
2839 PR ada/24919:
2840 * block.c (contained_in): Fix final return value.
2841
2842 2019-09-20 Alan Modra <amodra@gmail.com>
2843
2844 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2845 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2846 (read_indirect_string_from_dwz): Use bfd accessor.
2847 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2848 * machoread.c (macho_symfile_read_all_oso): Likewise.
2849 * solib.c (solib_bfd_open): Likewise.
2850
2851 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2852
2853 * eval.c: Move declaration of overload_resolution to...
2854 * value.h: ...here.
2855
2856 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2857
2858 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2859 * arm-linux-tdep.c: Likewise.
2860 * arm-nbsd-nat.c: Likewise.
2861 * arm-tdep.h: Declare arm_apcs_32.
2862 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2863
2864 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2865
2866 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2867 * dwarf2read.h: Declare dwarf_always_disassemble.
2868
2869 2019-09-19 Tom de Vries <tdevries@suse.de>
2870
2871 PR gdb/25009
2872 * source-cache.c (source_cache::ensure): Catch exception thrown during
2873 construction of the highlighter.
2874
2875 2019-09-18 Alan Modra <amodra@gmail.com>
2876
2877 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2878 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2879 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2880 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2881 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2882 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2883 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2884 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2885 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2886 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2887 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2888 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2889 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2890 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2891 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2892 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2893 * mi/mi-interp.c: Update throughout for bfd section macro and
2894 function changes.
2895 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2896 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2897
2898 2019-09-18 Tom Tromey <tom@tromey.com>
2899
2900 * NEWS: Add entry.
2901 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2902 call rl_initialize.
2903 (tui_enable): Do not call rl_initialize.
2904
2905 2019-09-18 Christian Groessler <chris@groessler.org>
2906
2907 * alpha-linux-nat.c: Include gdbarch.h.
2908
2909 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * ui-file.c: Include cli/cli-style.h.
2912 (term_cli_styling): Remove cli_styling declaration.
2913
2914 2019-09-18 Alan Modra <amodra@gmail.com>
2915
2916 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2917 to bfd_asymbol_section.
2918
2919 2019-09-18 Alan Modra <amodra@gmail.com>
2920
2921 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2922 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2923 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2924
2925 2019-09-18 Alan Modra <amodra@gmail.com>
2926
2927 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2928 * spu-linux-nat.c (spu_bfd_open): Likewise.
2929
2930 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2931
2932 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2933 to bool to match definition in dwarf2read.c.
2934
2935 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2936
2937 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2938 (print_signatures): Likewise.
2939 (trust_pad_over_xvs): Likewise.
2940 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2941 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2942 * arm-linux-nat.c (arm_apcs_32): Likewise.
2943 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2944 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2945 * arm-tdep.c (arm_debug): Likewise.
2946 (arm_apcs_32): Likewise.
2947 * auto-load.c (debug_auto_load): Likewise.
2948 (auto_load_gdb_scripts): Likewise.
2949 (global_auto_load): Likewise.
2950 (auto_load_local_gdbinit): Likewise.
2951 (auto_load_local_gdbinit_loaded): Likewise.
2952 * auto-load.h (global_auto_load): Likewise.
2953 (auto_load_local_gdbinit): Likewise.
2954 (auto_load_local_gdbinit_loaded): Likewise.
2955 * breakpoint.c (disconnected_dprintf): Likewise.
2956 (breakpoint_proceeded): Likewise.
2957 (automatic_hardware_breakpoints): Likewise.
2958 (always_inserted_mode): Likewise.
2959 (target_exact_watchpoints): Likewise.
2960 (_initialize_breakpoint): Update.
2961 * breakpoint.h (target_exact_watchpoints): Change to bool.
2962 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2963 * cli/cli-cmds.c (trace_commands): Likewise.
2964 * cli/cli-cmds.h (trace_commands): Likewise.
2965 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2966 to bool*.
2967 * cli/cli-logging.c (logging_overwrite): Change to bool.
2968 (logging_redirect): Likewise.
2969 (debug_redirect): Likewise.
2970 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2971 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2972 to bool.
2973 <boolean_option_def>: Update.
2974 (struct flag_option_def): Change default type of Context to bool
2975 from int.
2976 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2977 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2978 (get_setshow_command_value_string): Likewise.
2979 * cli/cli-style.c (cli_styling): Change to bool.
2980 (source_styling): Likewise.
2981 * cli/cli-style.h (source_styling): Likewise.
2982 (cli_styling): Likewise.
2983 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2984 to bool.
2985 * command.h (var_types): Update comment.
2986 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2987 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2988 bool.
2989 (debug_compile_cplus_scopes): Likewise.
2990 * compile/compile-internal.h (compile_debug): Likewise.
2991 * compile/compile.c (compile_debug): Likewise.
2992 (struct compile_options) <raw>: Likewise.
2993 * cp-support.c (catch_demangler_crashes): Likewise.
2994 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2995 (usr_cmd_cris_dwarf2_cfi): Likewise.
2996 * csky-tdep.c (csky_debug): Likewise.
2997 * darwin-nat.c (enable_mach_exceptions): Likewise.
2998 * dcache.c (dcache_enabled_p): Likewise.
2999 * defs.h (info_verbose): Likewise.
3000 * demangle.c (demangle): Likewise.
3001 (asm_demangle): Likewise.
3002 * dwarf-index-cache.c (debug_index_cache): Likewise.
3003 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3004 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3005 * dwarf2read.c (check_physname): Likewise.
3006 (use_deprecated_index_sections): Likewise.
3007 (dwarf_always_disassemble): Likewise.
3008 * eval.c (overload_resolution): Likewise.
3009 * event-top.c (set_editing_cmd_var): Likewise.
3010 (exec_done_display_p): Likewise.
3011 * event-top.h (set_editing_cmd_var): Likewise.
3012 (exec_done_display_p): Likewise.
3013 * exec.c (write_files): Likewise.
3014 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3015 (debug_fbsd_nat): Likewise.
3016 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3017 Likewise.
3018 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3019 <backtrace_past_entry> Likewise.
3020 * gdb-demangle.h (demangle): Likewise.
3021 (asm_demangle): Likewise.
3022 * gdb_bfd.c (bfd_sharing): Likewise.
3023 * gdbcore.h (write_files): Likewise.
3024 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3025 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3026 * gdbthread.h (print_thread_events): Likewise.
3027 * gdbtypes.c (opaque_type_resolution): Likewise.
3028 (strict_type_checking): Likewise.
3029 * gnu-nat.c (gnu_debug_flag): Likewise.
3030 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3031 * guile/scm-param.c (pascm_variable): Add boolval.
3032 (add_setshow_generic): Update.
3033 (pascm_param_value): Update.
3034 (pascm_set_param_value_x): Update.
3035 * hppa-tdep.c (hppa_debug): Change to bool..
3036 * infcall.c (may_call_functions_p): Likewise.
3037 (coerce_float_to_double_p): Likewise.
3038 (unwind_on_signal_p): Likewise.
3039 (unwind_on_terminating_exception_p): Likewise.
3040 * infcmd.c (startup_with_shell): Likewise.
3041 * inferior.c (print_inferior_events): Likewise.
3042 * inferior.h (startup_with_shell): Likewise.
3043 (print_inferior_events): Likewise.
3044 * infrun.c (step_stop_if_no_debug): Likewise.
3045 (detach_fork): Likewise.
3046 (debug_displaced): Likewise.
3047 (disable_randomization): Likewise.
3048 (non_stop): Likewise.
3049 (non_stop_1): Likewise.
3050 (observer_mode): Likewise.
3051 (observer_mode_1): Likewise.
3052 (set_observer_mode): Update.
3053 (sched_multi): Change to bool.
3054 * infrun.h (debug_displaced): Likewise.
3055 (sched_multi): Likewise.
3056 (step_stop_if_no_debug): Likewise.
3057 (non_stop): Likewise.
3058 (disable_randomization): Likewise.
3059 * linux-tdep.c (use_coredump_filter): Likewise.
3060 (dump_excluded_mappings): Likewise.
3061 * linux-thread-db.c (auto_load_thread_db): Likewise.
3062 (check_thread_db_on_load): Likewise.
3063 * main.c (captured_main_1): Update.
3064 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3065 xx2_opt, boolean_opt>: Change to bool.
3066 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3067 * maint.c (maintenance_profile_p): Likewise.
3068 (per_command_time): Likewise.
3069 (per_command_space): Likewise.
3070 (per_command_symtab): Likewise.
3071 * memattr.c (inaccessible_by_default): Likewise.
3072 * mi/mi-main.c (mi_async): Likewise.
3073 (mi_async_1): Likewise.
3074 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3075 * nat/fork-inferior.h (startup_with_shell): Likewise.
3076 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3077 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3078 * nios2-tdep.c (nios2_debug): Likewise.
3079 * or1k-tdep.c (or1k_debug): Likewise.
3080 * parse.c (parser_debug): Likewise.
3081 * parser-defs.h (parser_debug): Likewise.
3082 * printcmd.c (print_symbol_filename): Likewise.
3083 * proc-api.c (procfs_trace): Likewise.
3084 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3085 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3086 (set_parameter_value): Update.
3087 (add_setshow_generic): Update.
3088 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3089 to bool*.
3090 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3091 int*.
3092 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3093 * record-btrace.c (record_btrace_target::store_registers): Update.
3094 * record-full.c (record_full_memory_query): Change to bool.
3095 (record_full_stop_at_limit): Likewise.
3096 * record-full.h (record_full_memory_query): Likewise.
3097 * remote-notif.c (notif_debug): Likewise.
3098 * remote-notif.h (notif_debug): Likewise.
3099 * remote.c (use_range_stepping): Likewise.
3100 (interrupt_on_connect): Likewise.
3101 (remote_break): Likewise.
3102 * ser-tcp.c (tcp_auto_retry): Likewise.
3103 * ser-unix.c (serial_hwflow): Likewise.
3104 * skip.c (debug_skip): Likewise.
3105 * solib-aix.c (solib_aix_debug): Likewise.
3106 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3107 (spu_auto_flush_cache_p): Likewise.
3108 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3109 Likewise.
3110 (struct info_print_options) <quiet>: Likewise.
3111 * symfile-debug.c (debug_symfile): Likewise.
3112 * symfile.c (auto_solib_add): Likewise.
3113 (separate_debug_file_debug): Likewise.
3114 * symfile.h (auto_solib_add): Likewise.
3115 (separate_debug_file_debug): Likewise.
3116 * symtab.c (basenames_may_differ): Likewise.
3117 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3118 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3119 (struct info_types_options) <quiet>: Likewise.
3120 * symtab.h (demangle): Likewise.
3121 (basenames_may_differ): Likewise.
3122 * target-dcache.c (stack_cache_enabled_1): Likewise.
3123 (code_cache_enabled_1): Likewise.
3124 * target.c (trust_readonly): Likewise.
3125 (may_write_registers): Likewise.
3126 (may_write_memory): Likewise.
3127 (may_insert_breakpoints): Likewise.
3128 (may_insert_tracepoints): Likewise.
3129 (may_insert_fast_tracepoints): Likewise.
3130 (may_stop): Likewise.
3131 (auto_connect_native_target): Likewise.
3132 (target_stop_and_wait): Update.
3133 (target_async_permitted): Change to bool.
3134 (target_async_permitted_1): Likewise.
3135 (may_write_registers_1): Likewise.
3136 (may_write_memory_1): Likewise.
3137 (may_insert_breakpoints_1): Likewise.
3138 (may_insert_tracepoints_1): Likewise.
3139 (may_insert_fast_tracepoints_1): Likewise.
3140 (may_stop_1): Likewise.
3141 * target.h (target_async_permitted): Likewise.
3142 (may_write_registers): Likewise.
3143 (may_write_memory): Likewise.
3144 (may_insert_breakpoints): Likewise.
3145 (may_insert_tracepoints): Likewise.
3146 (may_insert_fast_tracepoints): Likewise.
3147 (may_stop): Likewise.
3148 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3149 (make_thread_apply_all_options_def_group): Change argument from int*
3150 to bool*.
3151 (thread_apply_all_command): Update.
3152 (print_thread_events): Change to bool.
3153 * top.c (confirm): Likewise.
3154 (command_editing_p): Likewise.
3155 (history_expansion_p): Likewise.
3156 (write_history_p): Likewise.
3157 (info_verbose): Likewise.
3158 * top.h (confirm): Likewise.
3159 (history_expansion_p): Likewise.
3160 * tracepoint.c (disconnected_tracing): Likewise.
3161 (circular_trace_buffer): Likewise.
3162 * typeprint.c (print_methods): Likewise.
3163 (print_typedefs): Likewise.
3164 * utils.c (debug_timestamp): Likewise.
3165 (sevenbit_strings): Likewise.
3166 (pagination_enabled): Likewise.
3167 * utils.h (sevenbit_strings): Likewise.
3168 (pagination_enabled): Likewise.
3169 * valops.c (overload_resolution): Likewise.
3170 * valprint.h (struct value_print_options) <prettyformat_arrays,
3171 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3172 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3173 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3174 Likewise.
3175 * windows-nat.c (new_console): Likewise.
3176 (cygwin_exceptions): Likewise.
3177 (new_group): Likewise.
3178 (debug_exec): Likewise.
3179 (debug_events): Likewise.
3180 (debug_memory): Likewise.
3181 (debug_exceptions): Likewise.
3182 (useshell): Likewise.
3183 * windows-tdep.c (maint_display_all_tib): Likewise.
3184 * xml-support.c (debug_xml): Likewise.
3185
3186 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3187
3188 * source.c (prepare_path_for_appending): New function.
3189 (openp): Make use of new function.
3190 (find_and_open_source): Search for the compilation directory and
3191 source file as a relative path beneath the directory search path.
3192
3193 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * source-cache.c (source_cache::get_line_charpos): Catch
3196 exceptions and return false, this matches the behaviour documented
3197 in the header file.
3198
3199 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3200
3201 * ada-tasks.c (info_task): Remove quoting of the task's name.
3202
3203 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3204
3205 * symfile.c (auto_solib_add): Replace comment with a reference
3206 to the header file.
3207
3208 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3209
3210 * NEWS: Mention that gdb can now be compiled with Python 3
3211 on Windows.
3212
3213 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * maint.c (maint_print_section_data::maint_print_section_data):
3216 Force use of 'float log10 (float)' by casting the argument to
3217 float.
3218
3219 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * maint.c: Add 'cmath' include.
3222 (struct maint_print_section_data): New structure.
3223 (print_section_index): New function.
3224 (print_bfd_section_info): Add header comment, small whitespace
3225 cleanup, and update to call new print_section_index function.
3226 (print_objfile_section_info): Likewise.
3227 (maint_obj_section_from_bfd_section): New function.
3228 (print_bfd_section_info_maybe_relocated): New function.
3229 (maintenance_info_sections): Add header comment, always use
3230 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3231
3232 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3235 inner scope, add check that the objfile has psymtabs before
3236 checking psymtabs_addrmap.
3237 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3238
3239 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3240
3241 * NEWS: Announce that Ada task names are now shown at more places,
3242 and between quotes (except in info task output).
3243 * gdb/ada-tasks.c (task_to_str): New function.
3244 (display_current_task_id): Call task_to_str.
3245 (task_command_1): Likewise.
3246 (print_ada_task_info): In non-mi mode, Properly align headers and data
3247 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3248
3249 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3250
3251 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3252 prstatus.pr_lwp.pr_info instead of making it up.
3253
3254 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3255
3256 * auto-load.c (auto_load_expand_dir_vars): Update.
3257 * defs.h (gdb_datadir): Change to std::string.
3258 (python_libdir): Likewise.
3259 (relocate_gdb_directory): Change return type to std::string.
3260 * guile/guile.c (gdbscm_data_directory): Update.
3261 (initialize_scheme_side): Update.
3262 * jit.c (jit_reader_dir): Change to std::string.
3263 (jit_reader_load_command): Update.
3264 * main.c (gdb_datadir): Change to std::string.
3265 (python_libdir): Likewise.
3266 (set_gdb_data_directory): Update.
3267 (relocate_path): Change to return std::string.
3268 (relocate_gdb_directory): Change to return std::string.
3269 (relocate_gdbinit_path_maybe_in_datadir): Update.
3270 (captured_main_1): Update.
3271 * python/python.c (do_start_initialization): Update.
3272 * top.c (show_gdb_datadir): Update.
3273 * xml-syscall.c (xml_init_syscalls_info): Update.
3274 (init_syscalls_info): Update.
3275
3276 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3277
3278 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3279 out of get_init_files.
3280 (get_init_files): Update.
3281
3282 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3283
3284 * main.c (get_init_files): Change to use std::string.
3285 (captured_main_1): Update.
3286 (print_gdb_help): Update.
3287
3288 2019-09-11 Ali Tamur <tamur@google.com>
3289
3290 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3291 implementation.
3292
3293 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3294
3295 * dbxread.c (read_dbx_symtab): Update.
3296 * dwarf2read.c (load_partial_dies): Update.
3297 * mdebugread.c (parse_partial_symbols): Update.
3298 (handle_psymbol_enumerators): Update.
3299 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3300 * psymtab.c (add_psymbol_to_bcache): Likewise.
3301 (add_psymbol_to_list): Likewise.
3302 * symtab.c (symbol_set_names): Likewise.
3303 * symtab.h (symbol_set_names): Likewise.
3304 * xcoffread.c (scan_xcoff_symtab): Update.
3305
3306 2019-09-11 Tom Tromey <tom@tromey.com>
3307
3308 * symfile-mem.c (symbol_file_add_from_memory): Use
3309 bfd_set_filename.
3310 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3311 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3312
3313 2019-09-10 Tom Tromey <tromey@adacore.com>
3314
3315 * dwarf-index-write.c (write_psymbols): Extend error message.
3316 (debug_names::insert): Add Ada code.
3317 (debug_names::write_psymbols): Remove Ada check.
3318 (debug_names) <m_string_obstack>: New member.
3319 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3320 (gdb_index_symbol_name_matcher::matches): Remove.
3321 (mapped_index_base::find_name_components_bounds): Add "lang"
3322 parameter.
3323 (mapped_index_base::build_name_components): Also split names
3324 according to Ada syntax.
3325 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3326 type of "match_callback".
3327 (check_match, check_find_bounds_finds)
3328 (dw2_expand_symtabs_matching): Update.
3329 (dw2_debug_names_iterator): Add new constructor.
3330 (dw2_debug_names_map_matching_symbols): New function.
3331 (dw2_debug_names_expand_symtabs_matching): Update.
3332 (dwarf2_debug_names_functions): Use
3333 dw2_debug_names_map_matching_symbols.
3334
3335 2019-09-10 Tom Tromey <tromey@adacore.com>
3336
3337 * dwarf2read.c (dw2_get_file_names_reader): Add the
3338 CU's file name to the results.
3339
3340 2019-09-10 Tom Tromey <tromey@adacore.com>
3341
3342 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3343 map_matching_symbols. Update.
3344 * dwarf2read.c (dw2_map_matching_symbols): Update.
3345 * psymtab.c (match_partial_symbol): Change type; update.
3346 (psym_map_matching_symbols): Likewise.
3347 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3348 type; update.
3349 * symfile.h (struct quick_symbol_functions)
3350 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3351 Remove "match".
3352
3353 2019-09-10 Tom Tromey <tromey@adacore.com>
3354
3355 * psymtab.c (map_block): Remove.
3356 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3357 * symtab.c (iterate_over_symbols_terminated): New function.
3358 * symtab.c (iterate_over_symbols_terminated): Declare.
3359
3360 2019-09-10 Tom Tromey <tromey@adacore.com>
3361
3362 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3363 * language.h (struct language_defn) <la_iterate_over_symbols>:
3364 Return bool.
3365 * symtab.c (iterate_over_symbols): Return bool.
3366 * symtab.h (iterate_over_symbols): Return bool.
3367
3368 2019-09-10 Tom Tromey <tromey@adacore.com>
3369
3370 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3371 (add_nonlocal_symbols): Update.
3372 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3373 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3374 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3375 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3376 Change type of "callback". Remove "data".
3377
3378
3379 2019-09-09 Ali Tamur <tamur@google.com>
3380
3381 * dwarf2read.c (comp_unit_head): Update comment.
3382 (dwarf2_dwo_name): New function declaration.
3383 (dwarf_unit_type_name): New function declaration.
3384 (read_comp_unit_head): Add support for new compilation units,
3385 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3386 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3387 (currently named as "signature") in their header. Also clarify error
3388 messages.
3389 (lookup_dwo_id): New function. Returns the dwo id of the given
3390 compile unit.
3391 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3392 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3393 functions.
3394 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3395 (dwarf2_dwo_name): Get the dwo name if present.
3396 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3397 purposes.
3398
3399 2019-09-09 Tom Tromey <tom@tromey.com>
3400
3401 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3402
3403 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3404
3405 * python/python.c (do_start_initialization): Make progname_copy static,
3406 to avoid a leak report.
3407
3408 2019-09-08 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3411
3412 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3413
3414 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3415 Change type to gdb::optional<block_enum>.
3416 (dw2_symtab_iter_init): Change block_index parameter type
3417 to gdb::optional<block_enum>.
3418 (dw2_lookup_symbol): Change block_index parameter
3419 type to block_enum.c
3420 (dw2_debug_names_lookup_symbol): Likewise.
3421 * psymtab.c (psym_lookup_symbol): Likewise.
3422 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3423 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3424 Likewise.
3425
3426 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3427
3428 * defs.h (relocate_gdb_directory): Change int to bool in
3429 signature and rename flag to relocatable.
3430 * main.c (relocate_path): Likewise.
3431 (relocate_gdb_directory): Likewise.
3432
3433 2019-09-06 Alan Modra <amodra@gmail.com>
3434
3435 * coffread.c (coff_symfile_read): Constify filename variable.
3436 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3437 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3438 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3439 * solib.c (reload_shared_libraries_1): Likewise.
3440 * symfile.c (reread_symbols): Likewise.
3441 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3442 * solib-darwin.c (darwin_bfd_open): Likewise.
3443 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3444
3445 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3446
3447 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3448 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3449
3450 2019-09-03 Tom Tromey <tromey@adacore.com>
3451
3452 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3453 types.
3454 (has_negatives): Unbias a range type bound.
3455 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3456 * gdbtypes.c (operator==): Handle new field.
3457 (create_range_type): Add "bias" parameter.
3458 (create_static_range_type, resolve_dynamic_range): Update.
3459 * gdbtypes.h (struct range_bounds) <bias>: New member.
3460 (create_range_type): Add bias parameter.
3461 * printcmd.c (print_scalar_formatted): Unbias range types.
3462 * value.c (unpack_long): Unbias range types.
3463 (pack_long): Bias range types.
3464
3465 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3466
3467 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3468 probe arguments.
3469
3470 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3471
3472 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3473 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3474 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3475 (compile_probe_arg): Likewise.
3476 * probe.h (get_argument_count): Likewise.
3477 * solib-svr4.c (solib_event_probe_action): Likewise.
3478 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3479
3480 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3481
3482 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3483 code to here...
3484 (svr4_create_solib_event_breakpoints): ...from here.
3485
3486 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3487
3488 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3489 suffix from warning message.
3490
3491 2019-08-30 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-winsource.h (struct tui_source_window_base)
3494 <refresh_all>: Don't declare.
3495 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3496 Remove.
3497 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3498 tui_show_locator_content.
3499 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3500 declare.
3501 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3502 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3503 declare.
3504
3505 2019-08-30 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3508
3509 2019-08-30 Tom Tromey <tom@tromey.com>
3510
3511 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3512 Remove unnecessary forward declarations.
3513
3514 2019-08-30 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3517 rerender.
3518 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3519 tui_show_locator_content.
3520
3521 2019-08-30 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3524 (tui_locator_window::rerender): Rewrite using body of previous
3525 tui_show_locator_content.
3526
3527 2019-08-30 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3530 set_locator_fullname>: New methods.
3531 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3532 Rename from tui_set_locator_fullname.
3533 (tui_locator_window::set_locator_info): Rename from
3534 tui_set_locator_info. Return bool.
3535 (tui_update_locator_fullname, tui_show_frame_info): Update.
3536
3537 2019-08-30 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3540
3541 2019-08-30 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3544 call touchwin.
3545
3546 2019-08-30 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-wingeneral.c (box_win): Assume win_info and
3549 win_info->handle cannot be NULL.
3550
3551 2019-08-30 Tom Tromey <tom@tromey.com>
3552
3553 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3554 refresh_window>: Declare.
3555 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3556 resize.
3557 (tui_data_item_window::rerender): Rename from
3558 tui_display_register.
3559 (tui_data_item_window::refresh_window): New method.
3560 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3561 no-op.
3562
3563 2019-08-30 Tom Tromey <tom@tromey.com>
3564
3565 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3566 regs_column_count, current_group>: Move later. Now private.
3567 <get_current_group>: New method.
3568 * tui/tui-regs.c (tui_reg_command): Update.
3569 * tui/tui-layout.c (tui_set_layout): Update.
3570
3571 2019-08-30 Tom Tromey <tom@tromey.com>
3572
3573 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3574 (tui_data_window::rerender): Don't call
3575 check_and_display_highlight_if_needed.
3576 (tui_data_window::refresh_all): Remove call to
3577 erase_data_content.
3578
3579 2019-08-30 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3582 (tui_data_window::display_registers_from)
3583 (tui_data_window::display_reg_element_at_line)
3584 (tui_data_window::display_registers_from_line): Remove checks of
3585 "empty".
3586
3587 2019-08-30 Tom Tromey <tom@tromey.com>
3588
3589 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3590 Don't declare.
3591 * tui/tui-regs.c (tui_data_window::show_registers): Call
3592 rerender.
3593 (tui_data_window::rerender): Rename from display_all_data.
3594 (tui_data_window::rerender): Remove old implementation.
3595
3596 2019-08-30 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3599 text.
3600 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3601
3602 2019-08-29 Bernhard Wodok <barto@gmx.net>
3603 Sergio Durigan Junior <sergiodj@redhat.com>
3604
3605 PR win32/24284
3606 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3607
3608 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3611 when searching for types.
3612
3613 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * f-lang.c (f_language_defn): Use f_print_typedef.
3616 * f-lang.h (f_print_typedef): Declare.
3617 * f-typeprint.c (f_print_typedef): Define.
3618
3619 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3620
3621 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3622
3623 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * cli/cli-utils.c (info_print_options_defs): Delete.
3626 (make_info_print_options_def_group): Delete.
3627 (extract_info_print_options): Delete.
3628 (info_print_command_completer): Delete.
3629 (info_print_args_help): Add extra parameter, and optionally
3630 include text about -n flag.
3631 * cli/cli-utils.h (struct info_print_options): Delete.
3632 (extract_info_print_options): Delete declaration.
3633 (info_print_command_completer): Delete declaration.
3634 (info_print_args_help): Add extra parameter, extend header
3635 comment.
3636 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3637 search_symbols.
3638 * stack.c (struct info_print_options): New type.
3639 (info_print_options_defs): New file scoped variable.
3640 (make_info_print_options_def_group): New static function.
3641 (info_print_command_completer): New static function.
3642 (info_locals_command): Update to use new local functions.
3643 (info_args_command): Likewise.
3644 (_initialize_stack): Add extra parameter to calls to
3645 info_print_args_help.
3646 * symtab.c (search_symbols): Add extra parameter, use this to
3647 possibly excluse non-debug symbols.
3648 (symtab_symbol_info): Add extra parameter, which is passed on to
3649 search_symbols.
3650 (struct info_print_options): New type.
3651 (info_print_options_defs): New file scoped variable.
3652 (make_info_print_options_def_group): New static function.
3653 (info_print_command_completer): New static function.
3654 (info_variables_command): Update to use local functions, and pass
3655 extra parameter through to symtab_symbol_info.
3656 (info_functions_command): Likewise.
3657 (info_types_command): Pass additional argument through to
3658 symtab_symbol_info.
3659 (rbreak_command): Pass extra argument to search_symbols.
3660 (_initialize_symtab): Add extra arguments for calls to
3661 info_print_args_help, and update help text for 'info variables',
3662 'whereis', and 'info functions' commands.
3663 * symtab.h (search_symbols): Add extra argument to declaration.
3664 * NEWS: Mention new flags.
3665
3666 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3667
3668 * symtab.c (lookup_static_symbol): Call the new function (and move
3669 it down to be next to lookup_global_symbol).
3670 (struct global_sym_lookup_data): Add block_enum member and rename to...
3671 (struct global_or_static_sym_lookup_data): ...this.
3672 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3673 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3674 (lookup_symbol_global_or_static_iterator_cb): ...this.
3675 (lookup_global_or_static_symbol): New function.
3676 (lookup_global_symbol): Call new function.
3677
3678 2019-08-26 Tom de Vries <tdevries@suse.de>
3679
3680 PR c++/24852
3681 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3682 when pc_probe.prob == NULL.
3683
3684 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3687 variable symbol_linkage to symbol_linkage_.
3688
3689 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3692 represent whether the symbol is static, dynamic, or we don't
3693 know.
3694
3695 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3696
3697 * gdb/rx-tdep.c (rx_register_names): New.
3698 (rx_register_name): Delete.
3699 (rx_psw_type): Delete.
3700 (rx_fpsw_type): Delete.
3701 (rx_register_type): Delete.
3702 (rx_gdbarch_init): Convert target-descriptions.
3703 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3704 * gdb/features/Makefile: Add rx.xml.
3705 * gdb/features/rx.xml: New.
3706 * gdb/features/rx.c: Generated.
3707 * gdb/NEWS: Mention target description support.
3708
3709 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3710
3711 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3712 *slot_ptr.
3713
3714 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3715
3716 * configure.ac: Don't check for 'dlfcn.h' (moved to
3717 gdbsupport/common.m4).
3718 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3719 'gdbsupport/'.
3720 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3721 * compile/compile-c-support.c: Include
3722 'gdbsupport/gdb-dlfcn.h'.
3723 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3724 * gdb-dlfcn.c: Move to...
3725 * gdbsupport/gdb-dlfcn.c: ... here.
3726 * gdb-dlfcn.h: Move to...
3727 * gdbsupport/gdb-dlfcn.h: ... here.
3728
3729 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3730
3731 * nios2-tdep.c (struct reg_value): Improve comments. Make
3732 the offset field signed.
3733
3734 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3735
3736 * python/lib/gdb/__init__.py (_execute_file): New function.
3737 * python/python.c (python_run_simple_file): Call gdb._execute_file
3738 on Windows.
3739
3740 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3743 all uses as this was never set to anything but a zero value.
3744
3745 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3746
3747 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3748
3749 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3750
3751 * tui/tui-data.h (tui_gen_win_info): Add an =default
3752 move constructor, required by some GCC versions.
3753
3754 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3755
3756 * go32-nat.c (go32_sysinfo): Add hygon_p.
3757
3758 2019-08-20 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3761 line_from_reg_element_no, first_reg_element_no_inline,
3762 display_all_data, delete_data_content_windows,
3763 erase_data_content>: Now private.
3764
3765 2019-08-20 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3768 (tui_unhighlight_win, tui_highlight_win)
3769 (tui_win_info::make_window): Update.
3770 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3771
3772 2019-08-20 Tom Tromey <tom@tromey.com>
3773
3774 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3775 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3776 (MAX_PID_WIDTH): Move to tui-stack.c.
3777 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3778 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3779 (MAX_PID_WIDTH): Move from tui-data.h.
3780
3781 2019-08-20 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3784 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3785 (box_win): Update.
3786 (tui_gen_win_info::make_window): Rename from tui_make_window.
3787 (tui_win_info::make_window): New method.
3788 (tui_gen_win_info::make_visible): Update.
3789 * tui/tui-source.c (tui_source_window::set_contents): Update.
3790 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3791 (tui_data_window::display_registers_from): Update.
3792 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3793 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3794 Declare.
3795 <can_box>: Remove.
3796 <title>: Remove.
3797 (struct tui_win_info) <make_window>: Declare.
3798 <can_box>: Now virtual.
3799 <title>: New member.
3800 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3801 * tui/tui-command.c (tui_cmd_window::resize): Update.
3802
3803 2019-08-20 Tom Tromey <tom@tromey.com>
3804
3805 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3806 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3807 (tui_data_window::check_register_values): Update.
3808
3809 2019-08-20 Tom Tromey <tom@tromey.com>
3810
3811 * tui/tui-regs.h (struct tui_data_window): Use
3812 DISABLE_COPY_AND_ASSIGN.
3813 <regs_content>: Change type, removing unique_ptr.
3814 <tui_data_window>: Add move constructor.
3815 * tui/tui-regs.c (tui_data_window::show_registers)
3816 (tui_data_window::show_register_group)
3817 (tui_data_window::display_registers_from)
3818 (tui_data_window::display_registers_from)
3819 (tui_data_window::first_data_item_displayed)
3820 (tui_data_window::delete_data_content_windows)
3821 (tui_data_window::rerender, tui_data_window::refresh_window)
3822 (tui_data_window::check_register_values): Update.
3823
3824 2019-08-20 Tom Tromey <tom@tromey.com>
3825
3826 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3827 show_register_group>: Declare.
3828 (tui_show_register_group): Don't declare.
3829 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3830 tui_show_registers.
3831 (tui_data_window::show_register_group): Rename from
3832 tui_show_register_group.
3833 (tui_data_window::check_register_values, tui_reg_command):
3834 Update.
3835 * tui/tui-layout.c (tui_set_layout): Update.
3836
3837 2019-08-20 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3840 Declare.
3841 (tui_check_register_values): Don't declare.
3842 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3843 from tui_check_register_values.
3844 * tui/tui-hooks.c (tui_register_changed): Update.
3845
3846 2019-08-20 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-regs.c (tui_reg_layout): Move later.
3849 (tui_show_registers): Don't enable TUI mode or change layout.
3850
3851 2019-08-20 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-regs.h (struct tui_data_item_window)
3854 <~tui_data_item_window>: Remove.
3855 <content>: Now a unique_xmalloc_ptr.
3856 * tui/tui-regs.c (tui_register_format): Return a
3857 unique_xmalloc_ptr.
3858 (tui_get_register): Update.
3859 (~tui_data_item_window): Remove.
3860 (tui_data_window::display_registers_from, tui_display_register):
3861 Update.
3862 * tui/tui-io.h (tui_expand_tabs): Update.
3863 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3864 Remove "col" parameter.
3865
3866 2019-08-20 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3869 field.
3870 * tui/tui-regs.c (~tui_data_item_window): Update.
3871
3872 2019-08-20 Tom Tromey <tom@tromey.com>
3873
3874 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3875 earlier.
3876
3877 2019-08-20 Tom Tromey <tom@tromey.com>
3878
3879 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3880
3881 2019-08-20 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-source.h (struct tui_source_window): Update.
3884 * tui/tui-regs.c (tui_show_registers): Update.
3885 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3886 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3887 (NO_REGS_STRING): Remove defines.
3888
3889 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3890
3891 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3892 unnecessary thread walk if remote doesn't support the packet.
3893
3894 2019-08-19 Tom Tromey <tromey@adacore.com>
3895
3896 * python/py-value.c (value_has_field): Fix indentation.
3897
3898 2019-08-19 Tom Tromey <tromey@adacore.com>
3899
3900 * printcmd.c (do_one_display, info_display_command): Update.
3901 * block.h (contained_in): Return bool. Add allow_nested
3902 parameter.
3903 * block.c (contained_in): Return bool. Add allow_nested
3904 parameter.
3905
3906 2019-08-19 Tom Tromey <tom@tromey.com>
3907
3908 * configure: Rebuild.
3909 * configure.ac: Disallow the combination of -static-libstdc++ and
3910 source highlight.
3911 * source-cache.c (get_language_name): Handle rust.
3912 (source_cache::get_source_lines): Ignore highlighting exceptions.
3913
3914 2019-08-16 Tom Tromey <tom@tromey.com>
3915
3916 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3917 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3918 (struct tui_source_window_base) <make_visible, refresh_window,
3919 resize>: Remove methods.
3920 <execution_info>: Remove field.
3921 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3922 (tui_show_source_line, tui_source_window_base)
3923 (~tui_source_window_base): Update.
3924 (tui_source_window_base::resize)
3925 (tui_source_window_base::make_visible)
3926 (tui_source_window_base::refresh_window): Remove.
3927 (tui_source_window_base::update_exec_info): Update.
3928 * tui/tui-source.c (tui_source_window::set_contents): Update.
3929 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3930
3931 2019-08-16 Tom Tromey <tom@tromey.com>
3932
3933 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3934 deprecated_query_hook.
3935
3936 2019-08-16 Tom Tromey <tom@tromey.com>
3937
3938 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3939 (tui_update_source_windows_with_line): Update.
3940 * tui/tui-source.h (struct tui_source_window)
3941 <show_symtab_source>: Declare.
3942 (tui_show_symtab_source): Don't declare.
3943 * tui/tui-source.c (tui_show_symtab_source): Rename from
3944 tui_show_symtab_source.
3945
3946 2019-08-16 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-winsource.h (struct tui_source_window_base)
3949 <set_contents>: Declare.
3950 * tui/tui-winsource.c
3951 (tui_source_window_base::update_source_window_as_is): Update.
3952 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3953 Declare.
3954 (tui_set_source_content): Don't declare.
3955 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3956 tui_set_source_content.
3957 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3958 Declare.
3959 (tui_set_disassem_content): Don't declare.
3960 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3961 tui_set_disassem_content.
3962
3963 2019-08-16 Tom Tromey <tom@tromey.com>
3964
3965 * tui/tui-winsource.h (struct tui_source_window_base)
3966 <update_breakpoint_info>: Declare.
3967 (tui_update_breakpoint_info): Don't declare.
3968 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3969 (tui_update_all_breakpoint_info): Update.
3970 (tui_source_window_base::update_breakpoint_info): Rename from
3971 tui_update_breakpoint_info.
3972 (tui_source_window_base::update_exec_info): Update.
3973
3974 2019-08-16 Tom Tromey <tom@tromey.com>
3975
3976 * tui/tui-winsource.h (struct tui_source_window_base)
3977 <update_source_window>: Declare.
3978 (tui_update_source_window): Don't declare.
3979 * tui/tui-winsource.c
3980 (tui_source_window_base::update_source_window): Rename from
3981 tui_update_source_window.
3982 (tui_source_window_base::rerender): Update.
3983 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3984 * tui/tui-disasm.c (tui_show_disassem)
3985 (tui_show_disassem_and_update_source)
3986 (tui_disasm_window::maybe_update): 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_as_is>: Declare.
3992 (tui_update_source_window_as_is): Don't declare.
3993 * tui/tui-winsource.c (tui_update_source_window): Update
3994 (tui_source_window_base::update_source_window_as_is): Rename from
3995 tui_update_source_window_as_is.
3996 (tui_source_window_base::refill): Update.
3997 * tui/tui-source.c (tui_show_symtab_source): Update.
3998 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3999 Update.
4000
4001 2019-08-16 Tom Tromey <tom@tromey.com>
4002
4003 * tui/tui-winsource.h (tui_update_source_window)
4004 (tui_update_source_window_as_is): Remove "noerror" parameter.
4005 * tui/tui-winsource.c (tui_update_source_window)
4006 (tui_update_source_window_as_is): Remove "noerror" parameter.
4007 (tui_update_source_windows_with_addr)
4008 (tui_update_source_windows_with_line)
4009 (tui_source_window_base::rerender)
4010 (tui_source_window_base::refill): Update.
4011 * tui/tui-source.h (tui_set_source_content)
4012 (tui_show_symtab_source): Remove "noerror" parameter.
4013 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4014 parameter.
4015 (tui_show_symtab_source): Likewise.
4016 (tui_source_window::maybe_update): Update.
4017 * tui/tui-disasm.c (tui_show_disassem)
4018 (tui_show_disassem_and_update_source)
4019 (tui_disasm_window::do_scroll_vertical)
4020 (tui_disasm_window::maybe_update): Update.
4021
4022 2019-08-16 Tom Tromey <tom@tromey.com>
4023
4024 * tui/tui.c (tui_is_window_visible): Update.
4025 * tui/tui-wingeneral.c (tui_make_window)
4026 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4027 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4028 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4029 (tui_set_win_height_command, parse_scrolling_args): Update.
4030 * tui/tui-source.c (tui_source_window::style_changed): Update.
4031 * tui/tui-regs.c (tui_show_registers)
4032 (tui_data_window::first_data_item_displayed)
4033 (tui_data_window::delete_data_content_windows)
4034 (tui_check_register_values, tui_reg_command): Update.
4035 * tui/tui-disasm.c (tui_show_disassem): Update.
4036 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4037 method.
4038 <is_visible>: Remove field.
4039 * tui/tui-data.c (tui_next_win, tui_prev_win)
4040 (tui_delete_invisible_windows): Update.
4041
4042 2019-08-16 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-winsource.h (struct tui_source_window_base)
4045 <m_has_locator>: Remove.
4046 * tui/tui-layout.c (show_source_disasm_command, show_data)
4047 (show_source_or_disasm_and_command): Update.
4048
4049 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4050
4051 * NEWS (Other MI changes): New subsection.
4052 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4053 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4054 * arch-utils.c (default_get_pc_address_flags): New function.
4055 * arch-utils.h (default_get_pc_address_flags): New declaration.
4056 * gdbarch.sh: Add get_pc_address_flags.
4057 * gdbarch.c: Regenerate.
4058 * gdbarch.h: Likewise.
4059 * stack.c (print_pc): New function.
4060 (print_frame_info) (print_frame): Call print_pc.
4061
4062 2019-08-16 Tom de Vries <tdevries@suse.de>
4063
4064 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4065 print_objfile_section_info.
4066
4067 2019-08-15 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4070 calling update_cmdwin_start_line.
4071 * tui/tui-winsource.h (struct tui_source_window_base)
4072 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4073 <rerender>: Declare.
4074 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4075 Call rerender.
4076 (tui_source_window_base::set_new_height): Remove.
4077 (tui_source_window_base::rerender): Rename from
4078 do_make_visible_with_new_height.
4079 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4080 resize method.
4081 (tui_win_info::make_invisible_and_set_new_height)
4082 (tui_win_info::make_visible_with_new_height): Remove.
4083 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4084 Declare.
4085 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4086 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4087 do_make_visible_with_new_height>: Don't declare.
4088 <rerender>: Declare.
4089 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4090 set_new_height.
4091 (tui_data_window::do_make_visible_with_new_height): Remove.
4092 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4093 call tui_show_locator_content.
4094 (tui_gen_win_info::resize): Call rerender.
4095 (show_source_or_disasm_and_command): Don't call
4096 tui_show_locator_content.
4097 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4098 method.
4099 (struct tui_win_info) <rerender>: Declare.
4100 <set_new_height, make_invisible_and_set_new_height,
4101 make_visible_with_new_height>: Don't declare.
4102 * tui/tui-data.c (tui_win_list::rerender): New method.
4103 * tui/tui-command.h (struct tui_cmd_window)
4104 <do_make_visible_with_new_height>: Don't declare.
4105 * tui/tui-command.c
4106 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4107
4108 2019-08-15 Tom Tromey <tromey@adacore.com>
4109
4110 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4111 * ada-lang.c (ada_enum_name): Likewise.
4112
4113 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4114
4115 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4116 leading underscore.
4117 (GdbOutputErrorFile): Likewise.
4118 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4119 accordingly.
4120 (execute_unwinders): Rename to have a leading underscore.
4121 (auto_load_packages): Likewise.
4122 (global scope): Adjust call to auto_load_packages accordingly.
4123 (GdbSetPythonDirectory): Likewise.
4124 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4125 instead of execute_unwinders.
4126
4127 2019-08-15 Tom Tromey <tom@tromey.com>
4128
4129 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4130 (show_data): Don't change window visibility.
4131 (tui_gen_win_info::resize): Remove special case for command
4132 window. Use wresize, when available.
4133 (show_source_or_disasm_and_command): Don't change window
4134 visibility.
4135 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4136 <make_visible>: New method.
4137 * tui/tui-command.c (tui_cmd_window::resize): New method.
4138
4139 2019-08-15 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4142 (struct tui_source_windows): New.
4143 * tui/tui-winsource.c (tui_display_main): Update.
4144 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4145 (new_height_ok, parse_scrolling_args): Update.
4146 * tui/tui-layout.c (show_layout, show_data): Update.
4147 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4148 (tui_add_to_source_windows): Don't declare.
4149 * tui/tui-data.c (source_windows, tui_source_windows)
4150 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4151
4152 2019-08-15 Tom Tromey <tom@tromey.com>
4153
4154 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4155 Rename from reset.
4156 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4157 * tui/tui-layout.c (show_source_disasm_command, show_data):
4158 Update.
4159 (tui_gen_win_info::resize): Rename.
4160 (show_source_or_disasm_and_command): Update.
4161 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4162 reset.
4163
4164 2019-08-15 Tom Tromey <tom@tromey.com>
4165
4166 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4167 * tui/tui-interp.c (tui_interp::init): Don't call
4168 tui_initialize_static_data.
4169 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4170
4171 2019-08-15 Tom Tromey <tom@tromey.com>
4172
4173 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4174 examine tui_win_list.
4175
4176 2019-08-15 Tom Tromey <tom@tromey.com>
4177
4178 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4179 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4180 tui_clear_source_content.
4181 (tui_clear_source_content): Remove.
4182 (tui_source_window_base::do_erase_source_content): Hoist call to
4183 content.clear().
4184 * tui/tui-stack.c (tui_show_frame_info): Don't call
4185 tui_clear_source_content.
4186
4187 2019-08-15 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-winsource.h (struct tui_source_window_base)
4190 <do_erase_source_content>: New method.
4191 <erase_source_content>: New method.
4192 (tui_erase_source_content): Don't declare.
4193 * tui/tui-winsource.c (tui_clear_source_content): Update.
4194 (tui_source_window_base::do_erase_source_content): Rename from
4195 tui_erase_source_content.
4196 (tui_source_window_base::show_source_content): Update.
4197 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4198 * tui/tui-source.h (struct tui_source_window)
4199 <erase_source_content>: New method.
4200 * tui/tui-disasm.h (struct tui_disasm_window)
4201 <erase_source_content>: New method.
4202
4203 2019-08-15 Tom Tromey <tom@tromey.com>
4204
4205 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4206 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4207 constructor.
4208 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4209 * tui/tui-source.c (tui_set_source_content): Update.
4210 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4211
4212 2019-08-15 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4215 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4216 tui-source.c.
4217 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4218 Declare.
4219 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4220 method.
4221 (tui_source_window::maybe_update): Update.
4222
4223 2019-08-15 Tom Tromey <tom@tromey.com>
4224
4225 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4226 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4227 tui-disasm.c.
4228 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4229 Declare.
4230 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4231 method.
4232 (tui_disasm_window::maybe_update): Update.
4233
4234 2019-08-15 Tom Tromey <tom@tromey.com>
4235
4236 * tui/tui-winsource.h (struct tui_source_window_base)
4237 <maybe_update>: Declare.
4238 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4239 method.
4240 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4241 Declare.
4242 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4243 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4244 Declare.
4245 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4246
4247 2019-08-15 Tom Tromey <tom@tromey.com>
4248
4249 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4250
4251 2019-08-15 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-wingeneral.c: Include tui-stack.h.
4254 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4255 (struct tui_locator_window): Move from tui-data.h.
4256 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4257 (tui_initialize_static_data): Move from tui-data.c.
4258 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4259 (struct tui_locator_window): Move to tui-stack.c.
4260 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4261 (tui_initialize_static_data): Move to tui-stack.c.
4262
4263 2019-08-15 Tom Tromey <tom@tromey.com>
4264
4265 * tui/tui-layout.c (show_source_disasm_command)
4266 (show_source_or_disasm_and_command): Use make_visible method, not
4267 tui_make_window.
4268 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4269 Remove.
4270
4271 2019-08-15 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-wingeneral.h (tui_make_window): Update.
4274 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4275 parameter.
4276 (tui_gen_win_info::make_visible): Update.
4277 * tui/tui-regs.c (tui_data_window::display_registers_from):
4278 Update.
4279 * tui/tui-layout.c (show_source_disasm_command)
4280 (show_source_or_disasm_and_command): Update.
4281 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4282 (enum tui_box): Remove.
4283 (struct tui_win_info) <can_box>: New method.
4284 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4285 method.
4286
4287 2019-08-15 Tom de Vries <tdevries@suse.de>
4288
4289 * linux-nat-trad.c: Include gdbarch.h.
4290
4291 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4292
4293 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4294 register sizes.
4295
4296 2019-08-14 Tom Tromey <tromey@adacore.com>
4297
4298 * darwin-nat.c: Include gdbarch.h.
4299 * darwin-nat-info.c: Include gdbarch.h.
4300
4301 2019-08-13 Tom Tromey <tom@tromey.com>
4302
4303 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4304 Remove.
4305 * tui/tui-data.c (tui_initialize_static_data): Update.
4306
4307 2019-08-13 Tom Tromey <tom@tromey.com>
4308
4309 * tui/tui-winsource.h (struct tui_exec_info_window)
4310 <~tui_exec_info_window, maybe_allocate_content, get_content,
4311 m_content>: Remove.
4312 (struct tui_source_window_base) <set_exec_info_content,
4313 show_exec_info_content>: Don't declare.
4314 * tui/tui-winsource.c
4315 (tui_exec_info_window::maybe_allocate_content): Remove.
4316 (tui_source_window_base::update_exec_info): Rename from
4317 set_exec_info_content.
4318 (tui_source_window_base::show_exec_info_content)
4319 (tui_source_window_base::update_exec_info): Remove.
4320
4321 2019-08-13 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4324 declare.
4325 * tui/tui-winsource.c (tui_update_source_window_as_is)
4326 (tui_update_source_windows_with_addr, tui_erase_source_content):
4327 Update.
4328 (tui_clear_exec_info_content): Remove.
4329
4330 2019-08-13 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4333 declare.
4334 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4335 call tui_erase_exec_info_content.
4336 (tui_clear_exec_info_content): Rename from
4337 tui_erase_exec_info_content.
4338 (tui_clear_exec_info_content): Delete.
4339
4340 2019-08-13 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-winsource.h (struct tui_source_window_base)
4343 <show_exec_info_content>: Declare.
4344 (tui_show_exec_info_content): Don't declare.
4345 * tui/tui-winsource.c
4346 (tui_source_window_base::show_exec_info_content): Rename from
4347 tui_show_exec_info_content.
4348 (tui_source_window_base::update_exec_info): Update.
4349
4350 2019-08-13 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4353 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4354 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4355 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4356 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4357 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4358 ... here.
4359
4360 2019-08-13 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-winsource.h (struct tui_source_window_base)
4363 <update_exec_info>: Declare.
4364 (tui_update_exec_info): Don't declare.
4365 * tui/tui-winsource.c (tui_update_source_window_as_is)
4366 (tui_source_window_base::refresh_all)
4367 (tui_update_all_breakpoint_info): Update.
4368 (tui_source_window_base::update_exec_info): Rename from
4369 tui_update_exec_info.
4370 * tui/tui-stack.c (tui_show_frame_info): Update.
4371
4372 2019-08-13 Tom Tromey <tom@tromey.com>
4373
4374 * tui/tui-winsource.h (struct tui_source_window_base)
4375 <set_exec_info_content>: Declare.
4376 (tui_set_exec_info_content): Don't declare.
4377 * tui/tui-winsource.c
4378 (tui_source_window_base::set_exec_info_content): Rename from
4379 tui_set_exec_info_content.
4380 (tui_update_exec_info): Update.
4381
4382 2019-08-13 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-winsource.h (struct tui_source_window_base)
4385 <show_source_content>: Declare.
4386 (tui_show_source_content): Don't declare.
4387 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4388 (tui_source_window_base::show_source_content): Rename from
4389 tui_show_source_content.
4390 (tui_source_window_base::refresh_all): Update.
4391 * tui/tui-layout.c (show_source_disasm_command)
4392 (show_source_or_disasm_and_command): Update.
4393
4394 2019-08-13 Tom Tromey <tom@tromey.com>
4395
4396 * tui/tui-winsource.c (tui_erase_source_content)
4397 (tui_show_source_content, tui_source_window_base::refresh_all):
4398 Update.
4399 * tui/tui-wingeneral.h
4400 (tui_check_and_display_highlight_if_needed): Don't declare.
4401 * tui/tui-wingeneral.c
4402 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4403 check_and_display_highlight_if_needed.
4404 * tui/tui-win.c (tui_rehighlight_all)
4405 (tui_win_info::make_visible_with_new_height): Update.
4406 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4407 (tui_data_window::erase_data_content)
4408 (tui_data_window::display_all_data): Update.
4409 * tui/tui-data.h (struct tui_win_info)
4410 <check_and_display_highlight_if_needed>: Declare.
4411
4412 2019-08-13 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-win.c (tui_resize_all): Call
4415 tui_delete_invisible_windows.
4416 * tui/tui-layout.c (show_layout): Call
4417 tui_delete_invisible_windows.
4418 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4419 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4420
4421 2019-08-13 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4424 tui_add_win_to_layout.
4425
4426 2019-08-13 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4429 * tui/tui-layout.c (tui_default_win_height): Now static.
4430
4431 2019-08-13 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4434 single switch.
4435 (show_source_disasm_command, show_source_or_disasm_and_command):
4436 Don't check current layout.
4437
4438 2019-08-13 Tom Tromey <tom@tromey.com>
4439
4440 * tui/tui-wingeneral.c (make_all_visible): Remove.
4441 (tui_make_all_invisible): Simplify.
4442 * tui/tui-layout.c (tui_make_all_invisible): Move from
4443 tui-wingeneral.c; simplify.
4444 (show_layout): Hoist call to tui_make_all_invisible.
4445 (show_data): Don't call tui_make_all_invisible.
4446
4447 2019-08-13 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4450 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4451
4452 2019-08-13 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4455 tui-data.c.
4456 (show_source_disasm_command, show_data)
4457 (show_source_or_disasm_and_command): Don't use
4458 tui_set_current_layout_to.
4459 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4460 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4461 tui-layout.c.
4462 (tui_set_current_layout_to): Remove.
4463
4464 2019-08-13 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-layout.c (tui_set_layout): Update.
4467 * tui/tui-data.h (struct tui_layout_def): Remove.
4468 (tui_layout_def): Don't declare.
4469 * tui/tui-data.c (layout_def): Remove.
4470 (tui_layout_def): Remove.
4471
4472 2019-08-13 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui-winsource.h (struct tui_source_window_base)
4475 <clear_detail>: No longer "override".
4476 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4477 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4478 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4479 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4480 Remove.
4481 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4482
4483 2019-08-13 Tom Tromey <tromey@adacore.com>
4484
4485 * tracepoint.c: Don't include readline.h or history.h.
4486
4487 2019-08-12 Tom Tromey <tom@tromey.com>
4488
4489 * configure: Rebuild.
4490 * configure.ac: Check for readline 7.
4491 * NEWS: Mention readline 7 requirement.
4492 * README: Update.
4493
4494 2019-08-12 Tom Tromey <tom@tromey.com>
4495
4496 * mingw-hdep.c (gdb_select): Remove readline hack.
4497
4498 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4499
4500 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4501 when the function fails.
4502
4503 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4504
4505 * s390-tdep.c (s390_type_align): New function.
4506 (s390_gdbarch_init): Set it as type_align gdbarch method.
4507
4508 2019-08-09 Tom de Vries <tdevries@suse.de>
4509
4510 PR gdb/24591
4511 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4512 pc_low with relocation offset.
4513
4514 2019-08-07 Tom Tromey <tromey@adacore.com>
4515
4516 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4517 (print_frame_args): Update.
4518 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4519 Update.
4520 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4521 * frame.h (struct frame_arg): Add initializers.
4522 <error>: Now a unique_xmalloc_ptr.
4523
4524 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4525
4526 * NEWS: Expand the Pointer Authentication entry.
4527 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4528 (aarch64_frame_unmask_lr): ... to this.
4529 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4530 Call aarch64_frame_unmask_lr.
4531 * frame.c (struct frame_info): Add "masked" variable.
4532 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4533 (fprint_frame): Check for masked pc.
4534 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4535 declarations.
4536 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4537 * stack.c (print_frame): Check for masked pc.
4538
4539 2019-08-06 Tom Tromey <tom@tromey.com>
4540
4541 * stabsread.c (patch_block_stabs, read_one_struct_field)
4542 (read_enum_type): Use obstack_strndup.
4543 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4544 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4545 * dwarf2read.c (guess_full_die_structure_name)
4546 (anonymous_struct_prefix): Use obstack_strndup.
4547 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4548 * c-exp.y (yylex): Use obstack_strndup.
4549 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4550 (write_var_or_type): Use obstack_strndup.
4551
4552 2019-08-06 Tom Tromey <tom@tromey.com>
4553
4554 * symfile.c (reread_symbols): Use obstack_strdup.
4555 * stabsread.c (read_type): Use obstack_strdup.
4556 * gdb_obstack.h (obstack_strdup): New overload.
4557 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4558 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4559 (dwarf2_canonicalize_name): Use obstack_strdup.
4560 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4561 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4562 Use obstack_strdup.
4563
4564 2019-08-06 Tom Tromey <tom@tromey.com>
4565
4566 * gdb_obstack.h (obstack_strdup): Define.
4567 * gdb_obstack.c (obstack_strdup): Don't define.
4568
4569 2019-08-06 Tom Tromey <tom@tromey.com>
4570
4571 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4572 obstack_strdup.
4573 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4574 obstack_strdup.
4575 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4576 * stabsread.c (common_block_start): Use obstack_strdup.
4577 * objfiles.c (set_objfile_main_name, objfile): Use
4578 obstack_strdup.
4579 * namespace.c (add_using_directive): Use obstack_strdup.
4580 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4581 * jit.c (finalize_symtab): Use obstack_strdup.
4582 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4583 (guess_partial_die_structure_name, partial_die_info::fixup)
4584 (dwarf2_name): Use obstack_strdup.
4585 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4586 obstack_strdup.
4587 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4588 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4589 obstack_strdup.
4590 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4591
4592 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4593
4594 * unittests/help-doc-selftests.c: New file.
4595 * Makefile.in: Add the new file.
4596
4597 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4598
4599 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4600 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4601 the full first line, except when FOR_VALUE_PREFIX. In this case,
4602 the trailing '.' is not output, and the first character is uppercased.
4603 (print_help_for_command): Update call to print_doc_line.
4604 (print_doc_of_command): Likewise.
4605 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4606 * cli/cli-option.c (append_indented_doc): Do not append newline.
4607 (build_help_option): Append newline after first appended_indented_doc
4608 only if a second call is done.
4609 (build_help): Append 2 new lines before each option, except the first
4610 one.
4611 * compile/compile.c (_initialize_compile): Add new lines after
4612 %OPTIONS%, when not at the end of the help.
4613 Change help doc or code
4614 producing the help doc to respect the invariants.
4615 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4616 Also removed the new line after 'Options:', as all other commands
4617 do not put an empty line between 'Options:' and the first option.
4618 * printcmd.c (_initialize_printcmd): Likewise.
4619 * stack.c (_initialize_stack): Likewise.
4620 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4621 incorrectly telling COMMAND is optional.
4622 * ada-lang.c (_initialize_ada_language): Change help doc or code
4623 producing the help doc to respect the invariants.
4624 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4625 * breakpoint.c (_initialize_breakpoint): Likewise.
4626 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4627 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4628 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4629 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4630 _initialize_cli_style): Likewise.
4631 * corelow.c (core_target_info): Likewise.
4632 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4633 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4634 * filesystem.c (_initialize_filesystem): Likewise.
4635 * frame.c (_initialize_frame): Likewise.
4636 * gnu-nat.c (add_task_commands): Likewise.
4637 * infcall.c (_initialize_infcall): Likewise.
4638 * infcmd.c (_initialize_infcmd): Likewise.
4639 * interps.c (_initialize_interpreter): Likewise.
4640 * language.c (_initialize_language): Likewise.
4641 * linux-fork.c (_initialize_linux_fork): Likewise.
4642 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4643 * maint.c (_initialize_maint_cmds): Likewise.
4644 * memattr.c (_initialize_mem): Likewise.
4645 * printcmd.c (_initialize_printcmd): Likewise.
4646 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4647 _RegEx): Likewise.
4648 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4649 * record-btrace.c (_initialize_record_btrace): Likewise.
4650 * record-full.c (_initialize_record_full): Likewise.
4651 * record.c (_initialize_record): Likewise.
4652 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4653 * regcache.c (_initialize_regcache): Likewise.
4654 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4655 _initialize_remote): Likewise.
4656 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4657 * serial.c (_initialize_serial): Likewise.
4658 * skip.c (_initialize_step_skip): Likewise.
4659 * source.c (_initialize_source): Likewise.
4660 * stack.c (_initialize_stack): Likewise.
4661 * symfile.c (_initialize_symfile): Likewise.
4662 * symtab.c (_initialize_symtab): Likewise.
4663 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4664 * top.c (init_main): Likewise.
4665 * tracefile-tfile.c (tfile_target_info): Likewise.
4666 * tracepoint.c (_initialize_tracepoint): Likewise.
4667 * tui/tui-win.c (_initialize_tui_win): Likewise.
4668 * utils.c (add_internal_problem_command): Likewise.
4669 * valprint.c (value_print_option_defs): Likewise.
4670
4671 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4672
4673 PR build/24886
4674 * configure.ac: Drop enable-libmcheck support.
4675 * configure, config.in: Rebuild.
4676 * libmcheck.m4: Remove.
4677 * acinclude.m4: Don't include it.
4678 * Makefile.in: Don't distribute it.
4679 * top.c (print_gdb_configuration): Don't mention it.
4680
4681 2019-08-06 Tom Tromey <tom@tromey.com>
4682
4683 * utils.c (set_output_style): Sometimes pass stream to
4684 emit_style_escape.
4685 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4686 * record-btrace.c (btrace_insn_history): Update.
4687 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4688 method.
4689 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4690 Update initializers.
4691 <m_uiout>: New field.
4692 <m_di>: Move lower.
4693 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4694 Remove "uiout" parameter.
4695 (dump_insns): Update.
4696 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4697 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4698
4699 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4700
4701 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4702 (error_in_psymtab_expansion): Likewise.
4703 (lookup_symbol_via_quick_fns): Likewise.
4704 (basic_lookup_transparent_type_quick): Likewise.
4705 (basic_lookup_transparent_type_1): Likewise.
4706
4707 2019-08-06 Tom Tromey <tromey@adacore.com>
4708
4709 * source.c (last_source_error): Now bool.
4710 (print_source_lines_base): Make "noprint" bool. Only open
4711 source file when last_source_visited changes.
4712
4713 2019-08-06 Tom Tromey <tromey@adacore.com>
4714
4715 * annotate.c (annotate_source_line): Use g_source_cache.
4716 * source-cache.c (source_cache::get_plain_source_lines): Change
4717 parameters. Populate m_offset_cache.
4718 (source_cache::ensure): New method.
4719 (source_cache::get_line_charpos): New method.
4720 (extract_lines): Move lower. Change parameters.
4721 (source_cache::get_source_lines): Move lower.
4722 * source-cache.h (class source_cache): Update comment.
4723 <get_line_charpos>: New method.
4724 <get_source_lines>: Update comment.
4725 <clear>: Clear m_offset_cache.
4726 <get_plain_source_lines>: Change parameters.
4727 <ensure>: New method
4728 <m_offset_cache>: New member.
4729 * source.c (forget_cached_source_info_for_objfile): Update.
4730 (info_source_command): Use g_source_cache.
4731 (find_source_lines, open_source_file_with_line_charpos): Remove.
4732 (print_source_lines_base, search_command_helper): Use g_source_cache.
4733 * source.h (open_source_file_with_line_charpos): Don't declare.
4734 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4735 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4736 Use g_source_cache.
4737
4738 2019-08-06 Tom Tromey <tromey@adacore.com>
4739
4740 * source-cache.c (source_cache::get_plain_source_lines):
4741 Remove "first_line" and "last_line" parameters.
4742 (source_cache::get_source_lines): Cache plain text.
4743 * source-cache.h (class source_cache)
4744 <get_plain_source_lines>: Update.
4745
4746 2019-08-06 Tom Tromey <tromey@adacore.com>
4747
4748 * source-cache.c (extract_lines): No longer a method.
4749 Changed type of parameter. Include final newline.
4750 (selftests::extract_lines_test): New function.
4751 (_initialize_source_cache): Likewise.
4752 * source-cache.h (class source_cache)
4753 <extract_lines>: Don't declare.
4754
4755 2019-08-06 Tom Tromey <tromey@adacore.com>
4756
4757 * breakpoint.c (init_breakpoint_sal): Update.
4758 (breakpoint): Update.
4759 * breakpoint.h (struct breakpoint) <filter>: Now a
4760 unique_xmalloc_ptr.
4761
4762 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4763
4764 * NEWS: Mention dictionary access on blocks.
4765 * python/py-block.c (blpy_getitem): New function.
4766 (block_object_as_mapping): New struct.
4767 (block_object_type): Use new struct for tp_as_mapping field.
4768
4769 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4770
4771 * objfiles.h (objfile): Add a comment describing partial symbols.
4772
4773 2019-08-05 Tom Tromey <tromey@adacore.com>
4774
4775 * compile/compile.c (_initialize_compile): Use _(), not N_().
4776 * thread.c (_initialize_thread): Use _(), not N_().
4777 * stack.c (_initialize_stack): Use _(), not N_().
4778 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4779
4780 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * dwarf2read.c (struct dw2_symtab_iterator):
4783 <want_specific_block>: Remove.
4784 <block_index>: Change type to gdb::optional.
4785 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4786 change type of BLOCK_INDEX parameter to gdb::optional.
4787 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4788 (dw2_lookup_symbol): Don't pass argument for
4789 WANT_SPECIFIC_BLOCK.
4790 (dw2_expand_symtabs_for_function): Don't pass argument for
4791 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4792 (class dw2_debug_names_iterator)
4793 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4794 parameter, change BLOCK_INDEX type to gdb::optional.
4795 <m_want_specific_block>: Remove.
4796 <m_block_index>: Change type to gdb::optional.
4797 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4798 gdb::optional. Re-write in function of gdb::optional.
4799 (dw2_debug_names_lookup_symbol): Don't pass argument for
4800 WANT_SPECIFIC_BLOCK.
4801 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4802 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4803 BLOCK_INDEX.
4804
4805 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4806
4807 * NEWS: Mention changes to "info sources" command.
4808
4809 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4810
4811 * symtab.c (filename_partial_match_opts): New struct type.
4812 (struct output_source_filename_data): New members
4813 regexp, c_regexp, partial_match.
4814 (output_source_filename): Use new members to decide to print file.
4815 (info_sources_option_defs): New variable.
4816 (make_info_sources_options_def_group, print_info_sources_header,
4817 info_sources_command_completer):
4818 New functions.
4819 (info_sources_command): Read new optional arguments.
4820 (_initialize_symtab): Update info sources help.
4821
4822 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4823
4824 * ada-lang.c (exception_support_info_v0): Renamed from...
4825 (default_exception_support_info): ... this. Create new
4826 definition for v1.
4827 (ada_has_this_exception_support): Look up catch_handlers_sym.
4828 (ada_exception_support_info_sniffer): Try v0 after default.
4829
4830 2019-08-01 Tom Tromey <tromey@adacore.com>
4831
4832 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4833 gdbarch.h.
4834
4835 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4836
4837 * s12z-tdep.c: Fix include path for s12z-opc.h.
4838
4839 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4840
4841 * NEWS: Require GNU make 3.82.
4842
4843 2019-07-16 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4846 declare.
4847
4848 2019-07-30 Tom Tromey <tromey@adacore.com>
4849
4850 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4851
4852 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4853
4854 * printcmd.c (print_address_symbolic): Print negative offsets.
4855 (build_address_symbolic): Force signed arithmetic when computing
4856 offset.
4857
4858 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4859
4860 PR/24474: Add a function to lookup static variables.
4861 * NEWS: Mention this new function.
4862 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4863 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4864 * python/python.c (python_GdbMethods): Add new function.
4865
4866 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4867
4868 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4869 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4870 (objfpy_lookup_static_symbol): New function.
4871 (objfile_object_methods): Add new functions.
4872
4873 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4874
4875 * NEWS: Mention 'set|show print frame-info'. Mention new
4876 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4877 backtrace argument. Mention that python frame filtering code
4878 is now consistent with what 'backtrace' command prints.
4879
4880 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4881
4882 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4883 comments.
4884 (print_frame_info_auto, print_frame_info_source_line,
4885 print_frame_info_location, print_frame_info_source_and_location,
4886 print_frame_info_location_and_address, print_frame_info_short_location):
4887 New declarations.
4888 (struct frame_print_options): New member print_frame_info.
4889 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4890 * stack.h (get_user_print_what_frame_info): New declaration.
4891 (frame_show_address): New declaration.
4892 * stack.c (print_frame_arguments_choices): New value 'presence'.
4893 (print_frame_info_auto, print_frame_info_source_line,
4894 print_frame_info_location, print_frame_info_source_and_location,
4895 print_frame_info_location_and_address, print_frame_info_short_location,
4896 print_frame_info_choices, print_frame_info_print_what): New definitions.
4897 (print_frame_args): Only print dots for args if print frame-arguments
4898 is 'presence'.
4899 (frame_print_option_defs): New element for "frame-info".
4900 (get_user_print_what_frame_info): New function.
4901 (frame_show_address): Make non static. Move comment to stack.h.
4902 (print_frame_info_to_print_what): New function.
4903 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4904 to decide what to print.
4905 (backtrace_command_1): Handle the new print_frame_arguments_presence
4906 value.
4907 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4908 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4909 (py_print_frame): In non-mi mode, use LOCATION as default for
4910 print_what, similarly to frame information printed directly by
4911 backtrace command. Handle frame-info user option in non MI mode.
4912
4913 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4914
4915 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4916 Add case for debugging 32-bit target on 64-bit host. Revise
4917 comment.
4918
4919 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4920
4921 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4922 instead of find_function_entry_range_from_pc.
4923
4924 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4925
4926 * stack.c (find_frame_funname): Remove code which preferred
4927 minsym over symtab sym in "certain pathological cases".
4928
4929 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4930 parameter. Change type of "do_demangle" to bool.
4931 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4932 Pass suitable "prefer_sym_over_minsym" flag to
4933 build_address_symbolic(). Don't output "+" for negative offsets.
4934 * printcmd.c (print_address_symbolic): Update invocation of
4935 build_address_symbolic to include a "prefer_sym_over_minsym"
4936 flag.
4937 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4938 Restrict cases in which use of minimal symbol is preferred to that
4939 of a found symbol. Update comments.
4940
4941 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4942 for entry pc when entry pc is out of range for that FDE.
4943
4944 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4945
4946 PR gdb/24839:
4947 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4948 type.
4949
4950 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4951
4952 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4953 this function's Python signature.
4954
4955
4956 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4957
4958 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4959 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4960 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4961 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4962 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4963
4964
4965 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4966
4967 * h8300-tdep.c (h8300_register_name_common): New.
4968 h8300_register_name): Use h8300_register_name_common.
4969 (h8300s_register_name): Likewise.
4970 (h8300sx_register_name): Likewise.
4971 (h8300h_register_nam): New.
4972 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4973
4974
4975 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4976
4977 * arm-tdep.c (arm_skip_cmse_entry): New function.
4978 (arm_is_sgstubs_section): New function.
4979 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4980
4981 2019-07-22 Tom Tromey <tom@tromey.com>
4982
4983 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4984 Don't self-assign.
4985
4986 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4987
4988 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4989 type_print.
4990
4991 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4994 so that GDB doesn't match any msymbols when searching in the
4995 TYPES_DOMAIN.
4996 (print_symbol_info): Print using typedef_print or type_print based
4997 on the type of the symbol. Add updated FIXME comment moved from...
4998 (_initialize_symtab): ... move and update FIXME comment to above.
4999
5000 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * NEWS: Mention adding -q option to "info types".
5003 * symtab.c (struct info_types_options): New struct.
5004 (info_types_options_defs): New variable.
5005 (make_info_types_options_def_group): New function.
5006 (info_types_command): Use gdb::option framework to parse options.
5007 (info_types_command_completer): New function.
5008 (_initialize_symtab): Extend the help text on "info types" and
5009 register command completer.
5010
5011 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5012
5013 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5014 (lookup_symbol_in_objfile): Change int to block_enum and add a
5015 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5016
5017 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5018
5019 * MAINTAINERS (Write After Approval): Add self.
5020
5021 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5024 instruction to the dummy code region.
5025
5026 2019-07-19 Tom Tromey <tromey@adacore.com>
5027
5028 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5029 (ARGSUSED, PARAMS, __func__): Remove rules.
5030
5031 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5032
5033 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5034 * features/arm/arm-with-iwmmxt.c: Remove.
5035 * features/arm/arm-with-iwmmxt.xml: Remove.
5036 * features/arm/arm-with-m-fpa-layout.c: Remove.
5037 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5038 * features/arm/arm-with-m-vfp-d16.c: Remove.
5039 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5040 * features/arm/arm-with-m.c: Remove.
5041 * features/arm/arm-with-m.xml: Remove.
5042 * features/arm/arm-with-neon.c: Remove.
5043 * features/arm/arm-with-neon.xml: Remove.
5044 * features/arm/arm-with-vfpv2.c: Remove.
5045 * features/arm/arm-with-vfpv2.xml: Remove.
5046 * features/arm/arm-with-vfpv3.c: Remove.
5047 * features/arm/arm-with-vfpv3.xml: Remove.
5048
5049 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5050
5051 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5052
5053 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5054
5055 * arch/aarch32.c (aarch32_create_target_description): Create
5056 target descriptions using features.
5057 * arch/arm.c (arm_create_target_description)
5058 (arm_create_mprofile_target_description): Likewise.
5059 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5060
5061 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5062
5063 * Makefile.in: Add new files.
5064 * aarch32-tdep.c: New file.
5065 * aarch32-tdep.h: New file.
5066 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5067 Call aarch32_read_description.
5068 * arch/aarch32.c: New file.
5069 * arch/aarch32.h: New file.
5070 * arch/arm.c (arm_create_target_description)
5071 (arm_create_mprofile_target_description): New function.
5072 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5073 (arm_create_target_description)
5074 (arm_create_mprofile_target_description): New declaration.
5075 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5076 read_description functions.
5077 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5078 Likewise.
5079 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5080 * arm-tdep.c (tdesc_arm_list): New variable.
5081 (arm_register_g_packet_guesses): Call create description functions.
5082 (arm_read_description) (arm_read_mprofile_description): New
5083 function.
5084 * arm-tdep.h (arm_read_description)
5085 (arm_read_mprofile_description): Add declaration.
5086 * configure.tgt: Add new files.
5087
5088 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5089
5090 * top.c (new_ui_command): Open specified terminal just once.
5091
5092 2019-07-18 Tom Tromey <tromey@adacore.com>
5093
5094 * symtab.c (main_name): Constify return type.
5095 * symfile.c (set_initial_language): Update.
5096 * symtab.h (main_name): Constify return type.
5097
5098 2019-07-17 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-winsource.c (tui_update_source_window)
5101 (tui_update_source_window_as_is)
5102 (tui_update_source_windows_with_line): Remove return.
5103 * tui/tui-disasm.c (tui_show_disassem)
5104 (tui_show_disassem_and_update_source): Remove return.
5105 * tui/tui.c (tui_reset): Remove return.
5106 * tui/tui-wingeneral.c
5107 (tui_check_and_display_highlight_if_needed): Remove return.
5108
5109 2019-07-17 Tom Tromey <tom@tromey.com>
5110
5111 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5112
5113 2019-07-17 Tom Tromey <tom@tromey.com>
5114
5115 * tui/tui-winsource.h (struct tui_exec_info_window)
5116 (struct tui_source_window_base): Move from tui-data.h.
5117 * tui/tui-winsource.c: Move many method definitions from
5118 elsewhere. Remove "structuring" comments.
5119 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5120 (tui_source_window_base::refresh_window): Move to
5121 tui-winsource.c.
5122 * tui/tui-win.c (tui_source_window_base::refresh_all)
5123 (tui_source_window_base::update_tab_width)
5124 (tui_source_window_base::set_new_height)
5125 (tui_source_window_base::do_make_visible_with_new_height): Move to
5126 tui-winsource.c.
5127 * tui/tui-source.h: Update.
5128 * tui/tui-source.c (tui_source_window_base::reset): Move to
5129 tui-winsource.c.
5130 * tui/tui-disasm.h: Update.
5131 * tui/tui-data.h (struct tui_exec_info_window): Move to
5132 tui-winsource.h.
5133 (struct tui_source_window_base): Likewise.
5134 * tui/tui-data.c (tui_source_window_base::clear_detail)
5135 (tui_source_window_base, ~tui_source_window_base): Move to
5136 tui-winsource.c.
5137
5138 2019-07-17 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-win.c (tui_resize_all)
5141 (tui_source_window_base::update_tab_width)
5142 (tui_adjust_win_heights): Update.
5143 (tui_win_info::make_invisible_and_set_new_height): Rename from
5144 make_invisible_and_set_new_height.
5145 * tui/tui-data.h (struct tui_win_info)
5146 <make_invisible_and_set_new_height>: New method.
5147
5148 2019-07-17 Tom Tromey <tom@tromey.com>
5149
5150 * tui/tui.c: Update.
5151 * tui/tui-source.h (struct tui_source_window): Move from
5152 tui-data.h.
5153 * tui/tui-layout.c: Update.
5154 * tui/tui-disasm.c: Update.
5155 * tui/tui-data.h (struct tui_source_window): Move to
5156 tui-source.h.
5157
5158 2019-07-17 Tom Tromey <tom@tromey.com>
5159
5160 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5161 tui-data.h.
5162 * tui/tui-data.h (struct tui_disasm_window): Move to
5163 tui-disasm.h.
5164
5165 2019-07-17 Tom Tromey <tom@tromey.com>
5166
5167 * tui/tui-regs.h (struct tui_data_item_window): Move from
5168 tui-data.h.
5169 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5170 * tui/tui-data.h (struct tui_data_item_window): Move to
5171 tui-regs.h.
5172 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5173
5174 2019-07-17 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui.c: Update.
5177 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5178 (tui_cmd_window::max_height): Move to tui-command.c.
5179 * tui/tui-layout.c: Update.
5180 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5181 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5182 tui-command.c.
5183 * tui/tui-command.h (struct tui_cmd_window): Move from
5184 tui-data.h.
5185 * tui/tui-command.c: Remove "structuring" comments.
5186 (tui_cmd_window::clear_detail)
5187 (tui_cmd_window::do_make_visible_with_new_height)
5188 (tui_cmd_window::max_height): Move from elsewhere.
5189
5190 2019-07-17 Tom Tromey <tom@tromey.com>
5191
5192 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5193 Now static.
5194 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5195 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5196
5197 2019-07-17 Tom Tromey <tom@tromey.com>
5198
5199 * tui/tui.c: Update.
5200 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5201 tui-regs.c.
5202 * tui/tui-windata.h: Remove file.
5203 * tui/tui-windata.c: Remove file.
5204 * tui/tui-win.c (tui_data_window::set_new_height)
5205 (tui_data_window::do_make_visible_with_new_height): Move to
5206 tui-regs.c.
5207 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5208 * tui/tui-regs.c: Remove "structuring" comments.
5209 (tui_data_window::first_data_item_displayed)
5210 (tui_data_window::delete_data_content_windows)
5211 (tui_data_window::erase_data_content)
5212 (tui_data_window::display_all_data)
5213 (tui_data_window::refresh_all)
5214 (tui_data_window::do_scroll_vertical)
5215 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5216 (tui_data_window::do_make_visible_with_new_height)
5217 (tui_data_window::refresh_window): Move from elsewhere.
5218 (_initialize_tui_regs): Move to end of file.
5219 * tui/tui-layout.c: Update.
5220 * tui/tui-hooks.c: Update.
5221 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5222 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5223 tui-regs.c.
5224 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5225
5226 2019-07-17 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5229 seen.
5230
5231 2019-07-17 Tom Tromey <tom@tromey.com>
5232
5233 * tui/tui-win.c (tui_source_window_base::set_new_height)
5234 (tui_source_window_base::do_make_visible_with_new_height): Use
5235 m_has_locator field directly.
5236 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5237 method.
5238 (struct tui_source_window_base) <has_locator>: Likewise.
5239
5240 2019-07-17 Tom Tromey <tom@tromey.com>
5241
5242 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5243 Don't declare.
5244 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5245 Remove.
5246 * tui/tui-win.c (tui_source_window_base::set_new_height)
5247 (tui_source_window_base::set_new_height)
5248 (make_invisible_and_set_new_height)
5249 (tui_source_window_base::do_make_visible_with_new_height)
5250 (tui_source_window_base::do_make_visible_with_new_height):
5251 Update.
5252 * tui/tui-layout.c (show_source_disasm_command, show_data)
5253 (show_source_or_disasm_and_command): Update.
5254 * tui/tui-layout.c (show_layout): Update.
5255
5256 2019-07-17 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-layout.c (make_data_window): Remove.
5259 (show_data): Unify creation and re-initialization cases.
5260
5261 2019-07-17 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-layout.c (make_source_window, make_disasm_window):
5264 Remove.
5265 (show_data): Unify creation and re-initialization cases.
5266
5267 2019-07-17 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-layout.c (make_command_window): Remove.
5270 (show_source_disasm_command, show_source_or_disasm_and_command):
5271 Unify creation and re-initialization cases.
5272
5273 2019-07-17 Tom Tromey <tom@tromey.com>
5274
5275 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5276 creation and re-initialization cases.
5277
5278 2019-07-17 Tom Tromey <tom@tromey.com>
5279
5280 * tui/tui-regs.c (tui_get_register): Return void.
5281
5282 2019-07-17 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5285 Simplify.
5286
5287 2019-07-17 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5290 resetting.
5291
5292 2019-07-17 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5295 * tui/tui-regs.c (tui_reg_layout): New function.
5296 (tui_show_registers, tui_reg_command): Use it.
5297 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5298 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5299 parameters.
5300 (tui_layout_command): Remove.
5301
5302 2019-07-17 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-layout.h (tui/tui-layout): Return void.
5305 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5306
5307 2019-07-17 Tom Tromey <tom@tromey.com>
5308
5309 * tui/tui-layout.c (show_source_disasm_command, show_data):
5310 Update.
5311 (reset_locator): Remove.
5312 (show_source_or_disasm_and_command): Update.
5313
5314 2019-07-17 Tom Tromey <tom@tromey.com>
5315
5316 * tui/tui-source.c (tui_source_window_base::reset): Remove
5317 win_type parameter.
5318 * tui/tui-layout.c (make_command_window, make_source_window)
5319 (make_disasm_window, make_data_window)
5320 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5321 (reset_locator, show_source_or_disasm_and_command): Update.
5322 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5323 win_type parameter.
5324 (struct tui_source_window_base) <reset>: Likewise.
5325
5326 2019-07-17 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-layout.c (show_source_disasm_command): Use
5329 reset_locator.
5330 (reset_locator): New function.
5331 (init_and_make_win): Remove.
5332 (show_source_or_disasm_and_command): Use reset_locator.
5333
5334 2019-07-17 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5337 condition.
5338 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5339 Remove condition.
5340 * tui/tui-source.c (tui_source_window_base::reset): New method.
5341 * tui/tui-layout.c (make_command_window): Don't call
5342 init_and_make_win.
5343 (make_source_window, make_disasm_window): Don't call
5344 make_source_or_disasm_window.
5345 (make_data_window): Don't call init_and_make_win. Change calling
5346 convention.
5347 (show_source_disasm_command, show_data): Simplify.
5348 (make_source_or_disasm_window): Remove.
5349 (show_source_or_disasm_and_command): Simplify.
5350 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5351 (struct tui_source_window_base) <reset>: Likewise.
5352 <execution_info>: Remove initializer.
5353 * tui/tui-data.c (tui_source_window_base): Initialize
5354 execution_info.
5355
5356 2019-07-17 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5359 variable.
5360
5361 2019-07-17 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui.c (tui_rl_other_window): Update.
5364 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5365 superclass method first. Always iterate over regs_content.
5366 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5367 method.
5368 * tui/tui-win.c (tui_set_focus_command): Update.
5369
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-win.c (tui_set_focus_command): Rename from
5373 tui_set_focus. Call tui_enable.
5374 (tui_set_focus_command): Remove.
5375
5376 2019-07-17 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5379 refresh_window.
5380 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5381 touchwin.
5382 (tui_data_window::refresh_window): Call refresh_window on data
5383 items. Always call superclass refresh_window.
5384 (tui_win_info::refresh): Remove.
5385 (tui_source_window_base::refresh_window): Update.
5386 (tui_refresh_all): Update.
5387 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5388 refresh_window.
5389 (show_source_or_disasm_and_command): Likewise.
5390 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5391 (struct tui_source_window_base) <refresh>: Likewise.
5392
5393 2019-07-17 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-winsource.c (tui_clear_source_content)
5396 (tui_show_source_content): Update.
5397 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5398 whether content is empty.
5399 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5400 Remove.
5401
5402 2019-07-17 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5405 window's contents.
5406 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5407 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5408
5409 2019-07-17 Tom Tromey <tom@tromey.com>
5410
5411 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5412 (struct tui_data_item_window): Update.
5413
5414 2019-07-17 Tom Tromey <tom@tromey.com>
5415
5416 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5417 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5418 defines.
5419
5420 2019-07-17 Tom Tromey <tom@tromey.com>
5421
5422 * tui/tui-winsource.h (tui_erase_source_content)
5423 (tui_clear_source_content): Remove "display_prompt" parameter.
5424 * tui/tui-winsource.c (tui_update_source_window_as_is)
5425 (tui_update_source_windows_with_addr): Update.
5426 (tui_clear_source_content): Remove "display_prompt" parameter.
5427 (tui_erase_source_content): Likewise. Simplify.
5428 (tui_show_source_content): Update.
5429 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5430 * tui/tui-stack.c (tui_show_frame_info): Update.
5431 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5432 Remove defines.
5433
5434 2019-07-17 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5437 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5438 parameter.
5439 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5440 parameter.
5441
5442 2019-07-17 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-winsource.c (tui_clear_source_content)
5445 (tui_show_source_content, tui_show_exec_info_content)
5446 (tui_clear_exec_info_content): Update.
5447 * tui/tui-stack.c (tui_show_locator_content): Update.
5448 (tui_show_frame_info): Update.
5449 * tui/tui-source.h (tui_source_window): Don't declare.
5450 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5451 from tui_source_is_displayed.
5452 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5453 Remove field.
5454 (struct tui_source_window_base) <content_in_use>: New field. Now
5455 bool.
5456 (struct tui_source_window) <showing_source_p>: New method.
5457 (TUI_SRC_WIN): Change cast.
5458 * tui/tui-data.c (tui_initialize_static_data): Update.
5459
5460 2019-07-17 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5463 location_matches_p.
5464 * tui/tui-source.c (tui_source_window::location_matches_p): New
5465 method.
5466 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5467 method.
5468 * tui/tui-data.h (struct tui_source_window_base)
5469 <location_matches_p>: New method.
5470 (struct tui_source_window, struct tui_disasm_window)
5471 <location_matches_p>: Likewise.
5472
5473 2019-07-17 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-win.c (tui_set_win_height_command): Rename from
5476 tui_set_win_height.
5477 (tui_set_win_height_command): Remove.
5478
5479 2019-07-17 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-source.c (tui_source_window): New constructor. Add
5482 observer.
5483 (~tui_source_window): New destructor.
5484 (tui_source_window::style_changed): New method.
5485 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5486 (tui_attach_detach_observers): Update.
5487 * tui/tui-data.h (struct tui_source_window): Make constructor not
5488 inline. Add destructor.
5489 (struct tui_source_window) <style_changed>: New method.
5490 <m_observable>: New member.
5491
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5495 * tui/tui-win.c (tui_resize_all): Fix typo.
5496
5497 2019-07-17 Tom Tromey <tom@tromey.com>
5498
5499 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5500 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5501 (tui_refresh_all): Remove "list" parameter. Use foreach.
5502 * tui/tui-win.c (window_name_completer): Use foreach.
5503 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5504 (update_tab_width): Likewise.
5505 * tui/tui-layout.c (show_layout): Update.
5506 * tui/tui-data.h (class tui_window_iterator): New.
5507 (struct all_tui_windows): New.
5508 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5509
5510 2019-07-17 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5513 parameter. Don't reference globals.
5514 (tui_reg_command): Update.
5515
5516 2019-07-17 Tom Tromey <tom@tromey.com>
5517
5518 * tui/tui-regs.c (tui_show_registers): Simplify.
5519
5520 2019-07-17 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-regs.c (tui_show_registers): Update.
5523 (tui_show_register_group): Add win_info parameter.
5524
5525 2019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5528 Rename from tui_display_reg_element_at_line.
5529 (tui_data_window::display_registers_from_line): Update.
5530 * tui/tui-data.h (struct tui_data_window)
5531 <display_reg_element_at_line>: New method.
5532
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-regs.h (tui_display_registers_from)
5536 (tui_display_registers_from_line): Don't declare.
5537 * tui/tui-windata.c (tui_data_window::display_all_data)
5538 (tui_data_window::refresh_all)
5539 (tui_data_window::do_scroll_vertical): Update.
5540 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5541 from tui_display_registers_from.
5542 (tui_display_reg_element_at_line): Update.
5543 (tui_data_window::display_registers_from_line): Rename from
5544 tui_display_registers_from_line.
5545 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5546 display_registers_from_line>: New methods.
5547
5548 2019-07-17 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5551 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5552 from tui_erase_data_content.
5553 (tui_data_window::display_all_data)
5554 (tui_data_window::refresh_all)
5555 (tui_data_window::do_scroll_vertical): Update.
5556 * tui/tui-regs.c (tui_show_registers): Update.
5557 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5558 New method.
5559
5560 2019-07-17 Tom Tromey <tom@tromey.com>
5561
5562 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5563 declare.
5564 * tui/tui-windata.c
5565 (tui_data_window::delete_data_content_windows): Rename from
5566 tui_delete_data_content_windows.
5567 (tui_data_window::display_all_data)
5568 (tui_data_window::do_scroll_vertical): Update.
5569 * tui/tui-data.h (struct tui_data_window)
5570 <delete_data_content_windows>: New method.
5571
5572 2019-07-17 Tom Tromey <tom@tromey.com>
5573
5574 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5575 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5576
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5580 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5581 from tui_display_all_data.
5582 * tui/tui-win.c
5583 (tui_data_window::do_make_visible_with_new_height): Update.
5584 * tui/tui-regs.c (tui_show_registers): Update.
5585 * tui/tui-layout.c (tui_set_layout): Update.
5586 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5587 method.
5588
5589 2019-07-17 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5592 * tui/tui-windata.c (tui_display_data_from): Remove.
5593 (tui_data_window::refresh_all): Update.
5594
5595 2019-07-17 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5598 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5599 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5600 tui_display_registers_from_line.
5601 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5602 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5603 "force_display" parameter.
5604
5605 2019-07-17 Tom Tromey <tom@tromey.com>
5606
5607 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5608 declare.
5609 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5610 Rename from tui_first_reg_element_no_inline.
5611 (tui_display_reg_element_at_line)
5612 (tui_display_registers_from_line): Update.
5613 * tui/tui-data.h (struct tui_data_window)
5614 <first_reg_element_no_inline>: New method.
5615
5616 2019-07-17 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui-windata.c (tui_display_data_from)
5619 (tui_data_window::do_scroll_vertical): Update.
5620 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5621 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5622 Rename from tui_line_from_reg_element_no.
5623 (tui_display_registers_from_line): Update.
5624 * tui/tui-data.h (struct tui_data_window)
5625 <line_from_reg_element_no>: New method.
5626
5627 2019-07-17 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5630 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5631 tui_last_regs_line_no.
5632 (tui_display_reg_element_at_line)
5633 (tui_display_registers_from_line): Update.
5634 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5635 method.
5636
5637 2019-07-17 Tom Tromey <tom@tromey.com>
5638
5639 PR tui/24722:
5640 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5641 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5642 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5643 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5644 (tui_update_breakpoint_info): Likewise.
5645 * tui/tui-hooks.c (tui_event_create_breakpoint)
5646 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5647 Update.
5648
5649 2019-07-17 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5652
5653 2019-07-17 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-winsource.c (tui_update_source_window_as_is)
5656 (tui_update_source_windows_with_addr): Update.
5657 * tui/tui-source.h (tui_set_source_content)
5658 (tui_show_symtab_source): Add "win_info" parameter.
5659 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5660 parameter.
5661 (tui_show_symtab_source): Likewise.
5662
5663 2019-07-17 Tom Tromey <tom@tromey.com>
5664
5665 * tui/tui-wingeneral.c
5666 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5667
5668 2019-07-17 Tom Tromey <tom@tromey.com>
5669
5670 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5671 (struct tui_cmd_window) <can_scroll>: New method.
5672 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5673 method.
5674
5675 2019-07-17 Tom Tromey <tromey@adacore.com>
5676
5677 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5678 do_field_signed>: Rename. Change type of "value".
5679 * ui-out.c (ui_out::field_signed): Rename from field_int.
5680 Change type of "value".
5681 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5682 type of "value".
5683 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5684 do_field_int. Change type of "value".
5685 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5686 do_field_int. Change type of "value".
5687 * tracepoint.c (trace_status_mi, tfind_1)
5688 (print_one_static_tracepoint_marker): Update.
5689 * thread.c (print_thread_info_1, print_selected_thread_frame):
5690 Update.
5691 * stack.c (print_frame, print_frame_info): Update.
5692 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5693 Update.
5694 * source.c (print_source_lines_base): Update.
5695 * skip.c (info_skip_command): Update.
5696 * record-btrace.c (btrace_ui_out_decode_error)
5697 (btrace_call_history_src_line): Update.
5698 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5699 Update.
5700 * progspace.c (print_program_space): Update.
5701 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5702 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5703 do_field_int. Change type of "value".
5704 * mi/mi-out.c (mi_ui_out::do_table_begin)
5705 (mi_ui_out::do_table_header): Update.
5706 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5707 type of "value".
5708 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5709 (mi_cmd_data_list_changed_registers, output_register)
5710 (mi_cmd_data_read_memory, mi_load_progress)
5711 (mi_cmd_trace_frame_collected): Update.
5712 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5713 Update.
5714 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5715 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5716 (mi_cmd_var_list_children, varobj_update_one): Update.
5717 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5718 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5720 * inferior.c (print_inferior): Update.
5721 * gdb_bfd.c (print_one_bfd): Update.
5722 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5723 Update.
5724 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5725 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5726 do_field_int. Change type of "value".
5727 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5728 do_field_int. Change type of "value".
5729 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5730 (print_one_breakpoint_location, print_it_catch_fork)
5731 (print_one_catch_fork, print_it_catch_vfork)
5732 (print_one_catch_vfork, print_it_catch_solib)
5733 (print_it_catch_exec, print_it_ranged_breakpoint)
5734 (print_mention_watchpoint, print_mention_masked_watchpoint)
5735 (bkpt_print_it, update_static_tracepoint): Update.
5736 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5737 * break-catch-syscall.c (print_it_catch_syscall): Update.
5738 * ada-tasks.c (print_ada_task_info): Update.
5739 * ada-lang.c (print_it_exception, print_mention_exception):
5740 Update.
5741
5742 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 PR breakpoints/24541
5745 * gdbarch.c: Regenerate.
5746 * gdbarch.h: Regenerate.
5747 * gdbarch.sh: Adjust return type and parameter types for
5748 'stap_adjust_register'.
5749 (i386_stap_adjust_register): Adjust signature and return new
5750 register name.
5751 * stap-probe.c (stap_parse_register_operand): Adjust use of
5752 'gdbarch_stap_adjust_register'.
5753
5754 2019-07-17 Tom Tromey <tromey@adacore.com>
5755
5756 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5757 declare VEC.
5758 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5759 std::vector.
5760 (struct s390_process_info): Add initializers.
5761 (s390_add_process): Use new.
5762 (s390_linux_nat_target::low_forget_process): Use delete.
5763 (s390_linux_nat_target::low_new_fork)
5764 (s390_linux_nat_target::stopped_by_watchpoint)
5765 (s390_linux_nat_target::low_prepare_to_resume)
5766 (s390_linux_nat_target::insert_watchpoint)
5767 (s390_linux_nat_target::insert_hw_breakpoint)
5768 (s390_linux_nat_target::remove_watchpoint)
5769 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5770
5771 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5772
5773 * aarch64-fbsd-nat.c: Include regcache.h.
5774 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5775 argument.
5776 (aarch64_fbsd_nat_target::fetch_registers)
5777 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5778 variable.
5779 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5780
5781 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5782
5783 * fbsd-nat.c: Include gdbarch.h.
5784
5785 2019-07-15 Tom Tromey <tromey@adacore.com>
5786
5787 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5788
5789 2019-07-15 Tom Tromey <tromey@adacore.com>
5790
5791 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5792 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5793 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5794 * cli-out.c (cli_ui_out::do_field_int): New method.
5795 * ui-out.c (ui_out::field_unsigned): New method.
5796 * symfile.c (generic_load): Use field_unsigned.
5797 (print_transfer_performance): Likewise.
5798 * record-btrace.c (ui_out_field_uint): Remove.
5799 (btrace_call_history_insn_range, btrace_call_history): Use
5800 field_unsigned.
5801 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5802 field_unsigned.
5803 * ui-out.h (class ui_out) <field_unsigned>: New method.
5804 <do_field_unsigned>: Likewise.
5805
5806 2019-07-15 Tom Tromey <tromey@adacore.com>
5807
5808 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5809 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5810 * target.c (flash_erase_command): Use field_string.
5811 * infrun.c (print_signal_received_reason): Use field_string.
5812 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5813 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5814 field_string.
5815 * ada-tasks.c (print_ada_task_info): Use field_string.
5816
5817 2019-07-15 Tom Tromey <tromey@adacore.com>
5818
5819 * target.c (flash_erase_command): Use field_core_addr.
5820 * symfile.c (generic_load): Use field_core_addr.
5821 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5822 Use field_core_addr.
5823 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5824 field_core_addr.
5825
5826 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5827
5828 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5829 value if its desired type is smaller than a CORE_ADDR and signed.
5830
5831 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5832
5833 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5834 of changes to field names, and use new is_reference field to
5835 decide if a property is a reference or not.
5836 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5837 field.
5838 (struct dwarf2_property_baton): Update header comment, rename
5839 'referenced_type' to 'property_type' and update comments.
5840 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5841 default property type, store in property baton, update to take
5842 accound of renamed field.
5843 (read_func_scope): Update call to attr_to_dynamic_prop.
5844 (read_array_type): Likewise.
5845 (dwarf2_per_cu_addr_sized_int_type): New function.
5846 (read_subrange_index_type): Move type finding code to
5847 dwarf2_per_cu_addr_sized_int_type.
5848 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5849 (dwarf2_per_cu_addr_type): New function.
5850 (set_die_type): Update calls to attr_to_dynamic_prop.
5851
5852 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * dwarf2read.c (read_subrange_index_type): New function.
5855 (read_subrange_type): Move code into new function and call it.
5856 * gdbtypes.c (create_range_type): Add some asserts.
5857
5858 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5861 update return statements.
5862 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5863 declaration, and update comment to match.
5864 * gdbtypes.c (resolve_dynamic_array): Update call to
5865 dwarf2_evaluate_property to match new return type.
5866
5867 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * valarith.c (value_subscripted_rvalue): Change lowerbound
5870 parameter type from int to LONGEST.
5871 * value.h (value_subscripted_rvalue): Likewise in declaration.
5872
5873 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * cli/cli-utils.c (info_print_command_completer): New function.
5876 * cli/cli-utils.h: Add 'completer.h' include, and forward
5877 declaration for 'struct cmd_list_element'.
5878 (info_print_command_completer): Declare.
5879 * stack.c (_initialize_stack): Add completer for 'info locals' and
5880 'info args'.
5881 * symtab.c (_initialize_symtab): Add completer for 'info
5882 variables' and 'info functions'.
5883 * NEWS: Mention completion for additional info commands.
5884
5885 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5886
5887 * cli/cli-utils.c (extract_info_print_args): Delete.
5888 (extract_arg_maybe_quoted): Delete.
5889 (info_print_options_defs): New variable.
5890 (make_info_print_options_def_group): New function.
5891 (extract_info_print_options): Define new function.
5892 * cli/cli-utils.h (extract_info_print_args): Delete.
5893 (struct info_print_options): New structure.
5894 (extract_info_print_options): Declare new function.
5895 * stack.c (info_locals_command): Update to use new
5896 extract_info_print_options, also add a header comment.
5897 (info_args_command): Likewise.
5898 * symtab.c (info_variables_command): Likewise.
5899 (info_functions_command): Likewise.
5900
5901 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5904 to extract string arguments.
5905 * common/common-utils.c (extract_string_maybe_quoted): New function.
5906 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5907
5908 2019-07-11 Tom Tromey <tromey@adacore.com>
5909
5910 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5911 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5912 * top.h (gdbinit): Don't declare.
5913 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5914 into...
5915 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5916 * top.c (gdb_init): Don't call init_cli_cmds.
5917 (gdbinit): Remove.
5918 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5919
5920 2019-07-11 Tom Tromey <tromey@adacore.com>
5921
5922 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5923 after it has been moved.
5924
5925 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * valops.c (value_must_coerce_to_target): Change return type to
5928 bool.
5929 * value.h (value_must_coerce_to_target): Likewise.
5930
5931 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * breakpoint.c (is_hardware_watchpoint): Remove
5934 forward-declaration.
5935 (is_masked_watchpoint): Change return type to bool.
5936 (is_tracepoint): Likewise.
5937 (is_breakpoint): Likewise.
5938 (is_hardware_watchpoint): Likewise.
5939 (is_watchpoint): Likewise.
5940 (is_no_memory_software_watchpoint): Likewise.
5941 (is_catchpoint): Likewise.
5942 (breakpoint_1): Make FILTER parameter's return type bool.
5943 is_masked_watchpoint): Change return type to bool.
5944 (save_breakpoints): Make FILTER parameter's return type bool.
5945 * breakpoint.h (is_breakpoint): Change return type to bool.
5946 (is_watchpoint): Likewise.
5947 (is_catchpoint): Likewise.
5948 (is_tracepoint): Likewise.
5949
5950 2019-07-10 Tom Tromey <tom@tromey.com>
5951
5952 * defs.h: Don't include gdbarch.h.
5953 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5954 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5955 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5956 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5957 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5958 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5959 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5960 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5961 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5962 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5963 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5964 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5965 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5966 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5967 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5968 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5969 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5970 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5971 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5972 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5973 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5974 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5975 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5976 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5977 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5978 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5979 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5980
5981 2019-07-10 Tom Tromey <tromey@adacore.com>
5982
5983 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5984 * breakpoint.c (init_ada_exception_breakpoint): Register as
5985 bp_catchpoint.
5986 (print_one_breakpoint_location, print_one_breakpoint): Use
5987 is_ada_exception_catchpoint.
5988 * ada-lang.c (class ada_catchpoint_location): Pass
5989 bp_loc_software_breakpoint to bp_location constructor.
5990 (is_ada_exception_catchpoint): New function.
5991
5992 2019-07-10 Tom Tromey <tromey@adacore.com>
5993
5994 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5995 VEC.
5996 (struct arm_exidx_entry): New method operator<.
5997 (struct arm_exidx_data) <section_maps>: Change type.
5998 (arm_exidx_data_free): Remove.
5999 (arm_exidx_data_key): Change type. Move lower.
6000 (arm_exidx_new_objfile): Update.
6001 (arm_compare_exidx_entries): Remove.
6002 (arm_find_exidx_entry, _initialize_arm_tdep)
6003
6004 2019-07-10 Tom Tromey <tromey@adacore.com>
6005
6006 * solib-spu.c (ocl_program_data_key): Change type.
6007 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6008 Update.
6009
6010 2019-07-10 Tom Tromey <tromey@adacore.com>
6011
6012 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6013 (struct solib_aix_inferior_data) <library_list>: Change type.
6014 (solib_aix_inferior_data_handle): Change type.
6015 (get_solib_aix_inferior_data): Update.
6016 (solib_aix_free_library_list): Remove.
6017 (library_list_start_library): Update.
6018 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6019 return type.
6020 (solib_aix_get_library_list)
6021 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6022 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6023
6024 2019-07-10 Tom Tromey <tromey@adacore.com>
6025
6026 * solib-dsbt.c (struct dsbt_info): Add initializers.
6027 (solib_dsbt_pspace_data): Change type.
6028 (dsbt_pspace_data_cleanup): Remove.
6029 (get_dsbt_info, _initialize_dsbt_solib): Update.
6030
6031 2019-07-10 Tom Tromey <tromey@adacore.com>
6032
6033 * spu-tdep.c (spu_overlay_data): Change type.
6034 (spu_get_overlay_table, spu_overlay_new_objfile)
6035 (_initialize_spu_tdep): Update.
6036
6037 2019-07-10 Tom Tromey <tromey@adacore.com>
6038
6039 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6040 destructor.
6041 (dbx_objfile_data_key): Change type and declare later.
6042 (DBX_SYMFILE_INFO): Rewrite.
6043 * dbxread.c (dbx_objfile_data_key): Change type.
6044 (dbx_symfile_init): Update.
6045 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6046 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6047 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6048
6049 2019-07-10 Tom Tromey <tromey@adacore.com>
6050
6051 * jit.c (jit_program_space_key): Change type. Move lower.
6052 (get_jit_program_space_data): Update.
6053 (jit_program_space_data_cleanup): Remove.
6054 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6055 Update.
6056 (struct jit_program_space_data): Add initializers.
6057
6058 2019-07-10 Tom Tromey <tromey@adacore.com>
6059
6060 * solib-darwin.c (struct darwin_info): Add initializers.
6061 (solib_darwin_pspace_data): Change type.
6062 (darwin_pspace_data_cleanup): Remove.
6063 (get_darwin_info, _initialize_darwin_solib): Update.
6064
6065 2019-07-10 Tom Tromey <tromey@adacore.com>
6066
6067 * remote-sim.c (struct sim_inferior_data): Add initializers,
6068 constructor, and destructor.
6069 (sim_inferior_data_key): Change type. Move lower.
6070 (check_for_duplicate_sim_descriptor): Update.
6071 (get_sim_inferior_data): Use new. Update.
6072 (~sim_inferior_data_cleanup): Rename from
6073 sim_inferior_data_cleanup. Simplify.
6074 (gdbsim_close_inferior, simulator_command)
6075 (sim_command_completer, _initialize_remote_sim): Update.
6076 (next_pid, INITIAL_PID): Move earlier.
6077
6078 2019-07-10 Tom Tromey <tromey@adacore.com>
6079
6080 * python/python-internal.h (create_thread_object): Return
6081 gdbpy_ref.
6082 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6083 * python/py-inferior.c (struct threadlist_entry): Add
6084 constructor.
6085 <thread_obj>: Now a gdbpy_ref.
6086 (thread_to_thread_object): Update.
6087 (add_thread_object): Use new.
6088 (delete_thread_object): Use delete.
6089 (infpy_threads): Update.
6090 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6091 GIL.
6092
6093 2019-07-10 Tom Tromey <tromey@adacore.com>
6094
6095 * valops.c (value_cast): Specialize error message for Ada.
6096
6097 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6098
6099 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6100
6101 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6104 bpstat_should_step): Return bool, adjust comments.
6105 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6106 bpstat_should_step): Likewise.
6107
6108 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6109
6110 * features/Makefile: Use feature target descriptions for Arm.
6111 * features/arm/arm-core.c: Generate new file.
6112 * features/arm/arm-fpa.c: Likewise.
6113 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6114 * features/arm/arm-m-profile.c: Likewise.
6115 * features/arm/arm-vfpv2.c: Likewise.
6116 * features/arm/arm-vfpv3.c: Likewise.
6117 * features/arm/xscale-iwmmxt.c: Likewise.
6118 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6119
6120 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6121
6122 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6123 ptrace earlier.
6124
6125 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6126
6127 * features/aarch64-pauth.c: Regenerate.
6128
6129 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6132 bool.
6133 (bpstat_what): Use false instead of 0.
6134
6135 2019-07-09 Pedro Alves <palves@redhat.com>
6136
6137 * break-catch-throw.c (is_exception_catchpoint): New.
6138 * breakpoint.c (print_one_breakpoint_location): New parameter
6139 'raw_loc'. Handle it. Use
6140 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6141 looking at the breakpoint's type.
6142 (print_one_breakpoint): If handling "maint info breakpoints", also
6143 print locations of exception catchpoints.
6144 * breakpoint.h (is_exception_catchpoint): Declare.
6145
6146 2019-07-09 Pedro Alves <palves@redhat.com>
6147
6148 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6149 "addr" field.
6150 (allocate_location_exception_catchpoint): New.
6151 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6152 (initialize_throw_catchpoint_ops): Install
6153 allocate_location_exception_catchpoint as allocate_location
6154 method.
6155 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6156 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6157 bp_loc_other.
6158 (breakpoint_address_is_meaningful): Delete.
6159 (bl_address_is_meaningful): New.
6160 (breakpoint_locations_match): Adjust comment.
6161 (bp_location_from_bp_type): New, factored out of...
6162 (bp_location::bp_location(breakpoint *)): ... this.
6163 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6164 factored out of...
6165 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6166 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6167 breakpoint_address_is_meaningful.
6168 (bp_locations_compare): Adjust comment.
6169 (update_global_location_list): Use bl_address_is_meaningful
6170 instead of breakpoint_address_is_meaningful.
6171 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6172 explicit.
6173 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6174 * python/py-breakpoint.c (bppy_get_location): No longer check
6175 whether location is null.
6176
6177 2019-07-09 Pedro Alves <palves@redhat.com>
6178
6179 PR c++/15468
6180 * breakpoint.c (print_one_breakpoint_location): Remove
6181 single-location assert.
6182
6183 2019-07-09 Tom Tromey <tom@tromey.com>
6184
6185 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6186 * configure: Rebuild.
6187 * configure.ac: Change common to gdbsupport.
6188 * gdbsupport: Rename from common.
6189 * acinclude.m4: Change common to gdbsupport.
6190 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6191 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6192 gdbsupport.
6193 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6194 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6195 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6196 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6197 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6198 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6199 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6200 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6201 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6202 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6203 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6204 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6205 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6206 coff-pe-read.c, command.h, compile/compile-c-support.c,
6207 compile/compile-c.h, compile/compile-cplus-symbols.c,
6208 compile/compile-cplus-types.c, compile/compile-cplus.h,
6209 compile/compile-loc2c.c, compile/compile.c, completer.c,
6210 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6211 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6212 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6213 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6214 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6215 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6216 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6217 features/aarch64-core.c, features/aarch64-fpu.c,
6218 features/aarch64-pauth.c, features/aarch64-sve.c,
6219 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6220 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6221 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6222 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6223 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6224 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6225 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6226 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6227 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6228 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6229 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6230 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6231 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6232 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6233 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6234 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6235 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6236 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6237 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6238 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6239 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6240 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6241 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6242 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6243 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6244 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6245 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6246 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6247 minsyms.c, mips-linux-tdep.c, namespace.h,
6248 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6249 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6250 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6251 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6252 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6253 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6254 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6255 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6256 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6257 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6258 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6259 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6260 procfs.c, producer.c, progspace.h, psymtab.h,
6261 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6262 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6263 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6264 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6265 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6266 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6267 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6268 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6269 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6270 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6271 target-memory.c, target.c, target.h, target/waitstatus.c,
6272 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6273 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6274 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6275 unittests/array-view-selftests.c,
6276 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6277 unittests/common-utils-selftests.c,
6278 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6279 unittests/format_pieces-selftests.c,
6280 unittests/function-view-selftests.c,
6281 unittests/lookup_name_info-selftests.c,
6282 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6283 unittests/mkdir-recursive-selftests.c,
6284 unittests/observable-selftests.c,
6285 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6286 unittests/parse-connection-spec-selftests.c,
6287 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6288 unittests/scoped_fd-selftests.c,
6289 unittests/scoped_mmap-selftests.c,
6290 unittests/scoped_restore-selftests.c,
6291 unittests/string_view-selftests.c, unittests/style-selftests.c,
6292 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6293 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6294 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6295 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6296 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6297 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6298
6299 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6302 bool value.
6303 (decode_digits_ordinary): Set explicit_line field in sal.
6304 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6305 symtab_and_line that was set on an explicit line number in
6306 assembler code. Do always update the recorded symtab and line if
6307 we do skip the prologue.
6308
6309 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6310
6311 * breakpoint.c (set_breakpoint_location_function): Remove
6312 explicit_loc parameter.
6313 (momentary_breakpoint_from_master): Update call to
6314 set_breakpoint_location_function.
6315 (add_location_to_breakpoint): Likewise.
6316
6317 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6318
6319 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6320 required features based on default bfd type when no specific bfd
6321 is present.
6322
6323 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6324
6325 * NEWS: Mention that GDB printf and eval commands can now print
6326 C-style and Ada-style convenience var strings without
6327 calling the inferior.
6328 * printcmd.c (printf_c_string): Locally print GDB internal var
6329 instead of transiting via the inferior.
6330 (printf_wide_c_string): Likewise.
6331
6332 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6333
6334 PR breakpoints/25011
6335 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6336
6337 2019-07-04 Tom Tromey <tom@tromey.com>
6338
6339 PR tui/24724:
6340 * tui/tui-winsource.c (tui_clear_source_content): Update.
6341 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6342 (tui_update_breakpoint_info): Update.
6343 (tui_set_exec_info_content): Update.
6344 * tui/tui-source.c (tui_set_source_content_nil): Update.
6345 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6346 has_break.
6347 * tui/tui-data.h (enum tui_bp_flag): New.
6348 (tui_bp_flags): New enum flags type.
6349 (struct tui_source_element) <break_mode>: Change type. Rename
6350 from has_break.
6351 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6352 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6353 constants.
6354 * tui/tui-winsource.h: Fix comment.
6355
6356 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6357
6358 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6359 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6360 (store_fpregs_to_thread)
6361 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6362 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6363 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6364 (IWMMXT_REGS_SIZE): Add define.
6365 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6366 (fetch_vfp_regs, store_vfp_regs)
6367 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6368 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6369
6370 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6371
6372 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6373 defines.
6374 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6375 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6376 (ARM_INT_REGISTER_SIZE): ...to this.
6377 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6378 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6379 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6380 (arm_linux_collect_gregset, supply_nwfpe_register)
6381 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6382 defines.
6383 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6384 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6385 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6386 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6387 (arm_return_in_memory, arm_store_return_value)
6388 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6389 (arm_record_ld_st_multiple): Likewise.
6390 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6391 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6392
6393 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6394
6395 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6396 AARCH64_DISPLACED_MODIFIED_INSNS.
6397 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6398 (aarch64_displaced_step_copy_insn): Likewise.
6399 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6400 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6401 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6402 ARM_DISPLACED_MODIFIED_INSNS.
6403 * arm-tdep.c (arm_gdbarch_init): Likewise.
6404 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6405 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6406 (struct arm_displaced_step_closure): Use
6407 ARM_DISPLACED_MODIFIED_INSNS.
6408
6409 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6410
6411 * features/Makefile: Remove unused xml files.
6412 * features/aarch64.xml: Remove.
6413 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6414 * features/i386/amd64-avx-avx512.xml: Remove.
6415 * features/i386/amd64-avx-linux.xml: Remove.
6416 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6417 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6418 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6419 * features/i386/amd64-avx-mpx.xml: Remove.
6420 * features/i386/amd64-avx.xml: Remove.
6421 * features/i386/amd64-linux.xml: Remove.
6422 * features/i386/amd64-mpx-linux.xml: Remove.
6423 * features/i386/amd64-mpx.xml: Remove.
6424 * features/i386/amd64.xml: Remove.
6425 * features/i386/i386-avx-avx512-linux.xml: Remove.
6426 * features/i386/i386-avx-avx512.xml: Remove.
6427 * features/i386/i386-avx-linux.xml: Remove.
6428 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6429 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6430 * features/i386/i386-avx-mpx-linux.xml: Remove.
6431 * features/i386/i386-avx-mpx.xml: Remove.
6432 * features/i386/i386-avx.xml: Remove.
6433 * features/i386/i386-linux.xml: Remove.
6434 * features/i386/i386-mmx-linux.xml: Remove.
6435 * features/i386/i386-mmx.xml: Remove.
6436 * features/i386/i386-mpx-linux.xml: Remove.
6437 * features/i386/i386-mpx.xml: Remove.
6438 * features/i386/i386.xml: Remove.
6439 * features/i386/x32-avx-avx512-linux.xml: Remove.
6440 * features/i386/x32-avx-linux.xml: Remove.
6441 * features/i386/x32-linux.xml: Remove.
6442
6443 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6444
6445 * regformats/aarch64.dat: Remove.
6446 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6447 * regformats/i386/amd64-avx-linux.dat: Remove.
6448 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6449 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6450 * regformats/i386/amd64-linux.dat: Remove.
6451 * regformats/i386/amd64-mpx-linux.dat: Remove.
6452 * regformats/i386/amd64.dat: Remove.
6453 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6454 * regformats/i386/i386-avx-linux.dat: Remove.
6455 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6456 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6457 * regformats/i386/i386-linux.dat: Remove.
6458 * regformats/i386/i386-mmx-linux.dat: Remove.
6459 * regformats/i386/i386-mpx-linux.dat: Remove.
6460 * regformats/i386/i386.dat: Remove.
6461 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6462 * regformats/i386/x32-avx-linux.dat: Remove.
6463 * regformats/i386/x32-linux.dat: Remove.
6464
6465 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6466
6467 * aarch64-tdep.c: Remove xml self tests.
6468 * amd64-linux-tdep.c: Likewise.
6469 * amd64-tdep.c: Likewise.
6470 * i386-linux-tdep.c: Likewise.
6471 * i386-tdep.c: Likewise.
6472
6473 2019-07-03 Pedro Alves <palves@redhat.com>
6474
6475 PR cli/24732
6476 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6477 (pipe_cmd_option_defs): New.
6478 (make_pipe_cmd_options_def_group): New.
6479 (pipe_command): Use gdb::option::process_options.
6480 (pipe_command_completer): New function.
6481 (_initialize_cli_cmds): Install completer for "pipe" command.
6482
6483 2019-07-03 Pedro Alves <palves@redhat.com>
6484
6485 * cli/cli-option.c (union option_value) <string>: New field.
6486 (struct option_def_and_value): Add ctor, move ctor, dtor and
6487 use DISABLE_COPY_AND_ASSIGN.
6488 (option_def_and_value::clear_value): New.
6489 (parse_option, save_option_value_in_ctx, get_val_type_str)
6490 (add_setshow_cmds_for_options): Handle var_string.
6491 * cli-option.h (union option_def::var_address) <string>: New
6492 field.
6493 (struct string_option_def): New.
6494 * maint-test-options.c (struct test_options_opts): Add default
6495 ctor and use DISABLE_COPY_AND_ASSIGN.
6496 <string_opt>: New field.
6497 (test_options_opts::~test_options_opts): New.
6498 (test_options_opts::dump): Also dump "-string".
6499 (test_options_option_defs): Install "string.
6500
6501 2019-07-03 Pedro Alves <palves@redhat.com>
6502
6503 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6504 option_value with a null enumeration.
6505 (complete_options): Save the option values in the context.
6506 (save_option_value_in_ctx): New, factored out from ...
6507 (process_options): ... here.
6508 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6509 of the function.
6510 * maint-test-options.c (test_options_opts::dump): New, factored
6511 out from ...
6512 (maintenance_test_options_command_mode): ... here.
6513 (maintenance_test_options_command_completion_result): Delete.
6514 (maintenance_test_options_command_completion_text): Update
6515 comment.
6516 (maintenance_show_test_options_completion_result): Change
6517 prototype. Just print
6518 maintenance_test_options_command_completion_text.
6519 (save_completion_result): New.
6520 (maintenance_test_options_completer_mode): Pass options context to
6521 complete_options, and then save a dump.
6522 (_initialize_maint_test_options): Use add_cmd to install "maint
6523 show test-options-completion-result".
6524
6525 2019-07-03 Pedro Alves <palves@redhat.com>
6526
6527 * NEWS (New commands): Mention "with" and "maint with".
6528 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6529 (with_command, with_command_completer): New.
6530 (pipe_command): Adjust to new repeat_previous
6531 interface.
6532 (_initialize_cli_cmds): Install the "with" command and its "w"
6533 alias.
6534 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6535 declarations.
6536 * cli/cli-setshow.c (parse_cli_var_uinteger)
6537 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6538 argument strings for all var_types.
6539 (get_setshow_command_value_string): New, factored out from ...
6540 (do_show_command): ... this.
6541 * cli/cli-setshow.h: Include <string>.
6542 (get_setshow_command_value_string): Declare.
6543 * command.h (repeat_previous): Now returns const char *. Adjust
6544 comment.
6545 * maint.c: Include "cli/cli-cmds.h".
6546 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6547 (_initialize_maint_cmds): Register the "maintenance with" command.
6548 * top.c (repeat_previous): Move bits from pipe_command here:
6549 Return the saved command line, if any; error out if there's no
6550 command to relaunch.
6551
6552 2019-07-03 Pedro Alves <palves@redhat.com>
6553
6554 * NEWS (New commands): Mention "maint set/show test-settings"
6555 instead of "maint test-settings".
6556 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6557 (maintenance_test_settings_set_list): Rename to ...
6558 (maintenance_set_test_settings_list): ... this.
6559 (maintenance_test_settings_show_list): Rename to ...
6560 (maintenance_show_test_settings_list): ... this.
6561 (maintenance_test_settings_cmd): Delete.
6562 (maintenance_test_settings_set_cmd): ...
6563 (maintenance_set_test_settings_cmd): ... this.
6564 (maintenance_test_settings_show_cmd): ...
6565 (maintenance_show_test_settings_cmd): ... this.
6566 (maintenance_test_settings_show_value_cmd):
6567 (maintenance_show_test_settings_value_cmd): ... this.
6568 (_initialize_maint_test_settings): No longer install the "maint
6569 test-settings" prefix command. Rename "maint test-settings set"
6570 to "maint set test-settings", and "maint test-settings show" to
6571 "maint show test-settings". Adjust all subcommands.
6572
6573 2019-07-03 Pedro Alves <palves@redhat.com>
6574
6575 * maint-test-settings.c: Fix file's intro comment. Replace all
6576 references to "test-options" with references to "test-settings",
6577 in comments.
6578
6579 2019-07-03 Pedro Alves <palves@redhat.com>
6580
6581 * maint-test-settings.c (maintenance_test_settings_xxx)
6582 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6583 New.
6584 (maintenance_test_settings_enums): Use them.
6585 (maintenance_test_settings_enum): Default to
6586 maintenance_test_settings_xxx.
6587 (_initialize_maint_test_settings): Initialize
6588 MAINTENANCE_TEST_SETTINGS_FILENAME.
6589
6590 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6591
6592 * breakpoint.h (remove_breakpoints_inf): Change return type to
6593 void, move function documentation here.
6594 * breakpoint.c (remove_breakpoints_inf): Change return type to
6595 void, move function documentation to header.
6596
6597 2019-07-02 Pedro Alves <palves@redhat.com>
6598
6599 * NEWS (Completion improvements): Mention "info threads".
6600 * thread.c (struct info_threads_opts, info_threads_option_defs)
6601 (make_info_threads_options_def_group): New.
6602 (info_threads_command): Use gdb::option::process_options.
6603 (info_threads_command_completer): New.
6604 (_initialize_thread): Use gdb::option::build_help to build the
6605 help text for "info threads".
6606
6607 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6608
6609 * defs.h (generic_load): Move from here...
6610 * symfile.h (generic_load): ... to here. Rename name parameter
6611 to args.
6612 * symfile.c (generic_load): Add comment.
6613
6614 2019-07-01 Tom Tromey <tromey@adacore.com>
6615
6616 * dwarf2read.c
6617 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6618 declaration of without_params. Fix formatting.
6619
6620 2019-07-01 Tom Tromey <tromey@adacore.com>
6621
6622 * ada-exp.y (find_primitive_type): Update.
6623 * ada-lang.h (ada_lookup_symbol): Update.
6624 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6625 parameter.
6626 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6627
6628 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6629
6630 PR breakpoints/24541
6631 * gdbarch.c: Regenerate.
6632 * gdbarch.h: Regenerate.
6633 * gdbarch.sh: Add 'stap_adjust_register'.
6634 * i386-tdep.c: Include '<unordered_set>'.
6635 (i386_stap_adjust_register): New function.
6636 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6637 * stap-probe.c (stap_parse_register_operand): Call
6638 'gdbarch_stap_adjust_register'.
6639
6640 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6641
6642 PR python/24742
6643 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6644 * python/python.c (do_start_initialization): Use 'xmalloc'
6645 instead of 'PyMem_Malloc'.
6646
6647 2019-06-28 Tom Tromey <tromey@adacore.com>
6648
6649 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6650 for Ada.
6651
6652 2019-06-27 Tom Tromey <tromey@adacore.com>
6653
6654 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6655 objfile_key.
6656 (arm_find_mapping_symbol, arm_record_special_symbol)
6657 (_initialize_arm_tdep): Update.
6658 (arm_objfile_data_free): Remove.
6659
6660 2019-06-27 Tom Tromey <tromey@adacore.com>
6661
6662 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6663 to cp_print_static_field.
6664
6665 2019-06-26 Tom Tromey <tromey@adacore.com>
6666
6667 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6668 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6669 declare.
6670
6671 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6672
6673 * features/aarch64-core.c (create_feature_aarch64_core):
6674 Regenerate.
6675 * features/aarch64-core.xml: Add cpsr flags.
6676
6677 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6678
6679 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6680 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6681
6682 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6683
6684 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6685 field.
6686 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6687 use.
6688 (arm_record_special_symbol): Don't insert new symbol in sorted
6689 position, push it at the end.
6690
6691 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6692
6693 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6694 (arm_mapping_symbol_s): Remove.
6695 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6696 (arm_mapping_symbol_vec): New typedef.
6697 (struct arm_per_objfile): Add constructor.
6698 <section_maps>: Change type to
6699 std::unique_ptr<arm_mapping_symbol_vec[]>.
6700 (arm_compare_mapping_symbols): Remove.
6701 (arm_find_mapping_symbol): Adjust to section_maps type change.
6702 (arm_objfile_data_free): Call delete on arm_per_objfile.
6703 (arm_record_special_symbol): Adjust to section_maps type change.
6704 Allocate arm_per_objfile with new.
6705
6706 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6707
6708 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6709 with the command prefix.
6710
6711 2019-06-25 Tom Tromey <tom@tromey.com>
6712
6713 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6714 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6715
6716 2019-06-25 Tom Tromey <tom@tromey.com>
6717
6718 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6719 type.
6720 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6721 protected.
6722
6723 2019-06-25 Tom Tromey <tom@tromey.com>
6724
6725 * tui/tui-winsource.c
6726 (tui_source_window_base::set_is_exec_point_at): Add check against
6727 LOA_ADDRESS.
6728
6729 2019-06-25 Tom Tromey <tom@tromey.com>
6730
6731 * tui/tui-source.c (tui_set_source_content): Don't check before
6732 xfree.
6733 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6734
6735 2019-06-25 Tom Tromey <tom@tromey.com>
6736
6737 * tui/tui-winsource.h (tui_update_source_window_as_is)
6738 (tui_alloc_source_buffer, tui_line_is_displayed)
6739 (tui_addr_is_displayed): Change type of win_info.
6740 * tui/tui-winsource.c (tui_update_source_window_as_is)
6741 (tui_clear_source_content, tui_show_source_line)
6742 (tui_show_source_content, tui_source_window_base::refill)
6743 (tui_source_window_base::set_is_exec_point_at)
6744 (tui_source_window_base::set_is_exec_point_at)
6745 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6746 (tui_alloc_source_buffer, tui_line_is_displayed)
6747 (tui_addr_is_displayed): Change type of win_info. Update.
6748 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6749 (tui_source_window_base::do_make_visible_with_new_height):
6750 Update.
6751 * tui/tui-source.c (tui_set_source_content)
6752 (tui_set_source_content_nil)
6753 (tui_source_window::do_scroll_vertical): Update.
6754 * tui/tui-layout.c (show_layout): Update.
6755 * tui/tui-disasm.c (tui_set_disassem_content)
6756 (tui_disasm_window::do_scroll_vertical): Update.
6757 * tui/tui-data.h (tui_win_content): Remove.
6758 (struct tui_gen_win_info) <content, content_size>: Remove.
6759 (struct tui_source_element): Add initializers and destructor.
6760 (union tui_which_element, struct tui_win_element): Remove.
6761 (struct tui_source_window_base) <content>: New field.
6762 (struct tui_data_window): Remove destructor.
6763 (tui_alloc_content, tui_free_win_content)
6764 (tui_free_all_source_wins_content): Don't declare.
6765 * tui/tui-data.c (tui_initialize_static_data): Update.
6766 (init_content_element, tui_alloc_content): Remove.
6767 (~tui_gen_win_info): Update.
6768 (~tui_data_window, tui_free_all_source_wins_content)
6769 (tui_free_win_content, free_content, free_content_elements):
6770 Remove.
6771
6772 2019-06-25 Tom Tromey <tom@tromey.com>
6773
6774 * tui/tui-winsource.h (tui_clear_source_content)
6775 (tui_erase_source_content, tui_show_source_content): Change type
6776 of win_info.
6777 * tui/tui-winsource.c (tui_clear_source_content)
6778 (tui_erase_source_content, tui_show_source_content): Change type
6779 of win_info.
6780 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6781 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6782 win_info.
6783 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6784 win_info.
6785 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6786
6787 2019-06-25 Tom Tromey <tom@tromey.com>
6788
6789 * tui/tui-winsource.c (tui_clear_source_content)
6790 (tui_source_window_base::set_is_exec_point_at): Update.
6791 * tui/tui-source.c (tui_set_source_content_nil): Update.
6792 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6793 a bool.
6794 * tui/tui-data.c (init_content_element): Update.
6795
6796 2019-06-25 Tom Tromey <tom@tromey.com>
6797
6798 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6799 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6800 * tui/tui-layout.c (init_and_make_win): Update.
6801 * tui/tui.h (enum tui_win_type): Update.
6802 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6803 tui_win_is_auxillary.
6804 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6805 tui_win_is_auxillary.
6806
6807 2019-06-25 Tom Tromey <tom@tromey.com>
6808
6809 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6810 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6811 (tui_delete_data_content_windows, tui_display_all_data)
6812 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6813 Update.
6814 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6815 * tui/tui-regs.c (tui_last_regs_line_no)
6816 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6817 (tui_show_registers): Update.
6818 (tui_show_register_group): Return void. Update.
6819 (tui_display_registers_from, tui_display_reg_element_at_line)
6820 (tui_display_registers_from_line, tui_check_register_values):
6821 Update.
6822 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6823 member.
6824 (struct tui_data_window) <regs_content>: Now a std::vector.
6825 <regs_content_count>: Remove.
6826 (tui_add_content_elements, tui_free_data_content): Don't declare.
6827 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6828 (init_content_element): Remove DATA_WIN case. Add assert.
6829 (tui_add_content_elements): Remove.
6830 (tui_data_window): Update.
6831 (tui_free_data_content): Remove.
6832 (free_content_elements): Remove DATA_WIN case.
6833
6834 2019-06-25 Tom Tromey <tom@tromey.com>
6835
6836 * tui/tui-data.c (tui_data_item_window): Update.
6837 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6838 * tui/tui-windata.c (tui_display_all_data)
6839 (tui_display_data_from_line): Update.
6840 (tui_check_data_values): Remove.
6841 * tui/tui-regs.c (tui_show_register_group)
6842 (tui_display_reg_element_at_line): Update.
6843 * tui/tui-hooks.c (tui_register_changed)
6844 (tui_refresh_frame_and_register_information): Call
6845 tui_check_register_values.
6846 * tui/tui-data.h (struct tui_data_window) <data_content,
6847 data_content_count, data_type>: Remove.
6848 (enum tui_data_type): Remove.
6849
6850 * tui/tui-data.c (tui_data_window::clear_detail)
6851 (~tui_data_window): Update.
6852
6853 2019-06-25 Tom Tromey <tom@tromey.com>
6854
6855 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6856 declare.
6857 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6858 Rename from tui_first_data_item_displayed. Update.
6859 (tui_data_window::refresh_all)
6860 (tui_data_window::do_scroll_vertical): Update.
6861 * tui/tui-data.h (struct tui_data_window)
6862 <first_data_item_displayed>: Declare new method.
6863
6864 2019-06-25 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6867 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6868 contents...
6869 (tui_initialize_static_data): ...here.
6870
6871 2019-06-25 Tom Tromey <tom@tromey.com>
6872
6873 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6874 (tui_display_registers_from, tui_check_register_values): Update.
6875 (tui_display_register): Remove win_info parameter; update.
6876 (tui_get_register): Change type of parameters.
6877 * tui/tui-data.h (struct tui_data_element): Remove.
6878 (union tui_which_element) <data>: Remove.
6879 <data_window>: Change type.
6880 (struct tui_data_item_window): New.
6881 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6882 case. Add assert.
6883 (~tui_data_item_window): New destructor.
6884 (free_content_elements): Remove DATA_ITEM_WIN case.
6885
6886 2019-06-25 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6889 Remove.
6890
6891 2019-06-25 Tom Tromey <tom@tromey.com>
6892
6893 * tui/tui-data.h (struct tui_command_element): Remove.
6894 (union tui_which_element) <command>: Remove.
6895 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6896 assert.
6897 (free_content_elements): Remove CMD_WIN case.
6898
6899 2019-06-25 Tom Tromey <tom@tromey.com>
6900
6901 * tui/tui-layout.c (tui_set_layout): Update.
6902 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6903 * tui/tui-data.c (layout_def): Update.
6904
6905 2019-06-25 Tom Tromey <tom@tromey.com>
6906
6907 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6908 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6909 (tui_source_window_base::set_new_height): Update.
6910 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6911 Update.
6912 (tui_set_locator_fullname, tui_set_locator_info)
6913 (tui_show_frame_info): Update.
6914 * tui/tui-source.c (tui_set_source_content)
6915 (tui_source_is_displayed): Update.
6916 * tui/tui-layout.c (show_source_disasm_command, show_data)
6917 (show_source_or_disasm_and_command): Update.
6918 * tui/tui-disasm.c (tui_set_disassem_content)
6919 (tui_get_begin_asm_address): Update.
6920 * tui/tui-data.h (struct tui_locator_element): Remove.
6921 (union tui_which_element) <locator>: Remove.
6922 (struct tui_locator_window): New.
6923 (tui_locator_win_info_ptr): Change return type.
6924 * tui/tui-data.c (_locator): Change type.
6925 (tui_locator_win_info_ptr): Change return type.
6926 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6927 (tui_alloc_content): Add assert.
6928
6929 2019-06-25 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-winsource.c
6932 (tui_exec_info_window::maybe_allocate_content): New method.
6933 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6934 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6935 (make_source_or_disasm_window): Add cast.
6936 * tui/tui-data.h (union tui_which_element) <simple_string>:
6937 Remove.
6938 (struct tui_source_info): New.
6939 (struct tui_source_window_base) <execution_info>: Change type.
6940 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6941 case, and add assert.
6942 (tui_alloc_content): Add assert.
6943
6944 2019-06-25 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6947 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6948 * tui/tui-data.c (tui_alloc_win_info): Remove.
6949
6950 2019-06-25 Tom Tromey <tom@tromey.com>
6951
6952 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6953 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6954 can_highlight.
6955
6956 2019-06-25 Tom Tromey <tom@tromey.com>
6957
6958 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6959 make_visible_with_new_height method.
6960 (tui_win_info::make_visible_with_new_height): New method.
6961 (tui_source_window_base::do_make_visible_with_new_height)
6962 (tui_data_window::do_make_visible_with_new_height)
6963 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6964 (make_visible_with_new_height): Remove.
6965 (tui_resize_all, tui_adjust_win_heights): Use
6966 make_visible_with_new_height method.
6967 * tui/tui-data.h (struct tui_win_info)
6968 <do_make_visible_with_new_height, make_visible_with_new_height>:
6969 New methods.
6970 (struct tui_source_window_base, struct tui_data_window)
6971 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6972 methods.
6973
6974 2019-06-25 Tom Tromey <tom@tromey.com>
6975
6976 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6977 method.
6978 (update_tab_width): Call update_tab_width method.
6979 * tui/tui-data.h (struct tui_win_info)
6980 (struct tui_source_window_base) <update_tab_width>: New methods.
6981
6982 2019-06-25 Tom Tromey <tom@tromey.com>
6983
6984 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6985 parameter.
6986 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6987 parameter.
6988 (tui_gen_win_info::make_visible): Update.
6989 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6990 parameter.
6991 * tui/tui-data.h (enum tui_box): New enum.
6992 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6993
6994 2019-06-25 Tom Tromey <tom@tromey.com>
6995
6996 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6997 init_and_make_win for EXEC_INFO_WIN.
6998 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6999 longer inline.
7000 (struct tui_win_info) <~tui_win_info>: Inline.
7001 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7002 Don't declare.
7003 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7004 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7005 Remove.
7006 (tui_initialize_static_data): Update.
7007 (~tui_gen_win_info): Handle more cleanup here.
7008 (~tui_source_window_base): Delete "execution_info".
7009 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7010
7011 2019-06-25 Tom Tromey <tom@tromey.com>
7012
7013 * tui/tui-layout.c (make_command_window): Don't set
7014 can_highlight.
7015 (show_source_disasm_command): Call the reset method.
7016 (show_data): Don't set can_highlight. Call the reset method.
7017 (tui_gen_win_info::reset): Rename from init_gen_win_info
7018 (init_and_make_win): Simplify. Return tui_gen_win_info.
7019 (show_source_or_disasm_and_command): Call the reset method.
7020 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7021 (struct tui_cmd_window): Set can_highlight.
7022
7023 2019-06-25 Tom Tromey <tom@tromey.com>
7024
7025 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7026 from make_visible.
7027 (tui_make_visible, tui_make_invisible): Rewrite.
7028 (tui_win_info::make_visible): Remove.
7029 (tui_source_window_base::make_visible): Update.
7030 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7031 method. Moved from...
7032 (struct tui_win_info) <make_visible>: ...here.
7033
7034 2019-06-25 Tom Tromey <tom@tromey.com>
7035
7036 * tui/tui-winsource.c
7037 (tui_source_window_base::do_scroll_horizontal): Remove direction
7038 parameter.
7039 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7040 direction parameter.
7041 * tui/tui-win.c (tui_win_info::forward_scroll)
7042 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7043 (tui_win_info::right_scroll): Update.
7044 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7045 direction parameter.
7046 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7047 direction parameter.
7048 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7049 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7050 Remove direction parameter.
7051 (struct tui_source_window_base, struct tui_source_window)
7052 (struct tui_disasm_window, struct tui_data_window)
7053 (struct tui_cmd_window): Update.
7054
7055 2019-06-25 Tom Tromey <tom@tromey.com>
7056
7057 * tui/tui-winsource.h (tui_set_exec_info_content)
7058 (tui_show_exec_info_content, tui_erase_exec_info_content)
7059 (tui_clear_exec_info_content, tui_update_exec_info): Change
7060 argument to tui_source_window_base.
7061 * tui/tui-winsource.c (tui_set_exec_info_content)
7062 (tui_show_exec_info_content, tui_erase_exec_info_content)
7063 (tui_clear_exec_info_content, tui_update_exec_info): Change
7064 argument to tui_source_window_base.
7065
7066 2019-06-25 Tom Tromey <tom@tromey.com>
7067
7068 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7069 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7070
7071 2019-06-25 Tom Tromey <tom@tromey.com>
7072
7073 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7074 check.
7075
7076 2019-06-25 Tom Tromey <tom@tromey.com>
7077
7078 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7079 type to void.
7080 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7081 type to void.
7082 * tui/tui-source.c (tui_set_source_content): Update.
7083 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7084
7085 2019-06-25 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-win.c (window_name_completer, tui_set_focus)
7088 (tui_all_windows_info): Use name method.
7089 * tui/tui-data.h (struct tui_gen_win_info)
7090 (struct tui_source_window, struct tui_disasm_window)
7091 (struct tui_data_window, struct tui_cmd_window) <name>: New
7092 method.
7093 (tui_win_name): Don't declare.
7094 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7095 (tui_win_name): Remove.
7096
7097 2019-06-25 Tom Tromey <tom@tromey.com>
7098
7099 * tui/tui-winsource.h (tui_update_source_window)
7100 (tui_update_source_window_as_is): Change parameter type.
7101 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7102 to be a tui_source_window_base.
7103 (tui_update_source_window_as_is): Likewise.
7104 * tui/tui-win.c (make_visible_with_new_height): Update.
7105
7106 2019-06-25 Tom Tromey <tom@tromey.com>
7107
7108 * tui/tui-winsource.c (tui_erase_source_content)
7109 (tui_show_source_content, tui_show_exec_info_content)
7110 (tui_erase_exec_info_content): Use refresh_window method.
7111 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7112 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7113 from tui_refresh_win.
7114 (tui_data_window::refresh_window): New method.
7115 (tui_win_info::refresh, tui_source_window_base::refresh)
7116 (tui_refresh_all): Use refresh_window method.
7117 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7118 method.
7119 * tui/tui-regs.c (tui_display_register): Call refresh_window
7120 method.
7121 * tui/tui-layout.c (show_source_disasm_command)
7122 (show_source_or_disasm_and_command): Call refresh_window method.
7123 * tui/tui-data.h (struct tui_gen_win_info)
7124 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7125 New method.
7126
7127 2019-06-25 Tom Tromey <tom@tromey.com>
7128
7129 * tui/tui.c (tui_rl_other_window, tui_enable)
7130 (tui_is_window_visible, tui_get_command_dimension): Update.
7131 * tui/tui-winsource.c (tui_update_source_window_as_is)
7132 (tui_clear_source_content, tui_erase_source_content)
7133 (tui_show_source_line, tui_source_window_base::refill)
7134 (tui_source_window_base::do_scroll_horizontal)
7135 (tui_source_window_base::set_is_exec_point_at)
7136 (tui_update_breakpoint_info, tui_set_exec_info_content)
7137 (tui_alloc_source_buffer, tui_line_is_displayed)
7138 (tui_addr_is_displayed): Update.
7139 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7140 (tui_check_and_display_highlight_if_needed)
7141 (tui_win_info::make_visible, tui_win_info::refresh)
7142 (tui_refresh_all): Update.
7143 * tui/tui-windata.c (tui_first_data_item_displayed)
7144 (tui_delete_data_content_windows, tui_erase_data_content)
7145 (tui_display_all_data, tui_data_window::refresh_all)
7146 (tui_check_data_values): Update.
7147 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7148 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7149 (tui_win_info::backward_scroll, tui_refresh_all_win)
7150 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7151 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7152 (tui_source_window_base::set_new_height)
7153 (tui_data_window::set_new_height)
7154 (make_invisible_and_set_new_height)
7155 (make_visible_with_new_height, new_height_ok)
7156 (parse_scrolling_args): Update.
7157 * tui/tui-stack.c (tui_show_frame_info): Update.
7158 * tui/tui-source.c (tui_set_source_content)
7159 (tui_set_source_content_nil, tui_source_is_displayed)
7160 (tui_source_window::do_scroll_vertical): Update.
7161 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7162 (tui_display_registers_from, tui_display_reg_element_at_line)
7163 (tui_check_register_values, tui_reg_command): Update.
7164 * tui/tui-layout.c (tui_default_win_height)
7165 (show_source_disasm_command, show_data, init_and_make_win)
7166 (show_source_or_disasm_and_command): Update.
7167 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7168 (tui_redisplay_readline, tui_mld_flush)
7169 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7170 (tui_getc): Update.
7171 * tui/tui-disasm.c (tui_set_disassem_content)
7172 (tui_disasm_window::do_scroll_vertical): Update.
7173 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7174 Now virtual.
7175 (struct tui_win_info): Derive from tui_gen_win_info.
7176 <~tui_win_info>: Mark as override.
7177 <generic>: Remove member.
7178 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7179 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7180 (~tui_data_window, ~tui_win_info)
7181 (tui_free_all_source_wins_content): Update.
7182 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7183
7184 2019-06-25 Tom Tromey <tom@tromey.com>
7185
7186 * tui/tui-layout.c (init_and_make_win): Use new.
7187 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7188 destructor, initializers.
7189 (tui_alloc_generic_win_info): Don't declare.
7190 * tui/tui-data.c (_locator): Add argument to constructor.
7191 (source_win, disasm_win): New globals.
7192 (exec_info): Remove.
7193 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7194 Update.
7195 (tui_alloc_generic_win_info): Remove.
7196 (init_content_element): Use new.
7197 (tui_win_info::tui_win_info): Update.
7198 (free_content_elements) <case DATA_WIN>: Use delete.
7199
7200 2019-06-25 Tom Tromey <tom@tromey.com>
7201
7202 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7203 * tui/tui-windata.c (tui_first_data_item_displayed)
7204 (tui_delete_data_content_windows): Update.
7205 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7206 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7207 (tui_display_registers_from, tui_check_register_values): Update.
7208 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7209 pointer.
7210 * tui/tui-data.c (init_content_element): Update. Allocate the new
7211 window.
7212 (tui_free_data_content): Update.
7213 (free_content_elements) <case DATA_WIN>: Free the window.
7214
7215 2019-06-25 Tom Tromey <tom@tromey.com>
7216
7217 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7218 Update.
7219 * tui/tui-layout.c (make_command_window)
7220 (show_source_disasm_command, show_data, init_and_make_win)
7221 (show_source_or_disasm_and_command): Update.
7222 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7223 method.
7224 <can_highight, is_highlighted>: Now bool.
7225 (tui_set_win_highlight): Don't declare.
7226 * tui/tui-data.c (tui_set_win_highlight): Remove.
7227
7228 2019-06-25 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-wingeneral.c (make_visible): Remove check of window
7231 type.
7232
7233 2019-06-25 Tom Tromey <tom@tromey.com>
7234
7235 * tui/tui-win.c (tui_win_info::max_height)
7236 (tui_cmd_window::max_height): New methods.
7237 (new_height_ok): Call max_height.
7238 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7239 <max_height>: New method.
7240
7241 2019-06-25 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-win.c (tui_source_window_base::set_new_height)
7244 (tui_data_window::set_new_height): New methods.
7245 (make_invisible_and_set_new_height): Call set_new_height method.
7246 * tui/tui-data.h (struct tui_win_info)
7247 (struct tui_source_window_base, struct tui_data_window)
7248 <set_new_height>: New method.
7249
7250 2019-06-25 Tom Tromey <tom@tromey.com>
7251
7252 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7253 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7254 tui_refresh_data_win.
7255 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7256 method.
7257 (tui_refresh_all_win): Call the refresh_all method.
7258 (tui_set_focus): Likewise.
7259 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7260 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7261 Likewise.
7262
7263 2019-06-25 Tom Tromey <tom@tromey.com>
7264
7265 * tui/tui-winsource.h (tui_refill_source_window)
7266 (tui_set_is_exec_point_at): Don't declare.
7267 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7268 (tui_source_window_base::refill): Rename from
7269 tui_refill_source_window.
7270 (tui_source_window_base::do_scroll_horizontal): Update.
7271 (tui_source_window_base::set_is_exec_point_at): Rename from
7272 tui_set_is_exec_point_at.
7273 (tui_update_all_breakpoint_info): Update.
7274 * tui/tui-stack.c (tui_show_frame_info): Update.
7275 * tui/tui-layout.c (show_data): Add cast.
7276 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7277 * tui/tui-data.h (struct tui_source_window_base) <refill,
7278 set_is_exec_point_at>: New methods.
7279 (tui_source_windows, tui_add_to_source_windows): Update types.
7280 (tui_add_to_source_windows): Remove redundant declaration.
7281 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7282 (tui_source_windows): Change return type.
7283 (tui_clear_source_windows_detail): Update.
7284 (tui_add_to_source_windows): Change type of parameter.
7285 (tui_free_all_source_wins_content): Update.
7286
7287 2019-06-25 Tom Tromey <tom@tromey.com>
7288
7289 * tui/tui-wingeneral.c (tui_win_info::refresh)
7290 (tui_source_window_base::refresh): New methods.
7291 (tui_refresh_all): Call the refresh method.
7292 * tui/tui-data.h (struct tui_win_info)
7293 (struct tui_source_window_base) <refresh>: New method.
7294
7295 2019-06-25 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui.h (tui_is_window_visible): Return bool.
7298 * tui/tui.c (tui_is_window_visible): Return bool.
7299 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7300 (tui_make_visible, tui_make_invisible)
7301 (tui_win_info::make_visible)
7302 (tui_source_window_base::make_visible, make_all_visible)
7303 (tui_make_all_visible, tui_make_all_invisible): Update.
7304 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7305 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7306 bool.
7307 (struct tui_win_info, struct tui_source_window_base)
7308 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7309 * tui/tui-data.c (tui_init_generic_part): Update.
7310
7311 2019-06-25 Tom Tromey <tom@tromey.com>
7312
7313 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7314 (tui_source_window_base::make_visible): New methods.
7315 (make_all_visible): Make method call.
7316 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7317 (struct tui_source_window_base, struct tui_cmd_window): Override
7318 make_visible.
7319 (tui_win_is_source_type): Don't declare.
7320 * tui/tui-data.c (tui_win_is_source_type): Remove.
7321
7322 2019-06-25 Tom Tromey <tom@tromey.com>
7323
7324 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7325 NULL check.
7326
7327 2019-06-25 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7330 Inline constructor. Add initializers for members.
7331 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7332 constructors; now inline in class.
7333
7334 2019-06-25 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-regs.c (tui_show_registers): Update.
7337 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7338 bool.
7339 * tui/tui-data.c (tui_data_window::clear_detail)
7340 (tui_data_window): Update.
7341
7342 2019-06-25 Tom Tromey <tom@tromey.com>
7343
7344 * tui/tui-windata.c (tui_display_all_data)
7345 (tui_display_data_from_line, tui_display_data_from)
7346 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7347 Update.
7348 * tui/tui-regs.c (tui_last_regs_line_no)
7349 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7350 (tui_show_registers, tui_show_register_group)
7351 (tui_display_registers_from, tui_display_reg_element_at_line)
7352 (tui_display_registers_from_line, tui_check_register_values)
7353 (tui_reg_next, tui_reg_prev): Update.
7354 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7355 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7356 tui_data_window.
7357 (struct tui_win_info) <detail>: Remove. Add new fields from
7358 tui_data_info.
7359 (TUI_DATA_WIN): Add cast.
7360 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7361 (~tui_data_window): Simplify.
7362
7363 2019-06-25 Tom Tromey <tom@tromey.com>
7364
7365 * tui/tui-layout.c (show_source_disasm_command)
7366 (show_source_or_disasm_and_command): Update.
7367 * tui/tui-io.c (update_cmdwin_start_line)
7368 (tui_redisplay_readline): Update.
7369 * tui/tui-data.h (struct tui_command_info): Remove.
7370 (struct tui_win_info) <detail>: Remove command_info member.
7371 (struct tui_data_window) <start_line>: New member, from
7372 tui_command_info.
7373 (TUI_CMD_WIN): Add casts.
7374
7375 2019-06-25 Tom Tromey <tom@tromey.com>
7376
7377 * tui/tui-winsource.c (tui_update_source_window)
7378 (tui_refill_source_window)
7379 (tui_source_window_base::do_scroll_horizontal)
7380 (tui_update_breakpoint_info, tui_set_exec_info_content)
7381 (tui_show_exec_info_content, tui_erase_exec_info_content)
7382 (tui_clear_exec_info_content): Update.
7383 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7384 Update.
7385 * tui/tui-win.c (make_invisible_and_set_new_height)
7386 (make_visible_with_new_height): Update.
7387 * tui/tui-source.c (tui_set_source_content)
7388 (tui_show_symtab_source): Update.
7389 * tui/tui-layout.c (extract_display_start_addr)
7390 (show_source_disasm_command, show_data)
7391 (make_source_or_disasm_window)
7392 (show_source_or_disasm_and_command): Update.
7393 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7394 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7395 "gdbarch".
7396 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7397 to tui_source_window_base.
7398 (struct tui_win_info) <detail>: Remove source_info member.
7399 (struct tui_source_window_base) <has_locator>: Inline.
7400 Move contents from tui_source_info; rename has_locator member to
7401 m_has_locator.
7402 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7403 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7404 header file.
7405 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7406 Simplify.
7407 (tui_free_all_source_wins_content): Cast to
7408 tui_source_window_base.
7409
7410 2019-06-25 Tom Tromey <tom@tromey.com>
7411
7412 * tui/tui-win.c (make_invisible_and_set_new_height)
7413 (make_visible_with_new_height): Call has_locator method.
7414 * tui/tui-layout.c (show_source_disasm_command, show_data)
7415 (show_source_or_disasm_and_command): Update for bool change.
7416 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7417 (tui_win_info) <has_locator>: New method.
7418 (struct tui_source_window_base) <has_locator>: New method.
7419 (tui_win_has_locator): Don't declare.
7420 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7421 from tui_win_has_locator.
7422 (tui_source_window_base): Use false, not FALSE.
7423
7424 2019-06-25 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7427 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7428 clear_detail method directly.
7429 (tui_clear_win_detail): Remove.
7430
7431 2019-06-25 Tom Tromey <tom@tromey.com>
7432
7433 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7434 "this", not TUI_DISASM_WIN.
7435
7436 2019-06-25 Tom Tromey <tom@tromey.com>
7437
7438 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7439 declare.
7440 * tui/tui-winsource.c
7441 (tui_source_window_base::do_scroll_horizontal): Rename from
7442 tui_horizontal_source_scroll.
7443 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7444 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7445 from tui_vertical_data_scroll.
7446 * tui/tui-win.h (tui_scroll): Don't declare.
7447 * tui/tui-win.c (tui_win_info::forward_scroll)
7448 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7449 (tui_win_info::right_scroll): Rename and update.
7450 (tui_scroll_forward_command, tui_scroll_backward_command)
7451 (tui_scroll_left_command, tui_scroll_right_command): Update.
7452 (tui_scroll): Remove.
7453 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7454 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7455 from tui_vertical_source_scroll.
7456 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7457 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7458 from tui_vertical_disassem_scroll.
7459 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7460 do_scroll_horizontal>: New methods.
7461 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7462 Likewise.
7463 (struct tui_source_window_base): Add do_scroll_horizontal.
7464 (struct tui_source_window, struct tui_disasm_window): Add
7465 do_scroll_vertical.
7466 (struct tui_data_window, struct tui_cmd_window): Add
7467 do_scroll_horizontal and do_scroll_vertical.
7468 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7469
7470 2019-06-25 Tom Tromey <tom@tromey.com>
7471
7472 * tui/tui-data.h (struct tui_source_window_base): New struct.
7473 (struct tui_source_window): Derive from tui_source_window_base.
7474 (struct tui_disasm_window): New struct.
7475 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7476 from tui_source_window::clear_detail.
7477 (tui_source_window_base): Rename from tui_source_window.
7478 (~tui_source_window_base): Rename from ~tui_source_window.
7479 (tui_alloc_win_info): Create a tui_disasm_window.
7480
7481 2019-06-25 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui-data.h (struct tui_source_window)
7484 (struct tui_data_window): Declare destructors.
7485 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7486 destructors.
7487 (tui_win_info): Simplify.
7488
7489 2019-06-25 Tom Tromey <tom@tromey.com>
7490
7491 * tui/tui-winsource.c (tui_display_main)
7492 (tui_update_source_windows_with_addr)
7493 (tui_update_all_breakpoint_info): Update.
7494 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7495 (new_height_ok, parse_scrolling_args): Update.
7496 * tui/tui-stack.c (tui_show_frame_info): Update.
7497 * tui/tui-data.h (struct tui_list): Remove.
7498 (tui_source_windows): Return a reference to a std::vector.
7499 * tui/tui-data.c (source_windows): Now a std::vector.
7500 (tui_source_windows): Change return type.
7501 (tui_clear_source_windows): Rewrite.
7502 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7503 (tui_free_all_source_wins_content): Rewrite.
7504
7505 2019-06-25 Tom Tromey <tom@tromey.com>
7506
7507 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7508 (struct tui_data_window, struct tui_cmd_window): Declare
7509 clear_detail method.
7510 * tui/tui-data.c (tui_source_window::clear_detail)
7511 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7512 methods.
7513 (tui_clear_win_detail): Simplify.
7514
7515 2019-06-25 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui-layout.c (make_source_window, make_disasm_window)
7518 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7519 Return the new window.
7520 (show_source_disasm_command, show_data)
7521 (show_source_or_disasm_and_command): Update.
7522
7523 2019-06-25 Tom Tromey <tom@tromey.com>
7524
7525 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7526 parameter. Return the new window.
7527 (show_source_disasm_command): Update and remove NULL check.
7528 (show_source_or_disasm_and_command): Update.
7529
7530 2019-06-25 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7533
7534 2019-06-25 Tom Tromey <tom@tromey.com>
7535
7536 * tui/tui-data.h (struct tui_win_info): Make constructor
7537 protected. Make destructor virtual. Add initializers.
7538 (tui_source_window, tui_data_window, tui_cmd_window): New
7539 classes.
7540 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7541 constructor. Add "type" parameter.
7542 (tui_source_window, tui_data_window, tui_cmd_window): New
7543 constructors.
7544 (tui_alloc_win_info): Instantiate the appropriate subclass.
7545
7546 2019-06-25 Tom Tromey <tom@tromey.com>
7547
7548 * tui/tui-win.c (tui_resize_all): Use delete.
7549 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7550 destructor.
7551 (tui_free_window): Don't declare.
7552 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7553 Update.
7554
7555 2019-06-25 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-data.h (struct tui_win_info): Add constructor.
7558 * tui/tui-data.c (tui_alloc_win_info): Use new.
7559 (tui_free_window): Use delete.
7560
7561 2019-06-22 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7564 declare.
7565 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7566
7567 2019-06-22 Tom Tromey <tom@tromey.com>
7568
7569 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7570 declare.
7571 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7572
7573 2019-06-22 Tom de Vries <tdevries@suse.de>
7574
7575 * dwarf2read.c (create_addrmap_from_aranges)
7576 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7577 instead of '%zu'.
7578
7579 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * dwarf2read.h (dwarf2_section_info_def): Remove.
7582 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7583 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7584 std::vector<dwarf2_section_info>.
7585 (struct dwo_file) <~dwo_file>: Remove.
7586 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7587 types field.
7588 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7589 (dwarf2_read_debug_names): Likewise.
7590 (create_debug_types_hash_table): Change parameter type to
7591 array_view, adjust code accordingly.
7592 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7593 (partial_die_info::fixup): Likewise.
7594 (determine_prefix): Likewise.
7595 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7596
7597 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7598
7599 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7600 gdb_bfd_ref_ptr.
7601 <~dwo_file>: Remove call to gdb_bfd_unref.
7602 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7603 gdb_bfd_ref_ptr::get.
7604
7605 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7606
7607 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7608 type to htab_up.
7609 * dwarf2read.c (struct dwo_file): Initialize fields.
7610 <~dwo_file>: New.
7611 (free_dwo_file): Remove, move content to ~dwo_file.
7612 (struct dwo_file_deleter): Remove.
7613 (dwo_file_up>: Remove custom deleter.
7614 (free_dwo_files): Remove.
7615 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7616 dwo_files.
7617 (process_skeletonless_type_units): Call unique_ptr::get.
7618 (allocate_dwo_file_hash_table): Add deleter to created hash
7619 table. Change return type to htab_up.
7620 (lookup_dwo_file_slot): Don't memset dwo_file, call
7621 unique_ptr::get.
7622 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7623 (create_dwo_unit_in_dwp_v2): Likewise.
7624 (open_and_init_dwo_file): Likewise.
7625 (free_dwo_file_from_slot): Remove.
7626
7627 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7628
7629 * dwarf2read.h (struct dwarf2_section_info) <readin,
7630 is_virtual>: Change type to bool.
7631 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7632 true instead of 1.
7633
7634 2019-06-19 Tom Tromey <tom@tromey.com>
7635
7636 * tui/tui-data.h (tui_init_content_element): Don't declare.
7637
7638 2019-06-19 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-data.h (tui_init_win_info): Don't declare.
7641
7642 2019-06-19 Tom de Vries <tdevries@suse.de>
7643
7644 * dwarf2read.h (abstract_to_concrete): Change type to
7645 std::unordered_map<sect_offset, std::vector<sect_offset>,
7646 gdb::hash_enum<sect_offset>>.
7647
7648 2019-06-19 Tom Tromey <tromey@adacore.com>
7649
7650 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7651 EVAL_AVOID_SIDE_EFFECTS specially.
7652
7653 2019-06-19 Tom Tromey <tromey@adacore.com>
7654
7655 * source-cache.c (highlighter): New global.
7656 (source_cache::get_source_lines): Create a highlighter on demand.
7657
7658 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7659
7660 * defs.h (deprecated_interactive_hook): Delete declaration.
7661 * interps.c (clear_interpreter_hooks): Remove use of
7662 deprecated_interactive_hook.
7663 * top.c (deprecated_interactive_hook): Delete definition.
7664 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7665
7666 2019-06-18 Tom de Vries <tdevries@suse.de>
7667
7668 PR gdb/24515
7669 * dwarf2read.h (abstract_to_concrete): Change type from
7670 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7671 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7672 * dwarf2read.c (read_variable): Update.
7673 (dwarf2_fetch_die_loc_sect_off): Update.
7674
7675 2019-06-17 Tom de Vries <tdevries@suse.de>
7676
7677 PR gdb/24617
7678 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7679 accessing parent[parent_len - 1].
7680
7681 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7682
7683 PR gdb/24364
7684 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7685 call dtrace_process_dof with NULL dof.
7686
7687 2019-06-16 Tom de Vries <tdevries@suse.de>
7688
7689 PR gdb/24445
7690 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7691
7692 2019-06-16 Tom Tromey <tom@tromey.com>
7693
7694 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7695 (make_all_visible): Use address of member.
7696
7697 2019-06-16 Tom Tromey <tom@tromey.com>
7698
7699 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7700 (tui_free_window, free_content, free_content_elements): Remove
7701 unnecessary cast.
7702 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7703 cast.
7704 * tui/tui-regs.c (tui_show_register_group)
7705 (tui_display_registers_from, tui_display_reg_element_at_line):
7706 Remove unnecessary cast.
7707
7708 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * linux-nat.c (normal_mask): Delete.
7711 (_initialize_linux_nat): Don't initialise normal_mask.
7712
7713 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 PR gdb/24445
7716 * dwarf-index-write.h (write_psymtabs_to_index): Add
7717 dwz_basename parameter.
7718 * dwarf-index-write.c (write_gdbindex): Move file writing to
7719 write_gdbindex_1. Change return type void.
7720 (assert_file_size): Move up, remove filename parameter.
7721 (write_gdbindex_1): New function.
7722 (write_debug_names): Change return type to void, call
7723 assert_file_size.
7724 (struct index_wip_file): New struct.
7725 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7726 file logic to index_wip_file. Write index for dwz file if
7727 needed.
7728 (save_gdb_index_command): Pass basename of dwz file, if present.
7729 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7730 build-id of dwz file, if present.
7731 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7732 (dwarf2_get_dwz_file): Likewise.
7733 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7734 (dwarf2_get_dwz_file): Likewise.
7735
7736 2019-06-16 Tom Tromey <tom@tromey.com>
7737
7738 * coffread.c (process_coff_symbol): Use xstrdup.
7739 * value.c (create_internalvar): Use xstrdup.
7740
7741 2019-06-16 Tom Tromey <tom@tromey.com>
7742
7743 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7744 * breakpoint.c (stopin_command, stopat_command)
7745 (until_break_command, decode_location_default): Remove unnecessary
7746 cast.
7747 * utils.c (subset_compare): Remove unnecessary cast.
7748 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7749 cast.
7750 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7751 cast.
7752 * infcmd.c (path_command): Remove unnecessary cast.
7753 * coffread.c (decode_type): Remove unnecessary cast.
7754 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7755 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7756 * tui/tui-stack.c (tui_show_locator_content)
7757 (tui_show_frame_info): Remove unnecessary cast.
7758 * tui/tui-win.c (tui_scroll_forward_command)
7759 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7760 (parse_scrolling_args): Remove unnecessary cast.
7761 * tui/tui-data.c (init_win_info, tui_del_window)
7762 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7763 (free_content_elements): Remove unnecessary cast.
7764 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7765 unnecessary cast.
7766 * tui/tui-source.c (tui_set_source_content)
7767 (tui_vertical_source_scroll): Remove unnecessary cast.
7768 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7769 cast.
7770 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7771 * tui/tui-regs.c (tui_display_registers_from)
7772 (tui_display_register): Remove unnecessary cast.
7773 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7774 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7775 (make_visible): Remove unnecessary cast.
7776 * tui/tui-winsource.c (tui_erase_source_content)
7777 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7778 unnecessary cast.
7779 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7780 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7781 * stabsread.c (read_type, read_array_type, read_range_type):
7782 Remove unnecessary cast.
7783 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7784 (parse_symbol, parse_type, upgrade_type, parse_external)
7785 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7786 unnecessary cast.
7787 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7788
7789 2019-06-16 Tom Tromey <tom@tromey.com>
7790
7791 * tui/tui-data.c (tui_alloc_generic_win_info)
7792 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7793 checks.
7794
7795 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7796 Andrew Burgess <andrew.burgess@embecosm.com>
7797
7798 * f-typeprint.c (f_print_type): Don't return early for not
7799 associated or not allocated types.
7800 (f_type_print_varspec_suffix): Add print_rank parameter and print
7801 ranks of array types in case they dangling.
7802 (f_type_print_base): Add print_rank parameter.
7803
7804 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * NEWS: Mention new MI commands.
7807 * break-catch-throw.c (enum exception_event_kind): Move to
7808 breakpoint.h.
7809 (print_mention_exception_catchpoint): Output text as a single
7810 message.
7811 (catch_exception_command_1): Rename to...
7812 (catch_exception_event): ...this, make non-static, update header
7813 command, and change some parameter types.
7814 (catch_catch_command): Update for changes to
7815 catch_exception_command_1.
7816 (catch_throw_command): Likewise.
7817 (catch_rethrow_command): Likewise.
7818 * breakpoint.c (enum exception_event_kind): Delete.
7819 * breakpoint.h (enum exception_event_kind): Moved here from
7820 break-catch-throw.c.
7821 (catch_exception_event): Declare.
7822 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7823 (mi_cmd_catch_throw): New function.
7824 (mi_cmd_catch_rethrow): New function.
7825 (mi_cmd_catch_catch): New function.
7826 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7827 'catch-catch' entries.
7828 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7829 (mi_cmd_catch_rethrow): Declare.
7830 (mi_cmd_catch_catch): Declare.
7831
7832 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7833
7834 * annotate.c (annotate_source_line): Change return type to void,
7835 update implementation to match.
7836 * annotate.h (annotate_source_line): Change return type to void,
7837 update header comment.
7838 * stack.c (print_frame_info): Don't change what frame information
7839 is printed based on whether annotations are on or not.
7840
7841 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7844 (annotate_source): Make static.
7845 (annotate_source_line): Moved from source.c and renamed from
7846 identify_source_line. Update the return type.
7847 * annotate.h (annotate_source): Delete declaration.
7848 (annotate_source_line): Declaration moved from source.h, and
7849 renamed from identify_source_line. Return type updated.
7850 * source.c (identify_source_line): Moved to annotate.c and renamed
7851 to annotate_source_line.
7852 (info_line_command): Remove check of annotation_level.
7853 * source.h (identify_source_line): Move declaration to annotate.h
7854 and rename to annotate_source_line.
7855 * stack.c: Add 'annotate.h' include.
7856 (print_frame_info): Remove check of annotation_level before
7857 calling annotate_source_line.
7858
7859 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7860
7861 * source-cache.c (source_cache::get_plain_source_lines): Use
7862 open_source_file_with_line_charpos instead of just
7863 open_source_file, remove call to find_source_lines.
7864 (source_cache::get_source_lines): Likewise.
7865 * source.c (find_source_lines): Make static.
7866 (get_filename_and_charpos): Renamed into...
7867 (open_source_file_with_line_charpos): ..this along with changes to
7868 return a scoped_fd, and some other minor clean ups.
7869 (identify_source_line): Use open_source_file_with_line_charpos.
7870 (search_command_helper): Use open_source_file_with_line_charpos
7871 instead of just open_source_file, remove call to
7872 find_source_lines.
7873 * source.h (open_source_file_with_line_charpos): Declare new
7874 function.
7875 (find_source_lines): Delete declaration.
7876
7877 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7878
7879 * source.c (get_filename_and_charpos): Remove fullname
7880 parameter.
7881 (identify_source_line): Update call to get_filename_and_charpos.
7882
7883 2019-06-14 Tom Tromey <tromey@adacore.com>
7884
7885 PR gdb/24502:
7886 * ui-style.h (skip_ansi_escape): Update comment.
7887 * ui-file.h (class no_terminal_escape_file): New class.
7888 * ui-file.c (no_terminal_escape_file::write)
7889 (no_terminal_escape_file::puts): New methods.
7890 * cli/cli-logging.c (handle_redirections): Use
7891 no_terminal_escape_file.
7892
7893 2019-06-14 Tom Tromey <tromey@adacore.com>
7894
7895 * NEWS: Move convenience variable news above Python news.
7896
7897 2019-06-14 Tom Tromey <tom@tromey.com>
7898
7899 * gnulib: Move directory to top-level.
7900 * configure.ac: Don't configure gnulib.
7901 * configure: Rebuild.
7902 * common/common-defs.h: Use new path to gnulib.
7903 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7904 (GNULIB_H): Remove.
7905 (INCGNU): Look in new gnulib location.
7906 (HFILES_NO_SRCDIR): Remove gnulib files.
7907 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7908 (generated_files): Remove GNULIB_H.
7909 ($(LIBGNU), all-lib): Remove targets.
7910 (distclean): Don't mention GNULIB_BUILDDIR.
7911 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7912
7913 2019-06-14 Tom Tromey <tromey@adacore.com>
7914
7915 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7916 Warn if symbol file does not provide any symbols.
7917
7918 2019-06-14 Tom Tromey <tromey@adacore.com>
7919
7920 * source.c (find_and_open_source): Respect basenames_may_differ.
7921
7922 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7923
7924 * annotate.c (annotate_breakpoints_invalid): Make use of
7925 scoped_restore_terminal_state.
7926 (annotate_frames_invalid): Likewise.
7927
7928 2019-06-14 Tom Tromey <tromey@adacore.com>
7929
7930 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7931 allow assignment to an internalvar.
7932
7933 2019-06-14 Tom Tromey <tromey@adacore.com>
7934
7935 * ada-lex.l: Allow "_" in attribute names.
7936
7937 2019-06-14 Tom Tromey <tromey@adacore.com>
7938
7939 PR gdb/24653:
7940 * regcache.c (registers_changed): Don't call alloca.
7941 * top.c (execute_command): Don't call alloca.
7942
7943 2019-06-13 Pedro Alves <palves@redhat.com>
7944
7945 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7946 'expression'. When parsing an expression, error out if there's
7947 junk after "unlimited".
7948 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7949 (do_set_command): Adjust calls to is_unlimited_literal.
7950
7951 2019-06-13 Pedro Alves <palves@redhat.com>
7952
7953 * compile/compile.c (make_compile_options_def_group): Add braces
7954 around array_view initializer.
7955 * thread.c (make_thread_apply_all_options_def_group)
7956 (make_thread_apply_all_options_def_group): Likewise.
7957
7958 2019-06-13 Pedro Alves <palves@redhat.com>
7959
7960 * NEWS (New commands): Mention "maint test-options
7961 require-delimiter", "maint test-options unknown-is-error", "maint
7962 test-options unknown-is-operand" and "maint show
7963 test-options-completion-result".
7964 (New command options, command completion): New section.
7965 (Completion improvements): New section.
7966 Mention that you can abbreviate "unlimited".
7967
7968 2019-06-13 Pedro Alves <palves@redhat.com>
7969
7970 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7971 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7972 * unittests/cli-utils-selftests.c (test_parse_flags)
7973 (test_parse_flags_qcs): Delete.
7974 (test_cli_utils): Don't call deleted functions.
7975
7976 2019-06-13 Pedro Alves <palves@redhat.com>
7977
7978 * thread.c: Include "cli/cli-option.h".
7979 (tp_array_compar_ascending): Global.
7980 (tp_array_compar): Delete function.
7981 (tp_array_compar_ascending, tp_array_compar_descending): New
7982 functions.
7983 (ascending_option_def, qcs_flag_option_def)
7984 (thr_qcs_flags_option_defs)
7985 (make_thread_apply_all_options_def_group)
7986 (make_thread_apply_options_def_group): New.
7987 (thread_apply_all_command): Use gdb::option::process_options.
7988 (thread_apply_command_completer)
7989 (thread_apply_all_command_completer): New.
7990 (thread_apply_command): Use gdb::option::process_options.
7991 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7992 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7993 to generate help text of "thread apply". Adjust "taas"'s help.
7994 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7995 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7996
7997 2019-06-13 Pedro Alves <palves@redhat.com>
7998
7999 * thread.c (thread_apply_command): Check for invalid TID with
8000 isdigit instead of !isalpha.
8001
8002 2019-06-13 Pedro Alves <palves@redhat.com>
8003
8004 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8005 (validate_flags_qcs): New.
8006 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8007 (validate_flags_qcs): Declare.
8008 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8009 (make_frame_apply_options_def_group): New.
8010 (frame_apply_command_count): Process options with
8011 gdb::option::process_options.
8012 (frame_apply_completer): New.
8013 (frame_apply_level_completer, frame_apply_all_completer)
8014 (frame_apply_completer): New.
8015 (_initialize_stack): Update help of "frame apply", "frame apply
8016 level", "frame apply all" and "faas" to mention supported options
8017 and install command completers.
8018 * stack.h (frame_apply_all_completer): Declare.
8019 * thread.c: Include "stack.h".
8020 (tfaas_command): Add "--".
8021 (_initialize_thread): Update help "tfaas" to mention supported
8022 options and install command completer.
8023
8024 2019-06-13 Pedro Alves <palves@redhat.com>
8025
8026 * completer.c (complete_nested_command_line): New.
8027 (gdb_completion_word_break_characters_throw): Add assertion.
8028 * completer.h (complete_nested_command_line): Declare.
8029
8030 2019-06-13 Pedro Alves <palves@redhat.com>
8031
8032 * stack.c (parse_backtrace_qualifiers): New.
8033 (backtrace_command): Use it.
8034 (backtrace_command_completer): Complete on qualifiers.
8035
8036 2019-06-13 Pedro Alves <palves@redhat.com>
8037
8038 * frame.c: Include "cli/cli-option.h.
8039 (user_set_backtrace_options): New.
8040 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8041 Delete.
8042 (get_prev_frame): Adjust.
8043 (boolean_option_def, uinteger_option_def)
8044 (set_backtrace_option_defs): New.
8045 (_initialize_frame): Adjust and use
8046 gdb::option::add_setshow_cmds_for_options to install "set
8047 backtrace past-main" and "set backtrace past-entry".
8048 * frame.h: Include "cli/cli-option.h".
8049 (struct frame_print_options): Forward declare.
8050 (print_frame_arguments_all, print_frame_arguments_scalars)
8051 (print_frame_arguments_none): Declare.
8052 (print_entry_values): Delete declaration.
8053 (struct frame_print_options, user_frame_print_options): New.
8054 (struct set_backtrace_options): New.
8055 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8056 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8057 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8058 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8059 (list_args_or_locals): Add frame_print_options parameter.
8060 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8061 * python/py-framefilter.c (enumerate_args): Pass down
8062 USER_FRAME_PRINT_OPTIONS.
8063 * stack.c: Include "cli/cli-option.h".
8064 (print_frame_arguments_all, print_frame_arguments_scalars)
8065 (print_frame_arguments_none): Declare.
8066 (print_raw_frame_arguments, print_entry_values): Delete.
8067 (user_frame_print_options): New.
8068 (boolean_option_def, enum_option_def, frame_print_option_defs):
8069 New.
8070 (struct backtrace_cmd_options): New.
8071 (bt_flag_option_def): New.
8072 (backtrace_command_option_defs): New.
8073 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8074 (print_frame_arg, read_frame_arg, print_frame_args)
8075 (print_frame_info, print_frame): Add frame_print_options parameter
8076 and use it.
8077 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8078 (backtrace_command_1): Add frame_print_options and
8079 backtrace_cmd_options parameters and use them.
8080 (make_backtrace_options_def_group): New.
8081 (backtrace_command): Process command options with
8082 gdb::option::process_options.
8083 (backtrace_command_completer): New.
8084 (_initialize_stack): Extend "backtrace"'s help to mention
8085 supported options. Install completer for "backtrace".
8086 Install some settings commands with add_setshow_cmds_for_options.
8087
8088 2019-06-13 Pedro Alves <palves@redhat.com>
8089
8090 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8091 and that "set/show print raw frame-arguments" are now deprecated.
8092
8093 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8094 command.
8095 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8096 * stack.c (_initialize_stack): Install "set/show print
8097 raw-frame-arguments", and deprecate "set/show print raw
8098 frame-arguments".
8099 * valprint.c (_initialize_valprint): Deprecate "set/show print
8100 raw".
8101
8102 2019-06-13 Pedro Alves <palves@redhat.com>
8103
8104 * compile/compile.c (struct compile_options): New.
8105 (compile_flag_option_def, compile_command_option_defs)
8106 (make_compile_options_def_group): New.
8107 (compile_file_command): Handle options with
8108 gdb::option::process_options.
8109 (compile_file_command_completer): New function.
8110 (compile_code_command): Handle options with
8111 gdb::option::process_options.
8112 (compile_code_command_completer): New function.
8113 (_initialize_compiler): Install completers for "compile code" and
8114 "compile file". Mention available options in "compile code" and
8115 "compile code"'s help.
8116 * completer.c (advance_to_completion_word): New, factored out from
8117 ...
8118 (advance_to_expression_complete_word_point): ... this.
8119 (advance_to_filename_complete_word_point): New.
8120 * completer.h (advance_to_filename_complete_word_point): New
8121 declaration.
8122
8123 2019-06-13 Pedro Alves <palves@redhat.com>
8124
8125 * compile/compile.c: Include "cli/cli-option.h".
8126 (compile_print_value): Scope data pointer is now a
8127 value_print_options pointer; adjust.
8128 (compile_print_command): Process options. Scope data pointer is
8129 now a value_print_options pointer; adjust.
8130 (_initialize_compile): Update "compile print"'s help to include
8131 supported options. Install a completer for "compile print".
8132 * cp-valprint.c (show_vtblprint, show_objectprint)
8133 (show_static_field_print): Delete.
8134 (_initialize_cp_valprint): Don't install "set print
8135 static-members", "set print vtbl", "set print object" here.
8136 * printcmd.c: Include "cli/cli-option.h" and
8137 "common/gdb_optional.h".
8138 (print_command_parse_format): Rework to fill in a
8139 value_print_options instead of a format_data.
8140 (print_value): Change parameter type from format_data pointer to
8141 value_print_options reference. Adjust.
8142 (print_command_1): Process options. Adjust to pass down a
8143 value_print_options.
8144 (print_command_completer): New.
8145 (_initialize_printcmd): Install print_command_completer as
8146 handle_brkchars completer for the "print" command. Update
8147 "print"'s help to include supported options.
8148 * valprint.c: Include "cli/cli-option.h".
8149 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8150 here from cp-valprint.c.
8151 (boolean_option_def, uinteger_option_def)
8152 (value_print_option_defs, make_value_print_options_def_group):
8153 New. Use gdb::option::add_setshow_cmds_for_options to install
8154 "set print elements", "set print null-stop", "set print repeats",
8155 "set print pretty", "set print union", "set print array", "set
8156 print address", "set print symbol", "set print array-indexes".
8157 * valprint.h: Include <string> and "cli/cli-option.h".
8158 (make_value_print_options_def_group): Declare.
8159 (print_value): Change parameter type from format_data pointer to
8160 value_print_options reference.
8161 (print_command_completer): Declare.
8162
8163 2019-06-13 Pedro Alves <palves@redhat.com>
8164
8165 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8166 (COMMON_SFILES): Add maint-test-settings.c.
8167 * cli/cli-decode.c (boolean_enums): New global, factored out from
8168 ...
8169 (add_setshow_boolean_cmd): ... here.
8170 * cli/cli-decode.h (boolean_enums): Declare.
8171 * cli/cli-option.c: New file.
8172 * cli/cli-option.h: New file.
8173 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8174 factored out from ...
8175 (parse_cli_boolean_value(const char *)): ... this.
8176 (is_unlimited_literal): Change parameter type to pointer to
8177 pointer. Adjust and advance ARG pointer.
8178 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8179 (parse_cli_var_enum): New, factored out from ...
8180 (do_set_command): ... this. Adjust.
8181 * cli/cli-setshow.h (parse_cli_boolean_value)
8182 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8183 (parse_cli_var_enum): Declare.
8184 * cli/cli-utils.c: Include "cli/cli-option.h".
8185 (get_ulongest): New.
8186 * cli/cli-utils.h (get_ulongest): Declare.
8187 (check_for_argument): New overloads.
8188 * maint-test-options.c: New file.
8189
8190 2019-06-13 Pedro Alves <palves@redhat.com>
8191
8192 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8193 parse a range if "-" is at the end of the string.
8194
8195 2019-06-13 Pedro Alves <palves@redhat.com>
8196
8197 * cli/cli-setshow.c (parse_auto_binary_operation)
8198 (parse_cli_boolean_value): Don't allow "o".
8199
8200 2019-06-13 Pedro Alves <palves@redhat.com>
8201
8202 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8203 * NEWS: Mention maint test-settings KIND.
8204 * maint-test-settings.c: New file.
8205
8206 2019-06-13 Pedro Alves <palves@redhat.com>
8207
8208 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8209 completer.
8210 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8211 "set" completers.
8212
8213 2019-06-13 Pedro Alves <palves@redhat.com>
8214
8215 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8216 after item.
8217
8218 2019-06-13 Pedro Alves <palves@redhat.com>
8219
8220 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8221
8222 2019-06-13 Pedro Alves <palves@redhat.com>
8223
8224 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8225 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8226 call.
8227 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8228 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8229 calls.
8230 (check_for_argument): Skip spaces after argument.
8231
8232 2019-06-13 Pedro Alves <palves@redhat.com>
8233
8234 * thread.c (thread_apply_command): Adjust TID parsing.
8235 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8236 detected before end of string.
8237 (tid_is_in_list): Error out if LIST is invalid.
8238
8239 2019-06-13 Pedro Alves <palves@redhat.com>
8240
8241 * completer.c (complete_line_internal_1): Rewind completion word
8242 point.
8243 (completion_tracker::advance_custom_word_point_by): Change
8244 parameter type to int.
8245 * completer.h (completion_tracker::advance_custom_word_point_by):
8246 Likewise.
8247
8248 2019-06-13 Pedro Alves <palves@redhat.com>
8249
8250 * completer.c (advance_to_completion_word): Handle delimiters.
8251
8252 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8253
8254 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8255
8256 2019-06-11 Tom Tromey <tom@tromey.com>
8257
8258 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8259 (xmalloc_failed): Move to alloc.c.
8260 * alloc.c: New file.
8261 * Makefile.in (COMMON_SFILES): Add alloc.c.
8262
8263 2019-06-11 Tom Tromey <tom@tromey.com>
8264
8265 * nat/linux-waitpid.c: Don't include server.h.
8266 (linux_debug): Remove.
8267 (my_waitpid): Update.
8268
8269 2019-06-11 Tom Tromey <tromey@adacore.com>
8270
8271 * infcall.c (_initialize_infcall): Remove trailing newline from
8272 help.
8273 * user-regs.c (_initialize_user_regs): Remove trailing newline
8274 from help.
8275 * typeprint.c (_initialize_typeprint): Remove trailing newline
8276 from help.
8277 * reverse.c (_initialize_reverse): Remove trailing newlines from
8278 help.
8279 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8280 from help.
8281 * language.c (add_set_language_command): Remove trailing newline
8282 from help.
8283 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8284 help.
8285 * disasm.c (_initialize_disasm): Remove trailing newline from
8286 help.
8287 * top.c (init_main): Remove trailing newline from help.
8288 * interps.c (_initialize_interpreter): Remove trailing newline
8289 from help.
8290 * btrace.c (_initialize_btrace): Remove trailing newlines from
8291 help.
8292 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8293 from help.
8294 * python/python.c (_initialize_python): Remove trailing newline
8295 from help.
8296 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8297 help.
8298 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8299 from help. Reformat some text.
8300 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8301 from help.
8302 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8303 newline from help.
8304
8305 2019-06-11 Tom Tromey <tromey@adacore.com>
8306
8307 * darwin-nat.c (darwin_decode_exception_message)
8308 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8309
8310 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8311
8312 * valops.c (value_slice): Check for not allocated or not
8313 associated values.
8314
8315 2019-06-10 Tom de Vries <tdevries@suse.de>
8316
8317 PR gdb/24618
8318 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8319 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8320 invalid.
8321
8322 2019-06-10 Tom de Vries <tdevries@suse.de>
8323
8324 PR gdb/24611
8325 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8326 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8327
8328 2019-06-10 Tom de Vries <tdevries@suse.de>
8329
8330 PR symtab/24545
8331 * symtab.c (struct demangled_name_entry): Add language field.
8332 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8333 static minimal symbol". Set and use language field.
8334
8335 2019-06-10 Tom Tromey <tromey@adacore.com>
8336
8337 * ada-lang.c (_initialize_ada_language): Update help text.
8338
8339 2019-06-10 Tom Tromey <tromey@adacore.com>
8340
8341 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8342 with a newline.
8343 * guile/guile.c (handle_boot_error): Don't end warning with a
8344 newline.
8345 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8346 warning with a newline.
8347 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8348 newline.
8349 (s12z_frame_cache): Likewise.
8350 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8351 a newline.
8352 * solib-svr4.c (disable_probes_interface): Don't end warning with
8353 a newline.
8354 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8355 newline.
8356 * python/python.c (do_finish_initialization): Don't end warning
8357 with a newline.
8358
8359 2019-06-10 Tom Tromey <tom@tromey.com>
8360
8361 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8362 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8363 gdbpy_enter.
8364
8365 2019-06-10 Tom Tromey <tromey@adacore.com>
8366
8367 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8368 data.
8369 (elf_new_init): Don't call stabsread_new_init.
8370 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8371 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8372 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8373
8374 2019-06-10 Tom de Vries <tdevries@suse.de>
8375
8376 PR symtab/16264
8377 PR symtab/24517
8378 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8379
8380 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8381
8382 * source.c (find_and_open_source): Also rewrite relative file
8383 names.
8384
8385 2019-04-26 Amos Bird <amosbird@gmail.com>
8386
8387 * annotate.c (annotate_thread_exited): Add "thread-exited"
8388 annotation.
8389
8390 2019-06-06 Tom Tromey <tromey@adacore.com>
8391
8392 * maint.h (class scoped_command_stats): Use
8393 DISABLE_COPY_AND_ASSIGN.
8394 <print_time>: New method.
8395 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8396 print_time.
8397 (scoped_command_stats::print_time): New method.
8398
8399 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8400
8401 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8402 instructions of lengths 6 or 8 bytes.
8403
8404 2019-06-04 Pedro Alves <palves@redhat.com>
8405
8406 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8407
8408 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8409 * breakpoint.c (condition_completer): Likewise.
8410 * cli/cli-dump.c (scan_expression): Likewise.
8411 * common/filestuff.c (mkdir_recursive): Likewise.
8412 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8413 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8414 (gdb_abspath): Likewise.
8415 * compile/compile-cplus-types.c
8416 (compile_cplus_instance::decl_name): Likewise.
8417 * completer.c (complete_explicit_location):
8418 (signal_completer, reg_or_group_completer_1): Likewise.
8419 * cp-support.c (cp_remove_params_if_any): Likewise.
8420 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8421 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8422 * infcmd.c (strip_bg_char): Likewise.
8423 * linespec.c (copy_token_string): Likewise.
8424 * mi/mi-main.c (output_cores): Likewise.
8425 * psymtab.c (psymtab_search_name):
8426 * symfile.c (test_set_ext_lang_command): Likewise.
8427 * target.c (target_fileio_read_stralloc): Likewise.
8428 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8429 * value.c (complete_internalvar): Likewise.
8430
8431 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8432
8433 Add objfile property to gdb.Type.
8434 * NEWS: Mention Python API addition.
8435 * python/py-type.c (typy_get_objfile): New method.
8436
8437 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8438
8439 * NEWS: Mention the new set|show style [title|highlight].
8440 Mention changes to "show style", "help" and "apropos".
8441
8442 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8443
8444 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8445 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8446 instead of print_help_for_command.
8447 (print_doc_of_command): New function.
8448 (help_list): Add 'apropos -v word' suggestion.
8449 (print_help_for_command): Style the command name using title style.
8450 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8451 (_initialize_cli_cmds): Describe -v in apropos_command help.
8452
8453 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8454
8455 * cli/cli-style.h (cli_style_option): Add name in constructor,
8456 add m_name class member, add constructor with intensity,
8457 add name class function.
8458 (cli_style_option::add_setshow_commands): Remove name argument.
8459 (highlight_style, title_style): New styles.
8460 * cli/cli-style.c (do_show): New function that shows a style
8461 characteristic styling the style name with itself.
8462 (set_style_name): New function.
8463 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8464 Update all callers according to the changes in cli/cli-style.h.
8465 * utils.h (fputs_highlighted): New function.
8466 * utils.c (fputs_highlighted): Likewise.
8467
8468 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8469
8470 * NEWS: Mention new pipe command and new convenience variables.
8471
8472 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8473
8474 * cli/cli-cmds.c (pipe_command): New function.
8475 (_initialize_cli_cmds): Call add_com for pipe_command.
8476 Define | as an alias for pipe.
8477 (exit_status_set_internal_vars): New function.
8478 (shell_escape): Call exit_status_set_internal_vars.
8479 cli/cli-decode.c (find_command_name_length): Recognize | as
8480 a single character command.
8481
8482 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8483
8484 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8485 top.c (execute_command_to_ui_file): New function, mostly a copy
8486 of execute_command_to_string.
8487 (execute_command_to_string): Implement by calling
8488 execute_command_to_ui_file.
8489
8490 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8491
8492 * top.h (saved_command_line): Remove declaration.
8493 * top.c (previous_saved_command_line, previous_repeat_arguments):
8494 New variables.
8495 (saved_command_line): Make static, define together with other
8496 'repeat variables'.
8497 (dont_repeat): Clear repeat_arguments.
8498 (repeat_previous, get_saved_command_line, save_command_line):
8499 New functions.
8500 (gdb_init): Initialize saved_command_line
8501 and previous_saved_command_line.
8502 * main.c (captured_main_1): Remove saved_command_line initialization.
8503 * event-top.c (handle_line_of_input): Update to use
8504 the new 'repeat' related functions instead of direct access to
8505 saved_command_line.
8506 * command.h (repeat_previous, get_saved_command_line,
8507 save_command_line): New declarations.
8508 (dont_repeat): Add comment.
8509
8510 2019-05-30 Tom Tromey <tromey@adacore.com>
8511
8512 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8513 Fix comment.
8514 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8515
8516 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8517
8518 PR cli/24587
8519 * completer.c (complete): Initialize variable word.
8520
8521 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8522
8523 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8524 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8525 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8526 'body' is NULL to the outter 'if', protecting the '!is_define'
8527 situation as well.
8528
8529 2019-05-29 Tom Tromey <tromey@adacore.com>
8530
8531 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8532 (dwarf_unknown): New function.
8533 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8534 (dwarf_type_encoding_name): Use dwarf_unknown.
8535
8536 2019-05-29 Tom Tromey <tromey@adacore.com>
8537
8538 PR c++/20020:
8539 * cp-valprint.c (cp_print_value_fields): Call
8540 cp_print_static_field inside "try".
8541
8542 2019-05-29 Tom Tromey <tromey@adacore.com>
8543
8544 * inflow.c (struct terminal_info): Add default operator=.
8545 * configure: Rebuild.
8546 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8547 -Wdeprecated-copy-dtor, -Wredundant-move.
8548
8549 2019-05-29 Tom Tromey <tromey@adacore.com>
8550
8551 * NEWS: Add entry.
8552 * infcmd.c (print_return_value_1): Handle finish_print
8553 option.
8554 (show_print_finish): New function.
8555 (_initialize_infcmd): Add "set/show print finish" commands.
8556 * valprint.c (user_print_options): Initialize new member.
8557 * valprint.h (struct value_print_options) <finish_print>: New
8558 member.
8559
8560 2019-05-28 Tom Tromey <tromey@adacore.com>
8561
8562 * ada-lang.c (ada_remove_Xbn_suffix)
8563 (find_old_style_renaming_symbol)
8564 (parse_old_style_renaming): Remove.
8565 (ada_find_renaming_symbol): Don't call
8566 find_old_style_renaming_symbol.
8567 (ada_is_renaming_symbol): Rename from
8568 ada_find_renaming_symbol. Remove "block" parameter. Return
8569 bool. Now static.
8570 (ada_read_var_value): Update and simplify.
8571 * ada-exp.y (write_var_or_type): Remove old code.
8572
8573 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8574
8575 PR gdb/25010
8576 * event-top.c: Remove include comment.
8577 * inflow.c (class scoped_ignore_sigttou): Move from here...
8578 * inflow.h (class scoped_ignore_sigttou): ...to here.
8579 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8580 * top.c: Remove include comment.
8581
8582 2019-05-27 Tom Tromey <tom@tromey.com>
8583
8584 * NEWS: Fix typo.
8585
8586 2019-05-22 Tom Tromey <tromey@adacore.com>
8587
8588 * target.c (target_follow_exec): Constify parameter.
8589 * target-delegates.c: Rebuild.
8590 * remote.c (remote_target::follow_exec): Constify parameter.
8591 * infrun.c (follow_exec): Constify parameter.
8592 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8593 (target_follow_exec): Likewise.
8594
8595 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8596
8597 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8598 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8599
8600 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8601
8602 * NEWS: Add debugredirect and testsuite sections.
8603
8604 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8605
8606 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8607 target descriptions using exclusively floating point register name
8608 aliases.
8609
8610 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8611
8612 PR gdb/18644:
8613 * f-lang.c (build_fortran_types): Handle the case where
8614 gdbarch_floatformat_for_type returns a nullptr.
8615
8616 2019-05-21 Tom de Vries <tdevries@suse.de>
8617
8618 PR cli/24587
8619 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8620
8621 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 PR gdb/18644:
8624 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8625 16-byte floats.
8626 * i386-tdep.c (i386_floatformat_for_type): Use
8627 floatformats_ia64_quad for the 16-byte floating point component
8628 within a fortran 32-byte complex number.
8629
8630 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8631
8632 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8633 delete default constructor.
8634 (find_partial_die): Update to return const struct.
8635 (partial_die_parent_scope): Move variable declaration into scope
8636 of its use and change its type to auto.
8637 (guess_partial_die_structure_name): Likewise.
8638 (partial_die_info::fixup): Likewise.
8639
8640 2019-05-17 Tom Tromey <tromey@adacore.com>
8641
8642 * source.c (find_and_open_source): Remove cast.
8643
8644 2019-05-17 Tom Tromey <tromey@adacore.com>
8645
8646 * annotate.c (annotate_source): Make "filename" const.
8647 * annotate.h (annotate_source): Use const.
8648
8649 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8650
8651 * disasm.c (set_disassembler_options): Send errors to stderr.
8652
8653 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8654
8655 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8656 (cli_interp_base::set_logging): Check debug_redirect.
8657 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8658 * cli/cli-logging.c (debug_redirect): Add static variable.
8659 (pop_output_files): Add default param.
8660 (handle_redirections): Print debug setting.
8661 (show_logging_command): Likewise.
8662 (_initialize_cli_logging): Add debugredirect command.
8663 * interps.c (current_interp_set_logging): Add debug_redirect
8664 parameter.
8665 * interps.h (set_logging): Add debug_redirect parameter.
8666 (current_interp_set_logging): Likewise.
8667 * mi/mi-common.h: Likewise.
8668 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8669
8670 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8671 Tom Tromey <tromey@adacore.com>
8672
8673 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8674 directly.
8675 * cli/cli-interp.h (make_logging_output): Remove declaration.
8676 * cli/cli-logging.c (make_logging_output): Remove function.
8677 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8678 directly.
8679 * ui-file.c (tee_file::tee_file): Remove bools.
8680 (tee_file::~tee_file): Remove deletes.
8681 * ui-file.h (tee_file): Remove bools.
8682
8683 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8684
8685 * mi/mi-cmds.h (mi_cmd_complete): New function.
8686 * mi/mi-main.c (mi_cmd_complete): Likewise.
8687 * mi/mi-cmds.c: Define new MI command -complete.
8688 * NEWS: Mention new -complete command.
8689
8690 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8691
8692 * completer.h (complete): New function.
8693 * completer.c (complete): Likewise.
8694 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8695 function defined in completer.h.
8696
8697 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8698
8699 * MAINTAINERS (Write After Approval): Add myself.
8700
8701 2019-05-17 Tom de Vries <tdevries@suse.de>
8702
8703 PR gdb/24094
8704 * dwarf2read.c (struct cu_partial_die_info): New struct.
8705 (find_partial_die): Return cu_partial_die_info.
8706 (partial_die_parent_scope, guess_partial_die_structure_name)
8707 (partial_die_info::fixup): Handle new return type of find_partial_die.
8708
8709 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8710
8711 PR breakpoints/24541
8712 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8713 "std::string", simplifying the algorithm.
8714
8715 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8716
8717 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8718 (stap_static_probe_ops::get_probes): Likewise.
8719
8720 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8721
8722 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8723 '-')" and "else if".
8724 (stap_parse_single_operand): Join checks for
8725 "gdbarch_stap_parse_special_token_p" and
8726 "gdbarch_stap_parse_special_token" in the same "if" statement.
8727 Invert check when verifying for operation on register
8728 displacement.
8729
8730 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8731
8732 * stap-probe.c (stap_get_opcode): Update comment.
8733 (stap_get_expected_argument_type): Likewise.
8734 (handle_stap_probe): Likewise.
8735
8736 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8737
8738 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8739 return type to 'bool'. Adjust comment. Use 'bool' when
8740 appropriate.
8741 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8742 * stap-probe.c (stap_parse_argument_1): Likewise.
8743 (stap_is_operator): Likewise.
8744 (stap_is_generic_prefix): Likewise.
8745 (stap_is_register_prefix): Likewise.
8746 (stap_is_register_indirection_prefix): Likewise.
8747 (stap_is_integer_prefix): Likewise.
8748 (stap_generic_check_suffix): Likewise.
8749 (stap_check_integer_suffix): Likewise.
8750 (stap_check_register_suffix): Likewise.
8751 (stap_check_register_indirection_suffix): Likewise.
8752 (stap_parse_register_operand): Likewise.
8753 (stap_parse_single_operand): Likewise.
8754 (stap_parse_argument_1): Likewise.
8755 (stap_probe::get_argument_count): Likewise.
8756 (stap_is_operator): Likewise.
8757
8758 2019-05-16 Tom Tromey <tromey@adacore.com>
8759
8760 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8761 keyword to foreach.
8762
8763 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * linux-thread-db.c (try_thread_db_load_1): Change return type
8766 to bool.
8767 (try_thread_db_load): Likewise.
8768 (try_thread_db_load_from_pdir_1): Likewise.
8769 (try_thread_db_load_from_pdir): Likewise.
8770 (try_thread_db_load_from_sdir): Likewise.
8771 (try_thread_db_load_from_dir): Likewise.
8772 (thread_db_load_search): Likewise.
8773 (has_libpthread): Likewise.
8774 (thread_db_load): Likewise.
8775
8776 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8777
8778 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8779 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8780 NULL, and complain/return if that's the case.
8781
8782 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8783
8784 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8785 (advance, posn, abstract_read_memory): New functions.
8786 [struct mem_read_abstraction]: New struct.
8787 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8788
8789 2019-05-14 Tom Tromey <tromey@adacore.com>
8790
8791 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8792 value is not lval_memory.
8793
8794 2019-05-14 Tom Tromey <tromey@adacore.com>
8795
8796 * solib.c (info_sharedlibrary_command): Style the file name.
8797
8798 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8799
8800 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8801 (aarch64_vnv_type): Likewise.
8802 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8803 * common/tdesc.c: Likewise.
8804 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8805 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8806 * features/aarch64-fpu.xml: Add ieee half view.
8807 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8808 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8809 * gdbtypes.h (struct builtin_type): Likewise.
8810 (struct objfile_type): Likewise.
8811
8812 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8813
8814 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8815 typo.
8816 * location.h (string_to_event_location): Likewise.
8817
8818 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8819
8820 GDB 8.3 released.
8821
8822 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8825 New variable declaration.
8826 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8827 New variable.
8828 (print_one_breakpoint): Use ui_out::test_flags and new global
8829 variable to compute use_fixed_output.
8830 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8831 Remove.
8832 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8833 (mi_multi_location_breakpoint_output_fixed): Remove.
8834 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8835 new variable.
8836 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8837 fix_multi_location_breakpoint_output flag if version >= 3.
8838 * ui-out.h (enum ui_out_flag)
8839 <fix_multi_location_breakpoint_output>: New enumerator.
8840
8841 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8842
8843 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8844
8845 2019-05-10 Tom Tromey <tromey@adacore.com>
8846
8847 * ada-lang.c (catch_ada_completer): New function.
8848 (_initialize_ada_language): Use it.
8849
8850 2019-05-10 Tom Tromey <tromey@adacore.com>
8851
8852 * thread.c (print_thread_info): Make "requested_threads" const.
8853 * gdbthread.h (print_thread_info): Make "requested_threads"
8854 const.
8855 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8856 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8857
8858 2019-05-08 Tom Tromey <tom@tromey.com>
8859
8860 * gdbtypes.c (objfile_type_data): Change type.
8861 (objfile_type, _initialize_gdbtypes): Update.
8862
8863 2019-05-08 Tom Tromey <tom@tromey.com>
8864
8865 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8866 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8867 (_initialize_dwarf2_frame): Update.
8868
8869 2019-05-08 Tom Tromey <tom@tromey.com>
8870
8871 * objc-lang.c (objc_objfile_data): Change type.
8872 (find_methods): Update.
8873 (_initialize_objc_lang): Remove.
8874
8875 2019-05-08 Tom Tromey <tom@tromey.com>
8876
8877 * stabsread.c (rs6000_builtin_type_data): Change type.
8878 (rs6000_builtin_type, _initialize_stabsread): Update.
8879
8880 2019-05-08 Tom Tromey <tom@tromey.com>
8881
8882 * mips-tdep.c (mips_pdr_data): Remove.
8883 (_initialize_mips_tdep): Update.
8884
8885 2019-05-08 Tom Tromey <tom@tromey.com>
8886
8887 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8888 (hppa_init_objfile_priv_data, read_unwind_info)
8889 (find_unwind_entry, _initialize_hppa_tdep): Update.
8890
8891 2019-05-08 Tom Tromey <tom@tromey.com>
8892
8893 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8894 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8895 on obstack.
8896 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8897
8898 2019-05-08 Tom Tromey <tom@tromey.com>
8899
8900 * mdebugread.c (basic_type_data): Change type.
8901 (basic_type, _initialize_mdebugread): Update.
8902
8903 2019-05-08 Tom Tromey <tom@tromey.com>
8904
8905 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8906
8907 2019-05-08 Tom Tromey <tom@tromey.com>
8908
8909 * nto-tdep.c (nto_inferior_data_reg): Change type.
8910 (nto_inferior_data): Update.
8911 (nto_inferior_data_cleanup, nto_new_inferior_data)
8912 (_initialize_nto_tdep): Remove.
8913 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8914
8915 2019-05-08 Tom Tromey <tom@tromey.com>
8916
8917 * ada-lang.c (struct ada_inferior_data): Add initializers.
8918 (ada_inferior_data): Change type.
8919 (ada_inferior_data_cleanup): Remove.
8920 (get_ada_inferior_data, ada_inferior_exit)
8921 (struct ada_pspace_data): Add initializers, destructor.
8922 (ada_pspace_data_handle): Change type.
8923 (get_ada_pspace_data): Update.
8924 (ada_pspace_data_cleanup): Remove.
8925
8926 2019-05-08 Tom Tromey <tom@tromey.com>
8927
8928 * coffread.c (struct coff_symfile_info): Add initializers.
8929 (coff_objfile_data_key): Move lower. Change type.
8930 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8931 Update.
8932 (coff_free_info): Remove.
8933
8934 2019-05-08 Tom Tromey <tom@tromey.com>
8935
8936 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8937 (fbsd_pspace_data_handle): Move lower. Change type.
8938 (get_fbsd_pspace_data): Update.
8939 (fbsd_pspace_data_cleanup): Remove.
8940 (_initialize_fbsd_tdep): Update.
8941
8942 2019-05-08 Tom Tromey <tom@tromey.com>
8943
8944 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8945 (get_ada_tasks_pspace_data): Update.
8946 (ada_tasks_pspace_data_cleanup): Remove.
8947 (_initialize_tasks): Update.
8948 (ada_tasks_inferior_data_handle): Change type.
8949 (get_ada_tasks_inferior_data): Update.
8950 (ada_tasks_inferior_data_cleanup): Remove.
8951 (struct ada_tasks_pspace_data): Add initializers.
8952
8953 2019-05-08 Tom Tromey <tom@tromey.com>
8954
8955 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8956 * symfile-debug.c (debug_sym_get_probes): Change type.
8957 * stap-probe.c (handle_stap_probe):
8958 (stap_static_probe_ops::get_probes): Change type.
8959 * probe.h (class static_probe_ops) <get_probes>: Change type.
8960 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8961 (parse_probes_in_pspace): Update.
8962 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8963 Update.
8964 (any_static_probe_ops::get_probes): Change type.
8965 * elfread.c (elfread_data): New typedef.
8966 (probe_key): Change type.
8967 (elf_get_probes): Likewise. Update.
8968 (probe_key_free): Remove.
8969 (_initialize_elfread): Update.
8970 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8971 Change type.
8972 (dtrace_process_dof_probe, dtrace_process_dof)
8973 (dtrace_static_probe_ops::get_probe): Change type.
8974
8975 2019-05-08 Tom Tromey <tom@tromey.com>
8976
8977 * xcoffread.c (struct xcoff_symfile_info): Rename from
8978 coff_symfile_info. Add initializers.
8979 (xcoff_objfile_data_key): Move lower. Change type.
8980 (XCOFF_DATA): Rewrite.
8981 (xcoff_free_info): Remove.
8982 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8983 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8984 (xcoff_initial_scan): Update.
8985
8986 2019-05-08 Tom Tromey <tom@tromey.com>
8987
8988 * solib-svr4.c (struct svr4_info): Add initializers and
8989 destructor.
8990 <probes_table>: Now an htab_up.
8991 (solib_svr4_pspace_data): Change type.
8992 (free_probes_table): Simplify.
8993 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8994 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8995 (probes_table_remove_objfile_probes, register_solib_event_probe)
8996 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8997 (_initialize_svr4_solib): Update.
8998
8999 2019-05-08 Tom Tromey <tom@tromey.com>
9000
9001 * remote.c (remote_pspace_data): Change type.
9002 (remote_pspace_data_cleanup): Remove.
9003 (get_remote_exec_file, set_pspace_remote_exec_file)
9004 (_initialize_remote): Update.
9005
9006 2019-05-08 Tom Tromey <tom@tromey.com>
9007
9008 * breakpoint.c (breakpoint_objfile_key): Change type.
9009 (get_breakpoint_objfile_data): Update.
9010 (free_breakpoint_objfile_data): Remove.
9011 (_initialize_breakpoint): Update.
9012
9013 2019-05-08 Tom Tromey <tom@tromey.com>
9014
9015 * linux-tdep.c (struct linux_info): Add initializers.
9016 (linux_inferior_data): Move. Change type.
9017 (invalidate_linux_cache_inf): Update.
9018 (linux_inferior_data_cleanup): Remove.
9019 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9020
9021 2019-05-08 Tom Tromey <tom@tromey.com>
9022
9023 * auxv.c (auxv_inferior_data): Move. Change type.
9024 (auxv_inferior_data_cleanup): Remove.
9025 (invalidate_auxv_cache_inf): Rewrite.
9026 (get_auxv_inferior_data, _initialize_auxv): Update.
9027
9028 2019-05-08 Tom Tromey <tom@tromey.com>
9029
9030 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9031 (symfile_debug_objfile_data_key): Change type.
9032 (symfile_debug_installed, debug_qf_has_symbols)
9033 (debug_qf_find_last_source_symtab)
9034 (debug_qf_forget_cached_source_info)
9035 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9036 (debug_qf_print_stats, debug_qf_dump)
9037 (debug_qf_expand_symtabs_for_function)
9038 (debug_qf_expand_all_symtabs)
9039 (debug_qf_expand_symtabs_with_fullname)
9040 (debug_qf_map_matching_symbols)
9041 (debug_qf_expand_symtabs_matching)
9042 (debug_qf_find_pc_sect_compunit_symtab)
9043 (debug_qf_map_symbol_filenames)
9044 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9045 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9046 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9047 (debug_sym_read_linetable, debug_sym_relocate): Update.
9048 (symfile_debug_free_objfile): Remove.
9049 (install_symfile_debug_logging, _initialize_symfile_debug):
9050 Update.
9051
9052 2019-05-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9055 allocate_on_obstack.
9056 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9057 (get_dwarf2_per_objfile): Update.
9058 (set_dwarf2_per_objfile): Remove.
9059 (dwarf2_has_info, dwarf2_get_section_info): Update.
9060 (dwarf2_free_objfile): Remove.
9061 (_initialize_dwarf2_read): Update.
9062
9063 2019-05-08 Tom Tromey <tom@tromey.com>
9064
9065 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9066 initializers.
9067 <unsupported_script_warning_printed,
9068 script_not_found_warning_printed>: Now bool.
9069 (auto_load_pspace_data): Change type.
9070 (~auto_load_pspace_info): Rename from
9071 auto_load_pspace_data_cleanup.
9072 (get_auto_load_pspace_data, init_loaded_scripts_info)
9073 (clear_section_scripts, maybe_print_unsupported_script_warning)
9074 (maybe_print_script_not_found_warning, _initialize_auto_load):
9075 Update.
9076
9077 2019-05-08 Tom Tromey <tom@tromey.com>
9078
9079 * objfiles.c (objfile_pspace_info): Add destructor and
9080 initializers.
9081 (objfiles_pspace_data): Change type.
9082 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9083 (get_objfile_pspace_data): Update.
9084 (objfiles_bfd_data): Change type.
9085 (get_objfile_bfd_data): Update.
9086 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9087
9088 2019-05-08 Tom Tromey <tom@tromey.com>
9089
9090 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9091 Change type.
9092 (get_catch_syscall_inferior_data): Update.
9093 (catch_syscall_inferior_data_cleanup): Remove.
9094 (_initialize_break_catch_syscall): Update.
9095
9096 2019-05-08 Tom Tromey <tom@tromey.com>
9097
9098 * inflow.c (struct terminal_info): Add destructor and
9099 initializers.
9100 (inflow_inferior_data): Change type.
9101 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9102 (get_inflow_inferior_data, inflow_inferior_exit)
9103 (swap_terminal_info, _initialize_inflow): Update.
9104
9105 2019-05-08 Tom Tromey <tom@tromey.com>
9106
9107 * target-dcache.c (target_dcache_cleanup): Remove.
9108 (target_dcache_aspace_key): Change type.
9109 (target_dcache_init_p, target_dcache_invalidate)
9110 (target_dcache_get, target_dcache_get_or_init)
9111 (_initialize_target_dcache): Update.
9112 * dcache.h (struct dcache_deleter): New.
9113
9114 2019-05-08 Tom Tromey <tom@tromey.com>
9115
9116 * symtab.c (struct symbol_cache): Add destructor and
9117 initializers.
9118 (symbol_cache_key): Move. Change type.
9119 (make_symbol_cache, free_symbol_cache): Remove.
9120 (get_symbol_cache): Update.
9121 (symbol_cache_cleanup): Remove.
9122 (ALL_PSPACES, symbol_cache_flush)
9123 (maintenance_print_symbol_cache)
9124 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9125 Update.
9126
9127 2019-05-08 Tom Tromey <tom@tromey.com>
9128
9129 * symtab.c (struct main_info): Add destructor and initializers.
9130 (main_progspace_key): Move. Change type.
9131 (get_main_info): Update.
9132 (main_info_cleanup): Remove.
9133 (_initialize_symtab): Update.
9134
9135 2019-05-08 Tom Tromey <tom@tromey.com>
9136
9137 * registry.h (DECLARE_REGISTRY): Define the _key class.
9138
9139 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * NEWS: Merge two 'New commands' sections.
9142
9143 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9144
9145 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9146 parameter and use Ada language definition instead.
9147 (ada_val_print_ptr): Remove unused language parameter.
9148 (ada_val_print_num): Remove language parameter and use Ada language
9149 definition instead.
9150 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9151 parameter.
9152 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9153 parameter and use Ada language definition instead.
9154 (ada_val_print_1): Update all ada_val_print_xxx calls.
9155 Remove language parameter.
9156 (ada_val_print): Update ada_val_print_1 call.
9157
9158 2019-05-08 Tom Tromey <tromey@adacore.com>
9159
9160 * remote.c (remote_hw_watchpoint_limit)
9161 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9162 Now static.
9163
9164 2019-05-08 Tom Tromey <tromey@adacore.com>
9165
9166 * maint.c (_initialize_maint_cmds): Move initialization code to
9167 remote.c.
9168 (watchdog, show_watchdog): Move to remote.c.
9169 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9170 "watchdog" static.
9171 (_initialize_remote): Move initialization code from maint.c.
9172 * defs.h (watchdog): Don't declare.
9173
9174 2019-05-08 Tom Tromey <tromey@adacore.com>
9175
9176 * tui/tui-interp.c: Include main.h.
9177 * interps.c: Include main.h.
9178 * main.h (interpreter_p): Declare.
9179 * defs.h (interpreter_p): Don't declare.
9180
9181 2019-05-08 Tom Tromey <tromey@adacore.com>
9182
9183 * dwarf2loc.c: Include dwarf2read.h.
9184 * defs.h (read_unsigned_leb128): Don't declare.
9185 * dwarf2read.h (read_unsigned_leb128): Declare.
9186
9187 2019-05-08 Tom Tromey <tromey@adacore.com>
9188
9189 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9190 method.
9191
9192 2019-05-08 Tom Tromey <tromey@adacore.com>
9193
9194 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9195 when no wrap column is set.
9196
9197 2019-05-08 Tom Tromey <tromey@adacore.com>
9198
9199 * c-lang.c (c_get_string): Handle non-C-style arrays.
9200
9201 2019-05-08 Tom Tromey <tromey@adacore.com>
9202
9203 * typeprint.c (print_offset_data::update): Print the bit offset,
9204 not the number of bits remaining.
9205
9206 2019-05-08 Tom Tromey <tromey@adacore.com>
9207
9208 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9209 padding at end of comment.
9210
9211 2019-05-08 Tom Tromey <tromey@adacore.com>
9212
9213 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9214 Compare main types.
9215
9216 2019-05-06 Tom Tromey <tom@tromey.com>
9217
9218 * common/scoped_mmap.c: Include common-defs.h.
9219 * common/scoped_mmap.h: Don't include config.h.
9220
9221 2019-05-04 Tom Tromey <tom@tromey.com>
9222
9223 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9224 (struct aarch64_call_info): Add initializers.
9225 <si>: Now a std::vector.
9226 (pass_on_stack, aarch64_push_dummy_call): Update.
9227
9228 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9229 Tom Tromey <tom@tromey.com>
9230
9231 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9232 (ppc_threads): Now a std::vector. Now static.
9233 (hwdebug_find_thread_points_by_tid)
9234 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9235 Update.
9236
9237 2019-05-04 Tom Tromey <tom@tromey.com>
9238
9239 * arc-tdep.c (arc_tdesc_init): Return bool.
9240
9241 2019-05-04 Tom Tromey <tom@tromey.com>
9242
9243 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9244 Use gdb_assert_not_reached.
9245
9246 2019-05-04 Tom Tromey <tom@tromey.com>
9247
9248 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9249 "false".
9250
9251 2019-05-04 Tom Tromey <tom@tromey.com>
9252
9253 * arc-tdep.c (arc_tdesc_init): Use bool.
9254
9255 2019-05-04 Tom Tromey <tom@tromey.com>
9256
9257 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9258
9259 2019-05-04 Tom Tromey <tom@tromey.com>
9260
9261 * cli/cli-cmds.c (valid_command_p): Return bool.
9262
9263 2019-05-04 Tom Tromey <tom@tromey.com>
9264
9265 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9266 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9267
9268 2019-05-04 Raul Tambre <raul@tambre.ee>
9269
9270 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9271 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9272 operator for comparison.
9273
9274 2019-05-04 Tom Tromey <tom@tromey.com>
9275
9276 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9277 (lookup_partial_symbol, print_partial_symbols)
9278 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9279 (psymbol_compare): Update.
9280 (add_psymbol_to_bcache): Clear the entire psymbol.
9281 (maintenance_check_psymtabs): Update.
9282 * psympriv.h (struct partial_symbol): Don't derive from
9283 general_symbol_info.
9284 <obj_section, unrelocated_address, address,
9285 set_unrelocated_address>: Update.
9286 <ginfo>: New member.
9287 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9288 (debug_names::write_psymbols): Update.
9289
9290 2019-05-04 Tom de Vries <tdevries@suse.de>
9291
9292 * contrib/cc-with-tweaks.sh: Support -n arg.
9293
9294 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9295
9296 * corelow.c (core_target::detach): Ensure frame cache and
9297 register caches are cleared.
9298 inferior.c (exit_inferior_1): Likewise.
9299
9300 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9301 Tom Tromey <tom@tromey.com>
9302
9303 * dictionary.c (collate_pending_symbols_by_language): Remove
9304 "struct" from foreach.
9305 * symtab.c (lookup_global_symbol_from_objfile)
9306 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9307 foreach.
9308 * ser-tcp.c (net_open): Remove "struct" from foreach.
9309 * objfiles.c (objfile_relocate, objfile_rebase)
9310 (objfile_has_symbols): Remove "struct" from foreach.
9311 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9312 from foreach.
9313 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9314 foreach.
9315 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9316 "struct" from foreach.
9317 * ada-lang.c (create_excep_cond_exprs)
9318 (ada_exception_catchpoint_cond_string): Remove "struct" from
9319 foreach.
9320
9321 2019-05-03 Tom Tromey <tromey@adacore.com>
9322
9323 * ada-exp.y (convert_char_literal): Check suffix of each
9324 enumerator.
9325
9326 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9327
9328 PR ada/21406:
9329 * ada-exp.y (yywrap): Don't define.
9330 * ada-lex.l (%option): Add noyywrap
9331 (yywrap): Remove.
9332
9333 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9334
9335 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9336 _WIN32_WINNT to the XP level, unless already defined to a higher
9337 level.
9338
9339 * unittests/parse-connection-spec-selftests.c:
9340 * ser-tcp.c:
9341 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9342 override.
9343
9344 * symfile.c (find_separate_debug_file): Remove colon from the
9345 drive spec of DOS/Windows file names of the target, so that the
9346 file name produced from DEBUGDIR and the target's directory will
9347 be valid on DOS/Windows systems.
9348
9349 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9350
9351 * rust-lang.c (val_print_struct): Handle printing structures
9352 containing strings.
9353
9354 2019-05-02 Tom Tromey <tromey@adacore.com>
9355
9356 * valarith.c (_initialize_valarith): Remove.
9357
9358 2019-05-01 Tom Tromey <tromey@adacore.com>
9359
9360 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9361 bitfields.
9362
9363 2019-05-01 Tom Tromey <tromey@adacore.com>
9364
9365 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9366 for big-endian copies.
9367
9368 2019-04-30 Ali Tamur <tamur@google.com>
9369 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9370 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9371 (read_3_bytes): New function.
9372
9373 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9374
9375 * windows-nat.c (main_thread_id): Delete.
9376 (handle_output_debug_string): Replace main_thread_id by
9377 current_event.dwThreadId.
9378 (fake_create_process): Likewise.
9379 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9380 Do not set main_thread_id.
9381 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9382 current_event.dwThreadId.
9383 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9384
9385 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9386
9387 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9388 Use current_event.dwThreadId instead of main_thread_id.
9389
9390 2019-04-30 Tom Tromey <tromey@adacore.com>
9391
9392 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9393 (create_excep_cond_exprs): Iterate over program spaces.
9394 (ada_exception_catchpoint_cond_string): Examine all minimal
9395 symbols for exception types.
9396
9397 2019-04-30 Tom Tromey <tromey@adacore.com>
9398
9399 PR c++/24470:
9400 * dwarf2read.c (process_structure_scope): Handle case where type
9401 has template parameters but no symbol was created.
9402
9403 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9404 Chris January <chris.january@arm.com>
9405
9406 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9407 qualifier.
9408 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9409
9410 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9411
9412 * f-typeprint.c (f_print_type): Update rules for printing
9413 whitespace.
9414 (f_type_print_varspec_suffix): Likewise.
9415
9416 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9417 Chris January <chris.january@arm.com>
9418
9419 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9420 function arguments.
9421
9422 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9423
9424 * f-lang.c (build_fortran_types): Change name of void type to
9425 lower case.
9426 * f-typeprint.c (f_type_print_base): Print the name of the void
9427 type, rather than a fixed string.
9428 * f-valprint.c (f_decorations): Use lower case void string.
9429
9430 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9431 Chris January <chris.january@arm.com>
9432
9433 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9434 types for Fortran.
9435
9436 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9437 Chris January <chris.january@arm.com>
9438 David Lecomber <david.lecomber@arm.com>
9439
9440 * f-exp.y (BINOP_INTRINSIC): New token.
9441 (exp): New parser rule handling BINOP_INTRINSIC.
9442 (f77_keywords): Add new builtin procedures.
9443 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9444 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9445 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9446 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9447 (print_unop_subexp_f): New function.
9448 (print_binop_subexp_f): New function.
9449 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9450 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9451 (dump_subexp_body_f): Likewise.
9452 (operator_check_f): Likewise.
9453 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9454 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9455
9456 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9457
9458 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9459 UNOP_KIND.
9460 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9461 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9462 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9463 (operator_length_f): New fuction.
9464 (print_subexp_f): New function.
9465 (op_name_f): New function.
9466 (dump_subexp_body_f): New function.
9467 (operator_check_f): New function.
9468 (exp_descriptor_f): Replace standard expression handling functions
9469 with new functions.
9470 * gdb/fortran-operator.def: New file.
9471 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9472 * gdb/std-operator.def: Remove UNOP_KIND.
9473
9474 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 * std-operator.def: Remove unbalanced, stray double quote
9477 character.
9478
9479 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9480 Chris January <chris.january@arm.com>
9481 Daniel Everett <daniel.everett@arm.com>
9482 Nick Forrington <nick.forrington@arm.com>
9483 Richard Bunt <richard.bunt@arm.com>
9484
9485 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9486 of depth when printing anonymous structs or unions.
9487 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9488 Don't print either the top-level value, or the children if the
9489 max-depth is exceeded.
9490 (ppscm_print_children): When printing the key of a map, allow one
9491 extra level of depth.
9492 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9493 print either the top-level value, or the children if the max-depth
9494 is exceeded.
9495 (print_children): When printing the key of a map, allow one extra
9496 level of depth.
9497 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9498 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9499 (user_print_options): Initialise max_depth field.
9500 (val_print_scalar_or_string_type_p): New function.
9501 (val_print): Check to see if the max depth has been reached.
9502 (val_print_check_max_depth): Define new function.
9503 (show_print_max_depth): New function.
9504 (_initialize_valprint): Add 'print max-depth' option.
9505 * valprint.h (struct value_print_options) <max_depth>: New field.
9506 (val_print_check_max_depth): Declare new function.
9507 * NEWS: Document new feature.
9508
9509 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9510
9511 * ada-lang.c (ada_language_defn): Initialise new field.
9512 * c-lang.c (c_is_string_type_p): New function.
9513 (c_language_defn): Initialise new field.
9514 (cplus_language_defn): Initialise new field.
9515 (asm_language_defn): Initialise new field.
9516 (minimal_language_defn): Initialise new field.
9517 * c-lang.h (c_is_string_type_p): Declare new function.
9518 * d-lang.c (d_language_defn): Initialise new field.
9519 * f-lang.c (f_is_string_type_p): New function.
9520 (f_language_defn): Initialise new field.
9521 * go-lang.c (go_is_string_type_p): New function.
9522 (go_language_defn): Initialise new field.
9523 * language.c (default_is_string_type_p): New function.
9524 (unknown_language_defn): Initialise new field.
9525 (auto_language_defn): Initialise new field.
9526 * language.h (struct language_defn) <la_is_string_type_p>: New
9527 member variable.
9528 (default_is_string_type_p): Declare new function.
9529 * m2-lang.c (m2_language_defn): Initialise new field.
9530 * objc-lang.c (objc_language_defn): Initialise new field.
9531 * opencl-lang.c (opencl_language_defn): Initialise new field.
9532 * p-lang.c (pascal_is_string_type_p): New function.
9533 (pascal_language_defn): Initialise new field.
9534 * rust-lang.c (rust_is_string_type_p): New function.
9535 (rust_language_defn): Initialise new field.
9536
9537 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9538
9539 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9540 New field.
9541 * ada-lang.c (ada_language_defn): Initialise new field.
9542 * c-lang.c (c_language_defn): Likewise.
9543 (cplus_language_defn): Likewise.
9544 (asm_language_defn): Likewise.
9545 (minimal_language_defn): Likewise.
9546 * d-lang.c (d_language_defn): Likewise.
9547 * f-lang.c (f_language_defn): Likewise.
9548 * go-lang.c (go_language_defn): Likewise.
9549 * language.c (unknown_language_defn): Likewise.
9550 (auto_language_defn): Likewise.
9551 * m2-lang.c (m2_language_defn): Likewise.
9552 * objc-lang.c (objc_language_defn): Likewise.
9553 * opencl-lang.c (opencl_language_defn): Likewise.
9554 * p-lang.c (pascal_language_defn): Likewise.
9555 * rust-lang.c (rust_language_defn): Likewise.
9556
9557 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9558
9559 * ada-lang.c (ada_is_character_type): Change return type to bool.
9560 (ada_is_string_type): Likewise.
9561 * ada-lang.h (ada_is_character_type): Update declaration
9562 (ada_is_string_type): Likewise.
9563
9564 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9565
9566 Support style in 'frame|thread apply'
9567
9568 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9569 * record.c (record_start, record_stop): Update callers of
9570 execute_command_to_string with false.
9571 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9572 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9573 methods.
9574 (class string_file): New constructor with term_out parameter.
9575 Override methods term_out and can_emit_style_escape. New member
9576 term_out.
9577 (class stdio_file): Override can_emit_style_escape.
9578 (class tee_file): Override term_out and can_emit_style_escape.
9579 * utils.h (can_emit_style_escape): Remove.
9580 * utils.c (can_emit_style_escape): Likewise.
9581 Update all callers of can_emit_style_escape (SOMESTREAM) to
9582 SOMESTREAM->can_emit_style_escape.
9583 * source-cache.c (source_cache::get_source_lines): Likewise.
9584 * stack.c (frame_apply_command_count): Call execute_command_to_string
9585 passing the term_out characteristic of the current gdb_stdout.
9586 * thread.c (thr_try_catch_cmd): Likewise.
9587 * top.c (execute_command_to_string): pass term_out parameter
9588 to construct the string_file for the command output.
9589 * ui-file.c (term_cli_styling): New function (most code moved
9590 from utils.c can_emit_style_escape).
9591 (string_file::string_file, string_file::can_emit_style_escape,
9592 stdio_file::can_emit_style_escape, tee_file::term_out,
9593 tee_file::can_emit_style_escape): New functions.
9594
9595 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9596
9597 * NEWS: Mention the new set|show may-call-functions.
9598 * infcall.c (may_call_functions_p): New variable.
9599 (show_may_call_functions_p): New function.
9600 (call_function_by_hand_dummy): Throws an error if not
9601 may-call-functions.
9602 (_initialize_infcall): Call add_setshow_boolean_cmd for
9603 may-call-functions.
9604
9605 2019-04-25 Keith Seitz <keiths@redhat.com>
9606
9607 PR c++/24367
9608 * cp-support.c (inspect_type): Don't attempt substitutions
9609 of symbol with the same name.
9610
9611 2019-04-25 Tom Tromey <tromey@adacore.com>
9612
9613 PR gdb/24475:
9614 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9615 static.
9616
9617 2019-04-25 Tom Tromey <tromey@adacore.com>
9618
9619 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9620 rvalue reference.
9621 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9622 (gdb_xml_parser::parse): Use std::move.
9623 * python/python-internal.h (gdbpy_convert_exception): Take a const
9624 reference.
9625 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9626 std::move.
9627 * python/py-utils.c (gdbpy_convert_exception): Take a const
9628 reference.
9629 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9630 Use std::move.
9631 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9632 Use std::move.
9633 * mi/mi-main.c (mi_print_exception): Take a const reference.
9634 * main.c (handle_command_errors): Take a const reference.
9635 * linespec.c (parse_linespec): Use std::move.
9636 * infcall.c (run_inferior_call): Use std::move.
9637 (call_function_by_hand_dummy): Use std::move.
9638 * exec.c (try_open_exec_file): Use std::move.
9639 * exceptions.h (exception_print, exception_fprintf)
9640 (exception_print_same): Update.
9641 * exceptions.c (print_exception, exception_print)
9642 (exception_fprintf, exception_print_same): Change parameters to
9643 const reference.
9644 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9645 * common/new-op.c: Use std::move.
9646 * common/common-exceptions.h (struct gdb_exception): Add move
9647 constructor.
9648 (struct gdb_exception_error, struct gdb_exception_quit, struct
9649 gdb_quit_bad_alloc): Change constructor to move constructor.
9650 (throw_exception): Change parameter to rvalue reference.
9651 * common/common-exceptions.c (throw_exception): Take rvalue
9652 reference.
9653 * cli/cli-interp.c (safe_execute_command): Use std::move.
9654 * breakpoint.c (insert_bp_location, location_to_sals): Use
9655 std::move.
9656
9657 2019-04-25 Tom Tromey <tromey@adacore.com>
9658
9659 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9660 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9661 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9662 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9663 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9664 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9665 guile/scm-value.c: Use unpack.
9666 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9667 gdbscm_gdb_exception.
9668 (gdbscm_throw_gdb_exception): Likewise.
9669 (struct gdbscm_gdb_exception): New.
9670 (unpack): New function.
9671 (gdbscm_wrap): Use unpack.
9672
9673 2019-04-25 Tom Tromey <tromey@adacore.com>
9674
9675 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9676 (gdb_rl_callback_handler): Use std::move.
9677 * common/common-exceptions.h (struct gdb_exception): Add move
9678 assignment operator.
9679 (throw_exception_sjlj): Change "exception" to const reference.
9680 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9681 (throw_exception_sjlj): Change "exception" to const reference.
9682
9683 2019-04-25 Tom Tromey <tromey@adacore.com>
9684
9685 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9686 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9687 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9688 Update.
9689 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9690 Update.
9691 * mi/mi-interp.c (mi_interp::exec): Update.
9692 * linespec.c (parse_linespec): Update.
9693 * infcall.c (run_inferior_call): Update.
9694 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9695 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9696 (gdbscm_lookup_global_symbol): Update.
9697 * guile/scm-param.c (gdbscm_parameter_value): Update.
9698 * guile/scm-frame.c (gdbscm_frame_read_register)
9699 (gdbscm_frame_read_var): Update.
9700 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9701 * exec.c (try_open_exec_file): Update.
9702 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9703 (gdb_rl_callback_handler): Update.
9704 * common/common-exceptions.h (exception_none): Don't declare.
9705 * common/common-exceptions.c (exception_none): Don't define.
9706 (struct catcher) <exception>: Update.
9707 * cli/cli-interp.c (safe_execute_command): Update.
9708 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9709
9710 2019-04-25 Ali Tamur <tamur@google.com>
9711
9712 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9713 (read_attribute_value): Likewise.
9714 (dwarf2_read_addr_index): Update comment.
9715 (read_str_index): Add DW_FORM_strx.
9716 (dwarf2_string_attr): Likewise.
9717 (dwarf2_const_value_attr): Likewise.
9718 (dump_die_shallow): Likewise.
9719 (dwarf2_fetch_constant_bytes): Likewise.
9720 (skip_form_bytes): Likewise.
9721 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9722
9723 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9724
9725 PR corefiles/11608
9726 PR corefiles/18187
9727 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9728 OFFSET. Verify if current mapping contains an ELF header.
9729 (linux_find_memory_regions_full): Adjust call to
9730 dump_mapping_p.
9731
9732 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9733 Kang Li <kanglictf@gmail.com>
9734
9735 PR gdb/21600
9736
9737 * dwarf2-frame.c (read_initial_length): Be consistent about using
9738 unsigned representation of length.
9739 (decode_frame_entry_1): Likewise. Check for wraparound of
9740 end pointer as well as buffer overflow.
9741
9742 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9743
9744 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9745 "vq".
9746
9747 2019-04-24 Tom Tromey <tromey@adacore.com>
9748
9749 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9750
9751 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9752
9753 * s12z-tdep.c (s12z_unwind_pc): Delete.
9754 (s12z_unwind_sp): Delete.
9755 (s12z_gdbarch_init): Don't register deleted functions with
9756 gdbarch.
9757
9758 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9759
9760 * rl78-tdep.c (rl78_unwind_sp): Delete.
9761 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9762
9763 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9764
9765 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9766 (xstormy16_unwind_pc): Delete.
9767 (xstormy16_dummy_id): Delete.
9768 (xstormy16_gdbarch_init): Don't register deleted functions with
9769 gdbarch.
9770
9771 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * vax-tdep.c (vax_unwind_pc): Delete.
9774 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9775
9776 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9777
9778 * v850-tdep.c (v850_unwind_sp): Delete.
9779 (v850_unwind_pc): Delete.
9780 (v850_dummy_id): Delete.
9781 (v850_gdbarch_init): Don't register deleted functions with
9782 gdbarch.
9783
9784 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9785
9786 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9787 (tilegx_unwind_pc): Delete.
9788 (tilegx_unwind_dummy_id): Delete.
9789 (tilegx_gdbarch_init): Don't register deleted functions with
9790 gdbarch.
9791
9792 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9793
9794 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9795 (tic6x_dummy_id): Delete.
9796 (tic6x_gdbarch_init): Don't register deleted functions with
9797 gdbarch.
9798
9799 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9800
9801 * sparc-tdep.c (sparc_unwind_pc): Delete.
9802 (sparc32_gdbarch_init): Don't register deleted function with
9803 gdbarch.
9804
9805 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9806
9807 * sh-tdep.c (sh_unwind_sp): Delete.
9808 (sh_unwind_pc): Delete.
9809 (sh_dummy_id): Delete.
9810 (sh_gdbarch_init): Don't register deleted functions with
9811 gdbarch.
9812
9813 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9814
9815 * score-tdep.c (score_unwind_sp): Delete.
9816 (score_unwind_pc): Delete.
9817 (score_dummy_id): Delete.
9818 (score_gdbarch_init): Don't register deleted functions with
9819 gdbarch.
9820
9821 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9822
9823 * rx-tdep.c (rx_unwind_pc): Delete.
9824 (rx_unwind_sp): Delete.
9825 (rx_dummy_id): Delete.
9826 (rx_gdbarch_init): Don't register deleted functions with
9827 gdbarch. Update comment.
9828
9829 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9830
9831 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9832 (rs6000_dummy_id): Delete.
9833 (rs6000_gdbarch_init): Don't register deleted functions with
9834 gdbarch.
9835
9836 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9837
9838 * or1k-tdep.c (or1k_dummy_id): Delete.
9839 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9840
9841 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * nios2-tdep.c (nios2_dummy_id): Delete.
9844 (nios2_unwind_sp): Delete.
9845 (nios2_gdbarch_init): Don't register deleted functions with
9846 gdbarch.
9847
9848 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9849
9850 * nds32-tdep.c (nds32_dummy_id): Delete.
9851 (nds32_unwind_pc): Delete.
9852 (nds32_unwind_sp): Delete.
9853 (nds32_gdbarch_init): Don't register deleted functions with
9854 gdbarch.
9855
9856 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9857
9858 * msp430-tdep.c (msp430_unwind_pc): Delete.
9859 (msp430_unwind_sp): Delete.
9860 (msp430_dummy_id): Delete.
9861 (msp430_gdbarch_init): Don't register deleted functions with
9862 gdbarch.
9863
9864 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9865
9866 * moxie-tdep.c (moxie_unwind_sp): Delete.
9867 (moxie_unwind_pc): Delete.
9868 (moxie_dummy_id): Delete.
9869 (moxie_gdbarch_init): Don't register deleted functions with
9870 gdbarch.
9871
9872 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9873
9874 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9875 (mn10300_unwind_pc): Delete.
9876 (mn10300_unwind_sp): Delete.
9877 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9878 mn10300_unwind_sp.
9879 (mn10300_frame_unwind_init): Don't register deleted functions with
9880 gdbarch.
9881
9882 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * mep-tdep.c (mep_unwind_pc): Delete.
9885 (mep_unwind_sp): Delete.
9886 (mep_dummy_id): Delete.
9887 (mep_gdbarch_init): Don't register deleted functions with
9888 gdbarch.
9889
9890 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9893 (m68hc11_unwind_sp): Delete.
9894 (m68hc11_gdbarch_init): Don't register deleted functions with
9895 gdbarch.
9896
9897 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9898
9899 * m32r-tdep.c (m32r_unwind_sp): Delete.
9900 (m32r_unwind_pc): Delete.
9901 (m32r_dummy_id): Delete.
9902 (m32r_gdbarch_init): Don't register deleted functions with
9903 gdbarch.
9904
9905 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9906
9907 * m32c-tdep.c (m32c_unwind_pc): Delete.
9908 (m32c_unwind_sp): Delete.
9909 (m32c_dummy_id): Delete.
9910 (m32c_gdbarch_init): Don't register deleted functions with
9911 gdbarch.
9912
9913 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9914
9915 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9916 (lm32_unwind_pc): Delete.
9917 (lm32_dummy_id): Delete.
9918 (lm32_gdbarch_init): Don't register deleted functions with
9919 gdbarch.
9920
9921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9924 (iq2000_unwind_pc): Delete.
9925 (iq2000_dummy_id): Delete.
9926 (iq2000_gdbarch_init): Don't register deleted functions with
9927 gdbarch.
9928
9929 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9930
9931 * nds32-tdep.c (nds32_type_align): Delete.
9932 (nds32_push_dummy_call): Use type_align instead.
9933
9934 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 * arm-tdep.c (arm_type_align): Only handle vector override case.
9937 (arm_push_dummy_call): Use type_align.
9938 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9939
9940 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9941
9942 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9943 case.
9944 (pass_on_stack): Use type_align.
9945 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9946 function.
9947
9948 2019-04-23 Tom Tromey <tromey@adacore.com>
9949
9950 * dwarf2read.c (line_header::file_name_at): Remove unused
9951 overload.
9952
9953 2019-04-23 Tom de Vries <tdevries@suse.de>
9954
9955 PR gdb/24438
9956 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9957 invocation.
9958
9959
9960 2019-03-27 Ali Tamur <tamur@google.com>
9961
9962 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9963 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9964 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9965 (dwarf_expr_context::get_addr_index): Likewise
9966 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9967 (symbol_needs_eval_context::get_addr_index): Likewise
9968 (disassemble_dwarf_expression): Add DW_OP_addrx
9969 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9970 (read_cutu_die_from_dwo): Update comment
9971 (skip_one_die): Add DW_FORM_addrx
9972 (read_attribute_value): Likewise
9973 (var_decode_location): Add DW_OP_addrx
9974 (dwarf2_const_value_attr): Add DW_FORM_addrx
9975 (dump_die_shallow): Likewise
9976 (dwarf2_fetch_constant_bytes): Likewise
9977 (decode_locdesc): Add DW_OP_addrx
9978 (skip_form_bytes): Add DW_FORM_addrx
9979
9980 2019-04-22 Ali Tamur <tamur@google.com>
9981
9982 * MAINTAINERS (Write After Approval): Add self.
9983
9984 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9987 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9988 (open_symbol_file_object): Likewise.
9989 (svr4_default_sos): Add info parameter.
9990 (svr4_read_so_list): Likewise.
9991 (svr4_current_sos_direct): Adjust functions calls to pass down
9992 info.
9993 (svr4_current_sos_1): Add info parameter.
9994 (svr4_current_sos): Call get_svr4_info, pass info down to
9995 svr4_current_sos_1.
9996 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9997 get_svr4_info.
9998 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9999 get_svr4_info.
10000 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10001 to get_svr4_info.
10002 (probes_table_remove_objfile_probes): Likewise.
10003 (register_solib_event_probe): Add info parameter.
10004 (solist_update_incremental): Pass info parameter down to
10005 svr4_read_so_list.
10006 (disable_probes_interface): Add info parameter.
10007 (svr4_handle_solib_event): Pass current_program_space to
10008 get_svr4_info. Adjust disable_probes_interface cleanup.
10009 (svr4_create_probe_breakpoints): Add info parameter, pass it
10010 down to register_solib_event_probe.
10011 (svr4_create_solib_event_breakpoints): Add info parameter,
10012 pass it down to svr4_create_probe_breakpoints.
10013 (enable_break): Pass info down to
10014 svr4_create_solib_event_breakpoints.
10015 (svr4_solib_create_inferior_hook): Pass current_program_space to
10016 get_svr4_info.
10017 (svr4_clear_solib): Likewise.
10018
10019 2019-04-22 Pedro Alves <palves@redhat.com>
10020
10021 * solib-svr4.c (svr4_free_objfile_observer): New.
10022 (probe_and_action::objfile): New field.
10023 (probes_table_htab_remove_objfile_probes)
10024 (probes_table_remove_objfile_probes): New functions.
10025 (register_solib_event_probe): Add 'objfile' parameter. Store it
10026 in the new probe_and_action. Don't store the probe in 'lookup'.
10027 (svr4_create_probe_breakpoints): Pass objfile to
10028 register_solib_event_probe.
10029 (_initialize_svr4_solib): Register a free_objfile observer.
10030
10031 2019-04-19 Tom Tromey <tom@tromey.com>
10032
10033 * common/queue.h: Remove.
10034
10035 2019-04-19 Tom Tromey <tom@tromey.com>
10036
10037 * event-loop.c: Don't include "common/queue.h".
10038
10039 2019-04-19 Tom Tromey <tom@tromey.com>
10040
10041 * remote.c (remote_target): Use delete.
10042 * remote-notif.h: Include <list>, not "common/queue.h".
10043 (notif_client_p): Remove typedef.
10044 (remote_notif_state): Add constructor, destructor, initializer.
10045 <notif_queue>: Now a std::list.
10046 (remote_notif_state_xfree): Don't declare.
10047 * remote-notif.c (remote_notif_process, handle_notification)
10048 (remote_notif_state_allocate): Update.
10049 (~remote_notif_state): Rename from remote_notif_state_xfree.
10050
10051 2019-04-19 Tom Tromey <tom@tromey.com>
10052
10053 * symfile.c (reread_symbols): Update.
10054 * objfiles.c (objfile_register_static_link)
10055 (objfile_lookup_static_link): Update
10056 (~objfile) Don't delete static_links.
10057 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10058
10059 2019-04-19 Tom Tromey <tom@tromey.com>
10060
10061 * type-stack.h (struct type_stack) <insert>: Constify string.
10062 * type-stack.c (type_stack::insert): Constify string.
10063 * gdbtypes.h (lookup_template_type): Update.
10064 (address_space_name_to_int): Update.
10065 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10066 const.
10067 (lookup_template_type): Make name const.
10068 * c-exp.y: Update rules.
10069 (lex_one_token, classify_name, classify_inner_name)
10070 (c_print_token): Update.
10071 * p-exp.y: Update rules.
10072 (yylex): Update.
10073 * f-exp.y: Update rules.
10074 (yylex): Update.
10075 * d-exp.y: Update rules.
10076 (lex_one_token, classify_name, classify_inner_name): Update.
10077 * parse.c (write_dollar_variable, copy_name): Return std::string.
10078 * parser-defs.h (copy_name): Change return type.
10079 * m2-exp.y: Update rules.
10080 (yylex): Update.
10081 * go-exp.y (lex_one_token): Update.
10082 Update rules.
10083 (classify_unsafe_function, classify_packaged_name)
10084 (classify_name, yylex): Update.
10085
10086 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10087
10088 * configure.ac: add --enable-source-highlight switch.
10089 * configure: Regenerate.
10090 * top.c (print_gdb_version): plumb --enable-source-highlight
10091 status to "show configuration".
10092
10093 2019-04-19 Tom Tromey <tromey@adacore.com>
10094
10095 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10096 Check ADA_TYPE_P.
10097 (empty_record, ada_template_to_fixed_record_type_1)
10098 (template_to_static_fixed_type)
10099 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10100 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10101 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10102 macros.
10103
10104 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10105
10106 PR symtab/24423:
10107 * source.c (print_source_lines_base): Advance "iter" when a
10108 control character is seen.
10109
10110 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10111
10112 * inferior.h (struct infcall_suspend_state_deleter):
10113 Catch exception in destructor to avoid crash.
10114
10115 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10116
10117 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10118 close to the add_com "shell".
10119
10120 2019-04-18 Tom Tromey <tromey@adacore.com>
10121
10122 * process-stratum-target.h (class process_stratum_target)
10123 <stratum>: Add "final".
10124
10125 2019-04-17 Tom Tromey <tromey@adacore.com>
10126
10127 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10128 against nullptr before use.
10129
10130 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10131
10132 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10133
10134 2019-04-17 Jim Wilson <jimw@sifive.com>
10135 Andrew Burgess <andrew.burgess@embecosm.com>
10136
10137 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10138 code read might fail, assume 4-byte breakpoint in that case.
10139
10140 2019-04-15 Leszek Swirski <leszeks@google.com>
10141
10142 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10143 rather than a hand-rolled POD check when checking for forced MEMORY
10144 classification.
10145
10146 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10147
10148 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10149 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10150 function.
10151 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10152 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10153 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10154 declaration.
10155
10156 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10157
10158 * aarch64-linux-nat.c
10159 (aarch64_linux_nat_target::thread_architecture): Add override.
10160 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10161 each VQ.
10162
10163 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10164
10165 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10166
10167 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10168
10169 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10170 target types of size 96-bits, add some additional comments, and
10171 check that the builtin type we found was the correct size.
10172
10173 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10174
10175 * utils.c (prompt_for_continue): Don't restore the styling at the
10176 end, as applied_style has the wrong value. This fixes styling in
10177 long lists of file names that are interrupted by the "Continue?"
10178 prompt.
10179
10180 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10181
10182 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10183 * c-lang.c (c_language_defn): Likewise.
10184 (cplus_language_defn): Likewise.
10185 (asm_language_defn): Likewise.
10186 (minimal_language_defn): Likewise.
10187 * d-lang.c (d_language_defn): Likewise.
10188 * f-lang.c (f_language_defn): Likewise.
10189 * go-lang.c (go_language_defn): Likewise.
10190 * language.c (unknown_language_defn): Likewise.
10191 (auto_language_defn): Likewise.
10192 * language.h (struct language_defn): Remove la_magic field.
10193 (LANG_MAGIC): Delete.
10194 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10195 * objc-lang.c (objc_language_defn): Likewise.
10196 * opencl-lang.c (opencl_language_defn): Likewise.
10197 * p-lang.c (pascal_language_defn): Likewise.
10198 * rust-lang.c (rust_language_defn): Likewise.
10199
10200 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10201
10202 * riscv-tdep.c (riscv_type_align): New function.
10203 (riscv_type_alignment): Delete.
10204 (riscv_arg_location): Use 'type_align'.
10205 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10206
10207 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10208
10209 * gdbtypes.c (type_align): A struct with no non-static fields also
10210 has alignment of 1.
10211
10212 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10213
10214 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10215 component to 0.
10216 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10217 member.
10218 (riscv_struct_info::analyse): New implementation using new
10219 analyse_inner member function.
10220 (riscv_struct_info::field_offset): New member function.
10221 (riscv_struct_info::m_offsets): New member variable.
10222 (riscv_struct_info::analyse_inner): New private member function,
10223 takes the old implementation of riscv_struct_info::analyse but
10224 extended to track field offsets.
10225 (riscv_call_arg_struct): Update the struct folding special cases
10226 to handle cases where empty C++ structs, which are non-zero
10227 length, are found.
10228 (riscv_arg_location): Initialise the length of each location, a
10229 non-zero length now indicates the location is in use.
10230 (riscv_push_dummy_call): Allow for the first location having a
10231 non-zero offset when setting up arguments.
10232 (riscv_return_value): Likewise, but for return values.
10233
10234 2019-04-11 Tom Tromey <tromey@adacore.com>
10235
10236 * utils.c (internal_vproblem): Make "msg" const.
10237
10238 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10239
10240 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10241 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10242 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10243 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10244
10245 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10246
10247 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10248 function.
10249 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10250 of amd64_collect_native_gregset.
10251 (amd64_linux_nat_target::store_registers): Likewise.
10252
10253 2019-04-10 Tom Tromey <tom@tromey.com>
10254
10255 * symtab.c (lookup_global_symbol_from_objfile)
10256 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10257 * objfiles.h (class separate_debug_iterator): New.
10258 (class separate_debug_range): New.
10259 (struct objfile) <separate_debug_objfiles>: New method.
10260 (objfile_separate_debug_iterate): Don't declare.
10261 * objfiles.c (separate_debug_iterator::operator++): Rename from
10262 objfile_separate_debug_iterate.
10263 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10264 iterator.
10265 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10266 iterator.
10267
10268 2019-04-10 Tom Tromey <tom@tromey.com>
10269
10270 * symfile.c (reread_symbols): Remove old comment.
10271 * objfiles.c (free_all_objfiles): Fix a typo.
10272
10273 2019-04-10 Tom Tromey <tom@tromey.com>
10274
10275 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10276 * minsyms.c (lookup_minimal_symbol): Use foreach.
10277 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10278 (lookup_minimal_symbol_solib_trampoline): Likewise.
10279 * symfile.c (reread_symbols): Use foreach.
10280
10281 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10282 Tom Tromey <tromey@adacore.com>
10283
10284 PR rust/24414:
10285 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10286 (rust_lex_int_test): Change "value" to be LONGEST.
10287 (rust_lex_tests): Add test for long integer literal.
10288
10289 2019-04-09 Tom Tromey <tromey@adacore.com>
10290
10291 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10292 to bool.
10293 (extended_remote_target::attach): Update.
10294 (remote_target::remote_notice_new_inferior): Update.
10295 (remote_target::add_current_inferior_and_thread): Update.
10296 * inferior.c (exit_inferior_1): Use "false".
10297 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10298
10299 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10302 the "start" command.
10303
10304 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10305
10306 * python/py-inferior.c (infpy_thread_from_thread_handle):
10307 Adjust comments to reflect renaming of thread_from_thread_handle
10308 to thread_from_handle. Adjust keywords. Fix type error message.
10309 (inferior_object_methods): Add thread_from_handle. Retain
10310 thread_from_thread_handle, but mark it as deprecated.
10311
10312 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10313
10314 * gdbthread.h (find_thread_by_handle): Revise declaration.
10315 * thread.c (find_thread_by_handle): Likewise. Adjust
10316 implementation too.
10317 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10318 support for buffer objects as handles.
10319
10320 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10321
10322 * python/py-infthread.c (thpy_thread_handle): New function.
10323 (thread_object_methods): Register thpy_thread_handle.
10324
10325 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10326
10327 * gdbthread.h (thread_to_thread_handle): Declare.
10328 * thread.c (gdbtypes.h): Include.
10329 (thread_to_thread_handle): New function.
10330
10331 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10332 (target_thread_info_to_thread_handle): Declare.
10333 * target.c (target_thread_info_to_thread_handle): New function.
10334 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10335 * target-delegates.c: Regenerate.
10336
10337 * linux-thread-db.c (class thread_db_target): Add method
10338 thread_info_to_thread_handle.
10339 (thread_db_target::thread_info_to_thread_handle): Define.
10340 * remote.c (class remote_target): Add new method
10341 thread_info_to_thread_handle.
10342 (remote_target::thread_info_to_thread_handle): Define.
10343
10344 2019-04-08 Pedro Alves <palves@redhat.com>
10345
10346 * common/common-exceptions.c (throw_exception): Don't create
10347 named object to throw; throw directly.
10348 (throw_it): Likewise. Don't initialize gdb_exception::message
10349 here, with new; pass FMT and AP to the ctor instead.
10350 * common/common-exceptions.h: Include <string>.
10351 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10352 const char *, va_list)): New ctor. Use std::make_shared.
10353 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10354 errors)): Delete.
10355 (gdb_exception_error::gdb_exception_error(enum errors, const char
10356 *, va_list)): New.
10357 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10358 Add assertion.
10359 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10360 errors)): Delete.
10361 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10362 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10363 Add assertion.
10364
10365 2019-04-08 Tom Tromey <tom@tromey.com>
10366
10367 * valops.c (value_rtti_indirect_type): Replace throw_exception
10368 with throw.
10369 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10370 with throw.
10371 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10372 throw.
10373 * target.c (target_translate_tls_address): Replace throw_exception
10374 with throw.
10375 * stack.c (frame_apply_command_count): Replace throw_exception
10376 with throw.
10377 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10378 throw.
10379 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10380 with throw.
10381 * rs6000-tdep.c (rs6000_frame_cache)
10382 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10383 * remote.c: Replace throw_exception with throw.
10384 * record-full.c (record_full_message, record_full_wait_1)
10385 (record_full_restore): Replace throw_exception with throw.
10386 * record-btrace.c:
10387 (get_thread_current_frame_id, record_btrace_start_replaying)
10388 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10389 (cmd_record_btrace_start): Replace throw_exception with throw.
10390 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10391 throw.
10392 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10393 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10394 * linespec.c:
10395 (find_linespec_symbols): Replace throw_exception with throw.
10396 * infrun.c (displaced_step_prepare, resume): Replace
10397 throw_exception with throw.
10398 * infcmd.c (post_create_inferior): Replace throw_exception with
10399 throw.
10400 * inf-loop.c (inferior_event_handler): Replace throw_exception
10401 with throw.
10402 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10403 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10404 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10405 (get_prev_frame_always, get_frame_pc_if_available)
10406 (get_frame_address_in_block_if_available, get_frame_language):
10407 Replace throw_exception with throw.
10408 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10409 throw_exception with throw.
10410 * eval.c (fetch_subexp_value, evaluate_var_value)
10411 (evaluate_funcall, evaluate_subexp_standard): Replace
10412 throw_exception with throw.
10413 * dwarf2loc.c (call_site_find_chain)
10414 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10415 Replace throw_exception with throw.
10416 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10417 with throw.
10418 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10419 throw.
10420 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10421 * completer.c (complete_line_internal): Replace throw_exception
10422 with throw.
10423 * compile/compile-object-run.c (compile_object_run): Replace
10424 throw_exception with throw.
10425 * cli/cli-script.c (process_next_line): Replace throw_exception
10426 with throw.
10427 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10428 (btrace_enable, btrace_maint_update_pt_packets): Replace
10429 throw_exception with throw.
10430 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10431 throw_exception with throw.
10432 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10433 throw_exception with throw.
10434 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10435 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10436 * aarch64-tdep.c (aarch64_make_prologue_cache)
10437 (aarch64_make_stub_cache): Replace throw_exception with throw.
10438
10439 2019-04-08 Tom Tromey <tom@tromey.com>
10440
10441 * common/common-exceptions.c (throw_exception): Rename from
10442 throw_exception_cxx. Remove old copy. Make argument const.
10443 (throw_it): Create and throw exception objects directly.
10444 * common/common-exceptions.h (throw_exception): Make argument
10445 const.
10446 (struct gdb_exception_error): Add constructor.
10447 (struct gdb_exception_quit): Add constructor.
10448
10449 2019-04-08 Tom Tromey <tom@tromey.com>
10450
10451 * common/common-exceptions.h (exception_rethrow): Don't declare.
10452 (TRY_SJLJ): Update comment.
10453 (TRY, CATCH, END_CATCH): Remove.
10454 * common/common-exceptions.c (exception_rethrow): Remove.
10455
10456 2019-04-08 Tom Tromey <tom@tromey.com>
10457
10458 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10459 Remove.
10460 (gdb_exception_error): Rename from
10461 gdb_exception_RETURN_MASK_ERROR.
10462 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10463 (gdb_quit_bad_alloc): Update.
10464 * aarch64-tdep.c: Update.
10465 * ada-lang.c: Update.
10466 * ada-typeprint.c: Update.
10467 * ada-valprint.c: Update.
10468 * amd64-tdep.c: Update.
10469 * arch-utils.c: Update.
10470 * break-catch-throw.c: Update.
10471 * breakpoint.c: Update.
10472 * btrace.c: Update.
10473 * c-varobj.c: Update.
10474 * cli/cli-cmds.c: Update.
10475 * cli/cli-interp.c: Update.
10476 * cli/cli-script.c: Update.
10477 * common/common-exceptions.c: Update.
10478 * common/new-op.c: Update.
10479 * common/selftest.c: Update.
10480 * compile/compile-c-symbols.c: Update.
10481 * compile/compile-cplus-symbols.c: Update.
10482 * compile/compile-object-load.c: Update.
10483 * compile/compile-object-run.c: Update.
10484 * completer.c: Update.
10485 * corelow.c: Update.
10486 * cp-abi.c: Update.
10487 * cp-support.c: Update.
10488 * cp-valprint.c: Update.
10489 * darwin-nat.c: Update.
10490 * disasm-selftests.c: Update.
10491 * dtrace-probe.c: Update.
10492 * dwarf-index-cache.c: Update.
10493 * dwarf-index-write.c: Update.
10494 * dwarf2-frame-tailcall.c: Update.
10495 * dwarf2-frame.c: Update.
10496 * dwarf2loc.c: Update.
10497 * dwarf2read.c: Update.
10498 * eval.c: Update.
10499 * event-loop.c: Update.
10500 * event-top.c: Update.
10501 * exec.c: Update.
10502 * f-valprint.c: Update.
10503 * fbsd-tdep.c: Update.
10504 * frame-unwind.c: Update.
10505 * frame.c: Update.
10506 * gdbtypes.c: Update.
10507 * gnu-v3-abi.c: Update.
10508 * guile/guile-internal.h: Update.
10509 * guile/scm-block.c: Update.
10510 * guile/scm-breakpoint.c: Update.
10511 * guile/scm-cmd.c: Update.
10512 * guile/scm-disasm.c: Update.
10513 * guile/scm-frame.c: Update.
10514 * guile/scm-lazy-string.c: Update.
10515 * guile/scm-math.c: Update.
10516 * guile/scm-param.c: Update.
10517 * guile/scm-ports.c: Update.
10518 * guile/scm-pretty-print.c: Update.
10519 * guile/scm-symbol.c: Update.
10520 * guile/scm-symtab.c: Update.
10521 * guile/scm-type.c: Update.
10522 * guile/scm-value.c: Update.
10523 * i386-linux-tdep.c: Update.
10524 * i386-tdep.c: Update.
10525 * inf-loop.c: Update.
10526 * infcall.c: Update.
10527 * infcmd.c: Update.
10528 * infrun.c: Update.
10529 * jit.c: Update.
10530 * language.c: Update.
10531 * linespec.c: Update.
10532 * linux-fork.c: Update.
10533 * linux-nat.c: Update.
10534 * linux-tdep.c: Update.
10535 * linux-thread-db.c: Update.
10536 * main.c: Update.
10537 * mi/mi-cmd-break.c: Update.
10538 * mi/mi-cmd-stack.c: Update.
10539 * mi/mi-interp.c: Update.
10540 * mi/mi-main.c: Update.
10541 * objc-lang.c: Update.
10542 * p-valprint.c: Update.
10543 * parse.c: Update.
10544 * ppc-linux-tdep.c: Update.
10545 * printcmd.c: Update.
10546 * python/py-arch.c: Update.
10547 * python/py-breakpoint.c: Update.
10548 * python/py-cmd.c: Update.
10549 * python/py-finishbreakpoint.c: Update.
10550 * python/py-frame.c: Update.
10551 * python/py-framefilter.c: Update.
10552 * python/py-gdb-readline.c: Update.
10553 * python/py-inferior.c: Update.
10554 * python/py-infthread.c: Update.
10555 * python/py-lazy-string.c: Update.
10556 * python/py-linetable.c: Update.
10557 * python/py-objfile.c: Update.
10558 * python/py-param.c: Update.
10559 * python/py-prettyprint.c: Update.
10560 * python/py-progspace.c: Update.
10561 * python/py-record-btrace.c: Update.
10562 * python/py-record.c: Update.
10563 * python/py-symbol.c: Update.
10564 * python/py-type.c: Update.
10565 * python/py-unwind.c: Update.
10566 * python/py-utils.c: Update.
10567 * python/py-value.c: Update.
10568 * python/python.c: Update.
10569 * record-btrace.c: Update.
10570 * record-full.c: Update.
10571 * remote-fileio.c: Update.
10572 * remote.c: Update.
10573 * riscv-tdep.c: Update.
10574 * rs6000-aix-tdep.c: Update.
10575 * rs6000-tdep.c: Update.
10576 * rust-exp.y: Update.
10577 * rust-lang.c: Update.
10578 * s390-tdep.c: Update.
10579 * selftest-arch.c: Update.
10580 * solib-dsbt.c: Update.
10581 * solib-frv.c: Update.
10582 * solib-spu.c: Update.
10583 * solib-svr4.c: Update.
10584 * solib.c: Update.
10585 * sparc64-linux-tdep.c: Update.
10586 * stack.c: Update.
10587 * symfile-mem.c: Update.
10588 * symmisc.c: Update.
10589 * target.c: Update.
10590 * thread.c: Update.
10591 * top.c: Update.
10592 * tracefile-tfile.c: Update.
10593 * tui/tui.c: Update.
10594 * typeprint.c: Update.
10595 * unittests/cli-utils-selftests.c: Update.
10596 * unittests/parse-connection-spec-selftests.c: Update.
10597 * valops.c: Update.
10598 * valprint.c: Update.
10599 * value.c: Update.
10600 * varobj.c: Update.
10601 * windows-nat.c: Update.
10602 * x86-linux-nat.c: Update.
10603 * xml-support.c: Update.
10604
10605 2019-04-08 Tom Tromey <tom@tromey.com>
10606
10607 * xml-support.c: Use C++ exception handling.
10608 * x86-linux-nat.c: Use C++ exception handling.
10609 * windows-nat.c: Use C++ exception handling.
10610 * varobj.c: Use C++ exception handling.
10611 * value.c: Use C++ exception handling.
10612 * valprint.c: Use C++ exception handling.
10613 * valops.c: Use C++ exception handling.
10614 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10615 handling.
10616 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10617 * typeprint.c: Use C++ exception handling.
10618 * tui/tui.c: Use C++ exception handling.
10619 * tracefile-tfile.c: Use C++ exception handling.
10620 * top.c: Use C++ exception handling.
10621 * thread.c: Use C++ exception handling.
10622 * target.c: Use C++ exception handling.
10623 * symmisc.c: Use C++ exception handling.
10624 * symfile-mem.c: Use C++ exception handling.
10625 * stack.c: Use C++ exception handling.
10626 * sparc64-linux-tdep.c: Use C++ exception handling.
10627 * solib.c: Use C++ exception handling.
10628 * solib-svr4.c: Use C++ exception handling.
10629 * solib-spu.c: Use C++ exception handling.
10630 * solib-frv.c: Use C++ exception handling.
10631 * solib-dsbt.c: Use C++ exception handling.
10632 * selftest-arch.c: Use C++ exception handling.
10633 * s390-tdep.c: Use C++ exception handling.
10634 * rust-lang.c: Use C++ exception handling.
10635 * rust-exp.y: Use C++ exception handling.
10636 * rs6000-tdep.c: Use C++ exception handling.
10637 * rs6000-aix-tdep.c: Use C++ exception handling.
10638 * riscv-tdep.c: Use C++ exception handling.
10639 * remote.c: Use C++ exception handling.
10640 * remote-fileio.c: Use C++ exception handling.
10641 * record-full.c: Use C++ exception handling.
10642 * record-btrace.c: Use C++ exception handling.
10643 * python/python.c: Use C++ exception handling.
10644 * python/py-value.c: Use C++ exception handling.
10645 * python/py-utils.c: Use C++ exception handling.
10646 * python/py-unwind.c: Use C++ exception handling.
10647 * python/py-type.c: Use C++ exception handling.
10648 * python/py-symbol.c: Use C++ exception handling.
10649 * python/py-record.c: Use C++ exception handling.
10650 * python/py-record-btrace.c: Use C++ exception handling.
10651 * python/py-progspace.c: Use C++ exception handling.
10652 * python/py-prettyprint.c: Use C++ exception handling.
10653 * python/py-param.c: Use C++ exception handling.
10654 * python/py-objfile.c: Use C++ exception handling.
10655 * python/py-linetable.c: Use C++ exception handling.
10656 * python/py-lazy-string.c: Use C++ exception handling.
10657 * python/py-infthread.c: Use C++ exception handling.
10658 * python/py-inferior.c: Use C++ exception handling.
10659 * python/py-gdb-readline.c: Use C++ exception handling.
10660 * python/py-framefilter.c: Use C++ exception handling.
10661 * python/py-frame.c: Use C++ exception handling.
10662 * python/py-finishbreakpoint.c: Use C++ exception handling.
10663 * python/py-cmd.c: Use C++ exception handling.
10664 * python/py-breakpoint.c: Use C++ exception handling.
10665 * python/py-arch.c: Use C++ exception handling.
10666 * printcmd.c: Use C++ exception handling.
10667 * ppc-linux-tdep.c: Use C++ exception handling.
10668 * parse.c: Use C++ exception handling.
10669 * p-valprint.c: Use C++ exception handling.
10670 * objc-lang.c: Use C++ exception handling.
10671 * mi/mi-main.c: Use C++ exception handling.
10672 * mi/mi-interp.c: Use C++ exception handling.
10673 * mi/mi-cmd-stack.c: Use C++ exception handling.
10674 * mi/mi-cmd-break.c: Use C++ exception handling.
10675 * main.c: Use C++ exception handling.
10676 * linux-thread-db.c: Use C++ exception handling.
10677 * linux-tdep.c: Use C++ exception handling.
10678 * linux-nat.c: Use C++ exception handling.
10679 * linux-fork.c: Use C++ exception handling.
10680 * linespec.c: Use C++ exception handling.
10681 * language.c: Use C++ exception handling.
10682 * jit.c: Use C++ exception handling.
10683 * infrun.c: Use C++ exception handling.
10684 * infcmd.c: Use C++ exception handling.
10685 * infcall.c: Use C++ exception handling.
10686 * inf-loop.c: Use C++ exception handling.
10687 * i386-tdep.c: Use C++ exception handling.
10688 * i386-linux-tdep.c: Use C++ exception handling.
10689 * guile/scm-value.c: Use C++ exception handling.
10690 * guile/scm-type.c: Use C++ exception handling.
10691 * guile/scm-symtab.c: Use C++ exception handling.
10692 * guile/scm-symbol.c: Use C++ exception handling.
10693 * guile/scm-pretty-print.c: Use C++ exception handling.
10694 * guile/scm-ports.c: Use C++ exception handling.
10695 * guile/scm-param.c: Use C++ exception handling.
10696 * guile/scm-math.c: Use C++ exception handling.
10697 * guile/scm-lazy-string.c: Use C++ exception handling.
10698 * guile/scm-frame.c: Use C++ exception handling.
10699 * guile/scm-disasm.c: Use C++ exception handling.
10700 * guile/scm-cmd.c: Use C++ exception handling.
10701 * guile/scm-breakpoint.c: Use C++ exception handling.
10702 * guile/scm-block.c: Use C++ exception handling.
10703 * guile/guile-internal.h: Use C++ exception handling.
10704 * gnu-v3-abi.c: Use C++ exception handling.
10705 * gdbtypes.c: Use C++ exception handling.
10706 * frame.c: Use C++ exception handling.
10707 * frame-unwind.c: Use C++ exception handling.
10708 * fbsd-tdep.c: Use C++ exception handling.
10709 * f-valprint.c: Use C++ exception handling.
10710 * exec.c: Use C++ exception handling.
10711 * event-top.c: Use C++ exception handling.
10712 * event-loop.c: Use C++ exception handling.
10713 * eval.c: Use C++ exception handling.
10714 * dwarf2read.c: Use C++ exception handling.
10715 * dwarf2loc.c: Use C++ exception handling.
10716 * dwarf2-frame.c: Use C++ exception handling.
10717 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10718 * dwarf-index-write.c: Use C++ exception handling.
10719 * dwarf-index-cache.c: Use C++ exception handling.
10720 * dtrace-probe.c: Use C++ exception handling.
10721 * disasm-selftests.c: Use C++ exception handling.
10722 * darwin-nat.c: Use C++ exception handling.
10723 * cp-valprint.c: Use C++ exception handling.
10724 * cp-support.c: Use C++ exception handling.
10725 * cp-abi.c: Use C++ exception handling.
10726 * corelow.c: Use C++ exception handling.
10727 * completer.c: Use C++ exception handling.
10728 * compile/compile-object-run.c: Use C++ exception handling.
10729 * compile/compile-object-load.c: Use C++ exception handling.
10730 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10731 * compile/compile-c-symbols.c: Use C++ exception handling.
10732 * common/selftest.c: Use C++ exception handling.
10733 * common/new-op.c: Use C++ exception handling.
10734 * cli/cli-script.c: Use C++ exception handling.
10735 * cli/cli-interp.c: Use C++ exception handling.
10736 * cli/cli-cmds.c: Use C++ exception handling.
10737 * c-varobj.c: Use C++ exception handling.
10738 * btrace.c: Use C++ exception handling.
10739 * breakpoint.c: Use C++ exception handling.
10740 * break-catch-throw.c: Use C++ exception handling.
10741 * arch-utils.c: Use C++ exception handling.
10742 * amd64-tdep.c: Use C++ exception handling.
10743 * ada-valprint.c: Use C++ exception handling.
10744 * ada-typeprint.c: Use C++ exception handling.
10745 * ada-lang.c: Use C++ exception handling.
10746 * aarch64-tdep.c: Use C++ exception handling.
10747
10748 2019-04-08 Tom Tromey <tom@tromey.com>
10749
10750 * xml-support.c (gdb_xml_parser::parse): Update.
10751 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10752 * value.c (show_convenience): Update.
10753 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10754 (test_parse_flags_qcs): Update.
10755 * thread.c (thr_try_catch_cmd): Update.
10756 * target.c (target_translate_tls_address): Update.
10757 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10758 (info_frame_command_core, frame_apply_command_count): Update.
10759 * rust-exp.y (rust_lex_exception_test): Update.
10760 * riscv-tdep.c (riscv_print_one_register_info): Update.
10761 * remote.c (remote_target::enable_btrace): Update.
10762 * record-btrace.c (record_btrace_enable_warn): Update.
10763 * python/py-utils.c (gdbpy_convert_exception): Update.
10764 * printcmd.c (do_one_display, print_variable_and_value): Update.
10765 * mi/mi-main.c (mi_print_exception): Update.
10766 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10767 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10768 * linux-nat.c (linux_nat_target::attach): Update.
10769 * linux-fork.c (class scoped_switch_fork_info): Update.
10770 * infrun.c (displaced_step_prepare): Update.
10771 * infcall.c (call_function_by_hand_dummy): Update.
10772 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10773 * gnu-v3-abi.c (print_one_vtable): Update.
10774 * frame.c (get_prev_frame_always): Update.
10775 * f-valprint.c (info_common_command_for_block): Update.
10776 * exec.c (try_open_exec_file): Update.
10777 * exceptions.c (print_exception, exception_print)
10778 (exception_fprintf, exception_print_same): Update.
10779 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10780 * dwarf-index-cache.c (index_cache::store)
10781 (index_cache::lookup_gdb_index): Update.
10782 * darwin-nat.c (maybe_cache_shell): Update.
10783 * cp-valprint.c (cp_print_value_fields): Update.
10784 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10785 (gcc_cplus_symbol_address): Update.
10786 * compile/compile-c-symbols.c (gcc_convert_symbol)
10787 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10788 * common/selftest.c: Update.
10789 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10790 a std::string.
10791 (exception_try_scope_entry, exception_try_scope_exit): Don't
10792 declare.
10793 (struct exception_try_scope): Remove.
10794 (TRY): Don't use exception_try_scope.
10795 (struct gdb_exception): Add constructor, operator=.
10796 <what>: New method.
10797 (struct gdb_exception_RETURN_MASK_ALL)
10798 (struct gdb_exception_RETURN_MASK_ERROR)
10799 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10800 (struct gdb_quit_bad_alloc): Update.
10801 * common/common-exceptions.c (exception_none): Change
10802 initializer.
10803 (struct catcher) <state, exception>: Initialize inline.
10804 <prev>: Remove member.
10805 (current_catcher): Remove.
10806 (catchers): New global.
10807 (exceptions_state_mc_init): Simplify.
10808 (catcher_pop): Remove.
10809 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10810 (try_scope_depth, exception_try_scope_entry)
10811 (exception_try_scope_exit): Remove.
10812 (throw_exception_sjlj): Update.
10813 (exception_messages, exception_messages_size): Remove.
10814 (throw_it): Simplify.
10815 (gdb_exception_sliced_copy): Remove.
10816 (throw_exception_cxx): Update.
10817 * cli/cli-script.c (script_from_file): Update.
10818 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10819 Update.
10820 * ada-valprint.c (ada_val_print): Update.
10821 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10822 (create_excep_cond_exprs): Update.
10823
10824 2019-04-08 Tom Tromey <tom@tromey.com>
10825
10826 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10827 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10828 (TRY, CATCH, END_CATCH): Remove some definitions.
10829 * common/common-exceptions.c: Don't use GDB_XCPT.
10830 (catcher_list_size): Remove.
10831 (throw_exception, throw_it): Simplify.
10832
10833 2019-04-05 Tom Tromey <tom@tromey.com>
10834
10835 Revert the header-sorting patch.
10836 * ft32-tdep.c: Revert.
10837 * frv-tdep.c: Revert.
10838 * frv-linux-tdep.c: Revert.
10839 * frame.c: Revert.
10840 * frame-unwind.c: Revert.
10841 * frame-base.c: Revert.
10842 * fork-child.c: Revert.
10843 * findvar.c: Revert.
10844 * findcmd.c: Revert.
10845 * filesystem.c: Revert.
10846 * filename-seen-cache.h: Revert.
10847 * filename-seen-cache.c: Revert.
10848 * fbsd-tdep.c: Revert.
10849 * fbsd-nat.h: Revert.
10850 * fbsd-nat.c: Revert.
10851 * f-valprint.c: Revert.
10852 * f-typeprint.c: Revert.
10853 * f-lang.c: Revert.
10854 * extension.h: Revert.
10855 * extension.c: Revert.
10856 * extension-priv.h: Revert.
10857 * expprint.c: Revert.
10858 * exec.h: Revert.
10859 * exec.c: Revert.
10860 * exceptions.c: Revert.
10861 * event-top.c: Revert.
10862 * event-loop.c: Revert.
10863 * eval.c: Revert.
10864 * elfread.c: Revert.
10865 * dwarf2read.h: Revert.
10866 * dwarf2read.c: Revert.
10867 * dwarf2loc.c: Revert.
10868 * dwarf2expr.h: Revert.
10869 * dwarf2expr.c: Revert.
10870 * dwarf2-frame.c: Revert.
10871 * dwarf2-frame-tailcall.c: Revert.
10872 * dwarf-index-write.h: Revert.
10873 * dwarf-index-write.c: Revert.
10874 * dwarf-index-common.c: Revert.
10875 * dwarf-index-cache.h: Revert.
10876 * dwarf-index-cache.c: Revert.
10877 * dummy-frame.c: Revert.
10878 * dtrace-probe.c: Revert.
10879 * disasm.h: Revert.
10880 * disasm.c: Revert.
10881 * disasm-selftests.c: Revert.
10882 * dictionary.c: Revert.
10883 * dicos-tdep.c: Revert.
10884 * demangle.c: Revert.
10885 * dcache.h: Revert.
10886 * dcache.c: Revert.
10887 * darwin-nat.h: Revert.
10888 * darwin-nat.c: Revert.
10889 * darwin-nat-info.c: Revert.
10890 * d-valprint.c: Revert.
10891 * d-namespace.c: Revert.
10892 * d-lang.c: Revert.
10893 * ctf.c: Revert.
10894 * csky-tdep.c: Revert.
10895 * csky-linux-tdep.c: Revert.
10896 * cris-tdep.c: Revert.
10897 * cris-linux-tdep.c: Revert.
10898 * cp-valprint.c: Revert.
10899 * cp-support.c: Revert.
10900 * cp-namespace.c: Revert.
10901 * cp-abi.c: Revert.
10902 * corelow.c: Revert.
10903 * corefile.c: Revert.
10904 * continuations.c: Revert.
10905 * completer.h: Revert.
10906 * completer.c: Revert.
10907 * complaints.c: Revert.
10908 * coffread.c: Revert.
10909 * coff-pe-read.c: Revert.
10910 * cli-out.h: Revert.
10911 * cli-out.c: Revert.
10912 * charset.c: Revert.
10913 * c-varobj.c: Revert.
10914 * c-valprint.c: Revert.
10915 * c-typeprint.c: Revert.
10916 * c-lang.c: Revert.
10917 * buildsym.c: Revert.
10918 * buildsym-legacy.c: Revert.
10919 * build-id.h: Revert.
10920 * build-id.c: Revert.
10921 * btrace.c: Revert.
10922 * bsd-uthread.c: Revert.
10923 * breakpoint.h: Revert.
10924 * breakpoint.c: Revert.
10925 * break-catch-throw.c: Revert.
10926 * break-catch-syscall.c: Revert.
10927 * break-catch-sig.c: Revert.
10928 * blockframe.c: Revert.
10929 * block.c: Revert.
10930 * bfin-tdep.c: Revert.
10931 * bfin-linux-tdep.c: Revert.
10932 * bfd-target.c: Revert.
10933 * bcache.c: Revert.
10934 * ax-general.c: Revert.
10935 * ax-gdb.h: Revert.
10936 * ax-gdb.c: Revert.
10937 * avr-tdep.c: Revert.
10938 * auxv.c: Revert.
10939 * auto-load.c: Revert.
10940 * arm-wince-tdep.c: Revert.
10941 * arm-tdep.c: Revert.
10942 * arm-symbian-tdep.c: Revert.
10943 * arm-pikeos-tdep.c: Revert.
10944 * arm-obsd-tdep.c: Revert.
10945 * arm-nbsd-tdep.c: Revert.
10946 * arm-nbsd-nat.c: Revert.
10947 * arm-linux-tdep.c: Revert.
10948 * arm-linux-nat.c: Revert.
10949 * arm-fbsd-tdep.c: Revert.
10950 * arm-fbsd-nat.c: Revert.
10951 * arm-bsd-tdep.c: Revert.
10952 * arch-utils.c: Revert.
10953 * arc-tdep.c: Revert.
10954 * arc-newlib-tdep.c: Revert.
10955 * annotate.h: Revert.
10956 * annotate.c: Revert.
10957 * amd64-windows-tdep.c: Revert.
10958 * amd64-windows-nat.c: Revert.
10959 * amd64-tdep.c: Revert.
10960 * amd64-sol2-tdep.c: Revert.
10961 * amd64-obsd-tdep.c: Revert.
10962 * amd64-obsd-nat.c: Revert.
10963 * amd64-nbsd-tdep.c: Revert.
10964 * amd64-nbsd-nat.c: Revert.
10965 * amd64-nat.c: Revert.
10966 * amd64-linux-tdep.c: Revert.
10967 * amd64-linux-nat.c: Revert.
10968 * amd64-fbsd-tdep.c: Revert.
10969 * amd64-fbsd-nat.c: Revert.
10970 * amd64-dicos-tdep.c: Revert.
10971 * amd64-darwin-tdep.c: Revert.
10972 * amd64-bsd-nat.c: Revert.
10973 * alpha-tdep.c: Revert.
10974 * alpha-obsd-tdep.c: Revert.
10975 * alpha-nbsd-tdep.c: Revert.
10976 * alpha-mdebug-tdep.c: Revert.
10977 * alpha-linux-tdep.c: Revert.
10978 * alpha-linux-nat.c: Revert.
10979 * alpha-bsd-tdep.c: Revert.
10980 * alpha-bsd-nat.c: Revert.
10981 * aix-thread.c: Revert.
10982 * agent.c: Revert.
10983 * addrmap.c: Revert.
10984 * ada-varobj.c: Revert.
10985 * ada-valprint.c: Revert.
10986 * ada-typeprint.c: Revert.
10987 * ada-tasks.c: Revert.
10988 * ada-lang.c: Revert.
10989 * aarch64-tdep.c: Revert.
10990 * aarch64-ravenscar-thread.c: Revert.
10991 * aarch64-newlib-tdep.c: Revert.
10992 * aarch64-linux-tdep.c: Revert.
10993 * aarch64-linux-nat.c: Revert.
10994 * aarch64-fbsd-tdep.c: Revert.
10995 * aarch64-fbsd-nat.c: Revert.
10996 * aarch32-linux-nat.c: Revert.
10997
10998 2019-04-05 Tom Tromey <tom@tromey.com>
10999
11000 * ft32-tdep.c: Sort headers.
11001 * frv-tdep.c: Sort headers.
11002 * frv-linux-tdep.c: Sort headers.
11003 * frame.c: Sort headers.
11004 * frame-unwind.c: Sort headers.
11005 * frame-base.c: Sort headers.
11006 * fork-child.c: Sort headers.
11007 * findvar.c: Sort headers.
11008 * findcmd.c: Sort headers.
11009 * filesystem.c: Sort headers.
11010 * filename-seen-cache.h: Sort headers.
11011 * filename-seen-cache.c: Sort headers.
11012 * fbsd-tdep.c: Sort headers.
11013 * fbsd-nat.h: Sort headers.
11014 * fbsd-nat.c: Sort headers.
11015 * f-valprint.c: Sort headers.
11016 * f-typeprint.c: Sort headers.
11017 * f-lang.c: Sort headers.
11018 * extension.h: Sort headers.
11019 * extension.c: Sort headers.
11020 * extension-priv.h: Sort headers.
11021 * expprint.c: Sort headers.
11022 * exec.h: Sort headers.
11023 * exec.c: Sort headers.
11024 * exceptions.c: Sort headers.
11025 * event-top.c: Sort headers.
11026 * event-loop.c: Sort headers.
11027 * eval.c: Sort headers.
11028 * elfread.c: Sort headers.
11029 * dwarf2read.h: Sort headers.
11030 * dwarf2read.c: Sort headers.
11031 * dwarf2loc.c: Sort headers.
11032 * dwarf2expr.h: Sort headers.
11033 * dwarf2expr.c: Sort headers.
11034 * dwarf2-frame.c: Sort headers.
11035 * dwarf2-frame-tailcall.c: Sort headers.
11036 * dwarf-index-write.h: Sort headers.
11037 * dwarf-index-write.c: Sort headers.
11038 * dwarf-index-common.c: Sort headers.
11039 * dwarf-index-cache.h: Sort headers.
11040 * dwarf-index-cache.c: Sort headers.
11041 * dummy-frame.c: Sort headers.
11042 * dtrace-probe.c: Sort headers.
11043 * disasm.h: Sort headers.
11044 * disasm.c: Sort headers.
11045 * disasm-selftests.c: Sort headers.
11046 * dictionary.c: Sort headers.
11047 * dicos-tdep.c: Sort headers.
11048 * demangle.c: Sort headers.
11049 * dcache.h: Sort headers.
11050 * dcache.c: Sort headers.
11051 * darwin-nat.h: Sort headers.
11052 * darwin-nat.c: Sort headers.
11053 * darwin-nat-info.c: Sort headers.
11054 * d-valprint.c: Sort headers.
11055 * d-namespace.c: Sort headers.
11056 * d-lang.c: Sort headers.
11057 * ctf.c: Sort headers.
11058 * csky-tdep.c: Sort headers.
11059 * csky-linux-tdep.c: Sort headers.
11060 * cris-tdep.c: Sort headers.
11061 * cris-linux-tdep.c: Sort headers.
11062 * cp-valprint.c: Sort headers.
11063 * cp-support.c: Sort headers.
11064 * cp-namespace.c: Sort headers.
11065 * cp-abi.c: Sort headers.
11066 * corelow.c: Sort headers.
11067 * corefile.c: Sort headers.
11068 * continuations.c: Sort headers.
11069 * completer.h: Sort headers.
11070 * completer.c: Sort headers.
11071 * complaints.c: Sort headers.
11072 * coffread.c: Sort headers.
11073 * coff-pe-read.c: Sort headers.
11074 * cli-out.h: Sort headers.
11075 * cli-out.c: Sort headers.
11076 * charset.c: Sort headers.
11077 * c-varobj.c: Sort headers.
11078 * c-valprint.c: Sort headers.
11079 * c-typeprint.c: Sort headers.
11080 * c-lang.c: Sort headers.
11081 * buildsym.c: Sort headers.
11082 * buildsym-legacy.c: Sort headers.
11083 * build-id.h: Sort headers.
11084 * build-id.c: Sort headers.
11085 * btrace.c: Sort headers.
11086 * bsd-uthread.c: Sort headers.
11087 * breakpoint.h: Sort headers.
11088 * breakpoint.c: Sort headers.
11089 * break-catch-throw.c: Sort headers.
11090 * break-catch-syscall.c: Sort headers.
11091 * break-catch-sig.c: Sort headers.
11092 * blockframe.c: Sort headers.
11093 * block.c: Sort headers.
11094 * bfin-tdep.c: Sort headers.
11095 * bfin-linux-tdep.c: Sort headers.
11096 * bfd-target.c: Sort headers.
11097 * bcache.c: Sort headers.
11098 * ax-general.c: Sort headers.
11099 * ax-gdb.h: Sort headers.
11100 * ax-gdb.c: Sort headers.
11101 * avr-tdep.c: Sort headers.
11102 * auxv.c: Sort headers.
11103 * auto-load.c: Sort headers.
11104 * arm-wince-tdep.c: Sort headers.
11105 * arm-tdep.c: Sort headers.
11106 * arm-symbian-tdep.c: Sort headers.
11107 * arm-pikeos-tdep.c: Sort headers.
11108 * arm-obsd-tdep.c: Sort headers.
11109 * arm-nbsd-tdep.c: Sort headers.
11110 * arm-nbsd-nat.c: Sort headers.
11111 * arm-linux-tdep.c: Sort headers.
11112 * arm-linux-nat.c: Sort headers.
11113 * arm-fbsd-tdep.c: Sort headers.
11114 * arm-fbsd-nat.c: Sort headers.
11115 * arm-bsd-tdep.c: Sort headers.
11116 * arch-utils.c: Sort headers.
11117 * arc-tdep.c: Sort headers.
11118 * arc-newlib-tdep.c: Sort headers.
11119 * annotate.h: Sort headers.
11120 * annotate.c: Sort headers.
11121 * amd64-windows-tdep.c: Sort headers.
11122 * amd64-windows-nat.c: Sort headers.
11123 * amd64-tdep.c: Sort headers.
11124 * amd64-sol2-tdep.c: Sort headers.
11125 * amd64-obsd-tdep.c: Sort headers.
11126 * amd64-obsd-nat.c: Sort headers.
11127 * amd64-nbsd-tdep.c: Sort headers.
11128 * amd64-nbsd-nat.c: Sort headers.
11129 * amd64-nat.c: Sort headers.
11130 * amd64-linux-tdep.c: Sort headers.
11131 * amd64-linux-nat.c: Sort headers.
11132 * amd64-fbsd-tdep.c: Sort headers.
11133 * amd64-fbsd-nat.c: Sort headers.
11134 * amd64-dicos-tdep.c: Sort headers.
11135 * amd64-darwin-tdep.c: Sort headers.
11136 * amd64-bsd-nat.c: Sort headers.
11137 * alpha-tdep.c: Sort headers.
11138 * alpha-obsd-tdep.c: Sort headers.
11139 * alpha-nbsd-tdep.c: Sort headers.
11140 * alpha-mdebug-tdep.c: Sort headers.
11141 * alpha-linux-tdep.c: Sort headers.
11142 * alpha-linux-nat.c: Sort headers.
11143 * alpha-bsd-tdep.c: Sort headers.
11144 * alpha-bsd-nat.c: Sort headers.
11145 * aix-thread.c: Sort headers.
11146 * agent.c: Sort headers.
11147 * addrmap.c: Sort headers.
11148 * ada-varobj.c: Sort headers.
11149 * ada-valprint.c: Sort headers.
11150 * ada-typeprint.c: Sort headers.
11151 * ada-tasks.c: Sort headers.
11152 * ada-lang.c: Sort headers.
11153 * aarch64-tdep.c: Sort headers.
11154 * aarch64-ravenscar-thread.c: Sort headers.
11155 * aarch64-newlib-tdep.c: Sort headers.
11156 * aarch64-linux-tdep.c: Sort headers.
11157 * aarch64-linux-nat.c: Sort headers.
11158 * aarch64-fbsd-tdep.c: Sort headers.
11159 * aarch64-fbsd-nat.c: Sort headers.
11160 * aarch32-linux-nat.c: Sort headers.
11161
11162 2019-04-04 Tom Tromey <tom@tromey.com>
11163
11164 * varobj.c (varobj_create): Update.
11165 * rust-exp.y (struct rust_parser) <update_innermost_block,
11166 lookup_symbol>: New methods.
11167 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11168 Rename.
11169 (rust_parser::rust_lookup_type)
11170 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11171 * printcmd.c (display_command, do_one_display): Update.
11172 * parser-defs.h (struct parser_state) <parser_state>: Add
11173 "tracker" parameter.
11174 (block_tracker): New member.
11175 (class innermost_block_tracker) <innermost_block_tracker>: Add
11176 "types" parameter.
11177 <reset>: Remove method.
11178 (innermost_block): Don't declare.
11179 (null_post_parser): Update.
11180 * parse.c (innermost_block): Remove global.
11181 (write_dollar_variable): Update.
11182 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11183 Remove "tracker_types" parameter.
11184 (parse_expression): Add "tracker" parameter.
11185 (parse_expression_for_completion): Update.
11186 (null_post_parser): Add "tracker" parameter.
11187 * p-exp.y: Update rules.
11188 * m2-exp.y: Update rules.
11189 * language.h (struct language_defn) <la_post_parser>: Add
11190 "tracker" parameter.
11191 * go-exp.y: Update rules.
11192 * f-exp.y: Update rules.
11193 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11194 parameter.
11195 * d-exp.y: Update rules.
11196 * c-exp.y: Update rules.
11197 * breakpoint.c (set_breakpoint_condition): Create an
11198 innermost_block_tracker.
11199 (watch_command_1): Likewise.
11200 * ada-lang.c (resolve): Add "tracker" parameter.
11201 (resolve_subexp): Likewise.
11202 * ada-exp.y (write_var_from_sym): Update.
11203
11204 2019-04-04 Tom Tromey <tom@tromey.com>
11205
11206 * type-stack.h: New file.
11207 * type-stack.c: New file.
11208 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11209 type-stack.h.
11210 (insert_into_type_stack, insert_type, push_type, push_type_int)
11211 (insert_type_address_space, pop_type, pop_type_int)
11212 (pop_typelist, pop_type_stack, append_type_stack)
11213 (push_type_stack, get_type_stack, push_typelist)
11214 (follow_type_instance_flags, follow_types): Don't declare.
11215 * parse.c (type_stack): Remove global.
11216 (parse_exp_in_context): Update.
11217 (insert_into_type_stack, insert_type, push_type, push_type_int)
11218 (insert_type_address_space, pop_type, pop_type_int)
11219 (pop_typelist, pop_type_stack, append_type_stack)
11220 (push_type_stack, get_type_stack, push_typelist)
11221 (follow_type_instance_flags, follow_types): Remove (moved to
11222 type-stack.c).
11223 * f-exp.y (type_stack): New global.
11224 Update rules.
11225 (push_kind_type, f_parse): Update.
11226 * d-exp.y (type_stack): New global.
11227 Update rules.
11228 (d_parse): Update.
11229 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11230 Update rules.
11231 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11232 (HFILES_NO_SRCDIR): Add type-stack.h.
11233
11234 2019-04-04 Tom Tromey <tom@tromey.com>
11235
11236 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11237 (rust_parser::convert_ast_to_expression, rust_parse)
11238 (rust_lex_test_completion, rust_lex_tests): Update.
11239 * parser-defs.h (struct expr_completion_state): New.
11240 (struct parser_state) <parser_state>: Add completion parameter.
11241 <mark_struct_expression, mark_completion_tag>: New methods.
11242 <parse_completion, m_completion_state>: New members.
11243 (prefixify_expression, null_post_parser): Update.
11244 (mark_struct_expression, mark_completion_tag): Don't declare.
11245 * parse.c (parse_completion, expout_last_struct)
11246 (expout_tag_completion_type, expout_completion_name): Remove
11247 globals.
11248 (parser_state::mark_struct_expression)
11249 (parser_state::mark_completion_tag): Now methods.
11250 (prefixify_expression): Add last_struct parameter.
11251 (prefixify_subexp): Likewise.
11252 (parse_exp_1): Update.
11253 (parse_exp_in_context): Add cstate parameter. Update.
11254 (parse_expression_for_completion): Create an
11255 expr_completion_state.
11256 (null_post_parser): Add "completion" parameter.
11257 * p-exp.y: Update rules.
11258 (yylex): Update.
11259 * language.h (struct language_defn) <la_post_parser>: Add
11260 "completing" parameter.
11261 * go-exp.y: Update rules.
11262 (lex_one_token): Update.
11263 * expression.h (parse_completion): Don't declare.
11264 * d-exp.y: Update rules.
11265 (lex_one_token): Update rules.
11266 * c-exp.y: Update rules.
11267 (lex_one_token): Update.
11268 * ada-lang.c (resolve): Add "parse_completion" parameter.
11269 (resolve_subexp): Likewise.
11270 (ada_resolve_function): Likewise.
11271
11272 2019-04-04 Tom Tromey <tom@tromey.com>
11273
11274 * parser-defs.h (struct parser_state) <start_arglist,
11275 end_arglist>: New methods.
11276 <arglist_len, m_funcall_chain>: New members.
11277 (arglist_len, start_arglist, end_arglist): Don't declare.
11278 * parse.c (arglist_len, funcall_chain): Remove global.
11279 (start_arglist, end_arglist): Remove functions.
11280 (parse_exp_in_context): Update.
11281 * p-exp.y: Update rules.
11282 * m2-exp.y: Update rules.
11283 * go-exp.y: Update rules.
11284 * f-exp.y: Update rules.
11285 * d-exp.y: Update rules.
11286 * c-exp.y: Update rules.
11287
11288 2019-04-04 Tom Tromey <tom@tromey.com>
11289
11290 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11291 lex_operator, push_back>: New methods.
11292 Update all rules.
11293 (rust_parser::lex_hex, lex_escape): Rename and update.
11294 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11295 (rust_parser::lex_operator): Rename and update.
11296 (rust_parser::lex_number, rustyylex, rustyyerror)
11297 (rust_lex_test_init, rust_lex_test_sequence)
11298 (rust_lex_test_push_back, rust_lex_tests): Update.
11299 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11300 parameter.
11301 <lexptr, prev_lexptr>: New members.
11302 (lexptr, prev_lexptr): Don't declare.
11303 * parse.c (lexptr, prev_lexptr): Remove globals.
11304 (parse_exp_in_context): Update.
11305 * p-exp.y (yylex, yyerror): Update.
11306 * m2-exp.y (parse_number, yylex, yyerror): Update.
11307 * go-exp.y (lex_one_token, yyerror): Update.
11308 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11309 * d-exp.y (lex_one_token, yyerror): Update.
11310 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11311 (lex_one_token, yyerror): Update.
11312 * ada-lex.l (YY_INPUT): Update.
11313 (rewind_to_char): Update.
11314 * ada-exp.y (yyerror): Update.
11315
11316 2019-04-04 Tom Tromey <tom@tromey.com>
11317
11318 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11319 * parser-defs.h (struct parser_state) <parser_state>: Add new
11320 parameter.
11321 <comma_terminates>: New member.
11322 (comma_terminates): Don't declare global.
11323 * parse.c (comma_terminates): Remove global.
11324 (parse_exp_in_context): Update.
11325 * p-exp.y (yylex): Update.
11326 * m2-exp.y (yylex): Update.
11327 * go-exp.y (lex_one_token): Update.
11328 * f-exp.y (yylex): Update.
11329 * d-exp.y (lex_one_token): Update.
11330 * c-exp.y (lex_one_token): Update.
11331 * ada-lex.l: Update.
11332
11333 2019-04-04 Tom Tromey <tom@tromey.com>
11334
11335 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11336 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11337 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11338 * parser-defs.h (paren_depth): Don't declare.
11339 * parse.c (paren_depth): Remove global.
11340 (parse_exp_in_context): Update.
11341 * p-exp.y (paren_depth): New global.
11342 (pascal_parse): Initialize it.
11343 * m2-exp.y (paren_depth): New global.
11344 (m2_parse): Initialize it.
11345 * go-exp.y (paren_depth): New global.
11346 (go_parse): Initialize it.
11347 * f-exp.y (paren_depth): New global.
11348 (f_parse): Initialize it.
11349 * d-exp.y (paren_depth): New global.
11350 (d_parse): Initialize it.
11351 * c-exp.y (paren_depth): New global.
11352 (c_parse): Initialize it.
11353 * ada-lex.l (paren_depth): New global.
11354 (lexer_init): Initialize it.
11355
11356 2019-04-04 Tom Tromey <tom@tromey.com>
11357
11358 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11359 (rust_parser::convert_ast_to_type)
11360 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11361 * parser-defs.h (struct parser_state) <parser_state>: Add
11362 parameters. Initialize new members.
11363 <expression_context_block, expression_context_pc>: New members.
11364 * parse.c (expression_context_block, expression_context_pc):
11365 Remove globals.
11366 (parse_exp_in_context): Update.
11367 * p-exp.y: Update all rules.
11368 (yylex): Update.
11369 * m2-exp.y: Update all rules.
11370 (yylex): Update.
11371 * go-exp.y (yylex): Update.
11372 * f-exp.y (yylex): Update.
11373 * d-exp.y: Update all rules.
11374 (yylex): Update.
11375 * c-exp.y: Update all rules.
11376 (lex_one_token, classify_name, yylex, c_parse): Update.
11377 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11378
11379 2019-04-04 Tom Tromey <tom@tromey.com>
11380
11381 * gdbarch.h, gdbarch.c: Rebuild.
11382 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11383 * stap-probe.h:
11384 (struct stap_parse_info): Replace "parser_state" with
11385 "expr_builder".
11386 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11387 (parser_state): New class.
11388 * parse.c (expr_builder): Rename.
11389 (expr_builder::release): Rename.
11390 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11391 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11392 (write_exp_elt_longcst, write_exp_elt_floatcst)
11393 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11394 (write_exp_string_vector, write_exp_bitstring)
11395 (write_exp_msymbol, mark_struct_expression)
11396 (write_dollar_variable)
11397 (insert_type_address_space, increase_expout_size): Replace
11398 "parser_state" with "expr_builder".
11399 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11400 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11401 "parser_state" with "expr_builder".
11402
11403 2019-04-04 Tom Tromey <tom@tromey.com>
11404
11405 * rust-exp.y: Replace "parse_language" with method call.
11406 * p-exp.y:
11407 (yylex): Replace "parse_language" with method call.
11408 * m2-exp.y:
11409 (yylex): Replace "parse_language" with method call.
11410 * go-exp.y (classify_name): Replace "parse_language" with method
11411 call.
11412 * f-exp.y (yylex): Replace "parse_language" with method call.
11413 * d-exp.y (lex_one_token): Replace "parse_language" with method
11414 call.
11415 * c-exp.y:
11416 (lex_one_token, classify_name, yylex): Replace "parse_language"
11417 with method call.
11418 * ada-exp.y (find_primitive_type, type_char)
11419 (type_system_address): Replace "parse_language" with method call.
11420
11421 2019-04-04 Tom Tromey <tom@tromey.com>
11422
11423 * rust-exp.y: Replace "parse_gdbarch" with method call.
11424 * parse.c (write_dollar_variable, insert_type_address_space):
11425 Replace "parse_gdbarch" with method call.
11426 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11427 call.
11428 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11429 call.
11430 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11431 "parse_gdbarch" with method call.
11432 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11433 with method call.
11434 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11435 "parse_gdbarch" with method call.
11436 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11437 "parse_gdbarch" with method call.
11438 * c-exp.y (parse_type, parse_number, classify_name): Replace
11439 "parse_gdbarch" with method call.
11440 * ada-lex.l: Replace "parse_gdbarch" with method call.
11441 * ada-exp.y (parse_type, find_primitive_type, type_char)
11442 (type_system_address): Replace "parse_gdbarch" with method call.
11443
11444 2019-04-04 Tom Tromey <tom@tromey.com>
11445
11446 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11447 * stap-probe.c (stap_parse_argument): Update.
11448 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11449 initial_size parameter.
11450 * rust-exp.y (rust_lex_tests): Update.
11451 * parse.c (parser_state): Update.
11452 (parse_exp_in_context): Update.
11453 * parser-defs.h (struct parser_state) <parser_state>: Remove
11454 "initial_size" parameter.
11455
11456 2019-04-04 Tom Tromey <tom@tromey.com>
11457
11458 * parser-defs.h (increase_expout_size): Don't declare.
11459 * parse.c (increase_expout_size): Now static.
11460
11461 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11462
11463 * gnu-nat.c (gnu_nat_target::wait): Fix
11464 target_waitstatus_to_string call.
11465
11466 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11467
11468 * eval.c (evaluate_subexp_standard): Handle internal functions
11469 during Fortran function call handling.
11470
11471 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11472
11473 * NEWS: Mention new internal functions.
11474 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11475 (read_base_type): Use dwarf2_init_complex_target_type.
11476 * value.c (creal_internal_fn): New function.
11477 (cimag_internal_fn): New function.
11478 (_initialize_values): Register new internal functions.
11479
11480 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11481
11482 * infrun.c (stop_all_threads): If debug_infrun, always
11483 trace the wait status after wait_one, using
11484 target_waitstatus_to_string and target_pid_to_str.
11485 (handle_inferior_event): Replace various trace of
11486 wait status kind by a single trace.
11487 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11488 wait status kind image by target_waitstatus_to_string.
11489 * target/waitstatus.c (target_waitstatus_to_string): Fix
11490 obsolete comment.
11491
11492 2019-04-01 Tom Tromey <tromey@adacore.com>
11493
11494 PR symtab/23331:
11495 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11496
11497 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11498 Pedro Alves <palves@redhat.com>
11499
11500 * top.c (quit_force): Call 'finalize_values'.
11501 * value.c (finalize_values): New function.
11502 * value.h (finalize_values): Declare.
11503
11504 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11505
11506 * NEWS: Announce $_gdb_major and $_gdb_minor.
11507
11508 * top.c (init_gdb_version_vars): New function.
11509 (gdb_init): Call init_gdb_version_vars.
11510
11511 2019-03-29 Tom Tromey <tromey@adacore.com>
11512
11513 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11514 help text. Remove dead code.
11515
11516 2019-03-29 Keith Seitz <keiths@redhat.com>
11517
11518 From Siddhesh Poyarekar:
11519 * f-lang.h (f77_get_upperbound): Return LONGEST.
11520 (f77_get_lowerbound): Likewise.
11521 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11522 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11523 print them.
11524 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11525 plongest to format print it.
11526 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11527 (f77_get_upperbound): Likewise.
11528 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11529 LOWER_BOUND to LONGEST.
11530 (f77_create_arrayprint_offset_tbl): Likewise.
11531
11532 2019-03-29 Keith Seitz <keiths@redhat.com>
11533
11534 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11535 %s/pulongest for TYPE_LENGTH instead of %d in format
11536 strings.
11537 * ada-typerint.c (ada_print_type): Likewise.
11538 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11539 * compile/compile-c-support.c (generate_register_struct): Likewise.
11540 * gdbtypes.c (recursive_dump_type): Likewise.
11541 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11542 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11543 instead of %d in format strings.
11544 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11545 to std::min to ULONGEST.
11546 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11547 instead of %d in format strings.
11548 * tracepoint.c (info_scope_command): Likewise.
11549 * typeprint.c (print_offset_data::update)
11550 (print_offset_data::finish): Likewise.
11551 * xtensa-tdep.c (xtensa_store_return_value)
11552 (xtensa_push_dummy_call): Likewise.
11553
11554 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11555
11556 * windows-nat.c (display_selector): Fixed format specifications
11557 for 64-bit Cygwin.
11558
11559 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11560
11561 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11562
11563 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11564
11565 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11566 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11567 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11568 (nios2_linux_init_abi): Install it.
11569
11570 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11571
11572 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11573
11574 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11575
11576 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11577
11578 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11579 Tom Tromey <tromey@adacore.com>
11580
11581 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11582
11583 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11584
11585 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11586 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11587 method to compute the bounds of range types. Also print "[evaluated]"
11588 if the bounds' values come from a dynamic evaluation.
11589
11590 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11591
11592 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11593 whitespace when pretty printing is on.
11594
11595 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11596
11597 * ppc-linux-nat.c: Add include.
11598
11599 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11600
11601 * NEWS: Mention AArch64 Pointer Authentication.
11602
11603 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11604
11605 * arm-linux-nat.c: Add include.
11606
11607 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11608
11609 * source-cache.c (source_cache::get_source_lines): Re-read
11610 fullname after calling open_source_file.
11611
11612 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11613
11614 * NEWS: Mention TLS support for FreeBSD.
11615
11616 2019-03-25 Tom Tromey <tromey@adacore.com>
11617
11618 * minsyms.c (BUNCH_SIZE): Update comment.
11619 (~minimal_symbol_reader): Remove old comment.
11620 (compact_minimal_symbols): Update comment.
11621 (minimal_symbol_reader::install): Remove old comment. Update
11622 other comments.
11623
11624 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11625
11626 * s390-linux-nat.c: Add include.
11627
11628 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11629
11630 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11631 Call linux_get_hwcap.
11632 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11633 Likewise.
11634 (aarch64_linux_get_hwcap): Remove function.
11635 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11636 declaration.
11637 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11638 linux_get_hwcap.
11639 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11640 * linux-tdep.c (linux_get_hwcap): Add function.
11641 (linux_get_hwcap2): Likewise.
11642 * linux-tdep.h (linux_get_hwcap): Add declaration.
11643 (linux_get_hwcap2): Likewise.
11644 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11645 (ppc_linux_get_hwcap2): Likewise.
11646 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11647 linux_get_hwcap.
11648 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11649 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11650 (ppc_linux_nat_target::read_description): Likewise.
11651 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11652 * s390-linux-nat.c: Likewise.
11653 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11654
11655 2019-03-24 Tom Tromey <tom@tromey.com>
11656
11657 * ada-lang.c (standard_lookup): Simplify initialization.
11658 (ada_lookup_symbol_nonlocal): Simplify return.
11659 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11660 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11661 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11662 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11663 initialization.
11664 * solib.c (solib_global_lookup): Simplify.
11665 * symtab.c (null_block_symbol): Remove.
11666 (symbol_cache_lookup): Simplify returns.
11667 (lookup_language_this): Simplify returns.
11668 (lookup_symbol_aux): Simplify return.
11669 (lookup_local_symbol): Simplify returns.
11670 (lookup_global_symbol_from_objfile): Simplify return.
11671 (lookup_symbol_in_objfile_symtabs)
11672 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11673 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11674 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11675 * cp-namespace.c (cp_lookup_bare_symbol)
11676 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11677 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11678 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11679 (cp_lookup_symbol_via_imports): Simplify initialization.
11680 (find_symbol_in_baseclass): Likewise.
11681 * symtab.h (null_block_symbol): Remove.
11682 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11683 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11684 (d_lookup_symbol_module): Likewise.
11685 (find_symbol_in_baseclass): Simplify initialization.
11686
11687 2019-03-24 Tom Tromey <tom@tromey.com>
11688
11689 * expression.h: Don't include symtab.h.
11690 (struct block): Forward declare.
11691
11692 2019-03-24 Tom Tromey <tom@tromey.com>
11693
11694 * c-exp.y (typebase): Remove casts.
11695 * gdbtypes.c (lookup_unsigned_typename, )
11696 (lookup_signed_typename): Remove cast.
11697 * eval.c (parse_to_comma_and_eval): Remove cast.
11698 * parse.c (write_dollar_variable): Remove cast.
11699 * block.h (struct block) <superblock>: Now const.
11700 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11701 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11702 (map_block): Make "block" const.
11703 * symfile.h (struct quick_symbol_functions)
11704 <map_matching_symbols>: Constify block argument to "callback".
11705 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11706 const.
11707 (find_pc_sect_compunit_symtab): Make "b" const.
11708 (find_symbol_at_address): Likewise.
11709 (search_symbols): Likewise.
11710 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11711 (dw2_debug_names_lookup_symbol): Likewise.
11712 (dw2_map_matching_symbols): Update.
11713 * p-valprint.c (pascal_val_print): Remove "block".
11714 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11715 (aux_add_nonlocal_symbols): Make "block" const.
11716 (resolve_subexp): Remove cast.
11717 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11718 const.
11719 (iterate_over_file_blocks): Likewise.
11720 * f-exp.y (%union) <bval>: Remove.
11721 * coffread.c (patch_opaque_types): Make "b" const.
11722 * spu-tdep.c (spu_catch_start): Make "block" const.
11723 * c-valprint.c (print_unpacked_pointer): Remove "block".
11724 * symmisc.c (dump_symtab_1): Make "b" const.
11725 (block_depth): Make "block" const.
11726 * d-exp.y (%union) <bval>: Remove.
11727 * cp-support.h (cp_lookup_rtti_type): Update.
11728 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11729 * psymtab.c (psym_lookup_symbol): Make "block" const.
11730 (maintenance_check_psymtabs): Make "b" const.
11731 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11732 (enumerate_locals, enumerate_args): Update.
11733 * python/py-symtab.c (stpy_global_block): Make "block" const.
11734 (stpy_static_block): Likewise.
11735 * inline-frame.c (block_starting_point_at): Make "new_block"
11736 const.
11737 * block.c (find_block_in_blockvector): Make return type const.
11738 (blockvector_for_pc_sect): Make "b" const.
11739 (find_block_in_blockvector): Make "b" const.
11740
11741 2019-03-23 Tom Tromey <tom@tromey.com>
11742
11743 * varobj.c (varobj_create): Update.
11744 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11745 * printcmd.c (display_command, do_one_display): Don't reset
11746 innermost_block.
11747 * parser-defs.h (enum innermost_block_tracker_type): Move to
11748 expression.h.
11749 (innermost_block): Update comment.
11750 * parse.c (parse_exp_1): Add tracker_types parameter.
11751 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11752 tracker_types parameter. Reset innermost_block.
11753 (parse_exp_in_context): Remove.
11754 (parse_expression_for_completion): Update.
11755 * objfiles.c (~objfile): Don't reset expression_context_block or
11756 innermost_block.
11757 * expression.h (enum innermost_block_tracker_type): Move from
11758 parser-defs.h.
11759 (parse_exp_1): Add tracker_types parameter.
11760 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11761 reset innermost_block.
11762
11763 2019-03-23 Tom Tromey <tom@tromey.com>
11764
11765 * objfiles.h: Include bcache.h.
11766
11767 2019-03-23 Tom Tromey <tom@tromey.com>
11768
11769 * linespec.c (get_current_search_block): Use
11770 scoped_restore_current_language.
11771 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11772
11773 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11774 Jiong Wang <jiong.wang@arm.com>
11775
11776 * aarch64-linux-tdep.c
11777 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11778 section.
11779 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11780
11781 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11782 Jiong Wang <jiong.wang@arm.com>
11783
11784 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11785 instructions.
11786 (aarch64_analyze_prologue_test): Add PACIASP test.
11787 (aarch64_prologue_prev_register): Unmask PC value.
11788
11789 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11790 Jiong Wang <jiong.wang@arm.com>
11791
11792 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11793 (aarch64_dwarf2_prev_register): Unmask PC value.
11794 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11795 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11796 DW_CFA_AARCH64_negate_ra_state.
11797 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11798
11799 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11800 Jiong Wang <jiong.wang@arm.com>
11801
11802 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11803 registers.
11804 (aarch64_pseudo_register_name): Likewise.
11805 (aarch64_pseudo_register_type): Likewise.
11806 (aarch64_pseudo_register_reggroup_p): Likewise.
11807 (aarch64_gdbarch_init): Add pauth registers.
11808 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11809 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11810 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11811 (struct gdbarch_tdep): Add regnum for ra_state.
11812
11813 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11814 Jiong Wang <jiong.wang@arm.com>
11815
11816 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11817
11818 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11819 Jiong Wang <jiong.wang@arm.com>
11820
11821 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11822 function.
11823 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11824 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11825 (aarch64_gdbarch_init): Add puth registers.
11826 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11827 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11828 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11829
11830 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11831 Jiong Wang <jiong.wang@arm.com>
11832
11833 * aarch64-linux-nat.c
11834 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11835 * aarch64-linux-tdep.c
11836 (aarch64_linux_core_read_description): Likewise.
11837 (aarch64_linux_get_hwcap): New function.
11838 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11839 (aarch64_linux_get_hwcap): New declaration.
11840
11841 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11842 Jiong Wang <jiong.wang@arm.com>
11843
11844 * aarch64-linux-nat.c
11845 (aarch64_linux_nat_target::read_description): Add pauth param.
11846 * aarch64-linux-tdep.c
11847 (aarch64_linux_core_read_description): Likewise.
11848 * aarch64-tdep.c (struct target_desc): Add in pauth.
11849 (aarch64_read_description): Add pauth param.
11850 (aarch64_gdbarch_init): Likewise.
11851 * aarch64-tdep.h (aarch64_read_description): Likewise.
11852 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11853 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11854 * features/Makefile: Add new files.
11855 * features/aarch64-pauth.c: New file.
11856 * features/aarch64-pauth.xml: New file.
11857
11858 2019-03-20 Tom Tromey <tromey@adacore.com>
11859
11860 * infrun.c (handle_inferior_event): Rename from
11861 handle_inferior_event_1. Create a scoped_value_mark.
11862 (handle_inferior_event): Remove.
11863
11864 2019-03-19 Tom Tromey <tromey@adacore.com>
11865
11866 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11867 * infrun.h (print_stop_event): Add "displays" parameter.
11868 * infrun.c (print_stop_event): Add "displays" parameter.
11869
11870 2019-03-19 Pedro Alves <palves@redhat.com>
11871
11872 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11873 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11874 to -1. Fix TABs vs spaces.
11875 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11876 * tui/tui-out.h (tui_ui_out) Add intro comments.
11877 <m_line, m_start_of_line>: In-class initialize, and add describing
11878 comment.
11879
11880 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11881
11882 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11883 variable names.
11884 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11885
11886 2019-03-18 Pedro Alves <palves@redhat.com>
11887 Eli Zaretskii <eliz@gnu.org>
11888
11889 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11890 m_line and m_start_of_line.
11891
11892 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11893
11894 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11895 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11896 it returns a newline. This fixes a regression in TU mode, whereby
11897 the next line is output on the same screen line as the user input.
11898
11899 2019-03-18 Tom Tromey <tromey@adacore.com>
11900
11901 * minsyms.c (minimal_symbol_reader::install): Remove call to
11902 obstack_blank.
11903
11904 2019-03-18 Pedro Alves <palves@redhat.com>
11905
11906 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11907 New globals.
11908 (apply_style): New, factored out from ...
11909 (apply_ansi_escape): ... this. Handle reverse video mode.
11910 (tui_set_reverse_mode): New function.
11911 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11912 * tui/tui-winsource.c (tui_show_source_line): Use
11913 tui_set_reverse_mode instead of setting A_STANDOUT.
11914 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11915 New setter methods.
11916
11917 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11918
11919 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11920 Handle tabs.
11921
11922 2019-03-18 Tom Tromey <tromey@adacore.com>
11923
11924 * ada-lang.c (empty_array): Add "high" parameter.
11925 (ada_evaluate_subexp): Update.
11926
11927 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11928
11929 * unittests/string_view-selftests.c: Define
11930 _initialize_string_view_selftests unconditionally.
11931
11932 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11933
11934 PR gdb/24350
11935 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11936
11937 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11938
11939 PR gdb/24351
11940 * windows-nat.c (display_selector): Fix format specifiers.
11941
11942 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11943
11944 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11945 tui_refill_source_window instead of tui_refresh_win, to update the
11946 current execution line. This fixes redisplay of the current line
11947 when stepping through the code with "next" or "step".
11948
11949 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11950
11951 * source-cache.c (source_cache::get_source_lines): Call
11952 find_source_lines to initialize s->nlines. This fixes vertical
11953 scrolling of TUI source window when the DOWN arrow is pressed.
11954
11955 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11956
11957 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11958 linux-thread-db.c (_initialize_thread_db): Likewise.
11959
11960 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11961
11962 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11963 wclrtoeol in tui_show_source_line". This reverts changes made in
11964 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11965
11966 2019-03-15 Tom Tromey <tom@tromey.com>
11967
11968 * symtab.h (struct minimal_symbol): Derive from
11969 general_symbol_info.
11970 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11971 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11972 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11973 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11974 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11975 (MSYMBOL_SEARCH_NAME): Update.
11976 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11977 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11978 * minsyms.c (minimal_symbol_reader::record_full): Update.
11979
11980 2019-03-15 Tom Tromey <tom@tromey.com>
11981
11982 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11983
11984 2019-03-15 Tom Tromey <tom@tromey.com>
11985
11986 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11987 unique_xmalloc_ptr.
11988 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11989 Update.
11990 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11991 (build_minimal_symbol_hash_tables)
11992 (minimal_symbol_reader::install): Update.
11993
11994 2019-03-15 Tom Tromey <tom@tromey.com>
11995
11996 * symtab.c (create_demangled_names_hash): Update.
11997 (symbol_set_names): Update.
11998 * objfiles.h (struct objfile_per_bfd_storage)
11999 <demangled_names_hash>: Now an htab_up.
12000 * objfiles.c (objfile_per_bfd_storage): Simplify.
12001
12002 2019-03-15 Tom Tromey <tom@tromey.com>
12003
12004 * objfiles.h (struct objfile_per_bfd_storage): Declare
12005 destructor.
12006 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12007 New.
12008 (get_objfile_bfd_data): Use new. Don't initialize
12009 language_of_main.
12010 (free_objfile_per_bfd_storage): Remove.
12011 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12012
12013 2019-03-15 Tom Tromey <tom@tromey.com>
12014
12015 * symfile.c (reread_symbols): Update.
12016 * objfiles.c (objfile::objfile): Update.
12017 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12018 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12019 comment.
12020 (minimal_symbol_reader::install): Update.
12021 (terminate_minimal_symbol_table): Remove.
12022 * jit.c (jit_object_close_impl): Update.
12023
12024 2019-03-15 Tom Tromey <tom@tromey.com>
12025
12026 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12027 initializations.
12028
12029 2019-03-15 Tom Tromey <tom@tromey.com>
12030
12031 * objfiles.h (struct objfile_per_bfd_storage)
12032 <demangled_hash_languages>: Now a bitset.
12033 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12034 (lookup_minimal_symbol): Update.
12035
12036 2019-03-15 Tom Tromey <tom@tromey.com>
12037
12038 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12039 Don't return the symbol.
12040 * coffread.c (record_minimal_symbol): Use record_full.
12041
12042 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12043
12044 The MS-Windows port of ncurses fails to switch to a color pair if
12045 one or both of the colors are the implicit default colors. This
12046 change records the default colors when TUI is initialized, and
12047 then specifies them explicitly when a color pair uses the default
12048 colors. This allows color styling in TUI mode on MS-Windows.
12049
12050 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12051 ncurses_norm_attr.
12052 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12053 colors in ncurses_norm_attr.
12054 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12055 "none", replace it with the default color recorded in
12056 ncurses_norm_attr.
12057
12058 2019-03-14 Tom Tromey <tromey@adacore.com>
12059
12060 * source-cache.h (class source_cache) <get_source_lines>: Return
12061 std::string.
12062 * source-cache.c (source_cache::extract_lines): Handle case where
12063 first_pos==npos. Return std::string.
12064 (source_cache::get_source_lines): Update.
12065
12066 2019-03-14 Tom Tromey <tromey@adacore.com>
12067
12068 * NEWS: Add item for "style sources" commands.
12069 * source-cache.c (source_cache::get_source_lines): Check
12070 source_styling.
12071 * cli/cli-style.c (source_styling): New global.
12072 (_initialize_cli_style): Add "style sources" commands.
12073 (show_style_sources): New function.
12074 * cli/cli-style.h (source_styling): Declare.
12075
12076 2019-03-14 Pedro Alves <palves@redhat.com>
12077 Tom Tromey <tromey@adacore.com>
12078
12079 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12080 * tui/tui-winsource.c (tui_refill_source_window): New function,
12081 from...
12082 (tui_horizontal_source_scroll): ... here. Move some logic.
12083 * cli/cli-style.c (set_style_enabled): Notify new observable.
12084 * tui/tui-hooks.c (tui_redisplay_source): New function.
12085 (tui_attach_detach_observers): Attach or detach
12086 tui_redisplay_source.
12087 * observable.h (source_styling_changed): New observable.
12088 * observable.c: Define source_styling_changed observable.
12089
12090 2019-03-13 Tom Tromey <tromey@adacore.com>
12091
12092 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12093 (i386_gnu_nat_target::store_registers): Update.
12094 * target-debug.h (target_debug_print_std_string): New macro.
12095 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12096 * windows-tdep.c (display_one_tib): Update.
12097 * tui/tui-stack.c (tui_make_status_line): Update.
12098 * top.c (print_inferior_quit_action): Update.
12099 * thread.c (thr_try_catch_cmd): Update.
12100 (add_thread_with_info): Update.
12101 (thread_target_id_str): Update.
12102 (thr_try_catch_cmd): Update.
12103 (thread_command): Update.
12104 (thread_find_command): Update.
12105 * record-btrace.c (record_btrace_target::info_record)
12106 (record_btrace_resume_thread, record_btrace_target::resume)
12107 (record_btrace_cancel_resume, record_btrace_step_thread)
12108 (record_btrace_target::wait, record_btrace_target::wait)
12109 (record_btrace_target::wait, record_btrace_target::stop): Update.
12110 * progspace.c (print_program_space): Update.
12111 * process-stratum-target.c
12112 (process_stratum_target::thread_address_space): Update.
12113 * linux-fork.c (linux_fork_mourn_inferior)
12114 (detach_checkpoint_command, info_checkpoints_command)
12115 (linux_fork_context): Update.
12116 (linux_fork_detach): Update.
12117 (class scoped_switch_fork_info): Update.
12118 (delete_checkpoint_command): Update.
12119 * infrun.c (follow_fork_inferior): Update.
12120 (follow_fork_inferior): Update.
12121 (proceed_after_vfork_done): Update.
12122 (handle_vfork_child_exec_or_exit): Update.
12123 (follow_exec): Update.
12124 (displaced_step_prepare_throw): Update.
12125 (displaced_step_restore): Update.
12126 (start_step_over): Update.
12127 (resume_1): Update.
12128 (clear_proceed_status_thread): Update.
12129 (proceed): Update.
12130 (print_target_wait_results): Update.
12131 (do_target_wait): Update.
12132 (context_switch): Update.
12133 (stop_all_threads): Update.
12134 (restart_threads): Update.
12135 (finish_step_over): Update.
12136 (handle_signal_stop): Update.
12137 (switch_back_to_stepped_thread): Update.
12138 (keep_going_pass_signal): Update.
12139 (print_exited_reason): Update.
12140 (normal_stop): Update.
12141 * inferior.c (inferior_pid_to_str): Change return type.
12142 (print_selected_inferior): Update.
12143 (add_inferior): Update.
12144 (detach_inferior): Update.
12145 * dummy-frame.c (fprint_dummy_frames): Update.
12146 * dcache.c (dcache_info_1): Update.
12147 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12148 (btrace_fetch, btrace_clear): Update.
12149 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12150 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12151 type.
12152 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12153 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12154 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12155 * gdbarch.c, gdbarch.h: Rebuild.
12156 * gdbarch.sh (core_pid_to_str): Change return type.
12157 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12158 return type.
12159 (windows_nat_target::pid_to_str): Change return type.
12160 (windows_delete_thread): Update.
12161 (windows_nat_target::attach): Update.
12162 (windows_nat_target::files_info): Update.
12163 * target-delegates.c: Rebuild.
12164 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12165 return type.
12166 (sol_thread_target::pid_to_str): Change return type.
12167 * remote.c (class remote_target) <pid_to_str>: Change return
12168 type.
12169 (remote_target::pid_to_str): Change return type.
12170 (extended_remote_target::attach, remote_target::remote_stop_ns)
12171 (remote_target::remote_notif_remove_queued_reply)
12172 (remote_target::push_stop_reply, remote_target::disable_btrace):
12173 Update.
12174 (extended_remote_target::attach): Update.
12175 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12176 type.
12177 (gdbsim_target::pid_to_str): Change return type.
12178 * ravenscar-thread.c (struct ravenscar_thread_target)
12179 <pid_to_str>: Change return type.
12180 (ravenscar_thread_target::pid_to_str): Change return type.
12181 * procfs.c (class procfs_target) <pid_to_str>: Change return
12182 type.
12183 (procfs_target::pid_to_str): Change return type.
12184 (procfs_target::attach): Update.
12185 (procfs_target::detach): Update.
12186 (procfs_target::fetch_registers): Update.
12187 (procfs_target::store_registers): Update.
12188 (procfs_target::wait): Update.
12189 (procfs_target::files_info): Update.
12190 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12191 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12192 return type.
12193 (nto_procfs_target::pid_to_str): Change return type.
12194 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12195 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12196 return type.
12197 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12198 (exit_lwp): Update.
12199 (attach_proc_task_lwp_callback, get_detach_signal)
12200 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12201 (linux_nat_target::resume, wait_lwp, stop_callback)
12202 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12203 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12204 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12205 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12206 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12207 type.
12208 (inf_ptrace_target::attach): Update.
12209 (inf_ptrace_target::files_info): Update.
12210 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12211 type.
12212 (go32_nat_target::pid_to_str): Change return type.
12213 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12214 (gnu_nat_target::wait): Update.
12215 (gnu_nat_target::wait): Update.
12216 (gnu_nat_target::resume): Update.
12217 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12218 (fbsd_nat_target::wait): Update.
12219 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12220 type.
12221 (darwin_nat_target::attach): Update.
12222 * corelow.c (class core_target) <pid_to_str>: Change return type.
12223 (core_target::pid_to_str): Change return type.
12224 * target.c (normal_pid_to_str): Change return type.
12225 (default_pid_to_str): Likewise.
12226 (target_pid_to_str): Change return type.
12227 (target_translate_tls_address): Update.
12228 (target_announce_detach): Update.
12229 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12230 return type.
12231 (bsd_uthread_target::pid_to_str): Change return type.
12232 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12233 type.
12234 (bsd_kvm_target::pid_to_str): Change return type.
12235 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12236 return type.
12237 (aix_thread_target::pid_to_str): Change return type.
12238 * target.h (struct target_ops) <pid_to_str>: Change return type.
12239 (target_pid_to_str, normal_pid_to_str): Likewise.
12240 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12241 type.
12242 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12243 type.
12244 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12245 return type.
12246 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12247 type.
12248 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12249 type.
12250 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12251 return type.
12252
12253 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12254
12255 * NEWS: Mention that the new default MI version is 3. Mention
12256 changes to the output of commands and events that deal with
12257 multi-location breakpoints.
12258 * breakpoint.c: Include "mi/mi-out.h".
12259 (print_one_breakpoint): Change output syntax if using MI version
12260 >= 3.
12261 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12262 New.
12263 (mi_multi_location_breakpoint_output_fixed): New.
12264 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12265 (mi_cmd_fix_multi_location_breakpoint_output): New.
12266 (mi_multi_location_breakpoint_output_fixed): New.
12267 * mi/mi-cmds.c (mi_cmds): Register command
12268 -fix-multi-location-breakpoint-output.
12269 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12270 interpreter "mi".
12271
12272 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12273
12274 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12275 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12276 instantiate mi_ui_out based on interpreter name.
12277 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12278 * mi/mi-main.c (mi_load_progress): Likewise.
12279
12280 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12281
12282 * NEWS: Combine separate "New targets" sections for 8.3.
12283
12284 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12285
12286 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12287 (ppcfbsd_init_abi): Install gdbarch
12288 "fetch_tls_load_module_address" and "get_thread_local_address"
12289 methods.
12290
12291 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12292
12293 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12294 (riscv_fbsd_init_abi): Install gdbarch
12295 "fetch_tls_load_module_address" and "get_thread_local_address"
12296 methods.
12297
12298 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12299
12300 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12301 (i386fbsd_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 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12308 (amd64fbsd_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 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12315 (struct fbsd_pspace_data): New type.
12316 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12317 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12318 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12319 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12320 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12321
12322 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12323
12324 * gdbtypes.c (lookup_struct_elt): New function.
12325 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12326 * gdbtypes.h (struct struct_elt): New type.
12327 (lookup_struct_elt): New prototype.
12328
12329 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12330
12331 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12332 remove disabled code block.
12333
12334 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12335
12336 * gdbarch.sh (get_thread_local_address): New method.
12337 * gdbarch.h, gdbarch.c: Regenerate.
12338 * target.c (target_translate_tls_address): Use
12339 gdbarch_get_thread_local_address if present instead of
12340 target::get_thread_local_address.
12341
12342 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12343
12344 * target.h (target::get_thread_local_address): Update comment.
12345
12346 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12347
12348 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12349 objfile->separate_debug_objfile_backlink if not NULL.
12350
12351 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12352
12353 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12354 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12355 (amd64bsd_store_inferior_registers): Likewise.
12356 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12357 Enable segment base registers.
12358 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12359 PT_GETFSBASE and PT_GETGSBASE.
12360 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12361 PT_SETGSBASE.
12362 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12363 segment base registers.
12364 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12365
12366 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12367
12368 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12369 Update calls to i386_target_description to add 'segments'
12370 parameter.
12371 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12372 add segment base registers.
12373 * arch/i386.c (i386_create_target_description): Add 'segments'
12374 parameter to enable segment base registers.
12375 * arch/i386.h (i386_create_target_description): Likewise.
12376 * features/i386/32bit-segments.xml: New file.
12377 * features/i386/32bit-segments.c: Generate.
12378 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12379 call to i386_target_description to add 'segments' parameter.
12380 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12381 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12382 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12383 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12384 if feature is present.
12385 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12386 Add 'segments' parameter to call to i386_target_description.
12387 (i386_target_description): Add 'segments' parameter to enable
12388 segment base registers.
12389 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12390 to call to i386_target_description.
12391 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12392 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12393 Define I386_NUM_REGS.
12394 (i386_target_description): Add 'segments' parameter to enable
12395 segment base registers.
12396
12397 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12398
12399 PR/24325
12400 * source-cache.c: #undef open and close, to avoid unresolved
12401 externals during linking.
12402
12403 2019-03-12 Tom Tromey <tromey@adacore.com>
12404
12405 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12406 const. Add initializers.
12407 (_initialize_remote): Don't initialize ptid globals.
12408
12409 2019-03-12 Pedro Alves <palves@redhat.com>
12410
12411 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12412
12413 2019-03-12 Pedro Alves <palves@redhat.com>
12414
12415 * cp-name-parser.y (main): Remove unused 'len' variable.
12416
12417 2019-03-12 Tom Tromey <tromey@adacore.com>
12418
12419 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12420 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12421
12422 2019-03-12 Tom Tromey <tromey@adacore.com>
12423
12424 * linux-nat.c (iterate_over_lwps): Update.
12425 (stop_callback): Remove parameter.
12426 (stop_wait_callback, detach_callback, resume_set_callback)
12427 (select_singlestep_lwp_callback, set_ignore_sigint)
12428 (status_callback, resumed_callback, resume_clear_callback)
12429 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12430 data parameter.
12431 (linux_nat_target::detach, linux_nat_target::resume)
12432 (linux_stop_and_wait_all_lwps, select_event_lwp)
12433 (linux_nat_filter_event, linux_nat_wait_1)
12434 (linux_nat_target::kill, linux_nat_target::stop)
12435 (linux_nat_target::stop): Update.
12436 (linux_nat_resume_callback): Change type.
12437 (resume_stopped_resumed_lwps, count_events_callback)
12438 (select_event_lwp_callback): Likewise.
12439 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12440 * arm-linux-nat.c (struct update_registers_data): Remove.
12441 (update_registers_callback): Change type.
12442 (arm_linux_insert_hw_breakpoint1): Update.
12443 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12444 parameter.
12445 (x86_linux_dr_set_addr): Update.
12446 (x86_linux_dr_set_control): Update.
12447 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12448 (iterate_over_lwps): Use gdb::function_view.
12449 * nat/aarch64-linux-hw-point.c (struct
12450 aarch64_dr_update_callback_param): Remove.
12451 (debug_reg_change_callback): Change type.
12452 (aarch64_notify_debug_reg_change): Update.
12453 * s390-linux-nat.c (s390_refresh_per_info): Update.
12454
12455 2019-03-11 Tom Tromey <tromey@adacore.com>
12456
12457 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12458 redundant assignment to "this_cu".
12459
12460 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12463
12464 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12465
12466 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12467 from...
12468 (rank_one_type): ... this.
12469
12470 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12471
12472 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12473 from...
12474 (rank_one_type): ... this.
12475
12476 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12477
12478 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12479 from...
12480 (rank_one_type): ... this.
12481
12482 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12483
12484 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12485 from...
12486 (rank_one_type): ... this.
12487
12488 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12489
12490 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12491 from...
12492 (rank_one_type): ... this.
12493
12494 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12495
12496 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12497 from...
12498 (rank_one_type): ... this.
12499
12500 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12501
12502 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12503 from...
12504 (rank_one_type): ... this.
12505
12506 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12507
12508 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12509 from...
12510 (rank_one_type): ... this.
12511
12512 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12513
12514 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12515 from...
12516 (rank_one_type): ... this.
12517
12518 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12519
12520 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12521 from...
12522 (rank_one_type): ... this.
12523
12524 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12525
12526 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12527 from...
12528 (rank_one_type): ... this.
12529
12530 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12531
12532 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12533 from...
12534 (rank_one_type): ... this.
12535
12536 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12537
12538 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12539 inferior-events' shows the example events.
12540
12541 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12542
12543 Support styling on native MS-Windows console
12544
12545 PR/24315
12546 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12547 on MS-Windows if $TERM is not defined.
12548
12549 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12550
12551 * posix-hdep.c (gdb_console_fputs):
12552 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12553 functions.
12554 * ui-file.h (gdb_console_fputs): Add prototype.
12555
12556 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12557 back to fputs only if the former returns zero.
12558
12559 2019-03-07 Tom Tromey <tom@tromey.com>
12560
12561 * symmisc.c (print_symbol_bcache_statistics): Update.
12562 (print_objfile_statistics): Update.
12563 * symfile.c (allocate_symtab): Update.
12564 * stabsread.c: Don't include bcache.h.
12565 * psymtab.h (struct psymbol_bcache): Don't declare.
12566 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12567 (psymbol_bcache_init, psymbol_bcache_free)
12568 (psymbol_bcache_get_bcache): Don't declare.
12569 * psymtab.c (struct psymbol_bcache): Remove.
12570 (psymtab_storage::psymtab_storage): Update.
12571 (psymtab_storage::~psymtab_storage): Update.
12572 (psymbol_bcache_init, psymbol_bcache_free)
12573 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12574 (add_psymbol_to_bcache): Update.
12575 (allocate_psymtab): Update.
12576 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12577 macro_cache>: No longer pointers.
12578 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12579 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12580 * macrotab.c (macro_bcache): Update.
12581 * macroexp.c: Don't include bcache.h.
12582 * gdbtypes.c (check_types_worklist): Update.
12583 (types_deeply_equal): Remove TRY/CATCH. Update.
12584 * elfread.c (elf_symtab_read): Update.
12585 * dwarf2read.c: Don't include bcache.h.
12586 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12587 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12588 (print_bcache_statistics, bcache_memory_used): Don't declare.
12589 (struct bcache): Move from bcache.c. Add constructor, destructor,
12590 methods. Rename all data members.
12591 * bcache.c (struct bcache): Move to bcache.h.
12592 (bcache::expand_hash_table): Rename from expand_hash_table.
12593 (bcache): Remove.
12594 (bcache::insert): Rename from bcache_full.
12595 (bcache::compare): Rename from bcache_compare.
12596 (bcache_xmalloc): Remove.
12597 (bcache::~bcache): Rename from bcache_xfree.
12598 (bcache::print_statistics): Rename from print_bcache_statistics.
12599 (bcache::memory_used): Rename from bcache_memory_used.
12600
12601 2019-03-07 Pedro Alves <palves@redhat.com>
12602
12603 * infrun.c (normal_stop): Also check for
12604 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12605
12606 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12607
12608 * f-lang.c (value_from_host_double): Moved to...
12609 * value.c (value_from_host_double): ...here.
12610 * value.h (value_from_host_double): Declare.
12611 * guile/scm-math.c (vlscm_convert_typed_number): Use
12612 value_from_host_double.
12613 (vlscm_convert_number): Likewise.
12614 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12615 * python/py-value.c (convert_value_from_python): Likewise.
12616
12617 2019-03-06 Tom Tromey <tom@tromey.com>
12618
12619 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12620
12621 2019-03-06 Tom Tromey <tom@tromey.com>
12622
12623 * utils.h (free_current_contents): Don't declare.
12624 * utils.c (free_current_contents): Remove.
12625
12626 2019-03-06 Tom Tromey <tom@tromey.com>
12627
12628 * top.c (quit_force): Update.
12629 * main.c (captured_command_loop): Update.
12630 * common/new-op.c (operator new): Update.
12631 * common/common-exceptions.c (struct catcher)
12632 <save_cleanup_chain>: Remove member.
12633 (exceptions_state_mc_init): Update.
12634 (exception_try_scope_entry): Return nullptr.
12635 (exception_try_scope_exit, exception_rethrow)
12636 (throw_exception_sjlj, throw_exception_cxx): Update.
12637 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12638 (all_cleanups, do_cleanups, discard_cleanups)
12639 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12640 (restore_cleanups, restore_final_cleanups): Don't declare.
12641 (do_final_cleanups): Remove parameter.
12642 * common/cleanups.c (cleanup_chain, make_cleanup)
12643 (make_cleanup_dtor, all_cleanups, do_cleanups)
12644 (discard_my_cleanups, discard_cleanups)
12645 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12646 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12647 (null_cleanup): Remove.
12648 (do_final_cleanups): Remove parameter.
12649
12650 2019-03-06 Tom Tromey <tom@tromey.com>
12651
12652 * remote.c (remote_target::remote_parse_stop_reply): Use
12653 unique_xmalloc_ptr.
12654
12655 2019-03-06 Tom Tromey <tom@tromey.com>
12656
12657 * stabsread.c (struct stabs_field_info): Rename from field_info.
12658 <list, fnlist>: Add initializers.
12659 <obstack>: New member.
12660 (read_member_functions, read_struct_fields, read_baseclasses):
12661 Allocate on obstack. Don't use cleanups.
12662 (read_one_struct_field, read_member_functions, read_struct_fields)
12663 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12664 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12665 (read_struct_type): Update.
12666
12667 2019-03-06 Tom Tromey <tom@tromey.com>
12668
12669 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12670 * common/filestuff.h (make_cleanup_close): Don't declare.
12671 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12672 Remove.
12673
12674 2019-03-06 Tom Tromey <tom@tromey.com>
12675
12676 * solib-aix.c: Use make_scope_exit.
12677
12678 2019-03-06 Tom Tromey <tom@tromey.com>
12679
12680 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12681 Use make_scope_exit.
12682
12683 2019-03-06 Tom Tromey <tom@tromey.com>
12684
12685 * solib-svr4.c (disable_probes_interface): Remove parameter.
12686 (svr4_handle_solib_event): Use make_scope_exit.
12687
12688 2019-03-06 Tom Tromey <tom@tromey.com>
12689
12690 * remote.c (struct stop_reply_deleter): Remove.
12691 (stop_reply_up): Update.
12692 (struct stop_reply): Derive from notif_event. Don't typedef.
12693 <regcache>: Now a std::vector.
12694 (stop_reply_xfree): Remove.
12695 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12696 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12697 (remote_target::discard_pending_stop_replies): Use delete.
12698 (remote_target::remote_parse_stop_reply): Update.
12699 (remote_target::process_stop_reply): Update.
12700 * remote-notif.h (struct notif_event): Add virtual destructor.
12701 Remove "dtr" member.
12702 (struct notif_client) <alloc_event>: Return a unique_ptr.
12703 (notif_event_xfree): Don't declare.
12704 (notif_event_up): New typedef.
12705 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12706 (notif_event_xfree, do_notif_event_xfree): Remove.
12707 (remote_notif_state_xfree): Update.
12708
12709 2019-03-06 Tom Tromey <tom@tromey.com>
12710
12711 * infrun.c (displaced_step_clear_cleanup): Now a
12712 forward_scope_exit type.
12713 (displaced_step_prepare_throw): Update.
12714 (displaced_step_fixup): Update.
12715
12716 2019-03-06 Tom Tromey <tom@tromey.com>
12717
12718 * inferior.h (class inferior): Update comment.
12719 * gdbthread.h (class thread_info): Update comment.
12720
12721 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12722 Tom Tromey <tom@tromey.com>
12723
12724 * stabsread.h (struct stab_section_list): Remove.
12725 (coffstab_build_psymtabs): Update.
12726 * dbxread.c (symbuf_sections): Now a std::vector.
12727 (sect_idx): New global.
12728 (fill_symbuf): Update.
12729 (coffstab_build_psymtabs): Change type of stabsects parameter.
12730 Update.
12731 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12732 std::vector.
12733 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12734 (coff_locate_sections): Update.
12735 (coff_symfile_read): Remove cleanups. Update.
12736 (init_stringtab): Add storage parameter.
12737 (free_stringtab, free_stringtab_cleanup): Remove.
12738 (init_lineno): Add storage parameter.
12739 (free_linetab, free_linetab_cleanup): Remove.
12740
12741 2019-03-06 Pedro Alves <palves@redhat.com>
12742
12743 * linux-fork.c (fork_info::clobber_regs): Delete.
12744 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12745 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12746 comment. Adjust.
12747 (scoped_switch_fork_info::scoped_switch_fork_info)
12748 (checkpoint_command, linux_fork_context): Adjust
12749 fork_save_infrun_state calls.
12750
12751 2019-03-06 Pedro Alves <palves@redhat.com>
12752
12753 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12754 (inf_has_multiple_threads): Return 'bool' and rewrite using
12755 inferior_info::threads().
12756
12757 2019-03-06 Pedro Alves <palves@redhat.com>
12758
12759 * linux-fork.c: Include <list>.
12760 (fork_list): Now a std::list instance.
12761 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12762 (forks_exist_p, find_last_fork): Adjust.
12763 (new_fork): Delete.
12764 (one_fork_p): New.
12765 (add_fork): Adjust.
12766 (free_fork): Delete, folded into fork_info::~fork_info().
12767 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12768 Adjust.
12769 (init_fork_list): Delete.
12770 (linux_fork_killall, linux_fork_mourn_inferior)
12771 (linux_fork_detach, info_checkpoints_command): Adjust.
12772 (_initialize_linux_fork): No longer call init_fork_list.
12773
12774 2019-03-06 Pedro Alves <palves@redhat.com>
12775
12776 * linux-fork.c (new_fork): New, split out of ...
12777 (add_fork): ... this. Return void. Move "first fork" special
12778 case from here, to ...
12779 (checkpoint_command): ... here.
12780 * linux-linux.h (add_fork): Return void.
12781
12782 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12783
12784 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12785
12786 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12787 Chris January <chris.january@arm.com>
12788 David Lecomber <david.lecomber@arm.com>
12789
12790 * f-exp.y: New token, UNOP_INTRINSIC.
12791 (exp): New pattern using UNOP_INTRINSIC token.
12792 (f77_keywords): Add 'abs' keyword.
12793 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12794 (value_from_host_double): New function.
12795 (evaluate_subexp_f): Support UNOP_ABS.
12796
12797 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12798
12799 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12800 types.
12801
12802 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12803
12804 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12805 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12806 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12807
12808 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12809
12810 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12811
12812 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12813 Chris January <chris.january@arm.com>
12814
12815 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12816 * f-exp.y: Define 'KIND' token.
12817 (exp): New pattern for KIND expressions.
12818 (ptype): Handle types with a kind extension.
12819 (direct_abs_decl): Extend to spot kind extensions.
12820 (f77_keywords): Add 'kind' to the list.
12821 (push_kind_type): New function.
12822 (convert_to_kind_type): New function.
12823 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12824 * parse.c (operator_length_standard): Likewise.
12825 * parser-defs.h (enum type_pieces): Add tp_kind.
12826 * std-operator.def: Add UNOP_KIND.
12827
12828 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12829
12830 * f-exp.y (f_parse): Set yydebug.
12831
12832 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12833
12834 * f-lang.c (evaluate_subexp_f): New function.
12835 (exp_descriptor_f): New global.
12836 (f_language_defn): Use exp_descriptor_f instead of
12837 exp_descriptor_standard.
12838
12839 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12840
12841 * f-exp.y (struct token): Add comments.
12842 (dot_ops): Remove uppercase versions and the end marker.
12843 (f77_keywords): Likewise.
12844 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12845 entries in the dot_ops array are case insensitive, and use
12846 strncasecmp to compare strings. Also some whitespace cleanup in
12847 this area. Similar for the f77_keywords array, except entries in
12848 this list might be case sensitive.
12849
12850 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12851
12852 * f-exp.y (struct f77_boolean_val): Add comments.
12853 (boolean_values): Remove uppercase versions, and end marker.
12854 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12855 and use strncasecmp to achieve case insensitivity. Additionally,
12856 perform whitespace cleanup around this code.
12857
12858 2019-03-06 Tom Tromey <tromey@adacore.com>
12859
12860 * remote-sim.c (gdbsim_target_open): Use result of
12861 gdb_argv::release.
12862
12863 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12864 Dirk Schubert <dirk.schubert@arm.com>
12865 Chris January <chris.january@arm.com>
12866
12867 * eval.c (evaluate_subexp_standard): Call Fortran argument
12868 wrapping logic.
12869 * f-lang.c (struct value): A value which can be passed into a
12870 Fortran function call.
12871 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12872 where appropriate.
12873 (struct type): Value ready for a Fortran function call.
12874 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12875 is needed.
12876 * f-lang.h (fortran_argument_convert): Declaration.
12877 (fortran_preserve_arg_pointer): Declaration.
12878 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12879
12880 2019-03-05 Tom Tromey <tromey@adacore.com>
12881
12882 * python/py-prettyprint.c (print_string_repr): Remove #if.
12883 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12884
12885 2019-03-05 Tom Tromey <tromey@adacore.com>
12886
12887 * target.c (the_dummy_target): Move later. Change type to
12888 "dummy_target".
12889 (initialize_targets): Don't initialize the_dummy_target.
12890
12891 2019-03-05 Tom Tromey <tromey@adacore.com>
12892
12893 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12894 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12895
12896 2019-03-05 Tom Tromey <tromey@adacore.com>
12897
12898 * windows-nat.c (windows_nat_target::attach)
12899 (windows_nat_target::detach): Don't call gdb_flush.
12900 * valprint.c (generic_val_print, val_print, val_print_string):
12901 Don't call gdb_flush.
12902 * utils.c (defaulted_query): Don't call gdb_flush.
12903 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12904 * target.c (target_announce_detach): Don't call gdb_flush.
12905 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12906 * remote.c (extended_remote_target::attach): Don't call
12907 gdb_flush.
12908 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12909 * printcmd.c (do_examine): Don't call gdb_flush.
12910 (info_display_command): Don't call gdb_flush.
12911 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12912 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12913 * memattr.c (info_mem_command): Don't call gdb_flush.
12914 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12915 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12916 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12917 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12918 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12919 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12920 (gnu_nat_target::detach): Don't call gdb_flush.
12921 * f-valprint.c (f_val_print): Don't call gdb_flush.
12922 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12923 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12924 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12925 gdb_flush.
12926 * c-valprint.c (c_val_print): Don't call gdb_flush.
12927 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12928
12929 2019-03-05 Tom Tromey <tromey@adacore.com>
12930
12931 * varobj.c (update_dynamic_varobj_children): Update.
12932 (install_default_visualizer): Use reset, not release.
12933 * value.c (set_internalvar): Update.
12934 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12935 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12936 ATTRIBUTE_UNUSED_RESULT.
12937
12938 2019-03-05 Tom Tromey <tromey@adacore.com>
12939
12940 * remote.c (class scoped_remote_fd) <release>: Add
12941 ATTRIBUTE_UNUSED_RESULT.
12942
12943 2019-03-05 Tom Tromey <tromey@adacore.com>
12944
12945 * macroexp.c (struct macro_buffer) <release>: Add
12946 ATTRIBUTE_UNUSED_RESULT.
12947
12948 2019-03-05 Tom Tromey <tromey@adacore.com>
12949
12950 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12951 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12952 ATTRIBUTE_UNUSED_RESULT.
12953
12954 2019-03-05 Tom Tromey <tromey@adacore.com>
12955
12956 * common/scoped_fd.h (class scoped_fd) <release>: Add
12957 ATTRIBUTE_UNUSED_RESULT.
12958
12959 2019-03-05 Tom Tromey <tromey@adacore.com>
12960
12961 * parser-defs.h (struct parser_state) <release>: Add
12962 ATTRIBUTE_UNUSED_RESULT.
12963
12964 2019-03-05 Tom Tromey <tromey@adacore.com>
12965
12966 * utils.h (class gdb_argv) <release>: Add
12967 ATTRIBUTE_UNUSED_RESULT.
12968 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12969
12970 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12971
12972 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12973 for-loop range, to avoid compiler warnings.
12974
12975 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12976 avoid compiler warnings about unused variables.
12977
12978 * NEWS: Mention end of support for native debugging on MS-Windows
12979 before XP.
12980
12981 PR gdb/24292
12982 * common/netstuff.c:
12983 * gdbserver/gdbreplay.c
12984 * gdbserver/remote-utils.c:
12985 * ser-tcp.c:
12986 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12987 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12988 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12989 'getaddrinfo' and 'freeaddrinfo' were not available before
12990 Windows XP, and mingw.org's MinGW headers by default define
12991 _WIN32_WINNT to 0x500.
12992
12993 2019-03-01 Gary Benson <gbenson@redhat.com>
12994
12995 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12996
12997 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12998 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12999
13000 PR gdb/8527
13001 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13002 set_sigint_trap, clear_sigint_trap.
13003
13004 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13005
13006 * target.c (target_detach): Clear the regcache and the
13007 frame cache.
13008
13009 2019-02-27 Pedro Alves <palves@redhat.com>
13010
13011 * utils.c (set_screen_size): When we cap the height/width sizes,
13012 tweak the corresponding command variable to show "unlimited":
13013
13014 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13015 Pedro Alves <palves@redhat.com>
13016
13017 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13018 before calling rl_set_screen_size.
13019
13020 2019-02-27 Tom Tromey <tromey@adacore.com>
13021
13022 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13023 define.
13024 * python/py-value.c: Remove Python 2.4 workaround.
13025 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13026 workaround.
13027 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13028 Python 2.4 workaround.
13029 * python/python-internal.h: Remove Python 2.4 comment.
13030 (Py_ssize_t): Don't define.
13031 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13032 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13033 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13034 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13035 * python/python.c (do_start_initialization): Remove Python 2.4
13036 workaround.
13037 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13038 (print_children): Remove Python 2.4 workaround.
13039 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13040 workaround.
13041 (CHARBUFFERPROC_NAME): Remove.
13042 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13043 Python 2.4 workaround.
13044
13045 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13046
13047 * NEWS: Note minimum Python version.
13048
13049 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13050
13051 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13052 code from these functions. Remove corresponding ifdefs. Use
13053 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13054 Remove gotos and target of gotos.
13055 (infpy_search_memory): Likewise.
13056
13057 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13058
13059 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13060 (hppa_gdbarch_init): Don't register deleted functions with
13061 gdbarch.
13062
13063 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13064
13065 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13066 (h8300_unwind_sp): Delete.
13067 (h8300_dummy_id): Delete.
13068 (h8300_gdbarch_init): Don't register deleted functions with
13069 gdbarch.
13070
13071 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13072
13073 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13074 (ft32_unwind_pc): Delete.
13075 (ft32_unwind_sp): Delete.
13076 (ft32_gdbarch_init): Don't register deleted functions with
13077 gdbarch.
13078
13079 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13080
13081 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13082 (frv_unwind_pc): Delete.
13083 (frv_unwind_sp): Delete.
13084 (frv_gdbarch_init): Don't register deleted functions with
13085 gdbarch.
13086
13087 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13088
13089 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13090 (riscv_unwind_pc): Delete.
13091 (riscv_unwind_sp): Delete.
13092 (riscv_gdbarch_init): Don't register deleted functions with
13093 gdbarch.
13094
13095 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13096
13097 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13098 (csky_unwind_pc): Delete.
13099 (csky_unwind_sp): Delete.
13100 (csky_gdbarch_init): Don't register deleted functions with
13101 gdbarch.
13102
13103 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13104
13105 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13106 (cris_unwind_pc): Delete.
13107 (cris_unwind_sp): Delete.
13108 (cris_gdbarch_init): Don't register deleted functions with
13109 gdbarch.
13110
13111 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13112
13113 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13114 (bfin_unwind_pc): Delete.
13115 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13116
13117 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13118
13119 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13120 (arm_unwind_pc): Delete.
13121 (arm_unwind_sp): Delete.
13122 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13123
13124 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13127 (arc_unwind_pc): Delete.
13128 (arc_unwind_sp): Delete.
13129 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13130
13131 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13132
13133 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13134 (alpha_unwind_pc): Delete.
13135 (alpha_gdbarch_init): Don't register deleted functions with
13136 gdbarch.
13137
13138 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13139
13140 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13141 (aarch64_unwind_pc): Delete.
13142 (aarch64_unwind_sp): Delete.
13143 (aarch64_gdbarch_init): Don't register deleted functions with
13144 gdbarch.
13145
13146 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13147
13148 * gdbtypes.c (type_align): Don't consider static members when
13149 computing structure alignment.
13150
13151 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13152
13153 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13154 return 0 for other types.
13155 * arch-utils.c (default_type_align): Always return 0.
13156 * gdbarch.h: Regenerate.
13157 * gdbarch.sh (type_align): Extend comment.
13158 * gdbtypes.c (type_align): Add additional comments, always call
13159 gdbarch_type_align before applying the default rules.
13160 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13161 generic code will then apply a suitable default.
13162 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13163 types, return 0 for other types.
13164
13165 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13166
13167 * NEWS: Create a new section for the next release branch.
13168 Rename the section of the current branch, now that it has
13169 been cut.
13170
13171 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13172
13173 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13174 * version.in: Bump version to 8.3.50.DATE-git.
13175
13176 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13177
13178 * aix-thread.c (ptid_cmp): Remove unused variable.
13179 (get_signaled_thread): Likewise.
13180 (store_regs_user_thread): Likewise.
13181 (store_regs_kernel_thread): Likewise.
13182 (fetch_regs_kernel_thread): Remove shadowed variable.
13183
13184 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13185
13186 * features/riscv/32bit-cpu.xml: Add register numbers.
13187 * features/riscv/32bit-fpu.c: Regenerate.
13188 * features/riscv/32bit-fpu.xml: Add register numbers.
13189 * features/riscv/64bit-cpu.xml: Add register numbers.
13190 * features/riscv/64bit-fpu.c: Regenerate.
13191 * features/riscv/64bit-fpu.xml: Add register numbers.
13192
13193 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13194
13195 * NEWS: Mention two argument form of gdb.Value constructor.
13196 * python/py-value.c (convert_buffer_and_type_to_value): New
13197 function.
13198 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13199 Add support for handling an optional second argument. Call
13200 convert_buffer_and_type_to_value as appropriate.
13201 * python/python-internal.h (Py_buffer_deleter): New struct.
13202 (Py_buffer_up): New typedef.
13203
13204 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13205
13206 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13207 instead of releasing ownership.
13208
13209 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13210
13211 * dwarf2read.c (open_and_init_dwp_file): Call
13212 elf_numsections instead of bfd_count_sections to initialize
13213 dwp_file->num_sections.
13214
13215 2019-02-25 Tom Tromey <tromey@adacore.com>
13216
13217 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13218
13219 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13220
13221 * gcore.in: Add '--readnever' option when invoking GDB.
13222
13223 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13224
13225 * MAINTAINERS: Update my email address.
13226
13227 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13228
13229 * build-id.c (build_id_to_debug_bfd_1): New function.
13230 (build_id_to_debug_bfd): Look for separate debug file in
13231 sysroot.
13232
13233 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13234
13235 * gdbarch.sh: Update the copyright year range that is placed into
13236 generated files.
13237
13238 2019-02-22 Keith Seitz <keiths@redhat.com>
13239
13240 PR symtab/23853
13241 * linespec.c (create_sals_line_offset): Search for the default
13242 symtab's filename instead of its fullname.
13243
13244 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13245
13246 * NEWS: Update style defaults.
13247
13248 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13249
13250 * main.c (captured_main_1): Disable styling in batch mode.
13251
13252 2019-02-20 Tom Tromey <tom@tromey.com>
13253
13254 * symtab.c (symtab_symbol_info): Fix typos.
13255
13256 2019-02-20 Tom Tromey <tromey@adacore.com>
13257
13258 * findcmd.c (_initialize_mem_search): Use upper case for
13259 metasyntactic variables.
13260
13261 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13262
13263 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13264 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13265
13266 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13267
13268 * top.h (source_file_name): Change to std::string.
13269 * top.c (source_file_name): Likewise.
13270 (command_line_input): Adjust.
13271 * cli/cli-script.c (script_from_file): Adjust.
13272
13273 2019-02-19 Tom Tromey <tromey@adacore.com>
13274
13275 * ravenscar-thread.c
13276 (ravenscar_thread_target::update_thread_list): Don't call
13277 ada_build_task_list.
13278 * ada-lang.h (ada_build_task_list): Don't declare.
13279 * ada-tasks.c (struct ada_tasks_inferior_data)
13280 <task_list_valid_p>: Now bool.
13281 (read_known_tasks, ada_task_list_changed)
13282 (ada_tasks_invalidate_inferior_data): Update.
13283 (read_known_tasks_array): Return bool.
13284 (read_known_tasks_list): Likewise.
13285 (read_known_tasks): Return void.
13286 (ada_build_task_list): Now static.
13287
13288 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13291 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13292
13293 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13294
13295 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13296 variant for ada_tasks_pspace_data_handle and
13297 ada_tasks_inferior_data_handle.
13298 (ada_tasks_pspace_data_cleanup): New function.
13299 (ada_tasks_inferior_data_cleanup): New function.
13300
13301 2019-02-17 Tom Tromey <tom@tromey.com>
13302
13303 * macrotab.h (macro_source_fullname): Return a std::string.
13304 * macrotab.c (macro_include, check_for_redefinition)
13305 (macro_undef, macro_lookup_definition, foreach_macro)
13306 (foreach_macro_in_scope): Update.
13307 (macro_source_fullname): Return a std::string.
13308 * macrocmd.c (show_pp_source_pos): Update.
13309
13310 2019-02-17 Tom Tromey <tom@tromey.com>
13311
13312 * macrocmd.c (show_pp_source_pos): Style the file names.
13313
13314 2019-02-17 Tom Tromey <tom@tromey.com>
13315
13316 PR tui/24197:
13317 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13318
13319 2019-02-17 Tom Tromey <tom@tromey.com>
13320
13321 * ada-lang.c (user_select_syms): Use filtered printing.
13322 * utils.c (wrap_style): New global.
13323 (desired_style): Remove.
13324 (emit_style_escape): Add stream parameter.
13325 (set_output_style, reset_terminal_style, prompt_for_continue):
13326 Update.
13327 (flush_wrap_buffer): Only flush gdb_stdout.
13328 (wrap_here): Set wrap_style.
13329 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13330 treat escape sequences as a character. Change when wrap buffer is
13331 flushed.
13332 (fputs_styled): Do not set the output style when the default is
13333 requested.
13334 * ui-style.h (struct ui_file_style) <is_default>: New method.
13335 * source.c (print_source_lines_base): Emit escape sequences in one
13336 piece.
13337
13338 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13339
13340 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13341 integers and enumeration types.
13342
13343 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13344
13345 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13346 instead of lookup_symbol_in_language
13347 (do_exact_match): New function.
13348 (ada_get_symbol_name_matcher): Return do_exact_match when
13349 doing a verbatim match.
13350
13351 2019-02-15 Tom Tromey <tromey@adacore.com>
13352
13353 * ravenscar-thread.c (ravenscar_thread_target::resume)
13354 (ravenscar_thread_target::wait): Special case wildcard requests.
13355
13356 2019-02-15 Tom Tromey <tromey@adacore.com>
13357
13358 * ravenscar-thread.c (base_ptid): Remove.
13359 (struct ravenscar_thread_target) <close>: New method.
13360 <m_base_ptid>: New member.
13361 <update_inferior_ptid, active_task, task_is_currently_active,
13362 runtime_initialized>: Declare methods.
13363 <ravenscar_thread_target>: Add constructor.
13364 (ravenscar_thread_target::task_is_currently_active)
13365 (ravenscar_thread_target::update_inferior_ptid)
13366 (ravenscar_runtime_initialized): Rename. Now methods.
13367 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13368 (ravenscar_thread_target::update_thread_list): Update.
13369 (ravenscar_thread_target::active_task): Now method.
13370 (ravenscar_thread_target::store_registers)
13371 (ravenscar_thread_target::prepare_to_store)
13372 (ravenscar_thread_target::prepare_to_store)
13373 (ravenscar_thread_target::mourn_inferior): Update.
13374 (ravenscar_inferior_created): Use "new" to create target.
13375 (ravenscar_thread_target::get_ada_task_ptid): Update.
13376 (_initialize_ravenscar): Don't initialize base_ptid.
13377 (ravenscar_ops): Remove global.
13378
13379 2019-02-15 Tom Tromey <tromey@adacore.com>
13380
13381 * target.h (push_target): Declare new overload.
13382 * target.c (push_target): New overload, taking an rvalue reference.
13383 * remote.c (remote_target::open_1): Use push_target overload.
13384 * corelow.c (core_target_open): Use push_target overload.
13385
13386 2019-02-15 Tom Tromey <tromey@adacore.com>
13387
13388 * ravenscar-thread.c (is_ravenscar_task)
13389 (ravenscar_task_is_currently_active): Return bool.
13390 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13391 (_initialize_ravenscar): Remove "(void)".
13392 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13393 Return bool.
13394
13395 2019-02-15 Tom Tromey <tromey@adacore.com>
13396
13397 * ravenscar-thread.c (ravenscar_runtime_initializer)
13398 (has_ravenscar_runtime, get_running_thread_id)
13399 (ravenscar_thread_target::resume): Fix indentation.
13400
13401 2019-02-15 Tom Tromey <tromey@adacore.com>
13402
13403 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13404 from ravenscar_arch_ops.
13405 (sparc_ravenscar_ops::fetch_registers)
13406 (sparc_ravenscar_ops::store_registers): Now methods.
13407 (sparc_ravenscar_prepare_to_store): Remove.
13408 (sparc_ravenscar_ops): Redefine.
13409 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13410 methods and destructor. Remove members.
13411 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13412 (ravenscar_thread_target::store_registers)
13413 (ravenscar_thread_target::prepare_to_store): Update.
13414 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13415 Remove.
13416 (struct ppc_ravenscar_powerpc_ops): Derive from
13417 ravenscar_arch_ops.
13418 (ppc_ravenscar_powerpc_ops::fetch_registers)
13419 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13420 (ppc_ravenscar_powerpc_ops): Redefine.
13421 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13422 (ppc_ravenscar_e500_ops::fetch_registers)
13423 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13424 (ppc_ravenscar_e500_ops): Redefine.
13425 * aarch64-ravenscar-thread.c
13426 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13427 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13428 (aarch64_ravenscar_fetch_registers)
13429 (aarch64_ravenscar_store_registers): Now methods.
13430 (aarch64_ravenscar_ops): Redefine.
13431
13432 2019-02-15 Tom Tromey <tromey@adacore.com>
13433
13434 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13435 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13436 (ravenscar_thread_target::stopped_by_watchpoint)
13437 (ravenscar_thread_target::stopped_data_address)
13438 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13439
13440 2019-02-15 Tom Tromey <tromey@adacore.com>
13441
13442 * ravenscar-thread.c: Fix some typos.
13443
13444 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13445 Tom Tromey <tromey@adacore.com>
13446
13447 * ada-lang.c (ada_exception_sal): Change addr_string to a
13448 std::string.
13449 (create_ada_exception_catchpoint): Update.
13450
13451 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13452 Tom Tromey <tromey@adacore.com>
13453
13454 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13455 (bp_location_ops): Remove.
13456 (base_breakpoint_allocate_location): Update.
13457 (free_bp_location): Update.
13458 * ada-lang.c (class ada_catchpoint_location)
13459 <ada_catchpoint_location>: Remove ops parameter.
13460 (ada_catchpoint_location_dtor): Remove.
13461 (ada_catchpoint_location_ops): Remove.
13462 (allocate_location_exception): Update.
13463 * breakpoint.h (struct bp_location_ops): Remove.
13464 (class bp_location) <bp_location>: Remove bp_location_ops
13465 parameter.
13466 <~bp_location>: Add destructor.
13467 <ops>: Remove.
13468
13469 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13470 Pedro Alves <palves@redhat.com>
13471
13472 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13473 'PATH_MAX'.
13474
13475 2019-02-14 David Michael <fedora.dm0@gmail.com>
13476 Samuel Thibault <samuel.thibault@gnu.org>
13477 Thomas Schwinge <thomas@codesourcery.com>
13478
13479 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13480 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13481
13482 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13483
13484 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13485 (check_empty): Use "const char *".
13486
13487 * gnu-nat.c (gnu_nat_target::detach): Instead of
13488 'detach_inferior (pid)' call
13489 'detach_inferior (find_inferior_pid (pid))'.
13490
13491 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13492 'nat/fork-inferior.o'.
13493 * gnu-nat.c: #include "nat/fork-inferior.h".
13494
13495 * gnu-nat.c (gnu_nat_target::detach): Instead of
13496 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13497 * gnu-nat.h: #include "inf-child.h".
13498 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13499 'i386_gnu_nat_target::fetch_registers'.
13500 (gnu_store_registers): Rename/move to
13501 'i386_gnu_nat_target::store_registers'.
13502
13503 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13504 * gnu-nat.h (mach_thread_info): New function.
13505 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13506
13507 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13508
13509 2019-02-14 Frederic Konrad <konrad@adacore.com>
13510
13511 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13512
13513 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13514
13515 * windows-nat.c (windows_add_thread): Add new parameter
13516 "main_thread_p" with default value set to false. Update
13517 function documentation as well as all callers.
13518 (windows_delete_thread): Likewise.
13519 (fake_create_process): Update call to windows_add_thread.
13520 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13521 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13522 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13523 call to windows_delete_thread.
13524
13525 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13526
13527 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13528
13529 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13530
13531 * symfile.c (find_separate_debug_file): Use canonical path of
13532 sysroot with child_path instead of gdb_sysroot if it is valid.
13533
13534 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13535
13536 * symfile.c (find_separate_debug_file): Use child_path to
13537 determine if an object file is under a sysroot.
13538
13539 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13540
13541 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13542 unittests/child-path-selftests.c.
13543 * common/pathstuff.c (child_path): New function.
13544 * common/pathstuff.h (child_path): New prototype.
13545 * unittests/child-path-selftests.c: New file.
13546
13547 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13548
13549 * symfile.c (find_separate_debug_file): Look for separate debug
13550 files in debug directories under the sysroot.
13551
13552 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13553
13554 * symtab.h (struct minimal_symbol data_p): New const method.
13555 (struct minimal_symbol text_p): Likewise.
13556 * symtab.c (output_source_filename): Use file name style
13557 to print file name.
13558 (print_symbol_info): Likewise.
13559 (print_msymbol_info): Use address style to print addresses.
13560 Use function name style to print executable text symbols.
13561 (expand_symtab_containing_pc): Use data_p.
13562 (find_pc_sect_compunit_symtab): Likewise.
13563
13564 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13565
13566 * breakpoint.c (describe_other_breakpoints): Use address style
13567 to print addresses.
13568 (say_where): Likewise.
13569
13570 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13571
13572 * ada-typeprint.c (print_func_type): Print function name
13573 style to print function name.
13574 * c-typeprint.c (c_print_type_1): Likewise.
13575
13576 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13577
13578 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13579 for execve.
13580
13581 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13582
13583 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13584 type_stack.
13585
13586 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13587
13588 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13589 TYPE_CODE_REF types.
13590
13591 2019-02-08 Jim Wilson <jimw@sifive.com>
13592
13593 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13594 (riscv_linux_fregset): New.
13595 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13596
13597 2019-02-07 Tom Tromey <tom@tromey.com>
13598
13599 * thread.c (thread_cancel_execution_command): Update.
13600 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13601 methods.
13602 (struct thread_fsm_ops): Remove.
13603 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13604 (thread_fsm_should_stop, thread_fsm_return_value)
13605 (thread_fsm_set_finished, thread_fsm_finished_p)
13606 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13607 Don't declare.
13608 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13609 * infrun.c (clear_proceed_status_thread)
13610 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13611 (print_stop_event): Update.
13612 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13613 Add constructor.
13614 (step_command_fsm_ops): Remove.
13615 (new_step_command_fsm): Remove.
13616 (step_1): Update.
13617 (step_command_fsm::should_stop): Rename from
13618 step_command_fsm_should_stop.
13619 (step_command_fsm::clean_up): Rename from
13620 step_command_fsm_clean_up.
13621 (step_command_fsm::do_async_reply_reason): Rename from
13622 step_command_fsm_async_reply_reason.
13623 (struct until_next_fsm): Inherit from thread_fsm. Add
13624 constructor.
13625 (until_next_fsm_ops): Remove.
13626 (new_until_next_fsm): Remove.
13627 (until_next_fsm::should_stop): Rename from
13628 until_next_fsm_should_stop.
13629 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13630 (until_next_fsm::do_async_reply_reason): Rename from
13631 until_next_fsm_async_reply_reason.
13632 (struct finish_command_fsm): Inherit from thread_fsm. Add
13633 constructor. Change type of breakpoint.
13634 (finish_command_fsm_ops): Remove.
13635 (new_finish_command_fsm): Remove.
13636 (finish_command_fsm::should_stop): Rename from
13637 finish_command_fsm_should_stop.
13638 (finish_command_fsm::clean_up): Rename from
13639 finish_command_fsm_clean_up.
13640 (finish_command_fsm::return_value): Rename from
13641 finish_command_fsm_return_value.
13642 (finish_command_fsm::do_async_reply_reason): Rename from
13643 finish_command_fsm_async_reply_reason.
13644 (finish_command): Update.
13645 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13646 Add constructor.
13647 (call_thread_fsm_ops): Remove.
13648 (call_thread_fsm::call_thread_fsm): Rename from
13649 new_call_thread_fsm.
13650 (call_thread_fsm::should_stop): Rename from
13651 call_thread_fsm_should_stop.
13652 (call_thread_fsm::should_notify_stop): Rename from
13653 call_thread_fsm_should_notify_stop.
13654 (run_inferior_call, call_function_by_hand_dummy): Update.
13655 * cli/cli-interp.c (should_print_stop_to_console): Update.
13656 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13657 Add constructor. Change type of location_breakpoint,
13658 caller_breakpoint.
13659 (until_break_fsm_ops): Remove.
13660 (new_until_break_fsm): Remove.
13661 (until_break_fsm::should_stop): Rename from
13662 until_break_fsm_should_stop.
13663 (until_break_fsm::clean_up): Rename from
13664 until_break_fsm_clean_up.
13665 (until_break_fsm::do_async_reply_reason): Rename from
13666 until_break_fsm_async_reply_reason.
13667 (until_break_command): Update.
13668 * thread-fsm.c: Remove.
13669 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13670
13671 2019-02-07 Tom Tromey <tom@tromey.com>
13672
13673 * yy-remap.h: Add include guard.
13674 * xtensa-tdep.h: Add include guard.
13675 * xcoffread.h: Rename include guard.
13676 * varobj-iter.h: Add include guard.
13677 * tui/tui.h: Rename include guard.
13678 * tui/tui-winsource.h: Rename include guard.
13679 * tui/tui-wingeneral.h: Rename include guard.
13680 * tui/tui-windata.h: Rename include guard.
13681 * tui/tui-win.h: Rename include guard.
13682 * tui/tui-stack.h: Rename include guard.
13683 * tui/tui-source.h: Rename include guard.
13684 * tui/tui-regs.h: Rename include guard.
13685 * tui/tui-out.h: Rename include guard.
13686 * tui/tui-layout.h: Rename include guard.
13687 * tui/tui-io.h: Rename include guard.
13688 * tui/tui-hooks.h: Rename include guard.
13689 * tui/tui-file.h: Rename include guard.
13690 * tui/tui-disasm.h: Rename include guard.
13691 * tui/tui-data.h: Rename include guard.
13692 * tui/tui-command.h: Rename include guard.
13693 * tic6x-tdep.h: Add include guard.
13694 * target/waitstatus.h: Rename include guard.
13695 * target/wait.h: Rename include guard.
13696 * target/target.h: Rename include guard.
13697 * target/resume.h: Rename include guard.
13698 * target-float.h: Rename include guard.
13699 * stabsread.h: Add include guard.
13700 * rs6000-tdep.h: Add include guard.
13701 * riscv-fbsd-tdep.h: Add include guard.
13702 * regformats/regdef.h: Rename include guard.
13703 * record.h: Rename include guard.
13704 * python/python.h: Rename include guard.
13705 * python/python-internal.h: Rename include guard.
13706 * python/py-stopevent.h: Rename include guard.
13707 * python/py-ref.h: Rename include guard.
13708 * python/py-record.h: Rename include guard.
13709 * python/py-record-full.h: Rename include guard.
13710 * python/py-record-btrace.h: Rename include guard.
13711 * python/py-instruction.h: Rename include guard.
13712 * python/py-events.h: Rename include guard.
13713 * python/py-event.h: Rename include guard.
13714 * procfs.h: Add include guard.
13715 * proc-utils.h: Add include guard.
13716 * p-lang.h: Add include guard.
13717 * or1k-tdep.h: Rename include guard.
13718 * observable.h: Rename include guard.
13719 * nto-tdep.h: Rename include guard.
13720 * nat/x86-linux.h: Rename include guard.
13721 * nat/x86-linux-dregs.h: Rename include guard.
13722 * nat/x86-gcc-cpuid.h: Add include guard.
13723 * nat/x86-dregs.h: Rename include guard.
13724 * nat/x86-cpuid.h: Rename include guard.
13725 * nat/ppc-linux.h: Rename include guard.
13726 * nat/mips-linux-watch.h: Rename include guard.
13727 * nat/linux-waitpid.h: Rename include guard.
13728 * nat/linux-ptrace.h: Rename include guard.
13729 * nat/linux-procfs.h: Rename include guard.
13730 * nat/linux-osdata.h: Rename include guard.
13731 * nat/linux-nat.h: Rename include guard.
13732 * nat/linux-namespaces.h: Rename include guard.
13733 * nat/linux-btrace.h: Rename include guard.
13734 * nat/glibc_thread_db.h: Rename include guard.
13735 * nat/gdb_thread_db.h: Rename include guard.
13736 * nat/gdb_ptrace.h: Rename include guard.
13737 * nat/fork-inferior.h: Rename include guard.
13738 * nat/amd64-linux-siginfo.h: Rename include guard.
13739 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13740 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13741 * nat/aarch64-linux.h: Rename include guard.
13742 * nat/aarch64-linux-hw-point.h: Rename include guard.
13743 * mn10300-tdep.h: Add include guard.
13744 * mips-linux-tdep.h: Add include guard.
13745 * mi/mi-parse.h: Rename include guard.
13746 * mi/mi-out.h: Rename include guard.
13747 * mi/mi-main.h: Rename include guard.
13748 * mi/mi-interp.h: Rename include guard.
13749 * mi/mi-getopt.h: Rename include guard.
13750 * mi/mi-console.h: Rename include guard.
13751 * mi/mi-common.h: Rename include guard.
13752 * mi/mi-cmds.h: Rename include guard.
13753 * mi/mi-cmd-break.h: Rename include guard.
13754 * m2-lang.h: Add include guard.
13755 * location.h: Rename include guard.
13756 * linux-record.h: Rename include guard.
13757 * linux-nat.h: Add include guard.
13758 * linux-fork.h: Add include guard.
13759 * i386-darwin-tdep.h: Rename include guard.
13760 * hppa-linux-offsets.h: Add include guard.
13761 * guile/guile.h: Rename include guard.
13762 * guile/guile-internal.h: Rename include guard.
13763 * gnu-nat.h: Rename include guard.
13764 * gdb-stabs.h: Rename include guard.
13765 * frv-tdep.h: Add include guard.
13766 * f-lang.h: Add include guard.
13767 * event-loop.h: Add include guard.
13768 * darwin-nat.h: Rename include guard.
13769 * cp-abi.h: Rename include guard.
13770 * config/sparc/nm-sol2.h: Rename include guard.
13771 * config/nm-nto.h: Rename include guard.
13772 * config/nm-linux.h: Add include guard.
13773 * config/i386/nm-i386gnu.h: Rename include guard.
13774 * config/djgpp/nl_types.h: Rename include guard.
13775 * config/djgpp/langinfo.h: Rename include guard.
13776 * compile/gcc-cp-plugin.h: Add include guard.
13777 * compile/gcc-c-plugin.h: Add include guard.
13778 * compile/compile.h: Rename include guard.
13779 * compile/compile-object-run.h: Rename include guard.
13780 * compile/compile-object-load.h: Rename include guard.
13781 * compile/compile-internal.h: Rename include guard.
13782 * compile/compile-cplus.h: Rename include guard.
13783 * compile/compile-c.h: Rename include guard.
13784 * common/xml-utils.h: Rename include guard.
13785 * common/x86-xstate.h: Rename include guard.
13786 * common/version.h: Rename include guard.
13787 * common/vec.h: Rename include guard.
13788 * common/tdesc.h: Rename include guard.
13789 * common/selftest.h: Rename include guard.
13790 * common/scoped_restore.h: Rename include guard.
13791 * common/scoped_mmap.h: Rename include guard.
13792 * common/scoped_fd.h: Rename include guard.
13793 * common/safe-iterator.h: Rename include guard.
13794 * common/run-time-clock.h: Rename include guard.
13795 * common/refcounted-object.h: Rename include guard.
13796 * common/queue.h: Rename include guard.
13797 * common/ptid.h: Rename include guard.
13798 * common/print-utils.h: Rename include guard.
13799 * common/preprocessor.h: Rename include guard.
13800 * common/pathstuff.h: Rename include guard.
13801 * common/observable.h: Rename include guard.
13802 * common/netstuff.h: Rename include guard.
13803 * common/job-control.h: Rename include guard.
13804 * common/host-defs.h: Rename include guard.
13805 * common/gdb_wait.h: Rename include guard.
13806 * common/gdb_vecs.h: Rename include guard.
13807 * common/gdb_unlinker.h: Rename include guard.
13808 * common/gdb_unique_ptr.h: Rename include guard.
13809 * common/gdb_tilde_expand.h: Rename include guard.
13810 * common/gdb_sys_time.h: Rename include guard.
13811 * common/gdb_string_view.h: Rename include guard.
13812 * common/gdb_splay_tree.h: Rename include guard.
13813 * common/gdb_setjmp.h: Rename include guard.
13814 * common/gdb_ref_ptr.h: Rename include guard.
13815 * common/gdb_optional.h: Rename include guard.
13816 * common/gdb_locale.h: Rename include guard.
13817 * common/gdb_assert.h: Rename include guard.
13818 * common/filtered-iterator.h: Rename include guard.
13819 * common/filestuff.h: Rename include guard.
13820 * common/fileio.h: Rename include guard.
13821 * common/environ.h: Rename include guard.
13822 * common/common-utils.h: Rename include guard.
13823 * common/common-types.h: Rename include guard.
13824 * common/common-regcache.h: Rename include guard.
13825 * common/common-inferior.h: Rename include guard.
13826 * common/common-gdbthread.h: Rename include guard.
13827 * common/common-exceptions.h: Rename include guard.
13828 * common/common-defs.h: Rename include guard.
13829 * common/common-debug.h: Rename include guard.
13830 * common/cleanups.h: Rename include guard.
13831 * common/buffer.h: Rename include guard.
13832 * common/btrace-common.h: Rename include guard.
13833 * common/break-common.h: Rename include guard.
13834 * cli/cli-utils.h: Rename include guard.
13835 * cli/cli-style.h: Rename include guard.
13836 * cli/cli-setshow.h: Rename include guard.
13837 * cli/cli-script.h: Rename include guard.
13838 * cli/cli-interp.h: Rename include guard.
13839 * cli/cli-decode.h: Rename include guard.
13840 * cli/cli-cmds.h: Rename include guard.
13841 * charset-list.h: Add include guard.
13842 * buildsym-legacy.h: Rename include guard.
13843 * bfin-tdep.h: Add include guard.
13844 * ax.h: Rename include guard.
13845 * arm-linux-tdep.h: Add include guard.
13846 * arm-fbsd-tdep.h: Add include guard.
13847 * arch/xtensa.h: Rename include guard.
13848 * arch/tic6x.h: Add include guard.
13849 * arch/i386.h: Add include guard.
13850 * arch/arm.h: Rename include guard.
13851 * arch/arm-linux.h: Rename include guard.
13852 * arch/arm-get-next-pcs.h: Rename include guard.
13853 * arch/amd64.h: Add include guard.
13854 * arch/aarch64-insn.h: Rename include guard.
13855 * arch-utils.h: Rename include guard.
13856 * annotate.h: Add include guard.
13857 * amd64-darwin-tdep.h: Rename include guard.
13858 * aarch64-linux-tdep.h: Add include guard.
13859 * aarch64-fbsd-tdep.h: Add include guard.
13860 * aarch32-linux-nat.h: Add include guard.
13861
13862 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13863
13864 * macrotab.c (macro_define_internal): New function that
13865 factorizes macro_define_object_internal and macro_define_function
13866 code.
13867 (macro_define_object_internal): Use macro_define_internal.
13868 (macro_define_function): Likewise.
13869
13870 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13871
13872 * macrocmd.c (extract_identifier): Return
13873 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13874 callers.
13875
13876 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13877
13878 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13879
13880 2019-02-05 Tom Tromey <tom@tromey.com>
13881
13882 * target.c (target_stack::unpush): Move assertion earlier.
13883
13884 2019-01-30 Tom Tromey <tom@tromey.com>
13885
13886 PR python/23615:
13887 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13888 (gdbpy_parse_and_eval): Likewise.
13889 * python/python-internal.h (gdbpy_allow_threads): New class.
13890
13891 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13892
13893 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13894 (aarch64_fbsd_fpregmap): Move earlier.
13895 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13896 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13897 instead of individual calls to trad_frame_set_reg_addr.
13898 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13899 earlier.
13900 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13901 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13902 instead of individual calls to trad_frame_set_reg_addr.
13903
13904 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13905
13906 * CONTRIBUTE: Replace contribution list with wiki link.
13907
13908 2019-01-25 Tom Tromey <tom@tromey.com>
13909
13910 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13911
13912 2019-01-25 Tom Tromey <tom@tromey.com>
13913
13914 * xtensa-linux-nat.c: Fix common/ includes.
13915 * xml-support.h: Fix common/ includes.
13916 * xml-support.c: Fix common/ includes.
13917 * x86-linux-nat.c: Fix common/ includes.
13918 * windows-nat.c: Fix common/ includes.
13919 * varobj.h: Fix common/ includes.
13920 * varobj.c: Fix common/ includes.
13921 * value.c: Fix common/ includes.
13922 * valops.c: Fix common/ includes.
13923 * utils.c: Fix common/ includes.
13924 * unittests/xml-utils-selftests.c: Fix common/ includes.
13925 * unittests/utils-selftests.c: Fix common/ includes.
13926 * unittests/unpack-selftests.c: Fix common/ includes.
13927 * unittests/tracepoint-selftests.c: Fix common/ includes.
13928 * unittests/style-selftests.c: Fix common/ includes.
13929 * unittests/string_view-selftests.c: Fix common/ includes.
13930 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13931 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13932 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13933 * unittests/rsp-low-selftests.c: Fix common/ includes.
13934 * unittests/parse-connection-spec-selftests.c: Fix common/
13935 includes.
13936 * unittests/optional-selftests.c: Fix common/ includes.
13937 * unittests/offset-type-selftests.c: Fix common/ includes.
13938 * unittests/observable-selftests.c: Fix common/ includes.
13939 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13940 * unittests/memrange-selftests.c: Fix common/ includes.
13941 * unittests/memory-map-selftests.c: Fix common/ includes.
13942 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13943 * unittests/function-view-selftests.c: Fix common/ includes.
13944 * unittests/environ-selftests.c: Fix common/ includes.
13945 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13946 * unittests/common-utils-selftests.c: Fix common/ includes.
13947 * unittests/cli-utils-selftests.c: Fix common/ includes.
13948 * unittests/array-view-selftests.c: Fix common/ includes.
13949 * ui-file.c: Fix common/ includes.
13950 * tui/tui-io.c: Fix common/ includes.
13951 * tracepoint.h: Fix common/ includes.
13952 * tracepoint.c: Fix common/ includes.
13953 * tracefile-tfile.c: Fix common/ includes.
13954 * top.h: Fix common/ includes.
13955 * top.c: Fix common/ includes.
13956 * thread.c: Fix common/ includes.
13957 * target/waitstatus.h: Fix common/ includes.
13958 * target/waitstatus.c: Fix common/ includes.
13959 * target.h: Fix common/ includes.
13960 * target.c: Fix common/ includes.
13961 * target-memory.c: Fix common/ includes.
13962 * target-descriptions.c: Fix common/ includes.
13963 * symtab.h: Fix common/ includes.
13964 * symfile.c: Fix common/ includes.
13965 * stap-probe.c: Fix common/ includes.
13966 * spu-linux-nat.c: Fix common/ includes.
13967 * sparc-nat.c: Fix common/ includes.
13968 * source.c: Fix common/ includes.
13969 * solib.c: Fix common/ includes.
13970 * solib-target.c: Fix common/ includes.
13971 * ser-unix.c: Fix common/ includes.
13972 * ser-tcp.c: Fix common/ includes.
13973 * ser-pipe.c: Fix common/ includes.
13974 * ser-base.c: Fix common/ includes.
13975 * selftest-arch.c: Fix common/ includes.
13976 * s12z-tdep.c: Fix common/ includes.
13977 * rust-exp.y: Fix common/ includes.
13978 * rs6000-aix-tdep.c: Fix common/ includes.
13979 * riscv-tdep.c: Fix common/ includes.
13980 * remote.c: Fix common/ includes.
13981 * remote-notif.h: Fix common/ includes.
13982 * remote-fileio.h: Fix common/ includes.
13983 * remote-fileio.c: Fix common/ includes.
13984 * regcache.h: Fix common/ includes.
13985 * regcache.c: Fix common/ includes.
13986 * record-btrace.c: Fix common/ includes.
13987 * python/python.c: Fix common/ includes.
13988 * python/py-type.c: Fix common/ includes.
13989 * python/py-inferior.c: Fix common/ includes.
13990 * progspace.h: Fix common/ includes.
13991 * producer.c: Fix common/ includes.
13992 * procfs.c: Fix common/ includes.
13993 * proc-api.c: Fix common/ includes.
13994 * printcmd.c: Fix common/ includes.
13995 * ppc-linux-nat.c: Fix common/ includes.
13996 * parser-defs.h: Fix common/ includes.
13997 * osdata.c: Fix common/ includes.
13998 * obsd-nat.c: Fix common/ includes.
13999 * nat/x86-linux.c: Fix common/ includes.
14000 * nat/x86-linux-dregs.c: Fix common/ includes.
14001 * nat/x86-dregs.h: Fix common/ includes.
14002 * nat/x86-dregs.c: Fix common/ includes.
14003 * nat/ppc-linux.c: Fix common/ includes.
14004 * nat/mips-linux-watch.h: Fix common/ includes.
14005 * nat/mips-linux-watch.c: Fix common/ includes.
14006 * nat/linux-waitpid.c: Fix common/ includes.
14007 * nat/linux-ptrace.h: Fix common/ includes.
14008 * nat/linux-ptrace.c: Fix common/ includes.
14009 * nat/linux-procfs.c: Fix common/ includes.
14010 * nat/linux-personality.c: Fix common/ includes.
14011 * nat/linux-osdata.c: Fix common/ includes.
14012 * nat/linux-namespaces.c: Fix common/ includes.
14013 * nat/linux-btrace.h: Fix common/ includes.
14014 * nat/linux-btrace.c: Fix common/ includes.
14015 * nat/fork-inferior.c: Fix common/ includes.
14016 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14017 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14018 * nat/aarch64-linux.c: Fix common/ includes.
14019 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14020 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14021 * namespace.h: Fix common/ includes.
14022 * mips-linux-tdep.c: Fix common/ includes.
14023 * minsyms.c: Fix common/ includes.
14024 * mi/mi-parse.h: Fix common/ includes.
14025 * mi/mi-main.c: Fix common/ includes.
14026 * mi/mi-cmd-env.c: Fix common/ includes.
14027 * memrange.h: Fix common/ includes.
14028 * memattr.c: Fix common/ includes.
14029 * maint.h: Fix common/ includes.
14030 * maint.c: Fix common/ includes.
14031 * main.c: Fix common/ includes.
14032 * machoread.c: Fix common/ includes.
14033 * location.c: Fix common/ includes.
14034 * linux-thread-db.c: Fix common/ includes.
14035 * linux-nat.c: Fix common/ includes.
14036 * linux-fork.c: Fix common/ includes.
14037 * inline-frame.c: Fix common/ includes.
14038 * infrun.c: Fix common/ includes.
14039 * inflow.c: Fix common/ includes.
14040 * inferior.h: Fix common/ includes.
14041 * inferior.c: Fix common/ includes.
14042 * infcmd.c: Fix common/ includes.
14043 * inf-ptrace.c: Fix common/ includes.
14044 * inf-child.c: Fix common/ includes.
14045 * ia64-linux-nat.c: Fix common/ includes.
14046 * i387-tdep.c: Fix common/ includes.
14047 * i386-tdep.c: Fix common/ includes.
14048 * i386-linux-tdep.c: Fix common/ includes.
14049 * i386-linux-nat.c: Fix common/ includes.
14050 * i386-go32-tdep.c: Fix common/ includes.
14051 * i386-fbsd-tdep.c: Fix common/ includes.
14052 * i386-fbsd-nat.c: Fix common/ includes.
14053 * guile/scm-type.c: Fix common/ includes.
14054 * guile/guile.c: Fix common/ includes.
14055 * go32-nat.c: Fix common/ includes.
14056 * gnu-nat.c: Fix common/ includes.
14057 * gdbthread.h: Fix common/ includes.
14058 * gdbarch-selftests.c: Fix common/ includes.
14059 * gdb_usleep.c: Fix common/ includes.
14060 * gdb_select.h: Fix common/ includes.
14061 * gdb_bfd.c: Fix common/ includes.
14062 * gcore.c: Fix common/ includes.
14063 * fork-child.c: Fix common/ includes.
14064 * findvar.c: Fix common/ includes.
14065 * fbsd-nat.c: Fix common/ includes.
14066 * event-top.c: Fix common/ includes.
14067 * event-loop.c: Fix common/ includes.
14068 * dwarf2read.c: Fix common/ includes.
14069 * dwarf2loc.c: Fix common/ includes.
14070 * dwarf2-frame.c: Fix common/ includes.
14071 * dwarf-index-cache.c: Fix common/ includes.
14072 * dtrace-probe.c: Fix common/ includes.
14073 * disasm-selftests.c: Fix common/ includes.
14074 * defs.h: Fix common/ includes.
14075 * csky-tdep.c: Fix common/ includes.
14076 * cp-valprint.c: Fix common/ includes.
14077 * cp-support.h: Fix common/ includes.
14078 * cp-support.c: Fix common/ includes.
14079 * corelow.c: Fix common/ includes.
14080 * completer.h: Fix common/ includes.
14081 * completer.c: Fix common/ includes.
14082 * compile/compile.c: Fix common/ includes.
14083 * compile/compile-loc2c.c: Fix common/ includes.
14084 * compile/compile-cplus-types.c: Fix common/ includes.
14085 * compile/compile-cplus-symbols.c: Fix common/ includes.
14086 * command.h: Fix common/ includes.
14087 * cli/cli-dump.c: Fix common/ includes.
14088 * cli/cli-cmds.c: Fix common/ includes.
14089 * charset.c: Fix common/ includes.
14090 * build-id.c: Fix common/ includes.
14091 * btrace.h: Fix common/ includes.
14092 * btrace.c: Fix common/ includes.
14093 * breakpoint.h: Fix common/ includes.
14094 * breakpoint.c: Fix common/ includes.
14095 * ax.h:
14096 (enum agent_op): Fix common/ includes.
14097 * ax-general.c (struct aop_map): Fix common/ includes.
14098 * ax-gdb.c: Fix common/ includes.
14099 * auxv.c: Fix common/ includes.
14100 * auto-load.c: Fix common/ includes.
14101 * arm-tdep.c: Fix common/ includes.
14102 * arch/riscv.c: Fix common/ includes.
14103 * arch/ppc-linux-common.c: Fix common/ includes.
14104 * arch/i386.c: Fix common/ includes.
14105 * arch/arm.c: Fix common/ includes.
14106 * arch/arm-linux.c: Fix common/ includes.
14107 * arch/arm-get-next-pcs.c: Fix common/ includes.
14108 * arch/amd64.c: Fix common/ includes.
14109 * arch/aarch64.c: Fix common/ includes.
14110 * arch/aarch64-insn.c: Fix common/ includes.
14111 * arch-utils.c: Fix common/ includes.
14112 * amd64-windows-tdep.c: Fix common/ includes.
14113 * amd64-tdep.c: Fix common/ includes.
14114 * amd64-sol2-tdep.c: Fix common/ includes.
14115 * amd64-obsd-tdep.c: Fix common/ includes.
14116 * amd64-nbsd-tdep.c: Fix common/ includes.
14117 * amd64-linux-tdep.c: Fix common/ includes.
14118 * amd64-linux-nat.c: Fix common/ includes.
14119 * amd64-fbsd-tdep.c: Fix common/ includes.
14120 * amd64-fbsd-nat.c: Fix common/ includes.
14121 * amd64-dicos-tdep.c: Fix common/ includes.
14122 * amd64-darwin-tdep.c: Fix common/ includes.
14123 * agent.c: Fix common/ includes.
14124 * ada-lang.h: Fix common/ includes.
14125 * ada-lang.c: Fix common/ includes.
14126 * aarch64-tdep.c: Fix common/ includes.
14127
14128 2019-01-25 Tom Tromey <tom@tromey.com>
14129
14130 * common/create-version.sh: Use common/version.h.
14131
14132 2019-01-24 Pedro Alves <palves@redhat.com>
14133
14134 * infrun.c (signal_stop, signal_print, signal_program)
14135 (signal_catch, signal_pass): Now arrays instead of pointers.
14136 (update_signals_program_target, do_target_resume)
14137 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14138 * linux-nat.c (linux_nat_target::pass_signals)
14139 (linux_nat_target::create_inferior, linux_nat_target::attach):
14140 Adjust.
14141 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14142 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14143 * procfs.c (procfs_target::pass_signals): Adjust.
14144 * record-full.c (record_full_target::resume): Adjust.
14145 * remote.c (remote_target::pass_signals)
14146 (remote_target::program_signals): Adjust.
14147 * target-debug.h (target_debug_print_signals): Now takes a
14148 gdb::array_view as parameter. Adjust.
14149 * target.h (target_ops) <pass_signals, program_signals>: Replace
14150 pointer and length parameters with gdb::array_view.
14151 (target_pass_signals, target_program_signals): Likewise.
14152 * target-delegates.c: Regenerate.
14153
14154 2019-01-24 Pedro Alves <palves@redhat.com>
14155
14156 * common/forward-scope-exit.h
14157 (forward_scope_exit::forward_scope_exit): Pass arguments to
14158 m_bind_function directly, instead of creating a std::bind and
14159 copying that.
14160
14161 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14162
14163 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14164 for static members.
14165 (pass_in_v_vfp_candidate): Likewise.
14166
14167 2019-01-23 Tom Tromey <tom@tromey.com>
14168 Pedro Alves <palves@redhat.com>
14169
14170 * regcache.c (class regcache_invalidator): Remove.
14171 (regcache::raw_write): Use make_scope_exit.
14172
14173 2019-01-23 Tom Tromey <tom@tromey.com>
14174
14175 * ui-out.h (class ui_out_emit_type): Update comment.
14176
14177 2019-01-23 Tom Tromey <tom@tromey.com>
14178
14179 * infrun.c (fetch_inferior_event): Update comment.
14180
14181 2019-01-23 Tom Tromey <tom@tromey.com>
14182 Pedro Alves <palves@redhat.com>
14183
14184 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14185 parameter.
14186 (fetch_inferior_event): Use SCOPE_EXIT.
14187
14188
14189 2019-01-23 Tom Tromey <tom@tromey.com>
14190 Pedro Alves <palves@redhat.com>
14191
14192 * infrun.c (disable_thread_events): Delete.
14193 (stop_all_threads): Use SCOPE_EXIT.
14194
14195 2019-01-23 Tom Tromey <tom@tromey.com>
14196 Pedro Alves <palves@redhat.com>
14197
14198 * symfile.c: Include forward-scope-exit.h.
14199 (clear_symtab_users_cleanup): Replace forward declaration with
14200 a FORWARD_SCOPE_EXIT.
14201 (syms_from_objfile_1): Use the forward_scope_exit and
14202 gdb::optional instead of cleanup_function.
14203 (reread_symbols): Use the forward_scope_exit instead of
14204 cleanup_function.
14205 (clear_symtab_users_cleanup): Remove function.
14206
14207 2019-01-23 Tom Tromey <tom@tromey.com>
14208 Pedro Alves <palves@redhat.com>
14209
14210 * linux-nat.c: Include scope-exit.h.
14211 (cleanup_target_stop): Remove.
14212 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14213 SCOPE_EXIT.
14214
14215 2019-01-23 Tom Tromey <tom@tromey.com>
14216 Pedro Alves <palves@redhat.com>
14217
14218 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14219 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14220
14221 2019-01-23 Tom Tromey <tom@tromey.com>
14222 Andrew Burgess <andrew.burgess@embecosm.com>
14223 Pedro Alves <palves@redhat.com>
14224
14225 * infrun.c (fetch_inferior_event): Use scope_exit.
14226 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14227 * top.c (execute_command): Use scope_exit.
14228 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14229 * utils.c (do_bpstat_clear_actions_cleanup)
14230 (make_bpstat_clear_actions_cleanup): Remove.
14231
14232 2019-01-23 Tom Tromey <tom@tromey.com>
14233 Pedro Alves <palves@redhat.com>
14234
14235 * infrun.c: Include "common/scope-exit.h"
14236 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14237 (wait_for_inferior): Use SCOPE_EXIT.
14238 (fetch_inferior_event): Use scope_exit.
14239
14240 2019-01-23 Tom Tromey <tom@tromey.com>
14241 Pedro Alves <palves@redhat.com>
14242
14243 * breakpoint.c (create_breakpoint): Remove cleanup.
14244
14245 2019-01-23 Tom Tromey <tom@tromey.com>
14246 Andrew Burgess <andrew.burgess@embecosm.com>
14247 Pedro Alves <palves@redhat.com>
14248
14249 2019-01-23 Pedro Alves <palves@redhat.com>
14250
14251 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14252
14253 2019-01-23 Pedro Alves <palves@redhat.com>
14254 Andrew Burgess <andrew.burgess@embecosm.com>
14255
14256 * gdbthread.h: Include "common/forward-scope-exit.h".
14257 (scoped_finish_thread_state): Redefine custom class in terms of
14258 forward_scope_exit.
14259
14260 2019-01-23 Pedro Alves <palves@redhat.com>
14261 Andrew Burgess <andrew.burgess@embecosm.com>
14262
14263 * common/forward-scope-exit.h: New file.
14264
14265 2019-01-23 Pedro Alves <palves@redhat.com>
14266 Andrew Burgess <andrew.burgess@embecosm.com>
14267 Tom Tromey <tom@tromey.com>
14268
14269 * common/scope-exit.h: New file.
14270
14271 2019-01-23 Pedro Alves <palves@redhat.com>
14272
14273 * common/preprocessor.h (ESC): Rename to ...
14274 (ESC_PARENS): ... this.
14275 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14276 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14277
14278 2019-01-23 Tom Tromey <tom@tromey.com>
14279
14280 * language.h (class scoped_switch_to_sym_language_if_auto):
14281 Initialize m_lang in both cases.
14282
14283 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14284
14285 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14286 with XCNEW.
14287
14288 2019-01-22 Tom Tromey <tom@tromey.com>
14289
14290 * corelow.c: Do not include sys/file.h.
14291
14292 2019-01-22 Tom Tromey <tom@tromey.com>
14293
14294 * tui/tui-wingeneral.h: Include gdb_curses.h.
14295
14296 2019-01-22 Tom Tromey <tom@tromey.com>
14297
14298 * source-cache.h (class source_cache) <get_source_lines,
14299 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14300
14301 2019-01-22 Tom Tromey <tom@tromey.com>
14302
14303 * remote-fileio.h (struct remote_target): Declare.
14304
14305 2019-01-22 Tom Tromey <tom@tromey.com>
14306
14307 * python/py-arch.c: Do not include py-ref.h.
14308 * python/py-bpevent.c: Do not include py-ref.h.
14309 * python/py-cmd.c: Do not include py-ref.h.
14310 * python/py-continueevent.c: Do not include py-ref.h.
14311 * python/py-event.h: Do not include py-ref.h.
14312 * python/py-evtregistry.c: Do not include py-ref.h.
14313 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14314 * python/py-frame.c: Do not include py-ref.h.
14315 * python/py-framefilter.c: Do not include py-ref.h.
14316 * python/py-function.c: Do not include py-ref.h.
14317 * python/py-infevents.c: Do not include py-ref.h.
14318 * python/py-linetable.c: Do not include py-ref.h.
14319 * python/py-objfile.c: Do not include py-ref.h.
14320 * python/py-param.c: Do not include py-ref.h.
14321 * python/py-prettyprint.c: Do not include py-ref.h.
14322 * python/py-progspace.c: Do not include py-ref.h.
14323 * python/py-symbol.c: Do not include py-ref.h.
14324 * python/py-symtab.c: Do not include py-ref.h.
14325 * python/py-type.c: Do not include py-ref.h.
14326 * python/py-unwind.c: Do not include py-ref.h.
14327 * python/py-utils.c: Do not include py-ref.h.
14328 * python/py-value.c: Do not include py-ref.h.
14329 * python/py-varobj.c: Do not include py-ref.h.
14330 * python/py-xmethods.c: Do not include py-ref.h.
14331 * python/python.c: Do not include py-ref.h.
14332 * varobj.c: Do not include py-ref.h.
14333
14334 2019-01-22 Tom Tromey <tom@tromey.com>
14335
14336 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14337 keyword for bcache.
14338
14339 2019-01-22 Tom Tromey <tom@tromey.com>
14340
14341 * compile/compile-cplus-types.c: Remove a comment by #include.
14342
14343 2019-01-22 Tom Tromey <tom@tromey.com>
14344
14345 * compile/gcc-c-plugin.h: Include compile-internal.h.
14346
14347 2019-01-22 Tom Tromey <tom@tromey.com>
14348
14349 * stabsread.c (EXTERN): Do not define.
14350 (symnum, next_symbol_text_func, processing_gcc_compilation)
14351 (within_function, global_sym_chain, global_stabs)
14352 (previous_stab_code, this_object_header_files)
14353 (n_this_object_header_files)
14354 (n_allocated_this_object_header_files): Define.
14355 * stabsread.h (EXTERN): Never define. Use "extern".
14356
14357 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14358
14359 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14360 history_value.
14361
14362 2019-01-21 Tom Tromey <tom@tromey.com>
14363
14364 * ui-out.c: Fix includes.
14365 * tui/tui-source.c: Fix includes.
14366 * target.c: Fix includes.
14367 * remote.c: Fix includes.
14368 * regcache.c: Fix includes.
14369 * python/py-block.c: Fix includes.
14370 * printcmd.c: Fix includes.
14371 * or1k-tdep.c: Fix includes.
14372 * mi/mi-main.c: Fix includes.
14373 * m32r-tdep.c: Fix includes.
14374 * csky-tdep.c: Fix includes.
14375 * compile/compile-cplus-types.c: Fix includes.
14376 * cli/cli-interp.c: Fix includes.
14377
14378 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14379
14380 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14381 for padding.
14382
14383 2019-01-16 Tom Tromey <tom@tromey.com>
14384
14385 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14386 earlier.
14387 (struct objfile) <msymbols_range>: Move from top level.
14388 <msymbols>: New method.
14389 (class objfile_msymbols): Remove.
14390 * symtab.c (default_collect_symbol_completion_matches_break_on):
14391 Update.
14392 * symmisc.c (dump_msymbols): Update.
14393 * stabsread.c (scan_file_globals): Update.
14394 * objc-lang.c (info_selectors_command, info_classes_command)
14395 (find_methods): Update.
14396 * minsyms.c (find_solib_trampoline_target): Update.
14397 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14398 * coffread.c (coff_symfile_read): Update.
14399 * ada-lang.c (ada_lookup_simple_minsym)
14400 (ada_collect_symbol_completion_matches): Update.
14401
14402 2019-01-16 Tom Tromey <tom@tromey.com>
14403
14404 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14405 type. Remove no-argument constructor.
14406 <iterator::operator++>: Simplify.
14407 <begin>: Update.
14408 <end>: Use minimal_symbol_count.
14409
14410 2019-01-16 Tom Tromey <tom@tromey.com>
14411
14412 * objfiles.h (struct objfile) <psymtabs>: New method.
14413 (class objfile_psymtabs): Remove.
14414 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14415 typedef.
14416 <range>: New method.
14417 (require_partial_symbols): Change return type.
14418 * psymtab.c (require_partial_symbols)
14419 (psym_expand_symtabs_matching): Update.
14420 * mdebugread.c (parse_partial_symbols): Update.
14421 * dbxread.c (dbx_end_psymtab): Update.
14422
14423 2019-01-15 Tom Tromey <tom@tromey.com>
14424
14425 * symtab.c (lookup_objfile_from_block)
14426 (lookup_symbol_in_objfile_symtabs)
14427 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14428 (find_line_symtab, info_sources_command)
14429 (default_collect_symbol_completion_matches_break_on)
14430 (make_source_files_completion_list): Update.
14431 * symmisc.c (print_objfile_statistics, dump_objfile)
14432 (maintenance_print_symbols, maintenance_info_symtabs)
14433 (maintenance_check_symtabs, maintenance_info_line_tables):
14434 Update.
14435 * source.c (select_source_symtab)
14436 (forget_cached_source_info_for_objfile): Update.
14437 * objfiles.h (class objfile_compunits): Remove.
14438 (struct objfile) <compunits_range>: New typedef.
14439 (compunits): New method.
14440 * objfiles.c (objfile_relocate1): Update.
14441 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14442 * maint.c (count_symtabs_and_blocks): Update.
14443 * linespec.c (iterate_over_all_matching_symtabs): Update.
14444 * cp-support.c (add_symbol_overload_list_qualified): Update.
14445 * coffread.c (coff_symtab_read): Update.
14446 * ada-lang.c (add_nonlocal_symbols)
14447 (ada_collect_symbol_completion_matches)
14448 (ada_add_global_exceptions): Update.
14449
14450 2019-01-15 Tom Tromey <tom@tromey.com>
14451
14452 * progspace.h (program_space) <objfiles_safe_range>: New
14453 typedef.
14454 <objfiles_safe>: New method.
14455 * objfiles.h (class all_objfiles_safe): Remove.
14456 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14457 * jit.c (jit_inferior_exit_hook): Update.
14458
14459 2019-01-17 Tom Tromey <tom@tromey.com>
14460
14461 * progspace.h (program_space) <objfiles_range>: New typedef.
14462 <objfiles>: New method.
14463 <objfiles_head>: Rename from objfiles.
14464 (object_files): Update.
14465 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14466 * guile/scm-pretty-print.c
14467 (ppscm_find_pretty_printer_from_objfiles): Update.
14468 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14469 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14470 Update.
14471 * python/py-progspace.c (pspy_get_objfiles): Update.
14472 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14473 Update.
14474 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14475 (objfpy_lookup_objfile_by_build_id): Update.
14476 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14477 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14478 Update.
14479 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14480 (expand_symtab_containing_pc, lookup_objfile_from_block)
14481 (lookup_static_symbol, basic_lookup_transparent_type)
14482 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14483 (find_line_symtab, info_sources_command)
14484 (default_collect_symbol_completion_matches_break_on)
14485 (make_source_files_completion_list, find_main_name): Update.
14486 * symmisc.c (print_symbol_bcache_statistics)
14487 (print_objfile_statistics, maintenance_print_symbols)
14488 (maintenance_print_msymbols, maintenance_print_objfiles)
14489 (maintenance_info_symtabs, maintenance_check_symtabs)
14490 (maintenance_expand_symtabs, maintenance_info_line_tables):
14491 Update.
14492 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14493 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14494 (map_overlay_command, unmap_overlay_command)
14495 (simple_overlay_update, expand_symtabs_matching)
14496 (map_symbol_filenames): Update.
14497 * symfile-debug.c (set_debug_symfile): Update.
14498 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14499 Update.
14500 * source.c (select_source_symtab, forget_cached_source_info):
14501 Update.
14502 * solib.c (solib_read_symbols): Update.
14503 * solib-spu.c (append_ocl_sos): Update.
14504 * psymtab.c (maintenance_print_psymbols)
14505 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14506 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14507 * printcmd.c (info_symbol_command): Update.
14508 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14509 Update.
14510 * objfiles.h (class all_objfiles): Remove.
14511 * objfiles.c (have_partial_symbols, have_full_symbols)
14512 (have_minimal_symbols, qsort_cmp, update_section_map)
14513 (shared_objfile_contains_address_p)
14514 (default_iterate_over_objfiles_in_search_order): Update.
14515 * objc-lang.c (info_selectors_command, info_classes_command)
14516 (find_methods): Update.
14517 * minsyms.c (find_solib_trampoline_target): Update.
14518 * maint.c (maintenance_info_sections)
14519 (maintenance_translate_address, count_symtabs_and_blocks):
14520 Update.
14521 * main.c (captured_main_1): Update.
14522 * linux-thread-db.c (try_thread_db_load_from_pdir)
14523 (has_libpthread): Update.
14524 * linespec.c (iterate_over_all_matching_symtabs)
14525 (search_minsyms_for_name): Update.
14526 * jit.c (jit_find_objf_with_entry_addr): Update.
14527 * hppa-tdep.c (find_unwind_entry)
14528 (hppa_lookup_stub_minimal_symbol): Update.
14529 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14530 Update.
14531 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14532 (elf_gnu_ifunc_resolve_by_got): Update.
14533 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14534 * dwarf-index-write.c (save_gdb_index_command): Update.
14535 * cp-support.c (add_symbol_overload_list_qualified): Update.
14536 * breakpoint.c (create_overlay_event_breakpoint)
14537 (create_longjmp_master_breakpoint)
14538 (create_std_terminate_master_breakpoint)
14539 (create_exception_master_breakpoint): Update.
14540 * blockframe.c (find_pc_partial_function): Update.
14541 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14542 (ada_collect_symbol_completion_matches)
14543 (ada_add_global_exceptions): Update.
14544
14545 2019-01-17 Tom Tromey <tom@tromey.com>
14546
14547 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14548 declare VEC.
14549 (solib_target_parse_libraries): Change return type.
14550 (library_list_start_segment, library_list_start_section)
14551 (library_list_end_library, library_list_start_library); Update.
14552 (solib_target_free_library_list): Remove.
14553 (solib_target_parse_libraries): Remove cleanup. Change return
14554 type.
14555 (solib_target_current_sos): Update.
14556
14557 2019-01-17 Tom Tromey <tromey@bapiya>
14558
14559 * valprint.c: Replace "the the" with "the".
14560 * symtab.c: Replace "the the" with "the".
14561 * solib.c: Replace "the the" with "the".
14562 * solib-dsbt.c: Replace "the the" with "the".
14563 * linespec.c: Replace "the the" with "the".
14564 * dwarf2loc.h: Replace "the the" with "the".
14565 * amd64-windows-tdep.c: Replace "the the" with "the".
14566 * aarch64-tdep.c: Replace "the the" with "the".
14567
14568 2019-01-16 Keith Seitz <keiths@redhat.com>
14569
14570 PR gdb/23773
14571 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14572 <builder>: Rename to ..
14573 <m_builder>: ... this and make private.
14574 (dwarf2_cu::get_builder): New method. Change all users of
14575 `builder' to use this method.
14576 (dwarf2_start_symtab): Move to ...
14577 (dwarf2_cu::start_symtab): ... here. Update all callers
14578 (setup_type_unit_groups): Move to ...
14579 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14580 callers.
14581 (dwarf2_cu::reset_builder): New method.
14582 (process_full_compunit, process_full_type_unit): Use
14583 dwarf2_cu::reset_builder.
14584 (follow_die_offset): Record the ancestor CU if it is different
14585 from the followed DIE's CU.
14586 (follow_die_sig_1): Likewise.
14587
14588 2019-01-15 Tom Tromey <tom@tromey.com>
14589
14590 * remote.c (class remote_state) <buf>: Now a char_vector.
14591 <buf_size>: Remove.
14592 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14593 parameter.
14594 (remote_target::getpkt_or_notif_sane_1)
14595 (remote_target::getpkt_sane)
14596 (remote_target::getpkt_or_notif_sane): Likewise.
14597 (class remote_target) <putpkt>: New overload.
14598 (remote_target::read_frame): Change type of "buf_p". Remove
14599 sizeof_p parameter.
14600 (packet_ok): New overload.
14601 (packet_check_result): New overload.
14602 Update all uses.
14603
14604 2019-01-14 Tom Tromey <tom@tromey.com>
14605
14606 * remote-notif.c (handle_notification, remote_notif_ack)
14607 (remote_notif_parse): Make "buf" const.
14608 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14609 const.
14610 (remote_notif_parse, remote_notif_ack, handle_notification):
14611 Likewise.
14612 * remote.c (remote_notif_stop_parse): Make "buf" const.
14613 (remote_target::remote_parse_stop_reply): Make "buf" const.
14614 (remote_notif_stop_ack): Make "buf" const.
14615
14616 2019-01-14 Tom Tromey <tom@tromey.com>
14617
14618 * remote.c (remote_console_output): Make parameter const.
14619
14620 2019-01-14 Tom Tromey <tom@tromey.com>
14621
14622 * target-debug.h (target_debug_print_signals): Constify.
14623 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14624 * procfs.c (procfs_target::pass_signals): Update.
14625 * linux-nat.c (linux_nat_target::pass_signals): Update.
14626 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14627 * target-delegates.c: Rebuild.
14628 * remote.c (remote_target::program_signals): Update.
14629 (remote_target::pass_signals): Update.
14630 * target.c (target_pass_signals): Constify argument.
14631 (target_program_signals): Likewise.
14632 * target.h (struct target_ops) <pass_signals, program_signals>:
14633 Constify argument.
14634 (target_pass_signals, target_program_signals): Constify argument.
14635
14636 2019-01-14 Tom Tromey <tom@tromey.com>
14637
14638 PR tui/28819:
14639 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14640
14641 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14642
14643 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14644 field.
14645 * rs6000-tdep.c: Include reggroups.h.
14646 (IS_V_ALIAS_PSEUDOREG): Define.
14647 (rs6000_register_name): Return names for the "vX" aliases.
14648 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14649 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14650 aliases. Call default_register_reggroup_p for all other
14651 pseudo-registers.
14652 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14653 New functions.
14654 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14655 Handle "vX" aliases.
14656 (v_alias_pseudo_register_collect): New function.
14657 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14658 (rs6000_gdbarch_init): Initialize "vX" aliases as
14659 pseudo-registers. Restore registration of
14660 rs6000_pseudo_register_reggroup_p with
14661 set_tdesc_pseudo_register_reggroup_p.
14662
14663 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14664
14665 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14666 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14667 set_gdbarch_num_pseudo_regs.
14668
14669 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14670
14671 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14672 Remove arg prefixname, add do_set and do_show.
14673 Add member functions set_list and show_list.
14674 * cli/cli-style.c (class cli_style_option): Update accordingly.
14675 (style_set_list): Move to file scope.
14676 (style_show_list): Likewise.
14677 (set_style): Call help_list.
14678 (show_style): Call cmd_show_list.
14679 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14680 Update to use the new macro.
14681
14682 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14683
14684 * ada-lang.c (_initialize_ada_language): Expand the help text
14685 for the "catch exception" command.
14686
14687 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14688
14689 * symtab.c (matching_obj_sections): Initialize obj,
14690 declare it closer to its usage.
14691
14692 2019-01-10 Tom Tromey <tom@tromey.com>
14693
14694 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14695 (basic_inf_threads_range): Remove.
14696 (inf_threads_range, inf_non_exited_threads_range)
14697 (safe_inf_threads_range): Use next_adapter.
14698
14699 2019-01-10 Keith Seitz <keiths@redhat.com>
14700
14701 PR gdb/23712
14702 PR symtab/23010
14703 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14704 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14705
14706 2019-01-10 Keith Seitz <keiths@redhat.com>
14707
14708 PR gdb/23712
14709 PR symtab/23010
14710 * dictionary.c (pending_to_vector): Remove.
14711 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14712 Remove _1 suffix, replacing functions of the same name. Update
14713 all callers.
14714 (dict_create_hashed, dict_create_hashed_expandable)
14715 (dict_create_linear, dict_create_linear_expandable, dict_free)
14716 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14717 Make functions static.
14718
14719 2019-01-10 Keith Seitz <keiths@redhat.com>
14720
14721 PR gdb/23712
14722 PR symtab/23010
14723 * dictionary.h (struct dictionary): Replace declaration with
14724 multidictionary.
14725 (dict_create_hashed, dict_create_hashed_expandable)
14726 (dict_create_linear, dict_create_linear_expandable)
14727 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14728 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14729 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14730 taking multidictionary argument.
14731 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14732 * block.h (struct block) <dict>: Change to multidictionary
14733 and rename `multidict'.
14734 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14735 symmisc.c: Update all dictionary references to multidictionary.
14736
14737 2019-01-10 Keith Seitz <keiths@redhat.com>
14738
14739 PR gdb/23712
14740 PR symtab/23010
14741 * dictionary.c: Include unordered_map.
14742 (pending_to_vector): New function.
14743 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14744 Rewrite the non-"_1" functions to take vector instead
14745 of linked list.
14746 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14747 "new" _1 versions of the same name.
14748 (multidictionary): Define.
14749 (std::hash<enum language): New definition.
14750 (collate_pending_symbols_by_language, mdict_create_hashed)
14751 (mdict_create_hashed_expandable, mdict_create_linear)
14752 (mdict_create_linear_expandable, mdict_free)
14753 (find_language_dictionary, create_new_language_dictionary)
14754 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14755 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14756 (mdict_size, mdict_empty): New functions.
14757 * dictionary.h (mdict_iterator): Define.
14758
14759 2019-01-10 Pedro Alves <palves@redhat.com>
14760
14761 * breakpoint.c (read_uploaded_action)
14762 (create_tracepoint_from_upload): Adjust to use
14763 gdb::unique_xmalloc_ptr.
14764 * ctf.c (ctf_write_uploaded_tp):
14765 (SET_ARRAY_FIELD): Use emplace_back.
14766 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14767 * tracefile-tfile.c (tfile_write_uploaded_tp):
14768 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14769 gdb::unique_xmalloc_ptr.
14770 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14771 at_string, cond_string, cmd_strings>: Replace char pointers
14772 with gdb::unique_xmalloc_ptr.
14773
14774 2019-01-10 Pedro Alves <palves@redhat.com>
14775
14776 * solib-target.c (library_list_start_library): Don't xstrdup name.
14777
14778 2019-01-10 Pedro Alves <palves@redhat.com>
14779
14780 * mdebugread.c (parse_partial_symbols): Use
14781 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14782
14783 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14784
14785 * linux-fork.c (scoped_switch_fork_info)
14786 <~scoped_switch_fork_info>: Fix incorrect variable name.
14787
14788 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14789
14790 * linux-fork.c (scoped_switch_fork_info)
14791 <scoped_switch_fork_info>: Make explicit.
14792 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14793
14794 2019-01-10 Tom Tromey <tom@tromey.com>
14795
14796 * objfiles.h (objfile::reset_psymtabs): Update.
14797 * objfiles.c (objfile::objfile): Update.
14798 * psymtab.h (psymtab_storage::obstack): Update.
14799 (psymtab_storage::m_obstack): Use gdb::optional.
14800 (class psymtab_storage): Update comment. Remove objfile
14801 parameter.
14802 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14803
14804 2019-01-10 Tom Tromey <tom@tromey.com>
14805
14806 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14807 <free_psymtabs>: Now private.
14808 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14809 (allocate_psymtab): Use new method.
14810
14811 2019-01-10 Tom Tromey <tom@tromey.com>
14812
14813 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14814 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14815 * mdebugread.c (parse_partial_symbols): Use
14816 allocate_dependencies.
14817 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14818 allocate_dependencies.
14819 (process_psymtab_comp_unit_reader)
14820 (build_type_psymtab_dependencies): Likewise.
14821 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14822
14823 2019-01-10 Tom Tromey <tom@tromey.com>
14824
14825 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14826 PSYMBOL_SET_LANGUAGE.
14827 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14828
14829 2019-01-10 Tom Tromey <tom@tromey.com>
14830
14831 * psymtab.h (psymtab_storage::obstack): New method.
14832 <m_obstack>: Rename from obstack; now private.
14833 * psymtab.c (psymtab_storage): Update.
14834 * dwarf2read.c (create_addrmap_from_index)
14835 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14836 Update.
14837
14838 2019-01-10 Tom Tromey <tom@tromey.com>
14839
14840 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14841 * objfiles.h (objfile::reset_psymtabs): New method.
14842
14843 2019-01-10 Tom Tromey <tom@tromey.com>
14844
14845 * symmisc.c (print_symbol_bcache_statistics): Update.
14846 (print_objfile_statistics): Update.
14847 * symfile.c (reread_symbols): Update.
14848 * psymtab.h (class psymtab_storage): New.
14849 * psymtab.c (psymtab_storage): New constructor.
14850 (~psymtab_storage): New destructor.
14851 (require_partial_symbols): Update.
14852 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14853 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14854 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14855 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14856 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14857 (start_psymtab_common, end_psymtab_common)
14858 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14859 (allocate_psymtab): Update.
14860 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14861 Update.
14862 (dump_psymtab_addrmap, maintenance_print_psymbols)
14863 (maintenance_check_psymtabs): Update.
14864 (class objfile_psymtabs): Move to objfiles.h.
14865 * psympriv.h (discard_psymtab): Now inline.
14866 (psymtab_discarder::psymtab_discarder): Update.
14867 (psymtab_discarder::~psymtab_discarder): Update.
14868 (ALL_OBJFILE_PSYMTABS): Rewrite.
14869 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14870 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14871 Remove fields.
14872 <partial_symtabs>: New field.
14873 (class objfile_psymtabs): Move from psymtab.h. Update.
14874 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14875 psymbol_cache.
14876 (objfile::~objfile): Don't destroy psymbol_cache.
14877 * mdebugread.c (parse_partial_symbols): Update.
14878 * dwarf2read.c (create_addrmap_from_index)
14879 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14880 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14881 (add_partial_subprogram, dwarf2_ranges_read): Update.
14882 * dwarf-index-write.c (write_address_map)
14883 (write_one_signatured_type, recursively_write_psymbols)
14884 (class debug_names, class debug_names, write_psymtabs_to_index):
14885 Update.
14886
14887 2019-01-10 Tom Tromey <tom@tromey.com>
14888
14889 * symtab.h (SYMBOL_SET_NAMES): Update.
14890 (symbol_set_names): Update.
14891 (MSYMBOL_SET_NAMES): Update.
14892 * symtab.c (symbol_set_names): Change argument to be an
14893 objfile_per_bfd_storage.
14894 * psymtab.c (add_psymbol_to_bcache): Update.
14895 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14896
14897 2019-01-10 Tom Tromey <tom@tromey.com>
14898
14899 * symtab.c (create_demangled_names_hash): Change argument to be an
14900 objfile_per_bfd_storage.
14901 (symbol_set_names): Update.
14902
14903 2019-01-10 Tom Tromey <tom@tromey.com>
14904
14905 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14906 init_psymbol_list.
14907 * psymtab.c (init_psymbol_list): Do nothing if already called.
14908 * psympriv.h (init_psymbol_list): Add comment.
14909 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14910 init_psymbol_list.
14911 * dbxread.c (dbx_symfile_read): Unconditionally call
14912 init_psymbol_list.
14913
14914 2019-01-10 Tom Tromey <tom@tromey.com>
14915
14916 * xcoffread.c (scan_xcoff_symtab): Update.
14917 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14918 "where".
14919 * mdebugread.c (parse_partial_symbols)
14920 (handle_psymbol_enumerators): Update.
14921 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14922 * dbxread.c (read_dbx_symtab): Update.
14923 * psympriv.h (psymbol_placement): New enum.
14924 (add_psymbol_to_list): Update.
14925
14926 2019-01-10 Tom Tromey <tom@tromey.com>
14927
14928 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14929 static_psymbols parameters.
14930 (scan_xcoff_symtab): Update.
14931 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14932 static_psymbols parameters.
14933 * psympriv.h (start_psymtab_common): Update.
14934 * mdebugread.c (parse_partial_symbols): Update.
14935 * dwarf2read.c (create_partial_symtab): Update.
14936 * dbxread.c (read_dbx_symtab): Update.
14937 (start_psymtab): Remove global_psymbols and static_psymbols
14938 parameters.
14939
14940 2019-01-10 Tom Tromey <tom@tromey.com>
14941
14942 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14943 * psymtab.c (allocate_psymtab): Add comment.
14944 * psympriv.h (allocate_psymtab): Add comment.
14945 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14946 initializations.
14947 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14948
14949 2019-01-10 Tom Tromey <tom@tromey.com>
14950
14951 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14952 Don't declare.
14953 * mipsread.c: Include mdebugread.h.
14954 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14955 Declare.
14956 * elfread.c: Include mdebugread.h.
14957
14958 2019-01-09 Tom Tromey <tom@tromey.com>
14959
14960 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14961 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14962 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14963 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14964 (psym_lookup_symbol, psym_find_last_source_symtab)
14965 (psym_forget_cached_source_info, psym_print_stats)
14966 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14967 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14968 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14969 (psym_find_compunit_symtab_by_address)
14970 (maintenance_print_psymbols, maintenance_info_psymtabs)
14971 (maintenance_check_psymtabs): Use ranged for.
14972 * psymtab.h (class objfile_psymtabs): New.
14973 (require_partial_symbols): Return objfile_psymtabs.
14974 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14975
14976 2019-01-09 Tom Tromey <tom@tromey.com>
14977
14978 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14979 (find_pc_mapped_section, list_overlays_command)
14980 (map_overlay_command, unmap_overlay_command)
14981 (simple_overlay_update): Use all_objfiles.
14982 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14983 * printcmd.c (info_symbol_command): Use all_objfiles.
14984 * objfiles.h (ALL_OBJSECTIONS): Remove.
14985 * maint.c (maintenance_translate_address): Use all_objfiles.
14986 * gcore.c (gcore_create_callback): Use all_objfiles.
14987 (objfile_find_memory_regions): Likewise.
14988
14989 2019-01-09 Tom Tromey <tom@tromey.com>
14990
14991 * symtab.c (find_line_symtab, info_sources_command)
14992 (make_source_files_completion_list): Use objfile_compunits.
14993 * source.c (select_source_symtab): Use objfile_compunits.
14994 * objfiles.h (struct objfile): Update comment.
14995 (ALL_OBJFILES): Remove.
14996 (ALL_FILETABS): Remove.
14997 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14998 objfile_compunits.
14999
15000 2019-01-09 Tom Tromey <tom@tromey.com>
15001
15002 * symmisc.c (print_objfile_statistics, dump_objfile)
15003 (maintenance_print_symbols): Use compunit_filetabs.
15004 * source.c (forget_cached_source_info_for_objfile): Use
15005 compunit_filetabs.
15006 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15007 (ALL_FILETABS): Use compunit_filetabs.
15008 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15009 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15010
15011 2019-01-09 Tom Tromey <tom@tromey.com>
15012
15013 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15014 (compunit_filetabs): New.
15015 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15016 compunit_filetabs.
15017 (info_sources_command, make_source_files_completion_list): Remove
15018 declaration.
15019 * symmisc.c (print_objfile_statistics, dump_objfile)
15020 (maintenance_print_symbols): Remove declaration.
15021 (maintenance_info_symtabs): Use compunit_filetabs.
15022 (maintenance_info_line_tables): Likewise.
15023 * source.c (select_source_symtab): Change local variable name.
15024 (forget_cached_source_info_for_objfile): Remove declaration.
15025 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15026 * objfiles.c (objfile_relocate1): Remove declaration.
15027 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15028 declaration.
15029 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15030 * coffread.c (coff_symtab_read): Remove declaration.
15031 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15032 compunit_filetabs.
15033
15034 2019-01-09 Tom Tromey <tom@tromey.com>
15035
15036 * symtab.c (lookup_objfile_from_block)
15037 (find_pc_sect_compunit_symtab, search_symbols)
15038 (default_collect_symbol_completion_matches_break_on): Use
15039 objfile_compunits.
15040 * objfiles.h (ALL_COMPUNITS): Remove.
15041 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15042 * cp-support.c (add_symbol_overload_list_qualified): Use
15043 objfile_compunits.
15044 * ada-lang.c (ada_collect_symbol_completion_matches)
15045 (ada_add_global_exceptions): Use objfile_compunits.
15046
15047 2019-01-09 Tom Tromey <tom@tromey.com>
15048
15049 * source.c (select_source_symtab)
15050 (forget_cached_source_info_for_objfile): Remove declaration.
15051 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15052 declaration.
15053 * maint.c (count_symtabs_and_blocks): Remove declaration.
15054 * cp-support.c (add_symbol_overload_list_qualified): Remove
15055 declaration.
15056 * coffread.c (coff_symtab_read): Remove declaration.
15057 * symtab.c (lookup_symbol_in_objfile_symtabs)
15058 (basic_lookup_transparent_type_1): Use objfile_compunits.
15059 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15060 (info_sources_command, search_symbols)
15061 (default_collect_symbol_completion_matches_break_on)
15062 (make_source_files_completion_list): Remove declaration.
15063 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15064 (ada_collect_symbol_completion_matches)
15065 (ada_add_global_exceptions): Remove declaration.
15066 * linespec.c (iterate_over_all_matching_symtabs): Use
15067 objfile_compunits.
15068 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15069 (class objfile_compunits): New.
15070 (ALL_COMPUNITS): Use objfile_compunits.
15071 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15072 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15073 objfile_compunits.
15074 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15075
15076 2019-01-09 Tom Tromey <tom@tromey.com>
15077
15078 * symtab.c (search_symbols)
15079 (default_collect_symbol_completion_matches_break_on): Use
15080 objfile_msymbols.
15081 * ada-lang.c (ada_lookup_simple_minsym)
15082 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15083 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15084 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15085 objfile_msymbols.
15086 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15087 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15088 * objc-lang.c (find_methods): Use objfile_msymbols.
15089 (info_selectors_command, info_classes_command): Likewise.
15090 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15091 * objfiles.h (class objfile_msymbols): New.
15092 (ALL_OBJFILE_MSYMBOLS): Remove.
15093 (ALL_MSYMBOLS): Remove.
15094
15095 2019-01-09 Tom Tromey <tom@tromey.com>
15096
15097 * common/next-iterator.h (next_adapter): Add Iterator template
15098 parameter.
15099 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15100 (class all_objfiles_safe): New.
15101 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15102 * objfiles.c (put_objfile_before): Update comment.
15103 (add_separate_debug_objfile): Likewise.
15104 (free_all_objfiles): Use all_objfiles_safe.
15105 (objfile_purge_solibs): Likewise.
15106
15107 2019-01-09 Tom Tromey <tom@tromey.com>
15108
15109 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15110 (expand_symtab_containing_pc, lookup_static_symbol)
15111 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15112 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15113 all_objfiles.
15114 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15115 * breakpoint.c (create_overlay_event_breakpoint)
15116 (create_longjmp_master_breakpoint)
15117 (create_std_terminate_master_breakpoint)
15118 (create_exception_master_breakpoint): Use all_objfiles.
15119 * linux-thread-db.c (try_thread_db_load_from_pdir)
15120 (has_libpthread): Use all_objfiles.
15121 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15122 * linespec.c (iterate_over_all_matching_symtabs)
15123 (search_minsyms_for_name): Use all_objfiles.
15124 * maint.c (maintenance_info_sections): Use all_objfiles.
15125 * main.c (captured_main_1): Use all_objfiles.
15126 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15127 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15128 * guile/scm-pretty-print.c
15129 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15130 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15131 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15132 (maintenance_print_msymbols): Use all_objfiles.
15133 * source.c (select_source_symtab): Use all_objfiles.
15134 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15135 * symfile.c (remove_symbol_file_command)
15136 (expand_symtabs_matching, map_symbol_filenames): Use
15137 all_objfiles.
15138 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15139 all_objfiles.
15140 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15141 * objc-lang.c (find_methods): Use all_objfiles.
15142 * objfiles.c (have_partial_symbols, have_full_symbols)
15143 (have_minimal_symbols, qsort_cmp)
15144 (default_iterate_over_objfiles_in_search_order): Use
15145 all_objfiles.
15146 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15147 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15148 (maintenance_check_psymtabs): Use all_objfiles.
15149 (ALL_PSYMTABS): Remove.
15150 * compile/compile-object-run.c (do_module_cleanup): Use
15151 all_objfiles.
15152 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15153 * cp-support.c (add_symbol_overload_list_qualified): Use
15154 all_objfiles.
15155 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15156 Use all_objfiles.
15157 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15158 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15159 all_objfiles.
15160 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15161 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15162 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15163 Uses all_objfiles.
15164 * solib.c (solib_read_symbols): Use all_objfiles
15165
15166 2019-01-09 Tom Tromey <tom@tromey.com>
15167
15168 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15169 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15170 all_objfiles.
15171 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15172 * symmisc.c (print_symbol_bcache_statistics)
15173 (print_objfile_statistics, maintenance_print_objfiles)
15174 (maintenance_info_symtabs, maintenance_check_symtabs)
15175 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15176 all_objfiles.
15177 * source.c (forget_cached_source_info): Use all_objfiles.
15178 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15179 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15180 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15181 * objfiles.c (update_section_map): Use all_objfiles.
15182 (shared_objfile_contains_address_p): Likewise.
15183 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15184 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15185
15186 2019-01-09 Tom Tromey <tom@tromey.com>
15187
15188 * common/next-iterator.h: New file.
15189 * objfiles.h (class all_objfiles): New.
15190 (struct objfile_iterator): New.
15191
15192 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15193
15194 * NEWS: Move the description of the changed "frame", "select-frame",
15195 and "info frame" commands to the Changed commands section.
15196
15197 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15198
15199 * gdbtypes.c (check_stub_method_group): Remove handling of old
15200 mangling schemes.
15201 * linespec.c (find_methods): Likewise.
15202 * stabsread.c (read_member_functions): Likewise.
15203 * valops.c (search_struct_method): Likewise.
15204 (value_struct_elt_for_reference): Likewise.
15205 * NEWS: Mention this change.
15206
15207 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15208
15209 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15210 print_source_lines.
15211 * source.c (print_source_lines_base): Update line number check.
15212 (print_source_lines): New function.
15213 (source_lines_range::source_lines_range): New function.
15214 * source.h (class source_lines_range): New class.
15215 (print_source_lines): New declaration.
15216
15217 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15218
15219 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15220
15221 2019-01-08 Tom Tromey <tom@tromey.com>
15222 Simon Marchi <simon.marchi@ericsson.com>
15223
15224 PR gdb/24060
15225 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15226 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15227 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15228 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15229 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15230 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15231
15232 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15233
15234 * source.c (select_source_symtab): Move header comment to
15235 declaration in source.h.
15236 (forget_cached_source_info_for_objfile): Likewise.
15237 (forget_cached_source_info): Likewise.
15238 (identify_source_line): Likewise.
15239 * source.h (identify_source_line): Move declaration from symtab.h
15240 and add comment from source.c
15241 (print_source_lines): Likewise.
15242 (forget_cached_source_info_for_objfile): Likewise.
15243 (forget_cached_source_info): Likewise.
15244 (select_source_symtab): Likewise.
15245 (enum print_source_lines_flag): Move definition from symtab.h.
15246 * symtab.h (identify_source_line): Move declaration to source.h.
15247 (print_source_lines): Likewise.
15248 (forget_cached_source_info_for_objfile): Likewise.
15249 (forget_cached_source_info): Likewise.
15250 (select_source_symtab): Likewise.
15251 (enum print_source_lines_flag): Move definition to source.h.
15252 * tui/tui-hooks.c: Add 'source.h' include.
15253
15254 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15255
15256 * source.c (print_source_lines_base): Handle requests to print
15257 reverse line number sequences, and guard against empty lines
15258 string.
15259
15260 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15261
15262 * source.c (print_source_lines_base): Fix skip of '\r' if next
15263 character is '\n'.
15264
15265 2019-01-06 Tom Tromey <tom@tromey.com>
15266
15267 * c-exp.y (struct c_parse_state) <macro_original_text,
15268 expansion_obstack>: New member.
15269 (macro_original_text, expansion_obstack): Remove globals.
15270 (scan_macro_expansion, scanning_macro_expansion)
15271 (finished_macro_expansion): Update.
15272 (scan_macro_cleanup): Remove.
15273 (yylex, c_parse): Update.
15274
15275 2019-01-06 Tom Tromey <tom@tromey.com>
15276
15277 * c-exp.y (struct c_parse_state) <strings>: New member.
15278 (operator_stoken): Update.
15279
15280 2019-01-06 Tom Tromey <tom@tromey.com>
15281
15282 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15283 (union type_stack_elt) <typelist_val>: Now a pointer to
15284 std::vector.
15285 (type_stack_cleanup): Don't declare.
15286 (push_typelist): Update.
15287 * parse.c (pop_typelist): Return a std::vector.
15288 (push_typelist): Take a std::vector.
15289 (follow_types): Update. Do not free args.
15290 (type_stack_cleanup): Remove.
15291 * c-exp.y (struct c_parse_state): New.
15292 (cpstate): New global.
15293 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15294 (nonempty_typelist): Update.
15295 (func_mod): Create a new vector.
15296 (c_parse): Create a c_parse_state.
15297 (check_parameter_typelist): Do not delete params.
15298 (function_method): Update. Do not delete type_list.
15299
15300 2019-01-06 Tom Tromey <tom@tromey.com>
15301
15302 PR gdb/28155:
15303 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15304 check_typedef.
15305 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15306 (print_return_value): Likewise.
15307
15308 2019-01-05 Tom Tromey <tom@tromey.com>
15309
15310 * contrib/cleanup_check.py: Remove.
15311 * contrib/gcc-with-excheck: Remove.
15312 * contrib/exsummary.py: Remove.
15313 * contrib/excheck.py: Remove.
15314
15315 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15316
15317 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15318 NULL. Initialize tpprev to NULL instead of assigning it
15319 to NULL on the next statement.
15320 * windows-nat.c (windows_delete_thread): Remove check for
15321 main_thread_id before printing thread exit notifications.
15322 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15323 Remove thread ID check against main_thread_id.
15324 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15325 windows_delete_thread.
15326 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15327
15328 2019-01-04 Tom Tromey <tom@tromey.com>
15329
15330 * compile/compile.c (_initialize_compile): Use upper case for
15331 metasyntactic variables.
15332 * symmisc.c (_initialize_symmisc): Use upper case for
15333 metasyntactic variables.
15334 * psymtab.c (_initialize_psymtab): Use upper case for
15335 metasyntactic variables.
15336 * demangle.c (demangle_command): Use upper case for metasyntactic
15337 variables.
15338 (_initialize_demangler): Likewise.
15339 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15340 variables.
15341
15342 2019-01-03 Tom Tromey <tom@tromey.com>
15343
15344 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15345
15346 2019-01-03 Tom Tromey <tom@tromey.com>
15347
15348 * python/py-symtab.c (salpy_str): Update.
15349 (struct salpy_sal_object) <symtab>: Now a PyObject.
15350 (salpy_dealloc): Update.
15351 (del_objfile_sal): Use gdbpy_ref.
15352
15353 2019-01-03 Tom Tromey <tom@tromey.com>
15354
15355 * python/py-type.c (convert_field): Use new_reference. Return
15356 gdbpy_ref.
15357 (make_fielditem): Return gdbpy_ref.
15358 (typy_fields): Update.
15359 (typy_getitem): Update.
15360 (field_name): Return gdbpy_ref. Use new_reference.
15361 (typy_iterator_iternext): Update.
15362
15363 2019-01-03 Tom Tromey <tom@tromey.com>
15364
15365 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15366
15367 2019-01-03 Tom Tromey <tom@tromey.com>
15368
15369 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15370 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15371 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15372 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15373 (pspy_set_type_printers): Likewise.
15374 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15375 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15376 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15377 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15378 (objfpy_set_type_printers): Likewise.
15379
15380 2019-01-03 Tom Tromey <tom@tromey.com>
15381
15382 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15383 (gdbpy_print_stack): Use gdbpy_err_fetch.
15384 * python/python-internal.h (class gdbpy_err_fetch): New class.
15385 (class gdbpy_enter) <m_error_type, m_error_value,
15386 m_error_traceback>: Remove.
15387 <m_error>: New member.
15388 (gdbpy_exception_to_string): Don't declare.
15389 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15390 * python/py-value.c (convert_value_from_python): Use
15391 gdbpy_err_fetch.
15392 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15393 gdbpy_exception_to_string.
15394 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15395 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15396 gdbpy_err_fetch.
15397
15398 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15399
15400 * linux-nat.c (delete_lwp_cleanup): Delete.
15401 (struct lwp_deleter): New struct.
15402 (lwp_info_up): New typedef.
15403 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15404 lwp_info_up.
15405
15406 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15407
15408 * linux-fork.c (class scoped_switch_fork_info): New class.
15409 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15410
15411 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15412
15413 * valops.c (find_overload_match): Remove use of null_cleanup, and
15414 calls to do_cleanups.
15415
15416 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15417
15418 * compile/compile-cplus-types.c
15419 (compile_cplus_instance::decl_name): Handle changes to
15420 cp_func_name.
15421 * cp-support.c (cp_func_name): Update header comment, update
15422 return type.
15423 * cp-support.h (cp_func_name): Update return type in declaration.
15424 * valops.c (find_overload_match): Move temp_func local to top
15425 level of function and change its type. Use temp_func to hold and
15426 delete temporary string obtained from cp_func_name.
15427
15428 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15429
15430 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15431 gdb::char_vector, remove cleanup, and update uses of `msg`.
15432
15433 2019-01-03 Jim Wilson <jimw@sifive.com>
15434
15435 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15436
15437 2019-01-02 Tom Tromey <tom@tromey.com>
15438
15439 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15440 (tdesc_parse_xml): Remove cleanups.
15441 * target-descriptions.h (make_cleanup_free_target_description):
15442 Don't declare.
15443 (target_desc_deleter): New struct.
15444 (target_desc_up): New typedef.
15445 * target-descriptions.c (target_desc_deleter::operator()): Rename
15446 from free_target_description.
15447 (make_cleanup_free_target_description): Remove.
15448
15449 2019-01-02 Tom Tromey <tom@tromey.com>
15450
15451 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15452 constructor, destructor.
15453 (linespec_parser): Remove typedef.
15454 (~linespec_parser): Rename from linespec_parser_delete.
15455 (linespec_lex_to_end, linespec_complete_label)
15456 (linespec_complete): Update.
15457 (decode_line_full): Remove cleanups.
15458 (decode_line_1): Update.
15459
15460 2019-01-02 Tom Tromey <tom@tromey.com>
15461
15462 * python/python-internal.h (inferior_to_inferior_object): Change
15463 return type.
15464 * python/py-exitedevent.c (create_exited_event_object): Update.
15465 * python/py-inferior.c (inferior_to_inferior_object): Return
15466 gdbpy_ref.
15467 (python_new_inferior, python_inferior_deleted)
15468 (thread_to_thread_object, delete_thread_object)
15469 (build_inferior_list, gdbpy_selected_inferior): Update.
15470 * python/py-infthread.c (create_thread_object): Update. Also fail
15471 if inferior_to_inferior_object fails.
15472
15473 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15474
15475 * inferior.h (class inferior) <displaced_step_state>: New field.
15476 * infrun.h (struct displaced_step_state): Move here from
15477 infrun.c. Initialize fields, add constructor.
15478 <inf>: Remove field.
15479 <reset>: New method.
15480 * infrun.c (struct displaced_step_inferior_state): Move to
15481 infrun.h.
15482 (displaced_step_inferior_states): Remove.
15483 (get_displaced_stepping_state): Adust.
15484 (displaced_step_in_progress_any_inferior): Adjust.
15485 (displaced_step_in_progress_thread): Adjust.
15486 (displaced_step_in_progress): Adjust.
15487 (add_displaced_stepping_state): Remove.
15488 (get_displaced_step_closure_by_addr): Adjust.
15489 (remove_displaced_stepping_state): Remove.
15490 (infrun_inferior_exit): Call displaced_step_state.reset.
15491 (use_displaced_stepping): Don't check for NULL.
15492 (displaced_step_prepare_throw): Call
15493 get_displaced_stepping_state.
15494 (displaced_step_fixup): Don't check for NULL.
15495 (prepare_for_detach): Don't check for NULL.
15496
15497 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15498
15499 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15500 in case of call that did not complete.
15501
15502 2019-01-02 Andrey Utkin <autkin@undo.io>
15503
15504 * symfile.c (find_separate_debug_file): Fix search of debug files for
15505 remote debuggee.
15506
15507 2019-01-02 Tom Tromey <tom@tromey.com>
15508
15509 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15510 indentation.
15511 * python/py-frame.c (frapy_older): Remove cast.
15512 (frapy_newer): Likewise.
15513 * python/py-breakpoint.c (local_setattro): Remove cast.
15514 * python/py-arch.c (archpy_name): Remove local variable.
15515 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15516
15517 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15518
15519 * unittests/basic_string_view/element_access/char/empty.cc:
15520 Fix year range in copyright header.
15521
15522 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15523
15524 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15525 Delete.
15526 <operator==>: Update with for removed field.
15527 <hash>: Likewise.
15528 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15529 <isa_features>: ...this.
15530 <abi_features>: New field.
15531 (riscv_isa_flen): Update comment.
15532 (riscv_abi_xlen): New declaration.
15533 (riscv_abi_flen): New declaration.
15534 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15535 isa_features.
15536 (riscv_abi_xlen): New function.
15537 (riscv_isa_flen): Update to get answer from isa_features.
15538 (riscv_abi_flen): New function.
15539 (riscv_has_fp_abi): Update to get answer from abi_features.
15540 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15541 xlen and flen.
15542 (riscv_call_info) <xlen, flen>: Update comment.
15543 (riscv_call_arg_struct): Remove invalid assertions
15544 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15545 is removed.
15546 (riscv_gdbarch_init): Gather isa features and abi features
15547 separately, ensure both match on the gdbarch when reusing an old
15548 gdbarch. Relax an error check to allow 32-bit abi float to run on
15549 a target with 64-bit float hardware.
15550
15551 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15552
15553 * source.c (search_command_helper): Stop reverse search
15554 when line 1 has been searched.
15555
15556 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15557
15558 * record-full.c (record_full_base_target::close): Rewrite
15559 record_full_core_buf_list free logic.
15560
15561 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15562
15563 * break-catch-syscall.c (print_one_catch_syscall): xfree
15564 the last text.
15565
15566 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15567
15568 * top.c (print_gdb_version): Update Copyright year in version
15569 message.
15570
15571 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15572
15573 Update copyright year range in all GDB files.
15574
15575 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15576
15577 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15578
15579 For older changes see ChangeLog-2018.
15580 \f
15581 Local Variables:
15582 mode: change-log
15583 left-margin: 8
15584 fill-column: 74
15585 version-control: never
15586 coding: utf-8
15587 End:
15588
This page took 0.369805 seconds and 4 git commands to generate.