Add RAII class for blocking gdb signals
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
21987b9c
TT
12019-11-26 Tom Tromey <tom@tromey.com>
2
3 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
4 Remove comment.
5 (save_original_signals_state, restore_original_signals_state): Use
6 gdb_sigmask.
7 * linux-nat.c (block_child_signals, restore_child_signals_mask)
8 (_initialize_linux_nat): Use gdb_sigmask.
9 * guile/guile.c (_initialize_guile): Use block_signals.
10 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
11 * gdbsupport/gdb-sigmask.h: New file.
12 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
13 * cp-support.c (gdb_demangle): Use gdb_sigmask.
14 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
15 pthread_sigmask.
16 * configure, config.in: Rebuild.
17 * gdbsupport/block-signals.h: New file.
18
5e030278
TT
192019-11-26 Tom Tromey <tom@tromey.com>
20
21 * acinclude.m4: Include ax_pthread.m4.
22 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
23 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
24 (CLIBS): Use PTHREAD_LIBS.
25 (aclocal_m4_deps): Add ax_pthread.m4.
26 * config.in, configure: Rebuild.
27 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
28
5a79c107
TT
292019-11-26 Tom Tromey <tom@tromey.com>
30
31 * symtab.h (struct minimal_symbol) <name_set>: New member.
32 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
33 Don't call symbol_set_names.
34 (minimal_symbol_reader::install): Call symbol_set_names.
35
aa369509
PW
362019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
37
38 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
39 restore_active_ext_lang, as GIL is needed for (indirectly)
40 called PyOS_InterruptOccurred.
41
cadc9cb8
SM
422019-11-26 Simon Marchi <simon.marchi@efficios.com>
43
44 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
45 definition.
46
d04afd58
SM
472019-11-26 Simon Marchi <simon.marchi@efficios.com>
48
49 * remote-sim.c (simulator_command): Make static, remove
50 declaration.
51
dd694d77
SM
522019-11-26 Simon Marchi <simon.marchi@efficios.com>
53
54 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
55 static.
56 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
57 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
58 (main): Likewise.
59 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
60 (main): Likewise.
61 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
62 (main): Likewise.
63 * unittests/basic_string_view/element_access/char/1.cc (test01):
64 Likewise.
65 (main): Likewise.
66 * unittests/basic_string_view/element_access/char/empty.cc (main):
67 Likewise.
68 * unittests/basic_string_view/element_access/char/front_back.cc
69 (test01): Likewise.
70 (main): Likewise.
71 * unittests/basic_string_view/inserters/char/2.cc (test05):
72 Likewise.
73 (main): Likewise.
74 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
75 (test01): Likewise.
76 (main): Likewise.
77 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
78 (test01): Likewise.
79 (main): Likewise.
80 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
81 Likewise.
82 * unittests/basic_string_view/operations/compare/char/1.cc
83 (test01): Likewise.
84 (main): Likewise.
85 * unittests/basic_string_view/operations/compare/char/13650.cc
86 (test01): Likewise.
87 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
88 Likewise.
89 (main): Likewise.
90 * unittests/basic_string_view/operations/data/char/1.cc (test01):
91 Likewise.
92 (main): Likewise.
93 * unittests/basic_string_view/operations/find/char/1.cc (test01):
94 Likewise.
95 (main): Likewise.
96 * unittests/basic_string_view/operations/find/char/2.cc (test02):
97 Likewise.
98 (main): Likewise.
99 * unittests/basic_string_view/operations/find/char/3.cc (test03):
100 Likewise.
101 (main): Likewise.
102 * unittests/basic_string_view/operations/find/char/4.cc (main):
103 Likewise.
104 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
105 Likewise.
106 (main): Likewise.
107 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
108 Likewise.
109 (main): Likewise.
110 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
111 Likewise.
112 (main): Likewise.
113 * unittests/basic_string_view/operations/substr/char/1.cc
114 (test01): Likewise.
115 (main): Likewise.
116 * unittests/basic_string_view/operators/char/2.cc (main):
117 Likewise.
118 * unittests/optional/assignment/1.cc (test): Likewise.
119 * unittests/optional/assignment/2.cc (test): Likewise.
120 * unittests/optional/assignment/3.cc (test): Likewise.
121 * unittests/optional/assignment/4.cc (test): Likewise.
122 * unittests/optional/assignment/5.cc (test): Likewise.
123 * unittests/optional/assignment/6.cc (test): Likewise.
124 * unittests/optional/assignment/7.cc (test): Likewise.
125 * unittests/optional/cons/copy.cc (test): Likewise.
126 * unittests/optional/cons/default.cc (test): Likewise.
127 * unittests/optional/cons/move.cc (test): Likewise.
128 * unittests/optional/cons/value.cc (test): Likewise.
129 * unittests/optional/in_place.cc (test): Likewise.
130 * unittests/optional/observers/1.cc (test): Likewise.
131 * unittests/optional/observers/2.cc (test): Likewise.
132
3b5c1d49
SM
1332019-11-26 Simon Marchi <simon.marchi@efficios.com>
134
135 * tui-win.h (tui_set_var_cmd): Remove.
136 * tui-win.c (tui_set_var_cmd): Make static.
137
adce99fe
SM
1382019-11-26 Simon Marchi <simon.marchi@efficios.com>
139
140 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
141 rbreak_command_wrapper): Remove.
142 * symtab.c (rbreak_command_wrapper): Remove.
143
fe3adccf
SM
1442019-11-26 Simon Marchi <simon.marchi@efficios.com>
145
146 * inferior.h (info_terminal_command): Remove declaration.
147 * inflow.c (info_terminal_command): Make static.
148
b926335f
SM
1492019-11-26 Simon Marchi <simon.marchi@efficios.com>
150
151 * inferior.c (exit_inferior_silent): Remove.
152
b62f6f54
SM
1532019-11-26 Simon Marchi <simon.marchi@efficios.com>
154
155 * dictionary.c (dict_empty, mdict_empty): Remove.
156 * dictionary.c (mdict_empty): Remove.
157
cb8c24b6
SM
1582019-11-26 Simon Marchi <simon.marchi@efficios.com>
159
160 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
161 (arc_insn_get_memory_offset): Likewise.
162 (arc_insn_dump): Likewise.
163 * cp-support.c (test_cp_symbol_name_matches): Likewise.
164 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
165 * dictionary.c (dict_iterator_next): Likewise.
166 (dict_iter_match_first): Likewise.
167 (dict_iter_match_next): Likewise.
168 * f-lang.c (evaluate_subexp_f): Likewise.
169 * hppa-tdep.c (hppa_read_pc): Likewise.
170 * i386-tdep.c (i386_floatformat_for_type): Likewise.
171 * parse.c (write_exp_elt_msym): Likewise.
172 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
173 * remote.c (remote_packet_size): Likewise.
174 (remote_notif_stop_parse): Likewise.
175 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
176 * s12z-tdep.c (s12z_disassemble_info): Likewise.
177 * source.c (prepare_path_for_appending): Likewise.
178 * sparc64-linux-tdep.c
179 (sparc64_linux_handle_segmentation_fault); Likewise.
180 * stack.c (frame_selection_by_function_completer): Likewise.
181
781597ff
SM
1822019-11-26 Simon Marchi <simon.marchi@efficios.com>
183
184 * completer.c (set_gdb_completion_word_break_characters):
185 Remove.
186
23baa4cc
SM
1872019-11-26 Simon Marchi <simon.marchi@efficios.com>
188
189 * dwarf-index-write.c: Include dwarf-index-write.h.
190 * mi/mi-interp.c: Include mi/mi-interp.h.
191
23767560
SM
1922019-11-26 Simon Marchi <simon.marchi@efficios.com>
193
194 * aarch32-tdep.c: Include aarch32-tdep.h.
195 * aarch32-tdep.h: Forward-declare struct target_desc.
196
6d91ce9a
CB
1972019-11-26 Christian Biesinger <cbiesinger@google.com>
198
199 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
200 strerror.
201 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
202 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
203
3cf2f237
TV
2042019-11-25 Tom de Vries <tdevries@suse.de>
205
206 * contrib/words.sh: Add -c option.
207
5b89c67a
CB
2082019-11-25 Christian Biesinger <cbiesinger@google.com>
209
210 * solib.c (solib_find_1): Change int to bool.
211 (exec_file_find): Change int to bool.
212 (solib_find): Change int to bool.
213 (solib_read_symbols): Change int to bool.
214 (solib_used): Change int to bool.
215 (solib_add): Change int to bool.
216 (info_sharedlibrary_command): Change int to bool.
217 (solib_contains_address_p): Change int to bool.
218 (solib_keep_data_in_core): Change int to bool.
219 (in_solib_dynsym_resolve_code): Change int to bool.
220 (reload_shared_libraries_1): Change int to bool.
221 (gdb_sysroot_changed): Change int to bool.
222 * solib.h (solib_read_symbols): Change int to bool.
223 (solib_contains_address_p): Change int to bool.
224 (solib_keep_data_in_core): Change int to bool.
225 (in_solib_dynsym_resolve_code): Change int to bool.
226 (libpthread_name_p): Change int to bool.
227
6cc8564b
LM
2282019-11-25 Luis Machado <luis.machado@linaro.org>
229
230 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
231 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
232 (remote_packet_max_chars): New static global.
233 (show_remote_packet_max_chars): New function.
234 (remote_target::putpkt_binary): Adjust to use new
235 remote_packet_max_chars option.
236 (remote_target::getpkt_or_notif_sane_1): Likewise.
237 (_initialize_remote): Register new remote-packet-max-chars option.
238
a7cdaa91
SM
2392019-11-24 Simon Marchi <simon.marchi@efficios.com>
240
241 * m68k-linux-nat.c: Include gdbarch.h.
242
26abc753
TT
2432019-11-24 Tom Tromey <tom@tromey.com>
244
245 * symfile.c (read_symbols): Update.
246 * psymtab.c (require_partial_symbols): Change type of "verbose" to
247 bool.
248 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
249 (psym_lookup_symbol, psym_find_last_source_symtab)
250 (psym_forget_cached_source_info, psym_print_stats)
251 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
252 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
253 (psym_map_matching_symbols, psym_expand_symtabs_matching)
254 (psym_find_compunit_symtab_by_address)
255 (maintenance_print_psymbols, maintenance_info_psymtabs)
256 (maintenance_check_psymtabs): Update.
257 * psymtab.h (require_partial_symbols): Change type of "verbose" to
258 bool.
259
012fc909
TT
2602019-11-22 Tom Tromey <tom@tromey.com>
261
262 * observable.h: Update comments.
263
c83d8d32
TT
2642019-11-22 Tom Tromey <tromey@adacore.com>
265
266 * ada-tasks.c (ada_task_is_alive): Make parameter const.
267 (print_ada_task_info): Don't try to fetch thread id if task is not
268 alive.
269
987012b8
CB
2702019-11-22 Christian Biesinger <cbiesinger@google.com>
271
272 * ada-exp.y: Update.
273 * ada-lang.c (sort_choices): Update.
274 (ada_print_symbol_signature): Update.
275 (resolve_subexp): Update.
276 (ada_parse_renaming): Update.
277 (ada_read_renaming_var_value): Update.
278 (lesseq_defined_than): Update.
279 (remove_extra_symbols): Update.
280 (remove_irrelevant_renamings): Update.
281 (ada_add_block_symbols): Update.
282 (ada_collect_symbol_completion_matches): Update.
283 (ada_is_renaming_symbol): Update.
284 (aggregate_assign_from_choices): Update.
285 (ada_evaluate_subexp): Update.
286 (ada_has_this_exception_support): Update.
287 (ada_is_non_standard_exception_sym): Update.
288 (ada_add_exceptions_from_frame): Update.
289 (ada_add_global_exceptions): Update.
290 (ada_print_subexp): Update.
291 * ax-gdb.c (gen_var_ref): Update.
292 (gen_maybe_namespace_elt): Update.
293 (gen_expr_for_cast): Update.
294 (gen_expr): Update.
295 * block.h: Update.
296 * blockframe.c (find_pc_partial_function): Update.
297 * breakpoint.c (print_breakpoint_location): Update.
298 (update_static_tracepoint): Update.
299 * btrace.c (ftrace_print_function_name): Update.
300 (ftrace_function_switched): Update.
301 * buildsym.c (find_symbol_in_list): Update.
302 * c-exp.y: Update.
303 * c-typeprint.c (c_print_typedef): Update.
304 (c_type_print_template_args): Update.
305 * cli/cli-cmds.c (edit_command): Update.
306 (list_command): Update.
307 (print_sal_location): Update.
308 * coffread.c (patch_opaque_types): Update.
309 (process_coff_symbol): Update.
310 (coff_read_enum_type): Update.
311 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
312 (convert_one_symbol): Update.
313 (hash_symname): Update.
314 (eq_symname): Update.
315 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
316 * compile/compile-cplus-types.c (debug_print_scope): Update.
317 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
318 * compile/compile-object-load.c (get_out_value_type): Update.
319 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
320 (search_symbol_list): Update.
321 (cp_lookup_symbol_imports_or_template): Update.
322 * cp-support.c (overload_list_add_symbol): Update.
323 * ctfread.c (psymtab_to_symtab): Update.
324 * dbxread.c (cp_set_block_scope): Update.
325 * dictionary.c (iter_match_first_hashed): Update.
326 (iter_match_next_hashed): Update.
327 (insert_symbol_hashed): Update.
328 (iter_match_next_linear): Update.
329 * dictionary.h: Update.
330 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
331 (locexpr_describe_location_piece): Update.
332 (locexpr_describe_location_1): Update.
333 (locexpr_generate_c_location): Update.
334 (loclist_describe_location): Update.
335 (loclist_generate_c_location): Update.
336 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
337 (read_func_scope): Update.
338 (process_enumeration_scope): Update.
339 (new_symbol): Update.
340 (dwarf2_const_value): Update.
341 (dwarf2_symbol_mark_computed): Update.
342 * eval.c (evaluate_funcall): Update.
343 (evaluate_subexp_standard): Update.
344 * expprint.c (print_subexp_standard): Update.
345 (dump_subexp_body_standard): Update.
346 * f-valprint.c (info_common_command_for_block): Update.
347 * findvar.c (get_hosting_frame): Update.
348 (default_read_var_value): Update.
349 * go-lang.c (go_symbol_package_name): Update.
350 * guile/scm-block.c (bkscm_print_block_smob): Update.
351 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
352 (gdbscm_symbol_name): Update.
353 (gdbscm_symbol_linkage_name): Update.
354 (gdbscm_symbol_print_name): Update.
355 * infcall.c (get_function_name): Update.
356 * infcmd.c (jump_command): Update.
357 (finish_command): Update.
358 * infrun.c (insert_exception_resume_breakpoint): Update.
359 * linespec.c (canonicalize_linespec): Update.
360 (create_sals_line_offset): Update.
361 (convert_linespec_to_sals): Update.
362 (complete_label): Update.
363 (find_label_symbols_in_block): Update.
364 * m2-typeprint.c (m2_print_typedef): Update.
365 * mdebugread.c (mdebug_reg_to_regnum): Update.
366 (parse_symbol): Update.
367 (mylookup_symbol): Update.
368 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
369 (list_args_or_locals): Update.
370 * objc-lang.c (compare_selectors): Update.
371 (info_selectors_command): Update.
372 (compare_classes): Update.
373 (info_classes_command): Update.
374 (find_imps): Update.
375 * p-typeprint.c (pascal_print_typedef): Update.
376 * printcmd.c (build_address_symbolic): Update.
377 (info_address_command): Update.
378 (print_variable_and_value): Update.
379 * python/py-framefilter.c (extract_sym): Update.
380 (py_print_single_arg): Update.
381 * python/py-symbol.c (sympy_str): Update.
382 (sympy_get_name): Update.
383 (sympy_get_linkage_name): Update.
384 * python/python.c (gdbpy_rbreak): Update.
385 * record-btrace.c (btrace_get_bfun_name): Update.
386 (btrace_call_history): Update.
387 * rust-lang.c (rust_print_typedef): Update.
388 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
389 * stabsread.c (stab_reg_to_regnum): Update.
390 (define_symbol): Update.
391 (read_enum_type): Update.
392 (common_block_end): Update.
393 (cleanup_undefined_types_1): Update.
394 (scan_file_globals): Update.
395 * stack.c (print_frame_arg): Update.
396 (print_frame_args): Update.
397 (find_frame_funname): Update.
398 (info_frame_command_core): Update.
399 (iterate_over_block_locals): Update.
400 (print_block_frame_labels): Update.
401 (do_print_variable_and_value): Update.
402 (iterate_over_block_arg_vars): Update.
403 (return_command): Update.
404 * symmisc.c (dump_symtab_1): Update.
405 (print_symbol): Update.
406 * symtab.c (eq_symbol_entry): Update.
407 (symbol_cache_dump): Update.
408 (lookup_language_this): Update.
409 (find_pc_sect_line): Update.
410 (skip_prologue_sal): Update.
411 (symbol_search::compare_search_syms): Update.
412 (treg_matches_sym_type_name): Update.
413 (search_symbols): Update.
414 (print_symbol_info): Update.
415 (rbreak_command): Update.
416 (completion_list_add_symbol): Update.
417 (find_gnu_ifunc): Update.
418 (get_symbol_address): Update.
419 (search_module_symbols): Update.
420 (info_module_subcommand): Update.
421 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
422 (SYMBOL_LINKAGE_NAME): Remove.
423 (SYMBOL_DEMANGLED_NAME): Remove.
424 (SYMBOL_PRINT_NAME): Remove.
425 (SYMBOL_SEARCH_NAME): Remove.
426 * tracepoint.c (set_traceframe_context): Update.
427 (validate_actionline): Update.
428 (collection_list::collect_symbol): Update.
429 (encode_actions_1): Update.
430 (info_scope_command): Update.
431 (print_one_static_tracepoint_marker): Update.
432 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
433 * valops.c (address_of_variable): Update.
434 (find_overload_match): Update.
435 (find_oload_champ): Update.
436
c9d95fa3
CB
4372019-11-22 Christian Biesinger <cbiesinger@google.com>
438
439 * ada-lang.c (ada_lookup_simple_minsym): Update.
440 (ada_collect_symbol_completion_matches): Update.
441 * ada-tasks.c (read_atcb): Update.
442 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
443 (amd64_windows_skip_trampoline_code): Update.
444 * arm-tdep.c (skip_prologue_function): Update.
445 (arm_skip_stack_protector): Update.
446 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
447 (arm_wince_skip_main_prologue): Update.
448 * ax-gdb.c (gen_expr): Update.
449 * block.c (call_site_for_pc): Update.
450 * blockframe.c (find_pc_partial_function): Update.
451 * breakpoint.c (set_breakpoint_location_function): Update.
452 * btrace.c (ftrace_print_function_name): Update.
453 (ftrace_function_switched): Update.
454 * c-valprint.c (print_unpacked_pointer): Update.
455 * coffread.c (coff_symfile_read): Update.
456 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
457 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
458 * dwarf-index-write.c (write_psymbols): Update.
459 * dwarf2loc.c (call_site_to_target_addr): Update.
460 (func_verify_no_selftailcall): Update.
461 (tailcall_dump): Update.
462 (call_site_find_chain_1): Update.
463 (dwarf_expr_reg_to_entry_parameter): Update.
464 * elfread.c (elf_gnu_ifunc_record_cache): Update.
465 * eval.c (evaluate_funcall): Update.
466 (evaluate_subexp_standard): Update.
467 (evaluate_subexp_for_sizeof): Update.
468 * expprint.c (print_subexp_standard): Update.
469 (dump_subexp_body_standard): Update.
470 * frame.c (get_prev_frame_always_1): Update.
471 * frv-tdep.c (frv_skip_main_prologue): Update.
472 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
473 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
474 (gnuv3_get_typename_from_type_info): Update.
475 (gnuv3_skip_trampoline): Update.
476 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
477 * i386-tdep.c (i386_skip_main_prologue): Update.
478 (i386_pe_skip_trampoline_code): Update.
479 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
480 * infcall.c (get_function_name): Update.
481 * linespec.c (minsym_found): Update.
482 * linux-fork.c (info_checkpoints_command): Update.
483 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
484 (m32c_m16c_pointer_to_address): Update.
485 * maint.c (maintenance_translate_address): Update.
486 * minsyms.c (add_minsym_to_hash_table): Update.
487 (add_minsym_to_demangled_hash_table): Update.
488 (lookup_minimal_symbol_mangled): Update.
489 (lookup_minimal_symbol_demangled): Update.
490 (lookup_minimal_symbol_linkage): Update.
491 (lookup_minimal_symbol_text): Update.
492 (lookup_minimal_symbol_by_pc_name): Update.
493 (minimal_symbol_is_less_than): Update.
494 (compact_minimal_symbols): Update.
495 (build_minimal_symbol_hash_tables): Update.
496 (find_solib_trampoline_target): Update.
497 * mips-tdep.c (mips_stub_frame_sniffer): Update.
498 (mips_skip_pic_trampoline_code): Update.
499 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
500 * objc-lang.c (info_selectors_command): Update.
501 (info_classes_command): Update.
502 (find_methods): Update.
503 (find_imps): Update.
504 * p-valprint.c (pascal_val_print): Update.
505 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
506 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
507 * printcmd.c (build_address_symbolic): Update.
508 (info_symbol_command): Update.
509 * psymtab.c (psymbol_name_matches): Update.
510 (match_partial_symbol): Update.
511 (lookup_partial_symbol): Update.
512 (print_partial_symbols): Update.
513 (sort_pst_symbols): Update.
514 (maintenance_check_psymtabs): Update.
515 * python/py-framefilter.c (py_print_frame): Update.
516 * python/python.c (gdbpy_rbreak): Update.
517 * record-btrace.c (btrace_get_bfun_name): Update.
518 (btrace_call_history): Update.
519 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
520 (rs6000_skip_trampoline_code): Update.
521 * sol-thread.c (info_cb): Update.
522 * stabsread.c (scan_file_globals): Update.
523 * stack.c (find_frame_funname): Update.
524 (info_frame_command_core): Update.
525 * symmisc.c (dump_msymbols): Update.
526 * symtab.c (symbol_natural_name): Rename to..,
527 (general_symbol_info::natural_name): ...this.
528 (symbol_demangled_name): Rename to...
529 (general_symbol_info::demangled_name): ...this.
530 (symbol_search_name): Rename to...
531 (general_symbol_info::search_name): ...this.
532 (symbol_matches_search_name): Update.
533 (find_pc_sect_line): Update.
534 (skip_prologue_sal): Update.
535 (search_symbols): Update.
536 (print_msymbol_info): Update.
537 (rbreak_command): Update.
538 (completion_list_add_msymbol): Update.
539 (completion_list_objc_symbol): Update.
540 (get_msymbol_address): Update.
541 * symtab.h (struct general_symbol_info): Add member functions
542 natural_name (), linkage_name (), print_name (), demangled_name (),
543 and search_name ().
544 (SYMBOL_NATURAL_NAME): Update.
545 (symbol_natural_name): Move to a member function on general_symbol_info.
546 (SYMBOL_DEMANGLED_NAME): Update.
547 (symbol_demangled_name): Move to a member function on
548 general_symbol_info.
549 (SYMBOL_SEARCH_NAME): Update.
550 (symbol_search_name): Move to a member function on general_symbol_info.
551 (MSYMBOL_NATURAL_NAME): Remove.
552 (MSYMBOL_LINKAGE_NAME): Remove.
553 (MSYMBOL_PRINT_NAME): Remove.
554 (MSYMBOL_DEMANGLED_NAME): Remove.
555 (MSYMBOL_SEARCH_NAME): Remove.
556 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
557
f8bab2d6
CB
5582019-11-22 Christian Biesinger <cbiesinger@google.com>
559
560 * symtab.c (create_demangled_names_hash): Use per_bfd->
561 minimal_symbol_count for computing the initial size, if greater
562 than our default size.
563
85e7588d
TV
5642019-11-22 Tom de Vries <tdevries@suse.de>
565
566 * contrib/words.sh: Improve words extraction.
567
f6180073
TV
5682019-11-22 Tom de Vries <tdevries@suse.de>
569
570 * contrib/words.sh: Combine sed invocations.
571
f10ffa41
CB
5722019-11-21 Christian Biesinger <cbiesinger@google.com>
573
574 * Makefile.in: Update.
575 * demangle.c: Rename to...
576 * gdb-demangle.c: ..this.
577 (is_cplus_marker): Change return type to bool.
578 (_initialize_demangler): Rename to...
579 (_initialize_gdb_demangle): ...this.
580 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
581 * symtab.h (demangle): Remove declaration; instead include
582 gdb-demangle.h.
583
6ba18521
TT
5842019-11-21 Tom Tromey <tromey@adacore.com>
585
586 * gdbsupport/format.c (format_pieces): Parse %I64d.
587 * unittests/format_pieces-selftests.c (test_windows_formats): New
588 function.
589 (run_tests): Call it.
590
34877895
PJ
5912019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
592
593 Byte reverse display of variables with DW_END_big, DW_END_little
594 (DW_AT_endianity) dwarf attributes if different than the native
595 byte order.
596 * ada-lang.c (ada_value_binop):
597 Use type_byte_order instead of gdbarch_byte_order.
598 * ada-valprint.c (printstr):
599 (ada_val_print_string):
600 * ada-lang.c (value_pointer):
601 (ada_value_binop):
602 Use type_byte_order instead of gdbarch_byte_order.
603 * c-lang.c (c_get_string):
604 Use type_byte_order instead of gdbarch_byte_order.
605 * c-valprint.c (c_val_print_array):
606 Use type_byte_order instead of gdbarch_byte_order.
607 * cp-valprint.c (cp_print_class_member):
608 Use type_byte_order instead of gdbarch_byte_order.
609 * dwarf2loc.c (rw_pieced_value):
610 Use type_byte_order instead of gdbarch_byte_order.
611 * dwarf2read.c (read_base_type): Handle DW_END_big,
612 DW_END_little
613 * f-lang.c (f_get_encoding):
614 Use type_byte_order instead of gdbarch_byte_order.
615 * findvar.c (default_read_var_value):
616 Use type_byte_order instead of gdbarch_byte_order.
617 * gdbtypes.c (check_types_equal):
618 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
619 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
620 and TYPE_ENDIANITY_LITTLE if set.
621 (type_byte_order): new function.
622 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
623 (struct main_type) <flag_endianity_not_default>:
624 New field.
625 (type_byte_order): New function.
626 * infcmd.c (default_print_one_register_info):
627 Use type_byte_order instead of gdbarch_byte_order.
628 * p-lang.c (pascal_printstr):
629 Use type_byte_order instead of gdbarch_byte_order.
630 * p-valprint.c (pascal_val_print):
631 Use type_byte_order instead of gdbarch_byte_order.
632 * printcmd.c (print_scalar_formatted):
633 Use type_byte_order instead of gdbarch_byte_order.
634 * solib-darwin.c (darwin_current_sos):
635 Use type_byte_order instead of gdbarch_byte_order.
636 * solib-svr4.c (solib_svr4_r_ldsomap):
637 Use type_byte_order instead of gdbarch_byte_order.
638 * stap-probe.c (stap_modify_semaphore):
639 Use type_byte_order instead of gdbarch_byte_order.
640 * target-float.c (target_float_same_format_p):
641 Use type_byte_order instead of gdbarch_byte_order.
642 * valarith.c (scalar_binop):
643 (value_bit_index):
644 Use type_byte_order instead of gdbarch_byte_order.
645 * valops.c (value_cast):
646 Use type_byte_order instead of gdbarch_byte_order.
647 * valprint.c (generic_emit_char):
648 (generic_printstr):
649 (val_print_string):
650 Use type_byte_order instead of gdbarch_byte_order.
651 * value.c (unpack_long):
652 (unpack_bits_as_long):
653 (unpack_value_bitfield):
654 (modify_field):
655 (pack_long):
656 (pack_unsigned_long):
657 Use type_byte_order instead of gdbarch_byte_order.
658 * findvar.c (unsigned_pointer_to_address):
659 (signed_pointer_to_address):
660 (unsigned_address_to_pointer):
661 (address_to_signed_pointer):
662 (default_read_var_value):
663 (default_value_from_register):
664 Use type_byte_order instead of gdbarch_byte_order.
665 * gnu-v3-abi.c (gnuv3_make_method_ptr):
666 Use type_byte_order instead of gdbarch_byte_order.
667 * riscv-tdep.c (riscv_print_one_register_info):
668 Use type_byte_order instead of gdbarch_byte_order.
669
87fb00ea
SM
6702019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
673 (current_ui_gdb_stdin_ptr): Likewise.
674 (current_ui_gdb_stderr_ptr): Likewise.
675 (current_ui_gdb_stdlog_ptr): Likewise.
676 (current_ui_current_uiout_ptr): Likewise.
677 (gen_ret_current_ui_field_ptr): Remove.
678
65d1cd5f
TV
6792019-11-21 Tom de Vries <tdevries@suse.de>
680
681 PR gdb/24956
682 * cli/cli-script.c (execute_control_command): Only switch to
683 INTERP_CONSOLE's ui_out when INTERP_MI is active.
684
9f6ad286
TT
6852019-11-19 Tom Tromey <tom@tromey.com>
686
687 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
688 Now static. Change type of "name".
689 (tui_set_win_height_command): Don't copy "arg".
690 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
691 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
692
435d3d88
AT
6932019-11-19 Ali Tamur <tamur@google.com>
694
695 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
696 "if (attr != nullptr)".
697 (dwarf2_find_base_address): Likewise.
698 (dwarf2_build_include_psymtabs): Likewise.
699 (read_cutu_die_from_dwo): Likewise.
700 (read_func_scope): Likewise.
701 (read_call_site_scope): Likewise.
702 (dwarf2_get_pc_bounds): Likewise.
703 (dwarf2_record_block_ranges): Likewise.
704 (dwarf2_add_field): Likewise.
705 (dwarf2_add_member_fn): Likewise.
706 (read_structure_type): Likewise.
707 (read_enumeration_type): Likewise.
708 (read_array_type): Likewise.
709 (read_array_order): Likewise.
710 (read_set_type): Likewise.
711 (read_common_block): Likewise.
712 (read_tag_reference_type): Likewise.
713 (read_tag_string_type): Likewise.
714 (read_subroutine_type): Likewise.
715 (read_base_type): Likewise.
716 (read_subrange_type): Likewise.
717 (new_symbol): Likewise.
718 (prepare_one_comp_unit): Likewise.
719
c9739b6a
TT
7202019-11-19 Tom Tromey <tromey@adacore.com>
721
722 * windows-nat.c (windows_nat_target::attach): Include GetLastError
723 result in error when DebugActiveProcess fails.
724
494409bb
SDJ
7252019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
726 Pedro Alves <palves@redhat.com>
727
728 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
729 * target.c (target_stack::push): Call 'unpush' if there's a
730 target on top of the stack.
731
2e953aca
PW
7322019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
733
734 * python/py-block.c (blpy_dealloc): Call tp_free.
735 (blpy_block_syms_dealloc): Likewise.
736 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
737 * python/py-inferior.c (infpy_dealloc): Likewise.
738 * python/py-lazy-string.c (stpy_dealloc): Likewise.
739 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
740 * python/py-symbol.c (sympy_dealloc): Likewise.
741 * python/py-symtab.c (stpy_dealloc): Likewise.
742 * python/py-type.c (typy_iterator_dealloc): Likewise.
743
6edc43ec
CB
7442019-11-18 Christian Biesinger <cbiesinger@google.com>
745
746 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
747 constructor instead of using a class initializer.
748
cd850b40
CB
7492019-11-15 Christian Biesinger <cbiesinger@google.com>
750
751 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
752 * configure: Regenerate.
753 * configure.ac: Don't source common.host.
754 * gdbsupport/common.host: Remove.
755 * gdbsupport/mingw-strerror.c: Remove.
756 * gdbsupport/posix-strerror.c: Rename to...
757 * gdbsupport/safe-strerror.c: ...this.
758
53fea9c7
CB
7592019-11-15 Christian Biesinger <cbiesinger@google.com>
760
761 * maint.c (scoped_command_stats::print_time): Use localtime_r
762 instead of localtime (provided through gnulib if necessary).
763 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
764 of ctime.
765
f8e27d88
CB
7662019-11-15 Christian Biesinger <cbiesinger@google.com>
767
768 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
769 avoid compile errors.
770
5abebf3c
CB
7712019-11-15 Christian Biesinger <cbiesinger@google.com>
772
773 * config.in: Regenerate.
774 * configure: Regenerate.
775 * gdbsupport/common.m4: No longer check for strerror_r.
776 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
777 POSIX version of strerror_r, now that gnulib provides it if
778 necessary.
779
9a351667
CB
7802019-11-14 Christian Biesinger <cbiesinger@google.com>
781
782 * README (`configure' options): Update.
783
55708e99
TT
7842019-11-14 Tom Tromey <tromey@adacore.com>
785
786 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
787 expected type for the RHS if the LHS is a convenience variable.
788
4b09bb2e
SM
7892019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
792 Provide explicit default and copy constructor.
793
bd454f8b
PW
7942019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
795
796 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
797 only call Py_INCREF (newbp) in the bppy_pending_object case.
798
d1aa3cf0
TT
7992019-11-13 Tom Tromey <tromey@adacore.com>
800
801 PR build/25182:
802 * psympriv.h (partial_symbol): Remove static assert.
803 * symtab.h (general_symbol_info, symbol): Remove static assert.
804
e06f3d6e
AB
8052019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * gdbsupport/format.c (format_pieces::format_pieces): Support
808 printf 'z' size modifier.
809 * gdbsupport/format.h (enum argclass): Add size_t_arg.
810 * printcmd.c (ui_printf): Handle size_t_arg.
811 * ui-out.c (ui_out::vmessage): Likewise.
812 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
813 function.
814 (run_tests): Call test_format_int_sizes.
815
468c0cbb
CB
8162019-11-12 Christian Biesinger <cbiesinger@google.com>
817
818 * ada-exp.y (write_ambiguous_var): Update.
819 * buildsym.c (add_symbol_to_list): Update.
820 * dwarf2read.c (read_variable): Update.
821 (new_symbol): Update.
822 * jit.c (finalize_symtab): Update.
823 * language.c (language_alloc_type_symbol): Update.
824 * symtab.c (fixup_symbol_section): Update.
825 (initialize_objfile_symbol_1): Move code to...
826 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
827 (allocate_symbol): Update.
828 (allocate_template_symbol): Update.
829 (get_symbol_address): Update.
830 * symtab.h (struct symbol): Inherit from general_symbol_info instead
831 of having as a field, and add a constructor.
832 (SYMBOL_VALUE): Update.
833 (SYMBOL_VALUE_ADDRESS): Update.
834 (SET_SYMBOL_VALUE_ADDRESS): Update.
835 (SYMBOL_VALUE_BYTES): Update.
836 (SYMBOL_VALUE_COMMON_BLOCK): Update.
837 (SYMBOL_BLOCK_VALUE): Update.
838 (SYMBOL_VALUE_CHAIN): Update.
839 (SYMBOL_LANGUAGE): Update.
840 (SYMBOL_SECTION): Update.
841 (SYMBOL_OBJ_SECTION): Update.
842 (SYMBOL_SET_LANGUAGE): Update.
843 (SYMBOL_SET_LINKAGE_NAME): Update.
844 (SYMBOL_SET_NAMES): Update.
845 (SYMBOL_NATURAL_NAME): Update.
846 (SYMBOL_LINKAGE_NAME): Update.
847 (SYMBOL_DEMANGLED_NAME): Update.
848 (SYMBOL_SEARCH_NAME): Update.
849 (SYMBOL_MATCHES_SEARCH_NAME): Update.
850 (struct symbol): Update.
851 (struct template_symbol): Update.
852 (struct rust_vtable_symbol): Update.
853 * xcoffread.c (SYMBOL_DUP): Update.
854
ed2c82c3
TT
8552019-11-12 Tom Tromey <tom@tromey.com>
856
857 * tui/tui-layout.c (show_layout): Set current_layout.
858 (show_source_disasm_command, show_data)
859 (show_source_or_disasm_and_command): Don't set current_layout.
860
d9fcefd5
TT
8612019-11-12 Tom Tromey <tom@tromey.com>
862
863 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
864
45e42163
TT
8652019-11-12 Tom Tromey <tom@tromey.com>
866
867 * tui/tui-win.c (resize_message): New global.
868 (show_tui_resize_message): New function.
869 (tui_async_resize_screen): Print message if requested.
870 (_initialize_tui_win): Add tui-resize-message setting.
871 * NEWS: Add entry for new commands.
872
c86d74cc
TT
8732019-11-11 Tom Tromey <tom@tromey.com>
874
875 * tui/tui.c (tui_initialize_readline): Add new bindable readline
876 functions.
877
7b7b9424
CB
8782019-11-11 Christian Biesinger <cbiesinger@google.com>
879
880 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
881
086baaf1
AB
8822019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
885 function.
886 * python/python-internal.h (gdbpy_lookup_static_symbols):
887 Declare new function.
888 * python/python.c (python_GdbMethods): Add
889 gdb.lookup_static_symbols method.
890 * NEWS: Mention gdb.lookup_static_symbols.
891
09ff83af
AB
8922019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
895 static block of current object file first. Also fix typo in
896 header comment.
897
eb2dd8df
AB
8982019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * stack.c (set_last_displayed_sal): Delete.
901 (last_displayed_sal_valid): Delete.
902 (last_displayed_pspace): Delete.
903 (last_displayed_addr): Delete.
904 (last_displayed_symtab): Delete.
905 (last_displayed_line): Delete.
906 (class last_displayed_symtab_info_type): New.
907 (last_displayed_symtab_info): New static global variable.
908 (print_frame_info): Call methods on last_displayed_symtab_info.
909 (clear_last_displayed_sal): Update header comment, and make use of
910 last_displayed_symtab_info.
911 (last_displayed_sal_is_valid): Likewise.
912 (get_last_displayed_pspace): Likewise.
913 (get_last_displayed_addr): Likewise.
914 (get_last_displayed_symtab): Likewise.
915 (get_last_displayed_line): Likewise.
916 (get_last_displayed_sal): Likewise.
917 * stack.h (clear_last_displayed_sal): Update header comment.
918 (last_displayed_sal_is_valid): Likewise.
919 (get_last_displayed_pspace): Likewise.
920 (get_last_displayed_addr): Likewise.
921 (get_last_displayed_symtab): Likewise.
922 (get_last_displayed_line): Likewise.
923 (get_last_displayed_sal): Likewise.
924
62137775
AB
9252019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * stack.c (frame_show_address): Convert return type to bool.
928 * stack.h (frame_show_address): Likewise, and update header
929 comment.
930
cf57ad6d
AB
9312019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
934 * unittests/vec-utils-selftests.c: New file.
935 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
936
0b026263
TT
9372019-11-10 Tom Tromey <tom@tromey.com>
938
939 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
940 (tui_highlight_win): Likewise.
941 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
942 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
943 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
944 Don't set can_highlight.
945
b049ce2d
TT
9462019-11-10 Tom Tromey <tom@tromey.com>
947
948 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
949 Remove unused declaration.
950
992a7040
TT
9512019-11-08 Tom Tromey <tromey@adacore.com>
952
953 * top.c (read_command_file): Update.
954 (command_line_input): Make return type const.
955 * python/py-gdb-readline.c: Update.
956 * linespec.c (decode_line_2): Update.
957 * defs.h (command_line_input): Make return type const.
958 * cli/cli-script.c (read_next_line): Make return type const.
959 * ada-lang.c (get_selections): Update.
960
ca3a04f6
CB
9612019-11-06 Christian Biesinger <cbiesinger@google.com>
962
963 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
964 * mi/mi-main.c (output_cores): Likewise.
965 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
966 (linux_xfer_osdata_modules): Likewise.
967 * remote.c (register_remote_support_xml): Likewise.
968 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
969 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
970
e0eac551
TT
9712019-11-06 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-interp.c: Don't include readline.h.
974 * tui/tui-hooks.c: Don't include readline.h.
975 * symmisc.c: Include tilde.h, not readline.h.
976 * symfile.c: Include tilde.h, not readline.h.
977 * source.c: Include tilde.h, not readline.h.
978 * solib.c: Include tilde.h, not readline.h.
979 * psymtab.c: Include tilde.h, not readline.h.
980 * exec.c: Include tilde.h, not readline.h.
981 * corelow.c: Include tilde.h, not readline.h.
982 * cli/cli-dump.c: Include tilde.h, not readline.h.
983 * cli/cli-cmds.c: Don't include readline.h.
984
825165c5
TT
9852019-11-05 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
988 (tui_disassemble): Set addr_size.
989 (tui_disasm_window::set_contents): Use addr_size.
990
91ae903f
TT
9912019-11-05 Tom Tromey <tom@tromey.com>
992
993 * rust-lang.c (rust_language_defn): Update.
994 * python/py-value.c (valpy_string): Call c_get_string.
995 * p-lang.c (pascal_language_defn): Update.
996 * opencl-lang.c (opencl_language_defn): Update.
997 * objc-lang.c (objc_language_defn): Update.
998 * m2-lang.c (m2_language_defn): Update.
999 * language.c (unknown_language_defn, auto_language_defn): Update.
1000 (default_get_string): Remove.
1001 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1002 * go-lang.c (go_language_defn): Update.
1003 * f-lang.c (f_language_defn): Update.
1004 * d-lang.c (d_language_defn): Update.
1005 * c-lang.c (c_language_defn, cplus_language_defn)
1006 (asm_language_defn, minimal_language_defn): Update.
1007 * ada-lang.c (ada_language_defn): Update.
1008 * language.h (struct language_defn) <la_get_string>: Remove.
1009 (LA_GET_STRING): Remove.
1010 (default_get_string): Don't declare.
1011
1df2f9ef
TT
10122019-11-05 Tom Tromey <tom@tromey.com>
1013
1014 * tui/tui-source.h (struct tui_source_window): Inline
1015 constructor. Remove destructor.
1016 <style_changed, m_observable>: Move to superclass.
1017 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1018 (struct tui_source_window_base): Move private members to end.
1019 <style_changed, m_observable>: Move from tui_source_window.
1020 * tui/tui-winsource.c (tui_copy_source_line): Move from
1021 tui-source.c. Rename from copy_source_line. Add special handling
1022 for negative line number.
1023 (tui_source_window_base::style_changed): Move from
1024 tui_source_window.
1025 (tui_source_window_base): Register observer.
1026 (~tui_source_window_base): New.
1027 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1028 rename.
1029 (tui_source_window::set_contents): Use tui_copy_source_line.
1030 (tui_source_window::tui_source_window): Move to tui-source.h.
1031 (tui_source_window::~tui_source_window): Remove.
1032 (tui_source_window::style_changed): Move to superclass.
1033 * tui/tui-disasm.c (tui_disassemble): Create string file with
1034 styling, when possible. Add "addr_size" parameter.
1035 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1036 Don't compute maximum size.
1037 (len_without_escapes): New function
1038
5d051055
TT
10392019-11-05 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1042 std::string.
1043 * tui/tui-winsource.c (tui_show_source_line): Update.
1044 * tui/tui-source.c (tui_source_window::set_contents): Update.
1045 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1046
ade7beea
CB
10472019-11-05 Christian Biesinger <cbiesinger@google.com>
1048
1049 * symtab.h (gdb_static_assert): Put && operator at the beginning
1050 of the line instead of the end.
1051
3573abe1
CB
10522019-11-04 Christian Biesinger <cbiesinger@google.com>
1053
1054 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1055 and sizeof (symbol).
1056 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1057
dae8b3eb
RO
10582019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1059
1060 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1061 * configure.host: Mark *-*-solaris2.10* obsolete.
1062 * configure.tgt: Mark Solaris < 11 obsolete.
1063 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1064 Update target triplet.
1065
5df96a4e
TT
10662019-11-01 Tom Tromey <tromey@adacore.com>
1067
1068 * utils.c (print_sys_errmsg): Simplify.
1069
b7481649
TT
10702019-11-01 Tom Tromey <tromey@adacore.com>
1071
1072 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1073
e48f6033
CB
10742019-11-01 Christian Biesinger <cbiesinger@google.com>
1075
1076 * configure: Regenerate.
1077 * configure.ac: Remove check for strerror_r.
1078 * gdbsupport/common.m4: Check for strerror_r.
1079
bd5766ec
LM
10802019-11-01 Luis Machado <luis.machado@linaro.org>
1081
1082 PR gdb/25124
1083
1084 * arm-tdep.c (arm_per_objfile): Rename to ...
1085 (arm_per_bfd): ... this.
1086 (arm_objfile_data_key): Rename to ...
1087 (arm_bfd_data_key): ... this.
1088 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1089 data.
1090 (arm_record_special_symbol): Likewise.
1091
e1709896
AB
10922019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1095 end.
1096 * c-typeprint.c (c_print_typedef): Likewise.
1097 * f-typeprint.c (f_print_typedef): Likewise.
1098 * m2-typeprint.c (m2_print_typedef): Likewise.
1099 * p-typeprint.c (pascal_print_typedef): Likewise.
1100 * rust-lang.c (rust_print_typedef): Likewise.
1101 * symtab.c (print_symbol_info): Print a newline after calling
1102 typedef_print.
1103
165f8965
AB
11042019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * symtab.c (info_module_cmdlist): New variable.
1107 (info_module_command): New function.
1108 (search_module_symbols): New function.
1109 (info_module_subcommand): New function.
1110 (struct info_modules_var_func_options): New struct.
1111 (info_modules_var_func_options_defs): New variable.
1112 (make_info_modules_var_func_options_def_group): New function.
1113 (info_module_functions_command): New function.
1114 (info_module_variables_command): New function.
1115 (info_module_var_func_command_completer): New function.
1116 (_initialize_symtab): Register new 'info module functions' and
1117 'info module variables' commands.
1118 * symtab.h (typedef symbol_search_in_module): New typedef.
1119 (search_module_symbols): Declare new function.
1120 * NEWS: Mention new commands.
1121
59c35742
AB
11222019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1125 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1126 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1127 MODULES_DOMAIN.
1128 (scan_partial_symbols): Only create partial module symbols for non
1129 declarations.
1130 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1131 and MODULES_DOMAIN.
1132 * symtab.c (search_domain_name): Likewise.
1133 (search_symbols): Likewise.
1134 (print_symbol_info): Likewise.
1135 (symtab_symbol_info): Likewise.
1136 (info_modules_command): New function.
1137 (_initialize_symtab): Register 'info modules' command.
1138 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1139 * NEWS: Mention new 'info modules' command.
1140
aed61d02
PW
11412019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1142
1143 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1144 and $_gdb_maint_setting_str.
1145
9ad9b77d
PW
11462019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1147
1148 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1149 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1150 (str_value_from_setting, gdb_setting_str_internal_fn)
1151 (gdb_maint_setting_str_internal_fn): New functions.
1152 (_initialize_cli_cmds): Define the new convenience functions.
1153 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1154 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1155
8d6efaa2
CB
11562019-10-31 Christian Biesinger <cbiesinger@google.com>
1157
1158 * agent.c (set_can_use_agent): When the setting is turned on,
1159 look up agent symbols if we don't have them yet.
1160 (agent_new_objfile): Don't look up agent symbols when the agent
1161 setting is off.
1162
33cb1647
CB
11632019-10-31 Christian Biesinger <cbiesinger@google.com>
1164
1165 * config.in: Regenerate.
1166
b231e86a
CB
11672019-10-31 Christian Biesinger <cbiesinger@google.com>
1168
1169 * configure: Regenerate.
1170 * configure.ac: Check for strerror_r.
1171 * gdbsupport/common-utils.h (safe_strerror): Change return value
1172 to const char * and document that this function is now threadsafe.
1173 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1174 thread_local and call strerror_r, if available.
1175 * utils.c (perror_string): Update.
1176 (print_sys_errmsg): Update.
1177
a2726d4f
LM
11782019-10-31 Luis Machado <luis.machado@linaro.org>
1179
1180 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1181 objfile_key.
1182 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1183 objfile to fetch per-bfd data.
1184 (arm_find_exidx_entry): Likewise.
1185
75cafaa6
CB
11862019-10-31 Christian Biesinger <cbiesinger@google.com>
1187
1188 * gdbsupport/agent.c (debug_agent): Change type to bool.
1189 (use_agent): Likewise.
1190 (all_agent_symbols_look_up): Likewise.
1191 (agent_loaded_p): Change return value to bool.
1192 (agent_look_up_symbols): Update.
1193 (agent_capability_check): Change return value to bool.
1194 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1195 (debug_agent): Change type to bool.
1196 (use_agent): Likewise.
1197 (agent_capability_check): Change return value to bool.
1198
808590ec
CB
11992019-10-30 Christian Biesinger <cbiesinger@google.com>
1200
1201 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1202 (build_minimal_symbol_hash_tables): Code to clear the table moved
1203 to clear_minimal_symbol_hash_tables.
1204 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1205 when needed.
1206
f18ad8a1
SM
12072019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * infcmd.c: Remove includes.
1210 * infrun.c: Remove includes.
1211
de93309a
SM
12122019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1213
1214 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1215 (grow_vect): Remove declaration.
1216 (ada_type_of_array): Remove declaration.
1217 (ada_update_initial_language): Remove declaration.
1218 (ada_fold_name): Remove declaration.
1219 (ada_fill_in_ada_prototype): Remove declaration.
1220 (user_select_syms): Remove declaration.
1221 (get_selections): Remove declaration.
1222 (ada_tag_type): Remove declaration.
1223 (ada_value_tag): Remove declaration.
1224 (ada_is_others_clause): Remove declaration.
1225 (ada_in_variant): Remove declaration.
1226 (ada_value_struct_elt): Remove declaration.
1227 (ada_attribute_name): Remove declaration.
1228 (ada_system_address_type): Remove declaration.
1229 * ada-lang.c (ada_watch_location_expression): Make static.
1230 (GROW_VECT): Move here from ada-lang.h.
1231 (grow_vect): Make static.
1232 (ada_update_initial_language): Make static.
1233 (ada_fold_name): Make static.
1234 (ada_type_of_array): Make static.
1235 (encoded_ordered_before): Move up.
1236 (sort_choices): Move up.
1237 (print_signatures): Move up.
1238 (ada_print_symbol_signature): Move up.
1239 (get_selections): Move up and make static.
1240 (user_select_syms): Move up and make static.
1241 (ada_value_struct_elt): Move up and make static.
1242 (ada_tag_type): Make static.
1243 (ada_value_tag): Make static.
1244 (ada_is_others_clause): Make static.
1245 (ada_in_variant): Make static.
1246 (ada_attribute_name): Make static.
1247
cdc46a9f
SM
12482019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1249
1250 * ada-lang.c: Remove includes.
1251 * ada-typeprint.c: Remove includes.
1252 * ada-valprint.c: Remove includes.
1253
90421c56
SM
12542019-10-29 Simon Marchi <simon.marchi@efficios.com>
1255
1256 * addrmap.c: Add static assertions of type size, moved from
1257 _initialize_addrmap.
1258 (_initialize_addrmap): Remove.
1259
31edb802
CB
12602019-10-29 Christian Biesinger <cbiesinger@google.com>
1261
1262 * coffread.c (record_minimal_symbol): Update.
1263 (process_coff_symbol): Update.
1264 * dbxread.c (read_dbx_symtab): Update.
1265 * dwarf2read.c (add_partial_symbol): Update.
1266 (fixup_go_packaging): Update.
1267 (load_partial_dies): Update.
1268 (new_symbol): Update.
1269 * elfread.c (record_minimal_symbol): Change signature to use
1270 gdb::string_view instead of name+len.
1271 (elf_symtab_read): Update.
1272 (elf_rel_plt_read): Update.
1273 * mdebugread.c (parse_partial_symbols): Update.
1274 (handle_psymbol_enumerators): Update.
1275 (new_symbol): Update.
1276 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1277 to use gdb::string_view instead of name+len.
1278 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1279 * psympriv.h (add_psymbol_to_list): Likewise.
1280 * psymtab.c (add_psymbol_to_bcache): Likewise.
1281 (add_psymbol_to_list): Likewise.
1282 * stabsread.c (define_symbol): Update.
1283 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1284 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1285 (symbol_set_names): Likewise.
1286 * xcoffread.c (scan_xcoff_symtab): Update.
1287
0c921b21
CB
12882019-10-29 Christian Biesinger <cbiesinger@google.com>
1289
1290 * symtab.h (symbol_set_names): Document that copy_name must be
1291 set to true for non-nullterminated strings.
1292 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1293 linkage_name if the entry was not found and we need to demangle.
1294
35e65c49
CB
12952019-10-29 Christian Biesinger <cbiesinger@google.com>
1296
1297 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1298 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1299 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1300 * gdbsupport/gdb_binary_search.h: New file.
1301
ed2a2229
CB
13022019-10-29 Christian Biesinger <cbiesinger@google.com>
1303
1304 * NEWS: Mention new --with-system-gdbinit-dir option.
1305 * config.in: Regenerate.
1306 * configure: Regenerate.
1307 * configure.ac: Add new option --with-system-gdbinit-dir.
1308 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1309 for a ".gdb" suffix.
1310 * main.c (get_init_files): Change system_gdbinit argument to
1311 a vector and return the files in SYSTEM_GDBINIT_DIR in
1312 addition to SYSTEM_GDBINIT.
1313 (captured_main_1): Update.
1314 (print_gdb_help): Update.
1315 * top.c (print_gdb_configuration): Also print the value of
1316 SYSTEM_GDBINIT_DIR.
1317
87f34879
CB
13182019-10-28 Christian Biesinger <cbiesinger@google.com>
1319
1320 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1321 that takes gdb::string_view arguments.
1322
30baf67b
TV
13232019-10-26 Tom de Vries <tdevries@suse.de>
1324
1325 * aarch64-linux-tdep.c: Fix typos in comments.
1326 * aarch64-tdep.c: Same.
1327 * ada-lang.c: Same.
1328 * amd64-nat.c: Same.
1329 * arc-tdep.c: Same.
1330 * arch/aarch64-insn.c: Same.
1331 * block.c: Same.
1332 * breakpoint.h: Same.
1333 * btrace.h: Same.
1334 * c-varobj.c: Same.
1335 * cli/cli-decode.c: Same.
1336 * cli/cli-script.c: Same.
1337 * cli/cli-utils.h: Same.
1338 * coff-pe-read.c: Same.
1339 * coffread.c: Same.
1340 * compile/compile-cplus-symbols.c: Same.
1341 * compile/compile-object-run.c: Same.
1342 * completer.c: Same.
1343 * corelow.c: Same.
1344 * cp-support.c: Same.
1345 * demangle.c: Same.
1346 * dwarf-index-write.c: Same.
1347 * dwarf2-frame.c: Same.
1348 * dwarf2-frame.h: Same.
1349 * eval.c: Same.
1350 * frame-base.h: Same.
1351 * frame.h: Same.
1352 * gdbcmd.h: Same.
1353 * gdbtypes.h: Same.
1354 * gnu-nat.c: Same.
1355 * guile/scm-objfile.c: Same.
1356 * i386-tdep.c: Same.
1357 * i386-tdep.h: Same.
1358 * infcall.c: Same.
1359 * infcall.h: Same.
1360 * linux-nat.c: Same.
1361 * m68k-tdep.c: Same.
1362 * macroexp.c: Same.
1363 * memattr.c: Same.
1364 * mi/mi-cmd-disas.c: Same.
1365 * mi/mi-getopt.h: Same.
1366 * mi/mi-main.c: Same.
1367 * minsyms.c: Same.
1368 * nat/aarch64-sve-linux-sigcontext.h: Same.
1369 * objfiles.h: Same.
1370 * ppc-linux-nat.c: Same.
1371 * ppc-linux-tdep.c: Same.
1372 * ppc-tdep.h: Same.
1373 * progspace.h: Same.
1374 * prologue-value.h: Same.
1375 * python/py-evtregistry.c: Same.
1376 * python/py-instruction.h: Same.
1377 * record-btrace.c: Same.
1378 * record-full.c: Same.
1379 * remote.c: Same.
1380 * rs6000-tdep.c: Same.
1381 * ser-tcp.c: Same.
1382 * sol-thread.c: Same.
1383 * sparc-sol2-tdep.c: Same.
1384 * sparc64-tdep.c: Same.
1385 * stabsread.c: Same.
1386 * symfile.c: Same.
1387 * symtab.h: Same.
1388 * target.c: Same.
1389 * tracepoint.c: Same.
1390 * tui/tui-data.h: Same.
1391 * tui/tui-io.c: Same.
1392 * tui/tui-win.c: Same.
1393 * tui/tui.c: Same.
1394 * unittests/rsp-low-selftests.c: Same.
1395 * user-regs.h: Same.
1396 * utils.c: Same.
1397 * utils.h: Same.
1398 * valarith.c: Same.
1399 * valops.c: Same.
1400 * valprint.c: Same.
1401 * valprint.h: Same.
1402 * value.c: Same.
1403 * value.h: Same.
1404 * varobj.c: Same.
1405 * x86-nat.h: Same.
1406 * xtensa-tdep.c: Same.
1407
1834d45f
AT
14082019-10-25 Ali Tamur <tamur@google.com>
1409
1410 * charset.c (find_charset_names): Reflect API change.
1411
5396ae17
CB
14122019-10-25 Christian Biesinger <cbiesinger@google.com>
1413
1414 * symtab.c (struct demangled_name_entry): Change demangled name
1415 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1416 part of the struct anymore.
1417 (symbol_set_names): No longer obstack allocate + copy the demangled
1418 name, just store the allocated name from bfd.
1419
93878f47
TT
14202019-10-25 Tom Tromey <tromey@adacore.com>
1421
1422 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1423 (bsearch_cie_cmp, add_cie): Remove.
1424 (find_cie): Reimplement.
1425 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1426 (dwarf2_build_frame_info): Update.
1427
7b71fc97
L
14282019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1429
1430 PR gdb/25126
1431 * symfile.c (reread_symbols): Call forget_cached_source_info to
1432 clear the stale source cache.
1433
cbb5a2ea
CB
14342019-10-24 Christian Biesinger <cbiesinger@google.com>
1435
1436 * configure: Regenerate.
1437 * configure.ac: Remove code that sets python_has_threads.
1438
71737c43
CB
14392019-10-24 Christian Biesinger <cbiesinger@google.com>
1440
1441 * config.in: Regenerate.
1442 * configure: Regenerate.
1443 * configure.ac: Remove the code that uses sed to get the python
1444 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1445
33d569b7
AB
14462019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1449 error paths.
1450
f16f7b7c
TT
14512019-10-23 Tom Tromey <tom@tromey.com>
1452
1453 * arc-tdep.c: Remove ".." from include.
1454 * frv-tdep.c: Remove ".." from include.
1455 * lm32-tdep.c: Remove ".." from include.
1456 * microblaze-tdep.c: Remove ".." from include.
1457 * or1k-tdep.h: Remove ".." from include.
1458 * s12z-tdep.c: Remove ".." from include.
1459 * Makefile.in (OPCODES_CFLAGS): Add comment.
1460 (TOP_CFLAGS): New variable.
1461 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1462
6999161a
TT
14632019-10-23 Tom Tromey <tom@tromey.com>
1464
1465 * Makefile.in (READLINE_DIR): Update.
1466
12e7c35e
TBA
14672019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468
1469 * infcall.c (call_function_by_hand_dummy): Fix the function
1470 comment. And extract out a code section into...
1471 (reserve_stack_space): ...this new function.
1472
37055cad
TBA
14732019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1474
1475 * infcall.c (value_arg_coerce): Remove an unused parameter.
1476 (call_function_by_hand_dummy): Update the call to
1477 'value_arg_coerce'.
1478
39bcc47c
TBA
14792019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1480
1481 * infcall.c (call_function_by_hand_dummy): Refactor.
1482
bd888c0f
TBA
14832019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1484
1485 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1486
c12d372d
TT
14872019-10-23 Tom Tromey <tom@tromey.com>
1488
1489 * configure: Rebuild.
1490 * configure.ac: Don't check for sigprocmask.
1491 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1492
4d0b984b
TT
14932019-10-23 Tom Tromey <tom@tromey.com>
1494
1495 * configure: Rebuild.
1496 * acinclude.m4: Use m4_include, not sinclude.
1497
7e785608
TV
14982019-10-23 Tom de Vries <tdevries@suse.de>
1499
1500 PR breakpoints/24687
1501 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1502
403772ef
CB
15032019-10-22 Christian Biesinger <cbiesinger@google.com>
1504
1505 * symtab.c (struct demangled_name_entry) <language>: Change from
1506 bitfield to regular variable.
1507
3a494279
CB
15082019-10-22 Christian Biesinger <cbiesinger@google.com>
1509
1510 * symtab.c (struct demangled_name_entry): Add a constructor.
1511 (free_demangled_name_entry): New function to call the destructor
1512 for demangled_name_entry.
1513 (create_demangled_names_hash): Pass free_demangled_name_entry to
1514 htab_create_alloc.
1515 (symbol_set_names): Call placement new for demangled_name_entry.
1516 * utils.c: No longer include xxhash.h here, now that fast_hash
1517 is inlined in the header.
1518 * utils.h: Instead, include it here.
1519
ccb1ba62
CB
15202019-10-22 Christian Biesinger <cbiesinger@google.com>
1521
1522 * Makefile.in: Link with libxxhash.
1523 * config.in: Regenerate.
1524 * configure: Regenerate.
1525 * configure.ac: Search for libxxhash.
1526 * utils.c (fast_hash): Use xxhash if present.
1527
1a6ff1a9
CB
15282019-10-22 Christian Biesinger <cbiesinger@google.com>
1529
1530 * utils.h (fast_hash): New function.
1531 * symtab.c (hash_demangled_name_entry): Call new function
1532 fast_hash.
1533
7bb43059
CB
15342019-10-22 Christian Biesinger <cbiesinger@google.com>
1535
1536 * symtab.c (struct demangled_name_entry): Change type of mangled
1537 to gdb::string_view. Also adds a constructor that takes the
1538 mangled name.
1539 (hash_demangled_name_entry): Update.
1540 (eq_demangled_name_entry): Update.
1541 (free_demangled_name_entry): New function to call the destructor
1542 now that this is not a POD anymore.
1543 (create_demangled_names_hash): Pass free_demangled_name_entry to
1544 htab_create_alloc.
1545 (symbol_set_names): Update.
1546
7ba99d21
AT
15472019-10-21 Ali Tamur <tamu@google.com>
1548
1549 * dwarf2read.c (dir_index): Change type.
1550 (file_name_index): Likewise.
1551 (line_header::include_dir_at): Change comment and implementation on
1552 whether it is DWARF 5.
1553 (line_header::is_valid_file_index): New function.
1554 (line_header::file_name_at): Change comment and implementation on
1555 whether it is DWARF 5.
1556 (line_header::file_names): Change to private field renamed as
1557 m_file_names and introduce a new accessor method.
1558 (line_header::file_names_size): New method.
1559 (line_header::include_dirs): Change to private field and rename as
1560 m_include_dirs.
1561 (dw2_get_file_names_reader): Define local var at a smaller scope and
1562 reflect API change.
1563 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1564 (process_structure_scope): Likewise.
1565 (line_header::add_include_dir): Change message and reflect renaming.
1566 (line_header::add_file_name): Likewise.
1567 (read_formatted_entries): Handle DW_FORM_data16.
1568 (dwarf_decode_line_header): Fix line header length calculation.
1569 (psymtab_include_file_name): Change comment and API.
1570 (lnp_state_machine::m_file): Update comment and reflect type change.
1571 (lnp_state_machine::record_line): Reflect type change.
1572 (dwarf_decode_lines): Reflect API change.
1573 (file_file_name): Likewise.
1574 (file_full_name): Likewise.
1575
45f47c3a
AB
15762019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1579
e5f3c0e3
TT
15802019-10-21 Tom Tromey <tom@tromey.com>
1581
1582 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1583
a0a461e5
TT
15842019-10-21 Tom Tromey <tom@tromey.com>
1585
1586 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1587 NM_H. Use AC_CONFIG_LINKS.
1588 * configure: Rebuild.
1589 * Makefile.in (NM_H): New variable.
1590 (generated_files): Add NM_H. Remove gcore.
1591 (nm.h, stamp-nmh): New targets.
1592
54d83b8d
TT
15932019-10-20 Tom Tromey <tom@tromey.com>
1594
1595 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1596 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1597 obsolete comment.
1598 (put_objfile_before): Now static.
1599
23771117
SM
16002019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1601
1602 * gdbsupport/common-utils.h (startswith): Change return type to
1603 bool.
1604
39ef2f62
CB
16052019-10-19 Christian Biesinger <cbiesinger@google.com>
1606
1607 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1608 * breakpoint.c (bp_locations_compare): Rename to...
1609 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1610 (update_global_location_list): Use std::sort instead of qsort.
1611 * buildsym.c (compare_line_numbers): Rename to...
1612 (lte_is_less_than): ...this, and change to std::sort semantics.
1613 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1614 instead of qsort.
1615 * disasm.c (compare_lines): Rename to...
1616 (line_is_less_than): ...this, and change to std::sort semantics.
1617 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1618 of qsort.
1619 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1620 (fde_is_less_than): ...this, and change to std::sort semantics.
1621 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1622 * mdebugread.c (compare_blocks):
1623 (block_is_less_than): ...this, and change to std::sort semantics.
1624 (sort_blocks): Call std::sort instead of qsort.
1625 * objfiles.c (qsort_cmp): Rename to...
1626 (sort_cmp): ...this, and change to std::sort semantics.
1627 (update_section_map): Call std::sort instead of qsort.
1628 * remote.c (compare_pnums): Remove.
1629 (map_regcache_remote_table): Call std::sort instead of qsort.
1630 * utils.c (compare_positive_ints): Remove.
1631 * utils.h (compare_positive_ints): Remove.
1632 * xcoffread.c (compare_lte): Remove.
1633 (arrange_linetable): Call std::sort instead of qsort.
1634
f71433ee
SDJ
16352019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1636
1637 * symfile.c (init_entry_point_info): Fix typo.
1638 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1639
85102364
TV
16402019-10-18 Tom de Vries <tdevries@suse.de>
1641
1642 * aarch64-tdep.c: Fix typos in comments.
1643 * ada-lang.c: Same.
1644 * ada-tasks.c: Same.
1645 * alpha-tdep.c: Same.
1646 * alpha-tdep.h: Same.
1647 * amd64-nat.c: Same.
1648 * amd64-windows-tdep.c: Same.
1649 * arc-tdep.c: Same.
1650 * arc-tdep.h: Same.
1651 * arch-utils.c: Same.
1652 * arm-nbsd-tdep.c: Same.
1653 * arm-tdep.c: Same.
1654 * ax-gdb.c: Same.
1655 * blockframe.c: Same.
1656 * btrace.c: Same.
1657 * c-varobj.c: Same.
1658 * coff-pe-read.c: Same.
1659 * coffread.c: Same.
1660 * cris-tdep.c: Same.
1661 * darwin-nat.c: Same.
1662 * dbxread.c: Same.
1663 * dcache.c: Same.
1664 * disasm.c: Same.
1665 * dtrace-probe.c: Same.
1666 * dwarf-index-write.c: Same.
1667 * dwarf2-frame-tailcall.c: Same.
1668 * dwarf2-frame.c: Same.
1669 * dwarf2read.c: Same.
1670 * eval.c: Same.
1671 * exceptions.c: Same.
1672 * fbsd-tdep.c: Same.
1673 * findvar.c: Same.
1674 * frame.c: Same.
1675 * frv-tdep.c: Same.
1676 * gnu-v3-abi.c: Same.
1677 * go32-nat.c: Same.
1678 * h8300-tdep.c: Same.
1679 * hppa-tdep.c: Same.
1680 * i386-linux-tdep.c: Same.
1681 * i386-tdep.c: Same.
1682 * ia64-libunwind-tdep.c: Same.
1683 * ia64-tdep.c: Same.
1684 * infcmd.c: Same.
1685 * infrun.c: Same.
1686 * linespec.c: Same.
1687 * linux-nat.c: Same.
1688 * linux-thread-db.c: Same.
1689 * machoread.c: Same.
1690 * mdebugread.c: Same.
1691 * mep-tdep.c: Same.
1692 * mn10300-tdep.c: Same.
1693 * namespace.c: Same.
1694 * objfiles.c: Same.
1695 * opencl-lang.c: Same.
1696 * or1k-tdep.c: Same.
1697 * osabi.c: Same.
1698 * ppc-linux-nat.c: Same.
1699 * ppc-linux-tdep.c: Same.
1700 * ppc-sysv-tdep.c: Same.
1701 * printcmd.c: Same.
1702 * procfs.c: Same.
1703 * record-btrace.c: Same.
1704 * record-full.c: Same.
1705 * remote-fileio.c: Same.
1706 * remote.c: Same.
1707 * rs6000-tdep.c: Same.
1708 * s12z-tdep.c: Same.
1709 * score-tdep.c: Same.
1710 * ser-base.c: Same.
1711 * ser-go32.c: Same.
1712 * skip.c: Same.
1713 * sol-thread.c: Same.
1714 * solib-svr4.c: Same.
1715 * solib.c: Same.
1716 * source.c: Same.
1717 * sparc-nat.c: Same.
1718 * sparc-sol2-tdep.c: Same.
1719 * sparc-tdep.c: Same.
1720 * sparc64-tdep.c: Same.
1721 * stabsread.c: Same.
1722 * stack.c: Same.
1723 * symfile.c: Same.
1724 * symtab.c: Same.
1725 * target-descriptions.c: Same.
1726 * target-float.c: Same.
1727 * thread.c: Same.
1728 * utils.c: Same.
1729 * valops.c: Same.
1730 * valprint.c: Same.
1731 * value.c: Same.
1732 * varobj.c: Same.
1733 * windows-nat.c: Same.
1734 * xcoffread.c: Same.
1735 * xstormy16-tdep.c: Same.
1736 * xtensa-tdep.c: Same.
1737
c5adaa19
TT
17382019-10-17 Tom Tromey <tromey@adacore.com>
1739
1740 * configure: Rebuild.
1741 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1742 in AC_CONFIG_FILES invocation.
1743 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1744 new-style config.status invocation.
1745
405feb71
TV
17462019-10-17 Tom de Vries <tdevries@suse.de>
1747
1748 * arm-nbsd-nat.c: Fix typos in comments.
1749 * arm-tdep.c: Same.
1750 * darwin-nat-info.c: Same.
1751 * dwarf2read.c: Same.
1752 * elfread.c: Same.
1753 * event-top.c: Same.
1754 * findvar.c: Same.
1755 * gdbtypes.c: Same.
1756 * hppa-tdep.c: Same.
1757 * i386-tdep.c: Same.
1758 * jit.c: Same.
1759 * main.c: Same.
1760 * mdebugread.c: Same.
1761 * moxie-tdep.c: Same.
1762 * nto-procfs.c: Same.
1763 * osabi.c: Same.
1764 * ppc-linux-tdep.c: Same.
1765 * remote.c: Same.
1766 * riscv-tdep.c: Same.
1767 * s390-tdep.c: Same.
1768 * sh-tdep.c: Same.
1769 * sparc-linux-tdep.c: Same.
1770 * sparc-nat.c: Same.
1771 * stack.c: Same.
1772 * target-descriptions.c: Same.
1773 * top.c: Same.
1774 * varobj.c: Same.
1775
befcd486
TT
17762019-10-16 Tom Tromey <tom@tromey.com>
1777
1778 * objfiles.h (struct objfile) <original_name>: Now const.
1779
17bfe554
CB
17802019-10-16 Christian Biesinger <cbiesinger@google.com>
1781
1782 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1783 pass on to sigsetjmp's second argument.
1784 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1785
950b7495
KS
17862019-10-16 Keith Seitz <keiths@redhat.com>
1787
1788 PR gdb/23567
1789 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1790 sections whose size is greater than the file size.
1791
ff371ec9
JW
17922019-10-16 Jim Wilson <jimw@sifive.com>
1793
1794 * riscv-tdep.c (riscv_gcc_target_options): New.
1795 (riscv_gnu_triplet_regexp): New.
1796 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1797 set_gdbarch_gnu_triplet_regexp.
1798
fec4e896
CB
17992019-10-16 Christian Biesinger <cbiesinger@google.com>
1800
1801 * Makefile.in: Add xml-builtin.h.
1802 * features/feature_to_c.sh: Add an include for xml-builtin.h
1803 to ensure that the compiler checks that the types match.
1804 * xml-builtin.h: New file.
1805 * xml-support.c (fetch_xml_builtin): Add missing const.
1806 * xml-support.h: Remove declaration of xml_builtins.
1807
d10eccaa
TV
18082019-10-16 Tom de Vries <tdevries@suse.de>
1809
1810 PR tdep/25096
1811 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1812 (amd64_classify_aggregate): ... here.
1813 (amd64_classify_aggregate_field): Handled fiels of nested structs
1814 recursively.
1815
745ff14e
TV
18162019-10-16 Tom de Vries <tdevries@suse.de>
1817
1818 PR tdep/24104
1819 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1820 that handles 'theclass'.
1821
791b7405
AB
18222019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1823
1824 * linespec.c (decode_digits_ordinary): Update comment.
1825 * make-target-delegates: No longer need to handle VEC case.
1826 * memrange.c (normalize_mem_ranges): Update comment.
1827 * namespace.c (add_using_directive): Update comment.
1828 * objc-lang.c (uniquify_strings): Update comment.
1829 * ppc-linux-nat.c (struct thread_points): Update comment.
1830 * probe.h (find_probes_in_objfile): Update comment.
1831 * target.h (enum flash_preserve_mode): Update comment.
1832 * varobj.c (varobj_restrict_range): Update comment.
1833 * varobj.h (varobj_list_children): Update comment.
1834
0dc32745
AB
18352019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 * Makefile.in: Remove references to vec.h and vec.c.
1838 * aarch64-tdep.c: No longer include vec.h.
1839 * ada-lang.c: Likewise.
1840 * ada-lang.h: Likewise.
1841 * arm-tdep.c: Likewise.
1842 * ax.h: Likewise.
1843 * breakpoint.h: Likewise.
1844 * charset.c: Likewise.
1845 * cp-support.h: Likewise.
1846 * dtrace-probe.c: Likewise.
1847 * dwarf2read.c: Likewise.
1848 * extension.h: Likewise.
1849 * gdb_bfd.c: Likewise.
1850 * gdbsupport/gdb_vecs.h: Likewise.
1851 * gdbsupport/vec.c: Remove.
1852 * gdbsupport/vec.h: Remove.
1853 * gdbthread.h: Likewise.
1854 * guile/scm-type.c: Likewise.
1855 * inline-frame.c: Likewise.
1856 * machoread.c: Likewise.
1857 * memattr.c: Likewise.
1858 * memrange.h: Likewise.
1859 * namespace.h: Likewise.
1860 * nat/linux-btrace.h: Likewise.
1861 * osdata.c: Likewise.
1862 * parser-defs.h: Likewise.
1863 * progspace.h: Likewise.
1864 * python/py-type.c: Likewise.
1865 * record-btrace.c: Likewise.
1866 * rust-exp.y: Likewise.
1867 * solib-target.c: Likewise.
1868 * stap-probe.c: Likewise.
1869 * target-descriptions.c: Likewise.
1870 * target-memory.c: Likewise.
1871 * target.h: Likewise.
1872 * varobj.c: Likewise.
1873 * varobj.h: Likewise.
1874 * xml-support.h: Likewise.
1875
ae640021
AB
18762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1879 Update for new std::vector based implementation.
1880 (process_psymtab_comp_unit_reader): Likewise.
1881 (scan_partial_symbols): Likewise.
1882 (recursively_compute_inclusions): Likewise.
1883 (compute_compunit_symtab_includes): Likewise.
1884 (process_imported_unit_die): Likewise.
1885 (queue_and_load_dwo_tu): Likewise.
1886 (follow_die_sig_1): Likewise.
1887 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1888 (typedef dwarf2_per_cu_ptr): Remove.
1889 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1890 function.
1891 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1892 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1893 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1894 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1895 std::vector.
1896
55dfc88f
TT
18972019-10-15 Tom Tromey <tromey@adacore.com>
1898
1899 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1900 TID.
1901
96b49c5e
TT
19022019-10-15 Tom Tromey <tromey@adacore.com>
1903
1904 * windows-nat.c (windows_nat_target::fetch_registers)
1905 (windows_nat_target::store_registers): Rename "pid" to "tid".
1906
953cff56
TT
19072019-10-15 Tom Tromey <tromey@adacore.com>
1908
1909 * gdbarch.h, gdbarch.c: Rebuild.
1910 * gdbarch.sh (gcc_target_options): Change return type to
1911 std::string.
1912 * compile/compile.c (get_args): Update.
1913 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1914 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1915 std::string.
1916 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1917 std::string.
1918 * arch-utils.c (default_gcc_target_options): Return std::string.
1919 * arch-utils.h (default_gcc_target_options): Return std::string.
1920 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1921
81e6b8eb
CB
19222019-10-15 Christian Biesinger <cbiesinger@google.com>
1923
1924 * breakpoint.c (breakpoint_chain): Make static.
1925 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1926 of accessing breakpoint_chain.
1927
95da600f
CB
19282019-10-15 Christian Biesinger <cbiesinger@google.com>
1929
1930 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1931 to a gdb::function_view and return value to bool.
1932 * breakpoint.h (iterate_over_breakpoints): Likewise.
1933 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1934 (pop_dummy_frame): Update.
1935 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1936 (gdbscm_breakpoints): Update.
1937 * python/py-breakpoint.c (build_bp_list): Update.
1938 (gdbpy_breakpoints): Update.
1939 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1940 Update.
1941 (bpfinishpy_handle_stop): Update.
1942 (bpfinishpy_handle_exit): Update.
1943 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1944 (svr4_update_solib_event_breakpoints): Update.
1945
ba18312d
AA
19462019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1947
1948 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1949 when unwrapping single-field structs.
1950
6acc1a0b
SM
19512019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * dwarf2read.c: Remove includes.
1954
284782de
SM
19552019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1956
1957 * ui-out.c (ui_out::call_do_message): Silence
1958 -Wformat-nonliteral warning.
1959
073bbbb0
SM
19602019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1963 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1964 include: readline/tilde.h.
1965
7b9a15e1
CB
19662019-10-12 Christian Biesinger <cbiesinger@google.com>
1967
1968 * remote.c (remote_target::get_trace_status): Remove declaration of
1969 trace_regblock_size.
1970
cc8dee1f
CB
19712019-10-12 Christian Biesinger <cbiesinger@google.com>
1972
1973 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1974 (show_user): Remove declaration of cmdlist.
1975 * cli/cli-cmds.h (max_user_call_depth): Declare.
1976 * cli/cli-script.c (execute_user_command): Remove declaration
1977 of max_user_call_depth.
1978
a83d4ef6
JW
19792019-10-11 Jim Wilson <jimw@sifive.com>
1980
5f93c5a6
JW
1981 * gdbsupport/print-utils.h (pulongest): Fix comment.
1982 (plongest): Likewise.
1983 (phex): Add missing comment, mention leading zeros.
1984 (phex_nz): Add mention of no leading zeros to comment.
1985
a83d4ef6
JW
1986 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1987 plongest instead of unsigned long long cast.
1988
26344e0c
CB
19892019-10-10 Christian Biesinger <cbiesinger@google.com>
1990
1991 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1992 for external_editor_command and gdbtk_test.
1993
c2c440a9
CB
19942019-10-10 Christian Biesinger <cbiesinger@google.com>
1995
1996 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1997 * varobj.c (varobjdebug): Move comment to...
1998 * varobj.h (varobjdebug): ...here, and declare.
1999
a31bff9d
TT
20002019-10-09 Tom Tromey <tom@tromey.com>
2001
2002 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2003 erase_data_content.
2004
7523da63
TT
20052019-10-09 Tom Tromey <tom@tromey.com>
2006
2007 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2008 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2009 * tui/tui-command.c (tui_cmd_window::resize)
2010 (tui_refresh_cmd_win): Update.
2011 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2012 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2013 * tui/tui-data.c (~tui_gen_win_info): Remove.
2014 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2015 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2016 (tui_redisplay_readline, tui_mld_flush)
2017 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2018 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2019 (tui_data_window::erase_data_content)
2020 (tui_data_item_window::rerender)
2021 (tui_data_item_window::refresh_window): Update.
2022 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2023 (box_win, tui_gen_win_info::make_window)
2024 (tui_gen_win_info::make_visible): Update.
2025 (tui_delete_win): Remove.
2026 * tui/tui-winsource.c
2027 (tui_source_window_base::do_erase_source_content): Update.
2028 (tui_show_source_line, tui_source_window_base::update_tab_width)
2029 (tui_source_window_base::update_exec_info): Update.
2030 * tui/tui-data.h (struct curses_deleter): New.
2031 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2032 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2033
a7798e7f
TT
20342019-10-09 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2037
5c45899e
TT
20382019-10-09 Tom Tromey <tom@tromey.com>
2039
2040 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2041 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2042
6d7fd9aa
TT
20432019-10-09 Tom Tromey <tom@tromey.com>
2044
2045 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2046 window height directly.
2047 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2048 declare.
2049 * tui/tui-layout.c (tui_default_win_height): Remove.
2050 (tui_default_win_viewport_height): Remove.
2051
d2dd1084
TT
20522019-10-09 Tom Tromey <tom@tromey.com>
2053
2054 * tui/tui.h: Remove comments.
2055
cff32449
TV
20562019-10-09 Tom de Vries <tdevries@suse.de>
2057
2058 * python/lib/gdb/printer/bound_registers.py: Use
2059 '^builtin_type_bound128' as regexp argument for
2060 add_builtin_pretty_printer.
2061
6a25e8a2
CB
20622019-10-09 Christian Biesinger <cbiesinger@google.com>
2063
2064 * guile/guile.c (guile_extension_script_ops): Remove forward
2065 declaration and mark as static.
2066 (guile_script_ops): Likewise.
2067 (extension_language_guile): Move further down in the file so
2068 it can reference the definitions for guile_{extension_,}script_ops.
2069
6d9d6da4
AA
20702019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2071
2072 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2073 except SORTL, DFLTCC, and KDSA.
2074
3abea05d
TT
20752019-10-08 Tom Tromey <tromey@adacore.com>
2076
2077 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2078 (struct safe_symbol_file_add_args): Remove.
2079
dde996e2
TT
20802019-10-08 Tom Tromey <tromey@adacore.com>
2081
2082 * windows-nat.c: Don't include buildsym-legacy.h.
2083
cd6fdaa1
TT
20842019-10-08 Tom Tromey <tromey@adacore.com>
2085
2086 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2087
79bb1944
CB
20882019-10-08 Christian Biesinger <cbiesinger@google.com>
2089
2090 * gdbtypes.c (overload_debug): Move comment to header.
2091 * gdbtypes.h (overload_debug): Declare.
2092 * valops.c: Remove declaration of overload_debug, instead
2093 include gdbtypes.h.
2094
34916edc
CB
20952019-10-08 Christian Biesinger <cbiesinger@google.com>
2096
2097 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2098 through _().
2099 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2100 move comment...
2101 * language.h (lang_frame_mismatch_warn): ... here. Also add
2102 declaration.
2103 * top.c (lang_frame_mismatch_warn): Remove declaration.
2104 (check_frame_language_change): Pass lang_frame_mismatch_warn
2105 through _().
2106
bad5c026
CB
21072019-10-07 Christian Biesinger <cbiesinger@google.com>
2108
2109 * c-lang.h (vtbl_ptr_name): Declare.
2110 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2111 it from the header.
2112 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2113
51f1fdc3
CB
21142019-10-07 Christian Biesinger <cbiesinger@google.com>
2115
2116 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2117 gdb_static_assert.
2118
30d1f018
WP
21192019-10-07 Weimin Pan <weimin.pan@oracle.com>
2120
606813d5
WP
2121 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2122 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2123 * ctfread.c: New file.
2124 * ctfread.h: New file.
2125 * elfread.c: Include ctfread.h.
2126 (struct elfinfo text_p): New member ctfsect.
2127 (elf_locate_sections): Mark CTF section.
2128 (elf_symfile_read): Call elfctf_build_psymtabs.
2129 * Makefile.in (LIBCTF): Add.
2130 (CLIBS): Use it.
2131 (CDEPS): Likewise.
2132 (DIST): Add ctfread.c.
606813d5
WP
2133
21342019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * ctfread.c (struct nextfield): Renamed to ...
2137 (struct ctf_nextfield): ... this.
2138 (struct field_info): Renamed to ...
2139 (strut ctf_field_info): ... this.
2140 (attach_fields_to_type): Update for renamed structures.
2141 (ctf_add_member_cb): Likewise.
2142 (ctf_add_enum_member_cb): Likewise.
2143 (process_struct_members): Likewise.
2144 (process_enum_type): Likewise.
30d1f018 2145
518fe38c
WP
21462019-10-07 Weimin Pan <weimin.pan@oracle.com>
2147
2148 * tracectf.h: Rename, was ctf.h.
2149 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2150 * tracefile.c: Likewise.
2151 * tracepoint.c: Remove unused include ctf.h.
2152 * mi/mi-main.c: Likewise.
2153 * Makefile.in Replace ctf.c with tracectf.c.
2154
225f296a
JB
21552019-10-06 Joel Brobecker <brobecker@adacore.com>
2156
2157 * version.in: Change version number to "9.0.50.DATE-git".
2158
77c2dba3
TT
21592019-10-03 Tom Tromey <tom@tromey.com>
2160
2161 PR rust/24976:
2162 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2163
179aed7f
AB
21642019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2167 cp_search_name_hash.
2168 * NEWS: Add entry about nested function support.
2169
0a4b0913
AB
21702019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2171 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2174 for nested static variables when searchin VAR_DOMAIN.
2175 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2176 global scope, update comment.
2177 (add_partial_subprogram): Call add_partial_subprogram recursively
2178 for nested subroutines when processinng Fortran.
2179 (load_partial_dies): Process the child entities of a subprogram
2180 when processing Fortran.
2181 (partial_die_parent_scope): Handle building scope
2182 for Fortran nested functions.
2183 (process_die): Record that nested functions have a scope.
2184 (new_symbol): Always record Fortran subprograms on the global
2185 symbol list.
2186 (determine_prefix): How to build the prefix for Fortran
2187 subprograms.
2188
d8c06f22
AB
21892019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2192 have just sent the thread a SIGSTOP and are waiting for it to
2193 arrive.
2194
a8b3b8e9
AB
21952019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * btrace.c (btrace_add_pc): Remove whitespace before the template
2198 parameter in 'std::vector <...>'.
2199 (parse_xml_btrace_block): Likewise.
2200 (btrace_maint_decode_pt): Likewise.
2201 (btrace_maint_update_packets): Likewise.
2202 (btrace_maint_print_packets): Likewise.
2203 * btrace.h (struct btrace_maint_info): Likewise.
2204 * dwarf2read.c (struct type_unit_group): Likewise.
2205 (build_type_psymtabs_reader): Likewise.
2206 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2207 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2208 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2209
4d825eab
TV
22102019-10-03 Tom de Vries <tdevries@suse.de>
2211
2212 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2213 the first line of the help text for set/show style metadata.
2214
80fd2826
TT
22152019-10-02 Tom Tromey <tromey@adacore.com>
2216
2217 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2218 * gdbsupport/common-inferior.c: New file.
2219 * infcmd.c (startup_with_shell): Don't define.
2220 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2221 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2222 * inferior.h (startup_with_shell): Don't declare.
2223
70054538
CB
22242019-10-02 Christian Biesinger <cbiesinger@google.com>
2225
2226 * gdbsupport/gdb_assert.h: Include errors.h.
2227 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2228
37f6a7f4
TT
22292019-10-02 Tom Tromey <tromey@adacore.com>
2230
2231 * NEWS: Add $_ada_exception entry.
2232 * ada-lang.c (struct ada_catchpoint): Add constructor.
2233 <m_kind>: New member.
2234 (allocate_location_exception, re_set_exception): Remove
2235 "ex" parameter.
2236 (should_stop_exception): Compute $_ada_exception.
2237 (check_status_exception, print_it_exception)
2238 (print_one_exception, print_mention_exception): Remove
2239 "ex" parameter.
2240 (allocate_location_catch_exception, re_set_catch_exception)
2241 (check_status_exception, print_it_catch_exception)
2242 (print_one_catch_exception, print_mention_catch_exception)
2243 (print_recreate_catch_exception)
2244 (allocate_location_catch_exception_unhandled)
2245 (re_set_catch_exception_unhandled)
2246 (check_status_exception, print_it_catch_exception_unhandled)
2247 (print_one_catch_exception_unhandled)
2248 (print_mention_catch_exception_unhandled)
2249 (print_recreate_catch_exception_unhandled)
2250 (allocate_location_catch_assert, re_set_catch_assert)
2251 (check_status_assert, print_it_catch_assert)
2252 (print_one_catch_assert, print_mention_catch_assert)
2253 (print_recreate_catch_assert)
2254 (allocate_location_catch_handlers, re_set_catch_handlers)
2255 (check_status_handlers, print_it_catch_handlers)
2256 (print_one_catch_handlers, print_mention_catch_handlers)
2257 (print_recreate_catch_handlers): Remove.
2258 (create_ada_exception_catchpoint): Update.
2259 (initialize_ada_catchpoint_ops): Update.
2260
fccf9de1
TT
22612019-10-02 Tom Tromey <tromey@adacore.com>
2262
2263 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2264 (create_excep_cond_exprs): Simplify exception string computation.
2265 (ada_exception_catchpoint_cond_string): Likewise.
2266
4b610737
TT
22672019-10-02 Tom Tromey <tromey@adacore.com>
2268
2269 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2270 * ada-lang.c (lesseq_defined_than): Handle
2271 LOC_STATIC.
2272 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2273 parameter.
2274 (dwarf2_has_info): Likewise.
2275 (new_symbol): Set maybe_copied on symbol when
2276 appropriate.
2277 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2278 parameter.
2279 <can_copy>: New member.
2280 * elfread.c (record_minimal_symbol): Set maybe_copied
2281 on symbol when appropriate.
2282 (elf_symfile_read): Update call to dwarf2_has_info.
2283 * minsyms.c (lookup_minimal_symbol_linkage): New
2284 function.
2285 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2286 * symtab.c (get_symbol_address, get_msymbol_address):
2287 New functions.
2288 * symtab.h (get_symbol_address, get_msymbol_address):
2289 Declare.
2290 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2291 maybe_copied.
2292 (struct symbol, struct minimal_symbol) <maybe_copied>:
2293 New member.
2294
1dd58850
TT
22952019-10-02 Tom Tromey <tromey@adacore.com>
2296
2297 * source.c (struct current_source_location): New.
2298 (current_source_key): New global.
2299 (current_source_symtab, current_source_line)
2300 (current_source_pspace): Remove.
2301 (get_source_location): New function.
2302 (get_current_source_symtab_and_line)
2303 (set_default_source_symtab_and_line)
2304 (set_current_source_symtab_and_line)
2305 (clear_current_source_symtab_and_line, select_source_symtab)
2306 (info_source_command, print_source_lines_base)
2307 (info_line_command, search_command_helper, _initialize_source):
2308 Update.
2309
5c281dbb
TT
23102019-10-02 Tom Tromey <tromey@adacore.com>
2311
2312 * source.c (select_source_symtab): Don't call
2313 decode_line_with_current_source.
2314
d3d32391
AB
23152019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * symtab.c (lookup_global_symbol): Search global block.
2318
38583298
TT
23192019-10-02 Tom Tromey <tromey@adacore.com>
2320
2321 * coffread.c (process_coff_symbol): Update.
2322 * dwarf2read.c (var_decode_location, new_symbol): Update.
2323 * mdebugread.c (parse_symbol): Update.
2324 * objfiles.c (relocate_one_symbol): Update.
2325 * stabsread.c (define_symbol, fix_common_block)
2326 (scan_file_globals): Update.
2327 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2328 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2329 * xcoffread.c (process_xcoff_symbol): Update.
2330
9344c18f
AA
23312019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2332
2333 * MAINTAINERS: Update my email address.
2334
df07e2c7
AB
23352019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2338 std::vector.
2339 (build_type_psymtabs_reader): Update for std::vector.
2340 (build_type_psymtab_dependencies): Likewise.
2341 * dwarf2read.h: Remove use of DEF_VEC_P.
2342 (typedef sig_type_ptr): Delete.
2343
554ac434
AB
23442019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2347 to std::vector.
2348 (btrace_maint_decode_pt): Likewise, and move allocation of the
2349 vector outside of the loop.
2350 (btrace_maint_update_packets): Update to handle change from VEC to
2351 std::vector.
2352 (btrace_maint_print_packets): Likewise.
2353 (maint_info_btrace_cmd): Likewise.
2354 * btrace.h: Remove use of DEF_VEC_O.
2355 (typedef btrace_pt_packet_s): Delete.
2356 (struct btrace_maint_info) <packets>: Change fromm VEC to
2357 std::vector.
2358 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2359
46f29a9a
AB
23602019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2363 make accesses into the vector constant references.
2364 (btrace_add_pc): Update for std::vector.
2365 (btrace_stitch_bts): Likewise.
2366 (parse_xml_btrace_block): Likewise.
2367 (btrace_maint_update_packets): Likewise.
2368 (btrace_maint_print_packets): Likewise.
2369 (maint_info_btrace_cmd): Likewise.
2370 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2371 std::vector.
2372 (btrace_data::empty): Likewise.
2373 (btrace_data_append): Likewise.
2374 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2375 (typedef btrace_block_s): Delete.
2376 (struct btrace_block): Add constructor.
2377 (struct btrace_data_bts) <blocks>: Change to std::vector.
2378 * nat/linux-btrace.c (perf_event_read_bts): Update for
2379 std::vector.
2380 (linux_read_bts): Likewise.
2381
d770d56f
TT
23822019-10-01 Tom Tromey <tom@tromey.com>
2383
2384 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2385
9d636d67
TT
23862019-10-01 Tom Tromey <tom@tromey.com>
2387
2388 * stack.c (print_frame, info_frame_command_core): Use
2389 styled_string.
2390 * linux-thread-db.c (try_thread_db_load_1)
2391 (try_thread_db_load_from_pdir_1): Use styled_string.
2392 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2393 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2394 (maybe_print_unsupported_script_warning)
2395 (maybe_print_script_not_found_warning): Use styled_string.
2396 * ada-lang.c (user_select_syms): Use styled_string.
2397
7f6aba03
TT
23982019-10-01 Tom Tromey <tom@tromey.com>
2399
2400 * p-lang.c (pascal_printstr): Use metadata style.
2401 * value.c (show_convenience): Use metadata style.
2402 * valprint.c (valprint_check_validity, val_print_optimized_out)
2403 (val_print_not_saved, val_print_unavailable)
2404 (val_print_invalid_address, generic_val_print, val_print)
2405 (value_check_printable, val_print_array_elements): Use metadata
2406 style.
2407 * ui-out.h (class ui_out) <field_fmt>: New overload.
2408 <do_field_fmt>: Add style parameter.
2409 * ui-out.c (ui_out::field_fmt): New overload.
2410 * typeprint.c (type_print_unknown_return_type)
2411 (val_print_not_allocated, val_print_not_associated): Use metadata
2412 style.
2413 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2414 parameter.
2415 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2416 * tracepoint.c (tvariables_info_1): Use metadata style.
2417 * stack.c (print_frame_arg, print_frame_info, print_frame)
2418 (info_frame_command_core): Use metadata style.
2419 * skip.c (info_skip_command): Use metadata style.
2420 * rust-lang.c (rust_print_enum): Use metadata style.
2421 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2422 metadata style.
2423 * python/py-framefilter.c (py_print_single_arg): Use metadata
2424 style.
2425 * printcmd.c (do_one_display, print_variable_and_value): Use
2426 metadata style.
2427 * p-valprint.c (pascal_val_print)
2428 (pascal_object_print_value_fields): Use metadata style.
2429 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2430 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2431 parameter.
2432 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2433 * m2-valprint.c (m2_print_long_set): Use metadata style.
2434 * m2-typeprint.c (m2_print_type): Use metadata style.
2435 * infcmd.c (print_return_value_1): Use metadata style.
2436 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2437 * f-valprint.c (info_common_command_for_block): Use metadata
2438 style.
2439 * f-typeprint.c (f_type_print_base): Use metadata style.
2440 * expprint.c (print_subexp_standard): Use metadata style.
2441 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2442 * cli/cli-style.h (class cli_style_option): Add constructor.
2443 (metadata_style): Declare.
2444 * cli/cli-style.c (metadata_style): New global.
2445 (_initialize_cli_style): Register metadata style.
2446 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2447 parameter.
2448 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2449 * c-typeprint.c (c_type_print_base_struct_union)
2450 (c_type_print_base_1): Use metadata style.
2451 * breakpoint.c (watchpoint_value_print)
2452 (print_one_breakpoint_location): Use metadata style.
2453 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2454 style.
2455 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2456 style.
2457 * ada-valprint.c (val_print_packed_array_elements, printstr)
2458 (print_field_values, ada_val_print_ref, ada_val_print): Use
2459 metadata style.
2460 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2461 style.
2462 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2463 style.
2464 * ada-lang.c (user_select_syms): Use metadata style.
2465
14309bb6
TT
24662019-10-01 Tom Tromey <tom@tromey.com>
2467
2468 * cli/cli-cmds.c (pwd_command): Style output.
2469
6a831f06
PA
24702019-10-01 Pedro Alves <palves@redhat.com>
2471 Tom Tromey <tom@tromey.com>
2472
2473 * symtab.c (print_symbol_info): Use %ps.
2474 (print_msymbol_info): Use %ps.
2475 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2476 * printcmd.c (print_variable_and_value): Use %ps.
2477 * macrocmd.c (show_pp_source_pos): Use %ps.
2478 * infrun.c (print_exited_reason): Use ui_out::message.
2479 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2480 (describe_other_breakpoints): Use ui_out::message and new
2481 formats.
2482 (say_where): Use new formats.
2483 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2484 and new formats.
2485
2a3c1174
PA
24862019-10-01 Pedro Alves <palves@redhat.com>
2487 Tom Tromey <tom@tromey.com>
2488
2489 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2490 (test_gdb_formats): New function.
2491 (run_tests): Call it.
2492 (test_format_specifier): Update.
2493 * utils.h (fputs_filtered): Update comment.
2494 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2495 (fputs_styled_unfiltered): Declare.
2496 * utils.c (fputs_styled_unfiltered): New function.
2497 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2498 (vfprintf_filtered): Update.
2499 (vfprintf_unfiltered, vprintf_filtered): Update.
2500 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2501 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2502 disallow_ui_out_field>: New constants.
2503 (enum class field_kind): New.
2504 (struct base_field_s, struct signed_field_s): New.
2505 (signed_field): New function.
2506 (struct string_field_s): New.
2507 (string_field): New function.
2508 (struct styled_string_s): New.
2509 (styled_string): New function.
2510 (class ui_out) <message>: Add comment.
2511 <vmessage, call_do_message>: New methods.
2512 <do_message>: Add style parameter.
2513 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2514 methods.
2515 (ui_out::message): Rewrite.
2516 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2517 parameter.
2518 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2519 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2520 gdb_extensions parameter.
2521 (class format_piece): Add parameter to constructor.
2522 (n_int_args): New field.
2523 * gdbsupport/format.c (format_pieces::format_pieces): Add
2524 gdb_extensions parameter. Handle '*'.
2525 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2526 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2527 vfprintf_styled_no_gdbfmt.
2528 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2529 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2530 unfiltered output.
2531 * ui-style.h (struct ui_file_style) <ptr>: New method.
2532
0dfe5bfb
TT
25332019-10-01 Tom Tromey <tom@tromey.com>
2534
2535 * unittests/format_pieces-selftests.c: Update. Add final format.
2536 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2537 empty literal pieces.
2538
e43b10e1
TT
25392019-10-01 Tom Tromey <tom@tromey.com>
2540
2541 * ui-out.h (enum class ui_out_style_kind): Remove.
2542 (class ui_out) <field_string, field_stsream, do_field_string>:
2543 Change type of "style".
2544 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2545 (ui_out::field_string): Update.
2546 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2547 of "style".
2548 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2549 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2550 * stack.c (print_frame_arg, print_frame_info, print_frame):
2551 Update.
2552 * source.c (print_source_lines_base): Update.
2553 * solib.c (info_sharedlibrary_command): Update.
2554 * skip.c (info_skip_command): Update.
2555 * record-btrace.c (btrace_call_history_src_line)
2556 (btrace_call_history): Update.
2557 * python/py-framefilter.c (py_print_frame): Update.
2558 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2559 "style".
2560 * mi/mi-out.c (mi_ui_out::do_table_header)
2561 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2562 (mi_ui_out::do_field_string): Update.
2563 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2564 Update.
2565 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2566 "style".
2567 * cli-out.c (cli_ui_out::do_table_header)
2568 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2569 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2570 (cli_ui_out::do_field_fmt): Update.
2571 * breakpoint.c (print_breakpoint_location): Update.
2572 (update_static_tracepoint): Update.
2573
cd7c32c3
PW
25742019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2575
2576 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2577 conversion of gdb_datadir.
2578 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2579 remove not needed c_str ().
2580
8fe0f950
AT
25812019-09-30 Ali Tamur <tamur@google.com>
2582
2583 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2584 (dwarf2_string_attr): Likewise.
2585
5f48f8f3
AT
25862019-09-30 Ali Tamur <tamur@google.com>
2587
2588 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2589 (process_full_type_unit): Likewise.
2590 (dump_die_shallow): Likewise.
2591 (cu_debug_loc_section): Likewise.
2592
6fb08628
CB
25932019-09-28 Christian Biesinger <cbiesinger@google.com>
2594
2595 * minsyms.c (compare_minimal_symbols): Rename to...
2596 (minimal_symbol_is_less_than): ...this, and adjust to STL
2597 conventions (return bool, take arguments as references)
2598 (minimal_symbol_reader::install): Call std::sort instead
2599 of qsort.
2600
c7ee338a
CB
26012019-09-29 Christian Biesinger <cbiesinger@google.com>
2602
2603 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2604 hash and why.
2605 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2606 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2607
703a86c2
SM
26082019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2611 * psympriv.h (add_psymbol_to_list): Move comment here and update
2612 it.
2613
0df0352a
TV
26142019-09-29 Tom de Vries <tdevries@suse.de>
2615
2616 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2617 Use $tmpdir/$(basename "$output_file").dwz instead of
2618 "${output_file}.dwz".
2619
ad75efa6
SM
26202019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 PR gdb/25045
2623 * hppa-linux-nat.c: Include gdbarch.h.
2624
ececd218
CB
26252019-09-26 Christian Biesinger <cbiesinger@google.com>
2626
2627 * blockframe.c (find_pc_partial_function): Change return type to bool.
2628 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2629 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2630 (stub_gnu_ifunc_resolve_name): Likewise.
2631 * symtab.c (compare_filenames_for_search): Likewise.
2632 (compare_glob_filenames_for_search): Likewise.
2633 (matching_obj_sections): Likewise.
2634 (symbol_matches_domain): Likewise.
2635 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2636 (find_line_pc): Change return type to bool.
2637 (find_line_pc_range): Likewise.
2638 (producer_is_realview): Likewise.
2639 * symtab.h (symbol_matches_domain): Likewise.
2640 (find_pc_partial_function): Likewise.
2641 (find_pc_line_pc_range): Likewise.
2642 (in_gnu_ifunc_stub): Likewise.
2643 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2644 (find_line_pc): Likewise.
2645 (find_line_pc_range): Likewise.
2646 (matching_obj_sections): Likewise.
2647 (find_line_symtab): Change out parameter to bool.
2648 (producer_is_realview): Change return type to bool.
2649 (compare_filenames_for_search): Likewise.
2650 (compare_glob_filenames_for_search): Likewise.
2651
27a900b8
TT
26522019-09-26 Tom Tromey <tom@tromey.com>
2653
2654 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2655 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2656 * gdb_usleep.h: Remove.
2657 * gdb_usleep.c: Remove.
2658 * utils.c: Don't include gdb_usleep.h.
2659
5d63b30a
TT
26602019-09-26 Tom Tromey <tromey@adacore.com>
2661
2662 * python/py-type.c (type_to_type_object): Call check_typedef
2663 for stub types.
2664
12904d37
TT
26652019-09-26 Tom Tromey <tom@tromey.com>
2666
2667 * utils.h (initialize_utils): Don't declare.
2668 * top.c (gdb_init): Don't call initialize_utils.
2669 * utils.c (initialize_utils): Remove. Move contents...
2670 (_initialize_utils): ... here.
2671
858f25f0
TT
26722019-09-25 Tom Tromey <tom@tromey.com>
2673
2674 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2675 * utils.h (make_hex_string): Don't declare.
2676 * utils.c (make_hex_string): Remove.
2677
3d435220
TV
26782019-09-24 Tom de Vries <tdevries@suse.de>
2679
2680 PR gdb/23815
2681 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2682 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2683
ddd44b70
DD
26842019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2685
2686 * NEWS: Mention new simulator port for PRU.
2687
f945dedf
CB
26882019-09-23 Christian Biesinger <cbiesinger@google.com>
2689
2690 * ada-exp.y (write_object_remaining): Update.
2691 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2692 and eliminate the static buffer.
2693 (ada_decode_symbol): Update.
2694 (ada_la_decode): Update.
2695 (ada_sniff_from_mangled_name): Update.
2696 (is_valid_name_for_wild_match): Update.
2697 (ada_lookup_name_info::matches): Update and simplify.
2698 (name_matches_regex): Update.
2699 (ada_add_global_exceptions): Update.
2700 * ada-lang.h (ada_decode): Update signature.
2701 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2702 * dwarf-index-write.c (debug_names::insert): Update.
2703
7ab78ccb
SM
27042019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2707 formatting.
2708
9252448b
SM
27092019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2712 Change "nonzero" to "true" in documentation.
2713
626ca2c0
CB
27142019-09-20 Christian Biesinger <cbiesinger@google.com>
2715
2716 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2717 (_initialize_darwin_solib): Don't set
2718 darwin_so_ops.lookup_lib_global_symbol.
2719 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2720 set_gdbarch_iterate_over_objfiles_in_search_order.
2721 (elf_lookup_lib_symbol): Rename to...
2722 (svr4_iterate_over_objfiles_in_search_order): this, and update
2723 to iterate semantics.
2724 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2725 * solib.c (solib_global_lookup): Remove.
2726 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2727 (solib_global_lookup): Remove.
2728 * symtab.c (lookup_global_or_static_symbol): Remove call to
2729 solib_global_lookup.
2730
5a3a0d63
JB
27312019-09-20 Joel Brobecker <brobecker@adacore.com>
2732
2733 * NEWS: Move entries about default MI version now being
2734 version 3, and about the GDB/MI fix for multi-location
2735 breakpoints to the "since GDB 8.3" section.
2736
ffea1427
JB
27372019-09-20 Joel Brobecker <brobecker@adacore.com>
2738
2739 GDB 8.3.1 released.
2740
abf516c6
UW
27412019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2742
2743 * NEWS: Mention that Cell/B.E. debugging support was removed.
2744 * MAINTAINERS: Remove spu target.
2745
2746 * config/djgpp/fnchange.lst: Remove entries for removed files.
2747
2748 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2749 spu-multiarch.o, and spu-tdep.o.
2750 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2751 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2752 spu-multiarch.c, and spu-tdep.c.
2753 * spu-linux-nat.c: Remove file.
2754 * spu-multiarch.c: Remove file.
2755 * spu-tdep.c: Remove file.
2756 * spu-tdep.h: Remove file.
2757 * solib-spu.c: Remove file.
2758 * solib-spu.h: Remove file.
2759
2760 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2761 * configure.nat (spu-linux): Remove.
2762 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2763 solib-multiarch.o from gdb_target_obs.
2764 (spu*-*-*): Remove.
2765
2766 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2767 feature flag.
2768 (ppc_linux_no_features): Update.
2769 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2770 Cell/B.E. support.
2771 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2772 (tdesc_powerpc_cell64l): Likewise.
2773 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2774 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2775 Cell/B.E. support.
2776 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2777 Do not include "features/rs6000/powerpc-cell32l.c" or
2778 "features/rs6000/powerpc-cell64l.c".
2779 (ppc_linux_spu_section): Remove.
2780 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2781 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2782 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2783 (ppc_linux_spe_context_lookup): Remove.
2784 (ppc_linux_spe_context_inferior_created): Remove.
2785 (ppc_linux_spe_context_solib_loaded): Remove.
2786 (ppc_linux_spe_context_solib_unloaded): Remove.
2787 (ppc_linux_spe_context): Remove.
2788 (struct ppu2spu_cache): Remove.
2789 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2790 (struct ppu2spu_data): Remove.
2791 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2792 ppu2spu_unwind): Remove.
2793 (ppc_linux_init_abi): Remove Cell/B.E. support.
2794 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2795
2796 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2797 (rs6000/powerpc-cell64l-expedite): Likewise
2798 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2799 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2800 rs6000/powerpc-cell64l.xml.
2801 * features/rs6000/powerpc-cell32l.xml: Remove.
2802 * features/rs6000/powerpc-cell64l.xml: Likewise.
2803 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2804 * features/rs6000/powerpc-cell64l.c: Likewise.
2805 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2806 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2807 * regformats/reg-spu.dat: Remove.
2808
2809 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2810 * corelow.c (struct spuid_list): Remove.
2811 (add_to_spuid_list): Remove.
2812 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2813 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2814 (remote_protocol_features): Remove associated entries.
2815 (_initialize_remote): No longer initialize them.
2816 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2817 * linux-nat.c (SPUFS_MAGIC): Remove.
2818 (linux_proc_xfer_spu): Remove.
2819 (spu_enumerate_spu_ids): Remove.
2820 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2821 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2822 (linux_make_corefile_notes): No longer call it.
2823
2824 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2825 (cooked_write_test): Likewise.
2826
78e8cb91
TT
28272019-09-20 Tom Tromey <tom@tromey.com>
2828
2829 * NEWS: Mention case-sensitivity of TUI commands.
2830 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2831 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2832 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2833
f074b67e
TT
28342019-09-20 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-source.c (tui_source_window::set_contents): Use
2837 make_unique_xstrdup.
2838 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2839 make_unique_xstrdup.
2840
63c4bf19
TT
28412019-09-20 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-data.c: Remove separator comments.
2844 * tui/tui-layout.c: Remove separator comments.
2845 * tui/tui-win.c: Remove separator comments.
2846 * tui/tui-wingeneral.c: Remove separator comments.
2847
43df9b2f
TT
28482019-09-20 Tom Tromey <tom@tromey.com>
2849
2850 * tui/tui.h (strcat_to_buf): Don't declare.
2851 * tui/tui.c (strcat_to_buf): Remove.
2852
7226433c
TT
28532019-09-20 Tom Tromey <tom@tromey.com>
2854
2855 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2856 from "fullname".
2857 * tui/tui-source.c (tui_source_window::set_contents)
2858 (tui_source_window::location_matches_p)
2859 (tui_source_window::maybe_update): Update.
2860
80df3337
TT
28612019-09-20 Tom Tromey <tom@tromey.com>
2862
2863 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2864 Update.
2865 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2866 prefix.
2867 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2868 (tui_data_window::line_from_reg_element_no)
2869 (tui_data_window::first_reg_element_no_inline)
2870 (tui_data_window::show_registers)
2871 (tui_data_window::show_register_group)
2872 (tui_data_window::display_registers_from)
2873 (tui_data_window::display_registers_from_line)
2874 (tui_data_window::first_data_item_displayed)
2875 (tui_data_window::delete_data_content_windows)
2876 (tui_data_window::erase_data_content)
2877 (tui_data_window::do_scroll_vertical)
2878 (tui_data_window::refresh_window)
2879 (tui_data_window::check_register_values): Update.
2880
9923f347
TT
28812019-09-20 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2884 (struct tui_locator_window) <full_name, proc_name>: Now
2885 std::string.
2886 * tui/tui-stack.c (tui_locator_window::make_status_line)
2887 (tui_locator_window::set_locator_fullname)
2888 (tui_locator_window::set_locator_info): Update.
2889 * tui/tui-source.c (tui_source_window::set_contents)
2890 (tui_source_window::showing_source_p): Update.
2891
b76251ab
TT
28922019-09-20 Tom Tromey <tom@tromey.com>
2893
2894 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2895 Don't call tui_locator_win_info_ptr.
2896
0891be08
TT
28972019-09-20 Tom Tromey <tom@tromey.com>
2898
2899 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2900
1b935acf
TT
29012019-09-20 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2904 height for locator.
2905 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2906 * tui/tui-layout.c (show_source_disasm_command, show_data)
2907 (show_source_or_disasm_and_command): Use 1 as height for locator.
2908
9abd8a65
TT
29092019-09-20 Tom Tromey <tom@tromey.com>
2910
2911 * tui/tui.c (tui_enable): Update.
2912 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2913 Update.
2914 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2915 Update.
2916 * tui/tui-data.c (win_resized): Now bool.
2917 (tui_win_resized): Return bool.
2918 (tui_set_win_resized_to): Accept a bool.
2919
b5457826
TT
29202019-09-20 Tom Tromey <tom@tromey.com>
2921
2922 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2923 Change type of "refresh_values_only".
2924 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2925 type of "refresh_values_only".
2926
6b915f7d
TT
29272019-09-20 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2930 std::string.
2931 (tui_disassemble): Add "pos" parameter.
2932 (tui_disasm_window::set_contents): Simplify.
2933
2ad52f6f
TT
29342019-09-20 Tom Tromey <tom@tromey.com>
2935
2936 * tui/tui-winsource.h (struct tui_source_window_base)
2937 <show_source_content>: Now private.
2938 * tui/tui-winsource.c
2939 (tui_source_window_base::show_source_content): Don't handle empty
2940 content case.
2941
b3b1bde6
TT
29422019-09-20 Tom Tromey <tom@tromey.com>
2943
2944 * tui/tui-layout.c (show_source_disasm_command)
2945 (show_source_or_disasm_and_command): Don't call
2946 show_source_content.
2947
71a25ed2
TT
29482019-09-20 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2951 Declare.
2952 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2953 from tui_make_status_line.
2954 (tui_locator_window::rerender): Update.
2955
f8532154
TT
29562019-09-20 Tom Tromey <tom@tromey.com>
2957
2958 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2959 (tui_locator_window::rerender): Update.
2960
2d81b349
TT
29612019-09-20 Tom Tromey <tom@tromey.com>
2962
2963 * tui/tui-winsource.h (struct tui_source_window_base)
2964 <~tui_source_window_base>: Don't declare.
2965 <fullname>: Remove.
2966 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2967 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2968 member.
2969 * tui/tui-source.c (tui_source_window::set_contents): Update.
2970 (tui_source_window::location_matches_p)
2971 (tui_source_window::maybe_update): Update.
2972
f14bec58
TT
29732019-09-20 Tom Tromey <tom@tromey.com>
2974
2975 * tui/tui-winsource.h (~tui_source_element): Remove.
2976 (tui_source_element): Update.
2977 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2978 * tui/tui-winsource.c (tui_show_source_line): Update.
2979 * tui/tui-source.c (tui_source_window::set_contents): Update.
2980 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2981
78d5933a
TT
29822019-09-20 Tom Tromey <tom@tromey.com>
2983
2984 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2985 declare.
2986 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2987 tui_clear_source_windows_detail.
2988 * tui/tui-winsource.h (struct tui_source_window_base)
2989 <clear_detail>: Don't declare.
2990 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2991 Remove.
2992 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2993
d4207696
TT
29942019-09-20 Tom Tromey <tromey@adacore.com>
2995
2996 PR ada/24919:
2997 * block.c (contained_in): Fix final return value.
2998
00f93c44
AM
29992019-09-20 Alan Modra <amodra@gmail.com>
3000
3001 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3002 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3003 (read_indirect_string_from_dwz): Use bfd accessor.
3004 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3005 * machoread.c (macho_symfile_read_all_oso): Likewise.
3006 * solib.c (solib_bfd_open): Likewise.
3007
e4153ae6
CB
30082019-09-19 Christian Biesinger <cbiesinger@google.com>
3009
3010 * eval.c: Move declaration of overload_resolution to...
3011 * value.h: ...here.
3012
c7ae7675
CB
30132019-09-19 Christian Biesinger <cbiesinger@google.com>
3014
3015 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3016 * arm-linux-tdep.c: Likewise.
3017 * arm-nbsd-nat.c: Likewise.
3018 * arm-tdep.h: Declare arm_apcs_32.
3019 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3020
e86f08d2
CB
30212019-09-19 Christian Biesinger <cbiesinger@google.com>
3022
3023 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3024 * dwarf2read.h: Declare dwarf_always_disassemble.
3025
f64e2f40
TV
30262019-09-19 Tom de Vries <tdevries@suse.de>
3027
3028 PR gdb/25009
3029 * source-cache.c (source_cache::ensure): Catch exception thrown during
3030 construction of the highlighter.
3031
fd361982
AM
30322019-09-18 Alan Modra <amodra@gmail.com>
3033
3034 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3035 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3036 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3037 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3038 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3039 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3040 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3041 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3042 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3043 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3044 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3045 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3046 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3047 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3048 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3049 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3050 * mi/mi-interp.c: Update throughout for bfd section macro and
3051 function changes.
3052 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3053 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3054
11061048
TT
30552019-09-18 Tom Tromey <tom@tromey.com>
3056
3057 * NEWS: Add entry.
3058 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3059 call rl_initialize.
3060 (tui_enable): Do not call rl_initialize.
3061
7a27b85f
CG
30622019-09-18 Christian Groessler <chris@groessler.org>
3063
3064 * alpha-linux-nat.c: Include gdbarch.h.
3065
f64eea3a
SM
30662019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * ui-file.c: Include cli/cli-style.h.
3069 (term_cli_styling): Remove cli_styling declaration.
3070
e6f7f6d1
AM
30712019-09-18 Alan Modra <amodra@gmail.com>
3072
3073 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3074 to bfd_asymbol_section.
3075
1d38e9d1
AM
30762019-09-18 Alan Modra <amodra@gmail.com>
3077
3078 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3079 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3080 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3081
90d92a63
AM
30822019-09-18 Alan Modra <amodra@gmail.com>
3083
3084 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3085 * spu-linux-nat.c (spu_bfd_open): Likewise.
3086
a3d181d2
CB
30872019-09-18 Christian Biesinger <cbiesinger@google.com>
3088
3089 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3090 to bool to match definition in dwarf2read.c.
3091
491144b5
CB
30922019-09-17 Christian Biesinger <cbiesinger@google.com>
3093
3094 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3095 (print_signatures): Likewise.
3096 (trust_pad_over_xvs): Likewise.
3097 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3098 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3099 * arm-linux-nat.c (arm_apcs_32): Likewise.
3100 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3101 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3102 * arm-tdep.c (arm_debug): Likewise.
3103 (arm_apcs_32): Likewise.
3104 * auto-load.c (debug_auto_load): Likewise.
3105 (auto_load_gdb_scripts): Likewise.
3106 (global_auto_load): Likewise.
3107 (auto_load_local_gdbinit): Likewise.
3108 (auto_load_local_gdbinit_loaded): Likewise.
3109 * auto-load.h (global_auto_load): Likewise.
3110 (auto_load_local_gdbinit): Likewise.
3111 (auto_load_local_gdbinit_loaded): Likewise.
3112 * breakpoint.c (disconnected_dprintf): Likewise.
3113 (breakpoint_proceeded): Likewise.
3114 (automatic_hardware_breakpoints): Likewise.
3115 (always_inserted_mode): Likewise.
3116 (target_exact_watchpoints): Likewise.
3117 (_initialize_breakpoint): Update.
3118 * breakpoint.h (target_exact_watchpoints): Change to bool.
3119 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3120 * cli/cli-cmds.c (trace_commands): Likewise.
3121 * cli/cli-cmds.h (trace_commands): Likewise.
3122 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3123 to bool*.
3124 * cli/cli-logging.c (logging_overwrite): Change to bool.
3125 (logging_redirect): Likewise.
3126 (debug_redirect): Likewise.
3127 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3128 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3129 to bool.
3130 <boolean_option_def>: Update.
3131 (struct flag_option_def): Change default type of Context to bool
3132 from int.
3133 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3134 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3135 (get_setshow_command_value_string): Likewise.
3136 * cli/cli-style.c (cli_styling): Change to bool.
3137 (source_styling): Likewise.
3138 * cli/cli-style.h (source_styling): Likewise.
3139 (cli_styling): Likewise.
3140 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3141 to bool.
3142 * command.h (var_types): Update comment.
3143 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3144 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3145 bool.
3146 (debug_compile_cplus_scopes): Likewise.
3147 * compile/compile-internal.h (compile_debug): Likewise.
3148 * compile/compile.c (compile_debug): Likewise.
3149 (struct compile_options) <raw>: Likewise.
3150 * cp-support.c (catch_demangler_crashes): Likewise.
3151 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3152 (usr_cmd_cris_dwarf2_cfi): Likewise.
3153 * csky-tdep.c (csky_debug): Likewise.
3154 * darwin-nat.c (enable_mach_exceptions): Likewise.
3155 * dcache.c (dcache_enabled_p): Likewise.
3156 * defs.h (info_verbose): Likewise.
3157 * demangle.c (demangle): Likewise.
3158 (asm_demangle): Likewise.
3159 * dwarf-index-cache.c (debug_index_cache): Likewise.
3160 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3161 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3162 * dwarf2read.c (check_physname): Likewise.
3163 (use_deprecated_index_sections): Likewise.
3164 (dwarf_always_disassemble): Likewise.
3165 * eval.c (overload_resolution): Likewise.
3166 * event-top.c (set_editing_cmd_var): Likewise.
3167 (exec_done_display_p): Likewise.
3168 * event-top.h (set_editing_cmd_var): Likewise.
3169 (exec_done_display_p): Likewise.
3170 * exec.c (write_files): Likewise.
3171 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3172 (debug_fbsd_nat): Likewise.
3173 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3174 Likewise.
3175 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3176 <backtrace_past_entry> Likewise.
3177 * gdb-demangle.h (demangle): Likewise.
3178 (asm_demangle): Likewise.
3179 * gdb_bfd.c (bfd_sharing): Likewise.
3180 * gdbcore.h (write_files): Likewise.
3181 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3182 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3183 * gdbthread.h (print_thread_events): Likewise.
3184 * gdbtypes.c (opaque_type_resolution): Likewise.
3185 (strict_type_checking): Likewise.
3186 * gnu-nat.c (gnu_debug_flag): Likewise.
3187 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3188 * guile/scm-param.c (pascm_variable): Add boolval.
3189 (add_setshow_generic): Update.
3190 (pascm_param_value): Update.
3191 (pascm_set_param_value_x): Update.
3192 * hppa-tdep.c (hppa_debug): Change to bool..
3193 * infcall.c (may_call_functions_p): Likewise.
3194 (coerce_float_to_double_p): Likewise.
3195 (unwind_on_signal_p): Likewise.
3196 (unwind_on_terminating_exception_p): Likewise.
3197 * infcmd.c (startup_with_shell): Likewise.
3198 * inferior.c (print_inferior_events): Likewise.
3199 * inferior.h (startup_with_shell): Likewise.
3200 (print_inferior_events): Likewise.
3201 * infrun.c (step_stop_if_no_debug): Likewise.
3202 (detach_fork): Likewise.
3203 (debug_displaced): Likewise.
3204 (disable_randomization): Likewise.
3205 (non_stop): Likewise.
3206 (non_stop_1): Likewise.
3207 (observer_mode): Likewise.
3208 (observer_mode_1): Likewise.
3209 (set_observer_mode): Update.
3210 (sched_multi): Change to bool.
3211 * infrun.h (debug_displaced): Likewise.
3212 (sched_multi): Likewise.
3213 (step_stop_if_no_debug): Likewise.
3214 (non_stop): Likewise.
3215 (disable_randomization): Likewise.
3216 * linux-tdep.c (use_coredump_filter): Likewise.
3217 (dump_excluded_mappings): Likewise.
3218 * linux-thread-db.c (auto_load_thread_db): Likewise.
3219 (check_thread_db_on_load): Likewise.
3220 * main.c (captured_main_1): Update.
3221 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3222 xx2_opt, boolean_opt>: Change to bool.
3223 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3224 * maint.c (maintenance_profile_p): Likewise.
3225 (per_command_time): Likewise.
3226 (per_command_space): Likewise.
3227 (per_command_symtab): Likewise.
3228 * memattr.c (inaccessible_by_default): Likewise.
3229 * mi/mi-main.c (mi_async): Likewise.
3230 (mi_async_1): Likewise.
3231 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3232 * nat/fork-inferior.h (startup_with_shell): Likewise.
3233 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3234 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3235 * nios2-tdep.c (nios2_debug): Likewise.
3236 * or1k-tdep.c (or1k_debug): Likewise.
3237 * parse.c (parser_debug): Likewise.
3238 * parser-defs.h (parser_debug): Likewise.
3239 * printcmd.c (print_symbol_filename): Likewise.
3240 * proc-api.c (procfs_trace): Likewise.
3241 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3242 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3243 (set_parameter_value): Update.
3244 (add_setshow_generic): Update.
3245 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3246 to bool*.
3247 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3248 int*.
3249 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3250 * record-btrace.c (record_btrace_target::store_registers): Update.
3251 * record-full.c (record_full_memory_query): Change to bool.
3252 (record_full_stop_at_limit): Likewise.
3253 * record-full.h (record_full_memory_query): Likewise.
3254 * remote-notif.c (notif_debug): Likewise.
3255 * remote-notif.h (notif_debug): Likewise.
3256 * remote.c (use_range_stepping): Likewise.
3257 (interrupt_on_connect): Likewise.
3258 (remote_break): Likewise.
3259 * ser-tcp.c (tcp_auto_retry): Likewise.
3260 * ser-unix.c (serial_hwflow): Likewise.
3261 * skip.c (debug_skip): Likewise.
3262 * solib-aix.c (solib_aix_debug): Likewise.
3263 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3264 (spu_auto_flush_cache_p): Likewise.
3265 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3266 Likewise.
3267 (struct info_print_options) <quiet>: Likewise.
3268 * symfile-debug.c (debug_symfile): Likewise.
3269 * symfile.c (auto_solib_add): Likewise.
3270 (separate_debug_file_debug): Likewise.
3271 * symfile.h (auto_solib_add): Likewise.
3272 (separate_debug_file_debug): Likewise.
3273 * symtab.c (basenames_may_differ): Likewise.
3274 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3275 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3276 (struct info_types_options) <quiet>: Likewise.
3277 * symtab.h (demangle): Likewise.
3278 (basenames_may_differ): Likewise.
3279 * target-dcache.c (stack_cache_enabled_1): Likewise.
3280 (code_cache_enabled_1): Likewise.
3281 * target.c (trust_readonly): Likewise.
3282 (may_write_registers): Likewise.
3283 (may_write_memory): Likewise.
3284 (may_insert_breakpoints): Likewise.
3285 (may_insert_tracepoints): Likewise.
3286 (may_insert_fast_tracepoints): Likewise.
3287 (may_stop): Likewise.
3288 (auto_connect_native_target): Likewise.
3289 (target_stop_and_wait): Update.
3290 (target_async_permitted): Change to bool.
3291 (target_async_permitted_1): Likewise.
3292 (may_write_registers_1): Likewise.
3293 (may_write_memory_1): Likewise.
3294 (may_insert_breakpoints_1): Likewise.
3295 (may_insert_tracepoints_1): Likewise.
3296 (may_insert_fast_tracepoints_1): Likewise.
3297 (may_stop_1): Likewise.
3298 * target.h (target_async_permitted): Likewise.
3299 (may_write_registers): Likewise.
3300 (may_write_memory): Likewise.
3301 (may_insert_breakpoints): Likewise.
3302 (may_insert_tracepoints): Likewise.
3303 (may_insert_fast_tracepoints): Likewise.
3304 (may_stop): Likewise.
3305 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3306 (make_thread_apply_all_options_def_group): Change argument from int*
3307 to bool*.
3308 (thread_apply_all_command): Update.
3309 (print_thread_events): Change to bool.
3310 * top.c (confirm): Likewise.
3311 (command_editing_p): Likewise.
3312 (history_expansion_p): Likewise.
3313 (write_history_p): Likewise.
3314 (info_verbose): Likewise.
3315 * top.h (confirm): Likewise.
3316 (history_expansion_p): Likewise.
3317 * tracepoint.c (disconnected_tracing): Likewise.
3318 (circular_trace_buffer): Likewise.
3319 * typeprint.c (print_methods): Likewise.
3320 (print_typedefs): Likewise.
3321 * utils.c (debug_timestamp): Likewise.
3322 (sevenbit_strings): Likewise.
3323 (pagination_enabled): Likewise.
3324 * utils.h (sevenbit_strings): Likewise.
3325 (pagination_enabled): Likewise.
3326 * valops.c (overload_resolution): Likewise.
3327 * valprint.h (struct value_print_options) <prettyformat_arrays,
3328 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3329 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3330 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3331 Likewise.
3332 * windows-nat.c (new_console): Likewise.
3333 (cygwin_exceptions): Likewise.
3334 (new_group): Likewise.
3335 (debug_exec): Likewise.
3336 (debug_events): Likewise.
3337 (debug_memory): Likewise.
3338 (debug_exceptions): Likewise.
3339 (useshell): Likewise.
3340 * windows-tdep.c (maint_display_all_tib): Likewise.
3341 * xml-support.c (debug_xml): Likewise.
3342
f1b620e9
MG
33432019-09-17 Mike Gulick <mgulick@mathworks.com>
3344
3345 * source.c (prepare_path_for_appending): New function.
3346 (openp): Make use of new function.
3347 (find_and_open_source): Search for the compilation directory and
3348 source file as a relative path beneath the directory search path.
3349
67f3ed6a
AB
33502019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * source-cache.c (source_cache::get_line_charpos): Catch
3353 exceptions and return false, this matches the behaviour documented
3354 in the header file.
3355
74332189
JB
33562019-09-17 Joel Brobecker <brobecker@adacore.com>
3357
3358 * ada-tasks.c (info_task): Remove quoting of the task's name.
3359
f2f24aa9
CB
33602019-09-16 Christian Biesinger <cbiesinger@google.com>
3361
3362 * symfile.c (auto_solib_add): Replace comment with a reference
3363 to the header file.
3364
6a062a93
CB
33652019-09-14 Christian Biesinger <cbiesinger@google.com>
3366
3367 * NEWS: Mention that gdb can now be compiled with Python 3
3368 on Windows.
3369
ec6c8338
AB
33702019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * maint.c (maint_print_section_data::maint_print_section_data):
3373 Force use of 'float log10 (float)' by casting the argument to
3374 float.
3375
aa17805f
AB
33762019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 * maint.c: Add 'cmath' include.
3379 (struct maint_print_section_data): New structure.
3380 (print_section_index): New function.
3381 (print_bfd_section_info): Add header comment, small whitespace
3382 cleanup, and update to call new print_section_index function.
3383 (print_objfile_section_info): Likewise.
3384 (maint_obj_section_from_bfd_section): New function.
3385 (print_bfd_section_info_maybe_relocated): New function.
3386 (maintenance_info_sections): Add header comment, always use
3387 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3388
3dd9bb46
AB
33892019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3392 inner scope, add check that the objfile has psymtabs before
3393 checking psymtabs_addrmap.
3394 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3395
4993045d
PW
33962019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3397
3398 * NEWS: Announce that Ada task names are now shown at more places,
3399 and between quotes (except in info task output).
3400 * gdb/ada-tasks.c (task_to_str): New function.
3401 (display_current_task_id): Call task_to_str.
3402 (task_command_1): Likewise.
3403 (print_ada_task_info): In non-mi mode, Properly align headers and data
3404 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3405
7a289707
RO
34062019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3407
3408 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3409 prstatus.pr_lwp.pr_info instead of making it up.
3410
f2aec7f6
CB
34112019-09-11 Christian Biesinger <cbiesinger@google.com>
3412
3413 * auto-load.c (auto_load_expand_dir_vars): Update.
3414 * defs.h (gdb_datadir): Change to std::string.
3415 (python_libdir): Likewise.
3416 (relocate_gdb_directory): Change return type to std::string.
3417 * guile/guile.c (gdbscm_data_directory): Update.
3418 (initialize_scheme_side): Update.
3419 * jit.c (jit_reader_dir): Change to std::string.
3420 (jit_reader_load_command): Update.
3421 * main.c (gdb_datadir): Change to std::string.
3422 (python_libdir): Likewise.
3423 (set_gdb_data_directory): Update.
3424 (relocate_path): Change to return std::string.
3425 (relocate_gdb_directory): Change to return std::string.
3426 (relocate_gdbinit_path_maybe_in_datadir): Update.
3427 (captured_main_1): Update.
3428 * python/python.c (do_start_initialization): Update.
3429 * top.c (show_gdb_datadir): Update.
3430 * xml-syscall.c (xml_init_syscalls_info): Update.
3431 (init_syscalls_info): Update.
3432
9224a013
CB
34332019-09-11 Christian Biesinger <cbiesinger@google.com>
3434
3435 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3436 out of get_init_files.
3437 (get_init_files): Update.
3438
f48cd836
CB
34392019-09-11 Christian Biesinger <cbiesinger@google.com>
3440
3441 * main.c (get_init_files): Change to use std::string.
3442 (captured_main_1): Update.
3443 (print_gdb_help): Update.
3444
9cab7ecd
AT
34452019-09-11 Ali Tamur <tamur@google.com>
3446
3447 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3448 implementation.
3449
67547d89
CB
34502019-09-11 Christian Biesinger <cbiesinger@google.com>
3451
3452 * dbxread.c (read_dbx_symtab): Update.
3453 * dwarf2read.c (load_partial_dies): Update.
3454 * mdebugread.c (parse_partial_symbols): Update.
3455 (handle_psymbol_enumerators): Update.
3456 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3457 * psymtab.c (add_psymbol_to_bcache): Likewise.
3458 (add_psymbol_to_list): Likewise.
3459 * symtab.c (symbol_set_names): Likewise.
3460 * symtab.h (symbol_set_names): Likewise.
3461 * xcoffread.c (scan_xcoff_symtab): Update.
3462
64b2d4a0
TT
34632019-09-11 Tom Tromey <tom@tromey.com>
3464
3465 * symfile-mem.c (symbol_file_add_from_memory): Use
3466 bfd_set_filename.
3467 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3468 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3469
3b00ef10
TT
34702019-09-10 Tom Tromey <tromey@adacore.com>
3471
3472 * dwarf-index-write.c (write_psymbols): Extend error message.
3473 (debug_names::insert): Add Ada code.
3474 (debug_names::write_psymbols): Remove Ada check.
3475 (debug_names) <m_string_obstack>: New member.
3476 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3477 (gdb_index_symbol_name_matcher::matches): Remove.
3478 (mapped_index_base::find_name_components_bounds): Add "lang"
3479 parameter.
3480 (mapped_index_base::build_name_components): Also split names
3481 according to Ada syntax.
3482 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3483 type of "match_callback".
3484 (check_match, check_find_bounds_finds)
3485 (dw2_expand_symtabs_matching): Update.
3486 (dw2_debug_names_iterator): Add new constructor.
3487 (dw2_debug_names_map_matching_symbols): New function.
3488 (dw2_debug_names_expand_symtabs_matching): Update.
3489 (dwarf2_debug_names_functions): Use
3490 dw2_debug_names_map_matching_symbols.
3491
aa391654
TT
34922019-09-10 Tom Tromey <tromey@adacore.com>
3493
3494 * dwarf2read.c (dw2_get_file_names_reader): Add the
3495 CU's file name to the results.
3496
b054970d
TT
34972019-09-10 Tom Tromey <tromey@adacore.com>
3498
3499 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3500 map_matching_symbols. Update.
3501 * dwarf2read.c (dw2_map_matching_symbols): Update.
3502 * psymtab.c (match_partial_symbol): Change type; update.
3503 (psym_map_matching_symbols): Likewise.
3504 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3505 type; update.
3506 * symfile.h (struct quick_symbol_functions)
3507 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3508 Remove "match".
3509
6a3dbf1b
TT
35102019-09-10 Tom Tromey <tromey@adacore.com>
3511
3512 * psymtab.c (map_block): Remove.
3513 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3514 * symtab.c (iterate_over_symbols_terminated): New function.
3515 * symtab.c (iterate_over_symbols_terminated): Declare.
3516
6969f124
TT
35172019-09-10 Tom Tromey <tromey@adacore.com>
3518
3519 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3520 * language.h (struct language_defn) <la_iterate_over_symbols>:
3521 Return bool.
3522 * symtab.c (iterate_over_symbols): Return bool.
3523 * symtab.h (iterate_over_symbols): Return bool.
3524
199b4314
TT
35252019-09-10 Tom Tromey <tromey@adacore.com>
3526
3527 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3528 (add_nonlocal_symbols): Update.
3529 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3530 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3531 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3532 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3533 Change type of "callback". Remove "data".
3534
a084a2a6
AT
3535
35362019-09-09 Ali Tamur <tamur@google.com>
3537
3538 * dwarf2read.c (comp_unit_head): Update comment.
3539 (dwarf2_dwo_name): New function declaration.
3540 (dwarf_unit_type_name): New function declaration.
3541 (read_comp_unit_head): Add support for new compilation units,
3542 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3543 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3544 (currently named as "signature") in their header. Also clarify error
3545 messages.
3546 (lookup_dwo_id): New function. Returns the dwo id of the given
3547 compile unit.
3548 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3549 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3550 functions.
3551 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3552 (dwarf2_dwo_name): Get the dwo name if present.
3553 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3554 purposes.
3555
25a2915e
TT
35562019-09-09 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3559
e4df0874
PW
35602019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3561
3562 * python/python.c (do_start_initialization): Make progname_copy static,
3563 to avoid a leak report.
3564
8634b462
TT
35652019-09-08 Tom Tromey <tom@tromey.com>
3566
3567 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3568
c7f839cb
SM
35692019-09-07 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3572 Change type to gdb::optional<block_enum>.
3573 (dw2_symtab_iter_init): Change block_index parameter type
3574 to gdb::optional<block_enum>.
3575 (dw2_lookup_symbol): Change block_index parameter
3576 type to block_enum.c
3577 (dw2_debug_names_lookup_symbol): Likewise.
3578 * psymtab.c (psym_lookup_symbol): Likewise.
3579 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3580 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3581 Likewise.
3582
ead0e69a
CB
35832019-09-06 Christian Biesinger <cbiesinger@google.com>
3584
3585 * defs.h (relocate_gdb_directory): Change int to bool in
3586 signature and rename flag to relocatable.
3587 * main.c (relocate_path): Likewise.
3588 (relocate_gdb_directory): Likewise.
3589
b16c44de
AM
35902019-09-06 Alan Modra <amodra@gmail.com>
3591
3592 * coffread.c (coff_symfile_read): Constify filename variable.
3593 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3594 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3595 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3596 * solib.c (reload_shared_libraries_1): Likewise.
3597 * symfile.c (reread_symbols): Likewise.
3598 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3599 * solib-darwin.c (darwin_bfd_open): Likewise.
3600 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3601
06ff036e
AB
36022019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3605 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3606
4e962e74
TT
36072019-09-03 Tom Tromey <tromey@adacore.com>
3608
3609 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3610 types.
3611 (has_negatives): Unbias a range type bound.
3612 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3613 * gdbtypes.c (operator==): Handle new field.
3614 (create_range_type): Add "bias" parameter.
3615 (create_static_range_type, resolve_dynamic_range): Update.
3616 * gdbtypes.h (struct range_bounds) <bias>: New member.
3617 (create_range_type): Add bias parameter.
3618 * printcmd.c (print_scalar_formatted): Unbias range types.
3619 * value.c (unpack_long): Unbias range types.
3620 (pack_long): Bias range types.
3621
d90b8f26
AH
36222019-09-02 Alan Hayward <alan.hayward@arm.com>
3623
3624 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3625 probe arguments.
3626
fe01123e
AH
36272019-09-02 Alan Hayward <alan.hayward@arm.com>
3628
3629 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3630 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3631 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3632 (compile_probe_arg): Likewise.
3633 * probe.h (get_argument_count): Likewise.
3634 * solib-svr4.c (solib_event_probe_action): Likewise.
3635 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3636
e661ef01
AH
36372019-09-02 Alan Hayward <alan.hayward@arm.com>
3638
3639 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3640 code to here...
3641 (svr4_create_solib_event_breakpoints): ...from here.
3642
47a536d9
SDJ
36432019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3644
3645 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3646 suffix from warning message.
3647
d6a00eba
TT
36482019-08-30 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-winsource.h (struct tui_source_window_base)
3651 <refresh_all>: Don't declare.
3652 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3653 Remove.
3654 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3655 tui_show_locator_content.
3656 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3657 declare.
3658 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3659 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3660 declare.
3661
55b2657b
TT
36622019-08-30 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3665
12a8555a
TT
36662019-08-30 Tom Tromey <tom@tromey.com>
3667
3668 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3669 Remove unnecessary forward declarations.
3670
900ac242
TT
36712019-08-30 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3674 rerender.
3675 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3676 tui_show_locator_content.
3677
99ab33fb
TT
36782019-08-30 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3681 (tui_locator_window::rerender): Rewrite using body of previous
3682 tui_show_locator_content.
3683
e594a5d1
TT
36842019-08-30 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3687 set_locator_fullname>: New methods.
3688 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3689 Rename from tui_set_locator_fullname.
3690 (tui_locator_window::set_locator_info): Rename from
3691 tui_set_locator_info. Return bool.
3692 (tui_update_locator_fullname, tui_show_frame_info): Update.
3693
715bb467
TT
36942019-08-30 Tom Tromey <tom@tromey.com>
3695
3696 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3697
772f3f03
TT
36982019-08-30 Tom Tromey <tom@tromey.com>
3699
3700 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3701 call touchwin.
3702
108e13ab
TT
37032019-08-30 Tom Tromey <tom@tromey.com>
3704
3705 * tui/tui-wingeneral.c (box_win): Assume win_info and
3706 win_info->handle cannot be NULL.
3707
cdaa6eb4
TT
37082019-08-30 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3711 refresh_window>: Declare.
3712 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3713 resize.
3714 (tui_data_item_window::rerender): Rename from
3715 tui_display_register.
3716 (tui_data_item_window::refresh_window): New method.
3717 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3718 no-op.
3719
89df7f90
TT
37202019-08-30 Tom Tromey <tom@tromey.com>
3721
3722 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3723 regs_column_count, current_group>: Move later. Now private.
3724 <get_current_group>: New method.
3725 * tui/tui-regs.c (tui_reg_command): Update.
3726 * tui/tui-layout.c (tui_set_layout): Update.
3727
1bf2866a
TT
37282019-08-30 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3731 (tui_data_window::rerender): Don't call
3732 check_and_display_highlight_if_needed.
3733 (tui_data_window::refresh_all): Remove call to
3734 erase_data_content.
3735
0670413d
TT
37362019-08-30 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3739 (tui_data_window::display_registers_from)
3740 (tui_data_window::display_reg_element_at_line)
3741 (tui_data_window::display_registers_from_line): Remove checks of
3742 "empty".
3743
18bb55c7
TT
37442019-08-30 Tom Tromey <tom@tromey.com>
3745
3746 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3747 Don't declare.
3748 * tui/tui-regs.c (tui_data_window::show_registers): Call
3749 rerender.
3750 (tui_data_window::rerender): Rename from display_all_data.
3751 (tui_data_window::rerender): Remove old implementation.
3752
1f6d2f10
TT
37532019-08-30 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3756 text.
3757 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3758
16d01f9c
BW
37592019-08-29 Bernhard Wodok <barto@gmx.net>
3760 Sergio Durigan Junior <sergiodj@redhat.com>
3761
3762 PR win32/24284
3763 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3764
d8f27c60
AB
37652019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3768 when searching for types.
3769
1f20c35e
AB
37702019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * f-lang.c (f_language_defn): Use f_print_typedef.
3773 * f-lang.h (f_print_typedef): Declare.
3774 * f-typeprint.c (f_print_typedef): Define.
3775
550105b7
CB
37762019-08-27 Christian Biesinger <cbiesinger@google.com>
3777
3778 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3779
4acfdd20
AB
37802019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * cli/cli-utils.c (info_print_options_defs): Delete.
3783 (make_info_print_options_def_group): Delete.
3784 (extract_info_print_options): Delete.
3785 (info_print_command_completer): Delete.
3786 (info_print_args_help): Add extra parameter, and optionally
3787 include text about -n flag.
3788 * cli/cli-utils.h (struct info_print_options): Delete.
3789 (extract_info_print_options): Delete declaration.
3790 (info_print_command_completer): Delete declaration.
3791 (info_print_args_help): Add extra parameter, extend header
3792 comment.
3793 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3794 search_symbols.
3795 * stack.c (struct info_print_options): New type.
3796 (info_print_options_defs): New file scoped variable.
3797 (make_info_print_options_def_group): New static function.
3798 (info_print_command_completer): New static function.
3799 (info_locals_command): Update to use new local functions.
3800 (info_args_command): Likewise.
3801 (_initialize_stack): Add extra parameter to calls to
3802 info_print_args_help.
3803 * symtab.c (search_symbols): Add extra parameter, use this to
3804 possibly excluse non-debug symbols.
3805 (symtab_symbol_info): Add extra parameter, which is passed on to
3806 search_symbols.
3807 (struct info_print_options): New type.
3808 (info_print_options_defs): New file scoped variable.
3809 (make_info_print_options_def_group): New static function.
3810 (info_print_command_completer): New static function.
3811 (info_variables_command): Update to use local functions, and pass
3812 extra parameter through to symtab_symbol_info.
3813 (info_functions_command): Likewise.
3814 (info_types_command): Pass additional argument through to
3815 symtab_symbol_info.
3816 (rbreak_command): Pass extra argument to search_symbols.
3817 (_initialize_symtab): Add extra arguments for calls to
3818 info_print_args_help, and update help text for 'info variables',
3819 'whereis', and 'info functions' commands.
3820 * symtab.h (search_symbols): Add extra argument to declaration.
3821 * NEWS: Mention new flags.
3822
9aa55206
CB
38232019-08-26 Christian Biesinger <cbiesinger@google.com>
3824
3825 * symtab.c (lookup_static_symbol): Call the new function (and move
3826 it down to be next to lookup_global_symbol).
3827 (struct global_sym_lookup_data): Add block_enum member and rename to...
3828 (struct global_or_static_sym_lookup_data): ...this.
3829 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3830 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3831 (lookup_symbol_global_or_static_iterator_cb): ...this.
3832 (lookup_global_or_static_symbol): New function.
3833 (lookup_global_symbol): Call new function.
3834
5c31b358
TV
38352019-08-26 Tom de Vries <tdevries@suse.de>
3836
3837 PR c++/24852
3838 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3839 when pc_probe.prob == NULL.
3840
23c13d42
SM
38412019-08-25 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3844 variable symbol_linkage to symbol_linkage_.
3845
beadd3e8
SM
38462019-08-25 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3849 represent whether the symbol is static, dynamic, or we don't
3850 know.
3851
e3ec872f
YS
38522019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3853
3854 * gdb/rx-tdep.c (rx_register_names): New.
3855 (rx_register_name): Delete.
3856 (rx_psw_type): Delete.
3857 (rx_fpsw_type): Delete.
3858 (rx_register_type): Delete.
3859 (rx_gdbarch_init): Convert target-descriptions.
3860 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3861 * gdb/features/Makefile: Add rx.xml.
3862 * gdb/features/rx.xml: New.
3863 * gdb/features/rx.c: Generated.
3864 * gdb/NEWS: Mention target description support.
3865
d0509ba4
CB
38662019-08-22 Christian Biesinger <cbiesinger@google.com>
3867
3868 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3869 *slot_ptr.
3870
2d41fa11
SDJ
38712019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3872
3873 * configure.ac: Don't check for 'dlfcn.h' (moved to
3874 gdbsupport/common.m4).
3875 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3876 'gdbsupport/'.
3877 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3878 * compile/compile-c-support.c: Include
3879 'gdbsupport/gdb-dlfcn.h'.
3880 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3881 * gdb-dlfcn.c: Move to...
3882 * gdbsupport/gdb-dlfcn.c: ... here.
3883 * gdb-dlfcn.h: Move to...
3884 * gdbsupport/gdb-dlfcn.h: ... here.
3885
de8af808
SL
38862019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3887
3888 * nios2-tdep.c (struct reg_value): Improve comments. Make
3889 the offset field signed.
3890
27204489
CB
38912019-08-22 Christian Biesinger <cbiesinger@google.com>
3892
3893 * python/lib/gdb/__init__.py (_execute_file): New function.
3894 * python/python.c (python_run_simple_file): Call gdb._execute_file
3895 on Windows.
3896
43771869
AB
38972019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3900 all uses as this was never set to anything but a zero value.
3901
26c957f1
PA
39022019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3903
3904 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3905
c07aae6e
CB
39062019-08-21 Christian Biesinger <cbiesinger@google.com>
3907
3908 * tui/tui-data.h (tui_gen_win_info): Add an =default
3909 move constructor, required by some GCC versions.
3910
3960cb7a
JF
39112019-08-21 Jinke Fan <fanjinke51@yeah.net>
3912
3913 * go32-nat.c (go32_sysinfo): Add hygon_p.
3914
04c72a68
TT
39152019-08-20 Tom Tromey <tom@tromey.com>
3916
3917 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3918 line_from_reg_element_no, first_reg_element_no_inline,
3919 display_all_data, delete_data_content_windows,
3920 erase_data_content>: Now private.
3921
072272ce
TT
39222019-08-20 Tom Tromey <tom@tromey.com>
3923
3924 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3925 (tui_unhighlight_win, tui_highlight_win)
3926 (tui_win_info::make_window): Update.
3927 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3928
973961bd
TT
39292019-08-20 Tom Tromey <tom@tromey.com>
3930
3931 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3932 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3933 (MAX_PID_WIDTH): Move to tui-stack.c.
3934 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3935 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3936 (MAX_PID_WIDTH): Move from tui-data.h.
3937
ab0e1f1a
TT
39382019-08-20 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3941 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3942 (box_win): Update.
3943 (tui_gen_win_info::make_window): Rename from tui_make_window.
3944 (tui_win_info::make_window): New method.
3945 (tui_gen_win_info::make_visible): Update.
3946 * tui/tui-source.c (tui_source_window::set_contents): Update.
3947 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3948 (tui_data_window::display_registers_from): Update.
3949 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3950 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3951 Declare.
3952 <can_box>: Remove.
3953 <title>: Remove.
3954 (struct tui_win_info) <make_window>: Declare.
3955 <can_box>: Now virtual.
3956 <title>: New member.
3957 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3958 * tui/tui-command.c (tui_cmd_window::resize): Update.
3959
100c2bf3
TT
39602019-08-20 Tom Tromey <tom@tromey.com>
3961
3962 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3963 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3964 (tui_data_window::check_register_values): Update.
3965
fa4dc567
TT
39662019-08-20 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-regs.h (struct tui_data_window): Use
3969 DISABLE_COPY_AND_ASSIGN.
3970 <regs_content>: Change type, removing unique_ptr.
3971 <tui_data_window>: Add move constructor.
3972 * tui/tui-regs.c (tui_data_window::show_registers)
3973 (tui_data_window::show_register_group)
3974 (tui_data_window::display_registers_from)
3975 (tui_data_window::display_registers_from)
3976 (tui_data_window::first_data_item_displayed)
3977 (tui_data_window::delete_data_content_windows)
3978 (tui_data_window::rerender, tui_data_window::refresh_window)
3979 (tui_data_window::check_register_values): Update.
3980
ca02d7c8
TT
39812019-08-20 Tom Tromey <tom@tromey.com>
3982
3983 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3984 show_register_group>: Declare.
3985 (tui_show_register_group): Don't declare.
3986 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3987 tui_show_registers.
3988 (tui_data_window::show_register_group): Rename from
3989 tui_show_register_group.
3990 (tui_data_window::check_register_values, tui_reg_command):
3991 Update.
3992 * tui/tui-layout.c (tui_set_layout): Update.
3993
63356bfd
TT
39942019-08-20 Tom Tromey <tom@tromey.com>
3995
3996 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3997 Declare.
3998 (tui_check_register_values): Don't declare.
3999 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4000 from tui_check_register_values.
4001 * tui/tui-hooks.c (tui_register_changed): Update.
4002
42cc14a7
TT
40032019-08-20 Tom Tromey <tom@tromey.com>
4004
4005 * tui/tui-regs.c (tui_reg_layout): Move later.
4006 (tui_show_registers): Don't enable TUI mode or change layout.
4007
b9ad3686
TT
40082019-08-20 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-regs.h (struct tui_data_item_window)
4011 <~tui_data_item_window>: Remove.
4012 <content>: Now a unique_xmalloc_ptr.
4013 * tui/tui-regs.c (tui_register_format): Return a
4014 unique_xmalloc_ptr.
4015 (tui_get_register): Update.
4016 (~tui_data_item_window): Remove.
4017 (tui_data_window::display_registers_from, tui_display_register):
4018 Update.
4019 * tui/tui-io.h (tui_expand_tabs): Update.
4020 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4021 Remove "col" parameter.
4022
8e114aab
TT
40232019-08-20 Tom Tromey <tom@tromey.com>
4024
4025 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4026 field.
4027 * tui/tui-regs.c (~tui_data_item_window): Update.
4028
1a4f81dd
TT
40292019-08-20 Tom Tromey <tom@tromey.com>
4030
4031 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4032 earlier.
4033
0f8d8876
TT
40342019-08-20 Tom Tromey <tom@tromey.com>
4035
4036 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4037
605dc2c2
TT
40382019-08-20 Tom Tromey <tom@tromey.com>
4039
4040 * tui/tui-source.h (struct tui_source_window): Update.
4041 * tui/tui-regs.c (tui_show_registers): Update.
4042 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4043 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4044 (NO_REGS_STRING): Remove defines.
4045
aedbe3bb
CM
40462019-08-20 Conrad Meyer <cem@FreeBSD.org>
4047
4048 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4049 unnecessary thread walk if remote doesn't support the packet.
4050
7ce8f214
TT
40512019-08-19 Tom Tromey <tromey@adacore.com>
4052
4053 * python/py-value.c (value_has_field): Fix indentation.
4054
f21c2bd7
TT
40552019-08-19 Tom Tromey <tromey@adacore.com>
4056
4057 * printcmd.c (do_one_display, info_display_command): Update.
4058 * block.h (contained_in): Return bool. Add allow_nested
4059 parameter.
4060 * block.c (contained_in): Return bool. Add allow_nested
4061 parameter.
4062
d806ea2d
TT
40632019-08-19 Tom Tromey <tom@tromey.com>
4064
4065 * configure: Rebuild.
4066 * configure.ac: Disallow the combination of -static-libstdc++ and
4067 source highlight.
4068 * source-cache.c (get_language_name): Handle rust.
4069 (source_cache::get_source_lines): Ignore highlighting exceptions.
4070
398fdd60
TT
40712019-08-16 Tom Tromey <tom@tromey.com>
4072
4073 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4074 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4075 (struct tui_source_window_base) <make_visible, refresh_window,
4076 resize>: Remove methods.
4077 <execution_info>: Remove field.
4078 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4079 (tui_show_source_line, tui_source_window_base)
4080 (~tui_source_window_base): Update.
4081 (tui_source_window_base::resize)
4082 (tui_source_window_base::make_visible)
4083 (tui_source_window_base::refresh_window): Remove.
4084 (tui_source_window_base::update_exec_info): Update.
4085 * tui/tui-source.c (tui_source_window::set_contents): Update.
4086 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4087
e699d331
TT
40882019-08-16 Tom Tromey <tom@tromey.com>
4089
4090 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4091 deprecated_query_hook.
4092
bb01dbfc
TT
40932019-08-16 Tom Tromey <tom@tromey.com>
4094
4095 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4096 (tui_update_source_windows_with_line): Update.
4097 * tui/tui-source.h (struct tui_source_window)
4098 <show_symtab_source>: Declare.
4099 (tui_show_symtab_source): Don't declare.
4100 * tui/tui-source.c (tui_show_symtab_source): Rename from
4101 tui_show_symtab_source.
4102
81c82c4b
TT
41032019-08-16 Tom Tromey <tom@tromey.com>
4104
4105 * tui/tui-winsource.h (struct tui_source_window_base)
4106 <set_contents>: Declare.
4107 * tui/tui-winsource.c
4108 (tui_source_window_base::update_source_window_as_is): Update.
4109 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4110 Declare.
4111 (tui_set_source_content): Don't declare.
4112 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4113 tui_set_source_content.
4114 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4115 Declare.
4116 (tui_set_disassem_content): Don't declare.
4117 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4118 tui_set_disassem_content.
4119
2ddaf614
TT
41202019-08-16 Tom Tromey <tom@tromey.com>
4121
4122 * tui/tui-winsource.h (struct tui_source_window_base)
4123 <update_breakpoint_info>: Declare.
4124 (tui_update_breakpoint_info): Don't declare.
4125 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4126 (tui_update_all_breakpoint_info): Update.
4127 (tui_source_window_base::update_breakpoint_info): Rename from
4128 tui_update_breakpoint_info.
4129 (tui_source_window_base::update_exec_info): Update.
4130
017f9828
TT
41312019-08-16 Tom Tromey <tom@tromey.com>
4132
4133 * tui/tui-winsource.h (struct tui_source_window_base)
4134 <update_source_window>: Declare.
4135 (tui_update_source_window): Don't declare.
4136 * tui/tui-winsource.c
4137 (tui_source_window_base::update_source_window): Rename from
4138 tui_update_source_window.
4139 (tui_source_window_base::rerender): Update.
4140 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4141 * tui/tui-disasm.c (tui_show_disassem)
4142 (tui_show_disassem_and_update_source)
4143 (tui_disasm_window::maybe_update): Update.
4144
ed8358e9
TT
41452019-08-16 Tom Tromey <tom@tromey.com>
4146
4147 * tui/tui-winsource.h (struct tui_source_window_base)
4148 <update_source_window_as_is>: Declare.
4149 (tui_update_source_window_as_is): Don't declare.
4150 * tui/tui-winsource.c (tui_update_source_window): Update
4151 (tui_source_window_base::update_source_window_as_is): Rename from
4152 tui_update_source_window_as_is.
4153 (tui_source_window_base::refill): Update.
4154 * tui/tui-source.c (tui_show_symtab_source): Update.
4155 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4156 Update.
4157
20149b6b
TT
41582019-08-16 Tom Tromey <tom@tromey.com>
4159
4160 * tui/tui-winsource.h (tui_update_source_window)
4161 (tui_update_source_window_as_is): Remove "noerror" parameter.
4162 * tui/tui-winsource.c (tui_update_source_window)
4163 (tui_update_source_window_as_is): Remove "noerror" parameter.
4164 (tui_update_source_windows_with_addr)
4165 (tui_update_source_windows_with_line)
4166 (tui_source_window_base::rerender)
4167 (tui_source_window_base::refill): Update.
4168 * tui/tui-source.h (tui_set_source_content)
4169 (tui_show_symtab_source): Remove "noerror" parameter.
4170 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4171 parameter.
4172 (tui_show_symtab_source): Likewise.
4173 (tui_source_window::maybe_update): Update.
4174 * tui/tui-disasm.c (tui_show_disassem)
4175 (tui_show_disassem_and_update_source)
4176 (tui_disasm_window::do_scroll_vertical)
4177 (tui_disasm_window::maybe_update): Update.
4178
2d83e710
TT
41792019-08-16 Tom Tromey <tom@tromey.com>
4180
4181 * tui/tui.c (tui_is_window_visible): Update.
4182 * tui/tui-wingeneral.c (tui_make_window)
4183 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4184 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4185 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4186 (tui_set_win_height_command, parse_scrolling_args): Update.
4187 * tui/tui-source.c (tui_source_window::style_changed): Update.
4188 * tui/tui-regs.c (tui_show_registers)
4189 (tui_data_window::first_data_item_displayed)
4190 (tui_data_window::delete_data_content_windows)
4191 (tui_check_register_values, tui_reg_command): Update.
4192 * tui/tui-disasm.c (tui_show_disassem): Update.
4193 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4194 method.
4195 <is_visible>: Remove field.
4196 * tui/tui-data.c (tui_next_win, tui_prev_win)
4197 (tui_delete_invisible_windows): Update.
4198
d4ab829a
TT
41992019-08-16 Tom Tromey <tom@tromey.com>
4200
4201 * tui/tui-winsource.h (struct tui_source_window_base)
4202 <m_has_locator>: Remove.
4203 * tui/tui-layout.c (show_source_disasm_command, show_data)
4204 (show_source_or_disasm_and_command): Update.
4205
aa7ca1bb
AH
42062019-08-16 Alan Hayward <alan.hayward@arm.com>
4207
4208 * NEWS (Other MI changes): New subsection.
4209 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4210 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4211 * arch-utils.c (default_get_pc_address_flags): New function.
4212 * arch-utils.h (default_get_pc_address_flags): New declaration.
4213 * gdbarch.sh: Add get_pc_address_flags.
4214 * gdbarch.c: Regenerate.
4215 * gdbarch.h: Likewise.
4216 * stack.c (print_pc): New function.
4217 (print_frame_info) (print_frame): Call print_pc.
4218
6eac171f
TV
42192019-08-16 Tom de Vries <tdevries@suse.de>
4220
4221 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4222 print_objfile_section_info.
4223
3df505f6
TT
42242019-08-15 Tom Tromey <tom@tromey.com>
4225
4226 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4227 calling update_cmdwin_start_line.
4228 * tui/tui-winsource.h (struct tui_source_window_base)
4229 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4230 <rerender>: Declare.
4231 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4232 Call rerender.
4233 (tui_source_window_base::set_new_height): Remove.
4234 (tui_source_window_base::rerender): Rename from
4235 do_make_visible_with_new_height.
4236 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4237 resize method.
4238 (tui_win_info::make_invisible_and_set_new_height)
4239 (tui_win_info::make_visible_with_new_height): Remove.
4240 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4241 Declare.
4242 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4243 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4244 do_make_visible_with_new_height>: Don't declare.
4245 <rerender>: Declare.
4246 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4247 set_new_height.
4248 (tui_data_window::do_make_visible_with_new_height): Remove.
4249 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4250 call tui_show_locator_content.
4251 (tui_gen_win_info::resize): Call rerender.
4252 (show_source_or_disasm_and_command): Don't call
4253 tui_show_locator_content.
4254 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4255 method.
4256 (struct tui_win_info) <rerender>: Declare.
4257 <set_new_height, make_invisible_and_set_new_height,
4258 make_visible_with_new_height>: Don't declare.
4259 * tui/tui-data.c (tui_win_list::rerender): New method.
4260 * tui/tui-command.h (struct tui_cmd_window)
4261 <do_make_visible_with_new_height>: Don't declare.
4262 * tui/tui-command.c
4263 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4264
272560b5
TT
42652019-08-15 Tom Tromey <tromey@adacore.com>
4266
4267 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4268 * ada-lang.c (ada_enum_name): Likewise.
4269
08235187
CB
42702019-08-15 Christian Biesinger <cbiesinger@google.com>
4271
4272 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4273 leading underscore.
4274 (GdbOutputErrorFile): Likewise.
4275 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4276 accordingly.
4277 (execute_unwinders): Rename to have a leading underscore.
4278 (auto_load_packages): Likewise.
4279 (global scope): Adjust call to auto_load_packages accordingly.
4280 (GdbSetPythonDirectory): Likewise.
4281 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4282 instead of execute_unwinders.
4283
db502012
TT
42842019-08-15 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4287 (show_data): Don't change window visibility.
4288 (tui_gen_win_info::resize): Remove special case for command
4289 window. Use wresize, when available.
4290 (show_source_or_disasm_and_command): Don't change window
4291 visibility.
4292 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4293 <make_visible>: New method.
4294 * tui/tui-command.c (tui_cmd_window::resize): New method.
4295
3891b65e
TT
42962019-08-15 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4299 (struct tui_source_windows): New.
4300 * tui/tui-winsource.c (tui_display_main): Update.
4301 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4302 (new_height_ok, parse_scrolling_args): Update.
4303 * tui/tui-layout.c (show_layout, show_data): Update.
4304 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4305 (tui_add_to_source_windows): Don't declare.
4306 * tui/tui-data.c (source_windows, tui_source_windows)
4307 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4308
ee556432
TT
43092019-08-15 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4312 Rename from reset.
4313 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4314 * tui/tui-layout.c (show_source_disasm_command, show_data):
4315 Update.
4316 (tui_gen_win_info::resize): Rename.
4317 (show_source_or_disasm_and_command): Update.
4318 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4319 reset.
4320
46f438e3
TT
43212019-08-15 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4324 * tui/tui-interp.c (tui_interp::init): Don't call
4325 tui_initialize_static_data.
4326 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4327
f4ce562c
TT
43282019-08-15 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4331 examine tui_win_list.
4332
c398c3d0
TT
43332019-08-15 Tom Tromey <tom@tromey.com>
4334
4335 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4336 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4337 tui_clear_source_content.
4338 (tui_clear_source_content): Remove.
4339 (tui_source_window_base::do_erase_source_content): Hoist call to
4340 content.clear().
4341 * tui/tui-stack.c (tui_show_frame_info): Don't call
4342 tui_clear_source_content.
4343
e25d2004
TT
43442019-08-15 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-winsource.h (struct tui_source_window_base)
4347 <do_erase_source_content>: New method.
4348 <erase_source_content>: New method.
4349 (tui_erase_source_content): Don't declare.
4350 * tui/tui-winsource.c (tui_clear_source_content): Update.
4351 (tui_source_window_base::do_erase_source_content): Rename from
4352 tui_erase_source_content.
4353 (tui_source_window_base::show_source_content): Update.
4354 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4355 * tui/tui-source.h (struct tui_source_window)
4356 <erase_source_content>: New method.
4357 * tui/tui-disasm.h (struct tui_disasm_window)
4358 <erase_source_content>: New method.
4359
002f15c2
TT
43602019-08-15 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4363 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4364 constructor.
4365 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4366 * tui/tui-source.c (tui_set_source_content): Update.
4367 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4368
c9033fe8
TT
43692019-08-15 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4372 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4373 tui-source.c.
4374 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4375 Declare.
4376 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4377 method.
4378 (tui_source_window::maybe_update): Update.
4379
088f37dd
TT
43802019-08-15 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4383 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4384 tui-disasm.c.
4385 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4386 Declare.
4387 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4388 method.
4389 (tui_disasm_window::maybe_update): Update.
4390
a54700c6
TT
43912019-08-15 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-winsource.h (struct tui_source_window_base)
4394 <maybe_update>: Declare.
4395 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4396 method.
4397 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4398 Declare.
4399 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4400 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4401 Declare.
4402 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4403
e2a678a5
TT
44042019-08-15 Tom Tromey <tom@tromey.com>
4405
4406 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4407
f2dda477
TT
44082019-08-15 Tom Tromey <tom@tromey.com>
4409
4410 * tui/tui-wingeneral.c: Include tui-stack.h.
4411 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4412 (struct tui_locator_window): Move from tui-data.h.
4413 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4414 (tui_initialize_static_data): Move from tui-data.c.
4415 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4416 (struct tui_locator_window): Move to tui-stack.c.
4417 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4418 (tui_initialize_static_data): Move to tui-stack.c.
4419
ed4a1084
TT
44202019-08-15 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-layout.c (show_source_disasm_command)
4423 (show_source_or_disasm_and_command): Use make_visible method, not
4424 tui_make_window.
4425 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4426 Remove.
4427
65962b20
TT
44282019-08-15 Tom Tromey <tom@tromey.com>
4429
4430 * tui/tui-wingeneral.h (tui_make_window): Update.
4431 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4432 parameter.
4433 (tui_gen_win_info::make_visible): Update.
4434 * tui/tui-regs.c (tui_data_window::display_registers_from):
4435 Update.
4436 * tui/tui-layout.c (show_source_disasm_command)
4437 (show_source_or_disasm_and_command): Update.
4438 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4439 (enum tui_box): Remove.
4440 (struct tui_win_info) <can_box>: New method.
4441 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4442 method.
4443
2208ee91
TV
44442019-08-15 Tom de Vries <tdevries@suse.de>
4445
4446 * linux-nat-trad.c: Include gdbarch.h.
4447
75faf5c4
AH
44482019-08-14 Alan Hayward <alan.hayward@arm.com>
4449
4450 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4451 register sizes.
4452
b1c896b3
TT
44532019-08-14 Tom Tromey <tromey@adacore.com>
4454
4455 * darwin-nat.c: Include gdbarch.h.
4456 * darwin-nat-info.c: Include gdbarch.h.
4457
6405cd73
TT
44582019-08-13 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4461 Remove.
4462 * tui/tui-data.c (tui_initialize_static_data): Update.
4463
5216580d
TT
44642019-08-13 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-winsource.h (struct tui_exec_info_window)
4467 <~tui_exec_info_window, maybe_allocate_content, get_content,
4468 m_content>: Remove.
4469 (struct tui_source_window_base) <set_exec_info_content,
4470 show_exec_info_content>: Don't declare.
4471 * tui/tui-winsource.c
4472 (tui_exec_info_window::maybe_allocate_content): Remove.
4473 (tui_source_window_base::update_exec_info): Rename from
4474 set_exec_info_content.
4475 (tui_source_window_base::show_exec_info_content)
4476 (tui_source_window_base::update_exec_info): Remove.
4477
93858ad3
TT
44782019-08-13 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4481 declare.
4482 * tui/tui-winsource.c (tui_update_source_window_as_is)
4483 (tui_update_source_windows_with_addr, tui_erase_source_content):
4484 Update.
4485 (tui_clear_exec_info_content): Remove.
4486
e321e7ce
TT
44872019-08-13 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4490 declare.
4491 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4492 call tui_erase_exec_info_content.
4493 (tui_clear_exec_info_content): Rename from
4494 tui_erase_exec_info_content.
4495 (tui_clear_exec_info_content): Delete.
4496
8270ac62
TT
44972019-08-13 Tom Tromey <tom@tromey.com>
4498
4499 * tui/tui-winsource.h (struct tui_source_window_base)
4500 <show_exec_info_content>: Declare.
4501 (tui_show_exec_info_content): Don't declare.
4502 * tui/tui-winsource.c
4503 (tui_source_window_base::show_exec_info_content): Rename from
4504 tui_show_exec_info_content.
4505 (tui_source_window_base::update_exec_info): Update.
4506
7b56485d
TT
45072019-08-13 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4510 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4511 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4512 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4513 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4514 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4515 ... here.
4516
7ba913dc
TT
45172019-08-13 Tom Tromey <tom@tromey.com>
4518
4519 * tui/tui-winsource.h (struct tui_source_window_base)
4520 <update_exec_info>: Declare.
4521 (tui_update_exec_info): Don't declare.
4522 * tui/tui-winsource.c (tui_update_source_window_as_is)
4523 (tui_source_window_base::refresh_all)
4524 (tui_update_all_breakpoint_info): Update.
4525 (tui_source_window_base::update_exec_info): Rename from
4526 tui_update_exec_info.
4527 * tui/tui-stack.c (tui_show_frame_info): Update.
4528
37a4a131
TT
45292019-08-13 Tom Tromey <tom@tromey.com>
4530
4531 * tui/tui-winsource.h (struct tui_source_window_base)
4532 <set_exec_info_content>: Declare.
4533 (tui_set_exec_info_content): Don't declare.
4534 * tui/tui-winsource.c
4535 (tui_source_window_base::set_exec_info_content): Rename from
4536 tui_set_exec_info_content.
4537 (tui_update_exec_info): Update.
4538
0bd27e07
TT
45392019-08-13 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-winsource.h (struct tui_source_window_base)
4542 <show_source_content>: Declare.
4543 (tui_show_source_content): Don't declare.
4544 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4545 (tui_source_window_base::show_source_content): Rename from
4546 tui_show_source_content.
4547 (tui_source_window_base::refresh_all): Update.
4548 * tui/tui-layout.c (show_source_disasm_command)
4549 (show_source_or_disasm_and_command): Update.
4550
b4ef5aeb
TT
45512019-08-13 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-winsource.c (tui_erase_source_content)
4554 (tui_show_source_content, tui_source_window_base::refresh_all):
4555 Update.
4556 * tui/tui-wingeneral.h
4557 (tui_check_and_display_highlight_if_needed): Don't declare.
4558 * tui/tui-wingeneral.c
4559 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4560 check_and_display_highlight_if_needed.
4561 * tui/tui-win.c (tui_rehighlight_all)
4562 (tui_win_info::make_visible_with_new_height): Update.
4563 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4564 (tui_data_window::erase_data_content)
4565 (tui_data_window::display_all_data): Update.
4566 * tui/tui-data.h (struct tui_win_info)
4567 <check_and_display_highlight_if_needed>: Declare.
4568
fede5273
TT
45692019-08-13 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-win.c (tui_resize_all): Call
4572 tui_delete_invisible_windows.
4573 * tui/tui-layout.c (show_layout): Call
4574 tui_delete_invisible_windows.
4575 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4576 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4577
22c3f490
TT
45782019-08-13 Tom Tromey <tom@tromey.com>
4579
4580 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4581 tui_add_win_to_layout.
4582
16cb7910
TT
45832019-08-13 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4586 * tui/tui-layout.c (tui_default_win_height): Now static.
4587
cc0c3ffb
TT
45882019-08-13 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4591 single switch.
4592 (show_source_disasm_command, show_source_or_disasm_and_command):
4593 Don't check current layout.
4594
3f3ffe54
TT
45952019-08-13 Tom Tromey <tom@tromey.com>
4596
4597 * tui/tui-wingeneral.c (make_all_visible): Remove.
4598 (tui_make_all_invisible): Simplify.
4599 * tui/tui-layout.c (tui_make_all_invisible): Move from
4600 tui-wingeneral.c; simplify.
4601 (show_layout): Hoist call to tui_make_all_invisible.
4602 (show_data): Don't call tui_make_all_invisible.
4603
69258091
TT
46042019-08-13 Tom Tromey <tom@tromey.com>
4605
4606 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4607 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4608
62cf57fe
TT
46092019-08-13 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4612 tui-data.c.
4613 (show_source_disasm_command, show_data)
4614 (show_source_or_disasm_and_command): Don't use
4615 tui_set_current_layout_to.
4616 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4617 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4618 tui-layout.c.
4619 (tui_set_current_layout_to): Remove.
4620
2afade5d
TT
46212019-08-13 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-layout.c (tui_set_layout): Update.
4624 * tui/tui-data.h (struct tui_layout_def): Remove.
4625 (tui_layout_def): Don't declare.
4626 * tui/tui-data.c (layout_def): Remove.
4627 (tui_layout_def): Remove.
4628
a3504e96
TT
46292019-08-13 Tom Tromey <tom@tromey.com>
4630
4631 * tui/tui-winsource.h (struct tui_source_window_base)
4632 <clear_detail>: No longer "override".
4633 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4634 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4635 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4636 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4637 Remove.
4638 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4639
29c92911
TT
46402019-08-13 Tom Tromey <tromey@adacore.com>
4641
4642 * tracepoint.c: Don't include readline.h or history.h.
4643
86c6b807
TT
46442019-08-12 Tom Tromey <tom@tromey.com>
4645
4646 * configure: Rebuild.
4647 * configure.ac: Check for readline 7.
4648 * NEWS: Mention readline 7 requirement.
4649 * README: Update.
4650
5db2718c
TT
46512019-08-12 Tom Tromey <tom@tromey.com>
4652
4653 * mingw-hdep.c (gdb_select): Remove readline hack.
4654
dac36daf
PFC
46552019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4656
4657 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4658 when the function fails.
4659
1022c627
AA
46602019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4661
4662 * s390-tdep.c (s390_type_align): New function.
4663 (s390_gdbarch_init): Set it as type_align gdbarch method.
4664
eba4caf2
TV
46652019-08-09 Tom de Vries <tdevries@suse.de>
4666
4667 PR gdb/24591
4668 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4669 pc_low with relocation offset.
4670
123cd851
TT
46712019-08-07 Tom Tromey <tromey@adacore.com>
4672
4673 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4674 (print_frame_args): Update.
4675 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4676 Update.
4677 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4678 * frame.h (struct frame_arg): Add initializers.
4679 <error>: Now a unique_xmalloc_ptr.
4680
3d31bc39
AH
46812019-08-07 Alan Hayward <alan.hayward@arm.com>
4682
4683 * NEWS: Expand the Pointer Authentication entry.
4684 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4685 (aarch64_frame_unmask_lr): ... to this.
4686 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4687 Call aarch64_frame_unmask_lr.
4688 * frame.c (struct frame_info): Add "masked" variable.
4689 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4690 (fprint_frame): Check for masked pc.
4691 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4692 declarations.
4693 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4694 * stack.c (print_frame): Check for masked pc.
4695
0cf9feb9
TT
46962019-08-06 Tom Tromey <tom@tromey.com>
4697
4698 * stabsread.c (patch_block_stabs, read_one_struct_field)
4699 (read_enum_type): Use obstack_strndup.
4700 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4701 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4702 * dwarf2read.c (guess_full_die_structure_name)
4703 (anonymous_struct_prefix): Use obstack_strndup.
4704 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4705 * c-exp.y (yylex): Use obstack_strndup.
4706 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4707 (write_var_or_type): Use obstack_strndup.
4708
efba19b0
TT
47092019-08-06 Tom Tromey <tom@tromey.com>
4710
4711 * symfile.c (reread_symbols): Use obstack_strdup.
4712 * stabsread.c (read_type): Use obstack_strdup.
4713 * gdb_obstack.h (obstack_strdup): New overload.
4714 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4715 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4716 (dwarf2_canonicalize_name): Use obstack_strdup.
4717 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4718 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4719 Use obstack_strdup.
4720
f25102f7
TT
47212019-08-06 Tom Tromey <tom@tromey.com>
4722
4723 * gdb_obstack.h (obstack_strdup): Define.
4724 * gdb_obstack.c (obstack_strdup): Don't define.
4725
021887d8
TT
47262019-08-06 Tom Tromey <tom@tromey.com>
4727
4728 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4729 obstack_strdup.
4730 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4731 obstack_strdup.
4732 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4733 * stabsread.c (common_block_start): Use obstack_strdup.
4734 * objfiles.c (set_objfile_main_name, objfile): Use
4735 obstack_strdup.
4736 * namespace.c (add_using_directive): Use obstack_strdup.
4737 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4738 * jit.c (finalize_symtab): Use obstack_strdup.
4739 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4740 (guess_partial_die_structure_name, partial_die_info::fixup)
4741 (dwarf2_name): Use obstack_strdup.
4742 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4743 obstack_strdup.
4744 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4745 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4746 obstack_strdup.
4747 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4748
d2834edc
PW
47492019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4750
4751 * unittests/help-doc-selftests.c: New file.
4752 * Makefile.in: Add the new file.
4753
590042fc
PW
47542019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4755
4756 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4757 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4758 the full first line, except when FOR_VALUE_PREFIX. In this case,
4759 the trailing '.' is not output, and the first character is uppercased.
4760 (print_help_for_command): Update call to print_doc_line.
4761 (print_doc_of_command): Likewise.
4762 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4763 * cli/cli-option.c (append_indented_doc): Do not append newline.
4764 (build_help_option): Append newline after first appended_indented_doc
4765 only if a second call is done.
4766 (build_help): Append 2 new lines before each option, except the first
4767 one.
4768 * compile/compile.c (_initialize_compile): Add new lines after
4769 %OPTIONS%, when not at the end of the help.
4770 Change help doc or code
4771 producing the help doc to respect the invariants.
4772 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4773 Also removed the new line after 'Options:', as all other commands
4774 do not put an empty line between 'Options:' and the first option.
4775 * printcmd.c (_initialize_printcmd): Likewise.
4776 * stack.c (_initialize_stack): Likewise.
4777 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4778 incorrectly telling COMMAND is optional.
4779 * ada-lang.c (_initialize_ada_language): Change help doc or code
4780 producing the help doc to respect the invariants.
4781 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4782 * breakpoint.c (_initialize_breakpoint): Likewise.
4783 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4784 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4785 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4786 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4787 _initialize_cli_style): Likewise.
4788 * corelow.c (core_target_info): Likewise.
4789 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4790 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4791 * filesystem.c (_initialize_filesystem): Likewise.
4792 * frame.c (_initialize_frame): Likewise.
4793 * gnu-nat.c (add_task_commands): Likewise.
4794 * infcall.c (_initialize_infcall): Likewise.
4795 * infcmd.c (_initialize_infcmd): Likewise.
4796 * interps.c (_initialize_interpreter): Likewise.
4797 * language.c (_initialize_language): Likewise.
4798 * linux-fork.c (_initialize_linux_fork): Likewise.
4799 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4800 * maint.c (_initialize_maint_cmds): Likewise.
4801 * memattr.c (_initialize_mem): Likewise.
4802 * printcmd.c (_initialize_printcmd): Likewise.
4803 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4804 _RegEx): Likewise.
4805 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4806 * record-btrace.c (_initialize_record_btrace): Likewise.
4807 * record-full.c (_initialize_record_full): Likewise.
4808 * record.c (_initialize_record): Likewise.
4809 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4810 * regcache.c (_initialize_regcache): Likewise.
4811 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4812 _initialize_remote): Likewise.
4813 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4814 * serial.c (_initialize_serial): Likewise.
4815 * skip.c (_initialize_step_skip): Likewise.
4816 * source.c (_initialize_source): Likewise.
4817 * stack.c (_initialize_stack): Likewise.
4818 * symfile.c (_initialize_symfile): Likewise.
4819 * symtab.c (_initialize_symtab): Likewise.
4820 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4821 * top.c (init_main): Likewise.
4822 * tracefile-tfile.c (tfile_target_info): Likewise.
4823 * tracepoint.c (_initialize_tracepoint): Likewise.
4824 * tui/tui-win.c (_initialize_tui_win): Likewise.
4825 * utils.c (add_internal_problem_command): Likewise.
4826 * valprint.c (value_print_option_defs): Likewise.
4827
404f2902
FCE
48282019-08-06 Frank Ch. Eigler <fche@redhat.com>
4829
4830 PR build/24886
4831 * configure.ac: Drop enable-libmcheck support.
4832 * configure, config.in: Rebuild.
4833 * libmcheck.m4: Remove.
4834 * acinclude.m4: Don't include it.
4835 * Makefile.in: Don't distribute it.
4836 * top.c (print_gdb_configuration): Don't mention it.
4837
046bebe1
TT
48382019-08-06 Tom Tromey <tom@tromey.com>
4839
4840 * utils.c (set_output_style): Sometimes pass stream to
4841 emit_style_escape.
4842 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4843 * record-btrace.c (btrace_insn_history): Update.
4844 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4845 method.
4846 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4847 Update initializers.
4848 <m_uiout>: New field.
4849 <m_di>: Move lower.
4850 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4851 Remove "uiout" parameter.
4852 (dump_insns): Update.
4853 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4854 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4855
ddbcedf5
CB
48562019-08-06 Christian Biesinger <cbiesinger@google.com>
4857
4858 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4859 (error_in_psymtab_expansion): Likewise.
4860 (lookup_symbol_via_quick_fns): Likewise.
4861 (basic_lookup_transparent_type_quick): Likewise.
4862 (basic_lookup_transparent_type_1): Likewise.
4863
b08b16c8
TT
48642019-08-06 Tom Tromey <tromey@adacore.com>
4865
4866 * source.c (last_source_error): Now bool.
4867 (print_source_lines_base): Make "noprint" bool. Only open
4868 source file when last_source_visited changes.
4869
cb44333d
TT
48702019-08-06 Tom Tromey <tromey@adacore.com>
4871
4872 * annotate.c (annotate_source_line): Use g_source_cache.
4873 * source-cache.c (source_cache::get_plain_source_lines): Change
4874 parameters. Populate m_offset_cache.
4875 (source_cache::ensure): New method.
4876 (source_cache::get_line_charpos): New method.
4877 (extract_lines): Move lower. Change parameters.
4878 (source_cache::get_source_lines): Move lower.
4879 * source-cache.h (class source_cache): Update comment.
4880 <get_line_charpos>: New method.
4881 <get_source_lines>: Update comment.
4882 <clear>: Clear m_offset_cache.
4883 <get_plain_source_lines>: Change parameters.
4884 <ensure>: New method
4885 <m_offset_cache>: New member.
4886 * source.c (forget_cached_source_info_for_objfile): Update.
4887 (info_source_command): Use g_source_cache.
4888 (find_source_lines, open_source_file_with_line_charpos): Remove.
4889 (print_source_lines_base, search_command_helper): Use g_source_cache.
4890 * source.h (open_source_file_with_line_charpos): Don't declare.
4891 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4892 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4893 Use g_source_cache.
4894
872dceaa
TT
48952019-08-06 Tom Tromey <tromey@adacore.com>
4896
4897 * source-cache.c (source_cache::get_plain_source_lines):
4898 Remove "first_line" and "last_line" parameters.
4899 (source_cache::get_source_lines): Cache plain text.
4900 * source-cache.h (class source_cache)
4901 <get_plain_source_lines>: Update.
4902
269249d9
TT
49032019-08-06 Tom Tromey <tromey@adacore.com>
4904
4905 * source-cache.c (extract_lines): No longer a method.
4906 Changed type of parameter. Include final newline.
4907 (selftests::extract_lines_test): New function.
4908 (_initialize_source_cache): Likewise.
4909 * source-cache.h (class source_cache)
4910 <extract_lines>: Don't declare.
4911
c0e8dcd8
TT
49122019-08-06 Tom Tromey <tromey@adacore.com>
4913
4914 * breakpoint.c (init_breakpoint_sal): Update.
4915 (breakpoint): Update.
4916 * breakpoint.h (struct breakpoint) <filter>: Now a
4917 unique_xmalloc_ptr.
4918
0b27c27d
CB
49192019-08-05 Christian Biesinger <cbiesinger@google.com>
4920
4921 * NEWS: Mention dictionary access on blocks.
4922 * python/py-block.c (blpy_getitem): New function.
4923 (block_object_as_mapping): New struct.
4924 (block_object_type): Use new struct for tp_as_mapping field.
4925
4ee94178
CB
49262019-08-05 Christian Biesinger <cbiesinger@google.com>
4927
4928 * objfiles.h (objfile): Add a comment describing partial symbols.
4929
8abfcabc
TT
49302019-08-05 Tom Tromey <tromey@adacore.com>
4931
4932 * compile/compile.c (_initialize_compile): Use _(), not N_().
4933 * thread.c (_initialize_thread): Use _(), not N_().
4934 * stack.c (_initialize_stack): Use _(), not N_().
4935 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4936
2b79f376
SM
49372019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4938
4939 * dwarf2read.c (struct dw2_symtab_iterator):
4940 <want_specific_block>: Remove.
4941 <block_index>: Change type to gdb::optional.
4942 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4943 change type of BLOCK_INDEX parameter to gdb::optional.
4944 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4945 (dw2_lookup_symbol): Don't pass argument for
4946 WANT_SPECIFIC_BLOCK.
4947 (dw2_expand_symtabs_for_function): Don't pass argument for
4948 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4949 (class dw2_debug_names_iterator)
4950 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4951 parameter, change BLOCK_INDEX type to gdb::optional.
4952 <m_want_specific_block>: Remove.
4953 <m_block_index>: Change type to gdb::optional.
4954 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4955 gdb::optional. Re-write in function of gdb::optional.
4956 (dw2_debug_names_lookup_symbol): Don't pass argument for
4957 WANT_SPECIFIC_BLOCK.
4958 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4959 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4960 BLOCK_INDEX.
4961
ae60f04e
PW
49622019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4963
4964 * NEWS: Mention changes to "info sources" command.
4965
28cd9371
PW
49662019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4967
4968 * symtab.c (filename_partial_match_opts): New struct type.
4969 (struct output_source_filename_data): New members
4970 regexp, c_regexp, partial_match.
4971 (output_source_filename): Use new members to decide to print file.
4972 (info_sources_option_defs): New variable.
4973 (make_info_sources_options_def_group, print_info_sources_header,
4974 info_sources_command_completer):
4975 New functions.
4976 (info_sources_command): Read new optional arguments.
4977 (_initialize_symtab): Update info sources help.
4978
ca683e3a
AO
49792019-08-02 Alexandre Oliva <oliva@adacore.com>
4980
4981 * ada-lang.c (exception_support_info_v0): Renamed from...
4982 (default_exception_support_info): ... this. Create new
4983 definition for v1.
4984 (ada_has_this_exception_support): Look up catch_handlers_sym.
4985 (ada_exception_support_info_sniffer): Try v0 after default.
4986
f1264162
TT
49872019-08-01 Tom Tromey <tromey@adacore.com>
4988
4989 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4990 gdbarch.h.
4991
0a7b2485
CB
49922019-08-01 Christian Biesinger <cbiesinger@google.com>
4993
4994 * s12z-tdep.c: Fix include path for s12z-opc.h.
4995
c6bdbeb7
AH
49962019-08-01 Alan Hayward <alan.hayward@arm.com>
4997
4998 * NEWS: Require GNU make 3.82.
4999
a2bd7b82
TT
50002019-07-16 Tom Tromey <tom@tromey.com>
5001
5002 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5003 declare.
5004
aa3b6533
TT
50052019-07-30 Tom Tromey <tromey@adacore.com>
5006
5007 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5008
a1530dc7
KB
50092019-07-30 Kevin Buettner <kevinb@redhat.com>
5010
5011 * printcmd.c (print_address_symbolic): Print negative offsets.
5012 (build_address_symbolic): Force signed arithmetic when computing
5013 offset.
5014
2906593f
CB
50152019-07-30 Christian Biesinger <cbiesinger@google.com>
5016
5017 PR/24474: Add a function to lookup static variables.
5018 * NEWS: Mention this new function.
5019 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5020 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5021 * python/python.c (python_GdbMethods): Add new function.
5022
c620ed88
CB
50232019-07-29 Christian Biesinger <cbiesinger@google.com>
5024
5025 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5026 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5027 (objfpy_lookup_static_symbol): New function.
5028 (objfile_object_methods): Add new functions.
5029
bc4268a5
PW
50302019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5031
5032 * NEWS: Mention 'set|show print frame-info'. Mention new
5033 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5034 backtrace argument. Mention that python frame filtering code
5035 is now consistent with what 'backtrace' command prints.
5036
4b5e8d19
PW
50372019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5038
5039 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5040 comments.
5041 (print_frame_info_auto, print_frame_info_source_line,
5042 print_frame_info_location, print_frame_info_source_and_location,
5043 print_frame_info_location_and_address, print_frame_info_short_location):
5044 New declarations.
5045 (struct frame_print_options): New member print_frame_info.
5046 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5047 * stack.h (get_user_print_what_frame_info): New declaration.
5048 (frame_show_address): New declaration.
5049 * stack.c (print_frame_arguments_choices): New value 'presence'.
5050 (print_frame_info_auto, print_frame_info_source_line,
5051 print_frame_info_location, print_frame_info_source_and_location,
5052 print_frame_info_location_and_address, print_frame_info_short_location,
5053 print_frame_info_choices, print_frame_info_print_what): New definitions.
5054 (print_frame_args): Only print dots for args if print frame-arguments
5055 is 'presence'.
5056 (frame_print_option_defs): New element for "frame-info".
5057 (get_user_print_what_frame_info): New function.
5058 (frame_show_address): Make non static. Move comment to stack.h.
5059 (print_frame_info_to_print_what): New function.
5060 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5061 to decide what to print.
5062 (backtrace_command_1): Handle the new print_frame_arguments_presence
5063 value.
5064 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5065 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5066 (py_print_frame): In non-mi mode, use LOCATION as default for
5067 print_what, similarly to frame information printed directly by
5068 backtrace command. Handle frame-info user option in non MI mode.
5069
6bdfee81
KB
50702019-07-27 Kevin Buettner <kevinb@redhat.com>
5071
5072 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5073 Add case for debugging 32-bit target on 64-bit host. Revise
5074 comment.
5075
98a617f8
KB
50762019-07-27 Kevin Buettner <kevinb@redhat.com>
5077
5078 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5079 instead of find_function_entry_range_from_pc.
5080
567238c9
KB
50812019-07-27 Kevin Buettner <kevinb@redhat.com>
5082
5083 * stack.c (find_frame_funname): Remove code which preferred
5084 minsym over symtab sym in "certain pathological cases".
5085
2dc80cf8
KB
5086 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5087 parameter. Change type of "do_demangle" to bool.
5088 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5089 Pass suitable "prefer_sym_over_minsym" flag to
5090 build_address_symbolic(). Don't output "+" for negative offsets.
5091 * printcmd.c (print_address_symbolic): Update invocation of
5092 build_address_symbolic to include a "prefer_sym_over_minsym"
5093 flag.
5094 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5095 Restrict cases in which use of minimal symbol is preferred to that
5096 of a found symbol. Update comments.
5097
1aff7173
KB
5098 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5099 for entry pc when entry pc is out of range for that FDE.
5100
89b085ac
BC
51012019-07-26 Brian Callahan <bcallah@openbsd.org>
5102
5103 PR gdb/24839:
5104 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5105 type.
5106
f32feb4a
CB
51072019-07-25 Christian Biesinger <cbiesinger@google.com>
5108
5109 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5110 this function's Python signature.
5111
5112
51132019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5114
5115 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5116 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5117 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5118 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5119 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5120
5121
c54e4253
YS
51222019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5123
5124 * h8300-tdep.c (h8300_register_name_common): New.
5125 h8300_register_name): Use h8300_register_name_common.
5126 (h8300s_register_name): Likewise.
5127 (h8300sx_register_name): Likewise.
5128 (h8300h_register_nam): New.
5129 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5130
5131
40eadf04
SP
51322019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5133
5134 * arm-tdep.c (arm_skip_cmse_entry): New function.
5135 (arm_is_sgstubs_section): New function.
5136 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5137
bfa2a36d
TT
51382019-07-22 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5141 Don't self-assign.
5142
a8e9d247
AB
51432019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5146 type_print.
5147
eb86c5e2
AB
51482019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5151 so that GDB doesn't match any msymbols when searching in the
5152 TYPES_DOMAIN.
5153 (print_symbol_info): Print using typedef_print or type_print based
5154 on the type of the symbol. Add updated FIXME comment moved from...
5155 (_initialize_symtab): ... move and update FIXME comment to above.
5156
a8eab7c6
AB
51572019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5158
5159 * NEWS: Mention adding -q option to "info types".
5160 * symtab.c (struct info_types_options): New struct.
5161 (info_types_options_defs): New variable.
5162 (make_info_types_options_def_group): New function.
5163 (info_types_command): Use gdb::option framework to parse options.
5164 (info_types_command_completer): New function.
5165 (_initialize_symtab): Extend the help text on "info types" and
5166 register command completer.
5167
b4603c34
CB
51682019-07-21 Christian Biesinger <cbiesinger@google.com>
5169
5170 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5171 (lookup_symbol_in_objfile): Change int to block_enum and add a
5172 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5173
c8cdc1e0
CB
51742019-07-20 Christian Biesinger <cbiesinger@google.com>
5175
5176 * MAINTAINERS (Write After Approval): Add self.
5177
01e175fe
AB
51782019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5181 instruction to the dummy code region.
5182
56f79b63
TT
51832019-07-19 Tom Tromey <tromey@adacore.com>
5184
5185 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5186 (ARGSUSED, PARAMS, __func__): Remove rules.
5187
4c5aa8e0
AH
51882019-07-19 Alan Hayward <alan.hayward@arm.com>
5189
5190 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5191 * features/arm/arm-with-iwmmxt.c: Remove.
5192 * features/arm/arm-with-iwmmxt.xml: Remove.
5193 * features/arm/arm-with-m-fpa-layout.c: Remove.
5194 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5195 * features/arm/arm-with-m-vfp-d16.c: Remove.
5196 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5197 * features/arm/arm-with-m.c: Remove.
5198 * features/arm/arm-with-m.xml: Remove.
5199 * features/arm/arm-with-neon.c: Remove.
5200 * features/arm/arm-with-neon.xml: Remove.
5201 * features/arm/arm-with-vfpv2.c: Remove.
5202 * features/arm/arm-with-vfpv2.xml: Remove.
5203 * features/arm/arm-with-vfpv3.c: Remove.
5204 * features/arm/arm-with-vfpv3.xml: Remove.
5205
f42b2617
AH
52062019-07-19 Alan Hayward <alan.hayward@arm.com>
5207
5208 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5209
f29ec966
AH
52102019-07-19 Alan Hayward <alan.hayward@arm.com>
5211
5212 * arch/aarch32.c (aarch32_create_target_description): Create
5213 target descriptions using features.
5214 * arch/arm.c (arm_create_target_description)
5215 (arm_create_mprofile_target_description): Likewise.
5216 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5217
d105cce5
AH
52182019-07-19 Alan Hayward <alan.hayward@arm.com>
5219
5220 * Makefile.in: Add new files.
5221 * aarch32-tdep.c: New file.
5222 * aarch32-tdep.h: New file.
5223 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5224 Call aarch32_read_description.
5225 * arch/aarch32.c: New file.
5226 * arch/aarch32.h: New file.
5227 * arch/arm.c (arm_create_target_description)
5228 (arm_create_mprofile_target_description): New function.
5229 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5230 (arm_create_target_description)
5231 (arm_create_mprofile_target_description): New declaration.
5232 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5233 read_description functions.
5234 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5235 Likewise.
5236 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5237 * arm-tdep.c (tdesc_arm_list): New variable.
5238 (arm_register_g_packet_guesses): Call create description functions.
5239 (arm_read_description) (arm_read_mprofile_description): New
5240 function.
5241 * arm-tdep.h (arm_read_description)
5242 (arm_read_mprofile_description): Add declaration.
5243 * configure.tgt: Add new files.
5244
afe09f0b
GL
52452019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5246
5247 * top.c (new_ui_command): Open specified terminal just once.
5248
cd215b2e
TT
52492019-07-18 Tom Tromey <tromey@adacore.com>
5250
5251 * symtab.c (main_name): Constify return type.
5252 * symfile.c (set_initial_language): Update.
5253 * symtab.h (main_name): Constify return type.
5254
d8f68fcb
TT
52552019-07-17 Tom Tromey <tom@tromey.com>
5256
5257 * tui/tui-winsource.c (tui_update_source_window)
5258 (tui_update_source_window_as_is)
5259 (tui_update_source_windows_with_line): Remove return.
5260 * tui/tui-disasm.c (tui_show_disassem)
5261 (tui_show_disassem_and_update_source): Remove return.
5262 * tui/tui.c (tui_reset): Remove return.
5263 * tui/tui-wingeneral.c
5264 (tui_check_and_display_highlight_if_needed): Remove return.
5265
ca5af91e
TT
52662019-07-17 Tom Tromey <tom@tromey.com>
5267
5268 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5269
5104fe36
TT
52702019-07-17 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-winsource.h (struct tui_exec_info_window)
5273 (struct tui_source_window_base): Move from tui-data.h.
5274 * tui/tui-winsource.c: Move many method definitions from
5275 elsewhere. Remove "structuring" comments.
5276 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5277 (tui_source_window_base::refresh_window): Move to
5278 tui-winsource.c.
5279 * tui/tui-win.c (tui_source_window_base::refresh_all)
5280 (tui_source_window_base::update_tab_width)
5281 (tui_source_window_base::set_new_height)
5282 (tui_source_window_base::do_make_visible_with_new_height): Move to
5283 tui-winsource.c.
5284 * tui/tui-source.h: Update.
5285 * tui/tui-source.c (tui_source_window_base::reset): Move to
5286 tui-winsource.c.
5287 * tui/tui-disasm.h: Update.
5288 * tui/tui-data.h (struct tui_exec_info_window): Move to
5289 tui-winsource.h.
5290 (struct tui_source_window_base): Likewise.
5291 * tui/tui-data.c (tui_source_window_base::clear_detail)
5292 (tui_source_window_base, ~tui_source_window_base): Move to
5293 tui-winsource.c.
5294
daa15dde
TT
52952019-07-17 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-win.c (tui_resize_all)
5298 (tui_source_window_base::update_tab_width)
5299 (tui_adjust_win_heights): Update.
5300 (tui_win_info::make_invisible_and_set_new_height): Rename from
5301 make_invisible_and_set_new_height.
5302 * tui/tui-data.h (struct tui_win_info)
5303 <make_invisible_and_set_new_height>: New method.
5304
bfad4537
TT
53052019-07-17 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui.c: Update.
5308 * tui/tui-source.h (struct tui_source_window): Move from
5309 tui-data.h.
5310 * tui/tui-layout.c: Update.
5311 * tui/tui-disasm.c: Update.
5312 * tui/tui-data.h (struct tui_source_window): Move to
5313 tui-source.h.
5314
88f7e873
TT
53152019-07-17 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5318 tui-data.h.
5319 * tui/tui-data.h (struct tui_disasm_window): Move to
5320 tui-disasm.h.
5321
96bd6233
TT
53222019-07-17 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-regs.h (struct tui_data_item_window): Move from
5325 tui-data.h.
5326 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5327 * tui/tui-data.h (struct tui_data_item_window): Move to
5328 tui-regs.h.
5329 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5330
ce38393b
TT
53312019-07-17 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui.c: Update.
5334 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5335 (tui_cmd_window::max_height): Move to tui-command.c.
5336 * tui/tui-layout.c: Update.
5337 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5338 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5339 tui-command.c.
5340 * tui/tui-command.h (struct tui_cmd_window): Move from
5341 tui-data.h.
5342 * tui/tui-command.c: Remove "structuring" comments.
5343 (tui_cmd_window::clear_detail)
5344 (tui_cmd_window::do_make_visible_with_new_height)
5345 (tui_cmd_window::max_height): Move from elsewhere.
5346
2d8b51cb
TT
53472019-07-17 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5350 Now static.
5351 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5352 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5353
18ab23af
TT
53542019-07-17 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui.c: Update.
5357 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5358 tui-regs.c.
5359 * tui/tui-windata.h: Remove file.
5360 * tui/tui-windata.c: Remove file.
5361 * tui/tui-win.c (tui_data_window::set_new_height)
5362 (tui_data_window::do_make_visible_with_new_height): Move to
5363 tui-regs.c.
5364 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5365 * tui/tui-regs.c: Remove "structuring" comments.
5366 (tui_data_window::first_data_item_displayed)
5367 (tui_data_window::delete_data_content_windows)
5368 (tui_data_window::erase_data_content)
5369 (tui_data_window::display_all_data)
5370 (tui_data_window::refresh_all)
5371 (tui_data_window::do_scroll_vertical)
5372 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5373 (tui_data_window::do_make_visible_with_new_height)
5374 (tui_data_window::refresh_window): Move from elsewhere.
5375 (_initialize_tui_regs): Move to end of file.
5376 * tui/tui-layout.c: Update.
5377 * tui/tui-hooks.c: Update.
5378 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5379 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5380 tui-regs.c.
5381 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5382
88b7e7cc
TT
53832019-07-17 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5386 seen.
5387
0fcd3711
TT
53882019-07-17 Tom Tromey <tom@tromey.com>
5389
5390 * tui/tui-win.c (tui_source_window_base::set_new_height)
5391 (tui_source_window_base::do_make_visible_with_new_height): Use
5392 m_has_locator field directly.
5393 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5394 method.
5395 (struct tui_source_window_base) <has_locator>: Likewise.
5396
4a38112d
TT
53972019-07-17 Tom Tromey <tom@tromey.com>
5398
5399 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5400 Don't declare.
5401 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5402 Remove.
5403 * tui/tui-win.c (tui_source_window_base::set_new_height)
5404 (tui_source_window_base::set_new_height)
5405 (make_invisible_and_set_new_height)
5406 (tui_source_window_base::do_make_visible_with_new_height)
5407 (tui_source_window_base::do_make_visible_with_new_height):
5408 Update.
5409 * tui/tui-layout.c (show_source_disasm_command, show_data)
5410 (show_source_or_disasm_and_command): Update.
5411 * tui/tui-layout.c (show_layout): Update.
5412
09129226
TT
54132019-07-17 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-layout.c (make_data_window): Remove.
5416 (show_data): Unify creation and re-initialization cases.
5417
4a8a5e84
TT
54182019-07-17 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-layout.c (make_source_window, make_disasm_window):
5421 Remove.
5422 (show_data): Unify creation and re-initialization cases.
5423
76d2be8e
TT
54242019-07-17 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-layout.c (make_command_window): Remove.
5427 (show_source_disasm_command, show_source_or_disasm_and_command):
5428 Unify creation and re-initialization cases.
5429
890b8bde
TT
54302019-07-17 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5433 creation and re-initialization cases.
5434
2cdfa113
TT
54352019-07-17 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-regs.c (tui_get_register): Return void.
5438
8e3cfd09
TT
54392019-07-17 Tom Tromey <tom@tromey.com>
5440
5441 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5442 Simplify.
5443
f4e04977
TT
54442019-07-17 Tom Tromey <tom@tromey.com>
5445
5446 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5447 resetting.
5448
0379b883
TT
54492019-07-17 Tom Tromey <tom@tromey.com>
5450
5451 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5452 * tui/tui-regs.c (tui_reg_layout): New function.
5453 (tui_show_registers, tui_reg_command): Use it.
5454 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5455 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5456 parameters.
5457 (tui_layout_command): Remove.
5458
b7fbad91
TT
54592019-07-17 Tom Tromey <tom@tromey.com>
5460
5461 * tui/tui-layout.h (tui/tui-layout): Return void.
5462 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5463
4e1e56b9
TT
54642019-07-17 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-layout.c (show_source_disasm_command, show_data):
5467 Update.
5468 (reset_locator): Remove.
5469 (show_source_or_disasm_and_command): Update.
5470
1e0c09ba
TT
54712019-07-17 Tom Tromey <tom@tromey.com>
5472
5473 * tui/tui-source.c (tui_source_window_base::reset): Remove
5474 win_type parameter.
5475 * tui/tui-layout.c (make_command_window, make_source_window)
5476 (make_disasm_window, make_data_window)
5477 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5478 (reset_locator, show_source_or_disasm_and_command): Update.
5479 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5480 win_type parameter.
5481 (struct tui_source_window_base) <reset>: Likewise.
5482
1bf605de
TT
54832019-07-17 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-layout.c (show_source_disasm_command): Use
5486 reset_locator.
5487 (reset_locator): New function.
5488 (init_and_make_win): Remove.
5489 (show_source_or_disasm_and_command): Use reset_locator.
5490
098f9ed4
TT
54912019-07-17 Tom Tromey <tom@tromey.com>
5492
5493 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5494 condition.
5495 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5496 Remove condition.
5497 * tui/tui-source.c (tui_source_window_base::reset): New method.
5498 * tui/tui-layout.c (make_command_window): Don't call
5499 init_and_make_win.
5500 (make_source_window, make_disasm_window): Don't call
5501 make_source_or_disasm_window.
5502 (make_data_window): Don't call init_and_make_win. Change calling
5503 convention.
5504 (show_source_disasm_command, show_data): Simplify.
5505 (make_source_or_disasm_window): Remove.
5506 (show_source_or_disasm_and_command): Simplify.
5507 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5508 (struct tui_source_window_base) <reset>: Likewise.
5509 <execution_info>: Remove initializer.
5510 * tui/tui-data.c (tui_source_window_base): Initialize
5511 execution_info.
5512
80110957
TT
55132019-07-17 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5516 variable.
5517
cf82af05
TT
55182019-07-17 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui.c (tui_rl_other_window): Update.
5521 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5522 superclass method first. Always iterate over regs_content.
5523 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5524 method.
5525 * tui/tui-win.c (tui_set_focus_command): Update.
5526
01aeb396
TT
55272019-07-17 Tom Tromey <tom@tromey.com>
5528
5529 * tui/tui-win.c (tui_set_focus_command): Rename from
5530 tui_set_focus. Call tui_enable.
5531 (tui_set_focus_command): Remove.
5532
fd6c75ee
TT
55332019-07-17 Tom Tromey <tom@tromey.com>
5534
5535 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5536 refresh_window.
5537 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5538 touchwin.
5539 (tui_data_window::refresh_window): Call refresh_window on data
5540 items. Always call superclass refresh_window.
5541 (tui_win_info::refresh): Remove.
5542 (tui_source_window_base::refresh_window): Update.
5543 (tui_refresh_all): Update.
5544 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5545 refresh_window.
5546 (show_source_or_disasm_and_command): Likewise.
5547 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5548 (struct tui_source_window_base) <refresh>: Likewise.
5549
f6cc34a9
TT
55502019-07-17 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-winsource.c (tui_clear_source_content)
5553 (tui_show_source_content): Update.
5554 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5555 whether content is empty.
5556 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5557 Remove.
5558
f31ec9af
TT
55592019-07-17 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5562 window's contents.
5563 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5564 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5565
d1b6f1e5
TT
55662019-07-17 Tom Tromey <tom@tromey.com>
5567
5568 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5569 (struct tui_data_item_window): Update.
5570
d9743a13
TT
55712019-07-17 Tom Tromey <tom@tromey.com>
5572
5573 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5574 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5575 defines.
5576
caf0bc4e
TT
55772019-07-17 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-winsource.h (tui_erase_source_content)
5580 (tui_clear_source_content): Remove "display_prompt" parameter.
5581 * tui/tui-winsource.c (tui_update_source_window_as_is)
5582 (tui_update_source_windows_with_addr): Update.
5583 (tui_clear_source_content): Remove "display_prompt" parameter.
5584 (tui_erase_source_content): Likewise. Simplify.
5585 (tui_show_source_content): Update.
5586 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5587 * tui/tui-stack.c (tui_show_frame_info): Update.
5588 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5589 Remove defines.
5590
9d391078
TT
55912019-07-17 Tom Tromey <tom@tromey.com>
5592
5593 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5594 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5595 parameter.
5596 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5597 parameter.
5598
a38da35d
TT
55992019-07-17 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-winsource.c (tui_clear_source_content)
5602 (tui_show_source_content, tui_show_exec_info_content)
5603 (tui_clear_exec_info_content): Update.
5604 * tui/tui-stack.c (tui_show_locator_content): Update.
5605 (tui_show_frame_info): Update.
5606 * tui/tui-source.h (tui_source_window): Don't declare.
5607 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5608 from tui_source_is_displayed.
5609 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5610 Remove field.
5611 (struct tui_source_window_base) <content_in_use>: New field. Now
5612 bool.
5613 (struct tui_source_window) <showing_source_p>: New method.
5614 (TUI_SRC_WIN): Change cast.
5615 * tui/tui-data.c (tui_initialize_static_data): Update.
5616
c2cd8994
TT
56172019-07-17 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5620 location_matches_p.
5621 * tui/tui-source.c (tui_source_window::location_matches_p): New
5622 method.
5623 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5624 method.
5625 * tui/tui-data.h (struct tui_source_window_base)
5626 <location_matches_p>: New method.
5627 (struct tui_source_window, struct tui_disasm_window)
5628 <location_matches_p>: Likewise.
5629
4dde7b34
TT
56302019-07-17 Tom Tromey <tom@tromey.com>
5631
5632 * tui/tui-win.c (tui_set_win_height_command): Rename from
5633 tui_set_win_height.
5634 (tui_set_win_height_command): Remove.
5635
b73dd877
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-source.c (tui_source_window): New constructor. Add
5639 observer.
5640 (~tui_source_window): New destructor.
5641 (tui_source_window::style_changed): New method.
5642 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5643 (tui_attach_detach_observers): Update.
5644 * tui/tui-data.h (struct tui_source_window): Make constructor not
5645 inline. Add destructor.
5646 (struct tui_source_window) <style_changed>: New method.
5647 <m_observable>: New member.
5648
ae2b5380
TT
56492019-07-17 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5652 * tui/tui-win.c (tui_resize_all): Fix typo.
5653
1ce3e844
TT
56542019-07-17 Tom Tromey <tom@tromey.com>
5655
5656 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5657 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5658 (tui_refresh_all): Remove "list" parameter. Use foreach.
5659 * tui/tui-win.c (window_name_completer): Use foreach.
5660 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5661 (update_tab_width): Likewise.
5662 * tui/tui-layout.c (show_layout): Update.
5663 * tui/tui-data.h (class tui_window_iterator): New.
5664 (struct all_tui_windows): New.
5665 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5666
fe3eaf1c
TT
56672019-07-17 Tom Tromey <tom@tromey.com>
5668
5669 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5670 parameter. Don't reference globals.
5671 (tui_reg_command): Update.
5672
368c1354
TT
56732019-07-17 Tom Tromey <tom@tromey.com>
5674
5675 * tui/tui-regs.c (tui_show_registers): Simplify.
5676
e80cd204
TT
56772019-07-17 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-regs.c (tui_show_registers): Update.
5680 (tui_show_register_group): Add win_info parameter.
5681
aca2dd16
TT
56822019-07-17 Tom Tromey <tom@tromey.com>
5683
5684 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5685 Rename from tui_display_reg_element_at_line.
5686 (tui_data_window::display_registers_from_line): Update.
5687 * tui/tui-data.h (struct tui_data_window)
5688 <display_reg_element_at_line>: New method.
5689
517e9505
TT
56902019-07-17 Tom Tromey <tom@tromey.com>
5691
5692 * tui/tui-regs.h (tui_display_registers_from)
5693 (tui_display_registers_from_line): Don't declare.
5694 * tui/tui-windata.c (tui_data_window::display_all_data)
5695 (tui_data_window::refresh_all)
5696 (tui_data_window::do_scroll_vertical): Update.
5697 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5698 from tui_display_registers_from.
5699 (tui_display_reg_element_at_line): Update.
5700 (tui_data_window::display_registers_from_line): Rename from
5701 tui_display_registers_from_line.
5702 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5703 display_registers_from_line>: New methods.
5704
f76d8b19
TT
57052019-07-17 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5708 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5709 from tui_erase_data_content.
5710 (tui_data_window::display_all_data)
5711 (tui_data_window::refresh_all)
5712 (tui_data_window::do_scroll_vertical): Update.
5713 * tui/tui-regs.c (tui_show_registers): Update.
5714 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5715 New method.
5716
b4094625
TT
57172019-07-17 Tom Tromey <tom@tromey.com>
5718
5719 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5720 declare.
5721 * tui/tui-windata.c
5722 (tui_data_window::delete_data_content_windows): Rename from
5723 tui_delete_data_content_windows.
5724 (tui_data_window::display_all_data)
5725 (tui_data_window::do_scroll_vertical): Update.
5726 * tui/tui-data.h (struct tui_data_window)
5727 <delete_data_content_windows>: New method.
5728
c223a729
TT
57292019-07-17 Tom Tromey <tom@tromey.com>
5730
5731 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5732 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5733
50daf268
TT
57342019-07-17 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5737 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5738 from tui_display_all_data.
5739 * tui/tui-win.c
5740 (tui_data_window::do_make_visible_with_new_height): Update.
5741 * tui/tui-regs.c (tui_show_registers): Update.
5742 * tui/tui-layout.c (tui_set_layout): Update.
5743 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5744 method.
5745
df5f8cab
TT
57462019-07-17 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5749 * tui/tui-windata.c (tui_display_data_from): Remove.
5750 (tui_data_window::refresh_all): Update.
5751
80cb6c27
TT
57522019-07-17 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5755 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5756 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5757 tui_display_registers_from_line.
5758 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5759 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5760 "force_display" parameter.
5761
baff0c28
TT
57622019-07-17 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5765 declare.
5766 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5767 Rename from tui_first_reg_element_no_inline.
5768 (tui_display_reg_element_at_line)
5769 (tui_display_registers_from_line): Update.
5770 * tui/tui-data.h (struct tui_data_window)
5771 <first_reg_element_no_inline>: New method.
5772
3b23c5f2
TT
57732019-07-17 Tom Tromey <tom@tromey.com>
5774
5775 * tui/tui-windata.c (tui_display_data_from)
5776 (tui_data_window::do_scroll_vertical): Update.
5777 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5778 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5779 Rename from tui_line_from_reg_element_no.
5780 (tui_display_registers_from_line): Update.
5781 * tui/tui-data.h (struct tui_data_window)
5782 <line_from_reg_element_no>: New method.
5783
0b5ec218
TT
57842019-07-17 Tom Tromey <tom@tromey.com>
5785
5786 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5787 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5788 tui_last_regs_line_no.
5789 (tui_display_reg_element_at_line)
5790 (tui_display_registers_from_line): Update.
5791 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5792 method.
5793
0807ab7b
TT
57942019-07-17 Tom Tromey <tom@tromey.com>
5795
5796 PR tui/24722:
5797 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5798 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5799 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5800 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5801 (tui_update_breakpoint_info): Likewise.
5802 * tui/tui-hooks.c (tui_event_create_breakpoint)
5803 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5804 Update.
5805
9ad7fdef
TT
58062019-07-17 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5809
5813316f
TT
58102019-07-17 Tom Tromey <tom@tromey.com>
5811
5812 * tui/tui-winsource.c (tui_update_source_window_as_is)
5813 (tui_update_source_windows_with_addr): Update.
5814 * tui/tui-source.h (tui_set_source_content)
5815 (tui_show_symtab_source): Add "win_info" parameter.
5816 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5817 parameter.
5818 (tui_show_symtab_source): Likewise.
5819
00e264e7
TT
58202019-07-17 Tom Tromey <tom@tromey.com>
5821
5822 * tui/tui-wingeneral.c
5823 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5824
06210ce4
TT
58252019-07-17 Tom Tromey <tom@tromey.com>
5826
5827 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5828 (struct tui_cmd_window) <can_scroll>: New method.
5829 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5830 method.
5831
381befee
TT
58322019-07-17 Tom Tromey <tromey@adacore.com>
5833
5834 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5835 do_field_signed>: Rename. Change type of "value".
5836 * ui-out.c (ui_out::field_signed): Rename from field_int.
5837 Change type of "value".
5838 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5839 type of "value".
5840 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5841 do_field_int. Change type of "value".
5842 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5843 do_field_int. Change type of "value".
5844 * tracepoint.c (trace_status_mi, tfind_1)
5845 (print_one_static_tracepoint_marker): Update.
5846 * thread.c (print_thread_info_1, print_selected_thread_frame):
5847 Update.
5848 * stack.c (print_frame, print_frame_info): Update.
5849 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5850 Update.
5851 * source.c (print_source_lines_base): Update.
5852 * skip.c (info_skip_command): Update.
5853 * record-btrace.c (btrace_ui_out_decode_error)
5854 (btrace_call_history_src_line): Update.
5855 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5856 Update.
5857 * progspace.c (print_program_space): Update.
5858 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5859 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5860 do_field_int. Change type of "value".
5861 * mi/mi-out.c (mi_ui_out::do_table_begin)
5862 (mi_ui_out::do_table_header): Update.
5863 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5864 type of "value".
5865 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5866 (mi_cmd_data_list_changed_registers, output_register)
5867 (mi_cmd_data_read_memory, mi_load_progress)
5868 (mi_cmd_trace_frame_collected): Update.
5869 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5870 Update.
5871 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5872 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5873 (mi_cmd_var_list_children, varobj_update_one): Update.
5874 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5875 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5876 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5877 * inferior.c (print_inferior): Update.
5878 * gdb_bfd.c (print_one_bfd): Update.
5879 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5880 Update.
5881 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5882 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5883 do_field_int. Change type of "value".
5884 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5885 do_field_int. Change type of "value".
5886 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5887 (print_one_breakpoint_location, print_it_catch_fork)
5888 (print_one_catch_fork, print_it_catch_vfork)
5889 (print_one_catch_vfork, print_it_catch_solib)
5890 (print_it_catch_exec, print_it_ranged_breakpoint)
5891 (print_mention_watchpoint, print_mention_masked_watchpoint)
5892 (bkpt_print_it, update_static_tracepoint): Update.
5893 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5894 * break-catch-syscall.c (print_it_catch_syscall): Update.
5895 * ada-tasks.c (print_ada_task_info): Update.
5896 * ada-lang.c (print_it_exception, print_mention_exception):
5897 Update.
5898
6b78c3f8
AB
58992019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 PR breakpoints/24541
5902 * gdbarch.c: Regenerate.
5903 * gdbarch.h: Regenerate.
5904 * gdbarch.sh: Adjust return type and parameter types for
5905 'stap_adjust_register'.
5906 (i386_stap_adjust_register): Adjust signature and return new
5907 register name.
5908 * stap-probe.c (stap_parse_register_operand): Adjust use of
5909 'gdbarch_stap_adjust_register'.
5910
d72a9b85
TT
59112019-07-17 Tom Tromey <tromey@adacore.com>
5912
5913 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5914 declare VEC.
5915 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5916 std::vector.
5917 (struct s390_process_info): Add initializers.
5918 (s390_add_process): Use new.
5919 (s390_linux_nat_target::low_forget_process): Use delete.
5920 (s390_linux_nat_target::low_new_fork)
5921 (s390_linux_nat_target::stopped_by_watchpoint)
5922 (s390_linux_nat_target::low_prepare_to_resume)
5923 (s390_linux_nat_target::insert_watchpoint)
5924 (s390_linux_nat_target::insert_hw_breakpoint)
5925 (s390_linux_nat_target::remove_watchpoint)
5926 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5927
206e6c58
JB
59282019-07-16 John Baldwin <jhb@FreeBSD.org>
5929
5930 * aarch64-fbsd-nat.c: Include regcache.h.
5931 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5932 argument.
5933 (aarch64_fbsd_nat_target::fetch_registers)
5934 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5935 variable.
5936 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5937
cbde90f2
JB
59382019-07-16 John Baldwin <jhb@FreeBSD.org>
5939
5940 * fbsd-nat.c: Include gdbarch.h.
5941
07128006
TT
59422019-07-15 Tom Tromey <tromey@adacore.com>
5943
5944 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5945
1f77b012
TT
59462019-07-15 Tom Tromey <tromey@adacore.com>
5947
5948 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5949 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5950 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5951 * cli-out.c (cli_ui_out::do_field_int): New method.
5952 * ui-out.c (ui_out::field_unsigned): New method.
5953 * symfile.c (generic_load): Use field_unsigned.
5954 (print_transfer_performance): Likewise.
5955 * record-btrace.c (ui_out_field_uint): Remove.
5956 (btrace_call_history_insn_range, btrace_call_history): Use
5957 field_unsigned.
5958 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5959 field_unsigned.
5960 * ui-out.h (class ui_out) <field_unsigned>: New method.
5961 <do_field_unsigned>: Likewise.
5962
33eca680
TT
59632019-07-15 Tom Tromey <tromey@adacore.com>
5964
5965 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5966 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5967 * target.c (flash_erase_command): Use field_string.
5968 * infrun.c (print_signal_received_reason): Use field_string.
5969 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5970 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5971 field_string.
5972 * ada-tasks.c (print_ada_task_info): Use field_string.
5973
ca8d69be
TT
59742019-07-15 Tom Tromey <tromey@adacore.com>
5975
5976 * target.c (flash_erase_command): Use field_core_addr.
5977 * symfile.c (generic_load): Use field_core_addr.
5978 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5979 Use field_core_addr.
5980 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5981 field_core_addr.
5982
0d4e84ed
AB
59832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5984
5985 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5986 value if its desired type is smaller than a CORE_ADDR and signed.
5987
9a49df9d
AB
59882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5989
5990 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5991 of changes to field names, and use new is_reference field to
5992 decide if a property is a reference or not.
5993 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5994 field.
5995 (struct dwarf2_property_baton): Update header comment, rename
5996 'referenced_type' to 'property_type' and update comments.
5997 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5998 default property type, store in property baton, update to take
5999 accound of renamed field.
6000 (read_func_scope): Update call to attr_to_dynamic_prop.
6001 (read_array_type): Likewise.
6002 (dwarf2_per_cu_addr_sized_int_type): New function.
6003 (read_subrange_index_type): Move type finding code to
6004 dwarf2_per_cu_addr_sized_int_type.
6005 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6006 (dwarf2_per_cu_addr_type): New function.
6007 (set_die_type): Update calls to attr_to_dynamic_prop.
6008
b86352cf
AB
60092019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6010
6011 * dwarf2read.c (read_subrange_index_type): New function.
6012 (read_subrange_type): Move code into new function and call it.
6013 * gdbtypes.c (create_range_type): Add some asserts.
6014
603490bf
AB
60152019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6016
6017 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6018 update return statements.
6019 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6020 declaration, and update comment to match.
6021 * gdbtypes.c (resolve_dynamic_array): Update call to
6022 dwarf2_evaluate_property to match new return type.
6023
592f9d27
AB
60242019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6025
6026 * valarith.c (value_subscripted_rvalue): Change lowerbound
6027 parameter type from int to LONGEST.
6028 * value.h (value_subscripted_rvalue): Likewise in declaration.
6029
60cfcb20
AB
60302019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * cli/cli-utils.c (info_print_command_completer): New function.
6033 * cli/cli-utils.h: Add 'completer.h' include, and forward
6034 declaration for 'struct cmd_list_element'.
6035 (info_print_command_completer): Declare.
6036 * stack.c (_initialize_stack): Add completer for 'info locals' and
6037 'info args'.
6038 * symtab.c (_initialize_symtab): Add completer for 'info
6039 variables' and 'info functions'.
6040 * NEWS: Mention completion for additional info commands.
6041
b16507e0
AB
60422019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * cli/cli-utils.c (extract_info_print_args): Delete.
6045 (extract_arg_maybe_quoted): Delete.
6046 (info_print_options_defs): New variable.
6047 (make_info_print_options_def_group): New function.
6048 (extract_info_print_options): Define new function.
6049 * cli/cli-utils.h (extract_info_print_args): Delete.
6050 (struct info_print_options): New structure.
6051 (extract_info_print_options): Declare new function.
6052 * stack.c (info_locals_command): Update to use new
6053 extract_info_print_options, also add a header comment.
6054 (info_args_command): Likewise.
6055 * symtab.c (info_variables_command): Likewise.
6056 (info_functions_command): Likewise.
6057
021d8588
AB
60582019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6059
6060 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6061 to extract string arguments.
6062 * common/common-utils.c (extract_string_maybe_quoted): New function.
6063 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6064
b777eb6d
TT
60652019-07-11 Tom Tromey <tromey@adacore.com>
6066
6067 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6068 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6069 * top.h (gdbinit): Don't declare.
6070 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6071 into...
6072 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6073 * top.c (gdb_init): Don't call init_cli_cmds.
6074 (gdbinit): Remove.
6075 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6076
72ee03ff
TT
60772019-07-11 Tom Tromey <tromey@adacore.com>
6078
6079 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6080 after it has been moved.
6081
00db9531
SM
60822019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * valops.c (value_must_coerce_to_target): Change return type to
6085 bool.
6086 * value.h (value_must_coerce_to_target): Likewise.
6087
f2478a7e
SM
60882019-07-10 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * breakpoint.c (is_hardware_watchpoint): Remove
6091 forward-declaration.
6092 (is_masked_watchpoint): Change return type to bool.
6093 (is_tracepoint): Likewise.
6094 (is_breakpoint): Likewise.
6095 (is_hardware_watchpoint): Likewise.
6096 (is_watchpoint): Likewise.
6097 (is_no_memory_software_watchpoint): Likewise.
6098 (is_catchpoint): Likewise.
6099 (breakpoint_1): Make FILTER parameter's return type bool.
6100 is_masked_watchpoint): Change return type to bool.
6101 (save_breakpoints): Make FILTER parameter's return type bool.
6102 * breakpoint.h (is_breakpoint): Change return type to bool.
6103 (is_watchpoint): Likewise.
6104 (is_catchpoint): Likewise.
6105 (is_tracepoint): Likewise.
6106
0d12e84c
TT
61072019-07-10 Tom Tromey <tom@tromey.com>
6108
6109 * defs.h: Don't include gdbarch.h.
6110 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6111 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6112 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6113 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6114 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6115 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6116 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6117 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6118 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6119 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6120 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6121 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6122 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6123 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6124 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6125 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6126 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6127 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6128 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6129 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6130 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6131 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6132 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6133 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6134 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6135 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6136 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6137
f06f1252
TT
61382019-07-10 Tom Tromey <tromey@adacore.com>
6139
6140 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6141 * breakpoint.c (init_ada_exception_breakpoint): Register as
6142 bp_catchpoint.
6143 (print_one_breakpoint_location, print_one_breakpoint): Use
6144 is_ada_exception_catchpoint.
6145 * ada-lang.c (class ada_catchpoint_location): Pass
6146 bp_loc_software_breakpoint to bp_location constructor.
6147 (is_ada_exception_catchpoint): New function.
6148
7a5d944b
TT
61492019-07-10 Tom Tromey <tromey@adacore.com>
6150
6151 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6152 VEC.
6153 (struct arm_exidx_entry): New method operator<.
6154 (struct arm_exidx_data) <section_maps>: Change type.
6155 (arm_exidx_data_free): Remove.
6156 (arm_exidx_data_key): Change type. Move lower.
6157 (arm_exidx_new_objfile): Update.
6158 (arm_compare_exidx_entries): Remove.
6159 (arm_find_exidx_entry, _initialize_arm_tdep)
6160
48c66e1d
TT
61612019-07-10 Tom Tromey <tromey@adacore.com>
6162
6163 * solib-spu.c (ocl_program_data_key): Change type.
6164 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6165 Update.
6166
a269fbf1
TT
61672019-07-10 Tom Tromey <tromey@adacore.com>
6168
6169 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6170 (struct solib_aix_inferior_data) <library_list>: Change type.
6171 (solib_aix_inferior_data_handle): Change type.
6172 (get_solib_aix_inferior_data): Update.
6173 (solib_aix_free_library_list): Remove.
6174 (library_list_start_library): Update.
6175 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6176 return type.
6177 (solib_aix_get_library_list)
6178 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6179 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6180
c294730c
TT
61812019-07-10 Tom Tromey <tromey@adacore.com>
6182
6183 * solib-dsbt.c (struct dsbt_info): Add initializers.
6184 (solib_dsbt_pspace_data): Change type.
6185 (dsbt_pspace_data_cleanup): Remove.
6186 (get_dsbt_info, _initialize_dsbt_solib): Update.
6187
9d52077d
TT
61882019-07-10 Tom Tromey <tromey@adacore.com>
6189
6190 * spu-tdep.c (spu_overlay_data): Change type.
6191 (spu_get_overlay_table, spu_overlay_new_objfile)
6192 (_initialize_spu_tdep): Update.
6193
22a20dca
TT
61942019-07-10 Tom Tromey <tromey@adacore.com>
6195
6196 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6197 destructor.
6198 (dbx_objfile_data_key): Change type and declare later.
6199 (DBX_SYMFILE_INFO): Rewrite.
6200 * dbxread.c (dbx_objfile_data_key): Change type.
6201 (dbx_symfile_init): Update.
6202 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6203 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6204 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6205
cb60f420
TT
62062019-07-10 Tom Tromey <tromey@adacore.com>
6207
6208 * jit.c (jit_program_space_key): Change type. Move lower.
6209 (get_jit_program_space_data): Update.
6210 (jit_program_space_data_cleanup): Remove.
6211 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6212 Update.
6213 (struct jit_program_space_data): Add initializers.
6214
51df2ae3
TT
62152019-07-10 Tom Tromey <tromey@adacore.com>
6216
6217 * solib-darwin.c (struct darwin_info): Add initializers.
6218 (solib_darwin_pspace_data): Change type.
6219 (darwin_pspace_data_cleanup): Remove.
6220 (get_darwin_info, _initialize_darwin_solib): Update.
6221
18101a35
TT
62222019-07-10 Tom Tromey <tromey@adacore.com>
6223
6224 * remote-sim.c (struct sim_inferior_data): Add initializers,
6225 constructor, and destructor.
6226 (sim_inferior_data_key): Change type. Move lower.
6227 (check_for_duplicate_sim_descriptor): Update.
6228 (get_sim_inferior_data): Use new. Update.
6229 (~sim_inferior_data_cleanup): Rename from
6230 sim_inferior_data_cleanup. Simplify.
6231 (gdbsim_close_inferior, simulator_command)
6232 (sim_command_completer, _initialize_remote_sim): Update.
6233 (next_pid, INITIAL_PID): Move earlier.
6234
05b08ac1
TT
62352019-07-10 Tom Tromey <tromey@adacore.com>
6236
6237 * python/python-internal.h (create_thread_object): Return
6238 gdbpy_ref.
6239 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6240 * python/py-inferior.c (struct threadlist_entry): Add
6241 constructor.
6242 <thread_obj>: Now a gdbpy_ref.
6243 (thread_to_thread_object): Update.
6244 (add_thread_object): Use new.
6245 (delete_thread_object): Use delete.
6246 (infpy_threads): Update.
6247 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6248 GIL.
6249
32372d80
TT
62502019-07-10 Tom Tromey <tromey@adacore.com>
6251
6252 * valops.c (value_cast): Specialize error message for Ada.
6253
5c458ae8
SM
62542019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6255
6256 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6257
4c462cb0
SM
62582019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6261 bpstat_should_step): Return bool, adjust comments.
6262 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6263 bpstat_should_step): Likewise.
6264
89abbcc2
AH
62652019-07-10 Alan Hayward <alan.hayward@arm.com>
6266
6267 * features/Makefile: Use feature target descriptions for Arm.
6268 * features/arm/arm-core.c: Generate new file.
6269 * features/arm/arm-fpa.c: Likewise.
6270 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6271 * features/arm/arm-m-profile.c: Likewise.
6272 * features/arm/arm-vfpv2.c: Likewise.
6273 * features/arm/arm-vfpv3.c: Likewise.
6274 * features/arm/xscale-iwmmxt.c: Likewise.
6275 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6276
166a82be
AH
62772019-07-10 Alan Hayward <alan.hayward@arm.com>
6278
6279 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6280 ptrace earlier.
6281
9fb4c7e9
AH
62822019-07-10 Alan Hayward <alan.hayward@arm.com>
6283
6284 * features/aarch64-pauth.c: Regenerate.
6285
e2d0f980
SM
62862019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6287
6288 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6289 bool.
6290 (bpstat_what): Use false instead of 0.
6291
a38118e5
PA
62922019-07-09 Pedro Alves <palves@redhat.com>
6293
6294 * break-catch-throw.c (is_exception_catchpoint): New.
6295 * breakpoint.c (print_one_breakpoint_location): New parameter
6296 'raw_loc'. Handle it. Use
6297 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6298 looking at the breakpoint's type.
6299 (print_one_breakpoint): If handling "maint info breakpoints", also
6300 print locations of exception catchpoints.
6301 * breakpoint.h (is_exception_catchpoint): Declare.
6302
cb1e4e32
PA
63032019-07-09 Pedro Alves <palves@redhat.com>
6304
6305 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6306 "addr" field.
6307 (allocate_location_exception_catchpoint): New.
6308 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6309 (initialize_throw_catchpoint_ops): Install
6310 allocate_location_exception_catchpoint as allocate_location
6311 method.
6312 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6313 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6314 bp_loc_other.
6315 (breakpoint_address_is_meaningful): Delete.
6316 (bl_address_is_meaningful): New.
6317 (breakpoint_locations_match): Adjust comment.
6318 (bp_location_from_bp_type): New, factored out of...
6319 (bp_location::bp_location(breakpoint *)): ... this.
6320 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6321 factored out of...
6322 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6323 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6324 breakpoint_address_is_meaningful.
6325 (bp_locations_compare): Adjust comment.
6326 (update_global_location_list): Use bl_address_is_meaningful
6327 instead of breakpoint_address_is_meaningful.
6328 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6329 explicit.
6330 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6331 * python/py-breakpoint.c (bppy_get_location): No longer check
6332 whether location is null.
6333
b58a68fe
PA
63342019-07-09 Pedro Alves <palves@redhat.com>
6335
6336 PR c++/15468
6337 * breakpoint.c (print_one_breakpoint_location): Remove
6338 single-location assert.
6339
268a13a5
TT
63402019-07-09 Tom Tromey <tom@tromey.com>
6341
6342 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6343 * configure: Rebuild.
6344 * configure.ac: Change common to gdbsupport.
6345 * gdbsupport: Rename from common.
6346 * acinclude.m4: Change common to gdbsupport.
6347 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6348 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6349 gdbsupport.
6350 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6351 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6352 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6353 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6354 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6355 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6356 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6357 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6358 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6359 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6360 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6361 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6362 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6363 coff-pe-read.c, command.h, compile/compile-c-support.c,
6364 compile/compile-c.h, compile/compile-cplus-symbols.c,
6365 compile/compile-cplus-types.c, compile/compile-cplus.h,
6366 compile/compile-loc2c.c, compile/compile.c, completer.c,
6367 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6368 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6369 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6370 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6371 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6372 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6373 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6374 features/aarch64-core.c, features/aarch64-fpu.c,
6375 features/aarch64-pauth.c, features/aarch64-sve.c,
6376 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6377 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6378 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6379 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6380 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6381 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6382 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6383 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6384 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6385 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6386 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6387 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6388 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6389 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6390 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6391 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6392 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6393 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6394 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6395 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6396 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6397 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6398 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6399 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6400 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6401 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6402 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6403 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6404 minsyms.c, mips-linux-tdep.c, namespace.h,
6405 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6406 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6407 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6408 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6409 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6410 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6411 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6412 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6413 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6414 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6415 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6416 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6417 procfs.c, producer.c, progspace.h, psymtab.h,
6418 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6419 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6420 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6421 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6422 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6423 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6424 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6425 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6426 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6427 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6428 target-memory.c, target.c, target.h, target/waitstatus.c,
6429 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6430 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6431 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6432 unittests/array-view-selftests.c,
6433 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6434 unittests/common-utils-selftests.c,
6435 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6436 unittests/format_pieces-selftests.c,
6437 unittests/function-view-selftests.c,
6438 unittests/lookup_name_info-selftests.c,
6439 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6440 unittests/mkdir-recursive-selftests.c,
6441 unittests/observable-selftests.c,
6442 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6443 unittests/parse-connection-spec-selftests.c,
6444 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6445 unittests/scoped_fd-selftests.c,
6446 unittests/scoped_mmap-selftests.c,
6447 unittests/scoped_restore-selftests.c,
6448 unittests/string_view-selftests.c, unittests/style-selftests.c,
6449 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6450 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6451 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6452 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6453 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6454 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6455
5b0e2db4
AB
64562019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6459 bool value.
6460 (decode_digits_ordinary): Set explicit_line field in sal.
6461 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6462 symtab_and_line that was set on an explicit line number in
6463 assembler code. Do always update the recorded symtab and line if
6464 we do skip the prologue.
6465
0ba852ab
AB
64662019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6467
6468 * breakpoint.c (set_breakpoint_location_function): Remove
6469 explicit_loc parameter.
6470 (momentary_breakpoint_from_master): Update call to
6471 set_breakpoint_location_function.
6472 (add_location_to_breakpoint): Likewise.
6473
b3a7d171
AB
64742019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6475
6476 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6477 required features based on default bfd type when no specific bfd
6478 is present.
6479
1f6f6e21
PW
64802019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6481
6482 * NEWS: Mention that GDB printf and eval commands can now print
6483 C-style and Ada-style convenience var strings without
6484 calling the inferior.
6485 * printcmd.c (printf_c_string): Locally print GDB internal var
6486 instead of transiting via the inferior.
6487 (printf_wide_c_string): Likewise.
6488
64892019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6490
5862c886 6491 PR breakpoints/25011
ea142fbf
AH
6492 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6493
0598af48
TT
64942019-07-04 Tom Tromey <tom@tromey.com>
6495
6496 PR tui/24724:
6497 * tui/tui-winsource.c (tui_clear_source_content): Update.
6498 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6499 (tui_update_breakpoint_info): Update.
6500 (tui_set_exec_info_content): Update.
6501 * tui/tui-source.c (tui_set_source_content_nil): Update.
6502 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6503 has_break.
6504 * tui/tui-data.h (enum tui_bp_flag): New.
6505 (tui_bp_flags): New enum flags type.
6506 (struct tui_source_element) <break_mode>: Change type. Rename
6507 from has_break.
6508 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6509 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6510 constants.
6511 * tui/tui-winsource.h: Fix comment.
6512
350fab54
AH
65132019-07-04 Alan Hayward <alan.hayward@arm.com>
6514
6515 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6516 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6517 (store_fpregs_to_thread)
6518 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6519 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6520 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6521 (IWMMXT_REGS_SIZE): Add define.
6522 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6523 (fetch_vfp_regs, store_vfp_regs)
6524 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6525 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6526
f0452268
AH
65272019-07-04 Alan Hayward <alan.hayward@arm.com>
6528
6529 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6530 defines.
6531 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6532 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6533 (ARM_INT_REGISTER_SIZE): ...to this.
6534 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6535 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6536 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6537 (arm_linux_collect_gregset, supply_nwfpe_register)
6538 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6539 defines.
6540 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6541 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6542 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6543 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6544 (arm_return_in_memory, arm_store_return_value)
6545 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6546 (arm_record_ld_st_multiple): Likewise.
6547 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6548 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6549
e935475c
AH
65502019-07-04 Alan Hayward <alan.hayward@arm.com>
6551
6552 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6553 AARCH64_DISPLACED_MODIFIED_INSNS.
6554 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6555 (aarch64_displaced_step_copy_insn): Likewise.
6556 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6557 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6558 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6559 ARM_DISPLACED_MODIFIED_INSNS.
6560 * arm-tdep.c (arm_gdbarch_init): Likewise.
6561 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6562 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6563 (struct arm_displaced_step_closure): Use
6564 ARM_DISPLACED_MODIFIED_INSNS.
6565
df0bb381
AH
65662019-07-04 Alan Hayward <alan.hayward@arm.com>
6567
6568 * features/Makefile: Remove unused xml files.
6569 * features/aarch64.xml: Remove.
6570 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6571 * features/i386/amd64-avx-avx512.xml: Remove.
6572 * features/i386/amd64-avx-linux.xml: Remove.
6573 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6574 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6575 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6576 * features/i386/amd64-avx-mpx.xml: Remove.
6577 * features/i386/amd64-avx.xml: Remove.
6578 * features/i386/amd64-linux.xml: Remove.
6579 * features/i386/amd64-mpx-linux.xml: Remove.
6580 * features/i386/amd64-mpx.xml: Remove.
6581 * features/i386/amd64.xml: Remove.
6582 * features/i386/i386-avx-avx512-linux.xml: Remove.
6583 * features/i386/i386-avx-avx512.xml: Remove.
6584 * features/i386/i386-avx-linux.xml: Remove.
6585 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6586 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6587 * features/i386/i386-avx-mpx-linux.xml: Remove.
6588 * features/i386/i386-avx-mpx.xml: Remove.
6589 * features/i386/i386-avx.xml: Remove.
6590 * features/i386/i386-linux.xml: Remove.
6591 * features/i386/i386-mmx-linux.xml: Remove.
6592 * features/i386/i386-mmx.xml: Remove.
6593 * features/i386/i386-mpx-linux.xml: Remove.
6594 * features/i386/i386-mpx.xml: Remove.
6595 * features/i386/i386.xml: Remove.
6596 * features/i386/x32-avx-avx512-linux.xml: Remove.
6597 * features/i386/x32-avx-linux.xml: Remove.
6598 * features/i386/x32-linux.xml: Remove.
6599
edd6266a
AH
66002019-07-04 Alan Hayward <alan.hayward@arm.com>
6601
6602 * regformats/aarch64.dat: Remove.
6603 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6604 * regformats/i386/amd64-avx-linux.dat: Remove.
6605 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6606 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6607 * regformats/i386/amd64-linux.dat: Remove.
6608 * regformats/i386/amd64-mpx-linux.dat: Remove.
6609 * regformats/i386/amd64.dat: Remove.
6610 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6611 * regformats/i386/i386-avx-linux.dat: Remove.
6612 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6613 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6614 * regformats/i386/i386-linux.dat: Remove.
6615 * regformats/i386/i386-mmx-linux.dat: Remove.
6616 * regformats/i386/i386-mpx-linux.dat: Remove.
6617 * regformats/i386/i386.dat: Remove.
6618 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6619 * regformats/i386/x32-avx-linux.dat: Remove.
6620 * regformats/i386/x32-linux.dat: Remove.
6621
2b40fda7
AH
66222019-07-04 Alan Hayward <alan.hayward@arm.com>
6623
6624 * aarch64-tdep.c: Remove xml self tests.
6625 * amd64-linux-tdep.c: Likewise.
6626 * amd64-tdep.c: Likewise.
6627 * i386-linux-tdep.c: Likewise.
6628 * i386-tdep.c: Likewise.
6629
5f4ba3e7
PA
66302019-07-03 Pedro Alves <palves@redhat.com>
6631
6632 PR cli/24732
6633 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6634 (pipe_cmd_option_defs): New.
6635 (make_pipe_cmd_options_def_group): New.
6636 (pipe_command): Use gdb::option::process_options.
6637 (pipe_command_completer): New function.
6638 (_initialize_cli_cmds): Install completer for "pipe" command.
6639
3d9be6f5
PA
66402019-07-03 Pedro Alves <palves@redhat.com>
6641
6642 * cli/cli-option.c (union option_value) <string>: New field.
6643 (struct option_def_and_value): Add ctor, move ctor, dtor and
6644 use DISABLE_COPY_AND_ASSIGN.
6645 (option_def_and_value::clear_value): New.
6646 (parse_option, save_option_value_in_ctx, get_val_type_str)
6647 (add_setshow_cmds_for_options): Handle var_string.
6648 * cli-option.h (union option_def::var_address) <string>: New
6649 field.
6650 (struct string_option_def): New.
6651 * maint-test-options.c (struct test_options_opts): Add default
6652 ctor and use DISABLE_COPY_AND_ASSIGN.
6653 <string_opt>: New field.
6654 (test_options_opts::~test_options_opts): New.
6655 (test_options_opts::dump): Also dump "-string".
6656 (test_options_option_defs): Install "string.
6657
41fc454c
PA
66582019-07-03 Pedro Alves <palves@redhat.com>
6659
6660 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6661 option_value with a null enumeration.
6662 (complete_options): Save the option values in the context.
6663 (save_option_value_in_ctx): New, factored out from ...
6664 (process_options): ... here.
6665 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6666 of the function.
6667 * maint-test-options.c (test_options_opts::dump): New, factored
6668 out from ...
6669 (maintenance_test_options_command_mode): ... here.
6670 (maintenance_test_options_command_completion_result): Delete.
6671 (maintenance_test_options_command_completion_text): Update
6672 comment.
6673 (maintenance_show_test_options_completion_result): Change
6674 prototype. Just print
6675 maintenance_test_options_command_completion_text.
6676 (save_completion_result): New.
6677 (maintenance_test_options_completer_mode): Pass options context to
6678 complete_options, and then save a dump.
6679 (_initialize_maint_test_options): Use add_cmd to install "maint
6680 show test-options-completion-result".
6681
fdbc9870
PA
66822019-07-03 Pedro Alves <palves@redhat.com>
6683
6684 * NEWS (New commands): Mention "with" and "maint with".
6685 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6686 (with_command, with_command_completer): New.
6687 (pipe_command): Adjust to new repeat_previous
6688 interface.
6689 (_initialize_cli_cmds): Install the "with" command and its "w"
6690 alias.
6691 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6692 declarations.
6693 * cli/cli-setshow.c (parse_cli_var_uinteger)
6694 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6695 argument strings for all var_types.
6696 (get_setshow_command_value_string): New, factored out from ...
6697 (do_show_command): ... this.
6698 * cli/cli-setshow.h: Include <string>.
6699 (get_setshow_command_value_string): Declare.
6700 * command.h (repeat_previous): Now returns const char *. Adjust
6701 comment.
6702 * maint.c: Include "cli/cli-cmds.h".
6703 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6704 (_initialize_maint_cmds): Register the "maintenance with" command.
6705 * top.c (repeat_previous): Move bits from pipe_command here:
6706 Return the saved command line, if any; error out if there's no
6707 command to relaunch.
6708
c6ac8931
PA
67092019-07-03 Pedro Alves <palves@redhat.com>
6710
6711 * NEWS (New commands): Mention "maint set/show test-settings"
6712 instead of "maint test-settings".
6713 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6714 (maintenance_test_settings_set_list): Rename to ...
6715 (maintenance_set_test_settings_list): ... this.
6716 (maintenance_test_settings_show_list): Rename to ...
6717 (maintenance_show_test_settings_list): ... this.
6718 (maintenance_test_settings_cmd): Delete.
6719 (maintenance_test_settings_set_cmd): ...
6720 (maintenance_set_test_settings_cmd): ... this.
6721 (maintenance_test_settings_show_cmd): ...
6722 (maintenance_show_test_settings_cmd): ... this.
6723 (maintenance_test_settings_show_value_cmd):
6724 (maintenance_show_test_settings_value_cmd): ... this.
6725 (_initialize_maint_test_settings): No longer install the "maint
6726 test-settings" prefix command. Rename "maint test-settings set"
6727 to "maint set test-settings", and "maint test-settings show" to
6728 "maint show test-settings". Adjust all subcommands.
6729
d1fcf2fd
PA
67302019-07-03 Pedro Alves <palves@redhat.com>
6731
6732 * maint-test-settings.c: Fix file's intro comment. Replace all
6733 references to "test-options" with references to "test-settings",
6734 in comments.
6735
970f9d09
PA
67362019-07-03 Pedro Alves <palves@redhat.com>
6737
6738 * maint-test-settings.c (maintenance_test_settings_xxx)
6739 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6740 New.
6741 (maintenance_test_settings_enums): Use them.
6742 (maintenance_test_settings_enum): Default to
6743 maintenance_test_settings_xxx.
6744 (_initialize_maint_test_settings): Initialize
6745 MAINTENANCE_TEST_SETTINGS_FILENAME.
6746
f3869b1a
SM
67472019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * breakpoint.h (remove_breakpoints_inf): Change return type to
6750 void, move function documentation here.
6751 * breakpoint.c (remove_breakpoints_inf): Change return type to
6752 void, move function documentation to header.
6753
54d66006
PA
67542019-07-02 Pedro Alves <palves@redhat.com>
6755
6756 * NEWS (Completion improvements): Mention "info threads".
6757 * thread.c (struct info_threads_opts, info_threads_option_defs)
6758 (make_info_threads_options_def_group): New.
6759 (info_threads_command): Use gdb::option::process_options.
6760 (info_threads_command_completer): New.
6761 (_initialize_thread): Use gdb::option::build_help to build the
6762 help text for "info threads".
6763
854f6088
SM
67642019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6765
6766 * defs.h (generic_load): Move from here...
6767 * symfile.h (generic_load): ... to here. Rename name parameter
6768 to args.
6769 * symfile.c (generic_load): Add comment.
6770
54ee4252
TT
67712019-07-01 Tom Tromey <tromey@adacore.com>
6772
6773 * dwarf2read.c
6774 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6775 declaration of without_params. Fix formatting.
6776
65392b3e
TT
67772019-07-01 Tom Tromey <tromey@adacore.com>
6778
6779 * ada-exp.y (find_primitive_type): Update.
6780 * ada-lang.h (ada_lookup_symbol): Update.
6781 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6782 parameter.
6783 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6784
7d7571f0
SDJ
67852019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6786
6787 PR breakpoints/24541
6788 * gdbarch.c: Regenerate.
6789 * gdbarch.h: Regenerate.
6790 * gdbarch.sh: Add 'stap_adjust_register'.
6791 * i386-tdep.c: Include '<unordered_set>'.
6792 (i386_stap_adjust_register): New function.
6793 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6794 * stap-probe.c (stap_parse_register_operand): Call
6795 'gdbarch_stap_adjust_register'.
6796
5af5392a
SDJ
67972019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6798
6799 PR python/24742
6800 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6801 * python/python.c (do_start_initialization): Use 'xmalloc'
6802 instead of 'PyMem_Malloc'.
6803
10d06d82
TT
68042019-06-28 Tom Tromey <tromey@adacore.com>
6805
6806 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6807 for Ada.
6808
1b7f24cd
TT
68092019-06-27 Tom Tromey <tromey@adacore.com>
6810
6811 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6812 objfile_key.
6813 (arm_find_mapping_symbol, arm_record_special_symbol)
6814 (_initialize_arm_tdep): Update.
6815 (arm_objfile_data_free): Remove.
6816
3d507ff2
TT
68172019-06-27 Tom Tromey <tromey@adacore.com>
6818
6819 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6820 to cp_print_static_field.
6821
762c164d
TT
68222019-06-26 Tom Tromey <tromey@adacore.com>
6823
6824 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6825 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6826 declare.
6827
aa2f9bcf
AH
68282019-06-26 Alan Hayward <alan.hayward@arm.com>
6829
6830 * features/aarch64-core.c (create_feature_aarch64_core):
6831 Regenerate.
6832 * features/aarch64-core.xml: Add cpsr flags.
6833
3426ae57
AH
68342019-06-26 Alan Hayward <alan.hayward@arm.com>
6835
6836 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6837 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6838
4838e44c
SM
68392019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6842 field.
6843 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6844 use.
6845 (arm_record_special_symbol): Don't insert new symbol in sorted
6846 position, push it at the end.
6847
54cc7474
SM
68482019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6849
6850 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6851 (arm_mapping_symbol_s): Remove.
6852 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6853 (arm_mapping_symbol_vec): New typedef.
6854 (struct arm_per_objfile): Add constructor.
6855 <section_maps>: Change type to
6856 std::unique_ptr<arm_mapping_symbol_vec[]>.
6857 (arm_compare_mapping_symbols): Remove.
6858 (arm_find_mapping_symbol): Adjust to section_maps type change.
6859 (arm_objfile_data_free): Call delete on arm_per_objfile.
6860 (arm_record_special_symbol): Adjust to section_maps type change.
6861 Allocate arm_per_objfile with new.
6862
b65b566c
PW
68632019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6864
6865 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6866 with the command prefix.
6867
c2fc64f5
TT
68682019-06-25 Tom Tromey <tom@tromey.com>
6869
6870 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6871 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6872
fb54fa76
TT
68732019-06-25 Tom Tromey <tom@tromey.com>
6874
6875 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6876 type.
6877 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6878 protected.
6879
f7952c57
TT
68802019-06-25 Tom Tromey <tom@tromey.com>
6881
6882 * tui/tui-winsource.c
6883 (tui_source_window_base::set_is_exec_point_at): Add check against
6884 LOA_ADDRESS.
6885
17568d78
TT
68862019-06-25 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui-source.c (tui_set_source_content): Don't check before
6889 xfree.
6890 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6891
53e7cdba
TT
68922019-06-25 Tom Tromey <tom@tromey.com>
6893
6894 * tui/tui-winsource.h (tui_update_source_window_as_is)
6895 (tui_alloc_source_buffer, tui_line_is_displayed)
6896 (tui_addr_is_displayed): Change type of win_info.
6897 * tui/tui-winsource.c (tui_update_source_window_as_is)
6898 (tui_clear_source_content, tui_show_source_line)
6899 (tui_show_source_content, tui_source_window_base::refill)
6900 (tui_source_window_base::set_is_exec_point_at)
6901 (tui_source_window_base::set_is_exec_point_at)
6902 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6903 (tui_alloc_source_buffer, tui_line_is_displayed)
6904 (tui_addr_is_displayed): Change type of win_info. Update.
6905 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6906 (tui_source_window_base::do_make_visible_with_new_height):
6907 Update.
6908 * tui/tui-source.c (tui_set_source_content)
6909 (tui_set_source_content_nil)
6910 (tui_source_window::do_scroll_vertical): Update.
6911 * tui/tui-layout.c (show_layout): Update.
6912 * tui/tui-disasm.c (tui_set_disassem_content)
6913 (tui_disasm_window::do_scroll_vertical): Update.
6914 * tui/tui-data.h (tui_win_content): Remove.
6915 (struct tui_gen_win_info) <content, content_size>: Remove.
6916 (struct tui_source_element): Add initializers and destructor.
6917 (union tui_which_element, struct tui_win_element): Remove.
6918 (struct tui_source_window_base) <content>: New field.
6919 (struct tui_data_window): Remove destructor.
6920 (tui_alloc_content, tui_free_win_content)
6921 (tui_free_all_source_wins_content): Don't declare.
6922 * tui/tui-data.c (tui_initialize_static_data): Update.
6923 (init_content_element, tui_alloc_content): Remove.
6924 (~tui_gen_win_info): Update.
6925 (~tui_data_window, tui_free_all_source_wins_content)
6926 (tui_free_win_content, free_content, free_content_elements):
6927 Remove.
6928
7908abbf
TT
69292019-06-25 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-winsource.h (tui_clear_source_content)
6932 (tui_erase_source_content, tui_show_source_content): Change type
6933 of win_info.
6934 * tui/tui-winsource.c (tui_clear_source_content)
6935 (tui_erase_source_content, tui_show_source_content): Change type
6936 of win_info.
6937 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6938 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6939 win_info.
6940 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6941 win_info.
6942 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6943
02c28df0
TT
69442019-06-25 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-winsource.c (tui_clear_source_content)
6947 (tui_source_window_base::set_is_exec_point_at): Update.
6948 * tui/tui-source.c (tui_set_source_content_nil): Update.
6949 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6950 a bool.
6951 * tui/tui-data.c (init_content_element): Update.
6952
6658b1bf
TT
69532019-06-25 Tom Tromey <tom@tromey.com>
6954
6955 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6956 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6957 * tui/tui-layout.c (init_and_make_win): Update.
6958 * tui/tui.h (enum tui_win_type): Update.
6959 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6960 tui_win_is_auxillary.
6961 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6962 tui_win_is_auxillary.
6963
21e1c91e
TT
69642019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6967 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6968 (tui_delete_data_content_windows, tui_display_all_data)
6969 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6970 Update.
6971 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6972 * tui/tui-regs.c (tui_last_regs_line_no)
6973 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6974 (tui_show_registers): Update.
6975 (tui_show_register_group): Return void. Update.
6976 (tui_display_registers_from, tui_display_reg_element_at_line)
6977 (tui_display_registers_from_line, tui_check_register_values):
6978 Update.
6979 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6980 member.
6981 (struct tui_data_window) <regs_content>: Now a std::vector.
6982 <regs_content_count>: Remove.
6983 (tui_add_content_elements, tui_free_data_content): Don't declare.
6984 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6985 (init_content_element): Remove DATA_WIN case. Add assert.
6986 (tui_add_content_elements): Remove.
6987 (tui_data_window): Update.
6988 (tui_free_data_content): Remove.
6989 (free_content_elements): Remove DATA_WIN case.
6990
115ac53b
TT
69912019-06-25 Tom Tromey <tom@tromey.com>
6992
6993 * tui/tui-data.c (tui_data_item_window): Update.
6994 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6995 * tui/tui-windata.c (tui_display_all_data)
6996 (tui_display_data_from_line): Update.
6997 (tui_check_data_values): Remove.
6998 * tui/tui-regs.c (tui_show_register_group)
6999 (tui_display_reg_element_at_line): Update.
7000 * tui/tui-hooks.c (tui_register_changed)
7001 (tui_refresh_frame_and_register_information): Call
7002 tui_check_register_values.
7003 * tui/tui-data.h (struct tui_data_window) <data_content,
7004 data_content_count, data_type>: Remove.
7005 (enum tui_data_type): Remove.
7006
7007 * tui/tui-data.c (tui_data_window::clear_detail)
7008 (~tui_data_window): Update.
7009
eaf9738b
TT
70102019-06-25 Tom Tromey <tom@tromey.com>
7011
7012 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7013 declare.
7014 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7015 Rename from tui_first_data_item_displayed. Update.
7016 (tui_data_window::refresh_all)
7017 (tui_data_window::do_scroll_vertical): Update.
7018 * tui/tui-data.h (struct tui_data_window)
7019 <first_data_item_displayed>: Declare new method.
7020
31ca4723
TT
70212019-06-25 Tom Tromey <tom@tromey.com>
7022
7023 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7024 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7025 contents...
7026 (tui_initialize_static_data): ...here.
7027
41bcff7f
TT
70282019-06-25 Tom Tromey <tom@tromey.com>
7029
7030 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7031 (tui_display_registers_from, tui_check_register_values): Update.
7032 (tui_display_register): Remove win_info parameter; update.
7033 (tui_get_register): Change type of parameters.
7034 * tui/tui-data.h (struct tui_data_element): Remove.
7035 (union tui_which_element) <data>: Remove.
7036 <data_window>: Change type.
7037 (struct tui_data_item_window): New.
7038 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7039 case. Add assert.
7040 (~tui_data_item_window): New destructor.
7041 (free_content_elements): Remove DATA_ITEM_WIN case.
7042
d2802c33
TT
70432019-06-25 Tom Tromey <tom@tromey.com>
7044
7045 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7046 Remove.
7047
dd835f8b
TT
70482019-06-25 Tom Tromey <tom@tromey.com>
7049
7050 * tui/tui-data.h (struct tui_command_element): Remove.
7051 (union tui_which_element) <command>: Remove.
7052 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7053 assert.
7054 (free_content_elements): Remove CMD_WIN case.
7055
bd7db367
TT
70562019-06-25 Tom Tromey <tom@tromey.com>
7057
7058 * tui/tui-layout.c (tui_set_layout): Update.
7059 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7060 * tui/tui-data.c (layout_def): Update.
7061
3add462f
TT
70622019-06-25 Tom Tromey <tom@tromey.com>
7063
7064 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7065 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7066 (tui_source_window_base::set_new_height): Update.
7067 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7068 Update.
7069 (tui_set_locator_fullname, tui_set_locator_info)
7070 (tui_show_frame_info): Update.
7071 * tui/tui-source.c (tui_set_source_content)
7072 (tui_source_is_displayed): Update.
7073 * tui/tui-layout.c (show_source_disasm_command, show_data)
7074 (show_source_or_disasm_and_command): Update.
7075 * tui/tui-disasm.c (tui_set_disassem_content)
7076 (tui_get_begin_asm_address): Update.
7077 * tui/tui-data.h (struct tui_locator_element): Remove.
7078 (union tui_which_element) <locator>: Remove.
7079 (struct tui_locator_window): New.
7080 (tui_locator_win_info_ptr): Change return type.
7081 * tui/tui-data.c (_locator): Change type.
7082 (tui_locator_win_info_ptr): Change return type.
7083 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7084 (tui_alloc_content): Add assert.
7085
489e9d8b
TT
70862019-06-25 Tom Tromey <tom@tromey.com>
7087
7088 * tui/tui-winsource.c
7089 (tui_exec_info_window::maybe_allocate_content): New method.
7090 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7091 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7092 (make_source_or_disasm_window): Add cast.
7093 * tui/tui-data.h (union tui_which_element) <simple_string>:
7094 Remove.
7095 (struct tui_source_info): New.
7096 (struct tui_source_window_base) <execution_info>: Change type.
7097 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7098 case, and add assert.
7099 (tui_alloc_content): Add assert.
7100
c3fabb7d
TT
71012019-06-25 Tom Tromey <tom@tromey.com>
7102
7103 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7104 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7105 * tui/tui-data.c (tui_alloc_win_info): Remove.
7106
bbc228ee
TT
71072019-06-25 Tom Tromey <tom@tromey.com>
7108
7109 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7110 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7111 can_highlight.
7112
5fcee43a
TT
71132019-06-25 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7116 make_visible_with_new_height method.
7117 (tui_win_info::make_visible_with_new_height): New method.
7118 (tui_source_window_base::do_make_visible_with_new_height)
7119 (tui_data_window::do_make_visible_with_new_height)
7120 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7121 (make_visible_with_new_height): Remove.
7122 (tui_resize_all, tui_adjust_win_heights): Use
7123 make_visible_with_new_height method.
7124 * tui/tui-data.h (struct tui_win_info)
7125 <do_make_visible_with_new_height, make_visible_with_new_height>:
7126 New methods.
7127 (struct tui_source_window_base, struct tui_data_window)
7128 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7129 methods.
7130
d83f1fe6
TT
71312019-06-25 Tom Tromey <tom@tromey.com>
7132
7133 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7134 method.
7135 (update_tab_width): Call update_tab_width method.
7136 * tui/tui-data.h (struct tui_win_info)
7137 (struct tui_source_window_base) <update_tab_width>: New methods.
7138
17374de4
TT
71392019-06-25 Tom Tromey <tom@tromey.com>
7140
7141 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7142 parameter.
7143 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7144 parameter.
7145 (tui_gen_win_info::make_visible): Update.
7146 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7147 parameter.
7148 * tui/tui-data.h (enum tui_box): New enum.
7149 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7150
f936bca2
TT
71512019-06-25 Tom Tromey <tom@tromey.com>
7152
7153 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7154 init_and_make_win for EXEC_INFO_WIN.
7155 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7156 longer inline.
7157 (struct tui_win_info) <~tui_win_info>: Inline.
7158 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7159 Don't declare.
7160 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7161 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7162 Remove.
7163 (tui_initialize_static_data): Update.
7164 (~tui_gen_win_info): Handle more cleanup here.
7165 (~tui_source_window_base): Delete "execution_info".
7166 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7167
d6ba6a11
TT
71682019-06-25 Tom Tromey <tom@tromey.com>
7169
7170 * tui/tui-layout.c (make_command_window): Don't set
7171 can_highlight.
7172 (show_source_disasm_command): Call the reset method.
7173 (show_data): Don't set can_highlight. Call the reset method.
7174 (tui_gen_win_info::reset): Rename from init_gen_win_info
7175 (init_and_make_win): Simplify. Return tui_gen_win_info.
7176 (show_source_or_disasm_and_command): Call the reset method.
7177 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7178 (struct tui_cmd_window): Set can_highlight.
7179
48a3bd16
TT
71802019-06-25 Tom Tromey <tom@tromey.com>
7181
7182 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7183 from make_visible.
7184 (tui_make_visible, tui_make_invisible): Rewrite.
7185 (tui_win_info::make_visible): Remove.
7186 (tui_source_window_base::make_visible): Update.
7187 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7188 method. Moved from...
7189 (struct tui_win_info) <make_visible>: ...here.
7190
c3bd716f
TT
71912019-06-25 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-winsource.c
7194 (tui_source_window_base::do_scroll_horizontal): Remove direction
7195 parameter.
7196 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7197 direction parameter.
7198 * tui/tui-win.c (tui_win_info::forward_scroll)
7199 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7200 (tui_win_info::right_scroll): Update.
7201 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7202 direction parameter.
7203 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7204 direction parameter.
7205 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7206 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7207 Remove direction parameter.
7208 (struct tui_source_window_base, struct tui_source_window)
7209 (struct tui_disasm_window, struct tui_data_window)
7210 (struct tui_cmd_window): Update.
7211
21c32dca
TT
72122019-06-25 Tom Tromey <tom@tromey.com>
7213
7214 * tui/tui-winsource.h (tui_set_exec_info_content)
7215 (tui_show_exec_info_content, tui_erase_exec_info_content)
7216 (tui_clear_exec_info_content, tui_update_exec_info): Change
7217 argument to tui_source_window_base.
7218 * tui/tui-winsource.c (tui_set_exec_info_content)
7219 (tui_show_exec_info_content, tui_erase_exec_info_content)
7220 (tui_clear_exec_info_content, tui_update_exec_info): Change
7221 argument to tui_source_window_base.
7222
73fbdc65
TT
72232019-06-25 Tom Tromey <tom@tromey.com>
7224
7225 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7226 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7227
33325343
TT
72282019-06-25 Tom Tromey <tom@tromey.com>
7229
7230 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7231 check.
7232
29d2c474
TT
72332019-06-25 Tom Tromey <tom@tromey.com>
7234
7235 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7236 type to void.
7237 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7238 type to void.
7239 * tui/tui-source.c (tui_set_source_content): Update.
7240 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7241
152f3f4b
TT
72422019-06-25 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-win.c (window_name_completer, tui_set_focus)
7245 (tui_all_windows_info): Use name method.
7246 * tui/tui-data.h (struct tui_gen_win_info)
7247 (struct tui_source_window, struct tui_disasm_window)
7248 (struct tui_data_window, struct tui_cmd_window) <name>: New
7249 method.
7250 (tui_win_name): Don't declare.
7251 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7252 (tui_win_name): Remove.
7253
be4da588
TT
72542019-06-25 Tom Tromey <tom@tromey.com>
7255
7256 * tui/tui-winsource.h (tui_update_source_window)
7257 (tui_update_source_window_as_is): Change parameter type.
7258 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7259 to be a tui_source_window_base.
7260 (tui_update_source_window_as_is): Likewise.
7261 * tui/tui-win.c (make_visible_with_new_height): Update.
7262
5b81daba
TT
72632019-06-25 Tom Tromey <tom@tromey.com>
7264
7265 * tui/tui-winsource.c (tui_erase_source_content)
7266 (tui_show_source_content, tui_show_exec_info_content)
7267 (tui_erase_exec_info_content): Use refresh_window method.
7268 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7269 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7270 from tui_refresh_win.
7271 (tui_data_window::refresh_window): New method.
7272 (tui_win_info::refresh, tui_source_window_base::refresh)
7273 (tui_refresh_all): Use refresh_window method.
7274 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7275 method.
7276 * tui/tui-regs.c (tui_display_register): Call refresh_window
7277 method.
7278 * tui/tui-layout.c (show_source_disasm_command)
7279 (show_source_or_disasm_and_command): Call refresh_window method.
7280 * tui/tui-data.h (struct tui_gen_win_info)
7281 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7282 New method.
7283
cb2ce893
TT
72842019-06-25 Tom Tromey <tom@tromey.com>
7285
7286 * tui/tui.c (tui_rl_other_window, tui_enable)
7287 (tui_is_window_visible, tui_get_command_dimension): Update.
7288 * tui/tui-winsource.c (tui_update_source_window_as_is)
7289 (tui_clear_source_content, tui_erase_source_content)
7290 (tui_show_source_line, tui_source_window_base::refill)
7291 (tui_source_window_base::do_scroll_horizontal)
7292 (tui_source_window_base::set_is_exec_point_at)
7293 (tui_update_breakpoint_info, tui_set_exec_info_content)
7294 (tui_alloc_source_buffer, tui_line_is_displayed)
7295 (tui_addr_is_displayed): Update.
7296 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7297 (tui_check_and_display_highlight_if_needed)
7298 (tui_win_info::make_visible, tui_win_info::refresh)
7299 (tui_refresh_all): Update.
7300 * tui/tui-windata.c (tui_first_data_item_displayed)
7301 (tui_delete_data_content_windows, tui_erase_data_content)
7302 (tui_display_all_data, tui_data_window::refresh_all)
7303 (tui_check_data_values): Update.
7304 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7305 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7306 (tui_win_info::backward_scroll, tui_refresh_all_win)
7307 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7308 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7309 (tui_source_window_base::set_new_height)
7310 (tui_data_window::set_new_height)
7311 (make_invisible_and_set_new_height)
7312 (make_visible_with_new_height, new_height_ok)
7313 (parse_scrolling_args): Update.
7314 * tui/tui-stack.c (tui_show_frame_info): Update.
7315 * tui/tui-source.c (tui_set_source_content)
7316 (tui_set_source_content_nil, tui_source_is_displayed)
7317 (tui_source_window::do_scroll_vertical): Update.
7318 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7319 (tui_display_registers_from, tui_display_reg_element_at_line)
7320 (tui_check_register_values, tui_reg_command): Update.
7321 * tui/tui-layout.c (tui_default_win_height)
7322 (show_source_disasm_command, show_data, init_and_make_win)
7323 (show_source_or_disasm_and_command): Update.
7324 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7325 (tui_redisplay_readline, tui_mld_flush)
7326 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7327 (tui_getc): Update.
7328 * tui/tui-disasm.c (tui_set_disassem_content)
7329 (tui_disasm_window::do_scroll_vertical): Update.
7330 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7331 Now virtual.
7332 (struct tui_win_info): Derive from tui_gen_win_info.
7333 <~tui_win_info>: Mark as override.
7334 <generic>: Remove member.
7335 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7336 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7337 (~tui_data_window, ~tui_win_info)
7338 (tui_free_all_source_wins_content): Update.
7339 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7340
ab313b35
TT
73412019-06-25 Tom Tromey <tom@tromey.com>
7342
7343 * tui/tui-layout.c (init_and_make_win): Use new.
7344 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7345 destructor, initializers.
7346 (tui_alloc_generic_win_info): Don't declare.
7347 * tui/tui-data.c (_locator): Add argument to constructor.
7348 (source_win, disasm_win): New globals.
7349 (exec_info): Remove.
7350 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7351 Update.
7352 (tui_alloc_generic_win_info): Remove.
7353 (init_content_element): Use new.
7354 (tui_win_info::tui_win_info): Update.
7355 (free_content_elements) <case DATA_WIN>: Use delete.
7356
dc2c33e4
TT
73572019-06-25 Tom Tromey <tom@tromey.com>
7358
7359 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7360 * tui/tui-windata.c (tui_first_data_item_displayed)
7361 (tui_delete_data_content_windows): Update.
7362 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7363 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7364 (tui_display_registers_from, tui_check_register_values): Update.
7365 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7366 pointer.
7367 * tui/tui-data.c (init_content_element): Update. Allocate the new
7368 window.
7369 (tui_free_data_content): Update.
7370 (free_content_elements) <case DATA_WIN>: Free the window.
7371
214a5cbe
TT
73722019-06-25 Tom Tromey <tom@tromey.com>
7373
7374 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7375 Update.
7376 * tui/tui-layout.c (make_command_window)
7377 (show_source_disasm_command, show_data, init_and_make_win)
7378 (show_source_or_disasm_and_command): Update.
7379 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7380 method.
7381 <can_highight, is_highlighted>: Now bool.
7382 (tui_set_win_highlight): Don't declare.
7383 * tui/tui-data.c (tui_set_win_highlight): Remove.
7384
8e2daf15
TT
73852019-06-25 Tom Tromey <tom@tromey.com>
7386
7387 * tui/tui-wingeneral.c (make_visible): Remove check of window
7388 type.
7389
8903bd8a
TT
73902019-06-25 Tom Tromey <tom@tromey.com>
7391
7392 * tui/tui-win.c (tui_win_info::max_height)
7393 (tui_cmd_window::max_height): New methods.
7394 (new_height_ok): Call max_height.
7395 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7396 <max_height>: New method.
7397
3f02ce1e
TT
73982019-06-25 Tom Tromey <tom@tromey.com>
7399
7400 * tui/tui-win.c (tui_source_window_base::set_new_height)
7401 (tui_data_window::set_new_height): New methods.
7402 (make_invisible_and_set_new_height): Call set_new_height method.
7403 * tui/tui-data.h (struct tui_win_info)
7404 (struct tui_source_window_base, struct tui_data_window)
7405 <set_new_height>: New method.
7406
1825f487
TT
74072019-06-25 Tom Tromey <tom@tromey.com>
7408
7409 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7410 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7411 tui_refresh_data_win.
7412 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7413 method.
7414 (tui_refresh_all_win): Call the refresh_all method.
7415 (tui_set_focus): Likewise.
7416 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7417 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7418 Likewise.
7419
ad54d15b
TT
74202019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-winsource.h (tui_refill_source_window)
7423 (tui_set_is_exec_point_at): Don't declare.
7424 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7425 (tui_source_window_base::refill): Rename from
7426 tui_refill_source_window.
7427 (tui_source_window_base::do_scroll_horizontal): Update.
7428 (tui_source_window_base::set_is_exec_point_at): Rename from
7429 tui_set_is_exec_point_at.
7430 (tui_update_all_breakpoint_info): Update.
7431 * tui/tui-stack.c (tui_show_frame_info): Update.
7432 * tui/tui-layout.c (show_data): Add cast.
7433 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7434 * tui/tui-data.h (struct tui_source_window_base) <refill,
7435 set_is_exec_point_at>: New methods.
7436 (tui_source_windows, tui_add_to_source_windows): Update types.
7437 (tui_add_to_source_windows): Remove redundant declaration.
7438 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7439 (tui_source_windows): Change return type.
7440 (tui_clear_source_windows_detail): Update.
7441 (tui_add_to_source_windows): Change type of parameter.
7442 (tui_free_all_source_wins_content): Update.
7443
2042b506
TT
74442019-06-25 Tom Tromey <tom@tromey.com>
7445
7446 * tui/tui-wingeneral.c (tui_win_info::refresh)
7447 (tui_source_window_base::refresh): New methods.
7448 (tui_refresh_all): Call the refresh method.
7449 * tui/tui-data.h (struct tui_win_info)
7450 (struct tui_source_window_base) <refresh>: New method.
7451
56122977
TT
74522019-06-25 Tom Tromey <tom@tromey.com>
7453
7454 * tui/tui.h (tui_is_window_visible): Return bool.
7455 * tui/tui.c (tui_is_window_visible): Return bool.
7456 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7457 (tui_make_visible, tui_make_invisible)
7458 (tui_win_info::make_visible)
7459 (tui_source_window_base::make_visible, make_all_visible)
7460 (tui_make_all_visible, tui_make_all_invisible): Update.
7461 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7462 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7463 bool.
7464 (struct tui_win_info, struct tui_source_window_base)
7465 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7466 * tui/tui-data.c (tui_init_generic_part): Update.
7467
cda37efb
TT
74682019-06-25 Tom Tromey <tom@tromey.com>
7469
7470 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7471 (tui_source_window_base::make_visible): New methods.
7472 (make_all_visible): Make method call.
7473 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7474 (struct tui_source_window_base, struct tui_cmd_window): Override
7475 make_visible.
7476 (tui_win_is_source_type): Don't declare.
7477 * tui/tui-data.c (tui_win_is_source_type): Remove.
7478
6a0ee02c
TT
74792019-06-25 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7482 NULL check.
7483
63901aec
TT
74842019-06-25 Tom Tromey <tom@tromey.com>
7485
7486 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7487 Inline constructor. Add initializers for members.
7488 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7489 constructors; now inline in class.
7490
ceb13a13
TT
74912019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-regs.c (tui_show_registers): Update.
7494 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7495 bool.
7496 * tui/tui-data.c (tui_data_window::clear_detail)
7497 (tui_data_window): Update.
7498
238eb706
TT
74992019-06-25 Tom Tromey <tom@tromey.com>
7500
7501 * tui/tui-windata.c (tui_display_all_data)
7502 (tui_display_data_from_line, tui_display_data_from)
7503 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7504 Update.
7505 * tui/tui-regs.c (tui_last_regs_line_no)
7506 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7507 (tui_show_registers, tui_show_register_group)
7508 (tui_display_registers_from, tui_display_reg_element_at_line)
7509 (tui_display_registers_from_line, tui_check_register_values)
7510 (tui_reg_next, tui_reg_prev): Update.
7511 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7512 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7513 tui_data_window.
7514 (struct tui_win_info) <detail>: Remove. Add new fields from
7515 tui_data_info.
7516 (TUI_DATA_WIN): Add cast.
7517 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7518 (~tui_data_window): Simplify.
7519
81491aa0
TT
75202019-06-25 Tom Tromey <tom@tromey.com>
7521
7522 * tui/tui-layout.c (show_source_disasm_command)
7523 (show_source_or_disasm_and_command): Update.
7524 * tui/tui-io.c (update_cmdwin_start_line)
7525 (tui_redisplay_readline): Update.
7526 * tui/tui-data.h (struct tui_command_info): Remove.
7527 (struct tui_win_info) <detail>: Remove command_info member.
7528 (struct tui_data_window) <start_line>: New member, from
7529 tui_command_info.
7530 (TUI_CMD_WIN): Add casts.
7531
e6e41501
TT
75322019-06-25 Tom Tromey <tom@tromey.com>
7533
7534 * tui/tui-winsource.c (tui_update_source_window)
7535 (tui_refill_source_window)
7536 (tui_source_window_base::do_scroll_horizontal)
7537 (tui_update_breakpoint_info, tui_set_exec_info_content)
7538 (tui_show_exec_info_content, tui_erase_exec_info_content)
7539 (tui_clear_exec_info_content): Update.
7540 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7541 Update.
7542 * tui/tui-win.c (make_invisible_and_set_new_height)
7543 (make_visible_with_new_height): Update.
7544 * tui/tui-source.c (tui_set_source_content)
7545 (tui_show_symtab_source): Update.
7546 * tui/tui-layout.c (extract_display_start_addr)
7547 (show_source_disasm_command, show_data)
7548 (make_source_or_disasm_window)
7549 (show_source_or_disasm_and_command): Update.
7550 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7551 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7552 "gdbarch".
7553 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7554 to tui_source_window_base.
7555 (struct tui_win_info) <detail>: Remove source_info member.
7556 (struct tui_source_window_base) <has_locator>: Inline.
7557 Move contents from tui_source_info; rename has_locator member to
7558 m_has_locator.
7559 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7560 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7561 header file.
7562 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7563 Simplify.
7564 (tui_free_all_source_wins_content): Cast to
7565 tui_source_window_base.
7566
44f0e208
TT
75672019-06-25 Tom Tromey <tom@tromey.com>
7568
7569 * tui/tui-win.c (make_invisible_and_set_new_height)
7570 (make_visible_with_new_height): Call has_locator method.
7571 * tui/tui-layout.c (show_source_disasm_command, show_data)
7572 (show_source_or_disasm_and_command): Update for bool change.
7573 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7574 (tui_win_info) <has_locator>: New method.
7575 (struct tui_source_window_base) <has_locator>: New method.
7576 (tui_win_has_locator): Don't declare.
7577 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7578 from tui_win_has_locator.
7579 (tui_source_window_base): Use false, not FALSE.
7580
7778b912
TT
75812019-06-25 Tom Tromey <tom@tromey.com>
7582
7583 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7584 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7585 clear_detail method directly.
7586 (tui_clear_win_detail): Remove.
7587
f83d391c
TT
75882019-06-25 Tom Tromey <tom@tromey.com>
7589
7590 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7591 "this", not TUI_DISASM_WIN.
7592
13446e05
TT
75932019-06-25 Tom Tromey <tom@tromey.com>
7594
7595 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7596 declare.
7597 * tui/tui-winsource.c
7598 (tui_source_window_base::do_scroll_horizontal): Rename from
7599 tui_horizontal_source_scroll.
7600 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7601 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7602 from tui_vertical_data_scroll.
7603 * tui/tui-win.h (tui_scroll): Don't declare.
7604 * tui/tui-win.c (tui_win_info::forward_scroll)
7605 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7606 (tui_win_info::right_scroll): Rename and update.
7607 (tui_scroll_forward_command, tui_scroll_backward_command)
7608 (tui_scroll_left_command, tui_scroll_right_command): Update.
7609 (tui_scroll): Remove.
7610 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7611 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7612 from tui_vertical_source_scroll.
7613 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7614 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7615 from tui_vertical_disassem_scroll.
7616 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7617 do_scroll_horizontal>: New methods.
7618 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7619 Likewise.
7620 (struct tui_source_window_base): Add do_scroll_horizontal.
7621 (struct tui_source_window, struct tui_disasm_window): Add
7622 do_scroll_vertical.
7623 (struct tui_data_window, struct tui_cmd_window): Add
7624 do_scroll_horizontal and do_scroll_vertical.
7625 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7626
5cf82909
TT
76272019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-data.h (struct tui_source_window_base): New struct.
7630 (struct tui_source_window): Derive from tui_source_window_base.
7631 (struct tui_disasm_window): New struct.
7632 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7633 from tui_source_window::clear_detail.
7634 (tui_source_window_base): Rename from tui_source_window.
7635 (~tui_source_window_base): Rename from ~tui_source_window.
7636 (tui_alloc_win_info): Create a tui_disasm_window.
7637
ee1d42d6
TT
76382019-06-25 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-data.h (struct tui_source_window)
7641 (struct tui_data_window): Declare destructors.
7642 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7643 destructors.
7644 (tui_win_info): Simplify.
7645
b4eb2452
TT
76462019-06-25 Tom Tromey <tom@tromey.com>
7647
7648 * tui/tui-winsource.c (tui_display_main)
7649 (tui_update_source_windows_with_addr)
7650 (tui_update_all_breakpoint_info): Update.
7651 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7652 (new_height_ok, parse_scrolling_args): Update.
7653 * tui/tui-stack.c (tui_show_frame_info): Update.
7654 * tui/tui-data.h (struct tui_list): Remove.
7655 (tui_source_windows): Return a reference to a std::vector.
7656 * tui/tui-data.c (source_windows): Now a std::vector.
7657 (tui_source_windows): Change return type.
7658 (tui_clear_source_windows): Rewrite.
7659 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7660 (tui_free_all_source_wins_content): Rewrite.
7661
8761a91b
TT
76622019-06-25 Tom Tromey <tom@tromey.com>
7663
7664 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7665 (struct tui_data_window, struct tui_cmd_window): Declare
7666 clear_detail method.
7667 * tui/tui-data.c (tui_source_window::clear_detail)
7668 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7669 methods.
7670 (tui_clear_win_detail): Simplify.
7671
0ed69eda
TT
76722019-06-25 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-layout.c (make_source_window, make_disasm_window)
7675 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7676 Return the new window.
7677 (show_source_disasm_command, show_data)
7678 (show_source_or_disasm_and_command): Update.
7679
82432e10
TT
76802019-06-25 Tom Tromey <tom@tromey.com>
7681
7682 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7683 parameter. Return the new window.
7684 (show_source_disasm_command): Update and remove NULL check.
7685 (show_source_or_disasm_and_command): Update.
7686
ec328aa5
TT
76872019-06-25 Tom Tromey <tom@tromey.com>
7688
7689 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7690
33b906ab
TT
76912019-06-25 Tom Tromey <tom@tromey.com>
7692
7693 * tui/tui-data.h (struct tui_win_info): Make constructor
7694 protected. Make destructor virtual. Add initializers.
7695 (tui_source_window, tui_data_window, tui_cmd_window): New
7696 classes.
7697 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7698 constructor. Add "type" parameter.
7699 (tui_source_window, tui_data_window, tui_cmd_window): New
7700 constructors.
7701 (tui_alloc_win_info): Instantiate the appropriate subclass.
7702
e7e11af4
TT
77032019-06-25 Tom Tromey <tom@tromey.com>
7704
7705 * tui/tui-win.c (tui_resize_all): Use delete.
7706 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7707 destructor.
7708 (tui_free_window): Don't declare.
7709 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7710 Update.
7711
6792b55e
TT
77122019-06-25 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-data.h (struct tui_win_info): Add constructor.
7715 * tui/tui-data.c (tui_alloc_win_info): Use new.
7716 (tui_free_window): Use delete.
7717
f95675e1
TT
77182019-06-22 Tom Tromey <tom@tromey.com>
7719
7720 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7721 declare.
7722 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7723
5bff081c
TT
77242019-06-22 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7727 declare.
7728 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7729
47e3f474
TV
77302019-06-22 Tom de Vries <tdevries@suse.de>
7731
7732 * dwarf2read.c (create_addrmap_from_aranges)
7733 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7734 instead of '%zu'.
7735
fd5866f6
SM
77362019-06-21 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * dwarf2read.h (dwarf2_section_info_def): Remove.
7739 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7740 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7741 std::vector<dwarf2_section_info>.
7742 (struct dwo_file) <~dwo_file>: Remove.
7743 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7744 types field.
7745 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7746 (dwarf2_read_debug_names): Likewise.
7747 (create_debug_types_hash_table): Change parameter type to
7748 array_view, adjust code accordingly.
7749 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7750 (partial_die_info::fixup): Likewise.
7751 (determine_prefix): Likewise.
7752 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7753
fb1eb2f9
SM
77542019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7755
7756 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7757 gdb_bfd_ref_ptr.
7758 <~dwo_file>: Remove call to gdb_bfd_unref.
7759 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7760 gdb_bfd_ref_ptr::get.
7761
51ac9db5
SM
77622019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7763
7764 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7765 type to htab_up.
7766 * dwarf2read.c (struct dwo_file): Initialize fields.
7767 <~dwo_file>: New.
7768 (free_dwo_file): Remove, move content to ~dwo_file.
7769 (struct dwo_file_deleter): Remove.
7770 (dwo_file_up>: Remove custom deleter.
7771 (free_dwo_files): Remove.
7772 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7773 dwo_files.
7774 (process_skeletonless_type_units): Call unique_ptr::get.
7775 (allocate_dwo_file_hash_table): Add deleter to created hash
7776 table. Change return type to htab_up.
7777 (lookup_dwo_file_slot): Don't memset dwo_file, call
7778 unique_ptr::get.
7779 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7780 (create_dwo_unit_in_dwp_v2): Likewise.
7781 (open_and_init_dwo_file): Likewise.
7782 (free_dwo_file_from_slot): Remove.
7783
dc4ccb6f
SM
77842019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7785
7786 * dwarf2read.h (struct dwarf2_section_info) <readin,
7787 is_virtual>: Change type to bool.
7788 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7789 true instead of 1.
7790
e6a1c5cb
TT
77912019-06-19 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-data.h (tui_init_content_element): Don't declare.
7794
6f6ffbeb
TT
77952019-06-19 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-data.h (tui_init_win_info): Don't declare.
7798
f23f598e
TV
77992019-06-19 Tom de Vries <tdevries@suse.de>
7800
7801 * dwarf2read.h (abstract_to_concrete): Change type to
7802 std::unordered_map<sect_offset, std::vector<sect_offset>,
7803 gdb::hash_enum<sect_offset>>.
7804
680e1bee
TT
78052019-06-19 Tom Tromey <tromey@adacore.com>
7806
7807 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7808 EVAL_AVOID_SIDE_EFFECTS specially.
7809
dcf37923
TT
78102019-06-19 Tom Tromey <tromey@adacore.com>
7811
7812 * source-cache.c (highlighter): New global.
7813 (source_cache::get_source_lines): Create a highlighter on demand.
7814
494986d5
AB
78152019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * defs.h (deprecated_interactive_hook): Delete declaration.
7818 * interps.c (clear_interpreter_hooks): Remove use of
7819 deprecated_interactive_hook.
7820 * top.c (deprecated_interactive_hook): Delete definition.
7821 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7822
3360b6e7
TV
78232019-06-18 Tom de Vries <tdevries@suse.de>
7824
7825 PR gdb/24515
7826 * dwarf2read.h (abstract_to_concrete): Change type from
7827 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7828 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7829 * dwarf2read.c (read_variable): Update.
7830 (dwarf2_fetch_die_loc_sect_off): Update.
7831
310b3441
TV
78322019-06-17 Tom de Vries <tdevries@suse.de>
7833
7834 PR gdb/24617
7835 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7836 accessing parent[parent_len - 1].
7837
ba9777be
PP
78382019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7839
7840 PR gdb/24364
7841 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7842 call dtrace_process_dof with NULL dof.
7843
2b9f6e89
TV
78442019-06-16 Tom de Vries <tdevries@suse.de>
7845
7846 PR gdb/24445
7847 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7848
431b3ead
TT
78492019-06-16 Tom Tromey <tom@tromey.com>
7850
7851 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7852 (make_all_visible): Use address of member.
7853
d04b44a1
TT
78542019-06-16 Tom Tromey <tom@tromey.com>
7855
7856 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7857 (tui_free_window, free_content, free_content_elements): Remove
7858 unnecessary cast.
7859 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7860 cast.
7861 * tui/tui-regs.c (tui_show_register_group)
7862 (tui_display_registers_from, tui_display_reg_element_at_line):
7863 Remove unnecessary cast.
7864
bf5142e7
AB
78652019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7866
7867 * linux-nat.c (normal_mask): Delete.
7868 (_initialize_linux_nat): Don't initialise normal_mask.
7869
c4973306
SM
78702019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7871
7872 PR gdb/24445
7873 * dwarf-index-write.h (write_psymtabs_to_index): Add
7874 dwz_basename parameter.
7875 * dwarf-index-write.c (write_gdbindex): Move file writing to
7876 write_gdbindex_1. Change return type void.
7877 (assert_file_size): Move up, remove filename parameter.
7878 (write_gdbindex_1): New function.
7879 (write_debug_names): Change return type to void, call
7880 assert_file_size.
7881 (struct index_wip_file): New struct.
7882 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7883 file logic to index_wip_file. Write index for dwz file if
7884 needed.
7885 (save_gdb_index_command): Pass basename of dwz file, if present.
7886 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7887 build-id of dwz file, if present.
7888 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7889 (dwarf2_get_dwz_file): Likewise.
7890 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7891 (dwarf2_get_dwz_file): Likewise.
7892
395f9c91
TT
78932019-06-16 Tom Tromey <tom@tromey.com>
7894
7895 * coffread.c (process_coff_symbol): Use xstrdup.
7896 * value.c (create_internalvar): Use xstrdup.
7897
cafb3438
TT
78982019-06-16 Tom Tromey <tom@tromey.com>
7899
7900 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7901 * breakpoint.c (stopin_command, stopat_command)
7902 (until_break_command, decode_location_default): Remove unnecessary
7903 cast.
7904 * utils.c (subset_compare): Remove unnecessary cast.
7905 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7906 cast.
7907 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7908 cast.
7909 * infcmd.c (path_command): Remove unnecessary cast.
7910 * coffread.c (decode_type): Remove unnecessary cast.
7911 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7912 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7913 * tui/tui-stack.c (tui_show_locator_content)
7914 (tui_show_frame_info): Remove unnecessary cast.
7915 * tui/tui-win.c (tui_scroll_forward_command)
7916 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7917 (parse_scrolling_args): Remove unnecessary cast.
7918 * tui/tui-data.c (init_win_info, tui_del_window)
7919 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7920 (free_content_elements): Remove unnecessary cast.
7921 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7922 unnecessary cast.
7923 * tui/tui-source.c (tui_set_source_content)
7924 (tui_vertical_source_scroll): Remove unnecessary cast.
7925 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7926 cast.
7927 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7928 * tui/tui-regs.c (tui_display_registers_from)
7929 (tui_display_register): Remove unnecessary cast.
7930 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7931 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7932 (make_visible): Remove unnecessary cast.
7933 * tui/tui-winsource.c (tui_erase_source_content)
7934 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7935 unnecessary cast.
7936 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7937 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7938 * stabsread.c (read_type, read_array_type, read_range_type):
7939 Remove unnecessary cast.
7940 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7941 (parse_symbol, parse_type, upgrade_type, parse_external)
7942 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7943 unnecessary cast.
7944 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7945
730ead81
TT
79462019-06-16 Tom Tromey <tom@tromey.com>
7947
7948 * tui/tui-data.c (tui_alloc_generic_win_info)
7949 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7950 checks.
7951
584a927c
AB
79522019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7953 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * f-typeprint.c (f_print_type): Don't return early for not
7956 associated or not allocated types.
7957 (f_type_print_varspec_suffix): Add print_rank parameter and print
7958 ranks of array types in case they dangling.
7959 (f_type_print_base): Add print_rank parameter.
7960
30056ea0
AB
79612019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7962
7963 * NEWS: Mention new MI commands.
7964 * break-catch-throw.c (enum exception_event_kind): Move to
7965 breakpoint.h.
7966 (print_mention_exception_catchpoint): Output text as a single
7967 message.
7968 (catch_exception_command_1): Rename to...
7969 (catch_exception_event): ...this, make non-static, update header
7970 command, and change some parameter types.
7971 (catch_catch_command): Update for changes to
7972 catch_exception_command_1.
7973 (catch_throw_command): Likewise.
7974 (catch_rethrow_command): Likewise.
7975 * breakpoint.c (enum exception_event_kind): Delete.
7976 * breakpoint.h (enum exception_event_kind): Moved here from
7977 break-catch-throw.c.
7978 (catch_exception_event): Declare.
7979 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7980 (mi_cmd_catch_throw): New function.
7981 (mi_cmd_catch_rethrow): New function.
7982 (mi_cmd_catch_catch): New function.
7983 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7984 'catch-catch' entries.
7985 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7986 (mi_cmd_catch_rethrow): Declare.
7987 (mi_cmd_catch_catch): Declare.
7988
ec8e2b6d
AB
79892019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7990
7991 * annotate.c (annotate_source_line): Change return type to void,
7992 update implementation to match.
7993 * annotate.h (annotate_source_line): Change return type to void,
7994 update header comment.
7995 * stack.c (print_frame_info): Don't change what frame information
7996 is printed based on whether annotations are on or not.
7997
0d3abd8c
AB
79982019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8001 (annotate_source): Make static.
8002 (annotate_source_line): Moved from source.c and renamed from
8003 identify_source_line. Update the return type.
8004 * annotate.h (annotate_source): Delete declaration.
8005 (annotate_source_line): Declaration moved from source.h, and
8006 renamed from identify_source_line. Return type updated.
8007 * source.c (identify_source_line): Moved to annotate.c and renamed
8008 to annotate_source_line.
8009 (info_line_command): Remove check of annotation_level.
8010 * source.h (identify_source_line): Move declaration to annotate.h
8011 and rename to annotate_source_line.
8012 * stack.c: Add 'annotate.h' include.
8013 (print_frame_info): Remove check of annotation_level before
8014 calling annotate_source_line.
8015
00df30ae
AB
80162019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8017
8018 * source-cache.c (source_cache::get_plain_source_lines): Use
8019 open_source_file_with_line_charpos instead of just
8020 open_source_file, remove call to find_source_lines.
8021 (source_cache::get_source_lines): Likewise.
8022 * source.c (find_source_lines): Make static.
8023 (get_filename_and_charpos): Renamed into...
8024 (open_source_file_with_line_charpos): ..this along with changes to
8025 return a scoped_fd, and some other minor clean ups.
8026 (identify_source_line): Use open_source_file_with_line_charpos.
8027 (search_command_helper): Use open_source_file_with_line_charpos
8028 instead of just open_source_file, remove call to
8029 find_source_lines.
8030 * source.h (open_source_file_with_line_charpos): Declare new
8031 function.
8032 (find_source_lines): Delete declaration.
8033
afda45a2
AB
80342019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * source.c (get_filename_and_charpos): Remove fullname
8037 parameter.
8038 (identify_source_line): Update call to get_filename_and_charpos.
8039
0735b091
TT
80402019-06-14 Tom Tromey <tromey@adacore.com>
8041
8042 PR gdb/24502:
8043 * ui-style.h (skip_ansi_escape): Update comment.
8044 * ui-file.h (class no_terminal_escape_file): New class.
8045 * ui-file.c (no_terminal_escape_file::write)
8046 (no_terminal_escape_file::puts): New methods.
8047 * cli/cli-logging.c (handle_redirections): Use
8048 no_terminal_escape_file.
8049
52ce35e2
TT
80502019-06-14 Tom Tromey <tromey@adacore.com>
8051
8052 * NEWS: Move convenience variable news above Python news.
8053
73cc7272
TT
80542019-06-14 Tom Tromey <tom@tromey.com>
8055
8056 * gnulib: Move directory to top-level.
8057 * configure.ac: Don't configure gnulib.
8058 * configure: Rebuild.
8059 * common/common-defs.h: Use new path to gnulib.
8060 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8061 (GNULIB_H): Remove.
8062 (INCGNU): Look in new gnulib location.
8063 (HFILES_NO_SRCDIR): Remove gnulib files.
8064 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8065 (generated_files): Remove GNULIB_H.
8066 ($(LIBGNU), all-lib): Remove targets.
8067 (distclean): Don't mention GNULIB_BUILDDIR.
8068 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8069
f5686554
TT
80702019-06-14 Tom Tromey <tromey@adacore.com>
8071
8072 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8073 Warn if symbol file does not provide any symbols.
8074
a0c1ffed
TT
80752019-06-14 Tom Tromey <tromey@adacore.com>
8076
8077 * source.c (find_and_open_source): Respect basenames_may_differ.
8078
7c39e397
AB
80792019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8080
8081 * annotate.c (annotate_breakpoints_invalid): Make use of
8082 scoped_restore_terminal_state.
8083 (annotate_frames_invalid): Likewise.
8084
f411722c
TT
80852019-06-14 Tom Tromey <tromey@adacore.com>
8086
8087 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8088 allow assignment to an internalvar.
8089
4268ec18
TT
80902019-06-14 Tom Tromey <tromey@adacore.com>
8091
8092 * ada-lex.l: Allow "_" in attribute names.
8093
abdb711e
TT
80942019-06-14 Tom Tromey <tromey@adacore.com>
8095
8096 PR gdb/24653:
8097 * regcache.c (registers_changed): Don't call alloca.
8098 * top.c (execute_command): Don't call alloca.
8099
4c048731
PA
81002019-06-13 Pedro Alves <palves@redhat.com>
8101
8102 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8103 'expression'. When parsing an expression, error out if there's
8104 junk after "unlimited".
8105 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8106 (do_set_command): Adjust calls to is_unlimited_literal.
8107
66eb1ed3
PA
81082019-06-13 Pedro Alves <palves@redhat.com>
8109
8110 * compile/compile.c (make_compile_options_def_group): Add braces
8111 around array_view initializer.
8112 * thread.c (make_thread_apply_all_options_def_group)
8113 (make_thread_apply_all_options_def_group): Likewise.
8114
3345721a
PA
81152019-06-13 Pedro Alves <palves@redhat.com>
8116
8117 * NEWS (New commands): Mention "maint test-options
8118 require-delimiter", "maint test-options unknown-is-error", "maint
8119 test-options unknown-is-operand" and "maint show
8120 test-options-completion-result".
8121 (New command options, command completion): New section.
8122 (Completion improvements): New section.
8123 Mention that you can abbreviate "unlimited".
8124
6206060d
PA
81252019-06-13 Pedro Alves <palves@redhat.com>
8126
8127 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8128 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8129 * unittests/cli-utils-selftests.c (test_parse_flags)
8130 (test_parse_flags_qcs): Delete.
8131 (test_cli_utils): Don't call deleted functions.
8132
6665660a
PA
81332019-06-13 Pedro Alves <palves@redhat.com>
8134
8135 * thread.c: Include "cli/cli-option.h".
8136 (tp_array_compar_ascending): Global.
8137 (tp_array_compar): Delete function.
8138 (tp_array_compar_ascending, tp_array_compar_descending): New
8139 functions.
8140 (ascending_option_def, qcs_flag_option_def)
8141 (thr_qcs_flags_option_defs)
8142 (make_thread_apply_all_options_def_group)
8143 (make_thread_apply_options_def_group): New.
8144 (thread_apply_all_command): Use gdb::option::process_options.
8145 (thread_apply_command_completer)
8146 (thread_apply_all_command_completer): New.
8147 (thread_apply_command): Use gdb::option::process_options.
8148 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8149 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8150 to generate help text of "thread apply". Adjust "taas"'s help.
8151 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8152 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8153
f7e13587
PA
81542019-06-13 Pedro Alves <palves@redhat.com>
8155
8156 * thread.c (thread_apply_command): Check for invalid TID with
8157 isdigit instead of !isalpha.
8158
5d707134
PA
81592019-06-13 Pedro Alves <palves@redhat.com>
8160
8161 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8162 (validate_flags_qcs): New.
8163 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8164 (validate_flags_qcs): Declare.
8165 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8166 (make_frame_apply_options_def_group): New.
8167 (frame_apply_command_count): Process options with
8168 gdb::option::process_options.
8169 (frame_apply_completer): New.
8170 (frame_apply_level_completer, frame_apply_all_completer)
8171 (frame_apply_completer): New.
8172 (_initialize_stack): Update help of "frame apply", "frame apply
8173 level", "frame apply all" and "faas" to mention supported options
8174 and install command completers.
8175 * stack.h (frame_apply_all_completer): Declare.
8176 * thread.c: Include "stack.h".
8177 (tfaas_command): Add "--".
8178 (_initialize_thread): Update help "tfaas" to mention supported
8179 options and install command completer.
8180
272d4594
PA
81812019-06-13 Pedro Alves <palves@redhat.com>
8182
8183 * completer.c (complete_nested_command_line): New.
8184 (gdb_completion_word_break_characters_throw): Add assertion.
8185 * completer.h (complete_nested_command_line): Declare.
8186
90a1ef87
PA
81872019-06-13 Pedro Alves <palves@redhat.com>
8188
8189 * stack.c (parse_backtrace_qualifiers): New.
8190 (backtrace_command): Use it.
8191 (backtrace_command_completer): Complete on qualifiers.
8192
d4c16835
PA
81932019-06-13 Pedro Alves <palves@redhat.com>
8194
8195 * frame.c: Include "cli/cli-option.h.
8196 (user_set_backtrace_options): New.
8197 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8198 Delete.
8199 (get_prev_frame): Adjust.
8200 (boolean_option_def, uinteger_option_def)
8201 (set_backtrace_option_defs): New.
8202 (_initialize_frame): Adjust and use
8203 gdb::option::add_setshow_cmds_for_options to install "set
8204 backtrace past-main" and "set backtrace past-entry".
8205 * frame.h: Include "cli/cli-option.h".
8206 (struct frame_print_options): Forward declare.
8207 (print_frame_arguments_all, print_frame_arguments_scalars)
8208 (print_frame_arguments_none): Declare.
8209 (print_entry_values): Delete declaration.
8210 (struct frame_print_options, user_frame_print_options): New.
8211 (struct set_backtrace_options): New.
8212 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8213 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8214 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8215 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8216 (list_args_or_locals): Add frame_print_options parameter.
8217 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8218 * python/py-framefilter.c (enumerate_args): Pass down
8219 USER_FRAME_PRINT_OPTIONS.
8220 * stack.c: Include "cli/cli-option.h".
8221 (print_frame_arguments_all, print_frame_arguments_scalars)
8222 (print_frame_arguments_none): Declare.
8223 (print_raw_frame_arguments, print_entry_values): Delete.
8224 (user_frame_print_options): New.
8225 (boolean_option_def, enum_option_def, frame_print_option_defs):
8226 New.
8227 (struct backtrace_cmd_options): New.
8228 (bt_flag_option_def): New.
8229 (backtrace_command_option_defs): New.
8230 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8231 (print_frame_arg, read_frame_arg, print_frame_args)
8232 (print_frame_info, print_frame): Add frame_print_options parameter
8233 and use it.
8234 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8235 (backtrace_command_1): Add frame_print_options and
8236 backtrace_cmd_options parameters and use them.
8237 (make_backtrace_options_def_group): New.
8238 (backtrace_command): Process command options with
8239 gdb::option::process_options.
8240 (backtrace_command_completer): New.
8241 (_initialize_stack): Extend "backtrace"'s help to mention
8242 supported options. Install completer for "backtrace".
8243 Install some settings commands with add_setshow_cmds_for_options.
8244
2daf894e
PA
82452019-06-13 Pedro Alves <palves@redhat.com>
8246
8247 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8248 and that "set/show print raw frame-arguments" are now deprecated.
8249
8250 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8251 command.
8252 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8253 * stack.c (_initialize_stack): Install "set/show print
8254 raw-frame-arguments", and deprecate "set/show print raw
8255 frame-arguments".
8256 * valprint.c (_initialize_valprint): Deprecate "set/show print
8257 raw".
8258
e6ed716c
PA
82592019-06-13 Pedro Alves <palves@redhat.com>
8260
8261 * compile/compile.c (struct compile_options): New.
8262 (compile_flag_option_def, compile_command_option_defs)
8263 (make_compile_options_def_group): New.
8264 (compile_file_command): Handle options with
8265 gdb::option::process_options.
8266 (compile_file_command_completer): New function.
8267 (compile_code_command): Handle options with
8268 gdb::option::process_options.
8269 (compile_code_command_completer): New function.
8270 (_initialize_compiler): Install completers for "compile code" and
8271 "compile file". Mention available options in "compile code" and
8272 "compile code"'s help.
8273 * completer.c (advance_to_completion_word): New, factored out from
8274 ...
8275 (advance_to_expression_complete_word_point): ... this.
8276 (advance_to_filename_complete_word_point): New.
8277 * completer.h (advance_to_filename_complete_word_point): New
8278 declaration.
8279
7d8062de
PA
82802019-06-13 Pedro Alves <palves@redhat.com>
8281
8282 * compile/compile.c: Include "cli/cli-option.h".
8283 (compile_print_value): Scope data pointer is now a
8284 value_print_options pointer; adjust.
8285 (compile_print_command): Process options. Scope data pointer is
8286 now a value_print_options pointer; adjust.
8287 (_initialize_compile): Update "compile print"'s help to include
8288 supported options. Install a completer for "compile print".
8289 * cp-valprint.c (show_vtblprint, show_objectprint)
8290 (show_static_field_print): Delete.
8291 (_initialize_cp_valprint): Don't install "set print
8292 static-members", "set print vtbl", "set print object" here.
8293 * printcmd.c: Include "cli/cli-option.h" and
8294 "common/gdb_optional.h".
8295 (print_command_parse_format): Rework to fill in a
8296 value_print_options instead of a format_data.
8297 (print_value): Change parameter type from format_data pointer to
8298 value_print_options reference. Adjust.
8299 (print_command_1): Process options. Adjust to pass down a
8300 value_print_options.
8301 (print_command_completer): New.
8302 (_initialize_printcmd): Install print_command_completer as
8303 handle_brkchars completer for the "print" command. Update
8304 "print"'s help to include supported options.
8305 * valprint.c: Include "cli/cli-option.h".
8306 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8307 here from cp-valprint.c.
8308 (boolean_option_def, uinteger_option_def)
8309 (value_print_option_defs, make_value_print_options_def_group):
8310 New. Use gdb::option::add_setshow_cmds_for_options to install
8311 "set print elements", "set print null-stop", "set print repeats",
8312 "set print pretty", "set print union", "set print array", "set
8313 print address", "set print symbol", "set print array-indexes".
8314 * valprint.h: Include <string> and "cli/cli-option.h".
8315 (make_value_print_options_def_group): Declare.
8316 (print_value): Change parameter type from format_data pointer to
8317 value_print_options reference.
8318 (print_command_completer): Declare.
8319
9d0faba9
PA
83202019-06-13 Pedro Alves <palves@redhat.com>
8321
8322 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8323 (COMMON_SFILES): Add maint-test-settings.c.
8324 * cli/cli-decode.c (boolean_enums): New global, factored out from
8325 ...
8326 (add_setshow_boolean_cmd): ... here.
8327 * cli/cli-decode.h (boolean_enums): Declare.
8328 * cli/cli-option.c: New file.
8329 * cli/cli-option.h: New file.
8330 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8331 factored out from ...
8332 (parse_cli_boolean_value(const char *)): ... this.
8333 (is_unlimited_literal): Change parameter type to pointer to
8334 pointer. Adjust and advance ARG pointer.
8335 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8336 (parse_cli_var_enum): New, factored out from ...
8337 (do_set_command): ... this. Adjust.
8338 * cli/cli-setshow.h (parse_cli_boolean_value)
8339 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8340 (parse_cli_var_enum): Declare.
8341 * cli/cli-utils.c: Include "cli/cli-option.h".
8342 (get_ulongest): New.
8343 * cli/cli-utils.h (get_ulongest): Declare.
8344 (check_for_argument): New overloads.
8345 * maint-test-options.c: New file.
8346
2c722807
PA
83472019-06-13 Pedro Alves <palves@redhat.com>
8348
8349 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8350 parse a range if "-" is at the end of the string.
8351
dee7b4c8
PA
83522019-06-13 Pedro Alves <palves@redhat.com>
8353
8354 * cli/cli-setshow.c (parse_auto_binary_operation)
8355 (parse_cli_boolean_value): Don't allow "o".
8356
dca0f6c0
PA
83572019-06-13 Pedro Alves <palves@redhat.com>
8358
8359 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8360 * NEWS: Mention maint test-settings KIND.
8361 * maint-test-settings.c: New file.
8362
597bf39d
PA
83632019-06-13 Pedro Alves <palves@redhat.com>
8364
8365 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8366 completer.
8367 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8368 "set" completers.
8369
48c410fb
PA
83702019-06-13 Pedro Alves <palves@redhat.com>
8371
8372 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8373 after item.
8374
93bcb043
PA
83752019-06-13 Pedro Alves <palves@redhat.com>
8376
8377 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8378
cbba3ecd
PA
83792019-06-13 Pedro Alves <palves@redhat.com>
8380
8381 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8382 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8383 call.
8384 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8385 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8386 calls.
8387 (check_for_argument): Skip spaces after argument.
8388
b9a3f842
PA
83892019-06-13 Pedro Alves <palves@redhat.com>
8390
8391 * thread.c (thread_apply_command): Adjust TID parsing.
8392 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8393 detected before end of string.
8394 (tid_is_in_list): Error out if LIST is invalid.
8395
3844e605
PA
83962019-06-13 Pedro Alves <palves@redhat.com>
8397
8398 * completer.c (complete_line_internal_1): Rewind completion word
8399 point.
8400 (completion_tracker::advance_custom_word_point_by): Change
8401 parameter type to int.
8402 * completer.h (completion_tracker::advance_custom_word_point_by):
8403 Likewise.
8404
00b56dbe
PA
84052019-06-13 Pedro Alves <palves@redhat.com>
8406
8407 * completer.c (advance_to_completion_word): Handle delimiters.
8408
d106773e
PA
84092019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8410
8411 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8412
08f10e02
TT
84132019-06-11 Tom Tromey <tom@tromey.com>
8414
8415 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8416 (xmalloc_failed): Move to alloc.c.
8417 * alloc.c: New file.
8418 * Makefile.in (COMMON_SFILES): Add alloc.c.
8419
1c7fe951
TT
84202019-06-11 Tom Tromey <tom@tromey.com>
8421
8422 * nat/linux-waitpid.c: Don't include server.h.
8423 (linux_debug): Remove.
8424 (my_waitpid): Update.
8425
89549d7f
TT
84262019-06-11 Tom Tromey <tromey@adacore.com>
8427
8428 * infcall.c (_initialize_infcall): Remove trailing newline from
8429 help.
8430 * user-regs.c (_initialize_user_regs): Remove trailing newline
8431 from help.
8432 * typeprint.c (_initialize_typeprint): Remove trailing newline
8433 from help.
8434 * reverse.c (_initialize_reverse): Remove trailing newlines from
8435 help.
8436 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8437 from help.
8438 * language.c (add_set_language_command): Remove trailing newline
8439 from help.
8440 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8441 help.
8442 * disasm.c (_initialize_disasm): Remove trailing newline from
8443 help.
8444 * top.c (init_main): Remove trailing newline from help.
8445 * interps.c (_initialize_interpreter): Remove trailing newline
8446 from help.
8447 * btrace.c (_initialize_btrace): Remove trailing newlines from
8448 help.
8449 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8450 from help.
8451 * python/python.c (_initialize_python): Remove trailing newline
8452 from help.
8453 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8454 help.
8455 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8456 from help. Reformat some text.
8457 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8458 from help.
8459 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8460 newline from help.
8461
86108c13
TT
84622019-06-11 Tom Tromey <tromey@adacore.com>
8463
8464 * darwin-nat.c (darwin_decode_exception_message)
8465 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8466
a7067863
AB
84672019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8468
8469 * valops.c (value_slice): Check for not allocated or not
8470 associated values.
8471
9ab08412
TV
84722019-06-10 Tom de Vries <tdevries@suse.de>
8473
8474 PR gdb/24618
8475 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8476 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8477 invalid.
8478
f19e22e9
TV
84792019-06-10 Tom de Vries <tdevries@suse.de>
8480
8481 PR gdb/24611
8482 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8483 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8484
e99f9db0
TV
84852019-06-10 Tom de Vries <tdevries@suse.de>
8486
8487 PR symtab/24545
8488 * symtab.c (struct demangled_name_entry): Add language field.
8489 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8490 static minimal symbol". Set and use language field.
8491
9bf7038b
TT
84922019-06-10 Tom Tromey <tromey@adacore.com>
8493
8494 * ada-lang.c (_initialize_ada_language): Update help text.
8495
422186a9
TT
84962019-06-10 Tom Tromey <tromey@adacore.com>
8497
8498 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8499 with a newline.
8500 * guile/guile.c (handle_boot_error): Don't end warning with a
8501 newline.
8502 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8503 warning with a newline.
8504 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8505 newline.
8506 (s12z_frame_cache): Likewise.
8507 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8508 a newline.
8509 * solib-svr4.c (disable_probes_interface): Don't end warning with
8510 a newline.
8511 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8512 newline.
8513 * python/python.c (do_finish_initialization): Don't end warning
8514 with a newline.
8515
25ce02ee
TT
85162019-06-10 Tom Tromey <tom@tromey.com>
8517
8518 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8519 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8520 gdbpy_enter.
8521
caa429d8
TT
85222019-06-10 Tom Tromey <tromey@adacore.com>
8523
8524 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8525 data.
8526 (elf_new_init): Don't call stabsread_new_init.
8527 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8528 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8529 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8530
81873cc8
TV
85312019-06-10 Tom de Vries <tdevries@suse.de>
8532
8533 PR symtab/16264
8534 PR symtab/24517
8535 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8536
4fa0265e
РИ
85372019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8538
8539 * source.c (find_and_open_source): Also rewrite relative file
8540 names.
8541
1a3da2cd
AB
85422019-04-26 Amos Bird <amosbird@gmail.com>
8543
8544 * annotate.c (annotate_thread_exited): Add "thread-exited"
8545 annotation.
8546
3847a7bf
TT
85472019-06-06 Tom Tromey <tromey@adacore.com>
8548
8549 * maint.h (class scoped_command_stats): Use
8550 DISABLE_COPY_AND_ASSIGN.
8551 <print_time>: New method.
8552 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8553 print_time.
8554 (scoped_command_stats::print_time): New method.
8555
312617a3
AB
85562019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8557
8558 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8559 instructions of lengths 6 or 8 bytes.
8560
b02f78f9
PA
85612019-06-04 Pedro Alves <palves@redhat.com>
8562
8563 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8564
8565 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8566 * breakpoint.c (condition_completer): Likewise.
8567 * cli/cli-dump.c (scan_expression): Likewise.
8568 * common/filestuff.c (mkdir_recursive): Likewise.
8569 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8570 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8571 (gdb_abspath): Likewise.
8572 * compile/compile-cplus-types.c
8573 (compile_cplus_instance::decl_name): Likewise.
8574 * completer.c (complete_explicit_location):
8575 (signal_completer, reg_or_group_completer_1): Likewise.
8576 * cp-support.c (cp_remove_params_if_any): Likewise.
8577 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8578 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8579 * infcmd.c (strip_bg_char): Likewise.
8580 * linespec.c (copy_token_string): Likewise.
8581 * mi/mi-main.c (output_cores): Likewise.
8582 * psymtab.c (psymtab_search_name):
8583 * symfile.c (test_set_ext_lang_command): Likewise.
8584 * target.c (target_fileio_read_stralloc): Likewise.
8585 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8586 * value.c (complete_internalvar): Likewise.
8587
e1f2e1a2
CB
85882019-06-04 Christian Biesinger <cbiesinger@google.com>
8589
8590 Add objfile property to gdb.Type.
d3238f7d
PA
8591 * NEWS: Mention Python API addition.
8592 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8593
e664d728
PW
85942019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8595
8596 * NEWS: Mention the new set|show style [title|highlight].
8597 Mention changes to "show style", "help" and "apropos".
8598
66d8c862
PW
85992019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8600
8601 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8602 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8603 instead of print_help_for_command.
8604 (print_doc_of_command): New function.
8605 (help_list): Add 'apropos -v word' suggestion.
8606 (print_help_for_command): Style the command name using title style.
8607 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8608 (_initialize_cli_cmds): Describe -v in apropos_command help.
8609
9303eb2f
PW
86102019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8611
8612 * cli/cli-style.h (cli_style_option): Add name in constructor,
8613 add m_name class member, add constructor with intensity,
8614 add name class function.
8615 (cli_style_option::add_setshow_commands): Remove name argument.
8616 (highlight_style, title_style): New styles.
8617 * cli/cli-style.c (do_show): New function that shows a style
8618 characteristic styling the style name with itself.
8619 (set_style_name): New function.
8620 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8621 Update all callers according to the changes in cli/cli-style.h.
8622 * utils.h (fputs_highlighted): New function.
8623 * utils.c (fputs_highlighted): Likewise.
8624
e2c52041
PW
86252019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8626
8627 * NEWS: Mention new pipe command and new convenience variables.
8628
947d3946
PW
86292019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8630
8631 * cli/cli-cmds.c (pipe_command): New function.
8632 (_initialize_cli_cmds): Call add_com for pipe_command.
8633 Define | as an alias for pipe.
8634 (exit_status_set_internal_vars): New function.
8635 (shell_escape): Call exit_status_set_internal_vars.
8636 cli/cli-decode.c (find_command_name_length): Recognize | as
8637 a single character command.
8638
b8fd0918
PW
86392019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8640
8641 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8642 top.c (execute_command_to_ui_file): New function, mostly a copy
8643 of execute_command_to_string.
8644 (execute_command_to_string): Implement by calling
8645 execute_command_to_ui_file.
8646
68bb5386
PW
86472019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8648
8649 * top.h (saved_command_line): Remove declaration.
8650 * top.c (previous_saved_command_line, previous_repeat_arguments):
8651 New variables.
8652 (saved_command_line): Make static, define together with other
8653 'repeat variables'.
8654 (dont_repeat): Clear repeat_arguments.
8655 (repeat_previous, get_saved_command_line, save_command_line):
8656 New functions.
8657 (gdb_init): Initialize saved_command_line
8658 and previous_saved_command_line.
8659 * main.c (captured_main_1): Remove saved_command_line initialization.
8660 * event-top.c (handle_line_of_input): Update to use
8661 the new 'repeat' related functions instead of direct access to
8662 saved_command_line.
8663 * command.h (repeat_previous, get_saved_command_line,
8664 save_command_line): New declarations.
8665 (dont_repeat): Add comment.
8666
bfcdb852
TT
86672019-05-30 Tom Tromey <tromey@adacore.com>
8668
8669 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8670 Fix comment.
8671 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8672
0ef209f2
JV
86732019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8674
8675 PR cli/24587
8676 * completer.c (complete): Initialize variable word.
8677
955b06fa
SDJ
86782019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8679
8680 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8681 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8682 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8683 'body' is NULL to the outter 'if', protecting the '!is_define'
8684 situation as well.
8685
fa9c3fa0
TT
86862019-05-29 Tom Tromey <tromey@adacore.com>
8687
8688 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8689 (dwarf_unknown): New function.
8690 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8691 (dwarf_type_encoding_name): Use dwarf_unknown.
8692
4330d61d
TT
86932019-05-29 Tom Tromey <tromey@adacore.com>
8694
8695 PR c++/20020:
8696 * cp-valprint.c (cp_print_value_fields): Call
8697 cp_print_static_field inside "try".
8698
33a6bc35
TT
86992019-05-29 Tom Tromey <tromey@adacore.com>
8700
8701 * inflow.c (struct terminal_info): Add default operator=.
8702 * configure: Rebuild.
8703 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8704 -Wdeprecated-copy-dtor, -Wredundant-move.
8705
000439d5
TT
87062019-05-29 Tom Tromey <tromey@adacore.com>
8707
8708 * NEWS: Add entry.
8709 * infcmd.c (print_return_value_1): Handle finish_print
8710 option.
8711 (show_print_finish): New function.
8712 (_initialize_infcmd): Add "set/show print finish" commands.
8713 * valprint.c (user_print_options): Initialize new member.
8714 * valprint.h (struct value_print_options) <finish_print>: New
8715 member.
8716
c0e70c62
TT
87172019-05-28 Tom Tromey <tromey@adacore.com>
8718
8719 * ada-lang.c (ada_remove_Xbn_suffix)
8720 (find_old_style_renaming_symbol)
8721 (parse_old_style_renaming): Remove.
8722 (ada_find_renaming_symbol): Don't call
8723 find_old_style_renaming_symbol.
8724 (ada_is_renaming_symbol): Rename from
8725 ada_find_renaming_symbol. Remove "block" parameter. Return
8726 bool. Now static.
8727 (ada_read_var_value): Update and simplify.
8728 * ada-exp.y (write_var_or_type): Remove old code.
8729
766f8836
AH
87302019-05-28 Alan Hayward <alan.hayward@arm.com>
8731
68255adc 8732 PR gdb/25010
766f8836
AH
8733 * event-top.c: Remove include comment.
8734 * inflow.c (class scoped_ignore_sigttou): Move from here...
8735 * inflow.h (class scoped_ignore_sigttou): ...to here.
8736 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8737 * top.c: Remove include comment.
8738
eb41253a
TT
87392019-05-27 Tom Tromey <tom@tromey.com>
8740
8741 * NEWS: Fix typo.
8742
4ca51187
TT
87432019-05-22 Tom Tromey <tromey@adacore.com>
8744
8745 * target.c (target_follow_exec): Constify parameter.
8746 * target-delegates.c: Rebuild.
8747 * remote.c (remote_target::follow_exec): Constify parameter.
8748 * infrun.c (follow_exec): Constify parameter.
8749 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8750 (target_follow_exec): Likewise.
8751
8fca4da0
AH
87522019-05-22 Alan Hayward <alan.hayward@arm.com>
8753
8754 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8755 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8756
b7060614
AH
87572019-05-22 Alan Hayward <alan.hayward@arm.com>
8758
8759 * NEWS: Add debugredirect and testsuite sections.
8760
0a5954bd
SC
87612019-05-22 Simon Cook <simon.cook@embecosm.com>
8762
8763 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8764 target descriptions using exclusively floating point register name
8765 aliases.
8766
dc42e902
AB
87672019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 PR gdb/18644:
8770 * f-lang.c (build_fortran_types): Handle the case where
8771 gdbarch_floatformat_for_type returns a nullptr.
8772
fb7806c7
TV
87732019-05-21 Tom de Vries <tdevries@suse.de>
8774
8775 PR cli/24587
8776 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8777
34d11c68
AB
87782019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8779
8780 PR gdb/18644:
8781 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8782 16-byte floats.
8783 * i386-tdep.c (i386_floatformat_for_type): Use
8784 floatformats_ia64_quad for the 16-byte floating point component
8785 within a fortran 32-byte complex number.
8786
122cf0f2
AB
87872019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8790 delete default constructor.
8791 (find_partial_die): Update to return const struct.
8792 (partial_die_parent_scope): Move variable declaration into scope
8793 of its use and change its type to auto.
8794 (guess_partial_die_structure_name): Likewise.
8795 (partial_die_info::fixup): Likewise.
8796
33d0e35a
TT
87972019-05-17 Tom Tromey <tromey@adacore.com>
8798
8799 * source.c (find_and_open_source): Remove cast.
8800
a45575b0
TT
88012019-05-17 Tom Tromey <tromey@adacore.com>
8802
8803 * annotate.c (annotate_source): Make "filename" const.
8804 * annotate.h (annotate_source): Use const.
8805
81f47ac2
AH
88062019-05-17 Alan Hayward <alan.hayward@arm.com>
8807
8808 * disasm.c (set_disassembler_options): Send errors to stderr.
8809
ca1285d1
AH
88102019-05-17 Alan Hayward <alan.hayward@arm.com>
8811
8812 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8813 (cli_interp_base::set_logging): Check debug_redirect.
8814 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8815 * cli/cli-logging.c (debug_redirect): Add static variable.
8816 (pop_output_files): Add default param.
8817 (handle_redirections): Print debug setting.
8818 (show_logging_command): Likewise.
8819 (_initialize_cli_logging): Add debugredirect command.
8820 * interps.c (current_interp_set_logging): Add debug_redirect
8821 parameter.
8822 * interps.h (set_logging): Add debug_redirect parameter.
8823 (current_interp_set_logging): Likewise.
8824 * mi/mi-common.h: Likewise.
8825 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8826
88272019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8828 Tom Tromey <tromey@adacore.com>
8829
8830 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8831 directly.
8832 * cli/cli-interp.h (make_logging_output): Remove declaration.
8833 * cli/cli-logging.c (make_logging_output): Remove function.
8834 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8835 directly.
8836 * ui-file.c (tee_file::tee_file): Remove bools.
8837 (tee_file::~tee_file): Remove deletes.
8838 * ui-file.h (tee_file): Remove bools.
8839
26648588
JV
88402019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8841
8842 * mi/mi-cmds.h (mi_cmd_complete): New function.
8843 * mi/mi-main.c (mi_cmd_complete): Likewise.
8844 * mi/mi-cmds.c: Define new MI command -complete.
8845 * NEWS: Mention new -complete command.
8846
6e035501
JV
88472019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8848
8849 * completer.h (complete): New function.
8850 * completer.c (complete): Likewise.
8851 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8852 function defined in completer.h.
8853
7d0e2ece
JV
88542019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8855
e79be6e5 8856 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8857
fb816e8b
TV
88582019-05-17 Tom de Vries <tdevries@suse.de>
8859
8860 PR gdb/24094
8861 * dwarf2read.c (struct cu_partial_die_info): New struct.
8862 (find_partial_die): Return cu_partial_die_info.
8863 (partial_die_parent_scope, guess_partial_die_structure_name)
8864 (partial_die_info::fixup): Handle new return type of find_partial_die.
8865
677052f2
SDJ
88662019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8867
a1726c38 8868 PR breakpoints/24541
677052f2
SDJ
8869 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8870 "std::string", simplifying the algorithm.
8871
f3da9116
SDJ
88722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8873
8874 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8875 (stap_static_probe_ops::get_probes): Likewise.
8876
f1bb75ab
SDJ
88772019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8878
8879 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8880 '-')" and "else if".
8881 (stap_parse_single_operand): Join checks for
8882 "gdbarch_stap_parse_special_token_p" and
8883 "gdbarch_stap_parse_special_token" in the same "if" statement.
8884 Invert check when verifying for operation on register
8885 displacement.
8886
3ca58cde
SDJ
88872019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8888
8889 * stap-probe.c (stap_get_opcode): Update comment.
8890 (stap_get_expected_argument_type): Likewise.
8891 (handle_stap_probe): Likewise.
8892
af2d9bee
SDJ
88932019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8894
8895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8896 return type to 'bool'. Adjust comment. Use 'bool' when
8897 appropriate.
8898 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8899 * stap-probe.c (stap_parse_argument_1): Likewise.
8900 (stap_is_operator): Likewise.
8901 (stap_is_generic_prefix): Likewise.
8902 (stap_is_register_prefix): Likewise.
8903 (stap_is_register_indirection_prefix): Likewise.
8904 (stap_is_integer_prefix): Likewise.
8905 (stap_generic_check_suffix): Likewise.
8906 (stap_check_integer_suffix): Likewise.
8907 (stap_check_register_suffix): Likewise.
8908 (stap_check_register_indirection_suffix): Likewise.
8909 (stap_parse_register_operand): Likewise.
8910 (stap_parse_single_operand): Likewise.
8911 (stap_parse_argument_1): Likewise.
8912 (stap_probe::get_argument_count): Likewise.
8913 (stap_is_operator): Likewise.
8914
61c9c421
TT
89152019-05-16 Tom Tromey <tromey@adacore.com>
8916
8917 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8918 keyword to foreach.
8919
9ddc1af1
SM
89202019-05-15 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * linux-thread-db.c (try_thread_db_load_1): Change return type
8923 to bool.
8924 (try_thread_db_load): Likewise.
8925 (try_thread_db_load_from_pdir_1): Likewise.
8926 (try_thread_db_load_from_pdir): Likewise.
8927 (try_thread_db_load_from_sdir): Likewise.
8928 (try_thread_db_load_from_dir): Likewise.
8929 (thread_db_load_search): Likewise.
8930 (has_libpthread): Likewise.
8931 (thread_db_load): Likewise.
8932
7bede828
SDJ
89332019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8934
8935 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8936 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8937 NULL, and complain/return if that's the case.
8938
c5358db4
JD
89392019-05-15 John Darrington <john@darrington.wattle.id.au>
8940
8941 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8942 (advance, posn, abstract_read_memory): New functions.
8943 [struct mem_read_abstraction]: New struct.
8944 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8945
c408a94f
TT
89462019-05-14 Tom Tromey <tromey@adacore.com>
8947
8948 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8949 value is not lval_memory.
8950
e7bd7fba
TT
89512019-05-14 Tom Tromey <tromey@adacore.com>
8952
8953 * solib.c (info_sharedlibrary_command): Style the file name.
8954
a6d0f249
AH
89552019-05-14 Alan Hayward <alan.hayward@arm.com>
8956
8957 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8958 (aarch64_vnv_type): Likewise.
8959 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8960 * common/tdesc.c: Likewise.
8961 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8962 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8963 * features/aarch64-fpu.xml: Add ieee half view.
8964 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8965 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8966 * gdbtypes.h (struct builtin_type): Likewise.
8967 (struct objfile_type): Likewise.
8968
66b8bb74
SM
89692019-05-12 Paul Naert <paul.naert@polymtl.ca>
8970
8971 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8972 typo.
8973 * location.h (string_to_event_location): Likewise.
8974
21c219fd
JB
89752019-05-11 Joel Brobecker <brobecker@adacore.com>
8976
8977 GDB 8.3 released.
8978
13674803
SM
89792019-05-10 Simon Marchi <simon.marchi@efficios.com>
8980
8981 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8982 New variable declaration.
8983 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8984 New variable.
8985 (print_one_breakpoint): Use ui_out::test_flags and new global
8986 variable to compute use_fixed_output.
8987 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8988 Remove.
8989 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8990 (mi_multi_location_breakpoint_output_fixed): Remove.
8991 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8992 new variable.
8993 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8994 fix_multi_location_breakpoint_output flag if version >= 3.
8995 * ui-out.h (enum ui_out_flag)
8996 <fix_multi_location_breakpoint_output>: New enumerator.
8997
a9eac7f9
SM
89982019-05-10 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9001
71bed2db
TT
90022019-05-10 Tom Tromey <tromey@adacore.com>
9003
9004 * ada-lang.c (catch_ada_completer): New function.
9005 (_initialize_ada_language): Use it.
9006
24c54127
TT
90072019-05-10 Tom Tromey <tromey@adacore.com>
9008
9009 * thread.c (print_thread_info): Make "requested_threads" const.
9010 * gdbthread.h (print_thread_info): Make "requested_threads"
9011 const.
9012 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9013 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9014
7a102139
TT
90152019-05-08 Tom Tromey <tom@tromey.com>
9016
9017 * gdbtypes.c (objfile_type_data): Change type.
9018 (objfile_type, _initialize_gdbtypes): Update.
9019
924d79e2
TT
90202019-05-08 Tom Tromey <tom@tromey.com>
9021
9022 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9023 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9024 (_initialize_dwarf2_frame): Update.
9025
4c58e337
TT
90262019-05-08 Tom Tromey <tom@tromey.com>
9027
9028 * objc-lang.c (objc_objfile_data): Change type.
9029 (find_methods): Update.
9030 (_initialize_objc_lang): Remove.
9031
d772d2ab
TT
90322019-05-08 Tom Tromey <tom@tromey.com>
9033
9034 * stabsread.c (rs6000_builtin_type_data): Change type.
9035 (rs6000_builtin_type, _initialize_stabsread): Update.
9036
d11d83f4
TT
90372019-05-08 Tom Tromey <tom@tromey.com>
9038
9039 * mips-tdep.c (mips_pdr_data): Remove.
9040 (_initialize_mips_tdep): Update.
9041
9a73f0ad
TT
90422019-05-08 Tom Tromey <tom@tromey.com>
9043
9044 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9045 (hppa_init_objfile_priv_data, read_unwind_info)
9046 (find_unwind_entry, _initialize_hppa_tdep): Update.
9047
8127a2fa
TT
90482019-05-08 Tom Tromey <tom@tromey.com>
9049
9050 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9051 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9052 on obstack.
9053 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9054
91d3055d
TT
90552019-05-08 Tom Tromey <tom@tromey.com>
9056
9057 * mdebugread.c (basic_type_data): Change type.
9058 (basic_type, _initialize_mdebugread): Update.
9059
31930bd3
TT
90602019-05-08 Tom Tromey <tom@tromey.com>
9061
9062 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9063
bdb3ed9e
TT
90642019-05-08 Tom Tromey <tom@tromey.com>
9065
9066 * nto-tdep.c (nto_inferior_data_reg): Change type.
9067 (nto_inferior_data): Update.
9068 (nto_inferior_data_cleanup, nto_new_inferior_data)
9069 (_initialize_nto_tdep): Remove.
9070 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9071
f37b313d
TT
90722019-05-08 Tom Tromey <tom@tromey.com>
9073
9074 * ada-lang.c (struct ada_inferior_data): Add initializers.
9075 (ada_inferior_data): Change type.
9076 (ada_inferior_data_cleanup): Remove.
9077 (get_ada_inferior_data, ada_inferior_exit)
9078 (struct ada_pspace_data): Add initializers, destructor.
9079 (ada_pspace_data_handle): Change type.
9080 (get_ada_pspace_data): Update.
9081 (ada_pspace_data_cleanup): Remove.
9082
24699405
TT
90832019-05-08 Tom Tromey <tom@tromey.com>
9084
9085 * coffread.c (struct coff_symfile_info): Add initializers.
9086 (coff_objfile_data_key): Move lower. Change type.
9087 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9088 Update.
9089 (coff_free_info): Remove.
9090
d4e05d2f
TT
90912019-05-08 Tom Tromey <tom@tromey.com>
9092
9093 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9094 (fbsd_pspace_data_handle): Move lower. Change type.
9095 (get_fbsd_pspace_data): Update.
9096 (fbsd_pspace_data_cleanup): Remove.
9097 (_initialize_fbsd_tdep): Update.
9098
14ef6690
TT
90992019-05-08 Tom Tromey <tom@tromey.com>
9100
9101 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9102 (get_ada_tasks_pspace_data): Update.
9103 (ada_tasks_pspace_data_cleanup): Remove.
9104 (_initialize_tasks): Update.
9105 (ada_tasks_inferior_data_handle): Change type.
9106 (get_ada_tasks_inferior_data): Update.
9107 (ada_tasks_inferior_data_cleanup): Remove.
9108 (struct ada_tasks_pspace_data): Add initializers.
9109
814cf43a
TT
91102019-05-08 Tom Tromey <tom@tromey.com>
9111
9112 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9113 * symfile-debug.c (debug_sym_get_probes): Change type.
9114 * stap-probe.c (handle_stap_probe):
9115 (stap_static_probe_ops::get_probes): Change type.
9116 * probe.h (class static_probe_ops) <get_probes>: Change type.
9117 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9118 (parse_probes_in_pspace): Update.
9119 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9120 Update.
9121 (any_static_probe_ops::get_probes): Change type.
9122 * elfread.c (elfread_data): New typedef.
9123 (probe_key): Change type.
9124 (elf_get_probes): Likewise. Update.
9125 (probe_key_free): Remove.
9126 (_initialize_elfread): Update.
9127 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9128 Change type.
9129 (dtrace_process_dof_probe, dtrace_process_dof)
9130 (dtrace_static_probe_ops::get_probe): Change type.
9131
02dc647e
TT
91322019-05-08 Tom Tromey <tom@tromey.com>
9133
9134 * xcoffread.c (struct xcoff_symfile_info): Rename from
9135 coff_symfile_info. Add initializers.
9136 (xcoff_objfile_data_key): Move lower. Change type.
9137 (XCOFF_DATA): Rewrite.
9138 (xcoff_free_info): Remove.
9139 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9140 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9141 (xcoff_initial_scan): Update.
9142
09232438
TT
91432019-05-08 Tom Tromey <tom@tromey.com>
9144
9145 * solib-svr4.c (struct svr4_info): Add initializers and
9146 destructor.
9147 <probes_table>: Now an htab_up.
9148 (solib_svr4_pspace_data): Change type.
9149 (free_probes_table): Simplify.
9150 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9151 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9152 (probes_table_remove_objfile_probes, register_solib_event_probe)
9153 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9154 (_initialize_svr4_solib): Update.
9155
7b4a314f
TT
91562019-05-08 Tom Tromey <tom@tromey.com>
9157
9158 * remote.c (remote_pspace_data): Change type.
9159 (remote_pspace_data_cleanup): Remove.
9160 (get_remote_exec_file, set_pspace_remote_exec_file)
9161 (_initialize_remote): Update.
9162
51d3063a
TT
91632019-05-08 Tom Tromey <tom@tromey.com>
9164
9165 * breakpoint.c (breakpoint_objfile_key): Change type.
9166 (get_breakpoint_objfile_data): Update.
9167 (free_breakpoint_objfile_data): Remove.
9168 (_initialize_breakpoint): Update.
9169
89fb8848
TT
91702019-05-08 Tom Tromey <tom@tromey.com>
9171
9172 * linux-tdep.c (struct linux_info): Add initializers.
9173 (linux_inferior_data): Move. Change type.
9174 (invalidate_linux_cache_inf): Update.
9175 (linux_inferior_data_cleanup): Remove.
9176 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9177
e9b89e2d
TT
91782019-05-08 Tom Tromey <tom@tromey.com>
9179
9180 * auxv.c (auxv_inferior_data): Move. Change type.
9181 (auxv_inferior_data_cleanup): Remove.
9182 (invalidate_auxv_cache_inf): Rewrite.
9183 (get_auxv_inferior_data, _initialize_auxv): Update.
9184
8c42777c
TT
91852019-05-08 Tom Tromey <tom@tromey.com>
9186
9187 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9188 (symfile_debug_objfile_data_key): Change type.
9189 (symfile_debug_installed, debug_qf_has_symbols)
9190 (debug_qf_find_last_source_symtab)
9191 (debug_qf_forget_cached_source_info)
9192 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9193 (debug_qf_print_stats, debug_qf_dump)
9194 (debug_qf_expand_symtabs_for_function)
9195 (debug_qf_expand_all_symtabs)
9196 (debug_qf_expand_symtabs_with_fullname)
9197 (debug_qf_map_matching_symbols)
9198 (debug_qf_expand_symtabs_matching)
9199 (debug_qf_find_pc_sect_compunit_symtab)
9200 (debug_qf_map_symbol_filenames)
9201 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9202 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9203 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9204 (debug_sym_read_linetable, debug_sym_relocate): Update.
9205 (symfile_debug_free_objfile): Remove.
9206 (install_symfile_debug_logging, _initialize_symfile_debug):
9207 Update.
9208
5bfd760d
TT
92092019-05-08 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9212 allocate_on_obstack.
9213 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9214 (get_dwarf2_per_objfile): Update.
9215 (set_dwarf2_per_objfile): Remove.
9216 (dwarf2_has_info, dwarf2_get_section_info): Update.
9217 (dwarf2_free_objfile): Remove.
9218 (_initialize_dwarf2_read): Update.
9219
e85e19b4
TT
92202019-05-08 Tom Tromey <tom@tromey.com>
9221
9222 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9223 initializers.
9224 <unsupported_script_warning_printed,
9225 script_not_found_warning_printed>: Now bool.
9226 (auto_load_pspace_data): Change type.
9227 (~auto_load_pspace_info): Rename from
9228 auto_load_pspace_data_cleanup.
9229 (get_auto_load_pspace_data, init_loaded_scripts_info)
9230 (clear_section_scripts, maybe_print_unsupported_script_warning)
9231 (maybe_print_script_not_found_warning, _initialize_auto_load):
9232 Update.
9233
f6aa7436
TT
92342019-05-08 Tom Tromey <tom@tromey.com>
9235
9236 * objfiles.c (objfile_pspace_info): Add destructor and
9237 initializers.
9238 (objfiles_pspace_data): Change type.
9239 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9240 (get_objfile_pspace_data): Update.
9241 (objfiles_bfd_data): Change type.
9242 (get_objfile_bfd_data): Update.
9243 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9244
6ae614f6
TT
92452019-05-08 Tom Tromey <tom@tromey.com>
9246
9247 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9248 Change type.
9249 (get_catch_syscall_inferior_data): Update.
9250 (catch_syscall_inferior_data_cleanup): Remove.
9251 (_initialize_break_catch_syscall): Update.
9252
6509b8eb
TT
92532019-05-08 Tom Tromey <tom@tromey.com>
9254
9255 * inflow.c (struct terminal_info): Add destructor and
9256 initializers.
9257 (inflow_inferior_data): Change type.
9258 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9259 (get_inflow_inferior_data, inflow_inferior_exit)
9260 (swap_terminal_info, _initialize_inflow): Update.
9261
35632941
TT
92622019-05-08 Tom Tromey <tom@tromey.com>
9263
9264 * target-dcache.c (target_dcache_cleanup): Remove.
9265 (target_dcache_aspace_key): Change type.
9266 (target_dcache_init_p, target_dcache_invalidate)
9267 (target_dcache_get, target_dcache_get_or_init)
9268 (_initialize_target_dcache): Update.
9269 * dcache.h (struct dcache_deleter): New.
9270
3017b94d
TT
92712019-05-08 Tom Tromey <tom@tromey.com>
9272
9273 * symtab.c (struct symbol_cache): Add destructor and
9274 initializers.
9275 (symbol_cache_key): Move. Change type.
9276 (make_symbol_cache, free_symbol_cache): Remove.
9277 (get_symbol_cache): Update.
9278 (symbol_cache_cleanup): Remove.
9279 (ALL_PSPACES, symbol_cache_flush)
9280 (maintenance_print_symbol_cache)
9281 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9282 Update.
9283
a32ad8c5
TT
92842019-05-08 Tom Tromey <tom@tromey.com>
9285
9286 * symtab.c (struct main_info): Add destructor and initializers.
9287 (main_progspace_key): Move. Change type.
9288 (get_main_info): Update.
9289 (main_info_cleanup): Remove.
9290 (_initialize_symtab): Update.
9291
5f6e90a0
TT
92922019-05-08 Tom Tromey <tom@tromey.com>
9293
9294 * registry.h (DECLARE_REGISTRY): Define the _key class.
9295
1bd0c6e4
AB
92962019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9297
9298 * NEWS: Merge two 'New commands' sections.
9299
2228ef77
XR
93002019-05-08 Joel Brobecker <brobecker@adacore.com>
9301
9302 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9303 parameter and use Ada language definition instead.
9304 (ada_val_print_ptr): Remove unused language parameter.
9305 (ada_val_print_num): Remove language parameter and use Ada language
9306 definition instead.
9307 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9308 parameter.
9309 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9310 parameter and use Ada language definition instead.
9311 (ada_val_print_1): Update all ada_val_print_xxx calls.
9312 Remove language parameter.
9313 (ada_val_print): Update ada_val_print_1 call.
9314
60fcc1c3
TT
93152019-05-08 Tom Tromey <tromey@adacore.com>
9316
9317 * remote.c (remote_hw_watchpoint_limit)
9318 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9319 Now static.
9320
ed2b7c17
TT
93212019-05-08 Tom Tromey <tromey@adacore.com>
9322
9323 * maint.c (_initialize_maint_cmds): Move initialization code to
9324 remote.c.
9325 (watchdog, show_watchdog): Move to remote.c.
9326 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9327 "watchdog" static.
9328 (_initialize_remote): Move initialization code from maint.c.
9329 * defs.h (watchdog): Don't declare.
9330
b0be6c91
TT
93312019-05-08 Tom Tromey <tromey@adacore.com>
9332
9333 * tui/tui-interp.c: Include main.h.
9334 * interps.c: Include main.h.
9335 * main.h (interpreter_p): Declare.
9336 * defs.h (interpreter_p): Don't declare.
9337
587ee17b
TT
93382019-05-08 Tom Tromey <tromey@adacore.com>
9339
9340 * dwarf2loc.c: Include dwarf2read.h.
9341 * defs.h (read_unsigned_leb128): Don't declare.
9342 * dwarf2read.h (read_unsigned_leb128): Declare.
9343
ca1df239
TT
93442019-05-08 Tom Tromey <tromey@adacore.com>
9345
9346 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9347 method.
9348
99f20f08
TT
93492019-05-08 Tom Tromey <tromey@adacore.com>
9350
9351 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9352 when no wrap column is set.
9353
80e55b13
TT
93542019-05-08 Tom Tromey <tromey@adacore.com>
9355
9356 * c-lang.c (c_get_string): Handle non-C-style arrays.
9357
9d3421af
TT
93582019-05-08 Tom Tromey <tromey@adacore.com>
9359
9360 * typeprint.c (print_offset_data::update): Print the bit offset,
9361 not the number of bits remaining.
9362
844333e2
TT
93632019-05-08 Tom Tromey <tromey@adacore.com>
9364
9365 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9366 padding at end of comment.
9367
988915ee
TT
93682019-05-08 Tom Tromey <tromey@adacore.com>
9369
9370 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9371 Compare main types.
9372
26bfd823
TT
93732019-05-06 Tom Tromey <tom@tromey.com>
9374
9375 * common/scoped_mmap.c: Include common-defs.h.
9376 * common/scoped_mmap.h: Don't include config.h.
9377
89055eaa
TT
93782019-05-04 Tom Tromey <tom@tromey.com>
9379
9380 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9381 (struct aarch64_call_info): Add initializers.
9382 <si>: Now a std::vector.
9383 (pass_on_stack, aarch64_push_dummy_call): Update.
9384
5da01df5
TT
93852019-05-04 Simon Marchi <simon.marchi@efficios.com>
9386 Tom Tromey <tom@tromey.com>
9387
9388 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9389 (ppc_threads): Now a std::vector. Now static.
9390 (hwdebug_find_thread_points_by_tid)
9391 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9392 Update.
9393
fbdf05a1
TT
93942019-05-04 Tom Tromey <tom@tromey.com>
9395
9396 * arc-tdep.c (arc_tdesc_init): Return bool.
9397
06d16ec9
TT
93982019-05-04 Tom Tromey <tom@tromey.com>
9399
9400 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9401 Use gdb_assert_not_reached.
9402
9c056022
TT
94032019-05-04 Tom Tromey <tom@tromey.com>
9404
9405 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9406 "false".
9407
fa9c2a59
TT
94082019-05-04 Tom Tromey <tom@tromey.com>
9409
9410 * arc-tdep.c (arc_tdesc_init): Use bool.
9411
e2eb806a
TT
94122019-05-04 Tom Tromey <tom@tromey.com>
9413
9414 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9415
6fe87677
TT
94162019-05-04 Tom Tromey <tom@tromey.com>
9417
9418 * cli/cli-cmds.c (valid_command_p): Return bool.
9419
7f008c9e
TT
94202019-05-04 Tom Tromey <tom@tromey.com>
9421
9422 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9423 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9424
b6484282
RT
94252019-05-04 Raul Tambre <raul@tambre.ee>
9426
9427 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9428 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9429 operator for comparison.
9430
af97b416
TT
94312019-05-04 Tom Tromey <tom@tromey.com>
9432
9433 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9434 (lookup_partial_symbol, print_partial_symbols)
9435 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9436 (psymbol_compare): Update.
9437 (add_psymbol_to_bcache): Clear the entire psymbol.
9438 (maintenance_check_psymtabs): Update.
9439 * psympriv.h (struct partial_symbol): Don't derive from
9440 general_symbol_info.
9441 <obj_section, unrelocated_address, address,
9442 set_unrelocated_address>: Update.
9443 <ginfo>: New member.
9444 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9445 (debug_names::write_psymbols): Update.
9446
9d6d4be8
TV
94472019-05-04 Tom de Vries <tdevries@suse.de>
9448
9449 * contrib/cc-with-tweaks.sh: Support -n arg.
9450
66452beb
PW
94512019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9452
9453 * corelow.c (core_target::detach): Ensure frame cache and
9454 register caches are cleared.
9455 inferior.c (exit_inferior_1): Likewise.
9456
bde09ab7
TT
94572019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9458 Tom Tromey <tom@tromey.com>
9459
9460 * dictionary.c (collate_pending_symbols_by_language): Remove
9461 "struct" from foreach.
9462 * symtab.c (lookup_global_symbol_from_objfile)
9463 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9464 foreach.
9465 * ser-tcp.c (net_open): Remove "struct" from foreach.
9466 * objfiles.c (objfile_relocate, objfile_rebase)
9467 (objfile_has_symbols): Remove "struct" from foreach.
9468 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9469 from foreach.
9470 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9471 foreach.
9472 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9473 "struct" from foreach.
9474 * ada-lang.c (create_excep_cond_exprs)
9475 (ada_exception_catchpoint_cond_string): Remove "struct" from
9476 foreach.
9477
222a8d25
TT
94782019-05-03 Tom Tromey <tromey@adacore.com>
9479
9480 * ada-exp.y (convert_char_literal): Check suffix of each
9481 enumerator.
9482
fcd60b84
DP
94832019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9484
9485 PR ada/21406:
9486 * ada-exp.y (yywrap): Don't define.
9487 * ada-lex.l (%option): Add noyywrap
9488 (yywrap): Remove.
9489
5f2459c2
EZ
94902019-05-03 Eli Zaretskii <eliz@gnu.org>
9491
353ea2d1
EZ
9492 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9493 _WIN32_WINNT to the XP level, unless already defined to a higher
9494 level.
9495
9496 * unittests/parse-connection-spec-selftests.c:
9497 * ser-tcp.c:
9498 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9499 override.
9500
5f2459c2
EZ
9501 * symfile.c (find_separate_debug_file): Remove colon from the
9502 drive spec of DOS/Windows file names of the target, so that the
9503 file name produced from DEBUGDIR and the target's directory will
9504 be valid on DOS/Windows systems.
9505
80062eb9
AB
95062019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9507
9508 * rust-lang.c (val_print_struct): Handle printing structures
9509 containing strings.
9510
b8c05e85
TT
95112019-05-02 Tom Tromey <tromey@adacore.com>
9512
9513 * valarith.c (_initialize_valarith): Remove.
9514
4504bbde
TT
95152019-05-01 Tom Tromey <tromey@adacore.com>
9516
9517 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9518 bitfields.
9519
d48e62f4
TT
95202019-05-01 Tom Tromey <tromey@adacore.com>
9521
9522 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9523 for big-endian copies.
9524
15f18d14
AT
95252019-04-30 Ali Tamur <tamur@google.com>
9526 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9527 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9528 (read_3_bytes): New function.
9529
ab4ee614
JB
95302019-04-30 Joel Brobecker <brobecker@adacore.com>
9531
9532 * windows-nat.c (main_thread_id): Delete.
9533 (handle_output_debug_string): Replace main_thread_id by
9534 current_event.dwThreadId.
9535 (fake_create_process): Likewise.
9536 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9537 Do not set main_thread_id.
9538 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9539 current_event.dwThreadId.
9540 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9541
8ed5b76e
JB
95422019-04-30 Joel Brobecker <brobecker@adacore.com>
9543
9544 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9545 Use current_event.dwThreadId instead of main_thread_id.
9546
2ff0a947
TT
95472019-04-30 Tom Tromey <tromey@adacore.com>
9548
9549 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9550 (create_excep_cond_exprs): Iterate over program spaces.
9551 (ada_exception_catchpoint_cond_string): Examine all minimal
9552 symbols for exception types.
9553
a776957c
TT
95542019-04-30 Tom Tromey <tromey@adacore.com>
9555
9556 PR c++/24470:
9557 * dwarf2read.c (process_structure_scope): Handle case where type
9558 has template parameters but no symbol was created.
9559
bc68014d
AB
95602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9561 Chris January <chris.january@arm.com>
9562
9563 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9564 qualifier.
9565 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9566
f1fdc960
AB
95672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9568
9569 * f-typeprint.c (f_print_type): Update rules for printing
9570 whitespace.
9571 (f_type_print_varspec_suffix): Likewise.
9572
bf7a4de1
AB
95732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9574 Chris January <chris.january@arm.com>
9575
9576 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9577 function arguments.
9578
bbe75b9d
AB
95792019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9580
9581 * f-lang.c (build_fortran_types): Change name of void type to
9582 lower case.
9583 * f-typeprint.c (f_type_print_base): Print the name of the void
9584 type, rather than a fixed string.
9585 * f-valprint.c (f_decorations): Use lower case void string.
9586
1db455a7
AB
95872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9588 Chris January <chris.january@arm.com>
9589
9590 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9591 types for Fortran.
9592
b6d03bb2
AB
95932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9594 Chris January <chris.january@arm.com>
9595 David Lecomber <david.lecomber@arm.com>
9596
9597 * f-exp.y (BINOP_INTRINSIC): New token.
9598 (exp): New parser rule handling BINOP_INTRINSIC.
9599 (f77_keywords): Add new builtin procedures.
9600 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9601 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9602 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9603 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9604 (print_unop_subexp_f): New function.
9605 (print_binop_subexp_f): New function.
9606 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9607 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9608 (dump_subexp_body_f): Likewise.
9609 (operator_check_f): Likewise.
9610 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9611 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9612
83228e93
AB
96132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9614
9615 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9616 UNOP_KIND.
9617 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9618 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9619 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9620 (operator_length_f): New fuction.
9621 (print_subexp_f): New function.
9622 (op_name_f): New function.
9623 (dump_subexp_body_f): New function.
9624 (operator_check_f): New function.
9625 (exp_descriptor_f): Replace standard expression handling functions
9626 with new functions.
9627 * gdb/fortran-operator.def: New file.
9628 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9629 * gdb/std-operator.def: Remove UNOP_KIND.
9630
6fdcd7cc
AB
96312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9632
9633 * std-operator.def: Remove unbalanced, stray double quote
9634 character.
9635
2e62ab40
AB
96362019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9637 Chris January <chris.january@arm.com>
9638 Daniel Everett <daniel.everett@arm.com>
9639 Nick Forrington <nick.forrington@arm.com>
9640 Richard Bunt <richard.bunt@arm.com>
9641
9642 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9643 of depth when printing anonymous structs or unions.
9644 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9645 Don't print either the top-level value, or the children if the
9646 max-depth is exceeded.
9647 (ppscm_print_children): When printing the key of a map, allow one
9648 extra level of depth.
9649 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9650 print either the top-level value, or the children if the max-depth
9651 is exceeded.
9652 (print_children): When printing the key of a map, allow one extra
9653 level of depth.
9654 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9655 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9656 (user_print_options): Initialise max_depth field.
9657 (val_print_scalar_or_string_type_p): New function.
9658 (val_print): Check to see if the max depth has been reached.
9659 (val_print_check_max_depth): Define new function.
9660 (show_print_max_depth): New function.
9661 (_initialize_valprint): Add 'print max-depth' option.
9662 * valprint.h (struct value_print_options) <max_depth>: New field.
9663 (val_print_check_max_depth): Declare new function.
9664 * NEWS: Document new feature.
9665
4be290b2
AB
96662019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9667
9668 * ada-lang.c (ada_language_defn): Initialise new field.
9669 * c-lang.c (c_is_string_type_p): New function.
9670 (c_language_defn): Initialise new field.
9671 (cplus_language_defn): Initialise new field.
9672 (asm_language_defn): Initialise new field.
9673 (minimal_language_defn): Initialise new field.
9674 * c-lang.h (c_is_string_type_p): Declare new function.
9675 * d-lang.c (d_language_defn): Initialise new field.
9676 * f-lang.c (f_is_string_type_p): New function.
9677 (f_language_defn): Initialise new field.
9678 * go-lang.c (go_is_string_type_p): New function.
9679 (go_language_defn): Initialise new field.
9680 * language.c (default_is_string_type_p): New function.
9681 (unknown_language_defn): Initialise new field.
9682 (auto_language_defn): Initialise new field.
9683 * language.h (struct language_defn) <la_is_string_type_p>: New
9684 member variable.
9685 (default_is_string_type_p): Declare new function.
9686 * m2-lang.c (m2_language_defn): Initialise new field.
9687 * objc-lang.c (objc_language_defn): Initialise new field.
9688 * opencl-lang.c (opencl_language_defn): Initialise new field.
9689 * p-lang.c (pascal_is_string_type_p): New function.
9690 (pascal_language_defn): Initialise new field.
9691 * rust-lang.c (rust_is_string_type_p): New function.
9692 (rust_language_defn): Initialise new field.
9693
721b08c6
AB
96942019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9695
9696 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9697 New field.
9698 * ada-lang.c (ada_language_defn): Initialise new field.
9699 * c-lang.c (c_language_defn): Likewise.
9700 (cplus_language_defn): Likewise.
9701 (asm_language_defn): Likewise.
9702 (minimal_language_defn): Likewise.
9703 * d-lang.c (d_language_defn): Likewise.
9704 * f-lang.c (f_language_defn): Likewise.
9705 * go-lang.c (go_language_defn): Likewise.
9706 * language.c (unknown_language_defn): Likewise.
9707 (auto_language_defn): Likewise.
9708 * m2-lang.c (m2_language_defn): Likewise.
9709 * objc-lang.c (objc_language_defn): Likewise.
9710 * opencl-lang.c (opencl_language_defn): Likewise.
9711 * p-lang.c (pascal_language_defn): Likewise.
9712 * rust-lang.c (rust_language_defn): Likewise.
9713
fc913e53
AB
97142019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9715
9716 * ada-lang.c (ada_is_character_type): Change return type to bool.
9717 (ada_is_string_type): Likewise.
9718 * ada-lang.h (ada_is_character_type): Update declaration
9719 (ada_is_string_type): Likewise.
9720
fa731fa0
PW
97212019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9722
9723 Support style in 'frame|thread apply'
9724
9725 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9726 * record.c (record_start, record_stop): Update callers of
9727 execute_command_to_string with false.
9728 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9729 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9730 methods.
9731 (class string_file): New constructor with term_out parameter.
9732 Override methods term_out and can_emit_style_escape. New member
9733 term_out.
9734 (class stdio_file): Override can_emit_style_escape.
9735 (class tee_file): Override term_out and can_emit_style_escape.
9736 * utils.h (can_emit_style_escape): Remove.
9737 * utils.c (can_emit_style_escape): Likewise.
9738 Update all callers of can_emit_style_escape (SOMESTREAM) to
9739 SOMESTREAM->can_emit_style_escape.
9740 * source-cache.c (source_cache::get_source_lines): Likewise.
9741 * stack.c (frame_apply_command_count): Call execute_command_to_string
9742 passing the term_out characteristic of the current gdb_stdout.
9743 * thread.c (thr_try_catch_cmd): Likewise.
9744 * top.c (execute_command_to_string): pass term_out parameter
9745 to construct the string_file for the command output.
9746 * ui-file.c (term_cli_styling): New function (most code moved
9747 from utils.c can_emit_style_escape).
9748 (string_file::string_file, string_file::can_emit_style_escape,
9749 stdio_file::can_emit_style_escape, tee_file::term_out,
9750 tee_file::can_emit_style_escape): New functions.
9751
136afab8
PW
97522019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9753
9754 * NEWS: Mention the new set|show may-call-functions.
9755 * infcall.c (may_call_functions_p): New variable.
9756 (show_may_call_functions_p): New function.
9757 (call_function_by_hand_dummy): Throws an error if not
9758 may-call-functions.
9759 (_initialize_infcall): Call add_setshow_boolean_cmd for
9760 may-call-functions.
9761
725cbb63
KS
97622019-04-25 Keith Seitz <keiths@redhat.com>
9763
9764 PR c++/24367
9765 * cp-support.c (inspect_type): Don't attempt substitutions
9766 of symbol with the same name.
9767
3d1cbb78
TT
97682019-04-25 Tom Tromey <tromey@adacore.com>
9769
9770 PR gdb/24475:
9771 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9772 static.
9773
94aeb44b
TT
97742019-04-25 Tom Tromey <tromey@adacore.com>
9775
9776 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9777 rvalue reference.
9778 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9779 (gdb_xml_parser::parse): Use std::move.
9780 * python/python-internal.h (gdbpy_convert_exception): Take a const
9781 reference.
9782 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9783 std::move.
9784 * python/py-utils.c (gdbpy_convert_exception): Take a const
9785 reference.
9786 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9787 Use std::move.
9788 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9789 Use std::move.
9790 * mi/mi-main.c (mi_print_exception): Take a const reference.
9791 * main.c (handle_command_errors): Take a const reference.
9792 * linespec.c (parse_linespec): Use std::move.
9793 * infcall.c (run_inferior_call): Use std::move.
9794 (call_function_by_hand_dummy): Use std::move.
9795 * exec.c (try_open_exec_file): Use std::move.
9796 * exceptions.h (exception_print, exception_fprintf)
9797 (exception_print_same): Update.
9798 * exceptions.c (print_exception, exception_print)
9799 (exception_fprintf, exception_print_same): Change parameters to
9800 const reference.
9801 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9802 * common/new-op.c: Use std::move.
9803 * common/common-exceptions.h (struct gdb_exception): Add move
9804 constructor.
9805 (struct gdb_exception_error, struct gdb_exception_quit, struct
9806 gdb_quit_bad_alloc): Change constructor to move constructor.
9807 (throw_exception): Change parameter to rvalue reference.
9808 * common/common-exceptions.c (throw_exception): Take rvalue
9809 reference.
9810 * cli/cli-interp.c (safe_execute_command): Use std::move.
9811 * breakpoint.c (insert_bp_location, location_to_sals): Use
9812 std::move.
9813
680d7fd5
TT
98142019-04-25 Tom Tromey <tromey@adacore.com>
9815
9816 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9817 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9818 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9819 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9820 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9821 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9822 guile/scm-value.c: Use unpack.
9823 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9824 gdbscm_gdb_exception.
9825 (gdbscm_throw_gdb_exception): Likewise.
9826 (struct gdbscm_gdb_exception): New.
9827 (unpack): New function.
9828 (gdbscm_wrap): Use unpack.
9829
c6fdd8b2
TT
98302019-04-25 Tom Tromey <tromey@adacore.com>
9831
9832 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9833 (gdb_rl_callback_handler): Use std::move.
9834 * common/common-exceptions.h (struct gdb_exception): Add move
9835 assignment operator.
9836 (throw_exception_sjlj): Change "exception" to const reference.
9837 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9838 (throw_exception_sjlj): Change "exception" to const reference.
9839
cc06b668
TT
98402019-04-25 Tom Tromey <tromey@adacore.com>
9841
9842 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9843 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9844 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9845 Update.
9846 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9847 Update.
9848 * mi/mi-interp.c (mi_interp::exec): Update.
9849 * linespec.c (parse_linespec): Update.
9850 * infcall.c (run_inferior_call): Update.
9851 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9852 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9853 (gdbscm_lookup_global_symbol): Update.
9854 * guile/scm-param.c (gdbscm_parameter_value): Update.
9855 * guile/scm-frame.c (gdbscm_frame_read_register)
9856 (gdbscm_frame_read_var): Update.
9857 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9858 * exec.c (try_open_exec_file): Update.
9859 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9860 (gdb_rl_callback_handler): Update.
9861 * common/common-exceptions.h (exception_none): Don't declare.
9862 * common/common-exceptions.c (exception_none): Don't define.
9863 (struct catcher) <exception>: Update.
9864 * cli/cli-interp.c (safe_execute_command): Update.
9865 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9866
cf532bd1
AT
98672019-04-25 Ali Tamur <tamur@google.com>
9868
9869 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9870 (read_attribute_value): Likewise.
9871 (dwarf2_read_addr_index): Update comment.
9872 (read_str_index): Add DW_FORM_strx.
9873 (dwarf2_string_attr): Likewise.
9874 (dwarf2_const_value_attr): Likewise.
9875 (dump_die_shallow): Likewise.
9876 (dwarf2_fetch_constant_bytes): Likewise.
9877 (skip_form_bytes): Likewise.
9878 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9879
82433e3e
SDJ
98802019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9881
9882 PR corefiles/11608
9883 PR corefiles/18187
9884 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9885 OFFSET. Verify if current mapping contains an ELF header.
9886 (linux_find_memory_regions_full): Adjust call to
9887 dump_mapping_p.
9888
723adb65
SL
98892019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9890 Kang Li <kanglictf@gmail.com>
9891
9892 PR gdb/21600
9893
9894 * dwarf2-frame.c (read_initial_length): Be consistent about using
9895 unsigned representation of length.
9896 (decode_frame_entry_1): Likewise. Check for wraparound of
9897 end pointer as well as buffer overflow.
9898
596179f7
SDJ
98992019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9900
9901 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9902 "vq".
9903
a59240a4
TT
99042019-04-24 Tom Tromey <tromey@adacore.com>
9905
9906 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9907
f872fdbb
AB
99082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9909
9910 * s12z-tdep.c (s12z_unwind_pc): Delete.
9911 (s12z_unwind_sp): Delete.
9912 (s12z_gdbarch_init): Don't register deleted functions with
9913 gdbarch.
9914
b614e6f3
AB
99152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9916
9917 * rl78-tdep.c (rl78_unwind_sp): Delete.
9918 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9919
14faed38
AB
99202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9921
9922 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9923 (xstormy16_unwind_pc): Delete.
9924 (xstormy16_dummy_id): Delete.
9925 (xstormy16_gdbarch_init): Don't register deleted functions with
9926 gdbarch.
9927
541aad8a
AB
99282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9929
9930 * vax-tdep.c (vax_unwind_pc): Delete.
9931 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9932
29222070
AB
99332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * v850-tdep.c (v850_unwind_sp): Delete.
9936 (v850_unwind_pc): Delete.
9937 (v850_dummy_id): Delete.
9938 (v850_gdbarch_init): Don't register deleted functions with
9939 gdbarch.
9940
0f534d76
AB
99412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9942
9943 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9944 (tilegx_unwind_pc): Delete.
9945 (tilegx_unwind_dummy_id): Delete.
9946 (tilegx_gdbarch_init): Don't register deleted functions with
9947 gdbarch.
9948
1ba7b7f9
AB
99492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9950
9951 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9952 (tic6x_dummy_id): Delete.
9953 (tic6x_gdbarch_init): Don't register deleted functions with
9954 gdbarch.
9955
d31f262c
AB
99562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * sparc-tdep.c (sparc_unwind_pc): Delete.
9959 (sparc32_gdbarch_init): Don't register deleted function with
9960 gdbarch.
9961
6d14d64d
AB
99622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9963
9964 * sh-tdep.c (sh_unwind_sp): Delete.
9965 (sh_unwind_pc): Delete.
9966 (sh_dummy_id): Delete.
9967 (sh_gdbarch_init): Don't register deleted functions with
9968 gdbarch.
9969
a40dde9d
AB
99702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9971
9972 * score-tdep.c (score_unwind_sp): Delete.
9973 (score_unwind_pc): Delete.
9974 (score_dummy_id): Delete.
9975 (score_gdbarch_init): Don't register deleted functions with
9976 gdbarch.
9977
47c47d69
AB
99782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9979
9980 * rx-tdep.c (rx_unwind_pc): Delete.
9981 (rx_unwind_sp): Delete.
9982 (rx_dummy_id): Delete.
9983 (rx_gdbarch_init): Don't register deleted functions with
9984 gdbarch. Update comment.
9985
833a4480
AB
99862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9987
9988 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9989 (rs6000_dummy_id): Delete.
9990 (rs6000_gdbarch_init): Don't register deleted functions with
9991 gdbarch.
9992
3f2cef49
AB
99932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9994
9995 * or1k-tdep.c (or1k_dummy_id): Delete.
9996 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9997
96acf884
AB
99982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9999
10000 * nios2-tdep.c (nios2_dummy_id): Delete.
10001 (nios2_unwind_sp): Delete.
10002 (nios2_gdbarch_init): Don't register deleted functions with
10003 gdbarch.
10004
ca0ab0aa
AB
100052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10006
10007 * nds32-tdep.c (nds32_dummy_id): Delete.
10008 (nds32_unwind_pc): Delete.
10009 (nds32_unwind_sp): Delete.
10010 (nds32_gdbarch_init): Don't register deleted functions with
10011 gdbarch.
10012
c8259044
AB
100132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10014
10015 * msp430-tdep.c (msp430_unwind_pc): Delete.
10016 (msp430_unwind_sp): Delete.
10017 (msp430_dummy_id): Delete.
10018 (msp430_gdbarch_init): Don't register deleted functions with
10019 gdbarch.
10020
27f113c8
AB
100212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10022
10023 * moxie-tdep.c (moxie_unwind_sp): Delete.
10024 (moxie_unwind_pc): Delete.
10025 (moxie_dummy_id): Delete.
10026 (moxie_gdbarch_init): Don't register deleted functions with
10027 gdbarch.
10028
aee6c3cd
AB
100292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10030
10031 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10032 (mn10300_unwind_pc): Delete.
10033 (mn10300_unwind_sp): Delete.
10034 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10035 mn10300_unwind_sp.
10036 (mn10300_frame_unwind_init): Don't register deleted functions with
10037 gdbarch.
10038
8e2b5aea
AB
100392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10040
10041 * mep-tdep.c (mep_unwind_pc): Delete.
10042 (mep_unwind_sp): Delete.
10043 (mep_dummy_id): Delete.
10044 (mep_gdbarch_init): Don't register deleted functions with
10045 gdbarch.
10046
43cf3ede
AB
100472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10048
10049 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10050 (m68hc11_unwind_sp): Delete.
10051 (m68hc11_gdbarch_init): Don't register deleted functions with
10052 gdbarch.
10053
5e79b7bb
AB
100542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10055
10056 * m32r-tdep.c (m32r_unwind_sp): Delete.
10057 (m32r_unwind_pc): Delete.
10058 (m32r_dummy_id): Delete.
10059 (m32r_gdbarch_init): Don't register deleted functions with
10060 gdbarch.
10061
89b268d8
AB
100622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10063
10064 * m32c-tdep.c (m32c_unwind_pc): Delete.
10065 (m32c_unwind_sp): Delete.
10066 (m32c_dummy_id): Delete.
10067 (m32c_gdbarch_init): Don't register deleted functions with
10068 gdbarch.
10069
946c28d2
AB
100702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10071
10072 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10073 (lm32_unwind_pc): Delete.
10074 (lm32_dummy_id): Delete.
10075 (lm32_gdbarch_init): Don't register deleted functions with
10076 gdbarch.
10077
bf12844a
AB
100782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10079
10080 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10081 (iq2000_unwind_pc): Delete.
10082 (iq2000_dummy_id): Delete.
10083 (iq2000_gdbarch_init): Don't register deleted functions with
10084 gdbarch.
10085
ecbc06d2
AB
100862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10087
10088 * nds32-tdep.c (nds32_type_align): Delete.
10089 (nds32_push_dummy_call): Use type_align instead.
10090
030197b4
AB
100912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10092
10093 * arm-tdep.c (arm_type_align): Only handle vector override case.
10094 (arm_push_dummy_call): Use type_align.
10095 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10096
b907456c
AB
100972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10098
10099 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10100 case.
10101 (pass_on_stack): Use type_align.
10102 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10103 function.
10104
9e97ba43
TT
101052019-04-23 Tom Tromey <tromey@adacore.com>
10106
10107 * dwarf2read.c (line_header::file_name_at): Remove unused
10108 overload.
10109
6892f601
TV
101102019-04-23 Tom de Vries <tdevries@suse.de>
10111
10112 PR gdb/24438
10113 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10114 invocation.
10115
336d760d
AT
10116
101172019-03-27 Ali Tamur <tamur@google.com>
10118
10119 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10120 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10121 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10122 (dwarf_expr_context::get_addr_index): Likewise
10123 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10124 (symbol_needs_eval_context::get_addr_index): Likewise
10125 (disassemble_dwarf_expression): Add DW_OP_addrx
10126 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10127 (read_cutu_die_from_dwo): Update comment
10128 (skip_one_die): Add DW_FORM_addrx
10129 (read_attribute_value): Likewise
10130 (var_decode_location): Add DW_OP_addrx
10131 (dwarf2_const_value_attr): Add DW_FORM_addrx
10132 (dump_die_shallow): Likewise
10133 (dwarf2_fetch_constant_bytes): Likewise
10134 (decode_locdesc): Add DW_OP_addrx
10135 (skip_form_bytes): Add DW_FORM_addrx
10136
ad9d13f8
AT
101372019-04-22 Ali Tamur <tamur@google.com>
10138
10139 * MAINTAINERS (Write After Approval): Add self.
10140
d70cc3ba
SM
101412019-04-22 Simon Marchi <simon.marchi@efficios.com>
10142
10143 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10144 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10145 (open_symbol_file_object): Likewise.
10146 (svr4_default_sos): Add info parameter.
10147 (svr4_read_so_list): Likewise.
10148 (svr4_current_sos_direct): Adjust functions calls to pass down
10149 info.
10150 (svr4_current_sos_1): Add info parameter.
10151 (svr4_current_sos): Call get_svr4_info, pass info down to
10152 svr4_current_sos_1.
10153 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10154 get_svr4_info.
10155 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10156 get_svr4_info.
10157 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10158 to get_svr4_info.
10159 (probes_table_remove_objfile_probes): Likewise.
10160 (register_solib_event_probe): Add info parameter.
10161 (solist_update_incremental): Pass info parameter down to
10162 svr4_read_so_list.
10163 (disable_probes_interface): Add info parameter.
10164 (svr4_handle_solib_event): Pass current_program_space to
10165 get_svr4_info. Adjust disable_probes_interface cleanup.
10166 (svr4_create_probe_breakpoints): Add info parameter, pass it
10167 down to register_solib_event_probe.
10168 (svr4_create_solib_event_breakpoints): Add info parameter,
10169 pass it down to svr4_create_probe_breakpoints.
10170 (enable_break): Pass info down to
10171 svr4_create_solib_event_breakpoints.
10172 (svr4_solib_create_inferior_hook): Pass current_program_space to
10173 get_svr4_info.
10174 (svr4_clear_solib): Likewise.
10175
7905fc35
PA
101762019-04-22 Pedro Alves <palves@redhat.com>
10177
10178 * solib-svr4.c (svr4_free_objfile_observer): New.
10179 (probe_and_action::objfile): New field.
10180 (probes_table_htab_remove_objfile_probes)
10181 (probes_table_remove_objfile_probes): New functions.
10182 (register_solib_event_probe): Add 'objfile' parameter. Store it
10183 in the new probe_and_action. Don't store the probe in 'lookup'.
10184 (svr4_create_probe_breakpoints): Pass objfile to
10185 register_solib_event_probe.
10186 (_initialize_svr4_solib): Register a free_objfile observer.
10187
fb881986
TT
101882019-04-19 Tom Tromey <tom@tromey.com>
10189
10190 * common/queue.h: Remove.
10191
8732db6c
TT
101922019-04-19 Tom Tromey <tom@tromey.com>
10193
10194 * event-loop.c: Don't include "common/queue.h".
10195
97dfbadd
TT
101962019-04-19 Tom Tromey <tom@tromey.com>
10197
10198 * remote.c (remote_target): Use delete.
10199 * remote-notif.h: Include <list>, not "common/queue.h".
10200 (notif_client_p): Remove typedef.
10201 (remote_notif_state): Add constructor, destructor, initializer.
10202 <notif_queue>: Now a std::list.
10203 (remote_notif_state_xfree): Don't declare.
10204 * remote-notif.c (remote_notif_process, handle_notification)
10205 (remote_notif_state_allocate): Update.
10206 (~remote_notif_state): Rename from remote_notif_state_xfree.
10207
cf250e36
TT
102082019-04-19 Tom Tromey <tom@tromey.com>
10209
10210 * symfile.c (reread_symbols): Update.
10211 * objfiles.c (objfile_register_static_link)
10212 (objfile_lookup_static_link): Update
10213 (~objfile) Don't delete static_links.
10214 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10215
61f4b350
TT
102162019-04-19 Tom Tromey <tom@tromey.com>
10217
10218 * type-stack.h (struct type_stack) <insert>: Constify string.
10219 * type-stack.c (type_stack::insert): Constify string.
10220 * gdbtypes.h (lookup_template_type): Update.
10221 (address_space_name_to_int): Update.
10222 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10223 const.
10224 (lookup_template_type): Make name const.
10225 * c-exp.y: Update rules.
10226 (lex_one_token, classify_name, classify_inner_name)
10227 (c_print_token): Update.
10228 * p-exp.y: Update rules.
10229 (yylex): Update.
10230 * f-exp.y: Update rules.
10231 (yylex): Update.
10232 * d-exp.y: Update rules.
10233 (lex_one_token, classify_name, classify_inner_name): Update.
10234 * parse.c (write_dollar_variable, copy_name): Return std::string.
10235 * parser-defs.h (copy_name): Change return type.
10236 * m2-exp.y: Update rules.
10237 (yylex): Update.
10238 * go-exp.y (lex_one_token): Update.
10239 Update rules.
10240 (classify_unsafe_function, classify_packaged_name)
10241 (classify_name, yylex): Update.
10242
189b8c2e
ST
102432019-04-19 Sergei Trofimovich <siarheit@google.com>
10244
10245 * configure.ac: add --enable-source-highlight switch.
10246 * configure: Regenerate.
10247 * top.c (print_gdb_version): plumb --enable-source-highlight
10248 status to "show configuration".
10249
8ecb59f8
TT
102502019-04-19 Tom Tromey <tromey@adacore.com>
10251
10252 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10253 Check ADA_TYPE_P.
10254 (empty_record, ada_template_to_fixed_record_type_1)
10255 (template_to_static_fixed_type)
10256 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10257 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10258 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10259 macros.
10260
62160ec9
TT
102612019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10262
10263 PR symtab/24423:
10264 * source.c (print_source_lines_base): Advance "iter" when a
10265 control character is seen.
10266
f2ae8bc8
PW
102672019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10268
10269 * inferior.h (struct infcall_suspend_state_deleter):
10270 Catch exception in destructor to avoid crash.
10271
d563b953
PW
102722019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10273
10274 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10275 close to the add_com "shell".
10276
dc34c897
TT
102772019-04-18 Tom Tromey <tromey@adacore.com>
10278
10279 * process-stratum-target.h (class process_stratum_target)
10280 <stratum>: Add "final".
10281
a12e5744
TT
102822019-04-17 Tom Tromey <tromey@adacore.com>
10283
10284 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10285 against nullptr before use.
10286
a7e559cc
AH
102872019-04-17 Alan Hayward <alan.hayward@arm.com>
10288
10289 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10290
c01660c6
AB
102912019-04-17 Jim Wilson <jimw@sifive.com>
10292 Andrew Burgess <andrew.burgess@embecosm.com>
10293
10294 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10295 code read might fail, assume 4-byte breakpoint in that case.
10296
4aa866af
LS
102972019-04-15 Leszek Swirski <leszeks@google.com>
10298
10299 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10300 rather than a hand-rolled POD check when checking for forced MEMORY
10301 classification.
10302
48574d91
AH
103032019-04-15 Alan Hayward <alan.hayward@arm.com>
10304
10305 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10306 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10307 function.
10308 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10309 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10310 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10311 declaration.
10312
4da037ef
AH
103132019-04-15 Alan Hayward <alan.hayward@arm.com>
10314
10315 * aarch64-linux-nat.c
10316 (aarch64_linux_nat_target::thread_architecture): Add override.
10317 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10318 each VQ.
10319
ccb8d7e8
AH
103202019-04-15 Alan Hayward <alan.hayward@arm.com>
10321
10322 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10323
35add35e
AB
103242019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10327 target types of size 96-bits, add some additional comments, and
10328 check that the builtin type we found was the correct size.
10329
51196bbc
EZ
103302019-04-12 Eli Zaretskii <eliz@gnu.org>
10331
10332 * utils.c (prompt_for_continue): Don't restore the styling at the
10333 end, as applied_style has the wrong value. This fixes styling in
10334 long lists of file names that are interrupted by the "Continue?"
10335 prompt.
10336
62253a61
AB
103372019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10338
10339 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10340 * c-lang.c (c_language_defn): Likewise.
10341 (cplus_language_defn): Likewise.
10342 (asm_language_defn): Likewise.
10343 (minimal_language_defn): Likewise.
10344 * d-lang.c (d_language_defn): Likewise.
10345 * f-lang.c (f_language_defn): Likewise.
10346 * go-lang.c (go_language_defn): Likewise.
10347 * language.c (unknown_language_defn): Likewise.
10348 (auto_language_defn): Likewise.
10349 * language.h (struct language_defn): Remove la_magic field.
10350 (LANG_MAGIC): Delete.
10351 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10352 * objc-lang.c (objc_language_defn): Likewise.
10353 * opencl-lang.c (opencl_language_defn): Likewise.
10354 * p-lang.c (pascal_language_defn): Likewise.
10355 * rust-lang.c (rust_language_defn): Likewise.
10356
a9158a86
AB
103572019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10358
10359 * riscv-tdep.c (riscv_type_align): New function.
10360 (riscv_type_alignment): Delete.
10361 (riscv_arg_location): Use 'type_align'.
10362 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10363
41077b66
AB
103642019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10365
10366 * gdbtypes.c (type_align): A struct with no non-static fields also
10367 has alignment of 1.
10368
9f0272f8
AB
103692019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10370
10371 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10372 component to 0.
10373 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10374 member.
10375 (riscv_struct_info::analyse): New implementation using new
10376 analyse_inner member function.
10377 (riscv_struct_info::field_offset): New member function.
10378 (riscv_struct_info::m_offsets): New member variable.
10379 (riscv_struct_info::analyse_inner): New private member function,
10380 takes the old implementation of riscv_struct_info::analyse but
10381 extended to track field offsets.
10382 (riscv_call_arg_struct): Update the struct folding special cases
10383 to handle cases where empty C++ structs, which are non-zero
10384 length, are found.
10385 (riscv_arg_location): Initialise the length of each location, a
10386 non-zero length now indicates the location is in use.
10387 (riscv_push_dummy_call): Allow for the first location having a
10388 non-zero offset when setting up arguments.
10389 (riscv_return_value): Likewise, but for return values.
10390
02cf60c7
TT
103912019-04-11 Tom Tromey <tromey@adacore.com>
10392
10393 * utils.c (internal_vproblem): Make "msg" const.
10394
68811f8f
AH
103952019-04-11 Alan Hayward <alan.hayward@arm.com>
10396
10397 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10398 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10399 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10400 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10401
3f52fdbc
KB
104022019-04-10 Kevin Buettner <kevinb@redhat.com>
10403
10404 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10405 function.
10406 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10407 of amd64_collect_native_gregset.
10408 (amd64_linux_nat_target::store_registers): Likewise.
10409
e9ad22ee
TT
104102019-04-10 Tom Tromey <tom@tromey.com>
10411
10412 * symtab.c (lookup_global_symbol_from_objfile)
10413 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10414 * objfiles.h (class separate_debug_iterator): New.
10415 (class separate_debug_range): New.
10416 (struct objfile) <separate_debug_objfiles>: New method.
10417 (objfile_separate_debug_iterate): Don't declare.
10418 * objfiles.c (separate_debug_iterator::operator++): Rename from
10419 objfile_separate_debug_iterate.
10420 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10421 iterator.
10422 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10423 iterator.
10424
ee371134
TT
104252019-04-10 Tom Tromey <tom@tromey.com>
10426
10427 * symfile.c (reread_symbols): Remove old comment.
10428 * objfiles.c (free_all_objfiles): Fix a typo.
10429
bf227d61
TT
104302019-04-10 Tom Tromey <tom@tromey.com>
10431
10432 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10433 * minsyms.c (lookup_minimal_symbol): Use foreach.
10434 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10435 (lookup_minimal_symbol_solib_trampoline): Likewise.
10436 * symfile.c (reread_symbols): Use foreach.
10437
8dc433a0
TT
104382019-04-09 Ivan Begert <ivanbegert@gmail.com>
10439 Tom Tromey <tromey@adacore.com>
10440
10441 PR rust/24414:
10442 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10443 (rust_lex_int_test): Change "value" to be LONGEST.
10444 (rust_lex_tests): Add test for long integer literal.
10445
9ab8741a
TT
104462019-04-09 Tom Tromey <tromey@adacore.com>
10447
10448 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10449 to bool.
10450 (extended_remote_target::attach): Update.
10451 (remote_target::remote_notice_new_inferior): Update.
10452 (remote_target::add_current_inferior_and_thread): Update.
10453 * inferior.c (exit_inferior_1): Use "false".
10454 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10455
e242fd12
SM
104562019-04-09 Simon Marchi <simon.marchi@efficios.com>
10457
9ca1957f 10458 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10459 the "start" command.
10460
2b0c8b01
KB
104612019-04-08 Kevin Buettner <kevinb@redhat.com>
10462
10463 * python/py-inferior.c (infpy_thread_from_thread_handle):
10464 Adjust comments to reflect renaming of thread_from_thread_handle
10465 to thread_from_handle. Adjust keywords. Fix type error message.
10466 (inferior_object_methods): Add thread_from_handle. Retain
10467 thread_from_thread_handle, but mark it as deprecated.
10468
50a82723
KB
104692019-04-08 Kevin Buettner <kevinb@redhat.com>
10470
10471 * gdbthread.h (find_thread_by_handle): Revise declaration.
10472 * thread.c (find_thread_by_handle): Likewise. Adjust
10473 implementation too.
10474 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10475 support for buffer objects as handles.
10476
cf63b016
KB
104772019-04-08 Kevin Buettner <kevinb@redhat.com>
10478
10479 * python/py-infthread.c (thpy_thread_handle): New function.
10480 (thread_object_methods): Register thpy_thread_handle.
10481
3d6c6204
KB
104822019-04-08 Kevin Buettner <kevinb@redhat.com>
10483
10484 * gdbthread.h (thread_to_thread_handle): Declare.
10485 * thread.c (gdbtypes.h): Include.
10486 (thread_to_thread_handle): New function.
10487
10488 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10489 (target_thread_info_to_thread_handle): Declare.
10490 * target.c (target_thread_info_to_thread_handle): New function.
10491 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10492 * target-delegates.c: Regenerate.
10493
10494 * linux-thread-db.c (class thread_db_target): Add method
10495 thread_info_to_thread_handle.
10496 (thread_db_target::thread_info_to_thread_handle): Define.
10497 * remote.c (class remote_target): Add new method
10498 thread_info_to_thread_handle.
10499 (remote_target::thread_info_to_thread_handle): Define.
10500
56be6ea8
PA
105012019-04-08 Pedro Alves <palves@redhat.com>
10502
10503 * common/common-exceptions.c (throw_exception): Don't create
10504 named object to throw; throw directly.
10505 (throw_it): Likewise. Don't initialize gdb_exception::message
10506 here, with new; pass FMT and AP to the ctor instead.
10507 * common/common-exceptions.h: Include <string>.
10508 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10509 const char *, va_list)): New ctor. Use std::make_shared.
10510 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10511 errors)): Delete.
10512 (gdb_exception_error::gdb_exception_error(enum errors, const char
10513 *, va_list)): New.
10514 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10515 Add assertion.
10516 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10517 errors)): Delete.
10518 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10519 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10520 Add assertion.
10521
eedc3f4f
TT
105222019-04-08 Tom Tromey <tom@tromey.com>
10523
10524 * valops.c (value_rtti_indirect_type): Replace throw_exception
10525 with throw.
10526 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10527 with throw.
10528 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10529 throw.
10530 * target.c (target_translate_tls_address): Replace throw_exception
10531 with throw.
10532 * stack.c (frame_apply_command_count): Replace throw_exception
10533 with throw.
10534 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10535 throw.
10536 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10537 with throw.
10538 * rs6000-tdep.c (rs6000_frame_cache)
10539 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10540 * remote.c: Replace throw_exception with throw.
10541 * record-full.c (record_full_message, record_full_wait_1)
10542 (record_full_restore): Replace throw_exception with throw.
10543 * record-btrace.c:
10544 (get_thread_current_frame_id, record_btrace_start_replaying)
10545 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10546 (cmd_record_btrace_start): Replace throw_exception with throw.
10547 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10548 throw.
10549 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10550 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10551 * linespec.c:
10552 (find_linespec_symbols): Replace throw_exception with throw.
10553 * infrun.c (displaced_step_prepare, resume): Replace
10554 throw_exception with throw.
10555 * infcmd.c (post_create_inferior): Replace throw_exception with
10556 throw.
10557 * inf-loop.c (inferior_event_handler): Replace throw_exception
10558 with throw.
10559 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10560 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10561 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10562 (get_prev_frame_always, get_frame_pc_if_available)
10563 (get_frame_address_in_block_if_available, get_frame_language):
10564 Replace throw_exception with throw.
10565 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10566 throw_exception with throw.
10567 * eval.c (fetch_subexp_value, evaluate_var_value)
10568 (evaluate_funcall, evaluate_subexp_standard): Replace
10569 throw_exception with throw.
10570 * dwarf2loc.c (call_site_find_chain)
10571 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10572 Replace throw_exception with throw.
10573 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10574 with throw.
10575 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10576 throw.
10577 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10578 * completer.c (complete_line_internal): Replace throw_exception
10579 with throw.
10580 * compile/compile-object-run.c (compile_object_run): Replace
10581 throw_exception with throw.
10582 * cli/cli-script.c (process_next_line): Replace throw_exception
10583 with throw.
10584 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10585 (btrace_enable, btrace_maint_update_pt_packets): Replace
10586 throw_exception with throw.
10587 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10588 throw_exception with throw.
10589 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10590 throw_exception with throw.
10591 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10592 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10593 * aarch64-tdep.c (aarch64_make_prologue_cache)
10594 (aarch64_make_stub_cache): Replace throw_exception with throw.
10595
26003a20
TT
105962019-04-08 Tom Tromey <tom@tromey.com>
10597
10598 * common/common-exceptions.c (throw_exception): Rename from
10599 throw_exception_cxx. Remove old copy. Make argument const.
10600 (throw_it): Create and throw exception objects directly.
10601 * common/common-exceptions.h (throw_exception): Make argument
10602 const.
10603 (struct gdb_exception_error): Add constructor.
10604 (struct gdb_exception_quit): Add constructor.
10605
d272eb37
TT
106062019-04-08 Tom Tromey <tom@tromey.com>
10607
10608 * common/common-exceptions.h (exception_rethrow): Don't declare.
10609 (TRY_SJLJ): Update comment.
10610 (TRY, CATCH, END_CATCH): Remove.
10611 * common/common-exceptions.c (exception_rethrow): Remove.
10612
230d2906
TT
106132019-04-08 Tom Tromey <tom@tromey.com>
10614
10615 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10616 Remove.
10617 (gdb_exception_error): Rename from
10618 gdb_exception_RETURN_MASK_ERROR.
10619 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10620 (gdb_quit_bad_alloc): Update.
10621 * aarch64-tdep.c: Update.
10622 * ada-lang.c: Update.
10623 * ada-typeprint.c: Update.
10624 * ada-valprint.c: Update.
10625 * amd64-tdep.c: Update.
10626 * arch-utils.c: Update.
10627 * break-catch-throw.c: Update.
10628 * breakpoint.c: Update.
10629 * btrace.c: Update.
10630 * c-varobj.c: Update.
10631 * cli/cli-cmds.c: Update.
10632 * cli/cli-interp.c: Update.
10633 * cli/cli-script.c: Update.
10634 * common/common-exceptions.c: Update.
10635 * common/new-op.c: Update.
10636 * common/selftest.c: Update.
10637 * compile/compile-c-symbols.c: Update.
10638 * compile/compile-cplus-symbols.c: Update.
10639 * compile/compile-object-load.c: Update.
10640 * compile/compile-object-run.c: Update.
10641 * completer.c: Update.
10642 * corelow.c: Update.
10643 * cp-abi.c: Update.
10644 * cp-support.c: Update.
10645 * cp-valprint.c: Update.
10646 * darwin-nat.c: Update.
10647 * disasm-selftests.c: Update.
10648 * dtrace-probe.c: Update.
10649 * dwarf-index-cache.c: Update.
10650 * dwarf-index-write.c: Update.
10651 * dwarf2-frame-tailcall.c: Update.
10652 * dwarf2-frame.c: Update.
10653 * dwarf2loc.c: Update.
10654 * dwarf2read.c: Update.
10655 * eval.c: Update.
10656 * event-loop.c: Update.
10657 * event-top.c: Update.
10658 * exec.c: Update.
10659 * f-valprint.c: Update.
10660 * fbsd-tdep.c: Update.
10661 * frame-unwind.c: Update.
10662 * frame.c: Update.
10663 * gdbtypes.c: Update.
10664 * gnu-v3-abi.c: Update.
10665 * guile/guile-internal.h: Update.
10666 * guile/scm-block.c: Update.
10667 * guile/scm-breakpoint.c: Update.
10668 * guile/scm-cmd.c: Update.
10669 * guile/scm-disasm.c: Update.
10670 * guile/scm-frame.c: Update.
10671 * guile/scm-lazy-string.c: Update.
10672 * guile/scm-math.c: Update.
10673 * guile/scm-param.c: Update.
10674 * guile/scm-ports.c: Update.
10675 * guile/scm-pretty-print.c: Update.
10676 * guile/scm-symbol.c: Update.
10677 * guile/scm-symtab.c: Update.
10678 * guile/scm-type.c: Update.
10679 * guile/scm-value.c: Update.
10680 * i386-linux-tdep.c: Update.
10681 * i386-tdep.c: Update.
10682 * inf-loop.c: Update.
10683 * infcall.c: Update.
10684 * infcmd.c: Update.
10685 * infrun.c: Update.
10686 * jit.c: Update.
10687 * language.c: Update.
10688 * linespec.c: Update.
10689 * linux-fork.c: Update.
10690 * linux-nat.c: Update.
10691 * linux-tdep.c: Update.
10692 * linux-thread-db.c: Update.
10693 * main.c: Update.
10694 * mi/mi-cmd-break.c: Update.
10695 * mi/mi-cmd-stack.c: Update.
10696 * mi/mi-interp.c: Update.
10697 * mi/mi-main.c: Update.
10698 * objc-lang.c: Update.
10699 * p-valprint.c: Update.
10700 * parse.c: Update.
10701 * ppc-linux-tdep.c: Update.
10702 * printcmd.c: Update.
10703 * python/py-arch.c: Update.
10704 * python/py-breakpoint.c: Update.
10705 * python/py-cmd.c: Update.
10706 * python/py-finishbreakpoint.c: Update.
10707 * python/py-frame.c: Update.
10708 * python/py-framefilter.c: Update.
10709 * python/py-gdb-readline.c: Update.
10710 * python/py-inferior.c: Update.
10711 * python/py-infthread.c: Update.
10712 * python/py-lazy-string.c: Update.
10713 * python/py-linetable.c: Update.
10714 * python/py-objfile.c: Update.
10715 * python/py-param.c: Update.
10716 * python/py-prettyprint.c: Update.
10717 * python/py-progspace.c: Update.
10718 * python/py-record-btrace.c: Update.
10719 * python/py-record.c: Update.
10720 * python/py-symbol.c: Update.
10721 * python/py-type.c: Update.
10722 * python/py-unwind.c: Update.
10723 * python/py-utils.c: Update.
10724 * python/py-value.c: Update.
10725 * python/python.c: Update.
10726 * record-btrace.c: Update.
10727 * record-full.c: Update.
10728 * remote-fileio.c: Update.
10729 * remote.c: Update.
10730 * riscv-tdep.c: Update.
10731 * rs6000-aix-tdep.c: Update.
10732 * rs6000-tdep.c: Update.
10733 * rust-exp.y: Update.
10734 * rust-lang.c: Update.
10735 * s390-tdep.c: Update.
10736 * selftest-arch.c: Update.
10737 * solib-dsbt.c: Update.
10738 * solib-frv.c: Update.
10739 * solib-spu.c: Update.
10740 * solib-svr4.c: Update.
10741 * solib.c: Update.
10742 * sparc64-linux-tdep.c: Update.
10743 * stack.c: Update.
10744 * symfile-mem.c: Update.
10745 * symmisc.c: Update.
10746 * target.c: Update.
10747 * thread.c: Update.
10748 * top.c: Update.
10749 * tracefile-tfile.c: Update.
10750 * tui/tui.c: Update.
10751 * typeprint.c: Update.
10752 * unittests/cli-utils-selftests.c: Update.
10753 * unittests/parse-connection-spec-selftests.c: Update.
10754 * valops.c: Update.
10755 * valprint.c: Update.
10756 * value.c: Update.
10757 * varobj.c: Update.
10758 * windows-nat.c: Update.
10759 * x86-linux-nat.c: Update.
10760 * xml-support.c: Update.
10761
a70b8144
TT
107622019-04-08 Tom Tromey <tom@tromey.com>
10763
10764 * xml-support.c: Use C++ exception handling.
10765 * x86-linux-nat.c: Use C++ exception handling.
10766 * windows-nat.c: Use C++ exception handling.
10767 * varobj.c: Use C++ exception handling.
10768 * value.c: Use C++ exception handling.
10769 * valprint.c: Use C++ exception handling.
10770 * valops.c: Use C++ exception handling.
10771 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10772 handling.
10773 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10774 * typeprint.c: Use C++ exception handling.
10775 * tui/tui.c: Use C++ exception handling.
10776 * tracefile-tfile.c: Use C++ exception handling.
10777 * top.c: Use C++ exception handling.
10778 * thread.c: Use C++ exception handling.
10779 * target.c: Use C++ exception handling.
10780 * symmisc.c: Use C++ exception handling.
10781 * symfile-mem.c: Use C++ exception handling.
10782 * stack.c: Use C++ exception handling.
10783 * sparc64-linux-tdep.c: Use C++ exception handling.
10784 * solib.c: Use C++ exception handling.
10785 * solib-svr4.c: Use C++ exception handling.
10786 * solib-spu.c: Use C++ exception handling.
10787 * solib-frv.c: Use C++ exception handling.
10788 * solib-dsbt.c: Use C++ exception handling.
10789 * selftest-arch.c: Use C++ exception handling.
10790 * s390-tdep.c: Use C++ exception handling.
10791 * rust-lang.c: Use C++ exception handling.
10792 * rust-exp.y: Use C++ exception handling.
10793 * rs6000-tdep.c: Use C++ exception handling.
10794 * rs6000-aix-tdep.c: Use C++ exception handling.
10795 * riscv-tdep.c: Use C++ exception handling.
10796 * remote.c: Use C++ exception handling.
10797 * remote-fileio.c: Use C++ exception handling.
10798 * record-full.c: Use C++ exception handling.
10799 * record-btrace.c: Use C++ exception handling.
10800 * python/python.c: Use C++ exception handling.
10801 * python/py-value.c: Use C++ exception handling.
10802 * python/py-utils.c: Use C++ exception handling.
10803 * python/py-unwind.c: Use C++ exception handling.
10804 * python/py-type.c: Use C++ exception handling.
10805 * python/py-symbol.c: Use C++ exception handling.
10806 * python/py-record.c: Use C++ exception handling.
10807 * python/py-record-btrace.c: Use C++ exception handling.
10808 * python/py-progspace.c: Use C++ exception handling.
10809 * python/py-prettyprint.c: Use C++ exception handling.
10810 * python/py-param.c: Use C++ exception handling.
10811 * python/py-objfile.c: Use C++ exception handling.
10812 * python/py-linetable.c: Use C++ exception handling.
10813 * python/py-lazy-string.c: Use C++ exception handling.
10814 * python/py-infthread.c: Use C++ exception handling.
10815 * python/py-inferior.c: Use C++ exception handling.
10816 * python/py-gdb-readline.c: Use C++ exception handling.
10817 * python/py-framefilter.c: Use C++ exception handling.
10818 * python/py-frame.c: Use C++ exception handling.
10819 * python/py-finishbreakpoint.c: Use C++ exception handling.
10820 * python/py-cmd.c: Use C++ exception handling.
10821 * python/py-breakpoint.c: Use C++ exception handling.
10822 * python/py-arch.c: Use C++ exception handling.
10823 * printcmd.c: Use C++ exception handling.
10824 * ppc-linux-tdep.c: Use C++ exception handling.
10825 * parse.c: Use C++ exception handling.
10826 * p-valprint.c: Use C++ exception handling.
10827 * objc-lang.c: Use C++ exception handling.
10828 * mi/mi-main.c: Use C++ exception handling.
10829 * mi/mi-interp.c: Use C++ exception handling.
10830 * mi/mi-cmd-stack.c: Use C++ exception handling.
10831 * mi/mi-cmd-break.c: Use C++ exception handling.
10832 * main.c: Use C++ exception handling.
10833 * linux-thread-db.c: Use C++ exception handling.
10834 * linux-tdep.c: Use C++ exception handling.
10835 * linux-nat.c: Use C++ exception handling.
10836 * linux-fork.c: Use C++ exception handling.
10837 * linespec.c: Use C++ exception handling.
10838 * language.c: Use C++ exception handling.
10839 * jit.c: Use C++ exception handling.
10840 * infrun.c: Use C++ exception handling.
10841 * infcmd.c: Use C++ exception handling.
10842 * infcall.c: Use C++ exception handling.
10843 * inf-loop.c: Use C++ exception handling.
10844 * i386-tdep.c: Use C++ exception handling.
10845 * i386-linux-tdep.c: Use C++ exception handling.
10846 * guile/scm-value.c: Use C++ exception handling.
10847 * guile/scm-type.c: Use C++ exception handling.
10848 * guile/scm-symtab.c: Use C++ exception handling.
10849 * guile/scm-symbol.c: Use C++ exception handling.
10850 * guile/scm-pretty-print.c: Use C++ exception handling.
10851 * guile/scm-ports.c: Use C++ exception handling.
10852 * guile/scm-param.c: Use C++ exception handling.
10853 * guile/scm-math.c: Use C++ exception handling.
10854 * guile/scm-lazy-string.c: Use C++ exception handling.
10855 * guile/scm-frame.c: Use C++ exception handling.
10856 * guile/scm-disasm.c: Use C++ exception handling.
10857 * guile/scm-cmd.c: Use C++ exception handling.
10858 * guile/scm-breakpoint.c: Use C++ exception handling.
10859 * guile/scm-block.c: Use C++ exception handling.
10860 * guile/guile-internal.h: Use C++ exception handling.
10861 * gnu-v3-abi.c: Use C++ exception handling.
10862 * gdbtypes.c: Use C++ exception handling.
10863 * frame.c: Use C++ exception handling.
10864 * frame-unwind.c: Use C++ exception handling.
10865 * fbsd-tdep.c: Use C++ exception handling.
10866 * f-valprint.c: Use C++ exception handling.
10867 * exec.c: Use C++ exception handling.
10868 * event-top.c: Use C++ exception handling.
10869 * event-loop.c: Use C++ exception handling.
10870 * eval.c: Use C++ exception handling.
10871 * dwarf2read.c: Use C++ exception handling.
10872 * dwarf2loc.c: Use C++ exception handling.
10873 * dwarf2-frame.c: Use C++ exception handling.
10874 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10875 * dwarf-index-write.c: Use C++ exception handling.
10876 * dwarf-index-cache.c: Use C++ exception handling.
10877 * dtrace-probe.c: Use C++ exception handling.
10878 * disasm-selftests.c: Use C++ exception handling.
10879 * darwin-nat.c: Use C++ exception handling.
10880 * cp-valprint.c: Use C++ exception handling.
10881 * cp-support.c: Use C++ exception handling.
10882 * cp-abi.c: Use C++ exception handling.
10883 * corelow.c: Use C++ exception handling.
10884 * completer.c: Use C++ exception handling.
10885 * compile/compile-object-run.c: Use C++ exception handling.
10886 * compile/compile-object-load.c: Use C++ exception handling.
10887 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10888 * compile/compile-c-symbols.c: Use C++ exception handling.
10889 * common/selftest.c: Use C++ exception handling.
10890 * common/new-op.c: Use C++ exception handling.
10891 * cli/cli-script.c: Use C++ exception handling.
10892 * cli/cli-interp.c: Use C++ exception handling.
10893 * cli/cli-cmds.c: Use C++ exception handling.
10894 * c-varobj.c: Use C++ exception handling.
10895 * btrace.c: Use C++ exception handling.
10896 * breakpoint.c: Use C++ exception handling.
10897 * break-catch-throw.c: Use C++ exception handling.
10898 * arch-utils.c: Use C++ exception handling.
10899 * amd64-tdep.c: Use C++ exception handling.
10900 * ada-valprint.c: Use C++ exception handling.
10901 * ada-typeprint.c: Use C++ exception handling.
10902 * ada-lang.c: Use C++ exception handling.
10903 * aarch64-tdep.c: Use C++ exception handling.
10904
3d6e9d23
TT
109052019-04-08 Tom Tromey <tom@tromey.com>
10906
10907 * xml-support.c (gdb_xml_parser::parse): Update.
10908 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10909 * value.c (show_convenience): Update.
10910 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10911 (test_parse_flags_qcs): Update.
10912 * thread.c (thr_try_catch_cmd): Update.
10913 * target.c (target_translate_tls_address): Update.
10914 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10915 (info_frame_command_core, frame_apply_command_count): Update.
10916 * rust-exp.y (rust_lex_exception_test): Update.
10917 * riscv-tdep.c (riscv_print_one_register_info): Update.
10918 * remote.c (remote_target::enable_btrace): Update.
10919 * record-btrace.c (record_btrace_enable_warn): Update.
10920 * python/py-utils.c (gdbpy_convert_exception): Update.
10921 * printcmd.c (do_one_display, print_variable_and_value): Update.
10922 * mi/mi-main.c (mi_print_exception): Update.
10923 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10924 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10925 * linux-nat.c (linux_nat_target::attach): Update.
10926 * linux-fork.c (class scoped_switch_fork_info): Update.
10927 * infrun.c (displaced_step_prepare): Update.
10928 * infcall.c (call_function_by_hand_dummy): Update.
10929 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10930 * gnu-v3-abi.c (print_one_vtable): Update.
10931 * frame.c (get_prev_frame_always): Update.
10932 * f-valprint.c (info_common_command_for_block): Update.
10933 * exec.c (try_open_exec_file): Update.
10934 * exceptions.c (print_exception, exception_print)
10935 (exception_fprintf, exception_print_same): Update.
10936 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10937 * dwarf-index-cache.c (index_cache::store)
10938 (index_cache::lookup_gdb_index): Update.
10939 * darwin-nat.c (maybe_cache_shell): Update.
10940 * cp-valprint.c (cp_print_value_fields): Update.
10941 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10942 (gcc_cplus_symbol_address): Update.
10943 * compile/compile-c-symbols.c (gcc_convert_symbol)
10944 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10945 * common/selftest.c: Update.
10946 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10947 a std::string.
10948 (exception_try_scope_entry, exception_try_scope_exit): Don't
10949 declare.
10950 (struct exception_try_scope): Remove.
10951 (TRY): Don't use exception_try_scope.
10952 (struct gdb_exception): Add constructor, operator=.
10953 <what>: New method.
10954 (struct gdb_exception_RETURN_MASK_ALL)
10955 (struct gdb_exception_RETURN_MASK_ERROR)
10956 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10957 (struct gdb_quit_bad_alloc): Update.
10958 * common/common-exceptions.c (exception_none): Change
10959 initializer.
10960 (struct catcher) <state, exception>: Initialize inline.
10961 <prev>: Remove member.
10962 (current_catcher): Remove.
10963 (catchers): New global.
10964 (exceptions_state_mc_init): Simplify.
10965 (catcher_pop): Remove.
10966 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10967 (try_scope_depth, exception_try_scope_entry)
10968 (exception_try_scope_exit): Remove.
10969 (throw_exception_sjlj): Update.
10970 (exception_messages, exception_messages_size): Remove.
10971 (throw_it): Simplify.
10972 (gdb_exception_sliced_copy): Remove.
10973 (throw_exception_cxx): Update.
10974 * cli/cli-script.c (script_from_file): Update.
10975 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10976 Update.
10977 * ada-valprint.c (ada_val_print): Update.
10978 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10979 (create_excep_cond_exprs): Update.
10980
c5c10118
TT
109812019-04-08 Tom Tromey <tom@tromey.com>
10982
10983 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10984 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10985 (TRY, CATCH, END_CATCH): Remove some definitions.
10986 * common/common-exceptions.c: Don't use GDB_XCPT.
10987 (catcher_list_size): Remove.
10988 (throw_exception, throw_it): Simplify.
10989
4de283e4
TT
109902019-04-05 Tom Tromey <tom@tromey.com>
10991
10992 Revert the header-sorting patch.
10993 * ft32-tdep.c: Revert.
10994 * frv-tdep.c: Revert.
10995 * frv-linux-tdep.c: Revert.
10996 * frame.c: Revert.
10997 * frame-unwind.c: Revert.
10998 * frame-base.c: Revert.
10999 * fork-child.c: Revert.
11000 * findvar.c: Revert.
11001 * findcmd.c: Revert.
11002 * filesystem.c: Revert.
11003 * filename-seen-cache.h: Revert.
11004 * filename-seen-cache.c: Revert.
11005 * fbsd-tdep.c: Revert.
11006 * fbsd-nat.h: Revert.
11007 * fbsd-nat.c: Revert.
11008 * f-valprint.c: Revert.
11009 * f-typeprint.c: Revert.
11010 * f-lang.c: Revert.
11011 * extension.h: Revert.
11012 * extension.c: Revert.
11013 * extension-priv.h: Revert.
11014 * expprint.c: Revert.
11015 * exec.h: Revert.
11016 * exec.c: Revert.
11017 * exceptions.c: Revert.
11018 * event-top.c: Revert.
11019 * event-loop.c: Revert.
11020 * eval.c: Revert.
11021 * elfread.c: Revert.
11022 * dwarf2read.h: Revert.
11023 * dwarf2read.c: Revert.
11024 * dwarf2loc.c: Revert.
11025 * dwarf2expr.h: Revert.
11026 * dwarf2expr.c: Revert.
11027 * dwarf2-frame.c: Revert.
11028 * dwarf2-frame-tailcall.c: Revert.
11029 * dwarf-index-write.h: Revert.
11030 * dwarf-index-write.c: Revert.
11031 * dwarf-index-common.c: Revert.
11032 * dwarf-index-cache.h: Revert.
11033 * dwarf-index-cache.c: Revert.
11034 * dummy-frame.c: Revert.
11035 * dtrace-probe.c: Revert.
11036 * disasm.h: Revert.
11037 * disasm.c: Revert.
11038 * disasm-selftests.c: Revert.
11039 * dictionary.c: Revert.
11040 * dicos-tdep.c: Revert.
11041 * demangle.c: Revert.
11042 * dcache.h: Revert.
11043 * dcache.c: Revert.
11044 * darwin-nat.h: Revert.
11045 * darwin-nat.c: Revert.
11046 * darwin-nat-info.c: Revert.
11047 * d-valprint.c: Revert.
11048 * d-namespace.c: Revert.
11049 * d-lang.c: Revert.
11050 * ctf.c: Revert.
11051 * csky-tdep.c: Revert.
11052 * csky-linux-tdep.c: Revert.
11053 * cris-tdep.c: Revert.
11054 * cris-linux-tdep.c: Revert.
11055 * cp-valprint.c: Revert.
11056 * cp-support.c: Revert.
11057 * cp-namespace.c: Revert.
11058 * cp-abi.c: Revert.
11059 * corelow.c: Revert.
11060 * corefile.c: Revert.
11061 * continuations.c: Revert.
11062 * completer.h: Revert.
11063 * completer.c: Revert.
11064 * complaints.c: Revert.
11065 * coffread.c: Revert.
11066 * coff-pe-read.c: Revert.
11067 * cli-out.h: Revert.
11068 * cli-out.c: Revert.
11069 * charset.c: Revert.
11070 * c-varobj.c: Revert.
11071 * c-valprint.c: Revert.
11072 * c-typeprint.c: Revert.
11073 * c-lang.c: Revert.
11074 * buildsym.c: Revert.
11075 * buildsym-legacy.c: Revert.
11076 * build-id.h: Revert.
11077 * build-id.c: Revert.
11078 * btrace.c: Revert.
11079 * bsd-uthread.c: Revert.
11080 * breakpoint.h: Revert.
11081 * breakpoint.c: Revert.
11082 * break-catch-throw.c: Revert.
11083 * break-catch-syscall.c: Revert.
11084 * break-catch-sig.c: Revert.
11085 * blockframe.c: Revert.
11086 * block.c: Revert.
11087 * bfin-tdep.c: Revert.
11088 * bfin-linux-tdep.c: Revert.
11089 * bfd-target.c: Revert.
11090 * bcache.c: Revert.
11091 * ax-general.c: Revert.
11092 * ax-gdb.h: Revert.
11093 * ax-gdb.c: Revert.
11094 * avr-tdep.c: Revert.
11095 * auxv.c: Revert.
11096 * auto-load.c: Revert.
11097 * arm-wince-tdep.c: Revert.
11098 * arm-tdep.c: Revert.
11099 * arm-symbian-tdep.c: Revert.
11100 * arm-pikeos-tdep.c: Revert.
11101 * arm-obsd-tdep.c: Revert.
11102 * arm-nbsd-tdep.c: Revert.
11103 * arm-nbsd-nat.c: Revert.
11104 * arm-linux-tdep.c: Revert.
11105 * arm-linux-nat.c: Revert.
11106 * arm-fbsd-tdep.c: Revert.
11107 * arm-fbsd-nat.c: Revert.
11108 * arm-bsd-tdep.c: Revert.
11109 * arch-utils.c: Revert.
11110 * arc-tdep.c: Revert.
11111 * arc-newlib-tdep.c: Revert.
11112 * annotate.h: Revert.
11113 * annotate.c: Revert.
11114 * amd64-windows-tdep.c: Revert.
11115 * amd64-windows-nat.c: Revert.
11116 * amd64-tdep.c: Revert.
11117 * amd64-sol2-tdep.c: Revert.
11118 * amd64-obsd-tdep.c: Revert.
11119 * amd64-obsd-nat.c: Revert.
11120 * amd64-nbsd-tdep.c: Revert.
11121 * amd64-nbsd-nat.c: Revert.
11122 * amd64-nat.c: Revert.
11123 * amd64-linux-tdep.c: Revert.
11124 * amd64-linux-nat.c: Revert.
11125 * amd64-fbsd-tdep.c: Revert.
11126 * amd64-fbsd-nat.c: Revert.
11127 * amd64-dicos-tdep.c: Revert.
11128 * amd64-darwin-tdep.c: Revert.
11129 * amd64-bsd-nat.c: Revert.
11130 * alpha-tdep.c: Revert.
11131 * alpha-obsd-tdep.c: Revert.
11132 * alpha-nbsd-tdep.c: Revert.
11133 * alpha-mdebug-tdep.c: Revert.
11134 * alpha-linux-tdep.c: Revert.
11135 * alpha-linux-nat.c: Revert.
11136 * alpha-bsd-tdep.c: Revert.
11137 * alpha-bsd-nat.c: Revert.
11138 * aix-thread.c: Revert.
11139 * agent.c: Revert.
11140 * addrmap.c: Revert.
11141 * ada-varobj.c: Revert.
11142 * ada-valprint.c: Revert.
11143 * ada-typeprint.c: Revert.
11144 * ada-tasks.c: Revert.
11145 * ada-lang.c: Revert.
11146 * aarch64-tdep.c: Revert.
11147 * aarch64-ravenscar-thread.c: Revert.
11148 * aarch64-newlib-tdep.c: Revert.
11149 * aarch64-linux-tdep.c: Revert.
11150 * aarch64-linux-nat.c: Revert.
11151 * aarch64-fbsd-tdep.c: Revert.
11152 * aarch64-fbsd-nat.c: Revert.
11153 * aarch32-linux-nat.c: Revert.
11154
d55e5aa6
TT
111552019-04-05 Tom Tromey <tom@tromey.com>
11156
11157 * ft32-tdep.c: Sort headers.
11158 * frv-tdep.c: Sort headers.
11159 * frv-linux-tdep.c: Sort headers.
11160 * frame.c: Sort headers.
11161 * frame-unwind.c: Sort headers.
11162 * frame-base.c: Sort headers.
11163 * fork-child.c: Sort headers.
11164 * findvar.c: Sort headers.
11165 * findcmd.c: Sort headers.
11166 * filesystem.c: Sort headers.
11167 * filename-seen-cache.h: Sort headers.
11168 * filename-seen-cache.c: Sort headers.
11169 * fbsd-tdep.c: Sort headers.
11170 * fbsd-nat.h: Sort headers.
11171 * fbsd-nat.c: Sort headers.
11172 * f-valprint.c: Sort headers.
11173 * f-typeprint.c: Sort headers.
11174 * f-lang.c: Sort headers.
11175 * extension.h: Sort headers.
11176 * extension.c: Sort headers.
11177 * extension-priv.h: Sort headers.
11178 * expprint.c: Sort headers.
11179 * exec.h: Sort headers.
11180 * exec.c: Sort headers.
11181 * exceptions.c: Sort headers.
11182 * event-top.c: Sort headers.
11183 * event-loop.c: Sort headers.
11184 * eval.c: Sort headers.
11185 * elfread.c: Sort headers.
11186 * dwarf2read.h: Sort headers.
11187 * dwarf2read.c: Sort headers.
11188 * dwarf2loc.c: Sort headers.
11189 * dwarf2expr.h: Sort headers.
11190 * dwarf2expr.c: Sort headers.
11191 * dwarf2-frame.c: Sort headers.
11192 * dwarf2-frame-tailcall.c: Sort headers.
11193 * dwarf-index-write.h: Sort headers.
11194 * dwarf-index-write.c: Sort headers.
11195 * dwarf-index-common.c: Sort headers.
11196 * dwarf-index-cache.h: Sort headers.
11197 * dwarf-index-cache.c: Sort headers.
11198 * dummy-frame.c: Sort headers.
11199 * dtrace-probe.c: Sort headers.
11200 * disasm.h: Sort headers.
11201 * disasm.c: Sort headers.
11202 * disasm-selftests.c: Sort headers.
11203 * dictionary.c: Sort headers.
11204 * dicos-tdep.c: Sort headers.
11205 * demangle.c: Sort headers.
11206 * dcache.h: Sort headers.
11207 * dcache.c: Sort headers.
11208 * darwin-nat.h: Sort headers.
11209 * darwin-nat.c: Sort headers.
11210 * darwin-nat-info.c: Sort headers.
11211 * d-valprint.c: Sort headers.
11212 * d-namespace.c: Sort headers.
11213 * d-lang.c: Sort headers.
11214 * ctf.c: Sort headers.
11215 * csky-tdep.c: Sort headers.
11216 * csky-linux-tdep.c: Sort headers.
11217 * cris-tdep.c: Sort headers.
11218 * cris-linux-tdep.c: Sort headers.
11219 * cp-valprint.c: Sort headers.
11220 * cp-support.c: Sort headers.
11221 * cp-namespace.c: Sort headers.
11222 * cp-abi.c: Sort headers.
11223 * corelow.c: Sort headers.
11224 * corefile.c: Sort headers.
11225 * continuations.c: Sort headers.
11226 * completer.h: Sort headers.
11227 * completer.c: Sort headers.
11228 * complaints.c: Sort headers.
11229 * coffread.c: Sort headers.
11230 * coff-pe-read.c: Sort headers.
11231 * cli-out.h: Sort headers.
11232 * cli-out.c: Sort headers.
11233 * charset.c: Sort headers.
11234 * c-varobj.c: Sort headers.
11235 * c-valprint.c: Sort headers.
11236 * c-typeprint.c: Sort headers.
11237 * c-lang.c: Sort headers.
11238 * buildsym.c: Sort headers.
11239 * buildsym-legacy.c: Sort headers.
11240 * build-id.h: Sort headers.
11241 * build-id.c: Sort headers.
11242 * btrace.c: Sort headers.
11243 * bsd-uthread.c: Sort headers.
11244 * breakpoint.h: Sort headers.
11245 * breakpoint.c: Sort headers.
11246 * break-catch-throw.c: Sort headers.
11247 * break-catch-syscall.c: Sort headers.
11248 * break-catch-sig.c: Sort headers.
11249 * blockframe.c: Sort headers.
11250 * block.c: Sort headers.
11251 * bfin-tdep.c: Sort headers.
11252 * bfin-linux-tdep.c: Sort headers.
11253 * bfd-target.c: Sort headers.
11254 * bcache.c: Sort headers.
11255 * ax-general.c: Sort headers.
11256 * ax-gdb.h: Sort headers.
11257 * ax-gdb.c: Sort headers.
11258 * avr-tdep.c: Sort headers.
11259 * auxv.c: Sort headers.
11260 * auto-load.c: Sort headers.
11261 * arm-wince-tdep.c: Sort headers.
11262 * arm-tdep.c: Sort headers.
11263 * arm-symbian-tdep.c: Sort headers.
11264 * arm-pikeos-tdep.c: Sort headers.
11265 * arm-obsd-tdep.c: Sort headers.
11266 * arm-nbsd-tdep.c: Sort headers.
11267 * arm-nbsd-nat.c: Sort headers.
11268 * arm-linux-tdep.c: Sort headers.
11269 * arm-linux-nat.c: Sort headers.
11270 * arm-fbsd-tdep.c: Sort headers.
11271 * arm-fbsd-nat.c: Sort headers.
11272 * arm-bsd-tdep.c: Sort headers.
11273 * arch-utils.c: Sort headers.
11274 * arc-tdep.c: Sort headers.
11275 * arc-newlib-tdep.c: Sort headers.
11276 * annotate.h: Sort headers.
11277 * annotate.c: Sort headers.
11278 * amd64-windows-tdep.c: Sort headers.
11279 * amd64-windows-nat.c: Sort headers.
11280 * amd64-tdep.c: Sort headers.
11281 * amd64-sol2-tdep.c: Sort headers.
11282 * amd64-obsd-tdep.c: Sort headers.
11283 * amd64-obsd-nat.c: Sort headers.
11284 * amd64-nbsd-tdep.c: Sort headers.
11285 * amd64-nbsd-nat.c: Sort headers.
11286 * amd64-nat.c: Sort headers.
11287 * amd64-linux-tdep.c: Sort headers.
11288 * amd64-linux-nat.c: Sort headers.
11289 * amd64-fbsd-tdep.c: Sort headers.
11290 * amd64-fbsd-nat.c: Sort headers.
11291 * amd64-dicos-tdep.c: Sort headers.
11292 * amd64-darwin-tdep.c: Sort headers.
11293 * amd64-bsd-nat.c: Sort headers.
11294 * alpha-tdep.c: Sort headers.
11295 * alpha-obsd-tdep.c: Sort headers.
11296 * alpha-nbsd-tdep.c: Sort headers.
11297 * alpha-mdebug-tdep.c: Sort headers.
11298 * alpha-linux-tdep.c: Sort headers.
11299 * alpha-linux-nat.c: Sort headers.
11300 * alpha-bsd-tdep.c: Sort headers.
11301 * alpha-bsd-nat.c: Sort headers.
11302 * aix-thread.c: Sort headers.
11303 * agent.c: Sort headers.
11304 * addrmap.c: Sort headers.
11305 * ada-varobj.c: Sort headers.
11306 * ada-valprint.c: Sort headers.
11307 * ada-typeprint.c: Sort headers.
11308 * ada-tasks.c: Sort headers.
11309 * ada-lang.c: Sort headers.
11310 * aarch64-tdep.c: Sort headers.
11311 * aarch64-ravenscar-thread.c: Sort headers.
11312 * aarch64-newlib-tdep.c: Sort headers.
11313 * aarch64-linux-tdep.c: Sort headers.
11314 * aarch64-linux-nat.c: Sort headers.
11315 * aarch64-fbsd-tdep.c: Sort headers.
11316 * aarch64-fbsd-nat.c: Sort headers.
11317 * aarch32-linux-nat.c: Sort headers.
11318
699bd4cf
TT
113192019-04-04 Tom Tromey <tom@tromey.com>
11320
11321 * varobj.c (varobj_create): Update.
11322 * rust-exp.y (struct rust_parser) <update_innermost_block,
11323 lookup_symbol>: New methods.
11324 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11325 Rename.
11326 (rust_parser::rust_lookup_type)
11327 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11328 * printcmd.c (display_command, do_one_display): Update.
11329 * parser-defs.h (struct parser_state) <parser_state>: Add
11330 "tracker" parameter.
11331 (block_tracker): New member.
11332 (class innermost_block_tracker) <innermost_block_tracker>: Add
11333 "types" parameter.
11334 <reset>: Remove method.
11335 (innermost_block): Don't declare.
11336 (null_post_parser): Update.
11337 * parse.c (innermost_block): Remove global.
11338 (write_dollar_variable): Update.
11339 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11340 Remove "tracker_types" parameter.
11341 (parse_expression): Add "tracker" parameter.
11342 (parse_expression_for_completion): Update.
11343 (null_post_parser): Add "tracker" parameter.
11344 * p-exp.y: Update rules.
11345 * m2-exp.y: Update rules.
11346 * language.h (struct language_defn) <la_post_parser>: Add
11347 "tracker" parameter.
11348 * go-exp.y: Update rules.
11349 * f-exp.y: Update rules.
11350 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11351 parameter.
11352 * d-exp.y: Update rules.
11353 * c-exp.y: Update rules.
11354 * breakpoint.c (set_breakpoint_condition): Create an
11355 innermost_block_tracker.
11356 (watch_command_1): Likewise.
11357 * ada-lang.c (resolve): Add "tracker" parameter.
11358 (resolve_subexp): Likewise.
11359 * ada-exp.y (write_var_from_sym): Update.
11360
dac43e32
TT
113612019-04-04 Tom Tromey <tom@tromey.com>
11362
11363 * type-stack.h: New file.
11364 * type-stack.c: New file.
11365 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11366 type-stack.h.
11367 (insert_into_type_stack, insert_type, push_type, push_type_int)
11368 (insert_type_address_space, pop_type, pop_type_int)
11369 (pop_typelist, pop_type_stack, append_type_stack)
11370 (push_type_stack, get_type_stack, push_typelist)
11371 (follow_type_instance_flags, follow_types): Don't declare.
11372 * parse.c (type_stack): Remove global.
11373 (parse_exp_in_context): Update.
11374 (insert_into_type_stack, insert_type, push_type, push_type_int)
11375 (insert_type_address_space, pop_type, pop_type_int)
11376 (pop_typelist, pop_type_stack, append_type_stack)
11377 (push_type_stack, get_type_stack, push_typelist)
11378 (follow_type_instance_flags, follow_types): Remove (moved to
11379 type-stack.c).
11380 * f-exp.y (type_stack): New global.
11381 Update rules.
11382 (push_kind_type, f_parse): Update.
11383 * d-exp.y (type_stack): New global.
11384 Update rules.
11385 (d_parse): Update.
11386 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11387 Update rules.
11388 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11389 (HFILES_NO_SRCDIR): Add type-stack.h.
11390
2a612529
TT
113912019-04-04 Tom Tromey <tom@tromey.com>
11392
11393 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11394 (rust_parser::convert_ast_to_expression, rust_parse)
11395 (rust_lex_test_completion, rust_lex_tests): Update.
11396 * parser-defs.h (struct expr_completion_state): New.
11397 (struct parser_state) <parser_state>: Add completion parameter.
11398 <mark_struct_expression, mark_completion_tag>: New methods.
11399 <parse_completion, m_completion_state>: New members.
11400 (prefixify_expression, null_post_parser): Update.
11401 (mark_struct_expression, mark_completion_tag): Don't declare.
11402 * parse.c (parse_completion, expout_last_struct)
11403 (expout_tag_completion_type, expout_completion_name): Remove
11404 globals.
11405 (parser_state::mark_struct_expression)
11406 (parser_state::mark_completion_tag): Now methods.
11407 (prefixify_expression): Add last_struct parameter.
11408 (prefixify_subexp): Likewise.
11409 (parse_exp_1): Update.
11410 (parse_exp_in_context): Add cstate parameter. Update.
11411 (parse_expression_for_completion): Create an
11412 expr_completion_state.
11413 (null_post_parser): Add "completion" parameter.
11414 * p-exp.y: Update rules.
11415 (yylex): Update.
11416 * language.h (struct language_defn) <la_post_parser>: Add
11417 "completing" parameter.
11418 * go-exp.y: Update rules.
11419 (lex_one_token): Update.
11420 * expression.h (parse_completion): Don't declare.
11421 * d-exp.y: Update rules.
11422 (lex_one_token): Update rules.
11423 * c-exp.y: Update rules.
11424 (lex_one_token): Update.
11425 * ada-lang.c (resolve): Add "parse_completion" parameter.
11426 (resolve_subexp): Likewise.
11427 (ada_resolve_function): Likewise.
11428
43476f0b
TT
114292019-04-04 Tom Tromey <tom@tromey.com>
11430
11431 * parser-defs.h (struct parser_state) <start_arglist,
11432 end_arglist>: New methods.
11433 <arglist_len, m_funcall_chain>: New members.
11434 (arglist_len, start_arglist, end_arglist): Don't declare.
11435 * parse.c (arglist_len, funcall_chain): Remove global.
11436 (start_arglist, end_arglist): Remove functions.
11437 (parse_exp_in_context): Update.
11438 * p-exp.y: Update rules.
11439 * m2-exp.y: Update rules.
11440 * go-exp.y: Update rules.
11441 * f-exp.y: Update rules.
11442 * d-exp.y: Update rules.
11443 * c-exp.y: Update rules.
11444
5776fca3
TT
114452019-04-04 Tom Tromey <tom@tromey.com>
11446
11447 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11448 lex_operator, push_back>: New methods.
11449 Update all rules.
11450 (rust_parser::lex_hex, lex_escape): Rename and update.
11451 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11452 (rust_parser::lex_operator): Rename and update.
11453 (rust_parser::lex_number, rustyylex, rustyyerror)
11454 (rust_lex_test_init, rust_lex_test_sequence)
11455 (rust_lex_test_push_back, rust_lex_tests): Update.
11456 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11457 parameter.
11458 <lexptr, prev_lexptr>: New members.
11459 (lexptr, prev_lexptr): Don't declare.
11460 * parse.c (lexptr, prev_lexptr): Remove globals.
11461 (parse_exp_in_context): Update.
11462 * p-exp.y (yylex, yyerror): Update.
11463 * m2-exp.y (parse_number, yylex, yyerror): Update.
11464 * go-exp.y (lex_one_token, yyerror): Update.
11465 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11466 * d-exp.y (lex_one_token, yyerror): Update.
11467 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11468 (lex_one_token, yyerror): Update.
11469 * ada-lex.l (YY_INPUT): Update.
11470 (rewind_to_char): Update.
11471 * ada-exp.y (yyerror): Update.
11472
8621b685
TT
114732019-04-04 Tom Tromey <tom@tromey.com>
11474
11475 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11476 * parser-defs.h (struct parser_state) <parser_state>: Add new
11477 parameter.
11478 <comma_terminates>: New member.
11479 (comma_terminates): Don't declare global.
11480 * parse.c (comma_terminates): Remove global.
11481 (parse_exp_in_context): Update.
11482 * p-exp.y (yylex): Update.
11483 * m2-exp.y (yylex): Update.
11484 * go-exp.y (lex_one_token): Update.
11485 * f-exp.y (yylex): Update.
11486 * d-exp.y (lex_one_token): Update.
11487 * c-exp.y (lex_one_token): Update.
11488 * ada-lex.l: Update.
11489
28aaf3fd
TT
114902019-04-04 Tom Tromey <tom@tromey.com>
11491
11492 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11493 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11494 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11495 * parser-defs.h (paren_depth): Don't declare.
11496 * parse.c (paren_depth): Remove global.
11497 (parse_exp_in_context): Update.
11498 * p-exp.y (paren_depth): New global.
11499 (pascal_parse): Initialize it.
11500 * m2-exp.y (paren_depth): New global.
11501 (m2_parse): Initialize it.
11502 * go-exp.y (paren_depth): New global.
11503 (go_parse): Initialize it.
11504 * f-exp.y (paren_depth): New global.
11505 (f_parse): Initialize it.
11506 * d-exp.y (paren_depth): New global.
11507 (d_parse): Initialize it.
11508 * c-exp.y (paren_depth): New global.
11509 (c_parse): Initialize it.
11510 * ada-lex.l (paren_depth): New global.
11511 (lexer_init): Initialize it.
11512
1e58a4a4
TT
115132019-04-04 Tom Tromey <tom@tromey.com>
11514
11515 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11516 (rust_parser::convert_ast_to_type)
11517 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11518 * parser-defs.h (struct parser_state) <parser_state>: Add
11519 parameters. Initialize new members.
11520 <expression_context_block, expression_context_pc>: New members.
11521 * parse.c (expression_context_block, expression_context_pc):
11522 Remove globals.
11523 (parse_exp_in_context): Update.
11524 * p-exp.y: Update all rules.
11525 (yylex): Update.
11526 * m2-exp.y: Update all rules.
11527 (yylex): Update.
11528 * go-exp.y (yylex): Update.
11529 * f-exp.y (yylex): Update.
11530 * d-exp.y: Update all rules.
11531 (yylex): Update.
11532 * c-exp.y: Update all rules.
11533 (lex_one_token, classify_name, yylex, c_parse): Update.
11534 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11535
37eedb39
TT
115362019-04-04 Tom Tromey <tom@tromey.com>
11537
11538 * gdbarch.h, gdbarch.c: Rebuild.
11539 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11540 * stap-probe.h:
11541 (struct stap_parse_info): Replace "parser_state" with
11542 "expr_builder".
11543 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11544 (parser_state): New class.
11545 * parse.c (expr_builder): Rename.
11546 (expr_builder::release): Rename.
11547 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11548 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11549 (write_exp_elt_longcst, write_exp_elt_floatcst)
11550 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11551 (write_exp_string_vector, write_exp_bitstring)
11552 (write_exp_msymbol, mark_struct_expression)
11553 (write_dollar_variable)
11554 (insert_type_address_space, increase_expout_size): Replace
11555 "parser_state" with "expr_builder".
11556 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11557 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11558 "parser_state" with "expr_builder".
11559
73923d7e
TT
115602019-04-04 Tom Tromey <tom@tromey.com>
11561
11562 * rust-exp.y: Replace "parse_language" with method call.
11563 * p-exp.y:
11564 (yylex): Replace "parse_language" with method call.
11565 * m2-exp.y:
11566 (yylex): Replace "parse_language" with method call.
11567 * go-exp.y (classify_name): Replace "parse_language" with method
11568 call.
11569 * f-exp.y (yylex): Replace "parse_language" with method call.
11570 * d-exp.y (lex_one_token): Replace "parse_language" with method
11571 call.
11572 * c-exp.y:
11573 (lex_one_token, classify_name, yylex): Replace "parse_language"
11574 with method call.
11575 * ada-exp.y (find_primitive_type, type_char)
11576 (type_system_address): Replace "parse_language" with method call.
11577
fa9f5be6
TT
115782019-04-04 Tom Tromey <tom@tromey.com>
11579
11580 * rust-exp.y: Replace "parse_gdbarch" with method call.
11581 * parse.c (write_dollar_variable, insert_type_address_space):
11582 Replace "parse_gdbarch" with method call.
11583 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11584 call.
11585 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11586 call.
11587 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11588 "parse_gdbarch" with method call.
11589 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11590 with method call.
11591 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11592 "parse_gdbarch" with method call.
11593 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11594 "parse_gdbarch" with method call.
11595 * c-exp.y (parse_type, parse_number, classify_name): Replace
11596 "parse_gdbarch" with method call.
11597 * ada-lex.l: Replace "parse_gdbarch" with method call.
11598 * ada-exp.y (parse_type, find_primitive_type, type_char)
11599 (type_system_address): Replace "parse_gdbarch" with method call.
11600
1201a264
TT
116012019-04-04 Tom Tromey <tom@tromey.com>
11602
11603 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11604 * stap-probe.c (stap_parse_argument): Update.
11605 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11606 initial_size parameter.
11607 * rust-exp.y (rust_lex_tests): Update.
11608 * parse.c (parser_state): Update.
11609 (parse_exp_in_context): Update.
11610 * parser-defs.h (struct parser_state) <parser_state>: Remove
11611 "initial_size" parameter.
11612
e3980ce2
TT
116132019-04-04 Tom Tromey <tom@tromey.com>
11614
11615 * parser-defs.h (increase_expout_size): Don't declare.
11616 * parse.c (increase_expout_size): Now static.
11617
e9f8e3f1
TS
116182019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11619
11620 * gnu-nat.c (gnu_nat_target::wait): Fix
11621 target_waitstatus_to_string call.
11622
d7df6549
AB
116232019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11624
11625 * eval.c (evaluate_subexp_standard): Handle internal functions
11626 during Fortran function call handling.
11627
8bdc1658
AB
116282019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11629
11630 * NEWS: Mention new internal functions.
11631 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11632 (read_base_type): Use dwarf2_init_complex_target_type.
11633 * value.c (creal_internal_fn): New function.
11634 (cimag_internal_fn): New function.
11635 (_initialize_values): Register new internal functions.
11636
c29705b7
PW
116372019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11638
11639 * infrun.c (stop_all_threads): If debug_infrun, always
11640 trace the wait status after wait_one, using
11641 target_waitstatus_to_string and target_pid_to_str.
11642 (handle_inferior_event): Replace various trace of
11643 wait status kind by a single trace.
11644 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11645 wait status kind image by target_waitstatus_to_string.
11646 * target/waitstatus.c (target_waitstatus_to_string): Fix
11647 obsolete comment.
11648
05caa1d2
TT
116492019-04-01 Tom Tromey <tromey@adacore.com>
11650
11651 PR symtab/23331:
11652 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11653
9d1447e0
SDJ
116542019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11655 Pedro Alves <palves@redhat.com>
11656
11657 * top.c (quit_force): Call 'finalize_values'.
11658 * value.c (finalize_values): New function.
11659 * value.h (finalize_values): Declare.
11660
7734102d
EZ
116612019-03-30 Eli Zaretskii <eliz@gnu.org>
11662
11663 * NEWS: Announce $_gdb_major and $_gdb_minor.
11664
11665 * top.c (init_gdb_version_vars): New function.
11666 (gdb_init): Call init_gdb_version_vars.
11667
188e1fa9
TT
116682019-03-29 Tom Tromey <tromey@adacore.com>
11669
11670 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11671 help text. Remove dead code.
11672
2880242d
KS
116732019-03-29 Keith Seitz <keiths@redhat.com>
11674
11675 From Siddhesh Poyarekar:
11676 * f-lang.h (f77_get_upperbound): Return LONGEST.
11677 (f77_get_lowerbound): Likewise.
11678 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11679 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11680 print them.
11681 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11682 plongest to format print it.
11683 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11684 (f77_get_upperbound): Likewise.
11685 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11686 LOWER_BOUND to LONGEST.
11687 (f77_create_arrayprint_offset_tbl): Likewise.
11688
cc1defb1
KS
116892019-03-29 Keith Seitz <keiths@redhat.com>
11690
11691 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11692 %s/pulongest for TYPE_LENGTH instead of %d in format
11693 strings.
11694 * ada-typerint.c (ada_print_type): Likewise.
11695 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11696 * compile/compile-c-support.c (generate_register_struct): Likewise.
11697 * gdbtypes.c (recursive_dump_type): Likewise.
11698 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11699 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11700 instead of %d in format strings.
11701 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11702 to std::min to ULONGEST.
11703 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11704 instead of %d in format strings.
11705 * tracepoint.c (info_scope_command): Likewise.
11706 * typeprint.c (print_offset_data::update)
11707 (print_offset_data::finish): Likewise.
11708 * xtensa-tdep.c (xtensa_store_return_value)
11709 (xtensa_push_dummy_call): Likewise.
11710
e432ccf1
JT
117112019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11712
11713 * windows-nat.c (display_selector): Fixed format specifications
11714 for 64-bit Cygwin.
11715
65d2b333
PW
117162019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11717
11718 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11719
f489207e
SL
117202019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11721
11722 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11723 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11724 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11725 (nios2_linux_init_abi): Install it.
11726
bffa1015
AH
117272019-03-28 Alan Hayward <alan.hayward@arm.com>
11728
11729 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11730
fc96163a
AH
117312019-03-28 Alan Hayward <alan.hayward@arm.com>
11732
11733 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11734
20dc7e9b
PW
117352019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11736 Tom Tromey <tromey@adacore.com>
11737
11738 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11739
7f5331a8
JB
117402019-03-26 Joel Brobecker <brobecker@adacore.com>
11741
11742 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11743 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11744 method to compute the bounds of range types. Also print "[evaluated]"
11745 if the bounds' values come from a dynamic evaluation.
11746
18c77628
AB
117472019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11748
11749 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11750 whitespace when pretty printing is on.
11751
53c973f2
AH
117522019-03-26 Alan Hayward <alan.hayward@arm.com>
11753
e79be6e5 11754 * ppc-linux-nat.c: Add include.
53c973f2 11755
d851aa71
AH
117562019-03-26 Alan Hayward <alan.hayward@arm.com>
11757
e79be6e5 11758 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11759
2fe7bab7
AH
117602019-03-26 Alan Hayward <alan.hayward@arm.com>
11761
e79be6e5 11762 * arm-linux-nat.c: Add include.
2fe7bab7 11763
068ef30e
SM
117642019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11765
11766 * source-cache.c (source_cache::get_source_lines): Re-read
11767 fullname after calling open_source_file.
11768
81a24d04
JB
117692019-03-25 John Baldwin <jhb@FreeBSD.org>
11770
11771 * NEWS: Mention TLS support for FreeBSD.
11772
79e7ae11
TT
117732019-03-25 Tom Tromey <tromey@adacore.com>
11774
11775 * minsyms.c (BUNCH_SIZE): Update comment.
11776 (~minimal_symbol_reader): Remove old comment.
11777 (compact_minimal_symbols): Update comment.
11778 (minimal_symbol_reader::install): Remove old comment. Update
11779 other comments.
11780
d45963c2
AH
117812019-03-25 Alan Hayward <alan.hayward@arm.com>
11782
11783 * s390-linux-nat.c: Add include.
11784
0f83012e
AH
117852019-03-25 Alan Hayward <alan.hayward@arm.com>
11786
11787 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11788 Call linux_get_hwcap.
11789 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11790 Likewise.
11791 (aarch64_linux_get_hwcap): Remove function.
11792 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11793 declaration.
11794 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11795 linux_get_hwcap.
11796 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11797 * linux-tdep.c (linux_get_hwcap): Add function.
11798 (linux_get_hwcap2): Likewise.
11799 * linux-tdep.h (linux_get_hwcap): Add declaration.
11800 (linux_get_hwcap2): Likewise.
11801 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11802 (ppc_linux_get_hwcap2): Likewise.
11803 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11804 linux_get_hwcap.
11805 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11806 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11807 (ppc_linux_nat_target::read_description): Likewise.
11808 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11809 * s390-linux-nat.c: Likewise.
11810 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11811
6640a367
TT
118122019-03-24 Tom Tromey <tom@tromey.com>
11813
11814 * ada-lang.c (standard_lookup): Simplify initialization.
11815 (ada_lookup_symbol_nonlocal): Simplify return.
11816 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11817 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11818 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11819 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11820 initialization.
11821 * solib.c (solib_global_lookup): Simplify.
11822 * symtab.c (null_block_symbol): Remove.
11823 (symbol_cache_lookup): Simplify returns.
11824 (lookup_language_this): Simplify returns.
11825 (lookup_symbol_aux): Simplify return.
11826 (lookup_local_symbol): Simplify returns.
11827 (lookup_global_symbol_from_objfile): Simplify return.
11828 (lookup_symbol_in_objfile_symtabs)
11829 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11830 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11831 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11832 * cp-namespace.c (cp_lookup_bare_symbol)
11833 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11834 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11835 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11836 (cp_lookup_symbol_via_imports): Simplify initialization.
11837 (find_symbol_in_baseclass): Likewise.
11838 * symtab.h (null_block_symbol): Remove.
11839 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11840 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11841 (d_lookup_symbol_module): Likewise.
11842 (find_symbol_in_baseclass): Simplify initialization.
11843
a930ebcd
TT
118442019-03-24 Tom Tromey <tom@tromey.com>
11845
11846 * expression.h: Don't include symtab.h.
11847 (struct block): Forward declare.
11848
582942f4
TT
118492019-03-24 Tom Tromey <tom@tromey.com>
11850
11851 * c-exp.y (typebase): Remove casts.
11852 * gdbtypes.c (lookup_unsigned_typename, )
11853 (lookup_signed_typename): Remove cast.
11854 * eval.c (parse_to_comma_and_eval): Remove cast.
11855 * parse.c (write_dollar_variable): Remove cast.
11856 * block.h (struct block) <superblock>: Now const.
11857 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11858 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11859 (map_block): Make "block" const.
11860 * symfile.h (struct quick_symbol_functions)
11861 <map_matching_symbols>: Constify block argument to "callback".
11862 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11863 const.
11864 (find_pc_sect_compunit_symtab): Make "b" const.
11865 (find_symbol_at_address): Likewise.
11866 (search_symbols): Likewise.
11867 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11868 (dw2_debug_names_lookup_symbol): Likewise.
11869 (dw2_map_matching_symbols): Update.
11870 * p-valprint.c (pascal_val_print): Remove "block".
11871 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11872 (aux_add_nonlocal_symbols): Make "block" const.
11873 (resolve_subexp): Remove cast.
11874 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11875 const.
11876 (iterate_over_file_blocks): Likewise.
11877 * f-exp.y (%union) <bval>: Remove.
11878 * coffread.c (patch_opaque_types): Make "b" const.
11879 * spu-tdep.c (spu_catch_start): Make "block" const.
11880 * c-valprint.c (print_unpacked_pointer): Remove "block".
11881 * symmisc.c (dump_symtab_1): Make "b" const.
11882 (block_depth): Make "block" const.
11883 * d-exp.y (%union) <bval>: Remove.
11884 * cp-support.h (cp_lookup_rtti_type): Update.
11885 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11886 * psymtab.c (psym_lookup_symbol): Make "block" const.
11887 (maintenance_check_psymtabs): Make "b" const.
11888 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11889 (enumerate_locals, enumerate_args): Update.
11890 * python/py-symtab.c (stpy_global_block): Make "block" const.
11891 (stpy_static_block): Likewise.
11892 * inline-frame.c (block_starting_point_at): Make "new_block"
11893 const.
11894 * block.c (find_block_in_blockvector): Make return type const.
11895 (blockvector_for_pc_sect): Make "b" const.
11896 (find_block_in_blockvector): Make "b" const.
11897
7ad417dd
TT
118982019-03-23 Tom Tromey <tom@tromey.com>
11899
11900 * varobj.c (varobj_create): Update.
11901 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11902 * printcmd.c (display_command, do_one_display): Don't reset
11903 innermost_block.
11904 * parser-defs.h (enum innermost_block_tracker_type): Move to
11905 expression.h.
11906 (innermost_block): Update comment.
11907 * parse.c (parse_exp_1): Add tracker_types parameter.
11908 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11909 tracker_types parameter. Reset innermost_block.
11910 (parse_exp_in_context): Remove.
11911 (parse_expression_for_completion): Update.
11912 * objfiles.c (~objfile): Don't reset expression_context_block or
11913 innermost_block.
11914 * expression.h (enum innermost_block_tracker_type): Move from
11915 parser-defs.h.
11916 (parse_exp_1): Add tracker_types parameter.
11917 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11918 reset innermost_block.
11919
b366c208
TT
119202019-03-23 Tom Tromey <tom@tromey.com>
11921
11922 * objfiles.h: Include bcache.h.
11923
9bb9b2f9
TT
119242019-03-23 Tom Tromey <tom@tromey.com>
11925
11926 * linespec.c (get_current_search_block): Use
11927 scoped_restore_current_language.
11928 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11929
59c28372
AH
119302019-03-22 Alan Hayward <alan.hayward@arm.com>
11931 Jiong Wang <jiong.wang@arm.com>
11932
11933 * aarch64-linux-tdep.c
11934 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11935 section.
11936 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11937
17e116a7
AH
119382019-03-22 Alan Hayward <alan.hayward@arm.com>
11939 Jiong Wang <jiong.wang@arm.com>
11940
11941 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11942 instructions.
11943 (aarch64_analyze_prologue_test): Add PACIASP test.
11944 (aarch64_prologue_prev_register): Unmask PC value.
11945
11e1b75f
AH
119462019-03-22 Alan Hayward <alan.hayward@arm.com>
11947 Jiong Wang <jiong.wang@arm.com>
11948
11949 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11950 (aarch64_dwarf2_prev_register): Unmask PC value.
11951 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11952 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11953 DW_CFA_AARCH64_negate_ra_state.
11954 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11955
34dcc7cf
AH
119562019-03-22 Alan Hayward <alan.hayward@arm.com>
11957 Jiong Wang <jiong.wang@arm.com>
11958
11959 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11960 registers.
11961 (aarch64_pseudo_register_name): Likewise.
11962 (aarch64_pseudo_register_type): Likewise.
11963 (aarch64_pseudo_register_reggroup_p): Likewise.
11964 (aarch64_gdbarch_init): Add pauth registers.
11965 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11966 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11967 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11968 (struct gdbarch_tdep): Add regnum for ra_state.
11969
1ef53e6b
AH
119702019-03-22 Alan Hayward <alan.hayward@arm.com>
11971 Jiong Wang <jiong.wang@arm.com>
11972
11973 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11974
76bed0fd
AH
119752019-03-22 Alan Hayward <alan.hayward@arm.com>
11976 Jiong Wang <jiong.wang@arm.com>
11977
11978 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11979 function.
11980 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11981 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11982 (aarch64_gdbarch_init): Add puth registers.
11983 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11984 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11985 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11986
ee4fbcfa
AH
119872019-03-22 Alan Hayward <alan.hayward@arm.com>
11988 Jiong Wang <jiong.wang@arm.com>
11989
11990 * aarch64-linux-nat.c
11991 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11992 * aarch64-linux-tdep.c
11993 (aarch64_linux_core_read_description): Likewise.
11994 (aarch64_linux_get_hwcap): New function.
11995 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11996 (aarch64_linux_get_hwcap): New declaration.
11997
6dc0ebde
AH
119982019-03-22 Alan Hayward <alan.hayward@arm.com>
11999 Jiong Wang <jiong.wang@arm.com>
12000
12001 * aarch64-linux-nat.c
12002 (aarch64_linux_nat_target::read_description): Add pauth param.
12003 * aarch64-linux-tdep.c
12004 (aarch64_linux_core_read_description): Likewise.
12005 * aarch64-tdep.c (struct target_desc): Add in pauth.
12006 (aarch64_read_description): Add pauth param.
12007 (aarch64_gdbarch_init): Likewise.
12008 * aarch64-tdep.h (aarch64_read_description): Likewise.
12009 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12010 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12011 * features/Makefile: Add new files.
12012 * features/aarch64-pauth.c: New file.
12013 * features/aarch64-pauth.xml: New file.
12014
595915c1
TT
120152019-03-20 Tom Tromey <tromey@adacore.com>
12016
12017 * infrun.c (handle_inferior_event): Rename from
12018 handle_inferior_event_1. Create a scoped_value_mark.
12019 (handle_inferior_event): Remove.
12020
4c7d57e7
TT
120212019-03-19 Tom Tromey <tromey@adacore.com>
12022
12023 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12024 * infrun.h (print_stop_event): Add "displays" parameter.
12025 * infrun.c (print_stop_event): Add "displays" parameter.
12026
cb246234
PA
120272019-03-19 Pedro Alves <palves@redhat.com>
12028
12029 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12030 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12031 to -1. Fix TABs vs spaces.
12032 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12033 * tui/tui-out.h (tui_ui_out) Add intro comments.
12034 <m_line, m_start_of_line>: In-class initialize, and add describing
12035 comment.
12036
3a0e45b2
AH
120372019-03-18 Alan Hayward <alan.hayward@arm.com>
12038
12039 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12040 variable names.
12041 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12042
5371b850
PA
120432019-03-18 Pedro Alves <palves@redhat.com>
12044 Eli Zaretskii <eliz@gnu.org>
12045
12046 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12047 m_line and m_start_of_line.
12048
b17c4cd0
EZ
120492019-03-18 Eli Zaretskii <eliz@gnu.org>
12050
12051 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12052 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12053 it returns a newline. This fixes a regression in TU mode, whereby
12054 the next line is output on the same screen line as the user input.
12055
4bd56d18
TT
120562019-03-18 Tom Tromey <tromey@adacore.com>
12057
12058 * minsyms.c (minimal_symbol_reader::install): Remove call to
12059 obstack_blank.
12060
55c10aca
PA
120612019-03-18 Pedro Alves <palves@redhat.com>
12062
12063 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12064 New globals.
12065 (apply_style): New, factored out from ...
12066 (apply_ansi_escape): ... this. Handle reverse video mode.
12067 (tui_set_reverse_mode): New function.
12068 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12069 * tui/tui-winsource.c (tui_show_source_line): Use
12070 tui_set_reverse_mode instead of setting A_STANDOUT.
12071 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12072 New setter methods.
12073
647bb750
HD
120742019-03-18 Hannes Domani <ssbssa@yahoo.de>
12075
12076 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12077 Handle tabs.
12078
bff8c71f
TT
120792019-03-18 Tom Tromey <tromey@adacore.com>
12080
12081 * ada-lang.c (empty_array): Add "high" parameter.
12082 (ada_evaluate_subexp): Update.
12083
58785d98
ST
120842019-03-17 Sergei Trofimovich <siarheit@google.com>
12085
12086 * unittests/string_view-selftests.c: Define
12087 _initialize_string_view_selftests unconditionally.
12088
d4cbef22
ВМ
120892019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12090
12091 PR gdb/24350
12092 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12093
fce4c071
ВМ
120942019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12095
12096 PR gdb/24351
12097 * windows-nat.c (display_selector): Fix format specifiers.
12098
f7f0a123
EZ
120992019-03-17 Eli Zaretskii <eliz@gnu.org>
12100
12101 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12102 tui_refill_source_window instead of tui_refresh_win, to update the
12103 current execution line. This fixes redisplay of the current line
12104 when stepping through the code with "next" or "step".
12105
ab42892f
EZ
121062019-03-16 Eli Zaretskii <eliz@gnu.org>
12107
12108 * source-cache.c (source_cache::get_source_lines): Call
12109 find_source_lines to initialize s->nlines. This fixes vertical
12110 scrolling of TUI source window when the DOWN arrow is pressed.
12111
8d8c087f
PW
121122019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12113
12114 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12115 linux-thread-db.c (_initialize_thread_db): Likewise.
12116
798e1c30
EZ
121172019-03-16 Eli Zaretskii <eliz@gnu.org>
12118
12119 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12120 wclrtoeol in tui_show_source_line". This reverts changes made in
12121 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12122
eefba3da
TT
121232019-03-15 Tom Tromey <tom@tromey.com>
12124
12125 * symtab.h (struct minimal_symbol): Derive from
12126 general_symbol_info.
12127 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12128 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12129 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12130 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12131 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12132 (MSYMBOL_SEARCH_NAME): Update.
12133 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12134 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12135 * minsyms.c (minimal_symbol_reader::record_full): Update.
12136
0de2420c
TT
121372019-03-15 Tom Tromey <tom@tromey.com>
12138
12139 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12140
042d75e4
TT
121412019-03-15 Tom Tromey <tom@tromey.com>
12142
12143 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12144 unique_xmalloc_ptr.
12145 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12146 Update.
12147 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12148 (build_minimal_symbol_hash_tables)
12149 (minimal_symbol_reader::install): Update.
12150
db92718b
TT
121512019-03-15 Tom Tromey <tom@tromey.com>
12152
12153 * symtab.c (create_demangled_names_hash): Update.
12154 (symbol_set_names): Update.
12155 * objfiles.h (struct objfile_per_bfd_storage)
12156 <demangled_names_hash>: Now an htab_up.
12157 * objfiles.c (objfile_per_bfd_storage): Simplify.
12158
d6797f46
TT
121592019-03-15 Tom Tromey <tom@tromey.com>
12160
12161 * objfiles.h (struct objfile_per_bfd_storage): Declare
12162 destructor.
12163 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12164 New.
12165 (get_objfile_bfd_data): Use new. Don't initialize
12166 language_of_main.
12167 (free_objfile_per_bfd_storage): Remove.
12168 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12169
741d7538
TT
121702019-03-15 Tom Tromey <tom@tromey.com>
12171
12172 * symfile.c (reread_symbols): Update.
12173 * objfiles.c (objfile::objfile): Update.
12174 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12175 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12176 comment.
12177 (minimal_symbol_reader::install): Update.
12178 (terminate_minimal_symbol_table): Remove.
12179 * jit.c (jit_object_close_impl): Update.
12180
788c80d1
TT
121812019-03-15 Tom Tromey <tom@tromey.com>
12182
12183 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12184 initializations.
12185
1b7a07cb
TT
121862019-03-15 Tom Tromey <tom@tromey.com>
12187
12188 * objfiles.h (struct objfile_per_bfd_storage)
12189 <demangled_hash_languages>: Now a bitset.
12190 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12191 (lookup_minimal_symbol): Update.
12192
3db066bc
TT
121932019-03-15 Tom Tromey <tom@tromey.com>
12194
12195 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12196 Don't return the symbol.
12197 * coffread.c (record_minimal_symbol): Use record_full.
12198
3fff2c37
EZ
121992019-03-14 Eli Zaretskii <eliz@gnu.org>
12200
12201 The MS-Windows port of ncurses fails to switch to a color pair if
12202 one or both of the colors are the implicit default colors. This
12203 change records the default colors when TUI is initialized, and
12204 then specifies them explicitly when a color pair uses the default
12205 colors. This allows color styling in TUI mode on MS-Windows.
12206
12207 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12208 ncurses_norm_attr.
12209 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12210 colors in ncurses_norm_attr.
12211 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12212 "none", replace it with the default color recorded in
12213 ncurses_norm_attr.
12214
3b336828
TT
122152019-03-14 Tom Tromey <tromey@adacore.com>
12216
12217 * source-cache.h (class source_cache) <get_source_lines>: Return
12218 std::string.
12219 * source-cache.c (source_cache::extract_lines): Handle case where
12220 first_pos==npos. Return std::string.
12221 (source_cache::get_source_lines): Update.
12222
d085f989
TT
122232019-03-14 Tom Tromey <tromey@adacore.com>
12224
12225 * NEWS: Add item for "style sources" commands.
12226 * source-cache.c (source_cache::get_source_lines): Check
12227 source_styling.
12228 * cli/cli-style.c (source_styling): New global.
12229 (_initialize_cli_style): Add "style sources" commands.
12230 (show_style_sources): New function.
12231 * cli/cli-style.h (source_styling): Declare.
12232
6f11e682
TT
122332019-03-14 Pedro Alves <palves@redhat.com>
12234 Tom Tromey <tromey@adacore.com>
12235
12236 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12237 * tui/tui-winsource.c (tui_refill_source_window): New function,
12238 from...
12239 (tui_horizontal_source_scroll): ... here. Move some logic.
12240 * cli/cli-style.c (set_style_enabled): Notify new observable.
12241 * tui/tui-hooks.c (tui_redisplay_source): New function.
12242 (tui_attach_detach_observers): Attach or detach
12243 tui_redisplay_source.
12244 * observable.h (source_styling_changed): New observable.
12245 * observable.c: Define source_styling_changed observable.
12246
a068643d
TT
122472019-03-13 Tom Tromey <tromey@adacore.com>
12248
12249 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12250 (i386_gnu_nat_target::store_registers): Update.
12251 * target-debug.h (target_debug_print_std_string): New macro.
12252 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12253 * windows-tdep.c (display_one_tib): Update.
12254 * tui/tui-stack.c (tui_make_status_line): Update.
12255 * top.c (print_inferior_quit_action): Update.
12256 * thread.c (thr_try_catch_cmd): Update.
12257 (add_thread_with_info): Update.
12258 (thread_target_id_str): Update.
12259 (thr_try_catch_cmd): Update.
12260 (thread_command): Update.
12261 (thread_find_command): Update.
12262 * record-btrace.c (record_btrace_target::info_record)
12263 (record_btrace_resume_thread, record_btrace_target::resume)
12264 (record_btrace_cancel_resume, record_btrace_step_thread)
12265 (record_btrace_target::wait, record_btrace_target::wait)
12266 (record_btrace_target::wait, record_btrace_target::stop): Update.
12267 * progspace.c (print_program_space): Update.
12268 * process-stratum-target.c
12269 (process_stratum_target::thread_address_space): Update.
12270 * linux-fork.c (linux_fork_mourn_inferior)
12271 (detach_checkpoint_command, info_checkpoints_command)
12272 (linux_fork_context): Update.
12273 (linux_fork_detach): Update.
12274 (class scoped_switch_fork_info): Update.
12275 (delete_checkpoint_command): Update.
12276 * infrun.c (follow_fork_inferior): Update.
12277 (follow_fork_inferior): Update.
12278 (proceed_after_vfork_done): Update.
12279 (handle_vfork_child_exec_or_exit): Update.
12280 (follow_exec): Update.
12281 (displaced_step_prepare_throw): Update.
12282 (displaced_step_restore): Update.
12283 (start_step_over): Update.
12284 (resume_1): Update.
12285 (clear_proceed_status_thread): Update.
12286 (proceed): Update.
12287 (print_target_wait_results): Update.
12288 (do_target_wait): Update.
12289 (context_switch): Update.
12290 (stop_all_threads): Update.
12291 (restart_threads): Update.
12292 (finish_step_over): Update.
12293 (handle_signal_stop): Update.
12294 (switch_back_to_stepped_thread): Update.
12295 (keep_going_pass_signal): Update.
12296 (print_exited_reason): Update.
12297 (normal_stop): Update.
12298 * inferior.c (inferior_pid_to_str): Change return type.
12299 (print_selected_inferior): Update.
12300 (add_inferior): Update.
12301 (detach_inferior): Update.
12302 * dummy-frame.c (fprint_dummy_frames): Update.
12303 * dcache.c (dcache_info_1): Update.
12304 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12305 (btrace_fetch, btrace_clear): Update.
12306 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12307 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12308 type.
12309 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12310 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12311 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12312 * gdbarch.c, gdbarch.h: Rebuild.
12313 * gdbarch.sh (core_pid_to_str): Change return type.
12314 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12315 return type.
12316 (windows_nat_target::pid_to_str): Change return type.
12317 (windows_delete_thread): Update.
12318 (windows_nat_target::attach): Update.
12319 (windows_nat_target::files_info): Update.
12320 * target-delegates.c: Rebuild.
12321 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12322 return type.
12323 (sol_thread_target::pid_to_str): Change return type.
12324 * remote.c (class remote_target) <pid_to_str>: Change return
12325 type.
12326 (remote_target::pid_to_str): Change return type.
12327 (extended_remote_target::attach, remote_target::remote_stop_ns)
12328 (remote_target::remote_notif_remove_queued_reply)
12329 (remote_target::push_stop_reply, remote_target::disable_btrace):
12330 Update.
12331 (extended_remote_target::attach): Update.
12332 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12333 type.
12334 (gdbsim_target::pid_to_str): Change return type.
12335 * ravenscar-thread.c (struct ravenscar_thread_target)
12336 <pid_to_str>: Change return type.
12337 (ravenscar_thread_target::pid_to_str): Change return type.
12338 * procfs.c (class procfs_target) <pid_to_str>: Change return
12339 type.
12340 (procfs_target::pid_to_str): Change return type.
12341 (procfs_target::attach): Update.
12342 (procfs_target::detach): Update.
12343 (procfs_target::fetch_registers): Update.
12344 (procfs_target::store_registers): Update.
12345 (procfs_target::wait): Update.
12346 (procfs_target::files_info): Update.
12347 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12348 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12349 return type.
12350 (nto_procfs_target::pid_to_str): Change return type.
12351 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12352 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12353 return type.
12354 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12355 (exit_lwp): Update.
12356 (attach_proc_task_lwp_callback, get_detach_signal)
12357 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12358 (linux_nat_target::resume, wait_lwp, stop_callback)
12359 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12360 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12361 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12362 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12363 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12364 type.
12365 (inf_ptrace_target::attach): Update.
12366 (inf_ptrace_target::files_info): Update.
12367 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12368 type.
12369 (go32_nat_target::pid_to_str): Change return type.
12370 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12371 (gnu_nat_target::wait): Update.
12372 (gnu_nat_target::wait): Update.
12373 (gnu_nat_target::resume): Update.
12374 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12375 (fbsd_nat_target::wait): Update.
12376 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12377 type.
12378 (darwin_nat_target::attach): Update.
12379 * corelow.c (class core_target) <pid_to_str>: Change return type.
12380 (core_target::pid_to_str): Change return type.
12381 * target.c (normal_pid_to_str): Change return type.
12382 (default_pid_to_str): Likewise.
12383 (target_pid_to_str): Change return type.
12384 (target_translate_tls_address): Update.
12385 (target_announce_detach): Update.
12386 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12387 return type.
12388 (bsd_uthread_target::pid_to_str): Change return type.
12389 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12390 type.
12391 (bsd_kvm_target::pid_to_str): Change return type.
12392 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12393 return type.
12394 (aix_thread_target::pid_to_str): Change return type.
12395 * target.h (struct target_ops) <pid_to_str>: Change return type.
12396 (target_pid_to_str, normal_pid_to_str): Likewise.
12397 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12398 type.
12399 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12400 type.
12401 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12402 return type.
12403 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12404 type.
12405 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12406 type.
12407 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12408 return type.
12409
b4be1b06
SM
124102019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12411
12412 * NEWS: Mention that the new default MI version is 3. Mention
12413 changes to the output of commands and events that deal with
12414 multi-location breakpoints.
12415 * breakpoint.c: Include "mi/mi-out.h".
12416 (print_one_breakpoint): Change output syntax if using MI version
12417 >= 3.
12418 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12419 New.
12420 (mi_multi_location_breakpoint_output_fixed): New.
12421 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12422 (mi_cmd_fix_multi_location_breakpoint_output): New.
12423 (mi_multi_location_breakpoint_output_fixed): New.
12424 * mi/mi-cmds.c (mi_cmds): Register command
12425 -fix-multi-location-breakpoint-output.
12426 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12427 interpreter "mi".
12428
8e5e5494
SM
124292019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12430
12431 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12432 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12433 instantiate mi_ui_out based on interpreter name.
12434 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12435 * mi/mi-main.c (mi_load_progress): Likewise.
12436
197df35e
JB
124372019-03-12 John Baldwin <jhb@FreeBSD.org>
12438
12439 * NEWS: Combine separate "New targets" sections for 8.3.
12440
8399425f
JB
124412019-03-12 John Baldwin <jhb@FreeBSD.org>
12442
12443 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12444 (ppcfbsd_init_abi): Install gdbarch
12445 "fetch_tls_load_module_address" and "get_thread_local_address"
12446 methods.
12447
b0f87ed0
JB
124482019-03-12 John Baldwin <jhb@FreeBSD.org>
12449
12450 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12451 (riscv_fbsd_init_abi): Install gdbarch
12452 "fetch_tls_load_module_address" and "get_thread_local_address"
12453 methods.
12454
ce25aa57
JB
124552019-03-12 John Baldwin <jhb@FreeBSD.org>
12456
12457 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12458 (i386fbsd_init_abi): Install gdbarch
12459 "fetch_tls_load_module_address" and "get_thread_local_address"
12460 methods.
12461
f5424cfa
JB
124622019-03-12 John Baldwin <jhb@FreeBSD.org>
12463
12464 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12465 (amd64fbsd_init_abi): Install gdbarch
12466 "fetch_tls_load_module_address" and "get_thread_local_address"
12467 methods.
12468
945f3901
JB
124692019-03-12 John Baldwin <jhb@FreeBSD.org>
12470
12471 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12472 (struct fbsd_pspace_data): New type.
12473 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12474 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12475 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12476 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12477 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12478
ef0bd204
JB
124792019-03-12 John Baldwin <jhb@FreeBSD.org>
12480
12481 * gdbtypes.c (lookup_struct_elt): New function.
12482 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12483 * gdbtypes.h (struct struct_elt): New type.
12484 (lookup_struct_elt): New prototype.
12485
36c53a02
JB
124862019-03-12 John Baldwin <jhb@FreeBSD.org>
12487
12488 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12489 remove disabled code block.
12490
6e056c81
JB
124912019-03-12 John Baldwin <jhb@FreeBSD.org>
12492
12493 * gdbarch.sh (get_thread_local_address): New method.
12494 * gdbarch.h, gdbarch.c: Regenerate.
12495 * target.c (target_translate_tls_address): Use
12496 gdbarch_get_thread_local_address if present instead of
12497 target::get_thread_local_address.
12498
cd250a18
JB
124992019-03-12 John Baldwin <jhb@FreeBSD.org>
12500
12501 * target.h (target::get_thread_local_address): Update comment.
12502
df22c1e5
JB
125032019-03-12 John Baldwin <jhb@FreeBSD.org>
12504
12505 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12506 objfile->separate_debug_objfile_backlink if not NULL.
12507
dd6876c9
JB
125082019-03-12 John Baldwin <jhb@FreeBSD.org>
12509
12510 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12511 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12512 (amd64bsd_store_inferior_registers): Likewise.
12513 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12514 Enable segment base registers.
12515 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12516 PT_GETFSBASE and PT_GETGSBASE.
12517 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12518 PT_SETGSBASE.
12519 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12520 segment base registers.
12521 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12522
1163a4b7
JB
125232019-03-12 John Baldwin <jhb@FreeBSD.org>
12524
12525 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12526 Update calls to i386_target_description to add 'segments'
12527 parameter.
12528 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12529 add segment base registers.
12530 * arch/i386.c (i386_create_target_description): Add 'segments'
12531 parameter to enable segment base registers.
12532 * arch/i386.h (i386_create_target_description): Likewise.
12533 * features/i386/32bit-segments.xml: New file.
12534 * features/i386/32bit-segments.c: Generate.
12535 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12536 call to i386_target_description to add 'segments' parameter.
12537 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12538 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12539 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12540 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12541 if feature is present.
12542 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12543 Add 'segments' parameter to call to i386_target_description.
12544 (i386_target_description): Add 'segments' parameter to enable
12545 segment base registers.
12546 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12547 to call to i386_target_description.
12548 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12549 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12550 Define I386_NUM_REGS.
12551 (i386_target_description): Add 'segments' parameter to enable
12552 segment base registers.
12553
3a350822
EZ
125542019-03-12 Eli Zaretskii <eliz@gnu.org>
12555
12556 PR/24325
12557 * source-cache.c: #undef open and close, to avoid unresolved
12558 externals during linking.
12559
ffdd69cf
TT
125602019-03-12 Tom Tromey <tromey@adacore.com>
12561
12562 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12563 const. Add initializers.
12564 (_initialize_remote): Don't initialize ptid globals.
12565
ec148c57
PA
125662019-03-12 Pedro Alves <palves@redhat.com>
12567
12568 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12569
32764270
PA
125702019-03-12 Pedro Alves <palves@redhat.com>
12571
12572 * cp-name-parser.y (main): Remove unused 'len' variable.
12573
17547186
TT
125742019-03-12 Tom Tromey <tromey@adacore.com>
12575
12576 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12577 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12578
d3a70e03
TT
125792019-03-12 Tom Tromey <tromey@adacore.com>
12580
12581 * linux-nat.c (iterate_over_lwps): Update.
12582 (stop_callback): Remove parameter.
12583 (stop_wait_callback, detach_callback, resume_set_callback)
12584 (select_singlestep_lwp_callback, set_ignore_sigint)
12585 (status_callback, resumed_callback, resume_clear_callback)
12586 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12587 data parameter.
12588 (linux_nat_target::detach, linux_nat_target::resume)
12589 (linux_stop_and_wait_all_lwps, select_event_lwp)
12590 (linux_nat_filter_event, linux_nat_wait_1)
12591 (linux_nat_target::kill, linux_nat_target::stop)
12592 (linux_nat_target::stop): Update.
12593 (linux_nat_resume_callback): Change type.
12594 (resume_stopped_resumed_lwps, count_events_callback)
12595 (select_event_lwp_callback): Likewise.
12596 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12597 * arm-linux-nat.c (struct update_registers_data): Remove.
12598 (update_registers_callback): Change type.
12599 (arm_linux_insert_hw_breakpoint1): Update.
12600 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12601 parameter.
12602 (x86_linux_dr_set_addr): Update.
12603 (x86_linux_dr_set_control): Update.
12604 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12605 (iterate_over_lwps): Use gdb::function_view.
12606 * nat/aarch64-linux-hw-point.c (struct
12607 aarch64_dr_update_callback_param): Remove.
12608 (debug_reg_change_callback): Change type.
12609 (aarch64_notify_debug_reg_change): Update.
12610 * s390-linux-nat.c (s390_refresh_per_info): Update.
12611
82cb27ff
TT
126122019-03-11 Tom Tromey <tromey@adacore.com>
12613
12614 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12615 redundant assignment to "this_cu".
12616
568c0683
SM
126172019-03-08 Simon Marchi <simon.marchi@efficios.com>
12618
12619 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12620
f09ce22d
SM
126212019-03-08 Simon Marchi <simon.marchi@efficios.com>
12622
12623 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12624 from...
12625 (rank_one_type): ... this.
12626
595f96a9
SM
126272019-03-08 Simon Marchi <simon.marchi@efficios.com>
12628
12629 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12630 from...
12631 (rank_one_type): ... this.
12632
2598a94b
SM
126332019-03-08 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12636 from...
12637 (rank_one_type): ... this.
12638
7f17b20d
SM
126392019-03-08 Simon Marchi <simon.marchi@efficios.com>
12640
12641 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12642 from...
12643 (rank_one_type): ... this.
12644
2c509035
SM
126452019-03-08 Simon Marchi <simon.marchi@efficios.com>
12646
12647 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12648 from...
12649 (rank_one_type): ... this.
12650
0dd322dc
SM
126512019-03-08 Simon Marchi <simon.marchi@efficios.com>
12652
12653 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12654 from...
12655 (rank_one_type): ... this.
12656
41ea4728
SM
126572019-03-08 Simon Marchi <simon.marchi@efficios.com>
12658
12659 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12660 from...
12661 (rank_one_type): ... this.
12662
793cd1d2
SM
126632019-03-08 Simon Marchi <simon.marchi@efficios.com>
12664
12665 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12666 from...
12667 (rank_one_type): ... this.
12668
34910087
SM
126692019-03-08 Simon Marchi <simon.marchi@efficios.com>
12670
12671 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12672 from...
12673 (rank_one_type): ... this.
12674
f1f832d6
SM
126752019-03-08 Simon Marchi <simon.marchi@efficios.com>
12676
12677 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12678 from...
12679 (rank_one_type): ... this.
12680
b9f4512f
SM
126812019-03-08 Simon Marchi <simon.marchi@efficios.com>
12682
12683 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12684 from...
12685 (rank_one_type): ... this.
12686
9293fc63
SM
126872019-03-08 Simon Marchi <simon.marchi@efficios.com>
12688
12689 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12690 from...
12691 (rank_one_type): ... this.
12692
e3abbe7e
PW
126932019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12694
12695 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12696 inferior-events' shows the example events.
12697
e4adb939
EZ
126982019-03-08 Eli Zaretskii <eliz@gnu.org>
12699
12700 Support styling on native MS-Windows console
12701
12702 PR/24315
12703 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12704 on MS-Windows if $TERM is not defined.
12705
12706 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12707
12708 * posix-hdep.c (gdb_console_fputs):
12709 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12710 functions.
12711 * ui-file.h (gdb_console_fputs): Add prototype.
12712
12713 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12714 back to fputs only if the former returns zero.
12715
25629dfd
TT
127162019-03-07 Tom Tromey <tom@tromey.com>
12717
12718 * symmisc.c (print_symbol_bcache_statistics): Update.
12719 (print_objfile_statistics): Update.
12720 * symfile.c (allocate_symtab): Update.
12721 * stabsread.c: Don't include bcache.h.
12722 * psymtab.h (struct psymbol_bcache): Don't declare.
12723 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12724 (psymbol_bcache_init, psymbol_bcache_free)
12725 (psymbol_bcache_get_bcache): Don't declare.
12726 * psymtab.c (struct psymbol_bcache): Remove.
12727 (psymtab_storage::psymtab_storage): Update.
12728 (psymtab_storage::~psymtab_storage): Update.
12729 (psymbol_bcache_init, psymbol_bcache_free)
12730 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12731 (add_psymbol_to_bcache): Update.
12732 (allocate_psymtab): Update.
12733 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12734 macro_cache>: No longer pointers.
12735 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12736 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12737 * macrotab.c (macro_bcache): Update.
12738 * macroexp.c: Don't include bcache.h.
12739 * gdbtypes.c (check_types_worklist): Update.
12740 (types_deeply_equal): Remove TRY/CATCH. Update.
12741 * elfread.c (elf_symtab_read): Update.
12742 * dwarf2read.c: Don't include bcache.h.
12743 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12744 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12745 (print_bcache_statistics, bcache_memory_used): Don't declare.
12746 (struct bcache): Move from bcache.c. Add constructor, destructor,
12747 methods. Rename all data members.
12748 * bcache.c (struct bcache): Move to bcache.h.
12749 (bcache::expand_hash_table): Rename from expand_hash_table.
12750 (bcache): Remove.
12751 (bcache::insert): Rename from bcache_full.
12752 (bcache::compare): Rename from bcache_compare.
12753 (bcache_xmalloc): Remove.
12754 (bcache::~bcache): Rename from bcache_xfree.
12755 (bcache::print_statistics): Rename from print_bcache_statistics.
12756 (bcache::memory_used): Rename from bcache_memory_used.
12757
fe726667
PA
127582019-03-07 Pedro Alves <palves@redhat.com>
12759
12760 * infrun.c (normal_stop): Also check for
12761 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12762
7584bb30
AB
127632019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12764
12765 * f-lang.c (value_from_host_double): Moved to...
12766 * value.c (value_from_host_double): ...here.
12767 * value.h (value_from_host_double): Declare.
12768 * guile/scm-math.c (vlscm_convert_typed_number): Use
12769 value_from_host_double.
12770 (vlscm_convert_number): Likewise.
12771 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12772 * python/py-value.c (convert_value_from_python): Likewise.
12773
a7b1986e
TT
127742019-03-06 Tom Tromey <tom@tromey.com>
12775
12776 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12777
0ccf4211
TT
127782019-03-06 Tom Tromey <tom@tromey.com>
12779
12780 * utils.h (free_current_contents): Don't declare.
12781 * utils.c (free_current_contents): Remove.
12782
fe7b42e5
TT
127832019-03-06 Tom Tromey <tom@tromey.com>
12784
12785 * top.c (quit_force): Update.
12786 * main.c (captured_command_loop): Update.
12787 * common/new-op.c (operator new): Update.
12788 * common/common-exceptions.c (struct catcher)
12789 <save_cleanup_chain>: Remove member.
12790 (exceptions_state_mc_init): Update.
12791 (exception_try_scope_entry): Return nullptr.
12792 (exception_try_scope_exit, exception_rethrow)
12793 (throw_exception_sjlj, throw_exception_cxx): Update.
12794 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12795 (all_cleanups, do_cleanups, discard_cleanups)
12796 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12797 (restore_cleanups, restore_final_cleanups): Don't declare.
12798 (do_final_cleanups): Remove parameter.
12799 * common/cleanups.c (cleanup_chain, make_cleanup)
12800 (make_cleanup_dtor, all_cleanups, do_cleanups)
12801 (discard_my_cleanups, discard_cleanups)
12802 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12803 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12804 (null_cleanup): Remove.
12805 (do_final_cleanups): Remove parameter.
12806
c6321f19
TT
128072019-03-06 Tom Tromey <tom@tromey.com>
12808
12809 * remote.c (remote_target::remote_parse_stop_reply): Use
12810 unique_xmalloc_ptr.
12811
61b30099
TT
128122019-03-06 Tom Tromey <tom@tromey.com>
12813
12814 * stabsread.c (struct stabs_field_info): Rename from field_info.
12815 <list, fnlist>: Add initializers.
12816 <obstack>: New member.
12817 (read_member_functions, read_struct_fields, read_baseclasses):
12818 Allocate on obstack. Don't use cleanups.
12819 (read_one_struct_field, read_member_functions, read_struct_fields)
12820 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12821 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12822 (read_struct_type): Update.
12823
6cceac94
TT
128242019-03-06 Tom Tromey <tom@tromey.com>
12825
12826 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12827 * common/filestuff.h (make_cleanup_close): Don't declare.
12828 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12829 Remove.
12830
72412762
TT
128312019-03-06 Tom Tromey <tom@tromey.com>
12832
12833 * solib-aix.c: Use make_scope_exit.
12834
2b6ff1c0
TT
128352019-03-06 Tom Tromey <tom@tromey.com>
12836
12837 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12838 Use make_scope_exit.
12839
d01c5877
TT
128402019-03-06 Tom Tromey <tom@tromey.com>
12841
12842 * solib-svr4.c (disable_probes_interface): Remove parameter.
12843 (svr4_handle_solib_event): Use make_scope_exit.
12844
32603266
TT
128452019-03-06 Tom Tromey <tom@tromey.com>
12846
12847 * remote.c (struct stop_reply_deleter): Remove.
12848 (stop_reply_up): Update.
12849 (struct stop_reply): Derive from notif_event. Don't typedef.
12850 <regcache>: Now a std::vector.
12851 (stop_reply_xfree): Remove.
12852 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12853 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12854 (remote_target::discard_pending_stop_replies): Use delete.
12855 (remote_target::remote_parse_stop_reply): Update.
12856 (remote_target::process_stop_reply): Update.
12857 * remote-notif.h (struct notif_event): Add virtual destructor.
12858 Remove "dtr" member.
12859 (struct notif_client) <alloc_event>: Return a unique_ptr.
12860 (notif_event_xfree): Don't declare.
12861 (notif_event_up): New typedef.
12862 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12863 (notif_event_xfree, do_notif_event_xfree): Remove.
12864 (remote_notif_state_xfree): Update.
12865
9799571e
TT
128662019-03-06 Tom Tromey <tom@tromey.com>
12867
12868 * infrun.c (displaced_step_clear_cleanup): Now a
12869 forward_scope_exit type.
12870 (displaced_step_prepare_throw): Update.
12871 (displaced_step_fixup): Update.
12872
09e3c4ca
TT
128732019-03-06 Tom Tromey <tom@tromey.com>
12874
12875 * inferior.h (class inferior): Update comment.
12876 * gdbthread.h (class thread_info): Update comment.
12877
e2a03548
TT
128782019-03-06 Joel Brobecker <brobecker@adacore.com>
12879 Tom Tromey <tom@tromey.com>
12880
12881 * stabsread.h (struct stab_section_list): Remove.
12882 (coffstab_build_psymtabs): Update.
12883 * dbxread.c (symbuf_sections): Now a std::vector.
12884 (sect_idx): New global.
12885 (fill_symbuf): Update.
12886 (coffstab_build_psymtabs): Change type of stabsects parameter.
12887 Update.
12888 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12889 std::vector.
12890 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12891 (coff_locate_sections): Update.
12892 (coff_symfile_read): Remove cleanups. Update.
12893 (init_stringtab): Add storage parameter.
12894 (free_stringtab, free_stringtab_cleanup): Remove.
12895 (init_lineno): Add storage parameter.
12896 (free_linetab, free_linetab_cleanup): Remove.
12897
b7e60d85
PA
128982019-03-06 Pedro Alves <palves@redhat.com>
12899
12900 * linux-fork.c (fork_info::clobber_regs): Delete.
12901 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12902 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12903 comment. Adjust.
12904 (scoped_switch_fork_info::scoped_switch_fork_info)
12905 (checkpoint_command, linux_fork_context): Adjust
12906 fork_save_infrun_state calls.
12907
e52c971f
PA
129082019-03-06 Pedro Alves <palves@redhat.com>
12909
12910 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12911 (inf_has_multiple_threads): Return 'bool' and rewrite using
12912 inferior_info::threads().
12913
06974e6c
PA
129142019-03-06 Pedro Alves <palves@redhat.com>
12915
12916 * linux-fork.c: Include <list>.
12917 (fork_list): Now a std::list instance.
12918 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12919 (forks_exist_p, find_last_fork): Adjust.
12920 (new_fork): Delete.
12921 (one_fork_p): New.
12922 (add_fork): Adjust.
12923 (free_fork): Delete, folded into fork_info::~fork_info().
12924 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12925 Adjust.
12926 (init_fork_list): Delete.
12927 (linux_fork_killall, linux_fork_mourn_inferior)
12928 (linux_fork_detach, info_checkpoints_command): Adjust.
12929 (_initialize_linux_fork): No longer call init_fork_list.
12930
72f31aea
PA
129312019-03-06 Pedro Alves <palves@redhat.com>
12932
12933 * linux-fork.c (new_fork): New, split out of ...
12934 (add_fork): ... this. Return void. Move "first fork" special
12935 case from here, to ...
12936 (checkpoint_command): ... here.
12937 * linux-linux.h (add_fork): Return void.
12938
efbecbc1
AB
129392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12940
12941 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12942
0841c79a
AB
129432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12944 Chris January <chris.january@arm.com>
12945 David Lecomber <david.lecomber@arm.com>
12946
12947 * f-exp.y: New token, UNOP_INTRINSIC.
12948 (exp): New pattern using UNOP_INTRINSIC token.
12949 (f77_keywords): Add 'abs' keyword.
12950 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12951 (value_from_host_double): New function.
12952 (evaluate_subexp_f): Support UNOP_ABS.
12953
4a270568
AB
129542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12955
12956 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12957 types.
12958
067630bd
AB
129592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12960
12961 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12962 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12963 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12964
3be47f7a
AB
129652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12966
12967 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12968
4d00f5d8
AB
129692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12970 Chris January <chris.january@arm.com>
12971
12972 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12973 * f-exp.y: Define 'KIND' token.
12974 (exp): New pattern for KIND expressions.
12975 (ptype): Handle types with a kind extension.
12976 (direct_abs_decl): Extend to spot kind extensions.
12977 (f77_keywords): Add 'kind' to the list.
12978 (push_kind_type): New function.
12979 (convert_to_kind_type): New function.
12980 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12981 * parse.c (operator_length_standard): Likewise.
12982 * parser-defs.h (enum type_pieces): Add tp_kind.
12983 * std-operator.def: Add UNOP_KIND.
12984
e454224f
AB
129852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12986
12987 * f-exp.y (f_parse): Set yydebug.
12988
9dad4a58
AB
129892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12990
12991 * f-lang.c (evaluate_subexp_f): New function.
12992 (exp_descriptor_f): New global.
12993 (f_language_defn): Use exp_descriptor_f instead of
12994 exp_descriptor_standard.
12995
c8f91604
AB
129962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12997
12998 * f-exp.y (struct token): Add comments.
12999 (dot_ops): Remove uppercase versions and the end marker.
13000 (f77_keywords): Likewise.
13001 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13002 entries in the dot_ops array are case insensitive, and use
13003 strncasecmp to compare strings. Also some whitespace cleanup in
13004 this area. Similar for the f77_keywords array, except entries in
13005 this list might be case sensitive.
13006
dd9f2c76
AB
130072019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13008
13009 * f-exp.y (struct f77_boolean_val): Add comments.
13010 (boolean_values): Remove uppercase versions, and end marker.
13011 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13012 and use strncasecmp to achieve case insensitivity. Additionally,
13013 perform whitespace cleanup around this code.
13014
67a3048c
TT
130152019-03-06 Tom Tromey <tromey@adacore.com>
13016
13017 * remote-sim.c (gdbsim_target_open): Use result of
13018 gdb_argv::release.
13019
aa3cfbda
RB
130202019-03-06 Richard Bunt <richard.bunt@arm.com>
13021 Dirk Schubert <dirk.schubert@arm.com>
13022 Chris January <chris.january@arm.com>
13023
13024 * eval.c (evaluate_subexp_standard): Call Fortran argument
13025 wrapping logic.
13026 * f-lang.c (struct value): A value which can be passed into a
13027 Fortran function call.
13028 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13029 where appropriate.
13030 (struct type): Value ready for a Fortran function call.
13031 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13032 is needed.
13033 * f-lang.h (fortran_argument_convert): Declaration.
13034 (fortran_preserve_arg_pointer): Declaration.
13035 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13036
ea38e5df
TT
130372019-03-05 Tom Tromey <tromey@adacore.com>
13038
13039 * python/py-prettyprint.c (print_string_repr): Remove #if.
13040 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13041
06b5b831
TT
130422019-03-05 Tom Tromey <tromey@adacore.com>
13043
13044 * target.c (the_dummy_target): Move later. Change type to
13045 "dummy_target".
13046 (initialize_targets): Don't initialize the_dummy_target.
13047
edbd9e45
TT
130482019-03-05 Tom Tromey <tromey@adacore.com>
13049
13050 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13051 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13052
c119e040
TT
130532019-03-05 Tom Tromey <tromey@adacore.com>
13054
13055 * windows-nat.c (windows_nat_target::attach)
13056 (windows_nat_target::detach): Don't call gdb_flush.
13057 * valprint.c (generic_val_print, val_print, val_print_string):
13058 Don't call gdb_flush.
13059 * utils.c (defaulted_query): Don't call gdb_flush.
13060 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13061 * target.c (target_announce_detach): Don't call gdb_flush.
13062 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13063 * remote.c (extended_remote_target::attach): Don't call
13064 gdb_flush.
13065 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13066 * printcmd.c (do_examine): Don't call gdb_flush.
13067 (info_display_command): Don't call gdb_flush.
13068 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13069 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13070 * memattr.c (info_mem_command): Don't call gdb_flush.
13071 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13072 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13073 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13074 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13075 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13076 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13077 (gnu_nat_target::detach): Don't call gdb_flush.
13078 * f-valprint.c (f_val_print): Don't call gdb_flush.
13079 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13080 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13081 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13082 gdb_flush.
13083 * c-valprint.c (c_val_print): Don't call gdb_flush.
13084 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13085
895dafa6
TT
130862019-03-05 Tom Tromey <tromey@adacore.com>
13087
13088 * varobj.c (update_dynamic_varobj_children): Update.
13089 (install_default_visualizer): Use reset, not release.
13090 * value.c (set_internalvar): Update.
13091 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13092 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13093 ATTRIBUTE_UNUSED_RESULT.
13094
88a774b9
TT
130952019-03-05 Tom Tromey <tromey@adacore.com>
13096
13097 * remote.c (class scoped_remote_fd) <release>: Add
13098 ATTRIBUTE_UNUSED_RESULT.
13099
4e4a8b93
TT
131002019-03-05 Tom Tromey <tromey@adacore.com>
13101
13102 * macroexp.c (struct macro_buffer) <release>: Add
13103 ATTRIBUTE_UNUSED_RESULT.
13104
083eef1f
TT
131052019-03-05 Tom Tromey <tromey@adacore.com>
13106
13107 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13108 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13109 ATTRIBUTE_UNUSED_RESULT.
13110
3cabd438
TT
131112019-03-05 Tom Tromey <tromey@adacore.com>
13112
13113 * common/scoped_fd.h (class scoped_fd) <release>: Add
13114 ATTRIBUTE_UNUSED_RESULT.
13115
41e3300a
TT
131162019-03-05 Tom Tromey <tromey@adacore.com>
13117
13118 * parser-defs.h (struct parser_state) <release>: Add
13119 ATTRIBUTE_UNUSED_RESULT.
13120
18cb7c9f
TT
131212019-03-05 Tom Tromey <tromey@adacore.com>
13122
13123 * utils.h (class gdb_argv) <release>: Add
13124 ATTRIBUTE_UNUSED_RESULT.
13125 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13126
41fa577f
EZ
131272019-03-02 Eli Zaretskii <eliz@gnu.org>
13128
a6a4b2c6
EZ
13129 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13130 for-loop range, to avoid compiler warnings.
13131
13132 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13133 avoid compiler warnings about unused variables.
13134
742a7df5
EZ
13135 * NEWS: Mention end of support for native debugging on MS-Windows
13136 before XP.
13137
41fa577f
EZ
13138 PR gdb/24292
13139 * common/netstuff.c:
13140 * gdbserver/gdbreplay.c
13141 * gdbserver/remote-utils.c:
13142 * ser-tcp.c:
13143 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13144 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13145 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13146 'getaddrinfo' and 'freeaddrinfo' were not available before
13147 Windows XP, and mingw.org's MinGW headers by default define
13148 _WIN32_WINNT to 0x500.
13149
827f438f
GB
131502019-03-01 Gary Benson <gbenson@redhat.com>
13151
13152 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13153
92137da0
RO
131542019-02-28 Brian Vandenberg <phantall@gmail.com>
13155 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13156
13157 PR gdb/8527
13158 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13159 set_sigint_trap, clear_sigint_trap.
13160
799efbe8
PW
131612019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13162
13163 * target.c (target_detach): Clear the regcache and the
13164 frame cache.
13165
8ed25214
PA
131662019-02-27 Pedro Alves <palves@redhat.com>
13167
13168 * utils.c (set_screen_size): When we cap the height/width sizes,
13169 tweak the corresponding command variable to show "unlimited":
13170
23031e31
SJ
131712019-02-27 Saagar Jha <saagar@saagarjha.com>
13172 Pedro Alves <palves@redhat.com>
13173
13174 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13175 before calling rl_set_screen_size.
13176
6c28e44a
TT
131772019-02-27 Tom Tromey <tromey@adacore.com>
13178
13179 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13180 define.
13181 * python/py-value.c: Remove Python 2.4 workaround.
13182 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13183 workaround.
13184 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13185 Python 2.4 workaround.
13186 * python/python-internal.h: Remove Python 2.4 comment.
13187 (Py_ssize_t): Don't define.
13188 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13189 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13190 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13191 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13192 * python/python.c (do_start_initialization): Remove Python 2.4
13193 workaround.
13194 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13195 (print_children): Remove Python 2.4 workaround.
13196 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13197 workaround.
13198 (CHARBUFFERPROC_NAME): Remove.
13199 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13200 Python 2.4 workaround.
13201
2c3fc25d 132022019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13203
2c3fc25d
KB
13204 * NEWS: Note minimum Python version.
13205
6ca62222
KB
132062019-02-27 Kevin Buettner <kevinb@redhat.com>
13207
13208 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13209 code from these functions. Remove corresponding ifdefs. Use
13210 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13211 Remove gotos and target of gotos.
13212 (infpy_search_memory): Likewise.
13213
f4bc7d2c
AB
132142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13215
13216 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13217 (hppa_gdbarch_init): Don't register deleted functions with
13218 gdbarch.
13219
9734a586
AB
132202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13221
13222 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13223 (h8300_unwind_sp): Delete.
13224 (h8300_dummy_id): Delete.
13225 (h8300_gdbarch_init): Don't register deleted functions with
13226 gdbarch.
13227
68b867f3
AB
132282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13229
13230 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13231 (ft32_unwind_pc): Delete.
13232 (ft32_unwind_sp): Delete.
13233 (ft32_gdbarch_init): Don't register deleted functions with
13234 gdbarch.
13235
2fbe7ad0
AB
132362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13237
13238 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13239 (frv_unwind_pc): Delete.
13240 (frv_unwind_sp): Delete.
13241 (frv_gdbarch_init): Don't register deleted functions with
13242 gdbarch.
13243
76055cbe
AB
132442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13245
13246 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13247 (riscv_unwind_pc): Delete.
13248 (riscv_unwind_sp): Delete.
13249 (riscv_gdbarch_init): Don't register deleted functions with
13250 gdbarch.
13251
4133e5a1
AB
132522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13253
13254 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13255 (csky_unwind_pc): Delete.
13256 (csky_unwind_sp): Delete.
13257 (csky_gdbarch_init): Don't register deleted functions with
13258 gdbarch.
13259
8010f576
AB
132602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13261
13262 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13263 (cris_unwind_pc): Delete.
13264 (cris_unwind_sp): Delete.
13265 (cris_gdbarch_init): Don't register deleted functions with
13266 gdbarch.
13267
b56bf084
AB
132682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13269
13270 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13271 (bfin_unwind_pc): Delete.
13272 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13273
a19a650f
AB
132742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13275
13276 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13277 (arm_unwind_pc): Delete.
13278 (arm_unwind_sp): Delete.
13279 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13280
f8278c3c
AB
132812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13282
13283 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13284 (arc_unwind_pc): Delete.
13285 (arc_unwind_sp): Delete.
13286 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13287
480e46cf
AB
132882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13291 (alpha_unwind_pc): Delete.
13292 (alpha_gdbarch_init): Don't register deleted functions with
13293 gdbarch.
13294
7a995095
AB
132952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13296
13297 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13298 (aarch64_unwind_pc): Delete.
13299 (aarch64_unwind_sp): Delete.
13300 (aarch64_gdbarch_init): Don't register deleted functions with
13301 gdbarch.
13302
bf9a735e
AB
133032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13304
13305 * gdbtypes.c (type_align): Don't consider static members when
13306 computing structure alignment.
13307
5561fc30
AB
133082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13309
13310 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13311 return 0 for other types.
13312 * arch-utils.c (default_type_align): Always return 0.
13313 * gdbarch.h: Regenerate.
13314 * gdbarch.sh (type_align): Extend comment.
13315 * gdbtypes.c (type_align): Add additional comments, always call
13316 gdbarch_type_align before applying the default rules.
13317 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13318 generic code will then apply a suitable default.
13319 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13320 types, return 0 for other types.
13321
9335e75a
JB
133222019-02-27 Joel Brobecker <brobecker@adacore.com>
13323
13324 * NEWS: Create a new section for the next release branch.
13325 Rename the section of the current branch, now that it has
13326 been cut.
13327
3d34d8de
JB
133282019-02-27 Joel Brobecker <brobecker@adacore.com>
13329
13330 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13331 * version.in: Bump version to 8.3.50.DATE-git.
13332
143420fb
SM
133332019-02-26 Simon Marchi <simon.marchi@efficios.com>
13334
13335 * aix-thread.c (ptid_cmp): Remove unused variable.
13336 (get_signaled_thread): Likewise.
13337 (store_regs_user_thread): Likewise.
13338 (store_regs_kernel_thread): Likewise.
13339 (fetch_regs_kernel_thread): Remove shadowed variable.
13340
172fb711
AB
133412019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13342
13343 * features/riscv/32bit-cpu.xml: Add register numbers.
13344 * features/riscv/32bit-fpu.c: Regenerate.
13345 * features/riscv/32bit-fpu.xml: Add register numbers.
13346 * features/riscv/64bit-cpu.xml: Add register numbers.
13347 * features/riscv/64bit-fpu.c: Regenerate.
13348 * features/riscv/64bit-fpu.xml: Add register numbers.
13349
26c89782
KB
133502019-02-26 Kevin Buettner <kevinb@redhat.com>
13351
af54ade9 13352 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13353 * python/py-value.c (convert_buffer_and_type_to_value): New
13354 function.
13355 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13356 Add support for handling an optional second argument. Call
13357 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13358 * python/python-internal.h (Py_buffer_deleter): New struct.
13359 (Py_buffer_up): New typedef.
13360
0f58c9e8
JB
133612019-02-25 John Baldwin <jhb@FreeBSD.org>
13362
13363 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13364 instead of releasing ownership.
13365
0a0f4c01
JR
133662019-02-25 Jordan Rupprecht <rupprecht@google.com>
13367
13368 * dwarf2read.c (open_and_init_dwp_file): Call
13369 elf_numsections instead of bfd_count_sections to initialize
13370 dwp_file->num_sections.
13371
cd5a152c
TT
133722019-02-25 Tom Tromey <tromey@adacore.com>
13373
13374 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13375
8a6a8513
SDJ
133762019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13377
13378 * gcore.in: Add '--readnever' option when invoking GDB.
13379
04dcda9c
SM
133802019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13381
13382 * MAINTAINERS: Update my email address.
13383
07bc701d
SM
133842019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13385
13386 * build-id.c (build_id_to_debug_bfd_1): New function.
13387 (build_id_to_debug_bfd): Look for separate debug file in
13388 sysroot.
13389
c6f4a5d0
AB
133902019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13391
13392 * gdbarch.sh: Update the copyright year range that is placed into
13393 generated files.
13394
9600246d
KS
133952019-02-22 Keith Seitz <keiths@redhat.com>
13396
13397 PR symtab/23853
13398 * linespec.c (create_sals_line_offset): Search for the default
13399 symtab's filename instead of its fullname.
13400
7557a514
AH
134012019-02-21 Alan Hayward <alan.hayward@arm.com>
13402
13403 * NEWS: Update style defaults.
13404
ee2bcb0c
AH
134052019-02-21 Alan Hayward <alan.hayward@arm.com>
13406
13407 * main.c (captured_main_1): Disable styling in batch mode.
13408
0c95f9ed
TT
134092019-02-20 Tom Tromey <tom@tromey.com>
13410
13411 * symtab.c (symtab_symbol_info): Fix typos.
13412
c763b894
TT
134132019-02-20 Tom Tromey <tromey@adacore.com>
13414
13415 * findcmd.c (_initialize_mem_search): Use upper case for
13416 metasyntactic variables.
13417
0ef8a082
AH
134182019-02-20 Alan Hayward <alan.hayward@arm.com>
13419
13420 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13421 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13422
6caa91b6
SM
134232019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13424
13425 * top.h (source_file_name): Change to std::string.
13426 * top.c (source_file_name): Likewise.
13427 (command_line_input): Adjust.
13428 * cli/cli-script.c (script_from_file): Adjust.
13429
98814c6c
TT
134302019-02-19 Tom Tromey <tromey@adacore.com>
13431
13432 * ravenscar-thread.c
13433 (ravenscar_thread_target::update_thread_list): Don't call
13434 ada_build_task_list.
13435 * ada-lang.h (ada_build_task_list): Don't declare.
13436 * ada-tasks.c (struct ada_tasks_inferior_data)
13437 <task_list_valid_p>: Now bool.
13438 (read_known_tasks, ada_task_list_changed)
13439 (ada_tasks_invalidate_inferior_data): Update.
13440 (read_known_tasks_array): Return bool.
13441 (read_known_tasks_list): Likewise.
13442 (read_known_tasks): Return void.
13443 (ada_build_task_list): Now static.
13444
70cd633e
AB
134452019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13446
13447 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13448 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13449
040b3e95
PW
134502019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13451
13452 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13453 variant for ada_tasks_pspace_data_handle and
13454 ada_tasks_inferior_data_handle.
13455 (ada_tasks_pspace_data_cleanup): New function.
13456 (ada_tasks_inferior_data_cleanup): New function.
13457
9409233b
TT
134582019-02-17 Tom Tromey <tom@tromey.com>
13459
13460 * macrotab.h (macro_source_fullname): Return a std::string.
13461 * macrotab.c (macro_include, check_for_redefinition)
13462 (macro_undef, macro_lookup_definition, foreach_macro)
13463 (foreach_macro_in_scope): Update.
13464 (macro_source_fullname): Return a std::string.
13465 * macrocmd.c (show_pp_source_pos): Update.
13466
6506371f
TT
134672019-02-17 Tom Tromey <tom@tromey.com>
13468
13469 * macrocmd.c (show_pp_source_pos): Style the file names.
13470
0c820d67
TT
134712019-02-17 Tom Tromey <tom@tromey.com>
13472
13473 PR tui/24197:
13474 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13475
a0087920
TT
134762019-02-17 Tom Tromey <tom@tromey.com>
13477
13478 * ada-lang.c (user_select_syms): Use filtered printing.
13479 * utils.c (wrap_style): New global.
13480 (desired_style): Remove.
13481 (emit_style_escape): Add stream parameter.
13482 (set_output_style, reset_terminal_style, prompt_for_continue):
13483 Update.
13484 (flush_wrap_buffer): Only flush gdb_stdout.
13485 (wrap_here): Set wrap_style.
13486 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13487 treat escape sequences as a character. Change when wrap buffer is
13488 flushed.
13489 (fputs_styled): Do not set the output style when the default is
13490 requested.
13491 * ui-style.h (struct ui_file_style) <is_default>: New method.
13492 * source.c (print_source_lines_base): Emit escape sequences in one
13493 piece.
13494
75ba10dc
JB
134952019-02-17 Joel Brobecker <brobecker@adacore.com>
13496
13497 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13498 integers and enumeration types.
13499
a2cd4f14
JB
135002019-02-17 Joel Brobecker <brobecker@adacore.com>
13501
13502 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13503 instead of lookup_symbol_in_language
13504 (do_exact_match): New function.
13505 (ada_get_symbol_name_matcher): Return do_exact_match when
13506 doing a verbatim match.
13507
485b851b
TT
135082019-02-15 Tom Tromey <tromey@adacore.com>
13509
13510 * ravenscar-thread.c (ravenscar_thread_target::resume)
13511 (ravenscar_thread_target::wait): Special case wildcard requests.
13512
0b790b1e
TT
135132019-02-15 Tom Tromey <tromey@adacore.com>
13514
13515 * ravenscar-thread.c (base_ptid): Remove.
13516 (struct ravenscar_thread_target) <close>: New method.
13517 <m_base_ptid>: New member.
13518 <update_inferior_ptid, active_task, task_is_currently_active,
13519 runtime_initialized>: Declare methods.
13520 <ravenscar_thread_target>: Add constructor.
13521 (ravenscar_thread_target::task_is_currently_active)
13522 (ravenscar_thread_target::update_inferior_ptid)
13523 (ravenscar_runtime_initialized): Rename. Now methods.
13524 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13525 (ravenscar_thread_target::update_thread_list): Update.
13526 (ravenscar_thread_target::active_task): Now method.
13527 (ravenscar_thread_target::store_registers)
13528 (ravenscar_thread_target::prepare_to_store)
13529 (ravenscar_thread_target::prepare_to_store)
13530 (ravenscar_thread_target::mourn_inferior): Update.
13531 (ravenscar_inferior_created): Use "new" to create target.
13532 (ravenscar_thread_target::get_ada_task_ptid): Update.
13533 (_initialize_ravenscar): Don't initialize base_ptid.
13534 (ravenscar_ops): Remove global.
13535
dea57a62
TT
135362019-02-15 Tom Tromey <tromey@adacore.com>
13537
13538 * target.h (push_target): Declare new overload.
13539 * target.c (push_target): New overload, taking an rvalue reference.
13540 * remote.c (remote_target::open_1): Use push_target overload.
13541 * corelow.c (core_target_open): Use push_target overload.
13542
989f3c58
TT
135432019-02-15 Tom Tromey <tromey@adacore.com>
13544
13545 * ravenscar-thread.c (is_ravenscar_task)
13546 (ravenscar_task_is_currently_active): Return bool.
13547 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13548 (_initialize_ravenscar): Remove "(void)".
13549 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13550 Return bool.
13551
6cbcc006
TT
135522019-02-15 Tom Tromey <tromey@adacore.com>
13553
13554 * ravenscar-thread.c (ravenscar_runtime_initializer)
13555 (has_ravenscar_runtime, get_running_thread_id)
13556 (ravenscar_thread_target::resume): Fix indentation.
13557
7657f14d
TT
135582019-02-15 Tom Tromey <tromey@adacore.com>
13559
13560 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13561 from ravenscar_arch_ops.
13562 (sparc_ravenscar_ops::fetch_registers)
13563 (sparc_ravenscar_ops::store_registers): Now methods.
13564 (sparc_ravenscar_prepare_to_store): Remove.
13565 (sparc_ravenscar_ops): Redefine.
13566 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13567 methods and destructor. Remove members.
13568 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13569 (ravenscar_thread_target::store_registers)
13570 (ravenscar_thread_target::prepare_to_store): Update.
13571 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13572 Remove.
13573 (struct ppc_ravenscar_powerpc_ops): Derive from
13574 ravenscar_arch_ops.
13575 (ppc_ravenscar_powerpc_ops::fetch_registers)
13576 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13577 (ppc_ravenscar_powerpc_ops): Redefine.
13578 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13579 (ppc_ravenscar_e500_ops::fetch_registers)
13580 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13581 (ppc_ravenscar_e500_ops): Redefine.
13582 * aarch64-ravenscar-thread.c
13583 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13584 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13585 (aarch64_ravenscar_fetch_registers)
13586 (aarch64_ravenscar_store_registers): Now methods.
13587 (aarch64_ravenscar_ops): Redefine.
13588
5b6ea500
TT
135892019-02-15 Tom Tromey <tromey@adacore.com>
13590
13591 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13592 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13593 (ravenscar_thread_target::stopped_by_watchpoint)
13594 (ravenscar_thread_target::stopped_data_address)
13595 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13596
e397fd39
TT
135972019-02-15 Tom Tromey <tromey@adacore.com>
13598
13599 * ravenscar-thread.c: Fix some typos.
13600
cc12f4a8
TT
136012019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13602 Tom Tromey <tromey@adacore.com>
13603
13604 * ada-lang.c (ada_exception_sal): Change addr_string to a
13605 std::string.
13606 (create_ada_exception_catchpoint): Update.
13607
5f486660
TT
136082019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13609 Tom Tromey <tromey@adacore.com>
13610
13611 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13612 (bp_location_ops): Remove.
13613 (base_breakpoint_allocate_location): Update.
13614 (free_bp_location): Update.
13615 * ada-lang.c (class ada_catchpoint_location)
13616 <ada_catchpoint_location>: Remove ops parameter.
13617 (ada_catchpoint_location_dtor): Remove.
13618 (ada_catchpoint_location_ops): Remove.
13619 (allocate_location_exception): Update.
13620 * breakpoint.h (struct bp_location_ops): Remove.
13621 (class bp_location) <bp_location>: Remove bp_location_ops
13622 parameter.
13623 <~bp_location>: Add destructor.
13624 <ops>: Remove.
13625
b671c7fb
TS
136262019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13627 Pedro Alves <palves@redhat.com>
13628
13629 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13630 'PATH_MAX'.
13631
8071c5ce
DM
136322019-02-14 David Michael <fedora.dm0@gmail.com>
13633 Samuel Thibault <samuel.thibault@gnu.org>
13634 Thomas Schwinge <thomas@codesourcery.com>
13635
13636 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13637 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13638
b1041ae0
TS
136392019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13640
924514e1
TS
13641 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13642 (check_empty): Use "const char *".
13643
c29ee8d4
TS
13644 * gnu-nat.c (gnu_nat_target::detach): Instead of
13645 'detach_inferior (pid)' call
13646 'detach_inferior (find_inferior_pid (pid))'.
13647
6c6ef69f
TS
13648 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13649 'nat/fork-inferior.o'.
13650 * gnu-nat.c: #include "nat/fork-inferior.h".
13651
2d0a338c
TS
13652 * gnu-nat.c (gnu_nat_target::detach): Instead of
13653 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13654 * gnu-nat.h: #include "inf-child.h".
13655 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13656 'i386_gnu_nat_target::fetch_registers'.
13657 (gnu_store_registers): Rename/move to
13658 'i386_gnu_nat_target::store_registers'.
13659
cabb5f06
TS
13660 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13661 * gnu-nat.h (mach_thread_info): New function.
13662 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13663
b1041ae0
TS
13664 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13665
2988d01e
KF
136662019-02-14 Frederic Konrad <konrad@adacore.com>
13667
13668 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13669
c559d709
JB
136702019-02-14 Joel Brobecker <brobecker@adacore.com>
13671
13672 * windows-nat.c (windows_add_thread): Add new parameter
13673 "main_thread_p" with default value set to false. Update
13674 function documentation as well as all callers.
13675 (windows_delete_thread): Likewise.
13676 (fake_create_process): Update call to windows_add_thread.
13677 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13678 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13679 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13680 call to windows_delete_thread.
13681
007024cc
SM
136822019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13683
13684 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13685
f62318e9
JB
136862019-02-12 John Baldwin <jhb@FreeBSD.org>
13687
13688 * symfile.c (find_separate_debug_file): Use canonical path of
13689 sysroot with child_path instead of gdb_sysroot if it is valid.
13690
cd4b7848
JB
136912019-02-12 John Baldwin <jhb@FreeBSD.org>
13692
13693 * symfile.c (find_separate_debug_file): Use child_path to
13694 determine if an object file is under a sysroot.
13695
efac4bfe
JB
136962019-02-12 John Baldwin <jhb@FreeBSD.org>
13697
13698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13699 unittests/child-path-selftests.c.
13700 * common/pathstuff.c (child_path): New function.
13701 * common/pathstuff.h (child_path): New prototype.
13702 * unittests/child-path-selftests.c: New file.
13703
402d2bfe
JB
137042019-02-12 John Baldwin <jhb@FreeBSD.org>
13705
13706 * symfile.c (find_separate_debug_file): Look for separate debug
13707 files in debug directories under the sysroot.
13708
1ed9f74e
PW
137092019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13710
13711 * symtab.h (struct minimal_symbol data_p): New const method.
13712 (struct minimal_symbol text_p): Likewise.
13713 * symtab.c (output_source_filename): Use file name style
13714 to print file name.
13715 (print_symbol_info): Likewise.
13716 (print_msymbol_info): Use address style to print addresses.
13717 Use function name style to print executable text symbols.
13718 (expand_symtab_containing_pc): Use data_p.
13719 (find_pc_sect_compunit_symtab): Likewise.
13720
2636d81d
PW
137212019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13722
13723 * breakpoint.c (describe_other_breakpoints): Use address style
13724 to print addresses.
13725 (say_where): Likewise.
13726
ac8c53cc
PW
137272019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13728
13729 * ada-typeprint.c (print_func_type): Print function name
13730 style to print function name.
13731 * c-typeprint.c (c_print_type_1): Likewise.
13732
ea638c43
AH
137332019-02-11 Alan Hayward <alan.hayward@arm.com>
13734
13735 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13736 for execve.
13737
ab759ca8
PW
137382019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13739
13740 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13741 type_stack.
13742
aff29d1c
JB
137432019-02-10 Joel Brobecker <brobecker@adacore.com>
13744
13745 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13746 TYPE_CODE_REF types.
13747
617126bc
JW
137482019-02-08 Jim Wilson <jimw@sifive.com>
13749
13750 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13751 (riscv_linux_fregset): New.
13752 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13753
46e3ed7f
TT
137542019-02-07 Tom Tromey <tom@tromey.com>
13755
13756 * thread.c (thread_cancel_execution_command): Update.
13757 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13758 methods.
13759 (struct thread_fsm_ops): Remove.
13760 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13761 (thread_fsm_should_stop, thread_fsm_return_value)
13762 (thread_fsm_set_finished, thread_fsm_finished_p)
13763 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13764 Don't declare.
13765 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13766 * infrun.c (clear_proceed_status_thread)
13767 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13768 (print_stop_event): Update.
13769 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13770 Add constructor.
13771 (step_command_fsm_ops): Remove.
13772 (new_step_command_fsm): Remove.
13773 (step_1): Update.
13774 (step_command_fsm::should_stop): Rename from
13775 step_command_fsm_should_stop.
13776 (step_command_fsm::clean_up): Rename from
13777 step_command_fsm_clean_up.
13778 (step_command_fsm::do_async_reply_reason): Rename from
13779 step_command_fsm_async_reply_reason.
13780 (struct until_next_fsm): Inherit from thread_fsm. Add
13781 constructor.
13782 (until_next_fsm_ops): Remove.
13783 (new_until_next_fsm): Remove.
13784 (until_next_fsm::should_stop): Rename from
13785 until_next_fsm_should_stop.
13786 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13787 (until_next_fsm::do_async_reply_reason): Rename from
13788 until_next_fsm_async_reply_reason.
13789 (struct finish_command_fsm): Inherit from thread_fsm. Add
13790 constructor. Change type of breakpoint.
13791 (finish_command_fsm_ops): Remove.
13792 (new_finish_command_fsm): Remove.
13793 (finish_command_fsm::should_stop): Rename from
13794 finish_command_fsm_should_stop.
13795 (finish_command_fsm::clean_up): Rename from
13796 finish_command_fsm_clean_up.
13797 (finish_command_fsm::return_value): Rename from
13798 finish_command_fsm_return_value.
13799 (finish_command_fsm::do_async_reply_reason): Rename from
13800 finish_command_fsm_async_reply_reason.
13801 (finish_command): Update.
13802 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13803 Add constructor.
13804 (call_thread_fsm_ops): Remove.
13805 (call_thread_fsm::call_thread_fsm): Rename from
13806 new_call_thread_fsm.
13807 (call_thread_fsm::should_stop): Rename from
13808 call_thread_fsm_should_stop.
13809 (call_thread_fsm::should_notify_stop): Rename from
13810 call_thread_fsm_should_notify_stop.
13811 (run_inferior_call, call_function_by_hand_dummy): Update.
13812 * cli/cli-interp.c (should_print_stop_to_console): Update.
13813 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13814 Add constructor. Change type of location_breakpoint,
13815 caller_breakpoint.
13816 (until_break_fsm_ops): Remove.
13817 (new_until_break_fsm): Remove.
13818 (until_break_fsm::should_stop): Rename from
13819 until_break_fsm_should_stop.
13820 (until_break_fsm::clean_up): Rename from
13821 until_break_fsm_clean_up.
13822 (until_break_fsm::do_async_reply_reason): Rename from
13823 until_break_fsm_async_reply_reason.
13824 (until_break_command): Update.
13825 * thread-fsm.c: Remove.
13826 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13827
1a5c2598
TT
138282019-02-07 Tom Tromey <tom@tromey.com>
13829
13830 * yy-remap.h: Add include guard.
13831 * xtensa-tdep.h: Add include guard.
13832 * xcoffread.h: Rename include guard.
13833 * varobj-iter.h: Add include guard.
13834 * tui/tui.h: Rename include guard.
13835 * tui/tui-winsource.h: Rename include guard.
13836 * tui/tui-wingeneral.h: Rename include guard.
13837 * tui/tui-windata.h: Rename include guard.
13838 * tui/tui-win.h: Rename include guard.
13839 * tui/tui-stack.h: Rename include guard.
13840 * tui/tui-source.h: Rename include guard.
13841 * tui/tui-regs.h: Rename include guard.
13842 * tui/tui-out.h: Rename include guard.
13843 * tui/tui-layout.h: Rename include guard.
13844 * tui/tui-io.h: Rename include guard.
13845 * tui/tui-hooks.h: Rename include guard.
13846 * tui/tui-file.h: Rename include guard.
13847 * tui/tui-disasm.h: Rename include guard.
13848 * tui/tui-data.h: Rename include guard.
13849 * tui/tui-command.h: Rename include guard.
13850 * tic6x-tdep.h: Add include guard.
13851 * target/waitstatus.h: Rename include guard.
13852 * target/wait.h: Rename include guard.
13853 * target/target.h: Rename include guard.
13854 * target/resume.h: Rename include guard.
13855 * target-float.h: Rename include guard.
13856 * stabsread.h: Add include guard.
13857 * rs6000-tdep.h: Add include guard.
13858 * riscv-fbsd-tdep.h: Add include guard.
13859 * regformats/regdef.h: Rename include guard.
13860 * record.h: Rename include guard.
13861 * python/python.h: Rename include guard.
13862 * python/python-internal.h: Rename include guard.
13863 * python/py-stopevent.h: Rename include guard.
13864 * python/py-ref.h: Rename include guard.
13865 * python/py-record.h: Rename include guard.
13866 * python/py-record-full.h: Rename include guard.
13867 * python/py-record-btrace.h: Rename include guard.
13868 * python/py-instruction.h: Rename include guard.
13869 * python/py-events.h: Rename include guard.
13870 * python/py-event.h: Rename include guard.
13871 * procfs.h: Add include guard.
13872 * proc-utils.h: Add include guard.
13873 * p-lang.h: Add include guard.
13874 * or1k-tdep.h: Rename include guard.
13875 * observable.h: Rename include guard.
13876 * nto-tdep.h: Rename include guard.
13877 * nat/x86-linux.h: Rename include guard.
13878 * nat/x86-linux-dregs.h: Rename include guard.
13879 * nat/x86-gcc-cpuid.h: Add include guard.
13880 * nat/x86-dregs.h: Rename include guard.
13881 * nat/x86-cpuid.h: Rename include guard.
13882 * nat/ppc-linux.h: Rename include guard.
13883 * nat/mips-linux-watch.h: Rename include guard.
13884 * nat/linux-waitpid.h: Rename include guard.
13885 * nat/linux-ptrace.h: Rename include guard.
13886 * nat/linux-procfs.h: Rename include guard.
13887 * nat/linux-osdata.h: Rename include guard.
13888 * nat/linux-nat.h: Rename include guard.
13889 * nat/linux-namespaces.h: Rename include guard.
13890 * nat/linux-btrace.h: Rename include guard.
13891 * nat/glibc_thread_db.h: Rename include guard.
13892 * nat/gdb_thread_db.h: Rename include guard.
13893 * nat/gdb_ptrace.h: Rename include guard.
13894 * nat/fork-inferior.h: Rename include guard.
13895 * nat/amd64-linux-siginfo.h: Rename include guard.
13896 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13897 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13898 * nat/aarch64-linux.h: Rename include guard.
13899 * nat/aarch64-linux-hw-point.h: Rename include guard.
13900 * mn10300-tdep.h: Add include guard.
13901 * mips-linux-tdep.h: Add include guard.
13902 * mi/mi-parse.h: Rename include guard.
13903 * mi/mi-out.h: Rename include guard.
13904 * mi/mi-main.h: Rename include guard.
13905 * mi/mi-interp.h: Rename include guard.
13906 * mi/mi-getopt.h: Rename include guard.
13907 * mi/mi-console.h: Rename include guard.
13908 * mi/mi-common.h: Rename include guard.
13909 * mi/mi-cmds.h: Rename include guard.
13910 * mi/mi-cmd-break.h: Rename include guard.
13911 * m2-lang.h: Add include guard.
13912 * location.h: Rename include guard.
13913 * linux-record.h: Rename include guard.
13914 * linux-nat.h: Add include guard.
13915 * linux-fork.h: Add include guard.
13916 * i386-darwin-tdep.h: Rename include guard.
13917 * hppa-linux-offsets.h: Add include guard.
13918 * guile/guile.h: Rename include guard.
13919 * guile/guile-internal.h: Rename include guard.
13920 * gnu-nat.h: Rename include guard.
13921 * gdb-stabs.h: Rename include guard.
13922 * frv-tdep.h: Add include guard.
13923 * f-lang.h: Add include guard.
13924 * event-loop.h: Add include guard.
13925 * darwin-nat.h: Rename include guard.
13926 * cp-abi.h: Rename include guard.
13927 * config/sparc/nm-sol2.h: Rename include guard.
13928 * config/nm-nto.h: Rename include guard.
13929 * config/nm-linux.h: Add include guard.
13930 * config/i386/nm-i386gnu.h: Rename include guard.
13931 * config/djgpp/nl_types.h: Rename include guard.
13932 * config/djgpp/langinfo.h: Rename include guard.
13933 * compile/gcc-cp-plugin.h: Add include guard.
13934 * compile/gcc-c-plugin.h: Add include guard.
13935 * compile/compile.h: Rename include guard.
13936 * compile/compile-object-run.h: Rename include guard.
13937 * compile/compile-object-load.h: Rename include guard.
13938 * compile/compile-internal.h: Rename include guard.
13939 * compile/compile-cplus.h: Rename include guard.
13940 * compile/compile-c.h: Rename include guard.
13941 * common/xml-utils.h: Rename include guard.
13942 * common/x86-xstate.h: Rename include guard.
13943 * common/version.h: Rename include guard.
13944 * common/vec.h: Rename include guard.
13945 * common/tdesc.h: Rename include guard.
13946 * common/selftest.h: Rename include guard.
13947 * common/scoped_restore.h: Rename include guard.
13948 * common/scoped_mmap.h: Rename include guard.
13949 * common/scoped_fd.h: Rename include guard.
13950 * common/safe-iterator.h: Rename include guard.
13951 * common/run-time-clock.h: Rename include guard.
13952 * common/refcounted-object.h: Rename include guard.
13953 * common/queue.h: Rename include guard.
13954 * common/ptid.h: Rename include guard.
13955 * common/print-utils.h: Rename include guard.
13956 * common/preprocessor.h: Rename include guard.
13957 * common/pathstuff.h: Rename include guard.
13958 * common/observable.h: Rename include guard.
13959 * common/netstuff.h: Rename include guard.
13960 * common/job-control.h: Rename include guard.
13961 * common/host-defs.h: Rename include guard.
13962 * common/gdb_wait.h: Rename include guard.
13963 * common/gdb_vecs.h: Rename include guard.
13964 * common/gdb_unlinker.h: Rename include guard.
13965 * common/gdb_unique_ptr.h: Rename include guard.
13966 * common/gdb_tilde_expand.h: Rename include guard.
13967 * common/gdb_sys_time.h: Rename include guard.
13968 * common/gdb_string_view.h: Rename include guard.
13969 * common/gdb_splay_tree.h: Rename include guard.
13970 * common/gdb_setjmp.h: Rename include guard.
13971 * common/gdb_ref_ptr.h: Rename include guard.
13972 * common/gdb_optional.h: Rename include guard.
13973 * common/gdb_locale.h: Rename include guard.
13974 * common/gdb_assert.h: Rename include guard.
13975 * common/filtered-iterator.h: Rename include guard.
13976 * common/filestuff.h: Rename include guard.
13977 * common/fileio.h: Rename include guard.
13978 * common/environ.h: Rename include guard.
13979 * common/common-utils.h: Rename include guard.
13980 * common/common-types.h: Rename include guard.
13981 * common/common-regcache.h: Rename include guard.
13982 * common/common-inferior.h: Rename include guard.
13983 * common/common-gdbthread.h: Rename include guard.
13984 * common/common-exceptions.h: Rename include guard.
13985 * common/common-defs.h: Rename include guard.
13986 * common/common-debug.h: Rename include guard.
13987 * common/cleanups.h: Rename include guard.
13988 * common/buffer.h: Rename include guard.
13989 * common/btrace-common.h: Rename include guard.
13990 * common/break-common.h: Rename include guard.
13991 * cli/cli-utils.h: Rename include guard.
13992 * cli/cli-style.h: Rename include guard.
13993 * cli/cli-setshow.h: Rename include guard.
13994 * cli/cli-script.h: Rename include guard.
13995 * cli/cli-interp.h: Rename include guard.
13996 * cli/cli-decode.h: Rename include guard.
13997 * cli/cli-cmds.h: Rename include guard.
13998 * charset-list.h: Add include guard.
13999 * buildsym-legacy.h: Rename include guard.
14000 * bfin-tdep.h: Add include guard.
14001 * ax.h: Rename include guard.
14002 * arm-linux-tdep.h: Add include guard.
14003 * arm-fbsd-tdep.h: Add include guard.
14004 * arch/xtensa.h: Rename include guard.
14005 * arch/tic6x.h: Add include guard.
14006 * arch/i386.h: Add include guard.
14007 * arch/arm.h: Rename include guard.
14008 * arch/arm-linux.h: Rename include guard.
14009 * arch/arm-get-next-pcs.h: Rename include guard.
14010 * arch/amd64.h: Add include guard.
14011 * arch/aarch64-insn.h: Rename include guard.
14012 * arch-utils.h: Rename include guard.
14013 * annotate.h: Add include guard.
14014 * amd64-darwin-tdep.h: Rename include guard.
14015 * aarch64-linux-tdep.h: Add include guard.
14016 * aarch64-fbsd-tdep.h: Add include guard.
14017 * aarch32-linux-nat.h: Add include guard.
14018
ab9268d2
PW
140192019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14020
14021 * macrotab.c (macro_define_internal): New function that
14022 factorizes macro_define_object_internal and macro_define_function
14023 code.
14024 (macro_define_object_internal): Use macro_define_internal.
14025 (macro_define_function): Likewise.
14026
bb0da2b4
PW
140272019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14028
14029 * macrocmd.c (extract_identifier): Return
14030 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14031 callers.
14032
424eb552
JB
140332019-02-06 John Baldwin <jhb@FreeBSD.org>
14034
14035 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14036
1688cb29
TT
140372019-02-05 Tom Tromey <tom@tromey.com>
14038
14039 * target.c (target_stack::unpush): Move assertion earlier.
14040
b5eba2d8
TT
140412019-01-30 Tom Tromey <tom@tromey.com>
14042
14043 PR python/23615:
14044 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14045 (gdbpy_parse_and_eval): Likewise.
14046 * python/python-internal.h (gdbpy_allow_threads): New class.
14047
7054e2ff
JB
140482019-01-28 John Baldwin <jhb@FreeBSD.org>
14049
14050 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14051 (aarch64_fbsd_fpregmap): Move earlier.
14052 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14053 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14054 instead of individual calls to trad_frame_set_reg_addr.
14055 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14056 earlier.
14057 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14058 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14059 instead of individual calls to trad_frame_set_reg_addr.
14060
36c25ffa
AH
140612019-01-28 Alan Hayward <alan.hayward@arm.com>
14062
14063 * CONTRIBUTE: Replace contribution list with wiki link.
14064
a0707f3c
TT
140652019-01-25 Tom Tromey <tom@tromey.com>
14066
14067 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14068
0747795c
TT
140692019-01-25 Tom Tromey <tom@tromey.com>
14070
14071 * xtensa-linux-nat.c: Fix common/ includes.
14072 * xml-support.h: Fix common/ includes.
14073 * xml-support.c: Fix common/ includes.
14074 * x86-linux-nat.c: Fix common/ includes.
14075 * windows-nat.c: Fix common/ includes.
14076 * varobj.h: Fix common/ includes.
14077 * varobj.c: Fix common/ includes.
14078 * value.c: Fix common/ includes.
14079 * valops.c: Fix common/ includes.
14080 * utils.c: Fix common/ includes.
14081 * unittests/xml-utils-selftests.c: Fix common/ includes.
14082 * unittests/utils-selftests.c: Fix common/ includes.
14083 * unittests/unpack-selftests.c: Fix common/ includes.
14084 * unittests/tracepoint-selftests.c: Fix common/ includes.
14085 * unittests/style-selftests.c: Fix common/ includes.
14086 * unittests/string_view-selftests.c: Fix common/ includes.
14087 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14088 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14089 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14090 * unittests/rsp-low-selftests.c: Fix common/ includes.
14091 * unittests/parse-connection-spec-selftests.c: Fix common/
14092 includes.
14093 * unittests/optional-selftests.c: Fix common/ includes.
14094 * unittests/offset-type-selftests.c: Fix common/ includes.
14095 * unittests/observable-selftests.c: Fix common/ includes.
14096 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14097 * unittests/memrange-selftests.c: Fix common/ includes.
14098 * unittests/memory-map-selftests.c: Fix common/ includes.
14099 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14100 * unittests/function-view-selftests.c: Fix common/ includes.
14101 * unittests/environ-selftests.c: Fix common/ includes.
14102 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14103 * unittests/common-utils-selftests.c: Fix common/ includes.
14104 * unittests/cli-utils-selftests.c: Fix common/ includes.
14105 * unittests/array-view-selftests.c: Fix common/ includes.
14106 * ui-file.c: Fix common/ includes.
14107 * tui/tui-io.c: Fix common/ includes.
14108 * tracepoint.h: Fix common/ includes.
14109 * tracepoint.c: Fix common/ includes.
14110 * tracefile-tfile.c: Fix common/ includes.
14111 * top.h: Fix common/ includes.
14112 * top.c: Fix common/ includes.
14113 * thread.c: Fix common/ includes.
14114 * target/waitstatus.h: Fix common/ includes.
14115 * target/waitstatus.c: Fix common/ includes.
14116 * target.h: Fix common/ includes.
14117 * target.c: Fix common/ includes.
14118 * target-memory.c: Fix common/ includes.
14119 * target-descriptions.c: Fix common/ includes.
14120 * symtab.h: Fix common/ includes.
14121 * symfile.c: Fix common/ includes.
14122 * stap-probe.c: Fix common/ includes.
14123 * spu-linux-nat.c: Fix common/ includes.
14124 * sparc-nat.c: Fix common/ includes.
14125 * source.c: Fix common/ includes.
14126 * solib.c: Fix common/ includes.
14127 * solib-target.c: Fix common/ includes.
14128 * ser-unix.c: Fix common/ includes.
14129 * ser-tcp.c: Fix common/ includes.
14130 * ser-pipe.c: Fix common/ includes.
14131 * ser-base.c: Fix common/ includes.
14132 * selftest-arch.c: Fix common/ includes.
14133 * s12z-tdep.c: Fix common/ includes.
14134 * rust-exp.y: Fix common/ includes.
14135 * rs6000-aix-tdep.c: Fix common/ includes.
14136 * riscv-tdep.c: Fix common/ includes.
14137 * remote.c: Fix common/ includes.
14138 * remote-notif.h: Fix common/ includes.
14139 * remote-fileio.h: Fix common/ includes.
14140 * remote-fileio.c: Fix common/ includes.
14141 * regcache.h: Fix common/ includes.
14142 * regcache.c: Fix common/ includes.
14143 * record-btrace.c: Fix common/ includes.
14144 * python/python.c: Fix common/ includes.
14145 * python/py-type.c: Fix common/ includes.
14146 * python/py-inferior.c: Fix common/ includes.
14147 * progspace.h: Fix common/ includes.
14148 * producer.c: Fix common/ includes.
14149 * procfs.c: Fix common/ includes.
14150 * proc-api.c: Fix common/ includes.
14151 * printcmd.c: Fix common/ includes.
14152 * ppc-linux-nat.c: Fix common/ includes.
14153 * parser-defs.h: Fix common/ includes.
14154 * osdata.c: Fix common/ includes.
14155 * obsd-nat.c: Fix common/ includes.
14156 * nat/x86-linux.c: Fix common/ includes.
14157 * nat/x86-linux-dregs.c: Fix common/ includes.
14158 * nat/x86-dregs.h: Fix common/ includes.
14159 * nat/x86-dregs.c: Fix common/ includes.
14160 * nat/ppc-linux.c: Fix common/ includes.
14161 * nat/mips-linux-watch.h: Fix common/ includes.
14162 * nat/mips-linux-watch.c: Fix common/ includes.
14163 * nat/linux-waitpid.c: Fix common/ includes.
14164 * nat/linux-ptrace.h: Fix common/ includes.
14165 * nat/linux-ptrace.c: Fix common/ includes.
14166 * nat/linux-procfs.c: Fix common/ includes.
14167 * nat/linux-personality.c: Fix common/ includes.
14168 * nat/linux-osdata.c: Fix common/ includes.
14169 * nat/linux-namespaces.c: Fix common/ includes.
14170 * nat/linux-btrace.h: Fix common/ includes.
14171 * nat/linux-btrace.c: Fix common/ includes.
14172 * nat/fork-inferior.c: Fix common/ includes.
14173 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14174 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14175 * nat/aarch64-linux.c: Fix common/ includes.
14176 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14177 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14178 * namespace.h: Fix common/ includes.
14179 * mips-linux-tdep.c: Fix common/ includes.
14180 * minsyms.c: Fix common/ includes.
14181 * mi/mi-parse.h: Fix common/ includes.
14182 * mi/mi-main.c: Fix common/ includes.
14183 * mi/mi-cmd-env.c: Fix common/ includes.
14184 * memrange.h: Fix common/ includes.
14185 * memattr.c: Fix common/ includes.
14186 * maint.h: Fix common/ includes.
14187 * maint.c: Fix common/ includes.
14188 * main.c: Fix common/ includes.
14189 * machoread.c: Fix common/ includes.
14190 * location.c: Fix common/ includes.
14191 * linux-thread-db.c: Fix common/ includes.
14192 * linux-nat.c: Fix common/ includes.
14193 * linux-fork.c: Fix common/ includes.
14194 * inline-frame.c: Fix common/ includes.
14195 * infrun.c: Fix common/ includes.
14196 * inflow.c: Fix common/ includes.
14197 * inferior.h: Fix common/ includes.
14198 * inferior.c: Fix common/ includes.
14199 * infcmd.c: Fix common/ includes.
14200 * inf-ptrace.c: Fix common/ includes.
14201 * inf-child.c: Fix common/ includes.
14202 * ia64-linux-nat.c: Fix common/ includes.
14203 * i387-tdep.c: Fix common/ includes.
14204 * i386-tdep.c: Fix common/ includes.
14205 * i386-linux-tdep.c: Fix common/ includes.
14206 * i386-linux-nat.c: Fix common/ includes.
14207 * i386-go32-tdep.c: Fix common/ includes.
14208 * i386-fbsd-tdep.c: Fix common/ includes.
14209 * i386-fbsd-nat.c: Fix common/ includes.
14210 * guile/scm-type.c: Fix common/ includes.
14211 * guile/guile.c: Fix common/ includes.
14212 * go32-nat.c: Fix common/ includes.
14213 * gnu-nat.c: Fix common/ includes.
14214 * gdbthread.h: Fix common/ includes.
14215 * gdbarch-selftests.c: Fix common/ includes.
14216 * gdb_usleep.c: Fix common/ includes.
14217 * gdb_select.h: Fix common/ includes.
14218 * gdb_bfd.c: Fix common/ includes.
14219 * gcore.c: Fix common/ includes.
14220 * fork-child.c: Fix common/ includes.
14221 * findvar.c: Fix common/ includes.
14222 * fbsd-nat.c: Fix common/ includes.
14223 * event-top.c: Fix common/ includes.
14224 * event-loop.c: Fix common/ includes.
14225 * dwarf2read.c: Fix common/ includes.
14226 * dwarf2loc.c: Fix common/ includes.
14227 * dwarf2-frame.c: Fix common/ includes.
14228 * dwarf-index-cache.c: Fix common/ includes.
14229 * dtrace-probe.c: Fix common/ includes.
14230 * disasm-selftests.c: Fix common/ includes.
14231 * defs.h: Fix common/ includes.
14232 * csky-tdep.c: Fix common/ includes.
14233 * cp-valprint.c: Fix common/ includes.
14234 * cp-support.h: Fix common/ includes.
14235 * cp-support.c: Fix common/ includes.
14236 * corelow.c: Fix common/ includes.
14237 * completer.h: Fix common/ includes.
14238 * completer.c: Fix common/ includes.
14239 * compile/compile.c: Fix common/ includes.
14240 * compile/compile-loc2c.c: Fix common/ includes.
14241 * compile/compile-cplus-types.c: Fix common/ includes.
14242 * compile/compile-cplus-symbols.c: Fix common/ includes.
14243 * command.h: Fix common/ includes.
14244 * cli/cli-dump.c: Fix common/ includes.
14245 * cli/cli-cmds.c: Fix common/ includes.
14246 * charset.c: Fix common/ includes.
14247 * build-id.c: Fix common/ includes.
14248 * btrace.h: Fix common/ includes.
14249 * btrace.c: Fix common/ includes.
14250 * breakpoint.h: Fix common/ includes.
14251 * breakpoint.c: Fix common/ includes.
14252 * ax.h:
14253 (enum agent_op): Fix common/ includes.
14254 * ax-general.c (struct aop_map): Fix common/ includes.
14255 * ax-gdb.c: Fix common/ includes.
14256 * auxv.c: Fix common/ includes.
14257 * auto-load.c: Fix common/ includes.
14258 * arm-tdep.c: Fix common/ includes.
14259 * arch/riscv.c: Fix common/ includes.
14260 * arch/ppc-linux-common.c: Fix common/ includes.
14261 * arch/i386.c: Fix common/ includes.
14262 * arch/arm.c: Fix common/ includes.
14263 * arch/arm-linux.c: Fix common/ includes.
14264 * arch/arm-get-next-pcs.c: Fix common/ includes.
14265 * arch/amd64.c: Fix common/ includes.
14266 * arch/aarch64.c: Fix common/ includes.
14267 * arch/aarch64-insn.c: Fix common/ includes.
14268 * arch-utils.c: Fix common/ includes.
14269 * amd64-windows-tdep.c: Fix common/ includes.
14270 * amd64-tdep.c: Fix common/ includes.
14271 * amd64-sol2-tdep.c: Fix common/ includes.
14272 * amd64-obsd-tdep.c: Fix common/ includes.
14273 * amd64-nbsd-tdep.c: Fix common/ includes.
14274 * amd64-linux-tdep.c: Fix common/ includes.
14275 * amd64-linux-nat.c: Fix common/ includes.
14276 * amd64-fbsd-tdep.c: Fix common/ includes.
14277 * amd64-fbsd-nat.c: Fix common/ includes.
14278 * amd64-dicos-tdep.c: Fix common/ includes.
14279 * amd64-darwin-tdep.c: Fix common/ includes.
14280 * agent.c: Fix common/ includes.
14281 * ada-lang.h: Fix common/ includes.
14282 * ada-lang.c: Fix common/ includes.
14283 * aarch64-tdep.c: Fix common/ includes.
14284
2f5c153e
TT
142852019-01-25 Tom Tromey <tom@tromey.com>
14286
14287 * common/create-version.sh: Use common/version.h.
14288
adc6a863
PA
142892019-01-24 Pedro Alves <palves@redhat.com>
14290
14291 * infrun.c (signal_stop, signal_print, signal_program)
14292 (signal_catch, signal_pass): Now arrays instead of pointers.
14293 (update_signals_program_target, do_target_resume)
14294 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14295 * linux-nat.c (linux_nat_target::pass_signals)
14296 (linux_nat_target::create_inferior, linux_nat_target::attach):
14297 Adjust.
14298 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14299 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14300 * procfs.c (procfs_target::pass_signals): Adjust.
14301 * record-full.c (record_full_target::resume): Adjust.
14302 * remote.c (remote_target::pass_signals)
14303 (remote_target::program_signals): Adjust.
14304 * target-debug.h (target_debug_print_signals): Now takes a
14305 gdb::array_view as parameter. Adjust.
14306 * target.h (target_ops) <pass_signals, program_signals>: Replace
14307 pointer and length parameters with gdb::array_view.
14308 (target_pass_signals, target_program_signals): Likewise.
14309 * target-delegates.c: Regenerate.
14310
3046d67a
PA
143112019-01-24 Pedro Alves <palves@redhat.com>
14312
14313 * common/forward-scope-exit.h
14314 (forward_scope_exit::forward_scope_exit): Pass arguments to
14315 m_bind_function directly, instead of creating a std::bind and
14316 copying that.
14317
353229bf
AH
143182019-01-24 Alan Hayward <alan.hayward@arm.com>
14319
14320 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14321 for static members.
14322 (pass_in_v_vfp_candidate): Likewise.
14323
311dc83a
TT
143242019-01-23 Tom Tromey <tom@tromey.com>
14325 Pedro Alves <palves@redhat.com>
14326
14327 * regcache.c (class regcache_invalidator): Remove.
14328 (regcache::raw_write): Use make_scope_exit.
14329
296bd123
TT
143302019-01-23 Tom Tromey <tom@tromey.com>
14331
14332 * ui-out.h (class ui_out_emit_type): Update comment.
14333
979a0d13
TT
143342019-01-23 Tom Tromey <tom@tromey.com>
14335
14336 * infrun.c (fetch_inferior_event): Update comment.
14337
d238133d
TT
143382019-01-23 Tom Tromey <tom@tromey.com>
14339 Pedro Alves <palves@redhat.com>
14340
14341 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14342 parameter.
14343 (fetch_inferior_event): Use SCOPE_EXIT.
14344
14345
9885e6bb
TT
143462019-01-23 Tom Tromey <tom@tromey.com>
14347 Pedro Alves <palves@redhat.com>
14348
14349 * infrun.c (disable_thread_events): Delete.
14350 (stop_all_threads): Use SCOPE_EXIT.
14351
286526c1
TT
143522019-01-23 Tom Tromey <tom@tromey.com>
14353 Pedro Alves <palves@redhat.com>
14354
14355 * symfile.c: Include forward-scope-exit.h.
14356 (clear_symtab_users_cleanup): Replace forward declaration with
14357 a FORWARD_SCOPE_EXIT.
14358 (syms_from_objfile_1): Use the forward_scope_exit and
14359 gdb::optional instead of cleanup_function.
14360 (reread_symbols): Use the forward_scope_exit instead of
14361 cleanup_function.
14362 (clear_symtab_users_cleanup): Remove function.
14363
1db93f14
TT
143642019-01-23 Tom Tromey <tom@tromey.com>
14365 Pedro Alves <palves@redhat.com>
14366
14367 * linux-nat.c: Include scope-exit.h.
14368 (cleanup_target_stop): Remove.
14369 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14370 SCOPE_EXIT.
14371
2cc83d1e
TT
143722019-01-23 Tom Tromey <tom@tromey.com>
14373 Pedro Alves <palves@redhat.com>
14374
14375 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14376 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14377
694c6bf5
TT
143782019-01-23 Tom Tromey <tom@tromey.com>
14379 Andrew Burgess <andrew.burgess@embecosm.com>
14380 Pedro Alves <palves@redhat.com>
14381
14382 * infrun.c (fetch_inferior_event): Use scope_exit.
14383 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14384 * top.c (execute_command): Use scope_exit.
14385 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14386 * utils.c (do_bpstat_clear_actions_cleanup)
14387 (make_bpstat_clear_actions_cleanup): Remove.
14388
4c41382a
TT
143892019-01-23 Tom Tromey <tom@tromey.com>
14390 Pedro Alves <palves@redhat.com>
14391
14392 * infrun.c: Include "common/scope-exit.h"
14393 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14394 (wait_for_inferior): Use SCOPE_EXIT.
14395 (fetch_inferior_event): Use scope_exit.
14396
89f8fb50
TT
143972019-01-23 Tom Tromey <tom@tromey.com>
14398 Pedro Alves <palves@redhat.com>
14399
14400 * breakpoint.c (create_breakpoint): Remove cleanup.
14401
5419bdae
TT
144022019-01-23 Tom Tromey <tom@tromey.com>
14403 Andrew Burgess <andrew.burgess@embecosm.com>
14404 Pedro Alves <palves@redhat.com>
14405
e587ef42
PA
144062019-01-23 Pedro Alves <palves@redhat.com>
14407
14408 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14409
77f0e74c
PA
144102019-01-23 Pedro Alves <palves@redhat.com>
14411 Andrew Burgess <andrew.burgess@embecosm.com>
14412
14413 * gdbthread.h: Include "common/forward-scope-exit.h".
14414 (scoped_finish_thread_state): Redefine custom class in terms of
14415 forward_scope_exit.
14416
5b9b3e53
PA
144172019-01-23 Pedro Alves <palves@redhat.com>
14418 Andrew Burgess <andrew.burgess@embecosm.com>
14419
14420 * common/forward-scope-exit.h: New file.
14421
54b65c9b
PA
144222019-01-23 Pedro Alves <palves@redhat.com>
14423 Andrew Burgess <andrew.burgess@embecosm.com>
14424 Tom Tromey <tom@tromey.com>
14425
14426 * common/scope-exit.h: New file.
14427
cf08fb29
PA
144282019-01-23 Pedro Alves <palves@redhat.com>
14429
14430 * common/preprocessor.h (ESC): Rename to ...
14431 (ESC_PARENS): ... this.
14432 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14433 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14434
ae73e2e2
TT
144352019-01-23 Tom Tromey <tom@tromey.com>
14436
14437 * language.h (class scoped_switch_to_sym_language_if_auto):
14438 Initialize m_lang in both cases.
14439
6594e122
AH
144402019-01-23 Alan Hayward <alan.hayward@arm.com>
14441
14442 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14443 with XCNEW.
14444
a7c9855d
TT
144452019-01-22 Tom Tromey <tom@tromey.com>
14446
14447 * corelow.c: Do not include sys/file.h.
14448
93cc1d53
TT
144492019-01-22 Tom Tromey <tom@tromey.com>
14450
14451 * tui/tui-wingeneral.h: Include gdb_curses.h.
14452
38561778
TT
144532019-01-22 Tom Tromey <tom@tromey.com>
14454
14455 * source-cache.h (class source_cache) <get_source_lines,
14456 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14457
37b3ab5b
TT
144582019-01-22 Tom Tromey <tom@tromey.com>
14459
14460 * remote-fileio.h (struct remote_target): Declare.
14461
3fabc016
TT
144622019-01-22 Tom Tromey <tom@tromey.com>
14463
14464 * python/py-arch.c: Do not include py-ref.h.
14465 * python/py-bpevent.c: Do not include py-ref.h.
14466 * python/py-cmd.c: Do not include py-ref.h.
14467 * python/py-continueevent.c: Do not include py-ref.h.
14468 * python/py-event.h: Do not include py-ref.h.
14469 * python/py-evtregistry.c: Do not include py-ref.h.
14470 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14471 * python/py-frame.c: Do not include py-ref.h.
14472 * python/py-framefilter.c: Do not include py-ref.h.
14473 * python/py-function.c: Do not include py-ref.h.
14474 * python/py-infevents.c: Do not include py-ref.h.
14475 * python/py-linetable.c: Do not include py-ref.h.
14476 * python/py-objfile.c: Do not include py-ref.h.
14477 * python/py-param.c: Do not include py-ref.h.
14478 * python/py-prettyprint.c: Do not include py-ref.h.
14479 * python/py-progspace.c: Do not include py-ref.h.
14480 * python/py-symbol.c: Do not include py-ref.h.
14481 * python/py-symtab.c: Do not include py-ref.h.
14482 * python/py-type.c: Do not include py-ref.h.
14483 * python/py-unwind.c: Do not include py-ref.h.
14484 * python/py-utils.c: Do not include py-ref.h.
14485 * python/py-value.c: Do not include py-ref.h.
14486 * python/py-varobj.c: Do not include py-ref.h.
14487 * python/py-xmethods.c: Do not include py-ref.h.
14488 * python/python.c: Do not include py-ref.h.
14489 * varobj.c: Do not include py-ref.h.
14490
6b4d7774
TT
144912019-01-22 Tom Tromey <tom@tromey.com>
14492
14493 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14494 keyword for bcache.
14495
7af7e9b5
TT
144962019-01-22 Tom Tromey <tom@tromey.com>
14497
14498 * compile/compile-cplus-types.c: Remove a comment by #include.
14499
951d1049
TT
145002019-01-22 Tom Tromey <tom@tromey.com>
14501
14502 * compile/gcc-c-plugin.h: Include compile-internal.h.
14503
d65d5705
TT
145042019-01-22 Tom Tromey <tom@tromey.com>
14505
14506 * stabsread.c (EXTERN): Do not define.
14507 (symnum, next_symbol_text_func, processing_gcc_compilation)
14508 (within_function, global_sym_chain, global_stabs)
14509 (previous_stab_code, this_object_header_files)
14510 (n_this_object_header_files)
14511 (n_allocated_this_object_header_files): Define.
14512 * stabsread.h (EXTERN): Never define. Use "extern".
14513
b6fb1ee5
PW
145142019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14515
14516 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14517 history_value.
14518
be6d4f74
TT
145192019-01-21 Tom Tromey <tom@tromey.com>
14520
14521 * ui-out.c: Fix includes.
14522 * tui/tui-source.c: Fix includes.
14523 * target.c: Fix includes.
14524 * remote.c: Fix includes.
14525 * regcache.c: Fix includes.
14526 * python/py-block.c: Fix includes.
14527 * printcmd.c: Fix includes.
14528 * or1k-tdep.c: Fix includes.
14529 * mi/mi-main.c: Fix includes.
14530 * m32r-tdep.c: Fix includes.
14531 * csky-tdep.c: Fix includes.
14532 * compile/compile-cplus-types.c: Fix includes.
14533 * cli/cli-interp.c: Fix includes.
14534
73021deb
AH
145352019-01-21 Alan Hayward <alan.hayward@arm.com>
14536
14537 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14538 for padding.
14539
7932255d
TT
145402019-01-16 Tom Tromey <tom@tromey.com>
14541
14542 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14543 earlier.
14544 (struct objfile) <msymbols_range>: Move from top level.
14545 <msymbols>: New method.
14546 (class objfile_msymbols): Remove.
14547 * symtab.c (default_collect_symbol_completion_matches_break_on):
14548 Update.
14549 * symmisc.c (dump_msymbols): Update.
14550 * stabsread.c (scan_file_globals): Update.
14551 * objc-lang.c (info_selectors_command, info_classes_command)
14552 (find_methods): Update.
14553 * minsyms.c (find_solib_trampoline_target): Update.
14554 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14555 * coffread.c (coff_symfile_read): Update.
14556 * ada-lang.c (ada_lookup_simple_minsym)
14557 (ada_collect_symbol_completion_matches): Update.
14558
604b1bfb
TT
145592019-01-16 Tom Tromey <tom@tromey.com>
14560
14561 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14562 type. Remove no-argument constructor.
14563 <iterator::operator++>: Simplify.
14564 <begin>: Update.
14565 <end>: Use minimal_symbol_count.
14566
f252c6d5
TT
145672019-01-16 Tom Tromey <tom@tromey.com>
14568
14569 * objfiles.h (struct objfile) <psymtabs>: New method.
14570 (class objfile_psymtabs): Remove.
14571 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14572 typedef.
14573 <range>: New method.
14574 (require_partial_symbols): Change return type.
14575 * psymtab.c (require_partial_symbols)
14576 (psym_expand_symtabs_matching): Update.
14577 * mdebugread.c (parse_partial_symbols): Update.
14578 * dbxread.c (dbx_end_psymtab): Update.
14579
b669c953
TT
145802019-01-15 Tom Tromey <tom@tromey.com>
14581
14582 * symtab.c (lookup_objfile_from_block)
14583 (lookup_symbol_in_objfile_symtabs)
14584 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14585 (find_line_symtab, info_sources_command)
14586 (default_collect_symbol_completion_matches_break_on)
14587 (make_source_files_completion_list): Update.
14588 * symmisc.c (print_objfile_statistics, dump_objfile)
14589 (maintenance_print_symbols, maintenance_info_symtabs)
14590 (maintenance_check_symtabs, maintenance_info_line_tables):
14591 Update.
14592 * source.c (select_source_symtab)
14593 (forget_cached_source_info_for_objfile): Update.
14594 * objfiles.h (class objfile_compunits): Remove.
14595 (struct objfile) <compunits_range>: New typedef.
14596 (compunits): New method.
14597 * objfiles.c (objfile_relocate1): Update.
14598 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14599 * maint.c (count_symtabs_and_blocks): Update.
14600 * linespec.c (iterate_over_all_matching_symtabs): Update.
14601 * cp-support.c (add_symbol_overload_list_qualified): Update.
14602 * coffread.c (coff_symtab_read): Update.
14603 * ada-lang.c (add_nonlocal_symbols)
14604 (ada_collect_symbol_completion_matches)
14605 (ada_add_global_exceptions): Update.
14606
7e955d83
TT
146072019-01-15 Tom Tromey <tom@tromey.com>
14608
14609 * progspace.h (program_space) <objfiles_safe_range>: New
14610 typedef.
14611 <objfiles_safe>: New method.
14612 * objfiles.h (class all_objfiles_safe): Remove.
14613 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14614 * jit.c (jit_inferior_exit_hook): Update.
14615
2030c079
TT
146162019-01-17 Tom Tromey <tom@tromey.com>
14617
14618 * progspace.h (program_space) <objfiles_range>: New typedef.
14619 <objfiles>: New method.
14620 <objfiles_head>: Rename from objfiles.
14621 (object_files): Update.
14622 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14623 * guile/scm-pretty-print.c
14624 (ppscm_find_pretty_printer_from_objfiles): Update.
14625 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14626 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14627 Update.
14628 * python/py-progspace.c (pspy_get_objfiles): Update.
14629 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14630 Update.
14631 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14632 (objfpy_lookup_objfile_by_build_id): Update.
14633 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14634 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14635 Update.
14636 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14637 (expand_symtab_containing_pc, lookup_objfile_from_block)
14638 (lookup_static_symbol, basic_lookup_transparent_type)
14639 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14640 (find_line_symtab, info_sources_command)
14641 (default_collect_symbol_completion_matches_break_on)
14642 (make_source_files_completion_list, find_main_name): Update.
14643 * symmisc.c (print_symbol_bcache_statistics)
14644 (print_objfile_statistics, maintenance_print_symbols)
14645 (maintenance_print_msymbols, maintenance_print_objfiles)
14646 (maintenance_info_symtabs, maintenance_check_symtabs)
14647 (maintenance_expand_symtabs, maintenance_info_line_tables):
14648 Update.
14649 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14650 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14651 (map_overlay_command, unmap_overlay_command)
14652 (simple_overlay_update, expand_symtabs_matching)
14653 (map_symbol_filenames): Update.
14654 * symfile-debug.c (set_debug_symfile): Update.
14655 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14656 Update.
14657 * source.c (select_source_symtab, forget_cached_source_info):
14658 Update.
14659 * solib.c (solib_read_symbols): Update.
14660 * solib-spu.c (append_ocl_sos): Update.
14661 * psymtab.c (maintenance_print_psymbols)
14662 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14663 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14664 * printcmd.c (info_symbol_command): Update.
14665 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14666 Update.
14667 * objfiles.h (class all_objfiles): Remove.
14668 * objfiles.c (have_partial_symbols, have_full_symbols)
14669 (have_minimal_symbols, qsort_cmp, update_section_map)
14670 (shared_objfile_contains_address_p)
14671 (default_iterate_over_objfiles_in_search_order): Update.
14672 * objc-lang.c (info_selectors_command, info_classes_command)
14673 (find_methods): Update.
14674 * minsyms.c (find_solib_trampoline_target): Update.
14675 * maint.c (maintenance_info_sections)
14676 (maintenance_translate_address, count_symtabs_and_blocks):
14677 Update.
14678 * main.c (captured_main_1): Update.
14679 * linux-thread-db.c (try_thread_db_load_from_pdir)
14680 (has_libpthread): Update.
14681 * linespec.c (iterate_over_all_matching_symtabs)
14682 (search_minsyms_for_name): Update.
14683 * jit.c (jit_find_objf_with_entry_addr): Update.
14684 * hppa-tdep.c (find_unwind_entry)
14685 (hppa_lookup_stub_minimal_symbol): Update.
14686 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14687 Update.
14688 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14689 (elf_gnu_ifunc_resolve_by_got): Update.
14690 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14691 * dwarf-index-write.c (save_gdb_index_command): Update.
14692 * cp-support.c (add_symbol_overload_list_qualified): Update.
14693 * breakpoint.c (create_overlay_event_breakpoint)
14694 (create_longjmp_master_breakpoint)
14695 (create_std_terminate_master_breakpoint)
14696 (create_exception_master_breakpoint): Update.
14697 * blockframe.c (find_pc_partial_function): Update.
14698 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14699 (ada_collect_symbol_completion_matches)
14700 (ada_add_global_exceptions): Update.
14701
776489e0
TT
147022019-01-17 Tom Tromey <tom@tromey.com>
14703
14704 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14705 declare VEC.
14706 (solib_target_parse_libraries): Change return type.
14707 (library_list_start_segment, library_list_start_section)
14708 (library_list_end_library, library_list_start_library); Update.
14709 (solib_target_free_library_list): Remove.
14710 (solib_target_parse_libraries): Remove cleanup. Change return
14711 type.
14712 (solib_target_current_sos): Update.
14713
6471e7d2
TT
147142019-01-17 Tom Tromey <tromey@bapiya>
14715
14716 * valprint.c: Replace "the the" with "the".
14717 * symtab.c: Replace "the the" with "the".
14718 * solib.c: Replace "the the" with "the".
14719 * solib-dsbt.c: Replace "the the" with "the".
14720 * linespec.c: Replace "the the" with "the".
14721 * dwarf2loc.h: Replace "the the" with "the".
14722 * amd64-windows-tdep.c: Replace "the the" with "the".
14723 * aarch64-tdep.c: Replace "the the" with "the".
14724
c24bdb02
KS
147252019-01-16 Keith Seitz <keiths@redhat.com>
14726
14727 PR gdb/23773
14728 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14729 <builder>: Rename to ..
14730 <m_builder>: ... this and make private.
14731 (dwarf2_cu::get_builder): New method. Change all users of
14732 `builder' to use this method.
14733 (dwarf2_start_symtab): Move to ...
14734 (dwarf2_cu::start_symtab): ... here. Update all callers
14735 (setup_type_unit_groups): Move to ...
14736 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14737 callers.
14738 (dwarf2_cu::reset_builder): New method.
14739 (process_full_compunit, process_full_type_unit): Use
14740 dwarf2_cu::reset_builder.
14741 (follow_die_offset): Record the ancestor CU if it is different
14742 from the followed DIE's CU.
14743 (follow_die_sig_1): Likewise.
14744
8d64371b
TT
147452019-01-15 Tom Tromey <tom@tromey.com>
14746
14747 * remote.c (class remote_state) <buf>: Now a char_vector.
14748 <buf_size>: Remove.
14749 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14750 parameter.
14751 (remote_target::getpkt_or_notif_sane_1)
14752 (remote_target::getpkt_sane)
14753 (remote_target::getpkt_or_notif_sane): Likewise.
14754 (class remote_target) <putpkt>: New overload.
14755 (remote_target::read_frame): Change type of "buf_p". Remove
14756 sizeof_p parameter.
14757 (packet_ok): New overload.
14758 (packet_check_result): New overload.
14759 Update all uses.
14760
bb277751
TT
147612019-01-14 Tom Tromey <tom@tromey.com>
14762
14763 * remote-notif.c (handle_notification, remote_notif_ack)
14764 (remote_notif_parse): Make "buf" const.
14765 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14766 const.
14767 (remote_notif_parse, remote_notif_ack, handle_notification):
14768 Likewise.
14769 * remote.c (remote_notif_stop_parse): Make "buf" const.
14770 (remote_target::remote_parse_stop_reply): Make "buf" const.
14771 (remote_notif_stop_ack): Make "buf" const.
14772
05be00a8
TT
147732019-01-14 Tom Tromey <tom@tromey.com>
14774
14775 * remote.c (remote_console_output): Make parameter const.
14776
491adeca
TT
147772019-01-14 Tom Tromey <tom@tromey.com>
14778
14779 * target-debug.h (target_debug_print_signals): Constify.
14780 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14781 * procfs.c (procfs_target::pass_signals): Update.
14782 * linux-nat.c (linux_nat_target::pass_signals): Update.
14783 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14784 * target-delegates.c: Rebuild.
14785 * remote.c (remote_target::program_signals): Update.
14786 (remote_target::pass_signals): Update.
14787 * target.c (target_pass_signals): Constify argument.
14788 (target_program_signals): Likewise.
14789 * target.h (struct target_ops) <pass_signals, program_signals>:
14790 Constify argument.
14791 (target_pass_signals, target_program_signals): Constify argument.
14792
bbd94648
TT
147932019-01-14 Tom Tromey <tom@tromey.com>
14794
14795 PR tui/28819:
14796 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14797
6f072a10
PFC
147982019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14799
14800 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14801 field.
14802 * rs6000-tdep.c: Include reggroups.h.
14803 (IS_V_ALIAS_PSEUDOREG): Define.
14804 (rs6000_register_name): Return names for the "vX" aliases.
14805 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14806 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14807 aliases. Call default_register_reggroup_p for all other
14808 pseudo-registers.
14809 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14810 New functions.
14811 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14812 Handle "vX" aliases.
14813 (v_alias_pseudo_register_collect): New function.
14814 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14815 (rs6000_gdbarch_init): Initialize "vX" aliases as
14816 pseudo-registers. Restore registration of
14817 rs6000_pseudo_register_reggroup_p with
14818 set_tdesc_pseudo_register_reggroup_p.
14819
1a782351
MF
148202019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14821
14822 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14823 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14824 set_gdbarch_num_pseudo_regs.
14825
d73cff18
PW
148262019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14827
14828 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14829 Remove arg prefixname, add do_set and do_show.
14830 Add member functions set_list and show_list.
14831 * cli/cli-style.c (class cli_style_option): Update accordingly.
14832 (style_set_list): Move to file scope.
14833 (style_show_list): Likewise.
14834 (set_style): Call help_list.
14835 (show_style): Call cmd_show_list.
14836 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14837 Update to use the new macro.
14838
60a90376
JB
148392019-10-12 Joel Brobecker <brobecker@adacore.com>
14840
14841 * ada-lang.c (_initialize_ada_language): Expand the help text
14842 for the "catch exception" command.
14843
9d7c67bf
PW
148442019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14845
14846 * symtab.c (matching_obj_sections): Initialize obj,
14847 declare it closer to its usage.
14848
7cf47dc4
TT
148492019-01-10 Tom Tromey <tom@tromey.com>
14850
14851 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14852 (basic_inf_threads_range): Remove.
14853 (inf_threads_range, inf_non_exited_threads_range)
14854 (safe_inf_threads_range): Use next_adapter.
14855
d3cb6808
KS
148562019-01-10 Keith Seitz <keiths@redhat.com>
14857
14858 PR gdb/23712
14859 PR symtab/23010
14860 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14861 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14862
63a20375
KS
148632019-01-10 Keith Seitz <keiths@redhat.com>
14864
14865 PR gdb/23712
14866 PR symtab/23010
14867 * dictionary.c (pending_to_vector): Remove.
14868 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14869 Remove _1 suffix, replacing functions of the same name. Update
14870 all callers.
14871 (dict_create_hashed, dict_create_hashed_expandable)
14872 (dict_create_linear, dict_create_linear_expandable, dict_free)
14873 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14874 Make functions static.
14875
b026f593
KS
148762019-01-10 Keith Seitz <keiths@redhat.com>
14877
14878 PR gdb/23712
14879 PR symtab/23010
14880 * dictionary.h (struct dictionary): Replace declaration with
14881 multidictionary.
14882 (dict_create_hashed, dict_create_hashed_expandable)
14883 (dict_create_linear, dict_create_linear_expandable)
14884 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14885 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14886 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14887 taking multidictionary argument.
14888 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14889 * block.h (struct block) <dict>: Change to multidictionary
14890 and rename `multidict'.
14891 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14892 symmisc.c: Update all dictionary references to multidictionary.
14893
c7748ee9
KS
148942019-01-10 Keith Seitz <keiths@redhat.com>
14895
14896 PR gdb/23712
14897 PR symtab/23010
14898 * dictionary.c: Include unordered_map.
14899 (pending_to_vector): New function.
14900 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14901 Rewrite the non-"_1" functions to take vector instead
14902 of linked list.
14903 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14904 "new" _1 versions of the same name.
14905 (multidictionary): Define.
14906 (std::hash<enum language): New definition.
14907 (collate_pending_symbols_by_language, mdict_create_hashed)
14908 (mdict_create_hashed_expandable, mdict_create_linear)
14909 (mdict_create_linear_expandable, mdict_free)
14910 (find_language_dictionary, create_new_language_dictionary)
14911 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14912 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14913 (mdict_size, mdict_empty): New functions.
14914 * dictionary.h (mdict_iterator): Define.
14915
67aa1f3c
PA
149162019-01-10 Pedro Alves <palves@redhat.com>
14917
14918 * breakpoint.c (read_uploaded_action)
14919 (create_tracepoint_from_upload): Adjust to use
14920 gdb::unique_xmalloc_ptr.
14921 * ctf.c (ctf_write_uploaded_tp):
14922 (SET_ARRAY_FIELD): Use emplace_back.
14923 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14924 * tracefile-tfile.c (tfile_write_uploaded_tp):
14925 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14926 gdb::unique_xmalloc_ptr.
14927 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14928 at_string, cond_string, cmd_strings>: Replace char pointers
14929 with gdb::unique_xmalloc_ptr.
14930
2f667667
PA
149312019-01-10 Pedro Alves <palves@redhat.com>
14932
14933 * solib-target.c (library_list_start_library): Don't xstrdup name.
14934
36cb7237
PA
149352019-01-10 Pedro Alves <palves@redhat.com>
14936
14937 * mdebugread.c (parse_partial_symbols): Use
14938 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14939
da584958
AB
149402019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14941
14942 * linux-fork.c (scoped_switch_fork_info)
14943 <~scoped_switch_fork_info>: Fix incorrect variable name.
14944
1ef8573c
AB
149452019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14946
14947 * linux-fork.c (scoped_switch_fork_info)
14948 <scoped_switch_fork_info>: Make explicit.
14949 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14950
8d7bcccb
TT
149512019-01-10 Tom Tromey <tom@tromey.com>
14952
14953 * objfiles.h (objfile::reset_psymtabs): Update.
14954 * objfiles.c (objfile::objfile): Update.
14955 * psymtab.h (psymtab_storage::obstack): Update.
14956 (psymtab_storage::m_obstack): Use gdb::optional.
14957 (class psymtab_storage): Update comment. Remove objfile
14958 parameter.
14959 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14960
b596a3c7
TT
149612019-01-10 Tom Tromey <tom@tromey.com>
14962
14963 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14964 <free_psymtabs>: Now private.
14965 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14966 (allocate_psymtab): Use new method.
14967
a9342b62
TT
149682019-01-10 Tom Tromey <tom@tromey.com>
14969
14970 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14971 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14972 * mdebugread.c (parse_partial_symbols): Use
14973 allocate_dependencies.
14974 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14975 allocate_dependencies.
14976 (process_psymtab_comp_unit_reader)
14977 (build_type_psymtab_dependencies): Likewise.
14978 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14979
5af70966
TT
149802019-01-10 Tom Tromey <tom@tromey.com>
14981
14982 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14983 PSYMBOL_SET_LANGUAGE.
14984 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14985
5923a04c
TT
149862019-01-10 Tom Tromey <tom@tromey.com>
14987
14988 * psymtab.h (psymtab_storage::obstack): New method.
14989 <m_obstack>: Rename from obstack; now private.
14990 * psymtab.c (psymtab_storage): Update.
14991 * dwarf2read.c (create_addrmap_from_index)
14992 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14993 Update.
14994
6d6a12bf
TT
149952019-01-10 Tom Tromey <tom@tromey.com>
14996
14997 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14998 * objfiles.h (objfile::reset_psymtabs): New method.
14999
d320c2b5
TT
150002019-01-10 Tom Tromey <tom@tromey.com>
15001
15002 * symmisc.c (print_symbol_bcache_statistics): Update.
15003 (print_objfile_statistics): Update.
15004 * symfile.c (reread_symbols): Update.
15005 * psymtab.h (class psymtab_storage): New.
15006 * psymtab.c (psymtab_storage): New constructor.
15007 (~psymtab_storage): New destructor.
15008 (require_partial_symbols): Update.
15009 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15010 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15011 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15012 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15013 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15014 (start_psymtab_common, end_psymtab_common)
15015 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15016 (allocate_psymtab): Update.
15017 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15018 Update.
15019 (dump_psymtab_addrmap, maintenance_print_psymbols)
15020 (maintenance_check_psymtabs): Update.
15021 (class objfile_psymtabs): Move to objfiles.h.
15022 * psympriv.h (discard_psymtab): Now inline.
15023 (psymtab_discarder::psymtab_discarder): Update.
15024 (psymtab_discarder::~psymtab_discarder): Update.
15025 (ALL_OBJFILE_PSYMTABS): Rewrite.
15026 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15027 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15028 Remove fields.
15029 <partial_symtabs>: New field.
15030 (class objfile_psymtabs): Move from psymtab.h. Update.
15031 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15032 psymbol_cache.
15033 (objfile::~objfile): Don't destroy psymbol_cache.
15034 * mdebugread.c (parse_partial_symbols): Update.
15035 * dwarf2read.c (create_addrmap_from_index)
15036 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15037 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15038 (add_partial_subprogram, dwarf2_ranges_read): Update.
15039 * dwarf-index-write.c (write_address_map)
15040 (write_one_signatured_type, recursively_write_psymbols)
15041 (class debug_names, class debug_names, write_psymtabs_to_index):
15042 Update.
15043
1d94a5a3
TT
150442019-01-10 Tom Tromey <tom@tromey.com>
15045
15046 * symtab.h (SYMBOL_SET_NAMES): Update.
15047 (symbol_set_names): Update.
15048 (MSYMBOL_SET_NAMES): Update.
15049 * symtab.c (symbol_set_names): Change argument to be an
15050 objfile_per_bfd_storage.
15051 * psymtab.c (add_psymbol_to_bcache): Update.
15052 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15053
0f14768a
TT
150542019-01-10 Tom Tromey <tom@tromey.com>
15055
15056 * symtab.c (create_demangled_names_hash): Change argument to be an
15057 objfile_per_bfd_storage.
15058 (symbol_set_names): Update.
15059
6eee24ce
TT
150602019-01-10 Tom Tromey <tom@tromey.com>
15061
15062 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15063 init_psymbol_list.
15064 * psymtab.c (init_psymbol_list): Do nothing if already called.
15065 * psympriv.h (init_psymbol_list): Add comment.
15066 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15067 init_psymbol_list.
15068 * dbxread.c (dbx_symfile_read): Unconditionally call
15069 init_psymbol_list.
15070
75aedd27
TT
150712019-01-10 Tom Tromey <tom@tromey.com>
15072
15073 * xcoffread.c (scan_xcoff_symtab): Update.
15074 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15075 "where".
15076 * mdebugread.c (parse_partial_symbols)
15077 (handle_psymbol_enumerators): Update.
15078 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15079 * dbxread.c (read_dbx_symtab): Update.
15080 * psympriv.h (psymbol_placement): New enum.
15081 (add_psymbol_to_list): Update.
15082
939652a5
TT
150832019-01-10 Tom Tromey <tom@tromey.com>
15084
15085 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15086 static_psymbols parameters.
15087 (scan_xcoff_symtab): Update.
15088 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15089 static_psymbols parameters.
15090 * psympriv.h (start_psymtab_common): Update.
15091 * mdebugread.c (parse_partial_symbols): Update.
15092 * dwarf2read.c (create_partial_symtab): Update.
15093 * dbxread.c (read_dbx_symtab): Update.
15094 (start_psymtab): Remove global_psymbols and static_psymbols
15095 parameters.
15096
baa62830
TT
150972019-01-10 Tom Tromey <tom@tromey.com>
15098
15099 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15100 * psymtab.c (allocate_psymtab): Add comment.
15101 * psympriv.h (allocate_psymtab): Add comment.
15102 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15103 initializations.
15104 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15105
0e8f53ba
TT
151062019-01-10 Tom Tromey <tom@tromey.com>
15107
15108 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15109 Don't declare.
15110 * mipsread.c: Include mdebugread.h.
15111 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15112 Declare.
15113 * elfread.c: Include mdebugread.h.
15114
b22a7c6a
TT
151152019-01-09 Tom Tromey <tom@tromey.com>
15116
15117 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15118 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15119 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15120 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15121 (psym_lookup_symbol, psym_find_last_source_symtab)
15122 (psym_forget_cached_source_info, psym_print_stats)
15123 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15124 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15125 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15126 (psym_find_compunit_symtab_by_address)
15127 (maintenance_print_psymbols, maintenance_info_psymtabs)
15128 (maintenance_check_psymtabs): Use ranged for.
15129 * psymtab.h (class objfile_psymtabs): New.
15130 (require_partial_symbols): Return objfile_psymtabs.
15131 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15132
3b9d3ac2
TT
151332019-01-09 Tom Tromey <tom@tromey.com>
15134
15135 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15136 (find_pc_mapped_section, list_overlays_command)
15137 (map_overlay_command, unmap_overlay_command)
15138 (simple_overlay_update): Use all_objfiles.
15139 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15140 * printcmd.c (info_symbol_command): Use all_objfiles.
15141 * objfiles.h (ALL_OBJSECTIONS): Remove.
15142 * maint.c (maintenance_translate_address): Use all_objfiles.
15143 * gcore.c (gcore_create_callback): Use all_objfiles.
15144 (objfile_find_memory_regions): Likewise.
15145
8b31193a
TT
151462019-01-09 Tom Tromey <tom@tromey.com>
15147
15148 * symtab.c (find_line_symtab, info_sources_command)
15149 (make_source_files_completion_list): Use objfile_compunits.
15150 * source.c (select_source_symtab): Use objfile_compunits.
15151 * objfiles.h (struct objfile): Update comment.
15152 (ALL_OBJFILES): Remove.
15153 (ALL_FILETABS): Remove.
15154 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15155 objfile_compunits.
15156
d5da8b3c
TT
151572019-01-09 Tom Tromey <tom@tromey.com>
15158
15159 * symmisc.c (print_objfile_statistics, dump_objfile)
15160 (maintenance_print_symbols): Use compunit_filetabs.
15161 * source.c (forget_cached_source_info_for_objfile): Use
15162 compunit_filetabs.
15163 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15164 (ALL_FILETABS): Use compunit_filetabs.
15165 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15166 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15167
5accd1a0
TT
151682019-01-09 Tom Tromey <tom@tromey.com>
15169
15170 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15171 (compunit_filetabs): New.
15172 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15173 compunit_filetabs.
15174 (info_sources_command, make_source_files_completion_list): Remove
15175 declaration.
15176 * symmisc.c (print_objfile_statistics, dump_objfile)
15177 (maintenance_print_symbols): Remove declaration.
15178 (maintenance_info_symtabs): Use compunit_filetabs.
15179 (maintenance_info_line_tables): Likewise.
15180 * source.c (select_source_symtab): Change local variable name.
15181 (forget_cached_source_info_for_objfile): Remove declaration.
15182 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15183 * objfiles.c (objfile_relocate1): Remove declaration.
15184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15185 declaration.
15186 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15187 * coffread.c (coff_symtab_read): Remove declaration.
15188 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15189 compunit_filetabs.
15190
d8aeb77f
TT
151912019-01-09 Tom Tromey <tom@tromey.com>
15192
15193 * symtab.c (lookup_objfile_from_block)
15194 (find_pc_sect_compunit_symtab, search_symbols)
15195 (default_collect_symbol_completion_matches_break_on): Use
15196 objfile_compunits.
15197 * objfiles.h (ALL_COMPUNITS): Remove.
15198 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15199 * cp-support.c (add_symbol_overload_list_qualified): Use
15200 objfile_compunits.
15201 * ada-lang.c (ada_collect_symbol_completion_matches)
15202 (ada_add_global_exceptions): Use objfile_compunits.
15203
592553c4
TT
152042019-01-09 Tom Tromey <tom@tromey.com>
15205
15206 * source.c (select_source_symtab)
15207 (forget_cached_source_info_for_objfile): Remove declaration.
15208 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15209 declaration.
15210 * maint.c (count_symtabs_and_blocks): Remove declaration.
15211 * cp-support.c (add_symbol_overload_list_qualified): Remove
15212 declaration.
15213 * coffread.c (coff_symtab_read): Remove declaration.
15214 * symtab.c (lookup_symbol_in_objfile_symtabs)
15215 (basic_lookup_transparent_type_1): Use objfile_compunits.
15216 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15217 (info_sources_command, search_symbols)
15218 (default_collect_symbol_completion_matches_break_on)
15219 (make_source_files_completion_list): Remove declaration.
15220 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15221 (ada_collect_symbol_completion_matches)
15222 (ada_add_global_exceptions): Remove declaration.
15223 * linespec.c (iterate_over_all_matching_symtabs): Use
15224 objfile_compunits.
15225 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15226 (class objfile_compunits): New.
15227 (ALL_COMPUNITS): Use objfile_compunits.
15228 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15229 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15230 objfile_compunits.
15231 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15232
5325b9bf
TT
152332019-01-09 Tom Tromey <tom@tromey.com>
15234
15235 * symtab.c (search_symbols)
15236 (default_collect_symbol_completion_matches_break_on): Use
15237 objfile_msymbols.
15238 * ada-lang.c (ada_lookup_simple_minsym)
15239 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15240 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15241 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15242 objfile_msymbols.
15243 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15244 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15245 * objc-lang.c (find_methods): Use objfile_msymbols.
15246 (info_selectors_command, info_classes_command): Likewise.
15247 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15248 * objfiles.h (class objfile_msymbols): New.
15249 (ALL_OBJFILE_MSYMBOLS): Remove.
15250 (ALL_MSYMBOLS): Remove.
15251
cac85af2
TT
152522019-01-09 Tom Tromey <tom@tromey.com>
15253
15254 * common/next-iterator.h (next_adapter): Add Iterator template
15255 parameter.
15256 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15257 (class all_objfiles_safe): New.
15258 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15259 * objfiles.c (put_objfile_before): Update comment.
15260 (add_separate_debug_objfile): Likewise.
15261 (free_all_objfiles): Use all_objfiles_safe.
15262 (objfile_purge_solibs): Likewise.
15263
aed57c53
TT
152642019-01-09 Tom Tromey <tom@tromey.com>
15265
15266 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15267 (expand_symtab_containing_pc, lookup_static_symbol)
15268 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15269 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15270 all_objfiles.
15271 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15272 * breakpoint.c (create_overlay_event_breakpoint)
15273 (create_longjmp_master_breakpoint)
15274 (create_std_terminate_master_breakpoint)
15275 (create_exception_master_breakpoint): Use all_objfiles.
15276 * linux-thread-db.c (try_thread_db_load_from_pdir)
15277 (has_libpthread): Use all_objfiles.
15278 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15279 * linespec.c (iterate_over_all_matching_symtabs)
15280 (search_minsyms_for_name): Use all_objfiles.
15281 * maint.c (maintenance_info_sections): Use all_objfiles.
15282 * main.c (captured_main_1): Use all_objfiles.
15283 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15284 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15285 * guile/scm-pretty-print.c
15286 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15287 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15288 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15289 (maintenance_print_msymbols): Use all_objfiles.
15290 * source.c (select_source_symtab): Use all_objfiles.
15291 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15292 * symfile.c (remove_symbol_file_command)
15293 (expand_symtabs_matching, map_symbol_filenames): Use
15294 all_objfiles.
15295 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15296 all_objfiles.
15297 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15298 * objc-lang.c (find_methods): Use all_objfiles.
15299 * objfiles.c (have_partial_symbols, have_full_symbols)
15300 (have_minimal_symbols, qsort_cmp)
15301 (default_iterate_over_objfiles_in_search_order): Use
15302 all_objfiles.
15303 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15304 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15305 (maintenance_check_psymtabs): Use all_objfiles.
15306 (ALL_PSYMTABS): Remove.
15307 * compile/compile-object-run.c (do_module_cleanup): Use
15308 all_objfiles.
15309 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15310 * cp-support.c (add_symbol_overload_list_qualified): Use
15311 all_objfiles.
15312 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15313 Use all_objfiles.
15314 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15315 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15316 all_objfiles.
15317 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15318 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15319 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15320 Uses all_objfiles.
15321 * solib.c (solib_read_symbols): Use all_objfiles
15322
99d89cde
TT
153232019-01-09 Tom Tromey <tom@tromey.com>
15324
15325 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15326 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15327 all_objfiles.
15328 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15329 * symmisc.c (print_symbol_bcache_statistics)
15330 (print_objfile_statistics, maintenance_print_objfiles)
15331 (maintenance_info_symtabs, maintenance_check_symtabs)
15332 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15333 all_objfiles.
15334 * source.c (forget_cached_source_info): Use all_objfiles.
15335 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15336 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15337 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15338 * objfiles.c (update_section_map): Use all_objfiles.
15339 (shared_objfile_contains_address_p): Likewise.
15340 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15341 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15342
21708325
TT
153432019-01-09 Tom Tromey <tom@tromey.com>
15344
15345 * common/next-iterator.h: New file.
15346 * objfiles.h (class all_objfiles): New.
15347 (struct objfile_iterator): New.
15348
669e09f6
PW
153492019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15350
15351 * NEWS: Move the description of the changed "frame", "select-frame",
15352 and "info frame" commands to the Changed commands section.
15353
041be526
SM
153542019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15355
15356 * gdbtypes.c (check_stub_method_group): Remove handling of old
15357 mangling schemes.
15358 * linespec.c (find_methods): Likewise.
15359 * stabsread.c (read_member_functions): Likewise.
15360 * valops.c (search_struct_method): Likewise.
15361 (value_struct_elt_for_reference): Likewise.
15362 * NEWS: Mention this change.
15363
0e2a2133
AB
153642019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15365
15366 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15367 print_source_lines.
15368 * source.c (print_source_lines_base): Update line number check.
15369 (print_source_lines): New function.
15370 (source_lines_range::source_lines_range): New function.
15371 * source.h (class source_lines_range): New class.
15372 (print_source_lines): New declaration.
15373
1055a3b4
PW
153742019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15375
15376 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15377
cfeadda5
TT
153782019-01-08 Tom Tromey <tom@tromey.com>
15379 Simon Marchi <simon.marchi@ericsson.com>
15380
15381 PR gdb/24060
15382 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15383 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15384 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15385 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15386 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15387 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15388
583068ca
AB
153892019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15390
15391 * source.c (select_source_symtab): Move header comment to
15392 declaration in source.h.
15393 (forget_cached_source_info_for_objfile): Likewise.
15394 (forget_cached_source_info): Likewise.
15395 (identify_source_line): Likewise.
15396 * source.h (identify_source_line): Move declaration from symtab.h
15397 and add comment from source.c
15398 (print_source_lines): Likewise.
15399 (forget_cached_source_info_for_objfile): Likewise.
15400 (forget_cached_source_info): Likewise.
15401 (select_source_symtab): Likewise.
15402 (enum print_source_lines_flag): Move definition from symtab.h.
15403 * symtab.h (identify_source_line): Move declaration to source.h.
15404 (print_source_lines): Likewise.
15405 (forget_cached_source_info_for_objfile): Likewise.
15406 (forget_cached_source_info): Likewise.
15407 (select_source_symtab): Likewise.
15408 (enum print_source_lines_flag): Move definition to source.h.
15409 * tui/tui-hooks.c: Add 'source.h' include.
15410
ec98a4ad
AB
154112019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15412
15413 * source.c (print_source_lines_base): Handle requests to print
15414 reverse line number sequences, and guard against empty lines
15415 string.
15416
62ea19c1
AB
154172019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15418
15419 * source.c (print_source_lines_base): Fix skip of '\r' if next
15420 character is '\n'.
15421
9d30e1fd
TT
154222019-01-06 Tom Tromey <tom@tromey.com>
15423
15424 * c-exp.y (struct c_parse_state) <macro_original_text,
15425 expansion_obstack>: New member.
15426 (macro_original_text, expansion_obstack): Remove globals.
15427 (scan_macro_expansion, scanning_macro_expansion)
15428 (finished_macro_expansion): Update.
15429 (scan_macro_cleanup): Remove.
15430 (yylex, c_parse): Update.
15431
c65bac38
TT
154322019-01-06 Tom Tromey <tom@tromey.com>
15433
15434 * c-exp.y (struct c_parse_state) <strings>: New member.
15435 (operator_stoken): Update.
15436
02e12e38
TT
154372019-01-06 Tom Tromey <tom@tromey.com>
15438
15439 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15440 (union type_stack_elt) <typelist_val>: Now a pointer to
15441 std::vector.
15442 (type_stack_cleanup): Don't declare.
15443 (push_typelist): Update.
15444 * parse.c (pop_typelist): Return a std::vector.
15445 (push_typelist): Take a std::vector.
15446 (follow_types): Update. Do not free args.
15447 (type_stack_cleanup): Remove.
15448 * c-exp.y (struct c_parse_state): New.
15449 (cpstate): New global.
15450 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15451 (nonempty_typelist): Update.
15452 (func_mod): Create a new vector.
15453 (c_parse): Create a c_parse_state.
15454 (check_parameter_typelist): Do not delete params.
15455 (function_method): Update. Do not delete type_list.
15456
f097f5ad
TT
154572019-01-06 Tom Tromey <tom@tromey.com>
15458
15459 PR gdb/28155:
15460 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15461 check_typedef.
15462 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15463 (print_return_value): Likewise.
15464
d2adf9f1
TT
154652019-01-05 Tom Tromey <tom@tromey.com>
15466
15467 * contrib/cleanup_check.py: Remove.
15468 * contrib/gcc-with-excheck: Remove.
15469 * contrib/exsummary.py: Remove.
15470 * contrib/excheck.py: Remove.
15471
2eab46b1
JB
154722019-01-05 Joel Brobecker <brobecker@adacore.com>
15473
15474 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15475 NULL. Initialize tpprev to NULL instead of assigning it
15476 to NULL on the next statement.
15477 * windows-nat.c (windows_delete_thread): Remove check for
15478 main_thread_id before printing thread exit notifications.
15479 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15480 Remove thread ID check against main_thread_id.
15481 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15482 windows_delete_thread.
15483 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15484
48c5e7e2
TT
154852019-01-04 Tom Tromey <tom@tromey.com>
15486
15487 * compile/compile.c (_initialize_compile): Use upper case for
15488 metasyntactic variables.
15489 * symmisc.c (_initialize_symmisc): Use upper case for
15490 metasyntactic variables.
15491 * psymtab.c (_initialize_psymtab): Use upper case for
15492 metasyntactic variables.
15493 * demangle.c (demangle_command): Use upper case for metasyntactic
15494 variables.
15495 (_initialize_demangler): Likewise.
15496 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15497 variables.
15498
986041cd
TT
154992019-01-03 Tom Tromey <tom@tromey.com>
15500
15501 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15502
7c711119
TT
155032019-01-03 Tom Tromey <tom@tromey.com>
15504
15505 * python/py-symtab.c (salpy_str): Update.
15506 (struct salpy_sal_object) <symtab>: Now a PyObject.
15507 (salpy_dealloc): Update.
15508 (del_objfile_sal): Use gdbpy_ref.
15509
1b20edf0
TT
155102019-01-03 Tom Tromey <tom@tromey.com>
15511
15512 * python/py-type.c (convert_field): Use new_reference. Return
15513 gdbpy_ref.
15514 (make_fielditem): Return gdbpy_ref.
15515 (typy_fields): Update.
15516 (typy_getitem): Update.
15517 (field_name): Return gdbpy_ref. Use new_reference.
15518 (typy_iterator_iternext): Update.
15519
ea41325b
TT
155202019-01-03 Tom Tromey <tom@tromey.com>
15521
15522 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15523
2a3c71d6
TT
155242019-01-03 Tom Tromey <tom@tromey.com>
15525
15526 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15527 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15528 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15529 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15530 (pspy_set_type_printers): Likewise.
15531 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15532 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15533 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15534 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15535 (objfpy_set_type_printers): Likewise.
15536
5c329e6a
TT
155372019-01-03 Tom Tromey <tom@tromey.com>
15538
15539 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15540 (gdbpy_print_stack): Use gdbpy_err_fetch.
15541 * python/python-internal.h (class gdbpy_err_fetch): New class.
15542 (class gdbpy_enter) <m_error_type, m_error_value,
15543 m_error_traceback>: Remove.
15544 <m_error>: New member.
15545 (gdbpy_exception_to_string): Don't declare.
15546 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15547 * python/py-value.c (convert_value_from_python): Use
15548 gdbpy_err_fetch.
15549 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15550 gdbpy_exception_to_string.
15551 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15552 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15553 gdbpy_err_fetch.
15554
169bb27b
AB
155552019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15556
15557 * linux-nat.c (delete_lwp_cleanup): Delete.
15558 (struct lwp_deleter): New struct.
15559 (lwp_info_up): New typedef.
15560 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15561 lwp_info_up.
15562
a07c8880
AB
155632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15564
15565 * linux-fork.c (class scoped_switch_fork_info): New class.
15566 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15567
26089c49
AB
155682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15569
15570 * valops.c (find_overload_match): Remove use of null_cleanup, and
15571 calls to do_cleanups.
15572
06d3e5b0
AB
155732019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15574
15575 * compile/compile-cplus-types.c
15576 (compile_cplus_instance::decl_name): Handle changes to
15577 cp_func_name.
15578 * cp-support.c (cp_func_name): Update header comment, update
15579 return type.
15580 * cp-support.h (cp_func_name): Update return type in declaration.
15581 * valops.c (find_overload_match): Move temp_func local to top
15582 level of function and change its type. Use temp_func to hold and
15583 delete temporary string obtained from cp_func_name.
15584
66644cd3
AB
155852019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15586
15587 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15588 gdb::char_vector, remove cleanup, and update uses of `msg`.
15589
592d8c0a
JW
155902019-01-03 Jim Wilson <jimw@sifive.com>
15591
15592 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15593
c55d06ec
TT
155942019-01-02 Tom Tromey <tom@tromey.com>
15595
15596 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15597 (tdesc_parse_xml): Remove cleanups.
15598 * target-descriptions.h (make_cleanup_free_target_description):
15599 Don't declare.
15600 (target_desc_deleter): New struct.
15601 (target_desc_up): New typedef.
15602 * target-descriptions.c (target_desc_deleter::operator()): Rename
15603 from free_target_description.
15604 (make_cleanup_free_target_description): Remove.
15605
3a6ae42d
TT
156062019-01-02 Tom Tromey <tom@tromey.com>
15607
15608 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15609 constructor, destructor.
15610 (linespec_parser): Remove typedef.
15611 (~linespec_parser): Rename from linespec_parser_delete.
15612 (linespec_lex_to_end, linespec_complete_label)
15613 (linespec_complete): Update.
15614 (decode_line_full): Remove cleanups.
15615 (decode_line_1): Update.
15616
61fd3e73
TT
156172019-01-02 Tom Tromey <tom@tromey.com>
15618
15619 * python/python-internal.h (inferior_to_inferior_object): Change
15620 return type.
15621 * python/py-exitedevent.c (create_exited_event_object): Update.
15622 * python/py-inferior.c (inferior_to_inferior_object): Return
15623 gdbpy_ref.
15624 (python_new_inferior, python_inferior_deleted)
15625 (thread_to_thread_object, delete_thread_object)
15626 (build_inferior_list, gdbpy_selected_inferior): Update.
15627 * python/py-infthread.c (create_thread_object): Update. Also fail
15628 if inferior_to_inferior_object fails.
15629
d20172fc
SM
156302019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15631
15632 * inferior.h (class inferior) <displaced_step_state>: New field.
15633 * infrun.h (struct displaced_step_state): Move here from
15634 infrun.c. Initialize fields, add constructor.
15635 <inf>: Remove field.
15636 <reset>: New method.
15637 * infrun.c (struct displaced_step_inferior_state): Move to
15638 infrun.h.
15639 (displaced_step_inferior_states): Remove.
15640 (get_displaced_stepping_state): Adust.
15641 (displaced_step_in_progress_any_inferior): Adjust.
15642 (displaced_step_in_progress_thread): Adjust.
15643 (displaced_step_in_progress): Adjust.
15644 (add_displaced_stepping_state): Remove.
15645 (get_displaced_step_closure_by_addr): Adjust.
15646 (remove_displaced_stepping_state): Remove.
15647 (infrun_inferior_exit): Call displaced_step_state.reset.
15648 (use_displaced_stepping): Don't check for NULL.
15649 (displaced_step_prepare_throw): Call
15650 get_displaced_stepping_state.
15651 (displaced_step_fixup): Don't check for NULL.
15652 (prepare_for_detach): Don't check for NULL.
15653
e3319240
PW
156542019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15655
15656 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15657 in case of call that did not complete.
15658
5d36dfb9
AU
156592019-01-02 Andrey Utkin <autkin@undo.io>
15660
15661 * symfile.c (find_separate_debug_file): Fix search of debug files for
15662 remote debuggee.
15663
8833fbf0
TT
156642019-01-02 Tom Tromey <tom@tromey.com>
15665
15666 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15667 indentation.
15668 * python/py-frame.c (frapy_older): Remove cast.
15669 (frapy_newer): Likewise.
15670 * python/py-breakpoint.c (local_setattro): Remove cast.
15671 * python/py-arch.c (archpy_name): Remove local variable.
15672 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15673
4ada3dfd
JB
156742019-01-02 Joel Brobecker <brobecker@adacore.com>
15675
15676 * unittests/basic_string_view/element_access/char/empty.cc:
15677 Fix year range in copyright header.
15678
113b7b81
AB
156792019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15680
15681 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15682 Delete.
15683 <operator==>: Update with for removed field.
15684 <hash>: Likewise.
15685 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15686 <isa_features>: ...this.
15687 <abi_features>: New field.
15688 (riscv_isa_flen): Update comment.
15689 (riscv_abi_xlen): New declaration.
15690 (riscv_abi_flen): New declaration.
15691 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15692 isa_features.
15693 (riscv_abi_xlen): New function.
15694 (riscv_isa_flen): Update to get answer from isa_features.
15695 (riscv_abi_flen): New function.
15696 (riscv_has_fp_abi): Update to get answer from abi_features.
15697 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15698 xlen and flen.
15699 (riscv_call_info) <xlen, flen>: Update comment.
15700 (riscv_call_arg_struct): Remove invalid assertions
15701 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15702 is removed.
15703 (riscv_gdbarch_init): Gather isa features and abi features
15704 separately, ensure both match on the gdbarch when reusing an old
15705 gdbarch. Relax an error check to allow 32-bit abi float to run on
15706 a target with 64-bit float hardware.
15707
b18ca514
PW
157082019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15709
15710 * source.c (search_command_helper): Stop reverse search
15711 when line 1 has been searched.
15712
ec70d8db
PW
157132019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15714
15715 * record-full.c (record_full_base_target::close): Rewrite
15716 record_full_core_buf_list free logic.
15717
5b38f9c1
PW
157182019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15719
15720 * break-catch-syscall.c (print_one_catch_syscall): xfree
15721 the last text.
15722
66d91b39
JB
157232019-01-01 Joel Brobecker <brobecker@adacore.com>
15724
15725 * top.c (print_gdb_version): Update Copyright year in version
15726 message.
15727
42a4f53d
JB
157282019-01-01 Joel Brobecker <brobecker@adacore.com>
15729
15730 Update copyright year range in all GDB files.
15731
7e955d83 157322019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15733
5bbd631d 15734 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15735
5bbd631d 15736For older changes see ChangeLog-2018.
c906108c
SS
15737\f
15738Local Variables:
15739mode: change-log
15740left-margin: 8
15741fill-column: 74
15742version-control: never
57da7796 15743coding: utf-8
c906108c 15744End:
5bbd631d 15745
This page took 3.414526 seconds and 4 git commands to generate.