Add configure check for std::thread
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5e030278
TT
12019-11-26 Tom Tromey <tom@tromey.com>
2
3 * acinclude.m4: Include ax_pthread.m4.
4 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
5 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
6 (CLIBS): Use PTHREAD_LIBS.
7 (aclocal_m4_deps): Add ax_pthread.m4.
8 * config.in, configure: Rebuild.
9 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
10
5a79c107
TT
112019-11-26 Tom Tromey <tom@tromey.com>
12
13 * symtab.h (struct minimal_symbol) <name_set>: New member.
14 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
15 Don't call symbol_set_names.
16 (minimal_symbol_reader::install): Call symbol_set_names.
17
aa369509
PW
182019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
19
20 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
21 restore_active_ext_lang, as GIL is needed for (indirectly)
22 called PyOS_InterruptOccurred.
23
cadc9cb8
SM
242019-11-26 Simon Marchi <simon.marchi@efficios.com>
25
26 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
27 definition.
28
d04afd58
SM
292019-11-26 Simon Marchi <simon.marchi@efficios.com>
30
31 * remote-sim.c (simulator_command): Make static, remove
32 declaration.
33
dd694d77
SM
342019-11-26 Simon Marchi <simon.marchi@efficios.com>
35
36 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
37 static.
38 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
39 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
40 (main): Likewise.
41 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
42 (main): Likewise.
43 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
44 (main): Likewise.
45 * unittests/basic_string_view/element_access/char/1.cc (test01):
46 Likewise.
47 (main): Likewise.
48 * unittests/basic_string_view/element_access/char/empty.cc (main):
49 Likewise.
50 * unittests/basic_string_view/element_access/char/front_back.cc
51 (test01): Likewise.
52 (main): Likewise.
53 * unittests/basic_string_view/inserters/char/2.cc (test05):
54 Likewise.
55 (main): Likewise.
56 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
57 (test01): Likewise.
58 (main): Likewise.
59 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
60 (test01): Likewise.
61 (main): Likewise.
62 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
63 Likewise.
64 * unittests/basic_string_view/operations/compare/char/1.cc
65 (test01): Likewise.
66 (main): Likewise.
67 * unittests/basic_string_view/operations/compare/char/13650.cc
68 (test01): Likewise.
69 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
70 Likewise.
71 (main): Likewise.
72 * unittests/basic_string_view/operations/data/char/1.cc (test01):
73 Likewise.
74 (main): Likewise.
75 * unittests/basic_string_view/operations/find/char/1.cc (test01):
76 Likewise.
77 (main): Likewise.
78 * unittests/basic_string_view/operations/find/char/2.cc (test02):
79 Likewise.
80 (main): Likewise.
81 * unittests/basic_string_view/operations/find/char/3.cc (test03):
82 Likewise.
83 (main): Likewise.
84 * unittests/basic_string_view/operations/find/char/4.cc (main):
85 Likewise.
86 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
87 Likewise.
88 (main): Likewise.
89 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
90 Likewise.
91 (main): Likewise.
92 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
93 Likewise.
94 (main): Likewise.
95 * unittests/basic_string_view/operations/substr/char/1.cc
96 (test01): Likewise.
97 (main): Likewise.
98 * unittests/basic_string_view/operators/char/2.cc (main):
99 Likewise.
100 * unittests/optional/assignment/1.cc (test): Likewise.
101 * unittests/optional/assignment/2.cc (test): Likewise.
102 * unittests/optional/assignment/3.cc (test): Likewise.
103 * unittests/optional/assignment/4.cc (test): Likewise.
104 * unittests/optional/assignment/5.cc (test): Likewise.
105 * unittests/optional/assignment/6.cc (test): Likewise.
106 * unittests/optional/assignment/7.cc (test): Likewise.
107 * unittests/optional/cons/copy.cc (test): Likewise.
108 * unittests/optional/cons/default.cc (test): Likewise.
109 * unittests/optional/cons/move.cc (test): Likewise.
110 * unittests/optional/cons/value.cc (test): Likewise.
111 * unittests/optional/in_place.cc (test): Likewise.
112 * unittests/optional/observers/1.cc (test): Likewise.
113 * unittests/optional/observers/2.cc (test): Likewise.
114
3b5c1d49
SM
1152019-11-26 Simon Marchi <simon.marchi@efficios.com>
116
117 * tui-win.h (tui_set_var_cmd): Remove.
118 * tui-win.c (tui_set_var_cmd): Make static.
119
adce99fe
SM
1202019-11-26 Simon Marchi <simon.marchi@efficios.com>
121
122 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
123 rbreak_command_wrapper): Remove.
124 * symtab.c (rbreak_command_wrapper): Remove.
125
fe3adccf
SM
1262019-11-26 Simon Marchi <simon.marchi@efficios.com>
127
128 * inferior.h (info_terminal_command): Remove declaration.
129 * inflow.c (info_terminal_command): Make static.
130
b926335f
SM
1312019-11-26 Simon Marchi <simon.marchi@efficios.com>
132
133 * inferior.c (exit_inferior_silent): Remove.
134
b62f6f54
SM
1352019-11-26 Simon Marchi <simon.marchi@efficios.com>
136
137 * dictionary.c (dict_empty, mdict_empty): Remove.
138 * dictionary.c (mdict_empty): Remove.
139
cb8c24b6
SM
1402019-11-26 Simon Marchi <simon.marchi@efficios.com>
141
142 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
143 (arc_insn_get_memory_offset): Likewise.
144 (arc_insn_dump): Likewise.
145 * cp-support.c (test_cp_symbol_name_matches): Likewise.
146 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
147 * dictionary.c (dict_iterator_next): Likewise.
148 (dict_iter_match_first): Likewise.
149 (dict_iter_match_next): Likewise.
150 * f-lang.c (evaluate_subexp_f): Likewise.
151 * hppa-tdep.c (hppa_read_pc): Likewise.
152 * i386-tdep.c (i386_floatformat_for_type): Likewise.
153 * parse.c (write_exp_elt_msym): Likewise.
154 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
155 * remote.c (remote_packet_size): Likewise.
156 (remote_notif_stop_parse): Likewise.
157 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
158 * s12z-tdep.c (s12z_disassemble_info): Likewise.
159 * source.c (prepare_path_for_appending): Likewise.
160 * sparc64-linux-tdep.c
161 (sparc64_linux_handle_segmentation_fault); Likewise.
162 * stack.c (frame_selection_by_function_completer): Likewise.
163
781597ff
SM
1642019-11-26 Simon Marchi <simon.marchi@efficios.com>
165
166 * completer.c (set_gdb_completion_word_break_characters):
167 Remove.
168
23baa4cc
SM
1692019-11-26 Simon Marchi <simon.marchi@efficios.com>
170
171 * dwarf-index-write.c: Include dwarf-index-write.h.
172 * mi/mi-interp.c: Include mi/mi-interp.h.
173
23767560
SM
1742019-11-26 Simon Marchi <simon.marchi@efficios.com>
175
176 * aarch32-tdep.c: Include aarch32-tdep.h.
177 * aarch32-tdep.h: Forward-declare struct target_desc.
178
6d91ce9a
CB
1792019-11-26 Christian Biesinger <cbiesinger@google.com>
180
181 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
182 strerror.
183 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
184 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
185
3cf2f237
TV
1862019-11-25 Tom de Vries <tdevries@suse.de>
187
188 * contrib/words.sh: Add -c option.
189
5b89c67a
CB
1902019-11-25 Christian Biesinger <cbiesinger@google.com>
191
192 * solib.c (solib_find_1): Change int to bool.
193 (exec_file_find): Change int to bool.
194 (solib_find): Change int to bool.
195 (solib_read_symbols): Change int to bool.
196 (solib_used): Change int to bool.
197 (solib_add): Change int to bool.
198 (info_sharedlibrary_command): Change int to bool.
199 (solib_contains_address_p): Change int to bool.
200 (solib_keep_data_in_core): Change int to bool.
201 (in_solib_dynsym_resolve_code): Change int to bool.
202 (reload_shared_libraries_1): Change int to bool.
203 (gdb_sysroot_changed): Change int to bool.
204 * solib.h (solib_read_symbols): Change int to bool.
205 (solib_contains_address_p): Change int to bool.
206 (solib_keep_data_in_core): Change int to bool.
207 (in_solib_dynsym_resolve_code): Change int to bool.
208 (libpthread_name_p): Change int to bool.
209
6cc8564b
LM
2102019-11-25 Luis Machado <luis.machado@linaro.org>
211
212 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
213 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
214 (remote_packet_max_chars): New static global.
215 (show_remote_packet_max_chars): New function.
216 (remote_target::putpkt_binary): Adjust to use new
217 remote_packet_max_chars option.
218 (remote_target::getpkt_or_notif_sane_1): Likewise.
219 (_initialize_remote): Register new remote-packet-max-chars option.
220
a7cdaa91
SM
2212019-11-24 Simon Marchi <simon.marchi@efficios.com>
222
223 * m68k-linux-nat.c: Include gdbarch.h.
224
26abc753
TT
2252019-11-24 Tom Tromey <tom@tromey.com>
226
227 * symfile.c (read_symbols): Update.
228 * psymtab.c (require_partial_symbols): Change type of "verbose" to
229 bool.
230 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
231 (psym_lookup_symbol, psym_find_last_source_symtab)
232 (psym_forget_cached_source_info, psym_print_stats)
233 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
234 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
235 (psym_map_matching_symbols, psym_expand_symtabs_matching)
236 (psym_find_compunit_symtab_by_address)
237 (maintenance_print_psymbols, maintenance_info_psymtabs)
238 (maintenance_check_psymtabs): Update.
239 * psymtab.h (require_partial_symbols): Change type of "verbose" to
240 bool.
241
012fc909
TT
2422019-11-22 Tom Tromey <tom@tromey.com>
243
244 * observable.h: Update comments.
245
c83d8d32
TT
2462019-11-22 Tom Tromey <tromey@adacore.com>
247
248 * ada-tasks.c (ada_task_is_alive): Make parameter const.
249 (print_ada_task_info): Don't try to fetch thread id if task is not
250 alive.
251
987012b8
CB
2522019-11-22 Christian Biesinger <cbiesinger@google.com>
253
254 * ada-exp.y: Update.
255 * ada-lang.c (sort_choices): Update.
256 (ada_print_symbol_signature): Update.
257 (resolve_subexp): Update.
258 (ada_parse_renaming): Update.
259 (ada_read_renaming_var_value): Update.
260 (lesseq_defined_than): Update.
261 (remove_extra_symbols): Update.
262 (remove_irrelevant_renamings): Update.
263 (ada_add_block_symbols): Update.
264 (ada_collect_symbol_completion_matches): Update.
265 (ada_is_renaming_symbol): Update.
266 (aggregate_assign_from_choices): Update.
267 (ada_evaluate_subexp): Update.
268 (ada_has_this_exception_support): Update.
269 (ada_is_non_standard_exception_sym): Update.
270 (ada_add_exceptions_from_frame): Update.
271 (ada_add_global_exceptions): Update.
272 (ada_print_subexp): Update.
273 * ax-gdb.c (gen_var_ref): Update.
274 (gen_maybe_namespace_elt): Update.
275 (gen_expr_for_cast): Update.
276 (gen_expr): Update.
277 * block.h: Update.
278 * blockframe.c (find_pc_partial_function): Update.
279 * breakpoint.c (print_breakpoint_location): Update.
280 (update_static_tracepoint): Update.
281 * btrace.c (ftrace_print_function_name): Update.
282 (ftrace_function_switched): Update.
283 * buildsym.c (find_symbol_in_list): Update.
284 * c-exp.y: Update.
285 * c-typeprint.c (c_print_typedef): Update.
286 (c_type_print_template_args): Update.
287 * cli/cli-cmds.c (edit_command): Update.
288 (list_command): Update.
289 (print_sal_location): Update.
290 * coffread.c (patch_opaque_types): Update.
291 (process_coff_symbol): Update.
292 (coff_read_enum_type): Update.
293 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
294 (convert_one_symbol): Update.
295 (hash_symname): Update.
296 (eq_symname): Update.
297 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
298 * compile/compile-cplus-types.c (debug_print_scope): Update.
299 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
300 * compile/compile-object-load.c (get_out_value_type): Update.
301 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
302 (search_symbol_list): Update.
303 (cp_lookup_symbol_imports_or_template): Update.
304 * cp-support.c (overload_list_add_symbol): Update.
305 * ctfread.c (psymtab_to_symtab): Update.
306 * dbxread.c (cp_set_block_scope): Update.
307 * dictionary.c (iter_match_first_hashed): Update.
308 (iter_match_next_hashed): Update.
309 (insert_symbol_hashed): Update.
310 (iter_match_next_linear): Update.
311 * dictionary.h: Update.
312 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
313 (locexpr_describe_location_piece): Update.
314 (locexpr_describe_location_1): Update.
315 (locexpr_generate_c_location): Update.
316 (loclist_describe_location): Update.
317 (loclist_generate_c_location): Update.
318 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
319 (read_func_scope): Update.
320 (process_enumeration_scope): Update.
321 (new_symbol): Update.
322 (dwarf2_const_value): Update.
323 (dwarf2_symbol_mark_computed): Update.
324 * eval.c (evaluate_funcall): Update.
325 (evaluate_subexp_standard): Update.
326 * expprint.c (print_subexp_standard): Update.
327 (dump_subexp_body_standard): Update.
328 * f-valprint.c (info_common_command_for_block): Update.
329 * findvar.c (get_hosting_frame): Update.
330 (default_read_var_value): Update.
331 * go-lang.c (go_symbol_package_name): Update.
332 * guile/scm-block.c (bkscm_print_block_smob): Update.
333 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
334 (gdbscm_symbol_name): Update.
335 (gdbscm_symbol_linkage_name): Update.
336 (gdbscm_symbol_print_name): Update.
337 * infcall.c (get_function_name): Update.
338 * infcmd.c (jump_command): Update.
339 (finish_command): Update.
340 * infrun.c (insert_exception_resume_breakpoint): Update.
341 * linespec.c (canonicalize_linespec): Update.
342 (create_sals_line_offset): Update.
343 (convert_linespec_to_sals): Update.
344 (complete_label): Update.
345 (find_label_symbols_in_block): Update.
346 * m2-typeprint.c (m2_print_typedef): Update.
347 * mdebugread.c (mdebug_reg_to_regnum): Update.
348 (parse_symbol): Update.
349 (mylookup_symbol): Update.
350 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
351 (list_args_or_locals): Update.
352 * objc-lang.c (compare_selectors): Update.
353 (info_selectors_command): Update.
354 (compare_classes): Update.
355 (info_classes_command): Update.
356 (find_imps): Update.
357 * p-typeprint.c (pascal_print_typedef): Update.
358 * printcmd.c (build_address_symbolic): Update.
359 (info_address_command): Update.
360 (print_variable_and_value): Update.
361 * python/py-framefilter.c (extract_sym): Update.
362 (py_print_single_arg): Update.
363 * python/py-symbol.c (sympy_str): Update.
364 (sympy_get_name): Update.
365 (sympy_get_linkage_name): Update.
366 * python/python.c (gdbpy_rbreak): Update.
367 * record-btrace.c (btrace_get_bfun_name): Update.
368 (btrace_call_history): Update.
369 * rust-lang.c (rust_print_typedef): Update.
370 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
371 * stabsread.c (stab_reg_to_regnum): Update.
372 (define_symbol): Update.
373 (read_enum_type): Update.
374 (common_block_end): Update.
375 (cleanup_undefined_types_1): Update.
376 (scan_file_globals): Update.
377 * stack.c (print_frame_arg): Update.
378 (print_frame_args): Update.
379 (find_frame_funname): Update.
380 (info_frame_command_core): Update.
381 (iterate_over_block_locals): Update.
382 (print_block_frame_labels): Update.
383 (do_print_variable_and_value): Update.
384 (iterate_over_block_arg_vars): Update.
385 (return_command): Update.
386 * symmisc.c (dump_symtab_1): Update.
387 (print_symbol): Update.
388 * symtab.c (eq_symbol_entry): Update.
389 (symbol_cache_dump): Update.
390 (lookup_language_this): Update.
391 (find_pc_sect_line): Update.
392 (skip_prologue_sal): Update.
393 (symbol_search::compare_search_syms): Update.
394 (treg_matches_sym_type_name): Update.
395 (search_symbols): Update.
396 (print_symbol_info): Update.
397 (rbreak_command): Update.
398 (completion_list_add_symbol): Update.
399 (find_gnu_ifunc): Update.
400 (get_symbol_address): Update.
401 (search_module_symbols): Update.
402 (info_module_subcommand): Update.
403 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
404 (SYMBOL_LINKAGE_NAME): Remove.
405 (SYMBOL_DEMANGLED_NAME): Remove.
406 (SYMBOL_PRINT_NAME): Remove.
407 (SYMBOL_SEARCH_NAME): Remove.
408 * tracepoint.c (set_traceframe_context): Update.
409 (validate_actionline): Update.
410 (collection_list::collect_symbol): Update.
411 (encode_actions_1): Update.
412 (info_scope_command): Update.
413 (print_one_static_tracepoint_marker): Update.
414 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
415 * valops.c (address_of_variable): Update.
416 (find_overload_match): Update.
417 (find_oload_champ): Update.
418
c9d95fa3
CB
4192019-11-22 Christian Biesinger <cbiesinger@google.com>
420
421 * ada-lang.c (ada_lookup_simple_minsym): Update.
422 (ada_collect_symbol_completion_matches): Update.
423 * ada-tasks.c (read_atcb): Update.
424 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
425 (amd64_windows_skip_trampoline_code): Update.
426 * arm-tdep.c (skip_prologue_function): Update.
427 (arm_skip_stack_protector): Update.
428 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
429 (arm_wince_skip_main_prologue): Update.
430 * ax-gdb.c (gen_expr): Update.
431 * block.c (call_site_for_pc): Update.
432 * blockframe.c (find_pc_partial_function): Update.
433 * breakpoint.c (set_breakpoint_location_function): Update.
434 * btrace.c (ftrace_print_function_name): Update.
435 (ftrace_function_switched): Update.
436 * c-valprint.c (print_unpacked_pointer): Update.
437 * coffread.c (coff_symfile_read): Update.
438 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
439 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
440 * dwarf-index-write.c (write_psymbols): Update.
441 * dwarf2loc.c (call_site_to_target_addr): Update.
442 (func_verify_no_selftailcall): Update.
443 (tailcall_dump): Update.
444 (call_site_find_chain_1): Update.
445 (dwarf_expr_reg_to_entry_parameter): Update.
446 * elfread.c (elf_gnu_ifunc_record_cache): Update.
447 * eval.c (evaluate_funcall): Update.
448 (evaluate_subexp_standard): Update.
449 (evaluate_subexp_for_sizeof): Update.
450 * expprint.c (print_subexp_standard): Update.
451 (dump_subexp_body_standard): Update.
452 * frame.c (get_prev_frame_always_1): Update.
453 * frv-tdep.c (frv_skip_main_prologue): Update.
454 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
455 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
456 (gnuv3_get_typename_from_type_info): Update.
457 (gnuv3_skip_trampoline): Update.
458 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
459 * i386-tdep.c (i386_skip_main_prologue): Update.
460 (i386_pe_skip_trampoline_code): Update.
461 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
462 * infcall.c (get_function_name): Update.
463 * linespec.c (minsym_found): Update.
464 * linux-fork.c (info_checkpoints_command): Update.
465 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
466 (m32c_m16c_pointer_to_address): Update.
467 * maint.c (maintenance_translate_address): Update.
468 * minsyms.c (add_minsym_to_hash_table): Update.
469 (add_minsym_to_demangled_hash_table): Update.
470 (lookup_minimal_symbol_mangled): Update.
471 (lookup_minimal_symbol_demangled): Update.
472 (lookup_minimal_symbol_linkage): Update.
473 (lookup_minimal_symbol_text): Update.
474 (lookup_minimal_symbol_by_pc_name): Update.
475 (minimal_symbol_is_less_than): Update.
476 (compact_minimal_symbols): Update.
477 (build_minimal_symbol_hash_tables): Update.
478 (find_solib_trampoline_target): Update.
479 * mips-tdep.c (mips_stub_frame_sniffer): Update.
480 (mips_skip_pic_trampoline_code): Update.
481 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
482 * objc-lang.c (info_selectors_command): Update.
483 (info_classes_command): Update.
484 (find_methods): Update.
485 (find_imps): Update.
486 * p-valprint.c (pascal_val_print): Update.
487 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
488 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
489 * printcmd.c (build_address_symbolic): Update.
490 (info_symbol_command): Update.
491 * psymtab.c (psymbol_name_matches): Update.
492 (match_partial_symbol): Update.
493 (lookup_partial_symbol): Update.
494 (print_partial_symbols): Update.
495 (sort_pst_symbols): Update.
496 (maintenance_check_psymtabs): Update.
497 * python/py-framefilter.c (py_print_frame): Update.
498 * python/python.c (gdbpy_rbreak): Update.
499 * record-btrace.c (btrace_get_bfun_name): Update.
500 (btrace_call_history): Update.
501 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
502 (rs6000_skip_trampoline_code): Update.
503 * sol-thread.c (info_cb): Update.
504 * stabsread.c (scan_file_globals): Update.
505 * stack.c (find_frame_funname): Update.
506 (info_frame_command_core): Update.
507 * symmisc.c (dump_msymbols): Update.
508 * symtab.c (symbol_natural_name): Rename to..,
509 (general_symbol_info::natural_name): ...this.
510 (symbol_demangled_name): Rename to...
511 (general_symbol_info::demangled_name): ...this.
512 (symbol_search_name): Rename to...
513 (general_symbol_info::search_name): ...this.
514 (symbol_matches_search_name): Update.
515 (find_pc_sect_line): Update.
516 (skip_prologue_sal): Update.
517 (search_symbols): Update.
518 (print_msymbol_info): Update.
519 (rbreak_command): Update.
520 (completion_list_add_msymbol): Update.
521 (completion_list_objc_symbol): Update.
522 (get_msymbol_address): Update.
523 * symtab.h (struct general_symbol_info): Add member functions
524 natural_name (), linkage_name (), print_name (), demangled_name (),
525 and search_name ().
526 (SYMBOL_NATURAL_NAME): Update.
527 (symbol_natural_name): Move to a member function on general_symbol_info.
528 (SYMBOL_DEMANGLED_NAME): Update.
529 (symbol_demangled_name): Move to a member function on
530 general_symbol_info.
531 (SYMBOL_SEARCH_NAME): Update.
532 (symbol_search_name): Move to a member function on general_symbol_info.
533 (MSYMBOL_NATURAL_NAME): Remove.
534 (MSYMBOL_LINKAGE_NAME): Remove.
535 (MSYMBOL_PRINT_NAME): Remove.
536 (MSYMBOL_DEMANGLED_NAME): Remove.
537 (MSYMBOL_SEARCH_NAME): Remove.
538 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
539
f8bab2d6
CB
5402019-11-22 Christian Biesinger <cbiesinger@google.com>
541
542 * symtab.c (create_demangled_names_hash): Use per_bfd->
543 minimal_symbol_count for computing the initial size, if greater
544 than our default size.
545
85e7588d
TV
5462019-11-22 Tom de Vries <tdevries@suse.de>
547
548 * contrib/words.sh: Improve words extraction.
549
f6180073
TV
5502019-11-22 Tom de Vries <tdevries@suse.de>
551
552 * contrib/words.sh: Combine sed invocations.
553
f10ffa41
CB
5542019-11-21 Christian Biesinger <cbiesinger@google.com>
555
556 * Makefile.in: Update.
557 * demangle.c: Rename to...
558 * gdb-demangle.c: ..this.
559 (is_cplus_marker): Change return type to bool.
560 (_initialize_demangler): Rename to...
561 (_initialize_gdb_demangle): ...this.
562 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
563 * symtab.h (demangle): Remove declaration; instead include
564 gdb-demangle.h.
565
6ba18521
TT
5662019-11-21 Tom Tromey <tromey@adacore.com>
567
568 * gdbsupport/format.c (format_pieces): Parse %I64d.
569 * unittests/format_pieces-selftests.c (test_windows_formats): New
570 function.
571 (run_tests): Call it.
572
34877895
PJ
5732019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
574
575 Byte reverse display of variables with DW_END_big, DW_END_little
576 (DW_AT_endianity) dwarf attributes if different than the native
577 byte order.
578 * ada-lang.c (ada_value_binop):
579 Use type_byte_order instead of gdbarch_byte_order.
580 * ada-valprint.c (printstr):
581 (ada_val_print_string):
582 * ada-lang.c (value_pointer):
583 (ada_value_binop):
584 Use type_byte_order instead of gdbarch_byte_order.
585 * c-lang.c (c_get_string):
586 Use type_byte_order instead of gdbarch_byte_order.
587 * c-valprint.c (c_val_print_array):
588 Use type_byte_order instead of gdbarch_byte_order.
589 * cp-valprint.c (cp_print_class_member):
590 Use type_byte_order instead of gdbarch_byte_order.
591 * dwarf2loc.c (rw_pieced_value):
592 Use type_byte_order instead of gdbarch_byte_order.
593 * dwarf2read.c (read_base_type): Handle DW_END_big,
594 DW_END_little
595 * f-lang.c (f_get_encoding):
596 Use type_byte_order instead of gdbarch_byte_order.
597 * findvar.c (default_read_var_value):
598 Use type_byte_order instead of gdbarch_byte_order.
599 * gdbtypes.c (check_types_equal):
600 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
601 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
602 and TYPE_ENDIANITY_LITTLE if set.
603 (type_byte_order): new function.
604 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
605 (struct main_type) <flag_endianity_not_default>:
606 New field.
607 (type_byte_order): New function.
608 * infcmd.c (default_print_one_register_info):
609 Use type_byte_order instead of gdbarch_byte_order.
610 * p-lang.c (pascal_printstr):
611 Use type_byte_order instead of gdbarch_byte_order.
612 * p-valprint.c (pascal_val_print):
613 Use type_byte_order instead of gdbarch_byte_order.
614 * printcmd.c (print_scalar_formatted):
615 Use type_byte_order instead of gdbarch_byte_order.
616 * solib-darwin.c (darwin_current_sos):
617 Use type_byte_order instead of gdbarch_byte_order.
618 * solib-svr4.c (solib_svr4_r_ldsomap):
619 Use type_byte_order instead of gdbarch_byte_order.
620 * stap-probe.c (stap_modify_semaphore):
621 Use type_byte_order instead of gdbarch_byte_order.
622 * target-float.c (target_float_same_format_p):
623 Use type_byte_order instead of gdbarch_byte_order.
624 * valarith.c (scalar_binop):
625 (value_bit_index):
626 Use type_byte_order instead of gdbarch_byte_order.
627 * valops.c (value_cast):
628 Use type_byte_order instead of gdbarch_byte_order.
629 * valprint.c (generic_emit_char):
630 (generic_printstr):
631 (val_print_string):
632 Use type_byte_order instead of gdbarch_byte_order.
633 * value.c (unpack_long):
634 (unpack_bits_as_long):
635 (unpack_value_bitfield):
636 (modify_field):
637 (pack_long):
638 (pack_unsigned_long):
639 Use type_byte_order instead of gdbarch_byte_order.
640 * findvar.c (unsigned_pointer_to_address):
641 (signed_pointer_to_address):
642 (unsigned_address_to_pointer):
643 (address_to_signed_pointer):
644 (default_read_var_value):
645 (default_value_from_register):
646 Use type_byte_order instead of gdbarch_byte_order.
647 * gnu-v3-abi.c (gnuv3_make_method_ptr):
648 Use type_byte_order instead of gdbarch_byte_order.
649 * riscv-tdep.c (riscv_print_one_register_info):
650 Use type_byte_order instead of gdbarch_byte_order.
651
87fb00ea
SM
6522019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
655 (current_ui_gdb_stdin_ptr): Likewise.
656 (current_ui_gdb_stderr_ptr): Likewise.
657 (current_ui_gdb_stdlog_ptr): Likewise.
658 (current_ui_current_uiout_ptr): Likewise.
659 (gen_ret_current_ui_field_ptr): Remove.
660
65d1cd5f
TV
6612019-11-21 Tom de Vries <tdevries@suse.de>
662
663 PR gdb/24956
664 * cli/cli-script.c (execute_control_command): Only switch to
665 INTERP_CONSOLE's ui_out when INTERP_MI is active.
666
9f6ad286
TT
6672019-11-19 Tom Tromey <tom@tromey.com>
668
669 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
670 Now static. Change type of "name".
671 (tui_set_win_height_command): Don't copy "arg".
672 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
673 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
674
435d3d88
AT
6752019-11-19 Ali Tamur <tamur@google.com>
676
677 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
678 "if (attr != nullptr)".
679 (dwarf2_find_base_address): Likewise.
680 (dwarf2_build_include_psymtabs): Likewise.
681 (read_cutu_die_from_dwo): Likewise.
682 (read_func_scope): Likewise.
683 (read_call_site_scope): Likewise.
684 (dwarf2_get_pc_bounds): Likewise.
685 (dwarf2_record_block_ranges): Likewise.
686 (dwarf2_add_field): Likewise.
687 (dwarf2_add_member_fn): Likewise.
688 (read_structure_type): Likewise.
689 (read_enumeration_type): Likewise.
690 (read_array_type): Likewise.
691 (read_array_order): Likewise.
692 (read_set_type): Likewise.
693 (read_common_block): Likewise.
694 (read_tag_reference_type): Likewise.
695 (read_tag_string_type): Likewise.
696 (read_subroutine_type): Likewise.
697 (read_base_type): Likewise.
698 (read_subrange_type): Likewise.
699 (new_symbol): Likewise.
700 (prepare_one_comp_unit): Likewise.
701
c9739b6a
TT
7022019-11-19 Tom Tromey <tromey@adacore.com>
703
704 * windows-nat.c (windows_nat_target::attach): Include GetLastError
705 result in error when DebugActiveProcess fails.
706
494409bb
SDJ
7072019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
708 Pedro Alves <palves@redhat.com>
709
710 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
711 * target.c (target_stack::push): Call 'unpush' if there's a
712 target on top of the stack.
713
2e953aca
PW
7142019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
715
716 * python/py-block.c (blpy_dealloc): Call tp_free.
717 (blpy_block_syms_dealloc): Likewise.
718 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
719 * python/py-inferior.c (infpy_dealloc): Likewise.
720 * python/py-lazy-string.c (stpy_dealloc): Likewise.
721 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
722 * python/py-symbol.c (sympy_dealloc): Likewise.
723 * python/py-symtab.c (stpy_dealloc): Likewise.
724 * python/py-type.c (typy_iterator_dealloc): Likewise.
725
6edc43ec
CB
7262019-11-18 Christian Biesinger <cbiesinger@google.com>
727
728 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
729 constructor instead of using a class initializer.
730
cd850b40
CB
7312019-11-15 Christian Biesinger <cbiesinger@google.com>
732
733 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
734 * configure: Regenerate.
735 * configure.ac: Don't source common.host.
736 * gdbsupport/common.host: Remove.
737 * gdbsupport/mingw-strerror.c: Remove.
738 * gdbsupport/posix-strerror.c: Rename to...
739 * gdbsupport/safe-strerror.c: ...this.
740
53fea9c7
CB
7412019-11-15 Christian Biesinger <cbiesinger@google.com>
742
743 * maint.c (scoped_command_stats::print_time): Use localtime_r
744 instead of localtime (provided through gnulib if necessary).
745 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
746 of ctime.
747
f8e27d88
CB
7482019-11-15 Christian Biesinger <cbiesinger@google.com>
749
750 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
751 avoid compile errors.
752
5abebf3c
CB
7532019-11-15 Christian Biesinger <cbiesinger@google.com>
754
755 * config.in: Regenerate.
756 * configure: Regenerate.
757 * gdbsupport/common.m4: No longer check for strerror_r.
758 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
759 POSIX version of strerror_r, now that gnulib provides it if
760 necessary.
761
9a351667
CB
7622019-11-14 Christian Biesinger <cbiesinger@google.com>
763
764 * README (`configure' options): Update.
765
55708e99
TT
7662019-11-14 Tom Tromey <tromey@adacore.com>
767
768 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
769 expected type for the RHS if the LHS is a convenience variable.
770
4b09bb2e
SM
7712019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
774 Provide explicit default and copy constructor.
775
bd454f8b
PW
7762019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
777
778 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
779 only call Py_INCREF (newbp) in the bppy_pending_object case.
780
d1aa3cf0
TT
7812019-11-13 Tom Tromey <tromey@adacore.com>
782
783 PR build/25182:
784 * psympriv.h (partial_symbol): Remove static assert.
785 * symtab.h (general_symbol_info, symbol): Remove static assert.
786
e06f3d6e
AB
7872019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * gdbsupport/format.c (format_pieces::format_pieces): Support
790 printf 'z' size modifier.
791 * gdbsupport/format.h (enum argclass): Add size_t_arg.
792 * printcmd.c (ui_printf): Handle size_t_arg.
793 * ui-out.c (ui_out::vmessage): Likewise.
794 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
795 function.
796 (run_tests): Call test_format_int_sizes.
797
468c0cbb
CB
7982019-11-12 Christian Biesinger <cbiesinger@google.com>
799
800 * ada-exp.y (write_ambiguous_var): Update.
801 * buildsym.c (add_symbol_to_list): Update.
802 * dwarf2read.c (read_variable): Update.
803 (new_symbol): Update.
804 * jit.c (finalize_symtab): Update.
805 * language.c (language_alloc_type_symbol): Update.
806 * symtab.c (fixup_symbol_section): Update.
807 (initialize_objfile_symbol_1): Move code to...
808 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
809 (allocate_symbol): Update.
810 (allocate_template_symbol): Update.
811 (get_symbol_address): Update.
812 * symtab.h (struct symbol): Inherit from general_symbol_info instead
813 of having as a field, and add a constructor.
814 (SYMBOL_VALUE): Update.
815 (SYMBOL_VALUE_ADDRESS): Update.
816 (SET_SYMBOL_VALUE_ADDRESS): Update.
817 (SYMBOL_VALUE_BYTES): Update.
818 (SYMBOL_VALUE_COMMON_BLOCK): Update.
819 (SYMBOL_BLOCK_VALUE): Update.
820 (SYMBOL_VALUE_CHAIN): Update.
821 (SYMBOL_LANGUAGE): Update.
822 (SYMBOL_SECTION): Update.
823 (SYMBOL_OBJ_SECTION): Update.
824 (SYMBOL_SET_LANGUAGE): Update.
825 (SYMBOL_SET_LINKAGE_NAME): Update.
826 (SYMBOL_SET_NAMES): Update.
827 (SYMBOL_NATURAL_NAME): Update.
828 (SYMBOL_LINKAGE_NAME): Update.
829 (SYMBOL_DEMANGLED_NAME): Update.
830 (SYMBOL_SEARCH_NAME): Update.
831 (SYMBOL_MATCHES_SEARCH_NAME): Update.
832 (struct symbol): Update.
833 (struct template_symbol): Update.
834 (struct rust_vtable_symbol): Update.
835 * xcoffread.c (SYMBOL_DUP): Update.
836
ed2c82c3
TT
8372019-11-12 Tom Tromey <tom@tromey.com>
838
839 * tui/tui-layout.c (show_layout): Set current_layout.
840 (show_source_disasm_command, show_data)
841 (show_source_or_disasm_and_command): Don't set current_layout.
842
d9fcefd5
TT
8432019-11-12 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
846
45e42163
TT
8472019-11-12 Tom Tromey <tom@tromey.com>
848
849 * tui/tui-win.c (resize_message): New global.
850 (show_tui_resize_message): New function.
851 (tui_async_resize_screen): Print message if requested.
852 (_initialize_tui_win): Add tui-resize-message setting.
853 * NEWS: Add entry for new commands.
854
c86d74cc
TT
8552019-11-11 Tom Tromey <tom@tromey.com>
856
857 * tui/tui.c (tui_initialize_readline): Add new bindable readline
858 functions.
859
7b7b9424
CB
8602019-11-11 Christian Biesinger <cbiesinger@google.com>
861
862 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
863
086baaf1
AB
8642019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
865
866 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
867 function.
868 * python/python-internal.h (gdbpy_lookup_static_symbols):
869 Declare new function.
870 * python/python.c (python_GdbMethods): Add
871 gdb.lookup_static_symbols method.
872 * NEWS: Mention gdb.lookup_static_symbols.
873
09ff83af
AB
8742019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
877 static block of current object file first. Also fix typo in
878 header comment.
879
eb2dd8df
AB
8802019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * stack.c (set_last_displayed_sal): Delete.
883 (last_displayed_sal_valid): Delete.
884 (last_displayed_pspace): Delete.
885 (last_displayed_addr): Delete.
886 (last_displayed_symtab): Delete.
887 (last_displayed_line): Delete.
888 (class last_displayed_symtab_info_type): New.
889 (last_displayed_symtab_info): New static global variable.
890 (print_frame_info): Call methods on last_displayed_symtab_info.
891 (clear_last_displayed_sal): Update header comment, and make use of
892 last_displayed_symtab_info.
893 (last_displayed_sal_is_valid): Likewise.
894 (get_last_displayed_pspace): Likewise.
895 (get_last_displayed_addr): Likewise.
896 (get_last_displayed_symtab): Likewise.
897 (get_last_displayed_line): Likewise.
898 (get_last_displayed_sal): Likewise.
899 * stack.h (clear_last_displayed_sal): Update header comment.
900 (last_displayed_sal_is_valid): Likewise.
901 (get_last_displayed_pspace): Likewise.
902 (get_last_displayed_addr): Likewise.
903 (get_last_displayed_symtab): Likewise.
904 (get_last_displayed_line): Likewise.
905 (get_last_displayed_sal): Likewise.
906
62137775
AB
9072019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * stack.c (frame_show_address): Convert return type to bool.
910 * stack.h (frame_show_address): Likewise, and update header
911 comment.
912
cf57ad6d
AB
9132019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
916 * unittests/vec-utils-selftests.c: New file.
917 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
918
0b026263
TT
9192019-11-10 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
922 (tui_highlight_win): Likewise.
923 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
924 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
925 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
926 Don't set can_highlight.
927
b049ce2d
TT
9282019-11-10 Tom Tromey <tom@tromey.com>
929
930 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
931 Remove unused declaration.
932
992a7040
TT
9332019-11-08 Tom Tromey <tromey@adacore.com>
934
935 * top.c (read_command_file): Update.
936 (command_line_input): Make return type const.
937 * python/py-gdb-readline.c: Update.
938 * linespec.c (decode_line_2): Update.
939 * defs.h (command_line_input): Make return type const.
940 * cli/cli-script.c (read_next_line): Make return type const.
941 * ada-lang.c (get_selections): Update.
942
ca3a04f6
CB
9432019-11-06 Christian Biesinger <cbiesinger@google.com>
944
945 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
946 * mi/mi-main.c (output_cores): Likewise.
947 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
948 (linux_xfer_osdata_modules): Likewise.
949 * remote.c (register_remote_support_xml): Likewise.
950 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
951 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
952
e0eac551
TT
9532019-11-06 Tom Tromey <tom@tromey.com>
954
955 * tui/tui-interp.c: Don't include readline.h.
956 * tui/tui-hooks.c: Don't include readline.h.
957 * symmisc.c: Include tilde.h, not readline.h.
958 * symfile.c: Include tilde.h, not readline.h.
959 * source.c: Include tilde.h, not readline.h.
960 * solib.c: Include tilde.h, not readline.h.
961 * psymtab.c: Include tilde.h, not readline.h.
962 * exec.c: Include tilde.h, not readline.h.
963 * corelow.c: Include tilde.h, not readline.h.
964 * cli/cli-dump.c: Include tilde.h, not readline.h.
965 * cli/cli-cmds.c: Don't include readline.h.
966
825165c5
TT
9672019-11-05 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
970 (tui_disassemble): Set addr_size.
971 (tui_disasm_window::set_contents): Use addr_size.
972
91ae903f
TT
9732019-11-05 Tom Tromey <tom@tromey.com>
974
975 * rust-lang.c (rust_language_defn): Update.
976 * python/py-value.c (valpy_string): Call c_get_string.
977 * p-lang.c (pascal_language_defn): Update.
978 * opencl-lang.c (opencl_language_defn): Update.
979 * objc-lang.c (objc_language_defn): Update.
980 * m2-lang.c (m2_language_defn): Update.
981 * language.c (unknown_language_defn, auto_language_defn): Update.
982 (default_get_string): Remove.
983 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
984 * go-lang.c (go_language_defn): Update.
985 * f-lang.c (f_language_defn): Update.
986 * d-lang.c (d_language_defn): Update.
987 * c-lang.c (c_language_defn, cplus_language_defn)
988 (asm_language_defn, minimal_language_defn): Update.
989 * ada-lang.c (ada_language_defn): Update.
990 * language.h (struct language_defn) <la_get_string>: Remove.
991 (LA_GET_STRING): Remove.
992 (default_get_string): Don't declare.
993
1df2f9ef
TT
9942019-11-05 Tom Tromey <tom@tromey.com>
995
996 * tui/tui-source.h (struct tui_source_window): Inline
997 constructor. Remove destructor.
998 <style_changed, m_observable>: Move to superclass.
999 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1000 (struct tui_source_window_base): Move private members to end.
1001 <style_changed, m_observable>: Move from tui_source_window.
1002 * tui/tui-winsource.c (tui_copy_source_line): Move from
1003 tui-source.c. Rename from copy_source_line. Add special handling
1004 for negative line number.
1005 (tui_source_window_base::style_changed): Move from
1006 tui_source_window.
1007 (tui_source_window_base): Register observer.
1008 (~tui_source_window_base): New.
1009 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1010 rename.
1011 (tui_source_window::set_contents): Use tui_copy_source_line.
1012 (tui_source_window::tui_source_window): Move to tui-source.h.
1013 (tui_source_window::~tui_source_window): Remove.
1014 (tui_source_window::style_changed): Move to superclass.
1015 * tui/tui-disasm.c (tui_disassemble): Create string file with
1016 styling, when possible. Add "addr_size" parameter.
1017 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1018 Don't compute maximum size.
1019 (len_without_escapes): New function
1020
5d051055
TT
10212019-11-05 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1024 std::string.
1025 * tui/tui-winsource.c (tui_show_source_line): Update.
1026 * tui/tui-source.c (tui_source_window::set_contents): Update.
1027 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1028
ade7beea
CB
10292019-11-05 Christian Biesinger <cbiesinger@google.com>
1030
1031 * symtab.h (gdb_static_assert): Put && operator at the beginning
1032 of the line instead of the end.
1033
3573abe1
CB
10342019-11-04 Christian Biesinger <cbiesinger@google.com>
1035
1036 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1037 and sizeof (symbol).
1038 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1039
dae8b3eb
RO
10402019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1041
1042 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1043 * configure.host: Mark *-*-solaris2.10* obsolete.
1044 * configure.tgt: Mark Solaris < 11 obsolete.
1045 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1046 Update target triplet.
1047
5df96a4e
TT
10482019-11-01 Tom Tromey <tromey@adacore.com>
1049
1050 * utils.c (print_sys_errmsg): Simplify.
1051
b7481649
TT
10522019-11-01 Tom Tromey <tromey@adacore.com>
1053
1054 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1055
e48f6033
CB
10562019-11-01 Christian Biesinger <cbiesinger@google.com>
1057
1058 * configure: Regenerate.
1059 * configure.ac: Remove check for strerror_r.
1060 * gdbsupport/common.m4: Check for strerror_r.
1061
bd5766ec
LM
10622019-11-01 Luis Machado <luis.machado@linaro.org>
1063
1064 PR gdb/25124
1065
1066 * arm-tdep.c (arm_per_objfile): Rename to ...
1067 (arm_per_bfd): ... this.
1068 (arm_objfile_data_key): Rename to ...
1069 (arm_bfd_data_key): ... this.
1070 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1071 data.
1072 (arm_record_special_symbol): Likewise.
1073
e1709896
AB
10742019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1077 end.
1078 * c-typeprint.c (c_print_typedef): Likewise.
1079 * f-typeprint.c (f_print_typedef): Likewise.
1080 * m2-typeprint.c (m2_print_typedef): Likewise.
1081 * p-typeprint.c (pascal_print_typedef): Likewise.
1082 * rust-lang.c (rust_print_typedef): Likewise.
1083 * symtab.c (print_symbol_info): Print a newline after calling
1084 typedef_print.
1085
165f8965
AB
10862019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * symtab.c (info_module_cmdlist): New variable.
1089 (info_module_command): New function.
1090 (search_module_symbols): New function.
1091 (info_module_subcommand): New function.
1092 (struct info_modules_var_func_options): New struct.
1093 (info_modules_var_func_options_defs): New variable.
1094 (make_info_modules_var_func_options_def_group): New function.
1095 (info_module_functions_command): New function.
1096 (info_module_variables_command): New function.
1097 (info_module_var_func_command_completer): New function.
1098 (_initialize_symtab): Register new 'info module functions' and
1099 'info module variables' commands.
1100 * symtab.h (typedef symbol_search_in_module): New typedef.
1101 (search_module_symbols): Declare new function.
1102 * NEWS: Mention new commands.
1103
59c35742
AB
11042019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1107 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1108 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1109 MODULES_DOMAIN.
1110 (scan_partial_symbols): Only create partial module symbols for non
1111 declarations.
1112 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1113 and MODULES_DOMAIN.
1114 * symtab.c (search_domain_name): Likewise.
1115 (search_symbols): Likewise.
1116 (print_symbol_info): Likewise.
1117 (symtab_symbol_info): Likewise.
1118 (info_modules_command): New function.
1119 (_initialize_symtab): Register 'info modules' command.
1120 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1121 * NEWS: Mention new 'info modules' command.
1122
aed61d02
PW
11232019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1124
1125 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1126 and $_gdb_maint_setting_str.
1127
9ad9b77d
PW
11282019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1129
1130 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1131 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1132 (str_value_from_setting, gdb_setting_str_internal_fn)
1133 (gdb_maint_setting_str_internal_fn): New functions.
1134 (_initialize_cli_cmds): Define the new convenience functions.
1135 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1136 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1137
8d6efaa2
CB
11382019-10-31 Christian Biesinger <cbiesinger@google.com>
1139
1140 * agent.c (set_can_use_agent): When the setting is turned on,
1141 look up agent symbols if we don't have them yet.
1142 (agent_new_objfile): Don't look up agent symbols when the agent
1143 setting is off.
1144
33cb1647
CB
11452019-10-31 Christian Biesinger <cbiesinger@google.com>
1146
1147 * config.in: Regenerate.
1148
b231e86a
CB
11492019-10-31 Christian Biesinger <cbiesinger@google.com>
1150
1151 * configure: Regenerate.
1152 * configure.ac: Check for strerror_r.
1153 * gdbsupport/common-utils.h (safe_strerror): Change return value
1154 to const char * and document that this function is now threadsafe.
1155 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1156 thread_local and call strerror_r, if available.
1157 * utils.c (perror_string): Update.
1158 (print_sys_errmsg): Update.
1159
a2726d4f
LM
11602019-10-31 Luis Machado <luis.machado@linaro.org>
1161
1162 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1163 objfile_key.
1164 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1165 objfile to fetch per-bfd data.
1166 (arm_find_exidx_entry): Likewise.
1167
75cafaa6
CB
11682019-10-31 Christian Biesinger <cbiesinger@google.com>
1169
1170 * gdbsupport/agent.c (debug_agent): Change type to bool.
1171 (use_agent): Likewise.
1172 (all_agent_symbols_look_up): Likewise.
1173 (agent_loaded_p): Change return value to bool.
1174 (agent_look_up_symbols): Update.
1175 (agent_capability_check): Change return value to bool.
1176 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1177 (debug_agent): Change type to bool.
1178 (use_agent): Likewise.
1179 (agent_capability_check): Change return value to bool.
1180
808590ec
CB
11812019-10-30 Christian Biesinger <cbiesinger@google.com>
1182
1183 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1184 (build_minimal_symbol_hash_tables): Code to clear the table moved
1185 to clear_minimal_symbol_hash_tables.
1186 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1187 when needed.
1188
f18ad8a1
SM
11892019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1190
1191 * infcmd.c: Remove includes.
1192 * infrun.c: Remove includes.
1193
de93309a
SM
11942019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1197 (grow_vect): Remove declaration.
1198 (ada_type_of_array): Remove declaration.
1199 (ada_update_initial_language): Remove declaration.
1200 (ada_fold_name): Remove declaration.
1201 (ada_fill_in_ada_prototype): Remove declaration.
1202 (user_select_syms): Remove declaration.
1203 (get_selections): Remove declaration.
1204 (ada_tag_type): Remove declaration.
1205 (ada_value_tag): Remove declaration.
1206 (ada_is_others_clause): Remove declaration.
1207 (ada_in_variant): Remove declaration.
1208 (ada_value_struct_elt): Remove declaration.
1209 (ada_attribute_name): Remove declaration.
1210 (ada_system_address_type): Remove declaration.
1211 * ada-lang.c (ada_watch_location_expression): Make static.
1212 (GROW_VECT): Move here from ada-lang.h.
1213 (grow_vect): Make static.
1214 (ada_update_initial_language): Make static.
1215 (ada_fold_name): Make static.
1216 (ada_type_of_array): Make static.
1217 (encoded_ordered_before): Move up.
1218 (sort_choices): Move up.
1219 (print_signatures): Move up.
1220 (ada_print_symbol_signature): Move up.
1221 (get_selections): Move up and make static.
1222 (user_select_syms): Move up and make static.
1223 (ada_value_struct_elt): Move up and make static.
1224 (ada_tag_type): Make static.
1225 (ada_value_tag): Make static.
1226 (ada_is_others_clause): Make static.
1227 (ada_in_variant): Make static.
1228 (ada_attribute_name): Make static.
1229
cdc46a9f
SM
12302019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * ada-lang.c: Remove includes.
1233 * ada-typeprint.c: Remove includes.
1234 * ada-valprint.c: Remove includes.
1235
90421c56
SM
12362019-10-29 Simon Marchi <simon.marchi@efficios.com>
1237
1238 * addrmap.c: Add static assertions of type size, moved from
1239 _initialize_addrmap.
1240 (_initialize_addrmap): Remove.
1241
31edb802
CB
12422019-10-29 Christian Biesinger <cbiesinger@google.com>
1243
1244 * coffread.c (record_minimal_symbol): Update.
1245 (process_coff_symbol): Update.
1246 * dbxread.c (read_dbx_symtab): Update.
1247 * dwarf2read.c (add_partial_symbol): Update.
1248 (fixup_go_packaging): Update.
1249 (load_partial_dies): Update.
1250 (new_symbol): Update.
1251 * elfread.c (record_minimal_symbol): Change signature to use
1252 gdb::string_view instead of name+len.
1253 (elf_symtab_read): Update.
1254 (elf_rel_plt_read): Update.
1255 * mdebugread.c (parse_partial_symbols): Update.
1256 (handle_psymbol_enumerators): Update.
1257 (new_symbol): Update.
1258 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1259 to use gdb::string_view instead of name+len.
1260 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1261 * psympriv.h (add_psymbol_to_list): Likewise.
1262 * psymtab.c (add_psymbol_to_bcache): Likewise.
1263 (add_psymbol_to_list): Likewise.
1264 * stabsread.c (define_symbol): Update.
1265 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1266 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1267 (symbol_set_names): Likewise.
1268 * xcoffread.c (scan_xcoff_symtab): Update.
1269
0c921b21
CB
12702019-10-29 Christian Biesinger <cbiesinger@google.com>
1271
1272 * symtab.h (symbol_set_names): Document that copy_name must be
1273 set to true for non-nullterminated strings.
1274 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1275 linkage_name if the entry was not found and we need to demangle.
1276
35e65c49
CB
12772019-10-29 Christian Biesinger <cbiesinger@google.com>
1278
1279 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1280 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1281 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1282 * gdbsupport/gdb_binary_search.h: New file.
1283
ed2a2229
CB
12842019-10-29 Christian Biesinger <cbiesinger@google.com>
1285
1286 * NEWS: Mention new --with-system-gdbinit-dir option.
1287 * config.in: Regenerate.
1288 * configure: Regenerate.
1289 * configure.ac: Add new option --with-system-gdbinit-dir.
1290 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1291 for a ".gdb" suffix.
1292 * main.c (get_init_files): Change system_gdbinit argument to
1293 a vector and return the files in SYSTEM_GDBINIT_DIR in
1294 addition to SYSTEM_GDBINIT.
1295 (captured_main_1): Update.
1296 (print_gdb_help): Update.
1297 * top.c (print_gdb_configuration): Also print the value of
1298 SYSTEM_GDBINIT_DIR.
1299
87f34879
CB
13002019-10-28 Christian Biesinger <cbiesinger@google.com>
1301
1302 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1303 that takes gdb::string_view arguments.
1304
30baf67b
TV
13052019-10-26 Tom de Vries <tdevries@suse.de>
1306
1307 * aarch64-linux-tdep.c: Fix typos in comments.
1308 * aarch64-tdep.c: Same.
1309 * ada-lang.c: Same.
1310 * amd64-nat.c: Same.
1311 * arc-tdep.c: Same.
1312 * arch/aarch64-insn.c: Same.
1313 * block.c: Same.
1314 * breakpoint.h: Same.
1315 * btrace.h: Same.
1316 * c-varobj.c: Same.
1317 * cli/cli-decode.c: Same.
1318 * cli/cli-script.c: Same.
1319 * cli/cli-utils.h: Same.
1320 * coff-pe-read.c: Same.
1321 * coffread.c: Same.
1322 * compile/compile-cplus-symbols.c: Same.
1323 * compile/compile-object-run.c: Same.
1324 * completer.c: Same.
1325 * corelow.c: Same.
1326 * cp-support.c: Same.
1327 * demangle.c: Same.
1328 * dwarf-index-write.c: Same.
1329 * dwarf2-frame.c: Same.
1330 * dwarf2-frame.h: Same.
1331 * eval.c: Same.
1332 * frame-base.h: Same.
1333 * frame.h: Same.
1334 * gdbcmd.h: Same.
1335 * gdbtypes.h: Same.
1336 * gnu-nat.c: Same.
1337 * guile/scm-objfile.c: Same.
1338 * i386-tdep.c: Same.
1339 * i386-tdep.h: Same.
1340 * infcall.c: Same.
1341 * infcall.h: Same.
1342 * linux-nat.c: Same.
1343 * m68k-tdep.c: Same.
1344 * macroexp.c: Same.
1345 * memattr.c: Same.
1346 * mi/mi-cmd-disas.c: Same.
1347 * mi/mi-getopt.h: Same.
1348 * mi/mi-main.c: Same.
1349 * minsyms.c: Same.
1350 * nat/aarch64-sve-linux-sigcontext.h: Same.
1351 * objfiles.h: Same.
1352 * ppc-linux-nat.c: Same.
1353 * ppc-linux-tdep.c: Same.
1354 * ppc-tdep.h: Same.
1355 * progspace.h: Same.
1356 * prologue-value.h: Same.
1357 * python/py-evtregistry.c: Same.
1358 * python/py-instruction.h: Same.
1359 * record-btrace.c: Same.
1360 * record-full.c: Same.
1361 * remote.c: Same.
1362 * rs6000-tdep.c: Same.
1363 * ser-tcp.c: Same.
1364 * sol-thread.c: Same.
1365 * sparc-sol2-tdep.c: Same.
1366 * sparc64-tdep.c: Same.
1367 * stabsread.c: Same.
1368 * symfile.c: Same.
1369 * symtab.h: Same.
1370 * target.c: Same.
1371 * tracepoint.c: Same.
1372 * tui/tui-data.h: Same.
1373 * tui/tui-io.c: Same.
1374 * tui/tui-win.c: Same.
1375 * tui/tui.c: Same.
1376 * unittests/rsp-low-selftests.c: Same.
1377 * user-regs.h: Same.
1378 * utils.c: Same.
1379 * utils.h: Same.
1380 * valarith.c: Same.
1381 * valops.c: Same.
1382 * valprint.c: Same.
1383 * valprint.h: Same.
1384 * value.c: Same.
1385 * value.h: Same.
1386 * varobj.c: Same.
1387 * x86-nat.h: Same.
1388 * xtensa-tdep.c: Same.
1389
1834d45f
AT
13902019-10-25 Ali Tamur <tamur@google.com>
1391
1392 * charset.c (find_charset_names): Reflect API change.
1393
5396ae17
CB
13942019-10-25 Christian Biesinger <cbiesinger@google.com>
1395
1396 * symtab.c (struct demangled_name_entry): Change demangled name
1397 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1398 part of the struct anymore.
1399 (symbol_set_names): No longer obstack allocate + copy the demangled
1400 name, just store the allocated name from bfd.
1401
93878f47
TT
14022019-10-25 Tom Tromey <tromey@adacore.com>
1403
1404 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1405 (bsearch_cie_cmp, add_cie): Remove.
1406 (find_cie): Reimplement.
1407 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1408 (dwarf2_build_frame_info): Update.
1409
7b71fc97
L
14102019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1411
1412 PR gdb/25126
1413 * symfile.c (reread_symbols): Call forget_cached_source_info to
1414 clear the stale source cache.
1415
cbb5a2ea
CB
14162019-10-24 Christian Biesinger <cbiesinger@google.com>
1417
1418 * configure: Regenerate.
1419 * configure.ac: Remove code that sets python_has_threads.
1420
71737c43
CB
14212019-10-24 Christian Biesinger <cbiesinger@google.com>
1422
1423 * config.in: Regenerate.
1424 * configure: Regenerate.
1425 * configure.ac: Remove the code that uses sed to get the python
1426 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1427
33d569b7
AB
14282019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1429
1430 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1431 error paths.
1432
f16f7b7c
TT
14332019-10-23 Tom Tromey <tom@tromey.com>
1434
1435 * arc-tdep.c: Remove ".." from include.
1436 * frv-tdep.c: Remove ".." from include.
1437 * lm32-tdep.c: Remove ".." from include.
1438 * microblaze-tdep.c: Remove ".." from include.
1439 * or1k-tdep.h: Remove ".." from include.
1440 * s12z-tdep.c: Remove ".." from include.
1441 * Makefile.in (OPCODES_CFLAGS): Add comment.
1442 (TOP_CFLAGS): New variable.
1443 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1444
6999161a
TT
14452019-10-23 Tom Tromey <tom@tromey.com>
1446
1447 * Makefile.in (READLINE_DIR): Update.
1448
12e7c35e
TBA
14492019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1450
1451 * infcall.c (call_function_by_hand_dummy): Fix the function
1452 comment. And extract out a code section into...
1453 (reserve_stack_space): ...this new function.
1454
37055cad
TBA
14552019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1456
1457 * infcall.c (value_arg_coerce): Remove an unused parameter.
1458 (call_function_by_hand_dummy): Update the call to
1459 'value_arg_coerce'.
1460
39bcc47c
TBA
14612019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1462
1463 * infcall.c (call_function_by_hand_dummy): Refactor.
1464
bd888c0f
TBA
14652019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1466
1467 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1468
c12d372d
TT
14692019-10-23 Tom Tromey <tom@tromey.com>
1470
1471 * configure: Rebuild.
1472 * configure.ac: Don't check for sigprocmask.
1473 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1474
4d0b984b
TT
14752019-10-23 Tom Tromey <tom@tromey.com>
1476
1477 * configure: Rebuild.
1478 * acinclude.m4: Use m4_include, not sinclude.
1479
7e785608
TV
14802019-10-23 Tom de Vries <tdevries@suse.de>
1481
1482 PR breakpoints/24687
1483 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1484
403772ef
CB
14852019-10-22 Christian Biesinger <cbiesinger@google.com>
1486
1487 * symtab.c (struct demangled_name_entry) <language>: Change from
1488 bitfield to regular variable.
1489
3a494279
CB
14902019-10-22 Christian Biesinger <cbiesinger@google.com>
1491
1492 * symtab.c (struct demangled_name_entry): Add a constructor.
1493 (free_demangled_name_entry): New function to call the destructor
1494 for demangled_name_entry.
1495 (create_demangled_names_hash): Pass free_demangled_name_entry to
1496 htab_create_alloc.
1497 (symbol_set_names): Call placement new for demangled_name_entry.
1498 * utils.c: No longer include xxhash.h here, now that fast_hash
1499 is inlined in the header.
1500 * utils.h: Instead, include it here.
1501
ccb1ba62
CB
15022019-10-22 Christian Biesinger <cbiesinger@google.com>
1503
1504 * Makefile.in: Link with libxxhash.
1505 * config.in: Regenerate.
1506 * configure: Regenerate.
1507 * configure.ac: Search for libxxhash.
1508 * utils.c (fast_hash): Use xxhash if present.
1509
1a6ff1a9
CB
15102019-10-22 Christian Biesinger <cbiesinger@google.com>
1511
1512 * utils.h (fast_hash): New function.
1513 * symtab.c (hash_demangled_name_entry): Call new function
1514 fast_hash.
1515
7bb43059
CB
15162019-10-22 Christian Biesinger <cbiesinger@google.com>
1517
1518 * symtab.c (struct demangled_name_entry): Change type of mangled
1519 to gdb::string_view. Also adds a constructor that takes the
1520 mangled name.
1521 (hash_demangled_name_entry): Update.
1522 (eq_demangled_name_entry): Update.
1523 (free_demangled_name_entry): New function to call the destructor
1524 now that this is not a POD anymore.
1525 (create_demangled_names_hash): Pass free_demangled_name_entry to
1526 htab_create_alloc.
1527 (symbol_set_names): Update.
1528
7ba99d21
AT
15292019-10-21 Ali Tamur <tamu@google.com>
1530
1531 * dwarf2read.c (dir_index): Change type.
1532 (file_name_index): Likewise.
1533 (line_header::include_dir_at): Change comment and implementation on
1534 whether it is DWARF 5.
1535 (line_header::is_valid_file_index): New function.
1536 (line_header::file_name_at): Change comment and implementation on
1537 whether it is DWARF 5.
1538 (line_header::file_names): Change to private field renamed as
1539 m_file_names and introduce a new accessor method.
1540 (line_header::file_names_size): New method.
1541 (line_header::include_dirs): Change to private field and rename as
1542 m_include_dirs.
1543 (dw2_get_file_names_reader): Define local var at a smaller scope and
1544 reflect API change.
1545 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1546 (process_structure_scope): Likewise.
1547 (line_header::add_include_dir): Change message and reflect renaming.
1548 (line_header::add_file_name): Likewise.
1549 (read_formatted_entries): Handle DW_FORM_data16.
1550 (dwarf_decode_line_header): Fix line header length calculation.
1551 (psymtab_include_file_name): Change comment and API.
1552 (lnp_state_machine::m_file): Update comment and reflect type change.
1553 (lnp_state_machine::record_line): Reflect type change.
1554 (dwarf_decode_lines): Reflect API change.
1555 (file_file_name): Likewise.
1556 (file_full_name): Likewise.
1557
45f47c3a
AB
15582019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1561
e5f3c0e3
TT
15622019-10-21 Tom Tromey <tom@tromey.com>
1563
1564 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1565
a0a461e5
TT
15662019-10-21 Tom Tromey <tom@tromey.com>
1567
1568 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1569 NM_H. Use AC_CONFIG_LINKS.
1570 * configure: Rebuild.
1571 * Makefile.in (NM_H): New variable.
1572 (generated_files): Add NM_H. Remove gcore.
1573 (nm.h, stamp-nmh): New targets.
1574
54d83b8d
TT
15752019-10-20 Tom Tromey <tom@tromey.com>
1576
1577 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1578 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1579 obsolete comment.
1580 (put_objfile_before): Now static.
1581
23771117
SM
15822019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * gdbsupport/common-utils.h (startswith): Change return type to
1585 bool.
1586
39ef2f62
CB
15872019-10-19 Christian Biesinger <cbiesinger@google.com>
1588
1589 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1590 * breakpoint.c (bp_locations_compare): Rename to...
1591 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1592 (update_global_location_list): Use std::sort instead of qsort.
1593 * buildsym.c (compare_line_numbers): Rename to...
1594 (lte_is_less_than): ...this, and change to std::sort semantics.
1595 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1596 instead of qsort.
1597 * disasm.c (compare_lines): Rename to...
1598 (line_is_less_than): ...this, and change to std::sort semantics.
1599 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1600 of qsort.
1601 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1602 (fde_is_less_than): ...this, and change to std::sort semantics.
1603 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1604 * mdebugread.c (compare_blocks):
1605 (block_is_less_than): ...this, and change to std::sort semantics.
1606 (sort_blocks): Call std::sort instead of qsort.
1607 * objfiles.c (qsort_cmp): Rename to...
1608 (sort_cmp): ...this, and change to std::sort semantics.
1609 (update_section_map): Call std::sort instead of qsort.
1610 * remote.c (compare_pnums): Remove.
1611 (map_regcache_remote_table): Call std::sort instead of qsort.
1612 * utils.c (compare_positive_ints): Remove.
1613 * utils.h (compare_positive_ints): Remove.
1614 * xcoffread.c (compare_lte): Remove.
1615 (arrange_linetable): Call std::sort instead of qsort.
1616
f71433ee
SDJ
16172019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1618
1619 * symfile.c (init_entry_point_info): Fix typo.
1620 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1621
85102364
TV
16222019-10-18 Tom de Vries <tdevries@suse.de>
1623
1624 * aarch64-tdep.c: Fix typos in comments.
1625 * ada-lang.c: Same.
1626 * ada-tasks.c: Same.
1627 * alpha-tdep.c: Same.
1628 * alpha-tdep.h: Same.
1629 * amd64-nat.c: Same.
1630 * amd64-windows-tdep.c: Same.
1631 * arc-tdep.c: Same.
1632 * arc-tdep.h: Same.
1633 * arch-utils.c: Same.
1634 * arm-nbsd-tdep.c: Same.
1635 * arm-tdep.c: Same.
1636 * ax-gdb.c: Same.
1637 * blockframe.c: Same.
1638 * btrace.c: Same.
1639 * c-varobj.c: Same.
1640 * coff-pe-read.c: Same.
1641 * coffread.c: Same.
1642 * cris-tdep.c: Same.
1643 * darwin-nat.c: Same.
1644 * dbxread.c: Same.
1645 * dcache.c: Same.
1646 * disasm.c: Same.
1647 * dtrace-probe.c: Same.
1648 * dwarf-index-write.c: Same.
1649 * dwarf2-frame-tailcall.c: Same.
1650 * dwarf2-frame.c: Same.
1651 * dwarf2read.c: Same.
1652 * eval.c: Same.
1653 * exceptions.c: Same.
1654 * fbsd-tdep.c: Same.
1655 * findvar.c: Same.
1656 * frame.c: Same.
1657 * frv-tdep.c: Same.
1658 * gnu-v3-abi.c: Same.
1659 * go32-nat.c: Same.
1660 * h8300-tdep.c: Same.
1661 * hppa-tdep.c: Same.
1662 * i386-linux-tdep.c: Same.
1663 * i386-tdep.c: Same.
1664 * ia64-libunwind-tdep.c: Same.
1665 * ia64-tdep.c: Same.
1666 * infcmd.c: Same.
1667 * infrun.c: Same.
1668 * linespec.c: Same.
1669 * linux-nat.c: Same.
1670 * linux-thread-db.c: Same.
1671 * machoread.c: Same.
1672 * mdebugread.c: Same.
1673 * mep-tdep.c: Same.
1674 * mn10300-tdep.c: Same.
1675 * namespace.c: Same.
1676 * objfiles.c: Same.
1677 * opencl-lang.c: Same.
1678 * or1k-tdep.c: Same.
1679 * osabi.c: Same.
1680 * ppc-linux-nat.c: Same.
1681 * ppc-linux-tdep.c: Same.
1682 * ppc-sysv-tdep.c: Same.
1683 * printcmd.c: Same.
1684 * procfs.c: Same.
1685 * record-btrace.c: Same.
1686 * record-full.c: Same.
1687 * remote-fileio.c: Same.
1688 * remote.c: Same.
1689 * rs6000-tdep.c: Same.
1690 * s12z-tdep.c: Same.
1691 * score-tdep.c: Same.
1692 * ser-base.c: Same.
1693 * ser-go32.c: Same.
1694 * skip.c: Same.
1695 * sol-thread.c: Same.
1696 * solib-svr4.c: Same.
1697 * solib.c: Same.
1698 * source.c: Same.
1699 * sparc-nat.c: Same.
1700 * sparc-sol2-tdep.c: Same.
1701 * sparc-tdep.c: Same.
1702 * sparc64-tdep.c: Same.
1703 * stabsread.c: Same.
1704 * stack.c: Same.
1705 * symfile.c: Same.
1706 * symtab.c: Same.
1707 * target-descriptions.c: Same.
1708 * target-float.c: Same.
1709 * thread.c: Same.
1710 * utils.c: Same.
1711 * valops.c: Same.
1712 * valprint.c: Same.
1713 * value.c: Same.
1714 * varobj.c: Same.
1715 * windows-nat.c: Same.
1716 * xcoffread.c: Same.
1717 * xstormy16-tdep.c: Same.
1718 * xtensa-tdep.c: Same.
1719
c5adaa19
TT
17202019-10-17 Tom Tromey <tromey@adacore.com>
1721
1722 * configure: Rebuild.
1723 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1724 in AC_CONFIG_FILES invocation.
1725 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1726 new-style config.status invocation.
1727
405feb71
TV
17282019-10-17 Tom de Vries <tdevries@suse.de>
1729
1730 * arm-nbsd-nat.c: Fix typos in comments.
1731 * arm-tdep.c: Same.
1732 * darwin-nat-info.c: Same.
1733 * dwarf2read.c: Same.
1734 * elfread.c: Same.
1735 * event-top.c: Same.
1736 * findvar.c: Same.
1737 * gdbtypes.c: Same.
1738 * hppa-tdep.c: Same.
1739 * i386-tdep.c: Same.
1740 * jit.c: Same.
1741 * main.c: Same.
1742 * mdebugread.c: Same.
1743 * moxie-tdep.c: Same.
1744 * nto-procfs.c: Same.
1745 * osabi.c: Same.
1746 * ppc-linux-tdep.c: Same.
1747 * remote.c: Same.
1748 * riscv-tdep.c: Same.
1749 * s390-tdep.c: Same.
1750 * sh-tdep.c: Same.
1751 * sparc-linux-tdep.c: Same.
1752 * sparc-nat.c: Same.
1753 * stack.c: Same.
1754 * target-descriptions.c: Same.
1755 * top.c: Same.
1756 * varobj.c: Same.
1757
befcd486
TT
17582019-10-16 Tom Tromey <tom@tromey.com>
1759
1760 * objfiles.h (struct objfile) <original_name>: Now const.
1761
17bfe554
CB
17622019-10-16 Christian Biesinger <cbiesinger@google.com>
1763
1764 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1765 pass on to sigsetjmp's second argument.
1766 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1767
950b7495
KS
17682019-10-16 Keith Seitz <keiths@redhat.com>
1769
1770 PR gdb/23567
1771 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1772 sections whose size is greater than the file size.
1773
ff371ec9
JW
17742019-10-16 Jim Wilson <jimw@sifive.com>
1775
1776 * riscv-tdep.c (riscv_gcc_target_options): New.
1777 (riscv_gnu_triplet_regexp): New.
1778 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1779 set_gdbarch_gnu_triplet_regexp.
1780
fec4e896
CB
17812019-10-16 Christian Biesinger <cbiesinger@google.com>
1782
1783 * Makefile.in: Add xml-builtin.h.
1784 * features/feature_to_c.sh: Add an include for xml-builtin.h
1785 to ensure that the compiler checks that the types match.
1786 * xml-builtin.h: New file.
1787 * xml-support.c (fetch_xml_builtin): Add missing const.
1788 * xml-support.h: Remove declaration of xml_builtins.
1789
d10eccaa
TV
17902019-10-16 Tom de Vries <tdevries@suse.de>
1791
1792 PR tdep/25096
1793 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1794 (amd64_classify_aggregate): ... here.
1795 (amd64_classify_aggregate_field): Handled fiels of nested structs
1796 recursively.
1797
745ff14e
TV
17982019-10-16 Tom de Vries <tdevries@suse.de>
1799
1800 PR tdep/24104
1801 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1802 that handles 'theclass'.
1803
791b7405
AB
18042019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1805
1806 * linespec.c (decode_digits_ordinary): Update comment.
1807 * make-target-delegates: No longer need to handle VEC case.
1808 * memrange.c (normalize_mem_ranges): Update comment.
1809 * namespace.c (add_using_directive): Update comment.
1810 * objc-lang.c (uniquify_strings): Update comment.
1811 * ppc-linux-nat.c (struct thread_points): Update comment.
1812 * probe.h (find_probes_in_objfile): Update comment.
1813 * target.h (enum flash_preserve_mode): Update comment.
1814 * varobj.c (varobj_restrict_range): Update comment.
1815 * varobj.h (varobj_list_children): Update comment.
1816
0dc32745
AB
18172019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * Makefile.in: Remove references to vec.h and vec.c.
1820 * aarch64-tdep.c: No longer include vec.h.
1821 * ada-lang.c: Likewise.
1822 * ada-lang.h: Likewise.
1823 * arm-tdep.c: Likewise.
1824 * ax.h: Likewise.
1825 * breakpoint.h: Likewise.
1826 * charset.c: Likewise.
1827 * cp-support.h: Likewise.
1828 * dtrace-probe.c: Likewise.
1829 * dwarf2read.c: Likewise.
1830 * extension.h: Likewise.
1831 * gdb_bfd.c: Likewise.
1832 * gdbsupport/gdb_vecs.h: Likewise.
1833 * gdbsupport/vec.c: Remove.
1834 * gdbsupport/vec.h: Remove.
1835 * gdbthread.h: Likewise.
1836 * guile/scm-type.c: Likewise.
1837 * inline-frame.c: Likewise.
1838 * machoread.c: Likewise.
1839 * memattr.c: Likewise.
1840 * memrange.h: Likewise.
1841 * namespace.h: Likewise.
1842 * nat/linux-btrace.h: Likewise.
1843 * osdata.c: Likewise.
1844 * parser-defs.h: Likewise.
1845 * progspace.h: Likewise.
1846 * python/py-type.c: Likewise.
1847 * record-btrace.c: Likewise.
1848 * rust-exp.y: Likewise.
1849 * solib-target.c: Likewise.
1850 * stap-probe.c: Likewise.
1851 * target-descriptions.c: Likewise.
1852 * target-memory.c: Likewise.
1853 * target.h: Likewise.
1854 * varobj.c: Likewise.
1855 * varobj.h: Likewise.
1856 * xml-support.h: Likewise.
1857
ae640021
AB
18582019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1861 Update for new std::vector based implementation.
1862 (process_psymtab_comp_unit_reader): Likewise.
1863 (scan_partial_symbols): Likewise.
1864 (recursively_compute_inclusions): Likewise.
1865 (compute_compunit_symtab_includes): Likewise.
1866 (process_imported_unit_die): Likewise.
1867 (queue_and_load_dwo_tu): Likewise.
1868 (follow_die_sig_1): Likewise.
1869 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1870 (typedef dwarf2_per_cu_ptr): Remove.
1871 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1872 function.
1873 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1874 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1875 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1876 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1877 std::vector.
1878
55dfc88f
TT
18792019-10-15 Tom Tromey <tromey@adacore.com>
1880
1881 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1882 TID.
1883
96b49c5e
TT
18842019-10-15 Tom Tromey <tromey@adacore.com>
1885
1886 * windows-nat.c (windows_nat_target::fetch_registers)
1887 (windows_nat_target::store_registers): Rename "pid" to "tid".
1888
953cff56
TT
18892019-10-15 Tom Tromey <tromey@adacore.com>
1890
1891 * gdbarch.h, gdbarch.c: Rebuild.
1892 * gdbarch.sh (gcc_target_options): Change return type to
1893 std::string.
1894 * compile/compile.c (get_args): Update.
1895 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1896 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1897 std::string.
1898 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1899 std::string.
1900 * arch-utils.c (default_gcc_target_options): Return std::string.
1901 * arch-utils.h (default_gcc_target_options): Return std::string.
1902 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1903
81e6b8eb
CB
19042019-10-15 Christian Biesinger <cbiesinger@google.com>
1905
1906 * breakpoint.c (breakpoint_chain): Make static.
1907 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1908 of accessing breakpoint_chain.
1909
95da600f
CB
19102019-10-15 Christian Biesinger <cbiesinger@google.com>
1911
1912 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1913 to a gdb::function_view and return value to bool.
1914 * breakpoint.h (iterate_over_breakpoints): Likewise.
1915 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1916 (pop_dummy_frame): Update.
1917 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1918 (gdbscm_breakpoints): Update.
1919 * python/py-breakpoint.c (build_bp_list): Update.
1920 (gdbpy_breakpoints): Update.
1921 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1922 Update.
1923 (bpfinishpy_handle_stop): Update.
1924 (bpfinishpy_handle_exit): Update.
1925 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1926 (svr4_update_solib_event_breakpoints): Update.
1927
ba18312d
AA
19282019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1929
1930 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1931 when unwrapping single-field structs.
1932
6acc1a0b
SM
19332019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * dwarf2read.c: Remove includes.
1936
284782de
SM
19372019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * ui-out.c (ui_out::call_do_message): Silence
1940 -Wformat-nonliteral warning.
1941
073bbbb0
SM
19422019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1943
1944 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1945 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1946 include: readline/tilde.h.
1947
7b9a15e1
CB
19482019-10-12 Christian Biesinger <cbiesinger@google.com>
1949
1950 * remote.c (remote_target::get_trace_status): Remove declaration of
1951 trace_regblock_size.
1952
cc8dee1f
CB
19532019-10-12 Christian Biesinger <cbiesinger@google.com>
1954
1955 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1956 (show_user): Remove declaration of cmdlist.
1957 * cli/cli-cmds.h (max_user_call_depth): Declare.
1958 * cli/cli-script.c (execute_user_command): Remove declaration
1959 of max_user_call_depth.
1960
a83d4ef6
JW
19612019-10-11 Jim Wilson <jimw@sifive.com>
1962
5f93c5a6
JW
1963 * gdbsupport/print-utils.h (pulongest): Fix comment.
1964 (plongest): Likewise.
1965 (phex): Add missing comment, mention leading zeros.
1966 (phex_nz): Add mention of no leading zeros to comment.
1967
a83d4ef6
JW
1968 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1969 plongest instead of unsigned long long cast.
1970
26344e0c
CB
19712019-10-10 Christian Biesinger <cbiesinger@google.com>
1972
1973 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1974 for external_editor_command and gdbtk_test.
1975
c2c440a9
CB
19762019-10-10 Christian Biesinger <cbiesinger@google.com>
1977
1978 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1979 * varobj.c (varobjdebug): Move comment to...
1980 * varobj.h (varobjdebug): ...here, and declare.
1981
a31bff9d
TT
19822019-10-09 Tom Tromey <tom@tromey.com>
1983
1984 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1985 erase_data_content.
1986
7523da63
TT
19872019-10-09 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1990 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1991 * tui/tui-command.c (tui_cmd_window::resize)
1992 (tui_refresh_cmd_win): Update.
1993 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1994 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1995 * tui/tui-data.c (~tui_gen_win_info): Remove.
1996 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1997 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1998 (tui_redisplay_readline, tui_mld_flush)
1999 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2000 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2001 (tui_data_window::erase_data_content)
2002 (tui_data_item_window::rerender)
2003 (tui_data_item_window::refresh_window): Update.
2004 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2005 (box_win, tui_gen_win_info::make_window)
2006 (tui_gen_win_info::make_visible): Update.
2007 (tui_delete_win): Remove.
2008 * tui/tui-winsource.c
2009 (tui_source_window_base::do_erase_source_content): Update.
2010 (tui_show_source_line, tui_source_window_base::update_tab_width)
2011 (tui_source_window_base::update_exec_info): Update.
2012 * tui/tui-data.h (struct curses_deleter): New.
2013 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2014 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2015
a7798e7f
TT
20162019-10-09 Tom Tromey <tom@tromey.com>
2017
2018 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2019
5c45899e
TT
20202019-10-09 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2023 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2024
6d7fd9aa
TT
20252019-10-09 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2028 window height directly.
2029 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2030 declare.
2031 * tui/tui-layout.c (tui_default_win_height): Remove.
2032 (tui_default_win_viewport_height): Remove.
2033
d2dd1084
TT
20342019-10-09 Tom Tromey <tom@tromey.com>
2035
2036 * tui/tui.h: Remove comments.
2037
cff32449
TV
20382019-10-09 Tom de Vries <tdevries@suse.de>
2039
2040 * python/lib/gdb/printer/bound_registers.py: Use
2041 '^builtin_type_bound128' as regexp argument for
2042 add_builtin_pretty_printer.
2043
6a25e8a2
CB
20442019-10-09 Christian Biesinger <cbiesinger@google.com>
2045
2046 * guile/guile.c (guile_extension_script_ops): Remove forward
2047 declaration and mark as static.
2048 (guile_script_ops): Likewise.
2049 (extension_language_guile): Move further down in the file so
2050 it can reference the definitions for guile_{extension_,}script_ops.
2051
6d9d6da4
AA
20522019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2053
2054 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2055 except SORTL, DFLTCC, and KDSA.
2056
3abea05d
TT
20572019-10-08 Tom Tromey <tromey@adacore.com>
2058
2059 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2060 (struct safe_symbol_file_add_args): Remove.
2061
dde996e2
TT
20622019-10-08 Tom Tromey <tromey@adacore.com>
2063
2064 * windows-nat.c: Don't include buildsym-legacy.h.
2065
cd6fdaa1
TT
20662019-10-08 Tom Tromey <tromey@adacore.com>
2067
2068 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2069
79bb1944
CB
20702019-10-08 Christian Biesinger <cbiesinger@google.com>
2071
2072 * gdbtypes.c (overload_debug): Move comment to header.
2073 * gdbtypes.h (overload_debug): Declare.
2074 * valops.c: Remove declaration of overload_debug, instead
2075 include gdbtypes.h.
2076
34916edc
CB
20772019-10-08 Christian Biesinger <cbiesinger@google.com>
2078
2079 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2080 through _().
2081 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2082 move comment...
2083 * language.h (lang_frame_mismatch_warn): ... here. Also add
2084 declaration.
2085 * top.c (lang_frame_mismatch_warn): Remove declaration.
2086 (check_frame_language_change): Pass lang_frame_mismatch_warn
2087 through _().
2088
bad5c026
CB
20892019-10-07 Christian Biesinger <cbiesinger@google.com>
2090
2091 * c-lang.h (vtbl_ptr_name): Declare.
2092 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2093 it from the header.
2094 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2095
51f1fdc3
CB
20962019-10-07 Christian Biesinger <cbiesinger@google.com>
2097
2098 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2099 gdb_static_assert.
2100
30d1f018
WP
21012019-10-07 Weimin Pan <weimin.pan@oracle.com>
2102
606813d5
WP
2103 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2104 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2105 * ctfread.c: New file.
2106 * ctfread.h: New file.
2107 * elfread.c: Include ctfread.h.
2108 (struct elfinfo text_p): New member ctfsect.
2109 (elf_locate_sections): Mark CTF section.
2110 (elf_symfile_read): Call elfctf_build_psymtabs.
2111 * Makefile.in (LIBCTF): Add.
2112 (CLIBS): Use it.
2113 (CDEPS): Likewise.
2114 (DIST): Add ctfread.c.
606813d5
WP
2115
21162019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * ctfread.c (struct nextfield): Renamed to ...
2119 (struct ctf_nextfield): ... this.
2120 (struct field_info): Renamed to ...
2121 (strut ctf_field_info): ... this.
2122 (attach_fields_to_type): Update for renamed structures.
2123 (ctf_add_member_cb): Likewise.
2124 (ctf_add_enum_member_cb): Likewise.
2125 (process_struct_members): Likewise.
2126 (process_enum_type): Likewise.
30d1f018 2127
518fe38c
WP
21282019-10-07 Weimin Pan <weimin.pan@oracle.com>
2129
2130 * tracectf.h: Rename, was ctf.h.
2131 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2132 * tracefile.c: Likewise.
2133 * tracepoint.c: Remove unused include ctf.h.
2134 * mi/mi-main.c: Likewise.
2135 * Makefile.in Replace ctf.c with tracectf.c.
2136
225f296a
JB
21372019-10-06 Joel Brobecker <brobecker@adacore.com>
2138
2139 * version.in: Change version number to "9.0.50.DATE-git".
2140
77c2dba3
TT
21412019-10-03 Tom Tromey <tom@tromey.com>
2142
2143 PR rust/24976:
2144 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2145
179aed7f
AB
21462019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2149 cp_search_name_hash.
2150 * NEWS: Add entry about nested function support.
2151
0a4b0913
AB
21522019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2153 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2156 for nested static variables when searchin VAR_DOMAIN.
2157 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2158 global scope, update comment.
2159 (add_partial_subprogram): Call add_partial_subprogram recursively
2160 for nested subroutines when processinng Fortran.
2161 (load_partial_dies): Process the child entities of a subprogram
2162 when processing Fortran.
2163 (partial_die_parent_scope): Handle building scope
2164 for Fortran nested functions.
2165 (process_die): Record that nested functions have a scope.
2166 (new_symbol): Always record Fortran subprograms on the global
2167 symbol list.
2168 (determine_prefix): How to build the prefix for Fortran
2169 subprograms.
2170
d8c06f22
AB
21712019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2174 have just sent the thread a SIGSTOP and are waiting for it to
2175 arrive.
2176
a8b3b8e9
AB
21772019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * btrace.c (btrace_add_pc): Remove whitespace before the template
2180 parameter in 'std::vector <...>'.
2181 (parse_xml_btrace_block): Likewise.
2182 (btrace_maint_decode_pt): Likewise.
2183 (btrace_maint_update_packets): Likewise.
2184 (btrace_maint_print_packets): Likewise.
2185 * btrace.h (struct btrace_maint_info): Likewise.
2186 * dwarf2read.c (struct type_unit_group): Likewise.
2187 (build_type_psymtabs_reader): Likewise.
2188 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2189 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2190 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2191
4d825eab
TV
21922019-10-03 Tom de Vries <tdevries@suse.de>
2193
2194 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2195 the first line of the help text for set/show style metadata.
2196
80fd2826
TT
21972019-10-02 Tom Tromey <tromey@adacore.com>
2198
2199 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2200 * gdbsupport/common-inferior.c: New file.
2201 * infcmd.c (startup_with_shell): Don't define.
2202 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2203 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2204 * inferior.h (startup_with_shell): Don't declare.
2205
70054538
CB
22062019-10-02 Christian Biesinger <cbiesinger@google.com>
2207
2208 * gdbsupport/gdb_assert.h: Include errors.h.
2209 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2210
37f6a7f4
TT
22112019-10-02 Tom Tromey <tromey@adacore.com>
2212
2213 * NEWS: Add $_ada_exception entry.
2214 * ada-lang.c (struct ada_catchpoint): Add constructor.
2215 <m_kind>: New member.
2216 (allocate_location_exception, re_set_exception): Remove
2217 "ex" parameter.
2218 (should_stop_exception): Compute $_ada_exception.
2219 (check_status_exception, print_it_exception)
2220 (print_one_exception, print_mention_exception): Remove
2221 "ex" parameter.
2222 (allocate_location_catch_exception, re_set_catch_exception)
2223 (check_status_exception, print_it_catch_exception)
2224 (print_one_catch_exception, print_mention_catch_exception)
2225 (print_recreate_catch_exception)
2226 (allocate_location_catch_exception_unhandled)
2227 (re_set_catch_exception_unhandled)
2228 (check_status_exception, print_it_catch_exception_unhandled)
2229 (print_one_catch_exception_unhandled)
2230 (print_mention_catch_exception_unhandled)
2231 (print_recreate_catch_exception_unhandled)
2232 (allocate_location_catch_assert, re_set_catch_assert)
2233 (check_status_assert, print_it_catch_assert)
2234 (print_one_catch_assert, print_mention_catch_assert)
2235 (print_recreate_catch_assert)
2236 (allocate_location_catch_handlers, re_set_catch_handlers)
2237 (check_status_handlers, print_it_catch_handlers)
2238 (print_one_catch_handlers, print_mention_catch_handlers)
2239 (print_recreate_catch_handlers): Remove.
2240 (create_ada_exception_catchpoint): Update.
2241 (initialize_ada_catchpoint_ops): Update.
2242
fccf9de1
TT
22432019-10-02 Tom Tromey <tromey@adacore.com>
2244
2245 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2246 (create_excep_cond_exprs): Simplify exception string computation.
2247 (ada_exception_catchpoint_cond_string): Likewise.
2248
4b610737
TT
22492019-10-02 Tom Tromey <tromey@adacore.com>
2250
2251 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2252 * ada-lang.c (lesseq_defined_than): Handle
2253 LOC_STATIC.
2254 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2255 parameter.
2256 (dwarf2_has_info): Likewise.
2257 (new_symbol): Set maybe_copied on symbol when
2258 appropriate.
2259 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2260 parameter.
2261 <can_copy>: New member.
2262 * elfread.c (record_minimal_symbol): Set maybe_copied
2263 on symbol when appropriate.
2264 (elf_symfile_read): Update call to dwarf2_has_info.
2265 * minsyms.c (lookup_minimal_symbol_linkage): New
2266 function.
2267 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2268 * symtab.c (get_symbol_address, get_msymbol_address):
2269 New functions.
2270 * symtab.h (get_symbol_address, get_msymbol_address):
2271 Declare.
2272 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2273 maybe_copied.
2274 (struct symbol, struct minimal_symbol) <maybe_copied>:
2275 New member.
2276
1dd58850
TT
22772019-10-02 Tom Tromey <tromey@adacore.com>
2278
2279 * source.c (struct current_source_location): New.
2280 (current_source_key): New global.
2281 (current_source_symtab, current_source_line)
2282 (current_source_pspace): Remove.
2283 (get_source_location): New function.
2284 (get_current_source_symtab_and_line)
2285 (set_default_source_symtab_and_line)
2286 (set_current_source_symtab_and_line)
2287 (clear_current_source_symtab_and_line, select_source_symtab)
2288 (info_source_command, print_source_lines_base)
2289 (info_line_command, search_command_helper, _initialize_source):
2290 Update.
2291
5c281dbb
TT
22922019-10-02 Tom Tromey <tromey@adacore.com>
2293
2294 * source.c (select_source_symtab): Don't call
2295 decode_line_with_current_source.
2296
d3d32391
AB
22972019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * symtab.c (lookup_global_symbol): Search global block.
2300
38583298
TT
23012019-10-02 Tom Tromey <tromey@adacore.com>
2302
2303 * coffread.c (process_coff_symbol): Update.
2304 * dwarf2read.c (var_decode_location, new_symbol): Update.
2305 * mdebugread.c (parse_symbol): Update.
2306 * objfiles.c (relocate_one_symbol): Update.
2307 * stabsread.c (define_symbol, fix_common_block)
2308 (scan_file_globals): Update.
2309 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2310 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2311 * xcoffread.c (process_xcoff_symbol): Update.
2312
9344c18f
AA
23132019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2314
2315 * MAINTAINERS: Update my email address.
2316
df07e2c7
AB
23172019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2320 std::vector.
2321 (build_type_psymtabs_reader): Update for std::vector.
2322 (build_type_psymtab_dependencies): Likewise.
2323 * dwarf2read.h: Remove use of DEF_VEC_P.
2324 (typedef sig_type_ptr): Delete.
2325
554ac434
AB
23262019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2329 to std::vector.
2330 (btrace_maint_decode_pt): Likewise, and move allocation of the
2331 vector outside of the loop.
2332 (btrace_maint_update_packets): Update to handle change from VEC to
2333 std::vector.
2334 (btrace_maint_print_packets): Likewise.
2335 (maint_info_btrace_cmd): Likewise.
2336 * btrace.h: Remove use of DEF_VEC_O.
2337 (typedef btrace_pt_packet_s): Delete.
2338 (struct btrace_maint_info) <packets>: Change fromm VEC to
2339 std::vector.
2340 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2341
46f29a9a
AB
23422019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2345 make accesses into the vector constant references.
2346 (btrace_add_pc): Update for std::vector.
2347 (btrace_stitch_bts): Likewise.
2348 (parse_xml_btrace_block): Likewise.
2349 (btrace_maint_update_packets): Likewise.
2350 (btrace_maint_print_packets): Likewise.
2351 (maint_info_btrace_cmd): Likewise.
2352 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2353 std::vector.
2354 (btrace_data::empty): Likewise.
2355 (btrace_data_append): Likewise.
2356 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2357 (typedef btrace_block_s): Delete.
2358 (struct btrace_block): Add constructor.
2359 (struct btrace_data_bts) <blocks>: Change to std::vector.
2360 * nat/linux-btrace.c (perf_event_read_bts): Update for
2361 std::vector.
2362 (linux_read_bts): Likewise.
2363
d770d56f
TT
23642019-10-01 Tom Tromey <tom@tromey.com>
2365
2366 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2367
9d636d67
TT
23682019-10-01 Tom Tromey <tom@tromey.com>
2369
2370 * stack.c (print_frame, info_frame_command_core): Use
2371 styled_string.
2372 * linux-thread-db.c (try_thread_db_load_1)
2373 (try_thread_db_load_from_pdir_1): Use styled_string.
2374 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2375 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2376 (maybe_print_unsupported_script_warning)
2377 (maybe_print_script_not_found_warning): Use styled_string.
2378 * ada-lang.c (user_select_syms): Use styled_string.
2379
7f6aba03
TT
23802019-10-01 Tom Tromey <tom@tromey.com>
2381
2382 * p-lang.c (pascal_printstr): Use metadata style.
2383 * value.c (show_convenience): Use metadata style.
2384 * valprint.c (valprint_check_validity, val_print_optimized_out)
2385 (val_print_not_saved, val_print_unavailable)
2386 (val_print_invalid_address, generic_val_print, val_print)
2387 (value_check_printable, val_print_array_elements): Use metadata
2388 style.
2389 * ui-out.h (class ui_out) <field_fmt>: New overload.
2390 <do_field_fmt>: Add style parameter.
2391 * ui-out.c (ui_out::field_fmt): New overload.
2392 * typeprint.c (type_print_unknown_return_type)
2393 (val_print_not_allocated, val_print_not_associated): Use metadata
2394 style.
2395 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2396 parameter.
2397 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2398 * tracepoint.c (tvariables_info_1): Use metadata style.
2399 * stack.c (print_frame_arg, print_frame_info, print_frame)
2400 (info_frame_command_core): Use metadata style.
2401 * skip.c (info_skip_command): Use metadata style.
2402 * rust-lang.c (rust_print_enum): Use metadata style.
2403 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2404 metadata style.
2405 * python/py-framefilter.c (py_print_single_arg): Use metadata
2406 style.
2407 * printcmd.c (do_one_display, print_variable_and_value): Use
2408 metadata style.
2409 * p-valprint.c (pascal_val_print)
2410 (pascal_object_print_value_fields): Use metadata style.
2411 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2412 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2413 parameter.
2414 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2415 * m2-valprint.c (m2_print_long_set): Use metadata style.
2416 * m2-typeprint.c (m2_print_type): Use metadata style.
2417 * infcmd.c (print_return_value_1): Use metadata style.
2418 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2419 * f-valprint.c (info_common_command_for_block): Use metadata
2420 style.
2421 * f-typeprint.c (f_type_print_base): Use metadata style.
2422 * expprint.c (print_subexp_standard): Use metadata style.
2423 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2424 * cli/cli-style.h (class cli_style_option): Add constructor.
2425 (metadata_style): Declare.
2426 * cli/cli-style.c (metadata_style): New global.
2427 (_initialize_cli_style): Register metadata style.
2428 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2429 parameter.
2430 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2431 * c-typeprint.c (c_type_print_base_struct_union)
2432 (c_type_print_base_1): Use metadata style.
2433 * breakpoint.c (watchpoint_value_print)
2434 (print_one_breakpoint_location): Use metadata style.
2435 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2436 style.
2437 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2438 style.
2439 * ada-valprint.c (val_print_packed_array_elements, printstr)
2440 (print_field_values, ada_val_print_ref, ada_val_print): Use
2441 metadata style.
2442 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2443 style.
2444 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2445 style.
2446 * ada-lang.c (user_select_syms): Use metadata style.
2447
14309bb6
TT
24482019-10-01 Tom Tromey <tom@tromey.com>
2449
2450 * cli/cli-cmds.c (pwd_command): Style output.
2451
6a831f06
PA
24522019-10-01 Pedro Alves <palves@redhat.com>
2453 Tom Tromey <tom@tromey.com>
2454
2455 * symtab.c (print_symbol_info): Use %ps.
2456 (print_msymbol_info): Use %ps.
2457 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2458 * printcmd.c (print_variable_and_value): Use %ps.
2459 * macrocmd.c (show_pp_source_pos): Use %ps.
2460 * infrun.c (print_exited_reason): Use ui_out::message.
2461 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2462 (describe_other_breakpoints): Use ui_out::message and new
2463 formats.
2464 (say_where): Use new formats.
2465 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2466 and new formats.
2467
2a3c1174
PA
24682019-10-01 Pedro Alves <palves@redhat.com>
2469 Tom Tromey <tom@tromey.com>
2470
2471 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2472 (test_gdb_formats): New function.
2473 (run_tests): Call it.
2474 (test_format_specifier): Update.
2475 * utils.h (fputs_filtered): Update comment.
2476 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2477 (fputs_styled_unfiltered): Declare.
2478 * utils.c (fputs_styled_unfiltered): New function.
2479 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2480 (vfprintf_filtered): Update.
2481 (vfprintf_unfiltered, vprintf_filtered): Update.
2482 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2483 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2484 disallow_ui_out_field>: New constants.
2485 (enum class field_kind): New.
2486 (struct base_field_s, struct signed_field_s): New.
2487 (signed_field): New function.
2488 (struct string_field_s): New.
2489 (string_field): New function.
2490 (struct styled_string_s): New.
2491 (styled_string): New function.
2492 (class ui_out) <message>: Add comment.
2493 <vmessage, call_do_message>: New methods.
2494 <do_message>: Add style parameter.
2495 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2496 methods.
2497 (ui_out::message): Rewrite.
2498 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2499 parameter.
2500 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2501 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2502 gdb_extensions parameter.
2503 (class format_piece): Add parameter to constructor.
2504 (n_int_args): New field.
2505 * gdbsupport/format.c (format_pieces::format_pieces): Add
2506 gdb_extensions parameter. Handle '*'.
2507 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2508 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2509 vfprintf_styled_no_gdbfmt.
2510 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2511 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2512 unfiltered output.
2513 * ui-style.h (struct ui_file_style) <ptr>: New method.
2514
0dfe5bfb
TT
25152019-10-01 Tom Tromey <tom@tromey.com>
2516
2517 * unittests/format_pieces-selftests.c: Update. Add final format.
2518 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2519 empty literal pieces.
2520
e43b10e1
TT
25212019-10-01 Tom Tromey <tom@tromey.com>
2522
2523 * ui-out.h (enum class ui_out_style_kind): Remove.
2524 (class ui_out) <field_string, field_stsream, do_field_string>:
2525 Change type of "style".
2526 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2527 (ui_out::field_string): Update.
2528 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2529 of "style".
2530 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2531 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2532 * stack.c (print_frame_arg, print_frame_info, print_frame):
2533 Update.
2534 * source.c (print_source_lines_base): Update.
2535 * solib.c (info_sharedlibrary_command): Update.
2536 * skip.c (info_skip_command): Update.
2537 * record-btrace.c (btrace_call_history_src_line)
2538 (btrace_call_history): Update.
2539 * python/py-framefilter.c (py_print_frame): Update.
2540 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2541 "style".
2542 * mi/mi-out.c (mi_ui_out::do_table_header)
2543 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2544 (mi_ui_out::do_field_string): Update.
2545 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2546 Update.
2547 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2548 "style".
2549 * cli-out.c (cli_ui_out::do_table_header)
2550 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2551 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2552 (cli_ui_out::do_field_fmt): Update.
2553 * breakpoint.c (print_breakpoint_location): Update.
2554 (update_static_tracepoint): Update.
2555
cd7c32c3
PW
25562019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2557
2558 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2559 conversion of gdb_datadir.
2560 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2561 remove not needed c_str ().
2562
8fe0f950
AT
25632019-09-30 Ali Tamur <tamur@google.com>
2564
2565 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2566 (dwarf2_string_attr): Likewise.
2567
5f48f8f3
AT
25682019-09-30 Ali Tamur <tamur@google.com>
2569
2570 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2571 (process_full_type_unit): Likewise.
2572 (dump_die_shallow): Likewise.
2573 (cu_debug_loc_section): Likewise.
2574
6fb08628
CB
25752019-09-28 Christian Biesinger <cbiesinger@google.com>
2576
2577 * minsyms.c (compare_minimal_symbols): Rename to...
2578 (minimal_symbol_is_less_than): ...this, and adjust to STL
2579 conventions (return bool, take arguments as references)
2580 (minimal_symbol_reader::install): Call std::sort instead
2581 of qsort.
2582
c7ee338a
CB
25832019-09-29 Christian Biesinger <cbiesinger@google.com>
2584
2585 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2586 hash and why.
2587 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2588 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2589
703a86c2
SM
25902019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2593 * psympriv.h (add_psymbol_to_list): Move comment here and update
2594 it.
2595
0df0352a
TV
25962019-09-29 Tom de Vries <tdevries@suse.de>
2597
2598 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2599 Use $tmpdir/$(basename "$output_file").dwz instead of
2600 "${output_file}.dwz".
2601
ad75efa6
SM
26022019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2603
2604 PR gdb/25045
2605 * hppa-linux-nat.c: Include gdbarch.h.
2606
ececd218
CB
26072019-09-26 Christian Biesinger <cbiesinger@google.com>
2608
2609 * blockframe.c (find_pc_partial_function): Change return type to bool.
2610 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2611 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2612 (stub_gnu_ifunc_resolve_name): Likewise.
2613 * symtab.c (compare_filenames_for_search): Likewise.
2614 (compare_glob_filenames_for_search): Likewise.
2615 (matching_obj_sections): Likewise.
2616 (symbol_matches_domain): Likewise.
2617 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2618 (find_line_pc): Change return type to bool.
2619 (find_line_pc_range): Likewise.
2620 (producer_is_realview): Likewise.
2621 * symtab.h (symbol_matches_domain): Likewise.
2622 (find_pc_partial_function): Likewise.
2623 (find_pc_line_pc_range): Likewise.
2624 (in_gnu_ifunc_stub): Likewise.
2625 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2626 (find_line_pc): Likewise.
2627 (find_line_pc_range): Likewise.
2628 (matching_obj_sections): Likewise.
2629 (find_line_symtab): Change out parameter to bool.
2630 (producer_is_realview): Change return type to bool.
2631 (compare_filenames_for_search): Likewise.
2632 (compare_glob_filenames_for_search): Likewise.
2633
27a900b8
TT
26342019-09-26 Tom Tromey <tom@tromey.com>
2635
2636 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2637 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2638 * gdb_usleep.h: Remove.
2639 * gdb_usleep.c: Remove.
2640 * utils.c: Don't include gdb_usleep.h.
2641
5d63b30a
TT
26422019-09-26 Tom Tromey <tromey@adacore.com>
2643
2644 * python/py-type.c (type_to_type_object): Call check_typedef
2645 for stub types.
2646
12904d37
TT
26472019-09-26 Tom Tromey <tom@tromey.com>
2648
2649 * utils.h (initialize_utils): Don't declare.
2650 * top.c (gdb_init): Don't call initialize_utils.
2651 * utils.c (initialize_utils): Remove. Move contents...
2652 (_initialize_utils): ... here.
2653
858f25f0
TT
26542019-09-25 Tom Tromey <tom@tromey.com>
2655
2656 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2657 * utils.h (make_hex_string): Don't declare.
2658 * utils.c (make_hex_string): Remove.
2659
3d435220
TV
26602019-09-24 Tom de Vries <tdevries@suse.de>
2661
2662 PR gdb/23815
2663 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2664 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2665
ddd44b70
DD
26662019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2667
2668 * NEWS: Mention new simulator port for PRU.
2669
f945dedf
CB
26702019-09-23 Christian Biesinger <cbiesinger@google.com>
2671
2672 * ada-exp.y (write_object_remaining): Update.
2673 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2674 and eliminate the static buffer.
2675 (ada_decode_symbol): Update.
2676 (ada_la_decode): Update.
2677 (ada_sniff_from_mangled_name): Update.
2678 (is_valid_name_for_wild_match): Update.
2679 (ada_lookup_name_info::matches): Update and simplify.
2680 (name_matches_regex): Update.
2681 (ada_add_global_exceptions): Update.
2682 * ada-lang.h (ada_decode): Update signature.
2683 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2684 * dwarf-index-write.c (debug_names::insert): Update.
2685
7ab78ccb
SM
26862019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2689 formatting.
2690
9252448b
SM
26912019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2692
2693 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2694 Change "nonzero" to "true" in documentation.
2695
626ca2c0
CB
26962019-09-20 Christian Biesinger <cbiesinger@google.com>
2697
2698 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2699 (_initialize_darwin_solib): Don't set
2700 darwin_so_ops.lookup_lib_global_symbol.
2701 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2702 set_gdbarch_iterate_over_objfiles_in_search_order.
2703 (elf_lookup_lib_symbol): Rename to...
2704 (svr4_iterate_over_objfiles_in_search_order): this, and update
2705 to iterate semantics.
2706 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2707 * solib.c (solib_global_lookup): Remove.
2708 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2709 (solib_global_lookup): Remove.
2710 * symtab.c (lookup_global_or_static_symbol): Remove call to
2711 solib_global_lookup.
2712
5a3a0d63
JB
27132019-09-20 Joel Brobecker <brobecker@adacore.com>
2714
2715 * NEWS: Move entries about default MI version now being
2716 version 3, and about the GDB/MI fix for multi-location
2717 breakpoints to the "since GDB 8.3" section.
2718
ffea1427
JB
27192019-09-20 Joel Brobecker <brobecker@adacore.com>
2720
2721 GDB 8.3.1 released.
2722
abf516c6
UW
27232019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2724
2725 * NEWS: Mention that Cell/B.E. debugging support was removed.
2726 * MAINTAINERS: Remove spu target.
2727
2728 * config/djgpp/fnchange.lst: Remove entries for removed files.
2729
2730 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2731 spu-multiarch.o, and spu-tdep.o.
2732 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2733 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2734 spu-multiarch.c, and spu-tdep.c.
2735 * spu-linux-nat.c: Remove file.
2736 * spu-multiarch.c: Remove file.
2737 * spu-tdep.c: Remove file.
2738 * spu-tdep.h: Remove file.
2739 * solib-spu.c: Remove file.
2740 * solib-spu.h: Remove file.
2741
2742 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2743 * configure.nat (spu-linux): Remove.
2744 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2745 solib-multiarch.o from gdb_target_obs.
2746 (spu*-*-*): Remove.
2747
2748 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2749 feature flag.
2750 (ppc_linux_no_features): Update.
2751 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2752 Cell/B.E. support.
2753 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2754 (tdesc_powerpc_cell64l): Likewise.
2755 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2756 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2757 Cell/B.E. support.
2758 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2759 Do not include "features/rs6000/powerpc-cell32l.c" or
2760 "features/rs6000/powerpc-cell64l.c".
2761 (ppc_linux_spu_section): Remove.
2762 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2763 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2764 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2765 (ppc_linux_spe_context_lookup): Remove.
2766 (ppc_linux_spe_context_inferior_created): Remove.
2767 (ppc_linux_spe_context_solib_loaded): Remove.
2768 (ppc_linux_spe_context_solib_unloaded): Remove.
2769 (ppc_linux_spe_context): Remove.
2770 (struct ppu2spu_cache): Remove.
2771 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2772 (struct ppu2spu_data): Remove.
2773 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2774 ppu2spu_unwind): Remove.
2775 (ppc_linux_init_abi): Remove Cell/B.E. support.
2776 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2777
2778 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2779 (rs6000/powerpc-cell64l-expedite): Likewise
2780 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2781 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2782 rs6000/powerpc-cell64l.xml.
2783 * features/rs6000/powerpc-cell32l.xml: Remove.
2784 * features/rs6000/powerpc-cell64l.xml: Likewise.
2785 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2786 * features/rs6000/powerpc-cell64l.c: Likewise.
2787 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2788 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2789 * regformats/reg-spu.dat: Remove.
2790
2791 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2792 * corelow.c (struct spuid_list): Remove.
2793 (add_to_spuid_list): Remove.
2794 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2795 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2796 (remote_protocol_features): Remove associated entries.
2797 (_initialize_remote): No longer initialize them.
2798 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2799 * linux-nat.c (SPUFS_MAGIC): Remove.
2800 (linux_proc_xfer_spu): Remove.
2801 (spu_enumerate_spu_ids): Remove.
2802 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2803 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2804 (linux_make_corefile_notes): No longer call it.
2805
2806 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2807 (cooked_write_test): Likewise.
2808
78e8cb91
TT
28092019-09-20 Tom Tromey <tom@tromey.com>
2810
2811 * NEWS: Mention case-sensitivity of TUI commands.
2812 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2813 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2814 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2815
f074b67e
TT
28162019-09-20 Tom Tromey <tom@tromey.com>
2817
2818 * tui/tui-source.c (tui_source_window::set_contents): Use
2819 make_unique_xstrdup.
2820 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2821 make_unique_xstrdup.
2822
63c4bf19
TT
28232019-09-20 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-data.c: Remove separator comments.
2826 * tui/tui-layout.c: Remove separator comments.
2827 * tui/tui-win.c: Remove separator comments.
2828 * tui/tui-wingeneral.c: Remove separator comments.
2829
43df9b2f
TT
28302019-09-20 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui.h (strcat_to_buf): Don't declare.
2833 * tui/tui.c (strcat_to_buf): Remove.
2834
7226433c
TT
28352019-09-20 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2838 from "fullname".
2839 * tui/tui-source.c (tui_source_window::set_contents)
2840 (tui_source_window::location_matches_p)
2841 (tui_source_window::maybe_update): Update.
2842
80df3337
TT
28432019-09-20 Tom Tromey <tom@tromey.com>
2844
2845 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2846 Update.
2847 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2848 prefix.
2849 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2850 (tui_data_window::line_from_reg_element_no)
2851 (tui_data_window::first_reg_element_no_inline)
2852 (tui_data_window::show_registers)
2853 (tui_data_window::show_register_group)
2854 (tui_data_window::display_registers_from)
2855 (tui_data_window::display_registers_from_line)
2856 (tui_data_window::first_data_item_displayed)
2857 (tui_data_window::delete_data_content_windows)
2858 (tui_data_window::erase_data_content)
2859 (tui_data_window::do_scroll_vertical)
2860 (tui_data_window::refresh_window)
2861 (tui_data_window::check_register_values): Update.
2862
9923f347
TT
28632019-09-20 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2866 (struct tui_locator_window) <full_name, proc_name>: Now
2867 std::string.
2868 * tui/tui-stack.c (tui_locator_window::make_status_line)
2869 (tui_locator_window::set_locator_fullname)
2870 (tui_locator_window::set_locator_info): Update.
2871 * tui/tui-source.c (tui_source_window::set_contents)
2872 (tui_source_window::showing_source_p): Update.
2873
b76251ab
TT
28742019-09-20 Tom Tromey <tom@tromey.com>
2875
2876 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2877 Don't call tui_locator_win_info_ptr.
2878
0891be08
TT
28792019-09-20 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2882
1b935acf
TT
28832019-09-20 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2886 height for locator.
2887 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2888 * tui/tui-layout.c (show_source_disasm_command, show_data)
2889 (show_source_or_disasm_and_command): Use 1 as height for locator.
2890
9abd8a65
TT
28912019-09-20 Tom Tromey <tom@tromey.com>
2892
2893 * tui/tui.c (tui_enable): Update.
2894 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2895 Update.
2896 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2897 Update.
2898 * tui/tui-data.c (win_resized): Now bool.
2899 (tui_win_resized): Return bool.
2900 (tui_set_win_resized_to): Accept a bool.
2901
b5457826
TT
29022019-09-20 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2905 Change type of "refresh_values_only".
2906 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2907 type of "refresh_values_only".
2908
6b915f7d
TT
29092019-09-20 Tom Tromey <tom@tromey.com>
2910
2911 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2912 std::string.
2913 (tui_disassemble): Add "pos" parameter.
2914 (tui_disasm_window::set_contents): Simplify.
2915
2ad52f6f
TT
29162019-09-20 Tom Tromey <tom@tromey.com>
2917
2918 * tui/tui-winsource.h (struct tui_source_window_base)
2919 <show_source_content>: Now private.
2920 * tui/tui-winsource.c
2921 (tui_source_window_base::show_source_content): Don't handle empty
2922 content case.
2923
b3b1bde6
TT
29242019-09-20 Tom Tromey <tom@tromey.com>
2925
2926 * tui/tui-layout.c (show_source_disasm_command)
2927 (show_source_or_disasm_and_command): Don't call
2928 show_source_content.
2929
71a25ed2
TT
29302019-09-20 Tom Tromey <tom@tromey.com>
2931
2932 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2933 Declare.
2934 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2935 from tui_make_status_line.
2936 (tui_locator_window::rerender): Update.
2937
f8532154
TT
29382019-09-20 Tom Tromey <tom@tromey.com>
2939
2940 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2941 (tui_locator_window::rerender): Update.
2942
2d81b349
TT
29432019-09-20 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui-winsource.h (struct tui_source_window_base)
2946 <~tui_source_window_base>: Don't declare.
2947 <fullname>: Remove.
2948 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2949 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2950 member.
2951 * tui/tui-source.c (tui_source_window::set_contents): Update.
2952 (tui_source_window::location_matches_p)
2953 (tui_source_window::maybe_update): Update.
2954
f14bec58
TT
29552019-09-20 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-winsource.h (~tui_source_element): Remove.
2958 (tui_source_element): Update.
2959 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2960 * tui/tui-winsource.c (tui_show_source_line): Update.
2961 * tui/tui-source.c (tui_source_window::set_contents): Update.
2962 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2963
78d5933a
TT
29642019-09-20 Tom Tromey <tom@tromey.com>
2965
2966 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2967 declare.
2968 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2969 tui_clear_source_windows_detail.
2970 * tui/tui-winsource.h (struct tui_source_window_base)
2971 <clear_detail>: Don't declare.
2972 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2973 Remove.
2974 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2975
d4207696
TT
29762019-09-20 Tom Tromey <tromey@adacore.com>
2977
2978 PR ada/24919:
2979 * block.c (contained_in): Fix final return value.
2980
00f93c44
AM
29812019-09-20 Alan Modra <amodra@gmail.com>
2982
2983 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2984 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2985 (read_indirect_string_from_dwz): Use bfd accessor.
2986 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2987 * machoread.c (macho_symfile_read_all_oso): Likewise.
2988 * solib.c (solib_bfd_open): Likewise.
2989
e4153ae6
CB
29902019-09-19 Christian Biesinger <cbiesinger@google.com>
2991
2992 * eval.c: Move declaration of overload_resolution to...
2993 * value.h: ...here.
2994
c7ae7675
CB
29952019-09-19 Christian Biesinger <cbiesinger@google.com>
2996
2997 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2998 * arm-linux-tdep.c: Likewise.
2999 * arm-nbsd-nat.c: Likewise.
3000 * arm-tdep.h: Declare arm_apcs_32.
3001 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3002
e86f08d2
CB
30032019-09-19 Christian Biesinger <cbiesinger@google.com>
3004
3005 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3006 * dwarf2read.h: Declare dwarf_always_disassemble.
3007
f64e2f40
TV
30082019-09-19 Tom de Vries <tdevries@suse.de>
3009
3010 PR gdb/25009
3011 * source-cache.c (source_cache::ensure): Catch exception thrown during
3012 construction of the highlighter.
3013
fd361982
AM
30142019-09-18 Alan Modra <amodra@gmail.com>
3015
3016 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3017 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3018 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3019 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3020 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3021 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3022 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3023 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3024 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3025 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3026 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3027 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3028 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3029 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3030 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3031 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3032 * mi/mi-interp.c: Update throughout for bfd section macro and
3033 function changes.
3034 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3035 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3036
11061048
TT
30372019-09-18 Tom Tromey <tom@tromey.com>
3038
3039 * NEWS: Add entry.
3040 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3041 call rl_initialize.
3042 (tui_enable): Do not call rl_initialize.
3043
7a27b85f
CG
30442019-09-18 Christian Groessler <chris@groessler.org>
3045
3046 * alpha-linux-nat.c: Include gdbarch.h.
3047
f64eea3a
SM
30482019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3049
3050 * ui-file.c: Include cli/cli-style.h.
3051 (term_cli_styling): Remove cli_styling declaration.
3052
e6f7f6d1
AM
30532019-09-18 Alan Modra <amodra@gmail.com>
3054
3055 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3056 to bfd_asymbol_section.
3057
1d38e9d1
AM
30582019-09-18 Alan Modra <amodra@gmail.com>
3059
3060 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3061 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3062 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3063
90d92a63
AM
30642019-09-18 Alan Modra <amodra@gmail.com>
3065
3066 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3067 * spu-linux-nat.c (spu_bfd_open): Likewise.
3068
a3d181d2
CB
30692019-09-18 Christian Biesinger <cbiesinger@google.com>
3070
3071 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3072 to bool to match definition in dwarf2read.c.
3073
491144b5
CB
30742019-09-17 Christian Biesinger <cbiesinger@google.com>
3075
3076 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3077 (print_signatures): Likewise.
3078 (trust_pad_over_xvs): Likewise.
3079 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3080 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3081 * arm-linux-nat.c (arm_apcs_32): Likewise.
3082 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3083 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3084 * arm-tdep.c (arm_debug): Likewise.
3085 (arm_apcs_32): Likewise.
3086 * auto-load.c (debug_auto_load): Likewise.
3087 (auto_load_gdb_scripts): Likewise.
3088 (global_auto_load): Likewise.
3089 (auto_load_local_gdbinit): Likewise.
3090 (auto_load_local_gdbinit_loaded): Likewise.
3091 * auto-load.h (global_auto_load): Likewise.
3092 (auto_load_local_gdbinit): Likewise.
3093 (auto_load_local_gdbinit_loaded): Likewise.
3094 * breakpoint.c (disconnected_dprintf): Likewise.
3095 (breakpoint_proceeded): Likewise.
3096 (automatic_hardware_breakpoints): Likewise.
3097 (always_inserted_mode): Likewise.
3098 (target_exact_watchpoints): Likewise.
3099 (_initialize_breakpoint): Update.
3100 * breakpoint.h (target_exact_watchpoints): Change to bool.
3101 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3102 * cli/cli-cmds.c (trace_commands): Likewise.
3103 * cli/cli-cmds.h (trace_commands): Likewise.
3104 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3105 to bool*.
3106 * cli/cli-logging.c (logging_overwrite): Change to bool.
3107 (logging_redirect): Likewise.
3108 (debug_redirect): Likewise.
3109 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3110 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3111 to bool.
3112 <boolean_option_def>: Update.
3113 (struct flag_option_def): Change default type of Context to bool
3114 from int.
3115 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3116 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3117 (get_setshow_command_value_string): Likewise.
3118 * cli/cli-style.c (cli_styling): Change to bool.
3119 (source_styling): Likewise.
3120 * cli/cli-style.h (source_styling): Likewise.
3121 (cli_styling): Likewise.
3122 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3123 to bool.
3124 * command.h (var_types): Update comment.
3125 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3126 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3127 bool.
3128 (debug_compile_cplus_scopes): Likewise.
3129 * compile/compile-internal.h (compile_debug): Likewise.
3130 * compile/compile.c (compile_debug): Likewise.
3131 (struct compile_options) <raw>: Likewise.
3132 * cp-support.c (catch_demangler_crashes): Likewise.
3133 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3134 (usr_cmd_cris_dwarf2_cfi): Likewise.
3135 * csky-tdep.c (csky_debug): Likewise.
3136 * darwin-nat.c (enable_mach_exceptions): Likewise.
3137 * dcache.c (dcache_enabled_p): Likewise.
3138 * defs.h (info_verbose): Likewise.
3139 * demangle.c (demangle): Likewise.
3140 (asm_demangle): Likewise.
3141 * dwarf-index-cache.c (debug_index_cache): Likewise.
3142 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3143 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3144 * dwarf2read.c (check_physname): Likewise.
3145 (use_deprecated_index_sections): Likewise.
3146 (dwarf_always_disassemble): Likewise.
3147 * eval.c (overload_resolution): Likewise.
3148 * event-top.c (set_editing_cmd_var): Likewise.
3149 (exec_done_display_p): Likewise.
3150 * event-top.h (set_editing_cmd_var): Likewise.
3151 (exec_done_display_p): Likewise.
3152 * exec.c (write_files): Likewise.
3153 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3154 (debug_fbsd_nat): Likewise.
3155 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3156 Likewise.
3157 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3158 <backtrace_past_entry> Likewise.
3159 * gdb-demangle.h (demangle): Likewise.
3160 (asm_demangle): Likewise.
3161 * gdb_bfd.c (bfd_sharing): Likewise.
3162 * gdbcore.h (write_files): Likewise.
3163 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3164 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3165 * gdbthread.h (print_thread_events): Likewise.
3166 * gdbtypes.c (opaque_type_resolution): Likewise.
3167 (strict_type_checking): Likewise.
3168 * gnu-nat.c (gnu_debug_flag): Likewise.
3169 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3170 * guile/scm-param.c (pascm_variable): Add boolval.
3171 (add_setshow_generic): Update.
3172 (pascm_param_value): Update.
3173 (pascm_set_param_value_x): Update.
3174 * hppa-tdep.c (hppa_debug): Change to bool..
3175 * infcall.c (may_call_functions_p): Likewise.
3176 (coerce_float_to_double_p): Likewise.
3177 (unwind_on_signal_p): Likewise.
3178 (unwind_on_terminating_exception_p): Likewise.
3179 * infcmd.c (startup_with_shell): Likewise.
3180 * inferior.c (print_inferior_events): Likewise.
3181 * inferior.h (startup_with_shell): Likewise.
3182 (print_inferior_events): Likewise.
3183 * infrun.c (step_stop_if_no_debug): Likewise.
3184 (detach_fork): Likewise.
3185 (debug_displaced): Likewise.
3186 (disable_randomization): Likewise.
3187 (non_stop): Likewise.
3188 (non_stop_1): Likewise.
3189 (observer_mode): Likewise.
3190 (observer_mode_1): Likewise.
3191 (set_observer_mode): Update.
3192 (sched_multi): Change to bool.
3193 * infrun.h (debug_displaced): Likewise.
3194 (sched_multi): Likewise.
3195 (step_stop_if_no_debug): Likewise.
3196 (non_stop): Likewise.
3197 (disable_randomization): Likewise.
3198 * linux-tdep.c (use_coredump_filter): Likewise.
3199 (dump_excluded_mappings): Likewise.
3200 * linux-thread-db.c (auto_load_thread_db): Likewise.
3201 (check_thread_db_on_load): Likewise.
3202 * main.c (captured_main_1): Update.
3203 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3204 xx2_opt, boolean_opt>: Change to bool.
3205 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3206 * maint.c (maintenance_profile_p): Likewise.
3207 (per_command_time): Likewise.
3208 (per_command_space): Likewise.
3209 (per_command_symtab): Likewise.
3210 * memattr.c (inaccessible_by_default): Likewise.
3211 * mi/mi-main.c (mi_async): Likewise.
3212 (mi_async_1): Likewise.
3213 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3214 * nat/fork-inferior.h (startup_with_shell): Likewise.
3215 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3216 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3217 * nios2-tdep.c (nios2_debug): Likewise.
3218 * or1k-tdep.c (or1k_debug): Likewise.
3219 * parse.c (parser_debug): Likewise.
3220 * parser-defs.h (parser_debug): Likewise.
3221 * printcmd.c (print_symbol_filename): Likewise.
3222 * proc-api.c (procfs_trace): Likewise.
3223 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3224 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3225 (set_parameter_value): Update.
3226 (add_setshow_generic): Update.
3227 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3228 to bool*.
3229 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3230 int*.
3231 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3232 * record-btrace.c (record_btrace_target::store_registers): Update.
3233 * record-full.c (record_full_memory_query): Change to bool.
3234 (record_full_stop_at_limit): Likewise.
3235 * record-full.h (record_full_memory_query): Likewise.
3236 * remote-notif.c (notif_debug): Likewise.
3237 * remote-notif.h (notif_debug): Likewise.
3238 * remote.c (use_range_stepping): Likewise.
3239 (interrupt_on_connect): Likewise.
3240 (remote_break): Likewise.
3241 * ser-tcp.c (tcp_auto_retry): Likewise.
3242 * ser-unix.c (serial_hwflow): Likewise.
3243 * skip.c (debug_skip): Likewise.
3244 * solib-aix.c (solib_aix_debug): Likewise.
3245 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3246 (spu_auto_flush_cache_p): Likewise.
3247 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3248 Likewise.
3249 (struct info_print_options) <quiet>: Likewise.
3250 * symfile-debug.c (debug_symfile): Likewise.
3251 * symfile.c (auto_solib_add): Likewise.
3252 (separate_debug_file_debug): Likewise.
3253 * symfile.h (auto_solib_add): Likewise.
3254 (separate_debug_file_debug): Likewise.
3255 * symtab.c (basenames_may_differ): Likewise.
3256 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3257 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3258 (struct info_types_options) <quiet>: Likewise.
3259 * symtab.h (demangle): Likewise.
3260 (basenames_may_differ): Likewise.
3261 * target-dcache.c (stack_cache_enabled_1): Likewise.
3262 (code_cache_enabled_1): Likewise.
3263 * target.c (trust_readonly): Likewise.
3264 (may_write_registers): Likewise.
3265 (may_write_memory): Likewise.
3266 (may_insert_breakpoints): Likewise.
3267 (may_insert_tracepoints): Likewise.
3268 (may_insert_fast_tracepoints): Likewise.
3269 (may_stop): Likewise.
3270 (auto_connect_native_target): Likewise.
3271 (target_stop_and_wait): Update.
3272 (target_async_permitted): Change to bool.
3273 (target_async_permitted_1): Likewise.
3274 (may_write_registers_1): Likewise.
3275 (may_write_memory_1): Likewise.
3276 (may_insert_breakpoints_1): Likewise.
3277 (may_insert_tracepoints_1): Likewise.
3278 (may_insert_fast_tracepoints_1): Likewise.
3279 (may_stop_1): Likewise.
3280 * target.h (target_async_permitted): Likewise.
3281 (may_write_registers): Likewise.
3282 (may_write_memory): Likewise.
3283 (may_insert_breakpoints): Likewise.
3284 (may_insert_tracepoints): Likewise.
3285 (may_insert_fast_tracepoints): Likewise.
3286 (may_stop): Likewise.
3287 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3288 (make_thread_apply_all_options_def_group): Change argument from int*
3289 to bool*.
3290 (thread_apply_all_command): Update.
3291 (print_thread_events): Change to bool.
3292 * top.c (confirm): Likewise.
3293 (command_editing_p): Likewise.
3294 (history_expansion_p): Likewise.
3295 (write_history_p): Likewise.
3296 (info_verbose): Likewise.
3297 * top.h (confirm): Likewise.
3298 (history_expansion_p): Likewise.
3299 * tracepoint.c (disconnected_tracing): Likewise.
3300 (circular_trace_buffer): Likewise.
3301 * typeprint.c (print_methods): Likewise.
3302 (print_typedefs): Likewise.
3303 * utils.c (debug_timestamp): Likewise.
3304 (sevenbit_strings): Likewise.
3305 (pagination_enabled): Likewise.
3306 * utils.h (sevenbit_strings): Likewise.
3307 (pagination_enabled): Likewise.
3308 * valops.c (overload_resolution): Likewise.
3309 * valprint.h (struct value_print_options) <prettyformat_arrays,
3310 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3311 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3312 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3313 Likewise.
3314 * windows-nat.c (new_console): Likewise.
3315 (cygwin_exceptions): Likewise.
3316 (new_group): Likewise.
3317 (debug_exec): Likewise.
3318 (debug_events): Likewise.
3319 (debug_memory): Likewise.
3320 (debug_exceptions): Likewise.
3321 (useshell): Likewise.
3322 * windows-tdep.c (maint_display_all_tib): Likewise.
3323 * xml-support.c (debug_xml): Likewise.
3324
f1b620e9
MG
33252019-09-17 Mike Gulick <mgulick@mathworks.com>
3326
3327 * source.c (prepare_path_for_appending): New function.
3328 (openp): Make use of new function.
3329 (find_and_open_source): Search for the compilation directory and
3330 source file as a relative path beneath the directory search path.
3331
67f3ed6a
AB
33322019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * source-cache.c (source_cache::get_line_charpos): Catch
3335 exceptions and return false, this matches the behaviour documented
3336 in the header file.
3337
74332189
JB
33382019-09-17 Joel Brobecker <brobecker@adacore.com>
3339
3340 * ada-tasks.c (info_task): Remove quoting of the task's name.
3341
f2f24aa9
CB
33422019-09-16 Christian Biesinger <cbiesinger@google.com>
3343
3344 * symfile.c (auto_solib_add): Replace comment with a reference
3345 to the header file.
3346
6a062a93
CB
33472019-09-14 Christian Biesinger <cbiesinger@google.com>
3348
3349 * NEWS: Mention that gdb can now be compiled with Python 3
3350 on Windows.
3351
ec6c8338
AB
33522019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * maint.c (maint_print_section_data::maint_print_section_data):
3355 Force use of 'float log10 (float)' by casting the argument to
3356 float.
3357
aa17805f
AB
33582019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * maint.c: Add 'cmath' include.
3361 (struct maint_print_section_data): New structure.
3362 (print_section_index): New function.
3363 (print_bfd_section_info): Add header comment, small whitespace
3364 cleanup, and update to call new print_section_index function.
3365 (print_objfile_section_info): Likewise.
3366 (maint_obj_section_from_bfd_section): New function.
3367 (print_bfd_section_info_maybe_relocated): New function.
3368 (maintenance_info_sections): Add header comment, always use
3369 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3370
3dd9bb46
AB
33712019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3374 inner scope, add check that the objfile has psymtabs before
3375 checking psymtabs_addrmap.
3376 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3377
4993045d
PW
33782019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3379
3380 * NEWS: Announce that Ada task names are now shown at more places,
3381 and between quotes (except in info task output).
3382 * gdb/ada-tasks.c (task_to_str): New function.
3383 (display_current_task_id): Call task_to_str.
3384 (task_command_1): Likewise.
3385 (print_ada_task_info): In non-mi mode, Properly align headers and data
3386 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3387
7a289707
RO
33882019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3389
3390 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3391 prstatus.pr_lwp.pr_info instead of making it up.
3392
f2aec7f6
CB
33932019-09-11 Christian Biesinger <cbiesinger@google.com>
3394
3395 * auto-load.c (auto_load_expand_dir_vars): Update.
3396 * defs.h (gdb_datadir): Change to std::string.
3397 (python_libdir): Likewise.
3398 (relocate_gdb_directory): Change return type to std::string.
3399 * guile/guile.c (gdbscm_data_directory): Update.
3400 (initialize_scheme_side): Update.
3401 * jit.c (jit_reader_dir): Change to std::string.
3402 (jit_reader_load_command): Update.
3403 * main.c (gdb_datadir): Change to std::string.
3404 (python_libdir): Likewise.
3405 (set_gdb_data_directory): Update.
3406 (relocate_path): Change to return std::string.
3407 (relocate_gdb_directory): Change to return std::string.
3408 (relocate_gdbinit_path_maybe_in_datadir): Update.
3409 (captured_main_1): Update.
3410 * python/python.c (do_start_initialization): Update.
3411 * top.c (show_gdb_datadir): Update.
3412 * xml-syscall.c (xml_init_syscalls_info): Update.
3413 (init_syscalls_info): Update.
3414
9224a013
CB
34152019-09-11 Christian Biesinger <cbiesinger@google.com>
3416
3417 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3418 out of get_init_files.
3419 (get_init_files): Update.
3420
f48cd836
CB
34212019-09-11 Christian Biesinger <cbiesinger@google.com>
3422
3423 * main.c (get_init_files): Change to use std::string.
3424 (captured_main_1): Update.
3425 (print_gdb_help): Update.
3426
9cab7ecd
AT
34272019-09-11 Ali Tamur <tamur@google.com>
3428
3429 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3430 implementation.
3431
67547d89
CB
34322019-09-11 Christian Biesinger <cbiesinger@google.com>
3433
3434 * dbxread.c (read_dbx_symtab): Update.
3435 * dwarf2read.c (load_partial_dies): Update.
3436 * mdebugread.c (parse_partial_symbols): Update.
3437 (handle_psymbol_enumerators): Update.
3438 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3439 * psymtab.c (add_psymbol_to_bcache): Likewise.
3440 (add_psymbol_to_list): Likewise.
3441 * symtab.c (symbol_set_names): Likewise.
3442 * symtab.h (symbol_set_names): Likewise.
3443 * xcoffread.c (scan_xcoff_symtab): Update.
3444
64b2d4a0
TT
34452019-09-11 Tom Tromey <tom@tromey.com>
3446
3447 * symfile-mem.c (symbol_file_add_from_memory): Use
3448 bfd_set_filename.
3449 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3450 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3451
3b00ef10
TT
34522019-09-10 Tom Tromey <tromey@adacore.com>
3453
3454 * dwarf-index-write.c (write_psymbols): Extend error message.
3455 (debug_names::insert): Add Ada code.
3456 (debug_names::write_psymbols): Remove Ada check.
3457 (debug_names) <m_string_obstack>: New member.
3458 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3459 (gdb_index_symbol_name_matcher::matches): Remove.
3460 (mapped_index_base::find_name_components_bounds): Add "lang"
3461 parameter.
3462 (mapped_index_base::build_name_components): Also split names
3463 according to Ada syntax.
3464 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3465 type of "match_callback".
3466 (check_match, check_find_bounds_finds)
3467 (dw2_expand_symtabs_matching): Update.
3468 (dw2_debug_names_iterator): Add new constructor.
3469 (dw2_debug_names_map_matching_symbols): New function.
3470 (dw2_debug_names_expand_symtabs_matching): Update.
3471 (dwarf2_debug_names_functions): Use
3472 dw2_debug_names_map_matching_symbols.
3473
aa391654
TT
34742019-09-10 Tom Tromey <tromey@adacore.com>
3475
3476 * dwarf2read.c (dw2_get_file_names_reader): Add the
3477 CU's file name to the results.
3478
b054970d
TT
34792019-09-10 Tom Tromey <tromey@adacore.com>
3480
3481 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3482 map_matching_symbols. Update.
3483 * dwarf2read.c (dw2_map_matching_symbols): Update.
3484 * psymtab.c (match_partial_symbol): Change type; update.
3485 (psym_map_matching_symbols): Likewise.
3486 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3487 type; update.
3488 * symfile.h (struct quick_symbol_functions)
3489 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3490 Remove "match".
3491
6a3dbf1b
TT
34922019-09-10 Tom Tromey <tromey@adacore.com>
3493
3494 * psymtab.c (map_block): Remove.
3495 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3496 * symtab.c (iterate_over_symbols_terminated): New function.
3497 * symtab.c (iterate_over_symbols_terminated): Declare.
3498
6969f124
TT
34992019-09-10 Tom Tromey <tromey@adacore.com>
3500
3501 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3502 * language.h (struct language_defn) <la_iterate_over_symbols>:
3503 Return bool.
3504 * symtab.c (iterate_over_symbols): Return bool.
3505 * symtab.h (iterate_over_symbols): Return bool.
3506
199b4314
TT
35072019-09-10 Tom Tromey <tromey@adacore.com>
3508
3509 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3510 (add_nonlocal_symbols): Update.
3511 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3512 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3513 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3514 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3515 Change type of "callback". Remove "data".
3516
a084a2a6
AT
3517
35182019-09-09 Ali Tamur <tamur@google.com>
3519
3520 * dwarf2read.c (comp_unit_head): Update comment.
3521 (dwarf2_dwo_name): New function declaration.
3522 (dwarf_unit_type_name): New function declaration.
3523 (read_comp_unit_head): Add support for new compilation units,
3524 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3525 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3526 (currently named as "signature") in their header. Also clarify error
3527 messages.
3528 (lookup_dwo_id): New function. Returns the dwo id of the given
3529 compile unit.
3530 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3531 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3532 functions.
3533 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3534 (dwarf2_dwo_name): Get the dwo name if present.
3535 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3536 purposes.
3537
25a2915e
TT
35382019-09-09 Tom Tromey <tom@tromey.com>
3539
3540 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3541
e4df0874
PW
35422019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3543
3544 * python/python.c (do_start_initialization): Make progname_copy static,
3545 to avoid a leak report.
3546
8634b462
TT
35472019-09-08 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3550
c7f839cb
SM
35512019-09-07 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3554 Change type to gdb::optional<block_enum>.
3555 (dw2_symtab_iter_init): Change block_index parameter type
3556 to gdb::optional<block_enum>.
3557 (dw2_lookup_symbol): Change block_index parameter
3558 type to block_enum.c
3559 (dw2_debug_names_lookup_symbol): Likewise.
3560 * psymtab.c (psym_lookup_symbol): Likewise.
3561 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3562 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3563 Likewise.
3564
ead0e69a
CB
35652019-09-06 Christian Biesinger <cbiesinger@google.com>
3566
3567 * defs.h (relocate_gdb_directory): Change int to bool in
3568 signature and rename flag to relocatable.
3569 * main.c (relocate_path): Likewise.
3570 (relocate_gdb_directory): Likewise.
3571
b16c44de
AM
35722019-09-06 Alan Modra <amodra@gmail.com>
3573
3574 * coffread.c (coff_symfile_read): Constify filename variable.
3575 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3576 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3577 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3578 * solib.c (reload_shared_libraries_1): Likewise.
3579 * symfile.c (reread_symbols): Likewise.
3580 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3581 * solib-darwin.c (darwin_bfd_open): Likewise.
3582 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3583
06ff036e
AB
35842019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3587 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3588
4e962e74
TT
35892019-09-03 Tom Tromey <tromey@adacore.com>
3590
3591 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3592 types.
3593 (has_negatives): Unbias a range type bound.
3594 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3595 * gdbtypes.c (operator==): Handle new field.
3596 (create_range_type): Add "bias" parameter.
3597 (create_static_range_type, resolve_dynamic_range): Update.
3598 * gdbtypes.h (struct range_bounds) <bias>: New member.
3599 (create_range_type): Add bias parameter.
3600 * printcmd.c (print_scalar_formatted): Unbias range types.
3601 * value.c (unpack_long): Unbias range types.
3602 (pack_long): Bias range types.
3603
d90b8f26
AH
36042019-09-02 Alan Hayward <alan.hayward@arm.com>
3605
3606 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3607 probe arguments.
3608
fe01123e
AH
36092019-09-02 Alan Hayward <alan.hayward@arm.com>
3610
3611 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3612 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3613 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3614 (compile_probe_arg): Likewise.
3615 * probe.h (get_argument_count): Likewise.
3616 * solib-svr4.c (solib_event_probe_action): Likewise.
3617 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3618
e661ef01
AH
36192019-09-02 Alan Hayward <alan.hayward@arm.com>
3620
3621 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3622 code to here...
3623 (svr4_create_solib_event_breakpoints): ...from here.
3624
47a536d9
SDJ
36252019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3626
3627 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3628 suffix from warning message.
3629
d6a00eba
TT
36302019-08-30 Tom Tromey <tom@tromey.com>
3631
3632 * tui/tui-winsource.h (struct tui_source_window_base)
3633 <refresh_all>: Don't declare.
3634 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3635 Remove.
3636 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3637 tui_show_locator_content.
3638 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3639 declare.
3640 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3641 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3642 declare.
3643
55b2657b
TT
36442019-08-30 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3647
12a8555a
TT
36482019-08-30 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3651 Remove unnecessary forward declarations.
3652
900ac242
TT
36532019-08-30 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3656 rerender.
3657 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3658 tui_show_locator_content.
3659
99ab33fb
TT
36602019-08-30 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3663 (tui_locator_window::rerender): Rewrite using body of previous
3664 tui_show_locator_content.
3665
e594a5d1
TT
36662019-08-30 Tom Tromey <tom@tromey.com>
3667
3668 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3669 set_locator_fullname>: New methods.
3670 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3671 Rename from tui_set_locator_fullname.
3672 (tui_locator_window::set_locator_info): Rename from
3673 tui_set_locator_info. Return bool.
3674 (tui_update_locator_fullname, tui_show_frame_info): Update.
3675
715bb467
TT
36762019-08-30 Tom Tromey <tom@tromey.com>
3677
3678 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3679
772f3f03
TT
36802019-08-30 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3683 call touchwin.
3684
108e13ab
TT
36852019-08-30 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-wingeneral.c (box_win): Assume win_info and
3688 win_info->handle cannot be NULL.
3689
cdaa6eb4
TT
36902019-08-30 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3693 refresh_window>: Declare.
3694 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3695 resize.
3696 (tui_data_item_window::rerender): Rename from
3697 tui_display_register.
3698 (tui_data_item_window::refresh_window): New method.
3699 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3700 no-op.
3701
89df7f90
TT
37022019-08-30 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3705 regs_column_count, current_group>: Move later. Now private.
3706 <get_current_group>: New method.
3707 * tui/tui-regs.c (tui_reg_command): Update.
3708 * tui/tui-layout.c (tui_set_layout): Update.
3709
1bf2866a
TT
37102019-08-30 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3713 (tui_data_window::rerender): Don't call
3714 check_and_display_highlight_if_needed.
3715 (tui_data_window::refresh_all): Remove call to
3716 erase_data_content.
3717
0670413d
TT
37182019-08-30 Tom Tromey <tom@tromey.com>
3719
3720 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3721 (tui_data_window::display_registers_from)
3722 (tui_data_window::display_reg_element_at_line)
3723 (tui_data_window::display_registers_from_line): Remove checks of
3724 "empty".
3725
18bb55c7
TT
37262019-08-30 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3729 Don't declare.
3730 * tui/tui-regs.c (tui_data_window::show_registers): Call
3731 rerender.
3732 (tui_data_window::rerender): Rename from display_all_data.
3733 (tui_data_window::rerender): Remove old implementation.
3734
1f6d2f10
TT
37352019-08-30 Tom Tromey <tom@tromey.com>
3736
3737 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3738 text.
3739 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3740
16d01f9c
BW
37412019-08-29 Bernhard Wodok <barto@gmx.net>
3742 Sergio Durigan Junior <sergiodj@redhat.com>
3743
3744 PR win32/24284
3745 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3746
d8f27c60
AB
37472019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3750 when searching for types.
3751
1f20c35e
AB
37522019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * f-lang.c (f_language_defn): Use f_print_typedef.
3755 * f-lang.h (f_print_typedef): Declare.
3756 * f-typeprint.c (f_print_typedef): Define.
3757
550105b7
CB
37582019-08-27 Christian Biesinger <cbiesinger@google.com>
3759
3760 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3761
4acfdd20
AB
37622019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * cli/cli-utils.c (info_print_options_defs): Delete.
3765 (make_info_print_options_def_group): Delete.
3766 (extract_info_print_options): Delete.
3767 (info_print_command_completer): Delete.
3768 (info_print_args_help): Add extra parameter, and optionally
3769 include text about -n flag.
3770 * cli/cli-utils.h (struct info_print_options): Delete.
3771 (extract_info_print_options): Delete declaration.
3772 (info_print_command_completer): Delete declaration.
3773 (info_print_args_help): Add extra parameter, extend header
3774 comment.
3775 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3776 search_symbols.
3777 * stack.c (struct info_print_options): New type.
3778 (info_print_options_defs): New file scoped variable.
3779 (make_info_print_options_def_group): New static function.
3780 (info_print_command_completer): New static function.
3781 (info_locals_command): Update to use new local functions.
3782 (info_args_command): Likewise.
3783 (_initialize_stack): Add extra parameter to calls to
3784 info_print_args_help.
3785 * symtab.c (search_symbols): Add extra parameter, use this to
3786 possibly excluse non-debug symbols.
3787 (symtab_symbol_info): Add extra parameter, which is passed on to
3788 search_symbols.
3789 (struct info_print_options): New type.
3790 (info_print_options_defs): New file scoped variable.
3791 (make_info_print_options_def_group): New static function.
3792 (info_print_command_completer): New static function.
3793 (info_variables_command): Update to use local functions, and pass
3794 extra parameter through to symtab_symbol_info.
3795 (info_functions_command): Likewise.
3796 (info_types_command): Pass additional argument through to
3797 symtab_symbol_info.
3798 (rbreak_command): Pass extra argument to search_symbols.
3799 (_initialize_symtab): Add extra arguments for calls to
3800 info_print_args_help, and update help text for 'info variables',
3801 'whereis', and 'info functions' commands.
3802 * symtab.h (search_symbols): Add extra argument to declaration.
3803 * NEWS: Mention new flags.
3804
9aa55206
CB
38052019-08-26 Christian Biesinger <cbiesinger@google.com>
3806
3807 * symtab.c (lookup_static_symbol): Call the new function (and move
3808 it down to be next to lookup_global_symbol).
3809 (struct global_sym_lookup_data): Add block_enum member and rename to...
3810 (struct global_or_static_sym_lookup_data): ...this.
3811 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3812 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3813 (lookup_symbol_global_or_static_iterator_cb): ...this.
3814 (lookup_global_or_static_symbol): New function.
3815 (lookup_global_symbol): Call new function.
3816
5c31b358
TV
38172019-08-26 Tom de Vries <tdevries@suse.de>
3818
3819 PR c++/24852
3820 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3821 when pc_probe.prob == NULL.
3822
23c13d42
SM
38232019-08-25 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3826 variable symbol_linkage to symbol_linkage_.
3827
beadd3e8
SM
38282019-08-25 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3831 represent whether the symbol is static, dynamic, or we don't
3832 know.
3833
e3ec872f
YS
38342019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3835
3836 * gdb/rx-tdep.c (rx_register_names): New.
3837 (rx_register_name): Delete.
3838 (rx_psw_type): Delete.
3839 (rx_fpsw_type): Delete.
3840 (rx_register_type): Delete.
3841 (rx_gdbarch_init): Convert target-descriptions.
3842 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3843 * gdb/features/Makefile: Add rx.xml.
3844 * gdb/features/rx.xml: New.
3845 * gdb/features/rx.c: Generated.
3846 * gdb/NEWS: Mention target description support.
3847
d0509ba4
CB
38482019-08-22 Christian Biesinger <cbiesinger@google.com>
3849
3850 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3851 *slot_ptr.
3852
2d41fa11
SDJ
38532019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3854
3855 * configure.ac: Don't check for 'dlfcn.h' (moved to
3856 gdbsupport/common.m4).
3857 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3858 'gdbsupport/'.
3859 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3860 * compile/compile-c-support.c: Include
3861 'gdbsupport/gdb-dlfcn.h'.
3862 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3863 * gdb-dlfcn.c: Move to...
3864 * gdbsupport/gdb-dlfcn.c: ... here.
3865 * gdb-dlfcn.h: Move to...
3866 * gdbsupport/gdb-dlfcn.h: ... here.
3867
de8af808
SL
38682019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3869
3870 * nios2-tdep.c (struct reg_value): Improve comments. Make
3871 the offset field signed.
3872
27204489
CB
38732019-08-22 Christian Biesinger <cbiesinger@google.com>
3874
3875 * python/lib/gdb/__init__.py (_execute_file): New function.
3876 * python/python.c (python_run_simple_file): Call gdb._execute_file
3877 on Windows.
3878
43771869
AB
38792019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3880
3881 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3882 all uses as this was never set to anything but a zero value.
3883
26c957f1
PA
38842019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3885
3886 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3887
c07aae6e
CB
38882019-08-21 Christian Biesinger <cbiesinger@google.com>
3889
3890 * tui/tui-data.h (tui_gen_win_info): Add an =default
3891 move constructor, required by some GCC versions.
3892
3960cb7a
JF
38932019-08-21 Jinke Fan <fanjinke51@yeah.net>
3894
3895 * go32-nat.c (go32_sysinfo): Add hygon_p.
3896
04c72a68
TT
38972019-08-20 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3900 line_from_reg_element_no, first_reg_element_no_inline,
3901 display_all_data, delete_data_content_windows,
3902 erase_data_content>: Now private.
3903
072272ce
TT
39042019-08-20 Tom Tromey <tom@tromey.com>
3905
3906 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3907 (tui_unhighlight_win, tui_highlight_win)
3908 (tui_win_info::make_window): Update.
3909 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3910
973961bd
TT
39112019-08-20 Tom Tromey <tom@tromey.com>
3912
3913 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3914 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3915 (MAX_PID_WIDTH): Move to tui-stack.c.
3916 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3917 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3918 (MAX_PID_WIDTH): Move from tui-data.h.
3919
ab0e1f1a
TT
39202019-08-20 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3923 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3924 (box_win): Update.
3925 (tui_gen_win_info::make_window): Rename from tui_make_window.
3926 (tui_win_info::make_window): New method.
3927 (tui_gen_win_info::make_visible): Update.
3928 * tui/tui-source.c (tui_source_window::set_contents): Update.
3929 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3930 (tui_data_window::display_registers_from): Update.
3931 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3932 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3933 Declare.
3934 <can_box>: Remove.
3935 <title>: Remove.
3936 (struct tui_win_info) <make_window>: Declare.
3937 <can_box>: Now virtual.
3938 <title>: New member.
3939 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3940 * tui/tui-command.c (tui_cmd_window::resize): Update.
3941
100c2bf3
TT
39422019-08-20 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3945 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3946 (tui_data_window::check_register_values): Update.
3947
fa4dc567
TT
39482019-08-20 Tom Tromey <tom@tromey.com>
3949
3950 * tui/tui-regs.h (struct tui_data_window): Use
3951 DISABLE_COPY_AND_ASSIGN.
3952 <regs_content>: Change type, removing unique_ptr.
3953 <tui_data_window>: Add move constructor.
3954 * tui/tui-regs.c (tui_data_window::show_registers)
3955 (tui_data_window::show_register_group)
3956 (tui_data_window::display_registers_from)
3957 (tui_data_window::display_registers_from)
3958 (tui_data_window::first_data_item_displayed)
3959 (tui_data_window::delete_data_content_windows)
3960 (tui_data_window::rerender, tui_data_window::refresh_window)
3961 (tui_data_window::check_register_values): Update.
3962
ca02d7c8
TT
39632019-08-20 Tom Tromey <tom@tromey.com>
3964
3965 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3966 show_register_group>: Declare.
3967 (tui_show_register_group): Don't declare.
3968 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3969 tui_show_registers.
3970 (tui_data_window::show_register_group): Rename from
3971 tui_show_register_group.
3972 (tui_data_window::check_register_values, tui_reg_command):
3973 Update.
3974 * tui/tui-layout.c (tui_set_layout): Update.
3975
63356bfd
TT
39762019-08-20 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3979 Declare.
3980 (tui_check_register_values): Don't declare.
3981 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3982 from tui_check_register_values.
3983 * tui/tui-hooks.c (tui_register_changed): Update.
3984
42cc14a7
TT
39852019-08-20 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-regs.c (tui_reg_layout): Move later.
3988 (tui_show_registers): Don't enable TUI mode or change layout.
3989
b9ad3686
TT
39902019-08-20 Tom Tromey <tom@tromey.com>
3991
3992 * tui/tui-regs.h (struct tui_data_item_window)
3993 <~tui_data_item_window>: Remove.
3994 <content>: Now a unique_xmalloc_ptr.
3995 * tui/tui-regs.c (tui_register_format): Return a
3996 unique_xmalloc_ptr.
3997 (tui_get_register): Update.
3998 (~tui_data_item_window): Remove.
3999 (tui_data_window::display_registers_from, tui_display_register):
4000 Update.
4001 * tui/tui-io.h (tui_expand_tabs): Update.
4002 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4003 Remove "col" parameter.
4004
8e114aab
TT
40052019-08-20 Tom Tromey <tom@tromey.com>
4006
4007 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4008 field.
4009 * tui/tui-regs.c (~tui_data_item_window): Update.
4010
1a4f81dd
TT
40112019-08-20 Tom Tromey <tom@tromey.com>
4012
4013 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4014 earlier.
4015
0f8d8876
TT
40162019-08-20 Tom Tromey <tom@tromey.com>
4017
4018 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4019
605dc2c2
TT
40202019-08-20 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-source.h (struct tui_source_window): Update.
4023 * tui/tui-regs.c (tui_show_registers): Update.
4024 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4025 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4026 (NO_REGS_STRING): Remove defines.
4027
aedbe3bb
CM
40282019-08-20 Conrad Meyer <cem@FreeBSD.org>
4029
4030 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4031 unnecessary thread walk if remote doesn't support the packet.
4032
7ce8f214
TT
40332019-08-19 Tom Tromey <tromey@adacore.com>
4034
4035 * python/py-value.c (value_has_field): Fix indentation.
4036
f21c2bd7
TT
40372019-08-19 Tom Tromey <tromey@adacore.com>
4038
4039 * printcmd.c (do_one_display, info_display_command): Update.
4040 * block.h (contained_in): Return bool. Add allow_nested
4041 parameter.
4042 * block.c (contained_in): Return bool. Add allow_nested
4043 parameter.
4044
d806ea2d
TT
40452019-08-19 Tom Tromey <tom@tromey.com>
4046
4047 * configure: Rebuild.
4048 * configure.ac: Disallow the combination of -static-libstdc++ and
4049 source highlight.
4050 * source-cache.c (get_language_name): Handle rust.
4051 (source_cache::get_source_lines): Ignore highlighting exceptions.
4052
398fdd60
TT
40532019-08-16 Tom Tromey <tom@tromey.com>
4054
4055 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4056 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4057 (struct tui_source_window_base) <make_visible, refresh_window,
4058 resize>: Remove methods.
4059 <execution_info>: Remove field.
4060 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4061 (tui_show_source_line, tui_source_window_base)
4062 (~tui_source_window_base): Update.
4063 (tui_source_window_base::resize)
4064 (tui_source_window_base::make_visible)
4065 (tui_source_window_base::refresh_window): Remove.
4066 (tui_source_window_base::update_exec_info): Update.
4067 * tui/tui-source.c (tui_source_window::set_contents): Update.
4068 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4069
e699d331
TT
40702019-08-16 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4073 deprecated_query_hook.
4074
bb01dbfc
TT
40752019-08-16 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4078 (tui_update_source_windows_with_line): Update.
4079 * tui/tui-source.h (struct tui_source_window)
4080 <show_symtab_source>: Declare.
4081 (tui_show_symtab_source): Don't declare.
4082 * tui/tui-source.c (tui_show_symtab_source): Rename from
4083 tui_show_symtab_source.
4084
81c82c4b
TT
40852019-08-16 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-winsource.h (struct tui_source_window_base)
4088 <set_contents>: Declare.
4089 * tui/tui-winsource.c
4090 (tui_source_window_base::update_source_window_as_is): Update.
4091 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4092 Declare.
4093 (tui_set_source_content): Don't declare.
4094 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4095 tui_set_source_content.
4096 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4097 Declare.
4098 (tui_set_disassem_content): Don't declare.
4099 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4100 tui_set_disassem_content.
4101
2ddaf614
TT
41022019-08-16 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui-winsource.h (struct tui_source_window_base)
4105 <update_breakpoint_info>: Declare.
4106 (tui_update_breakpoint_info): Don't declare.
4107 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4108 (tui_update_all_breakpoint_info): Update.
4109 (tui_source_window_base::update_breakpoint_info): Rename from
4110 tui_update_breakpoint_info.
4111 (tui_source_window_base::update_exec_info): Update.
4112
017f9828
TT
41132019-08-16 Tom Tromey <tom@tromey.com>
4114
4115 * tui/tui-winsource.h (struct tui_source_window_base)
4116 <update_source_window>: Declare.
4117 (tui_update_source_window): Don't declare.
4118 * tui/tui-winsource.c
4119 (tui_source_window_base::update_source_window): Rename from
4120 tui_update_source_window.
4121 (tui_source_window_base::rerender): Update.
4122 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4123 * tui/tui-disasm.c (tui_show_disassem)
4124 (tui_show_disassem_and_update_source)
4125 (tui_disasm_window::maybe_update): Update.
4126
ed8358e9
TT
41272019-08-16 Tom Tromey <tom@tromey.com>
4128
4129 * tui/tui-winsource.h (struct tui_source_window_base)
4130 <update_source_window_as_is>: Declare.
4131 (tui_update_source_window_as_is): Don't declare.
4132 * tui/tui-winsource.c (tui_update_source_window): Update
4133 (tui_source_window_base::update_source_window_as_is): Rename from
4134 tui_update_source_window_as_is.
4135 (tui_source_window_base::refill): Update.
4136 * tui/tui-source.c (tui_show_symtab_source): Update.
4137 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4138 Update.
4139
20149b6b
TT
41402019-08-16 Tom Tromey <tom@tromey.com>
4141
4142 * tui/tui-winsource.h (tui_update_source_window)
4143 (tui_update_source_window_as_is): Remove "noerror" parameter.
4144 * tui/tui-winsource.c (tui_update_source_window)
4145 (tui_update_source_window_as_is): Remove "noerror" parameter.
4146 (tui_update_source_windows_with_addr)
4147 (tui_update_source_windows_with_line)
4148 (tui_source_window_base::rerender)
4149 (tui_source_window_base::refill): Update.
4150 * tui/tui-source.h (tui_set_source_content)
4151 (tui_show_symtab_source): Remove "noerror" parameter.
4152 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4153 parameter.
4154 (tui_show_symtab_source): Likewise.
4155 (tui_source_window::maybe_update): Update.
4156 * tui/tui-disasm.c (tui_show_disassem)
4157 (tui_show_disassem_and_update_source)
4158 (tui_disasm_window::do_scroll_vertical)
4159 (tui_disasm_window::maybe_update): Update.
4160
2d83e710
TT
41612019-08-16 Tom Tromey <tom@tromey.com>
4162
4163 * tui/tui.c (tui_is_window_visible): Update.
4164 * tui/tui-wingeneral.c (tui_make_window)
4165 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4166 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4167 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4168 (tui_set_win_height_command, parse_scrolling_args): Update.
4169 * tui/tui-source.c (tui_source_window::style_changed): Update.
4170 * tui/tui-regs.c (tui_show_registers)
4171 (tui_data_window::first_data_item_displayed)
4172 (tui_data_window::delete_data_content_windows)
4173 (tui_check_register_values, tui_reg_command): Update.
4174 * tui/tui-disasm.c (tui_show_disassem): Update.
4175 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4176 method.
4177 <is_visible>: Remove field.
4178 * tui/tui-data.c (tui_next_win, tui_prev_win)
4179 (tui_delete_invisible_windows): Update.
4180
d4ab829a
TT
41812019-08-16 Tom Tromey <tom@tromey.com>
4182
4183 * tui/tui-winsource.h (struct tui_source_window_base)
4184 <m_has_locator>: Remove.
4185 * tui/tui-layout.c (show_source_disasm_command, show_data)
4186 (show_source_or_disasm_and_command): Update.
4187
aa7ca1bb
AH
41882019-08-16 Alan Hayward <alan.hayward@arm.com>
4189
4190 * NEWS (Other MI changes): New subsection.
4191 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4192 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4193 * arch-utils.c (default_get_pc_address_flags): New function.
4194 * arch-utils.h (default_get_pc_address_flags): New declaration.
4195 * gdbarch.sh: Add get_pc_address_flags.
4196 * gdbarch.c: Regenerate.
4197 * gdbarch.h: Likewise.
4198 * stack.c (print_pc): New function.
4199 (print_frame_info) (print_frame): Call print_pc.
4200
6eac171f
TV
42012019-08-16 Tom de Vries <tdevries@suse.de>
4202
4203 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4204 print_objfile_section_info.
4205
3df505f6
TT
42062019-08-15 Tom Tromey <tom@tromey.com>
4207
4208 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4209 calling update_cmdwin_start_line.
4210 * tui/tui-winsource.h (struct tui_source_window_base)
4211 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4212 <rerender>: Declare.
4213 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4214 Call rerender.
4215 (tui_source_window_base::set_new_height): Remove.
4216 (tui_source_window_base::rerender): Rename from
4217 do_make_visible_with_new_height.
4218 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4219 resize method.
4220 (tui_win_info::make_invisible_and_set_new_height)
4221 (tui_win_info::make_visible_with_new_height): Remove.
4222 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4223 Declare.
4224 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4225 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4226 do_make_visible_with_new_height>: Don't declare.
4227 <rerender>: Declare.
4228 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4229 set_new_height.
4230 (tui_data_window::do_make_visible_with_new_height): Remove.
4231 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4232 call tui_show_locator_content.
4233 (tui_gen_win_info::resize): Call rerender.
4234 (show_source_or_disasm_and_command): Don't call
4235 tui_show_locator_content.
4236 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4237 method.
4238 (struct tui_win_info) <rerender>: Declare.
4239 <set_new_height, make_invisible_and_set_new_height,
4240 make_visible_with_new_height>: Don't declare.
4241 * tui/tui-data.c (tui_win_list::rerender): New method.
4242 * tui/tui-command.h (struct tui_cmd_window)
4243 <do_make_visible_with_new_height>: Don't declare.
4244 * tui/tui-command.c
4245 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4246
272560b5
TT
42472019-08-15 Tom Tromey <tromey@adacore.com>
4248
4249 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4250 * ada-lang.c (ada_enum_name): Likewise.
4251
08235187
CB
42522019-08-15 Christian Biesinger <cbiesinger@google.com>
4253
4254 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4255 leading underscore.
4256 (GdbOutputErrorFile): Likewise.
4257 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4258 accordingly.
4259 (execute_unwinders): Rename to have a leading underscore.
4260 (auto_load_packages): Likewise.
4261 (global scope): Adjust call to auto_load_packages accordingly.
4262 (GdbSetPythonDirectory): Likewise.
4263 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4264 instead of execute_unwinders.
4265
db502012
TT
42662019-08-15 Tom Tromey <tom@tromey.com>
4267
4268 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4269 (show_data): Don't change window visibility.
4270 (tui_gen_win_info::resize): Remove special case for command
4271 window. Use wresize, when available.
4272 (show_source_or_disasm_and_command): Don't change window
4273 visibility.
4274 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4275 <make_visible>: New method.
4276 * tui/tui-command.c (tui_cmd_window::resize): New method.
4277
3891b65e
TT
42782019-08-15 Tom Tromey <tom@tromey.com>
4279
4280 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4281 (struct tui_source_windows): New.
4282 * tui/tui-winsource.c (tui_display_main): Update.
4283 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4284 (new_height_ok, parse_scrolling_args): Update.
4285 * tui/tui-layout.c (show_layout, show_data): Update.
4286 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4287 (tui_add_to_source_windows): Don't declare.
4288 * tui/tui-data.c (source_windows, tui_source_windows)
4289 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4290
ee556432
TT
42912019-08-15 Tom Tromey <tom@tromey.com>
4292
4293 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4294 Rename from reset.
4295 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4296 * tui/tui-layout.c (show_source_disasm_command, show_data):
4297 Update.
4298 (tui_gen_win_info::resize): Rename.
4299 (show_source_or_disasm_and_command): Update.
4300 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4301 reset.
4302
46f438e3
TT
43032019-08-15 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4306 * tui/tui-interp.c (tui_interp::init): Don't call
4307 tui_initialize_static_data.
4308 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4309
f4ce562c
TT
43102019-08-15 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4313 examine tui_win_list.
4314
c398c3d0
TT
43152019-08-15 Tom Tromey <tom@tromey.com>
4316
4317 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4318 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4319 tui_clear_source_content.
4320 (tui_clear_source_content): Remove.
4321 (tui_source_window_base::do_erase_source_content): Hoist call to
4322 content.clear().
4323 * tui/tui-stack.c (tui_show_frame_info): Don't call
4324 tui_clear_source_content.
4325
e25d2004
TT
43262019-08-15 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-winsource.h (struct tui_source_window_base)
4329 <do_erase_source_content>: New method.
4330 <erase_source_content>: New method.
4331 (tui_erase_source_content): Don't declare.
4332 * tui/tui-winsource.c (tui_clear_source_content): Update.
4333 (tui_source_window_base::do_erase_source_content): Rename from
4334 tui_erase_source_content.
4335 (tui_source_window_base::show_source_content): Update.
4336 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4337 * tui/tui-source.h (struct tui_source_window)
4338 <erase_source_content>: New method.
4339 * tui/tui-disasm.h (struct tui_disasm_window)
4340 <erase_source_content>: New method.
4341
002f15c2
TT
43422019-08-15 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4345 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4346 constructor.
4347 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4348 * tui/tui-source.c (tui_set_source_content): Update.
4349 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4350
c9033fe8
TT
43512019-08-15 Tom Tromey <tom@tromey.com>
4352
4353 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4354 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4355 tui-source.c.
4356 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4357 Declare.
4358 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4359 method.
4360 (tui_source_window::maybe_update): Update.
4361
088f37dd
TT
43622019-08-15 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4365 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4366 tui-disasm.c.
4367 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4368 Declare.
4369 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4370 method.
4371 (tui_disasm_window::maybe_update): Update.
4372
a54700c6
TT
43732019-08-15 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-winsource.h (struct tui_source_window_base)
4376 <maybe_update>: Declare.
4377 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4378 method.
4379 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4380 Declare.
4381 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4382 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4383 Declare.
4384 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4385
e2a678a5
TT
43862019-08-15 Tom Tromey <tom@tromey.com>
4387
4388 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4389
f2dda477
TT
43902019-08-15 Tom Tromey <tom@tromey.com>
4391
4392 * tui/tui-wingeneral.c: Include tui-stack.h.
4393 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4394 (struct tui_locator_window): Move from tui-data.h.
4395 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4396 (tui_initialize_static_data): Move from tui-data.c.
4397 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4398 (struct tui_locator_window): Move to tui-stack.c.
4399 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4400 (tui_initialize_static_data): Move to tui-stack.c.
4401
ed4a1084
TT
44022019-08-15 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-layout.c (show_source_disasm_command)
4405 (show_source_or_disasm_and_command): Use make_visible method, not
4406 tui_make_window.
4407 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4408 Remove.
4409
65962b20
TT
44102019-08-15 Tom Tromey <tom@tromey.com>
4411
4412 * tui/tui-wingeneral.h (tui_make_window): Update.
4413 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4414 parameter.
4415 (tui_gen_win_info::make_visible): Update.
4416 * tui/tui-regs.c (tui_data_window::display_registers_from):
4417 Update.
4418 * tui/tui-layout.c (show_source_disasm_command)
4419 (show_source_or_disasm_and_command): Update.
4420 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4421 (enum tui_box): Remove.
4422 (struct tui_win_info) <can_box>: New method.
4423 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4424 method.
4425
2208ee91
TV
44262019-08-15 Tom de Vries <tdevries@suse.de>
4427
4428 * linux-nat-trad.c: Include gdbarch.h.
4429
75faf5c4
AH
44302019-08-14 Alan Hayward <alan.hayward@arm.com>
4431
4432 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4433 register sizes.
4434
b1c896b3
TT
44352019-08-14 Tom Tromey <tromey@adacore.com>
4436
4437 * darwin-nat.c: Include gdbarch.h.
4438 * darwin-nat-info.c: Include gdbarch.h.
4439
6405cd73
TT
44402019-08-13 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4443 Remove.
4444 * tui/tui-data.c (tui_initialize_static_data): Update.
4445
5216580d
TT
44462019-08-13 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-winsource.h (struct tui_exec_info_window)
4449 <~tui_exec_info_window, maybe_allocate_content, get_content,
4450 m_content>: Remove.
4451 (struct tui_source_window_base) <set_exec_info_content,
4452 show_exec_info_content>: Don't declare.
4453 * tui/tui-winsource.c
4454 (tui_exec_info_window::maybe_allocate_content): Remove.
4455 (tui_source_window_base::update_exec_info): Rename from
4456 set_exec_info_content.
4457 (tui_source_window_base::show_exec_info_content)
4458 (tui_source_window_base::update_exec_info): Remove.
4459
93858ad3
TT
44602019-08-13 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4463 declare.
4464 * tui/tui-winsource.c (tui_update_source_window_as_is)
4465 (tui_update_source_windows_with_addr, tui_erase_source_content):
4466 Update.
4467 (tui_clear_exec_info_content): Remove.
4468
e321e7ce
TT
44692019-08-13 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4472 declare.
4473 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4474 call tui_erase_exec_info_content.
4475 (tui_clear_exec_info_content): Rename from
4476 tui_erase_exec_info_content.
4477 (tui_clear_exec_info_content): Delete.
4478
8270ac62
TT
44792019-08-13 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-winsource.h (struct tui_source_window_base)
4482 <show_exec_info_content>: Declare.
4483 (tui_show_exec_info_content): Don't declare.
4484 * tui/tui-winsource.c
4485 (tui_source_window_base::show_exec_info_content): Rename from
4486 tui_show_exec_info_content.
4487 (tui_source_window_base::update_exec_info): Update.
4488
7b56485d
TT
44892019-08-13 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4492 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4493 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4494 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4495 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4496 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4497 ... here.
4498
7ba913dc
TT
44992019-08-13 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-winsource.h (struct tui_source_window_base)
4502 <update_exec_info>: Declare.
4503 (tui_update_exec_info): Don't declare.
4504 * tui/tui-winsource.c (tui_update_source_window_as_is)
4505 (tui_source_window_base::refresh_all)
4506 (tui_update_all_breakpoint_info): Update.
4507 (tui_source_window_base::update_exec_info): Rename from
4508 tui_update_exec_info.
4509 * tui/tui-stack.c (tui_show_frame_info): Update.
4510
37a4a131
TT
45112019-08-13 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-winsource.h (struct tui_source_window_base)
4514 <set_exec_info_content>: Declare.
4515 (tui_set_exec_info_content): Don't declare.
4516 * tui/tui-winsource.c
4517 (tui_source_window_base::set_exec_info_content): Rename from
4518 tui_set_exec_info_content.
4519 (tui_update_exec_info): Update.
4520
0bd27e07
TT
45212019-08-13 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-winsource.h (struct tui_source_window_base)
4524 <show_source_content>: Declare.
4525 (tui_show_source_content): Don't declare.
4526 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4527 (tui_source_window_base::show_source_content): Rename from
4528 tui_show_source_content.
4529 (tui_source_window_base::refresh_all): Update.
4530 * tui/tui-layout.c (show_source_disasm_command)
4531 (show_source_or_disasm_and_command): Update.
4532
b4ef5aeb
TT
45332019-08-13 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-winsource.c (tui_erase_source_content)
4536 (tui_show_source_content, tui_source_window_base::refresh_all):
4537 Update.
4538 * tui/tui-wingeneral.h
4539 (tui_check_and_display_highlight_if_needed): Don't declare.
4540 * tui/tui-wingeneral.c
4541 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4542 check_and_display_highlight_if_needed.
4543 * tui/tui-win.c (tui_rehighlight_all)
4544 (tui_win_info::make_visible_with_new_height): Update.
4545 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4546 (tui_data_window::erase_data_content)
4547 (tui_data_window::display_all_data): Update.
4548 * tui/tui-data.h (struct tui_win_info)
4549 <check_and_display_highlight_if_needed>: Declare.
4550
fede5273
TT
45512019-08-13 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-win.c (tui_resize_all): Call
4554 tui_delete_invisible_windows.
4555 * tui/tui-layout.c (show_layout): Call
4556 tui_delete_invisible_windows.
4557 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4558 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4559
22c3f490
TT
45602019-08-13 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4563 tui_add_win_to_layout.
4564
16cb7910
TT
45652019-08-13 Tom Tromey <tom@tromey.com>
4566
4567 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4568 * tui/tui-layout.c (tui_default_win_height): Now static.
4569
cc0c3ffb
TT
45702019-08-13 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4573 single switch.
4574 (show_source_disasm_command, show_source_or_disasm_and_command):
4575 Don't check current layout.
4576
3f3ffe54
TT
45772019-08-13 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-wingeneral.c (make_all_visible): Remove.
4580 (tui_make_all_invisible): Simplify.
4581 * tui/tui-layout.c (tui_make_all_invisible): Move from
4582 tui-wingeneral.c; simplify.
4583 (show_layout): Hoist call to tui_make_all_invisible.
4584 (show_data): Don't call tui_make_all_invisible.
4585
69258091
TT
45862019-08-13 Tom Tromey <tom@tromey.com>
4587
4588 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4589 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4590
62cf57fe
TT
45912019-08-13 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4594 tui-data.c.
4595 (show_source_disasm_command, show_data)
4596 (show_source_or_disasm_and_command): Don't use
4597 tui_set_current_layout_to.
4598 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4599 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4600 tui-layout.c.
4601 (tui_set_current_layout_to): Remove.
4602
2afade5d
TT
46032019-08-13 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-layout.c (tui_set_layout): Update.
4606 * tui/tui-data.h (struct tui_layout_def): Remove.
4607 (tui_layout_def): Don't declare.
4608 * tui/tui-data.c (layout_def): Remove.
4609 (tui_layout_def): Remove.
4610
a3504e96
TT
46112019-08-13 Tom Tromey <tom@tromey.com>
4612
4613 * tui/tui-winsource.h (struct tui_source_window_base)
4614 <clear_detail>: No longer "override".
4615 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4616 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4617 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4618 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4619 Remove.
4620 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4621
29c92911
TT
46222019-08-13 Tom Tromey <tromey@adacore.com>
4623
4624 * tracepoint.c: Don't include readline.h or history.h.
4625
86c6b807
TT
46262019-08-12 Tom Tromey <tom@tromey.com>
4627
4628 * configure: Rebuild.
4629 * configure.ac: Check for readline 7.
4630 * NEWS: Mention readline 7 requirement.
4631 * README: Update.
4632
5db2718c
TT
46332019-08-12 Tom Tromey <tom@tromey.com>
4634
4635 * mingw-hdep.c (gdb_select): Remove readline hack.
4636
dac36daf
PFC
46372019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4638
4639 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4640 when the function fails.
4641
1022c627
AA
46422019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4643
4644 * s390-tdep.c (s390_type_align): New function.
4645 (s390_gdbarch_init): Set it as type_align gdbarch method.
4646
eba4caf2
TV
46472019-08-09 Tom de Vries <tdevries@suse.de>
4648
4649 PR gdb/24591
4650 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4651 pc_low with relocation offset.
4652
123cd851
TT
46532019-08-07 Tom Tromey <tromey@adacore.com>
4654
4655 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4656 (print_frame_args): Update.
4657 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4658 Update.
4659 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4660 * frame.h (struct frame_arg): Add initializers.
4661 <error>: Now a unique_xmalloc_ptr.
4662
3d31bc39
AH
46632019-08-07 Alan Hayward <alan.hayward@arm.com>
4664
4665 * NEWS: Expand the Pointer Authentication entry.
4666 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4667 (aarch64_frame_unmask_lr): ... to this.
4668 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4669 Call aarch64_frame_unmask_lr.
4670 * frame.c (struct frame_info): Add "masked" variable.
4671 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4672 (fprint_frame): Check for masked pc.
4673 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4674 declarations.
4675 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4676 * stack.c (print_frame): Check for masked pc.
4677
0cf9feb9
TT
46782019-08-06 Tom Tromey <tom@tromey.com>
4679
4680 * stabsread.c (patch_block_stabs, read_one_struct_field)
4681 (read_enum_type): Use obstack_strndup.
4682 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4683 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4684 * dwarf2read.c (guess_full_die_structure_name)
4685 (anonymous_struct_prefix): Use obstack_strndup.
4686 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4687 * c-exp.y (yylex): Use obstack_strndup.
4688 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4689 (write_var_or_type): Use obstack_strndup.
4690
efba19b0
TT
46912019-08-06 Tom Tromey <tom@tromey.com>
4692
4693 * symfile.c (reread_symbols): Use obstack_strdup.
4694 * stabsread.c (read_type): Use obstack_strdup.
4695 * gdb_obstack.h (obstack_strdup): New overload.
4696 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4697 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4698 (dwarf2_canonicalize_name): Use obstack_strdup.
4699 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4700 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4701 Use obstack_strdup.
4702
f25102f7
TT
47032019-08-06 Tom Tromey <tom@tromey.com>
4704
4705 * gdb_obstack.h (obstack_strdup): Define.
4706 * gdb_obstack.c (obstack_strdup): Don't define.
4707
021887d8
TT
47082019-08-06 Tom Tromey <tom@tromey.com>
4709
4710 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4711 obstack_strdup.
4712 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4713 obstack_strdup.
4714 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4715 * stabsread.c (common_block_start): Use obstack_strdup.
4716 * objfiles.c (set_objfile_main_name, objfile): Use
4717 obstack_strdup.
4718 * namespace.c (add_using_directive): Use obstack_strdup.
4719 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4720 * jit.c (finalize_symtab): Use obstack_strdup.
4721 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4722 (guess_partial_die_structure_name, partial_die_info::fixup)
4723 (dwarf2_name): Use obstack_strdup.
4724 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4725 obstack_strdup.
4726 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4727 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4728 obstack_strdup.
4729 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4730
d2834edc
PW
47312019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4732
4733 * unittests/help-doc-selftests.c: New file.
4734 * Makefile.in: Add the new file.
4735
590042fc
PW
47362019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4737
4738 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4739 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4740 the full first line, except when FOR_VALUE_PREFIX. In this case,
4741 the trailing '.' is not output, and the first character is uppercased.
4742 (print_help_for_command): Update call to print_doc_line.
4743 (print_doc_of_command): Likewise.
4744 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4745 * cli/cli-option.c (append_indented_doc): Do not append newline.
4746 (build_help_option): Append newline after first appended_indented_doc
4747 only if a second call is done.
4748 (build_help): Append 2 new lines before each option, except the first
4749 one.
4750 * compile/compile.c (_initialize_compile): Add new lines after
4751 %OPTIONS%, when not at the end of the help.
4752 Change help doc or code
4753 producing the help doc to respect the invariants.
4754 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4755 Also removed the new line after 'Options:', as all other commands
4756 do not put an empty line between 'Options:' and the first option.
4757 * printcmd.c (_initialize_printcmd): Likewise.
4758 * stack.c (_initialize_stack): Likewise.
4759 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4760 incorrectly telling COMMAND is optional.
4761 * ada-lang.c (_initialize_ada_language): Change help doc or code
4762 producing the help doc to respect the invariants.
4763 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4764 * breakpoint.c (_initialize_breakpoint): Likewise.
4765 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4766 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4767 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4768 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4769 _initialize_cli_style): Likewise.
4770 * corelow.c (core_target_info): Likewise.
4771 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4772 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4773 * filesystem.c (_initialize_filesystem): Likewise.
4774 * frame.c (_initialize_frame): Likewise.
4775 * gnu-nat.c (add_task_commands): Likewise.
4776 * infcall.c (_initialize_infcall): Likewise.
4777 * infcmd.c (_initialize_infcmd): Likewise.
4778 * interps.c (_initialize_interpreter): Likewise.
4779 * language.c (_initialize_language): Likewise.
4780 * linux-fork.c (_initialize_linux_fork): Likewise.
4781 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4782 * maint.c (_initialize_maint_cmds): Likewise.
4783 * memattr.c (_initialize_mem): Likewise.
4784 * printcmd.c (_initialize_printcmd): Likewise.
4785 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4786 _RegEx): Likewise.
4787 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4788 * record-btrace.c (_initialize_record_btrace): Likewise.
4789 * record-full.c (_initialize_record_full): Likewise.
4790 * record.c (_initialize_record): Likewise.
4791 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4792 * regcache.c (_initialize_regcache): Likewise.
4793 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4794 _initialize_remote): Likewise.
4795 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4796 * serial.c (_initialize_serial): Likewise.
4797 * skip.c (_initialize_step_skip): Likewise.
4798 * source.c (_initialize_source): Likewise.
4799 * stack.c (_initialize_stack): Likewise.
4800 * symfile.c (_initialize_symfile): Likewise.
4801 * symtab.c (_initialize_symtab): Likewise.
4802 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4803 * top.c (init_main): Likewise.
4804 * tracefile-tfile.c (tfile_target_info): Likewise.
4805 * tracepoint.c (_initialize_tracepoint): Likewise.
4806 * tui/tui-win.c (_initialize_tui_win): Likewise.
4807 * utils.c (add_internal_problem_command): Likewise.
4808 * valprint.c (value_print_option_defs): Likewise.
4809
404f2902
FCE
48102019-08-06 Frank Ch. Eigler <fche@redhat.com>
4811
4812 PR build/24886
4813 * configure.ac: Drop enable-libmcheck support.
4814 * configure, config.in: Rebuild.
4815 * libmcheck.m4: Remove.
4816 * acinclude.m4: Don't include it.
4817 * Makefile.in: Don't distribute it.
4818 * top.c (print_gdb_configuration): Don't mention it.
4819
046bebe1
TT
48202019-08-06 Tom Tromey <tom@tromey.com>
4821
4822 * utils.c (set_output_style): Sometimes pass stream to
4823 emit_style_escape.
4824 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4825 * record-btrace.c (btrace_insn_history): Update.
4826 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4827 method.
4828 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4829 Update initializers.
4830 <m_uiout>: New field.
4831 <m_di>: Move lower.
4832 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4833 Remove "uiout" parameter.
4834 (dump_insns): Update.
4835 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4836 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4837
ddbcedf5
CB
48382019-08-06 Christian Biesinger <cbiesinger@google.com>
4839
4840 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4841 (error_in_psymtab_expansion): Likewise.
4842 (lookup_symbol_via_quick_fns): Likewise.
4843 (basic_lookup_transparent_type_quick): Likewise.
4844 (basic_lookup_transparent_type_1): Likewise.
4845
b08b16c8
TT
48462019-08-06 Tom Tromey <tromey@adacore.com>
4847
4848 * source.c (last_source_error): Now bool.
4849 (print_source_lines_base): Make "noprint" bool. Only open
4850 source file when last_source_visited changes.
4851
cb44333d
TT
48522019-08-06 Tom Tromey <tromey@adacore.com>
4853
4854 * annotate.c (annotate_source_line): Use g_source_cache.
4855 * source-cache.c (source_cache::get_plain_source_lines): Change
4856 parameters. Populate m_offset_cache.
4857 (source_cache::ensure): New method.
4858 (source_cache::get_line_charpos): New method.
4859 (extract_lines): Move lower. Change parameters.
4860 (source_cache::get_source_lines): Move lower.
4861 * source-cache.h (class source_cache): Update comment.
4862 <get_line_charpos>: New method.
4863 <get_source_lines>: Update comment.
4864 <clear>: Clear m_offset_cache.
4865 <get_plain_source_lines>: Change parameters.
4866 <ensure>: New method
4867 <m_offset_cache>: New member.
4868 * source.c (forget_cached_source_info_for_objfile): Update.
4869 (info_source_command): Use g_source_cache.
4870 (find_source_lines, open_source_file_with_line_charpos): Remove.
4871 (print_source_lines_base, search_command_helper): Use g_source_cache.
4872 * source.h (open_source_file_with_line_charpos): Don't declare.
4873 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4874 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4875 Use g_source_cache.
4876
872dceaa
TT
48772019-08-06 Tom Tromey <tromey@adacore.com>
4878
4879 * source-cache.c (source_cache::get_plain_source_lines):
4880 Remove "first_line" and "last_line" parameters.
4881 (source_cache::get_source_lines): Cache plain text.
4882 * source-cache.h (class source_cache)
4883 <get_plain_source_lines>: Update.
4884
269249d9
TT
48852019-08-06 Tom Tromey <tromey@adacore.com>
4886
4887 * source-cache.c (extract_lines): No longer a method.
4888 Changed type of parameter. Include final newline.
4889 (selftests::extract_lines_test): New function.
4890 (_initialize_source_cache): Likewise.
4891 * source-cache.h (class source_cache)
4892 <extract_lines>: Don't declare.
4893
c0e8dcd8
TT
48942019-08-06 Tom Tromey <tromey@adacore.com>
4895
4896 * breakpoint.c (init_breakpoint_sal): Update.
4897 (breakpoint): Update.
4898 * breakpoint.h (struct breakpoint) <filter>: Now a
4899 unique_xmalloc_ptr.
4900
0b27c27d
CB
49012019-08-05 Christian Biesinger <cbiesinger@google.com>
4902
4903 * NEWS: Mention dictionary access on blocks.
4904 * python/py-block.c (blpy_getitem): New function.
4905 (block_object_as_mapping): New struct.
4906 (block_object_type): Use new struct for tp_as_mapping field.
4907
4ee94178
CB
49082019-08-05 Christian Biesinger <cbiesinger@google.com>
4909
4910 * objfiles.h (objfile): Add a comment describing partial symbols.
4911
8abfcabc
TT
49122019-08-05 Tom Tromey <tromey@adacore.com>
4913
4914 * compile/compile.c (_initialize_compile): Use _(), not N_().
4915 * thread.c (_initialize_thread): Use _(), not N_().
4916 * stack.c (_initialize_stack): Use _(), not N_().
4917 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4918
2b79f376
SM
49192019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4920
4921 * dwarf2read.c (struct dw2_symtab_iterator):
4922 <want_specific_block>: Remove.
4923 <block_index>: Change type to gdb::optional.
4924 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4925 change type of BLOCK_INDEX parameter to gdb::optional.
4926 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4927 (dw2_lookup_symbol): Don't pass argument for
4928 WANT_SPECIFIC_BLOCK.
4929 (dw2_expand_symtabs_for_function): Don't pass argument for
4930 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4931 (class dw2_debug_names_iterator)
4932 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4933 parameter, change BLOCK_INDEX type to gdb::optional.
4934 <m_want_specific_block>: Remove.
4935 <m_block_index>: Change type to gdb::optional.
4936 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4937 gdb::optional. Re-write in function of gdb::optional.
4938 (dw2_debug_names_lookup_symbol): Don't pass argument for
4939 WANT_SPECIFIC_BLOCK.
4940 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4941 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4942 BLOCK_INDEX.
4943
ae60f04e
PW
49442019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4945
4946 * NEWS: Mention changes to "info sources" command.
4947
28cd9371
PW
49482019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4949
4950 * symtab.c (filename_partial_match_opts): New struct type.
4951 (struct output_source_filename_data): New members
4952 regexp, c_regexp, partial_match.
4953 (output_source_filename): Use new members to decide to print file.
4954 (info_sources_option_defs): New variable.
4955 (make_info_sources_options_def_group, print_info_sources_header,
4956 info_sources_command_completer):
4957 New functions.
4958 (info_sources_command): Read new optional arguments.
4959 (_initialize_symtab): Update info sources help.
4960
ca683e3a
AO
49612019-08-02 Alexandre Oliva <oliva@adacore.com>
4962
4963 * ada-lang.c (exception_support_info_v0): Renamed from...
4964 (default_exception_support_info): ... this. Create new
4965 definition for v1.
4966 (ada_has_this_exception_support): Look up catch_handlers_sym.
4967 (ada_exception_support_info_sniffer): Try v0 after default.
4968
f1264162
TT
49692019-08-01 Tom Tromey <tromey@adacore.com>
4970
4971 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4972 gdbarch.h.
4973
0a7b2485
CB
49742019-08-01 Christian Biesinger <cbiesinger@google.com>
4975
4976 * s12z-tdep.c: Fix include path for s12z-opc.h.
4977
c6bdbeb7
AH
49782019-08-01 Alan Hayward <alan.hayward@arm.com>
4979
4980 * NEWS: Require GNU make 3.82.
4981
a2bd7b82
TT
49822019-07-16 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4985 declare.
4986
aa3b6533
TT
49872019-07-30 Tom Tromey <tromey@adacore.com>
4988
4989 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4990
a1530dc7
KB
49912019-07-30 Kevin Buettner <kevinb@redhat.com>
4992
4993 * printcmd.c (print_address_symbolic): Print negative offsets.
4994 (build_address_symbolic): Force signed arithmetic when computing
4995 offset.
4996
2906593f
CB
49972019-07-30 Christian Biesinger <cbiesinger@google.com>
4998
4999 PR/24474: Add a function to lookup static variables.
5000 * NEWS: Mention this new function.
5001 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5002 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5003 * python/python.c (python_GdbMethods): Add new function.
5004
c620ed88
CB
50052019-07-29 Christian Biesinger <cbiesinger@google.com>
5006
5007 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5008 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5009 (objfpy_lookup_static_symbol): New function.
5010 (objfile_object_methods): Add new functions.
5011
bc4268a5
PW
50122019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5013
5014 * NEWS: Mention 'set|show print frame-info'. Mention new
5015 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5016 backtrace argument. Mention that python frame filtering code
5017 is now consistent with what 'backtrace' command prints.
5018
4b5e8d19
PW
50192019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5020
5021 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5022 comments.
5023 (print_frame_info_auto, print_frame_info_source_line,
5024 print_frame_info_location, print_frame_info_source_and_location,
5025 print_frame_info_location_and_address, print_frame_info_short_location):
5026 New declarations.
5027 (struct frame_print_options): New member print_frame_info.
5028 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5029 * stack.h (get_user_print_what_frame_info): New declaration.
5030 (frame_show_address): New declaration.
5031 * stack.c (print_frame_arguments_choices): New value 'presence'.
5032 (print_frame_info_auto, print_frame_info_source_line,
5033 print_frame_info_location, print_frame_info_source_and_location,
5034 print_frame_info_location_and_address, print_frame_info_short_location,
5035 print_frame_info_choices, print_frame_info_print_what): New definitions.
5036 (print_frame_args): Only print dots for args if print frame-arguments
5037 is 'presence'.
5038 (frame_print_option_defs): New element for "frame-info".
5039 (get_user_print_what_frame_info): New function.
5040 (frame_show_address): Make non static. Move comment to stack.h.
5041 (print_frame_info_to_print_what): New function.
5042 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5043 to decide what to print.
5044 (backtrace_command_1): Handle the new print_frame_arguments_presence
5045 value.
5046 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5047 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5048 (py_print_frame): In non-mi mode, use LOCATION as default for
5049 print_what, similarly to frame information printed directly by
5050 backtrace command. Handle frame-info user option in non MI mode.
5051
6bdfee81
KB
50522019-07-27 Kevin Buettner <kevinb@redhat.com>
5053
5054 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5055 Add case for debugging 32-bit target on 64-bit host. Revise
5056 comment.
5057
98a617f8
KB
50582019-07-27 Kevin Buettner <kevinb@redhat.com>
5059
5060 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5061 instead of find_function_entry_range_from_pc.
5062
567238c9
KB
50632019-07-27 Kevin Buettner <kevinb@redhat.com>
5064
5065 * stack.c (find_frame_funname): Remove code which preferred
5066 minsym over symtab sym in "certain pathological cases".
5067
2dc80cf8
KB
5068 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5069 parameter. Change type of "do_demangle" to bool.
5070 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5071 Pass suitable "prefer_sym_over_minsym" flag to
5072 build_address_symbolic(). Don't output "+" for negative offsets.
5073 * printcmd.c (print_address_symbolic): Update invocation of
5074 build_address_symbolic to include a "prefer_sym_over_minsym"
5075 flag.
5076 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5077 Restrict cases in which use of minimal symbol is preferred to that
5078 of a found symbol. Update comments.
5079
1aff7173
KB
5080 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5081 for entry pc when entry pc is out of range for that FDE.
5082
89b085ac
BC
50832019-07-26 Brian Callahan <bcallah@openbsd.org>
5084
5085 PR gdb/24839:
5086 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5087 type.
5088
f32feb4a
CB
50892019-07-25 Christian Biesinger <cbiesinger@google.com>
5090
5091 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5092 this function's Python signature.
5093
5094
50952019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5096
5097 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5098 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5099 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5100 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5101 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5102
5103
c54e4253
YS
51042019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5105
5106 * h8300-tdep.c (h8300_register_name_common): New.
5107 h8300_register_name): Use h8300_register_name_common.
5108 (h8300s_register_name): Likewise.
5109 (h8300sx_register_name): Likewise.
5110 (h8300h_register_nam): New.
5111 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5112
5113
40eadf04
SP
51142019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5115
5116 * arm-tdep.c (arm_skip_cmse_entry): New function.
5117 (arm_is_sgstubs_section): New function.
5118 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5119
bfa2a36d
TT
51202019-07-22 Tom Tromey <tom@tromey.com>
5121
5122 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5123 Don't self-assign.
5124
a8e9d247
AB
51252019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5128 type_print.
5129
eb86c5e2
AB
51302019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5133 so that GDB doesn't match any msymbols when searching in the
5134 TYPES_DOMAIN.
5135 (print_symbol_info): Print using typedef_print or type_print based
5136 on the type of the symbol. Add updated FIXME comment moved from...
5137 (_initialize_symtab): ... move and update FIXME comment to above.
5138
a8eab7c6
AB
51392019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * NEWS: Mention adding -q option to "info types".
5142 * symtab.c (struct info_types_options): New struct.
5143 (info_types_options_defs): New variable.
5144 (make_info_types_options_def_group): New function.
5145 (info_types_command): Use gdb::option framework to parse options.
5146 (info_types_command_completer): New function.
5147 (_initialize_symtab): Extend the help text on "info types" and
5148 register command completer.
5149
b4603c34
CB
51502019-07-21 Christian Biesinger <cbiesinger@google.com>
5151
5152 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5153 (lookup_symbol_in_objfile): Change int to block_enum and add a
5154 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5155
c8cdc1e0
CB
51562019-07-20 Christian Biesinger <cbiesinger@google.com>
5157
5158 * MAINTAINERS (Write After Approval): Add self.
5159
01e175fe
AB
51602019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5161
5162 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5163 instruction to the dummy code region.
5164
56f79b63
TT
51652019-07-19 Tom Tromey <tromey@adacore.com>
5166
5167 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5168 (ARGSUSED, PARAMS, __func__): Remove rules.
5169
4c5aa8e0
AH
51702019-07-19 Alan Hayward <alan.hayward@arm.com>
5171
5172 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5173 * features/arm/arm-with-iwmmxt.c: Remove.
5174 * features/arm/arm-with-iwmmxt.xml: Remove.
5175 * features/arm/arm-with-m-fpa-layout.c: Remove.
5176 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5177 * features/arm/arm-with-m-vfp-d16.c: Remove.
5178 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5179 * features/arm/arm-with-m.c: Remove.
5180 * features/arm/arm-with-m.xml: Remove.
5181 * features/arm/arm-with-neon.c: Remove.
5182 * features/arm/arm-with-neon.xml: Remove.
5183 * features/arm/arm-with-vfpv2.c: Remove.
5184 * features/arm/arm-with-vfpv2.xml: Remove.
5185 * features/arm/arm-with-vfpv3.c: Remove.
5186 * features/arm/arm-with-vfpv3.xml: Remove.
5187
f42b2617
AH
51882019-07-19 Alan Hayward <alan.hayward@arm.com>
5189
5190 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5191
f29ec966
AH
51922019-07-19 Alan Hayward <alan.hayward@arm.com>
5193
5194 * arch/aarch32.c (aarch32_create_target_description): Create
5195 target descriptions using features.
5196 * arch/arm.c (arm_create_target_description)
5197 (arm_create_mprofile_target_description): Likewise.
5198 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5199
d105cce5
AH
52002019-07-19 Alan Hayward <alan.hayward@arm.com>
5201
5202 * Makefile.in: Add new files.
5203 * aarch32-tdep.c: New file.
5204 * aarch32-tdep.h: New file.
5205 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5206 Call aarch32_read_description.
5207 * arch/aarch32.c: New file.
5208 * arch/aarch32.h: New file.
5209 * arch/arm.c (arm_create_target_description)
5210 (arm_create_mprofile_target_description): New function.
5211 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5212 (arm_create_target_description)
5213 (arm_create_mprofile_target_description): New declaration.
5214 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5215 read_description functions.
5216 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5217 Likewise.
5218 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5219 * arm-tdep.c (tdesc_arm_list): New variable.
5220 (arm_register_g_packet_guesses): Call create description functions.
5221 (arm_read_description) (arm_read_mprofile_description): New
5222 function.
5223 * arm-tdep.h (arm_read_description)
5224 (arm_read_mprofile_description): Add declaration.
5225 * configure.tgt: Add new files.
5226
afe09f0b
GL
52272019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5228
5229 * top.c (new_ui_command): Open specified terminal just once.
5230
cd215b2e
TT
52312019-07-18 Tom Tromey <tromey@adacore.com>
5232
5233 * symtab.c (main_name): Constify return type.
5234 * symfile.c (set_initial_language): Update.
5235 * symtab.h (main_name): Constify return type.
5236
d8f68fcb
TT
52372019-07-17 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-winsource.c (tui_update_source_window)
5240 (tui_update_source_window_as_is)
5241 (tui_update_source_windows_with_line): Remove return.
5242 * tui/tui-disasm.c (tui_show_disassem)
5243 (tui_show_disassem_and_update_source): Remove return.
5244 * tui/tui.c (tui_reset): Remove return.
5245 * tui/tui-wingeneral.c
5246 (tui_check_and_display_highlight_if_needed): Remove return.
5247
ca5af91e
TT
52482019-07-17 Tom Tromey <tom@tromey.com>
5249
5250 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5251
5104fe36
TT
52522019-07-17 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-winsource.h (struct tui_exec_info_window)
5255 (struct tui_source_window_base): Move from tui-data.h.
5256 * tui/tui-winsource.c: Move many method definitions from
5257 elsewhere. Remove "structuring" comments.
5258 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5259 (tui_source_window_base::refresh_window): Move to
5260 tui-winsource.c.
5261 * tui/tui-win.c (tui_source_window_base::refresh_all)
5262 (tui_source_window_base::update_tab_width)
5263 (tui_source_window_base::set_new_height)
5264 (tui_source_window_base::do_make_visible_with_new_height): Move to
5265 tui-winsource.c.
5266 * tui/tui-source.h: Update.
5267 * tui/tui-source.c (tui_source_window_base::reset): Move to
5268 tui-winsource.c.
5269 * tui/tui-disasm.h: Update.
5270 * tui/tui-data.h (struct tui_exec_info_window): Move to
5271 tui-winsource.h.
5272 (struct tui_source_window_base): Likewise.
5273 * tui/tui-data.c (tui_source_window_base::clear_detail)
5274 (tui_source_window_base, ~tui_source_window_base): Move to
5275 tui-winsource.c.
5276
daa15dde
TT
52772019-07-17 Tom Tromey <tom@tromey.com>
5278
5279 * tui/tui-win.c (tui_resize_all)
5280 (tui_source_window_base::update_tab_width)
5281 (tui_adjust_win_heights): Update.
5282 (tui_win_info::make_invisible_and_set_new_height): Rename from
5283 make_invisible_and_set_new_height.
5284 * tui/tui-data.h (struct tui_win_info)
5285 <make_invisible_and_set_new_height>: New method.
5286
bfad4537
TT
52872019-07-17 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui.c: Update.
5290 * tui/tui-source.h (struct tui_source_window): Move from
5291 tui-data.h.
5292 * tui/tui-layout.c: Update.
5293 * tui/tui-disasm.c: Update.
5294 * tui/tui-data.h (struct tui_source_window): Move to
5295 tui-source.h.
5296
88f7e873
TT
52972019-07-17 Tom Tromey <tom@tromey.com>
5298
5299 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5300 tui-data.h.
5301 * tui/tui-data.h (struct tui_disasm_window): Move to
5302 tui-disasm.h.
5303
96bd6233
TT
53042019-07-17 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui-regs.h (struct tui_data_item_window): Move from
5307 tui-data.h.
5308 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5309 * tui/tui-data.h (struct tui_data_item_window): Move to
5310 tui-regs.h.
5311 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5312
ce38393b
TT
53132019-07-17 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui.c: Update.
5316 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5317 (tui_cmd_window::max_height): Move to tui-command.c.
5318 * tui/tui-layout.c: Update.
5319 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5320 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5321 tui-command.c.
5322 * tui/tui-command.h (struct tui_cmd_window): Move from
5323 tui-data.h.
5324 * tui/tui-command.c: Remove "structuring" comments.
5325 (tui_cmd_window::clear_detail)
5326 (tui_cmd_window::do_make_visible_with_new_height)
5327 (tui_cmd_window::max_height): Move from elsewhere.
5328
2d8b51cb
TT
53292019-07-17 Tom Tromey <tom@tromey.com>
5330
5331 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5332 Now static.
5333 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5334 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5335
18ab23af
TT
53362019-07-17 Tom Tromey <tom@tromey.com>
5337
5338 * tui/tui.c: Update.
5339 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5340 tui-regs.c.
5341 * tui/tui-windata.h: Remove file.
5342 * tui/tui-windata.c: Remove file.
5343 * tui/tui-win.c (tui_data_window::set_new_height)
5344 (tui_data_window::do_make_visible_with_new_height): Move to
5345 tui-regs.c.
5346 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5347 * tui/tui-regs.c: Remove "structuring" comments.
5348 (tui_data_window::first_data_item_displayed)
5349 (tui_data_window::delete_data_content_windows)
5350 (tui_data_window::erase_data_content)
5351 (tui_data_window::display_all_data)
5352 (tui_data_window::refresh_all)
5353 (tui_data_window::do_scroll_vertical)
5354 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5355 (tui_data_window::do_make_visible_with_new_height)
5356 (tui_data_window::refresh_window): Move from elsewhere.
5357 (_initialize_tui_regs): Move to end of file.
5358 * tui/tui-layout.c: Update.
5359 * tui/tui-hooks.c: Update.
5360 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5361 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5362 tui-regs.c.
5363 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5364
88b7e7cc
TT
53652019-07-17 Tom Tromey <tom@tromey.com>
5366
5367 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5368 seen.
5369
0fcd3711
TT
53702019-07-17 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-win.c (tui_source_window_base::set_new_height)
5373 (tui_source_window_base::do_make_visible_with_new_height): Use
5374 m_has_locator field directly.
5375 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5376 method.
5377 (struct tui_source_window_base) <has_locator>: Likewise.
5378
4a38112d
TT
53792019-07-17 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5382 Don't declare.
5383 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5384 Remove.
5385 * tui/tui-win.c (tui_source_window_base::set_new_height)
5386 (tui_source_window_base::set_new_height)
5387 (make_invisible_and_set_new_height)
5388 (tui_source_window_base::do_make_visible_with_new_height)
5389 (tui_source_window_base::do_make_visible_with_new_height):
5390 Update.
5391 * tui/tui-layout.c (show_source_disasm_command, show_data)
5392 (show_source_or_disasm_and_command): Update.
5393 * tui/tui-layout.c (show_layout): Update.
5394
09129226
TT
53952019-07-17 Tom Tromey <tom@tromey.com>
5396
5397 * tui/tui-layout.c (make_data_window): Remove.
5398 (show_data): Unify creation and re-initialization cases.
5399
4a8a5e84
TT
54002019-07-17 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-layout.c (make_source_window, make_disasm_window):
5403 Remove.
5404 (show_data): Unify creation and re-initialization cases.
5405
76d2be8e
TT
54062019-07-17 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-layout.c (make_command_window): Remove.
5409 (show_source_disasm_command, show_source_or_disasm_and_command):
5410 Unify creation and re-initialization cases.
5411
890b8bde
TT
54122019-07-17 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5415 creation and re-initialization cases.
5416
2cdfa113
TT
54172019-07-17 Tom Tromey <tom@tromey.com>
5418
5419 * tui/tui-regs.c (tui_get_register): Return void.
5420
8e3cfd09
TT
54212019-07-17 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5424 Simplify.
5425
f4e04977
TT
54262019-07-17 Tom Tromey <tom@tromey.com>
5427
5428 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5429 resetting.
5430
0379b883
TT
54312019-07-17 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5434 * tui/tui-regs.c (tui_reg_layout): New function.
5435 (tui_show_registers, tui_reg_command): Use it.
5436 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5437 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5438 parameters.
5439 (tui_layout_command): Remove.
5440
b7fbad91
TT
54412019-07-17 Tom Tromey <tom@tromey.com>
5442
5443 * tui/tui-layout.h (tui/tui-layout): Return void.
5444 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5445
4e1e56b9
TT
54462019-07-17 Tom Tromey <tom@tromey.com>
5447
5448 * tui/tui-layout.c (show_source_disasm_command, show_data):
5449 Update.
5450 (reset_locator): Remove.
5451 (show_source_or_disasm_and_command): Update.
5452
1e0c09ba
TT
54532019-07-17 Tom Tromey <tom@tromey.com>
5454
5455 * tui/tui-source.c (tui_source_window_base::reset): Remove
5456 win_type parameter.
5457 * tui/tui-layout.c (make_command_window, make_source_window)
5458 (make_disasm_window, make_data_window)
5459 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5460 (reset_locator, show_source_or_disasm_and_command): Update.
5461 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5462 win_type parameter.
5463 (struct tui_source_window_base) <reset>: Likewise.
5464
1bf605de
TT
54652019-07-17 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-layout.c (show_source_disasm_command): Use
5468 reset_locator.
5469 (reset_locator): New function.
5470 (init_and_make_win): Remove.
5471 (show_source_or_disasm_and_command): Use reset_locator.
5472
098f9ed4
TT
54732019-07-17 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5476 condition.
5477 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5478 Remove condition.
5479 * tui/tui-source.c (tui_source_window_base::reset): New method.
5480 * tui/tui-layout.c (make_command_window): Don't call
5481 init_and_make_win.
5482 (make_source_window, make_disasm_window): Don't call
5483 make_source_or_disasm_window.
5484 (make_data_window): Don't call init_and_make_win. Change calling
5485 convention.
5486 (show_source_disasm_command, show_data): Simplify.
5487 (make_source_or_disasm_window): Remove.
5488 (show_source_or_disasm_and_command): Simplify.
5489 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5490 (struct tui_source_window_base) <reset>: Likewise.
5491 <execution_info>: Remove initializer.
5492 * tui/tui-data.c (tui_source_window_base): Initialize
5493 execution_info.
5494
80110957
TT
54952019-07-17 Tom Tromey <tom@tromey.com>
5496
5497 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5498 variable.
5499
cf82af05
TT
55002019-07-17 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui.c (tui_rl_other_window): Update.
5503 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5504 superclass method first. Always iterate over regs_content.
5505 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5506 method.
5507 * tui/tui-win.c (tui_set_focus_command): Update.
5508
01aeb396
TT
55092019-07-17 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui-win.c (tui_set_focus_command): Rename from
5512 tui_set_focus. Call tui_enable.
5513 (tui_set_focus_command): Remove.
5514
fd6c75ee
TT
55152019-07-17 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5518 refresh_window.
5519 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5520 touchwin.
5521 (tui_data_window::refresh_window): Call refresh_window on data
5522 items. Always call superclass refresh_window.
5523 (tui_win_info::refresh): Remove.
5524 (tui_source_window_base::refresh_window): Update.
5525 (tui_refresh_all): Update.
5526 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5527 refresh_window.
5528 (show_source_or_disasm_and_command): Likewise.
5529 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5530 (struct tui_source_window_base) <refresh>: Likewise.
5531
f6cc34a9
TT
55322019-07-17 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-winsource.c (tui_clear_source_content)
5535 (tui_show_source_content): Update.
5536 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5537 whether content is empty.
5538 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5539 Remove.
5540
f31ec9af
TT
55412019-07-17 Tom Tromey <tom@tromey.com>
5542
5543 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5544 window's contents.
5545 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5546 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5547
d1b6f1e5
TT
55482019-07-17 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5551 (struct tui_data_item_window): Update.
5552
d9743a13
TT
55532019-07-17 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5556 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5557 defines.
5558
caf0bc4e
TT
55592019-07-17 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-winsource.h (tui_erase_source_content)
5562 (tui_clear_source_content): Remove "display_prompt" parameter.
5563 * tui/tui-winsource.c (tui_update_source_window_as_is)
5564 (tui_update_source_windows_with_addr): Update.
5565 (tui_clear_source_content): Remove "display_prompt" parameter.
5566 (tui_erase_source_content): Likewise. Simplify.
5567 (tui_show_source_content): Update.
5568 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5569 * tui/tui-stack.c (tui_show_frame_info): Update.
5570 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5571 Remove defines.
5572
9d391078
TT
55732019-07-17 Tom Tromey <tom@tromey.com>
5574
5575 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5576 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5577 parameter.
5578 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5579 parameter.
5580
a38da35d
TT
55812019-07-17 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-winsource.c (tui_clear_source_content)
5584 (tui_show_source_content, tui_show_exec_info_content)
5585 (tui_clear_exec_info_content): Update.
5586 * tui/tui-stack.c (tui_show_locator_content): Update.
5587 (tui_show_frame_info): Update.
5588 * tui/tui-source.h (tui_source_window): Don't declare.
5589 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5590 from tui_source_is_displayed.
5591 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5592 Remove field.
5593 (struct tui_source_window_base) <content_in_use>: New field. Now
5594 bool.
5595 (struct tui_source_window) <showing_source_p>: New method.
5596 (TUI_SRC_WIN): Change cast.
5597 * tui/tui-data.c (tui_initialize_static_data): Update.
5598
c2cd8994
TT
55992019-07-17 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5602 location_matches_p.
5603 * tui/tui-source.c (tui_source_window::location_matches_p): New
5604 method.
5605 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5606 method.
5607 * tui/tui-data.h (struct tui_source_window_base)
5608 <location_matches_p>: New method.
5609 (struct tui_source_window, struct tui_disasm_window)
5610 <location_matches_p>: Likewise.
5611
4dde7b34
TT
56122019-07-17 Tom Tromey <tom@tromey.com>
5613
5614 * tui/tui-win.c (tui_set_win_height_command): Rename from
5615 tui_set_win_height.
5616 (tui_set_win_height_command): Remove.
5617
b73dd877
TT
56182019-07-17 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-source.c (tui_source_window): New constructor. Add
5621 observer.
5622 (~tui_source_window): New destructor.
5623 (tui_source_window::style_changed): New method.
5624 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5625 (tui_attach_detach_observers): Update.
5626 * tui/tui-data.h (struct tui_source_window): Make constructor not
5627 inline. Add destructor.
5628 (struct tui_source_window) <style_changed>: New method.
5629 <m_observable>: New member.
5630
ae2b5380
TT
56312019-07-17 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5634 * tui/tui-win.c (tui_resize_all): Fix typo.
5635
1ce3e844
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5639 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5640 (tui_refresh_all): Remove "list" parameter. Use foreach.
5641 * tui/tui-win.c (window_name_completer): Use foreach.
5642 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5643 (update_tab_width): Likewise.
5644 * tui/tui-layout.c (show_layout): Update.
5645 * tui/tui-data.h (class tui_window_iterator): New.
5646 (struct all_tui_windows): New.
5647 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5648
fe3eaf1c
TT
56492019-07-17 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5652 parameter. Don't reference globals.
5653 (tui_reg_command): Update.
5654
368c1354
TT
56552019-07-17 Tom Tromey <tom@tromey.com>
5656
5657 * tui/tui-regs.c (tui_show_registers): Simplify.
5658
e80cd204
TT
56592019-07-17 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-regs.c (tui_show_registers): Update.
5662 (tui_show_register_group): Add win_info parameter.
5663
aca2dd16
TT
56642019-07-17 Tom Tromey <tom@tromey.com>
5665
5666 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5667 Rename from tui_display_reg_element_at_line.
5668 (tui_data_window::display_registers_from_line): Update.
5669 * tui/tui-data.h (struct tui_data_window)
5670 <display_reg_element_at_line>: New method.
5671
517e9505
TT
56722019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-regs.h (tui_display_registers_from)
5675 (tui_display_registers_from_line): Don't declare.
5676 * tui/tui-windata.c (tui_data_window::display_all_data)
5677 (tui_data_window::refresh_all)
5678 (tui_data_window::do_scroll_vertical): Update.
5679 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5680 from tui_display_registers_from.
5681 (tui_display_reg_element_at_line): Update.
5682 (tui_data_window::display_registers_from_line): Rename from
5683 tui_display_registers_from_line.
5684 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5685 display_registers_from_line>: New methods.
5686
f76d8b19
TT
56872019-07-17 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5690 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5691 from tui_erase_data_content.
5692 (tui_data_window::display_all_data)
5693 (tui_data_window::refresh_all)
5694 (tui_data_window::do_scroll_vertical): Update.
5695 * tui/tui-regs.c (tui_show_registers): Update.
5696 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5697 New method.
5698
b4094625
TT
56992019-07-17 Tom Tromey <tom@tromey.com>
5700
5701 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5702 declare.
5703 * tui/tui-windata.c
5704 (tui_data_window::delete_data_content_windows): Rename from
5705 tui_delete_data_content_windows.
5706 (tui_data_window::display_all_data)
5707 (tui_data_window::do_scroll_vertical): Update.
5708 * tui/tui-data.h (struct tui_data_window)
5709 <delete_data_content_windows>: New method.
5710
c223a729
TT
57112019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5714 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5715
50daf268
TT
57162019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5719 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5720 from tui_display_all_data.
5721 * tui/tui-win.c
5722 (tui_data_window::do_make_visible_with_new_height): Update.
5723 * tui/tui-regs.c (tui_show_registers): Update.
5724 * tui/tui-layout.c (tui_set_layout): Update.
5725 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5726 method.
5727
df5f8cab
TT
57282019-07-17 Tom Tromey <tom@tromey.com>
5729
5730 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5731 * tui/tui-windata.c (tui_display_data_from): Remove.
5732 (tui_data_window::refresh_all): Update.
5733
80cb6c27
TT
57342019-07-17 Tom Tromey <tom@tromey.com>
5735
5736 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5737 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5738 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5739 tui_display_registers_from_line.
5740 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5741 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5742 "force_display" parameter.
5743
baff0c28
TT
57442019-07-17 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5747 declare.
5748 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5749 Rename from tui_first_reg_element_no_inline.
5750 (tui_display_reg_element_at_line)
5751 (tui_display_registers_from_line): Update.
5752 * tui/tui-data.h (struct tui_data_window)
5753 <first_reg_element_no_inline>: New method.
5754
3b23c5f2
TT
57552019-07-17 Tom Tromey <tom@tromey.com>
5756
5757 * tui/tui-windata.c (tui_display_data_from)
5758 (tui_data_window::do_scroll_vertical): Update.
5759 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5760 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5761 Rename from tui_line_from_reg_element_no.
5762 (tui_display_registers_from_line): Update.
5763 * tui/tui-data.h (struct tui_data_window)
5764 <line_from_reg_element_no>: New method.
5765
0b5ec218
TT
57662019-07-17 Tom Tromey <tom@tromey.com>
5767
5768 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5769 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5770 tui_last_regs_line_no.
5771 (tui_display_reg_element_at_line)
5772 (tui_display_registers_from_line): Update.
5773 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5774 method.
5775
0807ab7b
TT
57762019-07-17 Tom Tromey <tom@tromey.com>
5777
5778 PR tui/24722:
5779 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5780 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5781 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5782 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5783 (tui_update_breakpoint_info): Likewise.
5784 * tui/tui-hooks.c (tui_event_create_breakpoint)
5785 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5786 Update.
5787
9ad7fdef
TT
57882019-07-17 Tom Tromey <tom@tromey.com>
5789
5790 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5791
5813316f
TT
57922019-07-17 Tom Tromey <tom@tromey.com>
5793
5794 * tui/tui-winsource.c (tui_update_source_window_as_is)
5795 (tui_update_source_windows_with_addr): Update.
5796 * tui/tui-source.h (tui_set_source_content)
5797 (tui_show_symtab_source): Add "win_info" parameter.
5798 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5799 parameter.
5800 (tui_show_symtab_source): Likewise.
5801
00e264e7
TT
58022019-07-17 Tom Tromey <tom@tromey.com>
5803
5804 * tui/tui-wingeneral.c
5805 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5806
06210ce4
TT
58072019-07-17 Tom Tromey <tom@tromey.com>
5808
5809 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5810 (struct tui_cmd_window) <can_scroll>: New method.
5811 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5812 method.
5813
381befee
TT
58142019-07-17 Tom Tromey <tromey@adacore.com>
5815
5816 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5817 do_field_signed>: Rename. Change type of "value".
5818 * ui-out.c (ui_out::field_signed): Rename from field_int.
5819 Change type of "value".
5820 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5821 type of "value".
5822 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5823 do_field_int. Change type of "value".
5824 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5825 do_field_int. Change type of "value".
5826 * tracepoint.c (trace_status_mi, tfind_1)
5827 (print_one_static_tracepoint_marker): Update.
5828 * thread.c (print_thread_info_1, print_selected_thread_frame):
5829 Update.
5830 * stack.c (print_frame, print_frame_info): Update.
5831 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5832 Update.
5833 * source.c (print_source_lines_base): Update.
5834 * skip.c (info_skip_command): Update.
5835 * record-btrace.c (btrace_ui_out_decode_error)
5836 (btrace_call_history_src_line): Update.
5837 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5838 Update.
5839 * progspace.c (print_program_space): Update.
5840 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5841 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5842 do_field_int. Change type of "value".
5843 * mi/mi-out.c (mi_ui_out::do_table_begin)
5844 (mi_ui_out::do_table_header): Update.
5845 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5846 type of "value".
5847 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5848 (mi_cmd_data_list_changed_registers, output_register)
5849 (mi_cmd_data_read_memory, mi_load_progress)
5850 (mi_cmd_trace_frame_collected): Update.
5851 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5852 Update.
5853 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5854 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5855 (mi_cmd_var_list_children, varobj_update_one): Update.
5856 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5857 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5858 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5859 * inferior.c (print_inferior): Update.
5860 * gdb_bfd.c (print_one_bfd): Update.
5861 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5862 Update.
5863 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5864 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5865 do_field_int. Change type of "value".
5866 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5867 do_field_int. Change type of "value".
5868 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5869 (print_one_breakpoint_location, print_it_catch_fork)
5870 (print_one_catch_fork, print_it_catch_vfork)
5871 (print_one_catch_vfork, print_it_catch_solib)
5872 (print_it_catch_exec, print_it_ranged_breakpoint)
5873 (print_mention_watchpoint, print_mention_masked_watchpoint)
5874 (bkpt_print_it, update_static_tracepoint): Update.
5875 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5876 * break-catch-syscall.c (print_it_catch_syscall): Update.
5877 * ada-tasks.c (print_ada_task_info): Update.
5878 * ada-lang.c (print_it_exception, print_mention_exception):
5879 Update.
5880
6b78c3f8
AB
58812019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5882
5883 PR breakpoints/24541
5884 * gdbarch.c: Regenerate.
5885 * gdbarch.h: Regenerate.
5886 * gdbarch.sh: Adjust return type and parameter types for
5887 'stap_adjust_register'.
5888 (i386_stap_adjust_register): Adjust signature and return new
5889 register name.
5890 * stap-probe.c (stap_parse_register_operand): Adjust use of
5891 'gdbarch_stap_adjust_register'.
5892
d72a9b85
TT
58932019-07-17 Tom Tromey <tromey@adacore.com>
5894
5895 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5896 declare VEC.
5897 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5898 std::vector.
5899 (struct s390_process_info): Add initializers.
5900 (s390_add_process): Use new.
5901 (s390_linux_nat_target::low_forget_process): Use delete.
5902 (s390_linux_nat_target::low_new_fork)
5903 (s390_linux_nat_target::stopped_by_watchpoint)
5904 (s390_linux_nat_target::low_prepare_to_resume)
5905 (s390_linux_nat_target::insert_watchpoint)
5906 (s390_linux_nat_target::insert_hw_breakpoint)
5907 (s390_linux_nat_target::remove_watchpoint)
5908 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5909
206e6c58
JB
59102019-07-16 John Baldwin <jhb@FreeBSD.org>
5911
5912 * aarch64-fbsd-nat.c: Include regcache.h.
5913 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5914 argument.
5915 (aarch64_fbsd_nat_target::fetch_registers)
5916 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5917 variable.
5918 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5919
cbde90f2
JB
59202019-07-16 John Baldwin <jhb@FreeBSD.org>
5921
5922 * fbsd-nat.c: Include gdbarch.h.
5923
07128006
TT
59242019-07-15 Tom Tromey <tromey@adacore.com>
5925
5926 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5927
1f77b012
TT
59282019-07-15 Tom Tromey <tromey@adacore.com>
5929
5930 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5931 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5932 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5933 * cli-out.c (cli_ui_out::do_field_int): New method.
5934 * ui-out.c (ui_out::field_unsigned): New method.
5935 * symfile.c (generic_load): Use field_unsigned.
5936 (print_transfer_performance): Likewise.
5937 * record-btrace.c (ui_out_field_uint): Remove.
5938 (btrace_call_history_insn_range, btrace_call_history): Use
5939 field_unsigned.
5940 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5941 field_unsigned.
5942 * ui-out.h (class ui_out) <field_unsigned>: New method.
5943 <do_field_unsigned>: Likewise.
5944
33eca680
TT
59452019-07-15 Tom Tromey <tromey@adacore.com>
5946
5947 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5948 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5949 * target.c (flash_erase_command): Use field_string.
5950 * infrun.c (print_signal_received_reason): Use field_string.
5951 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5952 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5953 field_string.
5954 * ada-tasks.c (print_ada_task_info): Use field_string.
5955
ca8d69be
TT
59562019-07-15 Tom Tromey <tromey@adacore.com>
5957
5958 * target.c (flash_erase_command): Use field_core_addr.
5959 * symfile.c (generic_load): Use field_core_addr.
5960 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5961 Use field_core_addr.
5962 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5963 field_core_addr.
5964
0d4e84ed
AB
59652019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5968 value if its desired type is smaller than a CORE_ADDR and signed.
5969
9a49df9d
AB
59702019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5971
5972 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5973 of changes to field names, and use new is_reference field to
5974 decide if a property is a reference or not.
5975 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5976 field.
5977 (struct dwarf2_property_baton): Update header comment, rename
5978 'referenced_type' to 'property_type' and update comments.
5979 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5980 default property type, store in property baton, update to take
5981 accound of renamed field.
5982 (read_func_scope): Update call to attr_to_dynamic_prop.
5983 (read_array_type): Likewise.
5984 (dwarf2_per_cu_addr_sized_int_type): New function.
5985 (read_subrange_index_type): Move type finding code to
5986 dwarf2_per_cu_addr_sized_int_type.
5987 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5988 (dwarf2_per_cu_addr_type): New function.
5989 (set_die_type): Update calls to attr_to_dynamic_prop.
5990
b86352cf
AB
59912019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * dwarf2read.c (read_subrange_index_type): New function.
5994 (read_subrange_type): Move code into new function and call it.
5995 * gdbtypes.c (create_range_type): Add some asserts.
5996
603490bf
AB
59972019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5998
5999 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6000 update return statements.
6001 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6002 declaration, and update comment to match.
6003 * gdbtypes.c (resolve_dynamic_array): Update call to
6004 dwarf2_evaluate_property to match new return type.
6005
592f9d27
AB
60062019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6007
6008 * valarith.c (value_subscripted_rvalue): Change lowerbound
6009 parameter type from int to LONGEST.
6010 * value.h (value_subscripted_rvalue): Likewise in declaration.
6011
60cfcb20
AB
60122019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * cli/cli-utils.c (info_print_command_completer): New function.
6015 * cli/cli-utils.h: Add 'completer.h' include, and forward
6016 declaration for 'struct cmd_list_element'.
6017 (info_print_command_completer): Declare.
6018 * stack.c (_initialize_stack): Add completer for 'info locals' and
6019 'info args'.
6020 * symtab.c (_initialize_symtab): Add completer for 'info
6021 variables' and 'info functions'.
6022 * NEWS: Mention completion for additional info commands.
6023
b16507e0
AB
60242019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6025
6026 * cli/cli-utils.c (extract_info_print_args): Delete.
6027 (extract_arg_maybe_quoted): Delete.
6028 (info_print_options_defs): New variable.
6029 (make_info_print_options_def_group): New function.
6030 (extract_info_print_options): Define new function.
6031 * cli/cli-utils.h (extract_info_print_args): Delete.
6032 (struct info_print_options): New structure.
6033 (extract_info_print_options): Declare new function.
6034 * stack.c (info_locals_command): Update to use new
6035 extract_info_print_options, also add a header comment.
6036 (info_args_command): Likewise.
6037 * symtab.c (info_variables_command): Likewise.
6038 (info_functions_command): Likewise.
6039
021d8588
AB
60402019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6043 to extract string arguments.
6044 * common/common-utils.c (extract_string_maybe_quoted): New function.
6045 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6046
b777eb6d
TT
60472019-07-11 Tom Tromey <tromey@adacore.com>
6048
6049 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6050 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6051 * top.h (gdbinit): Don't declare.
6052 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6053 into...
6054 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6055 * top.c (gdb_init): Don't call init_cli_cmds.
6056 (gdbinit): Remove.
6057 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6058
72ee03ff
TT
60592019-07-11 Tom Tromey <tromey@adacore.com>
6060
6061 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6062 after it has been moved.
6063
00db9531
SM
60642019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6065
6066 * valops.c (value_must_coerce_to_target): Change return type to
6067 bool.
6068 * value.h (value_must_coerce_to_target): Likewise.
6069
f2478a7e
SM
60702019-07-10 Simon Marchi <simon.marchi@efficios.com>
6071
6072 * breakpoint.c (is_hardware_watchpoint): Remove
6073 forward-declaration.
6074 (is_masked_watchpoint): Change return type to bool.
6075 (is_tracepoint): Likewise.
6076 (is_breakpoint): Likewise.
6077 (is_hardware_watchpoint): Likewise.
6078 (is_watchpoint): Likewise.
6079 (is_no_memory_software_watchpoint): Likewise.
6080 (is_catchpoint): Likewise.
6081 (breakpoint_1): Make FILTER parameter's return type bool.
6082 is_masked_watchpoint): Change return type to bool.
6083 (save_breakpoints): Make FILTER parameter's return type bool.
6084 * breakpoint.h (is_breakpoint): Change return type to bool.
6085 (is_watchpoint): Likewise.
6086 (is_catchpoint): Likewise.
6087 (is_tracepoint): Likewise.
6088
0d12e84c
TT
60892019-07-10 Tom Tromey <tom@tromey.com>
6090
6091 * defs.h: Don't include gdbarch.h.
6092 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6093 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6094 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6095 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6096 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6097 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6098 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6099 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6100 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6101 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6102 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6103 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6104 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6105 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6106 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6107 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6108 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6109 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6110 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6111 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6112 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6113 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6114 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6115 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6116 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6117 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6118 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6119
f06f1252
TT
61202019-07-10 Tom Tromey <tromey@adacore.com>
6121
6122 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6123 * breakpoint.c (init_ada_exception_breakpoint): Register as
6124 bp_catchpoint.
6125 (print_one_breakpoint_location, print_one_breakpoint): Use
6126 is_ada_exception_catchpoint.
6127 * ada-lang.c (class ada_catchpoint_location): Pass
6128 bp_loc_software_breakpoint to bp_location constructor.
6129 (is_ada_exception_catchpoint): New function.
6130
7a5d944b
TT
61312019-07-10 Tom Tromey <tromey@adacore.com>
6132
6133 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6134 VEC.
6135 (struct arm_exidx_entry): New method operator<.
6136 (struct arm_exidx_data) <section_maps>: Change type.
6137 (arm_exidx_data_free): Remove.
6138 (arm_exidx_data_key): Change type. Move lower.
6139 (arm_exidx_new_objfile): Update.
6140 (arm_compare_exidx_entries): Remove.
6141 (arm_find_exidx_entry, _initialize_arm_tdep)
6142
48c66e1d
TT
61432019-07-10 Tom Tromey <tromey@adacore.com>
6144
6145 * solib-spu.c (ocl_program_data_key): Change type.
6146 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6147 Update.
6148
a269fbf1
TT
61492019-07-10 Tom Tromey <tromey@adacore.com>
6150
6151 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6152 (struct solib_aix_inferior_data) <library_list>: Change type.
6153 (solib_aix_inferior_data_handle): Change type.
6154 (get_solib_aix_inferior_data): Update.
6155 (solib_aix_free_library_list): Remove.
6156 (library_list_start_library): Update.
6157 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6158 return type.
6159 (solib_aix_get_library_list)
6160 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6161 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6162
c294730c
TT
61632019-07-10 Tom Tromey <tromey@adacore.com>
6164
6165 * solib-dsbt.c (struct dsbt_info): Add initializers.
6166 (solib_dsbt_pspace_data): Change type.
6167 (dsbt_pspace_data_cleanup): Remove.
6168 (get_dsbt_info, _initialize_dsbt_solib): Update.
6169
9d52077d
TT
61702019-07-10 Tom Tromey <tromey@adacore.com>
6171
6172 * spu-tdep.c (spu_overlay_data): Change type.
6173 (spu_get_overlay_table, spu_overlay_new_objfile)
6174 (_initialize_spu_tdep): Update.
6175
22a20dca
TT
61762019-07-10 Tom Tromey <tromey@adacore.com>
6177
6178 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6179 destructor.
6180 (dbx_objfile_data_key): Change type and declare later.
6181 (DBX_SYMFILE_INFO): Rewrite.
6182 * dbxread.c (dbx_objfile_data_key): Change type.
6183 (dbx_symfile_init): Update.
6184 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6185 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6186 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6187
cb60f420
TT
61882019-07-10 Tom Tromey <tromey@adacore.com>
6189
6190 * jit.c (jit_program_space_key): Change type. Move lower.
6191 (get_jit_program_space_data): Update.
6192 (jit_program_space_data_cleanup): Remove.
6193 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6194 Update.
6195 (struct jit_program_space_data): Add initializers.
6196
51df2ae3
TT
61972019-07-10 Tom Tromey <tromey@adacore.com>
6198
6199 * solib-darwin.c (struct darwin_info): Add initializers.
6200 (solib_darwin_pspace_data): Change type.
6201 (darwin_pspace_data_cleanup): Remove.
6202 (get_darwin_info, _initialize_darwin_solib): Update.
6203
18101a35
TT
62042019-07-10 Tom Tromey <tromey@adacore.com>
6205
6206 * remote-sim.c (struct sim_inferior_data): Add initializers,
6207 constructor, and destructor.
6208 (sim_inferior_data_key): Change type. Move lower.
6209 (check_for_duplicate_sim_descriptor): Update.
6210 (get_sim_inferior_data): Use new. Update.
6211 (~sim_inferior_data_cleanup): Rename from
6212 sim_inferior_data_cleanup. Simplify.
6213 (gdbsim_close_inferior, simulator_command)
6214 (sim_command_completer, _initialize_remote_sim): Update.
6215 (next_pid, INITIAL_PID): Move earlier.
6216
05b08ac1
TT
62172019-07-10 Tom Tromey <tromey@adacore.com>
6218
6219 * python/python-internal.h (create_thread_object): Return
6220 gdbpy_ref.
6221 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6222 * python/py-inferior.c (struct threadlist_entry): Add
6223 constructor.
6224 <thread_obj>: Now a gdbpy_ref.
6225 (thread_to_thread_object): Update.
6226 (add_thread_object): Use new.
6227 (delete_thread_object): Use delete.
6228 (infpy_threads): Update.
6229 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6230 GIL.
6231
32372d80
TT
62322019-07-10 Tom Tromey <tromey@adacore.com>
6233
6234 * valops.c (value_cast): Specialize error message for Ada.
6235
5c458ae8
SM
62362019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6237
6238 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6239
4c462cb0
SM
62402019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6241
6242 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6243 bpstat_should_step): Return bool, adjust comments.
6244 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6245 bpstat_should_step): Likewise.
6246
89abbcc2
AH
62472019-07-10 Alan Hayward <alan.hayward@arm.com>
6248
6249 * features/Makefile: Use feature target descriptions for Arm.
6250 * features/arm/arm-core.c: Generate new file.
6251 * features/arm/arm-fpa.c: Likewise.
6252 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6253 * features/arm/arm-m-profile.c: Likewise.
6254 * features/arm/arm-vfpv2.c: Likewise.
6255 * features/arm/arm-vfpv3.c: Likewise.
6256 * features/arm/xscale-iwmmxt.c: Likewise.
6257 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6258
166a82be
AH
62592019-07-10 Alan Hayward <alan.hayward@arm.com>
6260
6261 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6262 ptrace earlier.
6263
9fb4c7e9
AH
62642019-07-10 Alan Hayward <alan.hayward@arm.com>
6265
6266 * features/aarch64-pauth.c: Regenerate.
6267
e2d0f980
SM
62682019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6271 bool.
6272 (bpstat_what): Use false instead of 0.
6273
a38118e5
PA
62742019-07-09 Pedro Alves <palves@redhat.com>
6275
6276 * break-catch-throw.c (is_exception_catchpoint): New.
6277 * breakpoint.c (print_one_breakpoint_location): New parameter
6278 'raw_loc'. Handle it. Use
6279 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6280 looking at the breakpoint's type.
6281 (print_one_breakpoint): If handling "maint info breakpoints", also
6282 print locations of exception catchpoints.
6283 * breakpoint.h (is_exception_catchpoint): Declare.
6284
cb1e4e32
PA
62852019-07-09 Pedro Alves <palves@redhat.com>
6286
6287 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6288 "addr" field.
6289 (allocate_location_exception_catchpoint): New.
6290 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6291 (initialize_throw_catchpoint_ops): Install
6292 allocate_location_exception_catchpoint as allocate_location
6293 method.
6294 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6295 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6296 bp_loc_other.
6297 (breakpoint_address_is_meaningful): Delete.
6298 (bl_address_is_meaningful): New.
6299 (breakpoint_locations_match): Adjust comment.
6300 (bp_location_from_bp_type): New, factored out of...
6301 (bp_location::bp_location(breakpoint *)): ... this.
6302 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6303 factored out of...
6304 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6305 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6306 breakpoint_address_is_meaningful.
6307 (bp_locations_compare): Adjust comment.
6308 (update_global_location_list): Use bl_address_is_meaningful
6309 instead of breakpoint_address_is_meaningful.
6310 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6311 explicit.
6312 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6313 * python/py-breakpoint.c (bppy_get_location): No longer check
6314 whether location is null.
6315
b58a68fe
PA
63162019-07-09 Pedro Alves <palves@redhat.com>
6317
6318 PR c++/15468
6319 * breakpoint.c (print_one_breakpoint_location): Remove
6320 single-location assert.
6321
268a13a5
TT
63222019-07-09 Tom Tromey <tom@tromey.com>
6323
6324 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6325 * configure: Rebuild.
6326 * configure.ac: Change common to gdbsupport.
6327 * gdbsupport: Rename from common.
6328 * acinclude.m4: Change common to gdbsupport.
6329 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6330 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6331 gdbsupport.
6332 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6333 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6334 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6335 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6336 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6337 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6338 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6339 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6340 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6341 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6342 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6343 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6344 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6345 coff-pe-read.c, command.h, compile/compile-c-support.c,
6346 compile/compile-c.h, compile/compile-cplus-symbols.c,
6347 compile/compile-cplus-types.c, compile/compile-cplus.h,
6348 compile/compile-loc2c.c, compile/compile.c, completer.c,
6349 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6350 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6351 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6352 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6353 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6354 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6355 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6356 features/aarch64-core.c, features/aarch64-fpu.c,
6357 features/aarch64-pauth.c, features/aarch64-sve.c,
6358 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6359 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6360 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6361 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6362 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6363 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6364 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6365 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6366 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6367 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6368 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6369 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6370 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6371 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6372 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6373 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6374 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6375 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6376 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6377 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6378 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6379 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6380 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6381 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6382 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6383 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6384 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6385 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6386 minsyms.c, mips-linux-tdep.c, namespace.h,
6387 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6388 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6389 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6390 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6391 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6392 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6393 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6394 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6395 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6396 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6397 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6398 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6399 procfs.c, producer.c, progspace.h, psymtab.h,
6400 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6401 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6402 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6403 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6404 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6405 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6406 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6407 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6408 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6409 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6410 target-memory.c, target.c, target.h, target/waitstatus.c,
6411 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6412 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6413 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6414 unittests/array-view-selftests.c,
6415 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6416 unittests/common-utils-selftests.c,
6417 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6418 unittests/format_pieces-selftests.c,
6419 unittests/function-view-selftests.c,
6420 unittests/lookup_name_info-selftests.c,
6421 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6422 unittests/mkdir-recursive-selftests.c,
6423 unittests/observable-selftests.c,
6424 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6425 unittests/parse-connection-spec-selftests.c,
6426 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6427 unittests/scoped_fd-selftests.c,
6428 unittests/scoped_mmap-selftests.c,
6429 unittests/scoped_restore-selftests.c,
6430 unittests/string_view-selftests.c, unittests/style-selftests.c,
6431 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6432 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6433 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6434 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6435 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6436 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6437
5b0e2db4
AB
64382019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6439
6440 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6441 bool value.
6442 (decode_digits_ordinary): Set explicit_line field in sal.
6443 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6444 symtab_and_line that was set on an explicit line number in
6445 assembler code. Do always update the recorded symtab and line if
6446 we do skip the prologue.
6447
0ba852ab
AB
64482019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6449
6450 * breakpoint.c (set_breakpoint_location_function): Remove
6451 explicit_loc parameter.
6452 (momentary_breakpoint_from_master): Update call to
6453 set_breakpoint_location_function.
6454 (add_location_to_breakpoint): Likewise.
6455
b3a7d171
AB
64562019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6459 required features based on default bfd type when no specific bfd
6460 is present.
6461
1f6f6e21
PW
64622019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6463
6464 * NEWS: Mention that GDB printf and eval commands can now print
6465 C-style and Ada-style convenience var strings without
6466 calling the inferior.
6467 * printcmd.c (printf_c_string): Locally print GDB internal var
6468 instead of transiting via the inferior.
6469 (printf_wide_c_string): Likewise.
6470
64712019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6472
5862c886 6473 PR breakpoints/25011
ea142fbf
AH
6474 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6475
0598af48
TT
64762019-07-04 Tom Tromey <tom@tromey.com>
6477
6478 PR tui/24724:
6479 * tui/tui-winsource.c (tui_clear_source_content): Update.
6480 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6481 (tui_update_breakpoint_info): Update.
6482 (tui_set_exec_info_content): Update.
6483 * tui/tui-source.c (tui_set_source_content_nil): Update.
6484 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6485 has_break.
6486 * tui/tui-data.h (enum tui_bp_flag): New.
6487 (tui_bp_flags): New enum flags type.
6488 (struct tui_source_element) <break_mode>: Change type. Rename
6489 from has_break.
6490 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6491 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6492 constants.
6493 * tui/tui-winsource.h: Fix comment.
6494
350fab54
AH
64952019-07-04 Alan Hayward <alan.hayward@arm.com>
6496
6497 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6498 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6499 (store_fpregs_to_thread)
6500 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6501 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6502 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6503 (IWMMXT_REGS_SIZE): Add define.
6504 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6505 (fetch_vfp_regs, store_vfp_regs)
6506 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6507 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6508
f0452268
AH
65092019-07-04 Alan Hayward <alan.hayward@arm.com>
6510
6511 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6512 defines.
6513 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6514 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6515 (ARM_INT_REGISTER_SIZE): ...to this.
6516 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6517 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6518 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6519 (arm_linux_collect_gregset, supply_nwfpe_register)
6520 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6521 defines.
6522 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6523 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6524 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6525 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6526 (arm_return_in_memory, arm_store_return_value)
6527 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6528 (arm_record_ld_st_multiple): Likewise.
6529 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6530 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6531
e935475c
AH
65322019-07-04 Alan Hayward <alan.hayward@arm.com>
6533
6534 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6535 AARCH64_DISPLACED_MODIFIED_INSNS.
6536 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6537 (aarch64_displaced_step_copy_insn): Likewise.
6538 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6539 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6540 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6541 ARM_DISPLACED_MODIFIED_INSNS.
6542 * arm-tdep.c (arm_gdbarch_init): Likewise.
6543 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6544 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6545 (struct arm_displaced_step_closure): Use
6546 ARM_DISPLACED_MODIFIED_INSNS.
6547
df0bb381
AH
65482019-07-04 Alan Hayward <alan.hayward@arm.com>
6549
6550 * features/Makefile: Remove unused xml files.
6551 * features/aarch64.xml: Remove.
6552 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6553 * features/i386/amd64-avx-avx512.xml: Remove.
6554 * features/i386/amd64-avx-linux.xml: Remove.
6555 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6556 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6557 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6558 * features/i386/amd64-avx-mpx.xml: Remove.
6559 * features/i386/amd64-avx.xml: Remove.
6560 * features/i386/amd64-linux.xml: Remove.
6561 * features/i386/amd64-mpx-linux.xml: Remove.
6562 * features/i386/amd64-mpx.xml: Remove.
6563 * features/i386/amd64.xml: Remove.
6564 * features/i386/i386-avx-avx512-linux.xml: Remove.
6565 * features/i386/i386-avx-avx512.xml: Remove.
6566 * features/i386/i386-avx-linux.xml: Remove.
6567 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6568 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6569 * features/i386/i386-avx-mpx-linux.xml: Remove.
6570 * features/i386/i386-avx-mpx.xml: Remove.
6571 * features/i386/i386-avx.xml: Remove.
6572 * features/i386/i386-linux.xml: Remove.
6573 * features/i386/i386-mmx-linux.xml: Remove.
6574 * features/i386/i386-mmx.xml: Remove.
6575 * features/i386/i386-mpx-linux.xml: Remove.
6576 * features/i386/i386-mpx.xml: Remove.
6577 * features/i386/i386.xml: Remove.
6578 * features/i386/x32-avx-avx512-linux.xml: Remove.
6579 * features/i386/x32-avx-linux.xml: Remove.
6580 * features/i386/x32-linux.xml: Remove.
6581
edd6266a
AH
65822019-07-04 Alan Hayward <alan.hayward@arm.com>
6583
6584 * regformats/aarch64.dat: Remove.
6585 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6586 * regformats/i386/amd64-avx-linux.dat: Remove.
6587 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6588 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6589 * regformats/i386/amd64-linux.dat: Remove.
6590 * regformats/i386/amd64-mpx-linux.dat: Remove.
6591 * regformats/i386/amd64.dat: Remove.
6592 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6593 * regformats/i386/i386-avx-linux.dat: Remove.
6594 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6595 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6596 * regformats/i386/i386-linux.dat: Remove.
6597 * regformats/i386/i386-mmx-linux.dat: Remove.
6598 * regformats/i386/i386-mpx-linux.dat: Remove.
6599 * regformats/i386/i386.dat: Remove.
6600 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6601 * regformats/i386/x32-avx-linux.dat: Remove.
6602 * regformats/i386/x32-linux.dat: Remove.
6603
2b40fda7
AH
66042019-07-04 Alan Hayward <alan.hayward@arm.com>
6605
6606 * aarch64-tdep.c: Remove xml self tests.
6607 * amd64-linux-tdep.c: Likewise.
6608 * amd64-tdep.c: Likewise.
6609 * i386-linux-tdep.c: Likewise.
6610 * i386-tdep.c: Likewise.
6611
5f4ba3e7
PA
66122019-07-03 Pedro Alves <palves@redhat.com>
6613
6614 PR cli/24732
6615 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6616 (pipe_cmd_option_defs): New.
6617 (make_pipe_cmd_options_def_group): New.
6618 (pipe_command): Use gdb::option::process_options.
6619 (pipe_command_completer): New function.
6620 (_initialize_cli_cmds): Install completer for "pipe" command.
6621
3d9be6f5
PA
66222019-07-03 Pedro Alves <palves@redhat.com>
6623
6624 * cli/cli-option.c (union option_value) <string>: New field.
6625 (struct option_def_and_value): Add ctor, move ctor, dtor and
6626 use DISABLE_COPY_AND_ASSIGN.
6627 (option_def_and_value::clear_value): New.
6628 (parse_option, save_option_value_in_ctx, get_val_type_str)
6629 (add_setshow_cmds_for_options): Handle var_string.
6630 * cli-option.h (union option_def::var_address) <string>: New
6631 field.
6632 (struct string_option_def): New.
6633 * maint-test-options.c (struct test_options_opts): Add default
6634 ctor and use DISABLE_COPY_AND_ASSIGN.
6635 <string_opt>: New field.
6636 (test_options_opts::~test_options_opts): New.
6637 (test_options_opts::dump): Also dump "-string".
6638 (test_options_option_defs): Install "string.
6639
41fc454c
PA
66402019-07-03 Pedro Alves <palves@redhat.com>
6641
6642 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6643 option_value with a null enumeration.
6644 (complete_options): Save the option values in the context.
6645 (save_option_value_in_ctx): New, factored out from ...
6646 (process_options): ... here.
6647 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6648 of the function.
6649 * maint-test-options.c (test_options_opts::dump): New, factored
6650 out from ...
6651 (maintenance_test_options_command_mode): ... here.
6652 (maintenance_test_options_command_completion_result): Delete.
6653 (maintenance_test_options_command_completion_text): Update
6654 comment.
6655 (maintenance_show_test_options_completion_result): Change
6656 prototype. Just print
6657 maintenance_test_options_command_completion_text.
6658 (save_completion_result): New.
6659 (maintenance_test_options_completer_mode): Pass options context to
6660 complete_options, and then save a dump.
6661 (_initialize_maint_test_options): Use add_cmd to install "maint
6662 show test-options-completion-result".
6663
fdbc9870
PA
66642019-07-03 Pedro Alves <palves@redhat.com>
6665
6666 * NEWS (New commands): Mention "with" and "maint with".
6667 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6668 (with_command, with_command_completer): New.
6669 (pipe_command): Adjust to new repeat_previous
6670 interface.
6671 (_initialize_cli_cmds): Install the "with" command and its "w"
6672 alias.
6673 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6674 declarations.
6675 * cli/cli-setshow.c (parse_cli_var_uinteger)
6676 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6677 argument strings for all var_types.
6678 (get_setshow_command_value_string): New, factored out from ...
6679 (do_show_command): ... this.
6680 * cli/cli-setshow.h: Include <string>.
6681 (get_setshow_command_value_string): Declare.
6682 * command.h (repeat_previous): Now returns const char *. Adjust
6683 comment.
6684 * maint.c: Include "cli/cli-cmds.h".
6685 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6686 (_initialize_maint_cmds): Register the "maintenance with" command.
6687 * top.c (repeat_previous): Move bits from pipe_command here:
6688 Return the saved command line, if any; error out if there's no
6689 command to relaunch.
6690
c6ac8931
PA
66912019-07-03 Pedro Alves <palves@redhat.com>
6692
6693 * NEWS (New commands): Mention "maint set/show test-settings"
6694 instead of "maint test-settings".
6695 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6696 (maintenance_test_settings_set_list): Rename to ...
6697 (maintenance_set_test_settings_list): ... this.
6698 (maintenance_test_settings_show_list): Rename to ...
6699 (maintenance_show_test_settings_list): ... this.
6700 (maintenance_test_settings_cmd): Delete.
6701 (maintenance_test_settings_set_cmd): ...
6702 (maintenance_set_test_settings_cmd): ... this.
6703 (maintenance_test_settings_show_cmd): ...
6704 (maintenance_show_test_settings_cmd): ... this.
6705 (maintenance_test_settings_show_value_cmd):
6706 (maintenance_show_test_settings_value_cmd): ... this.
6707 (_initialize_maint_test_settings): No longer install the "maint
6708 test-settings" prefix command. Rename "maint test-settings set"
6709 to "maint set test-settings", and "maint test-settings show" to
6710 "maint show test-settings". Adjust all subcommands.
6711
d1fcf2fd
PA
67122019-07-03 Pedro Alves <palves@redhat.com>
6713
6714 * maint-test-settings.c: Fix file's intro comment. Replace all
6715 references to "test-options" with references to "test-settings",
6716 in comments.
6717
970f9d09
PA
67182019-07-03 Pedro Alves <palves@redhat.com>
6719
6720 * maint-test-settings.c (maintenance_test_settings_xxx)
6721 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6722 New.
6723 (maintenance_test_settings_enums): Use them.
6724 (maintenance_test_settings_enum): Default to
6725 maintenance_test_settings_xxx.
6726 (_initialize_maint_test_settings): Initialize
6727 MAINTENANCE_TEST_SETTINGS_FILENAME.
6728
f3869b1a
SM
67292019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6730
6731 * breakpoint.h (remove_breakpoints_inf): Change return type to
6732 void, move function documentation here.
6733 * breakpoint.c (remove_breakpoints_inf): Change return type to
6734 void, move function documentation to header.
6735
54d66006
PA
67362019-07-02 Pedro Alves <palves@redhat.com>
6737
6738 * NEWS (Completion improvements): Mention "info threads".
6739 * thread.c (struct info_threads_opts, info_threads_option_defs)
6740 (make_info_threads_options_def_group): New.
6741 (info_threads_command): Use gdb::option::process_options.
6742 (info_threads_command_completer): New.
6743 (_initialize_thread): Use gdb::option::build_help to build the
6744 help text for "info threads".
6745
854f6088
SM
67462019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6747
6748 * defs.h (generic_load): Move from here...
6749 * symfile.h (generic_load): ... to here. Rename name parameter
6750 to args.
6751 * symfile.c (generic_load): Add comment.
6752
54ee4252
TT
67532019-07-01 Tom Tromey <tromey@adacore.com>
6754
6755 * dwarf2read.c
6756 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6757 declaration of without_params. Fix formatting.
6758
65392b3e
TT
67592019-07-01 Tom Tromey <tromey@adacore.com>
6760
6761 * ada-exp.y (find_primitive_type): Update.
6762 * ada-lang.h (ada_lookup_symbol): Update.
6763 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6764 parameter.
6765 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6766
7d7571f0
SDJ
67672019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6768
6769 PR breakpoints/24541
6770 * gdbarch.c: Regenerate.
6771 * gdbarch.h: Regenerate.
6772 * gdbarch.sh: Add 'stap_adjust_register'.
6773 * i386-tdep.c: Include '<unordered_set>'.
6774 (i386_stap_adjust_register): New function.
6775 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6776 * stap-probe.c (stap_parse_register_operand): Call
6777 'gdbarch_stap_adjust_register'.
6778
5af5392a
SDJ
67792019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6780
6781 PR python/24742
6782 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6783 * python/python.c (do_start_initialization): Use 'xmalloc'
6784 instead of 'PyMem_Malloc'.
6785
10d06d82
TT
67862019-06-28 Tom Tromey <tromey@adacore.com>
6787
6788 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6789 for Ada.
6790
1b7f24cd
TT
67912019-06-27 Tom Tromey <tromey@adacore.com>
6792
6793 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6794 objfile_key.
6795 (arm_find_mapping_symbol, arm_record_special_symbol)
6796 (_initialize_arm_tdep): Update.
6797 (arm_objfile_data_free): Remove.
6798
3d507ff2
TT
67992019-06-27 Tom Tromey <tromey@adacore.com>
6800
6801 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6802 to cp_print_static_field.
6803
762c164d
TT
68042019-06-26 Tom Tromey <tromey@adacore.com>
6805
6806 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6807 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6808 declare.
6809
aa2f9bcf
AH
68102019-06-26 Alan Hayward <alan.hayward@arm.com>
6811
6812 * features/aarch64-core.c (create_feature_aarch64_core):
6813 Regenerate.
6814 * features/aarch64-core.xml: Add cpsr flags.
6815
3426ae57
AH
68162019-06-26 Alan Hayward <alan.hayward@arm.com>
6817
6818 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6819 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6820
4838e44c
SM
68212019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6822
6823 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6824 field.
6825 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6826 use.
6827 (arm_record_special_symbol): Don't insert new symbol in sorted
6828 position, push it at the end.
6829
54cc7474
SM
68302019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6831
6832 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6833 (arm_mapping_symbol_s): Remove.
6834 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6835 (arm_mapping_symbol_vec): New typedef.
6836 (struct arm_per_objfile): Add constructor.
6837 <section_maps>: Change type to
6838 std::unique_ptr<arm_mapping_symbol_vec[]>.
6839 (arm_compare_mapping_symbols): Remove.
6840 (arm_find_mapping_symbol): Adjust to section_maps type change.
6841 (arm_objfile_data_free): Call delete on arm_per_objfile.
6842 (arm_record_special_symbol): Adjust to section_maps type change.
6843 Allocate arm_per_objfile with new.
6844
b65b566c
PW
68452019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6846
6847 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6848 with the command prefix.
6849
c2fc64f5
TT
68502019-06-25 Tom Tromey <tom@tromey.com>
6851
6852 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6853 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6854
fb54fa76
TT
68552019-06-25 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6858 type.
6859 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6860 protected.
6861
f7952c57
TT
68622019-06-25 Tom Tromey <tom@tromey.com>
6863
6864 * tui/tui-winsource.c
6865 (tui_source_window_base::set_is_exec_point_at): Add check against
6866 LOA_ADDRESS.
6867
17568d78
TT
68682019-06-25 Tom Tromey <tom@tromey.com>
6869
6870 * tui/tui-source.c (tui_set_source_content): Don't check before
6871 xfree.
6872 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6873
53e7cdba
TT
68742019-06-25 Tom Tromey <tom@tromey.com>
6875
6876 * tui/tui-winsource.h (tui_update_source_window_as_is)
6877 (tui_alloc_source_buffer, tui_line_is_displayed)
6878 (tui_addr_is_displayed): Change type of win_info.
6879 * tui/tui-winsource.c (tui_update_source_window_as_is)
6880 (tui_clear_source_content, tui_show_source_line)
6881 (tui_show_source_content, tui_source_window_base::refill)
6882 (tui_source_window_base::set_is_exec_point_at)
6883 (tui_source_window_base::set_is_exec_point_at)
6884 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6885 (tui_alloc_source_buffer, tui_line_is_displayed)
6886 (tui_addr_is_displayed): Change type of win_info. Update.
6887 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6888 (tui_source_window_base::do_make_visible_with_new_height):
6889 Update.
6890 * tui/tui-source.c (tui_set_source_content)
6891 (tui_set_source_content_nil)
6892 (tui_source_window::do_scroll_vertical): Update.
6893 * tui/tui-layout.c (show_layout): Update.
6894 * tui/tui-disasm.c (tui_set_disassem_content)
6895 (tui_disasm_window::do_scroll_vertical): Update.
6896 * tui/tui-data.h (tui_win_content): Remove.
6897 (struct tui_gen_win_info) <content, content_size>: Remove.
6898 (struct tui_source_element): Add initializers and destructor.
6899 (union tui_which_element, struct tui_win_element): Remove.
6900 (struct tui_source_window_base) <content>: New field.
6901 (struct tui_data_window): Remove destructor.
6902 (tui_alloc_content, tui_free_win_content)
6903 (tui_free_all_source_wins_content): Don't declare.
6904 * tui/tui-data.c (tui_initialize_static_data): Update.
6905 (init_content_element, tui_alloc_content): Remove.
6906 (~tui_gen_win_info): Update.
6907 (~tui_data_window, tui_free_all_source_wins_content)
6908 (tui_free_win_content, free_content, free_content_elements):
6909 Remove.
6910
7908abbf
TT
69112019-06-25 Tom Tromey <tom@tromey.com>
6912
6913 * tui/tui-winsource.h (tui_clear_source_content)
6914 (tui_erase_source_content, tui_show_source_content): Change type
6915 of win_info.
6916 * tui/tui-winsource.c (tui_clear_source_content)
6917 (tui_erase_source_content, tui_show_source_content): Change type
6918 of win_info.
6919 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6920 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6921 win_info.
6922 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6923 win_info.
6924 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6925
02c28df0
TT
69262019-06-25 Tom Tromey <tom@tromey.com>
6927
6928 * tui/tui-winsource.c (tui_clear_source_content)
6929 (tui_source_window_base::set_is_exec_point_at): Update.
6930 * tui/tui-source.c (tui_set_source_content_nil): Update.
6931 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6932 a bool.
6933 * tui/tui-data.c (init_content_element): Update.
6934
6658b1bf
TT
69352019-06-25 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6938 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6939 * tui/tui-layout.c (init_and_make_win): Update.
6940 * tui/tui.h (enum tui_win_type): Update.
6941 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6942 tui_win_is_auxillary.
6943 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6944 tui_win_is_auxillary.
6945
21e1c91e
TT
69462019-06-25 Tom Tromey <tom@tromey.com>
6947
6948 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6949 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6950 (tui_delete_data_content_windows, tui_display_all_data)
6951 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6952 Update.
6953 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6954 * tui/tui-regs.c (tui_last_regs_line_no)
6955 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6956 (tui_show_registers): Update.
6957 (tui_show_register_group): Return void. Update.
6958 (tui_display_registers_from, tui_display_reg_element_at_line)
6959 (tui_display_registers_from_line, tui_check_register_values):
6960 Update.
6961 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6962 member.
6963 (struct tui_data_window) <regs_content>: Now a std::vector.
6964 <regs_content_count>: Remove.
6965 (tui_add_content_elements, tui_free_data_content): Don't declare.
6966 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6967 (init_content_element): Remove DATA_WIN case. Add assert.
6968 (tui_add_content_elements): Remove.
6969 (tui_data_window): Update.
6970 (tui_free_data_content): Remove.
6971 (free_content_elements): Remove DATA_WIN case.
6972
115ac53b
TT
69732019-06-25 Tom Tromey <tom@tromey.com>
6974
6975 * tui/tui-data.c (tui_data_item_window): Update.
6976 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6977 * tui/tui-windata.c (tui_display_all_data)
6978 (tui_display_data_from_line): Update.
6979 (tui_check_data_values): Remove.
6980 * tui/tui-regs.c (tui_show_register_group)
6981 (tui_display_reg_element_at_line): Update.
6982 * tui/tui-hooks.c (tui_register_changed)
6983 (tui_refresh_frame_and_register_information): Call
6984 tui_check_register_values.
6985 * tui/tui-data.h (struct tui_data_window) <data_content,
6986 data_content_count, data_type>: Remove.
6987 (enum tui_data_type): Remove.
6988
6989 * tui/tui-data.c (tui_data_window::clear_detail)
6990 (~tui_data_window): Update.
6991
eaf9738b
TT
69922019-06-25 Tom Tromey <tom@tromey.com>
6993
6994 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6995 declare.
6996 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6997 Rename from tui_first_data_item_displayed. Update.
6998 (tui_data_window::refresh_all)
6999 (tui_data_window::do_scroll_vertical): Update.
7000 * tui/tui-data.h (struct tui_data_window)
7001 <first_data_item_displayed>: Declare new method.
7002
31ca4723
TT
70032019-06-25 Tom Tromey <tom@tromey.com>
7004
7005 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7006 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7007 contents...
7008 (tui_initialize_static_data): ...here.
7009
41bcff7f
TT
70102019-06-25 Tom Tromey <tom@tromey.com>
7011
7012 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7013 (tui_display_registers_from, tui_check_register_values): Update.
7014 (tui_display_register): Remove win_info parameter; update.
7015 (tui_get_register): Change type of parameters.
7016 * tui/tui-data.h (struct tui_data_element): Remove.
7017 (union tui_which_element) <data>: Remove.
7018 <data_window>: Change type.
7019 (struct tui_data_item_window): New.
7020 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7021 case. Add assert.
7022 (~tui_data_item_window): New destructor.
7023 (free_content_elements): Remove DATA_ITEM_WIN case.
7024
d2802c33
TT
70252019-06-25 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7028 Remove.
7029
dd835f8b
TT
70302019-06-25 Tom Tromey <tom@tromey.com>
7031
7032 * tui/tui-data.h (struct tui_command_element): Remove.
7033 (union tui_which_element) <command>: Remove.
7034 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7035 assert.
7036 (free_content_elements): Remove CMD_WIN case.
7037
bd7db367
TT
70382019-06-25 Tom Tromey <tom@tromey.com>
7039
7040 * tui/tui-layout.c (tui_set_layout): Update.
7041 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7042 * tui/tui-data.c (layout_def): Update.
7043
3add462f
TT
70442019-06-25 Tom Tromey <tom@tromey.com>
7045
7046 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7047 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7048 (tui_source_window_base::set_new_height): Update.
7049 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7050 Update.
7051 (tui_set_locator_fullname, tui_set_locator_info)
7052 (tui_show_frame_info): Update.
7053 * tui/tui-source.c (tui_set_source_content)
7054 (tui_source_is_displayed): Update.
7055 * tui/tui-layout.c (show_source_disasm_command, show_data)
7056 (show_source_or_disasm_and_command): Update.
7057 * tui/tui-disasm.c (tui_set_disassem_content)
7058 (tui_get_begin_asm_address): Update.
7059 * tui/tui-data.h (struct tui_locator_element): Remove.
7060 (union tui_which_element) <locator>: Remove.
7061 (struct tui_locator_window): New.
7062 (tui_locator_win_info_ptr): Change return type.
7063 * tui/tui-data.c (_locator): Change type.
7064 (tui_locator_win_info_ptr): Change return type.
7065 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7066 (tui_alloc_content): Add assert.
7067
489e9d8b
TT
70682019-06-25 Tom Tromey <tom@tromey.com>
7069
7070 * tui/tui-winsource.c
7071 (tui_exec_info_window::maybe_allocate_content): New method.
7072 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7073 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7074 (make_source_or_disasm_window): Add cast.
7075 * tui/tui-data.h (union tui_which_element) <simple_string>:
7076 Remove.
7077 (struct tui_source_info): New.
7078 (struct tui_source_window_base) <execution_info>: Change type.
7079 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7080 case, and add assert.
7081 (tui_alloc_content): Add assert.
7082
c3fabb7d
TT
70832019-06-25 Tom Tromey <tom@tromey.com>
7084
7085 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7086 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7087 * tui/tui-data.c (tui_alloc_win_info): Remove.
7088
bbc228ee
TT
70892019-06-25 Tom Tromey <tom@tromey.com>
7090
7091 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7092 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7093 can_highlight.
7094
5fcee43a
TT
70952019-06-25 Tom Tromey <tom@tromey.com>
7096
7097 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7098 make_visible_with_new_height method.
7099 (tui_win_info::make_visible_with_new_height): New method.
7100 (tui_source_window_base::do_make_visible_with_new_height)
7101 (tui_data_window::do_make_visible_with_new_height)
7102 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7103 (make_visible_with_new_height): Remove.
7104 (tui_resize_all, tui_adjust_win_heights): Use
7105 make_visible_with_new_height method.
7106 * tui/tui-data.h (struct tui_win_info)
7107 <do_make_visible_with_new_height, make_visible_with_new_height>:
7108 New methods.
7109 (struct tui_source_window_base, struct tui_data_window)
7110 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7111 methods.
7112
d83f1fe6
TT
71132019-06-25 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7116 method.
7117 (update_tab_width): Call update_tab_width method.
7118 * tui/tui-data.h (struct tui_win_info)
7119 (struct tui_source_window_base) <update_tab_width>: New methods.
7120
17374de4
TT
71212019-06-25 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7124 parameter.
7125 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7126 parameter.
7127 (tui_gen_win_info::make_visible): Update.
7128 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7129 parameter.
7130 * tui/tui-data.h (enum tui_box): New enum.
7131 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7132
f936bca2
TT
71332019-06-25 Tom Tromey <tom@tromey.com>
7134
7135 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7136 init_and_make_win for EXEC_INFO_WIN.
7137 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7138 longer inline.
7139 (struct tui_win_info) <~tui_win_info>: Inline.
7140 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7141 Don't declare.
7142 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7143 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7144 Remove.
7145 (tui_initialize_static_data): Update.
7146 (~tui_gen_win_info): Handle more cleanup here.
7147 (~tui_source_window_base): Delete "execution_info".
7148 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7149
d6ba6a11
TT
71502019-06-25 Tom Tromey <tom@tromey.com>
7151
7152 * tui/tui-layout.c (make_command_window): Don't set
7153 can_highlight.
7154 (show_source_disasm_command): Call the reset method.
7155 (show_data): Don't set can_highlight. Call the reset method.
7156 (tui_gen_win_info::reset): Rename from init_gen_win_info
7157 (init_and_make_win): Simplify. Return tui_gen_win_info.
7158 (show_source_or_disasm_and_command): Call the reset method.
7159 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7160 (struct tui_cmd_window): Set can_highlight.
7161
48a3bd16
TT
71622019-06-25 Tom Tromey <tom@tromey.com>
7163
7164 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7165 from make_visible.
7166 (tui_make_visible, tui_make_invisible): Rewrite.
7167 (tui_win_info::make_visible): Remove.
7168 (tui_source_window_base::make_visible): Update.
7169 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7170 method. Moved from...
7171 (struct tui_win_info) <make_visible>: ...here.
7172
c3bd716f
TT
71732019-06-25 Tom Tromey <tom@tromey.com>
7174
7175 * tui/tui-winsource.c
7176 (tui_source_window_base::do_scroll_horizontal): Remove direction
7177 parameter.
7178 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7179 direction parameter.
7180 * tui/tui-win.c (tui_win_info::forward_scroll)
7181 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7182 (tui_win_info::right_scroll): Update.
7183 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7184 direction parameter.
7185 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7186 direction parameter.
7187 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7188 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7189 Remove direction parameter.
7190 (struct tui_source_window_base, struct tui_source_window)
7191 (struct tui_disasm_window, struct tui_data_window)
7192 (struct tui_cmd_window): Update.
7193
21c32dca
TT
71942019-06-25 Tom Tromey <tom@tromey.com>
7195
7196 * tui/tui-winsource.h (tui_set_exec_info_content)
7197 (tui_show_exec_info_content, tui_erase_exec_info_content)
7198 (tui_clear_exec_info_content, tui_update_exec_info): Change
7199 argument to tui_source_window_base.
7200 * tui/tui-winsource.c (tui_set_exec_info_content)
7201 (tui_show_exec_info_content, tui_erase_exec_info_content)
7202 (tui_clear_exec_info_content, tui_update_exec_info): Change
7203 argument to tui_source_window_base.
7204
73fbdc65
TT
72052019-06-25 Tom Tromey <tom@tromey.com>
7206
7207 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7208 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7209
33325343
TT
72102019-06-25 Tom Tromey <tom@tromey.com>
7211
7212 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7213 check.
7214
29d2c474
TT
72152019-06-25 Tom Tromey <tom@tromey.com>
7216
7217 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7218 type to void.
7219 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7220 type to void.
7221 * tui/tui-source.c (tui_set_source_content): Update.
7222 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7223
152f3f4b
TT
72242019-06-25 Tom Tromey <tom@tromey.com>
7225
7226 * tui/tui-win.c (window_name_completer, tui_set_focus)
7227 (tui_all_windows_info): Use name method.
7228 * tui/tui-data.h (struct tui_gen_win_info)
7229 (struct tui_source_window, struct tui_disasm_window)
7230 (struct tui_data_window, struct tui_cmd_window) <name>: New
7231 method.
7232 (tui_win_name): Don't declare.
7233 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7234 (tui_win_name): Remove.
7235
be4da588
TT
72362019-06-25 Tom Tromey <tom@tromey.com>
7237
7238 * tui/tui-winsource.h (tui_update_source_window)
7239 (tui_update_source_window_as_is): Change parameter type.
7240 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7241 to be a tui_source_window_base.
7242 (tui_update_source_window_as_is): Likewise.
7243 * tui/tui-win.c (make_visible_with_new_height): Update.
7244
5b81daba
TT
72452019-06-25 Tom Tromey <tom@tromey.com>
7246
7247 * tui/tui-winsource.c (tui_erase_source_content)
7248 (tui_show_source_content, tui_show_exec_info_content)
7249 (tui_erase_exec_info_content): Use refresh_window method.
7250 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7251 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7252 from tui_refresh_win.
7253 (tui_data_window::refresh_window): New method.
7254 (tui_win_info::refresh, tui_source_window_base::refresh)
7255 (tui_refresh_all): Use refresh_window method.
7256 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7257 method.
7258 * tui/tui-regs.c (tui_display_register): Call refresh_window
7259 method.
7260 * tui/tui-layout.c (show_source_disasm_command)
7261 (show_source_or_disasm_and_command): Call refresh_window method.
7262 * tui/tui-data.h (struct tui_gen_win_info)
7263 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7264 New method.
7265
cb2ce893
TT
72662019-06-25 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui.c (tui_rl_other_window, tui_enable)
7269 (tui_is_window_visible, tui_get_command_dimension): Update.
7270 * tui/tui-winsource.c (tui_update_source_window_as_is)
7271 (tui_clear_source_content, tui_erase_source_content)
7272 (tui_show_source_line, tui_source_window_base::refill)
7273 (tui_source_window_base::do_scroll_horizontal)
7274 (tui_source_window_base::set_is_exec_point_at)
7275 (tui_update_breakpoint_info, tui_set_exec_info_content)
7276 (tui_alloc_source_buffer, tui_line_is_displayed)
7277 (tui_addr_is_displayed): Update.
7278 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7279 (tui_check_and_display_highlight_if_needed)
7280 (tui_win_info::make_visible, tui_win_info::refresh)
7281 (tui_refresh_all): Update.
7282 * tui/tui-windata.c (tui_first_data_item_displayed)
7283 (tui_delete_data_content_windows, tui_erase_data_content)
7284 (tui_display_all_data, tui_data_window::refresh_all)
7285 (tui_check_data_values): Update.
7286 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7287 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7288 (tui_win_info::backward_scroll, tui_refresh_all_win)
7289 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7290 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7291 (tui_source_window_base::set_new_height)
7292 (tui_data_window::set_new_height)
7293 (make_invisible_and_set_new_height)
7294 (make_visible_with_new_height, new_height_ok)
7295 (parse_scrolling_args): Update.
7296 * tui/tui-stack.c (tui_show_frame_info): Update.
7297 * tui/tui-source.c (tui_set_source_content)
7298 (tui_set_source_content_nil, tui_source_is_displayed)
7299 (tui_source_window::do_scroll_vertical): Update.
7300 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7301 (tui_display_registers_from, tui_display_reg_element_at_line)
7302 (tui_check_register_values, tui_reg_command): Update.
7303 * tui/tui-layout.c (tui_default_win_height)
7304 (show_source_disasm_command, show_data, init_and_make_win)
7305 (show_source_or_disasm_and_command): Update.
7306 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7307 (tui_redisplay_readline, tui_mld_flush)
7308 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7309 (tui_getc): Update.
7310 * tui/tui-disasm.c (tui_set_disassem_content)
7311 (tui_disasm_window::do_scroll_vertical): Update.
7312 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7313 Now virtual.
7314 (struct tui_win_info): Derive from tui_gen_win_info.
7315 <~tui_win_info>: Mark as override.
7316 <generic>: Remove member.
7317 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7318 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7319 (~tui_data_window, ~tui_win_info)
7320 (tui_free_all_source_wins_content): Update.
7321 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7322
ab313b35
TT
73232019-06-25 Tom Tromey <tom@tromey.com>
7324
7325 * tui/tui-layout.c (init_and_make_win): Use new.
7326 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7327 destructor, initializers.
7328 (tui_alloc_generic_win_info): Don't declare.
7329 * tui/tui-data.c (_locator): Add argument to constructor.
7330 (source_win, disasm_win): New globals.
7331 (exec_info): Remove.
7332 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7333 Update.
7334 (tui_alloc_generic_win_info): Remove.
7335 (init_content_element): Use new.
7336 (tui_win_info::tui_win_info): Update.
7337 (free_content_elements) <case DATA_WIN>: Use delete.
7338
dc2c33e4
TT
73392019-06-25 Tom Tromey <tom@tromey.com>
7340
7341 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7342 * tui/tui-windata.c (tui_first_data_item_displayed)
7343 (tui_delete_data_content_windows): Update.
7344 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7345 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7346 (tui_display_registers_from, tui_check_register_values): Update.
7347 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7348 pointer.
7349 * tui/tui-data.c (init_content_element): Update. Allocate the new
7350 window.
7351 (tui_free_data_content): Update.
7352 (free_content_elements) <case DATA_WIN>: Free the window.
7353
214a5cbe
TT
73542019-06-25 Tom Tromey <tom@tromey.com>
7355
7356 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7357 Update.
7358 * tui/tui-layout.c (make_command_window)
7359 (show_source_disasm_command, show_data, init_and_make_win)
7360 (show_source_or_disasm_and_command): Update.
7361 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7362 method.
7363 <can_highight, is_highlighted>: Now bool.
7364 (tui_set_win_highlight): Don't declare.
7365 * tui/tui-data.c (tui_set_win_highlight): Remove.
7366
8e2daf15
TT
73672019-06-25 Tom Tromey <tom@tromey.com>
7368
7369 * tui/tui-wingeneral.c (make_visible): Remove check of window
7370 type.
7371
8903bd8a
TT
73722019-06-25 Tom Tromey <tom@tromey.com>
7373
7374 * tui/tui-win.c (tui_win_info::max_height)
7375 (tui_cmd_window::max_height): New methods.
7376 (new_height_ok): Call max_height.
7377 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7378 <max_height>: New method.
7379
3f02ce1e
TT
73802019-06-25 Tom Tromey <tom@tromey.com>
7381
7382 * tui/tui-win.c (tui_source_window_base::set_new_height)
7383 (tui_data_window::set_new_height): New methods.
7384 (make_invisible_and_set_new_height): Call set_new_height method.
7385 * tui/tui-data.h (struct tui_win_info)
7386 (struct tui_source_window_base, struct tui_data_window)
7387 <set_new_height>: New method.
7388
1825f487
TT
73892019-06-25 Tom Tromey <tom@tromey.com>
7390
7391 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7392 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7393 tui_refresh_data_win.
7394 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7395 method.
7396 (tui_refresh_all_win): Call the refresh_all method.
7397 (tui_set_focus): Likewise.
7398 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7399 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7400 Likewise.
7401
ad54d15b
TT
74022019-06-25 Tom Tromey <tom@tromey.com>
7403
7404 * tui/tui-winsource.h (tui_refill_source_window)
7405 (tui_set_is_exec_point_at): Don't declare.
7406 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7407 (tui_source_window_base::refill): Rename from
7408 tui_refill_source_window.
7409 (tui_source_window_base::do_scroll_horizontal): Update.
7410 (tui_source_window_base::set_is_exec_point_at): Rename from
7411 tui_set_is_exec_point_at.
7412 (tui_update_all_breakpoint_info): Update.
7413 * tui/tui-stack.c (tui_show_frame_info): Update.
7414 * tui/tui-layout.c (show_data): Add cast.
7415 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7416 * tui/tui-data.h (struct tui_source_window_base) <refill,
7417 set_is_exec_point_at>: New methods.
7418 (tui_source_windows, tui_add_to_source_windows): Update types.
7419 (tui_add_to_source_windows): Remove redundant declaration.
7420 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7421 (tui_source_windows): Change return type.
7422 (tui_clear_source_windows_detail): Update.
7423 (tui_add_to_source_windows): Change type of parameter.
7424 (tui_free_all_source_wins_content): Update.
7425
2042b506
TT
74262019-06-25 Tom Tromey <tom@tromey.com>
7427
7428 * tui/tui-wingeneral.c (tui_win_info::refresh)
7429 (tui_source_window_base::refresh): New methods.
7430 (tui_refresh_all): Call the refresh method.
7431 * tui/tui-data.h (struct tui_win_info)
7432 (struct tui_source_window_base) <refresh>: New method.
7433
56122977
TT
74342019-06-25 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui.h (tui_is_window_visible): Return bool.
7437 * tui/tui.c (tui_is_window_visible): Return bool.
7438 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7439 (tui_make_visible, tui_make_invisible)
7440 (tui_win_info::make_visible)
7441 (tui_source_window_base::make_visible, make_all_visible)
7442 (tui_make_all_visible, tui_make_all_invisible): Update.
7443 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7444 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7445 bool.
7446 (struct tui_win_info, struct tui_source_window_base)
7447 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7448 * tui/tui-data.c (tui_init_generic_part): Update.
7449
cda37efb
TT
74502019-06-25 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7453 (tui_source_window_base::make_visible): New methods.
7454 (make_all_visible): Make method call.
7455 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7456 (struct tui_source_window_base, struct tui_cmd_window): Override
7457 make_visible.
7458 (tui_win_is_source_type): Don't declare.
7459 * tui/tui-data.c (tui_win_is_source_type): Remove.
7460
6a0ee02c
TT
74612019-06-25 Tom Tromey <tom@tromey.com>
7462
7463 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7464 NULL check.
7465
63901aec
TT
74662019-06-25 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7469 Inline constructor. Add initializers for members.
7470 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7471 constructors; now inline in class.
7472
ceb13a13
TT
74732019-06-25 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui-regs.c (tui_show_registers): Update.
7476 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7477 bool.
7478 * tui/tui-data.c (tui_data_window::clear_detail)
7479 (tui_data_window): Update.
7480
238eb706
TT
74812019-06-25 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui-windata.c (tui_display_all_data)
7484 (tui_display_data_from_line, tui_display_data_from)
7485 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7486 Update.
7487 * tui/tui-regs.c (tui_last_regs_line_no)
7488 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7489 (tui_show_registers, tui_show_register_group)
7490 (tui_display_registers_from, tui_display_reg_element_at_line)
7491 (tui_display_registers_from_line, tui_check_register_values)
7492 (tui_reg_next, tui_reg_prev): Update.
7493 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7494 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7495 tui_data_window.
7496 (struct tui_win_info) <detail>: Remove. Add new fields from
7497 tui_data_info.
7498 (TUI_DATA_WIN): Add cast.
7499 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7500 (~tui_data_window): Simplify.
7501
81491aa0
TT
75022019-06-25 Tom Tromey <tom@tromey.com>
7503
7504 * tui/tui-layout.c (show_source_disasm_command)
7505 (show_source_or_disasm_and_command): Update.
7506 * tui/tui-io.c (update_cmdwin_start_line)
7507 (tui_redisplay_readline): Update.
7508 * tui/tui-data.h (struct tui_command_info): Remove.
7509 (struct tui_win_info) <detail>: Remove command_info member.
7510 (struct tui_data_window) <start_line>: New member, from
7511 tui_command_info.
7512 (TUI_CMD_WIN): Add casts.
7513
e6e41501
TT
75142019-06-25 Tom Tromey <tom@tromey.com>
7515
7516 * tui/tui-winsource.c (tui_update_source_window)
7517 (tui_refill_source_window)
7518 (tui_source_window_base::do_scroll_horizontal)
7519 (tui_update_breakpoint_info, tui_set_exec_info_content)
7520 (tui_show_exec_info_content, tui_erase_exec_info_content)
7521 (tui_clear_exec_info_content): Update.
7522 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7523 Update.
7524 * tui/tui-win.c (make_invisible_and_set_new_height)
7525 (make_visible_with_new_height): Update.
7526 * tui/tui-source.c (tui_set_source_content)
7527 (tui_show_symtab_source): Update.
7528 * tui/tui-layout.c (extract_display_start_addr)
7529 (show_source_disasm_command, show_data)
7530 (make_source_or_disasm_window)
7531 (show_source_or_disasm_and_command): Update.
7532 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7533 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7534 "gdbarch".
7535 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7536 to tui_source_window_base.
7537 (struct tui_win_info) <detail>: Remove source_info member.
7538 (struct tui_source_window_base) <has_locator>: Inline.
7539 Move contents from tui_source_info; rename has_locator member to
7540 m_has_locator.
7541 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7542 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7543 header file.
7544 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7545 Simplify.
7546 (tui_free_all_source_wins_content): Cast to
7547 tui_source_window_base.
7548
44f0e208
TT
75492019-06-25 Tom Tromey <tom@tromey.com>
7550
7551 * tui/tui-win.c (make_invisible_and_set_new_height)
7552 (make_visible_with_new_height): Call has_locator method.
7553 * tui/tui-layout.c (show_source_disasm_command, show_data)
7554 (show_source_or_disasm_and_command): Update for bool change.
7555 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7556 (tui_win_info) <has_locator>: New method.
7557 (struct tui_source_window_base) <has_locator>: New method.
7558 (tui_win_has_locator): Don't declare.
7559 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7560 from tui_win_has_locator.
7561 (tui_source_window_base): Use false, not FALSE.
7562
7778b912
TT
75632019-06-25 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7566 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7567 clear_detail method directly.
7568 (tui_clear_win_detail): Remove.
7569
f83d391c
TT
75702019-06-25 Tom Tromey <tom@tromey.com>
7571
7572 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7573 "this", not TUI_DISASM_WIN.
7574
13446e05
TT
75752019-06-25 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7578 declare.
7579 * tui/tui-winsource.c
7580 (tui_source_window_base::do_scroll_horizontal): Rename from
7581 tui_horizontal_source_scroll.
7582 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7583 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7584 from tui_vertical_data_scroll.
7585 * tui/tui-win.h (tui_scroll): Don't declare.
7586 * tui/tui-win.c (tui_win_info::forward_scroll)
7587 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7588 (tui_win_info::right_scroll): Rename and update.
7589 (tui_scroll_forward_command, tui_scroll_backward_command)
7590 (tui_scroll_left_command, tui_scroll_right_command): Update.
7591 (tui_scroll): Remove.
7592 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7593 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7594 from tui_vertical_source_scroll.
7595 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7596 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7597 from tui_vertical_disassem_scroll.
7598 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7599 do_scroll_horizontal>: New methods.
7600 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7601 Likewise.
7602 (struct tui_source_window_base): Add do_scroll_horizontal.
7603 (struct tui_source_window, struct tui_disasm_window): Add
7604 do_scroll_vertical.
7605 (struct tui_data_window, struct tui_cmd_window): Add
7606 do_scroll_horizontal and do_scroll_vertical.
7607 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7608
5cf82909
TT
76092019-06-25 Tom Tromey <tom@tromey.com>
7610
7611 * tui/tui-data.h (struct tui_source_window_base): New struct.
7612 (struct tui_source_window): Derive from tui_source_window_base.
7613 (struct tui_disasm_window): New struct.
7614 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7615 from tui_source_window::clear_detail.
7616 (tui_source_window_base): Rename from tui_source_window.
7617 (~tui_source_window_base): Rename from ~tui_source_window.
7618 (tui_alloc_win_info): Create a tui_disasm_window.
7619
ee1d42d6
TT
76202019-06-25 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui-data.h (struct tui_source_window)
7623 (struct tui_data_window): Declare destructors.
7624 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7625 destructors.
7626 (tui_win_info): Simplify.
7627
b4eb2452
TT
76282019-06-25 Tom Tromey <tom@tromey.com>
7629
7630 * tui/tui-winsource.c (tui_display_main)
7631 (tui_update_source_windows_with_addr)
7632 (tui_update_all_breakpoint_info): Update.
7633 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7634 (new_height_ok, parse_scrolling_args): Update.
7635 * tui/tui-stack.c (tui_show_frame_info): Update.
7636 * tui/tui-data.h (struct tui_list): Remove.
7637 (tui_source_windows): Return a reference to a std::vector.
7638 * tui/tui-data.c (source_windows): Now a std::vector.
7639 (tui_source_windows): Change return type.
7640 (tui_clear_source_windows): Rewrite.
7641 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7642 (tui_free_all_source_wins_content): Rewrite.
7643
8761a91b
TT
76442019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7647 (struct tui_data_window, struct tui_cmd_window): Declare
7648 clear_detail method.
7649 * tui/tui-data.c (tui_source_window::clear_detail)
7650 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7651 methods.
7652 (tui_clear_win_detail): Simplify.
7653
0ed69eda
TT
76542019-06-25 Tom Tromey <tom@tromey.com>
7655
7656 * tui/tui-layout.c (make_source_window, make_disasm_window)
7657 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7658 Return the new window.
7659 (show_source_disasm_command, show_data)
7660 (show_source_or_disasm_and_command): Update.
7661
82432e10
TT
76622019-06-25 Tom Tromey <tom@tromey.com>
7663
7664 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7665 parameter. Return the new window.
7666 (show_source_disasm_command): Update and remove NULL check.
7667 (show_source_or_disasm_and_command): Update.
7668
ec328aa5
TT
76692019-06-25 Tom Tromey <tom@tromey.com>
7670
7671 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7672
33b906ab
TT
76732019-06-25 Tom Tromey <tom@tromey.com>
7674
7675 * tui/tui-data.h (struct tui_win_info): Make constructor
7676 protected. Make destructor virtual. Add initializers.
7677 (tui_source_window, tui_data_window, tui_cmd_window): New
7678 classes.
7679 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7680 constructor. Add "type" parameter.
7681 (tui_source_window, tui_data_window, tui_cmd_window): New
7682 constructors.
7683 (tui_alloc_win_info): Instantiate the appropriate subclass.
7684
e7e11af4
TT
76852019-06-25 Tom Tromey <tom@tromey.com>
7686
7687 * tui/tui-win.c (tui_resize_all): Use delete.
7688 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7689 destructor.
7690 (tui_free_window): Don't declare.
7691 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7692 Update.
7693
6792b55e
TT
76942019-06-25 Tom Tromey <tom@tromey.com>
7695
7696 * tui/tui-data.h (struct tui_win_info): Add constructor.
7697 * tui/tui-data.c (tui_alloc_win_info): Use new.
7698 (tui_free_window): Use delete.
7699
f95675e1
TT
77002019-06-22 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7703 declare.
7704 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7705
5bff081c
TT
77062019-06-22 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7709 declare.
7710 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7711
47e3f474
TV
77122019-06-22 Tom de Vries <tdevries@suse.de>
7713
7714 * dwarf2read.c (create_addrmap_from_aranges)
7715 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7716 instead of '%zu'.
7717
fd5866f6
SM
77182019-06-21 Simon Marchi <simon.marchi@efficios.com>
7719
7720 * dwarf2read.h (dwarf2_section_info_def): Remove.
7721 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7722 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7723 std::vector<dwarf2_section_info>.
7724 (struct dwo_file) <~dwo_file>: Remove.
7725 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7726 types field.
7727 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7728 (dwarf2_read_debug_names): Likewise.
7729 (create_debug_types_hash_table): Change parameter type to
7730 array_view, adjust code accordingly.
7731 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7732 (partial_die_info::fixup): Likewise.
7733 (determine_prefix): Likewise.
7734 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7735
fb1eb2f9
SM
77362019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7737
7738 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7739 gdb_bfd_ref_ptr.
7740 <~dwo_file>: Remove call to gdb_bfd_unref.
7741 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7742 gdb_bfd_ref_ptr::get.
7743
51ac9db5
SM
77442019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7745
7746 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7747 type to htab_up.
7748 * dwarf2read.c (struct dwo_file): Initialize fields.
7749 <~dwo_file>: New.
7750 (free_dwo_file): Remove, move content to ~dwo_file.
7751 (struct dwo_file_deleter): Remove.
7752 (dwo_file_up>: Remove custom deleter.
7753 (free_dwo_files): Remove.
7754 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7755 dwo_files.
7756 (process_skeletonless_type_units): Call unique_ptr::get.
7757 (allocate_dwo_file_hash_table): Add deleter to created hash
7758 table. Change return type to htab_up.
7759 (lookup_dwo_file_slot): Don't memset dwo_file, call
7760 unique_ptr::get.
7761 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7762 (create_dwo_unit_in_dwp_v2): Likewise.
7763 (open_and_init_dwo_file): Likewise.
7764 (free_dwo_file_from_slot): Remove.
7765
dc4ccb6f
SM
77662019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7767
7768 * dwarf2read.h (struct dwarf2_section_info) <readin,
7769 is_virtual>: Change type to bool.
7770 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7771 true instead of 1.
7772
e6a1c5cb
TT
77732019-06-19 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-data.h (tui_init_content_element): Don't declare.
7776
6f6ffbeb
TT
77772019-06-19 Tom Tromey <tom@tromey.com>
7778
7779 * tui/tui-data.h (tui_init_win_info): Don't declare.
7780
f23f598e
TV
77812019-06-19 Tom de Vries <tdevries@suse.de>
7782
7783 * dwarf2read.h (abstract_to_concrete): Change type to
7784 std::unordered_map<sect_offset, std::vector<sect_offset>,
7785 gdb::hash_enum<sect_offset>>.
7786
680e1bee
TT
77872019-06-19 Tom Tromey <tromey@adacore.com>
7788
7789 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7790 EVAL_AVOID_SIDE_EFFECTS specially.
7791
dcf37923
TT
77922019-06-19 Tom Tromey <tromey@adacore.com>
7793
7794 * source-cache.c (highlighter): New global.
7795 (source_cache::get_source_lines): Create a highlighter on demand.
7796
494986d5
AB
77972019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * defs.h (deprecated_interactive_hook): Delete declaration.
7800 * interps.c (clear_interpreter_hooks): Remove use of
7801 deprecated_interactive_hook.
7802 * top.c (deprecated_interactive_hook): Delete definition.
7803 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7804
3360b6e7
TV
78052019-06-18 Tom de Vries <tdevries@suse.de>
7806
7807 PR gdb/24515
7808 * dwarf2read.h (abstract_to_concrete): Change type from
7809 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7810 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7811 * dwarf2read.c (read_variable): Update.
7812 (dwarf2_fetch_die_loc_sect_off): Update.
7813
310b3441
TV
78142019-06-17 Tom de Vries <tdevries@suse.de>
7815
7816 PR gdb/24617
7817 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7818 accessing parent[parent_len - 1].
7819
ba9777be
PP
78202019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7821
7822 PR gdb/24364
7823 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7824 call dtrace_process_dof with NULL dof.
7825
2b9f6e89
TV
78262019-06-16 Tom de Vries <tdevries@suse.de>
7827
7828 PR gdb/24445
7829 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7830
431b3ead
TT
78312019-06-16 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7834 (make_all_visible): Use address of member.
7835
d04b44a1
TT
78362019-06-16 Tom Tromey <tom@tromey.com>
7837
7838 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7839 (tui_free_window, free_content, free_content_elements): Remove
7840 unnecessary cast.
7841 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7842 cast.
7843 * tui/tui-regs.c (tui_show_register_group)
7844 (tui_display_registers_from, tui_display_reg_element_at_line):
7845 Remove unnecessary cast.
7846
bf5142e7
AB
78472019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7848
7849 * linux-nat.c (normal_mask): Delete.
7850 (_initialize_linux_nat): Don't initialise normal_mask.
7851
c4973306
SM
78522019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7853
7854 PR gdb/24445
7855 * dwarf-index-write.h (write_psymtabs_to_index): Add
7856 dwz_basename parameter.
7857 * dwarf-index-write.c (write_gdbindex): Move file writing to
7858 write_gdbindex_1. Change return type void.
7859 (assert_file_size): Move up, remove filename parameter.
7860 (write_gdbindex_1): New function.
7861 (write_debug_names): Change return type to void, call
7862 assert_file_size.
7863 (struct index_wip_file): New struct.
7864 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7865 file logic to index_wip_file. Write index for dwz file if
7866 needed.
7867 (save_gdb_index_command): Pass basename of dwz file, if present.
7868 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7869 build-id of dwz file, if present.
7870 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7871 (dwarf2_get_dwz_file): Likewise.
7872 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7873 (dwarf2_get_dwz_file): Likewise.
7874
395f9c91
TT
78752019-06-16 Tom Tromey <tom@tromey.com>
7876
7877 * coffread.c (process_coff_symbol): Use xstrdup.
7878 * value.c (create_internalvar): Use xstrdup.
7879
cafb3438
TT
78802019-06-16 Tom Tromey <tom@tromey.com>
7881
7882 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7883 * breakpoint.c (stopin_command, stopat_command)
7884 (until_break_command, decode_location_default): Remove unnecessary
7885 cast.
7886 * utils.c (subset_compare): Remove unnecessary cast.
7887 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7888 cast.
7889 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7890 cast.
7891 * infcmd.c (path_command): Remove unnecessary cast.
7892 * coffread.c (decode_type): Remove unnecessary cast.
7893 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7894 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7895 * tui/tui-stack.c (tui_show_locator_content)
7896 (tui_show_frame_info): Remove unnecessary cast.
7897 * tui/tui-win.c (tui_scroll_forward_command)
7898 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7899 (parse_scrolling_args): Remove unnecessary cast.
7900 * tui/tui-data.c (init_win_info, tui_del_window)
7901 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7902 (free_content_elements): Remove unnecessary cast.
7903 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7904 unnecessary cast.
7905 * tui/tui-source.c (tui_set_source_content)
7906 (tui_vertical_source_scroll): Remove unnecessary cast.
7907 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7908 cast.
7909 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7910 * tui/tui-regs.c (tui_display_registers_from)
7911 (tui_display_register): Remove unnecessary cast.
7912 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7913 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7914 (make_visible): Remove unnecessary cast.
7915 * tui/tui-winsource.c (tui_erase_source_content)
7916 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7917 unnecessary cast.
7918 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7919 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7920 * stabsread.c (read_type, read_array_type, read_range_type):
7921 Remove unnecessary cast.
7922 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7923 (parse_symbol, parse_type, upgrade_type, parse_external)
7924 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7925 unnecessary cast.
7926 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7927
730ead81
TT
79282019-06-16 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui-data.c (tui_alloc_generic_win_info)
7931 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7932 checks.
7933
584a927c
AB
79342019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7935 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * f-typeprint.c (f_print_type): Don't return early for not
7938 associated or not allocated types.
7939 (f_type_print_varspec_suffix): Add print_rank parameter and print
7940 ranks of array types in case they dangling.
7941 (f_type_print_base): Add print_rank parameter.
7942
30056ea0
AB
79432019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * NEWS: Mention new MI commands.
7946 * break-catch-throw.c (enum exception_event_kind): Move to
7947 breakpoint.h.
7948 (print_mention_exception_catchpoint): Output text as a single
7949 message.
7950 (catch_exception_command_1): Rename to...
7951 (catch_exception_event): ...this, make non-static, update header
7952 command, and change some parameter types.
7953 (catch_catch_command): Update for changes to
7954 catch_exception_command_1.
7955 (catch_throw_command): Likewise.
7956 (catch_rethrow_command): Likewise.
7957 * breakpoint.c (enum exception_event_kind): Delete.
7958 * breakpoint.h (enum exception_event_kind): Moved here from
7959 break-catch-throw.c.
7960 (catch_exception_event): Declare.
7961 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7962 (mi_cmd_catch_throw): New function.
7963 (mi_cmd_catch_rethrow): New function.
7964 (mi_cmd_catch_catch): New function.
7965 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7966 'catch-catch' entries.
7967 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7968 (mi_cmd_catch_rethrow): Declare.
7969 (mi_cmd_catch_catch): Declare.
7970
ec8e2b6d
AB
79712019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * annotate.c (annotate_source_line): Change return type to void,
7974 update implementation to match.
7975 * annotate.h (annotate_source_line): Change return type to void,
7976 update header comment.
7977 * stack.c (print_frame_info): Don't change what frame information
7978 is printed based on whether annotations are on or not.
7979
0d3abd8c
AB
79802019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7981
7982 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7983 (annotate_source): Make static.
7984 (annotate_source_line): Moved from source.c and renamed from
7985 identify_source_line. Update the return type.
7986 * annotate.h (annotate_source): Delete declaration.
7987 (annotate_source_line): Declaration moved from source.h, and
7988 renamed from identify_source_line. Return type updated.
7989 * source.c (identify_source_line): Moved to annotate.c and renamed
7990 to annotate_source_line.
7991 (info_line_command): Remove check of annotation_level.
7992 * source.h (identify_source_line): Move declaration to annotate.h
7993 and rename to annotate_source_line.
7994 * stack.c: Add 'annotate.h' include.
7995 (print_frame_info): Remove check of annotation_level before
7996 calling annotate_source_line.
7997
00df30ae
AB
79982019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * source-cache.c (source_cache::get_plain_source_lines): Use
8001 open_source_file_with_line_charpos instead of just
8002 open_source_file, remove call to find_source_lines.
8003 (source_cache::get_source_lines): Likewise.
8004 * source.c (find_source_lines): Make static.
8005 (get_filename_and_charpos): Renamed into...
8006 (open_source_file_with_line_charpos): ..this along with changes to
8007 return a scoped_fd, and some other minor clean ups.
8008 (identify_source_line): Use open_source_file_with_line_charpos.
8009 (search_command_helper): Use open_source_file_with_line_charpos
8010 instead of just open_source_file, remove call to
8011 find_source_lines.
8012 * source.h (open_source_file_with_line_charpos): Declare new
8013 function.
8014 (find_source_lines): Delete declaration.
8015
afda45a2
AB
80162019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8017
8018 * source.c (get_filename_and_charpos): Remove fullname
8019 parameter.
8020 (identify_source_line): Update call to get_filename_and_charpos.
8021
0735b091
TT
80222019-06-14 Tom Tromey <tromey@adacore.com>
8023
8024 PR gdb/24502:
8025 * ui-style.h (skip_ansi_escape): Update comment.
8026 * ui-file.h (class no_terminal_escape_file): New class.
8027 * ui-file.c (no_terminal_escape_file::write)
8028 (no_terminal_escape_file::puts): New methods.
8029 * cli/cli-logging.c (handle_redirections): Use
8030 no_terminal_escape_file.
8031
52ce35e2
TT
80322019-06-14 Tom Tromey <tromey@adacore.com>
8033
8034 * NEWS: Move convenience variable news above Python news.
8035
73cc7272
TT
80362019-06-14 Tom Tromey <tom@tromey.com>
8037
8038 * gnulib: Move directory to top-level.
8039 * configure.ac: Don't configure gnulib.
8040 * configure: Rebuild.
8041 * common/common-defs.h: Use new path to gnulib.
8042 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8043 (GNULIB_H): Remove.
8044 (INCGNU): Look in new gnulib location.
8045 (HFILES_NO_SRCDIR): Remove gnulib files.
8046 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8047 (generated_files): Remove GNULIB_H.
8048 ($(LIBGNU), all-lib): Remove targets.
8049 (distclean): Don't mention GNULIB_BUILDDIR.
8050 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8051
f5686554
TT
80522019-06-14 Tom Tromey <tromey@adacore.com>
8053
8054 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8055 Warn if symbol file does not provide any symbols.
8056
a0c1ffed
TT
80572019-06-14 Tom Tromey <tromey@adacore.com>
8058
8059 * source.c (find_and_open_source): Respect basenames_may_differ.
8060
7c39e397
AB
80612019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8062
8063 * annotate.c (annotate_breakpoints_invalid): Make use of
8064 scoped_restore_terminal_state.
8065 (annotate_frames_invalid): Likewise.
8066
f411722c
TT
80672019-06-14 Tom Tromey <tromey@adacore.com>
8068
8069 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8070 allow assignment to an internalvar.
8071
4268ec18
TT
80722019-06-14 Tom Tromey <tromey@adacore.com>
8073
8074 * ada-lex.l: Allow "_" in attribute names.
8075
abdb711e
TT
80762019-06-14 Tom Tromey <tromey@adacore.com>
8077
8078 PR gdb/24653:
8079 * regcache.c (registers_changed): Don't call alloca.
8080 * top.c (execute_command): Don't call alloca.
8081
4c048731
PA
80822019-06-13 Pedro Alves <palves@redhat.com>
8083
8084 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8085 'expression'. When parsing an expression, error out if there's
8086 junk after "unlimited".
8087 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8088 (do_set_command): Adjust calls to is_unlimited_literal.
8089
66eb1ed3
PA
80902019-06-13 Pedro Alves <palves@redhat.com>
8091
8092 * compile/compile.c (make_compile_options_def_group): Add braces
8093 around array_view initializer.
8094 * thread.c (make_thread_apply_all_options_def_group)
8095 (make_thread_apply_all_options_def_group): Likewise.
8096
3345721a
PA
80972019-06-13 Pedro Alves <palves@redhat.com>
8098
8099 * NEWS (New commands): Mention "maint test-options
8100 require-delimiter", "maint test-options unknown-is-error", "maint
8101 test-options unknown-is-operand" and "maint show
8102 test-options-completion-result".
8103 (New command options, command completion): New section.
8104 (Completion improvements): New section.
8105 Mention that you can abbreviate "unlimited".
8106
6206060d
PA
81072019-06-13 Pedro Alves <palves@redhat.com>
8108
8109 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8110 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8111 * unittests/cli-utils-selftests.c (test_parse_flags)
8112 (test_parse_flags_qcs): Delete.
8113 (test_cli_utils): Don't call deleted functions.
8114
6665660a
PA
81152019-06-13 Pedro Alves <palves@redhat.com>
8116
8117 * thread.c: Include "cli/cli-option.h".
8118 (tp_array_compar_ascending): Global.
8119 (tp_array_compar): Delete function.
8120 (tp_array_compar_ascending, tp_array_compar_descending): New
8121 functions.
8122 (ascending_option_def, qcs_flag_option_def)
8123 (thr_qcs_flags_option_defs)
8124 (make_thread_apply_all_options_def_group)
8125 (make_thread_apply_options_def_group): New.
8126 (thread_apply_all_command): Use gdb::option::process_options.
8127 (thread_apply_command_completer)
8128 (thread_apply_all_command_completer): New.
8129 (thread_apply_command): Use gdb::option::process_options.
8130 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8131 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8132 to generate help text of "thread apply". Adjust "taas"'s help.
8133 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8134 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8135
f7e13587
PA
81362019-06-13 Pedro Alves <palves@redhat.com>
8137
8138 * thread.c (thread_apply_command): Check for invalid TID with
8139 isdigit instead of !isalpha.
8140
5d707134
PA
81412019-06-13 Pedro Alves <palves@redhat.com>
8142
8143 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8144 (validate_flags_qcs): New.
8145 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8146 (validate_flags_qcs): Declare.
8147 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8148 (make_frame_apply_options_def_group): New.
8149 (frame_apply_command_count): Process options with
8150 gdb::option::process_options.
8151 (frame_apply_completer): New.
8152 (frame_apply_level_completer, frame_apply_all_completer)
8153 (frame_apply_completer): New.
8154 (_initialize_stack): Update help of "frame apply", "frame apply
8155 level", "frame apply all" and "faas" to mention supported options
8156 and install command completers.
8157 * stack.h (frame_apply_all_completer): Declare.
8158 * thread.c: Include "stack.h".
8159 (tfaas_command): Add "--".
8160 (_initialize_thread): Update help "tfaas" to mention supported
8161 options and install command completer.
8162
272d4594
PA
81632019-06-13 Pedro Alves <palves@redhat.com>
8164
8165 * completer.c (complete_nested_command_line): New.
8166 (gdb_completion_word_break_characters_throw): Add assertion.
8167 * completer.h (complete_nested_command_line): Declare.
8168
90a1ef87
PA
81692019-06-13 Pedro Alves <palves@redhat.com>
8170
8171 * stack.c (parse_backtrace_qualifiers): New.
8172 (backtrace_command): Use it.
8173 (backtrace_command_completer): Complete on qualifiers.
8174
d4c16835
PA
81752019-06-13 Pedro Alves <palves@redhat.com>
8176
8177 * frame.c: Include "cli/cli-option.h.
8178 (user_set_backtrace_options): New.
8179 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8180 Delete.
8181 (get_prev_frame): Adjust.
8182 (boolean_option_def, uinteger_option_def)
8183 (set_backtrace_option_defs): New.
8184 (_initialize_frame): Adjust and use
8185 gdb::option::add_setshow_cmds_for_options to install "set
8186 backtrace past-main" and "set backtrace past-entry".
8187 * frame.h: Include "cli/cli-option.h".
8188 (struct frame_print_options): Forward declare.
8189 (print_frame_arguments_all, print_frame_arguments_scalars)
8190 (print_frame_arguments_none): Declare.
8191 (print_entry_values): Delete declaration.
8192 (struct frame_print_options, user_frame_print_options): New.
8193 (struct set_backtrace_options): New.
8194 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8195 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8196 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8197 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8198 (list_args_or_locals): Add frame_print_options parameter.
8199 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8200 * python/py-framefilter.c (enumerate_args): Pass down
8201 USER_FRAME_PRINT_OPTIONS.
8202 * stack.c: Include "cli/cli-option.h".
8203 (print_frame_arguments_all, print_frame_arguments_scalars)
8204 (print_frame_arguments_none): Declare.
8205 (print_raw_frame_arguments, print_entry_values): Delete.
8206 (user_frame_print_options): New.
8207 (boolean_option_def, enum_option_def, frame_print_option_defs):
8208 New.
8209 (struct backtrace_cmd_options): New.
8210 (bt_flag_option_def): New.
8211 (backtrace_command_option_defs): New.
8212 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8213 (print_frame_arg, read_frame_arg, print_frame_args)
8214 (print_frame_info, print_frame): Add frame_print_options parameter
8215 and use it.
8216 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8217 (backtrace_command_1): Add frame_print_options and
8218 backtrace_cmd_options parameters and use them.
8219 (make_backtrace_options_def_group): New.
8220 (backtrace_command): Process command options with
8221 gdb::option::process_options.
8222 (backtrace_command_completer): New.
8223 (_initialize_stack): Extend "backtrace"'s help to mention
8224 supported options. Install completer for "backtrace".
8225 Install some settings commands with add_setshow_cmds_for_options.
8226
2daf894e
PA
82272019-06-13 Pedro Alves <palves@redhat.com>
8228
8229 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8230 and that "set/show print raw frame-arguments" are now deprecated.
8231
8232 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8233 command.
8234 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8235 * stack.c (_initialize_stack): Install "set/show print
8236 raw-frame-arguments", and deprecate "set/show print raw
8237 frame-arguments".
8238 * valprint.c (_initialize_valprint): Deprecate "set/show print
8239 raw".
8240
e6ed716c
PA
82412019-06-13 Pedro Alves <palves@redhat.com>
8242
8243 * compile/compile.c (struct compile_options): New.
8244 (compile_flag_option_def, compile_command_option_defs)
8245 (make_compile_options_def_group): New.
8246 (compile_file_command): Handle options with
8247 gdb::option::process_options.
8248 (compile_file_command_completer): New function.
8249 (compile_code_command): Handle options with
8250 gdb::option::process_options.
8251 (compile_code_command_completer): New function.
8252 (_initialize_compiler): Install completers for "compile code" and
8253 "compile file". Mention available options in "compile code" and
8254 "compile code"'s help.
8255 * completer.c (advance_to_completion_word): New, factored out from
8256 ...
8257 (advance_to_expression_complete_word_point): ... this.
8258 (advance_to_filename_complete_word_point): New.
8259 * completer.h (advance_to_filename_complete_word_point): New
8260 declaration.
8261
7d8062de
PA
82622019-06-13 Pedro Alves <palves@redhat.com>
8263
8264 * compile/compile.c: Include "cli/cli-option.h".
8265 (compile_print_value): Scope data pointer is now a
8266 value_print_options pointer; adjust.
8267 (compile_print_command): Process options. Scope data pointer is
8268 now a value_print_options pointer; adjust.
8269 (_initialize_compile): Update "compile print"'s help to include
8270 supported options. Install a completer for "compile print".
8271 * cp-valprint.c (show_vtblprint, show_objectprint)
8272 (show_static_field_print): Delete.
8273 (_initialize_cp_valprint): Don't install "set print
8274 static-members", "set print vtbl", "set print object" here.
8275 * printcmd.c: Include "cli/cli-option.h" and
8276 "common/gdb_optional.h".
8277 (print_command_parse_format): Rework to fill in a
8278 value_print_options instead of a format_data.
8279 (print_value): Change parameter type from format_data pointer to
8280 value_print_options reference. Adjust.
8281 (print_command_1): Process options. Adjust to pass down a
8282 value_print_options.
8283 (print_command_completer): New.
8284 (_initialize_printcmd): Install print_command_completer as
8285 handle_brkchars completer for the "print" command. Update
8286 "print"'s help to include supported options.
8287 * valprint.c: Include "cli/cli-option.h".
8288 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8289 here from cp-valprint.c.
8290 (boolean_option_def, uinteger_option_def)
8291 (value_print_option_defs, make_value_print_options_def_group):
8292 New. Use gdb::option::add_setshow_cmds_for_options to install
8293 "set print elements", "set print null-stop", "set print repeats",
8294 "set print pretty", "set print union", "set print array", "set
8295 print address", "set print symbol", "set print array-indexes".
8296 * valprint.h: Include <string> and "cli/cli-option.h".
8297 (make_value_print_options_def_group): Declare.
8298 (print_value): Change parameter type from format_data pointer to
8299 value_print_options reference.
8300 (print_command_completer): Declare.
8301
9d0faba9
PA
83022019-06-13 Pedro Alves <palves@redhat.com>
8303
8304 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8305 (COMMON_SFILES): Add maint-test-settings.c.
8306 * cli/cli-decode.c (boolean_enums): New global, factored out from
8307 ...
8308 (add_setshow_boolean_cmd): ... here.
8309 * cli/cli-decode.h (boolean_enums): Declare.
8310 * cli/cli-option.c: New file.
8311 * cli/cli-option.h: New file.
8312 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8313 factored out from ...
8314 (parse_cli_boolean_value(const char *)): ... this.
8315 (is_unlimited_literal): Change parameter type to pointer to
8316 pointer. Adjust and advance ARG pointer.
8317 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8318 (parse_cli_var_enum): New, factored out from ...
8319 (do_set_command): ... this. Adjust.
8320 * cli/cli-setshow.h (parse_cli_boolean_value)
8321 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8322 (parse_cli_var_enum): Declare.
8323 * cli/cli-utils.c: Include "cli/cli-option.h".
8324 (get_ulongest): New.
8325 * cli/cli-utils.h (get_ulongest): Declare.
8326 (check_for_argument): New overloads.
8327 * maint-test-options.c: New file.
8328
2c722807
PA
83292019-06-13 Pedro Alves <palves@redhat.com>
8330
8331 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8332 parse a range if "-" is at the end of the string.
8333
dee7b4c8
PA
83342019-06-13 Pedro Alves <palves@redhat.com>
8335
8336 * cli/cli-setshow.c (parse_auto_binary_operation)
8337 (parse_cli_boolean_value): Don't allow "o".
8338
dca0f6c0
PA
83392019-06-13 Pedro Alves <palves@redhat.com>
8340
8341 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8342 * NEWS: Mention maint test-settings KIND.
8343 * maint-test-settings.c: New file.
8344
597bf39d
PA
83452019-06-13 Pedro Alves <palves@redhat.com>
8346
8347 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8348 completer.
8349 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8350 "set" completers.
8351
48c410fb
PA
83522019-06-13 Pedro Alves <palves@redhat.com>
8353
8354 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8355 after item.
8356
93bcb043
PA
83572019-06-13 Pedro Alves <palves@redhat.com>
8358
8359 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8360
cbba3ecd
PA
83612019-06-13 Pedro Alves <palves@redhat.com>
8362
8363 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8364 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8365 call.
8366 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8367 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8368 calls.
8369 (check_for_argument): Skip spaces after argument.
8370
b9a3f842
PA
83712019-06-13 Pedro Alves <palves@redhat.com>
8372
8373 * thread.c (thread_apply_command): Adjust TID parsing.
8374 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8375 detected before end of string.
8376 (tid_is_in_list): Error out if LIST is invalid.
8377
3844e605
PA
83782019-06-13 Pedro Alves <palves@redhat.com>
8379
8380 * completer.c (complete_line_internal_1): Rewind completion word
8381 point.
8382 (completion_tracker::advance_custom_word_point_by): Change
8383 parameter type to int.
8384 * completer.h (completion_tracker::advance_custom_word_point_by):
8385 Likewise.
8386
00b56dbe
PA
83872019-06-13 Pedro Alves <palves@redhat.com>
8388
8389 * completer.c (advance_to_completion_word): Handle delimiters.
8390
d106773e
PA
83912019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8392
8393 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8394
08f10e02
TT
83952019-06-11 Tom Tromey <tom@tromey.com>
8396
8397 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8398 (xmalloc_failed): Move to alloc.c.
8399 * alloc.c: New file.
8400 * Makefile.in (COMMON_SFILES): Add alloc.c.
8401
1c7fe951
TT
84022019-06-11 Tom Tromey <tom@tromey.com>
8403
8404 * nat/linux-waitpid.c: Don't include server.h.
8405 (linux_debug): Remove.
8406 (my_waitpid): Update.
8407
89549d7f
TT
84082019-06-11 Tom Tromey <tromey@adacore.com>
8409
8410 * infcall.c (_initialize_infcall): Remove trailing newline from
8411 help.
8412 * user-regs.c (_initialize_user_regs): Remove trailing newline
8413 from help.
8414 * typeprint.c (_initialize_typeprint): Remove trailing newline
8415 from help.
8416 * reverse.c (_initialize_reverse): Remove trailing newlines from
8417 help.
8418 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8419 from help.
8420 * language.c (add_set_language_command): Remove trailing newline
8421 from help.
8422 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8423 help.
8424 * disasm.c (_initialize_disasm): Remove trailing newline from
8425 help.
8426 * top.c (init_main): Remove trailing newline from help.
8427 * interps.c (_initialize_interpreter): Remove trailing newline
8428 from help.
8429 * btrace.c (_initialize_btrace): Remove trailing newlines from
8430 help.
8431 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8432 from help.
8433 * python/python.c (_initialize_python): Remove trailing newline
8434 from help.
8435 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8436 help.
8437 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8438 from help. Reformat some text.
8439 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8440 from help.
8441 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8442 newline from help.
8443
86108c13
TT
84442019-06-11 Tom Tromey <tromey@adacore.com>
8445
8446 * darwin-nat.c (darwin_decode_exception_message)
8447 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8448
a7067863
AB
84492019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8450
8451 * valops.c (value_slice): Check for not allocated or not
8452 associated values.
8453
9ab08412
TV
84542019-06-10 Tom de Vries <tdevries@suse.de>
8455
8456 PR gdb/24618
8457 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8458 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8459 invalid.
8460
f19e22e9
TV
84612019-06-10 Tom de Vries <tdevries@suse.de>
8462
8463 PR gdb/24611
8464 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8465 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8466
e99f9db0
TV
84672019-06-10 Tom de Vries <tdevries@suse.de>
8468
8469 PR symtab/24545
8470 * symtab.c (struct demangled_name_entry): Add language field.
8471 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8472 static minimal symbol". Set and use language field.
8473
9bf7038b
TT
84742019-06-10 Tom Tromey <tromey@adacore.com>
8475
8476 * ada-lang.c (_initialize_ada_language): Update help text.
8477
422186a9
TT
84782019-06-10 Tom Tromey <tromey@adacore.com>
8479
8480 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8481 with a newline.
8482 * guile/guile.c (handle_boot_error): Don't end warning with a
8483 newline.
8484 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8485 warning with a newline.
8486 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8487 newline.
8488 (s12z_frame_cache): Likewise.
8489 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8490 a newline.
8491 * solib-svr4.c (disable_probes_interface): Don't end warning with
8492 a newline.
8493 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8494 newline.
8495 * python/python.c (do_finish_initialization): Don't end warning
8496 with a newline.
8497
25ce02ee
TT
84982019-06-10 Tom Tromey <tom@tromey.com>
8499
8500 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8501 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8502 gdbpy_enter.
8503
caa429d8
TT
85042019-06-10 Tom Tromey <tromey@adacore.com>
8505
8506 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8507 data.
8508 (elf_new_init): Don't call stabsread_new_init.
8509 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8510 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8511 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8512
81873cc8
TV
85132019-06-10 Tom de Vries <tdevries@suse.de>
8514
8515 PR symtab/16264
8516 PR symtab/24517
8517 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8518
4fa0265e
РИ
85192019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8520
8521 * source.c (find_and_open_source): Also rewrite relative file
8522 names.
8523
1a3da2cd
AB
85242019-04-26 Amos Bird <amosbird@gmail.com>
8525
8526 * annotate.c (annotate_thread_exited): Add "thread-exited"
8527 annotation.
8528
3847a7bf
TT
85292019-06-06 Tom Tromey <tromey@adacore.com>
8530
8531 * maint.h (class scoped_command_stats): Use
8532 DISABLE_COPY_AND_ASSIGN.
8533 <print_time>: New method.
8534 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8535 print_time.
8536 (scoped_command_stats::print_time): New method.
8537
312617a3
AB
85382019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8539
8540 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8541 instructions of lengths 6 or 8 bytes.
8542
b02f78f9
PA
85432019-06-04 Pedro Alves <palves@redhat.com>
8544
8545 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8546
8547 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8548 * breakpoint.c (condition_completer): Likewise.
8549 * cli/cli-dump.c (scan_expression): Likewise.
8550 * common/filestuff.c (mkdir_recursive): Likewise.
8551 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8552 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8553 (gdb_abspath): Likewise.
8554 * compile/compile-cplus-types.c
8555 (compile_cplus_instance::decl_name): Likewise.
8556 * completer.c (complete_explicit_location):
8557 (signal_completer, reg_or_group_completer_1): Likewise.
8558 * cp-support.c (cp_remove_params_if_any): Likewise.
8559 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8560 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8561 * infcmd.c (strip_bg_char): Likewise.
8562 * linespec.c (copy_token_string): Likewise.
8563 * mi/mi-main.c (output_cores): Likewise.
8564 * psymtab.c (psymtab_search_name):
8565 * symfile.c (test_set_ext_lang_command): Likewise.
8566 * target.c (target_fileio_read_stralloc): Likewise.
8567 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8568 * value.c (complete_internalvar): Likewise.
8569
e1f2e1a2
CB
85702019-06-04 Christian Biesinger <cbiesinger@google.com>
8571
8572 Add objfile property to gdb.Type.
d3238f7d
PA
8573 * NEWS: Mention Python API addition.
8574 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8575
e664d728
PW
85762019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8577
8578 * NEWS: Mention the new set|show style [title|highlight].
8579 Mention changes to "show style", "help" and "apropos".
8580
66d8c862
PW
85812019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8582
8583 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8584 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8585 instead of print_help_for_command.
8586 (print_doc_of_command): New function.
8587 (help_list): Add 'apropos -v word' suggestion.
8588 (print_help_for_command): Style the command name using title style.
8589 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8590 (_initialize_cli_cmds): Describe -v in apropos_command help.
8591
9303eb2f
PW
85922019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8593
8594 * cli/cli-style.h (cli_style_option): Add name in constructor,
8595 add m_name class member, add constructor with intensity,
8596 add name class function.
8597 (cli_style_option::add_setshow_commands): Remove name argument.
8598 (highlight_style, title_style): New styles.
8599 * cli/cli-style.c (do_show): New function that shows a style
8600 characteristic styling the style name with itself.
8601 (set_style_name): New function.
8602 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8603 Update all callers according to the changes in cli/cli-style.h.
8604 * utils.h (fputs_highlighted): New function.
8605 * utils.c (fputs_highlighted): Likewise.
8606
e2c52041
PW
86072019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8608
8609 * NEWS: Mention new pipe command and new convenience variables.
8610
947d3946
PW
86112019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8612
8613 * cli/cli-cmds.c (pipe_command): New function.
8614 (_initialize_cli_cmds): Call add_com for pipe_command.
8615 Define | as an alias for pipe.
8616 (exit_status_set_internal_vars): New function.
8617 (shell_escape): Call exit_status_set_internal_vars.
8618 cli/cli-decode.c (find_command_name_length): Recognize | as
8619 a single character command.
8620
b8fd0918
PW
86212019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8622
8623 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8624 top.c (execute_command_to_ui_file): New function, mostly a copy
8625 of execute_command_to_string.
8626 (execute_command_to_string): Implement by calling
8627 execute_command_to_ui_file.
8628
68bb5386
PW
86292019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8630
8631 * top.h (saved_command_line): Remove declaration.
8632 * top.c (previous_saved_command_line, previous_repeat_arguments):
8633 New variables.
8634 (saved_command_line): Make static, define together with other
8635 'repeat variables'.
8636 (dont_repeat): Clear repeat_arguments.
8637 (repeat_previous, get_saved_command_line, save_command_line):
8638 New functions.
8639 (gdb_init): Initialize saved_command_line
8640 and previous_saved_command_line.
8641 * main.c (captured_main_1): Remove saved_command_line initialization.
8642 * event-top.c (handle_line_of_input): Update to use
8643 the new 'repeat' related functions instead of direct access to
8644 saved_command_line.
8645 * command.h (repeat_previous, get_saved_command_line,
8646 save_command_line): New declarations.
8647 (dont_repeat): Add comment.
8648
bfcdb852
TT
86492019-05-30 Tom Tromey <tromey@adacore.com>
8650
8651 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8652 Fix comment.
8653 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8654
0ef209f2
JV
86552019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8656
8657 PR cli/24587
8658 * completer.c (complete): Initialize variable word.
8659
955b06fa
SDJ
86602019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8661
8662 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8663 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8664 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8665 'body' is NULL to the outter 'if', protecting the '!is_define'
8666 situation as well.
8667
fa9c3fa0
TT
86682019-05-29 Tom Tromey <tromey@adacore.com>
8669
8670 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8671 (dwarf_unknown): New function.
8672 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8673 (dwarf_type_encoding_name): Use dwarf_unknown.
8674
4330d61d
TT
86752019-05-29 Tom Tromey <tromey@adacore.com>
8676
8677 PR c++/20020:
8678 * cp-valprint.c (cp_print_value_fields): Call
8679 cp_print_static_field inside "try".
8680
33a6bc35
TT
86812019-05-29 Tom Tromey <tromey@adacore.com>
8682
8683 * inflow.c (struct terminal_info): Add default operator=.
8684 * configure: Rebuild.
8685 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8686 -Wdeprecated-copy-dtor, -Wredundant-move.
8687
000439d5
TT
86882019-05-29 Tom Tromey <tromey@adacore.com>
8689
8690 * NEWS: Add entry.
8691 * infcmd.c (print_return_value_1): Handle finish_print
8692 option.
8693 (show_print_finish): New function.
8694 (_initialize_infcmd): Add "set/show print finish" commands.
8695 * valprint.c (user_print_options): Initialize new member.
8696 * valprint.h (struct value_print_options) <finish_print>: New
8697 member.
8698
c0e70c62
TT
86992019-05-28 Tom Tromey <tromey@adacore.com>
8700
8701 * ada-lang.c (ada_remove_Xbn_suffix)
8702 (find_old_style_renaming_symbol)
8703 (parse_old_style_renaming): Remove.
8704 (ada_find_renaming_symbol): Don't call
8705 find_old_style_renaming_symbol.
8706 (ada_is_renaming_symbol): Rename from
8707 ada_find_renaming_symbol. Remove "block" parameter. Return
8708 bool. Now static.
8709 (ada_read_var_value): Update and simplify.
8710 * ada-exp.y (write_var_or_type): Remove old code.
8711
766f8836
AH
87122019-05-28 Alan Hayward <alan.hayward@arm.com>
8713
68255adc 8714 PR gdb/25010
766f8836
AH
8715 * event-top.c: Remove include comment.
8716 * inflow.c (class scoped_ignore_sigttou): Move from here...
8717 * inflow.h (class scoped_ignore_sigttou): ...to here.
8718 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8719 * top.c: Remove include comment.
8720
eb41253a
TT
87212019-05-27 Tom Tromey <tom@tromey.com>
8722
8723 * NEWS: Fix typo.
8724
4ca51187
TT
87252019-05-22 Tom Tromey <tromey@adacore.com>
8726
8727 * target.c (target_follow_exec): Constify parameter.
8728 * target-delegates.c: Rebuild.
8729 * remote.c (remote_target::follow_exec): Constify parameter.
8730 * infrun.c (follow_exec): Constify parameter.
8731 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8732 (target_follow_exec): Likewise.
8733
8fca4da0
AH
87342019-05-22 Alan Hayward <alan.hayward@arm.com>
8735
8736 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8737 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8738
b7060614
AH
87392019-05-22 Alan Hayward <alan.hayward@arm.com>
8740
8741 * NEWS: Add debugredirect and testsuite sections.
8742
0a5954bd
SC
87432019-05-22 Simon Cook <simon.cook@embecosm.com>
8744
8745 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8746 target descriptions using exclusively floating point register name
8747 aliases.
8748
dc42e902
AB
87492019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8750
8751 PR gdb/18644:
8752 * f-lang.c (build_fortran_types): Handle the case where
8753 gdbarch_floatformat_for_type returns a nullptr.
8754
fb7806c7
TV
87552019-05-21 Tom de Vries <tdevries@suse.de>
8756
8757 PR cli/24587
8758 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8759
34d11c68
AB
87602019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 PR gdb/18644:
8763 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8764 16-byte floats.
8765 * i386-tdep.c (i386_floatformat_for_type): Use
8766 floatformats_ia64_quad for the 16-byte floating point component
8767 within a fortran 32-byte complex number.
8768
122cf0f2
AB
87692019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8772 delete default constructor.
8773 (find_partial_die): Update to return const struct.
8774 (partial_die_parent_scope): Move variable declaration into scope
8775 of its use and change its type to auto.
8776 (guess_partial_die_structure_name): Likewise.
8777 (partial_die_info::fixup): Likewise.
8778
33d0e35a
TT
87792019-05-17 Tom Tromey <tromey@adacore.com>
8780
8781 * source.c (find_and_open_source): Remove cast.
8782
a45575b0
TT
87832019-05-17 Tom Tromey <tromey@adacore.com>
8784
8785 * annotate.c (annotate_source): Make "filename" const.
8786 * annotate.h (annotate_source): Use const.
8787
81f47ac2
AH
87882019-05-17 Alan Hayward <alan.hayward@arm.com>
8789
8790 * disasm.c (set_disassembler_options): Send errors to stderr.
8791
ca1285d1
AH
87922019-05-17 Alan Hayward <alan.hayward@arm.com>
8793
8794 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8795 (cli_interp_base::set_logging): Check debug_redirect.
8796 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8797 * cli/cli-logging.c (debug_redirect): Add static variable.
8798 (pop_output_files): Add default param.
8799 (handle_redirections): Print debug setting.
8800 (show_logging_command): Likewise.
8801 (_initialize_cli_logging): Add debugredirect command.
8802 * interps.c (current_interp_set_logging): Add debug_redirect
8803 parameter.
8804 * interps.h (set_logging): Add debug_redirect parameter.
8805 (current_interp_set_logging): Likewise.
8806 * mi/mi-common.h: Likewise.
8807 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8808
88092019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8810 Tom Tromey <tromey@adacore.com>
8811
8812 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8813 directly.
8814 * cli/cli-interp.h (make_logging_output): Remove declaration.
8815 * cli/cli-logging.c (make_logging_output): Remove function.
8816 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8817 directly.
8818 * ui-file.c (tee_file::tee_file): Remove bools.
8819 (tee_file::~tee_file): Remove deletes.
8820 * ui-file.h (tee_file): Remove bools.
8821
26648588
JV
88222019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8823
8824 * mi/mi-cmds.h (mi_cmd_complete): New function.
8825 * mi/mi-main.c (mi_cmd_complete): Likewise.
8826 * mi/mi-cmds.c: Define new MI command -complete.
8827 * NEWS: Mention new -complete command.
8828
6e035501
JV
88292019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8830
8831 * completer.h (complete): New function.
8832 * completer.c (complete): Likewise.
8833 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8834 function defined in completer.h.
8835
7d0e2ece
JV
88362019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8837
e79be6e5 8838 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8839
fb816e8b
TV
88402019-05-17 Tom de Vries <tdevries@suse.de>
8841
8842 PR gdb/24094
8843 * dwarf2read.c (struct cu_partial_die_info): New struct.
8844 (find_partial_die): Return cu_partial_die_info.
8845 (partial_die_parent_scope, guess_partial_die_structure_name)
8846 (partial_die_info::fixup): Handle new return type of find_partial_die.
8847
677052f2
SDJ
88482019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8849
a1726c38 8850 PR breakpoints/24541
677052f2
SDJ
8851 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8852 "std::string", simplifying the algorithm.
8853
f3da9116
SDJ
88542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8855
8856 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8857 (stap_static_probe_ops::get_probes): Likewise.
8858
f1bb75ab
SDJ
88592019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8860
8861 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8862 '-')" and "else if".
8863 (stap_parse_single_operand): Join checks for
8864 "gdbarch_stap_parse_special_token_p" and
8865 "gdbarch_stap_parse_special_token" in the same "if" statement.
8866 Invert check when verifying for operation on register
8867 displacement.
8868
3ca58cde
SDJ
88692019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8870
8871 * stap-probe.c (stap_get_opcode): Update comment.
8872 (stap_get_expected_argument_type): Likewise.
8873 (handle_stap_probe): Likewise.
8874
af2d9bee
SDJ
88752019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8876
8877 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8878 return type to 'bool'. Adjust comment. Use 'bool' when
8879 appropriate.
8880 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8881 * stap-probe.c (stap_parse_argument_1): Likewise.
8882 (stap_is_operator): Likewise.
8883 (stap_is_generic_prefix): Likewise.
8884 (stap_is_register_prefix): Likewise.
8885 (stap_is_register_indirection_prefix): Likewise.
8886 (stap_is_integer_prefix): Likewise.
8887 (stap_generic_check_suffix): Likewise.
8888 (stap_check_integer_suffix): Likewise.
8889 (stap_check_register_suffix): Likewise.
8890 (stap_check_register_indirection_suffix): Likewise.
8891 (stap_parse_register_operand): Likewise.
8892 (stap_parse_single_operand): Likewise.
8893 (stap_parse_argument_1): Likewise.
8894 (stap_probe::get_argument_count): Likewise.
8895 (stap_is_operator): Likewise.
8896
61c9c421
TT
88972019-05-16 Tom Tromey <tromey@adacore.com>
8898
8899 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8900 keyword to foreach.
8901
9ddc1af1
SM
89022019-05-15 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * linux-thread-db.c (try_thread_db_load_1): Change return type
8905 to bool.
8906 (try_thread_db_load): Likewise.
8907 (try_thread_db_load_from_pdir_1): Likewise.
8908 (try_thread_db_load_from_pdir): Likewise.
8909 (try_thread_db_load_from_sdir): Likewise.
8910 (try_thread_db_load_from_dir): Likewise.
8911 (thread_db_load_search): Likewise.
8912 (has_libpthread): Likewise.
8913 (thread_db_load): Likewise.
8914
7bede828
SDJ
89152019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8916
8917 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8918 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8919 NULL, and complain/return if that's the case.
8920
c5358db4
JD
89212019-05-15 John Darrington <john@darrington.wattle.id.au>
8922
8923 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8924 (advance, posn, abstract_read_memory): New functions.
8925 [struct mem_read_abstraction]: New struct.
8926 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8927
c408a94f
TT
89282019-05-14 Tom Tromey <tromey@adacore.com>
8929
8930 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8931 value is not lval_memory.
8932
e7bd7fba
TT
89332019-05-14 Tom Tromey <tromey@adacore.com>
8934
8935 * solib.c (info_sharedlibrary_command): Style the file name.
8936
a6d0f249
AH
89372019-05-14 Alan Hayward <alan.hayward@arm.com>
8938
8939 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8940 (aarch64_vnv_type): Likewise.
8941 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8942 * common/tdesc.c: Likewise.
8943 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8944 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8945 * features/aarch64-fpu.xml: Add ieee half view.
8946 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8947 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8948 * gdbtypes.h (struct builtin_type): Likewise.
8949 (struct objfile_type): Likewise.
8950
66b8bb74
SM
89512019-05-12 Paul Naert <paul.naert@polymtl.ca>
8952
8953 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8954 typo.
8955 * location.h (string_to_event_location): Likewise.
8956
21c219fd
JB
89572019-05-11 Joel Brobecker <brobecker@adacore.com>
8958
8959 GDB 8.3 released.
8960
13674803
SM
89612019-05-10 Simon Marchi <simon.marchi@efficios.com>
8962
8963 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8964 New variable declaration.
8965 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8966 New variable.
8967 (print_one_breakpoint): Use ui_out::test_flags and new global
8968 variable to compute use_fixed_output.
8969 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8970 Remove.
8971 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8972 (mi_multi_location_breakpoint_output_fixed): Remove.
8973 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8974 new variable.
8975 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8976 fix_multi_location_breakpoint_output flag if version >= 3.
8977 * ui-out.h (enum ui_out_flag)
8978 <fix_multi_location_breakpoint_output>: New enumerator.
8979
a9eac7f9
SM
89802019-05-10 Simon Marchi <simon.marchi@efficios.com>
8981
8982 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8983
71bed2db
TT
89842019-05-10 Tom Tromey <tromey@adacore.com>
8985
8986 * ada-lang.c (catch_ada_completer): New function.
8987 (_initialize_ada_language): Use it.
8988
24c54127
TT
89892019-05-10 Tom Tromey <tromey@adacore.com>
8990
8991 * thread.c (print_thread_info): Make "requested_threads" const.
8992 * gdbthread.h (print_thread_info): Make "requested_threads"
8993 const.
8994 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8995 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8996
7a102139
TT
89972019-05-08 Tom Tromey <tom@tromey.com>
8998
8999 * gdbtypes.c (objfile_type_data): Change type.
9000 (objfile_type, _initialize_gdbtypes): Update.
9001
924d79e2
TT
90022019-05-08 Tom Tromey <tom@tromey.com>
9003
9004 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9005 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9006 (_initialize_dwarf2_frame): Update.
9007
4c58e337
TT
90082019-05-08 Tom Tromey <tom@tromey.com>
9009
9010 * objc-lang.c (objc_objfile_data): Change type.
9011 (find_methods): Update.
9012 (_initialize_objc_lang): Remove.
9013
d772d2ab
TT
90142019-05-08 Tom Tromey <tom@tromey.com>
9015
9016 * stabsread.c (rs6000_builtin_type_data): Change type.
9017 (rs6000_builtin_type, _initialize_stabsread): Update.
9018
d11d83f4
TT
90192019-05-08 Tom Tromey <tom@tromey.com>
9020
9021 * mips-tdep.c (mips_pdr_data): Remove.
9022 (_initialize_mips_tdep): Update.
9023
9a73f0ad
TT
90242019-05-08 Tom Tromey <tom@tromey.com>
9025
9026 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9027 (hppa_init_objfile_priv_data, read_unwind_info)
9028 (find_unwind_entry, _initialize_hppa_tdep): Update.
9029
8127a2fa
TT
90302019-05-08 Tom Tromey <tom@tromey.com>
9031
9032 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9033 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9034 on obstack.
9035 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9036
91d3055d
TT
90372019-05-08 Tom Tromey <tom@tromey.com>
9038
9039 * mdebugread.c (basic_type_data): Change type.
9040 (basic_type, _initialize_mdebugread): Update.
9041
31930bd3
TT
90422019-05-08 Tom Tromey <tom@tromey.com>
9043
9044 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9045
bdb3ed9e
TT
90462019-05-08 Tom Tromey <tom@tromey.com>
9047
9048 * nto-tdep.c (nto_inferior_data_reg): Change type.
9049 (nto_inferior_data): Update.
9050 (nto_inferior_data_cleanup, nto_new_inferior_data)
9051 (_initialize_nto_tdep): Remove.
9052 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9053
f37b313d
TT
90542019-05-08 Tom Tromey <tom@tromey.com>
9055
9056 * ada-lang.c (struct ada_inferior_data): Add initializers.
9057 (ada_inferior_data): Change type.
9058 (ada_inferior_data_cleanup): Remove.
9059 (get_ada_inferior_data, ada_inferior_exit)
9060 (struct ada_pspace_data): Add initializers, destructor.
9061 (ada_pspace_data_handle): Change type.
9062 (get_ada_pspace_data): Update.
9063 (ada_pspace_data_cleanup): Remove.
9064
24699405
TT
90652019-05-08 Tom Tromey <tom@tromey.com>
9066
9067 * coffread.c (struct coff_symfile_info): Add initializers.
9068 (coff_objfile_data_key): Move lower. Change type.
9069 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9070 Update.
9071 (coff_free_info): Remove.
9072
d4e05d2f
TT
90732019-05-08 Tom Tromey <tom@tromey.com>
9074
9075 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9076 (fbsd_pspace_data_handle): Move lower. Change type.
9077 (get_fbsd_pspace_data): Update.
9078 (fbsd_pspace_data_cleanup): Remove.
9079 (_initialize_fbsd_tdep): Update.
9080
14ef6690
TT
90812019-05-08 Tom Tromey <tom@tromey.com>
9082
9083 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9084 (get_ada_tasks_pspace_data): Update.
9085 (ada_tasks_pspace_data_cleanup): Remove.
9086 (_initialize_tasks): Update.
9087 (ada_tasks_inferior_data_handle): Change type.
9088 (get_ada_tasks_inferior_data): Update.
9089 (ada_tasks_inferior_data_cleanup): Remove.
9090 (struct ada_tasks_pspace_data): Add initializers.
9091
814cf43a
TT
90922019-05-08 Tom Tromey <tom@tromey.com>
9093
9094 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9095 * symfile-debug.c (debug_sym_get_probes): Change type.
9096 * stap-probe.c (handle_stap_probe):
9097 (stap_static_probe_ops::get_probes): Change type.
9098 * probe.h (class static_probe_ops) <get_probes>: Change type.
9099 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9100 (parse_probes_in_pspace): Update.
9101 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9102 Update.
9103 (any_static_probe_ops::get_probes): Change type.
9104 * elfread.c (elfread_data): New typedef.
9105 (probe_key): Change type.
9106 (elf_get_probes): Likewise. Update.
9107 (probe_key_free): Remove.
9108 (_initialize_elfread): Update.
9109 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9110 Change type.
9111 (dtrace_process_dof_probe, dtrace_process_dof)
9112 (dtrace_static_probe_ops::get_probe): Change type.
9113
02dc647e
TT
91142019-05-08 Tom Tromey <tom@tromey.com>
9115
9116 * xcoffread.c (struct xcoff_symfile_info): Rename from
9117 coff_symfile_info. Add initializers.
9118 (xcoff_objfile_data_key): Move lower. Change type.
9119 (XCOFF_DATA): Rewrite.
9120 (xcoff_free_info): Remove.
9121 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9122 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9123 (xcoff_initial_scan): Update.
9124
09232438
TT
91252019-05-08 Tom Tromey <tom@tromey.com>
9126
9127 * solib-svr4.c (struct svr4_info): Add initializers and
9128 destructor.
9129 <probes_table>: Now an htab_up.
9130 (solib_svr4_pspace_data): Change type.
9131 (free_probes_table): Simplify.
9132 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9133 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9134 (probes_table_remove_objfile_probes, register_solib_event_probe)
9135 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9136 (_initialize_svr4_solib): Update.
9137
7b4a314f
TT
91382019-05-08 Tom Tromey <tom@tromey.com>
9139
9140 * remote.c (remote_pspace_data): Change type.
9141 (remote_pspace_data_cleanup): Remove.
9142 (get_remote_exec_file, set_pspace_remote_exec_file)
9143 (_initialize_remote): Update.
9144
51d3063a
TT
91452019-05-08 Tom Tromey <tom@tromey.com>
9146
9147 * breakpoint.c (breakpoint_objfile_key): Change type.
9148 (get_breakpoint_objfile_data): Update.
9149 (free_breakpoint_objfile_data): Remove.
9150 (_initialize_breakpoint): Update.
9151
89fb8848
TT
91522019-05-08 Tom Tromey <tom@tromey.com>
9153
9154 * linux-tdep.c (struct linux_info): Add initializers.
9155 (linux_inferior_data): Move. Change type.
9156 (invalidate_linux_cache_inf): Update.
9157 (linux_inferior_data_cleanup): Remove.
9158 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9159
e9b89e2d
TT
91602019-05-08 Tom Tromey <tom@tromey.com>
9161
9162 * auxv.c (auxv_inferior_data): Move. Change type.
9163 (auxv_inferior_data_cleanup): Remove.
9164 (invalidate_auxv_cache_inf): Rewrite.
9165 (get_auxv_inferior_data, _initialize_auxv): Update.
9166
8c42777c
TT
91672019-05-08 Tom Tromey <tom@tromey.com>
9168
9169 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9170 (symfile_debug_objfile_data_key): Change type.
9171 (symfile_debug_installed, debug_qf_has_symbols)
9172 (debug_qf_find_last_source_symtab)
9173 (debug_qf_forget_cached_source_info)
9174 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9175 (debug_qf_print_stats, debug_qf_dump)
9176 (debug_qf_expand_symtabs_for_function)
9177 (debug_qf_expand_all_symtabs)
9178 (debug_qf_expand_symtabs_with_fullname)
9179 (debug_qf_map_matching_symbols)
9180 (debug_qf_expand_symtabs_matching)
9181 (debug_qf_find_pc_sect_compunit_symtab)
9182 (debug_qf_map_symbol_filenames)
9183 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9184 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9185 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9186 (debug_sym_read_linetable, debug_sym_relocate): Update.
9187 (symfile_debug_free_objfile): Remove.
9188 (install_symfile_debug_logging, _initialize_symfile_debug):
9189 Update.
9190
5bfd760d
TT
91912019-05-08 Tom Tromey <tom@tromey.com>
9192
9193 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9194 allocate_on_obstack.
9195 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9196 (get_dwarf2_per_objfile): Update.
9197 (set_dwarf2_per_objfile): Remove.
9198 (dwarf2_has_info, dwarf2_get_section_info): Update.
9199 (dwarf2_free_objfile): Remove.
9200 (_initialize_dwarf2_read): Update.
9201
e85e19b4
TT
92022019-05-08 Tom Tromey <tom@tromey.com>
9203
9204 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9205 initializers.
9206 <unsupported_script_warning_printed,
9207 script_not_found_warning_printed>: Now bool.
9208 (auto_load_pspace_data): Change type.
9209 (~auto_load_pspace_info): Rename from
9210 auto_load_pspace_data_cleanup.
9211 (get_auto_load_pspace_data, init_loaded_scripts_info)
9212 (clear_section_scripts, maybe_print_unsupported_script_warning)
9213 (maybe_print_script_not_found_warning, _initialize_auto_load):
9214 Update.
9215
f6aa7436
TT
92162019-05-08 Tom Tromey <tom@tromey.com>
9217
9218 * objfiles.c (objfile_pspace_info): Add destructor and
9219 initializers.
9220 (objfiles_pspace_data): Change type.
9221 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9222 (get_objfile_pspace_data): Update.
9223 (objfiles_bfd_data): Change type.
9224 (get_objfile_bfd_data): Update.
9225 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9226
6ae614f6
TT
92272019-05-08 Tom Tromey <tom@tromey.com>
9228
9229 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9230 Change type.
9231 (get_catch_syscall_inferior_data): Update.
9232 (catch_syscall_inferior_data_cleanup): Remove.
9233 (_initialize_break_catch_syscall): Update.
9234
6509b8eb
TT
92352019-05-08 Tom Tromey <tom@tromey.com>
9236
9237 * inflow.c (struct terminal_info): Add destructor and
9238 initializers.
9239 (inflow_inferior_data): Change type.
9240 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9241 (get_inflow_inferior_data, inflow_inferior_exit)
9242 (swap_terminal_info, _initialize_inflow): Update.
9243
35632941
TT
92442019-05-08 Tom Tromey <tom@tromey.com>
9245
9246 * target-dcache.c (target_dcache_cleanup): Remove.
9247 (target_dcache_aspace_key): Change type.
9248 (target_dcache_init_p, target_dcache_invalidate)
9249 (target_dcache_get, target_dcache_get_or_init)
9250 (_initialize_target_dcache): Update.
9251 * dcache.h (struct dcache_deleter): New.
9252
3017b94d
TT
92532019-05-08 Tom Tromey <tom@tromey.com>
9254
9255 * symtab.c (struct symbol_cache): Add destructor and
9256 initializers.
9257 (symbol_cache_key): Move. Change type.
9258 (make_symbol_cache, free_symbol_cache): Remove.
9259 (get_symbol_cache): Update.
9260 (symbol_cache_cleanup): Remove.
9261 (ALL_PSPACES, symbol_cache_flush)
9262 (maintenance_print_symbol_cache)
9263 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9264 Update.
9265
a32ad8c5
TT
92662019-05-08 Tom Tromey <tom@tromey.com>
9267
9268 * symtab.c (struct main_info): Add destructor and initializers.
9269 (main_progspace_key): Move. Change type.
9270 (get_main_info): Update.
9271 (main_info_cleanup): Remove.
9272 (_initialize_symtab): Update.
9273
5f6e90a0
TT
92742019-05-08 Tom Tromey <tom@tromey.com>
9275
9276 * registry.h (DECLARE_REGISTRY): Define the _key class.
9277
1bd0c6e4
AB
92782019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9279
9280 * NEWS: Merge two 'New commands' sections.
9281
2228ef77
XR
92822019-05-08 Joel Brobecker <brobecker@adacore.com>
9283
9284 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9285 parameter and use Ada language definition instead.
9286 (ada_val_print_ptr): Remove unused language parameter.
9287 (ada_val_print_num): Remove language parameter and use Ada language
9288 definition instead.
9289 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9290 parameter.
9291 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9292 parameter and use Ada language definition instead.
9293 (ada_val_print_1): Update all ada_val_print_xxx calls.
9294 Remove language parameter.
9295 (ada_val_print): Update ada_val_print_1 call.
9296
60fcc1c3
TT
92972019-05-08 Tom Tromey <tromey@adacore.com>
9298
9299 * remote.c (remote_hw_watchpoint_limit)
9300 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9301 Now static.
9302
ed2b7c17
TT
93032019-05-08 Tom Tromey <tromey@adacore.com>
9304
9305 * maint.c (_initialize_maint_cmds): Move initialization code to
9306 remote.c.
9307 (watchdog, show_watchdog): Move to remote.c.
9308 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9309 "watchdog" static.
9310 (_initialize_remote): Move initialization code from maint.c.
9311 * defs.h (watchdog): Don't declare.
9312
b0be6c91
TT
93132019-05-08 Tom Tromey <tromey@adacore.com>
9314
9315 * tui/tui-interp.c: Include main.h.
9316 * interps.c: Include main.h.
9317 * main.h (interpreter_p): Declare.
9318 * defs.h (interpreter_p): Don't declare.
9319
587ee17b
TT
93202019-05-08 Tom Tromey <tromey@adacore.com>
9321
9322 * dwarf2loc.c: Include dwarf2read.h.
9323 * defs.h (read_unsigned_leb128): Don't declare.
9324 * dwarf2read.h (read_unsigned_leb128): Declare.
9325
ca1df239
TT
93262019-05-08 Tom Tromey <tromey@adacore.com>
9327
9328 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9329 method.
9330
99f20f08
TT
93312019-05-08 Tom Tromey <tromey@adacore.com>
9332
9333 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9334 when no wrap column is set.
9335
80e55b13
TT
93362019-05-08 Tom Tromey <tromey@adacore.com>
9337
9338 * c-lang.c (c_get_string): Handle non-C-style arrays.
9339
9d3421af
TT
93402019-05-08 Tom Tromey <tromey@adacore.com>
9341
9342 * typeprint.c (print_offset_data::update): Print the bit offset,
9343 not the number of bits remaining.
9344
844333e2
TT
93452019-05-08 Tom Tromey <tromey@adacore.com>
9346
9347 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9348 padding at end of comment.
9349
988915ee
TT
93502019-05-08 Tom Tromey <tromey@adacore.com>
9351
9352 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9353 Compare main types.
9354
26bfd823
TT
93552019-05-06 Tom Tromey <tom@tromey.com>
9356
9357 * common/scoped_mmap.c: Include common-defs.h.
9358 * common/scoped_mmap.h: Don't include config.h.
9359
89055eaa
TT
93602019-05-04 Tom Tromey <tom@tromey.com>
9361
9362 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9363 (struct aarch64_call_info): Add initializers.
9364 <si>: Now a std::vector.
9365 (pass_on_stack, aarch64_push_dummy_call): Update.
9366
5da01df5
TT
93672019-05-04 Simon Marchi <simon.marchi@efficios.com>
9368 Tom Tromey <tom@tromey.com>
9369
9370 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9371 (ppc_threads): Now a std::vector. Now static.
9372 (hwdebug_find_thread_points_by_tid)
9373 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9374 Update.
9375
fbdf05a1
TT
93762019-05-04 Tom Tromey <tom@tromey.com>
9377
9378 * arc-tdep.c (arc_tdesc_init): Return bool.
9379
06d16ec9
TT
93802019-05-04 Tom Tromey <tom@tromey.com>
9381
9382 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9383 Use gdb_assert_not_reached.
9384
9c056022
TT
93852019-05-04 Tom Tromey <tom@tromey.com>
9386
9387 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9388 "false".
9389
fa9c2a59
TT
93902019-05-04 Tom Tromey <tom@tromey.com>
9391
9392 * arc-tdep.c (arc_tdesc_init): Use bool.
9393
e2eb806a
TT
93942019-05-04 Tom Tromey <tom@tromey.com>
9395
9396 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9397
6fe87677
TT
93982019-05-04 Tom Tromey <tom@tromey.com>
9399
9400 * cli/cli-cmds.c (valid_command_p): Return bool.
9401
7f008c9e
TT
94022019-05-04 Tom Tromey <tom@tromey.com>
9403
9404 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9405 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9406
b6484282
RT
94072019-05-04 Raul Tambre <raul@tambre.ee>
9408
9409 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9410 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9411 operator for comparison.
9412
af97b416
TT
94132019-05-04 Tom Tromey <tom@tromey.com>
9414
9415 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9416 (lookup_partial_symbol, print_partial_symbols)
9417 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9418 (psymbol_compare): Update.
9419 (add_psymbol_to_bcache): Clear the entire psymbol.
9420 (maintenance_check_psymtabs): Update.
9421 * psympriv.h (struct partial_symbol): Don't derive from
9422 general_symbol_info.
9423 <obj_section, unrelocated_address, address,
9424 set_unrelocated_address>: Update.
9425 <ginfo>: New member.
9426 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9427 (debug_names::write_psymbols): Update.
9428
9d6d4be8
TV
94292019-05-04 Tom de Vries <tdevries@suse.de>
9430
9431 * contrib/cc-with-tweaks.sh: Support -n arg.
9432
66452beb
PW
94332019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9434
9435 * corelow.c (core_target::detach): Ensure frame cache and
9436 register caches are cleared.
9437 inferior.c (exit_inferior_1): Likewise.
9438
bde09ab7
TT
94392019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9440 Tom Tromey <tom@tromey.com>
9441
9442 * dictionary.c (collate_pending_symbols_by_language): Remove
9443 "struct" from foreach.
9444 * symtab.c (lookup_global_symbol_from_objfile)
9445 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9446 foreach.
9447 * ser-tcp.c (net_open): Remove "struct" from foreach.
9448 * objfiles.c (objfile_relocate, objfile_rebase)
9449 (objfile_has_symbols): Remove "struct" from foreach.
9450 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9451 from foreach.
9452 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9453 foreach.
9454 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9455 "struct" from foreach.
9456 * ada-lang.c (create_excep_cond_exprs)
9457 (ada_exception_catchpoint_cond_string): Remove "struct" from
9458 foreach.
9459
222a8d25
TT
94602019-05-03 Tom Tromey <tromey@adacore.com>
9461
9462 * ada-exp.y (convert_char_literal): Check suffix of each
9463 enumerator.
9464
fcd60b84
DP
94652019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9466
9467 PR ada/21406:
9468 * ada-exp.y (yywrap): Don't define.
9469 * ada-lex.l (%option): Add noyywrap
9470 (yywrap): Remove.
9471
5f2459c2
EZ
94722019-05-03 Eli Zaretskii <eliz@gnu.org>
9473
353ea2d1
EZ
9474 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9475 _WIN32_WINNT to the XP level, unless already defined to a higher
9476 level.
9477
9478 * unittests/parse-connection-spec-selftests.c:
9479 * ser-tcp.c:
9480 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9481 override.
9482
5f2459c2
EZ
9483 * symfile.c (find_separate_debug_file): Remove colon from the
9484 drive spec of DOS/Windows file names of the target, so that the
9485 file name produced from DEBUGDIR and the target's directory will
9486 be valid on DOS/Windows systems.
9487
80062eb9
AB
94882019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9489
9490 * rust-lang.c (val_print_struct): Handle printing structures
9491 containing strings.
9492
b8c05e85
TT
94932019-05-02 Tom Tromey <tromey@adacore.com>
9494
9495 * valarith.c (_initialize_valarith): Remove.
9496
4504bbde
TT
94972019-05-01 Tom Tromey <tromey@adacore.com>
9498
9499 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9500 bitfields.
9501
d48e62f4
TT
95022019-05-01 Tom Tromey <tromey@adacore.com>
9503
9504 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9505 for big-endian copies.
9506
15f18d14
AT
95072019-04-30 Ali Tamur <tamur@google.com>
9508 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9509 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9510 (read_3_bytes): New function.
9511
ab4ee614
JB
95122019-04-30 Joel Brobecker <brobecker@adacore.com>
9513
9514 * windows-nat.c (main_thread_id): Delete.
9515 (handle_output_debug_string): Replace main_thread_id by
9516 current_event.dwThreadId.
9517 (fake_create_process): Likewise.
9518 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9519 Do not set main_thread_id.
9520 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9521 current_event.dwThreadId.
9522 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9523
8ed5b76e
JB
95242019-04-30 Joel Brobecker <brobecker@adacore.com>
9525
9526 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9527 Use current_event.dwThreadId instead of main_thread_id.
9528
2ff0a947
TT
95292019-04-30 Tom Tromey <tromey@adacore.com>
9530
9531 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9532 (create_excep_cond_exprs): Iterate over program spaces.
9533 (ada_exception_catchpoint_cond_string): Examine all minimal
9534 symbols for exception types.
9535
a776957c
TT
95362019-04-30 Tom Tromey <tromey@adacore.com>
9537
9538 PR c++/24470:
9539 * dwarf2read.c (process_structure_scope): Handle case where type
9540 has template parameters but no symbol was created.
9541
bc68014d
AB
95422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9543 Chris January <chris.january@arm.com>
9544
9545 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9546 qualifier.
9547 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9548
f1fdc960
AB
95492019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9550
9551 * f-typeprint.c (f_print_type): Update rules for printing
9552 whitespace.
9553 (f_type_print_varspec_suffix): Likewise.
9554
bf7a4de1
AB
95552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9556 Chris January <chris.january@arm.com>
9557
9558 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9559 function arguments.
9560
bbe75b9d
AB
95612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9562
9563 * f-lang.c (build_fortran_types): Change name of void type to
9564 lower case.
9565 * f-typeprint.c (f_type_print_base): Print the name of the void
9566 type, rather than a fixed string.
9567 * f-valprint.c (f_decorations): Use lower case void string.
9568
1db455a7
AB
95692019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9570 Chris January <chris.january@arm.com>
9571
9572 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9573 types for Fortran.
9574
b6d03bb2
AB
95752019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9576 Chris January <chris.january@arm.com>
9577 David Lecomber <david.lecomber@arm.com>
9578
9579 * f-exp.y (BINOP_INTRINSIC): New token.
9580 (exp): New parser rule handling BINOP_INTRINSIC.
9581 (f77_keywords): Add new builtin procedures.
9582 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9583 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9584 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9585 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9586 (print_unop_subexp_f): New function.
9587 (print_binop_subexp_f): New function.
9588 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9589 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9590 (dump_subexp_body_f): Likewise.
9591 (operator_check_f): Likewise.
9592 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9593 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9594
83228e93
AB
95952019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9596
9597 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9598 UNOP_KIND.
9599 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9600 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9601 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9602 (operator_length_f): New fuction.
9603 (print_subexp_f): New function.
9604 (op_name_f): New function.
9605 (dump_subexp_body_f): New function.
9606 (operator_check_f): New function.
9607 (exp_descriptor_f): Replace standard expression handling functions
9608 with new functions.
9609 * gdb/fortran-operator.def: New file.
9610 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9611 * gdb/std-operator.def: Remove UNOP_KIND.
9612
6fdcd7cc
AB
96132019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9614
9615 * std-operator.def: Remove unbalanced, stray double quote
9616 character.
9617
2e62ab40
AB
96182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9619 Chris January <chris.january@arm.com>
9620 Daniel Everett <daniel.everett@arm.com>
9621 Nick Forrington <nick.forrington@arm.com>
9622 Richard Bunt <richard.bunt@arm.com>
9623
9624 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9625 of depth when printing anonymous structs or unions.
9626 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9627 Don't print either the top-level value, or the children if the
9628 max-depth is exceeded.
9629 (ppscm_print_children): When printing the key of a map, allow one
9630 extra level of depth.
9631 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9632 print either the top-level value, or the children if the max-depth
9633 is exceeded.
9634 (print_children): When printing the key of a map, allow one extra
9635 level of depth.
9636 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9637 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9638 (user_print_options): Initialise max_depth field.
9639 (val_print_scalar_or_string_type_p): New function.
9640 (val_print): Check to see if the max depth has been reached.
9641 (val_print_check_max_depth): Define new function.
9642 (show_print_max_depth): New function.
9643 (_initialize_valprint): Add 'print max-depth' option.
9644 * valprint.h (struct value_print_options) <max_depth>: New field.
9645 (val_print_check_max_depth): Declare new function.
9646 * NEWS: Document new feature.
9647
4be290b2
AB
96482019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9649
9650 * ada-lang.c (ada_language_defn): Initialise new field.
9651 * c-lang.c (c_is_string_type_p): New function.
9652 (c_language_defn): Initialise new field.
9653 (cplus_language_defn): Initialise new field.
9654 (asm_language_defn): Initialise new field.
9655 (minimal_language_defn): Initialise new field.
9656 * c-lang.h (c_is_string_type_p): Declare new function.
9657 * d-lang.c (d_language_defn): Initialise new field.
9658 * f-lang.c (f_is_string_type_p): New function.
9659 (f_language_defn): Initialise new field.
9660 * go-lang.c (go_is_string_type_p): New function.
9661 (go_language_defn): Initialise new field.
9662 * language.c (default_is_string_type_p): New function.
9663 (unknown_language_defn): Initialise new field.
9664 (auto_language_defn): Initialise new field.
9665 * language.h (struct language_defn) <la_is_string_type_p>: New
9666 member variable.
9667 (default_is_string_type_p): Declare new function.
9668 * m2-lang.c (m2_language_defn): Initialise new field.
9669 * objc-lang.c (objc_language_defn): Initialise new field.
9670 * opencl-lang.c (opencl_language_defn): Initialise new field.
9671 * p-lang.c (pascal_is_string_type_p): New function.
9672 (pascal_language_defn): Initialise new field.
9673 * rust-lang.c (rust_is_string_type_p): New function.
9674 (rust_language_defn): Initialise new field.
9675
721b08c6
AB
96762019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9677
9678 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9679 New field.
9680 * ada-lang.c (ada_language_defn): Initialise new field.
9681 * c-lang.c (c_language_defn): Likewise.
9682 (cplus_language_defn): Likewise.
9683 (asm_language_defn): Likewise.
9684 (minimal_language_defn): Likewise.
9685 * d-lang.c (d_language_defn): Likewise.
9686 * f-lang.c (f_language_defn): Likewise.
9687 * go-lang.c (go_language_defn): Likewise.
9688 * language.c (unknown_language_defn): Likewise.
9689 (auto_language_defn): Likewise.
9690 * m2-lang.c (m2_language_defn): Likewise.
9691 * objc-lang.c (objc_language_defn): Likewise.
9692 * opencl-lang.c (opencl_language_defn): Likewise.
9693 * p-lang.c (pascal_language_defn): Likewise.
9694 * rust-lang.c (rust_language_defn): Likewise.
9695
fc913e53
AB
96962019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9697
9698 * ada-lang.c (ada_is_character_type): Change return type to bool.
9699 (ada_is_string_type): Likewise.
9700 * ada-lang.h (ada_is_character_type): Update declaration
9701 (ada_is_string_type): Likewise.
9702
fa731fa0
PW
97032019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9704
9705 Support style in 'frame|thread apply'
9706
9707 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9708 * record.c (record_start, record_stop): Update callers of
9709 execute_command_to_string with false.
9710 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9711 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9712 methods.
9713 (class string_file): New constructor with term_out parameter.
9714 Override methods term_out and can_emit_style_escape. New member
9715 term_out.
9716 (class stdio_file): Override can_emit_style_escape.
9717 (class tee_file): Override term_out and can_emit_style_escape.
9718 * utils.h (can_emit_style_escape): Remove.
9719 * utils.c (can_emit_style_escape): Likewise.
9720 Update all callers of can_emit_style_escape (SOMESTREAM) to
9721 SOMESTREAM->can_emit_style_escape.
9722 * source-cache.c (source_cache::get_source_lines): Likewise.
9723 * stack.c (frame_apply_command_count): Call execute_command_to_string
9724 passing the term_out characteristic of the current gdb_stdout.
9725 * thread.c (thr_try_catch_cmd): Likewise.
9726 * top.c (execute_command_to_string): pass term_out parameter
9727 to construct the string_file for the command output.
9728 * ui-file.c (term_cli_styling): New function (most code moved
9729 from utils.c can_emit_style_escape).
9730 (string_file::string_file, string_file::can_emit_style_escape,
9731 stdio_file::can_emit_style_escape, tee_file::term_out,
9732 tee_file::can_emit_style_escape): New functions.
9733
136afab8
PW
97342019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9735
9736 * NEWS: Mention the new set|show may-call-functions.
9737 * infcall.c (may_call_functions_p): New variable.
9738 (show_may_call_functions_p): New function.
9739 (call_function_by_hand_dummy): Throws an error if not
9740 may-call-functions.
9741 (_initialize_infcall): Call add_setshow_boolean_cmd for
9742 may-call-functions.
9743
725cbb63
KS
97442019-04-25 Keith Seitz <keiths@redhat.com>
9745
9746 PR c++/24367
9747 * cp-support.c (inspect_type): Don't attempt substitutions
9748 of symbol with the same name.
9749
3d1cbb78
TT
97502019-04-25 Tom Tromey <tromey@adacore.com>
9751
9752 PR gdb/24475:
9753 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9754 static.
9755
94aeb44b
TT
97562019-04-25 Tom Tromey <tromey@adacore.com>
9757
9758 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9759 rvalue reference.
9760 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9761 (gdb_xml_parser::parse): Use std::move.
9762 * python/python-internal.h (gdbpy_convert_exception): Take a const
9763 reference.
9764 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9765 std::move.
9766 * python/py-utils.c (gdbpy_convert_exception): Take a const
9767 reference.
9768 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9769 Use std::move.
9770 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9771 Use std::move.
9772 * mi/mi-main.c (mi_print_exception): Take a const reference.
9773 * main.c (handle_command_errors): Take a const reference.
9774 * linespec.c (parse_linespec): Use std::move.
9775 * infcall.c (run_inferior_call): Use std::move.
9776 (call_function_by_hand_dummy): Use std::move.
9777 * exec.c (try_open_exec_file): Use std::move.
9778 * exceptions.h (exception_print, exception_fprintf)
9779 (exception_print_same): Update.
9780 * exceptions.c (print_exception, exception_print)
9781 (exception_fprintf, exception_print_same): Change parameters to
9782 const reference.
9783 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9784 * common/new-op.c: Use std::move.
9785 * common/common-exceptions.h (struct gdb_exception): Add move
9786 constructor.
9787 (struct gdb_exception_error, struct gdb_exception_quit, struct
9788 gdb_quit_bad_alloc): Change constructor to move constructor.
9789 (throw_exception): Change parameter to rvalue reference.
9790 * common/common-exceptions.c (throw_exception): Take rvalue
9791 reference.
9792 * cli/cli-interp.c (safe_execute_command): Use std::move.
9793 * breakpoint.c (insert_bp_location, location_to_sals): Use
9794 std::move.
9795
680d7fd5
TT
97962019-04-25 Tom Tromey <tromey@adacore.com>
9797
9798 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9799 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9800 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9801 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9802 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9803 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9804 guile/scm-value.c: Use unpack.
9805 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9806 gdbscm_gdb_exception.
9807 (gdbscm_throw_gdb_exception): Likewise.
9808 (struct gdbscm_gdb_exception): New.
9809 (unpack): New function.
9810 (gdbscm_wrap): Use unpack.
9811
c6fdd8b2
TT
98122019-04-25 Tom Tromey <tromey@adacore.com>
9813
9814 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9815 (gdb_rl_callback_handler): Use std::move.
9816 * common/common-exceptions.h (struct gdb_exception): Add move
9817 assignment operator.
9818 (throw_exception_sjlj): Change "exception" to const reference.
9819 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9820 (throw_exception_sjlj): Change "exception" to const reference.
9821
cc06b668
TT
98222019-04-25 Tom Tromey <tromey@adacore.com>
9823
9824 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9825 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9826 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9827 Update.
9828 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9829 Update.
9830 * mi/mi-interp.c (mi_interp::exec): Update.
9831 * linespec.c (parse_linespec): Update.
9832 * infcall.c (run_inferior_call): Update.
9833 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9834 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9835 (gdbscm_lookup_global_symbol): Update.
9836 * guile/scm-param.c (gdbscm_parameter_value): Update.
9837 * guile/scm-frame.c (gdbscm_frame_read_register)
9838 (gdbscm_frame_read_var): Update.
9839 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9840 * exec.c (try_open_exec_file): Update.
9841 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9842 (gdb_rl_callback_handler): Update.
9843 * common/common-exceptions.h (exception_none): Don't declare.
9844 * common/common-exceptions.c (exception_none): Don't define.
9845 (struct catcher) <exception>: Update.
9846 * cli/cli-interp.c (safe_execute_command): Update.
9847 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9848
cf532bd1
AT
98492019-04-25 Ali Tamur <tamur@google.com>
9850
9851 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9852 (read_attribute_value): Likewise.
9853 (dwarf2_read_addr_index): Update comment.
9854 (read_str_index): Add DW_FORM_strx.
9855 (dwarf2_string_attr): Likewise.
9856 (dwarf2_const_value_attr): Likewise.
9857 (dump_die_shallow): Likewise.
9858 (dwarf2_fetch_constant_bytes): Likewise.
9859 (skip_form_bytes): Likewise.
9860 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9861
82433e3e
SDJ
98622019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9863
9864 PR corefiles/11608
9865 PR corefiles/18187
9866 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9867 OFFSET. Verify if current mapping contains an ELF header.
9868 (linux_find_memory_regions_full): Adjust call to
9869 dump_mapping_p.
9870
723adb65
SL
98712019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9872 Kang Li <kanglictf@gmail.com>
9873
9874 PR gdb/21600
9875
9876 * dwarf2-frame.c (read_initial_length): Be consistent about using
9877 unsigned representation of length.
9878 (decode_frame_entry_1): Likewise. Check for wraparound of
9879 end pointer as well as buffer overflow.
9880
596179f7
SDJ
98812019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9882
9883 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9884 "vq".
9885
a59240a4
TT
98862019-04-24 Tom Tromey <tromey@adacore.com>
9887
9888 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9889
f872fdbb
AB
98902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 * s12z-tdep.c (s12z_unwind_pc): Delete.
9893 (s12z_unwind_sp): Delete.
9894 (s12z_gdbarch_init): Don't register deleted functions with
9895 gdbarch.
9896
b614e6f3
AB
98972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9898
9899 * rl78-tdep.c (rl78_unwind_sp): Delete.
9900 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9901
14faed38
AB
99022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9903
9904 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9905 (xstormy16_unwind_pc): Delete.
9906 (xstormy16_dummy_id): Delete.
9907 (xstormy16_gdbarch_init): Don't register deleted functions with
9908 gdbarch.
9909
541aad8a
AB
99102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9911
9912 * vax-tdep.c (vax_unwind_pc): Delete.
9913 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9914
29222070
AB
99152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9916
9917 * v850-tdep.c (v850_unwind_sp): Delete.
9918 (v850_unwind_pc): Delete.
9919 (v850_dummy_id): Delete.
9920 (v850_gdbarch_init): Don't register deleted functions with
9921 gdbarch.
9922
0f534d76
AB
99232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9926 (tilegx_unwind_pc): Delete.
9927 (tilegx_unwind_dummy_id): Delete.
9928 (tilegx_gdbarch_init): Don't register deleted functions with
9929 gdbarch.
9930
1ba7b7f9
AB
99312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9932
9933 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9934 (tic6x_dummy_id): Delete.
9935 (tic6x_gdbarch_init): Don't register deleted functions with
9936 gdbarch.
9937
d31f262c
AB
99382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9939
9940 * sparc-tdep.c (sparc_unwind_pc): Delete.
9941 (sparc32_gdbarch_init): Don't register deleted function with
9942 gdbarch.
9943
6d14d64d
AB
99442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9945
9946 * sh-tdep.c (sh_unwind_sp): Delete.
9947 (sh_unwind_pc): Delete.
9948 (sh_dummy_id): Delete.
9949 (sh_gdbarch_init): Don't register deleted functions with
9950 gdbarch.
9951
a40dde9d
AB
99522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * score-tdep.c (score_unwind_sp): Delete.
9955 (score_unwind_pc): Delete.
9956 (score_dummy_id): Delete.
9957 (score_gdbarch_init): Don't register deleted functions with
9958 gdbarch.
9959
47c47d69
AB
99602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9961
9962 * rx-tdep.c (rx_unwind_pc): Delete.
9963 (rx_unwind_sp): Delete.
9964 (rx_dummy_id): Delete.
9965 (rx_gdbarch_init): Don't register deleted functions with
9966 gdbarch. Update comment.
9967
833a4480
AB
99682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9969
9970 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9971 (rs6000_dummy_id): Delete.
9972 (rs6000_gdbarch_init): Don't register deleted functions with
9973 gdbarch.
9974
3f2cef49
AB
99752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9976
9977 * or1k-tdep.c (or1k_dummy_id): Delete.
9978 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9979
96acf884
AB
99802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9981
9982 * nios2-tdep.c (nios2_dummy_id): Delete.
9983 (nios2_unwind_sp): Delete.
9984 (nios2_gdbarch_init): Don't register deleted functions with
9985 gdbarch.
9986
ca0ab0aa
AB
99872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9988
9989 * nds32-tdep.c (nds32_dummy_id): Delete.
9990 (nds32_unwind_pc): Delete.
9991 (nds32_unwind_sp): Delete.
9992 (nds32_gdbarch_init): Don't register deleted functions with
9993 gdbarch.
9994
c8259044
AB
99952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9996
9997 * msp430-tdep.c (msp430_unwind_pc): Delete.
9998 (msp430_unwind_sp): Delete.
9999 (msp430_dummy_id): Delete.
10000 (msp430_gdbarch_init): Don't register deleted functions with
10001 gdbarch.
10002
27f113c8
AB
100032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * moxie-tdep.c (moxie_unwind_sp): Delete.
10006 (moxie_unwind_pc): Delete.
10007 (moxie_dummy_id): Delete.
10008 (moxie_gdbarch_init): Don't register deleted functions with
10009 gdbarch.
10010
aee6c3cd
AB
100112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10014 (mn10300_unwind_pc): Delete.
10015 (mn10300_unwind_sp): Delete.
10016 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10017 mn10300_unwind_sp.
10018 (mn10300_frame_unwind_init): Don't register deleted functions with
10019 gdbarch.
10020
8e2b5aea
AB
100212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10022
10023 * mep-tdep.c (mep_unwind_pc): Delete.
10024 (mep_unwind_sp): Delete.
10025 (mep_dummy_id): Delete.
10026 (mep_gdbarch_init): Don't register deleted functions with
10027 gdbarch.
10028
43cf3ede
AB
100292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10030
10031 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10032 (m68hc11_unwind_sp): Delete.
10033 (m68hc11_gdbarch_init): Don't register deleted functions with
10034 gdbarch.
10035
5e79b7bb
AB
100362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10037
10038 * m32r-tdep.c (m32r_unwind_sp): Delete.
10039 (m32r_unwind_pc): Delete.
10040 (m32r_dummy_id): Delete.
10041 (m32r_gdbarch_init): Don't register deleted functions with
10042 gdbarch.
10043
89b268d8
AB
100442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10045
10046 * m32c-tdep.c (m32c_unwind_pc): Delete.
10047 (m32c_unwind_sp): Delete.
10048 (m32c_dummy_id): Delete.
10049 (m32c_gdbarch_init): Don't register deleted functions with
10050 gdbarch.
10051
946c28d2
AB
100522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10053
10054 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10055 (lm32_unwind_pc): Delete.
10056 (lm32_dummy_id): Delete.
10057 (lm32_gdbarch_init): Don't register deleted functions with
10058 gdbarch.
10059
bf12844a
AB
100602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10061
10062 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10063 (iq2000_unwind_pc): Delete.
10064 (iq2000_dummy_id): Delete.
10065 (iq2000_gdbarch_init): Don't register deleted functions with
10066 gdbarch.
10067
ecbc06d2
AB
100682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10069
10070 * nds32-tdep.c (nds32_type_align): Delete.
10071 (nds32_push_dummy_call): Use type_align instead.
10072
030197b4
AB
100732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10074
10075 * arm-tdep.c (arm_type_align): Only handle vector override case.
10076 (arm_push_dummy_call): Use type_align.
10077 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10078
b907456c
AB
100792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10080
10081 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10082 case.
10083 (pass_on_stack): Use type_align.
10084 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10085 function.
10086
9e97ba43
TT
100872019-04-23 Tom Tromey <tromey@adacore.com>
10088
10089 * dwarf2read.c (line_header::file_name_at): Remove unused
10090 overload.
10091
6892f601
TV
100922019-04-23 Tom de Vries <tdevries@suse.de>
10093
10094 PR gdb/24438
10095 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10096 invocation.
10097
336d760d
AT
10098
100992019-03-27 Ali Tamur <tamur@google.com>
10100
10101 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10102 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10103 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10104 (dwarf_expr_context::get_addr_index): Likewise
10105 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10106 (symbol_needs_eval_context::get_addr_index): Likewise
10107 (disassemble_dwarf_expression): Add DW_OP_addrx
10108 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10109 (read_cutu_die_from_dwo): Update comment
10110 (skip_one_die): Add DW_FORM_addrx
10111 (read_attribute_value): Likewise
10112 (var_decode_location): Add DW_OP_addrx
10113 (dwarf2_const_value_attr): Add DW_FORM_addrx
10114 (dump_die_shallow): Likewise
10115 (dwarf2_fetch_constant_bytes): Likewise
10116 (decode_locdesc): Add DW_OP_addrx
10117 (skip_form_bytes): Add DW_FORM_addrx
10118
ad9d13f8
AT
101192019-04-22 Ali Tamur <tamur@google.com>
10120
10121 * MAINTAINERS (Write After Approval): Add self.
10122
d70cc3ba
SM
101232019-04-22 Simon Marchi <simon.marchi@efficios.com>
10124
10125 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10126 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10127 (open_symbol_file_object): Likewise.
10128 (svr4_default_sos): Add info parameter.
10129 (svr4_read_so_list): Likewise.
10130 (svr4_current_sos_direct): Adjust functions calls to pass down
10131 info.
10132 (svr4_current_sos_1): Add info parameter.
10133 (svr4_current_sos): Call get_svr4_info, pass info down to
10134 svr4_current_sos_1.
10135 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10136 get_svr4_info.
10137 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10138 get_svr4_info.
10139 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10140 to get_svr4_info.
10141 (probes_table_remove_objfile_probes): Likewise.
10142 (register_solib_event_probe): Add info parameter.
10143 (solist_update_incremental): Pass info parameter down to
10144 svr4_read_so_list.
10145 (disable_probes_interface): Add info parameter.
10146 (svr4_handle_solib_event): Pass current_program_space to
10147 get_svr4_info. Adjust disable_probes_interface cleanup.
10148 (svr4_create_probe_breakpoints): Add info parameter, pass it
10149 down to register_solib_event_probe.
10150 (svr4_create_solib_event_breakpoints): Add info parameter,
10151 pass it down to svr4_create_probe_breakpoints.
10152 (enable_break): Pass info down to
10153 svr4_create_solib_event_breakpoints.
10154 (svr4_solib_create_inferior_hook): Pass current_program_space to
10155 get_svr4_info.
10156 (svr4_clear_solib): Likewise.
10157
7905fc35
PA
101582019-04-22 Pedro Alves <palves@redhat.com>
10159
10160 * solib-svr4.c (svr4_free_objfile_observer): New.
10161 (probe_and_action::objfile): New field.
10162 (probes_table_htab_remove_objfile_probes)
10163 (probes_table_remove_objfile_probes): New functions.
10164 (register_solib_event_probe): Add 'objfile' parameter. Store it
10165 in the new probe_and_action. Don't store the probe in 'lookup'.
10166 (svr4_create_probe_breakpoints): Pass objfile to
10167 register_solib_event_probe.
10168 (_initialize_svr4_solib): Register a free_objfile observer.
10169
fb881986
TT
101702019-04-19 Tom Tromey <tom@tromey.com>
10171
10172 * common/queue.h: Remove.
10173
8732db6c
TT
101742019-04-19 Tom Tromey <tom@tromey.com>
10175
10176 * event-loop.c: Don't include "common/queue.h".
10177
97dfbadd
TT
101782019-04-19 Tom Tromey <tom@tromey.com>
10179
10180 * remote.c (remote_target): Use delete.
10181 * remote-notif.h: Include <list>, not "common/queue.h".
10182 (notif_client_p): Remove typedef.
10183 (remote_notif_state): Add constructor, destructor, initializer.
10184 <notif_queue>: Now a std::list.
10185 (remote_notif_state_xfree): Don't declare.
10186 * remote-notif.c (remote_notif_process, handle_notification)
10187 (remote_notif_state_allocate): Update.
10188 (~remote_notif_state): Rename from remote_notif_state_xfree.
10189
cf250e36
TT
101902019-04-19 Tom Tromey <tom@tromey.com>
10191
10192 * symfile.c (reread_symbols): Update.
10193 * objfiles.c (objfile_register_static_link)
10194 (objfile_lookup_static_link): Update
10195 (~objfile) Don't delete static_links.
10196 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10197
61f4b350
TT
101982019-04-19 Tom Tromey <tom@tromey.com>
10199
10200 * type-stack.h (struct type_stack) <insert>: Constify string.
10201 * type-stack.c (type_stack::insert): Constify string.
10202 * gdbtypes.h (lookup_template_type): Update.
10203 (address_space_name_to_int): Update.
10204 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10205 const.
10206 (lookup_template_type): Make name const.
10207 * c-exp.y: Update rules.
10208 (lex_one_token, classify_name, classify_inner_name)
10209 (c_print_token): Update.
10210 * p-exp.y: Update rules.
10211 (yylex): Update.
10212 * f-exp.y: Update rules.
10213 (yylex): Update.
10214 * d-exp.y: Update rules.
10215 (lex_one_token, classify_name, classify_inner_name): Update.
10216 * parse.c (write_dollar_variable, copy_name): Return std::string.
10217 * parser-defs.h (copy_name): Change return type.
10218 * m2-exp.y: Update rules.
10219 (yylex): Update.
10220 * go-exp.y (lex_one_token): Update.
10221 Update rules.
10222 (classify_unsafe_function, classify_packaged_name)
10223 (classify_name, yylex): Update.
10224
189b8c2e
ST
102252019-04-19 Sergei Trofimovich <siarheit@google.com>
10226
10227 * configure.ac: add --enable-source-highlight switch.
10228 * configure: Regenerate.
10229 * top.c (print_gdb_version): plumb --enable-source-highlight
10230 status to "show configuration".
10231
8ecb59f8
TT
102322019-04-19 Tom Tromey <tromey@adacore.com>
10233
10234 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10235 Check ADA_TYPE_P.
10236 (empty_record, ada_template_to_fixed_record_type_1)
10237 (template_to_static_fixed_type)
10238 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10239 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10240 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10241 macros.
10242
62160ec9
TT
102432019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10244
10245 PR symtab/24423:
10246 * source.c (print_source_lines_base): Advance "iter" when a
10247 control character is seen.
10248
f2ae8bc8
PW
102492019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10250
10251 * inferior.h (struct infcall_suspend_state_deleter):
10252 Catch exception in destructor to avoid crash.
10253
d563b953
PW
102542019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10255
10256 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10257 close to the add_com "shell".
10258
dc34c897
TT
102592019-04-18 Tom Tromey <tromey@adacore.com>
10260
10261 * process-stratum-target.h (class process_stratum_target)
10262 <stratum>: Add "final".
10263
a12e5744
TT
102642019-04-17 Tom Tromey <tromey@adacore.com>
10265
10266 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10267 against nullptr before use.
10268
a7e559cc
AH
102692019-04-17 Alan Hayward <alan.hayward@arm.com>
10270
10271 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10272
c01660c6
AB
102732019-04-17 Jim Wilson <jimw@sifive.com>
10274 Andrew Burgess <andrew.burgess@embecosm.com>
10275
10276 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10277 code read might fail, assume 4-byte breakpoint in that case.
10278
4aa866af
LS
102792019-04-15 Leszek Swirski <leszeks@google.com>
10280
10281 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10282 rather than a hand-rolled POD check when checking for forced MEMORY
10283 classification.
10284
48574d91
AH
102852019-04-15 Alan Hayward <alan.hayward@arm.com>
10286
10287 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10288 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10289 function.
10290 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10291 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10292 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10293 declaration.
10294
4da037ef
AH
102952019-04-15 Alan Hayward <alan.hayward@arm.com>
10296
10297 * aarch64-linux-nat.c
10298 (aarch64_linux_nat_target::thread_architecture): Add override.
10299 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10300 each VQ.
10301
ccb8d7e8
AH
103022019-04-15 Alan Hayward <alan.hayward@arm.com>
10303
10304 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10305
35add35e
AB
103062019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10309 target types of size 96-bits, add some additional comments, and
10310 check that the builtin type we found was the correct size.
10311
51196bbc
EZ
103122019-04-12 Eli Zaretskii <eliz@gnu.org>
10313
10314 * utils.c (prompt_for_continue): Don't restore the styling at the
10315 end, as applied_style has the wrong value. This fixes styling in
10316 long lists of file names that are interrupted by the "Continue?"
10317 prompt.
10318
62253a61
AB
103192019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10320
10321 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10322 * c-lang.c (c_language_defn): Likewise.
10323 (cplus_language_defn): Likewise.
10324 (asm_language_defn): Likewise.
10325 (minimal_language_defn): Likewise.
10326 * d-lang.c (d_language_defn): Likewise.
10327 * f-lang.c (f_language_defn): Likewise.
10328 * go-lang.c (go_language_defn): Likewise.
10329 * language.c (unknown_language_defn): Likewise.
10330 (auto_language_defn): Likewise.
10331 * language.h (struct language_defn): Remove la_magic field.
10332 (LANG_MAGIC): Delete.
10333 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10334 * objc-lang.c (objc_language_defn): Likewise.
10335 * opencl-lang.c (opencl_language_defn): Likewise.
10336 * p-lang.c (pascal_language_defn): Likewise.
10337 * rust-lang.c (rust_language_defn): Likewise.
10338
a9158a86
AB
103392019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10340
10341 * riscv-tdep.c (riscv_type_align): New function.
10342 (riscv_type_alignment): Delete.
10343 (riscv_arg_location): Use 'type_align'.
10344 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10345
41077b66
AB
103462019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10347
10348 * gdbtypes.c (type_align): A struct with no non-static fields also
10349 has alignment of 1.
10350
9f0272f8
AB
103512019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10352
10353 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10354 component to 0.
10355 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10356 member.
10357 (riscv_struct_info::analyse): New implementation using new
10358 analyse_inner member function.
10359 (riscv_struct_info::field_offset): New member function.
10360 (riscv_struct_info::m_offsets): New member variable.
10361 (riscv_struct_info::analyse_inner): New private member function,
10362 takes the old implementation of riscv_struct_info::analyse but
10363 extended to track field offsets.
10364 (riscv_call_arg_struct): Update the struct folding special cases
10365 to handle cases where empty C++ structs, which are non-zero
10366 length, are found.
10367 (riscv_arg_location): Initialise the length of each location, a
10368 non-zero length now indicates the location is in use.
10369 (riscv_push_dummy_call): Allow for the first location having a
10370 non-zero offset when setting up arguments.
10371 (riscv_return_value): Likewise, but for return values.
10372
02cf60c7
TT
103732019-04-11 Tom Tromey <tromey@adacore.com>
10374
10375 * utils.c (internal_vproblem): Make "msg" const.
10376
68811f8f
AH
103772019-04-11 Alan Hayward <alan.hayward@arm.com>
10378
10379 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10380 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10381 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10382 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10383
3f52fdbc
KB
103842019-04-10 Kevin Buettner <kevinb@redhat.com>
10385
10386 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10387 function.
10388 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10389 of amd64_collect_native_gregset.
10390 (amd64_linux_nat_target::store_registers): Likewise.
10391
e9ad22ee
TT
103922019-04-10 Tom Tromey <tom@tromey.com>
10393
10394 * symtab.c (lookup_global_symbol_from_objfile)
10395 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10396 * objfiles.h (class separate_debug_iterator): New.
10397 (class separate_debug_range): New.
10398 (struct objfile) <separate_debug_objfiles>: New method.
10399 (objfile_separate_debug_iterate): Don't declare.
10400 * objfiles.c (separate_debug_iterator::operator++): Rename from
10401 objfile_separate_debug_iterate.
10402 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10403 iterator.
10404 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10405 iterator.
10406
ee371134
TT
104072019-04-10 Tom Tromey <tom@tromey.com>
10408
10409 * symfile.c (reread_symbols): Remove old comment.
10410 * objfiles.c (free_all_objfiles): Fix a typo.
10411
bf227d61
TT
104122019-04-10 Tom Tromey <tom@tromey.com>
10413
10414 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10415 * minsyms.c (lookup_minimal_symbol): Use foreach.
10416 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10417 (lookup_minimal_symbol_solib_trampoline): Likewise.
10418 * symfile.c (reread_symbols): Use foreach.
10419
8dc433a0
TT
104202019-04-09 Ivan Begert <ivanbegert@gmail.com>
10421 Tom Tromey <tromey@adacore.com>
10422
10423 PR rust/24414:
10424 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10425 (rust_lex_int_test): Change "value" to be LONGEST.
10426 (rust_lex_tests): Add test for long integer literal.
10427
9ab8741a
TT
104282019-04-09 Tom Tromey <tromey@adacore.com>
10429
10430 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10431 to bool.
10432 (extended_remote_target::attach): Update.
10433 (remote_target::remote_notice_new_inferior): Update.
10434 (remote_target::add_current_inferior_and_thread): Update.
10435 * inferior.c (exit_inferior_1): Use "false".
10436 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10437
e242fd12
SM
104382019-04-09 Simon Marchi <simon.marchi@efficios.com>
10439
9ca1957f 10440 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10441 the "start" command.
10442
2b0c8b01
KB
104432019-04-08 Kevin Buettner <kevinb@redhat.com>
10444
10445 * python/py-inferior.c (infpy_thread_from_thread_handle):
10446 Adjust comments to reflect renaming of thread_from_thread_handle
10447 to thread_from_handle. Adjust keywords. Fix type error message.
10448 (inferior_object_methods): Add thread_from_handle. Retain
10449 thread_from_thread_handle, but mark it as deprecated.
10450
50a82723
KB
104512019-04-08 Kevin Buettner <kevinb@redhat.com>
10452
10453 * gdbthread.h (find_thread_by_handle): Revise declaration.
10454 * thread.c (find_thread_by_handle): Likewise. Adjust
10455 implementation too.
10456 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10457 support for buffer objects as handles.
10458
cf63b016
KB
104592019-04-08 Kevin Buettner <kevinb@redhat.com>
10460
10461 * python/py-infthread.c (thpy_thread_handle): New function.
10462 (thread_object_methods): Register thpy_thread_handle.
10463
3d6c6204
KB
104642019-04-08 Kevin Buettner <kevinb@redhat.com>
10465
10466 * gdbthread.h (thread_to_thread_handle): Declare.
10467 * thread.c (gdbtypes.h): Include.
10468 (thread_to_thread_handle): New function.
10469
10470 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10471 (target_thread_info_to_thread_handle): Declare.
10472 * target.c (target_thread_info_to_thread_handle): New function.
10473 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10474 * target-delegates.c: Regenerate.
10475
10476 * linux-thread-db.c (class thread_db_target): Add method
10477 thread_info_to_thread_handle.
10478 (thread_db_target::thread_info_to_thread_handle): Define.
10479 * remote.c (class remote_target): Add new method
10480 thread_info_to_thread_handle.
10481 (remote_target::thread_info_to_thread_handle): Define.
10482
56be6ea8
PA
104832019-04-08 Pedro Alves <palves@redhat.com>
10484
10485 * common/common-exceptions.c (throw_exception): Don't create
10486 named object to throw; throw directly.
10487 (throw_it): Likewise. Don't initialize gdb_exception::message
10488 here, with new; pass FMT and AP to the ctor instead.
10489 * common/common-exceptions.h: Include <string>.
10490 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10491 const char *, va_list)): New ctor. Use std::make_shared.
10492 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10493 errors)): Delete.
10494 (gdb_exception_error::gdb_exception_error(enum errors, const char
10495 *, va_list)): New.
10496 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10497 Add assertion.
10498 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10499 errors)): Delete.
10500 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10501 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10502 Add assertion.
10503
eedc3f4f
TT
105042019-04-08 Tom Tromey <tom@tromey.com>
10505
10506 * valops.c (value_rtti_indirect_type): Replace throw_exception
10507 with throw.
10508 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10509 with throw.
10510 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10511 throw.
10512 * target.c (target_translate_tls_address): Replace throw_exception
10513 with throw.
10514 * stack.c (frame_apply_command_count): Replace throw_exception
10515 with throw.
10516 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10517 throw.
10518 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10519 with throw.
10520 * rs6000-tdep.c (rs6000_frame_cache)
10521 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10522 * remote.c: Replace throw_exception with throw.
10523 * record-full.c (record_full_message, record_full_wait_1)
10524 (record_full_restore): Replace throw_exception with throw.
10525 * record-btrace.c:
10526 (get_thread_current_frame_id, record_btrace_start_replaying)
10527 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10528 (cmd_record_btrace_start): Replace throw_exception with throw.
10529 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10530 throw.
10531 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10532 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10533 * linespec.c:
10534 (find_linespec_symbols): Replace throw_exception with throw.
10535 * infrun.c (displaced_step_prepare, resume): Replace
10536 throw_exception with throw.
10537 * infcmd.c (post_create_inferior): Replace throw_exception with
10538 throw.
10539 * inf-loop.c (inferior_event_handler): Replace throw_exception
10540 with throw.
10541 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10542 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10543 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10544 (get_prev_frame_always, get_frame_pc_if_available)
10545 (get_frame_address_in_block_if_available, get_frame_language):
10546 Replace throw_exception with throw.
10547 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10548 throw_exception with throw.
10549 * eval.c (fetch_subexp_value, evaluate_var_value)
10550 (evaluate_funcall, evaluate_subexp_standard): Replace
10551 throw_exception with throw.
10552 * dwarf2loc.c (call_site_find_chain)
10553 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10554 Replace throw_exception with throw.
10555 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10556 with throw.
10557 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10558 throw.
10559 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10560 * completer.c (complete_line_internal): Replace throw_exception
10561 with throw.
10562 * compile/compile-object-run.c (compile_object_run): Replace
10563 throw_exception with throw.
10564 * cli/cli-script.c (process_next_line): Replace throw_exception
10565 with throw.
10566 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10567 (btrace_enable, btrace_maint_update_pt_packets): Replace
10568 throw_exception with throw.
10569 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10570 throw_exception with throw.
10571 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10572 throw_exception with throw.
10573 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10574 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10575 * aarch64-tdep.c (aarch64_make_prologue_cache)
10576 (aarch64_make_stub_cache): Replace throw_exception with throw.
10577
26003a20
TT
105782019-04-08 Tom Tromey <tom@tromey.com>
10579
10580 * common/common-exceptions.c (throw_exception): Rename from
10581 throw_exception_cxx. Remove old copy. Make argument const.
10582 (throw_it): Create and throw exception objects directly.
10583 * common/common-exceptions.h (throw_exception): Make argument
10584 const.
10585 (struct gdb_exception_error): Add constructor.
10586 (struct gdb_exception_quit): Add constructor.
10587
d272eb37
TT
105882019-04-08 Tom Tromey <tom@tromey.com>
10589
10590 * common/common-exceptions.h (exception_rethrow): Don't declare.
10591 (TRY_SJLJ): Update comment.
10592 (TRY, CATCH, END_CATCH): Remove.
10593 * common/common-exceptions.c (exception_rethrow): Remove.
10594
230d2906
TT
105952019-04-08 Tom Tromey <tom@tromey.com>
10596
10597 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10598 Remove.
10599 (gdb_exception_error): Rename from
10600 gdb_exception_RETURN_MASK_ERROR.
10601 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10602 (gdb_quit_bad_alloc): Update.
10603 * aarch64-tdep.c: Update.
10604 * ada-lang.c: Update.
10605 * ada-typeprint.c: Update.
10606 * ada-valprint.c: Update.
10607 * amd64-tdep.c: Update.
10608 * arch-utils.c: Update.
10609 * break-catch-throw.c: Update.
10610 * breakpoint.c: Update.
10611 * btrace.c: Update.
10612 * c-varobj.c: Update.
10613 * cli/cli-cmds.c: Update.
10614 * cli/cli-interp.c: Update.
10615 * cli/cli-script.c: Update.
10616 * common/common-exceptions.c: Update.
10617 * common/new-op.c: Update.
10618 * common/selftest.c: Update.
10619 * compile/compile-c-symbols.c: Update.
10620 * compile/compile-cplus-symbols.c: Update.
10621 * compile/compile-object-load.c: Update.
10622 * compile/compile-object-run.c: Update.
10623 * completer.c: Update.
10624 * corelow.c: Update.
10625 * cp-abi.c: Update.
10626 * cp-support.c: Update.
10627 * cp-valprint.c: Update.
10628 * darwin-nat.c: Update.
10629 * disasm-selftests.c: Update.
10630 * dtrace-probe.c: Update.
10631 * dwarf-index-cache.c: Update.
10632 * dwarf-index-write.c: Update.
10633 * dwarf2-frame-tailcall.c: Update.
10634 * dwarf2-frame.c: Update.
10635 * dwarf2loc.c: Update.
10636 * dwarf2read.c: Update.
10637 * eval.c: Update.
10638 * event-loop.c: Update.
10639 * event-top.c: Update.
10640 * exec.c: Update.
10641 * f-valprint.c: Update.
10642 * fbsd-tdep.c: Update.
10643 * frame-unwind.c: Update.
10644 * frame.c: Update.
10645 * gdbtypes.c: Update.
10646 * gnu-v3-abi.c: Update.
10647 * guile/guile-internal.h: Update.
10648 * guile/scm-block.c: Update.
10649 * guile/scm-breakpoint.c: Update.
10650 * guile/scm-cmd.c: Update.
10651 * guile/scm-disasm.c: Update.
10652 * guile/scm-frame.c: Update.
10653 * guile/scm-lazy-string.c: Update.
10654 * guile/scm-math.c: Update.
10655 * guile/scm-param.c: Update.
10656 * guile/scm-ports.c: Update.
10657 * guile/scm-pretty-print.c: Update.
10658 * guile/scm-symbol.c: Update.
10659 * guile/scm-symtab.c: Update.
10660 * guile/scm-type.c: Update.
10661 * guile/scm-value.c: Update.
10662 * i386-linux-tdep.c: Update.
10663 * i386-tdep.c: Update.
10664 * inf-loop.c: Update.
10665 * infcall.c: Update.
10666 * infcmd.c: Update.
10667 * infrun.c: Update.
10668 * jit.c: Update.
10669 * language.c: Update.
10670 * linespec.c: Update.
10671 * linux-fork.c: Update.
10672 * linux-nat.c: Update.
10673 * linux-tdep.c: Update.
10674 * linux-thread-db.c: Update.
10675 * main.c: Update.
10676 * mi/mi-cmd-break.c: Update.
10677 * mi/mi-cmd-stack.c: Update.
10678 * mi/mi-interp.c: Update.
10679 * mi/mi-main.c: Update.
10680 * objc-lang.c: Update.
10681 * p-valprint.c: Update.
10682 * parse.c: Update.
10683 * ppc-linux-tdep.c: Update.
10684 * printcmd.c: Update.
10685 * python/py-arch.c: Update.
10686 * python/py-breakpoint.c: Update.
10687 * python/py-cmd.c: Update.
10688 * python/py-finishbreakpoint.c: Update.
10689 * python/py-frame.c: Update.
10690 * python/py-framefilter.c: Update.
10691 * python/py-gdb-readline.c: Update.
10692 * python/py-inferior.c: Update.
10693 * python/py-infthread.c: Update.
10694 * python/py-lazy-string.c: Update.
10695 * python/py-linetable.c: Update.
10696 * python/py-objfile.c: Update.
10697 * python/py-param.c: Update.
10698 * python/py-prettyprint.c: Update.
10699 * python/py-progspace.c: Update.
10700 * python/py-record-btrace.c: Update.
10701 * python/py-record.c: Update.
10702 * python/py-symbol.c: Update.
10703 * python/py-type.c: Update.
10704 * python/py-unwind.c: Update.
10705 * python/py-utils.c: Update.
10706 * python/py-value.c: Update.
10707 * python/python.c: Update.
10708 * record-btrace.c: Update.
10709 * record-full.c: Update.
10710 * remote-fileio.c: Update.
10711 * remote.c: Update.
10712 * riscv-tdep.c: Update.
10713 * rs6000-aix-tdep.c: Update.
10714 * rs6000-tdep.c: Update.
10715 * rust-exp.y: Update.
10716 * rust-lang.c: Update.
10717 * s390-tdep.c: Update.
10718 * selftest-arch.c: Update.
10719 * solib-dsbt.c: Update.
10720 * solib-frv.c: Update.
10721 * solib-spu.c: Update.
10722 * solib-svr4.c: Update.
10723 * solib.c: Update.
10724 * sparc64-linux-tdep.c: Update.
10725 * stack.c: Update.
10726 * symfile-mem.c: Update.
10727 * symmisc.c: Update.
10728 * target.c: Update.
10729 * thread.c: Update.
10730 * top.c: Update.
10731 * tracefile-tfile.c: Update.
10732 * tui/tui.c: Update.
10733 * typeprint.c: Update.
10734 * unittests/cli-utils-selftests.c: Update.
10735 * unittests/parse-connection-spec-selftests.c: Update.
10736 * valops.c: Update.
10737 * valprint.c: Update.
10738 * value.c: Update.
10739 * varobj.c: Update.
10740 * windows-nat.c: Update.
10741 * x86-linux-nat.c: Update.
10742 * xml-support.c: Update.
10743
a70b8144
TT
107442019-04-08 Tom Tromey <tom@tromey.com>
10745
10746 * xml-support.c: Use C++ exception handling.
10747 * x86-linux-nat.c: Use C++ exception handling.
10748 * windows-nat.c: Use C++ exception handling.
10749 * varobj.c: Use C++ exception handling.
10750 * value.c: Use C++ exception handling.
10751 * valprint.c: Use C++ exception handling.
10752 * valops.c: Use C++ exception handling.
10753 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10754 handling.
10755 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10756 * typeprint.c: Use C++ exception handling.
10757 * tui/tui.c: Use C++ exception handling.
10758 * tracefile-tfile.c: Use C++ exception handling.
10759 * top.c: Use C++ exception handling.
10760 * thread.c: Use C++ exception handling.
10761 * target.c: Use C++ exception handling.
10762 * symmisc.c: Use C++ exception handling.
10763 * symfile-mem.c: Use C++ exception handling.
10764 * stack.c: Use C++ exception handling.
10765 * sparc64-linux-tdep.c: Use C++ exception handling.
10766 * solib.c: Use C++ exception handling.
10767 * solib-svr4.c: Use C++ exception handling.
10768 * solib-spu.c: Use C++ exception handling.
10769 * solib-frv.c: Use C++ exception handling.
10770 * solib-dsbt.c: Use C++ exception handling.
10771 * selftest-arch.c: Use C++ exception handling.
10772 * s390-tdep.c: Use C++ exception handling.
10773 * rust-lang.c: Use C++ exception handling.
10774 * rust-exp.y: Use C++ exception handling.
10775 * rs6000-tdep.c: Use C++ exception handling.
10776 * rs6000-aix-tdep.c: Use C++ exception handling.
10777 * riscv-tdep.c: Use C++ exception handling.
10778 * remote.c: Use C++ exception handling.
10779 * remote-fileio.c: Use C++ exception handling.
10780 * record-full.c: Use C++ exception handling.
10781 * record-btrace.c: Use C++ exception handling.
10782 * python/python.c: Use C++ exception handling.
10783 * python/py-value.c: Use C++ exception handling.
10784 * python/py-utils.c: Use C++ exception handling.
10785 * python/py-unwind.c: Use C++ exception handling.
10786 * python/py-type.c: Use C++ exception handling.
10787 * python/py-symbol.c: Use C++ exception handling.
10788 * python/py-record.c: Use C++ exception handling.
10789 * python/py-record-btrace.c: Use C++ exception handling.
10790 * python/py-progspace.c: Use C++ exception handling.
10791 * python/py-prettyprint.c: Use C++ exception handling.
10792 * python/py-param.c: Use C++ exception handling.
10793 * python/py-objfile.c: Use C++ exception handling.
10794 * python/py-linetable.c: Use C++ exception handling.
10795 * python/py-lazy-string.c: Use C++ exception handling.
10796 * python/py-infthread.c: Use C++ exception handling.
10797 * python/py-inferior.c: Use C++ exception handling.
10798 * python/py-gdb-readline.c: Use C++ exception handling.
10799 * python/py-framefilter.c: Use C++ exception handling.
10800 * python/py-frame.c: Use C++ exception handling.
10801 * python/py-finishbreakpoint.c: Use C++ exception handling.
10802 * python/py-cmd.c: Use C++ exception handling.
10803 * python/py-breakpoint.c: Use C++ exception handling.
10804 * python/py-arch.c: Use C++ exception handling.
10805 * printcmd.c: Use C++ exception handling.
10806 * ppc-linux-tdep.c: Use C++ exception handling.
10807 * parse.c: Use C++ exception handling.
10808 * p-valprint.c: Use C++ exception handling.
10809 * objc-lang.c: Use C++ exception handling.
10810 * mi/mi-main.c: Use C++ exception handling.
10811 * mi/mi-interp.c: Use C++ exception handling.
10812 * mi/mi-cmd-stack.c: Use C++ exception handling.
10813 * mi/mi-cmd-break.c: Use C++ exception handling.
10814 * main.c: Use C++ exception handling.
10815 * linux-thread-db.c: Use C++ exception handling.
10816 * linux-tdep.c: Use C++ exception handling.
10817 * linux-nat.c: Use C++ exception handling.
10818 * linux-fork.c: Use C++ exception handling.
10819 * linespec.c: Use C++ exception handling.
10820 * language.c: Use C++ exception handling.
10821 * jit.c: Use C++ exception handling.
10822 * infrun.c: Use C++ exception handling.
10823 * infcmd.c: Use C++ exception handling.
10824 * infcall.c: Use C++ exception handling.
10825 * inf-loop.c: Use C++ exception handling.
10826 * i386-tdep.c: Use C++ exception handling.
10827 * i386-linux-tdep.c: Use C++ exception handling.
10828 * guile/scm-value.c: Use C++ exception handling.
10829 * guile/scm-type.c: Use C++ exception handling.
10830 * guile/scm-symtab.c: Use C++ exception handling.
10831 * guile/scm-symbol.c: Use C++ exception handling.
10832 * guile/scm-pretty-print.c: Use C++ exception handling.
10833 * guile/scm-ports.c: Use C++ exception handling.
10834 * guile/scm-param.c: Use C++ exception handling.
10835 * guile/scm-math.c: Use C++ exception handling.
10836 * guile/scm-lazy-string.c: Use C++ exception handling.
10837 * guile/scm-frame.c: Use C++ exception handling.
10838 * guile/scm-disasm.c: Use C++ exception handling.
10839 * guile/scm-cmd.c: Use C++ exception handling.
10840 * guile/scm-breakpoint.c: Use C++ exception handling.
10841 * guile/scm-block.c: Use C++ exception handling.
10842 * guile/guile-internal.h: Use C++ exception handling.
10843 * gnu-v3-abi.c: Use C++ exception handling.
10844 * gdbtypes.c: Use C++ exception handling.
10845 * frame.c: Use C++ exception handling.
10846 * frame-unwind.c: Use C++ exception handling.
10847 * fbsd-tdep.c: Use C++ exception handling.
10848 * f-valprint.c: Use C++ exception handling.
10849 * exec.c: Use C++ exception handling.
10850 * event-top.c: Use C++ exception handling.
10851 * event-loop.c: Use C++ exception handling.
10852 * eval.c: Use C++ exception handling.
10853 * dwarf2read.c: Use C++ exception handling.
10854 * dwarf2loc.c: Use C++ exception handling.
10855 * dwarf2-frame.c: Use C++ exception handling.
10856 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10857 * dwarf-index-write.c: Use C++ exception handling.
10858 * dwarf-index-cache.c: Use C++ exception handling.
10859 * dtrace-probe.c: Use C++ exception handling.
10860 * disasm-selftests.c: Use C++ exception handling.
10861 * darwin-nat.c: Use C++ exception handling.
10862 * cp-valprint.c: Use C++ exception handling.
10863 * cp-support.c: Use C++ exception handling.
10864 * cp-abi.c: Use C++ exception handling.
10865 * corelow.c: Use C++ exception handling.
10866 * completer.c: Use C++ exception handling.
10867 * compile/compile-object-run.c: Use C++ exception handling.
10868 * compile/compile-object-load.c: Use C++ exception handling.
10869 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10870 * compile/compile-c-symbols.c: Use C++ exception handling.
10871 * common/selftest.c: Use C++ exception handling.
10872 * common/new-op.c: Use C++ exception handling.
10873 * cli/cli-script.c: Use C++ exception handling.
10874 * cli/cli-interp.c: Use C++ exception handling.
10875 * cli/cli-cmds.c: Use C++ exception handling.
10876 * c-varobj.c: Use C++ exception handling.
10877 * btrace.c: Use C++ exception handling.
10878 * breakpoint.c: Use C++ exception handling.
10879 * break-catch-throw.c: Use C++ exception handling.
10880 * arch-utils.c: Use C++ exception handling.
10881 * amd64-tdep.c: Use C++ exception handling.
10882 * ada-valprint.c: Use C++ exception handling.
10883 * ada-typeprint.c: Use C++ exception handling.
10884 * ada-lang.c: Use C++ exception handling.
10885 * aarch64-tdep.c: Use C++ exception handling.
10886
3d6e9d23
TT
108872019-04-08 Tom Tromey <tom@tromey.com>
10888
10889 * xml-support.c (gdb_xml_parser::parse): Update.
10890 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10891 * value.c (show_convenience): Update.
10892 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10893 (test_parse_flags_qcs): Update.
10894 * thread.c (thr_try_catch_cmd): Update.
10895 * target.c (target_translate_tls_address): Update.
10896 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10897 (info_frame_command_core, frame_apply_command_count): Update.
10898 * rust-exp.y (rust_lex_exception_test): Update.
10899 * riscv-tdep.c (riscv_print_one_register_info): Update.
10900 * remote.c (remote_target::enable_btrace): Update.
10901 * record-btrace.c (record_btrace_enable_warn): Update.
10902 * python/py-utils.c (gdbpy_convert_exception): Update.
10903 * printcmd.c (do_one_display, print_variable_and_value): Update.
10904 * mi/mi-main.c (mi_print_exception): Update.
10905 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10906 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10907 * linux-nat.c (linux_nat_target::attach): Update.
10908 * linux-fork.c (class scoped_switch_fork_info): Update.
10909 * infrun.c (displaced_step_prepare): Update.
10910 * infcall.c (call_function_by_hand_dummy): Update.
10911 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10912 * gnu-v3-abi.c (print_one_vtable): Update.
10913 * frame.c (get_prev_frame_always): Update.
10914 * f-valprint.c (info_common_command_for_block): Update.
10915 * exec.c (try_open_exec_file): Update.
10916 * exceptions.c (print_exception, exception_print)
10917 (exception_fprintf, exception_print_same): Update.
10918 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10919 * dwarf-index-cache.c (index_cache::store)
10920 (index_cache::lookup_gdb_index): Update.
10921 * darwin-nat.c (maybe_cache_shell): Update.
10922 * cp-valprint.c (cp_print_value_fields): Update.
10923 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10924 (gcc_cplus_symbol_address): Update.
10925 * compile/compile-c-symbols.c (gcc_convert_symbol)
10926 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10927 * common/selftest.c: Update.
10928 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10929 a std::string.
10930 (exception_try_scope_entry, exception_try_scope_exit): Don't
10931 declare.
10932 (struct exception_try_scope): Remove.
10933 (TRY): Don't use exception_try_scope.
10934 (struct gdb_exception): Add constructor, operator=.
10935 <what>: New method.
10936 (struct gdb_exception_RETURN_MASK_ALL)
10937 (struct gdb_exception_RETURN_MASK_ERROR)
10938 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10939 (struct gdb_quit_bad_alloc): Update.
10940 * common/common-exceptions.c (exception_none): Change
10941 initializer.
10942 (struct catcher) <state, exception>: Initialize inline.
10943 <prev>: Remove member.
10944 (current_catcher): Remove.
10945 (catchers): New global.
10946 (exceptions_state_mc_init): Simplify.
10947 (catcher_pop): Remove.
10948 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10949 (try_scope_depth, exception_try_scope_entry)
10950 (exception_try_scope_exit): Remove.
10951 (throw_exception_sjlj): Update.
10952 (exception_messages, exception_messages_size): Remove.
10953 (throw_it): Simplify.
10954 (gdb_exception_sliced_copy): Remove.
10955 (throw_exception_cxx): Update.
10956 * cli/cli-script.c (script_from_file): Update.
10957 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10958 Update.
10959 * ada-valprint.c (ada_val_print): Update.
10960 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10961 (create_excep_cond_exprs): Update.
10962
c5c10118
TT
109632019-04-08 Tom Tromey <tom@tromey.com>
10964
10965 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10966 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10967 (TRY, CATCH, END_CATCH): Remove some definitions.
10968 * common/common-exceptions.c: Don't use GDB_XCPT.
10969 (catcher_list_size): Remove.
10970 (throw_exception, throw_it): Simplify.
10971
4de283e4
TT
109722019-04-05 Tom Tromey <tom@tromey.com>
10973
10974 Revert the header-sorting patch.
10975 * ft32-tdep.c: Revert.
10976 * frv-tdep.c: Revert.
10977 * frv-linux-tdep.c: Revert.
10978 * frame.c: Revert.
10979 * frame-unwind.c: Revert.
10980 * frame-base.c: Revert.
10981 * fork-child.c: Revert.
10982 * findvar.c: Revert.
10983 * findcmd.c: Revert.
10984 * filesystem.c: Revert.
10985 * filename-seen-cache.h: Revert.
10986 * filename-seen-cache.c: Revert.
10987 * fbsd-tdep.c: Revert.
10988 * fbsd-nat.h: Revert.
10989 * fbsd-nat.c: Revert.
10990 * f-valprint.c: Revert.
10991 * f-typeprint.c: Revert.
10992 * f-lang.c: Revert.
10993 * extension.h: Revert.
10994 * extension.c: Revert.
10995 * extension-priv.h: Revert.
10996 * expprint.c: Revert.
10997 * exec.h: Revert.
10998 * exec.c: Revert.
10999 * exceptions.c: Revert.
11000 * event-top.c: Revert.
11001 * event-loop.c: Revert.
11002 * eval.c: Revert.
11003 * elfread.c: Revert.
11004 * dwarf2read.h: Revert.
11005 * dwarf2read.c: Revert.
11006 * dwarf2loc.c: Revert.
11007 * dwarf2expr.h: Revert.
11008 * dwarf2expr.c: Revert.
11009 * dwarf2-frame.c: Revert.
11010 * dwarf2-frame-tailcall.c: Revert.
11011 * dwarf-index-write.h: Revert.
11012 * dwarf-index-write.c: Revert.
11013 * dwarf-index-common.c: Revert.
11014 * dwarf-index-cache.h: Revert.
11015 * dwarf-index-cache.c: Revert.
11016 * dummy-frame.c: Revert.
11017 * dtrace-probe.c: Revert.
11018 * disasm.h: Revert.
11019 * disasm.c: Revert.
11020 * disasm-selftests.c: Revert.
11021 * dictionary.c: Revert.
11022 * dicos-tdep.c: Revert.
11023 * demangle.c: Revert.
11024 * dcache.h: Revert.
11025 * dcache.c: Revert.
11026 * darwin-nat.h: Revert.
11027 * darwin-nat.c: Revert.
11028 * darwin-nat-info.c: Revert.
11029 * d-valprint.c: Revert.
11030 * d-namespace.c: Revert.
11031 * d-lang.c: Revert.
11032 * ctf.c: Revert.
11033 * csky-tdep.c: Revert.
11034 * csky-linux-tdep.c: Revert.
11035 * cris-tdep.c: Revert.
11036 * cris-linux-tdep.c: Revert.
11037 * cp-valprint.c: Revert.
11038 * cp-support.c: Revert.
11039 * cp-namespace.c: Revert.
11040 * cp-abi.c: Revert.
11041 * corelow.c: Revert.
11042 * corefile.c: Revert.
11043 * continuations.c: Revert.
11044 * completer.h: Revert.
11045 * completer.c: Revert.
11046 * complaints.c: Revert.
11047 * coffread.c: Revert.
11048 * coff-pe-read.c: Revert.
11049 * cli-out.h: Revert.
11050 * cli-out.c: Revert.
11051 * charset.c: Revert.
11052 * c-varobj.c: Revert.
11053 * c-valprint.c: Revert.
11054 * c-typeprint.c: Revert.
11055 * c-lang.c: Revert.
11056 * buildsym.c: Revert.
11057 * buildsym-legacy.c: Revert.
11058 * build-id.h: Revert.
11059 * build-id.c: Revert.
11060 * btrace.c: Revert.
11061 * bsd-uthread.c: Revert.
11062 * breakpoint.h: Revert.
11063 * breakpoint.c: Revert.
11064 * break-catch-throw.c: Revert.
11065 * break-catch-syscall.c: Revert.
11066 * break-catch-sig.c: Revert.
11067 * blockframe.c: Revert.
11068 * block.c: Revert.
11069 * bfin-tdep.c: Revert.
11070 * bfin-linux-tdep.c: Revert.
11071 * bfd-target.c: Revert.
11072 * bcache.c: Revert.
11073 * ax-general.c: Revert.
11074 * ax-gdb.h: Revert.
11075 * ax-gdb.c: Revert.
11076 * avr-tdep.c: Revert.
11077 * auxv.c: Revert.
11078 * auto-load.c: Revert.
11079 * arm-wince-tdep.c: Revert.
11080 * arm-tdep.c: Revert.
11081 * arm-symbian-tdep.c: Revert.
11082 * arm-pikeos-tdep.c: Revert.
11083 * arm-obsd-tdep.c: Revert.
11084 * arm-nbsd-tdep.c: Revert.
11085 * arm-nbsd-nat.c: Revert.
11086 * arm-linux-tdep.c: Revert.
11087 * arm-linux-nat.c: Revert.
11088 * arm-fbsd-tdep.c: Revert.
11089 * arm-fbsd-nat.c: Revert.
11090 * arm-bsd-tdep.c: Revert.
11091 * arch-utils.c: Revert.
11092 * arc-tdep.c: Revert.
11093 * arc-newlib-tdep.c: Revert.
11094 * annotate.h: Revert.
11095 * annotate.c: Revert.
11096 * amd64-windows-tdep.c: Revert.
11097 * amd64-windows-nat.c: Revert.
11098 * amd64-tdep.c: Revert.
11099 * amd64-sol2-tdep.c: Revert.
11100 * amd64-obsd-tdep.c: Revert.
11101 * amd64-obsd-nat.c: Revert.
11102 * amd64-nbsd-tdep.c: Revert.
11103 * amd64-nbsd-nat.c: Revert.
11104 * amd64-nat.c: Revert.
11105 * amd64-linux-tdep.c: Revert.
11106 * amd64-linux-nat.c: Revert.
11107 * amd64-fbsd-tdep.c: Revert.
11108 * amd64-fbsd-nat.c: Revert.
11109 * amd64-dicos-tdep.c: Revert.
11110 * amd64-darwin-tdep.c: Revert.
11111 * amd64-bsd-nat.c: Revert.
11112 * alpha-tdep.c: Revert.
11113 * alpha-obsd-tdep.c: Revert.
11114 * alpha-nbsd-tdep.c: Revert.
11115 * alpha-mdebug-tdep.c: Revert.
11116 * alpha-linux-tdep.c: Revert.
11117 * alpha-linux-nat.c: Revert.
11118 * alpha-bsd-tdep.c: Revert.
11119 * alpha-bsd-nat.c: Revert.
11120 * aix-thread.c: Revert.
11121 * agent.c: Revert.
11122 * addrmap.c: Revert.
11123 * ada-varobj.c: Revert.
11124 * ada-valprint.c: Revert.
11125 * ada-typeprint.c: Revert.
11126 * ada-tasks.c: Revert.
11127 * ada-lang.c: Revert.
11128 * aarch64-tdep.c: Revert.
11129 * aarch64-ravenscar-thread.c: Revert.
11130 * aarch64-newlib-tdep.c: Revert.
11131 * aarch64-linux-tdep.c: Revert.
11132 * aarch64-linux-nat.c: Revert.
11133 * aarch64-fbsd-tdep.c: Revert.
11134 * aarch64-fbsd-nat.c: Revert.
11135 * aarch32-linux-nat.c: Revert.
11136
d55e5aa6
TT
111372019-04-05 Tom Tromey <tom@tromey.com>
11138
11139 * ft32-tdep.c: Sort headers.
11140 * frv-tdep.c: Sort headers.
11141 * frv-linux-tdep.c: Sort headers.
11142 * frame.c: Sort headers.
11143 * frame-unwind.c: Sort headers.
11144 * frame-base.c: Sort headers.
11145 * fork-child.c: Sort headers.
11146 * findvar.c: Sort headers.
11147 * findcmd.c: Sort headers.
11148 * filesystem.c: Sort headers.
11149 * filename-seen-cache.h: Sort headers.
11150 * filename-seen-cache.c: Sort headers.
11151 * fbsd-tdep.c: Sort headers.
11152 * fbsd-nat.h: Sort headers.
11153 * fbsd-nat.c: Sort headers.
11154 * f-valprint.c: Sort headers.
11155 * f-typeprint.c: Sort headers.
11156 * f-lang.c: Sort headers.
11157 * extension.h: Sort headers.
11158 * extension.c: Sort headers.
11159 * extension-priv.h: Sort headers.
11160 * expprint.c: Sort headers.
11161 * exec.h: Sort headers.
11162 * exec.c: Sort headers.
11163 * exceptions.c: Sort headers.
11164 * event-top.c: Sort headers.
11165 * event-loop.c: Sort headers.
11166 * eval.c: Sort headers.
11167 * elfread.c: Sort headers.
11168 * dwarf2read.h: Sort headers.
11169 * dwarf2read.c: Sort headers.
11170 * dwarf2loc.c: Sort headers.
11171 * dwarf2expr.h: Sort headers.
11172 * dwarf2expr.c: Sort headers.
11173 * dwarf2-frame.c: Sort headers.
11174 * dwarf2-frame-tailcall.c: Sort headers.
11175 * dwarf-index-write.h: Sort headers.
11176 * dwarf-index-write.c: Sort headers.
11177 * dwarf-index-common.c: Sort headers.
11178 * dwarf-index-cache.h: Sort headers.
11179 * dwarf-index-cache.c: Sort headers.
11180 * dummy-frame.c: Sort headers.
11181 * dtrace-probe.c: Sort headers.
11182 * disasm.h: Sort headers.
11183 * disasm.c: Sort headers.
11184 * disasm-selftests.c: Sort headers.
11185 * dictionary.c: Sort headers.
11186 * dicos-tdep.c: Sort headers.
11187 * demangle.c: Sort headers.
11188 * dcache.h: Sort headers.
11189 * dcache.c: Sort headers.
11190 * darwin-nat.h: Sort headers.
11191 * darwin-nat.c: Sort headers.
11192 * darwin-nat-info.c: Sort headers.
11193 * d-valprint.c: Sort headers.
11194 * d-namespace.c: Sort headers.
11195 * d-lang.c: Sort headers.
11196 * ctf.c: Sort headers.
11197 * csky-tdep.c: Sort headers.
11198 * csky-linux-tdep.c: Sort headers.
11199 * cris-tdep.c: Sort headers.
11200 * cris-linux-tdep.c: Sort headers.
11201 * cp-valprint.c: Sort headers.
11202 * cp-support.c: Sort headers.
11203 * cp-namespace.c: Sort headers.
11204 * cp-abi.c: Sort headers.
11205 * corelow.c: Sort headers.
11206 * corefile.c: Sort headers.
11207 * continuations.c: Sort headers.
11208 * completer.h: Sort headers.
11209 * completer.c: Sort headers.
11210 * complaints.c: Sort headers.
11211 * coffread.c: Sort headers.
11212 * coff-pe-read.c: Sort headers.
11213 * cli-out.h: Sort headers.
11214 * cli-out.c: Sort headers.
11215 * charset.c: Sort headers.
11216 * c-varobj.c: Sort headers.
11217 * c-valprint.c: Sort headers.
11218 * c-typeprint.c: Sort headers.
11219 * c-lang.c: Sort headers.
11220 * buildsym.c: Sort headers.
11221 * buildsym-legacy.c: Sort headers.
11222 * build-id.h: Sort headers.
11223 * build-id.c: Sort headers.
11224 * btrace.c: Sort headers.
11225 * bsd-uthread.c: Sort headers.
11226 * breakpoint.h: Sort headers.
11227 * breakpoint.c: Sort headers.
11228 * break-catch-throw.c: Sort headers.
11229 * break-catch-syscall.c: Sort headers.
11230 * break-catch-sig.c: Sort headers.
11231 * blockframe.c: Sort headers.
11232 * block.c: Sort headers.
11233 * bfin-tdep.c: Sort headers.
11234 * bfin-linux-tdep.c: Sort headers.
11235 * bfd-target.c: Sort headers.
11236 * bcache.c: Sort headers.
11237 * ax-general.c: Sort headers.
11238 * ax-gdb.h: Sort headers.
11239 * ax-gdb.c: Sort headers.
11240 * avr-tdep.c: Sort headers.
11241 * auxv.c: Sort headers.
11242 * auto-load.c: Sort headers.
11243 * arm-wince-tdep.c: Sort headers.
11244 * arm-tdep.c: Sort headers.
11245 * arm-symbian-tdep.c: Sort headers.
11246 * arm-pikeos-tdep.c: Sort headers.
11247 * arm-obsd-tdep.c: Sort headers.
11248 * arm-nbsd-tdep.c: Sort headers.
11249 * arm-nbsd-nat.c: Sort headers.
11250 * arm-linux-tdep.c: Sort headers.
11251 * arm-linux-nat.c: Sort headers.
11252 * arm-fbsd-tdep.c: Sort headers.
11253 * arm-fbsd-nat.c: Sort headers.
11254 * arm-bsd-tdep.c: Sort headers.
11255 * arch-utils.c: Sort headers.
11256 * arc-tdep.c: Sort headers.
11257 * arc-newlib-tdep.c: Sort headers.
11258 * annotate.h: Sort headers.
11259 * annotate.c: Sort headers.
11260 * amd64-windows-tdep.c: Sort headers.
11261 * amd64-windows-nat.c: Sort headers.
11262 * amd64-tdep.c: Sort headers.
11263 * amd64-sol2-tdep.c: Sort headers.
11264 * amd64-obsd-tdep.c: Sort headers.
11265 * amd64-obsd-nat.c: Sort headers.
11266 * amd64-nbsd-tdep.c: Sort headers.
11267 * amd64-nbsd-nat.c: Sort headers.
11268 * amd64-nat.c: Sort headers.
11269 * amd64-linux-tdep.c: Sort headers.
11270 * amd64-linux-nat.c: Sort headers.
11271 * amd64-fbsd-tdep.c: Sort headers.
11272 * amd64-fbsd-nat.c: Sort headers.
11273 * amd64-dicos-tdep.c: Sort headers.
11274 * amd64-darwin-tdep.c: Sort headers.
11275 * amd64-bsd-nat.c: Sort headers.
11276 * alpha-tdep.c: Sort headers.
11277 * alpha-obsd-tdep.c: Sort headers.
11278 * alpha-nbsd-tdep.c: Sort headers.
11279 * alpha-mdebug-tdep.c: Sort headers.
11280 * alpha-linux-tdep.c: Sort headers.
11281 * alpha-linux-nat.c: Sort headers.
11282 * alpha-bsd-tdep.c: Sort headers.
11283 * alpha-bsd-nat.c: Sort headers.
11284 * aix-thread.c: Sort headers.
11285 * agent.c: Sort headers.
11286 * addrmap.c: Sort headers.
11287 * ada-varobj.c: Sort headers.
11288 * ada-valprint.c: Sort headers.
11289 * ada-typeprint.c: Sort headers.
11290 * ada-tasks.c: Sort headers.
11291 * ada-lang.c: Sort headers.
11292 * aarch64-tdep.c: Sort headers.
11293 * aarch64-ravenscar-thread.c: Sort headers.
11294 * aarch64-newlib-tdep.c: Sort headers.
11295 * aarch64-linux-tdep.c: Sort headers.
11296 * aarch64-linux-nat.c: Sort headers.
11297 * aarch64-fbsd-tdep.c: Sort headers.
11298 * aarch64-fbsd-nat.c: Sort headers.
11299 * aarch32-linux-nat.c: Sort headers.
11300
699bd4cf
TT
113012019-04-04 Tom Tromey <tom@tromey.com>
11302
11303 * varobj.c (varobj_create): Update.
11304 * rust-exp.y (struct rust_parser) <update_innermost_block,
11305 lookup_symbol>: New methods.
11306 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11307 Rename.
11308 (rust_parser::rust_lookup_type)
11309 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11310 * printcmd.c (display_command, do_one_display): Update.
11311 * parser-defs.h (struct parser_state) <parser_state>: Add
11312 "tracker" parameter.
11313 (block_tracker): New member.
11314 (class innermost_block_tracker) <innermost_block_tracker>: Add
11315 "types" parameter.
11316 <reset>: Remove method.
11317 (innermost_block): Don't declare.
11318 (null_post_parser): Update.
11319 * parse.c (innermost_block): Remove global.
11320 (write_dollar_variable): Update.
11321 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11322 Remove "tracker_types" parameter.
11323 (parse_expression): Add "tracker" parameter.
11324 (parse_expression_for_completion): Update.
11325 (null_post_parser): Add "tracker" parameter.
11326 * p-exp.y: Update rules.
11327 * m2-exp.y: Update rules.
11328 * language.h (struct language_defn) <la_post_parser>: Add
11329 "tracker" parameter.
11330 * go-exp.y: Update rules.
11331 * f-exp.y: Update rules.
11332 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11333 parameter.
11334 * d-exp.y: Update rules.
11335 * c-exp.y: Update rules.
11336 * breakpoint.c (set_breakpoint_condition): Create an
11337 innermost_block_tracker.
11338 (watch_command_1): Likewise.
11339 * ada-lang.c (resolve): Add "tracker" parameter.
11340 (resolve_subexp): Likewise.
11341 * ada-exp.y (write_var_from_sym): Update.
11342
dac43e32
TT
113432019-04-04 Tom Tromey <tom@tromey.com>
11344
11345 * type-stack.h: New file.
11346 * type-stack.c: New file.
11347 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11348 type-stack.h.
11349 (insert_into_type_stack, insert_type, push_type, push_type_int)
11350 (insert_type_address_space, pop_type, pop_type_int)
11351 (pop_typelist, pop_type_stack, append_type_stack)
11352 (push_type_stack, get_type_stack, push_typelist)
11353 (follow_type_instance_flags, follow_types): Don't declare.
11354 * parse.c (type_stack): Remove global.
11355 (parse_exp_in_context): Update.
11356 (insert_into_type_stack, insert_type, push_type, push_type_int)
11357 (insert_type_address_space, pop_type, pop_type_int)
11358 (pop_typelist, pop_type_stack, append_type_stack)
11359 (push_type_stack, get_type_stack, push_typelist)
11360 (follow_type_instance_flags, follow_types): Remove (moved to
11361 type-stack.c).
11362 * f-exp.y (type_stack): New global.
11363 Update rules.
11364 (push_kind_type, f_parse): Update.
11365 * d-exp.y (type_stack): New global.
11366 Update rules.
11367 (d_parse): Update.
11368 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11369 Update rules.
11370 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11371 (HFILES_NO_SRCDIR): Add type-stack.h.
11372
2a612529
TT
113732019-04-04 Tom Tromey <tom@tromey.com>
11374
11375 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11376 (rust_parser::convert_ast_to_expression, rust_parse)
11377 (rust_lex_test_completion, rust_lex_tests): Update.
11378 * parser-defs.h (struct expr_completion_state): New.
11379 (struct parser_state) <parser_state>: Add completion parameter.
11380 <mark_struct_expression, mark_completion_tag>: New methods.
11381 <parse_completion, m_completion_state>: New members.
11382 (prefixify_expression, null_post_parser): Update.
11383 (mark_struct_expression, mark_completion_tag): Don't declare.
11384 * parse.c (parse_completion, expout_last_struct)
11385 (expout_tag_completion_type, expout_completion_name): Remove
11386 globals.
11387 (parser_state::mark_struct_expression)
11388 (parser_state::mark_completion_tag): Now methods.
11389 (prefixify_expression): Add last_struct parameter.
11390 (prefixify_subexp): Likewise.
11391 (parse_exp_1): Update.
11392 (parse_exp_in_context): Add cstate parameter. Update.
11393 (parse_expression_for_completion): Create an
11394 expr_completion_state.
11395 (null_post_parser): Add "completion" parameter.
11396 * p-exp.y: Update rules.
11397 (yylex): Update.
11398 * language.h (struct language_defn) <la_post_parser>: Add
11399 "completing" parameter.
11400 * go-exp.y: Update rules.
11401 (lex_one_token): Update.
11402 * expression.h (parse_completion): Don't declare.
11403 * d-exp.y: Update rules.
11404 (lex_one_token): Update rules.
11405 * c-exp.y: Update rules.
11406 (lex_one_token): Update.
11407 * ada-lang.c (resolve): Add "parse_completion" parameter.
11408 (resolve_subexp): Likewise.
11409 (ada_resolve_function): Likewise.
11410
43476f0b
TT
114112019-04-04 Tom Tromey <tom@tromey.com>
11412
11413 * parser-defs.h (struct parser_state) <start_arglist,
11414 end_arglist>: New methods.
11415 <arglist_len, m_funcall_chain>: New members.
11416 (arglist_len, start_arglist, end_arglist): Don't declare.
11417 * parse.c (arglist_len, funcall_chain): Remove global.
11418 (start_arglist, end_arglist): Remove functions.
11419 (parse_exp_in_context): Update.
11420 * p-exp.y: Update rules.
11421 * m2-exp.y: Update rules.
11422 * go-exp.y: Update rules.
11423 * f-exp.y: Update rules.
11424 * d-exp.y: Update rules.
11425 * c-exp.y: Update rules.
11426
5776fca3
TT
114272019-04-04 Tom Tromey <tom@tromey.com>
11428
11429 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11430 lex_operator, push_back>: New methods.
11431 Update all rules.
11432 (rust_parser::lex_hex, lex_escape): Rename and update.
11433 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11434 (rust_parser::lex_operator): Rename and update.
11435 (rust_parser::lex_number, rustyylex, rustyyerror)
11436 (rust_lex_test_init, rust_lex_test_sequence)
11437 (rust_lex_test_push_back, rust_lex_tests): Update.
11438 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11439 parameter.
11440 <lexptr, prev_lexptr>: New members.
11441 (lexptr, prev_lexptr): Don't declare.
11442 * parse.c (lexptr, prev_lexptr): Remove globals.
11443 (parse_exp_in_context): Update.
11444 * p-exp.y (yylex, yyerror): Update.
11445 * m2-exp.y (parse_number, yylex, yyerror): Update.
11446 * go-exp.y (lex_one_token, yyerror): Update.
11447 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11448 * d-exp.y (lex_one_token, yyerror): Update.
11449 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11450 (lex_one_token, yyerror): Update.
11451 * ada-lex.l (YY_INPUT): Update.
11452 (rewind_to_char): Update.
11453 * ada-exp.y (yyerror): Update.
11454
8621b685
TT
114552019-04-04 Tom Tromey <tom@tromey.com>
11456
11457 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11458 * parser-defs.h (struct parser_state) <parser_state>: Add new
11459 parameter.
11460 <comma_terminates>: New member.
11461 (comma_terminates): Don't declare global.
11462 * parse.c (comma_terminates): Remove global.
11463 (parse_exp_in_context): Update.
11464 * p-exp.y (yylex): Update.
11465 * m2-exp.y (yylex): Update.
11466 * go-exp.y (lex_one_token): Update.
11467 * f-exp.y (yylex): Update.
11468 * d-exp.y (lex_one_token): Update.
11469 * c-exp.y (lex_one_token): Update.
11470 * ada-lex.l: Update.
11471
28aaf3fd
TT
114722019-04-04 Tom Tromey <tom@tromey.com>
11473
11474 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11475 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11476 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11477 * parser-defs.h (paren_depth): Don't declare.
11478 * parse.c (paren_depth): Remove global.
11479 (parse_exp_in_context): Update.
11480 * p-exp.y (paren_depth): New global.
11481 (pascal_parse): Initialize it.
11482 * m2-exp.y (paren_depth): New global.
11483 (m2_parse): Initialize it.
11484 * go-exp.y (paren_depth): New global.
11485 (go_parse): Initialize it.
11486 * f-exp.y (paren_depth): New global.
11487 (f_parse): Initialize it.
11488 * d-exp.y (paren_depth): New global.
11489 (d_parse): Initialize it.
11490 * c-exp.y (paren_depth): New global.
11491 (c_parse): Initialize it.
11492 * ada-lex.l (paren_depth): New global.
11493 (lexer_init): Initialize it.
11494
1e58a4a4
TT
114952019-04-04 Tom Tromey <tom@tromey.com>
11496
11497 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11498 (rust_parser::convert_ast_to_type)
11499 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11500 * parser-defs.h (struct parser_state) <parser_state>: Add
11501 parameters. Initialize new members.
11502 <expression_context_block, expression_context_pc>: New members.
11503 * parse.c (expression_context_block, expression_context_pc):
11504 Remove globals.
11505 (parse_exp_in_context): Update.
11506 * p-exp.y: Update all rules.
11507 (yylex): Update.
11508 * m2-exp.y: Update all rules.
11509 (yylex): Update.
11510 * go-exp.y (yylex): Update.
11511 * f-exp.y (yylex): Update.
11512 * d-exp.y: Update all rules.
11513 (yylex): Update.
11514 * c-exp.y: Update all rules.
11515 (lex_one_token, classify_name, yylex, c_parse): Update.
11516 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11517
37eedb39
TT
115182019-04-04 Tom Tromey <tom@tromey.com>
11519
11520 * gdbarch.h, gdbarch.c: Rebuild.
11521 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11522 * stap-probe.h:
11523 (struct stap_parse_info): Replace "parser_state" with
11524 "expr_builder".
11525 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11526 (parser_state): New class.
11527 * parse.c (expr_builder): Rename.
11528 (expr_builder::release): Rename.
11529 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11530 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11531 (write_exp_elt_longcst, write_exp_elt_floatcst)
11532 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11533 (write_exp_string_vector, write_exp_bitstring)
11534 (write_exp_msymbol, mark_struct_expression)
11535 (write_dollar_variable)
11536 (insert_type_address_space, increase_expout_size): Replace
11537 "parser_state" with "expr_builder".
11538 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11539 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11540 "parser_state" with "expr_builder".
11541
73923d7e
TT
115422019-04-04 Tom Tromey <tom@tromey.com>
11543
11544 * rust-exp.y: Replace "parse_language" with method call.
11545 * p-exp.y:
11546 (yylex): Replace "parse_language" with method call.
11547 * m2-exp.y:
11548 (yylex): Replace "parse_language" with method call.
11549 * go-exp.y (classify_name): Replace "parse_language" with method
11550 call.
11551 * f-exp.y (yylex): Replace "parse_language" with method call.
11552 * d-exp.y (lex_one_token): Replace "parse_language" with method
11553 call.
11554 * c-exp.y:
11555 (lex_one_token, classify_name, yylex): Replace "parse_language"
11556 with method call.
11557 * ada-exp.y (find_primitive_type, type_char)
11558 (type_system_address): Replace "parse_language" with method call.
11559
fa9f5be6
TT
115602019-04-04 Tom Tromey <tom@tromey.com>
11561
11562 * rust-exp.y: Replace "parse_gdbarch" with method call.
11563 * parse.c (write_dollar_variable, insert_type_address_space):
11564 Replace "parse_gdbarch" with method call.
11565 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11566 call.
11567 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11568 call.
11569 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11570 "parse_gdbarch" with method call.
11571 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11572 with method call.
11573 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11574 "parse_gdbarch" with method call.
11575 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11576 "parse_gdbarch" with method call.
11577 * c-exp.y (parse_type, parse_number, classify_name): Replace
11578 "parse_gdbarch" with method call.
11579 * ada-lex.l: Replace "parse_gdbarch" with method call.
11580 * ada-exp.y (parse_type, find_primitive_type, type_char)
11581 (type_system_address): Replace "parse_gdbarch" with method call.
11582
1201a264
TT
115832019-04-04 Tom Tromey <tom@tromey.com>
11584
11585 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11586 * stap-probe.c (stap_parse_argument): Update.
11587 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11588 initial_size parameter.
11589 * rust-exp.y (rust_lex_tests): Update.
11590 * parse.c (parser_state): Update.
11591 (parse_exp_in_context): Update.
11592 * parser-defs.h (struct parser_state) <parser_state>: Remove
11593 "initial_size" parameter.
11594
e3980ce2
TT
115952019-04-04 Tom Tromey <tom@tromey.com>
11596
11597 * parser-defs.h (increase_expout_size): Don't declare.
11598 * parse.c (increase_expout_size): Now static.
11599
e9f8e3f1
TS
116002019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11601
11602 * gnu-nat.c (gnu_nat_target::wait): Fix
11603 target_waitstatus_to_string call.
11604
d7df6549
AB
116052019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11606
11607 * eval.c (evaluate_subexp_standard): Handle internal functions
11608 during Fortran function call handling.
11609
8bdc1658
AB
116102019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11611
11612 * NEWS: Mention new internal functions.
11613 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11614 (read_base_type): Use dwarf2_init_complex_target_type.
11615 * value.c (creal_internal_fn): New function.
11616 (cimag_internal_fn): New function.
11617 (_initialize_values): Register new internal functions.
11618
c29705b7
PW
116192019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11620
11621 * infrun.c (stop_all_threads): If debug_infrun, always
11622 trace the wait status after wait_one, using
11623 target_waitstatus_to_string and target_pid_to_str.
11624 (handle_inferior_event): Replace various trace of
11625 wait status kind by a single trace.
11626 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11627 wait status kind image by target_waitstatus_to_string.
11628 * target/waitstatus.c (target_waitstatus_to_string): Fix
11629 obsolete comment.
11630
05caa1d2
TT
116312019-04-01 Tom Tromey <tromey@adacore.com>
11632
11633 PR symtab/23331:
11634 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11635
9d1447e0
SDJ
116362019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11637 Pedro Alves <palves@redhat.com>
11638
11639 * top.c (quit_force): Call 'finalize_values'.
11640 * value.c (finalize_values): New function.
11641 * value.h (finalize_values): Declare.
11642
7734102d
EZ
116432019-03-30 Eli Zaretskii <eliz@gnu.org>
11644
11645 * NEWS: Announce $_gdb_major and $_gdb_minor.
11646
11647 * top.c (init_gdb_version_vars): New function.
11648 (gdb_init): Call init_gdb_version_vars.
11649
188e1fa9
TT
116502019-03-29 Tom Tromey <tromey@adacore.com>
11651
11652 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11653 help text. Remove dead code.
11654
2880242d
KS
116552019-03-29 Keith Seitz <keiths@redhat.com>
11656
11657 From Siddhesh Poyarekar:
11658 * f-lang.h (f77_get_upperbound): Return LONGEST.
11659 (f77_get_lowerbound): Likewise.
11660 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11661 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11662 print them.
11663 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11664 plongest to format print it.
11665 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11666 (f77_get_upperbound): Likewise.
11667 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11668 LOWER_BOUND to LONGEST.
11669 (f77_create_arrayprint_offset_tbl): Likewise.
11670
cc1defb1
KS
116712019-03-29 Keith Seitz <keiths@redhat.com>
11672
11673 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11674 %s/pulongest for TYPE_LENGTH instead of %d in format
11675 strings.
11676 * ada-typerint.c (ada_print_type): Likewise.
11677 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11678 * compile/compile-c-support.c (generate_register_struct): Likewise.
11679 * gdbtypes.c (recursive_dump_type): Likewise.
11680 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11681 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11682 instead of %d in format strings.
11683 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11684 to std::min to ULONGEST.
11685 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11686 instead of %d in format strings.
11687 * tracepoint.c (info_scope_command): Likewise.
11688 * typeprint.c (print_offset_data::update)
11689 (print_offset_data::finish): Likewise.
11690 * xtensa-tdep.c (xtensa_store_return_value)
11691 (xtensa_push_dummy_call): Likewise.
11692
e432ccf1
JT
116932019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11694
11695 * windows-nat.c (display_selector): Fixed format specifications
11696 for 64-bit Cygwin.
11697
65d2b333
PW
116982019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11699
11700 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11701
f489207e
SL
117022019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11703
11704 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11705 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11706 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11707 (nios2_linux_init_abi): Install it.
11708
bffa1015
AH
117092019-03-28 Alan Hayward <alan.hayward@arm.com>
11710
11711 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11712
fc96163a
AH
117132019-03-28 Alan Hayward <alan.hayward@arm.com>
11714
11715 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11716
20dc7e9b
PW
117172019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11718 Tom Tromey <tromey@adacore.com>
11719
11720 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11721
7f5331a8
JB
117222019-03-26 Joel Brobecker <brobecker@adacore.com>
11723
11724 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11725 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11726 method to compute the bounds of range types. Also print "[evaluated]"
11727 if the bounds' values come from a dynamic evaluation.
11728
18c77628
AB
117292019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11730
11731 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11732 whitespace when pretty printing is on.
11733
53c973f2
AH
117342019-03-26 Alan Hayward <alan.hayward@arm.com>
11735
e79be6e5 11736 * ppc-linux-nat.c: Add include.
53c973f2 11737
d851aa71
AH
117382019-03-26 Alan Hayward <alan.hayward@arm.com>
11739
e79be6e5 11740 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11741
2fe7bab7
AH
117422019-03-26 Alan Hayward <alan.hayward@arm.com>
11743
e79be6e5 11744 * arm-linux-nat.c: Add include.
2fe7bab7 11745
068ef30e
SM
117462019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11747
11748 * source-cache.c (source_cache::get_source_lines): Re-read
11749 fullname after calling open_source_file.
11750
81a24d04
JB
117512019-03-25 John Baldwin <jhb@FreeBSD.org>
11752
11753 * NEWS: Mention TLS support for FreeBSD.
11754
79e7ae11
TT
117552019-03-25 Tom Tromey <tromey@adacore.com>
11756
11757 * minsyms.c (BUNCH_SIZE): Update comment.
11758 (~minimal_symbol_reader): Remove old comment.
11759 (compact_minimal_symbols): Update comment.
11760 (minimal_symbol_reader::install): Remove old comment. Update
11761 other comments.
11762
d45963c2
AH
117632019-03-25 Alan Hayward <alan.hayward@arm.com>
11764
11765 * s390-linux-nat.c: Add include.
11766
0f83012e
AH
117672019-03-25 Alan Hayward <alan.hayward@arm.com>
11768
11769 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11770 Call linux_get_hwcap.
11771 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11772 Likewise.
11773 (aarch64_linux_get_hwcap): Remove function.
11774 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11775 declaration.
11776 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11777 linux_get_hwcap.
11778 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11779 * linux-tdep.c (linux_get_hwcap): Add function.
11780 (linux_get_hwcap2): Likewise.
11781 * linux-tdep.h (linux_get_hwcap): Add declaration.
11782 (linux_get_hwcap2): Likewise.
11783 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11784 (ppc_linux_get_hwcap2): Likewise.
11785 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11786 linux_get_hwcap.
11787 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11788 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11789 (ppc_linux_nat_target::read_description): Likewise.
11790 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11791 * s390-linux-nat.c: Likewise.
11792 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11793
6640a367
TT
117942019-03-24 Tom Tromey <tom@tromey.com>
11795
11796 * ada-lang.c (standard_lookup): Simplify initialization.
11797 (ada_lookup_symbol_nonlocal): Simplify return.
11798 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11799 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11800 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11801 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11802 initialization.
11803 * solib.c (solib_global_lookup): Simplify.
11804 * symtab.c (null_block_symbol): Remove.
11805 (symbol_cache_lookup): Simplify returns.
11806 (lookup_language_this): Simplify returns.
11807 (lookup_symbol_aux): Simplify return.
11808 (lookup_local_symbol): Simplify returns.
11809 (lookup_global_symbol_from_objfile): Simplify return.
11810 (lookup_symbol_in_objfile_symtabs)
11811 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11812 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11813 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11814 * cp-namespace.c (cp_lookup_bare_symbol)
11815 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11816 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11817 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11818 (cp_lookup_symbol_via_imports): Simplify initialization.
11819 (find_symbol_in_baseclass): Likewise.
11820 * symtab.h (null_block_symbol): Remove.
11821 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11822 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11823 (d_lookup_symbol_module): Likewise.
11824 (find_symbol_in_baseclass): Simplify initialization.
11825
a930ebcd
TT
118262019-03-24 Tom Tromey <tom@tromey.com>
11827
11828 * expression.h: Don't include symtab.h.
11829 (struct block): Forward declare.
11830
582942f4
TT
118312019-03-24 Tom Tromey <tom@tromey.com>
11832
11833 * c-exp.y (typebase): Remove casts.
11834 * gdbtypes.c (lookup_unsigned_typename, )
11835 (lookup_signed_typename): Remove cast.
11836 * eval.c (parse_to_comma_and_eval): Remove cast.
11837 * parse.c (write_dollar_variable): Remove cast.
11838 * block.h (struct block) <superblock>: Now const.
11839 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11840 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11841 (map_block): Make "block" const.
11842 * symfile.h (struct quick_symbol_functions)
11843 <map_matching_symbols>: Constify block argument to "callback".
11844 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11845 const.
11846 (find_pc_sect_compunit_symtab): Make "b" const.
11847 (find_symbol_at_address): Likewise.
11848 (search_symbols): Likewise.
11849 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11850 (dw2_debug_names_lookup_symbol): Likewise.
11851 (dw2_map_matching_symbols): Update.
11852 * p-valprint.c (pascal_val_print): Remove "block".
11853 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11854 (aux_add_nonlocal_symbols): Make "block" const.
11855 (resolve_subexp): Remove cast.
11856 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11857 const.
11858 (iterate_over_file_blocks): Likewise.
11859 * f-exp.y (%union) <bval>: Remove.
11860 * coffread.c (patch_opaque_types): Make "b" const.
11861 * spu-tdep.c (spu_catch_start): Make "block" const.
11862 * c-valprint.c (print_unpacked_pointer): Remove "block".
11863 * symmisc.c (dump_symtab_1): Make "b" const.
11864 (block_depth): Make "block" const.
11865 * d-exp.y (%union) <bval>: Remove.
11866 * cp-support.h (cp_lookup_rtti_type): Update.
11867 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11868 * psymtab.c (psym_lookup_symbol): Make "block" const.
11869 (maintenance_check_psymtabs): Make "b" const.
11870 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11871 (enumerate_locals, enumerate_args): Update.
11872 * python/py-symtab.c (stpy_global_block): Make "block" const.
11873 (stpy_static_block): Likewise.
11874 * inline-frame.c (block_starting_point_at): Make "new_block"
11875 const.
11876 * block.c (find_block_in_blockvector): Make return type const.
11877 (blockvector_for_pc_sect): Make "b" const.
11878 (find_block_in_blockvector): Make "b" const.
11879
7ad417dd
TT
118802019-03-23 Tom Tromey <tom@tromey.com>
11881
11882 * varobj.c (varobj_create): Update.
11883 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11884 * printcmd.c (display_command, do_one_display): Don't reset
11885 innermost_block.
11886 * parser-defs.h (enum innermost_block_tracker_type): Move to
11887 expression.h.
11888 (innermost_block): Update comment.
11889 * parse.c (parse_exp_1): Add tracker_types parameter.
11890 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11891 tracker_types parameter. Reset innermost_block.
11892 (parse_exp_in_context): Remove.
11893 (parse_expression_for_completion): Update.
11894 * objfiles.c (~objfile): Don't reset expression_context_block or
11895 innermost_block.
11896 * expression.h (enum innermost_block_tracker_type): Move from
11897 parser-defs.h.
11898 (parse_exp_1): Add tracker_types parameter.
11899 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11900 reset innermost_block.
11901
b366c208
TT
119022019-03-23 Tom Tromey <tom@tromey.com>
11903
11904 * objfiles.h: Include bcache.h.
11905
9bb9b2f9
TT
119062019-03-23 Tom Tromey <tom@tromey.com>
11907
11908 * linespec.c (get_current_search_block): Use
11909 scoped_restore_current_language.
11910 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11911
59c28372
AH
119122019-03-22 Alan Hayward <alan.hayward@arm.com>
11913 Jiong Wang <jiong.wang@arm.com>
11914
11915 * aarch64-linux-tdep.c
11916 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11917 section.
11918 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11919
17e116a7
AH
119202019-03-22 Alan Hayward <alan.hayward@arm.com>
11921 Jiong Wang <jiong.wang@arm.com>
11922
11923 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11924 instructions.
11925 (aarch64_analyze_prologue_test): Add PACIASP test.
11926 (aarch64_prologue_prev_register): Unmask PC value.
11927
11e1b75f
AH
119282019-03-22 Alan Hayward <alan.hayward@arm.com>
11929 Jiong Wang <jiong.wang@arm.com>
11930
11931 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11932 (aarch64_dwarf2_prev_register): Unmask PC value.
11933 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11934 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11935 DW_CFA_AARCH64_negate_ra_state.
11936 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11937
34dcc7cf
AH
119382019-03-22 Alan Hayward <alan.hayward@arm.com>
11939 Jiong Wang <jiong.wang@arm.com>
11940
11941 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11942 registers.
11943 (aarch64_pseudo_register_name): Likewise.
11944 (aarch64_pseudo_register_type): Likewise.
11945 (aarch64_pseudo_register_reggroup_p): Likewise.
11946 (aarch64_gdbarch_init): Add pauth registers.
11947 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11948 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11949 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11950 (struct gdbarch_tdep): Add regnum for ra_state.
11951
1ef53e6b
AH
119522019-03-22 Alan Hayward <alan.hayward@arm.com>
11953 Jiong Wang <jiong.wang@arm.com>
11954
11955 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11956
76bed0fd
AH
119572019-03-22 Alan Hayward <alan.hayward@arm.com>
11958 Jiong Wang <jiong.wang@arm.com>
11959
11960 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11961 function.
11962 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11963 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11964 (aarch64_gdbarch_init): Add puth registers.
11965 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11966 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11967 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11968
ee4fbcfa
AH
119692019-03-22 Alan Hayward <alan.hayward@arm.com>
11970 Jiong Wang <jiong.wang@arm.com>
11971
11972 * aarch64-linux-nat.c
11973 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11974 * aarch64-linux-tdep.c
11975 (aarch64_linux_core_read_description): Likewise.
11976 (aarch64_linux_get_hwcap): New function.
11977 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11978 (aarch64_linux_get_hwcap): New declaration.
11979
6dc0ebde
AH
119802019-03-22 Alan Hayward <alan.hayward@arm.com>
11981 Jiong Wang <jiong.wang@arm.com>
11982
11983 * aarch64-linux-nat.c
11984 (aarch64_linux_nat_target::read_description): Add pauth param.
11985 * aarch64-linux-tdep.c
11986 (aarch64_linux_core_read_description): Likewise.
11987 * aarch64-tdep.c (struct target_desc): Add in pauth.
11988 (aarch64_read_description): Add pauth param.
11989 (aarch64_gdbarch_init): Likewise.
11990 * aarch64-tdep.h (aarch64_read_description): Likewise.
11991 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11992 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11993 * features/Makefile: Add new files.
11994 * features/aarch64-pauth.c: New file.
11995 * features/aarch64-pauth.xml: New file.
11996
595915c1
TT
119972019-03-20 Tom Tromey <tromey@adacore.com>
11998
11999 * infrun.c (handle_inferior_event): Rename from
12000 handle_inferior_event_1. Create a scoped_value_mark.
12001 (handle_inferior_event): Remove.
12002
4c7d57e7
TT
120032019-03-19 Tom Tromey <tromey@adacore.com>
12004
12005 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12006 * infrun.h (print_stop_event): Add "displays" parameter.
12007 * infrun.c (print_stop_event): Add "displays" parameter.
12008
cb246234
PA
120092019-03-19 Pedro Alves <palves@redhat.com>
12010
12011 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12012 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12013 to -1. Fix TABs vs spaces.
12014 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12015 * tui/tui-out.h (tui_ui_out) Add intro comments.
12016 <m_line, m_start_of_line>: In-class initialize, and add describing
12017 comment.
12018
3a0e45b2
AH
120192019-03-18 Alan Hayward <alan.hayward@arm.com>
12020
12021 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12022 variable names.
12023 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12024
5371b850
PA
120252019-03-18 Pedro Alves <palves@redhat.com>
12026 Eli Zaretskii <eliz@gnu.org>
12027
12028 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12029 m_line and m_start_of_line.
12030
b17c4cd0
EZ
120312019-03-18 Eli Zaretskii <eliz@gnu.org>
12032
12033 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12034 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12035 it returns a newline. This fixes a regression in TU mode, whereby
12036 the next line is output on the same screen line as the user input.
12037
4bd56d18
TT
120382019-03-18 Tom Tromey <tromey@adacore.com>
12039
12040 * minsyms.c (minimal_symbol_reader::install): Remove call to
12041 obstack_blank.
12042
55c10aca
PA
120432019-03-18 Pedro Alves <palves@redhat.com>
12044
12045 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12046 New globals.
12047 (apply_style): New, factored out from ...
12048 (apply_ansi_escape): ... this. Handle reverse video mode.
12049 (tui_set_reverse_mode): New function.
12050 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12051 * tui/tui-winsource.c (tui_show_source_line): Use
12052 tui_set_reverse_mode instead of setting A_STANDOUT.
12053 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12054 New setter methods.
12055
647bb750
HD
120562019-03-18 Hannes Domani <ssbssa@yahoo.de>
12057
12058 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12059 Handle tabs.
12060
bff8c71f
TT
120612019-03-18 Tom Tromey <tromey@adacore.com>
12062
12063 * ada-lang.c (empty_array): Add "high" parameter.
12064 (ada_evaluate_subexp): Update.
12065
58785d98
ST
120662019-03-17 Sergei Trofimovich <siarheit@google.com>
12067
12068 * unittests/string_view-selftests.c: Define
12069 _initialize_string_view_selftests unconditionally.
12070
d4cbef22
ВМ
120712019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12072
12073 PR gdb/24350
12074 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12075
fce4c071
ВМ
120762019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12077
12078 PR gdb/24351
12079 * windows-nat.c (display_selector): Fix format specifiers.
12080
f7f0a123
EZ
120812019-03-17 Eli Zaretskii <eliz@gnu.org>
12082
12083 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12084 tui_refill_source_window instead of tui_refresh_win, to update the
12085 current execution line. This fixes redisplay of the current line
12086 when stepping through the code with "next" or "step".
12087
ab42892f
EZ
120882019-03-16 Eli Zaretskii <eliz@gnu.org>
12089
12090 * source-cache.c (source_cache::get_source_lines): Call
12091 find_source_lines to initialize s->nlines. This fixes vertical
12092 scrolling of TUI source window when the DOWN arrow is pressed.
12093
8d8c087f
PW
120942019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12095
12096 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12097 linux-thread-db.c (_initialize_thread_db): Likewise.
12098
798e1c30
EZ
120992019-03-16 Eli Zaretskii <eliz@gnu.org>
12100
12101 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12102 wclrtoeol in tui_show_source_line". This reverts changes made in
12103 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12104
eefba3da
TT
121052019-03-15 Tom Tromey <tom@tromey.com>
12106
12107 * symtab.h (struct minimal_symbol): Derive from
12108 general_symbol_info.
12109 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12110 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12111 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12112 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12113 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12114 (MSYMBOL_SEARCH_NAME): Update.
12115 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12116 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12117 * minsyms.c (minimal_symbol_reader::record_full): Update.
12118
0de2420c
TT
121192019-03-15 Tom Tromey <tom@tromey.com>
12120
12121 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12122
042d75e4
TT
121232019-03-15 Tom Tromey <tom@tromey.com>
12124
12125 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12126 unique_xmalloc_ptr.
12127 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12128 Update.
12129 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12130 (build_minimal_symbol_hash_tables)
12131 (minimal_symbol_reader::install): Update.
12132
db92718b
TT
121332019-03-15 Tom Tromey <tom@tromey.com>
12134
12135 * symtab.c (create_demangled_names_hash): Update.
12136 (symbol_set_names): Update.
12137 * objfiles.h (struct objfile_per_bfd_storage)
12138 <demangled_names_hash>: Now an htab_up.
12139 * objfiles.c (objfile_per_bfd_storage): Simplify.
12140
d6797f46
TT
121412019-03-15 Tom Tromey <tom@tromey.com>
12142
12143 * objfiles.h (struct objfile_per_bfd_storage): Declare
12144 destructor.
12145 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12146 New.
12147 (get_objfile_bfd_data): Use new. Don't initialize
12148 language_of_main.
12149 (free_objfile_per_bfd_storage): Remove.
12150 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12151
741d7538
TT
121522019-03-15 Tom Tromey <tom@tromey.com>
12153
12154 * symfile.c (reread_symbols): Update.
12155 * objfiles.c (objfile::objfile): Update.
12156 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12157 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12158 comment.
12159 (minimal_symbol_reader::install): Update.
12160 (terminate_minimal_symbol_table): Remove.
12161 * jit.c (jit_object_close_impl): Update.
12162
788c80d1
TT
121632019-03-15 Tom Tromey <tom@tromey.com>
12164
12165 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12166 initializations.
12167
1b7a07cb
TT
121682019-03-15 Tom Tromey <tom@tromey.com>
12169
12170 * objfiles.h (struct objfile_per_bfd_storage)
12171 <demangled_hash_languages>: Now a bitset.
12172 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12173 (lookup_minimal_symbol): Update.
12174
3db066bc
TT
121752019-03-15 Tom Tromey <tom@tromey.com>
12176
12177 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12178 Don't return the symbol.
12179 * coffread.c (record_minimal_symbol): Use record_full.
12180
3fff2c37
EZ
121812019-03-14 Eli Zaretskii <eliz@gnu.org>
12182
12183 The MS-Windows port of ncurses fails to switch to a color pair if
12184 one or both of the colors are the implicit default colors. This
12185 change records the default colors when TUI is initialized, and
12186 then specifies them explicitly when a color pair uses the default
12187 colors. This allows color styling in TUI mode on MS-Windows.
12188
12189 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12190 ncurses_norm_attr.
12191 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12192 colors in ncurses_norm_attr.
12193 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12194 "none", replace it with the default color recorded in
12195 ncurses_norm_attr.
12196
3b336828
TT
121972019-03-14 Tom Tromey <tromey@adacore.com>
12198
12199 * source-cache.h (class source_cache) <get_source_lines>: Return
12200 std::string.
12201 * source-cache.c (source_cache::extract_lines): Handle case where
12202 first_pos==npos. Return std::string.
12203 (source_cache::get_source_lines): Update.
12204
d085f989
TT
122052019-03-14 Tom Tromey <tromey@adacore.com>
12206
12207 * NEWS: Add item for "style sources" commands.
12208 * source-cache.c (source_cache::get_source_lines): Check
12209 source_styling.
12210 * cli/cli-style.c (source_styling): New global.
12211 (_initialize_cli_style): Add "style sources" commands.
12212 (show_style_sources): New function.
12213 * cli/cli-style.h (source_styling): Declare.
12214
6f11e682
TT
122152019-03-14 Pedro Alves <palves@redhat.com>
12216 Tom Tromey <tromey@adacore.com>
12217
12218 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12219 * tui/tui-winsource.c (tui_refill_source_window): New function,
12220 from...
12221 (tui_horizontal_source_scroll): ... here. Move some logic.
12222 * cli/cli-style.c (set_style_enabled): Notify new observable.
12223 * tui/tui-hooks.c (tui_redisplay_source): New function.
12224 (tui_attach_detach_observers): Attach or detach
12225 tui_redisplay_source.
12226 * observable.h (source_styling_changed): New observable.
12227 * observable.c: Define source_styling_changed observable.
12228
a068643d
TT
122292019-03-13 Tom Tromey <tromey@adacore.com>
12230
12231 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12232 (i386_gnu_nat_target::store_registers): Update.
12233 * target-debug.h (target_debug_print_std_string): New macro.
12234 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12235 * windows-tdep.c (display_one_tib): Update.
12236 * tui/tui-stack.c (tui_make_status_line): Update.
12237 * top.c (print_inferior_quit_action): Update.
12238 * thread.c (thr_try_catch_cmd): Update.
12239 (add_thread_with_info): Update.
12240 (thread_target_id_str): Update.
12241 (thr_try_catch_cmd): Update.
12242 (thread_command): Update.
12243 (thread_find_command): Update.
12244 * record-btrace.c (record_btrace_target::info_record)
12245 (record_btrace_resume_thread, record_btrace_target::resume)
12246 (record_btrace_cancel_resume, record_btrace_step_thread)
12247 (record_btrace_target::wait, record_btrace_target::wait)
12248 (record_btrace_target::wait, record_btrace_target::stop): Update.
12249 * progspace.c (print_program_space): Update.
12250 * process-stratum-target.c
12251 (process_stratum_target::thread_address_space): Update.
12252 * linux-fork.c (linux_fork_mourn_inferior)
12253 (detach_checkpoint_command, info_checkpoints_command)
12254 (linux_fork_context): Update.
12255 (linux_fork_detach): Update.
12256 (class scoped_switch_fork_info): Update.
12257 (delete_checkpoint_command): Update.
12258 * infrun.c (follow_fork_inferior): Update.
12259 (follow_fork_inferior): Update.
12260 (proceed_after_vfork_done): Update.
12261 (handle_vfork_child_exec_or_exit): Update.
12262 (follow_exec): Update.
12263 (displaced_step_prepare_throw): Update.
12264 (displaced_step_restore): Update.
12265 (start_step_over): Update.
12266 (resume_1): Update.
12267 (clear_proceed_status_thread): Update.
12268 (proceed): Update.
12269 (print_target_wait_results): Update.
12270 (do_target_wait): Update.
12271 (context_switch): Update.
12272 (stop_all_threads): Update.
12273 (restart_threads): Update.
12274 (finish_step_over): Update.
12275 (handle_signal_stop): Update.
12276 (switch_back_to_stepped_thread): Update.
12277 (keep_going_pass_signal): Update.
12278 (print_exited_reason): Update.
12279 (normal_stop): Update.
12280 * inferior.c (inferior_pid_to_str): Change return type.
12281 (print_selected_inferior): Update.
12282 (add_inferior): Update.
12283 (detach_inferior): Update.
12284 * dummy-frame.c (fprint_dummy_frames): Update.
12285 * dcache.c (dcache_info_1): Update.
12286 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12287 (btrace_fetch, btrace_clear): Update.
12288 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12289 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12290 type.
12291 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12292 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12293 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12294 * gdbarch.c, gdbarch.h: Rebuild.
12295 * gdbarch.sh (core_pid_to_str): Change return type.
12296 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12297 return type.
12298 (windows_nat_target::pid_to_str): Change return type.
12299 (windows_delete_thread): Update.
12300 (windows_nat_target::attach): Update.
12301 (windows_nat_target::files_info): Update.
12302 * target-delegates.c: Rebuild.
12303 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12304 return type.
12305 (sol_thread_target::pid_to_str): Change return type.
12306 * remote.c (class remote_target) <pid_to_str>: Change return
12307 type.
12308 (remote_target::pid_to_str): Change return type.
12309 (extended_remote_target::attach, remote_target::remote_stop_ns)
12310 (remote_target::remote_notif_remove_queued_reply)
12311 (remote_target::push_stop_reply, remote_target::disable_btrace):
12312 Update.
12313 (extended_remote_target::attach): Update.
12314 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12315 type.
12316 (gdbsim_target::pid_to_str): Change return type.
12317 * ravenscar-thread.c (struct ravenscar_thread_target)
12318 <pid_to_str>: Change return type.
12319 (ravenscar_thread_target::pid_to_str): Change return type.
12320 * procfs.c (class procfs_target) <pid_to_str>: Change return
12321 type.
12322 (procfs_target::pid_to_str): Change return type.
12323 (procfs_target::attach): Update.
12324 (procfs_target::detach): Update.
12325 (procfs_target::fetch_registers): Update.
12326 (procfs_target::store_registers): Update.
12327 (procfs_target::wait): Update.
12328 (procfs_target::files_info): Update.
12329 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12330 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12331 return type.
12332 (nto_procfs_target::pid_to_str): Change return type.
12333 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12334 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12335 return type.
12336 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12337 (exit_lwp): Update.
12338 (attach_proc_task_lwp_callback, get_detach_signal)
12339 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12340 (linux_nat_target::resume, wait_lwp, stop_callback)
12341 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12342 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12343 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12344 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12345 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12346 type.
12347 (inf_ptrace_target::attach): Update.
12348 (inf_ptrace_target::files_info): Update.
12349 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12350 type.
12351 (go32_nat_target::pid_to_str): Change return type.
12352 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12353 (gnu_nat_target::wait): Update.
12354 (gnu_nat_target::wait): Update.
12355 (gnu_nat_target::resume): Update.
12356 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12357 (fbsd_nat_target::wait): Update.
12358 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12359 type.
12360 (darwin_nat_target::attach): Update.
12361 * corelow.c (class core_target) <pid_to_str>: Change return type.
12362 (core_target::pid_to_str): Change return type.
12363 * target.c (normal_pid_to_str): Change return type.
12364 (default_pid_to_str): Likewise.
12365 (target_pid_to_str): Change return type.
12366 (target_translate_tls_address): Update.
12367 (target_announce_detach): Update.
12368 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12369 return type.
12370 (bsd_uthread_target::pid_to_str): Change return type.
12371 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12372 type.
12373 (bsd_kvm_target::pid_to_str): Change return type.
12374 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12375 return type.
12376 (aix_thread_target::pid_to_str): Change return type.
12377 * target.h (struct target_ops) <pid_to_str>: Change return type.
12378 (target_pid_to_str, normal_pid_to_str): Likewise.
12379 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12380 type.
12381 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12382 type.
12383 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12384 return type.
12385 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12386 type.
12387 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12388 type.
12389 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12390 return type.
12391
b4be1b06
SM
123922019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12393
12394 * NEWS: Mention that the new default MI version is 3. Mention
12395 changes to the output of commands and events that deal with
12396 multi-location breakpoints.
12397 * breakpoint.c: Include "mi/mi-out.h".
12398 (print_one_breakpoint): Change output syntax if using MI version
12399 >= 3.
12400 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12401 New.
12402 (mi_multi_location_breakpoint_output_fixed): New.
12403 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12404 (mi_cmd_fix_multi_location_breakpoint_output): New.
12405 (mi_multi_location_breakpoint_output_fixed): New.
12406 * mi/mi-cmds.c (mi_cmds): Register command
12407 -fix-multi-location-breakpoint-output.
12408 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12409 interpreter "mi".
12410
8e5e5494
SM
124112019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12412
12413 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12414 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12415 instantiate mi_ui_out based on interpreter name.
12416 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12417 * mi/mi-main.c (mi_load_progress): Likewise.
12418
197df35e
JB
124192019-03-12 John Baldwin <jhb@FreeBSD.org>
12420
12421 * NEWS: Combine separate "New targets" sections for 8.3.
12422
8399425f
JB
124232019-03-12 John Baldwin <jhb@FreeBSD.org>
12424
12425 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12426 (ppcfbsd_init_abi): Install gdbarch
12427 "fetch_tls_load_module_address" and "get_thread_local_address"
12428 methods.
12429
b0f87ed0
JB
124302019-03-12 John Baldwin <jhb@FreeBSD.org>
12431
12432 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12433 (riscv_fbsd_init_abi): Install gdbarch
12434 "fetch_tls_load_module_address" and "get_thread_local_address"
12435 methods.
12436
ce25aa57
JB
124372019-03-12 John Baldwin <jhb@FreeBSD.org>
12438
12439 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12440 (i386fbsd_init_abi): Install gdbarch
12441 "fetch_tls_load_module_address" and "get_thread_local_address"
12442 methods.
12443
f5424cfa
JB
124442019-03-12 John Baldwin <jhb@FreeBSD.org>
12445
12446 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12447 (amd64fbsd_init_abi): Install gdbarch
12448 "fetch_tls_load_module_address" and "get_thread_local_address"
12449 methods.
12450
945f3901
JB
124512019-03-12 John Baldwin <jhb@FreeBSD.org>
12452
12453 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12454 (struct fbsd_pspace_data): New type.
12455 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12456 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12457 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12458 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12459 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12460
ef0bd204
JB
124612019-03-12 John Baldwin <jhb@FreeBSD.org>
12462
12463 * gdbtypes.c (lookup_struct_elt): New function.
12464 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12465 * gdbtypes.h (struct struct_elt): New type.
12466 (lookup_struct_elt): New prototype.
12467
36c53a02
JB
124682019-03-12 John Baldwin <jhb@FreeBSD.org>
12469
12470 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12471 remove disabled code block.
12472
6e056c81
JB
124732019-03-12 John Baldwin <jhb@FreeBSD.org>
12474
12475 * gdbarch.sh (get_thread_local_address): New method.
12476 * gdbarch.h, gdbarch.c: Regenerate.
12477 * target.c (target_translate_tls_address): Use
12478 gdbarch_get_thread_local_address if present instead of
12479 target::get_thread_local_address.
12480
cd250a18
JB
124812019-03-12 John Baldwin <jhb@FreeBSD.org>
12482
12483 * target.h (target::get_thread_local_address): Update comment.
12484
df22c1e5
JB
124852019-03-12 John Baldwin <jhb@FreeBSD.org>
12486
12487 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12488 objfile->separate_debug_objfile_backlink if not NULL.
12489
dd6876c9
JB
124902019-03-12 John Baldwin <jhb@FreeBSD.org>
12491
12492 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12493 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12494 (amd64bsd_store_inferior_registers): Likewise.
12495 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12496 Enable segment base registers.
12497 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12498 PT_GETFSBASE and PT_GETGSBASE.
12499 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12500 PT_SETGSBASE.
12501 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12502 segment base registers.
12503 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12504
1163a4b7
JB
125052019-03-12 John Baldwin <jhb@FreeBSD.org>
12506
12507 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12508 Update calls to i386_target_description to add 'segments'
12509 parameter.
12510 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12511 add segment base registers.
12512 * arch/i386.c (i386_create_target_description): Add 'segments'
12513 parameter to enable segment base registers.
12514 * arch/i386.h (i386_create_target_description): Likewise.
12515 * features/i386/32bit-segments.xml: New file.
12516 * features/i386/32bit-segments.c: Generate.
12517 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12518 call to i386_target_description to add 'segments' parameter.
12519 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12520 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12521 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12522 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12523 if feature is present.
12524 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12525 Add 'segments' parameter to call to i386_target_description.
12526 (i386_target_description): Add 'segments' parameter to enable
12527 segment base registers.
12528 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12529 to call to i386_target_description.
12530 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12531 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12532 Define I386_NUM_REGS.
12533 (i386_target_description): Add 'segments' parameter to enable
12534 segment base registers.
12535
3a350822
EZ
125362019-03-12 Eli Zaretskii <eliz@gnu.org>
12537
12538 PR/24325
12539 * source-cache.c: #undef open and close, to avoid unresolved
12540 externals during linking.
12541
ffdd69cf
TT
125422019-03-12 Tom Tromey <tromey@adacore.com>
12543
12544 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12545 const. Add initializers.
12546 (_initialize_remote): Don't initialize ptid globals.
12547
ec148c57
PA
125482019-03-12 Pedro Alves <palves@redhat.com>
12549
12550 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12551
32764270
PA
125522019-03-12 Pedro Alves <palves@redhat.com>
12553
12554 * cp-name-parser.y (main): Remove unused 'len' variable.
12555
17547186
TT
125562019-03-12 Tom Tromey <tromey@adacore.com>
12557
12558 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12559 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12560
d3a70e03
TT
125612019-03-12 Tom Tromey <tromey@adacore.com>
12562
12563 * linux-nat.c (iterate_over_lwps): Update.
12564 (stop_callback): Remove parameter.
12565 (stop_wait_callback, detach_callback, resume_set_callback)
12566 (select_singlestep_lwp_callback, set_ignore_sigint)
12567 (status_callback, resumed_callback, resume_clear_callback)
12568 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12569 data parameter.
12570 (linux_nat_target::detach, linux_nat_target::resume)
12571 (linux_stop_and_wait_all_lwps, select_event_lwp)
12572 (linux_nat_filter_event, linux_nat_wait_1)
12573 (linux_nat_target::kill, linux_nat_target::stop)
12574 (linux_nat_target::stop): Update.
12575 (linux_nat_resume_callback): Change type.
12576 (resume_stopped_resumed_lwps, count_events_callback)
12577 (select_event_lwp_callback): Likewise.
12578 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12579 * arm-linux-nat.c (struct update_registers_data): Remove.
12580 (update_registers_callback): Change type.
12581 (arm_linux_insert_hw_breakpoint1): Update.
12582 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12583 parameter.
12584 (x86_linux_dr_set_addr): Update.
12585 (x86_linux_dr_set_control): Update.
12586 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12587 (iterate_over_lwps): Use gdb::function_view.
12588 * nat/aarch64-linux-hw-point.c (struct
12589 aarch64_dr_update_callback_param): Remove.
12590 (debug_reg_change_callback): Change type.
12591 (aarch64_notify_debug_reg_change): Update.
12592 * s390-linux-nat.c (s390_refresh_per_info): Update.
12593
82cb27ff
TT
125942019-03-11 Tom Tromey <tromey@adacore.com>
12595
12596 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12597 redundant assignment to "this_cu".
12598
568c0683
SM
125992019-03-08 Simon Marchi <simon.marchi@efficios.com>
12600
12601 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12602
f09ce22d
SM
126032019-03-08 Simon Marchi <simon.marchi@efficios.com>
12604
12605 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12606 from...
12607 (rank_one_type): ... this.
12608
595f96a9
SM
126092019-03-08 Simon Marchi <simon.marchi@efficios.com>
12610
12611 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12612 from...
12613 (rank_one_type): ... this.
12614
2598a94b
SM
126152019-03-08 Simon Marchi <simon.marchi@efficios.com>
12616
12617 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12618 from...
12619 (rank_one_type): ... this.
12620
7f17b20d
SM
126212019-03-08 Simon Marchi <simon.marchi@efficios.com>
12622
12623 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12624 from...
12625 (rank_one_type): ... this.
12626
2c509035
SM
126272019-03-08 Simon Marchi <simon.marchi@efficios.com>
12628
12629 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12630 from...
12631 (rank_one_type): ... this.
12632
0dd322dc
SM
126332019-03-08 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12636 from...
12637 (rank_one_type): ... this.
12638
41ea4728
SM
126392019-03-08 Simon Marchi <simon.marchi@efficios.com>
12640
12641 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12642 from...
12643 (rank_one_type): ... this.
12644
793cd1d2
SM
126452019-03-08 Simon Marchi <simon.marchi@efficios.com>
12646
12647 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12648 from...
12649 (rank_one_type): ... this.
12650
34910087
SM
126512019-03-08 Simon Marchi <simon.marchi@efficios.com>
12652
12653 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12654 from...
12655 (rank_one_type): ... this.
12656
f1f832d6
SM
126572019-03-08 Simon Marchi <simon.marchi@efficios.com>
12658
12659 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12660 from...
12661 (rank_one_type): ... this.
12662
b9f4512f
SM
126632019-03-08 Simon Marchi <simon.marchi@efficios.com>
12664
12665 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12666 from...
12667 (rank_one_type): ... this.
12668
9293fc63
SM
126692019-03-08 Simon Marchi <simon.marchi@efficios.com>
12670
12671 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12672 from...
12673 (rank_one_type): ... this.
12674
e3abbe7e
PW
126752019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12676
12677 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12678 inferior-events' shows the example events.
12679
e4adb939
EZ
126802019-03-08 Eli Zaretskii <eliz@gnu.org>
12681
12682 Support styling on native MS-Windows console
12683
12684 PR/24315
12685 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12686 on MS-Windows if $TERM is not defined.
12687
12688 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12689
12690 * posix-hdep.c (gdb_console_fputs):
12691 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12692 functions.
12693 * ui-file.h (gdb_console_fputs): Add prototype.
12694
12695 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12696 back to fputs only if the former returns zero.
12697
25629dfd
TT
126982019-03-07 Tom Tromey <tom@tromey.com>
12699
12700 * symmisc.c (print_symbol_bcache_statistics): Update.
12701 (print_objfile_statistics): Update.
12702 * symfile.c (allocate_symtab): Update.
12703 * stabsread.c: Don't include bcache.h.
12704 * psymtab.h (struct psymbol_bcache): Don't declare.
12705 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12706 (psymbol_bcache_init, psymbol_bcache_free)
12707 (psymbol_bcache_get_bcache): Don't declare.
12708 * psymtab.c (struct psymbol_bcache): Remove.
12709 (psymtab_storage::psymtab_storage): Update.
12710 (psymtab_storage::~psymtab_storage): Update.
12711 (psymbol_bcache_init, psymbol_bcache_free)
12712 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12713 (add_psymbol_to_bcache): Update.
12714 (allocate_psymtab): Update.
12715 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12716 macro_cache>: No longer pointers.
12717 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12718 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12719 * macrotab.c (macro_bcache): Update.
12720 * macroexp.c: Don't include bcache.h.
12721 * gdbtypes.c (check_types_worklist): Update.
12722 (types_deeply_equal): Remove TRY/CATCH. Update.
12723 * elfread.c (elf_symtab_read): Update.
12724 * dwarf2read.c: Don't include bcache.h.
12725 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12726 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12727 (print_bcache_statistics, bcache_memory_used): Don't declare.
12728 (struct bcache): Move from bcache.c. Add constructor, destructor,
12729 methods. Rename all data members.
12730 * bcache.c (struct bcache): Move to bcache.h.
12731 (bcache::expand_hash_table): Rename from expand_hash_table.
12732 (bcache): Remove.
12733 (bcache::insert): Rename from bcache_full.
12734 (bcache::compare): Rename from bcache_compare.
12735 (bcache_xmalloc): Remove.
12736 (bcache::~bcache): Rename from bcache_xfree.
12737 (bcache::print_statistics): Rename from print_bcache_statistics.
12738 (bcache::memory_used): Rename from bcache_memory_used.
12739
fe726667
PA
127402019-03-07 Pedro Alves <palves@redhat.com>
12741
12742 * infrun.c (normal_stop): Also check for
12743 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12744
7584bb30
AB
127452019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12746
12747 * f-lang.c (value_from_host_double): Moved to...
12748 * value.c (value_from_host_double): ...here.
12749 * value.h (value_from_host_double): Declare.
12750 * guile/scm-math.c (vlscm_convert_typed_number): Use
12751 value_from_host_double.
12752 (vlscm_convert_number): Likewise.
12753 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12754 * python/py-value.c (convert_value_from_python): Likewise.
12755
a7b1986e
TT
127562019-03-06 Tom Tromey <tom@tromey.com>
12757
12758 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12759
0ccf4211
TT
127602019-03-06 Tom Tromey <tom@tromey.com>
12761
12762 * utils.h (free_current_contents): Don't declare.
12763 * utils.c (free_current_contents): Remove.
12764
fe7b42e5
TT
127652019-03-06 Tom Tromey <tom@tromey.com>
12766
12767 * top.c (quit_force): Update.
12768 * main.c (captured_command_loop): Update.
12769 * common/new-op.c (operator new): Update.
12770 * common/common-exceptions.c (struct catcher)
12771 <save_cleanup_chain>: Remove member.
12772 (exceptions_state_mc_init): Update.
12773 (exception_try_scope_entry): Return nullptr.
12774 (exception_try_scope_exit, exception_rethrow)
12775 (throw_exception_sjlj, throw_exception_cxx): Update.
12776 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12777 (all_cleanups, do_cleanups, discard_cleanups)
12778 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12779 (restore_cleanups, restore_final_cleanups): Don't declare.
12780 (do_final_cleanups): Remove parameter.
12781 * common/cleanups.c (cleanup_chain, make_cleanup)
12782 (make_cleanup_dtor, all_cleanups, do_cleanups)
12783 (discard_my_cleanups, discard_cleanups)
12784 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12785 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12786 (null_cleanup): Remove.
12787 (do_final_cleanups): Remove parameter.
12788
c6321f19
TT
127892019-03-06 Tom Tromey <tom@tromey.com>
12790
12791 * remote.c (remote_target::remote_parse_stop_reply): Use
12792 unique_xmalloc_ptr.
12793
61b30099
TT
127942019-03-06 Tom Tromey <tom@tromey.com>
12795
12796 * stabsread.c (struct stabs_field_info): Rename from field_info.
12797 <list, fnlist>: Add initializers.
12798 <obstack>: New member.
12799 (read_member_functions, read_struct_fields, read_baseclasses):
12800 Allocate on obstack. Don't use cleanups.
12801 (read_one_struct_field, read_member_functions, read_struct_fields)
12802 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12803 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12804 (read_struct_type): Update.
12805
6cceac94
TT
128062019-03-06 Tom Tromey <tom@tromey.com>
12807
12808 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12809 * common/filestuff.h (make_cleanup_close): Don't declare.
12810 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12811 Remove.
12812
72412762
TT
128132019-03-06 Tom Tromey <tom@tromey.com>
12814
12815 * solib-aix.c: Use make_scope_exit.
12816
2b6ff1c0
TT
128172019-03-06 Tom Tromey <tom@tromey.com>
12818
12819 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12820 Use make_scope_exit.
12821
d01c5877
TT
128222019-03-06 Tom Tromey <tom@tromey.com>
12823
12824 * solib-svr4.c (disable_probes_interface): Remove parameter.
12825 (svr4_handle_solib_event): Use make_scope_exit.
12826
32603266
TT
128272019-03-06 Tom Tromey <tom@tromey.com>
12828
12829 * remote.c (struct stop_reply_deleter): Remove.
12830 (stop_reply_up): Update.
12831 (struct stop_reply): Derive from notif_event. Don't typedef.
12832 <regcache>: Now a std::vector.
12833 (stop_reply_xfree): Remove.
12834 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12835 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12836 (remote_target::discard_pending_stop_replies): Use delete.
12837 (remote_target::remote_parse_stop_reply): Update.
12838 (remote_target::process_stop_reply): Update.
12839 * remote-notif.h (struct notif_event): Add virtual destructor.
12840 Remove "dtr" member.
12841 (struct notif_client) <alloc_event>: Return a unique_ptr.
12842 (notif_event_xfree): Don't declare.
12843 (notif_event_up): New typedef.
12844 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12845 (notif_event_xfree, do_notif_event_xfree): Remove.
12846 (remote_notif_state_xfree): Update.
12847
9799571e
TT
128482019-03-06 Tom Tromey <tom@tromey.com>
12849
12850 * infrun.c (displaced_step_clear_cleanup): Now a
12851 forward_scope_exit type.
12852 (displaced_step_prepare_throw): Update.
12853 (displaced_step_fixup): Update.
12854
09e3c4ca
TT
128552019-03-06 Tom Tromey <tom@tromey.com>
12856
12857 * inferior.h (class inferior): Update comment.
12858 * gdbthread.h (class thread_info): Update comment.
12859
e2a03548
TT
128602019-03-06 Joel Brobecker <brobecker@adacore.com>
12861 Tom Tromey <tom@tromey.com>
12862
12863 * stabsread.h (struct stab_section_list): Remove.
12864 (coffstab_build_psymtabs): Update.
12865 * dbxread.c (symbuf_sections): Now a std::vector.
12866 (sect_idx): New global.
12867 (fill_symbuf): Update.
12868 (coffstab_build_psymtabs): Change type of stabsects parameter.
12869 Update.
12870 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12871 std::vector.
12872 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12873 (coff_locate_sections): Update.
12874 (coff_symfile_read): Remove cleanups. Update.
12875 (init_stringtab): Add storage parameter.
12876 (free_stringtab, free_stringtab_cleanup): Remove.
12877 (init_lineno): Add storage parameter.
12878 (free_linetab, free_linetab_cleanup): Remove.
12879
b7e60d85
PA
128802019-03-06 Pedro Alves <palves@redhat.com>
12881
12882 * linux-fork.c (fork_info::clobber_regs): Delete.
12883 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12884 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12885 comment. Adjust.
12886 (scoped_switch_fork_info::scoped_switch_fork_info)
12887 (checkpoint_command, linux_fork_context): Adjust
12888 fork_save_infrun_state calls.
12889
e52c971f
PA
128902019-03-06 Pedro Alves <palves@redhat.com>
12891
12892 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12893 (inf_has_multiple_threads): Return 'bool' and rewrite using
12894 inferior_info::threads().
12895
06974e6c
PA
128962019-03-06 Pedro Alves <palves@redhat.com>
12897
12898 * linux-fork.c: Include <list>.
12899 (fork_list): Now a std::list instance.
12900 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12901 (forks_exist_p, find_last_fork): Adjust.
12902 (new_fork): Delete.
12903 (one_fork_p): New.
12904 (add_fork): Adjust.
12905 (free_fork): Delete, folded into fork_info::~fork_info().
12906 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12907 Adjust.
12908 (init_fork_list): Delete.
12909 (linux_fork_killall, linux_fork_mourn_inferior)
12910 (linux_fork_detach, info_checkpoints_command): Adjust.
12911 (_initialize_linux_fork): No longer call init_fork_list.
12912
72f31aea
PA
129132019-03-06 Pedro Alves <palves@redhat.com>
12914
12915 * linux-fork.c (new_fork): New, split out of ...
12916 (add_fork): ... this. Return void. Move "first fork" special
12917 case from here, to ...
12918 (checkpoint_command): ... here.
12919 * linux-linux.h (add_fork): Return void.
12920
efbecbc1
AB
129212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12922
12923 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12924
0841c79a
AB
129252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12926 Chris January <chris.january@arm.com>
12927 David Lecomber <david.lecomber@arm.com>
12928
12929 * f-exp.y: New token, UNOP_INTRINSIC.
12930 (exp): New pattern using UNOP_INTRINSIC token.
12931 (f77_keywords): Add 'abs' keyword.
12932 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12933 (value_from_host_double): New function.
12934 (evaluate_subexp_f): Support UNOP_ABS.
12935
4a270568
AB
129362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12937
12938 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12939 types.
12940
067630bd
AB
129412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12942
12943 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12944 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12945 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12946
3be47f7a
AB
129472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12948
12949 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12950
4d00f5d8
AB
129512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12952 Chris January <chris.january@arm.com>
12953
12954 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12955 * f-exp.y: Define 'KIND' token.
12956 (exp): New pattern for KIND expressions.
12957 (ptype): Handle types with a kind extension.
12958 (direct_abs_decl): Extend to spot kind extensions.
12959 (f77_keywords): Add 'kind' to the list.
12960 (push_kind_type): New function.
12961 (convert_to_kind_type): New function.
12962 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12963 * parse.c (operator_length_standard): Likewise.
12964 * parser-defs.h (enum type_pieces): Add tp_kind.
12965 * std-operator.def: Add UNOP_KIND.
12966
e454224f
AB
129672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12968
12969 * f-exp.y (f_parse): Set yydebug.
12970
9dad4a58
AB
129712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12972
12973 * f-lang.c (evaluate_subexp_f): New function.
12974 (exp_descriptor_f): New global.
12975 (f_language_defn): Use exp_descriptor_f instead of
12976 exp_descriptor_standard.
12977
c8f91604
AB
129782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 * f-exp.y (struct token): Add comments.
12981 (dot_ops): Remove uppercase versions and the end marker.
12982 (f77_keywords): Likewise.
12983 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12984 entries in the dot_ops array are case insensitive, and use
12985 strncasecmp to compare strings. Also some whitespace cleanup in
12986 this area. Similar for the f77_keywords array, except entries in
12987 this list might be case sensitive.
12988
dd9f2c76
AB
129892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12990
12991 * f-exp.y (struct f77_boolean_val): Add comments.
12992 (boolean_values): Remove uppercase versions, and end marker.
12993 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12994 and use strncasecmp to achieve case insensitivity. Additionally,
12995 perform whitespace cleanup around this code.
12996
67a3048c
TT
129972019-03-06 Tom Tromey <tromey@adacore.com>
12998
12999 * remote-sim.c (gdbsim_target_open): Use result of
13000 gdb_argv::release.
13001
aa3cfbda
RB
130022019-03-06 Richard Bunt <richard.bunt@arm.com>
13003 Dirk Schubert <dirk.schubert@arm.com>
13004 Chris January <chris.january@arm.com>
13005
13006 * eval.c (evaluate_subexp_standard): Call Fortran argument
13007 wrapping logic.
13008 * f-lang.c (struct value): A value which can be passed into a
13009 Fortran function call.
13010 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13011 where appropriate.
13012 (struct type): Value ready for a Fortran function call.
13013 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13014 is needed.
13015 * f-lang.h (fortran_argument_convert): Declaration.
13016 (fortran_preserve_arg_pointer): Declaration.
13017 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13018
ea38e5df
TT
130192019-03-05 Tom Tromey <tromey@adacore.com>
13020
13021 * python/py-prettyprint.c (print_string_repr): Remove #if.
13022 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13023
06b5b831
TT
130242019-03-05 Tom Tromey <tromey@adacore.com>
13025
13026 * target.c (the_dummy_target): Move later. Change type to
13027 "dummy_target".
13028 (initialize_targets): Don't initialize the_dummy_target.
13029
edbd9e45
TT
130302019-03-05 Tom Tromey <tromey@adacore.com>
13031
13032 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13033 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13034
c119e040
TT
130352019-03-05 Tom Tromey <tromey@adacore.com>
13036
13037 * windows-nat.c (windows_nat_target::attach)
13038 (windows_nat_target::detach): Don't call gdb_flush.
13039 * valprint.c (generic_val_print, val_print, val_print_string):
13040 Don't call gdb_flush.
13041 * utils.c (defaulted_query): Don't call gdb_flush.
13042 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13043 * target.c (target_announce_detach): Don't call gdb_flush.
13044 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13045 * remote.c (extended_remote_target::attach): Don't call
13046 gdb_flush.
13047 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13048 * printcmd.c (do_examine): Don't call gdb_flush.
13049 (info_display_command): Don't call gdb_flush.
13050 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13051 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13052 * memattr.c (info_mem_command): Don't call gdb_flush.
13053 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13054 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13055 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13056 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13057 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13058 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13059 (gnu_nat_target::detach): Don't call gdb_flush.
13060 * f-valprint.c (f_val_print): Don't call gdb_flush.
13061 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13062 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13063 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13064 gdb_flush.
13065 * c-valprint.c (c_val_print): Don't call gdb_flush.
13066 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13067
895dafa6
TT
130682019-03-05 Tom Tromey <tromey@adacore.com>
13069
13070 * varobj.c (update_dynamic_varobj_children): Update.
13071 (install_default_visualizer): Use reset, not release.
13072 * value.c (set_internalvar): Update.
13073 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13074 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13075 ATTRIBUTE_UNUSED_RESULT.
13076
88a774b9
TT
130772019-03-05 Tom Tromey <tromey@adacore.com>
13078
13079 * remote.c (class scoped_remote_fd) <release>: Add
13080 ATTRIBUTE_UNUSED_RESULT.
13081
4e4a8b93
TT
130822019-03-05 Tom Tromey <tromey@adacore.com>
13083
13084 * macroexp.c (struct macro_buffer) <release>: Add
13085 ATTRIBUTE_UNUSED_RESULT.
13086
083eef1f
TT
130872019-03-05 Tom Tromey <tromey@adacore.com>
13088
13089 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13090 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13091 ATTRIBUTE_UNUSED_RESULT.
13092
3cabd438
TT
130932019-03-05 Tom Tromey <tromey@adacore.com>
13094
13095 * common/scoped_fd.h (class scoped_fd) <release>: Add
13096 ATTRIBUTE_UNUSED_RESULT.
13097
41e3300a
TT
130982019-03-05 Tom Tromey <tromey@adacore.com>
13099
13100 * parser-defs.h (struct parser_state) <release>: Add
13101 ATTRIBUTE_UNUSED_RESULT.
13102
18cb7c9f
TT
131032019-03-05 Tom Tromey <tromey@adacore.com>
13104
13105 * utils.h (class gdb_argv) <release>: Add
13106 ATTRIBUTE_UNUSED_RESULT.
13107 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13108
41fa577f
EZ
131092019-03-02 Eli Zaretskii <eliz@gnu.org>
13110
a6a4b2c6
EZ
13111 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13112 for-loop range, to avoid compiler warnings.
13113
13114 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13115 avoid compiler warnings about unused variables.
13116
742a7df5
EZ
13117 * NEWS: Mention end of support for native debugging on MS-Windows
13118 before XP.
13119
41fa577f
EZ
13120 PR gdb/24292
13121 * common/netstuff.c:
13122 * gdbserver/gdbreplay.c
13123 * gdbserver/remote-utils.c:
13124 * ser-tcp.c:
13125 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13126 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13127 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13128 'getaddrinfo' and 'freeaddrinfo' were not available before
13129 Windows XP, and mingw.org's MinGW headers by default define
13130 _WIN32_WINNT to 0x500.
13131
827f438f
GB
131322019-03-01 Gary Benson <gbenson@redhat.com>
13133
13134 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13135
92137da0
RO
131362019-02-28 Brian Vandenberg <phantall@gmail.com>
13137 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13138
13139 PR gdb/8527
13140 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13141 set_sigint_trap, clear_sigint_trap.
13142
799efbe8
PW
131432019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13144
13145 * target.c (target_detach): Clear the regcache and the
13146 frame cache.
13147
8ed25214
PA
131482019-02-27 Pedro Alves <palves@redhat.com>
13149
13150 * utils.c (set_screen_size): When we cap the height/width sizes,
13151 tweak the corresponding command variable to show "unlimited":
13152
23031e31
SJ
131532019-02-27 Saagar Jha <saagar@saagarjha.com>
13154 Pedro Alves <palves@redhat.com>
13155
13156 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13157 before calling rl_set_screen_size.
13158
6c28e44a
TT
131592019-02-27 Tom Tromey <tromey@adacore.com>
13160
13161 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13162 define.
13163 * python/py-value.c: Remove Python 2.4 workaround.
13164 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13165 workaround.
13166 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13167 Python 2.4 workaround.
13168 * python/python-internal.h: Remove Python 2.4 comment.
13169 (Py_ssize_t): Don't define.
13170 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13171 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13172 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13173 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13174 * python/python.c (do_start_initialization): Remove Python 2.4
13175 workaround.
13176 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13177 (print_children): Remove Python 2.4 workaround.
13178 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13179 workaround.
13180 (CHARBUFFERPROC_NAME): Remove.
13181 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13182 Python 2.4 workaround.
13183
2c3fc25d 131842019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13185
2c3fc25d
KB
13186 * NEWS: Note minimum Python version.
13187
6ca62222
KB
131882019-02-27 Kevin Buettner <kevinb@redhat.com>
13189
13190 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13191 code from these functions. Remove corresponding ifdefs. Use
13192 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13193 Remove gotos and target of gotos.
13194 (infpy_search_memory): Likewise.
13195
f4bc7d2c
AB
131962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13197
13198 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13199 (hppa_gdbarch_init): Don't register deleted functions with
13200 gdbarch.
13201
9734a586
AB
132022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13203
13204 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13205 (h8300_unwind_sp): Delete.
13206 (h8300_dummy_id): Delete.
13207 (h8300_gdbarch_init): Don't register deleted functions with
13208 gdbarch.
13209
68b867f3
AB
132102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13211
13212 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13213 (ft32_unwind_pc): Delete.
13214 (ft32_unwind_sp): Delete.
13215 (ft32_gdbarch_init): Don't register deleted functions with
13216 gdbarch.
13217
2fbe7ad0
AB
132182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13219
13220 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13221 (frv_unwind_pc): Delete.
13222 (frv_unwind_sp): Delete.
13223 (frv_gdbarch_init): Don't register deleted functions with
13224 gdbarch.
13225
76055cbe
AB
132262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13227
13228 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13229 (riscv_unwind_pc): Delete.
13230 (riscv_unwind_sp): Delete.
13231 (riscv_gdbarch_init): Don't register deleted functions with
13232 gdbarch.
13233
4133e5a1
AB
132342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13235
13236 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13237 (csky_unwind_pc): Delete.
13238 (csky_unwind_sp): Delete.
13239 (csky_gdbarch_init): Don't register deleted functions with
13240 gdbarch.
13241
8010f576
AB
132422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13245 (cris_unwind_pc): Delete.
13246 (cris_unwind_sp): Delete.
13247 (cris_gdbarch_init): Don't register deleted functions with
13248 gdbarch.
13249
b56bf084
AB
132502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13251
13252 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13253 (bfin_unwind_pc): Delete.
13254 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13255
a19a650f
AB
132562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13257
13258 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13259 (arm_unwind_pc): Delete.
13260 (arm_unwind_sp): Delete.
13261 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13262
f8278c3c
AB
132632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13264
13265 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13266 (arc_unwind_pc): Delete.
13267 (arc_unwind_sp): Delete.
13268 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13269
480e46cf
AB
132702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13271
13272 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13273 (alpha_unwind_pc): Delete.
13274 (alpha_gdbarch_init): Don't register deleted functions with
13275 gdbarch.
13276
7a995095
AB
132772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13278
13279 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13280 (aarch64_unwind_pc): Delete.
13281 (aarch64_unwind_sp): Delete.
13282 (aarch64_gdbarch_init): Don't register deleted functions with
13283 gdbarch.
13284
bf9a735e
AB
132852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13286
13287 * gdbtypes.c (type_align): Don't consider static members when
13288 computing structure alignment.
13289
5561fc30
AB
132902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13293 return 0 for other types.
13294 * arch-utils.c (default_type_align): Always return 0.
13295 * gdbarch.h: Regenerate.
13296 * gdbarch.sh (type_align): Extend comment.
13297 * gdbtypes.c (type_align): Add additional comments, always call
13298 gdbarch_type_align before applying the default rules.
13299 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13300 generic code will then apply a suitable default.
13301 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13302 types, return 0 for other types.
13303
9335e75a
JB
133042019-02-27 Joel Brobecker <brobecker@adacore.com>
13305
13306 * NEWS: Create a new section for the next release branch.
13307 Rename the section of the current branch, now that it has
13308 been cut.
13309
3d34d8de
JB
133102019-02-27 Joel Brobecker <brobecker@adacore.com>
13311
13312 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13313 * version.in: Bump version to 8.3.50.DATE-git.
13314
143420fb
SM
133152019-02-26 Simon Marchi <simon.marchi@efficios.com>
13316
13317 * aix-thread.c (ptid_cmp): Remove unused variable.
13318 (get_signaled_thread): Likewise.
13319 (store_regs_user_thread): Likewise.
13320 (store_regs_kernel_thread): Likewise.
13321 (fetch_regs_kernel_thread): Remove shadowed variable.
13322
172fb711
AB
133232019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13324
13325 * features/riscv/32bit-cpu.xml: Add register numbers.
13326 * features/riscv/32bit-fpu.c: Regenerate.
13327 * features/riscv/32bit-fpu.xml: Add register numbers.
13328 * features/riscv/64bit-cpu.xml: Add register numbers.
13329 * features/riscv/64bit-fpu.c: Regenerate.
13330 * features/riscv/64bit-fpu.xml: Add register numbers.
13331
26c89782
KB
133322019-02-26 Kevin Buettner <kevinb@redhat.com>
13333
af54ade9 13334 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13335 * python/py-value.c (convert_buffer_and_type_to_value): New
13336 function.
13337 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13338 Add support for handling an optional second argument. Call
13339 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13340 * python/python-internal.h (Py_buffer_deleter): New struct.
13341 (Py_buffer_up): New typedef.
13342
0f58c9e8
JB
133432019-02-25 John Baldwin <jhb@FreeBSD.org>
13344
13345 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13346 instead of releasing ownership.
13347
0a0f4c01
JR
133482019-02-25 Jordan Rupprecht <rupprecht@google.com>
13349
13350 * dwarf2read.c (open_and_init_dwp_file): Call
13351 elf_numsections instead of bfd_count_sections to initialize
13352 dwp_file->num_sections.
13353
cd5a152c
TT
133542019-02-25 Tom Tromey <tromey@adacore.com>
13355
13356 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13357
8a6a8513
SDJ
133582019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13359
13360 * gcore.in: Add '--readnever' option when invoking GDB.
13361
04dcda9c
SM
133622019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13363
13364 * MAINTAINERS: Update my email address.
13365
07bc701d
SM
133662019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13367
13368 * build-id.c (build_id_to_debug_bfd_1): New function.
13369 (build_id_to_debug_bfd): Look for separate debug file in
13370 sysroot.
13371
c6f4a5d0
AB
133722019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * gdbarch.sh: Update the copyright year range that is placed into
13375 generated files.
13376
9600246d
KS
133772019-02-22 Keith Seitz <keiths@redhat.com>
13378
13379 PR symtab/23853
13380 * linespec.c (create_sals_line_offset): Search for the default
13381 symtab's filename instead of its fullname.
13382
7557a514
AH
133832019-02-21 Alan Hayward <alan.hayward@arm.com>
13384
13385 * NEWS: Update style defaults.
13386
ee2bcb0c
AH
133872019-02-21 Alan Hayward <alan.hayward@arm.com>
13388
13389 * main.c (captured_main_1): Disable styling in batch mode.
13390
0c95f9ed
TT
133912019-02-20 Tom Tromey <tom@tromey.com>
13392
13393 * symtab.c (symtab_symbol_info): Fix typos.
13394
c763b894
TT
133952019-02-20 Tom Tromey <tromey@adacore.com>
13396
13397 * findcmd.c (_initialize_mem_search): Use upper case for
13398 metasyntactic variables.
13399
0ef8a082
AH
134002019-02-20 Alan Hayward <alan.hayward@arm.com>
13401
13402 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13403 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13404
6caa91b6
SM
134052019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13406
13407 * top.h (source_file_name): Change to std::string.
13408 * top.c (source_file_name): Likewise.
13409 (command_line_input): Adjust.
13410 * cli/cli-script.c (script_from_file): Adjust.
13411
98814c6c
TT
134122019-02-19 Tom Tromey <tromey@adacore.com>
13413
13414 * ravenscar-thread.c
13415 (ravenscar_thread_target::update_thread_list): Don't call
13416 ada_build_task_list.
13417 * ada-lang.h (ada_build_task_list): Don't declare.
13418 * ada-tasks.c (struct ada_tasks_inferior_data)
13419 <task_list_valid_p>: Now bool.
13420 (read_known_tasks, ada_task_list_changed)
13421 (ada_tasks_invalidate_inferior_data): Update.
13422 (read_known_tasks_array): Return bool.
13423 (read_known_tasks_list): Likewise.
13424 (read_known_tasks): Return void.
13425 (ada_build_task_list): Now static.
13426
70cd633e
AB
134272019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13428
13429 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13430 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13431
040b3e95
PW
134322019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13433
13434 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13435 variant for ada_tasks_pspace_data_handle and
13436 ada_tasks_inferior_data_handle.
13437 (ada_tasks_pspace_data_cleanup): New function.
13438 (ada_tasks_inferior_data_cleanup): New function.
13439
9409233b
TT
134402019-02-17 Tom Tromey <tom@tromey.com>
13441
13442 * macrotab.h (macro_source_fullname): Return a std::string.
13443 * macrotab.c (macro_include, check_for_redefinition)
13444 (macro_undef, macro_lookup_definition, foreach_macro)
13445 (foreach_macro_in_scope): Update.
13446 (macro_source_fullname): Return a std::string.
13447 * macrocmd.c (show_pp_source_pos): Update.
13448
6506371f
TT
134492019-02-17 Tom Tromey <tom@tromey.com>
13450
13451 * macrocmd.c (show_pp_source_pos): Style the file names.
13452
0c820d67
TT
134532019-02-17 Tom Tromey <tom@tromey.com>
13454
13455 PR tui/24197:
13456 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13457
a0087920
TT
134582019-02-17 Tom Tromey <tom@tromey.com>
13459
13460 * ada-lang.c (user_select_syms): Use filtered printing.
13461 * utils.c (wrap_style): New global.
13462 (desired_style): Remove.
13463 (emit_style_escape): Add stream parameter.
13464 (set_output_style, reset_terminal_style, prompt_for_continue):
13465 Update.
13466 (flush_wrap_buffer): Only flush gdb_stdout.
13467 (wrap_here): Set wrap_style.
13468 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13469 treat escape sequences as a character. Change when wrap buffer is
13470 flushed.
13471 (fputs_styled): Do not set the output style when the default is
13472 requested.
13473 * ui-style.h (struct ui_file_style) <is_default>: New method.
13474 * source.c (print_source_lines_base): Emit escape sequences in one
13475 piece.
13476
75ba10dc
JB
134772019-02-17 Joel Brobecker <brobecker@adacore.com>
13478
13479 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13480 integers and enumeration types.
13481
a2cd4f14
JB
134822019-02-17 Joel Brobecker <brobecker@adacore.com>
13483
13484 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13485 instead of lookup_symbol_in_language
13486 (do_exact_match): New function.
13487 (ada_get_symbol_name_matcher): Return do_exact_match when
13488 doing a verbatim match.
13489
485b851b
TT
134902019-02-15 Tom Tromey <tromey@adacore.com>
13491
13492 * ravenscar-thread.c (ravenscar_thread_target::resume)
13493 (ravenscar_thread_target::wait): Special case wildcard requests.
13494
0b790b1e
TT
134952019-02-15 Tom Tromey <tromey@adacore.com>
13496
13497 * ravenscar-thread.c (base_ptid): Remove.
13498 (struct ravenscar_thread_target) <close>: New method.
13499 <m_base_ptid>: New member.
13500 <update_inferior_ptid, active_task, task_is_currently_active,
13501 runtime_initialized>: Declare methods.
13502 <ravenscar_thread_target>: Add constructor.
13503 (ravenscar_thread_target::task_is_currently_active)
13504 (ravenscar_thread_target::update_inferior_ptid)
13505 (ravenscar_runtime_initialized): Rename. Now methods.
13506 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13507 (ravenscar_thread_target::update_thread_list): Update.
13508 (ravenscar_thread_target::active_task): Now method.
13509 (ravenscar_thread_target::store_registers)
13510 (ravenscar_thread_target::prepare_to_store)
13511 (ravenscar_thread_target::prepare_to_store)
13512 (ravenscar_thread_target::mourn_inferior): Update.
13513 (ravenscar_inferior_created): Use "new" to create target.
13514 (ravenscar_thread_target::get_ada_task_ptid): Update.
13515 (_initialize_ravenscar): Don't initialize base_ptid.
13516 (ravenscar_ops): Remove global.
13517
dea57a62
TT
135182019-02-15 Tom Tromey <tromey@adacore.com>
13519
13520 * target.h (push_target): Declare new overload.
13521 * target.c (push_target): New overload, taking an rvalue reference.
13522 * remote.c (remote_target::open_1): Use push_target overload.
13523 * corelow.c (core_target_open): Use push_target overload.
13524
989f3c58
TT
135252019-02-15 Tom Tromey <tromey@adacore.com>
13526
13527 * ravenscar-thread.c (is_ravenscar_task)
13528 (ravenscar_task_is_currently_active): Return bool.
13529 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13530 (_initialize_ravenscar): Remove "(void)".
13531 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13532 Return bool.
13533
6cbcc006
TT
135342019-02-15 Tom Tromey <tromey@adacore.com>
13535
13536 * ravenscar-thread.c (ravenscar_runtime_initializer)
13537 (has_ravenscar_runtime, get_running_thread_id)
13538 (ravenscar_thread_target::resume): Fix indentation.
13539
7657f14d
TT
135402019-02-15 Tom Tromey <tromey@adacore.com>
13541
13542 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13543 from ravenscar_arch_ops.
13544 (sparc_ravenscar_ops::fetch_registers)
13545 (sparc_ravenscar_ops::store_registers): Now methods.
13546 (sparc_ravenscar_prepare_to_store): Remove.
13547 (sparc_ravenscar_ops): Redefine.
13548 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13549 methods and destructor. Remove members.
13550 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13551 (ravenscar_thread_target::store_registers)
13552 (ravenscar_thread_target::prepare_to_store): Update.
13553 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13554 Remove.
13555 (struct ppc_ravenscar_powerpc_ops): Derive from
13556 ravenscar_arch_ops.
13557 (ppc_ravenscar_powerpc_ops::fetch_registers)
13558 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13559 (ppc_ravenscar_powerpc_ops): Redefine.
13560 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13561 (ppc_ravenscar_e500_ops::fetch_registers)
13562 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13563 (ppc_ravenscar_e500_ops): Redefine.
13564 * aarch64-ravenscar-thread.c
13565 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13566 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13567 (aarch64_ravenscar_fetch_registers)
13568 (aarch64_ravenscar_store_registers): Now methods.
13569 (aarch64_ravenscar_ops): Redefine.
13570
5b6ea500
TT
135712019-02-15 Tom Tromey <tromey@adacore.com>
13572
13573 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13574 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13575 (ravenscar_thread_target::stopped_by_watchpoint)
13576 (ravenscar_thread_target::stopped_data_address)
13577 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13578
e397fd39
TT
135792019-02-15 Tom Tromey <tromey@adacore.com>
13580
13581 * ravenscar-thread.c: Fix some typos.
13582
cc12f4a8
TT
135832019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13584 Tom Tromey <tromey@adacore.com>
13585
13586 * ada-lang.c (ada_exception_sal): Change addr_string to a
13587 std::string.
13588 (create_ada_exception_catchpoint): Update.
13589
5f486660
TT
135902019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13591 Tom Tromey <tromey@adacore.com>
13592
13593 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13594 (bp_location_ops): Remove.
13595 (base_breakpoint_allocate_location): Update.
13596 (free_bp_location): Update.
13597 * ada-lang.c (class ada_catchpoint_location)
13598 <ada_catchpoint_location>: Remove ops parameter.
13599 (ada_catchpoint_location_dtor): Remove.
13600 (ada_catchpoint_location_ops): Remove.
13601 (allocate_location_exception): Update.
13602 * breakpoint.h (struct bp_location_ops): Remove.
13603 (class bp_location) <bp_location>: Remove bp_location_ops
13604 parameter.
13605 <~bp_location>: Add destructor.
13606 <ops>: Remove.
13607
b671c7fb
TS
136082019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13609 Pedro Alves <palves@redhat.com>
13610
13611 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13612 'PATH_MAX'.
13613
8071c5ce
DM
136142019-02-14 David Michael <fedora.dm0@gmail.com>
13615 Samuel Thibault <samuel.thibault@gnu.org>
13616 Thomas Schwinge <thomas@codesourcery.com>
13617
13618 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13619 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13620
b1041ae0
TS
136212019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13622
924514e1
TS
13623 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13624 (check_empty): Use "const char *".
13625
c29ee8d4
TS
13626 * gnu-nat.c (gnu_nat_target::detach): Instead of
13627 'detach_inferior (pid)' call
13628 'detach_inferior (find_inferior_pid (pid))'.
13629
6c6ef69f
TS
13630 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13631 'nat/fork-inferior.o'.
13632 * gnu-nat.c: #include "nat/fork-inferior.h".
13633
2d0a338c
TS
13634 * gnu-nat.c (gnu_nat_target::detach): Instead of
13635 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13636 * gnu-nat.h: #include "inf-child.h".
13637 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13638 'i386_gnu_nat_target::fetch_registers'.
13639 (gnu_store_registers): Rename/move to
13640 'i386_gnu_nat_target::store_registers'.
13641
cabb5f06
TS
13642 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13643 * gnu-nat.h (mach_thread_info): New function.
13644 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13645
b1041ae0
TS
13646 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13647
2988d01e
KF
136482019-02-14 Frederic Konrad <konrad@adacore.com>
13649
13650 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13651
c559d709
JB
136522019-02-14 Joel Brobecker <brobecker@adacore.com>
13653
13654 * windows-nat.c (windows_add_thread): Add new parameter
13655 "main_thread_p" with default value set to false. Update
13656 function documentation as well as all callers.
13657 (windows_delete_thread): Likewise.
13658 (fake_create_process): Update call to windows_add_thread.
13659 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13660 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13661 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13662 call to windows_delete_thread.
13663
007024cc
SM
136642019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13665
13666 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13667
f62318e9
JB
136682019-02-12 John Baldwin <jhb@FreeBSD.org>
13669
13670 * symfile.c (find_separate_debug_file): Use canonical path of
13671 sysroot with child_path instead of gdb_sysroot if it is valid.
13672
cd4b7848
JB
136732019-02-12 John Baldwin <jhb@FreeBSD.org>
13674
13675 * symfile.c (find_separate_debug_file): Use child_path to
13676 determine if an object file is under a sysroot.
13677
efac4bfe
JB
136782019-02-12 John Baldwin <jhb@FreeBSD.org>
13679
13680 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13681 unittests/child-path-selftests.c.
13682 * common/pathstuff.c (child_path): New function.
13683 * common/pathstuff.h (child_path): New prototype.
13684 * unittests/child-path-selftests.c: New file.
13685
402d2bfe
JB
136862019-02-12 John Baldwin <jhb@FreeBSD.org>
13687
13688 * symfile.c (find_separate_debug_file): Look for separate debug
13689 files in debug directories under the sysroot.
13690
1ed9f74e
PW
136912019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13692
13693 * symtab.h (struct minimal_symbol data_p): New const method.
13694 (struct minimal_symbol text_p): Likewise.
13695 * symtab.c (output_source_filename): Use file name style
13696 to print file name.
13697 (print_symbol_info): Likewise.
13698 (print_msymbol_info): Use address style to print addresses.
13699 Use function name style to print executable text symbols.
13700 (expand_symtab_containing_pc): Use data_p.
13701 (find_pc_sect_compunit_symtab): Likewise.
13702
2636d81d
PW
137032019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13704
13705 * breakpoint.c (describe_other_breakpoints): Use address style
13706 to print addresses.
13707 (say_where): Likewise.
13708
ac8c53cc
PW
137092019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13710
13711 * ada-typeprint.c (print_func_type): Print function name
13712 style to print function name.
13713 * c-typeprint.c (c_print_type_1): Likewise.
13714
ea638c43
AH
137152019-02-11 Alan Hayward <alan.hayward@arm.com>
13716
13717 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13718 for execve.
13719
ab759ca8
PW
137202019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13721
13722 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13723 type_stack.
13724
aff29d1c
JB
137252019-02-10 Joel Brobecker <brobecker@adacore.com>
13726
13727 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13728 TYPE_CODE_REF types.
13729
617126bc
JW
137302019-02-08 Jim Wilson <jimw@sifive.com>
13731
13732 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13733 (riscv_linux_fregset): New.
13734 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13735
46e3ed7f
TT
137362019-02-07 Tom Tromey <tom@tromey.com>
13737
13738 * thread.c (thread_cancel_execution_command): Update.
13739 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13740 methods.
13741 (struct thread_fsm_ops): Remove.
13742 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13743 (thread_fsm_should_stop, thread_fsm_return_value)
13744 (thread_fsm_set_finished, thread_fsm_finished_p)
13745 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13746 Don't declare.
13747 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13748 * infrun.c (clear_proceed_status_thread)
13749 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13750 (print_stop_event): Update.
13751 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13752 Add constructor.
13753 (step_command_fsm_ops): Remove.
13754 (new_step_command_fsm): Remove.
13755 (step_1): Update.
13756 (step_command_fsm::should_stop): Rename from
13757 step_command_fsm_should_stop.
13758 (step_command_fsm::clean_up): Rename from
13759 step_command_fsm_clean_up.
13760 (step_command_fsm::do_async_reply_reason): Rename from
13761 step_command_fsm_async_reply_reason.
13762 (struct until_next_fsm): Inherit from thread_fsm. Add
13763 constructor.
13764 (until_next_fsm_ops): Remove.
13765 (new_until_next_fsm): Remove.
13766 (until_next_fsm::should_stop): Rename from
13767 until_next_fsm_should_stop.
13768 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13769 (until_next_fsm::do_async_reply_reason): Rename from
13770 until_next_fsm_async_reply_reason.
13771 (struct finish_command_fsm): Inherit from thread_fsm. Add
13772 constructor. Change type of breakpoint.
13773 (finish_command_fsm_ops): Remove.
13774 (new_finish_command_fsm): Remove.
13775 (finish_command_fsm::should_stop): Rename from
13776 finish_command_fsm_should_stop.
13777 (finish_command_fsm::clean_up): Rename from
13778 finish_command_fsm_clean_up.
13779 (finish_command_fsm::return_value): Rename from
13780 finish_command_fsm_return_value.
13781 (finish_command_fsm::do_async_reply_reason): Rename from
13782 finish_command_fsm_async_reply_reason.
13783 (finish_command): Update.
13784 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13785 Add constructor.
13786 (call_thread_fsm_ops): Remove.
13787 (call_thread_fsm::call_thread_fsm): Rename from
13788 new_call_thread_fsm.
13789 (call_thread_fsm::should_stop): Rename from
13790 call_thread_fsm_should_stop.
13791 (call_thread_fsm::should_notify_stop): Rename from
13792 call_thread_fsm_should_notify_stop.
13793 (run_inferior_call, call_function_by_hand_dummy): Update.
13794 * cli/cli-interp.c (should_print_stop_to_console): Update.
13795 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13796 Add constructor. Change type of location_breakpoint,
13797 caller_breakpoint.
13798 (until_break_fsm_ops): Remove.
13799 (new_until_break_fsm): Remove.
13800 (until_break_fsm::should_stop): Rename from
13801 until_break_fsm_should_stop.
13802 (until_break_fsm::clean_up): Rename from
13803 until_break_fsm_clean_up.
13804 (until_break_fsm::do_async_reply_reason): Rename from
13805 until_break_fsm_async_reply_reason.
13806 (until_break_command): Update.
13807 * thread-fsm.c: Remove.
13808 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13809
1a5c2598
TT
138102019-02-07 Tom Tromey <tom@tromey.com>
13811
13812 * yy-remap.h: Add include guard.
13813 * xtensa-tdep.h: Add include guard.
13814 * xcoffread.h: Rename include guard.
13815 * varobj-iter.h: Add include guard.
13816 * tui/tui.h: Rename include guard.
13817 * tui/tui-winsource.h: Rename include guard.
13818 * tui/tui-wingeneral.h: Rename include guard.
13819 * tui/tui-windata.h: Rename include guard.
13820 * tui/tui-win.h: Rename include guard.
13821 * tui/tui-stack.h: Rename include guard.
13822 * tui/tui-source.h: Rename include guard.
13823 * tui/tui-regs.h: Rename include guard.
13824 * tui/tui-out.h: Rename include guard.
13825 * tui/tui-layout.h: Rename include guard.
13826 * tui/tui-io.h: Rename include guard.
13827 * tui/tui-hooks.h: Rename include guard.
13828 * tui/tui-file.h: Rename include guard.
13829 * tui/tui-disasm.h: Rename include guard.
13830 * tui/tui-data.h: Rename include guard.
13831 * tui/tui-command.h: Rename include guard.
13832 * tic6x-tdep.h: Add include guard.
13833 * target/waitstatus.h: Rename include guard.
13834 * target/wait.h: Rename include guard.
13835 * target/target.h: Rename include guard.
13836 * target/resume.h: Rename include guard.
13837 * target-float.h: Rename include guard.
13838 * stabsread.h: Add include guard.
13839 * rs6000-tdep.h: Add include guard.
13840 * riscv-fbsd-tdep.h: Add include guard.
13841 * regformats/regdef.h: Rename include guard.
13842 * record.h: Rename include guard.
13843 * python/python.h: Rename include guard.
13844 * python/python-internal.h: Rename include guard.
13845 * python/py-stopevent.h: Rename include guard.
13846 * python/py-ref.h: Rename include guard.
13847 * python/py-record.h: Rename include guard.
13848 * python/py-record-full.h: Rename include guard.
13849 * python/py-record-btrace.h: Rename include guard.
13850 * python/py-instruction.h: Rename include guard.
13851 * python/py-events.h: Rename include guard.
13852 * python/py-event.h: Rename include guard.
13853 * procfs.h: Add include guard.
13854 * proc-utils.h: Add include guard.
13855 * p-lang.h: Add include guard.
13856 * or1k-tdep.h: Rename include guard.
13857 * observable.h: Rename include guard.
13858 * nto-tdep.h: Rename include guard.
13859 * nat/x86-linux.h: Rename include guard.
13860 * nat/x86-linux-dregs.h: Rename include guard.
13861 * nat/x86-gcc-cpuid.h: Add include guard.
13862 * nat/x86-dregs.h: Rename include guard.
13863 * nat/x86-cpuid.h: Rename include guard.
13864 * nat/ppc-linux.h: Rename include guard.
13865 * nat/mips-linux-watch.h: Rename include guard.
13866 * nat/linux-waitpid.h: Rename include guard.
13867 * nat/linux-ptrace.h: Rename include guard.
13868 * nat/linux-procfs.h: Rename include guard.
13869 * nat/linux-osdata.h: Rename include guard.
13870 * nat/linux-nat.h: Rename include guard.
13871 * nat/linux-namespaces.h: Rename include guard.
13872 * nat/linux-btrace.h: Rename include guard.
13873 * nat/glibc_thread_db.h: Rename include guard.
13874 * nat/gdb_thread_db.h: Rename include guard.
13875 * nat/gdb_ptrace.h: Rename include guard.
13876 * nat/fork-inferior.h: Rename include guard.
13877 * nat/amd64-linux-siginfo.h: Rename include guard.
13878 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13879 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13880 * nat/aarch64-linux.h: Rename include guard.
13881 * nat/aarch64-linux-hw-point.h: Rename include guard.
13882 * mn10300-tdep.h: Add include guard.
13883 * mips-linux-tdep.h: Add include guard.
13884 * mi/mi-parse.h: Rename include guard.
13885 * mi/mi-out.h: Rename include guard.
13886 * mi/mi-main.h: Rename include guard.
13887 * mi/mi-interp.h: Rename include guard.
13888 * mi/mi-getopt.h: Rename include guard.
13889 * mi/mi-console.h: Rename include guard.
13890 * mi/mi-common.h: Rename include guard.
13891 * mi/mi-cmds.h: Rename include guard.
13892 * mi/mi-cmd-break.h: Rename include guard.
13893 * m2-lang.h: Add include guard.
13894 * location.h: Rename include guard.
13895 * linux-record.h: Rename include guard.
13896 * linux-nat.h: Add include guard.
13897 * linux-fork.h: Add include guard.
13898 * i386-darwin-tdep.h: Rename include guard.
13899 * hppa-linux-offsets.h: Add include guard.
13900 * guile/guile.h: Rename include guard.
13901 * guile/guile-internal.h: Rename include guard.
13902 * gnu-nat.h: Rename include guard.
13903 * gdb-stabs.h: Rename include guard.
13904 * frv-tdep.h: Add include guard.
13905 * f-lang.h: Add include guard.
13906 * event-loop.h: Add include guard.
13907 * darwin-nat.h: Rename include guard.
13908 * cp-abi.h: Rename include guard.
13909 * config/sparc/nm-sol2.h: Rename include guard.
13910 * config/nm-nto.h: Rename include guard.
13911 * config/nm-linux.h: Add include guard.
13912 * config/i386/nm-i386gnu.h: Rename include guard.
13913 * config/djgpp/nl_types.h: Rename include guard.
13914 * config/djgpp/langinfo.h: Rename include guard.
13915 * compile/gcc-cp-plugin.h: Add include guard.
13916 * compile/gcc-c-plugin.h: Add include guard.
13917 * compile/compile.h: Rename include guard.
13918 * compile/compile-object-run.h: Rename include guard.
13919 * compile/compile-object-load.h: Rename include guard.
13920 * compile/compile-internal.h: Rename include guard.
13921 * compile/compile-cplus.h: Rename include guard.
13922 * compile/compile-c.h: Rename include guard.
13923 * common/xml-utils.h: Rename include guard.
13924 * common/x86-xstate.h: Rename include guard.
13925 * common/version.h: Rename include guard.
13926 * common/vec.h: Rename include guard.
13927 * common/tdesc.h: Rename include guard.
13928 * common/selftest.h: Rename include guard.
13929 * common/scoped_restore.h: Rename include guard.
13930 * common/scoped_mmap.h: Rename include guard.
13931 * common/scoped_fd.h: Rename include guard.
13932 * common/safe-iterator.h: Rename include guard.
13933 * common/run-time-clock.h: Rename include guard.
13934 * common/refcounted-object.h: Rename include guard.
13935 * common/queue.h: Rename include guard.
13936 * common/ptid.h: Rename include guard.
13937 * common/print-utils.h: Rename include guard.
13938 * common/preprocessor.h: Rename include guard.
13939 * common/pathstuff.h: Rename include guard.
13940 * common/observable.h: Rename include guard.
13941 * common/netstuff.h: Rename include guard.
13942 * common/job-control.h: Rename include guard.
13943 * common/host-defs.h: Rename include guard.
13944 * common/gdb_wait.h: Rename include guard.
13945 * common/gdb_vecs.h: Rename include guard.
13946 * common/gdb_unlinker.h: Rename include guard.
13947 * common/gdb_unique_ptr.h: Rename include guard.
13948 * common/gdb_tilde_expand.h: Rename include guard.
13949 * common/gdb_sys_time.h: Rename include guard.
13950 * common/gdb_string_view.h: Rename include guard.
13951 * common/gdb_splay_tree.h: Rename include guard.
13952 * common/gdb_setjmp.h: Rename include guard.
13953 * common/gdb_ref_ptr.h: Rename include guard.
13954 * common/gdb_optional.h: Rename include guard.
13955 * common/gdb_locale.h: Rename include guard.
13956 * common/gdb_assert.h: Rename include guard.
13957 * common/filtered-iterator.h: Rename include guard.
13958 * common/filestuff.h: Rename include guard.
13959 * common/fileio.h: Rename include guard.
13960 * common/environ.h: Rename include guard.
13961 * common/common-utils.h: Rename include guard.
13962 * common/common-types.h: Rename include guard.
13963 * common/common-regcache.h: Rename include guard.
13964 * common/common-inferior.h: Rename include guard.
13965 * common/common-gdbthread.h: Rename include guard.
13966 * common/common-exceptions.h: Rename include guard.
13967 * common/common-defs.h: Rename include guard.
13968 * common/common-debug.h: Rename include guard.
13969 * common/cleanups.h: Rename include guard.
13970 * common/buffer.h: Rename include guard.
13971 * common/btrace-common.h: Rename include guard.
13972 * common/break-common.h: Rename include guard.
13973 * cli/cli-utils.h: Rename include guard.
13974 * cli/cli-style.h: Rename include guard.
13975 * cli/cli-setshow.h: Rename include guard.
13976 * cli/cli-script.h: Rename include guard.
13977 * cli/cli-interp.h: Rename include guard.
13978 * cli/cli-decode.h: Rename include guard.
13979 * cli/cli-cmds.h: Rename include guard.
13980 * charset-list.h: Add include guard.
13981 * buildsym-legacy.h: Rename include guard.
13982 * bfin-tdep.h: Add include guard.
13983 * ax.h: Rename include guard.
13984 * arm-linux-tdep.h: Add include guard.
13985 * arm-fbsd-tdep.h: Add include guard.
13986 * arch/xtensa.h: Rename include guard.
13987 * arch/tic6x.h: Add include guard.
13988 * arch/i386.h: Add include guard.
13989 * arch/arm.h: Rename include guard.
13990 * arch/arm-linux.h: Rename include guard.
13991 * arch/arm-get-next-pcs.h: Rename include guard.
13992 * arch/amd64.h: Add include guard.
13993 * arch/aarch64-insn.h: Rename include guard.
13994 * arch-utils.h: Rename include guard.
13995 * annotate.h: Add include guard.
13996 * amd64-darwin-tdep.h: Rename include guard.
13997 * aarch64-linux-tdep.h: Add include guard.
13998 * aarch64-fbsd-tdep.h: Add include guard.
13999 * aarch32-linux-nat.h: Add include guard.
14000
ab9268d2
PW
140012019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14002
14003 * macrotab.c (macro_define_internal): New function that
14004 factorizes macro_define_object_internal and macro_define_function
14005 code.
14006 (macro_define_object_internal): Use macro_define_internal.
14007 (macro_define_function): Likewise.
14008
bb0da2b4
PW
140092019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14010
14011 * macrocmd.c (extract_identifier): Return
14012 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14013 callers.
14014
424eb552
JB
140152019-02-06 John Baldwin <jhb@FreeBSD.org>
14016
14017 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14018
1688cb29
TT
140192019-02-05 Tom Tromey <tom@tromey.com>
14020
14021 * target.c (target_stack::unpush): Move assertion earlier.
14022
b5eba2d8
TT
140232019-01-30 Tom Tromey <tom@tromey.com>
14024
14025 PR python/23615:
14026 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14027 (gdbpy_parse_and_eval): Likewise.
14028 * python/python-internal.h (gdbpy_allow_threads): New class.
14029
7054e2ff
JB
140302019-01-28 John Baldwin <jhb@FreeBSD.org>
14031
14032 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14033 (aarch64_fbsd_fpregmap): Move earlier.
14034 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14035 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14036 instead of individual calls to trad_frame_set_reg_addr.
14037 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14038 earlier.
14039 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14040 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14041 instead of individual calls to trad_frame_set_reg_addr.
14042
36c25ffa
AH
140432019-01-28 Alan Hayward <alan.hayward@arm.com>
14044
14045 * CONTRIBUTE: Replace contribution list with wiki link.
14046
a0707f3c
TT
140472019-01-25 Tom Tromey <tom@tromey.com>
14048
14049 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14050
0747795c
TT
140512019-01-25 Tom Tromey <tom@tromey.com>
14052
14053 * xtensa-linux-nat.c: Fix common/ includes.
14054 * xml-support.h: Fix common/ includes.
14055 * xml-support.c: Fix common/ includes.
14056 * x86-linux-nat.c: Fix common/ includes.
14057 * windows-nat.c: Fix common/ includes.
14058 * varobj.h: Fix common/ includes.
14059 * varobj.c: Fix common/ includes.
14060 * value.c: Fix common/ includes.
14061 * valops.c: Fix common/ includes.
14062 * utils.c: Fix common/ includes.
14063 * unittests/xml-utils-selftests.c: Fix common/ includes.
14064 * unittests/utils-selftests.c: Fix common/ includes.
14065 * unittests/unpack-selftests.c: Fix common/ includes.
14066 * unittests/tracepoint-selftests.c: Fix common/ includes.
14067 * unittests/style-selftests.c: Fix common/ includes.
14068 * unittests/string_view-selftests.c: Fix common/ includes.
14069 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14070 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14071 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14072 * unittests/rsp-low-selftests.c: Fix common/ includes.
14073 * unittests/parse-connection-spec-selftests.c: Fix common/
14074 includes.
14075 * unittests/optional-selftests.c: Fix common/ includes.
14076 * unittests/offset-type-selftests.c: Fix common/ includes.
14077 * unittests/observable-selftests.c: Fix common/ includes.
14078 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14079 * unittests/memrange-selftests.c: Fix common/ includes.
14080 * unittests/memory-map-selftests.c: Fix common/ includes.
14081 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14082 * unittests/function-view-selftests.c: Fix common/ includes.
14083 * unittests/environ-selftests.c: Fix common/ includes.
14084 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14085 * unittests/common-utils-selftests.c: Fix common/ includes.
14086 * unittests/cli-utils-selftests.c: Fix common/ includes.
14087 * unittests/array-view-selftests.c: Fix common/ includes.
14088 * ui-file.c: Fix common/ includes.
14089 * tui/tui-io.c: Fix common/ includes.
14090 * tracepoint.h: Fix common/ includes.
14091 * tracepoint.c: Fix common/ includes.
14092 * tracefile-tfile.c: Fix common/ includes.
14093 * top.h: Fix common/ includes.
14094 * top.c: Fix common/ includes.
14095 * thread.c: Fix common/ includes.
14096 * target/waitstatus.h: Fix common/ includes.
14097 * target/waitstatus.c: Fix common/ includes.
14098 * target.h: Fix common/ includes.
14099 * target.c: Fix common/ includes.
14100 * target-memory.c: Fix common/ includes.
14101 * target-descriptions.c: Fix common/ includes.
14102 * symtab.h: Fix common/ includes.
14103 * symfile.c: Fix common/ includes.
14104 * stap-probe.c: Fix common/ includes.
14105 * spu-linux-nat.c: Fix common/ includes.
14106 * sparc-nat.c: Fix common/ includes.
14107 * source.c: Fix common/ includes.
14108 * solib.c: Fix common/ includes.
14109 * solib-target.c: Fix common/ includes.
14110 * ser-unix.c: Fix common/ includes.
14111 * ser-tcp.c: Fix common/ includes.
14112 * ser-pipe.c: Fix common/ includes.
14113 * ser-base.c: Fix common/ includes.
14114 * selftest-arch.c: Fix common/ includes.
14115 * s12z-tdep.c: Fix common/ includes.
14116 * rust-exp.y: Fix common/ includes.
14117 * rs6000-aix-tdep.c: Fix common/ includes.
14118 * riscv-tdep.c: Fix common/ includes.
14119 * remote.c: Fix common/ includes.
14120 * remote-notif.h: Fix common/ includes.
14121 * remote-fileio.h: Fix common/ includes.
14122 * remote-fileio.c: Fix common/ includes.
14123 * regcache.h: Fix common/ includes.
14124 * regcache.c: Fix common/ includes.
14125 * record-btrace.c: Fix common/ includes.
14126 * python/python.c: Fix common/ includes.
14127 * python/py-type.c: Fix common/ includes.
14128 * python/py-inferior.c: Fix common/ includes.
14129 * progspace.h: Fix common/ includes.
14130 * producer.c: Fix common/ includes.
14131 * procfs.c: Fix common/ includes.
14132 * proc-api.c: Fix common/ includes.
14133 * printcmd.c: Fix common/ includes.
14134 * ppc-linux-nat.c: Fix common/ includes.
14135 * parser-defs.h: Fix common/ includes.
14136 * osdata.c: Fix common/ includes.
14137 * obsd-nat.c: Fix common/ includes.
14138 * nat/x86-linux.c: Fix common/ includes.
14139 * nat/x86-linux-dregs.c: Fix common/ includes.
14140 * nat/x86-dregs.h: Fix common/ includes.
14141 * nat/x86-dregs.c: Fix common/ includes.
14142 * nat/ppc-linux.c: Fix common/ includes.
14143 * nat/mips-linux-watch.h: Fix common/ includes.
14144 * nat/mips-linux-watch.c: Fix common/ includes.
14145 * nat/linux-waitpid.c: Fix common/ includes.
14146 * nat/linux-ptrace.h: Fix common/ includes.
14147 * nat/linux-ptrace.c: Fix common/ includes.
14148 * nat/linux-procfs.c: Fix common/ includes.
14149 * nat/linux-personality.c: Fix common/ includes.
14150 * nat/linux-osdata.c: Fix common/ includes.
14151 * nat/linux-namespaces.c: Fix common/ includes.
14152 * nat/linux-btrace.h: Fix common/ includes.
14153 * nat/linux-btrace.c: Fix common/ includes.
14154 * nat/fork-inferior.c: Fix common/ includes.
14155 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14156 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14157 * nat/aarch64-linux.c: Fix common/ includes.
14158 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14159 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14160 * namespace.h: Fix common/ includes.
14161 * mips-linux-tdep.c: Fix common/ includes.
14162 * minsyms.c: Fix common/ includes.
14163 * mi/mi-parse.h: Fix common/ includes.
14164 * mi/mi-main.c: Fix common/ includes.
14165 * mi/mi-cmd-env.c: Fix common/ includes.
14166 * memrange.h: Fix common/ includes.
14167 * memattr.c: Fix common/ includes.
14168 * maint.h: Fix common/ includes.
14169 * maint.c: Fix common/ includes.
14170 * main.c: Fix common/ includes.
14171 * machoread.c: Fix common/ includes.
14172 * location.c: Fix common/ includes.
14173 * linux-thread-db.c: Fix common/ includes.
14174 * linux-nat.c: Fix common/ includes.
14175 * linux-fork.c: Fix common/ includes.
14176 * inline-frame.c: Fix common/ includes.
14177 * infrun.c: Fix common/ includes.
14178 * inflow.c: Fix common/ includes.
14179 * inferior.h: Fix common/ includes.
14180 * inferior.c: Fix common/ includes.
14181 * infcmd.c: Fix common/ includes.
14182 * inf-ptrace.c: Fix common/ includes.
14183 * inf-child.c: Fix common/ includes.
14184 * ia64-linux-nat.c: Fix common/ includes.
14185 * i387-tdep.c: Fix common/ includes.
14186 * i386-tdep.c: Fix common/ includes.
14187 * i386-linux-tdep.c: Fix common/ includes.
14188 * i386-linux-nat.c: Fix common/ includes.
14189 * i386-go32-tdep.c: Fix common/ includes.
14190 * i386-fbsd-tdep.c: Fix common/ includes.
14191 * i386-fbsd-nat.c: Fix common/ includes.
14192 * guile/scm-type.c: Fix common/ includes.
14193 * guile/guile.c: Fix common/ includes.
14194 * go32-nat.c: Fix common/ includes.
14195 * gnu-nat.c: Fix common/ includes.
14196 * gdbthread.h: Fix common/ includes.
14197 * gdbarch-selftests.c: Fix common/ includes.
14198 * gdb_usleep.c: Fix common/ includes.
14199 * gdb_select.h: Fix common/ includes.
14200 * gdb_bfd.c: Fix common/ includes.
14201 * gcore.c: Fix common/ includes.
14202 * fork-child.c: Fix common/ includes.
14203 * findvar.c: Fix common/ includes.
14204 * fbsd-nat.c: Fix common/ includes.
14205 * event-top.c: Fix common/ includes.
14206 * event-loop.c: Fix common/ includes.
14207 * dwarf2read.c: Fix common/ includes.
14208 * dwarf2loc.c: Fix common/ includes.
14209 * dwarf2-frame.c: Fix common/ includes.
14210 * dwarf-index-cache.c: Fix common/ includes.
14211 * dtrace-probe.c: Fix common/ includes.
14212 * disasm-selftests.c: Fix common/ includes.
14213 * defs.h: Fix common/ includes.
14214 * csky-tdep.c: Fix common/ includes.
14215 * cp-valprint.c: Fix common/ includes.
14216 * cp-support.h: Fix common/ includes.
14217 * cp-support.c: Fix common/ includes.
14218 * corelow.c: Fix common/ includes.
14219 * completer.h: Fix common/ includes.
14220 * completer.c: Fix common/ includes.
14221 * compile/compile.c: Fix common/ includes.
14222 * compile/compile-loc2c.c: Fix common/ includes.
14223 * compile/compile-cplus-types.c: Fix common/ includes.
14224 * compile/compile-cplus-symbols.c: Fix common/ includes.
14225 * command.h: Fix common/ includes.
14226 * cli/cli-dump.c: Fix common/ includes.
14227 * cli/cli-cmds.c: Fix common/ includes.
14228 * charset.c: Fix common/ includes.
14229 * build-id.c: Fix common/ includes.
14230 * btrace.h: Fix common/ includes.
14231 * btrace.c: Fix common/ includes.
14232 * breakpoint.h: Fix common/ includes.
14233 * breakpoint.c: Fix common/ includes.
14234 * ax.h:
14235 (enum agent_op): Fix common/ includes.
14236 * ax-general.c (struct aop_map): Fix common/ includes.
14237 * ax-gdb.c: Fix common/ includes.
14238 * auxv.c: Fix common/ includes.
14239 * auto-load.c: Fix common/ includes.
14240 * arm-tdep.c: Fix common/ includes.
14241 * arch/riscv.c: Fix common/ includes.
14242 * arch/ppc-linux-common.c: Fix common/ includes.
14243 * arch/i386.c: Fix common/ includes.
14244 * arch/arm.c: Fix common/ includes.
14245 * arch/arm-linux.c: Fix common/ includes.
14246 * arch/arm-get-next-pcs.c: Fix common/ includes.
14247 * arch/amd64.c: Fix common/ includes.
14248 * arch/aarch64.c: Fix common/ includes.
14249 * arch/aarch64-insn.c: Fix common/ includes.
14250 * arch-utils.c: Fix common/ includes.
14251 * amd64-windows-tdep.c: Fix common/ includes.
14252 * amd64-tdep.c: Fix common/ includes.
14253 * amd64-sol2-tdep.c: Fix common/ includes.
14254 * amd64-obsd-tdep.c: Fix common/ includes.
14255 * amd64-nbsd-tdep.c: Fix common/ includes.
14256 * amd64-linux-tdep.c: Fix common/ includes.
14257 * amd64-linux-nat.c: Fix common/ includes.
14258 * amd64-fbsd-tdep.c: Fix common/ includes.
14259 * amd64-fbsd-nat.c: Fix common/ includes.
14260 * amd64-dicos-tdep.c: Fix common/ includes.
14261 * amd64-darwin-tdep.c: Fix common/ includes.
14262 * agent.c: Fix common/ includes.
14263 * ada-lang.h: Fix common/ includes.
14264 * ada-lang.c: Fix common/ includes.
14265 * aarch64-tdep.c: Fix common/ includes.
14266
2f5c153e
TT
142672019-01-25 Tom Tromey <tom@tromey.com>
14268
14269 * common/create-version.sh: Use common/version.h.
14270
adc6a863
PA
142712019-01-24 Pedro Alves <palves@redhat.com>
14272
14273 * infrun.c (signal_stop, signal_print, signal_program)
14274 (signal_catch, signal_pass): Now arrays instead of pointers.
14275 (update_signals_program_target, do_target_resume)
14276 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14277 * linux-nat.c (linux_nat_target::pass_signals)
14278 (linux_nat_target::create_inferior, linux_nat_target::attach):
14279 Adjust.
14280 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14281 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14282 * procfs.c (procfs_target::pass_signals): Adjust.
14283 * record-full.c (record_full_target::resume): Adjust.
14284 * remote.c (remote_target::pass_signals)
14285 (remote_target::program_signals): Adjust.
14286 * target-debug.h (target_debug_print_signals): Now takes a
14287 gdb::array_view as parameter. Adjust.
14288 * target.h (target_ops) <pass_signals, program_signals>: Replace
14289 pointer and length parameters with gdb::array_view.
14290 (target_pass_signals, target_program_signals): Likewise.
14291 * target-delegates.c: Regenerate.
14292
3046d67a
PA
142932019-01-24 Pedro Alves <palves@redhat.com>
14294
14295 * common/forward-scope-exit.h
14296 (forward_scope_exit::forward_scope_exit): Pass arguments to
14297 m_bind_function directly, instead of creating a std::bind and
14298 copying that.
14299
353229bf
AH
143002019-01-24 Alan Hayward <alan.hayward@arm.com>
14301
14302 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14303 for static members.
14304 (pass_in_v_vfp_candidate): Likewise.
14305
311dc83a
TT
143062019-01-23 Tom Tromey <tom@tromey.com>
14307 Pedro Alves <palves@redhat.com>
14308
14309 * regcache.c (class regcache_invalidator): Remove.
14310 (regcache::raw_write): Use make_scope_exit.
14311
296bd123
TT
143122019-01-23 Tom Tromey <tom@tromey.com>
14313
14314 * ui-out.h (class ui_out_emit_type): Update comment.
14315
979a0d13
TT
143162019-01-23 Tom Tromey <tom@tromey.com>
14317
14318 * infrun.c (fetch_inferior_event): Update comment.
14319
d238133d
TT
143202019-01-23 Tom Tromey <tom@tromey.com>
14321 Pedro Alves <palves@redhat.com>
14322
14323 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14324 parameter.
14325 (fetch_inferior_event): Use SCOPE_EXIT.
14326
14327
9885e6bb
TT
143282019-01-23 Tom Tromey <tom@tromey.com>
14329 Pedro Alves <palves@redhat.com>
14330
14331 * infrun.c (disable_thread_events): Delete.
14332 (stop_all_threads): Use SCOPE_EXIT.
14333
286526c1
TT
143342019-01-23 Tom Tromey <tom@tromey.com>
14335 Pedro Alves <palves@redhat.com>
14336
14337 * symfile.c: Include forward-scope-exit.h.
14338 (clear_symtab_users_cleanup): Replace forward declaration with
14339 a FORWARD_SCOPE_EXIT.
14340 (syms_from_objfile_1): Use the forward_scope_exit and
14341 gdb::optional instead of cleanup_function.
14342 (reread_symbols): Use the forward_scope_exit instead of
14343 cleanup_function.
14344 (clear_symtab_users_cleanup): Remove function.
14345
1db93f14
TT
143462019-01-23 Tom Tromey <tom@tromey.com>
14347 Pedro Alves <palves@redhat.com>
14348
14349 * linux-nat.c: Include scope-exit.h.
14350 (cleanup_target_stop): Remove.
14351 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14352 SCOPE_EXIT.
14353
2cc83d1e
TT
143542019-01-23 Tom Tromey <tom@tromey.com>
14355 Pedro Alves <palves@redhat.com>
14356
14357 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14358 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14359
694c6bf5
TT
143602019-01-23 Tom Tromey <tom@tromey.com>
14361 Andrew Burgess <andrew.burgess@embecosm.com>
14362 Pedro Alves <palves@redhat.com>
14363
14364 * infrun.c (fetch_inferior_event): Use scope_exit.
14365 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14366 * top.c (execute_command): Use scope_exit.
14367 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14368 * utils.c (do_bpstat_clear_actions_cleanup)
14369 (make_bpstat_clear_actions_cleanup): Remove.
14370
4c41382a
TT
143712019-01-23 Tom Tromey <tom@tromey.com>
14372 Pedro Alves <palves@redhat.com>
14373
14374 * infrun.c: Include "common/scope-exit.h"
14375 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14376 (wait_for_inferior): Use SCOPE_EXIT.
14377 (fetch_inferior_event): Use scope_exit.
14378
89f8fb50
TT
143792019-01-23 Tom Tromey <tom@tromey.com>
14380 Pedro Alves <palves@redhat.com>
14381
14382 * breakpoint.c (create_breakpoint): Remove cleanup.
14383
5419bdae
TT
143842019-01-23 Tom Tromey <tom@tromey.com>
14385 Andrew Burgess <andrew.burgess@embecosm.com>
14386 Pedro Alves <palves@redhat.com>
14387
e587ef42
PA
143882019-01-23 Pedro Alves <palves@redhat.com>
14389
14390 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14391
77f0e74c
PA
143922019-01-23 Pedro Alves <palves@redhat.com>
14393 Andrew Burgess <andrew.burgess@embecosm.com>
14394
14395 * gdbthread.h: Include "common/forward-scope-exit.h".
14396 (scoped_finish_thread_state): Redefine custom class in terms of
14397 forward_scope_exit.
14398
5b9b3e53
PA
143992019-01-23 Pedro Alves <palves@redhat.com>
14400 Andrew Burgess <andrew.burgess@embecosm.com>
14401
14402 * common/forward-scope-exit.h: New file.
14403
54b65c9b
PA
144042019-01-23 Pedro Alves <palves@redhat.com>
14405 Andrew Burgess <andrew.burgess@embecosm.com>
14406 Tom Tromey <tom@tromey.com>
14407
14408 * common/scope-exit.h: New file.
14409
cf08fb29
PA
144102019-01-23 Pedro Alves <palves@redhat.com>
14411
14412 * common/preprocessor.h (ESC): Rename to ...
14413 (ESC_PARENS): ... this.
14414 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14415 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14416
ae73e2e2
TT
144172019-01-23 Tom Tromey <tom@tromey.com>
14418
14419 * language.h (class scoped_switch_to_sym_language_if_auto):
14420 Initialize m_lang in both cases.
14421
6594e122
AH
144222019-01-23 Alan Hayward <alan.hayward@arm.com>
14423
14424 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14425 with XCNEW.
14426
a7c9855d
TT
144272019-01-22 Tom Tromey <tom@tromey.com>
14428
14429 * corelow.c: Do not include sys/file.h.
14430
93cc1d53
TT
144312019-01-22 Tom Tromey <tom@tromey.com>
14432
14433 * tui/tui-wingeneral.h: Include gdb_curses.h.
14434
38561778
TT
144352019-01-22 Tom Tromey <tom@tromey.com>
14436
14437 * source-cache.h (class source_cache) <get_source_lines,
14438 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14439
37b3ab5b
TT
144402019-01-22 Tom Tromey <tom@tromey.com>
14441
14442 * remote-fileio.h (struct remote_target): Declare.
14443
3fabc016
TT
144442019-01-22 Tom Tromey <tom@tromey.com>
14445
14446 * python/py-arch.c: Do not include py-ref.h.
14447 * python/py-bpevent.c: Do not include py-ref.h.
14448 * python/py-cmd.c: Do not include py-ref.h.
14449 * python/py-continueevent.c: Do not include py-ref.h.
14450 * python/py-event.h: Do not include py-ref.h.
14451 * python/py-evtregistry.c: Do not include py-ref.h.
14452 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14453 * python/py-frame.c: Do not include py-ref.h.
14454 * python/py-framefilter.c: Do not include py-ref.h.
14455 * python/py-function.c: Do not include py-ref.h.
14456 * python/py-infevents.c: Do not include py-ref.h.
14457 * python/py-linetable.c: Do not include py-ref.h.
14458 * python/py-objfile.c: Do not include py-ref.h.
14459 * python/py-param.c: Do not include py-ref.h.
14460 * python/py-prettyprint.c: Do not include py-ref.h.
14461 * python/py-progspace.c: Do not include py-ref.h.
14462 * python/py-symbol.c: Do not include py-ref.h.
14463 * python/py-symtab.c: Do not include py-ref.h.
14464 * python/py-type.c: Do not include py-ref.h.
14465 * python/py-unwind.c: Do not include py-ref.h.
14466 * python/py-utils.c: Do not include py-ref.h.
14467 * python/py-value.c: Do not include py-ref.h.
14468 * python/py-varobj.c: Do not include py-ref.h.
14469 * python/py-xmethods.c: Do not include py-ref.h.
14470 * python/python.c: Do not include py-ref.h.
14471 * varobj.c: Do not include py-ref.h.
14472
6b4d7774
TT
144732019-01-22 Tom Tromey <tom@tromey.com>
14474
14475 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14476 keyword for bcache.
14477
7af7e9b5
TT
144782019-01-22 Tom Tromey <tom@tromey.com>
14479
14480 * compile/compile-cplus-types.c: Remove a comment by #include.
14481
951d1049
TT
144822019-01-22 Tom Tromey <tom@tromey.com>
14483
14484 * compile/gcc-c-plugin.h: Include compile-internal.h.
14485
d65d5705
TT
144862019-01-22 Tom Tromey <tom@tromey.com>
14487
14488 * stabsread.c (EXTERN): Do not define.
14489 (symnum, next_symbol_text_func, processing_gcc_compilation)
14490 (within_function, global_sym_chain, global_stabs)
14491 (previous_stab_code, this_object_header_files)
14492 (n_this_object_header_files)
14493 (n_allocated_this_object_header_files): Define.
14494 * stabsread.h (EXTERN): Never define. Use "extern".
14495
b6fb1ee5
PW
144962019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14497
14498 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14499 history_value.
14500
be6d4f74
TT
145012019-01-21 Tom Tromey <tom@tromey.com>
14502
14503 * ui-out.c: Fix includes.
14504 * tui/tui-source.c: Fix includes.
14505 * target.c: Fix includes.
14506 * remote.c: Fix includes.
14507 * regcache.c: Fix includes.
14508 * python/py-block.c: Fix includes.
14509 * printcmd.c: Fix includes.
14510 * or1k-tdep.c: Fix includes.
14511 * mi/mi-main.c: Fix includes.
14512 * m32r-tdep.c: Fix includes.
14513 * csky-tdep.c: Fix includes.
14514 * compile/compile-cplus-types.c: Fix includes.
14515 * cli/cli-interp.c: Fix includes.
14516
73021deb
AH
145172019-01-21 Alan Hayward <alan.hayward@arm.com>
14518
14519 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14520 for padding.
14521
7932255d
TT
145222019-01-16 Tom Tromey <tom@tromey.com>
14523
14524 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14525 earlier.
14526 (struct objfile) <msymbols_range>: Move from top level.
14527 <msymbols>: New method.
14528 (class objfile_msymbols): Remove.
14529 * symtab.c (default_collect_symbol_completion_matches_break_on):
14530 Update.
14531 * symmisc.c (dump_msymbols): Update.
14532 * stabsread.c (scan_file_globals): Update.
14533 * objc-lang.c (info_selectors_command, info_classes_command)
14534 (find_methods): Update.
14535 * minsyms.c (find_solib_trampoline_target): Update.
14536 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14537 * coffread.c (coff_symfile_read): Update.
14538 * ada-lang.c (ada_lookup_simple_minsym)
14539 (ada_collect_symbol_completion_matches): Update.
14540
604b1bfb
TT
145412019-01-16 Tom Tromey <tom@tromey.com>
14542
14543 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14544 type. Remove no-argument constructor.
14545 <iterator::operator++>: Simplify.
14546 <begin>: Update.
14547 <end>: Use minimal_symbol_count.
14548
f252c6d5
TT
145492019-01-16 Tom Tromey <tom@tromey.com>
14550
14551 * objfiles.h (struct objfile) <psymtabs>: New method.
14552 (class objfile_psymtabs): Remove.
14553 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14554 typedef.
14555 <range>: New method.
14556 (require_partial_symbols): Change return type.
14557 * psymtab.c (require_partial_symbols)
14558 (psym_expand_symtabs_matching): Update.
14559 * mdebugread.c (parse_partial_symbols): Update.
14560 * dbxread.c (dbx_end_psymtab): Update.
14561
b669c953
TT
145622019-01-15 Tom Tromey <tom@tromey.com>
14563
14564 * symtab.c (lookup_objfile_from_block)
14565 (lookup_symbol_in_objfile_symtabs)
14566 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14567 (find_line_symtab, info_sources_command)
14568 (default_collect_symbol_completion_matches_break_on)
14569 (make_source_files_completion_list): Update.
14570 * symmisc.c (print_objfile_statistics, dump_objfile)
14571 (maintenance_print_symbols, maintenance_info_symtabs)
14572 (maintenance_check_symtabs, maintenance_info_line_tables):
14573 Update.
14574 * source.c (select_source_symtab)
14575 (forget_cached_source_info_for_objfile): Update.
14576 * objfiles.h (class objfile_compunits): Remove.
14577 (struct objfile) <compunits_range>: New typedef.
14578 (compunits): New method.
14579 * objfiles.c (objfile_relocate1): Update.
14580 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14581 * maint.c (count_symtabs_and_blocks): Update.
14582 * linespec.c (iterate_over_all_matching_symtabs): Update.
14583 * cp-support.c (add_symbol_overload_list_qualified): Update.
14584 * coffread.c (coff_symtab_read): Update.
14585 * ada-lang.c (add_nonlocal_symbols)
14586 (ada_collect_symbol_completion_matches)
14587 (ada_add_global_exceptions): Update.
14588
7e955d83
TT
145892019-01-15 Tom Tromey <tom@tromey.com>
14590
14591 * progspace.h (program_space) <objfiles_safe_range>: New
14592 typedef.
14593 <objfiles_safe>: New method.
14594 * objfiles.h (class all_objfiles_safe): Remove.
14595 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14596 * jit.c (jit_inferior_exit_hook): Update.
14597
2030c079
TT
145982019-01-17 Tom Tromey <tom@tromey.com>
14599
14600 * progspace.h (program_space) <objfiles_range>: New typedef.
14601 <objfiles>: New method.
14602 <objfiles_head>: Rename from objfiles.
14603 (object_files): Update.
14604 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14605 * guile/scm-pretty-print.c
14606 (ppscm_find_pretty_printer_from_objfiles): Update.
14607 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14608 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14609 Update.
14610 * python/py-progspace.c (pspy_get_objfiles): Update.
14611 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14612 Update.
14613 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14614 (objfpy_lookup_objfile_by_build_id): Update.
14615 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14616 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14617 Update.
14618 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14619 (expand_symtab_containing_pc, lookup_objfile_from_block)
14620 (lookup_static_symbol, basic_lookup_transparent_type)
14621 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14622 (find_line_symtab, info_sources_command)
14623 (default_collect_symbol_completion_matches_break_on)
14624 (make_source_files_completion_list, find_main_name): Update.
14625 * symmisc.c (print_symbol_bcache_statistics)
14626 (print_objfile_statistics, maintenance_print_symbols)
14627 (maintenance_print_msymbols, maintenance_print_objfiles)
14628 (maintenance_info_symtabs, maintenance_check_symtabs)
14629 (maintenance_expand_symtabs, maintenance_info_line_tables):
14630 Update.
14631 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14632 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14633 (map_overlay_command, unmap_overlay_command)
14634 (simple_overlay_update, expand_symtabs_matching)
14635 (map_symbol_filenames): Update.
14636 * symfile-debug.c (set_debug_symfile): Update.
14637 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14638 Update.
14639 * source.c (select_source_symtab, forget_cached_source_info):
14640 Update.
14641 * solib.c (solib_read_symbols): Update.
14642 * solib-spu.c (append_ocl_sos): Update.
14643 * psymtab.c (maintenance_print_psymbols)
14644 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14645 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14646 * printcmd.c (info_symbol_command): Update.
14647 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14648 Update.
14649 * objfiles.h (class all_objfiles): Remove.
14650 * objfiles.c (have_partial_symbols, have_full_symbols)
14651 (have_minimal_symbols, qsort_cmp, update_section_map)
14652 (shared_objfile_contains_address_p)
14653 (default_iterate_over_objfiles_in_search_order): Update.
14654 * objc-lang.c (info_selectors_command, info_classes_command)
14655 (find_methods): Update.
14656 * minsyms.c (find_solib_trampoline_target): Update.
14657 * maint.c (maintenance_info_sections)
14658 (maintenance_translate_address, count_symtabs_and_blocks):
14659 Update.
14660 * main.c (captured_main_1): Update.
14661 * linux-thread-db.c (try_thread_db_load_from_pdir)
14662 (has_libpthread): Update.
14663 * linespec.c (iterate_over_all_matching_symtabs)
14664 (search_minsyms_for_name): Update.
14665 * jit.c (jit_find_objf_with_entry_addr): Update.
14666 * hppa-tdep.c (find_unwind_entry)
14667 (hppa_lookup_stub_minimal_symbol): Update.
14668 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14669 Update.
14670 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14671 (elf_gnu_ifunc_resolve_by_got): Update.
14672 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14673 * dwarf-index-write.c (save_gdb_index_command): Update.
14674 * cp-support.c (add_symbol_overload_list_qualified): Update.
14675 * breakpoint.c (create_overlay_event_breakpoint)
14676 (create_longjmp_master_breakpoint)
14677 (create_std_terminate_master_breakpoint)
14678 (create_exception_master_breakpoint): Update.
14679 * blockframe.c (find_pc_partial_function): Update.
14680 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14681 (ada_collect_symbol_completion_matches)
14682 (ada_add_global_exceptions): Update.
14683
776489e0
TT
146842019-01-17 Tom Tromey <tom@tromey.com>
14685
14686 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14687 declare VEC.
14688 (solib_target_parse_libraries): Change return type.
14689 (library_list_start_segment, library_list_start_section)
14690 (library_list_end_library, library_list_start_library); Update.
14691 (solib_target_free_library_list): Remove.
14692 (solib_target_parse_libraries): Remove cleanup. Change return
14693 type.
14694 (solib_target_current_sos): Update.
14695
6471e7d2
TT
146962019-01-17 Tom Tromey <tromey@bapiya>
14697
14698 * valprint.c: Replace "the the" with "the".
14699 * symtab.c: Replace "the the" with "the".
14700 * solib.c: Replace "the the" with "the".
14701 * solib-dsbt.c: Replace "the the" with "the".
14702 * linespec.c: Replace "the the" with "the".
14703 * dwarf2loc.h: Replace "the the" with "the".
14704 * amd64-windows-tdep.c: Replace "the the" with "the".
14705 * aarch64-tdep.c: Replace "the the" with "the".
14706
c24bdb02
KS
147072019-01-16 Keith Seitz <keiths@redhat.com>
14708
14709 PR gdb/23773
14710 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14711 <builder>: Rename to ..
14712 <m_builder>: ... this and make private.
14713 (dwarf2_cu::get_builder): New method. Change all users of
14714 `builder' to use this method.
14715 (dwarf2_start_symtab): Move to ...
14716 (dwarf2_cu::start_symtab): ... here. Update all callers
14717 (setup_type_unit_groups): Move to ...
14718 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14719 callers.
14720 (dwarf2_cu::reset_builder): New method.
14721 (process_full_compunit, process_full_type_unit): Use
14722 dwarf2_cu::reset_builder.
14723 (follow_die_offset): Record the ancestor CU if it is different
14724 from the followed DIE's CU.
14725 (follow_die_sig_1): Likewise.
14726
8d64371b
TT
147272019-01-15 Tom Tromey <tom@tromey.com>
14728
14729 * remote.c (class remote_state) <buf>: Now a char_vector.
14730 <buf_size>: Remove.
14731 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14732 parameter.
14733 (remote_target::getpkt_or_notif_sane_1)
14734 (remote_target::getpkt_sane)
14735 (remote_target::getpkt_or_notif_sane): Likewise.
14736 (class remote_target) <putpkt>: New overload.
14737 (remote_target::read_frame): Change type of "buf_p". Remove
14738 sizeof_p parameter.
14739 (packet_ok): New overload.
14740 (packet_check_result): New overload.
14741 Update all uses.
14742
bb277751
TT
147432019-01-14 Tom Tromey <tom@tromey.com>
14744
14745 * remote-notif.c (handle_notification, remote_notif_ack)
14746 (remote_notif_parse): Make "buf" const.
14747 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14748 const.
14749 (remote_notif_parse, remote_notif_ack, handle_notification):
14750 Likewise.
14751 * remote.c (remote_notif_stop_parse): Make "buf" const.
14752 (remote_target::remote_parse_stop_reply): Make "buf" const.
14753 (remote_notif_stop_ack): Make "buf" const.
14754
05be00a8
TT
147552019-01-14 Tom Tromey <tom@tromey.com>
14756
14757 * remote.c (remote_console_output): Make parameter const.
14758
491adeca
TT
147592019-01-14 Tom Tromey <tom@tromey.com>
14760
14761 * target-debug.h (target_debug_print_signals): Constify.
14762 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14763 * procfs.c (procfs_target::pass_signals): Update.
14764 * linux-nat.c (linux_nat_target::pass_signals): Update.
14765 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14766 * target-delegates.c: Rebuild.
14767 * remote.c (remote_target::program_signals): Update.
14768 (remote_target::pass_signals): Update.
14769 * target.c (target_pass_signals): Constify argument.
14770 (target_program_signals): Likewise.
14771 * target.h (struct target_ops) <pass_signals, program_signals>:
14772 Constify argument.
14773 (target_pass_signals, target_program_signals): Constify argument.
14774
bbd94648
TT
147752019-01-14 Tom Tromey <tom@tromey.com>
14776
14777 PR tui/28819:
14778 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14779
6f072a10
PFC
147802019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14781
14782 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14783 field.
14784 * rs6000-tdep.c: Include reggroups.h.
14785 (IS_V_ALIAS_PSEUDOREG): Define.
14786 (rs6000_register_name): Return names for the "vX" aliases.
14787 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14788 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14789 aliases. Call default_register_reggroup_p for all other
14790 pseudo-registers.
14791 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14792 New functions.
14793 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14794 Handle "vX" aliases.
14795 (v_alias_pseudo_register_collect): New function.
14796 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14797 (rs6000_gdbarch_init): Initialize "vX" aliases as
14798 pseudo-registers. Restore registration of
14799 rs6000_pseudo_register_reggroup_p with
14800 set_tdesc_pseudo_register_reggroup_p.
14801
1a782351
MF
148022019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14803
14804 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14805 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14806 set_gdbarch_num_pseudo_regs.
14807
d73cff18
PW
148082019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14809
14810 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14811 Remove arg prefixname, add do_set and do_show.
14812 Add member functions set_list and show_list.
14813 * cli/cli-style.c (class cli_style_option): Update accordingly.
14814 (style_set_list): Move to file scope.
14815 (style_show_list): Likewise.
14816 (set_style): Call help_list.
14817 (show_style): Call cmd_show_list.
14818 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14819 Update to use the new macro.
14820
60a90376
JB
148212019-10-12 Joel Brobecker <brobecker@adacore.com>
14822
14823 * ada-lang.c (_initialize_ada_language): Expand the help text
14824 for the "catch exception" command.
14825
9d7c67bf
PW
148262019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14827
14828 * symtab.c (matching_obj_sections): Initialize obj,
14829 declare it closer to its usage.
14830
7cf47dc4
TT
148312019-01-10 Tom Tromey <tom@tromey.com>
14832
14833 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14834 (basic_inf_threads_range): Remove.
14835 (inf_threads_range, inf_non_exited_threads_range)
14836 (safe_inf_threads_range): Use next_adapter.
14837
d3cb6808
KS
148382019-01-10 Keith Seitz <keiths@redhat.com>
14839
14840 PR gdb/23712
14841 PR symtab/23010
14842 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14843 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14844
63a20375
KS
148452019-01-10 Keith Seitz <keiths@redhat.com>
14846
14847 PR gdb/23712
14848 PR symtab/23010
14849 * dictionary.c (pending_to_vector): Remove.
14850 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14851 Remove _1 suffix, replacing functions of the same name. Update
14852 all callers.
14853 (dict_create_hashed, dict_create_hashed_expandable)
14854 (dict_create_linear, dict_create_linear_expandable, dict_free)
14855 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14856 Make functions static.
14857
b026f593
KS
148582019-01-10 Keith Seitz <keiths@redhat.com>
14859
14860 PR gdb/23712
14861 PR symtab/23010
14862 * dictionary.h (struct dictionary): Replace declaration with
14863 multidictionary.
14864 (dict_create_hashed, dict_create_hashed_expandable)
14865 (dict_create_linear, dict_create_linear_expandable)
14866 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14867 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14868 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14869 taking multidictionary argument.
14870 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14871 * block.h (struct block) <dict>: Change to multidictionary
14872 and rename `multidict'.
14873 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14874 symmisc.c: Update all dictionary references to multidictionary.
14875
c7748ee9
KS
148762019-01-10 Keith Seitz <keiths@redhat.com>
14877
14878 PR gdb/23712
14879 PR symtab/23010
14880 * dictionary.c: Include unordered_map.
14881 (pending_to_vector): New function.
14882 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14883 Rewrite the non-"_1" functions to take vector instead
14884 of linked list.
14885 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14886 "new" _1 versions of the same name.
14887 (multidictionary): Define.
14888 (std::hash<enum language): New definition.
14889 (collate_pending_symbols_by_language, mdict_create_hashed)
14890 (mdict_create_hashed_expandable, mdict_create_linear)
14891 (mdict_create_linear_expandable, mdict_free)
14892 (find_language_dictionary, create_new_language_dictionary)
14893 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14894 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14895 (mdict_size, mdict_empty): New functions.
14896 * dictionary.h (mdict_iterator): Define.
14897
67aa1f3c
PA
148982019-01-10 Pedro Alves <palves@redhat.com>
14899
14900 * breakpoint.c (read_uploaded_action)
14901 (create_tracepoint_from_upload): Adjust to use
14902 gdb::unique_xmalloc_ptr.
14903 * ctf.c (ctf_write_uploaded_tp):
14904 (SET_ARRAY_FIELD): Use emplace_back.
14905 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14906 * tracefile-tfile.c (tfile_write_uploaded_tp):
14907 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14908 gdb::unique_xmalloc_ptr.
14909 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14910 at_string, cond_string, cmd_strings>: Replace char pointers
14911 with gdb::unique_xmalloc_ptr.
14912
2f667667
PA
149132019-01-10 Pedro Alves <palves@redhat.com>
14914
14915 * solib-target.c (library_list_start_library): Don't xstrdup name.
14916
36cb7237
PA
149172019-01-10 Pedro Alves <palves@redhat.com>
14918
14919 * mdebugread.c (parse_partial_symbols): Use
14920 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14921
da584958
AB
149222019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14923
14924 * linux-fork.c (scoped_switch_fork_info)
14925 <~scoped_switch_fork_info>: Fix incorrect variable name.
14926
1ef8573c
AB
149272019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14928
14929 * linux-fork.c (scoped_switch_fork_info)
14930 <scoped_switch_fork_info>: Make explicit.
14931 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14932
8d7bcccb
TT
149332019-01-10 Tom Tromey <tom@tromey.com>
14934
14935 * objfiles.h (objfile::reset_psymtabs): Update.
14936 * objfiles.c (objfile::objfile): Update.
14937 * psymtab.h (psymtab_storage::obstack): Update.
14938 (psymtab_storage::m_obstack): Use gdb::optional.
14939 (class psymtab_storage): Update comment. Remove objfile
14940 parameter.
14941 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14942
b596a3c7
TT
149432019-01-10 Tom Tromey <tom@tromey.com>
14944
14945 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14946 <free_psymtabs>: Now private.
14947 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14948 (allocate_psymtab): Use new method.
14949
a9342b62
TT
149502019-01-10 Tom Tromey <tom@tromey.com>
14951
14952 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14953 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14954 * mdebugread.c (parse_partial_symbols): Use
14955 allocate_dependencies.
14956 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14957 allocate_dependencies.
14958 (process_psymtab_comp_unit_reader)
14959 (build_type_psymtab_dependencies): Likewise.
14960 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14961
5af70966
TT
149622019-01-10 Tom Tromey <tom@tromey.com>
14963
14964 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14965 PSYMBOL_SET_LANGUAGE.
14966 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14967
5923a04c
TT
149682019-01-10 Tom Tromey <tom@tromey.com>
14969
14970 * psymtab.h (psymtab_storage::obstack): New method.
14971 <m_obstack>: Rename from obstack; now private.
14972 * psymtab.c (psymtab_storage): Update.
14973 * dwarf2read.c (create_addrmap_from_index)
14974 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14975 Update.
14976
6d6a12bf
TT
149772019-01-10 Tom Tromey <tom@tromey.com>
14978
14979 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14980 * objfiles.h (objfile::reset_psymtabs): New method.
14981
d320c2b5
TT
149822019-01-10 Tom Tromey <tom@tromey.com>
14983
14984 * symmisc.c (print_symbol_bcache_statistics): Update.
14985 (print_objfile_statistics): Update.
14986 * symfile.c (reread_symbols): Update.
14987 * psymtab.h (class psymtab_storage): New.
14988 * psymtab.c (psymtab_storage): New constructor.
14989 (~psymtab_storage): New destructor.
14990 (require_partial_symbols): Update.
14991 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14992 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14993 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14994 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14995 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14996 (start_psymtab_common, end_psymtab_common)
14997 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14998 (allocate_psymtab): Update.
14999 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15000 Update.
15001 (dump_psymtab_addrmap, maintenance_print_psymbols)
15002 (maintenance_check_psymtabs): Update.
15003 (class objfile_psymtabs): Move to objfiles.h.
15004 * psympriv.h (discard_psymtab): Now inline.
15005 (psymtab_discarder::psymtab_discarder): Update.
15006 (psymtab_discarder::~psymtab_discarder): Update.
15007 (ALL_OBJFILE_PSYMTABS): Rewrite.
15008 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15009 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15010 Remove fields.
15011 <partial_symtabs>: New field.
15012 (class objfile_psymtabs): Move from psymtab.h. Update.
15013 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15014 psymbol_cache.
15015 (objfile::~objfile): Don't destroy psymbol_cache.
15016 * mdebugread.c (parse_partial_symbols): Update.
15017 * dwarf2read.c (create_addrmap_from_index)
15018 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15019 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15020 (add_partial_subprogram, dwarf2_ranges_read): Update.
15021 * dwarf-index-write.c (write_address_map)
15022 (write_one_signatured_type, recursively_write_psymbols)
15023 (class debug_names, class debug_names, write_psymtabs_to_index):
15024 Update.
15025
1d94a5a3
TT
150262019-01-10 Tom Tromey <tom@tromey.com>
15027
15028 * symtab.h (SYMBOL_SET_NAMES): Update.
15029 (symbol_set_names): Update.
15030 (MSYMBOL_SET_NAMES): Update.
15031 * symtab.c (symbol_set_names): Change argument to be an
15032 objfile_per_bfd_storage.
15033 * psymtab.c (add_psymbol_to_bcache): Update.
15034 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15035
0f14768a
TT
150362019-01-10 Tom Tromey <tom@tromey.com>
15037
15038 * symtab.c (create_demangled_names_hash): Change argument to be an
15039 objfile_per_bfd_storage.
15040 (symbol_set_names): Update.
15041
6eee24ce
TT
150422019-01-10 Tom Tromey <tom@tromey.com>
15043
15044 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15045 init_psymbol_list.
15046 * psymtab.c (init_psymbol_list): Do nothing if already called.
15047 * psympriv.h (init_psymbol_list): Add comment.
15048 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15049 init_psymbol_list.
15050 * dbxread.c (dbx_symfile_read): Unconditionally call
15051 init_psymbol_list.
15052
75aedd27
TT
150532019-01-10 Tom Tromey <tom@tromey.com>
15054
15055 * xcoffread.c (scan_xcoff_symtab): Update.
15056 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15057 "where".
15058 * mdebugread.c (parse_partial_symbols)
15059 (handle_psymbol_enumerators): Update.
15060 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15061 * dbxread.c (read_dbx_symtab): Update.
15062 * psympriv.h (psymbol_placement): New enum.
15063 (add_psymbol_to_list): Update.
15064
939652a5
TT
150652019-01-10 Tom Tromey <tom@tromey.com>
15066
15067 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15068 static_psymbols parameters.
15069 (scan_xcoff_symtab): Update.
15070 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15071 static_psymbols parameters.
15072 * psympriv.h (start_psymtab_common): Update.
15073 * mdebugread.c (parse_partial_symbols): Update.
15074 * dwarf2read.c (create_partial_symtab): Update.
15075 * dbxread.c (read_dbx_symtab): Update.
15076 (start_psymtab): Remove global_psymbols and static_psymbols
15077 parameters.
15078
baa62830
TT
150792019-01-10 Tom Tromey <tom@tromey.com>
15080
15081 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15082 * psymtab.c (allocate_psymtab): Add comment.
15083 * psympriv.h (allocate_psymtab): Add comment.
15084 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15085 initializations.
15086 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15087
0e8f53ba
TT
150882019-01-10 Tom Tromey <tom@tromey.com>
15089
15090 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15091 Don't declare.
15092 * mipsread.c: Include mdebugread.h.
15093 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15094 Declare.
15095 * elfread.c: Include mdebugread.h.
15096
b22a7c6a
TT
150972019-01-09 Tom Tromey <tom@tromey.com>
15098
15099 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15100 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15101 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15102 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15103 (psym_lookup_symbol, psym_find_last_source_symtab)
15104 (psym_forget_cached_source_info, psym_print_stats)
15105 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15106 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15107 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15108 (psym_find_compunit_symtab_by_address)
15109 (maintenance_print_psymbols, maintenance_info_psymtabs)
15110 (maintenance_check_psymtabs): Use ranged for.
15111 * psymtab.h (class objfile_psymtabs): New.
15112 (require_partial_symbols): Return objfile_psymtabs.
15113 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15114
3b9d3ac2
TT
151152019-01-09 Tom Tromey <tom@tromey.com>
15116
15117 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15118 (find_pc_mapped_section, list_overlays_command)
15119 (map_overlay_command, unmap_overlay_command)
15120 (simple_overlay_update): Use all_objfiles.
15121 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15122 * printcmd.c (info_symbol_command): Use all_objfiles.
15123 * objfiles.h (ALL_OBJSECTIONS): Remove.
15124 * maint.c (maintenance_translate_address): Use all_objfiles.
15125 * gcore.c (gcore_create_callback): Use all_objfiles.
15126 (objfile_find_memory_regions): Likewise.
15127
8b31193a
TT
151282019-01-09 Tom Tromey <tom@tromey.com>
15129
15130 * symtab.c (find_line_symtab, info_sources_command)
15131 (make_source_files_completion_list): Use objfile_compunits.
15132 * source.c (select_source_symtab): Use objfile_compunits.
15133 * objfiles.h (struct objfile): Update comment.
15134 (ALL_OBJFILES): Remove.
15135 (ALL_FILETABS): Remove.
15136 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15137 objfile_compunits.
15138
d5da8b3c
TT
151392019-01-09 Tom Tromey <tom@tromey.com>
15140
15141 * symmisc.c (print_objfile_statistics, dump_objfile)
15142 (maintenance_print_symbols): Use compunit_filetabs.
15143 * source.c (forget_cached_source_info_for_objfile): Use
15144 compunit_filetabs.
15145 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15146 (ALL_FILETABS): Use compunit_filetabs.
15147 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15148 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15149
5accd1a0
TT
151502019-01-09 Tom Tromey <tom@tromey.com>
15151
15152 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15153 (compunit_filetabs): New.
15154 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15155 compunit_filetabs.
15156 (info_sources_command, make_source_files_completion_list): Remove
15157 declaration.
15158 * symmisc.c (print_objfile_statistics, dump_objfile)
15159 (maintenance_print_symbols): Remove declaration.
15160 (maintenance_info_symtabs): Use compunit_filetabs.
15161 (maintenance_info_line_tables): Likewise.
15162 * source.c (select_source_symtab): Change local variable name.
15163 (forget_cached_source_info_for_objfile): Remove declaration.
15164 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15165 * objfiles.c (objfile_relocate1): Remove declaration.
15166 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15167 declaration.
15168 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15169 * coffread.c (coff_symtab_read): Remove declaration.
15170 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15171 compunit_filetabs.
15172
d8aeb77f
TT
151732019-01-09 Tom Tromey <tom@tromey.com>
15174
15175 * symtab.c (lookup_objfile_from_block)
15176 (find_pc_sect_compunit_symtab, search_symbols)
15177 (default_collect_symbol_completion_matches_break_on): Use
15178 objfile_compunits.
15179 * objfiles.h (ALL_COMPUNITS): Remove.
15180 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15181 * cp-support.c (add_symbol_overload_list_qualified): Use
15182 objfile_compunits.
15183 * ada-lang.c (ada_collect_symbol_completion_matches)
15184 (ada_add_global_exceptions): Use objfile_compunits.
15185
592553c4
TT
151862019-01-09 Tom Tromey <tom@tromey.com>
15187
15188 * source.c (select_source_symtab)
15189 (forget_cached_source_info_for_objfile): Remove declaration.
15190 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15191 declaration.
15192 * maint.c (count_symtabs_and_blocks): Remove declaration.
15193 * cp-support.c (add_symbol_overload_list_qualified): Remove
15194 declaration.
15195 * coffread.c (coff_symtab_read): Remove declaration.
15196 * symtab.c (lookup_symbol_in_objfile_symtabs)
15197 (basic_lookup_transparent_type_1): Use objfile_compunits.
15198 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15199 (info_sources_command, search_symbols)
15200 (default_collect_symbol_completion_matches_break_on)
15201 (make_source_files_completion_list): Remove declaration.
15202 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15203 (ada_collect_symbol_completion_matches)
15204 (ada_add_global_exceptions): Remove declaration.
15205 * linespec.c (iterate_over_all_matching_symtabs): Use
15206 objfile_compunits.
15207 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15208 (class objfile_compunits): New.
15209 (ALL_COMPUNITS): Use objfile_compunits.
15210 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15211 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15212 objfile_compunits.
15213 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15214
5325b9bf
TT
152152019-01-09 Tom Tromey <tom@tromey.com>
15216
15217 * symtab.c (search_symbols)
15218 (default_collect_symbol_completion_matches_break_on): Use
15219 objfile_msymbols.
15220 * ada-lang.c (ada_lookup_simple_minsym)
15221 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15222 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15223 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15224 objfile_msymbols.
15225 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15226 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15227 * objc-lang.c (find_methods): Use objfile_msymbols.
15228 (info_selectors_command, info_classes_command): Likewise.
15229 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15230 * objfiles.h (class objfile_msymbols): New.
15231 (ALL_OBJFILE_MSYMBOLS): Remove.
15232 (ALL_MSYMBOLS): Remove.
15233
cac85af2
TT
152342019-01-09 Tom Tromey <tom@tromey.com>
15235
15236 * common/next-iterator.h (next_adapter): Add Iterator template
15237 parameter.
15238 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15239 (class all_objfiles_safe): New.
15240 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15241 * objfiles.c (put_objfile_before): Update comment.
15242 (add_separate_debug_objfile): Likewise.
15243 (free_all_objfiles): Use all_objfiles_safe.
15244 (objfile_purge_solibs): Likewise.
15245
aed57c53
TT
152462019-01-09 Tom Tromey <tom@tromey.com>
15247
15248 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15249 (expand_symtab_containing_pc, lookup_static_symbol)
15250 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15251 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15252 all_objfiles.
15253 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15254 * breakpoint.c (create_overlay_event_breakpoint)
15255 (create_longjmp_master_breakpoint)
15256 (create_std_terminate_master_breakpoint)
15257 (create_exception_master_breakpoint): Use all_objfiles.
15258 * linux-thread-db.c (try_thread_db_load_from_pdir)
15259 (has_libpthread): Use all_objfiles.
15260 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15261 * linespec.c (iterate_over_all_matching_symtabs)
15262 (search_minsyms_for_name): Use all_objfiles.
15263 * maint.c (maintenance_info_sections): Use all_objfiles.
15264 * main.c (captured_main_1): Use all_objfiles.
15265 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15266 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15267 * guile/scm-pretty-print.c
15268 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15269 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15270 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15271 (maintenance_print_msymbols): Use all_objfiles.
15272 * source.c (select_source_symtab): Use all_objfiles.
15273 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15274 * symfile.c (remove_symbol_file_command)
15275 (expand_symtabs_matching, map_symbol_filenames): Use
15276 all_objfiles.
15277 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15278 all_objfiles.
15279 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15280 * objc-lang.c (find_methods): Use all_objfiles.
15281 * objfiles.c (have_partial_symbols, have_full_symbols)
15282 (have_minimal_symbols, qsort_cmp)
15283 (default_iterate_over_objfiles_in_search_order): Use
15284 all_objfiles.
15285 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15286 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15287 (maintenance_check_psymtabs): Use all_objfiles.
15288 (ALL_PSYMTABS): Remove.
15289 * compile/compile-object-run.c (do_module_cleanup): Use
15290 all_objfiles.
15291 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15292 * cp-support.c (add_symbol_overload_list_qualified): Use
15293 all_objfiles.
15294 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15295 Use all_objfiles.
15296 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15297 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15298 all_objfiles.
15299 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15300 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15301 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15302 Uses all_objfiles.
15303 * solib.c (solib_read_symbols): Use all_objfiles
15304
99d89cde
TT
153052019-01-09 Tom Tromey <tom@tromey.com>
15306
15307 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15308 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15309 all_objfiles.
15310 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15311 * symmisc.c (print_symbol_bcache_statistics)
15312 (print_objfile_statistics, maintenance_print_objfiles)
15313 (maintenance_info_symtabs, maintenance_check_symtabs)
15314 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15315 all_objfiles.
15316 * source.c (forget_cached_source_info): Use all_objfiles.
15317 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15318 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15319 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15320 * objfiles.c (update_section_map): Use all_objfiles.
15321 (shared_objfile_contains_address_p): Likewise.
15322 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15323 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15324
21708325
TT
153252019-01-09 Tom Tromey <tom@tromey.com>
15326
15327 * common/next-iterator.h: New file.
15328 * objfiles.h (class all_objfiles): New.
15329 (struct objfile_iterator): New.
15330
669e09f6
PW
153312019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15332
15333 * NEWS: Move the description of the changed "frame", "select-frame",
15334 and "info frame" commands to the Changed commands section.
15335
041be526
SM
153362019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15337
15338 * gdbtypes.c (check_stub_method_group): Remove handling of old
15339 mangling schemes.
15340 * linespec.c (find_methods): Likewise.
15341 * stabsread.c (read_member_functions): Likewise.
15342 * valops.c (search_struct_method): Likewise.
15343 (value_struct_elt_for_reference): Likewise.
15344 * NEWS: Mention this change.
15345
0e2a2133
AB
153462019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15347
15348 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15349 print_source_lines.
15350 * source.c (print_source_lines_base): Update line number check.
15351 (print_source_lines): New function.
15352 (source_lines_range::source_lines_range): New function.
15353 * source.h (class source_lines_range): New class.
15354 (print_source_lines): New declaration.
15355
1055a3b4
PW
153562019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15357
15358 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15359
cfeadda5
TT
153602019-01-08 Tom Tromey <tom@tromey.com>
15361 Simon Marchi <simon.marchi@ericsson.com>
15362
15363 PR gdb/24060
15364 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15365 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15366 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15367 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15368 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15369 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15370
583068ca
AB
153712019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15372
15373 * source.c (select_source_symtab): Move header comment to
15374 declaration in source.h.
15375 (forget_cached_source_info_for_objfile): Likewise.
15376 (forget_cached_source_info): Likewise.
15377 (identify_source_line): Likewise.
15378 * source.h (identify_source_line): Move declaration from symtab.h
15379 and add comment from source.c
15380 (print_source_lines): Likewise.
15381 (forget_cached_source_info_for_objfile): Likewise.
15382 (forget_cached_source_info): Likewise.
15383 (select_source_symtab): Likewise.
15384 (enum print_source_lines_flag): Move definition from symtab.h.
15385 * symtab.h (identify_source_line): Move declaration to source.h.
15386 (print_source_lines): Likewise.
15387 (forget_cached_source_info_for_objfile): Likewise.
15388 (forget_cached_source_info): Likewise.
15389 (select_source_symtab): Likewise.
15390 (enum print_source_lines_flag): Move definition to source.h.
15391 * tui/tui-hooks.c: Add 'source.h' include.
15392
ec98a4ad
AB
153932019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15394
15395 * source.c (print_source_lines_base): Handle requests to print
15396 reverse line number sequences, and guard against empty lines
15397 string.
15398
62ea19c1
AB
153992019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15400
15401 * source.c (print_source_lines_base): Fix skip of '\r' if next
15402 character is '\n'.
15403
9d30e1fd
TT
154042019-01-06 Tom Tromey <tom@tromey.com>
15405
15406 * c-exp.y (struct c_parse_state) <macro_original_text,
15407 expansion_obstack>: New member.
15408 (macro_original_text, expansion_obstack): Remove globals.
15409 (scan_macro_expansion, scanning_macro_expansion)
15410 (finished_macro_expansion): Update.
15411 (scan_macro_cleanup): Remove.
15412 (yylex, c_parse): Update.
15413
c65bac38
TT
154142019-01-06 Tom Tromey <tom@tromey.com>
15415
15416 * c-exp.y (struct c_parse_state) <strings>: New member.
15417 (operator_stoken): Update.
15418
02e12e38
TT
154192019-01-06 Tom Tromey <tom@tromey.com>
15420
15421 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15422 (union type_stack_elt) <typelist_val>: Now a pointer to
15423 std::vector.
15424 (type_stack_cleanup): Don't declare.
15425 (push_typelist): Update.
15426 * parse.c (pop_typelist): Return a std::vector.
15427 (push_typelist): Take a std::vector.
15428 (follow_types): Update. Do not free args.
15429 (type_stack_cleanup): Remove.
15430 * c-exp.y (struct c_parse_state): New.
15431 (cpstate): New global.
15432 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15433 (nonempty_typelist): Update.
15434 (func_mod): Create a new vector.
15435 (c_parse): Create a c_parse_state.
15436 (check_parameter_typelist): Do not delete params.
15437 (function_method): Update. Do not delete type_list.
15438
f097f5ad
TT
154392019-01-06 Tom Tromey <tom@tromey.com>
15440
15441 PR gdb/28155:
15442 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15443 check_typedef.
15444 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15445 (print_return_value): Likewise.
15446
d2adf9f1
TT
154472019-01-05 Tom Tromey <tom@tromey.com>
15448
15449 * contrib/cleanup_check.py: Remove.
15450 * contrib/gcc-with-excheck: Remove.
15451 * contrib/exsummary.py: Remove.
15452 * contrib/excheck.py: Remove.
15453
2eab46b1
JB
154542019-01-05 Joel Brobecker <brobecker@adacore.com>
15455
15456 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15457 NULL. Initialize tpprev to NULL instead of assigning it
15458 to NULL on the next statement.
15459 * windows-nat.c (windows_delete_thread): Remove check for
15460 main_thread_id before printing thread exit notifications.
15461 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15462 Remove thread ID check against main_thread_id.
15463 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15464 windows_delete_thread.
15465 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15466
48c5e7e2
TT
154672019-01-04 Tom Tromey <tom@tromey.com>
15468
15469 * compile/compile.c (_initialize_compile): Use upper case for
15470 metasyntactic variables.
15471 * symmisc.c (_initialize_symmisc): Use upper case for
15472 metasyntactic variables.
15473 * psymtab.c (_initialize_psymtab): Use upper case for
15474 metasyntactic variables.
15475 * demangle.c (demangle_command): Use upper case for metasyntactic
15476 variables.
15477 (_initialize_demangler): Likewise.
15478 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15479 variables.
15480
986041cd
TT
154812019-01-03 Tom Tromey <tom@tromey.com>
15482
15483 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15484
7c711119
TT
154852019-01-03 Tom Tromey <tom@tromey.com>
15486
15487 * python/py-symtab.c (salpy_str): Update.
15488 (struct salpy_sal_object) <symtab>: Now a PyObject.
15489 (salpy_dealloc): Update.
15490 (del_objfile_sal): Use gdbpy_ref.
15491
1b20edf0
TT
154922019-01-03 Tom Tromey <tom@tromey.com>
15493
15494 * python/py-type.c (convert_field): Use new_reference. Return
15495 gdbpy_ref.
15496 (make_fielditem): Return gdbpy_ref.
15497 (typy_fields): Update.
15498 (typy_getitem): Update.
15499 (field_name): Return gdbpy_ref. Use new_reference.
15500 (typy_iterator_iternext): Update.
15501
ea41325b
TT
155022019-01-03 Tom Tromey <tom@tromey.com>
15503
15504 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15505
2a3c71d6
TT
155062019-01-03 Tom Tromey <tom@tromey.com>
15507
15508 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15509 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15510 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15511 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15512 (pspy_set_type_printers): Likewise.
15513 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15514 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15515 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15516 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15517 (objfpy_set_type_printers): Likewise.
15518
5c329e6a
TT
155192019-01-03 Tom Tromey <tom@tromey.com>
15520
15521 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15522 (gdbpy_print_stack): Use gdbpy_err_fetch.
15523 * python/python-internal.h (class gdbpy_err_fetch): New class.
15524 (class gdbpy_enter) <m_error_type, m_error_value,
15525 m_error_traceback>: Remove.
15526 <m_error>: New member.
15527 (gdbpy_exception_to_string): Don't declare.
15528 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15529 * python/py-value.c (convert_value_from_python): Use
15530 gdbpy_err_fetch.
15531 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15532 gdbpy_exception_to_string.
15533 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15534 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15535 gdbpy_err_fetch.
15536
169bb27b
AB
155372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15538
15539 * linux-nat.c (delete_lwp_cleanup): Delete.
15540 (struct lwp_deleter): New struct.
15541 (lwp_info_up): New typedef.
15542 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15543 lwp_info_up.
15544
a07c8880
AB
155452019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15546
15547 * linux-fork.c (class scoped_switch_fork_info): New class.
15548 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15549
26089c49
AB
155502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15551
15552 * valops.c (find_overload_match): Remove use of null_cleanup, and
15553 calls to do_cleanups.
15554
06d3e5b0
AB
155552019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15556
15557 * compile/compile-cplus-types.c
15558 (compile_cplus_instance::decl_name): Handle changes to
15559 cp_func_name.
15560 * cp-support.c (cp_func_name): Update header comment, update
15561 return type.
15562 * cp-support.h (cp_func_name): Update return type in declaration.
15563 * valops.c (find_overload_match): Move temp_func local to top
15564 level of function and change its type. Use temp_func to hold and
15565 delete temporary string obtained from cp_func_name.
15566
66644cd3
AB
155672019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15568
15569 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15570 gdb::char_vector, remove cleanup, and update uses of `msg`.
15571
592d8c0a
JW
155722019-01-03 Jim Wilson <jimw@sifive.com>
15573
15574 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15575
c55d06ec
TT
155762019-01-02 Tom Tromey <tom@tromey.com>
15577
15578 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15579 (tdesc_parse_xml): Remove cleanups.
15580 * target-descriptions.h (make_cleanup_free_target_description):
15581 Don't declare.
15582 (target_desc_deleter): New struct.
15583 (target_desc_up): New typedef.
15584 * target-descriptions.c (target_desc_deleter::operator()): Rename
15585 from free_target_description.
15586 (make_cleanup_free_target_description): Remove.
15587
3a6ae42d
TT
155882019-01-02 Tom Tromey <tom@tromey.com>
15589
15590 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15591 constructor, destructor.
15592 (linespec_parser): Remove typedef.
15593 (~linespec_parser): Rename from linespec_parser_delete.
15594 (linespec_lex_to_end, linespec_complete_label)
15595 (linespec_complete): Update.
15596 (decode_line_full): Remove cleanups.
15597 (decode_line_1): Update.
15598
61fd3e73
TT
155992019-01-02 Tom Tromey <tom@tromey.com>
15600
15601 * python/python-internal.h (inferior_to_inferior_object): Change
15602 return type.
15603 * python/py-exitedevent.c (create_exited_event_object): Update.
15604 * python/py-inferior.c (inferior_to_inferior_object): Return
15605 gdbpy_ref.
15606 (python_new_inferior, python_inferior_deleted)
15607 (thread_to_thread_object, delete_thread_object)
15608 (build_inferior_list, gdbpy_selected_inferior): Update.
15609 * python/py-infthread.c (create_thread_object): Update. Also fail
15610 if inferior_to_inferior_object fails.
15611
d20172fc
SM
156122019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15613
15614 * inferior.h (class inferior) <displaced_step_state>: New field.
15615 * infrun.h (struct displaced_step_state): Move here from
15616 infrun.c. Initialize fields, add constructor.
15617 <inf>: Remove field.
15618 <reset>: New method.
15619 * infrun.c (struct displaced_step_inferior_state): Move to
15620 infrun.h.
15621 (displaced_step_inferior_states): Remove.
15622 (get_displaced_stepping_state): Adust.
15623 (displaced_step_in_progress_any_inferior): Adjust.
15624 (displaced_step_in_progress_thread): Adjust.
15625 (displaced_step_in_progress): Adjust.
15626 (add_displaced_stepping_state): Remove.
15627 (get_displaced_step_closure_by_addr): Adjust.
15628 (remove_displaced_stepping_state): Remove.
15629 (infrun_inferior_exit): Call displaced_step_state.reset.
15630 (use_displaced_stepping): Don't check for NULL.
15631 (displaced_step_prepare_throw): Call
15632 get_displaced_stepping_state.
15633 (displaced_step_fixup): Don't check for NULL.
15634 (prepare_for_detach): Don't check for NULL.
15635
e3319240
PW
156362019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15637
15638 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15639 in case of call that did not complete.
15640
5d36dfb9
AU
156412019-01-02 Andrey Utkin <autkin@undo.io>
15642
15643 * symfile.c (find_separate_debug_file): Fix search of debug files for
15644 remote debuggee.
15645
8833fbf0
TT
156462019-01-02 Tom Tromey <tom@tromey.com>
15647
15648 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15649 indentation.
15650 * python/py-frame.c (frapy_older): Remove cast.
15651 (frapy_newer): Likewise.
15652 * python/py-breakpoint.c (local_setattro): Remove cast.
15653 * python/py-arch.c (archpy_name): Remove local variable.
15654 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15655
4ada3dfd
JB
156562019-01-02 Joel Brobecker <brobecker@adacore.com>
15657
15658 * unittests/basic_string_view/element_access/char/empty.cc:
15659 Fix year range in copyright header.
15660
113b7b81
AB
156612019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15662
15663 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15664 Delete.
15665 <operator==>: Update with for removed field.
15666 <hash>: Likewise.
15667 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15668 <isa_features>: ...this.
15669 <abi_features>: New field.
15670 (riscv_isa_flen): Update comment.
15671 (riscv_abi_xlen): New declaration.
15672 (riscv_abi_flen): New declaration.
15673 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15674 isa_features.
15675 (riscv_abi_xlen): New function.
15676 (riscv_isa_flen): Update to get answer from isa_features.
15677 (riscv_abi_flen): New function.
15678 (riscv_has_fp_abi): Update to get answer from abi_features.
15679 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15680 xlen and flen.
15681 (riscv_call_info) <xlen, flen>: Update comment.
15682 (riscv_call_arg_struct): Remove invalid assertions
15683 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15684 is removed.
15685 (riscv_gdbarch_init): Gather isa features and abi features
15686 separately, ensure both match on the gdbarch when reusing an old
15687 gdbarch. Relax an error check to allow 32-bit abi float to run on
15688 a target with 64-bit float hardware.
15689
b18ca514
PW
156902019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15691
15692 * source.c (search_command_helper): Stop reverse search
15693 when line 1 has been searched.
15694
ec70d8db
PW
156952019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15696
15697 * record-full.c (record_full_base_target::close): Rewrite
15698 record_full_core_buf_list free logic.
15699
5b38f9c1
PW
157002019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15701
15702 * break-catch-syscall.c (print_one_catch_syscall): xfree
15703 the last text.
15704
66d91b39
JB
157052019-01-01 Joel Brobecker <brobecker@adacore.com>
15706
15707 * top.c (print_gdb_version): Update Copyright year in version
15708 message.
15709
42a4f53d
JB
157102019-01-01 Joel Brobecker <brobecker@adacore.com>
15711
15712 Update copyright year range in all GDB files.
15713
7e955d83 157142019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15715
5bbd631d 15716 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15717
5bbd631d 15718For older changes see ChangeLog-2018.
c906108c
SS
15719\f
15720Local Variables:
15721mode: change-log
15722left-margin: 8
15723fill-column: 74
15724version-control: never
57da7796 15725coding: utf-8
c906108c 15726End:
5bbd631d 15727
This page took 2.878295 seconds and 4 git commands to generate.