Introduce thread-safe way to handle SIGSEGV
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3b3978bc
TT
12019-11-26 Tom Tromey <tom@tromey.com>
2
3 * event-top.h (thread_local_segv_handler): Declare.
4 * event-top.c (thread_local_segv_handler): New global.
5 (install_handle_sigsegv, handle_sigsegv): New functions.
6 (async_init_signals): Install SIGSEGV handler.
7 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
8 thread-local.
9 (report_failed_demangle): New function.
10 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
11 handler-setting code, instead use segv_handler. Run warning code
12 on main thread.
13
9411c49e
TT
142019-11-26 Tom Tromey <tom@tromey.com>
15
16 * run-on-main-thread.c: New file.
17 * run-on-main-thread.h: New file.
18 * unittests/main-thread-selftests.c: New file.
19 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
20 main-thread-selftests.c.
21 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
22 (COMMON_SFILES): Add run-on-main-thread.c.
23
c3efb965
TT
242019-11-26 Tom Tromey <tom@tromey.com>
25
26 * main.c (setup_alternate_signal_stack): Remove.
27 (captured_main_1): Use gdb::alternate_signal_stack.
28 * gdbsupport/alt-stack.h: New file.
29
21987b9c
TT
302019-11-26 Tom Tromey <tom@tromey.com>
31
32 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
33 Remove comment.
34 (save_original_signals_state, restore_original_signals_state): Use
35 gdb_sigmask.
36 * linux-nat.c (block_child_signals, restore_child_signals_mask)
37 (_initialize_linux_nat): Use gdb_sigmask.
38 * guile/guile.c (_initialize_guile): Use block_signals.
39 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
40 * gdbsupport/gdb-sigmask.h: New file.
41 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
42 * cp-support.c (gdb_demangle): Use gdb_sigmask.
43 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
44 pthread_sigmask.
45 * configure, config.in: Rebuild.
46 * gdbsupport/block-signals.h: New file.
47
5e030278
TT
482019-11-26 Tom Tromey <tom@tromey.com>
49
50 * acinclude.m4: Include ax_pthread.m4.
51 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
52 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
53 (CLIBS): Use PTHREAD_LIBS.
54 (aclocal_m4_deps): Add ax_pthread.m4.
55 * config.in, configure: Rebuild.
56 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
57
5a79c107
TT
582019-11-26 Tom Tromey <tom@tromey.com>
59
60 * symtab.h (struct minimal_symbol) <name_set>: New member.
61 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
62 Don't call symbol_set_names.
63 (minimal_symbol_reader::install): Call symbol_set_names.
64
aa369509
PW
652019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
66
67 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
68 restore_active_ext_lang, as GIL is needed for (indirectly)
69 called PyOS_InterruptOccurred.
70
cadc9cb8
SM
712019-11-26 Simon Marchi <simon.marchi@efficios.com>
72
73 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
74 definition.
75
d04afd58
SM
762019-11-26 Simon Marchi <simon.marchi@efficios.com>
77
78 * remote-sim.c (simulator_command): Make static, remove
79 declaration.
80
dd694d77
SM
812019-11-26 Simon Marchi <simon.marchi@efficios.com>
82
83 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
84 static.
85 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
86 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
87 (main): Likewise.
88 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
89 (main): Likewise.
90 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
91 (main): Likewise.
92 * unittests/basic_string_view/element_access/char/1.cc (test01):
93 Likewise.
94 (main): Likewise.
95 * unittests/basic_string_view/element_access/char/empty.cc (main):
96 Likewise.
97 * unittests/basic_string_view/element_access/char/front_back.cc
98 (test01): Likewise.
99 (main): Likewise.
100 * unittests/basic_string_view/inserters/char/2.cc (test05):
101 Likewise.
102 (main): Likewise.
103 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
104 (test01): Likewise.
105 (main): Likewise.
106 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
107 (test01): Likewise.
108 (main): Likewise.
109 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
110 Likewise.
111 * unittests/basic_string_view/operations/compare/char/1.cc
112 (test01): Likewise.
113 (main): Likewise.
114 * unittests/basic_string_view/operations/compare/char/13650.cc
115 (test01): Likewise.
116 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
117 Likewise.
118 (main): Likewise.
119 * unittests/basic_string_view/operations/data/char/1.cc (test01):
120 Likewise.
121 (main): Likewise.
122 * unittests/basic_string_view/operations/find/char/1.cc (test01):
123 Likewise.
124 (main): Likewise.
125 * unittests/basic_string_view/operations/find/char/2.cc (test02):
126 Likewise.
127 (main): Likewise.
128 * unittests/basic_string_view/operations/find/char/3.cc (test03):
129 Likewise.
130 (main): Likewise.
131 * unittests/basic_string_view/operations/find/char/4.cc (main):
132 Likewise.
133 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
134 Likewise.
135 (main): Likewise.
136 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
137 Likewise.
138 (main): Likewise.
139 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
140 Likewise.
141 (main): Likewise.
142 * unittests/basic_string_view/operations/substr/char/1.cc
143 (test01): Likewise.
144 (main): Likewise.
145 * unittests/basic_string_view/operators/char/2.cc (main):
146 Likewise.
147 * unittests/optional/assignment/1.cc (test): Likewise.
148 * unittests/optional/assignment/2.cc (test): Likewise.
149 * unittests/optional/assignment/3.cc (test): Likewise.
150 * unittests/optional/assignment/4.cc (test): Likewise.
151 * unittests/optional/assignment/5.cc (test): Likewise.
152 * unittests/optional/assignment/6.cc (test): Likewise.
153 * unittests/optional/assignment/7.cc (test): Likewise.
154 * unittests/optional/cons/copy.cc (test): Likewise.
155 * unittests/optional/cons/default.cc (test): Likewise.
156 * unittests/optional/cons/move.cc (test): Likewise.
157 * unittests/optional/cons/value.cc (test): Likewise.
158 * unittests/optional/in_place.cc (test): Likewise.
159 * unittests/optional/observers/1.cc (test): Likewise.
160 * unittests/optional/observers/2.cc (test): Likewise.
161
3b5c1d49
SM
1622019-11-26 Simon Marchi <simon.marchi@efficios.com>
163
164 * tui-win.h (tui_set_var_cmd): Remove.
165 * tui-win.c (tui_set_var_cmd): Make static.
166
adce99fe
SM
1672019-11-26 Simon Marchi <simon.marchi@efficios.com>
168
169 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
170 rbreak_command_wrapper): Remove.
171 * symtab.c (rbreak_command_wrapper): Remove.
172
fe3adccf
SM
1732019-11-26 Simon Marchi <simon.marchi@efficios.com>
174
175 * inferior.h (info_terminal_command): Remove declaration.
176 * inflow.c (info_terminal_command): Make static.
177
b926335f
SM
1782019-11-26 Simon Marchi <simon.marchi@efficios.com>
179
180 * inferior.c (exit_inferior_silent): Remove.
181
b62f6f54
SM
1822019-11-26 Simon Marchi <simon.marchi@efficios.com>
183
184 * dictionary.c (dict_empty, mdict_empty): Remove.
185 * dictionary.c (mdict_empty): Remove.
186
cb8c24b6
SM
1872019-11-26 Simon Marchi <simon.marchi@efficios.com>
188
189 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
190 (arc_insn_get_memory_offset): Likewise.
191 (arc_insn_dump): Likewise.
192 * cp-support.c (test_cp_symbol_name_matches): Likewise.
193 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
194 * dictionary.c (dict_iterator_next): Likewise.
195 (dict_iter_match_first): Likewise.
196 (dict_iter_match_next): Likewise.
197 * f-lang.c (evaluate_subexp_f): Likewise.
198 * hppa-tdep.c (hppa_read_pc): Likewise.
199 * i386-tdep.c (i386_floatformat_for_type): Likewise.
200 * parse.c (write_exp_elt_msym): Likewise.
201 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
202 * remote.c (remote_packet_size): Likewise.
203 (remote_notif_stop_parse): Likewise.
204 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
205 * s12z-tdep.c (s12z_disassemble_info): Likewise.
206 * source.c (prepare_path_for_appending): Likewise.
207 * sparc64-linux-tdep.c
208 (sparc64_linux_handle_segmentation_fault); Likewise.
209 * stack.c (frame_selection_by_function_completer): Likewise.
210
781597ff
SM
2112019-11-26 Simon Marchi <simon.marchi@efficios.com>
212
213 * completer.c (set_gdb_completion_word_break_characters):
214 Remove.
215
23baa4cc
SM
2162019-11-26 Simon Marchi <simon.marchi@efficios.com>
217
218 * dwarf-index-write.c: Include dwarf-index-write.h.
219 * mi/mi-interp.c: Include mi/mi-interp.h.
220
23767560
SM
2212019-11-26 Simon Marchi <simon.marchi@efficios.com>
222
223 * aarch32-tdep.c: Include aarch32-tdep.h.
224 * aarch32-tdep.h: Forward-declare struct target_desc.
225
6d91ce9a
CB
2262019-11-26 Christian Biesinger <cbiesinger@google.com>
227
228 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
229 strerror.
230 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
231 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
232
3cf2f237
TV
2332019-11-25 Tom de Vries <tdevries@suse.de>
234
235 * contrib/words.sh: Add -c option.
236
5b89c67a
CB
2372019-11-25 Christian Biesinger <cbiesinger@google.com>
238
239 * solib.c (solib_find_1): Change int to bool.
240 (exec_file_find): Change int to bool.
241 (solib_find): Change int to bool.
242 (solib_read_symbols): Change int to bool.
243 (solib_used): Change int to bool.
244 (solib_add): Change int to bool.
245 (info_sharedlibrary_command): Change int to bool.
246 (solib_contains_address_p): Change int to bool.
247 (solib_keep_data_in_core): Change int to bool.
248 (in_solib_dynsym_resolve_code): Change int to bool.
249 (reload_shared_libraries_1): Change int to bool.
250 (gdb_sysroot_changed): Change int to bool.
251 * solib.h (solib_read_symbols): Change int to bool.
252 (solib_contains_address_p): Change int to bool.
253 (solib_keep_data_in_core): Change int to bool.
254 (in_solib_dynsym_resolve_code): Change int to bool.
255 (libpthread_name_p): Change int to bool.
256
6cc8564b
LM
2572019-11-25 Luis Machado <luis.machado@linaro.org>
258
259 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
260 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
261 (remote_packet_max_chars): New static global.
262 (show_remote_packet_max_chars): New function.
263 (remote_target::putpkt_binary): Adjust to use new
264 remote_packet_max_chars option.
265 (remote_target::getpkt_or_notif_sane_1): Likewise.
266 (_initialize_remote): Register new remote-packet-max-chars option.
267
a7cdaa91
SM
2682019-11-24 Simon Marchi <simon.marchi@efficios.com>
269
270 * m68k-linux-nat.c: Include gdbarch.h.
271
26abc753
TT
2722019-11-24 Tom Tromey <tom@tromey.com>
273
274 * symfile.c (read_symbols): Update.
275 * psymtab.c (require_partial_symbols): Change type of "verbose" to
276 bool.
277 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
278 (psym_lookup_symbol, psym_find_last_source_symtab)
279 (psym_forget_cached_source_info, psym_print_stats)
280 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
281 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
282 (psym_map_matching_symbols, psym_expand_symtabs_matching)
283 (psym_find_compunit_symtab_by_address)
284 (maintenance_print_psymbols, maintenance_info_psymtabs)
285 (maintenance_check_psymtabs): Update.
286 * psymtab.h (require_partial_symbols): Change type of "verbose" to
287 bool.
288
012fc909
TT
2892019-11-22 Tom Tromey <tom@tromey.com>
290
291 * observable.h: Update comments.
292
c83d8d32
TT
2932019-11-22 Tom Tromey <tromey@adacore.com>
294
295 * ada-tasks.c (ada_task_is_alive): Make parameter const.
296 (print_ada_task_info): Don't try to fetch thread id if task is not
297 alive.
298
987012b8
CB
2992019-11-22 Christian Biesinger <cbiesinger@google.com>
300
301 * ada-exp.y: Update.
302 * ada-lang.c (sort_choices): Update.
303 (ada_print_symbol_signature): Update.
304 (resolve_subexp): Update.
305 (ada_parse_renaming): Update.
306 (ada_read_renaming_var_value): Update.
307 (lesseq_defined_than): Update.
308 (remove_extra_symbols): Update.
309 (remove_irrelevant_renamings): Update.
310 (ada_add_block_symbols): Update.
311 (ada_collect_symbol_completion_matches): Update.
312 (ada_is_renaming_symbol): Update.
313 (aggregate_assign_from_choices): Update.
314 (ada_evaluate_subexp): Update.
315 (ada_has_this_exception_support): Update.
316 (ada_is_non_standard_exception_sym): Update.
317 (ada_add_exceptions_from_frame): Update.
318 (ada_add_global_exceptions): Update.
319 (ada_print_subexp): Update.
320 * ax-gdb.c (gen_var_ref): Update.
321 (gen_maybe_namespace_elt): Update.
322 (gen_expr_for_cast): Update.
323 (gen_expr): Update.
324 * block.h: Update.
325 * blockframe.c (find_pc_partial_function): Update.
326 * breakpoint.c (print_breakpoint_location): Update.
327 (update_static_tracepoint): Update.
328 * btrace.c (ftrace_print_function_name): Update.
329 (ftrace_function_switched): Update.
330 * buildsym.c (find_symbol_in_list): Update.
331 * c-exp.y: Update.
332 * c-typeprint.c (c_print_typedef): Update.
333 (c_type_print_template_args): Update.
334 * cli/cli-cmds.c (edit_command): Update.
335 (list_command): Update.
336 (print_sal_location): Update.
337 * coffread.c (patch_opaque_types): Update.
338 (process_coff_symbol): Update.
339 (coff_read_enum_type): Update.
340 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
341 (convert_one_symbol): Update.
342 (hash_symname): Update.
343 (eq_symname): Update.
344 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
345 * compile/compile-cplus-types.c (debug_print_scope): Update.
346 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
347 * compile/compile-object-load.c (get_out_value_type): Update.
348 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
349 (search_symbol_list): Update.
350 (cp_lookup_symbol_imports_or_template): Update.
351 * cp-support.c (overload_list_add_symbol): Update.
352 * ctfread.c (psymtab_to_symtab): Update.
353 * dbxread.c (cp_set_block_scope): Update.
354 * dictionary.c (iter_match_first_hashed): Update.
355 (iter_match_next_hashed): Update.
356 (insert_symbol_hashed): Update.
357 (iter_match_next_linear): Update.
358 * dictionary.h: Update.
359 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
360 (locexpr_describe_location_piece): Update.
361 (locexpr_describe_location_1): Update.
362 (locexpr_generate_c_location): Update.
363 (loclist_describe_location): Update.
364 (loclist_generate_c_location): Update.
365 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
366 (read_func_scope): Update.
367 (process_enumeration_scope): Update.
368 (new_symbol): Update.
369 (dwarf2_const_value): Update.
370 (dwarf2_symbol_mark_computed): Update.
371 * eval.c (evaluate_funcall): Update.
372 (evaluate_subexp_standard): Update.
373 * expprint.c (print_subexp_standard): Update.
374 (dump_subexp_body_standard): Update.
375 * f-valprint.c (info_common_command_for_block): Update.
376 * findvar.c (get_hosting_frame): Update.
377 (default_read_var_value): Update.
378 * go-lang.c (go_symbol_package_name): Update.
379 * guile/scm-block.c (bkscm_print_block_smob): Update.
380 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
381 (gdbscm_symbol_name): Update.
382 (gdbscm_symbol_linkage_name): Update.
383 (gdbscm_symbol_print_name): Update.
384 * infcall.c (get_function_name): Update.
385 * infcmd.c (jump_command): Update.
386 (finish_command): Update.
387 * infrun.c (insert_exception_resume_breakpoint): Update.
388 * linespec.c (canonicalize_linespec): Update.
389 (create_sals_line_offset): Update.
390 (convert_linespec_to_sals): Update.
391 (complete_label): Update.
392 (find_label_symbols_in_block): Update.
393 * m2-typeprint.c (m2_print_typedef): Update.
394 * mdebugread.c (mdebug_reg_to_regnum): Update.
395 (parse_symbol): Update.
396 (mylookup_symbol): Update.
397 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
398 (list_args_or_locals): Update.
399 * objc-lang.c (compare_selectors): Update.
400 (info_selectors_command): Update.
401 (compare_classes): Update.
402 (info_classes_command): Update.
403 (find_imps): Update.
404 * p-typeprint.c (pascal_print_typedef): Update.
405 * printcmd.c (build_address_symbolic): Update.
406 (info_address_command): Update.
407 (print_variable_and_value): Update.
408 * python/py-framefilter.c (extract_sym): Update.
409 (py_print_single_arg): Update.
410 * python/py-symbol.c (sympy_str): Update.
411 (sympy_get_name): Update.
412 (sympy_get_linkage_name): Update.
413 * python/python.c (gdbpy_rbreak): Update.
414 * record-btrace.c (btrace_get_bfun_name): Update.
415 (btrace_call_history): Update.
416 * rust-lang.c (rust_print_typedef): Update.
417 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
418 * stabsread.c (stab_reg_to_regnum): Update.
419 (define_symbol): Update.
420 (read_enum_type): Update.
421 (common_block_end): Update.
422 (cleanup_undefined_types_1): Update.
423 (scan_file_globals): Update.
424 * stack.c (print_frame_arg): Update.
425 (print_frame_args): Update.
426 (find_frame_funname): Update.
427 (info_frame_command_core): Update.
428 (iterate_over_block_locals): Update.
429 (print_block_frame_labels): Update.
430 (do_print_variable_and_value): Update.
431 (iterate_over_block_arg_vars): Update.
432 (return_command): Update.
433 * symmisc.c (dump_symtab_1): Update.
434 (print_symbol): Update.
435 * symtab.c (eq_symbol_entry): Update.
436 (symbol_cache_dump): Update.
437 (lookup_language_this): Update.
438 (find_pc_sect_line): Update.
439 (skip_prologue_sal): Update.
440 (symbol_search::compare_search_syms): Update.
441 (treg_matches_sym_type_name): Update.
442 (search_symbols): Update.
443 (print_symbol_info): Update.
444 (rbreak_command): Update.
445 (completion_list_add_symbol): Update.
446 (find_gnu_ifunc): Update.
447 (get_symbol_address): Update.
448 (search_module_symbols): Update.
449 (info_module_subcommand): Update.
450 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
451 (SYMBOL_LINKAGE_NAME): Remove.
452 (SYMBOL_DEMANGLED_NAME): Remove.
453 (SYMBOL_PRINT_NAME): Remove.
454 (SYMBOL_SEARCH_NAME): Remove.
455 * tracepoint.c (set_traceframe_context): Update.
456 (validate_actionline): Update.
457 (collection_list::collect_symbol): Update.
458 (encode_actions_1): Update.
459 (info_scope_command): Update.
460 (print_one_static_tracepoint_marker): Update.
461 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
462 * valops.c (address_of_variable): Update.
463 (find_overload_match): Update.
464 (find_oload_champ): Update.
465
c9d95fa3
CB
4662019-11-22 Christian Biesinger <cbiesinger@google.com>
467
468 * ada-lang.c (ada_lookup_simple_minsym): Update.
469 (ada_collect_symbol_completion_matches): Update.
470 * ada-tasks.c (read_atcb): Update.
471 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
472 (amd64_windows_skip_trampoline_code): Update.
473 * arm-tdep.c (skip_prologue_function): Update.
474 (arm_skip_stack_protector): Update.
475 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
476 (arm_wince_skip_main_prologue): Update.
477 * ax-gdb.c (gen_expr): Update.
478 * block.c (call_site_for_pc): Update.
479 * blockframe.c (find_pc_partial_function): Update.
480 * breakpoint.c (set_breakpoint_location_function): Update.
481 * btrace.c (ftrace_print_function_name): Update.
482 (ftrace_function_switched): Update.
483 * c-valprint.c (print_unpacked_pointer): Update.
484 * coffread.c (coff_symfile_read): Update.
485 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
486 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
487 * dwarf-index-write.c (write_psymbols): Update.
488 * dwarf2loc.c (call_site_to_target_addr): Update.
489 (func_verify_no_selftailcall): Update.
490 (tailcall_dump): Update.
491 (call_site_find_chain_1): Update.
492 (dwarf_expr_reg_to_entry_parameter): Update.
493 * elfread.c (elf_gnu_ifunc_record_cache): Update.
494 * eval.c (evaluate_funcall): Update.
495 (evaluate_subexp_standard): Update.
496 (evaluate_subexp_for_sizeof): Update.
497 * expprint.c (print_subexp_standard): Update.
498 (dump_subexp_body_standard): Update.
499 * frame.c (get_prev_frame_always_1): Update.
500 * frv-tdep.c (frv_skip_main_prologue): Update.
501 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
502 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
503 (gnuv3_get_typename_from_type_info): Update.
504 (gnuv3_skip_trampoline): Update.
505 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
506 * i386-tdep.c (i386_skip_main_prologue): Update.
507 (i386_pe_skip_trampoline_code): Update.
508 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
509 * infcall.c (get_function_name): Update.
510 * linespec.c (minsym_found): Update.
511 * linux-fork.c (info_checkpoints_command): Update.
512 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
513 (m32c_m16c_pointer_to_address): Update.
514 * maint.c (maintenance_translate_address): Update.
515 * minsyms.c (add_minsym_to_hash_table): Update.
516 (add_minsym_to_demangled_hash_table): Update.
517 (lookup_minimal_symbol_mangled): Update.
518 (lookup_minimal_symbol_demangled): Update.
519 (lookup_minimal_symbol_linkage): Update.
520 (lookup_minimal_symbol_text): Update.
521 (lookup_minimal_symbol_by_pc_name): Update.
522 (minimal_symbol_is_less_than): Update.
523 (compact_minimal_symbols): Update.
524 (build_minimal_symbol_hash_tables): Update.
525 (find_solib_trampoline_target): Update.
526 * mips-tdep.c (mips_stub_frame_sniffer): Update.
527 (mips_skip_pic_trampoline_code): Update.
528 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
529 * objc-lang.c (info_selectors_command): Update.
530 (info_classes_command): Update.
531 (find_methods): Update.
532 (find_imps): Update.
533 * p-valprint.c (pascal_val_print): Update.
534 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
535 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
536 * printcmd.c (build_address_symbolic): Update.
537 (info_symbol_command): Update.
538 * psymtab.c (psymbol_name_matches): Update.
539 (match_partial_symbol): Update.
540 (lookup_partial_symbol): Update.
541 (print_partial_symbols): Update.
542 (sort_pst_symbols): Update.
543 (maintenance_check_psymtabs): Update.
544 * python/py-framefilter.c (py_print_frame): Update.
545 * python/python.c (gdbpy_rbreak): Update.
546 * record-btrace.c (btrace_get_bfun_name): Update.
547 (btrace_call_history): Update.
548 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
549 (rs6000_skip_trampoline_code): Update.
550 * sol-thread.c (info_cb): Update.
551 * stabsread.c (scan_file_globals): Update.
552 * stack.c (find_frame_funname): Update.
553 (info_frame_command_core): Update.
554 * symmisc.c (dump_msymbols): Update.
555 * symtab.c (symbol_natural_name): Rename to..,
556 (general_symbol_info::natural_name): ...this.
557 (symbol_demangled_name): Rename to...
558 (general_symbol_info::demangled_name): ...this.
559 (symbol_search_name): Rename to...
560 (general_symbol_info::search_name): ...this.
561 (symbol_matches_search_name): Update.
562 (find_pc_sect_line): Update.
563 (skip_prologue_sal): Update.
564 (search_symbols): Update.
565 (print_msymbol_info): Update.
566 (rbreak_command): Update.
567 (completion_list_add_msymbol): Update.
568 (completion_list_objc_symbol): Update.
569 (get_msymbol_address): Update.
570 * symtab.h (struct general_symbol_info): Add member functions
571 natural_name (), linkage_name (), print_name (), demangled_name (),
572 and search_name ().
573 (SYMBOL_NATURAL_NAME): Update.
574 (symbol_natural_name): Move to a member function on general_symbol_info.
575 (SYMBOL_DEMANGLED_NAME): Update.
576 (symbol_demangled_name): Move to a member function on
577 general_symbol_info.
578 (SYMBOL_SEARCH_NAME): Update.
579 (symbol_search_name): Move to a member function on general_symbol_info.
580 (MSYMBOL_NATURAL_NAME): Remove.
581 (MSYMBOL_LINKAGE_NAME): Remove.
582 (MSYMBOL_PRINT_NAME): Remove.
583 (MSYMBOL_DEMANGLED_NAME): Remove.
584 (MSYMBOL_SEARCH_NAME): Remove.
585 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
586
f8bab2d6
CB
5872019-11-22 Christian Biesinger <cbiesinger@google.com>
588
589 * symtab.c (create_demangled_names_hash): Use per_bfd->
590 minimal_symbol_count for computing the initial size, if greater
591 than our default size.
592
85e7588d
TV
5932019-11-22 Tom de Vries <tdevries@suse.de>
594
595 * contrib/words.sh: Improve words extraction.
596
f6180073
TV
5972019-11-22 Tom de Vries <tdevries@suse.de>
598
599 * contrib/words.sh: Combine sed invocations.
600
f10ffa41
CB
6012019-11-21 Christian Biesinger <cbiesinger@google.com>
602
603 * Makefile.in: Update.
604 * demangle.c: Rename to...
605 * gdb-demangle.c: ..this.
606 (is_cplus_marker): Change return type to bool.
607 (_initialize_demangler): Rename to...
608 (_initialize_gdb_demangle): ...this.
609 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
610 * symtab.h (demangle): Remove declaration; instead include
611 gdb-demangle.h.
612
6ba18521
TT
6132019-11-21 Tom Tromey <tromey@adacore.com>
614
615 * gdbsupport/format.c (format_pieces): Parse %I64d.
616 * unittests/format_pieces-selftests.c (test_windows_formats): New
617 function.
618 (run_tests): Call it.
619
34877895
PJ
6202019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
621
622 Byte reverse display of variables with DW_END_big, DW_END_little
623 (DW_AT_endianity) dwarf attributes if different than the native
624 byte order.
625 * ada-lang.c (ada_value_binop):
626 Use type_byte_order instead of gdbarch_byte_order.
627 * ada-valprint.c (printstr):
628 (ada_val_print_string):
629 * ada-lang.c (value_pointer):
630 (ada_value_binop):
631 Use type_byte_order instead of gdbarch_byte_order.
632 * c-lang.c (c_get_string):
633 Use type_byte_order instead of gdbarch_byte_order.
634 * c-valprint.c (c_val_print_array):
635 Use type_byte_order instead of gdbarch_byte_order.
636 * cp-valprint.c (cp_print_class_member):
637 Use type_byte_order instead of gdbarch_byte_order.
638 * dwarf2loc.c (rw_pieced_value):
639 Use type_byte_order instead of gdbarch_byte_order.
640 * dwarf2read.c (read_base_type): Handle DW_END_big,
641 DW_END_little
642 * f-lang.c (f_get_encoding):
643 Use type_byte_order instead of gdbarch_byte_order.
644 * findvar.c (default_read_var_value):
645 Use type_byte_order instead of gdbarch_byte_order.
646 * gdbtypes.c (check_types_equal):
647 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
648 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
649 and TYPE_ENDIANITY_LITTLE if set.
650 (type_byte_order): new function.
651 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
652 (struct main_type) <flag_endianity_not_default>:
653 New field.
654 (type_byte_order): New function.
655 * infcmd.c (default_print_one_register_info):
656 Use type_byte_order instead of gdbarch_byte_order.
657 * p-lang.c (pascal_printstr):
658 Use type_byte_order instead of gdbarch_byte_order.
659 * p-valprint.c (pascal_val_print):
660 Use type_byte_order instead of gdbarch_byte_order.
661 * printcmd.c (print_scalar_formatted):
662 Use type_byte_order instead of gdbarch_byte_order.
663 * solib-darwin.c (darwin_current_sos):
664 Use type_byte_order instead of gdbarch_byte_order.
665 * solib-svr4.c (solib_svr4_r_ldsomap):
666 Use type_byte_order instead of gdbarch_byte_order.
667 * stap-probe.c (stap_modify_semaphore):
668 Use type_byte_order instead of gdbarch_byte_order.
669 * target-float.c (target_float_same_format_p):
670 Use type_byte_order instead of gdbarch_byte_order.
671 * valarith.c (scalar_binop):
672 (value_bit_index):
673 Use type_byte_order instead of gdbarch_byte_order.
674 * valops.c (value_cast):
675 Use type_byte_order instead of gdbarch_byte_order.
676 * valprint.c (generic_emit_char):
677 (generic_printstr):
678 (val_print_string):
679 Use type_byte_order instead of gdbarch_byte_order.
680 * value.c (unpack_long):
681 (unpack_bits_as_long):
682 (unpack_value_bitfield):
683 (modify_field):
684 (pack_long):
685 (pack_unsigned_long):
686 Use type_byte_order instead of gdbarch_byte_order.
687 * findvar.c (unsigned_pointer_to_address):
688 (signed_pointer_to_address):
689 (unsigned_address_to_pointer):
690 (address_to_signed_pointer):
691 (default_read_var_value):
692 (default_value_from_register):
693 Use type_byte_order instead of gdbarch_byte_order.
694 * gnu-v3-abi.c (gnuv3_make_method_ptr):
695 Use type_byte_order instead of gdbarch_byte_order.
696 * riscv-tdep.c (riscv_print_one_register_info):
697 Use type_byte_order instead of gdbarch_byte_order.
698
87fb00ea
SM
6992019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
702 (current_ui_gdb_stdin_ptr): Likewise.
703 (current_ui_gdb_stderr_ptr): Likewise.
704 (current_ui_gdb_stdlog_ptr): Likewise.
705 (current_ui_current_uiout_ptr): Likewise.
706 (gen_ret_current_ui_field_ptr): Remove.
707
65d1cd5f
TV
7082019-11-21 Tom de Vries <tdevries@suse.de>
709
710 PR gdb/24956
711 * cli/cli-script.c (execute_control_command): Only switch to
712 INTERP_CONSOLE's ui_out when INTERP_MI is active.
713
9f6ad286
TT
7142019-11-19 Tom Tromey <tom@tromey.com>
715
716 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
717 Now static. Change type of "name".
718 (tui_set_win_height_command): Don't copy "arg".
719 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
720 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
721
435d3d88
AT
7222019-11-19 Ali Tamur <tamur@google.com>
723
724 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
725 "if (attr != nullptr)".
726 (dwarf2_find_base_address): Likewise.
727 (dwarf2_build_include_psymtabs): Likewise.
728 (read_cutu_die_from_dwo): Likewise.
729 (read_func_scope): Likewise.
730 (read_call_site_scope): Likewise.
731 (dwarf2_get_pc_bounds): Likewise.
732 (dwarf2_record_block_ranges): Likewise.
733 (dwarf2_add_field): Likewise.
734 (dwarf2_add_member_fn): Likewise.
735 (read_structure_type): Likewise.
736 (read_enumeration_type): Likewise.
737 (read_array_type): Likewise.
738 (read_array_order): Likewise.
739 (read_set_type): Likewise.
740 (read_common_block): Likewise.
741 (read_tag_reference_type): Likewise.
742 (read_tag_string_type): Likewise.
743 (read_subroutine_type): Likewise.
744 (read_base_type): Likewise.
745 (read_subrange_type): Likewise.
746 (new_symbol): Likewise.
747 (prepare_one_comp_unit): Likewise.
748
c9739b6a
TT
7492019-11-19 Tom Tromey <tromey@adacore.com>
750
751 * windows-nat.c (windows_nat_target::attach): Include GetLastError
752 result in error when DebugActiveProcess fails.
753
494409bb
SDJ
7542019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
755 Pedro Alves <palves@redhat.com>
756
757 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
758 * target.c (target_stack::push): Call 'unpush' if there's a
759 target on top of the stack.
760
2e953aca
PW
7612019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
762
763 * python/py-block.c (blpy_dealloc): Call tp_free.
764 (blpy_block_syms_dealloc): Likewise.
765 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
766 * python/py-inferior.c (infpy_dealloc): Likewise.
767 * python/py-lazy-string.c (stpy_dealloc): Likewise.
768 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
769 * python/py-symbol.c (sympy_dealloc): Likewise.
770 * python/py-symtab.c (stpy_dealloc): Likewise.
771 * python/py-type.c (typy_iterator_dealloc): Likewise.
772
6edc43ec
CB
7732019-11-18 Christian Biesinger <cbiesinger@google.com>
774
775 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
776 constructor instead of using a class initializer.
777
cd850b40
CB
7782019-11-15 Christian Biesinger <cbiesinger@google.com>
779
780 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
781 * configure: Regenerate.
782 * configure.ac: Don't source common.host.
783 * gdbsupport/common.host: Remove.
784 * gdbsupport/mingw-strerror.c: Remove.
785 * gdbsupport/posix-strerror.c: Rename to...
786 * gdbsupport/safe-strerror.c: ...this.
787
53fea9c7
CB
7882019-11-15 Christian Biesinger <cbiesinger@google.com>
789
790 * maint.c (scoped_command_stats::print_time): Use localtime_r
791 instead of localtime (provided through gnulib if necessary).
792 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
793 of ctime.
794
f8e27d88
CB
7952019-11-15 Christian Biesinger <cbiesinger@google.com>
796
797 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
798 avoid compile errors.
799
5abebf3c
CB
8002019-11-15 Christian Biesinger <cbiesinger@google.com>
801
802 * config.in: Regenerate.
803 * configure: Regenerate.
804 * gdbsupport/common.m4: No longer check for strerror_r.
805 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
806 POSIX version of strerror_r, now that gnulib provides it if
807 necessary.
808
9a351667
CB
8092019-11-14 Christian Biesinger <cbiesinger@google.com>
810
811 * README (`configure' options): Update.
812
55708e99
TT
8132019-11-14 Tom Tromey <tromey@adacore.com>
814
815 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
816 expected type for the RHS if the LHS is a convenience variable.
817
4b09bb2e
SM
8182019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
821 Provide explicit default and copy constructor.
822
bd454f8b
PW
8232019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
824
825 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
826 only call Py_INCREF (newbp) in the bppy_pending_object case.
827
d1aa3cf0
TT
8282019-11-13 Tom Tromey <tromey@adacore.com>
829
830 PR build/25182:
831 * psympriv.h (partial_symbol): Remove static assert.
832 * symtab.h (general_symbol_info, symbol): Remove static assert.
833
e06f3d6e
AB
8342019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
835
836 * gdbsupport/format.c (format_pieces::format_pieces): Support
837 printf 'z' size modifier.
838 * gdbsupport/format.h (enum argclass): Add size_t_arg.
839 * printcmd.c (ui_printf): Handle size_t_arg.
840 * ui-out.c (ui_out::vmessage): Likewise.
841 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
842 function.
843 (run_tests): Call test_format_int_sizes.
844
468c0cbb
CB
8452019-11-12 Christian Biesinger <cbiesinger@google.com>
846
847 * ada-exp.y (write_ambiguous_var): Update.
848 * buildsym.c (add_symbol_to_list): Update.
849 * dwarf2read.c (read_variable): Update.
850 (new_symbol): Update.
851 * jit.c (finalize_symtab): Update.
852 * language.c (language_alloc_type_symbol): Update.
853 * symtab.c (fixup_symbol_section): Update.
854 (initialize_objfile_symbol_1): Move code to...
855 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
856 (allocate_symbol): Update.
857 (allocate_template_symbol): Update.
858 (get_symbol_address): Update.
859 * symtab.h (struct symbol): Inherit from general_symbol_info instead
860 of having as a field, and add a constructor.
861 (SYMBOL_VALUE): Update.
862 (SYMBOL_VALUE_ADDRESS): Update.
863 (SET_SYMBOL_VALUE_ADDRESS): Update.
864 (SYMBOL_VALUE_BYTES): Update.
865 (SYMBOL_VALUE_COMMON_BLOCK): Update.
866 (SYMBOL_BLOCK_VALUE): Update.
867 (SYMBOL_VALUE_CHAIN): Update.
868 (SYMBOL_LANGUAGE): Update.
869 (SYMBOL_SECTION): Update.
870 (SYMBOL_OBJ_SECTION): Update.
871 (SYMBOL_SET_LANGUAGE): Update.
872 (SYMBOL_SET_LINKAGE_NAME): Update.
873 (SYMBOL_SET_NAMES): Update.
874 (SYMBOL_NATURAL_NAME): Update.
875 (SYMBOL_LINKAGE_NAME): Update.
876 (SYMBOL_DEMANGLED_NAME): Update.
877 (SYMBOL_SEARCH_NAME): Update.
878 (SYMBOL_MATCHES_SEARCH_NAME): Update.
879 (struct symbol): Update.
880 (struct template_symbol): Update.
881 (struct rust_vtable_symbol): Update.
882 * xcoffread.c (SYMBOL_DUP): Update.
883
ed2c82c3
TT
8842019-11-12 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-layout.c (show_layout): Set current_layout.
887 (show_source_disasm_command, show_data)
888 (show_source_or_disasm_and_command): Don't set current_layout.
889
d9fcefd5
TT
8902019-11-12 Tom Tromey <tom@tromey.com>
891
892 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
893
45e42163
TT
8942019-11-12 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-win.c (resize_message): New global.
897 (show_tui_resize_message): New function.
898 (tui_async_resize_screen): Print message if requested.
899 (_initialize_tui_win): Add tui-resize-message setting.
900 * NEWS: Add entry for new commands.
901
c86d74cc
TT
9022019-11-11 Tom Tromey <tom@tromey.com>
903
904 * tui/tui.c (tui_initialize_readline): Add new bindable readline
905 functions.
906
7b7b9424
CB
9072019-11-11 Christian Biesinger <cbiesinger@google.com>
908
909 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
910
086baaf1
AB
9112019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
914 function.
915 * python/python-internal.h (gdbpy_lookup_static_symbols):
916 Declare new function.
917 * python/python.c (python_GdbMethods): Add
918 gdb.lookup_static_symbols method.
919 * NEWS: Mention gdb.lookup_static_symbols.
920
09ff83af
AB
9212019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
922
923 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
924 static block of current object file first. Also fix typo in
925 header comment.
926
eb2dd8df
AB
9272019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
928
929 * stack.c (set_last_displayed_sal): Delete.
930 (last_displayed_sal_valid): Delete.
931 (last_displayed_pspace): Delete.
932 (last_displayed_addr): Delete.
933 (last_displayed_symtab): Delete.
934 (last_displayed_line): Delete.
935 (class last_displayed_symtab_info_type): New.
936 (last_displayed_symtab_info): New static global variable.
937 (print_frame_info): Call methods on last_displayed_symtab_info.
938 (clear_last_displayed_sal): Update header comment, and make use of
939 last_displayed_symtab_info.
940 (last_displayed_sal_is_valid): Likewise.
941 (get_last_displayed_pspace): Likewise.
942 (get_last_displayed_addr): Likewise.
943 (get_last_displayed_symtab): Likewise.
944 (get_last_displayed_line): Likewise.
945 (get_last_displayed_sal): Likewise.
946 * stack.h (clear_last_displayed_sal): Update header comment.
947 (last_displayed_sal_is_valid): Likewise.
948 (get_last_displayed_pspace): Likewise.
949 (get_last_displayed_addr): Likewise.
950 (get_last_displayed_symtab): Likewise.
951 (get_last_displayed_line): Likewise.
952 (get_last_displayed_sal): Likewise.
953
62137775
AB
9542019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
955
956 * stack.c (frame_show_address): Convert return type to bool.
957 * stack.h (frame_show_address): Likewise, and update header
958 comment.
959
cf57ad6d
AB
9602019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
963 * unittests/vec-utils-selftests.c: New file.
964 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
965
0b026263
TT
9662019-11-10 Tom Tromey <tom@tromey.com>
967
968 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
969 (tui_highlight_win): Likewise.
970 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
971 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
972 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
973 Don't set can_highlight.
974
b049ce2d
TT
9752019-11-10 Tom Tromey <tom@tromey.com>
976
977 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
978 Remove unused declaration.
979
992a7040
TT
9802019-11-08 Tom Tromey <tromey@adacore.com>
981
982 * top.c (read_command_file): Update.
983 (command_line_input): Make return type const.
984 * python/py-gdb-readline.c: Update.
985 * linespec.c (decode_line_2): Update.
986 * defs.h (command_line_input): Make return type const.
987 * cli/cli-script.c (read_next_line): Make return type const.
988 * ada-lang.c (get_selections): Update.
989
ca3a04f6
CB
9902019-11-06 Christian Biesinger <cbiesinger@google.com>
991
992 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
993 * mi/mi-main.c (output_cores): Likewise.
994 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
995 (linux_xfer_osdata_modules): Likewise.
996 * remote.c (register_remote_support_xml): Likewise.
997 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
998 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
999
e0eac551
TT
10002019-11-06 Tom Tromey <tom@tromey.com>
1001
1002 * tui/tui-interp.c: Don't include readline.h.
1003 * tui/tui-hooks.c: Don't include readline.h.
1004 * symmisc.c: Include tilde.h, not readline.h.
1005 * symfile.c: Include tilde.h, not readline.h.
1006 * source.c: Include tilde.h, not readline.h.
1007 * solib.c: Include tilde.h, not readline.h.
1008 * psymtab.c: Include tilde.h, not readline.h.
1009 * exec.c: Include tilde.h, not readline.h.
1010 * corelow.c: Include tilde.h, not readline.h.
1011 * cli/cli-dump.c: Include tilde.h, not readline.h.
1012 * cli/cli-cmds.c: Don't include readline.h.
1013
825165c5
TT
10142019-11-05 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1017 (tui_disassemble): Set addr_size.
1018 (tui_disasm_window::set_contents): Use addr_size.
1019
91ae903f
TT
10202019-11-05 Tom Tromey <tom@tromey.com>
1021
1022 * rust-lang.c (rust_language_defn): Update.
1023 * python/py-value.c (valpy_string): Call c_get_string.
1024 * p-lang.c (pascal_language_defn): Update.
1025 * opencl-lang.c (opencl_language_defn): Update.
1026 * objc-lang.c (objc_language_defn): Update.
1027 * m2-lang.c (m2_language_defn): Update.
1028 * language.c (unknown_language_defn, auto_language_defn): Update.
1029 (default_get_string): Remove.
1030 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1031 * go-lang.c (go_language_defn): Update.
1032 * f-lang.c (f_language_defn): Update.
1033 * d-lang.c (d_language_defn): Update.
1034 * c-lang.c (c_language_defn, cplus_language_defn)
1035 (asm_language_defn, minimal_language_defn): Update.
1036 * ada-lang.c (ada_language_defn): Update.
1037 * language.h (struct language_defn) <la_get_string>: Remove.
1038 (LA_GET_STRING): Remove.
1039 (default_get_string): Don't declare.
1040
1df2f9ef
TT
10412019-11-05 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-source.h (struct tui_source_window): Inline
1044 constructor. Remove destructor.
1045 <style_changed, m_observable>: Move to superclass.
1046 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1047 (struct tui_source_window_base): Move private members to end.
1048 <style_changed, m_observable>: Move from tui_source_window.
1049 * tui/tui-winsource.c (tui_copy_source_line): Move from
1050 tui-source.c. Rename from copy_source_line. Add special handling
1051 for negative line number.
1052 (tui_source_window_base::style_changed): Move from
1053 tui_source_window.
1054 (tui_source_window_base): Register observer.
1055 (~tui_source_window_base): New.
1056 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1057 rename.
1058 (tui_source_window::set_contents): Use tui_copy_source_line.
1059 (tui_source_window::tui_source_window): Move to tui-source.h.
1060 (tui_source_window::~tui_source_window): Remove.
1061 (tui_source_window::style_changed): Move to superclass.
1062 * tui/tui-disasm.c (tui_disassemble): Create string file with
1063 styling, when possible. Add "addr_size" parameter.
1064 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1065 Don't compute maximum size.
1066 (len_without_escapes): New function
1067
5d051055
TT
10682019-11-05 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1071 std::string.
1072 * tui/tui-winsource.c (tui_show_source_line): Update.
1073 * tui/tui-source.c (tui_source_window::set_contents): Update.
1074 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1075
ade7beea
CB
10762019-11-05 Christian Biesinger <cbiesinger@google.com>
1077
1078 * symtab.h (gdb_static_assert): Put && operator at the beginning
1079 of the line instead of the end.
1080
3573abe1
CB
10812019-11-04 Christian Biesinger <cbiesinger@google.com>
1082
1083 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1084 and sizeof (symbol).
1085 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1086
dae8b3eb
RO
10872019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1088
1089 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1090 * configure.host: Mark *-*-solaris2.10* obsolete.
1091 * configure.tgt: Mark Solaris < 11 obsolete.
1092 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1093 Update target triplet.
1094
5df96a4e
TT
10952019-11-01 Tom Tromey <tromey@adacore.com>
1096
1097 * utils.c (print_sys_errmsg): Simplify.
1098
b7481649
TT
10992019-11-01 Tom Tromey <tromey@adacore.com>
1100
1101 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1102
e48f6033
CB
11032019-11-01 Christian Biesinger <cbiesinger@google.com>
1104
1105 * configure: Regenerate.
1106 * configure.ac: Remove check for strerror_r.
1107 * gdbsupport/common.m4: Check for strerror_r.
1108
bd5766ec
LM
11092019-11-01 Luis Machado <luis.machado@linaro.org>
1110
1111 PR gdb/25124
1112
1113 * arm-tdep.c (arm_per_objfile): Rename to ...
1114 (arm_per_bfd): ... this.
1115 (arm_objfile_data_key): Rename to ...
1116 (arm_bfd_data_key): ... this.
1117 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1118 data.
1119 (arm_record_special_symbol): Likewise.
1120
e1709896
AB
11212019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1124 end.
1125 * c-typeprint.c (c_print_typedef): Likewise.
1126 * f-typeprint.c (f_print_typedef): Likewise.
1127 * m2-typeprint.c (m2_print_typedef): Likewise.
1128 * p-typeprint.c (pascal_print_typedef): Likewise.
1129 * rust-lang.c (rust_print_typedef): Likewise.
1130 * symtab.c (print_symbol_info): Print a newline after calling
1131 typedef_print.
1132
165f8965
AB
11332019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * symtab.c (info_module_cmdlist): New variable.
1136 (info_module_command): New function.
1137 (search_module_symbols): New function.
1138 (info_module_subcommand): New function.
1139 (struct info_modules_var_func_options): New struct.
1140 (info_modules_var_func_options_defs): New variable.
1141 (make_info_modules_var_func_options_def_group): New function.
1142 (info_module_functions_command): New function.
1143 (info_module_variables_command): New function.
1144 (info_module_var_func_command_completer): New function.
1145 (_initialize_symtab): Register new 'info module functions' and
1146 'info module variables' commands.
1147 * symtab.h (typedef symbol_search_in_module): New typedef.
1148 (search_module_symbols): Declare new function.
1149 * NEWS: Mention new commands.
1150
59c35742
AB
11512019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1154 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1155 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1156 MODULES_DOMAIN.
1157 (scan_partial_symbols): Only create partial module symbols for non
1158 declarations.
1159 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1160 and MODULES_DOMAIN.
1161 * symtab.c (search_domain_name): Likewise.
1162 (search_symbols): Likewise.
1163 (print_symbol_info): Likewise.
1164 (symtab_symbol_info): Likewise.
1165 (info_modules_command): New function.
1166 (_initialize_symtab): Register 'info modules' command.
1167 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1168 * NEWS: Mention new 'info modules' command.
1169
aed61d02
PW
11702019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1171
1172 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1173 and $_gdb_maint_setting_str.
1174
9ad9b77d
PW
11752019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1176
1177 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1178 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1179 (str_value_from_setting, gdb_setting_str_internal_fn)
1180 (gdb_maint_setting_str_internal_fn): New functions.
1181 (_initialize_cli_cmds): Define the new convenience functions.
1182 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1183 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1184
8d6efaa2
CB
11852019-10-31 Christian Biesinger <cbiesinger@google.com>
1186
1187 * agent.c (set_can_use_agent): When the setting is turned on,
1188 look up agent symbols if we don't have them yet.
1189 (agent_new_objfile): Don't look up agent symbols when the agent
1190 setting is off.
1191
33cb1647
CB
11922019-10-31 Christian Biesinger <cbiesinger@google.com>
1193
1194 * config.in: Regenerate.
1195
b231e86a
CB
11962019-10-31 Christian Biesinger <cbiesinger@google.com>
1197
1198 * configure: Regenerate.
1199 * configure.ac: Check for strerror_r.
1200 * gdbsupport/common-utils.h (safe_strerror): Change return value
1201 to const char * and document that this function is now threadsafe.
1202 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1203 thread_local and call strerror_r, if available.
1204 * utils.c (perror_string): Update.
1205 (print_sys_errmsg): Update.
1206
a2726d4f
LM
12072019-10-31 Luis Machado <luis.machado@linaro.org>
1208
1209 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1210 objfile_key.
1211 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1212 objfile to fetch per-bfd data.
1213 (arm_find_exidx_entry): Likewise.
1214
75cafaa6
CB
12152019-10-31 Christian Biesinger <cbiesinger@google.com>
1216
1217 * gdbsupport/agent.c (debug_agent): Change type to bool.
1218 (use_agent): Likewise.
1219 (all_agent_symbols_look_up): Likewise.
1220 (agent_loaded_p): Change return value to bool.
1221 (agent_look_up_symbols): Update.
1222 (agent_capability_check): Change return value to bool.
1223 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1224 (debug_agent): Change type to bool.
1225 (use_agent): Likewise.
1226 (agent_capability_check): Change return value to bool.
1227
808590ec
CB
12282019-10-30 Christian Biesinger <cbiesinger@google.com>
1229
1230 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1231 (build_minimal_symbol_hash_tables): Code to clear the table moved
1232 to clear_minimal_symbol_hash_tables.
1233 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1234 when needed.
1235
f18ad8a1
SM
12362019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1237
1238 * infcmd.c: Remove includes.
1239 * infrun.c: Remove includes.
1240
de93309a
SM
12412019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1242
1243 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1244 (grow_vect): Remove declaration.
1245 (ada_type_of_array): Remove declaration.
1246 (ada_update_initial_language): Remove declaration.
1247 (ada_fold_name): Remove declaration.
1248 (ada_fill_in_ada_prototype): Remove declaration.
1249 (user_select_syms): Remove declaration.
1250 (get_selections): Remove declaration.
1251 (ada_tag_type): Remove declaration.
1252 (ada_value_tag): Remove declaration.
1253 (ada_is_others_clause): Remove declaration.
1254 (ada_in_variant): Remove declaration.
1255 (ada_value_struct_elt): Remove declaration.
1256 (ada_attribute_name): Remove declaration.
1257 (ada_system_address_type): Remove declaration.
1258 * ada-lang.c (ada_watch_location_expression): Make static.
1259 (GROW_VECT): Move here from ada-lang.h.
1260 (grow_vect): Make static.
1261 (ada_update_initial_language): Make static.
1262 (ada_fold_name): Make static.
1263 (ada_type_of_array): Make static.
1264 (encoded_ordered_before): Move up.
1265 (sort_choices): Move up.
1266 (print_signatures): Move up.
1267 (ada_print_symbol_signature): Move up.
1268 (get_selections): Move up and make static.
1269 (user_select_syms): Move up and make static.
1270 (ada_value_struct_elt): Move up and make static.
1271 (ada_tag_type): Make static.
1272 (ada_value_tag): Make static.
1273 (ada_is_others_clause): Make static.
1274 (ada_in_variant): Make static.
1275 (ada_attribute_name): Make static.
1276
cdc46a9f
SM
12772019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * ada-lang.c: Remove includes.
1280 * ada-typeprint.c: Remove includes.
1281 * ada-valprint.c: Remove includes.
1282
90421c56
SM
12832019-10-29 Simon Marchi <simon.marchi@efficios.com>
1284
1285 * addrmap.c: Add static assertions of type size, moved from
1286 _initialize_addrmap.
1287 (_initialize_addrmap): Remove.
1288
31edb802
CB
12892019-10-29 Christian Biesinger <cbiesinger@google.com>
1290
1291 * coffread.c (record_minimal_symbol): Update.
1292 (process_coff_symbol): Update.
1293 * dbxread.c (read_dbx_symtab): Update.
1294 * dwarf2read.c (add_partial_symbol): Update.
1295 (fixup_go_packaging): Update.
1296 (load_partial_dies): Update.
1297 (new_symbol): Update.
1298 * elfread.c (record_minimal_symbol): Change signature to use
1299 gdb::string_view instead of name+len.
1300 (elf_symtab_read): Update.
1301 (elf_rel_plt_read): Update.
1302 * mdebugread.c (parse_partial_symbols): Update.
1303 (handle_psymbol_enumerators): Update.
1304 (new_symbol): Update.
1305 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1306 to use gdb::string_view instead of name+len.
1307 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1308 * psympriv.h (add_psymbol_to_list): Likewise.
1309 * psymtab.c (add_psymbol_to_bcache): Likewise.
1310 (add_psymbol_to_list): Likewise.
1311 * stabsread.c (define_symbol): Update.
1312 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1313 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1314 (symbol_set_names): Likewise.
1315 * xcoffread.c (scan_xcoff_symtab): Update.
1316
0c921b21
CB
13172019-10-29 Christian Biesinger <cbiesinger@google.com>
1318
1319 * symtab.h (symbol_set_names): Document that copy_name must be
1320 set to true for non-nullterminated strings.
1321 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1322 linkage_name if the entry was not found and we need to demangle.
1323
35e65c49
CB
13242019-10-29 Christian Biesinger <cbiesinger@google.com>
1325
1326 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1327 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1328 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1329 * gdbsupport/gdb_binary_search.h: New file.
1330
ed2a2229
CB
13312019-10-29 Christian Biesinger <cbiesinger@google.com>
1332
1333 * NEWS: Mention new --with-system-gdbinit-dir option.
1334 * config.in: Regenerate.
1335 * configure: Regenerate.
1336 * configure.ac: Add new option --with-system-gdbinit-dir.
1337 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1338 for a ".gdb" suffix.
1339 * main.c (get_init_files): Change system_gdbinit argument to
1340 a vector and return the files in SYSTEM_GDBINIT_DIR in
1341 addition to SYSTEM_GDBINIT.
1342 (captured_main_1): Update.
1343 (print_gdb_help): Update.
1344 * top.c (print_gdb_configuration): Also print the value of
1345 SYSTEM_GDBINIT_DIR.
1346
87f34879
CB
13472019-10-28 Christian Biesinger <cbiesinger@google.com>
1348
1349 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1350 that takes gdb::string_view arguments.
1351
30baf67b
TV
13522019-10-26 Tom de Vries <tdevries@suse.de>
1353
1354 * aarch64-linux-tdep.c: Fix typos in comments.
1355 * aarch64-tdep.c: Same.
1356 * ada-lang.c: Same.
1357 * amd64-nat.c: Same.
1358 * arc-tdep.c: Same.
1359 * arch/aarch64-insn.c: Same.
1360 * block.c: Same.
1361 * breakpoint.h: Same.
1362 * btrace.h: Same.
1363 * c-varobj.c: Same.
1364 * cli/cli-decode.c: Same.
1365 * cli/cli-script.c: Same.
1366 * cli/cli-utils.h: Same.
1367 * coff-pe-read.c: Same.
1368 * coffread.c: Same.
1369 * compile/compile-cplus-symbols.c: Same.
1370 * compile/compile-object-run.c: Same.
1371 * completer.c: Same.
1372 * corelow.c: Same.
1373 * cp-support.c: Same.
1374 * demangle.c: Same.
1375 * dwarf-index-write.c: Same.
1376 * dwarf2-frame.c: Same.
1377 * dwarf2-frame.h: Same.
1378 * eval.c: Same.
1379 * frame-base.h: Same.
1380 * frame.h: Same.
1381 * gdbcmd.h: Same.
1382 * gdbtypes.h: Same.
1383 * gnu-nat.c: Same.
1384 * guile/scm-objfile.c: Same.
1385 * i386-tdep.c: Same.
1386 * i386-tdep.h: Same.
1387 * infcall.c: Same.
1388 * infcall.h: Same.
1389 * linux-nat.c: Same.
1390 * m68k-tdep.c: Same.
1391 * macroexp.c: Same.
1392 * memattr.c: Same.
1393 * mi/mi-cmd-disas.c: Same.
1394 * mi/mi-getopt.h: Same.
1395 * mi/mi-main.c: Same.
1396 * minsyms.c: Same.
1397 * nat/aarch64-sve-linux-sigcontext.h: Same.
1398 * objfiles.h: Same.
1399 * ppc-linux-nat.c: Same.
1400 * ppc-linux-tdep.c: Same.
1401 * ppc-tdep.h: Same.
1402 * progspace.h: Same.
1403 * prologue-value.h: Same.
1404 * python/py-evtregistry.c: Same.
1405 * python/py-instruction.h: Same.
1406 * record-btrace.c: Same.
1407 * record-full.c: Same.
1408 * remote.c: Same.
1409 * rs6000-tdep.c: Same.
1410 * ser-tcp.c: Same.
1411 * sol-thread.c: Same.
1412 * sparc-sol2-tdep.c: Same.
1413 * sparc64-tdep.c: Same.
1414 * stabsread.c: Same.
1415 * symfile.c: Same.
1416 * symtab.h: Same.
1417 * target.c: Same.
1418 * tracepoint.c: Same.
1419 * tui/tui-data.h: Same.
1420 * tui/tui-io.c: Same.
1421 * tui/tui-win.c: Same.
1422 * tui/tui.c: Same.
1423 * unittests/rsp-low-selftests.c: Same.
1424 * user-regs.h: Same.
1425 * utils.c: Same.
1426 * utils.h: Same.
1427 * valarith.c: Same.
1428 * valops.c: Same.
1429 * valprint.c: Same.
1430 * valprint.h: Same.
1431 * value.c: Same.
1432 * value.h: Same.
1433 * varobj.c: Same.
1434 * x86-nat.h: Same.
1435 * xtensa-tdep.c: Same.
1436
1834d45f
AT
14372019-10-25 Ali Tamur <tamur@google.com>
1438
1439 * charset.c (find_charset_names): Reflect API change.
1440
5396ae17
CB
14412019-10-25 Christian Biesinger <cbiesinger@google.com>
1442
1443 * symtab.c (struct demangled_name_entry): Change demangled name
1444 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1445 part of the struct anymore.
1446 (symbol_set_names): No longer obstack allocate + copy the demangled
1447 name, just store the allocated name from bfd.
1448
93878f47
TT
14492019-10-25 Tom Tromey <tromey@adacore.com>
1450
1451 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1452 (bsearch_cie_cmp, add_cie): Remove.
1453 (find_cie): Reimplement.
1454 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1455 (dwarf2_build_frame_info): Update.
1456
7b71fc97
L
14572019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1458
1459 PR gdb/25126
1460 * symfile.c (reread_symbols): Call forget_cached_source_info to
1461 clear the stale source cache.
1462
cbb5a2ea
CB
14632019-10-24 Christian Biesinger <cbiesinger@google.com>
1464
1465 * configure: Regenerate.
1466 * configure.ac: Remove code that sets python_has_threads.
1467
71737c43
CB
14682019-10-24 Christian Biesinger <cbiesinger@google.com>
1469
1470 * config.in: Regenerate.
1471 * configure: Regenerate.
1472 * configure.ac: Remove the code that uses sed to get the python
1473 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1474
33d569b7
AB
14752019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1478 error paths.
1479
f16f7b7c
TT
14802019-10-23 Tom Tromey <tom@tromey.com>
1481
1482 * arc-tdep.c: Remove ".." from include.
1483 * frv-tdep.c: Remove ".." from include.
1484 * lm32-tdep.c: Remove ".." from include.
1485 * microblaze-tdep.c: Remove ".." from include.
1486 * or1k-tdep.h: Remove ".." from include.
1487 * s12z-tdep.c: Remove ".." from include.
1488 * Makefile.in (OPCODES_CFLAGS): Add comment.
1489 (TOP_CFLAGS): New variable.
1490 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1491
6999161a
TT
14922019-10-23 Tom Tromey <tom@tromey.com>
1493
1494 * Makefile.in (READLINE_DIR): Update.
1495
12e7c35e
TBA
14962019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497
1498 * infcall.c (call_function_by_hand_dummy): Fix the function
1499 comment. And extract out a code section into...
1500 (reserve_stack_space): ...this new function.
1501
37055cad
TBA
15022019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1503
1504 * infcall.c (value_arg_coerce): Remove an unused parameter.
1505 (call_function_by_hand_dummy): Update the call to
1506 'value_arg_coerce'.
1507
39bcc47c
TBA
15082019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1509
1510 * infcall.c (call_function_by_hand_dummy): Refactor.
1511
bd888c0f
TBA
15122019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1513
1514 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1515
c12d372d
TT
15162019-10-23 Tom Tromey <tom@tromey.com>
1517
1518 * configure: Rebuild.
1519 * configure.ac: Don't check for sigprocmask.
1520 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1521
4d0b984b
TT
15222019-10-23 Tom Tromey <tom@tromey.com>
1523
1524 * configure: Rebuild.
1525 * acinclude.m4: Use m4_include, not sinclude.
1526
7e785608
TV
15272019-10-23 Tom de Vries <tdevries@suse.de>
1528
1529 PR breakpoints/24687
1530 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1531
403772ef
CB
15322019-10-22 Christian Biesinger <cbiesinger@google.com>
1533
1534 * symtab.c (struct demangled_name_entry) <language>: Change from
1535 bitfield to regular variable.
1536
3a494279
CB
15372019-10-22 Christian Biesinger <cbiesinger@google.com>
1538
1539 * symtab.c (struct demangled_name_entry): Add a constructor.
1540 (free_demangled_name_entry): New function to call the destructor
1541 for demangled_name_entry.
1542 (create_demangled_names_hash): Pass free_demangled_name_entry to
1543 htab_create_alloc.
1544 (symbol_set_names): Call placement new for demangled_name_entry.
1545 * utils.c: No longer include xxhash.h here, now that fast_hash
1546 is inlined in the header.
1547 * utils.h: Instead, include it here.
1548
ccb1ba62
CB
15492019-10-22 Christian Biesinger <cbiesinger@google.com>
1550
1551 * Makefile.in: Link with libxxhash.
1552 * config.in: Regenerate.
1553 * configure: Regenerate.
1554 * configure.ac: Search for libxxhash.
1555 * utils.c (fast_hash): Use xxhash if present.
1556
1a6ff1a9
CB
15572019-10-22 Christian Biesinger <cbiesinger@google.com>
1558
1559 * utils.h (fast_hash): New function.
1560 * symtab.c (hash_demangled_name_entry): Call new function
1561 fast_hash.
1562
7bb43059
CB
15632019-10-22 Christian Biesinger <cbiesinger@google.com>
1564
1565 * symtab.c (struct demangled_name_entry): Change type of mangled
1566 to gdb::string_view. Also adds a constructor that takes the
1567 mangled name.
1568 (hash_demangled_name_entry): Update.
1569 (eq_demangled_name_entry): Update.
1570 (free_demangled_name_entry): New function to call the destructor
1571 now that this is not a POD anymore.
1572 (create_demangled_names_hash): Pass free_demangled_name_entry to
1573 htab_create_alloc.
1574 (symbol_set_names): Update.
1575
7ba99d21
AT
15762019-10-21 Ali Tamur <tamu@google.com>
1577
1578 * dwarf2read.c (dir_index): Change type.
1579 (file_name_index): Likewise.
1580 (line_header::include_dir_at): Change comment and implementation on
1581 whether it is DWARF 5.
1582 (line_header::is_valid_file_index): New function.
1583 (line_header::file_name_at): Change comment and implementation on
1584 whether it is DWARF 5.
1585 (line_header::file_names): Change to private field renamed as
1586 m_file_names and introduce a new accessor method.
1587 (line_header::file_names_size): New method.
1588 (line_header::include_dirs): Change to private field and rename as
1589 m_include_dirs.
1590 (dw2_get_file_names_reader): Define local var at a smaller scope and
1591 reflect API change.
1592 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1593 (process_structure_scope): Likewise.
1594 (line_header::add_include_dir): Change message and reflect renaming.
1595 (line_header::add_file_name): Likewise.
1596 (read_formatted_entries): Handle DW_FORM_data16.
1597 (dwarf_decode_line_header): Fix line header length calculation.
1598 (psymtab_include_file_name): Change comment and API.
1599 (lnp_state_machine::m_file): Update comment and reflect type change.
1600 (lnp_state_machine::record_line): Reflect type change.
1601 (dwarf_decode_lines): Reflect API change.
1602 (file_file_name): Likewise.
1603 (file_full_name): Likewise.
1604
45f47c3a
AB
16052019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1608
e5f3c0e3
TT
16092019-10-21 Tom Tromey <tom@tromey.com>
1610
1611 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1612
a0a461e5
TT
16132019-10-21 Tom Tromey <tom@tromey.com>
1614
1615 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1616 NM_H. Use AC_CONFIG_LINKS.
1617 * configure: Rebuild.
1618 * Makefile.in (NM_H): New variable.
1619 (generated_files): Add NM_H. Remove gcore.
1620 (nm.h, stamp-nmh): New targets.
1621
54d83b8d
TT
16222019-10-20 Tom Tromey <tom@tromey.com>
1623
1624 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1625 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1626 obsolete comment.
1627 (put_objfile_before): Now static.
1628
23771117
SM
16292019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1630
1631 * gdbsupport/common-utils.h (startswith): Change return type to
1632 bool.
1633
39ef2f62
CB
16342019-10-19 Christian Biesinger <cbiesinger@google.com>
1635
1636 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1637 * breakpoint.c (bp_locations_compare): Rename to...
1638 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1639 (update_global_location_list): Use std::sort instead of qsort.
1640 * buildsym.c (compare_line_numbers): Rename to...
1641 (lte_is_less_than): ...this, and change to std::sort semantics.
1642 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1643 instead of qsort.
1644 * disasm.c (compare_lines): Rename to...
1645 (line_is_less_than): ...this, and change to std::sort semantics.
1646 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1647 of qsort.
1648 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1649 (fde_is_less_than): ...this, and change to std::sort semantics.
1650 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1651 * mdebugread.c (compare_blocks):
1652 (block_is_less_than): ...this, and change to std::sort semantics.
1653 (sort_blocks): Call std::sort instead of qsort.
1654 * objfiles.c (qsort_cmp): Rename to...
1655 (sort_cmp): ...this, and change to std::sort semantics.
1656 (update_section_map): Call std::sort instead of qsort.
1657 * remote.c (compare_pnums): Remove.
1658 (map_regcache_remote_table): Call std::sort instead of qsort.
1659 * utils.c (compare_positive_ints): Remove.
1660 * utils.h (compare_positive_ints): Remove.
1661 * xcoffread.c (compare_lte): Remove.
1662 (arrange_linetable): Call std::sort instead of qsort.
1663
f71433ee
SDJ
16642019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1665
1666 * symfile.c (init_entry_point_info): Fix typo.
1667 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1668
85102364
TV
16692019-10-18 Tom de Vries <tdevries@suse.de>
1670
1671 * aarch64-tdep.c: Fix typos in comments.
1672 * ada-lang.c: Same.
1673 * ada-tasks.c: Same.
1674 * alpha-tdep.c: Same.
1675 * alpha-tdep.h: Same.
1676 * amd64-nat.c: Same.
1677 * amd64-windows-tdep.c: Same.
1678 * arc-tdep.c: Same.
1679 * arc-tdep.h: Same.
1680 * arch-utils.c: Same.
1681 * arm-nbsd-tdep.c: Same.
1682 * arm-tdep.c: Same.
1683 * ax-gdb.c: Same.
1684 * blockframe.c: Same.
1685 * btrace.c: Same.
1686 * c-varobj.c: Same.
1687 * coff-pe-read.c: Same.
1688 * coffread.c: Same.
1689 * cris-tdep.c: Same.
1690 * darwin-nat.c: Same.
1691 * dbxread.c: Same.
1692 * dcache.c: Same.
1693 * disasm.c: Same.
1694 * dtrace-probe.c: Same.
1695 * dwarf-index-write.c: Same.
1696 * dwarf2-frame-tailcall.c: Same.
1697 * dwarf2-frame.c: Same.
1698 * dwarf2read.c: Same.
1699 * eval.c: Same.
1700 * exceptions.c: Same.
1701 * fbsd-tdep.c: Same.
1702 * findvar.c: Same.
1703 * frame.c: Same.
1704 * frv-tdep.c: Same.
1705 * gnu-v3-abi.c: Same.
1706 * go32-nat.c: Same.
1707 * h8300-tdep.c: Same.
1708 * hppa-tdep.c: Same.
1709 * i386-linux-tdep.c: Same.
1710 * i386-tdep.c: Same.
1711 * ia64-libunwind-tdep.c: Same.
1712 * ia64-tdep.c: Same.
1713 * infcmd.c: Same.
1714 * infrun.c: Same.
1715 * linespec.c: Same.
1716 * linux-nat.c: Same.
1717 * linux-thread-db.c: Same.
1718 * machoread.c: Same.
1719 * mdebugread.c: Same.
1720 * mep-tdep.c: Same.
1721 * mn10300-tdep.c: Same.
1722 * namespace.c: Same.
1723 * objfiles.c: Same.
1724 * opencl-lang.c: Same.
1725 * or1k-tdep.c: Same.
1726 * osabi.c: Same.
1727 * ppc-linux-nat.c: Same.
1728 * ppc-linux-tdep.c: Same.
1729 * ppc-sysv-tdep.c: Same.
1730 * printcmd.c: Same.
1731 * procfs.c: Same.
1732 * record-btrace.c: Same.
1733 * record-full.c: Same.
1734 * remote-fileio.c: Same.
1735 * remote.c: Same.
1736 * rs6000-tdep.c: Same.
1737 * s12z-tdep.c: Same.
1738 * score-tdep.c: Same.
1739 * ser-base.c: Same.
1740 * ser-go32.c: Same.
1741 * skip.c: Same.
1742 * sol-thread.c: Same.
1743 * solib-svr4.c: Same.
1744 * solib.c: Same.
1745 * source.c: Same.
1746 * sparc-nat.c: Same.
1747 * sparc-sol2-tdep.c: Same.
1748 * sparc-tdep.c: Same.
1749 * sparc64-tdep.c: Same.
1750 * stabsread.c: Same.
1751 * stack.c: Same.
1752 * symfile.c: Same.
1753 * symtab.c: Same.
1754 * target-descriptions.c: Same.
1755 * target-float.c: Same.
1756 * thread.c: Same.
1757 * utils.c: Same.
1758 * valops.c: Same.
1759 * valprint.c: Same.
1760 * value.c: Same.
1761 * varobj.c: Same.
1762 * windows-nat.c: Same.
1763 * xcoffread.c: Same.
1764 * xstormy16-tdep.c: Same.
1765 * xtensa-tdep.c: Same.
1766
c5adaa19
TT
17672019-10-17 Tom Tromey <tromey@adacore.com>
1768
1769 * configure: Rebuild.
1770 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1771 in AC_CONFIG_FILES invocation.
1772 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1773 new-style config.status invocation.
1774
405feb71
TV
17752019-10-17 Tom de Vries <tdevries@suse.de>
1776
1777 * arm-nbsd-nat.c: Fix typos in comments.
1778 * arm-tdep.c: Same.
1779 * darwin-nat-info.c: Same.
1780 * dwarf2read.c: Same.
1781 * elfread.c: Same.
1782 * event-top.c: Same.
1783 * findvar.c: Same.
1784 * gdbtypes.c: Same.
1785 * hppa-tdep.c: Same.
1786 * i386-tdep.c: Same.
1787 * jit.c: Same.
1788 * main.c: Same.
1789 * mdebugread.c: Same.
1790 * moxie-tdep.c: Same.
1791 * nto-procfs.c: Same.
1792 * osabi.c: Same.
1793 * ppc-linux-tdep.c: Same.
1794 * remote.c: Same.
1795 * riscv-tdep.c: Same.
1796 * s390-tdep.c: Same.
1797 * sh-tdep.c: Same.
1798 * sparc-linux-tdep.c: Same.
1799 * sparc-nat.c: Same.
1800 * stack.c: Same.
1801 * target-descriptions.c: Same.
1802 * top.c: Same.
1803 * varobj.c: Same.
1804
befcd486
TT
18052019-10-16 Tom Tromey <tom@tromey.com>
1806
1807 * objfiles.h (struct objfile) <original_name>: Now const.
1808
17bfe554
CB
18092019-10-16 Christian Biesinger <cbiesinger@google.com>
1810
1811 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1812 pass on to sigsetjmp's second argument.
1813 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1814
950b7495
KS
18152019-10-16 Keith Seitz <keiths@redhat.com>
1816
1817 PR gdb/23567
1818 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1819 sections whose size is greater than the file size.
1820
ff371ec9
JW
18212019-10-16 Jim Wilson <jimw@sifive.com>
1822
1823 * riscv-tdep.c (riscv_gcc_target_options): New.
1824 (riscv_gnu_triplet_regexp): New.
1825 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1826 set_gdbarch_gnu_triplet_regexp.
1827
fec4e896
CB
18282019-10-16 Christian Biesinger <cbiesinger@google.com>
1829
1830 * Makefile.in: Add xml-builtin.h.
1831 * features/feature_to_c.sh: Add an include for xml-builtin.h
1832 to ensure that the compiler checks that the types match.
1833 * xml-builtin.h: New file.
1834 * xml-support.c (fetch_xml_builtin): Add missing const.
1835 * xml-support.h: Remove declaration of xml_builtins.
1836
d10eccaa
TV
18372019-10-16 Tom de Vries <tdevries@suse.de>
1838
1839 PR tdep/25096
1840 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1841 (amd64_classify_aggregate): ... here.
1842 (amd64_classify_aggregate_field): Handled fiels of nested structs
1843 recursively.
1844
745ff14e
TV
18452019-10-16 Tom de Vries <tdevries@suse.de>
1846
1847 PR tdep/24104
1848 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1849 that handles 'theclass'.
1850
791b7405
AB
18512019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * linespec.c (decode_digits_ordinary): Update comment.
1854 * make-target-delegates: No longer need to handle VEC case.
1855 * memrange.c (normalize_mem_ranges): Update comment.
1856 * namespace.c (add_using_directive): Update comment.
1857 * objc-lang.c (uniquify_strings): Update comment.
1858 * ppc-linux-nat.c (struct thread_points): Update comment.
1859 * probe.h (find_probes_in_objfile): Update comment.
1860 * target.h (enum flash_preserve_mode): Update comment.
1861 * varobj.c (varobj_restrict_range): Update comment.
1862 * varobj.h (varobj_list_children): Update comment.
1863
0dc32745
AB
18642019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * Makefile.in: Remove references to vec.h and vec.c.
1867 * aarch64-tdep.c: No longer include vec.h.
1868 * ada-lang.c: Likewise.
1869 * ada-lang.h: Likewise.
1870 * arm-tdep.c: Likewise.
1871 * ax.h: Likewise.
1872 * breakpoint.h: Likewise.
1873 * charset.c: Likewise.
1874 * cp-support.h: Likewise.
1875 * dtrace-probe.c: Likewise.
1876 * dwarf2read.c: Likewise.
1877 * extension.h: Likewise.
1878 * gdb_bfd.c: Likewise.
1879 * gdbsupport/gdb_vecs.h: Likewise.
1880 * gdbsupport/vec.c: Remove.
1881 * gdbsupport/vec.h: Remove.
1882 * gdbthread.h: Likewise.
1883 * guile/scm-type.c: Likewise.
1884 * inline-frame.c: Likewise.
1885 * machoread.c: Likewise.
1886 * memattr.c: Likewise.
1887 * memrange.h: Likewise.
1888 * namespace.h: Likewise.
1889 * nat/linux-btrace.h: Likewise.
1890 * osdata.c: Likewise.
1891 * parser-defs.h: Likewise.
1892 * progspace.h: Likewise.
1893 * python/py-type.c: Likewise.
1894 * record-btrace.c: Likewise.
1895 * rust-exp.y: Likewise.
1896 * solib-target.c: Likewise.
1897 * stap-probe.c: Likewise.
1898 * target-descriptions.c: Likewise.
1899 * target-memory.c: Likewise.
1900 * target.h: Likewise.
1901 * varobj.c: Likewise.
1902 * varobj.h: Likewise.
1903 * xml-support.h: Likewise.
1904
ae640021
AB
19052019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1908 Update for new std::vector based implementation.
1909 (process_psymtab_comp_unit_reader): Likewise.
1910 (scan_partial_symbols): Likewise.
1911 (recursively_compute_inclusions): Likewise.
1912 (compute_compunit_symtab_includes): Likewise.
1913 (process_imported_unit_die): Likewise.
1914 (queue_and_load_dwo_tu): Likewise.
1915 (follow_die_sig_1): Likewise.
1916 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1917 (typedef dwarf2_per_cu_ptr): Remove.
1918 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1919 function.
1920 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1921 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1922 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1923 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1924 std::vector.
1925
55dfc88f
TT
19262019-10-15 Tom Tromey <tromey@adacore.com>
1927
1928 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1929 TID.
1930
96b49c5e
TT
19312019-10-15 Tom Tromey <tromey@adacore.com>
1932
1933 * windows-nat.c (windows_nat_target::fetch_registers)
1934 (windows_nat_target::store_registers): Rename "pid" to "tid".
1935
953cff56
TT
19362019-10-15 Tom Tromey <tromey@adacore.com>
1937
1938 * gdbarch.h, gdbarch.c: Rebuild.
1939 * gdbarch.sh (gcc_target_options): Change return type to
1940 std::string.
1941 * compile/compile.c (get_args): Update.
1942 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1943 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1944 std::string.
1945 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1946 std::string.
1947 * arch-utils.c (default_gcc_target_options): Return std::string.
1948 * arch-utils.h (default_gcc_target_options): Return std::string.
1949 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1950
81e6b8eb
CB
19512019-10-15 Christian Biesinger <cbiesinger@google.com>
1952
1953 * breakpoint.c (breakpoint_chain): Make static.
1954 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1955 of accessing breakpoint_chain.
1956
95da600f
CB
19572019-10-15 Christian Biesinger <cbiesinger@google.com>
1958
1959 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1960 to a gdb::function_view and return value to bool.
1961 * breakpoint.h (iterate_over_breakpoints): Likewise.
1962 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1963 (pop_dummy_frame): Update.
1964 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1965 (gdbscm_breakpoints): Update.
1966 * python/py-breakpoint.c (build_bp_list): Update.
1967 (gdbpy_breakpoints): Update.
1968 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1969 Update.
1970 (bpfinishpy_handle_stop): Update.
1971 (bpfinishpy_handle_exit): Update.
1972 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1973 (svr4_update_solib_event_breakpoints): Update.
1974
ba18312d
AA
19752019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1976
1977 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1978 when unwrapping single-field structs.
1979
6acc1a0b
SM
19802019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * dwarf2read.c: Remove includes.
1983
284782de
SM
19842019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * ui-out.c (ui_out::call_do_message): Silence
1987 -Wformat-nonliteral warning.
1988
073bbbb0
SM
19892019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1992 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1993 include: readline/tilde.h.
1994
7b9a15e1
CB
19952019-10-12 Christian Biesinger <cbiesinger@google.com>
1996
1997 * remote.c (remote_target::get_trace_status): Remove declaration of
1998 trace_regblock_size.
1999
cc8dee1f
CB
20002019-10-12 Christian Biesinger <cbiesinger@google.com>
2001
2002 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2003 (show_user): Remove declaration of cmdlist.
2004 * cli/cli-cmds.h (max_user_call_depth): Declare.
2005 * cli/cli-script.c (execute_user_command): Remove declaration
2006 of max_user_call_depth.
2007
a83d4ef6
JW
20082019-10-11 Jim Wilson <jimw@sifive.com>
2009
5f93c5a6
JW
2010 * gdbsupport/print-utils.h (pulongest): Fix comment.
2011 (plongest): Likewise.
2012 (phex): Add missing comment, mention leading zeros.
2013 (phex_nz): Add mention of no leading zeros to comment.
2014
a83d4ef6
JW
2015 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2016 plongest instead of unsigned long long cast.
2017
26344e0c
CB
20182019-10-10 Christian Biesinger <cbiesinger@google.com>
2019
2020 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2021 for external_editor_command and gdbtk_test.
2022
c2c440a9
CB
20232019-10-10 Christian Biesinger <cbiesinger@google.com>
2024
2025 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2026 * varobj.c (varobjdebug): Move comment to...
2027 * varobj.h (varobjdebug): ...here, and declare.
2028
a31bff9d
TT
20292019-10-09 Tom Tromey <tom@tromey.com>
2030
2031 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2032 erase_data_content.
2033
7523da63
TT
20342019-10-09 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2037 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2038 * tui/tui-command.c (tui_cmd_window::resize)
2039 (tui_refresh_cmd_win): Update.
2040 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2041 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2042 * tui/tui-data.c (~tui_gen_win_info): Remove.
2043 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2044 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2045 (tui_redisplay_readline, tui_mld_flush)
2046 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2047 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2048 (tui_data_window::erase_data_content)
2049 (tui_data_item_window::rerender)
2050 (tui_data_item_window::refresh_window): Update.
2051 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2052 (box_win, tui_gen_win_info::make_window)
2053 (tui_gen_win_info::make_visible): Update.
2054 (tui_delete_win): Remove.
2055 * tui/tui-winsource.c
2056 (tui_source_window_base::do_erase_source_content): Update.
2057 (tui_show_source_line, tui_source_window_base::update_tab_width)
2058 (tui_source_window_base::update_exec_info): Update.
2059 * tui/tui-data.h (struct curses_deleter): New.
2060 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2061 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2062
a7798e7f
TT
20632019-10-09 Tom Tromey <tom@tromey.com>
2064
2065 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2066
5c45899e
TT
20672019-10-09 Tom Tromey <tom@tromey.com>
2068
2069 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2070 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2071
6d7fd9aa
TT
20722019-10-09 Tom Tromey <tom@tromey.com>
2073
2074 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2075 window height directly.
2076 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2077 declare.
2078 * tui/tui-layout.c (tui_default_win_height): Remove.
2079 (tui_default_win_viewport_height): Remove.
2080
d2dd1084
TT
20812019-10-09 Tom Tromey <tom@tromey.com>
2082
2083 * tui/tui.h: Remove comments.
2084
cff32449
TV
20852019-10-09 Tom de Vries <tdevries@suse.de>
2086
2087 * python/lib/gdb/printer/bound_registers.py: Use
2088 '^builtin_type_bound128' as regexp argument for
2089 add_builtin_pretty_printer.
2090
6a25e8a2
CB
20912019-10-09 Christian Biesinger <cbiesinger@google.com>
2092
2093 * guile/guile.c (guile_extension_script_ops): Remove forward
2094 declaration and mark as static.
2095 (guile_script_ops): Likewise.
2096 (extension_language_guile): Move further down in the file so
2097 it can reference the definitions for guile_{extension_,}script_ops.
2098
6d9d6da4
AA
20992019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2100
2101 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2102 except SORTL, DFLTCC, and KDSA.
2103
3abea05d
TT
21042019-10-08 Tom Tromey <tromey@adacore.com>
2105
2106 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2107 (struct safe_symbol_file_add_args): Remove.
2108
dde996e2
TT
21092019-10-08 Tom Tromey <tromey@adacore.com>
2110
2111 * windows-nat.c: Don't include buildsym-legacy.h.
2112
cd6fdaa1
TT
21132019-10-08 Tom Tromey <tromey@adacore.com>
2114
2115 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2116
79bb1944
CB
21172019-10-08 Christian Biesinger <cbiesinger@google.com>
2118
2119 * gdbtypes.c (overload_debug): Move comment to header.
2120 * gdbtypes.h (overload_debug): Declare.
2121 * valops.c: Remove declaration of overload_debug, instead
2122 include gdbtypes.h.
2123
34916edc
CB
21242019-10-08 Christian Biesinger <cbiesinger@google.com>
2125
2126 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2127 through _().
2128 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2129 move comment...
2130 * language.h (lang_frame_mismatch_warn): ... here. Also add
2131 declaration.
2132 * top.c (lang_frame_mismatch_warn): Remove declaration.
2133 (check_frame_language_change): Pass lang_frame_mismatch_warn
2134 through _().
2135
bad5c026
CB
21362019-10-07 Christian Biesinger <cbiesinger@google.com>
2137
2138 * c-lang.h (vtbl_ptr_name): Declare.
2139 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2140 it from the header.
2141 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2142
51f1fdc3
CB
21432019-10-07 Christian Biesinger <cbiesinger@google.com>
2144
2145 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2146 gdb_static_assert.
2147
30d1f018
WP
21482019-10-07 Weimin Pan <weimin.pan@oracle.com>
2149
606813d5
WP
2150 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2151 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2152 * ctfread.c: New file.
2153 * ctfread.h: New file.
2154 * elfread.c: Include ctfread.h.
2155 (struct elfinfo text_p): New member ctfsect.
2156 (elf_locate_sections): Mark CTF section.
2157 (elf_symfile_read): Call elfctf_build_psymtabs.
2158 * Makefile.in (LIBCTF): Add.
2159 (CLIBS): Use it.
2160 (CDEPS): Likewise.
2161 (DIST): Add ctfread.c.
606813d5
WP
2162
21632019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * ctfread.c (struct nextfield): Renamed to ...
2166 (struct ctf_nextfield): ... this.
2167 (struct field_info): Renamed to ...
2168 (strut ctf_field_info): ... this.
2169 (attach_fields_to_type): Update for renamed structures.
2170 (ctf_add_member_cb): Likewise.
2171 (ctf_add_enum_member_cb): Likewise.
2172 (process_struct_members): Likewise.
2173 (process_enum_type): Likewise.
30d1f018 2174
518fe38c
WP
21752019-10-07 Weimin Pan <weimin.pan@oracle.com>
2176
2177 * tracectf.h: Rename, was ctf.h.
2178 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2179 * tracefile.c: Likewise.
2180 * tracepoint.c: Remove unused include ctf.h.
2181 * mi/mi-main.c: Likewise.
2182 * Makefile.in Replace ctf.c with tracectf.c.
2183
225f296a
JB
21842019-10-06 Joel Brobecker <brobecker@adacore.com>
2185
2186 * version.in: Change version number to "9.0.50.DATE-git".
2187
77c2dba3
TT
21882019-10-03 Tom Tromey <tom@tromey.com>
2189
2190 PR rust/24976:
2191 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2192
179aed7f
AB
21932019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2196 cp_search_name_hash.
2197 * NEWS: Add entry about nested function support.
2198
0a4b0913
AB
21992019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2200 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2203 for nested static variables when searchin VAR_DOMAIN.
2204 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2205 global scope, update comment.
2206 (add_partial_subprogram): Call add_partial_subprogram recursively
2207 for nested subroutines when processinng Fortran.
2208 (load_partial_dies): Process the child entities of a subprogram
2209 when processing Fortran.
2210 (partial_die_parent_scope): Handle building scope
2211 for Fortran nested functions.
2212 (process_die): Record that nested functions have a scope.
2213 (new_symbol): Always record Fortran subprograms on the global
2214 symbol list.
2215 (determine_prefix): How to build the prefix for Fortran
2216 subprograms.
2217
d8c06f22
AB
22182019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2221 have just sent the thread a SIGSTOP and are waiting for it to
2222 arrive.
2223
a8b3b8e9
AB
22242019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * btrace.c (btrace_add_pc): Remove whitespace before the template
2227 parameter in 'std::vector <...>'.
2228 (parse_xml_btrace_block): Likewise.
2229 (btrace_maint_decode_pt): Likewise.
2230 (btrace_maint_update_packets): Likewise.
2231 (btrace_maint_print_packets): Likewise.
2232 * btrace.h (struct btrace_maint_info): Likewise.
2233 * dwarf2read.c (struct type_unit_group): Likewise.
2234 (build_type_psymtabs_reader): Likewise.
2235 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2236 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2237 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2238
4d825eab
TV
22392019-10-03 Tom de Vries <tdevries@suse.de>
2240
2241 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2242 the first line of the help text for set/show style metadata.
2243
80fd2826
TT
22442019-10-02 Tom Tromey <tromey@adacore.com>
2245
2246 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2247 * gdbsupport/common-inferior.c: New file.
2248 * infcmd.c (startup_with_shell): Don't define.
2249 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2250 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2251 * inferior.h (startup_with_shell): Don't declare.
2252
70054538
CB
22532019-10-02 Christian Biesinger <cbiesinger@google.com>
2254
2255 * gdbsupport/gdb_assert.h: Include errors.h.
2256 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2257
37f6a7f4
TT
22582019-10-02 Tom Tromey <tromey@adacore.com>
2259
2260 * NEWS: Add $_ada_exception entry.
2261 * ada-lang.c (struct ada_catchpoint): Add constructor.
2262 <m_kind>: New member.
2263 (allocate_location_exception, re_set_exception): Remove
2264 "ex" parameter.
2265 (should_stop_exception): Compute $_ada_exception.
2266 (check_status_exception, print_it_exception)
2267 (print_one_exception, print_mention_exception): Remove
2268 "ex" parameter.
2269 (allocate_location_catch_exception, re_set_catch_exception)
2270 (check_status_exception, print_it_catch_exception)
2271 (print_one_catch_exception, print_mention_catch_exception)
2272 (print_recreate_catch_exception)
2273 (allocate_location_catch_exception_unhandled)
2274 (re_set_catch_exception_unhandled)
2275 (check_status_exception, print_it_catch_exception_unhandled)
2276 (print_one_catch_exception_unhandled)
2277 (print_mention_catch_exception_unhandled)
2278 (print_recreate_catch_exception_unhandled)
2279 (allocate_location_catch_assert, re_set_catch_assert)
2280 (check_status_assert, print_it_catch_assert)
2281 (print_one_catch_assert, print_mention_catch_assert)
2282 (print_recreate_catch_assert)
2283 (allocate_location_catch_handlers, re_set_catch_handlers)
2284 (check_status_handlers, print_it_catch_handlers)
2285 (print_one_catch_handlers, print_mention_catch_handlers)
2286 (print_recreate_catch_handlers): Remove.
2287 (create_ada_exception_catchpoint): Update.
2288 (initialize_ada_catchpoint_ops): Update.
2289
fccf9de1
TT
22902019-10-02 Tom Tromey <tromey@adacore.com>
2291
2292 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2293 (create_excep_cond_exprs): Simplify exception string computation.
2294 (ada_exception_catchpoint_cond_string): Likewise.
2295
4b610737
TT
22962019-10-02 Tom Tromey <tromey@adacore.com>
2297
2298 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2299 * ada-lang.c (lesseq_defined_than): Handle
2300 LOC_STATIC.
2301 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2302 parameter.
2303 (dwarf2_has_info): Likewise.
2304 (new_symbol): Set maybe_copied on symbol when
2305 appropriate.
2306 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2307 parameter.
2308 <can_copy>: New member.
2309 * elfread.c (record_minimal_symbol): Set maybe_copied
2310 on symbol when appropriate.
2311 (elf_symfile_read): Update call to dwarf2_has_info.
2312 * minsyms.c (lookup_minimal_symbol_linkage): New
2313 function.
2314 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2315 * symtab.c (get_symbol_address, get_msymbol_address):
2316 New functions.
2317 * symtab.h (get_symbol_address, get_msymbol_address):
2318 Declare.
2319 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2320 maybe_copied.
2321 (struct symbol, struct minimal_symbol) <maybe_copied>:
2322 New member.
2323
1dd58850
TT
23242019-10-02 Tom Tromey <tromey@adacore.com>
2325
2326 * source.c (struct current_source_location): New.
2327 (current_source_key): New global.
2328 (current_source_symtab, current_source_line)
2329 (current_source_pspace): Remove.
2330 (get_source_location): New function.
2331 (get_current_source_symtab_and_line)
2332 (set_default_source_symtab_and_line)
2333 (set_current_source_symtab_and_line)
2334 (clear_current_source_symtab_and_line, select_source_symtab)
2335 (info_source_command, print_source_lines_base)
2336 (info_line_command, search_command_helper, _initialize_source):
2337 Update.
2338
5c281dbb
TT
23392019-10-02 Tom Tromey <tromey@adacore.com>
2340
2341 * source.c (select_source_symtab): Don't call
2342 decode_line_with_current_source.
2343
d3d32391
AB
23442019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * symtab.c (lookup_global_symbol): Search global block.
2347
38583298
TT
23482019-10-02 Tom Tromey <tromey@adacore.com>
2349
2350 * coffread.c (process_coff_symbol): Update.
2351 * dwarf2read.c (var_decode_location, new_symbol): Update.
2352 * mdebugread.c (parse_symbol): Update.
2353 * objfiles.c (relocate_one_symbol): Update.
2354 * stabsread.c (define_symbol, fix_common_block)
2355 (scan_file_globals): Update.
2356 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2357 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2358 * xcoffread.c (process_xcoff_symbol): Update.
2359
9344c18f
AA
23602019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2361
2362 * MAINTAINERS: Update my email address.
2363
df07e2c7
AB
23642019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2367 std::vector.
2368 (build_type_psymtabs_reader): Update for std::vector.
2369 (build_type_psymtab_dependencies): Likewise.
2370 * dwarf2read.h: Remove use of DEF_VEC_P.
2371 (typedef sig_type_ptr): Delete.
2372
554ac434
AB
23732019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2376 to std::vector.
2377 (btrace_maint_decode_pt): Likewise, and move allocation of the
2378 vector outside of the loop.
2379 (btrace_maint_update_packets): Update to handle change from VEC to
2380 std::vector.
2381 (btrace_maint_print_packets): Likewise.
2382 (maint_info_btrace_cmd): Likewise.
2383 * btrace.h: Remove use of DEF_VEC_O.
2384 (typedef btrace_pt_packet_s): Delete.
2385 (struct btrace_maint_info) <packets>: Change fromm VEC to
2386 std::vector.
2387 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2388
46f29a9a
AB
23892019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2390
2391 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2392 make accesses into the vector constant references.
2393 (btrace_add_pc): Update for std::vector.
2394 (btrace_stitch_bts): Likewise.
2395 (parse_xml_btrace_block): Likewise.
2396 (btrace_maint_update_packets): Likewise.
2397 (btrace_maint_print_packets): Likewise.
2398 (maint_info_btrace_cmd): Likewise.
2399 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2400 std::vector.
2401 (btrace_data::empty): Likewise.
2402 (btrace_data_append): Likewise.
2403 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2404 (typedef btrace_block_s): Delete.
2405 (struct btrace_block): Add constructor.
2406 (struct btrace_data_bts) <blocks>: Change to std::vector.
2407 * nat/linux-btrace.c (perf_event_read_bts): Update for
2408 std::vector.
2409 (linux_read_bts): Likewise.
2410
d770d56f
TT
24112019-10-01 Tom Tromey <tom@tromey.com>
2412
2413 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2414
9d636d67
TT
24152019-10-01 Tom Tromey <tom@tromey.com>
2416
2417 * stack.c (print_frame, info_frame_command_core): Use
2418 styled_string.
2419 * linux-thread-db.c (try_thread_db_load_1)
2420 (try_thread_db_load_from_pdir_1): Use styled_string.
2421 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2422 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2423 (maybe_print_unsupported_script_warning)
2424 (maybe_print_script_not_found_warning): Use styled_string.
2425 * ada-lang.c (user_select_syms): Use styled_string.
2426
7f6aba03
TT
24272019-10-01 Tom Tromey <tom@tromey.com>
2428
2429 * p-lang.c (pascal_printstr): Use metadata style.
2430 * value.c (show_convenience): Use metadata style.
2431 * valprint.c (valprint_check_validity, val_print_optimized_out)
2432 (val_print_not_saved, val_print_unavailable)
2433 (val_print_invalid_address, generic_val_print, val_print)
2434 (value_check_printable, val_print_array_elements): Use metadata
2435 style.
2436 * ui-out.h (class ui_out) <field_fmt>: New overload.
2437 <do_field_fmt>: Add style parameter.
2438 * ui-out.c (ui_out::field_fmt): New overload.
2439 * typeprint.c (type_print_unknown_return_type)
2440 (val_print_not_allocated, val_print_not_associated): Use metadata
2441 style.
2442 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2443 parameter.
2444 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2445 * tracepoint.c (tvariables_info_1): Use metadata style.
2446 * stack.c (print_frame_arg, print_frame_info, print_frame)
2447 (info_frame_command_core): Use metadata style.
2448 * skip.c (info_skip_command): Use metadata style.
2449 * rust-lang.c (rust_print_enum): Use metadata style.
2450 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2451 metadata style.
2452 * python/py-framefilter.c (py_print_single_arg): Use metadata
2453 style.
2454 * printcmd.c (do_one_display, print_variable_and_value): Use
2455 metadata style.
2456 * p-valprint.c (pascal_val_print)
2457 (pascal_object_print_value_fields): Use metadata style.
2458 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2459 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2460 parameter.
2461 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2462 * m2-valprint.c (m2_print_long_set): Use metadata style.
2463 * m2-typeprint.c (m2_print_type): Use metadata style.
2464 * infcmd.c (print_return_value_1): Use metadata style.
2465 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2466 * f-valprint.c (info_common_command_for_block): Use metadata
2467 style.
2468 * f-typeprint.c (f_type_print_base): Use metadata style.
2469 * expprint.c (print_subexp_standard): Use metadata style.
2470 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2471 * cli/cli-style.h (class cli_style_option): Add constructor.
2472 (metadata_style): Declare.
2473 * cli/cli-style.c (metadata_style): New global.
2474 (_initialize_cli_style): Register metadata style.
2475 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2476 parameter.
2477 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2478 * c-typeprint.c (c_type_print_base_struct_union)
2479 (c_type_print_base_1): Use metadata style.
2480 * breakpoint.c (watchpoint_value_print)
2481 (print_one_breakpoint_location): Use metadata style.
2482 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2483 style.
2484 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2485 style.
2486 * ada-valprint.c (val_print_packed_array_elements, printstr)
2487 (print_field_values, ada_val_print_ref, ada_val_print): Use
2488 metadata style.
2489 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2490 style.
2491 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2492 style.
2493 * ada-lang.c (user_select_syms): Use metadata style.
2494
14309bb6
TT
24952019-10-01 Tom Tromey <tom@tromey.com>
2496
2497 * cli/cli-cmds.c (pwd_command): Style output.
2498
6a831f06
PA
24992019-10-01 Pedro Alves <palves@redhat.com>
2500 Tom Tromey <tom@tromey.com>
2501
2502 * symtab.c (print_symbol_info): Use %ps.
2503 (print_msymbol_info): Use %ps.
2504 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2505 * printcmd.c (print_variable_and_value): Use %ps.
2506 * macrocmd.c (show_pp_source_pos): Use %ps.
2507 * infrun.c (print_exited_reason): Use ui_out::message.
2508 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2509 (describe_other_breakpoints): Use ui_out::message and new
2510 formats.
2511 (say_where): Use new formats.
2512 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2513 and new formats.
2514
2a3c1174
PA
25152019-10-01 Pedro Alves <palves@redhat.com>
2516 Tom Tromey <tom@tromey.com>
2517
2518 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2519 (test_gdb_formats): New function.
2520 (run_tests): Call it.
2521 (test_format_specifier): Update.
2522 * utils.h (fputs_filtered): Update comment.
2523 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2524 (fputs_styled_unfiltered): Declare.
2525 * utils.c (fputs_styled_unfiltered): New function.
2526 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2527 (vfprintf_filtered): Update.
2528 (vfprintf_unfiltered, vprintf_filtered): Update.
2529 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2530 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2531 disallow_ui_out_field>: New constants.
2532 (enum class field_kind): New.
2533 (struct base_field_s, struct signed_field_s): New.
2534 (signed_field): New function.
2535 (struct string_field_s): New.
2536 (string_field): New function.
2537 (struct styled_string_s): New.
2538 (styled_string): New function.
2539 (class ui_out) <message>: Add comment.
2540 <vmessage, call_do_message>: New methods.
2541 <do_message>: Add style parameter.
2542 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2543 methods.
2544 (ui_out::message): Rewrite.
2545 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2546 parameter.
2547 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2548 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2549 gdb_extensions parameter.
2550 (class format_piece): Add parameter to constructor.
2551 (n_int_args): New field.
2552 * gdbsupport/format.c (format_pieces::format_pieces): Add
2553 gdb_extensions parameter. Handle '*'.
2554 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2555 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2556 vfprintf_styled_no_gdbfmt.
2557 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2558 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2559 unfiltered output.
2560 * ui-style.h (struct ui_file_style) <ptr>: New method.
2561
0dfe5bfb
TT
25622019-10-01 Tom Tromey <tom@tromey.com>
2563
2564 * unittests/format_pieces-selftests.c: Update. Add final format.
2565 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2566 empty literal pieces.
2567
e43b10e1
TT
25682019-10-01 Tom Tromey <tom@tromey.com>
2569
2570 * ui-out.h (enum class ui_out_style_kind): Remove.
2571 (class ui_out) <field_string, field_stsream, do_field_string>:
2572 Change type of "style".
2573 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2574 (ui_out::field_string): Update.
2575 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2576 of "style".
2577 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2578 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2579 * stack.c (print_frame_arg, print_frame_info, print_frame):
2580 Update.
2581 * source.c (print_source_lines_base): Update.
2582 * solib.c (info_sharedlibrary_command): Update.
2583 * skip.c (info_skip_command): Update.
2584 * record-btrace.c (btrace_call_history_src_line)
2585 (btrace_call_history): Update.
2586 * python/py-framefilter.c (py_print_frame): Update.
2587 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2588 "style".
2589 * mi/mi-out.c (mi_ui_out::do_table_header)
2590 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2591 (mi_ui_out::do_field_string): Update.
2592 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2593 Update.
2594 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2595 "style".
2596 * cli-out.c (cli_ui_out::do_table_header)
2597 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2598 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2599 (cli_ui_out::do_field_fmt): Update.
2600 * breakpoint.c (print_breakpoint_location): Update.
2601 (update_static_tracepoint): Update.
2602
cd7c32c3
PW
26032019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2604
2605 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2606 conversion of gdb_datadir.
2607 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2608 remove not needed c_str ().
2609
8fe0f950
AT
26102019-09-30 Ali Tamur <tamur@google.com>
2611
2612 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2613 (dwarf2_string_attr): Likewise.
2614
5f48f8f3
AT
26152019-09-30 Ali Tamur <tamur@google.com>
2616
2617 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2618 (process_full_type_unit): Likewise.
2619 (dump_die_shallow): Likewise.
2620 (cu_debug_loc_section): Likewise.
2621
6fb08628
CB
26222019-09-28 Christian Biesinger <cbiesinger@google.com>
2623
2624 * minsyms.c (compare_minimal_symbols): Rename to...
2625 (minimal_symbol_is_less_than): ...this, and adjust to STL
2626 conventions (return bool, take arguments as references)
2627 (minimal_symbol_reader::install): Call std::sort instead
2628 of qsort.
2629
c7ee338a
CB
26302019-09-29 Christian Biesinger <cbiesinger@google.com>
2631
2632 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2633 hash and why.
2634 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2635 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2636
703a86c2
SM
26372019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2638
2639 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2640 * psympriv.h (add_psymbol_to_list): Move comment here and update
2641 it.
2642
0df0352a
TV
26432019-09-29 Tom de Vries <tdevries@suse.de>
2644
2645 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2646 Use $tmpdir/$(basename "$output_file").dwz instead of
2647 "${output_file}.dwz".
2648
ad75efa6
SM
26492019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 PR gdb/25045
2652 * hppa-linux-nat.c: Include gdbarch.h.
2653
ececd218
CB
26542019-09-26 Christian Biesinger <cbiesinger@google.com>
2655
2656 * blockframe.c (find_pc_partial_function): Change return type to bool.
2657 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2658 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2659 (stub_gnu_ifunc_resolve_name): Likewise.
2660 * symtab.c (compare_filenames_for_search): Likewise.
2661 (compare_glob_filenames_for_search): Likewise.
2662 (matching_obj_sections): Likewise.
2663 (symbol_matches_domain): Likewise.
2664 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2665 (find_line_pc): Change return type to bool.
2666 (find_line_pc_range): Likewise.
2667 (producer_is_realview): Likewise.
2668 * symtab.h (symbol_matches_domain): Likewise.
2669 (find_pc_partial_function): Likewise.
2670 (find_pc_line_pc_range): Likewise.
2671 (in_gnu_ifunc_stub): Likewise.
2672 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2673 (find_line_pc): Likewise.
2674 (find_line_pc_range): Likewise.
2675 (matching_obj_sections): Likewise.
2676 (find_line_symtab): Change out parameter to bool.
2677 (producer_is_realview): Change return type to bool.
2678 (compare_filenames_for_search): Likewise.
2679 (compare_glob_filenames_for_search): Likewise.
2680
27a900b8
TT
26812019-09-26 Tom Tromey <tom@tromey.com>
2682
2683 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2684 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2685 * gdb_usleep.h: Remove.
2686 * gdb_usleep.c: Remove.
2687 * utils.c: Don't include gdb_usleep.h.
2688
5d63b30a
TT
26892019-09-26 Tom Tromey <tromey@adacore.com>
2690
2691 * python/py-type.c (type_to_type_object): Call check_typedef
2692 for stub types.
2693
12904d37
TT
26942019-09-26 Tom Tromey <tom@tromey.com>
2695
2696 * utils.h (initialize_utils): Don't declare.
2697 * top.c (gdb_init): Don't call initialize_utils.
2698 * utils.c (initialize_utils): Remove. Move contents...
2699 (_initialize_utils): ... here.
2700
858f25f0
TT
27012019-09-25 Tom Tromey <tom@tromey.com>
2702
2703 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2704 * utils.h (make_hex_string): Don't declare.
2705 * utils.c (make_hex_string): Remove.
2706
3d435220
TV
27072019-09-24 Tom de Vries <tdevries@suse.de>
2708
2709 PR gdb/23815
2710 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2711 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2712
ddd44b70
DD
27132019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2714
2715 * NEWS: Mention new simulator port for PRU.
2716
f945dedf
CB
27172019-09-23 Christian Biesinger <cbiesinger@google.com>
2718
2719 * ada-exp.y (write_object_remaining): Update.
2720 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2721 and eliminate the static buffer.
2722 (ada_decode_symbol): Update.
2723 (ada_la_decode): Update.
2724 (ada_sniff_from_mangled_name): Update.
2725 (is_valid_name_for_wild_match): Update.
2726 (ada_lookup_name_info::matches): Update and simplify.
2727 (name_matches_regex): Update.
2728 (ada_add_global_exceptions): Update.
2729 * ada-lang.h (ada_decode): Update signature.
2730 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2731 * dwarf-index-write.c (debug_names::insert): Update.
2732
7ab78ccb
SM
27332019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2736 formatting.
2737
9252448b
SM
27382019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2739
2740 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2741 Change "nonzero" to "true" in documentation.
2742
626ca2c0
CB
27432019-09-20 Christian Biesinger <cbiesinger@google.com>
2744
2745 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2746 (_initialize_darwin_solib): Don't set
2747 darwin_so_ops.lookup_lib_global_symbol.
2748 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2749 set_gdbarch_iterate_over_objfiles_in_search_order.
2750 (elf_lookup_lib_symbol): Rename to...
2751 (svr4_iterate_over_objfiles_in_search_order): this, and update
2752 to iterate semantics.
2753 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2754 * solib.c (solib_global_lookup): Remove.
2755 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2756 (solib_global_lookup): Remove.
2757 * symtab.c (lookup_global_or_static_symbol): Remove call to
2758 solib_global_lookup.
2759
5a3a0d63
JB
27602019-09-20 Joel Brobecker <brobecker@adacore.com>
2761
2762 * NEWS: Move entries about default MI version now being
2763 version 3, and about the GDB/MI fix for multi-location
2764 breakpoints to the "since GDB 8.3" section.
2765
ffea1427
JB
27662019-09-20 Joel Brobecker <brobecker@adacore.com>
2767
2768 GDB 8.3.1 released.
2769
abf516c6
UW
27702019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2771
2772 * NEWS: Mention that Cell/B.E. debugging support was removed.
2773 * MAINTAINERS: Remove spu target.
2774
2775 * config/djgpp/fnchange.lst: Remove entries for removed files.
2776
2777 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2778 spu-multiarch.o, and spu-tdep.o.
2779 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2780 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2781 spu-multiarch.c, and spu-tdep.c.
2782 * spu-linux-nat.c: Remove file.
2783 * spu-multiarch.c: Remove file.
2784 * spu-tdep.c: Remove file.
2785 * spu-tdep.h: Remove file.
2786 * solib-spu.c: Remove file.
2787 * solib-spu.h: Remove file.
2788
2789 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2790 * configure.nat (spu-linux): Remove.
2791 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2792 solib-multiarch.o from gdb_target_obs.
2793 (spu*-*-*): Remove.
2794
2795 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2796 feature flag.
2797 (ppc_linux_no_features): Update.
2798 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2799 Cell/B.E. support.
2800 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2801 (tdesc_powerpc_cell64l): Likewise.
2802 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2803 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2804 Cell/B.E. support.
2805 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2806 Do not include "features/rs6000/powerpc-cell32l.c" or
2807 "features/rs6000/powerpc-cell64l.c".
2808 (ppc_linux_spu_section): Remove.
2809 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2810 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2811 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2812 (ppc_linux_spe_context_lookup): Remove.
2813 (ppc_linux_spe_context_inferior_created): Remove.
2814 (ppc_linux_spe_context_solib_loaded): Remove.
2815 (ppc_linux_spe_context_solib_unloaded): Remove.
2816 (ppc_linux_spe_context): Remove.
2817 (struct ppu2spu_cache): Remove.
2818 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2819 (struct ppu2spu_data): Remove.
2820 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2821 ppu2spu_unwind): Remove.
2822 (ppc_linux_init_abi): Remove Cell/B.E. support.
2823 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2824
2825 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2826 (rs6000/powerpc-cell64l-expedite): Likewise
2827 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2828 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2829 rs6000/powerpc-cell64l.xml.
2830 * features/rs6000/powerpc-cell32l.xml: Remove.
2831 * features/rs6000/powerpc-cell64l.xml: Likewise.
2832 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2833 * features/rs6000/powerpc-cell64l.c: Likewise.
2834 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2835 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2836 * regformats/reg-spu.dat: Remove.
2837
2838 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2839 * corelow.c (struct spuid_list): Remove.
2840 (add_to_spuid_list): Remove.
2841 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2842 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2843 (remote_protocol_features): Remove associated entries.
2844 (_initialize_remote): No longer initialize them.
2845 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2846 * linux-nat.c (SPUFS_MAGIC): Remove.
2847 (linux_proc_xfer_spu): Remove.
2848 (spu_enumerate_spu_ids): Remove.
2849 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2850 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2851 (linux_make_corefile_notes): No longer call it.
2852
2853 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2854 (cooked_write_test): Likewise.
2855
78e8cb91
TT
28562019-09-20 Tom Tromey <tom@tromey.com>
2857
2858 * NEWS: Mention case-sensitivity of TUI commands.
2859 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2860 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2861 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2862
f074b67e
TT
28632019-09-20 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-source.c (tui_source_window::set_contents): Use
2866 make_unique_xstrdup.
2867 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2868 make_unique_xstrdup.
2869
63c4bf19
TT
28702019-09-20 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui-data.c: Remove separator comments.
2873 * tui/tui-layout.c: Remove separator comments.
2874 * tui/tui-win.c: Remove separator comments.
2875 * tui/tui-wingeneral.c: Remove separator comments.
2876
43df9b2f
TT
28772019-09-20 Tom Tromey <tom@tromey.com>
2878
2879 * tui/tui.h (strcat_to_buf): Don't declare.
2880 * tui/tui.c (strcat_to_buf): Remove.
2881
7226433c
TT
28822019-09-20 Tom Tromey <tom@tromey.com>
2883
2884 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2885 from "fullname".
2886 * tui/tui-source.c (tui_source_window::set_contents)
2887 (tui_source_window::location_matches_p)
2888 (tui_source_window::maybe_update): Update.
2889
80df3337
TT
28902019-09-20 Tom Tromey <tom@tromey.com>
2891
2892 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2893 Update.
2894 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2895 prefix.
2896 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2897 (tui_data_window::line_from_reg_element_no)
2898 (tui_data_window::first_reg_element_no_inline)
2899 (tui_data_window::show_registers)
2900 (tui_data_window::show_register_group)
2901 (tui_data_window::display_registers_from)
2902 (tui_data_window::display_registers_from_line)
2903 (tui_data_window::first_data_item_displayed)
2904 (tui_data_window::delete_data_content_windows)
2905 (tui_data_window::erase_data_content)
2906 (tui_data_window::do_scroll_vertical)
2907 (tui_data_window::refresh_window)
2908 (tui_data_window::check_register_values): Update.
2909
9923f347
TT
29102019-09-20 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2913 (struct tui_locator_window) <full_name, proc_name>: Now
2914 std::string.
2915 * tui/tui-stack.c (tui_locator_window::make_status_line)
2916 (tui_locator_window::set_locator_fullname)
2917 (tui_locator_window::set_locator_info): Update.
2918 * tui/tui-source.c (tui_source_window::set_contents)
2919 (tui_source_window::showing_source_p): Update.
2920
b76251ab
TT
29212019-09-20 Tom Tromey <tom@tromey.com>
2922
2923 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2924 Don't call tui_locator_win_info_ptr.
2925
0891be08
TT
29262019-09-20 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2929
1b935acf
TT
29302019-09-20 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2933 height for locator.
2934 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2935 * tui/tui-layout.c (show_source_disasm_command, show_data)
2936 (show_source_or_disasm_and_command): Use 1 as height for locator.
2937
9abd8a65
TT
29382019-09-20 Tom Tromey <tom@tromey.com>
2939
2940 * tui/tui.c (tui_enable): Update.
2941 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2942 Update.
2943 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2944 Update.
2945 * tui/tui-data.c (win_resized): Now bool.
2946 (tui_win_resized): Return bool.
2947 (tui_set_win_resized_to): Accept a bool.
2948
b5457826
TT
29492019-09-20 Tom Tromey <tom@tromey.com>
2950
2951 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2952 Change type of "refresh_values_only".
2953 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2954 type of "refresh_values_only".
2955
6b915f7d
TT
29562019-09-20 Tom Tromey <tom@tromey.com>
2957
2958 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2959 std::string.
2960 (tui_disassemble): Add "pos" parameter.
2961 (tui_disasm_window::set_contents): Simplify.
2962
2ad52f6f
TT
29632019-09-20 Tom Tromey <tom@tromey.com>
2964
2965 * tui/tui-winsource.h (struct tui_source_window_base)
2966 <show_source_content>: Now private.
2967 * tui/tui-winsource.c
2968 (tui_source_window_base::show_source_content): Don't handle empty
2969 content case.
2970
b3b1bde6
TT
29712019-09-20 Tom Tromey <tom@tromey.com>
2972
2973 * tui/tui-layout.c (show_source_disasm_command)
2974 (show_source_or_disasm_and_command): Don't call
2975 show_source_content.
2976
71a25ed2
TT
29772019-09-20 Tom Tromey <tom@tromey.com>
2978
2979 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2980 Declare.
2981 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2982 from tui_make_status_line.
2983 (tui_locator_window::rerender): Update.
2984
f8532154
TT
29852019-09-20 Tom Tromey <tom@tromey.com>
2986
2987 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2988 (tui_locator_window::rerender): Update.
2989
2d81b349
TT
29902019-09-20 Tom Tromey <tom@tromey.com>
2991
2992 * tui/tui-winsource.h (struct tui_source_window_base)
2993 <~tui_source_window_base>: Don't declare.
2994 <fullname>: Remove.
2995 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2996 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2997 member.
2998 * tui/tui-source.c (tui_source_window::set_contents): Update.
2999 (tui_source_window::location_matches_p)
3000 (tui_source_window::maybe_update): Update.
3001
f14bec58
TT
30022019-09-20 Tom Tromey <tom@tromey.com>
3003
3004 * tui/tui-winsource.h (~tui_source_element): Remove.
3005 (tui_source_element): Update.
3006 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3007 * tui/tui-winsource.c (tui_show_source_line): Update.
3008 * tui/tui-source.c (tui_source_window::set_contents): Update.
3009 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3010
78d5933a
TT
30112019-09-20 Tom Tromey <tom@tromey.com>
3012
3013 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3014 declare.
3015 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3016 tui_clear_source_windows_detail.
3017 * tui/tui-winsource.h (struct tui_source_window_base)
3018 <clear_detail>: Don't declare.
3019 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3020 Remove.
3021 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3022
d4207696
TT
30232019-09-20 Tom Tromey <tromey@adacore.com>
3024
3025 PR ada/24919:
3026 * block.c (contained_in): Fix final return value.
3027
00f93c44
AM
30282019-09-20 Alan Modra <amodra@gmail.com>
3029
3030 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3031 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3032 (read_indirect_string_from_dwz): Use bfd accessor.
3033 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3034 * machoread.c (macho_symfile_read_all_oso): Likewise.
3035 * solib.c (solib_bfd_open): Likewise.
3036
e4153ae6
CB
30372019-09-19 Christian Biesinger <cbiesinger@google.com>
3038
3039 * eval.c: Move declaration of overload_resolution to...
3040 * value.h: ...here.
3041
c7ae7675
CB
30422019-09-19 Christian Biesinger <cbiesinger@google.com>
3043
3044 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3045 * arm-linux-tdep.c: Likewise.
3046 * arm-nbsd-nat.c: Likewise.
3047 * arm-tdep.h: Declare arm_apcs_32.
3048 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3049
e86f08d2
CB
30502019-09-19 Christian Biesinger <cbiesinger@google.com>
3051
3052 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3053 * dwarf2read.h: Declare dwarf_always_disassemble.
3054
f64e2f40
TV
30552019-09-19 Tom de Vries <tdevries@suse.de>
3056
3057 PR gdb/25009
3058 * source-cache.c (source_cache::ensure): Catch exception thrown during
3059 construction of the highlighter.
3060
fd361982
AM
30612019-09-18 Alan Modra <amodra@gmail.com>
3062
3063 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3064 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3065 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3066 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3067 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3068 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3069 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3070 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3071 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3072 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3073 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3074 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3075 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3076 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3077 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3078 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3079 * mi/mi-interp.c: Update throughout for bfd section macro and
3080 function changes.
3081 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3082 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3083
11061048
TT
30842019-09-18 Tom Tromey <tom@tromey.com>
3085
3086 * NEWS: Add entry.
3087 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3088 call rl_initialize.
3089 (tui_enable): Do not call rl_initialize.
3090
7a27b85f
CG
30912019-09-18 Christian Groessler <chris@groessler.org>
3092
3093 * alpha-linux-nat.c: Include gdbarch.h.
3094
f64eea3a
SM
30952019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3096
3097 * ui-file.c: Include cli/cli-style.h.
3098 (term_cli_styling): Remove cli_styling declaration.
3099
e6f7f6d1
AM
31002019-09-18 Alan Modra <amodra@gmail.com>
3101
3102 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3103 to bfd_asymbol_section.
3104
1d38e9d1
AM
31052019-09-18 Alan Modra <amodra@gmail.com>
3106
3107 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3108 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3109 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3110
90d92a63
AM
31112019-09-18 Alan Modra <amodra@gmail.com>
3112
3113 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3114 * spu-linux-nat.c (spu_bfd_open): Likewise.
3115
a3d181d2
CB
31162019-09-18 Christian Biesinger <cbiesinger@google.com>
3117
3118 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3119 to bool to match definition in dwarf2read.c.
3120
491144b5
CB
31212019-09-17 Christian Biesinger <cbiesinger@google.com>
3122
3123 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3124 (print_signatures): Likewise.
3125 (trust_pad_over_xvs): Likewise.
3126 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3127 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3128 * arm-linux-nat.c (arm_apcs_32): Likewise.
3129 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3130 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3131 * arm-tdep.c (arm_debug): Likewise.
3132 (arm_apcs_32): Likewise.
3133 * auto-load.c (debug_auto_load): Likewise.
3134 (auto_load_gdb_scripts): Likewise.
3135 (global_auto_load): Likewise.
3136 (auto_load_local_gdbinit): Likewise.
3137 (auto_load_local_gdbinit_loaded): Likewise.
3138 * auto-load.h (global_auto_load): Likewise.
3139 (auto_load_local_gdbinit): Likewise.
3140 (auto_load_local_gdbinit_loaded): Likewise.
3141 * breakpoint.c (disconnected_dprintf): Likewise.
3142 (breakpoint_proceeded): Likewise.
3143 (automatic_hardware_breakpoints): Likewise.
3144 (always_inserted_mode): Likewise.
3145 (target_exact_watchpoints): Likewise.
3146 (_initialize_breakpoint): Update.
3147 * breakpoint.h (target_exact_watchpoints): Change to bool.
3148 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3149 * cli/cli-cmds.c (trace_commands): Likewise.
3150 * cli/cli-cmds.h (trace_commands): Likewise.
3151 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3152 to bool*.
3153 * cli/cli-logging.c (logging_overwrite): Change to bool.
3154 (logging_redirect): Likewise.
3155 (debug_redirect): Likewise.
3156 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3157 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3158 to bool.
3159 <boolean_option_def>: Update.
3160 (struct flag_option_def): Change default type of Context to bool
3161 from int.
3162 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3163 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3164 (get_setshow_command_value_string): Likewise.
3165 * cli/cli-style.c (cli_styling): Change to bool.
3166 (source_styling): Likewise.
3167 * cli/cli-style.h (source_styling): Likewise.
3168 (cli_styling): Likewise.
3169 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3170 to bool.
3171 * command.h (var_types): Update comment.
3172 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3173 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3174 bool.
3175 (debug_compile_cplus_scopes): Likewise.
3176 * compile/compile-internal.h (compile_debug): Likewise.
3177 * compile/compile.c (compile_debug): Likewise.
3178 (struct compile_options) <raw>: Likewise.
3179 * cp-support.c (catch_demangler_crashes): Likewise.
3180 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3181 (usr_cmd_cris_dwarf2_cfi): Likewise.
3182 * csky-tdep.c (csky_debug): Likewise.
3183 * darwin-nat.c (enable_mach_exceptions): Likewise.
3184 * dcache.c (dcache_enabled_p): Likewise.
3185 * defs.h (info_verbose): Likewise.
3186 * demangle.c (demangle): Likewise.
3187 (asm_demangle): Likewise.
3188 * dwarf-index-cache.c (debug_index_cache): Likewise.
3189 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3190 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3191 * dwarf2read.c (check_physname): Likewise.
3192 (use_deprecated_index_sections): Likewise.
3193 (dwarf_always_disassemble): Likewise.
3194 * eval.c (overload_resolution): Likewise.
3195 * event-top.c (set_editing_cmd_var): Likewise.
3196 (exec_done_display_p): Likewise.
3197 * event-top.h (set_editing_cmd_var): Likewise.
3198 (exec_done_display_p): Likewise.
3199 * exec.c (write_files): Likewise.
3200 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3201 (debug_fbsd_nat): Likewise.
3202 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3203 Likewise.
3204 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3205 <backtrace_past_entry> Likewise.
3206 * gdb-demangle.h (demangle): Likewise.
3207 (asm_demangle): Likewise.
3208 * gdb_bfd.c (bfd_sharing): Likewise.
3209 * gdbcore.h (write_files): Likewise.
3210 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3211 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3212 * gdbthread.h (print_thread_events): Likewise.
3213 * gdbtypes.c (opaque_type_resolution): Likewise.
3214 (strict_type_checking): Likewise.
3215 * gnu-nat.c (gnu_debug_flag): Likewise.
3216 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3217 * guile/scm-param.c (pascm_variable): Add boolval.
3218 (add_setshow_generic): Update.
3219 (pascm_param_value): Update.
3220 (pascm_set_param_value_x): Update.
3221 * hppa-tdep.c (hppa_debug): Change to bool..
3222 * infcall.c (may_call_functions_p): Likewise.
3223 (coerce_float_to_double_p): Likewise.
3224 (unwind_on_signal_p): Likewise.
3225 (unwind_on_terminating_exception_p): Likewise.
3226 * infcmd.c (startup_with_shell): Likewise.
3227 * inferior.c (print_inferior_events): Likewise.
3228 * inferior.h (startup_with_shell): Likewise.
3229 (print_inferior_events): Likewise.
3230 * infrun.c (step_stop_if_no_debug): Likewise.
3231 (detach_fork): Likewise.
3232 (debug_displaced): Likewise.
3233 (disable_randomization): Likewise.
3234 (non_stop): Likewise.
3235 (non_stop_1): Likewise.
3236 (observer_mode): Likewise.
3237 (observer_mode_1): Likewise.
3238 (set_observer_mode): Update.
3239 (sched_multi): Change to bool.
3240 * infrun.h (debug_displaced): Likewise.
3241 (sched_multi): Likewise.
3242 (step_stop_if_no_debug): Likewise.
3243 (non_stop): Likewise.
3244 (disable_randomization): Likewise.
3245 * linux-tdep.c (use_coredump_filter): Likewise.
3246 (dump_excluded_mappings): Likewise.
3247 * linux-thread-db.c (auto_load_thread_db): Likewise.
3248 (check_thread_db_on_load): Likewise.
3249 * main.c (captured_main_1): Update.
3250 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3251 xx2_opt, boolean_opt>: Change to bool.
3252 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3253 * maint.c (maintenance_profile_p): Likewise.
3254 (per_command_time): Likewise.
3255 (per_command_space): Likewise.
3256 (per_command_symtab): Likewise.
3257 * memattr.c (inaccessible_by_default): Likewise.
3258 * mi/mi-main.c (mi_async): Likewise.
3259 (mi_async_1): Likewise.
3260 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3261 * nat/fork-inferior.h (startup_with_shell): Likewise.
3262 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3263 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3264 * nios2-tdep.c (nios2_debug): Likewise.
3265 * or1k-tdep.c (or1k_debug): Likewise.
3266 * parse.c (parser_debug): Likewise.
3267 * parser-defs.h (parser_debug): Likewise.
3268 * printcmd.c (print_symbol_filename): Likewise.
3269 * proc-api.c (procfs_trace): Likewise.
3270 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3271 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3272 (set_parameter_value): Update.
3273 (add_setshow_generic): Update.
3274 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3275 to bool*.
3276 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3277 int*.
3278 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3279 * record-btrace.c (record_btrace_target::store_registers): Update.
3280 * record-full.c (record_full_memory_query): Change to bool.
3281 (record_full_stop_at_limit): Likewise.
3282 * record-full.h (record_full_memory_query): Likewise.
3283 * remote-notif.c (notif_debug): Likewise.
3284 * remote-notif.h (notif_debug): Likewise.
3285 * remote.c (use_range_stepping): Likewise.
3286 (interrupt_on_connect): Likewise.
3287 (remote_break): Likewise.
3288 * ser-tcp.c (tcp_auto_retry): Likewise.
3289 * ser-unix.c (serial_hwflow): Likewise.
3290 * skip.c (debug_skip): Likewise.
3291 * solib-aix.c (solib_aix_debug): Likewise.
3292 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3293 (spu_auto_flush_cache_p): Likewise.
3294 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3295 Likewise.
3296 (struct info_print_options) <quiet>: Likewise.
3297 * symfile-debug.c (debug_symfile): Likewise.
3298 * symfile.c (auto_solib_add): Likewise.
3299 (separate_debug_file_debug): Likewise.
3300 * symfile.h (auto_solib_add): Likewise.
3301 (separate_debug_file_debug): Likewise.
3302 * symtab.c (basenames_may_differ): Likewise.
3303 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3304 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3305 (struct info_types_options) <quiet>: Likewise.
3306 * symtab.h (demangle): Likewise.
3307 (basenames_may_differ): Likewise.
3308 * target-dcache.c (stack_cache_enabled_1): Likewise.
3309 (code_cache_enabled_1): Likewise.
3310 * target.c (trust_readonly): Likewise.
3311 (may_write_registers): Likewise.
3312 (may_write_memory): Likewise.
3313 (may_insert_breakpoints): Likewise.
3314 (may_insert_tracepoints): Likewise.
3315 (may_insert_fast_tracepoints): Likewise.
3316 (may_stop): Likewise.
3317 (auto_connect_native_target): Likewise.
3318 (target_stop_and_wait): Update.
3319 (target_async_permitted): Change to bool.
3320 (target_async_permitted_1): Likewise.
3321 (may_write_registers_1): Likewise.
3322 (may_write_memory_1): Likewise.
3323 (may_insert_breakpoints_1): Likewise.
3324 (may_insert_tracepoints_1): Likewise.
3325 (may_insert_fast_tracepoints_1): Likewise.
3326 (may_stop_1): Likewise.
3327 * target.h (target_async_permitted): Likewise.
3328 (may_write_registers): Likewise.
3329 (may_write_memory): Likewise.
3330 (may_insert_breakpoints): Likewise.
3331 (may_insert_tracepoints): Likewise.
3332 (may_insert_fast_tracepoints): Likewise.
3333 (may_stop): Likewise.
3334 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3335 (make_thread_apply_all_options_def_group): Change argument from int*
3336 to bool*.
3337 (thread_apply_all_command): Update.
3338 (print_thread_events): Change to bool.
3339 * top.c (confirm): Likewise.
3340 (command_editing_p): Likewise.
3341 (history_expansion_p): Likewise.
3342 (write_history_p): Likewise.
3343 (info_verbose): Likewise.
3344 * top.h (confirm): Likewise.
3345 (history_expansion_p): Likewise.
3346 * tracepoint.c (disconnected_tracing): Likewise.
3347 (circular_trace_buffer): Likewise.
3348 * typeprint.c (print_methods): Likewise.
3349 (print_typedefs): Likewise.
3350 * utils.c (debug_timestamp): Likewise.
3351 (sevenbit_strings): Likewise.
3352 (pagination_enabled): Likewise.
3353 * utils.h (sevenbit_strings): Likewise.
3354 (pagination_enabled): Likewise.
3355 * valops.c (overload_resolution): Likewise.
3356 * valprint.h (struct value_print_options) <prettyformat_arrays,
3357 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3358 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3359 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3360 Likewise.
3361 * windows-nat.c (new_console): Likewise.
3362 (cygwin_exceptions): Likewise.
3363 (new_group): Likewise.
3364 (debug_exec): Likewise.
3365 (debug_events): Likewise.
3366 (debug_memory): Likewise.
3367 (debug_exceptions): Likewise.
3368 (useshell): Likewise.
3369 * windows-tdep.c (maint_display_all_tib): Likewise.
3370 * xml-support.c (debug_xml): Likewise.
3371
f1b620e9
MG
33722019-09-17 Mike Gulick <mgulick@mathworks.com>
3373
3374 * source.c (prepare_path_for_appending): New function.
3375 (openp): Make use of new function.
3376 (find_and_open_source): Search for the compilation directory and
3377 source file as a relative path beneath the directory search path.
3378
67f3ed6a
AB
33792019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 * source-cache.c (source_cache::get_line_charpos): Catch
3382 exceptions and return false, this matches the behaviour documented
3383 in the header file.
3384
74332189
JB
33852019-09-17 Joel Brobecker <brobecker@adacore.com>
3386
3387 * ada-tasks.c (info_task): Remove quoting of the task's name.
3388
f2f24aa9
CB
33892019-09-16 Christian Biesinger <cbiesinger@google.com>
3390
3391 * symfile.c (auto_solib_add): Replace comment with a reference
3392 to the header file.
3393
6a062a93
CB
33942019-09-14 Christian Biesinger <cbiesinger@google.com>
3395
3396 * NEWS: Mention that gdb can now be compiled with Python 3
3397 on Windows.
3398
ec6c8338
AB
33992019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * maint.c (maint_print_section_data::maint_print_section_data):
3402 Force use of 'float log10 (float)' by casting the argument to
3403 float.
3404
aa17805f
AB
34052019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * maint.c: Add 'cmath' include.
3408 (struct maint_print_section_data): New structure.
3409 (print_section_index): New function.
3410 (print_bfd_section_info): Add header comment, small whitespace
3411 cleanup, and update to call new print_section_index function.
3412 (print_objfile_section_info): Likewise.
3413 (maint_obj_section_from_bfd_section): New function.
3414 (print_bfd_section_info_maybe_relocated): New function.
3415 (maintenance_info_sections): Add header comment, always use
3416 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3417
3dd9bb46
AB
34182019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3421 inner scope, add check that the objfile has psymtabs before
3422 checking psymtabs_addrmap.
3423 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3424
4993045d
PW
34252019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3426
3427 * NEWS: Announce that Ada task names are now shown at more places,
3428 and between quotes (except in info task output).
3429 * gdb/ada-tasks.c (task_to_str): New function.
3430 (display_current_task_id): Call task_to_str.
3431 (task_command_1): Likewise.
3432 (print_ada_task_info): In non-mi mode, Properly align headers and data
3433 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3434
7a289707
RO
34352019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3436
3437 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3438 prstatus.pr_lwp.pr_info instead of making it up.
3439
f2aec7f6
CB
34402019-09-11 Christian Biesinger <cbiesinger@google.com>
3441
3442 * auto-load.c (auto_load_expand_dir_vars): Update.
3443 * defs.h (gdb_datadir): Change to std::string.
3444 (python_libdir): Likewise.
3445 (relocate_gdb_directory): Change return type to std::string.
3446 * guile/guile.c (gdbscm_data_directory): Update.
3447 (initialize_scheme_side): Update.
3448 * jit.c (jit_reader_dir): Change to std::string.
3449 (jit_reader_load_command): Update.
3450 * main.c (gdb_datadir): Change to std::string.
3451 (python_libdir): Likewise.
3452 (set_gdb_data_directory): Update.
3453 (relocate_path): Change to return std::string.
3454 (relocate_gdb_directory): Change to return std::string.
3455 (relocate_gdbinit_path_maybe_in_datadir): Update.
3456 (captured_main_1): Update.
3457 * python/python.c (do_start_initialization): Update.
3458 * top.c (show_gdb_datadir): Update.
3459 * xml-syscall.c (xml_init_syscalls_info): Update.
3460 (init_syscalls_info): Update.
3461
9224a013
CB
34622019-09-11 Christian Biesinger <cbiesinger@google.com>
3463
3464 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3465 out of get_init_files.
3466 (get_init_files): Update.
3467
f48cd836
CB
34682019-09-11 Christian Biesinger <cbiesinger@google.com>
3469
3470 * main.c (get_init_files): Change to use std::string.
3471 (captured_main_1): Update.
3472 (print_gdb_help): Update.
3473
9cab7ecd
AT
34742019-09-11 Ali Tamur <tamur@google.com>
3475
3476 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3477 implementation.
3478
67547d89
CB
34792019-09-11 Christian Biesinger <cbiesinger@google.com>
3480
3481 * dbxread.c (read_dbx_symtab): Update.
3482 * dwarf2read.c (load_partial_dies): Update.
3483 * mdebugread.c (parse_partial_symbols): Update.
3484 (handle_psymbol_enumerators): Update.
3485 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3486 * psymtab.c (add_psymbol_to_bcache): Likewise.
3487 (add_psymbol_to_list): Likewise.
3488 * symtab.c (symbol_set_names): Likewise.
3489 * symtab.h (symbol_set_names): Likewise.
3490 * xcoffread.c (scan_xcoff_symtab): Update.
3491
64b2d4a0
TT
34922019-09-11 Tom Tromey <tom@tromey.com>
3493
3494 * symfile-mem.c (symbol_file_add_from_memory): Use
3495 bfd_set_filename.
3496 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3497 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3498
3b00ef10
TT
34992019-09-10 Tom Tromey <tromey@adacore.com>
3500
3501 * dwarf-index-write.c (write_psymbols): Extend error message.
3502 (debug_names::insert): Add Ada code.
3503 (debug_names::write_psymbols): Remove Ada check.
3504 (debug_names) <m_string_obstack>: New member.
3505 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3506 (gdb_index_symbol_name_matcher::matches): Remove.
3507 (mapped_index_base::find_name_components_bounds): Add "lang"
3508 parameter.
3509 (mapped_index_base::build_name_components): Also split names
3510 according to Ada syntax.
3511 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3512 type of "match_callback".
3513 (check_match, check_find_bounds_finds)
3514 (dw2_expand_symtabs_matching): Update.
3515 (dw2_debug_names_iterator): Add new constructor.
3516 (dw2_debug_names_map_matching_symbols): New function.
3517 (dw2_debug_names_expand_symtabs_matching): Update.
3518 (dwarf2_debug_names_functions): Use
3519 dw2_debug_names_map_matching_symbols.
3520
aa391654
TT
35212019-09-10 Tom Tromey <tromey@adacore.com>
3522
3523 * dwarf2read.c (dw2_get_file_names_reader): Add the
3524 CU's file name to the results.
3525
b054970d
TT
35262019-09-10 Tom Tromey <tromey@adacore.com>
3527
3528 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3529 map_matching_symbols. Update.
3530 * dwarf2read.c (dw2_map_matching_symbols): Update.
3531 * psymtab.c (match_partial_symbol): Change type; update.
3532 (psym_map_matching_symbols): Likewise.
3533 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3534 type; update.
3535 * symfile.h (struct quick_symbol_functions)
3536 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3537 Remove "match".
3538
6a3dbf1b
TT
35392019-09-10 Tom Tromey <tromey@adacore.com>
3540
3541 * psymtab.c (map_block): Remove.
3542 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3543 * symtab.c (iterate_over_symbols_terminated): New function.
3544 * symtab.c (iterate_over_symbols_terminated): Declare.
3545
6969f124
TT
35462019-09-10 Tom Tromey <tromey@adacore.com>
3547
3548 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3549 * language.h (struct language_defn) <la_iterate_over_symbols>:
3550 Return bool.
3551 * symtab.c (iterate_over_symbols): Return bool.
3552 * symtab.h (iterate_over_symbols): Return bool.
3553
199b4314
TT
35542019-09-10 Tom Tromey <tromey@adacore.com>
3555
3556 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3557 (add_nonlocal_symbols): Update.
3558 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3559 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3560 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3561 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3562 Change type of "callback". Remove "data".
3563
a084a2a6
AT
3564
35652019-09-09 Ali Tamur <tamur@google.com>
3566
3567 * dwarf2read.c (comp_unit_head): Update comment.
3568 (dwarf2_dwo_name): New function declaration.
3569 (dwarf_unit_type_name): New function declaration.
3570 (read_comp_unit_head): Add support for new compilation units,
3571 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3572 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3573 (currently named as "signature") in their header. Also clarify error
3574 messages.
3575 (lookup_dwo_id): New function. Returns the dwo id of the given
3576 compile unit.
3577 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3578 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3579 functions.
3580 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3581 (dwarf2_dwo_name): Get the dwo name if present.
3582 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3583 purposes.
3584
25a2915e
TT
35852019-09-09 Tom Tromey <tom@tromey.com>
3586
3587 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3588
e4df0874
PW
35892019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3590
3591 * python/python.c (do_start_initialization): Make progname_copy static,
3592 to avoid a leak report.
3593
8634b462
TT
35942019-09-08 Tom Tromey <tom@tromey.com>
3595
3596 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3597
c7f839cb
SM
35982019-09-07 Simon Marchi <simon.marchi@efficios.com>
3599
3600 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3601 Change type to gdb::optional<block_enum>.
3602 (dw2_symtab_iter_init): Change block_index parameter type
3603 to gdb::optional<block_enum>.
3604 (dw2_lookup_symbol): Change block_index parameter
3605 type to block_enum.c
3606 (dw2_debug_names_lookup_symbol): Likewise.
3607 * psymtab.c (psym_lookup_symbol): Likewise.
3608 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3609 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3610 Likewise.
3611
ead0e69a
CB
36122019-09-06 Christian Biesinger <cbiesinger@google.com>
3613
3614 * defs.h (relocate_gdb_directory): Change int to bool in
3615 signature and rename flag to relocatable.
3616 * main.c (relocate_path): Likewise.
3617 (relocate_gdb_directory): Likewise.
3618
b16c44de
AM
36192019-09-06 Alan Modra <amodra@gmail.com>
3620
3621 * coffread.c (coff_symfile_read): Constify filename variable.
3622 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3623 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3624 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3625 * solib.c (reload_shared_libraries_1): Likewise.
3626 * symfile.c (reread_symbols): Likewise.
3627 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3628 * solib-darwin.c (darwin_bfd_open): Likewise.
3629 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3630
06ff036e
AB
36312019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3632
3633 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3634 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3635
4e962e74
TT
36362019-09-03 Tom Tromey <tromey@adacore.com>
3637
3638 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3639 types.
3640 (has_negatives): Unbias a range type bound.
3641 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3642 * gdbtypes.c (operator==): Handle new field.
3643 (create_range_type): Add "bias" parameter.
3644 (create_static_range_type, resolve_dynamic_range): Update.
3645 * gdbtypes.h (struct range_bounds) <bias>: New member.
3646 (create_range_type): Add bias parameter.
3647 * printcmd.c (print_scalar_formatted): Unbias range types.
3648 * value.c (unpack_long): Unbias range types.
3649 (pack_long): Bias range types.
3650
d90b8f26
AH
36512019-09-02 Alan Hayward <alan.hayward@arm.com>
3652
3653 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3654 probe arguments.
3655
fe01123e
AH
36562019-09-02 Alan Hayward <alan.hayward@arm.com>
3657
3658 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3659 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3660 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3661 (compile_probe_arg): Likewise.
3662 * probe.h (get_argument_count): Likewise.
3663 * solib-svr4.c (solib_event_probe_action): Likewise.
3664 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3665
e661ef01
AH
36662019-09-02 Alan Hayward <alan.hayward@arm.com>
3667
3668 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3669 code to here...
3670 (svr4_create_solib_event_breakpoints): ...from here.
3671
47a536d9
SDJ
36722019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3673
3674 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3675 suffix from warning message.
3676
d6a00eba
TT
36772019-08-30 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-winsource.h (struct tui_source_window_base)
3680 <refresh_all>: Don't declare.
3681 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3682 Remove.
3683 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3684 tui_show_locator_content.
3685 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3686 declare.
3687 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3688 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3689 declare.
3690
55b2657b
TT
36912019-08-30 Tom Tromey <tom@tromey.com>
3692
3693 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3694
12a8555a
TT
36952019-08-30 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3698 Remove unnecessary forward declarations.
3699
900ac242
TT
37002019-08-30 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3703 rerender.
3704 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3705 tui_show_locator_content.
3706
99ab33fb
TT
37072019-08-30 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3710 (tui_locator_window::rerender): Rewrite using body of previous
3711 tui_show_locator_content.
3712
e594a5d1
TT
37132019-08-30 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3716 set_locator_fullname>: New methods.
3717 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3718 Rename from tui_set_locator_fullname.
3719 (tui_locator_window::set_locator_info): Rename from
3720 tui_set_locator_info. Return bool.
3721 (tui_update_locator_fullname, tui_show_frame_info): Update.
3722
715bb467
TT
37232019-08-30 Tom Tromey <tom@tromey.com>
3724
3725 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3726
772f3f03
TT
37272019-08-30 Tom Tromey <tom@tromey.com>
3728
3729 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3730 call touchwin.
3731
108e13ab
TT
37322019-08-30 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-wingeneral.c (box_win): Assume win_info and
3735 win_info->handle cannot be NULL.
3736
cdaa6eb4
TT
37372019-08-30 Tom Tromey <tom@tromey.com>
3738
3739 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3740 refresh_window>: Declare.
3741 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3742 resize.
3743 (tui_data_item_window::rerender): Rename from
3744 tui_display_register.
3745 (tui_data_item_window::refresh_window): New method.
3746 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3747 no-op.
3748
89df7f90
TT
37492019-08-30 Tom Tromey <tom@tromey.com>
3750
3751 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3752 regs_column_count, current_group>: Move later. Now private.
3753 <get_current_group>: New method.
3754 * tui/tui-regs.c (tui_reg_command): Update.
3755 * tui/tui-layout.c (tui_set_layout): Update.
3756
1bf2866a
TT
37572019-08-30 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3760 (tui_data_window::rerender): Don't call
3761 check_and_display_highlight_if_needed.
3762 (tui_data_window::refresh_all): Remove call to
3763 erase_data_content.
3764
0670413d
TT
37652019-08-30 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3768 (tui_data_window::display_registers_from)
3769 (tui_data_window::display_reg_element_at_line)
3770 (tui_data_window::display_registers_from_line): Remove checks of
3771 "empty".
3772
18bb55c7
TT
37732019-08-30 Tom Tromey <tom@tromey.com>
3774
3775 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3776 Don't declare.
3777 * tui/tui-regs.c (tui_data_window::show_registers): Call
3778 rerender.
3779 (tui_data_window::rerender): Rename from display_all_data.
3780 (tui_data_window::rerender): Remove old implementation.
3781
1f6d2f10
TT
37822019-08-30 Tom Tromey <tom@tromey.com>
3783
3784 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3785 text.
3786 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3787
16d01f9c
BW
37882019-08-29 Bernhard Wodok <barto@gmx.net>
3789 Sergio Durigan Junior <sergiodj@redhat.com>
3790
3791 PR win32/24284
3792 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3793
d8f27c60
AB
37942019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3795
3796 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3797 when searching for types.
3798
1f20c35e
AB
37992019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * f-lang.c (f_language_defn): Use f_print_typedef.
3802 * f-lang.h (f_print_typedef): Declare.
3803 * f-typeprint.c (f_print_typedef): Define.
3804
550105b7
CB
38052019-08-27 Christian Biesinger <cbiesinger@google.com>
3806
3807 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3808
4acfdd20
AB
38092019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * cli/cli-utils.c (info_print_options_defs): Delete.
3812 (make_info_print_options_def_group): Delete.
3813 (extract_info_print_options): Delete.
3814 (info_print_command_completer): Delete.
3815 (info_print_args_help): Add extra parameter, and optionally
3816 include text about -n flag.
3817 * cli/cli-utils.h (struct info_print_options): Delete.
3818 (extract_info_print_options): Delete declaration.
3819 (info_print_command_completer): Delete declaration.
3820 (info_print_args_help): Add extra parameter, extend header
3821 comment.
3822 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3823 search_symbols.
3824 * stack.c (struct info_print_options): New type.
3825 (info_print_options_defs): New file scoped variable.
3826 (make_info_print_options_def_group): New static function.
3827 (info_print_command_completer): New static function.
3828 (info_locals_command): Update to use new local functions.
3829 (info_args_command): Likewise.
3830 (_initialize_stack): Add extra parameter to calls to
3831 info_print_args_help.
3832 * symtab.c (search_symbols): Add extra parameter, use this to
3833 possibly excluse non-debug symbols.
3834 (symtab_symbol_info): Add extra parameter, which is passed on to
3835 search_symbols.
3836 (struct info_print_options): New type.
3837 (info_print_options_defs): New file scoped variable.
3838 (make_info_print_options_def_group): New static function.
3839 (info_print_command_completer): New static function.
3840 (info_variables_command): Update to use local functions, and pass
3841 extra parameter through to symtab_symbol_info.
3842 (info_functions_command): Likewise.
3843 (info_types_command): Pass additional argument through to
3844 symtab_symbol_info.
3845 (rbreak_command): Pass extra argument to search_symbols.
3846 (_initialize_symtab): Add extra arguments for calls to
3847 info_print_args_help, and update help text for 'info variables',
3848 'whereis', and 'info functions' commands.
3849 * symtab.h (search_symbols): Add extra argument to declaration.
3850 * NEWS: Mention new flags.
3851
9aa55206
CB
38522019-08-26 Christian Biesinger <cbiesinger@google.com>
3853
3854 * symtab.c (lookup_static_symbol): Call the new function (and move
3855 it down to be next to lookup_global_symbol).
3856 (struct global_sym_lookup_data): Add block_enum member and rename to...
3857 (struct global_or_static_sym_lookup_data): ...this.
3858 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3859 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3860 (lookup_symbol_global_or_static_iterator_cb): ...this.
3861 (lookup_global_or_static_symbol): New function.
3862 (lookup_global_symbol): Call new function.
3863
5c31b358
TV
38642019-08-26 Tom de Vries <tdevries@suse.de>
3865
3866 PR c++/24852
3867 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3868 when pc_probe.prob == NULL.
3869
23c13d42
SM
38702019-08-25 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3873 variable symbol_linkage to symbol_linkage_.
3874
beadd3e8
SM
38752019-08-25 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3878 represent whether the symbol is static, dynamic, or we don't
3879 know.
3880
e3ec872f
YS
38812019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3882
3883 * gdb/rx-tdep.c (rx_register_names): New.
3884 (rx_register_name): Delete.
3885 (rx_psw_type): Delete.
3886 (rx_fpsw_type): Delete.
3887 (rx_register_type): Delete.
3888 (rx_gdbarch_init): Convert target-descriptions.
3889 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3890 * gdb/features/Makefile: Add rx.xml.
3891 * gdb/features/rx.xml: New.
3892 * gdb/features/rx.c: Generated.
3893 * gdb/NEWS: Mention target description support.
3894
d0509ba4
CB
38952019-08-22 Christian Biesinger <cbiesinger@google.com>
3896
3897 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3898 *slot_ptr.
3899
2d41fa11
SDJ
39002019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3901
3902 * configure.ac: Don't check for 'dlfcn.h' (moved to
3903 gdbsupport/common.m4).
3904 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3905 'gdbsupport/'.
3906 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3907 * compile/compile-c-support.c: Include
3908 'gdbsupport/gdb-dlfcn.h'.
3909 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3910 * gdb-dlfcn.c: Move to...
3911 * gdbsupport/gdb-dlfcn.c: ... here.
3912 * gdb-dlfcn.h: Move to...
3913 * gdbsupport/gdb-dlfcn.h: ... here.
3914
de8af808
SL
39152019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3916
3917 * nios2-tdep.c (struct reg_value): Improve comments. Make
3918 the offset field signed.
3919
27204489
CB
39202019-08-22 Christian Biesinger <cbiesinger@google.com>
3921
3922 * python/lib/gdb/__init__.py (_execute_file): New function.
3923 * python/python.c (python_run_simple_file): Call gdb._execute_file
3924 on Windows.
3925
43771869
AB
39262019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3927
3928 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3929 all uses as this was never set to anything but a zero value.
3930
26c957f1
PA
39312019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3932
3933 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3934
c07aae6e
CB
39352019-08-21 Christian Biesinger <cbiesinger@google.com>
3936
3937 * tui/tui-data.h (tui_gen_win_info): Add an =default
3938 move constructor, required by some GCC versions.
3939
3960cb7a
JF
39402019-08-21 Jinke Fan <fanjinke51@yeah.net>
3941
3942 * go32-nat.c (go32_sysinfo): Add hygon_p.
3943
04c72a68
TT
39442019-08-20 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3947 line_from_reg_element_no, first_reg_element_no_inline,
3948 display_all_data, delete_data_content_windows,
3949 erase_data_content>: Now private.
3950
072272ce
TT
39512019-08-20 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3954 (tui_unhighlight_win, tui_highlight_win)
3955 (tui_win_info::make_window): Update.
3956 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3957
973961bd
TT
39582019-08-20 Tom Tromey <tom@tromey.com>
3959
3960 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3961 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3962 (MAX_PID_WIDTH): Move to tui-stack.c.
3963 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3964 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3965 (MAX_PID_WIDTH): Move from tui-data.h.
3966
ab0e1f1a
TT
39672019-08-20 Tom Tromey <tom@tromey.com>
3968
3969 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3970 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3971 (box_win): Update.
3972 (tui_gen_win_info::make_window): Rename from tui_make_window.
3973 (tui_win_info::make_window): New method.
3974 (tui_gen_win_info::make_visible): Update.
3975 * tui/tui-source.c (tui_source_window::set_contents): Update.
3976 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3977 (tui_data_window::display_registers_from): Update.
3978 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3979 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3980 Declare.
3981 <can_box>: Remove.
3982 <title>: Remove.
3983 (struct tui_win_info) <make_window>: Declare.
3984 <can_box>: Now virtual.
3985 <title>: New member.
3986 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3987 * tui/tui-command.c (tui_cmd_window::resize): Update.
3988
100c2bf3
TT
39892019-08-20 Tom Tromey <tom@tromey.com>
3990
3991 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3992 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3993 (tui_data_window::check_register_values): Update.
3994
fa4dc567
TT
39952019-08-20 Tom Tromey <tom@tromey.com>
3996
3997 * tui/tui-regs.h (struct tui_data_window): Use
3998 DISABLE_COPY_AND_ASSIGN.
3999 <regs_content>: Change type, removing unique_ptr.
4000 <tui_data_window>: Add move constructor.
4001 * tui/tui-regs.c (tui_data_window::show_registers)
4002 (tui_data_window::show_register_group)
4003 (tui_data_window::display_registers_from)
4004 (tui_data_window::display_registers_from)
4005 (tui_data_window::first_data_item_displayed)
4006 (tui_data_window::delete_data_content_windows)
4007 (tui_data_window::rerender, tui_data_window::refresh_window)
4008 (tui_data_window::check_register_values): Update.
4009
ca02d7c8
TT
40102019-08-20 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4013 show_register_group>: Declare.
4014 (tui_show_register_group): Don't declare.
4015 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4016 tui_show_registers.
4017 (tui_data_window::show_register_group): Rename from
4018 tui_show_register_group.
4019 (tui_data_window::check_register_values, tui_reg_command):
4020 Update.
4021 * tui/tui-layout.c (tui_set_layout): Update.
4022
63356bfd
TT
40232019-08-20 Tom Tromey <tom@tromey.com>
4024
4025 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4026 Declare.
4027 (tui_check_register_values): Don't declare.
4028 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4029 from tui_check_register_values.
4030 * tui/tui-hooks.c (tui_register_changed): Update.
4031
42cc14a7
TT
40322019-08-20 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-regs.c (tui_reg_layout): Move later.
4035 (tui_show_registers): Don't enable TUI mode or change layout.
4036
b9ad3686
TT
40372019-08-20 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui-regs.h (struct tui_data_item_window)
4040 <~tui_data_item_window>: Remove.
4041 <content>: Now a unique_xmalloc_ptr.
4042 * tui/tui-regs.c (tui_register_format): Return a
4043 unique_xmalloc_ptr.
4044 (tui_get_register): Update.
4045 (~tui_data_item_window): Remove.
4046 (tui_data_window::display_registers_from, tui_display_register):
4047 Update.
4048 * tui/tui-io.h (tui_expand_tabs): Update.
4049 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4050 Remove "col" parameter.
4051
8e114aab
TT
40522019-08-20 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4055 field.
4056 * tui/tui-regs.c (~tui_data_item_window): Update.
4057
1a4f81dd
TT
40582019-08-20 Tom Tromey <tom@tromey.com>
4059
4060 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4061 earlier.
4062
0f8d8876
TT
40632019-08-20 Tom Tromey <tom@tromey.com>
4064
4065 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4066
605dc2c2
TT
40672019-08-20 Tom Tromey <tom@tromey.com>
4068
4069 * tui/tui-source.h (struct tui_source_window): Update.
4070 * tui/tui-regs.c (tui_show_registers): Update.
4071 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4072 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4073 (NO_REGS_STRING): Remove defines.
4074
aedbe3bb
CM
40752019-08-20 Conrad Meyer <cem@FreeBSD.org>
4076
4077 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4078 unnecessary thread walk if remote doesn't support the packet.
4079
7ce8f214
TT
40802019-08-19 Tom Tromey <tromey@adacore.com>
4081
4082 * python/py-value.c (value_has_field): Fix indentation.
4083
f21c2bd7
TT
40842019-08-19 Tom Tromey <tromey@adacore.com>
4085
4086 * printcmd.c (do_one_display, info_display_command): Update.
4087 * block.h (contained_in): Return bool. Add allow_nested
4088 parameter.
4089 * block.c (contained_in): Return bool. Add allow_nested
4090 parameter.
4091
d806ea2d
TT
40922019-08-19 Tom Tromey <tom@tromey.com>
4093
4094 * configure: Rebuild.
4095 * configure.ac: Disallow the combination of -static-libstdc++ and
4096 source highlight.
4097 * source-cache.c (get_language_name): Handle rust.
4098 (source_cache::get_source_lines): Ignore highlighting exceptions.
4099
398fdd60
TT
41002019-08-16 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4103 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4104 (struct tui_source_window_base) <make_visible, refresh_window,
4105 resize>: Remove methods.
4106 <execution_info>: Remove field.
4107 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4108 (tui_show_source_line, tui_source_window_base)
4109 (~tui_source_window_base): Update.
4110 (tui_source_window_base::resize)
4111 (tui_source_window_base::make_visible)
4112 (tui_source_window_base::refresh_window): Remove.
4113 (tui_source_window_base::update_exec_info): Update.
4114 * tui/tui-source.c (tui_source_window::set_contents): Update.
4115 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4116
e699d331
TT
41172019-08-16 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4120 deprecated_query_hook.
4121
bb01dbfc
TT
41222019-08-16 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4125 (tui_update_source_windows_with_line): Update.
4126 * tui/tui-source.h (struct tui_source_window)
4127 <show_symtab_source>: Declare.
4128 (tui_show_symtab_source): Don't declare.
4129 * tui/tui-source.c (tui_show_symtab_source): Rename from
4130 tui_show_symtab_source.
4131
81c82c4b
TT
41322019-08-16 Tom Tromey <tom@tromey.com>
4133
4134 * tui/tui-winsource.h (struct tui_source_window_base)
4135 <set_contents>: Declare.
4136 * tui/tui-winsource.c
4137 (tui_source_window_base::update_source_window_as_is): Update.
4138 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4139 Declare.
4140 (tui_set_source_content): Don't declare.
4141 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4142 tui_set_source_content.
4143 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4144 Declare.
4145 (tui_set_disassem_content): Don't declare.
4146 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4147 tui_set_disassem_content.
4148
2ddaf614
TT
41492019-08-16 Tom Tromey <tom@tromey.com>
4150
4151 * tui/tui-winsource.h (struct tui_source_window_base)
4152 <update_breakpoint_info>: Declare.
4153 (tui_update_breakpoint_info): Don't declare.
4154 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4155 (tui_update_all_breakpoint_info): Update.
4156 (tui_source_window_base::update_breakpoint_info): Rename from
4157 tui_update_breakpoint_info.
4158 (tui_source_window_base::update_exec_info): Update.
4159
017f9828
TT
41602019-08-16 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-winsource.h (struct tui_source_window_base)
4163 <update_source_window>: Declare.
4164 (tui_update_source_window): Don't declare.
4165 * tui/tui-winsource.c
4166 (tui_source_window_base::update_source_window): Rename from
4167 tui_update_source_window.
4168 (tui_source_window_base::rerender): Update.
4169 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4170 * tui/tui-disasm.c (tui_show_disassem)
4171 (tui_show_disassem_and_update_source)
4172 (tui_disasm_window::maybe_update): Update.
4173
ed8358e9
TT
41742019-08-16 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-winsource.h (struct tui_source_window_base)
4177 <update_source_window_as_is>: Declare.
4178 (tui_update_source_window_as_is): Don't declare.
4179 * tui/tui-winsource.c (tui_update_source_window): Update
4180 (tui_source_window_base::update_source_window_as_is): Rename from
4181 tui_update_source_window_as_is.
4182 (tui_source_window_base::refill): Update.
4183 * tui/tui-source.c (tui_show_symtab_source): Update.
4184 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4185 Update.
4186
20149b6b
TT
41872019-08-16 Tom Tromey <tom@tromey.com>
4188
4189 * tui/tui-winsource.h (tui_update_source_window)
4190 (tui_update_source_window_as_is): Remove "noerror" parameter.
4191 * tui/tui-winsource.c (tui_update_source_window)
4192 (tui_update_source_window_as_is): Remove "noerror" parameter.
4193 (tui_update_source_windows_with_addr)
4194 (tui_update_source_windows_with_line)
4195 (tui_source_window_base::rerender)
4196 (tui_source_window_base::refill): Update.
4197 * tui/tui-source.h (tui_set_source_content)
4198 (tui_show_symtab_source): Remove "noerror" parameter.
4199 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4200 parameter.
4201 (tui_show_symtab_source): Likewise.
4202 (tui_source_window::maybe_update): Update.
4203 * tui/tui-disasm.c (tui_show_disassem)
4204 (tui_show_disassem_and_update_source)
4205 (tui_disasm_window::do_scroll_vertical)
4206 (tui_disasm_window::maybe_update): Update.
4207
2d83e710
TT
42082019-08-16 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui.c (tui_is_window_visible): Update.
4211 * tui/tui-wingeneral.c (tui_make_window)
4212 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4213 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4214 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4215 (tui_set_win_height_command, parse_scrolling_args): Update.
4216 * tui/tui-source.c (tui_source_window::style_changed): Update.
4217 * tui/tui-regs.c (tui_show_registers)
4218 (tui_data_window::first_data_item_displayed)
4219 (tui_data_window::delete_data_content_windows)
4220 (tui_check_register_values, tui_reg_command): Update.
4221 * tui/tui-disasm.c (tui_show_disassem): Update.
4222 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4223 method.
4224 <is_visible>: Remove field.
4225 * tui/tui-data.c (tui_next_win, tui_prev_win)
4226 (tui_delete_invisible_windows): Update.
4227
d4ab829a
TT
42282019-08-16 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-winsource.h (struct tui_source_window_base)
4231 <m_has_locator>: Remove.
4232 * tui/tui-layout.c (show_source_disasm_command, show_data)
4233 (show_source_or_disasm_and_command): Update.
4234
aa7ca1bb
AH
42352019-08-16 Alan Hayward <alan.hayward@arm.com>
4236
4237 * NEWS (Other MI changes): New subsection.
4238 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4239 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4240 * arch-utils.c (default_get_pc_address_flags): New function.
4241 * arch-utils.h (default_get_pc_address_flags): New declaration.
4242 * gdbarch.sh: Add get_pc_address_flags.
4243 * gdbarch.c: Regenerate.
4244 * gdbarch.h: Likewise.
4245 * stack.c (print_pc): New function.
4246 (print_frame_info) (print_frame): Call print_pc.
4247
6eac171f
TV
42482019-08-16 Tom de Vries <tdevries@suse.de>
4249
4250 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4251 print_objfile_section_info.
4252
3df505f6
TT
42532019-08-15 Tom Tromey <tom@tromey.com>
4254
4255 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4256 calling update_cmdwin_start_line.
4257 * tui/tui-winsource.h (struct tui_source_window_base)
4258 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4259 <rerender>: Declare.
4260 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4261 Call rerender.
4262 (tui_source_window_base::set_new_height): Remove.
4263 (tui_source_window_base::rerender): Rename from
4264 do_make_visible_with_new_height.
4265 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4266 resize method.
4267 (tui_win_info::make_invisible_and_set_new_height)
4268 (tui_win_info::make_visible_with_new_height): Remove.
4269 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4270 Declare.
4271 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4272 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4273 do_make_visible_with_new_height>: Don't declare.
4274 <rerender>: Declare.
4275 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4276 set_new_height.
4277 (tui_data_window::do_make_visible_with_new_height): Remove.
4278 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4279 call tui_show_locator_content.
4280 (tui_gen_win_info::resize): Call rerender.
4281 (show_source_or_disasm_and_command): Don't call
4282 tui_show_locator_content.
4283 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4284 method.
4285 (struct tui_win_info) <rerender>: Declare.
4286 <set_new_height, make_invisible_and_set_new_height,
4287 make_visible_with_new_height>: Don't declare.
4288 * tui/tui-data.c (tui_win_list::rerender): New method.
4289 * tui/tui-command.h (struct tui_cmd_window)
4290 <do_make_visible_with_new_height>: Don't declare.
4291 * tui/tui-command.c
4292 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4293
272560b5
TT
42942019-08-15 Tom Tromey <tromey@adacore.com>
4295
4296 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4297 * ada-lang.c (ada_enum_name): Likewise.
4298
08235187
CB
42992019-08-15 Christian Biesinger <cbiesinger@google.com>
4300
4301 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4302 leading underscore.
4303 (GdbOutputErrorFile): Likewise.
4304 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4305 accordingly.
4306 (execute_unwinders): Rename to have a leading underscore.
4307 (auto_load_packages): Likewise.
4308 (global scope): Adjust call to auto_load_packages accordingly.
4309 (GdbSetPythonDirectory): Likewise.
4310 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4311 instead of execute_unwinders.
4312
db502012
TT
43132019-08-15 Tom Tromey <tom@tromey.com>
4314
4315 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4316 (show_data): Don't change window visibility.
4317 (tui_gen_win_info::resize): Remove special case for command
4318 window. Use wresize, when available.
4319 (show_source_or_disasm_and_command): Don't change window
4320 visibility.
4321 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4322 <make_visible>: New method.
4323 * tui/tui-command.c (tui_cmd_window::resize): New method.
4324
3891b65e
TT
43252019-08-15 Tom Tromey <tom@tromey.com>
4326
4327 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4328 (struct tui_source_windows): New.
4329 * tui/tui-winsource.c (tui_display_main): Update.
4330 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4331 (new_height_ok, parse_scrolling_args): Update.
4332 * tui/tui-layout.c (show_layout, show_data): Update.
4333 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4334 (tui_add_to_source_windows): Don't declare.
4335 * tui/tui-data.c (source_windows, tui_source_windows)
4336 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4337
ee556432
TT
43382019-08-15 Tom Tromey <tom@tromey.com>
4339
4340 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4341 Rename from reset.
4342 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4343 * tui/tui-layout.c (show_source_disasm_command, show_data):
4344 Update.
4345 (tui_gen_win_info::resize): Rename.
4346 (show_source_or_disasm_and_command): Update.
4347 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4348 reset.
4349
46f438e3
TT
43502019-08-15 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4353 * tui/tui-interp.c (tui_interp::init): Don't call
4354 tui_initialize_static_data.
4355 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4356
f4ce562c
TT
43572019-08-15 Tom Tromey <tom@tromey.com>
4358
4359 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4360 examine tui_win_list.
4361
c398c3d0
TT
43622019-08-15 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4365 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4366 tui_clear_source_content.
4367 (tui_clear_source_content): Remove.
4368 (tui_source_window_base::do_erase_source_content): Hoist call to
4369 content.clear().
4370 * tui/tui-stack.c (tui_show_frame_info): Don't call
4371 tui_clear_source_content.
4372
e25d2004
TT
43732019-08-15 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-winsource.h (struct tui_source_window_base)
4376 <do_erase_source_content>: New method.
4377 <erase_source_content>: New method.
4378 (tui_erase_source_content): Don't declare.
4379 * tui/tui-winsource.c (tui_clear_source_content): Update.
4380 (tui_source_window_base::do_erase_source_content): Rename from
4381 tui_erase_source_content.
4382 (tui_source_window_base::show_source_content): Update.
4383 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4384 * tui/tui-source.h (struct tui_source_window)
4385 <erase_source_content>: New method.
4386 * tui/tui-disasm.h (struct tui_disasm_window)
4387 <erase_source_content>: New method.
4388
002f15c2
TT
43892019-08-15 Tom Tromey <tom@tromey.com>
4390
4391 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4392 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4393 constructor.
4394 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4395 * tui/tui-source.c (tui_set_source_content): Update.
4396 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4397
c9033fe8
TT
43982019-08-15 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4401 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4402 tui-source.c.
4403 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4404 Declare.
4405 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4406 method.
4407 (tui_source_window::maybe_update): Update.
4408
088f37dd
TT
44092019-08-15 Tom Tromey <tom@tromey.com>
4410
4411 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4412 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4413 tui-disasm.c.
4414 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4415 Declare.
4416 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4417 method.
4418 (tui_disasm_window::maybe_update): Update.
4419
a54700c6
TT
44202019-08-15 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-winsource.h (struct tui_source_window_base)
4423 <maybe_update>: Declare.
4424 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4425 method.
4426 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4427 Declare.
4428 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4429 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4430 Declare.
4431 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4432
e2a678a5
TT
44332019-08-15 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4436
f2dda477
TT
44372019-08-15 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-wingeneral.c: Include tui-stack.h.
4440 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4441 (struct tui_locator_window): Move from tui-data.h.
4442 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4443 (tui_initialize_static_data): Move from tui-data.c.
4444 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4445 (struct tui_locator_window): Move to tui-stack.c.
4446 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4447 (tui_initialize_static_data): Move to tui-stack.c.
4448
ed4a1084
TT
44492019-08-15 Tom Tromey <tom@tromey.com>
4450
4451 * tui/tui-layout.c (show_source_disasm_command)
4452 (show_source_or_disasm_and_command): Use make_visible method, not
4453 tui_make_window.
4454 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4455 Remove.
4456
65962b20
TT
44572019-08-15 Tom Tromey <tom@tromey.com>
4458
4459 * tui/tui-wingeneral.h (tui_make_window): Update.
4460 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4461 parameter.
4462 (tui_gen_win_info::make_visible): Update.
4463 * tui/tui-regs.c (tui_data_window::display_registers_from):
4464 Update.
4465 * tui/tui-layout.c (show_source_disasm_command)
4466 (show_source_or_disasm_and_command): Update.
4467 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4468 (enum tui_box): Remove.
4469 (struct tui_win_info) <can_box>: New method.
4470 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4471 method.
4472
2208ee91
TV
44732019-08-15 Tom de Vries <tdevries@suse.de>
4474
4475 * linux-nat-trad.c: Include gdbarch.h.
4476
75faf5c4
AH
44772019-08-14 Alan Hayward <alan.hayward@arm.com>
4478
4479 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4480 register sizes.
4481
b1c896b3
TT
44822019-08-14 Tom Tromey <tromey@adacore.com>
4483
4484 * darwin-nat.c: Include gdbarch.h.
4485 * darwin-nat-info.c: Include gdbarch.h.
4486
6405cd73
TT
44872019-08-13 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4490 Remove.
4491 * tui/tui-data.c (tui_initialize_static_data): Update.
4492
5216580d
TT
44932019-08-13 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-winsource.h (struct tui_exec_info_window)
4496 <~tui_exec_info_window, maybe_allocate_content, get_content,
4497 m_content>: Remove.
4498 (struct tui_source_window_base) <set_exec_info_content,
4499 show_exec_info_content>: Don't declare.
4500 * tui/tui-winsource.c
4501 (tui_exec_info_window::maybe_allocate_content): Remove.
4502 (tui_source_window_base::update_exec_info): Rename from
4503 set_exec_info_content.
4504 (tui_source_window_base::show_exec_info_content)
4505 (tui_source_window_base::update_exec_info): Remove.
4506
93858ad3
TT
45072019-08-13 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4510 declare.
4511 * tui/tui-winsource.c (tui_update_source_window_as_is)
4512 (tui_update_source_windows_with_addr, tui_erase_source_content):
4513 Update.
4514 (tui_clear_exec_info_content): Remove.
4515
e321e7ce
TT
45162019-08-13 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4519 declare.
4520 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4521 call tui_erase_exec_info_content.
4522 (tui_clear_exec_info_content): Rename from
4523 tui_erase_exec_info_content.
4524 (tui_clear_exec_info_content): Delete.
4525
8270ac62
TT
45262019-08-13 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-winsource.h (struct tui_source_window_base)
4529 <show_exec_info_content>: Declare.
4530 (tui_show_exec_info_content): Don't declare.
4531 * tui/tui-winsource.c
4532 (tui_source_window_base::show_exec_info_content): Rename from
4533 tui_show_exec_info_content.
4534 (tui_source_window_base::update_exec_info): Update.
4535
7b56485d
TT
45362019-08-13 Tom Tromey <tom@tromey.com>
4537
4538 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4539 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4540 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4541 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4542 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4543 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4544 ... here.
4545
7ba913dc
TT
45462019-08-13 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-winsource.h (struct tui_source_window_base)
4549 <update_exec_info>: Declare.
4550 (tui_update_exec_info): Don't declare.
4551 * tui/tui-winsource.c (tui_update_source_window_as_is)
4552 (tui_source_window_base::refresh_all)
4553 (tui_update_all_breakpoint_info): Update.
4554 (tui_source_window_base::update_exec_info): Rename from
4555 tui_update_exec_info.
4556 * tui/tui-stack.c (tui_show_frame_info): Update.
4557
37a4a131
TT
45582019-08-13 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-winsource.h (struct tui_source_window_base)
4561 <set_exec_info_content>: Declare.
4562 (tui_set_exec_info_content): Don't declare.
4563 * tui/tui-winsource.c
4564 (tui_source_window_base::set_exec_info_content): Rename from
4565 tui_set_exec_info_content.
4566 (tui_update_exec_info): Update.
4567
0bd27e07
TT
45682019-08-13 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-winsource.h (struct tui_source_window_base)
4571 <show_source_content>: Declare.
4572 (tui_show_source_content): Don't declare.
4573 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4574 (tui_source_window_base::show_source_content): Rename from
4575 tui_show_source_content.
4576 (tui_source_window_base::refresh_all): Update.
4577 * tui/tui-layout.c (show_source_disasm_command)
4578 (show_source_or_disasm_and_command): Update.
4579
b4ef5aeb
TT
45802019-08-13 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-winsource.c (tui_erase_source_content)
4583 (tui_show_source_content, tui_source_window_base::refresh_all):
4584 Update.
4585 * tui/tui-wingeneral.h
4586 (tui_check_and_display_highlight_if_needed): Don't declare.
4587 * tui/tui-wingeneral.c
4588 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4589 check_and_display_highlight_if_needed.
4590 * tui/tui-win.c (tui_rehighlight_all)
4591 (tui_win_info::make_visible_with_new_height): Update.
4592 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4593 (tui_data_window::erase_data_content)
4594 (tui_data_window::display_all_data): Update.
4595 * tui/tui-data.h (struct tui_win_info)
4596 <check_and_display_highlight_if_needed>: Declare.
4597
fede5273
TT
45982019-08-13 Tom Tromey <tom@tromey.com>
4599
4600 * tui/tui-win.c (tui_resize_all): Call
4601 tui_delete_invisible_windows.
4602 * tui/tui-layout.c (show_layout): Call
4603 tui_delete_invisible_windows.
4604 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4605 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4606
22c3f490
TT
46072019-08-13 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4610 tui_add_win_to_layout.
4611
16cb7910
TT
46122019-08-13 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4615 * tui/tui-layout.c (tui_default_win_height): Now static.
4616
cc0c3ffb
TT
46172019-08-13 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4620 single switch.
4621 (show_source_disasm_command, show_source_or_disasm_and_command):
4622 Don't check current layout.
4623
3f3ffe54
TT
46242019-08-13 Tom Tromey <tom@tromey.com>
4625
4626 * tui/tui-wingeneral.c (make_all_visible): Remove.
4627 (tui_make_all_invisible): Simplify.
4628 * tui/tui-layout.c (tui_make_all_invisible): Move from
4629 tui-wingeneral.c; simplify.
4630 (show_layout): Hoist call to tui_make_all_invisible.
4631 (show_data): Don't call tui_make_all_invisible.
4632
69258091
TT
46332019-08-13 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4636 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4637
62cf57fe
TT
46382019-08-13 Tom Tromey <tom@tromey.com>
4639
4640 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4641 tui-data.c.
4642 (show_source_disasm_command, show_data)
4643 (show_source_or_disasm_and_command): Don't use
4644 tui_set_current_layout_to.
4645 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4646 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4647 tui-layout.c.
4648 (tui_set_current_layout_to): Remove.
4649
2afade5d
TT
46502019-08-13 Tom Tromey <tom@tromey.com>
4651
4652 * tui/tui-layout.c (tui_set_layout): Update.
4653 * tui/tui-data.h (struct tui_layout_def): Remove.
4654 (tui_layout_def): Don't declare.
4655 * tui/tui-data.c (layout_def): Remove.
4656 (tui_layout_def): Remove.
4657
a3504e96
TT
46582019-08-13 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-winsource.h (struct tui_source_window_base)
4661 <clear_detail>: No longer "override".
4662 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4663 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4664 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4665 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4666 Remove.
4667 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4668
29c92911
TT
46692019-08-13 Tom Tromey <tromey@adacore.com>
4670
4671 * tracepoint.c: Don't include readline.h or history.h.
4672
86c6b807
TT
46732019-08-12 Tom Tromey <tom@tromey.com>
4674
4675 * configure: Rebuild.
4676 * configure.ac: Check for readline 7.
4677 * NEWS: Mention readline 7 requirement.
4678 * README: Update.
4679
5db2718c
TT
46802019-08-12 Tom Tromey <tom@tromey.com>
4681
4682 * mingw-hdep.c (gdb_select): Remove readline hack.
4683
dac36daf
PFC
46842019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4685
4686 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4687 when the function fails.
4688
1022c627
AA
46892019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4690
4691 * s390-tdep.c (s390_type_align): New function.
4692 (s390_gdbarch_init): Set it as type_align gdbarch method.
4693
eba4caf2
TV
46942019-08-09 Tom de Vries <tdevries@suse.de>
4695
4696 PR gdb/24591
4697 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4698 pc_low with relocation offset.
4699
123cd851
TT
47002019-08-07 Tom Tromey <tromey@adacore.com>
4701
4702 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4703 (print_frame_args): Update.
4704 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4705 Update.
4706 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4707 * frame.h (struct frame_arg): Add initializers.
4708 <error>: Now a unique_xmalloc_ptr.
4709
3d31bc39
AH
47102019-08-07 Alan Hayward <alan.hayward@arm.com>
4711
4712 * NEWS: Expand the Pointer Authentication entry.
4713 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4714 (aarch64_frame_unmask_lr): ... to this.
4715 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4716 Call aarch64_frame_unmask_lr.
4717 * frame.c (struct frame_info): Add "masked" variable.
4718 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4719 (fprint_frame): Check for masked pc.
4720 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4721 declarations.
4722 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4723 * stack.c (print_frame): Check for masked pc.
4724
0cf9feb9
TT
47252019-08-06 Tom Tromey <tom@tromey.com>
4726
4727 * stabsread.c (patch_block_stabs, read_one_struct_field)
4728 (read_enum_type): Use obstack_strndup.
4729 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4730 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4731 * dwarf2read.c (guess_full_die_structure_name)
4732 (anonymous_struct_prefix): Use obstack_strndup.
4733 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4734 * c-exp.y (yylex): Use obstack_strndup.
4735 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4736 (write_var_or_type): Use obstack_strndup.
4737
efba19b0
TT
47382019-08-06 Tom Tromey <tom@tromey.com>
4739
4740 * symfile.c (reread_symbols): Use obstack_strdup.
4741 * stabsread.c (read_type): Use obstack_strdup.
4742 * gdb_obstack.h (obstack_strdup): New overload.
4743 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4744 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4745 (dwarf2_canonicalize_name): Use obstack_strdup.
4746 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4747 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4748 Use obstack_strdup.
4749
f25102f7
TT
47502019-08-06 Tom Tromey <tom@tromey.com>
4751
4752 * gdb_obstack.h (obstack_strdup): Define.
4753 * gdb_obstack.c (obstack_strdup): Don't define.
4754
021887d8
TT
47552019-08-06 Tom Tromey <tom@tromey.com>
4756
4757 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4758 obstack_strdup.
4759 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4760 obstack_strdup.
4761 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4762 * stabsread.c (common_block_start): Use obstack_strdup.
4763 * objfiles.c (set_objfile_main_name, objfile): Use
4764 obstack_strdup.
4765 * namespace.c (add_using_directive): Use obstack_strdup.
4766 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4767 * jit.c (finalize_symtab): Use obstack_strdup.
4768 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4769 (guess_partial_die_structure_name, partial_die_info::fixup)
4770 (dwarf2_name): Use obstack_strdup.
4771 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4772 obstack_strdup.
4773 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4774 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4775 obstack_strdup.
4776 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4777
d2834edc
PW
47782019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4779
4780 * unittests/help-doc-selftests.c: New file.
4781 * Makefile.in: Add the new file.
4782
590042fc
PW
47832019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4784
4785 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4786 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4787 the full first line, except when FOR_VALUE_PREFIX. In this case,
4788 the trailing '.' is not output, and the first character is uppercased.
4789 (print_help_for_command): Update call to print_doc_line.
4790 (print_doc_of_command): Likewise.
4791 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4792 * cli/cli-option.c (append_indented_doc): Do not append newline.
4793 (build_help_option): Append newline after first appended_indented_doc
4794 only if a second call is done.
4795 (build_help): Append 2 new lines before each option, except the first
4796 one.
4797 * compile/compile.c (_initialize_compile): Add new lines after
4798 %OPTIONS%, when not at the end of the help.
4799 Change help doc or code
4800 producing the help doc to respect the invariants.
4801 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4802 Also removed the new line after 'Options:', as all other commands
4803 do not put an empty line between 'Options:' and the first option.
4804 * printcmd.c (_initialize_printcmd): Likewise.
4805 * stack.c (_initialize_stack): Likewise.
4806 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4807 incorrectly telling COMMAND is optional.
4808 * ada-lang.c (_initialize_ada_language): Change help doc or code
4809 producing the help doc to respect the invariants.
4810 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4811 * breakpoint.c (_initialize_breakpoint): Likewise.
4812 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4813 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4814 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4815 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4816 _initialize_cli_style): Likewise.
4817 * corelow.c (core_target_info): Likewise.
4818 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4819 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4820 * filesystem.c (_initialize_filesystem): Likewise.
4821 * frame.c (_initialize_frame): Likewise.
4822 * gnu-nat.c (add_task_commands): Likewise.
4823 * infcall.c (_initialize_infcall): Likewise.
4824 * infcmd.c (_initialize_infcmd): Likewise.
4825 * interps.c (_initialize_interpreter): Likewise.
4826 * language.c (_initialize_language): Likewise.
4827 * linux-fork.c (_initialize_linux_fork): Likewise.
4828 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4829 * maint.c (_initialize_maint_cmds): Likewise.
4830 * memattr.c (_initialize_mem): Likewise.
4831 * printcmd.c (_initialize_printcmd): Likewise.
4832 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4833 _RegEx): Likewise.
4834 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4835 * record-btrace.c (_initialize_record_btrace): Likewise.
4836 * record-full.c (_initialize_record_full): Likewise.
4837 * record.c (_initialize_record): Likewise.
4838 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4839 * regcache.c (_initialize_regcache): Likewise.
4840 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4841 _initialize_remote): Likewise.
4842 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4843 * serial.c (_initialize_serial): Likewise.
4844 * skip.c (_initialize_step_skip): Likewise.
4845 * source.c (_initialize_source): Likewise.
4846 * stack.c (_initialize_stack): Likewise.
4847 * symfile.c (_initialize_symfile): Likewise.
4848 * symtab.c (_initialize_symtab): Likewise.
4849 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4850 * top.c (init_main): Likewise.
4851 * tracefile-tfile.c (tfile_target_info): Likewise.
4852 * tracepoint.c (_initialize_tracepoint): Likewise.
4853 * tui/tui-win.c (_initialize_tui_win): Likewise.
4854 * utils.c (add_internal_problem_command): Likewise.
4855 * valprint.c (value_print_option_defs): Likewise.
4856
404f2902
FCE
48572019-08-06 Frank Ch. Eigler <fche@redhat.com>
4858
4859 PR build/24886
4860 * configure.ac: Drop enable-libmcheck support.
4861 * configure, config.in: Rebuild.
4862 * libmcheck.m4: Remove.
4863 * acinclude.m4: Don't include it.
4864 * Makefile.in: Don't distribute it.
4865 * top.c (print_gdb_configuration): Don't mention it.
4866
046bebe1
TT
48672019-08-06 Tom Tromey <tom@tromey.com>
4868
4869 * utils.c (set_output_style): Sometimes pass stream to
4870 emit_style_escape.
4871 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4872 * record-btrace.c (btrace_insn_history): Update.
4873 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4874 method.
4875 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4876 Update initializers.
4877 <m_uiout>: New field.
4878 <m_di>: Move lower.
4879 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4880 Remove "uiout" parameter.
4881 (dump_insns): Update.
4882 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4883 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4884
ddbcedf5
CB
48852019-08-06 Christian Biesinger <cbiesinger@google.com>
4886
4887 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4888 (error_in_psymtab_expansion): Likewise.
4889 (lookup_symbol_via_quick_fns): Likewise.
4890 (basic_lookup_transparent_type_quick): Likewise.
4891 (basic_lookup_transparent_type_1): Likewise.
4892
b08b16c8
TT
48932019-08-06 Tom Tromey <tromey@adacore.com>
4894
4895 * source.c (last_source_error): Now bool.
4896 (print_source_lines_base): Make "noprint" bool. Only open
4897 source file when last_source_visited changes.
4898
cb44333d
TT
48992019-08-06 Tom Tromey <tromey@adacore.com>
4900
4901 * annotate.c (annotate_source_line): Use g_source_cache.
4902 * source-cache.c (source_cache::get_plain_source_lines): Change
4903 parameters. Populate m_offset_cache.
4904 (source_cache::ensure): New method.
4905 (source_cache::get_line_charpos): New method.
4906 (extract_lines): Move lower. Change parameters.
4907 (source_cache::get_source_lines): Move lower.
4908 * source-cache.h (class source_cache): Update comment.
4909 <get_line_charpos>: New method.
4910 <get_source_lines>: Update comment.
4911 <clear>: Clear m_offset_cache.
4912 <get_plain_source_lines>: Change parameters.
4913 <ensure>: New method
4914 <m_offset_cache>: New member.
4915 * source.c (forget_cached_source_info_for_objfile): Update.
4916 (info_source_command): Use g_source_cache.
4917 (find_source_lines, open_source_file_with_line_charpos): Remove.
4918 (print_source_lines_base, search_command_helper): Use g_source_cache.
4919 * source.h (open_source_file_with_line_charpos): Don't declare.
4920 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4921 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4922 Use g_source_cache.
4923
872dceaa
TT
49242019-08-06 Tom Tromey <tromey@adacore.com>
4925
4926 * source-cache.c (source_cache::get_plain_source_lines):
4927 Remove "first_line" and "last_line" parameters.
4928 (source_cache::get_source_lines): Cache plain text.
4929 * source-cache.h (class source_cache)
4930 <get_plain_source_lines>: Update.
4931
269249d9
TT
49322019-08-06 Tom Tromey <tromey@adacore.com>
4933
4934 * source-cache.c (extract_lines): No longer a method.
4935 Changed type of parameter. Include final newline.
4936 (selftests::extract_lines_test): New function.
4937 (_initialize_source_cache): Likewise.
4938 * source-cache.h (class source_cache)
4939 <extract_lines>: Don't declare.
4940
c0e8dcd8
TT
49412019-08-06 Tom Tromey <tromey@adacore.com>
4942
4943 * breakpoint.c (init_breakpoint_sal): Update.
4944 (breakpoint): Update.
4945 * breakpoint.h (struct breakpoint) <filter>: Now a
4946 unique_xmalloc_ptr.
4947
0b27c27d
CB
49482019-08-05 Christian Biesinger <cbiesinger@google.com>
4949
4950 * NEWS: Mention dictionary access on blocks.
4951 * python/py-block.c (blpy_getitem): New function.
4952 (block_object_as_mapping): New struct.
4953 (block_object_type): Use new struct for tp_as_mapping field.
4954
4ee94178
CB
49552019-08-05 Christian Biesinger <cbiesinger@google.com>
4956
4957 * objfiles.h (objfile): Add a comment describing partial symbols.
4958
8abfcabc
TT
49592019-08-05 Tom Tromey <tromey@adacore.com>
4960
4961 * compile/compile.c (_initialize_compile): Use _(), not N_().
4962 * thread.c (_initialize_thread): Use _(), not N_().
4963 * stack.c (_initialize_stack): Use _(), not N_().
4964 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4965
2b79f376
SM
49662019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4967
4968 * dwarf2read.c (struct dw2_symtab_iterator):
4969 <want_specific_block>: Remove.
4970 <block_index>: Change type to gdb::optional.
4971 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4972 change type of BLOCK_INDEX parameter to gdb::optional.
4973 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4974 (dw2_lookup_symbol): Don't pass argument for
4975 WANT_SPECIFIC_BLOCK.
4976 (dw2_expand_symtabs_for_function): Don't pass argument for
4977 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4978 (class dw2_debug_names_iterator)
4979 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4980 parameter, change BLOCK_INDEX type to gdb::optional.
4981 <m_want_specific_block>: Remove.
4982 <m_block_index>: Change type to gdb::optional.
4983 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4984 gdb::optional. Re-write in function of gdb::optional.
4985 (dw2_debug_names_lookup_symbol): Don't pass argument for
4986 WANT_SPECIFIC_BLOCK.
4987 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4988 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4989 BLOCK_INDEX.
4990
ae60f04e
PW
49912019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * NEWS: Mention changes to "info sources" command.
4994
28cd9371
PW
49952019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4996
4997 * symtab.c (filename_partial_match_opts): New struct type.
4998 (struct output_source_filename_data): New members
4999 regexp, c_regexp, partial_match.
5000 (output_source_filename): Use new members to decide to print file.
5001 (info_sources_option_defs): New variable.
5002 (make_info_sources_options_def_group, print_info_sources_header,
5003 info_sources_command_completer):
5004 New functions.
5005 (info_sources_command): Read new optional arguments.
5006 (_initialize_symtab): Update info sources help.
5007
ca683e3a
AO
50082019-08-02 Alexandre Oliva <oliva@adacore.com>
5009
5010 * ada-lang.c (exception_support_info_v0): Renamed from...
5011 (default_exception_support_info): ... this. Create new
5012 definition for v1.
5013 (ada_has_this_exception_support): Look up catch_handlers_sym.
5014 (ada_exception_support_info_sniffer): Try v0 after default.
5015
f1264162
TT
50162019-08-01 Tom Tromey <tromey@adacore.com>
5017
5018 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5019 gdbarch.h.
5020
0a7b2485
CB
50212019-08-01 Christian Biesinger <cbiesinger@google.com>
5022
5023 * s12z-tdep.c: Fix include path for s12z-opc.h.
5024
c6bdbeb7
AH
50252019-08-01 Alan Hayward <alan.hayward@arm.com>
5026
5027 * NEWS: Require GNU make 3.82.
5028
a2bd7b82
TT
50292019-07-16 Tom Tromey <tom@tromey.com>
5030
5031 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5032 declare.
5033
aa3b6533
TT
50342019-07-30 Tom Tromey <tromey@adacore.com>
5035
5036 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5037
a1530dc7
KB
50382019-07-30 Kevin Buettner <kevinb@redhat.com>
5039
5040 * printcmd.c (print_address_symbolic): Print negative offsets.
5041 (build_address_symbolic): Force signed arithmetic when computing
5042 offset.
5043
2906593f
CB
50442019-07-30 Christian Biesinger <cbiesinger@google.com>
5045
5046 PR/24474: Add a function to lookup static variables.
5047 * NEWS: Mention this new function.
5048 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5049 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5050 * python/python.c (python_GdbMethods): Add new function.
5051
c620ed88
CB
50522019-07-29 Christian Biesinger <cbiesinger@google.com>
5053
5054 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5055 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5056 (objfpy_lookup_static_symbol): New function.
5057 (objfile_object_methods): Add new functions.
5058
bc4268a5
PW
50592019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5060
5061 * NEWS: Mention 'set|show print frame-info'. Mention new
5062 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5063 backtrace argument. Mention that python frame filtering code
5064 is now consistent with what 'backtrace' command prints.
5065
4b5e8d19
PW
50662019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5067
5068 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5069 comments.
5070 (print_frame_info_auto, print_frame_info_source_line,
5071 print_frame_info_location, print_frame_info_source_and_location,
5072 print_frame_info_location_and_address, print_frame_info_short_location):
5073 New declarations.
5074 (struct frame_print_options): New member print_frame_info.
5075 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5076 * stack.h (get_user_print_what_frame_info): New declaration.
5077 (frame_show_address): New declaration.
5078 * stack.c (print_frame_arguments_choices): New value 'presence'.
5079 (print_frame_info_auto, print_frame_info_source_line,
5080 print_frame_info_location, print_frame_info_source_and_location,
5081 print_frame_info_location_and_address, print_frame_info_short_location,
5082 print_frame_info_choices, print_frame_info_print_what): New definitions.
5083 (print_frame_args): Only print dots for args if print frame-arguments
5084 is 'presence'.
5085 (frame_print_option_defs): New element for "frame-info".
5086 (get_user_print_what_frame_info): New function.
5087 (frame_show_address): Make non static. Move comment to stack.h.
5088 (print_frame_info_to_print_what): New function.
5089 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5090 to decide what to print.
5091 (backtrace_command_1): Handle the new print_frame_arguments_presence
5092 value.
5093 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5094 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5095 (py_print_frame): In non-mi mode, use LOCATION as default for
5096 print_what, similarly to frame information printed directly by
5097 backtrace command. Handle frame-info user option in non MI mode.
5098
6bdfee81
KB
50992019-07-27 Kevin Buettner <kevinb@redhat.com>
5100
5101 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5102 Add case for debugging 32-bit target on 64-bit host. Revise
5103 comment.
5104
98a617f8
KB
51052019-07-27 Kevin Buettner <kevinb@redhat.com>
5106
5107 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5108 instead of find_function_entry_range_from_pc.
5109
567238c9
KB
51102019-07-27 Kevin Buettner <kevinb@redhat.com>
5111
5112 * stack.c (find_frame_funname): Remove code which preferred
5113 minsym over symtab sym in "certain pathological cases".
5114
2dc80cf8
KB
5115 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5116 parameter. Change type of "do_demangle" to bool.
5117 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5118 Pass suitable "prefer_sym_over_minsym" flag to
5119 build_address_symbolic(). Don't output "+" for negative offsets.
5120 * printcmd.c (print_address_symbolic): Update invocation of
5121 build_address_symbolic to include a "prefer_sym_over_minsym"
5122 flag.
5123 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5124 Restrict cases in which use of minimal symbol is preferred to that
5125 of a found symbol. Update comments.
5126
1aff7173
KB
5127 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5128 for entry pc when entry pc is out of range for that FDE.
5129
89b085ac
BC
51302019-07-26 Brian Callahan <bcallah@openbsd.org>
5131
5132 PR gdb/24839:
5133 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5134 type.
5135
f32feb4a
CB
51362019-07-25 Christian Biesinger <cbiesinger@google.com>
5137
5138 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5139 this function's Python signature.
5140
5141
51422019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5143
5144 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5145 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5146 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5147 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5148 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5149
5150
c54e4253
YS
51512019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5152
5153 * h8300-tdep.c (h8300_register_name_common): New.
5154 h8300_register_name): Use h8300_register_name_common.
5155 (h8300s_register_name): Likewise.
5156 (h8300sx_register_name): Likewise.
5157 (h8300h_register_nam): New.
5158 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5159
5160
40eadf04
SP
51612019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5162
5163 * arm-tdep.c (arm_skip_cmse_entry): New function.
5164 (arm_is_sgstubs_section): New function.
5165 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5166
bfa2a36d
TT
51672019-07-22 Tom Tromey <tom@tromey.com>
5168
5169 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5170 Don't self-assign.
5171
a8e9d247
AB
51722019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5173
5174 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5175 type_print.
5176
eb86c5e2
AB
51772019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5178
5179 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5180 so that GDB doesn't match any msymbols when searching in the
5181 TYPES_DOMAIN.
5182 (print_symbol_info): Print using typedef_print or type_print based
5183 on the type of the symbol. Add updated FIXME comment moved from...
5184 (_initialize_symtab): ... move and update FIXME comment to above.
5185
a8eab7c6
AB
51862019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * NEWS: Mention adding -q option to "info types".
5189 * symtab.c (struct info_types_options): New struct.
5190 (info_types_options_defs): New variable.
5191 (make_info_types_options_def_group): New function.
5192 (info_types_command): Use gdb::option framework to parse options.
5193 (info_types_command_completer): New function.
5194 (_initialize_symtab): Extend the help text on "info types" and
5195 register command completer.
5196
b4603c34
CB
51972019-07-21 Christian Biesinger <cbiesinger@google.com>
5198
5199 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5200 (lookup_symbol_in_objfile): Change int to block_enum and add a
5201 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5202
c8cdc1e0
CB
52032019-07-20 Christian Biesinger <cbiesinger@google.com>
5204
5205 * MAINTAINERS (Write After Approval): Add self.
5206
01e175fe
AB
52072019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5210 instruction to the dummy code region.
5211
56f79b63
TT
52122019-07-19 Tom Tromey <tromey@adacore.com>
5213
5214 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5215 (ARGSUSED, PARAMS, __func__): Remove rules.
5216
4c5aa8e0
AH
52172019-07-19 Alan Hayward <alan.hayward@arm.com>
5218
5219 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5220 * features/arm/arm-with-iwmmxt.c: Remove.
5221 * features/arm/arm-with-iwmmxt.xml: Remove.
5222 * features/arm/arm-with-m-fpa-layout.c: Remove.
5223 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5224 * features/arm/arm-with-m-vfp-d16.c: Remove.
5225 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5226 * features/arm/arm-with-m.c: Remove.
5227 * features/arm/arm-with-m.xml: Remove.
5228 * features/arm/arm-with-neon.c: Remove.
5229 * features/arm/arm-with-neon.xml: Remove.
5230 * features/arm/arm-with-vfpv2.c: Remove.
5231 * features/arm/arm-with-vfpv2.xml: Remove.
5232 * features/arm/arm-with-vfpv3.c: Remove.
5233 * features/arm/arm-with-vfpv3.xml: Remove.
5234
f42b2617
AH
52352019-07-19 Alan Hayward <alan.hayward@arm.com>
5236
5237 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5238
f29ec966
AH
52392019-07-19 Alan Hayward <alan.hayward@arm.com>
5240
5241 * arch/aarch32.c (aarch32_create_target_description): Create
5242 target descriptions using features.
5243 * arch/arm.c (arm_create_target_description)
5244 (arm_create_mprofile_target_description): Likewise.
5245 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5246
d105cce5
AH
52472019-07-19 Alan Hayward <alan.hayward@arm.com>
5248
5249 * Makefile.in: Add new files.
5250 * aarch32-tdep.c: New file.
5251 * aarch32-tdep.h: New file.
5252 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5253 Call aarch32_read_description.
5254 * arch/aarch32.c: New file.
5255 * arch/aarch32.h: New file.
5256 * arch/arm.c (arm_create_target_description)
5257 (arm_create_mprofile_target_description): New function.
5258 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5259 (arm_create_target_description)
5260 (arm_create_mprofile_target_description): New declaration.
5261 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5262 read_description functions.
5263 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5264 Likewise.
5265 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5266 * arm-tdep.c (tdesc_arm_list): New variable.
5267 (arm_register_g_packet_guesses): Call create description functions.
5268 (arm_read_description) (arm_read_mprofile_description): New
5269 function.
5270 * arm-tdep.h (arm_read_description)
5271 (arm_read_mprofile_description): Add declaration.
5272 * configure.tgt: Add new files.
5273
afe09f0b
GL
52742019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5275
5276 * top.c (new_ui_command): Open specified terminal just once.
5277
cd215b2e
TT
52782019-07-18 Tom Tromey <tromey@adacore.com>
5279
5280 * symtab.c (main_name): Constify return type.
5281 * symfile.c (set_initial_language): Update.
5282 * symtab.h (main_name): Constify return type.
5283
d8f68fcb
TT
52842019-07-17 Tom Tromey <tom@tromey.com>
5285
5286 * tui/tui-winsource.c (tui_update_source_window)
5287 (tui_update_source_window_as_is)
5288 (tui_update_source_windows_with_line): Remove return.
5289 * tui/tui-disasm.c (tui_show_disassem)
5290 (tui_show_disassem_and_update_source): Remove return.
5291 * tui/tui.c (tui_reset): Remove return.
5292 * tui/tui-wingeneral.c
5293 (tui_check_and_display_highlight_if_needed): Remove return.
5294
ca5af91e
TT
52952019-07-17 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5298
5104fe36
TT
52992019-07-17 Tom Tromey <tom@tromey.com>
5300
5301 * tui/tui-winsource.h (struct tui_exec_info_window)
5302 (struct tui_source_window_base): Move from tui-data.h.
5303 * tui/tui-winsource.c: Move many method definitions from
5304 elsewhere. Remove "structuring" comments.
5305 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5306 (tui_source_window_base::refresh_window): Move to
5307 tui-winsource.c.
5308 * tui/tui-win.c (tui_source_window_base::refresh_all)
5309 (tui_source_window_base::update_tab_width)
5310 (tui_source_window_base::set_new_height)
5311 (tui_source_window_base::do_make_visible_with_new_height): Move to
5312 tui-winsource.c.
5313 * tui/tui-source.h: Update.
5314 * tui/tui-source.c (tui_source_window_base::reset): Move to
5315 tui-winsource.c.
5316 * tui/tui-disasm.h: Update.
5317 * tui/tui-data.h (struct tui_exec_info_window): Move to
5318 tui-winsource.h.
5319 (struct tui_source_window_base): Likewise.
5320 * tui/tui-data.c (tui_source_window_base::clear_detail)
5321 (tui_source_window_base, ~tui_source_window_base): Move to
5322 tui-winsource.c.
5323
daa15dde
TT
53242019-07-17 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-win.c (tui_resize_all)
5327 (tui_source_window_base::update_tab_width)
5328 (tui_adjust_win_heights): Update.
5329 (tui_win_info::make_invisible_and_set_new_height): Rename from
5330 make_invisible_and_set_new_height.
5331 * tui/tui-data.h (struct tui_win_info)
5332 <make_invisible_and_set_new_height>: New method.
5333
bfad4537
TT
53342019-07-17 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui.c: Update.
5337 * tui/tui-source.h (struct tui_source_window): Move from
5338 tui-data.h.
5339 * tui/tui-layout.c: Update.
5340 * tui/tui-disasm.c: Update.
5341 * tui/tui-data.h (struct tui_source_window): Move to
5342 tui-source.h.
5343
88f7e873
TT
53442019-07-17 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5347 tui-data.h.
5348 * tui/tui-data.h (struct tui_disasm_window): Move to
5349 tui-disasm.h.
5350
96bd6233
TT
53512019-07-17 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-regs.h (struct tui_data_item_window): Move from
5354 tui-data.h.
5355 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5356 * tui/tui-data.h (struct tui_data_item_window): Move to
5357 tui-regs.h.
5358 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5359
ce38393b
TT
53602019-07-17 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui.c: Update.
5363 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5364 (tui_cmd_window::max_height): Move to tui-command.c.
5365 * tui/tui-layout.c: Update.
5366 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5367 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5368 tui-command.c.
5369 * tui/tui-command.h (struct tui_cmd_window): Move from
5370 tui-data.h.
5371 * tui/tui-command.c: Remove "structuring" comments.
5372 (tui_cmd_window::clear_detail)
5373 (tui_cmd_window::do_make_visible_with_new_height)
5374 (tui_cmd_window::max_height): Move from elsewhere.
5375
2d8b51cb
TT
53762019-07-17 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5379 Now static.
5380 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5381 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5382
18ab23af
TT
53832019-07-17 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui.c: Update.
5386 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5387 tui-regs.c.
5388 * tui/tui-windata.h: Remove file.
5389 * tui/tui-windata.c: Remove file.
5390 * tui/tui-win.c (tui_data_window::set_new_height)
5391 (tui_data_window::do_make_visible_with_new_height): Move to
5392 tui-regs.c.
5393 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5394 * tui/tui-regs.c: Remove "structuring" comments.
5395 (tui_data_window::first_data_item_displayed)
5396 (tui_data_window::delete_data_content_windows)
5397 (tui_data_window::erase_data_content)
5398 (tui_data_window::display_all_data)
5399 (tui_data_window::refresh_all)
5400 (tui_data_window::do_scroll_vertical)
5401 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5402 (tui_data_window::do_make_visible_with_new_height)
5403 (tui_data_window::refresh_window): Move from elsewhere.
5404 (_initialize_tui_regs): Move to end of file.
5405 * tui/tui-layout.c: Update.
5406 * tui/tui-hooks.c: Update.
5407 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5408 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5409 tui-regs.c.
5410 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5411
88b7e7cc
TT
54122019-07-17 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5415 seen.
5416
0fcd3711
TT
54172019-07-17 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-win.c (tui_source_window_base::set_new_height)
5420 (tui_source_window_base::do_make_visible_with_new_height): Use
5421 m_has_locator field directly.
5422 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5423 method.
5424 (struct tui_source_window_base) <has_locator>: Likewise.
5425
4a38112d
TT
54262019-07-17 Tom Tromey <tom@tromey.com>
5427
5428 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5429 Don't declare.
5430 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5431 Remove.
5432 * tui/tui-win.c (tui_source_window_base::set_new_height)
5433 (tui_source_window_base::set_new_height)
5434 (make_invisible_and_set_new_height)
5435 (tui_source_window_base::do_make_visible_with_new_height)
5436 (tui_source_window_base::do_make_visible_with_new_height):
5437 Update.
5438 * tui/tui-layout.c (show_source_disasm_command, show_data)
5439 (show_source_or_disasm_and_command): Update.
5440 * tui/tui-layout.c (show_layout): Update.
5441
09129226
TT
54422019-07-17 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-layout.c (make_data_window): Remove.
5445 (show_data): Unify creation and re-initialization cases.
5446
4a8a5e84
TT
54472019-07-17 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-layout.c (make_source_window, make_disasm_window):
5450 Remove.
5451 (show_data): Unify creation and re-initialization cases.
5452
76d2be8e
TT
54532019-07-17 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-layout.c (make_command_window): Remove.
5456 (show_source_disasm_command, show_source_or_disasm_and_command):
5457 Unify creation and re-initialization cases.
5458
890b8bde
TT
54592019-07-17 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5462 creation and re-initialization cases.
5463
2cdfa113
TT
54642019-07-17 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-regs.c (tui_get_register): Return void.
5467
8e3cfd09
TT
54682019-07-17 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5471 Simplify.
5472
f4e04977
TT
54732019-07-17 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5476 resetting.
5477
0379b883
TT
54782019-07-17 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5481 * tui/tui-regs.c (tui_reg_layout): New function.
5482 (tui_show_registers, tui_reg_command): Use it.
5483 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5484 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5485 parameters.
5486 (tui_layout_command): Remove.
5487
b7fbad91
TT
54882019-07-17 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-layout.h (tui/tui-layout): Return void.
5491 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5492
4e1e56b9
TT
54932019-07-17 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-layout.c (show_source_disasm_command, show_data):
5496 Update.
5497 (reset_locator): Remove.
5498 (show_source_or_disasm_and_command): Update.
5499
1e0c09ba
TT
55002019-07-17 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-source.c (tui_source_window_base::reset): Remove
5503 win_type parameter.
5504 * tui/tui-layout.c (make_command_window, make_source_window)
5505 (make_disasm_window, make_data_window)
5506 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5507 (reset_locator, show_source_or_disasm_and_command): Update.
5508 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5509 win_type parameter.
5510 (struct tui_source_window_base) <reset>: Likewise.
5511
1bf605de
TT
55122019-07-17 Tom Tromey <tom@tromey.com>
5513
5514 * tui/tui-layout.c (show_source_disasm_command): Use
5515 reset_locator.
5516 (reset_locator): New function.
5517 (init_and_make_win): Remove.
5518 (show_source_or_disasm_and_command): Use reset_locator.
5519
098f9ed4
TT
55202019-07-17 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5523 condition.
5524 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5525 Remove condition.
5526 * tui/tui-source.c (tui_source_window_base::reset): New method.
5527 * tui/tui-layout.c (make_command_window): Don't call
5528 init_and_make_win.
5529 (make_source_window, make_disasm_window): Don't call
5530 make_source_or_disasm_window.
5531 (make_data_window): Don't call init_and_make_win. Change calling
5532 convention.
5533 (show_source_disasm_command, show_data): Simplify.
5534 (make_source_or_disasm_window): Remove.
5535 (show_source_or_disasm_and_command): Simplify.
5536 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5537 (struct tui_source_window_base) <reset>: Likewise.
5538 <execution_info>: Remove initializer.
5539 * tui/tui-data.c (tui_source_window_base): Initialize
5540 execution_info.
5541
80110957
TT
55422019-07-17 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5545 variable.
5546
cf82af05
TT
55472019-07-17 Tom Tromey <tom@tromey.com>
5548
5549 * tui/tui.c (tui_rl_other_window): Update.
5550 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5551 superclass method first. Always iterate over regs_content.
5552 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5553 method.
5554 * tui/tui-win.c (tui_set_focus_command): Update.
5555
01aeb396
TT
55562019-07-17 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-win.c (tui_set_focus_command): Rename from
5559 tui_set_focus. Call tui_enable.
5560 (tui_set_focus_command): Remove.
5561
fd6c75ee
TT
55622019-07-17 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5565 refresh_window.
5566 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5567 touchwin.
5568 (tui_data_window::refresh_window): Call refresh_window on data
5569 items. Always call superclass refresh_window.
5570 (tui_win_info::refresh): Remove.
5571 (tui_source_window_base::refresh_window): Update.
5572 (tui_refresh_all): Update.
5573 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5574 refresh_window.
5575 (show_source_or_disasm_and_command): Likewise.
5576 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5577 (struct tui_source_window_base) <refresh>: Likewise.
5578
f6cc34a9
TT
55792019-07-17 Tom Tromey <tom@tromey.com>
5580
5581 * tui/tui-winsource.c (tui_clear_source_content)
5582 (tui_show_source_content): Update.
5583 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5584 whether content is empty.
5585 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5586 Remove.
5587
f31ec9af
TT
55882019-07-17 Tom Tromey <tom@tromey.com>
5589
5590 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5591 window's contents.
5592 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5593 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5594
d1b6f1e5
TT
55952019-07-17 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5598 (struct tui_data_item_window): Update.
5599
d9743a13
TT
56002019-07-17 Tom Tromey <tom@tromey.com>
5601
5602 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5603 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5604 defines.
5605
caf0bc4e
TT
56062019-07-17 Tom Tromey <tom@tromey.com>
5607
5608 * tui/tui-winsource.h (tui_erase_source_content)
5609 (tui_clear_source_content): Remove "display_prompt" parameter.
5610 * tui/tui-winsource.c (tui_update_source_window_as_is)
5611 (tui_update_source_windows_with_addr): Update.
5612 (tui_clear_source_content): Remove "display_prompt" parameter.
5613 (tui_erase_source_content): Likewise. Simplify.
5614 (tui_show_source_content): Update.
5615 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5616 * tui/tui-stack.c (tui_show_frame_info): Update.
5617 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5618 Remove defines.
5619
9d391078
TT
56202019-07-17 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5623 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5624 parameter.
5625 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5626 parameter.
5627
a38da35d
TT
56282019-07-17 Tom Tromey <tom@tromey.com>
5629
5630 * tui/tui-winsource.c (tui_clear_source_content)
5631 (tui_show_source_content, tui_show_exec_info_content)
5632 (tui_clear_exec_info_content): Update.
5633 * tui/tui-stack.c (tui_show_locator_content): Update.
5634 (tui_show_frame_info): Update.
5635 * tui/tui-source.h (tui_source_window): Don't declare.
5636 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5637 from tui_source_is_displayed.
5638 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5639 Remove field.
5640 (struct tui_source_window_base) <content_in_use>: New field. Now
5641 bool.
5642 (struct tui_source_window) <showing_source_p>: New method.
5643 (TUI_SRC_WIN): Change cast.
5644 * tui/tui-data.c (tui_initialize_static_data): Update.
5645
c2cd8994
TT
56462019-07-17 Tom Tromey <tom@tromey.com>
5647
5648 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5649 location_matches_p.
5650 * tui/tui-source.c (tui_source_window::location_matches_p): New
5651 method.
5652 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5653 method.
5654 * tui/tui-data.h (struct tui_source_window_base)
5655 <location_matches_p>: New method.
5656 (struct tui_source_window, struct tui_disasm_window)
5657 <location_matches_p>: Likewise.
5658
4dde7b34
TT
56592019-07-17 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-win.c (tui_set_win_height_command): Rename from
5662 tui_set_win_height.
5663 (tui_set_win_height_command): Remove.
5664
b73dd877
TT
56652019-07-17 Tom Tromey <tom@tromey.com>
5666
5667 * tui/tui-source.c (tui_source_window): New constructor. Add
5668 observer.
5669 (~tui_source_window): New destructor.
5670 (tui_source_window::style_changed): New method.
5671 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5672 (tui_attach_detach_observers): Update.
5673 * tui/tui-data.h (struct tui_source_window): Make constructor not
5674 inline. Add destructor.
5675 (struct tui_source_window) <style_changed>: New method.
5676 <m_observable>: New member.
5677
ae2b5380
TT
56782019-07-17 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5681 * tui/tui-win.c (tui_resize_all): Fix typo.
5682
1ce3e844
TT
56832019-07-17 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5686 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5687 (tui_refresh_all): Remove "list" parameter. Use foreach.
5688 * tui/tui-win.c (window_name_completer): Use foreach.
5689 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5690 (update_tab_width): Likewise.
5691 * tui/tui-layout.c (show_layout): Update.
5692 * tui/tui-data.h (class tui_window_iterator): New.
5693 (struct all_tui_windows): New.
5694 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5695
fe3eaf1c
TT
56962019-07-17 Tom Tromey <tom@tromey.com>
5697
5698 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5699 parameter. Don't reference globals.
5700 (tui_reg_command): Update.
5701
368c1354
TT
57022019-07-17 Tom Tromey <tom@tromey.com>
5703
5704 * tui/tui-regs.c (tui_show_registers): Simplify.
5705
e80cd204
TT
57062019-07-17 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-regs.c (tui_show_registers): Update.
5709 (tui_show_register_group): Add win_info parameter.
5710
aca2dd16
TT
57112019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5714 Rename from tui_display_reg_element_at_line.
5715 (tui_data_window::display_registers_from_line): Update.
5716 * tui/tui-data.h (struct tui_data_window)
5717 <display_reg_element_at_line>: New method.
5718
517e9505
TT
57192019-07-17 Tom Tromey <tom@tromey.com>
5720
5721 * tui/tui-regs.h (tui_display_registers_from)
5722 (tui_display_registers_from_line): Don't declare.
5723 * tui/tui-windata.c (tui_data_window::display_all_data)
5724 (tui_data_window::refresh_all)
5725 (tui_data_window::do_scroll_vertical): Update.
5726 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5727 from tui_display_registers_from.
5728 (tui_display_reg_element_at_line): Update.
5729 (tui_data_window::display_registers_from_line): Rename from
5730 tui_display_registers_from_line.
5731 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5732 display_registers_from_line>: New methods.
5733
f76d8b19
TT
57342019-07-17 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5737 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5738 from tui_erase_data_content.
5739 (tui_data_window::display_all_data)
5740 (tui_data_window::refresh_all)
5741 (tui_data_window::do_scroll_vertical): Update.
5742 * tui/tui-regs.c (tui_show_registers): Update.
5743 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5744 New method.
5745
b4094625
TT
57462019-07-17 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5749 declare.
5750 * tui/tui-windata.c
5751 (tui_data_window::delete_data_content_windows): Rename from
5752 tui_delete_data_content_windows.
5753 (tui_data_window::display_all_data)
5754 (tui_data_window::do_scroll_vertical): Update.
5755 * tui/tui-data.h (struct tui_data_window)
5756 <delete_data_content_windows>: New method.
5757
c223a729
TT
57582019-07-17 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5761 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5762
50daf268
TT
57632019-07-17 Tom Tromey <tom@tromey.com>
5764
5765 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5766 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5767 from tui_display_all_data.
5768 * tui/tui-win.c
5769 (tui_data_window::do_make_visible_with_new_height): Update.
5770 * tui/tui-regs.c (tui_show_registers): Update.
5771 * tui/tui-layout.c (tui_set_layout): Update.
5772 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5773 method.
5774
df5f8cab
TT
57752019-07-17 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5778 * tui/tui-windata.c (tui_display_data_from): Remove.
5779 (tui_data_window::refresh_all): Update.
5780
80cb6c27
TT
57812019-07-17 Tom Tromey <tom@tromey.com>
5782
5783 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5784 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5785 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5786 tui_display_registers_from_line.
5787 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5788 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5789 "force_display" parameter.
5790
baff0c28
TT
57912019-07-17 Tom Tromey <tom@tromey.com>
5792
5793 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5794 declare.
5795 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5796 Rename from tui_first_reg_element_no_inline.
5797 (tui_display_reg_element_at_line)
5798 (tui_display_registers_from_line): Update.
5799 * tui/tui-data.h (struct tui_data_window)
5800 <first_reg_element_no_inline>: New method.
5801
3b23c5f2
TT
58022019-07-17 Tom Tromey <tom@tromey.com>
5803
5804 * tui/tui-windata.c (tui_display_data_from)
5805 (tui_data_window::do_scroll_vertical): Update.
5806 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5807 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5808 Rename from tui_line_from_reg_element_no.
5809 (tui_display_registers_from_line): Update.
5810 * tui/tui-data.h (struct tui_data_window)
5811 <line_from_reg_element_no>: New method.
5812
0b5ec218
TT
58132019-07-17 Tom Tromey <tom@tromey.com>
5814
5815 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5816 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5817 tui_last_regs_line_no.
5818 (tui_display_reg_element_at_line)
5819 (tui_display_registers_from_line): Update.
5820 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5821 method.
5822
0807ab7b
TT
58232019-07-17 Tom Tromey <tom@tromey.com>
5824
5825 PR tui/24722:
5826 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5827 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5828 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5829 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5830 (tui_update_breakpoint_info): Likewise.
5831 * tui/tui-hooks.c (tui_event_create_breakpoint)
5832 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5833 Update.
5834
9ad7fdef
TT
58352019-07-17 Tom Tromey <tom@tromey.com>
5836
5837 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5838
5813316f
TT
58392019-07-17 Tom Tromey <tom@tromey.com>
5840
5841 * tui/tui-winsource.c (tui_update_source_window_as_is)
5842 (tui_update_source_windows_with_addr): Update.
5843 * tui/tui-source.h (tui_set_source_content)
5844 (tui_show_symtab_source): Add "win_info" parameter.
5845 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5846 parameter.
5847 (tui_show_symtab_source): Likewise.
5848
00e264e7
TT
58492019-07-17 Tom Tromey <tom@tromey.com>
5850
5851 * tui/tui-wingeneral.c
5852 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5853
06210ce4
TT
58542019-07-17 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5857 (struct tui_cmd_window) <can_scroll>: New method.
5858 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5859 method.
5860
381befee
TT
58612019-07-17 Tom Tromey <tromey@adacore.com>
5862
5863 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5864 do_field_signed>: Rename. Change type of "value".
5865 * ui-out.c (ui_out::field_signed): Rename from field_int.
5866 Change type of "value".
5867 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5868 type of "value".
5869 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5870 do_field_int. Change type of "value".
5871 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5872 do_field_int. Change type of "value".
5873 * tracepoint.c (trace_status_mi, tfind_1)
5874 (print_one_static_tracepoint_marker): Update.
5875 * thread.c (print_thread_info_1, print_selected_thread_frame):
5876 Update.
5877 * stack.c (print_frame, print_frame_info): Update.
5878 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5879 Update.
5880 * source.c (print_source_lines_base): Update.
5881 * skip.c (info_skip_command): Update.
5882 * record-btrace.c (btrace_ui_out_decode_error)
5883 (btrace_call_history_src_line): Update.
5884 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5885 Update.
5886 * progspace.c (print_program_space): Update.
5887 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5888 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5889 do_field_int. Change type of "value".
5890 * mi/mi-out.c (mi_ui_out::do_table_begin)
5891 (mi_ui_out::do_table_header): Update.
5892 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5893 type of "value".
5894 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5895 (mi_cmd_data_list_changed_registers, output_register)
5896 (mi_cmd_data_read_memory, mi_load_progress)
5897 (mi_cmd_trace_frame_collected): Update.
5898 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5899 Update.
5900 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5901 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5902 (mi_cmd_var_list_children, varobj_update_one): Update.
5903 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5904 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5905 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5906 * inferior.c (print_inferior): Update.
5907 * gdb_bfd.c (print_one_bfd): Update.
5908 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5909 Update.
5910 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5911 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5912 do_field_int. Change type of "value".
5913 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5914 do_field_int. Change type of "value".
5915 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5916 (print_one_breakpoint_location, print_it_catch_fork)
5917 (print_one_catch_fork, print_it_catch_vfork)
5918 (print_one_catch_vfork, print_it_catch_solib)
5919 (print_it_catch_exec, print_it_ranged_breakpoint)
5920 (print_mention_watchpoint, print_mention_masked_watchpoint)
5921 (bkpt_print_it, update_static_tracepoint): Update.
5922 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5923 * break-catch-syscall.c (print_it_catch_syscall): Update.
5924 * ada-tasks.c (print_ada_task_info): Update.
5925 * ada-lang.c (print_it_exception, print_mention_exception):
5926 Update.
5927
6b78c3f8
AB
59282019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 PR breakpoints/24541
5931 * gdbarch.c: Regenerate.
5932 * gdbarch.h: Regenerate.
5933 * gdbarch.sh: Adjust return type and parameter types for
5934 'stap_adjust_register'.
5935 (i386_stap_adjust_register): Adjust signature and return new
5936 register name.
5937 * stap-probe.c (stap_parse_register_operand): Adjust use of
5938 'gdbarch_stap_adjust_register'.
5939
d72a9b85
TT
59402019-07-17 Tom Tromey <tromey@adacore.com>
5941
5942 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5943 declare VEC.
5944 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5945 std::vector.
5946 (struct s390_process_info): Add initializers.
5947 (s390_add_process): Use new.
5948 (s390_linux_nat_target::low_forget_process): Use delete.
5949 (s390_linux_nat_target::low_new_fork)
5950 (s390_linux_nat_target::stopped_by_watchpoint)
5951 (s390_linux_nat_target::low_prepare_to_resume)
5952 (s390_linux_nat_target::insert_watchpoint)
5953 (s390_linux_nat_target::insert_hw_breakpoint)
5954 (s390_linux_nat_target::remove_watchpoint)
5955 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5956
206e6c58
JB
59572019-07-16 John Baldwin <jhb@FreeBSD.org>
5958
5959 * aarch64-fbsd-nat.c: Include regcache.h.
5960 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5961 argument.
5962 (aarch64_fbsd_nat_target::fetch_registers)
5963 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5964 variable.
5965 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5966
cbde90f2
JB
59672019-07-16 John Baldwin <jhb@FreeBSD.org>
5968
5969 * fbsd-nat.c: Include gdbarch.h.
5970
07128006
TT
59712019-07-15 Tom Tromey <tromey@adacore.com>
5972
5973 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5974
1f77b012
TT
59752019-07-15 Tom Tromey <tromey@adacore.com>
5976
5977 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5978 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5979 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5980 * cli-out.c (cli_ui_out::do_field_int): New method.
5981 * ui-out.c (ui_out::field_unsigned): New method.
5982 * symfile.c (generic_load): Use field_unsigned.
5983 (print_transfer_performance): Likewise.
5984 * record-btrace.c (ui_out_field_uint): Remove.
5985 (btrace_call_history_insn_range, btrace_call_history): Use
5986 field_unsigned.
5987 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5988 field_unsigned.
5989 * ui-out.h (class ui_out) <field_unsigned>: New method.
5990 <do_field_unsigned>: Likewise.
5991
33eca680
TT
59922019-07-15 Tom Tromey <tromey@adacore.com>
5993
5994 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5995 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5996 * target.c (flash_erase_command): Use field_string.
5997 * infrun.c (print_signal_received_reason): Use field_string.
5998 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5999 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6000 field_string.
6001 * ada-tasks.c (print_ada_task_info): Use field_string.
6002
ca8d69be
TT
60032019-07-15 Tom Tromey <tromey@adacore.com>
6004
6005 * target.c (flash_erase_command): Use field_core_addr.
6006 * symfile.c (generic_load): Use field_core_addr.
6007 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6008 Use field_core_addr.
6009 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6010 field_core_addr.
6011
0d4e84ed
AB
60122019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6015 value if its desired type is smaller than a CORE_ADDR and signed.
6016
9a49df9d
AB
60172019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6018
6019 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6020 of changes to field names, and use new is_reference field to
6021 decide if a property is a reference or not.
6022 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6023 field.
6024 (struct dwarf2_property_baton): Update header comment, rename
6025 'referenced_type' to 'property_type' and update comments.
6026 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6027 default property type, store in property baton, update to take
6028 accound of renamed field.
6029 (read_func_scope): Update call to attr_to_dynamic_prop.
6030 (read_array_type): Likewise.
6031 (dwarf2_per_cu_addr_sized_int_type): New function.
6032 (read_subrange_index_type): Move type finding code to
6033 dwarf2_per_cu_addr_sized_int_type.
6034 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6035 (dwarf2_per_cu_addr_type): New function.
6036 (set_die_type): Update calls to attr_to_dynamic_prop.
6037
b86352cf
AB
60382019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * dwarf2read.c (read_subrange_index_type): New function.
6041 (read_subrange_type): Move code into new function and call it.
6042 * gdbtypes.c (create_range_type): Add some asserts.
6043
603490bf
AB
60442019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6047 update return statements.
6048 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6049 declaration, and update comment to match.
6050 * gdbtypes.c (resolve_dynamic_array): Update call to
6051 dwarf2_evaluate_property to match new return type.
6052
592f9d27
AB
60532019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6054
6055 * valarith.c (value_subscripted_rvalue): Change lowerbound
6056 parameter type from int to LONGEST.
6057 * value.h (value_subscripted_rvalue): Likewise in declaration.
6058
60cfcb20
AB
60592019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * cli/cli-utils.c (info_print_command_completer): New function.
6062 * cli/cli-utils.h: Add 'completer.h' include, and forward
6063 declaration for 'struct cmd_list_element'.
6064 (info_print_command_completer): Declare.
6065 * stack.c (_initialize_stack): Add completer for 'info locals' and
6066 'info args'.
6067 * symtab.c (_initialize_symtab): Add completer for 'info
6068 variables' and 'info functions'.
6069 * NEWS: Mention completion for additional info commands.
6070
b16507e0
AB
60712019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6072
6073 * cli/cli-utils.c (extract_info_print_args): Delete.
6074 (extract_arg_maybe_quoted): Delete.
6075 (info_print_options_defs): New variable.
6076 (make_info_print_options_def_group): New function.
6077 (extract_info_print_options): Define new function.
6078 * cli/cli-utils.h (extract_info_print_args): Delete.
6079 (struct info_print_options): New structure.
6080 (extract_info_print_options): Declare new function.
6081 * stack.c (info_locals_command): Update to use new
6082 extract_info_print_options, also add a header comment.
6083 (info_args_command): Likewise.
6084 * symtab.c (info_variables_command): Likewise.
6085 (info_functions_command): Likewise.
6086
021d8588
AB
60872019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6088
6089 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6090 to extract string arguments.
6091 * common/common-utils.c (extract_string_maybe_quoted): New function.
6092 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6093
b777eb6d
TT
60942019-07-11 Tom Tromey <tromey@adacore.com>
6095
6096 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6097 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6098 * top.h (gdbinit): Don't declare.
6099 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6100 into...
6101 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6102 * top.c (gdb_init): Don't call init_cli_cmds.
6103 (gdbinit): Remove.
6104 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6105
72ee03ff
TT
61062019-07-11 Tom Tromey <tromey@adacore.com>
6107
6108 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6109 after it has been moved.
6110
00db9531
SM
61112019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * valops.c (value_must_coerce_to_target): Change return type to
6114 bool.
6115 * value.h (value_must_coerce_to_target): Likewise.
6116
f2478a7e
SM
61172019-07-10 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * breakpoint.c (is_hardware_watchpoint): Remove
6120 forward-declaration.
6121 (is_masked_watchpoint): Change return type to bool.
6122 (is_tracepoint): Likewise.
6123 (is_breakpoint): Likewise.
6124 (is_hardware_watchpoint): Likewise.
6125 (is_watchpoint): Likewise.
6126 (is_no_memory_software_watchpoint): Likewise.
6127 (is_catchpoint): Likewise.
6128 (breakpoint_1): Make FILTER parameter's return type bool.
6129 is_masked_watchpoint): Change return type to bool.
6130 (save_breakpoints): Make FILTER parameter's return type bool.
6131 * breakpoint.h (is_breakpoint): Change return type to bool.
6132 (is_watchpoint): Likewise.
6133 (is_catchpoint): Likewise.
6134 (is_tracepoint): Likewise.
6135
0d12e84c
TT
61362019-07-10 Tom Tromey <tom@tromey.com>
6137
6138 * defs.h: Don't include gdbarch.h.
6139 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6140 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6141 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6142 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6143 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6144 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6145 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6146 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6147 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6148 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6149 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6150 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6151 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6152 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6153 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6154 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6155 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6156 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6157 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6158 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6159 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6160 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6161 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6162 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6163 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6164 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6165 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6166
f06f1252
TT
61672019-07-10 Tom Tromey <tromey@adacore.com>
6168
6169 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6170 * breakpoint.c (init_ada_exception_breakpoint): Register as
6171 bp_catchpoint.
6172 (print_one_breakpoint_location, print_one_breakpoint): Use
6173 is_ada_exception_catchpoint.
6174 * ada-lang.c (class ada_catchpoint_location): Pass
6175 bp_loc_software_breakpoint to bp_location constructor.
6176 (is_ada_exception_catchpoint): New function.
6177
7a5d944b
TT
61782019-07-10 Tom Tromey <tromey@adacore.com>
6179
6180 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6181 VEC.
6182 (struct arm_exidx_entry): New method operator<.
6183 (struct arm_exidx_data) <section_maps>: Change type.
6184 (arm_exidx_data_free): Remove.
6185 (arm_exidx_data_key): Change type. Move lower.
6186 (arm_exidx_new_objfile): Update.
6187 (arm_compare_exidx_entries): Remove.
6188 (arm_find_exidx_entry, _initialize_arm_tdep)
6189
48c66e1d
TT
61902019-07-10 Tom Tromey <tromey@adacore.com>
6191
6192 * solib-spu.c (ocl_program_data_key): Change type.
6193 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6194 Update.
6195
a269fbf1
TT
61962019-07-10 Tom Tromey <tromey@adacore.com>
6197
6198 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6199 (struct solib_aix_inferior_data) <library_list>: Change type.
6200 (solib_aix_inferior_data_handle): Change type.
6201 (get_solib_aix_inferior_data): Update.
6202 (solib_aix_free_library_list): Remove.
6203 (library_list_start_library): Update.
6204 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6205 return type.
6206 (solib_aix_get_library_list)
6207 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6208 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6209
c294730c
TT
62102019-07-10 Tom Tromey <tromey@adacore.com>
6211
6212 * solib-dsbt.c (struct dsbt_info): Add initializers.
6213 (solib_dsbt_pspace_data): Change type.
6214 (dsbt_pspace_data_cleanup): Remove.
6215 (get_dsbt_info, _initialize_dsbt_solib): Update.
6216
9d52077d
TT
62172019-07-10 Tom Tromey <tromey@adacore.com>
6218
6219 * spu-tdep.c (spu_overlay_data): Change type.
6220 (spu_get_overlay_table, spu_overlay_new_objfile)
6221 (_initialize_spu_tdep): Update.
6222
22a20dca
TT
62232019-07-10 Tom Tromey <tromey@adacore.com>
6224
6225 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6226 destructor.
6227 (dbx_objfile_data_key): Change type and declare later.
6228 (DBX_SYMFILE_INFO): Rewrite.
6229 * dbxread.c (dbx_objfile_data_key): Change type.
6230 (dbx_symfile_init): Update.
6231 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6232 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6233 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6234
cb60f420
TT
62352019-07-10 Tom Tromey <tromey@adacore.com>
6236
6237 * jit.c (jit_program_space_key): Change type. Move lower.
6238 (get_jit_program_space_data): Update.
6239 (jit_program_space_data_cleanup): Remove.
6240 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6241 Update.
6242 (struct jit_program_space_data): Add initializers.
6243
51df2ae3
TT
62442019-07-10 Tom Tromey <tromey@adacore.com>
6245
6246 * solib-darwin.c (struct darwin_info): Add initializers.
6247 (solib_darwin_pspace_data): Change type.
6248 (darwin_pspace_data_cleanup): Remove.
6249 (get_darwin_info, _initialize_darwin_solib): Update.
6250
18101a35
TT
62512019-07-10 Tom Tromey <tromey@adacore.com>
6252
6253 * remote-sim.c (struct sim_inferior_data): Add initializers,
6254 constructor, and destructor.
6255 (sim_inferior_data_key): Change type. Move lower.
6256 (check_for_duplicate_sim_descriptor): Update.
6257 (get_sim_inferior_data): Use new. Update.
6258 (~sim_inferior_data_cleanup): Rename from
6259 sim_inferior_data_cleanup. Simplify.
6260 (gdbsim_close_inferior, simulator_command)
6261 (sim_command_completer, _initialize_remote_sim): Update.
6262 (next_pid, INITIAL_PID): Move earlier.
6263
05b08ac1
TT
62642019-07-10 Tom Tromey <tromey@adacore.com>
6265
6266 * python/python-internal.h (create_thread_object): Return
6267 gdbpy_ref.
6268 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6269 * python/py-inferior.c (struct threadlist_entry): Add
6270 constructor.
6271 <thread_obj>: Now a gdbpy_ref.
6272 (thread_to_thread_object): Update.
6273 (add_thread_object): Use new.
6274 (delete_thread_object): Use delete.
6275 (infpy_threads): Update.
6276 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6277 GIL.
6278
32372d80
TT
62792019-07-10 Tom Tromey <tromey@adacore.com>
6280
6281 * valops.c (value_cast): Specialize error message for Ada.
6282
5c458ae8
SM
62832019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6286
4c462cb0
SM
62872019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6290 bpstat_should_step): Return bool, adjust comments.
6291 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6292 bpstat_should_step): Likewise.
6293
89abbcc2
AH
62942019-07-10 Alan Hayward <alan.hayward@arm.com>
6295
6296 * features/Makefile: Use feature target descriptions for Arm.
6297 * features/arm/arm-core.c: Generate new file.
6298 * features/arm/arm-fpa.c: Likewise.
6299 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6300 * features/arm/arm-m-profile.c: Likewise.
6301 * features/arm/arm-vfpv2.c: Likewise.
6302 * features/arm/arm-vfpv3.c: Likewise.
6303 * features/arm/xscale-iwmmxt.c: Likewise.
6304 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6305
166a82be
AH
63062019-07-10 Alan Hayward <alan.hayward@arm.com>
6307
6308 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6309 ptrace earlier.
6310
9fb4c7e9
AH
63112019-07-10 Alan Hayward <alan.hayward@arm.com>
6312
6313 * features/aarch64-pauth.c: Regenerate.
6314
e2d0f980
SM
63152019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6316
6317 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6318 bool.
6319 (bpstat_what): Use false instead of 0.
6320
a38118e5
PA
63212019-07-09 Pedro Alves <palves@redhat.com>
6322
6323 * break-catch-throw.c (is_exception_catchpoint): New.
6324 * breakpoint.c (print_one_breakpoint_location): New parameter
6325 'raw_loc'. Handle it. Use
6326 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6327 looking at the breakpoint's type.
6328 (print_one_breakpoint): If handling "maint info breakpoints", also
6329 print locations of exception catchpoints.
6330 * breakpoint.h (is_exception_catchpoint): Declare.
6331
cb1e4e32
PA
63322019-07-09 Pedro Alves <palves@redhat.com>
6333
6334 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6335 "addr" field.
6336 (allocate_location_exception_catchpoint): New.
6337 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6338 (initialize_throw_catchpoint_ops): Install
6339 allocate_location_exception_catchpoint as allocate_location
6340 method.
6341 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6342 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6343 bp_loc_other.
6344 (breakpoint_address_is_meaningful): Delete.
6345 (bl_address_is_meaningful): New.
6346 (breakpoint_locations_match): Adjust comment.
6347 (bp_location_from_bp_type): New, factored out of...
6348 (bp_location::bp_location(breakpoint *)): ... this.
6349 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6350 factored out of...
6351 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6352 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6353 breakpoint_address_is_meaningful.
6354 (bp_locations_compare): Adjust comment.
6355 (update_global_location_list): Use bl_address_is_meaningful
6356 instead of breakpoint_address_is_meaningful.
6357 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6358 explicit.
6359 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6360 * python/py-breakpoint.c (bppy_get_location): No longer check
6361 whether location is null.
6362
b58a68fe
PA
63632019-07-09 Pedro Alves <palves@redhat.com>
6364
6365 PR c++/15468
6366 * breakpoint.c (print_one_breakpoint_location): Remove
6367 single-location assert.
6368
268a13a5
TT
63692019-07-09 Tom Tromey <tom@tromey.com>
6370
6371 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6372 * configure: Rebuild.
6373 * configure.ac: Change common to gdbsupport.
6374 * gdbsupport: Rename from common.
6375 * acinclude.m4: Change common to gdbsupport.
6376 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6377 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6378 gdbsupport.
6379 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6380 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6381 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6382 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6383 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6384 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6385 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6386 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6387 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6388 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6389 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6390 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6391 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6392 coff-pe-read.c, command.h, compile/compile-c-support.c,
6393 compile/compile-c.h, compile/compile-cplus-symbols.c,
6394 compile/compile-cplus-types.c, compile/compile-cplus.h,
6395 compile/compile-loc2c.c, compile/compile.c, completer.c,
6396 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6397 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6398 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6399 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6400 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6401 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6402 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6403 features/aarch64-core.c, features/aarch64-fpu.c,
6404 features/aarch64-pauth.c, features/aarch64-sve.c,
6405 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6406 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6407 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6408 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6409 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6410 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6411 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6412 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6413 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6414 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6415 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6416 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6417 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6418 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6419 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6420 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6421 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6422 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6423 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6424 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6425 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6426 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6427 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6428 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6429 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6430 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6431 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6432 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6433 minsyms.c, mips-linux-tdep.c, namespace.h,
6434 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6435 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6436 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6437 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6438 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6439 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6440 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6441 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6442 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6443 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6444 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6445 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6446 procfs.c, producer.c, progspace.h, psymtab.h,
6447 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6448 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6449 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6450 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6451 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6452 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6453 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6454 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6455 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6456 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6457 target-memory.c, target.c, target.h, target/waitstatus.c,
6458 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6459 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6460 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6461 unittests/array-view-selftests.c,
6462 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6463 unittests/common-utils-selftests.c,
6464 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6465 unittests/format_pieces-selftests.c,
6466 unittests/function-view-selftests.c,
6467 unittests/lookup_name_info-selftests.c,
6468 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6469 unittests/mkdir-recursive-selftests.c,
6470 unittests/observable-selftests.c,
6471 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6472 unittests/parse-connection-spec-selftests.c,
6473 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6474 unittests/scoped_fd-selftests.c,
6475 unittests/scoped_mmap-selftests.c,
6476 unittests/scoped_restore-selftests.c,
6477 unittests/string_view-selftests.c, unittests/style-selftests.c,
6478 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6479 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6480 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6481 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6482 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6483 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6484
5b0e2db4
AB
64852019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6488 bool value.
6489 (decode_digits_ordinary): Set explicit_line field in sal.
6490 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6491 symtab_and_line that was set on an explicit line number in
6492 assembler code. Do always update the recorded symtab and line if
6493 we do skip the prologue.
6494
0ba852ab
AB
64952019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6496
6497 * breakpoint.c (set_breakpoint_location_function): Remove
6498 explicit_loc parameter.
6499 (momentary_breakpoint_from_master): Update call to
6500 set_breakpoint_location_function.
6501 (add_location_to_breakpoint): Likewise.
6502
b3a7d171
AB
65032019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6504
6505 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6506 required features based on default bfd type when no specific bfd
6507 is present.
6508
1f6f6e21
PW
65092019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6510
6511 * NEWS: Mention that GDB printf and eval commands can now print
6512 C-style and Ada-style convenience var strings without
6513 calling the inferior.
6514 * printcmd.c (printf_c_string): Locally print GDB internal var
6515 instead of transiting via the inferior.
6516 (printf_wide_c_string): Likewise.
6517
65182019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6519
5862c886 6520 PR breakpoints/25011
ea142fbf
AH
6521 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6522
0598af48
TT
65232019-07-04 Tom Tromey <tom@tromey.com>
6524
6525 PR tui/24724:
6526 * tui/tui-winsource.c (tui_clear_source_content): Update.
6527 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6528 (tui_update_breakpoint_info): Update.
6529 (tui_set_exec_info_content): Update.
6530 * tui/tui-source.c (tui_set_source_content_nil): Update.
6531 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6532 has_break.
6533 * tui/tui-data.h (enum tui_bp_flag): New.
6534 (tui_bp_flags): New enum flags type.
6535 (struct tui_source_element) <break_mode>: Change type. Rename
6536 from has_break.
6537 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6538 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6539 constants.
6540 * tui/tui-winsource.h: Fix comment.
6541
350fab54
AH
65422019-07-04 Alan Hayward <alan.hayward@arm.com>
6543
6544 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6545 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6546 (store_fpregs_to_thread)
6547 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6548 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6549 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6550 (IWMMXT_REGS_SIZE): Add define.
6551 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6552 (fetch_vfp_regs, store_vfp_regs)
6553 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6554 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6555
f0452268
AH
65562019-07-04 Alan Hayward <alan.hayward@arm.com>
6557
6558 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6559 defines.
6560 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6561 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6562 (ARM_INT_REGISTER_SIZE): ...to this.
6563 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6564 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6565 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6566 (arm_linux_collect_gregset, supply_nwfpe_register)
6567 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6568 defines.
6569 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6570 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6571 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6572 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6573 (arm_return_in_memory, arm_store_return_value)
6574 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6575 (arm_record_ld_st_multiple): Likewise.
6576 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6577 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6578
e935475c
AH
65792019-07-04 Alan Hayward <alan.hayward@arm.com>
6580
6581 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6582 AARCH64_DISPLACED_MODIFIED_INSNS.
6583 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6584 (aarch64_displaced_step_copy_insn): Likewise.
6585 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6586 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6587 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6588 ARM_DISPLACED_MODIFIED_INSNS.
6589 * arm-tdep.c (arm_gdbarch_init): Likewise.
6590 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6591 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6592 (struct arm_displaced_step_closure): Use
6593 ARM_DISPLACED_MODIFIED_INSNS.
6594
df0bb381
AH
65952019-07-04 Alan Hayward <alan.hayward@arm.com>
6596
6597 * features/Makefile: Remove unused xml files.
6598 * features/aarch64.xml: Remove.
6599 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6600 * features/i386/amd64-avx-avx512.xml: Remove.
6601 * features/i386/amd64-avx-linux.xml: Remove.
6602 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6603 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6604 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6605 * features/i386/amd64-avx-mpx.xml: Remove.
6606 * features/i386/amd64-avx.xml: Remove.
6607 * features/i386/amd64-linux.xml: Remove.
6608 * features/i386/amd64-mpx-linux.xml: Remove.
6609 * features/i386/amd64-mpx.xml: Remove.
6610 * features/i386/amd64.xml: Remove.
6611 * features/i386/i386-avx-avx512-linux.xml: Remove.
6612 * features/i386/i386-avx-avx512.xml: Remove.
6613 * features/i386/i386-avx-linux.xml: Remove.
6614 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6615 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6616 * features/i386/i386-avx-mpx-linux.xml: Remove.
6617 * features/i386/i386-avx-mpx.xml: Remove.
6618 * features/i386/i386-avx.xml: Remove.
6619 * features/i386/i386-linux.xml: Remove.
6620 * features/i386/i386-mmx-linux.xml: Remove.
6621 * features/i386/i386-mmx.xml: Remove.
6622 * features/i386/i386-mpx-linux.xml: Remove.
6623 * features/i386/i386-mpx.xml: Remove.
6624 * features/i386/i386.xml: Remove.
6625 * features/i386/x32-avx-avx512-linux.xml: Remove.
6626 * features/i386/x32-avx-linux.xml: Remove.
6627 * features/i386/x32-linux.xml: Remove.
6628
edd6266a
AH
66292019-07-04 Alan Hayward <alan.hayward@arm.com>
6630
6631 * regformats/aarch64.dat: Remove.
6632 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6633 * regformats/i386/amd64-avx-linux.dat: Remove.
6634 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6635 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6636 * regformats/i386/amd64-linux.dat: Remove.
6637 * regformats/i386/amd64-mpx-linux.dat: Remove.
6638 * regformats/i386/amd64.dat: Remove.
6639 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6640 * regformats/i386/i386-avx-linux.dat: Remove.
6641 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6642 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6643 * regformats/i386/i386-linux.dat: Remove.
6644 * regformats/i386/i386-mmx-linux.dat: Remove.
6645 * regformats/i386/i386-mpx-linux.dat: Remove.
6646 * regformats/i386/i386.dat: Remove.
6647 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6648 * regformats/i386/x32-avx-linux.dat: Remove.
6649 * regformats/i386/x32-linux.dat: Remove.
6650
2b40fda7
AH
66512019-07-04 Alan Hayward <alan.hayward@arm.com>
6652
6653 * aarch64-tdep.c: Remove xml self tests.
6654 * amd64-linux-tdep.c: Likewise.
6655 * amd64-tdep.c: Likewise.
6656 * i386-linux-tdep.c: Likewise.
6657 * i386-tdep.c: Likewise.
6658
5f4ba3e7
PA
66592019-07-03 Pedro Alves <palves@redhat.com>
6660
6661 PR cli/24732
6662 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6663 (pipe_cmd_option_defs): New.
6664 (make_pipe_cmd_options_def_group): New.
6665 (pipe_command): Use gdb::option::process_options.
6666 (pipe_command_completer): New function.
6667 (_initialize_cli_cmds): Install completer for "pipe" command.
6668
3d9be6f5
PA
66692019-07-03 Pedro Alves <palves@redhat.com>
6670
6671 * cli/cli-option.c (union option_value) <string>: New field.
6672 (struct option_def_and_value): Add ctor, move ctor, dtor and
6673 use DISABLE_COPY_AND_ASSIGN.
6674 (option_def_and_value::clear_value): New.
6675 (parse_option, save_option_value_in_ctx, get_val_type_str)
6676 (add_setshow_cmds_for_options): Handle var_string.
6677 * cli-option.h (union option_def::var_address) <string>: New
6678 field.
6679 (struct string_option_def): New.
6680 * maint-test-options.c (struct test_options_opts): Add default
6681 ctor and use DISABLE_COPY_AND_ASSIGN.
6682 <string_opt>: New field.
6683 (test_options_opts::~test_options_opts): New.
6684 (test_options_opts::dump): Also dump "-string".
6685 (test_options_option_defs): Install "string.
6686
41fc454c
PA
66872019-07-03 Pedro Alves <palves@redhat.com>
6688
6689 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6690 option_value with a null enumeration.
6691 (complete_options): Save the option values in the context.
6692 (save_option_value_in_ctx): New, factored out from ...
6693 (process_options): ... here.
6694 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6695 of the function.
6696 * maint-test-options.c (test_options_opts::dump): New, factored
6697 out from ...
6698 (maintenance_test_options_command_mode): ... here.
6699 (maintenance_test_options_command_completion_result): Delete.
6700 (maintenance_test_options_command_completion_text): Update
6701 comment.
6702 (maintenance_show_test_options_completion_result): Change
6703 prototype. Just print
6704 maintenance_test_options_command_completion_text.
6705 (save_completion_result): New.
6706 (maintenance_test_options_completer_mode): Pass options context to
6707 complete_options, and then save a dump.
6708 (_initialize_maint_test_options): Use add_cmd to install "maint
6709 show test-options-completion-result".
6710
fdbc9870
PA
67112019-07-03 Pedro Alves <palves@redhat.com>
6712
6713 * NEWS (New commands): Mention "with" and "maint with".
6714 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6715 (with_command, with_command_completer): New.
6716 (pipe_command): Adjust to new repeat_previous
6717 interface.
6718 (_initialize_cli_cmds): Install the "with" command and its "w"
6719 alias.
6720 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6721 declarations.
6722 * cli/cli-setshow.c (parse_cli_var_uinteger)
6723 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6724 argument strings for all var_types.
6725 (get_setshow_command_value_string): New, factored out from ...
6726 (do_show_command): ... this.
6727 * cli/cli-setshow.h: Include <string>.
6728 (get_setshow_command_value_string): Declare.
6729 * command.h (repeat_previous): Now returns const char *. Adjust
6730 comment.
6731 * maint.c: Include "cli/cli-cmds.h".
6732 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6733 (_initialize_maint_cmds): Register the "maintenance with" command.
6734 * top.c (repeat_previous): Move bits from pipe_command here:
6735 Return the saved command line, if any; error out if there's no
6736 command to relaunch.
6737
c6ac8931
PA
67382019-07-03 Pedro Alves <palves@redhat.com>
6739
6740 * NEWS (New commands): Mention "maint set/show test-settings"
6741 instead of "maint test-settings".
6742 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6743 (maintenance_test_settings_set_list): Rename to ...
6744 (maintenance_set_test_settings_list): ... this.
6745 (maintenance_test_settings_show_list): Rename to ...
6746 (maintenance_show_test_settings_list): ... this.
6747 (maintenance_test_settings_cmd): Delete.
6748 (maintenance_test_settings_set_cmd): ...
6749 (maintenance_set_test_settings_cmd): ... this.
6750 (maintenance_test_settings_show_cmd): ...
6751 (maintenance_show_test_settings_cmd): ... this.
6752 (maintenance_test_settings_show_value_cmd):
6753 (maintenance_show_test_settings_value_cmd): ... this.
6754 (_initialize_maint_test_settings): No longer install the "maint
6755 test-settings" prefix command. Rename "maint test-settings set"
6756 to "maint set test-settings", and "maint test-settings show" to
6757 "maint show test-settings". Adjust all subcommands.
6758
d1fcf2fd
PA
67592019-07-03 Pedro Alves <palves@redhat.com>
6760
6761 * maint-test-settings.c: Fix file's intro comment. Replace all
6762 references to "test-options" with references to "test-settings",
6763 in comments.
6764
970f9d09
PA
67652019-07-03 Pedro Alves <palves@redhat.com>
6766
6767 * maint-test-settings.c (maintenance_test_settings_xxx)
6768 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6769 New.
6770 (maintenance_test_settings_enums): Use them.
6771 (maintenance_test_settings_enum): Default to
6772 maintenance_test_settings_xxx.
6773 (_initialize_maint_test_settings): Initialize
6774 MAINTENANCE_TEST_SETTINGS_FILENAME.
6775
f3869b1a
SM
67762019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 * breakpoint.h (remove_breakpoints_inf): Change return type to
6779 void, move function documentation here.
6780 * breakpoint.c (remove_breakpoints_inf): Change return type to
6781 void, move function documentation to header.
6782
54d66006
PA
67832019-07-02 Pedro Alves <palves@redhat.com>
6784
6785 * NEWS (Completion improvements): Mention "info threads".
6786 * thread.c (struct info_threads_opts, info_threads_option_defs)
6787 (make_info_threads_options_def_group): New.
6788 (info_threads_command): Use gdb::option::process_options.
6789 (info_threads_command_completer): New.
6790 (_initialize_thread): Use gdb::option::build_help to build the
6791 help text for "info threads".
6792
854f6088
SM
67932019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6794
6795 * defs.h (generic_load): Move from here...
6796 * symfile.h (generic_load): ... to here. Rename name parameter
6797 to args.
6798 * symfile.c (generic_load): Add comment.
6799
54ee4252
TT
68002019-07-01 Tom Tromey <tromey@adacore.com>
6801
6802 * dwarf2read.c
6803 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6804 declaration of without_params. Fix formatting.
6805
65392b3e
TT
68062019-07-01 Tom Tromey <tromey@adacore.com>
6807
6808 * ada-exp.y (find_primitive_type): Update.
6809 * ada-lang.h (ada_lookup_symbol): Update.
6810 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6811 parameter.
6812 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6813
7d7571f0
SDJ
68142019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6815
6816 PR breakpoints/24541
6817 * gdbarch.c: Regenerate.
6818 * gdbarch.h: Regenerate.
6819 * gdbarch.sh: Add 'stap_adjust_register'.
6820 * i386-tdep.c: Include '<unordered_set>'.
6821 (i386_stap_adjust_register): New function.
6822 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6823 * stap-probe.c (stap_parse_register_operand): Call
6824 'gdbarch_stap_adjust_register'.
6825
5af5392a
SDJ
68262019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6827
6828 PR python/24742
6829 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6830 * python/python.c (do_start_initialization): Use 'xmalloc'
6831 instead of 'PyMem_Malloc'.
6832
10d06d82
TT
68332019-06-28 Tom Tromey <tromey@adacore.com>
6834
6835 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6836 for Ada.
6837
1b7f24cd
TT
68382019-06-27 Tom Tromey <tromey@adacore.com>
6839
6840 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6841 objfile_key.
6842 (arm_find_mapping_symbol, arm_record_special_symbol)
6843 (_initialize_arm_tdep): Update.
6844 (arm_objfile_data_free): Remove.
6845
3d507ff2
TT
68462019-06-27 Tom Tromey <tromey@adacore.com>
6847
6848 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6849 to cp_print_static_field.
6850
762c164d
TT
68512019-06-26 Tom Tromey <tromey@adacore.com>
6852
6853 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6854 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6855 declare.
6856
aa2f9bcf
AH
68572019-06-26 Alan Hayward <alan.hayward@arm.com>
6858
6859 * features/aarch64-core.c (create_feature_aarch64_core):
6860 Regenerate.
6861 * features/aarch64-core.xml: Add cpsr flags.
6862
3426ae57
AH
68632019-06-26 Alan Hayward <alan.hayward@arm.com>
6864
6865 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6866 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6867
4838e44c
SM
68682019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6869
6870 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6871 field.
6872 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6873 use.
6874 (arm_record_special_symbol): Don't insert new symbol in sorted
6875 position, push it at the end.
6876
54cc7474
SM
68772019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6880 (arm_mapping_symbol_s): Remove.
6881 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6882 (arm_mapping_symbol_vec): New typedef.
6883 (struct arm_per_objfile): Add constructor.
6884 <section_maps>: Change type to
6885 std::unique_ptr<arm_mapping_symbol_vec[]>.
6886 (arm_compare_mapping_symbols): Remove.
6887 (arm_find_mapping_symbol): Adjust to section_maps type change.
6888 (arm_objfile_data_free): Call delete on arm_per_objfile.
6889 (arm_record_special_symbol): Adjust to section_maps type change.
6890 Allocate arm_per_objfile with new.
6891
b65b566c
PW
68922019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6893
6894 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6895 with the command prefix.
6896
c2fc64f5
TT
68972019-06-25 Tom Tromey <tom@tromey.com>
6898
6899 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6900 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6901
fb54fa76
TT
69022019-06-25 Tom Tromey <tom@tromey.com>
6903
6904 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6905 type.
6906 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6907 protected.
6908
f7952c57
TT
69092019-06-25 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-winsource.c
6912 (tui_source_window_base::set_is_exec_point_at): Add check against
6913 LOA_ADDRESS.
6914
17568d78
TT
69152019-06-25 Tom Tromey <tom@tromey.com>
6916
6917 * tui/tui-source.c (tui_set_source_content): Don't check before
6918 xfree.
6919 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6920
53e7cdba
TT
69212019-06-25 Tom Tromey <tom@tromey.com>
6922
6923 * tui/tui-winsource.h (tui_update_source_window_as_is)
6924 (tui_alloc_source_buffer, tui_line_is_displayed)
6925 (tui_addr_is_displayed): Change type of win_info.
6926 * tui/tui-winsource.c (tui_update_source_window_as_is)
6927 (tui_clear_source_content, tui_show_source_line)
6928 (tui_show_source_content, tui_source_window_base::refill)
6929 (tui_source_window_base::set_is_exec_point_at)
6930 (tui_source_window_base::set_is_exec_point_at)
6931 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6932 (tui_alloc_source_buffer, tui_line_is_displayed)
6933 (tui_addr_is_displayed): Change type of win_info. Update.
6934 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6935 (tui_source_window_base::do_make_visible_with_new_height):
6936 Update.
6937 * tui/tui-source.c (tui_set_source_content)
6938 (tui_set_source_content_nil)
6939 (tui_source_window::do_scroll_vertical): Update.
6940 * tui/tui-layout.c (show_layout): Update.
6941 * tui/tui-disasm.c (tui_set_disassem_content)
6942 (tui_disasm_window::do_scroll_vertical): Update.
6943 * tui/tui-data.h (tui_win_content): Remove.
6944 (struct tui_gen_win_info) <content, content_size>: Remove.
6945 (struct tui_source_element): Add initializers and destructor.
6946 (union tui_which_element, struct tui_win_element): Remove.
6947 (struct tui_source_window_base) <content>: New field.
6948 (struct tui_data_window): Remove destructor.
6949 (tui_alloc_content, tui_free_win_content)
6950 (tui_free_all_source_wins_content): Don't declare.
6951 * tui/tui-data.c (tui_initialize_static_data): Update.
6952 (init_content_element, tui_alloc_content): Remove.
6953 (~tui_gen_win_info): Update.
6954 (~tui_data_window, tui_free_all_source_wins_content)
6955 (tui_free_win_content, free_content, free_content_elements):
6956 Remove.
6957
7908abbf
TT
69582019-06-25 Tom Tromey <tom@tromey.com>
6959
6960 * tui/tui-winsource.h (tui_clear_source_content)
6961 (tui_erase_source_content, tui_show_source_content): Change type
6962 of win_info.
6963 * tui/tui-winsource.c (tui_clear_source_content)
6964 (tui_erase_source_content, tui_show_source_content): Change type
6965 of win_info.
6966 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6967 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6968 win_info.
6969 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6970 win_info.
6971 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6972
02c28df0
TT
69732019-06-25 Tom Tromey <tom@tromey.com>
6974
6975 * tui/tui-winsource.c (tui_clear_source_content)
6976 (tui_source_window_base::set_is_exec_point_at): Update.
6977 * tui/tui-source.c (tui_set_source_content_nil): Update.
6978 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6979 a bool.
6980 * tui/tui-data.c (init_content_element): Update.
6981
6658b1bf
TT
69822019-06-25 Tom Tromey <tom@tromey.com>
6983
6984 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6985 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6986 * tui/tui-layout.c (init_and_make_win): Update.
6987 * tui/tui.h (enum tui_win_type): Update.
6988 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6989 tui_win_is_auxillary.
6990 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6991 tui_win_is_auxillary.
6992
21e1c91e
TT
69932019-06-25 Tom Tromey <tom@tromey.com>
6994
6995 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6996 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6997 (tui_delete_data_content_windows, tui_display_all_data)
6998 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6999 Update.
7000 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7001 * tui/tui-regs.c (tui_last_regs_line_no)
7002 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7003 (tui_show_registers): Update.
7004 (tui_show_register_group): Return void. Update.
7005 (tui_display_registers_from, tui_display_reg_element_at_line)
7006 (tui_display_registers_from_line, tui_check_register_values):
7007 Update.
7008 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7009 member.
7010 (struct tui_data_window) <regs_content>: Now a std::vector.
7011 <regs_content_count>: Remove.
7012 (tui_add_content_elements, tui_free_data_content): Don't declare.
7013 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7014 (init_content_element): Remove DATA_WIN case. Add assert.
7015 (tui_add_content_elements): Remove.
7016 (tui_data_window): Update.
7017 (tui_free_data_content): Remove.
7018 (free_content_elements): Remove DATA_WIN case.
7019
115ac53b
TT
70202019-06-25 Tom Tromey <tom@tromey.com>
7021
7022 * tui/tui-data.c (tui_data_item_window): Update.
7023 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7024 * tui/tui-windata.c (tui_display_all_data)
7025 (tui_display_data_from_line): Update.
7026 (tui_check_data_values): Remove.
7027 * tui/tui-regs.c (tui_show_register_group)
7028 (tui_display_reg_element_at_line): Update.
7029 * tui/tui-hooks.c (tui_register_changed)
7030 (tui_refresh_frame_and_register_information): Call
7031 tui_check_register_values.
7032 * tui/tui-data.h (struct tui_data_window) <data_content,
7033 data_content_count, data_type>: Remove.
7034 (enum tui_data_type): Remove.
7035
7036 * tui/tui-data.c (tui_data_window::clear_detail)
7037 (~tui_data_window): Update.
7038
eaf9738b
TT
70392019-06-25 Tom Tromey <tom@tromey.com>
7040
7041 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7042 declare.
7043 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7044 Rename from tui_first_data_item_displayed. Update.
7045 (tui_data_window::refresh_all)
7046 (tui_data_window::do_scroll_vertical): Update.
7047 * tui/tui-data.h (struct tui_data_window)
7048 <first_data_item_displayed>: Declare new method.
7049
31ca4723
TT
70502019-06-25 Tom Tromey <tom@tromey.com>
7051
7052 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7053 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7054 contents...
7055 (tui_initialize_static_data): ...here.
7056
41bcff7f
TT
70572019-06-25 Tom Tromey <tom@tromey.com>
7058
7059 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7060 (tui_display_registers_from, tui_check_register_values): Update.
7061 (tui_display_register): Remove win_info parameter; update.
7062 (tui_get_register): Change type of parameters.
7063 * tui/tui-data.h (struct tui_data_element): Remove.
7064 (union tui_which_element) <data>: Remove.
7065 <data_window>: Change type.
7066 (struct tui_data_item_window): New.
7067 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7068 case. Add assert.
7069 (~tui_data_item_window): New destructor.
7070 (free_content_elements): Remove DATA_ITEM_WIN case.
7071
d2802c33
TT
70722019-06-25 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7075 Remove.
7076
dd835f8b
TT
70772019-06-25 Tom Tromey <tom@tromey.com>
7078
7079 * tui/tui-data.h (struct tui_command_element): Remove.
7080 (union tui_which_element) <command>: Remove.
7081 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7082 assert.
7083 (free_content_elements): Remove CMD_WIN case.
7084
bd7db367
TT
70852019-06-25 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-layout.c (tui_set_layout): Update.
7088 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7089 * tui/tui-data.c (layout_def): Update.
7090
3add462f
TT
70912019-06-25 Tom Tromey <tom@tromey.com>
7092
7093 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7094 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7095 (tui_source_window_base::set_new_height): Update.
7096 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7097 Update.
7098 (tui_set_locator_fullname, tui_set_locator_info)
7099 (tui_show_frame_info): Update.
7100 * tui/tui-source.c (tui_set_source_content)
7101 (tui_source_is_displayed): Update.
7102 * tui/tui-layout.c (show_source_disasm_command, show_data)
7103 (show_source_or_disasm_and_command): Update.
7104 * tui/tui-disasm.c (tui_set_disassem_content)
7105 (tui_get_begin_asm_address): Update.
7106 * tui/tui-data.h (struct tui_locator_element): Remove.
7107 (union tui_which_element) <locator>: Remove.
7108 (struct tui_locator_window): New.
7109 (tui_locator_win_info_ptr): Change return type.
7110 * tui/tui-data.c (_locator): Change type.
7111 (tui_locator_win_info_ptr): Change return type.
7112 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7113 (tui_alloc_content): Add assert.
7114
489e9d8b
TT
71152019-06-25 Tom Tromey <tom@tromey.com>
7116
7117 * tui/tui-winsource.c
7118 (tui_exec_info_window::maybe_allocate_content): New method.
7119 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7120 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7121 (make_source_or_disasm_window): Add cast.
7122 * tui/tui-data.h (union tui_which_element) <simple_string>:
7123 Remove.
7124 (struct tui_source_info): New.
7125 (struct tui_source_window_base) <execution_info>: Change type.
7126 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7127 case, and add assert.
7128 (tui_alloc_content): Add assert.
7129
c3fabb7d
TT
71302019-06-25 Tom Tromey <tom@tromey.com>
7131
7132 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7133 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7134 * tui/tui-data.c (tui_alloc_win_info): Remove.
7135
bbc228ee
TT
71362019-06-25 Tom Tromey <tom@tromey.com>
7137
7138 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7139 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7140 can_highlight.
7141
5fcee43a
TT
71422019-06-25 Tom Tromey <tom@tromey.com>
7143
7144 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7145 make_visible_with_new_height method.
7146 (tui_win_info::make_visible_with_new_height): New method.
7147 (tui_source_window_base::do_make_visible_with_new_height)
7148 (tui_data_window::do_make_visible_with_new_height)
7149 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7150 (make_visible_with_new_height): Remove.
7151 (tui_resize_all, tui_adjust_win_heights): Use
7152 make_visible_with_new_height method.
7153 * tui/tui-data.h (struct tui_win_info)
7154 <do_make_visible_with_new_height, make_visible_with_new_height>:
7155 New methods.
7156 (struct tui_source_window_base, struct tui_data_window)
7157 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7158 methods.
7159
d83f1fe6
TT
71602019-06-25 Tom Tromey <tom@tromey.com>
7161
7162 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7163 method.
7164 (update_tab_width): Call update_tab_width method.
7165 * tui/tui-data.h (struct tui_win_info)
7166 (struct tui_source_window_base) <update_tab_width>: New methods.
7167
17374de4
TT
71682019-06-25 Tom Tromey <tom@tromey.com>
7169
7170 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7171 parameter.
7172 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7173 parameter.
7174 (tui_gen_win_info::make_visible): Update.
7175 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7176 parameter.
7177 * tui/tui-data.h (enum tui_box): New enum.
7178 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7179
f936bca2
TT
71802019-06-25 Tom Tromey <tom@tromey.com>
7181
7182 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7183 init_and_make_win for EXEC_INFO_WIN.
7184 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7185 longer inline.
7186 (struct tui_win_info) <~tui_win_info>: Inline.
7187 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7188 Don't declare.
7189 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7190 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7191 Remove.
7192 (tui_initialize_static_data): Update.
7193 (~tui_gen_win_info): Handle more cleanup here.
7194 (~tui_source_window_base): Delete "execution_info".
7195 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7196
d6ba6a11
TT
71972019-06-25 Tom Tromey <tom@tromey.com>
7198
7199 * tui/tui-layout.c (make_command_window): Don't set
7200 can_highlight.
7201 (show_source_disasm_command): Call the reset method.
7202 (show_data): Don't set can_highlight. Call the reset method.
7203 (tui_gen_win_info::reset): Rename from init_gen_win_info
7204 (init_and_make_win): Simplify. Return tui_gen_win_info.
7205 (show_source_or_disasm_and_command): Call the reset method.
7206 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7207 (struct tui_cmd_window): Set can_highlight.
7208
48a3bd16
TT
72092019-06-25 Tom Tromey <tom@tromey.com>
7210
7211 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7212 from make_visible.
7213 (tui_make_visible, tui_make_invisible): Rewrite.
7214 (tui_win_info::make_visible): Remove.
7215 (tui_source_window_base::make_visible): Update.
7216 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7217 method. Moved from...
7218 (struct tui_win_info) <make_visible>: ...here.
7219
c3bd716f
TT
72202019-06-25 Tom Tromey <tom@tromey.com>
7221
7222 * tui/tui-winsource.c
7223 (tui_source_window_base::do_scroll_horizontal): Remove direction
7224 parameter.
7225 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7226 direction parameter.
7227 * tui/tui-win.c (tui_win_info::forward_scroll)
7228 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7229 (tui_win_info::right_scroll): Update.
7230 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7231 direction parameter.
7232 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7233 direction parameter.
7234 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7235 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7236 Remove direction parameter.
7237 (struct tui_source_window_base, struct tui_source_window)
7238 (struct tui_disasm_window, struct tui_data_window)
7239 (struct tui_cmd_window): Update.
7240
21c32dca
TT
72412019-06-25 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-winsource.h (tui_set_exec_info_content)
7244 (tui_show_exec_info_content, tui_erase_exec_info_content)
7245 (tui_clear_exec_info_content, tui_update_exec_info): Change
7246 argument to tui_source_window_base.
7247 * tui/tui-winsource.c (tui_set_exec_info_content)
7248 (tui_show_exec_info_content, tui_erase_exec_info_content)
7249 (tui_clear_exec_info_content, tui_update_exec_info): Change
7250 argument to tui_source_window_base.
7251
73fbdc65
TT
72522019-06-25 Tom Tromey <tom@tromey.com>
7253
7254 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7255 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7256
33325343
TT
72572019-06-25 Tom Tromey <tom@tromey.com>
7258
7259 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7260 check.
7261
29d2c474
TT
72622019-06-25 Tom Tromey <tom@tromey.com>
7263
7264 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7265 type to void.
7266 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7267 type to void.
7268 * tui/tui-source.c (tui_set_source_content): Update.
7269 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7270
152f3f4b
TT
72712019-06-25 Tom Tromey <tom@tromey.com>
7272
7273 * tui/tui-win.c (window_name_completer, tui_set_focus)
7274 (tui_all_windows_info): Use name method.
7275 * tui/tui-data.h (struct tui_gen_win_info)
7276 (struct tui_source_window, struct tui_disasm_window)
7277 (struct tui_data_window, struct tui_cmd_window) <name>: New
7278 method.
7279 (tui_win_name): Don't declare.
7280 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7281 (tui_win_name): Remove.
7282
be4da588
TT
72832019-06-25 Tom Tromey <tom@tromey.com>
7284
7285 * tui/tui-winsource.h (tui_update_source_window)
7286 (tui_update_source_window_as_is): Change parameter type.
7287 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7288 to be a tui_source_window_base.
7289 (tui_update_source_window_as_is): Likewise.
7290 * tui/tui-win.c (make_visible_with_new_height): Update.
7291
5b81daba
TT
72922019-06-25 Tom Tromey <tom@tromey.com>
7293
7294 * tui/tui-winsource.c (tui_erase_source_content)
7295 (tui_show_source_content, tui_show_exec_info_content)
7296 (tui_erase_exec_info_content): Use refresh_window method.
7297 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7298 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7299 from tui_refresh_win.
7300 (tui_data_window::refresh_window): New method.
7301 (tui_win_info::refresh, tui_source_window_base::refresh)
7302 (tui_refresh_all): Use refresh_window method.
7303 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7304 method.
7305 * tui/tui-regs.c (tui_display_register): Call refresh_window
7306 method.
7307 * tui/tui-layout.c (show_source_disasm_command)
7308 (show_source_or_disasm_and_command): Call refresh_window method.
7309 * tui/tui-data.h (struct tui_gen_win_info)
7310 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7311 New method.
7312
cb2ce893
TT
73132019-06-25 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui.c (tui_rl_other_window, tui_enable)
7316 (tui_is_window_visible, tui_get_command_dimension): Update.
7317 * tui/tui-winsource.c (tui_update_source_window_as_is)
7318 (tui_clear_source_content, tui_erase_source_content)
7319 (tui_show_source_line, tui_source_window_base::refill)
7320 (tui_source_window_base::do_scroll_horizontal)
7321 (tui_source_window_base::set_is_exec_point_at)
7322 (tui_update_breakpoint_info, tui_set_exec_info_content)
7323 (tui_alloc_source_buffer, tui_line_is_displayed)
7324 (tui_addr_is_displayed): Update.
7325 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7326 (tui_check_and_display_highlight_if_needed)
7327 (tui_win_info::make_visible, tui_win_info::refresh)
7328 (tui_refresh_all): Update.
7329 * tui/tui-windata.c (tui_first_data_item_displayed)
7330 (tui_delete_data_content_windows, tui_erase_data_content)
7331 (tui_display_all_data, tui_data_window::refresh_all)
7332 (tui_check_data_values): Update.
7333 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7334 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7335 (tui_win_info::backward_scroll, tui_refresh_all_win)
7336 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7337 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7338 (tui_source_window_base::set_new_height)
7339 (tui_data_window::set_new_height)
7340 (make_invisible_and_set_new_height)
7341 (make_visible_with_new_height, new_height_ok)
7342 (parse_scrolling_args): Update.
7343 * tui/tui-stack.c (tui_show_frame_info): Update.
7344 * tui/tui-source.c (tui_set_source_content)
7345 (tui_set_source_content_nil, tui_source_is_displayed)
7346 (tui_source_window::do_scroll_vertical): Update.
7347 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7348 (tui_display_registers_from, tui_display_reg_element_at_line)
7349 (tui_check_register_values, tui_reg_command): Update.
7350 * tui/tui-layout.c (tui_default_win_height)
7351 (show_source_disasm_command, show_data, init_and_make_win)
7352 (show_source_or_disasm_and_command): Update.
7353 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7354 (tui_redisplay_readline, tui_mld_flush)
7355 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7356 (tui_getc): Update.
7357 * tui/tui-disasm.c (tui_set_disassem_content)
7358 (tui_disasm_window::do_scroll_vertical): Update.
7359 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7360 Now virtual.
7361 (struct tui_win_info): Derive from tui_gen_win_info.
7362 <~tui_win_info>: Mark as override.
7363 <generic>: Remove member.
7364 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7365 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7366 (~tui_data_window, ~tui_win_info)
7367 (tui_free_all_source_wins_content): Update.
7368 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7369
ab313b35
TT
73702019-06-25 Tom Tromey <tom@tromey.com>
7371
7372 * tui/tui-layout.c (init_and_make_win): Use new.
7373 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7374 destructor, initializers.
7375 (tui_alloc_generic_win_info): Don't declare.
7376 * tui/tui-data.c (_locator): Add argument to constructor.
7377 (source_win, disasm_win): New globals.
7378 (exec_info): Remove.
7379 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7380 Update.
7381 (tui_alloc_generic_win_info): Remove.
7382 (init_content_element): Use new.
7383 (tui_win_info::tui_win_info): Update.
7384 (free_content_elements) <case DATA_WIN>: Use delete.
7385
dc2c33e4
TT
73862019-06-25 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7389 * tui/tui-windata.c (tui_first_data_item_displayed)
7390 (tui_delete_data_content_windows): Update.
7391 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7392 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7393 (tui_display_registers_from, tui_check_register_values): Update.
7394 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7395 pointer.
7396 * tui/tui-data.c (init_content_element): Update. Allocate the new
7397 window.
7398 (tui_free_data_content): Update.
7399 (free_content_elements) <case DATA_WIN>: Free the window.
7400
214a5cbe
TT
74012019-06-25 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7404 Update.
7405 * tui/tui-layout.c (make_command_window)
7406 (show_source_disasm_command, show_data, init_and_make_win)
7407 (show_source_or_disasm_and_command): Update.
7408 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7409 method.
7410 <can_highight, is_highlighted>: Now bool.
7411 (tui_set_win_highlight): Don't declare.
7412 * tui/tui-data.c (tui_set_win_highlight): Remove.
7413
8e2daf15
TT
74142019-06-25 Tom Tromey <tom@tromey.com>
7415
7416 * tui/tui-wingeneral.c (make_visible): Remove check of window
7417 type.
7418
8903bd8a
TT
74192019-06-25 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-win.c (tui_win_info::max_height)
7422 (tui_cmd_window::max_height): New methods.
7423 (new_height_ok): Call max_height.
7424 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7425 <max_height>: New method.
7426
3f02ce1e
TT
74272019-06-25 Tom Tromey <tom@tromey.com>
7428
7429 * tui/tui-win.c (tui_source_window_base::set_new_height)
7430 (tui_data_window::set_new_height): New methods.
7431 (make_invisible_and_set_new_height): Call set_new_height method.
7432 * tui/tui-data.h (struct tui_win_info)
7433 (struct tui_source_window_base, struct tui_data_window)
7434 <set_new_height>: New method.
7435
1825f487
TT
74362019-06-25 Tom Tromey <tom@tromey.com>
7437
7438 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7439 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7440 tui_refresh_data_win.
7441 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7442 method.
7443 (tui_refresh_all_win): Call the refresh_all method.
7444 (tui_set_focus): Likewise.
7445 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7446 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7447 Likewise.
7448
ad54d15b
TT
74492019-06-25 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-winsource.h (tui_refill_source_window)
7452 (tui_set_is_exec_point_at): Don't declare.
7453 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7454 (tui_source_window_base::refill): Rename from
7455 tui_refill_source_window.
7456 (tui_source_window_base::do_scroll_horizontal): Update.
7457 (tui_source_window_base::set_is_exec_point_at): Rename from
7458 tui_set_is_exec_point_at.
7459 (tui_update_all_breakpoint_info): Update.
7460 * tui/tui-stack.c (tui_show_frame_info): Update.
7461 * tui/tui-layout.c (show_data): Add cast.
7462 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7463 * tui/tui-data.h (struct tui_source_window_base) <refill,
7464 set_is_exec_point_at>: New methods.
7465 (tui_source_windows, tui_add_to_source_windows): Update types.
7466 (tui_add_to_source_windows): Remove redundant declaration.
7467 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7468 (tui_source_windows): Change return type.
7469 (tui_clear_source_windows_detail): Update.
7470 (tui_add_to_source_windows): Change type of parameter.
7471 (tui_free_all_source_wins_content): Update.
7472
2042b506
TT
74732019-06-25 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui-wingeneral.c (tui_win_info::refresh)
7476 (tui_source_window_base::refresh): New methods.
7477 (tui_refresh_all): Call the refresh method.
7478 * tui/tui-data.h (struct tui_win_info)
7479 (struct tui_source_window_base) <refresh>: New method.
7480
56122977
TT
74812019-06-25 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui.h (tui_is_window_visible): Return bool.
7484 * tui/tui.c (tui_is_window_visible): Return bool.
7485 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7486 (tui_make_visible, tui_make_invisible)
7487 (tui_win_info::make_visible)
7488 (tui_source_window_base::make_visible, make_all_visible)
7489 (tui_make_all_visible, tui_make_all_invisible): Update.
7490 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7491 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7492 bool.
7493 (struct tui_win_info, struct tui_source_window_base)
7494 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7495 * tui/tui-data.c (tui_init_generic_part): Update.
7496
cda37efb
TT
74972019-06-25 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7500 (tui_source_window_base::make_visible): New methods.
7501 (make_all_visible): Make method call.
7502 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7503 (struct tui_source_window_base, struct tui_cmd_window): Override
7504 make_visible.
7505 (tui_win_is_source_type): Don't declare.
7506 * tui/tui-data.c (tui_win_is_source_type): Remove.
7507
6a0ee02c
TT
75082019-06-25 Tom Tromey <tom@tromey.com>
7509
7510 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7511 NULL check.
7512
63901aec
TT
75132019-06-25 Tom Tromey <tom@tromey.com>
7514
7515 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7516 Inline constructor. Add initializers for members.
7517 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7518 constructors; now inline in class.
7519
ceb13a13
TT
75202019-06-25 Tom Tromey <tom@tromey.com>
7521
7522 * tui/tui-regs.c (tui_show_registers): Update.
7523 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7524 bool.
7525 * tui/tui-data.c (tui_data_window::clear_detail)
7526 (tui_data_window): Update.
7527
238eb706
TT
75282019-06-25 Tom Tromey <tom@tromey.com>
7529
7530 * tui/tui-windata.c (tui_display_all_data)
7531 (tui_display_data_from_line, tui_display_data_from)
7532 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7533 Update.
7534 * tui/tui-regs.c (tui_last_regs_line_no)
7535 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7536 (tui_show_registers, tui_show_register_group)
7537 (tui_display_registers_from, tui_display_reg_element_at_line)
7538 (tui_display_registers_from_line, tui_check_register_values)
7539 (tui_reg_next, tui_reg_prev): Update.
7540 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7541 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7542 tui_data_window.
7543 (struct tui_win_info) <detail>: Remove. Add new fields from
7544 tui_data_info.
7545 (TUI_DATA_WIN): Add cast.
7546 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7547 (~tui_data_window): Simplify.
7548
81491aa0
TT
75492019-06-25 Tom Tromey <tom@tromey.com>
7550
7551 * tui/tui-layout.c (show_source_disasm_command)
7552 (show_source_or_disasm_and_command): Update.
7553 * tui/tui-io.c (update_cmdwin_start_line)
7554 (tui_redisplay_readline): Update.
7555 * tui/tui-data.h (struct tui_command_info): Remove.
7556 (struct tui_win_info) <detail>: Remove command_info member.
7557 (struct tui_data_window) <start_line>: New member, from
7558 tui_command_info.
7559 (TUI_CMD_WIN): Add casts.
7560
e6e41501
TT
75612019-06-25 Tom Tromey <tom@tromey.com>
7562
7563 * tui/tui-winsource.c (tui_update_source_window)
7564 (tui_refill_source_window)
7565 (tui_source_window_base::do_scroll_horizontal)
7566 (tui_update_breakpoint_info, tui_set_exec_info_content)
7567 (tui_show_exec_info_content, tui_erase_exec_info_content)
7568 (tui_clear_exec_info_content): Update.
7569 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7570 Update.
7571 * tui/tui-win.c (make_invisible_and_set_new_height)
7572 (make_visible_with_new_height): Update.
7573 * tui/tui-source.c (tui_set_source_content)
7574 (tui_show_symtab_source): Update.
7575 * tui/tui-layout.c (extract_display_start_addr)
7576 (show_source_disasm_command, show_data)
7577 (make_source_or_disasm_window)
7578 (show_source_or_disasm_and_command): Update.
7579 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7580 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7581 "gdbarch".
7582 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7583 to tui_source_window_base.
7584 (struct tui_win_info) <detail>: Remove source_info member.
7585 (struct tui_source_window_base) <has_locator>: Inline.
7586 Move contents from tui_source_info; rename has_locator member to
7587 m_has_locator.
7588 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7589 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7590 header file.
7591 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7592 Simplify.
7593 (tui_free_all_source_wins_content): Cast to
7594 tui_source_window_base.
7595
44f0e208
TT
75962019-06-25 Tom Tromey <tom@tromey.com>
7597
7598 * tui/tui-win.c (make_invisible_and_set_new_height)
7599 (make_visible_with_new_height): Call has_locator method.
7600 * tui/tui-layout.c (show_source_disasm_command, show_data)
7601 (show_source_or_disasm_and_command): Update for bool change.
7602 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7603 (tui_win_info) <has_locator>: New method.
7604 (struct tui_source_window_base) <has_locator>: New method.
7605 (tui_win_has_locator): Don't declare.
7606 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7607 from tui_win_has_locator.
7608 (tui_source_window_base): Use false, not FALSE.
7609
7778b912
TT
76102019-06-25 Tom Tromey <tom@tromey.com>
7611
7612 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7613 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7614 clear_detail method directly.
7615 (tui_clear_win_detail): Remove.
7616
f83d391c
TT
76172019-06-25 Tom Tromey <tom@tromey.com>
7618
7619 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7620 "this", not TUI_DISASM_WIN.
7621
13446e05
TT
76222019-06-25 Tom Tromey <tom@tromey.com>
7623
7624 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7625 declare.
7626 * tui/tui-winsource.c
7627 (tui_source_window_base::do_scroll_horizontal): Rename from
7628 tui_horizontal_source_scroll.
7629 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7630 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7631 from tui_vertical_data_scroll.
7632 * tui/tui-win.h (tui_scroll): Don't declare.
7633 * tui/tui-win.c (tui_win_info::forward_scroll)
7634 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7635 (tui_win_info::right_scroll): Rename and update.
7636 (tui_scroll_forward_command, tui_scroll_backward_command)
7637 (tui_scroll_left_command, tui_scroll_right_command): Update.
7638 (tui_scroll): Remove.
7639 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7640 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7641 from tui_vertical_source_scroll.
7642 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7643 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7644 from tui_vertical_disassem_scroll.
7645 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7646 do_scroll_horizontal>: New methods.
7647 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7648 Likewise.
7649 (struct tui_source_window_base): Add do_scroll_horizontal.
7650 (struct tui_source_window, struct tui_disasm_window): Add
7651 do_scroll_vertical.
7652 (struct tui_data_window, struct tui_cmd_window): Add
7653 do_scroll_horizontal and do_scroll_vertical.
7654 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7655
5cf82909
TT
76562019-06-25 Tom Tromey <tom@tromey.com>
7657
7658 * tui/tui-data.h (struct tui_source_window_base): New struct.
7659 (struct tui_source_window): Derive from tui_source_window_base.
7660 (struct tui_disasm_window): New struct.
7661 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7662 from tui_source_window::clear_detail.
7663 (tui_source_window_base): Rename from tui_source_window.
7664 (~tui_source_window_base): Rename from ~tui_source_window.
7665 (tui_alloc_win_info): Create a tui_disasm_window.
7666
ee1d42d6
TT
76672019-06-25 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-data.h (struct tui_source_window)
7670 (struct tui_data_window): Declare destructors.
7671 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7672 destructors.
7673 (tui_win_info): Simplify.
7674
b4eb2452
TT
76752019-06-25 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui-winsource.c (tui_display_main)
7678 (tui_update_source_windows_with_addr)
7679 (tui_update_all_breakpoint_info): Update.
7680 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7681 (new_height_ok, parse_scrolling_args): Update.
7682 * tui/tui-stack.c (tui_show_frame_info): Update.
7683 * tui/tui-data.h (struct tui_list): Remove.
7684 (tui_source_windows): Return a reference to a std::vector.
7685 * tui/tui-data.c (source_windows): Now a std::vector.
7686 (tui_source_windows): Change return type.
7687 (tui_clear_source_windows): Rewrite.
7688 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7689 (tui_free_all_source_wins_content): Rewrite.
7690
8761a91b
TT
76912019-06-25 Tom Tromey <tom@tromey.com>
7692
7693 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7694 (struct tui_data_window, struct tui_cmd_window): Declare
7695 clear_detail method.
7696 * tui/tui-data.c (tui_source_window::clear_detail)
7697 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7698 methods.
7699 (tui_clear_win_detail): Simplify.
7700
0ed69eda
TT
77012019-06-25 Tom Tromey <tom@tromey.com>
7702
7703 * tui/tui-layout.c (make_source_window, make_disasm_window)
7704 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7705 Return the new window.
7706 (show_source_disasm_command, show_data)
7707 (show_source_or_disasm_and_command): Update.
7708
82432e10
TT
77092019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7712 parameter. Return the new window.
7713 (show_source_disasm_command): Update and remove NULL check.
7714 (show_source_or_disasm_and_command): Update.
7715
ec328aa5
TT
77162019-06-25 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7719
33b906ab
TT
77202019-06-25 Tom Tromey <tom@tromey.com>
7721
7722 * tui/tui-data.h (struct tui_win_info): Make constructor
7723 protected. Make destructor virtual. Add initializers.
7724 (tui_source_window, tui_data_window, tui_cmd_window): New
7725 classes.
7726 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7727 constructor. Add "type" parameter.
7728 (tui_source_window, tui_data_window, tui_cmd_window): New
7729 constructors.
7730 (tui_alloc_win_info): Instantiate the appropriate subclass.
7731
e7e11af4
TT
77322019-06-25 Tom Tromey <tom@tromey.com>
7733
7734 * tui/tui-win.c (tui_resize_all): Use delete.
7735 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7736 destructor.
7737 (tui_free_window): Don't declare.
7738 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7739 Update.
7740
6792b55e
TT
77412019-06-25 Tom Tromey <tom@tromey.com>
7742
7743 * tui/tui-data.h (struct tui_win_info): Add constructor.
7744 * tui/tui-data.c (tui_alloc_win_info): Use new.
7745 (tui_free_window): Use delete.
7746
f95675e1
TT
77472019-06-22 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7750 declare.
7751 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7752
5bff081c
TT
77532019-06-22 Tom Tromey <tom@tromey.com>
7754
7755 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7756 declare.
7757 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7758
47e3f474
TV
77592019-06-22 Tom de Vries <tdevries@suse.de>
7760
7761 * dwarf2read.c (create_addrmap_from_aranges)
7762 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7763 instead of '%zu'.
7764
fd5866f6
SM
77652019-06-21 Simon Marchi <simon.marchi@efficios.com>
7766
7767 * dwarf2read.h (dwarf2_section_info_def): Remove.
7768 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7769 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7770 std::vector<dwarf2_section_info>.
7771 (struct dwo_file) <~dwo_file>: Remove.
7772 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7773 types field.
7774 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7775 (dwarf2_read_debug_names): Likewise.
7776 (create_debug_types_hash_table): Change parameter type to
7777 array_view, adjust code accordingly.
7778 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7779 (partial_die_info::fixup): Likewise.
7780 (determine_prefix): Likewise.
7781 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7782
fb1eb2f9
SM
77832019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7784
7785 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7786 gdb_bfd_ref_ptr.
7787 <~dwo_file>: Remove call to gdb_bfd_unref.
7788 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7789 gdb_bfd_ref_ptr::get.
7790
51ac9db5
SM
77912019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7792
7793 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7794 type to htab_up.
7795 * dwarf2read.c (struct dwo_file): Initialize fields.
7796 <~dwo_file>: New.
7797 (free_dwo_file): Remove, move content to ~dwo_file.
7798 (struct dwo_file_deleter): Remove.
7799 (dwo_file_up>: Remove custom deleter.
7800 (free_dwo_files): Remove.
7801 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7802 dwo_files.
7803 (process_skeletonless_type_units): Call unique_ptr::get.
7804 (allocate_dwo_file_hash_table): Add deleter to created hash
7805 table. Change return type to htab_up.
7806 (lookup_dwo_file_slot): Don't memset dwo_file, call
7807 unique_ptr::get.
7808 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7809 (create_dwo_unit_in_dwp_v2): Likewise.
7810 (open_and_init_dwo_file): Likewise.
7811 (free_dwo_file_from_slot): Remove.
7812
dc4ccb6f
SM
78132019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7814
7815 * dwarf2read.h (struct dwarf2_section_info) <readin,
7816 is_virtual>: Change type to bool.
7817 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7818 true instead of 1.
7819
e6a1c5cb
TT
78202019-06-19 Tom Tromey <tom@tromey.com>
7821
7822 * tui/tui-data.h (tui_init_content_element): Don't declare.
7823
6f6ffbeb
TT
78242019-06-19 Tom Tromey <tom@tromey.com>
7825
7826 * tui/tui-data.h (tui_init_win_info): Don't declare.
7827
f23f598e
TV
78282019-06-19 Tom de Vries <tdevries@suse.de>
7829
7830 * dwarf2read.h (abstract_to_concrete): Change type to
7831 std::unordered_map<sect_offset, std::vector<sect_offset>,
7832 gdb::hash_enum<sect_offset>>.
7833
680e1bee
TT
78342019-06-19 Tom Tromey <tromey@adacore.com>
7835
7836 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7837 EVAL_AVOID_SIDE_EFFECTS specially.
7838
dcf37923
TT
78392019-06-19 Tom Tromey <tromey@adacore.com>
7840
7841 * source-cache.c (highlighter): New global.
7842 (source_cache::get_source_lines): Create a highlighter on demand.
7843
494986d5
AB
78442019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * defs.h (deprecated_interactive_hook): Delete declaration.
7847 * interps.c (clear_interpreter_hooks): Remove use of
7848 deprecated_interactive_hook.
7849 * top.c (deprecated_interactive_hook): Delete definition.
7850 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7851
3360b6e7
TV
78522019-06-18 Tom de Vries <tdevries@suse.de>
7853
7854 PR gdb/24515
7855 * dwarf2read.h (abstract_to_concrete): Change type from
7856 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7857 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7858 * dwarf2read.c (read_variable): Update.
7859 (dwarf2_fetch_die_loc_sect_off): Update.
7860
310b3441
TV
78612019-06-17 Tom de Vries <tdevries@suse.de>
7862
7863 PR gdb/24617
7864 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7865 accessing parent[parent_len - 1].
7866
ba9777be
PP
78672019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7868
7869 PR gdb/24364
7870 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7871 call dtrace_process_dof with NULL dof.
7872
2b9f6e89
TV
78732019-06-16 Tom de Vries <tdevries@suse.de>
7874
7875 PR gdb/24445
7876 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7877
431b3ead
TT
78782019-06-16 Tom Tromey <tom@tromey.com>
7879
7880 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7881 (make_all_visible): Use address of member.
7882
d04b44a1
TT
78832019-06-16 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7886 (tui_free_window, free_content, free_content_elements): Remove
7887 unnecessary cast.
7888 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7889 cast.
7890 * tui/tui-regs.c (tui_show_register_group)
7891 (tui_display_registers_from, tui_display_reg_element_at_line):
7892 Remove unnecessary cast.
7893
bf5142e7
AB
78942019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * linux-nat.c (normal_mask): Delete.
7897 (_initialize_linux_nat): Don't initialise normal_mask.
7898
c4973306
SM
78992019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7900
7901 PR gdb/24445
7902 * dwarf-index-write.h (write_psymtabs_to_index): Add
7903 dwz_basename parameter.
7904 * dwarf-index-write.c (write_gdbindex): Move file writing to
7905 write_gdbindex_1. Change return type void.
7906 (assert_file_size): Move up, remove filename parameter.
7907 (write_gdbindex_1): New function.
7908 (write_debug_names): Change return type to void, call
7909 assert_file_size.
7910 (struct index_wip_file): New struct.
7911 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7912 file logic to index_wip_file. Write index for dwz file if
7913 needed.
7914 (save_gdb_index_command): Pass basename of dwz file, if present.
7915 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7916 build-id of dwz file, if present.
7917 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7918 (dwarf2_get_dwz_file): Likewise.
7919 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7920 (dwarf2_get_dwz_file): Likewise.
7921
395f9c91
TT
79222019-06-16 Tom Tromey <tom@tromey.com>
7923
7924 * coffread.c (process_coff_symbol): Use xstrdup.
7925 * value.c (create_internalvar): Use xstrdup.
7926
cafb3438
TT
79272019-06-16 Tom Tromey <tom@tromey.com>
7928
7929 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7930 * breakpoint.c (stopin_command, stopat_command)
7931 (until_break_command, decode_location_default): Remove unnecessary
7932 cast.
7933 * utils.c (subset_compare): Remove unnecessary cast.
7934 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7935 cast.
7936 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7937 cast.
7938 * infcmd.c (path_command): Remove unnecessary cast.
7939 * coffread.c (decode_type): Remove unnecessary cast.
7940 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7941 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7942 * tui/tui-stack.c (tui_show_locator_content)
7943 (tui_show_frame_info): Remove unnecessary cast.
7944 * tui/tui-win.c (tui_scroll_forward_command)
7945 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7946 (parse_scrolling_args): Remove unnecessary cast.
7947 * tui/tui-data.c (init_win_info, tui_del_window)
7948 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7949 (free_content_elements): Remove unnecessary cast.
7950 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7951 unnecessary cast.
7952 * tui/tui-source.c (tui_set_source_content)
7953 (tui_vertical_source_scroll): Remove unnecessary cast.
7954 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7955 cast.
7956 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7957 * tui/tui-regs.c (tui_display_registers_from)
7958 (tui_display_register): Remove unnecessary cast.
7959 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7960 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7961 (make_visible): Remove unnecessary cast.
7962 * tui/tui-winsource.c (tui_erase_source_content)
7963 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7964 unnecessary cast.
7965 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7966 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7967 * stabsread.c (read_type, read_array_type, read_range_type):
7968 Remove unnecessary cast.
7969 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7970 (parse_symbol, parse_type, upgrade_type, parse_external)
7971 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7972 unnecessary cast.
7973 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7974
730ead81
TT
79752019-06-16 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-data.c (tui_alloc_generic_win_info)
7978 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7979 checks.
7980
584a927c
AB
79812019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7982 Andrew Burgess <andrew.burgess@embecosm.com>
7983
7984 * f-typeprint.c (f_print_type): Don't return early for not
7985 associated or not allocated types.
7986 (f_type_print_varspec_suffix): Add print_rank parameter and print
7987 ranks of array types in case they dangling.
7988 (f_type_print_base): Add print_rank parameter.
7989
30056ea0
AB
79902019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * NEWS: Mention new MI commands.
7993 * break-catch-throw.c (enum exception_event_kind): Move to
7994 breakpoint.h.
7995 (print_mention_exception_catchpoint): Output text as a single
7996 message.
7997 (catch_exception_command_1): Rename to...
7998 (catch_exception_event): ...this, make non-static, update header
7999 command, and change some parameter types.
8000 (catch_catch_command): Update for changes to
8001 catch_exception_command_1.
8002 (catch_throw_command): Likewise.
8003 (catch_rethrow_command): Likewise.
8004 * breakpoint.c (enum exception_event_kind): Delete.
8005 * breakpoint.h (enum exception_event_kind): Moved here from
8006 break-catch-throw.c.
8007 (catch_exception_event): Declare.
8008 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8009 (mi_cmd_catch_throw): New function.
8010 (mi_cmd_catch_rethrow): New function.
8011 (mi_cmd_catch_catch): New function.
8012 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8013 'catch-catch' entries.
8014 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8015 (mi_cmd_catch_rethrow): Declare.
8016 (mi_cmd_catch_catch): Declare.
8017
ec8e2b6d
AB
80182019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8019
8020 * annotate.c (annotate_source_line): Change return type to void,
8021 update implementation to match.
8022 * annotate.h (annotate_source_line): Change return type to void,
8023 update header comment.
8024 * stack.c (print_frame_info): Don't change what frame information
8025 is printed based on whether annotations are on or not.
8026
0d3abd8c
AB
80272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8028
8029 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8030 (annotate_source): Make static.
8031 (annotate_source_line): Moved from source.c and renamed from
8032 identify_source_line. Update the return type.
8033 * annotate.h (annotate_source): Delete declaration.
8034 (annotate_source_line): Declaration moved from source.h, and
8035 renamed from identify_source_line. Return type updated.
8036 * source.c (identify_source_line): Moved to annotate.c and renamed
8037 to annotate_source_line.
8038 (info_line_command): Remove check of annotation_level.
8039 * source.h (identify_source_line): Move declaration to annotate.h
8040 and rename to annotate_source_line.
8041 * stack.c: Add 'annotate.h' include.
8042 (print_frame_info): Remove check of annotation_level before
8043 calling annotate_source_line.
8044
00df30ae
AB
80452019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8046
8047 * source-cache.c (source_cache::get_plain_source_lines): Use
8048 open_source_file_with_line_charpos instead of just
8049 open_source_file, remove call to find_source_lines.
8050 (source_cache::get_source_lines): Likewise.
8051 * source.c (find_source_lines): Make static.
8052 (get_filename_and_charpos): Renamed into...
8053 (open_source_file_with_line_charpos): ..this along with changes to
8054 return a scoped_fd, and some other minor clean ups.
8055 (identify_source_line): Use open_source_file_with_line_charpos.
8056 (search_command_helper): Use open_source_file_with_line_charpos
8057 instead of just open_source_file, remove call to
8058 find_source_lines.
8059 * source.h (open_source_file_with_line_charpos): Declare new
8060 function.
8061 (find_source_lines): Delete declaration.
8062
afda45a2
AB
80632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8064
8065 * source.c (get_filename_and_charpos): Remove fullname
8066 parameter.
8067 (identify_source_line): Update call to get_filename_and_charpos.
8068
0735b091
TT
80692019-06-14 Tom Tromey <tromey@adacore.com>
8070
8071 PR gdb/24502:
8072 * ui-style.h (skip_ansi_escape): Update comment.
8073 * ui-file.h (class no_terminal_escape_file): New class.
8074 * ui-file.c (no_terminal_escape_file::write)
8075 (no_terminal_escape_file::puts): New methods.
8076 * cli/cli-logging.c (handle_redirections): Use
8077 no_terminal_escape_file.
8078
52ce35e2
TT
80792019-06-14 Tom Tromey <tromey@adacore.com>
8080
8081 * NEWS: Move convenience variable news above Python news.
8082
73cc7272
TT
80832019-06-14 Tom Tromey <tom@tromey.com>
8084
8085 * gnulib: Move directory to top-level.
8086 * configure.ac: Don't configure gnulib.
8087 * configure: Rebuild.
8088 * common/common-defs.h: Use new path to gnulib.
8089 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8090 (GNULIB_H): Remove.
8091 (INCGNU): Look in new gnulib location.
8092 (HFILES_NO_SRCDIR): Remove gnulib files.
8093 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8094 (generated_files): Remove GNULIB_H.
8095 ($(LIBGNU), all-lib): Remove targets.
8096 (distclean): Don't mention GNULIB_BUILDDIR.
8097 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8098
f5686554
TT
80992019-06-14 Tom Tromey <tromey@adacore.com>
8100
8101 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8102 Warn if symbol file does not provide any symbols.
8103
a0c1ffed
TT
81042019-06-14 Tom Tromey <tromey@adacore.com>
8105
8106 * source.c (find_and_open_source): Respect basenames_may_differ.
8107
7c39e397
AB
81082019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8109
8110 * annotate.c (annotate_breakpoints_invalid): Make use of
8111 scoped_restore_terminal_state.
8112 (annotate_frames_invalid): Likewise.
8113
f411722c
TT
81142019-06-14 Tom Tromey <tromey@adacore.com>
8115
8116 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8117 allow assignment to an internalvar.
8118
4268ec18
TT
81192019-06-14 Tom Tromey <tromey@adacore.com>
8120
8121 * ada-lex.l: Allow "_" in attribute names.
8122
abdb711e
TT
81232019-06-14 Tom Tromey <tromey@adacore.com>
8124
8125 PR gdb/24653:
8126 * regcache.c (registers_changed): Don't call alloca.
8127 * top.c (execute_command): Don't call alloca.
8128
4c048731
PA
81292019-06-13 Pedro Alves <palves@redhat.com>
8130
8131 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8132 'expression'. When parsing an expression, error out if there's
8133 junk after "unlimited".
8134 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8135 (do_set_command): Adjust calls to is_unlimited_literal.
8136
66eb1ed3
PA
81372019-06-13 Pedro Alves <palves@redhat.com>
8138
8139 * compile/compile.c (make_compile_options_def_group): Add braces
8140 around array_view initializer.
8141 * thread.c (make_thread_apply_all_options_def_group)
8142 (make_thread_apply_all_options_def_group): Likewise.
8143
3345721a
PA
81442019-06-13 Pedro Alves <palves@redhat.com>
8145
8146 * NEWS (New commands): Mention "maint test-options
8147 require-delimiter", "maint test-options unknown-is-error", "maint
8148 test-options unknown-is-operand" and "maint show
8149 test-options-completion-result".
8150 (New command options, command completion): New section.
8151 (Completion improvements): New section.
8152 Mention that you can abbreviate "unlimited".
8153
6206060d
PA
81542019-06-13 Pedro Alves <palves@redhat.com>
8155
8156 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8157 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8158 * unittests/cli-utils-selftests.c (test_parse_flags)
8159 (test_parse_flags_qcs): Delete.
8160 (test_cli_utils): Don't call deleted functions.
8161
6665660a
PA
81622019-06-13 Pedro Alves <palves@redhat.com>
8163
8164 * thread.c: Include "cli/cli-option.h".
8165 (tp_array_compar_ascending): Global.
8166 (tp_array_compar): Delete function.
8167 (tp_array_compar_ascending, tp_array_compar_descending): New
8168 functions.
8169 (ascending_option_def, qcs_flag_option_def)
8170 (thr_qcs_flags_option_defs)
8171 (make_thread_apply_all_options_def_group)
8172 (make_thread_apply_options_def_group): New.
8173 (thread_apply_all_command): Use gdb::option::process_options.
8174 (thread_apply_command_completer)
8175 (thread_apply_all_command_completer): New.
8176 (thread_apply_command): Use gdb::option::process_options.
8177 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8178 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8179 to generate help text of "thread apply". Adjust "taas"'s help.
8180 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8181 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8182
f7e13587
PA
81832019-06-13 Pedro Alves <palves@redhat.com>
8184
8185 * thread.c (thread_apply_command): Check for invalid TID with
8186 isdigit instead of !isalpha.
8187
5d707134
PA
81882019-06-13 Pedro Alves <palves@redhat.com>
8189
8190 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8191 (validate_flags_qcs): New.
8192 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8193 (validate_flags_qcs): Declare.
8194 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8195 (make_frame_apply_options_def_group): New.
8196 (frame_apply_command_count): Process options with
8197 gdb::option::process_options.
8198 (frame_apply_completer): New.
8199 (frame_apply_level_completer, frame_apply_all_completer)
8200 (frame_apply_completer): New.
8201 (_initialize_stack): Update help of "frame apply", "frame apply
8202 level", "frame apply all" and "faas" to mention supported options
8203 and install command completers.
8204 * stack.h (frame_apply_all_completer): Declare.
8205 * thread.c: Include "stack.h".
8206 (tfaas_command): Add "--".
8207 (_initialize_thread): Update help "tfaas" to mention supported
8208 options and install command completer.
8209
272d4594
PA
82102019-06-13 Pedro Alves <palves@redhat.com>
8211
8212 * completer.c (complete_nested_command_line): New.
8213 (gdb_completion_word_break_characters_throw): Add assertion.
8214 * completer.h (complete_nested_command_line): Declare.
8215
90a1ef87
PA
82162019-06-13 Pedro Alves <palves@redhat.com>
8217
8218 * stack.c (parse_backtrace_qualifiers): New.
8219 (backtrace_command): Use it.
8220 (backtrace_command_completer): Complete on qualifiers.
8221
d4c16835
PA
82222019-06-13 Pedro Alves <palves@redhat.com>
8223
8224 * frame.c: Include "cli/cli-option.h.
8225 (user_set_backtrace_options): New.
8226 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8227 Delete.
8228 (get_prev_frame): Adjust.
8229 (boolean_option_def, uinteger_option_def)
8230 (set_backtrace_option_defs): New.
8231 (_initialize_frame): Adjust and use
8232 gdb::option::add_setshow_cmds_for_options to install "set
8233 backtrace past-main" and "set backtrace past-entry".
8234 * frame.h: Include "cli/cli-option.h".
8235 (struct frame_print_options): Forward declare.
8236 (print_frame_arguments_all, print_frame_arguments_scalars)
8237 (print_frame_arguments_none): Declare.
8238 (print_entry_values): Delete declaration.
8239 (struct frame_print_options, user_frame_print_options): New.
8240 (struct set_backtrace_options): New.
8241 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8242 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8243 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8244 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8245 (list_args_or_locals): Add frame_print_options parameter.
8246 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8247 * python/py-framefilter.c (enumerate_args): Pass down
8248 USER_FRAME_PRINT_OPTIONS.
8249 * stack.c: Include "cli/cli-option.h".
8250 (print_frame_arguments_all, print_frame_arguments_scalars)
8251 (print_frame_arguments_none): Declare.
8252 (print_raw_frame_arguments, print_entry_values): Delete.
8253 (user_frame_print_options): New.
8254 (boolean_option_def, enum_option_def, frame_print_option_defs):
8255 New.
8256 (struct backtrace_cmd_options): New.
8257 (bt_flag_option_def): New.
8258 (backtrace_command_option_defs): New.
8259 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8260 (print_frame_arg, read_frame_arg, print_frame_args)
8261 (print_frame_info, print_frame): Add frame_print_options parameter
8262 and use it.
8263 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8264 (backtrace_command_1): Add frame_print_options and
8265 backtrace_cmd_options parameters and use them.
8266 (make_backtrace_options_def_group): New.
8267 (backtrace_command): Process command options with
8268 gdb::option::process_options.
8269 (backtrace_command_completer): New.
8270 (_initialize_stack): Extend "backtrace"'s help to mention
8271 supported options. Install completer for "backtrace".
8272 Install some settings commands with add_setshow_cmds_for_options.
8273
2daf894e
PA
82742019-06-13 Pedro Alves <palves@redhat.com>
8275
8276 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8277 and that "set/show print raw frame-arguments" are now deprecated.
8278
8279 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8280 command.
8281 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8282 * stack.c (_initialize_stack): Install "set/show print
8283 raw-frame-arguments", and deprecate "set/show print raw
8284 frame-arguments".
8285 * valprint.c (_initialize_valprint): Deprecate "set/show print
8286 raw".
8287
e6ed716c
PA
82882019-06-13 Pedro Alves <palves@redhat.com>
8289
8290 * compile/compile.c (struct compile_options): New.
8291 (compile_flag_option_def, compile_command_option_defs)
8292 (make_compile_options_def_group): New.
8293 (compile_file_command): Handle options with
8294 gdb::option::process_options.
8295 (compile_file_command_completer): New function.
8296 (compile_code_command): Handle options with
8297 gdb::option::process_options.
8298 (compile_code_command_completer): New function.
8299 (_initialize_compiler): Install completers for "compile code" and
8300 "compile file". Mention available options in "compile code" and
8301 "compile code"'s help.
8302 * completer.c (advance_to_completion_word): New, factored out from
8303 ...
8304 (advance_to_expression_complete_word_point): ... this.
8305 (advance_to_filename_complete_word_point): New.
8306 * completer.h (advance_to_filename_complete_word_point): New
8307 declaration.
8308
7d8062de
PA
83092019-06-13 Pedro Alves <palves@redhat.com>
8310
8311 * compile/compile.c: Include "cli/cli-option.h".
8312 (compile_print_value): Scope data pointer is now a
8313 value_print_options pointer; adjust.
8314 (compile_print_command): Process options. Scope data pointer is
8315 now a value_print_options pointer; adjust.
8316 (_initialize_compile): Update "compile print"'s help to include
8317 supported options. Install a completer for "compile print".
8318 * cp-valprint.c (show_vtblprint, show_objectprint)
8319 (show_static_field_print): Delete.
8320 (_initialize_cp_valprint): Don't install "set print
8321 static-members", "set print vtbl", "set print object" here.
8322 * printcmd.c: Include "cli/cli-option.h" and
8323 "common/gdb_optional.h".
8324 (print_command_parse_format): Rework to fill in a
8325 value_print_options instead of a format_data.
8326 (print_value): Change parameter type from format_data pointer to
8327 value_print_options reference. Adjust.
8328 (print_command_1): Process options. Adjust to pass down a
8329 value_print_options.
8330 (print_command_completer): New.
8331 (_initialize_printcmd): Install print_command_completer as
8332 handle_brkchars completer for the "print" command. Update
8333 "print"'s help to include supported options.
8334 * valprint.c: Include "cli/cli-option.h".
8335 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8336 here from cp-valprint.c.
8337 (boolean_option_def, uinteger_option_def)
8338 (value_print_option_defs, make_value_print_options_def_group):
8339 New. Use gdb::option::add_setshow_cmds_for_options to install
8340 "set print elements", "set print null-stop", "set print repeats",
8341 "set print pretty", "set print union", "set print array", "set
8342 print address", "set print symbol", "set print array-indexes".
8343 * valprint.h: Include <string> and "cli/cli-option.h".
8344 (make_value_print_options_def_group): Declare.
8345 (print_value): Change parameter type from format_data pointer to
8346 value_print_options reference.
8347 (print_command_completer): Declare.
8348
9d0faba9
PA
83492019-06-13 Pedro Alves <palves@redhat.com>
8350
8351 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8352 (COMMON_SFILES): Add maint-test-settings.c.
8353 * cli/cli-decode.c (boolean_enums): New global, factored out from
8354 ...
8355 (add_setshow_boolean_cmd): ... here.
8356 * cli/cli-decode.h (boolean_enums): Declare.
8357 * cli/cli-option.c: New file.
8358 * cli/cli-option.h: New file.
8359 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8360 factored out from ...
8361 (parse_cli_boolean_value(const char *)): ... this.
8362 (is_unlimited_literal): Change parameter type to pointer to
8363 pointer. Adjust and advance ARG pointer.
8364 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8365 (parse_cli_var_enum): New, factored out from ...
8366 (do_set_command): ... this. Adjust.
8367 * cli/cli-setshow.h (parse_cli_boolean_value)
8368 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8369 (parse_cli_var_enum): Declare.
8370 * cli/cli-utils.c: Include "cli/cli-option.h".
8371 (get_ulongest): New.
8372 * cli/cli-utils.h (get_ulongest): Declare.
8373 (check_for_argument): New overloads.
8374 * maint-test-options.c: New file.
8375
2c722807
PA
83762019-06-13 Pedro Alves <palves@redhat.com>
8377
8378 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8379 parse a range if "-" is at the end of the string.
8380
dee7b4c8
PA
83812019-06-13 Pedro Alves <palves@redhat.com>
8382
8383 * cli/cli-setshow.c (parse_auto_binary_operation)
8384 (parse_cli_boolean_value): Don't allow "o".
8385
dca0f6c0
PA
83862019-06-13 Pedro Alves <palves@redhat.com>
8387
8388 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8389 * NEWS: Mention maint test-settings KIND.
8390 * maint-test-settings.c: New file.
8391
597bf39d
PA
83922019-06-13 Pedro Alves <palves@redhat.com>
8393
8394 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8395 completer.
8396 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8397 "set" completers.
8398
48c410fb
PA
83992019-06-13 Pedro Alves <palves@redhat.com>
8400
8401 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8402 after item.
8403
93bcb043
PA
84042019-06-13 Pedro Alves <palves@redhat.com>
8405
8406 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8407
cbba3ecd
PA
84082019-06-13 Pedro Alves <palves@redhat.com>
8409
8410 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8411 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8412 call.
8413 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8414 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8415 calls.
8416 (check_for_argument): Skip spaces after argument.
8417
b9a3f842
PA
84182019-06-13 Pedro Alves <palves@redhat.com>
8419
8420 * thread.c (thread_apply_command): Adjust TID parsing.
8421 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8422 detected before end of string.
8423 (tid_is_in_list): Error out if LIST is invalid.
8424
3844e605
PA
84252019-06-13 Pedro Alves <palves@redhat.com>
8426
8427 * completer.c (complete_line_internal_1): Rewind completion word
8428 point.
8429 (completion_tracker::advance_custom_word_point_by): Change
8430 parameter type to int.
8431 * completer.h (completion_tracker::advance_custom_word_point_by):
8432 Likewise.
8433
00b56dbe
PA
84342019-06-13 Pedro Alves <palves@redhat.com>
8435
8436 * completer.c (advance_to_completion_word): Handle delimiters.
8437
d106773e
PA
84382019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8439
8440 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8441
08f10e02
TT
84422019-06-11 Tom Tromey <tom@tromey.com>
8443
8444 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8445 (xmalloc_failed): Move to alloc.c.
8446 * alloc.c: New file.
8447 * Makefile.in (COMMON_SFILES): Add alloc.c.
8448
1c7fe951
TT
84492019-06-11 Tom Tromey <tom@tromey.com>
8450
8451 * nat/linux-waitpid.c: Don't include server.h.
8452 (linux_debug): Remove.
8453 (my_waitpid): Update.
8454
89549d7f
TT
84552019-06-11 Tom Tromey <tromey@adacore.com>
8456
8457 * infcall.c (_initialize_infcall): Remove trailing newline from
8458 help.
8459 * user-regs.c (_initialize_user_regs): Remove trailing newline
8460 from help.
8461 * typeprint.c (_initialize_typeprint): Remove trailing newline
8462 from help.
8463 * reverse.c (_initialize_reverse): Remove trailing newlines from
8464 help.
8465 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8466 from help.
8467 * language.c (add_set_language_command): Remove trailing newline
8468 from help.
8469 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8470 help.
8471 * disasm.c (_initialize_disasm): Remove trailing newline from
8472 help.
8473 * top.c (init_main): Remove trailing newline from help.
8474 * interps.c (_initialize_interpreter): Remove trailing newline
8475 from help.
8476 * btrace.c (_initialize_btrace): Remove trailing newlines from
8477 help.
8478 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8479 from help.
8480 * python/python.c (_initialize_python): Remove trailing newline
8481 from help.
8482 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8483 help.
8484 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8485 from help. Reformat some text.
8486 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8487 from help.
8488 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8489 newline from help.
8490
86108c13
TT
84912019-06-11 Tom Tromey <tromey@adacore.com>
8492
8493 * darwin-nat.c (darwin_decode_exception_message)
8494 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8495
a7067863
AB
84962019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8497
8498 * valops.c (value_slice): Check for not allocated or not
8499 associated values.
8500
9ab08412
TV
85012019-06-10 Tom de Vries <tdevries@suse.de>
8502
8503 PR gdb/24618
8504 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8505 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8506 invalid.
8507
f19e22e9
TV
85082019-06-10 Tom de Vries <tdevries@suse.de>
8509
8510 PR gdb/24611
8511 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8512 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8513
e99f9db0
TV
85142019-06-10 Tom de Vries <tdevries@suse.de>
8515
8516 PR symtab/24545
8517 * symtab.c (struct demangled_name_entry): Add language field.
8518 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8519 static minimal symbol". Set and use language field.
8520
9bf7038b
TT
85212019-06-10 Tom Tromey <tromey@adacore.com>
8522
8523 * ada-lang.c (_initialize_ada_language): Update help text.
8524
422186a9
TT
85252019-06-10 Tom Tromey <tromey@adacore.com>
8526
8527 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8528 with a newline.
8529 * guile/guile.c (handle_boot_error): Don't end warning with a
8530 newline.
8531 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8532 warning with a newline.
8533 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8534 newline.
8535 (s12z_frame_cache): Likewise.
8536 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8537 a newline.
8538 * solib-svr4.c (disable_probes_interface): Don't end warning with
8539 a newline.
8540 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8541 newline.
8542 * python/python.c (do_finish_initialization): Don't end warning
8543 with a newline.
8544
25ce02ee
TT
85452019-06-10 Tom Tromey <tom@tromey.com>
8546
8547 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8548 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8549 gdbpy_enter.
8550
caa429d8
TT
85512019-06-10 Tom Tromey <tromey@adacore.com>
8552
8553 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8554 data.
8555 (elf_new_init): Don't call stabsread_new_init.
8556 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8557 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8558 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8559
81873cc8
TV
85602019-06-10 Tom de Vries <tdevries@suse.de>
8561
8562 PR symtab/16264
8563 PR symtab/24517
8564 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8565
4fa0265e
РИ
85662019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8567
8568 * source.c (find_and_open_source): Also rewrite relative file
8569 names.
8570
1a3da2cd
AB
85712019-04-26 Amos Bird <amosbird@gmail.com>
8572
8573 * annotate.c (annotate_thread_exited): Add "thread-exited"
8574 annotation.
8575
3847a7bf
TT
85762019-06-06 Tom Tromey <tromey@adacore.com>
8577
8578 * maint.h (class scoped_command_stats): Use
8579 DISABLE_COPY_AND_ASSIGN.
8580 <print_time>: New method.
8581 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8582 print_time.
8583 (scoped_command_stats::print_time): New method.
8584
312617a3
AB
85852019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8588 instructions of lengths 6 or 8 bytes.
8589
b02f78f9
PA
85902019-06-04 Pedro Alves <palves@redhat.com>
8591
8592 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8593
8594 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8595 * breakpoint.c (condition_completer): Likewise.
8596 * cli/cli-dump.c (scan_expression): Likewise.
8597 * common/filestuff.c (mkdir_recursive): Likewise.
8598 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8599 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8600 (gdb_abspath): Likewise.
8601 * compile/compile-cplus-types.c
8602 (compile_cplus_instance::decl_name): Likewise.
8603 * completer.c (complete_explicit_location):
8604 (signal_completer, reg_or_group_completer_1): Likewise.
8605 * cp-support.c (cp_remove_params_if_any): Likewise.
8606 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8607 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8608 * infcmd.c (strip_bg_char): Likewise.
8609 * linespec.c (copy_token_string): Likewise.
8610 * mi/mi-main.c (output_cores): Likewise.
8611 * psymtab.c (psymtab_search_name):
8612 * symfile.c (test_set_ext_lang_command): Likewise.
8613 * target.c (target_fileio_read_stralloc): Likewise.
8614 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8615 * value.c (complete_internalvar): Likewise.
8616
e1f2e1a2
CB
86172019-06-04 Christian Biesinger <cbiesinger@google.com>
8618
8619 Add objfile property to gdb.Type.
d3238f7d
PA
8620 * NEWS: Mention Python API addition.
8621 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8622
e664d728
PW
86232019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8624
8625 * NEWS: Mention the new set|show style [title|highlight].
8626 Mention changes to "show style", "help" and "apropos".
8627
66d8c862
PW
86282019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8629
8630 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8631 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8632 instead of print_help_for_command.
8633 (print_doc_of_command): New function.
8634 (help_list): Add 'apropos -v word' suggestion.
8635 (print_help_for_command): Style the command name using title style.
8636 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8637 (_initialize_cli_cmds): Describe -v in apropos_command help.
8638
9303eb2f
PW
86392019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8640
8641 * cli/cli-style.h (cli_style_option): Add name in constructor,
8642 add m_name class member, add constructor with intensity,
8643 add name class function.
8644 (cli_style_option::add_setshow_commands): Remove name argument.
8645 (highlight_style, title_style): New styles.
8646 * cli/cli-style.c (do_show): New function that shows a style
8647 characteristic styling the style name with itself.
8648 (set_style_name): New function.
8649 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8650 Update all callers according to the changes in cli/cli-style.h.
8651 * utils.h (fputs_highlighted): New function.
8652 * utils.c (fputs_highlighted): Likewise.
8653
e2c52041
PW
86542019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8655
8656 * NEWS: Mention new pipe command and new convenience variables.
8657
947d3946
PW
86582019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8659
8660 * cli/cli-cmds.c (pipe_command): New function.
8661 (_initialize_cli_cmds): Call add_com for pipe_command.
8662 Define | as an alias for pipe.
8663 (exit_status_set_internal_vars): New function.
8664 (shell_escape): Call exit_status_set_internal_vars.
8665 cli/cli-decode.c (find_command_name_length): Recognize | as
8666 a single character command.
8667
b8fd0918
PW
86682019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8669
8670 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8671 top.c (execute_command_to_ui_file): New function, mostly a copy
8672 of execute_command_to_string.
8673 (execute_command_to_string): Implement by calling
8674 execute_command_to_ui_file.
8675
68bb5386
PW
86762019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8677
8678 * top.h (saved_command_line): Remove declaration.
8679 * top.c (previous_saved_command_line, previous_repeat_arguments):
8680 New variables.
8681 (saved_command_line): Make static, define together with other
8682 'repeat variables'.
8683 (dont_repeat): Clear repeat_arguments.
8684 (repeat_previous, get_saved_command_line, save_command_line):
8685 New functions.
8686 (gdb_init): Initialize saved_command_line
8687 and previous_saved_command_line.
8688 * main.c (captured_main_1): Remove saved_command_line initialization.
8689 * event-top.c (handle_line_of_input): Update to use
8690 the new 'repeat' related functions instead of direct access to
8691 saved_command_line.
8692 * command.h (repeat_previous, get_saved_command_line,
8693 save_command_line): New declarations.
8694 (dont_repeat): Add comment.
8695
bfcdb852
TT
86962019-05-30 Tom Tromey <tromey@adacore.com>
8697
8698 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8699 Fix comment.
8700 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8701
0ef209f2
JV
87022019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8703
8704 PR cli/24587
8705 * completer.c (complete): Initialize variable word.
8706
955b06fa
SDJ
87072019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8708
8709 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8710 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8711 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8712 'body' is NULL to the outter 'if', protecting the '!is_define'
8713 situation as well.
8714
fa9c3fa0
TT
87152019-05-29 Tom Tromey <tromey@adacore.com>
8716
8717 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8718 (dwarf_unknown): New function.
8719 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8720 (dwarf_type_encoding_name): Use dwarf_unknown.
8721
4330d61d
TT
87222019-05-29 Tom Tromey <tromey@adacore.com>
8723
8724 PR c++/20020:
8725 * cp-valprint.c (cp_print_value_fields): Call
8726 cp_print_static_field inside "try".
8727
33a6bc35
TT
87282019-05-29 Tom Tromey <tromey@adacore.com>
8729
8730 * inflow.c (struct terminal_info): Add default operator=.
8731 * configure: Rebuild.
8732 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8733 -Wdeprecated-copy-dtor, -Wredundant-move.
8734
000439d5
TT
87352019-05-29 Tom Tromey <tromey@adacore.com>
8736
8737 * NEWS: Add entry.
8738 * infcmd.c (print_return_value_1): Handle finish_print
8739 option.
8740 (show_print_finish): New function.
8741 (_initialize_infcmd): Add "set/show print finish" commands.
8742 * valprint.c (user_print_options): Initialize new member.
8743 * valprint.h (struct value_print_options) <finish_print>: New
8744 member.
8745
c0e70c62
TT
87462019-05-28 Tom Tromey <tromey@adacore.com>
8747
8748 * ada-lang.c (ada_remove_Xbn_suffix)
8749 (find_old_style_renaming_symbol)
8750 (parse_old_style_renaming): Remove.
8751 (ada_find_renaming_symbol): Don't call
8752 find_old_style_renaming_symbol.
8753 (ada_is_renaming_symbol): Rename from
8754 ada_find_renaming_symbol. Remove "block" parameter. Return
8755 bool. Now static.
8756 (ada_read_var_value): Update and simplify.
8757 * ada-exp.y (write_var_or_type): Remove old code.
8758
766f8836
AH
87592019-05-28 Alan Hayward <alan.hayward@arm.com>
8760
68255adc 8761 PR gdb/25010
766f8836
AH
8762 * event-top.c: Remove include comment.
8763 * inflow.c (class scoped_ignore_sigttou): Move from here...
8764 * inflow.h (class scoped_ignore_sigttou): ...to here.
8765 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8766 * top.c: Remove include comment.
8767
eb41253a
TT
87682019-05-27 Tom Tromey <tom@tromey.com>
8769
8770 * NEWS: Fix typo.
8771
4ca51187
TT
87722019-05-22 Tom Tromey <tromey@adacore.com>
8773
8774 * target.c (target_follow_exec): Constify parameter.
8775 * target-delegates.c: Rebuild.
8776 * remote.c (remote_target::follow_exec): Constify parameter.
8777 * infrun.c (follow_exec): Constify parameter.
8778 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8779 (target_follow_exec): Likewise.
8780
8fca4da0
AH
87812019-05-22 Alan Hayward <alan.hayward@arm.com>
8782
8783 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8784 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8785
b7060614
AH
87862019-05-22 Alan Hayward <alan.hayward@arm.com>
8787
8788 * NEWS: Add debugredirect and testsuite sections.
8789
0a5954bd
SC
87902019-05-22 Simon Cook <simon.cook@embecosm.com>
8791
8792 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8793 target descriptions using exclusively floating point register name
8794 aliases.
8795
dc42e902
AB
87962019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8797
8798 PR gdb/18644:
8799 * f-lang.c (build_fortran_types): Handle the case where
8800 gdbarch_floatformat_for_type returns a nullptr.
8801
fb7806c7
TV
88022019-05-21 Tom de Vries <tdevries@suse.de>
8803
8804 PR cli/24587
8805 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8806
34d11c68
AB
88072019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8808
8809 PR gdb/18644:
8810 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8811 16-byte floats.
8812 * i386-tdep.c (i386_floatformat_for_type): Use
8813 floatformats_ia64_quad for the 16-byte floating point component
8814 within a fortran 32-byte complex number.
8815
122cf0f2
AB
88162019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8817
8818 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8819 delete default constructor.
8820 (find_partial_die): Update to return const struct.
8821 (partial_die_parent_scope): Move variable declaration into scope
8822 of its use and change its type to auto.
8823 (guess_partial_die_structure_name): Likewise.
8824 (partial_die_info::fixup): Likewise.
8825
33d0e35a
TT
88262019-05-17 Tom Tromey <tromey@adacore.com>
8827
8828 * source.c (find_and_open_source): Remove cast.
8829
a45575b0
TT
88302019-05-17 Tom Tromey <tromey@adacore.com>
8831
8832 * annotate.c (annotate_source): Make "filename" const.
8833 * annotate.h (annotate_source): Use const.
8834
81f47ac2
AH
88352019-05-17 Alan Hayward <alan.hayward@arm.com>
8836
8837 * disasm.c (set_disassembler_options): Send errors to stderr.
8838
ca1285d1
AH
88392019-05-17 Alan Hayward <alan.hayward@arm.com>
8840
8841 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8842 (cli_interp_base::set_logging): Check debug_redirect.
8843 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8844 * cli/cli-logging.c (debug_redirect): Add static variable.
8845 (pop_output_files): Add default param.
8846 (handle_redirections): Print debug setting.
8847 (show_logging_command): Likewise.
8848 (_initialize_cli_logging): Add debugredirect command.
8849 * interps.c (current_interp_set_logging): Add debug_redirect
8850 parameter.
8851 * interps.h (set_logging): Add debug_redirect parameter.
8852 (current_interp_set_logging): Likewise.
8853 * mi/mi-common.h: Likewise.
8854 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8855
88562019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8857 Tom Tromey <tromey@adacore.com>
8858
8859 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8860 directly.
8861 * cli/cli-interp.h (make_logging_output): Remove declaration.
8862 * cli/cli-logging.c (make_logging_output): Remove function.
8863 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8864 directly.
8865 * ui-file.c (tee_file::tee_file): Remove bools.
8866 (tee_file::~tee_file): Remove deletes.
8867 * ui-file.h (tee_file): Remove bools.
8868
26648588
JV
88692019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8870
8871 * mi/mi-cmds.h (mi_cmd_complete): New function.
8872 * mi/mi-main.c (mi_cmd_complete): Likewise.
8873 * mi/mi-cmds.c: Define new MI command -complete.
8874 * NEWS: Mention new -complete command.
8875
6e035501
JV
88762019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8877
8878 * completer.h (complete): New function.
8879 * completer.c (complete): Likewise.
8880 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8881 function defined in completer.h.
8882
7d0e2ece
JV
88832019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8884
e79be6e5 8885 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8886
fb816e8b
TV
88872019-05-17 Tom de Vries <tdevries@suse.de>
8888
8889 PR gdb/24094
8890 * dwarf2read.c (struct cu_partial_die_info): New struct.
8891 (find_partial_die): Return cu_partial_die_info.
8892 (partial_die_parent_scope, guess_partial_die_structure_name)
8893 (partial_die_info::fixup): Handle new return type of find_partial_die.
8894
677052f2
SDJ
88952019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8896
a1726c38 8897 PR breakpoints/24541
677052f2
SDJ
8898 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8899 "std::string", simplifying the algorithm.
8900
f3da9116
SDJ
89012019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8902
8903 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8904 (stap_static_probe_ops::get_probes): Likewise.
8905
f1bb75ab
SDJ
89062019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8907
8908 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8909 '-')" and "else if".
8910 (stap_parse_single_operand): Join checks for
8911 "gdbarch_stap_parse_special_token_p" and
8912 "gdbarch_stap_parse_special_token" in the same "if" statement.
8913 Invert check when verifying for operation on register
8914 displacement.
8915
3ca58cde
SDJ
89162019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8917
8918 * stap-probe.c (stap_get_opcode): Update comment.
8919 (stap_get_expected_argument_type): Likewise.
8920 (handle_stap_probe): Likewise.
8921
af2d9bee
SDJ
89222019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8923
8924 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8925 return type to 'bool'. Adjust comment. Use 'bool' when
8926 appropriate.
8927 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8928 * stap-probe.c (stap_parse_argument_1): Likewise.
8929 (stap_is_operator): Likewise.
8930 (stap_is_generic_prefix): Likewise.
8931 (stap_is_register_prefix): Likewise.
8932 (stap_is_register_indirection_prefix): Likewise.
8933 (stap_is_integer_prefix): Likewise.
8934 (stap_generic_check_suffix): Likewise.
8935 (stap_check_integer_suffix): Likewise.
8936 (stap_check_register_suffix): Likewise.
8937 (stap_check_register_indirection_suffix): Likewise.
8938 (stap_parse_register_operand): Likewise.
8939 (stap_parse_single_operand): Likewise.
8940 (stap_parse_argument_1): Likewise.
8941 (stap_probe::get_argument_count): Likewise.
8942 (stap_is_operator): Likewise.
8943
61c9c421
TT
89442019-05-16 Tom Tromey <tromey@adacore.com>
8945
8946 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8947 keyword to foreach.
8948
9ddc1af1
SM
89492019-05-15 Simon Marchi <simon.marchi@efficios.com>
8950
8951 * linux-thread-db.c (try_thread_db_load_1): Change return type
8952 to bool.
8953 (try_thread_db_load): Likewise.
8954 (try_thread_db_load_from_pdir_1): Likewise.
8955 (try_thread_db_load_from_pdir): Likewise.
8956 (try_thread_db_load_from_sdir): Likewise.
8957 (try_thread_db_load_from_dir): Likewise.
8958 (thread_db_load_search): Likewise.
8959 (has_libpthread): Likewise.
8960 (thread_db_load): Likewise.
8961
7bede828
SDJ
89622019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8963
8964 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8965 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8966 NULL, and complain/return if that's the case.
8967
c5358db4
JD
89682019-05-15 John Darrington <john@darrington.wattle.id.au>
8969
8970 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8971 (advance, posn, abstract_read_memory): New functions.
8972 [struct mem_read_abstraction]: New struct.
8973 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8974
c408a94f
TT
89752019-05-14 Tom Tromey <tromey@adacore.com>
8976
8977 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8978 value is not lval_memory.
8979
e7bd7fba
TT
89802019-05-14 Tom Tromey <tromey@adacore.com>
8981
8982 * solib.c (info_sharedlibrary_command): Style the file name.
8983
a6d0f249
AH
89842019-05-14 Alan Hayward <alan.hayward@arm.com>
8985
8986 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8987 (aarch64_vnv_type): Likewise.
8988 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8989 * common/tdesc.c: Likewise.
8990 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8991 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8992 * features/aarch64-fpu.xml: Add ieee half view.
8993 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8994 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8995 * gdbtypes.h (struct builtin_type): Likewise.
8996 (struct objfile_type): Likewise.
8997
66b8bb74
SM
89982019-05-12 Paul Naert <paul.naert@polymtl.ca>
8999
9000 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9001 typo.
9002 * location.h (string_to_event_location): Likewise.
9003
21c219fd
JB
90042019-05-11 Joel Brobecker <brobecker@adacore.com>
9005
9006 GDB 8.3 released.
9007
13674803
SM
90082019-05-10 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9011 New variable declaration.
9012 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9013 New variable.
9014 (print_one_breakpoint): Use ui_out::test_flags and new global
9015 variable to compute use_fixed_output.
9016 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9017 Remove.
9018 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9019 (mi_multi_location_breakpoint_output_fixed): Remove.
9020 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9021 new variable.
9022 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9023 fix_multi_location_breakpoint_output flag if version >= 3.
9024 * ui-out.h (enum ui_out_flag)
9025 <fix_multi_location_breakpoint_output>: New enumerator.
9026
a9eac7f9
SM
90272019-05-10 Simon Marchi <simon.marchi@efficios.com>
9028
9029 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9030
71bed2db
TT
90312019-05-10 Tom Tromey <tromey@adacore.com>
9032
9033 * ada-lang.c (catch_ada_completer): New function.
9034 (_initialize_ada_language): Use it.
9035
24c54127
TT
90362019-05-10 Tom Tromey <tromey@adacore.com>
9037
9038 * thread.c (print_thread_info): Make "requested_threads" const.
9039 * gdbthread.h (print_thread_info): Make "requested_threads"
9040 const.
9041 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9042 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9043
7a102139
TT
90442019-05-08 Tom Tromey <tom@tromey.com>
9045
9046 * gdbtypes.c (objfile_type_data): Change type.
9047 (objfile_type, _initialize_gdbtypes): Update.
9048
924d79e2
TT
90492019-05-08 Tom Tromey <tom@tromey.com>
9050
9051 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9052 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9053 (_initialize_dwarf2_frame): Update.
9054
4c58e337
TT
90552019-05-08 Tom Tromey <tom@tromey.com>
9056
9057 * objc-lang.c (objc_objfile_data): Change type.
9058 (find_methods): Update.
9059 (_initialize_objc_lang): Remove.
9060
d772d2ab
TT
90612019-05-08 Tom Tromey <tom@tromey.com>
9062
9063 * stabsread.c (rs6000_builtin_type_data): Change type.
9064 (rs6000_builtin_type, _initialize_stabsread): Update.
9065
d11d83f4
TT
90662019-05-08 Tom Tromey <tom@tromey.com>
9067
9068 * mips-tdep.c (mips_pdr_data): Remove.
9069 (_initialize_mips_tdep): Update.
9070
9a73f0ad
TT
90712019-05-08 Tom Tromey <tom@tromey.com>
9072
9073 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9074 (hppa_init_objfile_priv_data, read_unwind_info)
9075 (find_unwind_entry, _initialize_hppa_tdep): Update.
9076
8127a2fa
TT
90772019-05-08 Tom Tromey <tom@tromey.com>
9078
9079 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9080 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9081 on obstack.
9082 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9083
91d3055d
TT
90842019-05-08 Tom Tromey <tom@tromey.com>
9085
9086 * mdebugread.c (basic_type_data): Change type.
9087 (basic_type, _initialize_mdebugread): Update.
9088
31930bd3
TT
90892019-05-08 Tom Tromey <tom@tromey.com>
9090
9091 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9092
bdb3ed9e
TT
90932019-05-08 Tom Tromey <tom@tromey.com>
9094
9095 * nto-tdep.c (nto_inferior_data_reg): Change type.
9096 (nto_inferior_data): Update.
9097 (nto_inferior_data_cleanup, nto_new_inferior_data)
9098 (_initialize_nto_tdep): Remove.
9099 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9100
f37b313d
TT
91012019-05-08 Tom Tromey <tom@tromey.com>
9102
9103 * ada-lang.c (struct ada_inferior_data): Add initializers.
9104 (ada_inferior_data): Change type.
9105 (ada_inferior_data_cleanup): Remove.
9106 (get_ada_inferior_data, ada_inferior_exit)
9107 (struct ada_pspace_data): Add initializers, destructor.
9108 (ada_pspace_data_handle): Change type.
9109 (get_ada_pspace_data): Update.
9110 (ada_pspace_data_cleanup): Remove.
9111
24699405
TT
91122019-05-08 Tom Tromey <tom@tromey.com>
9113
9114 * coffread.c (struct coff_symfile_info): Add initializers.
9115 (coff_objfile_data_key): Move lower. Change type.
9116 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9117 Update.
9118 (coff_free_info): Remove.
9119
d4e05d2f
TT
91202019-05-08 Tom Tromey <tom@tromey.com>
9121
9122 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9123 (fbsd_pspace_data_handle): Move lower. Change type.
9124 (get_fbsd_pspace_data): Update.
9125 (fbsd_pspace_data_cleanup): Remove.
9126 (_initialize_fbsd_tdep): Update.
9127
14ef6690
TT
91282019-05-08 Tom Tromey <tom@tromey.com>
9129
9130 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9131 (get_ada_tasks_pspace_data): Update.
9132 (ada_tasks_pspace_data_cleanup): Remove.
9133 (_initialize_tasks): Update.
9134 (ada_tasks_inferior_data_handle): Change type.
9135 (get_ada_tasks_inferior_data): Update.
9136 (ada_tasks_inferior_data_cleanup): Remove.
9137 (struct ada_tasks_pspace_data): Add initializers.
9138
814cf43a
TT
91392019-05-08 Tom Tromey <tom@tromey.com>
9140
9141 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9142 * symfile-debug.c (debug_sym_get_probes): Change type.
9143 * stap-probe.c (handle_stap_probe):
9144 (stap_static_probe_ops::get_probes): Change type.
9145 * probe.h (class static_probe_ops) <get_probes>: Change type.
9146 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9147 (parse_probes_in_pspace): Update.
9148 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9149 Update.
9150 (any_static_probe_ops::get_probes): Change type.
9151 * elfread.c (elfread_data): New typedef.
9152 (probe_key): Change type.
9153 (elf_get_probes): Likewise. Update.
9154 (probe_key_free): Remove.
9155 (_initialize_elfread): Update.
9156 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9157 Change type.
9158 (dtrace_process_dof_probe, dtrace_process_dof)
9159 (dtrace_static_probe_ops::get_probe): Change type.
9160
02dc647e
TT
91612019-05-08 Tom Tromey <tom@tromey.com>
9162
9163 * xcoffread.c (struct xcoff_symfile_info): Rename from
9164 coff_symfile_info. Add initializers.
9165 (xcoff_objfile_data_key): Move lower. Change type.
9166 (XCOFF_DATA): Rewrite.
9167 (xcoff_free_info): Remove.
9168 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9169 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9170 (xcoff_initial_scan): Update.
9171
09232438
TT
91722019-05-08 Tom Tromey <tom@tromey.com>
9173
9174 * solib-svr4.c (struct svr4_info): Add initializers and
9175 destructor.
9176 <probes_table>: Now an htab_up.
9177 (solib_svr4_pspace_data): Change type.
9178 (free_probes_table): Simplify.
9179 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9180 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9181 (probes_table_remove_objfile_probes, register_solib_event_probe)
9182 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9183 (_initialize_svr4_solib): Update.
9184
7b4a314f
TT
91852019-05-08 Tom Tromey <tom@tromey.com>
9186
9187 * remote.c (remote_pspace_data): Change type.
9188 (remote_pspace_data_cleanup): Remove.
9189 (get_remote_exec_file, set_pspace_remote_exec_file)
9190 (_initialize_remote): Update.
9191
51d3063a
TT
91922019-05-08 Tom Tromey <tom@tromey.com>
9193
9194 * breakpoint.c (breakpoint_objfile_key): Change type.
9195 (get_breakpoint_objfile_data): Update.
9196 (free_breakpoint_objfile_data): Remove.
9197 (_initialize_breakpoint): Update.
9198
89fb8848
TT
91992019-05-08 Tom Tromey <tom@tromey.com>
9200
9201 * linux-tdep.c (struct linux_info): Add initializers.
9202 (linux_inferior_data): Move. Change type.
9203 (invalidate_linux_cache_inf): Update.
9204 (linux_inferior_data_cleanup): Remove.
9205 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9206
e9b89e2d
TT
92072019-05-08 Tom Tromey <tom@tromey.com>
9208
9209 * auxv.c (auxv_inferior_data): Move. Change type.
9210 (auxv_inferior_data_cleanup): Remove.
9211 (invalidate_auxv_cache_inf): Rewrite.
9212 (get_auxv_inferior_data, _initialize_auxv): Update.
9213
8c42777c
TT
92142019-05-08 Tom Tromey <tom@tromey.com>
9215
9216 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9217 (symfile_debug_objfile_data_key): Change type.
9218 (symfile_debug_installed, debug_qf_has_symbols)
9219 (debug_qf_find_last_source_symtab)
9220 (debug_qf_forget_cached_source_info)
9221 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9222 (debug_qf_print_stats, debug_qf_dump)
9223 (debug_qf_expand_symtabs_for_function)
9224 (debug_qf_expand_all_symtabs)
9225 (debug_qf_expand_symtabs_with_fullname)
9226 (debug_qf_map_matching_symbols)
9227 (debug_qf_expand_symtabs_matching)
9228 (debug_qf_find_pc_sect_compunit_symtab)
9229 (debug_qf_map_symbol_filenames)
9230 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9231 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9232 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9233 (debug_sym_read_linetable, debug_sym_relocate): Update.
9234 (symfile_debug_free_objfile): Remove.
9235 (install_symfile_debug_logging, _initialize_symfile_debug):
9236 Update.
9237
5bfd760d
TT
92382019-05-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9241 allocate_on_obstack.
9242 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9243 (get_dwarf2_per_objfile): Update.
9244 (set_dwarf2_per_objfile): Remove.
9245 (dwarf2_has_info, dwarf2_get_section_info): Update.
9246 (dwarf2_free_objfile): Remove.
9247 (_initialize_dwarf2_read): Update.
9248
e85e19b4
TT
92492019-05-08 Tom Tromey <tom@tromey.com>
9250
9251 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9252 initializers.
9253 <unsupported_script_warning_printed,
9254 script_not_found_warning_printed>: Now bool.
9255 (auto_load_pspace_data): Change type.
9256 (~auto_load_pspace_info): Rename from
9257 auto_load_pspace_data_cleanup.
9258 (get_auto_load_pspace_data, init_loaded_scripts_info)
9259 (clear_section_scripts, maybe_print_unsupported_script_warning)
9260 (maybe_print_script_not_found_warning, _initialize_auto_load):
9261 Update.
9262
f6aa7436
TT
92632019-05-08 Tom Tromey <tom@tromey.com>
9264
9265 * objfiles.c (objfile_pspace_info): Add destructor and
9266 initializers.
9267 (objfiles_pspace_data): Change type.
9268 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9269 (get_objfile_pspace_data): Update.
9270 (objfiles_bfd_data): Change type.
9271 (get_objfile_bfd_data): Update.
9272 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9273
6ae614f6
TT
92742019-05-08 Tom Tromey <tom@tromey.com>
9275
9276 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9277 Change type.
9278 (get_catch_syscall_inferior_data): Update.
9279 (catch_syscall_inferior_data_cleanup): Remove.
9280 (_initialize_break_catch_syscall): Update.
9281
6509b8eb
TT
92822019-05-08 Tom Tromey <tom@tromey.com>
9283
9284 * inflow.c (struct terminal_info): Add destructor and
9285 initializers.
9286 (inflow_inferior_data): Change type.
9287 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9288 (get_inflow_inferior_data, inflow_inferior_exit)
9289 (swap_terminal_info, _initialize_inflow): Update.
9290
35632941
TT
92912019-05-08 Tom Tromey <tom@tromey.com>
9292
9293 * target-dcache.c (target_dcache_cleanup): Remove.
9294 (target_dcache_aspace_key): Change type.
9295 (target_dcache_init_p, target_dcache_invalidate)
9296 (target_dcache_get, target_dcache_get_or_init)
9297 (_initialize_target_dcache): Update.
9298 * dcache.h (struct dcache_deleter): New.
9299
3017b94d
TT
93002019-05-08 Tom Tromey <tom@tromey.com>
9301
9302 * symtab.c (struct symbol_cache): Add destructor and
9303 initializers.
9304 (symbol_cache_key): Move. Change type.
9305 (make_symbol_cache, free_symbol_cache): Remove.
9306 (get_symbol_cache): Update.
9307 (symbol_cache_cleanup): Remove.
9308 (ALL_PSPACES, symbol_cache_flush)
9309 (maintenance_print_symbol_cache)
9310 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9311 Update.
9312
a32ad8c5
TT
93132019-05-08 Tom Tromey <tom@tromey.com>
9314
9315 * symtab.c (struct main_info): Add destructor and initializers.
9316 (main_progspace_key): Move. Change type.
9317 (get_main_info): Update.
9318 (main_info_cleanup): Remove.
9319 (_initialize_symtab): Update.
9320
5f6e90a0
TT
93212019-05-08 Tom Tromey <tom@tromey.com>
9322
9323 * registry.h (DECLARE_REGISTRY): Define the _key class.
9324
1bd0c6e4
AB
93252019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * NEWS: Merge two 'New commands' sections.
9328
2228ef77
XR
93292019-05-08 Joel Brobecker <brobecker@adacore.com>
9330
9331 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9332 parameter and use Ada language definition instead.
9333 (ada_val_print_ptr): Remove unused language parameter.
9334 (ada_val_print_num): Remove language parameter and use Ada language
9335 definition instead.
9336 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9337 parameter.
9338 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9339 parameter and use Ada language definition instead.
9340 (ada_val_print_1): Update all ada_val_print_xxx calls.
9341 Remove language parameter.
9342 (ada_val_print): Update ada_val_print_1 call.
9343
60fcc1c3
TT
93442019-05-08 Tom Tromey <tromey@adacore.com>
9345
9346 * remote.c (remote_hw_watchpoint_limit)
9347 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9348 Now static.
9349
ed2b7c17
TT
93502019-05-08 Tom Tromey <tromey@adacore.com>
9351
9352 * maint.c (_initialize_maint_cmds): Move initialization code to
9353 remote.c.
9354 (watchdog, show_watchdog): Move to remote.c.
9355 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9356 "watchdog" static.
9357 (_initialize_remote): Move initialization code from maint.c.
9358 * defs.h (watchdog): Don't declare.
9359
b0be6c91
TT
93602019-05-08 Tom Tromey <tromey@adacore.com>
9361
9362 * tui/tui-interp.c: Include main.h.
9363 * interps.c: Include main.h.
9364 * main.h (interpreter_p): Declare.
9365 * defs.h (interpreter_p): Don't declare.
9366
587ee17b
TT
93672019-05-08 Tom Tromey <tromey@adacore.com>
9368
9369 * dwarf2loc.c: Include dwarf2read.h.
9370 * defs.h (read_unsigned_leb128): Don't declare.
9371 * dwarf2read.h (read_unsigned_leb128): Declare.
9372
ca1df239
TT
93732019-05-08 Tom Tromey <tromey@adacore.com>
9374
9375 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9376 method.
9377
99f20f08
TT
93782019-05-08 Tom Tromey <tromey@adacore.com>
9379
9380 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9381 when no wrap column is set.
9382
80e55b13
TT
93832019-05-08 Tom Tromey <tromey@adacore.com>
9384
9385 * c-lang.c (c_get_string): Handle non-C-style arrays.
9386
9d3421af
TT
93872019-05-08 Tom Tromey <tromey@adacore.com>
9388
9389 * typeprint.c (print_offset_data::update): Print the bit offset,
9390 not the number of bits remaining.
9391
844333e2
TT
93922019-05-08 Tom Tromey <tromey@adacore.com>
9393
9394 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9395 padding at end of comment.
9396
988915ee
TT
93972019-05-08 Tom Tromey <tromey@adacore.com>
9398
9399 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9400 Compare main types.
9401
26bfd823
TT
94022019-05-06 Tom Tromey <tom@tromey.com>
9403
9404 * common/scoped_mmap.c: Include common-defs.h.
9405 * common/scoped_mmap.h: Don't include config.h.
9406
89055eaa
TT
94072019-05-04 Tom Tromey <tom@tromey.com>
9408
9409 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9410 (struct aarch64_call_info): Add initializers.
9411 <si>: Now a std::vector.
9412 (pass_on_stack, aarch64_push_dummy_call): Update.
9413
5da01df5
TT
94142019-05-04 Simon Marchi <simon.marchi@efficios.com>
9415 Tom Tromey <tom@tromey.com>
9416
9417 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9418 (ppc_threads): Now a std::vector. Now static.
9419 (hwdebug_find_thread_points_by_tid)
9420 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9421 Update.
9422
fbdf05a1
TT
94232019-05-04 Tom Tromey <tom@tromey.com>
9424
9425 * arc-tdep.c (arc_tdesc_init): Return bool.
9426
06d16ec9
TT
94272019-05-04 Tom Tromey <tom@tromey.com>
9428
9429 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9430 Use gdb_assert_not_reached.
9431
9c056022
TT
94322019-05-04 Tom Tromey <tom@tromey.com>
9433
9434 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9435 "false".
9436
fa9c2a59
TT
94372019-05-04 Tom Tromey <tom@tromey.com>
9438
9439 * arc-tdep.c (arc_tdesc_init): Use bool.
9440
e2eb806a
TT
94412019-05-04 Tom Tromey <tom@tromey.com>
9442
9443 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9444
6fe87677
TT
94452019-05-04 Tom Tromey <tom@tromey.com>
9446
9447 * cli/cli-cmds.c (valid_command_p): Return bool.
9448
7f008c9e
TT
94492019-05-04 Tom Tromey <tom@tromey.com>
9450
9451 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9452 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9453
b6484282
RT
94542019-05-04 Raul Tambre <raul@tambre.ee>
9455
9456 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9457 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9458 operator for comparison.
9459
af97b416
TT
94602019-05-04 Tom Tromey <tom@tromey.com>
9461
9462 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9463 (lookup_partial_symbol, print_partial_symbols)
9464 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9465 (psymbol_compare): Update.
9466 (add_psymbol_to_bcache): Clear the entire psymbol.
9467 (maintenance_check_psymtabs): Update.
9468 * psympriv.h (struct partial_symbol): Don't derive from
9469 general_symbol_info.
9470 <obj_section, unrelocated_address, address,
9471 set_unrelocated_address>: Update.
9472 <ginfo>: New member.
9473 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9474 (debug_names::write_psymbols): Update.
9475
9d6d4be8
TV
94762019-05-04 Tom de Vries <tdevries@suse.de>
9477
9478 * contrib/cc-with-tweaks.sh: Support -n arg.
9479
66452beb
PW
94802019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9481
9482 * corelow.c (core_target::detach): Ensure frame cache and
9483 register caches are cleared.
9484 inferior.c (exit_inferior_1): Likewise.
9485
bde09ab7
TT
94862019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9487 Tom Tromey <tom@tromey.com>
9488
9489 * dictionary.c (collate_pending_symbols_by_language): Remove
9490 "struct" from foreach.
9491 * symtab.c (lookup_global_symbol_from_objfile)
9492 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9493 foreach.
9494 * ser-tcp.c (net_open): Remove "struct" from foreach.
9495 * objfiles.c (objfile_relocate, objfile_rebase)
9496 (objfile_has_symbols): Remove "struct" from foreach.
9497 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9498 from foreach.
9499 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9500 foreach.
9501 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9502 "struct" from foreach.
9503 * ada-lang.c (create_excep_cond_exprs)
9504 (ada_exception_catchpoint_cond_string): Remove "struct" from
9505 foreach.
9506
222a8d25
TT
95072019-05-03 Tom Tromey <tromey@adacore.com>
9508
9509 * ada-exp.y (convert_char_literal): Check suffix of each
9510 enumerator.
9511
fcd60b84
DP
95122019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9513
9514 PR ada/21406:
9515 * ada-exp.y (yywrap): Don't define.
9516 * ada-lex.l (%option): Add noyywrap
9517 (yywrap): Remove.
9518
5f2459c2
EZ
95192019-05-03 Eli Zaretskii <eliz@gnu.org>
9520
353ea2d1
EZ
9521 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9522 _WIN32_WINNT to the XP level, unless already defined to a higher
9523 level.
9524
9525 * unittests/parse-connection-spec-selftests.c:
9526 * ser-tcp.c:
9527 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9528 override.
9529
5f2459c2
EZ
9530 * symfile.c (find_separate_debug_file): Remove colon from the
9531 drive spec of DOS/Windows file names of the target, so that the
9532 file name produced from DEBUGDIR and the target's directory will
9533 be valid on DOS/Windows systems.
9534
80062eb9
AB
95352019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9536
9537 * rust-lang.c (val_print_struct): Handle printing structures
9538 containing strings.
9539
b8c05e85
TT
95402019-05-02 Tom Tromey <tromey@adacore.com>
9541
9542 * valarith.c (_initialize_valarith): Remove.
9543
4504bbde
TT
95442019-05-01 Tom Tromey <tromey@adacore.com>
9545
9546 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9547 bitfields.
9548
d48e62f4
TT
95492019-05-01 Tom Tromey <tromey@adacore.com>
9550
9551 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9552 for big-endian copies.
9553
15f18d14
AT
95542019-04-30 Ali Tamur <tamur@google.com>
9555 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9556 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9557 (read_3_bytes): New function.
9558
ab4ee614
JB
95592019-04-30 Joel Brobecker <brobecker@adacore.com>
9560
9561 * windows-nat.c (main_thread_id): Delete.
9562 (handle_output_debug_string): Replace main_thread_id by
9563 current_event.dwThreadId.
9564 (fake_create_process): Likewise.
9565 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9566 Do not set main_thread_id.
9567 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9568 current_event.dwThreadId.
9569 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9570
8ed5b76e
JB
95712019-04-30 Joel Brobecker <brobecker@adacore.com>
9572
9573 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9574 Use current_event.dwThreadId instead of main_thread_id.
9575
2ff0a947
TT
95762019-04-30 Tom Tromey <tromey@adacore.com>
9577
9578 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9579 (create_excep_cond_exprs): Iterate over program spaces.
9580 (ada_exception_catchpoint_cond_string): Examine all minimal
9581 symbols for exception types.
9582
a776957c
TT
95832019-04-30 Tom Tromey <tromey@adacore.com>
9584
9585 PR c++/24470:
9586 * dwarf2read.c (process_structure_scope): Handle case where type
9587 has template parameters but no symbol was created.
9588
bc68014d
AB
95892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9590 Chris January <chris.january@arm.com>
9591
9592 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9593 qualifier.
9594 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9595
f1fdc960
AB
95962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9597
9598 * f-typeprint.c (f_print_type): Update rules for printing
9599 whitespace.
9600 (f_type_print_varspec_suffix): Likewise.
9601
bf7a4de1
AB
96022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9603 Chris January <chris.january@arm.com>
9604
9605 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9606 function arguments.
9607
bbe75b9d
AB
96082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9609
9610 * f-lang.c (build_fortran_types): Change name of void type to
9611 lower case.
9612 * f-typeprint.c (f_type_print_base): Print the name of the void
9613 type, rather than a fixed string.
9614 * f-valprint.c (f_decorations): Use lower case void string.
9615
1db455a7
AB
96162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9617 Chris January <chris.january@arm.com>
9618
9619 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9620 types for Fortran.
9621
b6d03bb2
AB
96222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9623 Chris January <chris.january@arm.com>
9624 David Lecomber <david.lecomber@arm.com>
9625
9626 * f-exp.y (BINOP_INTRINSIC): New token.
9627 (exp): New parser rule handling BINOP_INTRINSIC.
9628 (f77_keywords): Add new builtin procedures.
9629 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9630 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9631 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9632 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9633 (print_unop_subexp_f): New function.
9634 (print_binop_subexp_f): New function.
9635 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9636 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9637 (dump_subexp_body_f): Likewise.
9638 (operator_check_f): Likewise.
9639 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9640 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9641
83228e93
AB
96422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9643
9644 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9645 UNOP_KIND.
9646 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9647 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9648 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9649 (operator_length_f): New fuction.
9650 (print_subexp_f): New function.
9651 (op_name_f): New function.
9652 (dump_subexp_body_f): New function.
9653 (operator_check_f): New function.
9654 (exp_descriptor_f): Replace standard expression handling functions
9655 with new functions.
9656 * gdb/fortran-operator.def: New file.
9657 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9658 * gdb/std-operator.def: Remove UNOP_KIND.
9659
6fdcd7cc
AB
96602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9661
9662 * std-operator.def: Remove unbalanced, stray double quote
9663 character.
9664
2e62ab40
AB
96652019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9666 Chris January <chris.january@arm.com>
9667 Daniel Everett <daniel.everett@arm.com>
9668 Nick Forrington <nick.forrington@arm.com>
9669 Richard Bunt <richard.bunt@arm.com>
9670
9671 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9672 of depth when printing anonymous structs or unions.
9673 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9674 Don't print either the top-level value, or the children if the
9675 max-depth is exceeded.
9676 (ppscm_print_children): When printing the key of a map, allow one
9677 extra level of depth.
9678 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9679 print either the top-level value, or the children if the max-depth
9680 is exceeded.
9681 (print_children): When printing the key of a map, allow one extra
9682 level of depth.
9683 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9684 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9685 (user_print_options): Initialise max_depth field.
9686 (val_print_scalar_or_string_type_p): New function.
9687 (val_print): Check to see if the max depth has been reached.
9688 (val_print_check_max_depth): Define new function.
9689 (show_print_max_depth): New function.
9690 (_initialize_valprint): Add 'print max-depth' option.
9691 * valprint.h (struct value_print_options) <max_depth>: New field.
9692 (val_print_check_max_depth): Declare new function.
9693 * NEWS: Document new feature.
9694
4be290b2
AB
96952019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9696
9697 * ada-lang.c (ada_language_defn): Initialise new field.
9698 * c-lang.c (c_is_string_type_p): New function.
9699 (c_language_defn): Initialise new field.
9700 (cplus_language_defn): Initialise new field.
9701 (asm_language_defn): Initialise new field.
9702 (minimal_language_defn): Initialise new field.
9703 * c-lang.h (c_is_string_type_p): Declare new function.
9704 * d-lang.c (d_language_defn): Initialise new field.
9705 * f-lang.c (f_is_string_type_p): New function.
9706 (f_language_defn): Initialise new field.
9707 * go-lang.c (go_is_string_type_p): New function.
9708 (go_language_defn): Initialise new field.
9709 * language.c (default_is_string_type_p): New function.
9710 (unknown_language_defn): Initialise new field.
9711 (auto_language_defn): Initialise new field.
9712 * language.h (struct language_defn) <la_is_string_type_p>: New
9713 member variable.
9714 (default_is_string_type_p): Declare new function.
9715 * m2-lang.c (m2_language_defn): Initialise new field.
9716 * objc-lang.c (objc_language_defn): Initialise new field.
9717 * opencl-lang.c (opencl_language_defn): Initialise new field.
9718 * p-lang.c (pascal_is_string_type_p): New function.
9719 (pascal_language_defn): Initialise new field.
9720 * rust-lang.c (rust_is_string_type_p): New function.
9721 (rust_language_defn): Initialise new field.
9722
721b08c6
AB
97232019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9724
9725 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9726 New field.
9727 * ada-lang.c (ada_language_defn): Initialise new field.
9728 * c-lang.c (c_language_defn): Likewise.
9729 (cplus_language_defn): Likewise.
9730 (asm_language_defn): Likewise.
9731 (minimal_language_defn): Likewise.
9732 * d-lang.c (d_language_defn): Likewise.
9733 * f-lang.c (f_language_defn): Likewise.
9734 * go-lang.c (go_language_defn): Likewise.
9735 * language.c (unknown_language_defn): Likewise.
9736 (auto_language_defn): Likewise.
9737 * m2-lang.c (m2_language_defn): Likewise.
9738 * objc-lang.c (objc_language_defn): Likewise.
9739 * opencl-lang.c (opencl_language_defn): Likewise.
9740 * p-lang.c (pascal_language_defn): Likewise.
9741 * rust-lang.c (rust_language_defn): Likewise.
9742
fc913e53
AB
97432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9744
9745 * ada-lang.c (ada_is_character_type): Change return type to bool.
9746 (ada_is_string_type): Likewise.
9747 * ada-lang.h (ada_is_character_type): Update declaration
9748 (ada_is_string_type): Likewise.
9749
fa731fa0
PW
97502019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9751
9752 Support style in 'frame|thread apply'
9753
9754 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9755 * record.c (record_start, record_stop): Update callers of
9756 execute_command_to_string with false.
9757 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9758 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9759 methods.
9760 (class string_file): New constructor with term_out parameter.
9761 Override methods term_out and can_emit_style_escape. New member
9762 term_out.
9763 (class stdio_file): Override can_emit_style_escape.
9764 (class tee_file): Override term_out and can_emit_style_escape.
9765 * utils.h (can_emit_style_escape): Remove.
9766 * utils.c (can_emit_style_escape): Likewise.
9767 Update all callers of can_emit_style_escape (SOMESTREAM) to
9768 SOMESTREAM->can_emit_style_escape.
9769 * source-cache.c (source_cache::get_source_lines): Likewise.
9770 * stack.c (frame_apply_command_count): Call execute_command_to_string
9771 passing the term_out characteristic of the current gdb_stdout.
9772 * thread.c (thr_try_catch_cmd): Likewise.
9773 * top.c (execute_command_to_string): pass term_out parameter
9774 to construct the string_file for the command output.
9775 * ui-file.c (term_cli_styling): New function (most code moved
9776 from utils.c can_emit_style_escape).
9777 (string_file::string_file, string_file::can_emit_style_escape,
9778 stdio_file::can_emit_style_escape, tee_file::term_out,
9779 tee_file::can_emit_style_escape): New functions.
9780
136afab8
PW
97812019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9782
9783 * NEWS: Mention the new set|show may-call-functions.
9784 * infcall.c (may_call_functions_p): New variable.
9785 (show_may_call_functions_p): New function.
9786 (call_function_by_hand_dummy): Throws an error if not
9787 may-call-functions.
9788 (_initialize_infcall): Call add_setshow_boolean_cmd for
9789 may-call-functions.
9790
725cbb63
KS
97912019-04-25 Keith Seitz <keiths@redhat.com>
9792
9793 PR c++/24367
9794 * cp-support.c (inspect_type): Don't attempt substitutions
9795 of symbol with the same name.
9796
3d1cbb78
TT
97972019-04-25 Tom Tromey <tromey@adacore.com>
9798
9799 PR gdb/24475:
9800 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9801 static.
9802
94aeb44b
TT
98032019-04-25 Tom Tromey <tromey@adacore.com>
9804
9805 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9806 rvalue reference.
9807 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9808 (gdb_xml_parser::parse): Use std::move.
9809 * python/python-internal.h (gdbpy_convert_exception): Take a const
9810 reference.
9811 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9812 std::move.
9813 * python/py-utils.c (gdbpy_convert_exception): Take a const
9814 reference.
9815 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9816 Use std::move.
9817 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9818 Use std::move.
9819 * mi/mi-main.c (mi_print_exception): Take a const reference.
9820 * main.c (handle_command_errors): Take a const reference.
9821 * linespec.c (parse_linespec): Use std::move.
9822 * infcall.c (run_inferior_call): Use std::move.
9823 (call_function_by_hand_dummy): Use std::move.
9824 * exec.c (try_open_exec_file): Use std::move.
9825 * exceptions.h (exception_print, exception_fprintf)
9826 (exception_print_same): Update.
9827 * exceptions.c (print_exception, exception_print)
9828 (exception_fprintf, exception_print_same): Change parameters to
9829 const reference.
9830 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9831 * common/new-op.c: Use std::move.
9832 * common/common-exceptions.h (struct gdb_exception): Add move
9833 constructor.
9834 (struct gdb_exception_error, struct gdb_exception_quit, struct
9835 gdb_quit_bad_alloc): Change constructor to move constructor.
9836 (throw_exception): Change parameter to rvalue reference.
9837 * common/common-exceptions.c (throw_exception): Take rvalue
9838 reference.
9839 * cli/cli-interp.c (safe_execute_command): Use std::move.
9840 * breakpoint.c (insert_bp_location, location_to_sals): Use
9841 std::move.
9842
680d7fd5
TT
98432019-04-25 Tom Tromey <tromey@adacore.com>
9844
9845 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9846 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9847 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9848 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9849 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9850 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9851 guile/scm-value.c: Use unpack.
9852 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9853 gdbscm_gdb_exception.
9854 (gdbscm_throw_gdb_exception): Likewise.
9855 (struct gdbscm_gdb_exception): New.
9856 (unpack): New function.
9857 (gdbscm_wrap): Use unpack.
9858
c6fdd8b2
TT
98592019-04-25 Tom Tromey <tromey@adacore.com>
9860
9861 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9862 (gdb_rl_callback_handler): Use std::move.
9863 * common/common-exceptions.h (struct gdb_exception): Add move
9864 assignment operator.
9865 (throw_exception_sjlj): Change "exception" to const reference.
9866 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9867 (throw_exception_sjlj): Change "exception" to const reference.
9868
cc06b668
TT
98692019-04-25 Tom Tromey <tromey@adacore.com>
9870
9871 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9872 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9873 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9874 Update.
9875 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9876 Update.
9877 * mi/mi-interp.c (mi_interp::exec): Update.
9878 * linespec.c (parse_linespec): Update.
9879 * infcall.c (run_inferior_call): Update.
9880 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9881 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9882 (gdbscm_lookup_global_symbol): Update.
9883 * guile/scm-param.c (gdbscm_parameter_value): Update.
9884 * guile/scm-frame.c (gdbscm_frame_read_register)
9885 (gdbscm_frame_read_var): Update.
9886 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9887 * exec.c (try_open_exec_file): Update.
9888 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9889 (gdb_rl_callback_handler): Update.
9890 * common/common-exceptions.h (exception_none): Don't declare.
9891 * common/common-exceptions.c (exception_none): Don't define.
9892 (struct catcher) <exception>: Update.
9893 * cli/cli-interp.c (safe_execute_command): Update.
9894 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9895
cf532bd1
AT
98962019-04-25 Ali Tamur <tamur@google.com>
9897
9898 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9899 (read_attribute_value): Likewise.
9900 (dwarf2_read_addr_index): Update comment.
9901 (read_str_index): Add DW_FORM_strx.
9902 (dwarf2_string_attr): Likewise.
9903 (dwarf2_const_value_attr): Likewise.
9904 (dump_die_shallow): Likewise.
9905 (dwarf2_fetch_constant_bytes): Likewise.
9906 (skip_form_bytes): Likewise.
9907 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9908
82433e3e
SDJ
99092019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9910
9911 PR corefiles/11608
9912 PR corefiles/18187
9913 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9914 OFFSET. Verify if current mapping contains an ELF header.
9915 (linux_find_memory_regions_full): Adjust call to
9916 dump_mapping_p.
9917
723adb65
SL
99182019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9919 Kang Li <kanglictf@gmail.com>
9920
9921 PR gdb/21600
9922
9923 * dwarf2-frame.c (read_initial_length): Be consistent about using
9924 unsigned representation of length.
9925 (decode_frame_entry_1): Likewise. Check for wraparound of
9926 end pointer as well as buffer overflow.
9927
596179f7
SDJ
99282019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9929
9930 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9931 "vq".
9932
a59240a4
TT
99332019-04-24 Tom Tromey <tromey@adacore.com>
9934
9935 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9936
f872fdbb
AB
99372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * s12z-tdep.c (s12z_unwind_pc): Delete.
9940 (s12z_unwind_sp): Delete.
9941 (s12z_gdbarch_init): Don't register deleted functions with
9942 gdbarch.
9943
b614e6f3
AB
99442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9945
9946 * rl78-tdep.c (rl78_unwind_sp): Delete.
9947 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9948
14faed38
AB
99492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9950
9951 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9952 (xstormy16_unwind_pc): Delete.
9953 (xstormy16_dummy_id): Delete.
9954 (xstormy16_gdbarch_init): Don't register deleted functions with
9955 gdbarch.
9956
541aad8a
AB
99572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9958
9959 * vax-tdep.c (vax_unwind_pc): Delete.
9960 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9961
29222070
AB
99622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9963
9964 * v850-tdep.c (v850_unwind_sp): Delete.
9965 (v850_unwind_pc): Delete.
9966 (v850_dummy_id): Delete.
9967 (v850_gdbarch_init): Don't register deleted functions with
9968 gdbarch.
9969
0f534d76
AB
99702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9971
9972 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9973 (tilegx_unwind_pc): Delete.
9974 (tilegx_unwind_dummy_id): Delete.
9975 (tilegx_gdbarch_init): Don't register deleted functions with
9976 gdbarch.
9977
1ba7b7f9
AB
99782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9979
9980 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9981 (tic6x_dummy_id): Delete.
9982 (tic6x_gdbarch_init): Don't register deleted functions with
9983 gdbarch.
9984
d31f262c
AB
99852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9986
9987 * sparc-tdep.c (sparc_unwind_pc): Delete.
9988 (sparc32_gdbarch_init): Don't register deleted function with
9989 gdbarch.
9990
6d14d64d
AB
99912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9992
9993 * sh-tdep.c (sh_unwind_sp): Delete.
9994 (sh_unwind_pc): Delete.
9995 (sh_dummy_id): Delete.
9996 (sh_gdbarch_init): Don't register deleted functions with
9997 gdbarch.
9998
a40dde9d
AB
99992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10000
10001 * score-tdep.c (score_unwind_sp): Delete.
10002 (score_unwind_pc): Delete.
10003 (score_dummy_id): Delete.
10004 (score_gdbarch_init): Don't register deleted functions with
10005 gdbarch.
10006
47c47d69
AB
100072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10008
10009 * rx-tdep.c (rx_unwind_pc): Delete.
10010 (rx_unwind_sp): Delete.
10011 (rx_dummy_id): Delete.
10012 (rx_gdbarch_init): Don't register deleted functions with
10013 gdbarch. Update comment.
10014
833a4480
AB
100152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10016
10017 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10018 (rs6000_dummy_id): Delete.
10019 (rs6000_gdbarch_init): Don't register deleted functions with
10020 gdbarch.
10021
3f2cef49
AB
100222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10023
10024 * or1k-tdep.c (or1k_dummy_id): Delete.
10025 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10026
96acf884
AB
100272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * nios2-tdep.c (nios2_dummy_id): Delete.
10030 (nios2_unwind_sp): Delete.
10031 (nios2_gdbarch_init): Don't register deleted functions with
10032 gdbarch.
10033
ca0ab0aa
AB
100342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10035
10036 * nds32-tdep.c (nds32_dummy_id): Delete.
10037 (nds32_unwind_pc): Delete.
10038 (nds32_unwind_sp): Delete.
10039 (nds32_gdbarch_init): Don't register deleted functions with
10040 gdbarch.
10041
c8259044
AB
100422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10043
10044 * msp430-tdep.c (msp430_unwind_pc): Delete.
10045 (msp430_unwind_sp): Delete.
10046 (msp430_dummy_id): Delete.
10047 (msp430_gdbarch_init): Don't register deleted functions with
10048 gdbarch.
10049
27f113c8
AB
100502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10051
10052 * moxie-tdep.c (moxie_unwind_sp): Delete.
10053 (moxie_unwind_pc): Delete.
10054 (moxie_dummy_id): Delete.
10055 (moxie_gdbarch_init): Don't register deleted functions with
10056 gdbarch.
10057
aee6c3cd
AB
100582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10059
10060 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10061 (mn10300_unwind_pc): Delete.
10062 (mn10300_unwind_sp): Delete.
10063 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10064 mn10300_unwind_sp.
10065 (mn10300_frame_unwind_init): Don't register deleted functions with
10066 gdbarch.
10067
8e2b5aea
AB
100682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10069
10070 * mep-tdep.c (mep_unwind_pc): Delete.
10071 (mep_unwind_sp): Delete.
10072 (mep_dummy_id): Delete.
10073 (mep_gdbarch_init): Don't register deleted functions with
10074 gdbarch.
10075
43cf3ede
AB
100762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10079 (m68hc11_unwind_sp): Delete.
10080 (m68hc11_gdbarch_init): Don't register deleted functions with
10081 gdbarch.
10082
5e79b7bb
AB
100832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10084
10085 * m32r-tdep.c (m32r_unwind_sp): Delete.
10086 (m32r_unwind_pc): Delete.
10087 (m32r_dummy_id): Delete.
10088 (m32r_gdbarch_init): Don't register deleted functions with
10089 gdbarch.
10090
89b268d8
AB
100912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10092
10093 * m32c-tdep.c (m32c_unwind_pc): Delete.
10094 (m32c_unwind_sp): Delete.
10095 (m32c_dummy_id): Delete.
10096 (m32c_gdbarch_init): Don't register deleted functions with
10097 gdbarch.
10098
946c28d2
AB
100992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10100
10101 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10102 (lm32_unwind_pc): Delete.
10103 (lm32_dummy_id): Delete.
10104 (lm32_gdbarch_init): Don't register deleted functions with
10105 gdbarch.
10106
bf12844a
AB
101072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10108
10109 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10110 (iq2000_unwind_pc): Delete.
10111 (iq2000_dummy_id): Delete.
10112 (iq2000_gdbarch_init): Don't register deleted functions with
10113 gdbarch.
10114
ecbc06d2
AB
101152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10116
10117 * nds32-tdep.c (nds32_type_align): Delete.
10118 (nds32_push_dummy_call): Use type_align instead.
10119
030197b4
AB
101202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10121
10122 * arm-tdep.c (arm_type_align): Only handle vector override case.
10123 (arm_push_dummy_call): Use type_align.
10124 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10125
b907456c
AB
101262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10127
10128 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10129 case.
10130 (pass_on_stack): Use type_align.
10131 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10132 function.
10133
9e97ba43
TT
101342019-04-23 Tom Tromey <tromey@adacore.com>
10135
10136 * dwarf2read.c (line_header::file_name_at): Remove unused
10137 overload.
10138
6892f601
TV
101392019-04-23 Tom de Vries <tdevries@suse.de>
10140
10141 PR gdb/24438
10142 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10143 invocation.
10144
336d760d
AT
10145
101462019-03-27 Ali Tamur <tamur@google.com>
10147
10148 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10149 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10150 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10151 (dwarf_expr_context::get_addr_index): Likewise
10152 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10153 (symbol_needs_eval_context::get_addr_index): Likewise
10154 (disassemble_dwarf_expression): Add DW_OP_addrx
10155 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10156 (read_cutu_die_from_dwo): Update comment
10157 (skip_one_die): Add DW_FORM_addrx
10158 (read_attribute_value): Likewise
10159 (var_decode_location): Add DW_OP_addrx
10160 (dwarf2_const_value_attr): Add DW_FORM_addrx
10161 (dump_die_shallow): Likewise
10162 (dwarf2_fetch_constant_bytes): Likewise
10163 (decode_locdesc): Add DW_OP_addrx
10164 (skip_form_bytes): Add DW_FORM_addrx
10165
ad9d13f8
AT
101662019-04-22 Ali Tamur <tamur@google.com>
10167
10168 * MAINTAINERS (Write After Approval): Add self.
10169
d70cc3ba
SM
101702019-04-22 Simon Marchi <simon.marchi@efficios.com>
10171
10172 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10173 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10174 (open_symbol_file_object): Likewise.
10175 (svr4_default_sos): Add info parameter.
10176 (svr4_read_so_list): Likewise.
10177 (svr4_current_sos_direct): Adjust functions calls to pass down
10178 info.
10179 (svr4_current_sos_1): Add info parameter.
10180 (svr4_current_sos): Call get_svr4_info, pass info down to
10181 svr4_current_sos_1.
10182 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10183 get_svr4_info.
10184 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10185 get_svr4_info.
10186 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10187 to get_svr4_info.
10188 (probes_table_remove_objfile_probes): Likewise.
10189 (register_solib_event_probe): Add info parameter.
10190 (solist_update_incremental): Pass info parameter down to
10191 svr4_read_so_list.
10192 (disable_probes_interface): Add info parameter.
10193 (svr4_handle_solib_event): Pass current_program_space to
10194 get_svr4_info. Adjust disable_probes_interface cleanup.
10195 (svr4_create_probe_breakpoints): Add info parameter, pass it
10196 down to register_solib_event_probe.
10197 (svr4_create_solib_event_breakpoints): Add info parameter,
10198 pass it down to svr4_create_probe_breakpoints.
10199 (enable_break): Pass info down to
10200 svr4_create_solib_event_breakpoints.
10201 (svr4_solib_create_inferior_hook): Pass current_program_space to
10202 get_svr4_info.
10203 (svr4_clear_solib): Likewise.
10204
7905fc35
PA
102052019-04-22 Pedro Alves <palves@redhat.com>
10206
10207 * solib-svr4.c (svr4_free_objfile_observer): New.
10208 (probe_and_action::objfile): New field.
10209 (probes_table_htab_remove_objfile_probes)
10210 (probes_table_remove_objfile_probes): New functions.
10211 (register_solib_event_probe): Add 'objfile' parameter. Store it
10212 in the new probe_and_action. Don't store the probe in 'lookup'.
10213 (svr4_create_probe_breakpoints): Pass objfile to
10214 register_solib_event_probe.
10215 (_initialize_svr4_solib): Register a free_objfile observer.
10216
fb881986
TT
102172019-04-19 Tom Tromey <tom@tromey.com>
10218
10219 * common/queue.h: Remove.
10220
8732db6c
TT
102212019-04-19 Tom Tromey <tom@tromey.com>
10222
10223 * event-loop.c: Don't include "common/queue.h".
10224
97dfbadd
TT
102252019-04-19 Tom Tromey <tom@tromey.com>
10226
10227 * remote.c (remote_target): Use delete.
10228 * remote-notif.h: Include <list>, not "common/queue.h".
10229 (notif_client_p): Remove typedef.
10230 (remote_notif_state): Add constructor, destructor, initializer.
10231 <notif_queue>: Now a std::list.
10232 (remote_notif_state_xfree): Don't declare.
10233 * remote-notif.c (remote_notif_process, handle_notification)
10234 (remote_notif_state_allocate): Update.
10235 (~remote_notif_state): Rename from remote_notif_state_xfree.
10236
cf250e36
TT
102372019-04-19 Tom Tromey <tom@tromey.com>
10238
10239 * symfile.c (reread_symbols): Update.
10240 * objfiles.c (objfile_register_static_link)
10241 (objfile_lookup_static_link): Update
10242 (~objfile) Don't delete static_links.
10243 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10244
61f4b350
TT
102452019-04-19 Tom Tromey <tom@tromey.com>
10246
10247 * type-stack.h (struct type_stack) <insert>: Constify string.
10248 * type-stack.c (type_stack::insert): Constify string.
10249 * gdbtypes.h (lookup_template_type): Update.
10250 (address_space_name_to_int): Update.
10251 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10252 const.
10253 (lookup_template_type): Make name const.
10254 * c-exp.y: Update rules.
10255 (lex_one_token, classify_name, classify_inner_name)
10256 (c_print_token): Update.
10257 * p-exp.y: Update rules.
10258 (yylex): Update.
10259 * f-exp.y: Update rules.
10260 (yylex): Update.
10261 * d-exp.y: Update rules.
10262 (lex_one_token, classify_name, classify_inner_name): Update.
10263 * parse.c (write_dollar_variable, copy_name): Return std::string.
10264 * parser-defs.h (copy_name): Change return type.
10265 * m2-exp.y: Update rules.
10266 (yylex): Update.
10267 * go-exp.y (lex_one_token): Update.
10268 Update rules.
10269 (classify_unsafe_function, classify_packaged_name)
10270 (classify_name, yylex): Update.
10271
189b8c2e
ST
102722019-04-19 Sergei Trofimovich <siarheit@google.com>
10273
10274 * configure.ac: add --enable-source-highlight switch.
10275 * configure: Regenerate.
10276 * top.c (print_gdb_version): plumb --enable-source-highlight
10277 status to "show configuration".
10278
8ecb59f8
TT
102792019-04-19 Tom Tromey <tromey@adacore.com>
10280
10281 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10282 Check ADA_TYPE_P.
10283 (empty_record, ada_template_to_fixed_record_type_1)
10284 (template_to_static_fixed_type)
10285 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10286 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10287 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10288 macros.
10289
62160ec9
TT
102902019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10291
10292 PR symtab/24423:
10293 * source.c (print_source_lines_base): Advance "iter" when a
10294 control character is seen.
10295
f2ae8bc8
PW
102962019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10297
10298 * inferior.h (struct infcall_suspend_state_deleter):
10299 Catch exception in destructor to avoid crash.
10300
d563b953
PW
103012019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10302
10303 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10304 close to the add_com "shell".
10305
dc34c897
TT
103062019-04-18 Tom Tromey <tromey@adacore.com>
10307
10308 * process-stratum-target.h (class process_stratum_target)
10309 <stratum>: Add "final".
10310
a12e5744
TT
103112019-04-17 Tom Tromey <tromey@adacore.com>
10312
10313 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10314 against nullptr before use.
10315
a7e559cc
AH
103162019-04-17 Alan Hayward <alan.hayward@arm.com>
10317
10318 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10319
c01660c6
AB
103202019-04-17 Jim Wilson <jimw@sifive.com>
10321 Andrew Burgess <andrew.burgess@embecosm.com>
10322
10323 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10324 code read might fail, assume 4-byte breakpoint in that case.
10325
4aa866af
LS
103262019-04-15 Leszek Swirski <leszeks@google.com>
10327
10328 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10329 rather than a hand-rolled POD check when checking for forced MEMORY
10330 classification.
10331
48574d91
AH
103322019-04-15 Alan Hayward <alan.hayward@arm.com>
10333
10334 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10335 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10336 function.
10337 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10338 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10339 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10340 declaration.
10341
4da037ef
AH
103422019-04-15 Alan Hayward <alan.hayward@arm.com>
10343
10344 * aarch64-linux-nat.c
10345 (aarch64_linux_nat_target::thread_architecture): Add override.
10346 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10347 each VQ.
10348
ccb8d7e8
AH
103492019-04-15 Alan Hayward <alan.hayward@arm.com>
10350
10351 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10352
35add35e
AB
103532019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10354
10355 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10356 target types of size 96-bits, add some additional comments, and
10357 check that the builtin type we found was the correct size.
10358
51196bbc
EZ
103592019-04-12 Eli Zaretskii <eliz@gnu.org>
10360
10361 * utils.c (prompt_for_continue): Don't restore the styling at the
10362 end, as applied_style has the wrong value. This fixes styling in
10363 long lists of file names that are interrupted by the "Continue?"
10364 prompt.
10365
62253a61
AB
103662019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10367
10368 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10369 * c-lang.c (c_language_defn): Likewise.
10370 (cplus_language_defn): Likewise.
10371 (asm_language_defn): Likewise.
10372 (minimal_language_defn): Likewise.
10373 * d-lang.c (d_language_defn): Likewise.
10374 * f-lang.c (f_language_defn): Likewise.
10375 * go-lang.c (go_language_defn): Likewise.
10376 * language.c (unknown_language_defn): Likewise.
10377 (auto_language_defn): Likewise.
10378 * language.h (struct language_defn): Remove la_magic field.
10379 (LANG_MAGIC): Delete.
10380 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10381 * objc-lang.c (objc_language_defn): Likewise.
10382 * opencl-lang.c (opencl_language_defn): Likewise.
10383 * p-lang.c (pascal_language_defn): Likewise.
10384 * rust-lang.c (rust_language_defn): Likewise.
10385
a9158a86
AB
103862019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10387
10388 * riscv-tdep.c (riscv_type_align): New function.
10389 (riscv_type_alignment): Delete.
10390 (riscv_arg_location): Use 'type_align'.
10391 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10392
41077b66
AB
103932019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10394
10395 * gdbtypes.c (type_align): A struct with no non-static fields also
10396 has alignment of 1.
10397
9f0272f8
AB
103982019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10399
10400 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10401 component to 0.
10402 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10403 member.
10404 (riscv_struct_info::analyse): New implementation using new
10405 analyse_inner member function.
10406 (riscv_struct_info::field_offset): New member function.
10407 (riscv_struct_info::m_offsets): New member variable.
10408 (riscv_struct_info::analyse_inner): New private member function,
10409 takes the old implementation of riscv_struct_info::analyse but
10410 extended to track field offsets.
10411 (riscv_call_arg_struct): Update the struct folding special cases
10412 to handle cases where empty C++ structs, which are non-zero
10413 length, are found.
10414 (riscv_arg_location): Initialise the length of each location, a
10415 non-zero length now indicates the location is in use.
10416 (riscv_push_dummy_call): Allow for the first location having a
10417 non-zero offset when setting up arguments.
10418 (riscv_return_value): Likewise, but for return values.
10419
02cf60c7
TT
104202019-04-11 Tom Tromey <tromey@adacore.com>
10421
10422 * utils.c (internal_vproblem): Make "msg" const.
10423
68811f8f
AH
104242019-04-11 Alan Hayward <alan.hayward@arm.com>
10425
10426 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10427 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10428 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10429 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10430
3f52fdbc
KB
104312019-04-10 Kevin Buettner <kevinb@redhat.com>
10432
10433 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10434 function.
10435 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10436 of amd64_collect_native_gregset.
10437 (amd64_linux_nat_target::store_registers): Likewise.
10438
e9ad22ee
TT
104392019-04-10 Tom Tromey <tom@tromey.com>
10440
10441 * symtab.c (lookup_global_symbol_from_objfile)
10442 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10443 * objfiles.h (class separate_debug_iterator): New.
10444 (class separate_debug_range): New.
10445 (struct objfile) <separate_debug_objfiles>: New method.
10446 (objfile_separate_debug_iterate): Don't declare.
10447 * objfiles.c (separate_debug_iterator::operator++): Rename from
10448 objfile_separate_debug_iterate.
10449 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10450 iterator.
10451 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10452 iterator.
10453
ee371134
TT
104542019-04-10 Tom Tromey <tom@tromey.com>
10455
10456 * symfile.c (reread_symbols): Remove old comment.
10457 * objfiles.c (free_all_objfiles): Fix a typo.
10458
bf227d61
TT
104592019-04-10 Tom Tromey <tom@tromey.com>
10460
10461 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10462 * minsyms.c (lookup_minimal_symbol): Use foreach.
10463 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10464 (lookup_minimal_symbol_solib_trampoline): Likewise.
10465 * symfile.c (reread_symbols): Use foreach.
10466
8dc433a0
TT
104672019-04-09 Ivan Begert <ivanbegert@gmail.com>
10468 Tom Tromey <tromey@adacore.com>
10469
10470 PR rust/24414:
10471 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10472 (rust_lex_int_test): Change "value" to be LONGEST.
10473 (rust_lex_tests): Add test for long integer literal.
10474
9ab8741a
TT
104752019-04-09 Tom Tromey <tromey@adacore.com>
10476
10477 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10478 to bool.
10479 (extended_remote_target::attach): Update.
10480 (remote_target::remote_notice_new_inferior): Update.
10481 (remote_target::add_current_inferior_and_thread): Update.
10482 * inferior.c (exit_inferior_1): Use "false".
10483 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10484
e242fd12
SM
104852019-04-09 Simon Marchi <simon.marchi@efficios.com>
10486
9ca1957f 10487 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10488 the "start" command.
10489
2b0c8b01
KB
104902019-04-08 Kevin Buettner <kevinb@redhat.com>
10491
10492 * python/py-inferior.c (infpy_thread_from_thread_handle):
10493 Adjust comments to reflect renaming of thread_from_thread_handle
10494 to thread_from_handle. Adjust keywords. Fix type error message.
10495 (inferior_object_methods): Add thread_from_handle. Retain
10496 thread_from_thread_handle, but mark it as deprecated.
10497
50a82723
KB
104982019-04-08 Kevin Buettner <kevinb@redhat.com>
10499
10500 * gdbthread.h (find_thread_by_handle): Revise declaration.
10501 * thread.c (find_thread_by_handle): Likewise. Adjust
10502 implementation too.
10503 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10504 support for buffer objects as handles.
10505
cf63b016
KB
105062019-04-08 Kevin Buettner <kevinb@redhat.com>
10507
10508 * python/py-infthread.c (thpy_thread_handle): New function.
10509 (thread_object_methods): Register thpy_thread_handle.
10510
3d6c6204
KB
105112019-04-08 Kevin Buettner <kevinb@redhat.com>
10512
10513 * gdbthread.h (thread_to_thread_handle): Declare.
10514 * thread.c (gdbtypes.h): Include.
10515 (thread_to_thread_handle): New function.
10516
10517 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10518 (target_thread_info_to_thread_handle): Declare.
10519 * target.c (target_thread_info_to_thread_handle): New function.
10520 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10521 * target-delegates.c: Regenerate.
10522
10523 * linux-thread-db.c (class thread_db_target): Add method
10524 thread_info_to_thread_handle.
10525 (thread_db_target::thread_info_to_thread_handle): Define.
10526 * remote.c (class remote_target): Add new method
10527 thread_info_to_thread_handle.
10528 (remote_target::thread_info_to_thread_handle): Define.
10529
56be6ea8
PA
105302019-04-08 Pedro Alves <palves@redhat.com>
10531
10532 * common/common-exceptions.c (throw_exception): Don't create
10533 named object to throw; throw directly.
10534 (throw_it): Likewise. Don't initialize gdb_exception::message
10535 here, with new; pass FMT and AP to the ctor instead.
10536 * common/common-exceptions.h: Include <string>.
10537 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10538 const char *, va_list)): New ctor. Use std::make_shared.
10539 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10540 errors)): Delete.
10541 (gdb_exception_error::gdb_exception_error(enum errors, const char
10542 *, va_list)): New.
10543 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10544 Add assertion.
10545 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10546 errors)): Delete.
10547 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10548 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10549 Add assertion.
10550
eedc3f4f
TT
105512019-04-08 Tom Tromey <tom@tromey.com>
10552
10553 * valops.c (value_rtti_indirect_type): Replace throw_exception
10554 with throw.
10555 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10556 with throw.
10557 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10558 throw.
10559 * target.c (target_translate_tls_address): Replace throw_exception
10560 with throw.
10561 * stack.c (frame_apply_command_count): Replace throw_exception
10562 with throw.
10563 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10564 throw.
10565 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10566 with throw.
10567 * rs6000-tdep.c (rs6000_frame_cache)
10568 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10569 * remote.c: Replace throw_exception with throw.
10570 * record-full.c (record_full_message, record_full_wait_1)
10571 (record_full_restore): Replace throw_exception with throw.
10572 * record-btrace.c:
10573 (get_thread_current_frame_id, record_btrace_start_replaying)
10574 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10575 (cmd_record_btrace_start): Replace throw_exception with throw.
10576 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10577 throw.
10578 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10579 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10580 * linespec.c:
10581 (find_linespec_symbols): Replace throw_exception with throw.
10582 * infrun.c (displaced_step_prepare, resume): Replace
10583 throw_exception with throw.
10584 * infcmd.c (post_create_inferior): Replace throw_exception with
10585 throw.
10586 * inf-loop.c (inferior_event_handler): Replace throw_exception
10587 with throw.
10588 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10589 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10590 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10591 (get_prev_frame_always, get_frame_pc_if_available)
10592 (get_frame_address_in_block_if_available, get_frame_language):
10593 Replace throw_exception with throw.
10594 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10595 throw_exception with throw.
10596 * eval.c (fetch_subexp_value, evaluate_var_value)
10597 (evaluate_funcall, evaluate_subexp_standard): Replace
10598 throw_exception with throw.
10599 * dwarf2loc.c (call_site_find_chain)
10600 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10601 Replace throw_exception with throw.
10602 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10603 with throw.
10604 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10605 throw.
10606 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10607 * completer.c (complete_line_internal): Replace throw_exception
10608 with throw.
10609 * compile/compile-object-run.c (compile_object_run): Replace
10610 throw_exception with throw.
10611 * cli/cli-script.c (process_next_line): Replace throw_exception
10612 with throw.
10613 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10614 (btrace_enable, btrace_maint_update_pt_packets): Replace
10615 throw_exception with throw.
10616 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10617 throw_exception with throw.
10618 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10619 throw_exception with throw.
10620 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10621 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10622 * aarch64-tdep.c (aarch64_make_prologue_cache)
10623 (aarch64_make_stub_cache): Replace throw_exception with throw.
10624
26003a20
TT
106252019-04-08 Tom Tromey <tom@tromey.com>
10626
10627 * common/common-exceptions.c (throw_exception): Rename from
10628 throw_exception_cxx. Remove old copy. Make argument const.
10629 (throw_it): Create and throw exception objects directly.
10630 * common/common-exceptions.h (throw_exception): Make argument
10631 const.
10632 (struct gdb_exception_error): Add constructor.
10633 (struct gdb_exception_quit): Add constructor.
10634
d272eb37
TT
106352019-04-08 Tom Tromey <tom@tromey.com>
10636
10637 * common/common-exceptions.h (exception_rethrow): Don't declare.
10638 (TRY_SJLJ): Update comment.
10639 (TRY, CATCH, END_CATCH): Remove.
10640 * common/common-exceptions.c (exception_rethrow): Remove.
10641
230d2906
TT
106422019-04-08 Tom Tromey <tom@tromey.com>
10643
10644 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10645 Remove.
10646 (gdb_exception_error): Rename from
10647 gdb_exception_RETURN_MASK_ERROR.
10648 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10649 (gdb_quit_bad_alloc): Update.
10650 * aarch64-tdep.c: Update.
10651 * ada-lang.c: Update.
10652 * ada-typeprint.c: Update.
10653 * ada-valprint.c: Update.
10654 * amd64-tdep.c: Update.
10655 * arch-utils.c: Update.
10656 * break-catch-throw.c: Update.
10657 * breakpoint.c: Update.
10658 * btrace.c: Update.
10659 * c-varobj.c: Update.
10660 * cli/cli-cmds.c: Update.
10661 * cli/cli-interp.c: Update.
10662 * cli/cli-script.c: Update.
10663 * common/common-exceptions.c: Update.
10664 * common/new-op.c: Update.
10665 * common/selftest.c: Update.
10666 * compile/compile-c-symbols.c: Update.
10667 * compile/compile-cplus-symbols.c: Update.
10668 * compile/compile-object-load.c: Update.
10669 * compile/compile-object-run.c: Update.
10670 * completer.c: Update.
10671 * corelow.c: Update.
10672 * cp-abi.c: Update.
10673 * cp-support.c: Update.
10674 * cp-valprint.c: Update.
10675 * darwin-nat.c: Update.
10676 * disasm-selftests.c: Update.
10677 * dtrace-probe.c: Update.
10678 * dwarf-index-cache.c: Update.
10679 * dwarf-index-write.c: Update.
10680 * dwarf2-frame-tailcall.c: Update.
10681 * dwarf2-frame.c: Update.
10682 * dwarf2loc.c: Update.
10683 * dwarf2read.c: Update.
10684 * eval.c: Update.
10685 * event-loop.c: Update.
10686 * event-top.c: Update.
10687 * exec.c: Update.
10688 * f-valprint.c: Update.
10689 * fbsd-tdep.c: Update.
10690 * frame-unwind.c: Update.
10691 * frame.c: Update.
10692 * gdbtypes.c: Update.
10693 * gnu-v3-abi.c: Update.
10694 * guile/guile-internal.h: Update.
10695 * guile/scm-block.c: Update.
10696 * guile/scm-breakpoint.c: Update.
10697 * guile/scm-cmd.c: Update.
10698 * guile/scm-disasm.c: Update.
10699 * guile/scm-frame.c: Update.
10700 * guile/scm-lazy-string.c: Update.
10701 * guile/scm-math.c: Update.
10702 * guile/scm-param.c: Update.
10703 * guile/scm-ports.c: Update.
10704 * guile/scm-pretty-print.c: Update.
10705 * guile/scm-symbol.c: Update.
10706 * guile/scm-symtab.c: Update.
10707 * guile/scm-type.c: Update.
10708 * guile/scm-value.c: Update.
10709 * i386-linux-tdep.c: Update.
10710 * i386-tdep.c: Update.
10711 * inf-loop.c: Update.
10712 * infcall.c: Update.
10713 * infcmd.c: Update.
10714 * infrun.c: Update.
10715 * jit.c: Update.
10716 * language.c: Update.
10717 * linespec.c: Update.
10718 * linux-fork.c: Update.
10719 * linux-nat.c: Update.
10720 * linux-tdep.c: Update.
10721 * linux-thread-db.c: Update.
10722 * main.c: Update.
10723 * mi/mi-cmd-break.c: Update.
10724 * mi/mi-cmd-stack.c: Update.
10725 * mi/mi-interp.c: Update.
10726 * mi/mi-main.c: Update.
10727 * objc-lang.c: Update.
10728 * p-valprint.c: Update.
10729 * parse.c: Update.
10730 * ppc-linux-tdep.c: Update.
10731 * printcmd.c: Update.
10732 * python/py-arch.c: Update.
10733 * python/py-breakpoint.c: Update.
10734 * python/py-cmd.c: Update.
10735 * python/py-finishbreakpoint.c: Update.
10736 * python/py-frame.c: Update.
10737 * python/py-framefilter.c: Update.
10738 * python/py-gdb-readline.c: Update.
10739 * python/py-inferior.c: Update.
10740 * python/py-infthread.c: Update.
10741 * python/py-lazy-string.c: Update.
10742 * python/py-linetable.c: Update.
10743 * python/py-objfile.c: Update.
10744 * python/py-param.c: Update.
10745 * python/py-prettyprint.c: Update.
10746 * python/py-progspace.c: Update.
10747 * python/py-record-btrace.c: Update.
10748 * python/py-record.c: Update.
10749 * python/py-symbol.c: Update.
10750 * python/py-type.c: Update.
10751 * python/py-unwind.c: Update.
10752 * python/py-utils.c: Update.
10753 * python/py-value.c: Update.
10754 * python/python.c: Update.
10755 * record-btrace.c: Update.
10756 * record-full.c: Update.
10757 * remote-fileio.c: Update.
10758 * remote.c: Update.
10759 * riscv-tdep.c: Update.
10760 * rs6000-aix-tdep.c: Update.
10761 * rs6000-tdep.c: Update.
10762 * rust-exp.y: Update.
10763 * rust-lang.c: Update.
10764 * s390-tdep.c: Update.
10765 * selftest-arch.c: Update.
10766 * solib-dsbt.c: Update.
10767 * solib-frv.c: Update.
10768 * solib-spu.c: Update.
10769 * solib-svr4.c: Update.
10770 * solib.c: Update.
10771 * sparc64-linux-tdep.c: Update.
10772 * stack.c: Update.
10773 * symfile-mem.c: Update.
10774 * symmisc.c: Update.
10775 * target.c: Update.
10776 * thread.c: Update.
10777 * top.c: Update.
10778 * tracefile-tfile.c: Update.
10779 * tui/tui.c: Update.
10780 * typeprint.c: Update.
10781 * unittests/cli-utils-selftests.c: Update.
10782 * unittests/parse-connection-spec-selftests.c: Update.
10783 * valops.c: Update.
10784 * valprint.c: Update.
10785 * value.c: Update.
10786 * varobj.c: Update.
10787 * windows-nat.c: Update.
10788 * x86-linux-nat.c: Update.
10789 * xml-support.c: Update.
10790
a70b8144
TT
107912019-04-08 Tom Tromey <tom@tromey.com>
10792
10793 * xml-support.c: Use C++ exception handling.
10794 * x86-linux-nat.c: Use C++ exception handling.
10795 * windows-nat.c: Use C++ exception handling.
10796 * varobj.c: Use C++ exception handling.
10797 * value.c: Use C++ exception handling.
10798 * valprint.c: Use C++ exception handling.
10799 * valops.c: Use C++ exception handling.
10800 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10801 handling.
10802 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10803 * typeprint.c: Use C++ exception handling.
10804 * tui/tui.c: Use C++ exception handling.
10805 * tracefile-tfile.c: Use C++ exception handling.
10806 * top.c: Use C++ exception handling.
10807 * thread.c: Use C++ exception handling.
10808 * target.c: Use C++ exception handling.
10809 * symmisc.c: Use C++ exception handling.
10810 * symfile-mem.c: Use C++ exception handling.
10811 * stack.c: Use C++ exception handling.
10812 * sparc64-linux-tdep.c: Use C++ exception handling.
10813 * solib.c: Use C++ exception handling.
10814 * solib-svr4.c: Use C++ exception handling.
10815 * solib-spu.c: Use C++ exception handling.
10816 * solib-frv.c: Use C++ exception handling.
10817 * solib-dsbt.c: Use C++ exception handling.
10818 * selftest-arch.c: Use C++ exception handling.
10819 * s390-tdep.c: Use C++ exception handling.
10820 * rust-lang.c: Use C++ exception handling.
10821 * rust-exp.y: Use C++ exception handling.
10822 * rs6000-tdep.c: Use C++ exception handling.
10823 * rs6000-aix-tdep.c: Use C++ exception handling.
10824 * riscv-tdep.c: Use C++ exception handling.
10825 * remote.c: Use C++ exception handling.
10826 * remote-fileio.c: Use C++ exception handling.
10827 * record-full.c: Use C++ exception handling.
10828 * record-btrace.c: Use C++ exception handling.
10829 * python/python.c: Use C++ exception handling.
10830 * python/py-value.c: Use C++ exception handling.
10831 * python/py-utils.c: Use C++ exception handling.
10832 * python/py-unwind.c: Use C++ exception handling.
10833 * python/py-type.c: Use C++ exception handling.
10834 * python/py-symbol.c: Use C++ exception handling.
10835 * python/py-record.c: Use C++ exception handling.
10836 * python/py-record-btrace.c: Use C++ exception handling.
10837 * python/py-progspace.c: Use C++ exception handling.
10838 * python/py-prettyprint.c: Use C++ exception handling.
10839 * python/py-param.c: Use C++ exception handling.
10840 * python/py-objfile.c: Use C++ exception handling.
10841 * python/py-linetable.c: Use C++ exception handling.
10842 * python/py-lazy-string.c: Use C++ exception handling.
10843 * python/py-infthread.c: Use C++ exception handling.
10844 * python/py-inferior.c: Use C++ exception handling.
10845 * python/py-gdb-readline.c: Use C++ exception handling.
10846 * python/py-framefilter.c: Use C++ exception handling.
10847 * python/py-frame.c: Use C++ exception handling.
10848 * python/py-finishbreakpoint.c: Use C++ exception handling.
10849 * python/py-cmd.c: Use C++ exception handling.
10850 * python/py-breakpoint.c: Use C++ exception handling.
10851 * python/py-arch.c: Use C++ exception handling.
10852 * printcmd.c: Use C++ exception handling.
10853 * ppc-linux-tdep.c: Use C++ exception handling.
10854 * parse.c: Use C++ exception handling.
10855 * p-valprint.c: Use C++ exception handling.
10856 * objc-lang.c: Use C++ exception handling.
10857 * mi/mi-main.c: Use C++ exception handling.
10858 * mi/mi-interp.c: Use C++ exception handling.
10859 * mi/mi-cmd-stack.c: Use C++ exception handling.
10860 * mi/mi-cmd-break.c: Use C++ exception handling.
10861 * main.c: Use C++ exception handling.
10862 * linux-thread-db.c: Use C++ exception handling.
10863 * linux-tdep.c: Use C++ exception handling.
10864 * linux-nat.c: Use C++ exception handling.
10865 * linux-fork.c: Use C++ exception handling.
10866 * linespec.c: Use C++ exception handling.
10867 * language.c: Use C++ exception handling.
10868 * jit.c: Use C++ exception handling.
10869 * infrun.c: Use C++ exception handling.
10870 * infcmd.c: Use C++ exception handling.
10871 * infcall.c: Use C++ exception handling.
10872 * inf-loop.c: Use C++ exception handling.
10873 * i386-tdep.c: Use C++ exception handling.
10874 * i386-linux-tdep.c: Use C++ exception handling.
10875 * guile/scm-value.c: Use C++ exception handling.
10876 * guile/scm-type.c: Use C++ exception handling.
10877 * guile/scm-symtab.c: Use C++ exception handling.
10878 * guile/scm-symbol.c: Use C++ exception handling.
10879 * guile/scm-pretty-print.c: Use C++ exception handling.
10880 * guile/scm-ports.c: Use C++ exception handling.
10881 * guile/scm-param.c: Use C++ exception handling.
10882 * guile/scm-math.c: Use C++ exception handling.
10883 * guile/scm-lazy-string.c: Use C++ exception handling.
10884 * guile/scm-frame.c: Use C++ exception handling.
10885 * guile/scm-disasm.c: Use C++ exception handling.
10886 * guile/scm-cmd.c: Use C++ exception handling.
10887 * guile/scm-breakpoint.c: Use C++ exception handling.
10888 * guile/scm-block.c: Use C++ exception handling.
10889 * guile/guile-internal.h: Use C++ exception handling.
10890 * gnu-v3-abi.c: Use C++ exception handling.
10891 * gdbtypes.c: Use C++ exception handling.
10892 * frame.c: Use C++ exception handling.
10893 * frame-unwind.c: Use C++ exception handling.
10894 * fbsd-tdep.c: Use C++ exception handling.
10895 * f-valprint.c: Use C++ exception handling.
10896 * exec.c: Use C++ exception handling.
10897 * event-top.c: Use C++ exception handling.
10898 * event-loop.c: Use C++ exception handling.
10899 * eval.c: Use C++ exception handling.
10900 * dwarf2read.c: Use C++ exception handling.
10901 * dwarf2loc.c: Use C++ exception handling.
10902 * dwarf2-frame.c: Use C++ exception handling.
10903 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10904 * dwarf-index-write.c: Use C++ exception handling.
10905 * dwarf-index-cache.c: Use C++ exception handling.
10906 * dtrace-probe.c: Use C++ exception handling.
10907 * disasm-selftests.c: Use C++ exception handling.
10908 * darwin-nat.c: Use C++ exception handling.
10909 * cp-valprint.c: Use C++ exception handling.
10910 * cp-support.c: Use C++ exception handling.
10911 * cp-abi.c: Use C++ exception handling.
10912 * corelow.c: Use C++ exception handling.
10913 * completer.c: Use C++ exception handling.
10914 * compile/compile-object-run.c: Use C++ exception handling.
10915 * compile/compile-object-load.c: Use C++ exception handling.
10916 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10917 * compile/compile-c-symbols.c: Use C++ exception handling.
10918 * common/selftest.c: Use C++ exception handling.
10919 * common/new-op.c: Use C++ exception handling.
10920 * cli/cli-script.c: Use C++ exception handling.
10921 * cli/cli-interp.c: Use C++ exception handling.
10922 * cli/cli-cmds.c: Use C++ exception handling.
10923 * c-varobj.c: Use C++ exception handling.
10924 * btrace.c: Use C++ exception handling.
10925 * breakpoint.c: Use C++ exception handling.
10926 * break-catch-throw.c: Use C++ exception handling.
10927 * arch-utils.c: Use C++ exception handling.
10928 * amd64-tdep.c: Use C++ exception handling.
10929 * ada-valprint.c: Use C++ exception handling.
10930 * ada-typeprint.c: Use C++ exception handling.
10931 * ada-lang.c: Use C++ exception handling.
10932 * aarch64-tdep.c: Use C++ exception handling.
10933
3d6e9d23
TT
109342019-04-08 Tom Tromey <tom@tromey.com>
10935
10936 * xml-support.c (gdb_xml_parser::parse): Update.
10937 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10938 * value.c (show_convenience): Update.
10939 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10940 (test_parse_flags_qcs): Update.
10941 * thread.c (thr_try_catch_cmd): Update.
10942 * target.c (target_translate_tls_address): Update.
10943 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10944 (info_frame_command_core, frame_apply_command_count): Update.
10945 * rust-exp.y (rust_lex_exception_test): Update.
10946 * riscv-tdep.c (riscv_print_one_register_info): Update.
10947 * remote.c (remote_target::enable_btrace): Update.
10948 * record-btrace.c (record_btrace_enable_warn): Update.
10949 * python/py-utils.c (gdbpy_convert_exception): Update.
10950 * printcmd.c (do_one_display, print_variable_and_value): Update.
10951 * mi/mi-main.c (mi_print_exception): Update.
10952 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10953 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10954 * linux-nat.c (linux_nat_target::attach): Update.
10955 * linux-fork.c (class scoped_switch_fork_info): Update.
10956 * infrun.c (displaced_step_prepare): Update.
10957 * infcall.c (call_function_by_hand_dummy): Update.
10958 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10959 * gnu-v3-abi.c (print_one_vtable): Update.
10960 * frame.c (get_prev_frame_always): Update.
10961 * f-valprint.c (info_common_command_for_block): Update.
10962 * exec.c (try_open_exec_file): Update.
10963 * exceptions.c (print_exception, exception_print)
10964 (exception_fprintf, exception_print_same): Update.
10965 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10966 * dwarf-index-cache.c (index_cache::store)
10967 (index_cache::lookup_gdb_index): Update.
10968 * darwin-nat.c (maybe_cache_shell): Update.
10969 * cp-valprint.c (cp_print_value_fields): Update.
10970 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10971 (gcc_cplus_symbol_address): Update.
10972 * compile/compile-c-symbols.c (gcc_convert_symbol)
10973 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10974 * common/selftest.c: Update.
10975 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10976 a std::string.
10977 (exception_try_scope_entry, exception_try_scope_exit): Don't
10978 declare.
10979 (struct exception_try_scope): Remove.
10980 (TRY): Don't use exception_try_scope.
10981 (struct gdb_exception): Add constructor, operator=.
10982 <what>: New method.
10983 (struct gdb_exception_RETURN_MASK_ALL)
10984 (struct gdb_exception_RETURN_MASK_ERROR)
10985 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10986 (struct gdb_quit_bad_alloc): Update.
10987 * common/common-exceptions.c (exception_none): Change
10988 initializer.
10989 (struct catcher) <state, exception>: Initialize inline.
10990 <prev>: Remove member.
10991 (current_catcher): Remove.
10992 (catchers): New global.
10993 (exceptions_state_mc_init): Simplify.
10994 (catcher_pop): Remove.
10995 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10996 (try_scope_depth, exception_try_scope_entry)
10997 (exception_try_scope_exit): Remove.
10998 (throw_exception_sjlj): Update.
10999 (exception_messages, exception_messages_size): Remove.
11000 (throw_it): Simplify.
11001 (gdb_exception_sliced_copy): Remove.
11002 (throw_exception_cxx): Update.
11003 * cli/cli-script.c (script_from_file): Update.
11004 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11005 Update.
11006 * ada-valprint.c (ada_val_print): Update.
11007 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11008 (create_excep_cond_exprs): Update.
11009
c5c10118
TT
110102019-04-08 Tom Tromey <tom@tromey.com>
11011
11012 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11013 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11014 (TRY, CATCH, END_CATCH): Remove some definitions.
11015 * common/common-exceptions.c: Don't use GDB_XCPT.
11016 (catcher_list_size): Remove.
11017 (throw_exception, throw_it): Simplify.
11018
4de283e4
TT
110192019-04-05 Tom Tromey <tom@tromey.com>
11020
11021 Revert the header-sorting patch.
11022 * ft32-tdep.c: Revert.
11023 * frv-tdep.c: Revert.
11024 * frv-linux-tdep.c: Revert.
11025 * frame.c: Revert.
11026 * frame-unwind.c: Revert.
11027 * frame-base.c: Revert.
11028 * fork-child.c: Revert.
11029 * findvar.c: Revert.
11030 * findcmd.c: Revert.
11031 * filesystem.c: Revert.
11032 * filename-seen-cache.h: Revert.
11033 * filename-seen-cache.c: Revert.
11034 * fbsd-tdep.c: Revert.
11035 * fbsd-nat.h: Revert.
11036 * fbsd-nat.c: Revert.
11037 * f-valprint.c: Revert.
11038 * f-typeprint.c: Revert.
11039 * f-lang.c: Revert.
11040 * extension.h: Revert.
11041 * extension.c: Revert.
11042 * extension-priv.h: Revert.
11043 * expprint.c: Revert.
11044 * exec.h: Revert.
11045 * exec.c: Revert.
11046 * exceptions.c: Revert.
11047 * event-top.c: Revert.
11048 * event-loop.c: Revert.
11049 * eval.c: Revert.
11050 * elfread.c: Revert.
11051 * dwarf2read.h: Revert.
11052 * dwarf2read.c: Revert.
11053 * dwarf2loc.c: Revert.
11054 * dwarf2expr.h: Revert.
11055 * dwarf2expr.c: Revert.
11056 * dwarf2-frame.c: Revert.
11057 * dwarf2-frame-tailcall.c: Revert.
11058 * dwarf-index-write.h: Revert.
11059 * dwarf-index-write.c: Revert.
11060 * dwarf-index-common.c: Revert.
11061 * dwarf-index-cache.h: Revert.
11062 * dwarf-index-cache.c: Revert.
11063 * dummy-frame.c: Revert.
11064 * dtrace-probe.c: Revert.
11065 * disasm.h: Revert.
11066 * disasm.c: Revert.
11067 * disasm-selftests.c: Revert.
11068 * dictionary.c: Revert.
11069 * dicos-tdep.c: Revert.
11070 * demangle.c: Revert.
11071 * dcache.h: Revert.
11072 * dcache.c: Revert.
11073 * darwin-nat.h: Revert.
11074 * darwin-nat.c: Revert.
11075 * darwin-nat-info.c: Revert.
11076 * d-valprint.c: Revert.
11077 * d-namespace.c: Revert.
11078 * d-lang.c: Revert.
11079 * ctf.c: Revert.
11080 * csky-tdep.c: Revert.
11081 * csky-linux-tdep.c: Revert.
11082 * cris-tdep.c: Revert.
11083 * cris-linux-tdep.c: Revert.
11084 * cp-valprint.c: Revert.
11085 * cp-support.c: Revert.
11086 * cp-namespace.c: Revert.
11087 * cp-abi.c: Revert.
11088 * corelow.c: Revert.
11089 * corefile.c: Revert.
11090 * continuations.c: Revert.
11091 * completer.h: Revert.
11092 * completer.c: Revert.
11093 * complaints.c: Revert.
11094 * coffread.c: Revert.
11095 * coff-pe-read.c: Revert.
11096 * cli-out.h: Revert.
11097 * cli-out.c: Revert.
11098 * charset.c: Revert.
11099 * c-varobj.c: Revert.
11100 * c-valprint.c: Revert.
11101 * c-typeprint.c: Revert.
11102 * c-lang.c: Revert.
11103 * buildsym.c: Revert.
11104 * buildsym-legacy.c: Revert.
11105 * build-id.h: Revert.
11106 * build-id.c: Revert.
11107 * btrace.c: Revert.
11108 * bsd-uthread.c: Revert.
11109 * breakpoint.h: Revert.
11110 * breakpoint.c: Revert.
11111 * break-catch-throw.c: Revert.
11112 * break-catch-syscall.c: Revert.
11113 * break-catch-sig.c: Revert.
11114 * blockframe.c: Revert.
11115 * block.c: Revert.
11116 * bfin-tdep.c: Revert.
11117 * bfin-linux-tdep.c: Revert.
11118 * bfd-target.c: Revert.
11119 * bcache.c: Revert.
11120 * ax-general.c: Revert.
11121 * ax-gdb.h: Revert.
11122 * ax-gdb.c: Revert.
11123 * avr-tdep.c: Revert.
11124 * auxv.c: Revert.
11125 * auto-load.c: Revert.
11126 * arm-wince-tdep.c: Revert.
11127 * arm-tdep.c: Revert.
11128 * arm-symbian-tdep.c: Revert.
11129 * arm-pikeos-tdep.c: Revert.
11130 * arm-obsd-tdep.c: Revert.
11131 * arm-nbsd-tdep.c: Revert.
11132 * arm-nbsd-nat.c: Revert.
11133 * arm-linux-tdep.c: Revert.
11134 * arm-linux-nat.c: Revert.
11135 * arm-fbsd-tdep.c: Revert.
11136 * arm-fbsd-nat.c: Revert.
11137 * arm-bsd-tdep.c: Revert.
11138 * arch-utils.c: Revert.
11139 * arc-tdep.c: Revert.
11140 * arc-newlib-tdep.c: Revert.
11141 * annotate.h: Revert.
11142 * annotate.c: Revert.
11143 * amd64-windows-tdep.c: Revert.
11144 * amd64-windows-nat.c: Revert.
11145 * amd64-tdep.c: Revert.
11146 * amd64-sol2-tdep.c: Revert.
11147 * amd64-obsd-tdep.c: Revert.
11148 * amd64-obsd-nat.c: Revert.
11149 * amd64-nbsd-tdep.c: Revert.
11150 * amd64-nbsd-nat.c: Revert.
11151 * amd64-nat.c: Revert.
11152 * amd64-linux-tdep.c: Revert.
11153 * amd64-linux-nat.c: Revert.
11154 * amd64-fbsd-tdep.c: Revert.
11155 * amd64-fbsd-nat.c: Revert.
11156 * amd64-dicos-tdep.c: Revert.
11157 * amd64-darwin-tdep.c: Revert.
11158 * amd64-bsd-nat.c: Revert.
11159 * alpha-tdep.c: Revert.
11160 * alpha-obsd-tdep.c: Revert.
11161 * alpha-nbsd-tdep.c: Revert.
11162 * alpha-mdebug-tdep.c: Revert.
11163 * alpha-linux-tdep.c: Revert.
11164 * alpha-linux-nat.c: Revert.
11165 * alpha-bsd-tdep.c: Revert.
11166 * alpha-bsd-nat.c: Revert.
11167 * aix-thread.c: Revert.
11168 * agent.c: Revert.
11169 * addrmap.c: Revert.
11170 * ada-varobj.c: Revert.
11171 * ada-valprint.c: Revert.
11172 * ada-typeprint.c: Revert.
11173 * ada-tasks.c: Revert.
11174 * ada-lang.c: Revert.
11175 * aarch64-tdep.c: Revert.
11176 * aarch64-ravenscar-thread.c: Revert.
11177 * aarch64-newlib-tdep.c: Revert.
11178 * aarch64-linux-tdep.c: Revert.
11179 * aarch64-linux-nat.c: Revert.
11180 * aarch64-fbsd-tdep.c: Revert.
11181 * aarch64-fbsd-nat.c: Revert.
11182 * aarch32-linux-nat.c: Revert.
11183
d55e5aa6
TT
111842019-04-05 Tom Tromey <tom@tromey.com>
11185
11186 * ft32-tdep.c: Sort headers.
11187 * frv-tdep.c: Sort headers.
11188 * frv-linux-tdep.c: Sort headers.
11189 * frame.c: Sort headers.
11190 * frame-unwind.c: Sort headers.
11191 * frame-base.c: Sort headers.
11192 * fork-child.c: Sort headers.
11193 * findvar.c: Sort headers.
11194 * findcmd.c: Sort headers.
11195 * filesystem.c: Sort headers.
11196 * filename-seen-cache.h: Sort headers.
11197 * filename-seen-cache.c: Sort headers.
11198 * fbsd-tdep.c: Sort headers.
11199 * fbsd-nat.h: Sort headers.
11200 * fbsd-nat.c: Sort headers.
11201 * f-valprint.c: Sort headers.
11202 * f-typeprint.c: Sort headers.
11203 * f-lang.c: Sort headers.
11204 * extension.h: Sort headers.
11205 * extension.c: Sort headers.
11206 * extension-priv.h: Sort headers.
11207 * expprint.c: Sort headers.
11208 * exec.h: Sort headers.
11209 * exec.c: Sort headers.
11210 * exceptions.c: Sort headers.
11211 * event-top.c: Sort headers.
11212 * event-loop.c: Sort headers.
11213 * eval.c: Sort headers.
11214 * elfread.c: Sort headers.
11215 * dwarf2read.h: Sort headers.
11216 * dwarf2read.c: Sort headers.
11217 * dwarf2loc.c: Sort headers.
11218 * dwarf2expr.h: Sort headers.
11219 * dwarf2expr.c: Sort headers.
11220 * dwarf2-frame.c: Sort headers.
11221 * dwarf2-frame-tailcall.c: Sort headers.
11222 * dwarf-index-write.h: Sort headers.
11223 * dwarf-index-write.c: Sort headers.
11224 * dwarf-index-common.c: Sort headers.
11225 * dwarf-index-cache.h: Sort headers.
11226 * dwarf-index-cache.c: Sort headers.
11227 * dummy-frame.c: Sort headers.
11228 * dtrace-probe.c: Sort headers.
11229 * disasm.h: Sort headers.
11230 * disasm.c: Sort headers.
11231 * disasm-selftests.c: Sort headers.
11232 * dictionary.c: Sort headers.
11233 * dicos-tdep.c: Sort headers.
11234 * demangle.c: Sort headers.
11235 * dcache.h: Sort headers.
11236 * dcache.c: Sort headers.
11237 * darwin-nat.h: Sort headers.
11238 * darwin-nat.c: Sort headers.
11239 * darwin-nat-info.c: Sort headers.
11240 * d-valprint.c: Sort headers.
11241 * d-namespace.c: Sort headers.
11242 * d-lang.c: Sort headers.
11243 * ctf.c: Sort headers.
11244 * csky-tdep.c: Sort headers.
11245 * csky-linux-tdep.c: Sort headers.
11246 * cris-tdep.c: Sort headers.
11247 * cris-linux-tdep.c: Sort headers.
11248 * cp-valprint.c: Sort headers.
11249 * cp-support.c: Sort headers.
11250 * cp-namespace.c: Sort headers.
11251 * cp-abi.c: Sort headers.
11252 * corelow.c: Sort headers.
11253 * corefile.c: Sort headers.
11254 * continuations.c: Sort headers.
11255 * completer.h: Sort headers.
11256 * completer.c: Sort headers.
11257 * complaints.c: Sort headers.
11258 * coffread.c: Sort headers.
11259 * coff-pe-read.c: Sort headers.
11260 * cli-out.h: Sort headers.
11261 * cli-out.c: Sort headers.
11262 * charset.c: Sort headers.
11263 * c-varobj.c: Sort headers.
11264 * c-valprint.c: Sort headers.
11265 * c-typeprint.c: Sort headers.
11266 * c-lang.c: Sort headers.
11267 * buildsym.c: Sort headers.
11268 * buildsym-legacy.c: Sort headers.
11269 * build-id.h: Sort headers.
11270 * build-id.c: Sort headers.
11271 * btrace.c: Sort headers.
11272 * bsd-uthread.c: Sort headers.
11273 * breakpoint.h: Sort headers.
11274 * breakpoint.c: Sort headers.
11275 * break-catch-throw.c: Sort headers.
11276 * break-catch-syscall.c: Sort headers.
11277 * break-catch-sig.c: Sort headers.
11278 * blockframe.c: Sort headers.
11279 * block.c: Sort headers.
11280 * bfin-tdep.c: Sort headers.
11281 * bfin-linux-tdep.c: Sort headers.
11282 * bfd-target.c: Sort headers.
11283 * bcache.c: Sort headers.
11284 * ax-general.c: Sort headers.
11285 * ax-gdb.h: Sort headers.
11286 * ax-gdb.c: Sort headers.
11287 * avr-tdep.c: Sort headers.
11288 * auxv.c: Sort headers.
11289 * auto-load.c: Sort headers.
11290 * arm-wince-tdep.c: Sort headers.
11291 * arm-tdep.c: Sort headers.
11292 * arm-symbian-tdep.c: Sort headers.
11293 * arm-pikeos-tdep.c: Sort headers.
11294 * arm-obsd-tdep.c: Sort headers.
11295 * arm-nbsd-tdep.c: Sort headers.
11296 * arm-nbsd-nat.c: Sort headers.
11297 * arm-linux-tdep.c: Sort headers.
11298 * arm-linux-nat.c: Sort headers.
11299 * arm-fbsd-tdep.c: Sort headers.
11300 * arm-fbsd-nat.c: Sort headers.
11301 * arm-bsd-tdep.c: Sort headers.
11302 * arch-utils.c: Sort headers.
11303 * arc-tdep.c: Sort headers.
11304 * arc-newlib-tdep.c: Sort headers.
11305 * annotate.h: Sort headers.
11306 * annotate.c: Sort headers.
11307 * amd64-windows-tdep.c: Sort headers.
11308 * amd64-windows-nat.c: Sort headers.
11309 * amd64-tdep.c: Sort headers.
11310 * amd64-sol2-tdep.c: Sort headers.
11311 * amd64-obsd-tdep.c: Sort headers.
11312 * amd64-obsd-nat.c: Sort headers.
11313 * amd64-nbsd-tdep.c: Sort headers.
11314 * amd64-nbsd-nat.c: Sort headers.
11315 * amd64-nat.c: Sort headers.
11316 * amd64-linux-tdep.c: Sort headers.
11317 * amd64-linux-nat.c: Sort headers.
11318 * amd64-fbsd-tdep.c: Sort headers.
11319 * amd64-fbsd-nat.c: Sort headers.
11320 * amd64-dicos-tdep.c: Sort headers.
11321 * amd64-darwin-tdep.c: Sort headers.
11322 * amd64-bsd-nat.c: Sort headers.
11323 * alpha-tdep.c: Sort headers.
11324 * alpha-obsd-tdep.c: Sort headers.
11325 * alpha-nbsd-tdep.c: Sort headers.
11326 * alpha-mdebug-tdep.c: Sort headers.
11327 * alpha-linux-tdep.c: Sort headers.
11328 * alpha-linux-nat.c: Sort headers.
11329 * alpha-bsd-tdep.c: Sort headers.
11330 * alpha-bsd-nat.c: Sort headers.
11331 * aix-thread.c: Sort headers.
11332 * agent.c: Sort headers.
11333 * addrmap.c: Sort headers.
11334 * ada-varobj.c: Sort headers.
11335 * ada-valprint.c: Sort headers.
11336 * ada-typeprint.c: Sort headers.
11337 * ada-tasks.c: Sort headers.
11338 * ada-lang.c: Sort headers.
11339 * aarch64-tdep.c: Sort headers.
11340 * aarch64-ravenscar-thread.c: Sort headers.
11341 * aarch64-newlib-tdep.c: Sort headers.
11342 * aarch64-linux-tdep.c: Sort headers.
11343 * aarch64-linux-nat.c: Sort headers.
11344 * aarch64-fbsd-tdep.c: Sort headers.
11345 * aarch64-fbsd-nat.c: Sort headers.
11346 * aarch32-linux-nat.c: Sort headers.
11347
699bd4cf
TT
113482019-04-04 Tom Tromey <tom@tromey.com>
11349
11350 * varobj.c (varobj_create): Update.
11351 * rust-exp.y (struct rust_parser) <update_innermost_block,
11352 lookup_symbol>: New methods.
11353 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11354 Rename.
11355 (rust_parser::rust_lookup_type)
11356 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11357 * printcmd.c (display_command, do_one_display): Update.
11358 * parser-defs.h (struct parser_state) <parser_state>: Add
11359 "tracker" parameter.
11360 (block_tracker): New member.
11361 (class innermost_block_tracker) <innermost_block_tracker>: Add
11362 "types" parameter.
11363 <reset>: Remove method.
11364 (innermost_block): Don't declare.
11365 (null_post_parser): Update.
11366 * parse.c (innermost_block): Remove global.
11367 (write_dollar_variable): Update.
11368 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11369 Remove "tracker_types" parameter.
11370 (parse_expression): Add "tracker" parameter.
11371 (parse_expression_for_completion): Update.
11372 (null_post_parser): Add "tracker" parameter.
11373 * p-exp.y: Update rules.
11374 * m2-exp.y: Update rules.
11375 * language.h (struct language_defn) <la_post_parser>: Add
11376 "tracker" parameter.
11377 * go-exp.y: Update rules.
11378 * f-exp.y: Update rules.
11379 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11380 parameter.
11381 * d-exp.y: Update rules.
11382 * c-exp.y: Update rules.
11383 * breakpoint.c (set_breakpoint_condition): Create an
11384 innermost_block_tracker.
11385 (watch_command_1): Likewise.
11386 * ada-lang.c (resolve): Add "tracker" parameter.
11387 (resolve_subexp): Likewise.
11388 * ada-exp.y (write_var_from_sym): Update.
11389
dac43e32
TT
113902019-04-04 Tom Tromey <tom@tromey.com>
11391
11392 * type-stack.h: New file.
11393 * type-stack.c: New file.
11394 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11395 type-stack.h.
11396 (insert_into_type_stack, insert_type, push_type, push_type_int)
11397 (insert_type_address_space, pop_type, pop_type_int)
11398 (pop_typelist, pop_type_stack, append_type_stack)
11399 (push_type_stack, get_type_stack, push_typelist)
11400 (follow_type_instance_flags, follow_types): Don't declare.
11401 * parse.c (type_stack): Remove global.
11402 (parse_exp_in_context): Update.
11403 (insert_into_type_stack, insert_type, push_type, push_type_int)
11404 (insert_type_address_space, pop_type, pop_type_int)
11405 (pop_typelist, pop_type_stack, append_type_stack)
11406 (push_type_stack, get_type_stack, push_typelist)
11407 (follow_type_instance_flags, follow_types): Remove (moved to
11408 type-stack.c).
11409 * f-exp.y (type_stack): New global.
11410 Update rules.
11411 (push_kind_type, f_parse): Update.
11412 * d-exp.y (type_stack): New global.
11413 Update rules.
11414 (d_parse): Update.
11415 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11416 Update rules.
11417 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11418 (HFILES_NO_SRCDIR): Add type-stack.h.
11419
2a612529
TT
114202019-04-04 Tom Tromey <tom@tromey.com>
11421
11422 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11423 (rust_parser::convert_ast_to_expression, rust_parse)
11424 (rust_lex_test_completion, rust_lex_tests): Update.
11425 * parser-defs.h (struct expr_completion_state): New.
11426 (struct parser_state) <parser_state>: Add completion parameter.
11427 <mark_struct_expression, mark_completion_tag>: New methods.
11428 <parse_completion, m_completion_state>: New members.
11429 (prefixify_expression, null_post_parser): Update.
11430 (mark_struct_expression, mark_completion_tag): Don't declare.
11431 * parse.c (parse_completion, expout_last_struct)
11432 (expout_tag_completion_type, expout_completion_name): Remove
11433 globals.
11434 (parser_state::mark_struct_expression)
11435 (parser_state::mark_completion_tag): Now methods.
11436 (prefixify_expression): Add last_struct parameter.
11437 (prefixify_subexp): Likewise.
11438 (parse_exp_1): Update.
11439 (parse_exp_in_context): Add cstate parameter. Update.
11440 (parse_expression_for_completion): Create an
11441 expr_completion_state.
11442 (null_post_parser): Add "completion" parameter.
11443 * p-exp.y: Update rules.
11444 (yylex): Update.
11445 * language.h (struct language_defn) <la_post_parser>: Add
11446 "completing" parameter.
11447 * go-exp.y: Update rules.
11448 (lex_one_token): Update.
11449 * expression.h (parse_completion): Don't declare.
11450 * d-exp.y: Update rules.
11451 (lex_one_token): Update rules.
11452 * c-exp.y: Update rules.
11453 (lex_one_token): Update.
11454 * ada-lang.c (resolve): Add "parse_completion" parameter.
11455 (resolve_subexp): Likewise.
11456 (ada_resolve_function): Likewise.
11457
43476f0b
TT
114582019-04-04 Tom Tromey <tom@tromey.com>
11459
11460 * parser-defs.h (struct parser_state) <start_arglist,
11461 end_arglist>: New methods.
11462 <arglist_len, m_funcall_chain>: New members.
11463 (arglist_len, start_arglist, end_arglist): Don't declare.
11464 * parse.c (arglist_len, funcall_chain): Remove global.
11465 (start_arglist, end_arglist): Remove functions.
11466 (parse_exp_in_context): Update.
11467 * p-exp.y: Update rules.
11468 * m2-exp.y: Update rules.
11469 * go-exp.y: Update rules.
11470 * f-exp.y: Update rules.
11471 * d-exp.y: Update rules.
11472 * c-exp.y: Update rules.
11473
5776fca3
TT
114742019-04-04 Tom Tromey <tom@tromey.com>
11475
11476 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11477 lex_operator, push_back>: New methods.
11478 Update all rules.
11479 (rust_parser::lex_hex, lex_escape): Rename and update.
11480 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11481 (rust_parser::lex_operator): Rename and update.
11482 (rust_parser::lex_number, rustyylex, rustyyerror)
11483 (rust_lex_test_init, rust_lex_test_sequence)
11484 (rust_lex_test_push_back, rust_lex_tests): Update.
11485 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11486 parameter.
11487 <lexptr, prev_lexptr>: New members.
11488 (lexptr, prev_lexptr): Don't declare.
11489 * parse.c (lexptr, prev_lexptr): Remove globals.
11490 (parse_exp_in_context): Update.
11491 * p-exp.y (yylex, yyerror): Update.
11492 * m2-exp.y (parse_number, yylex, yyerror): Update.
11493 * go-exp.y (lex_one_token, yyerror): Update.
11494 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11495 * d-exp.y (lex_one_token, yyerror): Update.
11496 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11497 (lex_one_token, yyerror): Update.
11498 * ada-lex.l (YY_INPUT): Update.
11499 (rewind_to_char): Update.
11500 * ada-exp.y (yyerror): Update.
11501
8621b685
TT
115022019-04-04 Tom Tromey <tom@tromey.com>
11503
11504 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11505 * parser-defs.h (struct parser_state) <parser_state>: Add new
11506 parameter.
11507 <comma_terminates>: New member.
11508 (comma_terminates): Don't declare global.
11509 * parse.c (comma_terminates): Remove global.
11510 (parse_exp_in_context): Update.
11511 * p-exp.y (yylex): Update.
11512 * m2-exp.y (yylex): Update.
11513 * go-exp.y (lex_one_token): Update.
11514 * f-exp.y (yylex): Update.
11515 * d-exp.y (lex_one_token): Update.
11516 * c-exp.y (lex_one_token): Update.
11517 * ada-lex.l: Update.
11518
28aaf3fd
TT
115192019-04-04 Tom Tromey <tom@tromey.com>
11520
11521 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11522 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11523 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11524 * parser-defs.h (paren_depth): Don't declare.
11525 * parse.c (paren_depth): Remove global.
11526 (parse_exp_in_context): Update.
11527 * p-exp.y (paren_depth): New global.
11528 (pascal_parse): Initialize it.
11529 * m2-exp.y (paren_depth): New global.
11530 (m2_parse): Initialize it.
11531 * go-exp.y (paren_depth): New global.
11532 (go_parse): Initialize it.
11533 * f-exp.y (paren_depth): New global.
11534 (f_parse): Initialize it.
11535 * d-exp.y (paren_depth): New global.
11536 (d_parse): Initialize it.
11537 * c-exp.y (paren_depth): New global.
11538 (c_parse): Initialize it.
11539 * ada-lex.l (paren_depth): New global.
11540 (lexer_init): Initialize it.
11541
1e58a4a4
TT
115422019-04-04 Tom Tromey <tom@tromey.com>
11543
11544 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11545 (rust_parser::convert_ast_to_type)
11546 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11547 * parser-defs.h (struct parser_state) <parser_state>: Add
11548 parameters. Initialize new members.
11549 <expression_context_block, expression_context_pc>: New members.
11550 * parse.c (expression_context_block, expression_context_pc):
11551 Remove globals.
11552 (parse_exp_in_context): Update.
11553 * p-exp.y: Update all rules.
11554 (yylex): Update.
11555 * m2-exp.y: Update all rules.
11556 (yylex): Update.
11557 * go-exp.y (yylex): Update.
11558 * f-exp.y (yylex): Update.
11559 * d-exp.y: Update all rules.
11560 (yylex): Update.
11561 * c-exp.y: Update all rules.
11562 (lex_one_token, classify_name, yylex, c_parse): Update.
11563 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11564
37eedb39
TT
115652019-04-04 Tom Tromey <tom@tromey.com>
11566
11567 * gdbarch.h, gdbarch.c: Rebuild.
11568 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11569 * stap-probe.h:
11570 (struct stap_parse_info): Replace "parser_state" with
11571 "expr_builder".
11572 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11573 (parser_state): New class.
11574 * parse.c (expr_builder): Rename.
11575 (expr_builder::release): Rename.
11576 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11577 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11578 (write_exp_elt_longcst, write_exp_elt_floatcst)
11579 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11580 (write_exp_string_vector, write_exp_bitstring)
11581 (write_exp_msymbol, mark_struct_expression)
11582 (write_dollar_variable)
11583 (insert_type_address_space, increase_expout_size): Replace
11584 "parser_state" with "expr_builder".
11585 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11586 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11587 "parser_state" with "expr_builder".
11588
73923d7e
TT
115892019-04-04 Tom Tromey <tom@tromey.com>
11590
11591 * rust-exp.y: Replace "parse_language" with method call.
11592 * p-exp.y:
11593 (yylex): Replace "parse_language" with method call.
11594 * m2-exp.y:
11595 (yylex): Replace "parse_language" with method call.
11596 * go-exp.y (classify_name): Replace "parse_language" with method
11597 call.
11598 * f-exp.y (yylex): Replace "parse_language" with method call.
11599 * d-exp.y (lex_one_token): Replace "parse_language" with method
11600 call.
11601 * c-exp.y:
11602 (lex_one_token, classify_name, yylex): Replace "parse_language"
11603 with method call.
11604 * ada-exp.y (find_primitive_type, type_char)
11605 (type_system_address): Replace "parse_language" with method call.
11606
fa9f5be6
TT
116072019-04-04 Tom Tromey <tom@tromey.com>
11608
11609 * rust-exp.y: Replace "parse_gdbarch" with method call.
11610 * parse.c (write_dollar_variable, insert_type_address_space):
11611 Replace "parse_gdbarch" with method call.
11612 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11613 call.
11614 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11615 call.
11616 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11617 "parse_gdbarch" with method call.
11618 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11619 with method call.
11620 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11621 "parse_gdbarch" with method call.
11622 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11623 "parse_gdbarch" with method call.
11624 * c-exp.y (parse_type, parse_number, classify_name): Replace
11625 "parse_gdbarch" with method call.
11626 * ada-lex.l: Replace "parse_gdbarch" with method call.
11627 * ada-exp.y (parse_type, find_primitive_type, type_char)
11628 (type_system_address): Replace "parse_gdbarch" with method call.
11629
1201a264
TT
116302019-04-04 Tom Tromey <tom@tromey.com>
11631
11632 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11633 * stap-probe.c (stap_parse_argument): Update.
11634 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11635 initial_size parameter.
11636 * rust-exp.y (rust_lex_tests): Update.
11637 * parse.c (parser_state): Update.
11638 (parse_exp_in_context): Update.
11639 * parser-defs.h (struct parser_state) <parser_state>: Remove
11640 "initial_size" parameter.
11641
e3980ce2
TT
116422019-04-04 Tom Tromey <tom@tromey.com>
11643
11644 * parser-defs.h (increase_expout_size): Don't declare.
11645 * parse.c (increase_expout_size): Now static.
11646
e9f8e3f1
TS
116472019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11648
11649 * gnu-nat.c (gnu_nat_target::wait): Fix
11650 target_waitstatus_to_string call.
11651
d7df6549
AB
116522019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * eval.c (evaluate_subexp_standard): Handle internal functions
11655 during Fortran function call handling.
11656
8bdc1658
AB
116572019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11658
11659 * NEWS: Mention new internal functions.
11660 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11661 (read_base_type): Use dwarf2_init_complex_target_type.
11662 * value.c (creal_internal_fn): New function.
11663 (cimag_internal_fn): New function.
11664 (_initialize_values): Register new internal functions.
11665
c29705b7
PW
116662019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11667
11668 * infrun.c (stop_all_threads): If debug_infrun, always
11669 trace the wait status after wait_one, using
11670 target_waitstatus_to_string and target_pid_to_str.
11671 (handle_inferior_event): Replace various trace of
11672 wait status kind by a single trace.
11673 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11674 wait status kind image by target_waitstatus_to_string.
11675 * target/waitstatus.c (target_waitstatus_to_string): Fix
11676 obsolete comment.
11677
05caa1d2
TT
116782019-04-01 Tom Tromey <tromey@adacore.com>
11679
11680 PR symtab/23331:
11681 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11682
9d1447e0
SDJ
116832019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11684 Pedro Alves <palves@redhat.com>
11685
11686 * top.c (quit_force): Call 'finalize_values'.
11687 * value.c (finalize_values): New function.
11688 * value.h (finalize_values): Declare.
11689
7734102d
EZ
116902019-03-30 Eli Zaretskii <eliz@gnu.org>
11691
11692 * NEWS: Announce $_gdb_major and $_gdb_minor.
11693
11694 * top.c (init_gdb_version_vars): New function.
11695 (gdb_init): Call init_gdb_version_vars.
11696
188e1fa9
TT
116972019-03-29 Tom Tromey <tromey@adacore.com>
11698
11699 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11700 help text. Remove dead code.
11701
2880242d
KS
117022019-03-29 Keith Seitz <keiths@redhat.com>
11703
11704 From Siddhesh Poyarekar:
11705 * f-lang.h (f77_get_upperbound): Return LONGEST.
11706 (f77_get_lowerbound): Likewise.
11707 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11708 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11709 print them.
11710 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11711 plongest to format print it.
11712 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11713 (f77_get_upperbound): Likewise.
11714 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11715 LOWER_BOUND to LONGEST.
11716 (f77_create_arrayprint_offset_tbl): Likewise.
11717
cc1defb1
KS
117182019-03-29 Keith Seitz <keiths@redhat.com>
11719
11720 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11721 %s/pulongest for TYPE_LENGTH instead of %d in format
11722 strings.
11723 * ada-typerint.c (ada_print_type): Likewise.
11724 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11725 * compile/compile-c-support.c (generate_register_struct): Likewise.
11726 * gdbtypes.c (recursive_dump_type): Likewise.
11727 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11728 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11729 instead of %d in format strings.
11730 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11731 to std::min to ULONGEST.
11732 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11733 instead of %d in format strings.
11734 * tracepoint.c (info_scope_command): Likewise.
11735 * typeprint.c (print_offset_data::update)
11736 (print_offset_data::finish): Likewise.
11737 * xtensa-tdep.c (xtensa_store_return_value)
11738 (xtensa_push_dummy_call): Likewise.
11739
e432ccf1
JT
117402019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11741
11742 * windows-nat.c (display_selector): Fixed format specifications
11743 for 64-bit Cygwin.
11744
65d2b333
PW
117452019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11746
11747 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11748
f489207e
SL
117492019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11750
11751 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11752 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11753 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11754 (nios2_linux_init_abi): Install it.
11755
bffa1015
AH
117562019-03-28 Alan Hayward <alan.hayward@arm.com>
11757
11758 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11759
fc96163a
AH
117602019-03-28 Alan Hayward <alan.hayward@arm.com>
11761
11762 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11763
20dc7e9b
PW
117642019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11765 Tom Tromey <tromey@adacore.com>
11766
11767 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11768
7f5331a8
JB
117692019-03-26 Joel Brobecker <brobecker@adacore.com>
11770
11771 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11772 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11773 method to compute the bounds of range types. Also print "[evaluated]"
11774 if the bounds' values come from a dynamic evaluation.
11775
18c77628
AB
117762019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11777
11778 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11779 whitespace when pretty printing is on.
11780
53c973f2
AH
117812019-03-26 Alan Hayward <alan.hayward@arm.com>
11782
e79be6e5 11783 * ppc-linux-nat.c: Add include.
53c973f2 11784
d851aa71
AH
117852019-03-26 Alan Hayward <alan.hayward@arm.com>
11786
e79be6e5 11787 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11788
2fe7bab7
AH
117892019-03-26 Alan Hayward <alan.hayward@arm.com>
11790
e79be6e5 11791 * arm-linux-nat.c: Add include.
2fe7bab7 11792
068ef30e
SM
117932019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11794
11795 * source-cache.c (source_cache::get_source_lines): Re-read
11796 fullname after calling open_source_file.
11797
81a24d04
JB
117982019-03-25 John Baldwin <jhb@FreeBSD.org>
11799
11800 * NEWS: Mention TLS support for FreeBSD.
11801
79e7ae11
TT
118022019-03-25 Tom Tromey <tromey@adacore.com>
11803
11804 * minsyms.c (BUNCH_SIZE): Update comment.
11805 (~minimal_symbol_reader): Remove old comment.
11806 (compact_minimal_symbols): Update comment.
11807 (minimal_symbol_reader::install): Remove old comment. Update
11808 other comments.
11809
d45963c2
AH
118102019-03-25 Alan Hayward <alan.hayward@arm.com>
11811
11812 * s390-linux-nat.c: Add include.
11813
0f83012e
AH
118142019-03-25 Alan Hayward <alan.hayward@arm.com>
11815
11816 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11817 Call linux_get_hwcap.
11818 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11819 Likewise.
11820 (aarch64_linux_get_hwcap): Remove function.
11821 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11822 declaration.
11823 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11824 linux_get_hwcap.
11825 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11826 * linux-tdep.c (linux_get_hwcap): Add function.
11827 (linux_get_hwcap2): Likewise.
11828 * linux-tdep.h (linux_get_hwcap): Add declaration.
11829 (linux_get_hwcap2): Likewise.
11830 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11831 (ppc_linux_get_hwcap2): Likewise.
11832 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11833 linux_get_hwcap.
11834 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11835 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11836 (ppc_linux_nat_target::read_description): Likewise.
11837 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11838 * s390-linux-nat.c: Likewise.
11839 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11840
6640a367
TT
118412019-03-24 Tom Tromey <tom@tromey.com>
11842
11843 * ada-lang.c (standard_lookup): Simplify initialization.
11844 (ada_lookup_symbol_nonlocal): Simplify return.
11845 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11846 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11847 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11848 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11849 initialization.
11850 * solib.c (solib_global_lookup): Simplify.
11851 * symtab.c (null_block_symbol): Remove.
11852 (symbol_cache_lookup): Simplify returns.
11853 (lookup_language_this): Simplify returns.
11854 (lookup_symbol_aux): Simplify return.
11855 (lookup_local_symbol): Simplify returns.
11856 (lookup_global_symbol_from_objfile): Simplify return.
11857 (lookup_symbol_in_objfile_symtabs)
11858 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11859 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11860 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11861 * cp-namespace.c (cp_lookup_bare_symbol)
11862 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11863 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11864 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11865 (cp_lookup_symbol_via_imports): Simplify initialization.
11866 (find_symbol_in_baseclass): Likewise.
11867 * symtab.h (null_block_symbol): Remove.
11868 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11869 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11870 (d_lookup_symbol_module): Likewise.
11871 (find_symbol_in_baseclass): Simplify initialization.
11872
a930ebcd
TT
118732019-03-24 Tom Tromey <tom@tromey.com>
11874
11875 * expression.h: Don't include symtab.h.
11876 (struct block): Forward declare.
11877
582942f4
TT
118782019-03-24 Tom Tromey <tom@tromey.com>
11879
11880 * c-exp.y (typebase): Remove casts.
11881 * gdbtypes.c (lookup_unsigned_typename, )
11882 (lookup_signed_typename): Remove cast.
11883 * eval.c (parse_to_comma_and_eval): Remove cast.
11884 * parse.c (write_dollar_variable): Remove cast.
11885 * block.h (struct block) <superblock>: Now const.
11886 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11887 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11888 (map_block): Make "block" const.
11889 * symfile.h (struct quick_symbol_functions)
11890 <map_matching_symbols>: Constify block argument to "callback".
11891 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11892 const.
11893 (find_pc_sect_compunit_symtab): Make "b" const.
11894 (find_symbol_at_address): Likewise.
11895 (search_symbols): Likewise.
11896 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11897 (dw2_debug_names_lookup_symbol): Likewise.
11898 (dw2_map_matching_symbols): Update.
11899 * p-valprint.c (pascal_val_print): Remove "block".
11900 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11901 (aux_add_nonlocal_symbols): Make "block" const.
11902 (resolve_subexp): Remove cast.
11903 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11904 const.
11905 (iterate_over_file_blocks): Likewise.
11906 * f-exp.y (%union) <bval>: Remove.
11907 * coffread.c (patch_opaque_types): Make "b" const.
11908 * spu-tdep.c (spu_catch_start): Make "block" const.
11909 * c-valprint.c (print_unpacked_pointer): Remove "block".
11910 * symmisc.c (dump_symtab_1): Make "b" const.
11911 (block_depth): Make "block" const.
11912 * d-exp.y (%union) <bval>: Remove.
11913 * cp-support.h (cp_lookup_rtti_type): Update.
11914 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11915 * psymtab.c (psym_lookup_symbol): Make "block" const.
11916 (maintenance_check_psymtabs): Make "b" const.
11917 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11918 (enumerate_locals, enumerate_args): Update.
11919 * python/py-symtab.c (stpy_global_block): Make "block" const.
11920 (stpy_static_block): Likewise.
11921 * inline-frame.c (block_starting_point_at): Make "new_block"
11922 const.
11923 * block.c (find_block_in_blockvector): Make return type const.
11924 (blockvector_for_pc_sect): Make "b" const.
11925 (find_block_in_blockvector): Make "b" const.
11926
7ad417dd
TT
119272019-03-23 Tom Tromey <tom@tromey.com>
11928
11929 * varobj.c (varobj_create): Update.
11930 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11931 * printcmd.c (display_command, do_one_display): Don't reset
11932 innermost_block.
11933 * parser-defs.h (enum innermost_block_tracker_type): Move to
11934 expression.h.
11935 (innermost_block): Update comment.
11936 * parse.c (parse_exp_1): Add tracker_types parameter.
11937 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11938 tracker_types parameter. Reset innermost_block.
11939 (parse_exp_in_context): Remove.
11940 (parse_expression_for_completion): Update.
11941 * objfiles.c (~objfile): Don't reset expression_context_block or
11942 innermost_block.
11943 * expression.h (enum innermost_block_tracker_type): Move from
11944 parser-defs.h.
11945 (parse_exp_1): Add tracker_types parameter.
11946 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11947 reset innermost_block.
11948
b366c208
TT
119492019-03-23 Tom Tromey <tom@tromey.com>
11950
11951 * objfiles.h: Include bcache.h.
11952
9bb9b2f9
TT
119532019-03-23 Tom Tromey <tom@tromey.com>
11954
11955 * linespec.c (get_current_search_block): Use
11956 scoped_restore_current_language.
11957 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11958
59c28372
AH
119592019-03-22 Alan Hayward <alan.hayward@arm.com>
11960 Jiong Wang <jiong.wang@arm.com>
11961
11962 * aarch64-linux-tdep.c
11963 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11964 section.
11965 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11966
17e116a7
AH
119672019-03-22 Alan Hayward <alan.hayward@arm.com>
11968 Jiong Wang <jiong.wang@arm.com>
11969
11970 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11971 instructions.
11972 (aarch64_analyze_prologue_test): Add PACIASP test.
11973 (aarch64_prologue_prev_register): Unmask PC value.
11974
11e1b75f
AH
119752019-03-22 Alan Hayward <alan.hayward@arm.com>
11976 Jiong Wang <jiong.wang@arm.com>
11977
11978 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11979 (aarch64_dwarf2_prev_register): Unmask PC value.
11980 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11981 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11982 DW_CFA_AARCH64_negate_ra_state.
11983 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11984
34dcc7cf
AH
119852019-03-22 Alan Hayward <alan.hayward@arm.com>
11986 Jiong Wang <jiong.wang@arm.com>
11987
11988 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11989 registers.
11990 (aarch64_pseudo_register_name): Likewise.
11991 (aarch64_pseudo_register_type): Likewise.
11992 (aarch64_pseudo_register_reggroup_p): Likewise.
11993 (aarch64_gdbarch_init): Add pauth registers.
11994 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11995 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11996 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11997 (struct gdbarch_tdep): Add regnum for ra_state.
11998
1ef53e6b
AH
119992019-03-22 Alan Hayward <alan.hayward@arm.com>
12000 Jiong Wang <jiong.wang@arm.com>
12001
12002 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12003
76bed0fd
AH
120042019-03-22 Alan Hayward <alan.hayward@arm.com>
12005 Jiong Wang <jiong.wang@arm.com>
12006
12007 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12008 function.
12009 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12010 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12011 (aarch64_gdbarch_init): Add puth registers.
12012 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12013 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12014 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12015
ee4fbcfa
AH
120162019-03-22 Alan Hayward <alan.hayward@arm.com>
12017 Jiong Wang <jiong.wang@arm.com>
12018
12019 * aarch64-linux-nat.c
12020 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12021 * aarch64-linux-tdep.c
12022 (aarch64_linux_core_read_description): Likewise.
12023 (aarch64_linux_get_hwcap): New function.
12024 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12025 (aarch64_linux_get_hwcap): New declaration.
12026
6dc0ebde
AH
120272019-03-22 Alan Hayward <alan.hayward@arm.com>
12028 Jiong Wang <jiong.wang@arm.com>
12029
12030 * aarch64-linux-nat.c
12031 (aarch64_linux_nat_target::read_description): Add pauth param.
12032 * aarch64-linux-tdep.c
12033 (aarch64_linux_core_read_description): Likewise.
12034 * aarch64-tdep.c (struct target_desc): Add in pauth.
12035 (aarch64_read_description): Add pauth param.
12036 (aarch64_gdbarch_init): Likewise.
12037 * aarch64-tdep.h (aarch64_read_description): Likewise.
12038 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12039 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12040 * features/Makefile: Add new files.
12041 * features/aarch64-pauth.c: New file.
12042 * features/aarch64-pauth.xml: New file.
12043
595915c1
TT
120442019-03-20 Tom Tromey <tromey@adacore.com>
12045
12046 * infrun.c (handle_inferior_event): Rename from
12047 handle_inferior_event_1. Create a scoped_value_mark.
12048 (handle_inferior_event): Remove.
12049
4c7d57e7
TT
120502019-03-19 Tom Tromey <tromey@adacore.com>
12051
12052 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12053 * infrun.h (print_stop_event): Add "displays" parameter.
12054 * infrun.c (print_stop_event): Add "displays" parameter.
12055
cb246234
PA
120562019-03-19 Pedro Alves <palves@redhat.com>
12057
12058 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12059 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12060 to -1. Fix TABs vs spaces.
12061 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12062 * tui/tui-out.h (tui_ui_out) Add intro comments.
12063 <m_line, m_start_of_line>: In-class initialize, and add describing
12064 comment.
12065
3a0e45b2
AH
120662019-03-18 Alan Hayward <alan.hayward@arm.com>
12067
12068 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12069 variable names.
12070 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12071
5371b850
PA
120722019-03-18 Pedro Alves <palves@redhat.com>
12073 Eli Zaretskii <eliz@gnu.org>
12074
12075 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12076 m_line and m_start_of_line.
12077
b17c4cd0
EZ
120782019-03-18 Eli Zaretskii <eliz@gnu.org>
12079
12080 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12081 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12082 it returns a newline. This fixes a regression in TU mode, whereby
12083 the next line is output on the same screen line as the user input.
12084
4bd56d18
TT
120852019-03-18 Tom Tromey <tromey@adacore.com>
12086
12087 * minsyms.c (minimal_symbol_reader::install): Remove call to
12088 obstack_blank.
12089
55c10aca
PA
120902019-03-18 Pedro Alves <palves@redhat.com>
12091
12092 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12093 New globals.
12094 (apply_style): New, factored out from ...
12095 (apply_ansi_escape): ... this. Handle reverse video mode.
12096 (tui_set_reverse_mode): New function.
12097 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12098 * tui/tui-winsource.c (tui_show_source_line): Use
12099 tui_set_reverse_mode instead of setting A_STANDOUT.
12100 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12101 New setter methods.
12102
647bb750
HD
121032019-03-18 Hannes Domani <ssbssa@yahoo.de>
12104
12105 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12106 Handle tabs.
12107
bff8c71f
TT
121082019-03-18 Tom Tromey <tromey@adacore.com>
12109
12110 * ada-lang.c (empty_array): Add "high" parameter.
12111 (ada_evaluate_subexp): Update.
12112
58785d98
ST
121132019-03-17 Sergei Trofimovich <siarheit@google.com>
12114
12115 * unittests/string_view-selftests.c: Define
12116 _initialize_string_view_selftests unconditionally.
12117
d4cbef22
ВМ
121182019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12119
12120 PR gdb/24350
12121 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12122
fce4c071
ВМ
121232019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12124
12125 PR gdb/24351
12126 * windows-nat.c (display_selector): Fix format specifiers.
12127
f7f0a123
EZ
121282019-03-17 Eli Zaretskii <eliz@gnu.org>
12129
12130 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12131 tui_refill_source_window instead of tui_refresh_win, to update the
12132 current execution line. This fixes redisplay of the current line
12133 when stepping through the code with "next" or "step".
12134
ab42892f
EZ
121352019-03-16 Eli Zaretskii <eliz@gnu.org>
12136
12137 * source-cache.c (source_cache::get_source_lines): Call
12138 find_source_lines to initialize s->nlines. This fixes vertical
12139 scrolling of TUI source window when the DOWN arrow is pressed.
12140
8d8c087f
PW
121412019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12142
12143 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12144 linux-thread-db.c (_initialize_thread_db): Likewise.
12145
798e1c30
EZ
121462019-03-16 Eli Zaretskii <eliz@gnu.org>
12147
12148 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12149 wclrtoeol in tui_show_source_line". This reverts changes made in
12150 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12151
eefba3da
TT
121522019-03-15 Tom Tromey <tom@tromey.com>
12153
12154 * symtab.h (struct minimal_symbol): Derive from
12155 general_symbol_info.
12156 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12157 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12158 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12159 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12160 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12161 (MSYMBOL_SEARCH_NAME): Update.
12162 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12163 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12164 * minsyms.c (minimal_symbol_reader::record_full): Update.
12165
0de2420c
TT
121662019-03-15 Tom Tromey <tom@tromey.com>
12167
12168 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12169
042d75e4
TT
121702019-03-15 Tom Tromey <tom@tromey.com>
12171
12172 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12173 unique_xmalloc_ptr.
12174 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12175 Update.
12176 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12177 (build_minimal_symbol_hash_tables)
12178 (minimal_symbol_reader::install): Update.
12179
db92718b
TT
121802019-03-15 Tom Tromey <tom@tromey.com>
12181
12182 * symtab.c (create_demangled_names_hash): Update.
12183 (symbol_set_names): Update.
12184 * objfiles.h (struct objfile_per_bfd_storage)
12185 <demangled_names_hash>: Now an htab_up.
12186 * objfiles.c (objfile_per_bfd_storage): Simplify.
12187
d6797f46
TT
121882019-03-15 Tom Tromey <tom@tromey.com>
12189
12190 * objfiles.h (struct objfile_per_bfd_storage): Declare
12191 destructor.
12192 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12193 New.
12194 (get_objfile_bfd_data): Use new. Don't initialize
12195 language_of_main.
12196 (free_objfile_per_bfd_storage): Remove.
12197 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12198
741d7538
TT
121992019-03-15 Tom Tromey <tom@tromey.com>
12200
12201 * symfile.c (reread_symbols): Update.
12202 * objfiles.c (objfile::objfile): Update.
12203 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12204 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12205 comment.
12206 (minimal_symbol_reader::install): Update.
12207 (terminate_minimal_symbol_table): Remove.
12208 * jit.c (jit_object_close_impl): Update.
12209
788c80d1
TT
122102019-03-15 Tom Tromey <tom@tromey.com>
12211
12212 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12213 initializations.
12214
1b7a07cb
TT
122152019-03-15 Tom Tromey <tom@tromey.com>
12216
12217 * objfiles.h (struct objfile_per_bfd_storage)
12218 <demangled_hash_languages>: Now a bitset.
12219 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12220 (lookup_minimal_symbol): Update.
12221
3db066bc
TT
122222019-03-15 Tom Tromey <tom@tromey.com>
12223
12224 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12225 Don't return the symbol.
12226 * coffread.c (record_minimal_symbol): Use record_full.
12227
3fff2c37
EZ
122282019-03-14 Eli Zaretskii <eliz@gnu.org>
12229
12230 The MS-Windows port of ncurses fails to switch to a color pair if
12231 one or both of the colors are the implicit default colors. This
12232 change records the default colors when TUI is initialized, and
12233 then specifies them explicitly when a color pair uses the default
12234 colors. This allows color styling in TUI mode on MS-Windows.
12235
12236 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12237 ncurses_norm_attr.
12238 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12239 colors in ncurses_norm_attr.
12240 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12241 "none", replace it with the default color recorded in
12242 ncurses_norm_attr.
12243
3b336828
TT
122442019-03-14 Tom Tromey <tromey@adacore.com>
12245
12246 * source-cache.h (class source_cache) <get_source_lines>: Return
12247 std::string.
12248 * source-cache.c (source_cache::extract_lines): Handle case where
12249 first_pos==npos. Return std::string.
12250 (source_cache::get_source_lines): Update.
12251
d085f989
TT
122522019-03-14 Tom Tromey <tromey@adacore.com>
12253
12254 * NEWS: Add item for "style sources" commands.
12255 * source-cache.c (source_cache::get_source_lines): Check
12256 source_styling.
12257 * cli/cli-style.c (source_styling): New global.
12258 (_initialize_cli_style): Add "style sources" commands.
12259 (show_style_sources): New function.
12260 * cli/cli-style.h (source_styling): Declare.
12261
6f11e682
TT
122622019-03-14 Pedro Alves <palves@redhat.com>
12263 Tom Tromey <tromey@adacore.com>
12264
12265 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12266 * tui/tui-winsource.c (tui_refill_source_window): New function,
12267 from...
12268 (tui_horizontal_source_scroll): ... here. Move some logic.
12269 * cli/cli-style.c (set_style_enabled): Notify new observable.
12270 * tui/tui-hooks.c (tui_redisplay_source): New function.
12271 (tui_attach_detach_observers): Attach or detach
12272 tui_redisplay_source.
12273 * observable.h (source_styling_changed): New observable.
12274 * observable.c: Define source_styling_changed observable.
12275
a068643d
TT
122762019-03-13 Tom Tromey <tromey@adacore.com>
12277
12278 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12279 (i386_gnu_nat_target::store_registers): Update.
12280 * target-debug.h (target_debug_print_std_string): New macro.
12281 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12282 * windows-tdep.c (display_one_tib): Update.
12283 * tui/tui-stack.c (tui_make_status_line): Update.
12284 * top.c (print_inferior_quit_action): Update.
12285 * thread.c (thr_try_catch_cmd): Update.
12286 (add_thread_with_info): Update.
12287 (thread_target_id_str): Update.
12288 (thr_try_catch_cmd): Update.
12289 (thread_command): Update.
12290 (thread_find_command): Update.
12291 * record-btrace.c (record_btrace_target::info_record)
12292 (record_btrace_resume_thread, record_btrace_target::resume)
12293 (record_btrace_cancel_resume, record_btrace_step_thread)
12294 (record_btrace_target::wait, record_btrace_target::wait)
12295 (record_btrace_target::wait, record_btrace_target::stop): Update.
12296 * progspace.c (print_program_space): Update.
12297 * process-stratum-target.c
12298 (process_stratum_target::thread_address_space): Update.
12299 * linux-fork.c (linux_fork_mourn_inferior)
12300 (detach_checkpoint_command, info_checkpoints_command)
12301 (linux_fork_context): Update.
12302 (linux_fork_detach): Update.
12303 (class scoped_switch_fork_info): Update.
12304 (delete_checkpoint_command): Update.
12305 * infrun.c (follow_fork_inferior): Update.
12306 (follow_fork_inferior): Update.
12307 (proceed_after_vfork_done): Update.
12308 (handle_vfork_child_exec_or_exit): Update.
12309 (follow_exec): Update.
12310 (displaced_step_prepare_throw): Update.
12311 (displaced_step_restore): Update.
12312 (start_step_over): Update.
12313 (resume_1): Update.
12314 (clear_proceed_status_thread): Update.
12315 (proceed): Update.
12316 (print_target_wait_results): Update.
12317 (do_target_wait): Update.
12318 (context_switch): Update.
12319 (stop_all_threads): Update.
12320 (restart_threads): Update.
12321 (finish_step_over): Update.
12322 (handle_signal_stop): Update.
12323 (switch_back_to_stepped_thread): Update.
12324 (keep_going_pass_signal): Update.
12325 (print_exited_reason): Update.
12326 (normal_stop): Update.
12327 * inferior.c (inferior_pid_to_str): Change return type.
12328 (print_selected_inferior): Update.
12329 (add_inferior): Update.
12330 (detach_inferior): Update.
12331 * dummy-frame.c (fprint_dummy_frames): Update.
12332 * dcache.c (dcache_info_1): Update.
12333 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12334 (btrace_fetch, btrace_clear): Update.
12335 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12336 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12337 type.
12338 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12339 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12340 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12341 * gdbarch.c, gdbarch.h: Rebuild.
12342 * gdbarch.sh (core_pid_to_str): Change return type.
12343 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12344 return type.
12345 (windows_nat_target::pid_to_str): Change return type.
12346 (windows_delete_thread): Update.
12347 (windows_nat_target::attach): Update.
12348 (windows_nat_target::files_info): Update.
12349 * target-delegates.c: Rebuild.
12350 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12351 return type.
12352 (sol_thread_target::pid_to_str): Change return type.
12353 * remote.c (class remote_target) <pid_to_str>: Change return
12354 type.
12355 (remote_target::pid_to_str): Change return type.
12356 (extended_remote_target::attach, remote_target::remote_stop_ns)
12357 (remote_target::remote_notif_remove_queued_reply)
12358 (remote_target::push_stop_reply, remote_target::disable_btrace):
12359 Update.
12360 (extended_remote_target::attach): Update.
12361 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12362 type.
12363 (gdbsim_target::pid_to_str): Change return type.
12364 * ravenscar-thread.c (struct ravenscar_thread_target)
12365 <pid_to_str>: Change return type.
12366 (ravenscar_thread_target::pid_to_str): Change return type.
12367 * procfs.c (class procfs_target) <pid_to_str>: Change return
12368 type.
12369 (procfs_target::pid_to_str): Change return type.
12370 (procfs_target::attach): Update.
12371 (procfs_target::detach): Update.
12372 (procfs_target::fetch_registers): Update.
12373 (procfs_target::store_registers): Update.
12374 (procfs_target::wait): Update.
12375 (procfs_target::files_info): Update.
12376 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12377 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12378 return type.
12379 (nto_procfs_target::pid_to_str): Change return type.
12380 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12381 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12382 return type.
12383 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12384 (exit_lwp): Update.
12385 (attach_proc_task_lwp_callback, get_detach_signal)
12386 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12387 (linux_nat_target::resume, wait_lwp, stop_callback)
12388 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12389 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12390 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12391 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12392 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12393 type.
12394 (inf_ptrace_target::attach): Update.
12395 (inf_ptrace_target::files_info): Update.
12396 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12397 type.
12398 (go32_nat_target::pid_to_str): Change return type.
12399 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12400 (gnu_nat_target::wait): Update.
12401 (gnu_nat_target::wait): Update.
12402 (gnu_nat_target::resume): Update.
12403 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12404 (fbsd_nat_target::wait): Update.
12405 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12406 type.
12407 (darwin_nat_target::attach): Update.
12408 * corelow.c (class core_target) <pid_to_str>: Change return type.
12409 (core_target::pid_to_str): Change return type.
12410 * target.c (normal_pid_to_str): Change return type.
12411 (default_pid_to_str): Likewise.
12412 (target_pid_to_str): Change return type.
12413 (target_translate_tls_address): Update.
12414 (target_announce_detach): Update.
12415 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12416 return type.
12417 (bsd_uthread_target::pid_to_str): Change return type.
12418 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12419 type.
12420 (bsd_kvm_target::pid_to_str): Change return type.
12421 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12422 return type.
12423 (aix_thread_target::pid_to_str): Change return type.
12424 * target.h (struct target_ops) <pid_to_str>: Change return type.
12425 (target_pid_to_str, normal_pid_to_str): Likewise.
12426 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12427 type.
12428 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12429 type.
12430 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12431 return type.
12432 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12433 type.
12434 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12435 type.
12436 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12437 return type.
12438
b4be1b06
SM
124392019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12440
12441 * NEWS: Mention that the new default MI version is 3. Mention
12442 changes to the output of commands and events that deal with
12443 multi-location breakpoints.
12444 * breakpoint.c: Include "mi/mi-out.h".
12445 (print_one_breakpoint): Change output syntax if using MI version
12446 >= 3.
12447 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12448 New.
12449 (mi_multi_location_breakpoint_output_fixed): New.
12450 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12451 (mi_cmd_fix_multi_location_breakpoint_output): New.
12452 (mi_multi_location_breakpoint_output_fixed): New.
12453 * mi/mi-cmds.c (mi_cmds): Register command
12454 -fix-multi-location-breakpoint-output.
12455 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12456 interpreter "mi".
12457
8e5e5494
SM
124582019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12459
12460 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12461 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12462 instantiate mi_ui_out based on interpreter name.
12463 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12464 * mi/mi-main.c (mi_load_progress): Likewise.
12465
197df35e
JB
124662019-03-12 John Baldwin <jhb@FreeBSD.org>
12467
12468 * NEWS: Combine separate "New targets" sections for 8.3.
12469
8399425f
JB
124702019-03-12 John Baldwin <jhb@FreeBSD.org>
12471
12472 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12473 (ppcfbsd_init_abi): Install gdbarch
12474 "fetch_tls_load_module_address" and "get_thread_local_address"
12475 methods.
12476
b0f87ed0
JB
124772019-03-12 John Baldwin <jhb@FreeBSD.org>
12478
12479 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12480 (riscv_fbsd_init_abi): Install gdbarch
12481 "fetch_tls_load_module_address" and "get_thread_local_address"
12482 methods.
12483
ce25aa57
JB
124842019-03-12 John Baldwin <jhb@FreeBSD.org>
12485
12486 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12487 (i386fbsd_init_abi): Install gdbarch
12488 "fetch_tls_load_module_address" and "get_thread_local_address"
12489 methods.
12490
f5424cfa
JB
124912019-03-12 John Baldwin <jhb@FreeBSD.org>
12492
12493 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12494 (amd64fbsd_init_abi): Install gdbarch
12495 "fetch_tls_load_module_address" and "get_thread_local_address"
12496 methods.
12497
945f3901
JB
124982019-03-12 John Baldwin <jhb@FreeBSD.org>
12499
12500 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12501 (struct fbsd_pspace_data): New type.
12502 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12503 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12504 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12505 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12506 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12507
ef0bd204
JB
125082019-03-12 John Baldwin <jhb@FreeBSD.org>
12509
12510 * gdbtypes.c (lookup_struct_elt): New function.
12511 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12512 * gdbtypes.h (struct struct_elt): New type.
12513 (lookup_struct_elt): New prototype.
12514
36c53a02
JB
125152019-03-12 John Baldwin <jhb@FreeBSD.org>
12516
12517 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12518 remove disabled code block.
12519
6e056c81
JB
125202019-03-12 John Baldwin <jhb@FreeBSD.org>
12521
12522 * gdbarch.sh (get_thread_local_address): New method.
12523 * gdbarch.h, gdbarch.c: Regenerate.
12524 * target.c (target_translate_tls_address): Use
12525 gdbarch_get_thread_local_address if present instead of
12526 target::get_thread_local_address.
12527
cd250a18
JB
125282019-03-12 John Baldwin <jhb@FreeBSD.org>
12529
12530 * target.h (target::get_thread_local_address): Update comment.
12531
df22c1e5
JB
125322019-03-12 John Baldwin <jhb@FreeBSD.org>
12533
12534 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12535 objfile->separate_debug_objfile_backlink if not NULL.
12536
dd6876c9
JB
125372019-03-12 John Baldwin <jhb@FreeBSD.org>
12538
12539 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12540 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12541 (amd64bsd_store_inferior_registers): Likewise.
12542 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12543 Enable segment base registers.
12544 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12545 PT_GETFSBASE and PT_GETGSBASE.
12546 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12547 PT_SETGSBASE.
12548 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12549 segment base registers.
12550 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12551
1163a4b7
JB
125522019-03-12 John Baldwin <jhb@FreeBSD.org>
12553
12554 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12555 Update calls to i386_target_description to add 'segments'
12556 parameter.
12557 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12558 add segment base registers.
12559 * arch/i386.c (i386_create_target_description): Add 'segments'
12560 parameter to enable segment base registers.
12561 * arch/i386.h (i386_create_target_description): Likewise.
12562 * features/i386/32bit-segments.xml: New file.
12563 * features/i386/32bit-segments.c: Generate.
12564 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12565 call to i386_target_description to add 'segments' parameter.
12566 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12567 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12568 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12569 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12570 if feature is present.
12571 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12572 Add 'segments' parameter to call to i386_target_description.
12573 (i386_target_description): Add 'segments' parameter to enable
12574 segment base registers.
12575 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12576 to call to i386_target_description.
12577 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12578 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12579 Define I386_NUM_REGS.
12580 (i386_target_description): Add 'segments' parameter to enable
12581 segment base registers.
12582
3a350822
EZ
125832019-03-12 Eli Zaretskii <eliz@gnu.org>
12584
12585 PR/24325
12586 * source-cache.c: #undef open and close, to avoid unresolved
12587 externals during linking.
12588
ffdd69cf
TT
125892019-03-12 Tom Tromey <tromey@adacore.com>
12590
12591 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12592 const. Add initializers.
12593 (_initialize_remote): Don't initialize ptid globals.
12594
ec148c57
PA
125952019-03-12 Pedro Alves <palves@redhat.com>
12596
12597 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12598
32764270
PA
125992019-03-12 Pedro Alves <palves@redhat.com>
12600
12601 * cp-name-parser.y (main): Remove unused 'len' variable.
12602
17547186
TT
126032019-03-12 Tom Tromey <tromey@adacore.com>
12604
12605 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12606 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12607
d3a70e03
TT
126082019-03-12 Tom Tromey <tromey@adacore.com>
12609
12610 * linux-nat.c (iterate_over_lwps): Update.
12611 (stop_callback): Remove parameter.
12612 (stop_wait_callback, detach_callback, resume_set_callback)
12613 (select_singlestep_lwp_callback, set_ignore_sigint)
12614 (status_callback, resumed_callback, resume_clear_callback)
12615 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12616 data parameter.
12617 (linux_nat_target::detach, linux_nat_target::resume)
12618 (linux_stop_and_wait_all_lwps, select_event_lwp)
12619 (linux_nat_filter_event, linux_nat_wait_1)
12620 (linux_nat_target::kill, linux_nat_target::stop)
12621 (linux_nat_target::stop): Update.
12622 (linux_nat_resume_callback): Change type.
12623 (resume_stopped_resumed_lwps, count_events_callback)
12624 (select_event_lwp_callback): Likewise.
12625 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12626 * arm-linux-nat.c (struct update_registers_data): Remove.
12627 (update_registers_callback): Change type.
12628 (arm_linux_insert_hw_breakpoint1): Update.
12629 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12630 parameter.
12631 (x86_linux_dr_set_addr): Update.
12632 (x86_linux_dr_set_control): Update.
12633 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12634 (iterate_over_lwps): Use gdb::function_view.
12635 * nat/aarch64-linux-hw-point.c (struct
12636 aarch64_dr_update_callback_param): Remove.
12637 (debug_reg_change_callback): Change type.
12638 (aarch64_notify_debug_reg_change): Update.
12639 * s390-linux-nat.c (s390_refresh_per_info): Update.
12640
82cb27ff
TT
126412019-03-11 Tom Tromey <tromey@adacore.com>
12642
12643 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12644 redundant assignment to "this_cu".
12645
568c0683
SM
126462019-03-08 Simon Marchi <simon.marchi@efficios.com>
12647
12648 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12649
f09ce22d
SM
126502019-03-08 Simon Marchi <simon.marchi@efficios.com>
12651
12652 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12653 from...
12654 (rank_one_type): ... this.
12655
595f96a9
SM
126562019-03-08 Simon Marchi <simon.marchi@efficios.com>
12657
12658 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12659 from...
12660 (rank_one_type): ... this.
12661
2598a94b
SM
126622019-03-08 Simon Marchi <simon.marchi@efficios.com>
12663
12664 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12665 from...
12666 (rank_one_type): ... this.
12667
7f17b20d
SM
126682019-03-08 Simon Marchi <simon.marchi@efficios.com>
12669
12670 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12671 from...
12672 (rank_one_type): ... this.
12673
2c509035
SM
126742019-03-08 Simon Marchi <simon.marchi@efficios.com>
12675
12676 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12677 from...
12678 (rank_one_type): ... this.
12679
0dd322dc
SM
126802019-03-08 Simon Marchi <simon.marchi@efficios.com>
12681
12682 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12683 from...
12684 (rank_one_type): ... this.
12685
41ea4728
SM
126862019-03-08 Simon Marchi <simon.marchi@efficios.com>
12687
12688 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12689 from...
12690 (rank_one_type): ... this.
12691
793cd1d2
SM
126922019-03-08 Simon Marchi <simon.marchi@efficios.com>
12693
12694 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12695 from...
12696 (rank_one_type): ... this.
12697
34910087
SM
126982019-03-08 Simon Marchi <simon.marchi@efficios.com>
12699
12700 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12701 from...
12702 (rank_one_type): ... this.
12703
f1f832d6
SM
127042019-03-08 Simon Marchi <simon.marchi@efficios.com>
12705
12706 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12707 from...
12708 (rank_one_type): ... this.
12709
b9f4512f
SM
127102019-03-08 Simon Marchi <simon.marchi@efficios.com>
12711
12712 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12713 from...
12714 (rank_one_type): ... this.
12715
9293fc63
SM
127162019-03-08 Simon Marchi <simon.marchi@efficios.com>
12717
12718 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12719 from...
12720 (rank_one_type): ... this.
12721
e3abbe7e
PW
127222019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12723
12724 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12725 inferior-events' shows the example events.
12726
e4adb939
EZ
127272019-03-08 Eli Zaretskii <eliz@gnu.org>
12728
12729 Support styling on native MS-Windows console
12730
12731 PR/24315
12732 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12733 on MS-Windows if $TERM is not defined.
12734
12735 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12736
12737 * posix-hdep.c (gdb_console_fputs):
12738 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12739 functions.
12740 * ui-file.h (gdb_console_fputs): Add prototype.
12741
12742 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12743 back to fputs only if the former returns zero.
12744
25629dfd
TT
127452019-03-07 Tom Tromey <tom@tromey.com>
12746
12747 * symmisc.c (print_symbol_bcache_statistics): Update.
12748 (print_objfile_statistics): Update.
12749 * symfile.c (allocate_symtab): Update.
12750 * stabsread.c: Don't include bcache.h.
12751 * psymtab.h (struct psymbol_bcache): Don't declare.
12752 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12753 (psymbol_bcache_init, psymbol_bcache_free)
12754 (psymbol_bcache_get_bcache): Don't declare.
12755 * psymtab.c (struct psymbol_bcache): Remove.
12756 (psymtab_storage::psymtab_storage): Update.
12757 (psymtab_storage::~psymtab_storage): Update.
12758 (psymbol_bcache_init, psymbol_bcache_free)
12759 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12760 (add_psymbol_to_bcache): Update.
12761 (allocate_psymtab): Update.
12762 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12763 macro_cache>: No longer pointers.
12764 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12765 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12766 * macrotab.c (macro_bcache): Update.
12767 * macroexp.c: Don't include bcache.h.
12768 * gdbtypes.c (check_types_worklist): Update.
12769 (types_deeply_equal): Remove TRY/CATCH. Update.
12770 * elfread.c (elf_symtab_read): Update.
12771 * dwarf2read.c: Don't include bcache.h.
12772 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12773 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12774 (print_bcache_statistics, bcache_memory_used): Don't declare.
12775 (struct bcache): Move from bcache.c. Add constructor, destructor,
12776 methods. Rename all data members.
12777 * bcache.c (struct bcache): Move to bcache.h.
12778 (bcache::expand_hash_table): Rename from expand_hash_table.
12779 (bcache): Remove.
12780 (bcache::insert): Rename from bcache_full.
12781 (bcache::compare): Rename from bcache_compare.
12782 (bcache_xmalloc): Remove.
12783 (bcache::~bcache): Rename from bcache_xfree.
12784 (bcache::print_statistics): Rename from print_bcache_statistics.
12785 (bcache::memory_used): Rename from bcache_memory_used.
12786
fe726667
PA
127872019-03-07 Pedro Alves <palves@redhat.com>
12788
12789 * infrun.c (normal_stop): Also check for
12790 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12791
7584bb30
AB
127922019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12793
12794 * f-lang.c (value_from_host_double): Moved to...
12795 * value.c (value_from_host_double): ...here.
12796 * value.h (value_from_host_double): Declare.
12797 * guile/scm-math.c (vlscm_convert_typed_number): Use
12798 value_from_host_double.
12799 (vlscm_convert_number): Likewise.
12800 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12801 * python/py-value.c (convert_value_from_python): Likewise.
12802
a7b1986e
TT
128032019-03-06 Tom Tromey <tom@tromey.com>
12804
12805 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12806
0ccf4211
TT
128072019-03-06 Tom Tromey <tom@tromey.com>
12808
12809 * utils.h (free_current_contents): Don't declare.
12810 * utils.c (free_current_contents): Remove.
12811
fe7b42e5
TT
128122019-03-06 Tom Tromey <tom@tromey.com>
12813
12814 * top.c (quit_force): Update.
12815 * main.c (captured_command_loop): Update.
12816 * common/new-op.c (operator new): Update.
12817 * common/common-exceptions.c (struct catcher)
12818 <save_cleanup_chain>: Remove member.
12819 (exceptions_state_mc_init): Update.
12820 (exception_try_scope_entry): Return nullptr.
12821 (exception_try_scope_exit, exception_rethrow)
12822 (throw_exception_sjlj, throw_exception_cxx): Update.
12823 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12824 (all_cleanups, do_cleanups, discard_cleanups)
12825 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12826 (restore_cleanups, restore_final_cleanups): Don't declare.
12827 (do_final_cleanups): Remove parameter.
12828 * common/cleanups.c (cleanup_chain, make_cleanup)
12829 (make_cleanup_dtor, all_cleanups, do_cleanups)
12830 (discard_my_cleanups, discard_cleanups)
12831 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12832 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12833 (null_cleanup): Remove.
12834 (do_final_cleanups): Remove parameter.
12835
c6321f19
TT
128362019-03-06 Tom Tromey <tom@tromey.com>
12837
12838 * remote.c (remote_target::remote_parse_stop_reply): Use
12839 unique_xmalloc_ptr.
12840
61b30099
TT
128412019-03-06 Tom Tromey <tom@tromey.com>
12842
12843 * stabsread.c (struct stabs_field_info): Rename from field_info.
12844 <list, fnlist>: Add initializers.
12845 <obstack>: New member.
12846 (read_member_functions, read_struct_fields, read_baseclasses):
12847 Allocate on obstack. Don't use cleanups.
12848 (read_one_struct_field, read_member_functions, read_struct_fields)
12849 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12850 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12851 (read_struct_type): Update.
12852
6cceac94
TT
128532019-03-06 Tom Tromey <tom@tromey.com>
12854
12855 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12856 * common/filestuff.h (make_cleanup_close): Don't declare.
12857 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12858 Remove.
12859
72412762
TT
128602019-03-06 Tom Tromey <tom@tromey.com>
12861
12862 * solib-aix.c: Use make_scope_exit.
12863
2b6ff1c0
TT
128642019-03-06 Tom Tromey <tom@tromey.com>
12865
12866 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12867 Use make_scope_exit.
12868
d01c5877
TT
128692019-03-06 Tom Tromey <tom@tromey.com>
12870
12871 * solib-svr4.c (disable_probes_interface): Remove parameter.
12872 (svr4_handle_solib_event): Use make_scope_exit.
12873
32603266
TT
128742019-03-06 Tom Tromey <tom@tromey.com>
12875
12876 * remote.c (struct stop_reply_deleter): Remove.
12877 (stop_reply_up): Update.
12878 (struct stop_reply): Derive from notif_event. Don't typedef.
12879 <regcache>: Now a std::vector.
12880 (stop_reply_xfree): Remove.
12881 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12882 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12883 (remote_target::discard_pending_stop_replies): Use delete.
12884 (remote_target::remote_parse_stop_reply): Update.
12885 (remote_target::process_stop_reply): Update.
12886 * remote-notif.h (struct notif_event): Add virtual destructor.
12887 Remove "dtr" member.
12888 (struct notif_client) <alloc_event>: Return a unique_ptr.
12889 (notif_event_xfree): Don't declare.
12890 (notif_event_up): New typedef.
12891 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12892 (notif_event_xfree, do_notif_event_xfree): Remove.
12893 (remote_notif_state_xfree): Update.
12894
9799571e
TT
128952019-03-06 Tom Tromey <tom@tromey.com>
12896
12897 * infrun.c (displaced_step_clear_cleanup): Now a
12898 forward_scope_exit type.
12899 (displaced_step_prepare_throw): Update.
12900 (displaced_step_fixup): Update.
12901
09e3c4ca
TT
129022019-03-06 Tom Tromey <tom@tromey.com>
12903
12904 * inferior.h (class inferior): Update comment.
12905 * gdbthread.h (class thread_info): Update comment.
12906
e2a03548
TT
129072019-03-06 Joel Brobecker <brobecker@adacore.com>
12908 Tom Tromey <tom@tromey.com>
12909
12910 * stabsread.h (struct stab_section_list): Remove.
12911 (coffstab_build_psymtabs): Update.
12912 * dbxread.c (symbuf_sections): Now a std::vector.
12913 (sect_idx): New global.
12914 (fill_symbuf): Update.
12915 (coffstab_build_psymtabs): Change type of stabsects parameter.
12916 Update.
12917 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12918 std::vector.
12919 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12920 (coff_locate_sections): Update.
12921 (coff_symfile_read): Remove cleanups. Update.
12922 (init_stringtab): Add storage parameter.
12923 (free_stringtab, free_stringtab_cleanup): Remove.
12924 (init_lineno): Add storage parameter.
12925 (free_linetab, free_linetab_cleanup): Remove.
12926
b7e60d85
PA
129272019-03-06 Pedro Alves <palves@redhat.com>
12928
12929 * linux-fork.c (fork_info::clobber_regs): Delete.
12930 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12931 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12932 comment. Adjust.
12933 (scoped_switch_fork_info::scoped_switch_fork_info)
12934 (checkpoint_command, linux_fork_context): Adjust
12935 fork_save_infrun_state calls.
12936
e52c971f
PA
129372019-03-06 Pedro Alves <palves@redhat.com>
12938
12939 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12940 (inf_has_multiple_threads): Return 'bool' and rewrite using
12941 inferior_info::threads().
12942
06974e6c
PA
129432019-03-06 Pedro Alves <palves@redhat.com>
12944
12945 * linux-fork.c: Include <list>.
12946 (fork_list): Now a std::list instance.
12947 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12948 (forks_exist_p, find_last_fork): Adjust.
12949 (new_fork): Delete.
12950 (one_fork_p): New.
12951 (add_fork): Adjust.
12952 (free_fork): Delete, folded into fork_info::~fork_info().
12953 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12954 Adjust.
12955 (init_fork_list): Delete.
12956 (linux_fork_killall, linux_fork_mourn_inferior)
12957 (linux_fork_detach, info_checkpoints_command): Adjust.
12958 (_initialize_linux_fork): No longer call init_fork_list.
12959
72f31aea
PA
129602019-03-06 Pedro Alves <palves@redhat.com>
12961
12962 * linux-fork.c (new_fork): New, split out of ...
12963 (add_fork): ... this. Return void. Move "first fork" special
12964 case from here, to ...
12965 (checkpoint_command): ... here.
12966 * linux-linux.h (add_fork): Return void.
12967
efbecbc1
AB
129682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12969
12970 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12971
0841c79a
AB
129722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12973 Chris January <chris.january@arm.com>
12974 David Lecomber <david.lecomber@arm.com>
12975
12976 * f-exp.y: New token, UNOP_INTRINSIC.
12977 (exp): New pattern using UNOP_INTRINSIC token.
12978 (f77_keywords): Add 'abs' keyword.
12979 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12980 (value_from_host_double): New function.
12981 (evaluate_subexp_f): Support UNOP_ABS.
12982
4a270568
AB
129832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12984
12985 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12986 types.
12987
067630bd
AB
129882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12989
12990 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12991 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12992 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12993
3be47f7a
AB
129942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12995
12996 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12997
4d00f5d8
AB
129982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12999 Chris January <chris.january@arm.com>
13000
13001 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13002 * f-exp.y: Define 'KIND' token.
13003 (exp): New pattern for KIND expressions.
13004 (ptype): Handle types with a kind extension.
13005 (direct_abs_decl): Extend to spot kind extensions.
13006 (f77_keywords): Add 'kind' to the list.
13007 (push_kind_type): New function.
13008 (convert_to_kind_type): New function.
13009 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13010 * parse.c (operator_length_standard): Likewise.
13011 * parser-defs.h (enum type_pieces): Add tp_kind.
13012 * std-operator.def: Add UNOP_KIND.
13013
e454224f
AB
130142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13015
13016 * f-exp.y (f_parse): Set yydebug.
13017
9dad4a58
AB
130182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13019
13020 * f-lang.c (evaluate_subexp_f): New function.
13021 (exp_descriptor_f): New global.
13022 (f_language_defn): Use exp_descriptor_f instead of
13023 exp_descriptor_standard.
13024
c8f91604
AB
130252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13026
13027 * f-exp.y (struct token): Add comments.
13028 (dot_ops): Remove uppercase versions and the end marker.
13029 (f77_keywords): Likewise.
13030 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13031 entries in the dot_ops array are case insensitive, and use
13032 strncasecmp to compare strings. Also some whitespace cleanup in
13033 this area. Similar for the f77_keywords array, except entries in
13034 this list might be case sensitive.
13035
dd9f2c76
AB
130362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13037
13038 * f-exp.y (struct f77_boolean_val): Add comments.
13039 (boolean_values): Remove uppercase versions, and end marker.
13040 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13041 and use strncasecmp to achieve case insensitivity. Additionally,
13042 perform whitespace cleanup around this code.
13043
67a3048c
TT
130442019-03-06 Tom Tromey <tromey@adacore.com>
13045
13046 * remote-sim.c (gdbsim_target_open): Use result of
13047 gdb_argv::release.
13048
aa3cfbda
RB
130492019-03-06 Richard Bunt <richard.bunt@arm.com>
13050 Dirk Schubert <dirk.schubert@arm.com>
13051 Chris January <chris.january@arm.com>
13052
13053 * eval.c (evaluate_subexp_standard): Call Fortran argument
13054 wrapping logic.
13055 * f-lang.c (struct value): A value which can be passed into a
13056 Fortran function call.
13057 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13058 where appropriate.
13059 (struct type): Value ready for a Fortran function call.
13060 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13061 is needed.
13062 * f-lang.h (fortran_argument_convert): Declaration.
13063 (fortran_preserve_arg_pointer): Declaration.
13064 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13065
ea38e5df
TT
130662019-03-05 Tom Tromey <tromey@adacore.com>
13067
13068 * python/py-prettyprint.c (print_string_repr): Remove #if.
13069 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13070
06b5b831
TT
130712019-03-05 Tom Tromey <tromey@adacore.com>
13072
13073 * target.c (the_dummy_target): Move later. Change type to
13074 "dummy_target".
13075 (initialize_targets): Don't initialize the_dummy_target.
13076
edbd9e45
TT
130772019-03-05 Tom Tromey <tromey@adacore.com>
13078
13079 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13080 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13081
c119e040
TT
130822019-03-05 Tom Tromey <tromey@adacore.com>
13083
13084 * windows-nat.c (windows_nat_target::attach)
13085 (windows_nat_target::detach): Don't call gdb_flush.
13086 * valprint.c (generic_val_print, val_print, val_print_string):
13087 Don't call gdb_flush.
13088 * utils.c (defaulted_query): Don't call gdb_flush.
13089 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13090 * target.c (target_announce_detach): Don't call gdb_flush.
13091 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13092 * remote.c (extended_remote_target::attach): Don't call
13093 gdb_flush.
13094 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13095 * printcmd.c (do_examine): Don't call gdb_flush.
13096 (info_display_command): Don't call gdb_flush.
13097 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13098 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13099 * memattr.c (info_mem_command): Don't call gdb_flush.
13100 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13101 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13102 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13103 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13104 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13105 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13106 (gnu_nat_target::detach): Don't call gdb_flush.
13107 * f-valprint.c (f_val_print): Don't call gdb_flush.
13108 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13109 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13110 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13111 gdb_flush.
13112 * c-valprint.c (c_val_print): Don't call gdb_flush.
13113 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13114
895dafa6
TT
131152019-03-05 Tom Tromey <tromey@adacore.com>
13116
13117 * varobj.c (update_dynamic_varobj_children): Update.
13118 (install_default_visualizer): Use reset, not release.
13119 * value.c (set_internalvar): Update.
13120 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13121 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13122 ATTRIBUTE_UNUSED_RESULT.
13123
88a774b9
TT
131242019-03-05 Tom Tromey <tromey@adacore.com>
13125
13126 * remote.c (class scoped_remote_fd) <release>: Add
13127 ATTRIBUTE_UNUSED_RESULT.
13128
4e4a8b93
TT
131292019-03-05 Tom Tromey <tromey@adacore.com>
13130
13131 * macroexp.c (struct macro_buffer) <release>: Add
13132 ATTRIBUTE_UNUSED_RESULT.
13133
083eef1f
TT
131342019-03-05 Tom Tromey <tromey@adacore.com>
13135
13136 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13137 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13138 ATTRIBUTE_UNUSED_RESULT.
13139
3cabd438
TT
131402019-03-05 Tom Tromey <tromey@adacore.com>
13141
13142 * common/scoped_fd.h (class scoped_fd) <release>: Add
13143 ATTRIBUTE_UNUSED_RESULT.
13144
41e3300a
TT
131452019-03-05 Tom Tromey <tromey@adacore.com>
13146
13147 * parser-defs.h (struct parser_state) <release>: Add
13148 ATTRIBUTE_UNUSED_RESULT.
13149
18cb7c9f
TT
131502019-03-05 Tom Tromey <tromey@adacore.com>
13151
13152 * utils.h (class gdb_argv) <release>: Add
13153 ATTRIBUTE_UNUSED_RESULT.
13154 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13155
41fa577f
EZ
131562019-03-02 Eli Zaretskii <eliz@gnu.org>
13157
a6a4b2c6
EZ
13158 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13159 for-loop range, to avoid compiler warnings.
13160
13161 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13162 avoid compiler warnings about unused variables.
13163
742a7df5
EZ
13164 * NEWS: Mention end of support for native debugging on MS-Windows
13165 before XP.
13166
41fa577f
EZ
13167 PR gdb/24292
13168 * common/netstuff.c:
13169 * gdbserver/gdbreplay.c
13170 * gdbserver/remote-utils.c:
13171 * ser-tcp.c:
13172 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13173 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13174 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13175 'getaddrinfo' and 'freeaddrinfo' were not available before
13176 Windows XP, and mingw.org's MinGW headers by default define
13177 _WIN32_WINNT to 0x500.
13178
827f438f
GB
131792019-03-01 Gary Benson <gbenson@redhat.com>
13180
13181 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13182
92137da0
RO
131832019-02-28 Brian Vandenberg <phantall@gmail.com>
13184 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13185
13186 PR gdb/8527
13187 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13188 set_sigint_trap, clear_sigint_trap.
13189
799efbe8
PW
131902019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13191
13192 * target.c (target_detach): Clear the regcache and the
13193 frame cache.
13194
8ed25214
PA
131952019-02-27 Pedro Alves <palves@redhat.com>
13196
13197 * utils.c (set_screen_size): When we cap the height/width sizes,
13198 tweak the corresponding command variable to show "unlimited":
13199
23031e31
SJ
132002019-02-27 Saagar Jha <saagar@saagarjha.com>
13201 Pedro Alves <palves@redhat.com>
13202
13203 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13204 before calling rl_set_screen_size.
13205
6c28e44a
TT
132062019-02-27 Tom Tromey <tromey@adacore.com>
13207
13208 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13209 define.
13210 * python/py-value.c: Remove Python 2.4 workaround.
13211 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13212 workaround.
13213 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13214 Python 2.4 workaround.
13215 * python/python-internal.h: Remove Python 2.4 comment.
13216 (Py_ssize_t): Don't define.
13217 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13218 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13219 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13220 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13221 * python/python.c (do_start_initialization): Remove Python 2.4
13222 workaround.
13223 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13224 (print_children): Remove Python 2.4 workaround.
13225 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13226 workaround.
13227 (CHARBUFFERPROC_NAME): Remove.
13228 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13229 Python 2.4 workaround.
13230
2c3fc25d 132312019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13232
2c3fc25d
KB
13233 * NEWS: Note minimum Python version.
13234
6ca62222
KB
132352019-02-27 Kevin Buettner <kevinb@redhat.com>
13236
13237 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13238 code from these functions. Remove corresponding ifdefs. Use
13239 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13240 Remove gotos and target of gotos.
13241 (infpy_search_memory): Likewise.
13242
f4bc7d2c
AB
132432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13244
13245 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13246 (hppa_gdbarch_init): Don't register deleted functions with
13247 gdbarch.
13248
9734a586
AB
132492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13250
13251 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13252 (h8300_unwind_sp): Delete.
13253 (h8300_dummy_id): Delete.
13254 (h8300_gdbarch_init): Don't register deleted functions with
13255 gdbarch.
13256
68b867f3
AB
132572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13258
13259 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13260 (ft32_unwind_pc): Delete.
13261 (ft32_unwind_sp): Delete.
13262 (ft32_gdbarch_init): Don't register deleted functions with
13263 gdbarch.
13264
2fbe7ad0
AB
132652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13266
13267 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13268 (frv_unwind_pc): Delete.
13269 (frv_unwind_sp): Delete.
13270 (frv_gdbarch_init): Don't register deleted functions with
13271 gdbarch.
13272
76055cbe
AB
132732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13274
13275 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13276 (riscv_unwind_pc): Delete.
13277 (riscv_unwind_sp): Delete.
13278 (riscv_gdbarch_init): Don't register deleted functions with
13279 gdbarch.
13280
4133e5a1
AB
132812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13282
13283 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13284 (csky_unwind_pc): Delete.
13285 (csky_unwind_sp): Delete.
13286 (csky_gdbarch_init): Don't register deleted functions with
13287 gdbarch.
13288
8010f576
AB
132892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13290
13291 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13292 (cris_unwind_pc): Delete.
13293 (cris_unwind_sp): Delete.
13294 (cris_gdbarch_init): Don't register deleted functions with
13295 gdbarch.
13296
b56bf084
AB
132972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13298
13299 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13300 (bfin_unwind_pc): Delete.
13301 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13302
a19a650f
AB
133032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13304
13305 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13306 (arm_unwind_pc): Delete.
13307 (arm_unwind_sp): Delete.
13308 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13309
f8278c3c
AB
133102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13311
13312 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13313 (arc_unwind_pc): Delete.
13314 (arc_unwind_sp): Delete.
13315 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13316
480e46cf
AB
133172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13318
13319 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13320 (alpha_unwind_pc): Delete.
13321 (alpha_gdbarch_init): Don't register deleted functions with
13322 gdbarch.
13323
7a995095
AB
133242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13325
13326 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13327 (aarch64_unwind_pc): Delete.
13328 (aarch64_unwind_sp): Delete.
13329 (aarch64_gdbarch_init): Don't register deleted functions with
13330 gdbarch.
13331
bf9a735e
AB
133322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13333
13334 * gdbtypes.c (type_align): Don't consider static members when
13335 computing structure alignment.
13336
5561fc30
AB
133372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13338
13339 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13340 return 0 for other types.
13341 * arch-utils.c (default_type_align): Always return 0.
13342 * gdbarch.h: Regenerate.
13343 * gdbarch.sh (type_align): Extend comment.
13344 * gdbtypes.c (type_align): Add additional comments, always call
13345 gdbarch_type_align before applying the default rules.
13346 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13347 generic code will then apply a suitable default.
13348 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13349 types, return 0 for other types.
13350
9335e75a
JB
133512019-02-27 Joel Brobecker <brobecker@adacore.com>
13352
13353 * NEWS: Create a new section for the next release branch.
13354 Rename the section of the current branch, now that it has
13355 been cut.
13356
3d34d8de
JB
133572019-02-27 Joel Brobecker <brobecker@adacore.com>
13358
13359 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13360 * version.in: Bump version to 8.3.50.DATE-git.
13361
143420fb
SM
133622019-02-26 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * aix-thread.c (ptid_cmp): Remove unused variable.
13365 (get_signaled_thread): Likewise.
13366 (store_regs_user_thread): Likewise.
13367 (store_regs_kernel_thread): Likewise.
13368 (fetch_regs_kernel_thread): Remove shadowed variable.
13369
172fb711
AB
133702019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13371
13372 * features/riscv/32bit-cpu.xml: Add register numbers.
13373 * features/riscv/32bit-fpu.c: Regenerate.
13374 * features/riscv/32bit-fpu.xml: Add register numbers.
13375 * features/riscv/64bit-cpu.xml: Add register numbers.
13376 * features/riscv/64bit-fpu.c: Regenerate.
13377 * features/riscv/64bit-fpu.xml: Add register numbers.
13378
26c89782
KB
133792019-02-26 Kevin Buettner <kevinb@redhat.com>
13380
af54ade9 13381 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13382 * python/py-value.c (convert_buffer_and_type_to_value): New
13383 function.
13384 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13385 Add support for handling an optional second argument. Call
13386 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13387 * python/python-internal.h (Py_buffer_deleter): New struct.
13388 (Py_buffer_up): New typedef.
13389
0f58c9e8
JB
133902019-02-25 John Baldwin <jhb@FreeBSD.org>
13391
13392 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13393 instead of releasing ownership.
13394
0a0f4c01
JR
133952019-02-25 Jordan Rupprecht <rupprecht@google.com>
13396
13397 * dwarf2read.c (open_and_init_dwp_file): Call
13398 elf_numsections instead of bfd_count_sections to initialize
13399 dwp_file->num_sections.
13400
cd5a152c
TT
134012019-02-25 Tom Tromey <tromey@adacore.com>
13402
13403 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13404
8a6a8513
SDJ
134052019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13406
13407 * gcore.in: Add '--readnever' option when invoking GDB.
13408
04dcda9c
SM
134092019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13410
13411 * MAINTAINERS: Update my email address.
13412
07bc701d
SM
134132019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13414
13415 * build-id.c (build_id_to_debug_bfd_1): New function.
13416 (build_id_to_debug_bfd): Look for separate debug file in
13417 sysroot.
13418
c6f4a5d0
AB
134192019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13420
13421 * gdbarch.sh: Update the copyright year range that is placed into
13422 generated files.
13423
9600246d
KS
134242019-02-22 Keith Seitz <keiths@redhat.com>
13425
13426 PR symtab/23853
13427 * linespec.c (create_sals_line_offset): Search for the default
13428 symtab's filename instead of its fullname.
13429
7557a514
AH
134302019-02-21 Alan Hayward <alan.hayward@arm.com>
13431
13432 * NEWS: Update style defaults.
13433
ee2bcb0c
AH
134342019-02-21 Alan Hayward <alan.hayward@arm.com>
13435
13436 * main.c (captured_main_1): Disable styling in batch mode.
13437
0c95f9ed
TT
134382019-02-20 Tom Tromey <tom@tromey.com>
13439
13440 * symtab.c (symtab_symbol_info): Fix typos.
13441
c763b894
TT
134422019-02-20 Tom Tromey <tromey@adacore.com>
13443
13444 * findcmd.c (_initialize_mem_search): Use upper case for
13445 metasyntactic variables.
13446
0ef8a082
AH
134472019-02-20 Alan Hayward <alan.hayward@arm.com>
13448
13449 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13450 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13451
6caa91b6
SM
134522019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13453
13454 * top.h (source_file_name): Change to std::string.
13455 * top.c (source_file_name): Likewise.
13456 (command_line_input): Adjust.
13457 * cli/cli-script.c (script_from_file): Adjust.
13458
98814c6c
TT
134592019-02-19 Tom Tromey <tromey@adacore.com>
13460
13461 * ravenscar-thread.c
13462 (ravenscar_thread_target::update_thread_list): Don't call
13463 ada_build_task_list.
13464 * ada-lang.h (ada_build_task_list): Don't declare.
13465 * ada-tasks.c (struct ada_tasks_inferior_data)
13466 <task_list_valid_p>: Now bool.
13467 (read_known_tasks, ada_task_list_changed)
13468 (ada_tasks_invalidate_inferior_data): Update.
13469 (read_known_tasks_array): Return bool.
13470 (read_known_tasks_list): Likewise.
13471 (read_known_tasks): Return void.
13472 (ada_build_task_list): Now static.
13473
70cd633e
AB
134742019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13475
13476 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13477 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13478
040b3e95
PW
134792019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13480
13481 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13482 variant for ada_tasks_pspace_data_handle and
13483 ada_tasks_inferior_data_handle.
13484 (ada_tasks_pspace_data_cleanup): New function.
13485 (ada_tasks_inferior_data_cleanup): New function.
13486
9409233b
TT
134872019-02-17 Tom Tromey <tom@tromey.com>
13488
13489 * macrotab.h (macro_source_fullname): Return a std::string.
13490 * macrotab.c (macro_include, check_for_redefinition)
13491 (macro_undef, macro_lookup_definition, foreach_macro)
13492 (foreach_macro_in_scope): Update.
13493 (macro_source_fullname): Return a std::string.
13494 * macrocmd.c (show_pp_source_pos): Update.
13495
6506371f
TT
134962019-02-17 Tom Tromey <tom@tromey.com>
13497
13498 * macrocmd.c (show_pp_source_pos): Style the file names.
13499
0c820d67
TT
135002019-02-17 Tom Tromey <tom@tromey.com>
13501
13502 PR tui/24197:
13503 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13504
a0087920
TT
135052019-02-17 Tom Tromey <tom@tromey.com>
13506
13507 * ada-lang.c (user_select_syms): Use filtered printing.
13508 * utils.c (wrap_style): New global.
13509 (desired_style): Remove.
13510 (emit_style_escape): Add stream parameter.
13511 (set_output_style, reset_terminal_style, prompt_for_continue):
13512 Update.
13513 (flush_wrap_buffer): Only flush gdb_stdout.
13514 (wrap_here): Set wrap_style.
13515 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13516 treat escape sequences as a character. Change when wrap buffer is
13517 flushed.
13518 (fputs_styled): Do not set the output style when the default is
13519 requested.
13520 * ui-style.h (struct ui_file_style) <is_default>: New method.
13521 * source.c (print_source_lines_base): Emit escape sequences in one
13522 piece.
13523
75ba10dc
JB
135242019-02-17 Joel Brobecker <brobecker@adacore.com>
13525
13526 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13527 integers and enumeration types.
13528
a2cd4f14
JB
135292019-02-17 Joel Brobecker <brobecker@adacore.com>
13530
13531 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13532 instead of lookup_symbol_in_language
13533 (do_exact_match): New function.
13534 (ada_get_symbol_name_matcher): Return do_exact_match when
13535 doing a verbatim match.
13536
485b851b
TT
135372019-02-15 Tom Tromey <tromey@adacore.com>
13538
13539 * ravenscar-thread.c (ravenscar_thread_target::resume)
13540 (ravenscar_thread_target::wait): Special case wildcard requests.
13541
0b790b1e
TT
135422019-02-15 Tom Tromey <tromey@adacore.com>
13543
13544 * ravenscar-thread.c (base_ptid): Remove.
13545 (struct ravenscar_thread_target) <close>: New method.
13546 <m_base_ptid>: New member.
13547 <update_inferior_ptid, active_task, task_is_currently_active,
13548 runtime_initialized>: Declare methods.
13549 <ravenscar_thread_target>: Add constructor.
13550 (ravenscar_thread_target::task_is_currently_active)
13551 (ravenscar_thread_target::update_inferior_ptid)
13552 (ravenscar_runtime_initialized): Rename. Now methods.
13553 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13554 (ravenscar_thread_target::update_thread_list): Update.
13555 (ravenscar_thread_target::active_task): Now method.
13556 (ravenscar_thread_target::store_registers)
13557 (ravenscar_thread_target::prepare_to_store)
13558 (ravenscar_thread_target::prepare_to_store)
13559 (ravenscar_thread_target::mourn_inferior): Update.
13560 (ravenscar_inferior_created): Use "new" to create target.
13561 (ravenscar_thread_target::get_ada_task_ptid): Update.
13562 (_initialize_ravenscar): Don't initialize base_ptid.
13563 (ravenscar_ops): Remove global.
13564
dea57a62
TT
135652019-02-15 Tom Tromey <tromey@adacore.com>
13566
13567 * target.h (push_target): Declare new overload.
13568 * target.c (push_target): New overload, taking an rvalue reference.
13569 * remote.c (remote_target::open_1): Use push_target overload.
13570 * corelow.c (core_target_open): Use push_target overload.
13571
989f3c58
TT
135722019-02-15 Tom Tromey <tromey@adacore.com>
13573
13574 * ravenscar-thread.c (is_ravenscar_task)
13575 (ravenscar_task_is_currently_active): Return bool.
13576 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13577 (_initialize_ravenscar): Remove "(void)".
13578 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13579 Return bool.
13580
6cbcc006
TT
135812019-02-15 Tom Tromey <tromey@adacore.com>
13582
13583 * ravenscar-thread.c (ravenscar_runtime_initializer)
13584 (has_ravenscar_runtime, get_running_thread_id)
13585 (ravenscar_thread_target::resume): Fix indentation.
13586
7657f14d
TT
135872019-02-15 Tom Tromey <tromey@adacore.com>
13588
13589 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13590 from ravenscar_arch_ops.
13591 (sparc_ravenscar_ops::fetch_registers)
13592 (sparc_ravenscar_ops::store_registers): Now methods.
13593 (sparc_ravenscar_prepare_to_store): Remove.
13594 (sparc_ravenscar_ops): Redefine.
13595 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13596 methods and destructor. Remove members.
13597 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13598 (ravenscar_thread_target::store_registers)
13599 (ravenscar_thread_target::prepare_to_store): Update.
13600 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13601 Remove.
13602 (struct ppc_ravenscar_powerpc_ops): Derive from
13603 ravenscar_arch_ops.
13604 (ppc_ravenscar_powerpc_ops::fetch_registers)
13605 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13606 (ppc_ravenscar_powerpc_ops): Redefine.
13607 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13608 (ppc_ravenscar_e500_ops::fetch_registers)
13609 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13610 (ppc_ravenscar_e500_ops): Redefine.
13611 * aarch64-ravenscar-thread.c
13612 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13613 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13614 (aarch64_ravenscar_fetch_registers)
13615 (aarch64_ravenscar_store_registers): Now methods.
13616 (aarch64_ravenscar_ops): Redefine.
13617
5b6ea500
TT
136182019-02-15 Tom Tromey <tromey@adacore.com>
13619
13620 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13621 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13622 (ravenscar_thread_target::stopped_by_watchpoint)
13623 (ravenscar_thread_target::stopped_data_address)
13624 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13625
e397fd39
TT
136262019-02-15 Tom Tromey <tromey@adacore.com>
13627
13628 * ravenscar-thread.c: Fix some typos.
13629
cc12f4a8
TT
136302019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13631 Tom Tromey <tromey@adacore.com>
13632
13633 * ada-lang.c (ada_exception_sal): Change addr_string to a
13634 std::string.
13635 (create_ada_exception_catchpoint): Update.
13636
5f486660
TT
136372019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13638 Tom Tromey <tromey@adacore.com>
13639
13640 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13641 (bp_location_ops): Remove.
13642 (base_breakpoint_allocate_location): Update.
13643 (free_bp_location): Update.
13644 * ada-lang.c (class ada_catchpoint_location)
13645 <ada_catchpoint_location>: Remove ops parameter.
13646 (ada_catchpoint_location_dtor): Remove.
13647 (ada_catchpoint_location_ops): Remove.
13648 (allocate_location_exception): Update.
13649 * breakpoint.h (struct bp_location_ops): Remove.
13650 (class bp_location) <bp_location>: Remove bp_location_ops
13651 parameter.
13652 <~bp_location>: Add destructor.
13653 <ops>: Remove.
13654
b671c7fb
TS
136552019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13656 Pedro Alves <palves@redhat.com>
13657
13658 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13659 'PATH_MAX'.
13660
8071c5ce
DM
136612019-02-14 David Michael <fedora.dm0@gmail.com>
13662 Samuel Thibault <samuel.thibault@gnu.org>
13663 Thomas Schwinge <thomas@codesourcery.com>
13664
13665 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13666 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13667
b1041ae0
TS
136682019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13669
924514e1
TS
13670 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13671 (check_empty): Use "const char *".
13672
c29ee8d4
TS
13673 * gnu-nat.c (gnu_nat_target::detach): Instead of
13674 'detach_inferior (pid)' call
13675 'detach_inferior (find_inferior_pid (pid))'.
13676
6c6ef69f
TS
13677 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13678 'nat/fork-inferior.o'.
13679 * gnu-nat.c: #include "nat/fork-inferior.h".
13680
2d0a338c
TS
13681 * gnu-nat.c (gnu_nat_target::detach): Instead of
13682 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13683 * gnu-nat.h: #include "inf-child.h".
13684 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13685 'i386_gnu_nat_target::fetch_registers'.
13686 (gnu_store_registers): Rename/move to
13687 'i386_gnu_nat_target::store_registers'.
13688
cabb5f06
TS
13689 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13690 * gnu-nat.h (mach_thread_info): New function.
13691 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13692
b1041ae0
TS
13693 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13694
2988d01e
KF
136952019-02-14 Frederic Konrad <konrad@adacore.com>
13696
13697 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13698
c559d709
JB
136992019-02-14 Joel Brobecker <brobecker@adacore.com>
13700
13701 * windows-nat.c (windows_add_thread): Add new parameter
13702 "main_thread_p" with default value set to false. Update
13703 function documentation as well as all callers.
13704 (windows_delete_thread): Likewise.
13705 (fake_create_process): Update call to windows_add_thread.
13706 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13707 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13708 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13709 call to windows_delete_thread.
13710
007024cc
SM
137112019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13712
13713 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13714
f62318e9
JB
137152019-02-12 John Baldwin <jhb@FreeBSD.org>
13716
13717 * symfile.c (find_separate_debug_file): Use canonical path of
13718 sysroot with child_path instead of gdb_sysroot if it is valid.
13719
cd4b7848
JB
137202019-02-12 John Baldwin <jhb@FreeBSD.org>
13721
13722 * symfile.c (find_separate_debug_file): Use child_path to
13723 determine if an object file is under a sysroot.
13724
efac4bfe
JB
137252019-02-12 John Baldwin <jhb@FreeBSD.org>
13726
13727 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13728 unittests/child-path-selftests.c.
13729 * common/pathstuff.c (child_path): New function.
13730 * common/pathstuff.h (child_path): New prototype.
13731 * unittests/child-path-selftests.c: New file.
13732
402d2bfe
JB
137332019-02-12 John Baldwin <jhb@FreeBSD.org>
13734
13735 * symfile.c (find_separate_debug_file): Look for separate debug
13736 files in debug directories under the sysroot.
13737
1ed9f74e
PW
137382019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13739
13740 * symtab.h (struct minimal_symbol data_p): New const method.
13741 (struct minimal_symbol text_p): Likewise.
13742 * symtab.c (output_source_filename): Use file name style
13743 to print file name.
13744 (print_symbol_info): Likewise.
13745 (print_msymbol_info): Use address style to print addresses.
13746 Use function name style to print executable text symbols.
13747 (expand_symtab_containing_pc): Use data_p.
13748 (find_pc_sect_compunit_symtab): Likewise.
13749
2636d81d
PW
137502019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13751
13752 * breakpoint.c (describe_other_breakpoints): Use address style
13753 to print addresses.
13754 (say_where): Likewise.
13755
ac8c53cc
PW
137562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13757
13758 * ada-typeprint.c (print_func_type): Print function name
13759 style to print function name.
13760 * c-typeprint.c (c_print_type_1): Likewise.
13761
ea638c43
AH
137622019-02-11 Alan Hayward <alan.hayward@arm.com>
13763
13764 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13765 for execve.
13766
ab759ca8
PW
137672019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13768
13769 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13770 type_stack.
13771
aff29d1c
JB
137722019-02-10 Joel Brobecker <brobecker@adacore.com>
13773
13774 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13775 TYPE_CODE_REF types.
13776
617126bc
JW
137772019-02-08 Jim Wilson <jimw@sifive.com>
13778
13779 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13780 (riscv_linux_fregset): New.
13781 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13782
46e3ed7f
TT
137832019-02-07 Tom Tromey <tom@tromey.com>
13784
13785 * thread.c (thread_cancel_execution_command): Update.
13786 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13787 methods.
13788 (struct thread_fsm_ops): Remove.
13789 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13790 (thread_fsm_should_stop, thread_fsm_return_value)
13791 (thread_fsm_set_finished, thread_fsm_finished_p)
13792 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13793 Don't declare.
13794 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13795 * infrun.c (clear_proceed_status_thread)
13796 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13797 (print_stop_event): Update.
13798 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13799 Add constructor.
13800 (step_command_fsm_ops): Remove.
13801 (new_step_command_fsm): Remove.
13802 (step_1): Update.
13803 (step_command_fsm::should_stop): Rename from
13804 step_command_fsm_should_stop.
13805 (step_command_fsm::clean_up): Rename from
13806 step_command_fsm_clean_up.
13807 (step_command_fsm::do_async_reply_reason): Rename from
13808 step_command_fsm_async_reply_reason.
13809 (struct until_next_fsm): Inherit from thread_fsm. Add
13810 constructor.
13811 (until_next_fsm_ops): Remove.
13812 (new_until_next_fsm): Remove.
13813 (until_next_fsm::should_stop): Rename from
13814 until_next_fsm_should_stop.
13815 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13816 (until_next_fsm::do_async_reply_reason): Rename from
13817 until_next_fsm_async_reply_reason.
13818 (struct finish_command_fsm): Inherit from thread_fsm. Add
13819 constructor. Change type of breakpoint.
13820 (finish_command_fsm_ops): Remove.
13821 (new_finish_command_fsm): Remove.
13822 (finish_command_fsm::should_stop): Rename from
13823 finish_command_fsm_should_stop.
13824 (finish_command_fsm::clean_up): Rename from
13825 finish_command_fsm_clean_up.
13826 (finish_command_fsm::return_value): Rename from
13827 finish_command_fsm_return_value.
13828 (finish_command_fsm::do_async_reply_reason): Rename from
13829 finish_command_fsm_async_reply_reason.
13830 (finish_command): Update.
13831 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13832 Add constructor.
13833 (call_thread_fsm_ops): Remove.
13834 (call_thread_fsm::call_thread_fsm): Rename from
13835 new_call_thread_fsm.
13836 (call_thread_fsm::should_stop): Rename from
13837 call_thread_fsm_should_stop.
13838 (call_thread_fsm::should_notify_stop): Rename from
13839 call_thread_fsm_should_notify_stop.
13840 (run_inferior_call, call_function_by_hand_dummy): Update.
13841 * cli/cli-interp.c (should_print_stop_to_console): Update.
13842 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13843 Add constructor. Change type of location_breakpoint,
13844 caller_breakpoint.
13845 (until_break_fsm_ops): Remove.
13846 (new_until_break_fsm): Remove.
13847 (until_break_fsm::should_stop): Rename from
13848 until_break_fsm_should_stop.
13849 (until_break_fsm::clean_up): Rename from
13850 until_break_fsm_clean_up.
13851 (until_break_fsm::do_async_reply_reason): Rename from
13852 until_break_fsm_async_reply_reason.
13853 (until_break_command): Update.
13854 * thread-fsm.c: Remove.
13855 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13856
1a5c2598
TT
138572019-02-07 Tom Tromey <tom@tromey.com>
13858
13859 * yy-remap.h: Add include guard.
13860 * xtensa-tdep.h: Add include guard.
13861 * xcoffread.h: Rename include guard.
13862 * varobj-iter.h: Add include guard.
13863 * tui/tui.h: Rename include guard.
13864 * tui/tui-winsource.h: Rename include guard.
13865 * tui/tui-wingeneral.h: Rename include guard.
13866 * tui/tui-windata.h: Rename include guard.
13867 * tui/tui-win.h: Rename include guard.
13868 * tui/tui-stack.h: Rename include guard.
13869 * tui/tui-source.h: Rename include guard.
13870 * tui/tui-regs.h: Rename include guard.
13871 * tui/tui-out.h: Rename include guard.
13872 * tui/tui-layout.h: Rename include guard.
13873 * tui/tui-io.h: Rename include guard.
13874 * tui/tui-hooks.h: Rename include guard.
13875 * tui/tui-file.h: Rename include guard.
13876 * tui/tui-disasm.h: Rename include guard.
13877 * tui/tui-data.h: Rename include guard.
13878 * tui/tui-command.h: Rename include guard.
13879 * tic6x-tdep.h: Add include guard.
13880 * target/waitstatus.h: Rename include guard.
13881 * target/wait.h: Rename include guard.
13882 * target/target.h: Rename include guard.
13883 * target/resume.h: Rename include guard.
13884 * target-float.h: Rename include guard.
13885 * stabsread.h: Add include guard.
13886 * rs6000-tdep.h: Add include guard.
13887 * riscv-fbsd-tdep.h: Add include guard.
13888 * regformats/regdef.h: Rename include guard.
13889 * record.h: Rename include guard.
13890 * python/python.h: Rename include guard.
13891 * python/python-internal.h: Rename include guard.
13892 * python/py-stopevent.h: Rename include guard.
13893 * python/py-ref.h: Rename include guard.
13894 * python/py-record.h: Rename include guard.
13895 * python/py-record-full.h: Rename include guard.
13896 * python/py-record-btrace.h: Rename include guard.
13897 * python/py-instruction.h: Rename include guard.
13898 * python/py-events.h: Rename include guard.
13899 * python/py-event.h: Rename include guard.
13900 * procfs.h: Add include guard.
13901 * proc-utils.h: Add include guard.
13902 * p-lang.h: Add include guard.
13903 * or1k-tdep.h: Rename include guard.
13904 * observable.h: Rename include guard.
13905 * nto-tdep.h: Rename include guard.
13906 * nat/x86-linux.h: Rename include guard.
13907 * nat/x86-linux-dregs.h: Rename include guard.
13908 * nat/x86-gcc-cpuid.h: Add include guard.
13909 * nat/x86-dregs.h: Rename include guard.
13910 * nat/x86-cpuid.h: Rename include guard.
13911 * nat/ppc-linux.h: Rename include guard.
13912 * nat/mips-linux-watch.h: Rename include guard.
13913 * nat/linux-waitpid.h: Rename include guard.
13914 * nat/linux-ptrace.h: Rename include guard.
13915 * nat/linux-procfs.h: Rename include guard.
13916 * nat/linux-osdata.h: Rename include guard.
13917 * nat/linux-nat.h: Rename include guard.
13918 * nat/linux-namespaces.h: Rename include guard.
13919 * nat/linux-btrace.h: Rename include guard.
13920 * nat/glibc_thread_db.h: Rename include guard.
13921 * nat/gdb_thread_db.h: Rename include guard.
13922 * nat/gdb_ptrace.h: Rename include guard.
13923 * nat/fork-inferior.h: Rename include guard.
13924 * nat/amd64-linux-siginfo.h: Rename include guard.
13925 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13926 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13927 * nat/aarch64-linux.h: Rename include guard.
13928 * nat/aarch64-linux-hw-point.h: Rename include guard.
13929 * mn10300-tdep.h: Add include guard.
13930 * mips-linux-tdep.h: Add include guard.
13931 * mi/mi-parse.h: Rename include guard.
13932 * mi/mi-out.h: Rename include guard.
13933 * mi/mi-main.h: Rename include guard.
13934 * mi/mi-interp.h: Rename include guard.
13935 * mi/mi-getopt.h: Rename include guard.
13936 * mi/mi-console.h: Rename include guard.
13937 * mi/mi-common.h: Rename include guard.
13938 * mi/mi-cmds.h: Rename include guard.
13939 * mi/mi-cmd-break.h: Rename include guard.
13940 * m2-lang.h: Add include guard.
13941 * location.h: Rename include guard.
13942 * linux-record.h: Rename include guard.
13943 * linux-nat.h: Add include guard.
13944 * linux-fork.h: Add include guard.
13945 * i386-darwin-tdep.h: Rename include guard.
13946 * hppa-linux-offsets.h: Add include guard.
13947 * guile/guile.h: Rename include guard.
13948 * guile/guile-internal.h: Rename include guard.
13949 * gnu-nat.h: Rename include guard.
13950 * gdb-stabs.h: Rename include guard.
13951 * frv-tdep.h: Add include guard.
13952 * f-lang.h: Add include guard.
13953 * event-loop.h: Add include guard.
13954 * darwin-nat.h: Rename include guard.
13955 * cp-abi.h: Rename include guard.
13956 * config/sparc/nm-sol2.h: Rename include guard.
13957 * config/nm-nto.h: Rename include guard.
13958 * config/nm-linux.h: Add include guard.
13959 * config/i386/nm-i386gnu.h: Rename include guard.
13960 * config/djgpp/nl_types.h: Rename include guard.
13961 * config/djgpp/langinfo.h: Rename include guard.
13962 * compile/gcc-cp-plugin.h: Add include guard.
13963 * compile/gcc-c-plugin.h: Add include guard.
13964 * compile/compile.h: Rename include guard.
13965 * compile/compile-object-run.h: Rename include guard.
13966 * compile/compile-object-load.h: Rename include guard.
13967 * compile/compile-internal.h: Rename include guard.
13968 * compile/compile-cplus.h: Rename include guard.
13969 * compile/compile-c.h: Rename include guard.
13970 * common/xml-utils.h: Rename include guard.
13971 * common/x86-xstate.h: Rename include guard.
13972 * common/version.h: Rename include guard.
13973 * common/vec.h: Rename include guard.
13974 * common/tdesc.h: Rename include guard.
13975 * common/selftest.h: Rename include guard.
13976 * common/scoped_restore.h: Rename include guard.
13977 * common/scoped_mmap.h: Rename include guard.
13978 * common/scoped_fd.h: Rename include guard.
13979 * common/safe-iterator.h: Rename include guard.
13980 * common/run-time-clock.h: Rename include guard.
13981 * common/refcounted-object.h: Rename include guard.
13982 * common/queue.h: Rename include guard.
13983 * common/ptid.h: Rename include guard.
13984 * common/print-utils.h: Rename include guard.
13985 * common/preprocessor.h: Rename include guard.
13986 * common/pathstuff.h: Rename include guard.
13987 * common/observable.h: Rename include guard.
13988 * common/netstuff.h: Rename include guard.
13989 * common/job-control.h: Rename include guard.
13990 * common/host-defs.h: Rename include guard.
13991 * common/gdb_wait.h: Rename include guard.
13992 * common/gdb_vecs.h: Rename include guard.
13993 * common/gdb_unlinker.h: Rename include guard.
13994 * common/gdb_unique_ptr.h: Rename include guard.
13995 * common/gdb_tilde_expand.h: Rename include guard.
13996 * common/gdb_sys_time.h: Rename include guard.
13997 * common/gdb_string_view.h: Rename include guard.
13998 * common/gdb_splay_tree.h: Rename include guard.
13999 * common/gdb_setjmp.h: Rename include guard.
14000 * common/gdb_ref_ptr.h: Rename include guard.
14001 * common/gdb_optional.h: Rename include guard.
14002 * common/gdb_locale.h: Rename include guard.
14003 * common/gdb_assert.h: Rename include guard.
14004 * common/filtered-iterator.h: Rename include guard.
14005 * common/filestuff.h: Rename include guard.
14006 * common/fileio.h: Rename include guard.
14007 * common/environ.h: Rename include guard.
14008 * common/common-utils.h: Rename include guard.
14009 * common/common-types.h: Rename include guard.
14010 * common/common-regcache.h: Rename include guard.
14011 * common/common-inferior.h: Rename include guard.
14012 * common/common-gdbthread.h: Rename include guard.
14013 * common/common-exceptions.h: Rename include guard.
14014 * common/common-defs.h: Rename include guard.
14015 * common/common-debug.h: Rename include guard.
14016 * common/cleanups.h: Rename include guard.
14017 * common/buffer.h: Rename include guard.
14018 * common/btrace-common.h: Rename include guard.
14019 * common/break-common.h: Rename include guard.
14020 * cli/cli-utils.h: Rename include guard.
14021 * cli/cli-style.h: Rename include guard.
14022 * cli/cli-setshow.h: Rename include guard.
14023 * cli/cli-script.h: Rename include guard.
14024 * cli/cli-interp.h: Rename include guard.
14025 * cli/cli-decode.h: Rename include guard.
14026 * cli/cli-cmds.h: Rename include guard.
14027 * charset-list.h: Add include guard.
14028 * buildsym-legacy.h: Rename include guard.
14029 * bfin-tdep.h: Add include guard.
14030 * ax.h: Rename include guard.
14031 * arm-linux-tdep.h: Add include guard.
14032 * arm-fbsd-tdep.h: Add include guard.
14033 * arch/xtensa.h: Rename include guard.
14034 * arch/tic6x.h: Add include guard.
14035 * arch/i386.h: Add include guard.
14036 * arch/arm.h: Rename include guard.
14037 * arch/arm-linux.h: Rename include guard.
14038 * arch/arm-get-next-pcs.h: Rename include guard.
14039 * arch/amd64.h: Add include guard.
14040 * arch/aarch64-insn.h: Rename include guard.
14041 * arch-utils.h: Rename include guard.
14042 * annotate.h: Add include guard.
14043 * amd64-darwin-tdep.h: Rename include guard.
14044 * aarch64-linux-tdep.h: Add include guard.
14045 * aarch64-fbsd-tdep.h: Add include guard.
14046 * aarch32-linux-nat.h: Add include guard.
14047
ab9268d2
PW
140482019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14049
14050 * macrotab.c (macro_define_internal): New function that
14051 factorizes macro_define_object_internal and macro_define_function
14052 code.
14053 (macro_define_object_internal): Use macro_define_internal.
14054 (macro_define_function): Likewise.
14055
bb0da2b4
PW
140562019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14057
14058 * macrocmd.c (extract_identifier): Return
14059 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14060 callers.
14061
424eb552
JB
140622019-02-06 John Baldwin <jhb@FreeBSD.org>
14063
14064 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14065
1688cb29
TT
140662019-02-05 Tom Tromey <tom@tromey.com>
14067
14068 * target.c (target_stack::unpush): Move assertion earlier.
14069
b5eba2d8
TT
140702019-01-30 Tom Tromey <tom@tromey.com>
14071
14072 PR python/23615:
14073 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14074 (gdbpy_parse_and_eval): Likewise.
14075 * python/python-internal.h (gdbpy_allow_threads): New class.
14076
7054e2ff
JB
140772019-01-28 John Baldwin <jhb@FreeBSD.org>
14078
14079 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14080 (aarch64_fbsd_fpregmap): Move earlier.
14081 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14082 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14083 instead of individual calls to trad_frame_set_reg_addr.
14084 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14085 earlier.
14086 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14087 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14088 instead of individual calls to trad_frame_set_reg_addr.
14089
36c25ffa
AH
140902019-01-28 Alan Hayward <alan.hayward@arm.com>
14091
14092 * CONTRIBUTE: Replace contribution list with wiki link.
14093
a0707f3c
TT
140942019-01-25 Tom Tromey <tom@tromey.com>
14095
14096 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14097
0747795c
TT
140982019-01-25 Tom Tromey <tom@tromey.com>
14099
14100 * xtensa-linux-nat.c: Fix common/ includes.
14101 * xml-support.h: Fix common/ includes.
14102 * xml-support.c: Fix common/ includes.
14103 * x86-linux-nat.c: Fix common/ includes.
14104 * windows-nat.c: Fix common/ includes.
14105 * varobj.h: Fix common/ includes.
14106 * varobj.c: Fix common/ includes.
14107 * value.c: Fix common/ includes.
14108 * valops.c: Fix common/ includes.
14109 * utils.c: Fix common/ includes.
14110 * unittests/xml-utils-selftests.c: Fix common/ includes.
14111 * unittests/utils-selftests.c: Fix common/ includes.
14112 * unittests/unpack-selftests.c: Fix common/ includes.
14113 * unittests/tracepoint-selftests.c: Fix common/ includes.
14114 * unittests/style-selftests.c: Fix common/ includes.
14115 * unittests/string_view-selftests.c: Fix common/ includes.
14116 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14117 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14118 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14119 * unittests/rsp-low-selftests.c: Fix common/ includes.
14120 * unittests/parse-connection-spec-selftests.c: Fix common/
14121 includes.
14122 * unittests/optional-selftests.c: Fix common/ includes.
14123 * unittests/offset-type-selftests.c: Fix common/ includes.
14124 * unittests/observable-selftests.c: Fix common/ includes.
14125 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14126 * unittests/memrange-selftests.c: Fix common/ includes.
14127 * unittests/memory-map-selftests.c: Fix common/ includes.
14128 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14129 * unittests/function-view-selftests.c: Fix common/ includes.
14130 * unittests/environ-selftests.c: Fix common/ includes.
14131 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14132 * unittests/common-utils-selftests.c: Fix common/ includes.
14133 * unittests/cli-utils-selftests.c: Fix common/ includes.
14134 * unittests/array-view-selftests.c: Fix common/ includes.
14135 * ui-file.c: Fix common/ includes.
14136 * tui/tui-io.c: Fix common/ includes.
14137 * tracepoint.h: Fix common/ includes.
14138 * tracepoint.c: Fix common/ includes.
14139 * tracefile-tfile.c: Fix common/ includes.
14140 * top.h: Fix common/ includes.
14141 * top.c: Fix common/ includes.
14142 * thread.c: Fix common/ includes.
14143 * target/waitstatus.h: Fix common/ includes.
14144 * target/waitstatus.c: Fix common/ includes.
14145 * target.h: Fix common/ includes.
14146 * target.c: Fix common/ includes.
14147 * target-memory.c: Fix common/ includes.
14148 * target-descriptions.c: Fix common/ includes.
14149 * symtab.h: Fix common/ includes.
14150 * symfile.c: Fix common/ includes.
14151 * stap-probe.c: Fix common/ includes.
14152 * spu-linux-nat.c: Fix common/ includes.
14153 * sparc-nat.c: Fix common/ includes.
14154 * source.c: Fix common/ includes.
14155 * solib.c: Fix common/ includes.
14156 * solib-target.c: Fix common/ includes.
14157 * ser-unix.c: Fix common/ includes.
14158 * ser-tcp.c: Fix common/ includes.
14159 * ser-pipe.c: Fix common/ includes.
14160 * ser-base.c: Fix common/ includes.
14161 * selftest-arch.c: Fix common/ includes.
14162 * s12z-tdep.c: Fix common/ includes.
14163 * rust-exp.y: Fix common/ includes.
14164 * rs6000-aix-tdep.c: Fix common/ includes.
14165 * riscv-tdep.c: Fix common/ includes.
14166 * remote.c: Fix common/ includes.
14167 * remote-notif.h: Fix common/ includes.
14168 * remote-fileio.h: Fix common/ includes.
14169 * remote-fileio.c: Fix common/ includes.
14170 * regcache.h: Fix common/ includes.
14171 * regcache.c: Fix common/ includes.
14172 * record-btrace.c: Fix common/ includes.
14173 * python/python.c: Fix common/ includes.
14174 * python/py-type.c: Fix common/ includes.
14175 * python/py-inferior.c: Fix common/ includes.
14176 * progspace.h: Fix common/ includes.
14177 * producer.c: Fix common/ includes.
14178 * procfs.c: Fix common/ includes.
14179 * proc-api.c: Fix common/ includes.
14180 * printcmd.c: Fix common/ includes.
14181 * ppc-linux-nat.c: Fix common/ includes.
14182 * parser-defs.h: Fix common/ includes.
14183 * osdata.c: Fix common/ includes.
14184 * obsd-nat.c: Fix common/ includes.
14185 * nat/x86-linux.c: Fix common/ includes.
14186 * nat/x86-linux-dregs.c: Fix common/ includes.
14187 * nat/x86-dregs.h: Fix common/ includes.
14188 * nat/x86-dregs.c: Fix common/ includes.
14189 * nat/ppc-linux.c: Fix common/ includes.
14190 * nat/mips-linux-watch.h: Fix common/ includes.
14191 * nat/mips-linux-watch.c: Fix common/ includes.
14192 * nat/linux-waitpid.c: Fix common/ includes.
14193 * nat/linux-ptrace.h: Fix common/ includes.
14194 * nat/linux-ptrace.c: Fix common/ includes.
14195 * nat/linux-procfs.c: Fix common/ includes.
14196 * nat/linux-personality.c: Fix common/ includes.
14197 * nat/linux-osdata.c: Fix common/ includes.
14198 * nat/linux-namespaces.c: Fix common/ includes.
14199 * nat/linux-btrace.h: Fix common/ includes.
14200 * nat/linux-btrace.c: Fix common/ includes.
14201 * nat/fork-inferior.c: Fix common/ includes.
14202 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14203 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14204 * nat/aarch64-linux.c: Fix common/ includes.
14205 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14206 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14207 * namespace.h: Fix common/ includes.
14208 * mips-linux-tdep.c: Fix common/ includes.
14209 * minsyms.c: Fix common/ includes.
14210 * mi/mi-parse.h: Fix common/ includes.
14211 * mi/mi-main.c: Fix common/ includes.
14212 * mi/mi-cmd-env.c: Fix common/ includes.
14213 * memrange.h: Fix common/ includes.
14214 * memattr.c: Fix common/ includes.
14215 * maint.h: Fix common/ includes.
14216 * maint.c: Fix common/ includes.
14217 * main.c: Fix common/ includes.
14218 * machoread.c: Fix common/ includes.
14219 * location.c: Fix common/ includes.
14220 * linux-thread-db.c: Fix common/ includes.
14221 * linux-nat.c: Fix common/ includes.
14222 * linux-fork.c: Fix common/ includes.
14223 * inline-frame.c: Fix common/ includes.
14224 * infrun.c: Fix common/ includes.
14225 * inflow.c: Fix common/ includes.
14226 * inferior.h: Fix common/ includes.
14227 * inferior.c: Fix common/ includes.
14228 * infcmd.c: Fix common/ includes.
14229 * inf-ptrace.c: Fix common/ includes.
14230 * inf-child.c: Fix common/ includes.
14231 * ia64-linux-nat.c: Fix common/ includes.
14232 * i387-tdep.c: Fix common/ includes.
14233 * i386-tdep.c: Fix common/ includes.
14234 * i386-linux-tdep.c: Fix common/ includes.
14235 * i386-linux-nat.c: Fix common/ includes.
14236 * i386-go32-tdep.c: Fix common/ includes.
14237 * i386-fbsd-tdep.c: Fix common/ includes.
14238 * i386-fbsd-nat.c: Fix common/ includes.
14239 * guile/scm-type.c: Fix common/ includes.
14240 * guile/guile.c: Fix common/ includes.
14241 * go32-nat.c: Fix common/ includes.
14242 * gnu-nat.c: Fix common/ includes.
14243 * gdbthread.h: Fix common/ includes.
14244 * gdbarch-selftests.c: Fix common/ includes.
14245 * gdb_usleep.c: Fix common/ includes.
14246 * gdb_select.h: Fix common/ includes.
14247 * gdb_bfd.c: Fix common/ includes.
14248 * gcore.c: Fix common/ includes.
14249 * fork-child.c: Fix common/ includes.
14250 * findvar.c: Fix common/ includes.
14251 * fbsd-nat.c: Fix common/ includes.
14252 * event-top.c: Fix common/ includes.
14253 * event-loop.c: Fix common/ includes.
14254 * dwarf2read.c: Fix common/ includes.
14255 * dwarf2loc.c: Fix common/ includes.
14256 * dwarf2-frame.c: Fix common/ includes.
14257 * dwarf-index-cache.c: Fix common/ includes.
14258 * dtrace-probe.c: Fix common/ includes.
14259 * disasm-selftests.c: Fix common/ includes.
14260 * defs.h: Fix common/ includes.
14261 * csky-tdep.c: Fix common/ includes.
14262 * cp-valprint.c: Fix common/ includes.
14263 * cp-support.h: Fix common/ includes.
14264 * cp-support.c: Fix common/ includes.
14265 * corelow.c: Fix common/ includes.
14266 * completer.h: Fix common/ includes.
14267 * completer.c: Fix common/ includes.
14268 * compile/compile.c: Fix common/ includes.
14269 * compile/compile-loc2c.c: Fix common/ includes.
14270 * compile/compile-cplus-types.c: Fix common/ includes.
14271 * compile/compile-cplus-symbols.c: Fix common/ includes.
14272 * command.h: Fix common/ includes.
14273 * cli/cli-dump.c: Fix common/ includes.
14274 * cli/cli-cmds.c: Fix common/ includes.
14275 * charset.c: Fix common/ includes.
14276 * build-id.c: Fix common/ includes.
14277 * btrace.h: Fix common/ includes.
14278 * btrace.c: Fix common/ includes.
14279 * breakpoint.h: Fix common/ includes.
14280 * breakpoint.c: Fix common/ includes.
14281 * ax.h:
14282 (enum agent_op): Fix common/ includes.
14283 * ax-general.c (struct aop_map): Fix common/ includes.
14284 * ax-gdb.c: Fix common/ includes.
14285 * auxv.c: Fix common/ includes.
14286 * auto-load.c: Fix common/ includes.
14287 * arm-tdep.c: Fix common/ includes.
14288 * arch/riscv.c: Fix common/ includes.
14289 * arch/ppc-linux-common.c: Fix common/ includes.
14290 * arch/i386.c: Fix common/ includes.
14291 * arch/arm.c: Fix common/ includes.
14292 * arch/arm-linux.c: Fix common/ includes.
14293 * arch/arm-get-next-pcs.c: Fix common/ includes.
14294 * arch/amd64.c: Fix common/ includes.
14295 * arch/aarch64.c: Fix common/ includes.
14296 * arch/aarch64-insn.c: Fix common/ includes.
14297 * arch-utils.c: Fix common/ includes.
14298 * amd64-windows-tdep.c: Fix common/ includes.
14299 * amd64-tdep.c: Fix common/ includes.
14300 * amd64-sol2-tdep.c: Fix common/ includes.
14301 * amd64-obsd-tdep.c: Fix common/ includes.
14302 * amd64-nbsd-tdep.c: Fix common/ includes.
14303 * amd64-linux-tdep.c: Fix common/ includes.
14304 * amd64-linux-nat.c: Fix common/ includes.
14305 * amd64-fbsd-tdep.c: Fix common/ includes.
14306 * amd64-fbsd-nat.c: Fix common/ includes.
14307 * amd64-dicos-tdep.c: Fix common/ includes.
14308 * amd64-darwin-tdep.c: Fix common/ includes.
14309 * agent.c: Fix common/ includes.
14310 * ada-lang.h: Fix common/ includes.
14311 * ada-lang.c: Fix common/ includes.
14312 * aarch64-tdep.c: Fix common/ includes.
14313
2f5c153e
TT
143142019-01-25 Tom Tromey <tom@tromey.com>
14315
14316 * common/create-version.sh: Use common/version.h.
14317
adc6a863
PA
143182019-01-24 Pedro Alves <palves@redhat.com>
14319
14320 * infrun.c (signal_stop, signal_print, signal_program)
14321 (signal_catch, signal_pass): Now arrays instead of pointers.
14322 (update_signals_program_target, do_target_resume)
14323 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14324 * linux-nat.c (linux_nat_target::pass_signals)
14325 (linux_nat_target::create_inferior, linux_nat_target::attach):
14326 Adjust.
14327 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14328 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14329 * procfs.c (procfs_target::pass_signals): Adjust.
14330 * record-full.c (record_full_target::resume): Adjust.
14331 * remote.c (remote_target::pass_signals)
14332 (remote_target::program_signals): Adjust.
14333 * target-debug.h (target_debug_print_signals): Now takes a
14334 gdb::array_view as parameter. Adjust.
14335 * target.h (target_ops) <pass_signals, program_signals>: Replace
14336 pointer and length parameters with gdb::array_view.
14337 (target_pass_signals, target_program_signals): Likewise.
14338 * target-delegates.c: Regenerate.
14339
3046d67a
PA
143402019-01-24 Pedro Alves <palves@redhat.com>
14341
14342 * common/forward-scope-exit.h
14343 (forward_scope_exit::forward_scope_exit): Pass arguments to
14344 m_bind_function directly, instead of creating a std::bind and
14345 copying that.
14346
353229bf
AH
143472019-01-24 Alan Hayward <alan.hayward@arm.com>
14348
14349 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14350 for static members.
14351 (pass_in_v_vfp_candidate): Likewise.
14352
311dc83a
TT
143532019-01-23 Tom Tromey <tom@tromey.com>
14354 Pedro Alves <palves@redhat.com>
14355
14356 * regcache.c (class regcache_invalidator): Remove.
14357 (regcache::raw_write): Use make_scope_exit.
14358
296bd123
TT
143592019-01-23 Tom Tromey <tom@tromey.com>
14360
14361 * ui-out.h (class ui_out_emit_type): Update comment.
14362
979a0d13
TT
143632019-01-23 Tom Tromey <tom@tromey.com>
14364
14365 * infrun.c (fetch_inferior_event): Update comment.
14366
d238133d
TT
143672019-01-23 Tom Tromey <tom@tromey.com>
14368 Pedro Alves <palves@redhat.com>
14369
14370 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14371 parameter.
14372 (fetch_inferior_event): Use SCOPE_EXIT.
14373
14374
9885e6bb
TT
143752019-01-23 Tom Tromey <tom@tromey.com>
14376 Pedro Alves <palves@redhat.com>
14377
14378 * infrun.c (disable_thread_events): Delete.
14379 (stop_all_threads): Use SCOPE_EXIT.
14380
286526c1
TT
143812019-01-23 Tom Tromey <tom@tromey.com>
14382 Pedro Alves <palves@redhat.com>
14383
14384 * symfile.c: Include forward-scope-exit.h.
14385 (clear_symtab_users_cleanup): Replace forward declaration with
14386 a FORWARD_SCOPE_EXIT.
14387 (syms_from_objfile_1): Use the forward_scope_exit and
14388 gdb::optional instead of cleanup_function.
14389 (reread_symbols): Use the forward_scope_exit instead of
14390 cleanup_function.
14391 (clear_symtab_users_cleanup): Remove function.
14392
1db93f14
TT
143932019-01-23 Tom Tromey <tom@tromey.com>
14394 Pedro Alves <palves@redhat.com>
14395
14396 * linux-nat.c: Include scope-exit.h.
14397 (cleanup_target_stop): Remove.
14398 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14399 SCOPE_EXIT.
14400
2cc83d1e
TT
144012019-01-23 Tom Tromey <tom@tromey.com>
14402 Pedro Alves <palves@redhat.com>
14403
14404 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14405 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14406
694c6bf5
TT
144072019-01-23 Tom Tromey <tom@tromey.com>
14408 Andrew Burgess <andrew.burgess@embecosm.com>
14409 Pedro Alves <palves@redhat.com>
14410
14411 * infrun.c (fetch_inferior_event): Use scope_exit.
14412 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14413 * top.c (execute_command): Use scope_exit.
14414 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14415 * utils.c (do_bpstat_clear_actions_cleanup)
14416 (make_bpstat_clear_actions_cleanup): Remove.
14417
4c41382a
TT
144182019-01-23 Tom Tromey <tom@tromey.com>
14419 Pedro Alves <palves@redhat.com>
14420
14421 * infrun.c: Include "common/scope-exit.h"
14422 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14423 (wait_for_inferior): Use SCOPE_EXIT.
14424 (fetch_inferior_event): Use scope_exit.
14425
89f8fb50
TT
144262019-01-23 Tom Tromey <tom@tromey.com>
14427 Pedro Alves <palves@redhat.com>
14428
14429 * breakpoint.c (create_breakpoint): Remove cleanup.
14430
5419bdae
TT
144312019-01-23 Tom Tromey <tom@tromey.com>
14432 Andrew Burgess <andrew.burgess@embecosm.com>
14433 Pedro Alves <palves@redhat.com>
14434
e587ef42
PA
144352019-01-23 Pedro Alves <palves@redhat.com>
14436
14437 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14438
77f0e74c
PA
144392019-01-23 Pedro Alves <palves@redhat.com>
14440 Andrew Burgess <andrew.burgess@embecosm.com>
14441
14442 * gdbthread.h: Include "common/forward-scope-exit.h".
14443 (scoped_finish_thread_state): Redefine custom class in terms of
14444 forward_scope_exit.
14445
5b9b3e53
PA
144462019-01-23 Pedro Alves <palves@redhat.com>
14447 Andrew Burgess <andrew.burgess@embecosm.com>
14448
14449 * common/forward-scope-exit.h: New file.
14450
54b65c9b
PA
144512019-01-23 Pedro Alves <palves@redhat.com>
14452 Andrew Burgess <andrew.burgess@embecosm.com>
14453 Tom Tromey <tom@tromey.com>
14454
14455 * common/scope-exit.h: New file.
14456
cf08fb29
PA
144572019-01-23 Pedro Alves <palves@redhat.com>
14458
14459 * common/preprocessor.h (ESC): Rename to ...
14460 (ESC_PARENS): ... this.
14461 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14462 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14463
ae73e2e2
TT
144642019-01-23 Tom Tromey <tom@tromey.com>
14465
14466 * language.h (class scoped_switch_to_sym_language_if_auto):
14467 Initialize m_lang in both cases.
14468
6594e122
AH
144692019-01-23 Alan Hayward <alan.hayward@arm.com>
14470
14471 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14472 with XCNEW.
14473
a7c9855d
TT
144742019-01-22 Tom Tromey <tom@tromey.com>
14475
14476 * corelow.c: Do not include sys/file.h.
14477
93cc1d53
TT
144782019-01-22 Tom Tromey <tom@tromey.com>
14479
14480 * tui/tui-wingeneral.h: Include gdb_curses.h.
14481
38561778
TT
144822019-01-22 Tom Tromey <tom@tromey.com>
14483
14484 * source-cache.h (class source_cache) <get_source_lines,
14485 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14486
37b3ab5b
TT
144872019-01-22 Tom Tromey <tom@tromey.com>
14488
14489 * remote-fileio.h (struct remote_target): Declare.
14490
3fabc016
TT
144912019-01-22 Tom Tromey <tom@tromey.com>
14492
14493 * python/py-arch.c: Do not include py-ref.h.
14494 * python/py-bpevent.c: Do not include py-ref.h.
14495 * python/py-cmd.c: Do not include py-ref.h.
14496 * python/py-continueevent.c: Do not include py-ref.h.
14497 * python/py-event.h: Do not include py-ref.h.
14498 * python/py-evtregistry.c: Do not include py-ref.h.
14499 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14500 * python/py-frame.c: Do not include py-ref.h.
14501 * python/py-framefilter.c: Do not include py-ref.h.
14502 * python/py-function.c: Do not include py-ref.h.
14503 * python/py-infevents.c: Do not include py-ref.h.
14504 * python/py-linetable.c: Do not include py-ref.h.
14505 * python/py-objfile.c: Do not include py-ref.h.
14506 * python/py-param.c: Do not include py-ref.h.
14507 * python/py-prettyprint.c: Do not include py-ref.h.
14508 * python/py-progspace.c: Do not include py-ref.h.
14509 * python/py-symbol.c: Do not include py-ref.h.
14510 * python/py-symtab.c: Do not include py-ref.h.
14511 * python/py-type.c: Do not include py-ref.h.
14512 * python/py-unwind.c: Do not include py-ref.h.
14513 * python/py-utils.c: Do not include py-ref.h.
14514 * python/py-value.c: Do not include py-ref.h.
14515 * python/py-varobj.c: Do not include py-ref.h.
14516 * python/py-xmethods.c: Do not include py-ref.h.
14517 * python/python.c: Do not include py-ref.h.
14518 * varobj.c: Do not include py-ref.h.
14519
6b4d7774
TT
145202019-01-22 Tom Tromey <tom@tromey.com>
14521
14522 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14523 keyword for bcache.
14524
7af7e9b5
TT
145252019-01-22 Tom Tromey <tom@tromey.com>
14526
14527 * compile/compile-cplus-types.c: Remove a comment by #include.
14528
951d1049
TT
145292019-01-22 Tom Tromey <tom@tromey.com>
14530
14531 * compile/gcc-c-plugin.h: Include compile-internal.h.
14532
d65d5705
TT
145332019-01-22 Tom Tromey <tom@tromey.com>
14534
14535 * stabsread.c (EXTERN): Do not define.
14536 (symnum, next_symbol_text_func, processing_gcc_compilation)
14537 (within_function, global_sym_chain, global_stabs)
14538 (previous_stab_code, this_object_header_files)
14539 (n_this_object_header_files)
14540 (n_allocated_this_object_header_files): Define.
14541 * stabsread.h (EXTERN): Never define. Use "extern".
14542
b6fb1ee5
PW
145432019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14544
14545 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14546 history_value.
14547
be6d4f74
TT
145482019-01-21 Tom Tromey <tom@tromey.com>
14549
14550 * ui-out.c: Fix includes.
14551 * tui/tui-source.c: Fix includes.
14552 * target.c: Fix includes.
14553 * remote.c: Fix includes.
14554 * regcache.c: Fix includes.
14555 * python/py-block.c: Fix includes.
14556 * printcmd.c: Fix includes.
14557 * or1k-tdep.c: Fix includes.
14558 * mi/mi-main.c: Fix includes.
14559 * m32r-tdep.c: Fix includes.
14560 * csky-tdep.c: Fix includes.
14561 * compile/compile-cplus-types.c: Fix includes.
14562 * cli/cli-interp.c: Fix includes.
14563
73021deb
AH
145642019-01-21 Alan Hayward <alan.hayward@arm.com>
14565
14566 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14567 for padding.
14568
7932255d
TT
145692019-01-16 Tom Tromey <tom@tromey.com>
14570
14571 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14572 earlier.
14573 (struct objfile) <msymbols_range>: Move from top level.
14574 <msymbols>: New method.
14575 (class objfile_msymbols): Remove.
14576 * symtab.c (default_collect_symbol_completion_matches_break_on):
14577 Update.
14578 * symmisc.c (dump_msymbols): Update.
14579 * stabsread.c (scan_file_globals): Update.
14580 * objc-lang.c (info_selectors_command, info_classes_command)
14581 (find_methods): Update.
14582 * minsyms.c (find_solib_trampoline_target): Update.
14583 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14584 * coffread.c (coff_symfile_read): Update.
14585 * ada-lang.c (ada_lookup_simple_minsym)
14586 (ada_collect_symbol_completion_matches): Update.
14587
604b1bfb
TT
145882019-01-16 Tom Tromey <tom@tromey.com>
14589
14590 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14591 type. Remove no-argument constructor.
14592 <iterator::operator++>: Simplify.
14593 <begin>: Update.
14594 <end>: Use minimal_symbol_count.
14595
f252c6d5
TT
145962019-01-16 Tom Tromey <tom@tromey.com>
14597
14598 * objfiles.h (struct objfile) <psymtabs>: New method.
14599 (class objfile_psymtabs): Remove.
14600 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14601 typedef.
14602 <range>: New method.
14603 (require_partial_symbols): Change return type.
14604 * psymtab.c (require_partial_symbols)
14605 (psym_expand_symtabs_matching): Update.
14606 * mdebugread.c (parse_partial_symbols): Update.
14607 * dbxread.c (dbx_end_psymtab): Update.
14608
b669c953
TT
146092019-01-15 Tom Tromey <tom@tromey.com>
14610
14611 * symtab.c (lookup_objfile_from_block)
14612 (lookup_symbol_in_objfile_symtabs)
14613 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14614 (find_line_symtab, info_sources_command)
14615 (default_collect_symbol_completion_matches_break_on)
14616 (make_source_files_completion_list): Update.
14617 * symmisc.c (print_objfile_statistics, dump_objfile)
14618 (maintenance_print_symbols, maintenance_info_symtabs)
14619 (maintenance_check_symtabs, maintenance_info_line_tables):
14620 Update.
14621 * source.c (select_source_symtab)
14622 (forget_cached_source_info_for_objfile): Update.
14623 * objfiles.h (class objfile_compunits): Remove.
14624 (struct objfile) <compunits_range>: New typedef.
14625 (compunits): New method.
14626 * objfiles.c (objfile_relocate1): Update.
14627 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14628 * maint.c (count_symtabs_and_blocks): Update.
14629 * linespec.c (iterate_over_all_matching_symtabs): Update.
14630 * cp-support.c (add_symbol_overload_list_qualified): Update.
14631 * coffread.c (coff_symtab_read): Update.
14632 * ada-lang.c (add_nonlocal_symbols)
14633 (ada_collect_symbol_completion_matches)
14634 (ada_add_global_exceptions): Update.
14635
7e955d83
TT
146362019-01-15 Tom Tromey <tom@tromey.com>
14637
14638 * progspace.h (program_space) <objfiles_safe_range>: New
14639 typedef.
14640 <objfiles_safe>: New method.
14641 * objfiles.h (class all_objfiles_safe): Remove.
14642 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14643 * jit.c (jit_inferior_exit_hook): Update.
14644
2030c079
TT
146452019-01-17 Tom Tromey <tom@tromey.com>
14646
14647 * progspace.h (program_space) <objfiles_range>: New typedef.
14648 <objfiles>: New method.
14649 <objfiles_head>: Rename from objfiles.
14650 (object_files): Update.
14651 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14652 * guile/scm-pretty-print.c
14653 (ppscm_find_pretty_printer_from_objfiles): Update.
14654 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14655 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14656 Update.
14657 * python/py-progspace.c (pspy_get_objfiles): Update.
14658 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14659 Update.
14660 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14661 (objfpy_lookup_objfile_by_build_id): Update.
14662 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14663 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14664 Update.
14665 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14666 (expand_symtab_containing_pc, lookup_objfile_from_block)
14667 (lookup_static_symbol, basic_lookup_transparent_type)
14668 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14669 (find_line_symtab, info_sources_command)
14670 (default_collect_symbol_completion_matches_break_on)
14671 (make_source_files_completion_list, find_main_name): Update.
14672 * symmisc.c (print_symbol_bcache_statistics)
14673 (print_objfile_statistics, maintenance_print_symbols)
14674 (maintenance_print_msymbols, maintenance_print_objfiles)
14675 (maintenance_info_symtabs, maintenance_check_symtabs)
14676 (maintenance_expand_symtabs, maintenance_info_line_tables):
14677 Update.
14678 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14679 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14680 (map_overlay_command, unmap_overlay_command)
14681 (simple_overlay_update, expand_symtabs_matching)
14682 (map_symbol_filenames): Update.
14683 * symfile-debug.c (set_debug_symfile): Update.
14684 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14685 Update.
14686 * source.c (select_source_symtab, forget_cached_source_info):
14687 Update.
14688 * solib.c (solib_read_symbols): Update.
14689 * solib-spu.c (append_ocl_sos): Update.
14690 * psymtab.c (maintenance_print_psymbols)
14691 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14692 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14693 * printcmd.c (info_symbol_command): Update.
14694 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14695 Update.
14696 * objfiles.h (class all_objfiles): Remove.
14697 * objfiles.c (have_partial_symbols, have_full_symbols)
14698 (have_minimal_symbols, qsort_cmp, update_section_map)
14699 (shared_objfile_contains_address_p)
14700 (default_iterate_over_objfiles_in_search_order): Update.
14701 * objc-lang.c (info_selectors_command, info_classes_command)
14702 (find_methods): Update.
14703 * minsyms.c (find_solib_trampoline_target): Update.
14704 * maint.c (maintenance_info_sections)
14705 (maintenance_translate_address, count_symtabs_and_blocks):
14706 Update.
14707 * main.c (captured_main_1): Update.
14708 * linux-thread-db.c (try_thread_db_load_from_pdir)
14709 (has_libpthread): Update.
14710 * linespec.c (iterate_over_all_matching_symtabs)
14711 (search_minsyms_for_name): Update.
14712 * jit.c (jit_find_objf_with_entry_addr): Update.
14713 * hppa-tdep.c (find_unwind_entry)
14714 (hppa_lookup_stub_minimal_symbol): Update.
14715 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14716 Update.
14717 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14718 (elf_gnu_ifunc_resolve_by_got): Update.
14719 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14720 * dwarf-index-write.c (save_gdb_index_command): Update.
14721 * cp-support.c (add_symbol_overload_list_qualified): Update.
14722 * breakpoint.c (create_overlay_event_breakpoint)
14723 (create_longjmp_master_breakpoint)
14724 (create_std_terminate_master_breakpoint)
14725 (create_exception_master_breakpoint): Update.
14726 * blockframe.c (find_pc_partial_function): Update.
14727 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14728 (ada_collect_symbol_completion_matches)
14729 (ada_add_global_exceptions): Update.
14730
776489e0
TT
147312019-01-17 Tom Tromey <tom@tromey.com>
14732
14733 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14734 declare VEC.
14735 (solib_target_parse_libraries): Change return type.
14736 (library_list_start_segment, library_list_start_section)
14737 (library_list_end_library, library_list_start_library); Update.
14738 (solib_target_free_library_list): Remove.
14739 (solib_target_parse_libraries): Remove cleanup. Change return
14740 type.
14741 (solib_target_current_sos): Update.
14742
6471e7d2
TT
147432019-01-17 Tom Tromey <tromey@bapiya>
14744
14745 * valprint.c: Replace "the the" with "the".
14746 * symtab.c: Replace "the the" with "the".
14747 * solib.c: Replace "the the" with "the".
14748 * solib-dsbt.c: Replace "the the" with "the".
14749 * linespec.c: Replace "the the" with "the".
14750 * dwarf2loc.h: Replace "the the" with "the".
14751 * amd64-windows-tdep.c: Replace "the the" with "the".
14752 * aarch64-tdep.c: Replace "the the" with "the".
14753
c24bdb02
KS
147542019-01-16 Keith Seitz <keiths@redhat.com>
14755
14756 PR gdb/23773
14757 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14758 <builder>: Rename to ..
14759 <m_builder>: ... this and make private.
14760 (dwarf2_cu::get_builder): New method. Change all users of
14761 `builder' to use this method.
14762 (dwarf2_start_symtab): Move to ...
14763 (dwarf2_cu::start_symtab): ... here. Update all callers
14764 (setup_type_unit_groups): Move to ...
14765 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14766 callers.
14767 (dwarf2_cu::reset_builder): New method.
14768 (process_full_compunit, process_full_type_unit): Use
14769 dwarf2_cu::reset_builder.
14770 (follow_die_offset): Record the ancestor CU if it is different
14771 from the followed DIE's CU.
14772 (follow_die_sig_1): Likewise.
14773
8d64371b
TT
147742019-01-15 Tom Tromey <tom@tromey.com>
14775
14776 * remote.c (class remote_state) <buf>: Now a char_vector.
14777 <buf_size>: Remove.
14778 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14779 parameter.
14780 (remote_target::getpkt_or_notif_sane_1)
14781 (remote_target::getpkt_sane)
14782 (remote_target::getpkt_or_notif_sane): Likewise.
14783 (class remote_target) <putpkt>: New overload.
14784 (remote_target::read_frame): Change type of "buf_p". Remove
14785 sizeof_p parameter.
14786 (packet_ok): New overload.
14787 (packet_check_result): New overload.
14788 Update all uses.
14789
bb277751
TT
147902019-01-14 Tom Tromey <tom@tromey.com>
14791
14792 * remote-notif.c (handle_notification, remote_notif_ack)
14793 (remote_notif_parse): Make "buf" const.
14794 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14795 const.
14796 (remote_notif_parse, remote_notif_ack, handle_notification):
14797 Likewise.
14798 * remote.c (remote_notif_stop_parse): Make "buf" const.
14799 (remote_target::remote_parse_stop_reply): Make "buf" const.
14800 (remote_notif_stop_ack): Make "buf" const.
14801
05be00a8
TT
148022019-01-14 Tom Tromey <tom@tromey.com>
14803
14804 * remote.c (remote_console_output): Make parameter const.
14805
491adeca
TT
148062019-01-14 Tom Tromey <tom@tromey.com>
14807
14808 * target-debug.h (target_debug_print_signals): Constify.
14809 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14810 * procfs.c (procfs_target::pass_signals): Update.
14811 * linux-nat.c (linux_nat_target::pass_signals): Update.
14812 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14813 * target-delegates.c: Rebuild.
14814 * remote.c (remote_target::program_signals): Update.
14815 (remote_target::pass_signals): Update.
14816 * target.c (target_pass_signals): Constify argument.
14817 (target_program_signals): Likewise.
14818 * target.h (struct target_ops) <pass_signals, program_signals>:
14819 Constify argument.
14820 (target_pass_signals, target_program_signals): Constify argument.
14821
bbd94648
TT
148222019-01-14 Tom Tromey <tom@tromey.com>
14823
14824 PR tui/28819:
14825 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14826
6f072a10
PFC
148272019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14828
14829 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14830 field.
14831 * rs6000-tdep.c: Include reggroups.h.
14832 (IS_V_ALIAS_PSEUDOREG): Define.
14833 (rs6000_register_name): Return names for the "vX" aliases.
14834 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14835 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14836 aliases. Call default_register_reggroup_p for all other
14837 pseudo-registers.
14838 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14839 New functions.
14840 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14841 Handle "vX" aliases.
14842 (v_alias_pseudo_register_collect): New function.
14843 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14844 (rs6000_gdbarch_init): Initialize "vX" aliases as
14845 pseudo-registers. Restore registration of
14846 rs6000_pseudo_register_reggroup_p with
14847 set_tdesc_pseudo_register_reggroup_p.
14848
1a782351
MF
148492019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14850
14851 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14852 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14853 set_gdbarch_num_pseudo_regs.
14854
d73cff18
PW
148552019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14856
14857 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14858 Remove arg prefixname, add do_set and do_show.
14859 Add member functions set_list and show_list.
14860 * cli/cli-style.c (class cli_style_option): Update accordingly.
14861 (style_set_list): Move to file scope.
14862 (style_show_list): Likewise.
14863 (set_style): Call help_list.
14864 (show_style): Call cmd_show_list.
14865 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14866 Update to use the new macro.
14867
60a90376
JB
148682019-10-12 Joel Brobecker <brobecker@adacore.com>
14869
14870 * ada-lang.c (_initialize_ada_language): Expand the help text
14871 for the "catch exception" command.
14872
9d7c67bf
PW
148732019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14874
14875 * symtab.c (matching_obj_sections): Initialize obj,
14876 declare it closer to its usage.
14877
7cf47dc4
TT
148782019-01-10 Tom Tromey <tom@tromey.com>
14879
14880 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14881 (basic_inf_threads_range): Remove.
14882 (inf_threads_range, inf_non_exited_threads_range)
14883 (safe_inf_threads_range): Use next_adapter.
14884
d3cb6808
KS
148852019-01-10 Keith Seitz <keiths@redhat.com>
14886
14887 PR gdb/23712
14888 PR symtab/23010
14889 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14890 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14891
63a20375
KS
148922019-01-10 Keith Seitz <keiths@redhat.com>
14893
14894 PR gdb/23712
14895 PR symtab/23010
14896 * dictionary.c (pending_to_vector): Remove.
14897 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14898 Remove _1 suffix, replacing functions of the same name. Update
14899 all callers.
14900 (dict_create_hashed, dict_create_hashed_expandable)
14901 (dict_create_linear, dict_create_linear_expandable, dict_free)
14902 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14903 Make functions static.
14904
b026f593
KS
149052019-01-10 Keith Seitz <keiths@redhat.com>
14906
14907 PR gdb/23712
14908 PR symtab/23010
14909 * dictionary.h (struct dictionary): Replace declaration with
14910 multidictionary.
14911 (dict_create_hashed, dict_create_hashed_expandable)
14912 (dict_create_linear, dict_create_linear_expandable)
14913 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14914 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14915 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14916 taking multidictionary argument.
14917 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14918 * block.h (struct block) <dict>: Change to multidictionary
14919 and rename `multidict'.
14920 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14921 symmisc.c: Update all dictionary references to multidictionary.
14922
c7748ee9
KS
149232019-01-10 Keith Seitz <keiths@redhat.com>
14924
14925 PR gdb/23712
14926 PR symtab/23010
14927 * dictionary.c: Include unordered_map.
14928 (pending_to_vector): New function.
14929 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14930 Rewrite the non-"_1" functions to take vector instead
14931 of linked list.
14932 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14933 "new" _1 versions of the same name.
14934 (multidictionary): Define.
14935 (std::hash<enum language): New definition.
14936 (collate_pending_symbols_by_language, mdict_create_hashed)
14937 (mdict_create_hashed_expandable, mdict_create_linear)
14938 (mdict_create_linear_expandable, mdict_free)
14939 (find_language_dictionary, create_new_language_dictionary)
14940 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14941 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14942 (mdict_size, mdict_empty): New functions.
14943 * dictionary.h (mdict_iterator): Define.
14944
67aa1f3c
PA
149452019-01-10 Pedro Alves <palves@redhat.com>
14946
14947 * breakpoint.c (read_uploaded_action)
14948 (create_tracepoint_from_upload): Adjust to use
14949 gdb::unique_xmalloc_ptr.
14950 * ctf.c (ctf_write_uploaded_tp):
14951 (SET_ARRAY_FIELD): Use emplace_back.
14952 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14953 * tracefile-tfile.c (tfile_write_uploaded_tp):
14954 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14955 gdb::unique_xmalloc_ptr.
14956 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14957 at_string, cond_string, cmd_strings>: Replace char pointers
14958 with gdb::unique_xmalloc_ptr.
14959
2f667667
PA
149602019-01-10 Pedro Alves <palves@redhat.com>
14961
14962 * solib-target.c (library_list_start_library): Don't xstrdup name.
14963
36cb7237
PA
149642019-01-10 Pedro Alves <palves@redhat.com>
14965
14966 * mdebugread.c (parse_partial_symbols): Use
14967 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14968
da584958
AB
149692019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14970
14971 * linux-fork.c (scoped_switch_fork_info)
14972 <~scoped_switch_fork_info>: Fix incorrect variable name.
14973
1ef8573c
AB
149742019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14975
14976 * linux-fork.c (scoped_switch_fork_info)
14977 <scoped_switch_fork_info>: Make explicit.
14978 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14979
8d7bcccb
TT
149802019-01-10 Tom Tromey <tom@tromey.com>
14981
14982 * objfiles.h (objfile::reset_psymtabs): Update.
14983 * objfiles.c (objfile::objfile): Update.
14984 * psymtab.h (psymtab_storage::obstack): Update.
14985 (psymtab_storage::m_obstack): Use gdb::optional.
14986 (class psymtab_storage): Update comment. Remove objfile
14987 parameter.
14988 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14989
b596a3c7
TT
149902019-01-10 Tom Tromey <tom@tromey.com>
14991
14992 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14993 <free_psymtabs>: Now private.
14994 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14995 (allocate_psymtab): Use new method.
14996
a9342b62
TT
149972019-01-10 Tom Tromey <tom@tromey.com>
14998
14999 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15000 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15001 * mdebugread.c (parse_partial_symbols): Use
15002 allocate_dependencies.
15003 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15004 allocate_dependencies.
15005 (process_psymtab_comp_unit_reader)
15006 (build_type_psymtab_dependencies): Likewise.
15007 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15008
5af70966
TT
150092019-01-10 Tom Tromey <tom@tromey.com>
15010
15011 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15012 PSYMBOL_SET_LANGUAGE.
15013 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15014
5923a04c
TT
150152019-01-10 Tom Tromey <tom@tromey.com>
15016
15017 * psymtab.h (psymtab_storage::obstack): New method.
15018 <m_obstack>: Rename from obstack; now private.
15019 * psymtab.c (psymtab_storage): Update.
15020 * dwarf2read.c (create_addrmap_from_index)
15021 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15022 Update.
15023
6d6a12bf
TT
150242019-01-10 Tom Tromey <tom@tromey.com>
15025
15026 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15027 * objfiles.h (objfile::reset_psymtabs): New method.
15028
d320c2b5
TT
150292019-01-10 Tom Tromey <tom@tromey.com>
15030
15031 * symmisc.c (print_symbol_bcache_statistics): Update.
15032 (print_objfile_statistics): Update.
15033 * symfile.c (reread_symbols): Update.
15034 * psymtab.h (class psymtab_storage): New.
15035 * psymtab.c (psymtab_storage): New constructor.
15036 (~psymtab_storage): New destructor.
15037 (require_partial_symbols): Update.
15038 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15039 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15040 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15041 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15042 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15043 (start_psymtab_common, end_psymtab_common)
15044 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15045 (allocate_psymtab): Update.
15046 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15047 Update.
15048 (dump_psymtab_addrmap, maintenance_print_psymbols)
15049 (maintenance_check_psymtabs): Update.
15050 (class objfile_psymtabs): Move to objfiles.h.
15051 * psympriv.h (discard_psymtab): Now inline.
15052 (psymtab_discarder::psymtab_discarder): Update.
15053 (psymtab_discarder::~psymtab_discarder): Update.
15054 (ALL_OBJFILE_PSYMTABS): Rewrite.
15055 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15056 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15057 Remove fields.
15058 <partial_symtabs>: New field.
15059 (class objfile_psymtabs): Move from psymtab.h. Update.
15060 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15061 psymbol_cache.
15062 (objfile::~objfile): Don't destroy psymbol_cache.
15063 * mdebugread.c (parse_partial_symbols): Update.
15064 * dwarf2read.c (create_addrmap_from_index)
15065 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15066 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15067 (add_partial_subprogram, dwarf2_ranges_read): Update.
15068 * dwarf-index-write.c (write_address_map)
15069 (write_one_signatured_type, recursively_write_psymbols)
15070 (class debug_names, class debug_names, write_psymtabs_to_index):
15071 Update.
15072
1d94a5a3
TT
150732019-01-10 Tom Tromey <tom@tromey.com>
15074
15075 * symtab.h (SYMBOL_SET_NAMES): Update.
15076 (symbol_set_names): Update.
15077 (MSYMBOL_SET_NAMES): Update.
15078 * symtab.c (symbol_set_names): Change argument to be an
15079 objfile_per_bfd_storage.
15080 * psymtab.c (add_psymbol_to_bcache): Update.
15081 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15082
0f14768a
TT
150832019-01-10 Tom Tromey <tom@tromey.com>
15084
15085 * symtab.c (create_demangled_names_hash): Change argument to be an
15086 objfile_per_bfd_storage.
15087 (symbol_set_names): Update.
15088
6eee24ce
TT
150892019-01-10 Tom Tromey <tom@tromey.com>
15090
15091 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15092 init_psymbol_list.
15093 * psymtab.c (init_psymbol_list): Do nothing if already called.
15094 * psympriv.h (init_psymbol_list): Add comment.
15095 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15096 init_psymbol_list.
15097 * dbxread.c (dbx_symfile_read): Unconditionally call
15098 init_psymbol_list.
15099
75aedd27
TT
151002019-01-10 Tom Tromey <tom@tromey.com>
15101
15102 * xcoffread.c (scan_xcoff_symtab): Update.
15103 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15104 "where".
15105 * mdebugread.c (parse_partial_symbols)
15106 (handle_psymbol_enumerators): Update.
15107 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15108 * dbxread.c (read_dbx_symtab): Update.
15109 * psympriv.h (psymbol_placement): New enum.
15110 (add_psymbol_to_list): Update.
15111
939652a5
TT
151122019-01-10 Tom Tromey <tom@tromey.com>
15113
15114 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15115 static_psymbols parameters.
15116 (scan_xcoff_symtab): Update.
15117 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15118 static_psymbols parameters.
15119 * psympriv.h (start_psymtab_common): Update.
15120 * mdebugread.c (parse_partial_symbols): Update.
15121 * dwarf2read.c (create_partial_symtab): Update.
15122 * dbxread.c (read_dbx_symtab): Update.
15123 (start_psymtab): Remove global_psymbols and static_psymbols
15124 parameters.
15125
baa62830
TT
151262019-01-10 Tom Tromey <tom@tromey.com>
15127
15128 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15129 * psymtab.c (allocate_psymtab): Add comment.
15130 * psympriv.h (allocate_psymtab): Add comment.
15131 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15132 initializations.
15133 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15134
0e8f53ba
TT
151352019-01-10 Tom Tromey <tom@tromey.com>
15136
15137 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15138 Don't declare.
15139 * mipsread.c: Include mdebugread.h.
15140 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15141 Declare.
15142 * elfread.c: Include mdebugread.h.
15143
b22a7c6a
TT
151442019-01-09 Tom Tromey <tom@tromey.com>
15145
15146 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15147 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15148 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15149 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15150 (psym_lookup_symbol, psym_find_last_source_symtab)
15151 (psym_forget_cached_source_info, psym_print_stats)
15152 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15153 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15154 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15155 (psym_find_compunit_symtab_by_address)
15156 (maintenance_print_psymbols, maintenance_info_psymtabs)
15157 (maintenance_check_psymtabs): Use ranged for.
15158 * psymtab.h (class objfile_psymtabs): New.
15159 (require_partial_symbols): Return objfile_psymtabs.
15160 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15161
3b9d3ac2
TT
151622019-01-09 Tom Tromey <tom@tromey.com>
15163
15164 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15165 (find_pc_mapped_section, list_overlays_command)
15166 (map_overlay_command, unmap_overlay_command)
15167 (simple_overlay_update): Use all_objfiles.
15168 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15169 * printcmd.c (info_symbol_command): Use all_objfiles.
15170 * objfiles.h (ALL_OBJSECTIONS): Remove.
15171 * maint.c (maintenance_translate_address): Use all_objfiles.
15172 * gcore.c (gcore_create_callback): Use all_objfiles.
15173 (objfile_find_memory_regions): Likewise.
15174
8b31193a
TT
151752019-01-09 Tom Tromey <tom@tromey.com>
15176
15177 * symtab.c (find_line_symtab, info_sources_command)
15178 (make_source_files_completion_list): Use objfile_compunits.
15179 * source.c (select_source_symtab): Use objfile_compunits.
15180 * objfiles.h (struct objfile): Update comment.
15181 (ALL_OBJFILES): Remove.
15182 (ALL_FILETABS): Remove.
15183 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15184 objfile_compunits.
15185
d5da8b3c
TT
151862019-01-09 Tom Tromey <tom@tromey.com>
15187
15188 * symmisc.c (print_objfile_statistics, dump_objfile)
15189 (maintenance_print_symbols): Use compunit_filetabs.
15190 * source.c (forget_cached_source_info_for_objfile): Use
15191 compunit_filetabs.
15192 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15193 (ALL_FILETABS): Use compunit_filetabs.
15194 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15195 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15196
5accd1a0
TT
151972019-01-09 Tom Tromey <tom@tromey.com>
15198
15199 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15200 (compunit_filetabs): New.
15201 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15202 compunit_filetabs.
15203 (info_sources_command, make_source_files_completion_list): Remove
15204 declaration.
15205 * symmisc.c (print_objfile_statistics, dump_objfile)
15206 (maintenance_print_symbols): Remove declaration.
15207 (maintenance_info_symtabs): Use compunit_filetabs.
15208 (maintenance_info_line_tables): Likewise.
15209 * source.c (select_source_symtab): Change local variable name.
15210 (forget_cached_source_info_for_objfile): Remove declaration.
15211 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15212 * objfiles.c (objfile_relocate1): Remove declaration.
15213 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15214 declaration.
15215 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15216 * coffread.c (coff_symtab_read): Remove declaration.
15217 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15218 compunit_filetabs.
15219
d8aeb77f
TT
152202019-01-09 Tom Tromey <tom@tromey.com>
15221
15222 * symtab.c (lookup_objfile_from_block)
15223 (find_pc_sect_compunit_symtab, search_symbols)
15224 (default_collect_symbol_completion_matches_break_on): Use
15225 objfile_compunits.
15226 * objfiles.h (ALL_COMPUNITS): Remove.
15227 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15228 * cp-support.c (add_symbol_overload_list_qualified): Use
15229 objfile_compunits.
15230 * ada-lang.c (ada_collect_symbol_completion_matches)
15231 (ada_add_global_exceptions): Use objfile_compunits.
15232
592553c4
TT
152332019-01-09 Tom Tromey <tom@tromey.com>
15234
15235 * source.c (select_source_symtab)
15236 (forget_cached_source_info_for_objfile): Remove declaration.
15237 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15238 declaration.
15239 * maint.c (count_symtabs_and_blocks): Remove declaration.
15240 * cp-support.c (add_symbol_overload_list_qualified): Remove
15241 declaration.
15242 * coffread.c (coff_symtab_read): Remove declaration.
15243 * symtab.c (lookup_symbol_in_objfile_symtabs)
15244 (basic_lookup_transparent_type_1): Use objfile_compunits.
15245 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15246 (info_sources_command, search_symbols)
15247 (default_collect_symbol_completion_matches_break_on)
15248 (make_source_files_completion_list): Remove declaration.
15249 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15250 (ada_collect_symbol_completion_matches)
15251 (ada_add_global_exceptions): Remove declaration.
15252 * linespec.c (iterate_over_all_matching_symtabs): Use
15253 objfile_compunits.
15254 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15255 (class objfile_compunits): New.
15256 (ALL_COMPUNITS): Use objfile_compunits.
15257 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15258 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15259 objfile_compunits.
15260 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15261
5325b9bf
TT
152622019-01-09 Tom Tromey <tom@tromey.com>
15263
15264 * symtab.c (search_symbols)
15265 (default_collect_symbol_completion_matches_break_on): Use
15266 objfile_msymbols.
15267 * ada-lang.c (ada_lookup_simple_minsym)
15268 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15269 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15270 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15271 objfile_msymbols.
15272 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15273 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15274 * objc-lang.c (find_methods): Use objfile_msymbols.
15275 (info_selectors_command, info_classes_command): Likewise.
15276 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15277 * objfiles.h (class objfile_msymbols): New.
15278 (ALL_OBJFILE_MSYMBOLS): Remove.
15279 (ALL_MSYMBOLS): Remove.
15280
cac85af2
TT
152812019-01-09 Tom Tromey <tom@tromey.com>
15282
15283 * common/next-iterator.h (next_adapter): Add Iterator template
15284 parameter.
15285 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15286 (class all_objfiles_safe): New.
15287 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15288 * objfiles.c (put_objfile_before): Update comment.
15289 (add_separate_debug_objfile): Likewise.
15290 (free_all_objfiles): Use all_objfiles_safe.
15291 (objfile_purge_solibs): Likewise.
15292
aed57c53
TT
152932019-01-09 Tom Tromey <tom@tromey.com>
15294
15295 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15296 (expand_symtab_containing_pc, lookup_static_symbol)
15297 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15298 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15299 all_objfiles.
15300 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15301 * breakpoint.c (create_overlay_event_breakpoint)
15302 (create_longjmp_master_breakpoint)
15303 (create_std_terminate_master_breakpoint)
15304 (create_exception_master_breakpoint): Use all_objfiles.
15305 * linux-thread-db.c (try_thread_db_load_from_pdir)
15306 (has_libpthread): Use all_objfiles.
15307 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15308 * linespec.c (iterate_over_all_matching_symtabs)
15309 (search_minsyms_for_name): Use all_objfiles.
15310 * maint.c (maintenance_info_sections): Use all_objfiles.
15311 * main.c (captured_main_1): Use all_objfiles.
15312 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15313 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15314 * guile/scm-pretty-print.c
15315 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15316 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15317 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15318 (maintenance_print_msymbols): Use all_objfiles.
15319 * source.c (select_source_symtab): Use all_objfiles.
15320 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15321 * symfile.c (remove_symbol_file_command)
15322 (expand_symtabs_matching, map_symbol_filenames): Use
15323 all_objfiles.
15324 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15325 all_objfiles.
15326 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15327 * objc-lang.c (find_methods): Use all_objfiles.
15328 * objfiles.c (have_partial_symbols, have_full_symbols)
15329 (have_minimal_symbols, qsort_cmp)
15330 (default_iterate_over_objfiles_in_search_order): Use
15331 all_objfiles.
15332 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15333 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15334 (maintenance_check_psymtabs): Use all_objfiles.
15335 (ALL_PSYMTABS): Remove.
15336 * compile/compile-object-run.c (do_module_cleanup): Use
15337 all_objfiles.
15338 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15339 * cp-support.c (add_symbol_overload_list_qualified): Use
15340 all_objfiles.
15341 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15342 Use all_objfiles.
15343 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15344 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15345 all_objfiles.
15346 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15347 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15348 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15349 Uses all_objfiles.
15350 * solib.c (solib_read_symbols): Use all_objfiles
15351
99d89cde
TT
153522019-01-09 Tom Tromey <tom@tromey.com>
15353
15354 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15355 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15356 all_objfiles.
15357 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15358 * symmisc.c (print_symbol_bcache_statistics)
15359 (print_objfile_statistics, maintenance_print_objfiles)
15360 (maintenance_info_symtabs, maintenance_check_symtabs)
15361 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15362 all_objfiles.
15363 * source.c (forget_cached_source_info): Use all_objfiles.
15364 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15365 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15366 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15367 * objfiles.c (update_section_map): Use all_objfiles.
15368 (shared_objfile_contains_address_p): Likewise.
15369 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15370 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15371
21708325
TT
153722019-01-09 Tom Tromey <tom@tromey.com>
15373
15374 * common/next-iterator.h: New file.
15375 * objfiles.h (class all_objfiles): New.
15376 (struct objfile_iterator): New.
15377
669e09f6
PW
153782019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15379
15380 * NEWS: Move the description of the changed "frame", "select-frame",
15381 and "info frame" commands to the Changed commands section.
15382
041be526
SM
153832019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15384
15385 * gdbtypes.c (check_stub_method_group): Remove handling of old
15386 mangling schemes.
15387 * linespec.c (find_methods): Likewise.
15388 * stabsread.c (read_member_functions): Likewise.
15389 * valops.c (search_struct_method): Likewise.
15390 (value_struct_elt_for_reference): Likewise.
15391 * NEWS: Mention this change.
15392
0e2a2133
AB
153932019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15394
15395 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15396 print_source_lines.
15397 * source.c (print_source_lines_base): Update line number check.
15398 (print_source_lines): New function.
15399 (source_lines_range::source_lines_range): New function.
15400 * source.h (class source_lines_range): New class.
15401 (print_source_lines): New declaration.
15402
1055a3b4
PW
154032019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15404
15405 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15406
cfeadda5
TT
154072019-01-08 Tom Tromey <tom@tromey.com>
15408 Simon Marchi <simon.marchi@ericsson.com>
15409
15410 PR gdb/24060
15411 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15412 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15413 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15414 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15415 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15416 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15417
583068ca
AB
154182019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15419
15420 * source.c (select_source_symtab): Move header comment to
15421 declaration in source.h.
15422 (forget_cached_source_info_for_objfile): Likewise.
15423 (forget_cached_source_info): Likewise.
15424 (identify_source_line): Likewise.
15425 * source.h (identify_source_line): Move declaration from symtab.h
15426 and add comment from source.c
15427 (print_source_lines): Likewise.
15428 (forget_cached_source_info_for_objfile): Likewise.
15429 (forget_cached_source_info): Likewise.
15430 (select_source_symtab): Likewise.
15431 (enum print_source_lines_flag): Move definition from symtab.h.
15432 * symtab.h (identify_source_line): Move declaration to source.h.
15433 (print_source_lines): Likewise.
15434 (forget_cached_source_info_for_objfile): Likewise.
15435 (forget_cached_source_info): Likewise.
15436 (select_source_symtab): Likewise.
15437 (enum print_source_lines_flag): Move definition to source.h.
15438 * tui/tui-hooks.c: Add 'source.h' include.
15439
ec98a4ad
AB
154402019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15441
15442 * source.c (print_source_lines_base): Handle requests to print
15443 reverse line number sequences, and guard against empty lines
15444 string.
15445
62ea19c1
AB
154462019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15447
15448 * source.c (print_source_lines_base): Fix skip of '\r' if next
15449 character is '\n'.
15450
9d30e1fd
TT
154512019-01-06 Tom Tromey <tom@tromey.com>
15452
15453 * c-exp.y (struct c_parse_state) <macro_original_text,
15454 expansion_obstack>: New member.
15455 (macro_original_text, expansion_obstack): Remove globals.
15456 (scan_macro_expansion, scanning_macro_expansion)
15457 (finished_macro_expansion): Update.
15458 (scan_macro_cleanup): Remove.
15459 (yylex, c_parse): Update.
15460
c65bac38
TT
154612019-01-06 Tom Tromey <tom@tromey.com>
15462
15463 * c-exp.y (struct c_parse_state) <strings>: New member.
15464 (operator_stoken): Update.
15465
02e12e38
TT
154662019-01-06 Tom Tromey <tom@tromey.com>
15467
15468 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15469 (union type_stack_elt) <typelist_val>: Now a pointer to
15470 std::vector.
15471 (type_stack_cleanup): Don't declare.
15472 (push_typelist): Update.
15473 * parse.c (pop_typelist): Return a std::vector.
15474 (push_typelist): Take a std::vector.
15475 (follow_types): Update. Do not free args.
15476 (type_stack_cleanup): Remove.
15477 * c-exp.y (struct c_parse_state): New.
15478 (cpstate): New global.
15479 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15480 (nonempty_typelist): Update.
15481 (func_mod): Create a new vector.
15482 (c_parse): Create a c_parse_state.
15483 (check_parameter_typelist): Do not delete params.
15484 (function_method): Update. Do not delete type_list.
15485
f097f5ad
TT
154862019-01-06 Tom Tromey <tom@tromey.com>
15487
15488 PR gdb/28155:
15489 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15490 check_typedef.
15491 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15492 (print_return_value): Likewise.
15493
d2adf9f1
TT
154942019-01-05 Tom Tromey <tom@tromey.com>
15495
15496 * contrib/cleanup_check.py: Remove.
15497 * contrib/gcc-with-excheck: Remove.
15498 * contrib/exsummary.py: Remove.
15499 * contrib/excheck.py: Remove.
15500
2eab46b1
JB
155012019-01-05 Joel Brobecker <brobecker@adacore.com>
15502
15503 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15504 NULL. Initialize tpprev to NULL instead of assigning it
15505 to NULL on the next statement.
15506 * windows-nat.c (windows_delete_thread): Remove check for
15507 main_thread_id before printing thread exit notifications.
15508 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15509 Remove thread ID check against main_thread_id.
15510 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15511 windows_delete_thread.
15512 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15513
48c5e7e2
TT
155142019-01-04 Tom Tromey <tom@tromey.com>
15515
15516 * compile/compile.c (_initialize_compile): Use upper case for
15517 metasyntactic variables.
15518 * symmisc.c (_initialize_symmisc): Use upper case for
15519 metasyntactic variables.
15520 * psymtab.c (_initialize_psymtab): Use upper case for
15521 metasyntactic variables.
15522 * demangle.c (demangle_command): Use upper case for metasyntactic
15523 variables.
15524 (_initialize_demangler): Likewise.
15525 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15526 variables.
15527
986041cd
TT
155282019-01-03 Tom Tromey <tom@tromey.com>
15529
15530 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15531
7c711119
TT
155322019-01-03 Tom Tromey <tom@tromey.com>
15533
15534 * python/py-symtab.c (salpy_str): Update.
15535 (struct salpy_sal_object) <symtab>: Now a PyObject.
15536 (salpy_dealloc): Update.
15537 (del_objfile_sal): Use gdbpy_ref.
15538
1b20edf0
TT
155392019-01-03 Tom Tromey <tom@tromey.com>
15540
15541 * python/py-type.c (convert_field): Use new_reference. Return
15542 gdbpy_ref.
15543 (make_fielditem): Return gdbpy_ref.
15544 (typy_fields): Update.
15545 (typy_getitem): Update.
15546 (field_name): Return gdbpy_ref. Use new_reference.
15547 (typy_iterator_iternext): Update.
15548
ea41325b
TT
155492019-01-03 Tom Tromey <tom@tromey.com>
15550
15551 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15552
2a3c71d6
TT
155532019-01-03 Tom Tromey <tom@tromey.com>
15554
15555 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15556 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15557 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15558 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15559 (pspy_set_type_printers): Likewise.
15560 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15561 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15562 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15563 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15564 (objfpy_set_type_printers): Likewise.
15565
5c329e6a
TT
155662019-01-03 Tom Tromey <tom@tromey.com>
15567
15568 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15569 (gdbpy_print_stack): Use gdbpy_err_fetch.
15570 * python/python-internal.h (class gdbpy_err_fetch): New class.
15571 (class gdbpy_enter) <m_error_type, m_error_value,
15572 m_error_traceback>: Remove.
15573 <m_error>: New member.
15574 (gdbpy_exception_to_string): Don't declare.
15575 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15576 * python/py-value.c (convert_value_from_python): Use
15577 gdbpy_err_fetch.
15578 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15579 gdbpy_exception_to_string.
15580 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15581 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15582 gdbpy_err_fetch.
15583
169bb27b
AB
155842019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15585
15586 * linux-nat.c (delete_lwp_cleanup): Delete.
15587 (struct lwp_deleter): New struct.
15588 (lwp_info_up): New typedef.
15589 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15590 lwp_info_up.
15591
a07c8880
AB
155922019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15593
15594 * linux-fork.c (class scoped_switch_fork_info): New class.
15595 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15596
26089c49
AB
155972019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15598
15599 * valops.c (find_overload_match): Remove use of null_cleanup, and
15600 calls to do_cleanups.
15601
06d3e5b0
AB
156022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15603
15604 * compile/compile-cplus-types.c
15605 (compile_cplus_instance::decl_name): Handle changes to
15606 cp_func_name.
15607 * cp-support.c (cp_func_name): Update header comment, update
15608 return type.
15609 * cp-support.h (cp_func_name): Update return type in declaration.
15610 * valops.c (find_overload_match): Move temp_func local to top
15611 level of function and change its type. Use temp_func to hold and
15612 delete temporary string obtained from cp_func_name.
15613
66644cd3
AB
156142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15615
15616 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15617 gdb::char_vector, remove cleanup, and update uses of `msg`.
15618
592d8c0a
JW
156192019-01-03 Jim Wilson <jimw@sifive.com>
15620
15621 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15622
c55d06ec
TT
156232019-01-02 Tom Tromey <tom@tromey.com>
15624
15625 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15626 (tdesc_parse_xml): Remove cleanups.
15627 * target-descriptions.h (make_cleanup_free_target_description):
15628 Don't declare.
15629 (target_desc_deleter): New struct.
15630 (target_desc_up): New typedef.
15631 * target-descriptions.c (target_desc_deleter::operator()): Rename
15632 from free_target_description.
15633 (make_cleanup_free_target_description): Remove.
15634
3a6ae42d
TT
156352019-01-02 Tom Tromey <tom@tromey.com>
15636
15637 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15638 constructor, destructor.
15639 (linespec_parser): Remove typedef.
15640 (~linespec_parser): Rename from linespec_parser_delete.
15641 (linespec_lex_to_end, linespec_complete_label)
15642 (linespec_complete): Update.
15643 (decode_line_full): Remove cleanups.
15644 (decode_line_1): Update.
15645
61fd3e73
TT
156462019-01-02 Tom Tromey <tom@tromey.com>
15647
15648 * python/python-internal.h (inferior_to_inferior_object): Change
15649 return type.
15650 * python/py-exitedevent.c (create_exited_event_object): Update.
15651 * python/py-inferior.c (inferior_to_inferior_object): Return
15652 gdbpy_ref.
15653 (python_new_inferior, python_inferior_deleted)
15654 (thread_to_thread_object, delete_thread_object)
15655 (build_inferior_list, gdbpy_selected_inferior): Update.
15656 * python/py-infthread.c (create_thread_object): Update. Also fail
15657 if inferior_to_inferior_object fails.
15658
d20172fc
SM
156592019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15660
15661 * inferior.h (class inferior) <displaced_step_state>: New field.
15662 * infrun.h (struct displaced_step_state): Move here from
15663 infrun.c. Initialize fields, add constructor.
15664 <inf>: Remove field.
15665 <reset>: New method.
15666 * infrun.c (struct displaced_step_inferior_state): Move to
15667 infrun.h.
15668 (displaced_step_inferior_states): Remove.
15669 (get_displaced_stepping_state): Adust.
15670 (displaced_step_in_progress_any_inferior): Adjust.
15671 (displaced_step_in_progress_thread): Adjust.
15672 (displaced_step_in_progress): Adjust.
15673 (add_displaced_stepping_state): Remove.
15674 (get_displaced_step_closure_by_addr): Adjust.
15675 (remove_displaced_stepping_state): Remove.
15676 (infrun_inferior_exit): Call displaced_step_state.reset.
15677 (use_displaced_stepping): Don't check for NULL.
15678 (displaced_step_prepare_throw): Call
15679 get_displaced_stepping_state.
15680 (displaced_step_fixup): Don't check for NULL.
15681 (prepare_for_detach): Don't check for NULL.
15682
e3319240
PW
156832019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15684
15685 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15686 in case of call that did not complete.
15687
5d36dfb9
AU
156882019-01-02 Andrey Utkin <autkin@undo.io>
15689
15690 * symfile.c (find_separate_debug_file): Fix search of debug files for
15691 remote debuggee.
15692
8833fbf0
TT
156932019-01-02 Tom Tromey <tom@tromey.com>
15694
15695 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15696 indentation.
15697 * python/py-frame.c (frapy_older): Remove cast.
15698 (frapy_newer): Likewise.
15699 * python/py-breakpoint.c (local_setattro): Remove cast.
15700 * python/py-arch.c (archpy_name): Remove local variable.
15701 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15702
4ada3dfd
JB
157032019-01-02 Joel Brobecker <brobecker@adacore.com>
15704
15705 * unittests/basic_string_view/element_access/char/empty.cc:
15706 Fix year range in copyright header.
15707
113b7b81
AB
157082019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15709
15710 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15711 Delete.
15712 <operator==>: Update with for removed field.
15713 <hash>: Likewise.
15714 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15715 <isa_features>: ...this.
15716 <abi_features>: New field.
15717 (riscv_isa_flen): Update comment.
15718 (riscv_abi_xlen): New declaration.
15719 (riscv_abi_flen): New declaration.
15720 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15721 isa_features.
15722 (riscv_abi_xlen): New function.
15723 (riscv_isa_flen): Update to get answer from isa_features.
15724 (riscv_abi_flen): New function.
15725 (riscv_has_fp_abi): Update to get answer from abi_features.
15726 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15727 xlen and flen.
15728 (riscv_call_info) <xlen, flen>: Update comment.
15729 (riscv_call_arg_struct): Remove invalid assertions
15730 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15731 is removed.
15732 (riscv_gdbarch_init): Gather isa features and abi features
15733 separately, ensure both match on the gdbarch when reusing an old
15734 gdbarch. Relax an error check to allow 32-bit abi float to run on
15735 a target with 64-bit float hardware.
15736
b18ca514
PW
157372019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15738
15739 * source.c (search_command_helper): Stop reverse search
15740 when line 1 has been searched.
15741
ec70d8db
PW
157422019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15743
15744 * record-full.c (record_full_base_target::close): Rewrite
15745 record_full_core_buf_list free logic.
15746
5b38f9c1
PW
157472019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15748
15749 * break-catch-syscall.c (print_one_catch_syscall): xfree
15750 the last text.
15751
66d91b39
JB
157522019-01-01 Joel Brobecker <brobecker@adacore.com>
15753
15754 * top.c (print_gdb_version): Update Copyright year in version
15755 message.
15756
42a4f53d
JB
157572019-01-01 Joel Brobecker <brobecker@adacore.com>
15758
15759 Update copyright year range in all GDB files.
15760
7e955d83 157612019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15762
5bbd631d 15763 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15764
5bbd631d 15765For older changes see ChangeLog-2018.
c906108c
SS
15766\f
15767Local Variables:
15768mode: change-log
15769left-margin: 8
15770fill-column: 74
15771version-control: never
57da7796 15772coding: utf-8
c906108c 15773End:
5bbd631d 15774
This page took 4.777633 seconds and 4 git commands to generate.