1 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
3 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
4 '-symbol-info-types', and '-symbol-info-variables'.
5 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
6 (mi_cmd_symbol_info_types): Declare.
7 (mi_cmd_symbol_info_variables): Declare.
8 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
9 (output_debug_symbol): New function.
10 (output_nondebug_symbol): New function.
11 (mi_symbol_info): New function.
12 (mi_info_functions_or_variables): New function.
13 (mi_cmd_symbol_info_functions): New function.
14 (mi_cmd_symbol_info_types): New function.
15 (mi_cmd_symbol_info_variables): New function.
16 * NEWS: Mention new commands.
18 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
20 * symtab.c (symbol_to_info_string): New function, most content
21 moved from print_symbol_info, but updated to return a std::string.
22 (print_symbol_info): Update to use symbol_to_info_string and print
24 * symtab.h (symbol_to_info_string): Declare new function.
26 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
28 * python/python.c (gdbpy_rbreak): Convert to using
29 global_symbol_searcher.
30 * symtab.c (file_matches): Convert return type to bool, change
31 file list to std::vector, update header comment.
32 (search_symbols): Rename to...
33 (global_symbol_searcher::search): ...this and update now its
34 a member function of global_symbol_searcher. Take account of the
35 changes to file_matches.
36 (symtab_symbol_info): Convert to using global_symbol_searcher.
37 (rbreak_command): Likewise.
38 (search_module_symbols): Likewise.
39 * symtab.h (enum symbol_search): Update comment.
40 (search_symbols): Remove declaration.
41 (class global_symbol_searcher): New class.
43 2019-11-26 Tom Tromey <tromey@adacore.com>
45 * cp-support.c (_initialize_cp_support): Conditionally initialize
46 gdb_demangle_attempt_core_dump.
48 2019-11-26 Tom Tromey <tom@tromey.com>
50 * python/py-function.c (fnpy_init): Update.
51 * value.h (add_internal_function): Adjust declaration.
52 * value.c (function_destroyer): Remove.
53 (do_add_internal_function): Don't set destroyer or copy name.
54 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
56 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
57 (cmdpy_init): Set name_allocated.
58 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
60 (~cmd_list_element): Free "name" if needed.
62 2019-11-26 Tom Tromey <tom@tromey.com>
64 * value.h (add_internal_function): Add new overload. Move
65 documentation from value.h.
66 * value.c (do_add_internal_function): New function.
67 (add_internal_function): Use it. Add new overload.
68 (function_destroyer): Don't free doc.
69 * python/py-function.c (fnpy_init): Update.
71 2019-11-26 Tom Tromey <tom@tromey.com>
73 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
74 (cmdpy_init): Set "doc_allocated".
76 2019-11-26 Tom Tromey <tom@tromey.com>
78 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
79 name of worker thread.
80 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
82 * configure, config.in: Rebuild.
84 2019-11-26 Tom Tromey <tom@tromey.com>
86 * python/python.c (class gdbpy_gil): New.
87 (struct gdbpy_event): Add constructor, destructor, operator().
88 (gdbpy_post_event): Use run_on_main_thread.
89 (gdbpy_initialize_events): Remove.
90 (do_start_initialization): Update.
92 2019-11-26 Tom Tromey <tom@tromey.com>
95 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
96 commands. Call update_thread_pool_size.
97 (update_thread_pool_size, maintenance_set_worker_threads): New
99 (n_worker_threads): New global.
101 2019-11-26 Christian Biesinger <cbiesinger@google.com>
102 Tom Tromey <tom@tromey.com>
104 * minsyms.c (minimal_symbol_reader::install): Use
106 * gdbsupport/parallel-for.h: New file.
107 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
109 2019-11-26 Christian Biesinger <cbiesinger@google.com>
110 Tom Tromey <tom@tromey.com>
112 * gdbsupport/thread-pool.h: New file.
113 * gdbsupport/thread-pool.c: New file.
114 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
115 (HFILES_NO_SRCDIR): Add thread-pool.h.
117 2019-11-26 Tom Tromey <tom@tromey.com>
119 * event-top.h (thread_local_segv_handler): Declare.
120 * event-top.c (thread_local_segv_handler): New global.
121 (install_handle_sigsegv, handle_sigsegv): New functions.
122 (async_init_signals): Install SIGSEGV handler.
123 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
125 (report_failed_demangle): New function.
126 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
127 handler-setting code, instead use segv_handler. Run warning code
130 2019-11-26 Tom Tromey <tom@tromey.com>
132 * run-on-main-thread.c: New file.
133 * run-on-main-thread.h: New file.
134 * unittests/main-thread-selftests.c: New file.
135 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
136 main-thread-selftests.c.
137 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
138 (COMMON_SFILES): Add run-on-main-thread.c.
140 2019-11-26 Tom Tromey <tom@tromey.com>
142 * main.c (setup_alternate_signal_stack): Remove.
143 (captured_main_1): Use gdb::alternate_signal_stack.
144 * gdbsupport/alt-stack.h: New file.
146 2019-11-26 Tom Tromey <tom@tromey.com>
148 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
150 (save_original_signals_state, restore_original_signals_state): Use
152 * linux-nat.c (block_child_signals, restore_child_signals_mask)
153 (_initialize_linux_nat): Use gdb_sigmask.
154 * guile/guile.c (_initialize_guile): Use block_signals.
155 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
156 * gdbsupport/gdb-sigmask.h: New file.
157 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
158 * cp-support.c (gdb_demangle): Use gdb_sigmask.
159 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
161 * configure, config.in: Rebuild.
162 * gdbsupport/block-signals.h: New file.
164 2019-11-26 Tom Tromey <tom@tromey.com>
166 * acinclude.m4: Include ax_pthread.m4.
167 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
168 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
169 (CLIBS): Use PTHREAD_LIBS.
170 (aclocal_m4_deps): Add ax_pthread.m4.
171 * config.in, configure: Rebuild.
172 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
174 2019-11-26 Tom Tromey <tom@tromey.com>
176 * symtab.h (struct minimal_symbol) <name_set>: New member.
177 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
178 Don't call symbol_set_names.
179 (minimal_symbol_reader::install): Call symbol_set_names.
181 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
183 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
184 restore_active_ext_lang, as GIL is needed for (indirectly)
185 called PyOS_InterruptOccurred.
187 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
189 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
192 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
194 * remote-sim.c (simulator_command): Make static, remove
197 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
199 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
201 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
202 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
204 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
206 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
208 * unittests/basic_string_view/element_access/char/1.cc (test01):
211 * unittests/basic_string_view/element_access/char/empty.cc (main):
213 * unittests/basic_string_view/element_access/char/front_back.cc
216 * unittests/basic_string_view/inserters/char/2.cc (test05):
219 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
222 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
225 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
227 * unittests/basic_string_view/operations/compare/char/1.cc
230 * unittests/basic_string_view/operations/compare/char/13650.cc
232 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
235 * unittests/basic_string_view/operations/data/char/1.cc (test01):
238 * unittests/basic_string_view/operations/find/char/1.cc (test01):
241 * unittests/basic_string_view/operations/find/char/2.cc (test02):
244 * unittests/basic_string_view/operations/find/char/3.cc (test03):
247 * unittests/basic_string_view/operations/find/char/4.cc (main):
249 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
252 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
255 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
258 * unittests/basic_string_view/operations/substr/char/1.cc
261 * unittests/basic_string_view/operators/char/2.cc (main):
263 * unittests/optional/assignment/1.cc (test): Likewise.
264 * unittests/optional/assignment/2.cc (test): Likewise.
265 * unittests/optional/assignment/3.cc (test): Likewise.
266 * unittests/optional/assignment/4.cc (test): Likewise.
267 * unittests/optional/assignment/5.cc (test): Likewise.
268 * unittests/optional/assignment/6.cc (test): Likewise.
269 * unittests/optional/assignment/7.cc (test): Likewise.
270 * unittests/optional/cons/copy.cc (test): Likewise.
271 * unittests/optional/cons/default.cc (test): Likewise.
272 * unittests/optional/cons/move.cc (test): Likewise.
273 * unittests/optional/cons/value.cc (test): Likewise.
274 * unittests/optional/in_place.cc (test): Likewise.
275 * unittests/optional/observers/1.cc (test): Likewise.
276 * unittests/optional/observers/2.cc (test): Likewise.
278 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
280 * tui-win.h (tui_set_var_cmd): Remove.
281 * tui-win.c (tui_set_var_cmd): Make static.
283 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
285 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
286 rbreak_command_wrapper): Remove.
287 * symtab.c (rbreak_command_wrapper): Remove.
289 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
291 * inferior.h (info_terminal_command): Remove declaration.
292 * inflow.c (info_terminal_command): Make static.
294 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
296 * inferior.c (exit_inferior_silent): Remove.
298 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
300 * dictionary.c (dict_empty, mdict_empty): Remove.
301 * dictionary.c (mdict_empty): Remove.
303 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
305 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
306 (arc_insn_get_memory_offset): Likewise.
307 (arc_insn_dump): Likewise.
308 * cp-support.c (test_cp_symbol_name_matches): Likewise.
309 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
310 * dictionary.c (dict_iterator_next): Likewise.
311 (dict_iter_match_first): Likewise.
312 (dict_iter_match_next): Likewise.
313 * f-lang.c (evaluate_subexp_f): Likewise.
314 * hppa-tdep.c (hppa_read_pc): Likewise.
315 * i386-tdep.c (i386_floatformat_for_type): Likewise.
316 * parse.c (write_exp_elt_msym): Likewise.
317 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
318 * remote.c (remote_packet_size): Likewise.
319 (remote_notif_stop_parse): Likewise.
320 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
321 * s12z-tdep.c (s12z_disassemble_info): Likewise.
322 * source.c (prepare_path_for_appending): Likewise.
323 * sparc64-linux-tdep.c
324 (sparc64_linux_handle_segmentation_fault); Likewise.
325 * stack.c (frame_selection_by_function_completer): Likewise.
327 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
329 * completer.c (set_gdb_completion_word_break_characters):
332 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
334 * dwarf-index-write.c: Include dwarf-index-write.h.
335 * mi/mi-interp.c: Include mi/mi-interp.h.
337 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
339 * aarch32-tdep.c: Include aarch32-tdep.h.
340 * aarch32-tdep.h: Forward-declare struct target_desc.
342 2019-11-26 Christian Biesinger <cbiesinger@google.com>
344 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
346 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
347 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
349 2019-11-25 Tom de Vries <tdevries@suse.de>
351 * contrib/words.sh: Add -c option.
353 2019-11-25 Christian Biesinger <cbiesinger@google.com>
355 * solib.c (solib_find_1): Change int to bool.
356 (exec_file_find): Change int to bool.
357 (solib_find): Change int to bool.
358 (solib_read_symbols): Change int to bool.
359 (solib_used): Change int to bool.
360 (solib_add): Change int to bool.
361 (info_sharedlibrary_command): Change int to bool.
362 (solib_contains_address_p): Change int to bool.
363 (solib_keep_data_in_core): Change int to bool.
364 (in_solib_dynsym_resolve_code): Change int to bool.
365 (reload_shared_libraries_1): Change int to bool.
366 (gdb_sysroot_changed): Change int to bool.
367 * solib.h (solib_read_symbols): Change int to bool.
368 (solib_contains_address_p): Change int to bool.
369 (solib_keep_data_in_core): Change int to bool.
370 (in_solib_dynsym_resolve_code): Change int to bool.
371 (libpthread_name_p): Change int to bool.
373 2019-11-25 Luis Machado <luis.machado@linaro.org>
375 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
376 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
377 (remote_packet_max_chars): New static global.
378 (show_remote_packet_max_chars): New function.
379 (remote_target::putpkt_binary): Adjust to use new
380 remote_packet_max_chars option.
381 (remote_target::getpkt_or_notif_sane_1): Likewise.
382 (_initialize_remote): Register new remote-packet-max-chars option.
384 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
386 * m68k-linux-nat.c: Include gdbarch.h.
388 2019-11-24 Tom Tromey <tom@tromey.com>
390 * symfile.c (read_symbols): Update.
391 * psymtab.c (require_partial_symbols): Change type of "verbose" to
393 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
394 (psym_lookup_symbol, psym_find_last_source_symtab)
395 (psym_forget_cached_source_info, psym_print_stats)
396 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
397 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
398 (psym_map_matching_symbols, psym_expand_symtabs_matching)
399 (psym_find_compunit_symtab_by_address)
400 (maintenance_print_psymbols, maintenance_info_psymtabs)
401 (maintenance_check_psymtabs): Update.
402 * psymtab.h (require_partial_symbols): Change type of "verbose" to
405 2019-11-22 Tom Tromey <tom@tromey.com>
407 * observable.h: Update comments.
409 2019-11-22 Tom Tromey <tromey@adacore.com>
411 * ada-tasks.c (ada_task_is_alive): Make parameter const.
412 (print_ada_task_info): Don't try to fetch thread id if task is not
415 2019-11-22 Christian Biesinger <cbiesinger@google.com>
418 * ada-lang.c (sort_choices): Update.
419 (ada_print_symbol_signature): Update.
420 (resolve_subexp): Update.
421 (ada_parse_renaming): Update.
422 (ada_read_renaming_var_value): Update.
423 (lesseq_defined_than): Update.
424 (remove_extra_symbols): Update.
425 (remove_irrelevant_renamings): Update.
426 (ada_add_block_symbols): Update.
427 (ada_collect_symbol_completion_matches): Update.
428 (ada_is_renaming_symbol): Update.
429 (aggregate_assign_from_choices): Update.
430 (ada_evaluate_subexp): Update.
431 (ada_has_this_exception_support): Update.
432 (ada_is_non_standard_exception_sym): Update.
433 (ada_add_exceptions_from_frame): Update.
434 (ada_add_global_exceptions): Update.
435 (ada_print_subexp): Update.
436 * ax-gdb.c (gen_var_ref): Update.
437 (gen_maybe_namespace_elt): Update.
438 (gen_expr_for_cast): Update.
441 * blockframe.c (find_pc_partial_function): Update.
442 * breakpoint.c (print_breakpoint_location): Update.
443 (update_static_tracepoint): Update.
444 * btrace.c (ftrace_print_function_name): Update.
445 (ftrace_function_switched): Update.
446 * buildsym.c (find_symbol_in_list): Update.
448 * c-typeprint.c (c_print_typedef): Update.
449 (c_type_print_template_args): Update.
450 * cli/cli-cmds.c (edit_command): Update.
451 (list_command): Update.
452 (print_sal_location): Update.
453 * coffread.c (patch_opaque_types): Update.
454 (process_coff_symbol): Update.
455 (coff_read_enum_type): Update.
456 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
457 (convert_one_symbol): Update.
458 (hash_symname): Update.
459 (eq_symname): Update.
460 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
461 * compile/compile-cplus-types.c (debug_print_scope): Update.
462 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
463 * compile/compile-object-load.c (get_out_value_type): Update.
464 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
465 (search_symbol_list): Update.
466 (cp_lookup_symbol_imports_or_template): Update.
467 * cp-support.c (overload_list_add_symbol): Update.
468 * ctfread.c (psymtab_to_symtab): Update.
469 * dbxread.c (cp_set_block_scope): Update.
470 * dictionary.c (iter_match_first_hashed): Update.
471 (iter_match_next_hashed): Update.
472 (insert_symbol_hashed): Update.
473 (iter_match_next_linear): Update.
474 * dictionary.h: Update.
475 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
476 (locexpr_describe_location_piece): Update.
477 (locexpr_describe_location_1): Update.
478 (locexpr_generate_c_location): Update.
479 (loclist_describe_location): Update.
480 (loclist_generate_c_location): Update.
481 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
482 (read_func_scope): Update.
483 (process_enumeration_scope): Update.
484 (new_symbol): Update.
485 (dwarf2_const_value): Update.
486 (dwarf2_symbol_mark_computed): Update.
487 * eval.c (evaluate_funcall): Update.
488 (evaluate_subexp_standard): Update.
489 * expprint.c (print_subexp_standard): Update.
490 (dump_subexp_body_standard): Update.
491 * f-valprint.c (info_common_command_for_block): Update.
492 * findvar.c (get_hosting_frame): Update.
493 (default_read_var_value): Update.
494 * go-lang.c (go_symbol_package_name): Update.
495 * guile/scm-block.c (bkscm_print_block_smob): Update.
496 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
497 (gdbscm_symbol_name): Update.
498 (gdbscm_symbol_linkage_name): Update.
499 (gdbscm_symbol_print_name): Update.
500 * infcall.c (get_function_name): Update.
501 * infcmd.c (jump_command): Update.
502 (finish_command): Update.
503 * infrun.c (insert_exception_resume_breakpoint): Update.
504 * linespec.c (canonicalize_linespec): Update.
505 (create_sals_line_offset): Update.
506 (convert_linespec_to_sals): Update.
507 (complete_label): Update.
508 (find_label_symbols_in_block): Update.
509 * m2-typeprint.c (m2_print_typedef): Update.
510 * mdebugread.c (mdebug_reg_to_regnum): Update.
511 (parse_symbol): Update.
512 (mylookup_symbol): Update.
513 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
514 (list_args_or_locals): Update.
515 * objc-lang.c (compare_selectors): Update.
516 (info_selectors_command): Update.
517 (compare_classes): Update.
518 (info_classes_command): Update.
520 * p-typeprint.c (pascal_print_typedef): Update.
521 * printcmd.c (build_address_symbolic): Update.
522 (info_address_command): Update.
523 (print_variable_and_value): Update.
524 * python/py-framefilter.c (extract_sym): Update.
525 (py_print_single_arg): Update.
526 * python/py-symbol.c (sympy_str): Update.
527 (sympy_get_name): Update.
528 (sympy_get_linkage_name): Update.
529 * python/python.c (gdbpy_rbreak): Update.
530 * record-btrace.c (btrace_get_bfun_name): Update.
531 (btrace_call_history): Update.
532 * rust-lang.c (rust_print_typedef): Update.
533 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
534 * stabsread.c (stab_reg_to_regnum): Update.
535 (define_symbol): Update.
536 (read_enum_type): Update.
537 (common_block_end): Update.
538 (cleanup_undefined_types_1): Update.
539 (scan_file_globals): Update.
540 * stack.c (print_frame_arg): Update.
541 (print_frame_args): Update.
542 (find_frame_funname): Update.
543 (info_frame_command_core): Update.
544 (iterate_over_block_locals): Update.
545 (print_block_frame_labels): Update.
546 (do_print_variable_and_value): Update.
547 (iterate_over_block_arg_vars): Update.
548 (return_command): Update.
549 * symmisc.c (dump_symtab_1): Update.
550 (print_symbol): Update.
551 * symtab.c (eq_symbol_entry): Update.
552 (symbol_cache_dump): Update.
553 (lookup_language_this): Update.
554 (find_pc_sect_line): Update.
555 (skip_prologue_sal): Update.
556 (symbol_search::compare_search_syms): Update.
557 (treg_matches_sym_type_name): Update.
558 (search_symbols): Update.
559 (print_symbol_info): Update.
560 (rbreak_command): Update.
561 (completion_list_add_symbol): Update.
562 (find_gnu_ifunc): Update.
563 (get_symbol_address): Update.
564 (search_module_symbols): Update.
565 (info_module_subcommand): Update.
566 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
567 (SYMBOL_LINKAGE_NAME): Remove.
568 (SYMBOL_DEMANGLED_NAME): Remove.
569 (SYMBOL_PRINT_NAME): Remove.
570 (SYMBOL_SEARCH_NAME): Remove.
571 * tracepoint.c (set_traceframe_context): Update.
572 (validate_actionline): Update.
573 (collection_list::collect_symbol): Update.
574 (encode_actions_1): Update.
575 (info_scope_command): Update.
576 (print_one_static_tracepoint_marker): Update.
577 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
578 * valops.c (address_of_variable): Update.
579 (find_overload_match): Update.
580 (find_oload_champ): Update.
582 2019-11-22 Christian Biesinger <cbiesinger@google.com>
584 * ada-lang.c (ada_lookup_simple_minsym): Update.
585 (ada_collect_symbol_completion_matches): Update.
586 * ada-tasks.c (read_atcb): Update.
587 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
588 (amd64_windows_skip_trampoline_code): Update.
589 * arm-tdep.c (skip_prologue_function): Update.
590 (arm_skip_stack_protector): Update.
591 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
592 (arm_wince_skip_main_prologue): Update.
593 * ax-gdb.c (gen_expr): Update.
594 * block.c (call_site_for_pc): Update.
595 * blockframe.c (find_pc_partial_function): Update.
596 * breakpoint.c (set_breakpoint_location_function): Update.
597 * btrace.c (ftrace_print_function_name): Update.
598 (ftrace_function_switched): Update.
599 * c-valprint.c (print_unpacked_pointer): Update.
600 * coffread.c (coff_symfile_read): Update.
601 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
602 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
603 * dwarf-index-write.c (write_psymbols): Update.
604 * dwarf2loc.c (call_site_to_target_addr): Update.
605 (func_verify_no_selftailcall): Update.
606 (tailcall_dump): Update.
607 (call_site_find_chain_1): Update.
608 (dwarf_expr_reg_to_entry_parameter): Update.
609 * elfread.c (elf_gnu_ifunc_record_cache): Update.
610 * eval.c (evaluate_funcall): Update.
611 (evaluate_subexp_standard): Update.
612 (evaluate_subexp_for_sizeof): Update.
613 * expprint.c (print_subexp_standard): Update.
614 (dump_subexp_body_standard): Update.
615 * frame.c (get_prev_frame_always_1): Update.
616 * frv-tdep.c (frv_skip_main_prologue): Update.
617 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
618 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
619 (gnuv3_get_typename_from_type_info): Update.
620 (gnuv3_skip_trampoline): Update.
621 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
622 * i386-tdep.c (i386_skip_main_prologue): Update.
623 (i386_pe_skip_trampoline_code): Update.
624 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
625 * infcall.c (get_function_name): Update.
626 * linespec.c (minsym_found): Update.
627 * linux-fork.c (info_checkpoints_command): Update.
628 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
629 (m32c_m16c_pointer_to_address): Update.
630 * maint.c (maintenance_translate_address): Update.
631 * minsyms.c (add_minsym_to_hash_table): Update.
632 (add_minsym_to_demangled_hash_table): Update.
633 (lookup_minimal_symbol_mangled): Update.
634 (lookup_minimal_symbol_demangled): Update.
635 (lookup_minimal_symbol_linkage): Update.
636 (lookup_minimal_symbol_text): Update.
637 (lookup_minimal_symbol_by_pc_name): Update.
638 (minimal_symbol_is_less_than): Update.
639 (compact_minimal_symbols): Update.
640 (build_minimal_symbol_hash_tables): Update.
641 (find_solib_trampoline_target): Update.
642 * mips-tdep.c (mips_stub_frame_sniffer): Update.
643 (mips_skip_pic_trampoline_code): Update.
644 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
645 * objc-lang.c (info_selectors_command): Update.
646 (info_classes_command): Update.
647 (find_methods): Update.
649 * p-valprint.c (pascal_val_print): Update.
650 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
651 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
652 * printcmd.c (build_address_symbolic): Update.
653 (info_symbol_command): Update.
654 * psymtab.c (psymbol_name_matches): Update.
655 (match_partial_symbol): Update.
656 (lookup_partial_symbol): Update.
657 (print_partial_symbols): Update.
658 (sort_pst_symbols): Update.
659 (maintenance_check_psymtabs): Update.
660 * python/py-framefilter.c (py_print_frame): Update.
661 * python/python.c (gdbpy_rbreak): Update.
662 * record-btrace.c (btrace_get_bfun_name): Update.
663 (btrace_call_history): Update.
664 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
665 (rs6000_skip_trampoline_code): Update.
666 * sol-thread.c (info_cb): Update.
667 * stabsread.c (scan_file_globals): Update.
668 * stack.c (find_frame_funname): Update.
669 (info_frame_command_core): Update.
670 * symmisc.c (dump_msymbols): Update.
671 * symtab.c (symbol_natural_name): Rename to..,
672 (general_symbol_info::natural_name): ...this.
673 (symbol_demangled_name): Rename to...
674 (general_symbol_info::demangled_name): ...this.
675 (symbol_search_name): Rename to...
676 (general_symbol_info::search_name): ...this.
677 (symbol_matches_search_name): Update.
678 (find_pc_sect_line): Update.
679 (skip_prologue_sal): Update.
680 (search_symbols): Update.
681 (print_msymbol_info): Update.
682 (rbreak_command): Update.
683 (completion_list_add_msymbol): Update.
684 (completion_list_objc_symbol): Update.
685 (get_msymbol_address): Update.
686 * symtab.h (struct general_symbol_info): Add member functions
687 natural_name (), linkage_name (), print_name (), demangled_name (),
689 (SYMBOL_NATURAL_NAME): Update.
690 (symbol_natural_name): Move to a member function on general_symbol_info.
691 (SYMBOL_DEMANGLED_NAME): Update.
692 (symbol_demangled_name): Move to a member function on
694 (SYMBOL_SEARCH_NAME): Update.
695 (symbol_search_name): Move to a member function on general_symbol_info.
696 (MSYMBOL_NATURAL_NAME): Remove.
697 (MSYMBOL_LINKAGE_NAME): Remove.
698 (MSYMBOL_PRINT_NAME): Remove.
699 (MSYMBOL_DEMANGLED_NAME): Remove.
700 (MSYMBOL_SEARCH_NAME): Remove.
701 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
703 2019-11-22 Christian Biesinger <cbiesinger@google.com>
705 * symtab.c (create_demangled_names_hash): Use per_bfd->
706 minimal_symbol_count for computing the initial size, if greater
707 than our default size.
709 2019-11-22 Tom de Vries <tdevries@suse.de>
711 * contrib/words.sh: Improve words extraction.
713 2019-11-22 Tom de Vries <tdevries@suse.de>
715 * contrib/words.sh: Combine sed invocations.
717 2019-11-21 Christian Biesinger <cbiesinger@google.com>
719 * Makefile.in: Update.
720 * demangle.c: Rename to...
721 * gdb-demangle.c: ..this.
722 (is_cplus_marker): Change return type to bool.
723 (_initialize_demangler): Rename to...
724 (_initialize_gdb_demangle): ...this.
725 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
726 * symtab.h (demangle): Remove declaration; instead include
729 2019-11-21 Tom Tromey <tromey@adacore.com>
731 * gdbsupport/format.c (format_pieces): Parse %I64d.
732 * unittests/format_pieces-selftests.c (test_windows_formats): New
734 (run_tests): Call it.
736 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
738 Byte reverse display of variables with DW_END_big, DW_END_little
739 (DW_AT_endianity) dwarf attributes if different than the native
741 * ada-lang.c (ada_value_binop):
742 Use type_byte_order instead of gdbarch_byte_order.
743 * ada-valprint.c (printstr):
744 (ada_val_print_string):
745 * ada-lang.c (value_pointer):
747 Use type_byte_order instead of gdbarch_byte_order.
748 * c-lang.c (c_get_string):
749 Use type_byte_order instead of gdbarch_byte_order.
750 * c-valprint.c (c_val_print_array):
751 Use type_byte_order instead of gdbarch_byte_order.
752 * cp-valprint.c (cp_print_class_member):
753 Use type_byte_order instead of gdbarch_byte_order.
754 * dwarf2loc.c (rw_pieced_value):
755 Use type_byte_order instead of gdbarch_byte_order.
756 * dwarf2read.c (read_base_type): Handle DW_END_big,
758 * f-lang.c (f_get_encoding):
759 Use type_byte_order instead of gdbarch_byte_order.
760 * findvar.c (default_read_var_value):
761 Use type_byte_order instead of gdbarch_byte_order.
762 * gdbtypes.c (check_types_equal):
763 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
764 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
765 and TYPE_ENDIANITY_LITTLE if set.
766 (type_byte_order): new function.
767 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
768 (struct main_type) <flag_endianity_not_default>:
770 (type_byte_order): New function.
771 * infcmd.c (default_print_one_register_info):
772 Use type_byte_order instead of gdbarch_byte_order.
773 * p-lang.c (pascal_printstr):
774 Use type_byte_order instead of gdbarch_byte_order.
775 * p-valprint.c (pascal_val_print):
776 Use type_byte_order instead of gdbarch_byte_order.
777 * printcmd.c (print_scalar_formatted):
778 Use type_byte_order instead of gdbarch_byte_order.
779 * solib-darwin.c (darwin_current_sos):
780 Use type_byte_order instead of gdbarch_byte_order.
781 * solib-svr4.c (solib_svr4_r_ldsomap):
782 Use type_byte_order instead of gdbarch_byte_order.
783 * stap-probe.c (stap_modify_semaphore):
784 Use type_byte_order instead of gdbarch_byte_order.
785 * target-float.c (target_float_same_format_p):
786 Use type_byte_order instead of gdbarch_byte_order.
787 * valarith.c (scalar_binop):
789 Use type_byte_order instead of gdbarch_byte_order.
790 * valops.c (value_cast):
791 Use type_byte_order instead of gdbarch_byte_order.
792 * valprint.c (generic_emit_char):
795 Use type_byte_order instead of gdbarch_byte_order.
796 * value.c (unpack_long):
797 (unpack_bits_as_long):
798 (unpack_value_bitfield):
801 (pack_unsigned_long):
802 Use type_byte_order instead of gdbarch_byte_order.
803 * findvar.c (unsigned_pointer_to_address):
804 (signed_pointer_to_address):
805 (unsigned_address_to_pointer):
806 (address_to_signed_pointer):
807 (default_read_var_value):
808 (default_value_from_register):
809 Use type_byte_order instead of gdbarch_byte_order.
810 * gnu-v3-abi.c (gnuv3_make_method_ptr):
811 Use type_byte_order instead of gdbarch_byte_order.
812 * riscv-tdep.c (riscv_print_one_register_info):
813 Use type_byte_order instead of gdbarch_byte_order.
815 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
817 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
818 (current_ui_gdb_stdin_ptr): Likewise.
819 (current_ui_gdb_stderr_ptr): Likewise.
820 (current_ui_gdb_stdlog_ptr): Likewise.
821 (current_ui_current_uiout_ptr): Likewise.
822 (gen_ret_current_ui_field_ptr): Remove.
824 2019-11-21 Tom de Vries <tdevries@suse.de>
827 * cli/cli-script.c (execute_control_command): Only switch to
828 INTERP_CONSOLE's ui_out when INTERP_MI is active.
830 2019-11-19 Tom Tromey <tom@tromey.com>
832 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
833 Now static. Change type of "name".
834 (tui_set_win_height_command): Don't copy "arg".
835 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
836 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
838 2019-11-19 Ali Tamur <tamur@google.com>
840 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
841 "if (attr != nullptr)".
842 (dwarf2_find_base_address): Likewise.
843 (dwarf2_build_include_psymtabs): Likewise.
844 (read_cutu_die_from_dwo): Likewise.
845 (read_func_scope): Likewise.
846 (read_call_site_scope): Likewise.
847 (dwarf2_get_pc_bounds): Likewise.
848 (dwarf2_record_block_ranges): Likewise.
849 (dwarf2_add_field): Likewise.
850 (dwarf2_add_member_fn): Likewise.
851 (read_structure_type): Likewise.
852 (read_enumeration_type): Likewise.
853 (read_array_type): Likewise.
854 (read_array_order): Likewise.
855 (read_set_type): Likewise.
856 (read_common_block): Likewise.
857 (read_tag_reference_type): Likewise.
858 (read_tag_string_type): Likewise.
859 (read_subroutine_type): Likewise.
860 (read_base_type): Likewise.
861 (read_subrange_type): Likewise.
862 (new_symbol): Likewise.
863 (prepare_one_comp_unit): Likewise.
865 2019-11-19 Tom Tromey <tromey@adacore.com>
867 * windows-nat.c (windows_nat_target::attach): Include GetLastError
868 result in error when DebugActiveProcess fails.
870 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
871 Pedro Alves <palves@redhat.com>
873 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
874 * target.c (target_stack::push): Call 'unpush' if there's a
875 target on top of the stack.
877 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
879 * python/py-block.c (blpy_dealloc): Call tp_free.
880 (blpy_block_syms_dealloc): Likewise.
881 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
882 * python/py-inferior.c (infpy_dealloc): Likewise.
883 * python/py-lazy-string.c (stpy_dealloc): Likewise.
884 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
885 * python/py-symbol.c (sympy_dealloc): Likewise.
886 * python/py-symtab.c (stpy_dealloc): Likewise.
887 * python/py-type.c (typy_iterator_dealloc): Likewise.
889 2019-11-18 Christian Biesinger <cbiesinger@google.com>
891 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
892 constructor instead of using a class initializer.
894 2019-11-15 Christian Biesinger <cbiesinger@google.com>
896 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
897 * configure: Regenerate.
898 * configure.ac: Don't source common.host.
899 * gdbsupport/common.host: Remove.
900 * gdbsupport/mingw-strerror.c: Remove.
901 * gdbsupport/posix-strerror.c: Rename to...
902 * gdbsupport/safe-strerror.c: ...this.
904 2019-11-15 Christian Biesinger <cbiesinger@google.com>
906 * maint.c (scoped_command_stats::print_time): Use localtime_r
907 instead of localtime (provided through gnulib if necessary).
908 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
911 2019-11-15 Christian Biesinger <cbiesinger@google.com>
913 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
914 avoid compile errors.
916 2019-11-15 Christian Biesinger <cbiesinger@google.com>
918 * config.in: Regenerate.
919 * configure: Regenerate.
920 * gdbsupport/common.m4: No longer check for strerror_r.
921 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
922 POSIX version of strerror_r, now that gnulib provides it if
925 2019-11-14 Christian Biesinger <cbiesinger@google.com>
927 * README (`configure' options): Update.
929 2019-11-14 Tom Tromey <tromey@adacore.com>
931 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
932 expected type for the RHS if the LHS is a convenience variable.
934 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
936 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
937 Provide explicit default and copy constructor.
939 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
941 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
942 only call Py_INCREF (newbp) in the bppy_pending_object case.
944 2019-11-13 Tom Tromey <tromey@adacore.com>
947 * psympriv.h (partial_symbol): Remove static assert.
948 * symtab.h (general_symbol_info, symbol): Remove static assert.
950 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
952 * gdbsupport/format.c (format_pieces::format_pieces): Support
953 printf 'z' size modifier.
954 * gdbsupport/format.h (enum argclass): Add size_t_arg.
955 * printcmd.c (ui_printf): Handle size_t_arg.
956 * ui-out.c (ui_out::vmessage): Likewise.
957 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
959 (run_tests): Call test_format_int_sizes.
961 2019-11-12 Christian Biesinger <cbiesinger@google.com>
963 * ada-exp.y (write_ambiguous_var): Update.
964 * buildsym.c (add_symbol_to_list): Update.
965 * dwarf2read.c (read_variable): Update.
966 (new_symbol): Update.
967 * jit.c (finalize_symtab): Update.
968 * language.c (language_alloc_type_symbol): Update.
969 * symtab.c (fixup_symbol_section): Update.
970 (initialize_objfile_symbol_1): Move code to...
971 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
972 (allocate_symbol): Update.
973 (allocate_template_symbol): Update.
974 (get_symbol_address): Update.
975 * symtab.h (struct symbol): Inherit from general_symbol_info instead
976 of having as a field, and add a constructor.
977 (SYMBOL_VALUE): Update.
978 (SYMBOL_VALUE_ADDRESS): Update.
979 (SET_SYMBOL_VALUE_ADDRESS): Update.
980 (SYMBOL_VALUE_BYTES): Update.
981 (SYMBOL_VALUE_COMMON_BLOCK): Update.
982 (SYMBOL_BLOCK_VALUE): Update.
983 (SYMBOL_VALUE_CHAIN): Update.
984 (SYMBOL_LANGUAGE): Update.
985 (SYMBOL_SECTION): Update.
986 (SYMBOL_OBJ_SECTION): Update.
987 (SYMBOL_SET_LANGUAGE): Update.
988 (SYMBOL_SET_LINKAGE_NAME): Update.
989 (SYMBOL_SET_NAMES): Update.
990 (SYMBOL_NATURAL_NAME): Update.
991 (SYMBOL_LINKAGE_NAME): Update.
992 (SYMBOL_DEMANGLED_NAME): Update.
993 (SYMBOL_SEARCH_NAME): Update.
994 (SYMBOL_MATCHES_SEARCH_NAME): Update.
995 (struct symbol): Update.
996 (struct template_symbol): Update.
997 (struct rust_vtable_symbol): Update.
998 * xcoffread.c (SYMBOL_DUP): Update.
1000 2019-11-12 Tom Tromey <tom@tromey.com>
1002 * tui/tui-layout.c (show_layout): Set current_layout.
1003 (show_source_disasm_command, show_data)
1004 (show_source_or_disasm_and_command): Don't set current_layout.
1006 2019-11-12 Tom Tromey <tom@tromey.com>
1008 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1010 2019-11-12 Tom Tromey <tom@tromey.com>
1012 * tui/tui-win.c (resize_message): New global.
1013 (show_tui_resize_message): New function.
1014 (tui_async_resize_screen): Print message if requested.
1015 (_initialize_tui_win): Add tui-resize-message setting.
1016 * NEWS: Add entry for new commands.
1018 2019-11-11 Tom Tromey <tom@tromey.com>
1020 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1023 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1025 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1027 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1029 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1031 * python/python-internal.h (gdbpy_lookup_static_symbols):
1032 Declare new function.
1033 * python/python.c (python_GdbMethods): Add
1034 gdb.lookup_static_symbols method.
1035 * NEWS: Mention gdb.lookup_static_symbols.
1037 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1039 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1040 static block of current object file first. Also fix typo in
1043 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * stack.c (set_last_displayed_sal): Delete.
1046 (last_displayed_sal_valid): Delete.
1047 (last_displayed_pspace): Delete.
1048 (last_displayed_addr): Delete.
1049 (last_displayed_symtab): Delete.
1050 (last_displayed_line): Delete.
1051 (class last_displayed_symtab_info_type): New.
1052 (last_displayed_symtab_info): New static global variable.
1053 (print_frame_info): Call methods on last_displayed_symtab_info.
1054 (clear_last_displayed_sal): Update header comment, and make use of
1055 last_displayed_symtab_info.
1056 (last_displayed_sal_is_valid): Likewise.
1057 (get_last_displayed_pspace): Likewise.
1058 (get_last_displayed_addr): Likewise.
1059 (get_last_displayed_symtab): Likewise.
1060 (get_last_displayed_line): Likewise.
1061 (get_last_displayed_sal): Likewise.
1062 * stack.h (clear_last_displayed_sal): Update header comment.
1063 (last_displayed_sal_is_valid): Likewise.
1064 (get_last_displayed_pspace): Likewise.
1065 (get_last_displayed_addr): Likewise.
1066 (get_last_displayed_symtab): Likewise.
1067 (get_last_displayed_line): Likewise.
1068 (get_last_displayed_sal): Likewise.
1070 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1072 * stack.c (frame_show_address): Convert return type to bool.
1073 * stack.h (frame_show_address): Likewise, and update header
1076 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1078 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1079 * unittests/vec-utils-selftests.c: New file.
1080 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1082 2019-11-10 Tom Tromey <tom@tromey.com>
1084 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1085 (tui_highlight_win): Likewise.
1086 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1087 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1088 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1089 Don't set can_highlight.
1091 2019-11-10 Tom Tromey <tom@tromey.com>
1093 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1094 Remove unused declaration.
1096 2019-11-08 Tom Tromey <tromey@adacore.com>
1098 * top.c (read_command_file): Update.
1099 (command_line_input): Make return type const.
1100 * python/py-gdb-readline.c: Update.
1101 * linespec.c (decode_line_2): Update.
1102 * defs.h (command_line_input): Make return type const.
1103 * cli/cli-script.c (read_next_line): Make return type const.
1104 * ada-lang.c (get_selections): Update.
1106 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1108 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1109 * mi/mi-main.c (output_cores): Likewise.
1110 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1111 (linux_xfer_osdata_modules): Likewise.
1112 * remote.c (register_remote_support_xml): Likewise.
1113 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1114 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1116 2019-11-06 Tom Tromey <tom@tromey.com>
1118 * tui/tui-interp.c: Don't include readline.h.
1119 * tui/tui-hooks.c: Don't include readline.h.
1120 * symmisc.c: Include tilde.h, not readline.h.
1121 * symfile.c: Include tilde.h, not readline.h.
1122 * source.c: Include tilde.h, not readline.h.
1123 * solib.c: Include tilde.h, not readline.h.
1124 * psymtab.c: Include tilde.h, not readline.h.
1125 * exec.c: Include tilde.h, not readline.h.
1126 * corelow.c: Include tilde.h, not readline.h.
1127 * cli/cli-dump.c: Include tilde.h, not readline.h.
1128 * cli/cli-cmds.c: Don't include readline.h.
1130 2019-11-05 Tom Tromey <tom@tromey.com>
1132 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1133 (tui_disassemble): Set addr_size.
1134 (tui_disasm_window::set_contents): Use addr_size.
1136 2019-11-05 Tom Tromey <tom@tromey.com>
1138 * rust-lang.c (rust_language_defn): Update.
1139 * python/py-value.c (valpy_string): Call c_get_string.
1140 * p-lang.c (pascal_language_defn): Update.
1141 * opencl-lang.c (opencl_language_defn): Update.
1142 * objc-lang.c (objc_language_defn): Update.
1143 * m2-lang.c (m2_language_defn): Update.
1144 * language.c (unknown_language_defn, auto_language_defn): Update.
1145 (default_get_string): Remove.
1146 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1147 * go-lang.c (go_language_defn): Update.
1148 * f-lang.c (f_language_defn): Update.
1149 * d-lang.c (d_language_defn): Update.
1150 * c-lang.c (c_language_defn, cplus_language_defn)
1151 (asm_language_defn, minimal_language_defn): Update.
1152 * ada-lang.c (ada_language_defn): Update.
1153 * language.h (struct language_defn) <la_get_string>: Remove.
1154 (LA_GET_STRING): Remove.
1155 (default_get_string): Don't declare.
1157 2019-11-05 Tom Tromey <tom@tromey.com>
1159 * tui/tui-source.h (struct tui_source_window): Inline
1160 constructor. Remove destructor.
1161 <style_changed, m_observable>: Move to superclass.
1162 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1163 (struct tui_source_window_base): Move private members to end.
1164 <style_changed, m_observable>: Move from tui_source_window.
1165 * tui/tui-winsource.c (tui_copy_source_line): Move from
1166 tui-source.c. Rename from copy_source_line. Add special handling
1167 for negative line number.
1168 (tui_source_window_base::style_changed): Move from
1170 (tui_source_window_base): Register observer.
1171 (~tui_source_window_base): New.
1172 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1174 (tui_source_window::set_contents): Use tui_copy_source_line.
1175 (tui_source_window::tui_source_window): Move to tui-source.h.
1176 (tui_source_window::~tui_source_window): Remove.
1177 (tui_source_window::style_changed): Move to superclass.
1178 * tui/tui-disasm.c (tui_disassemble): Create string file with
1179 styling, when possible. Add "addr_size" parameter.
1180 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1181 Don't compute maximum size.
1182 (len_without_escapes): New function
1184 2019-11-05 Tom Tromey <tom@tromey.com>
1186 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1188 * tui/tui-winsource.c (tui_show_source_line): Update.
1189 * tui/tui-source.c (tui_source_window::set_contents): Update.
1190 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1192 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1194 * symtab.h (gdb_static_assert): Put && operator at the beginning
1195 of the line instead of the end.
1197 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1199 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1200 and sizeof (symbol).
1201 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1203 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1205 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1206 * configure.host: Mark *-*-solaris2.10* obsolete.
1207 * configure.tgt: Mark Solaris < 11 obsolete.
1208 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1209 Update target triplet.
1211 2019-11-01 Tom Tromey <tromey@adacore.com>
1213 * utils.c (print_sys_errmsg): Simplify.
1215 2019-11-01 Tom Tromey <tromey@adacore.com>
1217 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1219 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1221 * configure: Regenerate.
1222 * configure.ac: Remove check for strerror_r.
1223 * gdbsupport/common.m4: Check for strerror_r.
1225 2019-11-01 Luis Machado <luis.machado@linaro.org>
1229 * arm-tdep.c (arm_per_objfile): Rename to ...
1230 (arm_per_bfd): ... this.
1231 (arm_objfile_data_key): Rename to ...
1232 (arm_bfd_data_key): ... this.
1233 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1235 (arm_record_special_symbol): Likewise.
1237 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1239 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1241 * c-typeprint.c (c_print_typedef): Likewise.
1242 * f-typeprint.c (f_print_typedef): Likewise.
1243 * m2-typeprint.c (m2_print_typedef): Likewise.
1244 * p-typeprint.c (pascal_print_typedef): Likewise.
1245 * rust-lang.c (rust_print_typedef): Likewise.
1246 * symtab.c (print_symbol_info): Print a newline after calling
1249 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1251 * symtab.c (info_module_cmdlist): New variable.
1252 (info_module_command): New function.
1253 (search_module_symbols): New function.
1254 (info_module_subcommand): New function.
1255 (struct info_modules_var_func_options): New struct.
1256 (info_modules_var_func_options_defs): New variable.
1257 (make_info_modules_var_func_options_def_group): New function.
1258 (info_module_functions_command): New function.
1259 (info_module_variables_command): New function.
1260 (info_module_var_func_command_completer): New function.
1261 (_initialize_symtab): Register new 'info module functions' and
1262 'info module variables' commands.
1263 * symtab.h (typedef symbol_search_in_module): New typedef.
1264 (search_module_symbols): Declare new function.
1265 * NEWS: Mention new commands.
1267 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1269 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1270 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1271 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1273 (scan_partial_symbols): Only create partial module symbols for non
1275 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1277 * symtab.c (search_domain_name): Likewise.
1278 (search_symbols): Likewise.
1279 (print_symbol_info): Likewise.
1280 (symtab_symbol_info): Likewise.
1281 (info_modules_command): New function.
1282 (_initialize_symtab): Register 'info modules' command.
1283 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1284 * NEWS: Mention new 'info modules' command.
1286 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1288 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1289 and $_gdb_maint_setting_str.
1291 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1293 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1294 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1295 (str_value_from_setting, gdb_setting_str_internal_fn)
1296 (gdb_maint_setting_str_internal_fn): New functions.
1297 (_initialize_cli_cmds): Define the new convenience functions.
1298 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1299 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1301 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1303 * agent.c (set_can_use_agent): When the setting is turned on,
1304 look up agent symbols if we don't have them yet.
1305 (agent_new_objfile): Don't look up agent symbols when the agent
1308 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1310 * config.in: Regenerate.
1312 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1314 * configure: Regenerate.
1315 * configure.ac: Check for strerror_r.
1316 * gdbsupport/common-utils.h (safe_strerror): Change return value
1317 to const char * and document that this function is now threadsafe.
1318 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1319 thread_local and call strerror_r, if available.
1320 * utils.c (perror_string): Update.
1321 (print_sys_errmsg): Update.
1323 2019-10-31 Luis Machado <luis.machado@linaro.org>
1325 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1327 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1328 objfile to fetch per-bfd data.
1329 (arm_find_exidx_entry): Likewise.
1331 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1333 * gdbsupport/agent.c (debug_agent): Change type to bool.
1334 (use_agent): Likewise.
1335 (all_agent_symbols_look_up): Likewise.
1336 (agent_loaded_p): Change return value to bool.
1337 (agent_look_up_symbols): Update.
1338 (agent_capability_check): Change return value to bool.
1339 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1340 (debug_agent): Change type to bool.
1341 (use_agent): Likewise.
1342 (agent_capability_check): Change return value to bool.
1344 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1346 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1347 (build_minimal_symbol_hash_tables): Code to clear the table moved
1348 to clear_minimal_symbol_hash_tables.
1349 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1352 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1354 * infcmd.c: Remove includes.
1355 * infrun.c: Remove includes.
1357 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1359 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1360 (grow_vect): Remove declaration.
1361 (ada_type_of_array): Remove declaration.
1362 (ada_update_initial_language): Remove declaration.
1363 (ada_fold_name): Remove declaration.
1364 (ada_fill_in_ada_prototype): Remove declaration.
1365 (user_select_syms): Remove declaration.
1366 (get_selections): Remove declaration.
1367 (ada_tag_type): Remove declaration.
1368 (ada_value_tag): Remove declaration.
1369 (ada_is_others_clause): Remove declaration.
1370 (ada_in_variant): Remove declaration.
1371 (ada_value_struct_elt): Remove declaration.
1372 (ada_attribute_name): Remove declaration.
1373 (ada_system_address_type): Remove declaration.
1374 * ada-lang.c (ada_watch_location_expression): Make static.
1375 (GROW_VECT): Move here from ada-lang.h.
1376 (grow_vect): Make static.
1377 (ada_update_initial_language): Make static.
1378 (ada_fold_name): Make static.
1379 (ada_type_of_array): Make static.
1380 (encoded_ordered_before): Move up.
1381 (sort_choices): Move up.
1382 (print_signatures): Move up.
1383 (ada_print_symbol_signature): Move up.
1384 (get_selections): Move up and make static.
1385 (user_select_syms): Move up and make static.
1386 (ada_value_struct_elt): Move up and make static.
1387 (ada_tag_type): Make static.
1388 (ada_value_tag): Make static.
1389 (ada_is_others_clause): Make static.
1390 (ada_in_variant): Make static.
1391 (ada_attribute_name): Make static.
1393 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1395 * ada-lang.c: Remove includes.
1396 * ada-typeprint.c: Remove includes.
1397 * ada-valprint.c: Remove includes.
1399 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1401 * addrmap.c: Add static assertions of type size, moved from
1402 _initialize_addrmap.
1403 (_initialize_addrmap): Remove.
1405 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1407 * coffread.c (record_minimal_symbol): Update.
1408 (process_coff_symbol): Update.
1409 * dbxread.c (read_dbx_symtab): Update.
1410 * dwarf2read.c (add_partial_symbol): Update.
1411 (fixup_go_packaging): Update.
1412 (load_partial_dies): Update.
1413 (new_symbol): Update.
1414 * elfread.c (record_minimal_symbol): Change signature to use
1415 gdb::string_view instead of name+len.
1416 (elf_symtab_read): Update.
1417 (elf_rel_plt_read): Update.
1418 * mdebugread.c (parse_partial_symbols): Update.
1419 (handle_psymbol_enumerators): Update.
1420 (new_symbol): Update.
1421 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1422 to use gdb::string_view instead of name+len.
1423 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1424 * psympriv.h (add_psymbol_to_list): Likewise.
1425 * psymtab.c (add_psymbol_to_bcache): Likewise.
1426 (add_psymbol_to_list): Likewise.
1427 * stabsread.c (define_symbol): Update.
1428 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1429 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1430 (symbol_set_names): Likewise.
1431 * xcoffread.c (scan_xcoff_symtab): Update.
1433 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1435 * symtab.h (symbol_set_names): Document that copy_name must be
1436 set to true for non-nullterminated strings.
1437 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1438 linkage_name if the entry was not found and we need to demangle.
1440 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1442 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1443 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1444 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1445 * gdbsupport/gdb_binary_search.h: New file.
1447 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1449 * NEWS: Mention new --with-system-gdbinit-dir option.
1450 * config.in: Regenerate.
1451 * configure: Regenerate.
1452 * configure.ac: Add new option --with-system-gdbinit-dir.
1453 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1454 for a ".gdb" suffix.
1455 * main.c (get_init_files): Change system_gdbinit argument to
1456 a vector and return the files in SYSTEM_GDBINIT_DIR in
1457 addition to SYSTEM_GDBINIT.
1458 (captured_main_1): Update.
1459 (print_gdb_help): Update.
1460 * top.c (print_gdb_configuration): Also print the value of
1463 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1465 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1466 that takes gdb::string_view arguments.
1468 2019-10-26 Tom de Vries <tdevries@suse.de>
1470 * aarch64-linux-tdep.c: Fix typos in comments.
1471 * aarch64-tdep.c: Same.
1473 * amd64-nat.c: Same.
1475 * arch/aarch64-insn.c: Same.
1477 * breakpoint.h: Same.
1480 * cli/cli-decode.c: Same.
1481 * cli/cli-script.c: Same.
1482 * cli/cli-utils.h: Same.
1483 * coff-pe-read.c: Same.
1485 * compile/compile-cplus-symbols.c: Same.
1486 * compile/compile-object-run.c: Same.
1487 * completer.c: Same.
1489 * cp-support.c: Same.
1491 * dwarf-index-write.c: Same.
1492 * dwarf2-frame.c: Same.
1493 * dwarf2-frame.h: Same.
1495 * frame-base.h: Same.
1500 * guile/scm-objfile.c: Same.
1501 * i386-tdep.c: Same.
1502 * i386-tdep.h: Same.
1505 * linux-nat.c: Same.
1506 * m68k-tdep.c: Same.
1509 * mi/mi-cmd-disas.c: Same.
1510 * mi/mi-getopt.h: Same.
1511 * mi/mi-main.c: Same.
1513 * nat/aarch64-sve-linux-sigcontext.h: Same.
1515 * ppc-linux-nat.c: Same.
1516 * ppc-linux-tdep.c: Same.
1518 * progspace.h: Same.
1519 * prologue-value.h: Same.
1520 * python/py-evtregistry.c: Same.
1521 * python/py-instruction.h: Same.
1522 * record-btrace.c: Same.
1523 * record-full.c: Same.
1525 * rs6000-tdep.c: Same.
1527 * sol-thread.c: Same.
1528 * sparc-sol2-tdep.c: Same.
1529 * sparc64-tdep.c: Same.
1530 * stabsread.c: Same.
1534 * tracepoint.c: Same.
1535 * tui/tui-data.h: Same.
1536 * tui/tui-io.c: Same.
1537 * tui/tui-win.c: Same.
1539 * unittests/rsp-low-selftests.c: Same.
1540 * user-regs.h: Same.
1551 * xtensa-tdep.c: Same.
1553 2019-10-25 Ali Tamur <tamur@google.com>
1555 * charset.c (find_charset_names): Reflect API change.
1557 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1559 * symtab.c (struct demangled_name_entry): Change demangled name
1560 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1561 part of the struct anymore.
1562 (symbol_set_names): No longer obstack allocate + copy the demangled
1563 name, just store the allocated name from bfd.
1565 2019-10-25 Tom Tromey <tromey@adacore.com>
1567 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1568 (bsearch_cie_cmp, add_cie): Remove.
1569 (find_cie): Reimplement.
1570 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1571 (dwarf2_build_frame_info): Update.
1573 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1576 * symfile.c (reread_symbols): Call forget_cached_source_info to
1577 clear the stale source cache.
1579 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1581 * configure: Regenerate.
1582 * configure.ac: Remove code that sets python_has_threads.
1584 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1586 * config.in: Regenerate.
1587 * configure: Regenerate.
1588 * configure.ac: Remove the code that uses sed to get the python
1589 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1591 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1593 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1596 2019-10-23 Tom Tromey <tom@tromey.com>
1598 * arc-tdep.c: Remove ".." from include.
1599 * frv-tdep.c: Remove ".." from include.
1600 * lm32-tdep.c: Remove ".." from include.
1601 * microblaze-tdep.c: Remove ".." from include.
1602 * or1k-tdep.h: Remove ".." from include.
1603 * s12z-tdep.c: Remove ".." from include.
1604 * Makefile.in (OPCODES_CFLAGS): Add comment.
1605 (TOP_CFLAGS): New variable.
1606 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1608 2019-10-23 Tom Tromey <tom@tromey.com>
1610 * Makefile.in (READLINE_DIR): Update.
1612 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1614 * infcall.c (call_function_by_hand_dummy): Fix the function
1615 comment. And extract out a code section into...
1616 (reserve_stack_space): ...this new function.
1618 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620 * infcall.c (value_arg_coerce): Remove an unused parameter.
1621 (call_function_by_hand_dummy): Update the call to
1624 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1626 * infcall.c (call_function_by_hand_dummy): Refactor.
1628 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1630 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1632 2019-10-23 Tom Tromey <tom@tromey.com>
1634 * configure: Rebuild.
1635 * configure.ac: Don't check for sigprocmask.
1636 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1638 2019-10-23 Tom Tromey <tom@tromey.com>
1640 * configure: Rebuild.
1641 * acinclude.m4: Use m4_include, not sinclude.
1643 2019-10-23 Tom de Vries <tdevries@suse.de>
1645 PR breakpoints/24687
1646 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1648 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1650 * symtab.c (struct demangled_name_entry) <language>: Change from
1651 bitfield to regular variable.
1653 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1655 * symtab.c (struct demangled_name_entry): Add a constructor.
1656 (free_demangled_name_entry): New function to call the destructor
1657 for demangled_name_entry.
1658 (create_demangled_names_hash): Pass free_demangled_name_entry to
1660 (symbol_set_names): Call placement new for demangled_name_entry.
1661 * utils.c: No longer include xxhash.h here, now that fast_hash
1662 is inlined in the header.
1663 * utils.h: Instead, include it here.
1665 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1667 * Makefile.in: Link with libxxhash.
1668 * config.in: Regenerate.
1669 * configure: Regenerate.
1670 * configure.ac: Search for libxxhash.
1671 * utils.c (fast_hash): Use xxhash if present.
1673 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1675 * utils.h (fast_hash): New function.
1676 * symtab.c (hash_demangled_name_entry): Call new function
1679 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1681 * symtab.c (struct demangled_name_entry): Change type of mangled
1682 to gdb::string_view. Also adds a constructor that takes the
1684 (hash_demangled_name_entry): Update.
1685 (eq_demangled_name_entry): Update.
1686 (free_demangled_name_entry): New function to call the destructor
1687 now that this is not a POD anymore.
1688 (create_demangled_names_hash): Pass free_demangled_name_entry to
1690 (symbol_set_names): Update.
1692 2019-10-21 Ali Tamur <tamu@google.com>
1694 * dwarf2read.c (dir_index): Change type.
1695 (file_name_index): Likewise.
1696 (line_header::include_dir_at): Change comment and implementation on
1697 whether it is DWARF 5.
1698 (line_header::is_valid_file_index): New function.
1699 (line_header::file_name_at): Change comment and implementation on
1700 whether it is DWARF 5.
1701 (line_header::file_names): Change to private field renamed as
1702 m_file_names and introduce a new accessor method.
1703 (line_header::file_names_size): New method.
1704 (line_header::include_dirs): Change to private field and rename as
1706 (dw2_get_file_names_reader): Define local var at a smaller scope and
1708 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1709 (process_structure_scope): Likewise.
1710 (line_header::add_include_dir): Change message and reflect renaming.
1711 (line_header::add_file_name): Likewise.
1712 (read_formatted_entries): Handle DW_FORM_data16.
1713 (dwarf_decode_line_header): Fix line header length calculation.
1714 (psymtab_include_file_name): Change comment and API.
1715 (lnp_state_machine::m_file): Update comment and reflect type change.
1716 (lnp_state_machine::record_line): Reflect type change.
1717 (dwarf_decode_lines): Reflect API change.
1718 (file_file_name): Likewise.
1719 (file_full_name): Likewise.
1721 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1725 2019-10-21 Tom Tromey <tom@tromey.com>
1727 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1729 2019-10-21 Tom Tromey <tom@tromey.com>
1731 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1732 NM_H. Use AC_CONFIG_LINKS.
1733 * configure: Rebuild.
1734 * Makefile.in (NM_H): New variable.
1735 (generated_files): Add NM_H. Remove gcore.
1736 (nm.h, stamp-nmh): New targets.
1738 2019-10-20 Tom Tromey <tom@tromey.com>
1740 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1741 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1743 (put_objfile_before): Now static.
1745 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1747 * gdbsupport/common-utils.h (startswith): Change return type to
1750 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1752 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1753 * breakpoint.c (bp_locations_compare): Rename to...
1754 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1755 (update_global_location_list): Use std::sort instead of qsort.
1756 * buildsym.c (compare_line_numbers): Rename to...
1757 (lte_is_less_than): ...this, and change to std::sort semantics.
1758 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1760 * disasm.c (compare_lines): Rename to...
1761 (line_is_less_than): ...this, and change to std::sort semantics.
1762 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1764 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1765 (fde_is_less_than): ...this, and change to std::sort semantics.
1766 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1767 * mdebugread.c (compare_blocks):
1768 (block_is_less_than): ...this, and change to std::sort semantics.
1769 (sort_blocks): Call std::sort instead of qsort.
1770 * objfiles.c (qsort_cmp): Rename to...
1771 (sort_cmp): ...this, and change to std::sort semantics.
1772 (update_section_map): Call std::sort instead of qsort.
1773 * remote.c (compare_pnums): Remove.
1774 (map_regcache_remote_table): Call std::sort instead of qsort.
1775 * utils.c (compare_positive_ints): Remove.
1776 * utils.h (compare_positive_ints): Remove.
1777 * xcoffread.c (compare_lte): Remove.
1778 (arrange_linetable): Call std::sort instead of qsort.
1780 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1782 * symfile.c (init_entry_point_info): Fix typo.
1783 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1785 2019-10-18 Tom de Vries <tdevries@suse.de>
1787 * aarch64-tdep.c: Fix typos in comments.
1789 * ada-tasks.c: Same.
1790 * alpha-tdep.c: Same.
1791 * alpha-tdep.h: Same.
1792 * amd64-nat.c: Same.
1793 * amd64-windows-tdep.c: Same.
1796 * arch-utils.c: Same.
1797 * arm-nbsd-tdep.c: Same.
1800 * blockframe.c: Same.
1803 * coff-pe-read.c: Same.
1805 * cris-tdep.c: Same.
1806 * darwin-nat.c: Same.
1810 * dtrace-probe.c: Same.
1811 * dwarf-index-write.c: Same.
1812 * dwarf2-frame-tailcall.c: Same.
1813 * dwarf2-frame.c: Same.
1814 * dwarf2read.c: Same.
1816 * exceptions.c: Same.
1817 * fbsd-tdep.c: Same.
1821 * gnu-v3-abi.c: Same.
1823 * h8300-tdep.c: Same.
1824 * hppa-tdep.c: Same.
1825 * i386-linux-tdep.c: Same.
1826 * i386-tdep.c: Same.
1827 * ia64-libunwind-tdep.c: Same.
1828 * ia64-tdep.c: Same.
1832 * linux-nat.c: Same.
1833 * linux-thread-db.c: Same.
1834 * machoread.c: Same.
1835 * mdebugread.c: Same.
1837 * mn10300-tdep.c: Same.
1838 * namespace.c: Same.
1840 * opencl-lang.c: Same.
1841 * or1k-tdep.c: Same.
1843 * ppc-linux-nat.c: Same.
1844 * ppc-linux-tdep.c: Same.
1845 * ppc-sysv-tdep.c: Same.
1848 * record-btrace.c: Same.
1849 * record-full.c: Same.
1850 * remote-fileio.c: Same.
1852 * rs6000-tdep.c: Same.
1853 * s12z-tdep.c: Same.
1854 * score-tdep.c: Same.
1858 * sol-thread.c: Same.
1859 * solib-svr4.c: Same.
1862 * sparc-nat.c: Same.
1863 * sparc-sol2-tdep.c: Same.
1864 * sparc-tdep.c: Same.
1865 * sparc64-tdep.c: Same.
1866 * stabsread.c: Same.
1870 * target-descriptions.c: Same.
1871 * target-float.c: Same.
1878 * windows-nat.c: Same.
1879 * xcoffread.c: Same.
1880 * xstormy16-tdep.c: Same.
1881 * xtensa-tdep.c: Same.
1883 2019-10-17 Tom Tromey <tromey@adacore.com>
1885 * configure: Rebuild.
1886 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1887 in AC_CONFIG_FILES invocation.
1888 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1889 new-style config.status invocation.
1891 2019-10-17 Tom de Vries <tdevries@suse.de>
1893 * arm-nbsd-nat.c: Fix typos in comments.
1895 * darwin-nat-info.c: Same.
1896 * dwarf2read.c: Same.
1898 * event-top.c: Same.
1901 * hppa-tdep.c: Same.
1902 * i386-tdep.c: Same.
1905 * mdebugread.c: Same.
1906 * moxie-tdep.c: Same.
1907 * nto-procfs.c: Same.
1909 * ppc-linux-tdep.c: Same.
1911 * riscv-tdep.c: Same.
1912 * s390-tdep.c: Same.
1914 * sparc-linux-tdep.c: Same.
1915 * sparc-nat.c: Same.
1917 * target-descriptions.c: Same.
1921 2019-10-16 Tom Tromey <tom@tromey.com>
1923 * objfiles.h (struct objfile) <original_name>: Now const.
1925 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1927 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1928 pass on to sigsetjmp's second argument.
1929 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1931 2019-10-16 Keith Seitz <keiths@redhat.com>
1934 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1935 sections whose size is greater than the file size.
1937 2019-10-16 Jim Wilson <jimw@sifive.com>
1939 * riscv-tdep.c (riscv_gcc_target_options): New.
1940 (riscv_gnu_triplet_regexp): New.
1941 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1942 set_gdbarch_gnu_triplet_regexp.
1944 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1946 * Makefile.in: Add xml-builtin.h.
1947 * features/feature_to_c.sh: Add an include for xml-builtin.h
1948 to ensure that the compiler checks that the types match.
1949 * xml-builtin.h: New file.
1950 * xml-support.c (fetch_xml_builtin): Add missing const.
1951 * xml-support.h: Remove declaration of xml_builtins.
1953 2019-10-16 Tom de Vries <tdevries@suse.de>
1956 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1957 (amd64_classify_aggregate): ... here.
1958 (amd64_classify_aggregate_field): Handled fiels of nested structs
1961 2019-10-16 Tom de Vries <tdevries@suse.de>
1964 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1965 that handles 'theclass'.
1967 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1969 * linespec.c (decode_digits_ordinary): Update comment.
1970 * make-target-delegates: No longer need to handle VEC case.
1971 * memrange.c (normalize_mem_ranges): Update comment.
1972 * namespace.c (add_using_directive): Update comment.
1973 * objc-lang.c (uniquify_strings): Update comment.
1974 * ppc-linux-nat.c (struct thread_points): Update comment.
1975 * probe.h (find_probes_in_objfile): Update comment.
1976 * target.h (enum flash_preserve_mode): Update comment.
1977 * varobj.c (varobj_restrict_range): Update comment.
1978 * varobj.h (varobj_list_children): Update comment.
1980 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1982 * Makefile.in: Remove references to vec.h and vec.c.
1983 * aarch64-tdep.c: No longer include vec.h.
1984 * ada-lang.c: Likewise.
1985 * ada-lang.h: Likewise.
1986 * arm-tdep.c: Likewise.
1988 * breakpoint.h: Likewise.
1989 * charset.c: Likewise.
1990 * cp-support.h: Likewise.
1991 * dtrace-probe.c: Likewise.
1992 * dwarf2read.c: Likewise.
1993 * extension.h: Likewise.
1994 * gdb_bfd.c: Likewise.
1995 * gdbsupport/gdb_vecs.h: Likewise.
1996 * gdbsupport/vec.c: Remove.
1997 * gdbsupport/vec.h: Remove.
1998 * gdbthread.h: Likewise.
1999 * guile/scm-type.c: Likewise.
2000 * inline-frame.c: Likewise.
2001 * machoread.c: Likewise.
2002 * memattr.c: Likewise.
2003 * memrange.h: Likewise.
2004 * namespace.h: Likewise.
2005 * nat/linux-btrace.h: Likewise.
2006 * osdata.c: Likewise.
2007 * parser-defs.h: Likewise.
2008 * progspace.h: Likewise.
2009 * python/py-type.c: Likewise.
2010 * record-btrace.c: Likewise.
2011 * rust-exp.y: Likewise.
2012 * solib-target.c: Likewise.
2013 * stap-probe.c: Likewise.
2014 * target-descriptions.c: Likewise.
2015 * target-memory.c: Likewise.
2016 * target.h: Likewise.
2017 * varobj.c: Likewise.
2018 * varobj.h: Likewise.
2019 * xml-support.h: Likewise.
2021 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2023 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2024 Update for new std::vector based implementation.
2025 (process_psymtab_comp_unit_reader): Likewise.
2026 (scan_partial_symbols): Likewise.
2027 (recursively_compute_inclusions): Likewise.
2028 (compute_compunit_symtab_includes): Likewise.
2029 (process_imported_unit_die): Likewise.
2030 (queue_and_load_dwo_tu): Likewise.
2031 (follow_die_sig_1): Likewise.
2032 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2033 (typedef dwarf2_per_cu_ptr): Remove.
2034 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2036 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2037 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2038 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2039 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2042 2019-10-15 Tom Tromey <tromey@adacore.com>
2044 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2047 2019-10-15 Tom Tromey <tromey@adacore.com>
2049 * windows-nat.c (windows_nat_target::fetch_registers)
2050 (windows_nat_target::store_registers): Rename "pid" to "tid".
2052 2019-10-15 Tom Tromey <tromey@adacore.com>
2054 * gdbarch.h, gdbarch.c: Rebuild.
2055 * gdbarch.sh (gcc_target_options): Change return type to
2057 * compile/compile.c (get_args): Update.
2058 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2059 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2061 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2063 * arch-utils.c (default_gcc_target_options): Return std::string.
2064 * arch-utils.h (default_gcc_target_options): Return std::string.
2065 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2067 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2069 * breakpoint.c (breakpoint_chain): Make static.
2070 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2071 of accessing breakpoint_chain.
2073 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2075 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2076 to a gdb::function_view and return value to bool.
2077 * breakpoint.h (iterate_over_breakpoints): Likewise.
2078 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2079 (pop_dummy_frame): Update.
2080 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2081 (gdbscm_breakpoints): Update.
2082 * python/py-breakpoint.c (build_bp_list): Update.
2083 (gdbpy_breakpoints): Update.
2084 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2086 (bpfinishpy_handle_stop): Update.
2087 (bpfinishpy_handle_exit): Update.
2088 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2089 (svr4_update_solib_event_breakpoints): Update.
2091 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2093 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2094 when unwrapping single-field structs.
2096 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2098 * dwarf2read.c: Remove includes.
2100 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2102 * ui-out.c (ui_out::call_do_message): Silence
2103 -Wformat-nonliteral warning.
2105 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2107 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2108 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2109 include: readline/tilde.h.
2111 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2113 * remote.c (remote_target::get_trace_status): Remove declaration of
2114 trace_regblock_size.
2116 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2118 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2119 (show_user): Remove declaration of cmdlist.
2120 * cli/cli-cmds.h (max_user_call_depth): Declare.
2121 * cli/cli-script.c (execute_user_command): Remove declaration
2122 of max_user_call_depth.
2124 2019-10-11 Jim Wilson <jimw@sifive.com>
2126 * gdbsupport/print-utils.h (pulongest): Fix comment.
2127 (plongest): Likewise.
2128 (phex): Add missing comment, mention leading zeros.
2129 (phex_nz): Add mention of no leading zeros to comment.
2131 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2132 plongest instead of unsigned long long cast.
2134 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2136 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2137 for external_editor_command and gdbtk_test.
2139 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2141 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2142 * varobj.c (varobjdebug): Move comment to...
2143 * varobj.h (varobjdebug): ...here, and declare.
2145 2019-10-09 Tom Tromey <tom@tromey.com>
2147 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2150 2019-10-09 Tom Tromey <tom@tromey.com>
2152 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2153 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2154 * tui/tui-command.c (tui_cmd_window::resize)
2155 (tui_refresh_cmd_win): Update.
2156 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2157 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2158 * tui/tui-data.c (~tui_gen_win_info): Remove.
2159 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2160 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2161 (tui_redisplay_readline, tui_mld_flush)
2162 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2163 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2164 (tui_data_window::erase_data_content)
2165 (tui_data_item_window::rerender)
2166 (tui_data_item_window::refresh_window): Update.
2167 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2168 (box_win, tui_gen_win_info::make_window)
2169 (tui_gen_win_info::make_visible): Update.
2170 (tui_delete_win): Remove.
2171 * tui/tui-winsource.c
2172 (tui_source_window_base::do_erase_source_content): Update.
2173 (tui_show_source_line, tui_source_window_base::update_tab_width)
2174 (tui_source_window_base::update_exec_info): Update.
2175 * tui/tui-data.h (struct curses_deleter): New.
2176 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2177 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2179 2019-10-09 Tom Tromey <tom@tromey.com>
2181 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2183 2019-10-09 Tom Tromey <tom@tromey.com>
2185 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2186 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2188 2019-10-09 Tom Tromey <tom@tromey.com>
2190 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2191 window height directly.
2192 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2194 * tui/tui-layout.c (tui_default_win_height): Remove.
2195 (tui_default_win_viewport_height): Remove.
2197 2019-10-09 Tom Tromey <tom@tromey.com>
2199 * tui/tui.h: Remove comments.
2201 2019-10-09 Tom de Vries <tdevries@suse.de>
2203 * python/lib/gdb/printer/bound_registers.py: Use
2204 '^builtin_type_bound128' as regexp argument for
2205 add_builtin_pretty_printer.
2207 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2209 * guile/guile.c (guile_extension_script_ops): Remove forward
2210 declaration and mark as static.
2211 (guile_script_ops): Likewise.
2212 (extension_language_guile): Move further down in the file so
2213 it can reference the definitions for guile_{extension_,}script_ops.
2215 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2217 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2218 except SORTL, DFLTCC, and KDSA.
2220 2019-10-08 Tom Tromey <tromey@adacore.com>
2222 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2223 (struct safe_symbol_file_add_args): Remove.
2225 2019-10-08 Tom Tromey <tromey@adacore.com>
2227 * windows-nat.c: Don't include buildsym-legacy.h.
2229 2019-10-08 Tom Tromey <tromey@adacore.com>
2231 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2233 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2235 * gdbtypes.c (overload_debug): Move comment to header.
2236 * gdbtypes.h (overload_debug): Declare.
2237 * valops.c: Remove declaration of overload_debug, instead
2240 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2242 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2244 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2246 * language.h (lang_frame_mismatch_warn): ... here. Also add
2248 * top.c (lang_frame_mismatch_warn): Remove declaration.
2249 (check_frame_language_change): Pass lang_frame_mismatch_warn
2252 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2254 * c-lang.h (vtbl_ptr_name): Declare.
2255 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2257 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2259 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2261 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2264 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2266 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2267 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2268 * ctfread.c: New file.
2269 * ctfread.h: New file.
2270 * elfread.c: Include ctfread.h.
2271 (struct elfinfo text_p): New member ctfsect.
2272 (elf_locate_sections): Mark CTF section.
2273 (elf_symfile_read): Call elfctf_build_psymtabs.
2274 * Makefile.in (LIBCTF): Add.
2277 (DIST): Add ctfread.c.
2279 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2281 * ctfread.c (struct nextfield): Renamed to ...
2282 (struct ctf_nextfield): ... this.
2283 (struct field_info): Renamed to ...
2284 (strut ctf_field_info): ... this.
2285 (attach_fields_to_type): Update for renamed structures.
2286 (ctf_add_member_cb): Likewise.
2287 (ctf_add_enum_member_cb): Likewise.
2288 (process_struct_members): Likewise.
2289 (process_enum_type): Likewise.
2291 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2293 * tracectf.h: Rename, was ctf.h.
2294 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2295 * tracefile.c: Likewise.
2296 * tracepoint.c: Remove unused include ctf.h.
2297 * mi/mi-main.c: Likewise.
2298 * Makefile.in Replace ctf.c with tracectf.c.
2300 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2302 * version.in: Change version number to "9.0.50.DATE-git".
2304 2019-10-03 Tom Tromey <tom@tromey.com>
2307 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2309 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2311 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2312 cp_search_name_hash.
2313 * NEWS: Add entry about nested function support.
2315 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2316 Andrew Burgess <andrew.burgess@embecosm.com>
2318 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2319 for nested static variables when searchin VAR_DOMAIN.
2320 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2321 global scope, update comment.
2322 (add_partial_subprogram): Call add_partial_subprogram recursively
2323 for nested subroutines when processinng Fortran.
2324 (load_partial_dies): Process the child entities of a subprogram
2325 when processing Fortran.
2326 (partial_die_parent_scope): Handle building scope
2327 for Fortran nested functions.
2328 (process_die): Record that nested functions have a scope.
2329 (new_symbol): Always record Fortran subprograms on the global
2331 (determine_prefix): How to build the prefix for Fortran
2334 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2336 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2337 have just sent the thread a SIGSTOP and are waiting for it to
2340 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2342 * btrace.c (btrace_add_pc): Remove whitespace before the template
2343 parameter in 'std::vector <...>'.
2344 (parse_xml_btrace_block): Likewise.
2345 (btrace_maint_decode_pt): Likewise.
2346 (btrace_maint_update_packets): Likewise.
2347 (btrace_maint_print_packets): Likewise.
2348 * btrace.h (struct btrace_maint_info): Likewise.
2349 * dwarf2read.c (struct type_unit_group): Likewise.
2350 (build_type_psymtabs_reader): Likewise.
2351 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2352 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2353 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2355 2019-10-03 Tom de Vries <tdevries@suse.de>
2357 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2358 the first line of the help text for set/show style metadata.
2360 2019-10-02 Tom Tromey <tromey@adacore.com>
2362 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2363 * gdbsupport/common-inferior.c: New file.
2364 * infcmd.c (startup_with_shell): Don't define.
2365 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2366 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2367 * inferior.h (startup_with_shell): Don't declare.
2369 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2371 * gdbsupport/gdb_assert.h: Include errors.h.
2372 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2374 2019-10-02 Tom Tromey <tromey@adacore.com>
2376 * NEWS: Add $_ada_exception entry.
2377 * ada-lang.c (struct ada_catchpoint): Add constructor.
2378 <m_kind>: New member.
2379 (allocate_location_exception, re_set_exception): Remove
2381 (should_stop_exception): Compute $_ada_exception.
2382 (check_status_exception, print_it_exception)
2383 (print_one_exception, print_mention_exception): Remove
2385 (allocate_location_catch_exception, re_set_catch_exception)
2386 (check_status_exception, print_it_catch_exception)
2387 (print_one_catch_exception, print_mention_catch_exception)
2388 (print_recreate_catch_exception)
2389 (allocate_location_catch_exception_unhandled)
2390 (re_set_catch_exception_unhandled)
2391 (check_status_exception, print_it_catch_exception_unhandled)
2392 (print_one_catch_exception_unhandled)
2393 (print_mention_catch_exception_unhandled)
2394 (print_recreate_catch_exception_unhandled)
2395 (allocate_location_catch_assert, re_set_catch_assert)
2396 (check_status_assert, print_it_catch_assert)
2397 (print_one_catch_assert, print_mention_catch_assert)
2398 (print_recreate_catch_assert)
2399 (allocate_location_catch_handlers, re_set_catch_handlers)
2400 (check_status_handlers, print_it_catch_handlers)
2401 (print_one_catch_handlers, print_mention_catch_handlers)
2402 (print_recreate_catch_handlers): Remove.
2403 (create_ada_exception_catchpoint): Update.
2404 (initialize_ada_catchpoint_ops): Update.
2406 2019-10-02 Tom Tromey <tromey@adacore.com>
2408 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2409 (create_excep_cond_exprs): Simplify exception string computation.
2410 (ada_exception_catchpoint_cond_string): Likewise.
2412 2019-10-02 Tom Tromey <tromey@adacore.com>
2414 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2415 * ada-lang.c (lesseq_defined_than): Handle
2417 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2419 (dwarf2_has_info): Likewise.
2420 (new_symbol): Set maybe_copied on symbol when
2422 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2424 <can_copy>: New member.
2425 * elfread.c (record_minimal_symbol): Set maybe_copied
2426 on symbol when appropriate.
2427 (elf_symfile_read): Update call to dwarf2_has_info.
2428 * minsyms.c (lookup_minimal_symbol_linkage): New
2430 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2431 * symtab.c (get_symbol_address, get_msymbol_address):
2433 * symtab.h (get_symbol_address, get_msymbol_address):
2435 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2437 (struct symbol, struct minimal_symbol) <maybe_copied>:
2440 2019-10-02 Tom Tromey <tromey@adacore.com>
2442 * source.c (struct current_source_location): New.
2443 (current_source_key): New global.
2444 (current_source_symtab, current_source_line)
2445 (current_source_pspace): Remove.
2446 (get_source_location): New function.
2447 (get_current_source_symtab_and_line)
2448 (set_default_source_symtab_and_line)
2449 (set_current_source_symtab_and_line)
2450 (clear_current_source_symtab_and_line, select_source_symtab)
2451 (info_source_command, print_source_lines_base)
2452 (info_line_command, search_command_helper, _initialize_source):
2455 2019-10-02 Tom Tromey <tromey@adacore.com>
2457 * source.c (select_source_symtab): Don't call
2458 decode_line_with_current_source.
2460 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2462 * symtab.c (lookup_global_symbol): Search global block.
2464 2019-10-02 Tom Tromey <tromey@adacore.com>
2466 * coffread.c (process_coff_symbol): Update.
2467 * dwarf2read.c (var_decode_location, new_symbol): Update.
2468 * mdebugread.c (parse_symbol): Update.
2469 * objfiles.c (relocate_one_symbol): Update.
2470 * stabsread.c (define_symbol, fix_common_block)
2471 (scan_file_globals): Update.
2472 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2473 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2474 * xcoffread.c (process_xcoff_symbol): Update.
2476 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2478 * MAINTAINERS: Update my email address.
2480 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2482 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2484 (build_type_psymtabs_reader): Update for std::vector.
2485 (build_type_psymtab_dependencies): Likewise.
2486 * dwarf2read.h: Remove use of DEF_VEC_P.
2487 (typedef sig_type_ptr): Delete.
2489 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2491 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2493 (btrace_maint_decode_pt): Likewise, and move allocation of the
2494 vector outside of the loop.
2495 (btrace_maint_update_packets): Update to handle change from VEC to
2497 (btrace_maint_print_packets): Likewise.
2498 (maint_info_btrace_cmd): Likewise.
2499 * btrace.h: Remove use of DEF_VEC_O.
2500 (typedef btrace_pt_packet_s): Delete.
2501 (struct btrace_maint_info) <packets>: Change fromm VEC to
2503 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2505 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2507 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2508 make accesses into the vector constant references.
2509 (btrace_add_pc): Update for std::vector.
2510 (btrace_stitch_bts): Likewise.
2511 (parse_xml_btrace_block): Likewise.
2512 (btrace_maint_update_packets): Likewise.
2513 (btrace_maint_print_packets): Likewise.
2514 (maint_info_btrace_cmd): Likewise.
2515 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2517 (btrace_data::empty): Likewise.
2518 (btrace_data_append): Likewise.
2519 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2520 (typedef btrace_block_s): Delete.
2521 (struct btrace_block): Add constructor.
2522 (struct btrace_data_bts) <blocks>: Change to std::vector.
2523 * nat/linux-btrace.c (perf_event_read_bts): Update for
2525 (linux_read_bts): Likewise.
2527 2019-10-01 Tom Tromey <tom@tromey.com>
2529 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2531 2019-10-01 Tom Tromey <tom@tromey.com>
2533 * stack.c (print_frame, info_frame_command_core): Use
2535 * linux-thread-db.c (try_thread_db_load_1)
2536 (try_thread_db_load_from_pdir_1): Use styled_string.
2537 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2538 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2539 (maybe_print_unsupported_script_warning)
2540 (maybe_print_script_not_found_warning): Use styled_string.
2541 * ada-lang.c (user_select_syms): Use styled_string.
2543 2019-10-01 Tom Tromey <tom@tromey.com>
2545 * p-lang.c (pascal_printstr): Use metadata style.
2546 * value.c (show_convenience): Use metadata style.
2547 * valprint.c (valprint_check_validity, val_print_optimized_out)
2548 (val_print_not_saved, val_print_unavailable)
2549 (val_print_invalid_address, generic_val_print, val_print)
2550 (value_check_printable, val_print_array_elements): Use metadata
2552 * ui-out.h (class ui_out) <field_fmt>: New overload.
2553 <do_field_fmt>: Add style parameter.
2554 * ui-out.c (ui_out::field_fmt): New overload.
2555 * typeprint.c (type_print_unknown_return_type)
2556 (val_print_not_allocated, val_print_not_associated): Use metadata
2558 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2560 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2561 * tracepoint.c (tvariables_info_1): Use metadata style.
2562 * stack.c (print_frame_arg, print_frame_info, print_frame)
2563 (info_frame_command_core): Use metadata style.
2564 * skip.c (info_skip_command): Use metadata style.
2565 * rust-lang.c (rust_print_enum): Use metadata style.
2566 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2568 * python/py-framefilter.c (py_print_single_arg): Use metadata
2570 * printcmd.c (do_one_display, print_variable_and_value): Use
2572 * p-valprint.c (pascal_val_print)
2573 (pascal_object_print_value_fields): Use metadata style.
2574 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2575 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2577 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2578 * m2-valprint.c (m2_print_long_set): Use metadata style.
2579 * m2-typeprint.c (m2_print_type): Use metadata style.
2580 * infcmd.c (print_return_value_1): Use metadata style.
2581 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2582 * f-valprint.c (info_common_command_for_block): Use metadata
2584 * f-typeprint.c (f_type_print_base): Use metadata style.
2585 * expprint.c (print_subexp_standard): Use metadata style.
2586 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2587 * cli/cli-style.h (class cli_style_option): Add constructor.
2588 (metadata_style): Declare.
2589 * cli/cli-style.c (metadata_style): New global.
2590 (_initialize_cli_style): Register metadata style.
2591 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2593 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2594 * c-typeprint.c (c_type_print_base_struct_union)
2595 (c_type_print_base_1): Use metadata style.
2596 * breakpoint.c (watchpoint_value_print)
2597 (print_one_breakpoint_location): Use metadata style.
2598 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2600 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2602 * ada-valprint.c (val_print_packed_array_elements, printstr)
2603 (print_field_values, ada_val_print_ref, ada_val_print): Use
2605 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2607 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2609 * ada-lang.c (user_select_syms): Use metadata style.
2611 2019-10-01 Tom Tromey <tom@tromey.com>
2613 * cli/cli-cmds.c (pwd_command): Style output.
2615 2019-10-01 Pedro Alves <palves@redhat.com>
2616 Tom Tromey <tom@tromey.com>
2618 * symtab.c (print_symbol_info): Use %ps.
2619 (print_msymbol_info): Use %ps.
2620 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2621 * printcmd.c (print_variable_and_value): Use %ps.
2622 * macrocmd.c (show_pp_source_pos): Use %ps.
2623 * infrun.c (print_exited_reason): Use ui_out::message.
2624 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2625 (describe_other_breakpoints): Use ui_out::message and new
2627 (say_where): Use new formats.
2628 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2631 2019-10-01 Pedro Alves <palves@redhat.com>
2632 Tom Tromey <tom@tromey.com>
2634 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2635 (test_gdb_formats): New function.
2636 (run_tests): Call it.
2637 (test_format_specifier): Update.
2638 * utils.h (fputs_filtered): Update comment.
2639 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2640 (fputs_styled_unfiltered): Declare.
2641 * utils.c (fputs_styled_unfiltered): New function.
2642 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2643 (vfprintf_filtered): Update.
2644 (vfprintf_unfiltered, vprintf_filtered): Update.
2645 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2646 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2647 disallow_ui_out_field>: New constants.
2648 (enum class field_kind): New.
2649 (struct base_field_s, struct signed_field_s): New.
2650 (signed_field): New function.
2651 (struct string_field_s): New.
2652 (string_field): New function.
2653 (struct styled_string_s): New.
2654 (styled_string): New function.
2655 (class ui_out) <message>: Add comment.
2656 <vmessage, call_do_message>: New methods.
2657 <do_message>: Add style parameter.
2658 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2660 (ui_out::message): Rewrite.
2661 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2663 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2664 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2665 gdb_extensions parameter.
2666 (class format_piece): Add parameter to constructor.
2667 (n_int_args): New field.
2668 * gdbsupport/format.c (format_pieces::format_pieces): Add
2669 gdb_extensions parameter. Handle '*'.
2670 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2671 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2672 vfprintf_styled_no_gdbfmt.
2673 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2674 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2676 * ui-style.h (struct ui_file_style) <ptr>: New method.
2678 2019-10-01 Tom Tromey <tom@tromey.com>
2680 * unittests/format_pieces-selftests.c: Update. Add final format.
2681 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2682 empty literal pieces.
2684 2019-10-01 Tom Tromey <tom@tromey.com>
2686 * ui-out.h (enum class ui_out_style_kind): Remove.
2687 (class ui_out) <field_string, field_stsream, do_field_string>:
2688 Change type of "style".
2689 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2690 (ui_out::field_string): Update.
2691 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2693 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2694 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2695 * stack.c (print_frame_arg, print_frame_info, print_frame):
2697 * source.c (print_source_lines_base): Update.
2698 * solib.c (info_sharedlibrary_command): Update.
2699 * skip.c (info_skip_command): Update.
2700 * record-btrace.c (btrace_call_history_src_line)
2701 (btrace_call_history): Update.
2702 * python/py-framefilter.c (py_print_frame): Update.
2703 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2705 * mi/mi-out.c (mi_ui_out::do_table_header)
2706 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2707 (mi_ui_out::do_field_string): Update.
2708 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2710 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2712 * cli-out.c (cli_ui_out::do_table_header)
2713 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2714 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2715 (cli_ui_out::do_field_fmt): Update.
2716 * breakpoint.c (print_breakpoint_location): Update.
2717 (update_static_tracepoint): Update.
2719 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2721 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2722 conversion of gdb_datadir.
2723 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2724 remove not needed c_str ().
2726 2019-09-30 Ali Tamur <tamur@google.com>
2728 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2729 (dwarf2_string_attr): Likewise.
2731 2019-09-30 Ali Tamur <tamur@google.com>
2733 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2734 (process_full_type_unit): Likewise.
2735 (dump_die_shallow): Likewise.
2736 (cu_debug_loc_section): Likewise.
2738 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2740 * minsyms.c (compare_minimal_symbols): Rename to...
2741 (minimal_symbol_is_less_than): ...this, and adjust to STL
2742 conventions (return bool, take arguments as references)
2743 (minimal_symbol_reader::install): Call std::sort instead
2746 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2748 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2750 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2751 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2753 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2755 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2756 * psympriv.h (add_psymbol_to_list): Move comment here and update
2759 2019-09-29 Tom de Vries <tdevries@suse.de>
2761 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2762 Use $tmpdir/$(basename "$output_file").dwz instead of
2763 "${output_file}.dwz".
2765 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2768 * hppa-linux-nat.c: Include gdbarch.h.
2770 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2772 * blockframe.c (find_pc_partial_function): Change return type to bool.
2773 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2774 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2775 (stub_gnu_ifunc_resolve_name): Likewise.
2776 * symtab.c (compare_filenames_for_search): Likewise.
2777 (compare_glob_filenames_for_search): Likewise.
2778 (matching_obj_sections): Likewise.
2779 (symbol_matches_domain): Likewise.
2780 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2781 (find_line_pc): Change return type to bool.
2782 (find_line_pc_range): Likewise.
2783 (producer_is_realview): Likewise.
2784 * symtab.h (symbol_matches_domain): Likewise.
2785 (find_pc_partial_function): Likewise.
2786 (find_pc_line_pc_range): Likewise.
2787 (in_gnu_ifunc_stub): Likewise.
2788 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2789 (find_line_pc): Likewise.
2790 (find_line_pc_range): Likewise.
2791 (matching_obj_sections): Likewise.
2792 (find_line_symtab): Change out parameter to bool.
2793 (producer_is_realview): Change return type to bool.
2794 (compare_filenames_for_search): Likewise.
2795 (compare_glob_filenames_for_search): Likewise.
2797 2019-09-26 Tom Tromey <tom@tromey.com>
2799 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2800 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2801 * gdb_usleep.h: Remove.
2802 * gdb_usleep.c: Remove.
2803 * utils.c: Don't include gdb_usleep.h.
2805 2019-09-26 Tom Tromey <tromey@adacore.com>
2807 * python/py-type.c (type_to_type_object): Call check_typedef
2810 2019-09-26 Tom Tromey <tom@tromey.com>
2812 * utils.h (initialize_utils): Don't declare.
2813 * top.c (gdb_init): Don't call initialize_utils.
2814 * utils.c (initialize_utils): Remove. Move contents...
2815 (_initialize_utils): ... here.
2817 2019-09-25 Tom Tromey <tom@tromey.com>
2819 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2820 * utils.h (make_hex_string): Don't declare.
2821 * utils.c (make_hex_string): Remove.
2823 2019-09-24 Tom de Vries <tdevries@suse.de>
2826 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2827 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2829 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2831 * NEWS: Mention new simulator port for PRU.
2833 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2835 * ada-exp.y (write_object_remaining): Update.
2836 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2837 and eliminate the static buffer.
2838 (ada_decode_symbol): Update.
2839 (ada_la_decode): Update.
2840 (ada_sniff_from_mangled_name): Update.
2841 (is_valid_name_for_wild_match): Update.
2842 (ada_lookup_name_info::matches): Update and simplify.
2843 (name_matches_regex): Update.
2844 (ada_add_global_exceptions): Update.
2845 * ada-lang.h (ada_decode): Update signature.
2846 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2847 * dwarf-index-write.c (debug_names::insert): Update.
2849 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2851 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2854 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2856 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2857 Change "nonzero" to "true" in documentation.
2859 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2861 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2862 (_initialize_darwin_solib): Don't set
2863 darwin_so_ops.lookup_lib_global_symbol.
2864 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2865 set_gdbarch_iterate_over_objfiles_in_search_order.
2866 (elf_lookup_lib_symbol): Rename to...
2867 (svr4_iterate_over_objfiles_in_search_order): this, and update
2868 to iterate semantics.
2869 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2870 * solib.c (solib_global_lookup): Remove.
2871 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2872 (solib_global_lookup): Remove.
2873 * symtab.c (lookup_global_or_static_symbol): Remove call to
2874 solib_global_lookup.
2876 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2878 * NEWS: Move entries about default MI version now being
2879 version 3, and about the GDB/MI fix for multi-location
2880 breakpoints to the "since GDB 8.3" section.
2882 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2886 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2888 * NEWS: Mention that Cell/B.E. debugging support was removed.
2889 * MAINTAINERS: Remove spu target.
2891 * config/djgpp/fnchange.lst: Remove entries for removed files.
2893 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2894 spu-multiarch.o, and spu-tdep.o.
2895 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2896 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2897 spu-multiarch.c, and spu-tdep.c.
2898 * spu-linux-nat.c: Remove file.
2899 * spu-multiarch.c: Remove file.
2900 * spu-tdep.c: Remove file.
2901 * spu-tdep.h: Remove file.
2902 * solib-spu.c: Remove file.
2903 * solib-spu.h: Remove file.
2905 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2906 * configure.nat (spu-linux): Remove.
2907 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2908 solib-multiarch.o from gdb_target_obs.
2911 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2913 (ppc_linux_no_features): Update.
2914 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2916 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2917 (tdesc_powerpc_cell64l): Likewise.
2918 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2919 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2921 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2922 Do not include "features/rs6000/powerpc-cell32l.c" or
2923 "features/rs6000/powerpc-cell64l.c".
2924 (ppc_linux_spu_section): Remove.
2925 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2926 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2927 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2928 (ppc_linux_spe_context_lookup): Remove.
2929 (ppc_linux_spe_context_inferior_created): Remove.
2930 (ppc_linux_spe_context_solib_loaded): Remove.
2931 (ppc_linux_spe_context_solib_unloaded): Remove.
2932 (ppc_linux_spe_context): Remove.
2933 (struct ppu2spu_cache): Remove.
2934 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2935 (struct ppu2spu_data): Remove.
2936 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2937 ppu2spu_unwind): Remove.
2938 (ppc_linux_init_abi): Remove Cell/B.E. support.
2939 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2941 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2942 (rs6000/powerpc-cell64l-expedite): Likewise
2943 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2944 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2945 rs6000/powerpc-cell64l.xml.
2946 * features/rs6000/powerpc-cell32l.xml: Remove.
2947 * features/rs6000/powerpc-cell64l.xml: Likewise.
2948 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2949 * features/rs6000/powerpc-cell64l.c: Likewise.
2950 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2951 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2952 * regformats/reg-spu.dat: Remove.
2954 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2955 * corelow.c (struct spuid_list): Remove.
2956 (add_to_spuid_list): Remove.
2957 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2958 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2959 (remote_protocol_features): Remove associated entries.
2960 (_initialize_remote): No longer initialize them.
2961 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2962 * linux-nat.c (SPUFS_MAGIC): Remove.
2963 (linux_proc_xfer_spu): Remove.
2964 (spu_enumerate_spu_ids): Remove.
2965 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2966 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2967 (linux_make_corefile_notes): No longer call it.
2969 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2970 (cooked_write_test): Likewise.
2972 2019-09-20 Tom Tromey <tom@tromey.com>
2974 * NEWS: Mention case-sensitivity of TUI commands.
2975 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2976 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2977 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2979 2019-09-20 Tom Tromey <tom@tromey.com>
2981 * tui/tui-source.c (tui_source_window::set_contents): Use
2982 make_unique_xstrdup.
2983 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2984 make_unique_xstrdup.
2986 2019-09-20 Tom Tromey <tom@tromey.com>
2988 * tui/tui-data.c: Remove separator comments.
2989 * tui/tui-layout.c: Remove separator comments.
2990 * tui/tui-win.c: Remove separator comments.
2991 * tui/tui-wingeneral.c: Remove separator comments.
2993 2019-09-20 Tom Tromey <tom@tromey.com>
2995 * tui/tui.h (strcat_to_buf): Don't declare.
2996 * tui/tui.c (strcat_to_buf): Remove.
2998 2019-09-20 Tom Tromey <tom@tromey.com>
3000 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3002 * tui/tui-source.c (tui_source_window::set_contents)
3003 (tui_source_window::location_matches_p)
3004 (tui_source_window::maybe_update): Update.
3006 2019-09-20 Tom Tromey <tom@tromey.com>
3008 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3010 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3012 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3013 (tui_data_window::line_from_reg_element_no)
3014 (tui_data_window::first_reg_element_no_inline)
3015 (tui_data_window::show_registers)
3016 (tui_data_window::show_register_group)
3017 (tui_data_window::display_registers_from)
3018 (tui_data_window::display_registers_from_line)
3019 (tui_data_window::first_data_item_displayed)
3020 (tui_data_window::delete_data_content_windows)
3021 (tui_data_window::erase_data_content)
3022 (tui_data_window::do_scroll_vertical)
3023 (tui_data_window::refresh_window)
3024 (tui_data_window::check_register_values): Update.
3026 2019-09-20 Tom Tromey <tom@tromey.com>
3028 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3029 (struct tui_locator_window) <full_name, proc_name>: Now
3031 * tui/tui-stack.c (tui_locator_window::make_status_line)
3032 (tui_locator_window::set_locator_fullname)
3033 (tui_locator_window::set_locator_info): Update.
3034 * tui/tui-source.c (tui_source_window::set_contents)
3035 (tui_source_window::showing_source_p): Update.
3037 2019-09-20 Tom Tromey <tom@tromey.com>
3039 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3040 Don't call tui_locator_win_info_ptr.
3042 2019-09-20 Tom Tromey <tom@tromey.com>
3044 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3046 2019-09-20 Tom Tromey <tom@tromey.com>
3048 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3050 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3051 * tui/tui-layout.c (show_source_disasm_command, show_data)
3052 (show_source_or_disasm_and_command): Use 1 as height for locator.
3054 2019-09-20 Tom Tromey <tom@tromey.com>
3056 * tui/tui.c (tui_enable): Update.
3057 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3059 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3061 * tui/tui-data.c (win_resized): Now bool.
3062 (tui_win_resized): Return bool.
3063 (tui_set_win_resized_to): Accept a bool.
3065 2019-09-20 Tom Tromey <tom@tromey.com>
3067 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3068 Change type of "refresh_values_only".
3069 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3070 type of "refresh_values_only".
3072 2019-09-20 Tom Tromey <tom@tromey.com>
3074 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3076 (tui_disassemble): Add "pos" parameter.
3077 (tui_disasm_window::set_contents): Simplify.
3079 2019-09-20 Tom Tromey <tom@tromey.com>
3081 * tui/tui-winsource.h (struct tui_source_window_base)
3082 <show_source_content>: Now private.
3083 * tui/tui-winsource.c
3084 (tui_source_window_base::show_source_content): Don't handle empty
3087 2019-09-20 Tom Tromey <tom@tromey.com>
3089 * tui/tui-layout.c (show_source_disasm_command)
3090 (show_source_or_disasm_and_command): Don't call
3091 show_source_content.
3093 2019-09-20 Tom Tromey <tom@tromey.com>
3095 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3097 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3098 from tui_make_status_line.
3099 (tui_locator_window::rerender): Update.
3101 2019-09-20 Tom Tromey <tom@tromey.com>
3103 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3104 (tui_locator_window::rerender): Update.
3106 2019-09-20 Tom Tromey <tom@tromey.com>
3108 * tui/tui-winsource.h (struct tui_source_window_base)
3109 <~tui_source_window_base>: Don't declare.
3111 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3112 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3114 * tui/tui-source.c (tui_source_window::set_contents): Update.
3115 (tui_source_window::location_matches_p)
3116 (tui_source_window::maybe_update): Update.
3118 2019-09-20 Tom Tromey <tom@tromey.com>
3120 * tui/tui-winsource.h (~tui_source_element): Remove.
3121 (tui_source_element): Update.
3122 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3123 * tui/tui-winsource.c (tui_show_source_line): Update.
3124 * tui/tui-source.c (tui_source_window::set_contents): Update.
3125 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3127 2019-09-20 Tom Tromey <tom@tromey.com>
3129 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3131 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3132 tui_clear_source_windows_detail.
3133 * tui/tui-winsource.h (struct tui_source_window_base)
3134 <clear_detail>: Don't declare.
3135 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3137 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3139 2019-09-20 Tom Tromey <tromey@adacore.com>
3142 * block.c (contained_in): Fix final return value.
3144 2019-09-20 Alan Modra <amodra@gmail.com>
3146 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3147 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3148 (read_indirect_string_from_dwz): Use bfd accessor.
3149 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3150 * machoread.c (macho_symfile_read_all_oso): Likewise.
3151 * solib.c (solib_bfd_open): Likewise.
3153 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3155 * eval.c: Move declaration of overload_resolution to...
3158 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3160 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3161 * arm-linux-tdep.c: Likewise.
3162 * arm-nbsd-nat.c: Likewise.
3163 * arm-tdep.h: Declare arm_apcs_32.
3164 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3166 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3168 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3169 * dwarf2read.h: Declare dwarf_always_disassemble.
3171 2019-09-19 Tom de Vries <tdevries@suse.de>
3174 * source-cache.c (source_cache::ensure): Catch exception thrown during
3175 construction of the highlighter.
3177 2019-09-18 Alan Modra <amodra@gmail.com>
3179 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3180 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3181 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3182 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3183 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3184 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3185 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3186 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3187 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3188 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3189 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3190 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3191 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3192 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3193 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3194 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3195 * mi/mi-interp.c: Update throughout for bfd section macro and
3197 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3198 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3200 2019-09-18 Tom Tromey <tom@tromey.com>
3203 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3205 (tui_enable): Do not call rl_initialize.
3207 2019-09-18 Christian Groessler <chris@groessler.org>
3209 * alpha-linux-nat.c: Include gdbarch.h.
3211 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3213 * ui-file.c: Include cli/cli-style.h.
3214 (term_cli_styling): Remove cli_styling declaration.
3216 2019-09-18 Alan Modra <amodra@gmail.com>
3218 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3219 to bfd_asymbol_section.
3221 2019-09-18 Alan Modra <amodra@gmail.com>
3223 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3224 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3225 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3227 2019-09-18 Alan Modra <amodra@gmail.com>
3229 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3230 * spu-linux-nat.c (spu_bfd_open): Likewise.
3232 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3234 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3235 to bool to match definition in dwarf2read.c.
3237 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3239 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3240 (print_signatures): Likewise.
3241 (trust_pad_over_xvs): Likewise.
3242 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3243 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3244 * arm-linux-nat.c (arm_apcs_32): Likewise.
3245 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3246 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3247 * arm-tdep.c (arm_debug): Likewise.
3248 (arm_apcs_32): Likewise.
3249 * auto-load.c (debug_auto_load): Likewise.
3250 (auto_load_gdb_scripts): Likewise.
3251 (global_auto_load): Likewise.
3252 (auto_load_local_gdbinit): Likewise.
3253 (auto_load_local_gdbinit_loaded): Likewise.
3254 * auto-load.h (global_auto_load): Likewise.
3255 (auto_load_local_gdbinit): Likewise.
3256 (auto_load_local_gdbinit_loaded): Likewise.
3257 * breakpoint.c (disconnected_dprintf): Likewise.
3258 (breakpoint_proceeded): Likewise.
3259 (automatic_hardware_breakpoints): Likewise.
3260 (always_inserted_mode): Likewise.
3261 (target_exact_watchpoints): Likewise.
3262 (_initialize_breakpoint): Update.
3263 * breakpoint.h (target_exact_watchpoints): Change to bool.
3264 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3265 * cli/cli-cmds.c (trace_commands): Likewise.
3266 * cli/cli-cmds.h (trace_commands): Likewise.
3267 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3269 * cli/cli-logging.c (logging_overwrite): Change to bool.
3270 (logging_redirect): Likewise.
3271 (debug_redirect): Likewise.
3272 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3273 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3275 <boolean_option_def>: Update.
3276 (struct flag_option_def): Change default type of Context to bool
3278 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3279 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3280 (get_setshow_command_value_string): Likewise.
3281 * cli/cli-style.c (cli_styling): Change to bool.
3282 (source_styling): Likewise.
3283 * cli/cli-style.h (source_styling): Likewise.
3284 (cli_styling): Likewise.
3285 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3287 * command.h (var_types): Update comment.
3288 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3289 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3291 (debug_compile_cplus_scopes): Likewise.
3292 * compile/compile-internal.h (compile_debug): Likewise.
3293 * compile/compile.c (compile_debug): Likewise.
3294 (struct compile_options) <raw>: Likewise.
3295 * cp-support.c (catch_demangler_crashes): Likewise.
3296 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3297 (usr_cmd_cris_dwarf2_cfi): Likewise.
3298 * csky-tdep.c (csky_debug): Likewise.
3299 * darwin-nat.c (enable_mach_exceptions): Likewise.
3300 * dcache.c (dcache_enabled_p): Likewise.
3301 * defs.h (info_verbose): Likewise.
3302 * demangle.c (demangle): Likewise.
3303 (asm_demangle): Likewise.
3304 * dwarf-index-cache.c (debug_index_cache): Likewise.
3305 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3306 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3307 * dwarf2read.c (check_physname): Likewise.
3308 (use_deprecated_index_sections): Likewise.
3309 (dwarf_always_disassemble): Likewise.
3310 * eval.c (overload_resolution): Likewise.
3311 * event-top.c (set_editing_cmd_var): Likewise.
3312 (exec_done_display_p): Likewise.
3313 * event-top.h (set_editing_cmd_var): Likewise.
3314 (exec_done_display_p): Likewise.
3315 * exec.c (write_files): Likewise.
3316 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3317 (debug_fbsd_nat): Likewise.
3318 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3320 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3321 <backtrace_past_entry> Likewise.
3322 * gdb-demangle.h (demangle): Likewise.
3323 (asm_demangle): Likewise.
3324 * gdb_bfd.c (bfd_sharing): Likewise.
3325 * gdbcore.h (write_files): Likewise.
3326 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3327 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3328 * gdbthread.h (print_thread_events): Likewise.
3329 * gdbtypes.c (opaque_type_resolution): Likewise.
3330 (strict_type_checking): Likewise.
3331 * gnu-nat.c (gnu_debug_flag): Likewise.
3332 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3333 * guile/scm-param.c (pascm_variable): Add boolval.
3334 (add_setshow_generic): Update.
3335 (pascm_param_value): Update.
3336 (pascm_set_param_value_x): Update.
3337 * hppa-tdep.c (hppa_debug): Change to bool..
3338 * infcall.c (may_call_functions_p): Likewise.
3339 (coerce_float_to_double_p): Likewise.
3340 (unwind_on_signal_p): Likewise.
3341 (unwind_on_terminating_exception_p): Likewise.
3342 * infcmd.c (startup_with_shell): Likewise.
3343 * inferior.c (print_inferior_events): Likewise.
3344 * inferior.h (startup_with_shell): Likewise.
3345 (print_inferior_events): Likewise.
3346 * infrun.c (step_stop_if_no_debug): Likewise.
3347 (detach_fork): Likewise.
3348 (debug_displaced): Likewise.
3349 (disable_randomization): Likewise.
3350 (non_stop): Likewise.
3351 (non_stop_1): Likewise.
3352 (observer_mode): Likewise.
3353 (observer_mode_1): Likewise.
3354 (set_observer_mode): Update.
3355 (sched_multi): Change to bool.
3356 * infrun.h (debug_displaced): Likewise.
3357 (sched_multi): Likewise.
3358 (step_stop_if_no_debug): Likewise.
3359 (non_stop): Likewise.
3360 (disable_randomization): Likewise.
3361 * linux-tdep.c (use_coredump_filter): Likewise.
3362 (dump_excluded_mappings): Likewise.
3363 * linux-thread-db.c (auto_load_thread_db): Likewise.
3364 (check_thread_db_on_load): Likewise.
3365 * main.c (captured_main_1): Update.
3366 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3367 xx2_opt, boolean_opt>: Change to bool.
3368 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3369 * maint.c (maintenance_profile_p): Likewise.
3370 (per_command_time): Likewise.
3371 (per_command_space): Likewise.
3372 (per_command_symtab): Likewise.
3373 * memattr.c (inaccessible_by_default): Likewise.
3374 * mi/mi-main.c (mi_async): Likewise.
3375 (mi_async_1): Likewise.
3376 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3377 * nat/fork-inferior.h (startup_with_shell): Likewise.
3378 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3379 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3380 * nios2-tdep.c (nios2_debug): Likewise.
3381 * or1k-tdep.c (or1k_debug): Likewise.
3382 * parse.c (parser_debug): Likewise.
3383 * parser-defs.h (parser_debug): Likewise.
3384 * printcmd.c (print_symbol_filename): Likewise.
3385 * proc-api.c (procfs_trace): Likewise.
3386 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3387 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3388 (set_parameter_value): Update.
3389 (add_setshow_generic): Update.
3390 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3392 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3394 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3395 * record-btrace.c (record_btrace_target::store_registers): Update.
3396 * record-full.c (record_full_memory_query): Change to bool.
3397 (record_full_stop_at_limit): Likewise.
3398 * record-full.h (record_full_memory_query): Likewise.
3399 * remote-notif.c (notif_debug): Likewise.
3400 * remote-notif.h (notif_debug): Likewise.
3401 * remote.c (use_range_stepping): Likewise.
3402 (interrupt_on_connect): Likewise.
3403 (remote_break): Likewise.
3404 * ser-tcp.c (tcp_auto_retry): Likewise.
3405 * ser-unix.c (serial_hwflow): Likewise.
3406 * skip.c (debug_skip): Likewise.
3407 * solib-aix.c (solib_aix_debug): Likewise.
3408 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3409 (spu_auto_flush_cache_p): Likewise.
3410 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3412 (struct info_print_options) <quiet>: Likewise.
3413 * symfile-debug.c (debug_symfile): Likewise.
3414 * symfile.c (auto_solib_add): Likewise.
3415 (separate_debug_file_debug): Likewise.
3416 * symfile.h (auto_solib_add): Likewise.
3417 (separate_debug_file_debug): Likewise.
3418 * symtab.c (basenames_may_differ): Likewise.
3419 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3420 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3421 (struct info_types_options) <quiet>: Likewise.
3422 * symtab.h (demangle): Likewise.
3423 (basenames_may_differ): Likewise.
3424 * target-dcache.c (stack_cache_enabled_1): Likewise.
3425 (code_cache_enabled_1): Likewise.
3426 * target.c (trust_readonly): Likewise.
3427 (may_write_registers): Likewise.
3428 (may_write_memory): Likewise.
3429 (may_insert_breakpoints): Likewise.
3430 (may_insert_tracepoints): Likewise.
3431 (may_insert_fast_tracepoints): Likewise.
3432 (may_stop): Likewise.
3433 (auto_connect_native_target): Likewise.
3434 (target_stop_and_wait): Update.
3435 (target_async_permitted): Change to bool.
3436 (target_async_permitted_1): Likewise.
3437 (may_write_registers_1): Likewise.
3438 (may_write_memory_1): Likewise.
3439 (may_insert_breakpoints_1): Likewise.
3440 (may_insert_tracepoints_1): Likewise.
3441 (may_insert_fast_tracepoints_1): Likewise.
3442 (may_stop_1): Likewise.
3443 * target.h (target_async_permitted): Likewise.
3444 (may_write_registers): Likewise.
3445 (may_write_memory): Likewise.
3446 (may_insert_breakpoints): Likewise.
3447 (may_insert_tracepoints): Likewise.
3448 (may_insert_fast_tracepoints): Likewise.
3449 (may_stop): Likewise.
3450 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3451 (make_thread_apply_all_options_def_group): Change argument from int*
3453 (thread_apply_all_command): Update.
3454 (print_thread_events): Change to bool.
3455 * top.c (confirm): Likewise.
3456 (command_editing_p): Likewise.
3457 (history_expansion_p): Likewise.
3458 (write_history_p): Likewise.
3459 (info_verbose): Likewise.
3460 * top.h (confirm): Likewise.
3461 (history_expansion_p): Likewise.
3462 * tracepoint.c (disconnected_tracing): Likewise.
3463 (circular_trace_buffer): Likewise.
3464 * typeprint.c (print_methods): Likewise.
3465 (print_typedefs): Likewise.
3466 * utils.c (debug_timestamp): Likewise.
3467 (sevenbit_strings): Likewise.
3468 (pagination_enabled): Likewise.
3469 * utils.h (sevenbit_strings): Likewise.
3470 (pagination_enabled): Likewise.
3471 * valops.c (overload_resolution): Likewise.
3472 * valprint.h (struct value_print_options) <prettyformat_arrays,
3473 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3474 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3475 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3477 * windows-nat.c (new_console): Likewise.
3478 (cygwin_exceptions): Likewise.
3479 (new_group): Likewise.
3480 (debug_exec): Likewise.
3481 (debug_events): Likewise.
3482 (debug_memory): Likewise.
3483 (debug_exceptions): Likewise.
3484 (useshell): Likewise.
3485 * windows-tdep.c (maint_display_all_tib): Likewise.
3486 * xml-support.c (debug_xml): Likewise.
3488 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3490 * source.c (prepare_path_for_appending): New function.
3491 (openp): Make use of new function.
3492 (find_and_open_source): Search for the compilation directory and
3493 source file as a relative path beneath the directory search path.
3495 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3497 * source-cache.c (source_cache::get_line_charpos): Catch
3498 exceptions and return false, this matches the behaviour documented
3501 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3503 * ada-tasks.c (info_task): Remove quoting of the task's name.
3505 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3507 * symfile.c (auto_solib_add): Replace comment with a reference
3510 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3512 * NEWS: Mention that gdb can now be compiled with Python 3
3515 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3517 * maint.c (maint_print_section_data::maint_print_section_data):
3518 Force use of 'float log10 (float)' by casting the argument to
3521 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3523 * maint.c: Add 'cmath' include.
3524 (struct maint_print_section_data): New structure.
3525 (print_section_index): New function.
3526 (print_bfd_section_info): Add header comment, small whitespace
3527 cleanup, and update to call new print_section_index function.
3528 (print_objfile_section_info): Likewise.
3529 (maint_obj_section_from_bfd_section): New function.
3530 (print_bfd_section_info_maybe_relocated): New function.
3531 (maintenance_info_sections): Add header comment, always use
3532 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3534 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3536 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3537 inner scope, add check that the objfile has psymtabs before
3538 checking psymtabs_addrmap.
3539 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3541 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3543 * NEWS: Announce that Ada task names are now shown at more places,
3544 and between quotes (except in info task output).
3545 * gdb/ada-tasks.c (task_to_str): New function.
3546 (display_current_task_id): Call task_to_str.
3547 (task_command_1): Likewise.
3548 (print_ada_task_info): In non-mi mode, Properly align headers and data
3549 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3551 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3553 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3554 prstatus.pr_lwp.pr_info instead of making it up.
3556 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3558 * auto-load.c (auto_load_expand_dir_vars): Update.
3559 * defs.h (gdb_datadir): Change to std::string.
3560 (python_libdir): Likewise.
3561 (relocate_gdb_directory): Change return type to std::string.
3562 * guile/guile.c (gdbscm_data_directory): Update.
3563 (initialize_scheme_side): Update.
3564 * jit.c (jit_reader_dir): Change to std::string.
3565 (jit_reader_load_command): Update.
3566 * main.c (gdb_datadir): Change to std::string.
3567 (python_libdir): Likewise.
3568 (set_gdb_data_directory): Update.
3569 (relocate_path): Change to return std::string.
3570 (relocate_gdb_directory): Change to return std::string.
3571 (relocate_gdbinit_path_maybe_in_datadir): Update.
3572 (captured_main_1): Update.
3573 * python/python.c (do_start_initialization): Update.
3574 * top.c (show_gdb_datadir): Update.
3575 * xml-syscall.c (xml_init_syscalls_info): Update.
3576 (init_syscalls_info): Update.
3578 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3580 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3581 out of get_init_files.
3582 (get_init_files): Update.
3584 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3586 * main.c (get_init_files): Change to use std::string.
3587 (captured_main_1): Update.
3588 (print_gdb_help): Update.
3590 2019-09-11 Ali Tamur <tamur@google.com>
3592 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3595 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3597 * dbxread.c (read_dbx_symtab): Update.
3598 * dwarf2read.c (load_partial_dies): Update.
3599 * mdebugread.c (parse_partial_symbols): Update.
3600 (handle_psymbol_enumerators): Update.
3601 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3602 * psymtab.c (add_psymbol_to_bcache): Likewise.
3603 (add_psymbol_to_list): Likewise.
3604 * symtab.c (symbol_set_names): Likewise.
3605 * symtab.h (symbol_set_names): Likewise.
3606 * xcoffread.c (scan_xcoff_symtab): Update.
3608 2019-09-11 Tom Tromey <tom@tromey.com>
3610 * symfile-mem.c (symbol_file_add_from_memory): Use
3612 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3613 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3615 2019-09-10 Tom Tromey <tromey@adacore.com>
3617 * dwarf-index-write.c (write_psymbols): Extend error message.
3618 (debug_names::insert): Add Ada code.
3619 (debug_names::write_psymbols): Remove Ada check.
3620 (debug_names) <m_string_obstack>: New member.
3621 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3622 (gdb_index_symbol_name_matcher::matches): Remove.
3623 (mapped_index_base::find_name_components_bounds): Add "lang"
3625 (mapped_index_base::build_name_components): Also split names
3626 according to Ada syntax.
3627 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3628 type of "match_callback".
3629 (check_match, check_find_bounds_finds)
3630 (dw2_expand_symtabs_matching): Update.
3631 (dw2_debug_names_iterator): Add new constructor.
3632 (dw2_debug_names_map_matching_symbols): New function.
3633 (dw2_debug_names_expand_symtabs_matching): Update.
3634 (dwarf2_debug_names_functions): Use
3635 dw2_debug_names_map_matching_symbols.
3637 2019-09-10 Tom Tromey <tromey@adacore.com>
3639 * dwarf2read.c (dw2_get_file_names_reader): Add the
3640 CU's file name to the results.
3642 2019-09-10 Tom Tromey <tromey@adacore.com>
3644 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3645 map_matching_symbols. Update.
3646 * dwarf2read.c (dw2_map_matching_symbols): Update.
3647 * psymtab.c (match_partial_symbol): Change type; update.
3648 (psym_map_matching_symbols): Likewise.
3649 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3651 * symfile.h (struct quick_symbol_functions)
3652 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3655 2019-09-10 Tom Tromey <tromey@adacore.com>
3657 * psymtab.c (map_block): Remove.
3658 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3659 * symtab.c (iterate_over_symbols_terminated): New function.
3660 * symtab.c (iterate_over_symbols_terminated): Declare.
3662 2019-09-10 Tom Tromey <tromey@adacore.com>
3664 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3665 * language.h (struct language_defn) <la_iterate_over_symbols>:
3667 * symtab.c (iterate_over_symbols): Return bool.
3668 * symtab.h (iterate_over_symbols): Return bool.
3670 2019-09-10 Tom Tromey <tromey@adacore.com>
3672 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3673 (add_nonlocal_symbols): Update.
3674 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3675 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3676 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3677 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3678 Change type of "callback". Remove "data".
3681 2019-09-09 Ali Tamur <tamur@google.com>
3683 * dwarf2read.c (comp_unit_head): Update comment.
3684 (dwarf2_dwo_name): New function declaration.
3685 (dwarf_unit_type_name): New function declaration.
3686 (read_comp_unit_head): Add support for new compilation units,
3687 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3688 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3689 (currently named as "signature") in their header. Also clarify error
3691 (lookup_dwo_id): New function. Returns the dwo id of the given
3693 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3694 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3696 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3697 (dwarf2_dwo_name): Get the dwo name if present.
3698 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3701 2019-09-09 Tom Tromey <tom@tromey.com>
3703 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3705 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3707 * python/python.c (do_start_initialization): Make progname_copy static,
3708 to avoid a leak report.
3710 2019-09-08 Tom Tromey <tom@tromey.com>
3712 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3714 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3716 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3717 Change type to gdb::optional<block_enum>.
3718 (dw2_symtab_iter_init): Change block_index parameter type
3719 to gdb::optional<block_enum>.
3720 (dw2_lookup_symbol): Change block_index parameter
3721 type to block_enum.c
3722 (dw2_debug_names_lookup_symbol): Likewise.
3723 * psymtab.c (psym_lookup_symbol): Likewise.
3724 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3725 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3728 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3730 * defs.h (relocate_gdb_directory): Change int to bool in
3731 signature and rename flag to relocatable.
3732 * main.c (relocate_path): Likewise.
3733 (relocate_gdb_directory): Likewise.
3735 2019-09-06 Alan Modra <amodra@gmail.com>
3737 * coffread.c (coff_symfile_read): Constify filename variable.
3738 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3739 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3740 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3741 * solib.c (reload_shared_libraries_1): Likewise.
3742 * symfile.c (reread_symbols): Likewise.
3743 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3744 * solib-darwin.c (darwin_bfd_open): Likewise.
3745 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3747 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3749 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3750 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3752 2019-09-03 Tom Tromey <tromey@adacore.com>
3754 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3756 (has_negatives): Unbias a range type bound.
3757 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3758 * gdbtypes.c (operator==): Handle new field.
3759 (create_range_type): Add "bias" parameter.
3760 (create_static_range_type, resolve_dynamic_range): Update.
3761 * gdbtypes.h (struct range_bounds) <bias>: New member.
3762 (create_range_type): Add bias parameter.
3763 * printcmd.c (print_scalar_formatted): Unbias range types.
3764 * value.c (unpack_long): Unbias range types.
3765 (pack_long): Bias range types.
3767 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3769 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3772 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3774 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3775 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3776 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3777 (compile_probe_arg): Likewise.
3778 * probe.h (get_argument_count): Likewise.
3779 * solib-svr4.c (solib_event_probe_action): Likewise.
3780 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3782 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3784 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3786 (svr4_create_solib_event_breakpoints): ...from here.
3788 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3790 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3791 suffix from warning message.
3793 2019-08-30 Tom Tromey <tom@tromey.com>
3795 * tui/tui-winsource.h (struct tui_source_window_base)
3796 <refresh_all>: Don't declare.
3797 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3799 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3800 tui_show_locator_content.
3801 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3803 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3804 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3807 2019-08-30 Tom Tromey <tom@tromey.com>
3809 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3811 2019-08-30 Tom Tromey <tom@tromey.com>
3813 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3814 Remove unnecessary forward declarations.
3816 2019-08-30 Tom Tromey <tom@tromey.com>
3818 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3820 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3821 tui_show_locator_content.
3823 2019-08-30 Tom Tromey <tom@tromey.com>
3825 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3826 (tui_locator_window::rerender): Rewrite using body of previous
3827 tui_show_locator_content.
3829 2019-08-30 Tom Tromey <tom@tromey.com>
3831 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3832 set_locator_fullname>: New methods.
3833 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3834 Rename from tui_set_locator_fullname.
3835 (tui_locator_window::set_locator_info): Rename from
3836 tui_set_locator_info. Return bool.
3837 (tui_update_locator_fullname, tui_show_frame_info): Update.
3839 2019-08-30 Tom Tromey <tom@tromey.com>
3841 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3843 2019-08-30 Tom Tromey <tom@tromey.com>
3845 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3848 2019-08-30 Tom Tromey <tom@tromey.com>
3850 * tui/tui-wingeneral.c (box_win): Assume win_info and
3851 win_info->handle cannot be NULL.
3853 2019-08-30 Tom Tromey <tom@tromey.com>
3855 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3856 refresh_window>: Declare.
3857 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3859 (tui_data_item_window::rerender): Rename from
3860 tui_display_register.
3861 (tui_data_item_window::refresh_window): New method.
3862 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3865 2019-08-30 Tom Tromey <tom@tromey.com>
3867 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3868 regs_column_count, current_group>: Move later. Now private.
3869 <get_current_group>: New method.
3870 * tui/tui-regs.c (tui_reg_command): Update.
3871 * tui/tui-layout.c (tui_set_layout): Update.
3873 2019-08-30 Tom Tromey <tom@tromey.com>
3875 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3876 (tui_data_window::rerender): Don't call
3877 check_and_display_highlight_if_needed.
3878 (tui_data_window::refresh_all): Remove call to
3881 2019-08-30 Tom Tromey <tom@tromey.com>
3883 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3884 (tui_data_window::display_registers_from)
3885 (tui_data_window::display_reg_element_at_line)
3886 (tui_data_window::display_registers_from_line): Remove checks of
3889 2019-08-30 Tom Tromey <tom@tromey.com>
3891 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3893 * tui/tui-regs.c (tui_data_window::show_registers): Call
3895 (tui_data_window::rerender): Rename from display_all_data.
3896 (tui_data_window::rerender): Remove old implementation.
3898 2019-08-30 Tom Tromey <tom@tromey.com>
3900 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3902 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3904 2019-08-29 Bernhard Wodok <barto@gmx.net>
3905 Sergio Durigan Junior <sergiodj@redhat.com>
3908 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3910 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3912 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3913 when searching for types.
3915 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3917 * f-lang.c (f_language_defn): Use f_print_typedef.
3918 * f-lang.h (f_print_typedef): Declare.
3919 * f-typeprint.c (f_print_typedef): Define.
3921 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3923 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3925 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3927 * cli/cli-utils.c (info_print_options_defs): Delete.
3928 (make_info_print_options_def_group): Delete.
3929 (extract_info_print_options): Delete.
3930 (info_print_command_completer): Delete.
3931 (info_print_args_help): Add extra parameter, and optionally
3932 include text about -n flag.
3933 * cli/cli-utils.h (struct info_print_options): Delete.
3934 (extract_info_print_options): Delete declaration.
3935 (info_print_command_completer): Delete declaration.
3936 (info_print_args_help): Add extra parameter, extend header
3938 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3940 * stack.c (struct info_print_options): New type.
3941 (info_print_options_defs): New file scoped variable.
3942 (make_info_print_options_def_group): New static function.
3943 (info_print_command_completer): New static function.
3944 (info_locals_command): Update to use new local functions.
3945 (info_args_command): Likewise.
3946 (_initialize_stack): Add extra parameter to calls to
3947 info_print_args_help.
3948 * symtab.c (search_symbols): Add extra parameter, use this to
3949 possibly excluse non-debug symbols.
3950 (symtab_symbol_info): Add extra parameter, which is passed on to
3952 (struct info_print_options): New type.
3953 (info_print_options_defs): New file scoped variable.
3954 (make_info_print_options_def_group): New static function.
3955 (info_print_command_completer): New static function.
3956 (info_variables_command): Update to use local functions, and pass
3957 extra parameter through to symtab_symbol_info.
3958 (info_functions_command): Likewise.
3959 (info_types_command): Pass additional argument through to
3961 (rbreak_command): Pass extra argument to search_symbols.
3962 (_initialize_symtab): Add extra arguments for calls to
3963 info_print_args_help, and update help text for 'info variables',
3964 'whereis', and 'info functions' commands.
3965 * symtab.h (search_symbols): Add extra argument to declaration.
3966 * NEWS: Mention new flags.
3968 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3970 * symtab.c (lookup_static_symbol): Call the new function (and move
3971 it down to be next to lookup_global_symbol).
3972 (struct global_sym_lookup_data): Add block_enum member and rename to...
3973 (struct global_or_static_sym_lookup_data): ...this.
3974 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3975 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3976 (lookup_symbol_global_or_static_iterator_cb): ...this.
3977 (lookup_global_or_static_symbol): New function.
3978 (lookup_global_symbol): Call new function.
3980 2019-08-26 Tom de Vries <tdevries@suse.de>
3983 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3984 when pc_probe.prob == NULL.
3986 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3988 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3989 variable symbol_linkage to symbol_linkage_.
3991 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3993 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3994 represent whether the symbol is static, dynamic, or we don't
3997 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3999 * gdb/rx-tdep.c (rx_register_names): New.
4000 (rx_register_name): Delete.
4001 (rx_psw_type): Delete.
4002 (rx_fpsw_type): Delete.
4003 (rx_register_type): Delete.
4004 (rx_gdbarch_init): Convert target-descriptions.
4005 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4006 * gdb/features/Makefile: Add rx.xml.
4007 * gdb/features/rx.xml: New.
4008 * gdb/features/rx.c: Generated.
4009 * gdb/NEWS: Mention target description support.
4011 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4013 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4016 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4018 * configure.ac: Don't check for 'dlfcn.h' (moved to
4019 gdbsupport/common.m4).
4020 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4022 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4023 * compile/compile-c-support.c: Include
4024 'gdbsupport/gdb-dlfcn.h'.
4025 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4026 * gdb-dlfcn.c: Move to...
4027 * gdbsupport/gdb-dlfcn.c: ... here.
4028 * gdb-dlfcn.h: Move to...
4029 * gdbsupport/gdb-dlfcn.h: ... here.
4031 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4033 * nios2-tdep.c (struct reg_value): Improve comments. Make
4034 the offset field signed.
4036 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4038 * python/lib/gdb/__init__.py (_execute_file): New function.
4039 * python/python.c (python_run_simple_file): Call gdb._execute_file
4042 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4044 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4045 all uses as this was never set to anything but a zero value.
4047 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4049 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4051 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4053 * tui/tui-data.h (tui_gen_win_info): Add an =default
4054 move constructor, required by some GCC versions.
4056 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4058 * go32-nat.c (go32_sysinfo): Add hygon_p.
4060 2019-08-20 Tom Tromey <tom@tromey.com>
4062 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4063 line_from_reg_element_no, first_reg_element_no_inline,
4064 display_all_data, delete_data_content_windows,
4065 erase_data_content>: Now private.
4067 2019-08-20 Tom Tromey <tom@tromey.com>
4069 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4070 (tui_unhighlight_win, tui_highlight_win)
4071 (tui_win_info::make_window): Update.
4072 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4074 2019-08-20 Tom Tromey <tom@tromey.com>
4076 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4077 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4078 (MAX_PID_WIDTH): Move to tui-stack.c.
4079 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4080 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4081 (MAX_PID_WIDTH): Move from tui-data.h.
4083 2019-08-20 Tom Tromey <tom@tromey.com>
4085 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4086 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4088 (tui_gen_win_info::make_window): Rename from tui_make_window.
4089 (tui_win_info::make_window): New method.
4090 (tui_gen_win_info::make_visible): Update.
4091 * tui/tui-source.c (tui_source_window::set_contents): Update.
4092 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4093 (tui_data_window::display_registers_from): Update.
4094 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4095 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4099 (struct tui_win_info) <make_window>: Declare.
4100 <can_box>: Now virtual.
4101 <title>: New member.
4102 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4103 * tui/tui-command.c (tui_cmd_window::resize): Update.
4105 2019-08-20 Tom Tromey <tom@tromey.com>
4107 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4108 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4109 (tui_data_window::check_register_values): Update.
4111 2019-08-20 Tom Tromey <tom@tromey.com>
4113 * tui/tui-regs.h (struct tui_data_window): Use
4114 DISABLE_COPY_AND_ASSIGN.
4115 <regs_content>: Change type, removing unique_ptr.
4116 <tui_data_window>: Add move constructor.
4117 * tui/tui-regs.c (tui_data_window::show_registers)
4118 (tui_data_window::show_register_group)
4119 (tui_data_window::display_registers_from)
4120 (tui_data_window::display_registers_from)
4121 (tui_data_window::first_data_item_displayed)
4122 (tui_data_window::delete_data_content_windows)
4123 (tui_data_window::rerender, tui_data_window::refresh_window)
4124 (tui_data_window::check_register_values): Update.
4126 2019-08-20 Tom Tromey <tom@tromey.com>
4128 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4129 show_register_group>: Declare.
4130 (tui_show_register_group): Don't declare.
4131 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4133 (tui_data_window::show_register_group): Rename from
4134 tui_show_register_group.
4135 (tui_data_window::check_register_values, tui_reg_command):
4137 * tui/tui-layout.c (tui_set_layout): Update.
4139 2019-08-20 Tom Tromey <tom@tromey.com>
4141 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4143 (tui_check_register_values): Don't declare.
4144 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4145 from tui_check_register_values.
4146 * tui/tui-hooks.c (tui_register_changed): Update.
4148 2019-08-20 Tom Tromey <tom@tromey.com>
4150 * tui/tui-regs.c (tui_reg_layout): Move later.
4151 (tui_show_registers): Don't enable TUI mode or change layout.
4153 2019-08-20 Tom Tromey <tom@tromey.com>
4155 * tui/tui-regs.h (struct tui_data_item_window)
4156 <~tui_data_item_window>: Remove.
4157 <content>: Now a unique_xmalloc_ptr.
4158 * tui/tui-regs.c (tui_register_format): Return a
4160 (tui_get_register): Update.
4161 (~tui_data_item_window): Remove.
4162 (tui_data_window::display_registers_from, tui_display_register):
4164 * tui/tui-io.h (tui_expand_tabs): Update.
4165 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4166 Remove "col" parameter.
4168 2019-08-20 Tom Tromey <tom@tromey.com>
4170 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4172 * tui/tui-regs.c (~tui_data_item_window): Update.
4174 2019-08-20 Tom Tromey <tom@tromey.com>
4176 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4179 2019-08-20 Tom Tromey <tom@tromey.com>
4181 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4183 2019-08-20 Tom Tromey <tom@tromey.com>
4185 * tui/tui-source.h (struct tui_source_window): Update.
4186 * tui/tui-regs.c (tui_show_registers): Update.
4187 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4188 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4189 (NO_REGS_STRING): Remove defines.
4191 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4193 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4194 unnecessary thread walk if remote doesn't support the packet.
4196 2019-08-19 Tom Tromey <tromey@adacore.com>
4198 * python/py-value.c (value_has_field): Fix indentation.
4200 2019-08-19 Tom Tromey <tromey@adacore.com>
4202 * printcmd.c (do_one_display, info_display_command): Update.
4203 * block.h (contained_in): Return bool. Add allow_nested
4205 * block.c (contained_in): Return bool. Add allow_nested
4208 2019-08-19 Tom Tromey <tom@tromey.com>
4210 * configure: Rebuild.
4211 * configure.ac: Disallow the combination of -static-libstdc++ and
4213 * source-cache.c (get_language_name): Handle rust.
4214 (source_cache::get_source_lines): Ignore highlighting exceptions.
4216 2019-08-16 Tom Tromey <tom@tromey.com>
4218 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4219 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4220 (struct tui_source_window_base) <make_visible, refresh_window,
4221 resize>: Remove methods.
4222 <execution_info>: Remove field.
4223 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4224 (tui_show_source_line, tui_source_window_base)
4225 (~tui_source_window_base): Update.
4226 (tui_source_window_base::resize)
4227 (tui_source_window_base::make_visible)
4228 (tui_source_window_base::refresh_window): Remove.
4229 (tui_source_window_base::update_exec_info): Update.
4230 * tui/tui-source.c (tui_source_window::set_contents): Update.
4231 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4233 2019-08-16 Tom Tromey <tom@tromey.com>
4235 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4236 deprecated_query_hook.
4238 2019-08-16 Tom Tromey <tom@tromey.com>
4240 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4241 (tui_update_source_windows_with_line): Update.
4242 * tui/tui-source.h (struct tui_source_window)
4243 <show_symtab_source>: Declare.
4244 (tui_show_symtab_source): Don't declare.
4245 * tui/tui-source.c (tui_show_symtab_source): Rename from
4246 tui_show_symtab_source.
4248 2019-08-16 Tom Tromey <tom@tromey.com>
4250 * tui/tui-winsource.h (struct tui_source_window_base)
4251 <set_contents>: Declare.
4252 * tui/tui-winsource.c
4253 (tui_source_window_base::update_source_window_as_is): Update.
4254 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4256 (tui_set_source_content): Don't declare.
4257 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4258 tui_set_source_content.
4259 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4261 (tui_set_disassem_content): Don't declare.
4262 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4263 tui_set_disassem_content.
4265 2019-08-16 Tom Tromey <tom@tromey.com>
4267 * tui/tui-winsource.h (struct tui_source_window_base)
4268 <update_breakpoint_info>: Declare.
4269 (tui_update_breakpoint_info): Don't declare.
4270 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4271 (tui_update_all_breakpoint_info): Update.
4272 (tui_source_window_base::update_breakpoint_info): Rename from
4273 tui_update_breakpoint_info.
4274 (tui_source_window_base::update_exec_info): Update.
4276 2019-08-16 Tom Tromey <tom@tromey.com>
4278 * tui/tui-winsource.h (struct tui_source_window_base)
4279 <update_source_window>: Declare.
4280 (tui_update_source_window): Don't declare.
4281 * tui/tui-winsource.c
4282 (tui_source_window_base::update_source_window): Rename from
4283 tui_update_source_window.
4284 (tui_source_window_base::rerender): Update.
4285 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4286 * tui/tui-disasm.c (tui_show_disassem)
4287 (tui_show_disassem_and_update_source)
4288 (tui_disasm_window::maybe_update): Update.
4290 2019-08-16 Tom Tromey <tom@tromey.com>
4292 * tui/tui-winsource.h (struct tui_source_window_base)
4293 <update_source_window_as_is>: Declare.
4294 (tui_update_source_window_as_is): Don't declare.
4295 * tui/tui-winsource.c (tui_update_source_window): Update
4296 (tui_source_window_base::update_source_window_as_is): Rename from
4297 tui_update_source_window_as_is.
4298 (tui_source_window_base::refill): Update.
4299 * tui/tui-source.c (tui_show_symtab_source): Update.
4300 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4303 2019-08-16 Tom Tromey <tom@tromey.com>
4305 * tui/tui-winsource.h (tui_update_source_window)
4306 (tui_update_source_window_as_is): Remove "noerror" parameter.
4307 * tui/tui-winsource.c (tui_update_source_window)
4308 (tui_update_source_window_as_is): Remove "noerror" parameter.
4309 (tui_update_source_windows_with_addr)
4310 (tui_update_source_windows_with_line)
4311 (tui_source_window_base::rerender)
4312 (tui_source_window_base::refill): Update.
4313 * tui/tui-source.h (tui_set_source_content)
4314 (tui_show_symtab_source): Remove "noerror" parameter.
4315 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4317 (tui_show_symtab_source): Likewise.
4318 (tui_source_window::maybe_update): Update.
4319 * tui/tui-disasm.c (tui_show_disassem)
4320 (tui_show_disassem_and_update_source)
4321 (tui_disasm_window::do_scroll_vertical)
4322 (tui_disasm_window::maybe_update): Update.
4324 2019-08-16 Tom Tromey <tom@tromey.com>
4326 * tui/tui.c (tui_is_window_visible): Update.
4327 * tui/tui-wingeneral.c (tui_make_window)
4328 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4329 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4330 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4331 (tui_set_win_height_command, parse_scrolling_args): Update.
4332 * tui/tui-source.c (tui_source_window::style_changed): Update.
4333 * tui/tui-regs.c (tui_show_registers)
4334 (tui_data_window::first_data_item_displayed)
4335 (tui_data_window::delete_data_content_windows)
4336 (tui_check_register_values, tui_reg_command): Update.
4337 * tui/tui-disasm.c (tui_show_disassem): Update.
4338 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4340 <is_visible>: Remove field.
4341 * tui/tui-data.c (tui_next_win, tui_prev_win)
4342 (tui_delete_invisible_windows): Update.
4344 2019-08-16 Tom Tromey <tom@tromey.com>
4346 * tui/tui-winsource.h (struct tui_source_window_base)
4347 <m_has_locator>: Remove.
4348 * tui/tui-layout.c (show_source_disasm_command, show_data)
4349 (show_source_or_disasm_and_command): Update.
4351 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4353 * NEWS (Other MI changes): New subsection.
4354 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4355 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4356 * arch-utils.c (default_get_pc_address_flags): New function.
4357 * arch-utils.h (default_get_pc_address_flags): New declaration.
4358 * gdbarch.sh: Add get_pc_address_flags.
4359 * gdbarch.c: Regenerate.
4360 * gdbarch.h: Likewise.
4361 * stack.c (print_pc): New function.
4362 (print_frame_info) (print_frame): Call print_pc.
4364 2019-08-16 Tom de Vries <tdevries@suse.de>
4366 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4367 print_objfile_section_info.
4369 2019-08-15 Tom Tromey <tom@tromey.com>
4371 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4372 calling update_cmdwin_start_line.
4373 * tui/tui-winsource.h (struct tui_source_window_base)
4374 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4375 <rerender>: Declare.
4376 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4378 (tui_source_window_base::set_new_height): Remove.
4379 (tui_source_window_base::rerender): Rename from
4380 do_make_visible_with_new_height.
4381 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4383 (tui_win_info::make_invisible_and_set_new_height)
4384 (tui_win_info::make_visible_with_new_height): Remove.
4385 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4387 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4388 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4389 do_make_visible_with_new_height>: Don't declare.
4390 <rerender>: Declare.
4391 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4393 (tui_data_window::do_make_visible_with_new_height): Remove.
4394 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4395 call tui_show_locator_content.
4396 (tui_gen_win_info::resize): Call rerender.
4397 (show_source_or_disasm_and_command): Don't call
4398 tui_show_locator_content.
4399 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4401 (struct tui_win_info) <rerender>: Declare.
4402 <set_new_height, make_invisible_and_set_new_height,
4403 make_visible_with_new_height>: Don't declare.
4404 * tui/tui-data.c (tui_win_list::rerender): New method.
4405 * tui/tui-command.h (struct tui_cmd_window)
4406 <do_make_visible_with_new_height>: Don't declare.
4408 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4410 2019-08-15 Tom Tromey <tromey@adacore.com>
4412 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4413 * ada-lang.c (ada_enum_name): Likewise.
4415 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4417 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4419 (GdbOutputErrorFile): Likewise.
4420 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4422 (execute_unwinders): Rename to have a leading underscore.
4423 (auto_load_packages): Likewise.
4424 (global scope): Adjust call to auto_load_packages accordingly.
4425 (GdbSetPythonDirectory): Likewise.
4426 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4427 instead of execute_unwinders.
4429 2019-08-15 Tom Tromey <tom@tromey.com>
4431 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4432 (show_data): Don't change window visibility.
4433 (tui_gen_win_info::resize): Remove special case for command
4434 window. Use wresize, when available.
4435 (show_source_or_disasm_and_command): Don't change window
4437 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4438 <make_visible>: New method.
4439 * tui/tui-command.c (tui_cmd_window::resize): New method.
4441 2019-08-15 Tom Tromey <tom@tromey.com>
4443 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4444 (struct tui_source_windows): New.
4445 * tui/tui-winsource.c (tui_display_main): Update.
4446 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4447 (new_height_ok, parse_scrolling_args): Update.
4448 * tui/tui-layout.c (show_layout, show_data): Update.
4449 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4450 (tui_add_to_source_windows): Don't declare.
4451 * tui/tui-data.c (source_windows, tui_source_windows)
4452 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4454 2019-08-15 Tom Tromey <tom@tromey.com>
4456 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4458 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4459 * tui/tui-layout.c (show_source_disasm_command, show_data):
4461 (tui_gen_win_info::resize): Rename.
4462 (show_source_or_disasm_and_command): Update.
4463 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4466 2019-08-15 Tom Tromey <tom@tromey.com>
4468 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4469 * tui/tui-interp.c (tui_interp::init): Don't call
4470 tui_initialize_static_data.
4471 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4473 2019-08-15 Tom Tromey <tom@tromey.com>
4475 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4476 examine tui_win_list.
4478 2019-08-15 Tom Tromey <tom@tromey.com>
4480 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4481 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4482 tui_clear_source_content.
4483 (tui_clear_source_content): Remove.
4484 (tui_source_window_base::do_erase_source_content): Hoist call to
4486 * tui/tui-stack.c (tui_show_frame_info): Don't call
4487 tui_clear_source_content.
4489 2019-08-15 Tom Tromey <tom@tromey.com>
4491 * tui/tui-winsource.h (struct tui_source_window_base)
4492 <do_erase_source_content>: New method.
4493 <erase_source_content>: New method.
4494 (tui_erase_source_content): Don't declare.
4495 * tui/tui-winsource.c (tui_clear_source_content): Update.
4496 (tui_source_window_base::do_erase_source_content): Rename from
4497 tui_erase_source_content.
4498 (tui_source_window_base::show_source_content): Update.
4499 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4500 * tui/tui-source.h (struct tui_source_window)
4501 <erase_source_content>: New method.
4502 * tui/tui-disasm.h (struct tui_disasm_window)
4503 <erase_source_content>: New method.
4505 2019-08-15 Tom Tromey <tom@tromey.com>
4507 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4508 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4510 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4511 * tui/tui-source.c (tui_set_source_content): Update.
4512 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4514 2019-08-15 Tom Tromey <tom@tromey.com>
4516 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4517 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4519 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4521 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4523 (tui_source_window::maybe_update): Update.
4525 2019-08-15 Tom Tromey <tom@tromey.com>
4527 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4528 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4530 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4532 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4534 (tui_disasm_window::maybe_update): Update.
4536 2019-08-15 Tom Tromey <tom@tromey.com>
4538 * tui/tui-winsource.h (struct tui_source_window_base)
4539 <maybe_update>: Declare.
4540 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4542 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4544 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4545 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4547 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4549 2019-08-15 Tom Tromey <tom@tromey.com>
4551 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4553 2019-08-15 Tom Tromey <tom@tromey.com>
4555 * tui/tui-wingeneral.c: Include tui-stack.h.
4556 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4557 (struct tui_locator_window): Move from tui-data.h.
4558 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4559 (tui_initialize_static_data): Move from tui-data.c.
4560 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4561 (struct tui_locator_window): Move to tui-stack.c.
4562 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4563 (tui_initialize_static_data): Move to tui-stack.c.
4565 2019-08-15 Tom Tromey <tom@tromey.com>
4567 * tui/tui-layout.c (show_source_disasm_command)
4568 (show_source_or_disasm_and_command): Use make_visible method, not
4570 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4573 2019-08-15 Tom Tromey <tom@tromey.com>
4575 * tui/tui-wingeneral.h (tui_make_window): Update.
4576 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4578 (tui_gen_win_info::make_visible): Update.
4579 * tui/tui-regs.c (tui_data_window::display_registers_from):
4581 * tui/tui-layout.c (show_source_disasm_command)
4582 (show_source_or_disasm_and_command): Update.
4583 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4584 (enum tui_box): Remove.
4585 (struct tui_win_info) <can_box>: New method.
4586 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4589 2019-08-15 Tom de Vries <tdevries@suse.de>
4591 * linux-nat-trad.c: Include gdbarch.h.
4593 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4595 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4598 2019-08-14 Tom Tromey <tromey@adacore.com>
4600 * darwin-nat.c: Include gdbarch.h.
4601 * darwin-nat-info.c: Include gdbarch.h.
4603 2019-08-13 Tom Tromey <tom@tromey.com>
4605 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4607 * tui/tui-data.c (tui_initialize_static_data): Update.
4609 2019-08-13 Tom Tromey <tom@tromey.com>
4611 * tui/tui-winsource.h (struct tui_exec_info_window)
4612 <~tui_exec_info_window, maybe_allocate_content, get_content,
4614 (struct tui_source_window_base) <set_exec_info_content,
4615 show_exec_info_content>: Don't declare.
4616 * tui/tui-winsource.c
4617 (tui_exec_info_window::maybe_allocate_content): Remove.
4618 (tui_source_window_base::update_exec_info): Rename from
4619 set_exec_info_content.
4620 (tui_source_window_base::show_exec_info_content)
4621 (tui_source_window_base::update_exec_info): Remove.
4623 2019-08-13 Tom Tromey <tom@tromey.com>
4625 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4627 * tui/tui-winsource.c (tui_update_source_window_as_is)
4628 (tui_update_source_windows_with_addr, tui_erase_source_content):
4630 (tui_clear_exec_info_content): Remove.
4632 2019-08-13 Tom Tromey <tom@tromey.com>
4634 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4636 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4637 call tui_erase_exec_info_content.
4638 (tui_clear_exec_info_content): Rename from
4639 tui_erase_exec_info_content.
4640 (tui_clear_exec_info_content): Delete.
4642 2019-08-13 Tom Tromey <tom@tromey.com>
4644 * tui/tui-winsource.h (struct tui_source_window_base)
4645 <show_exec_info_content>: Declare.
4646 (tui_show_exec_info_content): Don't declare.
4647 * tui/tui-winsource.c
4648 (tui_source_window_base::show_exec_info_content): Rename from
4649 tui_show_exec_info_content.
4650 (tui_source_window_base::update_exec_info): Update.
4652 2019-08-13 Tom Tromey <tom@tromey.com>
4654 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4655 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4656 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4657 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4658 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4659 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4662 2019-08-13 Tom Tromey <tom@tromey.com>
4664 * tui/tui-winsource.h (struct tui_source_window_base)
4665 <update_exec_info>: Declare.
4666 (tui_update_exec_info): Don't declare.
4667 * tui/tui-winsource.c (tui_update_source_window_as_is)
4668 (tui_source_window_base::refresh_all)
4669 (tui_update_all_breakpoint_info): Update.
4670 (tui_source_window_base::update_exec_info): Rename from
4671 tui_update_exec_info.
4672 * tui/tui-stack.c (tui_show_frame_info): Update.
4674 2019-08-13 Tom Tromey <tom@tromey.com>
4676 * tui/tui-winsource.h (struct tui_source_window_base)
4677 <set_exec_info_content>: Declare.
4678 (tui_set_exec_info_content): Don't declare.
4679 * tui/tui-winsource.c
4680 (tui_source_window_base::set_exec_info_content): Rename from
4681 tui_set_exec_info_content.
4682 (tui_update_exec_info): Update.
4684 2019-08-13 Tom Tromey <tom@tromey.com>
4686 * tui/tui-winsource.h (struct tui_source_window_base)
4687 <show_source_content>: Declare.
4688 (tui_show_source_content): Don't declare.
4689 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4690 (tui_source_window_base::show_source_content): Rename from
4691 tui_show_source_content.
4692 (tui_source_window_base::refresh_all): Update.
4693 * tui/tui-layout.c (show_source_disasm_command)
4694 (show_source_or_disasm_and_command): Update.
4696 2019-08-13 Tom Tromey <tom@tromey.com>
4698 * tui/tui-winsource.c (tui_erase_source_content)
4699 (tui_show_source_content, tui_source_window_base::refresh_all):
4701 * tui/tui-wingeneral.h
4702 (tui_check_and_display_highlight_if_needed): Don't declare.
4703 * tui/tui-wingeneral.c
4704 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4705 check_and_display_highlight_if_needed.
4706 * tui/tui-win.c (tui_rehighlight_all)
4707 (tui_win_info::make_visible_with_new_height): Update.
4708 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4709 (tui_data_window::erase_data_content)
4710 (tui_data_window::display_all_data): Update.
4711 * tui/tui-data.h (struct tui_win_info)
4712 <check_and_display_highlight_if_needed>: Declare.
4714 2019-08-13 Tom Tromey <tom@tromey.com>
4716 * tui/tui-win.c (tui_resize_all): Call
4717 tui_delete_invisible_windows.
4718 * tui/tui-layout.c (show_layout): Call
4719 tui_delete_invisible_windows.
4720 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4721 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4723 2019-08-13 Tom Tromey <tom@tromey.com>
4725 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4726 tui_add_win_to_layout.
4728 2019-08-13 Tom Tromey <tom@tromey.com>
4730 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4731 * tui/tui-layout.c (tui_default_win_height): Now static.
4733 2019-08-13 Tom Tromey <tom@tromey.com>
4735 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4737 (show_source_disasm_command, show_source_or_disasm_and_command):
4738 Don't check current layout.
4740 2019-08-13 Tom Tromey <tom@tromey.com>
4742 * tui/tui-wingeneral.c (make_all_visible): Remove.
4743 (tui_make_all_invisible): Simplify.
4744 * tui/tui-layout.c (tui_make_all_invisible): Move from
4745 tui-wingeneral.c; simplify.
4746 (show_layout): Hoist call to tui_make_all_invisible.
4747 (show_data): Don't call tui_make_all_invisible.
4749 2019-08-13 Tom Tromey <tom@tromey.com>
4751 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4752 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4754 2019-08-13 Tom Tromey <tom@tromey.com>
4756 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4758 (show_source_disasm_command, show_data)
4759 (show_source_or_disasm_and_command): Don't use
4760 tui_set_current_layout_to.
4761 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4762 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4764 (tui_set_current_layout_to): Remove.
4766 2019-08-13 Tom Tromey <tom@tromey.com>
4768 * tui/tui-layout.c (tui_set_layout): Update.
4769 * tui/tui-data.h (struct tui_layout_def): Remove.
4770 (tui_layout_def): Don't declare.
4771 * tui/tui-data.c (layout_def): Remove.
4772 (tui_layout_def): Remove.
4774 2019-08-13 Tom Tromey <tom@tromey.com>
4776 * tui/tui-winsource.h (struct tui_source_window_base)
4777 <clear_detail>: No longer "override".
4778 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4779 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4780 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4781 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4783 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4785 2019-08-13 Tom Tromey <tromey@adacore.com>
4787 * tracepoint.c: Don't include readline.h or history.h.
4789 2019-08-12 Tom Tromey <tom@tromey.com>
4791 * configure: Rebuild.
4792 * configure.ac: Check for readline 7.
4793 * NEWS: Mention readline 7 requirement.
4796 2019-08-12 Tom Tromey <tom@tromey.com>
4798 * mingw-hdep.c (gdb_select): Remove readline hack.
4800 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4802 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4803 when the function fails.
4805 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4807 * s390-tdep.c (s390_type_align): New function.
4808 (s390_gdbarch_init): Set it as type_align gdbarch method.
4810 2019-08-09 Tom de Vries <tdevries@suse.de>
4813 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4814 pc_low with relocation offset.
4816 2019-08-07 Tom Tromey <tromey@adacore.com>
4818 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4819 (print_frame_args): Update.
4820 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4822 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4823 * frame.h (struct frame_arg): Add initializers.
4824 <error>: Now a unique_xmalloc_ptr.
4826 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4828 * NEWS: Expand the Pointer Authentication entry.
4829 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4830 (aarch64_frame_unmask_lr): ... to this.
4831 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4832 Call aarch64_frame_unmask_lr.
4833 * frame.c (struct frame_info): Add "masked" variable.
4834 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4835 (fprint_frame): Check for masked pc.
4836 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4838 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4839 * stack.c (print_frame): Check for masked pc.
4841 2019-08-06 Tom Tromey <tom@tromey.com>
4843 * stabsread.c (patch_block_stabs, read_one_struct_field)
4844 (read_enum_type): Use obstack_strndup.
4845 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4846 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4847 * dwarf2read.c (guess_full_die_structure_name)
4848 (anonymous_struct_prefix): Use obstack_strndup.
4849 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4850 * c-exp.y (yylex): Use obstack_strndup.
4851 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4852 (write_var_or_type): Use obstack_strndup.
4854 2019-08-06 Tom Tromey <tom@tromey.com>
4856 * symfile.c (reread_symbols): Use obstack_strdup.
4857 * stabsread.c (read_type): Use obstack_strdup.
4858 * gdb_obstack.h (obstack_strdup): New overload.
4859 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4860 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4861 (dwarf2_canonicalize_name): Use obstack_strdup.
4862 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4863 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4866 2019-08-06 Tom Tromey <tom@tromey.com>
4868 * gdb_obstack.h (obstack_strdup): Define.
4869 * gdb_obstack.c (obstack_strdup): Don't define.
4871 2019-08-06 Tom Tromey <tom@tromey.com>
4873 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4875 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4877 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4878 * stabsread.c (common_block_start): Use obstack_strdup.
4879 * objfiles.c (set_objfile_main_name, objfile): Use
4881 * namespace.c (add_using_directive): Use obstack_strdup.
4882 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4883 * jit.c (finalize_symtab): Use obstack_strdup.
4884 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4885 (guess_partial_die_structure_name, partial_die_info::fixup)
4886 (dwarf2_name): Use obstack_strdup.
4887 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4889 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4890 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4892 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4894 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4896 * unittests/help-doc-selftests.c: New file.
4897 * Makefile.in: Add the new file.
4899 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4901 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4902 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4903 the full first line, except when FOR_VALUE_PREFIX. In this case,
4904 the trailing '.' is not output, and the first character is uppercased.
4905 (print_help_for_command): Update call to print_doc_line.
4906 (print_doc_of_command): Likewise.
4907 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4908 * cli/cli-option.c (append_indented_doc): Do not append newline.
4909 (build_help_option): Append newline after first appended_indented_doc
4910 only if a second call is done.
4911 (build_help): Append 2 new lines before each option, except the first
4913 * compile/compile.c (_initialize_compile): Add new lines after
4914 %OPTIONS%, when not at the end of the help.
4915 Change help doc or code
4916 producing the help doc to respect the invariants.
4917 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4918 Also removed the new line after 'Options:', as all other commands
4919 do not put an empty line between 'Options:' and the first option.
4920 * printcmd.c (_initialize_printcmd): Likewise.
4921 * stack.c (_initialize_stack): Likewise.
4922 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4923 incorrectly telling COMMAND is optional.
4924 * ada-lang.c (_initialize_ada_language): Change help doc or code
4925 producing the help doc to respect the invariants.
4926 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4927 * breakpoint.c (_initialize_breakpoint): Likewise.
4928 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4929 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4930 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4931 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4932 _initialize_cli_style): Likewise.
4933 * corelow.c (core_target_info): Likewise.
4934 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4935 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4936 * filesystem.c (_initialize_filesystem): Likewise.
4937 * frame.c (_initialize_frame): Likewise.
4938 * gnu-nat.c (add_task_commands): Likewise.
4939 * infcall.c (_initialize_infcall): Likewise.
4940 * infcmd.c (_initialize_infcmd): Likewise.
4941 * interps.c (_initialize_interpreter): Likewise.
4942 * language.c (_initialize_language): Likewise.
4943 * linux-fork.c (_initialize_linux_fork): Likewise.
4944 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4945 * maint.c (_initialize_maint_cmds): Likewise.
4946 * memattr.c (_initialize_mem): Likewise.
4947 * printcmd.c (_initialize_printcmd): Likewise.
4948 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4950 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4951 * record-btrace.c (_initialize_record_btrace): Likewise.
4952 * record-full.c (_initialize_record_full): Likewise.
4953 * record.c (_initialize_record): Likewise.
4954 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4955 * regcache.c (_initialize_regcache): Likewise.
4956 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4957 _initialize_remote): Likewise.
4958 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4959 * serial.c (_initialize_serial): Likewise.
4960 * skip.c (_initialize_step_skip): Likewise.
4961 * source.c (_initialize_source): Likewise.
4962 * stack.c (_initialize_stack): Likewise.
4963 * symfile.c (_initialize_symfile): Likewise.
4964 * symtab.c (_initialize_symtab): Likewise.
4965 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4966 * top.c (init_main): Likewise.
4967 * tracefile-tfile.c (tfile_target_info): Likewise.
4968 * tracepoint.c (_initialize_tracepoint): Likewise.
4969 * tui/tui-win.c (_initialize_tui_win): Likewise.
4970 * utils.c (add_internal_problem_command): Likewise.
4971 * valprint.c (value_print_option_defs): Likewise.
4973 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4976 * configure.ac: Drop enable-libmcheck support.
4977 * configure, config.in: Rebuild.
4978 * libmcheck.m4: Remove.
4979 * acinclude.m4: Don't include it.
4980 * Makefile.in: Don't distribute it.
4981 * top.c (print_gdb_configuration): Don't mention it.
4983 2019-08-06 Tom Tromey <tom@tromey.com>
4985 * utils.c (set_output_style): Sometimes pass stream to
4987 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4988 * record-btrace.c (btrace_insn_history): Update.
4989 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4991 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4992 Update initializers.
4993 <m_uiout>: New field.
4995 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4996 Remove "uiout" parameter.
4997 (dump_insns): Update.
4998 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4999 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5001 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5003 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5004 (error_in_psymtab_expansion): Likewise.
5005 (lookup_symbol_via_quick_fns): Likewise.
5006 (basic_lookup_transparent_type_quick): Likewise.
5007 (basic_lookup_transparent_type_1): Likewise.
5009 2019-08-06 Tom Tromey <tromey@adacore.com>
5011 * source.c (last_source_error): Now bool.
5012 (print_source_lines_base): Make "noprint" bool. Only open
5013 source file when last_source_visited changes.
5015 2019-08-06 Tom Tromey <tromey@adacore.com>
5017 * annotate.c (annotate_source_line): Use g_source_cache.
5018 * source-cache.c (source_cache::get_plain_source_lines): Change
5019 parameters. Populate m_offset_cache.
5020 (source_cache::ensure): New method.
5021 (source_cache::get_line_charpos): New method.
5022 (extract_lines): Move lower. Change parameters.
5023 (source_cache::get_source_lines): Move lower.
5024 * source-cache.h (class source_cache): Update comment.
5025 <get_line_charpos>: New method.
5026 <get_source_lines>: Update comment.
5027 <clear>: Clear m_offset_cache.
5028 <get_plain_source_lines>: Change parameters.
5029 <ensure>: New method
5030 <m_offset_cache>: New member.
5031 * source.c (forget_cached_source_info_for_objfile): Update.
5032 (info_source_command): Use g_source_cache.
5033 (find_source_lines, open_source_file_with_line_charpos): Remove.
5034 (print_source_lines_base, search_command_helper): Use g_source_cache.
5035 * source.h (open_source_file_with_line_charpos): Don't declare.
5036 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5037 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5040 2019-08-06 Tom Tromey <tromey@adacore.com>
5042 * source-cache.c (source_cache::get_plain_source_lines):
5043 Remove "first_line" and "last_line" parameters.
5044 (source_cache::get_source_lines): Cache plain text.
5045 * source-cache.h (class source_cache)
5046 <get_plain_source_lines>: Update.
5048 2019-08-06 Tom Tromey <tromey@adacore.com>
5050 * source-cache.c (extract_lines): No longer a method.
5051 Changed type of parameter. Include final newline.
5052 (selftests::extract_lines_test): New function.
5053 (_initialize_source_cache): Likewise.
5054 * source-cache.h (class source_cache)
5055 <extract_lines>: Don't declare.
5057 2019-08-06 Tom Tromey <tromey@adacore.com>
5059 * breakpoint.c (init_breakpoint_sal): Update.
5060 (breakpoint): Update.
5061 * breakpoint.h (struct breakpoint) <filter>: Now a
5064 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5066 * NEWS: Mention dictionary access on blocks.
5067 * python/py-block.c (blpy_getitem): New function.
5068 (block_object_as_mapping): New struct.
5069 (block_object_type): Use new struct for tp_as_mapping field.
5071 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5073 * objfiles.h (objfile): Add a comment describing partial symbols.
5075 2019-08-05 Tom Tromey <tromey@adacore.com>
5077 * compile/compile.c (_initialize_compile): Use _(), not N_().
5078 * thread.c (_initialize_thread): Use _(), not N_().
5079 * stack.c (_initialize_stack): Use _(), not N_().
5080 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5082 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5084 * dwarf2read.c (struct dw2_symtab_iterator):
5085 <want_specific_block>: Remove.
5086 <block_index>: Change type to gdb::optional.
5087 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5088 change type of BLOCK_INDEX parameter to gdb::optional.
5089 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5090 (dw2_lookup_symbol): Don't pass argument for
5091 WANT_SPECIFIC_BLOCK.
5092 (dw2_expand_symtabs_for_function): Don't pass argument for
5093 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5094 (class dw2_debug_names_iterator)
5095 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5096 parameter, change BLOCK_INDEX type to gdb::optional.
5097 <m_want_specific_block>: Remove.
5098 <m_block_index>: Change type to gdb::optional.
5099 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5100 gdb::optional. Re-write in function of gdb::optional.
5101 (dw2_debug_names_lookup_symbol): Don't pass argument for
5102 WANT_SPECIFIC_BLOCK.
5103 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5104 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5107 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5109 * NEWS: Mention changes to "info sources" command.
5111 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113 * symtab.c (filename_partial_match_opts): New struct type.
5114 (struct output_source_filename_data): New members
5115 regexp, c_regexp, partial_match.
5116 (output_source_filename): Use new members to decide to print file.
5117 (info_sources_option_defs): New variable.
5118 (make_info_sources_options_def_group, print_info_sources_header,
5119 info_sources_command_completer):
5121 (info_sources_command): Read new optional arguments.
5122 (_initialize_symtab): Update info sources help.
5124 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5126 * ada-lang.c (exception_support_info_v0): Renamed from...
5127 (default_exception_support_info): ... this. Create new
5129 (ada_has_this_exception_support): Look up catch_handlers_sym.
5130 (ada_exception_support_info_sniffer): Try v0 after default.
5132 2019-08-01 Tom Tromey <tromey@adacore.com>
5134 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5137 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5139 * s12z-tdep.c: Fix include path for s12z-opc.h.
5141 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5143 * NEWS: Require GNU make 3.82.
5145 2019-07-16 Tom Tromey <tom@tromey.com>
5147 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5150 2019-07-30 Tom Tromey <tromey@adacore.com>
5152 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5154 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5156 * printcmd.c (print_address_symbolic): Print negative offsets.
5157 (build_address_symbolic): Force signed arithmetic when computing
5160 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5162 PR/24474: Add a function to lookup static variables.
5163 * NEWS: Mention this new function.
5164 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5165 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5166 * python/python.c (python_GdbMethods): Add new function.
5168 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5170 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5171 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5172 (objfpy_lookup_static_symbol): New function.
5173 (objfile_object_methods): Add new functions.
5175 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5177 * NEWS: Mention 'set|show print frame-info'. Mention new
5178 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5179 backtrace argument. Mention that python frame filtering code
5180 is now consistent with what 'backtrace' command prints.
5182 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5184 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5186 (print_frame_info_auto, print_frame_info_source_line,
5187 print_frame_info_location, print_frame_info_source_and_location,
5188 print_frame_info_location_and_address, print_frame_info_short_location):
5190 (struct frame_print_options): New member print_frame_info.
5191 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5192 * stack.h (get_user_print_what_frame_info): New declaration.
5193 (frame_show_address): New declaration.
5194 * stack.c (print_frame_arguments_choices): New value 'presence'.
5195 (print_frame_info_auto, print_frame_info_source_line,
5196 print_frame_info_location, print_frame_info_source_and_location,
5197 print_frame_info_location_and_address, print_frame_info_short_location,
5198 print_frame_info_choices, print_frame_info_print_what): New definitions.
5199 (print_frame_args): Only print dots for args if print frame-arguments
5201 (frame_print_option_defs): New element for "frame-info".
5202 (get_user_print_what_frame_info): New function.
5203 (frame_show_address): Make non static. Move comment to stack.h.
5204 (print_frame_info_to_print_what): New function.
5205 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5206 to decide what to print.
5207 (backtrace_command_1): Handle the new print_frame_arguments_presence
5209 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5210 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5211 (py_print_frame): In non-mi mode, use LOCATION as default for
5212 print_what, similarly to frame information printed directly by
5213 backtrace command. Handle frame-info user option in non MI mode.
5215 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5217 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5218 Add case for debugging 32-bit target on 64-bit host. Revise
5221 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5223 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5224 instead of find_function_entry_range_from_pc.
5226 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5228 * stack.c (find_frame_funname): Remove code which preferred
5229 minsym over symtab sym in "certain pathological cases".
5231 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5232 parameter. Change type of "do_demangle" to bool.
5233 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5234 Pass suitable "prefer_sym_over_minsym" flag to
5235 build_address_symbolic(). Don't output "+" for negative offsets.
5236 * printcmd.c (print_address_symbolic): Update invocation of
5237 build_address_symbolic to include a "prefer_sym_over_minsym"
5239 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5240 Restrict cases in which use of minimal symbol is preferred to that
5241 of a found symbol. Update comments.
5243 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5244 for entry pc when entry pc is out of range for that FDE.
5246 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5249 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5252 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5254 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5255 this function's Python signature.
5258 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5260 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5261 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5262 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5263 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5264 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5267 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5269 * h8300-tdep.c (h8300_register_name_common): New.
5270 h8300_register_name): Use h8300_register_name_common.
5271 (h8300s_register_name): Likewise.
5272 (h8300sx_register_name): Likewise.
5273 (h8300h_register_nam): New.
5274 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5277 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5279 * arm-tdep.c (arm_skip_cmse_entry): New function.
5280 (arm_is_sgstubs_section): New function.
5281 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5283 2019-07-22 Tom Tromey <tom@tromey.com>
5285 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5288 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5290 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5293 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5295 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5296 so that GDB doesn't match any msymbols when searching in the
5298 (print_symbol_info): Print using typedef_print or type_print based
5299 on the type of the symbol. Add updated FIXME comment moved from...
5300 (_initialize_symtab): ... move and update FIXME comment to above.
5302 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5304 * NEWS: Mention adding -q option to "info types".
5305 * symtab.c (struct info_types_options): New struct.
5306 (info_types_options_defs): New variable.
5307 (make_info_types_options_def_group): New function.
5308 (info_types_command): Use gdb::option framework to parse options.
5309 (info_types_command_completer): New function.
5310 (_initialize_symtab): Extend the help text on "info types" and
5311 register command completer.
5313 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5315 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5316 (lookup_symbol_in_objfile): Change int to block_enum and add a
5317 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5319 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5321 * MAINTAINERS (Write After Approval): Add self.
5323 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5325 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5326 instruction to the dummy code region.
5328 2019-07-19 Tom Tromey <tromey@adacore.com>
5330 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5331 (ARGSUSED, PARAMS, __func__): Remove rules.
5333 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5335 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5336 * features/arm/arm-with-iwmmxt.c: Remove.
5337 * features/arm/arm-with-iwmmxt.xml: Remove.
5338 * features/arm/arm-with-m-fpa-layout.c: Remove.
5339 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5340 * features/arm/arm-with-m-vfp-d16.c: Remove.
5341 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5342 * features/arm/arm-with-m.c: Remove.
5343 * features/arm/arm-with-m.xml: Remove.
5344 * features/arm/arm-with-neon.c: Remove.
5345 * features/arm/arm-with-neon.xml: Remove.
5346 * features/arm/arm-with-vfpv2.c: Remove.
5347 * features/arm/arm-with-vfpv2.xml: Remove.
5348 * features/arm/arm-with-vfpv3.c: Remove.
5349 * features/arm/arm-with-vfpv3.xml: Remove.
5351 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5353 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5355 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5357 * arch/aarch32.c (aarch32_create_target_description): Create
5358 target descriptions using features.
5359 * arch/arm.c (arm_create_target_description)
5360 (arm_create_mprofile_target_description): Likewise.
5361 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5363 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5365 * Makefile.in: Add new files.
5366 * aarch32-tdep.c: New file.
5367 * aarch32-tdep.h: New file.
5368 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5369 Call aarch32_read_description.
5370 * arch/aarch32.c: New file.
5371 * arch/aarch32.h: New file.
5372 * arch/arm.c (arm_create_target_description)
5373 (arm_create_mprofile_target_description): New function.
5374 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5375 (arm_create_target_description)
5376 (arm_create_mprofile_target_description): New declaration.
5377 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5378 read_description functions.
5379 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5381 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5382 * arm-tdep.c (tdesc_arm_list): New variable.
5383 (arm_register_g_packet_guesses): Call create description functions.
5384 (arm_read_description) (arm_read_mprofile_description): New
5386 * arm-tdep.h (arm_read_description)
5387 (arm_read_mprofile_description): Add declaration.
5388 * configure.tgt: Add new files.
5390 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5392 * top.c (new_ui_command): Open specified terminal just once.
5394 2019-07-18 Tom Tromey <tromey@adacore.com>
5396 * symtab.c (main_name): Constify return type.
5397 * symfile.c (set_initial_language): Update.
5398 * symtab.h (main_name): Constify return type.
5400 2019-07-17 Tom Tromey <tom@tromey.com>
5402 * tui/tui-winsource.c (tui_update_source_window)
5403 (tui_update_source_window_as_is)
5404 (tui_update_source_windows_with_line): Remove return.
5405 * tui/tui-disasm.c (tui_show_disassem)
5406 (tui_show_disassem_and_update_source): Remove return.
5407 * tui/tui.c (tui_reset): Remove return.
5408 * tui/tui-wingeneral.c
5409 (tui_check_and_display_highlight_if_needed): Remove return.
5411 2019-07-17 Tom Tromey <tom@tromey.com>
5413 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5415 2019-07-17 Tom Tromey <tom@tromey.com>
5417 * tui/tui-winsource.h (struct tui_exec_info_window)
5418 (struct tui_source_window_base): Move from tui-data.h.
5419 * tui/tui-winsource.c: Move many method definitions from
5420 elsewhere. Remove "structuring" comments.
5421 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5422 (tui_source_window_base::refresh_window): Move to
5424 * tui/tui-win.c (tui_source_window_base::refresh_all)
5425 (tui_source_window_base::update_tab_width)
5426 (tui_source_window_base::set_new_height)
5427 (tui_source_window_base::do_make_visible_with_new_height): Move to
5429 * tui/tui-source.h: Update.
5430 * tui/tui-source.c (tui_source_window_base::reset): Move to
5432 * tui/tui-disasm.h: Update.
5433 * tui/tui-data.h (struct tui_exec_info_window): Move to
5435 (struct tui_source_window_base): Likewise.
5436 * tui/tui-data.c (tui_source_window_base::clear_detail)
5437 (tui_source_window_base, ~tui_source_window_base): Move to
5440 2019-07-17 Tom Tromey <tom@tromey.com>
5442 * tui/tui-win.c (tui_resize_all)
5443 (tui_source_window_base::update_tab_width)
5444 (tui_adjust_win_heights): Update.
5445 (tui_win_info::make_invisible_and_set_new_height): Rename from
5446 make_invisible_and_set_new_height.
5447 * tui/tui-data.h (struct tui_win_info)
5448 <make_invisible_and_set_new_height>: New method.
5450 2019-07-17 Tom Tromey <tom@tromey.com>
5452 * tui/tui.c: Update.
5453 * tui/tui-source.h (struct tui_source_window): Move from
5455 * tui/tui-layout.c: Update.
5456 * tui/tui-disasm.c: Update.
5457 * tui/tui-data.h (struct tui_source_window): Move to
5460 2019-07-17 Tom Tromey <tom@tromey.com>
5462 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5464 * tui/tui-data.h (struct tui_disasm_window): Move to
5467 2019-07-17 Tom Tromey <tom@tromey.com>
5469 * tui/tui-regs.h (struct tui_data_item_window): Move from
5471 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5472 * tui/tui-data.h (struct tui_data_item_window): Move to
5474 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5476 2019-07-17 Tom Tromey <tom@tromey.com>
5478 * tui/tui.c: Update.
5479 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5480 (tui_cmd_window::max_height): Move to tui-command.c.
5481 * tui/tui-layout.c: Update.
5482 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5483 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5485 * tui/tui-command.h (struct tui_cmd_window): Move from
5487 * tui/tui-command.c: Remove "structuring" comments.
5488 (tui_cmd_window::clear_detail)
5489 (tui_cmd_window::do_make_visible_with_new_height)
5490 (tui_cmd_window::max_height): Move from elsewhere.
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5494 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5496 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5497 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5499 2019-07-17 Tom Tromey <tom@tromey.com>
5501 * tui/tui.c: Update.
5502 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5504 * tui/tui-windata.h: Remove file.
5505 * tui/tui-windata.c: Remove file.
5506 * tui/tui-win.c (tui_data_window::set_new_height)
5507 (tui_data_window::do_make_visible_with_new_height): Move to
5509 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5510 * tui/tui-regs.c: Remove "structuring" comments.
5511 (tui_data_window::first_data_item_displayed)
5512 (tui_data_window::delete_data_content_windows)
5513 (tui_data_window::erase_data_content)
5514 (tui_data_window::display_all_data)
5515 (tui_data_window::refresh_all)
5516 (tui_data_window::do_scroll_vertical)
5517 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5518 (tui_data_window::do_make_visible_with_new_height)
5519 (tui_data_window::refresh_window): Move from elsewhere.
5520 (_initialize_tui_regs): Move to end of file.
5521 * tui/tui-layout.c: Update.
5522 * tui/tui-hooks.c: Update.
5523 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5524 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5526 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5528 2019-07-17 Tom Tromey <tom@tromey.com>
5530 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5535 * tui/tui-win.c (tui_source_window_base::set_new_height)
5536 (tui_source_window_base::do_make_visible_with_new_height): Use
5537 m_has_locator field directly.
5538 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5540 (struct tui_source_window_base) <has_locator>: Likewise.
5542 2019-07-17 Tom Tromey <tom@tromey.com>
5544 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5546 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5548 * tui/tui-win.c (tui_source_window_base::set_new_height)
5549 (tui_source_window_base::set_new_height)
5550 (make_invisible_and_set_new_height)
5551 (tui_source_window_base::do_make_visible_with_new_height)
5552 (tui_source_window_base::do_make_visible_with_new_height):
5554 * tui/tui-layout.c (show_source_disasm_command, show_data)
5555 (show_source_or_disasm_and_command): Update.
5556 * tui/tui-layout.c (show_layout): Update.
5558 2019-07-17 Tom Tromey <tom@tromey.com>
5560 * tui/tui-layout.c (make_data_window): Remove.
5561 (show_data): Unify creation and re-initialization cases.
5563 2019-07-17 Tom Tromey <tom@tromey.com>
5565 * tui/tui-layout.c (make_source_window, make_disasm_window):
5567 (show_data): Unify creation and re-initialization cases.
5569 2019-07-17 Tom Tromey <tom@tromey.com>
5571 * tui/tui-layout.c (make_command_window): Remove.
5572 (show_source_disasm_command, show_source_or_disasm_and_command):
5573 Unify creation and re-initialization cases.
5575 2019-07-17 Tom Tromey <tom@tromey.com>
5577 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5578 creation and re-initialization cases.
5580 2019-07-17 Tom Tromey <tom@tromey.com>
5582 * tui/tui-regs.c (tui_get_register): Return void.
5584 2019-07-17 Tom Tromey <tom@tromey.com>
5586 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5589 2019-07-17 Tom Tromey <tom@tromey.com>
5591 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5594 2019-07-17 Tom Tromey <tom@tromey.com>
5596 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5597 * tui/tui-regs.c (tui_reg_layout): New function.
5598 (tui_show_registers, tui_reg_command): Use it.
5599 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5600 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5602 (tui_layout_command): Remove.
5604 2019-07-17 Tom Tromey <tom@tromey.com>
5606 * tui/tui-layout.h (tui/tui-layout): Return void.
5607 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5609 2019-07-17 Tom Tromey <tom@tromey.com>
5611 * tui/tui-layout.c (show_source_disasm_command, show_data):
5613 (reset_locator): Remove.
5614 (show_source_or_disasm_and_command): Update.
5616 2019-07-17 Tom Tromey <tom@tromey.com>
5618 * tui/tui-source.c (tui_source_window_base::reset): Remove
5620 * tui/tui-layout.c (make_command_window, make_source_window)
5621 (make_disasm_window, make_data_window)
5622 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5623 (reset_locator, show_source_or_disasm_and_command): Update.
5624 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5626 (struct tui_source_window_base) <reset>: Likewise.
5628 2019-07-17 Tom Tromey <tom@tromey.com>
5630 * tui/tui-layout.c (show_source_disasm_command): Use
5632 (reset_locator): New function.
5633 (init_and_make_win): Remove.
5634 (show_source_or_disasm_and_command): Use reset_locator.
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5638 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5640 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5642 * tui/tui-source.c (tui_source_window_base::reset): New method.
5643 * tui/tui-layout.c (make_command_window): Don't call
5645 (make_source_window, make_disasm_window): Don't call
5646 make_source_or_disasm_window.
5647 (make_data_window): Don't call init_and_make_win. Change calling
5649 (show_source_disasm_command, show_data): Simplify.
5650 (make_source_or_disasm_window): Remove.
5651 (show_source_or_disasm_and_command): Simplify.
5652 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5653 (struct tui_source_window_base) <reset>: Likewise.
5654 <execution_info>: Remove initializer.
5655 * tui/tui-data.c (tui_source_window_base): Initialize
5658 2019-07-17 Tom Tromey <tom@tromey.com>
5660 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5663 2019-07-17 Tom Tromey <tom@tromey.com>
5665 * tui/tui.c (tui_rl_other_window): Update.
5666 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5667 superclass method first. Always iterate over regs_content.
5668 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5670 * tui/tui-win.c (tui_set_focus_command): Update.
5672 2019-07-17 Tom Tromey <tom@tromey.com>
5674 * tui/tui-win.c (tui_set_focus_command): Rename from
5675 tui_set_focus. Call tui_enable.
5676 (tui_set_focus_command): Remove.
5678 2019-07-17 Tom Tromey <tom@tromey.com>
5680 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5682 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5684 (tui_data_window::refresh_window): Call refresh_window on data
5685 items. Always call superclass refresh_window.
5686 (tui_win_info::refresh): Remove.
5687 (tui_source_window_base::refresh_window): Update.
5688 (tui_refresh_all): Update.
5689 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5691 (show_source_or_disasm_and_command): Likewise.
5692 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5693 (struct tui_source_window_base) <refresh>: Likewise.
5695 2019-07-17 Tom Tromey <tom@tromey.com>
5697 * tui/tui-winsource.c (tui_clear_source_content)
5698 (tui_show_source_content): Update.
5699 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5700 whether content is empty.
5701 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5704 2019-07-17 Tom Tromey <tom@tromey.com>
5706 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5708 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5709 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5713 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5714 (struct tui_data_item_window): Update.
5716 2019-07-17 Tom Tromey <tom@tromey.com>
5718 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5719 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5722 2019-07-17 Tom Tromey <tom@tromey.com>
5724 * tui/tui-winsource.h (tui_erase_source_content)
5725 (tui_clear_source_content): Remove "display_prompt" parameter.
5726 * tui/tui-winsource.c (tui_update_source_window_as_is)
5727 (tui_update_source_windows_with_addr): Update.
5728 (tui_clear_source_content): Remove "display_prompt" parameter.
5729 (tui_erase_source_content): Likewise. Simplify.
5730 (tui_show_source_content): Update.
5731 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5732 * tui/tui-stack.c (tui_show_frame_info): Update.
5733 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5736 2019-07-17 Tom Tromey <tom@tromey.com>
5738 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5739 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5741 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5744 2019-07-17 Tom Tromey <tom@tromey.com>
5746 * tui/tui-winsource.c (tui_clear_source_content)
5747 (tui_show_source_content, tui_show_exec_info_content)
5748 (tui_clear_exec_info_content): Update.
5749 * tui/tui-stack.c (tui_show_locator_content): Update.
5750 (tui_show_frame_info): Update.
5751 * tui/tui-source.h (tui_source_window): Don't declare.
5752 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5753 from tui_source_is_displayed.
5754 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5756 (struct tui_source_window_base) <content_in_use>: New field. Now
5758 (struct tui_source_window) <showing_source_p>: New method.
5759 (TUI_SRC_WIN): Change cast.
5760 * tui/tui-data.c (tui_initialize_static_data): Update.
5762 2019-07-17 Tom Tromey <tom@tromey.com>
5764 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5766 * tui/tui-source.c (tui_source_window::location_matches_p): New
5768 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5770 * tui/tui-data.h (struct tui_source_window_base)
5771 <location_matches_p>: New method.
5772 (struct tui_source_window, struct tui_disasm_window)
5773 <location_matches_p>: Likewise.
5775 2019-07-17 Tom Tromey <tom@tromey.com>
5777 * tui/tui-win.c (tui_set_win_height_command): Rename from
5779 (tui_set_win_height_command): Remove.
5781 2019-07-17 Tom Tromey <tom@tromey.com>
5783 * tui/tui-source.c (tui_source_window): New constructor. Add
5785 (~tui_source_window): New destructor.
5786 (tui_source_window::style_changed): New method.
5787 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5788 (tui_attach_detach_observers): Update.
5789 * tui/tui-data.h (struct tui_source_window): Make constructor not
5790 inline. Add destructor.
5791 (struct tui_source_window) <style_changed>: New method.
5792 <m_observable>: New member.
5794 2019-07-17 Tom Tromey <tom@tromey.com>
5796 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5797 * tui/tui-win.c (tui_resize_all): Fix typo.
5799 2019-07-17 Tom Tromey <tom@tromey.com>
5801 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5802 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5803 (tui_refresh_all): Remove "list" parameter. Use foreach.
5804 * tui/tui-win.c (window_name_completer): Use foreach.
5805 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5806 (update_tab_width): Likewise.
5807 * tui/tui-layout.c (show_layout): Update.
5808 * tui/tui-data.h (class tui_window_iterator): New.
5809 (struct all_tui_windows): New.
5810 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5812 2019-07-17 Tom Tromey <tom@tromey.com>
5814 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5815 parameter. Don't reference globals.
5816 (tui_reg_command): Update.
5818 2019-07-17 Tom Tromey <tom@tromey.com>
5820 * tui/tui-regs.c (tui_show_registers): Simplify.
5822 2019-07-17 Tom Tromey <tom@tromey.com>
5824 * tui/tui-regs.c (tui_show_registers): Update.
5825 (tui_show_register_group): Add win_info parameter.
5827 2019-07-17 Tom Tromey <tom@tromey.com>
5829 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5830 Rename from tui_display_reg_element_at_line.
5831 (tui_data_window::display_registers_from_line): Update.
5832 * tui/tui-data.h (struct tui_data_window)
5833 <display_reg_element_at_line>: New method.
5835 2019-07-17 Tom Tromey <tom@tromey.com>
5837 * tui/tui-regs.h (tui_display_registers_from)
5838 (tui_display_registers_from_line): Don't declare.
5839 * tui/tui-windata.c (tui_data_window::display_all_data)
5840 (tui_data_window::refresh_all)
5841 (tui_data_window::do_scroll_vertical): Update.
5842 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5843 from tui_display_registers_from.
5844 (tui_display_reg_element_at_line): Update.
5845 (tui_data_window::display_registers_from_line): Rename from
5846 tui_display_registers_from_line.
5847 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5848 display_registers_from_line>: New methods.
5850 2019-07-17 Tom Tromey <tom@tromey.com>
5852 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5853 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5854 from tui_erase_data_content.
5855 (tui_data_window::display_all_data)
5856 (tui_data_window::refresh_all)
5857 (tui_data_window::do_scroll_vertical): Update.
5858 * tui/tui-regs.c (tui_show_registers): Update.
5859 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5862 2019-07-17 Tom Tromey <tom@tromey.com>
5864 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5867 (tui_data_window::delete_data_content_windows): Rename from
5868 tui_delete_data_content_windows.
5869 (tui_data_window::display_all_data)
5870 (tui_data_window::do_scroll_vertical): Update.
5871 * tui/tui-data.h (struct tui_data_window)
5872 <delete_data_content_windows>: New method.
5874 2019-07-17 Tom Tromey <tom@tromey.com>
5876 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5877 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5879 2019-07-17 Tom Tromey <tom@tromey.com>
5881 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5882 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5883 from tui_display_all_data.
5885 (tui_data_window::do_make_visible_with_new_height): Update.
5886 * tui/tui-regs.c (tui_show_registers): Update.
5887 * tui/tui-layout.c (tui_set_layout): Update.
5888 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5891 2019-07-17 Tom Tromey <tom@tromey.com>
5893 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5894 * tui/tui-windata.c (tui_display_data_from): Remove.
5895 (tui_data_window::refresh_all): Update.
5897 2019-07-17 Tom Tromey <tom@tromey.com>
5899 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5900 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5901 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5902 tui_display_registers_from_line.
5903 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5904 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5905 "force_display" parameter.
5907 2019-07-17 Tom Tromey <tom@tromey.com>
5909 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5911 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5912 Rename from tui_first_reg_element_no_inline.
5913 (tui_display_reg_element_at_line)
5914 (tui_display_registers_from_line): Update.
5915 * tui/tui-data.h (struct tui_data_window)
5916 <first_reg_element_no_inline>: New method.
5918 2019-07-17 Tom Tromey <tom@tromey.com>
5920 * tui/tui-windata.c (tui_display_data_from)
5921 (tui_data_window::do_scroll_vertical): Update.
5922 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5923 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5924 Rename from tui_line_from_reg_element_no.
5925 (tui_display_registers_from_line): Update.
5926 * tui/tui-data.h (struct tui_data_window)
5927 <line_from_reg_element_no>: New method.
5929 2019-07-17 Tom Tromey <tom@tromey.com>
5931 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5932 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5933 tui_last_regs_line_no.
5934 (tui_display_reg_element_at_line)
5935 (tui_display_registers_from_line): Update.
5936 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5939 2019-07-17 Tom Tromey <tom@tromey.com>
5942 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5943 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5944 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5945 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5946 (tui_update_breakpoint_info): Likewise.
5947 * tui/tui-hooks.c (tui_event_create_breakpoint)
5948 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5951 2019-07-17 Tom Tromey <tom@tromey.com>
5953 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5955 2019-07-17 Tom Tromey <tom@tromey.com>
5957 * tui/tui-winsource.c (tui_update_source_window_as_is)
5958 (tui_update_source_windows_with_addr): Update.
5959 * tui/tui-source.h (tui_set_source_content)
5960 (tui_show_symtab_source): Add "win_info" parameter.
5961 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5963 (tui_show_symtab_source): Likewise.
5965 2019-07-17 Tom Tromey <tom@tromey.com>
5967 * tui/tui-wingeneral.c
5968 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5970 2019-07-17 Tom Tromey <tom@tromey.com>
5972 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5973 (struct tui_cmd_window) <can_scroll>: New method.
5974 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5977 2019-07-17 Tom Tromey <tromey@adacore.com>
5979 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5980 do_field_signed>: Rename. Change type of "value".
5981 * ui-out.c (ui_out::field_signed): Rename from field_int.
5982 Change type of "value".
5983 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5985 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5986 do_field_int. Change type of "value".
5987 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5988 do_field_int. Change type of "value".
5989 * tracepoint.c (trace_status_mi, tfind_1)
5990 (print_one_static_tracepoint_marker): Update.
5991 * thread.c (print_thread_info_1, print_selected_thread_frame):
5993 * stack.c (print_frame, print_frame_info): Update.
5994 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5996 * source.c (print_source_lines_base): Update.
5997 * skip.c (info_skip_command): Update.
5998 * record-btrace.c (btrace_ui_out_decode_error)
5999 (btrace_call_history_src_line): Update.
6000 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6002 * progspace.c (print_program_space): Update.
6003 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6004 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6005 do_field_int. Change type of "value".
6006 * mi/mi-out.c (mi_ui_out::do_table_begin)
6007 (mi_ui_out::do_table_header): Update.
6008 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6010 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6011 (mi_cmd_data_list_changed_registers, output_register)
6012 (mi_cmd_data_read_memory, mi_load_progress)
6013 (mi_cmd_trace_frame_collected): Update.
6014 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6016 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6017 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6018 (mi_cmd_var_list_children, varobj_update_one): Update.
6019 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6020 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6021 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6022 * inferior.c (print_inferior): Update.
6023 * gdb_bfd.c (print_one_bfd): Update.
6024 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6026 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6027 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6028 do_field_int. Change type of "value".
6029 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6030 do_field_int. Change type of "value".
6031 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6032 (print_one_breakpoint_location, print_it_catch_fork)
6033 (print_one_catch_fork, print_it_catch_vfork)
6034 (print_one_catch_vfork, print_it_catch_solib)
6035 (print_it_catch_exec, print_it_ranged_breakpoint)
6036 (print_mention_watchpoint, print_mention_masked_watchpoint)
6037 (bkpt_print_it, update_static_tracepoint): Update.
6038 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6039 * break-catch-syscall.c (print_it_catch_syscall): Update.
6040 * ada-tasks.c (print_ada_task_info): Update.
6041 * ada-lang.c (print_it_exception, print_mention_exception):
6044 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6046 PR breakpoints/24541
6047 * gdbarch.c: Regenerate.
6048 * gdbarch.h: Regenerate.
6049 * gdbarch.sh: Adjust return type and parameter types for
6050 'stap_adjust_register'.
6051 (i386_stap_adjust_register): Adjust signature and return new
6053 * stap-probe.c (stap_parse_register_operand): Adjust use of
6054 'gdbarch_stap_adjust_register'.
6056 2019-07-17 Tom Tromey <tromey@adacore.com>
6058 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6060 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6062 (struct s390_process_info): Add initializers.
6063 (s390_add_process): Use new.
6064 (s390_linux_nat_target::low_forget_process): Use delete.
6065 (s390_linux_nat_target::low_new_fork)
6066 (s390_linux_nat_target::stopped_by_watchpoint)
6067 (s390_linux_nat_target::low_prepare_to_resume)
6068 (s390_linux_nat_target::insert_watchpoint)
6069 (s390_linux_nat_target::insert_hw_breakpoint)
6070 (s390_linux_nat_target::remove_watchpoint)
6071 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6073 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6075 * aarch64-fbsd-nat.c: Include regcache.h.
6076 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6078 (aarch64_fbsd_nat_target::fetch_registers)
6079 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6081 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6083 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6085 * fbsd-nat.c: Include gdbarch.h.
6087 2019-07-15 Tom Tromey <tromey@adacore.com>
6089 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6091 2019-07-15 Tom Tromey <tromey@adacore.com>
6093 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6094 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6095 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6096 * cli-out.c (cli_ui_out::do_field_int): New method.
6097 * ui-out.c (ui_out::field_unsigned): New method.
6098 * symfile.c (generic_load): Use field_unsigned.
6099 (print_transfer_performance): Likewise.
6100 * record-btrace.c (ui_out_field_uint): Remove.
6101 (btrace_call_history_insn_range, btrace_call_history): Use
6103 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6105 * ui-out.h (class ui_out) <field_unsigned>: New method.
6106 <do_field_unsigned>: Likewise.
6108 2019-07-15 Tom Tromey <tromey@adacore.com>
6110 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6111 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6112 * target.c (flash_erase_command): Use field_string.
6113 * infrun.c (print_signal_received_reason): Use field_string.
6114 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6115 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6117 * ada-tasks.c (print_ada_task_info): Use field_string.
6119 2019-07-15 Tom Tromey <tromey@adacore.com>
6121 * target.c (flash_erase_command): Use field_core_addr.
6122 * symfile.c (generic_load): Use field_core_addr.
6123 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6124 Use field_core_addr.
6125 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6128 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6130 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6131 value if its desired type is smaller than a CORE_ADDR and signed.
6133 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6135 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6136 of changes to field names, and use new is_reference field to
6137 decide if a property is a reference or not.
6138 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6140 (struct dwarf2_property_baton): Update header comment, rename
6141 'referenced_type' to 'property_type' and update comments.
6142 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6143 default property type, store in property baton, update to take
6144 accound of renamed field.
6145 (read_func_scope): Update call to attr_to_dynamic_prop.
6146 (read_array_type): Likewise.
6147 (dwarf2_per_cu_addr_sized_int_type): New function.
6148 (read_subrange_index_type): Move type finding code to
6149 dwarf2_per_cu_addr_sized_int_type.
6150 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6151 (dwarf2_per_cu_addr_type): New function.
6152 (set_die_type): Update calls to attr_to_dynamic_prop.
6154 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6156 * dwarf2read.c (read_subrange_index_type): New function.
6157 (read_subrange_type): Move code into new function and call it.
6158 * gdbtypes.c (create_range_type): Add some asserts.
6160 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6162 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6163 update return statements.
6164 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6165 declaration, and update comment to match.
6166 * gdbtypes.c (resolve_dynamic_array): Update call to
6167 dwarf2_evaluate_property to match new return type.
6169 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6171 * valarith.c (value_subscripted_rvalue): Change lowerbound
6172 parameter type from int to LONGEST.
6173 * value.h (value_subscripted_rvalue): Likewise in declaration.
6175 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6177 * cli/cli-utils.c (info_print_command_completer): New function.
6178 * cli/cli-utils.h: Add 'completer.h' include, and forward
6179 declaration for 'struct cmd_list_element'.
6180 (info_print_command_completer): Declare.
6181 * stack.c (_initialize_stack): Add completer for 'info locals' and
6183 * symtab.c (_initialize_symtab): Add completer for 'info
6184 variables' and 'info functions'.
6185 * NEWS: Mention completion for additional info commands.
6187 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6189 * cli/cli-utils.c (extract_info_print_args): Delete.
6190 (extract_arg_maybe_quoted): Delete.
6191 (info_print_options_defs): New variable.
6192 (make_info_print_options_def_group): New function.
6193 (extract_info_print_options): Define new function.
6194 * cli/cli-utils.h (extract_info_print_args): Delete.
6195 (struct info_print_options): New structure.
6196 (extract_info_print_options): Declare new function.
6197 * stack.c (info_locals_command): Update to use new
6198 extract_info_print_options, also add a header comment.
6199 (info_args_command): Likewise.
6200 * symtab.c (info_variables_command): Likewise.
6201 (info_functions_command): Likewise.
6203 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6205 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6206 to extract string arguments.
6207 * common/common-utils.c (extract_string_maybe_quoted): New function.
6208 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6210 2019-07-11 Tom Tromey <tromey@adacore.com>
6212 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6213 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6214 * top.h (gdbinit): Don't declare.
6215 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6217 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6218 * top.c (gdb_init): Don't call init_cli_cmds.
6220 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6222 2019-07-11 Tom Tromey <tromey@adacore.com>
6224 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6225 after it has been moved.
6227 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6229 * valops.c (value_must_coerce_to_target): Change return type to
6231 * value.h (value_must_coerce_to_target): Likewise.
6233 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6235 * breakpoint.c (is_hardware_watchpoint): Remove
6236 forward-declaration.
6237 (is_masked_watchpoint): Change return type to bool.
6238 (is_tracepoint): Likewise.
6239 (is_breakpoint): Likewise.
6240 (is_hardware_watchpoint): Likewise.
6241 (is_watchpoint): Likewise.
6242 (is_no_memory_software_watchpoint): Likewise.
6243 (is_catchpoint): Likewise.
6244 (breakpoint_1): Make FILTER parameter's return type bool.
6245 is_masked_watchpoint): Change return type to bool.
6246 (save_breakpoints): Make FILTER parameter's return type bool.
6247 * breakpoint.h (is_breakpoint): Change return type to bool.
6248 (is_watchpoint): Likewise.
6249 (is_catchpoint): Likewise.
6250 (is_tracepoint): Likewise.
6252 2019-07-10 Tom Tromey <tom@tromey.com>
6254 * defs.h: Don't include gdbarch.h.
6255 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6256 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6257 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6258 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6259 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6260 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6261 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6262 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6263 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6264 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6265 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6266 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6267 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6268 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6269 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6270 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6271 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6272 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6273 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6274 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6275 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6276 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6277 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6278 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6279 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6280 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6281 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6283 2019-07-10 Tom Tromey <tromey@adacore.com>
6285 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6286 * breakpoint.c (init_ada_exception_breakpoint): Register as
6288 (print_one_breakpoint_location, print_one_breakpoint): Use
6289 is_ada_exception_catchpoint.
6290 * ada-lang.c (class ada_catchpoint_location): Pass
6291 bp_loc_software_breakpoint to bp_location constructor.
6292 (is_ada_exception_catchpoint): New function.
6294 2019-07-10 Tom Tromey <tromey@adacore.com>
6296 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6298 (struct arm_exidx_entry): New method operator<.
6299 (struct arm_exidx_data) <section_maps>: Change type.
6300 (arm_exidx_data_free): Remove.
6301 (arm_exidx_data_key): Change type. Move lower.
6302 (arm_exidx_new_objfile): Update.
6303 (arm_compare_exidx_entries): Remove.
6304 (arm_find_exidx_entry, _initialize_arm_tdep)
6306 2019-07-10 Tom Tromey <tromey@adacore.com>
6308 * solib-spu.c (ocl_program_data_key): Change type.
6309 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6312 2019-07-10 Tom Tromey <tromey@adacore.com>
6314 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6315 (struct solib_aix_inferior_data) <library_list>: Change type.
6316 (solib_aix_inferior_data_handle): Change type.
6317 (get_solib_aix_inferior_data): Update.
6318 (solib_aix_free_library_list): Remove.
6319 (library_list_start_library): Update.
6320 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6322 (solib_aix_get_library_list)
6323 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6324 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6326 2019-07-10 Tom Tromey <tromey@adacore.com>
6328 * solib-dsbt.c (struct dsbt_info): Add initializers.
6329 (solib_dsbt_pspace_data): Change type.
6330 (dsbt_pspace_data_cleanup): Remove.
6331 (get_dsbt_info, _initialize_dsbt_solib): Update.
6333 2019-07-10 Tom Tromey <tromey@adacore.com>
6335 * spu-tdep.c (spu_overlay_data): Change type.
6336 (spu_get_overlay_table, spu_overlay_new_objfile)
6337 (_initialize_spu_tdep): Update.
6339 2019-07-10 Tom Tromey <tromey@adacore.com>
6341 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6343 (dbx_objfile_data_key): Change type and declare later.
6344 (DBX_SYMFILE_INFO): Rewrite.
6345 * dbxread.c (dbx_objfile_data_key): Change type.
6346 (dbx_symfile_init): Update.
6347 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6348 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6349 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6351 2019-07-10 Tom Tromey <tromey@adacore.com>
6353 * jit.c (jit_program_space_key): Change type. Move lower.
6354 (get_jit_program_space_data): Update.
6355 (jit_program_space_data_cleanup): Remove.
6356 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6358 (struct jit_program_space_data): Add initializers.
6360 2019-07-10 Tom Tromey <tromey@adacore.com>
6362 * solib-darwin.c (struct darwin_info): Add initializers.
6363 (solib_darwin_pspace_data): Change type.
6364 (darwin_pspace_data_cleanup): Remove.
6365 (get_darwin_info, _initialize_darwin_solib): Update.
6367 2019-07-10 Tom Tromey <tromey@adacore.com>
6369 * remote-sim.c (struct sim_inferior_data): Add initializers,
6370 constructor, and destructor.
6371 (sim_inferior_data_key): Change type. Move lower.
6372 (check_for_duplicate_sim_descriptor): Update.
6373 (get_sim_inferior_data): Use new. Update.
6374 (~sim_inferior_data_cleanup): Rename from
6375 sim_inferior_data_cleanup. Simplify.
6376 (gdbsim_close_inferior, simulator_command)
6377 (sim_command_completer, _initialize_remote_sim): Update.
6378 (next_pid, INITIAL_PID): Move earlier.
6380 2019-07-10 Tom Tromey <tromey@adacore.com>
6382 * python/python-internal.h (create_thread_object): Return
6384 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6385 * python/py-inferior.c (struct threadlist_entry): Add
6387 <thread_obj>: Now a gdbpy_ref.
6388 (thread_to_thread_object): Update.
6389 (add_thread_object): Use new.
6390 (delete_thread_object): Use delete.
6391 (infpy_threads): Update.
6392 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6395 2019-07-10 Tom Tromey <tromey@adacore.com>
6397 * valops.c (value_cast): Specialize error message for Ada.
6399 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6401 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6403 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6405 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6406 bpstat_should_step): Return bool, adjust comments.
6407 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6408 bpstat_should_step): Likewise.
6410 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6412 * features/Makefile: Use feature target descriptions for Arm.
6413 * features/arm/arm-core.c: Generate new file.
6414 * features/arm/arm-fpa.c: Likewise.
6415 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6416 * features/arm/arm-m-profile.c: Likewise.
6417 * features/arm/arm-vfpv2.c: Likewise.
6418 * features/arm/arm-vfpv3.c: Likewise.
6419 * features/arm/xscale-iwmmxt.c: Likewise.
6420 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6422 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6424 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6427 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6429 * features/aarch64-pauth.c: Regenerate.
6431 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6433 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6435 (bpstat_what): Use false instead of 0.
6437 2019-07-09 Pedro Alves <palves@redhat.com>
6439 * break-catch-throw.c (is_exception_catchpoint): New.
6440 * breakpoint.c (print_one_breakpoint_location): New parameter
6441 'raw_loc'. Handle it. Use
6442 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6443 looking at the breakpoint's type.
6444 (print_one_breakpoint): If handling "maint info breakpoints", also
6445 print locations of exception catchpoints.
6446 * breakpoint.h (is_exception_catchpoint): Declare.
6448 2019-07-09 Pedro Alves <palves@redhat.com>
6450 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6452 (allocate_location_exception_catchpoint): New.
6453 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6454 (initialize_throw_catchpoint_ops): Install
6455 allocate_location_exception_catchpoint as allocate_location
6457 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6458 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6460 (breakpoint_address_is_meaningful): Delete.
6461 (bl_address_is_meaningful): New.
6462 (breakpoint_locations_match): Adjust comment.
6463 (bp_location_from_bp_type): New, factored out of...
6464 (bp_location::bp_location(breakpoint *)): ... this.
6465 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6467 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6468 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6469 breakpoint_address_is_meaningful.
6470 (bp_locations_compare): Adjust comment.
6471 (update_global_location_list): Use bl_address_is_meaningful
6472 instead of breakpoint_address_is_meaningful.
6473 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6475 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6476 * python/py-breakpoint.c (bppy_get_location): No longer check
6477 whether location is null.
6479 2019-07-09 Pedro Alves <palves@redhat.com>
6482 * breakpoint.c (print_one_breakpoint_location): Remove
6483 single-location assert.
6485 2019-07-09 Tom Tromey <tom@tromey.com>
6487 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6488 * configure: Rebuild.
6489 * configure.ac: Change common to gdbsupport.
6490 * gdbsupport: Rename from common.
6491 * acinclude.m4: Change common to gdbsupport.
6492 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6493 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6495 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6496 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6497 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6498 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6499 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6500 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6501 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6502 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6503 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6504 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6505 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6506 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6507 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6508 coff-pe-read.c, command.h, compile/compile-c-support.c,
6509 compile/compile-c.h, compile/compile-cplus-symbols.c,
6510 compile/compile-cplus-types.c, compile/compile-cplus.h,
6511 compile/compile-loc2c.c, compile/compile.c, completer.c,
6512 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6513 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6514 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6515 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6516 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6517 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6518 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6519 features/aarch64-core.c, features/aarch64-fpu.c,
6520 features/aarch64-pauth.c, features/aarch64-sve.c,
6521 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6522 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6523 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6524 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6525 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6526 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6527 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6528 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6529 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6530 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6531 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6532 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6533 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6534 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6535 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6536 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6537 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6538 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6539 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6540 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6541 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6542 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6543 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6544 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6545 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6546 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6547 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6548 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6549 minsyms.c, mips-linux-tdep.c, namespace.h,
6550 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6551 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6552 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6553 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6554 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6555 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6556 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6557 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6558 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6559 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6560 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6561 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6562 procfs.c, producer.c, progspace.h, psymtab.h,
6563 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6564 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6565 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6566 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6567 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6568 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6569 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6570 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6571 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6572 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6573 target-memory.c, target.c, target.h, target/waitstatus.c,
6574 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6575 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6576 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6577 unittests/array-view-selftests.c,
6578 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6579 unittests/common-utils-selftests.c,
6580 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6581 unittests/format_pieces-selftests.c,
6582 unittests/function-view-selftests.c,
6583 unittests/lookup_name_info-selftests.c,
6584 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6585 unittests/mkdir-recursive-selftests.c,
6586 unittests/observable-selftests.c,
6587 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6588 unittests/parse-connection-spec-selftests.c,
6589 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6590 unittests/scoped_fd-selftests.c,
6591 unittests/scoped_mmap-selftests.c,
6592 unittests/scoped_restore-selftests.c,
6593 unittests/string_view-selftests.c, unittests/style-selftests.c,
6594 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6595 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6596 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6597 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6598 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6599 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6601 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6603 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6605 (decode_digits_ordinary): Set explicit_line field in sal.
6606 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6607 symtab_and_line that was set on an explicit line number in
6608 assembler code. Do always update the recorded symtab and line if
6609 we do skip the prologue.
6611 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6613 * breakpoint.c (set_breakpoint_location_function): Remove
6614 explicit_loc parameter.
6615 (momentary_breakpoint_from_master): Update call to
6616 set_breakpoint_location_function.
6617 (add_location_to_breakpoint): Likewise.
6619 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6621 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6622 required features based on default bfd type when no specific bfd
6625 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6627 * NEWS: Mention that GDB printf and eval commands can now print
6628 C-style and Ada-style convenience var strings without
6629 calling the inferior.
6630 * printcmd.c (printf_c_string): Locally print GDB internal var
6631 instead of transiting via the inferior.
6632 (printf_wide_c_string): Likewise.
6634 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6636 PR breakpoints/25011
6637 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6639 2019-07-04 Tom Tromey <tom@tromey.com>
6642 * tui/tui-winsource.c (tui_clear_source_content): Update.
6643 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6644 (tui_update_breakpoint_info): Update.
6645 (tui_set_exec_info_content): Update.
6646 * tui/tui-source.c (tui_set_source_content_nil): Update.
6647 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6649 * tui/tui-data.h (enum tui_bp_flag): New.
6650 (tui_bp_flags): New enum flags type.
6651 (struct tui_source_element) <break_mode>: Change type. Rename
6653 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6654 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6656 * tui/tui-winsource.h: Fix comment.
6658 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6660 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6661 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6662 (store_fpregs_to_thread)
6663 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6664 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6665 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6666 (IWMMXT_REGS_SIZE): Add define.
6667 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6668 (fetch_vfp_regs, store_vfp_regs)
6669 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6670 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6672 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6674 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6676 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6677 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6678 (ARM_INT_REGISTER_SIZE): ...to this.
6679 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6680 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6681 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6682 (arm_linux_collect_gregset, supply_nwfpe_register)
6683 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6685 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6686 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6687 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6688 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6689 (arm_return_in_memory, arm_store_return_value)
6690 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6691 (arm_record_ld_st_multiple): Likewise.
6692 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6693 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6695 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6697 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6698 AARCH64_DISPLACED_MODIFIED_INSNS.
6699 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6700 (aarch64_displaced_step_copy_insn): Likewise.
6701 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6702 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6703 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6704 ARM_DISPLACED_MODIFIED_INSNS.
6705 * arm-tdep.c (arm_gdbarch_init): Likewise.
6706 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6707 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6708 (struct arm_displaced_step_closure): Use
6709 ARM_DISPLACED_MODIFIED_INSNS.
6711 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6713 * features/Makefile: Remove unused xml files.
6714 * features/aarch64.xml: Remove.
6715 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6716 * features/i386/amd64-avx-avx512.xml: Remove.
6717 * features/i386/amd64-avx-linux.xml: Remove.
6718 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6719 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6720 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6721 * features/i386/amd64-avx-mpx.xml: Remove.
6722 * features/i386/amd64-avx.xml: Remove.
6723 * features/i386/amd64-linux.xml: Remove.
6724 * features/i386/amd64-mpx-linux.xml: Remove.
6725 * features/i386/amd64-mpx.xml: Remove.
6726 * features/i386/amd64.xml: Remove.
6727 * features/i386/i386-avx-avx512-linux.xml: Remove.
6728 * features/i386/i386-avx-avx512.xml: Remove.
6729 * features/i386/i386-avx-linux.xml: Remove.
6730 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6731 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6732 * features/i386/i386-avx-mpx-linux.xml: Remove.
6733 * features/i386/i386-avx-mpx.xml: Remove.
6734 * features/i386/i386-avx.xml: Remove.
6735 * features/i386/i386-linux.xml: Remove.
6736 * features/i386/i386-mmx-linux.xml: Remove.
6737 * features/i386/i386-mmx.xml: Remove.
6738 * features/i386/i386-mpx-linux.xml: Remove.
6739 * features/i386/i386-mpx.xml: Remove.
6740 * features/i386/i386.xml: Remove.
6741 * features/i386/x32-avx-avx512-linux.xml: Remove.
6742 * features/i386/x32-avx-linux.xml: Remove.
6743 * features/i386/x32-linux.xml: Remove.
6745 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6747 * regformats/aarch64.dat: Remove.
6748 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6749 * regformats/i386/amd64-avx-linux.dat: Remove.
6750 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6751 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6752 * regformats/i386/amd64-linux.dat: Remove.
6753 * regformats/i386/amd64-mpx-linux.dat: Remove.
6754 * regformats/i386/amd64.dat: Remove.
6755 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6756 * regformats/i386/i386-avx-linux.dat: Remove.
6757 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6758 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6759 * regformats/i386/i386-linux.dat: Remove.
6760 * regformats/i386/i386-mmx-linux.dat: Remove.
6761 * regformats/i386/i386-mpx-linux.dat: Remove.
6762 * regformats/i386/i386.dat: Remove.
6763 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6764 * regformats/i386/x32-avx-linux.dat: Remove.
6765 * regformats/i386/x32-linux.dat: Remove.
6767 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6769 * aarch64-tdep.c: Remove xml self tests.
6770 * amd64-linux-tdep.c: Likewise.
6771 * amd64-tdep.c: Likewise.
6772 * i386-linux-tdep.c: Likewise.
6773 * i386-tdep.c: Likewise.
6775 2019-07-03 Pedro Alves <palves@redhat.com>
6778 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6779 (pipe_cmd_option_defs): New.
6780 (make_pipe_cmd_options_def_group): New.
6781 (pipe_command): Use gdb::option::process_options.
6782 (pipe_command_completer): New function.
6783 (_initialize_cli_cmds): Install completer for "pipe" command.
6785 2019-07-03 Pedro Alves <palves@redhat.com>
6787 * cli/cli-option.c (union option_value) <string>: New field.
6788 (struct option_def_and_value): Add ctor, move ctor, dtor and
6789 use DISABLE_COPY_AND_ASSIGN.
6790 (option_def_and_value::clear_value): New.
6791 (parse_option, save_option_value_in_ctx, get_val_type_str)
6792 (add_setshow_cmds_for_options): Handle var_string.
6793 * cli-option.h (union option_def::var_address) <string>: New
6795 (struct string_option_def): New.
6796 * maint-test-options.c (struct test_options_opts): Add default
6797 ctor and use DISABLE_COPY_AND_ASSIGN.
6798 <string_opt>: New field.
6799 (test_options_opts::~test_options_opts): New.
6800 (test_options_opts::dump): Also dump "-string".
6801 (test_options_option_defs): Install "string.
6803 2019-07-03 Pedro Alves <palves@redhat.com>
6805 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6806 option_value with a null enumeration.
6807 (complete_options): Save the option values in the context.
6808 (save_option_value_in_ctx): New, factored out from ...
6809 (process_options): ... here.
6810 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6812 * maint-test-options.c (test_options_opts::dump): New, factored
6814 (maintenance_test_options_command_mode): ... here.
6815 (maintenance_test_options_command_completion_result): Delete.
6816 (maintenance_test_options_command_completion_text): Update
6818 (maintenance_show_test_options_completion_result): Change
6819 prototype. Just print
6820 maintenance_test_options_command_completion_text.
6821 (save_completion_result): New.
6822 (maintenance_test_options_completer_mode): Pass options context to
6823 complete_options, and then save a dump.
6824 (_initialize_maint_test_options): Use add_cmd to install "maint
6825 show test-options-completion-result".
6827 2019-07-03 Pedro Alves <palves@redhat.com>
6829 * NEWS (New commands): Mention "with" and "maint with".
6830 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6831 (with_command, with_command_completer): New.
6832 (pipe_command): Adjust to new repeat_previous
6834 (_initialize_cli_cmds): Install the "with" command and its "w"
6836 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6838 * cli/cli-setshow.c (parse_cli_var_uinteger)
6839 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6840 argument strings for all var_types.
6841 (get_setshow_command_value_string): New, factored out from ...
6842 (do_show_command): ... this.
6843 * cli/cli-setshow.h: Include <string>.
6844 (get_setshow_command_value_string): Declare.
6845 * command.h (repeat_previous): Now returns const char *. Adjust
6847 * maint.c: Include "cli/cli-cmds.h".
6848 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6849 (_initialize_maint_cmds): Register the "maintenance with" command.
6850 * top.c (repeat_previous): Move bits from pipe_command here:
6851 Return the saved command line, if any; error out if there's no
6852 command to relaunch.
6854 2019-07-03 Pedro Alves <palves@redhat.com>
6856 * NEWS (New commands): Mention "maint set/show test-settings"
6857 instead of "maint test-settings".
6858 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6859 (maintenance_test_settings_set_list): Rename to ...
6860 (maintenance_set_test_settings_list): ... this.
6861 (maintenance_test_settings_show_list): Rename to ...
6862 (maintenance_show_test_settings_list): ... this.
6863 (maintenance_test_settings_cmd): Delete.
6864 (maintenance_test_settings_set_cmd): ...
6865 (maintenance_set_test_settings_cmd): ... this.
6866 (maintenance_test_settings_show_cmd): ...
6867 (maintenance_show_test_settings_cmd): ... this.
6868 (maintenance_test_settings_show_value_cmd):
6869 (maintenance_show_test_settings_value_cmd): ... this.
6870 (_initialize_maint_test_settings): No longer install the "maint
6871 test-settings" prefix command. Rename "maint test-settings set"
6872 to "maint set test-settings", and "maint test-settings show" to
6873 "maint show test-settings". Adjust all subcommands.
6875 2019-07-03 Pedro Alves <palves@redhat.com>
6877 * maint-test-settings.c: Fix file's intro comment. Replace all
6878 references to "test-options" with references to "test-settings",
6881 2019-07-03 Pedro Alves <palves@redhat.com>
6883 * maint-test-settings.c (maintenance_test_settings_xxx)
6884 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6886 (maintenance_test_settings_enums): Use them.
6887 (maintenance_test_settings_enum): Default to
6888 maintenance_test_settings_xxx.
6889 (_initialize_maint_test_settings): Initialize
6890 MAINTENANCE_TEST_SETTINGS_FILENAME.
6892 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6894 * breakpoint.h (remove_breakpoints_inf): Change return type to
6895 void, move function documentation here.
6896 * breakpoint.c (remove_breakpoints_inf): Change return type to
6897 void, move function documentation to header.
6899 2019-07-02 Pedro Alves <palves@redhat.com>
6901 * NEWS (Completion improvements): Mention "info threads".
6902 * thread.c (struct info_threads_opts, info_threads_option_defs)
6903 (make_info_threads_options_def_group): New.
6904 (info_threads_command): Use gdb::option::process_options.
6905 (info_threads_command_completer): New.
6906 (_initialize_thread): Use gdb::option::build_help to build the
6907 help text for "info threads".
6909 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6911 * defs.h (generic_load): Move from here...
6912 * symfile.h (generic_load): ... to here. Rename name parameter
6914 * symfile.c (generic_load): Add comment.
6916 2019-07-01 Tom Tromey <tromey@adacore.com>
6919 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6920 declaration of without_params. Fix formatting.
6922 2019-07-01 Tom Tromey <tromey@adacore.com>
6924 * ada-exp.y (find_primitive_type): Update.
6925 * ada-lang.h (ada_lookup_symbol): Update.
6926 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6928 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6930 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6932 PR breakpoints/24541
6933 * gdbarch.c: Regenerate.
6934 * gdbarch.h: Regenerate.
6935 * gdbarch.sh: Add 'stap_adjust_register'.
6936 * i386-tdep.c: Include '<unordered_set>'.
6937 (i386_stap_adjust_register): New function.
6938 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6939 * stap-probe.c (stap_parse_register_operand): Call
6940 'gdbarch_stap_adjust_register'.
6942 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6945 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6946 * python/python.c (do_start_initialization): Use 'xmalloc'
6947 instead of 'PyMem_Malloc'.
6949 2019-06-28 Tom Tromey <tromey@adacore.com>
6951 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6954 2019-06-27 Tom Tromey <tromey@adacore.com>
6956 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6958 (arm_find_mapping_symbol, arm_record_special_symbol)
6959 (_initialize_arm_tdep): Update.
6960 (arm_objfile_data_free): Remove.
6962 2019-06-27 Tom Tromey <tromey@adacore.com>
6964 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6965 to cp_print_static_field.
6967 2019-06-26 Tom Tromey <tromey@adacore.com>
6969 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6970 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6973 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6975 * features/aarch64-core.c (create_feature_aarch64_core):
6977 * features/aarch64-core.xml: Add cpsr flags.
6979 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6981 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6982 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6984 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6986 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6988 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6990 (arm_record_special_symbol): Don't insert new symbol in sorted
6991 position, push it at the end.
6993 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6995 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6996 (arm_mapping_symbol_s): Remove.
6997 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6998 (arm_mapping_symbol_vec): New typedef.
6999 (struct arm_per_objfile): Add constructor.
7000 <section_maps>: Change type to
7001 std::unique_ptr<arm_mapping_symbol_vec[]>.
7002 (arm_compare_mapping_symbols): Remove.
7003 (arm_find_mapping_symbol): Adjust to section_maps type change.
7004 (arm_objfile_data_free): Call delete on arm_per_objfile.
7005 (arm_record_special_symbol): Adjust to section_maps type change.
7006 Allocate arm_per_objfile with new.
7008 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7010 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7011 with the command prefix.
7013 2019-06-25 Tom Tromey <tom@tromey.com>
7015 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7016 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7018 2019-06-25 Tom Tromey <tom@tromey.com>
7020 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7022 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7025 2019-06-25 Tom Tromey <tom@tromey.com>
7027 * tui/tui-winsource.c
7028 (tui_source_window_base::set_is_exec_point_at): Add check against
7031 2019-06-25 Tom Tromey <tom@tromey.com>
7033 * tui/tui-source.c (tui_set_source_content): Don't check before
7035 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7039 * tui/tui-winsource.h (tui_update_source_window_as_is)
7040 (tui_alloc_source_buffer, tui_line_is_displayed)
7041 (tui_addr_is_displayed): Change type of win_info.
7042 * tui/tui-winsource.c (tui_update_source_window_as_is)
7043 (tui_clear_source_content, tui_show_source_line)
7044 (tui_show_source_content, tui_source_window_base::refill)
7045 (tui_source_window_base::set_is_exec_point_at)
7046 (tui_source_window_base::set_is_exec_point_at)
7047 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7048 (tui_alloc_source_buffer, tui_line_is_displayed)
7049 (tui_addr_is_displayed): Change type of win_info. Update.
7050 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7051 (tui_source_window_base::do_make_visible_with_new_height):
7053 * tui/tui-source.c (tui_set_source_content)
7054 (tui_set_source_content_nil)
7055 (tui_source_window::do_scroll_vertical): Update.
7056 * tui/tui-layout.c (show_layout): Update.
7057 * tui/tui-disasm.c (tui_set_disassem_content)
7058 (tui_disasm_window::do_scroll_vertical): Update.
7059 * tui/tui-data.h (tui_win_content): Remove.
7060 (struct tui_gen_win_info) <content, content_size>: Remove.
7061 (struct tui_source_element): Add initializers and destructor.
7062 (union tui_which_element, struct tui_win_element): Remove.
7063 (struct tui_source_window_base) <content>: New field.
7064 (struct tui_data_window): Remove destructor.
7065 (tui_alloc_content, tui_free_win_content)
7066 (tui_free_all_source_wins_content): Don't declare.
7067 * tui/tui-data.c (tui_initialize_static_data): Update.
7068 (init_content_element, tui_alloc_content): Remove.
7069 (~tui_gen_win_info): Update.
7070 (~tui_data_window, tui_free_all_source_wins_content)
7071 (tui_free_win_content, free_content, free_content_elements):
7074 2019-06-25 Tom Tromey <tom@tromey.com>
7076 * tui/tui-winsource.h (tui_clear_source_content)
7077 (tui_erase_source_content, tui_show_source_content): Change type
7079 * tui/tui-winsource.c (tui_clear_source_content)
7080 (tui_erase_source_content, tui_show_source_content): Change type
7082 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7083 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7085 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7087 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7089 2019-06-25 Tom Tromey <tom@tromey.com>
7091 * tui/tui-winsource.c (tui_clear_source_content)
7092 (tui_source_window_base::set_is_exec_point_at): Update.
7093 * tui/tui-source.c (tui_set_source_content_nil): Update.
7094 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7096 * tui/tui-data.c (init_content_element): Update.
7098 2019-06-25 Tom Tromey <tom@tromey.com>
7100 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7101 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7102 * tui/tui-layout.c (init_and_make_win): Update.
7103 * tui/tui.h (enum tui_win_type): Update.
7104 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7105 tui_win_is_auxillary.
7106 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7107 tui_win_is_auxillary.
7109 2019-06-25 Tom Tromey <tom@tromey.com>
7111 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7112 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7113 (tui_delete_data_content_windows, tui_display_all_data)
7114 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7116 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7117 * tui/tui-regs.c (tui_last_regs_line_no)
7118 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7119 (tui_show_registers): Update.
7120 (tui_show_register_group): Return void. Update.
7121 (tui_display_registers_from, tui_display_reg_element_at_line)
7122 (tui_display_registers_from_line, tui_check_register_values):
7124 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7126 (struct tui_data_window) <regs_content>: Now a std::vector.
7127 <regs_content_count>: Remove.
7128 (tui_add_content_elements, tui_free_data_content): Don't declare.
7129 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7130 (init_content_element): Remove DATA_WIN case. Add assert.
7131 (tui_add_content_elements): Remove.
7132 (tui_data_window): Update.
7133 (tui_free_data_content): Remove.
7134 (free_content_elements): Remove DATA_WIN case.
7136 2019-06-25 Tom Tromey <tom@tromey.com>
7138 * tui/tui-data.c (tui_data_item_window): Update.
7139 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7140 * tui/tui-windata.c (tui_display_all_data)
7141 (tui_display_data_from_line): Update.
7142 (tui_check_data_values): Remove.
7143 * tui/tui-regs.c (tui_show_register_group)
7144 (tui_display_reg_element_at_line): Update.
7145 * tui/tui-hooks.c (tui_register_changed)
7146 (tui_refresh_frame_and_register_information): Call
7147 tui_check_register_values.
7148 * tui/tui-data.h (struct tui_data_window) <data_content,
7149 data_content_count, data_type>: Remove.
7150 (enum tui_data_type): Remove.
7152 * tui/tui-data.c (tui_data_window::clear_detail)
7153 (~tui_data_window): Update.
7155 2019-06-25 Tom Tromey <tom@tromey.com>
7157 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7159 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7160 Rename from tui_first_data_item_displayed. Update.
7161 (tui_data_window::refresh_all)
7162 (tui_data_window::do_scroll_vertical): Update.
7163 * tui/tui-data.h (struct tui_data_window)
7164 <first_data_item_displayed>: Declare new method.
7166 2019-06-25 Tom Tromey <tom@tromey.com>
7168 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7169 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7171 (tui_initialize_static_data): ...here.
7173 2019-06-25 Tom Tromey <tom@tromey.com>
7175 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7176 (tui_display_registers_from, tui_check_register_values): Update.
7177 (tui_display_register): Remove win_info parameter; update.
7178 (tui_get_register): Change type of parameters.
7179 * tui/tui-data.h (struct tui_data_element): Remove.
7180 (union tui_which_element) <data>: Remove.
7181 <data_window>: Change type.
7182 (struct tui_data_item_window): New.
7183 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7185 (~tui_data_item_window): New destructor.
7186 (free_content_elements): Remove DATA_ITEM_WIN case.
7188 2019-06-25 Tom Tromey <tom@tromey.com>
7190 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7195 * tui/tui-data.h (struct tui_command_element): Remove.
7196 (union tui_which_element) <command>: Remove.
7197 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7199 (free_content_elements): Remove CMD_WIN case.
7201 2019-06-25 Tom Tromey <tom@tromey.com>
7203 * tui/tui-layout.c (tui_set_layout): Update.
7204 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7205 * tui/tui-data.c (layout_def): Update.
7207 2019-06-25 Tom Tromey <tom@tromey.com>
7209 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7210 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7211 (tui_source_window_base::set_new_height): Update.
7212 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7214 (tui_set_locator_fullname, tui_set_locator_info)
7215 (tui_show_frame_info): Update.
7216 * tui/tui-source.c (tui_set_source_content)
7217 (tui_source_is_displayed): Update.
7218 * tui/tui-layout.c (show_source_disasm_command, show_data)
7219 (show_source_or_disasm_and_command): Update.
7220 * tui/tui-disasm.c (tui_set_disassem_content)
7221 (tui_get_begin_asm_address): Update.
7222 * tui/tui-data.h (struct tui_locator_element): Remove.
7223 (union tui_which_element) <locator>: Remove.
7224 (struct tui_locator_window): New.
7225 (tui_locator_win_info_ptr): Change return type.
7226 * tui/tui-data.c (_locator): Change type.
7227 (tui_locator_win_info_ptr): Change return type.
7228 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7229 (tui_alloc_content): Add assert.
7231 2019-06-25 Tom Tromey <tom@tromey.com>
7233 * tui/tui-winsource.c
7234 (tui_exec_info_window::maybe_allocate_content): New method.
7235 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7236 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7237 (make_source_or_disasm_window): Add cast.
7238 * tui/tui-data.h (union tui_which_element) <simple_string>:
7240 (struct tui_source_info): New.
7241 (struct tui_source_window_base) <execution_info>: Change type.
7242 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7243 case, and add assert.
7244 (tui_alloc_content): Add assert.
7246 2019-06-25 Tom Tromey <tom@tromey.com>
7248 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7249 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7250 * tui/tui-data.c (tui_alloc_win_info): Remove.
7252 2019-06-25 Tom Tromey <tom@tromey.com>
7254 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7255 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7258 2019-06-25 Tom Tromey <tom@tromey.com>
7260 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7261 make_visible_with_new_height method.
7262 (tui_win_info::make_visible_with_new_height): New method.
7263 (tui_source_window_base::do_make_visible_with_new_height)
7264 (tui_data_window::do_make_visible_with_new_height)
7265 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7266 (make_visible_with_new_height): Remove.
7267 (tui_resize_all, tui_adjust_win_heights): Use
7268 make_visible_with_new_height method.
7269 * tui/tui-data.h (struct tui_win_info)
7270 <do_make_visible_with_new_height, make_visible_with_new_height>:
7272 (struct tui_source_window_base, struct tui_data_window)
7273 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7276 2019-06-25 Tom Tromey <tom@tromey.com>
7278 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7280 (update_tab_width): Call update_tab_width method.
7281 * tui/tui-data.h (struct tui_win_info)
7282 (struct tui_source_window_base) <update_tab_width>: New methods.
7284 2019-06-25 Tom Tromey <tom@tromey.com>
7286 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7288 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7290 (tui_gen_win_info::make_visible): Update.
7291 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7293 * tui/tui-data.h (enum tui_box): New enum.
7294 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7298 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7299 init_and_make_win for EXEC_INFO_WIN.
7300 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7302 (struct tui_win_info) <~tui_win_info>: Inline.
7303 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7305 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7306 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7308 (tui_initialize_static_data): Update.
7309 (~tui_gen_win_info): Handle more cleanup here.
7310 (~tui_source_window_base): Delete "execution_info".
7311 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7313 2019-06-25 Tom Tromey <tom@tromey.com>
7315 * tui/tui-layout.c (make_command_window): Don't set
7317 (show_source_disasm_command): Call the reset method.
7318 (show_data): Don't set can_highlight. Call the reset method.
7319 (tui_gen_win_info::reset): Rename from init_gen_win_info
7320 (init_and_make_win): Simplify. Return tui_gen_win_info.
7321 (show_source_or_disasm_and_command): Call the reset method.
7322 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7323 (struct tui_cmd_window): Set can_highlight.
7325 2019-06-25 Tom Tromey <tom@tromey.com>
7327 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7329 (tui_make_visible, tui_make_invisible): Rewrite.
7330 (tui_win_info::make_visible): Remove.
7331 (tui_source_window_base::make_visible): Update.
7332 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7333 method. Moved from...
7334 (struct tui_win_info) <make_visible>: ...here.
7336 2019-06-25 Tom Tromey <tom@tromey.com>
7338 * tui/tui-winsource.c
7339 (tui_source_window_base::do_scroll_horizontal): Remove direction
7341 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7342 direction parameter.
7343 * tui/tui-win.c (tui_win_info::forward_scroll)
7344 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7345 (tui_win_info::right_scroll): Update.
7346 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7347 direction parameter.
7348 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7349 direction parameter.
7350 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7351 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7352 Remove direction parameter.
7353 (struct tui_source_window_base, struct tui_source_window)
7354 (struct tui_disasm_window, struct tui_data_window)
7355 (struct tui_cmd_window): Update.
7357 2019-06-25 Tom Tromey <tom@tromey.com>
7359 * tui/tui-winsource.h (tui_set_exec_info_content)
7360 (tui_show_exec_info_content, tui_erase_exec_info_content)
7361 (tui_clear_exec_info_content, tui_update_exec_info): Change
7362 argument to tui_source_window_base.
7363 * tui/tui-winsource.c (tui_set_exec_info_content)
7364 (tui_show_exec_info_content, tui_erase_exec_info_content)
7365 (tui_clear_exec_info_content, tui_update_exec_info): Change
7366 argument to tui_source_window_base.
7368 2019-06-25 Tom Tromey <tom@tromey.com>
7370 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7371 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7373 2019-06-25 Tom Tromey <tom@tromey.com>
7375 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7378 2019-06-25 Tom Tromey <tom@tromey.com>
7380 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7382 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7384 * tui/tui-source.c (tui_set_source_content): Update.
7385 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7387 2019-06-25 Tom Tromey <tom@tromey.com>
7389 * tui/tui-win.c (window_name_completer, tui_set_focus)
7390 (tui_all_windows_info): Use name method.
7391 * tui/tui-data.h (struct tui_gen_win_info)
7392 (struct tui_source_window, struct tui_disasm_window)
7393 (struct tui_data_window, struct tui_cmd_window) <name>: New
7395 (tui_win_name): Don't declare.
7396 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7397 (tui_win_name): Remove.
7399 2019-06-25 Tom Tromey <tom@tromey.com>
7401 * tui/tui-winsource.h (tui_update_source_window)
7402 (tui_update_source_window_as_is): Change parameter type.
7403 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7404 to be a tui_source_window_base.
7405 (tui_update_source_window_as_is): Likewise.
7406 * tui/tui-win.c (make_visible_with_new_height): Update.
7408 2019-06-25 Tom Tromey <tom@tromey.com>
7410 * tui/tui-winsource.c (tui_erase_source_content)
7411 (tui_show_source_content, tui_show_exec_info_content)
7412 (tui_erase_exec_info_content): Use refresh_window method.
7413 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7414 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7415 from tui_refresh_win.
7416 (tui_data_window::refresh_window): New method.
7417 (tui_win_info::refresh, tui_source_window_base::refresh)
7418 (tui_refresh_all): Use refresh_window method.
7419 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7421 * tui/tui-regs.c (tui_display_register): Call refresh_window
7423 * tui/tui-layout.c (show_source_disasm_command)
7424 (show_source_or_disasm_and_command): Call refresh_window method.
7425 * tui/tui-data.h (struct tui_gen_win_info)
7426 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7429 2019-06-25 Tom Tromey <tom@tromey.com>
7431 * tui/tui.c (tui_rl_other_window, tui_enable)
7432 (tui_is_window_visible, tui_get_command_dimension): Update.
7433 * tui/tui-winsource.c (tui_update_source_window_as_is)
7434 (tui_clear_source_content, tui_erase_source_content)
7435 (tui_show_source_line, tui_source_window_base::refill)
7436 (tui_source_window_base::do_scroll_horizontal)
7437 (tui_source_window_base::set_is_exec_point_at)
7438 (tui_update_breakpoint_info, tui_set_exec_info_content)
7439 (tui_alloc_source_buffer, tui_line_is_displayed)
7440 (tui_addr_is_displayed): Update.
7441 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7442 (tui_check_and_display_highlight_if_needed)
7443 (tui_win_info::make_visible, tui_win_info::refresh)
7444 (tui_refresh_all): Update.
7445 * tui/tui-windata.c (tui_first_data_item_displayed)
7446 (tui_delete_data_content_windows, tui_erase_data_content)
7447 (tui_display_all_data, tui_data_window::refresh_all)
7448 (tui_check_data_values): Update.
7449 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7450 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7451 (tui_win_info::backward_scroll, tui_refresh_all_win)
7452 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7453 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7454 (tui_source_window_base::set_new_height)
7455 (tui_data_window::set_new_height)
7456 (make_invisible_and_set_new_height)
7457 (make_visible_with_new_height, new_height_ok)
7458 (parse_scrolling_args): Update.
7459 * tui/tui-stack.c (tui_show_frame_info): Update.
7460 * tui/tui-source.c (tui_set_source_content)
7461 (tui_set_source_content_nil, tui_source_is_displayed)
7462 (tui_source_window::do_scroll_vertical): Update.
7463 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7464 (tui_display_registers_from, tui_display_reg_element_at_line)
7465 (tui_check_register_values, tui_reg_command): Update.
7466 * tui/tui-layout.c (tui_default_win_height)
7467 (show_source_disasm_command, show_data, init_and_make_win)
7468 (show_source_or_disasm_and_command): Update.
7469 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7470 (tui_redisplay_readline, tui_mld_flush)
7471 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7473 * tui/tui-disasm.c (tui_set_disassem_content)
7474 (tui_disasm_window::do_scroll_vertical): Update.
7475 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7477 (struct tui_win_info): Derive from tui_gen_win_info.
7478 <~tui_win_info>: Mark as override.
7479 <generic>: Remove member.
7480 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7481 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7482 (~tui_data_window, ~tui_win_info)
7483 (tui_free_all_source_wins_content): Update.
7484 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7486 2019-06-25 Tom Tromey <tom@tromey.com>
7488 * tui/tui-layout.c (init_and_make_win): Use new.
7489 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7490 destructor, initializers.
7491 (tui_alloc_generic_win_info): Don't declare.
7492 * tui/tui-data.c (_locator): Add argument to constructor.
7493 (source_win, disasm_win): New globals.
7494 (exec_info): Remove.
7495 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7497 (tui_alloc_generic_win_info): Remove.
7498 (init_content_element): Use new.
7499 (tui_win_info::tui_win_info): Update.
7500 (free_content_elements) <case DATA_WIN>: Use delete.
7502 2019-06-25 Tom Tromey <tom@tromey.com>
7504 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7505 * tui/tui-windata.c (tui_first_data_item_displayed)
7506 (tui_delete_data_content_windows): Update.
7507 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7508 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7509 (tui_display_registers_from, tui_check_register_values): Update.
7510 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7512 * tui/tui-data.c (init_content_element): Update. Allocate the new
7514 (tui_free_data_content): Update.
7515 (free_content_elements) <case DATA_WIN>: Free the window.
7517 2019-06-25 Tom Tromey <tom@tromey.com>
7519 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7521 * tui/tui-layout.c (make_command_window)
7522 (show_source_disasm_command, show_data, init_and_make_win)
7523 (show_source_or_disasm_and_command): Update.
7524 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7526 <can_highight, is_highlighted>: Now bool.
7527 (tui_set_win_highlight): Don't declare.
7528 * tui/tui-data.c (tui_set_win_highlight): Remove.
7530 2019-06-25 Tom Tromey <tom@tromey.com>
7532 * tui/tui-wingeneral.c (make_visible): Remove check of window
7535 2019-06-25 Tom Tromey <tom@tromey.com>
7537 * tui/tui-win.c (tui_win_info::max_height)
7538 (tui_cmd_window::max_height): New methods.
7539 (new_height_ok): Call max_height.
7540 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7541 <max_height>: New method.
7543 2019-06-25 Tom Tromey <tom@tromey.com>
7545 * tui/tui-win.c (tui_source_window_base::set_new_height)
7546 (tui_data_window::set_new_height): New methods.
7547 (make_invisible_and_set_new_height): Call set_new_height method.
7548 * tui/tui-data.h (struct tui_win_info)
7549 (struct tui_source_window_base, struct tui_data_window)
7550 <set_new_height>: New method.
7552 2019-06-25 Tom Tromey <tom@tromey.com>
7554 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7555 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7556 tui_refresh_data_win.
7557 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7559 (tui_refresh_all_win): Call the refresh_all method.
7560 (tui_set_focus): Likewise.
7561 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7562 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7565 2019-06-25 Tom Tromey <tom@tromey.com>
7567 * tui/tui-winsource.h (tui_refill_source_window)
7568 (tui_set_is_exec_point_at): Don't declare.
7569 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7570 (tui_source_window_base::refill): Rename from
7571 tui_refill_source_window.
7572 (tui_source_window_base::do_scroll_horizontal): Update.
7573 (tui_source_window_base::set_is_exec_point_at): Rename from
7574 tui_set_is_exec_point_at.
7575 (tui_update_all_breakpoint_info): Update.
7576 * tui/tui-stack.c (tui_show_frame_info): Update.
7577 * tui/tui-layout.c (show_data): Add cast.
7578 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7579 * tui/tui-data.h (struct tui_source_window_base) <refill,
7580 set_is_exec_point_at>: New methods.
7581 (tui_source_windows, tui_add_to_source_windows): Update types.
7582 (tui_add_to_source_windows): Remove redundant declaration.
7583 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7584 (tui_source_windows): Change return type.
7585 (tui_clear_source_windows_detail): Update.
7586 (tui_add_to_source_windows): Change type of parameter.
7587 (tui_free_all_source_wins_content): Update.
7589 2019-06-25 Tom Tromey <tom@tromey.com>
7591 * tui/tui-wingeneral.c (tui_win_info::refresh)
7592 (tui_source_window_base::refresh): New methods.
7593 (tui_refresh_all): Call the refresh method.
7594 * tui/tui-data.h (struct tui_win_info)
7595 (struct tui_source_window_base) <refresh>: New method.
7597 2019-06-25 Tom Tromey <tom@tromey.com>
7599 * tui/tui.h (tui_is_window_visible): Return bool.
7600 * tui/tui.c (tui_is_window_visible): Return bool.
7601 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7602 (tui_make_visible, tui_make_invisible)
7603 (tui_win_info::make_visible)
7604 (tui_source_window_base::make_visible, make_all_visible)
7605 (tui_make_all_visible, tui_make_all_invisible): Update.
7606 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7607 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7609 (struct tui_win_info, struct tui_source_window_base)
7610 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7611 * tui/tui-data.c (tui_init_generic_part): Update.
7613 2019-06-25 Tom Tromey <tom@tromey.com>
7615 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7616 (tui_source_window_base::make_visible): New methods.
7617 (make_all_visible): Make method call.
7618 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7619 (struct tui_source_window_base, struct tui_cmd_window): Override
7621 (tui_win_is_source_type): Don't declare.
7622 * tui/tui-data.c (tui_win_is_source_type): Remove.
7624 2019-06-25 Tom Tromey <tom@tromey.com>
7626 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7629 2019-06-25 Tom Tromey <tom@tromey.com>
7631 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7632 Inline constructor. Add initializers for members.
7633 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7634 constructors; now inline in class.
7636 2019-06-25 Tom Tromey <tom@tromey.com>
7638 * tui/tui-regs.c (tui_show_registers): Update.
7639 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7641 * tui/tui-data.c (tui_data_window::clear_detail)
7642 (tui_data_window): Update.
7644 2019-06-25 Tom Tromey <tom@tromey.com>
7646 * tui/tui-windata.c (tui_display_all_data)
7647 (tui_display_data_from_line, tui_display_data_from)
7648 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7650 * tui/tui-regs.c (tui_last_regs_line_no)
7651 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7652 (tui_show_registers, tui_show_register_group)
7653 (tui_display_registers_from, tui_display_reg_element_at_line)
7654 (tui_display_registers_from_line, tui_check_register_values)
7655 (tui_reg_next, tui_reg_prev): Update.
7656 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7657 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7659 (struct tui_win_info) <detail>: Remove. Add new fields from
7661 (TUI_DATA_WIN): Add cast.
7662 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7663 (~tui_data_window): Simplify.
7665 2019-06-25 Tom Tromey <tom@tromey.com>
7667 * tui/tui-layout.c (show_source_disasm_command)
7668 (show_source_or_disasm_and_command): Update.
7669 * tui/tui-io.c (update_cmdwin_start_line)
7670 (tui_redisplay_readline): Update.
7671 * tui/tui-data.h (struct tui_command_info): Remove.
7672 (struct tui_win_info) <detail>: Remove command_info member.
7673 (struct tui_data_window) <start_line>: New member, from
7675 (TUI_CMD_WIN): Add casts.
7677 2019-06-25 Tom Tromey <tom@tromey.com>
7679 * tui/tui-winsource.c (tui_update_source_window)
7680 (tui_refill_source_window)
7681 (tui_source_window_base::do_scroll_horizontal)
7682 (tui_update_breakpoint_info, tui_set_exec_info_content)
7683 (tui_show_exec_info_content, tui_erase_exec_info_content)
7684 (tui_clear_exec_info_content): Update.
7685 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7687 * tui/tui-win.c (make_invisible_and_set_new_height)
7688 (make_visible_with_new_height): Update.
7689 * tui/tui-source.c (tui_set_source_content)
7690 (tui_show_symtab_source): Update.
7691 * tui/tui-layout.c (extract_display_start_addr)
7692 (show_source_disasm_command, show_data)
7693 (make_source_or_disasm_window)
7694 (show_source_or_disasm_and_command): Update.
7695 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7696 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7698 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7699 to tui_source_window_base.
7700 (struct tui_win_info) <detail>: Remove source_info member.
7701 (struct tui_source_window_base) <has_locator>: Inline.
7702 Move contents from tui_source_info; rename has_locator member to
7704 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7705 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7707 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7709 (tui_free_all_source_wins_content): Cast to
7710 tui_source_window_base.
7712 2019-06-25 Tom Tromey <tom@tromey.com>
7714 * tui/tui-win.c (make_invisible_and_set_new_height)
7715 (make_visible_with_new_height): Call has_locator method.
7716 * tui/tui-layout.c (show_source_disasm_command, show_data)
7717 (show_source_or_disasm_and_command): Update for bool change.
7718 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7719 (tui_win_info) <has_locator>: New method.
7720 (struct tui_source_window_base) <has_locator>: New method.
7721 (tui_win_has_locator): Don't declare.
7722 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7723 from tui_win_has_locator.
7724 (tui_source_window_base): Use false, not FALSE.
7726 2019-06-25 Tom Tromey <tom@tromey.com>
7728 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7729 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7730 clear_detail method directly.
7731 (tui_clear_win_detail): Remove.
7733 2019-06-25 Tom Tromey <tom@tromey.com>
7735 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7736 "this", not TUI_DISASM_WIN.
7738 2019-06-25 Tom Tromey <tom@tromey.com>
7740 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7742 * tui/tui-winsource.c
7743 (tui_source_window_base::do_scroll_horizontal): Rename from
7744 tui_horizontal_source_scroll.
7745 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7746 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7747 from tui_vertical_data_scroll.
7748 * tui/tui-win.h (tui_scroll): Don't declare.
7749 * tui/tui-win.c (tui_win_info::forward_scroll)
7750 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7751 (tui_win_info::right_scroll): Rename and update.
7752 (tui_scroll_forward_command, tui_scroll_backward_command)
7753 (tui_scroll_left_command, tui_scroll_right_command): Update.
7754 (tui_scroll): Remove.
7755 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7756 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7757 from tui_vertical_source_scroll.
7758 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7759 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7760 from tui_vertical_disassem_scroll.
7761 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7762 do_scroll_horizontal>: New methods.
7763 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7765 (struct tui_source_window_base): Add do_scroll_horizontal.
7766 (struct tui_source_window, struct tui_disasm_window): Add
7768 (struct tui_data_window, struct tui_cmd_window): Add
7769 do_scroll_horizontal and do_scroll_vertical.
7770 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7772 2019-06-25 Tom Tromey <tom@tromey.com>
7774 * tui/tui-data.h (struct tui_source_window_base): New struct.
7775 (struct tui_source_window): Derive from tui_source_window_base.
7776 (struct tui_disasm_window): New struct.
7777 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7778 from tui_source_window::clear_detail.
7779 (tui_source_window_base): Rename from tui_source_window.
7780 (~tui_source_window_base): Rename from ~tui_source_window.
7781 (tui_alloc_win_info): Create a tui_disasm_window.
7783 2019-06-25 Tom Tromey <tom@tromey.com>
7785 * tui/tui-data.h (struct tui_source_window)
7786 (struct tui_data_window): Declare destructors.
7787 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7789 (tui_win_info): Simplify.
7791 2019-06-25 Tom Tromey <tom@tromey.com>
7793 * tui/tui-winsource.c (tui_display_main)
7794 (tui_update_source_windows_with_addr)
7795 (tui_update_all_breakpoint_info): Update.
7796 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7797 (new_height_ok, parse_scrolling_args): Update.
7798 * tui/tui-stack.c (tui_show_frame_info): Update.
7799 * tui/tui-data.h (struct tui_list): Remove.
7800 (tui_source_windows): Return a reference to a std::vector.
7801 * tui/tui-data.c (source_windows): Now a std::vector.
7802 (tui_source_windows): Change return type.
7803 (tui_clear_source_windows): Rewrite.
7804 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7805 (tui_free_all_source_wins_content): Rewrite.
7807 2019-06-25 Tom Tromey <tom@tromey.com>
7809 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7810 (struct tui_data_window, struct tui_cmd_window): Declare
7811 clear_detail method.
7812 * tui/tui-data.c (tui_source_window::clear_detail)
7813 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7815 (tui_clear_win_detail): Simplify.
7817 2019-06-25 Tom Tromey <tom@tromey.com>
7819 * tui/tui-layout.c (make_source_window, make_disasm_window)
7820 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7821 Return the new window.
7822 (show_source_disasm_command, show_data)
7823 (show_source_or_disasm_and_command): Update.
7825 2019-06-25 Tom Tromey <tom@tromey.com>
7827 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7828 parameter. Return the new window.
7829 (show_source_disasm_command): Update and remove NULL check.
7830 (show_source_or_disasm_and_command): Update.
7832 2019-06-25 Tom Tromey <tom@tromey.com>
7834 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7836 2019-06-25 Tom Tromey <tom@tromey.com>
7838 * tui/tui-data.h (struct tui_win_info): Make constructor
7839 protected. Make destructor virtual. Add initializers.
7840 (tui_source_window, tui_data_window, tui_cmd_window): New
7842 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7843 constructor. Add "type" parameter.
7844 (tui_source_window, tui_data_window, tui_cmd_window): New
7846 (tui_alloc_win_info): Instantiate the appropriate subclass.
7848 2019-06-25 Tom Tromey <tom@tromey.com>
7850 * tui/tui-win.c (tui_resize_all): Use delete.
7851 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7853 (tui_free_window): Don't declare.
7854 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7857 2019-06-25 Tom Tromey <tom@tromey.com>
7859 * tui/tui-data.h (struct tui_win_info): Add constructor.
7860 * tui/tui-data.c (tui_alloc_win_info): Use new.
7861 (tui_free_window): Use delete.
7863 2019-06-22 Tom Tromey <tom@tromey.com>
7865 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7867 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7869 2019-06-22 Tom Tromey <tom@tromey.com>
7871 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7873 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7875 2019-06-22 Tom de Vries <tdevries@suse.de>
7877 * dwarf2read.c (create_addrmap_from_aranges)
7878 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7881 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7883 * dwarf2read.h (dwarf2_section_info_def): Remove.
7884 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7885 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7886 std::vector<dwarf2_section_info>.
7887 (struct dwo_file) <~dwo_file>: Remove.
7888 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7890 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7891 (dwarf2_read_debug_names): Likewise.
7892 (create_debug_types_hash_table): Change parameter type to
7893 array_view, adjust code accordingly.
7894 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7895 (partial_die_info::fixup): Likewise.
7896 (determine_prefix): Likewise.
7897 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7899 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7901 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7903 <~dwo_file>: Remove call to gdb_bfd_unref.
7904 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7905 gdb_bfd_ref_ptr::get.
7907 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7909 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7911 * dwarf2read.c (struct dwo_file): Initialize fields.
7913 (free_dwo_file): Remove, move content to ~dwo_file.
7914 (struct dwo_file_deleter): Remove.
7915 (dwo_file_up>: Remove custom deleter.
7916 (free_dwo_files): Remove.
7917 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7919 (process_skeletonless_type_units): Call unique_ptr::get.
7920 (allocate_dwo_file_hash_table): Add deleter to created hash
7921 table. Change return type to htab_up.
7922 (lookup_dwo_file_slot): Don't memset dwo_file, call
7924 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7925 (create_dwo_unit_in_dwp_v2): Likewise.
7926 (open_and_init_dwo_file): Likewise.
7927 (free_dwo_file_from_slot): Remove.
7929 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7931 * dwarf2read.h (struct dwarf2_section_info) <readin,
7932 is_virtual>: Change type to bool.
7933 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7936 2019-06-19 Tom Tromey <tom@tromey.com>
7938 * tui/tui-data.h (tui_init_content_element): Don't declare.
7940 2019-06-19 Tom Tromey <tom@tromey.com>
7942 * tui/tui-data.h (tui_init_win_info): Don't declare.
7944 2019-06-19 Tom de Vries <tdevries@suse.de>
7946 * dwarf2read.h (abstract_to_concrete): Change type to
7947 std::unordered_map<sect_offset, std::vector<sect_offset>,
7948 gdb::hash_enum<sect_offset>>.
7950 2019-06-19 Tom Tromey <tromey@adacore.com>
7952 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7953 EVAL_AVOID_SIDE_EFFECTS specially.
7955 2019-06-19 Tom Tromey <tromey@adacore.com>
7957 * source-cache.c (highlighter): New global.
7958 (source_cache::get_source_lines): Create a highlighter on demand.
7960 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7962 * defs.h (deprecated_interactive_hook): Delete declaration.
7963 * interps.c (clear_interpreter_hooks): Remove use of
7964 deprecated_interactive_hook.
7965 * top.c (deprecated_interactive_hook): Delete definition.
7966 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7968 2019-06-18 Tom de Vries <tdevries@suse.de>
7971 * dwarf2read.h (abstract_to_concrete): Change type from
7972 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7973 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7974 * dwarf2read.c (read_variable): Update.
7975 (dwarf2_fetch_die_loc_sect_off): Update.
7977 2019-06-17 Tom de Vries <tdevries@suse.de>
7980 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7981 accessing parent[parent_len - 1].
7983 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7986 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7987 call dtrace_process_dof with NULL dof.
7989 2019-06-16 Tom de Vries <tdevries@suse.de>
7992 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7994 2019-06-16 Tom Tromey <tom@tromey.com>
7996 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7997 (make_all_visible): Use address of member.
7999 2019-06-16 Tom Tromey <tom@tromey.com>
8001 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8002 (tui_free_window, free_content, free_content_elements): Remove
8004 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8006 * tui/tui-regs.c (tui_show_register_group)
8007 (tui_display_registers_from, tui_display_reg_element_at_line):
8008 Remove unnecessary cast.
8010 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8012 * linux-nat.c (normal_mask): Delete.
8013 (_initialize_linux_nat): Don't initialise normal_mask.
8015 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8018 * dwarf-index-write.h (write_psymtabs_to_index): Add
8019 dwz_basename parameter.
8020 * dwarf-index-write.c (write_gdbindex): Move file writing to
8021 write_gdbindex_1. Change return type void.
8022 (assert_file_size): Move up, remove filename parameter.
8023 (write_gdbindex_1): New function.
8024 (write_debug_names): Change return type to void, call
8026 (struct index_wip_file): New struct.
8027 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8028 file logic to index_wip_file. Write index for dwz file if
8030 (save_gdb_index_command): Pass basename of dwz file, if present.
8031 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8032 build-id of dwz file, if present.
8033 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8034 (dwarf2_get_dwz_file): Likewise.
8035 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8036 (dwarf2_get_dwz_file): Likewise.
8038 2019-06-16 Tom Tromey <tom@tromey.com>
8040 * coffread.c (process_coff_symbol): Use xstrdup.
8041 * value.c (create_internalvar): Use xstrdup.
8043 2019-06-16 Tom Tromey <tom@tromey.com>
8045 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8046 * breakpoint.c (stopin_command, stopat_command)
8047 (until_break_command, decode_location_default): Remove unnecessary
8049 * utils.c (subset_compare): Remove unnecessary cast.
8050 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8052 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8054 * infcmd.c (path_command): Remove unnecessary cast.
8055 * coffread.c (decode_type): Remove unnecessary cast.
8056 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8057 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8058 * tui/tui-stack.c (tui_show_locator_content)
8059 (tui_show_frame_info): Remove unnecessary cast.
8060 * tui/tui-win.c (tui_scroll_forward_command)
8061 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8062 (parse_scrolling_args): Remove unnecessary cast.
8063 * tui/tui-data.c (init_win_info, tui_del_window)
8064 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8065 (free_content_elements): Remove unnecessary cast.
8066 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8068 * tui/tui-source.c (tui_set_source_content)
8069 (tui_vertical_source_scroll): Remove unnecessary cast.
8070 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8072 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8073 * tui/tui-regs.c (tui_display_registers_from)
8074 (tui_display_register): Remove unnecessary cast.
8075 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8076 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8077 (make_visible): Remove unnecessary cast.
8078 * tui/tui-winsource.c (tui_erase_source_content)
8079 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8081 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8082 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8083 * stabsread.c (read_type, read_array_type, read_range_type):
8084 Remove unnecessary cast.
8085 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8086 (parse_symbol, parse_type, upgrade_type, parse_external)
8087 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8089 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8091 2019-06-16 Tom Tromey <tom@tromey.com>
8093 * tui/tui-data.c (tui_alloc_generic_win_info)
8094 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8097 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8098 Andrew Burgess <andrew.burgess@embecosm.com>
8100 * f-typeprint.c (f_print_type): Don't return early for not
8101 associated or not allocated types.
8102 (f_type_print_varspec_suffix): Add print_rank parameter and print
8103 ranks of array types in case they dangling.
8104 (f_type_print_base): Add print_rank parameter.
8106 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8108 * NEWS: Mention new MI commands.
8109 * break-catch-throw.c (enum exception_event_kind): Move to
8111 (print_mention_exception_catchpoint): Output text as a single
8113 (catch_exception_command_1): Rename to...
8114 (catch_exception_event): ...this, make non-static, update header
8115 command, and change some parameter types.
8116 (catch_catch_command): Update for changes to
8117 catch_exception_command_1.
8118 (catch_throw_command): Likewise.
8119 (catch_rethrow_command): Likewise.
8120 * breakpoint.c (enum exception_event_kind): Delete.
8121 * breakpoint.h (enum exception_event_kind): Moved here from
8122 break-catch-throw.c.
8123 (catch_exception_event): Declare.
8124 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8125 (mi_cmd_catch_throw): New function.
8126 (mi_cmd_catch_rethrow): New function.
8127 (mi_cmd_catch_catch): New function.
8128 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8129 'catch-catch' entries.
8130 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8131 (mi_cmd_catch_rethrow): Declare.
8132 (mi_cmd_catch_catch): Declare.
8134 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8136 * annotate.c (annotate_source_line): Change return type to void,
8137 update implementation to match.
8138 * annotate.h (annotate_source_line): Change return type to void,
8139 update header comment.
8140 * stack.c (print_frame_info): Don't change what frame information
8141 is printed based on whether annotations are on or not.
8143 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8145 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8146 (annotate_source): Make static.
8147 (annotate_source_line): Moved from source.c and renamed from
8148 identify_source_line. Update the return type.
8149 * annotate.h (annotate_source): Delete declaration.
8150 (annotate_source_line): Declaration moved from source.h, and
8151 renamed from identify_source_line. Return type updated.
8152 * source.c (identify_source_line): Moved to annotate.c and renamed
8153 to annotate_source_line.
8154 (info_line_command): Remove check of annotation_level.
8155 * source.h (identify_source_line): Move declaration to annotate.h
8156 and rename to annotate_source_line.
8157 * stack.c: Add 'annotate.h' include.
8158 (print_frame_info): Remove check of annotation_level before
8159 calling annotate_source_line.
8161 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8163 * source-cache.c (source_cache::get_plain_source_lines): Use
8164 open_source_file_with_line_charpos instead of just
8165 open_source_file, remove call to find_source_lines.
8166 (source_cache::get_source_lines): Likewise.
8167 * source.c (find_source_lines): Make static.
8168 (get_filename_and_charpos): Renamed into...
8169 (open_source_file_with_line_charpos): ..this along with changes to
8170 return a scoped_fd, and some other minor clean ups.
8171 (identify_source_line): Use open_source_file_with_line_charpos.
8172 (search_command_helper): Use open_source_file_with_line_charpos
8173 instead of just open_source_file, remove call to
8175 * source.h (open_source_file_with_line_charpos): Declare new
8177 (find_source_lines): Delete declaration.
8179 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8181 * source.c (get_filename_and_charpos): Remove fullname
8183 (identify_source_line): Update call to get_filename_and_charpos.
8185 2019-06-14 Tom Tromey <tromey@adacore.com>
8188 * ui-style.h (skip_ansi_escape): Update comment.
8189 * ui-file.h (class no_terminal_escape_file): New class.
8190 * ui-file.c (no_terminal_escape_file::write)
8191 (no_terminal_escape_file::puts): New methods.
8192 * cli/cli-logging.c (handle_redirections): Use
8193 no_terminal_escape_file.
8195 2019-06-14 Tom Tromey <tromey@adacore.com>
8197 * NEWS: Move convenience variable news above Python news.
8199 2019-06-14 Tom Tromey <tom@tromey.com>
8201 * gnulib: Move directory to top-level.
8202 * configure.ac: Don't configure gnulib.
8203 * configure: Rebuild.
8204 * common/common-defs.h: Use new path to gnulib.
8205 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8207 (INCGNU): Look in new gnulib location.
8208 (HFILES_NO_SRCDIR): Remove gnulib files.
8209 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8210 (generated_files): Remove GNULIB_H.
8211 ($(LIBGNU), all-lib): Remove targets.
8212 (distclean): Don't mention GNULIB_BUILDDIR.
8213 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8215 2019-06-14 Tom Tromey <tromey@adacore.com>
8217 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8218 Warn if symbol file does not provide any symbols.
8220 2019-06-14 Tom Tromey <tromey@adacore.com>
8222 * source.c (find_and_open_source): Respect basenames_may_differ.
8224 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8226 * annotate.c (annotate_breakpoints_invalid): Make use of
8227 scoped_restore_terminal_state.
8228 (annotate_frames_invalid): Likewise.
8230 2019-06-14 Tom Tromey <tromey@adacore.com>
8232 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8233 allow assignment to an internalvar.
8235 2019-06-14 Tom Tromey <tromey@adacore.com>
8237 * ada-lex.l: Allow "_" in attribute names.
8239 2019-06-14 Tom Tromey <tromey@adacore.com>
8242 * regcache.c (registers_changed): Don't call alloca.
8243 * top.c (execute_command): Don't call alloca.
8245 2019-06-13 Pedro Alves <palves@redhat.com>
8247 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8248 'expression'. When parsing an expression, error out if there's
8249 junk after "unlimited".
8250 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8251 (do_set_command): Adjust calls to is_unlimited_literal.
8253 2019-06-13 Pedro Alves <palves@redhat.com>
8255 * compile/compile.c (make_compile_options_def_group): Add braces
8256 around array_view initializer.
8257 * thread.c (make_thread_apply_all_options_def_group)
8258 (make_thread_apply_all_options_def_group): Likewise.
8260 2019-06-13 Pedro Alves <palves@redhat.com>
8262 * NEWS (New commands): Mention "maint test-options
8263 require-delimiter", "maint test-options unknown-is-error", "maint
8264 test-options unknown-is-operand" and "maint show
8265 test-options-completion-result".
8266 (New command options, command completion): New section.
8267 (Completion improvements): New section.
8268 Mention that you can abbreviate "unlimited".
8270 2019-06-13 Pedro Alves <palves@redhat.com>
8272 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8273 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8274 * unittests/cli-utils-selftests.c (test_parse_flags)
8275 (test_parse_flags_qcs): Delete.
8276 (test_cli_utils): Don't call deleted functions.
8278 2019-06-13 Pedro Alves <palves@redhat.com>
8280 * thread.c: Include "cli/cli-option.h".
8281 (tp_array_compar_ascending): Global.
8282 (tp_array_compar): Delete function.
8283 (tp_array_compar_ascending, tp_array_compar_descending): New
8285 (ascending_option_def, qcs_flag_option_def)
8286 (thr_qcs_flags_option_defs)
8287 (make_thread_apply_all_options_def_group)
8288 (make_thread_apply_options_def_group): New.
8289 (thread_apply_all_command): Use gdb::option::process_options.
8290 (thread_apply_command_completer)
8291 (thread_apply_all_command_completer): New.
8292 (thread_apply_command): Use gdb::option::process_options.
8293 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8294 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8295 to generate help text of "thread apply". Adjust "taas"'s help.
8296 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8297 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8299 2019-06-13 Pedro Alves <palves@redhat.com>
8301 * thread.c (thread_apply_command): Check for invalid TID with
8302 isdigit instead of !isalpha.
8304 2019-06-13 Pedro Alves <palves@redhat.com>
8306 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8307 (validate_flags_qcs): New.
8308 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8309 (validate_flags_qcs): Declare.
8310 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8311 (make_frame_apply_options_def_group): New.
8312 (frame_apply_command_count): Process options with
8313 gdb::option::process_options.
8314 (frame_apply_completer): New.
8315 (frame_apply_level_completer, frame_apply_all_completer)
8316 (frame_apply_completer): New.
8317 (_initialize_stack): Update help of "frame apply", "frame apply
8318 level", "frame apply all" and "faas" to mention supported options
8319 and install command completers.
8320 * stack.h (frame_apply_all_completer): Declare.
8321 * thread.c: Include "stack.h".
8322 (tfaas_command): Add "--".
8323 (_initialize_thread): Update help "tfaas" to mention supported
8324 options and install command completer.
8326 2019-06-13 Pedro Alves <palves@redhat.com>
8328 * completer.c (complete_nested_command_line): New.
8329 (gdb_completion_word_break_characters_throw): Add assertion.
8330 * completer.h (complete_nested_command_line): Declare.
8332 2019-06-13 Pedro Alves <palves@redhat.com>
8334 * stack.c (parse_backtrace_qualifiers): New.
8335 (backtrace_command): Use it.
8336 (backtrace_command_completer): Complete on qualifiers.
8338 2019-06-13 Pedro Alves <palves@redhat.com>
8340 * frame.c: Include "cli/cli-option.h.
8341 (user_set_backtrace_options): New.
8342 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8344 (get_prev_frame): Adjust.
8345 (boolean_option_def, uinteger_option_def)
8346 (set_backtrace_option_defs): New.
8347 (_initialize_frame): Adjust and use
8348 gdb::option::add_setshow_cmds_for_options to install "set
8349 backtrace past-main" and "set backtrace past-entry".
8350 * frame.h: Include "cli/cli-option.h".
8351 (struct frame_print_options): Forward declare.
8352 (print_frame_arguments_all, print_frame_arguments_scalars)
8353 (print_frame_arguments_none): Declare.
8354 (print_entry_values): Delete declaration.
8355 (struct frame_print_options, user_frame_print_options): New.
8356 (struct set_backtrace_options): New.
8357 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8358 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8359 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8360 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8361 (list_args_or_locals): Add frame_print_options parameter.
8362 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8363 * python/py-framefilter.c (enumerate_args): Pass down
8364 USER_FRAME_PRINT_OPTIONS.
8365 * stack.c: Include "cli/cli-option.h".
8366 (print_frame_arguments_all, print_frame_arguments_scalars)
8367 (print_frame_arguments_none): Declare.
8368 (print_raw_frame_arguments, print_entry_values): Delete.
8369 (user_frame_print_options): New.
8370 (boolean_option_def, enum_option_def, frame_print_option_defs):
8372 (struct backtrace_cmd_options): New.
8373 (bt_flag_option_def): New.
8374 (backtrace_command_option_defs): New.
8375 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8376 (print_frame_arg, read_frame_arg, print_frame_args)
8377 (print_frame_info, print_frame): Add frame_print_options parameter
8379 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8380 (backtrace_command_1): Add frame_print_options and
8381 backtrace_cmd_options parameters and use them.
8382 (make_backtrace_options_def_group): New.
8383 (backtrace_command): Process command options with
8384 gdb::option::process_options.
8385 (backtrace_command_completer): New.
8386 (_initialize_stack): Extend "backtrace"'s help to mention
8387 supported options. Install completer for "backtrace".
8388 Install some settings commands with add_setshow_cmds_for_options.
8390 2019-06-13 Pedro Alves <palves@redhat.com>
8392 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8393 and that "set/show print raw frame-arguments" are now deprecated.
8395 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8397 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8398 * stack.c (_initialize_stack): Install "set/show print
8399 raw-frame-arguments", and deprecate "set/show print raw
8401 * valprint.c (_initialize_valprint): Deprecate "set/show print
8404 2019-06-13 Pedro Alves <palves@redhat.com>
8406 * compile/compile.c (struct compile_options): New.
8407 (compile_flag_option_def, compile_command_option_defs)
8408 (make_compile_options_def_group): New.
8409 (compile_file_command): Handle options with
8410 gdb::option::process_options.
8411 (compile_file_command_completer): New function.
8412 (compile_code_command): Handle options with
8413 gdb::option::process_options.
8414 (compile_code_command_completer): New function.
8415 (_initialize_compiler): Install completers for "compile code" and
8416 "compile file". Mention available options in "compile code" and
8417 "compile code"'s help.
8418 * completer.c (advance_to_completion_word): New, factored out from
8420 (advance_to_expression_complete_word_point): ... this.
8421 (advance_to_filename_complete_word_point): New.
8422 * completer.h (advance_to_filename_complete_word_point): New
8425 2019-06-13 Pedro Alves <palves@redhat.com>
8427 * compile/compile.c: Include "cli/cli-option.h".
8428 (compile_print_value): Scope data pointer is now a
8429 value_print_options pointer; adjust.
8430 (compile_print_command): Process options. Scope data pointer is
8431 now a value_print_options pointer; adjust.
8432 (_initialize_compile): Update "compile print"'s help to include
8433 supported options. Install a completer for "compile print".
8434 * cp-valprint.c (show_vtblprint, show_objectprint)
8435 (show_static_field_print): Delete.
8436 (_initialize_cp_valprint): Don't install "set print
8437 static-members", "set print vtbl", "set print object" here.
8438 * printcmd.c: Include "cli/cli-option.h" and
8439 "common/gdb_optional.h".
8440 (print_command_parse_format): Rework to fill in a
8441 value_print_options instead of a format_data.
8442 (print_value): Change parameter type from format_data pointer to
8443 value_print_options reference. Adjust.
8444 (print_command_1): Process options. Adjust to pass down a
8445 value_print_options.
8446 (print_command_completer): New.
8447 (_initialize_printcmd): Install print_command_completer as
8448 handle_brkchars completer for the "print" command. Update
8449 "print"'s help to include supported options.
8450 * valprint.c: Include "cli/cli-option.h".
8451 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8452 here from cp-valprint.c.
8453 (boolean_option_def, uinteger_option_def)
8454 (value_print_option_defs, make_value_print_options_def_group):
8455 New. Use gdb::option::add_setshow_cmds_for_options to install
8456 "set print elements", "set print null-stop", "set print repeats",
8457 "set print pretty", "set print union", "set print array", "set
8458 print address", "set print symbol", "set print array-indexes".
8459 * valprint.h: Include <string> and "cli/cli-option.h".
8460 (make_value_print_options_def_group): Declare.
8461 (print_value): Change parameter type from format_data pointer to
8462 value_print_options reference.
8463 (print_command_completer): Declare.
8465 2019-06-13 Pedro Alves <palves@redhat.com>
8467 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8468 (COMMON_SFILES): Add maint-test-settings.c.
8469 * cli/cli-decode.c (boolean_enums): New global, factored out from
8471 (add_setshow_boolean_cmd): ... here.
8472 * cli/cli-decode.h (boolean_enums): Declare.
8473 * cli/cli-option.c: New file.
8474 * cli/cli-option.h: New file.
8475 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8476 factored out from ...
8477 (parse_cli_boolean_value(const char *)): ... this.
8478 (is_unlimited_literal): Change parameter type to pointer to
8479 pointer. Adjust and advance ARG pointer.
8480 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8481 (parse_cli_var_enum): New, factored out from ...
8482 (do_set_command): ... this. Adjust.
8483 * cli/cli-setshow.h (parse_cli_boolean_value)
8484 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8485 (parse_cli_var_enum): Declare.
8486 * cli/cli-utils.c: Include "cli/cli-option.h".
8487 (get_ulongest): New.
8488 * cli/cli-utils.h (get_ulongest): Declare.
8489 (check_for_argument): New overloads.
8490 * maint-test-options.c: New file.
8492 2019-06-13 Pedro Alves <palves@redhat.com>
8494 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8495 parse a range if "-" is at the end of the string.
8497 2019-06-13 Pedro Alves <palves@redhat.com>
8499 * cli/cli-setshow.c (parse_auto_binary_operation)
8500 (parse_cli_boolean_value): Don't allow "o".
8502 2019-06-13 Pedro Alves <palves@redhat.com>
8504 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8505 * NEWS: Mention maint test-settings KIND.
8506 * maint-test-settings.c: New file.
8508 2019-06-13 Pedro Alves <palves@redhat.com>
8510 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8512 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8515 2019-06-13 Pedro Alves <palves@redhat.com>
8517 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8520 2019-06-13 Pedro Alves <palves@redhat.com>
8522 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8524 2019-06-13 Pedro Alves <palves@redhat.com>
8526 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8527 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8529 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8530 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8532 (check_for_argument): Skip spaces after argument.
8534 2019-06-13 Pedro Alves <palves@redhat.com>
8536 * thread.c (thread_apply_command): Adjust TID parsing.
8537 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8538 detected before end of string.
8539 (tid_is_in_list): Error out if LIST is invalid.
8541 2019-06-13 Pedro Alves <palves@redhat.com>
8543 * completer.c (complete_line_internal_1): Rewind completion word
8545 (completion_tracker::advance_custom_word_point_by): Change
8546 parameter type to int.
8547 * completer.h (completion_tracker::advance_custom_word_point_by):
8550 2019-06-13 Pedro Alves <palves@redhat.com>
8552 * completer.c (advance_to_completion_word): Handle delimiters.
8554 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8556 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8558 2019-06-11 Tom Tromey <tom@tromey.com>
8560 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8561 (xmalloc_failed): Move to alloc.c.
8562 * alloc.c: New file.
8563 * Makefile.in (COMMON_SFILES): Add alloc.c.
8565 2019-06-11 Tom Tromey <tom@tromey.com>
8567 * nat/linux-waitpid.c: Don't include server.h.
8568 (linux_debug): Remove.
8569 (my_waitpid): Update.
8571 2019-06-11 Tom Tromey <tromey@adacore.com>
8573 * infcall.c (_initialize_infcall): Remove trailing newline from
8575 * user-regs.c (_initialize_user_regs): Remove trailing newline
8577 * typeprint.c (_initialize_typeprint): Remove trailing newline
8579 * reverse.c (_initialize_reverse): Remove trailing newlines from
8581 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8583 * language.c (add_set_language_command): Remove trailing newline
8585 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8587 * disasm.c (_initialize_disasm): Remove trailing newline from
8589 * top.c (init_main): Remove trailing newline from help.
8590 * interps.c (_initialize_interpreter): Remove trailing newline
8592 * btrace.c (_initialize_btrace): Remove trailing newlines from
8594 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8596 * python/python.c (_initialize_python): Remove trailing newline
8598 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8600 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8601 from help. Reformat some text.
8602 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8604 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8607 2019-06-11 Tom Tromey <tromey@adacore.com>
8609 * darwin-nat.c (darwin_decode_exception_message)
8610 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8612 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8614 * valops.c (value_slice): Check for not allocated or not
8617 2019-06-10 Tom de Vries <tdevries@suse.de>
8620 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8621 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8624 2019-06-10 Tom de Vries <tdevries@suse.de>
8627 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8628 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8630 2019-06-10 Tom de Vries <tdevries@suse.de>
8633 * symtab.c (struct demangled_name_entry): Add language field.
8634 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8635 static minimal symbol". Set and use language field.
8637 2019-06-10 Tom Tromey <tromey@adacore.com>
8639 * ada-lang.c (_initialize_ada_language): Update help text.
8641 2019-06-10 Tom Tromey <tromey@adacore.com>
8643 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8645 * guile/guile.c (handle_boot_error): Don't end warning with a
8647 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8648 warning with a newline.
8649 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8651 (s12z_frame_cache): Likewise.
8652 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8654 * solib-svr4.c (disable_probes_interface): Don't end warning with
8656 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8658 * python/python.c (do_finish_initialization): Don't end warning
8661 2019-06-10 Tom Tromey <tom@tromey.com>
8663 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8664 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8667 2019-06-10 Tom Tromey <tromey@adacore.com>
8669 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8671 (elf_new_init): Don't call stabsread_new_init.
8672 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8673 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8674 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8676 2019-06-10 Tom de Vries <tdevries@suse.de>
8680 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8682 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8684 * source.c (find_and_open_source): Also rewrite relative file
8687 2019-04-26 Amos Bird <amosbird@gmail.com>
8689 * annotate.c (annotate_thread_exited): Add "thread-exited"
8692 2019-06-06 Tom Tromey <tromey@adacore.com>
8694 * maint.h (class scoped_command_stats): Use
8695 DISABLE_COPY_AND_ASSIGN.
8696 <print_time>: New method.
8697 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8699 (scoped_command_stats::print_time): New method.
8701 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8703 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8704 instructions of lengths 6 or 8 bytes.
8706 2019-06-04 Pedro Alves <palves@redhat.com>
8708 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8710 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8711 * breakpoint.c (condition_completer): Likewise.
8712 * cli/cli-dump.c (scan_expression): Likewise.
8713 * common/filestuff.c (mkdir_recursive): Likewise.
8714 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8715 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8716 (gdb_abspath): Likewise.
8717 * compile/compile-cplus-types.c
8718 (compile_cplus_instance::decl_name): Likewise.
8719 * completer.c (complete_explicit_location):
8720 (signal_completer, reg_or_group_completer_1): Likewise.
8721 * cp-support.c (cp_remove_params_if_any): Likewise.
8722 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8723 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8724 * infcmd.c (strip_bg_char): Likewise.
8725 * linespec.c (copy_token_string): Likewise.
8726 * mi/mi-main.c (output_cores): Likewise.
8727 * psymtab.c (psymtab_search_name):
8728 * symfile.c (test_set_ext_lang_command): Likewise.
8729 * target.c (target_fileio_read_stralloc): Likewise.
8730 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8731 * value.c (complete_internalvar): Likewise.
8733 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8735 Add objfile property to gdb.Type.
8736 * NEWS: Mention Python API addition.
8737 * python/py-type.c (typy_get_objfile): New method.
8739 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8741 * NEWS: Mention the new set|show style [title|highlight].
8742 Mention changes to "show style", "help" and "apropos".
8744 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8746 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8747 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8748 instead of print_help_for_command.
8749 (print_doc_of_command): New function.
8750 (help_list): Add 'apropos -v word' suggestion.
8751 (print_help_for_command): Style the command name using title style.
8752 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8753 (_initialize_cli_cmds): Describe -v in apropos_command help.
8755 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8757 * cli/cli-style.h (cli_style_option): Add name in constructor,
8758 add m_name class member, add constructor with intensity,
8759 add name class function.
8760 (cli_style_option::add_setshow_commands): Remove name argument.
8761 (highlight_style, title_style): New styles.
8762 * cli/cli-style.c (do_show): New function that shows a style
8763 characteristic styling the style name with itself.
8764 (set_style_name): New function.
8765 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8766 Update all callers according to the changes in cli/cli-style.h.
8767 * utils.h (fputs_highlighted): New function.
8768 * utils.c (fputs_highlighted): Likewise.
8770 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8772 * NEWS: Mention new pipe command and new convenience variables.
8774 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8776 * cli/cli-cmds.c (pipe_command): New function.
8777 (_initialize_cli_cmds): Call add_com for pipe_command.
8778 Define | as an alias for pipe.
8779 (exit_status_set_internal_vars): New function.
8780 (shell_escape): Call exit_status_set_internal_vars.
8781 cli/cli-decode.c (find_command_name_length): Recognize | as
8782 a single character command.
8784 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8786 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8787 top.c (execute_command_to_ui_file): New function, mostly a copy
8788 of execute_command_to_string.
8789 (execute_command_to_string): Implement by calling
8790 execute_command_to_ui_file.
8792 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8794 * top.h (saved_command_line): Remove declaration.
8795 * top.c (previous_saved_command_line, previous_repeat_arguments):
8797 (saved_command_line): Make static, define together with other
8799 (dont_repeat): Clear repeat_arguments.
8800 (repeat_previous, get_saved_command_line, save_command_line):
8802 (gdb_init): Initialize saved_command_line
8803 and previous_saved_command_line.
8804 * main.c (captured_main_1): Remove saved_command_line initialization.
8805 * event-top.c (handle_line_of_input): Update to use
8806 the new 'repeat' related functions instead of direct access to
8808 * command.h (repeat_previous, get_saved_command_line,
8809 save_command_line): New declarations.
8810 (dont_repeat): Add comment.
8812 2019-05-30 Tom Tromey <tromey@adacore.com>
8814 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8816 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8818 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8821 * completer.c (complete): Initialize variable word.
8823 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8825 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8826 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8827 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8828 'body' is NULL to the outter 'if', protecting the '!is_define'
8831 2019-05-29 Tom Tromey <tromey@adacore.com>
8833 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8834 (dwarf_unknown): New function.
8835 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8836 (dwarf_type_encoding_name): Use dwarf_unknown.
8838 2019-05-29 Tom Tromey <tromey@adacore.com>
8841 * cp-valprint.c (cp_print_value_fields): Call
8842 cp_print_static_field inside "try".
8844 2019-05-29 Tom Tromey <tromey@adacore.com>
8846 * inflow.c (struct terminal_info): Add default operator=.
8847 * configure: Rebuild.
8848 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8849 -Wdeprecated-copy-dtor, -Wredundant-move.
8851 2019-05-29 Tom Tromey <tromey@adacore.com>
8854 * infcmd.c (print_return_value_1): Handle finish_print
8856 (show_print_finish): New function.
8857 (_initialize_infcmd): Add "set/show print finish" commands.
8858 * valprint.c (user_print_options): Initialize new member.
8859 * valprint.h (struct value_print_options) <finish_print>: New
8862 2019-05-28 Tom Tromey <tromey@adacore.com>
8864 * ada-lang.c (ada_remove_Xbn_suffix)
8865 (find_old_style_renaming_symbol)
8866 (parse_old_style_renaming): Remove.
8867 (ada_find_renaming_symbol): Don't call
8868 find_old_style_renaming_symbol.
8869 (ada_is_renaming_symbol): Rename from
8870 ada_find_renaming_symbol. Remove "block" parameter. Return
8872 (ada_read_var_value): Update and simplify.
8873 * ada-exp.y (write_var_or_type): Remove old code.
8875 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8878 * event-top.c: Remove include comment.
8879 * inflow.c (class scoped_ignore_sigttou): Move from here...
8880 * inflow.h (class scoped_ignore_sigttou): ...to here.
8881 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8882 * top.c: Remove include comment.
8884 2019-05-27 Tom Tromey <tom@tromey.com>
8888 2019-05-22 Tom Tromey <tromey@adacore.com>
8890 * target.c (target_follow_exec): Constify parameter.
8891 * target-delegates.c: Rebuild.
8892 * remote.c (remote_target::follow_exec): Constify parameter.
8893 * infrun.c (follow_exec): Constify parameter.
8894 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8895 (target_follow_exec): Likewise.
8897 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8899 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8900 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8902 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8904 * NEWS: Add debugredirect and testsuite sections.
8906 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8908 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8909 target descriptions using exclusively floating point register name
8912 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8915 * f-lang.c (build_fortran_types): Handle the case where
8916 gdbarch_floatformat_for_type returns a nullptr.
8918 2019-05-21 Tom de Vries <tdevries@suse.de>
8921 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8923 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8926 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8928 * i386-tdep.c (i386_floatformat_for_type): Use
8929 floatformats_ia64_quad for the 16-byte floating point component
8930 within a fortran 32-byte complex number.
8932 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8934 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8935 delete default constructor.
8936 (find_partial_die): Update to return const struct.
8937 (partial_die_parent_scope): Move variable declaration into scope
8938 of its use and change its type to auto.
8939 (guess_partial_die_structure_name): Likewise.
8940 (partial_die_info::fixup): Likewise.
8942 2019-05-17 Tom Tromey <tromey@adacore.com>
8944 * source.c (find_and_open_source): Remove cast.
8946 2019-05-17 Tom Tromey <tromey@adacore.com>
8948 * annotate.c (annotate_source): Make "filename" const.
8949 * annotate.h (annotate_source): Use const.
8951 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8953 * disasm.c (set_disassembler_options): Send errors to stderr.
8955 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8957 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8958 (cli_interp_base::set_logging): Check debug_redirect.
8959 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8960 * cli/cli-logging.c (debug_redirect): Add static variable.
8961 (pop_output_files): Add default param.
8962 (handle_redirections): Print debug setting.
8963 (show_logging_command): Likewise.
8964 (_initialize_cli_logging): Add debugredirect command.
8965 * interps.c (current_interp_set_logging): Add debug_redirect
8967 * interps.h (set_logging): Add debug_redirect parameter.
8968 (current_interp_set_logging): Likewise.
8969 * mi/mi-common.h: Likewise.
8970 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8972 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8973 Tom Tromey <tromey@adacore.com>
8975 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8977 * cli/cli-interp.h (make_logging_output): Remove declaration.
8978 * cli/cli-logging.c (make_logging_output): Remove function.
8979 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8981 * ui-file.c (tee_file::tee_file): Remove bools.
8982 (tee_file::~tee_file): Remove deletes.
8983 * ui-file.h (tee_file): Remove bools.
8985 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8987 * mi/mi-cmds.h (mi_cmd_complete): New function.
8988 * mi/mi-main.c (mi_cmd_complete): Likewise.
8989 * mi/mi-cmds.c: Define new MI command -complete.
8990 * NEWS: Mention new -complete command.
8992 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8994 * completer.h (complete): New function.
8995 * completer.c (complete): Likewise.
8996 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8997 function defined in completer.h.
8999 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9001 * MAINTAINERS (Write After Approval): Add myself.
9003 2019-05-17 Tom de Vries <tdevries@suse.de>
9006 * dwarf2read.c (struct cu_partial_die_info): New struct.
9007 (find_partial_die): Return cu_partial_die_info.
9008 (partial_die_parent_scope, guess_partial_die_structure_name)
9009 (partial_die_info::fixup): Handle new return type of find_partial_die.
9011 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9013 PR breakpoints/24541
9014 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9015 "std::string", simplifying the algorithm.
9017 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9019 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9020 (stap_static_probe_ops::get_probes): Likewise.
9022 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9024 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9025 '-')" and "else if".
9026 (stap_parse_single_operand): Join checks for
9027 "gdbarch_stap_parse_special_token_p" and
9028 "gdbarch_stap_parse_special_token" in the same "if" statement.
9029 Invert check when verifying for operation on register
9032 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9034 * stap-probe.c (stap_get_opcode): Update comment.
9035 (stap_get_expected_argument_type): Likewise.
9036 (handle_stap_probe): Likewise.
9038 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9040 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9041 return type to 'bool'. Adjust comment. Use 'bool' when
9043 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9044 * stap-probe.c (stap_parse_argument_1): Likewise.
9045 (stap_is_operator): Likewise.
9046 (stap_is_generic_prefix): Likewise.
9047 (stap_is_register_prefix): Likewise.
9048 (stap_is_register_indirection_prefix): Likewise.
9049 (stap_is_integer_prefix): Likewise.
9050 (stap_generic_check_suffix): Likewise.
9051 (stap_check_integer_suffix): Likewise.
9052 (stap_check_register_suffix): Likewise.
9053 (stap_check_register_indirection_suffix): Likewise.
9054 (stap_parse_register_operand): Likewise.
9055 (stap_parse_single_operand): Likewise.
9056 (stap_parse_argument_1): Likewise.
9057 (stap_probe::get_argument_count): Likewise.
9058 (stap_is_operator): Likewise.
9060 2019-05-16 Tom Tromey <tromey@adacore.com>
9062 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9065 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9067 * linux-thread-db.c (try_thread_db_load_1): Change return type
9069 (try_thread_db_load): Likewise.
9070 (try_thread_db_load_from_pdir_1): Likewise.
9071 (try_thread_db_load_from_pdir): Likewise.
9072 (try_thread_db_load_from_sdir): Likewise.
9073 (try_thread_db_load_from_dir): Likewise.
9074 (thread_db_load_search): Likewise.
9075 (has_libpthread): Likewise.
9076 (thread_db_load): Likewise.
9078 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9080 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9081 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9082 NULL, and complain/return if that's the case.
9084 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9086 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9087 (advance, posn, abstract_read_memory): New functions.
9088 [struct mem_read_abstraction]: New struct.
9089 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9091 2019-05-14 Tom Tromey <tromey@adacore.com>
9093 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9094 value is not lval_memory.
9096 2019-05-14 Tom Tromey <tromey@adacore.com>
9098 * solib.c (info_sharedlibrary_command): Style the file name.
9100 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9102 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9103 (aarch64_vnv_type): Likewise.
9104 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9105 * common/tdesc.c: Likewise.
9106 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9107 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9108 * features/aarch64-fpu.xml: Add ieee half view.
9109 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9110 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9111 * gdbtypes.h (struct builtin_type): Likewise.
9112 (struct objfile_type): Likewise.
9114 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9116 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9118 * location.h (string_to_event_location): Likewise.
9120 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9124 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9126 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9127 New variable declaration.
9128 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9130 (print_one_breakpoint): Use ui_out::test_flags and new global
9131 variable to compute use_fixed_output.
9132 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9134 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9135 (mi_multi_location_breakpoint_output_fixed): Remove.
9136 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9138 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9139 fix_multi_location_breakpoint_output flag if version >= 3.
9140 * ui-out.h (enum ui_out_flag)
9141 <fix_multi_location_breakpoint_output>: New enumerator.
9143 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9145 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9147 2019-05-10 Tom Tromey <tromey@adacore.com>
9149 * ada-lang.c (catch_ada_completer): New function.
9150 (_initialize_ada_language): Use it.
9152 2019-05-10 Tom Tromey <tromey@adacore.com>
9154 * thread.c (print_thread_info): Make "requested_threads" const.
9155 * gdbthread.h (print_thread_info): Make "requested_threads"
9157 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9158 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9160 2019-05-08 Tom Tromey <tom@tromey.com>
9162 * gdbtypes.c (objfile_type_data): Change type.
9163 (objfile_type, _initialize_gdbtypes): Update.
9165 2019-05-08 Tom Tromey <tom@tromey.com>
9167 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9168 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9169 (_initialize_dwarf2_frame): Update.
9171 2019-05-08 Tom Tromey <tom@tromey.com>
9173 * objc-lang.c (objc_objfile_data): Change type.
9174 (find_methods): Update.
9175 (_initialize_objc_lang): Remove.
9177 2019-05-08 Tom Tromey <tom@tromey.com>
9179 * stabsread.c (rs6000_builtin_type_data): Change type.
9180 (rs6000_builtin_type, _initialize_stabsread): Update.
9182 2019-05-08 Tom Tromey <tom@tromey.com>
9184 * mips-tdep.c (mips_pdr_data): Remove.
9185 (_initialize_mips_tdep): Update.
9187 2019-05-08 Tom Tromey <tom@tromey.com>
9189 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9190 (hppa_init_objfile_priv_data, read_unwind_info)
9191 (find_unwind_entry, _initialize_hppa_tdep): Update.
9193 2019-05-08 Tom Tromey <tom@tromey.com>
9195 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9196 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9198 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9200 2019-05-08 Tom Tromey <tom@tromey.com>
9202 * mdebugread.c (basic_type_data): Change type.
9203 (basic_type, _initialize_mdebugread): Update.
9205 2019-05-08 Tom Tromey <tom@tromey.com>
9207 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9209 2019-05-08 Tom Tromey <tom@tromey.com>
9211 * nto-tdep.c (nto_inferior_data_reg): Change type.
9212 (nto_inferior_data): Update.
9213 (nto_inferior_data_cleanup, nto_new_inferior_data)
9214 (_initialize_nto_tdep): Remove.
9215 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9217 2019-05-08 Tom Tromey <tom@tromey.com>
9219 * ada-lang.c (struct ada_inferior_data): Add initializers.
9220 (ada_inferior_data): Change type.
9221 (ada_inferior_data_cleanup): Remove.
9222 (get_ada_inferior_data, ada_inferior_exit)
9223 (struct ada_pspace_data): Add initializers, destructor.
9224 (ada_pspace_data_handle): Change type.
9225 (get_ada_pspace_data): Update.
9226 (ada_pspace_data_cleanup): Remove.
9228 2019-05-08 Tom Tromey <tom@tromey.com>
9230 * coffread.c (struct coff_symfile_info): Add initializers.
9231 (coff_objfile_data_key): Move lower. Change type.
9232 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9234 (coff_free_info): Remove.
9236 2019-05-08 Tom Tromey <tom@tromey.com>
9238 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9239 (fbsd_pspace_data_handle): Move lower. Change type.
9240 (get_fbsd_pspace_data): Update.
9241 (fbsd_pspace_data_cleanup): Remove.
9242 (_initialize_fbsd_tdep): Update.
9244 2019-05-08 Tom Tromey <tom@tromey.com>
9246 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9247 (get_ada_tasks_pspace_data): Update.
9248 (ada_tasks_pspace_data_cleanup): Remove.
9249 (_initialize_tasks): Update.
9250 (ada_tasks_inferior_data_handle): Change type.
9251 (get_ada_tasks_inferior_data): Update.
9252 (ada_tasks_inferior_data_cleanup): Remove.
9253 (struct ada_tasks_pspace_data): Add initializers.
9255 2019-05-08 Tom Tromey <tom@tromey.com>
9257 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9258 * symfile-debug.c (debug_sym_get_probes): Change type.
9259 * stap-probe.c (handle_stap_probe):
9260 (stap_static_probe_ops::get_probes): Change type.
9261 * probe.h (class static_probe_ops) <get_probes>: Change type.
9262 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9263 (parse_probes_in_pspace): Update.
9264 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9266 (any_static_probe_ops::get_probes): Change type.
9267 * elfread.c (elfread_data): New typedef.
9268 (probe_key): Change type.
9269 (elf_get_probes): Likewise. Update.
9270 (probe_key_free): Remove.
9271 (_initialize_elfread): Update.
9272 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9274 (dtrace_process_dof_probe, dtrace_process_dof)
9275 (dtrace_static_probe_ops::get_probe): Change type.
9277 2019-05-08 Tom Tromey <tom@tromey.com>
9279 * xcoffread.c (struct xcoff_symfile_info): Rename from
9280 coff_symfile_info. Add initializers.
9281 (xcoff_objfile_data_key): Move lower. Change type.
9282 (XCOFF_DATA): Rewrite.
9283 (xcoff_free_info): Remove.
9284 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9285 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9286 (xcoff_initial_scan): Update.
9288 2019-05-08 Tom Tromey <tom@tromey.com>
9290 * solib-svr4.c (struct svr4_info): Add initializers and
9292 <probes_table>: Now an htab_up.
9293 (solib_svr4_pspace_data): Change type.
9294 (free_probes_table): Simplify.
9295 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9296 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9297 (probes_table_remove_objfile_probes, register_solib_event_probe)
9298 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9299 (_initialize_svr4_solib): Update.
9301 2019-05-08 Tom Tromey <tom@tromey.com>
9303 * remote.c (remote_pspace_data): Change type.
9304 (remote_pspace_data_cleanup): Remove.
9305 (get_remote_exec_file, set_pspace_remote_exec_file)
9306 (_initialize_remote): Update.
9308 2019-05-08 Tom Tromey <tom@tromey.com>
9310 * breakpoint.c (breakpoint_objfile_key): Change type.
9311 (get_breakpoint_objfile_data): Update.
9312 (free_breakpoint_objfile_data): Remove.
9313 (_initialize_breakpoint): Update.
9315 2019-05-08 Tom Tromey <tom@tromey.com>
9317 * linux-tdep.c (struct linux_info): Add initializers.
9318 (linux_inferior_data): Move. Change type.
9319 (invalidate_linux_cache_inf): Update.
9320 (linux_inferior_data_cleanup): Remove.
9321 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9323 2019-05-08 Tom Tromey <tom@tromey.com>
9325 * auxv.c (auxv_inferior_data): Move. Change type.
9326 (auxv_inferior_data_cleanup): Remove.
9327 (invalidate_auxv_cache_inf): Rewrite.
9328 (get_auxv_inferior_data, _initialize_auxv): Update.
9330 2019-05-08 Tom Tromey <tom@tromey.com>
9332 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9333 (symfile_debug_objfile_data_key): Change type.
9334 (symfile_debug_installed, debug_qf_has_symbols)
9335 (debug_qf_find_last_source_symtab)
9336 (debug_qf_forget_cached_source_info)
9337 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9338 (debug_qf_print_stats, debug_qf_dump)
9339 (debug_qf_expand_symtabs_for_function)
9340 (debug_qf_expand_all_symtabs)
9341 (debug_qf_expand_symtabs_with_fullname)
9342 (debug_qf_map_matching_symbols)
9343 (debug_qf_expand_symtabs_matching)
9344 (debug_qf_find_pc_sect_compunit_symtab)
9345 (debug_qf_map_symbol_filenames)
9346 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9347 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9348 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9349 (debug_sym_read_linetable, debug_sym_relocate): Update.
9350 (symfile_debug_free_objfile): Remove.
9351 (install_symfile_debug_logging, _initialize_symfile_debug):
9354 2019-05-08 Tom Tromey <tom@tromey.com>
9356 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9357 allocate_on_obstack.
9358 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9359 (get_dwarf2_per_objfile): Update.
9360 (set_dwarf2_per_objfile): Remove.
9361 (dwarf2_has_info, dwarf2_get_section_info): Update.
9362 (dwarf2_free_objfile): Remove.
9363 (_initialize_dwarf2_read): Update.
9365 2019-05-08 Tom Tromey <tom@tromey.com>
9367 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9369 <unsupported_script_warning_printed,
9370 script_not_found_warning_printed>: Now bool.
9371 (auto_load_pspace_data): Change type.
9372 (~auto_load_pspace_info): Rename from
9373 auto_load_pspace_data_cleanup.
9374 (get_auto_load_pspace_data, init_loaded_scripts_info)
9375 (clear_section_scripts, maybe_print_unsupported_script_warning)
9376 (maybe_print_script_not_found_warning, _initialize_auto_load):
9379 2019-05-08 Tom Tromey <tom@tromey.com>
9381 * objfiles.c (objfile_pspace_info): Add destructor and
9383 (objfiles_pspace_data): Change type.
9384 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9385 (get_objfile_pspace_data): Update.
9386 (objfiles_bfd_data): Change type.
9387 (get_objfile_bfd_data): Update.
9388 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9390 2019-05-08 Tom Tromey <tom@tromey.com>
9392 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9394 (get_catch_syscall_inferior_data): Update.
9395 (catch_syscall_inferior_data_cleanup): Remove.
9396 (_initialize_break_catch_syscall): Update.
9398 2019-05-08 Tom Tromey <tom@tromey.com>
9400 * inflow.c (struct terminal_info): Add destructor and
9402 (inflow_inferior_data): Change type.
9403 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9404 (get_inflow_inferior_data, inflow_inferior_exit)
9405 (swap_terminal_info, _initialize_inflow): Update.
9407 2019-05-08 Tom Tromey <tom@tromey.com>
9409 * target-dcache.c (target_dcache_cleanup): Remove.
9410 (target_dcache_aspace_key): Change type.
9411 (target_dcache_init_p, target_dcache_invalidate)
9412 (target_dcache_get, target_dcache_get_or_init)
9413 (_initialize_target_dcache): Update.
9414 * dcache.h (struct dcache_deleter): New.
9416 2019-05-08 Tom Tromey <tom@tromey.com>
9418 * symtab.c (struct symbol_cache): Add destructor and
9420 (symbol_cache_key): Move. Change type.
9421 (make_symbol_cache, free_symbol_cache): Remove.
9422 (get_symbol_cache): Update.
9423 (symbol_cache_cleanup): Remove.
9424 (ALL_PSPACES, symbol_cache_flush)
9425 (maintenance_print_symbol_cache)
9426 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9429 2019-05-08 Tom Tromey <tom@tromey.com>
9431 * symtab.c (struct main_info): Add destructor and initializers.
9432 (main_progspace_key): Move. Change type.
9433 (get_main_info): Update.
9434 (main_info_cleanup): Remove.
9435 (_initialize_symtab): Update.
9437 2019-05-08 Tom Tromey <tom@tromey.com>
9439 * registry.h (DECLARE_REGISTRY): Define the _key class.
9441 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9443 * NEWS: Merge two 'New commands' sections.
9445 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9447 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9448 parameter and use Ada language definition instead.
9449 (ada_val_print_ptr): Remove unused language parameter.
9450 (ada_val_print_num): Remove language parameter and use Ada language
9452 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9454 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9455 parameter and use Ada language definition instead.
9456 (ada_val_print_1): Update all ada_val_print_xxx calls.
9457 Remove language parameter.
9458 (ada_val_print): Update ada_val_print_1 call.
9460 2019-05-08 Tom Tromey <tromey@adacore.com>
9462 * remote.c (remote_hw_watchpoint_limit)
9463 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9466 2019-05-08 Tom Tromey <tromey@adacore.com>
9468 * maint.c (_initialize_maint_cmds): Move initialization code to
9470 (watchdog, show_watchdog): Move to remote.c.
9471 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9473 (_initialize_remote): Move initialization code from maint.c.
9474 * defs.h (watchdog): Don't declare.
9476 2019-05-08 Tom Tromey <tromey@adacore.com>
9478 * tui/tui-interp.c: Include main.h.
9479 * interps.c: Include main.h.
9480 * main.h (interpreter_p): Declare.
9481 * defs.h (interpreter_p): Don't declare.
9483 2019-05-08 Tom Tromey <tromey@adacore.com>
9485 * dwarf2loc.c: Include dwarf2read.h.
9486 * defs.h (read_unsigned_leb128): Don't declare.
9487 * dwarf2read.h (read_unsigned_leb128): Declare.
9489 2019-05-08 Tom Tromey <tromey@adacore.com>
9491 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9494 2019-05-08 Tom Tromey <tromey@adacore.com>
9496 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9497 when no wrap column is set.
9499 2019-05-08 Tom Tromey <tromey@adacore.com>
9501 * c-lang.c (c_get_string): Handle non-C-style arrays.
9503 2019-05-08 Tom Tromey <tromey@adacore.com>
9505 * typeprint.c (print_offset_data::update): Print the bit offset,
9506 not the number of bits remaining.
9508 2019-05-08 Tom Tromey <tromey@adacore.com>
9510 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9511 padding at end of comment.
9513 2019-05-08 Tom Tromey <tromey@adacore.com>
9515 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9518 2019-05-06 Tom Tromey <tom@tromey.com>
9520 * common/scoped_mmap.c: Include common-defs.h.
9521 * common/scoped_mmap.h: Don't include config.h.
9523 2019-05-04 Tom Tromey <tom@tromey.com>
9525 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9526 (struct aarch64_call_info): Add initializers.
9527 <si>: Now a std::vector.
9528 (pass_on_stack, aarch64_push_dummy_call): Update.
9530 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9531 Tom Tromey <tom@tromey.com>
9533 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9534 (ppc_threads): Now a std::vector. Now static.
9535 (hwdebug_find_thread_points_by_tid)
9536 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9539 2019-05-04 Tom Tromey <tom@tromey.com>
9541 * arc-tdep.c (arc_tdesc_init): Return bool.
9543 2019-05-04 Tom Tromey <tom@tromey.com>
9545 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9546 Use gdb_assert_not_reached.
9548 2019-05-04 Tom Tromey <tom@tromey.com>
9550 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9553 2019-05-04 Tom Tromey <tom@tromey.com>
9555 * arc-tdep.c (arc_tdesc_init): Use bool.
9557 2019-05-04 Tom Tromey <tom@tromey.com>
9559 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9561 2019-05-04 Tom Tromey <tom@tromey.com>
9563 * cli/cli-cmds.c (valid_command_p): Return bool.
9565 2019-05-04 Tom Tromey <tom@tromey.com>
9567 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9568 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9570 2019-05-04 Raul Tambre <raul@tambre.ee>
9572 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9573 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9574 operator for comparison.
9576 2019-05-04 Tom Tromey <tom@tromey.com>
9578 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9579 (lookup_partial_symbol, print_partial_symbols)
9580 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9581 (psymbol_compare): Update.
9582 (add_psymbol_to_bcache): Clear the entire psymbol.
9583 (maintenance_check_psymtabs): Update.
9584 * psympriv.h (struct partial_symbol): Don't derive from
9585 general_symbol_info.
9586 <obj_section, unrelocated_address, address,
9587 set_unrelocated_address>: Update.
9588 <ginfo>: New member.
9589 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9590 (debug_names::write_psymbols): Update.
9592 2019-05-04 Tom de Vries <tdevries@suse.de>
9594 * contrib/cc-with-tweaks.sh: Support -n arg.
9596 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9598 * corelow.c (core_target::detach): Ensure frame cache and
9599 register caches are cleared.
9600 inferior.c (exit_inferior_1): Likewise.
9602 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9603 Tom Tromey <tom@tromey.com>
9605 * dictionary.c (collate_pending_symbols_by_language): Remove
9606 "struct" from foreach.
9607 * symtab.c (lookup_global_symbol_from_objfile)
9608 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9610 * ser-tcp.c (net_open): Remove "struct" from foreach.
9611 * objfiles.c (objfile_relocate, objfile_rebase)
9612 (objfile_has_symbols): Remove "struct" from foreach.
9613 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9615 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9617 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9618 "struct" from foreach.
9619 * ada-lang.c (create_excep_cond_exprs)
9620 (ada_exception_catchpoint_cond_string): Remove "struct" from
9623 2019-05-03 Tom Tromey <tromey@adacore.com>
9625 * ada-exp.y (convert_char_literal): Check suffix of each
9628 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9631 * ada-exp.y (yywrap): Don't define.
9632 * ada-lex.l (%option): Add noyywrap
9635 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9637 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9638 _WIN32_WINNT to the XP level, unless already defined to a higher
9641 * unittests/parse-connection-spec-selftests.c:
9643 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9646 * symfile.c (find_separate_debug_file): Remove colon from the
9647 drive spec of DOS/Windows file names of the target, so that the
9648 file name produced from DEBUGDIR and the target's directory will
9649 be valid on DOS/Windows systems.
9651 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9653 * rust-lang.c (val_print_struct): Handle printing structures
9656 2019-05-02 Tom Tromey <tromey@adacore.com>
9658 * valarith.c (_initialize_valarith): Remove.
9660 2019-05-01 Tom Tromey <tromey@adacore.com>
9662 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9665 2019-05-01 Tom Tromey <tromey@adacore.com>
9667 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9668 for big-endian copies.
9670 2019-04-30 Ali Tamur <tamur@google.com>
9671 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9672 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9673 (read_3_bytes): New function.
9675 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9677 * windows-nat.c (main_thread_id): Delete.
9678 (handle_output_debug_string): Replace main_thread_id by
9679 current_event.dwThreadId.
9680 (fake_create_process): Likewise.
9681 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9682 Do not set main_thread_id.
9683 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9684 current_event.dwThreadId.
9685 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9687 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9689 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9690 Use current_event.dwThreadId instead of main_thread_id.
9692 2019-04-30 Tom Tromey <tromey@adacore.com>
9694 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9695 (create_excep_cond_exprs): Iterate over program spaces.
9696 (ada_exception_catchpoint_cond_string): Examine all minimal
9697 symbols for exception types.
9699 2019-04-30 Tom Tromey <tromey@adacore.com>
9702 * dwarf2read.c (process_structure_scope): Handle case where type
9703 has template parameters but no symbol was created.
9705 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9706 Chris January <chris.january@arm.com>
9708 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9710 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9712 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9714 * f-typeprint.c (f_print_type): Update rules for printing
9716 (f_type_print_varspec_suffix): Likewise.
9718 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9719 Chris January <chris.january@arm.com>
9721 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9724 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9726 * f-lang.c (build_fortran_types): Change name of void type to
9728 * f-typeprint.c (f_type_print_base): Print the name of the void
9729 type, rather than a fixed string.
9730 * f-valprint.c (f_decorations): Use lower case void string.
9732 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9733 Chris January <chris.january@arm.com>
9735 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9738 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9739 Chris January <chris.january@arm.com>
9740 David Lecomber <david.lecomber@arm.com>
9742 * f-exp.y (BINOP_INTRINSIC): New token.
9743 (exp): New parser rule handling BINOP_INTRINSIC.
9744 (f77_keywords): Add new builtin procedures.
9745 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9746 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9747 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9748 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9749 (print_unop_subexp_f): New function.
9750 (print_binop_subexp_f): New function.
9751 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9752 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9753 (dump_subexp_body_f): Likewise.
9754 (operator_check_f): Likewise.
9755 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9756 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9758 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9760 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9762 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9763 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9764 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9765 (operator_length_f): New fuction.
9766 (print_subexp_f): New function.
9767 (op_name_f): New function.
9768 (dump_subexp_body_f): New function.
9769 (operator_check_f): New function.
9770 (exp_descriptor_f): Replace standard expression handling functions
9772 * gdb/fortran-operator.def: New file.
9773 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9774 * gdb/std-operator.def: Remove UNOP_KIND.
9776 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9778 * std-operator.def: Remove unbalanced, stray double quote
9781 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9782 Chris January <chris.january@arm.com>
9783 Daniel Everett <daniel.everett@arm.com>
9784 Nick Forrington <nick.forrington@arm.com>
9785 Richard Bunt <richard.bunt@arm.com>
9787 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9788 of depth when printing anonymous structs or unions.
9789 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9790 Don't print either the top-level value, or the children if the
9791 max-depth is exceeded.
9792 (ppscm_print_children): When printing the key of a map, allow one
9793 extra level of depth.
9794 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9795 print either the top-level value, or the children if the max-depth
9797 (print_children): When printing the key of a map, allow one extra
9799 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9800 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9801 (user_print_options): Initialise max_depth field.
9802 (val_print_scalar_or_string_type_p): New function.
9803 (val_print): Check to see if the max depth has been reached.
9804 (val_print_check_max_depth): Define new function.
9805 (show_print_max_depth): New function.
9806 (_initialize_valprint): Add 'print max-depth' option.
9807 * valprint.h (struct value_print_options) <max_depth>: New field.
9808 (val_print_check_max_depth): Declare new function.
9809 * NEWS: Document new feature.
9811 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9813 * ada-lang.c (ada_language_defn): Initialise new field.
9814 * c-lang.c (c_is_string_type_p): New function.
9815 (c_language_defn): Initialise new field.
9816 (cplus_language_defn): Initialise new field.
9817 (asm_language_defn): Initialise new field.
9818 (minimal_language_defn): Initialise new field.
9819 * c-lang.h (c_is_string_type_p): Declare new function.
9820 * d-lang.c (d_language_defn): Initialise new field.
9821 * f-lang.c (f_is_string_type_p): New function.
9822 (f_language_defn): Initialise new field.
9823 * go-lang.c (go_is_string_type_p): New function.
9824 (go_language_defn): Initialise new field.
9825 * language.c (default_is_string_type_p): New function.
9826 (unknown_language_defn): Initialise new field.
9827 (auto_language_defn): Initialise new field.
9828 * language.h (struct language_defn) <la_is_string_type_p>: New
9830 (default_is_string_type_p): Declare new function.
9831 * m2-lang.c (m2_language_defn): Initialise new field.
9832 * objc-lang.c (objc_language_defn): Initialise new field.
9833 * opencl-lang.c (opencl_language_defn): Initialise new field.
9834 * p-lang.c (pascal_is_string_type_p): New function.
9835 (pascal_language_defn): Initialise new field.
9836 * rust-lang.c (rust_is_string_type_p): New function.
9837 (rust_language_defn): Initialise new field.
9839 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9841 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9843 * ada-lang.c (ada_language_defn): Initialise new field.
9844 * c-lang.c (c_language_defn): Likewise.
9845 (cplus_language_defn): Likewise.
9846 (asm_language_defn): Likewise.
9847 (minimal_language_defn): Likewise.
9848 * d-lang.c (d_language_defn): Likewise.
9849 * f-lang.c (f_language_defn): Likewise.
9850 * go-lang.c (go_language_defn): Likewise.
9851 * language.c (unknown_language_defn): Likewise.
9852 (auto_language_defn): Likewise.
9853 * m2-lang.c (m2_language_defn): Likewise.
9854 * objc-lang.c (objc_language_defn): Likewise.
9855 * opencl-lang.c (opencl_language_defn): Likewise.
9856 * p-lang.c (pascal_language_defn): Likewise.
9857 * rust-lang.c (rust_language_defn): Likewise.
9859 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9861 * ada-lang.c (ada_is_character_type): Change return type to bool.
9862 (ada_is_string_type): Likewise.
9863 * ada-lang.h (ada_is_character_type): Update declaration
9864 (ada_is_string_type): Likewise.
9866 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9868 Support style in 'frame|thread apply'
9870 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9871 * record.c (record_start, record_stop): Update callers of
9872 execute_command_to_string with false.
9873 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9874 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9876 (class string_file): New constructor with term_out parameter.
9877 Override methods term_out and can_emit_style_escape. New member
9879 (class stdio_file): Override can_emit_style_escape.
9880 (class tee_file): Override term_out and can_emit_style_escape.
9881 * utils.h (can_emit_style_escape): Remove.
9882 * utils.c (can_emit_style_escape): Likewise.
9883 Update all callers of can_emit_style_escape (SOMESTREAM) to
9884 SOMESTREAM->can_emit_style_escape.
9885 * source-cache.c (source_cache::get_source_lines): Likewise.
9886 * stack.c (frame_apply_command_count): Call execute_command_to_string
9887 passing the term_out characteristic of the current gdb_stdout.
9888 * thread.c (thr_try_catch_cmd): Likewise.
9889 * top.c (execute_command_to_string): pass term_out parameter
9890 to construct the string_file for the command output.
9891 * ui-file.c (term_cli_styling): New function (most code moved
9892 from utils.c can_emit_style_escape).
9893 (string_file::string_file, string_file::can_emit_style_escape,
9894 stdio_file::can_emit_style_escape, tee_file::term_out,
9895 tee_file::can_emit_style_escape): New functions.
9897 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9899 * NEWS: Mention the new set|show may-call-functions.
9900 * infcall.c (may_call_functions_p): New variable.
9901 (show_may_call_functions_p): New function.
9902 (call_function_by_hand_dummy): Throws an error if not
9904 (_initialize_infcall): Call add_setshow_boolean_cmd for
9907 2019-04-25 Keith Seitz <keiths@redhat.com>
9910 * cp-support.c (inspect_type): Don't attempt substitutions
9911 of symbol with the same name.
9913 2019-04-25 Tom Tromey <tromey@adacore.com>
9916 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9919 2019-04-25 Tom Tromey <tromey@adacore.com>
9921 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9923 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9924 (gdb_xml_parser::parse): Use std::move.
9925 * python/python-internal.h (gdbpy_convert_exception): Take a const
9927 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9929 * python/py-utils.c (gdbpy_convert_exception): Take a const
9931 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9933 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9935 * mi/mi-main.c (mi_print_exception): Take a const reference.
9936 * main.c (handle_command_errors): Take a const reference.
9937 * linespec.c (parse_linespec): Use std::move.
9938 * infcall.c (run_inferior_call): Use std::move.
9939 (call_function_by_hand_dummy): Use std::move.
9940 * exec.c (try_open_exec_file): Use std::move.
9941 * exceptions.h (exception_print, exception_fprintf)
9942 (exception_print_same): Update.
9943 * exceptions.c (print_exception, exception_print)
9944 (exception_fprintf, exception_print_same): Change parameters to
9946 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9947 * common/new-op.c: Use std::move.
9948 * common/common-exceptions.h (struct gdb_exception): Add move
9950 (struct gdb_exception_error, struct gdb_exception_quit, struct
9951 gdb_quit_bad_alloc): Change constructor to move constructor.
9952 (throw_exception): Change parameter to rvalue reference.
9953 * common/common-exceptions.c (throw_exception): Take rvalue
9955 * cli/cli-interp.c (safe_execute_command): Use std::move.
9956 * breakpoint.c (insert_bp_location, location_to_sals): Use
9959 2019-04-25 Tom Tromey <tromey@adacore.com>
9961 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9962 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9963 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9964 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9965 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9966 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9967 guile/scm-value.c: Use unpack.
9968 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9969 gdbscm_gdb_exception.
9970 (gdbscm_throw_gdb_exception): Likewise.
9971 (struct gdbscm_gdb_exception): New.
9972 (unpack): New function.
9973 (gdbscm_wrap): Use unpack.
9975 2019-04-25 Tom Tromey <tromey@adacore.com>
9977 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9978 (gdb_rl_callback_handler): Use std::move.
9979 * common/common-exceptions.h (struct gdb_exception): Add move
9980 assignment operator.
9981 (throw_exception_sjlj): Change "exception" to const reference.
9982 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9983 (throw_exception_sjlj): Change "exception" to const reference.
9985 2019-04-25 Tom Tromey <tromey@adacore.com>
9987 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9988 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9989 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9991 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9993 * mi/mi-interp.c (mi_interp::exec): Update.
9994 * linespec.c (parse_linespec): Update.
9995 * infcall.c (run_inferior_call): Update.
9996 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9997 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9998 (gdbscm_lookup_global_symbol): Update.
9999 * guile/scm-param.c (gdbscm_parameter_value): Update.
10000 * guile/scm-frame.c (gdbscm_frame_read_register)
10001 (gdbscm_frame_read_var): Update.
10002 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10003 * exec.c (try_open_exec_file): Update.
10004 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10005 (gdb_rl_callback_handler): Update.
10006 * common/common-exceptions.h (exception_none): Don't declare.
10007 * common/common-exceptions.c (exception_none): Don't define.
10008 (struct catcher) <exception>: Update.
10009 * cli/cli-interp.c (safe_execute_command): Update.
10010 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10012 2019-04-25 Ali Tamur <tamur@google.com>
10014 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10015 (read_attribute_value): Likewise.
10016 (dwarf2_read_addr_index): Update comment.
10017 (read_str_index): Add DW_FORM_strx.
10018 (dwarf2_string_attr): Likewise.
10019 (dwarf2_const_value_attr): Likewise.
10020 (dump_die_shallow): Likewise.
10021 (dwarf2_fetch_constant_bytes): Likewise.
10022 (skip_form_bytes): Likewise.
10023 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10025 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10029 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10030 OFFSET. Verify if current mapping contains an ELF header.
10031 (linux_find_memory_regions_full): Adjust call to
10034 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10035 Kang Li <kanglictf@gmail.com>
10039 * dwarf2-frame.c (read_initial_length): Be consistent about using
10040 unsigned representation of length.
10041 (decode_frame_entry_1): Likewise. Check for wraparound of
10042 end pointer as well as buffer overflow.
10044 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10046 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10049 2019-04-24 Tom Tromey <tromey@adacore.com>
10051 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10055 * s12z-tdep.c (s12z_unwind_pc): Delete.
10056 (s12z_unwind_sp): Delete.
10057 (s12z_gdbarch_init): Don't register deleted functions with
10060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10062 * rl78-tdep.c (rl78_unwind_sp): Delete.
10063 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10065 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10067 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10068 (xstormy16_unwind_pc): Delete.
10069 (xstormy16_dummy_id): Delete.
10070 (xstormy16_gdbarch_init): Don't register deleted functions with
10073 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10075 * vax-tdep.c (vax_unwind_pc): Delete.
10076 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10080 * v850-tdep.c (v850_unwind_sp): Delete.
10081 (v850_unwind_pc): Delete.
10082 (v850_dummy_id): Delete.
10083 (v850_gdbarch_init): Don't register deleted functions with
10086 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10088 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10089 (tilegx_unwind_pc): Delete.
10090 (tilegx_unwind_dummy_id): Delete.
10091 (tilegx_gdbarch_init): Don't register deleted functions with
10094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10096 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10097 (tic6x_dummy_id): Delete.
10098 (tic6x_gdbarch_init): Don't register deleted functions with
10101 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10103 * sparc-tdep.c (sparc_unwind_pc): Delete.
10104 (sparc32_gdbarch_init): Don't register deleted function with
10107 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10109 * sh-tdep.c (sh_unwind_sp): Delete.
10110 (sh_unwind_pc): Delete.
10111 (sh_dummy_id): Delete.
10112 (sh_gdbarch_init): Don't register deleted functions with
10115 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10117 * score-tdep.c (score_unwind_sp): Delete.
10118 (score_unwind_pc): Delete.
10119 (score_dummy_id): Delete.
10120 (score_gdbarch_init): Don't register deleted functions with
10123 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10125 * rx-tdep.c (rx_unwind_pc): Delete.
10126 (rx_unwind_sp): Delete.
10127 (rx_dummy_id): Delete.
10128 (rx_gdbarch_init): Don't register deleted functions with
10129 gdbarch. Update comment.
10131 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10133 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10134 (rs6000_dummy_id): Delete.
10135 (rs6000_gdbarch_init): Don't register deleted functions with
10138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10140 * or1k-tdep.c (or1k_dummy_id): Delete.
10141 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10143 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10145 * nios2-tdep.c (nios2_dummy_id): Delete.
10146 (nios2_unwind_sp): Delete.
10147 (nios2_gdbarch_init): Don't register deleted functions with
10150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10152 * nds32-tdep.c (nds32_dummy_id): Delete.
10153 (nds32_unwind_pc): Delete.
10154 (nds32_unwind_sp): Delete.
10155 (nds32_gdbarch_init): Don't register deleted functions with
10158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10160 * msp430-tdep.c (msp430_unwind_pc): Delete.
10161 (msp430_unwind_sp): Delete.
10162 (msp430_dummy_id): Delete.
10163 (msp430_gdbarch_init): Don't register deleted functions with
10166 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10168 * moxie-tdep.c (moxie_unwind_sp): Delete.
10169 (moxie_unwind_pc): Delete.
10170 (moxie_dummy_id): Delete.
10171 (moxie_gdbarch_init): Don't register deleted functions with
10174 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10176 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10177 (mn10300_unwind_pc): Delete.
10178 (mn10300_unwind_sp): Delete.
10179 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10181 (mn10300_frame_unwind_init): Don't register deleted functions with
10184 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10186 * mep-tdep.c (mep_unwind_pc): Delete.
10187 (mep_unwind_sp): Delete.
10188 (mep_dummy_id): Delete.
10189 (mep_gdbarch_init): Don't register deleted functions with
10192 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10194 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10195 (m68hc11_unwind_sp): Delete.
10196 (m68hc11_gdbarch_init): Don't register deleted functions with
10199 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10201 * m32r-tdep.c (m32r_unwind_sp): Delete.
10202 (m32r_unwind_pc): Delete.
10203 (m32r_dummy_id): Delete.
10204 (m32r_gdbarch_init): Don't register deleted functions with
10207 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10209 * m32c-tdep.c (m32c_unwind_pc): Delete.
10210 (m32c_unwind_sp): Delete.
10211 (m32c_dummy_id): Delete.
10212 (m32c_gdbarch_init): Don't register deleted functions with
10215 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10217 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10218 (lm32_unwind_pc): Delete.
10219 (lm32_dummy_id): Delete.
10220 (lm32_gdbarch_init): Don't register deleted functions with
10223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10225 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10226 (iq2000_unwind_pc): Delete.
10227 (iq2000_dummy_id): Delete.
10228 (iq2000_gdbarch_init): Don't register deleted functions with
10231 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10233 * nds32-tdep.c (nds32_type_align): Delete.
10234 (nds32_push_dummy_call): Use type_align instead.
10236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10238 * arm-tdep.c (arm_type_align): Only handle vector override case.
10239 (arm_push_dummy_call): Use type_align.
10240 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10242 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10244 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10246 (pass_on_stack): Use type_align.
10247 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10250 2019-04-23 Tom Tromey <tromey@adacore.com>
10252 * dwarf2read.c (line_header::file_name_at): Remove unused
10255 2019-04-23 Tom de Vries <tdevries@suse.de>
10258 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10262 2019-03-27 Ali Tamur <tamur@google.com>
10264 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10265 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10266 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10267 (dwarf_expr_context::get_addr_index): Likewise
10268 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10269 (symbol_needs_eval_context::get_addr_index): Likewise
10270 (disassemble_dwarf_expression): Add DW_OP_addrx
10271 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10272 (read_cutu_die_from_dwo): Update comment
10273 (skip_one_die): Add DW_FORM_addrx
10274 (read_attribute_value): Likewise
10275 (var_decode_location): Add DW_OP_addrx
10276 (dwarf2_const_value_attr): Add DW_FORM_addrx
10277 (dump_die_shallow): Likewise
10278 (dwarf2_fetch_constant_bytes): Likewise
10279 (decode_locdesc): Add DW_OP_addrx
10280 (skip_form_bytes): Add DW_FORM_addrx
10282 2019-04-22 Ali Tamur <tamur@google.com>
10284 * MAINTAINERS (Write After Approval): Add self.
10286 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10288 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10289 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10290 (open_symbol_file_object): Likewise.
10291 (svr4_default_sos): Add info parameter.
10292 (svr4_read_so_list): Likewise.
10293 (svr4_current_sos_direct): Adjust functions calls to pass down
10295 (svr4_current_sos_1): Add info parameter.
10296 (svr4_current_sos): Call get_svr4_info, pass info down to
10297 svr4_current_sos_1.
10298 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10300 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10302 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10304 (probes_table_remove_objfile_probes): Likewise.
10305 (register_solib_event_probe): Add info parameter.
10306 (solist_update_incremental): Pass info parameter down to
10308 (disable_probes_interface): Add info parameter.
10309 (svr4_handle_solib_event): Pass current_program_space to
10310 get_svr4_info. Adjust disable_probes_interface cleanup.
10311 (svr4_create_probe_breakpoints): Add info parameter, pass it
10312 down to register_solib_event_probe.
10313 (svr4_create_solib_event_breakpoints): Add info parameter,
10314 pass it down to svr4_create_probe_breakpoints.
10315 (enable_break): Pass info down to
10316 svr4_create_solib_event_breakpoints.
10317 (svr4_solib_create_inferior_hook): Pass current_program_space to
10319 (svr4_clear_solib): Likewise.
10321 2019-04-22 Pedro Alves <palves@redhat.com>
10323 * solib-svr4.c (svr4_free_objfile_observer): New.
10324 (probe_and_action::objfile): New field.
10325 (probes_table_htab_remove_objfile_probes)
10326 (probes_table_remove_objfile_probes): New functions.
10327 (register_solib_event_probe): Add 'objfile' parameter. Store it
10328 in the new probe_and_action. Don't store the probe in 'lookup'.
10329 (svr4_create_probe_breakpoints): Pass objfile to
10330 register_solib_event_probe.
10331 (_initialize_svr4_solib): Register a free_objfile observer.
10333 2019-04-19 Tom Tromey <tom@tromey.com>
10335 * common/queue.h: Remove.
10337 2019-04-19 Tom Tromey <tom@tromey.com>
10339 * event-loop.c: Don't include "common/queue.h".
10341 2019-04-19 Tom Tromey <tom@tromey.com>
10343 * remote.c (remote_target): Use delete.
10344 * remote-notif.h: Include <list>, not "common/queue.h".
10345 (notif_client_p): Remove typedef.
10346 (remote_notif_state): Add constructor, destructor, initializer.
10347 <notif_queue>: Now a std::list.
10348 (remote_notif_state_xfree): Don't declare.
10349 * remote-notif.c (remote_notif_process, handle_notification)
10350 (remote_notif_state_allocate): Update.
10351 (~remote_notif_state): Rename from remote_notif_state_xfree.
10353 2019-04-19 Tom Tromey <tom@tromey.com>
10355 * symfile.c (reread_symbols): Update.
10356 * objfiles.c (objfile_register_static_link)
10357 (objfile_lookup_static_link): Update
10358 (~objfile) Don't delete static_links.
10359 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10361 2019-04-19 Tom Tromey <tom@tromey.com>
10363 * type-stack.h (struct type_stack) <insert>: Constify string.
10364 * type-stack.c (type_stack::insert): Constify string.
10365 * gdbtypes.h (lookup_template_type): Update.
10366 (address_space_name_to_int): Update.
10367 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10369 (lookup_template_type): Make name const.
10370 * c-exp.y: Update rules.
10371 (lex_one_token, classify_name, classify_inner_name)
10372 (c_print_token): Update.
10373 * p-exp.y: Update rules.
10375 * f-exp.y: Update rules.
10377 * d-exp.y: Update rules.
10378 (lex_one_token, classify_name, classify_inner_name): Update.
10379 * parse.c (write_dollar_variable, copy_name): Return std::string.
10380 * parser-defs.h (copy_name): Change return type.
10381 * m2-exp.y: Update rules.
10383 * go-exp.y (lex_one_token): Update.
10385 (classify_unsafe_function, classify_packaged_name)
10386 (classify_name, yylex): Update.
10388 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10390 * configure.ac: add --enable-source-highlight switch.
10391 * configure: Regenerate.
10392 * top.c (print_gdb_version): plumb --enable-source-highlight
10393 status to "show configuration".
10395 2019-04-19 Tom Tromey <tromey@adacore.com>
10397 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10399 (empty_record, ada_template_to_fixed_record_type_1)
10400 (template_to_static_fixed_type)
10401 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10402 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10403 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10406 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10409 * source.c (print_source_lines_base): Advance "iter" when a
10410 control character is seen.
10412 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10414 * inferior.h (struct infcall_suspend_state_deleter):
10415 Catch exception in destructor to avoid crash.
10417 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10419 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10420 close to the add_com "shell".
10422 2019-04-18 Tom Tromey <tromey@adacore.com>
10424 * process-stratum-target.h (class process_stratum_target)
10425 <stratum>: Add "final".
10427 2019-04-17 Tom Tromey <tromey@adacore.com>
10429 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10430 against nullptr before use.
10432 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10434 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10436 2019-04-17 Jim Wilson <jimw@sifive.com>
10437 Andrew Burgess <andrew.burgess@embecosm.com>
10439 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10440 code read might fail, assume 4-byte breakpoint in that case.
10442 2019-04-15 Leszek Swirski <leszeks@google.com>
10444 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10445 rather than a hand-rolled POD check when checking for forced MEMORY
10448 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10450 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10451 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10453 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10454 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10455 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10458 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10460 * aarch64-linux-nat.c
10461 (aarch64_linux_nat_target::thread_architecture): Add override.
10462 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10465 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10467 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10469 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10471 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10472 target types of size 96-bits, add some additional comments, and
10473 check that the builtin type we found was the correct size.
10475 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10477 * utils.c (prompt_for_continue): Don't restore the styling at the
10478 end, as applied_style has the wrong value. This fixes styling in
10479 long lists of file names that are interrupted by the "Continue?"
10482 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10484 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10485 * c-lang.c (c_language_defn): Likewise.
10486 (cplus_language_defn): Likewise.
10487 (asm_language_defn): Likewise.
10488 (minimal_language_defn): Likewise.
10489 * d-lang.c (d_language_defn): Likewise.
10490 * f-lang.c (f_language_defn): Likewise.
10491 * go-lang.c (go_language_defn): Likewise.
10492 * language.c (unknown_language_defn): Likewise.
10493 (auto_language_defn): Likewise.
10494 * language.h (struct language_defn): Remove la_magic field.
10495 (LANG_MAGIC): Delete.
10496 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10497 * objc-lang.c (objc_language_defn): Likewise.
10498 * opencl-lang.c (opencl_language_defn): Likewise.
10499 * p-lang.c (pascal_language_defn): Likewise.
10500 * rust-lang.c (rust_language_defn): Likewise.
10502 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10504 * riscv-tdep.c (riscv_type_align): New function.
10505 (riscv_type_alignment): Delete.
10506 (riscv_arg_location): Use 'type_align'.
10507 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10509 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10511 * gdbtypes.c (type_align): A struct with no non-static fields also
10512 has alignment of 1.
10514 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10516 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10518 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10520 (riscv_struct_info::analyse): New implementation using new
10521 analyse_inner member function.
10522 (riscv_struct_info::field_offset): New member function.
10523 (riscv_struct_info::m_offsets): New member variable.
10524 (riscv_struct_info::analyse_inner): New private member function,
10525 takes the old implementation of riscv_struct_info::analyse but
10526 extended to track field offsets.
10527 (riscv_call_arg_struct): Update the struct folding special cases
10528 to handle cases where empty C++ structs, which are non-zero
10530 (riscv_arg_location): Initialise the length of each location, a
10531 non-zero length now indicates the location is in use.
10532 (riscv_push_dummy_call): Allow for the first location having a
10533 non-zero offset when setting up arguments.
10534 (riscv_return_value): Likewise, but for return values.
10536 2019-04-11 Tom Tromey <tromey@adacore.com>
10538 * utils.c (internal_vproblem): Make "msg" const.
10540 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10542 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10543 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10544 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10545 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10547 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10549 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10551 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10552 of amd64_collect_native_gregset.
10553 (amd64_linux_nat_target::store_registers): Likewise.
10555 2019-04-10 Tom Tromey <tom@tromey.com>
10557 * symtab.c (lookup_global_symbol_from_objfile)
10558 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10559 * objfiles.h (class separate_debug_iterator): New.
10560 (class separate_debug_range): New.
10561 (struct objfile) <separate_debug_objfiles>: New method.
10562 (objfile_separate_debug_iterate): Don't declare.
10563 * objfiles.c (separate_debug_iterator::operator++): Rename from
10564 objfile_separate_debug_iterate.
10565 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10567 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10570 2019-04-10 Tom Tromey <tom@tromey.com>
10572 * symfile.c (reread_symbols): Remove old comment.
10573 * objfiles.c (free_all_objfiles): Fix a typo.
10575 2019-04-10 Tom Tromey <tom@tromey.com>
10577 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10578 * minsyms.c (lookup_minimal_symbol): Use foreach.
10579 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10580 (lookup_minimal_symbol_solib_trampoline): Likewise.
10581 * symfile.c (reread_symbols): Use foreach.
10583 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10584 Tom Tromey <tromey@adacore.com>
10587 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10588 (rust_lex_int_test): Change "value" to be LONGEST.
10589 (rust_lex_tests): Add test for long integer literal.
10591 2019-04-09 Tom Tromey <tromey@adacore.com>
10593 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10595 (extended_remote_target::attach): Update.
10596 (remote_target::remote_notice_new_inferior): Update.
10597 (remote_target::add_current_inferior_and_thread): Update.
10598 * inferior.c (exit_inferior_1): Use "false".
10599 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10601 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10603 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10604 the "start" command.
10606 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10608 * python/py-inferior.c (infpy_thread_from_thread_handle):
10609 Adjust comments to reflect renaming of thread_from_thread_handle
10610 to thread_from_handle. Adjust keywords. Fix type error message.
10611 (inferior_object_methods): Add thread_from_handle. Retain
10612 thread_from_thread_handle, but mark it as deprecated.
10614 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10616 * gdbthread.h (find_thread_by_handle): Revise declaration.
10617 * thread.c (find_thread_by_handle): Likewise. Adjust
10618 implementation too.
10619 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10620 support for buffer objects as handles.
10622 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10624 * python/py-infthread.c (thpy_thread_handle): New function.
10625 (thread_object_methods): Register thpy_thread_handle.
10627 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10629 * gdbthread.h (thread_to_thread_handle): Declare.
10630 * thread.c (gdbtypes.h): Include.
10631 (thread_to_thread_handle): New function.
10633 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10634 (target_thread_info_to_thread_handle): Declare.
10635 * target.c (target_thread_info_to_thread_handle): New function.
10636 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10637 * target-delegates.c: Regenerate.
10639 * linux-thread-db.c (class thread_db_target): Add method
10640 thread_info_to_thread_handle.
10641 (thread_db_target::thread_info_to_thread_handle): Define.
10642 * remote.c (class remote_target): Add new method
10643 thread_info_to_thread_handle.
10644 (remote_target::thread_info_to_thread_handle): Define.
10646 2019-04-08 Pedro Alves <palves@redhat.com>
10648 * common/common-exceptions.c (throw_exception): Don't create
10649 named object to throw; throw directly.
10650 (throw_it): Likewise. Don't initialize gdb_exception::message
10651 here, with new; pass FMT and AP to the ctor instead.
10652 * common/common-exceptions.h: Include <string>.
10653 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10654 const char *, va_list)): New ctor. Use std::make_shared.
10655 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10657 (gdb_exception_error::gdb_exception_error(enum errors, const char
10659 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10661 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10663 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10664 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10667 2019-04-08 Tom Tromey <tom@tromey.com>
10669 * valops.c (value_rtti_indirect_type): Replace throw_exception
10671 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10673 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10675 * target.c (target_translate_tls_address): Replace throw_exception
10677 * stack.c (frame_apply_command_count): Replace throw_exception
10679 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10681 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10683 * rs6000-tdep.c (rs6000_frame_cache)
10684 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10685 * remote.c: Replace throw_exception with throw.
10686 * record-full.c (record_full_message, record_full_wait_1)
10687 (record_full_restore): Replace throw_exception with throw.
10689 (get_thread_current_frame_id, record_btrace_start_replaying)
10690 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10691 (cmd_record_btrace_start): Replace throw_exception with throw.
10692 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10694 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10695 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10697 (find_linespec_symbols): Replace throw_exception with throw.
10698 * infrun.c (displaced_step_prepare, resume): Replace
10699 throw_exception with throw.
10700 * infcmd.c (post_create_inferior): Replace throw_exception with
10702 * inf-loop.c (inferior_event_handler): Replace throw_exception
10704 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10705 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10706 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10707 (get_prev_frame_always, get_frame_pc_if_available)
10708 (get_frame_address_in_block_if_available, get_frame_language):
10709 Replace throw_exception with throw.
10710 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10711 throw_exception with throw.
10712 * eval.c (fetch_subexp_value, evaluate_var_value)
10713 (evaluate_funcall, evaluate_subexp_standard): Replace
10714 throw_exception with throw.
10715 * dwarf2loc.c (call_site_find_chain)
10716 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10717 Replace throw_exception with throw.
10718 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10720 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10722 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10723 * completer.c (complete_line_internal): Replace throw_exception
10725 * compile/compile-object-run.c (compile_object_run): Replace
10726 throw_exception with throw.
10727 * cli/cli-script.c (process_next_line): Replace throw_exception
10729 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10730 (btrace_enable, btrace_maint_update_pt_packets): Replace
10731 throw_exception with throw.
10732 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10733 throw_exception with throw.
10734 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10735 throw_exception with throw.
10736 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10737 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10738 * aarch64-tdep.c (aarch64_make_prologue_cache)
10739 (aarch64_make_stub_cache): Replace throw_exception with throw.
10741 2019-04-08 Tom Tromey <tom@tromey.com>
10743 * common/common-exceptions.c (throw_exception): Rename from
10744 throw_exception_cxx. Remove old copy. Make argument const.
10745 (throw_it): Create and throw exception objects directly.
10746 * common/common-exceptions.h (throw_exception): Make argument
10748 (struct gdb_exception_error): Add constructor.
10749 (struct gdb_exception_quit): Add constructor.
10751 2019-04-08 Tom Tromey <tom@tromey.com>
10753 * common/common-exceptions.h (exception_rethrow): Don't declare.
10754 (TRY_SJLJ): Update comment.
10755 (TRY, CATCH, END_CATCH): Remove.
10756 * common/common-exceptions.c (exception_rethrow): Remove.
10758 2019-04-08 Tom Tromey <tom@tromey.com>
10760 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10762 (gdb_exception_error): Rename from
10763 gdb_exception_RETURN_MASK_ERROR.
10764 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10765 (gdb_quit_bad_alloc): Update.
10766 * aarch64-tdep.c: Update.
10767 * ada-lang.c: Update.
10768 * ada-typeprint.c: Update.
10769 * ada-valprint.c: Update.
10770 * amd64-tdep.c: Update.
10771 * arch-utils.c: Update.
10772 * break-catch-throw.c: Update.
10773 * breakpoint.c: Update.
10774 * btrace.c: Update.
10775 * c-varobj.c: Update.
10776 * cli/cli-cmds.c: Update.
10777 * cli/cli-interp.c: Update.
10778 * cli/cli-script.c: Update.
10779 * common/common-exceptions.c: Update.
10780 * common/new-op.c: Update.
10781 * common/selftest.c: Update.
10782 * compile/compile-c-symbols.c: Update.
10783 * compile/compile-cplus-symbols.c: Update.
10784 * compile/compile-object-load.c: Update.
10785 * compile/compile-object-run.c: Update.
10786 * completer.c: Update.
10787 * corelow.c: Update.
10788 * cp-abi.c: Update.
10789 * cp-support.c: Update.
10790 * cp-valprint.c: Update.
10791 * darwin-nat.c: Update.
10792 * disasm-selftests.c: Update.
10793 * dtrace-probe.c: Update.
10794 * dwarf-index-cache.c: Update.
10795 * dwarf-index-write.c: Update.
10796 * dwarf2-frame-tailcall.c: Update.
10797 * dwarf2-frame.c: Update.
10798 * dwarf2loc.c: Update.
10799 * dwarf2read.c: Update.
10801 * event-loop.c: Update.
10802 * event-top.c: Update.
10804 * f-valprint.c: Update.
10805 * fbsd-tdep.c: Update.
10806 * frame-unwind.c: Update.
10808 * gdbtypes.c: Update.
10809 * gnu-v3-abi.c: Update.
10810 * guile/guile-internal.h: Update.
10811 * guile/scm-block.c: Update.
10812 * guile/scm-breakpoint.c: Update.
10813 * guile/scm-cmd.c: Update.
10814 * guile/scm-disasm.c: Update.
10815 * guile/scm-frame.c: Update.
10816 * guile/scm-lazy-string.c: Update.
10817 * guile/scm-math.c: Update.
10818 * guile/scm-param.c: Update.
10819 * guile/scm-ports.c: Update.
10820 * guile/scm-pretty-print.c: Update.
10821 * guile/scm-symbol.c: Update.
10822 * guile/scm-symtab.c: Update.
10823 * guile/scm-type.c: Update.
10824 * guile/scm-value.c: Update.
10825 * i386-linux-tdep.c: Update.
10826 * i386-tdep.c: Update.
10827 * inf-loop.c: Update.
10828 * infcall.c: Update.
10829 * infcmd.c: Update.
10830 * infrun.c: Update.
10832 * language.c: Update.
10833 * linespec.c: Update.
10834 * linux-fork.c: Update.
10835 * linux-nat.c: Update.
10836 * linux-tdep.c: Update.
10837 * linux-thread-db.c: Update.
10839 * mi/mi-cmd-break.c: Update.
10840 * mi/mi-cmd-stack.c: Update.
10841 * mi/mi-interp.c: Update.
10842 * mi/mi-main.c: Update.
10843 * objc-lang.c: Update.
10844 * p-valprint.c: Update.
10846 * ppc-linux-tdep.c: Update.
10847 * printcmd.c: Update.
10848 * python/py-arch.c: Update.
10849 * python/py-breakpoint.c: Update.
10850 * python/py-cmd.c: Update.
10851 * python/py-finishbreakpoint.c: Update.
10852 * python/py-frame.c: Update.
10853 * python/py-framefilter.c: Update.
10854 * python/py-gdb-readline.c: Update.
10855 * python/py-inferior.c: Update.
10856 * python/py-infthread.c: Update.
10857 * python/py-lazy-string.c: Update.
10858 * python/py-linetable.c: Update.
10859 * python/py-objfile.c: Update.
10860 * python/py-param.c: Update.
10861 * python/py-prettyprint.c: Update.
10862 * python/py-progspace.c: Update.
10863 * python/py-record-btrace.c: Update.
10864 * python/py-record.c: Update.
10865 * python/py-symbol.c: Update.
10866 * python/py-type.c: Update.
10867 * python/py-unwind.c: Update.
10868 * python/py-utils.c: Update.
10869 * python/py-value.c: Update.
10870 * python/python.c: Update.
10871 * record-btrace.c: Update.
10872 * record-full.c: Update.
10873 * remote-fileio.c: Update.
10874 * remote.c: Update.
10875 * riscv-tdep.c: Update.
10876 * rs6000-aix-tdep.c: Update.
10877 * rs6000-tdep.c: Update.
10878 * rust-exp.y: Update.
10879 * rust-lang.c: Update.
10880 * s390-tdep.c: Update.
10881 * selftest-arch.c: Update.
10882 * solib-dsbt.c: Update.
10883 * solib-frv.c: Update.
10884 * solib-spu.c: Update.
10885 * solib-svr4.c: Update.
10887 * sparc64-linux-tdep.c: Update.
10889 * symfile-mem.c: Update.
10890 * symmisc.c: Update.
10891 * target.c: Update.
10892 * thread.c: Update.
10894 * tracefile-tfile.c: Update.
10895 * tui/tui.c: Update.
10896 * typeprint.c: Update.
10897 * unittests/cli-utils-selftests.c: Update.
10898 * unittests/parse-connection-spec-selftests.c: Update.
10899 * valops.c: Update.
10900 * valprint.c: Update.
10902 * varobj.c: Update.
10903 * windows-nat.c: Update.
10904 * x86-linux-nat.c: Update.
10905 * xml-support.c: Update.
10907 2019-04-08 Tom Tromey <tom@tromey.com>
10909 * xml-support.c: Use C++ exception handling.
10910 * x86-linux-nat.c: Use C++ exception handling.
10911 * windows-nat.c: Use C++ exception handling.
10912 * varobj.c: Use C++ exception handling.
10913 * value.c: Use C++ exception handling.
10914 * valprint.c: Use C++ exception handling.
10915 * valops.c: Use C++ exception handling.
10916 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10918 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10919 * typeprint.c: Use C++ exception handling.
10920 * tui/tui.c: Use C++ exception handling.
10921 * tracefile-tfile.c: Use C++ exception handling.
10922 * top.c: Use C++ exception handling.
10923 * thread.c: Use C++ exception handling.
10924 * target.c: Use C++ exception handling.
10925 * symmisc.c: Use C++ exception handling.
10926 * symfile-mem.c: Use C++ exception handling.
10927 * stack.c: Use C++ exception handling.
10928 * sparc64-linux-tdep.c: Use C++ exception handling.
10929 * solib.c: Use C++ exception handling.
10930 * solib-svr4.c: Use C++ exception handling.
10931 * solib-spu.c: Use C++ exception handling.
10932 * solib-frv.c: Use C++ exception handling.
10933 * solib-dsbt.c: Use C++ exception handling.
10934 * selftest-arch.c: Use C++ exception handling.
10935 * s390-tdep.c: Use C++ exception handling.
10936 * rust-lang.c: Use C++ exception handling.
10937 * rust-exp.y: Use C++ exception handling.
10938 * rs6000-tdep.c: Use C++ exception handling.
10939 * rs6000-aix-tdep.c: Use C++ exception handling.
10940 * riscv-tdep.c: Use C++ exception handling.
10941 * remote.c: Use C++ exception handling.
10942 * remote-fileio.c: Use C++ exception handling.
10943 * record-full.c: Use C++ exception handling.
10944 * record-btrace.c: Use C++ exception handling.
10945 * python/python.c: Use C++ exception handling.
10946 * python/py-value.c: Use C++ exception handling.
10947 * python/py-utils.c: Use C++ exception handling.
10948 * python/py-unwind.c: Use C++ exception handling.
10949 * python/py-type.c: Use C++ exception handling.
10950 * python/py-symbol.c: Use C++ exception handling.
10951 * python/py-record.c: Use C++ exception handling.
10952 * python/py-record-btrace.c: Use C++ exception handling.
10953 * python/py-progspace.c: Use C++ exception handling.
10954 * python/py-prettyprint.c: Use C++ exception handling.
10955 * python/py-param.c: Use C++ exception handling.
10956 * python/py-objfile.c: Use C++ exception handling.
10957 * python/py-linetable.c: Use C++ exception handling.
10958 * python/py-lazy-string.c: Use C++ exception handling.
10959 * python/py-infthread.c: Use C++ exception handling.
10960 * python/py-inferior.c: Use C++ exception handling.
10961 * python/py-gdb-readline.c: Use C++ exception handling.
10962 * python/py-framefilter.c: Use C++ exception handling.
10963 * python/py-frame.c: Use C++ exception handling.
10964 * python/py-finishbreakpoint.c: Use C++ exception handling.
10965 * python/py-cmd.c: Use C++ exception handling.
10966 * python/py-breakpoint.c: Use C++ exception handling.
10967 * python/py-arch.c: Use C++ exception handling.
10968 * printcmd.c: Use C++ exception handling.
10969 * ppc-linux-tdep.c: Use C++ exception handling.
10970 * parse.c: Use C++ exception handling.
10971 * p-valprint.c: Use C++ exception handling.
10972 * objc-lang.c: Use C++ exception handling.
10973 * mi/mi-main.c: Use C++ exception handling.
10974 * mi/mi-interp.c: Use C++ exception handling.
10975 * mi/mi-cmd-stack.c: Use C++ exception handling.
10976 * mi/mi-cmd-break.c: Use C++ exception handling.
10977 * main.c: Use C++ exception handling.
10978 * linux-thread-db.c: Use C++ exception handling.
10979 * linux-tdep.c: Use C++ exception handling.
10980 * linux-nat.c: Use C++ exception handling.
10981 * linux-fork.c: Use C++ exception handling.
10982 * linespec.c: Use C++ exception handling.
10983 * language.c: Use C++ exception handling.
10984 * jit.c: Use C++ exception handling.
10985 * infrun.c: Use C++ exception handling.
10986 * infcmd.c: Use C++ exception handling.
10987 * infcall.c: Use C++ exception handling.
10988 * inf-loop.c: Use C++ exception handling.
10989 * i386-tdep.c: Use C++ exception handling.
10990 * i386-linux-tdep.c: Use C++ exception handling.
10991 * guile/scm-value.c: Use C++ exception handling.
10992 * guile/scm-type.c: Use C++ exception handling.
10993 * guile/scm-symtab.c: Use C++ exception handling.
10994 * guile/scm-symbol.c: Use C++ exception handling.
10995 * guile/scm-pretty-print.c: Use C++ exception handling.
10996 * guile/scm-ports.c: Use C++ exception handling.
10997 * guile/scm-param.c: Use C++ exception handling.
10998 * guile/scm-math.c: Use C++ exception handling.
10999 * guile/scm-lazy-string.c: Use C++ exception handling.
11000 * guile/scm-frame.c: Use C++ exception handling.
11001 * guile/scm-disasm.c: Use C++ exception handling.
11002 * guile/scm-cmd.c: Use C++ exception handling.
11003 * guile/scm-breakpoint.c: Use C++ exception handling.
11004 * guile/scm-block.c: Use C++ exception handling.
11005 * guile/guile-internal.h: Use C++ exception handling.
11006 * gnu-v3-abi.c: Use C++ exception handling.
11007 * gdbtypes.c: Use C++ exception handling.
11008 * frame.c: Use C++ exception handling.
11009 * frame-unwind.c: Use C++ exception handling.
11010 * fbsd-tdep.c: Use C++ exception handling.
11011 * f-valprint.c: Use C++ exception handling.
11012 * exec.c: Use C++ exception handling.
11013 * event-top.c: Use C++ exception handling.
11014 * event-loop.c: Use C++ exception handling.
11015 * eval.c: Use C++ exception handling.
11016 * dwarf2read.c: Use C++ exception handling.
11017 * dwarf2loc.c: Use C++ exception handling.
11018 * dwarf2-frame.c: Use C++ exception handling.
11019 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11020 * dwarf-index-write.c: Use C++ exception handling.
11021 * dwarf-index-cache.c: Use C++ exception handling.
11022 * dtrace-probe.c: Use C++ exception handling.
11023 * disasm-selftests.c: Use C++ exception handling.
11024 * darwin-nat.c: Use C++ exception handling.
11025 * cp-valprint.c: Use C++ exception handling.
11026 * cp-support.c: Use C++ exception handling.
11027 * cp-abi.c: Use C++ exception handling.
11028 * corelow.c: Use C++ exception handling.
11029 * completer.c: Use C++ exception handling.
11030 * compile/compile-object-run.c: Use C++ exception handling.
11031 * compile/compile-object-load.c: Use C++ exception handling.
11032 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11033 * compile/compile-c-symbols.c: Use C++ exception handling.
11034 * common/selftest.c: Use C++ exception handling.
11035 * common/new-op.c: Use C++ exception handling.
11036 * cli/cli-script.c: Use C++ exception handling.
11037 * cli/cli-interp.c: Use C++ exception handling.
11038 * cli/cli-cmds.c: Use C++ exception handling.
11039 * c-varobj.c: Use C++ exception handling.
11040 * btrace.c: Use C++ exception handling.
11041 * breakpoint.c: Use C++ exception handling.
11042 * break-catch-throw.c: Use C++ exception handling.
11043 * arch-utils.c: Use C++ exception handling.
11044 * amd64-tdep.c: Use C++ exception handling.
11045 * ada-valprint.c: Use C++ exception handling.
11046 * ada-typeprint.c: Use C++ exception handling.
11047 * ada-lang.c: Use C++ exception handling.
11048 * aarch64-tdep.c: Use C++ exception handling.
11050 2019-04-08 Tom Tromey <tom@tromey.com>
11052 * xml-support.c (gdb_xml_parser::parse): Update.
11053 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11054 * value.c (show_convenience): Update.
11055 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11056 (test_parse_flags_qcs): Update.
11057 * thread.c (thr_try_catch_cmd): Update.
11058 * target.c (target_translate_tls_address): Update.
11059 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11060 (info_frame_command_core, frame_apply_command_count): Update.
11061 * rust-exp.y (rust_lex_exception_test): Update.
11062 * riscv-tdep.c (riscv_print_one_register_info): Update.
11063 * remote.c (remote_target::enable_btrace): Update.
11064 * record-btrace.c (record_btrace_enable_warn): Update.
11065 * python/py-utils.c (gdbpy_convert_exception): Update.
11066 * printcmd.c (do_one_display, print_variable_and_value): Update.
11067 * mi/mi-main.c (mi_print_exception): Update.
11068 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11069 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11070 * linux-nat.c (linux_nat_target::attach): Update.
11071 * linux-fork.c (class scoped_switch_fork_info): Update.
11072 * infrun.c (displaced_step_prepare): Update.
11073 * infcall.c (call_function_by_hand_dummy): Update.
11074 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11075 * gnu-v3-abi.c (print_one_vtable): Update.
11076 * frame.c (get_prev_frame_always): Update.
11077 * f-valprint.c (info_common_command_for_block): Update.
11078 * exec.c (try_open_exec_file): Update.
11079 * exceptions.c (print_exception, exception_print)
11080 (exception_fprintf, exception_print_same): Update.
11081 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11082 * dwarf-index-cache.c (index_cache::store)
11083 (index_cache::lookup_gdb_index): Update.
11084 * darwin-nat.c (maybe_cache_shell): Update.
11085 * cp-valprint.c (cp_print_value_fields): Update.
11086 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11087 (gcc_cplus_symbol_address): Update.
11088 * compile/compile-c-symbols.c (gcc_convert_symbol)
11089 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11090 * common/selftest.c: Update.
11091 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11093 (exception_try_scope_entry, exception_try_scope_exit): Don't
11095 (struct exception_try_scope): Remove.
11096 (TRY): Don't use exception_try_scope.
11097 (struct gdb_exception): Add constructor, operator=.
11098 <what>: New method.
11099 (struct gdb_exception_RETURN_MASK_ALL)
11100 (struct gdb_exception_RETURN_MASK_ERROR)
11101 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11102 (struct gdb_quit_bad_alloc): Update.
11103 * common/common-exceptions.c (exception_none): Change
11105 (struct catcher) <state, exception>: Initialize inline.
11106 <prev>: Remove member.
11107 (current_catcher): Remove.
11108 (catchers): New global.
11109 (exceptions_state_mc_init): Simplify.
11110 (catcher_pop): Remove.
11111 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11112 (try_scope_depth, exception_try_scope_entry)
11113 (exception_try_scope_exit): Remove.
11114 (throw_exception_sjlj): Update.
11115 (exception_messages, exception_messages_size): Remove.
11116 (throw_it): Simplify.
11117 (gdb_exception_sliced_copy): Remove.
11118 (throw_exception_cxx): Update.
11119 * cli/cli-script.c (script_from_file): Update.
11120 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11122 * ada-valprint.c (ada_val_print): Update.
11123 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11124 (create_excep_cond_exprs): Update.
11126 2019-04-08 Tom Tromey <tom@tromey.com>
11128 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11129 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11130 (TRY, CATCH, END_CATCH): Remove some definitions.
11131 * common/common-exceptions.c: Don't use GDB_XCPT.
11132 (catcher_list_size): Remove.
11133 (throw_exception, throw_it): Simplify.
11135 2019-04-05 Tom Tromey <tom@tromey.com>
11137 Revert the header-sorting patch.
11138 * ft32-tdep.c: Revert.
11139 * frv-tdep.c: Revert.
11140 * frv-linux-tdep.c: Revert.
11142 * frame-unwind.c: Revert.
11143 * frame-base.c: Revert.
11144 * fork-child.c: Revert.
11145 * findvar.c: Revert.
11146 * findcmd.c: Revert.
11147 * filesystem.c: Revert.
11148 * filename-seen-cache.h: Revert.
11149 * filename-seen-cache.c: Revert.
11150 * fbsd-tdep.c: Revert.
11151 * fbsd-nat.h: Revert.
11152 * fbsd-nat.c: Revert.
11153 * f-valprint.c: Revert.
11154 * f-typeprint.c: Revert.
11155 * f-lang.c: Revert.
11156 * extension.h: Revert.
11157 * extension.c: Revert.
11158 * extension-priv.h: Revert.
11159 * expprint.c: Revert.
11162 * exceptions.c: Revert.
11163 * event-top.c: Revert.
11164 * event-loop.c: Revert.
11166 * elfread.c: Revert.
11167 * dwarf2read.h: Revert.
11168 * dwarf2read.c: Revert.
11169 * dwarf2loc.c: Revert.
11170 * dwarf2expr.h: Revert.
11171 * dwarf2expr.c: Revert.
11172 * dwarf2-frame.c: Revert.
11173 * dwarf2-frame-tailcall.c: Revert.
11174 * dwarf-index-write.h: Revert.
11175 * dwarf-index-write.c: Revert.
11176 * dwarf-index-common.c: Revert.
11177 * dwarf-index-cache.h: Revert.
11178 * dwarf-index-cache.c: Revert.
11179 * dummy-frame.c: Revert.
11180 * dtrace-probe.c: Revert.
11181 * disasm.h: Revert.
11182 * disasm.c: Revert.
11183 * disasm-selftests.c: Revert.
11184 * dictionary.c: Revert.
11185 * dicos-tdep.c: Revert.
11186 * demangle.c: Revert.
11187 * dcache.h: Revert.
11188 * dcache.c: Revert.
11189 * darwin-nat.h: Revert.
11190 * darwin-nat.c: Revert.
11191 * darwin-nat-info.c: Revert.
11192 * d-valprint.c: Revert.
11193 * d-namespace.c: Revert.
11194 * d-lang.c: Revert.
11196 * csky-tdep.c: Revert.
11197 * csky-linux-tdep.c: Revert.
11198 * cris-tdep.c: Revert.
11199 * cris-linux-tdep.c: Revert.
11200 * cp-valprint.c: Revert.
11201 * cp-support.c: Revert.
11202 * cp-namespace.c: Revert.
11203 * cp-abi.c: Revert.
11204 * corelow.c: Revert.
11205 * corefile.c: Revert.
11206 * continuations.c: Revert.
11207 * completer.h: Revert.
11208 * completer.c: Revert.
11209 * complaints.c: Revert.
11210 * coffread.c: Revert.
11211 * coff-pe-read.c: Revert.
11212 * cli-out.h: Revert.
11213 * cli-out.c: Revert.
11214 * charset.c: Revert.
11215 * c-varobj.c: Revert.
11216 * c-valprint.c: Revert.
11217 * c-typeprint.c: Revert.
11218 * c-lang.c: Revert.
11219 * buildsym.c: Revert.
11220 * buildsym-legacy.c: Revert.
11221 * build-id.h: Revert.
11222 * build-id.c: Revert.
11223 * btrace.c: Revert.
11224 * bsd-uthread.c: Revert.
11225 * breakpoint.h: Revert.
11226 * breakpoint.c: Revert.
11227 * break-catch-throw.c: Revert.
11228 * break-catch-syscall.c: Revert.
11229 * break-catch-sig.c: Revert.
11230 * blockframe.c: Revert.
11232 * bfin-tdep.c: Revert.
11233 * bfin-linux-tdep.c: Revert.
11234 * bfd-target.c: Revert.
11235 * bcache.c: Revert.
11236 * ax-general.c: Revert.
11237 * ax-gdb.h: Revert.
11238 * ax-gdb.c: Revert.
11239 * avr-tdep.c: Revert.
11241 * auto-load.c: Revert.
11242 * arm-wince-tdep.c: Revert.
11243 * arm-tdep.c: Revert.
11244 * arm-symbian-tdep.c: Revert.
11245 * arm-pikeos-tdep.c: Revert.
11246 * arm-obsd-tdep.c: Revert.
11247 * arm-nbsd-tdep.c: Revert.
11248 * arm-nbsd-nat.c: Revert.
11249 * arm-linux-tdep.c: Revert.
11250 * arm-linux-nat.c: Revert.
11251 * arm-fbsd-tdep.c: Revert.
11252 * arm-fbsd-nat.c: Revert.
11253 * arm-bsd-tdep.c: Revert.
11254 * arch-utils.c: Revert.
11255 * arc-tdep.c: Revert.
11256 * arc-newlib-tdep.c: Revert.
11257 * annotate.h: Revert.
11258 * annotate.c: Revert.
11259 * amd64-windows-tdep.c: Revert.
11260 * amd64-windows-nat.c: Revert.
11261 * amd64-tdep.c: Revert.
11262 * amd64-sol2-tdep.c: Revert.
11263 * amd64-obsd-tdep.c: Revert.
11264 * amd64-obsd-nat.c: Revert.
11265 * amd64-nbsd-tdep.c: Revert.
11266 * amd64-nbsd-nat.c: Revert.
11267 * amd64-nat.c: Revert.
11268 * amd64-linux-tdep.c: Revert.
11269 * amd64-linux-nat.c: Revert.
11270 * amd64-fbsd-tdep.c: Revert.
11271 * amd64-fbsd-nat.c: Revert.
11272 * amd64-dicos-tdep.c: Revert.
11273 * amd64-darwin-tdep.c: Revert.
11274 * amd64-bsd-nat.c: Revert.
11275 * alpha-tdep.c: Revert.
11276 * alpha-obsd-tdep.c: Revert.
11277 * alpha-nbsd-tdep.c: Revert.
11278 * alpha-mdebug-tdep.c: Revert.
11279 * alpha-linux-tdep.c: Revert.
11280 * alpha-linux-nat.c: Revert.
11281 * alpha-bsd-tdep.c: Revert.
11282 * alpha-bsd-nat.c: Revert.
11283 * aix-thread.c: Revert.
11285 * addrmap.c: Revert.
11286 * ada-varobj.c: Revert.
11287 * ada-valprint.c: Revert.
11288 * ada-typeprint.c: Revert.
11289 * ada-tasks.c: Revert.
11290 * ada-lang.c: Revert.
11291 * aarch64-tdep.c: Revert.
11292 * aarch64-ravenscar-thread.c: Revert.
11293 * aarch64-newlib-tdep.c: Revert.
11294 * aarch64-linux-tdep.c: Revert.
11295 * aarch64-linux-nat.c: Revert.
11296 * aarch64-fbsd-tdep.c: Revert.
11297 * aarch64-fbsd-nat.c: Revert.
11298 * aarch32-linux-nat.c: Revert.
11300 2019-04-05 Tom Tromey <tom@tromey.com>
11302 * ft32-tdep.c: Sort headers.
11303 * frv-tdep.c: Sort headers.
11304 * frv-linux-tdep.c: Sort headers.
11305 * frame.c: Sort headers.
11306 * frame-unwind.c: Sort headers.
11307 * frame-base.c: Sort headers.
11308 * fork-child.c: Sort headers.
11309 * findvar.c: Sort headers.
11310 * findcmd.c: Sort headers.
11311 * filesystem.c: Sort headers.
11312 * filename-seen-cache.h: Sort headers.
11313 * filename-seen-cache.c: Sort headers.
11314 * fbsd-tdep.c: Sort headers.
11315 * fbsd-nat.h: Sort headers.
11316 * fbsd-nat.c: Sort headers.
11317 * f-valprint.c: Sort headers.
11318 * f-typeprint.c: Sort headers.
11319 * f-lang.c: Sort headers.
11320 * extension.h: Sort headers.
11321 * extension.c: Sort headers.
11322 * extension-priv.h: Sort headers.
11323 * expprint.c: Sort headers.
11324 * exec.h: Sort headers.
11325 * exec.c: Sort headers.
11326 * exceptions.c: Sort headers.
11327 * event-top.c: Sort headers.
11328 * event-loop.c: Sort headers.
11329 * eval.c: Sort headers.
11330 * elfread.c: Sort headers.
11331 * dwarf2read.h: Sort headers.
11332 * dwarf2read.c: Sort headers.
11333 * dwarf2loc.c: Sort headers.
11334 * dwarf2expr.h: Sort headers.
11335 * dwarf2expr.c: Sort headers.
11336 * dwarf2-frame.c: Sort headers.
11337 * dwarf2-frame-tailcall.c: Sort headers.
11338 * dwarf-index-write.h: Sort headers.
11339 * dwarf-index-write.c: Sort headers.
11340 * dwarf-index-common.c: Sort headers.
11341 * dwarf-index-cache.h: Sort headers.
11342 * dwarf-index-cache.c: Sort headers.
11343 * dummy-frame.c: Sort headers.
11344 * dtrace-probe.c: Sort headers.
11345 * disasm.h: Sort headers.
11346 * disasm.c: Sort headers.
11347 * disasm-selftests.c: Sort headers.
11348 * dictionary.c: Sort headers.
11349 * dicos-tdep.c: Sort headers.
11350 * demangle.c: Sort headers.
11351 * dcache.h: Sort headers.
11352 * dcache.c: Sort headers.
11353 * darwin-nat.h: Sort headers.
11354 * darwin-nat.c: Sort headers.
11355 * darwin-nat-info.c: Sort headers.
11356 * d-valprint.c: Sort headers.
11357 * d-namespace.c: Sort headers.
11358 * d-lang.c: Sort headers.
11359 * ctf.c: Sort headers.
11360 * csky-tdep.c: Sort headers.
11361 * csky-linux-tdep.c: Sort headers.
11362 * cris-tdep.c: Sort headers.
11363 * cris-linux-tdep.c: Sort headers.
11364 * cp-valprint.c: Sort headers.
11365 * cp-support.c: Sort headers.
11366 * cp-namespace.c: Sort headers.
11367 * cp-abi.c: Sort headers.
11368 * corelow.c: Sort headers.
11369 * corefile.c: Sort headers.
11370 * continuations.c: Sort headers.
11371 * completer.h: Sort headers.
11372 * completer.c: Sort headers.
11373 * complaints.c: Sort headers.
11374 * coffread.c: Sort headers.
11375 * coff-pe-read.c: Sort headers.
11376 * cli-out.h: Sort headers.
11377 * cli-out.c: Sort headers.
11378 * charset.c: Sort headers.
11379 * c-varobj.c: Sort headers.
11380 * c-valprint.c: Sort headers.
11381 * c-typeprint.c: Sort headers.
11382 * c-lang.c: Sort headers.
11383 * buildsym.c: Sort headers.
11384 * buildsym-legacy.c: Sort headers.
11385 * build-id.h: Sort headers.
11386 * build-id.c: Sort headers.
11387 * btrace.c: Sort headers.
11388 * bsd-uthread.c: Sort headers.
11389 * breakpoint.h: Sort headers.
11390 * breakpoint.c: Sort headers.
11391 * break-catch-throw.c: Sort headers.
11392 * break-catch-syscall.c: Sort headers.
11393 * break-catch-sig.c: Sort headers.
11394 * blockframe.c: Sort headers.
11395 * block.c: Sort headers.
11396 * bfin-tdep.c: Sort headers.
11397 * bfin-linux-tdep.c: Sort headers.
11398 * bfd-target.c: Sort headers.
11399 * bcache.c: Sort headers.
11400 * ax-general.c: Sort headers.
11401 * ax-gdb.h: Sort headers.
11402 * ax-gdb.c: Sort headers.
11403 * avr-tdep.c: Sort headers.
11404 * auxv.c: Sort headers.
11405 * auto-load.c: Sort headers.
11406 * arm-wince-tdep.c: Sort headers.
11407 * arm-tdep.c: Sort headers.
11408 * arm-symbian-tdep.c: Sort headers.
11409 * arm-pikeos-tdep.c: Sort headers.
11410 * arm-obsd-tdep.c: Sort headers.
11411 * arm-nbsd-tdep.c: Sort headers.
11412 * arm-nbsd-nat.c: Sort headers.
11413 * arm-linux-tdep.c: Sort headers.
11414 * arm-linux-nat.c: Sort headers.
11415 * arm-fbsd-tdep.c: Sort headers.
11416 * arm-fbsd-nat.c: Sort headers.
11417 * arm-bsd-tdep.c: Sort headers.
11418 * arch-utils.c: Sort headers.
11419 * arc-tdep.c: Sort headers.
11420 * arc-newlib-tdep.c: Sort headers.
11421 * annotate.h: Sort headers.
11422 * annotate.c: Sort headers.
11423 * amd64-windows-tdep.c: Sort headers.
11424 * amd64-windows-nat.c: Sort headers.
11425 * amd64-tdep.c: Sort headers.
11426 * amd64-sol2-tdep.c: Sort headers.
11427 * amd64-obsd-tdep.c: Sort headers.
11428 * amd64-obsd-nat.c: Sort headers.
11429 * amd64-nbsd-tdep.c: Sort headers.
11430 * amd64-nbsd-nat.c: Sort headers.
11431 * amd64-nat.c: Sort headers.
11432 * amd64-linux-tdep.c: Sort headers.
11433 * amd64-linux-nat.c: Sort headers.
11434 * amd64-fbsd-tdep.c: Sort headers.
11435 * amd64-fbsd-nat.c: Sort headers.
11436 * amd64-dicos-tdep.c: Sort headers.
11437 * amd64-darwin-tdep.c: Sort headers.
11438 * amd64-bsd-nat.c: Sort headers.
11439 * alpha-tdep.c: Sort headers.
11440 * alpha-obsd-tdep.c: Sort headers.
11441 * alpha-nbsd-tdep.c: Sort headers.
11442 * alpha-mdebug-tdep.c: Sort headers.
11443 * alpha-linux-tdep.c: Sort headers.
11444 * alpha-linux-nat.c: Sort headers.
11445 * alpha-bsd-tdep.c: Sort headers.
11446 * alpha-bsd-nat.c: Sort headers.
11447 * aix-thread.c: Sort headers.
11448 * agent.c: Sort headers.
11449 * addrmap.c: Sort headers.
11450 * ada-varobj.c: Sort headers.
11451 * ada-valprint.c: Sort headers.
11452 * ada-typeprint.c: Sort headers.
11453 * ada-tasks.c: Sort headers.
11454 * ada-lang.c: Sort headers.
11455 * aarch64-tdep.c: Sort headers.
11456 * aarch64-ravenscar-thread.c: Sort headers.
11457 * aarch64-newlib-tdep.c: Sort headers.
11458 * aarch64-linux-tdep.c: Sort headers.
11459 * aarch64-linux-nat.c: Sort headers.
11460 * aarch64-fbsd-tdep.c: Sort headers.
11461 * aarch64-fbsd-nat.c: Sort headers.
11462 * aarch32-linux-nat.c: Sort headers.
11464 2019-04-04 Tom Tromey <tom@tromey.com>
11466 * varobj.c (varobj_create): Update.
11467 * rust-exp.y (struct rust_parser) <update_innermost_block,
11468 lookup_symbol>: New methods.
11469 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11471 (rust_parser::rust_lookup_type)
11472 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11473 * printcmd.c (display_command, do_one_display): Update.
11474 * parser-defs.h (struct parser_state) <parser_state>: Add
11475 "tracker" parameter.
11476 (block_tracker): New member.
11477 (class innermost_block_tracker) <innermost_block_tracker>: Add
11479 <reset>: Remove method.
11480 (innermost_block): Don't declare.
11481 (null_post_parser): Update.
11482 * parse.c (innermost_block): Remove global.
11483 (write_dollar_variable): Update.
11484 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11485 Remove "tracker_types" parameter.
11486 (parse_expression): Add "tracker" parameter.
11487 (parse_expression_for_completion): Update.
11488 (null_post_parser): Add "tracker" parameter.
11489 * p-exp.y: Update rules.
11490 * m2-exp.y: Update rules.
11491 * language.h (struct language_defn) <la_post_parser>: Add
11492 "tracker" parameter.
11493 * go-exp.y: Update rules.
11494 * f-exp.y: Update rules.
11495 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11497 * d-exp.y: Update rules.
11498 * c-exp.y: Update rules.
11499 * breakpoint.c (set_breakpoint_condition): Create an
11500 innermost_block_tracker.
11501 (watch_command_1): Likewise.
11502 * ada-lang.c (resolve): Add "tracker" parameter.
11503 (resolve_subexp): Likewise.
11504 * ada-exp.y (write_var_from_sym): Update.
11506 2019-04-04 Tom Tromey <tom@tromey.com>
11508 * type-stack.h: New file.
11509 * type-stack.c: New file.
11510 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11512 (insert_into_type_stack, insert_type, push_type, push_type_int)
11513 (insert_type_address_space, pop_type, pop_type_int)
11514 (pop_typelist, pop_type_stack, append_type_stack)
11515 (push_type_stack, get_type_stack, push_typelist)
11516 (follow_type_instance_flags, follow_types): Don't declare.
11517 * parse.c (type_stack): Remove global.
11518 (parse_exp_in_context): Update.
11519 (insert_into_type_stack, insert_type, push_type, push_type_int)
11520 (insert_type_address_space, pop_type, pop_type_int)
11521 (pop_typelist, pop_type_stack, append_type_stack)
11522 (push_type_stack, get_type_stack, push_typelist)
11523 (follow_type_instance_flags, follow_types): Remove (moved to
11525 * f-exp.y (type_stack): New global.
11527 (push_kind_type, f_parse): Update.
11528 * d-exp.y (type_stack): New global.
11531 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11533 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11534 (HFILES_NO_SRCDIR): Add type-stack.h.
11536 2019-04-04 Tom Tromey <tom@tromey.com>
11538 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11539 (rust_parser::convert_ast_to_expression, rust_parse)
11540 (rust_lex_test_completion, rust_lex_tests): Update.
11541 * parser-defs.h (struct expr_completion_state): New.
11542 (struct parser_state) <parser_state>: Add completion parameter.
11543 <mark_struct_expression, mark_completion_tag>: New methods.
11544 <parse_completion, m_completion_state>: New members.
11545 (prefixify_expression, null_post_parser): Update.
11546 (mark_struct_expression, mark_completion_tag): Don't declare.
11547 * parse.c (parse_completion, expout_last_struct)
11548 (expout_tag_completion_type, expout_completion_name): Remove
11550 (parser_state::mark_struct_expression)
11551 (parser_state::mark_completion_tag): Now methods.
11552 (prefixify_expression): Add last_struct parameter.
11553 (prefixify_subexp): Likewise.
11554 (parse_exp_1): Update.
11555 (parse_exp_in_context): Add cstate parameter. Update.
11556 (parse_expression_for_completion): Create an
11557 expr_completion_state.
11558 (null_post_parser): Add "completion" parameter.
11559 * p-exp.y: Update rules.
11561 * language.h (struct language_defn) <la_post_parser>: Add
11562 "completing" parameter.
11563 * go-exp.y: Update rules.
11564 (lex_one_token): Update.
11565 * expression.h (parse_completion): Don't declare.
11566 * d-exp.y: Update rules.
11567 (lex_one_token): Update rules.
11568 * c-exp.y: Update rules.
11569 (lex_one_token): Update.
11570 * ada-lang.c (resolve): Add "parse_completion" parameter.
11571 (resolve_subexp): Likewise.
11572 (ada_resolve_function): Likewise.
11574 2019-04-04 Tom Tromey <tom@tromey.com>
11576 * parser-defs.h (struct parser_state) <start_arglist,
11577 end_arglist>: New methods.
11578 <arglist_len, m_funcall_chain>: New members.
11579 (arglist_len, start_arglist, end_arglist): Don't declare.
11580 * parse.c (arglist_len, funcall_chain): Remove global.
11581 (start_arglist, end_arglist): Remove functions.
11582 (parse_exp_in_context): Update.
11583 * p-exp.y: Update rules.
11584 * m2-exp.y: Update rules.
11585 * go-exp.y: Update rules.
11586 * f-exp.y: Update rules.
11587 * d-exp.y: Update rules.
11588 * c-exp.y: Update rules.
11590 2019-04-04 Tom Tromey <tom@tromey.com>
11592 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11593 lex_operator, push_back>: New methods.
11595 (rust_parser::lex_hex, lex_escape): Rename and update.
11596 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11597 (rust_parser::lex_operator): Rename and update.
11598 (rust_parser::lex_number, rustyylex, rustyyerror)
11599 (rust_lex_test_init, rust_lex_test_sequence)
11600 (rust_lex_test_push_back, rust_lex_tests): Update.
11601 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11603 <lexptr, prev_lexptr>: New members.
11604 (lexptr, prev_lexptr): Don't declare.
11605 * parse.c (lexptr, prev_lexptr): Remove globals.
11606 (parse_exp_in_context): Update.
11607 * p-exp.y (yylex, yyerror): Update.
11608 * m2-exp.y (parse_number, yylex, yyerror): Update.
11609 * go-exp.y (lex_one_token, yyerror): Update.
11610 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11611 * d-exp.y (lex_one_token, yyerror): Update.
11612 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11613 (lex_one_token, yyerror): Update.
11614 * ada-lex.l (YY_INPUT): Update.
11615 (rewind_to_char): Update.
11616 * ada-exp.y (yyerror): Update.
11618 2019-04-04 Tom Tromey <tom@tromey.com>
11620 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11621 * parser-defs.h (struct parser_state) <parser_state>: Add new
11623 <comma_terminates>: New member.
11624 (comma_terminates): Don't declare global.
11625 * parse.c (comma_terminates): Remove global.
11626 (parse_exp_in_context): Update.
11627 * p-exp.y (yylex): Update.
11628 * m2-exp.y (yylex): Update.
11629 * go-exp.y (lex_one_token): Update.
11630 * f-exp.y (yylex): Update.
11631 * d-exp.y (lex_one_token): Update.
11632 * c-exp.y (lex_one_token): Update.
11633 * ada-lex.l: Update.
11635 2019-04-04 Tom Tromey <tom@tromey.com>
11637 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11638 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11639 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11640 * parser-defs.h (paren_depth): Don't declare.
11641 * parse.c (paren_depth): Remove global.
11642 (parse_exp_in_context): Update.
11643 * p-exp.y (paren_depth): New global.
11644 (pascal_parse): Initialize it.
11645 * m2-exp.y (paren_depth): New global.
11646 (m2_parse): Initialize it.
11647 * go-exp.y (paren_depth): New global.
11648 (go_parse): Initialize it.
11649 * f-exp.y (paren_depth): New global.
11650 (f_parse): Initialize it.
11651 * d-exp.y (paren_depth): New global.
11652 (d_parse): Initialize it.
11653 * c-exp.y (paren_depth): New global.
11654 (c_parse): Initialize it.
11655 * ada-lex.l (paren_depth): New global.
11656 (lexer_init): Initialize it.
11658 2019-04-04 Tom Tromey <tom@tromey.com>
11660 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11661 (rust_parser::convert_ast_to_type)
11662 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11663 * parser-defs.h (struct parser_state) <parser_state>: Add
11664 parameters. Initialize new members.
11665 <expression_context_block, expression_context_pc>: New members.
11666 * parse.c (expression_context_block, expression_context_pc):
11668 (parse_exp_in_context): Update.
11669 * p-exp.y: Update all rules.
11671 * m2-exp.y: Update all rules.
11673 * go-exp.y (yylex): Update.
11674 * f-exp.y (yylex): Update.
11675 * d-exp.y: Update all rules.
11677 * c-exp.y: Update all rules.
11678 (lex_one_token, classify_name, yylex, c_parse): Update.
11679 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11681 2019-04-04 Tom Tromey <tom@tromey.com>
11683 * gdbarch.h, gdbarch.c: Rebuild.
11684 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11686 (struct stap_parse_info): Replace "parser_state" with
11688 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11689 (parser_state): New class.
11690 * parse.c (expr_builder): Rename.
11691 (expr_builder::release): Rename.
11692 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11693 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11694 (write_exp_elt_longcst, write_exp_elt_floatcst)
11695 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11696 (write_exp_string_vector, write_exp_bitstring)
11697 (write_exp_msymbol, mark_struct_expression)
11698 (write_dollar_variable)
11699 (insert_type_address_space, increase_expout_size): Replace
11700 "parser_state" with "expr_builder".
11701 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11702 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11703 "parser_state" with "expr_builder".
11705 2019-04-04 Tom Tromey <tom@tromey.com>
11707 * rust-exp.y: Replace "parse_language" with method call.
11709 (yylex): Replace "parse_language" with method call.
11711 (yylex): Replace "parse_language" with method call.
11712 * go-exp.y (classify_name): Replace "parse_language" with method
11714 * f-exp.y (yylex): Replace "parse_language" with method call.
11715 * d-exp.y (lex_one_token): Replace "parse_language" with method
11718 (lex_one_token, classify_name, yylex): Replace "parse_language"
11720 * ada-exp.y (find_primitive_type, type_char)
11721 (type_system_address): Replace "parse_language" with method call.
11723 2019-04-04 Tom Tromey <tom@tromey.com>
11725 * rust-exp.y: Replace "parse_gdbarch" with method call.
11726 * parse.c (write_dollar_variable, insert_type_address_space):
11727 Replace "parse_gdbarch" with method call.
11728 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11730 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11732 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11733 "parse_gdbarch" with method call.
11734 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11736 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11737 "parse_gdbarch" with method call.
11738 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11739 "parse_gdbarch" with method call.
11740 * c-exp.y (parse_type, parse_number, classify_name): Replace
11741 "parse_gdbarch" with method call.
11742 * ada-lex.l: Replace "parse_gdbarch" with method call.
11743 * ada-exp.y (parse_type, find_primitive_type, type_char)
11744 (type_system_address): Replace "parse_gdbarch" with method call.
11746 2019-04-04 Tom Tromey <tom@tromey.com>
11748 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11749 * stap-probe.c (stap_parse_argument): Update.
11750 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11751 initial_size parameter.
11752 * rust-exp.y (rust_lex_tests): Update.
11753 * parse.c (parser_state): Update.
11754 (parse_exp_in_context): Update.
11755 * parser-defs.h (struct parser_state) <parser_state>: Remove
11756 "initial_size" parameter.
11758 2019-04-04 Tom Tromey <tom@tromey.com>
11760 * parser-defs.h (increase_expout_size): Don't declare.
11761 * parse.c (increase_expout_size): Now static.
11763 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11765 * gnu-nat.c (gnu_nat_target::wait): Fix
11766 target_waitstatus_to_string call.
11768 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11770 * eval.c (evaluate_subexp_standard): Handle internal functions
11771 during Fortran function call handling.
11773 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11775 * NEWS: Mention new internal functions.
11776 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11777 (read_base_type): Use dwarf2_init_complex_target_type.
11778 * value.c (creal_internal_fn): New function.
11779 (cimag_internal_fn): New function.
11780 (_initialize_values): Register new internal functions.
11782 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11784 * infrun.c (stop_all_threads): If debug_infrun, always
11785 trace the wait status after wait_one, using
11786 target_waitstatus_to_string and target_pid_to_str.
11787 (handle_inferior_event): Replace various trace of
11788 wait status kind by a single trace.
11789 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11790 wait status kind image by target_waitstatus_to_string.
11791 * target/waitstatus.c (target_waitstatus_to_string): Fix
11794 2019-04-01 Tom Tromey <tromey@adacore.com>
11797 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11799 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11800 Pedro Alves <palves@redhat.com>
11802 * top.c (quit_force): Call 'finalize_values'.
11803 * value.c (finalize_values): New function.
11804 * value.h (finalize_values): Declare.
11806 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11808 * NEWS: Announce $_gdb_major and $_gdb_minor.
11810 * top.c (init_gdb_version_vars): New function.
11811 (gdb_init): Call init_gdb_version_vars.
11813 2019-03-29 Tom Tromey <tromey@adacore.com>
11815 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11816 help text. Remove dead code.
11818 2019-03-29 Keith Seitz <keiths@redhat.com>
11820 From Siddhesh Poyarekar:
11821 * f-lang.h (f77_get_upperbound): Return LONGEST.
11822 (f77_get_lowerbound): Likewise.
11823 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11824 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11826 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11827 plongest to format print it.
11828 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11829 (f77_get_upperbound): Likewise.
11830 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11831 LOWER_BOUND to LONGEST.
11832 (f77_create_arrayprint_offset_tbl): Likewise.
11834 2019-03-29 Keith Seitz <keiths@redhat.com>
11836 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11837 %s/pulongest for TYPE_LENGTH instead of %d in format
11839 * ada-typerint.c (ada_print_type): Likewise.
11840 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11841 * compile/compile-c-support.c (generate_register_struct): Likewise.
11842 * gdbtypes.c (recursive_dump_type): Likewise.
11843 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11844 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11845 instead of %d in format strings.
11846 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11847 to std::min to ULONGEST.
11848 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11849 instead of %d in format strings.
11850 * tracepoint.c (info_scope_command): Likewise.
11851 * typeprint.c (print_offset_data::update)
11852 (print_offset_data::finish): Likewise.
11853 * xtensa-tdep.c (xtensa_store_return_value)
11854 (xtensa_push_dummy_call): Likewise.
11856 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11858 * windows-nat.c (display_selector): Fixed format specifications
11861 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11863 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11865 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11867 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11868 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11869 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11870 (nios2_linux_init_abi): Install it.
11872 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11874 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11876 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11878 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11880 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11881 Tom Tromey <tromey@adacore.com>
11883 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11885 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11887 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11888 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11889 method to compute the bounds of range types. Also print "[evaluated]"
11890 if the bounds' values come from a dynamic evaluation.
11892 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11894 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11895 whitespace when pretty printing is on.
11897 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11899 * ppc-linux-nat.c: Add include.
11901 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11903 * NEWS: Mention AArch64 Pointer Authentication.
11905 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11907 * arm-linux-nat.c: Add include.
11909 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11911 * source-cache.c (source_cache::get_source_lines): Re-read
11912 fullname after calling open_source_file.
11914 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11916 * NEWS: Mention TLS support for FreeBSD.
11918 2019-03-25 Tom Tromey <tromey@adacore.com>
11920 * minsyms.c (BUNCH_SIZE): Update comment.
11921 (~minimal_symbol_reader): Remove old comment.
11922 (compact_minimal_symbols): Update comment.
11923 (minimal_symbol_reader::install): Remove old comment. Update
11926 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11928 * s390-linux-nat.c: Add include.
11930 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11932 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11933 Call linux_get_hwcap.
11934 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11936 (aarch64_linux_get_hwcap): Remove function.
11937 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11939 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11941 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11942 * linux-tdep.c (linux_get_hwcap): Add function.
11943 (linux_get_hwcap2): Likewise.
11944 * linux-tdep.h (linux_get_hwcap): Add declaration.
11945 (linux_get_hwcap2): Likewise.
11946 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11947 (ppc_linux_get_hwcap2): Likewise.
11948 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11950 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11951 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11952 (ppc_linux_nat_target::read_description): Likewise.
11953 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11954 * s390-linux-nat.c: Likewise.
11955 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11957 2019-03-24 Tom Tromey <tom@tromey.com>
11959 * ada-lang.c (standard_lookup): Simplify initialization.
11960 (ada_lookup_symbol_nonlocal): Simplify return.
11961 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11962 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11963 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11964 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11966 * solib.c (solib_global_lookup): Simplify.
11967 * symtab.c (null_block_symbol): Remove.
11968 (symbol_cache_lookup): Simplify returns.
11969 (lookup_language_this): Simplify returns.
11970 (lookup_symbol_aux): Simplify return.
11971 (lookup_local_symbol): Simplify returns.
11972 (lookup_global_symbol_from_objfile): Simplify return.
11973 (lookup_symbol_in_objfile_symtabs)
11974 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11975 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11976 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11977 * cp-namespace.c (cp_lookup_bare_symbol)
11978 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11979 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11980 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11981 (cp_lookup_symbol_via_imports): Simplify initialization.
11982 (find_symbol_in_baseclass): Likewise.
11983 * symtab.h (null_block_symbol): Remove.
11984 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11985 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11986 (d_lookup_symbol_module): Likewise.
11987 (find_symbol_in_baseclass): Simplify initialization.
11989 2019-03-24 Tom Tromey <tom@tromey.com>
11991 * expression.h: Don't include symtab.h.
11992 (struct block): Forward declare.
11994 2019-03-24 Tom Tromey <tom@tromey.com>
11996 * c-exp.y (typebase): Remove casts.
11997 * gdbtypes.c (lookup_unsigned_typename, )
11998 (lookup_signed_typename): Remove cast.
11999 * eval.c (parse_to_comma_and_eval): Remove cast.
12000 * parse.c (write_dollar_variable): Remove cast.
12001 * block.h (struct block) <superblock>: Now const.
12002 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12003 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12004 (map_block): Make "block" const.
12005 * symfile.h (struct quick_symbol_functions)
12006 <map_matching_symbols>: Constify block argument to "callback".
12007 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12009 (find_pc_sect_compunit_symtab): Make "b" const.
12010 (find_symbol_at_address): Likewise.
12011 (search_symbols): Likewise.
12012 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12013 (dw2_debug_names_lookup_symbol): Likewise.
12014 (dw2_map_matching_symbols): Update.
12015 * p-valprint.c (pascal_val_print): Remove "block".
12016 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12017 (aux_add_nonlocal_symbols): Make "block" const.
12018 (resolve_subexp): Remove cast.
12019 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12021 (iterate_over_file_blocks): Likewise.
12022 * f-exp.y (%union) <bval>: Remove.
12023 * coffread.c (patch_opaque_types): Make "b" const.
12024 * spu-tdep.c (spu_catch_start): Make "block" const.
12025 * c-valprint.c (print_unpacked_pointer): Remove "block".
12026 * symmisc.c (dump_symtab_1): Make "b" const.
12027 (block_depth): Make "block" const.
12028 * d-exp.y (%union) <bval>: Remove.
12029 * cp-support.h (cp_lookup_rtti_type): Update.
12030 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12031 * psymtab.c (psym_lookup_symbol): Make "block" const.
12032 (maintenance_check_psymtabs): Make "b" const.
12033 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12034 (enumerate_locals, enumerate_args): Update.
12035 * python/py-symtab.c (stpy_global_block): Make "block" const.
12036 (stpy_static_block): Likewise.
12037 * inline-frame.c (block_starting_point_at): Make "new_block"
12039 * block.c (find_block_in_blockvector): Make return type const.
12040 (blockvector_for_pc_sect): Make "b" const.
12041 (find_block_in_blockvector): Make "b" const.
12043 2019-03-23 Tom Tromey <tom@tromey.com>
12045 * varobj.c (varobj_create): Update.
12046 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12047 * printcmd.c (display_command, do_one_display): Don't reset
12049 * parser-defs.h (enum innermost_block_tracker_type): Move to
12051 (innermost_block): Update comment.
12052 * parse.c (parse_exp_1): Add tracker_types parameter.
12053 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12054 tracker_types parameter. Reset innermost_block.
12055 (parse_exp_in_context): Remove.
12056 (parse_expression_for_completion): Update.
12057 * objfiles.c (~objfile): Don't reset expression_context_block or
12059 * expression.h (enum innermost_block_tracker_type): Move from
12061 (parse_exp_1): Add tracker_types parameter.
12062 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12063 reset innermost_block.
12065 2019-03-23 Tom Tromey <tom@tromey.com>
12067 * objfiles.h: Include bcache.h.
12069 2019-03-23 Tom Tromey <tom@tromey.com>
12071 * linespec.c (get_current_search_block): Use
12072 scoped_restore_current_language.
12073 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12075 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12076 Jiong Wang <jiong.wang@arm.com>
12078 * aarch64-linux-tdep.c
12079 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12081 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12083 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12084 Jiong Wang <jiong.wang@arm.com>
12086 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12088 (aarch64_analyze_prologue_test): Add PACIASP test.
12089 (aarch64_prologue_prev_register): Unmask PC value.
12091 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12092 Jiong Wang <jiong.wang@arm.com>
12094 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12095 (aarch64_dwarf2_prev_register): Unmask PC value.
12096 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12097 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12098 DW_CFA_AARCH64_negate_ra_state.
12099 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12101 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12102 Jiong Wang <jiong.wang@arm.com>
12104 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12106 (aarch64_pseudo_register_name): Likewise.
12107 (aarch64_pseudo_register_type): Likewise.
12108 (aarch64_pseudo_register_reggroup_p): Likewise.
12109 (aarch64_gdbarch_init): Add pauth registers.
12110 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12111 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12112 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12113 (struct gdbarch_tdep): Add regnum for ra_state.
12115 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12116 Jiong Wang <jiong.wang@arm.com>
12118 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12120 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12121 Jiong Wang <jiong.wang@arm.com>
12123 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12125 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12126 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12127 (aarch64_gdbarch_init): Add puth registers.
12128 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12129 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12130 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12132 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12133 Jiong Wang <jiong.wang@arm.com>
12135 * aarch64-linux-nat.c
12136 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12137 * aarch64-linux-tdep.c
12138 (aarch64_linux_core_read_description): Likewise.
12139 (aarch64_linux_get_hwcap): New function.
12140 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12141 (aarch64_linux_get_hwcap): New declaration.
12143 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12144 Jiong Wang <jiong.wang@arm.com>
12146 * aarch64-linux-nat.c
12147 (aarch64_linux_nat_target::read_description): Add pauth param.
12148 * aarch64-linux-tdep.c
12149 (aarch64_linux_core_read_description): Likewise.
12150 * aarch64-tdep.c (struct target_desc): Add in pauth.
12151 (aarch64_read_description): Add pauth param.
12152 (aarch64_gdbarch_init): Likewise.
12153 * aarch64-tdep.h (aarch64_read_description): Likewise.
12154 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12155 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12156 * features/Makefile: Add new files.
12157 * features/aarch64-pauth.c: New file.
12158 * features/aarch64-pauth.xml: New file.
12160 2019-03-20 Tom Tromey <tromey@adacore.com>
12162 * infrun.c (handle_inferior_event): Rename from
12163 handle_inferior_event_1. Create a scoped_value_mark.
12164 (handle_inferior_event): Remove.
12166 2019-03-19 Tom Tromey <tromey@adacore.com>
12168 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12169 * infrun.h (print_stop_event): Add "displays" parameter.
12170 * infrun.c (print_stop_event): Add "displays" parameter.
12172 2019-03-19 Pedro Alves <palves@redhat.com>
12174 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12175 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12176 to -1. Fix TABs vs spaces.
12177 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12178 * tui/tui-out.h (tui_ui_out) Add intro comments.
12179 <m_line, m_start_of_line>: In-class initialize, and add describing
12182 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12184 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12186 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12188 2019-03-18 Pedro Alves <palves@redhat.com>
12189 Eli Zaretskii <eliz@gnu.org>
12191 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12192 m_line and m_start_of_line.
12194 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12196 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12197 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12198 it returns a newline. This fixes a regression in TU mode, whereby
12199 the next line is output on the same screen line as the user input.
12201 2019-03-18 Tom Tromey <tromey@adacore.com>
12203 * minsyms.c (minimal_symbol_reader::install): Remove call to
12206 2019-03-18 Pedro Alves <palves@redhat.com>
12208 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12210 (apply_style): New, factored out from ...
12211 (apply_ansi_escape): ... this. Handle reverse video mode.
12212 (tui_set_reverse_mode): New function.
12213 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12214 * tui/tui-winsource.c (tui_show_source_line): Use
12215 tui_set_reverse_mode instead of setting A_STANDOUT.
12216 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12217 New setter methods.
12219 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12221 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12224 2019-03-18 Tom Tromey <tromey@adacore.com>
12226 * ada-lang.c (empty_array): Add "high" parameter.
12227 (ada_evaluate_subexp): Update.
12229 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12231 * unittests/string_view-selftests.c: Define
12232 _initialize_string_view_selftests unconditionally.
12234 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12237 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12239 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12242 * windows-nat.c (display_selector): Fix format specifiers.
12244 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12246 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12247 tui_refill_source_window instead of tui_refresh_win, to update the
12248 current execution line. This fixes redisplay of the current line
12249 when stepping through the code with "next" or "step".
12251 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12253 * source-cache.c (source_cache::get_source_lines): Call
12254 find_source_lines to initialize s->nlines. This fixes vertical
12255 scrolling of TUI source window when the DOWN arrow is pressed.
12257 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12259 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12260 linux-thread-db.c (_initialize_thread_db): Likewise.
12262 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12264 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12265 wclrtoeol in tui_show_source_line". This reverts changes made in
12266 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12268 2019-03-15 Tom Tromey <tom@tromey.com>
12270 * symtab.h (struct minimal_symbol): Derive from
12271 general_symbol_info.
12272 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12273 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12274 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12275 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12276 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12277 (MSYMBOL_SEARCH_NAME): Update.
12278 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12279 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12280 * minsyms.c (minimal_symbol_reader::record_full): Update.
12282 2019-03-15 Tom Tromey <tom@tromey.com>
12284 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12286 2019-03-15 Tom Tromey <tom@tromey.com>
12288 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12289 unique_xmalloc_ptr.
12290 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12292 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12293 (build_minimal_symbol_hash_tables)
12294 (minimal_symbol_reader::install): Update.
12296 2019-03-15 Tom Tromey <tom@tromey.com>
12298 * symtab.c (create_demangled_names_hash): Update.
12299 (symbol_set_names): Update.
12300 * objfiles.h (struct objfile_per_bfd_storage)
12301 <demangled_names_hash>: Now an htab_up.
12302 * objfiles.c (objfile_per_bfd_storage): Simplify.
12304 2019-03-15 Tom Tromey <tom@tromey.com>
12306 * objfiles.h (struct objfile_per_bfd_storage): Declare
12308 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12310 (get_objfile_bfd_data): Use new. Don't initialize
12312 (free_objfile_per_bfd_storage): Remove.
12313 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12315 2019-03-15 Tom Tromey <tom@tromey.com>
12317 * symfile.c (reread_symbols): Update.
12318 * objfiles.c (objfile::objfile): Update.
12319 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12320 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12322 (minimal_symbol_reader::install): Update.
12323 (terminate_minimal_symbol_table): Remove.
12324 * jit.c (jit_object_close_impl): Update.
12326 2019-03-15 Tom Tromey <tom@tromey.com>
12328 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12331 2019-03-15 Tom Tromey <tom@tromey.com>
12333 * objfiles.h (struct objfile_per_bfd_storage)
12334 <demangled_hash_languages>: Now a bitset.
12335 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12336 (lookup_minimal_symbol): Update.
12338 2019-03-15 Tom Tromey <tom@tromey.com>
12340 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12341 Don't return the symbol.
12342 * coffread.c (record_minimal_symbol): Use record_full.
12344 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12346 The MS-Windows port of ncurses fails to switch to a color pair if
12347 one or both of the colors are the implicit default colors. This
12348 change records the default colors when TUI is initialized, and
12349 then specifies them explicitly when a color pair uses the default
12350 colors. This allows color styling in TUI mode on MS-Windows.
12352 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12354 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12355 colors in ncurses_norm_attr.
12356 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12357 "none", replace it with the default color recorded in
12360 2019-03-14 Tom Tromey <tromey@adacore.com>
12362 * source-cache.h (class source_cache) <get_source_lines>: Return
12364 * source-cache.c (source_cache::extract_lines): Handle case where
12365 first_pos==npos. Return std::string.
12366 (source_cache::get_source_lines): Update.
12368 2019-03-14 Tom Tromey <tromey@adacore.com>
12370 * NEWS: Add item for "style sources" commands.
12371 * source-cache.c (source_cache::get_source_lines): Check
12373 * cli/cli-style.c (source_styling): New global.
12374 (_initialize_cli_style): Add "style sources" commands.
12375 (show_style_sources): New function.
12376 * cli/cli-style.h (source_styling): Declare.
12378 2019-03-14 Pedro Alves <palves@redhat.com>
12379 Tom Tromey <tromey@adacore.com>
12381 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12382 * tui/tui-winsource.c (tui_refill_source_window): New function,
12384 (tui_horizontal_source_scroll): ... here. Move some logic.
12385 * cli/cli-style.c (set_style_enabled): Notify new observable.
12386 * tui/tui-hooks.c (tui_redisplay_source): New function.
12387 (tui_attach_detach_observers): Attach or detach
12388 tui_redisplay_source.
12389 * observable.h (source_styling_changed): New observable.
12390 * observable.c: Define source_styling_changed observable.
12392 2019-03-13 Tom Tromey <tromey@adacore.com>
12394 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12395 (i386_gnu_nat_target::store_registers): Update.
12396 * target-debug.h (target_debug_print_std_string): New macro.
12397 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12398 * windows-tdep.c (display_one_tib): Update.
12399 * tui/tui-stack.c (tui_make_status_line): Update.
12400 * top.c (print_inferior_quit_action): Update.
12401 * thread.c (thr_try_catch_cmd): Update.
12402 (add_thread_with_info): Update.
12403 (thread_target_id_str): Update.
12404 (thr_try_catch_cmd): Update.
12405 (thread_command): Update.
12406 (thread_find_command): Update.
12407 * record-btrace.c (record_btrace_target::info_record)
12408 (record_btrace_resume_thread, record_btrace_target::resume)
12409 (record_btrace_cancel_resume, record_btrace_step_thread)
12410 (record_btrace_target::wait, record_btrace_target::wait)
12411 (record_btrace_target::wait, record_btrace_target::stop): Update.
12412 * progspace.c (print_program_space): Update.
12413 * process-stratum-target.c
12414 (process_stratum_target::thread_address_space): Update.
12415 * linux-fork.c (linux_fork_mourn_inferior)
12416 (detach_checkpoint_command, info_checkpoints_command)
12417 (linux_fork_context): Update.
12418 (linux_fork_detach): Update.
12419 (class scoped_switch_fork_info): Update.
12420 (delete_checkpoint_command): Update.
12421 * infrun.c (follow_fork_inferior): Update.
12422 (follow_fork_inferior): Update.
12423 (proceed_after_vfork_done): Update.
12424 (handle_vfork_child_exec_or_exit): Update.
12425 (follow_exec): Update.
12426 (displaced_step_prepare_throw): Update.
12427 (displaced_step_restore): Update.
12428 (start_step_over): Update.
12429 (resume_1): Update.
12430 (clear_proceed_status_thread): Update.
12432 (print_target_wait_results): Update.
12433 (do_target_wait): Update.
12434 (context_switch): Update.
12435 (stop_all_threads): Update.
12436 (restart_threads): Update.
12437 (finish_step_over): Update.
12438 (handle_signal_stop): Update.
12439 (switch_back_to_stepped_thread): Update.
12440 (keep_going_pass_signal): Update.
12441 (print_exited_reason): Update.
12442 (normal_stop): Update.
12443 * inferior.c (inferior_pid_to_str): Change return type.
12444 (print_selected_inferior): Update.
12445 (add_inferior): Update.
12446 (detach_inferior): Update.
12447 * dummy-frame.c (fprint_dummy_frames): Update.
12448 * dcache.c (dcache_info_1): Update.
12449 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12450 (btrace_fetch, btrace_clear): Update.
12451 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12452 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12454 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12455 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12456 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12457 * gdbarch.c, gdbarch.h: Rebuild.
12458 * gdbarch.sh (core_pid_to_str): Change return type.
12459 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12461 (windows_nat_target::pid_to_str): Change return type.
12462 (windows_delete_thread): Update.
12463 (windows_nat_target::attach): Update.
12464 (windows_nat_target::files_info): Update.
12465 * target-delegates.c: Rebuild.
12466 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12468 (sol_thread_target::pid_to_str): Change return type.
12469 * remote.c (class remote_target) <pid_to_str>: Change return
12471 (remote_target::pid_to_str): Change return type.
12472 (extended_remote_target::attach, remote_target::remote_stop_ns)
12473 (remote_target::remote_notif_remove_queued_reply)
12474 (remote_target::push_stop_reply, remote_target::disable_btrace):
12476 (extended_remote_target::attach): Update.
12477 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12479 (gdbsim_target::pid_to_str): Change return type.
12480 * ravenscar-thread.c (struct ravenscar_thread_target)
12481 <pid_to_str>: Change return type.
12482 (ravenscar_thread_target::pid_to_str): Change return type.
12483 * procfs.c (class procfs_target) <pid_to_str>: Change return
12485 (procfs_target::pid_to_str): Change return type.
12486 (procfs_target::attach): Update.
12487 (procfs_target::detach): Update.
12488 (procfs_target::fetch_registers): Update.
12489 (procfs_target::store_registers): Update.
12490 (procfs_target::wait): Update.
12491 (procfs_target::files_info): Update.
12492 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12493 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12495 (nto_procfs_target::pid_to_str): Change return type.
12496 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12497 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12499 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12500 (exit_lwp): Update.
12501 (attach_proc_task_lwp_callback, get_detach_signal)
12502 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12503 (linux_nat_target::resume, wait_lwp, stop_callback)
12504 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12505 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12506 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12507 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12508 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12510 (inf_ptrace_target::attach): Update.
12511 (inf_ptrace_target::files_info): Update.
12512 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12514 (go32_nat_target::pid_to_str): Change return type.
12515 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12516 (gnu_nat_target::wait): Update.
12517 (gnu_nat_target::wait): Update.
12518 (gnu_nat_target::resume): Update.
12519 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12520 (fbsd_nat_target::wait): Update.
12521 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12523 (darwin_nat_target::attach): Update.
12524 * corelow.c (class core_target) <pid_to_str>: Change return type.
12525 (core_target::pid_to_str): Change return type.
12526 * target.c (normal_pid_to_str): Change return type.
12527 (default_pid_to_str): Likewise.
12528 (target_pid_to_str): Change return type.
12529 (target_translate_tls_address): Update.
12530 (target_announce_detach): Update.
12531 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12533 (bsd_uthread_target::pid_to_str): Change return type.
12534 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12536 (bsd_kvm_target::pid_to_str): Change return type.
12537 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12539 (aix_thread_target::pid_to_str): Change return type.
12540 * target.h (struct target_ops) <pid_to_str>: Change return type.
12541 (target_pid_to_str, normal_pid_to_str): Likewise.
12542 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12544 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12546 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12548 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12550 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12552 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12555 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12557 * NEWS: Mention that the new default MI version is 3. Mention
12558 changes to the output of commands and events that deal with
12559 multi-location breakpoints.
12560 * breakpoint.c: Include "mi/mi-out.h".
12561 (print_one_breakpoint): Change output syntax if using MI version
12563 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12565 (mi_multi_location_breakpoint_output_fixed): New.
12566 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12567 (mi_cmd_fix_multi_location_breakpoint_output): New.
12568 (mi_multi_location_breakpoint_output_fixed): New.
12569 * mi/mi-cmds.c (mi_cmds): Register command
12570 -fix-multi-location-breakpoint-output.
12571 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12574 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12576 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12577 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12578 instantiate mi_ui_out based on interpreter name.
12579 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12580 * mi/mi-main.c (mi_load_progress): Likewise.
12582 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12584 * NEWS: Combine separate "New targets" sections for 8.3.
12586 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12588 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12589 (ppcfbsd_init_abi): Install gdbarch
12590 "fetch_tls_load_module_address" and "get_thread_local_address"
12593 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12595 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12596 (riscv_fbsd_init_abi): Install gdbarch
12597 "fetch_tls_load_module_address" and "get_thread_local_address"
12600 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12602 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12603 (i386fbsd_init_abi): Install gdbarch
12604 "fetch_tls_load_module_address" and "get_thread_local_address"
12607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12609 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12610 (amd64fbsd_init_abi): Install gdbarch
12611 "fetch_tls_load_module_address" and "get_thread_local_address"
12614 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12616 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12617 (struct fbsd_pspace_data): New type.
12618 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12619 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12620 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12621 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12622 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12624 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12626 * gdbtypes.c (lookup_struct_elt): New function.
12627 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12628 * gdbtypes.h (struct struct_elt): New type.
12629 (lookup_struct_elt): New prototype.
12631 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12633 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12634 remove disabled code block.
12636 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12638 * gdbarch.sh (get_thread_local_address): New method.
12639 * gdbarch.h, gdbarch.c: Regenerate.
12640 * target.c (target_translate_tls_address): Use
12641 gdbarch_get_thread_local_address if present instead of
12642 target::get_thread_local_address.
12644 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12646 * target.h (target::get_thread_local_address): Update comment.
12648 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12650 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12651 objfile->separate_debug_objfile_backlink if not NULL.
12653 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12655 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12656 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12657 (amd64bsd_store_inferior_registers): Likewise.
12658 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12659 Enable segment base registers.
12660 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12661 PT_GETFSBASE and PT_GETGSBASE.
12662 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12664 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12665 segment base registers.
12666 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12668 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12670 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12671 Update calls to i386_target_description to add 'segments'
12673 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12674 add segment base registers.
12675 * arch/i386.c (i386_create_target_description): Add 'segments'
12676 parameter to enable segment base registers.
12677 * arch/i386.h (i386_create_target_description): Likewise.
12678 * features/i386/32bit-segments.xml: New file.
12679 * features/i386/32bit-segments.c: Generate.
12680 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12681 call to i386_target_description to add 'segments' parameter.
12682 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12683 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12684 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12685 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12686 if feature is present.
12687 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12688 Add 'segments' parameter to call to i386_target_description.
12689 (i386_target_description): Add 'segments' parameter to enable
12690 segment base registers.
12691 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12692 to call to i386_target_description.
12693 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12694 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12695 Define I386_NUM_REGS.
12696 (i386_target_description): Add 'segments' parameter to enable
12697 segment base registers.
12699 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12702 * source-cache.c: #undef open and close, to avoid unresolved
12703 externals during linking.
12705 2019-03-12 Tom Tromey <tromey@adacore.com>
12707 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12708 const. Add initializers.
12709 (_initialize_remote): Don't initialize ptid globals.
12711 2019-03-12 Pedro Alves <palves@redhat.com>
12713 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12715 2019-03-12 Pedro Alves <palves@redhat.com>
12717 * cp-name-parser.y (main): Remove unused 'len' variable.
12719 2019-03-12 Tom Tromey <tromey@adacore.com>
12721 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12722 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12724 2019-03-12 Tom Tromey <tromey@adacore.com>
12726 * linux-nat.c (iterate_over_lwps): Update.
12727 (stop_callback): Remove parameter.
12728 (stop_wait_callback, detach_callback, resume_set_callback)
12729 (select_singlestep_lwp_callback, set_ignore_sigint)
12730 (status_callback, resumed_callback, resume_clear_callback)
12731 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12733 (linux_nat_target::detach, linux_nat_target::resume)
12734 (linux_stop_and_wait_all_lwps, select_event_lwp)
12735 (linux_nat_filter_event, linux_nat_wait_1)
12736 (linux_nat_target::kill, linux_nat_target::stop)
12737 (linux_nat_target::stop): Update.
12738 (linux_nat_resume_callback): Change type.
12739 (resume_stopped_resumed_lwps, count_events_callback)
12740 (select_event_lwp_callback): Likewise.
12741 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12742 * arm-linux-nat.c (struct update_registers_data): Remove.
12743 (update_registers_callback): Change type.
12744 (arm_linux_insert_hw_breakpoint1): Update.
12745 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12747 (x86_linux_dr_set_addr): Update.
12748 (x86_linux_dr_set_control): Update.
12749 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12750 (iterate_over_lwps): Use gdb::function_view.
12751 * nat/aarch64-linux-hw-point.c (struct
12752 aarch64_dr_update_callback_param): Remove.
12753 (debug_reg_change_callback): Change type.
12754 (aarch64_notify_debug_reg_change): Update.
12755 * s390-linux-nat.c (s390_refresh_per_info): Update.
12757 2019-03-11 Tom Tromey <tromey@adacore.com>
12759 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12760 redundant assignment to "this_cu".
12762 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12764 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12766 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12768 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12770 (rank_one_type): ... this.
12772 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12774 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12776 (rank_one_type): ... this.
12778 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12780 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12782 (rank_one_type): ... this.
12784 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12786 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12788 (rank_one_type): ... this.
12790 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12792 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12794 (rank_one_type): ... this.
12796 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12798 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12800 (rank_one_type): ... this.
12802 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12804 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12806 (rank_one_type): ... this.
12808 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12810 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12812 (rank_one_type): ... this.
12814 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12816 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12818 (rank_one_type): ... this.
12820 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12822 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12824 (rank_one_type): ... this.
12826 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12828 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12830 (rank_one_type): ... this.
12832 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12834 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12836 (rank_one_type): ... this.
12838 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12840 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12841 inferior-events' shows the example events.
12843 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12845 Support styling on native MS-Windows console
12848 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12849 on MS-Windows if $TERM is not defined.
12851 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12853 * posix-hdep.c (gdb_console_fputs):
12854 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12856 * ui-file.h (gdb_console_fputs): Add prototype.
12858 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12859 back to fputs only if the former returns zero.
12861 2019-03-07 Tom Tromey <tom@tromey.com>
12863 * symmisc.c (print_symbol_bcache_statistics): Update.
12864 (print_objfile_statistics): Update.
12865 * symfile.c (allocate_symtab): Update.
12866 * stabsread.c: Don't include bcache.h.
12867 * psymtab.h (struct psymbol_bcache): Don't declare.
12868 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12869 (psymbol_bcache_init, psymbol_bcache_free)
12870 (psymbol_bcache_get_bcache): Don't declare.
12871 * psymtab.c (struct psymbol_bcache): Remove.
12872 (psymtab_storage::psymtab_storage): Update.
12873 (psymtab_storage::~psymtab_storage): Update.
12874 (psymbol_bcache_init, psymbol_bcache_free)
12875 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12876 (add_psymbol_to_bcache): Update.
12877 (allocate_psymtab): Update.
12878 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12879 macro_cache>: No longer pointers.
12880 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12881 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12882 * macrotab.c (macro_bcache): Update.
12883 * macroexp.c: Don't include bcache.h.
12884 * gdbtypes.c (check_types_worklist): Update.
12885 (types_deeply_equal): Remove TRY/CATCH. Update.
12886 * elfread.c (elf_symtab_read): Update.
12887 * dwarf2read.c: Don't include bcache.h.
12888 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12889 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12890 (print_bcache_statistics, bcache_memory_used): Don't declare.
12891 (struct bcache): Move from bcache.c. Add constructor, destructor,
12892 methods. Rename all data members.
12893 * bcache.c (struct bcache): Move to bcache.h.
12894 (bcache::expand_hash_table): Rename from expand_hash_table.
12896 (bcache::insert): Rename from bcache_full.
12897 (bcache::compare): Rename from bcache_compare.
12898 (bcache_xmalloc): Remove.
12899 (bcache::~bcache): Rename from bcache_xfree.
12900 (bcache::print_statistics): Rename from print_bcache_statistics.
12901 (bcache::memory_used): Rename from bcache_memory_used.
12903 2019-03-07 Pedro Alves <palves@redhat.com>
12905 * infrun.c (normal_stop): Also check for
12906 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12908 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12910 * f-lang.c (value_from_host_double): Moved to...
12911 * value.c (value_from_host_double): ...here.
12912 * value.h (value_from_host_double): Declare.
12913 * guile/scm-math.c (vlscm_convert_typed_number): Use
12914 value_from_host_double.
12915 (vlscm_convert_number): Likewise.
12916 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12917 * python/py-value.c (convert_value_from_python): Likewise.
12919 2019-03-06 Tom Tromey <tom@tromey.com>
12921 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12923 2019-03-06 Tom Tromey <tom@tromey.com>
12925 * utils.h (free_current_contents): Don't declare.
12926 * utils.c (free_current_contents): Remove.
12928 2019-03-06 Tom Tromey <tom@tromey.com>
12930 * top.c (quit_force): Update.
12931 * main.c (captured_command_loop): Update.
12932 * common/new-op.c (operator new): Update.
12933 * common/common-exceptions.c (struct catcher)
12934 <save_cleanup_chain>: Remove member.
12935 (exceptions_state_mc_init): Update.
12936 (exception_try_scope_entry): Return nullptr.
12937 (exception_try_scope_exit, exception_rethrow)
12938 (throw_exception_sjlj, throw_exception_cxx): Update.
12939 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12940 (all_cleanups, do_cleanups, discard_cleanups)
12941 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12942 (restore_cleanups, restore_final_cleanups): Don't declare.
12943 (do_final_cleanups): Remove parameter.
12944 * common/cleanups.c (cleanup_chain, make_cleanup)
12945 (make_cleanup_dtor, all_cleanups, do_cleanups)
12946 (discard_my_cleanups, discard_cleanups)
12947 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12948 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12949 (null_cleanup): Remove.
12950 (do_final_cleanups): Remove parameter.
12952 2019-03-06 Tom Tromey <tom@tromey.com>
12954 * remote.c (remote_target::remote_parse_stop_reply): Use
12955 unique_xmalloc_ptr.
12957 2019-03-06 Tom Tromey <tom@tromey.com>
12959 * stabsread.c (struct stabs_field_info): Rename from field_info.
12960 <list, fnlist>: Add initializers.
12961 <obstack>: New member.
12962 (read_member_functions, read_struct_fields, read_baseclasses):
12963 Allocate on obstack. Don't use cleanups.
12964 (read_one_struct_field, read_member_functions, read_struct_fields)
12965 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12966 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12967 (read_struct_type): Update.
12969 2019-03-06 Tom Tromey <tom@tromey.com>
12971 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12972 * common/filestuff.h (make_cleanup_close): Don't declare.
12973 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12976 2019-03-06 Tom Tromey <tom@tromey.com>
12978 * solib-aix.c: Use make_scope_exit.
12980 2019-03-06 Tom Tromey <tom@tromey.com>
12982 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12983 Use make_scope_exit.
12985 2019-03-06 Tom Tromey <tom@tromey.com>
12987 * solib-svr4.c (disable_probes_interface): Remove parameter.
12988 (svr4_handle_solib_event): Use make_scope_exit.
12990 2019-03-06 Tom Tromey <tom@tromey.com>
12992 * remote.c (struct stop_reply_deleter): Remove.
12993 (stop_reply_up): Update.
12994 (struct stop_reply): Derive from notif_event. Don't typedef.
12995 <regcache>: Now a std::vector.
12996 (stop_reply_xfree): Remove.
12997 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12998 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12999 (remote_target::discard_pending_stop_replies): Use delete.
13000 (remote_target::remote_parse_stop_reply): Update.
13001 (remote_target::process_stop_reply): Update.
13002 * remote-notif.h (struct notif_event): Add virtual destructor.
13003 Remove "dtr" member.
13004 (struct notif_client) <alloc_event>: Return a unique_ptr.
13005 (notif_event_xfree): Don't declare.
13006 (notif_event_up): New typedef.
13007 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13008 (notif_event_xfree, do_notif_event_xfree): Remove.
13009 (remote_notif_state_xfree): Update.
13011 2019-03-06 Tom Tromey <tom@tromey.com>
13013 * infrun.c (displaced_step_clear_cleanup): Now a
13014 forward_scope_exit type.
13015 (displaced_step_prepare_throw): Update.
13016 (displaced_step_fixup): Update.
13018 2019-03-06 Tom Tromey <tom@tromey.com>
13020 * inferior.h (class inferior): Update comment.
13021 * gdbthread.h (class thread_info): Update comment.
13023 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13024 Tom Tromey <tom@tromey.com>
13026 * stabsread.h (struct stab_section_list): Remove.
13027 (coffstab_build_psymtabs): Update.
13028 * dbxread.c (symbuf_sections): Now a std::vector.
13029 (sect_idx): New global.
13030 (fill_symbuf): Update.
13031 (coffstab_build_psymtabs): Change type of stabsects parameter.
13033 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13035 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13036 (coff_locate_sections): Update.
13037 (coff_symfile_read): Remove cleanups. Update.
13038 (init_stringtab): Add storage parameter.
13039 (free_stringtab, free_stringtab_cleanup): Remove.
13040 (init_lineno): Add storage parameter.
13041 (free_linetab, free_linetab_cleanup): Remove.
13043 2019-03-06 Pedro Alves <palves@redhat.com>
13045 * linux-fork.c (fork_info::clobber_regs): Delete.
13046 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13047 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13049 (scoped_switch_fork_info::scoped_switch_fork_info)
13050 (checkpoint_command, linux_fork_context): Adjust
13051 fork_save_infrun_state calls.
13053 2019-03-06 Pedro Alves <palves@redhat.com>
13055 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13056 (inf_has_multiple_threads): Return 'bool' and rewrite using
13057 inferior_info::threads().
13059 2019-03-06 Pedro Alves <palves@redhat.com>
13061 * linux-fork.c: Include <list>.
13062 (fork_list): Now a std::list instance.
13063 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13064 (forks_exist_p, find_last_fork): Adjust.
13065 (new_fork): Delete.
13067 (add_fork): Adjust.
13068 (free_fork): Delete, folded into fork_info::~fork_info().
13069 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13071 (init_fork_list): Delete.
13072 (linux_fork_killall, linux_fork_mourn_inferior)
13073 (linux_fork_detach, info_checkpoints_command): Adjust.
13074 (_initialize_linux_fork): No longer call init_fork_list.
13076 2019-03-06 Pedro Alves <palves@redhat.com>
13078 * linux-fork.c (new_fork): New, split out of ...
13079 (add_fork): ... this. Return void. Move "first fork" special
13080 case from here, to ...
13081 (checkpoint_command): ... here.
13082 * linux-linux.h (add_fork): Return void.
13084 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13086 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13088 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13089 Chris January <chris.january@arm.com>
13090 David Lecomber <david.lecomber@arm.com>
13092 * f-exp.y: New token, UNOP_INTRINSIC.
13093 (exp): New pattern using UNOP_INTRINSIC token.
13094 (f77_keywords): Add 'abs' keyword.
13095 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13096 (value_from_host_double): New function.
13097 (evaluate_subexp_f): Support UNOP_ABS.
13099 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13101 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13104 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13106 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13107 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13108 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13110 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13112 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13114 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13115 Chris January <chris.january@arm.com>
13117 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13118 * f-exp.y: Define 'KIND' token.
13119 (exp): New pattern for KIND expressions.
13120 (ptype): Handle types with a kind extension.
13121 (direct_abs_decl): Extend to spot kind extensions.
13122 (f77_keywords): Add 'kind' to the list.
13123 (push_kind_type): New function.
13124 (convert_to_kind_type): New function.
13125 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13126 * parse.c (operator_length_standard): Likewise.
13127 * parser-defs.h (enum type_pieces): Add tp_kind.
13128 * std-operator.def: Add UNOP_KIND.
13130 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13132 * f-exp.y (f_parse): Set yydebug.
13134 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13136 * f-lang.c (evaluate_subexp_f): New function.
13137 (exp_descriptor_f): New global.
13138 (f_language_defn): Use exp_descriptor_f instead of
13139 exp_descriptor_standard.
13141 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13143 * f-exp.y (struct token): Add comments.
13144 (dot_ops): Remove uppercase versions and the end marker.
13145 (f77_keywords): Likewise.
13146 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13147 entries in the dot_ops array are case insensitive, and use
13148 strncasecmp to compare strings. Also some whitespace cleanup in
13149 this area. Similar for the f77_keywords array, except entries in
13150 this list might be case sensitive.
13152 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13154 * f-exp.y (struct f77_boolean_val): Add comments.
13155 (boolean_values): Remove uppercase versions, and end marker.
13156 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13157 and use strncasecmp to achieve case insensitivity. Additionally,
13158 perform whitespace cleanup around this code.
13160 2019-03-06 Tom Tromey <tromey@adacore.com>
13162 * remote-sim.c (gdbsim_target_open): Use result of
13165 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13166 Dirk Schubert <dirk.schubert@arm.com>
13167 Chris January <chris.january@arm.com>
13169 * eval.c (evaluate_subexp_standard): Call Fortran argument
13171 * f-lang.c (struct value): A value which can be passed into a
13172 Fortran function call.
13173 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13175 (struct type): Value ready for a Fortran function call.
13176 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13178 * f-lang.h (fortran_argument_convert): Declaration.
13179 (fortran_preserve_arg_pointer): Declaration.
13180 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13182 2019-03-05 Tom Tromey <tromey@adacore.com>
13184 * python/py-prettyprint.c (print_string_repr): Remove #if.
13185 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13187 2019-03-05 Tom Tromey <tromey@adacore.com>
13189 * target.c (the_dummy_target): Move later. Change type to
13191 (initialize_targets): Don't initialize the_dummy_target.
13193 2019-03-05 Tom Tromey <tromey@adacore.com>
13195 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13196 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13198 2019-03-05 Tom Tromey <tromey@adacore.com>
13200 * windows-nat.c (windows_nat_target::attach)
13201 (windows_nat_target::detach): Don't call gdb_flush.
13202 * valprint.c (generic_val_print, val_print, val_print_string):
13203 Don't call gdb_flush.
13204 * utils.c (defaulted_query): Don't call gdb_flush.
13205 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13206 * target.c (target_announce_detach): Don't call gdb_flush.
13207 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13208 * remote.c (extended_remote_target::attach): Don't call
13210 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13211 * printcmd.c (do_examine): Don't call gdb_flush.
13212 (info_display_command): Don't call gdb_flush.
13213 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13214 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13215 * memattr.c (info_mem_command): Don't call gdb_flush.
13216 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13217 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13218 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13219 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13220 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13221 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13222 (gnu_nat_target::detach): Don't call gdb_flush.
13223 * f-valprint.c (f_val_print): Don't call gdb_flush.
13224 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13225 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13226 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13228 * c-valprint.c (c_val_print): Don't call gdb_flush.
13229 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13231 2019-03-05 Tom Tromey <tromey@adacore.com>
13233 * varobj.c (update_dynamic_varobj_children): Update.
13234 (install_default_visualizer): Use reset, not release.
13235 * value.c (set_internalvar): Update.
13236 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13237 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13238 ATTRIBUTE_UNUSED_RESULT.
13240 2019-03-05 Tom Tromey <tromey@adacore.com>
13242 * remote.c (class scoped_remote_fd) <release>: Add
13243 ATTRIBUTE_UNUSED_RESULT.
13245 2019-03-05 Tom Tromey <tromey@adacore.com>
13247 * macroexp.c (struct macro_buffer) <release>: Add
13248 ATTRIBUTE_UNUSED_RESULT.
13250 2019-03-05 Tom Tromey <tromey@adacore.com>
13252 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13253 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13254 ATTRIBUTE_UNUSED_RESULT.
13256 2019-03-05 Tom Tromey <tromey@adacore.com>
13258 * common/scoped_fd.h (class scoped_fd) <release>: Add
13259 ATTRIBUTE_UNUSED_RESULT.
13261 2019-03-05 Tom Tromey <tromey@adacore.com>
13263 * parser-defs.h (struct parser_state) <release>: Add
13264 ATTRIBUTE_UNUSED_RESULT.
13266 2019-03-05 Tom Tromey <tromey@adacore.com>
13268 * utils.h (class gdb_argv) <release>: Add
13269 ATTRIBUTE_UNUSED_RESULT.
13270 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13272 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13274 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13275 for-loop range, to avoid compiler warnings.
13277 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13278 avoid compiler warnings about unused variables.
13280 * NEWS: Mention end of support for native debugging on MS-Windows
13284 * common/netstuff.c:
13285 * gdbserver/gdbreplay.c
13286 * gdbserver/remote-utils.c:
13288 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13289 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13290 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13291 'getaddrinfo' and 'freeaddrinfo' were not available before
13292 Windows XP, and mingw.org's MinGW headers by default define
13293 _WIN32_WINNT to 0x500.
13295 2019-03-01 Gary Benson <gbenson@redhat.com>
13297 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13299 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13300 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13303 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13304 set_sigint_trap, clear_sigint_trap.
13306 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13308 * target.c (target_detach): Clear the regcache and the
13311 2019-02-27 Pedro Alves <palves@redhat.com>
13313 * utils.c (set_screen_size): When we cap the height/width sizes,
13314 tweak the corresponding command variable to show "unlimited":
13316 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13317 Pedro Alves <palves@redhat.com>
13319 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13320 before calling rl_set_screen_size.
13322 2019-02-27 Tom Tromey <tromey@adacore.com>
13324 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13326 * python/py-value.c: Remove Python 2.4 workaround.
13327 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13329 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13330 Python 2.4 workaround.
13331 * python/python-internal.h: Remove Python 2.4 comment.
13332 (Py_ssize_t): Don't define.
13333 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13334 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13335 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13336 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13337 * python/python.c (do_start_initialization): Remove Python 2.4
13339 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13340 (print_children): Remove Python 2.4 workaround.
13341 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13343 (CHARBUFFERPROC_NAME): Remove.
13344 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13345 Python 2.4 workaround.
13347 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13349 * NEWS: Note minimum Python version.
13351 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13353 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13354 code from these functions. Remove corresponding ifdefs. Use
13355 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13356 Remove gotos and target of gotos.
13357 (infpy_search_memory): Likewise.
13359 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13361 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13362 (hppa_gdbarch_init): Don't register deleted functions with
13365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13367 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13368 (h8300_unwind_sp): Delete.
13369 (h8300_dummy_id): Delete.
13370 (h8300_gdbarch_init): Don't register deleted functions with
13373 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13375 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13376 (ft32_unwind_pc): Delete.
13377 (ft32_unwind_sp): Delete.
13378 (ft32_gdbarch_init): Don't register deleted functions with
13381 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13383 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13384 (frv_unwind_pc): Delete.
13385 (frv_unwind_sp): Delete.
13386 (frv_gdbarch_init): Don't register deleted functions with
13389 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13391 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13392 (riscv_unwind_pc): Delete.
13393 (riscv_unwind_sp): Delete.
13394 (riscv_gdbarch_init): Don't register deleted functions with
13397 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13399 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13400 (csky_unwind_pc): Delete.
13401 (csky_unwind_sp): Delete.
13402 (csky_gdbarch_init): Don't register deleted functions with
13405 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13407 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13408 (cris_unwind_pc): Delete.
13409 (cris_unwind_sp): Delete.
13410 (cris_gdbarch_init): Don't register deleted functions with
13413 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13415 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13416 (bfin_unwind_pc): Delete.
13417 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13419 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13421 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13422 (arm_unwind_pc): Delete.
13423 (arm_unwind_sp): Delete.
13424 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13426 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13428 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13429 (arc_unwind_pc): Delete.
13430 (arc_unwind_sp): Delete.
13431 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13433 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13435 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13436 (alpha_unwind_pc): Delete.
13437 (alpha_gdbarch_init): Don't register deleted functions with
13440 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13442 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13443 (aarch64_unwind_pc): Delete.
13444 (aarch64_unwind_sp): Delete.
13445 (aarch64_gdbarch_init): Don't register deleted functions with
13448 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13450 * gdbtypes.c (type_align): Don't consider static members when
13451 computing structure alignment.
13453 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13455 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13456 return 0 for other types.
13457 * arch-utils.c (default_type_align): Always return 0.
13458 * gdbarch.h: Regenerate.
13459 * gdbarch.sh (type_align): Extend comment.
13460 * gdbtypes.c (type_align): Add additional comments, always call
13461 gdbarch_type_align before applying the default rules.
13462 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13463 generic code will then apply a suitable default.
13464 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13465 types, return 0 for other types.
13467 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13469 * NEWS: Create a new section for the next release branch.
13470 Rename the section of the current branch, now that it has
13473 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13475 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13476 * version.in: Bump version to 8.3.50.DATE-git.
13478 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13480 * aix-thread.c (ptid_cmp): Remove unused variable.
13481 (get_signaled_thread): Likewise.
13482 (store_regs_user_thread): Likewise.
13483 (store_regs_kernel_thread): Likewise.
13484 (fetch_regs_kernel_thread): Remove shadowed variable.
13486 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13488 * features/riscv/32bit-cpu.xml: Add register numbers.
13489 * features/riscv/32bit-fpu.c: Regenerate.
13490 * features/riscv/32bit-fpu.xml: Add register numbers.
13491 * features/riscv/64bit-cpu.xml: Add register numbers.
13492 * features/riscv/64bit-fpu.c: Regenerate.
13493 * features/riscv/64bit-fpu.xml: Add register numbers.
13495 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13497 * NEWS: Mention two argument form of gdb.Value constructor.
13498 * python/py-value.c (convert_buffer_and_type_to_value): New
13500 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13501 Add support for handling an optional second argument. Call
13502 convert_buffer_and_type_to_value as appropriate.
13503 * python/python-internal.h (Py_buffer_deleter): New struct.
13504 (Py_buffer_up): New typedef.
13506 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13508 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13509 instead of releasing ownership.
13511 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13513 * dwarf2read.c (open_and_init_dwp_file): Call
13514 elf_numsections instead of bfd_count_sections to initialize
13515 dwp_file->num_sections.
13517 2019-02-25 Tom Tromey <tromey@adacore.com>
13519 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13521 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13523 * gcore.in: Add '--readnever' option when invoking GDB.
13525 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13527 * MAINTAINERS: Update my email address.
13529 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13531 * build-id.c (build_id_to_debug_bfd_1): New function.
13532 (build_id_to_debug_bfd): Look for separate debug file in
13535 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13537 * gdbarch.sh: Update the copyright year range that is placed into
13540 2019-02-22 Keith Seitz <keiths@redhat.com>
13543 * linespec.c (create_sals_line_offset): Search for the default
13544 symtab's filename instead of its fullname.
13546 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13548 * NEWS: Update style defaults.
13550 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13552 * main.c (captured_main_1): Disable styling in batch mode.
13554 2019-02-20 Tom Tromey <tom@tromey.com>
13556 * symtab.c (symtab_symbol_info): Fix typos.
13558 2019-02-20 Tom Tromey <tromey@adacore.com>
13560 * findcmd.c (_initialize_mem_search): Use upper case for
13561 metasyntactic variables.
13563 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13565 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13566 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13568 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13570 * top.h (source_file_name): Change to std::string.
13571 * top.c (source_file_name): Likewise.
13572 (command_line_input): Adjust.
13573 * cli/cli-script.c (script_from_file): Adjust.
13575 2019-02-19 Tom Tromey <tromey@adacore.com>
13577 * ravenscar-thread.c
13578 (ravenscar_thread_target::update_thread_list): Don't call
13579 ada_build_task_list.
13580 * ada-lang.h (ada_build_task_list): Don't declare.
13581 * ada-tasks.c (struct ada_tasks_inferior_data)
13582 <task_list_valid_p>: Now bool.
13583 (read_known_tasks, ada_task_list_changed)
13584 (ada_tasks_invalidate_inferior_data): Update.
13585 (read_known_tasks_array): Return bool.
13586 (read_known_tasks_list): Likewise.
13587 (read_known_tasks): Return void.
13588 (ada_build_task_list): Now static.
13590 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13592 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13593 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13595 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13597 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13598 variant for ada_tasks_pspace_data_handle and
13599 ada_tasks_inferior_data_handle.
13600 (ada_tasks_pspace_data_cleanup): New function.
13601 (ada_tasks_inferior_data_cleanup): New function.
13603 2019-02-17 Tom Tromey <tom@tromey.com>
13605 * macrotab.h (macro_source_fullname): Return a std::string.
13606 * macrotab.c (macro_include, check_for_redefinition)
13607 (macro_undef, macro_lookup_definition, foreach_macro)
13608 (foreach_macro_in_scope): Update.
13609 (macro_source_fullname): Return a std::string.
13610 * macrocmd.c (show_pp_source_pos): Update.
13612 2019-02-17 Tom Tromey <tom@tromey.com>
13614 * macrocmd.c (show_pp_source_pos): Style the file names.
13616 2019-02-17 Tom Tromey <tom@tromey.com>
13619 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13621 2019-02-17 Tom Tromey <tom@tromey.com>
13623 * ada-lang.c (user_select_syms): Use filtered printing.
13624 * utils.c (wrap_style): New global.
13625 (desired_style): Remove.
13626 (emit_style_escape): Add stream parameter.
13627 (set_output_style, reset_terminal_style, prompt_for_continue):
13629 (flush_wrap_buffer): Only flush gdb_stdout.
13630 (wrap_here): Set wrap_style.
13631 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13632 treat escape sequences as a character. Change when wrap buffer is
13634 (fputs_styled): Do not set the output style when the default is
13636 * ui-style.h (struct ui_file_style) <is_default>: New method.
13637 * source.c (print_source_lines_base): Emit escape sequences in one
13640 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13642 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13643 integers and enumeration types.
13645 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13647 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13648 instead of lookup_symbol_in_language
13649 (do_exact_match): New function.
13650 (ada_get_symbol_name_matcher): Return do_exact_match when
13651 doing a verbatim match.
13653 2019-02-15 Tom Tromey <tromey@adacore.com>
13655 * ravenscar-thread.c (ravenscar_thread_target::resume)
13656 (ravenscar_thread_target::wait): Special case wildcard requests.
13658 2019-02-15 Tom Tromey <tromey@adacore.com>
13660 * ravenscar-thread.c (base_ptid): Remove.
13661 (struct ravenscar_thread_target) <close>: New method.
13662 <m_base_ptid>: New member.
13663 <update_inferior_ptid, active_task, task_is_currently_active,
13664 runtime_initialized>: Declare methods.
13665 <ravenscar_thread_target>: Add constructor.
13666 (ravenscar_thread_target::task_is_currently_active)
13667 (ravenscar_thread_target::update_inferior_ptid)
13668 (ravenscar_runtime_initialized): Rename. Now methods.
13669 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13670 (ravenscar_thread_target::update_thread_list): Update.
13671 (ravenscar_thread_target::active_task): Now method.
13672 (ravenscar_thread_target::store_registers)
13673 (ravenscar_thread_target::prepare_to_store)
13674 (ravenscar_thread_target::prepare_to_store)
13675 (ravenscar_thread_target::mourn_inferior): Update.
13676 (ravenscar_inferior_created): Use "new" to create target.
13677 (ravenscar_thread_target::get_ada_task_ptid): Update.
13678 (_initialize_ravenscar): Don't initialize base_ptid.
13679 (ravenscar_ops): Remove global.
13681 2019-02-15 Tom Tromey <tromey@adacore.com>
13683 * target.h (push_target): Declare new overload.
13684 * target.c (push_target): New overload, taking an rvalue reference.
13685 * remote.c (remote_target::open_1): Use push_target overload.
13686 * corelow.c (core_target_open): Use push_target overload.
13688 2019-02-15 Tom Tromey <tromey@adacore.com>
13690 * ravenscar-thread.c (is_ravenscar_task)
13691 (ravenscar_task_is_currently_active): Return bool.
13692 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13693 (_initialize_ravenscar): Remove "(void)".
13694 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13697 2019-02-15 Tom Tromey <tromey@adacore.com>
13699 * ravenscar-thread.c (ravenscar_runtime_initializer)
13700 (has_ravenscar_runtime, get_running_thread_id)
13701 (ravenscar_thread_target::resume): Fix indentation.
13703 2019-02-15 Tom Tromey <tromey@adacore.com>
13705 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13706 from ravenscar_arch_ops.
13707 (sparc_ravenscar_ops::fetch_registers)
13708 (sparc_ravenscar_ops::store_registers): Now methods.
13709 (sparc_ravenscar_prepare_to_store): Remove.
13710 (sparc_ravenscar_ops): Redefine.
13711 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13712 methods and destructor. Remove members.
13713 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13714 (ravenscar_thread_target::store_registers)
13715 (ravenscar_thread_target::prepare_to_store): Update.
13716 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13718 (struct ppc_ravenscar_powerpc_ops): Derive from
13719 ravenscar_arch_ops.
13720 (ppc_ravenscar_powerpc_ops::fetch_registers)
13721 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13722 (ppc_ravenscar_powerpc_ops): Redefine.
13723 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13724 (ppc_ravenscar_e500_ops::fetch_registers)
13725 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13726 (ppc_ravenscar_e500_ops): Redefine.
13727 * aarch64-ravenscar-thread.c
13728 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13729 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13730 (aarch64_ravenscar_fetch_registers)
13731 (aarch64_ravenscar_store_registers): Now methods.
13732 (aarch64_ravenscar_ops): Redefine.
13734 2019-02-15 Tom Tromey <tromey@adacore.com>
13736 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13737 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13738 (ravenscar_thread_target::stopped_by_watchpoint)
13739 (ravenscar_thread_target::stopped_data_address)
13740 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13742 2019-02-15 Tom Tromey <tromey@adacore.com>
13744 * ravenscar-thread.c: Fix some typos.
13746 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13747 Tom Tromey <tromey@adacore.com>
13749 * ada-lang.c (ada_exception_sal): Change addr_string to a
13751 (create_ada_exception_catchpoint): Update.
13753 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13754 Tom Tromey <tromey@adacore.com>
13756 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13757 (bp_location_ops): Remove.
13758 (base_breakpoint_allocate_location): Update.
13759 (free_bp_location): Update.
13760 * ada-lang.c (class ada_catchpoint_location)
13761 <ada_catchpoint_location>: Remove ops parameter.
13762 (ada_catchpoint_location_dtor): Remove.
13763 (ada_catchpoint_location_ops): Remove.
13764 (allocate_location_exception): Update.
13765 * breakpoint.h (struct bp_location_ops): Remove.
13766 (class bp_location) <bp_location>: Remove bp_location_ops
13768 <~bp_location>: Add destructor.
13771 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13772 Pedro Alves <palves@redhat.com>
13774 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13777 2019-02-14 David Michael <fedora.dm0@gmail.com>
13778 Samuel Thibault <samuel.thibault@gnu.org>
13779 Thomas Schwinge <thomas@codesourcery.com>
13781 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13782 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13784 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13786 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13787 (check_empty): Use "const char *".
13789 * gnu-nat.c (gnu_nat_target::detach): Instead of
13790 'detach_inferior (pid)' call
13791 'detach_inferior (find_inferior_pid (pid))'.
13793 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13794 'nat/fork-inferior.o'.
13795 * gnu-nat.c: #include "nat/fork-inferior.h".
13797 * gnu-nat.c (gnu_nat_target::detach): Instead of
13798 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13799 * gnu-nat.h: #include "inf-child.h".
13800 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13801 'i386_gnu_nat_target::fetch_registers'.
13802 (gnu_store_registers): Rename/move to
13803 'i386_gnu_nat_target::store_registers'.
13805 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13806 * gnu-nat.h (mach_thread_info): New function.
13807 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13809 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13811 2019-02-14 Frederic Konrad <konrad@adacore.com>
13813 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13815 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13817 * windows-nat.c (windows_add_thread): Add new parameter
13818 "main_thread_p" with default value set to false. Update
13819 function documentation as well as all callers.
13820 (windows_delete_thread): Likewise.
13821 (fake_create_process): Update call to windows_add_thread.
13822 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13823 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13824 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13825 call to windows_delete_thread.
13827 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13829 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13831 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13833 * symfile.c (find_separate_debug_file): Use canonical path of
13834 sysroot with child_path instead of gdb_sysroot if it is valid.
13836 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13838 * symfile.c (find_separate_debug_file): Use child_path to
13839 determine if an object file is under a sysroot.
13841 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13843 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13844 unittests/child-path-selftests.c.
13845 * common/pathstuff.c (child_path): New function.
13846 * common/pathstuff.h (child_path): New prototype.
13847 * unittests/child-path-selftests.c: New file.
13849 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13851 * symfile.c (find_separate_debug_file): Look for separate debug
13852 files in debug directories under the sysroot.
13854 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13856 * symtab.h (struct minimal_symbol data_p): New const method.
13857 (struct minimal_symbol text_p): Likewise.
13858 * symtab.c (output_source_filename): Use file name style
13859 to print file name.
13860 (print_symbol_info): Likewise.
13861 (print_msymbol_info): Use address style to print addresses.
13862 Use function name style to print executable text symbols.
13863 (expand_symtab_containing_pc): Use data_p.
13864 (find_pc_sect_compunit_symtab): Likewise.
13866 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13868 * breakpoint.c (describe_other_breakpoints): Use address style
13869 to print addresses.
13870 (say_where): Likewise.
13872 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13874 * ada-typeprint.c (print_func_type): Print function name
13875 style to print function name.
13876 * c-typeprint.c (c_print_type_1): Likewise.
13878 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13880 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13883 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13885 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13888 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13890 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13891 TYPE_CODE_REF types.
13893 2019-02-08 Jim Wilson <jimw@sifive.com>
13895 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13896 (riscv_linux_fregset): New.
13897 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13899 2019-02-07 Tom Tromey <tom@tromey.com>
13901 * thread.c (thread_cancel_execution_command): Update.
13902 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13904 (struct thread_fsm_ops): Remove.
13905 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13906 (thread_fsm_should_stop, thread_fsm_return_value)
13907 (thread_fsm_set_finished, thread_fsm_finished_p)
13908 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13910 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13911 * infrun.c (clear_proceed_status_thread)
13912 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13913 (print_stop_event): Update.
13914 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13916 (step_command_fsm_ops): Remove.
13917 (new_step_command_fsm): Remove.
13919 (step_command_fsm::should_stop): Rename from
13920 step_command_fsm_should_stop.
13921 (step_command_fsm::clean_up): Rename from
13922 step_command_fsm_clean_up.
13923 (step_command_fsm::do_async_reply_reason): Rename from
13924 step_command_fsm_async_reply_reason.
13925 (struct until_next_fsm): Inherit from thread_fsm. Add
13927 (until_next_fsm_ops): Remove.
13928 (new_until_next_fsm): Remove.
13929 (until_next_fsm::should_stop): Rename from
13930 until_next_fsm_should_stop.
13931 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13932 (until_next_fsm::do_async_reply_reason): Rename from
13933 until_next_fsm_async_reply_reason.
13934 (struct finish_command_fsm): Inherit from thread_fsm. Add
13935 constructor. Change type of breakpoint.
13936 (finish_command_fsm_ops): Remove.
13937 (new_finish_command_fsm): Remove.
13938 (finish_command_fsm::should_stop): Rename from
13939 finish_command_fsm_should_stop.
13940 (finish_command_fsm::clean_up): Rename from
13941 finish_command_fsm_clean_up.
13942 (finish_command_fsm::return_value): Rename from
13943 finish_command_fsm_return_value.
13944 (finish_command_fsm::do_async_reply_reason): Rename from
13945 finish_command_fsm_async_reply_reason.
13946 (finish_command): Update.
13947 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13949 (call_thread_fsm_ops): Remove.
13950 (call_thread_fsm::call_thread_fsm): Rename from
13951 new_call_thread_fsm.
13952 (call_thread_fsm::should_stop): Rename from
13953 call_thread_fsm_should_stop.
13954 (call_thread_fsm::should_notify_stop): Rename from
13955 call_thread_fsm_should_notify_stop.
13956 (run_inferior_call, call_function_by_hand_dummy): Update.
13957 * cli/cli-interp.c (should_print_stop_to_console): Update.
13958 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13959 Add constructor. Change type of location_breakpoint,
13961 (until_break_fsm_ops): Remove.
13962 (new_until_break_fsm): Remove.
13963 (until_break_fsm::should_stop): Rename from
13964 until_break_fsm_should_stop.
13965 (until_break_fsm::clean_up): Rename from
13966 until_break_fsm_clean_up.
13967 (until_break_fsm::do_async_reply_reason): Rename from
13968 until_break_fsm_async_reply_reason.
13969 (until_break_command): Update.
13970 * thread-fsm.c: Remove.
13971 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13973 2019-02-07 Tom Tromey <tom@tromey.com>
13975 * yy-remap.h: Add include guard.
13976 * xtensa-tdep.h: Add include guard.
13977 * xcoffread.h: Rename include guard.
13978 * varobj-iter.h: Add include guard.
13979 * tui/tui.h: Rename include guard.
13980 * tui/tui-winsource.h: Rename include guard.
13981 * tui/tui-wingeneral.h: Rename include guard.
13982 * tui/tui-windata.h: Rename include guard.
13983 * tui/tui-win.h: Rename include guard.
13984 * tui/tui-stack.h: Rename include guard.
13985 * tui/tui-source.h: Rename include guard.
13986 * tui/tui-regs.h: Rename include guard.
13987 * tui/tui-out.h: Rename include guard.
13988 * tui/tui-layout.h: Rename include guard.
13989 * tui/tui-io.h: Rename include guard.
13990 * tui/tui-hooks.h: Rename include guard.
13991 * tui/tui-file.h: Rename include guard.
13992 * tui/tui-disasm.h: Rename include guard.
13993 * tui/tui-data.h: Rename include guard.
13994 * tui/tui-command.h: Rename include guard.
13995 * tic6x-tdep.h: Add include guard.
13996 * target/waitstatus.h: Rename include guard.
13997 * target/wait.h: Rename include guard.
13998 * target/target.h: Rename include guard.
13999 * target/resume.h: Rename include guard.
14000 * target-float.h: Rename include guard.
14001 * stabsread.h: Add include guard.
14002 * rs6000-tdep.h: Add include guard.
14003 * riscv-fbsd-tdep.h: Add include guard.
14004 * regformats/regdef.h: Rename include guard.
14005 * record.h: Rename include guard.
14006 * python/python.h: Rename include guard.
14007 * python/python-internal.h: Rename include guard.
14008 * python/py-stopevent.h: Rename include guard.
14009 * python/py-ref.h: Rename include guard.
14010 * python/py-record.h: Rename include guard.
14011 * python/py-record-full.h: Rename include guard.
14012 * python/py-record-btrace.h: Rename include guard.
14013 * python/py-instruction.h: Rename include guard.
14014 * python/py-events.h: Rename include guard.
14015 * python/py-event.h: Rename include guard.
14016 * procfs.h: Add include guard.
14017 * proc-utils.h: Add include guard.
14018 * p-lang.h: Add include guard.
14019 * or1k-tdep.h: Rename include guard.
14020 * observable.h: Rename include guard.
14021 * nto-tdep.h: Rename include guard.
14022 * nat/x86-linux.h: Rename include guard.
14023 * nat/x86-linux-dregs.h: Rename include guard.
14024 * nat/x86-gcc-cpuid.h: Add include guard.
14025 * nat/x86-dregs.h: Rename include guard.
14026 * nat/x86-cpuid.h: Rename include guard.
14027 * nat/ppc-linux.h: Rename include guard.
14028 * nat/mips-linux-watch.h: Rename include guard.
14029 * nat/linux-waitpid.h: Rename include guard.
14030 * nat/linux-ptrace.h: Rename include guard.
14031 * nat/linux-procfs.h: Rename include guard.
14032 * nat/linux-osdata.h: Rename include guard.
14033 * nat/linux-nat.h: Rename include guard.
14034 * nat/linux-namespaces.h: Rename include guard.
14035 * nat/linux-btrace.h: Rename include guard.
14036 * nat/glibc_thread_db.h: Rename include guard.
14037 * nat/gdb_thread_db.h: Rename include guard.
14038 * nat/gdb_ptrace.h: Rename include guard.
14039 * nat/fork-inferior.h: Rename include guard.
14040 * nat/amd64-linux-siginfo.h: Rename include guard.
14041 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14042 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14043 * nat/aarch64-linux.h: Rename include guard.
14044 * nat/aarch64-linux-hw-point.h: Rename include guard.
14045 * mn10300-tdep.h: Add include guard.
14046 * mips-linux-tdep.h: Add include guard.
14047 * mi/mi-parse.h: Rename include guard.
14048 * mi/mi-out.h: Rename include guard.
14049 * mi/mi-main.h: Rename include guard.
14050 * mi/mi-interp.h: Rename include guard.
14051 * mi/mi-getopt.h: Rename include guard.
14052 * mi/mi-console.h: Rename include guard.
14053 * mi/mi-common.h: Rename include guard.
14054 * mi/mi-cmds.h: Rename include guard.
14055 * mi/mi-cmd-break.h: Rename include guard.
14056 * m2-lang.h: Add include guard.
14057 * location.h: Rename include guard.
14058 * linux-record.h: Rename include guard.
14059 * linux-nat.h: Add include guard.
14060 * linux-fork.h: Add include guard.
14061 * i386-darwin-tdep.h: Rename include guard.
14062 * hppa-linux-offsets.h: Add include guard.
14063 * guile/guile.h: Rename include guard.
14064 * guile/guile-internal.h: Rename include guard.
14065 * gnu-nat.h: Rename include guard.
14066 * gdb-stabs.h: Rename include guard.
14067 * frv-tdep.h: Add include guard.
14068 * f-lang.h: Add include guard.
14069 * event-loop.h: Add include guard.
14070 * darwin-nat.h: Rename include guard.
14071 * cp-abi.h: Rename include guard.
14072 * config/sparc/nm-sol2.h: Rename include guard.
14073 * config/nm-nto.h: Rename include guard.
14074 * config/nm-linux.h: Add include guard.
14075 * config/i386/nm-i386gnu.h: Rename include guard.
14076 * config/djgpp/nl_types.h: Rename include guard.
14077 * config/djgpp/langinfo.h: Rename include guard.
14078 * compile/gcc-cp-plugin.h: Add include guard.
14079 * compile/gcc-c-plugin.h: Add include guard.
14080 * compile/compile.h: Rename include guard.
14081 * compile/compile-object-run.h: Rename include guard.
14082 * compile/compile-object-load.h: Rename include guard.
14083 * compile/compile-internal.h: Rename include guard.
14084 * compile/compile-cplus.h: Rename include guard.
14085 * compile/compile-c.h: Rename include guard.
14086 * common/xml-utils.h: Rename include guard.
14087 * common/x86-xstate.h: Rename include guard.
14088 * common/version.h: Rename include guard.
14089 * common/vec.h: Rename include guard.
14090 * common/tdesc.h: Rename include guard.
14091 * common/selftest.h: Rename include guard.
14092 * common/scoped_restore.h: Rename include guard.
14093 * common/scoped_mmap.h: Rename include guard.
14094 * common/scoped_fd.h: Rename include guard.
14095 * common/safe-iterator.h: Rename include guard.
14096 * common/run-time-clock.h: Rename include guard.
14097 * common/refcounted-object.h: Rename include guard.
14098 * common/queue.h: Rename include guard.
14099 * common/ptid.h: Rename include guard.
14100 * common/print-utils.h: Rename include guard.
14101 * common/preprocessor.h: Rename include guard.
14102 * common/pathstuff.h: Rename include guard.
14103 * common/observable.h: Rename include guard.
14104 * common/netstuff.h: Rename include guard.
14105 * common/job-control.h: Rename include guard.
14106 * common/host-defs.h: Rename include guard.
14107 * common/gdb_wait.h: Rename include guard.
14108 * common/gdb_vecs.h: Rename include guard.
14109 * common/gdb_unlinker.h: Rename include guard.
14110 * common/gdb_unique_ptr.h: Rename include guard.
14111 * common/gdb_tilde_expand.h: Rename include guard.
14112 * common/gdb_sys_time.h: Rename include guard.
14113 * common/gdb_string_view.h: Rename include guard.
14114 * common/gdb_splay_tree.h: Rename include guard.
14115 * common/gdb_setjmp.h: Rename include guard.
14116 * common/gdb_ref_ptr.h: Rename include guard.
14117 * common/gdb_optional.h: Rename include guard.
14118 * common/gdb_locale.h: Rename include guard.
14119 * common/gdb_assert.h: Rename include guard.
14120 * common/filtered-iterator.h: Rename include guard.
14121 * common/filestuff.h: Rename include guard.
14122 * common/fileio.h: Rename include guard.
14123 * common/environ.h: Rename include guard.
14124 * common/common-utils.h: Rename include guard.
14125 * common/common-types.h: Rename include guard.
14126 * common/common-regcache.h: Rename include guard.
14127 * common/common-inferior.h: Rename include guard.
14128 * common/common-gdbthread.h: Rename include guard.
14129 * common/common-exceptions.h: Rename include guard.
14130 * common/common-defs.h: Rename include guard.
14131 * common/common-debug.h: Rename include guard.
14132 * common/cleanups.h: Rename include guard.
14133 * common/buffer.h: Rename include guard.
14134 * common/btrace-common.h: Rename include guard.
14135 * common/break-common.h: Rename include guard.
14136 * cli/cli-utils.h: Rename include guard.
14137 * cli/cli-style.h: Rename include guard.
14138 * cli/cli-setshow.h: Rename include guard.
14139 * cli/cli-script.h: Rename include guard.
14140 * cli/cli-interp.h: Rename include guard.
14141 * cli/cli-decode.h: Rename include guard.
14142 * cli/cli-cmds.h: Rename include guard.
14143 * charset-list.h: Add include guard.
14144 * buildsym-legacy.h: Rename include guard.
14145 * bfin-tdep.h: Add include guard.
14146 * ax.h: Rename include guard.
14147 * arm-linux-tdep.h: Add include guard.
14148 * arm-fbsd-tdep.h: Add include guard.
14149 * arch/xtensa.h: Rename include guard.
14150 * arch/tic6x.h: Add include guard.
14151 * arch/i386.h: Add include guard.
14152 * arch/arm.h: Rename include guard.
14153 * arch/arm-linux.h: Rename include guard.
14154 * arch/arm-get-next-pcs.h: Rename include guard.
14155 * arch/amd64.h: Add include guard.
14156 * arch/aarch64-insn.h: Rename include guard.
14157 * arch-utils.h: Rename include guard.
14158 * annotate.h: Add include guard.
14159 * amd64-darwin-tdep.h: Rename include guard.
14160 * aarch64-linux-tdep.h: Add include guard.
14161 * aarch64-fbsd-tdep.h: Add include guard.
14162 * aarch32-linux-nat.h: Add include guard.
14164 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14166 * macrotab.c (macro_define_internal): New function that
14167 factorizes macro_define_object_internal and macro_define_function
14169 (macro_define_object_internal): Use macro_define_internal.
14170 (macro_define_function): Likewise.
14172 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14174 * macrocmd.c (extract_identifier): Return
14175 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14178 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14180 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14182 2019-02-05 Tom Tromey <tom@tromey.com>
14184 * target.c (target_stack::unpush): Move assertion earlier.
14186 2019-01-30 Tom Tromey <tom@tromey.com>
14189 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14190 (gdbpy_parse_and_eval): Likewise.
14191 * python/python-internal.h (gdbpy_allow_threads): New class.
14193 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14195 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14196 (aarch64_fbsd_fpregmap): Move earlier.
14197 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14198 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14199 instead of individual calls to trad_frame_set_reg_addr.
14200 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14202 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14203 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14204 instead of individual calls to trad_frame_set_reg_addr.
14206 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14208 * CONTRIBUTE: Replace contribution list with wiki link.
14210 2019-01-25 Tom Tromey <tom@tromey.com>
14212 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14214 2019-01-25 Tom Tromey <tom@tromey.com>
14216 * xtensa-linux-nat.c: Fix common/ includes.
14217 * xml-support.h: Fix common/ includes.
14218 * xml-support.c: Fix common/ includes.
14219 * x86-linux-nat.c: Fix common/ includes.
14220 * windows-nat.c: Fix common/ includes.
14221 * varobj.h: Fix common/ includes.
14222 * varobj.c: Fix common/ includes.
14223 * value.c: Fix common/ includes.
14224 * valops.c: Fix common/ includes.
14225 * utils.c: Fix common/ includes.
14226 * unittests/xml-utils-selftests.c: Fix common/ includes.
14227 * unittests/utils-selftests.c: Fix common/ includes.
14228 * unittests/unpack-selftests.c: Fix common/ includes.
14229 * unittests/tracepoint-selftests.c: Fix common/ includes.
14230 * unittests/style-selftests.c: Fix common/ includes.
14231 * unittests/string_view-selftests.c: Fix common/ includes.
14232 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14233 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14234 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14235 * unittests/rsp-low-selftests.c: Fix common/ includes.
14236 * unittests/parse-connection-spec-selftests.c: Fix common/
14238 * unittests/optional-selftests.c: Fix common/ includes.
14239 * unittests/offset-type-selftests.c: Fix common/ includes.
14240 * unittests/observable-selftests.c: Fix common/ includes.
14241 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14242 * unittests/memrange-selftests.c: Fix common/ includes.
14243 * unittests/memory-map-selftests.c: Fix common/ includes.
14244 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14245 * unittests/function-view-selftests.c: Fix common/ includes.
14246 * unittests/environ-selftests.c: Fix common/ includes.
14247 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14248 * unittests/common-utils-selftests.c: Fix common/ includes.
14249 * unittests/cli-utils-selftests.c: Fix common/ includes.
14250 * unittests/array-view-selftests.c: Fix common/ includes.
14251 * ui-file.c: Fix common/ includes.
14252 * tui/tui-io.c: Fix common/ includes.
14253 * tracepoint.h: Fix common/ includes.
14254 * tracepoint.c: Fix common/ includes.
14255 * tracefile-tfile.c: Fix common/ includes.
14256 * top.h: Fix common/ includes.
14257 * top.c: Fix common/ includes.
14258 * thread.c: Fix common/ includes.
14259 * target/waitstatus.h: Fix common/ includes.
14260 * target/waitstatus.c: Fix common/ includes.
14261 * target.h: Fix common/ includes.
14262 * target.c: Fix common/ includes.
14263 * target-memory.c: Fix common/ includes.
14264 * target-descriptions.c: Fix common/ includes.
14265 * symtab.h: Fix common/ includes.
14266 * symfile.c: Fix common/ includes.
14267 * stap-probe.c: Fix common/ includes.
14268 * spu-linux-nat.c: Fix common/ includes.
14269 * sparc-nat.c: Fix common/ includes.
14270 * source.c: Fix common/ includes.
14271 * solib.c: Fix common/ includes.
14272 * solib-target.c: Fix common/ includes.
14273 * ser-unix.c: Fix common/ includes.
14274 * ser-tcp.c: Fix common/ includes.
14275 * ser-pipe.c: Fix common/ includes.
14276 * ser-base.c: Fix common/ includes.
14277 * selftest-arch.c: Fix common/ includes.
14278 * s12z-tdep.c: Fix common/ includes.
14279 * rust-exp.y: Fix common/ includes.
14280 * rs6000-aix-tdep.c: Fix common/ includes.
14281 * riscv-tdep.c: Fix common/ includes.
14282 * remote.c: Fix common/ includes.
14283 * remote-notif.h: Fix common/ includes.
14284 * remote-fileio.h: Fix common/ includes.
14285 * remote-fileio.c: Fix common/ includes.
14286 * regcache.h: Fix common/ includes.
14287 * regcache.c: Fix common/ includes.
14288 * record-btrace.c: Fix common/ includes.
14289 * python/python.c: Fix common/ includes.
14290 * python/py-type.c: Fix common/ includes.
14291 * python/py-inferior.c: Fix common/ includes.
14292 * progspace.h: Fix common/ includes.
14293 * producer.c: Fix common/ includes.
14294 * procfs.c: Fix common/ includes.
14295 * proc-api.c: Fix common/ includes.
14296 * printcmd.c: Fix common/ includes.
14297 * ppc-linux-nat.c: Fix common/ includes.
14298 * parser-defs.h: Fix common/ includes.
14299 * osdata.c: Fix common/ includes.
14300 * obsd-nat.c: Fix common/ includes.
14301 * nat/x86-linux.c: Fix common/ includes.
14302 * nat/x86-linux-dregs.c: Fix common/ includes.
14303 * nat/x86-dregs.h: Fix common/ includes.
14304 * nat/x86-dregs.c: Fix common/ includes.
14305 * nat/ppc-linux.c: Fix common/ includes.
14306 * nat/mips-linux-watch.h: Fix common/ includes.
14307 * nat/mips-linux-watch.c: Fix common/ includes.
14308 * nat/linux-waitpid.c: Fix common/ includes.
14309 * nat/linux-ptrace.h: Fix common/ includes.
14310 * nat/linux-ptrace.c: Fix common/ includes.
14311 * nat/linux-procfs.c: Fix common/ includes.
14312 * nat/linux-personality.c: Fix common/ includes.
14313 * nat/linux-osdata.c: Fix common/ includes.
14314 * nat/linux-namespaces.c: Fix common/ includes.
14315 * nat/linux-btrace.h: Fix common/ includes.
14316 * nat/linux-btrace.c: Fix common/ includes.
14317 * nat/fork-inferior.c: Fix common/ includes.
14318 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14319 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14320 * nat/aarch64-linux.c: Fix common/ includes.
14321 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14322 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14323 * namespace.h: Fix common/ includes.
14324 * mips-linux-tdep.c: Fix common/ includes.
14325 * minsyms.c: Fix common/ includes.
14326 * mi/mi-parse.h: Fix common/ includes.
14327 * mi/mi-main.c: Fix common/ includes.
14328 * mi/mi-cmd-env.c: Fix common/ includes.
14329 * memrange.h: Fix common/ includes.
14330 * memattr.c: Fix common/ includes.
14331 * maint.h: Fix common/ includes.
14332 * maint.c: Fix common/ includes.
14333 * main.c: Fix common/ includes.
14334 * machoread.c: Fix common/ includes.
14335 * location.c: Fix common/ includes.
14336 * linux-thread-db.c: Fix common/ includes.
14337 * linux-nat.c: Fix common/ includes.
14338 * linux-fork.c: Fix common/ includes.
14339 * inline-frame.c: Fix common/ includes.
14340 * infrun.c: Fix common/ includes.
14341 * inflow.c: Fix common/ includes.
14342 * inferior.h: Fix common/ includes.
14343 * inferior.c: Fix common/ includes.
14344 * infcmd.c: Fix common/ includes.
14345 * inf-ptrace.c: Fix common/ includes.
14346 * inf-child.c: Fix common/ includes.
14347 * ia64-linux-nat.c: Fix common/ includes.
14348 * i387-tdep.c: Fix common/ includes.
14349 * i386-tdep.c: Fix common/ includes.
14350 * i386-linux-tdep.c: Fix common/ includes.
14351 * i386-linux-nat.c: Fix common/ includes.
14352 * i386-go32-tdep.c: Fix common/ includes.
14353 * i386-fbsd-tdep.c: Fix common/ includes.
14354 * i386-fbsd-nat.c: Fix common/ includes.
14355 * guile/scm-type.c: Fix common/ includes.
14356 * guile/guile.c: Fix common/ includes.
14357 * go32-nat.c: Fix common/ includes.
14358 * gnu-nat.c: Fix common/ includes.
14359 * gdbthread.h: Fix common/ includes.
14360 * gdbarch-selftests.c: Fix common/ includes.
14361 * gdb_usleep.c: Fix common/ includes.
14362 * gdb_select.h: Fix common/ includes.
14363 * gdb_bfd.c: Fix common/ includes.
14364 * gcore.c: Fix common/ includes.
14365 * fork-child.c: Fix common/ includes.
14366 * findvar.c: Fix common/ includes.
14367 * fbsd-nat.c: Fix common/ includes.
14368 * event-top.c: Fix common/ includes.
14369 * event-loop.c: Fix common/ includes.
14370 * dwarf2read.c: Fix common/ includes.
14371 * dwarf2loc.c: Fix common/ includes.
14372 * dwarf2-frame.c: Fix common/ includes.
14373 * dwarf-index-cache.c: Fix common/ includes.
14374 * dtrace-probe.c: Fix common/ includes.
14375 * disasm-selftests.c: Fix common/ includes.
14376 * defs.h: Fix common/ includes.
14377 * csky-tdep.c: Fix common/ includes.
14378 * cp-valprint.c: Fix common/ includes.
14379 * cp-support.h: Fix common/ includes.
14380 * cp-support.c: Fix common/ includes.
14381 * corelow.c: Fix common/ includes.
14382 * completer.h: Fix common/ includes.
14383 * completer.c: Fix common/ includes.
14384 * compile/compile.c: Fix common/ includes.
14385 * compile/compile-loc2c.c: Fix common/ includes.
14386 * compile/compile-cplus-types.c: Fix common/ includes.
14387 * compile/compile-cplus-symbols.c: Fix common/ includes.
14388 * command.h: Fix common/ includes.
14389 * cli/cli-dump.c: Fix common/ includes.
14390 * cli/cli-cmds.c: Fix common/ includes.
14391 * charset.c: Fix common/ includes.
14392 * build-id.c: Fix common/ includes.
14393 * btrace.h: Fix common/ includes.
14394 * btrace.c: Fix common/ includes.
14395 * breakpoint.h: Fix common/ includes.
14396 * breakpoint.c: Fix common/ includes.
14398 (enum agent_op): Fix common/ includes.
14399 * ax-general.c (struct aop_map): Fix common/ includes.
14400 * ax-gdb.c: Fix common/ includes.
14401 * auxv.c: Fix common/ includes.
14402 * auto-load.c: Fix common/ includes.
14403 * arm-tdep.c: Fix common/ includes.
14404 * arch/riscv.c: Fix common/ includes.
14405 * arch/ppc-linux-common.c: Fix common/ includes.
14406 * arch/i386.c: Fix common/ includes.
14407 * arch/arm.c: Fix common/ includes.
14408 * arch/arm-linux.c: Fix common/ includes.
14409 * arch/arm-get-next-pcs.c: Fix common/ includes.
14410 * arch/amd64.c: Fix common/ includes.
14411 * arch/aarch64.c: Fix common/ includes.
14412 * arch/aarch64-insn.c: Fix common/ includes.
14413 * arch-utils.c: Fix common/ includes.
14414 * amd64-windows-tdep.c: Fix common/ includes.
14415 * amd64-tdep.c: Fix common/ includes.
14416 * amd64-sol2-tdep.c: Fix common/ includes.
14417 * amd64-obsd-tdep.c: Fix common/ includes.
14418 * amd64-nbsd-tdep.c: Fix common/ includes.
14419 * amd64-linux-tdep.c: Fix common/ includes.
14420 * amd64-linux-nat.c: Fix common/ includes.
14421 * amd64-fbsd-tdep.c: Fix common/ includes.
14422 * amd64-fbsd-nat.c: Fix common/ includes.
14423 * amd64-dicos-tdep.c: Fix common/ includes.
14424 * amd64-darwin-tdep.c: Fix common/ includes.
14425 * agent.c: Fix common/ includes.
14426 * ada-lang.h: Fix common/ includes.
14427 * ada-lang.c: Fix common/ includes.
14428 * aarch64-tdep.c: Fix common/ includes.
14430 2019-01-25 Tom Tromey <tom@tromey.com>
14432 * common/create-version.sh: Use common/version.h.
14434 2019-01-24 Pedro Alves <palves@redhat.com>
14436 * infrun.c (signal_stop, signal_print, signal_program)
14437 (signal_catch, signal_pass): Now arrays instead of pointers.
14438 (update_signals_program_target, do_target_resume)
14439 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14440 * linux-nat.c (linux_nat_target::pass_signals)
14441 (linux_nat_target::create_inferior, linux_nat_target::attach):
14443 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14444 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14445 * procfs.c (procfs_target::pass_signals): Adjust.
14446 * record-full.c (record_full_target::resume): Adjust.
14447 * remote.c (remote_target::pass_signals)
14448 (remote_target::program_signals): Adjust.
14449 * target-debug.h (target_debug_print_signals): Now takes a
14450 gdb::array_view as parameter. Adjust.
14451 * target.h (target_ops) <pass_signals, program_signals>: Replace
14452 pointer and length parameters with gdb::array_view.
14453 (target_pass_signals, target_program_signals): Likewise.
14454 * target-delegates.c: Regenerate.
14456 2019-01-24 Pedro Alves <palves@redhat.com>
14458 * common/forward-scope-exit.h
14459 (forward_scope_exit::forward_scope_exit): Pass arguments to
14460 m_bind_function directly, instead of creating a std::bind and
14463 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14465 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14466 for static members.
14467 (pass_in_v_vfp_candidate): Likewise.
14469 2019-01-23 Tom Tromey <tom@tromey.com>
14470 Pedro Alves <palves@redhat.com>
14472 * regcache.c (class regcache_invalidator): Remove.
14473 (regcache::raw_write): Use make_scope_exit.
14475 2019-01-23 Tom Tromey <tom@tromey.com>
14477 * ui-out.h (class ui_out_emit_type): Update comment.
14479 2019-01-23 Tom Tromey <tom@tromey.com>
14481 * infrun.c (fetch_inferior_event): Update comment.
14483 2019-01-23 Tom Tromey <tom@tromey.com>
14484 Pedro Alves <palves@redhat.com>
14486 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14488 (fetch_inferior_event): Use SCOPE_EXIT.
14491 2019-01-23 Tom Tromey <tom@tromey.com>
14492 Pedro Alves <palves@redhat.com>
14494 * infrun.c (disable_thread_events): Delete.
14495 (stop_all_threads): Use SCOPE_EXIT.
14497 2019-01-23 Tom Tromey <tom@tromey.com>
14498 Pedro Alves <palves@redhat.com>
14500 * symfile.c: Include forward-scope-exit.h.
14501 (clear_symtab_users_cleanup): Replace forward declaration with
14502 a FORWARD_SCOPE_EXIT.
14503 (syms_from_objfile_1): Use the forward_scope_exit and
14504 gdb::optional instead of cleanup_function.
14505 (reread_symbols): Use the forward_scope_exit instead of
14507 (clear_symtab_users_cleanup): Remove function.
14509 2019-01-23 Tom Tromey <tom@tromey.com>
14510 Pedro Alves <palves@redhat.com>
14512 * linux-nat.c: Include scope-exit.h.
14513 (cleanup_target_stop): Remove.
14514 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14517 2019-01-23 Tom Tromey <tom@tromey.com>
14518 Pedro Alves <palves@redhat.com>
14520 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14521 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14523 2019-01-23 Tom Tromey <tom@tromey.com>
14524 Andrew Burgess <andrew.burgess@embecosm.com>
14525 Pedro Alves <palves@redhat.com>
14527 * infrun.c (fetch_inferior_event): Use scope_exit.
14528 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14529 * top.c (execute_command): Use scope_exit.
14530 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14531 * utils.c (do_bpstat_clear_actions_cleanup)
14532 (make_bpstat_clear_actions_cleanup): Remove.
14534 2019-01-23 Tom Tromey <tom@tromey.com>
14535 Pedro Alves <palves@redhat.com>
14537 * infrun.c: Include "common/scope-exit.h"
14538 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14539 (wait_for_inferior): Use SCOPE_EXIT.
14540 (fetch_inferior_event): Use scope_exit.
14542 2019-01-23 Tom Tromey <tom@tromey.com>
14543 Pedro Alves <palves@redhat.com>
14545 * breakpoint.c (create_breakpoint): Remove cleanup.
14547 2019-01-23 Tom Tromey <tom@tromey.com>
14548 Andrew Burgess <andrew.burgess@embecosm.com>
14549 Pedro Alves <palves@redhat.com>
14551 2019-01-23 Pedro Alves <palves@redhat.com>
14553 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14555 2019-01-23 Pedro Alves <palves@redhat.com>
14556 Andrew Burgess <andrew.burgess@embecosm.com>
14558 * gdbthread.h: Include "common/forward-scope-exit.h".
14559 (scoped_finish_thread_state): Redefine custom class in terms of
14560 forward_scope_exit.
14562 2019-01-23 Pedro Alves <palves@redhat.com>
14563 Andrew Burgess <andrew.burgess@embecosm.com>
14565 * common/forward-scope-exit.h: New file.
14567 2019-01-23 Pedro Alves <palves@redhat.com>
14568 Andrew Burgess <andrew.burgess@embecosm.com>
14569 Tom Tromey <tom@tromey.com>
14571 * common/scope-exit.h: New file.
14573 2019-01-23 Pedro Alves <palves@redhat.com>
14575 * common/preprocessor.h (ESC): Rename to ...
14576 (ESC_PARENS): ... this.
14577 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14578 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14580 2019-01-23 Tom Tromey <tom@tromey.com>
14582 * language.h (class scoped_switch_to_sym_language_if_auto):
14583 Initialize m_lang in both cases.
14585 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14587 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14590 2019-01-22 Tom Tromey <tom@tromey.com>
14592 * corelow.c: Do not include sys/file.h.
14594 2019-01-22 Tom Tromey <tom@tromey.com>
14596 * tui/tui-wingeneral.h: Include gdb_curses.h.
14598 2019-01-22 Tom Tromey <tom@tromey.com>
14600 * source-cache.h (class source_cache) <get_source_lines,
14601 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14603 2019-01-22 Tom Tromey <tom@tromey.com>
14605 * remote-fileio.h (struct remote_target): Declare.
14607 2019-01-22 Tom Tromey <tom@tromey.com>
14609 * python/py-arch.c: Do not include py-ref.h.
14610 * python/py-bpevent.c: Do not include py-ref.h.
14611 * python/py-cmd.c: Do not include py-ref.h.
14612 * python/py-continueevent.c: Do not include py-ref.h.
14613 * python/py-event.h: Do not include py-ref.h.
14614 * python/py-evtregistry.c: Do not include py-ref.h.
14615 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14616 * python/py-frame.c: Do not include py-ref.h.
14617 * python/py-framefilter.c: Do not include py-ref.h.
14618 * python/py-function.c: Do not include py-ref.h.
14619 * python/py-infevents.c: Do not include py-ref.h.
14620 * python/py-linetable.c: Do not include py-ref.h.
14621 * python/py-objfile.c: Do not include py-ref.h.
14622 * python/py-param.c: Do not include py-ref.h.
14623 * python/py-prettyprint.c: Do not include py-ref.h.
14624 * python/py-progspace.c: Do not include py-ref.h.
14625 * python/py-symbol.c: Do not include py-ref.h.
14626 * python/py-symtab.c: Do not include py-ref.h.
14627 * python/py-type.c: Do not include py-ref.h.
14628 * python/py-unwind.c: Do not include py-ref.h.
14629 * python/py-utils.c: Do not include py-ref.h.
14630 * python/py-value.c: Do not include py-ref.h.
14631 * python/py-varobj.c: Do not include py-ref.h.
14632 * python/py-xmethods.c: Do not include py-ref.h.
14633 * python/python.c: Do not include py-ref.h.
14634 * varobj.c: Do not include py-ref.h.
14636 2019-01-22 Tom Tromey <tom@tromey.com>
14638 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14639 keyword for bcache.
14641 2019-01-22 Tom Tromey <tom@tromey.com>
14643 * compile/compile-cplus-types.c: Remove a comment by #include.
14645 2019-01-22 Tom Tromey <tom@tromey.com>
14647 * compile/gcc-c-plugin.h: Include compile-internal.h.
14649 2019-01-22 Tom Tromey <tom@tromey.com>
14651 * stabsread.c (EXTERN): Do not define.
14652 (symnum, next_symbol_text_func, processing_gcc_compilation)
14653 (within_function, global_sym_chain, global_stabs)
14654 (previous_stab_code, this_object_header_files)
14655 (n_this_object_header_files)
14656 (n_allocated_this_object_header_files): Define.
14657 * stabsread.h (EXTERN): Never define. Use "extern".
14659 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14661 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14664 2019-01-21 Tom Tromey <tom@tromey.com>
14666 * ui-out.c: Fix includes.
14667 * tui/tui-source.c: Fix includes.
14668 * target.c: Fix includes.
14669 * remote.c: Fix includes.
14670 * regcache.c: Fix includes.
14671 * python/py-block.c: Fix includes.
14672 * printcmd.c: Fix includes.
14673 * or1k-tdep.c: Fix includes.
14674 * mi/mi-main.c: Fix includes.
14675 * m32r-tdep.c: Fix includes.
14676 * csky-tdep.c: Fix includes.
14677 * compile/compile-cplus-types.c: Fix includes.
14678 * cli/cli-interp.c: Fix includes.
14680 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14682 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14685 2019-01-16 Tom Tromey <tom@tromey.com>
14687 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14689 (struct objfile) <msymbols_range>: Move from top level.
14690 <msymbols>: New method.
14691 (class objfile_msymbols): Remove.
14692 * symtab.c (default_collect_symbol_completion_matches_break_on):
14694 * symmisc.c (dump_msymbols): Update.
14695 * stabsread.c (scan_file_globals): Update.
14696 * objc-lang.c (info_selectors_command, info_classes_command)
14697 (find_methods): Update.
14698 * minsyms.c (find_solib_trampoline_target): Update.
14699 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14700 * coffread.c (coff_symfile_read): Update.
14701 * ada-lang.c (ada_lookup_simple_minsym)
14702 (ada_collect_symbol_completion_matches): Update.
14704 2019-01-16 Tom Tromey <tom@tromey.com>
14706 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14707 type. Remove no-argument constructor.
14708 <iterator::operator++>: Simplify.
14710 <end>: Use minimal_symbol_count.
14712 2019-01-16 Tom Tromey <tom@tromey.com>
14714 * objfiles.h (struct objfile) <psymtabs>: New method.
14715 (class objfile_psymtabs): Remove.
14716 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14718 <range>: New method.
14719 (require_partial_symbols): Change return type.
14720 * psymtab.c (require_partial_symbols)
14721 (psym_expand_symtabs_matching): Update.
14722 * mdebugread.c (parse_partial_symbols): Update.
14723 * dbxread.c (dbx_end_psymtab): Update.
14725 2019-01-15 Tom Tromey <tom@tromey.com>
14727 * symtab.c (lookup_objfile_from_block)
14728 (lookup_symbol_in_objfile_symtabs)
14729 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14730 (find_line_symtab, info_sources_command)
14731 (default_collect_symbol_completion_matches_break_on)
14732 (make_source_files_completion_list): Update.
14733 * symmisc.c (print_objfile_statistics, dump_objfile)
14734 (maintenance_print_symbols, maintenance_info_symtabs)
14735 (maintenance_check_symtabs, maintenance_info_line_tables):
14737 * source.c (select_source_symtab)
14738 (forget_cached_source_info_for_objfile): Update.
14739 * objfiles.h (class objfile_compunits): Remove.
14740 (struct objfile) <compunits_range>: New typedef.
14741 (compunits): New method.
14742 * objfiles.c (objfile_relocate1): Update.
14743 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14744 * maint.c (count_symtabs_and_blocks): Update.
14745 * linespec.c (iterate_over_all_matching_symtabs): Update.
14746 * cp-support.c (add_symbol_overload_list_qualified): Update.
14747 * coffread.c (coff_symtab_read): Update.
14748 * ada-lang.c (add_nonlocal_symbols)
14749 (ada_collect_symbol_completion_matches)
14750 (ada_add_global_exceptions): Update.
14752 2019-01-15 Tom Tromey <tom@tromey.com>
14754 * progspace.h (program_space) <objfiles_safe_range>: New
14756 <objfiles_safe>: New method.
14757 * objfiles.h (class all_objfiles_safe): Remove.
14758 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14759 * jit.c (jit_inferior_exit_hook): Update.
14761 2019-01-17 Tom Tromey <tom@tromey.com>
14763 * progspace.h (program_space) <objfiles_range>: New typedef.
14764 <objfiles>: New method.
14765 <objfiles_head>: Rename from objfiles.
14766 (object_files): Update.
14767 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14768 * guile/scm-pretty-print.c
14769 (ppscm_find_pretty_printer_from_objfiles): Update.
14770 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14771 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14773 * python/py-progspace.c (pspy_get_objfiles): Update.
14774 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14776 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14777 (objfpy_lookup_objfile_by_build_id): Update.
14778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14779 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14781 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14782 (expand_symtab_containing_pc, lookup_objfile_from_block)
14783 (lookup_static_symbol, basic_lookup_transparent_type)
14784 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14785 (find_line_symtab, info_sources_command)
14786 (default_collect_symbol_completion_matches_break_on)
14787 (make_source_files_completion_list, find_main_name): Update.
14788 * symmisc.c (print_symbol_bcache_statistics)
14789 (print_objfile_statistics, maintenance_print_symbols)
14790 (maintenance_print_msymbols, maintenance_print_objfiles)
14791 (maintenance_info_symtabs, maintenance_check_symtabs)
14792 (maintenance_expand_symtabs, maintenance_info_line_tables):
14794 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14795 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14796 (map_overlay_command, unmap_overlay_command)
14797 (simple_overlay_update, expand_symtabs_matching)
14798 (map_symbol_filenames): Update.
14799 * symfile-debug.c (set_debug_symfile): Update.
14800 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14802 * source.c (select_source_symtab, forget_cached_source_info):
14804 * solib.c (solib_read_symbols): Update.
14805 * solib-spu.c (append_ocl_sos): Update.
14806 * psymtab.c (maintenance_print_psymbols)
14807 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14808 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14809 * printcmd.c (info_symbol_command): Update.
14810 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14812 * objfiles.h (class all_objfiles): Remove.
14813 * objfiles.c (have_partial_symbols, have_full_symbols)
14814 (have_minimal_symbols, qsort_cmp, update_section_map)
14815 (shared_objfile_contains_address_p)
14816 (default_iterate_over_objfiles_in_search_order): Update.
14817 * objc-lang.c (info_selectors_command, info_classes_command)
14818 (find_methods): Update.
14819 * minsyms.c (find_solib_trampoline_target): Update.
14820 * maint.c (maintenance_info_sections)
14821 (maintenance_translate_address, count_symtabs_and_blocks):
14823 * main.c (captured_main_1): Update.
14824 * linux-thread-db.c (try_thread_db_load_from_pdir)
14825 (has_libpthread): Update.
14826 * linespec.c (iterate_over_all_matching_symtabs)
14827 (search_minsyms_for_name): Update.
14828 * jit.c (jit_find_objf_with_entry_addr): Update.
14829 * hppa-tdep.c (find_unwind_entry)
14830 (hppa_lookup_stub_minimal_symbol): Update.
14831 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14833 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14834 (elf_gnu_ifunc_resolve_by_got): Update.
14835 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14836 * dwarf-index-write.c (save_gdb_index_command): Update.
14837 * cp-support.c (add_symbol_overload_list_qualified): Update.
14838 * breakpoint.c (create_overlay_event_breakpoint)
14839 (create_longjmp_master_breakpoint)
14840 (create_std_terminate_master_breakpoint)
14841 (create_exception_master_breakpoint): Update.
14842 * blockframe.c (find_pc_partial_function): Update.
14843 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14844 (ada_collect_symbol_completion_matches)
14845 (ada_add_global_exceptions): Update.
14847 2019-01-17 Tom Tromey <tom@tromey.com>
14849 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14851 (solib_target_parse_libraries): Change return type.
14852 (library_list_start_segment, library_list_start_section)
14853 (library_list_end_library, library_list_start_library); Update.
14854 (solib_target_free_library_list): Remove.
14855 (solib_target_parse_libraries): Remove cleanup. Change return
14857 (solib_target_current_sos): Update.
14859 2019-01-17 Tom Tromey <tromey@bapiya>
14861 * valprint.c: Replace "the the" with "the".
14862 * symtab.c: Replace "the the" with "the".
14863 * solib.c: Replace "the the" with "the".
14864 * solib-dsbt.c: Replace "the the" with "the".
14865 * linespec.c: Replace "the the" with "the".
14866 * dwarf2loc.h: Replace "the the" with "the".
14867 * amd64-windows-tdep.c: Replace "the the" with "the".
14868 * aarch64-tdep.c: Replace "the the" with "the".
14870 2019-01-16 Keith Seitz <keiths@redhat.com>
14873 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14874 <builder>: Rename to ..
14875 <m_builder>: ... this and make private.
14876 (dwarf2_cu::get_builder): New method. Change all users of
14877 `builder' to use this method.
14878 (dwarf2_start_symtab): Move to ...
14879 (dwarf2_cu::start_symtab): ... here. Update all callers
14880 (setup_type_unit_groups): Move to ...
14881 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14883 (dwarf2_cu::reset_builder): New method.
14884 (process_full_compunit, process_full_type_unit): Use
14885 dwarf2_cu::reset_builder.
14886 (follow_die_offset): Record the ancestor CU if it is different
14887 from the followed DIE's CU.
14888 (follow_die_sig_1): Likewise.
14890 2019-01-15 Tom Tromey <tom@tromey.com>
14892 * remote.c (class remote_state) <buf>: Now a char_vector.
14893 <buf_size>: Remove.
14894 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14896 (remote_target::getpkt_or_notif_sane_1)
14897 (remote_target::getpkt_sane)
14898 (remote_target::getpkt_or_notif_sane): Likewise.
14899 (class remote_target) <putpkt>: New overload.
14900 (remote_target::read_frame): Change type of "buf_p". Remove
14901 sizeof_p parameter.
14902 (packet_ok): New overload.
14903 (packet_check_result): New overload.
14906 2019-01-14 Tom Tromey <tom@tromey.com>
14908 * remote-notif.c (handle_notification, remote_notif_ack)
14909 (remote_notif_parse): Make "buf" const.
14910 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14912 (remote_notif_parse, remote_notif_ack, handle_notification):
14914 * remote.c (remote_notif_stop_parse): Make "buf" const.
14915 (remote_target::remote_parse_stop_reply): Make "buf" const.
14916 (remote_notif_stop_ack): Make "buf" const.
14918 2019-01-14 Tom Tromey <tom@tromey.com>
14920 * remote.c (remote_console_output): Make parameter const.
14922 2019-01-14 Tom Tromey <tom@tromey.com>
14924 * target-debug.h (target_debug_print_signals): Constify.
14925 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14926 * procfs.c (procfs_target::pass_signals): Update.
14927 * linux-nat.c (linux_nat_target::pass_signals): Update.
14928 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14929 * target-delegates.c: Rebuild.
14930 * remote.c (remote_target::program_signals): Update.
14931 (remote_target::pass_signals): Update.
14932 * target.c (target_pass_signals): Constify argument.
14933 (target_program_signals): Likewise.
14934 * target.h (struct target_ops) <pass_signals, program_signals>:
14936 (target_pass_signals, target_program_signals): Constify argument.
14938 2019-01-14 Tom Tromey <tom@tromey.com>
14941 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14943 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14945 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14947 * rs6000-tdep.c: Include reggroups.h.
14948 (IS_V_ALIAS_PSEUDOREG): Define.
14949 (rs6000_register_name): Return names for the "vX" aliases.
14950 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14951 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14952 aliases. Call default_register_reggroup_p for all other
14954 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14956 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14957 Handle "vX" aliases.
14958 (v_alias_pseudo_register_collect): New function.
14959 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14960 (rs6000_gdbarch_init): Initialize "vX" aliases as
14961 pseudo-registers. Restore registration of
14962 rs6000_pseudo_register_reggroup_p with
14963 set_tdesc_pseudo_register_reggroup_p.
14965 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14967 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14968 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14969 set_gdbarch_num_pseudo_regs.
14971 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14973 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14974 Remove arg prefixname, add do_set and do_show.
14975 Add member functions set_list and show_list.
14976 * cli/cli-style.c (class cli_style_option): Update accordingly.
14977 (style_set_list): Move to file scope.
14978 (style_show_list): Likewise.
14979 (set_style): Call help_list.
14980 (show_style): Call cmd_show_list.
14981 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14982 Update to use the new macro.
14984 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14986 * ada-lang.c (_initialize_ada_language): Expand the help text
14987 for the "catch exception" command.
14989 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14991 * symtab.c (matching_obj_sections): Initialize obj,
14992 declare it closer to its usage.
14994 2019-01-10 Tom Tromey <tom@tromey.com>
14996 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14997 (basic_inf_threads_range): Remove.
14998 (inf_threads_range, inf_non_exited_threads_range)
14999 (safe_inf_threads_range): Use next_adapter.
15001 2019-01-10 Keith Seitz <keiths@redhat.com>
15005 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15006 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15008 2019-01-10 Keith Seitz <keiths@redhat.com>
15012 * dictionary.c (pending_to_vector): Remove.
15013 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15014 Remove _1 suffix, replacing functions of the same name. Update
15016 (dict_create_hashed, dict_create_hashed_expandable)
15017 (dict_create_linear, dict_create_linear_expandable, dict_free)
15018 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15019 Make functions static.
15021 2019-01-10 Keith Seitz <keiths@redhat.com>
15025 * dictionary.h (struct dictionary): Replace declaration with
15027 (dict_create_hashed, dict_create_hashed_expandable)
15028 (dict_create_linear, dict_create_linear_expandable)
15029 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15030 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15031 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15032 taking multidictionary argument.
15033 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15034 * block.h (struct block) <dict>: Change to multidictionary
15035 and rename `multidict'.
15036 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15037 symmisc.c: Update all dictionary references to multidictionary.
15039 2019-01-10 Keith Seitz <keiths@redhat.com>
15043 * dictionary.c: Include unordered_map.
15044 (pending_to_vector): New function.
15045 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15046 Rewrite the non-"_1" functions to take vector instead
15048 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15049 "new" _1 versions of the same name.
15050 (multidictionary): Define.
15051 (std::hash<enum language): New definition.
15052 (collate_pending_symbols_by_language, mdict_create_hashed)
15053 (mdict_create_hashed_expandable, mdict_create_linear)
15054 (mdict_create_linear_expandable, mdict_free)
15055 (find_language_dictionary, create_new_language_dictionary)
15056 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15057 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15058 (mdict_size, mdict_empty): New functions.
15059 * dictionary.h (mdict_iterator): Define.
15061 2019-01-10 Pedro Alves <palves@redhat.com>
15063 * breakpoint.c (read_uploaded_action)
15064 (create_tracepoint_from_upload): Adjust to use
15065 gdb::unique_xmalloc_ptr.
15066 * ctf.c (ctf_write_uploaded_tp):
15067 (SET_ARRAY_FIELD): Use emplace_back.
15068 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15069 * tracefile-tfile.c (tfile_write_uploaded_tp):
15070 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15071 gdb::unique_xmalloc_ptr.
15072 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15073 at_string, cond_string, cmd_strings>: Replace char pointers
15074 with gdb::unique_xmalloc_ptr.
15076 2019-01-10 Pedro Alves <palves@redhat.com>
15078 * solib-target.c (library_list_start_library): Don't xstrdup name.
15080 2019-01-10 Pedro Alves <palves@redhat.com>
15082 * mdebugread.c (parse_partial_symbols): Use
15083 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15085 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15087 * linux-fork.c (scoped_switch_fork_info)
15088 <~scoped_switch_fork_info>: Fix incorrect variable name.
15090 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15092 * linux-fork.c (scoped_switch_fork_info)
15093 <scoped_switch_fork_info>: Make explicit.
15094 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15096 2019-01-10 Tom Tromey <tom@tromey.com>
15098 * objfiles.h (objfile::reset_psymtabs): Update.
15099 * objfiles.c (objfile::objfile): Update.
15100 * psymtab.h (psymtab_storage::obstack): Update.
15101 (psymtab_storage::m_obstack): Use gdb::optional.
15102 (class psymtab_storage): Update comment. Remove objfile
15104 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15106 2019-01-10 Tom Tromey <tom@tromey.com>
15108 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15109 <free_psymtabs>: Now private.
15110 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15111 (allocate_psymtab): Use new method.
15113 2019-01-10 Tom Tromey <tom@tromey.com>
15115 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15116 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15117 * mdebugread.c (parse_partial_symbols): Use
15118 allocate_dependencies.
15119 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15120 allocate_dependencies.
15121 (process_psymtab_comp_unit_reader)
15122 (build_type_psymtab_dependencies): Likewise.
15123 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15125 2019-01-10 Tom Tromey <tom@tromey.com>
15127 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15128 PSYMBOL_SET_LANGUAGE.
15129 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15131 2019-01-10 Tom Tromey <tom@tromey.com>
15133 * psymtab.h (psymtab_storage::obstack): New method.
15134 <m_obstack>: Rename from obstack; now private.
15135 * psymtab.c (psymtab_storage): Update.
15136 * dwarf2read.c (create_addrmap_from_index)
15137 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15140 2019-01-10 Tom Tromey <tom@tromey.com>
15142 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15143 * objfiles.h (objfile::reset_psymtabs): New method.
15145 2019-01-10 Tom Tromey <tom@tromey.com>
15147 * symmisc.c (print_symbol_bcache_statistics): Update.
15148 (print_objfile_statistics): Update.
15149 * symfile.c (reread_symbols): Update.
15150 * psymtab.h (class psymtab_storage): New.
15151 * psymtab.c (psymtab_storage): New constructor.
15152 (~psymtab_storage): New destructor.
15153 (require_partial_symbols): Update.
15154 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15155 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15156 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15157 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15158 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15159 (start_psymtab_common, end_psymtab_common)
15160 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15161 (allocate_psymtab): Update.
15162 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15164 (dump_psymtab_addrmap, maintenance_print_psymbols)
15165 (maintenance_check_psymtabs): Update.
15166 (class objfile_psymtabs): Move to objfiles.h.
15167 * psympriv.h (discard_psymtab): Now inline.
15168 (psymtab_discarder::psymtab_discarder): Update.
15169 (psymtab_discarder::~psymtab_discarder): Update.
15170 (ALL_OBJFILE_PSYMTABS): Rewrite.
15171 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15172 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15174 <partial_symtabs>: New field.
15175 (class objfile_psymtabs): Move from psymtab.h. Update.
15176 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15178 (objfile::~objfile): Don't destroy psymbol_cache.
15179 * mdebugread.c (parse_partial_symbols): Update.
15180 * dwarf2read.c (create_addrmap_from_index)
15181 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15182 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15183 (add_partial_subprogram, dwarf2_ranges_read): Update.
15184 * dwarf-index-write.c (write_address_map)
15185 (write_one_signatured_type, recursively_write_psymbols)
15186 (class debug_names, class debug_names, write_psymtabs_to_index):
15189 2019-01-10 Tom Tromey <tom@tromey.com>
15191 * symtab.h (SYMBOL_SET_NAMES): Update.
15192 (symbol_set_names): Update.
15193 (MSYMBOL_SET_NAMES): Update.
15194 * symtab.c (symbol_set_names): Change argument to be an
15195 objfile_per_bfd_storage.
15196 * psymtab.c (add_psymbol_to_bcache): Update.
15197 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15199 2019-01-10 Tom Tromey <tom@tromey.com>
15201 * symtab.c (create_demangled_names_hash): Change argument to be an
15202 objfile_per_bfd_storage.
15203 (symbol_set_names): Update.
15205 2019-01-10 Tom Tromey <tom@tromey.com>
15207 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15209 * psymtab.c (init_psymbol_list): Do nothing if already called.
15210 * psympriv.h (init_psymbol_list): Add comment.
15211 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15213 * dbxread.c (dbx_symfile_read): Unconditionally call
15216 2019-01-10 Tom Tromey <tom@tromey.com>
15218 * xcoffread.c (scan_xcoff_symtab): Update.
15219 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15221 * mdebugread.c (parse_partial_symbols)
15222 (handle_psymbol_enumerators): Update.
15223 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15224 * dbxread.c (read_dbx_symtab): Update.
15225 * psympriv.h (psymbol_placement): New enum.
15226 (add_psymbol_to_list): Update.
15228 2019-01-10 Tom Tromey <tom@tromey.com>
15230 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15231 static_psymbols parameters.
15232 (scan_xcoff_symtab): Update.
15233 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15234 static_psymbols parameters.
15235 * psympriv.h (start_psymtab_common): Update.
15236 * mdebugread.c (parse_partial_symbols): Update.
15237 * dwarf2read.c (create_partial_symtab): Update.
15238 * dbxread.c (read_dbx_symtab): Update.
15239 (start_psymtab): Remove global_psymbols and static_psymbols
15242 2019-01-10 Tom Tromey <tom@tromey.com>
15244 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15245 * psymtab.c (allocate_psymtab): Add comment.
15246 * psympriv.h (allocate_psymtab): Add comment.
15247 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15249 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15251 2019-01-10 Tom Tromey <tom@tromey.com>
15253 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15255 * mipsread.c: Include mdebugread.h.
15256 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15258 * elfread.c: Include mdebugread.h.
15260 2019-01-09 Tom Tromey <tom@tromey.com>
15262 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15263 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15264 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15265 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15266 (psym_lookup_symbol, psym_find_last_source_symtab)
15267 (psym_forget_cached_source_info, psym_print_stats)
15268 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15269 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15270 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15271 (psym_find_compunit_symtab_by_address)
15272 (maintenance_print_psymbols, maintenance_info_psymtabs)
15273 (maintenance_check_psymtabs): Use ranged for.
15274 * psymtab.h (class objfile_psymtabs): New.
15275 (require_partial_symbols): Return objfile_psymtabs.
15276 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15278 2019-01-09 Tom Tromey <tom@tromey.com>
15280 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15281 (find_pc_mapped_section, list_overlays_command)
15282 (map_overlay_command, unmap_overlay_command)
15283 (simple_overlay_update): Use all_objfiles.
15284 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15285 * printcmd.c (info_symbol_command): Use all_objfiles.
15286 * objfiles.h (ALL_OBJSECTIONS): Remove.
15287 * maint.c (maintenance_translate_address): Use all_objfiles.
15288 * gcore.c (gcore_create_callback): Use all_objfiles.
15289 (objfile_find_memory_regions): Likewise.
15291 2019-01-09 Tom Tromey <tom@tromey.com>
15293 * symtab.c (find_line_symtab, info_sources_command)
15294 (make_source_files_completion_list): Use objfile_compunits.
15295 * source.c (select_source_symtab): Use objfile_compunits.
15296 * objfiles.h (struct objfile): Update comment.
15297 (ALL_OBJFILES): Remove.
15298 (ALL_FILETABS): Remove.
15299 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15302 2019-01-09 Tom Tromey <tom@tromey.com>
15304 * symmisc.c (print_objfile_statistics, dump_objfile)
15305 (maintenance_print_symbols): Use compunit_filetabs.
15306 * source.c (forget_cached_source_info_for_objfile): Use
15308 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15309 (ALL_FILETABS): Use compunit_filetabs.
15310 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15311 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15313 2019-01-09 Tom Tromey <tom@tromey.com>
15315 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15316 (compunit_filetabs): New.
15317 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15319 (info_sources_command, make_source_files_completion_list): Remove
15321 * symmisc.c (print_objfile_statistics, dump_objfile)
15322 (maintenance_print_symbols): Remove declaration.
15323 (maintenance_info_symtabs): Use compunit_filetabs.
15324 (maintenance_info_line_tables): Likewise.
15325 * source.c (select_source_symtab): Change local variable name.
15326 (forget_cached_source_info_for_objfile): Remove declaration.
15327 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15328 * objfiles.c (objfile_relocate1): Remove declaration.
15329 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15331 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15332 * coffread.c (coff_symtab_read): Remove declaration.
15333 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15336 2019-01-09 Tom Tromey <tom@tromey.com>
15338 * symtab.c (lookup_objfile_from_block)
15339 (find_pc_sect_compunit_symtab, search_symbols)
15340 (default_collect_symbol_completion_matches_break_on): Use
15342 * objfiles.h (ALL_COMPUNITS): Remove.
15343 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15344 * cp-support.c (add_symbol_overload_list_qualified): Use
15346 * ada-lang.c (ada_collect_symbol_completion_matches)
15347 (ada_add_global_exceptions): Use objfile_compunits.
15349 2019-01-09 Tom Tromey <tom@tromey.com>
15351 * source.c (select_source_symtab)
15352 (forget_cached_source_info_for_objfile): Remove declaration.
15353 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15355 * maint.c (count_symtabs_and_blocks): Remove declaration.
15356 * cp-support.c (add_symbol_overload_list_qualified): Remove
15358 * coffread.c (coff_symtab_read): Remove declaration.
15359 * symtab.c (lookup_symbol_in_objfile_symtabs)
15360 (basic_lookup_transparent_type_1): Use objfile_compunits.
15361 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15362 (info_sources_command, search_symbols)
15363 (default_collect_symbol_completion_matches_break_on)
15364 (make_source_files_completion_list): Remove declaration.
15365 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15366 (ada_collect_symbol_completion_matches)
15367 (ada_add_global_exceptions): Remove declaration.
15368 * linespec.c (iterate_over_all_matching_symtabs): Use
15370 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15371 (class objfile_compunits): New.
15372 (ALL_COMPUNITS): Use objfile_compunits.
15373 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15374 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15376 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15378 2019-01-09 Tom Tromey <tom@tromey.com>
15380 * symtab.c (search_symbols)
15381 (default_collect_symbol_completion_matches_break_on): Use
15383 * ada-lang.c (ada_lookup_simple_minsym)
15384 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15385 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15386 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15388 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15389 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15390 * objc-lang.c (find_methods): Use objfile_msymbols.
15391 (info_selectors_command, info_classes_command): Likewise.
15392 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15393 * objfiles.h (class objfile_msymbols): New.
15394 (ALL_OBJFILE_MSYMBOLS): Remove.
15395 (ALL_MSYMBOLS): Remove.
15397 2019-01-09 Tom Tromey <tom@tromey.com>
15399 * common/next-iterator.h (next_adapter): Add Iterator template
15401 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15402 (class all_objfiles_safe): New.
15403 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15404 * objfiles.c (put_objfile_before): Update comment.
15405 (add_separate_debug_objfile): Likewise.
15406 (free_all_objfiles): Use all_objfiles_safe.
15407 (objfile_purge_solibs): Likewise.
15409 2019-01-09 Tom Tromey <tom@tromey.com>
15411 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15412 (expand_symtab_containing_pc, lookup_static_symbol)
15413 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15414 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15416 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15417 * breakpoint.c (create_overlay_event_breakpoint)
15418 (create_longjmp_master_breakpoint)
15419 (create_std_terminate_master_breakpoint)
15420 (create_exception_master_breakpoint): Use all_objfiles.
15421 * linux-thread-db.c (try_thread_db_load_from_pdir)
15422 (has_libpthread): Use all_objfiles.
15423 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15424 * linespec.c (iterate_over_all_matching_symtabs)
15425 (search_minsyms_for_name): Use all_objfiles.
15426 * maint.c (maintenance_info_sections): Use all_objfiles.
15427 * main.c (captured_main_1): Use all_objfiles.
15428 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15429 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15430 * guile/scm-pretty-print.c
15431 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15432 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15433 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15434 (maintenance_print_msymbols): Use all_objfiles.
15435 * source.c (select_source_symtab): Use all_objfiles.
15436 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15437 * symfile.c (remove_symbol_file_command)
15438 (expand_symtabs_matching, map_symbol_filenames): Use
15440 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15442 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15443 * objc-lang.c (find_methods): Use all_objfiles.
15444 * objfiles.c (have_partial_symbols, have_full_symbols)
15445 (have_minimal_symbols, qsort_cmp)
15446 (default_iterate_over_objfiles_in_search_order): Use
15448 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15449 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15450 (maintenance_check_psymtabs): Use all_objfiles.
15451 (ALL_PSYMTABS): Remove.
15452 * compile/compile-object-run.c (do_module_cleanup): Use
15454 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15455 * cp-support.c (add_symbol_overload_list_qualified): Use
15457 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15459 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15460 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15462 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15463 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15464 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15466 * solib.c (solib_read_symbols): Use all_objfiles
15468 2019-01-09 Tom Tromey <tom@tromey.com>
15470 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15471 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15473 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15474 * symmisc.c (print_symbol_bcache_statistics)
15475 (print_objfile_statistics, maintenance_print_objfiles)
15476 (maintenance_info_symtabs, maintenance_check_symtabs)
15477 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15479 * source.c (forget_cached_source_info): Use all_objfiles.
15480 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15481 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15482 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15483 * objfiles.c (update_section_map): Use all_objfiles.
15484 (shared_objfile_contains_address_p): Likewise.
15485 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15486 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15488 2019-01-09 Tom Tromey <tom@tromey.com>
15490 * common/next-iterator.h: New file.
15491 * objfiles.h (class all_objfiles): New.
15492 (struct objfile_iterator): New.
15494 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15496 * NEWS: Move the description of the changed "frame", "select-frame",
15497 and "info frame" commands to the Changed commands section.
15499 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15501 * gdbtypes.c (check_stub_method_group): Remove handling of old
15503 * linespec.c (find_methods): Likewise.
15504 * stabsread.c (read_member_functions): Likewise.
15505 * valops.c (search_struct_method): Likewise.
15506 (value_struct_elt_for_reference): Likewise.
15507 * NEWS: Mention this change.
15509 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15511 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15512 print_source_lines.
15513 * source.c (print_source_lines_base): Update line number check.
15514 (print_source_lines): New function.
15515 (source_lines_range::source_lines_range): New function.
15516 * source.h (class source_lines_range): New class.
15517 (print_source_lines): New declaration.
15519 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15521 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15523 2019-01-08 Tom Tromey <tom@tromey.com>
15524 Simon Marchi <simon.marchi@ericsson.com>
15527 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15528 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15529 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15530 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15531 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15532 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15534 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15536 * source.c (select_source_symtab): Move header comment to
15537 declaration in source.h.
15538 (forget_cached_source_info_for_objfile): Likewise.
15539 (forget_cached_source_info): Likewise.
15540 (identify_source_line): Likewise.
15541 * source.h (identify_source_line): Move declaration from symtab.h
15542 and add comment from source.c
15543 (print_source_lines): Likewise.
15544 (forget_cached_source_info_for_objfile): Likewise.
15545 (forget_cached_source_info): Likewise.
15546 (select_source_symtab): Likewise.
15547 (enum print_source_lines_flag): Move definition from symtab.h.
15548 * symtab.h (identify_source_line): Move declaration to source.h.
15549 (print_source_lines): Likewise.
15550 (forget_cached_source_info_for_objfile): Likewise.
15551 (forget_cached_source_info): Likewise.
15552 (select_source_symtab): Likewise.
15553 (enum print_source_lines_flag): Move definition to source.h.
15554 * tui/tui-hooks.c: Add 'source.h' include.
15556 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15558 * source.c (print_source_lines_base): Handle requests to print
15559 reverse line number sequences, and guard against empty lines
15562 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15564 * source.c (print_source_lines_base): Fix skip of '\r' if next
15567 2019-01-06 Tom Tromey <tom@tromey.com>
15569 * c-exp.y (struct c_parse_state) <macro_original_text,
15570 expansion_obstack>: New member.
15571 (macro_original_text, expansion_obstack): Remove globals.
15572 (scan_macro_expansion, scanning_macro_expansion)
15573 (finished_macro_expansion): Update.
15574 (scan_macro_cleanup): Remove.
15575 (yylex, c_parse): Update.
15577 2019-01-06 Tom Tromey <tom@tromey.com>
15579 * c-exp.y (struct c_parse_state) <strings>: New member.
15580 (operator_stoken): Update.
15582 2019-01-06 Tom Tromey <tom@tromey.com>
15584 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15585 (union type_stack_elt) <typelist_val>: Now a pointer to
15587 (type_stack_cleanup): Don't declare.
15588 (push_typelist): Update.
15589 * parse.c (pop_typelist): Return a std::vector.
15590 (push_typelist): Take a std::vector.
15591 (follow_types): Update. Do not free args.
15592 (type_stack_cleanup): Remove.
15593 * c-exp.y (struct c_parse_state): New.
15594 (cpstate): New global.
15595 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15596 (nonempty_typelist): Update.
15597 (func_mod): Create a new vector.
15598 (c_parse): Create a c_parse_state.
15599 (check_parameter_typelist): Do not delete params.
15600 (function_method): Update. Do not delete type_list.
15602 2019-01-06 Tom Tromey <tom@tromey.com>
15605 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15607 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15608 (print_return_value): Likewise.
15610 2019-01-05 Tom Tromey <tom@tromey.com>
15612 * contrib/cleanup_check.py: Remove.
15613 * contrib/gcc-with-excheck: Remove.
15614 * contrib/exsummary.py: Remove.
15615 * contrib/excheck.py: Remove.
15617 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15619 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15620 NULL. Initialize tpprev to NULL instead of assigning it
15621 to NULL on the next statement.
15622 * windows-nat.c (windows_delete_thread): Remove check for
15623 main_thread_id before printing thread exit notifications.
15624 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15625 Remove thread ID check against main_thread_id.
15626 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15627 windows_delete_thread.
15628 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15630 2019-01-04 Tom Tromey <tom@tromey.com>
15632 * compile/compile.c (_initialize_compile): Use upper case for
15633 metasyntactic variables.
15634 * symmisc.c (_initialize_symmisc): Use upper case for
15635 metasyntactic variables.
15636 * psymtab.c (_initialize_psymtab): Use upper case for
15637 metasyntactic variables.
15638 * demangle.c (demangle_command): Use upper case for metasyntactic
15640 (_initialize_demangler): Likewise.
15641 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15644 2019-01-03 Tom Tromey <tom@tromey.com>
15646 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15648 2019-01-03 Tom Tromey <tom@tromey.com>
15650 * python/py-symtab.c (salpy_str): Update.
15651 (struct salpy_sal_object) <symtab>: Now a PyObject.
15652 (salpy_dealloc): Update.
15653 (del_objfile_sal): Use gdbpy_ref.
15655 2019-01-03 Tom Tromey <tom@tromey.com>
15657 * python/py-type.c (convert_field): Use new_reference. Return
15659 (make_fielditem): Return gdbpy_ref.
15660 (typy_fields): Update.
15661 (typy_getitem): Update.
15662 (field_name): Return gdbpy_ref. Use new_reference.
15663 (typy_iterator_iternext): Update.
15665 2019-01-03 Tom Tromey <tom@tromey.com>
15667 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15669 2019-01-03 Tom Tromey <tom@tromey.com>
15671 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15672 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15673 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15674 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15675 (pspy_set_type_printers): Likewise.
15676 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15677 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15678 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15679 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15680 (objfpy_set_type_printers): Likewise.
15682 2019-01-03 Tom Tromey <tom@tromey.com>
15684 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15685 (gdbpy_print_stack): Use gdbpy_err_fetch.
15686 * python/python-internal.h (class gdbpy_err_fetch): New class.
15687 (class gdbpy_enter) <m_error_type, m_error_value,
15688 m_error_traceback>: Remove.
15689 <m_error>: New member.
15690 (gdbpy_exception_to_string): Don't declare.
15691 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15692 * python/py-value.c (convert_value_from_python): Use
15694 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15695 gdbpy_exception_to_string.
15696 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15697 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15700 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15702 * linux-nat.c (delete_lwp_cleanup): Delete.
15703 (struct lwp_deleter): New struct.
15704 (lwp_info_up): New typedef.
15705 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15708 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15710 * linux-fork.c (class scoped_switch_fork_info): New class.
15711 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15713 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15715 * valops.c (find_overload_match): Remove use of null_cleanup, and
15716 calls to do_cleanups.
15718 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15720 * compile/compile-cplus-types.c
15721 (compile_cplus_instance::decl_name): Handle changes to
15723 * cp-support.c (cp_func_name): Update header comment, update
15725 * cp-support.h (cp_func_name): Update return type in declaration.
15726 * valops.c (find_overload_match): Move temp_func local to top
15727 level of function and change its type. Use temp_func to hold and
15728 delete temporary string obtained from cp_func_name.
15730 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15732 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15733 gdb::char_vector, remove cleanup, and update uses of `msg`.
15735 2019-01-03 Jim Wilson <jimw@sifive.com>
15737 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15739 2019-01-02 Tom Tromey <tom@tromey.com>
15741 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15742 (tdesc_parse_xml): Remove cleanups.
15743 * target-descriptions.h (make_cleanup_free_target_description):
15745 (target_desc_deleter): New struct.
15746 (target_desc_up): New typedef.
15747 * target-descriptions.c (target_desc_deleter::operator()): Rename
15748 from free_target_description.
15749 (make_cleanup_free_target_description): Remove.
15751 2019-01-02 Tom Tromey <tom@tromey.com>
15753 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15754 constructor, destructor.
15755 (linespec_parser): Remove typedef.
15756 (~linespec_parser): Rename from linespec_parser_delete.
15757 (linespec_lex_to_end, linespec_complete_label)
15758 (linespec_complete): Update.
15759 (decode_line_full): Remove cleanups.
15760 (decode_line_1): Update.
15762 2019-01-02 Tom Tromey <tom@tromey.com>
15764 * python/python-internal.h (inferior_to_inferior_object): Change
15766 * python/py-exitedevent.c (create_exited_event_object): Update.
15767 * python/py-inferior.c (inferior_to_inferior_object): Return
15769 (python_new_inferior, python_inferior_deleted)
15770 (thread_to_thread_object, delete_thread_object)
15771 (build_inferior_list, gdbpy_selected_inferior): Update.
15772 * python/py-infthread.c (create_thread_object): Update. Also fail
15773 if inferior_to_inferior_object fails.
15775 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15777 * inferior.h (class inferior) <displaced_step_state>: New field.
15778 * infrun.h (struct displaced_step_state): Move here from
15779 infrun.c. Initialize fields, add constructor.
15780 <inf>: Remove field.
15781 <reset>: New method.
15782 * infrun.c (struct displaced_step_inferior_state): Move to
15784 (displaced_step_inferior_states): Remove.
15785 (get_displaced_stepping_state): Adust.
15786 (displaced_step_in_progress_any_inferior): Adjust.
15787 (displaced_step_in_progress_thread): Adjust.
15788 (displaced_step_in_progress): Adjust.
15789 (add_displaced_stepping_state): Remove.
15790 (get_displaced_step_closure_by_addr): Adjust.
15791 (remove_displaced_stepping_state): Remove.
15792 (infrun_inferior_exit): Call displaced_step_state.reset.
15793 (use_displaced_stepping): Don't check for NULL.
15794 (displaced_step_prepare_throw): Call
15795 get_displaced_stepping_state.
15796 (displaced_step_fixup): Don't check for NULL.
15797 (prepare_for_detach): Don't check for NULL.
15799 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15801 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15802 in case of call that did not complete.
15804 2019-01-02 Andrey Utkin <autkin@undo.io>
15806 * symfile.c (find_separate_debug_file): Fix search of debug files for
15809 2019-01-02 Tom Tromey <tom@tromey.com>
15811 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15813 * python/py-frame.c (frapy_older): Remove cast.
15814 (frapy_newer): Likewise.
15815 * python/py-breakpoint.c (local_setattro): Remove cast.
15816 * python/py-arch.c (archpy_name): Remove local variable.
15817 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15819 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15821 * unittests/basic_string_view/element_access/char/empty.cc:
15822 Fix year range in copyright header.
15824 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15826 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15828 <operator==>: Update with for removed field.
15830 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15831 <isa_features>: ...this.
15832 <abi_features>: New field.
15833 (riscv_isa_flen): Update comment.
15834 (riscv_abi_xlen): New declaration.
15835 (riscv_abi_flen): New declaration.
15836 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15838 (riscv_abi_xlen): New function.
15839 (riscv_isa_flen): Update to get answer from isa_features.
15840 (riscv_abi_flen): New function.
15841 (riscv_has_fp_abi): Update to get answer from abi_features.
15842 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15844 (riscv_call_info) <xlen, flen>: Update comment.
15845 (riscv_call_arg_struct): Remove invalid assertions
15846 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15848 (riscv_gdbarch_init): Gather isa features and abi features
15849 separately, ensure both match on the gdbarch when reusing an old
15850 gdbarch. Relax an error check to allow 32-bit abi float to run on
15851 a target with 64-bit float hardware.
15853 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15855 * source.c (search_command_helper): Stop reverse search
15856 when line 1 has been searched.
15858 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15860 * record-full.c (record_full_base_target::close): Rewrite
15861 record_full_core_buf_list free logic.
15863 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15865 * break-catch-syscall.c (print_one_catch_syscall): xfree
15868 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15870 * top.c (print_gdb_version): Update Copyright year in version
15873 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15875 Update copyright year range in all GDB files.
15877 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15881 For older changes see ChangeLog-2018.
15887 version-control: never