1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * python/python.c (class gdbpy_gil): New.
4 (struct gdbpy_event): Add constructor, destructor, operator().
5 (gdbpy_post_event): Use run_on_main_thread.
6 (gdbpy_initialize_events): Remove.
7 (do_start_initialization): Update.
9 2019-11-26 Tom Tromey <tom@tromey.com>
12 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
13 commands. Call update_thread_pool_size.
14 (update_thread_pool_size, maintenance_set_worker_threads): New
16 (n_worker_threads): New global.
18 2019-11-26 Christian Biesinger <cbiesinger@google.com>
19 Tom Tromey <tom@tromey.com>
21 * minsyms.c (minimal_symbol_reader::install): Use
23 * gdbsupport/parallel-for.h: New file.
24 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
26 2019-11-26 Christian Biesinger <cbiesinger@google.com>
27 Tom Tromey <tom@tromey.com>
29 * gdbsupport/thread-pool.h: New file.
30 * gdbsupport/thread-pool.c: New file.
31 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
32 (HFILES_NO_SRCDIR): Add thread-pool.h.
34 2019-11-26 Tom Tromey <tom@tromey.com>
36 * event-top.h (thread_local_segv_handler): Declare.
37 * event-top.c (thread_local_segv_handler): New global.
38 (install_handle_sigsegv, handle_sigsegv): New functions.
39 (async_init_signals): Install SIGSEGV handler.
40 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
42 (report_failed_demangle): New function.
43 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
44 handler-setting code, instead use segv_handler. Run warning code
47 2019-11-26 Tom Tromey <tom@tromey.com>
49 * run-on-main-thread.c: New file.
50 * run-on-main-thread.h: New file.
51 * unittests/main-thread-selftests.c: New file.
52 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
53 main-thread-selftests.c.
54 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
55 (COMMON_SFILES): Add run-on-main-thread.c.
57 2019-11-26 Tom Tromey <tom@tromey.com>
59 * main.c (setup_alternate_signal_stack): Remove.
60 (captured_main_1): Use gdb::alternate_signal_stack.
61 * gdbsupport/alt-stack.h: New file.
63 2019-11-26 Tom Tromey <tom@tromey.com>
65 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
67 (save_original_signals_state, restore_original_signals_state): Use
69 * linux-nat.c (block_child_signals, restore_child_signals_mask)
70 (_initialize_linux_nat): Use gdb_sigmask.
71 * guile/guile.c (_initialize_guile): Use block_signals.
72 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
73 * gdbsupport/gdb-sigmask.h: New file.
74 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
75 * cp-support.c (gdb_demangle): Use gdb_sigmask.
76 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
78 * configure, config.in: Rebuild.
79 * gdbsupport/block-signals.h: New file.
81 2019-11-26 Tom Tromey <tom@tromey.com>
83 * acinclude.m4: Include ax_pthread.m4.
84 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
85 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
86 (CLIBS): Use PTHREAD_LIBS.
87 (aclocal_m4_deps): Add ax_pthread.m4.
88 * config.in, configure: Rebuild.
89 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
91 2019-11-26 Tom Tromey <tom@tromey.com>
93 * symtab.h (struct minimal_symbol) <name_set>: New member.
94 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
95 Don't call symbol_set_names.
96 (minimal_symbol_reader::install): Call symbol_set_names.
98 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
100 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
101 restore_active_ext_lang, as GIL is needed for (indirectly)
102 called PyOS_InterruptOccurred.
104 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
106 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
109 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
111 * remote-sim.c (simulator_command): Make static, remove
114 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
116 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
118 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
119 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
121 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
123 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
125 * unittests/basic_string_view/element_access/char/1.cc (test01):
128 * unittests/basic_string_view/element_access/char/empty.cc (main):
130 * unittests/basic_string_view/element_access/char/front_back.cc
133 * unittests/basic_string_view/inserters/char/2.cc (test05):
136 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
139 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
142 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
144 * unittests/basic_string_view/operations/compare/char/1.cc
147 * unittests/basic_string_view/operations/compare/char/13650.cc
149 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
152 * unittests/basic_string_view/operations/data/char/1.cc (test01):
155 * unittests/basic_string_view/operations/find/char/1.cc (test01):
158 * unittests/basic_string_view/operations/find/char/2.cc (test02):
161 * unittests/basic_string_view/operations/find/char/3.cc (test03):
164 * unittests/basic_string_view/operations/find/char/4.cc (main):
166 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
169 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
172 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
175 * unittests/basic_string_view/operations/substr/char/1.cc
178 * unittests/basic_string_view/operators/char/2.cc (main):
180 * unittests/optional/assignment/1.cc (test): Likewise.
181 * unittests/optional/assignment/2.cc (test): Likewise.
182 * unittests/optional/assignment/3.cc (test): Likewise.
183 * unittests/optional/assignment/4.cc (test): Likewise.
184 * unittests/optional/assignment/5.cc (test): Likewise.
185 * unittests/optional/assignment/6.cc (test): Likewise.
186 * unittests/optional/assignment/7.cc (test): Likewise.
187 * unittests/optional/cons/copy.cc (test): Likewise.
188 * unittests/optional/cons/default.cc (test): Likewise.
189 * unittests/optional/cons/move.cc (test): Likewise.
190 * unittests/optional/cons/value.cc (test): Likewise.
191 * unittests/optional/in_place.cc (test): Likewise.
192 * unittests/optional/observers/1.cc (test): Likewise.
193 * unittests/optional/observers/2.cc (test): Likewise.
195 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
197 * tui-win.h (tui_set_var_cmd): Remove.
198 * tui-win.c (tui_set_var_cmd): Make static.
200 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
202 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
203 rbreak_command_wrapper): Remove.
204 * symtab.c (rbreak_command_wrapper): Remove.
206 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
208 * inferior.h (info_terminal_command): Remove declaration.
209 * inflow.c (info_terminal_command): Make static.
211 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
213 * inferior.c (exit_inferior_silent): Remove.
215 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
217 * dictionary.c (dict_empty, mdict_empty): Remove.
218 * dictionary.c (mdict_empty): Remove.
220 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
222 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
223 (arc_insn_get_memory_offset): Likewise.
224 (arc_insn_dump): Likewise.
225 * cp-support.c (test_cp_symbol_name_matches): Likewise.
226 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
227 * dictionary.c (dict_iterator_next): Likewise.
228 (dict_iter_match_first): Likewise.
229 (dict_iter_match_next): Likewise.
230 * f-lang.c (evaluate_subexp_f): Likewise.
231 * hppa-tdep.c (hppa_read_pc): Likewise.
232 * i386-tdep.c (i386_floatformat_for_type): Likewise.
233 * parse.c (write_exp_elt_msym): Likewise.
234 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
235 * remote.c (remote_packet_size): Likewise.
236 (remote_notif_stop_parse): Likewise.
237 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
238 * s12z-tdep.c (s12z_disassemble_info): Likewise.
239 * source.c (prepare_path_for_appending): Likewise.
240 * sparc64-linux-tdep.c
241 (sparc64_linux_handle_segmentation_fault); Likewise.
242 * stack.c (frame_selection_by_function_completer): Likewise.
244 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
246 * completer.c (set_gdb_completion_word_break_characters):
249 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
251 * dwarf-index-write.c: Include dwarf-index-write.h.
252 * mi/mi-interp.c: Include mi/mi-interp.h.
254 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
256 * aarch32-tdep.c: Include aarch32-tdep.h.
257 * aarch32-tdep.h: Forward-declare struct target_desc.
259 2019-11-26 Christian Biesinger <cbiesinger@google.com>
261 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
263 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
264 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
266 2019-11-25 Tom de Vries <tdevries@suse.de>
268 * contrib/words.sh: Add -c option.
270 2019-11-25 Christian Biesinger <cbiesinger@google.com>
272 * solib.c (solib_find_1): Change int to bool.
273 (exec_file_find): Change int to bool.
274 (solib_find): Change int to bool.
275 (solib_read_symbols): Change int to bool.
276 (solib_used): Change int to bool.
277 (solib_add): Change int to bool.
278 (info_sharedlibrary_command): Change int to bool.
279 (solib_contains_address_p): Change int to bool.
280 (solib_keep_data_in_core): Change int to bool.
281 (in_solib_dynsym_resolve_code): Change int to bool.
282 (reload_shared_libraries_1): Change int to bool.
283 (gdb_sysroot_changed): Change int to bool.
284 * solib.h (solib_read_symbols): Change int to bool.
285 (solib_contains_address_p): Change int to bool.
286 (solib_keep_data_in_core): Change int to bool.
287 (in_solib_dynsym_resolve_code): Change int to bool.
288 (libpthread_name_p): Change int to bool.
290 2019-11-25 Luis Machado <luis.machado@linaro.org>
292 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
293 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
294 (remote_packet_max_chars): New static global.
295 (show_remote_packet_max_chars): New function.
296 (remote_target::putpkt_binary): Adjust to use new
297 remote_packet_max_chars option.
298 (remote_target::getpkt_or_notif_sane_1): Likewise.
299 (_initialize_remote): Register new remote-packet-max-chars option.
301 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
303 * m68k-linux-nat.c: Include gdbarch.h.
305 2019-11-24 Tom Tromey <tom@tromey.com>
307 * symfile.c (read_symbols): Update.
308 * psymtab.c (require_partial_symbols): Change type of "verbose" to
310 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
311 (psym_lookup_symbol, psym_find_last_source_symtab)
312 (psym_forget_cached_source_info, psym_print_stats)
313 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
314 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
315 (psym_map_matching_symbols, psym_expand_symtabs_matching)
316 (psym_find_compunit_symtab_by_address)
317 (maintenance_print_psymbols, maintenance_info_psymtabs)
318 (maintenance_check_psymtabs): Update.
319 * psymtab.h (require_partial_symbols): Change type of "verbose" to
322 2019-11-22 Tom Tromey <tom@tromey.com>
324 * observable.h: Update comments.
326 2019-11-22 Tom Tromey <tromey@adacore.com>
328 * ada-tasks.c (ada_task_is_alive): Make parameter const.
329 (print_ada_task_info): Don't try to fetch thread id if task is not
332 2019-11-22 Christian Biesinger <cbiesinger@google.com>
335 * ada-lang.c (sort_choices): Update.
336 (ada_print_symbol_signature): Update.
337 (resolve_subexp): Update.
338 (ada_parse_renaming): Update.
339 (ada_read_renaming_var_value): Update.
340 (lesseq_defined_than): Update.
341 (remove_extra_symbols): Update.
342 (remove_irrelevant_renamings): Update.
343 (ada_add_block_symbols): Update.
344 (ada_collect_symbol_completion_matches): Update.
345 (ada_is_renaming_symbol): Update.
346 (aggregate_assign_from_choices): Update.
347 (ada_evaluate_subexp): Update.
348 (ada_has_this_exception_support): Update.
349 (ada_is_non_standard_exception_sym): Update.
350 (ada_add_exceptions_from_frame): Update.
351 (ada_add_global_exceptions): Update.
352 (ada_print_subexp): Update.
353 * ax-gdb.c (gen_var_ref): Update.
354 (gen_maybe_namespace_elt): Update.
355 (gen_expr_for_cast): Update.
358 * blockframe.c (find_pc_partial_function): Update.
359 * breakpoint.c (print_breakpoint_location): Update.
360 (update_static_tracepoint): Update.
361 * btrace.c (ftrace_print_function_name): Update.
362 (ftrace_function_switched): Update.
363 * buildsym.c (find_symbol_in_list): Update.
365 * c-typeprint.c (c_print_typedef): Update.
366 (c_type_print_template_args): Update.
367 * cli/cli-cmds.c (edit_command): Update.
368 (list_command): Update.
369 (print_sal_location): Update.
370 * coffread.c (patch_opaque_types): Update.
371 (process_coff_symbol): Update.
372 (coff_read_enum_type): Update.
373 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
374 (convert_one_symbol): Update.
375 (hash_symname): Update.
376 (eq_symname): Update.
377 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
378 * compile/compile-cplus-types.c (debug_print_scope): Update.
379 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
380 * compile/compile-object-load.c (get_out_value_type): Update.
381 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
382 (search_symbol_list): Update.
383 (cp_lookup_symbol_imports_or_template): Update.
384 * cp-support.c (overload_list_add_symbol): Update.
385 * ctfread.c (psymtab_to_symtab): Update.
386 * dbxread.c (cp_set_block_scope): Update.
387 * dictionary.c (iter_match_first_hashed): Update.
388 (iter_match_next_hashed): Update.
389 (insert_symbol_hashed): Update.
390 (iter_match_next_linear): Update.
391 * dictionary.h: Update.
392 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
393 (locexpr_describe_location_piece): Update.
394 (locexpr_describe_location_1): Update.
395 (locexpr_generate_c_location): Update.
396 (loclist_describe_location): Update.
397 (loclist_generate_c_location): Update.
398 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
399 (read_func_scope): Update.
400 (process_enumeration_scope): Update.
401 (new_symbol): Update.
402 (dwarf2_const_value): Update.
403 (dwarf2_symbol_mark_computed): Update.
404 * eval.c (evaluate_funcall): Update.
405 (evaluate_subexp_standard): Update.
406 * expprint.c (print_subexp_standard): Update.
407 (dump_subexp_body_standard): Update.
408 * f-valprint.c (info_common_command_for_block): Update.
409 * findvar.c (get_hosting_frame): Update.
410 (default_read_var_value): Update.
411 * go-lang.c (go_symbol_package_name): Update.
412 * guile/scm-block.c (bkscm_print_block_smob): Update.
413 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
414 (gdbscm_symbol_name): Update.
415 (gdbscm_symbol_linkage_name): Update.
416 (gdbscm_symbol_print_name): Update.
417 * infcall.c (get_function_name): Update.
418 * infcmd.c (jump_command): Update.
419 (finish_command): Update.
420 * infrun.c (insert_exception_resume_breakpoint): Update.
421 * linespec.c (canonicalize_linespec): Update.
422 (create_sals_line_offset): Update.
423 (convert_linespec_to_sals): Update.
424 (complete_label): Update.
425 (find_label_symbols_in_block): Update.
426 * m2-typeprint.c (m2_print_typedef): Update.
427 * mdebugread.c (mdebug_reg_to_regnum): Update.
428 (parse_symbol): Update.
429 (mylookup_symbol): Update.
430 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
431 (list_args_or_locals): Update.
432 * objc-lang.c (compare_selectors): Update.
433 (info_selectors_command): Update.
434 (compare_classes): Update.
435 (info_classes_command): Update.
437 * p-typeprint.c (pascal_print_typedef): Update.
438 * printcmd.c (build_address_symbolic): Update.
439 (info_address_command): Update.
440 (print_variable_and_value): Update.
441 * python/py-framefilter.c (extract_sym): Update.
442 (py_print_single_arg): Update.
443 * python/py-symbol.c (sympy_str): Update.
444 (sympy_get_name): Update.
445 (sympy_get_linkage_name): Update.
446 * python/python.c (gdbpy_rbreak): Update.
447 * record-btrace.c (btrace_get_bfun_name): Update.
448 (btrace_call_history): Update.
449 * rust-lang.c (rust_print_typedef): Update.
450 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
451 * stabsread.c (stab_reg_to_regnum): Update.
452 (define_symbol): Update.
453 (read_enum_type): Update.
454 (common_block_end): Update.
455 (cleanup_undefined_types_1): Update.
456 (scan_file_globals): Update.
457 * stack.c (print_frame_arg): Update.
458 (print_frame_args): Update.
459 (find_frame_funname): Update.
460 (info_frame_command_core): Update.
461 (iterate_over_block_locals): Update.
462 (print_block_frame_labels): Update.
463 (do_print_variable_and_value): Update.
464 (iterate_over_block_arg_vars): Update.
465 (return_command): Update.
466 * symmisc.c (dump_symtab_1): Update.
467 (print_symbol): Update.
468 * symtab.c (eq_symbol_entry): Update.
469 (symbol_cache_dump): Update.
470 (lookup_language_this): Update.
471 (find_pc_sect_line): Update.
472 (skip_prologue_sal): Update.
473 (symbol_search::compare_search_syms): Update.
474 (treg_matches_sym_type_name): Update.
475 (search_symbols): Update.
476 (print_symbol_info): Update.
477 (rbreak_command): Update.
478 (completion_list_add_symbol): Update.
479 (find_gnu_ifunc): Update.
480 (get_symbol_address): Update.
481 (search_module_symbols): Update.
482 (info_module_subcommand): Update.
483 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
484 (SYMBOL_LINKAGE_NAME): Remove.
485 (SYMBOL_DEMANGLED_NAME): Remove.
486 (SYMBOL_PRINT_NAME): Remove.
487 (SYMBOL_SEARCH_NAME): Remove.
488 * tracepoint.c (set_traceframe_context): Update.
489 (validate_actionline): Update.
490 (collection_list::collect_symbol): Update.
491 (encode_actions_1): Update.
492 (info_scope_command): Update.
493 (print_one_static_tracepoint_marker): Update.
494 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
495 * valops.c (address_of_variable): Update.
496 (find_overload_match): Update.
497 (find_oload_champ): Update.
499 2019-11-22 Christian Biesinger <cbiesinger@google.com>
501 * ada-lang.c (ada_lookup_simple_minsym): Update.
502 (ada_collect_symbol_completion_matches): Update.
503 * ada-tasks.c (read_atcb): Update.
504 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
505 (amd64_windows_skip_trampoline_code): Update.
506 * arm-tdep.c (skip_prologue_function): Update.
507 (arm_skip_stack_protector): Update.
508 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
509 (arm_wince_skip_main_prologue): Update.
510 * ax-gdb.c (gen_expr): Update.
511 * block.c (call_site_for_pc): Update.
512 * blockframe.c (find_pc_partial_function): Update.
513 * breakpoint.c (set_breakpoint_location_function): Update.
514 * btrace.c (ftrace_print_function_name): Update.
515 (ftrace_function_switched): Update.
516 * c-valprint.c (print_unpacked_pointer): Update.
517 * coffread.c (coff_symfile_read): Update.
518 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
519 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
520 * dwarf-index-write.c (write_psymbols): Update.
521 * dwarf2loc.c (call_site_to_target_addr): Update.
522 (func_verify_no_selftailcall): Update.
523 (tailcall_dump): Update.
524 (call_site_find_chain_1): Update.
525 (dwarf_expr_reg_to_entry_parameter): Update.
526 * elfread.c (elf_gnu_ifunc_record_cache): Update.
527 * eval.c (evaluate_funcall): Update.
528 (evaluate_subexp_standard): Update.
529 (evaluate_subexp_for_sizeof): Update.
530 * expprint.c (print_subexp_standard): Update.
531 (dump_subexp_body_standard): Update.
532 * frame.c (get_prev_frame_always_1): Update.
533 * frv-tdep.c (frv_skip_main_prologue): Update.
534 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
535 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
536 (gnuv3_get_typename_from_type_info): Update.
537 (gnuv3_skip_trampoline): Update.
538 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
539 * i386-tdep.c (i386_skip_main_prologue): Update.
540 (i386_pe_skip_trampoline_code): Update.
541 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
542 * infcall.c (get_function_name): Update.
543 * linespec.c (minsym_found): Update.
544 * linux-fork.c (info_checkpoints_command): Update.
545 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
546 (m32c_m16c_pointer_to_address): Update.
547 * maint.c (maintenance_translate_address): Update.
548 * minsyms.c (add_minsym_to_hash_table): Update.
549 (add_minsym_to_demangled_hash_table): Update.
550 (lookup_minimal_symbol_mangled): Update.
551 (lookup_minimal_symbol_demangled): Update.
552 (lookup_minimal_symbol_linkage): Update.
553 (lookup_minimal_symbol_text): Update.
554 (lookup_minimal_symbol_by_pc_name): Update.
555 (minimal_symbol_is_less_than): Update.
556 (compact_minimal_symbols): Update.
557 (build_minimal_symbol_hash_tables): Update.
558 (find_solib_trampoline_target): Update.
559 * mips-tdep.c (mips_stub_frame_sniffer): Update.
560 (mips_skip_pic_trampoline_code): Update.
561 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
562 * objc-lang.c (info_selectors_command): Update.
563 (info_classes_command): Update.
564 (find_methods): Update.
566 * p-valprint.c (pascal_val_print): Update.
567 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
568 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
569 * printcmd.c (build_address_symbolic): Update.
570 (info_symbol_command): Update.
571 * psymtab.c (psymbol_name_matches): Update.
572 (match_partial_symbol): Update.
573 (lookup_partial_symbol): Update.
574 (print_partial_symbols): Update.
575 (sort_pst_symbols): Update.
576 (maintenance_check_psymtabs): Update.
577 * python/py-framefilter.c (py_print_frame): Update.
578 * python/python.c (gdbpy_rbreak): Update.
579 * record-btrace.c (btrace_get_bfun_name): Update.
580 (btrace_call_history): Update.
581 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
582 (rs6000_skip_trampoline_code): Update.
583 * sol-thread.c (info_cb): Update.
584 * stabsread.c (scan_file_globals): Update.
585 * stack.c (find_frame_funname): Update.
586 (info_frame_command_core): Update.
587 * symmisc.c (dump_msymbols): Update.
588 * symtab.c (symbol_natural_name): Rename to..,
589 (general_symbol_info::natural_name): ...this.
590 (symbol_demangled_name): Rename to...
591 (general_symbol_info::demangled_name): ...this.
592 (symbol_search_name): Rename to...
593 (general_symbol_info::search_name): ...this.
594 (symbol_matches_search_name): Update.
595 (find_pc_sect_line): Update.
596 (skip_prologue_sal): Update.
597 (search_symbols): Update.
598 (print_msymbol_info): Update.
599 (rbreak_command): Update.
600 (completion_list_add_msymbol): Update.
601 (completion_list_objc_symbol): Update.
602 (get_msymbol_address): Update.
603 * symtab.h (struct general_symbol_info): Add member functions
604 natural_name (), linkage_name (), print_name (), demangled_name (),
606 (SYMBOL_NATURAL_NAME): Update.
607 (symbol_natural_name): Move to a member function on general_symbol_info.
608 (SYMBOL_DEMANGLED_NAME): Update.
609 (symbol_demangled_name): Move to a member function on
611 (SYMBOL_SEARCH_NAME): Update.
612 (symbol_search_name): Move to a member function on general_symbol_info.
613 (MSYMBOL_NATURAL_NAME): Remove.
614 (MSYMBOL_LINKAGE_NAME): Remove.
615 (MSYMBOL_PRINT_NAME): Remove.
616 (MSYMBOL_DEMANGLED_NAME): Remove.
617 (MSYMBOL_SEARCH_NAME): Remove.
618 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
620 2019-11-22 Christian Biesinger <cbiesinger@google.com>
622 * symtab.c (create_demangled_names_hash): Use per_bfd->
623 minimal_symbol_count for computing the initial size, if greater
624 than our default size.
626 2019-11-22 Tom de Vries <tdevries@suse.de>
628 * contrib/words.sh: Improve words extraction.
630 2019-11-22 Tom de Vries <tdevries@suse.de>
632 * contrib/words.sh: Combine sed invocations.
634 2019-11-21 Christian Biesinger <cbiesinger@google.com>
636 * Makefile.in: Update.
637 * demangle.c: Rename to...
638 * gdb-demangle.c: ..this.
639 (is_cplus_marker): Change return type to bool.
640 (_initialize_demangler): Rename to...
641 (_initialize_gdb_demangle): ...this.
642 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
643 * symtab.h (demangle): Remove declaration; instead include
646 2019-11-21 Tom Tromey <tromey@adacore.com>
648 * gdbsupport/format.c (format_pieces): Parse %I64d.
649 * unittests/format_pieces-selftests.c (test_windows_formats): New
651 (run_tests): Call it.
653 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
655 Byte reverse display of variables with DW_END_big, DW_END_little
656 (DW_AT_endianity) dwarf attributes if different than the native
658 * ada-lang.c (ada_value_binop):
659 Use type_byte_order instead of gdbarch_byte_order.
660 * ada-valprint.c (printstr):
661 (ada_val_print_string):
662 * ada-lang.c (value_pointer):
664 Use type_byte_order instead of gdbarch_byte_order.
665 * c-lang.c (c_get_string):
666 Use type_byte_order instead of gdbarch_byte_order.
667 * c-valprint.c (c_val_print_array):
668 Use type_byte_order instead of gdbarch_byte_order.
669 * cp-valprint.c (cp_print_class_member):
670 Use type_byte_order instead of gdbarch_byte_order.
671 * dwarf2loc.c (rw_pieced_value):
672 Use type_byte_order instead of gdbarch_byte_order.
673 * dwarf2read.c (read_base_type): Handle DW_END_big,
675 * f-lang.c (f_get_encoding):
676 Use type_byte_order instead of gdbarch_byte_order.
677 * findvar.c (default_read_var_value):
678 Use type_byte_order instead of gdbarch_byte_order.
679 * gdbtypes.c (check_types_equal):
680 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
681 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
682 and TYPE_ENDIANITY_LITTLE if set.
683 (type_byte_order): new function.
684 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
685 (struct main_type) <flag_endianity_not_default>:
687 (type_byte_order): New function.
688 * infcmd.c (default_print_one_register_info):
689 Use type_byte_order instead of gdbarch_byte_order.
690 * p-lang.c (pascal_printstr):
691 Use type_byte_order instead of gdbarch_byte_order.
692 * p-valprint.c (pascal_val_print):
693 Use type_byte_order instead of gdbarch_byte_order.
694 * printcmd.c (print_scalar_formatted):
695 Use type_byte_order instead of gdbarch_byte_order.
696 * solib-darwin.c (darwin_current_sos):
697 Use type_byte_order instead of gdbarch_byte_order.
698 * solib-svr4.c (solib_svr4_r_ldsomap):
699 Use type_byte_order instead of gdbarch_byte_order.
700 * stap-probe.c (stap_modify_semaphore):
701 Use type_byte_order instead of gdbarch_byte_order.
702 * target-float.c (target_float_same_format_p):
703 Use type_byte_order instead of gdbarch_byte_order.
704 * valarith.c (scalar_binop):
706 Use type_byte_order instead of gdbarch_byte_order.
707 * valops.c (value_cast):
708 Use type_byte_order instead of gdbarch_byte_order.
709 * valprint.c (generic_emit_char):
712 Use type_byte_order instead of gdbarch_byte_order.
713 * value.c (unpack_long):
714 (unpack_bits_as_long):
715 (unpack_value_bitfield):
718 (pack_unsigned_long):
719 Use type_byte_order instead of gdbarch_byte_order.
720 * findvar.c (unsigned_pointer_to_address):
721 (signed_pointer_to_address):
722 (unsigned_address_to_pointer):
723 (address_to_signed_pointer):
724 (default_read_var_value):
725 (default_value_from_register):
726 Use type_byte_order instead of gdbarch_byte_order.
727 * gnu-v3-abi.c (gnuv3_make_method_ptr):
728 Use type_byte_order instead of gdbarch_byte_order.
729 * riscv-tdep.c (riscv_print_one_register_info):
730 Use type_byte_order instead of gdbarch_byte_order.
732 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
734 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
735 (current_ui_gdb_stdin_ptr): Likewise.
736 (current_ui_gdb_stderr_ptr): Likewise.
737 (current_ui_gdb_stdlog_ptr): Likewise.
738 (current_ui_current_uiout_ptr): Likewise.
739 (gen_ret_current_ui_field_ptr): Remove.
741 2019-11-21 Tom de Vries <tdevries@suse.de>
744 * cli/cli-script.c (execute_control_command): Only switch to
745 INTERP_CONSOLE's ui_out when INTERP_MI is active.
747 2019-11-19 Tom Tromey <tom@tromey.com>
749 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
750 Now static. Change type of "name".
751 (tui_set_win_height_command): Don't copy "arg".
752 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
753 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
755 2019-11-19 Ali Tamur <tamur@google.com>
757 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
758 "if (attr != nullptr)".
759 (dwarf2_find_base_address): Likewise.
760 (dwarf2_build_include_psymtabs): Likewise.
761 (read_cutu_die_from_dwo): Likewise.
762 (read_func_scope): Likewise.
763 (read_call_site_scope): Likewise.
764 (dwarf2_get_pc_bounds): Likewise.
765 (dwarf2_record_block_ranges): Likewise.
766 (dwarf2_add_field): Likewise.
767 (dwarf2_add_member_fn): Likewise.
768 (read_structure_type): Likewise.
769 (read_enumeration_type): Likewise.
770 (read_array_type): Likewise.
771 (read_array_order): Likewise.
772 (read_set_type): Likewise.
773 (read_common_block): Likewise.
774 (read_tag_reference_type): Likewise.
775 (read_tag_string_type): Likewise.
776 (read_subroutine_type): Likewise.
777 (read_base_type): Likewise.
778 (read_subrange_type): Likewise.
779 (new_symbol): Likewise.
780 (prepare_one_comp_unit): Likewise.
782 2019-11-19 Tom Tromey <tromey@adacore.com>
784 * windows-nat.c (windows_nat_target::attach): Include GetLastError
785 result in error when DebugActiveProcess fails.
787 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
788 Pedro Alves <palves@redhat.com>
790 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
791 * target.c (target_stack::push): Call 'unpush' if there's a
792 target on top of the stack.
794 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
796 * python/py-block.c (blpy_dealloc): Call tp_free.
797 (blpy_block_syms_dealloc): Likewise.
798 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
799 * python/py-inferior.c (infpy_dealloc): Likewise.
800 * python/py-lazy-string.c (stpy_dealloc): Likewise.
801 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
802 * python/py-symbol.c (sympy_dealloc): Likewise.
803 * python/py-symtab.c (stpy_dealloc): Likewise.
804 * python/py-type.c (typy_iterator_dealloc): Likewise.
806 2019-11-18 Christian Biesinger <cbiesinger@google.com>
808 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
809 constructor instead of using a class initializer.
811 2019-11-15 Christian Biesinger <cbiesinger@google.com>
813 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
814 * configure: Regenerate.
815 * configure.ac: Don't source common.host.
816 * gdbsupport/common.host: Remove.
817 * gdbsupport/mingw-strerror.c: Remove.
818 * gdbsupport/posix-strerror.c: Rename to...
819 * gdbsupport/safe-strerror.c: ...this.
821 2019-11-15 Christian Biesinger <cbiesinger@google.com>
823 * maint.c (scoped_command_stats::print_time): Use localtime_r
824 instead of localtime (provided through gnulib if necessary).
825 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
828 2019-11-15 Christian Biesinger <cbiesinger@google.com>
830 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
831 avoid compile errors.
833 2019-11-15 Christian Biesinger <cbiesinger@google.com>
835 * config.in: Regenerate.
836 * configure: Regenerate.
837 * gdbsupport/common.m4: No longer check for strerror_r.
838 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
839 POSIX version of strerror_r, now that gnulib provides it if
842 2019-11-14 Christian Biesinger <cbiesinger@google.com>
844 * README (`configure' options): Update.
846 2019-11-14 Tom Tromey <tromey@adacore.com>
848 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
849 expected type for the RHS if the LHS is a convenience variable.
851 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
853 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
854 Provide explicit default and copy constructor.
856 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
858 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
859 only call Py_INCREF (newbp) in the bppy_pending_object case.
861 2019-11-13 Tom Tromey <tromey@adacore.com>
864 * psympriv.h (partial_symbol): Remove static assert.
865 * symtab.h (general_symbol_info, symbol): Remove static assert.
867 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
869 * gdbsupport/format.c (format_pieces::format_pieces): Support
870 printf 'z' size modifier.
871 * gdbsupport/format.h (enum argclass): Add size_t_arg.
872 * printcmd.c (ui_printf): Handle size_t_arg.
873 * ui-out.c (ui_out::vmessage): Likewise.
874 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
876 (run_tests): Call test_format_int_sizes.
878 2019-11-12 Christian Biesinger <cbiesinger@google.com>
880 * ada-exp.y (write_ambiguous_var): Update.
881 * buildsym.c (add_symbol_to_list): Update.
882 * dwarf2read.c (read_variable): Update.
883 (new_symbol): Update.
884 * jit.c (finalize_symtab): Update.
885 * language.c (language_alloc_type_symbol): Update.
886 * symtab.c (fixup_symbol_section): Update.
887 (initialize_objfile_symbol_1): Move code to...
888 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
889 (allocate_symbol): Update.
890 (allocate_template_symbol): Update.
891 (get_symbol_address): Update.
892 * symtab.h (struct symbol): Inherit from general_symbol_info instead
893 of having as a field, and add a constructor.
894 (SYMBOL_VALUE): Update.
895 (SYMBOL_VALUE_ADDRESS): Update.
896 (SET_SYMBOL_VALUE_ADDRESS): Update.
897 (SYMBOL_VALUE_BYTES): Update.
898 (SYMBOL_VALUE_COMMON_BLOCK): Update.
899 (SYMBOL_BLOCK_VALUE): Update.
900 (SYMBOL_VALUE_CHAIN): Update.
901 (SYMBOL_LANGUAGE): Update.
902 (SYMBOL_SECTION): Update.
903 (SYMBOL_OBJ_SECTION): Update.
904 (SYMBOL_SET_LANGUAGE): Update.
905 (SYMBOL_SET_LINKAGE_NAME): Update.
906 (SYMBOL_SET_NAMES): Update.
907 (SYMBOL_NATURAL_NAME): Update.
908 (SYMBOL_LINKAGE_NAME): Update.
909 (SYMBOL_DEMANGLED_NAME): Update.
910 (SYMBOL_SEARCH_NAME): Update.
911 (SYMBOL_MATCHES_SEARCH_NAME): Update.
912 (struct symbol): Update.
913 (struct template_symbol): Update.
914 (struct rust_vtable_symbol): Update.
915 * xcoffread.c (SYMBOL_DUP): Update.
917 2019-11-12 Tom Tromey <tom@tromey.com>
919 * tui/tui-layout.c (show_layout): Set current_layout.
920 (show_source_disasm_command, show_data)
921 (show_source_or_disasm_and_command): Don't set current_layout.
923 2019-11-12 Tom Tromey <tom@tromey.com>
925 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
927 2019-11-12 Tom Tromey <tom@tromey.com>
929 * tui/tui-win.c (resize_message): New global.
930 (show_tui_resize_message): New function.
931 (tui_async_resize_screen): Print message if requested.
932 (_initialize_tui_win): Add tui-resize-message setting.
933 * NEWS: Add entry for new commands.
935 2019-11-11 Tom Tromey <tom@tromey.com>
937 * tui/tui.c (tui_initialize_readline): Add new bindable readline
940 2019-11-11 Christian Biesinger <cbiesinger@google.com>
942 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
944 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
946 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
948 * python/python-internal.h (gdbpy_lookup_static_symbols):
949 Declare new function.
950 * python/python.c (python_GdbMethods): Add
951 gdb.lookup_static_symbols method.
952 * NEWS: Mention gdb.lookup_static_symbols.
954 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
956 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
957 static block of current object file first. Also fix typo in
960 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
962 * stack.c (set_last_displayed_sal): Delete.
963 (last_displayed_sal_valid): Delete.
964 (last_displayed_pspace): Delete.
965 (last_displayed_addr): Delete.
966 (last_displayed_symtab): Delete.
967 (last_displayed_line): Delete.
968 (class last_displayed_symtab_info_type): New.
969 (last_displayed_symtab_info): New static global variable.
970 (print_frame_info): Call methods on last_displayed_symtab_info.
971 (clear_last_displayed_sal): Update header comment, and make use of
972 last_displayed_symtab_info.
973 (last_displayed_sal_is_valid): Likewise.
974 (get_last_displayed_pspace): Likewise.
975 (get_last_displayed_addr): Likewise.
976 (get_last_displayed_symtab): Likewise.
977 (get_last_displayed_line): Likewise.
978 (get_last_displayed_sal): Likewise.
979 * stack.h (clear_last_displayed_sal): Update header comment.
980 (last_displayed_sal_is_valid): Likewise.
981 (get_last_displayed_pspace): Likewise.
982 (get_last_displayed_addr): Likewise.
983 (get_last_displayed_symtab): Likewise.
984 (get_last_displayed_line): Likewise.
985 (get_last_displayed_sal): Likewise.
987 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
989 * stack.c (frame_show_address): Convert return type to bool.
990 * stack.h (frame_show_address): Likewise, and update header
993 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
996 * unittests/vec-utils-selftests.c: New file.
997 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
999 2019-11-10 Tom Tromey <tom@tromey.com>
1001 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1002 (tui_highlight_win): Likewise.
1003 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1004 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1005 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1006 Don't set can_highlight.
1008 2019-11-10 Tom Tromey <tom@tromey.com>
1010 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1011 Remove unused declaration.
1013 2019-11-08 Tom Tromey <tromey@adacore.com>
1015 * top.c (read_command_file): Update.
1016 (command_line_input): Make return type const.
1017 * python/py-gdb-readline.c: Update.
1018 * linespec.c (decode_line_2): Update.
1019 * defs.h (command_line_input): Make return type const.
1020 * cli/cli-script.c (read_next_line): Make return type const.
1021 * ada-lang.c (get_selections): Update.
1023 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1025 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1026 * mi/mi-main.c (output_cores): Likewise.
1027 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1028 (linux_xfer_osdata_modules): Likewise.
1029 * remote.c (register_remote_support_xml): Likewise.
1030 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1031 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1033 2019-11-06 Tom Tromey <tom@tromey.com>
1035 * tui/tui-interp.c: Don't include readline.h.
1036 * tui/tui-hooks.c: Don't include readline.h.
1037 * symmisc.c: Include tilde.h, not readline.h.
1038 * symfile.c: Include tilde.h, not readline.h.
1039 * source.c: Include tilde.h, not readline.h.
1040 * solib.c: Include tilde.h, not readline.h.
1041 * psymtab.c: Include tilde.h, not readline.h.
1042 * exec.c: Include tilde.h, not readline.h.
1043 * corelow.c: Include tilde.h, not readline.h.
1044 * cli/cli-dump.c: Include tilde.h, not readline.h.
1045 * cli/cli-cmds.c: Don't include readline.h.
1047 2019-11-05 Tom Tromey <tom@tromey.com>
1049 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1050 (tui_disassemble): Set addr_size.
1051 (tui_disasm_window::set_contents): Use addr_size.
1053 2019-11-05 Tom Tromey <tom@tromey.com>
1055 * rust-lang.c (rust_language_defn): Update.
1056 * python/py-value.c (valpy_string): Call c_get_string.
1057 * p-lang.c (pascal_language_defn): Update.
1058 * opencl-lang.c (opencl_language_defn): Update.
1059 * objc-lang.c (objc_language_defn): Update.
1060 * m2-lang.c (m2_language_defn): Update.
1061 * language.c (unknown_language_defn, auto_language_defn): Update.
1062 (default_get_string): Remove.
1063 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1064 * go-lang.c (go_language_defn): Update.
1065 * f-lang.c (f_language_defn): Update.
1066 * d-lang.c (d_language_defn): Update.
1067 * c-lang.c (c_language_defn, cplus_language_defn)
1068 (asm_language_defn, minimal_language_defn): Update.
1069 * ada-lang.c (ada_language_defn): Update.
1070 * language.h (struct language_defn) <la_get_string>: Remove.
1071 (LA_GET_STRING): Remove.
1072 (default_get_string): Don't declare.
1074 2019-11-05 Tom Tromey <tom@tromey.com>
1076 * tui/tui-source.h (struct tui_source_window): Inline
1077 constructor. Remove destructor.
1078 <style_changed, m_observable>: Move to superclass.
1079 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1080 (struct tui_source_window_base): Move private members to end.
1081 <style_changed, m_observable>: Move from tui_source_window.
1082 * tui/tui-winsource.c (tui_copy_source_line): Move from
1083 tui-source.c. Rename from copy_source_line. Add special handling
1084 for negative line number.
1085 (tui_source_window_base::style_changed): Move from
1087 (tui_source_window_base): Register observer.
1088 (~tui_source_window_base): New.
1089 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1091 (tui_source_window::set_contents): Use tui_copy_source_line.
1092 (tui_source_window::tui_source_window): Move to tui-source.h.
1093 (tui_source_window::~tui_source_window): Remove.
1094 (tui_source_window::style_changed): Move to superclass.
1095 * tui/tui-disasm.c (tui_disassemble): Create string file with
1096 styling, when possible. Add "addr_size" parameter.
1097 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1098 Don't compute maximum size.
1099 (len_without_escapes): New function
1101 2019-11-05 Tom Tromey <tom@tromey.com>
1103 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1105 * tui/tui-winsource.c (tui_show_source_line): Update.
1106 * tui/tui-source.c (tui_source_window::set_contents): Update.
1107 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1109 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1111 * symtab.h (gdb_static_assert): Put && operator at the beginning
1112 of the line instead of the end.
1114 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1116 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1117 and sizeof (symbol).
1118 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1120 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1122 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1123 * configure.host: Mark *-*-solaris2.10* obsolete.
1124 * configure.tgt: Mark Solaris < 11 obsolete.
1125 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1126 Update target triplet.
1128 2019-11-01 Tom Tromey <tromey@adacore.com>
1130 * utils.c (print_sys_errmsg): Simplify.
1132 2019-11-01 Tom Tromey <tromey@adacore.com>
1134 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1136 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1138 * configure: Regenerate.
1139 * configure.ac: Remove check for strerror_r.
1140 * gdbsupport/common.m4: Check for strerror_r.
1142 2019-11-01 Luis Machado <luis.machado@linaro.org>
1146 * arm-tdep.c (arm_per_objfile): Rename to ...
1147 (arm_per_bfd): ... this.
1148 (arm_objfile_data_key): Rename to ...
1149 (arm_bfd_data_key): ... this.
1150 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1152 (arm_record_special_symbol): Likewise.
1154 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1156 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1158 * c-typeprint.c (c_print_typedef): Likewise.
1159 * f-typeprint.c (f_print_typedef): Likewise.
1160 * m2-typeprint.c (m2_print_typedef): Likewise.
1161 * p-typeprint.c (pascal_print_typedef): Likewise.
1162 * rust-lang.c (rust_print_typedef): Likewise.
1163 * symtab.c (print_symbol_info): Print a newline after calling
1166 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1168 * symtab.c (info_module_cmdlist): New variable.
1169 (info_module_command): New function.
1170 (search_module_symbols): New function.
1171 (info_module_subcommand): New function.
1172 (struct info_modules_var_func_options): New struct.
1173 (info_modules_var_func_options_defs): New variable.
1174 (make_info_modules_var_func_options_def_group): New function.
1175 (info_module_functions_command): New function.
1176 (info_module_variables_command): New function.
1177 (info_module_var_func_command_completer): New function.
1178 (_initialize_symtab): Register new 'info module functions' and
1179 'info module variables' commands.
1180 * symtab.h (typedef symbol_search_in_module): New typedef.
1181 (search_module_symbols): Declare new function.
1182 * NEWS: Mention new commands.
1184 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1186 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1187 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1188 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1190 (scan_partial_symbols): Only create partial module symbols for non
1192 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1194 * symtab.c (search_domain_name): Likewise.
1195 (search_symbols): Likewise.
1196 (print_symbol_info): Likewise.
1197 (symtab_symbol_info): Likewise.
1198 (info_modules_command): New function.
1199 (_initialize_symtab): Register 'info modules' command.
1200 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1201 * NEWS: Mention new 'info modules' command.
1203 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1205 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1206 and $_gdb_maint_setting_str.
1208 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1210 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1211 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1212 (str_value_from_setting, gdb_setting_str_internal_fn)
1213 (gdb_maint_setting_str_internal_fn): New functions.
1214 (_initialize_cli_cmds): Define the new convenience functions.
1215 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1216 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1218 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1220 * agent.c (set_can_use_agent): When the setting is turned on,
1221 look up agent symbols if we don't have them yet.
1222 (agent_new_objfile): Don't look up agent symbols when the agent
1225 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1227 * config.in: Regenerate.
1229 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1231 * configure: Regenerate.
1232 * configure.ac: Check for strerror_r.
1233 * gdbsupport/common-utils.h (safe_strerror): Change return value
1234 to const char * and document that this function is now threadsafe.
1235 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1236 thread_local and call strerror_r, if available.
1237 * utils.c (perror_string): Update.
1238 (print_sys_errmsg): Update.
1240 2019-10-31 Luis Machado <luis.machado@linaro.org>
1242 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1244 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1245 objfile to fetch per-bfd data.
1246 (arm_find_exidx_entry): Likewise.
1248 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1250 * gdbsupport/agent.c (debug_agent): Change type to bool.
1251 (use_agent): Likewise.
1252 (all_agent_symbols_look_up): Likewise.
1253 (agent_loaded_p): Change return value to bool.
1254 (agent_look_up_symbols): Update.
1255 (agent_capability_check): Change return value to bool.
1256 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1257 (debug_agent): Change type to bool.
1258 (use_agent): Likewise.
1259 (agent_capability_check): Change return value to bool.
1261 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1263 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1264 (build_minimal_symbol_hash_tables): Code to clear the table moved
1265 to clear_minimal_symbol_hash_tables.
1266 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1269 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1271 * infcmd.c: Remove includes.
1272 * infrun.c: Remove includes.
1274 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1276 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1277 (grow_vect): Remove declaration.
1278 (ada_type_of_array): Remove declaration.
1279 (ada_update_initial_language): Remove declaration.
1280 (ada_fold_name): Remove declaration.
1281 (ada_fill_in_ada_prototype): Remove declaration.
1282 (user_select_syms): Remove declaration.
1283 (get_selections): Remove declaration.
1284 (ada_tag_type): Remove declaration.
1285 (ada_value_tag): Remove declaration.
1286 (ada_is_others_clause): Remove declaration.
1287 (ada_in_variant): Remove declaration.
1288 (ada_value_struct_elt): Remove declaration.
1289 (ada_attribute_name): Remove declaration.
1290 (ada_system_address_type): Remove declaration.
1291 * ada-lang.c (ada_watch_location_expression): Make static.
1292 (GROW_VECT): Move here from ada-lang.h.
1293 (grow_vect): Make static.
1294 (ada_update_initial_language): Make static.
1295 (ada_fold_name): Make static.
1296 (ada_type_of_array): Make static.
1297 (encoded_ordered_before): Move up.
1298 (sort_choices): Move up.
1299 (print_signatures): Move up.
1300 (ada_print_symbol_signature): Move up.
1301 (get_selections): Move up and make static.
1302 (user_select_syms): Move up and make static.
1303 (ada_value_struct_elt): Move up and make static.
1304 (ada_tag_type): Make static.
1305 (ada_value_tag): Make static.
1306 (ada_is_others_clause): Make static.
1307 (ada_in_variant): Make static.
1308 (ada_attribute_name): Make static.
1310 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1312 * ada-lang.c: Remove includes.
1313 * ada-typeprint.c: Remove includes.
1314 * ada-valprint.c: Remove includes.
1316 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1318 * addrmap.c: Add static assertions of type size, moved from
1319 _initialize_addrmap.
1320 (_initialize_addrmap): Remove.
1322 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1324 * coffread.c (record_minimal_symbol): Update.
1325 (process_coff_symbol): Update.
1326 * dbxread.c (read_dbx_symtab): Update.
1327 * dwarf2read.c (add_partial_symbol): Update.
1328 (fixup_go_packaging): Update.
1329 (load_partial_dies): Update.
1330 (new_symbol): Update.
1331 * elfread.c (record_minimal_symbol): Change signature to use
1332 gdb::string_view instead of name+len.
1333 (elf_symtab_read): Update.
1334 (elf_rel_plt_read): Update.
1335 * mdebugread.c (parse_partial_symbols): Update.
1336 (handle_psymbol_enumerators): Update.
1337 (new_symbol): Update.
1338 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1339 to use gdb::string_view instead of name+len.
1340 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1341 * psympriv.h (add_psymbol_to_list): Likewise.
1342 * psymtab.c (add_psymbol_to_bcache): Likewise.
1343 (add_psymbol_to_list): Likewise.
1344 * stabsread.c (define_symbol): Update.
1345 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1346 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1347 (symbol_set_names): Likewise.
1348 * xcoffread.c (scan_xcoff_symtab): Update.
1350 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1352 * symtab.h (symbol_set_names): Document that copy_name must be
1353 set to true for non-nullterminated strings.
1354 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1355 linkage_name if the entry was not found and we need to demangle.
1357 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1359 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1360 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1361 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1362 * gdbsupport/gdb_binary_search.h: New file.
1364 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1366 * NEWS: Mention new --with-system-gdbinit-dir option.
1367 * config.in: Regenerate.
1368 * configure: Regenerate.
1369 * configure.ac: Add new option --with-system-gdbinit-dir.
1370 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1371 for a ".gdb" suffix.
1372 * main.c (get_init_files): Change system_gdbinit argument to
1373 a vector and return the files in SYSTEM_GDBINIT_DIR in
1374 addition to SYSTEM_GDBINIT.
1375 (captured_main_1): Update.
1376 (print_gdb_help): Update.
1377 * top.c (print_gdb_configuration): Also print the value of
1380 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1382 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1383 that takes gdb::string_view arguments.
1385 2019-10-26 Tom de Vries <tdevries@suse.de>
1387 * aarch64-linux-tdep.c: Fix typos in comments.
1388 * aarch64-tdep.c: Same.
1390 * amd64-nat.c: Same.
1392 * arch/aarch64-insn.c: Same.
1394 * breakpoint.h: Same.
1397 * cli/cli-decode.c: Same.
1398 * cli/cli-script.c: Same.
1399 * cli/cli-utils.h: Same.
1400 * coff-pe-read.c: Same.
1402 * compile/compile-cplus-symbols.c: Same.
1403 * compile/compile-object-run.c: Same.
1404 * completer.c: Same.
1406 * cp-support.c: Same.
1408 * dwarf-index-write.c: Same.
1409 * dwarf2-frame.c: Same.
1410 * dwarf2-frame.h: Same.
1412 * frame-base.h: Same.
1417 * guile/scm-objfile.c: Same.
1418 * i386-tdep.c: Same.
1419 * i386-tdep.h: Same.
1422 * linux-nat.c: Same.
1423 * m68k-tdep.c: Same.
1426 * mi/mi-cmd-disas.c: Same.
1427 * mi/mi-getopt.h: Same.
1428 * mi/mi-main.c: Same.
1430 * nat/aarch64-sve-linux-sigcontext.h: Same.
1432 * ppc-linux-nat.c: Same.
1433 * ppc-linux-tdep.c: Same.
1435 * progspace.h: Same.
1436 * prologue-value.h: Same.
1437 * python/py-evtregistry.c: Same.
1438 * python/py-instruction.h: Same.
1439 * record-btrace.c: Same.
1440 * record-full.c: Same.
1442 * rs6000-tdep.c: Same.
1444 * sol-thread.c: Same.
1445 * sparc-sol2-tdep.c: Same.
1446 * sparc64-tdep.c: Same.
1447 * stabsread.c: Same.
1451 * tracepoint.c: Same.
1452 * tui/tui-data.h: Same.
1453 * tui/tui-io.c: Same.
1454 * tui/tui-win.c: Same.
1456 * unittests/rsp-low-selftests.c: Same.
1457 * user-regs.h: Same.
1468 * xtensa-tdep.c: Same.
1470 2019-10-25 Ali Tamur <tamur@google.com>
1472 * charset.c (find_charset_names): Reflect API change.
1474 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1476 * symtab.c (struct demangled_name_entry): Change demangled name
1477 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1478 part of the struct anymore.
1479 (symbol_set_names): No longer obstack allocate + copy the demangled
1480 name, just store the allocated name from bfd.
1482 2019-10-25 Tom Tromey <tromey@adacore.com>
1484 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1485 (bsearch_cie_cmp, add_cie): Remove.
1486 (find_cie): Reimplement.
1487 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1488 (dwarf2_build_frame_info): Update.
1490 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1493 * symfile.c (reread_symbols): Call forget_cached_source_info to
1494 clear the stale source cache.
1496 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1498 * configure: Regenerate.
1499 * configure.ac: Remove code that sets python_has_threads.
1501 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1503 * config.in: Regenerate.
1504 * configure: Regenerate.
1505 * configure.ac: Remove the code that uses sed to get the python
1506 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1508 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1510 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1513 2019-10-23 Tom Tromey <tom@tromey.com>
1515 * arc-tdep.c: Remove ".." from include.
1516 * frv-tdep.c: Remove ".." from include.
1517 * lm32-tdep.c: Remove ".." from include.
1518 * microblaze-tdep.c: Remove ".." from include.
1519 * or1k-tdep.h: Remove ".." from include.
1520 * s12z-tdep.c: Remove ".." from include.
1521 * Makefile.in (OPCODES_CFLAGS): Add comment.
1522 (TOP_CFLAGS): New variable.
1523 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1525 2019-10-23 Tom Tromey <tom@tromey.com>
1527 * Makefile.in (READLINE_DIR): Update.
1529 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1531 * infcall.c (call_function_by_hand_dummy): Fix the function
1532 comment. And extract out a code section into...
1533 (reserve_stack_space): ...this new function.
1535 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1537 * infcall.c (value_arg_coerce): Remove an unused parameter.
1538 (call_function_by_hand_dummy): Update the call to
1541 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1543 * infcall.c (call_function_by_hand_dummy): Refactor.
1545 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1547 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1549 2019-10-23 Tom Tromey <tom@tromey.com>
1551 * configure: Rebuild.
1552 * configure.ac: Don't check for sigprocmask.
1553 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1555 2019-10-23 Tom Tromey <tom@tromey.com>
1557 * configure: Rebuild.
1558 * acinclude.m4: Use m4_include, not sinclude.
1560 2019-10-23 Tom de Vries <tdevries@suse.de>
1562 PR breakpoints/24687
1563 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1565 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1567 * symtab.c (struct demangled_name_entry) <language>: Change from
1568 bitfield to regular variable.
1570 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1572 * symtab.c (struct demangled_name_entry): Add a constructor.
1573 (free_demangled_name_entry): New function to call the destructor
1574 for demangled_name_entry.
1575 (create_demangled_names_hash): Pass free_demangled_name_entry to
1577 (symbol_set_names): Call placement new for demangled_name_entry.
1578 * utils.c: No longer include xxhash.h here, now that fast_hash
1579 is inlined in the header.
1580 * utils.h: Instead, include it here.
1582 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1584 * Makefile.in: Link with libxxhash.
1585 * config.in: Regenerate.
1586 * configure: Regenerate.
1587 * configure.ac: Search for libxxhash.
1588 * utils.c (fast_hash): Use xxhash if present.
1590 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1592 * utils.h (fast_hash): New function.
1593 * symtab.c (hash_demangled_name_entry): Call new function
1596 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1598 * symtab.c (struct demangled_name_entry): Change type of mangled
1599 to gdb::string_view. Also adds a constructor that takes the
1601 (hash_demangled_name_entry): Update.
1602 (eq_demangled_name_entry): Update.
1603 (free_demangled_name_entry): New function to call the destructor
1604 now that this is not a POD anymore.
1605 (create_demangled_names_hash): Pass free_demangled_name_entry to
1607 (symbol_set_names): Update.
1609 2019-10-21 Ali Tamur <tamu@google.com>
1611 * dwarf2read.c (dir_index): Change type.
1612 (file_name_index): Likewise.
1613 (line_header::include_dir_at): Change comment and implementation on
1614 whether it is DWARF 5.
1615 (line_header::is_valid_file_index): New function.
1616 (line_header::file_name_at): Change comment and implementation on
1617 whether it is DWARF 5.
1618 (line_header::file_names): Change to private field renamed as
1619 m_file_names and introduce a new accessor method.
1620 (line_header::file_names_size): New method.
1621 (line_header::include_dirs): Change to private field and rename as
1623 (dw2_get_file_names_reader): Define local var at a smaller scope and
1625 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1626 (process_structure_scope): Likewise.
1627 (line_header::add_include_dir): Change message and reflect renaming.
1628 (line_header::add_file_name): Likewise.
1629 (read_formatted_entries): Handle DW_FORM_data16.
1630 (dwarf_decode_line_header): Fix line header length calculation.
1631 (psymtab_include_file_name): Change comment and API.
1632 (lnp_state_machine::m_file): Update comment and reflect type change.
1633 (lnp_state_machine::record_line): Reflect type change.
1634 (dwarf_decode_lines): Reflect API change.
1635 (file_file_name): Likewise.
1636 (file_full_name): Likewise.
1638 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1640 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1642 2019-10-21 Tom Tromey <tom@tromey.com>
1644 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1646 2019-10-21 Tom Tromey <tom@tromey.com>
1648 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1649 NM_H. Use AC_CONFIG_LINKS.
1650 * configure: Rebuild.
1651 * Makefile.in (NM_H): New variable.
1652 (generated_files): Add NM_H. Remove gcore.
1653 (nm.h, stamp-nmh): New targets.
1655 2019-10-20 Tom Tromey <tom@tromey.com>
1657 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1658 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1660 (put_objfile_before): Now static.
1662 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1664 * gdbsupport/common-utils.h (startswith): Change return type to
1667 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1669 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1670 * breakpoint.c (bp_locations_compare): Rename to...
1671 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1672 (update_global_location_list): Use std::sort instead of qsort.
1673 * buildsym.c (compare_line_numbers): Rename to...
1674 (lte_is_less_than): ...this, and change to std::sort semantics.
1675 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1677 * disasm.c (compare_lines): Rename to...
1678 (line_is_less_than): ...this, and change to std::sort semantics.
1679 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1681 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1682 (fde_is_less_than): ...this, and change to std::sort semantics.
1683 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1684 * mdebugread.c (compare_blocks):
1685 (block_is_less_than): ...this, and change to std::sort semantics.
1686 (sort_blocks): Call std::sort instead of qsort.
1687 * objfiles.c (qsort_cmp): Rename to...
1688 (sort_cmp): ...this, and change to std::sort semantics.
1689 (update_section_map): Call std::sort instead of qsort.
1690 * remote.c (compare_pnums): Remove.
1691 (map_regcache_remote_table): Call std::sort instead of qsort.
1692 * utils.c (compare_positive_ints): Remove.
1693 * utils.h (compare_positive_ints): Remove.
1694 * xcoffread.c (compare_lte): Remove.
1695 (arrange_linetable): Call std::sort instead of qsort.
1697 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1699 * symfile.c (init_entry_point_info): Fix typo.
1700 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1702 2019-10-18 Tom de Vries <tdevries@suse.de>
1704 * aarch64-tdep.c: Fix typos in comments.
1706 * ada-tasks.c: Same.
1707 * alpha-tdep.c: Same.
1708 * alpha-tdep.h: Same.
1709 * amd64-nat.c: Same.
1710 * amd64-windows-tdep.c: Same.
1713 * arch-utils.c: Same.
1714 * arm-nbsd-tdep.c: Same.
1717 * blockframe.c: Same.
1720 * coff-pe-read.c: Same.
1722 * cris-tdep.c: Same.
1723 * darwin-nat.c: Same.
1727 * dtrace-probe.c: Same.
1728 * dwarf-index-write.c: Same.
1729 * dwarf2-frame-tailcall.c: Same.
1730 * dwarf2-frame.c: Same.
1731 * dwarf2read.c: Same.
1733 * exceptions.c: Same.
1734 * fbsd-tdep.c: Same.
1738 * gnu-v3-abi.c: Same.
1740 * h8300-tdep.c: Same.
1741 * hppa-tdep.c: Same.
1742 * i386-linux-tdep.c: Same.
1743 * i386-tdep.c: Same.
1744 * ia64-libunwind-tdep.c: Same.
1745 * ia64-tdep.c: Same.
1749 * linux-nat.c: Same.
1750 * linux-thread-db.c: Same.
1751 * machoread.c: Same.
1752 * mdebugread.c: Same.
1754 * mn10300-tdep.c: Same.
1755 * namespace.c: Same.
1757 * opencl-lang.c: Same.
1758 * or1k-tdep.c: Same.
1760 * ppc-linux-nat.c: Same.
1761 * ppc-linux-tdep.c: Same.
1762 * ppc-sysv-tdep.c: Same.
1765 * record-btrace.c: Same.
1766 * record-full.c: Same.
1767 * remote-fileio.c: Same.
1769 * rs6000-tdep.c: Same.
1770 * s12z-tdep.c: Same.
1771 * score-tdep.c: Same.
1775 * sol-thread.c: Same.
1776 * solib-svr4.c: Same.
1779 * sparc-nat.c: Same.
1780 * sparc-sol2-tdep.c: Same.
1781 * sparc-tdep.c: Same.
1782 * sparc64-tdep.c: Same.
1783 * stabsread.c: Same.
1787 * target-descriptions.c: Same.
1788 * target-float.c: Same.
1795 * windows-nat.c: Same.
1796 * xcoffread.c: Same.
1797 * xstormy16-tdep.c: Same.
1798 * xtensa-tdep.c: Same.
1800 2019-10-17 Tom Tromey <tromey@adacore.com>
1802 * configure: Rebuild.
1803 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1804 in AC_CONFIG_FILES invocation.
1805 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1806 new-style config.status invocation.
1808 2019-10-17 Tom de Vries <tdevries@suse.de>
1810 * arm-nbsd-nat.c: Fix typos in comments.
1812 * darwin-nat-info.c: Same.
1813 * dwarf2read.c: Same.
1815 * event-top.c: Same.
1818 * hppa-tdep.c: Same.
1819 * i386-tdep.c: Same.
1822 * mdebugread.c: Same.
1823 * moxie-tdep.c: Same.
1824 * nto-procfs.c: Same.
1826 * ppc-linux-tdep.c: Same.
1828 * riscv-tdep.c: Same.
1829 * s390-tdep.c: Same.
1831 * sparc-linux-tdep.c: Same.
1832 * sparc-nat.c: Same.
1834 * target-descriptions.c: Same.
1838 2019-10-16 Tom Tromey <tom@tromey.com>
1840 * objfiles.h (struct objfile) <original_name>: Now const.
1842 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1844 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1845 pass on to sigsetjmp's second argument.
1846 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1848 2019-10-16 Keith Seitz <keiths@redhat.com>
1851 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1852 sections whose size is greater than the file size.
1854 2019-10-16 Jim Wilson <jimw@sifive.com>
1856 * riscv-tdep.c (riscv_gcc_target_options): New.
1857 (riscv_gnu_triplet_regexp): New.
1858 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1859 set_gdbarch_gnu_triplet_regexp.
1861 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1863 * Makefile.in: Add xml-builtin.h.
1864 * features/feature_to_c.sh: Add an include for xml-builtin.h
1865 to ensure that the compiler checks that the types match.
1866 * xml-builtin.h: New file.
1867 * xml-support.c (fetch_xml_builtin): Add missing const.
1868 * xml-support.h: Remove declaration of xml_builtins.
1870 2019-10-16 Tom de Vries <tdevries@suse.de>
1873 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1874 (amd64_classify_aggregate): ... here.
1875 (amd64_classify_aggregate_field): Handled fiels of nested structs
1878 2019-10-16 Tom de Vries <tdevries@suse.de>
1881 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1882 that handles 'theclass'.
1884 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1886 * linespec.c (decode_digits_ordinary): Update comment.
1887 * make-target-delegates: No longer need to handle VEC case.
1888 * memrange.c (normalize_mem_ranges): Update comment.
1889 * namespace.c (add_using_directive): Update comment.
1890 * objc-lang.c (uniquify_strings): Update comment.
1891 * ppc-linux-nat.c (struct thread_points): Update comment.
1892 * probe.h (find_probes_in_objfile): Update comment.
1893 * target.h (enum flash_preserve_mode): Update comment.
1894 * varobj.c (varobj_restrict_range): Update comment.
1895 * varobj.h (varobj_list_children): Update comment.
1897 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * Makefile.in: Remove references to vec.h and vec.c.
1900 * aarch64-tdep.c: No longer include vec.h.
1901 * ada-lang.c: Likewise.
1902 * ada-lang.h: Likewise.
1903 * arm-tdep.c: Likewise.
1905 * breakpoint.h: Likewise.
1906 * charset.c: Likewise.
1907 * cp-support.h: Likewise.
1908 * dtrace-probe.c: Likewise.
1909 * dwarf2read.c: Likewise.
1910 * extension.h: Likewise.
1911 * gdb_bfd.c: Likewise.
1912 * gdbsupport/gdb_vecs.h: Likewise.
1913 * gdbsupport/vec.c: Remove.
1914 * gdbsupport/vec.h: Remove.
1915 * gdbthread.h: Likewise.
1916 * guile/scm-type.c: Likewise.
1917 * inline-frame.c: Likewise.
1918 * machoread.c: Likewise.
1919 * memattr.c: Likewise.
1920 * memrange.h: Likewise.
1921 * namespace.h: Likewise.
1922 * nat/linux-btrace.h: Likewise.
1923 * osdata.c: Likewise.
1924 * parser-defs.h: Likewise.
1925 * progspace.h: Likewise.
1926 * python/py-type.c: Likewise.
1927 * record-btrace.c: Likewise.
1928 * rust-exp.y: Likewise.
1929 * solib-target.c: Likewise.
1930 * stap-probe.c: Likewise.
1931 * target-descriptions.c: Likewise.
1932 * target-memory.c: Likewise.
1933 * target.h: Likewise.
1934 * varobj.c: Likewise.
1935 * varobj.h: Likewise.
1936 * xml-support.h: Likewise.
1938 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1940 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1941 Update for new std::vector based implementation.
1942 (process_psymtab_comp_unit_reader): Likewise.
1943 (scan_partial_symbols): Likewise.
1944 (recursively_compute_inclusions): Likewise.
1945 (compute_compunit_symtab_includes): Likewise.
1946 (process_imported_unit_die): Likewise.
1947 (queue_and_load_dwo_tu): Likewise.
1948 (follow_die_sig_1): Likewise.
1949 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1950 (typedef dwarf2_per_cu_ptr): Remove.
1951 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1953 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1954 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1955 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1956 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1959 2019-10-15 Tom Tromey <tromey@adacore.com>
1961 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1964 2019-10-15 Tom Tromey <tromey@adacore.com>
1966 * windows-nat.c (windows_nat_target::fetch_registers)
1967 (windows_nat_target::store_registers): Rename "pid" to "tid".
1969 2019-10-15 Tom Tromey <tromey@adacore.com>
1971 * gdbarch.h, gdbarch.c: Rebuild.
1972 * gdbarch.sh (gcc_target_options): Change return type to
1974 * compile/compile.c (get_args): Update.
1975 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1976 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1978 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1980 * arch-utils.c (default_gcc_target_options): Return std::string.
1981 * arch-utils.h (default_gcc_target_options): Return std::string.
1982 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1984 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1986 * breakpoint.c (breakpoint_chain): Make static.
1987 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1988 of accessing breakpoint_chain.
1990 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1992 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1993 to a gdb::function_view and return value to bool.
1994 * breakpoint.h (iterate_over_breakpoints): Likewise.
1995 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1996 (pop_dummy_frame): Update.
1997 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1998 (gdbscm_breakpoints): Update.
1999 * python/py-breakpoint.c (build_bp_list): Update.
2000 (gdbpy_breakpoints): Update.
2001 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2003 (bpfinishpy_handle_stop): Update.
2004 (bpfinishpy_handle_exit): Update.
2005 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2006 (svr4_update_solib_event_breakpoints): Update.
2008 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2010 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2011 when unwrapping single-field structs.
2013 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2015 * dwarf2read.c: Remove includes.
2017 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2019 * ui-out.c (ui_out::call_do_message): Silence
2020 -Wformat-nonliteral warning.
2022 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2024 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2025 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2026 include: readline/tilde.h.
2028 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2030 * remote.c (remote_target::get_trace_status): Remove declaration of
2031 trace_regblock_size.
2033 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2035 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2036 (show_user): Remove declaration of cmdlist.
2037 * cli/cli-cmds.h (max_user_call_depth): Declare.
2038 * cli/cli-script.c (execute_user_command): Remove declaration
2039 of max_user_call_depth.
2041 2019-10-11 Jim Wilson <jimw@sifive.com>
2043 * gdbsupport/print-utils.h (pulongest): Fix comment.
2044 (plongest): Likewise.
2045 (phex): Add missing comment, mention leading zeros.
2046 (phex_nz): Add mention of no leading zeros to comment.
2048 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2049 plongest instead of unsigned long long cast.
2051 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2053 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2054 for external_editor_command and gdbtk_test.
2056 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2058 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2059 * varobj.c (varobjdebug): Move comment to...
2060 * varobj.h (varobjdebug): ...here, and declare.
2062 2019-10-09 Tom Tromey <tom@tromey.com>
2064 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2067 2019-10-09 Tom Tromey <tom@tromey.com>
2069 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2070 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2071 * tui/tui-command.c (tui_cmd_window::resize)
2072 (tui_refresh_cmd_win): Update.
2073 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2074 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2075 * tui/tui-data.c (~tui_gen_win_info): Remove.
2076 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2077 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2078 (tui_redisplay_readline, tui_mld_flush)
2079 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2080 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2081 (tui_data_window::erase_data_content)
2082 (tui_data_item_window::rerender)
2083 (tui_data_item_window::refresh_window): Update.
2084 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2085 (box_win, tui_gen_win_info::make_window)
2086 (tui_gen_win_info::make_visible): Update.
2087 (tui_delete_win): Remove.
2088 * tui/tui-winsource.c
2089 (tui_source_window_base::do_erase_source_content): Update.
2090 (tui_show_source_line, tui_source_window_base::update_tab_width)
2091 (tui_source_window_base::update_exec_info): Update.
2092 * tui/tui-data.h (struct curses_deleter): New.
2093 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2094 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2096 2019-10-09 Tom Tromey <tom@tromey.com>
2098 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2100 2019-10-09 Tom Tromey <tom@tromey.com>
2102 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2103 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2105 2019-10-09 Tom Tromey <tom@tromey.com>
2107 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2108 window height directly.
2109 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2111 * tui/tui-layout.c (tui_default_win_height): Remove.
2112 (tui_default_win_viewport_height): Remove.
2114 2019-10-09 Tom Tromey <tom@tromey.com>
2116 * tui/tui.h: Remove comments.
2118 2019-10-09 Tom de Vries <tdevries@suse.de>
2120 * python/lib/gdb/printer/bound_registers.py: Use
2121 '^builtin_type_bound128' as regexp argument for
2122 add_builtin_pretty_printer.
2124 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2126 * guile/guile.c (guile_extension_script_ops): Remove forward
2127 declaration and mark as static.
2128 (guile_script_ops): Likewise.
2129 (extension_language_guile): Move further down in the file so
2130 it can reference the definitions for guile_{extension_,}script_ops.
2132 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2134 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2135 except SORTL, DFLTCC, and KDSA.
2137 2019-10-08 Tom Tromey <tromey@adacore.com>
2139 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2140 (struct safe_symbol_file_add_args): Remove.
2142 2019-10-08 Tom Tromey <tromey@adacore.com>
2144 * windows-nat.c: Don't include buildsym-legacy.h.
2146 2019-10-08 Tom Tromey <tromey@adacore.com>
2148 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2150 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2152 * gdbtypes.c (overload_debug): Move comment to header.
2153 * gdbtypes.h (overload_debug): Declare.
2154 * valops.c: Remove declaration of overload_debug, instead
2157 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2159 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2161 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2163 * language.h (lang_frame_mismatch_warn): ... here. Also add
2165 * top.c (lang_frame_mismatch_warn): Remove declaration.
2166 (check_frame_language_change): Pass lang_frame_mismatch_warn
2169 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2171 * c-lang.h (vtbl_ptr_name): Declare.
2172 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2174 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2176 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2178 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2181 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2183 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2184 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2185 * ctfread.c: New file.
2186 * ctfread.h: New file.
2187 * elfread.c: Include ctfread.h.
2188 (struct elfinfo text_p): New member ctfsect.
2189 (elf_locate_sections): Mark CTF section.
2190 (elf_symfile_read): Call elfctf_build_psymtabs.
2191 * Makefile.in (LIBCTF): Add.
2194 (DIST): Add ctfread.c.
2196 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2198 * ctfread.c (struct nextfield): Renamed to ...
2199 (struct ctf_nextfield): ... this.
2200 (struct field_info): Renamed to ...
2201 (strut ctf_field_info): ... this.
2202 (attach_fields_to_type): Update for renamed structures.
2203 (ctf_add_member_cb): Likewise.
2204 (ctf_add_enum_member_cb): Likewise.
2205 (process_struct_members): Likewise.
2206 (process_enum_type): Likewise.
2208 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2210 * tracectf.h: Rename, was ctf.h.
2211 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2212 * tracefile.c: Likewise.
2213 * tracepoint.c: Remove unused include ctf.h.
2214 * mi/mi-main.c: Likewise.
2215 * Makefile.in Replace ctf.c with tracectf.c.
2217 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2219 * version.in: Change version number to "9.0.50.DATE-git".
2221 2019-10-03 Tom Tromey <tom@tromey.com>
2224 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2226 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2228 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2229 cp_search_name_hash.
2230 * NEWS: Add entry about nested function support.
2232 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2233 Andrew Burgess <andrew.burgess@embecosm.com>
2235 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2236 for nested static variables when searchin VAR_DOMAIN.
2237 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2238 global scope, update comment.
2239 (add_partial_subprogram): Call add_partial_subprogram recursively
2240 for nested subroutines when processinng Fortran.
2241 (load_partial_dies): Process the child entities of a subprogram
2242 when processing Fortran.
2243 (partial_die_parent_scope): Handle building scope
2244 for Fortran nested functions.
2245 (process_die): Record that nested functions have a scope.
2246 (new_symbol): Always record Fortran subprograms on the global
2248 (determine_prefix): How to build the prefix for Fortran
2251 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2253 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2254 have just sent the thread a SIGSTOP and are waiting for it to
2257 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2259 * btrace.c (btrace_add_pc): Remove whitespace before the template
2260 parameter in 'std::vector <...>'.
2261 (parse_xml_btrace_block): Likewise.
2262 (btrace_maint_decode_pt): Likewise.
2263 (btrace_maint_update_packets): Likewise.
2264 (btrace_maint_print_packets): Likewise.
2265 * btrace.h (struct btrace_maint_info): Likewise.
2266 * dwarf2read.c (struct type_unit_group): Likewise.
2267 (build_type_psymtabs_reader): Likewise.
2268 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2269 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2270 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2272 2019-10-03 Tom de Vries <tdevries@suse.de>
2274 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2275 the first line of the help text for set/show style metadata.
2277 2019-10-02 Tom Tromey <tromey@adacore.com>
2279 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2280 * gdbsupport/common-inferior.c: New file.
2281 * infcmd.c (startup_with_shell): Don't define.
2282 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2283 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2284 * inferior.h (startup_with_shell): Don't declare.
2286 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2288 * gdbsupport/gdb_assert.h: Include errors.h.
2289 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2291 2019-10-02 Tom Tromey <tromey@adacore.com>
2293 * NEWS: Add $_ada_exception entry.
2294 * ada-lang.c (struct ada_catchpoint): Add constructor.
2295 <m_kind>: New member.
2296 (allocate_location_exception, re_set_exception): Remove
2298 (should_stop_exception): Compute $_ada_exception.
2299 (check_status_exception, print_it_exception)
2300 (print_one_exception, print_mention_exception): Remove
2302 (allocate_location_catch_exception, re_set_catch_exception)
2303 (check_status_exception, print_it_catch_exception)
2304 (print_one_catch_exception, print_mention_catch_exception)
2305 (print_recreate_catch_exception)
2306 (allocate_location_catch_exception_unhandled)
2307 (re_set_catch_exception_unhandled)
2308 (check_status_exception, print_it_catch_exception_unhandled)
2309 (print_one_catch_exception_unhandled)
2310 (print_mention_catch_exception_unhandled)
2311 (print_recreate_catch_exception_unhandled)
2312 (allocate_location_catch_assert, re_set_catch_assert)
2313 (check_status_assert, print_it_catch_assert)
2314 (print_one_catch_assert, print_mention_catch_assert)
2315 (print_recreate_catch_assert)
2316 (allocate_location_catch_handlers, re_set_catch_handlers)
2317 (check_status_handlers, print_it_catch_handlers)
2318 (print_one_catch_handlers, print_mention_catch_handlers)
2319 (print_recreate_catch_handlers): Remove.
2320 (create_ada_exception_catchpoint): Update.
2321 (initialize_ada_catchpoint_ops): Update.
2323 2019-10-02 Tom Tromey <tromey@adacore.com>
2325 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2326 (create_excep_cond_exprs): Simplify exception string computation.
2327 (ada_exception_catchpoint_cond_string): Likewise.
2329 2019-10-02 Tom Tromey <tromey@adacore.com>
2331 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2332 * ada-lang.c (lesseq_defined_than): Handle
2334 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2336 (dwarf2_has_info): Likewise.
2337 (new_symbol): Set maybe_copied on symbol when
2339 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2341 <can_copy>: New member.
2342 * elfread.c (record_minimal_symbol): Set maybe_copied
2343 on symbol when appropriate.
2344 (elf_symfile_read): Update call to dwarf2_has_info.
2345 * minsyms.c (lookup_minimal_symbol_linkage): New
2347 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2348 * symtab.c (get_symbol_address, get_msymbol_address):
2350 * symtab.h (get_symbol_address, get_msymbol_address):
2352 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2354 (struct symbol, struct minimal_symbol) <maybe_copied>:
2357 2019-10-02 Tom Tromey <tromey@adacore.com>
2359 * source.c (struct current_source_location): New.
2360 (current_source_key): New global.
2361 (current_source_symtab, current_source_line)
2362 (current_source_pspace): Remove.
2363 (get_source_location): New function.
2364 (get_current_source_symtab_and_line)
2365 (set_default_source_symtab_and_line)
2366 (set_current_source_symtab_and_line)
2367 (clear_current_source_symtab_and_line, select_source_symtab)
2368 (info_source_command, print_source_lines_base)
2369 (info_line_command, search_command_helper, _initialize_source):
2372 2019-10-02 Tom Tromey <tromey@adacore.com>
2374 * source.c (select_source_symtab): Don't call
2375 decode_line_with_current_source.
2377 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2379 * symtab.c (lookup_global_symbol): Search global block.
2381 2019-10-02 Tom Tromey <tromey@adacore.com>
2383 * coffread.c (process_coff_symbol): Update.
2384 * dwarf2read.c (var_decode_location, new_symbol): Update.
2385 * mdebugread.c (parse_symbol): Update.
2386 * objfiles.c (relocate_one_symbol): Update.
2387 * stabsread.c (define_symbol, fix_common_block)
2388 (scan_file_globals): Update.
2389 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2390 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2391 * xcoffread.c (process_xcoff_symbol): Update.
2393 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2395 * MAINTAINERS: Update my email address.
2397 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2399 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2401 (build_type_psymtabs_reader): Update for std::vector.
2402 (build_type_psymtab_dependencies): Likewise.
2403 * dwarf2read.h: Remove use of DEF_VEC_P.
2404 (typedef sig_type_ptr): Delete.
2406 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2408 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2410 (btrace_maint_decode_pt): Likewise, and move allocation of the
2411 vector outside of the loop.
2412 (btrace_maint_update_packets): Update to handle change from VEC to
2414 (btrace_maint_print_packets): Likewise.
2415 (maint_info_btrace_cmd): Likewise.
2416 * btrace.h: Remove use of DEF_VEC_O.
2417 (typedef btrace_pt_packet_s): Delete.
2418 (struct btrace_maint_info) <packets>: Change fromm VEC to
2420 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2422 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2424 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2425 make accesses into the vector constant references.
2426 (btrace_add_pc): Update for std::vector.
2427 (btrace_stitch_bts): Likewise.
2428 (parse_xml_btrace_block): Likewise.
2429 (btrace_maint_update_packets): Likewise.
2430 (btrace_maint_print_packets): Likewise.
2431 (maint_info_btrace_cmd): Likewise.
2432 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2434 (btrace_data::empty): Likewise.
2435 (btrace_data_append): Likewise.
2436 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2437 (typedef btrace_block_s): Delete.
2438 (struct btrace_block): Add constructor.
2439 (struct btrace_data_bts) <blocks>: Change to std::vector.
2440 * nat/linux-btrace.c (perf_event_read_bts): Update for
2442 (linux_read_bts): Likewise.
2444 2019-10-01 Tom Tromey <tom@tromey.com>
2446 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2448 2019-10-01 Tom Tromey <tom@tromey.com>
2450 * stack.c (print_frame, info_frame_command_core): Use
2452 * linux-thread-db.c (try_thread_db_load_1)
2453 (try_thread_db_load_from_pdir_1): Use styled_string.
2454 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2455 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2456 (maybe_print_unsupported_script_warning)
2457 (maybe_print_script_not_found_warning): Use styled_string.
2458 * ada-lang.c (user_select_syms): Use styled_string.
2460 2019-10-01 Tom Tromey <tom@tromey.com>
2462 * p-lang.c (pascal_printstr): Use metadata style.
2463 * value.c (show_convenience): Use metadata style.
2464 * valprint.c (valprint_check_validity, val_print_optimized_out)
2465 (val_print_not_saved, val_print_unavailable)
2466 (val_print_invalid_address, generic_val_print, val_print)
2467 (value_check_printable, val_print_array_elements): Use metadata
2469 * ui-out.h (class ui_out) <field_fmt>: New overload.
2470 <do_field_fmt>: Add style parameter.
2471 * ui-out.c (ui_out::field_fmt): New overload.
2472 * typeprint.c (type_print_unknown_return_type)
2473 (val_print_not_allocated, val_print_not_associated): Use metadata
2475 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2477 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2478 * tracepoint.c (tvariables_info_1): Use metadata style.
2479 * stack.c (print_frame_arg, print_frame_info, print_frame)
2480 (info_frame_command_core): Use metadata style.
2481 * skip.c (info_skip_command): Use metadata style.
2482 * rust-lang.c (rust_print_enum): Use metadata style.
2483 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2485 * python/py-framefilter.c (py_print_single_arg): Use metadata
2487 * printcmd.c (do_one_display, print_variable_and_value): Use
2489 * p-valprint.c (pascal_val_print)
2490 (pascal_object_print_value_fields): Use metadata style.
2491 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2492 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2494 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2495 * m2-valprint.c (m2_print_long_set): Use metadata style.
2496 * m2-typeprint.c (m2_print_type): Use metadata style.
2497 * infcmd.c (print_return_value_1): Use metadata style.
2498 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2499 * f-valprint.c (info_common_command_for_block): Use metadata
2501 * f-typeprint.c (f_type_print_base): Use metadata style.
2502 * expprint.c (print_subexp_standard): Use metadata style.
2503 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2504 * cli/cli-style.h (class cli_style_option): Add constructor.
2505 (metadata_style): Declare.
2506 * cli/cli-style.c (metadata_style): New global.
2507 (_initialize_cli_style): Register metadata style.
2508 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2510 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2511 * c-typeprint.c (c_type_print_base_struct_union)
2512 (c_type_print_base_1): Use metadata style.
2513 * breakpoint.c (watchpoint_value_print)
2514 (print_one_breakpoint_location): Use metadata style.
2515 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2517 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2519 * ada-valprint.c (val_print_packed_array_elements, printstr)
2520 (print_field_values, ada_val_print_ref, ada_val_print): Use
2522 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2524 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2526 * ada-lang.c (user_select_syms): Use metadata style.
2528 2019-10-01 Tom Tromey <tom@tromey.com>
2530 * cli/cli-cmds.c (pwd_command): Style output.
2532 2019-10-01 Pedro Alves <palves@redhat.com>
2533 Tom Tromey <tom@tromey.com>
2535 * symtab.c (print_symbol_info): Use %ps.
2536 (print_msymbol_info): Use %ps.
2537 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2538 * printcmd.c (print_variable_and_value): Use %ps.
2539 * macrocmd.c (show_pp_source_pos): Use %ps.
2540 * infrun.c (print_exited_reason): Use ui_out::message.
2541 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2542 (describe_other_breakpoints): Use ui_out::message and new
2544 (say_where): Use new formats.
2545 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2548 2019-10-01 Pedro Alves <palves@redhat.com>
2549 Tom Tromey <tom@tromey.com>
2551 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2552 (test_gdb_formats): New function.
2553 (run_tests): Call it.
2554 (test_format_specifier): Update.
2555 * utils.h (fputs_filtered): Update comment.
2556 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2557 (fputs_styled_unfiltered): Declare.
2558 * utils.c (fputs_styled_unfiltered): New function.
2559 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2560 (vfprintf_filtered): Update.
2561 (vfprintf_unfiltered, vprintf_filtered): Update.
2562 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2563 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2564 disallow_ui_out_field>: New constants.
2565 (enum class field_kind): New.
2566 (struct base_field_s, struct signed_field_s): New.
2567 (signed_field): New function.
2568 (struct string_field_s): New.
2569 (string_field): New function.
2570 (struct styled_string_s): New.
2571 (styled_string): New function.
2572 (class ui_out) <message>: Add comment.
2573 <vmessage, call_do_message>: New methods.
2574 <do_message>: Add style parameter.
2575 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2577 (ui_out::message): Rewrite.
2578 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2580 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2581 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2582 gdb_extensions parameter.
2583 (class format_piece): Add parameter to constructor.
2584 (n_int_args): New field.
2585 * gdbsupport/format.c (format_pieces::format_pieces): Add
2586 gdb_extensions parameter. Handle '*'.
2587 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2588 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2589 vfprintf_styled_no_gdbfmt.
2590 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2591 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2593 * ui-style.h (struct ui_file_style) <ptr>: New method.
2595 2019-10-01 Tom Tromey <tom@tromey.com>
2597 * unittests/format_pieces-selftests.c: Update. Add final format.
2598 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2599 empty literal pieces.
2601 2019-10-01 Tom Tromey <tom@tromey.com>
2603 * ui-out.h (enum class ui_out_style_kind): Remove.
2604 (class ui_out) <field_string, field_stsream, do_field_string>:
2605 Change type of "style".
2606 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2607 (ui_out::field_string): Update.
2608 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2610 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2611 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2612 * stack.c (print_frame_arg, print_frame_info, print_frame):
2614 * source.c (print_source_lines_base): Update.
2615 * solib.c (info_sharedlibrary_command): Update.
2616 * skip.c (info_skip_command): Update.
2617 * record-btrace.c (btrace_call_history_src_line)
2618 (btrace_call_history): Update.
2619 * python/py-framefilter.c (py_print_frame): Update.
2620 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2622 * mi/mi-out.c (mi_ui_out::do_table_header)
2623 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2624 (mi_ui_out::do_field_string): Update.
2625 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2627 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2629 * cli-out.c (cli_ui_out::do_table_header)
2630 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2631 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2632 (cli_ui_out::do_field_fmt): Update.
2633 * breakpoint.c (print_breakpoint_location): Update.
2634 (update_static_tracepoint): Update.
2636 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2638 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2639 conversion of gdb_datadir.
2640 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2641 remove not needed c_str ().
2643 2019-09-30 Ali Tamur <tamur@google.com>
2645 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2646 (dwarf2_string_attr): Likewise.
2648 2019-09-30 Ali Tamur <tamur@google.com>
2650 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2651 (process_full_type_unit): Likewise.
2652 (dump_die_shallow): Likewise.
2653 (cu_debug_loc_section): Likewise.
2655 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2657 * minsyms.c (compare_minimal_symbols): Rename to...
2658 (minimal_symbol_is_less_than): ...this, and adjust to STL
2659 conventions (return bool, take arguments as references)
2660 (minimal_symbol_reader::install): Call std::sort instead
2663 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2665 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2667 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2668 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2670 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2672 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2673 * psympriv.h (add_psymbol_to_list): Move comment here and update
2676 2019-09-29 Tom de Vries <tdevries@suse.de>
2678 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2679 Use $tmpdir/$(basename "$output_file").dwz instead of
2680 "${output_file}.dwz".
2682 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2685 * hppa-linux-nat.c: Include gdbarch.h.
2687 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2689 * blockframe.c (find_pc_partial_function): Change return type to bool.
2690 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2691 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2692 (stub_gnu_ifunc_resolve_name): Likewise.
2693 * symtab.c (compare_filenames_for_search): Likewise.
2694 (compare_glob_filenames_for_search): Likewise.
2695 (matching_obj_sections): Likewise.
2696 (symbol_matches_domain): Likewise.
2697 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2698 (find_line_pc): Change return type to bool.
2699 (find_line_pc_range): Likewise.
2700 (producer_is_realview): Likewise.
2701 * symtab.h (symbol_matches_domain): Likewise.
2702 (find_pc_partial_function): Likewise.
2703 (find_pc_line_pc_range): Likewise.
2704 (in_gnu_ifunc_stub): Likewise.
2705 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2706 (find_line_pc): Likewise.
2707 (find_line_pc_range): Likewise.
2708 (matching_obj_sections): Likewise.
2709 (find_line_symtab): Change out parameter to bool.
2710 (producer_is_realview): Change return type to bool.
2711 (compare_filenames_for_search): Likewise.
2712 (compare_glob_filenames_for_search): Likewise.
2714 2019-09-26 Tom Tromey <tom@tromey.com>
2716 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2717 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2718 * gdb_usleep.h: Remove.
2719 * gdb_usleep.c: Remove.
2720 * utils.c: Don't include gdb_usleep.h.
2722 2019-09-26 Tom Tromey <tromey@adacore.com>
2724 * python/py-type.c (type_to_type_object): Call check_typedef
2727 2019-09-26 Tom Tromey <tom@tromey.com>
2729 * utils.h (initialize_utils): Don't declare.
2730 * top.c (gdb_init): Don't call initialize_utils.
2731 * utils.c (initialize_utils): Remove. Move contents...
2732 (_initialize_utils): ... here.
2734 2019-09-25 Tom Tromey <tom@tromey.com>
2736 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2737 * utils.h (make_hex_string): Don't declare.
2738 * utils.c (make_hex_string): Remove.
2740 2019-09-24 Tom de Vries <tdevries@suse.de>
2743 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2744 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2746 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2748 * NEWS: Mention new simulator port for PRU.
2750 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2752 * ada-exp.y (write_object_remaining): Update.
2753 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2754 and eliminate the static buffer.
2755 (ada_decode_symbol): Update.
2756 (ada_la_decode): Update.
2757 (ada_sniff_from_mangled_name): Update.
2758 (is_valid_name_for_wild_match): Update.
2759 (ada_lookup_name_info::matches): Update and simplify.
2760 (name_matches_regex): Update.
2761 (ada_add_global_exceptions): Update.
2762 * ada-lang.h (ada_decode): Update signature.
2763 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2764 * dwarf-index-write.c (debug_names::insert): Update.
2766 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2768 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2771 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2773 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2774 Change "nonzero" to "true" in documentation.
2776 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2778 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2779 (_initialize_darwin_solib): Don't set
2780 darwin_so_ops.lookup_lib_global_symbol.
2781 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2782 set_gdbarch_iterate_over_objfiles_in_search_order.
2783 (elf_lookup_lib_symbol): Rename to...
2784 (svr4_iterate_over_objfiles_in_search_order): this, and update
2785 to iterate semantics.
2786 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2787 * solib.c (solib_global_lookup): Remove.
2788 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2789 (solib_global_lookup): Remove.
2790 * symtab.c (lookup_global_or_static_symbol): Remove call to
2791 solib_global_lookup.
2793 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2795 * NEWS: Move entries about default MI version now being
2796 version 3, and about the GDB/MI fix for multi-location
2797 breakpoints to the "since GDB 8.3" section.
2799 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2803 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2805 * NEWS: Mention that Cell/B.E. debugging support was removed.
2806 * MAINTAINERS: Remove spu target.
2808 * config/djgpp/fnchange.lst: Remove entries for removed files.
2810 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2811 spu-multiarch.o, and spu-tdep.o.
2812 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2813 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2814 spu-multiarch.c, and spu-tdep.c.
2815 * spu-linux-nat.c: Remove file.
2816 * spu-multiarch.c: Remove file.
2817 * spu-tdep.c: Remove file.
2818 * spu-tdep.h: Remove file.
2819 * solib-spu.c: Remove file.
2820 * solib-spu.h: Remove file.
2822 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2823 * configure.nat (spu-linux): Remove.
2824 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2825 solib-multiarch.o from gdb_target_obs.
2828 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2830 (ppc_linux_no_features): Update.
2831 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2833 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2834 (tdesc_powerpc_cell64l): Likewise.
2835 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2836 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2838 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2839 Do not include "features/rs6000/powerpc-cell32l.c" or
2840 "features/rs6000/powerpc-cell64l.c".
2841 (ppc_linux_spu_section): Remove.
2842 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2843 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2844 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2845 (ppc_linux_spe_context_lookup): Remove.
2846 (ppc_linux_spe_context_inferior_created): Remove.
2847 (ppc_linux_spe_context_solib_loaded): Remove.
2848 (ppc_linux_spe_context_solib_unloaded): Remove.
2849 (ppc_linux_spe_context): Remove.
2850 (struct ppu2spu_cache): Remove.
2851 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2852 (struct ppu2spu_data): Remove.
2853 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2854 ppu2spu_unwind): Remove.
2855 (ppc_linux_init_abi): Remove Cell/B.E. support.
2856 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2858 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2859 (rs6000/powerpc-cell64l-expedite): Likewise
2860 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2861 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2862 rs6000/powerpc-cell64l.xml.
2863 * features/rs6000/powerpc-cell32l.xml: Remove.
2864 * features/rs6000/powerpc-cell64l.xml: Likewise.
2865 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2866 * features/rs6000/powerpc-cell64l.c: Likewise.
2867 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2868 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2869 * regformats/reg-spu.dat: Remove.
2871 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2872 * corelow.c (struct spuid_list): Remove.
2873 (add_to_spuid_list): Remove.
2874 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2875 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2876 (remote_protocol_features): Remove associated entries.
2877 (_initialize_remote): No longer initialize them.
2878 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2879 * linux-nat.c (SPUFS_MAGIC): Remove.
2880 (linux_proc_xfer_spu): Remove.
2881 (spu_enumerate_spu_ids): Remove.
2882 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2883 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2884 (linux_make_corefile_notes): No longer call it.
2886 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2887 (cooked_write_test): Likewise.
2889 2019-09-20 Tom Tromey <tom@tromey.com>
2891 * NEWS: Mention case-sensitivity of TUI commands.
2892 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2893 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2894 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2896 2019-09-20 Tom Tromey <tom@tromey.com>
2898 * tui/tui-source.c (tui_source_window::set_contents): Use
2899 make_unique_xstrdup.
2900 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2901 make_unique_xstrdup.
2903 2019-09-20 Tom Tromey <tom@tromey.com>
2905 * tui/tui-data.c: Remove separator comments.
2906 * tui/tui-layout.c: Remove separator comments.
2907 * tui/tui-win.c: Remove separator comments.
2908 * tui/tui-wingeneral.c: Remove separator comments.
2910 2019-09-20 Tom Tromey <tom@tromey.com>
2912 * tui/tui.h (strcat_to_buf): Don't declare.
2913 * tui/tui.c (strcat_to_buf): Remove.
2915 2019-09-20 Tom Tromey <tom@tromey.com>
2917 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2919 * tui/tui-source.c (tui_source_window::set_contents)
2920 (tui_source_window::location_matches_p)
2921 (tui_source_window::maybe_update): Update.
2923 2019-09-20 Tom Tromey <tom@tromey.com>
2925 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2927 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2929 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2930 (tui_data_window::line_from_reg_element_no)
2931 (tui_data_window::first_reg_element_no_inline)
2932 (tui_data_window::show_registers)
2933 (tui_data_window::show_register_group)
2934 (tui_data_window::display_registers_from)
2935 (tui_data_window::display_registers_from_line)
2936 (tui_data_window::first_data_item_displayed)
2937 (tui_data_window::delete_data_content_windows)
2938 (tui_data_window::erase_data_content)
2939 (tui_data_window::do_scroll_vertical)
2940 (tui_data_window::refresh_window)
2941 (tui_data_window::check_register_values): Update.
2943 2019-09-20 Tom Tromey <tom@tromey.com>
2945 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2946 (struct tui_locator_window) <full_name, proc_name>: Now
2948 * tui/tui-stack.c (tui_locator_window::make_status_line)
2949 (tui_locator_window::set_locator_fullname)
2950 (tui_locator_window::set_locator_info): Update.
2951 * tui/tui-source.c (tui_source_window::set_contents)
2952 (tui_source_window::showing_source_p): Update.
2954 2019-09-20 Tom Tromey <tom@tromey.com>
2956 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2957 Don't call tui_locator_win_info_ptr.
2959 2019-09-20 Tom Tromey <tom@tromey.com>
2961 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2963 2019-09-20 Tom Tromey <tom@tromey.com>
2965 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2967 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2968 * tui/tui-layout.c (show_source_disasm_command, show_data)
2969 (show_source_or_disasm_and_command): Use 1 as height for locator.
2971 2019-09-20 Tom Tromey <tom@tromey.com>
2973 * tui/tui.c (tui_enable): Update.
2974 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2976 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2978 * tui/tui-data.c (win_resized): Now bool.
2979 (tui_win_resized): Return bool.
2980 (tui_set_win_resized_to): Accept a bool.
2982 2019-09-20 Tom Tromey <tom@tromey.com>
2984 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2985 Change type of "refresh_values_only".
2986 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2987 type of "refresh_values_only".
2989 2019-09-20 Tom Tromey <tom@tromey.com>
2991 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2993 (tui_disassemble): Add "pos" parameter.
2994 (tui_disasm_window::set_contents): Simplify.
2996 2019-09-20 Tom Tromey <tom@tromey.com>
2998 * tui/tui-winsource.h (struct tui_source_window_base)
2999 <show_source_content>: Now private.
3000 * tui/tui-winsource.c
3001 (tui_source_window_base::show_source_content): Don't handle empty
3004 2019-09-20 Tom Tromey <tom@tromey.com>
3006 * tui/tui-layout.c (show_source_disasm_command)
3007 (show_source_or_disasm_and_command): Don't call
3008 show_source_content.
3010 2019-09-20 Tom Tromey <tom@tromey.com>
3012 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3014 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3015 from tui_make_status_line.
3016 (tui_locator_window::rerender): Update.
3018 2019-09-20 Tom Tromey <tom@tromey.com>
3020 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3021 (tui_locator_window::rerender): Update.
3023 2019-09-20 Tom Tromey <tom@tromey.com>
3025 * tui/tui-winsource.h (struct tui_source_window_base)
3026 <~tui_source_window_base>: Don't declare.
3028 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3029 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3031 * tui/tui-source.c (tui_source_window::set_contents): Update.
3032 (tui_source_window::location_matches_p)
3033 (tui_source_window::maybe_update): Update.
3035 2019-09-20 Tom Tromey <tom@tromey.com>
3037 * tui/tui-winsource.h (~tui_source_element): Remove.
3038 (tui_source_element): Update.
3039 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3040 * tui/tui-winsource.c (tui_show_source_line): Update.
3041 * tui/tui-source.c (tui_source_window::set_contents): Update.
3042 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3044 2019-09-20 Tom Tromey <tom@tromey.com>
3046 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3048 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3049 tui_clear_source_windows_detail.
3050 * tui/tui-winsource.h (struct tui_source_window_base)
3051 <clear_detail>: Don't declare.
3052 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3054 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3056 2019-09-20 Tom Tromey <tromey@adacore.com>
3059 * block.c (contained_in): Fix final return value.
3061 2019-09-20 Alan Modra <amodra@gmail.com>
3063 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3064 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3065 (read_indirect_string_from_dwz): Use bfd accessor.
3066 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3067 * machoread.c (macho_symfile_read_all_oso): Likewise.
3068 * solib.c (solib_bfd_open): Likewise.
3070 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3072 * eval.c: Move declaration of overload_resolution to...
3075 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3077 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3078 * arm-linux-tdep.c: Likewise.
3079 * arm-nbsd-nat.c: Likewise.
3080 * arm-tdep.h: Declare arm_apcs_32.
3081 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3083 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3085 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3086 * dwarf2read.h: Declare dwarf_always_disassemble.
3088 2019-09-19 Tom de Vries <tdevries@suse.de>
3091 * source-cache.c (source_cache::ensure): Catch exception thrown during
3092 construction of the highlighter.
3094 2019-09-18 Alan Modra <amodra@gmail.com>
3096 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3097 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3098 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3099 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3100 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3101 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3102 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3103 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3104 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3105 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3106 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3107 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3108 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3109 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3110 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3111 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3112 * mi/mi-interp.c: Update throughout for bfd section macro and
3114 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3115 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3117 2019-09-18 Tom Tromey <tom@tromey.com>
3120 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3122 (tui_enable): Do not call rl_initialize.
3124 2019-09-18 Christian Groessler <chris@groessler.org>
3126 * alpha-linux-nat.c: Include gdbarch.h.
3128 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3130 * ui-file.c: Include cli/cli-style.h.
3131 (term_cli_styling): Remove cli_styling declaration.
3133 2019-09-18 Alan Modra <amodra@gmail.com>
3135 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3136 to bfd_asymbol_section.
3138 2019-09-18 Alan Modra <amodra@gmail.com>
3140 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3141 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3142 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3144 2019-09-18 Alan Modra <amodra@gmail.com>
3146 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3147 * spu-linux-nat.c (spu_bfd_open): Likewise.
3149 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3151 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3152 to bool to match definition in dwarf2read.c.
3154 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3156 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3157 (print_signatures): Likewise.
3158 (trust_pad_over_xvs): Likewise.
3159 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3160 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3161 * arm-linux-nat.c (arm_apcs_32): Likewise.
3162 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3163 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3164 * arm-tdep.c (arm_debug): Likewise.
3165 (arm_apcs_32): Likewise.
3166 * auto-load.c (debug_auto_load): Likewise.
3167 (auto_load_gdb_scripts): Likewise.
3168 (global_auto_load): Likewise.
3169 (auto_load_local_gdbinit): Likewise.
3170 (auto_load_local_gdbinit_loaded): Likewise.
3171 * auto-load.h (global_auto_load): Likewise.
3172 (auto_load_local_gdbinit): Likewise.
3173 (auto_load_local_gdbinit_loaded): Likewise.
3174 * breakpoint.c (disconnected_dprintf): Likewise.
3175 (breakpoint_proceeded): Likewise.
3176 (automatic_hardware_breakpoints): Likewise.
3177 (always_inserted_mode): Likewise.
3178 (target_exact_watchpoints): Likewise.
3179 (_initialize_breakpoint): Update.
3180 * breakpoint.h (target_exact_watchpoints): Change to bool.
3181 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3182 * cli/cli-cmds.c (trace_commands): Likewise.
3183 * cli/cli-cmds.h (trace_commands): Likewise.
3184 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3186 * cli/cli-logging.c (logging_overwrite): Change to bool.
3187 (logging_redirect): Likewise.
3188 (debug_redirect): Likewise.
3189 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3190 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3192 <boolean_option_def>: Update.
3193 (struct flag_option_def): Change default type of Context to bool
3195 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3196 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3197 (get_setshow_command_value_string): Likewise.
3198 * cli/cli-style.c (cli_styling): Change to bool.
3199 (source_styling): Likewise.
3200 * cli/cli-style.h (source_styling): Likewise.
3201 (cli_styling): Likewise.
3202 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3204 * command.h (var_types): Update comment.
3205 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3206 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3208 (debug_compile_cplus_scopes): Likewise.
3209 * compile/compile-internal.h (compile_debug): Likewise.
3210 * compile/compile.c (compile_debug): Likewise.
3211 (struct compile_options) <raw>: Likewise.
3212 * cp-support.c (catch_demangler_crashes): Likewise.
3213 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3214 (usr_cmd_cris_dwarf2_cfi): Likewise.
3215 * csky-tdep.c (csky_debug): Likewise.
3216 * darwin-nat.c (enable_mach_exceptions): Likewise.
3217 * dcache.c (dcache_enabled_p): Likewise.
3218 * defs.h (info_verbose): Likewise.
3219 * demangle.c (demangle): Likewise.
3220 (asm_demangle): Likewise.
3221 * dwarf-index-cache.c (debug_index_cache): Likewise.
3222 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3223 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3224 * dwarf2read.c (check_physname): Likewise.
3225 (use_deprecated_index_sections): Likewise.
3226 (dwarf_always_disassemble): Likewise.
3227 * eval.c (overload_resolution): Likewise.
3228 * event-top.c (set_editing_cmd_var): Likewise.
3229 (exec_done_display_p): Likewise.
3230 * event-top.h (set_editing_cmd_var): Likewise.
3231 (exec_done_display_p): Likewise.
3232 * exec.c (write_files): Likewise.
3233 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3234 (debug_fbsd_nat): Likewise.
3235 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3237 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3238 <backtrace_past_entry> Likewise.
3239 * gdb-demangle.h (demangle): Likewise.
3240 (asm_demangle): Likewise.
3241 * gdb_bfd.c (bfd_sharing): Likewise.
3242 * gdbcore.h (write_files): Likewise.
3243 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3244 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3245 * gdbthread.h (print_thread_events): Likewise.
3246 * gdbtypes.c (opaque_type_resolution): Likewise.
3247 (strict_type_checking): Likewise.
3248 * gnu-nat.c (gnu_debug_flag): Likewise.
3249 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3250 * guile/scm-param.c (pascm_variable): Add boolval.
3251 (add_setshow_generic): Update.
3252 (pascm_param_value): Update.
3253 (pascm_set_param_value_x): Update.
3254 * hppa-tdep.c (hppa_debug): Change to bool..
3255 * infcall.c (may_call_functions_p): Likewise.
3256 (coerce_float_to_double_p): Likewise.
3257 (unwind_on_signal_p): Likewise.
3258 (unwind_on_terminating_exception_p): Likewise.
3259 * infcmd.c (startup_with_shell): Likewise.
3260 * inferior.c (print_inferior_events): Likewise.
3261 * inferior.h (startup_with_shell): Likewise.
3262 (print_inferior_events): Likewise.
3263 * infrun.c (step_stop_if_no_debug): Likewise.
3264 (detach_fork): Likewise.
3265 (debug_displaced): Likewise.
3266 (disable_randomization): Likewise.
3267 (non_stop): Likewise.
3268 (non_stop_1): Likewise.
3269 (observer_mode): Likewise.
3270 (observer_mode_1): Likewise.
3271 (set_observer_mode): Update.
3272 (sched_multi): Change to bool.
3273 * infrun.h (debug_displaced): Likewise.
3274 (sched_multi): Likewise.
3275 (step_stop_if_no_debug): Likewise.
3276 (non_stop): Likewise.
3277 (disable_randomization): Likewise.
3278 * linux-tdep.c (use_coredump_filter): Likewise.
3279 (dump_excluded_mappings): Likewise.
3280 * linux-thread-db.c (auto_load_thread_db): Likewise.
3281 (check_thread_db_on_load): Likewise.
3282 * main.c (captured_main_1): Update.
3283 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3284 xx2_opt, boolean_opt>: Change to bool.
3285 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3286 * maint.c (maintenance_profile_p): Likewise.
3287 (per_command_time): Likewise.
3288 (per_command_space): Likewise.
3289 (per_command_symtab): Likewise.
3290 * memattr.c (inaccessible_by_default): Likewise.
3291 * mi/mi-main.c (mi_async): Likewise.
3292 (mi_async_1): Likewise.
3293 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3294 * nat/fork-inferior.h (startup_with_shell): Likewise.
3295 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3296 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3297 * nios2-tdep.c (nios2_debug): Likewise.
3298 * or1k-tdep.c (or1k_debug): Likewise.
3299 * parse.c (parser_debug): Likewise.
3300 * parser-defs.h (parser_debug): Likewise.
3301 * printcmd.c (print_symbol_filename): Likewise.
3302 * proc-api.c (procfs_trace): Likewise.
3303 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3304 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3305 (set_parameter_value): Update.
3306 (add_setshow_generic): Update.
3307 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3309 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3311 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3312 * record-btrace.c (record_btrace_target::store_registers): Update.
3313 * record-full.c (record_full_memory_query): Change to bool.
3314 (record_full_stop_at_limit): Likewise.
3315 * record-full.h (record_full_memory_query): Likewise.
3316 * remote-notif.c (notif_debug): Likewise.
3317 * remote-notif.h (notif_debug): Likewise.
3318 * remote.c (use_range_stepping): Likewise.
3319 (interrupt_on_connect): Likewise.
3320 (remote_break): Likewise.
3321 * ser-tcp.c (tcp_auto_retry): Likewise.
3322 * ser-unix.c (serial_hwflow): Likewise.
3323 * skip.c (debug_skip): Likewise.
3324 * solib-aix.c (solib_aix_debug): Likewise.
3325 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3326 (spu_auto_flush_cache_p): Likewise.
3327 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3329 (struct info_print_options) <quiet>: Likewise.
3330 * symfile-debug.c (debug_symfile): Likewise.
3331 * symfile.c (auto_solib_add): Likewise.
3332 (separate_debug_file_debug): Likewise.
3333 * symfile.h (auto_solib_add): Likewise.
3334 (separate_debug_file_debug): Likewise.
3335 * symtab.c (basenames_may_differ): Likewise.
3336 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3337 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3338 (struct info_types_options) <quiet>: Likewise.
3339 * symtab.h (demangle): Likewise.
3340 (basenames_may_differ): Likewise.
3341 * target-dcache.c (stack_cache_enabled_1): Likewise.
3342 (code_cache_enabled_1): Likewise.
3343 * target.c (trust_readonly): Likewise.
3344 (may_write_registers): Likewise.
3345 (may_write_memory): Likewise.
3346 (may_insert_breakpoints): Likewise.
3347 (may_insert_tracepoints): Likewise.
3348 (may_insert_fast_tracepoints): Likewise.
3349 (may_stop): Likewise.
3350 (auto_connect_native_target): Likewise.
3351 (target_stop_and_wait): Update.
3352 (target_async_permitted): Change to bool.
3353 (target_async_permitted_1): Likewise.
3354 (may_write_registers_1): Likewise.
3355 (may_write_memory_1): Likewise.
3356 (may_insert_breakpoints_1): Likewise.
3357 (may_insert_tracepoints_1): Likewise.
3358 (may_insert_fast_tracepoints_1): Likewise.
3359 (may_stop_1): Likewise.
3360 * target.h (target_async_permitted): Likewise.
3361 (may_write_registers): Likewise.
3362 (may_write_memory): Likewise.
3363 (may_insert_breakpoints): Likewise.
3364 (may_insert_tracepoints): Likewise.
3365 (may_insert_fast_tracepoints): Likewise.
3366 (may_stop): Likewise.
3367 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3368 (make_thread_apply_all_options_def_group): Change argument from int*
3370 (thread_apply_all_command): Update.
3371 (print_thread_events): Change to bool.
3372 * top.c (confirm): Likewise.
3373 (command_editing_p): Likewise.
3374 (history_expansion_p): Likewise.
3375 (write_history_p): Likewise.
3376 (info_verbose): Likewise.
3377 * top.h (confirm): Likewise.
3378 (history_expansion_p): Likewise.
3379 * tracepoint.c (disconnected_tracing): Likewise.
3380 (circular_trace_buffer): Likewise.
3381 * typeprint.c (print_methods): Likewise.
3382 (print_typedefs): Likewise.
3383 * utils.c (debug_timestamp): Likewise.
3384 (sevenbit_strings): Likewise.
3385 (pagination_enabled): Likewise.
3386 * utils.h (sevenbit_strings): Likewise.
3387 (pagination_enabled): Likewise.
3388 * valops.c (overload_resolution): Likewise.
3389 * valprint.h (struct value_print_options) <prettyformat_arrays,
3390 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3391 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3392 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3394 * windows-nat.c (new_console): Likewise.
3395 (cygwin_exceptions): Likewise.
3396 (new_group): Likewise.
3397 (debug_exec): Likewise.
3398 (debug_events): Likewise.
3399 (debug_memory): Likewise.
3400 (debug_exceptions): Likewise.
3401 (useshell): Likewise.
3402 * windows-tdep.c (maint_display_all_tib): Likewise.
3403 * xml-support.c (debug_xml): Likewise.
3405 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3407 * source.c (prepare_path_for_appending): New function.
3408 (openp): Make use of new function.
3409 (find_and_open_source): Search for the compilation directory and
3410 source file as a relative path beneath the directory search path.
3412 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3414 * source-cache.c (source_cache::get_line_charpos): Catch
3415 exceptions and return false, this matches the behaviour documented
3418 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3420 * ada-tasks.c (info_task): Remove quoting of the task's name.
3422 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3424 * symfile.c (auto_solib_add): Replace comment with a reference
3427 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3429 * NEWS: Mention that gdb can now be compiled with Python 3
3432 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3434 * maint.c (maint_print_section_data::maint_print_section_data):
3435 Force use of 'float log10 (float)' by casting the argument to
3438 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3440 * maint.c: Add 'cmath' include.
3441 (struct maint_print_section_data): New structure.
3442 (print_section_index): New function.
3443 (print_bfd_section_info): Add header comment, small whitespace
3444 cleanup, and update to call new print_section_index function.
3445 (print_objfile_section_info): Likewise.
3446 (maint_obj_section_from_bfd_section): New function.
3447 (print_bfd_section_info_maybe_relocated): New function.
3448 (maintenance_info_sections): Add header comment, always use
3449 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3451 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3453 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3454 inner scope, add check that the objfile has psymtabs before
3455 checking psymtabs_addrmap.
3456 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3458 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3460 * NEWS: Announce that Ada task names are now shown at more places,
3461 and between quotes (except in info task output).
3462 * gdb/ada-tasks.c (task_to_str): New function.
3463 (display_current_task_id): Call task_to_str.
3464 (task_command_1): Likewise.
3465 (print_ada_task_info): In non-mi mode, Properly align headers and data
3466 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3468 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3470 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3471 prstatus.pr_lwp.pr_info instead of making it up.
3473 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3475 * auto-load.c (auto_load_expand_dir_vars): Update.
3476 * defs.h (gdb_datadir): Change to std::string.
3477 (python_libdir): Likewise.
3478 (relocate_gdb_directory): Change return type to std::string.
3479 * guile/guile.c (gdbscm_data_directory): Update.
3480 (initialize_scheme_side): Update.
3481 * jit.c (jit_reader_dir): Change to std::string.
3482 (jit_reader_load_command): Update.
3483 * main.c (gdb_datadir): Change to std::string.
3484 (python_libdir): Likewise.
3485 (set_gdb_data_directory): Update.
3486 (relocate_path): Change to return std::string.
3487 (relocate_gdb_directory): Change to return std::string.
3488 (relocate_gdbinit_path_maybe_in_datadir): Update.
3489 (captured_main_1): Update.
3490 * python/python.c (do_start_initialization): Update.
3491 * top.c (show_gdb_datadir): Update.
3492 * xml-syscall.c (xml_init_syscalls_info): Update.
3493 (init_syscalls_info): Update.
3495 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3497 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3498 out of get_init_files.
3499 (get_init_files): Update.
3501 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3503 * main.c (get_init_files): Change to use std::string.
3504 (captured_main_1): Update.
3505 (print_gdb_help): Update.
3507 2019-09-11 Ali Tamur <tamur@google.com>
3509 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3512 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3514 * dbxread.c (read_dbx_symtab): Update.
3515 * dwarf2read.c (load_partial_dies): Update.
3516 * mdebugread.c (parse_partial_symbols): Update.
3517 (handle_psymbol_enumerators): Update.
3518 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3519 * psymtab.c (add_psymbol_to_bcache): Likewise.
3520 (add_psymbol_to_list): Likewise.
3521 * symtab.c (symbol_set_names): Likewise.
3522 * symtab.h (symbol_set_names): Likewise.
3523 * xcoffread.c (scan_xcoff_symtab): Update.
3525 2019-09-11 Tom Tromey <tom@tromey.com>
3527 * symfile-mem.c (symbol_file_add_from_memory): Use
3529 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3530 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3532 2019-09-10 Tom Tromey <tromey@adacore.com>
3534 * dwarf-index-write.c (write_psymbols): Extend error message.
3535 (debug_names::insert): Add Ada code.
3536 (debug_names::write_psymbols): Remove Ada check.
3537 (debug_names) <m_string_obstack>: New member.
3538 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3539 (gdb_index_symbol_name_matcher::matches): Remove.
3540 (mapped_index_base::find_name_components_bounds): Add "lang"
3542 (mapped_index_base::build_name_components): Also split names
3543 according to Ada syntax.
3544 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3545 type of "match_callback".
3546 (check_match, check_find_bounds_finds)
3547 (dw2_expand_symtabs_matching): Update.
3548 (dw2_debug_names_iterator): Add new constructor.
3549 (dw2_debug_names_map_matching_symbols): New function.
3550 (dw2_debug_names_expand_symtabs_matching): Update.
3551 (dwarf2_debug_names_functions): Use
3552 dw2_debug_names_map_matching_symbols.
3554 2019-09-10 Tom Tromey <tromey@adacore.com>
3556 * dwarf2read.c (dw2_get_file_names_reader): Add the
3557 CU's file name to the results.
3559 2019-09-10 Tom Tromey <tromey@adacore.com>
3561 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3562 map_matching_symbols. Update.
3563 * dwarf2read.c (dw2_map_matching_symbols): Update.
3564 * psymtab.c (match_partial_symbol): Change type; update.
3565 (psym_map_matching_symbols): Likewise.
3566 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3568 * symfile.h (struct quick_symbol_functions)
3569 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3572 2019-09-10 Tom Tromey <tromey@adacore.com>
3574 * psymtab.c (map_block): Remove.
3575 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3576 * symtab.c (iterate_over_symbols_terminated): New function.
3577 * symtab.c (iterate_over_symbols_terminated): Declare.
3579 2019-09-10 Tom Tromey <tromey@adacore.com>
3581 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3582 * language.h (struct language_defn) <la_iterate_over_symbols>:
3584 * symtab.c (iterate_over_symbols): Return bool.
3585 * symtab.h (iterate_over_symbols): Return bool.
3587 2019-09-10 Tom Tromey <tromey@adacore.com>
3589 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3590 (add_nonlocal_symbols): Update.
3591 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3592 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3593 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3594 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3595 Change type of "callback". Remove "data".
3598 2019-09-09 Ali Tamur <tamur@google.com>
3600 * dwarf2read.c (comp_unit_head): Update comment.
3601 (dwarf2_dwo_name): New function declaration.
3602 (dwarf_unit_type_name): New function declaration.
3603 (read_comp_unit_head): Add support for new compilation units,
3604 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3605 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3606 (currently named as "signature") in their header. Also clarify error
3608 (lookup_dwo_id): New function. Returns the dwo id of the given
3610 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3611 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3613 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3614 (dwarf2_dwo_name): Get the dwo name if present.
3615 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3618 2019-09-09 Tom Tromey <tom@tromey.com>
3620 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3622 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3624 * python/python.c (do_start_initialization): Make progname_copy static,
3625 to avoid a leak report.
3627 2019-09-08 Tom Tromey <tom@tromey.com>
3629 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3631 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3633 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3634 Change type to gdb::optional<block_enum>.
3635 (dw2_symtab_iter_init): Change block_index parameter type
3636 to gdb::optional<block_enum>.
3637 (dw2_lookup_symbol): Change block_index parameter
3638 type to block_enum.c
3639 (dw2_debug_names_lookup_symbol): Likewise.
3640 * psymtab.c (psym_lookup_symbol): Likewise.
3641 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3642 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3645 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3647 * defs.h (relocate_gdb_directory): Change int to bool in
3648 signature and rename flag to relocatable.
3649 * main.c (relocate_path): Likewise.
3650 (relocate_gdb_directory): Likewise.
3652 2019-09-06 Alan Modra <amodra@gmail.com>
3654 * coffread.c (coff_symfile_read): Constify filename variable.
3655 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3656 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3657 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3658 * solib.c (reload_shared_libraries_1): Likewise.
3659 * symfile.c (reread_symbols): Likewise.
3660 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3661 * solib-darwin.c (darwin_bfd_open): Likewise.
3662 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3664 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3666 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3667 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3669 2019-09-03 Tom Tromey <tromey@adacore.com>
3671 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3673 (has_negatives): Unbias a range type bound.
3674 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3675 * gdbtypes.c (operator==): Handle new field.
3676 (create_range_type): Add "bias" parameter.
3677 (create_static_range_type, resolve_dynamic_range): Update.
3678 * gdbtypes.h (struct range_bounds) <bias>: New member.
3679 (create_range_type): Add bias parameter.
3680 * printcmd.c (print_scalar_formatted): Unbias range types.
3681 * value.c (unpack_long): Unbias range types.
3682 (pack_long): Bias range types.
3684 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3686 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3689 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3691 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3692 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3693 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3694 (compile_probe_arg): Likewise.
3695 * probe.h (get_argument_count): Likewise.
3696 * solib-svr4.c (solib_event_probe_action): Likewise.
3697 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3699 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3701 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3703 (svr4_create_solib_event_breakpoints): ...from here.
3705 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3707 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3708 suffix from warning message.
3710 2019-08-30 Tom Tromey <tom@tromey.com>
3712 * tui/tui-winsource.h (struct tui_source_window_base)
3713 <refresh_all>: Don't declare.
3714 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3716 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3717 tui_show_locator_content.
3718 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3720 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3721 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3724 2019-08-30 Tom Tromey <tom@tromey.com>
3726 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3728 2019-08-30 Tom Tromey <tom@tromey.com>
3730 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3731 Remove unnecessary forward declarations.
3733 2019-08-30 Tom Tromey <tom@tromey.com>
3735 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3737 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3738 tui_show_locator_content.
3740 2019-08-30 Tom Tromey <tom@tromey.com>
3742 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3743 (tui_locator_window::rerender): Rewrite using body of previous
3744 tui_show_locator_content.
3746 2019-08-30 Tom Tromey <tom@tromey.com>
3748 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3749 set_locator_fullname>: New methods.
3750 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3751 Rename from tui_set_locator_fullname.
3752 (tui_locator_window::set_locator_info): Rename from
3753 tui_set_locator_info. Return bool.
3754 (tui_update_locator_fullname, tui_show_frame_info): Update.
3756 2019-08-30 Tom Tromey <tom@tromey.com>
3758 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3760 2019-08-30 Tom Tromey <tom@tromey.com>
3762 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3765 2019-08-30 Tom Tromey <tom@tromey.com>
3767 * tui/tui-wingeneral.c (box_win): Assume win_info and
3768 win_info->handle cannot be NULL.
3770 2019-08-30 Tom Tromey <tom@tromey.com>
3772 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3773 refresh_window>: Declare.
3774 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3776 (tui_data_item_window::rerender): Rename from
3777 tui_display_register.
3778 (tui_data_item_window::refresh_window): New method.
3779 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3782 2019-08-30 Tom Tromey <tom@tromey.com>
3784 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3785 regs_column_count, current_group>: Move later. Now private.
3786 <get_current_group>: New method.
3787 * tui/tui-regs.c (tui_reg_command): Update.
3788 * tui/tui-layout.c (tui_set_layout): Update.
3790 2019-08-30 Tom Tromey <tom@tromey.com>
3792 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3793 (tui_data_window::rerender): Don't call
3794 check_and_display_highlight_if_needed.
3795 (tui_data_window::refresh_all): Remove call to
3798 2019-08-30 Tom Tromey <tom@tromey.com>
3800 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3801 (tui_data_window::display_registers_from)
3802 (tui_data_window::display_reg_element_at_line)
3803 (tui_data_window::display_registers_from_line): Remove checks of
3806 2019-08-30 Tom Tromey <tom@tromey.com>
3808 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3810 * tui/tui-regs.c (tui_data_window::show_registers): Call
3812 (tui_data_window::rerender): Rename from display_all_data.
3813 (tui_data_window::rerender): Remove old implementation.
3815 2019-08-30 Tom Tromey <tom@tromey.com>
3817 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3819 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3821 2019-08-29 Bernhard Wodok <barto@gmx.net>
3822 Sergio Durigan Junior <sergiodj@redhat.com>
3825 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3827 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3829 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3830 when searching for types.
3832 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3834 * f-lang.c (f_language_defn): Use f_print_typedef.
3835 * f-lang.h (f_print_typedef): Declare.
3836 * f-typeprint.c (f_print_typedef): Define.
3838 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3840 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3842 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3844 * cli/cli-utils.c (info_print_options_defs): Delete.
3845 (make_info_print_options_def_group): Delete.
3846 (extract_info_print_options): Delete.
3847 (info_print_command_completer): Delete.
3848 (info_print_args_help): Add extra parameter, and optionally
3849 include text about -n flag.
3850 * cli/cli-utils.h (struct info_print_options): Delete.
3851 (extract_info_print_options): Delete declaration.
3852 (info_print_command_completer): Delete declaration.
3853 (info_print_args_help): Add extra parameter, extend header
3855 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3857 * stack.c (struct info_print_options): New type.
3858 (info_print_options_defs): New file scoped variable.
3859 (make_info_print_options_def_group): New static function.
3860 (info_print_command_completer): New static function.
3861 (info_locals_command): Update to use new local functions.
3862 (info_args_command): Likewise.
3863 (_initialize_stack): Add extra parameter to calls to
3864 info_print_args_help.
3865 * symtab.c (search_symbols): Add extra parameter, use this to
3866 possibly excluse non-debug symbols.
3867 (symtab_symbol_info): Add extra parameter, which is passed on to
3869 (struct info_print_options): New type.
3870 (info_print_options_defs): New file scoped variable.
3871 (make_info_print_options_def_group): New static function.
3872 (info_print_command_completer): New static function.
3873 (info_variables_command): Update to use local functions, and pass
3874 extra parameter through to symtab_symbol_info.
3875 (info_functions_command): Likewise.
3876 (info_types_command): Pass additional argument through to
3878 (rbreak_command): Pass extra argument to search_symbols.
3879 (_initialize_symtab): Add extra arguments for calls to
3880 info_print_args_help, and update help text for 'info variables',
3881 'whereis', and 'info functions' commands.
3882 * symtab.h (search_symbols): Add extra argument to declaration.
3883 * NEWS: Mention new flags.
3885 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3887 * symtab.c (lookup_static_symbol): Call the new function (and move
3888 it down to be next to lookup_global_symbol).
3889 (struct global_sym_lookup_data): Add block_enum member and rename to...
3890 (struct global_or_static_sym_lookup_data): ...this.
3891 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3892 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3893 (lookup_symbol_global_or_static_iterator_cb): ...this.
3894 (lookup_global_or_static_symbol): New function.
3895 (lookup_global_symbol): Call new function.
3897 2019-08-26 Tom de Vries <tdevries@suse.de>
3900 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3901 when pc_probe.prob == NULL.
3903 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3905 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3906 variable symbol_linkage to symbol_linkage_.
3908 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3910 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3911 represent whether the symbol is static, dynamic, or we don't
3914 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3916 * gdb/rx-tdep.c (rx_register_names): New.
3917 (rx_register_name): Delete.
3918 (rx_psw_type): Delete.
3919 (rx_fpsw_type): Delete.
3920 (rx_register_type): Delete.
3921 (rx_gdbarch_init): Convert target-descriptions.
3922 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3923 * gdb/features/Makefile: Add rx.xml.
3924 * gdb/features/rx.xml: New.
3925 * gdb/features/rx.c: Generated.
3926 * gdb/NEWS: Mention target description support.
3928 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3930 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3933 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3935 * configure.ac: Don't check for 'dlfcn.h' (moved to
3936 gdbsupport/common.m4).
3937 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3939 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3940 * compile/compile-c-support.c: Include
3941 'gdbsupport/gdb-dlfcn.h'.
3942 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3943 * gdb-dlfcn.c: Move to...
3944 * gdbsupport/gdb-dlfcn.c: ... here.
3945 * gdb-dlfcn.h: Move to...
3946 * gdbsupport/gdb-dlfcn.h: ... here.
3948 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3950 * nios2-tdep.c (struct reg_value): Improve comments. Make
3951 the offset field signed.
3953 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3955 * python/lib/gdb/__init__.py (_execute_file): New function.
3956 * python/python.c (python_run_simple_file): Call gdb._execute_file
3959 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3961 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3962 all uses as this was never set to anything but a zero value.
3964 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3966 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3968 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3970 * tui/tui-data.h (tui_gen_win_info): Add an =default
3971 move constructor, required by some GCC versions.
3973 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3975 * go32-nat.c (go32_sysinfo): Add hygon_p.
3977 2019-08-20 Tom Tromey <tom@tromey.com>
3979 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3980 line_from_reg_element_no, first_reg_element_no_inline,
3981 display_all_data, delete_data_content_windows,
3982 erase_data_content>: Now private.
3984 2019-08-20 Tom Tromey <tom@tromey.com>
3986 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3987 (tui_unhighlight_win, tui_highlight_win)
3988 (tui_win_info::make_window): Update.
3989 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3991 2019-08-20 Tom Tromey <tom@tromey.com>
3993 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3994 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3995 (MAX_PID_WIDTH): Move to tui-stack.c.
3996 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3997 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3998 (MAX_PID_WIDTH): Move from tui-data.h.
4000 2019-08-20 Tom Tromey <tom@tromey.com>
4002 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4003 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4005 (tui_gen_win_info::make_window): Rename from tui_make_window.
4006 (tui_win_info::make_window): New method.
4007 (tui_gen_win_info::make_visible): Update.
4008 * tui/tui-source.c (tui_source_window::set_contents): Update.
4009 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4010 (tui_data_window::display_registers_from): Update.
4011 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4012 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4016 (struct tui_win_info) <make_window>: Declare.
4017 <can_box>: Now virtual.
4018 <title>: New member.
4019 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4020 * tui/tui-command.c (tui_cmd_window::resize): Update.
4022 2019-08-20 Tom Tromey <tom@tromey.com>
4024 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4025 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4026 (tui_data_window::check_register_values): Update.
4028 2019-08-20 Tom Tromey <tom@tromey.com>
4030 * tui/tui-regs.h (struct tui_data_window): Use
4031 DISABLE_COPY_AND_ASSIGN.
4032 <regs_content>: Change type, removing unique_ptr.
4033 <tui_data_window>: Add move constructor.
4034 * tui/tui-regs.c (tui_data_window::show_registers)
4035 (tui_data_window::show_register_group)
4036 (tui_data_window::display_registers_from)
4037 (tui_data_window::display_registers_from)
4038 (tui_data_window::first_data_item_displayed)
4039 (tui_data_window::delete_data_content_windows)
4040 (tui_data_window::rerender, tui_data_window::refresh_window)
4041 (tui_data_window::check_register_values): Update.
4043 2019-08-20 Tom Tromey <tom@tromey.com>
4045 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4046 show_register_group>: Declare.
4047 (tui_show_register_group): Don't declare.
4048 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4050 (tui_data_window::show_register_group): Rename from
4051 tui_show_register_group.
4052 (tui_data_window::check_register_values, tui_reg_command):
4054 * tui/tui-layout.c (tui_set_layout): Update.
4056 2019-08-20 Tom Tromey <tom@tromey.com>
4058 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4060 (tui_check_register_values): Don't declare.
4061 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4062 from tui_check_register_values.
4063 * tui/tui-hooks.c (tui_register_changed): Update.
4065 2019-08-20 Tom Tromey <tom@tromey.com>
4067 * tui/tui-regs.c (tui_reg_layout): Move later.
4068 (tui_show_registers): Don't enable TUI mode or change layout.
4070 2019-08-20 Tom Tromey <tom@tromey.com>
4072 * tui/tui-regs.h (struct tui_data_item_window)
4073 <~tui_data_item_window>: Remove.
4074 <content>: Now a unique_xmalloc_ptr.
4075 * tui/tui-regs.c (tui_register_format): Return a
4077 (tui_get_register): Update.
4078 (~tui_data_item_window): Remove.
4079 (tui_data_window::display_registers_from, tui_display_register):
4081 * tui/tui-io.h (tui_expand_tabs): Update.
4082 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4083 Remove "col" parameter.
4085 2019-08-20 Tom Tromey <tom@tromey.com>
4087 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4089 * tui/tui-regs.c (~tui_data_item_window): Update.
4091 2019-08-20 Tom Tromey <tom@tromey.com>
4093 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4096 2019-08-20 Tom Tromey <tom@tromey.com>
4098 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4100 2019-08-20 Tom Tromey <tom@tromey.com>
4102 * tui/tui-source.h (struct tui_source_window): Update.
4103 * tui/tui-regs.c (tui_show_registers): Update.
4104 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4105 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4106 (NO_REGS_STRING): Remove defines.
4108 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4110 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4111 unnecessary thread walk if remote doesn't support the packet.
4113 2019-08-19 Tom Tromey <tromey@adacore.com>
4115 * python/py-value.c (value_has_field): Fix indentation.
4117 2019-08-19 Tom Tromey <tromey@adacore.com>
4119 * printcmd.c (do_one_display, info_display_command): Update.
4120 * block.h (contained_in): Return bool. Add allow_nested
4122 * block.c (contained_in): Return bool. Add allow_nested
4125 2019-08-19 Tom Tromey <tom@tromey.com>
4127 * configure: Rebuild.
4128 * configure.ac: Disallow the combination of -static-libstdc++ and
4130 * source-cache.c (get_language_name): Handle rust.
4131 (source_cache::get_source_lines): Ignore highlighting exceptions.
4133 2019-08-16 Tom Tromey <tom@tromey.com>
4135 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4136 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4137 (struct tui_source_window_base) <make_visible, refresh_window,
4138 resize>: Remove methods.
4139 <execution_info>: Remove field.
4140 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4141 (tui_show_source_line, tui_source_window_base)
4142 (~tui_source_window_base): Update.
4143 (tui_source_window_base::resize)
4144 (tui_source_window_base::make_visible)
4145 (tui_source_window_base::refresh_window): Remove.
4146 (tui_source_window_base::update_exec_info): Update.
4147 * tui/tui-source.c (tui_source_window::set_contents): Update.
4148 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4150 2019-08-16 Tom Tromey <tom@tromey.com>
4152 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4153 deprecated_query_hook.
4155 2019-08-16 Tom Tromey <tom@tromey.com>
4157 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4158 (tui_update_source_windows_with_line): Update.
4159 * tui/tui-source.h (struct tui_source_window)
4160 <show_symtab_source>: Declare.
4161 (tui_show_symtab_source): Don't declare.
4162 * tui/tui-source.c (tui_show_symtab_source): Rename from
4163 tui_show_symtab_source.
4165 2019-08-16 Tom Tromey <tom@tromey.com>
4167 * tui/tui-winsource.h (struct tui_source_window_base)
4168 <set_contents>: Declare.
4169 * tui/tui-winsource.c
4170 (tui_source_window_base::update_source_window_as_is): Update.
4171 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4173 (tui_set_source_content): Don't declare.
4174 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4175 tui_set_source_content.
4176 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4178 (tui_set_disassem_content): Don't declare.
4179 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4180 tui_set_disassem_content.
4182 2019-08-16 Tom Tromey <tom@tromey.com>
4184 * tui/tui-winsource.h (struct tui_source_window_base)
4185 <update_breakpoint_info>: Declare.
4186 (tui_update_breakpoint_info): Don't declare.
4187 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4188 (tui_update_all_breakpoint_info): Update.
4189 (tui_source_window_base::update_breakpoint_info): Rename from
4190 tui_update_breakpoint_info.
4191 (tui_source_window_base::update_exec_info): Update.
4193 2019-08-16 Tom Tromey <tom@tromey.com>
4195 * tui/tui-winsource.h (struct tui_source_window_base)
4196 <update_source_window>: Declare.
4197 (tui_update_source_window): Don't declare.
4198 * tui/tui-winsource.c
4199 (tui_source_window_base::update_source_window): Rename from
4200 tui_update_source_window.
4201 (tui_source_window_base::rerender): Update.
4202 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4203 * tui/tui-disasm.c (tui_show_disassem)
4204 (tui_show_disassem_and_update_source)
4205 (tui_disasm_window::maybe_update): Update.
4207 2019-08-16 Tom Tromey <tom@tromey.com>
4209 * tui/tui-winsource.h (struct tui_source_window_base)
4210 <update_source_window_as_is>: Declare.
4211 (tui_update_source_window_as_is): Don't declare.
4212 * tui/tui-winsource.c (tui_update_source_window): Update
4213 (tui_source_window_base::update_source_window_as_is): Rename from
4214 tui_update_source_window_as_is.
4215 (tui_source_window_base::refill): Update.
4216 * tui/tui-source.c (tui_show_symtab_source): Update.
4217 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4220 2019-08-16 Tom Tromey <tom@tromey.com>
4222 * tui/tui-winsource.h (tui_update_source_window)
4223 (tui_update_source_window_as_is): Remove "noerror" parameter.
4224 * tui/tui-winsource.c (tui_update_source_window)
4225 (tui_update_source_window_as_is): Remove "noerror" parameter.
4226 (tui_update_source_windows_with_addr)
4227 (tui_update_source_windows_with_line)
4228 (tui_source_window_base::rerender)
4229 (tui_source_window_base::refill): Update.
4230 * tui/tui-source.h (tui_set_source_content)
4231 (tui_show_symtab_source): Remove "noerror" parameter.
4232 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4234 (tui_show_symtab_source): Likewise.
4235 (tui_source_window::maybe_update): Update.
4236 * tui/tui-disasm.c (tui_show_disassem)
4237 (tui_show_disassem_and_update_source)
4238 (tui_disasm_window::do_scroll_vertical)
4239 (tui_disasm_window::maybe_update): Update.
4241 2019-08-16 Tom Tromey <tom@tromey.com>
4243 * tui/tui.c (tui_is_window_visible): Update.
4244 * tui/tui-wingeneral.c (tui_make_window)
4245 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4246 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4247 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4248 (tui_set_win_height_command, parse_scrolling_args): Update.
4249 * tui/tui-source.c (tui_source_window::style_changed): Update.
4250 * tui/tui-regs.c (tui_show_registers)
4251 (tui_data_window::first_data_item_displayed)
4252 (tui_data_window::delete_data_content_windows)
4253 (tui_check_register_values, tui_reg_command): Update.
4254 * tui/tui-disasm.c (tui_show_disassem): Update.
4255 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4257 <is_visible>: Remove field.
4258 * tui/tui-data.c (tui_next_win, tui_prev_win)
4259 (tui_delete_invisible_windows): Update.
4261 2019-08-16 Tom Tromey <tom@tromey.com>
4263 * tui/tui-winsource.h (struct tui_source_window_base)
4264 <m_has_locator>: Remove.
4265 * tui/tui-layout.c (show_source_disasm_command, show_data)
4266 (show_source_or_disasm_and_command): Update.
4268 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4270 * NEWS (Other MI changes): New subsection.
4271 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4272 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4273 * arch-utils.c (default_get_pc_address_flags): New function.
4274 * arch-utils.h (default_get_pc_address_flags): New declaration.
4275 * gdbarch.sh: Add get_pc_address_flags.
4276 * gdbarch.c: Regenerate.
4277 * gdbarch.h: Likewise.
4278 * stack.c (print_pc): New function.
4279 (print_frame_info) (print_frame): Call print_pc.
4281 2019-08-16 Tom de Vries <tdevries@suse.de>
4283 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4284 print_objfile_section_info.
4286 2019-08-15 Tom Tromey <tom@tromey.com>
4288 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4289 calling update_cmdwin_start_line.
4290 * tui/tui-winsource.h (struct tui_source_window_base)
4291 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4292 <rerender>: Declare.
4293 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4295 (tui_source_window_base::set_new_height): Remove.
4296 (tui_source_window_base::rerender): Rename from
4297 do_make_visible_with_new_height.
4298 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4300 (tui_win_info::make_invisible_and_set_new_height)
4301 (tui_win_info::make_visible_with_new_height): Remove.
4302 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4304 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4305 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4306 do_make_visible_with_new_height>: Don't declare.
4307 <rerender>: Declare.
4308 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4310 (tui_data_window::do_make_visible_with_new_height): Remove.
4311 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4312 call tui_show_locator_content.
4313 (tui_gen_win_info::resize): Call rerender.
4314 (show_source_or_disasm_and_command): Don't call
4315 tui_show_locator_content.
4316 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4318 (struct tui_win_info) <rerender>: Declare.
4319 <set_new_height, make_invisible_and_set_new_height,
4320 make_visible_with_new_height>: Don't declare.
4321 * tui/tui-data.c (tui_win_list::rerender): New method.
4322 * tui/tui-command.h (struct tui_cmd_window)
4323 <do_make_visible_with_new_height>: Don't declare.
4325 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4327 2019-08-15 Tom Tromey <tromey@adacore.com>
4329 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4330 * ada-lang.c (ada_enum_name): Likewise.
4332 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4334 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4336 (GdbOutputErrorFile): Likewise.
4337 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4339 (execute_unwinders): Rename to have a leading underscore.
4340 (auto_load_packages): Likewise.
4341 (global scope): Adjust call to auto_load_packages accordingly.
4342 (GdbSetPythonDirectory): Likewise.
4343 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4344 instead of execute_unwinders.
4346 2019-08-15 Tom Tromey <tom@tromey.com>
4348 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4349 (show_data): Don't change window visibility.
4350 (tui_gen_win_info::resize): Remove special case for command
4351 window. Use wresize, when available.
4352 (show_source_or_disasm_and_command): Don't change window
4354 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4355 <make_visible>: New method.
4356 * tui/tui-command.c (tui_cmd_window::resize): New method.
4358 2019-08-15 Tom Tromey <tom@tromey.com>
4360 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4361 (struct tui_source_windows): New.
4362 * tui/tui-winsource.c (tui_display_main): Update.
4363 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4364 (new_height_ok, parse_scrolling_args): Update.
4365 * tui/tui-layout.c (show_layout, show_data): Update.
4366 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4367 (tui_add_to_source_windows): Don't declare.
4368 * tui/tui-data.c (source_windows, tui_source_windows)
4369 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4371 2019-08-15 Tom Tromey <tom@tromey.com>
4373 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4375 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4376 * tui/tui-layout.c (show_source_disasm_command, show_data):
4378 (tui_gen_win_info::resize): Rename.
4379 (show_source_or_disasm_and_command): Update.
4380 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4383 2019-08-15 Tom Tromey <tom@tromey.com>
4385 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4386 * tui/tui-interp.c (tui_interp::init): Don't call
4387 tui_initialize_static_data.
4388 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4390 2019-08-15 Tom Tromey <tom@tromey.com>
4392 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4393 examine tui_win_list.
4395 2019-08-15 Tom Tromey <tom@tromey.com>
4397 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4398 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4399 tui_clear_source_content.
4400 (tui_clear_source_content): Remove.
4401 (tui_source_window_base::do_erase_source_content): Hoist call to
4403 * tui/tui-stack.c (tui_show_frame_info): Don't call
4404 tui_clear_source_content.
4406 2019-08-15 Tom Tromey <tom@tromey.com>
4408 * tui/tui-winsource.h (struct tui_source_window_base)
4409 <do_erase_source_content>: New method.
4410 <erase_source_content>: New method.
4411 (tui_erase_source_content): Don't declare.
4412 * tui/tui-winsource.c (tui_clear_source_content): Update.
4413 (tui_source_window_base::do_erase_source_content): Rename from
4414 tui_erase_source_content.
4415 (tui_source_window_base::show_source_content): Update.
4416 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4417 * tui/tui-source.h (struct tui_source_window)
4418 <erase_source_content>: New method.
4419 * tui/tui-disasm.h (struct tui_disasm_window)
4420 <erase_source_content>: New method.
4422 2019-08-15 Tom Tromey <tom@tromey.com>
4424 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4425 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4427 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4428 * tui/tui-source.c (tui_set_source_content): Update.
4429 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4431 2019-08-15 Tom Tromey <tom@tromey.com>
4433 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4434 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4436 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4438 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4440 (tui_source_window::maybe_update): Update.
4442 2019-08-15 Tom Tromey <tom@tromey.com>
4444 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4445 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4447 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4449 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4451 (tui_disasm_window::maybe_update): Update.
4453 2019-08-15 Tom Tromey <tom@tromey.com>
4455 * tui/tui-winsource.h (struct tui_source_window_base)
4456 <maybe_update>: Declare.
4457 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4459 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4461 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4462 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4464 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4466 2019-08-15 Tom Tromey <tom@tromey.com>
4468 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4470 2019-08-15 Tom Tromey <tom@tromey.com>
4472 * tui/tui-wingeneral.c: Include tui-stack.h.
4473 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4474 (struct tui_locator_window): Move from tui-data.h.
4475 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4476 (tui_initialize_static_data): Move from tui-data.c.
4477 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4478 (struct tui_locator_window): Move to tui-stack.c.
4479 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4480 (tui_initialize_static_data): Move to tui-stack.c.
4482 2019-08-15 Tom Tromey <tom@tromey.com>
4484 * tui/tui-layout.c (show_source_disasm_command)
4485 (show_source_or_disasm_and_command): Use make_visible method, not
4487 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4490 2019-08-15 Tom Tromey <tom@tromey.com>
4492 * tui/tui-wingeneral.h (tui_make_window): Update.
4493 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4495 (tui_gen_win_info::make_visible): Update.
4496 * tui/tui-regs.c (tui_data_window::display_registers_from):
4498 * tui/tui-layout.c (show_source_disasm_command)
4499 (show_source_or_disasm_and_command): Update.
4500 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4501 (enum tui_box): Remove.
4502 (struct tui_win_info) <can_box>: New method.
4503 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4506 2019-08-15 Tom de Vries <tdevries@suse.de>
4508 * linux-nat-trad.c: Include gdbarch.h.
4510 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4512 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4515 2019-08-14 Tom Tromey <tromey@adacore.com>
4517 * darwin-nat.c: Include gdbarch.h.
4518 * darwin-nat-info.c: Include gdbarch.h.
4520 2019-08-13 Tom Tromey <tom@tromey.com>
4522 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4524 * tui/tui-data.c (tui_initialize_static_data): Update.
4526 2019-08-13 Tom Tromey <tom@tromey.com>
4528 * tui/tui-winsource.h (struct tui_exec_info_window)
4529 <~tui_exec_info_window, maybe_allocate_content, get_content,
4531 (struct tui_source_window_base) <set_exec_info_content,
4532 show_exec_info_content>: Don't declare.
4533 * tui/tui-winsource.c
4534 (tui_exec_info_window::maybe_allocate_content): Remove.
4535 (tui_source_window_base::update_exec_info): Rename from
4536 set_exec_info_content.
4537 (tui_source_window_base::show_exec_info_content)
4538 (tui_source_window_base::update_exec_info): Remove.
4540 2019-08-13 Tom Tromey <tom@tromey.com>
4542 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4544 * tui/tui-winsource.c (tui_update_source_window_as_is)
4545 (tui_update_source_windows_with_addr, tui_erase_source_content):
4547 (tui_clear_exec_info_content): Remove.
4549 2019-08-13 Tom Tromey <tom@tromey.com>
4551 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4553 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4554 call tui_erase_exec_info_content.
4555 (tui_clear_exec_info_content): Rename from
4556 tui_erase_exec_info_content.
4557 (tui_clear_exec_info_content): Delete.
4559 2019-08-13 Tom Tromey <tom@tromey.com>
4561 * tui/tui-winsource.h (struct tui_source_window_base)
4562 <show_exec_info_content>: Declare.
4563 (tui_show_exec_info_content): Don't declare.
4564 * tui/tui-winsource.c
4565 (tui_source_window_base::show_exec_info_content): Rename from
4566 tui_show_exec_info_content.
4567 (tui_source_window_base::update_exec_info): Update.
4569 2019-08-13 Tom Tromey <tom@tromey.com>
4571 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4572 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4573 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4574 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4575 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4576 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4579 2019-08-13 Tom Tromey <tom@tromey.com>
4581 * tui/tui-winsource.h (struct tui_source_window_base)
4582 <update_exec_info>: Declare.
4583 (tui_update_exec_info): Don't declare.
4584 * tui/tui-winsource.c (tui_update_source_window_as_is)
4585 (tui_source_window_base::refresh_all)
4586 (tui_update_all_breakpoint_info): Update.
4587 (tui_source_window_base::update_exec_info): Rename from
4588 tui_update_exec_info.
4589 * tui/tui-stack.c (tui_show_frame_info): Update.
4591 2019-08-13 Tom Tromey <tom@tromey.com>
4593 * tui/tui-winsource.h (struct tui_source_window_base)
4594 <set_exec_info_content>: Declare.
4595 (tui_set_exec_info_content): Don't declare.
4596 * tui/tui-winsource.c
4597 (tui_source_window_base::set_exec_info_content): Rename from
4598 tui_set_exec_info_content.
4599 (tui_update_exec_info): Update.
4601 2019-08-13 Tom Tromey <tom@tromey.com>
4603 * tui/tui-winsource.h (struct tui_source_window_base)
4604 <show_source_content>: Declare.
4605 (tui_show_source_content): Don't declare.
4606 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4607 (tui_source_window_base::show_source_content): Rename from
4608 tui_show_source_content.
4609 (tui_source_window_base::refresh_all): Update.
4610 * tui/tui-layout.c (show_source_disasm_command)
4611 (show_source_or_disasm_and_command): Update.
4613 2019-08-13 Tom Tromey <tom@tromey.com>
4615 * tui/tui-winsource.c (tui_erase_source_content)
4616 (tui_show_source_content, tui_source_window_base::refresh_all):
4618 * tui/tui-wingeneral.h
4619 (tui_check_and_display_highlight_if_needed): Don't declare.
4620 * tui/tui-wingeneral.c
4621 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4622 check_and_display_highlight_if_needed.
4623 * tui/tui-win.c (tui_rehighlight_all)
4624 (tui_win_info::make_visible_with_new_height): Update.
4625 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4626 (tui_data_window::erase_data_content)
4627 (tui_data_window::display_all_data): Update.
4628 * tui/tui-data.h (struct tui_win_info)
4629 <check_and_display_highlight_if_needed>: Declare.
4631 2019-08-13 Tom Tromey <tom@tromey.com>
4633 * tui/tui-win.c (tui_resize_all): Call
4634 tui_delete_invisible_windows.
4635 * tui/tui-layout.c (show_layout): Call
4636 tui_delete_invisible_windows.
4637 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4638 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4640 2019-08-13 Tom Tromey <tom@tromey.com>
4642 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4643 tui_add_win_to_layout.
4645 2019-08-13 Tom Tromey <tom@tromey.com>
4647 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4648 * tui/tui-layout.c (tui_default_win_height): Now static.
4650 2019-08-13 Tom Tromey <tom@tromey.com>
4652 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4654 (show_source_disasm_command, show_source_or_disasm_and_command):
4655 Don't check current layout.
4657 2019-08-13 Tom Tromey <tom@tromey.com>
4659 * tui/tui-wingeneral.c (make_all_visible): Remove.
4660 (tui_make_all_invisible): Simplify.
4661 * tui/tui-layout.c (tui_make_all_invisible): Move from
4662 tui-wingeneral.c; simplify.
4663 (show_layout): Hoist call to tui_make_all_invisible.
4664 (show_data): Don't call tui_make_all_invisible.
4666 2019-08-13 Tom Tromey <tom@tromey.com>
4668 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4669 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4671 2019-08-13 Tom Tromey <tom@tromey.com>
4673 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4675 (show_source_disasm_command, show_data)
4676 (show_source_or_disasm_and_command): Don't use
4677 tui_set_current_layout_to.
4678 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4679 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4681 (tui_set_current_layout_to): Remove.
4683 2019-08-13 Tom Tromey <tom@tromey.com>
4685 * tui/tui-layout.c (tui_set_layout): Update.
4686 * tui/tui-data.h (struct tui_layout_def): Remove.
4687 (tui_layout_def): Don't declare.
4688 * tui/tui-data.c (layout_def): Remove.
4689 (tui_layout_def): Remove.
4691 2019-08-13 Tom Tromey <tom@tromey.com>
4693 * tui/tui-winsource.h (struct tui_source_window_base)
4694 <clear_detail>: No longer "override".
4695 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4696 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4697 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4698 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4700 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4702 2019-08-13 Tom Tromey <tromey@adacore.com>
4704 * tracepoint.c: Don't include readline.h or history.h.
4706 2019-08-12 Tom Tromey <tom@tromey.com>
4708 * configure: Rebuild.
4709 * configure.ac: Check for readline 7.
4710 * NEWS: Mention readline 7 requirement.
4713 2019-08-12 Tom Tromey <tom@tromey.com>
4715 * mingw-hdep.c (gdb_select): Remove readline hack.
4717 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4719 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4720 when the function fails.
4722 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4724 * s390-tdep.c (s390_type_align): New function.
4725 (s390_gdbarch_init): Set it as type_align gdbarch method.
4727 2019-08-09 Tom de Vries <tdevries@suse.de>
4730 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4731 pc_low with relocation offset.
4733 2019-08-07 Tom Tromey <tromey@adacore.com>
4735 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4736 (print_frame_args): Update.
4737 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4739 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4740 * frame.h (struct frame_arg): Add initializers.
4741 <error>: Now a unique_xmalloc_ptr.
4743 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4745 * NEWS: Expand the Pointer Authentication entry.
4746 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4747 (aarch64_frame_unmask_lr): ... to this.
4748 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4749 Call aarch64_frame_unmask_lr.
4750 * frame.c (struct frame_info): Add "masked" variable.
4751 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4752 (fprint_frame): Check for masked pc.
4753 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4755 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4756 * stack.c (print_frame): Check for masked pc.
4758 2019-08-06 Tom Tromey <tom@tromey.com>
4760 * stabsread.c (patch_block_stabs, read_one_struct_field)
4761 (read_enum_type): Use obstack_strndup.
4762 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4763 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4764 * dwarf2read.c (guess_full_die_structure_name)
4765 (anonymous_struct_prefix): Use obstack_strndup.
4766 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4767 * c-exp.y (yylex): Use obstack_strndup.
4768 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4769 (write_var_or_type): Use obstack_strndup.
4771 2019-08-06 Tom Tromey <tom@tromey.com>
4773 * symfile.c (reread_symbols): Use obstack_strdup.
4774 * stabsread.c (read_type): Use obstack_strdup.
4775 * gdb_obstack.h (obstack_strdup): New overload.
4776 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4777 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4778 (dwarf2_canonicalize_name): Use obstack_strdup.
4779 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4780 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4783 2019-08-06 Tom Tromey <tom@tromey.com>
4785 * gdb_obstack.h (obstack_strdup): Define.
4786 * gdb_obstack.c (obstack_strdup): Don't define.
4788 2019-08-06 Tom Tromey <tom@tromey.com>
4790 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4792 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4794 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4795 * stabsread.c (common_block_start): Use obstack_strdup.
4796 * objfiles.c (set_objfile_main_name, objfile): Use
4798 * namespace.c (add_using_directive): Use obstack_strdup.
4799 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4800 * jit.c (finalize_symtab): Use obstack_strdup.
4801 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4802 (guess_partial_die_structure_name, partial_die_info::fixup)
4803 (dwarf2_name): Use obstack_strdup.
4804 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4806 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4807 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4809 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4811 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4813 * unittests/help-doc-selftests.c: New file.
4814 * Makefile.in: Add the new file.
4816 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4818 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4819 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4820 the full first line, except when FOR_VALUE_PREFIX. In this case,
4821 the trailing '.' is not output, and the first character is uppercased.
4822 (print_help_for_command): Update call to print_doc_line.
4823 (print_doc_of_command): Likewise.
4824 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4825 * cli/cli-option.c (append_indented_doc): Do not append newline.
4826 (build_help_option): Append newline after first appended_indented_doc
4827 only if a second call is done.
4828 (build_help): Append 2 new lines before each option, except the first
4830 * compile/compile.c (_initialize_compile): Add new lines after
4831 %OPTIONS%, when not at the end of the help.
4832 Change help doc or code
4833 producing the help doc to respect the invariants.
4834 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4835 Also removed the new line after 'Options:', as all other commands
4836 do not put an empty line between 'Options:' and the first option.
4837 * printcmd.c (_initialize_printcmd): Likewise.
4838 * stack.c (_initialize_stack): Likewise.
4839 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4840 incorrectly telling COMMAND is optional.
4841 * ada-lang.c (_initialize_ada_language): Change help doc or code
4842 producing the help doc to respect the invariants.
4843 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4844 * breakpoint.c (_initialize_breakpoint): Likewise.
4845 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4846 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4847 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4848 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4849 _initialize_cli_style): Likewise.
4850 * corelow.c (core_target_info): Likewise.
4851 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4852 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4853 * filesystem.c (_initialize_filesystem): Likewise.
4854 * frame.c (_initialize_frame): Likewise.
4855 * gnu-nat.c (add_task_commands): Likewise.
4856 * infcall.c (_initialize_infcall): Likewise.
4857 * infcmd.c (_initialize_infcmd): Likewise.
4858 * interps.c (_initialize_interpreter): Likewise.
4859 * language.c (_initialize_language): Likewise.
4860 * linux-fork.c (_initialize_linux_fork): Likewise.
4861 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4862 * maint.c (_initialize_maint_cmds): Likewise.
4863 * memattr.c (_initialize_mem): Likewise.
4864 * printcmd.c (_initialize_printcmd): Likewise.
4865 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4867 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4868 * record-btrace.c (_initialize_record_btrace): Likewise.
4869 * record-full.c (_initialize_record_full): Likewise.
4870 * record.c (_initialize_record): Likewise.
4871 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4872 * regcache.c (_initialize_regcache): Likewise.
4873 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4874 _initialize_remote): Likewise.
4875 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4876 * serial.c (_initialize_serial): Likewise.
4877 * skip.c (_initialize_step_skip): Likewise.
4878 * source.c (_initialize_source): Likewise.
4879 * stack.c (_initialize_stack): Likewise.
4880 * symfile.c (_initialize_symfile): Likewise.
4881 * symtab.c (_initialize_symtab): Likewise.
4882 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4883 * top.c (init_main): Likewise.
4884 * tracefile-tfile.c (tfile_target_info): Likewise.
4885 * tracepoint.c (_initialize_tracepoint): Likewise.
4886 * tui/tui-win.c (_initialize_tui_win): Likewise.
4887 * utils.c (add_internal_problem_command): Likewise.
4888 * valprint.c (value_print_option_defs): Likewise.
4890 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4893 * configure.ac: Drop enable-libmcheck support.
4894 * configure, config.in: Rebuild.
4895 * libmcheck.m4: Remove.
4896 * acinclude.m4: Don't include it.
4897 * Makefile.in: Don't distribute it.
4898 * top.c (print_gdb_configuration): Don't mention it.
4900 2019-08-06 Tom Tromey <tom@tromey.com>
4902 * utils.c (set_output_style): Sometimes pass stream to
4904 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4905 * record-btrace.c (btrace_insn_history): Update.
4906 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4908 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4909 Update initializers.
4910 <m_uiout>: New field.
4912 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4913 Remove "uiout" parameter.
4914 (dump_insns): Update.
4915 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4916 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4918 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4920 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4921 (error_in_psymtab_expansion): Likewise.
4922 (lookup_symbol_via_quick_fns): Likewise.
4923 (basic_lookup_transparent_type_quick): Likewise.
4924 (basic_lookup_transparent_type_1): Likewise.
4926 2019-08-06 Tom Tromey <tromey@adacore.com>
4928 * source.c (last_source_error): Now bool.
4929 (print_source_lines_base): Make "noprint" bool. Only open
4930 source file when last_source_visited changes.
4932 2019-08-06 Tom Tromey <tromey@adacore.com>
4934 * annotate.c (annotate_source_line): Use g_source_cache.
4935 * source-cache.c (source_cache::get_plain_source_lines): Change
4936 parameters. Populate m_offset_cache.
4937 (source_cache::ensure): New method.
4938 (source_cache::get_line_charpos): New method.
4939 (extract_lines): Move lower. Change parameters.
4940 (source_cache::get_source_lines): Move lower.
4941 * source-cache.h (class source_cache): Update comment.
4942 <get_line_charpos>: New method.
4943 <get_source_lines>: Update comment.
4944 <clear>: Clear m_offset_cache.
4945 <get_plain_source_lines>: Change parameters.
4946 <ensure>: New method
4947 <m_offset_cache>: New member.
4948 * source.c (forget_cached_source_info_for_objfile): Update.
4949 (info_source_command): Use g_source_cache.
4950 (find_source_lines, open_source_file_with_line_charpos): Remove.
4951 (print_source_lines_base, search_command_helper): Use g_source_cache.
4952 * source.h (open_source_file_with_line_charpos): Don't declare.
4953 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4954 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4957 2019-08-06 Tom Tromey <tromey@adacore.com>
4959 * source-cache.c (source_cache::get_plain_source_lines):
4960 Remove "first_line" and "last_line" parameters.
4961 (source_cache::get_source_lines): Cache plain text.
4962 * source-cache.h (class source_cache)
4963 <get_plain_source_lines>: Update.
4965 2019-08-06 Tom Tromey <tromey@adacore.com>
4967 * source-cache.c (extract_lines): No longer a method.
4968 Changed type of parameter. Include final newline.
4969 (selftests::extract_lines_test): New function.
4970 (_initialize_source_cache): Likewise.
4971 * source-cache.h (class source_cache)
4972 <extract_lines>: Don't declare.
4974 2019-08-06 Tom Tromey <tromey@adacore.com>
4976 * breakpoint.c (init_breakpoint_sal): Update.
4977 (breakpoint): Update.
4978 * breakpoint.h (struct breakpoint) <filter>: Now a
4981 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4983 * NEWS: Mention dictionary access on blocks.
4984 * python/py-block.c (blpy_getitem): New function.
4985 (block_object_as_mapping): New struct.
4986 (block_object_type): Use new struct for tp_as_mapping field.
4988 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4990 * objfiles.h (objfile): Add a comment describing partial symbols.
4992 2019-08-05 Tom Tromey <tromey@adacore.com>
4994 * compile/compile.c (_initialize_compile): Use _(), not N_().
4995 * thread.c (_initialize_thread): Use _(), not N_().
4996 * stack.c (_initialize_stack): Use _(), not N_().
4997 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4999 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5001 * dwarf2read.c (struct dw2_symtab_iterator):
5002 <want_specific_block>: Remove.
5003 <block_index>: Change type to gdb::optional.
5004 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5005 change type of BLOCK_INDEX parameter to gdb::optional.
5006 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5007 (dw2_lookup_symbol): Don't pass argument for
5008 WANT_SPECIFIC_BLOCK.
5009 (dw2_expand_symtabs_for_function): Don't pass argument for
5010 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5011 (class dw2_debug_names_iterator)
5012 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5013 parameter, change BLOCK_INDEX type to gdb::optional.
5014 <m_want_specific_block>: Remove.
5015 <m_block_index>: Change type to gdb::optional.
5016 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5017 gdb::optional. Re-write in function of gdb::optional.
5018 (dw2_debug_names_lookup_symbol): Don't pass argument for
5019 WANT_SPECIFIC_BLOCK.
5020 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5021 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5024 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5026 * NEWS: Mention changes to "info sources" command.
5028 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5030 * symtab.c (filename_partial_match_opts): New struct type.
5031 (struct output_source_filename_data): New members
5032 regexp, c_regexp, partial_match.
5033 (output_source_filename): Use new members to decide to print file.
5034 (info_sources_option_defs): New variable.
5035 (make_info_sources_options_def_group, print_info_sources_header,
5036 info_sources_command_completer):
5038 (info_sources_command): Read new optional arguments.
5039 (_initialize_symtab): Update info sources help.
5041 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5043 * ada-lang.c (exception_support_info_v0): Renamed from...
5044 (default_exception_support_info): ... this. Create new
5046 (ada_has_this_exception_support): Look up catch_handlers_sym.
5047 (ada_exception_support_info_sniffer): Try v0 after default.
5049 2019-08-01 Tom Tromey <tromey@adacore.com>
5051 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5054 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5056 * s12z-tdep.c: Fix include path for s12z-opc.h.
5058 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5060 * NEWS: Require GNU make 3.82.
5062 2019-07-16 Tom Tromey <tom@tromey.com>
5064 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5067 2019-07-30 Tom Tromey <tromey@adacore.com>
5069 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5071 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5073 * printcmd.c (print_address_symbolic): Print negative offsets.
5074 (build_address_symbolic): Force signed arithmetic when computing
5077 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5079 PR/24474: Add a function to lookup static variables.
5080 * NEWS: Mention this new function.
5081 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5082 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5083 * python/python.c (python_GdbMethods): Add new function.
5085 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5087 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5088 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5089 (objfpy_lookup_static_symbol): New function.
5090 (objfile_object_methods): Add new functions.
5092 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5094 * NEWS: Mention 'set|show print frame-info'. Mention new
5095 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5096 backtrace argument. Mention that python frame filtering code
5097 is now consistent with what 'backtrace' command prints.
5099 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5101 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5103 (print_frame_info_auto, print_frame_info_source_line,
5104 print_frame_info_location, print_frame_info_source_and_location,
5105 print_frame_info_location_and_address, print_frame_info_short_location):
5107 (struct frame_print_options): New member print_frame_info.
5108 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5109 * stack.h (get_user_print_what_frame_info): New declaration.
5110 (frame_show_address): New declaration.
5111 * stack.c (print_frame_arguments_choices): New value 'presence'.
5112 (print_frame_info_auto, print_frame_info_source_line,
5113 print_frame_info_location, print_frame_info_source_and_location,
5114 print_frame_info_location_and_address, print_frame_info_short_location,
5115 print_frame_info_choices, print_frame_info_print_what): New definitions.
5116 (print_frame_args): Only print dots for args if print frame-arguments
5118 (frame_print_option_defs): New element for "frame-info".
5119 (get_user_print_what_frame_info): New function.
5120 (frame_show_address): Make non static. Move comment to stack.h.
5121 (print_frame_info_to_print_what): New function.
5122 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5123 to decide what to print.
5124 (backtrace_command_1): Handle the new print_frame_arguments_presence
5126 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5127 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5128 (py_print_frame): In non-mi mode, use LOCATION as default for
5129 print_what, similarly to frame information printed directly by
5130 backtrace command. Handle frame-info user option in non MI mode.
5132 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5134 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5135 Add case for debugging 32-bit target on 64-bit host. Revise
5138 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5140 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5141 instead of find_function_entry_range_from_pc.
5143 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5145 * stack.c (find_frame_funname): Remove code which preferred
5146 minsym over symtab sym in "certain pathological cases".
5148 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5149 parameter. Change type of "do_demangle" to bool.
5150 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5151 Pass suitable "prefer_sym_over_minsym" flag to
5152 build_address_symbolic(). Don't output "+" for negative offsets.
5153 * printcmd.c (print_address_symbolic): Update invocation of
5154 build_address_symbolic to include a "prefer_sym_over_minsym"
5156 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5157 Restrict cases in which use of minimal symbol is preferred to that
5158 of a found symbol. Update comments.
5160 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5161 for entry pc when entry pc is out of range for that FDE.
5163 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5166 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5169 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5171 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5172 this function's Python signature.
5175 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5177 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5178 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5179 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5180 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5181 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5184 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5186 * h8300-tdep.c (h8300_register_name_common): New.
5187 h8300_register_name): Use h8300_register_name_common.
5188 (h8300s_register_name): Likewise.
5189 (h8300sx_register_name): Likewise.
5190 (h8300h_register_nam): New.
5191 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5194 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5196 * arm-tdep.c (arm_skip_cmse_entry): New function.
5197 (arm_is_sgstubs_section): New function.
5198 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5200 2019-07-22 Tom Tromey <tom@tromey.com>
5202 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5205 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5207 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5210 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5212 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5213 so that GDB doesn't match any msymbols when searching in the
5215 (print_symbol_info): Print using typedef_print or type_print based
5216 on the type of the symbol. Add updated FIXME comment moved from...
5217 (_initialize_symtab): ... move and update FIXME comment to above.
5219 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5221 * NEWS: Mention adding -q option to "info types".
5222 * symtab.c (struct info_types_options): New struct.
5223 (info_types_options_defs): New variable.
5224 (make_info_types_options_def_group): New function.
5225 (info_types_command): Use gdb::option framework to parse options.
5226 (info_types_command_completer): New function.
5227 (_initialize_symtab): Extend the help text on "info types" and
5228 register command completer.
5230 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5232 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5233 (lookup_symbol_in_objfile): Change int to block_enum and add a
5234 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5236 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5238 * MAINTAINERS (Write After Approval): Add self.
5240 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5242 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5243 instruction to the dummy code region.
5245 2019-07-19 Tom Tromey <tromey@adacore.com>
5247 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5248 (ARGSUSED, PARAMS, __func__): Remove rules.
5250 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5252 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5253 * features/arm/arm-with-iwmmxt.c: Remove.
5254 * features/arm/arm-with-iwmmxt.xml: Remove.
5255 * features/arm/arm-with-m-fpa-layout.c: Remove.
5256 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5257 * features/arm/arm-with-m-vfp-d16.c: Remove.
5258 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5259 * features/arm/arm-with-m.c: Remove.
5260 * features/arm/arm-with-m.xml: Remove.
5261 * features/arm/arm-with-neon.c: Remove.
5262 * features/arm/arm-with-neon.xml: Remove.
5263 * features/arm/arm-with-vfpv2.c: Remove.
5264 * features/arm/arm-with-vfpv2.xml: Remove.
5265 * features/arm/arm-with-vfpv3.c: Remove.
5266 * features/arm/arm-with-vfpv3.xml: Remove.
5268 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5270 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5272 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5274 * arch/aarch32.c (aarch32_create_target_description): Create
5275 target descriptions using features.
5276 * arch/arm.c (arm_create_target_description)
5277 (arm_create_mprofile_target_description): Likewise.
5278 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5280 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5282 * Makefile.in: Add new files.
5283 * aarch32-tdep.c: New file.
5284 * aarch32-tdep.h: New file.
5285 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5286 Call aarch32_read_description.
5287 * arch/aarch32.c: New file.
5288 * arch/aarch32.h: New file.
5289 * arch/arm.c (arm_create_target_description)
5290 (arm_create_mprofile_target_description): New function.
5291 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5292 (arm_create_target_description)
5293 (arm_create_mprofile_target_description): New declaration.
5294 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5295 read_description functions.
5296 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5298 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5299 * arm-tdep.c (tdesc_arm_list): New variable.
5300 (arm_register_g_packet_guesses): Call create description functions.
5301 (arm_read_description) (arm_read_mprofile_description): New
5303 * arm-tdep.h (arm_read_description)
5304 (arm_read_mprofile_description): Add declaration.
5305 * configure.tgt: Add new files.
5307 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5309 * top.c (new_ui_command): Open specified terminal just once.
5311 2019-07-18 Tom Tromey <tromey@adacore.com>
5313 * symtab.c (main_name): Constify return type.
5314 * symfile.c (set_initial_language): Update.
5315 * symtab.h (main_name): Constify return type.
5317 2019-07-17 Tom Tromey <tom@tromey.com>
5319 * tui/tui-winsource.c (tui_update_source_window)
5320 (tui_update_source_window_as_is)
5321 (tui_update_source_windows_with_line): Remove return.
5322 * tui/tui-disasm.c (tui_show_disassem)
5323 (tui_show_disassem_and_update_source): Remove return.
5324 * tui/tui.c (tui_reset): Remove return.
5325 * tui/tui-wingeneral.c
5326 (tui_check_and_display_highlight_if_needed): Remove return.
5328 2019-07-17 Tom Tromey <tom@tromey.com>
5330 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5332 2019-07-17 Tom Tromey <tom@tromey.com>
5334 * tui/tui-winsource.h (struct tui_exec_info_window)
5335 (struct tui_source_window_base): Move from tui-data.h.
5336 * tui/tui-winsource.c: Move many method definitions from
5337 elsewhere. Remove "structuring" comments.
5338 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5339 (tui_source_window_base::refresh_window): Move to
5341 * tui/tui-win.c (tui_source_window_base::refresh_all)
5342 (tui_source_window_base::update_tab_width)
5343 (tui_source_window_base::set_new_height)
5344 (tui_source_window_base::do_make_visible_with_new_height): Move to
5346 * tui/tui-source.h: Update.
5347 * tui/tui-source.c (tui_source_window_base::reset): Move to
5349 * tui/tui-disasm.h: Update.
5350 * tui/tui-data.h (struct tui_exec_info_window): Move to
5352 (struct tui_source_window_base): Likewise.
5353 * tui/tui-data.c (tui_source_window_base::clear_detail)
5354 (tui_source_window_base, ~tui_source_window_base): Move to
5357 2019-07-17 Tom Tromey <tom@tromey.com>
5359 * tui/tui-win.c (tui_resize_all)
5360 (tui_source_window_base::update_tab_width)
5361 (tui_adjust_win_heights): Update.
5362 (tui_win_info::make_invisible_and_set_new_height): Rename from
5363 make_invisible_and_set_new_height.
5364 * tui/tui-data.h (struct tui_win_info)
5365 <make_invisible_and_set_new_height>: New method.
5367 2019-07-17 Tom Tromey <tom@tromey.com>
5369 * tui/tui.c: Update.
5370 * tui/tui-source.h (struct tui_source_window): Move from
5372 * tui/tui-layout.c: Update.
5373 * tui/tui-disasm.c: Update.
5374 * tui/tui-data.h (struct tui_source_window): Move to
5377 2019-07-17 Tom Tromey <tom@tromey.com>
5379 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5381 * tui/tui-data.h (struct tui_disasm_window): Move to
5384 2019-07-17 Tom Tromey <tom@tromey.com>
5386 * tui/tui-regs.h (struct tui_data_item_window): Move from
5388 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5389 * tui/tui-data.h (struct tui_data_item_window): Move to
5391 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5393 2019-07-17 Tom Tromey <tom@tromey.com>
5395 * tui/tui.c: Update.
5396 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5397 (tui_cmd_window::max_height): Move to tui-command.c.
5398 * tui/tui-layout.c: Update.
5399 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5400 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5402 * tui/tui-command.h (struct tui_cmd_window): Move from
5404 * tui/tui-command.c: Remove "structuring" comments.
5405 (tui_cmd_window::clear_detail)
5406 (tui_cmd_window::do_make_visible_with_new_height)
5407 (tui_cmd_window::max_height): Move from elsewhere.
5409 2019-07-17 Tom Tromey <tom@tromey.com>
5411 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5413 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5414 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5416 2019-07-17 Tom Tromey <tom@tromey.com>
5418 * tui/tui.c: Update.
5419 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5421 * tui/tui-windata.h: Remove file.
5422 * tui/tui-windata.c: Remove file.
5423 * tui/tui-win.c (tui_data_window::set_new_height)
5424 (tui_data_window::do_make_visible_with_new_height): Move to
5426 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5427 * tui/tui-regs.c: Remove "structuring" comments.
5428 (tui_data_window::first_data_item_displayed)
5429 (tui_data_window::delete_data_content_windows)
5430 (tui_data_window::erase_data_content)
5431 (tui_data_window::display_all_data)
5432 (tui_data_window::refresh_all)
5433 (tui_data_window::do_scroll_vertical)
5434 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5435 (tui_data_window::do_make_visible_with_new_height)
5436 (tui_data_window::refresh_window): Move from elsewhere.
5437 (_initialize_tui_regs): Move to end of file.
5438 * tui/tui-layout.c: Update.
5439 * tui/tui-hooks.c: Update.
5440 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5441 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5443 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5445 2019-07-17 Tom Tromey <tom@tromey.com>
5447 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5452 * tui/tui-win.c (tui_source_window_base::set_new_height)
5453 (tui_source_window_base::do_make_visible_with_new_height): Use
5454 m_has_locator field directly.
5455 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5457 (struct tui_source_window_base) <has_locator>: Likewise.
5459 2019-07-17 Tom Tromey <tom@tromey.com>
5461 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5463 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5465 * tui/tui-win.c (tui_source_window_base::set_new_height)
5466 (tui_source_window_base::set_new_height)
5467 (make_invisible_and_set_new_height)
5468 (tui_source_window_base::do_make_visible_with_new_height)
5469 (tui_source_window_base::do_make_visible_with_new_height):
5471 * tui/tui-layout.c (show_source_disasm_command, show_data)
5472 (show_source_or_disasm_and_command): Update.
5473 * tui/tui-layout.c (show_layout): Update.
5475 2019-07-17 Tom Tromey <tom@tromey.com>
5477 * tui/tui-layout.c (make_data_window): Remove.
5478 (show_data): Unify creation and re-initialization cases.
5480 2019-07-17 Tom Tromey <tom@tromey.com>
5482 * tui/tui-layout.c (make_source_window, make_disasm_window):
5484 (show_data): Unify creation and re-initialization cases.
5486 2019-07-17 Tom Tromey <tom@tromey.com>
5488 * tui/tui-layout.c (make_command_window): Remove.
5489 (show_source_disasm_command, show_source_or_disasm_and_command):
5490 Unify creation and re-initialization cases.
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5494 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5495 creation and re-initialization cases.
5497 2019-07-17 Tom Tromey <tom@tromey.com>
5499 * tui/tui-regs.c (tui_get_register): Return void.
5501 2019-07-17 Tom Tromey <tom@tromey.com>
5503 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5506 2019-07-17 Tom Tromey <tom@tromey.com>
5508 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5511 2019-07-17 Tom Tromey <tom@tromey.com>
5513 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5514 * tui/tui-regs.c (tui_reg_layout): New function.
5515 (tui_show_registers, tui_reg_command): Use it.
5516 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5517 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5519 (tui_layout_command): Remove.
5521 2019-07-17 Tom Tromey <tom@tromey.com>
5523 * tui/tui-layout.h (tui/tui-layout): Return void.
5524 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5526 2019-07-17 Tom Tromey <tom@tromey.com>
5528 * tui/tui-layout.c (show_source_disasm_command, show_data):
5530 (reset_locator): Remove.
5531 (show_source_or_disasm_and_command): Update.
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5535 * tui/tui-source.c (tui_source_window_base::reset): Remove
5537 * tui/tui-layout.c (make_command_window, make_source_window)
5538 (make_disasm_window, make_data_window)
5539 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5540 (reset_locator, show_source_or_disasm_and_command): Update.
5541 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5543 (struct tui_source_window_base) <reset>: Likewise.
5545 2019-07-17 Tom Tromey <tom@tromey.com>
5547 * tui/tui-layout.c (show_source_disasm_command): Use
5549 (reset_locator): New function.
5550 (init_and_make_win): Remove.
5551 (show_source_or_disasm_and_command): Use reset_locator.
5553 2019-07-17 Tom Tromey <tom@tromey.com>
5555 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5557 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5559 * tui/tui-source.c (tui_source_window_base::reset): New method.
5560 * tui/tui-layout.c (make_command_window): Don't call
5562 (make_source_window, make_disasm_window): Don't call
5563 make_source_or_disasm_window.
5564 (make_data_window): Don't call init_and_make_win. Change calling
5566 (show_source_disasm_command, show_data): Simplify.
5567 (make_source_or_disasm_window): Remove.
5568 (show_source_or_disasm_and_command): Simplify.
5569 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5570 (struct tui_source_window_base) <reset>: Likewise.
5571 <execution_info>: Remove initializer.
5572 * tui/tui-data.c (tui_source_window_base): Initialize
5575 2019-07-17 Tom Tromey <tom@tromey.com>
5577 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5580 2019-07-17 Tom Tromey <tom@tromey.com>
5582 * tui/tui.c (tui_rl_other_window): Update.
5583 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5584 superclass method first. Always iterate over regs_content.
5585 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5587 * tui/tui-win.c (tui_set_focus_command): Update.
5589 2019-07-17 Tom Tromey <tom@tromey.com>
5591 * tui/tui-win.c (tui_set_focus_command): Rename from
5592 tui_set_focus. Call tui_enable.
5593 (tui_set_focus_command): Remove.
5595 2019-07-17 Tom Tromey <tom@tromey.com>
5597 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5599 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5601 (tui_data_window::refresh_window): Call refresh_window on data
5602 items. Always call superclass refresh_window.
5603 (tui_win_info::refresh): Remove.
5604 (tui_source_window_base::refresh_window): Update.
5605 (tui_refresh_all): Update.
5606 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5608 (show_source_or_disasm_and_command): Likewise.
5609 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5610 (struct tui_source_window_base) <refresh>: Likewise.
5612 2019-07-17 Tom Tromey <tom@tromey.com>
5614 * tui/tui-winsource.c (tui_clear_source_content)
5615 (tui_show_source_content): Update.
5616 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5617 whether content is empty.
5618 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5621 2019-07-17 Tom Tromey <tom@tromey.com>
5623 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5625 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5626 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5628 2019-07-17 Tom Tromey <tom@tromey.com>
5630 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5631 (struct tui_data_item_window): Update.
5633 2019-07-17 Tom Tromey <tom@tromey.com>
5635 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5636 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5639 2019-07-17 Tom Tromey <tom@tromey.com>
5641 * tui/tui-winsource.h (tui_erase_source_content)
5642 (tui_clear_source_content): Remove "display_prompt" parameter.
5643 * tui/tui-winsource.c (tui_update_source_window_as_is)
5644 (tui_update_source_windows_with_addr): Update.
5645 (tui_clear_source_content): Remove "display_prompt" parameter.
5646 (tui_erase_source_content): Likewise. Simplify.
5647 (tui_show_source_content): Update.
5648 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5649 * tui/tui-stack.c (tui_show_frame_info): Update.
5650 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5653 2019-07-17 Tom Tromey <tom@tromey.com>
5655 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5656 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5658 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5663 * tui/tui-winsource.c (tui_clear_source_content)
5664 (tui_show_source_content, tui_show_exec_info_content)
5665 (tui_clear_exec_info_content): Update.
5666 * tui/tui-stack.c (tui_show_locator_content): Update.
5667 (tui_show_frame_info): Update.
5668 * tui/tui-source.h (tui_source_window): Don't declare.
5669 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5670 from tui_source_is_displayed.
5671 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5673 (struct tui_source_window_base) <content_in_use>: New field. Now
5675 (struct tui_source_window) <showing_source_p>: New method.
5676 (TUI_SRC_WIN): Change cast.
5677 * tui/tui-data.c (tui_initialize_static_data): Update.
5679 2019-07-17 Tom Tromey <tom@tromey.com>
5681 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5683 * tui/tui-source.c (tui_source_window::location_matches_p): New
5685 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5687 * tui/tui-data.h (struct tui_source_window_base)
5688 <location_matches_p>: New method.
5689 (struct tui_source_window, struct tui_disasm_window)
5690 <location_matches_p>: Likewise.
5692 2019-07-17 Tom Tromey <tom@tromey.com>
5694 * tui/tui-win.c (tui_set_win_height_command): Rename from
5696 (tui_set_win_height_command): Remove.
5698 2019-07-17 Tom Tromey <tom@tromey.com>
5700 * tui/tui-source.c (tui_source_window): New constructor. Add
5702 (~tui_source_window): New destructor.
5703 (tui_source_window::style_changed): New method.
5704 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5705 (tui_attach_detach_observers): Update.
5706 * tui/tui-data.h (struct tui_source_window): Make constructor not
5707 inline. Add destructor.
5708 (struct tui_source_window) <style_changed>: New method.
5709 <m_observable>: New member.
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5713 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5714 * tui/tui-win.c (tui_resize_all): Fix typo.
5716 2019-07-17 Tom Tromey <tom@tromey.com>
5718 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5719 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5720 (tui_refresh_all): Remove "list" parameter. Use foreach.
5721 * tui/tui-win.c (window_name_completer): Use foreach.
5722 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5723 (update_tab_width): Likewise.
5724 * tui/tui-layout.c (show_layout): Update.
5725 * tui/tui-data.h (class tui_window_iterator): New.
5726 (struct all_tui_windows): New.
5727 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5729 2019-07-17 Tom Tromey <tom@tromey.com>
5731 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5732 parameter. Don't reference globals.
5733 (tui_reg_command): Update.
5735 2019-07-17 Tom Tromey <tom@tromey.com>
5737 * tui/tui-regs.c (tui_show_registers): Simplify.
5739 2019-07-17 Tom Tromey <tom@tromey.com>
5741 * tui/tui-regs.c (tui_show_registers): Update.
5742 (tui_show_register_group): Add win_info parameter.
5744 2019-07-17 Tom Tromey <tom@tromey.com>
5746 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5747 Rename from tui_display_reg_element_at_line.
5748 (tui_data_window::display_registers_from_line): Update.
5749 * tui/tui-data.h (struct tui_data_window)
5750 <display_reg_element_at_line>: New method.
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5754 * tui/tui-regs.h (tui_display_registers_from)
5755 (tui_display_registers_from_line): Don't declare.
5756 * tui/tui-windata.c (tui_data_window::display_all_data)
5757 (tui_data_window::refresh_all)
5758 (tui_data_window::do_scroll_vertical): Update.
5759 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5760 from tui_display_registers_from.
5761 (tui_display_reg_element_at_line): Update.
5762 (tui_data_window::display_registers_from_line): Rename from
5763 tui_display_registers_from_line.
5764 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5765 display_registers_from_line>: New methods.
5767 2019-07-17 Tom Tromey <tom@tromey.com>
5769 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5770 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5771 from tui_erase_data_content.
5772 (tui_data_window::display_all_data)
5773 (tui_data_window::refresh_all)
5774 (tui_data_window::do_scroll_vertical): Update.
5775 * tui/tui-regs.c (tui_show_registers): Update.
5776 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5779 2019-07-17 Tom Tromey <tom@tromey.com>
5781 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5784 (tui_data_window::delete_data_content_windows): Rename from
5785 tui_delete_data_content_windows.
5786 (tui_data_window::display_all_data)
5787 (tui_data_window::do_scroll_vertical): Update.
5788 * tui/tui-data.h (struct tui_data_window)
5789 <delete_data_content_windows>: New method.
5791 2019-07-17 Tom Tromey <tom@tromey.com>
5793 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5794 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5796 2019-07-17 Tom Tromey <tom@tromey.com>
5798 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5799 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5800 from tui_display_all_data.
5802 (tui_data_window::do_make_visible_with_new_height): Update.
5803 * tui/tui-regs.c (tui_show_registers): Update.
5804 * tui/tui-layout.c (tui_set_layout): Update.
5805 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5808 2019-07-17 Tom Tromey <tom@tromey.com>
5810 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5811 * tui/tui-windata.c (tui_display_data_from): Remove.
5812 (tui_data_window::refresh_all): Update.
5814 2019-07-17 Tom Tromey <tom@tromey.com>
5816 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5817 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5818 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5819 tui_display_registers_from_line.
5820 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5821 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5822 "force_display" parameter.
5824 2019-07-17 Tom Tromey <tom@tromey.com>
5826 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5828 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5829 Rename from tui_first_reg_element_no_inline.
5830 (tui_display_reg_element_at_line)
5831 (tui_display_registers_from_line): Update.
5832 * tui/tui-data.h (struct tui_data_window)
5833 <first_reg_element_no_inline>: New method.
5835 2019-07-17 Tom Tromey <tom@tromey.com>
5837 * tui/tui-windata.c (tui_display_data_from)
5838 (tui_data_window::do_scroll_vertical): Update.
5839 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5840 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5841 Rename from tui_line_from_reg_element_no.
5842 (tui_display_registers_from_line): Update.
5843 * tui/tui-data.h (struct tui_data_window)
5844 <line_from_reg_element_no>: New method.
5846 2019-07-17 Tom Tromey <tom@tromey.com>
5848 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5849 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5850 tui_last_regs_line_no.
5851 (tui_display_reg_element_at_line)
5852 (tui_display_registers_from_line): Update.
5853 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5856 2019-07-17 Tom Tromey <tom@tromey.com>
5859 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5860 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5861 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5862 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5863 (tui_update_breakpoint_info): Likewise.
5864 * tui/tui-hooks.c (tui_event_create_breakpoint)
5865 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5868 2019-07-17 Tom Tromey <tom@tromey.com>
5870 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5872 2019-07-17 Tom Tromey <tom@tromey.com>
5874 * tui/tui-winsource.c (tui_update_source_window_as_is)
5875 (tui_update_source_windows_with_addr): Update.
5876 * tui/tui-source.h (tui_set_source_content)
5877 (tui_show_symtab_source): Add "win_info" parameter.
5878 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5880 (tui_show_symtab_source): Likewise.
5882 2019-07-17 Tom Tromey <tom@tromey.com>
5884 * tui/tui-wingeneral.c
5885 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5887 2019-07-17 Tom Tromey <tom@tromey.com>
5889 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5890 (struct tui_cmd_window) <can_scroll>: New method.
5891 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5894 2019-07-17 Tom Tromey <tromey@adacore.com>
5896 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5897 do_field_signed>: Rename. Change type of "value".
5898 * ui-out.c (ui_out::field_signed): Rename from field_int.
5899 Change type of "value".
5900 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5902 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5903 do_field_int. Change type of "value".
5904 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5905 do_field_int. Change type of "value".
5906 * tracepoint.c (trace_status_mi, tfind_1)
5907 (print_one_static_tracepoint_marker): Update.
5908 * thread.c (print_thread_info_1, print_selected_thread_frame):
5910 * stack.c (print_frame, print_frame_info): Update.
5911 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5913 * source.c (print_source_lines_base): Update.
5914 * skip.c (info_skip_command): Update.
5915 * record-btrace.c (btrace_ui_out_decode_error)
5916 (btrace_call_history_src_line): Update.
5917 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5919 * progspace.c (print_program_space): Update.
5920 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5921 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5922 do_field_int. Change type of "value".
5923 * mi/mi-out.c (mi_ui_out::do_table_begin)
5924 (mi_ui_out::do_table_header): Update.
5925 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5927 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5928 (mi_cmd_data_list_changed_registers, output_register)
5929 (mi_cmd_data_read_memory, mi_load_progress)
5930 (mi_cmd_trace_frame_collected): Update.
5931 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5933 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5934 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5935 (mi_cmd_var_list_children, varobj_update_one): Update.
5936 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5937 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5938 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5939 * inferior.c (print_inferior): Update.
5940 * gdb_bfd.c (print_one_bfd): Update.
5941 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5943 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5944 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5945 do_field_int. Change type of "value".
5946 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5947 do_field_int. Change type of "value".
5948 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5949 (print_one_breakpoint_location, print_it_catch_fork)
5950 (print_one_catch_fork, print_it_catch_vfork)
5951 (print_one_catch_vfork, print_it_catch_solib)
5952 (print_it_catch_exec, print_it_ranged_breakpoint)
5953 (print_mention_watchpoint, print_mention_masked_watchpoint)
5954 (bkpt_print_it, update_static_tracepoint): Update.
5955 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5956 * break-catch-syscall.c (print_it_catch_syscall): Update.
5957 * ada-tasks.c (print_ada_task_info): Update.
5958 * ada-lang.c (print_it_exception, print_mention_exception):
5961 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5963 PR breakpoints/24541
5964 * gdbarch.c: Regenerate.
5965 * gdbarch.h: Regenerate.
5966 * gdbarch.sh: Adjust return type and parameter types for
5967 'stap_adjust_register'.
5968 (i386_stap_adjust_register): Adjust signature and return new
5970 * stap-probe.c (stap_parse_register_operand): Adjust use of
5971 'gdbarch_stap_adjust_register'.
5973 2019-07-17 Tom Tromey <tromey@adacore.com>
5975 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5977 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5979 (struct s390_process_info): Add initializers.
5980 (s390_add_process): Use new.
5981 (s390_linux_nat_target::low_forget_process): Use delete.
5982 (s390_linux_nat_target::low_new_fork)
5983 (s390_linux_nat_target::stopped_by_watchpoint)
5984 (s390_linux_nat_target::low_prepare_to_resume)
5985 (s390_linux_nat_target::insert_watchpoint)
5986 (s390_linux_nat_target::insert_hw_breakpoint)
5987 (s390_linux_nat_target::remove_watchpoint)
5988 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5990 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5992 * aarch64-fbsd-nat.c: Include regcache.h.
5993 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5995 (aarch64_fbsd_nat_target::fetch_registers)
5996 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5998 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6000 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6002 * fbsd-nat.c: Include gdbarch.h.
6004 2019-07-15 Tom Tromey <tromey@adacore.com>
6006 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6008 2019-07-15 Tom Tromey <tromey@adacore.com>
6010 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6011 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6012 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6013 * cli-out.c (cli_ui_out::do_field_int): New method.
6014 * ui-out.c (ui_out::field_unsigned): New method.
6015 * symfile.c (generic_load): Use field_unsigned.
6016 (print_transfer_performance): Likewise.
6017 * record-btrace.c (ui_out_field_uint): Remove.
6018 (btrace_call_history_insn_range, btrace_call_history): Use
6020 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6022 * ui-out.h (class ui_out) <field_unsigned>: New method.
6023 <do_field_unsigned>: Likewise.
6025 2019-07-15 Tom Tromey <tromey@adacore.com>
6027 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6028 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6029 * target.c (flash_erase_command): Use field_string.
6030 * infrun.c (print_signal_received_reason): Use field_string.
6031 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6032 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6034 * ada-tasks.c (print_ada_task_info): Use field_string.
6036 2019-07-15 Tom Tromey <tromey@adacore.com>
6038 * target.c (flash_erase_command): Use field_core_addr.
6039 * symfile.c (generic_load): Use field_core_addr.
6040 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6041 Use field_core_addr.
6042 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6045 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6047 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6048 value if its desired type is smaller than a CORE_ADDR and signed.
6050 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6052 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6053 of changes to field names, and use new is_reference field to
6054 decide if a property is a reference or not.
6055 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6057 (struct dwarf2_property_baton): Update header comment, rename
6058 'referenced_type' to 'property_type' and update comments.
6059 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6060 default property type, store in property baton, update to take
6061 accound of renamed field.
6062 (read_func_scope): Update call to attr_to_dynamic_prop.
6063 (read_array_type): Likewise.
6064 (dwarf2_per_cu_addr_sized_int_type): New function.
6065 (read_subrange_index_type): Move type finding code to
6066 dwarf2_per_cu_addr_sized_int_type.
6067 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6068 (dwarf2_per_cu_addr_type): New function.
6069 (set_die_type): Update calls to attr_to_dynamic_prop.
6071 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6073 * dwarf2read.c (read_subrange_index_type): New function.
6074 (read_subrange_type): Move code into new function and call it.
6075 * gdbtypes.c (create_range_type): Add some asserts.
6077 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6079 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6080 update return statements.
6081 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6082 declaration, and update comment to match.
6083 * gdbtypes.c (resolve_dynamic_array): Update call to
6084 dwarf2_evaluate_property to match new return type.
6086 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6088 * valarith.c (value_subscripted_rvalue): Change lowerbound
6089 parameter type from int to LONGEST.
6090 * value.h (value_subscripted_rvalue): Likewise in declaration.
6092 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6094 * cli/cli-utils.c (info_print_command_completer): New function.
6095 * cli/cli-utils.h: Add 'completer.h' include, and forward
6096 declaration for 'struct cmd_list_element'.
6097 (info_print_command_completer): Declare.
6098 * stack.c (_initialize_stack): Add completer for 'info locals' and
6100 * symtab.c (_initialize_symtab): Add completer for 'info
6101 variables' and 'info functions'.
6102 * NEWS: Mention completion for additional info commands.
6104 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6106 * cli/cli-utils.c (extract_info_print_args): Delete.
6107 (extract_arg_maybe_quoted): Delete.
6108 (info_print_options_defs): New variable.
6109 (make_info_print_options_def_group): New function.
6110 (extract_info_print_options): Define new function.
6111 * cli/cli-utils.h (extract_info_print_args): Delete.
6112 (struct info_print_options): New structure.
6113 (extract_info_print_options): Declare new function.
6114 * stack.c (info_locals_command): Update to use new
6115 extract_info_print_options, also add a header comment.
6116 (info_args_command): Likewise.
6117 * symtab.c (info_variables_command): Likewise.
6118 (info_functions_command): Likewise.
6120 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6122 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6123 to extract string arguments.
6124 * common/common-utils.c (extract_string_maybe_quoted): New function.
6125 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6127 2019-07-11 Tom Tromey <tromey@adacore.com>
6129 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6130 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6131 * top.h (gdbinit): Don't declare.
6132 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6134 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6135 * top.c (gdb_init): Don't call init_cli_cmds.
6137 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6139 2019-07-11 Tom Tromey <tromey@adacore.com>
6141 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6142 after it has been moved.
6144 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6146 * valops.c (value_must_coerce_to_target): Change return type to
6148 * value.h (value_must_coerce_to_target): Likewise.
6150 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6152 * breakpoint.c (is_hardware_watchpoint): Remove
6153 forward-declaration.
6154 (is_masked_watchpoint): Change return type to bool.
6155 (is_tracepoint): Likewise.
6156 (is_breakpoint): Likewise.
6157 (is_hardware_watchpoint): Likewise.
6158 (is_watchpoint): Likewise.
6159 (is_no_memory_software_watchpoint): Likewise.
6160 (is_catchpoint): Likewise.
6161 (breakpoint_1): Make FILTER parameter's return type bool.
6162 is_masked_watchpoint): Change return type to bool.
6163 (save_breakpoints): Make FILTER parameter's return type bool.
6164 * breakpoint.h (is_breakpoint): Change return type to bool.
6165 (is_watchpoint): Likewise.
6166 (is_catchpoint): Likewise.
6167 (is_tracepoint): Likewise.
6169 2019-07-10 Tom Tromey <tom@tromey.com>
6171 * defs.h: Don't include gdbarch.h.
6172 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6173 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6174 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6175 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6176 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6177 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6178 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6179 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6180 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6181 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6182 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6183 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6184 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6185 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6186 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6187 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6188 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6189 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6190 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6191 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6192 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6193 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6194 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6195 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6196 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6197 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6198 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6200 2019-07-10 Tom Tromey <tromey@adacore.com>
6202 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6203 * breakpoint.c (init_ada_exception_breakpoint): Register as
6205 (print_one_breakpoint_location, print_one_breakpoint): Use
6206 is_ada_exception_catchpoint.
6207 * ada-lang.c (class ada_catchpoint_location): Pass
6208 bp_loc_software_breakpoint to bp_location constructor.
6209 (is_ada_exception_catchpoint): New function.
6211 2019-07-10 Tom Tromey <tromey@adacore.com>
6213 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6215 (struct arm_exidx_entry): New method operator<.
6216 (struct arm_exidx_data) <section_maps>: Change type.
6217 (arm_exidx_data_free): Remove.
6218 (arm_exidx_data_key): Change type. Move lower.
6219 (arm_exidx_new_objfile): Update.
6220 (arm_compare_exidx_entries): Remove.
6221 (arm_find_exidx_entry, _initialize_arm_tdep)
6223 2019-07-10 Tom Tromey <tromey@adacore.com>
6225 * solib-spu.c (ocl_program_data_key): Change type.
6226 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6229 2019-07-10 Tom Tromey <tromey@adacore.com>
6231 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6232 (struct solib_aix_inferior_data) <library_list>: Change type.
6233 (solib_aix_inferior_data_handle): Change type.
6234 (get_solib_aix_inferior_data): Update.
6235 (solib_aix_free_library_list): Remove.
6236 (library_list_start_library): Update.
6237 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6239 (solib_aix_get_library_list)
6240 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6241 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6243 2019-07-10 Tom Tromey <tromey@adacore.com>
6245 * solib-dsbt.c (struct dsbt_info): Add initializers.
6246 (solib_dsbt_pspace_data): Change type.
6247 (dsbt_pspace_data_cleanup): Remove.
6248 (get_dsbt_info, _initialize_dsbt_solib): Update.
6250 2019-07-10 Tom Tromey <tromey@adacore.com>
6252 * spu-tdep.c (spu_overlay_data): Change type.
6253 (spu_get_overlay_table, spu_overlay_new_objfile)
6254 (_initialize_spu_tdep): Update.
6256 2019-07-10 Tom Tromey <tromey@adacore.com>
6258 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6260 (dbx_objfile_data_key): Change type and declare later.
6261 (DBX_SYMFILE_INFO): Rewrite.
6262 * dbxread.c (dbx_objfile_data_key): Change type.
6263 (dbx_symfile_init): Update.
6264 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6265 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6266 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6268 2019-07-10 Tom Tromey <tromey@adacore.com>
6270 * jit.c (jit_program_space_key): Change type. Move lower.
6271 (get_jit_program_space_data): Update.
6272 (jit_program_space_data_cleanup): Remove.
6273 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6275 (struct jit_program_space_data): Add initializers.
6277 2019-07-10 Tom Tromey <tromey@adacore.com>
6279 * solib-darwin.c (struct darwin_info): Add initializers.
6280 (solib_darwin_pspace_data): Change type.
6281 (darwin_pspace_data_cleanup): Remove.
6282 (get_darwin_info, _initialize_darwin_solib): Update.
6284 2019-07-10 Tom Tromey <tromey@adacore.com>
6286 * remote-sim.c (struct sim_inferior_data): Add initializers,
6287 constructor, and destructor.
6288 (sim_inferior_data_key): Change type. Move lower.
6289 (check_for_duplicate_sim_descriptor): Update.
6290 (get_sim_inferior_data): Use new. Update.
6291 (~sim_inferior_data_cleanup): Rename from
6292 sim_inferior_data_cleanup. Simplify.
6293 (gdbsim_close_inferior, simulator_command)
6294 (sim_command_completer, _initialize_remote_sim): Update.
6295 (next_pid, INITIAL_PID): Move earlier.
6297 2019-07-10 Tom Tromey <tromey@adacore.com>
6299 * python/python-internal.h (create_thread_object): Return
6301 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6302 * python/py-inferior.c (struct threadlist_entry): Add
6304 <thread_obj>: Now a gdbpy_ref.
6305 (thread_to_thread_object): Update.
6306 (add_thread_object): Use new.
6307 (delete_thread_object): Use delete.
6308 (infpy_threads): Update.
6309 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6312 2019-07-10 Tom Tromey <tromey@adacore.com>
6314 * valops.c (value_cast): Specialize error message for Ada.
6316 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6318 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6320 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6322 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6323 bpstat_should_step): Return bool, adjust comments.
6324 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6325 bpstat_should_step): Likewise.
6327 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6329 * features/Makefile: Use feature target descriptions for Arm.
6330 * features/arm/arm-core.c: Generate new file.
6331 * features/arm/arm-fpa.c: Likewise.
6332 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6333 * features/arm/arm-m-profile.c: Likewise.
6334 * features/arm/arm-vfpv2.c: Likewise.
6335 * features/arm/arm-vfpv3.c: Likewise.
6336 * features/arm/xscale-iwmmxt.c: Likewise.
6337 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6339 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6341 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6344 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6346 * features/aarch64-pauth.c: Regenerate.
6348 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6350 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6352 (bpstat_what): Use false instead of 0.
6354 2019-07-09 Pedro Alves <palves@redhat.com>
6356 * break-catch-throw.c (is_exception_catchpoint): New.
6357 * breakpoint.c (print_one_breakpoint_location): New parameter
6358 'raw_loc'. Handle it. Use
6359 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6360 looking at the breakpoint's type.
6361 (print_one_breakpoint): If handling "maint info breakpoints", also
6362 print locations of exception catchpoints.
6363 * breakpoint.h (is_exception_catchpoint): Declare.
6365 2019-07-09 Pedro Alves <palves@redhat.com>
6367 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6369 (allocate_location_exception_catchpoint): New.
6370 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6371 (initialize_throw_catchpoint_ops): Install
6372 allocate_location_exception_catchpoint as allocate_location
6374 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6375 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6377 (breakpoint_address_is_meaningful): Delete.
6378 (bl_address_is_meaningful): New.
6379 (breakpoint_locations_match): Adjust comment.
6380 (bp_location_from_bp_type): New, factored out of...
6381 (bp_location::bp_location(breakpoint *)): ... this.
6382 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6384 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6385 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6386 breakpoint_address_is_meaningful.
6387 (bp_locations_compare): Adjust comment.
6388 (update_global_location_list): Use bl_address_is_meaningful
6389 instead of breakpoint_address_is_meaningful.
6390 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6392 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6393 * python/py-breakpoint.c (bppy_get_location): No longer check
6394 whether location is null.
6396 2019-07-09 Pedro Alves <palves@redhat.com>
6399 * breakpoint.c (print_one_breakpoint_location): Remove
6400 single-location assert.
6402 2019-07-09 Tom Tromey <tom@tromey.com>
6404 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6405 * configure: Rebuild.
6406 * configure.ac: Change common to gdbsupport.
6407 * gdbsupport: Rename from common.
6408 * acinclude.m4: Change common to gdbsupport.
6409 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6410 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6412 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6413 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6414 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6415 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6416 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6417 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6418 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6419 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6420 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6421 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6422 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6423 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6424 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6425 coff-pe-read.c, command.h, compile/compile-c-support.c,
6426 compile/compile-c.h, compile/compile-cplus-symbols.c,
6427 compile/compile-cplus-types.c, compile/compile-cplus.h,
6428 compile/compile-loc2c.c, compile/compile.c, completer.c,
6429 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6430 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6431 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6432 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6433 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6434 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6435 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6436 features/aarch64-core.c, features/aarch64-fpu.c,
6437 features/aarch64-pauth.c, features/aarch64-sve.c,
6438 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6439 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6440 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6441 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6442 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6443 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6444 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6445 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6446 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6447 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6448 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6449 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6450 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6451 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6452 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6453 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6454 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6455 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6456 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6457 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6458 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6459 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6460 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6461 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6462 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6463 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6464 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6465 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6466 minsyms.c, mips-linux-tdep.c, namespace.h,
6467 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6468 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6469 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6470 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6471 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6472 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6473 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6474 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6475 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6476 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6477 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6478 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6479 procfs.c, producer.c, progspace.h, psymtab.h,
6480 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6481 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6482 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6483 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6484 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6485 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6486 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6487 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6488 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6489 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6490 target-memory.c, target.c, target.h, target/waitstatus.c,
6491 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6492 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6493 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6494 unittests/array-view-selftests.c,
6495 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6496 unittests/common-utils-selftests.c,
6497 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6498 unittests/format_pieces-selftests.c,
6499 unittests/function-view-selftests.c,
6500 unittests/lookup_name_info-selftests.c,
6501 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6502 unittests/mkdir-recursive-selftests.c,
6503 unittests/observable-selftests.c,
6504 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6505 unittests/parse-connection-spec-selftests.c,
6506 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6507 unittests/scoped_fd-selftests.c,
6508 unittests/scoped_mmap-selftests.c,
6509 unittests/scoped_restore-selftests.c,
6510 unittests/string_view-selftests.c, unittests/style-selftests.c,
6511 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6512 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6513 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6514 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6515 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6516 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6518 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6520 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6522 (decode_digits_ordinary): Set explicit_line field in sal.
6523 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6524 symtab_and_line that was set on an explicit line number in
6525 assembler code. Do always update the recorded symtab and line if
6526 we do skip the prologue.
6528 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6530 * breakpoint.c (set_breakpoint_location_function): Remove
6531 explicit_loc parameter.
6532 (momentary_breakpoint_from_master): Update call to
6533 set_breakpoint_location_function.
6534 (add_location_to_breakpoint): Likewise.
6536 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6538 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6539 required features based on default bfd type when no specific bfd
6542 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6544 * NEWS: Mention that GDB printf and eval commands can now print
6545 C-style and Ada-style convenience var strings without
6546 calling the inferior.
6547 * printcmd.c (printf_c_string): Locally print GDB internal var
6548 instead of transiting via the inferior.
6549 (printf_wide_c_string): Likewise.
6551 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6553 PR breakpoints/25011
6554 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6556 2019-07-04 Tom Tromey <tom@tromey.com>
6559 * tui/tui-winsource.c (tui_clear_source_content): Update.
6560 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6561 (tui_update_breakpoint_info): Update.
6562 (tui_set_exec_info_content): Update.
6563 * tui/tui-source.c (tui_set_source_content_nil): Update.
6564 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6566 * tui/tui-data.h (enum tui_bp_flag): New.
6567 (tui_bp_flags): New enum flags type.
6568 (struct tui_source_element) <break_mode>: Change type. Rename
6570 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6571 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6573 * tui/tui-winsource.h: Fix comment.
6575 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6577 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6578 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6579 (store_fpregs_to_thread)
6580 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6581 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6582 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6583 (IWMMXT_REGS_SIZE): Add define.
6584 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6585 (fetch_vfp_regs, store_vfp_regs)
6586 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6587 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6589 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6591 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6593 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6594 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6595 (ARM_INT_REGISTER_SIZE): ...to this.
6596 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6597 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6598 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6599 (arm_linux_collect_gregset, supply_nwfpe_register)
6600 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6602 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6603 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6604 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6605 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6606 (arm_return_in_memory, arm_store_return_value)
6607 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6608 (arm_record_ld_st_multiple): Likewise.
6609 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6610 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6612 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6614 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6615 AARCH64_DISPLACED_MODIFIED_INSNS.
6616 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6617 (aarch64_displaced_step_copy_insn): Likewise.
6618 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6619 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6620 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6621 ARM_DISPLACED_MODIFIED_INSNS.
6622 * arm-tdep.c (arm_gdbarch_init): Likewise.
6623 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6624 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6625 (struct arm_displaced_step_closure): Use
6626 ARM_DISPLACED_MODIFIED_INSNS.
6628 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6630 * features/Makefile: Remove unused xml files.
6631 * features/aarch64.xml: Remove.
6632 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6633 * features/i386/amd64-avx-avx512.xml: Remove.
6634 * features/i386/amd64-avx-linux.xml: Remove.
6635 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6636 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6637 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6638 * features/i386/amd64-avx-mpx.xml: Remove.
6639 * features/i386/amd64-avx.xml: Remove.
6640 * features/i386/amd64-linux.xml: Remove.
6641 * features/i386/amd64-mpx-linux.xml: Remove.
6642 * features/i386/amd64-mpx.xml: Remove.
6643 * features/i386/amd64.xml: Remove.
6644 * features/i386/i386-avx-avx512-linux.xml: Remove.
6645 * features/i386/i386-avx-avx512.xml: Remove.
6646 * features/i386/i386-avx-linux.xml: Remove.
6647 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6648 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6649 * features/i386/i386-avx-mpx-linux.xml: Remove.
6650 * features/i386/i386-avx-mpx.xml: Remove.
6651 * features/i386/i386-avx.xml: Remove.
6652 * features/i386/i386-linux.xml: Remove.
6653 * features/i386/i386-mmx-linux.xml: Remove.
6654 * features/i386/i386-mmx.xml: Remove.
6655 * features/i386/i386-mpx-linux.xml: Remove.
6656 * features/i386/i386-mpx.xml: Remove.
6657 * features/i386/i386.xml: Remove.
6658 * features/i386/x32-avx-avx512-linux.xml: Remove.
6659 * features/i386/x32-avx-linux.xml: Remove.
6660 * features/i386/x32-linux.xml: Remove.
6662 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6664 * regformats/aarch64.dat: Remove.
6665 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6666 * regformats/i386/amd64-avx-linux.dat: Remove.
6667 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6668 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6669 * regformats/i386/amd64-linux.dat: Remove.
6670 * regformats/i386/amd64-mpx-linux.dat: Remove.
6671 * regformats/i386/amd64.dat: Remove.
6672 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6673 * regformats/i386/i386-avx-linux.dat: Remove.
6674 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6675 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6676 * regformats/i386/i386-linux.dat: Remove.
6677 * regformats/i386/i386-mmx-linux.dat: Remove.
6678 * regformats/i386/i386-mpx-linux.dat: Remove.
6679 * regformats/i386/i386.dat: Remove.
6680 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6681 * regformats/i386/x32-avx-linux.dat: Remove.
6682 * regformats/i386/x32-linux.dat: Remove.
6684 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6686 * aarch64-tdep.c: Remove xml self tests.
6687 * amd64-linux-tdep.c: Likewise.
6688 * amd64-tdep.c: Likewise.
6689 * i386-linux-tdep.c: Likewise.
6690 * i386-tdep.c: Likewise.
6692 2019-07-03 Pedro Alves <palves@redhat.com>
6695 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6696 (pipe_cmd_option_defs): New.
6697 (make_pipe_cmd_options_def_group): New.
6698 (pipe_command): Use gdb::option::process_options.
6699 (pipe_command_completer): New function.
6700 (_initialize_cli_cmds): Install completer for "pipe" command.
6702 2019-07-03 Pedro Alves <palves@redhat.com>
6704 * cli/cli-option.c (union option_value) <string>: New field.
6705 (struct option_def_and_value): Add ctor, move ctor, dtor and
6706 use DISABLE_COPY_AND_ASSIGN.
6707 (option_def_and_value::clear_value): New.
6708 (parse_option, save_option_value_in_ctx, get_val_type_str)
6709 (add_setshow_cmds_for_options): Handle var_string.
6710 * cli-option.h (union option_def::var_address) <string>: New
6712 (struct string_option_def): New.
6713 * maint-test-options.c (struct test_options_opts): Add default
6714 ctor and use DISABLE_COPY_AND_ASSIGN.
6715 <string_opt>: New field.
6716 (test_options_opts::~test_options_opts): New.
6717 (test_options_opts::dump): Also dump "-string".
6718 (test_options_option_defs): Install "string.
6720 2019-07-03 Pedro Alves <palves@redhat.com>
6722 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6723 option_value with a null enumeration.
6724 (complete_options): Save the option values in the context.
6725 (save_option_value_in_ctx): New, factored out from ...
6726 (process_options): ... here.
6727 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6729 * maint-test-options.c (test_options_opts::dump): New, factored
6731 (maintenance_test_options_command_mode): ... here.
6732 (maintenance_test_options_command_completion_result): Delete.
6733 (maintenance_test_options_command_completion_text): Update
6735 (maintenance_show_test_options_completion_result): Change
6736 prototype. Just print
6737 maintenance_test_options_command_completion_text.
6738 (save_completion_result): New.
6739 (maintenance_test_options_completer_mode): Pass options context to
6740 complete_options, and then save a dump.
6741 (_initialize_maint_test_options): Use add_cmd to install "maint
6742 show test-options-completion-result".
6744 2019-07-03 Pedro Alves <palves@redhat.com>
6746 * NEWS (New commands): Mention "with" and "maint with".
6747 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6748 (with_command, with_command_completer): New.
6749 (pipe_command): Adjust to new repeat_previous
6751 (_initialize_cli_cmds): Install the "with" command and its "w"
6753 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6755 * cli/cli-setshow.c (parse_cli_var_uinteger)
6756 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6757 argument strings for all var_types.
6758 (get_setshow_command_value_string): New, factored out from ...
6759 (do_show_command): ... this.
6760 * cli/cli-setshow.h: Include <string>.
6761 (get_setshow_command_value_string): Declare.
6762 * command.h (repeat_previous): Now returns const char *. Adjust
6764 * maint.c: Include "cli/cli-cmds.h".
6765 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6766 (_initialize_maint_cmds): Register the "maintenance with" command.
6767 * top.c (repeat_previous): Move bits from pipe_command here:
6768 Return the saved command line, if any; error out if there's no
6769 command to relaunch.
6771 2019-07-03 Pedro Alves <palves@redhat.com>
6773 * NEWS (New commands): Mention "maint set/show test-settings"
6774 instead of "maint test-settings".
6775 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6776 (maintenance_test_settings_set_list): Rename to ...
6777 (maintenance_set_test_settings_list): ... this.
6778 (maintenance_test_settings_show_list): Rename to ...
6779 (maintenance_show_test_settings_list): ... this.
6780 (maintenance_test_settings_cmd): Delete.
6781 (maintenance_test_settings_set_cmd): ...
6782 (maintenance_set_test_settings_cmd): ... this.
6783 (maintenance_test_settings_show_cmd): ...
6784 (maintenance_show_test_settings_cmd): ... this.
6785 (maintenance_test_settings_show_value_cmd):
6786 (maintenance_show_test_settings_value_cmd): ... this.
6787 (_initialize_maint_test_settings): No longer install the "maint
6788 test-settings" prefix command. Rename "maint test-settings set"
6789 to "maint set test-settings", and "maint test-settings show" to
6790 "maint show test-settings". Adjust all subcommands.
6792 2019-07-03 Pedro Alves <palves@redhat.com>
6794 * maint-test-settings.c: Fix file's intro comment. Replace all
6795 references to "test-options" with references to "test-settings",
6798 2019-07-03 Pedro Alves <palves@redhat.com>
6800 * maint-test-settings.c (maintenance_test_settings_xxx)
6801 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6803 (maintenance_test_settings_enums): Use them.
6804 (maintenance_test_settings_enum): Default to
6805 maintenance_test_settings_xxx.
6806 (_initialize_maint_test_settings): Initialize
6807 MAINTENANCE_TEST_SETTINGS_FILENAME.
6809 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6811 * breakpoint.h (remove_breakpoints_inf): Change return type to
6812 void, move function documentation here.
6813 * breakpoint.c (remove_breakpoints_inf): Change return type to
6814 void, move function documentation to header.
6816 2019-07-02 Pedro Alves <palves@redhat.com>
6818 * NEWS (Completion improvements): Mention "info threads".
6819 * thread.c (struct info_threads_opts, info_threads_option_defs)
6820 (make_info_threads_options_def_group): New.
6821 (info_threads_command): Use gdb::option::process_options.
6822 (info_threads_command_completer): New.
6823 (_initialize_thread): Use gdb::option::build_help to build the
6824 help text for "info threads".
6826 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6828 * defs.h (generic_load): Move from here...
6829 * symfile.h (generic_load): ... to here. Rename name parameter
6831 * symfile.c (generic_load): Add comment.
6833 2019-07-01 Tom Tromey <tromey@adacore.com>
6836 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6837 declaration of without_params. Fix formatting.
6839 2019-07-01 Tom Tromey <tromey@adacore.com>
6841 * ada-exp.y (find_primitive_type): Update.
6842 * ada-lang.h (ada_lookup_symbol): Update.
6843 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6845 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6847 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6849 PR breakpoints/24541
6850 * gdbarch.c: Regenerate.
6851 * gdbarch.h: Regenerate.
6852 * gdbarch.sh: Add 'stap_adjust_register'.
6853 * i386-tdep.c: Include '<unordered_set>'.
6854 (i386_stap_adjust_register): New function.
6855 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6856 * stap-probe.c (stap_parse_register_operand): Call
6857 'gdbarch_stap_adjust_register'.
6859 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6862 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6863 * python/python.c (do_start_initialization): Use 'xmalloc'
6864 instead of 'PyMem_Malloc'.
6866 2019-06-28 Tom Tromey <tromey@adacore.com>
6868 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6871 2019-06-27 Tom Tromey <tromey@adacore.com>
6873 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6875 (arm_find_mapping_symbol, arm_record_special_symbol)
6876 (_initialize_arm_tdep): Update.
6877 (arm_objfile_data_free): Remove.
6879 2019-06-27 Tom Tromey <tromey@adacore.com>
6881 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6882 to cp_print_static_field.
6884 2019-06-26 Tom Tromey <tromey@adacore.com>
6886 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6887 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6890 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6892 * features/aarch64-core.c (create_feature_aarch64_core):
6894 * features/aarch64-core.xml: Add cpsr flags.
6896 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6898 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6899 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6901 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6903 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6905 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6907 (arm_record_special_symbol): Don't insert new symbol in sorted
6908 position, push it at the end.
6910 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6912 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6913 (arm_mapping_symbol_s): Remove.
6914 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6915 (arm_mapping_symbol_vec): New typedef.
6916 (struct arm_per_objfile): Add constructor.
6917 <section_maps>: Change type to
6918 std::unique_ptr<arm_mapping_symbol_vec[]>.
6919 (arm_compare_mapping_symbols): Remove.
6920 (arm_find_mapping_symbol): Adjust to section_maps type change.
6921 (arm_objfile_data_free): Call delete on arm_per_objfile.
6922 (arm_record_special_symbol): Adjust to section_maps type change.
6923 Allocate arm_per_objfile with new.
6925 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6927 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6928 with the command prefix.
6930 2019-06-25 Tom Tromey <tom@tromey.com>
6932 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6933 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6935 2019-06-25 Tom Tromey <tom@tromey.com>
6937 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6939 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6942 2019-06-25 Tom Tromey <tom@tromey.com>
6944 * tui/tui-winsource.c
6945 (tui_source_window_base::set_is_exec_point_at): Add check against
6948 2019-06-25 Tom Tromey <tom@tromey.com>
6950 * tui/tui-source.c (tui_set_source_content): Don't check before
6952 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6954 2019-06-25 Tom Tromey <tom@tromey.com>
6956 * tui/tui-winsource.h (tui_update_source_window_as_is)
6957 (tui_alloc_source_buffer, tui_line_is_displayed)
6958 (tui_addr_is_displayed): Change type of win_info.
6959 * tui/tui-winsource.c (tui_update_source_window_as_is)
6960 (tui_clear_source_content, tui_show_source_line)
6961 (tui_show_source_content, tui_source_window_base::refill)
6962 (tui_source_window_base::set_is_exec_point_at)
6963 (tui_source_window_base::set_is_exec_point_at)
6964 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6965 (tui_alloc_source_buffer, tui_line_is_displayed)
6966 (tui_addr_is_displayed): Change type of win_info. Update.
6967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6968 (tui_source_window_base::do_make_visible_with_new_height):
6970 * tui/tui-source.c (tui_set_source_content)
6971 (tui_set_source_content_nil)
6972 (tui_source_window::do_scroll_vertical): Update.
6973 * tui/tui-layout.c (show_layout): Update.
6974 * tui/tui-disasm.c (tui_set_disassem_content)
6975 (tui_disasm_window::do_scroll_vertical): Update.
6976 * tui/tui-data.h (tui_win_content): Remove.
6977 (struct tui_gen_win_info) <content, content_size>: Remove.
6978 (struct tui_source_element): Add initializers and destructor.
6979 (union tui_which_element, struct tui_win_element): Remove.
6980 (struct tui_source_window_base) <content>: New field.
6981 (struct tui_data_window): Remove destructor.
6982 (tui_alloc_content, tui_free_win_content)
6983 (tui_free_all_source_wins_content): Don't declare.
6984 * tui/tui-data.c (tui_initialize_static_data): Update.
6985 (init_content_element, tui_alloc_content): Remove.
6986 (~tui_gen_win_info): Update.
6987 (~tui_data_window, tui_free_all_source_wins_content)
6988 (tui_free_win_content, free_content, free_content_elements):
6991 2019-06-25 Tom Tromey <tom@tromey.com>
6993 * tui/tui-winsource.h (tui_clear_source_content)
6994 (tui_erase_source_content, tui_show_source_content): Change type
6996 * tui/tui-winsource.c (tui_clear_source_content)
6997 (tui_erase_source_content, tui_show_source_content): Change type
6999 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7000 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7002 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7004 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7006 2019-06-25 Tom Tromey <tom@tromey.com>
7008 * tui/tui-winsource.c (tui_clear_source_content)
7009 (tui_source_window_base::set_is_exec_point_at): Update.
7010 * tui/tui-source.c (tui_set_source_content_nil): Update.
7011 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7013 * tui/tui-data.c (init_content_element): Update.
7015 2019-06-25 Tom Tromey <tom@tromey.com>
7017 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7018 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7019 * tui/tui-layout.c (init_and_make_win): Update.
7020 * tui/tui.h (enum tui_win_type): Update.
7021 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7022 tui_win_is_auxillary.
7023 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7024 tui_win_is_auxillary.
7026 2019-06-25 Tom Tromey <tom@tromey.com>
7028 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7029 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7030 (tui_delete_data_content_windows, tui_display_all_data)
7031 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7033 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7034 * tui/tui-regs.c (tui_last_regs_line_no)
7035 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7036 (tui_show_registers): Update.
7037 (tui_show_register_group): Return void. Update.
7038 (tui_display_registers_from, tui_display_reg_element_at_line)
7039 (tui_display_registers_from_line, tui_check_register_values):
7041 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7043 (struct tui_data_window) <regs_content>: Now a std::vector.
7044 <regs_content_count>: Remove.
7045 (tui_add_content_elements, tui_free_data_content): Don't declare.
7046 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7047 (init_content_element): Remove DATA_WIN case. Add assert.
7048 (tui_add_content_elements): Remove.
7049 (tui_data_window): Update.
7050 (tui_free_data_content): Remove.
7051 (free_content_elements): Remove DATA_WIN case.
7053 2019-06-25 Tom Tromey <tom@tromey.com>
7055 * tui/tui-data.c (tui_data_item_window): Update.
7056 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7057 * tui/tui-windata.c (tui_display_all_data)
7058 (tui_display_data_from_line): Update.
7059 (tui_check_data_values): Remove.
7060 * tui/tui-regs.c (tui_show_register_group)
7061 (tui_display_reg_element_at_line): Update.
7062 * tui/tui-hooks.c (tui_register_changed)
7063 (tui_refresh_frame_and_register_information): Call
7064 tui_check_register_values.
7065 * tui/tui-data.h (struct tui_data_window) <data_content,
7066 data_content_count, data_type>: Remove.
7067 (enum tui_data_type): Remove.
7069 * tui/tui-data.c (tui_data_window::clear_detail)
7070 (~tui_data_window): Update.
7072 2019-06-25 Tom Tromey <tom@tromey.com>
7074 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7076 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7077 Rename from tui_first_data_item_displayed. Update.
7078 (tui_data_window::refresh_all)
7079 (tui_data_window::do_scroll_vertical): Update.
7080 * tui/tui-data.h (struct tui_data_window)
7081 <first_data_item_displayed>: Declare new method.
7083 2019-06-25 Tom Tromey <tom@tromey.com>
7085 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7086 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7088 (tui_initialize_static_data): ...here.
7090 2019-06-25 Tom Tromey <tom@tromey.com>
7092 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7093 (tui_display_registers_from, tui_check_register_values): Update.
7094 (tui_display_register): Remove win_info parameter; update.
7095 (tui_get_register): Change type of parameters.
7096 * tui/tui-data.h (struct tui_data_element): Remove.
7097 (union tui_which_element) <data>: Remove.
7098 <data_window>: Change type.
7099 (struct tui_data_item_window): New.
7100 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7102 (~tui_data_item_window): New destructor.
7103 (free_content_elements): Remove DATA_ITEM_WIN case.
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7107 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7110 2019-06-25 Tom Tromey <tom@tromey.com>
7112 * tui/tui-data.h (struct tui_command_element): Remove.
7113 (union tui_which_element) <command>: Remove.
7114 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7116 (free_content_elements): Remove CMD_WIN case.
7118 2019-06-25 Tom Tromey <tom@tromey.com>
7120 * tui/tui-layout.c (tui_set_layout): Update.
7121 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7122 * tui/tui-data.c (layout_def): Update.
7124 2019-06-25 Tom Tromey <tom@tromey.com>
7126 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7127 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7128 (tui_source_window_base::set_new_height): Update.
7129 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7131 (tui_set_locator_fullname, tui_set_locator_info)
7132 (tui_show_frame_info): Update.
7133 * tui/tui-source.c (tui_set_source_content)
7134 (tui_source_is_displayed): Update.
7135 * tui/tui-layout.c (show_source_disasm_command, show_data)
7136 (show_source_or_disasm_and_command): Update.
7137 * tui/tui-disasm.c (tui_set_disassem_content)
7138 (tui_get_begin_asm_address): Update.
7139 * tui/tui-data.h (struct tui_locator_element): Remove.
7140 (union tui_which_element) <locator>: Remove.
7141 (struct tui_locator_window): New.
7142 (tui_locator_win_info_ptr): Change return type.
7143 * tui/tui-data.c (_locator): Change type.
7144 (tui_locator_win_info_ptr): Change return type.
7145 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7146 (tui_alloc_content): Add assert.
7148 2019-06-25 Tom Tromey <tom@tromey.com>
7150 * tui/tui-winsource.c
7151 (tui_exec_info_window::maybe_allocate_content): New method.
7152 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7153 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7154 (make_source_or_disasm_window): Add cast.
7155 * tui/tui-data.h (union tui_which_element) <simple_string>:
7157 (struct tui_source_info): New.
7158 (struct tui_source_window_base) <execution_info>: Change type.
7159 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7160 case, and add assert.
7161 (tui_alloc_content): Add assert.
7163 2019-06-25 Tom Tromey <tom@tromey.com>
7165 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7166 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7167 * tui/tui-data.c (tui_alloc_win_info): Remove.
7169 2019-06-25 Tom Tromey <tom@tromey.com>
7171 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7172 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7175 2019-06-25 Tom Tromey <tom@tromey.com>
7177 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7178 make_visible_with_new_height method.
7179 (tui_win_info::make_visible_with_new_height): New method.
7180 (tui_source_window_base::do_make_visible_with_new_height)
7181 (tui_data_window::do_make_visible_with_new_height)
7182 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7183 (make_visible_with_new_height): Remove.
7184 (tui_resize_all, tui_adjust_win_heights): Use
7185 make_visible_with_new_height method.
7186 * tui/tui-data.h (struct tui_win_info)
7187 <do_make_visible_with_new_height, make_visible_with_new_height>:
7189 (struct tui_source_window_base, struct tui_data_window)
7190 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7195 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7197 (update_tab_width): Call update_tab_width method.
7198 * tui/tui-data.h (struct tui_win_info)
7199 (struct tui_source_window_base) <update_tab_width>: New methods.
7201 2019-06-25 Tom Tromey <tom@tromey.com>
7203 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7205 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7207 (tui_gen_win_info::make_visible): Update.
7208 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7210 * tui/tui-data.h (enum tui_box): New enum.
7211 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7213 2019-06-25 Tom Tromey <tom@tromey.com>
7215 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7216 init_and_make_win for EXEC_INFO_WIN.
7217 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7219 (struct tui_win_info) <~tui_win_info>: Inline.
7220 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7222 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7223 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7225 (tui_initialize_static_data): Update.
7226 (~tui_gen_win_info): Handle more cleanup here.
7227 (~tui_source_window_base): Delete "execution_info".
7228 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7230 2019-06-25 Tom Tromey <tom@tromey.com>
7232 * tui/tui-layout.c (make_command_window): Don't set
7234 (show_source_disasm_command): Call the reset method.
7235 (show_data): Don't set can_highlight. Call the reset method.
7236 (tui_gen_win_info::reset): Rename from init_gen_win_info
7237 (init_and_make_win): Simplify. Return tui_gen_win_info.
7238 (show_source_or_disasm_and_command): Call the reset method.
7239 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7240 (struct tui_cmd_window): Set can_highlight.
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7244 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7246 (tui_make_visible, tui_make_invisible): Rewrite.
7247 (tui_win_info::make_visible): Remove.
7248 (tui_source_window_base::make_visible): Update.
7249 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7250 method. Moved from...
7251 (struct tui_win_info) <make_visible>: ...here.
7253 2019-06-25 Tom Tromey <tom@tromey.com>
7255 * tui/tui-winsource.c
7256 (tui_source_window_base::do_scroll_horizontal): Remove direction
7258 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7259 direction parameter.
7260 * tui/tui-win.c (tui_win_info::forward_scroll)
7261 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7262 (tui_win_info::right_scroll): Update.
7263 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7264 direction parameter.
7265 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7266 direction parameter.
7267 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7268 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7269 Remove direction parameter.
7270 (struct tui_source_window_base, struct tui_source_window)
7271 (struct tui_disasm_window, struct tui_data_window)
7272 (struct tui_cmd_window): Update.
7274 2019-06-25 Tom Tromey <tom@tromey.com>
7276 * tui/tui-winsource.h (tui_set_exec_info_content)
7277 (tui_show_exec_info_content, tui_erase_exec_info_content)
7278 (tui_clear_exec_info_content, tui_update_exec_info): Change
7279 argument to tui_source_window_base.
7280 * tui/tui-winsource.c (tui_set_exec_info_content)
7281 (tui_show_exec_info_content, tui_erase_exec_info_content)
7282 (tui_clear_exec_info_content, tui_update_exec_info): Change
7283 argument to tui_source_window_base.
7285 2019-06-25 Tom Tromey <tom@tromey.com>
7287 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7288 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7290 2019-06-25 Tom Tromey <tom@tromey.com>
7292 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7295 2019-06-25 Tom Tromey <tom@tromey.com>
7297 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7299 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7301 * tui/tui-source.c (tui_set_source_content): Update.
7302 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7304 2019-06-25 Tom Tromey <tom@tromey.com>
7306 * tui/tui-win.c (window_name_completer, tui_set_focus)
7307 (tui_all_windows_info): Use name method.
7308 * tui/tui-data.h (struct tui_gen_win_info)
7309 (struct tui_source_window, struct tui_disasm_window)
7310 (struct tui_data_window, struct tui_cmd_window) <name>: New
7312 (tui_win_name): Don't declare.
7313 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7314 (tui_win_name): Remove.
7316 2019-06-25 Tom Tromey <tom@tromey.com>
7318 * tui/tui-winsource.h (tui_update_source_window)
7319 (tui_update_source_window_as_is): Change parameter type.
7320 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7321 to be a tui_source_window_base.
7322 (tui_update_source_window_as_is): Likewise.
7323 * tui/tui-win.c (make_visible_with_new_height): Update.
7325 2019-06-25 Tom Tromey <tom@tromey.com>
7327 * tui/tui-winsource.c (tui_erase_source_content)
7328 (tui_show_source_content, tui_show_exec_info_content)
7329 (tui_erase_exec_info_content): Use refresh_window method.
7330 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7331 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7332 from tui_refresh_win.
7333 (tui_data_window::refresh_window): New method.
7334 (tui_win_info::refresh, tui_source_window_base::refresh)
7335 (tui_refresh_all): Use refresh_window method.
7336 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7338 * tui/tui-regs.c (tui_display_register): Call refresh_window
7340 * tui/tui-layout.c (show_source_disasm_command)
7341 (show_source_or_disasm_and_command): Call refresh_window method.
7342 * tui/tui-data.h (struct tui_gen_win_info)
7343 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7346 2019-06-25 Tom Tromey <tom@tromey.com>
7348 * tui/tui.c (tui_rl_other_window, tui_enable)
7349 (tui_is_window_visible, tui_get_command_dimension): Update.
7350 * tui/tui-winsource.c (tui_update_source_window_as_is)
7351 (tui_clear_source_content, tui_erase_source_content)
7352 (tui_show_source_line, tui_source_window_base::refill)
7353 (tui_source_window_base::do_scroll_horizontal)
7354 (tui_source_window_base::set_is_exec_point_at)
7355 (tui_update_breakpoint_info, tui_set_exec_info_content)
7356 (tui_alloc_source_buffer, tui_line_is_displayed)
7357 (tui_addr_is_displayed): Update.
7358 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7359 (tui_check_and_display_highlight_if_needed)
7360 (tui_win_info::make_visible, tui_win_info::refresh)
7361 (tui_refresh_all): Update.
7362 * tui/tui-windata.c (tui_first_data_item_displayed)
7363 (tui_delete_data_content_windows, tui_erase_data_content)
7364 (tui_display_all_data, tui_data_window::refresh_all)
7365 (tui_check_data_values): Update.
7366 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7367 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7368 (tui_win_info::backward_scroll, tui_refresh_all_win)
7369 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7370 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7371 (tui_source_window_base::set_new_height)
7372 (tui_data_window::set_new_height)
7373 (make_invisible_and_set_new_height)
7374 (make_visible_with_new_height, new_height_ok)
7375 (parse_scrolling_args): Update.
7376 * tui/tui-stack.c (tui_show_frame_info): Update.
7377 * tui/tui-source.c (tui_set_source_content)
7378 (tui_set_source_content_nil, tui_source_is_displayed)
7379 (tui_source_window::do_scroll_vertical): Update.
7380 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7381 (tui_display_registers_from, tui_display_reg_element_at_line)
7382 (tui_check_register_values, tui_reg_command): Update.
7383 * tui/tui-layout.c (tui_default_win_height)
7384 (show_source_disasm_command, show_data, init_and_make_win)
7385 (show_source_or_disasm_and_command): Update.
7386 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7387 (tui_redisplay_readline, tui_mld_flush)
7388 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7390 * tui/tui-disasm.c (tui_set_disassem_content)
7391 (tui_disasm_window::do_scroll_vertical): Update.
7392 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7394 (struct tui_win_info): Derive from tui_gen_win_info.
7395 <~tui_win_info>: Mark as override.
7396 <generic>: Remove member.
7397 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7398 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7399 (~tui_data_window, ~tui_win_info)
7400 (tui_free_all_source_wins_content): Update.
7401 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7403 2019-06-25 Tom Tromey <tom@tromey.com>
7405 * tui/tui-layout.c (init_and_make_win): Use new.
7406 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7407 destructor, initializers.
7408 (tui_alloc_generic_win_info): Don't declare.
7409 * tui/tui-data.c (_locator): Add argument to constructor.
7410 (source_win, disasm_win): New globals.
7411 (exec_info): Remove.
7412 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7414 (tui_alloc_generic_win_info): Remove.
7415 (init_content_element): Use new.
7416 (tui_win_info::tui_win_info): Update.
7417 (free_content_elements) <case DATA_WIN>: Use delete.
7419 2019-06-25 Tom Tromey <tom@tromey.com>
7421 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7422 * tui/tui-windata.c (tui_first_data_item_displayed)
7423 (tui_delete_data_content_windows): Update.
7424 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7425 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7426 (tui_display_registers_from, tui_check_register_values): Update.
7427 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7429 * tui/tui-data.c (init_content_element): Update. Allocate the new
7431 (tui_free_data_content): Update.
7432 (free_content_elements) <case DATA_WIN>: Free the window.
7434 2019-06-25 Tom Tromey <tom@tromey.com>
7436 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7438 * tui/tui-layout.c (make_command_window)
7439 (show_source_disasm_command, show_data, init_and_make_win)
7440 (show_source_or_disasm_and_command): Update.
7441 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7443 <can_highight, is_highlighted>: Now bool.
7444 (tui_set_win_highlight): Don't declare.
7445 * tui/tui-data.c (tui_set_win_highlight): Remove.
7447 2019-06-25 Tom Tromey <tom@tromey.com>
7449 * tui/tui-wingeneral.c (make_visible): Remove check of window
7452 2019-06-25 Tom Tromey <tom@tromey.com>
7454 * tui/tui-win.c (tui_win_info::max_height)
7455 (tui_cmd_window::max_height): New methods.
7456 (new_height_ok): Call max_height.
7457 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7458 <max_height>: New method.
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7462 * tui/tui-win.c (tui_source_window_base::set_new_height)
7463 (tui_data_window::set_new_height): New methods.
7464 (make_invisible_and_set_new_height): Call set_new_height method.
7465 * tui/tui-data.h (struct tui_win_info)
7466 (struct tui_source_window_base, struct tui_data_window)
7467 <set_new_height>: New method.
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7471 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7472 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7473 tui_refresh_data_win.
7474 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7476 (tui_refresh_all_win): Call the refresh_all method.
7477 (tui_set_focus): Likewise.
7478 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7479 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7482 2019-06-25 Tom Tromey <tom@tromey.com>
7484 * tui/tui-winsource.h (tui_refill_source_window)
7485 (tui_set_is_exec_point_at): Don't declare.
7486 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7487 (tui_source_window_base::refill): Rename from
7488 tui_refill_source_window.
7489 (tui_source_window_base::do_scroll_horizontal): Update.
7490 (tui_source_window_base::set_is_exec_point_at): Rename from
7491 tui_set_is_exec_point_at.
7492 (tui_update_all_breakpoint_info): Update.
7493 * tui/tui-stack.c (tui_show_frame_info): Update.
7494 * tui/tui-layout.c (show_data): Add cast.
7495 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7496 * tui/tui-data.h (struct tui_source_window_base) <refill,
7497 set_is_exec_point_at>: New methods.
7498 (tui_source_windows, tui_add_to_source_windows): Update types.
7499 (tui_add_to_source_windows): Remove redundant declaration.
7500 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7501 (tui_source_windows): Change return type.
7502 (tui_clear_source_windows_detail): Update.
7503 (tui_add_to_source_windows): Change type of parameter.
7504 (tui_free_all_source_wins_content): Update.
7506 2019-06-25 Tom Tromey <tom@tromey.com>
7508 * tui/tui-wingeneral.c (tui_win_info::refresh)
7509 (tui_source_window_base::refresh): New methods.
7510 (tui_refresh_all): Call the refresh method.
7511 * tui/tui-data.h (struct tui_win_info)
7512 (struct tui_source_window_base) <refresh>: New method.
7514 2019-06-25 Tom Tromey <tom@tromey.com>
7516 * tui/tui.h (tui_is_window_visible): Return bool.
7517 * tui/tui.c (tui_is_window_visible): Return bool.
7518 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7519 (tui_make_visible, tui_make_invisible)
7520 (tui_win_info::make_visible)
7521 (tui_source_window_base::make_visible, make_all_visible)
7522 (tui_make_all_visible, tui_make_all_invisible): Update.
7523 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7524 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7526 (struct tui_win_info, struct tui_source_window_base)
7527 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7528 * tui/tui-data.c (tui_init_generic_part): Update.
7530 2019-06-25 Tom Tromey <tom@tromey.com>
7532 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7533 (tui_source_window_base::make_visible): New methods.
7534 (make_all_visible): Make method call.
7535 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7536 (struct tui_source_window_base, struct tui_cmd_window): Override
7538 (tui_win_is_source_type): Don't declare.
7539 * tui/tui-data.c (tui_win_is_source_type): Remove.
7541 2019-06-25 Tom Tromey <tom@tromey.com>
7543 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7546 2019-06-25 Tom Tromey <tom@tromey.com>
7548 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7549 Inline constructor. Add initializers for members.
7550 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7551 constructors; now inline in class.
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7555 * tui/tui-regs.c (tui_show_registers): Update.
7556 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7558 * tui/tui-data.c (tui_data_window::clear_detail)
7559 (tui_data_window): Update.
7561 2019-06-25 Tom Tromey <tom@tromey.com>
7563 * tui/tui-windata.c (tui_display_all_data)
7564 (tui_display_data_from_line, tui_display_data_from)
7565 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7567 * tui/tui-regs.c (tui_last_regs_line_no)
7568 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7569 (tui_show_registers, tui_show_register_group)
7570 (tui_display_registers_from, tui_display_reg_element_at_line)
7571 (tui_display_registers_from_line, tui_check_register_values)
7572 (tui_reg_next, tui_reg_prev): Update.
7573 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7574 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7576 (struct tui_win_info) <detail>: Remove. Add new fields from
7578 (TUI_DATA_WIN): Add cast.
7579 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7580 (~tui_data_window): Simplify.
7582 2019-06-25 Tom Tromey <tom@tromey.com>
7584 * tui/tui-layout.c (show_source_disasm_command)
7585 (show_source_or_disasm_and_command): Update.
7586 * tui/tui-io.c (update_cmdwin_start_line)
7587 (tui_redisplay_readline): Update.
7588 * tui/tui-data.h (struct tui_command_info): Remove.
7589 (struct tui_win_info) <detail>: Remove command_info member.
7590 (struct tui_data_window) <start_line>: New member, from
7592 (TUI_CMD_WIN): Add casts.
7594 2019-06-25 Tom Tromey <tom@tromey.com>
7596 * tui/tui-winsource.c (tui_update_source_window)
7597 (tui_refill_source_window)
7598 (tui_source_window_base::do_scroll_horizontal)
7599 (tui_update_breakpoint_info, tui_set_exec_info_content)
7600 (tui_show_exec_info_content, tui_erase_exec_info_content)
7601 (tui_clear_exec_info_content): Update.
7602 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7604 * tui/tui-win.c (make_invisible_and_set_new_height)
7605 (make_visible_with_new_height): Update.
7606 * tui/tui-source.c (tui_set_source_content)
7607 (tui_show_symtab_source): Update.
7608 * tui/tui-layout.c (extract_display_start_addr)
7609 (show_source_disasm_command, show_data)
7610 (make_source_or_disasm_window)
7611 (show_source_or_disasm_and_command): Update.
7612 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7613 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7615 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7616 to tui_source_window_base.
7617 (struct tui_win_info) <detail>: Remove source_info member.
7618 (struct tui_source_window_base) <has_locator>: Inline.
7619 Move contents from tui_source_info; rename has_locator member to
7621 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7622 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7624 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7626 (tui_free_all_source_wins_content): Cast to
7627 tui_source_window_base.
7629 2019-06-25 Tom Tromey <tom@tromey.com>
7631 * tui/tui-win.c (make_invisible_and_set_new_height)
7632 (make_visible_with_new_height): Call has_locator method.
7633 * tui/tui-layout.c (show_source_disasm_command, show_data)
7634 (show_source_or_disasm_and_command): Update for bool change.
7635 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7636 (tui_win_info) <has_locator>: New method.
7637 (struct tui_source_window_base) <has_locator>: New method.
7638 (tui_win_has_locator): Don't declare.
7639 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7640 from tui_win_has_locator.
7641 (tui_source_window_base): Use false, not FALSE.
7643 2019-06-25 Tom Tromey <tom@tromey.com>
7645 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7646 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7647 clear_detail method directly.
7648 (tui_clear_win_detail): Remove.
7650 2019-06-25 Tom Tromey <tom@tromey.com>
7652 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7653 "this", not TUI_DISASM_WIN.
7655 2019-06-25 Tom Tromey <tom@tromey.com>
7657 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7659 * tui/tui-winsource.c
7660 (tui_source_window_base::do_scroll_horizontal): Rename from
7661 tui_horizontal_source_scroll.
7662 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7663 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7664 from tui_vertical_data_scroll.
7665 * tui/tui-win.h (tui_scroll): Don't declare.
7666 * tui/tui-win.c (tui_win_info::forward_scroll)
7667 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7668 (tui_win_info::right_scroll): Rename and update.
7669 (tui_scroll_forward_command, tui_scroll_backward_command)
7670 (tui_scroll_left_command, tui_scroll_right_command): Update.
7671 (tui_scroll): Remove.
7672 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7673 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7674 from tui_vertical_source_scroll.
7675 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7676 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7677 from tui_vertical_disassem_scroll.
7678 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7679 do_scroll_horizontal>: New methods.
7680 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7682 (struct tui_source_window_base): Add do_scroll_horizontal.
7683 (struct tui_source_window, struct tui_disasm_window): Add
7685 (struct tui_data_window, struct tui_cmd_window): Add
7686 do_scroll_horizontal and do_scroll_vertical.
7687 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7689 2019-06-25 Tom Tromey <tom@tromey.com>
7691 * tui/tui-data.h (struct tui_source_window_base): New struct.
7692 (struct tui_source_window): Derive from tui_source_window_base.
7693 (struct tui_disasm_window): New struct.
7694 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7695 from tui_source_window::clear_detail.
7696 (tui_source_window_base): Rename from tui_source_window.
7697 (~tui_source_window_base): Rename from ~tui_source_window.
7698 (tui_alloc_win_info): Create a tui_disasm_window.
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7702 * tui/tui-data.h (struct tui_source_window)
7703 (struct tui_data_window): Declare destructors.
7704 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7706 (tui_win_info): Simplify.
7708 2019-06-25 Tom Tromey <tom@tromey.com>
7710 * tui/tui-winsource.c (tui_display_main)
7711 (tui_update_source_windows_with_addr)
7712 (tui_update_all_breakpoint_info): Update.
7713 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7714 (new_height_ok, parse_scrolling_args): Update.
7715 * tui/tui-stack.c (tui_show_frame_info): Update.
7716 * tui/tui-data.h (struct tui_list): Remove.
7717 (tui_source_windows): Return a reference to a std::vector.
7718 * tui/tui-data.c (source_windows): Now a std::vector.
7719 (tui_source_windows): Change return type.
7720 (tui_clear_source_windows): Rewrite.
7721 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7722 (tui_free_all_source_wins_content): Rewrite.
7724 2019-06-25 Tom Tromey <tom@tromey.com>
7726 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7727 (struct tui_data_window, struct tui_cmd_window): Declare
7728 clear_detail method.
7729 * tui/tui-data.c (tui_source_window::clear_detail)
7730 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7732 (tui_clear_win_detail): Simplify.
7734 2019-06-25 Tom Tromey <tom@tromey.com>
7736 * tui/tui-layout.c (make_source_window, make_disasm_window)
7737 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7738 Return the new window.
7739 (show_source_disasm_command, show_data)
7740 (show_source_or_disasm_and_command): Update.
7742 2019-06-25 Tom Tromey <tom@tromey.com>
7744 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7745 parameter. Return the new window.
7746 (show_source_disasm_command): Update and remove NULL check.
7747 (show_source_or_disasm_and_command): Update.
7749 2019-06-25 Tom Tromey <tom@tromey.com>
7751 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7753 2019-06-25 Tom Tromey <tom@tromey.com>
7755 * tui/tui-data.h (struct tui_win_info): Make constructor
7756 protected. Make destructor virtual. Add initializers.
7757 (tui_source_window, tui_data_window, tui_cmd_window): New
7759 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7760 constructor. Add "type" parameter.
7761 (tui_source_window, tui_data_window, tui_cmd_window): New
7763 (tui_alloc_win_info): Instantiate the appropriate subclass.
7765 2019-06-25 Tom Tromey <tom@tromey.com>
7767 * tui/tui-win.c (tui_resize_all): Use delete.
7768 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7770 (tui_free_window): Don't declare.
7771 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7774 2019-06-25 Tom Tromey <tom@tromey.com>
7776 * tui/tui-data.h (struct tui_win_info): Add constructor.
7777 * tui/tui-data.c (tui_alloc_win_info): Use new.
7778 (tui_free_window): Use delete.
7780 2019-06-22 Tom Tromey <tom@tromey.com>
7782 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7784 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7786 2019-06-22 Tom Tromey <tom@tromey.com>
7788 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7790 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7792 2019-06-22 Tom de Vries <tdevries@suse.de>
7794 * dwarf2read.c (create_addrmap_from_aranges)
7795 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7798 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7800 * dwarf2read.h (dwarf2_section_info_def): Remove.
7801 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7802 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7803 std::vector<dwarf2_section_info>.
7804 (struct dwo_file) <~dwo_file>: Remove.
7805 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7807 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7808 (dwarf2_read_debug_names): Likewise.
7809 (create_debug_types_hash_table): Change parameter type to
7810 array_view, adjust code accordingly.
7811 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7812 (partial_die_info::fixup): Likewise.
7813 (determine_prefix): Likewise.
7814 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7816 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7818 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7820 <~dwo_file>: Remove call to gdb_bfd_unref.
7821 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7822 gdb_bfd_ref_ptr::get.
7824 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7826 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7828 * dwarf2read.c (struct dwo_file): Initialize fields.
7830 (free_dwo_file): Remove, move content to ~dwo_file.
7831 (struct dwo_file_deleter): Remove.
7832 (dwo_file_up>: Remove custom deleter.
7833 (free_dwo_files): Remove.
7834 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7836 (process_skeletonless_type_units): Call unique_ptr::get.
7837 (allocate_dwo_file_hash_table): Add deleter to created hash
7838 table. Change return type to htab_up.
7839 (lookup_dwo_file_slot): Don't memset dwo_file, call
7841 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7842 (create_dwo_unit_in_dwp_v2): Likewise.
7843 (open_and_init_dwo_file): Likewise.
7844 (free_dwo_file_from_slot): Remove.
7846 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7848 * dwarf2read.h (struct dwarf2_section_info) <readin,
7849 is_virtual>: Change type to bool.
7850 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7853 2019-06-19 Tom Tromey <tom@tromey.com>
7855 * tui/tui-data.h (tui_init_content_element): Don't declare.
7857 2019-06-19 Tom Tromey <tom@tromey.com>
7859 * tui/tui-data.h (tui_init_win_info): Don't declare.
7861 2019-06-19 Tom de Vries <tdevries@suse.de>
7863 * dwarf2read.h (abstract_to_concrete): Change type to
7864 std::unordered_map<sect_offset, std::vector<sect_offset>,
7865 gdb::hash_enum<sect_offset>>.
7867 2019-06-19 Tom Tromey <tromey@adacore.com>
7869 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7870 EVAL_AVOID_SIDE_EFFECTS specially.
7872 2019-06-19 Tom Tromey <tromey@adacore.com>
7874 * source-cache.c (highlighter): New global.
7875 (source_cache::get_source_lines): Create a highlighter on demand.
7877 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7879 * defs.h (deprecated_interactive_hook): Delete declaration.
7880 * interps.c (clear_interpreter_hooks): Remove use of
7881 deprecated_interactive_hook.
7882 * top.c (deprecated_interactive_hook): Delete definition.
7883 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7885 2019-06-18 Tom de Vries <tdevries@suse.de>
7888 * dwarf2read.h (abstract_to_concrete): Change type from
7889 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7890 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7891 * dwarf2read.c (read_variable): Update.
7892 (dwarf2_fetch_die_loc_sect_off): Update.
7894 2019-06-17 Tom de Vries <tdevries@suse.de>
7897 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7898 accessing parent[parent_len - 1].
7900 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7903 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7904 call dtrace_process_dof with NULL dof.
7906 2019-06-16 Tom de Vries <tdevries@suse.de>
7909 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7911 2019-06-16 Tom Tromey <tom@tromey.com>
7913 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7914 (make_all_visible): Use address of member.
7916 2019-06-16 Tom Tromey <tom@tromey.com>
7918 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7919 (tui_free_window, free_content, free_content_elements): Remove
7921 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7923 * tui/tui-regs.c (tui_show_register_group)
7924 (tui_display_registers_from, tui_display_reg_element_at_line):
7925 Remove unnecessary cast.
7927 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7929 * linux-nat.c (normal_mask): Delete.
7930 (_initialize_linux_nat): Don't initialise normal_mask.
7932 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7935 * dwarf-index-write.h (write_psymtabs_to_index): Add
7936 dwz_basename parameter.
7937 * dwarf-index-write.c (write_gdbindex): Move file writing to
7938 write_gdbindex_1. Change return type void.
7939 (assert_file_size): Move up, remove filename parameter.
7940 (write_gdbindex_1): New function.
7941 (write_debug_names): Change return type to void, call
7943 (struct index_wip_file): New struct.
7944 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7945 file logic to index_wip_file. Write index for dwz file if
7947 (save_gdb_index_command): Pass basename of dwz file, if present.
7948 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7949 build-id of dwz file, if present.
7950 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7951 (dwarf2_get_dwz_file): Likewise.
7952 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7953 (dwarf2_get_dwz_file): Likewise.
7955 2019-06-16 Tom Tromey <tom@tromey.com>
7957 * coffread.c (process_coff_symbol): Use xstrdup.
7958 * value.c (create_internalvar): Use xstrdup.
7960 2019-06-16 Tom Tromey <tom@tromey.com>
7962 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7963 * breakpoint.c (stopin_command, stopat_command)
7964 (until_break_command, decode_location_default): Remove unnecessary
7966 * utils.c (subset_compare): Remove unnecessary cast.
7967 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7969 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7971 * infcmd.c (path_command): Remove unnecessary cast.
7972 * coffread.c (decode_type): Remove unnecessary cast.
7973 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7974 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7975 * tui/tui-stack.c (tui_show_locator_content)
7976 (tui_show_frame_info): Remove unnecessary cast.
7977 * tui/tui-win.c (tui_scroll_forward_command)
7978 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7979 (parse_scrolling_args): Remove unnecessary cast.
7980 * tui/tui-data.c (init_win_info, tui_del_window)
7981 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7982 (free_content_elements): Remove unnecessary cast.
7983 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7985 * tui/tui-source.c (tui_set_source_content)
7986 (tui_vertical_source_scroll): Remove unnecessary cast.
7987 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7989 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7990 * tui/tui-regs.c (tui_display_registers_from)
7991 (tui_display_register): Remove unnecessary cast.
7992 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7993 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7994 (make_visible): Remove unnecessary cast.
7995 * tui/tui-winsource.c (tui_erase_source_content)
7996 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7998 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7999 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8000 * stabsread.c (read_type, read_array_type, read_range_type):
8001 Remove unnecessary cast.
8002 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8003 (parse_symbol, parse_type, upgrade_type, parse_external)
8004 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8006 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8008 2019-06-16 Tom Tromey <tom@tromey.com>
8010 * tui/tui-data.c (tui_alloc_generic_win_info)
8011 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8014 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8015 Andrew Burgess <andrew.burgess@embecosm.com>
8017 * f-typeprint.c (f_print_type): Don't return early for not
8018 associated or not allocated types.
8019 (f_type_print_varspec_suffix): Add print_rank parameter and print
8020 ranks of array types in case they dangling.
8021 (f_type_print_base): Add print_rank parameter.
8023 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8025 * NEWS: Mention new MI commands.
8026 * break-catch-throw.c (enum exception_event_kind): Move to
8028 (print_mention_exception_catchpoint): Output text as a single
8030 (catch_exception_command_1): Rename to...
8031 (catch_exception_event): ...this, make non-static, update header
8032 command, and change some parameter types.
8033 (catch_catch_command): Update for changes to
8034 catch_exception_command_1.
8035 (catch_throw_command): Likewise.
8036 (catch_rethrow_command): Likewise.
8037 * breakpoint.c (enum exception_event_kind): Delete.
8038 * breakpoint.h (enum exception_event_kind): Moved here from
8039 break-catch-throw.c.
8040 (catch_exception_event): Declare.
8041 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8042 (mi_cmd_catch_throw): New function.
8043 (mi_cmd_catch_rethrow): New function.
8044 (mi_cmd_catch_catch): New function.
8045 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8046 'catch-catch' entries.
8047 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8048 (mi_cmd_catch_rethrow): Declare.
8049 (mi_cmd_catch_catch): Declare.
8051 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8053 * annotate.c (annotate_source_line): Change return type to void,
8054 update implementation to match.
8055 * annotate.h (annotate_source_line): Change return type to void,
8056 update header comment.
8057 * stack.c (print_frame_info): Don't change what frame information
8058 is printed based on whether annotations are on or not.
8060 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8062 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8063 (annotate_source): Make static.
8064 (annotate_source_line): Moved from source.c and renamed from
8065 identify_source_line. Update the return type.
8066 * annotate.h (annotate_source): Delete declaration.
8067 (annotate_source_line): Declaration moved from source.h, and
8068 renamed from identify_source_line. Return type updated.
8069 * source.c (identify_source_line): Moved to annotate.c and renamed
8070 to annotate_source_line.
8071 (info_line_command): Remove check of annotation_level.
8072 * source.h (identify_source_line): Move declaration to annotate.h
8073 and rename to annotate_source_line.
8074 * stack.c: Add 'annotate.h' include.
8075 (print_frame_info): Remove check of annotation_level before
8076 calling annotate_source_line.
8078 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8080 * source-cache.c (source_cache::get_plain_source_lines): Use
8081 open_source_file_with_line_charpos instead of just
8082 open_source_file, remove call to find_source_lines.
8083 (source_cache::get_source_lines): Likewise.
8084 * source.c (find_source_lines): Make static.
8085 (get_filename_and_charpos): Renamed into...
8086 (open_source_file_with_line_charpos): ..this along with changes to
8087 return a scoped_fd, and some other minor clean ups.
8088 (identify_source_line): Use open_source_file_with_line_charpos.
8089 (search_command_helper): Use open_source_file_with_line_charpos
8090 instead of just open_source_file, remove call to
8092 * source.h (open_source_file_with_line_charpos): Declare new
8094 (find_source_lines): Delete declaration.
8096 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8098 * source.c (get_filename_and_charpos): Remove fullname
8100 (identify_source_line): Update call to get_filename_and_charpos.
8102 2019-06-14 Tom Tromey <tromey@adacore.com>
8105 * ui-style.h (skip_ansi_escape): Update comment.
8106 * ui-file.h (class no_terminal_escape_file): New class.
8107 * ui-file.c (no_terminal_escape_file::write)
8108 (no_terminal_escape_file::puts): New methods.
8109 * cli/cli-logging.c (handle_redirections): Use
8110 no_terminal_escape_file.
8112 2019-06-14 Tom Tromey <tromey@adacore.com>
8114 * NEWS: Move convenience variable news above Python news.
8116 2019-06-14 Tom Tromey <tom@tromey.com>
8118 * gnulib: Move directory to top-level.
8119 * configure.ac: Don't configure gnulib.
8120 * configure: Rebuild.
8121 * common/common-defs.h: Use new path to gnulib.
8122 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8124 (INCGNU): Look in new gnulib location.
8125 (HFILES_NO_SRCDIR): Remove gnulib files.
8126 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8127 (generated_files): Remove GNULIB_H.
8128 ($(LIBGNU), all-lib): Remove targets.
8129 (distclean): Don't mention GNULIB_BUILDDIR.
8130 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8132 2019-06-14 Tom Tromey <tromey@adacore.com>
8134 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8135 Warn if symbol file does not provide any symbols.
8137 2019-06-14 Tom Tromey <tromey@adacore.com>
8139 * source.c (find_and_open_source): Respect basenames_may_differ.
8141 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8143 * annotate.c (annotate_breakpoints_invalid): Make use of
8144 scoped_restore_terminal_state.
8145 (annotate_frames_invalid): Likewise.
8147 2019-06-14 Tom Tromey <tromey@adacore.com>
8149 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8150 allow assignment to an internalvar.
8152 2019-06-14 Tom Tromey <tromey@adacore.com>
8154 * ada-lex.l: Allow "_" in attribute names.
8156 2019-06-14 Tom Tromey <tromey@adacore.com>
8159 * regcache.c (registers_changed): Don't call alloca.
8160 * top.c (execute_command): Don't call alloca.
8162 2019-06-13 Pedro Alves <palves@redhat.com>
8164 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8165 'expression'. When parsing an expression, error out if there's
8166 junk after "unlimited".
8167 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8168 (do_set_command): Adjust calls to is_unlimited_literal.
8170 2019-06-13 Pedro Alves <palves@redhat.com>
8172 * compile/compile.c (make_compile_options_def_group): Add braces
8173 around array_view initializer.
8174 * thread.c (make_thread_apply_all_options_def_group)
8175 (make_thread_apply_all_options_def_group): Likewise.
8177 2019-06-13 Pedro Alves <palves@redhat.com>
8179 * NEWS (New commands): Mention "maint test-options
8180 require-delimiter", "maint test-options unknown-is-error", "maint
8181 test-options unknown-is-operand" and "maint show
8182 test-options-completion-result".
8183 (New command options, command completion): New section.
8184 (Completion improvements): New section.
8185 Mention that you can abbreviate "unlimited".
8187 2019-06-13 Pedro Alves <palves@redhat.com>
8189 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8190 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8191 * unittests/cli-utils-selftests.c (test_parse_flags)
8192 (test_parse_flags_qcs): Delete.
8193 (test_cli_utils): Don't call deleted functions.
8195 2019-06-13 Pedro Alves <palves@redhat.com>
8197 * thread.c: Include "cli/cli-option.h".
8198 (tp_array_compar_ascending): Global.
8199 (tp_array_compar): Delete function.
8200 (tp_array_compar_ascending, tp_array_compar_descending): New
8202 (ascending_option_def, qcs_flag_option_def)
8203 (thr_qcs_flags_option_defs)
8204 (make_thread_apply_all_options_def_group)
8205 (make_thread_apply_options_def_group): New.
8206 (thread_apply_all_command): Use gdb::option::process_options.
8207 (thread_apply_command_completer)
8208 (thread_apply_all_command_completer): New.
8209 (thread_apply_command): Use gdb::option::process_options.
8210 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8211 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8212 to generate help text of "thread apply". Adjust "taas"'s help.
8213 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8214 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8216 2019-06-13 Pedro Alves <palves@redhat.com>
8218 * thread.c (thread_apply_command): Check for invalid TID with
8219 isdigit instead of !isalpha.
8221 2019-06-13 Pedro Alves <palves@redhat.com>
8223 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8224 (validate_flags_qcs): New.
8225 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8226 (validate_flags_qcs): Declare.
8227 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8228 (make_frame_apply_options_def_group): New.
8229 (frame_apply_command_count): Process options with
8230 gdb::option::process_options.
8231 (frame_apply_completer): New.
8232 (frame_apply_level_completer, frame_apply_all_completer)
8233 (frame_apply_completer): New.
8234 (_initialize_stack): Update help of "frame apply", "frame apply
8235 level", "frame apply all" and "faas" to mention supported options
8236 and install command completers.
8237 * stack.h (frame_apply_all_completer): Declare.
8238 * thread.c: Include "stack.h".
8239 (tfaas_command): Add "--".
8240 (_initialize_thread): Update help "tfaas" to mention supported
8241 options and install command completer.
8243 2019-06-13 Pedro Alves <palves@redhat.com>
8245 * completer.c (complete_nested_command_line): New.
8246 (gdb_completion_word_break_characters_throw): Add assertion.
8247 * completer.h (complete_nested_command_line): Declare.
8249 2019-06-13 Pedro Alves <palves@redhat.com>
8251 * stack.c (parse_backtrace_qualifiers): New.
8252 (backtrace_command): Use it.
8253 (backtrace_command_completer): Complete on qualifiers.
8255 2019-06-13 Pedro Alves <palves@redhat.com>
8257 * frame.c: Include "cli/cli-option.h.
8258 (user_set_backtrace_options): New.
8259 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8261 (get_prev_frame): Adjust.
8262 (boolean_option_def, uinteger_option_def)
8263 (set_backtrace_option_defs): New.
8264 (_initialize_frame): Adjust and use
8265 gdb::option::add_setshow_cmds_for_options to install "set
8266 backtrace past-main" and "set backtrace past-entry".
8267 * frame.h: Include "cli/cli-option.h".
8268 (struct frame_print_options): Forward declare.
8269 (print_frame_arguments_all, print_frame_arguments_scalars)
8270 (print_frame_arguments_none): Declare.
8271 (print_entry_values): Delete declaration.
8272 (struct frame_print_options, user_frame_print_options): New.
8273 (struct set_backtrace_options): New.
8274 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8275 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8276 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8277 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8278 (list_args_or_locals): Add frame_print_options parameter.
8279 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8280 * python/py-framefilter.c (enumerate_args): Pass down
8281 USER_FRAME_PRINT_OPTIONS.
8282 * stack.c: Include "cli/cli-option.h".
8283 (print_frame_arguments_all, print_frame_arguments_scalars)
8284 (print_frame_arguments_none): Declare.
8285 (print_raw_frame_arguments, print_entry_values): Delete.
8286 (user_frame_print_options): New.
8287 (boolean_option_def, enum_option_def, frame_print_option_defs):
8289 (struct backtrace_cmd_options): New.
8290 (bt_flag_option_def): New.
8291 (backtrace_command_option_defs): New.
8292 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8293 (print_frame_arg, read_frame_arg, print_frame_args)
8294 (print_frame_info, print_frame): Add frame_print_options parameter
8296 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8297 (backtrace_command_1): Add frame_print_options and
8298 backtrace_cmd_options parameters and use them.
8299 (make_backtrace_options_def_group): New.
8300 (backtrace_command): Process command options with
8301 gdb::option::process_options.
8302 (backtrace_command_completer): New.
8303 (_initialize_stack): Extend "backtrace"'s help to mention
8304 supported options. Install completer for "backtrace".
8305 Install some settings commands with add_setshow_cmds_for_options.
8307 2019-06-13 Pedro Alves <palves@redhat.com>
8309 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8310 and that "set/show print raw frame-arguments" are now deprecated.
8312 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8314 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8315 * stack.c (_initialize_stack): Install "set/show print
8316 raw-frame-arguments", and deprecate "set/show print raw
8318 * valprint.c (_initialize_valprint): Deprecate "set/show print
8321 2019-06-13 Pedro Alves <palves@redhat.com>
8323 * compile/compile.c (struct compile_options): New.
8324 (compile_flag_option_def, compile_command_option_defs)
8325 (make_compile_options_def_group): New.
8326 (compile_file_command): Handle options with
8327 gdb::option::process_options.
8328 (compile_file_command_completer): New function.
8329 (compile_code_command): Handle options with
8330 gdb::option::process_options.
8331 (compile_code_command_completer): New function.
8332 (_initialize_compiler): Install completers for "compile code" and
8333 "compile file". Mention available options in "compile code" and
8334 "compile code"'s help.
8335 * completer.c (advance_to_completion_word): New, factored out from
8337 (advance_to_expression_complete_word_point): ... this.
8338 (advance_to_filename_complete_word_point): New.
8339 * completer.h (advance_to_filename_complete_word_point): New
8342 2019-06-13 Pedro Alves <palves@redhat.com>
8344 * compile/compile.c: Include "cli/cli-option.h".
8345 (compile_print_value): Scope data pointer is now a
8346 value_print_options pointer; adjust.
8347 (compile_print_command): Process options. Scope data pointer is
8348 now a value_print_options pointer; adjust.
8349 (_initialize_compile): Update "compile print"'s help to include
8350 supported options. Install a completer for "compile print".
8351 * cp-valprint.c (show_vtblprint, show_objectprint)
8352 (show_static_field_print): Delete.
8353 (_initialize_cp_valprint): Don't install "set print
8354 static-members", "set print vtbl", "set print object" here.
8355 * printcmd.c: Include "cli/cli-option.h" and
8356 "common/gdb_optional.h".
8357 (print_command_parse_format): Rework to fill in a
8358 value_print_options instead of a format_data.
8359 (print_value): Change parameter type from format_data pointer to
8360 value_print_options reference. Adjust.
8361 (print_command_1): Process options. Adjust to pass down a
8362 value_print_options.
8363 (print_command_completer): New.
8364 (_initialize_printcmd): Install print_command_completer as
8365 handle_brkchars completer for the "print" command. Update
8366 "print"'s help to include supported options.
8367 * valprint.c: Include "cli/cli-option.h".
8368 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8369 here from cp-valprint.c.
8370 (boolean_option_def, uinteger_option_def)
8371 (value_print_option_defs, make_value_print_options_def_group):
8372 New. Use gdb::option::add_setshow_cmds_for_options to install
8373 "set print elements", "set print null-stop", "set print repeats",
8374 "set print pretty", "set print union", "set print array", "set
8375 print address", "set print symbol", "set print array-indexes".
8376 * valprint.h: Include <string> and "cli/cli-option.h".
8377 (make_value_print_options_def_group): Declare.
8378 (print_value): Change parameter type from format_data pointer to
8379 value_print_options reference.
8380 (print_command_completer): Declare.
8382 2019-06-13 Pedro Alves <palves@redhat.com>
8384 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8385 (COMMON_SFILES): Add maint-test-settings.c.
8386 * cli/cli-decode.c (boolean_enums): New global, factored out from
8388 (add_setshow_boolean_cmd): ... here.
8389 * cli/cli-decode.h (boolean_enums): Declare.
8390 * cli/cli-option.c: New file.
8391 * cli/cli-option.h: New file.
8392 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8393 factored out from ...
8394 (parse_cli_boolean_value(const char *)): ... this.
8395 (is_unlimited_literal): Change parameter type to pointer to
8396 pointer. Adjust and advance ARG pointer.
8397 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8398 (parse_cli_var_enum): New, factored out from ...
8399 (do_set_command): ... this. Adjust.
8400 * cli/cli-setshow.h (parse_cli_boolean_value)
8401 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8402 (parse_cli_var_enum): Declare.
8403 * cli/cli-utils.c: Include "cli/cli-option.h".
8404 (get_ulongest): New.
8405 * cli/cli-utils.h (get_ulongest): Declare.
8406 (check_for_argument): New overloads.
8407 * maint-test-options.c: New file.
8409 2019-06-13 Pedro Alves <palves@redhat.com>
8411 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8412 parse a range if "-" is at the end of the string.
8414 2019-06-13 Pedro Alves <palves@redhat.com>
8416 * cli/cli-setshow.c (parse_auto_binary_operation)
8417 (parse_cli_boolean_value): Don't allow "o".
8419 2019-06-13 Pedro Alves <palves@redhat.com>
8421 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8422 * NEWS: Mention maint test-settings KIND.
8423 * maint-test-settings.c: New file.
8425 2019-06-13 Pedro Alves <palves@redhat.com>
8427 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8429 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8432 2019-06-13 Pedro Alves <palves@redhat.com>
8434 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8437 2019-06-13 Pedro Alves <palves@redhat.com>
8439 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8441 2019-06-13 Pedro Alves <palves@redhat.com>
8443 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8444 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8446 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8447 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8449 (check_for_argument): Skip spaces after argument.
8451 2019-06-13 Pedro Alves <palves@redhat.com>
8453 * thread.c (thread_apply_command): Adjust TID parsing.
8454 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8455 detected before end of string.
8456 (tid_is_in_list): Error out if LIST is invalid.
8458 2019-06-13 Pedro Alves <palves@redhat.com>
8460 * completer.c (complete_line_internal_1): Rewind completion word
8462 (completion_tracker::advance_custom_word_point_by): Change
8463 parameter type to int.
8464 * completer.h (completion_tracker::advance_custom_word_point_by):
8467 2019-06-13 Pedro Alves <palves@redhat.com>
8469 * completer.c (advance_to_completion_word): Handle delimiters.
8471 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8473 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8475 2019-06-11 Tom Tromey <tom@tromey.com>
8477 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8478 (xmalloc_failed): Move to alloc.c.
8479 * alloc.c: New file.
8480 * Makefile.in (COMMON_SFILES): Add alloc.c.
8482 2019-06-11 Tom Tromey <tom@tromey.com>
8484 * nat/linux-waitpid.c: Don't include server.h.
8485 (linux_debug): Remove.
8486 (my_waitpid): Update.
8488 2019-06-11 Tom Tromey <tromey@adacore.com>
8490 * infcall.c (_initialize_infcall): Remove trailing newline from
8492 * user-regs.c (_initialize_user_regs): Remove trailing newline
8494 * typeprint.c (_initialize_typeprint): Remove trailing newline
8496 * reverse.c (_initialize_reverse): Remove trailing newlines from
8498 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8500 * language.c (add_set_language_command): Remove trailing newline
8502 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8504 * disasm.c (_initialize_disasm): Remove trailing newline from
8506 * top.c (init_main): Remove trailing newline from help.
8507 * interps.c (_initialize_interpreter): Remove trailing newline
8509 * btrace.c (_initialize_btrace): Remove trailing newlines from
8511 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8513 * python/python.c (_initialize_python): Remove trailing newline
8515 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8517 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8518 from help. Reformat some text.
8519 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8521 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8524 2019-06-11 Tom Tromey <tromey@adacore.com>
8526 * darwin-nat.c (darwin_decode_exception_message)
8527 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8529 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8531 * valops.c (value_slice): Check for not allocated or not
8534 2019-06-10 Tom de Vries <tdevries@suse.de>
8537 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8538 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8541 2019-06-10 Tom de Vries <tdevries@suse.de>
8544 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8545 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8547 2019-06-10 Tom de Vries <tdevries@suse.de>
8550 * symtab.c (struct demangled_name_entry): Add language field.
8551 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8552 static minimal symbol". Set and use language field.
8554 2019-06-10 Tom Tromey <tromey@adacore.com>
8556 * ada-lang.c (_initialize_ada_language): Update help text.
8558 2019-06-10 Tom Tromey <tromey@adacore.com>
8560 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8562 * guile/guile.c (handle_boot_error): Don't end warning with a
8564 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8565 warning with a newline.
8566 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8568 (s12z_frame_cache): Likewise.
8569 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8571 * solib-svr4.c (disable_probes_interface): Don't end warning with
8573 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8575 * python/python.c (do_finish_initialization): Don't end warning
8578 2019-06-10 Tom Tromey <tom@tromey.com>
8580 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8581 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8584 2019-06-10 Tom Tromey <tromey@adacore.com>
8586 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8588 (elf_new_init): Don't call stabsread_new_init.
8589 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8590 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8591 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8593 2019-06-10 Tom de Vries <tdevries@suse.de>
8597 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8599 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8601 * source.c (find_and_open_source): Also rewrite relative file
8604 2019-04-26 Amos Bird <amosbird@gmail.com>
8606 * annotate.c (annotate_thread_exited): Add "thread-exited"
8609 2019-06-06 Tom Tromey <tromey@adacore.com>
8611 * maint.h (class scoped_command_stats): Use
8612 DISABLE_COPY_AND_ASSIGN.
8613 <print_time>: New method.
8614 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8616 (scoped_command_stats::print_time): New method.
8618 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8620 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8621 instructions of lengths 6 or 8 bytes.
8623 2019-06-04 Pedro Alves <palves@redhat.com>
8625 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8627 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8628 * breakpoint.c (condition_completer): Likewise.
8629 * cli/cli-dump.c (scan_expression): Likewise.
8630 * common/filestuff.c (mkdir_recursive): Likewise.
8631 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8632 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8633 (gdb_abspath): Likewise.
8634 * compile/compile-cplus-types.c
8635 (compile_cplus_instance::decl_name): Likewise.
8636 * completer.c (complete_explicit_location):
8637 (signal_completer, reg_or_group_completer_1): Likewise.
8638 * cp-support.c (cp_remove_params_if_any): Likewise.
8639 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8640 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8641 * infcmd.c (strip_bg_char): Likewise.
8642 * linespec.c (copy_token_string): Likewise.
8643 * mi/mi-main.c (output_cores): Likewise.
8644 * psymtab.c (psymtab_search_name):
8645 * symfile.c (test_set_ext_lang_command): Likewise.
8646 * target.c (target_fileio_read_stralloc): Likewise.
8647 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8648 * value.c (complete_internalvar): Likewise.
8650 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8652 Add objfile property to gdb.Type.
8653 * NEWS: Mention Python API addition.
8654 * python/py-type.c (typy_get_objfile): New method.
8656 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8658 * NEWS: Mention the new set|show style [title|highlight].
8659 Mention changes to "show style", "help" and "apropos".
8661 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8663 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8664 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8665 instead of print_help_for_command.
8666 (print_doc_of_command): New function.
8667 (help_list): Add 'apropos -v word' suggestion.
8668 (print_help_for_command): Style the command name using title style.
8669 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8670 (_initialize_cli_cmds): Describe -v in apropos_command help.
8672 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8674 * cli/cli-style.h (cli_style_option): Add name in constructor,
8675 add m_name class member, add constructor with intensity,
8676 add name class function.
8677 (cli_style_option::add_setshow_commands): Remove name argument.
8678 (highlight_style, title_style): New styles.
8679 * cli/cli-style.c (do_show): New function that shows a style
8680 characteristic styling the style name with itself.
8681 (set_style_name): New function.
8682 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8683 Update all callers according to the changes in cli/cli-style.h.
8684 * utils.h (fputs_highlighted): New function.
8685 * utils.c (fputs_highlighted): Likewise.
8687 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8689 * NEWS: Mention new pipe command and new convenience variables.
8691 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8693 * cli/cli-cmds.c (pipe_command): New function.
8694 (_initialize_cli_cmds): Call add_com for pipe_command.
8695 Define | as an alias for pipe.
8696 (exit_status_set_internal_vars): New function.
8697 (shell_escape): Call exit_status_set_internal_vars.
8698 cli/cli-decode.c (find_command_name_length): Recognize | as
8699 a single character command.
8701 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8703 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8704 top.c (execute_command_to_ui_file): New function, mostly a copy
8705 of execute_command_to_string.
8706 (execute_command_to_string): Implement by calling
8707 execute_command_to_ui_file.
8709 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8711 * top.h (saved_command_line): Remove declaration.
8712 * top.c (previous_saved_command_line, previous_repeat_arguments):
8714 (saved_command_line): Make static, define together with other
8716 (dont_repeat): Clear repeat_arguments.
8717 (repeat_previous, get_saved_command_line, save_command_line):
8719 (gdb_init): Initialize saved_command_line
8720 and previous_saved_command_line.
8721 * main.c (captured_main_1): Remove saved_command_line initialization.
8722 * event-top.c (handle_line_of_input): Update to use
8723 the new 'repeat' related functions instead of direct access to
8725 * command.h (repeat_previous, get_saved_command_line,
8726 save_command_line): New declarations.
8727 (dont_repeat): Add comment.
8729 2019-05-30 Tom Tromey <tromey@adacore.com>
8731 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8733 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8735 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8738 * completer.c (complete): Initialize variable word.
8740 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8742 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8743 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8744 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8745 'body' is NULL to the outter 'if', protecting the '!is_define'
8748 2019-05-29 Tom Tromey <tromey@adacore.com>
8750 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8751 (dwarf_unknown): New function.
8752 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8753 (dwarf_type_encoding_name): Use dwarf_unknown.
8755 2019-05-29 Tom Tromey <tromey@adacore.com>
8758 * cp-valprint.c (cp_print_value_fields): Call
8759 cp_print_static_field inside "try".
8761 2019-05-29 Tom Tromey <tromey@adacore.com>
8763 * inflow.c (struct terminal_info): Add default operator=.
8764 * configure: Rebuild.
8765 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8766 -Wdeprecated-copy-dtor, -Wredundant-move.
8768 2019-05-29 Tom Tromey <tromey@adacore.com>
8771 * infcmd.c (print_return_value_1): Handle finish_print
8773 (show_print_finish): New function.
8774 (_initialize_infcmd): Add "set/show print finish" commands.
8775 * valprint.c (user_print_options): Initialize new member.
8776 * valprint.h (struct value_print_options) <finish_print>: New
8779 2019-05-28 Tom Tromey <tromey@adacore.com>
8781 * ada-lang.c (ada_remove_Xbn_suffix)
8782 (find_old_style_renaming_symbol)
8783 (parse_old_style_renaming): Remove.
8784 (ada_find_renaming_symbol): Don't call
8785 find_old_style_renaming_symbol.
8786 (ada_is_renaming_symbol): Rename from
8787 ada_find_renaming_symbol. Remove "block" parameter. Return
8789 (ada_read_var_value): Update and simplify.
8790 * ada-exp.y (write_var_or_type): Remove old code.
8792 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8795 * event-top.c: Remove include comment.
8796 * inflow.c (class scoped_ignore_sigttou): Move from here...
8797 * inflow.h (class scoped_ignore_sigttou): ...to here.
8798 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8799 * top.c: Remove include comment.
8801 2019-05-27 Tom Tromey <tom@tromey.com>
8805 2019-05-22 Tom Tromey <tromey@adacore.com>
8807 * target.c (target_follow_exec): Constify parameter.
8808 * target-delegates.c: Rebuild.
8809 * remote.c (remote_target::follow_exec): Constify parameter.
8810 * infrun.c (follow_exec): Constify parameter.
8811 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8812 (target_follow_exec): Likewise.
8814 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8816 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8817 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8819 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8821 * NEWS: Add debugredirect and testsuite sections.
8823 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8825 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8826 target descriptions using exclusively floating point register name
8829 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8832 * f-lang.c (build_fortran_types): Handle the case where
8833 gdbarch_floatformat_for_type returns a nullptr.
8835 2019-05-21 Tom de Vries <tdevries@suse.de>
8838 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8840 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8843 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8845 * i386-tdep.c (i386_floatformat_for_type): Use
8846 floatformats_ia64_quad for the 16-byte floating point component
8847 within a fortran 32-byte complex number.
8849 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8851 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8852 delete default constructor.
8853 (find_partial_die): Update to return const struct.
8854 (partial_die_parent_scope): Move variable declaration into scope
8855 of its use and change its type to auto.
8856 (guess_partial_die_structure_name): Likewise.
8857 (partial_die_info::fixup): Likewise.
8859 2019-05-17 Tom Tromey <tromey@adacore.com>
8861 * source.c (find_and_open_source): Remove cast.
8863 2019-05-17 Tom Tromey <tromey@adacore.com>
8865 * annotate.c (annotate_source): Make "filename" const.
8866 * annotate.h (annotate_source): Use const.
8868 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8870 * disasm.c (set_disassembler_options): Send errors to stderr.
8872 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8874 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8875 (cli_interp_base::set_logging): Check debug_redirect.
8876 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8877 * cli/cli-logging.c (debug_redirect): Add static variable.
8878 (pop_output_files): Add default param.
8879 (handle_redirections): Print debug setting.
8880 (show_logging_command): Likewise.
8881 (_initialize_cli_logging): Add debugredirect command.
8882 * interps.c (current_interp_set_logging): Add debug_redirect
8884 * interps.h (set_logging): Add debug_redirect parameter.
8885 (current_interp_set_logging): Likewise.
8886 * mi/mi-common.h: Likewise.
8887 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8889 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8890 Tom Tromey <tromey@adacore.com>
8892 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8894 * cli/cli-interp.h (make_logging_output): Remove declaration.
8895 * cli/cli-logging.c (make_logging_output): Remove function.
8896 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8898 * ui-file.c (tee_file::tee_file): Remove bools.
8899 (tee_file::~tee_file): Remove deletes.
8900 * ui-file.h (tee_file): Remove bools.
8902 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8904 * mi/mi-cmds.h (mi_cmd_complete): New function.
8905 * mi/mi-main.c (mi_cmd_complete): Likewise.
8906 * mi/mi-cmds.c: Define new MI command -complete.
8907 * NEWS: Mention new -complete command.
8909 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8911 * completer.h (complete): New function.
8912 * completer.c (complete): Likewise.
8913 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8914 function defined in completer.h.
8916 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8918 * MAINTAINERS (Write After Approval): Add myself.
8920 2019-05-17 Tom de Vries <tdevries@suse.de>
8923 * dwarf2read.c (struct cu_partial_die_info): New struct.
8924 (find_partial_die): Return cu_partial_die_info.
8925 (partial_die_parent_scope, guess_partial_die_structure_name)
8926 (partial_die_info::fixup): Handle new return type of find_partial_die.
8928 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8930 PR breakpoints/24541
8931 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8932 "std::string", simplifying the algorithm.
8934 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8936 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8937 (stap_static_probe_ops::get_probes): Likewise.
8939 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8941 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8942 '-')" and "else if".
8943 (stap_parse_single_operand): Join checks for
8944 "gdbarch_stap_parse_special_token_p" and
8945 "gdbarch_stap_parse_special_token" in the same "if" statement.
8946 Invert check when verifying for operation on register
8949 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8951 * stap-probe.c (stap_get_opcode): Update comment.
8952 (stap_get_expected_argument_type): Likewise.
8953 (handle_stap_probe): Likewise.
8955 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8957 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8958 return type to 'bool'. Adjust comment. Use 'bool' when
8960 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8961 * stap-probe.c (stap_parse_argument_1): Likewise.
8962 (stap_is_operator): Likewise.
8963 (stap_is_generic_prefix): Likewise.
8964 (stap_is_register_prefix): Likewise.
8965 (stap_is_register_indirection_prefix): Likewise.
8966 (stap_is_integer_prefix): Likewise.
8967 (stap_generic_check_suffix): Likewise.
8968 (stap_check_integer_suffix): Likewise.
8969 (stap_check_register_suffix): Likewise.
8970 (stap_check_register_indirection_suffix): Likewise.
8971 (stap_parse_register_operand): Likewise.
8972 (stap_parse_single_operand): Likewise.
8973 (stap_parse_argument_1): Likewise.
8974 (stap_probe::get_argument_count): Likewise.
8975 (stap_is_operator): Likewise.
8977 2019-05-16 Tom Tromey <tromey@adacore.com>
8979 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8982 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8984 * linux-thread-db.c (try_thread_db_load_1): Change return type
8986 (try_thread_db_load): Likewise.
8987 (try_thread_db_load_from_pdir_1): Likewise.
8988 (try_thread_db_load_from_pdir): Likewise.
8989 (try_thread_db_load_from_sdir): Likewise.
8990 (try_thread_db_load_from_dir): Likewise.
8991 (thread_db_load_search): Likewise.
8992 (has_libpthread): Likewise.
8993 (thread_db_load): Likewise.
8995 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8997 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8998 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8999 NULL, and complain/return if that's the case.
9001 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9003 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9004 (advance, posn, abstract_read_memory): New functions.
9005 [struct mem_read_abstraction]: New struct.
9006 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9008 2019-05-14 Tom Tromey <tromey@adacore.com>
9010 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9011 value is not lval_memory.
9013 2019-05-14 Tom Tromey <tromey@adacore.com>
9015 * solib.c (info_sharedlibrary_command): Style the file name.
9017 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9019 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9020 (aarch64_vnv_type): Likewise.
9021 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9022 * common/tdesc.c: Likewise.
9023 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9024 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9025 * features/aarch64-fpu.xml: Add ieee half view.
9026 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9027 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9028 * gdbtypes.h (struct builtin_type): Likewise.
9029 (struct objfile_type): Likewise.
9031 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9033 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9035 * location.h (string_to_event_location): Likewise.
9037 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9041 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9043 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9044 New variable declaration.
9045 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9047 (print_one_breakpoint): Use ui_out::test_flags and new global
9048 variable to compute use_fixed_output.
9049 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9051 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9052 (mi_multi_location_breakpoint_output_fixed): Remove.
9053 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9055 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9056 fix_multi_location_breakpoint_output flag if version >= 3.
9057 * ui-out.h (enum ui_out_flag)
9058 <fix_multi_location_breakpoint_output>: New enumerator.
9060 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9062 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9064 2019-05-10 Tom Tromey <tromey@adacore.com>
9066 * ada-lang.c (catch_ada_completer): New function.
9067 (_initialize_ada_language): Use it.
9069 2019-05-10 Tom Tromey <tromey@adacore.com>
9071 * thread.c (print_thread_info): Make "requested_threads" const.
9072 * gdbthread.h (print_thread_info): Make "requested_threads"
9074 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9075 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9077 2019-05-08 Tom Tromey <tom@tromey.com>
9079 * gdbtypes.c (objfile_type_data): Change type.
9080 (objfile_type, _initialize_gdbtypes): Update.
9082 2019-05-08 Tom Tromey <tom@tromey.com>
9084 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9085 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9086 (_initialize_dwarf2_frame): Update.
9088 2019-05-08 Tom Tromey <tom@tromey.com>
9090 * objc-lang.c (objc_objfile_data): Change type.
9091 (find_methods): Update.
9092 (_initialize_objc_lang): Remove.
9094 2019-05-08 Tom Tromey <tom@tromey.com>
9096 * stabsread.c (rs6000_builtin_type_data): Change type.
9097 (rs6000_builtin_type, _initialize_stabsread): Update.
9099 2019-05-08 Tom Tromey <tom@tromey.com>
9101 * mips-tdep.c (mips_pdr_data): Remove.
9102 (_initialize_mips_tdep): Update.
9104 2019-05-08 Tom Tromey <tom@tromey.com>
9106 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9107 (hppa_init_objfile_priv_data, read_unwind_info)
9108 (find_unwind_entry, _initialize_hppa_tdep): Update.
9110 2019-05-08 Tom Tromey <tom@tromey.com>
9112 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9113 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9115 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9117 2019-05-08 Tom Tromey <tom@tromey.com>
9119 * mdebugread.c (basic_type_data): Change type.
9120 (basic_type, _initialize_mdebugread): Update.
9122 2019-05-08 Tom Tromey <tom@tromey.com>
9124 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9126 2019-05-08 Tom Tromey <tom@tromey.com>
9128 * nto-tdep.c (nto_inferior_data_reg): Change type.
9129 (nto_inferior_data): Update.
9130 (nto_inferior_data_cleanup, nto_new_inferior_data)
9131 (_initialize_nto_tdep): Remove.
9132 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9134 2019-05-08 Tom Tromey <tom@tromey.com>
9136 * ada-lang.c (struct ada_inferior_data): Add initializers.
9137 (ada_inferior_data): Change type.
9138 (ada_inferior_data_cleanup): Remove.
9139 (get_ada_inferior_data, ada_inferior_exit)
9140 (struct ada_pspace_data): Add initializers, destructor.
9141 (ada_pspace_data_handle): Change type.
9142 (get_ada_pspace_data): Update.
9143 (ada_pspace_data_cleanup): Remove.
9145 2019-05-08 Tom Tromey <tom@tromey.com>
9147 * coffread.c (struct coff_symfile_info): Add initializers.
9148 (coff_objfile_data_key): Move lower. Change type.
9149 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9151 (coff_free_info): Remove.
9153 2019-05-08 Tom Tromey <tom@tromey.com>
9155 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9156 (fbsd_pspace_data_handle): Move lower. Change type.
9157 (get_fbsd_pspace_data): Update.
9158 (fbsd_pspace_data_cleanup): Remove.
9159 (_initialize_fbsd_tdep): Update.
9161 2019-05-08 Tom Tromey <tom@tromey.com>
9163 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9164 (get_ada_tasks_pspace_data): Update.
9165 (ada_tasks_pspace_data_cleanup): Remove.
9166 (_initialize_tasks): Update.
9167 (ada_tasks_inferior_data_handle): Change type.
9168 (get_ada_tasks_inferior_data): Update.
9169 (ada_tasks_inferior_data_cleanup): Remove.
9170 (struct ada_tasks_pspace_data): Add initializers.
9172 2019-05-08 Tom Tromey <tom@tromey.com>
9174 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9175 * symfile-debug.c (debug_sym_get_probes): Change type.
9176 * stap-probe.c (handle_stap_probe):
9177 (stap_static_probe_ops::get_probes): Change type.
9178 * probe.h (class static_probe_ops) <get_probes>: Change type.
9179 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9180 (parse_probes_in_pspace): Update.
9181 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9183 (any_static_probe_ops::get_probes): Change type.
9184 * elfread.c (elfread_data): New typedef.
9185 (probe_key): Change type.
9186 (elf_get_probes): Likewise. Update.
9187 (probe_key_free): Remove.
9188 (_initialize_elfread): Update.
9189 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9191 (dtrace_process_dof_probe, dtrace_process_dof)
9192 (dtrace_static_probe_ops::get_probe): Change type.
9194 2019-05-08 Tom Tromey <tom@tromey.com>
9196 * xcoffread.c (struct xcoff_symfile_info): Rename from
9197 coff_symfile_info. Add initializers.
9198 (xcoff_objfile_data_key): Move lower. Change type.
9199 (XCOFF_DATA): Rewrite.
9200 (xcoff_free_info): Remove.
9201 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9202 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9203 (xcoff_initial_scan): Update.
9205 2019-05-08 Tom Tromey <tom@tromey.com>
9207 * solib-svr4.c (struct svr4_info): Add initializers and
9209 <probes_table>: Now an htab_up.
9210 (solib_svr4_pspace_data): Change type.
9211 (free_probes_table): Simplify.
9212 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9213 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9214 (probes_table_remove_objfile_probes, register_solib_event_probe)
9215 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9216 (_initialize_svr4_solib): Update.
9218 2019-05-08 Tom Tromey <tom@tromey.com>
9220 * remote.c (remote_pspace_data): Change type.
9221 (remote_pspace_data_cleanup): Remove.
9222 (get_remote_exec_file, set_pspace_remote_exec_file)
9223 (_initialize_remote): Update.
9225 2019-05-08 Tom Tromey <tom@tromey.com>
9227 * breakpoint.c (breakpoint_objfile_key): Change type.
9228 (get_breakpoint_objfile_data): Update.
9229 (free_breakpoint_objfile_data): Remove.
9230 (_initialize_breakpoint): Update.
9232 2019-05-08 Tom Tromey <tom@tromey.com>
9234 * linux-tdep.c (struct linux_info): Add initializers.
9235 (linux_inferior_data): Move. Change type.
9236 (invalidate_linux_cache_inf): Update.
9237 (linux_inferior_data_cleanup): Remove.
9238 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9240 2019-05-08 Tom Tromey <tom@tromey.com>
9242 * auxv.c (auxv_inferior_data): Move. Change type.
9243 (auxv_inferior_data_cleanup): Remove.
9244 (invalidate_auxv_cache_inf): Rewrite.
9245 (get_auxv_inferior_data, _initialize_auxv): Update.
9247 2019-05-08 Tom Tromey <tom@tromey.com>
9249 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9250 (symfile_debug_objfile_data_key): Change type.
9251 (symfile_debug_installed, debug_qf_has_symbols)
9252 (debug_qf_find_last_source_symtab)
9253 (debug_qf_forget_cached_source_info)
9254 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9255 (debug_qf_print_stats, debug_qf_dump)
9256 (debug_qf_expand_symtabs_for_function)
9257 (debug_qf_expand_all_symtabs)
9258 (debug_qf_expand_symtabs_with_fullname)
9259 (debug_qf_map_matching_symbols)
9260 (debug_qf_expand_symtabs_matching)
9261 (debug_qf_find_pc_sect_compunit_symtab)
9262 (debug_qf_map_symbol_filenames)
9263 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9264 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9265 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9266 (debug_sym_read_linetable, debug_sym_relocate): Update.
9267 (symfile_debug_free_objfile): Remove.
9268 (install_symfile_debug_logging, _initialize_symfile_debug):
9271 2019-05-08 Tom Tromey <tom@tromey.com>
9273 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9274 allocate_on_obstack.
9275 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9276 (get_dwarf2_per_objfile): Update.
9277 (set_dwarf2_per_objfile): Remove.
9278 (dwarf2_has_info, dwarf2_get_section_info): Update.
9279 (dwarf2_free_objfile): Remove.
9280 (_initialize_dwarf2_read): Update.
9282 2019-05-08 Tom Tromey <tom@tromey.com>
9284 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9286 <unsupported_script_warning_printed,
9287 script_not_found_warning_printed>: Now bool.
9288 (auto_load_pspace_data): Change type.
9289 (~auto_load_pspace_info): Rename from
9290 auto_load_pspace_data_cleanup.
9291 (get_auto_load_pspace_data, init_loaded_scripts_info)
9292 (clear_section_scripts, maybe_print_unsupported_script_warning)
9293 (maybe_print_script_not_found_warning, _initialize_auto_load):
9296 2019-05-08 Tom Tromey <tom@tromey.com>
9298 * objfiles.c (objfile_pspace_info): Add destructor and
9300 (objfiles_pspace_data): Change type.
9301 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9302 (get_objfile_pspace_data): Update.
9303 (objfiles_bfd_data): Change type.
9304 (get_objfile_bfd_data): Update.
9305 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9307 2019-05-08 Tom Tromey <tom@tromey.com>
9309 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9311 (get_catch_syscall_inferior_data): Update.
9312 (catch_syscall_inferior_data_cleanup): Remove.
9313 (_initialize_break_catch_syscall): Update.
9315 2019-05-08 Tom Tromey <tom@tromey.com>
9317 * inflow.c (struct terminal_info): Add destructor and
9319 (inflow_inferior_data): Change type.
9320 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9321 (get_inflow_inferior_data, inflow_inferior_exit)
9322 (swap_terminal_info, _initialize_inflow): Update.
9324 2019-05-08 Tom Tromey <tom@tromey.com>
9326 * target-dcache.c (target_dcache_cleanup): Remove.
9327 (target_dcache_aspace_key): Change type.
9328 (target_dcache_init_p, target_dcache_invalidate)
9329 (target_dcache_get, target_dcache_get_or_init)
9330 (_initialize_target_dcache): Update.
9331 * dcache.h (struct dcache_deleter): New.
9333 2019-05-08 Tom Tromey <tom@tromey.com>
9335 * symtab.c (struct symbol_cache): Add destructor and
9337 (symbol_cache_key): Move. Change type.
9338 (make_symbol_cache, free_symbol_cache): Remove.
9339 (get_symbol_cache): Update.
9340 (symbol_cache_cleanup): Remove.
9341 (ALL_PSPACES, symbol_cache_flush)
9342 (maintenance_print_symbol_cache)
9343 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9346 2019-05-08 Tom Tromey <tom@tromey.com>
9348 * symtab.c (struct main_info): Add destructor and initializers.
9349 (main_progspace_key): Move. Change type.
9350 (get_main_info): Update.
9351 (main_info_cleanup): Remove.
9352 (_initialize_symtab): Update.
9354 2019-05-08 Tom Tromey <tom@tromey.com>
9356 * registry.h (DECLARE_REGISTRY): Define the _key class.
9358 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9360 * NEWS: Merge two 'New commands' sections.
9362 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9364 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9365 parameter and use Ada language definition instead.
9366 (ada_val_print_ptr): Remove unused language parameter.
9367 (ada_val_print_num): Remove language parameter and use Ada language
9369 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9371 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9372 parameter and use Ada language definition instead.
9373 (ada_val_print_1): Update all ada_val_print_xxx calls.
9374 Remove language parameter.
9375 (ada_val_print): Update ada_val_print_1 call.
9377 2019-05-08 Tom Tromey <tromey@adacore.com>
9379 * remote.c (remote_hw_watchpoint_limit)
9380 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9383 2019-05-08 Tom Tromey <tromey@adacore.com>
9385 * maint.c (_initialize_maint_cmds): Move initialization code to
9387 (watchdog, show_watchdog): Move to remote.c.
9388 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9390 (_initialize_remote): Move initialization code from maint.c.
9391 * defs.h (watchdog): Don't declare.
9393 2019-05-08 Tom Tromey <tromey@adacore.com>
9395 * tui/tui-interp.c: Include main.h.
9396 * interps.c: Include main.h.
9397 * main.h (interpreter_p): Declare.
9398 * defs.h (interpreter_p): Don't declare.
9400 2019-05-08 Tom Tromey <tromey@adacore.com>
9402 * dwarf2loc.c: Include dwarf2read.h.
9403 * defs.h (read_unsigned_leb128): Don't declare.
9404 * dwarf2read.h (read_unsigned_leb128): Declare.
9406 2019-05-08 Tom Tromey <tromey@adacore.com>
9408 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9411 2019-05-08 Tom Tromey <tromey@adacore.com>
9413 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9414 when no wrap column is set.
9416 2019-05-08 Tom Tromey <tromey@adacore.com>
9418 * c-lang.c (c_get_string): Handle non-C-style arrays.
9420 2019-05-08 Tom Tromey <tromey@adacore.com>
9422 * typeprint.c (print_offset_data::update): Print the bit offset,
9423 not the number of bits remaining.
9425 2019-05-08 Tom Tromey <tromey@adacore.com>
9427 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9428 padding at end of comment.
9430 2019-05-08 Tom Tromey <tromey@adacore.com>
9432 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9435 2019-05-06 Tom Tromey <tom@tromey.com>
9437 * common/scoped_mmap.c: Include common-defs.h.
9438 * common/scoped_mmap.h: Don't include config.h.
9440 2019-05-04 Tom Tromey <tom@tromey.com>
9442 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9443 (struct aarch64_call_info): Add initializers.
9444 <si>: Now a std::vector.
9445 (pass_on_stack, aarch64_push_dummy_call): Update.
9447 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9448 Tom Tromey <tom@tromey.com>
9450 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9451 (ppc_threads): Now a std::vector. Now static.
9452 (hwdebug_find_thread_points_by_tid)
9453 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9456 2019-05-04 Tom Tromey <tom@tromey.com>
9458 * arc-tdep.c (arc_tdesc_init): Return bool.
9460 2019-05-04 Tom Tromey <tom@tromey.com>
9462 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9463 Use gdb_assert_not_reached.
9465 2019-05-04 Tom Tromey <tom@tromey.com>
9467 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9470 2019-05-04 Tom Tromey <tom@tromey.com>
9472 * arc-tdep.c (arc_tdesc_init): Use bool.
9474 2019-05-04 Tom Tromey <tom@tromey.com>
9476 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9478 2019-05-04 Tom Tromey <tom@tromey.com>
9480 * cli/cli-cmds.c (valid_command_p): Return bool.
9482 2019-05-04 Tom Tromey <tom@tromey.com>
9484 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9485 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9487 2019-05-04 Raul Tambre <raul@tambre.ee>
9489 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9490 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9491 operator for comparison.
9493 2019-05-04 Tom Tromey <tom@tromey.com>
9495 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9496 (lookup_partial_symbol, print_partial_symbols)
9497 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9498 (psymbol_compare): Update.
9499 (add_psymbol_to_bcache): Clear the entire psymbol.
9500 (maintenance_check_psymtabs): Update.
9501 * psympriv.h (struct partial_symbol): Don't derive from
9502 general_symbol_info.
9503 <obj_section, unrelocated_address, address,
9504 set_unrelocated_address>: Update.
9505 <ginfo>: New member.
9506 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9507 (debug_names::write_psymbols): Update.
9509 2019-05-04 Tom de Vries <tdevries@suse.de>
9511 * contrib/cc-with-tweaks.sh: Support -n arg.
9513 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9515 * corelow.c (core_target::detach): Ensure frame cache and
9516 register caches are cleared.
9517 inferior.c (exit_inferior_1): Likewise.
9519 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9520 Tom Tromey <tom@tromey.com>
9522 * dictionary.c (collate_pending_symbols_by_language): Remove
9523 "struct" from foreach.
9524 * symtab.c (lookup_global_symbol_from_objfile)
9525 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9527 * ser-tcp.c (net_open): Remove "struct" from foreach.
9528 * objfiles.c (objfile_relocate, objfile_rebase)
9529 (objfile_has_symbols): Remove "struct" from foreach.
9530 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9532 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9534 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9535 "struct" from foreach.
9536 * ada-lang.c (create_excep_cond_exprs)
9537 (ada_exception_catchpoint_cond_string): Remove "struct" from
9540 2019-05-03 Tom Tromey <tromey@adacore.com>
9542 * ada-exp.y (convert_char_literal): Check suffix of each
9545 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9548 * ada-exp.y (yywrap): Don't define.
9549 * ada-lex.l (%option): Add noyywrap
9552 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9554 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9555 _WIN32_WINNT to the XP level, unless already defined to a higher
9558 * unittests/parse-connection-spec-selftests.c:
9560 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9563 * symfile.c (find_separate_debug_file): Remove colon from the
9564 drive spec of DOS/Windows file names of the target, so that the
9565 file name produced from DEBUGDIR and the target's directory will
9566 be valid on DOS/Windows systems.
9568 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9570 * rust-lang.c (val_print_struct): Handle printing structures
9573 2019-05-02 Tom Tromey <tromey@adacore.com>
9575 * valarith.c (_initialize_valarith): Remove.
9577 2019-05-01 Tom Tromey <tromey@adacore.com>
9579 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9582 2019-05-01 Tom Tromey <tromey@adacore.com>
9584 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9585 for big-endian copies.
9587 2019-04-30 Ali Tamur <tamur@google.com>
9588 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9589 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9590 (read_3_bytes): New function.
9592 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9594 * windows-nat.c (main_thread_id): Delete.
9595 (handle_output_debug_string): Replace main_thread_id by
9596 current_event.dwThreadId.
9597 (fake_create_process): Likewise.
9598 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9599 Do not set main_thread_id.
9600 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9601 current_event.dwThreadId.
9602 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9604 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9606 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9607 Use current_event.dwThreadId instead of main_thread_id.
9609 2019-04-30 Tom Tromey <tromey@adacore.com>
9611 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9612 (create_excep_cond_exprs): Iterate over program spaces.
9613 (ada_exception_catchpoint_cond_string): Examine all minimal
9614 symbols for exception types.
9616 2019-04-30 Tom Tromey <tromey@adacore.com>
9619 * dwarf2read.c (process_structure_scope): Handle case where type
9620 has template parameters but no symbol was created.
9622 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9623 Chris January <chris.january@arm.com>
9625 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9627 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9629 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9631 * f-typeprint.c (f_print_type): Update rules for printing
9633 (f_type_print_varspec_suffix): Likewise.
9635 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9636 Chris January <chris.january@arm.com>
9638 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9641 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9643 * f-lang.c (build_fortran_types): Change name of void type to
9645 * f-typeprint.c (f_type_print_base): Print the name of the void
9646 type, rather than a fixed string.
9647 * f-valprint.c (f_decorations): Use lower case void string.
9649 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9650 Chris January <chris.january@arm.com>
9652 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9655 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9656 Chris January <chris.january@arm.com>
9657 David Lecomber <david.lecomber@arm.com>
9659 * f-exp.y (BINOP_INTRINSIC): New token.
9660 (exp): New parser rule handling BINOP_INTRINSIC.
9661 (f77_keywords): Add new builtin procedures.
9662 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9663 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9664 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9665 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9666 (print_unop_subexp_f): New function.
9667 (print_binop_subexp_f): New function.
9668 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9669 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9670 (dump_subexp_body_f): Likewise.
9671 (operator_check_f): Likewise.
9672 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9673 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9675 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9677 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9679 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9680 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9681 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9682 (operator_length_f): New fuction.
9683 (print_subexp_f): New function.
9684 (op_name_f): New function.
9685 (dump_subexp_body_f): New function.
9686 (operator_check_f): New function.
9687 (exp_descriptor_f): Replace standard expression handling functions
9689 * gdb/fortran-operator.def: New file.
9690 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9691 * gdb/std-operator.def: Remove UNOP_KIND.
9693 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9695 * std-operator.def: Remove unbalanced, stray double quote
9698 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9699 Chris January <chris.january@arm.com>
9700 Daniel Everett <daniel.everett@arm.com>
9701 Nick Forrington <nick.forrington@arm.com>
9702 Richard Bunt <richard.bunt@arm.com>
9704 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9705 of depth when printing anonymous structs or unions.
9706 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9707 Don't print either the top-level value, or the children if the
9708 max-depth is exceeded.
9709 (ppscm_print_children): When printing the key of a map, allow one
9710 extra level of depth.
9711 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9712 print either the top-level value, or the children if the max-depth
9714 (print_children): When printing the key of a map, allow one extra
9716 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9717 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9718 (user_print_options): Initialise max_depth field.
9719 (val_print_scalar_or_string_type_p): New function.
9720 (val_print): Check to see if the max depth has been reached.
9721 (val_print_check_max_depth): Define new function.
9722 (show_print_max_depth): New function.
9723 (_initialize_valprint): Add 'print max-depth' option.
9724 * valprint.h (struct value_print_options) <max_depth>: New field.
9725 (val_print_check_max_depth): Declare new function.
9726 * NEWS: Document new feature.
9728 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9730 * ada-lang.c (ada_language_defn): Initialise new field.
9731 * c-lang.c (c_is_string_type_p): New function.
9732 (c_language_defn): Initialise new field.
9733 (cplus_language_defn): Initialise new field.
9734 (asm_language_defn): Initialise new field.
9735 (minimal_language_defn): Initialise new field.
9736 * c-lang.h (c_is_string_type_p): Declare new function.
9737 * d-lang.c (d_language_defn): Initialise new field.
9738 * f-lang.c (f_is_string_type_p): New function.
9739 (f_language_defn): Initialise new field.
9740 * go-lang.c (go_is_string_type_p): New function.
9741 (go_language_defn): Initialise new field.
9742 * language.c (default_is_string_type_p): New function.
9743 (unknown_language_defn): Initialise new field.
9744 (auto_language_defn): Initialise new field.
9745 * language.h (struct language_defn) <la_is_string_type_p>: New
9747 (default_is_string_type_p): Declare new function.
9748 * m2-lang.c (m2_language_defn): Initialise new field.
9749 * objc-lang.c (objc_language_defn): Initialise new field.
9750 * opencl-lang.c (opencl_language_defn): Initialise new field.
9751 * p-lang.c (pascal_is_string_type_p): New function.
9752 (pascal_language_defn): Initialise new field.
9753 * rust-lang.c (rust_is_string_type_p): New function.
9754 (rust_language_defn): Initialise new field.
9756 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9758 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9760 * ada-lang.c (ada_language_defn): Initialise new field.
9761 * c-lang.c (c_language_defn): Likewise.
9762 (cplus_language_defn): Likewise.
9763 (asm_language_defn): Likewise.
9764 (minimal_language_defn): Likewise.
9765 * d-lang.c (d_language_defn): Likewise.
9766 * f-lang.c (f_language_defn): Likewise.
9767 * go-lang.c (go_language_defn): Likewise.
9768 * language.c (unknown_language_defn): Likewise.
9769 (auto_language_defn): Likewise.
9770 * m2-lang.c (m2_language_defn): Likewise.
9771 * objc-lang.c (objc_language_defn): Likewise.
9772 * opencl-lang.c (opencl_language_defn): Likewise.
9773 * p-lang.c (pascal_language_defn): Likewise.
9774 * rust-lang.c (rust_language_defn): Likewise.
9776 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9778 * ada-lang.c (ada_is_character_type): Change return type to bool.
9779 (ada_is_string_type): Likewise.
9780 * ada-lang.h (ada_is_character_type): Update declaration
9781 (ada_is_string_type): Likewise.
9783 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9785 Support style in 'frame|thread apply'
9787 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9788 * record.c (record_start, record_stop): Update callers of
9789 execute_command_to_string with false.
9790 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9791 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9793 (class string_file): New constructor with term_out parameter.
9794 Override methods term_out and can_emit_style_escape. New member
9796 (class stdio_file): Override can_emit_style_escape.
9797 (class tee_file): Override term_out and can_emit_style_escape.
9798 * utils.h (can_emit_style_escape): Remove.
9799 * utils.c (can_emit_style_escape): Likewise.
9800 Update all callers of can_emit_style_escape (SOMESTREAM) to
9801 SOMESTREAM->can_emit_style_escape.
9802 * source-cache.c (source_cache::get_source_lines): Likewise.
9803 * stack.c (frame_apply_command_count): Call execute_command_to_string
9804 passing the term_out characteristic of the current gdb_stdout.
9805 * thread.c (thr_try_catch_cmd): Likewise.
9806 * top.c (execute_command_to_string): pass term_out parameter
9807 to construct the string_file for the command output.
9808 * ui-file.c (term_cli_styling): New function (most code moved
9809 from utils.c can_emit_style_escape).
9810 (string_file::string_file, string_file::can_emit_style_escape,
9811 stdio_file::can_emit_style_escape, tee_file::term_out,
9812 tee_file::can_emit_style_escape): New functions.
9814 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9816 * NEWS: Mention the new set|show may-call-functions.
9817 * infcall.c (may_call_functions_p): New variable.
9818 (show_may_call_functions_p): New function.
9819 (call_function_by_hand_dummy): Throws an error if not
9821 (_initialize_infcall): Call add_setshow_boolean_cmd for
9824 2019-04-25 Keith Seitz <keiths@redhat.com>
9827 * cp-support.c (inspect_type): Don't attempt substitutions
9828 of symbol with the same name.
9830 2019-04-25 Tom Tromey <tromey@adacore.com>
9833 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9836 2019-04-25 Tom Tromey <tromey@adacore.com>
9838 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9840 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9841 (gdb_xml_parser::parse): Use std::move.
9842 * python/python-internal.h (gdbpy_convert_exception): Take a const
9844 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9846 * python/py-utils.c (gdbpy_convert_exception): Take a const
9848 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9850 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9852 * mi/mi-main.c (mi_print_exception): Take a const reference.
9853 * main.c (handle_command_errors): Take a const reference.
9854 * linespec.c (parse_linespec): Use std::move.
9855 * infcall.c (run_inferior_call): Use std::move.
9856 (call_function_by_hand_dummy): Use std::move.
9857 * exec.c (try_open_exec_file): Use std::move.
9858 * exceptions.h (exception_print, exception_fprintf)
9859 (exception_print_same): Update.
9860 * exceptions.c (print_exception, exception_print)
9861 (exception_fprintf, exception_print_same): Change parameters to
9863 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9864 * common/new-op.c: Use std::move.
9865 * common/common-exceptions.h (struct gdb_exception): Add move
9867 (struct gdb_exception_error, struct gdb_exception_quit, struct
9868 gdb_quit_bad_alloc): Change constructor to move constructor.
9869 (throw_exception): Change parameter to rvalue reference.
9870 * common/common-exceptions.c (throw_exception): Take rvalue
9872 * cli/cli-interp.c (safe_execute_command): Use std::move.
9873 * breakpoint.c (insert_bp_location, location_to_sals): Use
9876 2019-04-25 Tom Tromey <tromey@adacore.com>
9878 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9879 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9880 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9881 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9882 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9883 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9884 guile/scm-value.c: Use unpack.
9885 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9886 gdbscm_gdb_exception.
9887 (gdbscm_throw_gdb_exception): Likewise.
9888 (struct gdbscm_gdb_exception): New.
9889 (unpack): New function.
9890 (gdbscm_wrap): Use unpack.
9892 2019-04-25 Tom Tromey <tromey@adacore.com>
9894 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9895 (gdb_rl_callback_handler): Use std::move.
9896 * common/common-exceptions.h (struct gdb_exception): Add move
9897 assignment operator.
9898 (throw_exception_sjlj): Change "exception" to const reference.
9899 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9900 (throw_exception_sjlj): Change "exception" to const reference.
9902 2019-04-25 Tom Tromey <tromey@adacore.com>
9904 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9905 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9906 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9908 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9910 * mi/mi-interp.c (mi_interp::exec): Update.
9911 * linespec.c (parse_linespec): Update.
9912 * infcall.c (run_inferior_call): Update.
9913 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9914 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9915 (gdbscm_lookup_global_symbol): Update.
9916 * guile/scm-param.c (gdbscm_parameter_value): Update.
9917 * guile/scm-frame.c (gdbscm_frame_read_register)
9918 (gdbscm_frame_read_var): Update.
9919 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9920 * exec.c (try_open_exec_file): Update.
9921 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9922 (gdb_rl_callback_handler): Update.
9923 * common/common-exceptions.h (exception_none): Don't declare.
9924 * common/common-exceptions.c (exception_none): Don't define.
9925 (struct catcher) <exception>: Update.
9926 * cli/cli-interp.c (safe_execute_command): Update.
9927 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9929 2019-04-25 Ali Tamur <tamur@google.com>
9931 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9932 (read_attribute_value): Likewise.
9933 (dwarf2_read_addr_index): Update comment.
9934 (read_str_index): Add DW_FORM_strx.
9935 (dwarf2_string_attr): Likewise.
9936 (dwarf2_const_value_attr): Likewise.
9937 (dump_die_shallow): Likewise.
9938 (dwarf2_fetch_constant_bytes): Likewise.
9939 (skip_form_bytes): Likewise.
9940 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9942 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9946 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9947 OFFSET. Verify if current mapping contains an ELF header.
9948 (linux_find_memory_regions_full): Adjust call to
9951 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9952 Kang Li <kanglictf@gmail.com>
9956 * dwarf2-frame.c (read_initial_length): Be consistent about using
9957 unsigned representation of length.
9958 (decode_frame_entry_1): Likewise. Check for wraparound of
9959 end pointer as well as buffer overflow.
9961 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9963 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9966 2019-04-24 Tom Tromey <tromey@adacore.com>
9968 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9972 * s12z-tdep.c (s12z_unwind_pc): Delete.
9973 (s12z_unwind_sp): Delete.
9974 (s12z_gdbarch_init): Don't register deleted functions with
9977 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9979 * rl78-tdep.c (rl78_unwind_sp): Delete.
9980 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9982 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9984 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9985 (xstormy16_unwind_pc): Delete.
9986 (xstormy16_dummy_id): Delete.
9987 (xstormy16_gdbarch_init): Don't register deleted functions with
9990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9992 * vax-tdep.c (vax_unwind_pc): Delete.
9993 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9995 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9997 * v850-tdep.c (v850_unwind_sp): Delete.
9998 (v850_unwind_pc): Delete.
9999 (v850_dummy_id): Delete.
10000 (v850_gdbarch_init): Don't register deleted functions with
10003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10005 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10006 (tilegx_unwind_pc): Delete.
10007 (tilegx_unwind_dummy_id): Delete.
10008 (tilegx_gdbarch_init): Don't register deleted functions with
10011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10013 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10014 (tic6x_dummy_id): Delete.
10015 (tic6x_gdbarch_init): Don't register deleted functions with
10018 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10020 * sparc-tdep.c (sparc_unwind_pc): Delete.
10021 (sparc32_gdbarch_init): Don't register deleted function with
10024 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10026 * sh-tdep.c (sh_unwind_sp): Delete.
10027 (sh_unwind_pc): Delete.
10028 (sh_dummy_id): Delete.
10029 (sh_gdbarch_init): Don't register deleted functions with
10032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10034 * score-tdep.c (score_unwind_sp): Delete.
10035 (score_unwind_pc): Delete.
10036 (score_dummy_id): Delete.
10037 (score_gdbarch_init): Don't register deleted functions with
10040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10042 * rx-tdep.c (rx_unwind_pc): Delete.
10043 (rx_unwind_sp): Delete.
10044 (rx_dummy_id): Delete.
10045 (rx_gdbarch_init): Don't register deleted functions with
10046 gdbarch. Update comment.
10048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10050 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10051 (rs6000_dummy_id): Delete.
10052 (rs6000_gdbarch_init): Don't register deleted functions with
10055 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10057 * or1k-tdep.c (or1k_dummy_id): Delete.
10058 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10062 * nios2-tdep.c (nios2_dummy_id): Delete.
10063 (nios2_unwind_sp): Delete.
10064 (nios2_gdbarch_init): Don't register deleted functions with
10067 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10069 * nds32-tdep.c (nds32_dummy_id): Delete.
10070 (nds32_unwind_pc): Delete.
10071 (nds32_unwind_sp): Delete.
10072 (nds32_gdbarch_init): Don't register deleted functions with
10075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10077 * msp430-tdep.c (msp430_unwind_pc): Delete.
10078 (msp430_unwind_sp): Delete.
10079 (msp430_dummy_id): Delete.
10080 (msp430_gdbarch_init): Don't register deleted functions with
10083 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10085 * moxie-tdep.c (moxie_unwind_sp): Delete.
10086 (moxie_unwind_pc): Delete.
10087 (moxie_dummy_id): Delete.
10088 (moxie_gdbarch_init): Don't register deleted functions with
10091 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10093 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10094 (mn10300_unwind_pc): Delete.
10095 (mn10300_unwind_sp): Delete.
10096 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10098 (mn10300_frame_unwind_init): Don't register deleted functions with
10101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10103 * mep-tdep.c (mep_unwind_pc): Delete.
10104 (mep_unwind_sp): Delete.
10105 (mep_dummy_id): Delete.
10106 (mep_gdbarch_init): Don't register deleted functions with
10109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10111 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10112 (m68hc11_unwind_sp): Delete.
10113 (m68hc11_gdbarch_init): Don't register deleted functions with
10116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10118 * m32r-tdep.c (m32r_unwind_sp): Delete.
10119 (m32r_unwind_pc): Delete.
10120 (m32r_dummy_id): Delete.
10121 (m32r_gdbarch_init): Don't register deleted functions with
10124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10126 * m32c-tdep.c (m32c_unwind_pc): Delete.
10127 (m32c_unwind_sp): Delete.
10128 (m32c_dummy_id): Delete.
10129 (m32c_gdbarch_init): Don't register deleted functions with
10132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10134 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10135 (lm32_unwind_pc): Delete.
10136 (lm32_dummy_id): Delete.
10137 (lm32_gdbarch_init): Don't register deleted functions with
10140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10142 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10143 (iq2000_unwind_pc): Delete.
10144 (iq2000_dummy_id): Delete.
10145 (iq2000_gdbarch_init): Don't register deleted functions with
10148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10150 * nds32-tdep.c (nds32_type_align): Delete.
10151 (nds32_push_dummy_call): Use type_align instead.
10153 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10155 * arm-tdep.c (arm_type_align): Only handle vector override case.
10156 (arm_push_dummy_call): Use type_align.
10157 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10159 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10161 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10163 (pass_on_stack): Use type_align.
10164 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10167 2019-04-23 Tom Tromey <tromey@adacore.com>
10169 * dwarf2read.c (line_header::file_name_at): Remove unused
10172 2019-04-23 Tom de Vries <tdevries@suse.de>
10175 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10179 2019-03-27 Ali Tamur <tamur@google.com>
10181 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10182 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10183 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10184 (dwarf_expr_context::get_addr_index): Likewise
10185 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10186 (symbol_needs_eval_context::get_addr_index): Likewise
10187 (disassemble_dwarf_expression): Add DW_OP_addrx
10188 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10189 (read_cutu_die_from_dwo): Update comment
10190 (skip_one_die): Add DW_FORM_addrx
10191 (read_attribute_value): Likewise
10192 (var_decode_location): Add DW_OP_addrx
10193 (dwarf2_const_value_attr): Add DW_FORM_addrx
10194 (dump_die_shallow): Likewise
10195 (dwarf2_fetch_constant_bytes): Likewise
10196 (decode_locdesc): Add DW_OP_addrx
10197 (skip_form_bytes): Add DW_FORM_addrx
10199 2019-04-22 Ali Tamur <tamur@google.com>
10201 * MAINTAINERS (Write After Approval): Add self.
10203 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10205 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10206 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10207 (open_symbol_file_object): Likewise.
10208 (svr4_default_sos): Add info parameter.
10209 (svr4_read_so_list): Likewise.
10210 (svr4_current_sos_direct): Adjust functions calls to pass down
10212 (svr4_current_sos_1): Add info parameter.
10213 (svr4_current_sos): Call get_svr4_info, pass info down to
10214 svr4_current_sos_1.
10215 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10217 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10219 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10221 (probes_table_remove_objfile_probes): Likewise.
10222 (register_solib_event_probe): Add info parameter.
10223 (solist_update_incremental): Pass info parameter down to
10225 (disable_probes_interface): Add info parameter.
10226 (svr4_handle_solib_event): Pass current_program_space to
10227 get_svr4_info. Adjust disable_probes_interface cleanup.
10228 (svr4_create_probe_breakpoints): Add info parameter, pass it
10229 down to register_solib_event_probe.
10230 (svr4_create_solib_event_breakpoints): Add info parameter,
10231 pass it down to svr4_create_probe_breakpoints.
10232 (enable_break): Pass info down to
10233 svr4_create_solib_event_breakpoints.
10234 (svr4_solib_create_inferior_hook): Pass current_program_space to
10236 (svr4_clear_solib): Likewise.
10238 2019-04-22 Pedro Alves <palves@redhat.com>
10240 * solib-svr4.c (svr4_free_objfile_observer): New.
10241 (probe_and_action::objfile): New field.
10242 (probes_table_htab_remove_objfile_probes)
10243 (probes_table_remove_objfile_probes): New functions.
10244 (register_solib_event_probe): Add 'objfile' parameter. Store it
10245 in the new probe_and_action. Don't store the probe in 'lookup'.
10246 (svr4_create_probe_breakpoints): Pass objfile to
10247 register_solib_event_probe.
10248 (_initialize_svr4_solib): Register a free_objfile observer.
10250 2019-04-19 Tom Tromey <tom@tromey.com>
10252 * common/queue.h: Remove.
10254 2019-04-19 Tom Tromey <tom@tromey.com>
10256 * event-loop.c: Don't include "common/queue.h".
10258 2019-04-19 Tom Tromey <tom@tromey.com>
10260 * remote.c (remote_target): Use delete.
10261 * remote-notif.h: Include <list>, not "common/queue.h".
10262 (notif_client_p): Remove typedef.
10263 (remote_notif_state): Add constructor, destructor, initializer.
10264 <notif_queue>: Now a std::list.
10265 (remote_notif_state_xfree): Don't declare.
10266 * remote-notif.c (remote_notif_process, handle_notification)
10267 (remote_notif_state_allocate): Update.
10268 (~remote_notif_state): Rename from remote_notif_state_xfree.
10270 2019-04-19 Tom Tromey <tom@tromey.com>
10272 * symfile.c (reread_symbols): Update.
10273 * objfiles.c (objfile_register_static_link)
10274 (objfile_lookup_static_link): Update
10275 (~objfile) Don't delete static_links.
10276 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10278 2019-04-19 Tom Tromey <tom@tromey.com>
10280 * type-stack.h (struct type_stack) <insert>: Constify string.
10281 * type-stack.c (type_stack::insert): Constify string.
10282 * gdbtypes.h (lookup_template_type): Update.
10283 (address_space_name_to_int): Update.
10284 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10286 (lookup_template_type): Make name const.
10287 * c-exp.y: Update rules.
10288 (lex_one_token, classify_name, classify_inner_name)
10289 (c_print_token): Update.
10290 * p-exp.y: Update rules.
10292 * f-exp.y: Update rules.
10294 * d-exp.y: Update rules.
10295 (lex_one_token, classify_name, classify_inner_name): Update.
10296 * parse.c (write_dollar_variable, copy_name): Return std::string.
10297 * parser-defs.h (copy_name): Change return type.
10298 * m2-exp.y: Update rules.
10300 * go-exp.y (lex_one_token): Update.
10302 (classify_unsafe_function, classify_packaged_name)
10303 (classify_name, yylex): Update.
10305 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10307 * configure.ac: add --enable-source-highlight switch.
10308 * configure: Regenerate.
10309 * top.c (print_gdb_version): plumb --enable-source-highlight
10310 status to "show configuration".
10312 2019-04-19 Tom Tromey <tromey@adacore.com>
10314 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10316 (empty_record, ada_template_to_fixed_record_type_1)
10317 (template_to_static_fixed_type)
10318 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10319 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10320 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10323 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10326 * source.c (print_source_lines_base): Advance "iter" when a
10327 control character is seen.
10329 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10331 * inferior.h (struct infcall_suspend_state_deleter):
10332 Catch exception in destructor to avoid crash.
10334 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10336 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10337 close to the add_com "shell".
10339 2019-04-18 Tom Tromey <tromey@adacore.com>
10341 * process-stratum-target.h (class process_stratum_target)
10342 <stratum>: Add "final".
10344 2019-04-17 Tom Tromey <tromey@adacore.com>
10346 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10347 against nullptr before use.
10349 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10351 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10353 2019-04-17 Jim Wilson <jimw@sifive.com>
10354 Andrew Burgess <andrew.burgess@embecosm.com>
10356 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10357 code read might fail, assume 4-byte breakpoint in that case.
10359 2019-04-15 Leszek Swirski <leszeks@google.com>
10361 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10362 rather than a hand-rolled POD check when checking for forced MEMORY
10365 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10367 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10368 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10370 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10371 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10372 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10375 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10377 * aarch64-linux-nat.c
10378 (aarch64_linux_nat_target::thread_architecture): Add override.
10379 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10382 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10384 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10386 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10388 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10389 target types of size 96-bits, add some additional comments, and
10390 check that the builtin type we found was the correct size.
10392 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10394 * utils.c (prompt_for_continue): Don't restore the styling at the
10395 end, as applied_style has the wrong value. This fixes styling in
10396 long lists of file names that are interrupted by the "Continue?"
10399 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10401 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10402 * c-lang.c (c_language_defn): Likewise.
10403 (cplus_language_defn): Likewise.
10404 (asm_language_defn): Likewise.
10405 (minimal_language_defn): Likewise.
10406 * d-lang.c (d_language_defn): Likewise.
10407 * f-lang.c (f_language_defn): Likewise.
10408 * go-lang.c (go_language_defn): Likewise.
10409 * language.c (unknown_language_defn): Likewise.
10410 (auto_language_defn): Likewise.
10411 * language.h (struct language_defn): Remove la_magic field.
10412 (LANG_MAGIC): Delete.
10413 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10414 * objc-lang.c (objc_language_defn): Likewise.
10415 * opencl-lang.c (opencl_language_defn): Likewise.
10416 * p-lang.c (pascal_language_defn): Likewise.
10417 * rust-lang.c (rust_language_defn): Likewise.
10419 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10421 * riscv-tdep.c (riscv_type_align): New function.
10422 (riscv_type_alignment): Delete.
10423 (riscv_arg_location): Use 'type_align'.
10424 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10426 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10428 * gdbtypes.c (type_align): A struct with no non-static fields also
10429 has alignment of 1.
10431 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10433 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10435 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10437 (riscv_struct_info::analyse): New implementation using new
10438 analyse_inner member function.
10439 (riscv_struct_info::field_offset): New member function.
10440 (riscv_struct_info::m_offsets): New member variable.
10441 (riscv_struct_info::analyse_inner): New private member function,
10442 takes the old implementation of riscv_struct_info::analyse but
10443 extended to track field offsets.
10444 (riscv_call_arg_struct): Update the struct folding special cases
10445 to handle cases where empty C++ structs, which are non-zero
10447 (riscv_arg_location): Initialise the length of each location, a
10448 non-zero length now indicates the location is in use.
10449 (riscv_push_dummy_call): Allow for the first location having a
10450 non-zero offset when setting up arguments.
10451 (riscv_return_value): Likewise, but for return values.
10453 2019-04-11 Tom Tromey <tromey@adacore.com>
10455 * utils.c (internal_vproblem): Make "msg" const.
10457 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10459 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10460 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10461 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10462 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10464 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10466 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10468 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10469 of amd64_collect_native_gregset.
10470 (amd64_linux_nat_target::store_registers): Likewise.
10472 2019-04-10 Tom Tromey <tom@tromey.com>
10474 * symtab.c (lookup_global_symbol_from_objfile)
10475 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10476 * objfiles.h (class separate_debug_iterator): New.
10477 (class separate_debug_range): New.
10478 (struct objfile) <separate_debug_objfiles>: New method.
10479 (objfile_separate_debug_iterate): Don't declare.
10480 * objfiles.c (separate_debug_iterator::operator++): Rename from
10481 objfile_separate_debug_iterate.
10482 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10484 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10487 2019-04-10 Tom Tromey <tom@tromey.com>
10489 * symfile.c (reread_symbols): Remove old comment.
10490 * objfiles.c (free_all_objfiles): Fix a typo.
10492 2019-04-10 Tom Tromey <tom@tromey.com>
10494 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10495 * minsyms.c (lookup_minimal_symbol): Use foreach.
10496 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10497 (lookup_minimal_symbol_solib_trampoline): Likewise.
10498 * symfile.c (reread_symbols): Use foreach.
10500 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10501 Tom Tromey <tromey@adacore.com>
10504 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10505 (rust_lex_int_test): Change "value" to be LONGEST.
10506 (rust_lex_tests): Add test for long integer literal.
10508 2019-04-09 Tom Tromey <tromey@adacore.com>
10510 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10512 (extended_remote_target::attach): Update.
10513 (remote_target::remote_notice_new_inferior): Update.
10514 (remote_target::add_current_inferior_and_thread): Update.
10515 * inferior.c (exit_inferior_1): Use "false".
10516 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10518 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10520 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10521 the "start" command.
10523 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10525 * python/py-inferior.c (infpy_thread_from_thread_handle):
10526 Adjust comments to reflect renaming of thread_from_thread_handle
10527 to thread_from_handle. Adjust keywords. Fix type error message.
10528 (inferior_object_methods): Add thread_from_handle. Retain
10529 thread_from_thread_handle, but mark it as deprecated.
10531 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10533 * gdbthread.h (find_thread_by_handle): Revise declaration.
10534 * thread.c (find_thread_by_handle): Likewise. Adjust
10535 implementation too.
10536 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10537 support for buffer objects as handles.
10539 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10541 * python/py-infthread.c (thpy_thread_handle): New function.
10542 (thread_object_methods): Register thpy_thread_handle.
10544 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10546 * gdbthread.h (thread_to_thread_handle): Declare.
10547 * thread.c (gdbtypes.h): Include.
10548 (thread_to_thread_handle): New function.
10550 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10551 (target_thread_info_to_thread_handle): Declare.
10552 * target.c (target_thread_info_to_thread_handle): New function.
10553 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10554 * target-delegates.c: Regenerate.
10556 * linux-thread-db.c (class thread_db_target): Add method
10557 thread_info_to_thread_handle.
10558 (thread_db_target::thread_info_to_thread_handle): Define.
10559 * remote.c (class remote_target): Add new method
10560 thread_info_to_thread_handle.
10561 (remote_target::thread_info_to_thread_handle): Define.
10563 2019-04-08 Pedro Alves <palves@redhat.com>
10565 * common/common-exceptions.c (throw_exception): Don't create
10566 named object to throw; throw directly.
10567 (throw_it): Likewise. Don't initialize gdb_exception::message
10568 here, with new; pass FMT and AP to the ctor instead.
10569 * common/common-exceptions.h: Include <string>.
10570 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10571 const char *, va_list)): New ctor. Use std::make_shared.
10572 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10574 (gdb_exception_error::gdb_exception_error(enum errors, const char
10576 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10578 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10580 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10581 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10584 2019-04-08 Tom Tromey <tom@tromey.com>
10586 * valops.c (value_rtti_indirect_type): Replace throw_exception
10588 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10590 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10592 * target.c (target_translate_tls_address): Replace throw_exception
10594 * stack.c (frame_apply_command_count): Replace throw_exception
10596 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10598 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10600 * rs6000-tdep.c (rs6000_frame_cache)
10601 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10602 * remote.c: Replace throw_exception with throw.
10603 * record-full.c (record_full_message, record_full_wait_1)
10604 (record_full_restore): Replace throw_exception with throw.
10606 (get_thread_current_frame_id, record_btrace_start_replaying)
10607 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10608 (cmd_record_btrace_start): Replace throw_exception with throw.
10609 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10611 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10612 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10614 (find_linespec_symbols): Replace throw_exception with throw.
10615 * infrun.c (displaced_step_prepare, resume): Replace
10616 throw_exception with throw.
10617 * infcmd.c (post_create_inferior): Replace throw_exception with
10619 * inf-loop.c (inferior_event_handler): Replace throw_exception
10621 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10622 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10623 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10624 (get_prev_frame_always, get_frame_pc_if_available)
10625 (get_frame_address_in_block_if_available, get_frame_language):
10626 Replace throw_exception with throw.
10627 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10628 throw_exception with throw.
10629 * eval.c (fetch_subexp_value, evaluate_var_value)
10630 (evaluate_funcall, evaluate_subexp_standard): Replace
10631 throw_exception with throw.
10632 * dwarf2loc.c (call_site_find_chain)
10633 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10634 Replace throw_exception with throw.
10635 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10637 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10639 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10640 * completer.c (complete_line_internal): Replace throw_exception
10642 * compile/compile-object-run.c (compile_object_run): Replace
10643 throw_exception with throw.
10644 * cli/cli-script.c (process_next_line): Replace throw_exception
10646 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10647 (btrace_enable, btrace_maint_update_pt_packets): Replace
10648 throw_exception with throw.
10649 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10650 throw_exception with throw.
10651 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10652 throw_exception with throw.
10653 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10654 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10655 * aarch64-tdep.c (aarch64_make_prologue_cache)
10656 (aarch64_make_stub_cache): Replace throw_exception with throw.
10658 2019-04-08 Tom Tromey <tom@tromey.com>
10660 * common/common-exceptions.c (throw_exception): Rename from
10661 throw_exception_cxx. Remove old copy. Make argument const.
10662 (throw_it): Create and throw exception objects directly.
10663 * common/common-exceptions.h (throw_exception): Make argument
10665 (struct gdb_exception_error): Add constructor.
10666 (struct gdb_exception_quit): Add constructor.
10668 2019-04-08 Tom Tromey <tom@tromey.com>
10670 * common/common-exceptions.h (exception_rethrow): Don't declare.
10671 (TRY_SJLJ): Update comment.
10672 (TRY, CATCH, END_CATCH): Remove.
10673 * common/common-exceptions.c (exception_rethrow): Remove.
10675 2019-04-08 Tom Tromey <tom@tromey.com>
10677 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10679 (gdb_exception_error): Rename from
10680 gdb_exception_RETURN_MASK_ERROR.
10681 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10682 (gdb_quit_bad_alloc): Update.
10683 * aarch64-tdep.c: Update.
10684 * ada-lang.c: Update.
10685 * ada-typeprint.c: Update.
10686 * ada-valprint.c: Update.
10687 * amd64-tdep.c: Update.
10688 * arch-utils.c: Update.
10689 * break-catch-throw.c: Update.
10690 * breakpoint.c: Update.
10691 * btrace.c: Update.
10692 * c-varobj.c: Update.
10693 * cli/cli-cmds.c: Update.
10694 * cli/cli-interp.c: Update.
10695 * cli/cli-script.c: Update.
10696 * common/common-exceptions.c: Update.
10697 * common/new-op.c: Update.
10698 * common/selftest.c: Update.
10699 * compile/compile-c-symbols.c: Update.
10700 * compile/compile-cplus-symbols.c: Update.
10701 * compile/compile-object-load.c: Update.
10702 * compile/compile-object-run.c: Update.
10703 * completer.c: Update.
10704 * corelow.c: Update.
10705 * cp-abi.c: Update.
10706 * cp-support.c: Update.
10707 * cp-valprint.c: Update.
10708 * darwin-nat.c: Update.
10709 * disasm-selftests.c: Update.
10710 * dtrace-probe.c: Update.
10711 * dwarf-index-cache.c: Update.
10712 * dwarf-index-write.c: Update.
10713 * dwarf2-frame-tailcall.c: Update.
10714 * dwarf2-frame.c: Update.
10715 * dwarf2loc.c: Update.
10716 * dwarf2read.c: Update.
10718 * event-loop.c: Update.
10719 * event-top.c: Update.
10721 * f-valprint.c: Update.
10722 * fbsd-tdep.c: Update.
10723 * frame-unwind.c: Update.
10725 * gdbtypes.c: Update.
10726 * gnu-v3-abi.c: Update.
10727 * guile/guile-internal.h: Update.
10728 * guile/scm-block.c: Update.
10729 * guile/scm-breakpoint.c: Update.
10730 * guile/scm-cmd.c: Update.
10731 * guile/scm-disasm.c: Update.
10732 * guile/scm-frame.c: Update.
10733 * guile/scm-lazy-string.c: Update.
10734 * guile/scm-math.c: Update.
10735 * guile/scm-param.c: Update.
10736 * guile/scm-ports.c: Update.
10737 * guile/scm-pretty-print.c: Update.
10738 * guile/scm-symbol.c: Update.
10739 * guile/scm-symtab.c: Update.
10740 * guile/scm-type.c: Update.
10741 * guile/scm-value.c: Update.
10742 * i386-linux-tdep.c: Update.
10743 * i386-tdep.c: Update.
10744 * inf-loop.c: Update.
10745 * infcall.c: Update.
10746 * infcmd.c: Update.
10747 * infrun.c: Update.
10749 * language.c: Update.
10750 * linespec.c: Update.
10751 * linux-fork.c: Update.
10752 * linux-nat.c: Update.
10753 * linux-tdep.c: Update.
10754 * linux-thread-db.c: Update.
10756 * mi/mi-cmd-break.c: Update.
10757 * mi/mi-cmd-stack.c: Update.
10758 * mi/mi-interp.c: Update.
10759 * mi/mi-main.c: Update.
10760 * objc-lang.c: Update.
10761 * p-valprint.c: Update.
10763 * ppc-linux-tdep.c: Update.
10764 * printcmd.c: Update.
10765 * python/py-arch.c: Update.
10766 * python/py-breakpoint.c: Update.
10767 * python/py-cmd.c: Update.
10768 * python/py-finishbreakpoint.c: Update.
10769 * python/py-frame.c: Update.
10770 * python/py-framefilter.c: Update.
10771 * python/py-gdb-readline.c: Update.
10772 * python/py-inferior.c: Update.
10773 * python/py-infthread.c: Update.
10774 * python/py-lazy-string.c: Update.
10775 * python/py-linetable.c: Update.
10776 * python/py-objfile.c: Update.
10777 * python/py-param.c: Update.
10778 * python/py-prettyprint.c: Update.
10779 * python/py-progspace.c: Update.
10780 * python/py-record-btrace.c: Update.
10781 * python/py-record.c: Update.
10782 * python/py-symbol.c: Update.
10783 * python/py-type.c: Update.
10784 * python/py-unwind.c: Update.
10785 * python/py-utils.c: Update.
10786 * python/py-value.c: Update.
10787 * python/python.c: Update.
10788 * record-btrace.c: Update.
10789 * record-full.c: Update.
10790 * remote-fileio.c: Update.
10791 * remote.c: Update.
10792 * riscv-tdep.c: Update.
10793 * rs6000-aix-tdep.c: Update.
10794 * rs6000-tdep.c: Update.
10795 * rust-exp.y: Update.
10796 * rust-lang.c: Update.
10797 * s390-tdep.c: Update.
10798 * selftest-arch.c: Update.
10799 * solib-dsbt.c: Update.
10800 * solib-frv.c: Update.
10801 * solib-spu.c: Update.
10802 * solib-svr4.c: Update.
10804 * sparc64-linux-tdep.c: Update.
10806 * symfile-mem.c: Update.
10807 * symmisc.c: Update.
10808 * target.c: Update.
10809 * thread.c: Update.
10811 * tracefile-tfile.c: Update.
10812 * tui/tui.c: Update.
10813 * typeprint.c: Update.
10814 * unittests/cli-utils-selftests.c: Update.
10815 * unittests/parse-connection-spec-selftests.c: Update.
10816 * valops.c: Update.
10817 * valprint.c: Update.
10819 * varobj.c: Update.
10820 * windows-nat.c: Update.
10821 * x86-linux-nat.c: Update.
10822 * xml-support.c: Update.
10824 2019-04-08 Tom Tromey <tom@tromey.com>
10826 * xml-support.c: Use C++ exception handling.
10827 * x86-linux-nat.c: Use C++ exception handling.
10828 * windows-nat.c: Use C++ exception handling.
10829 * varobj.c: Use C++ exception handling.
10830 * value.c: Use C++ exception handling.
10831 * valprint.c: Use C++ exception handling.
10832 * valops.c: Use C++ exception handling.
10833 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10835 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10836 * typeprint.c: Use C++ exception handling.
10837 * tui/tui.c: Use C++ exception handling.
10838 * tracefile-tfile.c: Use C++ exception handling.
10839 * top.c: Use C++ exception handling.
10840 * thread.c: Use C++ exception handling.
10841 * target.c: Use C++ exception handling.
10842 * symmisc.c: Use C++ exception handling.
10843 * symfile-mem.c: Use C++ exception handling.
10844 * stack.c: Use C++ exception handling.
10845 * sparc64-linux-tdep.c: Use C++ exception handling.
10846 * solib.c: Use C++ exception handling.
10847 * solib-svr4.c: Use C++ exception handling.
10848 * solib-spu.c: Use C++ exception handling.
10849 * solib-frv.c: Use C++ exception handling.
10850 * solib-dsbt.c: Use C++ exception handling.
10851 * selftest-arch.c: Use C++ exception handling.
10852 * s390-tdep.c: Use C++ exception handling.
10853 * rust-lang.c: Use C++ exception handling.
10854 * rust-exp.y: Use C++ exception handling.
10855 * rs6000-tdep.c: Use C++ exception handling.
10856 * rs6000-aix-tdep.c: Use C++ exception handling.
10857 * riscv-tdep.c: Use C++ exception handling.
10858 * remote.c: Use C++ exception handling.
10859 * remote-fileio.c: Use C++ exception handling.
10860 * record-full.c: Use C++ exception handling.
10861 * record-btrace.c: Use C++ exception handling.
10862 * python/python.c: Use C++ exception handling.
10863 * python/py-value.c: Use C++ exception handling.
10864 * python/py-utils.c: Use C++ exception handling.
10865 * python/py-unwind.c: Use C++ exception handling.
10866 * python/py-type.c: Use C++ exception handling.
10867 * python/py-symbol.c: Use C++ exception handling.
10868 * python/py-record.c: Use C++ exception handling.
10869 * python/py-record-btrace.c: Use C++ exception handling.
10870 * python/py-progspace.c: Use C++ exception handling.
10871 * python/py-prettyprint.c: Use C++ exception handling.
10872 * python/py-param.c: Use C++ exception handling.
10873 * python/py-objfile.c: Use C++ exception handling.
10874 * python/py-linetable.c: Use C++ exception handling.
10875 * python/py-lazy-string.c: Use C++ exception handling.
10876 * python/py-infthread.c: Use C++ exception handling.
10877 * python/py-inferior.c: Use C++ exception handling.
10878 * python/py-gdb-readline.c: Use C++ exception handling.
10879 * python/py-framefilter.c: Use C++ exception handling.
10880 * python/py-frame.c: Use C++ exception handling.
10881 * python/py-finishbreakpoint.c: Use C++ exception handling.
10882 * python/py-cmd.c: Use C++ exception handling.
10883 * python/py-breakpoint.c: Use C++ exception handling.
10884 * python/py-arch.c: Use C++ exception handling.
10885 * printcmd.c: Use C++ exception handling.
10886 * ppc-linux-tdep.c: Use C++ exception handling.
10887 * parse.c: Use C++ exception handling.
10888 * p-valprint.c: Use C++ exception handling.
10889 * objc-lang.c: Use C++ exception handling.
10890 * mi/mi-main.c: Use C++ exception handling.
10891 * mi/mi-interp.c: Use C++ exception handling.
10892 * mi/mi-cmd-stack.c: Use C++ exception handling.
10893 * mi/mi-cmd-break.c: Use C++ exception handling.
10894 * main.c: Use C++ exception handling.
10895 * linux-thread-db.c: Use C++ exception handling.
10896 * linux-tdep.c: Use C++ exception handling.
10897 * linux-nat.c: Use C++ exception handling.
10898 * linux-fork.c: Use C++ exception handling.
10899 * linespec.c: Use C++ exception handling.
10900 * language.c: Use C++ exception handling.
10901 * jit.c: Use C++ exception handling.
10902 * infrun.c: Use C++ exception handling.
10903 * infcmd.c: Use C++ exception handling.
10904 * infcall.c: Use C++ exception handling.
10905 * inf-loop.c: Use C++ exception handling.
10906 * i386-tdep.c: Use C++ exception handling.
10907 * i386-linux-tdep.c: Use C++ exception handling.
10908 * guile/scm-value.c: Use C++ exception handling.
10909 * guile/scm-type.c: Use C++ exception handling.
10910 * guile/scm-symtab.c: Use C++ exception handling.
10911 * guile/scm-symbol.c: Use C++ exception handling.
10912 * guile/scm-pretty-print.c: Use C++ exception handling.
10913 * guile/scm-ports.c: Use C++ exception handling.
10914 * guile/scm-param.c: Use C++ exception handling.
10915 * guile/scm-math.c: Use C++ exception handling.
10916 * guile/scm-lazy-string.c: Use C++ exception handling.
10917 * guile/scm-frame.c: Use C++ exception handling.
10918 * guile/scm-disasm.c: Use C++ exception handling.
10919 * guile/scm-cmd.c: Use C++ exception handling.
10920 * guile/scm-breakpoint.c: Use C++ exception handling.
10921 * guile/scm-block.c: Use C++ exception handling.
10922 * guile/guile-internal.h: Use C++ exception handling.
10923 * gnu-v3-abi.c: Use C++ exception handling.
10924 * gdbtypes.c: Use C++ exception handling.
10925 * frame.c: Use C++ exception handling.
10926 * frame-unwind.c: Use C++ exception handling.
10927 * fbsd-tdep.c: Use C++ exception handling.
10928 * f-valprint.c: Use C++ exception handling.
10929 * exec.c: Use C++ exception handling.
10930 * event-top.c: Use C++ exception handling.
10931 * event-loop.c: Use C++ exception handling.
10932 * eval.c: Use C++ exception handling.
10933 * dwarf2read.c: Use C++ exception handling.
10934 * dwarf2loc.c: Use C++ exception handling.
10935 * dwarf2-frame.c: Use C++ exception handling.
10936 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10937 * dwarf-index-write.c: Use C++ exception handling.
10938 * dwarf-index-cache.c: Use C++ exception handling.
10939 * dtrace-probe.c: Use C++ exception handling.
10940 * disasm-selftests.c: Use C++ exception handling.
10941 * darwin-nat.c: Use C++ exception handling.
10942 * cp-valprint.c: Use C++ exception handling.
10943 * cp-support.c: Use C++ exception handling.
10944 * cp-abi.c: Use C++ exception handling.
10945 * corelow.c: Use C++ exception handling.
10946 * completer.c: Use C++ exception handling.
10947 * compile/compile-object-run.c: Use C++ exception handling.
10948 * compile/compile-object-load.c: Use C++ exception handling.
10949 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10950 * compile/compile-c-symbols.c: Use C++ exception handling.
10951 * common/selftest.c: Use C++ exception handling.
10952 * common/new-op.c: Use C++ exception handling.
10953 * cli/cli-script.c: Use C++ exception handling.
10954 * cli/cli-interp.c: Use C++ exception handling.
10955 * cli/cli-cmds.c: Use C++ exception handling.
10956 * c-varobj.c: Use C++ exception handling.
10957 * btrace.c: Use C++ exception handling.
10958 * breakpoint.c: Use C++ exception handling.
10959 * break-catch-throw.c: Use C++ exception handling.
10960 * arch-utils.c: Use C++ exception handling.
10961 * amd64-tdep.c: Use C++ exception handling.
10962 * ada-valprint.c: Use C++ exception handling.
10963 * ada-typeprint.c: Use C++ exception handling.
10964 * ada-lang.c: Use C++ exception handling.
10965 * aarch64-tdep.c: Use C++ exception handling.
10967 2019-04-08 Tom Tromey <tom@tromey.com>
10969 * xml-support.c (gdb_xml_parser::parse): Update.
10970 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10971 * value.c (show_convenience): Update.
10972 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10973 (test_parse_flags_qcs): Update.
10974 * thread.c (thr_try_catch_cmd): Update.
10975 * target.c (target_translate_tls_address): Update.
10976 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10977 (info_frame_command_core, frame_apply_command_count): Update.
10978 * rust-exp.y (rust_lex_exception_test): Update.
10979 * riscv-tdep.c (riscv_print_one_register_info): Update.
10980 * remote.c (remote_target::enable_btrace): Update.
10981 * record-btrace.c (record_btrace_enable_warn): Update.
10982 * python/py-utils.c (gdbpy_convert_exception): Update.
10983 * printcmd.c (do_one_display, print_variable_and_value): Update.
10984 * mi/mi-main.c (mi_print_exception): Update.
10985 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10986 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10987 * linux-nat.c (linux_nat_target::attach): Update.
10988 * linux-fork.c (class scoped_switch_fork_info): Update.
10989 * infrun.c (displaced_step_prepare): Update.
10990 * infcall.c (call_function_by_hand_dummy): Update.
10991 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10992 * gnu-v3-abi.c (print_one_vtable): Update.
10993 * frame.c (get_prev_frame_always): Update.
10994 * f-valprint.c (info_common_command_for_block): Update.
10995 * exec.c (try_open_exec_file): Update.
10996 * exceptions.c (print_exception, exception_print)
10997 (exception_fprintf, exception_print_same): Update.
10998 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10999 * dwarf-index-cache.c (index_cache::store)
11000 (index_cache::lookup_gdb_index): Update.
11001 * darwin-nat.c (maybe_cache_shell): Update.
11002 * cp-valprint.c (cp_print_value_fields): Update.
11003 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11004 (gcc_cplus_symbol_address): Update.
11005 * compile/compile-c-symbols.c (gcc_convert_symbol)
11006 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11007 * common/selftest.c: Update.
11008 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11010 (exception_try_scope_entry, exception_try_scope_exit): Don't
11012 (struct exception_try_scope): Remove.
11013 (TRY): Don't use exception_try_scope.
11014 (struct gdb_exception): Add constructor, operator=.
11015 <what>: New method.
11016 (struct gdb_exception_RETURN_MASK_ALL)
11017 (struct gdb_exception_RETURN_MASK_ERROR)
11018 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11019 (struct gdb_quit_bad_alloc): Update.
11020 * common/common-exceptions.c (exception_none): Change
11022 (struct catcher) <state, exception>: Initialize inline.
11023 <prev>: Remove member.
11024 (current_catcher): Remove.
11025 (catchers): New global.
11026 (exceptions_state_mc_init): Simplify.
11027 (catcher_pop): Remove.
11028 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11029 (try_scope_depth, exception_try_scope_entry)
11030 (exception_try_scope_exit): Remove.
11031 (throw_exception_sjlj): Update.
11032 (exception_messages, exception_messages_size): Remove.
11033 (throw_it): Simplify.
11034 (gdb_exception_sliced_copy): Remove.
11035 (throw_exception_cxx): Update.
11036 * cli/cli-script.c (script_from_file): Update.
11037 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11039 * ada-valprint.c (ada_val_print): Update.
11040 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11041 (create_excep_cond_exprs): Update.
11043 2019-04-08 Tom Tromey <tom@tromey.com>
11045 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11046 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11047 (TRY, CATCH, END_CATCH): Remove some definitions.
11048 * common/common-exceptions.c: Don't use GDB_XCPT.
11049 (catcher_list_size): Remove.
11050 (throw_exception, throw_it): Simplify.
11052 2019-04-05 Tom Tromey <tom@tromey.com>
11054 Revert the header-sorting patch.
11055 * ft32-tdep.c: Revert.
11056 * frv-tdep.c: Revert.
11057 * frv-linux-tdep.c: Revert.
11059 * frame-unwind.c: Revert.
11060 * frame-base.c: Revert.
11061 * fork-child.c: Revert.
11062 * findvar.c: Revert.
11063 * findcmd.c: Revert.
11064 * filesystem.c: Revert.
11065 * filename-seen-cache.h: Revert.
11066 * filename-seen-cache.c: Revert.
11067 * fbsd-tdep.c: Revert.
11068 * fbsd-nat.h: Revert.
11069 * fbsd-nat.c: Revert.
11070 * f-valprint.c: Revert.
11071 * f-typeprint.c: Revert.
11072 * f-lang.c: Revert.
11073 * extension.h: Revert.
11074 * extension.c: Revert.
11075 * extension-priv.h: Revert.
11076 * expprint.c: Revert.
11079 * exceptions.c: Revert.
11080 * event-top.c: Revert.
11081 * event-loop.c: Revert.
11083 * elfread.c: Revert.
11084 * dwarf2read.h: Revert.
11085 * dwarf2read.c: Revert.
11086 * dwarf2loc.c: Revert.
11087 * dwarf2expr.h: Revert.
11088 * dwarf2expr.c: Revert.
11089 * dwarf2-frame.c: Revert.
11090 * dwarf2-frame-tailcall.c: Revert.
11091 * dwarf-index-write.h: Revert.
11092 * dwarf-index-write.c: Revert.
11093 * dwarf-index-common.c: Revert.
11094 * dwarf-index-cache.h: Revert.
11095 * dwarf-index-cache.c: Revert.
11096 * dummy-frame.c: Revert.
11097 * dtrace-probe.c: Revert.
11098 * disasm.h: Revert.
11099 * disasm.c: Revert.
11100 * disasm-selftests.c: Revert.
11101 * dictionary.c: Revert.
11102 * dicos-tdep.c: Revert.
11103 * demangle.c: Revert.
11104 * dcache.h: Revert.
11105 * dcache.c: Revert.
11106 * darwin-nat.h: Revert.
11107 * darwin-nat.c: Revert.
11108 * darwin-nat-info.c: Revert.
11109 * d-valprint.c: Revert.
11110 * d-namespace.c: Revert.
11111 * d-lang.c: Revert.
11113 * csky-tdep.c: Revert.
11114 * csky-linux-tdep.c: Revert.
11115 * cris-tdep.c: Revert.
11116 * cris-linux-tdep.c: Revert.
11117 * cp-valprint.c: Revert.
11118 * cp-support.c: Revert.
11119 * cp-namespace.c: Revert.
11120 * cp-abi.c: Revert.
11121 * corelow.c: Revert.
11122 * corefile.c: Revert.
11123 * continuations.c: Revert.
11124 * completer.h: Revert.
11125 * completer.c: Revert.
11126 * complaints.c: Revert.
11127 * coffread.c: Revert.
11128 * coff-pe-read.c: Revert.
11129 * cli-out.h: Revert.
11130 * cli-out.c: Revert.
11131 * charset.c: Revert.
11132 * c-varobj.c: Revert.
11133 * c-valprint.c: Revert.
11134 * c-typeprint.c: Revert.
11135 * c-lang.c: Revert.
11136 * buildsym.c: Revert.
11137 * buildsym-legacy.c: Revert.
11138 * build-id.h: Revert.
11139 * build-id.c: Revert.
11140 * btrace.c: Revert.
11141 * bsd-uthread.c: Revert.
11142 * breakpoint.h: Revert.
11143 * breakpoint.c: Revert.
11144 * break-catch-throw.c: Revert.
11145 * break-catch-syscall.c: Revert.
11146 * break-catch-sig.c: Revert.
11147 * blockframe.c: Revert.
11149 * bfin-tdep.c: Revert.
11150 * bfin-linux-tdep.c: Revert.
11151 * bfd-target.c: Revert.
11152 * bcache.c: Revert.
11153 * ax-general.c: Revert.
11154 * ax-gdb.h: Revert.
11155 * ax-gdb.c: Revert.
11156 * avr-tdep.c: Revert.
11158 * auto-load.c: Revert.
11159 * arm-wince-tdep.c: Revert.
11160 * arm-tdep.c: Revert.
11161 * arm-symbian-tdep.c: Revert.
11162 * arm-pikeos-tdep.c: Revert.
11163 * arm-obsd-tdep.c: Revert.
11164 * arm-nbsd-tdep.c: Revert.
11165 * arm-nbsd-nat.c: Revert.
11166 * arm-linux-tdep.c: Revert.
11167 * arm-linux-nat.c: Revert.
11168 * arm-fbsd-tdep.c: Revert.
11169 * arm-fbsd-nat.c: Revert.
11170 * arm-bsd-tdep.c: Revert.
11171 * arch-utils.c: Revert.
11172 * arc-tdep.c: Revert.
11173 * arc-newlib-tdep.c: Revert.
11174 * annotate.h: Revert.
11175 * annotate.c: Revert.
11176 * amd64-windows-tdep.c: Revert.
11177 * amd64-windows-nat.c: Revert.
11178 * amd64-tdep.c: Revert.
11179 * amd64-sol2-tdep.c: Revert.
11180 * amd64-obsd-tdep.c: Revert.
11181 * amd64-obsd-nat.c: Revert.
11182 * amd64-nbsd-tdep.c: Revert.
11183 * amd64-nbsd-nat.c: Revert.
11184 * amd64-nat.c: Revert.
11185 * amd64-linux-tdep.c: Revert.
11186 * amd64-linux-nat.c: Revert.
11187 * amd64-fbsd-tdep.c: Revert.
11188 * amd64-fbsd-nat.c: Revert.
11189 * amd64-dicos-tdep.c: Revert.
11190 * amd64-darwin-tdep.c: Revert.
11191 * amd64-bsd-nat.c: Revert.
11192 * alpha-tdep.c: Revert.
11193 * alpha-obsd-tdep.c: Revert.
11194 * alpha-nbsd-tdep.c: Revert.
11195 * alpha-mdebug-tdep.c: Revert.
11196 * alpha-linux-tdep.c: Revert.
11197 * alpha-linux-nat.c: Revert.
11198 * alpha-bsd-tdep.c: Revert.
11199 * alpha-bsd-nat.c: Revert.
11200 * aix-thread.c: Revert.
11202 * addrmap.c: Revert.
11203 * ada-varobj.c: Revert.
11204 * ada-valprint.c: Revert.
11205 * ada-typeprint.c: Revert.
11206 * ada-tasks.c: Revert.
11207 * ada-lang.c: Revert.
11208 * aarch64-tdep.c: Revert.
11209 * aarch64-ravenscar-thread.c: Revert.
11210 * aarch64-newlib-tdep.c: Revert.
11211 * aarch64-linux-tdep.c: Revert.
11212 * aarch64-linux-nat.c: Revert.
11213 * aarch64-fbsd-tdep.c: Revert.
11214 * aarch64-fbsd-nat.c: Revert.
11215 * aarch32-linux-nat.c: Revert.
11217 2019-04-05 Tom Tromey <tom@tromey.com>
11219 * ft32-tdep.c: Sort headers.
11220 * frv-tdep.c: Sort headers.
11221 * frv-linux-tdep.c: Sort headers.
11222 * frame.c: Sort headers.
11223 * frame-unwind.c: Sort headers.
11224 * frame-base.c: Sort headers.
11225 * fork-child.c: Sort headers.
11226 * findvar.c: Sort headers.
11227 * findcmd.c: Sort headers.
11228 * filesystem.c: Sort headers.
11229 * filename-seen-cache.h: Sort headers.
11230 * filename-seen-cache.c: Sort headers.
11231 * fbsd-tdep.c: Sort headers.
11232 * fbsd-nat.h: Sort headers.
11233 * fbsd-nat.c: Sort headers.
11234 * f-valprint.c: Sort headers.
11235 * f-typeprint.c: Sort headers.
11236 * f-lang.c: Sort headers.
11237 * extension.h: Sort headers.
11238 * extension.c: Sort headers.
11239 * extension-priv.h: Sort headers.
11240 * expprint.c: Sort headers.
11241 * exec.h: Sort headers.
11242 * exec.c: Sort headers.
11243 * exceptions.c: Sort headers.
11244 * event-top.c: Sort headers.
11245 * event-loop.c: Sort headers.
11246 * eval.c: Sort headers.
11247 * elfread.c: Sort headers.
11248 * dwarf2read.h: Sort headers.
11249 * dwarf2read.c: Sort headers.
11250 * dwarf2loc.c: Sort headers.
11251 * dwarf2expr.h: Sort headers.
11252 * dwarf2expr.c: Sort headers.
11253 * dwarf2-frame.c: Sort headers.
11254 * dwarf2-frame-tailcall.c: Sort headers.
11255 * dwarf-index-write.h: Sort headers.
11256 * dwarf-index-write.c: Sort headers.
11257 * dwarf-index-common.c: Sort headers.
11258 * dwarf-index-cache.h: Sort headers.
11259 * dwarf-index-cache.c: Sort headers.
11260 * dummy-frame.c: Sort headers.
11261 * dtrace-probe.c: Sort headers.
11262 * disasm.h: Sort headers.
11263 * disasm.c: Sort headers.
11264 * disasm-selftests.c: Sort headers.
11265 * dictionary.c: Sort headers.
11266 * dicos-tdep.c: Sort headers.
11267 * demangle.c: Sort headers.
11268 * dcache.h: Sort headers.
11269 * dcache.c: Sort headers.
11270 * darwin-nat.h: Sort headers.
11271 * darwin-nat.c: Sort headers.
11272 * darwin-nat-info.c: Sort headers.
11273 * d-valprint.c: Sort headers.
11274 * d-namespace.c: Sort headers.
11275 * d-lang.c: Sort headers.
11276 * ctf.c: Sort headers.
11277 * csky-tdep.c: Sort headers.
11278 * csky-linux-tdep.c: Sort headers.
11279 * cris-tdep.c: Sort headers.
11280 * cris-linux-tdep.c: Sort headers.
11281 * cp-valprint.c: Sort headers.
11282 * cp-support.c: Sort headers.
11283 * cp-namespace.c: Sort headers.
11284 * cp-abi.c: Sort headers.
11285 * corelow.c: Sort headers.
11286 * corefile.c: Sort headers.
11287 * continuations.c: Sort headers.
11288 * completer.h: Sort headers.
11289 * completer.c: Sort headers.
11290 * complaints.c: Sort headers.
11291 * coffread.c: Sort headers.
11292 * coff-pe-read.c: Sort headers.
11293 * cli-out.h: Sort headers.
11294 * cli-out.c: Sort headers.
11295 * charset.c: Sort headers.
11296 * c-varobj.c: Sort headers.
11297 * c-valprint.c: Sort headers.
11298 * c-typeprint.c: Sort headers.
11299 * c-lang.c: Sort headers.
11300 * buildsym.c: Sort headers.
11301 * buildsym-legacy.c: Sort headers.
11302 * build-id.h: Sort headers.
11303 * build-id.c: Sort headers.
11304 * btrace.c: Sort headers.
11305 * bsd-uthread.c: Sort headers.
11306 * breakpoint.h: Sort headers.
11307 * breakpoint.c: Sort headers.
11308 * break-catch-throw.c: Sort headers.
11309 * break-catch-syscall.c: Sort headers.
11310 * break-catch-sig.c: Sort headers.
11311 * blockframe.c: Sort headers.
11312 * block.c: Sort headers.
11313 * bfin-tdep.c: Sort headers.
11314 * bfin-linux-tdep.c: Sort headers.
11315 * bfd-target.c: Sort headers.
11316 * bcache.c: Sort headers.
11317 * ax-general.c: Sort headers.
11318 * ax-gdb.h: Sort headers.
11319 * ax-gdb.c: Sort headers.
11320 * avr-tdep.c: Sort headers.
11321 * auxv.c: Sort headers.
11322 * auto-load.c: Sort headers.
11323 * arm-wince-tdep.c: Sort headers.
11324 * arm-tdep.c: Sort headers.
11325 * arm-symbian-tdep.c: Sort headers.
11326 * arm-pikeos-tdep.c: Sort headers.
11327 * arm-obsd-tdep.c: Sort headers.
11328 * arm-nbsd-tdep.c: Sort headers.
11329 * arm-nbsd-nat.c: Sort headers.
11330 * arm-linux-tdep.c: Sort headers.
11331 * arm-linux-nat.c: Sort headers.
11332 * arm-fbsd-tdep.c: Sort headers.
11333 * arm-fbsd-nat.c: Sort headers.
11334 * arm-bsd-tdep.c: Sort headers.
11335 * arch-utils.c: Sort headers.
11336 * arc-tdep.c: Sort headers.
11337 * arc-newlib-tdep.c: Sort headers.
11338 * annotate.h: Sort headers.
11339 * annotate.c: Sort headers.
11340 * amd64-windows-tdep.c: Sort headers.
11341 * amd64-windows-nat.c: Sort headers.
11342 * amd64-tdep.c: Sort headers.
11343 * amd64-sol2-tdep.c: Sort headers.
11344 * amd64-obsd-tdep.c: Sort headers.
11345 * amd64-obsd-nat.c: Sort headers.
11346 * amd64-nbsd-tdep.c: Sort headers.
11347 * amd64-nbsd-nat.c: Sort headers.
11348 * amd64-nat.c: Sort headers.
11349 * amd64-linux-tdep.c: Sort headers.
11350 * amd64-linux-nat.c: Sort headers.
11351 * amd64-fbsd-tdep.c: Sort headers.
11352 * amd64-fbsd-nat.c: Sort headers.
11353 * amd64-dicos-tdep.c: Sort headers.
11354 * amd64-darwin-tdep.c: Sort headers.
11355 * amd64-bsd-nat.c: Sort headers.
11356 * alpha-tdep.c: Sort headers.
11357 * alpha-obsd-tdep.c: Sort headers.
11358 * alpha-nbsd-tdep.c: Sort headers.
11359 * alpha-mdebug-tdep.c: Sort headers.
11360 * alpha-linux-tdep.c: Sort headers.
11361 * alpha-linux-nat.c: Sort headers.
11362 * alpha-bsd-tdep.c: Sort headers.
11363 * alpha-bsd-nat.c: Sort headers.
11364 * aix-thread.c: Sort headers.
11365 * agent.c: Sort headers.
11366 * addrmap.c: Sort headers.
11367 * ada-varobj.c: Sort headers.
11368 * ada-valprint.c: Sort headers.
11369 * ada-typeprint.c: Sort headers.
11370 * ada-tasks.c: Sort headers.
11371 * ada-lang.c: Sort headers.
11372 * aarch64-tdep.c: Sort headers.
11373 * aarch64-ravenscar-thread.c: Sort headers.
11374 * aarch64-newlib-tdep.c: Sort headers.
11375 * aarch64-linux-tdep.c: Sort headers.
11376 * aarch64-linux-nat.c: Sort headers.
11377 * aarch64-fbsd-tdep.c: Sort headers.
11378 * aarch64-fbsd-nat.c: Sort headers.
11379 * aarch32-linux-nat.c: Sort headers.
11381 2019-04-04 Tom Tromey <tom@tromey.com>
11383 * varobj.c (varobj_create): Update.
11384 * rust-exp.y (struct rust_parser) <update_innermost_block,
11385 lookup_symbol>: New methods.
11386 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11388 (rust_parser::rust_lookup_type)
11389 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11390 * printcmd.c (display_command, do_one_display): Update.
11391 * parser-defs.h (struct parser_state) <parser_state>: Add
11392 "tracker" parameter.
11393 (block_tracker): New member.
11394 (class innermost_block_tracker) <innermost_block_tracker>: Add
11396 <reset>: Remove method.
11397 (innermost_block): Don't declare.
11398 (null_post_parser): Update.
11399 * parse.c (innermost_block): Remove global.
11400 (write_dollar_variable): Update.
11401 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11402 Remove "tracker_types" parameter.
11403 (parse_expression): Add "tracker" parameter.
11404 (parse_expression_for_completion): Update.
11405 (null_post_parser): Add "tracker" parameter.
11406 * p-exp.y: Update rules.
11407 * m2-exp.y: Update rules.
11408 * language.h (struct language_defn) <la_post_parser>: Add
11409 "tracker" parameter.
11410 * go-exp.y: Update rules.
11411 * f-exp.y: Update rules.
11412 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11414 * d-exp.y: Update rules.
11415 * c-exp.y: Update rules.
11416 * breakpoint.c (set_breakpoint_condition): Create an
11417 innermost_block_tracker.
11418 (watch_command_1): Likewise.
11419 * ada-lang.c (resolve): Add "tracker" parameter.
11420 (resolve_subexp): Likewise.
11421 * ada-exp.y (write_var_from_sym): Update.
11423 2019-04-04 Tom Tromey <tom@tromey.com>
11425 * type-stack.h: New file.
11426 * type-stack.c: New file.
11427 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11429 (insert_into_type_stack, insert_type, push_type, push_type_int)
11430 (insert_type_address_space, pop_type, pop_type_int)
11431 (pop_typelist, pop_type_stack, append_type_stack)
11432 (push_type_stack, get_type_stack, push_typelist)
11433 (follow_type_instance_flags, follow_types): Don't declare.
11434 * parse.c (type_stack): Remove global.
11435 (parse_exp_in_context): Update.
11436 (insert_into_type_stack, insert_type, push_type, push_type_int)
11437 (insert_type_address_space, pop_type, pop_type_int)
11438 (pop_typelist, pop_type_stack, append_type_stack)
11439 (push_type_stack, get_type_stack, push_typelist)
11440 (follow_type_instance_flags, follow_types): Remove (moved to
11442 * f-exp.y (type_stack): New global.
11444 (push_kind_type, f_parse): Update.
11445 * d-exp.y (type_stack): New global.
11448 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11450 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11451 (HFILES_NO_SRCDIR): Add type-stack.h.
11453 2019-04-04 Tom Tromey <tom@tromey.com>
11455 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11456 (rust_parser::convert_ast_to_expression, rust_parse)
11457 (rust_lex_test_completion, rust_lex_tests): Update.
11458 * parser-defs.h (struct expr_completion_state): New.
11459 (struct parser_state) <parser_state>: Add completion parameter.
11460 <mark_struct_expression, mark_completion_tag>: New methods.
11461 <parse_completion, m_completion_state>: New members.
11462 (prefixify_expression, null_post_parser): Update.
11463 (mark_struct_expression, mark_completion_tag): Don't declare.
11464 * parse.c (parse_completion, expout_last_struct)
11465 (expout_tag_completion_type, expout_completion_name): Remove
11467 (parser_state::mark_struct_expression)
11468 (parser_state::mark_completion_tag): Now methods.
11469 (prefixify_expression): Add last_struct parameter.
11470 (prefixify_subexp): Likewise.
11471 (parse_exp_1): Update.
11472 (parse_exp_in_context): Add cstate parameter. Update.
11473 (parse_expression_for_completion): Create an
11474 expr_completion_state.
11475 (null_post_parser): Add "completion" parameter.
11476 * p-exp.y: Update rules.
11478 * language.h (struct language_defn) <la_post_parser>: Add
11479 "completing" parameter.
11480 * go-exp.y: Update rules.
11481 (lex_one_token): Update.
11482 * expression.h (parse_completion): Don't declare.
11483 * d-exp.y: Update rules.
11484 (lex_one_token): Update rules.
11485 * c-exp.y: Update rules.
11486 (lex_one_token): Update.
11487 * ada-lang.c (resolve): Add "parse_completion" parameter.
11488 (resolve_subexp): Likewise.
11489 (ada_resolve_function): Likewise.
11491 2019-04-04 Tom Tromey <tom@tromey.com>
11493 * parser-defs.h (struct parser_state) <start_arglist,
11494 end_arglist>: New methods.
11495 <arglist_len, m_funcall_chain>: New members.
11496 (arglist_len, start_arglist, end_arglist): Don't declare.
11497 * parse.c (arglist_len, funcall_chain): Remove global.
11498 (start_arglist, end_arglist): Remove functions.
11499 (parse_exp_in_context): Update.
11500 * p-exp.y: Update rules.
11501 * m2-exp.y: Update rules.
11502 * go-exp.y: Update rules.
11503 * f-exp.y: Update rules.
11504 * d-exp.y: Update rules.
11505 * c-exp.y: Update rules.
11507 2019-04-04 Tom Tromey <tom@tromey.com>
11509 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11510 lex_operator, push_back>: New methods.
11512 (rust_parser::lex_hex, lex_escape): Rename and update.
11513 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11514 (rust_parser::lex_operator): Rename and update.
11515 (rust_parser::lex_number, rustyylex, rustyyerror)
11516 (rust_lex_test_init, rust_lex_test_sequence)
11517 (rust_lex_test_push_back, rust_lex_tests): Update.
11518 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11520 <lexptr, prev_lexptr>: New members.
11521 (lexptr, prev_lexptr): Don't declare.
11522 * parse.c (lexptr, prev_lexptr): Remove globals.
11523 (parse_exp_in_context): Update.
11524 * p-exp.y (yylex, yyerror): Update.
11525 * m2-exp.y (parse_number, yylex, yyerror): Update.
11526 * go-exp.y (lex_one_token, yyerror): Update.
11527 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11528 * d-exp.y (lex_one_token, yyerror): Update.
11529 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11530 (lex_one_token, yyerror): Update.
11531 * ada-lex.l (YY_INPUT): Update.
11532 (rewind_to_char): Update.
11533 * ada-exp.y (yyerror): Update.
11535 2019-04-04 Tom Tromey <tom@tromey.com>
11537 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11538 * parser-defs.h (struct parser_state) <parser_state>: Add new
11540 <comma_terminates>: New member.
11541 (comma_terminates): Don't declare global.
11542 * parse.c (comma_terminates): Remove global.
11543 (parse_exp_in_context): Update.
11544 * p-exp.y (yylex): Update.
11545 * m2-exp.y (yylex): Update.
11546 * go-exp.y (lex_one_token): Update.
11547 * f-exp.y (yylex): Update.
11548 * d-exp.y (lex_one_token): Update.
11549 * c-exp.y (lex_one_token): Update.
11550 * ada-lex.l: Update.
11552 2019-04-04 Tom Tromey <tom@tromey.com>
11554 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11555 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11556 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11557 * parser-defs.h (paren_depth): Don't declare.
11558 * parse.c (paren_depth): Remove global.
11559 (parse_exp_in_context): Update.
11560 * p-exp.y (paren_depth): New global.
11561 (pascal_parse): Initialize it.
11562 * m2-exp.y (paren_depth): New global.
11563 (m2_parse): Initialize it.
11564 * go-exp.y (paren_depth): New global.
11565 (go_parse): Initialize it.
11566 * f-exp.y (paren_depth): New global.
11567 (f_parse): Initialize it.
11568 * d-exp.y (paren_depth): New global.
11569 (d_parse): Initialize it.
11570 * c-exp.y (paren_depth): New global.
11571 (c_parse): Initialize it.
11572 * ada-lex.l (paren_depth): New global.
11573 (lexer_init): Initialize it.
11575 2019-04-04 Tom Tromey <tom@tromey.com>
11577 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11578 (rust_parser::convert_ast_to_type)
11579 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11580 * parser-defs.h (struct parser_state) <parser_state>: Add
11581 parameters. Initialize new members.
11582 <expression_context_block, expression_context_pc>: New members.
11583 * parse.c (expression_context_block, expression_context_pc):
11585 (parse_exp_in_context): Update.
11586 * p-exp.y: Update all rules.
11588 * m2-exp.y: Update all rules.
11590 * go-exp.y (yylex): Update.
11591 * f-exp.y (yylex): Update.
11592 * d-exp.y: Update all rules.
11594 * c-exp.y: Update all rules.
11595 (lex_one_token, classify_name, yylex, c_parse): Update.
11596 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11598 2019-04-04 Tom Tromey <tom@tromey.com>
11600 * gdbarch.h, gdbarch.c: Rebuild.
11601 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11603 (struct stap_parse_info): Replace "parser_state" with
11605 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11606 (parser_state): New class.
11607 * parse.c (expr_builder): Rename.
11608 (expr_builder::release): Rename.
11609 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11610 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11611 (write_exp_elt_longcst, write_exp_elt_floatcst)
11612 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11613 (write_exp_string_vector, write_exp_bitstring)
11614 (write_exp_msymbol, mark_struct_expression)
11615 (write_dollar_variable)
11616 (insert_type_address_space, increase_expout_size): Replace
11617 "parser_state" with "expr_builder".
11618 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11619 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11620 "parser_state" with "expr_builder".
11622 2019-04-04 Tom Tromey <tom@tromey.com>
11624 * rust-exp.y: Replace "parse_language" with method call.
11626 (yylex): Replace "parse_language" with method call.
11628 (yylex): Replace "parse_language" with method call.
11629 * go-exp.y (classify_name): Replace "parse_language" with method
11631 * f-exp.y (yylex): Replace "parse_language" with method call.
11632 * d-exp.y (lex_one_token): Replace "parse_language" with method
11635 (lex_one_token, classify_name, yylex): Replace "parse_language"
11637 * ada-exp.y (find_primitive_type, type_char)
11638 (type_system_address): Replace "parse_language" with method call.
11640 2019-04-04 Tom Tromey <tom@tromey.com>
11642 * rust-exp.y: Replace "parse_gdbarch" with method call.
11643 * parse.c (write_dollar_variable, insert_type_address_space):
11644 Replace "parse_gdbarch" with method call.
11645 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11647 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11649 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11650 "parse_gdbarch" with method call.
11651 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11653 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11654 "parse_gdbarch" with method call.
11655 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11656 "parse_gdbarch" with method call.
11657 * c-exp.y (parse_type, parse_number, classify_name): Replace
11658 "parse_gdbarch" with method call.
11659 * ada-lex.l: Replace "parse_gdbarch" with method call.
11660 * ada-exp.y (parse_type, find_primitive_type, type_char)
11661 (type_system_address): Replace "parse_gdbarch" with method call.
11663 2019-04-04 Tom Tromey <tom@tromey.com>
11665 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11666 * stap-probe.c (stap_parse_argument): Update.
11667 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11668 initial_size parameter.
11669 * rust-exp.y (rust_lex_tests): Update.
11670 * parse.c (parser_state): Update.
11671 (parse_exp_in_context): Update.
11672 * parser-defs.h (struct parser_state) <parser_state>: Remove
11673 "initial_size" parameter.
11675 2019-04-04 Tom Tromey <tom@tromey.com>
11677 * parser-defs.h (increase_expout_size): Don't declare.
11678 * parse.c (increase_expout_size): Now static.
11680 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11682 * gnu-nat.c (gnu_nat_target::wait): Fix
11683 target_waitstatus_to_string call.
11685 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11687 * eval.c (evaluate_subexp_standard): Handle internal functions
11688 during Fortran function call handling.
11690 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11692 * NEWS: Mention new internal functions.
11693 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11694 (read_base_type): Use dwarf2_init_complex_target_type.
11695 * value.c (creal_internal_fn): New function.
11696 (cimag_internal_fn): New function.
11697 (_initialize_values): Register new internal functions.
11699 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11701 * infrun.c (stop_all_threads): If debug_infrun, always
11702 trace the wait status after wait_one, using
11703 target_waitstatus_to_string and target_pid_to_str.
11704 (handle_inferior_event): Replace various trace of
11705 wait status kind by a single trace.
11706 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11707 wait status kind image by target_waitstatus_to_string.
11708 * target/waitstatus.c (target_waitstatus_to_string): Fix
11711 2019-04-01 Tom Tromey <tromey@adacore.com>
11714 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11716 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11717 Pedro Alves <palves@redhat.com>
11719 * top.c (quit_force): Call 'finalize_values'.
11720 * value.c (finalize_values): New function.
11721 * value.h (finalize_values): Declare.
11723 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11725 * NEWS: Announce $_gdb_major and $_gdb_minor.
11727 * top.c (init_gdb_version_vars): New function.
11728 (gdb_init): Call init_gdb_version_vars.
11730 2019-03-29 Tom Tromey <tromey@adacore.com>
11732 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11733 help text. Remove dead code.
11735 2019-03-29 Keith Seitz <keiths@redhat.com>
11737 From Siddhesh Poyarekar:
11738 * f-lang.h (f77_get_upperbound): Return LONGEST.
11739 (f77_get_lowerbound): Likewise.
11740 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11741 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11743 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11744 plongest to format print it.
11745 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11746 (f77_get_upperbound): Likewise.
11747 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11748 LOWER_BOUND to LONGEST.
11749 (f77_create_arrayprint_offset_tbl): Likewise.
11751 2019-03-29 Keith Seitz <keiths@redhat.com>
11753 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11754 %s/pulongest for TYPE_LENGTH instead of %d in format
11756 * ada-typerint.c (ada_print_type): Likewise.
11757 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11758 * compile/compile-c-support.c (generate_register_struct): Likewise.
11759 * gdbtypes.c (recursive_dump_type): Likewise.
11760 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11761 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11762 instead of %d in format strings.
11763 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11764 to std::min to ULONGEST.
11765 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11766 instead of %d in format strings.
11767 * tracepoint.c (info_scope_command): Likewise.
11768 * typeprint.c (print_offset_data::update)
11769 (print_offset_data::finish): Likewise.
11770 * xtensa-tdep.c (xtensa_store_return_value)
11771 (xtensa_push_dummy_call): Likewise.
11773 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11775 * windows-nat.c (display_selector): Fixed format specifications
11778 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11780 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11782 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11784 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11785 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11786 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11787 (nios2_linux_init_abi): Install it.
11789 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11791 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11793 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11795 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11797 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11798 Tom Tromey <tromey@adacore.com>
11800 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11802 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11804 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11805 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11806 method to compute the bounds of range types. Also print "[evaluated]"
11807 if the bounds' values come from a dynamic evaluation.
11809 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11811 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11812 whitespace when pretty printing is on.
11814 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11816 * ppc-linux-nat.c: Add include.
11818 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11820 * NEWS: Mention AArch64 Pointer Authentication.
11822 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11824 * arm-linux-nat.c: Add include.
11826 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11828 * source-cache.c (source_cache::get_source_lines): Re-read
11829 fullname after calling open_source_file.
11831 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11833 * NEWS: Mention TLS support for FreeBSD.
11835 2019-03-25 Tom Tromey <tromey@adacore.com>
11837 * minsyms.c (BUNCH_SIZE): Update comment.
11838 (~minimal_symbol_reader): Remove old comment.
11839 (compact_minimal_symbols): Update comment.
11840 (minimal_symbol_reader::install): Remove old comment. Update
11843 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11845 * s390-linux-nat.c: Add include.
11847 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11849 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11850 Call linux_get_hwcap.
11851 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11853 (aarch64_linux_get_hwcap): Remove function.
11854 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11856 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11858 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11859 * linux-tdep.c (linux_get_hwcap): Add function.
11860 (linux_get_hwcap2): Likewise.
11861 * linux-tdep.h (linux_get_hwcap): Add declaration.
11862 (linux_get_hwcap2): Likewise.
11863 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11864 (ppc_linux_get_hwcap2): Likewise.
11865 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11867 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11868 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11869 (ppc_linux_nat_target::read_description): Likewise.
11870 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11871 * s390-linux-nat.c: Likewise.
11872 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11874 2019-03-24 Tom Tromey <tom@tromey.com>
11876 * ada-lang.c (standard_lookup): Simplify initialization.
11877 (ada_lookup_symbol_nonlocal): Simplify return.
11878 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11879 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11880 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11881 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11883 * solib.c (solib_global_lookup): Simplify.
11884 * symtab.c (null_block_symbol): Remove.
11885 (symbol_cache_lookup): Simplify returns.
11886 (lookup_language_this): Simplify returns.
11887 (lookup_symbol_aux): Simplify return.
11888 (lookup_local_symbol): Simplify returns.
11889 (lookup_global_symbol_from_objfile): Simplify return.
11890 (lookup_symbol_in_objfile_symtabs)
11891 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11892 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11893 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11894 * cp-namespace.c (cp_lookup_bare_symbol)
11895 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11896 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11897 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11898 (cp_lookup_symbol_via_imports): Simplify initialization.
11899 (find_symbol_in_baseclass): Likewise.
11900 * symtab.h (null_block_symbol): Remove.
11901 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11902 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11903 (d_lookup_symbol_module): Likewise.
11904 (find_symbol_in_baseclass): Simplify initialization.
11906 2019-03-24 Tom Tromey <tom@tromey.com>
11908 * expression.h: Don't include symtab.h.
11909 (struct block): Forward declare.
11911 2019-03-24 Tom Tromey <tom@tromey.com>
11913 * c-exp.y (typebase): Remove casts.
11914 * gdbtypes.c (lookup_unsigned_typename, )
11915 (lookup_signed_typename): Remove cast.
11916 * eval.c (parse_to_comma_and_eval): Remove cast.
11917 * parse.c (write_dollar_variable): Remove cast.
11918 * block.h (struct block) <superblock>: Now const.
11919 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11920 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11921 (map_block): Make "block" const.
11922 * symfile.h (struct quick_symbol_functions)
11923 <map_matching_symbols>: Constify block argument to "callback".
11924 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11926 (find_pc_sect_compunit_symtab): Make "b" const.
11927 (find_symbol_at_address): Likewise.
11928 (search_symbols): Likewise.
11929 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11930 (dw2_debug_names_lookup_symbol): Likewise.
11931 (dw2_map_matching_symbols): Update.
11932 * p-valprint.c (pascal_val_print): Remove "block".
11933 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11934 (aux_add_nonlocal_symbols): Make "block" const.
11935 (resolve_subexp): Remove cast.
11936 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11938 (iterate_over_file_blocks): Likewise.
11939 * f-exp.y (%union) <bval>: Remove.
11940 * coffread.c (patch_opaque_types): Make "b" const.
11941 * spu-tdep.c (spu_catch_start): Make "block" const.
11942 * c-valprint.c (print_unpacked_pointer): Remove "block".
11943 * symmisc.c (dump_symtab_1): Make "b" const.
11944 (block_depth): Make "block" const.
11945 * d-exp.y (%union) <bval>: Remove.
11946 * cp-support.h (cp_lookup_rtti_type): Update.
11947 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11948 * psymtab.c (psym_lookup_symbol): Make "block" const.
11949 (maintenance_check_psymtabs): Make "b" const.
11950 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11951 (enumerate_locals, enumerate_args): Update.
11952 * python/py-symtab.c (stpy_global_block): Make "block" const.
11953 (stpy_static_block): Likewise.
11954 * inline-frame.c (block_starting_point_at): Make "new_block"
11956 * block.c (find_block_in_blockvector): Make return type const.
11957 (blockvector_for_pc_sect): Make "b" const.
11958 (find_block_in_blockvector): Make "b" const.
11960 2019-03-23 Tom Tromey <tom@tromey.com>
11962 * varobj.c (varobj_create): Update.
11963 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11964 * printcmd.c (display_command, do_one_display): Don't reset
11966 * parser-defs.h (enum innermost_block_tracker_type): Move to
11968 (innermost_block): Update comment.
11969 * parse.c (parse_exp_1): Add tracker_types parameter.
11970 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11971 tracker_types parameter. Reset innermost_block.
11972 (parse_exp_in_context): Remove.
11973 (parse_expression_for_completion): Update.
11974 * objfiles.c (~objfile): Don't reset expression_context_block or
11976 * expression.h (enum innermost_block_tracker_type): Move from
11978 (parse_exp_1): Add tracker_types parameter.
11979 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11980 reset innermost_block.
11982 2019-03-23 Tom Tromey <tom@tromey.com>
11984 * objfiles.h: Include bcache.h.
11986 2019-03-23 Tom Tromey <tom@tromey.com>
11988 * linespec.c (get_current_search_block): Use
11989 scoped_restore_current_language.
11990 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11992 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11993 Jiong Wang <jiong.wang@arm.com>
11995 * aarch64-linux-tdep.c
11996 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11998 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12001 Jiong Wang <jiong.wang@arm.com>
12003 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12005 (aarch64_analyze_prologue_test): Add PACIASP test.
12006 (aarch64_prologue_prev_register): Unmask PC value.
12008 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12009 Jiong Wang <jiong.wang@arm.com>
12011 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12012 (aarch64_dwarf2_prev_register): Unmask PC value.
12013 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12014 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12015 DW_CFA_AARCH64_negate_ra_state.
12016 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12018 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12019 Jiong Wang <jiong.wang@arm.com>
12021 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12023 (aarch64_pseudo_register_name): Likewise.
12024 (aarch64_pseudo_register_type): Likewise.
12025 (aarch64_pseudo_register_reggroup_p): Likewise.
12026 (aarch64_gdbarch_init): Add pauth registers.
12027 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12028 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12029 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12030 (struct gdbarch_tdep): Add regnum for ra_state.
12032 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12033 Jiong Wang <jiong.wang@arm.com>
12035 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12037 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12038 Jiong Wang <jiong.wang@arm.com>
12040 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12042 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12043 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12044 (aarch64_gdbarch_init): Add puth registers.
12045 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12046 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12047 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12049 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12050 Jiong Wang <jiong.wang@arm.com>
12052 * aarch64-linux-nat.c
12053 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12054 * aarch64-linux-tdep.c
12055 (aarch64_linux_core_read_description): Likewise.
12056 (aarch64_linux_get_hwcap): New function.
12057 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12058 (aarch64_linux_get_hwcap): New declaration.
12060 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12061 Jiong Wang <jiong.wang@arm.com>
12063 * aarch64-linux-nat.c
12064 (aarch64_linux_nat_target::read_description): Add pauth param.
12065 * aarch64-linux-tdep.c
12066 (aarch64_linux_core_read_description): Likewise.
12067 * aarch64-tdep.c (struct target_desc): Add in pauth.
12068 (aarch64_read_description): Add pauth param.
12069 (aarch64_gdbarch_init): Likewise.
12070 * aarch64-tdep.h (aarch64_read_description): Likewise.
12071 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12072 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12073 * features/Makefile: Add new files.
12074 * features/aarch64-pauth.c: New file.
12075 * features/aarch64-pauth.xml: New file.
12077 2019-03-20 Tom Tromey <tromey@adacore.com>
12079 * infrun.c (handle_inferior_event): Rename from
12080 handle_inferior_event_1. Create a scoped_value_mark.
12081 (handle_inferior_event): Remove.
12083 2019-03-19 Tom Tromey <tromey@adacore.com>
12085 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12086 * infrun.h (print_stop_event): Add "displays" parameter.
12087 * infrun.c (print_stop_event): Add "displays" parameter.
12089 2019-03-19 Pedro Alves <palves@redhat.com>
12091 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12092 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12093 to -1. Fix TABs vs spaces.
12094 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12095 * tui/tui-out.h (tui_ui_out) Add intro comments.
12096 <m_line, m_start_of_line>: In-class initialize, and add describing
12099 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12101 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12103 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12105 2019-03-18 Pedro Alves <palves@redhat.com>
12106 Eli Zaretskii <eliz@gnu.org>
12108 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12109 m_line and m_start_of_line.
12111 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12113 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12114 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12115 it returns a newline. This fixes a regression in TU mode, whereby
12116 the next line is output on the same screen line as the user input.
12118 2019-03-18 Tom Tromey <tromey@adacore.com>
12120 * minsyms.c (minimal_symbol_reader::install): Remove call to
12123 2019-03-18 Pedro Alves <palves@redhat.com>
12125 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12127 (apply_style): New, factored out from ...
12128 (apply_ansi_escape): ... this. Handle reverse video mode.
12129 (tui_set_reverse_mode): New function.
12130 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12131 * tui/tui-winsource.c (tui_show_source_line): Use
12132 tui_set_reverse_mode instead of setting A_STANDOUT.
12133 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12134 New setter methods.
12136 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12138 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12141 2019-03-18 Tom Tromey <tromey@adacore.com>
12143 * ada-lang.c (empty_array): Add "high" parameter.
12144 (ada_evaluate_subexp): Update.
12146 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12148 * unittests/string_view-selftests.c: Define
12149 _initialize_string_view_selftests unconditionally.
12151 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12154 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12156 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12159 * windows-nat.c (display_selector): Fix format specifiers.
12161 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12163 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12164 tui_refill_source_window instead of tui_refresh_win, to update the
12165 current execution line. This fixes redisplay of the current line
12166 when stepping through the code with "next" or "step".
12168 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12170 * source-cache.c (source_cache::get_source_lines): Call
12171 find_source_lines to initialize s->nlines. This fixes vertical
12172 scrolling of TUI source window when the DOWN arrow is pressed.
12174 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12176 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12177 linux-thread-db.c (_initialize_thread_db): Likewise.
12179 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12181 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12182 wclrtoeol in tui_show_source_line". This reverts changes made in
12183 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12185 2019-03-15 Tom Tromey <tom@tromey.com>
12187 * symtab.h (struct minimal_symbol): Derive from
12188 general_symbol_info.
12189 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12190 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12191 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12192 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12193 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12194 (MSYMBOL_SEARCH_NAME): Update.
12195 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12196 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12197 * minsyms.c (minimal_symbol_reader::record_full): Update.
12199 2019-03-15 Tom Tromey <tom@tromey.com>
12201 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12203 2019-03-15 Tom Tromey <tom@tromey.com>
12205 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12206 unique_xmalloc_ptr.
12207 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12209 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12210 (build_minimal_symbol_hash_tables)
12211 (minimal_symbol_reader::install): Update.
12213 2019-03-15 Tom Tromey <tom@tromey.com>
12215 * symtab.c (create_demangled_names_hash): Update.
12216 (symbol_set_names): Update.
12217 * objfiles.h (struct objfile_per_bfd_storage)
12218 <demangled_names_hash>: Now an htab_up.
12219 * objfiles.c (objfile_per_bfd_storage): Simplify.
12221 2019-03-15 Tom Tromey <tom@tromey.com>
12223 * objfiles.h (struct objfile_per_bfd_storage): Declare
12225 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12227 (get_objfile_bfd_data): Use new. Don't initialize
12229 (free_objfile_per_bfd_storage): Remove.
12230 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12232 2019-03-15 Tom Tromey <tom@tromey.com>
12234 * symfile.c (reread_symbols): Update.
12235 * objfiles.c (objfile::objfile): Update.
12236 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12237 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12239 (minimal_symbol_reader::install): Update.
12240 (terminate_minimal_symbol_table): Remove.
12241 * jit.c (jit_object_close_impl): Update.
12243 2019-03-15 Tom Tromey <tom@tromey.com>
12245 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12248 2019-03-15 Tom Tromey <tom@tromey.com>
12250 * objfiles.h (struct objfile_per_bfd_storage)
12251 <demangled_hash_languages>: Now a bitset.
12252 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12253 (lookup_minimal_symbol): Update.
12255 2019-03-15 Tom Tromey <tom@tromey.com>
12257 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12258 Don't return the symbol.
12259 * coffread.c (record_minimal_symbol): Use record_full.
12261 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12263 The MS-Windows port of ncurses fails to switch to a color pair if
12264 one or both of the colors are the implicit default colors. This
12265 change records the default colors when TUI is initialized, and
12266 then specifies them explicitly when a color pair uses the default
12267 colors. This allows color styling in TUI mode on MS-Windows.
12269 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12271 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12272 colors in ncurses_norm_attr.
12273 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12274 "none", replace it with the default color recorded in
12277 2019-03-14 Tom Tromey <tromey@adacore.com>
12279 * source-cache.h (class source_cache) <get_source_lines>: Return
12281 * source-cache.c (source_cache::extract_lines): Handle case where
12282 first_pos==npos. Return std::string.
12283 (source_cache::get_source_lines): Update.
12285 2019-03-14 Tom Tromey <tromey@adacore.com>
12287 * NEWS: Add item for "style sources" commands.
12288 * source-cache.c (source_cache::get_source_lines): Check
12290 * cli/cli-style.c (source_styling): New global.
12291 (_initialize_cli_style): Add "style sources" commands.
12292 (show_style_sources): New function.
12293 * cli/cli-style.h (source_styling): Declare.
12295 2019-03-14 Pedro Alves <palves@redhat.com>
12296 Tom Tromey <tromey@adacore.com>
12298 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12299 * tui/tui-winsource.c (tui_refill_source_window): New function,
12301 (tui_horizontal_source_scroll): ... here. Move some logic.
12302 * cli/cli-style.c (set_style_enabled): Notify new observable.
12303 * tui/tui-hooks.c (tui_redisplay_source): New function.
12304 (tui_attach_detach_observers): Attach or detach
12305 tui_redisplay_source.
12306 * observable.h (source_styling_changed): New observable.
12307 * observable.c: Define source_styling_changed observable.
12309 2019-03-13 Tom Tromey <tromey@adacore.com>
12311 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12312 (i386_gnu_nat_target::store_registers): Update.
12313 * target-debug.h (target_debug_print_std_string): New macro.
12314 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12315 * windows-tdep.c (display_one_tib): Update.
12316 * tui/tui-stack.c (tui_make_status_line): Update.
12317 * top.c (print_inferior_quit_action): Update.
12318 * thread.c (thr_try_catch_cmd): Update.
12319 (add_thread_with_info): Update.
12320 (thread_target_id_str): Update.
12321 (thr_try_catch_cmd): Update.
12322 (thread_command): Update.
12323 (thread_find_command): Update.
12324 * record-btrace.c (record_btrace_target::info_record)
12325 (record_btrace_resume_thread, record_btrace_target::resume)
12326 (record_btrace_cancel_resume, record_btrace_step_thread)
12327 (record_btrace_target::wait, record_btrace_target::wait)
12328 (record_btrace_target::wait, record_btrace_target::stop): Update.
12329 * progspace.c (print_program_space): Update.
12330 * process-stratum-target.c
12331 (process_stratum_target::thread_address_space): Update.
12332 * linux-fork.c (linux_fork_mourn_inferior)
12333 (detach_checkpoint_command, info_checkpoints_command)
12334 (linux_fork_context): Update.
12335 (linux_fork_detach): Update.
12336 (class scoped_switch_fork_info): Update.
12337 (delete_checkpoint_command): Update.
12338 * infrun.c (follow_fork_inferior): Update.
12339 (follow_fork_inferior): Update.
12340 (proceed_after_vfork_done): Update.
12341 (handle_vfork_child_exec_or_exit): Update.
12342 (follow_exec): Update.
12343 (displaced_step_prepare_throw): Update.
12344 (displaced_step_restore): Update.
12345 (start_step_over): Update.
12346 (resume_1): Update.
12347 (clear_proceed_status_thread): Update.
12349 (print_target_wait_results): Update.
12350 (do_target_wait): Update.
12351 (context_switch): Update.
12352 (stop_all_threads): Update.
12353 (restart_threads): Update.
12354 (finish_step_over): Update.
12355 (handle_signal_stop): Update.
12356 (switch_back_to_stepped_thread): Update.
12357 (keep_going_pass_signal): Update.
12358 (print_exited_reason): Update.
12359 (normal_stop): Update.
12360 * inferior.c (inferior_pid_to_str): Change return type.
12361 (print_selected_inferior): Update.
12362 (add_inferior): Update.
12363 (detach_inferior): Update.
12364 * dummy-frame.c (fprint_dummy_frames): Update.
12365 * dcache.c (dcache_info_1): Update.
12366 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12367 (btrace_fetch, btrace_clear): Update.
12368 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12369 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12371 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12372 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12373 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12374 * gdbarch.c, gdbarch.h: Rebuild.
12375 * gdbarch.sh (core_pid_to_str): Change return type.
12376 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12378 (windows_nat_target::pid_to_str): Change return type.
12379 (windows_delete_thread): Update.
12380 (windows_nat_target::attach): Update.
12381 (windows_nat_target::files_info): Update.
12382 * target-delegates.c: Rebuild.
12383 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12385 (sol_thread_target::pid_to_str): Change return type.
12386 * remote.c (class remote_target) <pid_to_str>: Change return
12388 (remote_target::pid_to_str): Change return type.
12389 (extended_remote_target::attach, remote_target::remote_stop_ns)
12390 (remote_target::remote_notif_remove_queued_reply)
12391 (remote_target::push_stop_reply, remote_target::disable_btrace):
12393 (extended_remote_target::attach): Update.
12394 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12396 (gdbsim_target::pid_to_str): Change return type.
12397 * ravenscar-thread.c (struct ravenscar_thread_target)
12398 <pid_to_str>: Change return type.
12399 (ravenscar_thread_target::pid_to_str): Change return type.
12400 * procfs.c (class procfs_target) <pid_to_str>: Change return
12402 (procfs_target::pid_to_str): Change return type.
12403 (procfs_target::attach): Update.
12404 (procfs_target::detach): Update.
12405 (procfs_target::fetch_registers): Update.
12406 (procfs_target::store_registers): Update.
12407 (procfs_target::wait): Update.
12408 (procfs_target::files_info): Update.
12409 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12410 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12412 (nto_procfs_target::pid_to_str): Change return type.
12413 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12414 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12416 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12417 (exit_lwp): Update.
12418 (attach_proc_task_lwp_callback, get_detach_signal)
12419 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12420 (linux_nat_target::resume, wait_lwp, stop_callback)
12421 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12422 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12423 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12424 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12425 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12427 (inf_ptrace_target::attach): Update.
12428 (inf_ptrace_target::files_info): Update.
12429 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12431 (go32_nat_target::pid_to_str): Change return type.
12432 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12433 (gnu_nat_target::wait): Update.
12434 (gnu_nat_target::wait): Update.
12435 (gnu_nat_target::resume): Update.
12436 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12437 (fbsd_nat_target::wait): Update.
12438 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12440 (darwin_nat_target::attach): Update.
12441 * corelow.c (class core_target) <pid_to_str>: Change return type.
12442 (core_target::pid_to_str): Change return type.
12443 * target.c (normal_pid_to_str): Change return type.
12444 (default_pid_to_str): Likewise.
12445 (target_pid_to_str): Change return type.
12446 (target_translate_tls_address): Update.
12447 (target_announce_detach): Update.
12448 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12450 (bsd_uthread_target::pid_to_str): Change return type.
12451 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12453 (bsd_kvm_target::pid_to_str): Change return type.
12454 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12456 (aix_thread_target::pid_to_str): Change return type.
12457 * target.h (struct target_ops) <pid_to_str>: Change return type.
12458 (target_pid_to_str, normal_pid_to_str): Likewise.
12459 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12461 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12463 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12465 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12467 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12469 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12472 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12474 * NEWS: Mention that the new default MI version is 3. Mention
12475 changes to the output of commands and events that deal with
12476 multi-location breakpoints.
12477 * breakpoint.c: Include "mi/mi-out.h".
12478 (print_one_breakpoint): Change output syntax if using MI version
12480 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12482 (mi_multi_location_breakpoint_output_fixed): New.
12483 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12484 (mi_cmd_fix_multi_location_breakpoint_output): New.
12485 (mi_multi_location_breakpoint_output_fixed): New.
12486 * mi/mi-cmds.c (mi_cmds): Register command
12487 -fix-multi-location-breakpoint-output.
12488 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12491 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12493 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12494 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12495 instantiate mi_ui_out based on interpreter name.
12496 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12497 * mi/mi-main.c (mi_load_progress): Likewise.
12499 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12501 * NEWS: Combine separate "New targets" sections for 8.3.
12503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12505 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12506 (ppcfbsd_init_abi): Install gdbarch
12507 "fetch_tls_load_module_address" and "get_thread_local_address"
12510 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12512 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12513 (riscv_fbsd_init_abi): Install gdbarch
12514 "fetch_tls_load_module_address" and "get_thread_local_address"
12517 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12519 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12520 (i386fbsd_init_abi): Install gdbarch
12521 "fetch_tls_load_module_address" and "get_thread_local_address"
12524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12526 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12527 (amd64fbsd_init_abi): Install gdbarch
12528 "fetch_tls_load_module_address" and "get_thread_local_address"
12531 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12533 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12534 (struct fbsd_pspace_data): New type.
12535 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12536 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12537 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12538 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12539 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12541 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12543 * gdbtypes.c (lookup_struct_elt): New function.
12544 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12545 * gdbtypes.h (struct struct_elt): New type.
12546 (lookup_struct_elt): New prototype.
12548 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12550 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12551 remove disabled code block.
12553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12555 * gdbarch.sh (get_thread_local_address): New method.
12556 * gdbarch.h, gdbarch.c: Regenerate.
12557 * target.c (target_translate_tls_address): Use
12558 gdbarch_get_thread_local_address if present instead of
12559 target::get_thread_local_address.
12561 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12563 * target.h (target::get_thread_local_address): Update comment.
12565 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12567 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12568 objfile->separate_debug_objfile_backlink if not NULL.
12570 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12572 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12573 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12574 (amd64bsd_store_inferior_registers): Likewise.
12575 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12576 Enable segment base registers.
12577 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12578 PT_GETFSBASE and PT_GETGSBASE.
12579 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12581 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12582 segment base registers.
12583 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12585 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12587 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12588 Update calls to i386_target_description to add 'segments'
12590 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12591 add segment base registers.
12592 * arch/i386.c (i386_create_target_description): Add 'segments'
12593 parameter to enable segment base registers.
12594 * arch/i386.h (i386_create_target_description): Likewise.
12595 * features/i386/32bit-segments.xml: New file.
12596 * features/i386/32bit-segments.c: Generate.
12597 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12598 call to i386_target_description to add 'segments' parameter.
12599 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12600 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12601 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12602 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12603 if feature is present.
12604 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12605 Add 'segments' parameter to call to i386_target_description.
12606 (i386_target_description): Add 'segments' parameter to enable
12607 segment base registers.
12608 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12609 to call to i386_target_description.
12610 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12611 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12612 Define I386_NUM_REGS.
12613 (i386_target_description): Add 'segments' parameter to enable
12614 segment base registers.
12616 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12619 * source-cache.c: #undef open and close, to avoid unresolved
12620 externals during linking.
12622 2019-03-12 Tom Tromey <tromey@adacore.com>
12624 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12625 const. Add initializers.
12626 (_initialize_remote): Don't initialize ptid globals.
12628 2019-03-12 Pedro Alves <palves@redhat.com>
12630 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12632 2019-03-12 Pedro Alves <palves@redhat.com>
12634 * cp-name-parser.y (main): Remove unused 'len' variable.
12636 2019-03-12 Tom Tromey <tromey@adacore.com>
12638 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12639 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12641 2019-03-12 Tom Tromey <tromey@adacore.com>
12643 * linux-nat.c (iterate_over_lwps): Update.
12644 (stop_callback): Remove parameter.
12645 (stop_wait_callback, detach_callback, resume_set_callback)
12646 (select_singlestep_lwp_callback, set_ignore_sigint)
12647 (status_callback, resumed_callback, resume_clear_callback)
12648 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12650 (linux_nat_target::detach, linux_nat_target::resume)
12651 (linux_stop_and_wait_all_lwps, select_event_lwp)
12652 (linux_nat_filter_event, linux_nat_wait_1)
12653 (linux_nat_target::kill, linux_nat_target::stop)
12654 (linux_nat_target::stop): Update.
12655 (linux_nat_resume_callback): Change type.
12656 (resume_stopped_resumed_lwps, count_events_callback)
12657 (select_event_lwp_callback): Likewise.
12658 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12659 * arm-linux-nat.c (struct update_registers_data): Remove.
12660 (update_registers_callback): Change type.
12661 (arm_linux_insert_hw_breakpoint1): Update.
12662 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12664 (x86_linux_dr_set_addr): Update.
12665 (x86_linux_dr_set_control): Update.
12666 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12667 (iterate_over_lwps): Use gdb::function_view.
12668 * nat/aarch64-linux-hw-point.c (struct
12669 aarch64_dr_update_callback_param): Remove.
12670 (debug_reg_change_callback): Change type.
12671 (aarch64_notify_debug_reg_change): Update.
12672 * s390-linux-nat.c (s390_refresh_per_info): Update.
12674 2019-03-11 Tom Tromey <tromey@adacore.com>
12676 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12677 redundant assignment to "this_cu".
12679 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12681 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12683 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12685 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12687 (rank_one_type): ... this.
12689 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12691 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12693 (rank_one_type): ... this.
12695 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12697 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12699 (rank_one_type): ... this.
12701 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12703 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12705 (rank_one_type): ... this.
12707 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12709 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12711 (rank_one_type): ... this.
12713 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12715 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12717 (rank_one_type): ... this.
12719 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12721 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12723 (rank_one_type): ... this.
12725 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12727 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12729 (rank_one_type): ... this.
12731 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12733 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12735 (rank_one_type): ... this.
12737 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12739 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12741 (rank_one_type): ... this.
12743 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12745 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12747 (rank_one_type): ... this.
12749 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12751 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12753 (rank_one_type): ... this.
12755 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12757 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12758 inferior-events' shows the example events.
12760 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12762 Support styling on native MS-Windows console
12765 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12766 on MS-Windows if $TERM is not defined.
12768 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12770 * posix-hdep.c (gdb_console_fputs):
12771 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12773 * ui-file.h (gdb_console_fputs): Add prototype.
12775 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12776 back to fputs only if the former returns zero.
12778 2019-03-07 Tom Tromey <tom@tromey.com>
12780 * symmisc.c (print_symbol_bcache_statistics): Update.
12781 (print_objfile_statistics): Update.
12782 * symfile.c (allocate_symtab): Update.
12783 * stabsread.c: Don't include bcache.h.
12784 * psymtab.h (struct psymbol_bcache): Don't declare.
12785 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12786 (psymbol_bcache_init, psymbol_bcache_free)
12787 (psymbol_bcache_get_bcache): Don't declare.
12788 * psymtab.c (struct psymbol_bcache): Remove.
12789 (psymtab_storage::psymtab_storage): Update.
12790 (psymtab_storage::~psymtab_storage): Update.
12791 (psymbol_bcache_init, psymbol_bcache_free)
12792 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12793 (add_psymbol_to_bcache): Update.
12794 (allocate_psymtab): Update.
12795 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12796 macro_cache>: No longer pointers.
12797 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12798 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12799 * macrotab.c (macro_bcache): Update.
12800 * macroexp.c: Don't include bcache.h.
12801 * gdbtypes.c (check_types_worklist): Update.
12802 (types_deeply_equal): Remove TRY/CATCH. Update.
12803 * elfread.c (elf_symtab_read): Update.
12804 * dwarf2read.c: Don't include bcache.h.
12805 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12806 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12807 (print_bcache_statistics, bcache_memory_used): Don't declare.
12808 (struct bcache): Move from bcache.c. Add constructor, destructor,
12809 methods. Rename all data members.
12810 * bcache.c (struct bcache): Move to bcache.h.
12811 (bcache::expand_hash_table): Rename from expand_hash_table.
12813 (bcache::insert): Rename from bcache_full.
12814 (bcache::compare): Rename from bcache_compare.
12815 (bcache_xmalloc): Remove.
12816 (bcache::~bcache): Rename from bcache_xfree.
12817 (bcache::print_statistics): Rename from print_bcache_statistics.
12818 (bcache::memory_used): Rename from bcache_memory_used.
12820 2019-03-07 Pedro Alves <palves@redhat.com>
12822 * infrun.c (normal_stop): Also check for
12823 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12825 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12827 * f-lang.c (value_from_host_double): Moved to...
12828 * value.c (value_from_host_double): ...here.
12829 * value.h (value_from_host_double): Declare.
12830 * guile/scm-math.c (vlscm_convert_typed_number): Use
12831 value_from_host_double.
12832 (vlscm_convert_number): Likewise.
12833 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12834 * python/py-value.c (convert_value_from_python): Likewise.
12836 2019-03-06 Tom Tromey <tom@tromey.com>
12838 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12840 2019-03-06 Tom Tromey <tom@tromey.com>
12842 * utils.h (free_current_contents): Don't declare.
12843 * utils.c (free_current_contents): Remove.
12845 2019-03-06 Tom Tromey <tom@tromey.com>
12847 * top.c (quit_force): Update.
12848 * main.c (captured_command_loop): Update.
12849 * common/new-op.c (operator new): Update.
12850 * common/common-exceptions.c (struct catcher)
12851 <save_cleanup_chain>: Remove member.
12852 (exceptions_state_mc_init): Update.
12853 (exception_try_scope_entry): Return nullptr.
12854 (exception_try_scope_exit, exception_rethrow)
12855 (throw_exception_sjlj, throw_exception_cxx): Update.
12856 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12857 (all_cleanups, do_cleanups, discard_cleanups)
12858 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12859 (restore_cleanups, restore_final_cleanups): Don't declare.
12860 (do_final_cleanups): Remove parameter.
12861 * common/cleanups.c (cleanup_chain, make_cleanup)
12862 (make_cleanup_dtor, all_cleanups, do_cleanups)
12863 (discard_my_cleanups, discard_cleanups)
12864 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12865 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12866 (null_cleanup): Remove.
12867 (do_final_cleanups): Remove parameter.
12869 2019-03-06 Tom Tromey <tom@tromey.com>
12871 * remote.c (remote_target::remote_parse_stop_reply): Use
12872 unique_xmalloc_ptr.
12874 2019-03-06 Tom Tromey <tom@tromey.com>
12876 * stabsread.c (struct stabs_field_info): Rename from field_info.
12877 <list, fnlist>: Add initializers.
12878 <obstack>: New member.
12879 (read_member_functions, read_struct_fields, read_baseclasses):
12880 Allocate on obstack. Don't use cleanups.
12881 (read_one_struct_field, read_member_functions, read_struct_fields)
12882 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12883 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12884 (read_struct_type): Update.
12886 2019-03-06 Tom Tromey <tom@tromey.com>
12888 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12889 * common/filestuff.h (make_cleanup_close): Don't declare.
12890 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12893 2019-03-06 Tom Tromey <tom@tromey.com>
12895 * solib-aix.c: Use make_scope_exit.
12897 2019-03-06 Tom Tromey <tom@tromey.com>
12899 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12900 Use make_scope_exit.
12902 2019-03-06 Tom Tromey <tom@tromey.com>
12904 * solib-svr4.c (disable_probes_interface): Remove parameter.
12905 (svr4_handle_solib_event): Use make_scope_exit.
12907 2019-03-06 Tom Tromey <tom@tromey.com>
12909 * remote.c (struct stop_reply_deleter): Remove.
12910 (stop_reply_up): Update.
12911 (struct stop_reply): Derive from notif_event. Don't typedef.
12912 <regcache>: Now a std::vector.
12913 (stop_reply_xfree): Remove.
12914 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12915 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12916 (remote_target::discard_pending_stop_replies): Use delete.
12917 (remote_target::remote_parse_stop_reply): Update.
12918 (remote_target::process_stop_reply): Update.
12919 * remote-notif.h (struct notif_event): Add virtual destructor.
12920 Remove "dtr" member.
12921 (struct notif_client) <alloc_event>: Return a unique_ptr.
12922 (notif_event_xfree): Don't declare.
12923 (notif_event_up): New typedef.
12924 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12925 (notif_event_xfree, do_notif_event_xfree): Remove.
12926 (remote_notif_state_xfree): Update.
12928 2019-03-06 Tom Tromey <tom@tromey.com>
12930 * infrun.c (displaced_step_clear_cleanup): Now a
12931 forward_scope_exit type.
12932 (displaced_step_prepare_throw): Update.
12933 (displaced_step_fixup): Update.
12935 2019-03-06 Tom Tromey <tom@tromey.com>
12937 * inferior.h (class inferior): Update comment.
12938 * gdbthread.h (class thread_info): Update comment.
12940 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12941 Tom Tromey <tom@tromey.com>
12943 * stabsread.h (struct stab_section_list): Remove.
12944 (coffstab_build_psymtabs): Update.
12945 * dbxread.c (symbuf_sections): Now a std::vector.
12946 (sect_idx): New global.
12947 (fill_symbuf): Update.
12948 (coffstab_build_psymtabs): Change type of stabsects parameter.
12950 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12952 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12953 (coff_locate_sections): Update.
12954 (coff_symfile_read): Remove cleanups. Update.
12955 (init_stringtab): Add storage parameter.
12956 (free_stringtab, free_stringtab_cleanup): Remove.
12957 (init_lineno): Add storage parameter.
12958 (free_linetab, free_linetab_cleanup): Remove.
12960 2019-03-06 Pedro Alves <palves@redhat.com>
12962 * linux-fork.c (fork_info::clobber_regs): Delete.
12963 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12964 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12966 (scoped_switch_fork_info::scoped_switch_fork_info)
12967 (checkpoint_command, linux_fork_context): Adjust
12968 fork_save_infrun_state calls.
12970 2019-03-06 Pedro Alves <palves@redhat.com>
12972 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12973 (inf_has_multiple_threads): Return 'bool' and rewrite using
12974 inferior_info::threads().
12976 2019-03-06 Pedro Alves <palves@redhat.com>
12978 * linux-fork.c: Include <list>.
12979 (fork_list): Now a std::list instance.
12980 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12981 (forks_exist_p, find_last_fork): Adjust.
12982 (new_fork): Delete.
12984 (add_fork): Adjust.
12985 (free_fork): Delete, folded into fork_info::~fork_info().
12986 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12988 (init_fork_list): Delete.
12989 (linux_fork_killall, linux_fork_mourn_inferior)
12990 (linux_fork_detach, info_checkpoints_command): Adjust.
12991 (_initialize_linux_fork): No longer call init_fork_list.
12993 2019-03-06 Pedro Alves <palves@redhat.com>
12995 * linux-fork.c (new_fork): New, split out of ...
12996 (add_fork): ... this. Return void. Move "first fork" special
12997 case from here, to ...
12998 (checkpoint_command): ... here.
12999 * linux-linux.h (add_fork): Return void.
13001 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13003 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13005 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13006 Chris January <chris.january@arm.com>
13007 David Lecomber <david.lecomber@arm.com>
13009 * f-exp.y: New token, UNOP_INTRINSIC.
13010 (exp): New pattern using UNOP_INTRINSIC token.
13011 (f77_keywords): Add 'abs' keyword.
13012 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13013 (value_from_host_double): New function.
13014 (evaluate_subexp_f): Support UNOP_ABS.
13016 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13018 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13021 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13023 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13024 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13025 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13027 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13029 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13031 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13032 Chris January <chris.january@arm.com>
13034 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13035 * f-exp.y: Define 'KIND' token.
13036 (exp): New pattern for KIND expressions.
13037 (ptype): Handle types with a kind extension.
13038 (direct_abs_decl): Extend to spot kind extensions.
13039 (f77_keywords): Add 'kind' to the list.
13040 (push_kind_type): New function.
13041 (convert_to_kind_type): New function.
13042 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13043 * parse.c (operator_length_standard): Likewise.
13044 * parser-defs.h (enum type_pieces): Add tp_kind.
13045 * std-operator.def: Add UNOP_KIND.
13047 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13049 * f-exp.y (f_parse): Set yydebug.
13051 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13053 * f-lang.c (evaluate_subexp_f): New function.
13054 (exp_descriptor_f): New global.
13055 (f_language_defn): Use exp_descriptor_f instead of
13056 exp_descriptor_standard.
13058 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13060 * f-exp.y (struct token): Add comments.
13061 (dot_ops): Remove uppercase versions and the end marker.
13062 (f77_keywords): Likewise.
13063 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13064 entries in the dot_ops array are case insensitive, and use
13065 strncasecmp to compare strings. Also some whitespace cleanup in
13066 this area. Similar for the f77_keywords array, except entries in
13067 this list might be case sensitive.
13069 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13071 * f-exp.y (struct f77_boolean_val): Add comments.
13072 (boolean_values): Remove uppercase versions, and end marker.
13073 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13074 and use strncasecmp to achieve case insensitivity. Additionally,
13075 perform whitespace cleanup around this code.
13077 2019-03-06 Tom Tromey <tromey@adacore.com>
13079 * remote-sim.c (gdbsim_target_open): Use result of
13082 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13083 Dirk Schubert <dirk.schubert@arm.com>
13084 Chris January <chris.january@arm.com>
13086 * eval.c (evaluate_subexp_standard): Call Fortran argument
13088 * f-lang.c (struct value): A value which can be passed into a
13089 Fortran function call.
13090 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13092 (struct type): Value ready for a Fortran function call.
13093 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13095 * f-lang.h (fortran_argument_convert): Declaration.
13096 (fortran_preserve_arg_pointer): Declaration.
13097 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13099 2019-03-05 Tom Tromey <tromey@adacore.com>
13101 * python/py-prettyprint.c (print_string_repr): Remove #if.
13102 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13104 2019-03-05 Tom Tromey <tromey@adacore.com>
13106 * target.c (the_dummy_target): Move later. Change type to
13108 (initialize_targets): Don't initialize the_dummy_target.
13110 2019-03-05 Tom Tromey <tromey@adacore.com>
13112 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13113 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13115 2019-03-05 Tom Tromey <tromey@adacore.com>
13117 * windows-nat.c (windows_nat_target::attach)
13118 (windows_nat_target::detach): Don't call gdb_flush.
13119 * valprint.c (generic_val_print, val_print, val_print_string):
13120 Don't call gdb_flush.
13121 * utils.c (defaulted_query): Don't call gdb_flush.
13122 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13123 * target.c (target_announce_detach): Don't call gdb_flush.
13124 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13125 * remote.c (extended_remote_target::attach): Don't call
13127 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13128 * printcmd.c (do_examine): Don't call gdb_flush.
13129 (info_display_command): Don't call gdb_flush.
13130 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13131 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13132 * memattr.c (info_mem_command): Don't call gdb_flush.
13133 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13134 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13135 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13136 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13137 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13138 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13139 (gnu_nat_target::detach): Don't call gdb_flush.
13140 * f-valprint.c (f_val_print): Don't call gdb_flush.
13141 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13142 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13143 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13145 * c-valprint.c (c_val_print): Don't call gdb_flush.
13146 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13148 2019-03-05 Tom Tromey <tromey@adacore.com>
13150 * varobj.c (update_dynamic_varobj_children): Update.
13151 (install_default_visualizer): Use reset, not release.
13152 * value.c (set_internalvar): Update.
13153 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13154 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13155 ATTRIBUTE_UNUSED_RESULT.
13157 2019-03-05 Tom Tromey <tromey@adacore.com>
13159 * remote.c (class scoped_remote_fd) <release>: Add
13160 ATTRIBUTE_UNUSED_RESULT.
13162 2019-03-05 Tom Tromey <tromey@adacore.com>
13164 * macroexp.c (struct macro_buffer) <release>: Add
13165 ATTRIBUTE_UNUSED_RESULT.
13167 2019-03-05 Tom Tromey <tromey@adacore.com>
13169 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13170 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13171 ATTRIBUTE_UNUSED_RESULT.
13173 2019-03-05 Tom Tromey <tromey@adacore.com>
13175 * common/scoped_fd.h (class scoped_fd) <release>: Add
13176 ATTRIBUTE_UNUSED_RESULT.
13178 2019-03-05 Tom Tromey <tromey@adacore.com>
13180 * parser-defs.h (struct parser_state) <release>: Add
13181 ATTRIBUTE_UNUSED_RESULT.
13183 2019-03-05 Tom Tromey <tromey@adacore.com>
13185 * utils.h (class gdb_argv) <release>: Add
13186 ATTRIBUTE_UNUSED_RESULT.
13187 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13189 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13191 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13192 for-loop range, to avoid compiler warnings.
13194 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13195 avoid compiler warnings about unused variables.
13197 * NEWS: Mention end of support for native debugging on MS-Windows
13201 * common/netstuff.c:
13202 * gdbserver/gdbreplay.c
13203 * gdbserver/remote-utils.c:
13205 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13206 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13207 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13208 'getaddrinfo' and 'freeaddrinfo' were not available before
13209 Windows XP, and mingw.org's MinGW headers by default define
13210 _WIN32_WINNT to 0x500.
13212 2019-03-01 Gary Benson <gbenson@redhat.com>
13214 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13216 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13217 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13220 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13221 set_sigint_trap, clear_sigint_trap.
13223 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13225 * target.c (target_detach): Clear the regcache and the
13228 2019-02-27 Pedro Alves <palves@redhat.com>
13230 * utils.c (set_screen_size): When we cap the height/width sizes,
13231 tweak the corresponding command variable to show "unlimited":
13233 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13234 Pedro Alves <palves@redhat.com>
13236 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13237 before calling rl_set_screen_size.
13239 2019-02-27 Tom Tromey <tromey@adacore.com>
13241 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13243 * python/py-value.c: Remove Python 2.4 workaround.
13244 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13246 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13247 Python 2.4 workaround.
13248 * python/python-internal.h: Remove Python 2.4 comment.
13249 (Py_ssize_t): Don't define.
13250 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13251 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13252 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13253 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13254 * python/python.c (do_start_initialization): Remove Python 2.4
13256 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13257 (print_children): Remove Python 2.4 workaround.
13258 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13260 (CHARBUFFERPROC_NAME): Remove.
13261 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13262 Python 2.4 workaround.
13264 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13266 * NEWS: Note minimum Python version.
13268 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13270 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13271 code from these functions. Remove corresponding ifdefs. Use
13272 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13273 Remove gotos and target of gotos.
13274 (infpy_search_memory): Likewise.
13276 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13278 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13279 (hppa_gdbarch_init): Don't register deleted functions with
13282 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13284 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13285 (h8300_unwind_sp): Delete.
13286 (h8300_dummy_id): Delete.
13287 (h8300_gdbarch_init): Don't register deleted functions with
13290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13292 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13293 (ft32_unwind_pc): Delete.
13294 (ft32_unwind_sp): Delete.
13295 (ft32_gdbarch_init): Don't register deleted functions with
13298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13300 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13301 (frv_unwind_pc): Delete.
13302 (frv_unwind_sp): Delete.
13303 (frv_gdbarch_init): Don't register deleted functions with
13306 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13308 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13309 (riscv_unwind_pc): Delete.
13310 (riscv_unwind_sp): Delete.
13311 (riscv_gdbarch_init): Don't register deleted functions with
13314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13316 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13317 (csky_unwind_pc): Delete.
13318 (csky_unwind_sp): Delete.
13319 (csky_gdbarch_init): Don't register deleted functions with
13322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13324 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13325 (cris_unwind_pc): Delete.
13326 (cris_unwind_sp): Delete.
13327 (cris_gdbarch_init): Don't register deleted functions with
13330 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13332 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13333 (bfin_unwind_pc): Delete.
13334 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13338 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13339 (arm_unwind_pc): Delete.
13340 (arm_unwind_sp): Delete.
13341 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13345 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13346 (arc_unwind_pc): Delete.
13347 (arc_unwind_sp): Delete.
13348 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13352 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13353 (alpha_unwind_pc): Delete.
13354 (alpha_gdbarch_init): Don't register deleted functions with
13357 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13359 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13360 (aarch64_unwind_pc): Delete.
13361 (aarch64_unwind_sp): Delete.
13362 (aarch64_gdbarch_init): Don't register deleted functions with
13365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13367 * gdbtypes.c (type_align): Don't consider static members when
13368 computing structure alignment.
13370 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13372 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13373 return 0 for other types.
13374 * arch-utils.c (default_type_align): Always return 0.
13375 * gdbarch.h: Regenerate.
13376 * gdbarch.sh (type_align): Extend comment.
13377 * gdbtypes.c (type_align): Add additional comments, always call
13378 gdbarch_type_align before applying the default rules.
13379 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13380 generic code will then apply a suitable default.
13381 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13382 types, return 0 for other types.
13384 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13386 * NEWS: Create a new section for the next release branch.
13387 Rename the section of the current branch, now that it has
13390 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13392 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13393 * version.in: Bump version to 8.3.50.DATE-git.
13395 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13397 * aix-thread.c (ptid_cmp): Remove unused variable.
13398 (get_signaled_thread): Likewise.
13399 (store_regs_user_thread): Likewise.
13400 (store_regs_kernel_thread): Likewise.
13401 (fetch_regs_kernel_thread): Remove shadowed variable.
13403 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13405 * features/riscv/32bit-cpu.xml: Add register numbers.
13406 * features/riscv/32bit-fpu.c: Regenerate.
13407 * features/riscv/32bit-fpu.xml: Add register numbers.
13408 * features/riscv/64bit-cpu.xml: Add register numbers.
13409 * features/riscv/64bit-fpu.c: Regenerate.
13410 * features/riscv/64bit-fpu.xml: Add register numbers.
13412 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13414 * NEWS: Mention two argument form of gdb.Value constructor.
13415 * python/py-value.c (convert_buffer_and_type_to_value): New
13417 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13418 Add support for handling an optional second argument. Call
13419 convert_buffer_and_type_to_value as appropriate.
13420 * python/python-internal.h (Py_buffer_deleter): New struct.
13421 (Py_buffer_up): New typedef.
13423 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13425 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13426 instead of releasing ownership.
13428 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13430 * dwarf2read.c (open_and_init_dwp_file): Call
13431 elf_numsections instead of bfd_count_sections to initialize
13432 dwp_file->num_sections.
13434 2019-02-25 Tom Tromey <tromey@adacore.com>
13436 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13438 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13440 * gcore.in: Add '--readnever' option when invoking GDB.
13442 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13444 * MAINTAINERS: Update my email address.
13446 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13448 * build-id.c (build_id_to_debug_bfd_1): New function.
13449 (build_id_to_debug_bfd): Look for separate debug file in
13452 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13454 * gdbarch.sh: Update the copyright year range that is placed into
13457 2019-02-22 Keith Seitz <keiths@redhat.com>
13460 * linespec.c (create_sals_line_offset): Search for the default
13461 symtab's filename instead of its fullname.
13463 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13465 * NEWS: Update style defaults.
13467 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13469 * main.c (captured_main_1): Disable styling in batch mode.
13471 2019-02-20 Tom Tromey <tom@tromey.com>
13473 * symtab.c (symtab_symbol_info): Fix typos.
13475 2019-02-20 Tom Tromey <tromey@adacore.com>
13477 * findcmd.c (_initialize_mem_search): Use upper case for
13478 metasyntactic variables.
13480 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13482 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13483 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13485 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13487 * top.h (source_file_name): Change to std::string.
13488 * top.c (source_file_name): Likewise.
13489 (command_line_input): Adjust.
13490 * cli/cli-script.c (script_from_file): Adjust.
13492 2019-02-19 Tom Tromey <tromey@adacore.com>
13494 * ravenscar-thread.c
13495 (ravenscar_thread_target::update_thread_list): Don't call
13496 ada_build_task_list.
13497 * ada-lang.h (ada_build_task_list): Don't declare.
13498 * ada-tasks.c (struct ada_tasks_inferior_data)
13499 <task_list_valid_p>: Now bool.
13500 (read_known_tasks, ada_task_list_changed)
13501 (ada_tasks_invalidate_inferior_data): Update.
13502 (read_known_tasks_array): Return bool.
13503 (read_known_tasks_list): Likewise.
13504 (read_known_tasks): Return void.
13505 (ada_build_task_list): Now static.
13507 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13509 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13510 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13512 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13514 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13515 variant for ada_tasks_pspace_data_handle and
13516 ada_tasks_inferior_data_handle.
13517 (ada_tasks_pspace_data_cleanup): New function.
13518 (ada_tasks_inferior_data_cleanup): New function.
13520 2019-02-17 Tom Tromey <tom@tromey.com>
13522 * macrotab.h (macro_source_fullname): Return a std::string.
13523 * macrotab.c (macro_include, check_for_redefinition)
13524 (macro_undef, macro_lookup_definition, foreach_macro)
13525 (foreach_macro_in_scope): Update.
13526 (macro_source_fullname): Return a std::string.
13527 * macrocmd.c (show_pp_source_pos): Update.
13529 2019-02-17 Tom Tromey <tom@tromey.com>
13531 * macrocmd.c (show_pp_source_pos): Style the file names.
13533 2019-02-17 Tom Tromey <tom@tromey.com>
13536 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13538 2019-02-17 Tom Tromey <tom@tromey.com>
13540 * ada-lang.c (user_select_syms): Use filtered printing.
13541 * utils.c (wrap_style): New global.
13542 (desired_style): Remove.
13543 (emit_style_escape): Add stream parameter.
13544 (set_output_style, reset_terminal_style, prompt_for_continue):
13546 (flush_wrap_buffer): Only flush gdb_stdout.
13547 (wrap_here): Set wrap_style.
13548 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13549 treat escape sequences as a character. Change when wrap buffer is
13551 (fputs_styled): Do not set the output style when the default is
13553 * ui-style.h (struct ui_file_style) <is_default>: New method.
13554 * source.c (print_source_lines_base): Emit escape sequences in one
13557 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13559 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13560 integers and enumeration types.
13562 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13564 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13565 instead of lookup_symbol_in_language
13566 (do_exact_match): New function.
13567 (ada_get_symbol_name_matcher): Return do_exact_match when
13568 doing a verbatim match.
13570 2019-02-15 Tom Tromey <tromey@adacore.com>
13572 * ravenscar-thread.c (ravenscar_thread_target::resume)
13573 (ravenscar_thread_target::wait): Special case wildcard requests.
13575 2019-02-15 Tom Tromey <tromey@adacore.com>
13577 * ravenscar-thread.c (base_ptid): Remove.
13578 (struct ravenscar_thread_target) <close>: New method.
13579 <m_base_ptid>: New member.
13580 <update_inferior_ptid, active_task, task_is_currently_active,
13581 runtime_initialized>: Declare methods.
13582 <ravenscar_thread_target>: Add constructor.
13583 (ravenscar_thread_target::task_is_currently_active)
13584 (ravenscar_thread_target::update_inferior_ptid)
13585 (ravenscar_runtime_initialized): Rename. Now methods.
13586 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13587 (ravenscar_thread_target::update_thread_list): Update.
13588 (ravenscar_thread_target::active_task): Now method.
13589 (ravenscar_thread_target::store_registers)
13590 (ravenscar_thread_target::prepare_to_store)
13591 (ravenscar_thread_target::prepare_to_store)
13592 (ravenscar_thread_target::mourn_inferior): Update.
13593 (ravenscar_inferior_created): Use "new" to create target.
13594 (ravenscar_thread_target::get_ada_task_ptid): Update.
13595 (_initialize_ravenscar): Don't initialize base_ptid.
13596 (ravenscar_ops): Remove global.
13598 2019-02-15 Tom Tromey <tromey@adacore.com>
13600 * target.h (push_target): Declare new overload.
13601 * target.c (push_target): New overload, taking an rvalue reference.
13602 * remote.c (remote_target::open_1): Use push_target overload.
13603 * corelow.c (core_target_open): Use push_target overload.
13605 2019-02-15 Tom Tromey <tromey@adacore.com>
13607 * ravenscar-thread.c (is_ravenscar_task)
13608 (ravenscar_task_is_currently_active): Return bool.
13609 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13610 (_initialize_ravenscar): Remove "(void)".
13611 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13614 2019-02-15 Tom Tromey <tromey@adacore.com>
13616 * ravenscar-thread.c (ravenscar_runtime_initializer)
13617 (has_ravenscar_runtime, get_running_thread_id)
13618 (ravenscar_thread_target::resume): Fix indentation.
13620 2019-02-15 Tom Tromey <tromey@adacore.com>
13622 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13623 from ravenscar_arch_ops.
13624 (sparc_ravenscar_ops::fetch_registers)
13625 (sparc_ravenscar_ops::store_registers): Now methods.
13626 (sparc_ravenscar_prepare_to_store): Remove.
13627 (sparc_ravenscar_ops): Redefine.
13628 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13629 methods and destructor. Remove members.
13630 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13631 (ravenscar_thread_target::store_registers)
13632 (ravenscar_thread_target::prepare_to_store): Update.
13633 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13635 (struct ppc_ravenscar_powerpc_ops): Derive from
13636 ravenscar_arch_ops.
13637 (ppc_ravenscar_powerpc_ops::fetch_registers)
13638 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13639 (ppc_ravenscar_powerpc_ops): Redefine.
13640 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13641 (ppc_ravenscar_e500_ops::fetch_registers)
13642 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13643 (ppc_ravenscar_e500_ops): Redefine.
13644 * aarch64-ravenscar-thread.c
13645 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13646 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13647 (aarch64_ravenscar_fetch_registers)
13648 (aarch64_ravenscar_store_registers): Now methods.
13649 (aarch64_ravenscar_ops): Redefine.
13651 2019-02-15 Tom Tromey <tromey@adacore.com>
13653 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13654 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13655 (ravenscar_thread_target::stopped_by_watchpoint)
13656 (ravenscar_thread_target::stopped_data_address)
13657 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13659 2019-02-15 Tom Tromey <tromey@adacore.com>
13661 * ravenscar-thread.c: Fix some typos.
13663 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13664 Tom Tromey <tromey@adacore.com>
13666 * ada-lang.c (ada_exception_sal): Change addr_string to a
13668 (create_ada_exception_catchpoint): Update.
13670 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13671 Tom Tromey <tromey@adacore.com>
13673 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13674 (bp_location_ops): Remove.
13675 (base_breakpoint_allocate_location): Update.
13676 (free_bp_location): Update.
13677 * ada-lang.c (class ada_catchpoint_location)
13678 <ada_catchpoint_location>: Remove ops parameter.
13679 (ada_catchpoint_location_dtor): Remove.
13680 (ada_catchpoint_location_ops): Remove.
13681 (allocate_location_exception): Update.
13682 * breakpoint.h (struct bp_location_ops): Remove.
13683 (class bp_location) <bp_location>: Remove bp_location_ops
13685 <~bp_location>: Add destructor.
13688 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13689 Pedro Alves <palves@redhat.com>
13691 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13694 2019-02-14 David Michael <fedora.dm0@gmail.com>
13695 Samuel Thibault <samuel.thibault@gnu.org>
13696 Thomas Schwinge <thomas@codesourcery.com>
13698 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13699 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13701 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13703 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13704 (check_empty): Use "const char *".
13706 * gnu-nat.c (gnu_nat_target::detach): Instead of
13707 'detach_inferior (pid)' call
13708 'detach_inferior (find_inferior_pid (pid))'.
13710 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13711 'nat/fork-inferior.o'.
13712 * gnu-nat.c: #include "nat/fork-inferior.h".
13714 * gnu-nat.c (gnu_nat_target::detach): Instead of
13715 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13716 * gnu-nat.h: #include "inf-child.h".
13717 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13718 'i386_gnu_nat_target::fetch_registers'.
13719 (gnu_store_registers): Rename/move to
13720 'i386_gnu_nat_target::store_registers'.
13722 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13723 * gnu-nat.h (mach_thread_info): New function.
13724 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13726 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13728 2019-02-14 Frederic Konrad <konrad@adacore.com>
13730 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13732 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13734 * windows-nat.c (windows_add_thread): Add new parameter
13735 "main_thread_p" with default value set to false. Update
13736 function documentation as well as all callers.
13737 (windows_delete_thread): Likewise.
13738 (fake_create_process): Update call to windows_add_thread.
13739 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13740 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13741 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13742 call to windows_delete_thread.
13744 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13746 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13748 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13750 * symfile.c (find_separate_debug_file): Use canonical path of
13751 sysroot with child_path instead of gdb_sysroot if it is valid.
13753 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13755 * symfile.c (find_separate_debug_file): Use child_path to
13756 determine if an object file is under a sysroot.
13758 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13760 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13761 unittests/child-path-selftests.c.
13762 * common/pathstuff.c (child_path): New function.
13763 * common/pathstuff.h (child_path): New prototype.
13764 * unittests/child-path-selftests.c: New file.
13766 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13768 * symfile.c (find_separate_debug_file): Look for separate debug
13769 files in debug directories under the sysroot.
13771 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13773 * symtab.h (struct minimal_symbol data_p): New const method.
13774 (struct minimal_symbol text_p): Likewise.
13775 * symtab.c (output_source_filename): Use file name style
13776 to print file name.
13777 (print_symbol_info): Likewise.
13778 (print_msymbol_info): Use address style to print addresses.
13779 Use function name style to print executable text symbols.
13780 (expand_symtab_containing_pc): Use data_p.
13781 (find_pc_sect_compunit_symtab): Likewise.
13783 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13785 * breakpoint.c (describe_other_breakpoints): Use address style
13786 to print addresses.
13787 (say_where): Likewise.
13789 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13791 * ada-typeprint.c (print_func_type): Print function name
13792 style to print function name.
13793 * c-typeprint.c (c_print_type_1): Likewise.
13795 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13797 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13800 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13802 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13805 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13807 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13808 TYPE_CODE_REF types.
13810 2019-02-08 Jim Wilson <jimw@sifive.com>
13812 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13813 (riscv_linux_fregset): New.
13814 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13816 2019-02-07 Tom Tromey <tom@tromey.com>
13818 * thread.c (thread_cancel_execution_command): Update.
13819 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13821 (struct thread_fsm_ops): Remove.
13822 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13823 (thread_fsm_should_stop, thread_fsm_return_value)
13824 (thread_fsm_set_finished, thread_fsm_finished_p)
13825 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13827 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13828 * infrun.c (clear_proceed_status_thread)
13829 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13830 (print_stop_event): Update.
13831 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13833 (step_command_fsm_ops): Remove.
13834 (new_step_command_fsm): Remove.
13836 (step_command_fsm::should_stop): Rename from
13837 step_command_fsm_should_stop.
13838 (step_command_fsm::clean_up): Rename from
13839 step_command_fsm_clean_up.
13840 (step_command_fsm::do_async_reply_reason): Rename from
13841 step_command_fsm_async_reply_reason.
13842 (struct until_next_fsm): Inherit from thread_fsm. Add
13844 (until_next_fsm_ops): Remove.
13845 (new_until_next_fsm): Remove.
13846 (until_next_fsm::should_stop): Rename from
13847 until_next_fsm_should_stop.
13848 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13849 (until_next_fsm::do_async_reply_reason): Rename from
13850 until_next_fsm_async_reply_reason.
13851 (struct finish_command_fsm): Inherit from thread_fsm. Add
13852 constructor. Change type of breakpoint.
13853 (finish_command_fsm_ops): Remove.
13854 (new_finish_command_fsm): Remove.
13855 (finish_command_fsm::should_stop): Rename from
13856 finish_command_fsm_should_stop.
13857 (finish_command_fsm::clean_up): Rename from
13858 finish_command_fsm_clean_up.
13859 (finish_command_fsm::return_value): Rename from
13860 finish_command_fsm_return_value.
13861 (finish_command_fsm::do_async_reply_reason): Rename from
13862 finish_command_fsm_async_reply_reason.
13863 (finish_command): Update.
13864 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13866 (call_thread_fsm_ops): Remove.
13867 (call_thread_fsm::call_thread_fsm): Rename from
13868 new_call_thread_fsm.
13869 (call_thread_fsm::should_stop): Rename from
13870 call_thread_fsm_should_stop.
13871 (call_thread_fsm::should_notify_stop): Rename from
13872 call_thread_fsm_should_notify_stop.
13873 (run_inferior_call, call_function_by_hand_dummy): Update.
13874 * cli/cli-interp.c (should_print_stop_to_console): Update.
13875 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13876 Add constructor. Change type of location_breakpoint,
13878 (until_break_fsm_ops): Remove.
13879 (new_until_break_fsm): Remove.
13880 (until_break_fsm::should_stop): Rename from
13881 until_break_fsm_should_stop.
13882 (until_break_fsm::clean_up): Rename from
13883 until_break_fsm_clean_up.
13884 (until_break_fsm::do_async_reply_reason): Rename from
13885 until_break_fsm_async_reply_reason.
13886 (until_break_command): Update.
13887 * thread-fsm.c: Remove.
13888 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13890 2019-02-07 Tom Tromey <tom@tromey.com>
13892 * yy-remap.h: Add include guard.
13893 * xtensa-tdep.h: Add include guard.
13894 * xcoffread.h: Rename include guard.
13895 * varobj-iter.h: Add include guard.
13896 * tui/tui.h: Rename include guard.
13897 * tui/tui-winsource.h: Rename include guard.
13898 * tui/tui-wingeneral.h: Rename include guard.
13899 * tui/tui-windata.h: Rename include guard.
13900 * tui/tui-win.h: Rename include guard.
13901 * tui/tui-stack.h: Rename include guard.
13902 * tui/tui-source.h: Rename include guard.
13903 * tui/tui-regs.h: Rename include guard.
13904 * tui/tui-out.h: Rename include guard.
13905 * tui/tui-layout.h: Rename include guard.
13906 * tui/tui-io.h: Rename include guard.
13907 * tui/tui-hooks.h: Rename include guard.
13908 * tui/tui-file.h: Rename include guard.
13909 * tui/tui-disasm.h: Rename include guard.
13910 * tui/tui-data.h: Rename include guard.
13911 * tui/tui-command.h: Rename include guard.
13912 * tic6x-tdep.h: Add include guard.
13913 * target/waitstatus.h: Rename include guard.
13914 * target/wait.h: Rename include guard.
13915 * target/target.h: Rename include guard.
13916 * target/resume.h: Rename include guard.
13917 * target-float.h: Rename include guard.
13918 * stabsread.h: Add include guard.
13919 * rs6000-tdep.h: Add include guard.
13920 * riscv-fbsd-tdep.h: Add include guard.
13921 * regformats/regdef.h: Rename include guard.
13922 * record.h: Rename include guard.
13923 * python/python.h: Rename include guard.
13924 * python/python-internal.h: Rename include guard.
13925 * python/py-stopevent.h: Rename include guard.
13926 * python/py-ref.h: Rename include guard.
13927 * python/py-record.h: Rename include guard.
13928 * python/py-record-full.h: Rename include guard.
13929 * python/py-record-btrace.h: Rename include guard.
13930 * python/py-instruction.h: Rename include guard.
13931 * python/py-events.h: Rename include guard.
13932 * python/py-event.h: Rename include guard.
13933 * procfs.h: Add include guard.
13934 * proc-utils.h: Add include guard.
13935 * p-lang.h: Add include guard.
13936 * or1k-tdep.h: Rename include guard.
13937 * observable.h: Rename include guard.
13938 * nto-tdep.h: Rename include guard.
13939 * nat/x86-linux.h: Rename include guard.
13940 * nat/x86-linux-dregs.h: Rename include guard.
13941 * nat/x86-gcc-cpuid.h: Add include guard.
13942 * nat/x86-dregs.h: Rename include guard.
13943 * nat/x86-cpuid.h: Rename include guard.
13944 * nat/ppc-linux.h: Rename include guard.
13945 * nat/mips-linux-watch.h: Rename include guard.
13946 * nat/linux-waitpid.h: Rename include guard.
13947 * nat/linux-ptrace.h: Rename include guard.
13948 * nat/linux-procfs.h: Rename include guard.
13949 * nat/linux-osdata.h: Rename include guard.
13950 * nat/linux-nat.h: Rename include guard.
13951 * nat/linux-namespaces.h: Rename include guard.
13952 * nat/linux-btrace.h: Rename include guard.
13953 * nat/glibc_thread_db.h: Rename include guard.
13954 * nat/gdb_thread_db.h: Rename include guard.
13955 * nat/gdb_ptrace.h: Rename include guard.
13956 * nat/fork-inferior.h: Rename include guard.
13957 * nat/amd64-linux-siginfo.h: Rename include guard.
13958 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13959 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13960 * nat/aarch64-linux.h: Rename include guard.
13961 * nat/aarch64-linux-hw-point.h: Rename include guard.
13962 * mn10300-tdep.h: Add include guard.
13963 * mips-linux-tdep.h: Add include guard.
13964 * mi/mi-parse.h: Rename include guard.
13965 * mi/mi-out.h: Rename include guard.
13966 * mi/mi-main.h: Rename include guard.
13967 * mi/mi-interp.h: Rename include guard.
13968 * mi/mi-getopt.h: Rename include guard.
13969 * mi/mi-console.h: Rename include guard.
13970 * mi/mi-common.h: Rename include guard.
13971 * mi/mi-cmds.h: Rename include guard.
13972 * mi/mi-cmd-break.h: Rename include guard.
13973 * m2-lang.h: Add include guard.
13974 * location.h: Rename include guard.
13975 * linux-record.h: Rename include guard.
13976 * linux-nat.h: Add include guard.
13977 * linux-fork.h: Add include guard.
13978 * i386-darwin-tdep.h: Rename include guard.
13979 * hppa-linux-offsets.h: Add include guard.
13980 * guile/guile.h: Rename include guard.
13981 * guile/guile-internal.h: Rename include guard.
13982 * gnu-nat.h: Rename include guard.
13983 * gdb-stabs.h: Rename include guard.
13984 * frv-tdep.h: Add include guard.
13985 * f-lang.h: Add include guard.
13986 * event-loop.h: Add include guard.
13987 * darwin-nat.h: Rename include guard.
13988 * cp-abi.h: Rename include guard.
13989 * config/sparc/nm-sol2.h: Rename include guard.
13990 * config/nm-nto.h: Rename include guard.
13991 * config/nm-linux.h: Add include guard.
13992 * config/i386/nm-i386gnu.h: Rename include guard.
13993 * config/djgpp/nl_types.h: Rename include guard.
13994 * config/djgpp/langinfo.h: Rename include guard.
13995 * compile/gcc-cp-plugin.h: Add include guard.
13996 * compile/gcc-c-plugin.h: Add include guard.
13997 * compile/compile.h: Rename include guard.
13998 * compile/compile-object-run.h: Rename include guard.
13999 * compile/compile-object-load.h: Rename include guard.
14000 * compile/compile-internal.h: Rename include guard.
14001 * compile/compile-cplus.h: Rename include guard.
14002 * compile/compile-c.h: Rename include guard.
14003 * common/xml-utils.h: Rename include guard.
14004 * common/x86-xstate.h: Rename include guard.
14005 * common/version.h: Rename include guard.
14006 * common/vec.h: Rename include guard.
14007 * common/tdesc.h: Rename include guard.
14008 * common/selftest.h: Rename include guard.
14009 * common/scoped_restore.h: Rename include guard.
14010 * common/scoped_mmap.h: Rename include guard.
14011 * common/scoped_fd.h: Rename include guard.
14012 * common/safe-iterator.h: Rename include guard.
14013 * common/run-time-clock.h: Rename include guard.
14014 * common/refcounted-object.h: Rename include guard.
14015 * common/queue.h: Rename include guard.
14016 * common/ptid.h: Rename include guard.
14017 * common/print-utils.h: Rename include guard.
14018 * common/preprocessor.h: Rename include guard.
14019 * common/pathstuff.h: Rename include guard.
14020 * common/observable.h: Rename include guard.
14021 * common/netstuff.h: Rename include guard.
14022 * common/job-control.h: Rename include guard.
14023 * common/host-defs.h: Rename include guard.
14024 * common/gdb_wait.h: Rename include guard.
14025 * common/gdb_vecs.h: Rename include guard.
14026 * common/gdb_unlinker.h: Rename include guard.
14027 * common/gdb_unique_ptr.h: Rename include guard.
14028 * common/gdb_tilde_expand.h: Rename include guard.
14029 * common/gdb_sys_time.h: Rename include guard.
14030 * common/gdb_string_view.h: Rename include guard.
14031 * common/gdb_splay_tree.h: Rename include guard.
14032 * common/gdb_setjmp.h: Rename include guard.
14033 * common/gdb_ref_ptr.h: Rename include guard.
14034 * common/gdb_optional.h: Rename include guard.
14035 * common/gdb_locale.h: Rename include guard.
14036 * common/gdb_assert.h: Rename include guard.
14037 * common/filtered-iterator.h: Rename include guard.
14038 * common/filestuff.h: Rename include guard.
14039 * common/fileio.h: Rename include guard.
14040 * common/environ.h: Rename include guard.
14041 * common/common-utils.h: Rename include guard.
14042 * common/common-types.h: Rename include guard.
14043 * common/common-regcache.h: Rename include guard.
14044 * common/common-inferior.h: Rename include guard.
14045 * common/common-gdbthread.h: Rename include guard.
14046 * common/common-exceptions.h: Rename include guard.
14047 * common/common-defs.h: Rename include guard.
14048 * common/common-debug.h: Rename include guard.
14049 * common/cleanups.h: Rename include guard.
14050 * common/buffer.h: Rename include guard.
14051 * common/btrace-common.h: Rename include guard.
14052 * common/break-common.h: Rename include guard.
14053 * cli/cli-utils.h: Rename include guard.
14054 * cli/cli-style.h: Rename include guard.
14055 * cli/cli-setshow.h: Rename include guard.
14056 * cli/cli-script.h: Rename include guard.
14057 * cli/cli-interp.h: Rename include guard.
14058 * cli/cli-decode.h: Rename include guard.
14059 * cli/cli-cmds.h: Rename include guard.
14060 * charset-list.h: Add include guard.
14061 * buildsym-legacy.h: Rename include guard.
14062 * bfin-tdep.h: Add include guard.
14063 * ax.h: Rename include guard.
14064 * arm-linux-tdep.h: Add include guard.
14065 * arm-fbsd-tdep.h: Add include guard.
14066 * arch/xtensa.h: Rename include guard.
14067 * arch/tic6x.h: Add include guard.
14068 * arch/i386.h: Add include guard.
14069 * arch/arm.h: Rename include guard.
14070 * arch/arm-linux.h: Rename include guard.
14071 * arch/arm-get-next-pcs.h: Rename include guard.
14072 * arch/amd64.h: Add include guard.
14073 * arch/aarch64-insn.h: Rename include guard.
14074 * arch-utils.h: Rename include guard.
14075 * annotate.h: Add include guard.
14076 * amd64-darwin-tdep.h: Rename include guard.
14077 * aarch64-linux-tdep.h: Add include guard.
14078 * aarch64-fbsd-tdep.h: Add include guard.
14079 * aarch32-linux-nat.h: Add include guard.
14081 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14083 * macrotab.c (macro_define_internal): New function that
14084 factorizes macro_define_object_internal and macro_define_function
14086 (macro_define_object_internal): Use macro_define_internal.
14087 (macro_define_function): Likewise.
14089 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14091 * macrocmd.c (extract_identifier): Return
14092 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14095 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14097 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14099 2019-02-05 Tom Tromey <tom@tromey.com>
14101 * target.c (target_stack::unpush): Move assertion earlier.
14103 2019-01-30 Tom Tromey <tom@tromey.com>
14106 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14107 (gdbpy_parse_and_eval): Likewise.
14108 * python/python-internal.h (gdbpy_allow_threads): New class.
14110 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14112 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14113 (aarch64_fbsd_fpregmap): Move earlier.
14114 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14115 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14116 instead of individual calls to trad_frame_set_reg_addr.
14117 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14119 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14120 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14121 instead of individual calls to trad_frame_set_reg_addr.
14123 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14125 * CONTRIBUTE: Replace contribution list with wiki link.
14127 2019-01-25 Tom Tromey <tom@tromey.com>
14129 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14131 2019-01-25 Tom Tromey <tom@tromey.com>
14133 * xtensa-linux-nat.c: Fix common/ includes.
14134 * xml-support.h: Fix common/ includes.
14135 * xml-support.c: Fix common/ includes.
14136 * x86-linux-nat.c: Fix common/ includes.
14137 * windows-nat.c: Fix common/ includes.
14138 * varobj.h: Fix common/ includes.
14139 * varobj.c: Fix common/ includes.
14140 * value.c: Fix common/ includes.
14141 * valops.c: Fix common/ includes.
14142 * utils.c: Fix common/ includes.
14143 * unittests/xml-utils-selftests.c: Fix common/ includes.
14144 * unittests/utils-selftests.c: Fix common/ includes.
14145 * unittests/unpack-selftests.c: Fix common/ includes.
14146 * unittests/tracepoint-selftests.c: Fix common/ includes.
14147 * unittests/style-selftests.c: Fix common/ includes.
14148 * unittests/string_view-selftests.c: Fix common/ includes.
14149 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14150 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14151 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14152 * unittests/rsp-low-selftests.c: Fix common/ includes.
14153 * unittests/parse-connection-spec-selftests.c: Fix common/
14155 * unittests/optional-selftests.c: Fix common/ includes.
14156 * unittests/offset-type-selftests.c: Fix common/ includes.
14157 * unittests/observable-selftests.c: Fix common/ includes.
14158 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14159 * unittests/memrange-selftests.c: Fix common/ includes.
14160 * unittests/memory-map-selftests.c: Fix common/ includes.
14161 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14162 * unittests/function-view-selftests.c: Fix common/ includes.
14163 * unittests/environ-selftests.c: Fix common/ includes.
14164 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14165 * unittests/common-utils-selftests.c: Fix common/ includes.
14166 * unittests/cli-utils-selftests.c: Fix common/ includes.
14167 * unittests/array-view-selftests.c: Fix common/ includes.
14168 * ui-file.c: Fix common/ includes.
14169 * tui/tui-io.c: Fix common/ includes.
14170 * tracepoint.h: Fix common/ includes.
14171 * tracepoint.c: Fix common/ includes.
14172 * tracefile-tfile.c: Fix common/ includes.
14173 * top.h: Fix common/ includes.
14174 * top.c: Fix common/ includes.
14175 * thread.c: Fix common/ includes.
14176 * target/waitstatus.h: Fix common/ includes.
14177 * target/waitstatus.c: Fix common/ includes.
14178 * target.h: Fix common/ includes.
14179 * target.c: Fix common/ includes.
14180 * target-memory.c: Fix common/ includes.
14181 * target-descriptions.c: Fix common/ includes.
14182 * symtab.h: Fix common/ includes.
14183 * symfile.c: Fix common/ includes.
14184 * stap-probe.c: Fix common/ includes.
14185 * spu-linux-nat.c: Fix common/ includes.
14186 * sparc-nat.c: Fix common/ includes.
14187 * source.c: Fix common/ includes.
14188 * solib.c: Fix common/ includes.
14189 * solib-target.c: Fix common/ includes.
14190 * ser-unix.c: Fix common/ includes.
14191 * ser-tcp.c: Fix common/ includes.
14192 * ser-pipe.c: Fix common/ includes.
14193 * ser-base.c: Fix common/ includes.
14194 * selftest-arch.c: Fix common/ includes.
14195 * s12z-tdep.c: Fix common/ includes.
14196 * rust-exp.y: Fix common/ includes.
14197 * rs6000-aix-tdep.c: Fix common/ includes.
14198 * riscv-tdep.c: Fix common/ includes.
14199 * remote.c: Fix common/ includes.
14200 * remote-notif.h: Fix common/ includes.
14201 * remote-fileio.h: Fix common/ includes.
14202 * remote-fileio.c: Fix common/ includes.
14203 * regcache.h: Fix common/ includes.
14204 * regcache.c: Fix common/ includes.
14205 * record-btrace.c: Fix common/ includes.
14206 * python/python.c: Fix common/ includes.
14207 * python/py-type.c: Fix common/ includes.
14208 * python/py-inferior.c: Fix common/ includes.
14209 * progspace.h: Fix common/ includes.
14210 * producer.c: Fix common/ includes.
14211 * procfs.c: Fix common/ includes.
14212 * proc-api.c: Fix common/ includes.
14213 * printcmd.c: Fix common/ includes.
14214 * ppc-linux-nat.c: Fix common/ includes.
14215 * parser-defs.h: Fix common/ includes.
14216 * osdata.c: Fix common/ includes.
14217 * obsd-nat.c: Fix common/ includes.
14218 * nat/x86-linux.c: Fix common/ includes.
14219 * nat/x86-linux-dregs.c: Fix common/ includes.
14220 * nat/x86-dregs.h: Fix common/ includes.
14221 * nat/x86-dregs.c: Fix common/ includes.
14222 * nat/ppc-linux.c: Fix common/ includes.
14223 * nat/mips-linux-watch.h: Fix common/ includes.
14224 * nat/mips-linux-watch.c: Fix common/ includes.
14225 * nat/linux-waitpid.c: Fix common/ includes.
14226 * nat/linux-ptrace.h: Fix common/ includes.
14227 * nat/linux-ptrace.c: Fix common/ includes.
14228 * nat/linux-procfs.c: Fix common/ includes.
14229 * nat/linux-personality.c: Fix common/ includes.
14230 * nat/linux-osdata.c: Fix common/ includes.
14231 * nat/linux-namespaces.c: Fix common/ includes.
14232 * nat/linux-btrace.h: Fix common/ includes.
14233 * nat/linux-btrace.c: Fix common/ includes.
14234 * nat/fork-inferior.c: Fix common/ includes.
14235 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14236 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14237 * nat/aarch64-linux.c: Fix common/ includes.
14238 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14239 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14240 * namespace.h: Fix common/ includes.
14241 * mips-linux-tdep.c: Fix common/ includes.
14242 * minsyms.c: Fix common/ includes.
14243 * mi/mi-parse.h: Fix common/ includes.
14244 * mi/mi-main.c: Fix common/ includes.
14245 * mi/mi-cmd-env.c: Fix common/ includes.
14246 * memrange.h: Fix common/ includes.
14247 * memattr.c: Fix common/ includes.
14248 * maint.h: Fix common/ includes.
14249 * maint.c: Fix common/ includes.
14250 * main.c: Fix common/ includes.
14251 * machoread.c: Fix common/ includes.
14252 * location.c: Fix common/ includes.
14253 * linux-thread-db.c: Fix common/ includes.
14254 * linux-nat.c: Fix common/ includes.
14255 * linux-fork.c: Fix common/ includes.
14256 * inline-frame.c: Fix common/ includes.
14257 * infrun.c: Fix common/ includes.
14258 * inflow.c: Fix common/ includes.
14259 * inferior.h: Fix common/ includes.
14260 * inferior.c: Fix common/ includes.
14261 * infcmd.c: Fix common/ includes.
14262 * inf-ptrace.c: Fix common/ includes.
14263 * inf-child.c: Fix common/ includes.
14264 * ia64-linux-nat.c: Fix common/ includes.
14265 * i387-tdep.c: Fix common/ includes.
14266 * i386-tdep.c: Fix common/ includes.
14267 * i386-linux-tdep.c: Fix common/ includes.
14268 * i386-linux-nat.c: Fix common/ includes.
14269 * i386-go32-tdep.c: Fix common/ includes.
14270 * i386-fbsd-tdep.c: Fix common/ includes.
14271 * i386-fbsd-nat.c: Fix common/ includes.
14272 * guile/scm-type.c: Fix common/ includes.
14273 * guile/guile.c: Fix common/ includes.
14274 * go32-nat.c: Fix common/ includes.
14275 * gnu-nat.c: Fix common/ includes.
14276 * gdbthread.h: Fix common/ includes.
14277 * gdbarch-selftests.c: Fix common/ includes.
14278 * gdb_usleep.c: Fix common/ includes.
14279 * gdb_select.h: Fix common/ includes.
14280 * gdb_bfd.c: Fix common/ includes.
14281 * gcore.c: Fix common/ includes.
14282 * fork-child.c: Fix common/ includes.
14283 * findvar.c: Fix common/ includes.
14284 * fbsd-nat.c: Fix common/ includes.
14285 * event-top.c: Fix common/ includes.
14286 * event-loop.c: Fix common/ includes.
14287 * dwarf2read.c: Fix common/ includes.
14288 * dwarf2loc.c: Fix common/ includes.
14289 * dwarf2-frame.c: Fix common/ includes.
14290 * dwarf-index-cache.c: Fix common/ includes.
14291 * dtrace-probe.c: Fix common/ includes.
14292 * disasm-selftests.c: Fix common/ includes.
14293 * defs.h: Fix common/ includes.
14294 * csky-tdep.c: Fix common/ includes.
14295 * cp-valprint.c: Fix common/ includes.
14296 * cp-support.h: Fix common/ includes.
14297 * cp-support.c: Fix common/ includes.
14298 * corelow.c: Fix common/ includes.
14299 * completer.h: Fix common/ includes.
14300 * completer.c: Fix common/ includes.
14301 * compile/compile.c: Fix common/ includes.
14302 * compile/compile-loc2c.c: Fix common/ includes.
14303 * compile/compile-cplus-types.c: Fix common/ includes.
14304 * compile/compile-cplus-symbols.c: Fix common/ includes.
14305 * command.h: Fix common/ includes.
14306 * cli/cli-dump.c: Fix common/ includes.
14307 * cli/cli-cmds.c: Fix common/ includes.
14308 * charset.c: Fix common/ includes.
14309 * build-id.c: Fix common/ includes.
14310 * btrace.h: Fix common/ includes.
14311 * btrace.c: Fix common/ includes.
14312 * breakpoint.h: Fix common/ includes.
14313 * breakpoint.c: Fix common/ includes.
14315 (enum agent_op): Fix common/ includes.
14316 * ax-general.c (struct aop_map): Fix common/ includes.
14317 * ax-gdb.c: Fix common/ includes.
14318 * auxv.c: Fix common/ includes.
14319 * auto-load.c: Fix common/ includes.
14320 * arm-tdep.c: Fix common/ includes.
14321 * arch/riscv.c: Fix common/ includes.
14322 * arch/ppc-linux-common.c: Fix common/ includes.
14323 * arch/i386.c: Fix common/ includes.
14324 * arch/arm.c: Fix common/ includes.
14325 * arch/arm-linux.c: Fix common/ includes.
14326 * arch/arm-get-next-pcs.c: Fix common/ includes.
14327 * arch/amd64.c: Fix common/ includes.
14328 * arch/aarch64.c: Fix common/ includes.
14329 * arch/aarch64-insn.c: Fix common/ includes.
14330 * arch-utils.c: Fix common/ includes.
14331 * amd64-windows-tdep.c: Fix common/ includes.
14332 * amd64-tdep.c: Fix common/ includes.
14333 * amd64-sol2-tdep.c: Fix common/ includes.
14334 * amd64-obsd-tdep.c: Fix common/ includes.
14335 * amd64-nbsd-tdep.c: Fix common/ includes.
14336 * amd64-linux-tdep.c: Fix common/ includes.
14337 * amd64-linux-nat.c: Fix common/ includes.
14338 * amd64-fbsd-tdep.c: Fix common/ includes.
14339 * amd64-fbsd-nat.c: Fix common/ includes.
14340 * amd64-dicos-tdep.c: Fix common/ includes.
14341 * amd64-darwin-tdep.c: Fix common/ includes.
14342 * agent.c: Fix common/ includes.
14343 * ada-lang.h: Fix common/ includes.
14344 * ada-lang.c: Fix common/ includes.
14345 * aarch64-tdep.c: Fix common/ includes.
14347 2019-01-25 Tom Tromey <tom@tromey.com>
14349 * common/create-version.sh: Use common/version.h.
14351 2019-01-24 Pedro Alves <palves@redhat.com>
14353 * infrun.c (signal_stop, signal_print, signal_program)
14354 (signal_catch, signal_pass): Now arrays instead of pointers.
14355 (update_signals_program_target, do_target_resume)
14356 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14357 * linux-nat.c (linux_nat_target::pass_signals)
14358 (linux_nat_target::create_inferior, linux_nat_target::attach):
14360 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14361 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14362 * procfs.c (procfs_target::pass_signals): Adjust.
14363 * record-full.c (record_full_target::resume): Adjust.
14364 * remote.c (remote_target::pass_signals)
14365 (remote_target::program_signals): Adjust.
14366 * target-debug.h (target_debug_print_signals): Now takes a
14367 gdb::array_view as parameter. Adjust.
14368 * target.h (target_ops) <pass_signals, program_signals>: Replace
14369 pointer and length parameters with gdb::array_view.
14370 (target_pass_signals, target_program_signals): Likewise.
14371 * target-delegates.c: Regenerate.
14373 2019-01-24 Pedro Alves <palves@redhat.com>
14375 * common/forward-scope-exit.h
14376 (forward_scope_exit::forward_scope_exit): Pass arguments to
14377 m_bind_function directly, instead of creating a std::bind and
14380 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14382 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14383 for static members.
14384 (pass_in_v_vfp_candidate): Likewise.
14386 2019-01-23 Tom Tromey <tom@tromey.com>
14387 Pedro Alves <palves@redhat.com>
14389 * regcache.c (class regcache_invalidator): Remove.
14390 (regcache::raw_write): Use make_scope_exit.
14392 2019-01-23 Tom Tromey <tom@tromey.com>
14394 * ui-out.h (class ui_out_emit_type): Update comment.
14396 2019-01-23 Tom Tromey <tom@tromey.com>
14398 * infrun.c (fetch_inferior_event): Update comment.
14400 2019-01-23 Tom Tromey <tom@tromey.com>
14401 Pedro Alves <palves@redhat.com>
14403 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14405 (fetch_inferior_event): Use SCOPE_EXIT.
14408 2019-01-23 Tom Tromey <tom@tromey.com>
14409 Pedro Alves <palves@redhat.com>
14411 * infrun.c (disable_thread_events): Delete.
14412 (stop_all_threads): Use SCOPE_EXIT.
14414 2019-01-23 Tom Tromey <tom@tromey.com>
14415 Pedro Alves <palves@redhat.com>
14417 * symfile.c: Include forward-scope-exit.h.
14418 (clear_symtab_users_cleanup): Replace forward declaration with
14419 a FORWARD_SCOPE_EXIT.
14420 (syms_from_objfile_1): Use the forward_scope_exit and
14421 gdb::optional instead of cleanup_function.
14422 (reread_symbols): Use the forward_scope_exit instead of
14424 (clear_symtab_users_cleanup): Remove function.
14426 2019-01-23 Tom Tromey <tom@tromey.com>
14427 Pedro Alves <palves@redhat.com>
14429 * linux-nat.c: Include scope-exit.h.
14430 (cleanup_target_stop): Remove.
14431 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14434 2019-01-23 Tom Tromey <tom@tromey.com>
14435 Pedro Alves <palves@redhat.com>
14437 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14438 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14440 2019-01-23 Tom Tromey <tom@tromey.com>
14441 Andrew Burgess <andrew.burgess@embecosm.com>
14442 Pedro Alves <palves@redhat.com>
14444 * infrun.c (fetch_inferior_event): Use scope_exit.
14445 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14446 * top.c (execute_command): Use scope_exit.
14447 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14448 * utils.c (do_bpstat_clear_actions_cleanup)
14449 (make_bpstat_clear_actions_cleanup): Remove.
14451 2019-01-23 Tom Tromey <tom@tromey.com>
14452 Pedro Alves <palves@redhat.com>
14454 * infrun.c: Include "common/scope-exit.h"
14455 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14456 (wait_for_inferior): Use SCOPE_EXIT.
14457 (fetch_inferior_event): Use scope_exit.
14459 2019-01-23 Tom Tromey <tom@tromey.com>
14460 Pedro Alves <palves@redhat.com>
14462 * breakpoint.c (create_breakpoint): Remove cleanup.
14464 2019-01-23 Tom Tromey <tom@tromey.com>
14465 Andrew Burgess <andrew.burgess@embecosm.com>
14466 Pedro Alves <palves@redhat.com>
14468 2019-01-23 Pedro Alves <palves@redhat.com>
14470 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14472 2019-01-23 Pedro Alves <palves@redhat.com>
14473 Andrew Burgess <andrew.burgess@embecosm.com>
14475 * gdbthread.h: Include "common/forward-scope-exit.h".
14476 (scoped_finish_thread_state): Redefine custom class in terms of
14477 forward_scope_exit.
14479 2019-01-23 Pedro Alves <palves@redhat.com>
14480 Andrew Burgess <andrew.burgess@embecosm.com>
14482 * common/forward-scope-exit.h: New file.
14484 2019-01-23 Pedro Alves <palves@redhat.com>
14485 Andrew Burgess <andrew.burgess@embecosm.com>
14486 Tom Tromey <tom@tromey.com>
14488 * common/scope-exit.h: New file.
14490 2019-01-23 Pedro Alves <palves@redhat.com>
14492 * common/preprocessor.h (ESC): Rename to ...
14493 (ESC_PARENS): ... this.
14494 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14495 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14497 2019-01-23 Tom Tromey <tom@tromey.com>
14499 * language.h (class scoped_switch_to_sym_language_if_auto):
14500 Initialize m_lang in both cases.
14502 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14504 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14507 2019-01-22 Tom Tromey <tom@tromey.com>
14509 * corelow.c: Do not include sys/file.h.
14511 2019-01-22 Tom Tromey <tom@tromey.com>
14513 * tui/tui-wingeneral.h: Include gdb_curses.h.
14515 2019-01-22 Tom Tromey <tom@tromey.com>
14517 * source-cache.h (class source_cache) <get_source_lines,
14518 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14520 2019-01-22 Tom Tromey <tom@tromey.com>
14522 * remote-fileio.h (struct remote_target): Declare.
14524 2019-01-22 Tom Tromey <tom@tromey.com>
14526 * python/py-arch.c: Do not include py-ref.h.
14527 * python/py-bpevent.c: Do not include py-ref.h.
14528 * python/py-cmd.c: Do not include py-ref.h.
14529 * python/py-continueevent.c: Do not include py-ref.h.
14530 * python/py-event.h: Do not include py-ref.h.
14531 * python/py-evtregistry.c: Do not include py-ref.h.
14532 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14533 * python/py-frame.c: Do not include py-ref.h.
14534 * python/py-framefilter.c: Do not include py-ref.h.
14535 * python/py-function.c: Do not include py-ref.h.
14536 * python/py-infevents.c: Do not include py-ref.h.
14537 * python/py-linetable.c: Do not include py-ref.h.
14538 * python/py-objfile.c: Do not include py-ref.h.
14539 * python/py-param.c: Do not include py-ref.h.
14540 * python/py-prettyprint.c: Do not include py-ref.h.
14541 * python/py-progspace.c: Do not include py-ref.h.
14542 * python/py-symbol.c: Do not include py-ref.h.
14543 * python/py-symtab.c: Do not include py-ref.h.
14544 * python/py-type.c: Do not include py-ref.h.
14545 * python/py-unwind.c: Do not include py-ref.h.
14546 * python/py-utils.c: Do not include py-ref.h.
14547 * python/py-value.c: Do not include py-ref.h.
14548 * python/py-varobj.c: Do not include py-ref.h.
14549 * python/py-xmethods.c: Do not include py-ref.h.
14550 * python/python.c: Do not include py-ref.h.
14551 * varobj.c: Do not include py-ref.h.
14553 2019-01-22 Tom Tromey <tom@tromey.com>
14555 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14556 keyword for bcache.
14558 2019-01-22 Tom Tromey <tom@tromey.com>
14560 * compile/compile-cplus-types.c: Remove a comment by #include.
14562 2019-01-22 Tom Tromey <tom@tromey.com>
14564 * compile/gcc-c-plugin.h: Include compile-internal.h.
14566 2019-01-22 Tom Tromey <tom@tromey.com>
14568 * stabsread.c (EXTERN): Do not define.
14569 (symnum, next_symbol_text_func, processing_gcc_compilation)
14570 (within_function, global_sym_chain, global_stabs)
14571 (previous_stab_code, this_object_header_files)
14572 (n_this_object_header_files)
14573 (n_allocated_this_object_header_files): Define.
14574 * stabsread.h (EXTERN): Never define. Use "extern".
14576 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14578 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14581 2019-01-21 Tom Tromey <tom@tromey.com>
14583 * ui-out.c: Fix includes.
14584 * tui/tui-source.c: Fix includes.
14585 * target.c: Fix includes.
14586 * remote.c: Fix includes.
14587 * regcache.c: Fix includes.
14588 * python/py-block.c: Fix includes.
14589 * printcmd.c: Fix includes.
14590 * or1k-tdep.c: Fix includes.
14591 * mi/mi-main.c: Fix includes.
14592 * m32r-tdep.c: Fix includes.
14593 * csky-tdep.c: Fix includes.
14594 * compile/compile-cplus-types.c: Fix includes.
14595 * cli/cli-interp.c: Fix includes.
14597 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14599 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14602 2019-01-16 Tom Tromey <tom@tromey.com>
14604 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14606 (struct objfile) <msymbols_range>: Move from top level.
14607 <msymbols>: New method.
14608 (class objfile_msymbols): Remove.
14609 * symtab.c (default_collect_symbol_completion_matches_break_on):
14611 * symmisc.c (dump_msymbols): Update.
14612 * stabsread.c (scan_file_globals): Update.
14613 * objc-lang.c (info_selectors_command, info_classes_command)
14614 (find_methods): Update.
14615 * minsyms.c (find_solib_trampoline_target): Update.
14616 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14617 * coffread.c (coff_symfile_read): Update.
14618 * ada-lang.c (ada_lookup_simple_minsym)
14619 (ada_collect_symbol_completion_matches): Update.
14621 2019-01-16 Tom Tromey <tom@tromey.com>
14623 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14624 type. Remove no-argument constructor.
14625 <iterator::operator++>: Simplify.
14627 <end>: Use minimal_symbol_count.
14629 2019-01-16 Tom Tromey <tom@tromey.com>
14631 * objfiles.h (struct objfile) <psymtabs>: New method.
14632 (class objfile_psymtabs): Remove.
14633 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14635 <range>: New method.
14636 (require_partial_symbols): Change return type.
14637 * psymtab.c (require_partial_symbols)
14638 (psym_expand_symtabs_matching): Update.
14639 * mdebugread.c (parse_partial_symbols): Update.
14640 * dbxread.c (dbx_end_psymtab): Update.
14642 2019-01-15 Tom Tromey <tom@tromey.com>
14644 * symtab.c (lookup_objfile_from_block)
14645 (lookup_symbol_in_objfile_symtabs)
14646 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14647 (find_line_symtab, info_sources_command)
14648 (default_collect_symbol_completion_matches_break_on)
14649 (make_source_files_completion_list): Update.
14650 * symmisc.c (print_objfile_statistics, dump_objfile)
14651 (maintenance_print_symbols, maintenance_info_symtabs)
14652 (maintenance_check_symtabs, maintenance_info_line_tables):
14654 * source.c (select_source_symtab)
14655 (forget_cached_source_info_for_objfile): Update.
14656 * objfiles.h (class objfile_compunits): Remove.
14657 (struct objfile) <compunits_range>: New typedef.
14658 (compunits): New method.
14659 * objfiles.c (objfile_relocate1): Update.
14660 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14661 * maint.c (count_symtabs_and_blocks): Update.
14662 * linespec.c (iterate_over_all_matching_symtabs): Update.
14663 * cp-support.c (add_symbol_overload_list_qualified): Update.
14664 * coffread.c (coff_symtab_read): Update.
14665 * ada-lang.c (add_nonlocal_symbols)
14666 (ada_collect_symbol_completion_matches)
14667 (ada_add_global_exceptions): Update.
14669 2019-01-15 Tom Tromey <tom@tromey.com>
14671 * progspace.h (program_space) <objfiles_safe_range>: New
14673 <objfiles_safe>: New method.
14674 * objfiles.h (class all_objfiles_safe): Remove.
14675 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14676 * jit.c (jit_inferior_exit_hook): Update.
14678 2019-01-17 Tom Tromey <tom@tromey.com>
14680 * progspace.h (program_space) <objfiles_range>: New typedef.
14681 <objfiles>: New method.
14682 <objfiles_head>: Rename from objfiles.
14683 (object_files): Update.
14684 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14685 * guile/scm-pretty-print.c
14686 (ppscm_find_pretty_printer_from_objfiles): Update.
14687 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14688 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14690 * python/py-progspace.c (pspy_get_objfiles): Update.
14691 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14693 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14694 (objfpy_lookup_objfile_by_build_id): Update.
14695 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14696 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14698 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14699 (expand_symtab_containing_pc, lookup_objfile_from_block)
14700 (lookup_static_symbol, basic_lookup_transparent_type)
14701 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14702 (find_line_symtab, info_sources_command)
14703 (default_collect_symbol_completion_matches_break_on)
14704 (make_source_files_completion_list, find_main_name): Update.
14705 * symmisc.c (print_symbol_bcache_statistics)
14706 (print_objfile_statistics, maintenance_print_symbols)
14707 (maintenance_print_msymbols, maintenance_print_objfiles)
14708 (maintenance_info_symtabs, maintenance_check_symtabs)
14709 (maintenance_expand_symtabs, maintenance_info_line_tables):
14711 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14712 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14713 (map_overlay_command, unmap_overlay_command)
14714 (simple_overlay_update, expand_symtabs_matching)
14715 (map_symbol_filenames): Update.
14716 * symfile-debug.c (set_debug_symfile): Update.
14717 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14719 * source.c (select_source_symtab, forget_cached_source_info):
14721 * solib.c (solib_read_symbols): Update.
14722 * solib-spu.c (append_ocl_sos): Update.
14723 * psymtab.c (maintenance_print_psymbols)
14724 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14725 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14726 * printcmd.c (info_symbol_command): Update.
14727 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14729 * objfiles.h (class all_objfiles): Remove.
14730 * objfiles.c (have_partial_symbols, have_full_symbols)
14731 (have_minimal_symbols, qsort_cmp, update_section_map)
14732 (shared_objfile_contains_address_p)
14733 (default_iterate_over_objfiles_in_search_order): Update.
14734 * objc-lang.c (info_selectors_command, info_classes_command)
14735 (find_methods): Update.
14736 * minsyms.c (find_solib_trampoline_target): Update.
14737 * maint.c (maintenance_info_sections)
14738 (maintenance_translate_address, count_symtabs_and_blocks):
14740 * main.c (captured_main_1): Update.
14741 * linux-thread-db.c (try_thread_db_load_from_pdir)
14742 (has_libpthread): Update.
14743 * linespec.c (iterate_over_all_matching_symtabs)
14744 (search_minsyms_for_name): Update.
14745 * jit.c (jit_find_objf_with_entry_addr): Update.
14746 * hppa-tdep.c (find_unwind_entry)
14747 (hppa_lookup_stub_minimal_symbol): Update.
14748 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14750 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14751 (elf_gnu_ifunc_resolve_by_got): Update.
14752 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14753 * dwarf-index-write.c (save_gdb_index_command): Update.
14754 * cp-support.c (add_symbol_overload_list_qualified): Update.
14755 * breakpoint.c (create_overlay_event_breakpoint)
14756 (create_longjmp_master_breakpoint)
14757 (create_std_terminate_master_breakpoint)
14758 (create_exception_master_breakpoint): Update.
14759 * blockframe.c (find_pc_partial_function): Update.
14760 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14761 (ada_collect_symbol_completion_matches)
14762 (ada_add_global_exceptions): Update.
14764 2019-01-17 Tom Tromey <tom@tromey.com>
14766 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14768 (solib_target_parse_libraries): Change return type.
14769 (library_list_start_segment, library_list_start_section)
14770 (library_list_end_library, library_list_start_library); Update.
14771 (solib_target_free_library_list): Remove.
14772 (solib_target_parse_libraries): Remove cleanup. Change return
14774 (solib_target_current_sos): Update.
14776 2019-01-17 Tom Tromey <tromey@bapiya>
14778 * valprint.c: Replace "the the" with "the".
14779 * symtab.c: Replace "the the" with "the".
14780 * solib.c: Replace "the the" with "the".
14781 * solib-dsbt.c: Replace "the the" with "the".
14782 * linespec.c: Replace "the the" with "the".
14783 * dwarf2loc.h: Replace "the the" with "the".
14784 * amd64-windows-tdep.c: Replace "the the" with "the".
14785 * aarch64-tdep.c: Replace "the the" with "the".
14787 2019-01-16 Keith Seitz <keiths@redhat.com>
14790 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14791 <builder>: Rename to ..
14792 <m_builder>: ... this and make private.
14793 (dwarf2_cu::get_builder): New method. Change all users of
14794 `builder' to use this method.
14795 (dwarf2_start_symtab): Move to ...
14796 (dwarf2_cu::start_symtab): ... here. Update all callers
14797 (setup_type_unit_groups): Move to ...
14798 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14800 (dwarf2_cu::reset_builder): New method.
14801 (process_full_compunit, process_full_type_unit): Use
14802 dwarf2_cu::reset_builder.
14803 (follow_die_offset): Record the ancestor CU if it is different
14804 from the followed DIE's CU.
14805 (follow_die_sig_1): Likewise.
14807 2019-01-15 Tom Tromey <tom@tromey.com>
14809 * remote.c (class remote_state) <buf>: Now a char_vector.
14810 <buf_size>: Remove.
14811 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14813 (remote_target::getpkt_or_notif_sane_1)
14814 (remote_target::getpkt_sane)
14815 (remote_target::getpkt_or_notif_sane): Likewise.
14816 (class remote_target) <putpkt>: New overload.
14817 (remote_target::read_frame): Change type of "buf_p". Remove
14818 sizeof_p parameter.
14819 (packet_ok): New overload.
14820 (packet_check_result): New overload.
14823 2019-01-14 Tom Tromey <tom@tromey.com>
14825 * remote-notif.c (handle_notification, remote_notif_ack)
14826 (remote_notif_parse): Make "buf" const.
14827 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14829 (remote_notif_parse, remote_notif_ack, handle_notification):
14831 * remote.c (remote_notif_stop_parse): Make "buf" const.
14832 (remote_target::remote_parse_stop_reply): Make "buf" const.
14833 (remote_notif_stop_ack): Make "buf" const.
14835 2019-01-14 Tom Tromey <tom@tromey.com>
14837 * remote.c (remote_console_output): Make parameter const.
14839 2019-01-14 Tom Tromey <tom@tromey.com>
14841 * target-debug.h (target_debug_print_signals): Constify.
14842 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14843 * procfs.c (procfs_target::pass_signals): Update.
14844 * linux-nat.c (linux_nat_target::pass_signals): Update.
14845 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14846 * target-delegates.c: Rebuild.
14847 * remote.c (remote_target::program_signals): Update.
14848 (remote_target::pass_signals): Update.
14849 * target.c (target_pass_signals): Constify argument.
14850 (target_program_signals): Likewise.
14851 * target.h (struct target_ops) <pass_signals, program_signals>:
14853 (target_pass_signals, target_program_signals): Constify argument.
14855 2019-01-14 Tom Tromey <tom@tromey.com>
14858 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14860 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14862 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14864 * rs6000-tdep.c: Include reggroups.h.
14865 (IS_V_ALIAS_PSEUDOREG): Define.
14866 (rs6000_register_name): Return names for the "vX" aliases.
14867 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14868 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14869 aliases. Call default_register_reggroup_p for all other
14871 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14873 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14874 Handle "vX" aliases.
14875 (v_alias_pseudo_register_collect): New function.
14876 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14877 (rs6000_gdbarch_init): Initialize "vX" aliases as
14878 pseudo-registers. Restore registration of
14879 rs6000_pseudo_register_reggroup_p with
14880 set_tdesc_pseudo_register_reggroup_p.
14882 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14884 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14885 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14886 set_gdbarch_num_pseudo_regs.
14888 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14890 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14891 Remove arg prefixname, add do_set and do_show.
14892 Add member functions set_list and show_list.
14893 * cli/cli-style.c (class cli_style_option): Update accordingly.
14894 (style_set_list): Move to file scope.
14895 (style_show_list): Likewise.
14896 (set_style): Call help_list.
14897 (show_style): Call cmd_show_list.
14898 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14899 Update to use the new macro.
14901 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14903 * ada-lang.c (_initialize_ada_language): Expand the help text
14904 for the "catch exception" command.
14906 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14908 * symtab.c (matching_obj_sections): Initialize obj,
14909 declare it closer to its usage.
14911 2019-01-10 Tom Tromey <tom@tromey.com>
14913 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14914 (basic_inf_threads_range): Remove.
14915 (inf_threads_range, inf_non_exited_threads_range)
14916 (safe_inf_threads_range): Use next_adapter.
14918 2019-01-10 Keith Seitz <keiths@redhat.com>
14922 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14923 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14925 2019-01-10 Keith Seitz <keiths@redhat.com>
14929 * dictionary.c (pending_to_vector): Remove.
14930 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14931 Remove _1 suffix, replacing functions of the same name. Update
14933 (dict_create_hashed, dict_create_hashed_expandable)
14934 (dict_create_linear, dict_create_linear_expandable, dict_free)
14935 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14936 Make functions static.
14938 2019-01-10 Keith Seitz <keiths@redhat.com>
14942 * dictionary.h (struct dictionary): Replace declaration with
14944 (dict_create_hashed, dict_create_hashed_expandable)
14945 (dict_create_linear, dict_create_linear_expandable)
14946 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14947 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14948 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14949 taking multidictionary argument.
14950 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14951 * block.h (struct block) <dict>: Change to multidictionary
14952 and rename `multidict'.
14953 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14954 symmisc.c: Update all dictionary references to multidictionary.
14956 2019-01-10 Keith Seitz <keiths@redhat.com>
14960 * dictionary.c: Include unordered_map.
14961 (pending_to_vector): New function.
14962 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14963 Rewrite the non-"_1" functions to take vector instead
14965 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14966 "new" _1 versions of the same name.
14967 (multidictionary): Define.
14968 (std::hash<enum language): New definition.
14969 (collate_pending_symbols_by_language, mdict_create_hashed)
14970 (mdict_create_hashed_expandable, mdict_create_linear)
14971 (mdict_create_linear_expandable, mdict_free)
14972 (find_language_dictionary, create_new_language_dictionary)
14973 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14974 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14975 (mdict_size, mdict_empty): New functions.
14976 * dictionary.h (mdict_iterator): Define.
14978 2019-01-10 Pedro Alves <palves@redhat.com>
14980 * breakpoint.c (read_uploaded_action)
14981 (create_tracepoint_from_upload): Adjust to use
14982 gdb::unique_xmalloc_ptr.
14983 * ctf.c (ctf_write_uploaded_tp):
14984 (SET_ARRAY_FIELD): Use emplace_back.
14985 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14986 * tracefile-tfile.c (tfile_write_uploaded_tp):
14987 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14988 gdb::unique_xmalloc_ptr.
14989 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14990 at_string, cond_string, cmd_strings>: Replace char pointers
14991 with gdb::unique_xmalloc_ptr.
14993 2019-01-10 Pedro Alves <palves@redhat.com>
14995 * solib-target.c (library_list_start_library): Don't xstrdup name.
14997 2019-01-10 Pedro Alves <palves@redhat.com>
14999 * mdebugread.c (parse_partial_symbols): Use
15000 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15002 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15004 * linux-fork.c (scoped_switch_fork_info)
15005 <~scoped_switch_fork_info>: Fix incorrect variable name.
15007 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15009 * linux-fork.c (scoped_switch_fork_info)
15010 <scoped_switch_fork_info>: Make explicit.
15011 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15013 2019-01-10 Tom Tromey <tom@tromey.com>
15015 * objfiles.h (objfile::reset_psymtabs): Update.
15016 * objfiles.c (objfile::objfile): Update.
15017 * psymtab.h (psymtab_storage::obstack): Update.
15018 (psymtab_storage::m_obstack): Use gdb::optional.
15019 (class psymtab_storage): Update comment. Remove objfile
15021 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15023 2019-01-10 Tom Tromey <tom@tromey.com>
15025 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15026 <free_psymtabs>: Now private.
15027 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15028 (allocate_psymtab): Use new method.
15030 2019-01-10 Tom Tromey <tom@tromey.com>
15032 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15033 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15034 * mdebugread.c (parse_partial_symbols): Use
15035 allocate_dependencies.
15036 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15037 allocate_dependencies.
15038 (process_psymtab_comp_unit_reader)
15039 (build_type_psymtab_dependencies): Likewise.
15040 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15042 2019-01-10 Tom Tromey <tom@tromey.com>
15044 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15045 PSYMBOL_SET_LANGUAGE.
15046 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15048 2019-01-10 Tom Tromey <tom@tromey.com>
15050 * psymtab.h (psymtab_storage::obstack): New method.
15051 <m_obstack>: Rename from obstack; now private.
15052 * psymtab.c (psymtab_storage): Update.
15053 * dwarf2read.c (create_addrmap_from_index)
15054 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15057 2019-01-10 Tom Tromey <tom@tromey.com>
15059 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15060 * objfiles.h (objfile::reset_psymtabs): New method.
15062 2019-01-10 Tom Tromey <tom@tromey.com>
15064 * symmisc.c (print_symbol_bcache_statistics): Update.
15065 (print_objfile_statistics): Update.
15066 * symfile.c (reread_symbols): Update.
15067 * psymtab.h (class psymtab_storage): New.
15068 * psymtab.c (psymtab_storage): New constructor.
15069 (~psymtab_storage): New destructor.
15070 (require_partial_symbols): Update.
15071 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15072 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15073 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15074 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15075 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15076 (start_psymtab_common, end_psymtab_common)
15077 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15078 (allocate_psymtab): Update.
15079 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15081 (dump_psymtab_addrmap, maintenance_print_psymbols)
15082 (maintenance_check_psymtabs): Update.
15083 (class objfile_psymtabs): Move to objfiles.h.
15084 * psympriv.h (discard_psymtab): Now inline.
15085 (psymtab_discarder::psymtab_discarder): Update.
15086 (psymtab_discarder::~psymtab_discarder): Update.
15087 (ALL_OBJFILE_PSYMTABS): Rewrite.
15088 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15089 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15091 <partial_symtabs>: New field.
15092 (class objfile_psymtabs): Move from psymtab.h. Update.
15093 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15095 (objfile::~objfile): Don't destroy psymbol_cache.
15096 * mdebugread.c (parse_partial_symbols): Update.
15097 * dwarf2read.c (create_addrmap_from_index)
15098 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15099 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15100 (add_partial_subprogram, dwarf2_ranges_read): Update.
15101 * dwarf-index-write.c (write_address_map)
15102 (write_one_signatured_type, recursively_write_psymbols)
15103 (class debug_names, class debug_names, write_psymtabs_to_index):
15106 2019-01-10 Tom Tromey <tom@tromey.com>
15108 * symtab.h (SYMBOL_SET_NAMES): Update.
15109 (symbol_set_names): Update.
15110 (MSYMBOL_SET_NAMES): Update.
15111 * symtab.c (symbol_set_names): Change argument to be an
15112 objfile_per_bfd_storage.
15113 * psymtab.c (add_psymbol_to_bcache): Update.
15114 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15116 2019-01-10 Tom Tromey <tom@tromey.com>
15118 * symtab.c (create_demangled_names_hash): Change argument to be an
15119 objfile_per_bfd_storage.
15120 (symbol_set_names): Update.
15122 2019-01-10 Tom Tromey <tom@tromey.com>
15124 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15126 * psymtab.c (init_psymbol_list): Do nothing if already called.
15127 * psympriv.h (init_psymbol_list): Add comment.
15128 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15130 * dbxread.c (dbx_symfile_read): Unconditionally call
15133 2019-01-10 Tom Tromey <tom@tromey.com>
15135 * xcoffread.c (scan_xcoff_symtab): Update.
15136 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15138 * mdebugread.c (parse_partial_symbols)
15139 (handle_psymbol_enumerators): Update.
15140 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15141 * dbxread.c (read_dbx_symtab): Update.
15142 * psympriv.h (psymbol_placement): New enum.
15143 (add_psymbol_to_list): Update.
15145 2019-01-10 Tom Tromey <tom@tromey.com>
15147 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15148 static_psymbols parameters.
15149 (scan_xcoff_symtab): Update.
15150 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15151 static_psymbols parameters.
15152 * psympriv.h (start_psymtab_common): Update.
15153 * mdebugread.c (parse_partial_symbols): Update.
15154 * dwarf2read.c (create_partial_symtab): Update.
15155 * dbxread.c (read_dbx_symtab): Update.
15156 (start_psymtab): Remove global_psymbols and static_psymbols
15159 2019-01-10 Tom Tromey <tom@tromey.com>
15161 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15162 * psymtab.c (allocate_psymtab): Add comment.
15163 * psympriv.h (allocate_psymtab): Add comment.
15164 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15166 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15168 2019-01-10 Tom Tromey <tom@tromey.com>
15170 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15172 * mipsread.c: Include mdebugread.h.
15173 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15175 * elfread.c: Include mdebugread.h.
15177 2019-01-09 Tom Tromey <tom@tromey.com>
15179 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15180 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15181 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15182 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15183 (psym_lookup_symbol, psym_find_last_source_symtab)
15184 (psym_forget_cached_source_info, psym_print_stats)
15185 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15186 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15187 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15188 (psym_find_compunit_symtab_by_address)
15189 (maintenance_print_psymbols, maintenance_info_psymtabs)
15190 (maintenance_check_psymtabs): Use ranged for.
15191 * psymtab.h (class objfile_psymtabs): New.
15192 (require_partial_symbols): Return objfile_psymtabs.
15193 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15195 2019-01-09 Tom Tromey <tom@tromey.com>
15197 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15198 (find_pc_mapped_section, list_overlays_command)
15199 (map_overlay_command, unmap_overlay_command)
15200 (simple_overlay_update): Use all_objfiles.
15201 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15202 * printcmd.c (info_symbol_command): Use all_objfiles.
15203 * objfiles.h (ALL_OBJSECTIONS): Remove.
15204 * maint.c (maintenance_translate_address): Use all_objfiles.
15205 * gcore.c (gcore_create_callback): Use all_objfiles.
15206 (objfile_find_memory_regions): Likewise.
15208 2019-01-09 Tom Tromey <tom@tromey.com>
15210 * symtab.c (find_line_symtab, info_sources_command)
15211 (make_source_files_completion_list): Use objfile_compunits.
15212 * source.c (select_source_symtab): Use objfile_compunits.
15213 * objfiles.h (struct objfile): Update comment.
15214 (ALL_OBJFILES): Remove.
15215 (ALL_FILETABS): Remove.
15216 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15219 2019-01-09 Tom Tromey <tom@tromey.com>
15221 * symmisc.c (print_objfile_statistics, dump_objfile)
15222 (maintenance_print_symbols): Use compunit_filetabs.
15223 * source.c (forget_cached_source_info_for_objfile): Use
15225 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15226 (ALL_FILETABS): Use compunit_filetabs.
15227 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15228 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15230 2019-01-09 Tom Tromey <tom@tromey.com>
15232 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15233 (compunit_filetabs): New.
15234 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15236 (info_sources_command, make_source_files_completion_list): Remove
15238 * symmisc.c (print_objfile_statistics, dump_objfile)
15239 (maintenance_print_symbols): Remove declaration.
15240 (maintenance_info_symtabs): Use compunit_filetabs.
15241 (maintenance_info_line_tables): Likewise.
15242 * source.c (select_source_symtab): Change local variable name.
15243 (forget_cached_source_info_for_objfile): Remove declaration.
15244 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15245 * objfiles.c (objfile_relocate1): Remove declaration.
15246 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15248 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15249 * coffread.c (coff_symtab_read): Remove declaration.
15250 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15253 2019-01-09 Tom Tromey <tom@tromey.com>
15255 * symtab.c (lookup_objfile_from_block)
15256 (find_pc_sect_compunit_symtab, search_symbols)
15257 (default_collect_symbol_completion_matches_break_on): Use
15259 * objfiles.h (ALL_COMPUNITS): Remove.
15260 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15261 * cp-support.c (add_symbol_overload_list_qualified): Use
15263 * ada-lang.c (ada_collect_symbol_completion_matches)
15264 (ada_add_global_exceptions): Use objfile_compunits.
15266 2019-01-09 Tom Tromey <tom@tromey.com>
15268 * source.c (select_source_symtab)
15269 (forget_cached_source_info_for_objfile): Remove declaration.
15270 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15272 * maint.c (count_symtabs_and_blocks): Remove declaration.
15273 * cp-support.c (add_symbol_overload_list_qualified): Remove
15275 * coffread.c (coff_symtab_read): Remove declaration.
15276 * symtab.c (lookup_symbol_in_objfile_symtabs)
15277 (basic_lookup_transparent_type_1): Use objfile_compunits.
15278 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15279 (info_sources_command, search_symbols)
15280 (default_collect_symbol_completion_matches_break_on)
15281 (make_source_files_completion_list): Remove declaration.
15282 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15283 (ada_collect_symbol_completion_matches)
15284 (ada_add_global_exceptions): Remove declaration.
15285 * linespec.c (iterate_over_all_matching_symtabs): Use
15287 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15288 (class objfile_compunits): New.
15289 (ALL_COMPUNITS): Use objfile_compunits.
15290 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15291 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15293 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15295 2019-01-09 Tom Tromey <tom@tromey.com>
15297 * symtab.c (search_symbols)
15298 (default_collect_symbol_completion_matches_break_on): Use
15300 * ada-lang.c (ada_lookup_simple_minsym)
15301 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15302 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15303 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15305 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15306 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15307 * objc-lang.c (find_methods): Use objfile_msymbols.
15308 (info_selectors_command, info_classes_command): Likewise.
15309 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15310 * objfiles.h (class objfile_msymbols): New.
15311 (ALL_OBJFILE_MSYMBOLS): Remove.
15312 (ALL_MSYMBOLS): Remove.
15314 2019-01-09 Tom Tromey <tom@tromey.com>
15316 * common/next-iterator.h (next_adapter): Add Iterator template
15318 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15319 (class all_objfiles_safe): New.
15320 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15321 * objfiles.c (put_objfile_before): Update comment.
15322 (add_separate_debug_objfile): Likewise.
15323 (free_all_objfiles): Use all_objfiles_safe.
15324 (objfile_purge_solibs): Likewise.
15326 2019-01-09 Tom Tromey <tom@tromey.com>
15328 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15329 (expand_symtab_containing_pc, lookup_static_symbol)
15330 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15331 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15333 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15334 * breakpoint.c (create_overlay_event_breakpoint)
15335 (create_longjmp_master_breakpoint)
15336 (create_std_terminate_master_breakpoint)
15337 (create_exception_master_breakpoint): Use all_objfiles.
15338 * linux-thread-db.c (try_thread_db_load_from_pdir)
15339 (has_libpthread): Use all_objfiles.
15340 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15341 * linespec.c (iterate_over_all_matching_symtabs)
15342 (search_minsyms_for_name): Use all_objfiles.
15343 * maint.c (maintenance_info_sections): Use all_objfiles.
15344 * main.c (captured_main_1): Use all_objfiles.
15345 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15346 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15347 * guile/scm-pretty-print.c
15348 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15349 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15350 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15351 (maintenance_print_msymbols): Use all_objfiles.
15352 * source.c (select_source_symtab): Use all_objfiles.
15353 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15354 * symfile.c (remove_symbol_file_command)
15355 (expand_symtabs_matching, map_symbol_filenames): Use
15357 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15359 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15360 * objc-lang.c (find_methods): Use all_objfiles.
15361 * objfiles.c (have_partial_symbols, have_full_symbols)
15362 (have_minimal_symbols, qsort_cmp)
15363 (default_iterate_over_objfiles_in_search_order): Use
15365 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15366 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15367 (maintenance_check_psymtabs): Use all_objfiles.
15368 (ALL_PSYMTABS): Remove.
15369 * compile/compile-object-run.c (do_module_cleanup): Use
15371 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15372 * cp-support.c (add_symbol_overload_list_qualified): Use
15374 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15376 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15377 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15379 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15380 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15381 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15383 * solib.c (solib_read_symbols): Use all_objfiles
15385 2019-01-09 Tom Tromey <tom@tromey.com>
15387 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15388 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15390 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15391 * symmisc.c (print_symbol_bcache_statistics)
15392 (print_objfile_statistics, maintenance_print_objfiles)
15393 (maintenance_info_symtabs, maintenance_check_symtabs)
15394 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15396 * source.c (forget_cached_source_info): Use all_objfiles.
15397 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15398 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15399 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15400 * objfiles.c (update_section_map): Use all_objfiles.
15401 (shared_objfile_contains_address_p): Likewise.
15402 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15403 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15405 2019-01-09 Tom Tromey <tom@tromey.com>
15407 * common/next-iterator.h: New file.
15408 * objfiles.h (class all_objfiles): New.
15409 (struct objfile_iterator): New.
15411 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15413 * NEWS: Move the description of the changed "frame", "select-frame",
15414 and "info frame" commands to the Changed commands section.
15416 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15418 * gdbtypes.c (check_stub_method_group): Remove handling of old
15420 * linespec.c (find_methods): Likewise.
15421 * stabsread.c (read_member_functions): Likewise.
15422 * valops.c (search_struct_method): Likewise.
15423 (value_struct_elt_for_reference): Likewise.
15424 * NEWS: Mention this change.
15426 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15428 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15429 print_source_lines.
15430 * source.c (print_source_lines_base): Update line number check.
15431 (print_source_lines): New function.
15432 (source_lines_range::source_lines_range): New function.
15433 * source.h (class source_lines_range): New class.
15434 (print_source_lines): New declaration.
15436 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15438 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15440 2019-01-08 Tom Tromey <tom@tromey.com>
15441 Simon Marchi <simon.marchi@ericsson.com>
15444 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15445 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15446 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15447 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15448 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15449 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15451 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15453 * source.c (select_source_symtab): Move header comment to
15454 declaration in source.h.
15455 (forget_cached_source_info_for_objfile): Likewise.
15456 (forget_cached_source_info): Likewise.
15457 (identify_source_line): Likewise.
15458 * source.h (identify_source_line): Move declaration from symtab.h
15459 and add comment from source.c
15460 (print_source_lines): Likewise.
15461 (forget_cached_source_info_for_objfile): Likewise.
15462 (forget_cached_source_info): Likewise.
15463 (select_source_symtab): Likewise.
15464 (enum print_source_lines_flag): Move definition from symtab.h.
15465 * symtab.h (identify_source_line): Move declaration to source.h.
15466 (print_source_lines): Likewise.
15467 (forget_cached_source_info_for_objfile): Likewise.
15468 (forget_cached_source_info): Likewise.
15469 (select_source_symtab): Likewise.
15470 (enum print_source_lines_flag): Move definition to source.h.
15471 * tui/tui-hooks.c: Add 'source.h' include.
15473 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15475 * source.c (print_source_lines_base): Handle requests to print
15476 reverse line number sequences, and guard against empty lines
15479 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15481 * source.c (print_source_lines_base): Fix skip of '\r' if next
15484 2019-01-06 Tom Tromey <tom@tromey.com>
15486 * c-exp.y (struct c_parse_state) <macro_original_text,
15487 expansion_obstack>: New member.
15488 (macro_original_text, expansion_obstack): Remove globals.
15489 (scan_macro_expansion, scanning_macro_expansion)
15490 (finished_macro_expansion): Update.
15491 (scan_macro_cleanup): Remove.
15492 (yylex, c_parse): Update.
15494 2019-01-06 Tom Tromey <tom@tromey.com>
15496 * c-exp.y (struct c_parse_state) <strings>: New member.
15497 (operator_stoken): Update.
15499 2019-01-06 Tom Tromey <tom@tromey.com>
15501 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15502 (union type_stack_elt) <typelist_val>: Now a pointer to
15504 (type_stack_cleanup): Don't declare.
15505 (push_typelist): Update.
15506 * parse.c (pop_typelist): Return a std::vector.
15507 (push_typelist): Take a std::vector.
15508 (follow_types): Update. Do not free args.
15509 (type_stack_cleanup): Remove.
15510 * c-exp.y (struct c_parse_state): New.
15511 (cpstate): New global.
15512 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15513 (nonempty_typelist): Update.
15514 (func_mod): Create a new vector.
15515 (c_parse): Create a c_parse_state.
15516 (check_parameter_typelist): Do not delete params.
15517 (function_method): Update. Do not delete type_list.
15519 2019-01-06 Tom Tromey <tom@tromey.com>
15522 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15524 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15525 (print_return_value): Likewise.
15527 2019-01-05 Tom Tromey <tom@tromey.com>
15529 * contrib/cleanup_check.py: Remove.
15530 * contrib/gcc-with-excheck: Remove.
15531 * contrib/exsummary.py: Remove.
15532 * contrib/excheck.py: Remove.
15534 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15536 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15537 NULL. Initialize tpprev to NULL instead of assigning it
15538 to NULL on the next statement.
15539 * windows-nat.c (windows_delete_thread): Remove check for
15540 main_thread_id before printing thread exit notifications.
15541 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15542 Remove thread ID check against main_thread_id.
15543 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15544 windows_delete_thread.
15545 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15547 2019-01-04 Tom Tromey <tom@tromey.com>
15549 * compile/compile.c (_initialize_compile): Use upper case for
15550 metasyntactic variables.
15551 * symmisc.c (_initialize_symmisc): Use upper case for
15552 metasyntactic variables.
15553 * psymtab.c (_initialize_psymtab): Use upper case for
15554 metasyntactic variables.
15555 * demangle.c (demangle_command): Use upper case for metasyntactic
15557 (_initialize_demangler): Likewise.
15558 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15561 2019-01-03 Tom Tromey <tom@tromey.com>
15563 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15565 2019-01-03 Tom Tromey <tom@tromey.com>
15567 * python/py-symtab.c (salpy_str): Update.
15568 (struct salpy_sal_object) <symtab>: Now a PyObject.
15569 (salpy_dealloc): Update.
15570 (del_objfile_sal): Use gdbpy_ref.
15572 2019-01-03 Tom Tromey <tom@tromey.com>
15574 * python/py-type.c (convert_field): Use new_reference. Return
15576 (make_fielditem): Return gdbpy_ref.
15577 (typy_fields): Update.
15578 (typy_getitem): Update.
15579 (field_name): Return gdbpy_ref. Use new_reference.
15580 (typy_iterator_iternext): Update.
15582 2019-01-03 Tom Tromey <tom@tromey.com>
15584 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15586 2019-01-03 Tom Tromey <tom@tromey.com>
15588 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15589 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15590 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15591 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15592 (pspy_set_type_printers): Likewise.
15593 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15594 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15595 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15596 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15597 (objfpy_set_type_printers): Likewise.
15599 2019-01-03 Tom Tromey <tom@tromey.com>
15601 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15602 (gdbpy_print_stack): Use gdbpy_err_fetch.
15603 * python/python-internal.h (class gdbpy_err_fetch): New class.
15604 (class gdbpy_enter) <m_error_type, m_error_value,
15605 m_error_traceback>: Remove.
15606 <m_error>: New member.
15607 (gdbpy_exception_to_string): Don't declare.
15608 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15609 * python/py-value.c (convert_value_from_python): Use
15611 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15612 gdbpy_exception_to_string.
15613 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15614 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15617 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15619 * linux-nat.c (delete_lwp_cleanup): Delete.
15620 (struct lwp_deleter): New struct.
15621 (lwp_info_up): New typedef.
15622 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15625 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15627 * linux-fork.c (class scoped_switch_fork_info): New class.
15628 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15630 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15632 * valops.c (find_overload_match): Remove use of null_cleanup, and
15633 calls to do_cleanups.
15635 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15637 * compile/compile-cplus-types.c
15638 (compile_cplus_instance::decl_name): Handle changes to
15640 * cp-support.c (cp_func_name): Update header comment, update
15642 * cp-support.h (cp_func_name): Update return type in declaration.
15643 * valops.c (find_overload_match): Move temp_func local to top
15644 level of function and change its type. Use temp_func to hold and
15645 delete temporary string obtained from cp_func_name.
15647 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15649 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15650 gdb::char_vector, remove cleanup, and update uses of `msg`.
15652 2019-01-03 Jim Wilson <jimw@sifive.com>
15654 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15656 2019-01-02 Tom Tromey <tom@tromey.com>
15658 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15659 (tdesc_parse_xml): Remove cleanups.
15660 * target-descriptions.h (make_cleanup_free_target_description):
15662 (target_desc_deleter): New struct.
15663 (target_desc_up): New typedef.
15664 * target-descriptions.c (target_desc_deleter::operator()): Rename
15665 from free_target_description.
15666 (make_cleanup_free_target_description): Remove.
15668 2019-01-02 Tom Tromey <tom@tromey.com>
15670 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15671 constructor, destructor.
15672 (linespec_parser): Remove typedef.
15673 (~linespec_parser): Rename from linespec_parser_delete.
15674 (linespec_lex_to_end, linespec_complete_label)
15675 (linespec_complete): Update.
15676 (decode_line_full): Remove cleanups.
15677 (decode_line_1): Update.
15679 2019-01-02 Tom Tromey <tom@tromey.com>
15681 * python/python-internal.h (inferior_to_inferior_object): Change
15683 * python/py-exitedevent.c (create_exited_event_object): Update.
15684 * python/py-inferior.c (inferior_to_inferior_object): Return
15686 (python_new_inferior, python_inferior_deleted)
15687 (thread_to_thread_object, delete_thread_object)
15688 (build_inferior_list, gdbpy_selected_inferior): Update.
15689 * python/py-infthread.c (create_thread_object): Update. Also fail
15690 if inferior_to_inferior_object fails.
15692 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15694 * inferior.h (class inferior) <displaced_step_state>: New field.
15695 * infrun.h (struct displaced_step_state): Move here from
15696 infrun.c. Initialize fields, add constructor.
15697 <inf>: Remove field.
15698 <reset>: New method.
15699 * infrun.c (struct displaced_step_inferior_state): Move to
15701 (displaced_step_inferior_states): Remove.
15702 (get_displaced_stepping_state): Adust.
15703 (displaced_step_in_progress_any_inferior): Adjust.
15704 (displaced_step_in_progress_thread): Adjust.
15705 (displaced_step_in_progress): Adjust.
15706 (add_displaced_stepping_state): Remove.
15707 (get_displaced_step_closure_by_addr): Adjust.
15708 (remove_displaced_stepping_state): Remove.
15709 (infrun_inferior_exit): Call displaced_step_state.reset.
15710 (use_displaced_stepping): Don't check for NULL.
15711 (displaced_step_prepare_throw): Call
15712 get_displaced_stepping_state.
15713 (displaced_step_fixup): Don't check for NULL.
15714 (prepare_for_detach): Don't check for NULL.
15716 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15718 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15719 in case of call that did not complete.
15721 2019-01-02 Andrey Utkin <autkin@undo.io>
15723 * symfile.c (find_separate_debug_file): Fix search of debug files for
15726 2019-01-02 Tom Tromey <tom@tromey.com>
15728 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15730 * python/py-frame.c (frapy_older): Remove cast.
15731 (frapy_newer): Likewise.
15732 * python/py-breakpoint.c (local_setattro): Remove cast.
15733 * python/py-arch.c (archpy_name): Remove local variable.
15734 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15736 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15738 * unittests/basic_string_view/element_access/char/empty.cc:
15739 Fix year range in copyright header.
15741 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15743 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15745 <operator==>: Update with for removed field.
15747 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15748 <isa_features>: ...this.
15749 <abi_features>: New field.
15750 (riscv_isa_flen): Update comment.
15751 (riscv_abi_xlen): New declaration.
15752 (riscv_abi_flen): New declaration.
15753 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15755 (riscv_abi_xlen): New function.
15756 (riscv_isa_flen): Update to get answer from isa_features.
15757 (riscv_abi_flen): New function.
15758 (riscv_has_fp_abi): Update to get answer from abi_features.
15759 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15761 (riscv_call_info) <xlen, flen>: Update comment.
15762 (riscv_call_arg_struct): Remove invalid assertions
15763 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15765 (riscv_gdbarch_init): Gather isa features and abi features
15766 separately, ensure both match on the gdbarch when reusing an old
15767 gdbarch. Relax an error check to allow 32-bit abi float to run on
15768 a target with 64-bit float hardware.
15770 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15772 * source.c (search_command_helper): Stop reverse search
15773 when line 1 has been searched.
15775 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15777 * record-full.c (record_full_base_target::close): Rewrite
15778 record_full_core_buf_list free logic.
15780 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15782 * break-catch-syscall.c (print_one_catch_syscall): xfree
15785 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15787 * top.c (print_gdb_version): Update Copyright year in version
15790 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15792 Update copyright year range in all GDB files.
15794 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15796 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15798 For older changes see ChangeLog-2018.
15804 version-control: never