1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * python/py-function.c (fnpy_init): Update.
4 * value.h (add_internal_function): Adjust declaration.
5 * value.c (function_destroyer): Remove.
6 (do_add_internal_function): Don't set destroyer or copy name.
7 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
9 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
10 (cmdpy_init): Set name_allocated.
11 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
13 (~cmd_list_element): Free "name" if needed.
15 2019-11-26 Tom Tromey <tom@tromey.com>
17 * value.h (add_internal_function): Add new overload. Move
18 documentation from value.h.
19 * value.c (do_add_internal_function): New function.
20 (add_internal_function): Use it. Add new overload.
21 (function_destroyer): Don't free doc.
22 * python/py-function.c (fnpy_init): Update.
24 2019-11-26 Tom Tromey <tom@tromey.com>
26 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
27 (cmdpy_init): Set "doc_allocated".
29 2019-11-26 Tom Tromey <tom@tromey.com>
31 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
32 name of worker thread.
33 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
35 * configure, config.in: Rebuild.
37 2019-11-26 Tom Tromey <tom@tromey.com>
39 * python/python.c (class gdbpy_gil): New.
40 (struct gdbpy_event): Add constructor, destructor, operator().
41 (gdbpy_post_event): Use run_on_main_thread.
42 (gdbpy_initialize_events): Remove.
43 (do_start_initialization): Update.
45 2019-11-26 Tom Tromey <tom@tromey.com>
48 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
49 commands. Call update_thread_pool_size.
50 (update_thread_pool_size, maintenance_set_worker_threads): New
52 (n_worker_threads): New global.
54 2019-11-26 Christian Biesinger <cbiesinger@google.com>
55 Tom Tromey <tom@tromey.com>
57 * minsyms.c (minimal_symbol_reader::install): Use
59 * gdbsupport/parallel-for.h: New file.
60 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
62 2019-11-26 Christian Biesinger <cbiesinger@google.com>
63 Tom Tromey <tom@tromey.com>
65 * gdbsupport/thread-pool.h: New file.
66 * gdbsupport/thread-pool.c: New file.
67 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
68 (HFILES_NO_SRCDIR): Add thread-pool.h.
70 2019-11-26 Tom Tromey <tom@tromey.com>
72 * event-top.h (thread_local_segv_handler): Declare.
73 * event-top.c (thread_local_segv_handler): New global.
74 (install_handle_sigsegv, handle_sigsegv): New functions.
75 (async_init_signals): Install SIGSEGV handler.
76 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
78 (report_failed_demangle): New function.
79 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
80 handler-setting code, instead use segv_handler. Run warning code
83 2019-11-26 Tom Tromey <tom@tromey.com>
85 * run-on-main-thread.c: New file.
86 * run-on-main-thread.h: New file.
87 * unittests/main-thread-selftests.c: New file.
88 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
89 main-thread-selftests.c.
90 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
91 (COMMON_SFILES): Add run-on-main-thread.c.
93 2019-11-26 Tom Tromey <tom@tromey.com>
95 * main.c (setup_alternate_signal_stack): Remove.
96 (captured_main_1): Use gdb::alternate_signal_stack.
97 * gdbsupport/alt-stack.h: New file.
99 2019-11-26 Tom Tromey <tom@tromey.com>
101 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
103 (save_original_signals_state, restore_original_signals_state): Use
105 * linux-nat.c (block_child_signals, restore_child_signals_mask)
106 (_initialize_linux_nat): Use gdb_sigmask.
107 * guile/guile.c (_initialize_guile): Use block_signals.
108 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
109 * gdbsupport/gdb-sigmask.h: New file.
110 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
111 * cp-support.c (gdb_demangle): Use gdb_sigmask.
112 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
114 * configure, config.in: Rebuild.
115 * gdbsupport/block-signals.h: New file.
117 2019-11-26 Tom Tromey <tom@tromey.com>
119 * acinclude.m4: Include ax_pthread.m4.
120 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
121 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
122 (CLIBS): Use PTHREAD_LIBS.
123 (aclocal_m4_deps): Add ax_pthread.m4.
124 * config.in, configure: Rebuild.
125 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
127 2019-11-26 Tom Tromey <tom@tromey.com>
129 * symtab.h (struct minimal_symbol) <name_set>: New member.
130 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
131 Don't call symbol_set_names.
132 (minimal_symbol_reader::install): Call symbol_set_names.
134 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
136 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
137 restore_active_ext_lang, as GIL is needed for (indirectly)
138 called PyOS_InterruptOccurred.
140 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
142 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
145 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
147 * remote-sim.c (simulator_command): Make static, remove
150 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
152 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
154 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
155 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
157 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
159 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
161 * unittests/basic_string_view/element_access/char/1.cc (test01):
164 * unittests/basic_string_view/element_access/char/empty.cc (main):
166 * unittests/basic_string_view/element_access/char/front_back.cc
169 * unittests/basic_string_view/inserters/char/2.cc (test05):
172 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
175 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
178 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
180 * unittests/basic_string_view/operations/compare/char/1.cc
183 * unittests/basic_string_view/operations/compare/char/13650.cc
185 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
188 * unittests/basic_string_view/operations/data/char/1.cc (test01):
191 * unittests/basic_string_view/operations/find/char/1.cc (test01):
194 * unittests/basic_string_view/operations/find/char/2.cc (test02):
197 * unittests/basic_string_view/operations/find/char/3.cc (test03):
200 * unittests/basic_string_view/operations/find/char/4.cc (main):
202 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
205 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
208 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
211 * unittests/basic_string_view/operations/substr/char/1.cc
214 * unittests/basic_string_view/operators/char/2.cc (main):
216 * unittests/optional/assignment/1.cc (test): Likewise.
217 * unittests/optional/assignment/2.cc (test): Likewise.
218 * unittests/optional/assignment/3.cc (test): Likewise.
219 * unittests/optional/assignment/4.cc (test): Likewise.
220 * unittests/optional/assignment/5.cc (test): Likewise.
221 * unittests/optional/assignment/6.cc (test): Likewise.
222 * unittests/optional/assignment/7.cc (test): Likewise.
223 * unittests/optional/cons/copy.cc (test): Likewise.
224 * unittests/optional/cons/default.cc (test): Likewise.
225 * unittests/optional/cons/move.cc (test): Likewise.
226 * unittests/optional/cons/value.cc (test): Likewise.
227 * unittests/optional/in_place.cc (test): Likewise.
228 * unittests/optional/observers/1.cc (test): Likewise.
229 * unittests/optional/observers/2.cc (test): Likewise.
231 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
233 * tui-win.h (tui_set_var_cmd): Remove.
234 * tui-win.c (tui_set_var_cmd): Make static.
236 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
238 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
239 rbreak_command_wrapper): Remove.
240 * symtab.c (rbreak_command_wrapper): Remove.
242 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
244 * inferior.h (info_terminal_command): Remove declaration.
245 * inflow.c (info_terminal_command): Make static.
247 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
249 * inferior.c (exit_inferior_silent): Remove.
251 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
253 * dictionary.c (dict_empty, mdict_empty): Remove.
254 * dictionary.c (mdict_empty): Remove.
256 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
258 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
259 (arc_insn_get_memory_offset): Likewise.
260 (arc_insn_dump): Likewise.
261 * cp-support.c (test_cp_symbol_name_matches): Likewise.
262 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
263 * dictionary.c (dict_iterator_next): Likewise.
264 (dict_iter_match_first): Likewise.
265 (dict_iter_match_next): Likewise.
266 * f-lang.c (evaluate_subexp_f): Likewise.
267 * hppa-tdep.c (hppa_read_pc): Likewise.
268 * i386-tdep.c (i386_floatformat_for_type): Likewise.
269 * parse.c (write_exp_elt_msym): Likewise.
270 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
271 * remote.c (remote_packet_size): Likewise.
272 (remote_notif_stop_parse): Likewise.
273 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
274 * s12z-tdep.c (s12z_disassemble_info): Likewise.
275 * source.c (prepare_path_for_appending): Likewise.
276 * sparc64-linux-tdep.c
277 (sparc64_linux_handle_segmentation_fault); Likewise.
278 * stack.c (frame_selection_by_function_completer): Likewise.
280 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
282 * completer.c (set_gdb_completion_word_break_characters):
285 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
287 * dwarf-index-write.c: Include dwarf-index-write.h.
288 * mi/mi-interp.c: Include mi/mi-interp.h.
290 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
292 * aarch32-tdep.c: Include aarch32-tdep.h.
293 * aarch32-tdep.h: Forward-declare struct target_desc.
295 2019-11-26 Christian Biesinger <cbiesinger@google.com>
297 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
299 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
300 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
302 2019-11-25 Tom de Vries <tdevries@suse.de>
304 * contrib/words.sh: Add -c option.
306 2019-11-25 Christian Biesinger <cbiesinger@google.com>
308 * solib.c (solib_find_1): Change int to bool.
309 (exec_file_find): Change int to bool.
310 (solib_find): Change int to bool.
311 (solib_read_symbols): Change int to bool.
312 (solib_used): Change int to bool.
313 (solib_add): Change int to bool.
314 (info_sharedlibrary_command): Change int to bool.
315 (solib_contains_address_p): Change int to bool.
316 (solib_keep_data_in_core): Change int to bool.
317 (in_solib_dynsym_resolve_code): Change int to bool.
318 (reload_shared_libraries_1): Change int to bool.
319 (gdb_sysroot_changed): Change int to bool.
320 * solib.h (solib_read_symbols): Change int to bool.
321 (solib_contains_address_p): Change int to bool.
322 (solib_keep_data_in_core): Change int to bool.
323 (in_solib_dynsym_resolve_code): Change int to bool.
324 (libpthread_name_p): Change int to bool.
326 2019-11-25 Luis Machado <luis.machado@linaro.org>
328 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
329 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
330 (remote_packet_max_chars): New static global.
331 (show_remote_packet_max_chars): New function.
332 (remote_target::putpkt_binary): Adjust to use new
333 remote_packet_max_chars option.
334 (remote_target::getpkt_or_notif_sane_1): Likewise.
335 (_initialize_remote): Register new remote-packet-max-chars option.
337 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
339 * m68k-linux-nat.c: Include gdbarch.h.
341 2019-11-24 Tom Tromey <tom@tromey.com>
343 * symfile.c (read_symbols): Update.
344 * psymtab.c (require_partial_symbols): Change type of "verbose" to
346 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
347 (psym_lookup_symbol, psym_find_last_source_symtab)
348 (psym_forget_cached_source_info, psym_print_stats)
349 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
350 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
351 (psym_map_matching_symbols, psym_expand_symtabs_matching)
352 (psym_find_compunit_symtab_by_address)
353 (maintenance_print_psymbols, maintenance_info_psymtabs)
354 (maintenance_check_psymtabs): Update.
355 * psymtab.h (require_partial_symbols): Change type of "verbose" to
358 2019-11-22 Tom Tromey <tom@tromey.com>
360 * observable.h: Update comments.
362 2019-11-22 Tom Tromey <tromey@adacore.com>
364 * ada-tasks.c (ada_task_is_alive): Make parameter const.
365 (print_ada_task_info): Don't try to fetch thread id if task is not
368 2019-11-22 Christian Biesinger <cbiesinger@google.com>
371 * ada-lang.c (sort_choices): Update.
372 (ada_print_symbol_signature): Update.
373 (resolve_subexp): Update.
374 (ada_parse_renaming): Update.
375 (ada_read_renaming_var_value): Update.
376 (lesseq_defined_than): Update.
377 (remove_extra_symbols): Update.
378 (remove_irrelevant_renamings): Update.
379 (ada_add_block_symbols): Update.
380 (ada_collect_symbol_completion_matches): Update.
381 (ada_is_renaming_symbol): Update.
382 (aggregate_assign_from_choices): Update.
383 (ada_evaluate_subexp): Update.
384 (ada_has_this_exception_support): Update.
385 (ada_is_non_standard_exception_sym): Update.
386 (ada_add_exceptions_from_frame): Update.
387 (ada_add_global_exceptions): Update.
388 (ada_print_subexp): Update.
389 * ax-gdb.c (gen_var_ref): Update.
390 (gen_maybe_namespace_elt): Update.
391 (gen_expr_for_cast): Update.
394 * blockframe.c (find_pc_partial_function): Update.
395 * breakpoint.c (print_breakpoint_location): Update.
396 (update_static_tracepoint): Update.
397 * btrace.c (ftrace_print_function_name): Update.
398 (ftrace_function_switched): Update.
399 * buildsym.c (find_symbol_in_list): Update.
401 * c-typeprint.c (c_print_typedef): Update.
402 (c_type_print_template_args): Update.
403 * cli/cli-cmds.c (edit_command): Update.
404 (list_command): Update.
405 (print_sal_location): Update.
406 * coffread.c (patch_opaque_types): Update.
407 (process_coff_symbol): Update.
408 (coff_read_enum_type): Update.
409 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
410 (convert_one_symbol): Update.
411 (hash_symname): Update.
412 (eq_symname): Update.
413 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
414 * compile/compile-cplus-types.c (debug_print_scope): Update.
415 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
416 * compile/compile-object-load.c (get_out_value_type): Update.
417 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
418 (search_symbol_list): Update.
419 (cp_lookup_symbol_imports_or_template): Update.
420 * cp-support.c (overload_list_add_symbol): Update.
421 * ctfread.c (psymtab_to_symtab): Update.
422 * dbxread.c (cp_set_block_scope): Update.
423 * dictionary.c (iter_match_first_hashed): Update.
424 (iter_match_next_hashed): Update.
425 (insert_symbol_hashed): Update.
426 (iter_match_next_linear): Update.
427 * dictionary.h: Update.
428 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
429 (locexpr_describe_location_piece): Update.
430 (locexpr_describe_location_1): Update.
431 (locexpr_generate_c_location): Update.
432 (loclist_describe_location): Update.
433 (loclist_generate_c_location): Update.
434 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
435 (read_func_scope): Update.
436 (process_enumeration_scope): Update.
437 (new_symbol): Update.
438 (dwarf2_const_value): Update.
439 (dwarf2_symbol_mark_computed): Update.
440 * eval.c (evaluate_funcall): Update.
441 (evaluate_subexp_standard): Update.
442 * expprint.c (print_subexp_standard): Update.
443 (dump_subexp_body_standard): Update.
444 * f-valprint.c (info_common_command_for_block): Update.
445 * findvar.c (get_hosting_frame): Update.
446 (default_read_var_value): Update.
447 * go-lang.c (go_symbol_package_name): Update.
448 * guile/scm-block.c (bkscm_print_block_smob): Update.
449 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
450 (gdbscm_symbol_name): Update.
451 (gdbscm_symbol_linkage_name): Update.
452 (gdbscm_symbol_print_name): Update.
453 * infcall.c (get_function_name): Update.
454 * infcmd.c (jump_command): Update.
455 (finish_command): Update.
456 * infrun.c (insert_exception_resume_breakpoint): Update.
457 * linespec.c (canonicalize_linespec): Update.
458 (create_sals_line_offset): Update.
459 (convert_linespec_to_sals): Update.
460 (complete_label): Update.
461 (find_label_symbols_in_block): Update.
462 * m2-typeprint.c (m2_print_typedef): Update.
463 * mdebugread.c (mdebug_reg_to_regnum): Update.
464 (parse_symbol): Update.
465 (mylookup_symbol): Update.
466 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
467 (list_args_or_locals): Update.
468 * objc-lang.c (compare_selectors): Update.
469 (info_selectors_command): Update.
470 (compare_classes): Update.
471 (info_classes_command): Update.
473 * p-typeprint.c (pascal_print_typedef): Update.
474 * printcmd.c (build_address_symbolic): Update.
475 (info_address_command): Update.
476 (print_variable_and_value): Update.
477 * python/py-framefilter.c (extract_sym): Update.
478 (py_print_single_arg): Update.
479 * python/py-symbol.c (sympy_str): Update.
480 (sympy_get_name): Update.
481 (sympy_get_linkage_name): Update.
482 * python/python.c (gdbpy_rbreak): Update.
483 * record-btrace.c (btrace_get_bfun_name): Update.
484 (btrace_call_history): Update.
485 * rust-lang.c (rust_print_typedef): Update.
486 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
487 * stabsread.c (stab_reg_to_regnum): Update.
488 (define_symbol): Update.
489 (read_enum_type): Update.
490 (common_block_end): Update.
491 (cleanup_undefined_types_1): Update.
492 (scan_file_globals): Update.
493 * stack.c (print_frame_arg): Update.
494 (print_frame_args): Update.
495 (find_frame_funname): Update.
496 (info_frame_command_core): Update.
497 (iterate_over_block_locals): Update.
498 (print_block_frame_labels): Update.
499 (do_print_variable_and_value): Update.
500 (iterate_over_block_arg_vars): Update.
501 (return_command): Update.
502 * symmisc.c (dump_symtab_1): Update.
503 (print_symbol): Update.
504 * symtab.c (eq_symbol_entry): Update.
505 (symbol_cache_dump): Update.
506 (lookup_language_this): Update.
507 (find_pc_sect_line): Update.
508 (skip_prologue_sal): Update.
509 (symbol_search::compare_search_syms): Update.
510 (treg_matches_sym_type_name): Update.
511 (search_symbols): Update.
512 (print_symbol_info): Update.
513 (rbreak_command): Update.
514 (completion_list_add_symbol): Update.
515 (find_gnu_ifunc): Update.
516 (get_symbol_address): Update.
517 (search_module_symbols): Update.
518 (info_module_subcommand): Update.
519 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
520 (SYMBOL_LINKAGE_NAME): Remove.
521 (SYMBOL_DEMANGLED_NAME): Remove.
522 (SYMBOL_PRINT_NAME): Remove.
523 (SYMBOL_SEARCH_NAME): Remove.
524 * tracepoint.c (set_traceframe_context): Update.
525 (validate_actionline): Update.
526 (collection_list::collect_symbol): Update.
527 (encode_actions_1): Update.
528 (info_scope_command): Update.
529 (print_one_static_tracepoint_marker): Update.
530 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
531 * valops.c (address_of_variable): Update.
532 (find_overload_match): Update.
533 (find_oload_champ): Update.
535 2019-11-22 Christian Biesinger <cbiesinger@google.com>
537 * ada-lang.c (ada_lookup_simple_minsym): Update.
538 (ada_collect_symbol_completion_matches): Update.
539 * ada-tasks.c (read_atcb): Update.
540 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
541 (amd64_windows_skip_trampoline_code): Update.
542 * arm-tdep.c (skip_prologue_function): Update.
543 (arm_skip_stack_protector): Update.
544 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
545 (arm_wince_skip_main_prologue): Update.
546 * ax-gdb.c (gen_expr): Update.
547 * block.c (call_site_for_pc): Update.
548 * blockframe.c (find_pc_partial_function): Update.
549 * breakpoint.c (set_breakpoint_location_function): Update.
550 * btrace.c (ftrace_print_function_name): Update.
551 (ftrace_function_switched): Update.
552 * c-valprint.c (print_unpacked_pointer): Update.
553 * coffread.c (coff_symfile_read): Update.
554 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
555 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
556 * dwarf-index-write.c (write_psymbols): Update.
557 * dwarf2loc.c (call_site_to_target_addr): Update.
558 (func_verify_no_selftailcall): Update.
559 (tailcall_dump): Update.
560 (call_site_find_chain_1): Update.
561 (dwarf_expr_reg_to_entry_parameter): Update.
562 * elfread.c (elf_gnu_ifunc_record_cache): Update.
563 * eval.c (evaluate_funcall): Update.
564 (evaluate_subexp_standard): Update.
565 (evaluate_subexp_for_sizeof): Update.
566 * expprint.c (print_subexp_standard): Update.
567 (dump_subexp_body_standard): Update.
568 * frame.c (get_prev_frame_always_1): Update.
569 * frv-tdep.c (frv_skip_main_prologue): Update.
570 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
571 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
572 (gnuv3_get_typename_from_type_info): Update.
573 (gnuv3_skip_trampoline): Update.
574 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
575 * i386-tdep.c (i386_skip_main_prologue): Update.
576 (i386_pe_skip_trampoline_code): Update.
577 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
578 * infcall.c (get_function_name): Update.
579 * linespec.c (minsym_found): Update.
580 * linux-fork.c (info_checkpoints_command): Update.
581 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
582 (m32c_m16c_pointer_to_address): Update.
583 * maint.c (maintenance_translate_address): Update.
584 * minsyms.c (add_minsym_to_hash_table): Update.
585 (add_minsym_to_demangled_hash_table): Update.
586 (lookup_minimal_symbol_mangled): Update.
587 (lookup_minimal_symbol_demangled): Update.
588 (lookup_minimal_symbol_linkage): Update.
589 (lookup_minimal_symbol_text): Update.
590 (lookup_minimal_symbol_by_pc_name): Update.
591 (minimal_symbol_is_less_than): Update.
592 (compact_minimal_symbols): Update.
593 (build_minimal_symbol_hash_tables): Update.
594 (find_solib_trampoline_target): Update.
595 * mips-tdep.c (mips_stub_frame_sniffer): Update.
596 (mips_skip_pic_trampoline_code): Update.
597 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
598 * objc-lang.c (info_selectors_command): Update.
599 (info_classes_command): Update.
600 (find_methods): Update.
602 * p-valprint.c (pascal_val_print): Update.
603 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
605 * printcmd.c (build_address_symbolic): Update.
606 (info_symbol_command): Update.
607 * psymtab.c (psymbol_name_matches): Update.
608 (match_partial_symbol): Update.
609 (lookup_partial_symbol): Update.
610 (print_partial_symbols): Update.
611 (sort_pst_symbols): Update.
612 (maintenance_check_psymtabs): Update.
613 * python/py-framefilter.c (py_print_frame): Update.
614 * python/python.c (gdbpy_rbreak): Update.
615 * record-btrace.c (btrace_get_bfun_name): Update.
616 (btrace_call_history): Update.
617 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
618 (rs6000_skip_trampoline_code): Update.
619 * sol-thread.c (info_cb): Update.
620 * stabsread.c (scan_file_globals): Update.
621 * stack.c (find_frame_funname): Update.
622 (info_frame_command_core): Update.
623 * symmisc.c (dump_msymbols): Update.
624 * symtab.c (symbol_natural_name): Rename to..,
625 (general_symbol_info::natural_name): ...this.
626 (symbol_demangled_name): Rename to...
627 (general_symbol_info::demangled_name): ...this.
628 (symbol_search_name): Rename to...
629 (general_symbol_info::search_name): ...this.
630 (symbol_matches_search_name): Update.
631 (find_pc_sect_line): Update.
632 (skip_prologue_sal): Update.
633 (search_symbols): Update.
634 (print_msymbol_info): Update.
635 (rbreak_command): Update.
636 (completion_list_add_msymbol): Update.
637 (completion_list_objc_symbol): Update.
638 (get_msymbol_address): Update.
639 * symtab.h (struct general_symbol_info): Add member functions
640 natural_name (), linkage_name (), print_name (), demangled_name (),
642 (SYMBOL_NATURAL_NAME): Update.
643 (symbol_natural_name): Move to a member function on general_symbol_info.
644 (SYMBOL_DEMANGLED_NAME): Update.
645 (symbol_demangled_name): Move to a member function on
647 (SYMBOL_SEARCH_NAME): Update.
648 (symbol_search_name): Move to a member function on general_symbol_info.
649 (MSYMBOL_NATURAL_NAME): Remove.
650 (MSYMBOL_LINKAGE_NAME): Remove.
651 (MSYMBOL_PRINT_NAME): Remove.
652 (MSYMBOL_DEMANGLED_NAME): Remove.
653 (MSYMBOL_SEARCH_NAME): Remove.
654 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
656 2019-11-22 Christian Biesinger <cbiesinger@google.com>
658 * symtab.c (create_demangled_names_hash): Use per_bfd->
659 minimal_symbol_count for computing the initial size, if greater
660 than our default size.
662 2019-11-22 Tom de Vries <tdevries@suse.de>
664 * contrib/words.sh: Improve words extraction.
666 2019-11-22 Tom de Vries <tdevries@suse.de>
668 * contrib/words.sh: Combine sed invocations.
670 2019-11-21 Christian Biesinger <cbiesinger@google.com>
672 * Makefile.in: Update.
673 * demangle.c: Rename to...
674 * gdb-demangle.c: ..this.
675 (is_cplus_marker): Change return type to bool.
676 (_initialize_demangler): Rename to...
677 (_initialize_gdb_demangle): ...this.
678 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
679 * symtab.h (demangle): Remove declaration; instead include
682 2019-11-21 Tom Tromey <tromey@adacore.com>
684 * gdbsupport/format.c (format_pieces): Parse %I64d.
685 * unittests/format_pieces-selftests.c (test_windows_formats): New
687 (run_tests): Call it.
689 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
691 Byte reverse display of variables with DW_END_big, DW_END_little
692 (DW_AT_endianity) dwarf attributes if different than the native
694 * ada-lang.c (ada_value_binop):
695 Use type_byte_order instead of gdbarch_byte_order.
696 * ada-valprint.c (printstr):
697 (ada_val_print_string):
698 * ada-lang.c (value_pointer):
700 Use type_byte_order instead of gdbarch_byte_order.
701 * c-lang.c (c_get_string):
702 Use type_byte_order instead of gdbarch_byte_order.
703 * c-valprint.c (c_val_print_array):
704 Use type_byte_order instead of gdbarch_byte_order.
705 * cp-valprint.c (cp_print_class_member):
706 Use type_byte_order instead of gdbarch_byte_order.
707 * dwarf2loc.c (rw_pieced_value):
708 Use type_byte_order instead of gdbarch_byte_order.
709 * dwarf2read.c (read_base_type): Handle DW_END_big,
711 * f-lang.c (f_get_encoding):
712 Use type_byte_order instead of gdbarch_byte_order.
713 * findvar.c (default_read_var_value):
714 Use type_byte_order instead of gdbarch_byte_order.
715 * gdbtypes.c (check_types_equal):
716 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
717 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
718 and TYPE_ENDIANITY_LITTLE if set.
719 (type_byte_order): new function.
720 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
721 (struct main_type) <flag_endianity_not_default>:
723 (type_byte_order): New function.
724 * infcmd.c (default_print_one_register_info):
725 Use type_byte_order instead of gdbarch_byte_order.
726 * p-lang.c (pascal_printstr):
727 Use type_byte_order instead of gdbarch_byte_order.
728 * p-valprint.c (pascal_val_print):
729 Use type_byte_order instead of gdbarch_byte_order.
730 * printcmd.c (print_scalar_formatted):
731 Use type_byte_order instead of gdbarch_byte_order.
732 * solib-darwin.c (darwin_current_sos):
733 Use type_byte_order instead of gdbarch_byte_order.
734 * solib-svr4.c (solib_svr4_r_ldsomap):
735 Use type_byte_order instead of gdbarch_byte_order.
736 * stap-probe.c (stap_modify_semaphore):
737 Use type_byte_order instead of gdbarch_byte_order.
738 * target-float.c (target_float_same_format_p):
739 Use type_byte_order instead of gdbarch_byte_order.
740 * valarith.c (scalar_binop):
742 Use type_byte_order instead of gdbarch_byte_order.
743 * valops.c (value_cast):
744 Use type_byte_order instead of gdbarch_byte_order.
745 * valprint.c (generic_emit_char):
748 Use type_byte_order instead of gdbarch_byte_order.
749 * value.c (unpack_long):
750 (unpack_bits_as_long):
751 (unpack_value_bitfield):
754 (pack_unsigned_long):
755 Use type_byte_order instead of gdbarch_byte_order.
756 * findvar.c (unsigned_pointer_to_address):
757 (signed_pointer_to_address):
758 (unsigned_address_to_pointer):
759 (address_to_signed_pointer):
760 (default_read_var_value):
761 (default_value_from_register):
762 Use type_byte_order instead of gdbarch_byte_order.
763 * gnu-v3-abi.c (gnuv3_make_method_ptr):
764 Use type_byte_order instead of gdbarch_byte_order.
765 * riscv-tdep.c (riscv_print_one_register_info):
766 Use type_byte_order instead of gdbarch_byte_order.
768 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
770 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
771 (current_ui_gdb_stdin_ptr): Likewise.
772 (current_ui_gdb_stderr_ptr): Likewise.
773 (current_ui_gdb_stdlog_ptr): Likewise.
774 (current_ui_current_uiout_ptr): Likewise.
775 (gen_ret_current_ui_field_ptr): Remove.
777 2019-11-21 Tom de Vries <tdevries@suse.de>
780 * cli/cli-script.c (execute_control_command): Only switch to
781 INTERP_CONSOLE's ui_out when INTERP_MI is active.
783 2019-11-19 Tom Tromey <tom@tromey.com>
785 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
786 Now static. Change type of "name".
787 (tui_set_win_height_command): Don't copy "arg".
788 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
789 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
791 2019-11-19 Ali Tamur <tamur@google.com>
793 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
794 "if (attr != nullptr)".
795 (dwarf2_find_base_address): Likewise.
796 (dwarf2_build_include_psymtabs): Likewise.
797 (read_cutu_die_from_dwo): Likewise.
798 (read_func_scope): Likewise.
799 (read_call_site_scope): Likewise.
800 (dwarf2_get_pc_bounds): Likewise.
801 (dwarf2_record_block_ranges): Likewise.
802 (dwarf2_add_field): Likewise.
803 (dwarf2_add_member_fn): Likewise.
804 (read_structure_type): Likewise.
805 (read_enumeration_type): Likewise.
806 (read_array_type): Likewise.
807 (read_array_order): Likewise.
808 (read_set_type): Likewise.
809 (read_common_block): Likewise.
810 (read_tag_reference_type): Likewise.
811 (read_tag_string_type): Likewise.
812 (read_subroutine_type): Likewise.
813 (read_base_type): Likewise.
814 (read_subrange_type): Likewise.
815 (new_symbol): Likewise.
816 (prepare_one_comp_unit): Likewise.
818 2019-11-19 Tom Tromey <tromey@adacore.com>
820 * windows-nat.c (windows_nat_target::attach): Include GetLastError
821 result in error when DebugActiveProcess fails.
823 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
824 Pedro Alves <palves@redhat.com>
826 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
827 * target.c (target_stack::push): Call 'unpush' if there's a
828 target on top of the stack.
830 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
832 * python/py-block.c (blpy_dealloc): Call tp_free.
833 (blpy_block_syms_dealloc): Likewise.
834 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
835 * python/py-inferior.c (infpy_dealloc): Likewise.
836 * python/py-lazy-string.c (stpy_dealloc): Likewise.
837 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
838 * python/py-symbol.c (sympy_dealloc): Likewise.
839 * python/py-symtab.c (stpy_dealloc): Likewise.
840 * python/py-type.c (typy_iterator_dealloc): Likewise.
842 2019-11-18 Christian Biesinger <cbiesinger@google.com>
844 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
845 constructor instead of using a class initializer.
847 2019-11-15 Christian Biesinger <cbiesinger@google.com>
849 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
850 * configure: Regenerate.
851 * configure.ac: Don't source common.host.
852 * gdbsupport/common.host: Remove.
853 * gdbsupport/mingw-strerror.c: Remove.
854 * gdbsupport/posix-strerror.c: Rename to...
855 * gdbsupport/safe-strerror.c: ...this.
857 2019-11-15 Christian Biesinger <cbiesinger@google.com>
859 * maint.c (scoped_command_stats::print_time): Use localtime_r
860 instead of localtime (provided through gnulib if necessary).
861 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
864 2019-11-15 Christian Biesinger <cbiesinger@google.com>
866 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
867 avoid compile errors.
869 2019-11-15 Christian Biesinger <cbiesinger@google.com>
871 * config.in: Regenerate.
872 * configure: Regenerate.
873 * gdbsupport/common.m4: No longer check for strerror_r.
874 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
875 POSIX version of strerror_r, now that gnulib provides it if
878 2019-11-14 Christian Biesinger <cbiesinger@google.com>
880 * README (`configure' options): Update.
882 2019-11-14 Tom Tromey <tromey@adacore.com>
884 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
885 expected type for the RHS if the LHS is a convenience variable.
887 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
889 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
890 Provide explicit default and copy constructor.
892 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
894 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
895 only call Py_INCREF (newbp) in the bppy_pending_object case.
897 2019-11-13 Tom Tromey <tromey@adacore.com>
900 * psympriv.h (partial_symbol): Remove static assert.
901 * symtab.h (general_symbol_info, symbol): Remove static assert.
903 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
905 * gdbsupport/format.c (format_pieces::format_pieces): Support
906 printf 'z' size modifier.
907 * gdbsupport/format.h (enum argclass): Add size_t_arg.
908 * printcmd.c (ui_printf): Handle size_t_arg.
909 * ui-out.c (ui_out::vmessage): Likewise.
910 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
912 (run_tests): Call test_format_int_sizes.
914 2019-11-12 Christian Biesinger <cbiesinger@google.com>
916 * ada-exp.y (write_ambiguous_var): Update.
917 * buildsym.c (add_symbol_to_list): Update.
918 * dwarf2read.c (read_variable): Update.
919 (new_symbol): Update.
920 * jit.c (finalize_symtab): Update.
921 * language.c (language_alloc_type_symbol): Update.
922 * symtab.c (fixup_symbol_section): Update.
923 (initialize_objfile_symbol_1): Move code to...
924 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
925 (allocate_symbol): Update.
926 (allocate_template_symbol): Update.
927 (get_symbol_address): Update.
928 * symtab.h (struct symbol): Inherit from general_symbol_info instead
929 of having as a field, and add a constructor.
930 (SYMBOL_VALUE): Update.
931 (SYMBOL_VALUE_ADDRESS): Update.
932 (SET_SYMBOL_VALUE_ADDRESS): Update.
933 (SYMBOL_VALUE_BYTES): Update.
934 (SYMBOL_VALUE_COMMON_BLOCK): Update.
935 (SYMBOL_BLOCK_VALUE): Update.
936 (SYMBOL_VALUE_CHAIN): Update.
937 (SYMBOL_LANGUAGE): Update.
938 (SYMBOL_SECTION): Update.
939 (SYMBOL_OBJ_SECTION): Update.
940 (SYMBOL_SET_LANGUAGE): Update.
941 (SYMBOL_SET_LINKAGE_NAME): Update.
942 (SYMBOL_SET_NAMES): Update.
943 (SYMBOL_NATURAL_NAME): Update.
944 (SYMBOL_LINKAGE_NAME): Update.
945 (SYMBOL_DEMANGLED_NAME): Update.
946 (SYMBOL_SEARCH_NAME): Update.
947 (SYMBOL_MATCHES_SEARCH_NAME): Update.
948 (struct symbol): Update.
949 (struct template_symbol): Update.
950 (struct rust_vtable_symbol): Update.
951 * xcoffread.c (SYMBOL_DUP): Update.
953 2019-11-12 Tom Tromey <tom@tromey.com>
955 * tui/tui-layout.c (show_layout): Set current_layout.
956 (show_source_disasm_command, show_data)
957 (show_source_or_disasm_and_command): Don't set current_layout.
959 2019-11-12 Tom Tromey <tom@tromey.com>
961 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
963 2019-11-12 Tom Tromey <tom@tromey.com>
965 * tui/tui-win.c (resize_message): New global.
966 (show_tui_resize_message): New function.
967 (tui_async_resize_screen): Print message if requested.
968 (_initialize_tui_win): Add tui-resize-message setting.
969 * NEWS: Add entry for new commands.
971 2019-11-11 Tom Tromey <tom@tromey.com>
973 * tui/tui.c (tui_initialize_readline): Add new bindable readline
976 2019-11-11 Christian Biesinger <cbiesinger@google.com>
978 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
980 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
982 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
984 * python/python-internal.h (gdbpy_lookup_static_symbols):
985 Declare new function.
986 * python/python.c (python_GdbMethods): Add
987 gdb.lookup_static_symbols method.
988 * NEWS: Mention gdb.lookup_static_symbols.
990 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
992 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
993 static block of current object file first. Also fix typo in
996 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
998 * stack.c (set_last_displayed_sal): Delete.
999 (last_displayed_sal_valid): Delete.
1000 (last_displayed_pspace): Delete.
1001 (last_displayed_addr): Delete.
1002 (last_displayed_symtab): Delete.
1003 (last_displayed_line): Delete.
1004 (class last_displayed_symtab_info_type): New.
1005 (last_displayed_symtab_info): New static global variable.
1006 (print_frame_info): Call methods on last_displayed_symtab_info.
1007 (clear_last_displayed_sal): Update header comment, and make use of
1008 last_displayed_symtab_info.
1009 (last_displayed_sal_is_valid): Likewise.
1010 (get_last_displayed_pspace): Likewise.
1011 (get_last_displayed_addr): Likewise.
1012 (get_last_displayed_symtab): Likewise.
1013 (get_last_displayed_line): Likewise.
1014 (get_last_displayed_sal): Likewise.
1015 * stack.h (clear_last_displayed_sal): Update header comment.
1016 (last_displayed_sal_is_valid): Likewise.
1017 (get_last_displayed_pspace): Likewise.
1018 (get_last_displayed_addr): Likewise.
1019 (get_last_displayed_symtab): Likewise.
1020 (get_last_displayed_line): Likewise.
1021 (get_last_displayed_sal): Likewise.
1023 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1025 * stack.c (frame_show_address): Convert return type to bool.
1026 * stack.h (frame_show_address): Likewise, and update header
1029 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1031 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1032 * unittests/vec-utils-selftests.c: New file.
1033 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1035 2019-11-10 Tom Tromey <tom@tromey.com>
1037 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1038 (tui_highlight_win): Likewise.
1039 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1040 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1041 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1042 Don't set can_highlight.
1044 2019-11-10 Tom Tromey <tom@tromey.com>
1046 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1047 Remove unused declaration.
1049 2019-11-08 Tom Tromey <tromey@adacore.com>
1051 * top.c (read_command_file): Update.
1052 (command_line_input): Make return type const.
1053 * python/py-gdb-readline.c: Update.
1054 * linespec.c (decode_line_2): Update.
1055 * defs.h (command_line_input): Make return type const.
1056 * cli/cli-script.c (read_next_line): Make return type const.
1057 * ada-lang.c (get_selections): Update.
1059 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1061 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1062 * mi/mi-main.c (output_cores): Likewise.
1063 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1064 (linux_xfer_osdata_modules): Likewise.
1065 * remote.c (register_remote_support_xml): Likewise.
1066 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1067 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1069 2019-11-06 Tom Tromey <tom@tromey.com>
1071 * tui/tui-interp.c: Don't include readline.h.
1072 * tui/tui-hooks.c: Don't include readline.h.
1073 * symmisc.c: Include tilde.h, not readline.h.
1074 * symfile.c: Include tilde.h, not readline.h.
1075 * source.c: Include tilde.h, not readline.h.
1076 * solib.c: Include tilde.h, not readline.h.
1077 * psymtab.c: Include tilde.h, not readline.h.
1078 * exec.c: Include tilde.h, not readline.h.
1079 * corelow.c: Include tilde.h, not readline.h.
1080 * cli/cli-dump.c: Include tilde.h, not readline.h.
1081 * cli/cli-cmds.c: Don't include readline.h.
1083 2019-11-05 Tom Tromey <tom@tromey.com>
1085 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1086 (tui_disassemble): Set addr_size.
1087 (tui_disasm_window::set_contents): Use addr_size.
1089 2019-11-05 Tom Tromey <tom@tromey.com>
1091 * rust-lang.c (rust_language_defn): Update.
1092 * python/py-value.c (valpy_string): Call c_get_string.
1093 * p-lang.c (pascal_language_defn): Update.
1094 * opencl-lang.c (opencl_language_defn): Update.
1095 * objc-lang.c (objc_language_defn): Update.
1096 * m2-lang.c (m2_language_defn): Update.
1097 * language.c (unknown_language_defn, auto_language_defn): Update.
1098 (default_get_string): Remove.
1099 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1100 * go-lang.c (go_language_defn): Update.
1101 * f-lang.c (f_language_defn): Update.
1102 * d-lang.c (d_language_defn): Update.
1103 * c-lang.c (c_language_defn, cplus_language_defn)
1104 (asm_language_defn, minimal_language_defn): Update.
1105 * ada-lang.c (ada_language_defn): Update.
1106 * language.h (struct language_defn) <la_get_string>: Remove.
1107 (LA_GET_STRING): Remove.
1108 (default_get_string): Don't declare.
1110 2019-11-05 Tom Tromey <tom@tromey.com>
1112 * tui/tui-source.h (struct tui_source_window): Inline
1113 constructor. Remove destructor.
1114 <style_changed, m_observable>: Move to superclass.
1115 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1116 (struct tui_source_window_base): Move private members to end.
1117 <style_changed, m_observable>: Move from tui_source_window.
1118 * tui/tui-winsource.c (tui_copy_source_line): Move from
1119 tui-source.c. Rename from copy_source_line. Add special handling
1120 for negative line number.
1121 (tui_source_window_base::style_changed): Move from
1123 (tui_source_window_base): Register observer.
1124 (~tui_source_window_base): New.
1125 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1127 (tui_source_window::set_contents): Use tui_copy_source_line.
1128 (tui_source_window::tui_source_window): Move to tui-source.h.
1129 (tui_source_window::~tui_source_window): Remove.
1130 (tui_source_window::style_changed): Move to superclass.
1131 * tui/tui-disasm.c (tui_disassemble): Create string file with
1132 styling, when possible. Add "addr_size" parameter.
1133 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1134 Don't compute maximum size.
1135 (len_without_escapes): New function
1137 2019-11-05 Tom Tromey <tom@tromey.com>
1139 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1141 * tui/tui-winsource.c (tui_show_source_line): Update.
1142 * tui/tui-source.c (tui_source_window::set_contents): Update.
1143 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1145 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1147 * symtab.h (gdb_static_assert): Put && operator at the beginning
1148 of the line instead of the end.
1150 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1152 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1153 and sizeof (symbol).
1154 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1156 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1158 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1159 * configure.host: Mark *-*-solaris2.10* obsolete.
1160 * configure.tgt: Mark Solaris < 11 obsolete.
1161 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1162 Update target triplet.
1164 2019-11-01 Tom Tromey <tromey@adacore.com>
1166 * utils.c (print_sys_errmsg): Simplify.
1168 2019-11-01 Tom Tromey <tromey@adacore.com>
1170 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1172 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1174 * configure: Regenerate.
1175 * configure.ac: Remove check for strerror_r.
1176 * gdbsupport/common.m4: Check for strerror_r.
1178 2019-11-01 Luis Machado <luis.machado@linaro.org>
1182 * arm-tdep.c (arm_per_objfile): Rename to ...
1183 (arm_per_bfd): ... this.
1184 (arm_objfile_data_key): Rename to ...
1185 (arm_bfd_data_key): ... this.
1186 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1188 (arm_record_special_symbol): Likewise.
1190 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1192 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1194 * c-typeprint.c (c_print_typedef): Likewise.
1195 * f-typeprint.c (f_print_typedef): Likewise.
1196 * m2-typeprint.c (m2_print_typedef): Likewise.
1197 * p-typeprint.c (pascal_print_typedef): Likewise.
1198 * rust-lang.c (rust_print_typedef): Likewise.
1199 * symtab.c (print_symbol_info): Print a newline after calling
1202 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1204 * symtab.c (info_module_cmdlist): New variable.
1205 (info_module_command): New function.
1206 (search_module_symbols): New function.
1207 (info_module_subcommand): New function.
1208 (struct info_modules_var_func_options): New struct.
1209 (info_modules_var_func_options_defs): New variable.
1210 (make_info_modules_var_func_options_def_group): New function.
1211 (info_module_functions_command): New function.
1212 (info_module_variables_command): New function.
1213 (info_module_var_func_command_completer): New function.
1214 (_initialize_symtab): Register new 'info module functions' and
1215 'info module variables' commands.
1216 * symtab.h (typedef symbol_search_in_module): New typedef.
1217 (search_module_symbols): Declare new function.
1218 * NEWS: Mention new commands.
1220 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1222 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1223 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1224 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1226 (scan_partial_symbols): Only create partial module symbols for non
1228 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1230 * symtab.c (search_domain_name): Likewise.
1231 (search_symbols): Likewise.
1232 (print_symbol_info): Likewise.
1233 (symtab_symbol_info): Likewise.
1234 (info_modules_command): New function.
1235 (_initialize_symtab): Register 'info modules' command.
1236 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1237 * NEWS: Mention new 'info modules' command.
1239 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1241 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1242 and $_gdb_maint_setting_str.
1244 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1246 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1247 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1248 (str_value_from_setting, gdb_setting_str_internal_fn)
1249 (gdb_maint_setting_str_internal_fn): New functions.
1250 (_initialize_cli_cmds): Define the new convenience functions.
1251 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1252 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1254 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1256 * agent.c (set_can_use_agent): When the setting is turned on,
1257 look up agent symbols if we don't have them yet.
1258 (agent_new_objfile): Don't look up agent symbols when the agent
1261 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1263 * config.in: Regenerate.
1265 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1267 * configure: Regenerate.
1268 * configure.ac: Check for strerror_r.
1269 * gdbsupport/common-utils.h (safe_strerror): Change return value
1270 to const char * and document that this function is now threadsafe.
1271 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1272 thread_local and call strerror_r, if available.
1273 * utils.c (perror_string): Update.
1274 (print_sys_errmsg): Update.
1276 2019-10-31 Luis Machado <luis.machado@linaro.org>
1278 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1280 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1281 objfile to fetch per-bfd data.
1282 (arm_find_exidx_entry): Likewise.
1284 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1286 * gdbsupport/agent.c (debug_agent): Change type to bool.
1287 (use_agent): Likewise.
1288 (all_agent_symbols_look_up): Likewise.
1289 (agent_loaded_p): Change return value to bool.
1290 (agent_look_up_symbols): Update.
1291 (agent_capability_check): Change return value to bool.
1292 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1293 (debug_agent): Change type to bool.
1294 (use_agent): Likewise.
1295 (agent_capability_check): Change return value to bool.
1297 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1299 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1300 (build_minimal_symbol_hash_tables): Code to clear the table moved
1301 to clear_minimal_symbol_hash_tables.
1302 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1305 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1307 * infcmd.c: Remove includes.
1308 * infrun.c: Remove includes.
1310 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1312 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1313 (grow_vect): Remove declaration.
1314 (ada_type_of_array): Remove declaration.
1315 (ada_update_initial_language): Remove declaration.
1316 (ada_fold_name): Remove declaration.
1317 (ada_fill_in_ada_prototype): Remove declaration.
1318 (user_select_syms): Remove declaration.
1319 (get_selections): Remove declaration.
1320 (ada_tag_type): Remove declaration.
1321 (ada_value_tag): Remove declaration.
1322 (ada_is_others_clause): Remove declaration.
1323 (ada_in_variant): Remove declaration.
1324 (ada_value_struct_elt): Remove declaration.
1325 (ada_attribute_name): Remove declaration.
1326 (ada_system_address_type): Remove declaration.
1327 * ada-lang.c (ada_watch_location_expression): Make static.
1328 (GROW_VECT): Move here from ada-lang.h.
1329 (grow_vect): Make static.
1330 (ada_update_initial_language): Make static.
1331 (ada_fold_name): Make static.
1332 (ada_type_of_array): Make static.
1333 (encoded_ordered_before): Move up.
1334 (sort_choices): Move up.
1335 (print_signatures): Move up.
1336 (ada_print_symbol_signature): Move up.
1337 (get_selections): Move up and make static.
1338 (user_select_syms): Move up and make static.
1339 (ada_value_struct_elt): Move up and make static.
1340 (ada_tag_type): Make static.
1341 (ada_value_tag): Make static.
1342 (ada_is_others_clause): Make static.
1343 (ada_in_variant): Make static.
1344 (ada_attribute_name): Make static.
1346 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1348 * ada-lang.c: Remove includes.
1349 * ada-typeprint.c: Remove includes.
1350 * ada-valprint.c: Remove includes.
1352 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1354 * addrmap.c: Add static assertions of type size, moved from
1355 _initialize_addrmap.
1356 (_initialize_addrmap): Remove.
1358 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1360 * coffread.c (record_minimal_symbol): Update.
1361 (process_coff_symbol): Update.
1362 * dbxread.c (read_dbx_symtab): Update.
1363 * dwarf2read.c (add_partial_symbol): Update.
1364 (fixup_go_packaging): Update.
1365 (load_partial_dies): Update.
1366 (new_symbol): Update.
1367 * elfread.c (record_minimal_symbol): Change signature to use
1368 gdb::string_view instead of name+len.
1369 (elf_symtab_read): Update.
1370 (elf_rel_plt_read): Update.
1371 * mdebugread.c (parse_partial_symbols): Update.
1372 (handle_psymbol_enumerators): Update.
1373 (new_symbol): Update.
1374 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1375 to use gdb::string_view instead of name+len.
1376 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1377 * psympriv.h (add_psymbol_to_list): Likewise.
1378 * psymtab.c (add_psymbol_to_bcache): Likewise.
1379 (add_psymbol_to_list): Likewise.
1380 * stabsread.c (define_symbol): Update.
1381 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1382 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1383 (symbol_set_names): Likewise.
1384 * xcoffread.c (scan_xcoff_symtab): Update.
1386 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1388 * symtab.h (symbol_set_names): Document that copy_name must be
1389 set to true for non-nullterminated strings.
1390 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1391 linkage_name if the entry was not found and we need to demangle.
1393 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1395 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1396 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1397 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1398 * gdbsupport/gdb_binary_search.h: New file.
1400 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1402 * NEWS: Mention new --with-system-gdbinit-dir option.
1403 * config.in: Regenerate.
1404 * configure: Regenerate.
1405 * configure.ac: Add new option --with-system-gdbinit-dir.
1406 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1407 for a ".gdb" suffix.
1408 * main.c (get_init_files): Change system_gdbinit argument to
1409 a vector and return the files in SYSTEM_GDBINIT_DIR in
1410 addition to SYSTEM_GDBINIT.
1411 (captured_main_1): Update.
1412 (print_gdb_help): Update.
1413 * top.c (print_gdb_configuration): Also print the value of
1416 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1418 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1419 that takes gdb::string_view arguments.
1421 2019-10-26 Tom de Vries <tdevries@suse.de>
1423 * aarch64-linux-tdep.c: Fix typos in comments.
1424 * aarch64-tdep.c: Same.
1426 * amd64-nat.c: Same.
1428 * arch/aarch64-insn.c: Same.
1430 * breakpoint.h: Same.
1433 * cli/cli-decode.c: Same.
1434 * cli/cli-script.c: Same.
1435 * cli/cli-utils.h: Same.
1436 * coff-pe-read.c: Same.
1438 * compile/compile-cplus-symbols.c: Same.
1439 * compile/compile-object-run.c: Same.
1440 * completer.c: Same.
1442 * cp-support.c: Same.
1444 * dwarf-index-write.c: Same.
1445 * dwarf2-frame.c: Same.
1446 * dwarf2-frame.h: Same.
1448 * frame-base.h: Same.
1453 * guile/scm-objfile.c: Same.
1454 * i386-tdep.c: Same.
1455 * i386-tdep.h: Same.
1458 * linux-nat.c: Same.
1459 * m68k-tdep.c: Same.
1462 * mi/mi-cmd-disas.c: Same.
1463 * mi/mi-getopt.h: Same.
1464 * mi/mi-main.c: Same.
1466 * nat/aarch64-sve-linux-sigcontext.h: Same.
1468 * ppc-linux-nat.c: Same.
1469 * ppc-linux-tdep.c: Same.
1471 * progspace.h: Same.
1472 * prologue-value.h: Same.
1473 * python/py-evtregistry.c: Same.
1474 * python/py-instruction.h: Same.
1475 * record-btrace.c: Same.
1476 * record-full.c: Same.
1478 * rs6000-tdep.c: Same.
1480 * sol-thread.c: Same.
1481 * sparc-sol2-tdep.c: Same.
1482 * sparc64-tdep.c: Same.
1483 * stabsread.c: Same.
1487 * tracepoint.c: Same.
1488 * tui/tui-data.h: Same.
1489 * tui/tui-io.c: Same.
1490 * tui/tui-win.c: Same.
1492 * unittests/rsp-low-selftests.c: Same.
1493 * user-regs.h: Same.
1504 * xtensa-tdep.c: Same.
1506 2019-10-25 Ali Tamur <tamur@google.com>
1508 * charset.c (find_charset_names): Reflect API change.
1510 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1512 * symtab.c (struct demangled_name_entry): Change demangled name
1513 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1514 part of the struct anymore.
1515 (symbol_set_names): No longer obstack allocate + copy the demangled
1516 name, just store the allocated name from bfd.
1518 2019-10-25 Tom Tromey <tromey@adacore.com>
1520 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1521 (bsearch_cie_cmp, add_cie): Remove.
1522 (find_cie): Reimplement.
1523 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1524 (dwarf2_build_frame_info): Update.
1526 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1529 * symfile.c (reread_symbols): Call forget_cached_source_info to
1530 clear the stale source cache.
1532 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1534 * configure: Regenerate.
1535 * configure.ac: Remove code that sets python_has_threads.
1537 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1539 * config.in: Regenerate.
1540 * configure: Regenerate.
1541 * configure.ac: Remove the code that uses sed to get the python
1542 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1544 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1546 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1549 2019-10-23 Tom Tromey <tom@tromey.com>
1551 * arc-tdep.c: Remove ".." from include.
1552 * frv-tdep.c: Remove ".." from include.
1553 * lm32-tdep.c: Remove ".." from include.
1554 * microblaze-tdep.c: Remove ".." from include.
1555 * or1k-tdep.h: Remove ".." from include.
1556 * s12z-tdep.c: Remove ".." from include.
1557 * Makefile.in (OPCODES_CFLAGS): Add comment.
1558 (TOP_CFLAGS): New variable.
1559 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1561 2019-10-23 Tom Tromey <tom@tromey.com>
1563 * Makefile.in (READLINE_DIR): Update.
1565 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1567 * infcall.c (call_function_by_hand_dummy): Fix the function
1568 comment. And extract out a code section into...
1569 (reserve_stack_space): ...this new function.
1571 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1573 * infcall.c (value_arg_coerce): Remove an unused parameter.
1574 (call_function_by_hand_dummy): Update the call to
1577 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1579 * infcall.c (call_function_by_hand_dummy): Refactor.
1581 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1583 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1585 2019-10-23 Tom Tromey <tom@tromey.com>
1587 * configure: Rebuild.
1588 * configure.ac: Don't check for sigprocmask.
1589 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1591 2019-10-23 Tom Tromey <tom@tromey.com>
1593 * configure: Rebuild.
1594 * acinclude.m4: Use m4_include, not sinclude.
1596 2019-10-23 Tom de Vries <tdevries@suse.de>
1598 PR breakpoints/24687
1599 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1601 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1603 * symtab.c (struct demangled_name_entry) <language>: Change from
1604 bitfield to regular variable.
1606 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1608 * symtab.c (struct demangled_name_entry): Add a constructor.
1609 (free_demangled_name_entry): New function to call the destructor
1610 for demangled_name_entry.
1611 (create_demangled_names_hash): Pass free_demangled_name_entry to
1613 (symbol_set_names): Call placement new for demangled_name_entry.
1614 * utils.c: No longer include xxhash.h here, now that fast_hash
1615 is inlined in the header.
1616 * utils.h: Instead, include it here.
1618 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1620 * Makefile.in: Link with libxxhash.
1621 * config.in: Regenerate.
1622 * configure: Regenerate.
1623 * configure.ac: Search for libxxhash.
1624 * utils.c (fast_hash): Use xxhash if present.
1626 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1628 * utils.h (fast_hash): New function.
1629 * symtab.c (hash_demangled_name_entry): Call new function
1632 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1634 * symtab.c (struct demangled_name_entry): Change type of mangled
1635 to gdb::string_view. Also adds a constructor that takes the
1637 (hash_demangled_name_entry): Update.
1638 (eq_demangled_name_entry): Update.
1639 (free_demangled_name_entry): New function to call the destructor
1640 now that this is not a POD anymore.
1641 (create_demangled_names_hash): Pass free_demangled_name_entry to
1643 (symbol_set_names): Update.
1645 2019-10-21 Ali Tamur <tamu@google.com>
1647 * dwarf2read.c (dir_index): Change type.
1648 (file_name_index): Likewise.
1649 (line_header::include_dir_at): Change comment and implementation on
1650 whether it is DWARF 5.
1651 (line_header::is_valid_file_index): New function.
1652 (line_header::file_name_at): Change comment and implementation on
1653 whether it is DWARF 5.
1654 (line_header::file_names): Change to private field renamed as
1655 m_file_names and introduce a new accessor method.
1656 (line_header::file_names_size): New method.
1657 (line_header::include_dirs): Change to private field and rename as
1659 (dw2_get_file_names_reader): Define local var at a smaller scope and
1661 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1662 (process_structure_scope): Likewise.
1663 (line_header::add_include_dir): Change message and reflect renaming.
1664 (line_header::add_file_name): Likewise.
1665 (read_formatted_entries): Handle DW_FORM_data16.
1666 (dwarf_decode_line_header): Fix line header length calculation.
1667 (psymtab_include_file_name): Change comment and API.
1668 (lnp_state_machine::m_file): Update comment and reflect type change.
1669 (lnp_state_machine::record_line): Reflect type change.
1670 (dwarf_decode_lines): Reflect API change.
1671 (file_file_name): Likewise.
1672 (file_full_name): Likewise.
1674 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1676 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1678 2019-10-21 Tom Tromey <tom@tromey.com>
1680 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1682 2019-10-21 Tom Tromey <tom@tromey.com>
1684 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1685 NM_H. Use AC_CONFIG_LINKS.
1686 * configure: Rebuild.
1687 * Makefile.in (NM_H): New variable.
1688 (generated_files): Add NM_H. Remove gcore.
1689 (nm.h, stamp-nmh): New targets.
1691 2019-10-20 Tom Tromey <tom@tromey.com>
1693 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1694 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1696 (put_objfile_before): Now static.
1698 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1700 * gdbsupport/common-utils.h (startswith): Change return type to
1703 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1705 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1706 * breakpoint.c (bp_locations_compare): Rename to...
1707 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1708 (update_global_location_list): Use std::sort instead of qsort.
1709 * buildsym.c (compare_line_numbers): Rename to...
1710 (lte_is_less_than): ...this, and change to std::sort semantics.
1711 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1713 * disasm.c (compare_lines): Rename to...
1714 (line_is_less_than): ...this, and change to std::sort semantics.
1715 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1717 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1718 (fde_is_less_than): ...this, and change to std::sort semantics.
1719 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1720 * mdebugread.c (compare_blocks):
1721 (block_is_less_than): ...this, and change to std::sort semantics.
1722 (sort_blocks): Call std::sort instead of qsort.
1723 * objfiles.c (qsort_cmp): Rename to...
1724 (sort_cmp): ...this, and change to std::sort semantics.
1725 (update_section_map): Call std::sort instead of qsort.
1726 * remote.c (compare_pnums): Remove.
1727 (map_regcache_remote_table): Call std::sort instead of qsort.
1728 * utils.c (compare_positive_ints): Remove.
1729 * utils.h (compare_positive_ints): Remove.
1730 * xcoffread.c (compare_lte): Remove.
1731 (arrange_linetable): Call std::sort instead of qsort.
1733 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1735 * symfile.c (init_entry_point_info): Fix typo.
1736 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1738 2019-10-18 Tom de Vries <tdevries@suse.de>
1740 * aarch64-tdep.c: Fix typos in comments.
1742 * ada-tasks.c: Same.
1743 * alpha-tdep.c: Same.
1744 * alpha-tdep.h: Same.
1745 * amd64-nat.c: Same.
1746 * amd64-windows-tdep.c: Same.
1749 * arch-utils.c: Same.
1750 * arm-nbsd-tdep.c: Same.
1753 * blockframe.c: Same.
1756 * coff-pe-read.c: Same.
1758 * cris-tdep.c: Same.
1759 * darwin-nat.c: Same.
1763 * dtrace-probe.c: Same.
1764 * dwarf-index-write.c: Same.
1765 * dwarf2-frame-tailcall.c: Same.
1766 * dwarf2-frame.c: Same.
1767 * dwarf2read.c: Same.
1769 * exceptions.c: Same.
1770 * fbsd-tdep.c: Same.
1774 * gnu-v3-abi.c: Same.
1776 * h8300-tdep.c: Same.
1777 * hppa-tdep.c: Same.
1778 * i386-linux-tdep.c: Same.
1779 * i386-tdep.c: Same.
1780 * ia64-libunwind-tdep.c: Same.
1781 * ia64-tdep.c: Same.
1785 * linux-nat.c: Same.
1786 * linux-thread-db.c: Same.
1787 * machoread.c: Same.
1788 * mdebugread.c: Same.
1790 * mn10300-tdep.c: Same.
1791 * namespace.c: Same.
1793 * opencl-lang.c: Same.
1794 * or1k-tdep.c: Same.
1796 * ppc-linux-nat.c: Same.
1797 * ppc-linux-tdep.c: Same.
1798 * ppc-sysv-tdep.c: Same.
1801 * record-btrace.c: Same.
1802 * record-full.c: Same.
1803 * remote-fileio.c: Same.
1805 * rs6000-tdep.c: Same.
1806 * s12z-tdep.c: Same.
1807 * score-tdep.c: Same.
1811 * sol-thread.c: Same.
1812 * solib-svr4.c: Same.
1815 * sparc-nat.c: Same.
1816 * sparc-sol2-tdep.c: Same.
1817 * sparc-tdep.c: Same.
1818 * sparc64-tdep.c: Same.
1819 * stabsread.c: Same.
1823 * target-descriptions.c: Same.
1824 * target-float.c: Same.
1831 * windows-nat.c: Same.
1832 * xcoffread.c: Same.
1833 * xstormy16-tdep.c: Same.
1834 * xtensa-tdep.c: Same.
1836 2019-10-17 Tom Tromey <tromey@adacore.com>
1838 * configure: Rebuild.
1839 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1840 in AC_CONFIG_FILES invocation.
1841 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1842 new-style config.status invocation.
1844 2019-10-17 Tom de Vries <tdevries@suse.de>
1846 * arm-nbsd-nat.c: Fix typos in comments.
1848 * darwin-nat-info.c: Same.
1849 * dwarf2read.c: Same.
1851 * event-top.c: Same.
1854 * hppa-tdep.c: Same.
1855 * i386-tdep.c: Same.
1858 * mdebugread.c: Same.
1859 * moxie-tdep.c: Same.
1860 * nto-procfs.c: Same.
1862 * ppc-linux-tdep.c: Same.
1864 * riscv-tdep.c: Same.
1865 * s390-tdep.c: Same.
1867 * sparc-linux-tdep.c: Same.
1868 * sparc-nat.c: Same.
1870 * target-descriptions.c: Same.
1874 2019-10-16 Tom Tromey <tom@tromey.com>
1876 * objfiles.h (struct objfile) <original_name>: Now const.
1878 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1880 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1881 pass on to sigsetjmp's second argument.
1882 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1884 2019-10-16 Keith Seitz <keiths@redhat.com>
1887 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1888 sections whose size is greater than the file size.
1890 2019-10-16 Jim Wilson <jimw@sifive.com>
1892 * riscv-tdep.c (riscv_gcc_target_options): New.
1893 (riscv_gnu_triplet_regexp): New.
1894 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1895 set_gdbarch_gnu_triplet_regexp.
1897 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1899 * Makefile.in: Add xml-builtin.h.
1900 * features/feature_to_c.sh: Add an include for xml-builtin.h
1901 to ensure that the compiler checks that the types match.
1902 * xml-builtin.h: New file.
1903 * xml-support.c (fetch_xml_builtin): Add missing const.
1904 * xml-support.h: Remove declaration of xml_builtins.
1906 2019-10-16 Tom de Vries <tdevries@suse.de>
1909 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1910 (amd64_classify_aggregate): ... here.
1911 (amd64_classify_aggregate_field): Handled fiels of nested structs
1914 2019-10-16 Tom de Vries <tdevries@suse.de>
1917 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1918 that handles 'theclass'.
1920 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1922 * linespec.c (decode_digits_ordinary): Update comment.
1923 * make-target-delegates: No longer need to handle VEC case.
1924 * memrange.c (normalize_mem_ranges): Update comment.
1925 * namespace.c (add_using_directive): Update comment.
1926 * objc-lang.c (uniquify_strings): Update comment.
1927 * ppc-linux-nat.c (struct thread_points): Update comment.
1928 * probe.h (find_probes_in_objfile): Update comment.
1929 * target.h (enum flash_preserve_mode): Update comment.
1930 * varobj.c (varobj_restrict_range): Update comment.
1931 * varobj.h (varobj_list_children): Update comment.
1933 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1935 * Makefile.in: Remove references to vec.h and vec.c.
1936 * aarch64-tdep.c: No longer include vec.h.
1937 * ada-lang.c: Likewise.
1938 * ada-lang.h: Likewise.
1939 * arm-tdep.c: Likewise.
1941 * breakpoint.h: Likewise.
1942 * charset.c: Likewise.
1943 * cp-support.h: Likewise.
1944 * dtrace-probe.c: Likewise.
1945 * dwarf2read.c: Likewise.
1946 * extension.h: Likewise.
1947 * gdb_bfd.c: Likewise.
1948 * gdbsupport/gdb_vecs.h: Likewise.
1949 * gdbsupport/vec.c: Remove.
1950 * gdbsupport/vec.h: Remove.
1951 * gdbthread.h: Likewise.
1952 * guile/scm-type.c: Likewise.
1953 * inline-frame.c: Likewise.
1954 * machoread.c: Likewise.
1955 * memattr.c: Likewise.
1956 * memrange.h: Likewise.
1957 * namespace.h: Likewise.
1958 * nat/linux-btrace.h: Likewise.
1959 * osdata.c: Likewise.
1960 * parser-defs.h: Likewise.
1961 * progspace.h: Likewise.
1962 * python/py-type.c: Likewise.
1963 * record-btrace.c: Likewise.
1964 * rust-exp.y: Likewise.
1965 * solib-target.c: Likewise.
1966 * stap-probe.c: Likewise.
1967 * target-descriptions.c: Likewise.
1968 * target-memory.c: Likewise.
1969 * target.h: Likewise.
1970 * varobj.c: Likewise.
1971 * varobj.h: Likewise.
1972 * xml-support.h: Likewise.
1974 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1976 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1977 Update for new std::vector based implementation.
1978 (process_psymtab_comp_unit_reader): Likewise.
1979 (scan_partial_symbols): Likewise.
1980 (recursively_compute_inclusions): Likewise.
1981 (compute_compunit_symtab_includes): Likewise.
1982 (process_imported_unit_die): Likewise.
1983 (queue_and_load_dwo_tu): Likewise.
1984 (follow_die_sig_1): Likewise.
1985 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1986 (typedef dwarf2_per_cu_ptr): Remove.
1987 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1989 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1990 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1991 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1992 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1995 2019-10-15 Tom Tromey <tromey@adacore.com>
1997 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2000 2019-10-15 Tom Tromey <tromey@adacore.com>
2002 * windows-nat.c (windows_nat_target::fetch_registers)
2003 (windows_nat_target::store_registers): Rename "pid" to "tid".
2005 2019-10-15 Tom Tromey <tromey@adacore.com>
2007 * gdbarch.h, gdbarch.c: Rebuild.
2008 * gdbarch.sh (gcc_target_options): Change return type to
2010 * compile/compile.c (get_args): Update.
2011 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2012 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2014 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2016 * arch-utils.c (default_gcc_target_options): Return std::string.
2017 * arch-utils.h (default_gcc_target_options): Return std::string.
2018 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2020 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2022 * breakpoint.c (breakpoint_chain): Make static.
2023 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2024 of accessing breakpoint_chain.
2026 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2028 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2029 to a gdb::function_view and return value to bool.
2030 * breakpoint.h (iterate_over_breakpoints): Likewise.
2031 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2032 (pop_dummy_frame): Update.
2033 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2034 (gdbscm_breakpoints): Update.
2035 * python/py-breakpoint.c (build_bp_list): Update.
2036 (gdbpy_breakpoints): Update.
2037 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2039 (bpfinishpy_handle_stop): Update.
2040 (bpfinishpy_handle_exit): Update.
2041 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2042 (svr4_update_solib_event_breakpoints): Update.
2044 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2046 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2047 when unwrapping single-field structs.
2049 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2051 * dwarf2read.c: Remove includes.
2053 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2055 * ui-out.c (ui_out::call_do_message): Silence
2056 -Wformat-nonliteral warning.
2058 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2060 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2061 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2062 include: readline/tilde.h.
2064 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2066 * remote.c (remote_target::get_trace_status): Remove declaration of
2067 trace_regblock_size.
2069 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2071 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2072 (show_user): Remove declaration of cmdlist.
2073 * cli/cli-cmds.h (max_user_call_depth): Declare.
2074 * cli/cli-script.c (execute_user_command): Remove declaration
2075 of max_user_call_depth.
2077 2019-10-11 Jim Wilson <jimw@sifive.com>
2079 * gdbsupport/print-utils.h (pulongest): Fix comment.
2080 (plongest): Likewise.
2081 (phex): Add missing comment, mention leading zeros.
2082 (phex_nz): Add mention of no leading zeros to comment.
2084 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2085 plongest instead of unsigned long long cast.
2087 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2089 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2090 for external_editor_command and gdbtk_test.
2092 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2094 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2095 * varobj.c (varobjdebug): Move comment to...
2096 * varobj.h (varobjdebug): ...here, and declare.
2098 2019-10-09 Tom Tromey <tom@tromey.com>
2100 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2103 2019-10-09 Tom Tromey <tom@tromey.com>
2105 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2106 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2107 * tui/tui-command.c (tui_cmd_window::resize)
2108 (tui_refresh_cmd_win): Update.
2109 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2110 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2111 * tui/tui-data.c (~tui_gen_win_info): Remove.
2112 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2113 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2114 (tui_redisplay_readline, tui_mld_flush)
2115 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2116 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2117 (tui_data_window::erase_data_content)
2118 (tui_data_item_window::rerender)
2119 (tui_data_item_window::refresh_window): Update.
2120 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2121 (box_win, tui_gen_win_info::make_window)
2122 (tui_gen_win_info::make_visible): Update.
2123 (tui_delete_win): Remove.
2124 * tui/tui-winsource.c
2125 (tui_source_window_base::do_erase_source_content): Update.
2126 (tui_show_source_line, tui_source_window_base::update_tab_width)
2127 (tui_source_window_base::update_exec_info): Update.
2128 * tui/tui-data.h (struct curses_deleter): New.
2129 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2130 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2132 2019-10-09 Tom Tromey <tom@tromey.com>
2134 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2136 2019-10-09 Tom Tromey <tom@tromey.com>
2138 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2139 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2141 2019-10-09 Tom Tromey <tom@tromey.com>
2143 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2144 window height directly.
2145 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2147 * tui/tui-layout.c (tui_default_win_height): Remove.
2148 (tui_default_win_viewport_height): Remove.
2150 2019-10-09 Tom Tromey <tom@tromey.com>
2152 * tui/tui.h: Remove comments.
2154 2019-10-09 Tom de Vries <tdevries@suse.de>
2156 * python/lib/gdb/printer/bound_registers.py: Use
2157 '^builtin_type_bound128' as regexp argument for
2158 add_builtin_pretty_printer.
2160 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2162 * guile/guile.c (guile_extension_script_ops): Remove forward
2163 declaration and mark as static.
2164 (guile_script_ops): Likewise.
2165 (extension_language_guile): Move further down in the file so
2166 it can reference the definitions for guile_{extension_,}script_ops.
2168 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2170 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2171 except SORTL, DFLTCC, and KDSA.
2173 2019-10-08 Tom Tromey <tromey@adacore.com>
2175 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2176 (struct safe_symbol_file_add_args): Remove.
2178 2019-10-08 Tom Tromey <tromey@adacore.com>
2180 * windows-nat.c: Don't include buildsym-legacy.h.
2182 2019-10-08 Tom Tromey <tromey@adacore.com>
2184 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2186 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2188 * gdbtypes.c (overload_debug): Move comment to header.
2189 * gdbtypes.h (overload_debug): Declare.
2190 * valops.c: Remove declaration of overload_debug, instead
2193 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2195 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2197 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2199 * language.h (lang_frame_mismatch_warn): ... here. Also add
2201 * top.c (lang_frame_mismatch_warn): Remove declaration.
2202 (check_frame_language_change): Pass lang_frame_mismatch_warn
2205 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2207 * c-lang.h (vtbl_ptr_name): Declare.
2208 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2210 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2212 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2214 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2217 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2219 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2220 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2221 * ctfread.c: New file.
2222 * ctfread.h: New file.
2223 * elfread.c: Include ctfread.h.
2224 (struct elfinfo text_p): New member ctfsect.
2225 (elf_locate_sections): Mark CTF section.
2226 (elf_symfile_read): Call elfctf_build_psymtabs.
2227 * Makefile.in (LIBCTF): Add.
2230 (DIST): Add ctfread.c.
2232 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2234 * ctfread.c (struct nextfield): Renamed to ...
2235 (struct ctf_nextfield): ... this.
2236 (struct field_info): Renamed to ...
2237 (strut ctf_field_info): ... this.
2238 (attach_fields_to_type): Update for renamed structures.
2239 (ctf_add_member_cb): Likewise.
2240 (ctf_add_enum_member_cb): Likewise.
2241 (process_struct_members): Likewise.
2242 (process_enum_type): Likewise.
2244 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2246 * tracectf.h: Rename, was ctf.h.
2247 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2248 * tracefile.c: Likewise.
2249 * tracepoint.c: Remove unused include ctf.h.
2250 * mi/mi-main.c: Likewise.
2251 * Makefile.in Replace ctf.c with tracectf.c.
2253 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2255 * version.in: Change version number to "9.0.50.DATE-git".
2257 2019-10-03 Tom Tromey <tom@tromey.com>
2260 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2262 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2264 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2265 cp_search_name_hash.
2266 * NEWS: Add entry about nested function support.
2268 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2269 Andrew Burgess <andrew.burgess@embecosm.com>
2271 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2272 for nested static variables when searchin VAR_DOMAIN.
2273 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2274 global scope, update comment.
2275 (add_partial_subprogram): Call add_partial_subprogram recursively
2276 for nested subroutines when processinng Fortran.
2277 (load_partial_dies): Process the child entities of a subprogram
2278 when processing Fortran.
2279 (partial_die_parent_scope): Handle building scope
2280 for Fortran nested functions.
2281 (process_die): Record that nested functions have a scope.
2282 (new_symbol): Always record Fortran subprograms on the global
2284 (determine_prefix): How to build the prefix for Fortran
2287 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2289 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2290 have just sent the thread a SIGSTOP and are waiting for it to
2293 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2295 * btrace.c (btrace_add_pc): Remove whitespace before the template
2296 parameter in 'std::vector <...>'.
2297 (parse_xml_btrace_block): Likewise.
2298 (btrace_maint_decode_pt): Likewise.
2299 (btrace_maint_update_packets): Likewise.
2300 (btrace_maint_print_packets): Likewise.
2301 * btrace.h (struct btrace_maint_info): Likewise.
2302 * dwarf2read.c (struct type_unit_group): Likewise.
2303 (build_type_psymtabs_reader): Likewise.
2304 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2305 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2306 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2308 2019-10-03 Tom de Vries <tdevries@suse.de>
2310 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2311 the first line of the help text for set/show style metadata.
2313 2019-10-02 Tom Tromey <tromey@adacore.com>
2315 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2316 * gdbsupport/common-inferior.c: New file.
2317 * infcmd.c (startup_with_shell): Don't define.
2318 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2319 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2320 * inferior.h (startup_with_shell): Don't declare.
2322 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2324 * gdbsupport/gdb_assert.h: Include errors.h.
2325 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2327 2019-10-02 Tom Tromey <tromey@adacore.com>
2329 * NEWS: Add $_ada_exception entry.
2330 * ada-lang.c (struct ada_catchpoint): Add constructor.
2331 <m_kind>: New member.
2332 (allocate_location_exception, re_set_exception): Remove
2334 (should_stop_exception): Compute $_ada_exception.
2335 (check_status_exception, print_it_exception)
2336 (print_one_exception, print_mention_exception): Remove
2338 (allocate_location_catch_exception, re_set_catch_exception)
2339 (check_status_exception, print_it_catch_exception)
2340 (print_one_catch_exception, print_mention_catch_exception)
2341 (print_recreate_catch_exception)
2342 (allocate_location_catch_exception_unhandled)
2343 (re_set_catch_exception_unhandled)
2344 (check_status_exception, print_it_catch_exception_unhandled)
2345 (print_one_catch_exception_unhandled)
2346 (print_mention_catch_exception_unhandled)
2347 (print_recreate_catch_exception_unhandled)
2348 (allocate_location_catch_assert, re_set_catch_assert)
2349 (check_status_assert, print_it_catch_assert)
2350 (print_one_catch_assert, print_mention_catch_assert)
2351 (print_recreate_catch_assert)
2352 (allocate_location_catch_handlers, re_set_catch_handlers)
2353 (check_status_handlers, print_it_catch_handlers)
2354 (print_one_catch_handlers, print_mention_catch_handlers)
2355 (print_recreate_catch_handlers): Remove.
2356 (create_ada_exception_catchpoint): Update.
2357 (initialize_ada_catchpoint_ops): Update.
2359 2019-10-02 Tom Tromey <tromey@adacore.com>
2361 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2362 (create_excep_cond_exprs): Simplify exception string computation.
2363 (ada_exception_catchpoint_cond_string): Likewise.
2365 2019-10-02 Tom Tromey <tromey@adacore.com>
2367 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2368 * ada-lang.c (lesseq_defined_than): Handle
2370 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2372 (dwarf2_has_info): Likewise.
2373 (new_symbol): Set maybe_copied on symbol when
2375 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2377 <can_copy>: New member.
2378 * elfread.c (record_minimal_symbol): Set maybe_copied
2379 on symbol when appropriate.
2380 (elf_symfile_read): Update call to dwarf2_has_info.
2381 * minsyms.c (lookup_minimal_symbol_linkage): New
2383 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2384 * symtab.c (get_symbol_address, get_msymbol_address):
2386 * symtab.h (get_symbol_address, get_msymbol_address):
2388 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2390 (struct symbol, struct minimal_symbol) <maybe_copied>:
2393 2019-10-02 Tom Tromey <tromey@adacore.com>
2395 * source.c (struct current_source_location): New.
2396 (current_source_key): New global.
2397 (current_source_symtab, current_source_line)
2398 (current_source_pspace): Remove.
2399 (get_source_location): New function.
2400 (get_current_source_symtab_and_line)
2401 (set_default_source_symtab_and_line)
2402 (set_current_source_symtab_and_line)
2403 (clear_current_source_symtab_and_line, select_source_symtab)
2404 (info_source_command, print_source_lines_base)
2405 (info_line_command, search_command_helper, _initialize_source):
2408 2019-10-02 Tom Tromey <tromey@adacore.com>
2410 * source.c (select_source_symtab): Don't call
2411 decode_line_with_current_source.
2413 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2415 * symtab.c (lookup_global_symbol): Search global block.
2417 2019-10-02 Tom Tromey <tromey@adacore.com>
2419 * coffread.c (process_coff_symbol): Update.
2420 * dwarf2read.c (var_decode_location, new_symbol): Update.
2421 * mdebugread.c (parse_symbol): Update.
2422 * objfiles.c (relocate_one_symbol): Update.
2423 * stabsread.c (define_symbol, fix_common_block)
2424 (scan_file_globals): Update.
2425 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2426 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2427 * xcoffread.c (process_xcoff_symbol): Update.
2429 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2431 * MAINTAINERS: Update my email address.
2433 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2435 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2437 (build_type_psymtabs_reader): Update for std::vector.
2438 (build_type_psymtab_dependencies): Likewise.
2439 * dwarf2read.h: Remove use of DEF_VEC_P.
2440 (typedef sig_type_ptr): Delete.
2442 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2444 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2446 (btrace_maint_decode_pt): Likewise, and move allocation of the
2447 vector outside of the loop.
2448 (btrace_maint_update_packets): Update to handle change from VEC to
2450 (btrace_maint_print_packets): Likewise.
2451 (maint_info_btrace_cmd): Likewise.
2452 * btrace.h: Remove use of DEF_VEC_O.
2453 (typedef btrace_pt_packet_s): Delete.
2454 (struct btrace_maint_info) <packets>: Change fromm VEC to
2456 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2458 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2460 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2461 make accesses into the vector constant references.
2462 (btrace_add_pc): Update for std::vector.
2463 (btrace_stitch_bts): Likewise.
2464 (parse_xml_btrace_block): Likewise.
2465 (btrace_maint_update_packets): Likewise.
2466 (btrace_maint_print_packets): Likewise.
2467 (maint_info_btrace_cmd): Likewise.
2468 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2470 (btrace_data::empty): Likewise.
2471 (btrace_data_append): Likewise.
2472 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2473 (typedef btrace_block_s): Delete.
2474 (struct btrace_block): Add constructor.
2475 (struct btrace_data_bts) <blocks>: Change to std::vector.
2476 * nat/linux-btrace.c (perf_event_read_bts): Update for
2478 (linux_read_bts): Likewise.
2480 2019-10-01 Tom Tromey <tom@tromey.com>
2482 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2484 2019-10-01 Tom Tromey <tom@tromey.com>
2486 * stack.c (print_frame, info_frame_command_core): Use
2488 * linux-thread-db.c (try_thread_db_load_1)
2489 (try_thread_db_load_from_pdir_1): Use styled_string.
2490 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2491 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2492 (maybe_print_unsupported_script_warning)
2493 (maybe_print_script_not_found_warning): Use styled_string.
2494 * ada-lang.c (user_select_syms): Use styled_string.
2496 2019-10-01 Tom Tromey <tom@tromey.com>
2498 * p-lang.c (pascal_printstr): Use metadata style.
2499 * value.c (show_convenience): Use metadata style.
2500 * valprint.c (valprint_check_validity, val_print_optimized_out)
2501 (val_print_not_saved, val_print_unavailable)
2502 (val_print_invalid_address, generic_val_print, val_print)
2503 (value_check_printable, val_print_array_elements): Use metadata
2505 * ui-out.h (class ui_out) <field_fmt>: New overload.
2506 <do_field_fmt>: Add style parameter.
2507 * ui-out.c (ui_out::field_fmt): New overload.
2508 * typeprint.c (type_print_unknown_return_type)
2509 (val_print_not_allocated, val_print_not_associated): Use metadata
2511 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2513 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2514 * tracepoint.c (tvariables_info_1): Use metadata style.
2515 * stack.c (print_frame_arg, print_frame_info, print_frame)
2516 (info_frame_command_core): Use metadata style.
2517 * skip.c (info_skip_command): Use metadata style.
2518 * rust-lang.c (rust_print_enum): Use metadata style.
2519 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2521 * python/py-framefilter.c (py_print_single_arg): Use metadata
2523 * printcmd.c (do_one_display, print_variable_and_value): Use
2525 * p-valprint.c (pascal_val_print)
2526 (pascal_object_print_value_fields): Use metadata style.
2527 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2528 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2530 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2531 * m2-valprint.c (m2_print_long_set): Use metadata style.
2532 * m2-typeprint.c (m2_print_type): Use metadata style.
2533 * infcmd.c (print_return_value_1): Use metadata style.
2534 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2535 * f-valprint.c (info_common_command_for_block): Use metadata
2537 * f-typeprint.c (f_type_print_base): Use metadata style.
2538 * expprint.c (print_subexp_standard): Use metadata style.
2539 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2540 * cli/cli-style.h (class cli_style_option): Add constructor.
2541 (metadata_style): Declare.
2542 * cli/cli-style.c (metadata_style): New global.
2543 (_initialize_cli_style): Register metadata style.
2544 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2546 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2547 * c-typeprint.c (c_type_print_base_struct_union)
2548 (c_type_print_base_1): Use metadata style.
2549 * breakpoint.c (watchpoint_value_print)
2550 (print_one_breakpoint_location): Use metadata style.
2551 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2553 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2555 * ada-valprint.c (val_print_packed_array_elements, printstr)
2556 (print_field_values, ada_val_print_ref, ada_val_print): Use
2558 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2560 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2562 * ada-lang.c (user_select_syms): Use metadata style.
2564 2019-10-01 Tom Tromey <tom@tromey.com>
2566 * cli/cli-cmds.c (pwd_command): Style output.
2568 2019-10-01 Pedro Alves <palves@redhat.com>
2569 Tom Tromey <tom@tromey.com>
2571 * symtab.c (print_symbol_info): Use %ps.
2572 (print_msymbol_info): Use %ps.
2573 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2574 * printcmd.c (print_variable_and_value): Use %ps.
2575 * macrocmd.c (show_pp_source_pos): Use %ps.
2576 * infrun.c (print_exited_reason): Use ui_out::message.
2577 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2578 (describe_other_breakpoints): Use ui_out::message and new
2580 (say_where): Use new formats.
2581 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2584 2019-10-01 Pedro Alves <palves@redhat.com>
2585 Tom Tromey <tom@tromey.com>
2587 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2588 (test_gdb_formats): New function.
2589 (run_tests): Call it.
2590 (test_format_specifier): Update.
2591 * utils.h (fputs_filtered): Update comment.
2592 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2593 (fputs_styled_unfiltered): Declare.
2594 * utils.c (fputs_styled_unfiltered): New function.
2595 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2596 (vfprintf_filtered): Update.
2597 (vfprintf_unfiltered, vprintf_filtered): Update.
2598 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2599 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2600 disallow_ui_out_field>: New constants.
2601 (enum class field_kind): New.
2602 (struct base_field_s, struct signed_field_s): New.
2603 (signed_field): New function.
2604 (struct string_field_s): New.
2605 (string_field): New function.
2606 (struct styled_string_s): New.
2607 (styled_string): New function.
2608 (class ui_out) <message>: Add comment.
2609 <vmessage, call_do_message>: New methods.
2610 <do_message>: Add style parameter.
2611 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2613 (ui_out::message): Rewrite.
2614 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2616 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2617 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2618 gdb_extensions parameter.
2619 (class format_piece): Add parameter to constructor.
2620 (n_int_args): New field.
2621 * gdbsupport/format.c (format_pieces::format_pieces): Add
2622 gdb_extensions parameter. Handle '*'.
2623 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2624 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2625 vfprintf_styled_no_gdbfmt.
2626 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2627 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2629 * ui-style.h (struct ui_file_style) <ptr>: New method.
2631 2019-10-01 Tom Tromey <tom@tromey.com>
2633 * unittests/format_pieces-selftests.c: Update. Add final format.
2634 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2635 empty literal pieces.
2637 2019-10-01 Tom Tromey <tom@tromey.com>
2639 * ui-out.h (enum class ui_out_style_kind): Remove.
2640 (class ui_out) <field_string, field_stsream, do_field_string>:
2641 Change type of "style".
2642 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2643 (ui_out::field_string): Update.
2644 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2646 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2647 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2648 * stack.c (print_frame_arg, print_frame_info, print_frame):
2650 * source.c (print_source_lines_base): Update.
2651 * solib.c (info_sharedlibrary_command): Update.
2652 * skip.c (info_skip_command): Update.
2653 * record-btrace.c (btrace_call_history_src_line)
2654 (btrace_call_history): Update.
2655 * python/py-framefilter.c (py_print_frame): Update.
2656 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2658 * mi/mi-out.c (mi_ui_out::do_table_header)
2659 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2660 (mi_ui_out::do_field_string): Update.
2661 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2663 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2665 * cli-out.c (cli_ui_out::do_table_header)
2666 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2667 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2668 (cli_ui_out::do_field_fmt): Update.
2669 * breakpoint.c (print_breakpoint_location): Update.
2670 (update_static_tracepoint): Update.
2672 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2674 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2675 conversion of gdb_datadir.
2676 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2677 remove not needed c_str ().
2679 2019-09-30 Ali Tamur <tamur@google.com>
2681 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2682 (dwarf2_string_attr): Likewise.
2684 2019-09-30 Ali Tamur <tamur@google.com>
2686 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2687 (process_full_type_unit): Likewise.
2688 (dump_die_shallow): Likewise.
2689 (cu_debug_loc_section): Likewise.
2691 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2693 * minsyms.c (compare_minimal_symbols): Rename to...
2694 (minimal_symbol_is_less_than): ...this, and adjust to STL
2695 conventions (return bool, take arguments as references)
2696 (minimal_symbol_reader::install): Call std::sort instead
2699 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2701 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2703 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2704 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2706 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2708 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2709 * psympriv.h (add_psymbol_to_list): Move comment here and update
2712 2019-09-29 Tom de Vries <tdevries@suse.de>
2714 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2715 Use $tmpdir/$(basename "$output_file").dwz instead of
2716 "${output_file}.dwz".
2718 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2721 * hppa-linux-nat.c: Include gdbarch.h.
2723 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2725 * blockframe.c (find_pc_partial_function): Change return type to bool.
2726 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2727 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2728 (stub_gnu_ifunc_resolve_name): Likewise.
2729 * symtab.c (compare_filenames_for_search): Likewise.
2730 (compare_glob_filenames_for_search): Likewise.
2731 (matching_obj_sections): Likewise.
2732 (symbol_matches_domain): Likewise.
2733 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2734 (find_line_pc): Change return type to bool.
2735 (find_line_pc_range): Likewise.
2736 (producer_is_realview): Likewise.
2737 * symtab.h (symbol_matches_domain): Likewise.
2738 (find_pc_partial_function): Likewise.
2739 (find_pc_line_pc_range): Likewise.
2740 (in_gnu_ifunc_stub): Likewise.
2741 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2742 (find_line_pc): Likewise.
2743 (find_line_pc_range): Likewise.
2744 (matching_obj_sections): Likewise.
2745 (find_line_symtab): Change out parameter to bool.
2746 (producer_is_realview): Change return type to bool.
2747 (compare_filenames_for_search): Likewise.
2748 (compare_glob_filenames_for_search): Likewise.
2750 2019-09-26 Tom Tromey <tom@tromey.com>
2752 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2753 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2754 * gdb_usleep.h: Remove.
2755 * gdb_usleep.c: Remove.
2756 * utils.c: Don't include gdb_usleep.h.
2758 2019-09-26 Tom Tromey <tromey@adacore.com>
2760 * python/py-type.c (type_to_type_object): Call check_typedef
2763 2019-09-26 Tom Tromey <tom@tromey.com>
2765 * utils.h (initialize_utils): Don't declare.
2766 * top.c (gdb_init): Don't call initialize_utils.
2767 * utils.c (initialize_utils): Remove. Move contents...
2768 (_initialize_utils): ... here.
2770 2019-09-25 Tom Tromey <tom@tromey.com>
2772 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2773 * utils.h (make_hex_string): Don't declare.
2774 * utils.c (make_hex_string): Remove.
2776 2019-09-24 Tom de Vries <tdevries@suse.de>
2779 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2780 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2782 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2784 * NEWS: Mention new simulator port for PRU.
2786 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2788 * ada-exp.y (write_object_remaining): Update.
2789 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2790 and eliminate the static buffer.
2791 (ada_decode_symbol): Update.
2792 (ada_la_decode): Update.
2793 (ada_sniff_from_mangled_name): Update.
2794 (is_valid_name_for_wild_match): Update.
2795 (ada_lookup_name_info::matches): Update and simplify.
2796 (name_matches_regex): Update.
2797 (ada_add_global_exceptions): Update.
2798 * ada-lang.h (ada_decode): Update signature.
2799 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2800 * dwarf-index-write.c (debug_names::insert): Update.
2802 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2804 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2807 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2809 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2810 Change "nonzero" to "true" in documentation.
2812 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2814 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2815 (_initialize_darwin_solib): Don't set
2816 darwin_so_ops.lookup_lib_global_symbol.
2817 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2818 set_gdbarch_iterate_over_objfiles_in_search_order.
2819 (elf_lookup_lib_symbol): Rename to...
2820 (svr4_iterate_over_objfiles_in_search_order): this, and update
2821 to iterate semantics.
2822 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2823 * solib.c (solib_global_lookup): Remove.
2824 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2825 (solib_global_lookup): Remove.
2826 * symtab.c (lookup_global_or_static_symbol): Remove call to
2827 solib_global_lookup.
2829 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2831 * NEWS: Move entries about default MI version now being
2832 version 3, and about the GDB/MI fix for multi-location
2833 breakpoints to the "since GDB 8.3" section.
2835 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2839 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2841 * NEWS: Mention that Cell/B.E. debugging support was removed.
2842 * MAINTAINERS: Remove spu target.
2844 * config/djgpp/fnchange.lst: Remove entries for removed files.
2846 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2847 spu-multiarch.o, and spu-tdep.o.
2848 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2849 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2850 spu-multiarch.c, and spu-tdep.c.
2851 * spu-linux-nat.c: Remove file.
2852 * spu-multiarch.c: Remove file.
2853 * spu-tdep.c: Remove file.
2854 * spu-tdep.h: Remove file.
2855 * solib-spu.c: Remove file.
2856 * solib-spu.h: Remove file.
2858 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2859 * configure.nat (spu-linux): Remove.
2860 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2861 solib-multiarch.o from gdb_target_obs.
2864 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2866 (ppc_linux_no_features): Update.
2867 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2869 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2870 (tdesc_powerpc_cell64l): Likewise.
2871 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2872 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2874 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2875 Do not include "features/rs6000/powerpc-cell32l.c" or
2876 "features/rs6000/powerpc-cell64l.c".
2877 (ppc_linux_spu_section): Remove.
2878 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2879 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2880 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2881 (ppc_linux_spe_context_lookup): Remove.
2882 (ppc_linux_spe_context_inferior_created): Remove.
2883 (ppc_linux_spe_context_solib_loaded): Remove.
2884 (ppc_linux_spe_context_solib_unloaded): Remove.
2885 (ppc_linux_spe_context): Remove.
2886 (struct ppu2spu_cache): Remove.
2887 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2888 (struct ppu2spu_data): Remove.
2889 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2890 ppu2spu_unwind): Remove.
2891 (ppc_linux_init_abi): Remove Cell/B.E. support.
2892 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2894 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2895 (rs6000/powerpc-cell64l-expedite): Likewise
2896 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2897 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2898 rs6000/powerpc-cell64l.xml.
2899 * features/rs6000/powerpc-cell32l.xml: Remove.
2900 * features/rs6000/powerpc-cell64l.xml: Likewise.
2901 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2902 * features/rs6000/powerpc-cell64l.c: Likewise.
2903 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2904 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2905 * regformats/reg-spu.dat: Remove.
2907 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2908 * corelow.c (struct spuid_list): Remove.
2909 (add_to_spuid_list): Remove.
2910 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2911 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2912 (remote_protocol_features): Remove associated entries.
2913 (_initialize_remote): No longer initialize them.
2914 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2915 * linux-nat.c (SPUFS_MAGIC): Remove.
2916 (linux_proc_xfer_spu): Remove.
2917 (spu_enumerate_spu_ids): Remove.
2918 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2919 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2920 (linux_make_corefile_notes): No longer call it.
2922 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2923 (cooked_write_test): Likewise.
2925 2019-09-20 Tom Tromey <tom@tromey.com>
2927 * NEWS: Mention case-sensitivity of TUI commands.
2928 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2929 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2930 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2932 2019-09-20 Tom Tromey <tom@tromey.com>
2934 * tui/tui-source.c (tui_source_window::set_contents): Use
2935 make_unique_xstrdup.
2936 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2937 make_unique_xstrdup.
2939 2019-09-20 Tom Tromey <tom@tromey.com>
2941 * tui/tui-data.c: Remove separator comments.
2942 * tui/tui-layout.c: Remove separator comments.
2943 * tui/tui-win.c: Remove separator comments.
2944 * tui/tui-wingeneral.c: Remove separator comments.
2946 2019-09-20 Tom Tromey <tom@tromey.com>
2948 * tui/tui.h (strcat_to_buf): Don't declare.
2949 * tui/tui.c (strcat_to_buf): Remove.
2951 2019-09-20 Tom Tromey <tom@tromey.com>
2953 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2955 * tui/tui-source.c (tui_source_window::set_contents)
2956 (tui_source_window::location_matches_p)
2957 (tui_source_window::maybe_update): Update.
2959 2019-09-20 Tom Tromey <tom@tromey.com>
2961 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2963 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2965 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2966 (tui_data_window::line_from_reg_element_no)
2967 (tui_data_window::first_reg_element_no_inline)
2968 (tui_data_window::show_registers)
2969 (tui_data_window::show_register_group)
2970 (tui_data_window::display_registers_from)
2971 (tui_data_window::display_registers_from_line)
2972 (tui_data_window::first_data_item_displayed)
2973 (tui_data_window::delete_data_content_windows)
2974 (tui_data_window::erase_data_content)
2975 (tui_data_window::do_scroll_vertical)
2976 (tui_data_window::refresh_window)
2977 (tui_data_window::check_register_values): Update.
2979 2019-09-20 Tom Tromey <tom@tromey.com>
2981 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2982 (struct tui_locator_window) <full_name, proc_name>: Now
2984 * tui/tui-stack.c (tui_locator_window::make_status_line)
2985 (tui_locator_window::set_locator_fullname)
2986 (tui_locator_window::set_locator_info): Update.
2987 * tui/tui-source.c (tui_source_window::set_contents)
2988 (tui_source_window::showing_source_p): Update.
2990 2019-09-20 Tom Tromey <tom@tromey.com>
2992 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2993 Don't call tui_locator_win_info_ptr.
2995 2019-09-20 Tom Tromey <tom@tromey.com>
2997 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2999 2019-09-20 Tom Tromey <tom@tromey.com>
3001 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3003 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3004 * tui/tui-layout.c (show_source_disasm_command, show_data)
3005 (show_source_or_disasm_and_command): Use 1 as height for locator.
3007 2019-09-20 Tom Tromey <tom@tromey.com>
3009 * tui/tui.c (tui_enable): Update.
3010 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3012 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3014 * tui/tui-data.c (win_resized): Now bool.
3015 (tui_win_resized): Return bool.
3016 (tui_set_win_resized_to): Accept a bool.
3018 2019-09-20 Tom Tromey <tom@tromey.com>
3020 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3021 Change type of "refresh_values_only".
3022 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3023 type of "refresh_values_only".
3025 2019-09-20 Tom Tromey <tom@tromey.com>
3027 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3029 (tui_disassemble): Add "pos" parameter.
3030 (tui_disasm_window::set_contents): Simplify.
3032 2019-09-20 Tom Tromey <tom@tromey.com>
3034 * tui/tui-winsource.h (struct tui_source_window_base)
3035 <show_source_content>: Now private.
3036 * tui/tui-winsource.c
3037 (tui_source_window_base::show_source_content): Don't handle empty
3040 2019-09-20 Tom Tromey <tom@tromey.com>
3042 * tui/tui-layout.c (show_source_disasm_command)
3043 (show_source_or_disasm_and_command): Don't call
3044 show_source_content.
3046 2019-09-20 Tom Tromey <tom@tromey.com>
3048 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3050 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3051 from tui_make_status_line.
3052 (tui_locator_window::rerender): Update.
3054 2019-09-20 Tom Tromey <tom@tromey.com>
3056 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3057 (tui_locator_window::rerender): Update.
3059 2019-09-20 Tom Tromey <tom@tromey.com>
3061 * tui/tui-winsource.h (struct tui_source_window_base)
3062 <~tui_source_window_base>: Don't declare.
3064 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3065 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3067 * tui/tui-source.c (tui_source_window::set_contents): Update.
3068 (tui_source_window::location_matches_p)
3069 (tui_source_window::maybe_update): Update.
3071 2019-09-20 Tom Tromey <tom@tromey.com>
3073 * tui/tui-winsource.h (~tui_source_element): Remove.
3074 (tui_source_element): Update.
3075 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3076 * tui/tui-winsource.c (tui_show_source_line): Update.
3077 * tui/tui-source.c (tui_source_window::set_contents): Update.
3078 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3080 2019-09-20 Tom Tromey <tom@tromey.com>
3082 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3084 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3085 tui_clear_source_windows_detail.
3086 * tui/tui-winsource.h (struct tui_source_window_base)
3087 <clear_detail>: Don't declare.
3088 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3090 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3092 2019-09-20 Tom Tromey <tromey@adacore.com>
3095 * block.c (contained_in): Fix final return value.
3097 2019-09-20 Alan Modra <amodra@gmail.com>
3099 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3100 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3101 (read_indirect_string_from_dwz): Use bfd accessor.
3102 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3103 * machoread.c (macho_symfile_read_all_oso): Likewise.
3104 * solib.c (solib_bfd_open): Likewise.
3106 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3108 * eval.c: Move declaration of overload_resolution to...
3111 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3113 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3114 * arm-linux-tdep.c: Likewise.
3115 * arm-nbsd-nat.c: Likewise.
3116 * arm-tdep.h: Declare arm_apcs_32.
3117 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3119 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3121 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3122 * dwarf2read.h: Declare dwarf_always_disassemble.
3124 2019-09-19 Tom de Vries <tdevries@suse.de>
3127 * source-cache.c (source_cache::ensure): Catch exception thrown during
3128 construction of the highlighter.
3130 2019-09-18 Alan Modra <amodra@gmail.com>
3132 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3133 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3134 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3135 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3136 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3137 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3138 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3139 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3140 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3141 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3142 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3143 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3144 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3145 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3146 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3147 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3148 * mi/mi-interp.c: Update throughout for bfd section macro and
3150 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3151 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3153 2019-09-18 Tom Tromey <tom@tromey.com>
3156 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3158 (tui_enable): Do not call rl_initialize.
3160 2019-09-18 Christian Groessler <chris@groessler.org>
3162 * alpha-linux-nat.c: Include gdbarch.h.
3164 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3166 * ui-file.c: Include cli/cli-style.h.
3167 (term_cli_styling): Remove cli_styling declaration.
3169 2019-09-18 Alan Modra <amodra@gmail.com>
3171 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3172 to bfd_asymbol_section.
3174 2019-09-18 Alan Modra <amodra@gmail.com>
3176 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3177 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3178 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3180 2019-09-18 Alan Modra <amodra@gmail.com>
3182 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3183 * spu-linux-nat.c (spu_bfd_open): Likewise.
3185 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3187 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3188 to bool to match definition in dwarf2read.c.
3190 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3192 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3193 (print_signatures): Likewise.
3194 (trust_pad_over_xvs): Likewise.
3195 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3196 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3197 * arm-linux-nat.c (arm_apcs_32): Likewise.
3198 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3199 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3200 * arm-tdep.c (arm_debug): Likewise.
3201 (arm_apcs_32): Likewise.
3202 * auto-load.c (debug_auto_load): Likewise.
3203 (auto_load_gdb_scripts): Likewise.
3204 (global_auto_load): Likewise.
3205 (auto_load_local_gdbinit): Likewise.
3206 (auto_load_local_gdbinit_loaded): Likewise.
3207 * auto-load.h (global_auto_load): Likewise.
3208 (auto_load_local_gdbinit): Likewise.
3209 (auto_load_local_gdbinit_loaded): Likewise.
3210 * breakpoint.c (disconnected_dprintf): Likewise.
3211 (breakpoint_proceeded): Likewise.
3212 (automatic_hardware_breakpoints): Likewise.
3213 (always_inserted_mode): Likewise.
3214 (target_exact_watchpoints): Likewise.
3215 (_initialize_breakpoint): Update.
3216 * breakpoint.h (target_exact_watchpoints): Change to bool.
3217 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3218 * cli/cli-cmds.c (trace_commands): Likewise.
3219 * cli/cli-cmds.h (trace_commands): Likewise.
3220 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3222 * cli/cli-logging.c (logging_overwrite): Change to bool.
3223 (logging_redirect): Likewise.
3224 (debug_redirect): Likewise.
3225 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3226 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3228 <boolean_option_def>: Update.
3229 (struct flag_option_def): Change default type of Context to bool
3231 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3232 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3233 (get_setshow_command_value_string): Likewise.
3234 * cli/cli-style.c (cli_styling): Change to bool.
3235 (source_styling): Likewise.
3236 * cli/cli-style.h (source_styling): Likewise.
3237 (cli_styling): Likewise.
3238 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3240 * command.h (var_types): Update comment.
3241 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3242 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3244 (debug_compile_cplus_scopes): Likewise.
3245 * compile/compile-internal.h (compile_debug): Likewise.
3246 * compile/compile.c (compile_debug): Likewise.
3247 (struct compile_options) <raw>: Likewise.
3248 * cp-support.c (catch_demangler_crashes): Likewise.
3249 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3250 (usr_cmd_cris_dwarf2_cfi): Likewise.
3251 * csky-tdep.c (csky_debug): Likewise.
3252 * darwin-nat.c (enable_mach_exceptions): Likewise.
3253 * dcache.c (dcache_enabled_p): Likewise.
3254 * defs.h (info_verbose): Likewise.
3255 * demangle.c (demangle): Likewise.
3256 (asm_demangle): Likewise.
3257 * dwarf-index-cache.c (debug_index_cache): Likewise.
3258 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3259 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3260 * dwarf2read.c (check_physname): Likewise.
3261 (use_deprecated_index_sections): Likewise.
3262 (dwarf_always_disassemble): Likewise.
3263 * eval.c (overload_resolution): Likewise.
3264 * event-top.c (set_editing_cmd_var): Likewise.
3265 (exec_done_display_p): Likewise.
3266 * event-top.h (set_editing_cmd_var): Likewise.
3267 (exec_done_display_p): Likewise.
3268 * exec.c (write_files): Likewise.
3269 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3270 (debug_fbsd_nat): Likewise.
3271 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3273 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3274 <backtrace_past_entry> Likewise.
3275 * gdb-demangle.h (demangle): Likewise.
3276 (asm_demangle): Likewise.
3277 * gdb_bfd.c (bfd_sharing): Likewise.
3278 * gdbcore.h (write_files): Likewise.
3279 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3280 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3281 * gdbthread.h (print_thread_events): Likewise.
3282 * gdbtypes.c (opaque_type_resolution): Likewise.
3283 (strict_type_checking): Likewise.
3284 * gnu-nat.c (gnu_debug_flag): Likewise.
3285 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3286 * guile/scm-param.c (pascm_variable): Add boolval.
3287 (add_setshow_generic): Update.
3288 (pascm_param_value): Update.
3289 (pascm_set_param_value_x): Update.
3290 * hppa-tdep.c (hppa_debug): Change to bool..
3291 * infcall.c (may_call_functions_p): Likewise.
3292 (coerce_float_to_double_p): Likewise.
3293 (unwind_on_signal_p): Likewise.
3294 (unwind_on_terminating_exception_p): Likewise.
3295 * infcmd.c (startup_with_shell): Likewise.
3296 * inferior.c (print_inferior_events): Likewise.
3297 * inferior.h (startup_with_shell): Likewise.
3298 (print_inferior_events): Likewise.
3299 * infrun.c (step_stop_if_no_debug): Likewise.
3300 (detach_fork): Likewise.
3301 (debug_displaced): Likewise.
3302 (disable_randomization): Likewise.
3303 (non_stop): Likewise.
3304 (non_stop_1): Likewise.
3305 (observer_mode): Likewise.
3306 (observer_mode_1): Likewise.
3307 (set_observer_mode): Update.
3308 (sched_multi): Change to bool.
3309 * infrun.h (debug_displaced): Likewise.
3310 (sched_multi): Likewise.
3311 (step_stop_if_no_debug): Likewise.
3312 (non_stop): Likewise.
3313 (disable_randomization): Likewise.
3314 * linux-tdep.c (use_coredump_filter): Likewise.
3315 (dump_excluded_mappings): Likewise.
3316 * linux-thread-db.c (auto_load_thread_db): Likewise.
3317 (check_thread_db_on_load): Likewise.
3318 * main.c (captured_main_1): Update.
3319 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3320 xx2_opt, boolean_opt>: Change to bool.
3321 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3322 * maint.c (maintenance_profile_p): Likewise.
3323 (per_command_time): Likewise.
3324 (per_command_space): Likewise.
3325 (per_command_symtab): Likewise.
3326 * memattr.c (inaccessible_by_default): Likewise.
3327 * mi/mi-main.c (mi_async): Likewise.
3328 (mi_async_1): Likewise.
3329 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3330 * nat/fork-inferior.h (startup_with_shell): Likewise.
3331 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3332 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3333 * nios2-tdep.c (nios2_debug): Likewise.
3334 * or1k-tdep.c (or1k_debug): Likewise.
3335 * parse.c (parser_debug): Likewise.
3336 * parser-defs.h (parser_debug): Likewise.
3337 * printcmd.c (print_symbol_filename): Likewise.
3338 * proc-api.c (procfs_trace): Likewise.
3339 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3340 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3341 (set_parameter_value): Update.
3342 (add_setshow_generic): Update.
3343 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3345 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3347 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3348 * record-btrace.c (record_btrace_target::store_registers): Update.
3349 * record-full.c (record_full_memory_query): Change to bool.
3350 (record_full_stop_at_limit): Likewise.
3351 * record-full.h (record_full_memory_query): Likewise.
3352 * remote-notif.c (notif_debug): Likewise.
3353 * remote-notif.h (notif_debug): Likewise.
3354 * remote.c (use_range_stepping): Likewise.
3355 (interrupt_on_connect): Likewise.
3356 (remote_break): Likewise.
3357 * ser-tcp.c (tcp_auto_retry): Likewise.
3358 * ser-unix.c (serial_hwflow): Likewise.
3359 * skip.c (debug_skip): Likewise.
3360 * solib-aix.c (solib_aix_debug): Likewise.
3361 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3362 (spu_auto_flush_cache_p): Likewise.
3363 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3365 (struct info_print_options) <quiet>: Likewise.
3366 * symfile-debug.c (debug_symfile): Likewise.
3367 * symfile.c (auto_solib_add): Likewise.
3368 (separate_debug_file_debug): Likewise.
3369 * symfile.h (auto_solib_add): Likewise.
3370 (separate_debug_file_debug): Likewise.
3371 * symtab.c (basenames_may_differ): Likewise.
3372 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3373 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3374 (struct info_types_options) <quiet>: Likewise.
3375 * symtab.h (demangle): Likewise.
3376 (basenames_may_differ): Likewise.
3377 * target-dcache.c (stack_cache_enabled_1): Likewise.
3378 (code_cache_enabled_1): Likewise.
3379 * target.c (trust_readonly): Likewise.
3380 (may_write_registers): Likewise.
3381 (may_write_memory): Likewise.
3382 (may_insert_breakpoints): Likewise.
3383 (may_insert_tracepoints): Likewise.
3384 (may_insert_fast_tracepoints): Likewise.
3385 (may_stop): Likewise.
3386 (auto_connect_native_target): Likewise.
3387 (target_stop_and_wait): Update.
3388 (target_async_permitted): Change to bool.
3389 (target_async_permitted_1): Likewise.
3390 (may_write_registers_1): Likewise.
3391 (may_write_memory_1): Likewise.
3392 (may_insert_breakpoints_1): Likewise.
3393 (may_insert_tracepoints_1): Likewise.
3394 (may_insert_fast_tracepoints_1): Likewise.
3395 (may_stop_1): Likewise.
3396 * target.h (target_async_permitted): Likewise.
3397 (may_write_registers): Likewise.
3398 (may_write_memory): Likewise.
3399 (may_insert_breakpoints): Likewise.
3400 (may_insert_tracepoints): Likewise.
3401 (may_insert_fast_tracepoints): Likewise.
3402 (may_stop): Likewise.
3403 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3404 (make_thread_apply_all_options_def_group): Change argument from int*
3406 (thread_apply_all_command): Update.
3407 (print_thread_events): Change to bool.
3408 * top.c (confirm): Likewise.
3409 (command_editing_p): Likewise.
3410 (history_expansion_p): Likewise.
3411 (write_history_p): Likewise.
3412 (info_verbose): Likewise.
3413 * top.h (confirm): Likewise.
3414 (history_expansion_p): Likewise.
3415 * tracepoint.c (disconnected_tracing): Likewise.
3416 (circular_trace_buffer): Likewise.
3417 * typeprint.c (print_methods): Likewise.
3418 (print_typedefs): Likewise.
3419 * utils.c (debug_timestamp): Likewise.
3420 (sevenbit_strings): Likewise.
3421 (pagination_enabled): Likewise.
3422 * utils.h (sevenbit_strings): Likewise.
3423 (pagination_enabled): Likewise.
3424 * valops.c (overload_resolution): Likewise.
3425 * valprint.h (struct value_print_options) <prettyformat_arrays,
3426 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3427 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3428 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3430 * windows-nat.c (new_console): Likewise.
3431 (cygwin_exceptions): Likewise.
3432 (new_group): Likewise.
3433 (debug_exec): Likewise.
3434 (debug_events): Likewise.
3435 (debug_memory): Likewise.
3436 (debug_exceptions): Likewise.
3437 (useshell): Likewise.
3438 * windows-tdep.c (maint_display_all_tib): Likewise.
3439 * xml-support.c (debug_xml): Likewise.
3441 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3443 * source.c (prepare_path_for_appending): New function.
3444 (openp): Make use of new function.
3445 (find_and_open_source): Search for the compilation directory and
3446 source file as a relative path beneath the directory search path.
3448 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3450 * source-cache.c (source_cache::get_line_charpos): Catch
3451 exceptions and return false, this matches the behaviour documented
3454 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3456 * ada-tasks.c (info_task): Remove quoting of the task's name.
3458 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3460 * symfile.c (auto_solib_add): Replace comment with a reference
3463 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3465 * NEWS: Mention that gdb can now be compiled with Python 3
3468 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3470 * maint.c (maint_print_section_data::maint_print_section_data):
3471 Force use of 'float log10 (float)' by casting the argument to
3474 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3476 * maint.c: Add 'cmath' include.
3477 (struct maint_print_section_data): New structure.
3478 (print_section_index): New function.
3479 (print_bfd_section_info): Add header comment, small whitespace
3480 cleanup, and update to call new print_section_index function.
3481 (print_objfile_section_info): Likewise.
3482 (maint_obj_section_from_bfd_section): New function.
3483 (print_bfd_section_info_maybe_relocated): New function.
3484 (maintenance_info_sections): Add header comment, always use
3485 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3487 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3489 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3490 inner scope, add check that the objfile has psymtabs before
3491 checking psymtabs_addrmap.
3492 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3494 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3496 * NEWS: Announce that Ada task names are now shown at more places,
3497 and between quotes (except in info task output).
3498 * gdb/ada-tasks.c (task_to_str): New function.
3499 (display_current_task_id): Call task_to_str.
3500 (task_command_1): Likewise.
3501 (print_ada_task_info): In non-mi mode, Properly align headers and data
3502 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3504 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3506 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3507 prstatus.pr_lwp.pr_info instead of making it up.
3509 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3511 * auto-load.c (auto_load_expand_dir_vars): Update.
3512 * defs.h (gdb_datadir): Change to std::string.
3513 (python_libdir): Likewise.
3514 (relocate_gdb_directory): Change return type to std::string.
3515 * guile/guile.c (gdbscm_data_directory): Update.
3516 (initialize_scheme_side): Update.
3517 * jit.c (jit_reader_dir): Change to std::string.
3518 (jit_reader_load_command): Update.
3519 * main.c (gdb_datadir): Change to std::string.
3520 (python_libdir): Likewise.
3521 (set_gdb_data_directory): Update.
3522 (relocate_path): Change to return std::string.
3523 (relocate_gdb_directory): Change to return std::string.
3524 (relocate_gdbinit_path_maybe_in_datadir): Update.
3525 (captured_main_1): Update.
3526 * python/python.c (do_start_initialization): Update.
3527 * top.c (show_gdb_datadir): Update.
3528 * xml-syscall.c (xml_init_syscalls_info): Update.
3529 (init_syscalls_info): Update.
3531 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3533 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3534 out of get_init_files.
3535 (get_init_files): Update.
3537 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3539 * main.c (get_init_files): Change to use std::string.
3540 (captured_main_1): Update.
3541 (print_gdb_help): Update.
3543 2019-09-11 Ali Tamur <tamur@google.com>
3545 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3548 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3550 * dbxread.c (read_dbx_symtab): Update.
3551 * dwarf2read.c (load_partial_dies): Update.
3552 * mdebugread.c (parse_partial_symbols): Update.
3553 (handle_psymbol_enumerators): Update.
3554 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3555 * psymtab.c (add_psymbol_to_bcache): Likewise.
3556 (add_psymbol_to_list): Likewise.
3557 * symtab.c (symbol_set_names): Likewise.
3558 * symtab.h (symbol_set_names): Likewise.
3559 * xcoffread.c (scan_xcoff_symtab): Update.
3561 2019-09-11 Tom Tromey <tom@tromey.com>
3563 * symfile-mem.c (symbol_file_add_from_memory): Use
3565 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3566 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3568 2019-09-10 Tom Tromey <tromey@adacore.com>
3570 * dwarf-index-write.c (write_psymbols): Extend error message.
3571 (debug_names::insert): Add Ada code.
3572 (debug_names::write_psymbols): Remove Ada check.
3573 (debug_names) <m_string_obstack>: New member.
3574 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3575 (gdb_index_symbol_name_matcher::matches): Remove.
3576 (mapped_index_base::find_name_components_bounds): Add "lang"
3578 (mapped_index_base::build_name_components): Also split names
3579 according to Ada syntax.
3580 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3581 type of "match_callback".
3582 (check_match, check_find_bounds_finds)
3583 (dw2_expand_symtabs_matching): Update.
3584 (dw2_debug_names_iterator): Add new constructor.
3585 (dw2_debug_names_map_matching_symbols): New function.
3586 (dw2_debug_names_expand_symtabs_matching): Update.
3587 (dwarf2_debug_names_functions): Use
3588 dw2_debug_names_map_matching_symbols.
3590 2019-09-10 Tom Tromey <tromey@adacore.com>
3592 * dwarf2read.c (dw2_get_file_names_reader): Add the
3593 CU's file name to the results.
3595 2019-09-10 Tom Tromey <tromey@adacore.com>
3597 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3598 map_matching_symbols. Update.
3599 * dwarf2read.c (dw2_map_matching_symbols): Update.
3600 * psymtab.c (match_partial_symbol): Change type; update.
3601 (psym_map_matching_symbols): Likewise.
3602 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3604 * symfile.h (struct quick_symbol_functions)
3605 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3608 2019-09-10 Tom Tromey <tromey@adacore.com>
3610 * psymtab.c (map_block): Remove.
3611 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3612 * symtab.c (iterate_over_symbols_terminated): New function.
3613 * symtab.c (iterate_over_symbols_terminated): Declare.
3615 2019-09-10 Tom Tromey <tromey@adacore.com>
3617 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3618 * language.h (struct language_defn) <la_iterate_over_symbols>:
3620 * symtab.c (iterate_over_symbols): Return bool.
3621 * symtab.h (iterate_over_symbols): Return bool.
3623 2019-09-10 Tom Tromey <tromey@adacore.com>
3625 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3626 (add_nonlocal_symbols): Update.
3627 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3628 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3629 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3630 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3631 Change type of "callback". Remove "data".
3634 2019-09-09 Ali Tamur <tamur@google.com>
3636 * dwarf2read.c (comp_unit_head): Update comment.
3637 (dwarf2_dwo_name): New function declaration.
3638 (dwarf_unit_type_name): New function declaration.
3639 (read_comp_unit_head): Add support for new compilation units,
3640 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3641 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3642 (currently named as "signature") in their header. Also clarify error
3644 (lookup_dwo_id): New function. Returns the dwo id of the given
3646 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3647 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3649 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3650 (dwarf2_dwo_name): Get the dwo name if present.
3651 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3654 2019-09-09 Tom Tromey <tom@tromey.com>
3656 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3658 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3660 * python/python.c (do_start_initialization): Make progname_copy static,
3661 to avoid a leak report.
3663 2019-09-08 Tom Tromey <tom@tromey.com>
3665 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3667 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3669 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3670 Change type to gdb::optional<block_enum>.
3671 (dw2_symtab_iter_init): Change block_index parameter type
3672 to gdb::optional<block_enum>.
3673 (dw2_lookup_symbol): Change block_index parameter
3674 type to block_enum.c
3675 (dw2_debug_names_lookup_symbol): Likewise.
3676 * psymtab.c (psym_lookup_symbol): Likewise.
3677 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3678 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3681 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3683 * defs.h (relocate_gdb_directory): Change int to bool in
3684 signature and rename flag to relocatable.
3685 * main.c (relocate_path): Likewise.
3686 (relocate_gdb_directory): Likewise.
3688 2019-09-06 Alan Modra <amodra@gmail.com>
3690 * coffread.c (coff_symfile_read): Constify filename variable.
3691 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3692 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3693 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3694 * solib.c (reload_shared_libraries_1): Likewise.
3695 * symfile.c (reread_symbols): Likewise.
3696 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3697 * solib-darwin.c (darwin_bfd_open): Likewise.
3698 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3700 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3702 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3703 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3705 2019-09-03 Tom Tromey <tromey@adacore.com>
3707 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3709 (has_negatives): Unbias a range type bound.
3710 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3711 * gdbtypes.c (operator==): Handle new field.
3712 (create_range_type): Add "bias" parameter.
3713 (create_static_range_type, resolve_dynamic_range): Update.
3714 * gdbtypes.h (struct range_bounds) <bias>: New member.
3715 (create_range_type): Add bias parameter.
3716 * printcmd.c (print_scalar_formatted): Unbias range types.
3717 * value.c (unpack_long): Unbias range types.
3718 (pack_long): Bias range types.
3720 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3722 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3725 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3727 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3728 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3729 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3730 (compile_probe_arg): Likewise.
3731 * probe.h (get_argument_count): Likewise.
3732 * solib-svr4.c (solib_event_probe_action): Likewise.
3733 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3735 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3737 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3739 (svr4_create_solib_event_breakpoints): ...from here.
3741 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3743 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3744 suffix from warning message.
3746 2019-08-30 Tom Tromey <tom@tromey.com>
3748 * tui/tui-winsource.h (struct tui_source_window_base)
3749 <refresh_all>: Don't declare.
3750 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3752 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3753 tui_show_locator_content.
3754 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3756 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3757 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3760 2019-08-30 Tom Tromey <tom@tromey.com>
3762 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3764 2019-08-30 Tom Tromey <tom@tromey.com>
3766 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3767 Remove unnecessary forward declarations.
3769 2019-08-30 Tom Tromey <tom@tromey.com>
3771 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3773 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3774 tui_show_locator_content.
3776 2019-08-30 Tom Tromey <tom@tromey.com>
3778 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3779 (tui_locator_window::rerender): Rewrite using body of previous
3780 tui_show_locator_content.
3782 2019-08-30 Tom Tromey <tom@tromey.com>
3784 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3785 set_locator_fullname>: New methods.
3786 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3787 Rename from tui_set_locator_fullname.
3788 (tui_locator_window::set_locator_info): Rename from
3789 tui_set_locator_info. Return bool.
3790 (tui_update_locator_fullname, tui_show_frame_info): Update.
3792 2019-08-30 Tom Tromey <tom@tromey.com>
3794 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3796 2019-08-30 Tom Tromey <tom@tromey.com>
3798 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3801 2019-08-30 Tom Tromey <tom@tromey.com>
3803 * tui/tui-wingeneral.c (box_win): Assume win_info and
3804 win_info->handle cannot be NULL.
3806 2019-08-30 Tom Tromey <tom@tromey.com>
3808 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3809 refresh_window>: Declare.
3810 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3812 (tui_data_item_window::rerender): Rename from
3813 tui_display_register.
3814 (tui_data_item_window::refresh_window): New method.
3815 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3818 2019-08-30 Tom Tromey <tom@tromey.com>
3820 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3821 regs_column_count, current_group>: Move later. Now private.
3822 <get_current_group>: New method.
3823 * tui/tui-regs.c (tui_reg_command): Update.
3824 * tui/tui-layout.c (tui_set_layout): Update.
3826 2019-08-30 Tom Tromey <tom@tromey.com>
3828 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3829 (tui_data_window::rerender): Don't call
3830 check_and_display_highlight_if_needed.
3831 (tui_data_window::refresh_all): Remove call to
3834 2019-08-30 Tom Tromey <tom@tromey.com>
3836 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3837 (tui_data_window::display_registers_from)
3838 (tui_data_window::display_reg_element_at_line)
3839 (tui_data_window::display_registers_from_line): Remove checks of
3842 2019-08-30 Tom Tromey <tom@tromey.com>
3844 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3846 * tui/tui-regs.c (tui_data_window::show_registers): Call
3848 (tui_data_window::rerender): Rename from display_all_data.
3849 (tui_data_window::rerender): Remove old implementation.
3851 2019-08-30 Tom Tromey <tom@tromey.com>
3853 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3855 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3857 2019-08-29 Bernhard Wodok <barto@gmx.net>
3858 Sergio Durigan Junior <sergiodj@redhat.com>
3861 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3863 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3865 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3866 when searching for types.
3868 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3870 * f-lang.c (f_language_defn): Use f_print_typedef.
3871 * f-lang.h (f_print_typedef): Declare.
3872 * f-typeprint.c (f_print_typedef): Define.
3874 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3876 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3878 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3880 * cli/cli-utils.c (info_print_options_defs): Delete.
3881 (make_info_print_options_def_group): Delete.
3882 (extract_info_print_options): Delete.
3883 (info_print_command_completer): Delete.
3884 (info_print_args_help): Add extra parameter, and optionally
3885 include text about -n flag.
3886 * cli/cli-utils.h (struct info_print_options): Delete.
3887 (extract_info_print_options): Delete declaration.
3888 (info_print_command_completer): Delete declaration.
3889 (info_print_args_help): Add extra parameter, extend header
3891 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3893 * stack.c (struct info_print_options): New type.
3894 (info_print_options_defs): New file scoped variable.
3895 (make_info_print_options_def_group): New static function.
3896 (info_print_command_completer): New static function.
3897 (info_locals_command): Update to use new local functions.
3898 (info_args_command): Likewise.
3899 (_initialize_stack): Add extra parameter to calls to
3900 info_print_args_help.
3901 * symtab.c (search_symbols): Add extra parameter, use this to
3902 possibly excluse non-debug symbols.
3903 (symtab_symbol_info): Add extra parameter, which is passed on to
3905 (struct info_print_options): New type.
3906 (info_print_options_defs): New file scoped variable.
3907 (make_info_print_options_def_group): New static function.
3908 (info_print_command_completer): New static function.
3909 (info_variables_command): Update to use local functions, and pass
3910 extra parameter through to symtab_symbol_info.
3911 (info_functions_command): Likewise.
3912 (info_types_command): Pass additional argument through to
3914 (rbreak_command): Pass extra argument to search_symbols.
3915 (_initialize_symtab): Add extra arguments for calls to
3916 info_print_args_help, and update help text for 'info variables',
3917 'whereis', and 'info functions' commands.
3918 * symtab.h (search_symbols): Add extra argument to declaration.
3919 * NEWS: Mention new flags.
3921 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3923 * symtab.c (lookup_static_symbol): Call the new function (and move
3924 it down to be next to lookup_global_symbol).
3925 (struct global_sym_lookup_data): Add block_enum member and rename to...
3926 (struct global_or_static_sym_lookup_data): ...this.
3927 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3928 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3929 (lookup_symbol_global_or_static_iterator_cb): ...this.
3930 (lookup_global_or_static_symbol): New function.
3931 (lookup_global_symbol): Call new function.
3933 2019-08-26 Tom de Vries <tdevries@suse.de>
3936 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3937 when pc_probe.prob == NULL.
3939 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3941 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3942 variable symbol_linkage to symbol_linkage_.
3944 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3946 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3947 represent whether the symbol is static, dynamic, or we don't
3950 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3952 * gdb/rx-tdep.c (rx_register_names): New.
3953 (rx_register_name): Delete.
3954 (rx_psw_type): Delete.
3955 (rx_fpsw_type): Delete.
3956 (rx_register_type): Delete.
3957 (rx_gdbarch_init): Convert target-descriptions.
3958 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3959 * gdb/features/Makefile: Add rx.xml.
3960 * gdb/features/rx.xml: New.
3961 * gdb/features/rx.c: Generated.
3962 * gdb/NEWS: Mention target description support.
3964 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3966 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3969 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3971 * configure.ac: Don't check for 'dlfcn.h' (moved to
3972 gdbsupport/common.m4).
3973 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3975 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3976 * compile/compile-c-support.c: Include
3977 'gdbsupport/gdb-dlfcn.h'.
3978 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3979 * gdb-dlfcn.c: Move to...
3980 * gdbsupport/gdb-dlfcn.c: ... here.
3981 * gdb-dlfcn.h: Move to...
3982 * gdbsupport/gdb-dlfcn.h: ... here.
3984 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3986 * nios2-tdep.c (struct reg_value): Improve comments. Make
3987 the offset field signed.
3989 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3991 * python/lib/gdb/__init__.py (_execute_file): New function.
3992 * python/python.c (python_run_simple_file): Call gdb._execute_file
3995 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3997 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3998 all uses as this was never set to anything but a zero value.
4000 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4002 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4004 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4006 * tui/tui-data.h (tui_gen_win_info): Add an =default
4007 move constructor, required by some GCC versions.
4009 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4011 * go32-nat.c (go32_sysinfo): Add hygon_p.
4013 2019-08-20 Tom Tromey <tom@tromey.com>
4015 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4016 line_from_reg_element_no, first_reg_element_no_inline,
4017 display_all_data, delete_data_content_windows,
4018 erase_data_content>: Now private.
4020 2019-08-20 Tom Tromey <tom@tromey.com>
4022 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4023 (tui_unhighlight_win, tui_highlight_win)
4024 (tui_win_info::make_window): Update.
4025 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4027 2019-08-20 Tom Tromey <tom@tromey.com>
4029 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4030 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4031 (MAX_PID_WIDTH): Move to tui-stack.c.
4032 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4033 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4034 (MAX_PID_WIDTH): Move from tui-data.h.
4036 2019-08-20 Tom Tromey <tom@tromey.com>
4038 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4039 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4041 (tui_gen_win_info::make_window): Rename from tui_make_window.
4042 (tui_win_info::make_window): New method.
4043 (tui_gen_win_info::make_visible): Update.
4044 * tui/tui-source.c (tui_source_window::set_contents): Update.
4045 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4046 (tui_data_window::display_registers_from): Update.
4047 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4048 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4052 (struct tui_win_info) <make_window>: Declare.
4053 <can_box>: Now virtual.
4054 <title>: New member.
4055 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4056 * tui/tui-command.c (tui_cmd_window::resize): Update.
4058 2019-08-20 Tom Tromey <tom@tromey.com>
4060 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4061 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4062 (tui_data_window::check_register_values): Update.
4064 2019-08-20 Tom Tromey <tom@tromey.com>
4066 * tui/tui-regs.h (struct tui_data_window): Use
4067 DISABLE_COPY_AND_ASSIGN.
4068 <regs_content>: Change type, removing unique_ptr.
4069 <tui_data_window>: Add move constructor.
4070 * tui/tui-regs.c (tui_data_window::show_registers)
4071 (tui_data_window::show_register_group)
4072 (tui_data_window::display_registers_from)
4073 (tui_data_window::display_registers_from)
4074 (tui_data_window::first_data_item_displayed)
4075 (tui_data_window::delete_data_content_windows)
4076 (tui_data_window::rerender, tui_data_window::refresh_window)
4077 (tui_data_window::check_register_values): Update.
4079 2019-08-20 Tom Tromey <tom@tromey.com>
4081 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4082 show_register_group>: Declare.
4083 (tui_show_register_group): Don't declare.
4084 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4086 (tui_data_window::show_register_group): Rename from
4087 tui_show_register_group.
4088 (tui_data_window::check_register_values, tui_reg_command):
4090 * tui/tui-layout.c (tui_set_layout): Update.
4092 2019-08-20 Tom Tromey <tom@tromey.com>
4094 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4096 (tui_check_register_values): Don't declare.
4097 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4098 from tui_check_register_values.
4099 * tui/tui-hooks.c (tui_register_changed): Update.
4101 2019-08-20 Tom Tromey <tom@tromey.com>
4103 * tui/tui-regs.c (tui_reg_layout): Move later.
4104 (tui_show_registers): Don't enable TUI mode or change layout.
4106 2019-08-20 Tom Tromey <tom@tromey.com>
4108 * tui/tui-regs.h (struct tui_data_item_window)
4109 <~tui_data_item_window>: Remove.
4110 <content>: Now a unique_xmalloc_ptr.
4111 * tui/tui-regs.c (tui_register_format): Return a
4113 (tui_get_register): Update.
4114 (~tui_data_item_window): Remove.
4115 (tui_data_window::display_registers_from, tui_display_register):
4117 * tui/tui-io.h (tui_expand_tabs): Update.
4118 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4119 Remove "col" parameter.
4121 2019-08-20 Tom Tromey <tom@tromey.com>
4123 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4125 * tui/tui-regs.c (~tui_data_item_window): Update.
4127 2019-08-20 Tom Tromey <tom@tromey.com>
4129 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4132 2019-08-20 Tom Tromey <tom@tromey.com>
4134 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4136 2019-08-20 Tom Tromey <tom@tromey.com>
4138 * tui/tui-source.h (struct tui_source_window): Update.
4139 * tui/tui-regs.c (tui_show_registers): Update.
4140 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4141 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4142 (NO_REGS_STRING): Remove defines.
4144 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4146 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4147 unnecessary thread walk if remote doesn't support the packet.
4149 2019-08-19 Tom Tromey <tromey@adacore.com>
4151 * python/py-value.c (value_has_field): Fix indentation.
4153 2019-08-19 Tom Tromey <tromey@adacore.com>
4155 * printcmd.c (do_one_display, info_display_command): Update.
4156 * block.h (contained_in): Return bool. Add allow_nested
4158 * block.c (contained_in): Return bool. Add allow_nested
4161 2019-08-19 Tom Tromey <tom@tromey.com>
4163 * configure: Rebuild.
4164 * configure.ac: Disallow the combination of -static-libstdc++ and
4166 * source-cache.c (get_language_name): Handle rust.
4167 (source_cache::get_source_lines): Ignore highlighting exceptions.
4169 2019-08-16 Tom Tromey <tom@tromey.com>
4171 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4172 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4173 (struct tui_source_window_base) <make_visible, refresh_window,
4174 resize>: Remove methods.
4175 <execution_info>: Remove field.
4176 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4177 (tui_show_source_line, tui_source_window_base)
4178 (~tui_source_window_base): Update.
4179 (tui_source_window_base::resize)
4180 (tui_source_window_base::make_visible)
4181 (tui_source_window_base::refresh_window): Remove.
4182 (tui_source_window_base::update_exec_info): Update.
4183 * tui/tui-source.c (tui_source_window::set_contents): Update.
4184 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4186 2019-08-16 Tom Tromey <tom@tromey.com>
4188 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4189 deprecated_query_hook.
4191 2019-08-16 Tom Tromey <tom@tromey.com>
4193 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4194 (tui_update_source_windows_with_line): Update.
4195 * tui/tui-source.h (struct tui_source_window)
4196 <show_symtab_source>: Declare.
4197 (tui_show_symtab_source): Don't declare.
4198 * tui/tui-source.c (tui_show_symtab_source): Rename from
4199 tui_show_symtab_source.
4201 2019-08-16 Tom Tromey <tom@tromey.com>
4203 * tui/tui-winsource.h (struct tui_source_window_base)
4204 <set_contents>: Declare.
4205 * tui/tui-winsource.c
4206 (tui_source_window_base::update_source_window_as_is): Update.
4207 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4209 (tui_set_source_content): Don't declare.
4210 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4211 tui_set_source_content.
4212 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4214 (tui_set_disassem_content): Don't declare.
4215 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4216 tui_set_disassem_content.
4218 2019-08-16 Tom Tromey <tom@tromey.com>
4220 * tui/tui-winsource.h (struct tui_source_window_base)
4221 <update_breakpoint_info>: Declare.
4222 (tui_update_breakpoint_info): Don't declare.
4223 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4224 (tui_update_all_breakpoint_info): Update.
4225 (tui_source_window_base::update_breakpoint_info): Rename from
4226 tui_update_breakpoint_info.
4227 (tui_source_window_base::update_exec_info): Update.
4229 2019-08-16 Tom Tromey <tom@tromey.com>
4231 * tui/tui-winsource.h (struct tui_source_window_base)
4232 <update_source_window>: Declare.
4233 (tui_update_source_window): Don't declare.
4234 * tui/tui-winsource.c
4235 (tui_source_window_base::update_source_window): Rename from
4236 tui_update_source_window.
4237 (tui_source_window_base::rerender): Update.
4238 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4239 * tui/tui-disasm.c (tui_show_disassem)
4240 (tui_show_disassem_and_update_source)
4241 (tui_disasm_window::maybe_update): Update.
4243 2019-08-16 Tom Tromey <tom@tromey.com>
4245 * tui/tui-winsource.h (struct tui_source_window_base)
4246 <update_source_window_as_is>: Declare.
4247 (tui_update_source_window_as_is): Don't declare.
4248 * tui/tui-winsource.c (tui_update_source_window): Update
4249 (tui_source_window_base::update_source_window_as_is): Rename from
4250 tui_update_source_window_as_is.
4251 (tui_source_window_base::refill): Update.
4252 * tui/tui-source.c (tui_show_symtab_source): Update.
4253 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4256 2019-08-16 Tom Tromey <tom@tromey.com>
4258 * tui/tui-winsource.h (tui_update_source_window)
4259 (tui_update_source_window_as_is): Remove "noerror" parameter.
4260 * tui/tui-winsource.c (tui_update_source_window)
4261 (tui_update_source_window_as_is): Remove "noerror" parameter.
4262 (tui_update_source_windows_with_addr)
4263 (tui_update_source_windows_with_line)
4264 (tui_source_window_base::rerender)
4265 (tui_source_window_base::refill): Update.
4266 * tui/tui-source.h (tui_set_source_content)
4267 (tui_show_symtab_source): Remove "noerror" parameter.
4268 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4270 (tui_show_symtab_source): Likewise.
4271 (tui_source_window::maybe_update): Update.
4272 * tui/tui-disasm.c (tui_show_disassem)
4273 (tui_show_disassem_and_update_source)
4274 (tui_disasm_window::do_scroll_vertical)
4275 (tui_disasm_window::maybe_update): Update.
4277 2019-08-16 Tom Tromey <tom@tromey.com>
4279 * tui/tui.c (tui_is_window_visible): Update.
4280 * tui/tui-wingeneral.c (tui_make_window)
4281 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4282 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4283 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4284 (tui_set_win_height_command, parse_scrolling_args): Update.
4285 * tui/tui-source.c (tui_source_window::style_changed): Update.
4286 * tui/tui-regs.c (tui_show_registers)
4287 (tui_data_window::first_data_item_displayed)
4288 (tui_data_window::delete_data_content_windows)
4289 (tui_check_register_values, tui_reg_command): Update.
4290 * tui/tui-disasm.c (tui_show_disassem): Update.
4291 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4293 <is_visible>: Remove field.
4294 * tui/tui-data.c (tui_next_win, tui_prev_win)
4295 (tui_delete_invisible_windows): Update.
4297 2019-08-16 Tom Tromey <tom@tromey.com>
4299 * tui/tui-winsource.h (struct tui_source_window_base)
4300 <m_has_locator>: Remove.
4301 * tui/tui-layout.c (show_source_disasm_command, show_data)
4302 (show_source_or_disasm_and_command): Update.
4304 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4306 * NEWS (Other MI changes): New subsection.
4307 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4308 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4309 * arch-utils.c (default_get_pc_address_flags): New function.
4310 * arch-utils.h (default_get_pc_address_flags): New declaration.
4311 * gdbarch.sh: Add get_pc_address_flags.
4312 * gdbarch.c: Regenerate.
4313 * gdbarch.h: Likewise.
4314 * stack.c (print_pc): New function.
4315 (print_frame_info) (print_frame): Call print_pc.
4317 2019-08-16 Tom de Vries <tdevries@suse.de>
4319 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4320 print_objfile_section_info.
4322 2019-08-15 Tom Tromey <tom@tromey.com>
4324 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4325 calling update_cmdwin_start_line.
4326 * tui/tui-winsource.h (struct tui_source_window_base)
4327 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4328 <rerender>: Declare.
4329 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4331 (tui_source_window_base::set_new_height): Remove.
4332 (tui_source_window_base::rerender): Rename from
4333 do_make_visible_with_new_height.
4334 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4336 (tui_win_info::make_invisible_and_set_new_height)
4337 (tui_win_info::make_visible_with_new_height): Remove.
4338 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4340 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4341 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4342 do_make_visible_with_new_height>: Don't declare.
4343 <rerender>: Declare.
4344 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4346 (tui_data_window::do_make_visible_with_new_height): Remove.
4347 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4348 call tui_show_locator_content.
4349 (tui_gen_win_info::resize): Call rerender.
4350 (show_source_or_disasm_and_command): Don't call
4351 tui_show_locator_content.
4352 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4354 (struct tui_win_info) <rerender>: Declare.
4355 <set_new_height, make_invisible_and_set_new_height,
4356 make_visible_with_new_height>: Don't declare.
4357 * tui/tui-data.c (tui_win_list::rerender): New method.
4358 * tui/tui-command.h (struct tui_cmd_window)
4359 <do_make_visible_with_new_height>: Don't declare.
4361 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4363 2019-08-15 Tom Tromey <tromey@adacore.com>
4365 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4366 * ada-lang.c (ada_enum_name): Likewise.
4368 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4370 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4372 (GdbOutputErrorFile): Likewise.
4373 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4375 (execute_unwinders): Rename to have a leading underscore.
4376 (auto_load_packages): Likewise.
4377 (global scope): Adjust call to auto_load_packages accordingly.
4378 (GdbSetPythonDirectory): Likewise.
4379 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4380 instead of execute_unwinders.
4382 2019-08-15 Tom Tromey <tom@tromey.com>
4384 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4385 (show_data): Don't change window visibility.
4386 (tui_gen_win_info::resize): Remove special case for command
4387 window. Use wresize, when available.
4388 (show_source_or_disasm_and_command): Don't change window
4390 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4391 <make_visible>: New method.
4392 * tui/tui-command.c (tui_cmd_window::resize): New method.
4394 2019-08-15 Tom Tromey <tom@tromey.com>
4396 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4397 (struct tui_source_windows): New.
4398 * tui/tui-winsource.c (tui_display_main): Update.
4399 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4400 (new_height_ok, parse_scrolling_args): Update.
4401 * tui/tui-layout.c (show_layout, show_data): Update.
4402 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4403 (tui_add_to_source_windows): Don't declare.
4404 * tui/tui-data.c (source_windows, tui_source_windows)
4405 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4407 2019-08-15 Tom Tromey <tom@tromey.com>
4409 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4411 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4412 * tui/tui-layout.c (show_source_disasm_command, show_data):
4414 (tui_gen_win_info::resize): Rename.
4415 (show_source_or_disasm_and_command): Update.
4416 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4419 2019-08-15 Tom Tromey <tom@tromey.com>
4421 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4422 * tui/tui-interp.c (tui_interp::init): Don't call
4423 tui_initialize_static_data.
4424 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4426 2019-08-15 Tom Tromey <tom@tromey.com>
4428 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4429 examine tui_win_list.
4431 2019-08-15 Tom Tromey <tom@tromey.com>
4433 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4434 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4435 tui_clear_source_content.
4436 (tui_clear_source_content): Remove.
4437 (tui_source_window_base::do_erase_source_content): Hoist call to
4439 * tui/tui-stack.c (tui_show_frame_info): Don't call
4440 tui_clear_source_content.
4442 2019-08-15 Tom Tromey <tom@tromey.com>
4444 * tui/tui-winsource.h (struct tui_source_window_base)
4445 <do_erase_source_content>: New method.
4446 <erase_source_content>: New method.
4447 (tui_erase_source_content): Don't declare.
4448 * tui/tui-winsource.c (tui_clear_source_content): Update.
4449 (tui_source_window_base::do_erase_source_content): Rename from
4450 tui_erase_source_content.
4451 (tui_source_window_base::show_source_content): Update.
4452 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4453 * tui/tui-source.h (struct tui_source_window)
4454 <erase_source_content>: New method.
4455 * tui/tui-disasm.h (struct tui_disasm_window)
4456 <erase_source_content>: New method.
4458 2019-08-15 Tom Tromey <tom@tromey.com>
4460 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4461 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4463 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4464 * tui/tui-source.c (tui_set_source_content): Update.
4465 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4467 2019-08-15 Tom Tromey <tom@tromey.com>
4469 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4470 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4472 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4474 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4476 (tui_source_window::maybe_update): Update.
4478 2019-08-15 Tom Tromey <tom@tromey.com>
4480 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4481 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4483 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4485 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4487 (tui_disasm_window::maybe_update): Update.
4489 2019-08-15 Tom Tromey <tom@tromey.com>
4491 * tui/tui-winsource.h (struct tui_source_window_base)
4492 <maybe_update>: Declare.
4493 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4495 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4497 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4498 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4500 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4502 2019-08-15 Tom Tromey <tom@tromey.com>
4504 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4506 2019-08-15 Tom Tromey <tom@tromey.com>
4508 * tui/tui-wingeneral.c: Include tui-stack.h.
4509 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4510 (struct tui_locator_window): Move from tui-data.h.
4511 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4512 (tui_initialize_static_data): Move from tui-data.c.
4513 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4514 (struct tui_locator_window): Move to tui-stack.c.
4515 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4516 (tui_initialize_static_data): Move to tui-stack.c.
4518 2019-08-15 Tom Tromey <tom@tromey.com>
4520 * tui/tui-layout.c (show_source_disasm_command)
4521 (show_source_or_disasm_and_command): Use make_visible method, not
4523 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4526 2019-08-15 Tom Tromey <tom@tromey.com>
4528 * tui/tui-wingeneral.h (tui_make_window): Update.
4529 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4531 (tui_gen_win_info::make_visible): Update.
4532 * tui/tui-regs.c (tui_data_window::display_registers_from):
4534 * tui/tui-layout.c (show_source_disasm_command)
4535 (show_source_or_disasm_and_command): Update.
4536 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4537 (enum tui_box): Remove.
4538 (struct tui_win_info) <can_box>: New method.
4539 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4542 2019-08-15 Tom de Vries <tdevries@suse.de>
4544 * linux-nat-trad.c: Include gdbarch.h.
4546 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4548 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4551 2019-08-14 Tom Tromey <tromey@adacore.com>
4553 * darwin-nat.c: Include gdbarch.h.
4554 * darwin-nat-info.c: Include gdbarch.h.
4556 2019-08-13 Tom Tromey <tom@tromey.com>
4558 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4560 * tui/tui-data.c (tui_initialize_static_data): Update.
4562 2019-08-13 Tom Tromey <tom@tromey.com>
4564 * tui/tui-winsource.h (struct tui_exec_info_window)
4565 <~tui_exec_info_window, maybe_allocate_content, get_content,
4567 (struct tui_source_window_base) <set_exec_info_content,
4568 show_exec_info_content>: Don't declare.
4569 * tui/tui-winsource.c
4570 (tui_exec_info_window::maybe_allocate_content): Remove.
4571 (tui_source_window_base::update_exec_info): Rename from
4572 set_exec_info_content.
4573 (tui_source_window_base::show_exec_info_content)
4574 (tui_source_window_base::update_exec_info): Remove.
4576 2019-08-13 Tom Tromey <tom@tromey.com>
4578 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4580 * tui/tui-winsource.c (tui_update_source_window_as_is)
4581 (tui_update_source_windows_with_addr, tui_erase_source_content):
4583 (tui_clear_exec_info_content): Remove.
4585 2019-08-13 Tom Tromey <tom@tromey.com>
4587 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4589 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4590 call tui_erase_exec_info_content.
4591 (tui_clear_exec_info_content): Rename from
4592 tui_erase_exec_info_content.
4593 (tui_clear_exec_info_content): Delete.
4595 2019-08-13 Tom Tromey <tom@tromey.com>
4597 * tui/tui-winsource.h (struct tui_source_window_base)
4598 <show_exec_info_content>: Declare.
4599 (tui_show_exec_info_content): Don't declare.
4600 * tui/tui-winsource.c
4601 (tui_source_window_base::show_exec_info_content): Rename from
4602 tui_show_exec_info_content.
4603 (tui_source_window_base::update_exec_info): Update.
4605 2019-08-13 Tom Tromey <tom@tromey.com>
4607 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4608 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4609 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4610 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4611 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4612 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4615 2019-08-13 Tom Tromey <tom@tromey.com>
4617 * tui/tui-winsource.h (struct tui_source_window_base)
4618 <update_exec_info>: Declare.
4619 (tui_update_exec_info): Don't declare.
4620 * tui/tui-winsource.c (tui_update_source_window_as_is)
4621 (tui_source_window_base::refresh_all)
4622 (tui_update_all_breakpoint_info): Update.
4623 (tui_source_window_base::update_exec_info): Rename from
4624 tui_update_exec_info.
4625 * tui/tui-stack.c (tui_show_frame_info): Update.
4627 2019-08-13 Tom Tromey <tom@tromey.com>
4629 * tui/tui-winsource.h (struct tui_source_window_base)
4630 <set_exec_info_content>: Declare.
4631 (tui_set_exec_info_content): Don't declare.
4632 * tui/tui-winsource.c
4633 (tui_source_window_base::set_exec_info_content): Rename from
4634 tui_set_exec_info_content.
4635 (tui_update_exec_info): Update.
4637 2019-08-13 Tom Tromey <tom@tromey.com>
4639 * tui/tui-winsource.h (struct tui_source_window_base)
4640 <show_source_content>: Declare.
4641 (tui_show_source_content): Don't declare.
4642 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4643 (tui_source_window_base::show_source_content): Rename from
4644 tui_show_source_content.
4645 (tui_source_window_base::refresh_all): Update.
4646 * tui/tui-layout.c (show_source_disasm_command)
4647 (show_source_or_disasm_and_command): Update.
4649 2019-08-13 Tom Tromey <tom@tromey.com>
4651 * tui/tui-winsource.c (tui_erase_source_content)
4652 (tui_show_source_content, tui_source_window_base::refresh_all):
4654 * tui/tui-wingeneral.h
4655 (tui_check_and_display_highlight_if_needed): Don't declare.
4656 * tui/tui-wingeneral.c
4657 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4658 check_and_display_highlight_if_needed.
4659 * tui/tui-win.c (tui_rehighlight_all)
4660 (tui_win_info::make_visible_with_new_height): Update.
4661 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4662 (tui_data_window::erase_data_content)
4663 (tui_data_window::display_all_data): Update.
4664 * tui/tui-data.h (struct tui_win_info)
4665 <check_and_display_highlight_if_needed>: Declare.
4667 2019-08-13 Tom Tromey <tom@tromey.com>
4669 * tui/tui-win.c (tui_resize_all): Call
4670 tui_delete_invisible_windows.
4671 * tui/tui-layout.c (show_layout): Call
4672 tui_delete_invisible_windows.
4673 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4674 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4676 2019-08-13 Tom Tromey <tom@tromey.com>
4678 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4679 tui_add_win_to_layout.
4681 2019-08-13 Tom Tromey <tom@tromey.com>
4683 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4684 * tui/tui-layout.c (tui_default_win_height): Now static.
4686 2019-08-13 Tom Tromey <tom@tromey.com>
4688 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4690 (show_source_disasm_command, show_source_or_disasm_and_command):
4691 Don't check current layout.
4693 2019-08-13 Tom Tromey <tom@tromey.com>
4695 * tui/tui-wingeneral.c (make_all_visible): Remove.
4696 (tui_make_all_invisible): Simplify.
4697 * tui/tui-layout.c (tui_make_all_invisible): Move from
4698 tui-wingeneral.c; simplify.
4699 (show_layout): Hoist call to tui_make_all_invisible.
4700 (show_data): Don't call tui_make_all_invisible.
4702 2019-08-13 Tom Tromey <tom@tromey.com>
4704 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4705 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4707 2019-08-13 Tom Tromey <tom@tromey.com>
4709 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4711 (show_source_disasm_command, show_data)
4712 (show_source_or_disasm_and_command): Don't use
4713 tui_set_current_layout_to.
4714 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4715 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4717 (tui_set_current_layout_to): Remove.
4719 2019-08-13 Tom Tromey <tom@tromey.com>
4721 * tui/tui-layout.c (tui_set_layout): Update.
4722 * tui/tui-data.h (struct tui_layout_def): Remove.
4723 (tui_layout_def): Don't declare.
4724 * tui/tui-data.c (layout_def): Remove.
4725 (tui_layout_def): Remove.
4727 2019-08-13 Tom Tromey <tom@tromey.com>
4729 * tui/tui-winsource.h (struct tui_source_window_base)
4730 <clear_detail>: No longer "override".
4731 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4732 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4733 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4734 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4736 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4738 2019-08-13 Tom Tromey <tromey@adacore.com>
4740 * tracepoint.c: Don't include readline.h or history.h.
4742 2019-08-12 Tom Tromey <tom@tromey.com>
4744 * configure: Rebuild.
4745 * configure.ac: Check for readline 7.
4746 * NEWS: Mention readline 7 requirement.
4749 2019-08-12 Tom Tromey <tom@tromey.com>
4751 * mingw-hdep.c (gdb_select): Remove readline hack.
4753 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4755 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4756 when the function fails.
4758 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4760 * s390-tdep.c (s390_type_align): New function.
4761 (s390_gdbarch_init): Set it as type_align gdbarch method.
4763 2019-08-09 Tom de Vries <tdevries@suse.de>
4766 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4767 pc_low with relocation offset.
4769 2019-08-07 Tom Tromey <tromey@adacore.com>
4771 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4772 (print_frame_args): Update.
4773 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4775 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4776 * frame.h (struct frame_arg): Add initializers.
4777 <error>: Now a unique_xmalloc_ptr.
4779 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4781 * NEWS: Expand the Pointer Authentication entry.
4782 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4783 (aarch64_frame_unmask_lr): ... to this.
4784 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4785 Call aarch64_frame_unmask_lr.
4786 * frame.c (struct frame_info): Add "masked" variable.
4787 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4788 (fprint_frame): Check for masked pc.
4789 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4791 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4792 * stack.c (print_frame): Check for masked pc.
4794 2019-08-06 Tom Tromey <tom@tromey.com>
4796 * stabsread.c (patch_block_stabs, read_one_struct_field)
4797 (read_enum_type): Use obstack_strndup.
4798 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4799 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4800 * dwarf2read.c (guess_full_die_structure_name)
4801 (anonymous_struct_prefix): Use obstack_strndup.
4802 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4803 * c-exp.y (yylex): Use obstack_strndup.
4804 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4805 (write_var_or_type): Use obstack_strndup.
4807 2019-08-06 Tom Tromey <tom@tromey.com>
4809 * symfile.c (reread_symbols): Use obstack_strdup.
4810 * stabsread.c (read_type): Use obstack_strdup.
4811 * gdb_obstack.h (obstack_strdup): New overload.
4812 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4813 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4814 (dwarf2_canonicalize_name): Use obstack_strdup.
4815 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4816 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4819 2019-08-06 Tom Tromey <tom@tromey.com>
4821 * gdb_obstack.h (obstack_strdup): Define.
4822 * gdb_obstack.c (obstack_strdup): Don't define.
4824 2019-08-06 Tom Tromey <tom@tromey.com>
4826 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4828 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4830 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4831 * stabsread.c (common_block_start): Use obstack_strdup.
4832 * objfiles.c (set_objfile_main_name, objfile): Use
4834 * namespace.c (add_using_directive): Use obstack_strdup.
4835 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4836 * jit.c (finalize_symtab): Use obstack_strdup.
4837 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4838 (guess_partial_die_structure_name, partial_die_info::fixup)
4839 (dwarf2_name): Use obstack_strdup.
4840 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4842 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4843 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4845 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4847 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4849 * unittests/help-doc-selftests.c: New file.
4850 * Makefile.in: Add the new file.
4852 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4854 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4855 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4856 the full first line, except when FOR_VALUE_PREFIX. In this case,
4857 the trailing '.' is not output, and the first character is uppercased.
4858 (print_help_for_command): Update call to print_doc_line.
4859 (print_doc_of_command): Likewise.
4860 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4861 * cli/cli-option.c (append_indented_doc): Do not append newline.
4862 (build_help_option): Append newline after first appended_indented_doc
4863 only if a second call is done.
4864 (build_help): Append 2 new lines before each option, except the first
4866 * compile/compile.c (_initialize_compile): Add new lines after
4867 %OPTIONS%, when not at the end of the help.
4868 Change help doc or code
4869 producing the help doc to respect the invariants.
4870 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4871 Also removed the new line after 'Options:', as all other commands
4872 do not put an empty line between 'Options:' and the first option.
4873 * printcmd.c (_initialize_printcmd): Likewise.
4874 * stack.c (_initialize_stack): Likewise.
4875 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4876 incorrectly telling COMMAND is optional.
4877 * ada-lang.c (_initialize_ada_language): Change help doc or code
4878 producing the help doc to respect the invariants.
4879 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4880 * breakpoint.c (_initialize_breakpoint): Likewise.
4881 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4882 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4883 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4884 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4885 _initialize_cli_style): Likewise.
4886 * corelow.c (core_target_info): Likewise.
4887 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4888 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4889 * filesystem.c (_initialize_filesystem): Likewise.
4890 * frame.c (_initialize_frame): Likewise.
4891 * gnu-nat.c (add_task_commands): Likewise.
4892 * infcall.c (_initialize_infcall): Likewise.
4893 * infcmd.c (_initialize_infcmd): Likewise.
4894 * interps.c (_initialize_interpreter): Likewise.
4895 * language.c (_initialize_language): Likewise.
4896 * linux-fork.c (_initialize_linux_fork): Likewise.
4897 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4898 * maint.c (_initialize_maint_cmds): Likewise.
4899 * memattr.c (_initialize_mem): Likewise.
4900 * printcmd.c (_initialize_printcmd): Likewise.
4901 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4903 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4904 * record-btrace.c (_initialize_record_btrace): Likewise.
4905 * record-full.c (_initialize_record_full): Likewise.
4906 * record.c (_initialize_record): Likewise.
4907 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4908 * regcache.c (_initialize_regcache): Likewise.
4909 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4910 _initialize_remote): Likewise.
4911 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4912 * serial.c (_initialize_serial): Likewise.
4913 * skip.c (_initialize_step_skip): Likewise.
4914 * source.c (_initialize_source): Likewise.
4915 * stack.c (_initialize_stack): Likewise.
4916 * symfile.c (_initialize_symfile): Likewise.
4917 * symtab.c (_initialize_symtab): Likewise.
4918 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4919 * top.c (init_main): Likewise.
4920 * tracefile-tfile.c (tfile_target_info): Likewise.
4921 * tracepoint.c (_initialize_tracepoint): Likewise.
4922 * tui/tui-win.c (_initialize_tui_win): Likewise.
4923 * utils.c (add_internal_problem_command): Likewise.
4924 * valprint.c (value_print_option_defs): Likewise.
4926 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4929 * configure.ac: Drop enable-libmcheck support.
4930 * configure, config.in: Rebuild.
4931 * libmcheck.m4: Remove.
4932 * acinclude.m4: Don't include it.
4933 * Makefile.in: Don't distribute it.
4934 * top.c (print_gdb_configuration): Don't mention it.
4936 2019-08-06 Tom Tromey <tom@tromey.com>
4938 * utils.c (set_output_style): Sometimes pass stream to
4940 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4941 * record-btrace.c (btrace_insn_history): Update.
4942 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4944 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4945 Update initializers.
4946 <m_uiout>: New field.
4948 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4949 Remove "uiout" parameter.
4950 (dump_insns): Update.
4951 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4952 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4954 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4956 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4957 (error_in_psymtab_expansion): Likewise.
4958 (lookup_symbol_via_quick_fns): Likewise.
4959 (basic_lookup_transparent_type_quick): Likewise.
4960 (basic_lookup_transparent_type_1): Likewise.
4962 2019-08-06 Tom Tromey <tromey@adacore.com>
4964 * source.c (last_source_error): Now bool.
4965 (print_source_lines_base): Make "noprint" bool. Only open
4966 source file when last_source_visited changes.
4968 2019-08-06 Tom Tromey <tromey@adacore.com>
4970 * annotate.c (annotate_source_line): Use g_source_cache.
4971 * source-cache.c (source_cache::get_plain_source_lines): Change
4972 parameters. Populate m_offset_cache.
4973 (source_cache::ensure): New method.
4974 (source_cache::get_line_charpos): New method.
4975 (extract_lines): Move lower. Change parameters.
4976 (source_cache::get_source_lines): Move lower.
4977 * source-cache.h (class source_cache): Update comment.
4978 <get_line_charpos>: New method.
4979 <get_source_lines>: Update comment.
4980 <clear>: Clear m_offset_cache.
4981 <get_plain_source_lines>: Change parameters.
4982 <ensure>: New method
4983 <m_offset_cache>: New member.
4984 * source.c (forget_cached_source_info_for_objfile): Update.
4985 (info_source_command): Use g_source_cache.
4986 (find_source_lines, open_source_file_with_line_charpos): Remove.
4987 (print_source_lines_base, search_command_helper): Use g_source_cache.
4988 * source.h (open_source_file_with_line_charpos): Don't declare.
4989 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4990 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4993 2019-08-06 Tom Tromey <tromey@adacore.com>
4995 * source-cache.c (source_cache::get_plain_source_lines):
4996 Remove "first_line" and "last_line" parameters.
4997 (source_cache::get_source_lines): Cache plain text.
4998 * source-cache.h (class source_cache)
4999 <get_plain_source_lines>: Update.
5001 2019-08-06 Tom Tromey <tromey@adacore.com>
5003 * source-cache.c (extract_lines): No longer a method.
5004 Changed type of parameter. Include final newline.
5005 (selftests::extract_lines_test): New function.
5006 (_initialize_source_cache): Likewise.
5007 * source-cache.h (class source_cache)
5008 <extract_lines>: Don't declare.
5010 2019-08-06 Tom Tromey <tromey@adacore.com>
5012 * breakpoint.c (init_breakpoint_sal): Update.
5013 (breakpoint): Update.
5014 * breakpoint.h (struct breakpoint) <filter>: Now a
5017 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5019 * NEWS: Mention dictionary access on blocks.
5020 * python/py-block.c (blpy_getitem): New function.
5021 (block_object_as_mapping): New struct.
5022 (block_object_type): Use new struct for tp_as_mapping field.
5024 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5026 * objfiles.h (objfile): Add a comment describing partial symbols.
5028 2019-08-05 Tom Tromey <tromey@adacore.com>
5030 * compile/compile.c (_initialize_compile): Use _(), not N_().
5031 * thread.c (_initialize_thread): Use _(), not N_().
5032 * stack.c (_initialize_stack): Use _(), not N_().
5033 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5035 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5037 * dwarf2read.c (struct dw2_symtab_iterator):
5038 <want_specific_block>: Remove.
5039 <block_index>: Change type to gdb::optional.
5040 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5041 change type of BLOCK_INDEX parameter to gdb::optional.
5042 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5043 (dw2_lookup_symbol): Don't pass argument for
5044 WANT_SPECIFIC_BLOCK.
5045 (dw2_expand_symtabs_for_function): Don't pass argument for
5046 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5047 (class dw2_debug_names_iterator)
5048 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5049 parameter, change BLOCK_INDEX type to gdb::optional.
5050 <m_want_specific_block>: Remove.
5051 <m_block_index>: Change type to gdb::optional.
5052 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5053 gdb::optional. Re-write in function of gdb::optional.
5054 (dw2_debug_names_lookup_symbol): Don't pass argument for
5055 WANT_SPECIFIC_BLOCK.
5056 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5057 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5060 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5062 * NEWS: Mention changes to "info sources" command.
5064 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5066 * symtab.c (filename_partial_match_opts): New struct type.
5067 (struct output_source_filename_data): New members
5068 regexp, c_regexp, partial_match.
5069 (output_source_filename): Use new members to decide to print file.
5070 (info_sources_option_defs): New variable.
5071 (make_info_sources_options_def_group, print_info_sources_header,
5072 info_sources_command_completer):
5074 (info_sources_command): Read new optional arguments.
5075 (_initialize_symtab): Update info sources help.
5077 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5079 * ada-lang.c (exception_support_info_v0): Renamed from...
5080 (default_exception_support_info): ... this. Create new
5082 (ada_has_this_exception_support): Look up catch_handlers_sym.
5083 (ada_exception_support_info_sniffer): Try v0 after default.
5085 2019-08-01 Tom Tromey <tromey@adacore.com>
5087 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5090 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5092 * s12z-tdep.c: Fix include path for s12z-opc.h.
5094 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5096 * NEWS: Require GNU make 3.82.
5098 2019-07-16 Tom Tromey <tom@tromey.com>
5100 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5103 2019-07-30 Tom Tromey <tromey@adacore.com>
5105 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5107 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5109 * printcmd.c (print_address_symbolic): Print negative offsets.
5110 (build_address_symbolic): Force signed arithmetic when computing
5113 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5115 PR/24474: Add a function to lookup static variables.
5116 * NEWS: Mention this new function.
5117 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5118 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5119 * python/python.c (python_GdbMethods): Add new function.
5121 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5123 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5124 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5125 (objfpy_lookup_static_symbol): New function.
5126 (objfile_object_methods): Add new functions.
5128 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5130 * NEWS: Mention 'set|show print frame-info'. Mention new
5131 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5132 backtrace argument. Mention that python frame filtering code
5133 is now consistent with what 'backtrace' command prints.
5135 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5137 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5139 (print_frame_info_auto, print_frame_info_source_line,
5140 print_frame_info_location, print_frame_info_source_and_location,
5141 print_frame_info_location_and_address, print_frame_info_short_location):
5143 (struct frame_print_options): New member print_frame_info.
5144 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5145 * stack.h (get_user_print_what_frame_info): New declaration.
5146 (frame_show_address): New declaration.
5147 * stack.c (print_frame_arguments_choices): New value 'presence'.
5148 (print_frame_info_auto, print_frame_info_source_line,
5149 print_frame_info_location, print_frame_info_source_and_location,
5150 print_frame_info_location_and_address, print_frame_info_short_location,
5151 print_frame_info_choices, print_frame_info_print_what): New definitions.
5152 (print_frame_args): Only print dots for args if print frame-arguments
5154 (frame_print_option_defs): New element for "frame-info".
5155 (get_user_print_what_frame_info): New function.
5156 (frame_show_address): Make non static. Move comment to stack.h.
5157 (print_frame_info_to_print_what): New function.
5158 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5159 to decide what to print.
5160 (backtrace_command_1): Handle the new print_frame_arguments_presence
5162 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5163 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5164 (py_print_frame): In non-mi mode, use LOCATION as default for
5165 print_what, similarly to frame information printed directly by
5166 backtrace command. Handle frame-info user option in non MI mode.
5168 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5170 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5171 Add case for debugging 32-bit target on 64-bit host. Revise
5174 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5176 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5177 instead of find_function_entry_range_from_pc.
5179 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5181 * stack.c (find_frame_funname): Remove code which preferred
5182 minsym over symtab sym in "certain pathological cases".
5184 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5185 parameter. Change type of "do_demangle" to bool.
5186 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5187 Pass suitable "prefer_sym_over_minsym" flag to
5188 build_address_symbolic(). Don't output "+" for negative offsets.
5189 * printcmd.c (print_address_symbolic): Update invocation of
5190 build_address_symbolic to include a "prefer_sym_over_minsym"
5192 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5193 Restrict cases in which use of minimal symbol is preferred to that
5194 of a found symbol. Update comments.
5196 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5197 for entry pc when entry pc is out of range for that FDE.
5199 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5202 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5205 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5207 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5208 this function's Python signature.
5211 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5213 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5214 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5215 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5216 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5217 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5220 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5222 * h8300-tdep.c (h8300_register_name_common): New.
5223 h8300_register_name): Use h8300_register_name_common.
5224 (h8300s_register_name): Likewise.
5225 (h8300sx_register_name): Likewise.
5226 (h8300h_register_nam): New.
5227 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5230 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5232 * arm-tdep.c (arm_skip_cmse_entry): New function.
5233 (arm_is_sgstubs_section): New function.
5234 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5236 2019-07-22 Tom Tromey <tom@tromey.com>
5238 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5241 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5243 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5246 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5248 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5249 so that GDB doesn't match any msymbols when searching in the
5251 (print_symbol_info): Print using typedef_print or type_print based
5252 on the type of the symbol. Add updated FIXME comment moved from...
5253 (_initialize_symtab): ... move and update FIXME comment to above.
5255 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5257 * NEWS: Mention adding -q option to "info types".
5258 * symtab.c (struct info_types_options): New struct.
5259 (info_types_options_defs): New variable.
5260 (make_info_types_options_def_group): New function.
5261 (info_types_command): Use gdb::option framework to parse options.
5262 (info_types_command_completer): New function.
5263 (_initialize_symtab): Extend the help text on "info types" and
5264 register command completer.
5266 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5268 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5269 (lookup_symbol_in_objfile): Change int to block_enum and add a
5270 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5272 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5274 * MAINTAINERS (Write After Approval): Add self.
5276 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5278 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5279 instruction to the dummy code region.
5281 2019-07-19 Tom Tromey <tromey@adacore.com>
5283 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5284 (ARGSUSED, PARAMS, __func__): Remove rules.
5286 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5288 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5289 * features/arm/arm-with-iwmmxt.c: Remove.
5290 * features/arm/arm-with-iwmmxt.xml: Remove.
5291 * features/arm/arm-with-m-fpa-layout.c: Remove.
5292 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5293 * features/arm/arm-with-m-vfp-d16.c: Remove.
5294 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5295 * features/arm/arm-with-m.c: Remove.
5296 * features/arm/arm-with-m.xml: Remove.
5297 * features/arm/arm-with-neon.c: Remove.
5298 * features/arm/arm-with-neon.xml: Remove.
5299 * features/arm/arm-with-vfpv2.c: Remove.
5300 * features/arm/arm-with-vfpv2.xml: Remove.
5301 * features/arm/arm-with-vfpv3.c: Remove.
5302 * features/arm/arm-with-vfpv3.xml: Remove.
5304 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5306 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5308 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5310 * arch/aarch32.c (aarch32_create_target_description): Create
5311 target descriptions using features.
5312 * arch/arm.c (arm_create_target_description)
5313 (arm_create_mprofile_target_description): Likewise.
5314 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5316 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5318 * Makefile.in: Add new files.
5319 * aarch32-tdep.c: New file.
5320 * aarch32-tdep.h: New file.
5321 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5322 Call aarch32_read_description.
5323 * arch/aarch32.c: New file.
5324 * arch/aarch32.h: New file.
5325 * arch/arm.c (arm_create_target_description)
5326 (arm_create_mprofile_target_description): New function.
5327 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5328 (arm_create_target_description)
5329 (arm_create_mprofile_target_description): New declaration.
5330 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5331 read_description functions.
5332 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5334 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5335 * arm-tdep.c (tdesc_arm_list): New variable.
5336 (arm_register_g_packet_guesses): Call create description functions.
5337 (arm_read_description) (arm_read_mprofile_description): New
5339 * arm-tdep.h (arm_read_description)
5340 (arm_read_mprofile_description): Add declaration.
5341 * configure.tgt: Add new files.
5343 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5345 * top.c (new_ui_command): Open specified terminal just once.
5347 2019-07-18 Tom Tromey <tromey@adacore.com>
5349 * symtab.c (main_name): Constify return type.
5350 * symfile.c (set_initial_language): Update.
5351 * symtab.h (main_name): Constify return type.
5353 2019-07-17 Tom Tromey <tom@tromey.com>
5355 * tui/tui-winsource.c (tui_update_source_window)
5356 (tui_update_source_window_as_is)
5357 (tui_update_source_windows_with_line): Remove return.
5358 * tui/tui-disasm.c (tui_show_disassem)
5359 (tui_show_disassem_and_update_source): Remove return.
5360 * tui/tui.c (tui_reset): Remove return.
5361 * tui/tui-wingeneral.c
5362 (tui_check_and_display_highlight_if_needed): Remove return.
5364 2019-07-17 Tom Tromey <tom@tromey.com>
5366 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5368 2019-07-17 Tom Tromey <tom@tromey.com>
5370 * tui/tui-winsource.h (struct tui_exec_info_window)
5371 (struct tui_source_window_base): Move from tui-data.h.
5372 * tui/tui-winsource.c: Move many method definitions from
5373 elsewhere. Remove "structuring" comments.
5374 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5375 (tui_source_window_base::refresh_window): Move to
5377 * tui/tui-win.c (tui_source_window_base::refresh_all)
5378 (tui_source_window_base::update_tab_width)
5379 (tui_source_window_base::set_new_height)
5380 (tui_source_window_base::do_make_visible_with_new_height): Move to
5382 * tui/tui-source.h: Update.
5383 * tui/tui-source.c (tui_source_window_base::reset): Move to
5385 * tui/tui-disasm.h: Update.
5386 * tui/tui-data.h (struct tui_exec_info_window): Move to
5388 (struct tui_source_window_base): Likewise.
5389 * tui/tui-data.c (tui_source_window_base::clear_detail)
5390 (tui_source_window_base, ~tui_source_window_base): Move to
5393 2019-07-17 Tom Tromey <tom@tromey.com>
5395 * tui/tui-win.c (tui_resize_all)
5396 (tui_source_window_base::update_tab_width)
5397 (tui_adjust_win_heights): Update.
5398 (tui_win_info::make_invisible_and_set_new_height): Rename from
5399 make_invisible_and_set_new_height.
5400 * tui/tui-data.h (struct tui_win_info)
5401 <make_invisible_and_set_new_height>: New method.
5403 2019-07-17 Tom Tromey <tom@tromey.com>
5405 * tui/tui.c: Update.
5406 * tui/tui-source.h (struct tui_source_window): Move from
5408 * tui/tui-layout.c: Update.
5409 * tui/tui-disasm.c: Update.
5410 * tui/tui-data.h (struct tui_source_window): Move to
5413 2019-07-17 Tom Tromey <tom@tromey.com>
5415 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5417 * tui/tui-data.h (struct tui_disasm_window): Move to
5420 2019-07-17 Tom Tromey <tom@tromey.com>
5422 * tui/tui-regs.h (struct tui_data_item_window): Move from
5424 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5425 * tui/tui-data.h (struct tui_data_item_window): Move to
5427 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5429 2019-07-17 Tom Tromey <tom@tromey.com>
5431 * tui/tui.c: Update.
5432 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5433 (tui_cmd_window::max_height): Move to tui-command.c.
5434 * tui/tui-layout.c: Update.
5435 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5436 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5438 * tui/tui-command.h (struct tui_cmd_window): Move from
5440 * tui/tui-command.c: Remove "structuring" comments.
5441 (tui_cmd_window::clear_detail)
5442 (tui_cmd_window::do_make_visible_with_new_height)
5443 (tui_cmd_window::max_height): Move from elsewhere.
5445 2019-07-17 Tom Tromey <tom@tromey.com>
5447 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5449 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5450 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5452 2019-07-17 Tom Tromey <tom@tromey.com>
5454 * tui/tui.c: Update.
5455 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5457 * tui/tui-windata.h: Remove file.
5458 * tui/tui-windata.c: Remove file.
5459 * tui/tui-win.c (tui_data_window::set_new_height)
5460 (tui_data_window::do_make_visible_with_new_height): Move to
5462 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5463 * tui/tui-regs.c: Remove "structuring" comments.
5464 (tui_data_window::first_data_item_displayed)
5465 (tui_data_window::delete_data_content_windows)
5466 (tui_data_window::erase_data_content)
5467 (tui_data_window::display_all_data)
5468 (tui_data_window::refresh_all)
5469 (tui_data_window::do_scroll_vertical)
5470 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5471 (tui_data_window::do_make_visible_with_new_height)
5472 (tui_data_window::refresh_window): Move from elsewhere.
5473 (_initialize_tui_regs): Move to end of file.
5474 * tui/tui-layout.c: Update.
5475 * tui/tui-hooks.c: Update.
5476 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5477 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5479 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5481 2019-07-17 Tom Tromey <tom@tromey.com>
5483 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5486 2019-07-17 Tom Tromey <tom@tromey.com>
5488 * tui/tui-win.c (tui_source_window_base::set_new_height)
5489 (tui_source_window_base::do_make_visible_with_new_height): Use
5490 m_has_locator field directly.
5491 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5493 (struct tui_source_window_base) <has_locator>: Likewise.
5495 2019-07-17 Tom Tromey <tom@tromey.com>
5497 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5499 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5501 * tui/tui-win.c (tui_source_window_base::set_new_height)
5502 (tui_source_window_base::set_new_height)
5503 (make_invisible_and_set_new_height)
5504 (tui_source_window_base::do_make_visible_with_new_height)
5505 (tui_source_window_base::do_make_visible_with_new_height):
5507 * tui/tui-layout.c (show_source_disasm_command, show_data)
5508 (show_source_or_disasm_and_command): Update.
5509 * tui/tui-layout.c (show_layout): Update.
5511 2019-07-17 Tom Tromey <tom@tromey.com>
5513 * tui/tui-layout.c (make_data_window): Remove.
5514 (show_data): Unify creation and re-initialization cases.
5516 2019-07-17 Tom Tromey <tom@tromey.com>
5518 * tui/tui-layout.c (make_source_window, make_disasm_window):
5520 (show_data): Unify creation and re-initialization cases.
5522 2019-07-17 Tom Tromey <tom@tromey.com>
5524 * tui/tui-layout.c (make_command_window): Remove.
5525 (show_source_disasm_command, show_source_or_disasm_and_command):
5526 Unify creation and re-initialization cases.
5528 2019-07-17 Tom Tromey <tom@tromey.com>
5530 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5531 creation and re-initialization cases.
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5535 * tui/tui-regs.c (tui_get_register): Return void.
5537 2019-07-17 Tom Tromey <tom@tromey.com>
5539 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5542 2019-07-17 Tom Tromey <tom@tromey.com>
5544 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5547 2019-07-17 Tom Tromey <tom@tromey.com>
5549 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5550 * tui/tui-regs.c (tui_reg_layout): New function.
5551 (tui_show_registers, tui_reg_command): Use it.
5552 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5553 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5555 (tui_layout_command): Remove.
5557 2019-07-17 Tom Tromey <tom@tromey.com>
5559 * tui/tui-layout.h (tui/tui-layout): Return void.
5560 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5562 2019-07-17 Tom Tromey <tom@tromey.com>
5564 * tui/tui-layout.c (show_source_disasm_command, show_data):
5566 (reset_locator): Remove.
5567 (show_source_or_disasm_and_command): Update.
5569 2019-07-17 Tom Tromey <tom@tromey.com>
5571 * tui/tui-source.c (tui_source_window_base::reset): Remove
5573 * tui/tui-layout.c (make_command_window, make_source_window)
5574 (make_disasm_window, make_data_window)
5575 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5576 (reset_locator, show_source_or_disasm_and_command): Update.
5577 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5579 (struct tui_source_window_base) <reset>: Likewise.
5581 2019-07-17 Tom Tromey <tom@tromey.com>
5583 * tui/tui-layout.c (show_source_disasm_command): Use
5585 (reset_locator): New function.
5586 (init_and_make_win): Remove.
5587 (show_source_or_disasm_and_command): Use reset_locator.
5589 2019-07-17 Tom Tromey <tom@tromey.com>
5591 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5593 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5595 * tui/tui-source.c (tui_source_window_base::reset): New method.
5596 * tui/tui-layout.c (make_command_window): Don't call
5598 (make_source_window, make_disasm_window): Don't call
5599 make_source_or_disasm_window.
5600 (make_data_window): Don't call init_and_make_win. Change calling
5602 (show_source_disasm_command, show_data): Simplify.
5603 (make_source_or_disasm_window): Remove.
5604 (show_source_or_disasm_and_command): Simplify.
5605 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5606 (struct tui_source_window_base) <reset>: Likewise.
5607 <execution_info>: Remove initializer.
5608 * tui/tui-data.c (tui_source_window_base): Initialize
5611 2019-07-17 Tom Tromey <tom@tromey.com>
5613 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5616 2019-07-17 Tom Tromey <tom@tromey.com>
5618 * tui/tui.c (tui_rl_other_window): Update.
5619 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5620 superclass method first. Always iterate over regs_content.
5621 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5623 * tui/tui-win.c (tui_set_focus_command): Update.
5625 2019-07-17 Tom Tromey <tom@tromey.com>
5627 * tui/tui-win.c (tui_set_focus_command): Rename from
5628 tui_set_focus. Call tui_enable.
5629 (tui_set_focus_command): Remove.
5631 2019-07-17 Tom Tromey <tom@tromey.com>
5633 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5635 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5637 (tui_data_window::refresh_window): Call refresh_window on data
5638 items. Always call superclass refresh_window.
5639 (tui_win_info::refresh): Remove.
5640 (tui_source_window_base::refresh_window): Update.
5641 (tui_refresh_all): Update.
5642 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5644 (show_source_or_disasm_and_command): Likewise.
5645 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5646 (struct tui_source_window_base) <refresh>: Likewise.
5648 2019-07-17 Tom Tromey <tom@tromey.com>
5650 * tui/tui-winsource.c (tui_clear_source_content)
5651 (tui_show_source_content): Update.
5652 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5653 whether content is empty.
5654 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5657 2019-07-17 Tom Tromey <tom@tromey.com>
5659 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5661 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5662 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5664 2019-07-17 Tom Tromey <tom@tromey.com>
5666 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5667 (struct tui_data_item_window): Update.
5669 2019-07-17 Tom Tromey <tom@tromey.com>
5671 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5672 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5675 2019-07-17 Tom Tromey <tom@tromey.com>
5677 * tui/tui-winsource.h (tui_erase_source_content)
5678 (tui_clear_source_content): Remove "display_prompt" parameter.
5679 * tui/tui-winsource.c (tui_update_source_window_as_is)
5680 (tui_update_source_windows_with_addr): Update.
5681 (tui_clear_source_content): Remove "display_prompt" parameter.
5682 (tui_erase_source_content): Likewise. Simplify.
5683 (tui_show_source_content): Update.
5684 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5685 * tui/tui-stack.c (tui_show_frame_info): Update.
5686 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5689 2019-07-17 Tom Tromey <tom@tromey.com>
5691 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5692 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5694 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5697 2019-07-17 Tom Tromey <tom@tromey.com>
5699 * tui/tui-winsource.c (tui_clear_source_content)
5700 (tui_show_source_content, tui_show_exec_info_content)
5701 (tui_clear_exec_info_content): Update.
5702 * tui/tui-stack.c (tui_show_locator_content): Update.
5703 (tui_show_frame_info): Update.
5704 * tui/tui-source.h (tui_source_window): Don't declare.
5705 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5706 from tui_source_is_displayed.
5707 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5709 (struct tui_source_window_base) <content_in_use>: New field. Now
5711 (struct tui_source_window) <showing_source_p>: New method.
5712 (TUI_SRC_WIN): Change cast.
5713 * tui/tui-data.c (tui_initialize_static_data): Update.
5715 2019-07-17 Tom Tromey <tom@tromey.com>
5717 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5719 * tui/tui-source.c (tui_source_window::location_matches_p): New
5721 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5723 * tui/tui-data.h (struct tui_source_window_base)
5724 <location_matches_p>: New method.
5725 (struct tui_source_window, struct tui_disasm_window)
5726 <location_matches_p>: Likewise.
5728 2019-07-17 Tom Tromey <tom@tromey.com>
5730 * tui/tui-win.c (tui_set_win_height_command): Rename from
5732 (tui_set_win_height_command): Remove.
5734 2019-07-17 Tom Tromey <tom@tromey.com>
5736 * tui/tui-source.c (tui_source_window): New constructor. Add
5738 (~tui_source_window): New destructor.
5739 (tui_source_window::style_changed): New method.
5740 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5741 (tui_attach_detach_observers): Update.
5742 * tui/tui-data.h (struct tui_source_window): Make constructor not
5743 inline. Add destructor.
5744 (struct tui_source_window) <style_changed>: New method.
5745 <m_observable>: New member.
5747 2019-07-17 Tom Tromey <tom@tromey.com>
5749 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5750 * tui/tui-win.c (tui_resize_all): Fix typo.
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5754 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5755 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5756 (tui_refresh_all): Remove "list" parameter. Use foreach.
5757 * tui/tui-win.c (window_name_completer): Use foreach.
5758 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5759 (update_tab_width): Likewise.
5760 * tui/tui-layout.c (show_layout): Update.
5761 * tui/tui-data.h (class tui_window_iterator): New.
5762 (struct all_tui_windows): New.
5763 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5765 2019-07-17 Tom Tromey <tom@tromey.com>
5767 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5768 parameter. Don't reference globals.
5769 (tui_reg_command): Update.
5771 2019-07-17 Tom Tromey <tom@tromey.com>
5773 * tui/tui-regs.c (tui_show_registers): Simplify.
5775 2019-07-17 Tom Tromey <tom@tromey.com>
5777 * tui/tui-regs.c (tui_show_registers): Update.
5778 (tui_show_register_group): Add win_info parameter.
5780 2019-07-17 Tom Tromey <tom@tromey.com>
5782 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5783 Rename from tui_display_reg_element_at_line.
5784 (tui_data_window::display_registers_from_line): Update.
5785 * tui/tui-data.h (struct tui_data_window)
5786 <display_reg_element_at_line>: New method.
5788 2019-07-17 Tom Tromey <tom@tromey.com>
5790 * tui/tui-regs.h (tui_display_registers_from)
5791 (tui_display_registers_from_line): Don't declare.
5792 * tui/tui-windata.c (tui_data_window::display_all_data)
5793 (tui_data_window::refresh_all)
5794 (tui_data_window::do_scroll_vertical): Update.
5795 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5796 from tui_display_registers_from.
5797 (tui_display_reg_element_at_line): Update.
5798 (tui_data_window::display_registers_from_line): Rename from
5799 tui_display_registers_from_line.
5800 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5801 display_registers_from_line>: New methods.
5803 2019-07-17 Tom Tromey <tom@tromey.com>
5805 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5806 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5807 from tui_erase_data_content.
5808 (tui_data_window::display_all_data)
5809 (tui_data_window::refresh_all)
5810 (tui_data_window::do_scroll_vertical): Update.
5811 * tui/tui-regs.c (tui_show_registers): Update.
5812 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5815 2019-07-17 Tom Tromey <tom@tromey.com>
5817 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5820 (tui_data_window::delete_data_content_windows): Rename from
5821 tui_delete_data_content_windows.
5822 (tui_data_window::display_all_data)
5823 (tui_data_window::do_scroll_vertical): Update.
5824 * tui/tui-data.h (struct tui_data_window)
5825 <delete_data_content_windows>: New method.
5827 2019-07-17 Tom Tromey <tom@tromey.com>
5829 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5830 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5832 2019-07-17 Tom Tromey <tom@tromey.com>
5834 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5835 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5836 from tui_display_all_data.
5838 (tui_data_window::do_make_visible_with_new_height): Update.
5839 * tui/tui-regs.c (tui_show_registers): Update.
5840 * tui/tui-layout.c (tui_set_layout): Update.
5841 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5844 2019-07-17 Tom Tromey <tom@tromey.com>
5846 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5847 * tui/tui-windata.c (tui_display_data_from): Remove.
5848 (tui_data_window::refresh_all): Update.
5850 2019-07-17 Tom Tromey <tom@tromey.com>
5852 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5853 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5854 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5855 tui_display_registers_from_line.
5856 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5857 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5858 "force_display" parameter.
5860 2019-07-17 Tom Tromey <tom@tromey.com>
5862 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5864 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5865 Rename from tui_first_reg_element_no_inline.
5866 (tui_display_reg_element_at_line)
5867 (tui_display_registers_from_line): Update.
5868 * tui/tui-data.h (struct tui_data_window)
5869 <first_reg_element_no_inline>: New method.
5871 2019-07-17 Tom Tromey <tom@tromey.com>
5873 * tui/tui-windata.c (tui_display_data_from)
5874 (tui_data_window::do_scroll_vertical): Update.
5875 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5876 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5877 Rename from tui_line_from_reg_element_no.
5878 (tui_display_registers_from_line): Update.
5879 * tui/tui-data.h (struct tui_data_window)
5880 <line_from_reg_element_no>: New method.
5882 2019-07-17 Tom Tromey <tom@tromey.com>
5884 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5885 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5886 tui_last_regs_line_no.
5887 (tui_display_reg_element_at_line)
5888 (tui_display_registers_from_line): Update.
5889 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5892 2019-07-17 Tom Tromey <tom@tromey.com>
5895 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5896 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5897 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5898 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5899 (tui_update_breakpoint_info): Likewise.
5900 * tui/tui-hooks.c (tui_event_create_breakpoint)
5901 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5904 2019-07-17 Tom Tromey <tom@tromey.com>
5906 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5908 2019-07-17 Tom Tromey <tom@tromey.com>
5910 * tui/tui-winsource.c (tui_update_source_window_as_is)
5911 (tui_update_source_windows_with_addr): Update.
5912 * tui/tui-source.h (tui_set_source_content)
5913 (tui_show_symtab_source): Add "win_info" parameter.
5914 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5916 (tui_show_symtab_source): Likewise.
5918 2019-07-17 Tom Tromey <tom@tromey.com>
5920 * tui/tui-wingeneral.c
5921 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5923 2019-07-17 Tom Tromey <tom@tromey.com>
5925 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5926 (struct tui_cmd_window) <can_scroll>: New method.
5927 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5930 2019-07-17 Tom Tromey <tromey@adacore.com>
5932 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5933 do_field_signed>: Rename. Change type of "value".
5934 * ui-out.c (ui_out::field_signed): Rename from field_int.
5935 Change type of "value".
5936 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5938 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5939 do_field_int. Change type of "value".
5940 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5941 do_field_int. Change type of "value".
5942 * tracepoint.c (trace_status_mi, tfind_1)
5943 (print_one_static_tracepoint_marker): Update.
5944 * thread.c (print_thread_info_1, print_selected_thread_frame):
5946 * stack.c (print_frame, print_frame_info): Update.
5947 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5949 * source.c (print_source_lines_base): Update.
5950 * skip.c (info_skip_command): Update.
5951 * record-btrace.c (btrace_ui_out_decode_error)
5952 (btrace_call_history_src_line): Update.
5953 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5955 * progspace.c (print_program_space): Update.
5956 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5957 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5958 do_field_int. Change type of "value".
5959 * mi/mi-out.c (mi_ui_out::do_table_begin)
5960 (mi_ui_out::do_table_header): Update.
5961 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5963 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5964 (mi_cmd_data_list_changed_registers, output_register)
5965 (mi_cmd_data_read_memory, mi_load_progress)
5966 (mi_cmd_trace_frame_collected): Update.
5967 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5969 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5970 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5971 (mi_cmd_var_list_children, varobj_update_one): Update.
5972 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5973 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5974 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5975 * inferior.c (print_inferior): Update.
5976 * gdb_bfd.c (print_one_bfd): Update.
5977 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5979 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5980 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5981 do_field_int. Change type of "value".
5982 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5983 do_field_int. Change type of "value".
5984 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5985 (print_one_breakpoint_location, print_it_catch_fork)
5986 (print_one_catch_fork, print_it_catch_vfork)
5987 (print_one_catch_vfork, print_it_catch_solib)
5988 (print_it_catch_exec, print_it_ranged_breakpoint)
5989 (print_mention_watchpoint, print_mention_masked_watchpoint)
5990 (bkpt_print_it, update_static_tracepoint): Update.
5991 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5992 * break-catch-syscall.c (print_it_catch_syscall): Update.
5993 * ada-tasks.c (print_ada_task_info): Update.
5994 * ada-lang.c (print_it_exception, print_mention_exception):
5997 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5999 PR breakpoints/24541
6000 * gdbarch.c: Regenerate.
6001 * gdbarch.h: Regenerate.
6002 * gdbarch.sh: Adjust return type and parameter types for
6003 'stap_adjust_register'.
6004 (i386_stap_adjust_register): Adjust signature and return new
6006 * stap-probe.c (stap_parse_register_operand): Adjust use of
6007 'gdbarch_stap_adjust_register'.
6009 2019-07-17 Tom Tromey <tromey@adacore.com>
6011 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6013 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6015 (struct s390_process_info): Add initializers.
6016 (s390_add_process): Use new.
6017 (s390_linux_nat_target::low_forget_process): Use delete.
6018 (s390_linux_nat_target::low_new_fork)
6019 (s390_linux_nat_target::stopped_by_watchpoint)
6020 (s390_linux_nat_target::low_prepare_to_resume)
6021 (s390_linux_nat_target::insert_watchpoint)
6022 (s390_linux_nat_target::insert_hw_breakpoint)
6023 (s390_linux_nat_target::remove_watchpoint)
6024 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6026 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6028 * aarch64-fbsd-nat.c: Include regcache.h.
6029 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6031 (aarch64_fbsd_nat_target::fetch_registers)
6032 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6034 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6036 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6038 * fbsd-nat.c: Include gdbarch.h.
6040 2019-07-15 Tom Tromey <tromey@adacore.com>
6042 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6044 2019-07-15 Tom Tromey <tromey@adacore.com>
6046 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6047 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6048 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6049 * cli-out.c (cli_ui_out::do_field_int): New method.
6050 * ui-out.c (ui_out::field_unsigned): New method.
6051 * symfile.c (generic_load): Use field_unsigned.
6052 (print_transfer_performance): Likewise.
6053 * record-btrace.c (ui_out_field_uint): Remove.
6054 (btrace_call_history_insn_range, btrace_call_history): Use
6056 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6058 * ui-out.h (class ui_out) <field_unsigned>: New method.
6059 <do_field_unsigned>: Likewise.
6061 2019-07-15 Tom Tromey <tromey@adacore.com>
6063 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6064 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6065 * target.c (flash_erase_command): Use field_string.
6066 * infrun.c (print_signal_received_reason): Use field_string.
6067 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6068 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6070 * ada-tasks.c (print_ada_task_info): Use field_string.
6072 2019-07-15 Tom Tromey <tromey@adacore.com>
6074 * target.c (flash_erase_command): Use field_core_addr.
6075 * symfile.c (generic_load): Use field_core_addr.
6076 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6077 Use field_core_addr.
6078 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6081 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6083 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6084 value if its desired type is smaller than a CORE_ADDR and signed.
6086 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6088 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6089 of changes to field names, and use new is_reference field to
6090 decide if a property is a reference or not.
6091 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6093 (struct dwarf2_property_baton): Update header comment, rename
6094 'referenced_type' to 'property_type' and update comments.
6095 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6096 default property type, store in property baton, update to take
6097 accound of renamed field.
6098 (read_func_scope): Update call to attr_to_dynamic_prop.
6099 (read_array_type): Likewise.
6100 (dwarf2_per_cu_addr_sized_int_type): New function.
6101 (read_subrange_index_type): Move type finding code to
6102 dwarf2_per_cu_addr_sized_int_type.
6103 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6104 (dwarf2_per_cu_addr_type): New function.
6105 (set_die_type): Update calls to attr_to_dynamic_prop.
6107 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6109 * dwarf2read.c (read_subrange_index_type): New function.
6110 (read_subrange_type): Move code into new function and call it.
6111 * gdbtypes.c (create_range_type): Add some asserts.
6113 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6115 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6116 update return statements.
6117 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6118 declaration, and update comment to match.
6119 * gdbtypes.c (resolve_dynamic_array): Update call to
6120 dwarf2_evaluate_property to match new return type.
6122 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6124 * valarith.c (value_subscripted_rvalue): Change lowerbound
6125 parameter type from int to LONGEST.
6126 * value.h (value_subscripted_rvalue): Likewise in declaration.
6128 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6130 * cli/cli-utils.c (info_print_command_completer): New function.
6131 * cli/cli-utils.h: Add 'completer.h' include, and forward
6132 declaration for 'struct cmd_list_element'.
6133 (info_print_command_completer): Declare.
6134 * stack.c (_initialize_stack): Add completer for 'info locals' and
6136 * symtab.c (_initialize_symtab): Add completer for 'info
6137 variables' and 'info functions'.
6138 * NEWS: Mention completion for additional info commands.
6140 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6142 * cli/cli-utils.c (extract_info_print_args): Delete.
6143 (extract_arg_maybe_quoted): Delete.
6144 (info_print_options_defs): New variable.
6145 (make_info_print_options_def_group): New function.
6146 (extract_info_print_options): Define new function.
6147 * cli/cli-utils.h (extract_info_print_args): Delete.
6148 (struct info_print_options): New structure.
6149 (extract_info_print_options): Declare new function.
6150 * stack.c (info_locals_command): Update to use new
6151 extract_info_print_options, also add a header comment.
6152 (info_args_command): Likewise.
6153 * symtab.c (info_variables_command): Likewise.
6154 (info_functions_command): Likewise.
6156 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6158 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6159 to extract string arguments.
6160 * common/common-utils.c (extract_string_maybe_quoted): New function.
6161 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6163 2019-07-11 Tom Tromey <tromey@adacore.com>
6165 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6166 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6167 * top.h (gdbinit): Don't declare.
6168 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6170 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6171 * top.c (gdb_init): Don't call init_cli_cmds.
6173 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6175 2019-07-11 Tom Tromey <tromey@adacore.com>
6177 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6178 after it has been moved.
6180 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6182 * valops.c (value_must_coerce_to_target): Change return type to
6184 * value.h (value_must_coerce_to_target): Likewise.
6186 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6188 * breakpoint.c (is_hardware_watchpoint): Remove
6189 forward-declaration.
6190 (is_masked_watchpoint): Change return type to bool.
6191 (is_tracepoint): Likewise.
6192 (is_breakpoint): Likewise.
6193 (is_hardware_watchpoint): Likewise.
6194 (is_watchpoint): Likewise.
6195 (is_no_memory_software_watchpoint): Likewise.
6196 (is_catchpoint): Likewise.
6197 (breakpoint_1): Make FILTER parameter's return type bool.
6198 is_masked_watchpoint): Change return type to bool.
6199 (save_breakpoints): Make FILTER parameter's return type bool.
6200 * breakpoint.h (is_breakpoint): Change return type to bool.
6201 (is_watchpoint): Likewise.
6202 (is_catchpoint): Likewise.
6203 (is_tracepoint): Likewise.
6205 2019-07-10 Tom Tromey <tom@tromey.com>
6207 * defs.h: Don't include gdbarch.h.
6208 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6209 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6210 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6211 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6212 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6213 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6214 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6215 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6216 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6217 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6218 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6219 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6220 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6221 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6222 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6223 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6224 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6225 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6226 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6227 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6228 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6229 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6230 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6231 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6232 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6233 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6234 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6236 2019-07-10 Tom Tromey <tromey@adacore.com>
6238 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6239 * breakpoint.c (init_ada_exception_breakpoint): Register as
6241 (print_one_breakpoint_location, print_one_breakpoint): Use
6242 is_ada_exception_catchpoint.
6243 * ada-lang.c (class ada_catchpoint_location): Pass
6244 bp_loc_software_breakpoint to bp_location constructor.
6245 (is_ada_exception_catchpoint): New function.
6247 2019-07-10 Tom Tromey <tromey@adacore.com>
6249 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6251 (struct arm_exidx_entry): New method operator<.
6252 (struct arm_exidx_data) <section_maps>: Change type.
6253 (arm_exidx_data_free): Remove.
6254 (arm_exidx_data_key): Change type. Move lower.
6255 (arm_exidx_new_objfile): Update.
6256 (arm_compare_exidx_entries): Remove.
6257 (arm_find_exidx_entry, _initialize_arm_tdep)
6259 2019-07-10 Tom Tromey <tromey@adacore.com>
6261 * solib-spu.c (ocl_program_data_key): Change type.
6262 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6265 2019-07-10 Tom Tromey <tromey@adacore.com>
6267 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6268 (struct solib_aix_inferior_data) <library_list>: Change type.
6269 (solib_aix_inferior_data_handle): Change type.
6270 (get_solib_aix_inferior_data): Update.
6271 (solib_aix_free_library_list): Remove.
6272 (library_list_start_library): Update.
6273 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6275 (solib_aix_get_library_list)
6276 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6277 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6279 2019-07-10 Tom Tromey <tromey@adacore.com>
6281 * solib-dsbt.c (struct dsbt_info): Add initializers.
6282 (solib_dsbt_pspace_data): Change type.
6283 (dsbt_pspace_data_cleanup): Remove.
6284 (get_dsbt_info, _initialize_dsbt_solib): Update.
6286 2019-07-10 Tom Tromey <tromey@adacore.com>
6288 * spu-tdep.c (spu_overlay_data): Change type.
6289 (spu_get_overlay_table, spu_overlay_new_objfile)
6290 (_initialize_spu_tdep): Update.
6292 2019-07-10 Tom Tromey <tromey@adacore.com>
6294 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6296 (dbx_objfile_data_key): Change type and declare later.
6297 (DBX_SYMFILE_INFO): Rewrite.
6298 * dbxread.c (dbx_objfile_data_key): Change type.
6299 (dbx_symfile_init): Update.
6300 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6301 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6302 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6304 2019-07-10 Tom Tromey <tromey@adacore.com>
6306 * jit.c (jit_program_space_key): Change type. Move lower.
6307 (get_jit_program_space_data): Update.
6308 (jit_program_space_data_cleanup): Remove.
6309 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6311 (struct jit_program_space_data): Add initializers.
6313 2019-07-10 Tom Tromey <tromey@adacore.com>
6315 * solib-darwin.c (struct darwin_info): Add initializers.
6316 (solib_darwin_pspace_data): Change type.
6317 (darwin_pspace_data_cleanup): Remove.
6318 (get_darwin_info, _initialize_darwin_solib): Update.
6320 2019-07-10 Tom Tromey <tromey@adacore.com>
6322 * remote-sim.c (struct sim_inferior_data): Add initializers,
6323 constructor, and destructor.
6324 (sim_inferior_data_key): Change type. Move lower.
6325 (check_for_duplicate_sim_descriptor): Update.
6326 (get_sim_inferior_data): Use new. Update.
6327 (~sim_inferior_data_cleanup): Rename from
6328 sim_inferior_data_cleanup. Simplify.
6329 (gdbsim_close_inferior, simulator_command)
6330 (sim_command_completer, _initialize_remote_sim): Update.
6331 (next_pid, INITIAL_PID): Move earlier.
6333 2019-07-10 Tom Tromey <tromey@adacore.com>
6335 * python/python-internal.h (create_thread_object): Return
6337 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6338 * python/py-inferior.c (struct threadlist_entry): Add
6340 <thread_obj>: Now a gdbpy_ref.
6341 (thread_to_thread_object): Update.
6342 (add_thread_object): Use new.
6343 (delete_thread_object): Use delete.
6344 (infpy_threads): Update.
6345 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6348 2019-07-10 Tom Tromey <tromey@adacore.com>
6350 * valops.c (value_cast): Specialize error message for Ada.
6352 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6354 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6356 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6358 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6359 bpstat_should_step): Return bool, adjust comments.
6360 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6361 bpstat_should_step): Likewise.
6363 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6365 * features/Makefile: Use feature target descriptions for Arm.
6366 * features/arm/arm-core.c: Generate new file.
6367 * features/arm/arm-fpa.c: Likewise.
6368 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6369 * features/arm/arm-m-profile.c: Likewise.
6370 * features/arm/arm-vfpv2.c: Likewise.
6371 * features/arm/arm-vfpv3.c: Likewise.
6372 * features/arm/xscale-iwmmxt.c: Likewise.
6373 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6375 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6377 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6380 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6382 * features/aarch64-pauth.c: Regenerate.
6384 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6386 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6388 (bpstat_what): Use false instead of 0.
6390 2019-07-09 Pedro Alves <palves@redhat.com>
6392 * break-catch-throw.c (is_exception_catchpoint): New.
6393 * breakpoint.c (print_one_breakpoint_location): New parameter
6394 'raw_loc'. Handle it. Use
6395 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6396 looking at the breakpoint's type.
6397 (print_one_breakpoint): If handling "maint info breakpoints", also
6398 print locations of exception catchpoints.
6399 * breakpoint.h (is_exception_catchpoint): Declare.
6401 2019-07-09 Pedro Alves <palves@redhat.com>
6403 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6405 (allocate_location_exception_catchpoint): New.
6406 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6407 (initialize_throw_catchpoint_ops): Install
6408 allocate_location_exception_catchpoint as allocate_location
6410 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6411 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6413 (breakpoint_address_is_meaningful): Delete.
6414 (bl_address_is_meaningful): New.
6415 (breakpoint_locations_match): Adjust comment.
6416 (bp_location_from_bp_type): New, factored out of...
6417 (bp_location::bp_location(breakpoint *)): ... this.
6418 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6420 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6421 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6422 breakpoint_address_is_meaningful.
6423 (bp_locations_compare): Adjust comment.
6424 (update_global_location_list): Use bl_address_is_meaningful
6425 instead of breakpoint_address_is_meaningful.
6426 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6428 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6429 * python/py-breakpoint.c (bppy_get_location): No longer check
6430 whether location is null.
6432 2019-07-09 Pedro Alves <palves@redhat.com>
6435 * breakpoint.c (print_one_breakpoint_location): Remove
6436 single-location assert.
6438 2019-07-09 Tom Tromey <tom@tromey.com>
6440 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6441 * configure: Rebuild.
6442 * configure.ac: Change common to gdbsupport.
6443 * gdbsupport: Rename from common.
6444 * acinclude.m4: Change common to gdbsupport.
6445 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6446 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6448 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6449 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6450 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6451 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6452 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6453 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6454 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6455 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6456 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6457 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6458 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6459 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6460 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6461 coff-pe-read.c, command.h, compile/compile-c-support.c,
6462 compile/compile-c.h, compile/compile-cplus-symbols.c,
6463 compile/compile-cplus-types.c, compile/compile-cplus.h,
6464 compile/compile-loc2c.c, compile/compile.c, completer.c,
6465 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6466 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6467 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6468 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6469 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6470 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6471 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6472 features/aarch64-core.c, features/aarch64-fpu.c,
6473 features/aarch64-pauth.c, features/aarch64-sve.c,
6474 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6475 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6476 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6477 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6478 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6479 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6480 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6481 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6482 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6483 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6484 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6485 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6486 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6487 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6488 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6489 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6490 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6491 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6492 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6493 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6494 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6495 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6496 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6497 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6498 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6499 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6500 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6501 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6502 minsyms.c, mips-linux-tdep.c, namespace.h,
6503 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6504 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6505 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6506 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6507 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6508 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6509 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6510 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6511 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6512 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6513 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6514 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6515 procfs.c, producer.c, progspace.h, psymtab.h,
6516 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6517 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6518 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6519 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6520 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6521 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6522 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6523 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6524 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6525 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6526 target-memory.c, target.c, target.h, target/waitstatus.c,
6527 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6528 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6529 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6530 unittests/array-view-selftests.c,
6531 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6532 unittests/common-utils-selftests.c,
6533 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6534 unittests/format_pieces-selftests.c,
6535 unittests/function-view-selftests.c,
6536 unittests/lookup_name_info-selftests.c,
6537 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6538 unittests/mkdir-recursive-selftests.c,
6539 unittests/observable-selftests.c,
6540 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6541 unittests/parse-connection-spec-selftests.c,
6542 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6543 unittests/scoped_fd-selftests.c,
6544 unittests/scoped_mmap-selftests.c,
6545 unittests/scoped_restore-selftests.c,
6546 unittests/string_view-selftests.c, unittests/style-selftests.c,
6547 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6548 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6549 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6550 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6551 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6552 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6554 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6556 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6558 (decode_digits_ordinary): Set explicit_line field in sal.
6559 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6560 symtab_and_line that was set on an explicit line number in
6561 assembler code. Do always update the recorded symtab and line if
6562 we do skip the prologue.
6564 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6566 * breakpoint.c (set_breakpoint_location_function): Remove
6567 explicit_loc parameter.
6568 (momentary_breakpoint_from_master): Update call to
6569 set_breakpoint_location_function.
6570 (add_location_to_breakpoint): Likewise.
6572 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6574 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6575 required features based on default bfd type when no specific bfd
6578 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6580 * NEWS: Mention that GDB printf and eval commands can now print
6581 C-style and Ada-style convenience var strings without
6582 calling the inferior.
6583 * printcmd.c (printf_c_string): Locally print GDB internal var
6584 instead of transiting via the inferior.
6585 (printf_wide_c_string): Likewise.
6587 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6589 PR breakpoints/25011
6590 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6592 2019-07-04 Tom Tromey <tom@tromey.com>
6595 * tui/tui-winsource.c (tui_clear_source_content): Update.
6596 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6597 (tui_update_breakpoint_info): Update.
6598 (tui_set_exec_info_content): Update.
6599 * tui/tui-source.c (tui_set_source_content_nil): Update.
6600 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6602 * tui/tui-data.h (enum tui_bp_flag): New.
6603 (tui_bp_flags): New enum flags type.
6604 (struct tui_source_element) <break_mode>: Change type. Rename
6606 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6607 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6609 * tui/tui-winsource.h: Fix comment.
6611 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6613 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6614 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6615 (store_fpregs_to_thread)
6616 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6617 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6618 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6619 (IWMMXT_REGS_SIZE): Add define.
6620 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6621 (fetch_vfp_regs, store_vfp_regs)
6622 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6623 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6625 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6627 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6629 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6630 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6631 (ARM_INT_REGISTER_SIZE): ...to this.
6632 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6633 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6634 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6635 (arm_linux_collect_gregset, supply_nwfpe_register)
6636 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6638 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6639 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6640 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6641 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6642 (arm_return_in_memory, arm_store_return_value)
6643 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6644 (arm_record_ld_st_multiple): Likewise.
6645 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6646 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6648 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6650 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6651 AARCH64_DISPLACED_MODIFIED_INSNS.
6652 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6653 (aarch64_displaced_step_copy_insn): Likewise.
6654 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6655 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6656 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6657 ARM_DISPLACED_MODIFIED_INSNS.
6658 * arm-tdep.c (arm_gdbarch_init): Likewise.
6659 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6660 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6661 (struct arm_displaced_step_closure): Use
6662 ARM_DISPLACED_MODIFIED_INSNS.
6664 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6666 * features/Makefile: Remove unused xml files.
6667 * features/aarch64.xml: Remove.
6668 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6669 * features/i386/amd64-avx-avx512.xml: Remove.
6670 * features/i386/amd64-avx-linux.xml: Remove.
6671 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6672 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6673 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6674 * features/i386/amd64-avx-mpx.xml: Remove.
6675 * features/i386/amd64-avx.xml: Remove.
6676 * features/i386/amd64-linux.xml: Remove.
6677 * features/i386/amd64-mpx-linux.xml: Remove.
6678 * features/i386/amd64-mpx.xml: Remove.
6679 * features/i386/amd64.xml: Remove.
6680 * features/i386/i386-avx-avx512-linux.xml: Remove.
6681 * features/i386/i386-avx-avx512.xml: Remove.
6682 * features/i386/i386-avx-linux.xml: Remove.
6683 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6684 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6685 * features/i386/i386-avx-mpx-linux.xml: Remove.
6686 * features/i386/i386-avx-mpx.xml: Remove.
6687 * features/i386/i386-avx.xml: Remove.
6688 * features/i386/i386-linux.xml: Remove.
6689 * features/i386/i386-mmx-linux.xml: Remove.
6690 * features/i386/i386-mmx.xml: Remove.
6691 * features/i386/i386-mpx-linux.xml: Remove.
6692 * features/i386/i386-mpx.xml: Remove.
6693 * features/i386/i386.xml: Remove.
6694 * features/i386/x32-avx-avx512-linux.xml: Remove.
6695 * features/i386/x32-avx-linux.xml: Remove.
6696 * features/i386/x32-linux.xml: Remove.
6698 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6700 * regformats/aarch64.dat: Remove.
6701 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6702 * regformats/i386/amd64-avx-linux.dat: Remove.
6703 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6704 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6705 * regformats/i386/amd64-linux.dat: Remove.
6706 * regformats/i386/amd64-mpx-linux.dat: Remove.
6707 * regformats/i386/amd64.dat: Remove.
6708 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6709 * regformats/i386/i386-avx-linux.dat: Remove.
6710 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6711 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6712 * regformats/i386/i386-linux.dat: Remove.
6713 * regformats/i386/i386-mmx-linux.dat: Remove.
6714 * regformats/i386/i386-mpx-linux.dat: Remove.
6715 * regformats/i386/i386.dat: Remove.
6716 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6717 * regformats/i386/x32-avx-linux.dat: Remove.
6718 * regformats/i386/x32-linux.dat: Remove.
6720 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6722 * aarch64-tdep.c: Remove xml self tests.
6723 * amd64-linux-tdep.c: Likewise.
6724 * amd64-tdep.c: Likewise.
6725 * i386-linux-tdep.c: Likewise.
6726 * i386-tdep.c: Likewise.
6728 2019-07-03 Pedro Alves <palves@redhat.com>
6731 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6732 (pipe_cmd_option_defs): New.
6733 (make_pipe_cmd_options_def_group): New.
6734 (pipe_command): Use gdb::option::process_options.
6735 (pipe_command_completer): New function.
6736 (_initialize_cli_cmds): Install completer for "pipe" command.
6738 2019-07-03 Pedro Alves <palves@redhat.com>
6740 * cli/cli-option.c (union option_value) <string>: New field.
6741 (struct option_def_and_value): Add ctor, move ctor, dtor and
6742 use DISABLE_COPY_AND_ASSIGN.
6743 (option_def_and_value::clear_value): New.
6744 (parse_option, save_option_value_in_ctx, get_val_type_str)
6745 (add_setshow_cmds_for_options): Handle var_string.
6746 * cli-option.h (union option_def::var_address) <string>: New
6748 (struct string_option_def): New.
6749 * maint-test-options.c (struct test_options_opts): Add default
6750 ctor and use DISABLE_COPY_AND_ASSIGN.
6751 <string_opt>: New field.
6752 (test_options_opts::~test_options_opts): New.
6753 (test_options_opts::dump): Also dump "-string".
6754 (test_options_option_defs): Install "string.
6756 2019-07-03 Pedro Alves <palves@redhat.com>
6758 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6759 option_value with a null enumeration.
6760 (complete_options): Save the option values in the context.
6761 (save_option_value_in_ctx): New, factored out from ...
6762 (process_options): ... here.
6763 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6765 * maint-test-options.c (test_options_opts::dump): New, factored
6767 (maintenance_test_options_command_mode): ... here.
6768 (maintenance_test_options_command_completion_result): Delete.
6769 (maintenance_test_options_command_completion_text): Update
6771 (maintenance_show_test_options_completion_result): Change
6772 prototype. Just print
6773 maintenance_test_options_command_completion_text.
6774 (save_completion_result): New.
6775 (maintenance_test_options_completer_mode): Pass options context to
6776 complete_options, and then save a dump.
6777 (_initialize_maint_test_options): Use add_cmd to install "maint
6778 show test-options-completion-result".
6780 2019-07-03 Pedro Alves <palves@redhat.com>
6782 * NEWS (New commands): Mention "with" and "maint with".
6783 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6784 (with_command, with_command_completer): New.
6785 (pipe_command): Adjust to new repeat_previous
6787 (_initialize_cli_cmds): Install the "with" command and its "w"
6789 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6791 * cli/cli-setshow.c (parse_cli_var_uinteger)
6792 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6793 argument strings for all var_types.
6794 (get_setshow_command_value_string): New, factored out from ...
6795 (do_show_command): ... this.
6796 * cli/cli-setshow.h: Include <string>.
6797 (get_setshow_command_value_string): Declare.
6798 * command.h (repeat_previous): Now returns const char *. Adjust
6800 * maint.c: Include "cli/cli-cmds.h".
6801 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6802 (_initialize_maint_cmds): Register the "maintenance with" command.
6803 * top.c (repeat_previous): Move bits from pipe_command here:
6804 Return the saved command line, if any; error out if there's no
6805 command to relaunch.
6807 2019-07-03 Pedro Alves <palves@redhat.com>
6809 * NEWS (New commands): Mention "maint set/show test-settings"
6810 instead of "maint test-settings".
6811 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6812 (maintenance_test_settings_set_list): Rename to ...
6813 (maintenance_set_test_settings_list): ... this.
6814 (maintenance_test_settings_show_list): Rename to ...
6815 (maintenance_show_test_settings_list): ... this.
6816 (maintenance_test_settings_cmd): Delete.
6817 (maintenance_test_settings_set_cmd): ...
6818 (maintenance_set_test_settings_cmd): ... this.
6819 (maintenance_test_settings_show_cmd): ...
6820 (maintenance_show_test_settings_cmd): ... this.
6821 (maintenance_test_settings_show_value_cmd):
6822 (maintenance_show_test_settings_value_cmd): ... this.
6823 (_initialize_maint_test_settings): No longer install the "maint
6824 test-settings" prefix command. Rename "maint test-settings set"
6825 to "maint set test-settings", and "maint test-settings show" to
6826 "maint show test-settings". Adjust all subcommands.
6828 2019-07-03 Pedro Alves <palves@redhat.com>
6830 * maint-test-settings.c: Fix file's intro comment. Replace all
6831 references to "test-options" with references to "test-settings",
6834 2019-07-03 Pedro Alves <palves@redhat.com>
6836 * maint-test-settings.c (maintenance_test_settings_xxx)
6837 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6839 (maintenance_test_settings_enums): Use them.
6840 (maintenance_test_settings_enum): Default to
6841 maintenance_test_settings_xxx.
6842 (_initialize_maint_test_settings): Initialize
6843 MAINTENANCE_TEST_SETTINGS_FILENAME.
6845 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6847 * breakpoint.h (remove_breakpoints_inf): Change return type to
6848 void, move function documentation here.
6849 * breakpoint.c (remove_breakpoints_inf): Change return type to
6850 void, move function documentation to header.
6852 2019-07-02 Pedro Alves <palves@redhat.com>
6854 * NEWS (Completion improvements): Mention "info threads".
6855 * thread.c (struct info_threads_opts, info_threads_option_defs)
6856 (make_info_threads_options_def_group): New.
6857 (info_threads_command): Use gdb::option::process_options.
6858 (info_threads_command_completer): New.
6859 (_initialize_thread): Use gdb::option::build_help to build the
6860 help text for "info threads".
6862 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6864 * defs.h (generic_load): Move from here...
6865 * symfile.h (generic_load): ... to here. Rename name parameter
6867 * symfile.c (generic_load): Add comment.
6869 2019-07-01 Tom Tromey <tromey@adacore.com>
6872 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6873 declaration of without_params. Fix formatting.
6875 2019-07-01 Tom Tromey <tromey@adacore.com>
6877 * ada-exp.y (find_primitive_type): Update.
6878 * ada-lang.h (ada_lookup_symbol): Update.
6879 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6881 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6883 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6885 PR breakpoints/24541
6886 * gdbarch.c: Regenerate.
6887 * gdbarch.h: Regenerate.
6888 * gdbarch.sh: Add 'stap_adjust_register'.
6889 * i386-tdep.c: Include '<unordered_set>'.
6890 (i386_stap_adjust_register): New function.
6891 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6892 * stap-probe.c (stap_parse_register_operand): Call
6893 'gdbarch_stap_adjust_register'.
6895 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6898 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6899 * python/python.c (do_start_initialization): Use 'xmalloc'
6900 instead of 'PyMem_Malloc'.
6902 2019-06-28 Tom Tromey <tromey@adacore.com>
6904 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6907 2019-06-27 Tom Tromey <tromey@adacore.com>
6909 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6911 (arm_find_mapping_symbol, arm_record_special_symbol)
6912 (_initialize_arm_tdep): Update.
6913 (arm_objfile_data_free): Remove.
6915 2019-06-27 Tom Tromey <tromey@adacore.com>
6917 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6918 to cp_print_static_field.
6920 2019-06-26 Tom Tromey <tromey@adacore.com>
6922 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6923 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6926 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6928 * features/aarch64-core.c (create_feature_aarch64_core):
6930 * features/aarch64-core.xml: Add cpsr flags.
6932 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6934 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6935 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6937 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6939 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6941 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6943 (arm_record_special_symbol): Don't insert new symbol in sorted
6944 position, push it at the end.
6946 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6948 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6949 (arm_mapping_symbol_s): Remove.
6950 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6951 (arm_mapping_symbol_vec): New typedef.
6952 (struct arm_per_objfile): Add constructor.
6953 <section_maps>: Change type to
6954 std::unique_ptr<arm_mapping_symbol_vec[]>.
6955 (arm_compare_mapping_symbols): Remove.
6956 (arm_find_mapping_symbol): Adjust to section_maps type change.
6957 (arm_objfile_data_free): Call delete on arm_per_objfile.
6958 (arm_record_special_symbol): Adjust to section_maps type change.
6959 Allocate arm_per_objfile with new.
6961 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6963 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6964 with the command prefix.
6966 2019-06-25 Tom Tromey <tom@tromey.com>
6968 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6969 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6971 2019-06-25 Tom Tromey <tom@tromey.com>
6973 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6975 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6978 2019-06-25 Tom Tromey <tom@tromey.com>
6980 * tui/tui-winsource.c
6981 (tui_source_window_base::set_is_exec_point_at): Add check against
6984 2019-06-25 Tom Tromey <tom@tromey.com>
6986 * tui/tui-source.c (tui_set_source_content): Don't check before
6988 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6990 2019-06-25 Tom Tromey <tom@tromey.com>
6992 * tui/tui-winsource.h (tui_update_source_window_as_is)
6993 (tui_alloc_source_buffer, tui_line_is_displayed)
6994 (tui_addr_is_displayed): Change type of win_info.
6995 * tui/tui-winsource.c (tui_update_source_window_as_is)
6996 (tui_clear_source_content, tui_show_source_line)
6997 (tui_show_source_content, tui_source_window_base::refill)
6998 (tui_source_window_base::set_is_exec_point_at)
6999 (tui_source_window_base::set_is_exec_point_at)
7000 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7001 (tui_alloc_source_buffer, tui_line_is_displayed)
7002 (tui_addr_is_displayed): Change type of win_info. Update.
7003 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7004 (tui_source_window_base::do_make_visible_with_new_height):
7006 * tui/tui-source.c (tui_set_source_content)
7007 (tui_set_source_content_nil)
7008 (tui_source_window::do_scroll_vertical): Update.
7009 * tui/tui-layout.c (show_layout): Update.
7010 * tui/tui-disasm.c (tui_set_disassem_content)
7011 (tui_disasm_window::do_scroll_vertical): Update.
7012 * tui/tui-data.h (tui_win_content): Remove.
7013 (struct tui_gen_win_info) <content, content_size>: Remove.
7014 (struct tui_source_element): Add initializers and destructor.
7015 (union tui_which_element, struct tui_win_element): Remove.
7016 (struct tui_source_window_base) <content>: New field.
7017 (struct tui_data_window): Remove destructor.
7018 (tui_alloc_content, tui_free_win_content)
7019 (tui_free_all_source_wins_content): Don't declare.
7020 * tui/tui-data.c (tui_initialize_static_data): Update.
7021 (init_content_element, tui_alloc_content): Remove.
7022 (~tui_gen_win_info): Update.
7023 (~tui_data_window, tui_free_all_source_wins_content)
7024 (tui_free_win_content, free_content, free_content_elements):
7027 2019-06-25 Tom Tromey <tom@tromey.com>
7029 * tui/tui-winsource.h (tui_clear_source_content)
7030 (tui_erase_source_content, tui_show_source_content): Change type
7032 * tui/tui-winsource.c (tui_clear_source_content)
7033 (tui_erase_source_content, tui_show_source_content): Change type
7035 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7036 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7038 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7040 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7042 2019-06-25 Tom Tromey <tom@tromey.com>
7044 * tui/tui-winsource.c (tui_clear_source_content)
7045 (tui_source_window_base::set_is_exec_point_at): Update.
7046 * tui/tui-source.c (tui_set_source_content_nil): Update.
7047 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7049 * tui/tui-data.c (init_content_element): Update.
7051 2019-06-25 Tom Tromey <tom@tromey.com>
7053 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7054 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7055 * tui/tui-layout.c (init_and_make_win): Update.
7056 * tui/tui.h (enum tui_win_type): Update.
7057 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7058 tui_win_is_auxillary.
7059 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7060 tui_win_is_auxillary.
7062 2019-06-25 Tom Tromey <tom@tromey.com>
7064 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7065 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7066 (tui_delete_data_content_windows, tui_display_all_data)
7067 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7069 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7070 * tui/tui-regs.c (tui_last_regs_line_no)
7071 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7072 (tui_show_registers): Update.
7073 (tui_show_register_group): Return void. Update.
7074 (tui_display_registers_from, tui_display_reg_element_at_line)
7075 (tui_display_registers_from_line, tui_check_register_values):
7077 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7079 (struct tui_data_window) <regs_content>: Now a std::vector.
7080 <regs_content_count>: Remove.
7081 (tui_add_content_elements, tui_free_data_content): Don't declare.
7082 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7083 (init_content_element): Remove DATA_WIN case. Add assert.
7084 (tui_add_content_elements): Remove.
7085 (tui_data_window): Update.
7086 (tui_free_data_content): Remove.
7087 (free_content_elements): Remove DATA_WIN case.
7089 2019-06-25 Tom Tromey <tom@tromey.com>
7091 * tui/tui-data.c (tui_data_item_window): Update.
7092 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7093 * tui/tui-windata.c (tui_display_all_data)
7094 (tui_display_data_from_line): Update.
7095 (tui_check_data_values): Remove.
7096 * tui/tui-regs.c (tui_show_register_group)
7097 (tui_display_reg_element_at_line): Update.
7098 * tui/tui-hooks.c (tui_register_changed)
7099 (tui_refresh_frame_and_register_information): Call
7100 tui_check_register_values.
7101 * tui/tui-data.h (struct tui_data_window) <data_content,
7102 data_content_count, data_type>: Remove.
7103 (enum tui_data_type): Remove.
7105 * tui/tui-data.c (tui_data_window::clear_detail)
7106 (~tui_data_window): Update.
7108 2019-06-25 Tom Tromey <tom@tromey.com>
7110 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7112 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7113 Rename from tui_first_data_item_displayed. Update.
7114 (tui_data_window::refresh_all)
7115 (tui_data_window::do_scroll_vertical): Update.
7116 * tui/tui-data.h (struct tui_data_window)
7117 <first_data_item_displayed>: Declare new method.
7119 2019-06-25 Tom Tromey <tom@tromey.com>
7121 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7122 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7124 (tui_initialize_static_data): ...here.
7126 2019-06-25 Tom Tromey <tom@tromey.com>
7128 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7129 (tui_display_registers_from, tui_check_register_values): Update.
7130 (tui_display_register): Remove win_info parameter; update.
7131 (tui_get_register): Change type of parameters.
7132 * tui/tui-data.h (struct tui_data_element): Remove.
7133 (union tui_which_element) <data>: Remove.
7134 <data_window>: Change type.
7135 (struct tui_data_item_window): New.
7136 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7138 (~tui_data_item_window): New destructor.
7139 (free_content_elements): Remove DATA_ITEM_WIN case.
7141 2019-06-25 Tom Tromey <tom@tromey.com>
7143 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7146 2019-06-25 Tom Tromey <tom@tromey.com>
7148 * tui/tui-data.h (struct tui_command_element): Remove.
7149 (union tui_which_element) <command>: Remove.
7150 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7152 (free_content_elements): Remove CMD_WIN case.
7154 2019-06-25 Tom Tromey <tom@tromey.com>
7156 * tui/tui-layout.c (tui_set_layout): Update.
7157 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7158 * tui/tui-data.c (layout_def): Update.
7160 2019-06-25 Tom Tromey <tom@tromey.com>
7162 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7163 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7164 (tui_source_window_base::set_new_height): Update.
7165 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7167 (tui_set_locator_fullname, tui_set_locator_info)
7168 (tui_show_frame_info): Update.
7169 * tui/tui-source.c (tui_set_source_content)
7170 (tui_source_is_displayed): Update.
7171 * tui/tui-layout.c (show_source_disasm_command, show_data)
7172 (show_source_or_disasm_and_command): Update.
7173 * tui/tui-disasm.c (tui_set_disassem_content)
7174 (tui_get_begin_asm_address): Update.
7175 * tui/tui-data.h (struct tui_locator_element): Remove.
7176 (union tui_which_element) <locator>: Remove.
7177 (struct tui_locator_window): New.
7178 (tui_locator_win_info_ptr): Change return type.
7179 * tui/tui-data.c (_locator): Change type.
7180 (tui_locator_win_info_ptr): Change return type.
7181 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7182 (tui_alloc_content): Add assert.
7184 2019-06-25 Tom Tromey <tom@tromey.com>
7186 * tui/tui-winsource.c
7187 (tui_exec_info_window::maybe_allocate_content): New method.
7188 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7189 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7190 (make_source_or_disasm_window): Add cast.
7191 * tui/tui-data.h (union tui_which_element) <simple_string>:
7193 (struct tui_source_info): New.
7194 (struct tui_source_window_base) <execution_info>: Change type.
7195 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7196 case, and add assert.
7197 (tui_alloc_content): Add assert.
7199 2019-06-25 Tom Tromey <tom@tromey.com>
7201 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7202 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7203 * tui/tui-data.c (tui_alloc_win_info): Remove.
7205 2019-06-25 Tom Tromey <tom@tromey.com>
7207 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7208 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7211 2019-06-25 Tom Tromey <tom@tromey.com>
7213 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7214 make_visible_with_new_height method.
7215 (tui_win_info::make_visible_with_new_height): New method.
7216 (tui_source_window_base::do_make_visible_with_new_height)
7217 (tui_data_window::do_make_visible_with_new_height)
7218 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7219 (make_visible_with_new_height): Remove.
7220 (tui_resize_all, tui_adjust_win_heights): Use
7221 make_visible_with_new_height method.
7222 * tui/tui-data.h (struct tui_win_info)
7223 <do_make_visible_with_new_height, make_visible_with_new_height>:
7225 (struct tui_source_window_base, struct tui_data_window)
7226 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7229 2019-06-25 Tom Tromey <tom@tromey.com>
7231 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7233 (update_tab_width): Call update_tab_width method.
7234 * tui/tui-data.h (struct tui_win_info)
7235 (struct tui_source_window_base) <update_tab_width>: New methods.
7237 2019-06-25 Tom Tromey <tom@tromey.com>
7239 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7241 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7243 (tui_gen_win_info::make_visible): Update.
7244 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7246 * tui/tui-data.h (enum tui_box): New enum.
7247 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7249 2019-06-25 Tom Tromey <tom@tromey.com>
7251 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7252 init_and_make_win for EXEC_INFO_WIN.
7253 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7255 (struct tui_win_info) <~tui_win_info>: Inline.
7256 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7258 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7259 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7261 (tui_initialize_static_data): Update.
7262 (~tui_gen_win_info): Handle more cleanup here.
7263 (~tui_source_window_base): Delete "execution_info".
7264 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7266 2019-06-25 Tom Tromey <tom@tromey.com>
7268 * tui/tui-layout.c (make_command_window): Don't set
7270 (show_source_disasm_command): Call the reset method.
7271 (show_data): Don't set can_highlight. Call the reset method.
7272 (tui_gen_win_info::reset): Rename from init_gen_win_info
7273 (init_and_make_win): Simplify. Return tui_gen_win_info.
7274 (show_source_or_disasm_and_command): Call the reset method.
7275 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7276 (struct tui_cmd_window): Set can_highlight.
7278 2019-06-25 Tom Tromey <tom@tromey.com>
7280 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7282 (tui_make_visible, tui_make_invisible): Rewrite.
7283 (tui_win_info::make_visible): Remove.
7284 (tui_source_window_base::make_visible): Update.
7285 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7286 method. Moved from...
7287 (struct tui_win_info) <make_visible>: ...here.
7289 2019-06-25 Tom Tromey <tom@tromey.com>
7291 * tui/tui-winsource.c
7292 (tui_source_window_base::do_scroll_horizontal): Remove direction
7294 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7295 direction parameter.
7296 * tui/tui-win.c (tui_win_info::forward_scroll)
7297 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7298 (tui_win_info::right_scroll): Update.
7299 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7300 direction parameter.
7301 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7302 direction parameter.
7303 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7304 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7305 Remove direction parameter.
7306 (struct tui_source_window_base, struct tui_source_window)
7307 (struct tui_disasm_window, struct tui_data_window)
7308 (struct tui_cmd_window): Update.
7310 2019-06-25 Tom Tromey <tom@tromey.com>
7312 * tui/tui-winsource.h (tui_set_exec_info_content)
7313 (tui_show_exec_info_content, tui_erase_exec_info_content)
7314 (tui_clear_exec_info_content, tui_update_exec_info): Change
7315 argument to tui_source_window_base.
7316 * tui/tui-winsource.c (tui_set_exec_info_content)
7317 (tui_show_exec_info_content, tui_erase_exec_info_content)
7318 (tui_clear_exec_info_content, tui_update_exec_info): Change
7319 argument to tui_source_window_base.
7321 2019-06-25 Tom Tromey <tom@tromey.com>
7323 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7324 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7326 2019-06-25 Tom Tromey <tom@tromey.com>
7328 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7331 2019-06-25 Tom Tromey <tom@tromey.com>
7333 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7335 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7337 * tui/tui-source.c (tui_set_source_content): Update.
7338 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7340 2019-06-25 Tom Tromey <tom@tromey.com>
7342 * tui/tui-win.c (window_name_completer, tui_set_focus)
7343 (tui_all_windows_info): Use name method.
7344 * tui/tui-data.h (struct tui_gen_win_info)
7345 (struct tui_source_window, struct tui_disasm_window)
7346 (struct tui_data_window, struct tui_cmd_window) <name>: New
7348 (tui_win_name): Don't declare.
7349 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7350 (tui_win_name): Remove.
7352 2019-06-25 Tom Tromey <tom@tromey.com>
7354 * tui/tui-winsource.h (tui_update_source_window)
7355 (tui_update_source_window_as_is): Change parameter type.
7356 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7357 to be a tui_source_window_base.
7358 (tui_update_source_window_as_is): Likewise.
7359 * tui/tui-win.c (make_visible_with_new_height): Update.
7361 2019-06-25 Tom Tromey <tom@tromey.com>
7363 * tui/tui-winsource.c (tui_erase_source_content)
7364 (tui_show_source_content, tui_show_exec_info_content)
7365 (tui_erase_exec_info_content): Use refresh_window method.
7366 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7367 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7368 from tui_refresh_win.
7369 (tui_data_window::refresh_window): New method.
7370 (tui_win_info::refresh, tui_source_window_base::refresh)
7371 (tui_refresh_all): Use refresh_window method.
7372 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7374 * tui/tui-regs.c (tui_display_register): Call refresh_window
7376 * tui/tui-layout.c (show_source_disasm_command)
7377 (show_source_or_disasm_and_command): Call refresh_window method.
7378 * tui/tui-data.h (struct tui_gen_win_info)
7379 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7382 2019-06-25 Tom Tromey <tom@tromey.com>
7384 * tui/tui.c (tui_rl_other_window, tui_enable)
7385 (tui_is_window_visible, tui_get_command_dimension): Update.
7386 * tui/tui-winsource.c (tui_update_source_window_as_is)
7387 (tui_clear_source_content, tui_erase_source_content)
7388 (tui_show_source_line, tui_source_window_base::refill)
7389 (tui_source_window_base::do_scroll_horizontal)
7390 (tui_source_window_base::set_is_exec_point_at)
7391 (tui_update_breakpoint_info, tui_set_exec_info_content)
7392 (tui_alloc_source_buffer, tui_line_is_displayed)
7393 (tui_addr_is_displayed): Update.
7394 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7395 (tui_check_and_display_highlight_if_needed)
7396 (tui_win_info::make_visible, tui_win_info::refresh)
7397 (tui_refresh_all): Update.
7398 * tui/tui-windata.c (tui_first_data_item_displayed)
7399 (tui_delete_data_content_windows, tui_erase_data_content)
7400 (tui_display_all_data, tui_data_window::refresh_all)
7401 (tui_check_data_values): Update.
7402 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7403 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7404 (tui_win_info::backward_scroll, tui_refresh_all_win)
7405 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7406 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7407 (tui_source_window_base::set_new_height)
7408 (tui_data_window::set_new_height)
7409 (make_invisible_and_set_new_height)
7410 (make_visible_with_new_height, new_height_ok)
7411 (parse_scrolling_args): Update.
7412 * tui/tui-stack.c (tui_show_frame_info): Update.
7413 * tui/tui-source.c (tui_set_source_content)
7414 (tui_set_source_content_nil, tui_source_is_displayed)
7415 (tui_source_window::do_scroll_vertical): Update.
7416 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7417 (tui_display_registers_from, tui_display_reg_element_at_line)
7418 (tui_check_register_values, tui_reg_command): Update.
7419 * tui/tui-layout.c (tui_default_win_height)
7420 (show_source_disasm_command, show_data, init_and_make_win)
7421 (show_source_or_disasm_and_command): Update.
7422 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7423 (tui_redisplay_readline, tui_mld_flush)
7424 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7426 * tui/tui-disasm.c (tui_set_disassem_content)
7427 (tui_disasm_window::do_scroll_vertical): Update.
7428 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7430 (struct tui_win_info): Derive from tui_gen_win_info.
7431 <~tui_win_info>: Mark as override.
7432 <generic>: Remove member.
7433 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7434 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7435 (~tui_data_window, ~tui_win_info)
7436 (tui_free_all_source_wins_content): Update.
7437 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7439 2019-06-25 Tom Tromey <tom@tromey.com>
7441 * tui/tui-layout.c (init_and_make_win): Use new.
7442 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7443 destructor, initializers.
7444 (tui_alloc_generic_win_info): Don't declare.
7445 * tui/tui-data.c (_locator): Add argument to constructor.
7446 (source_win, disasm_win): New globals.
7447 (exec_info): Remove.
7448 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7450 (tui_alloc_generic_win_info): Remove.
7451 (init_content_element): Use new.
7452 (tui_win_info::tui_win_info): Update.
7453 (free_content_elements) <case DATA_WIN>: Use delete.
7455 2019-06-25 Tom Tromey <tom@tromey.com>
7457 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7458 * tui/tui-windata.c (tui_first_data_item_displayed)
7459 (tui_delete_data_content_windows): Update.
7460 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7461 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7462 (tui_display_registers_from, tui_check_register_values): Update.
7463 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7465 * tui/tui-data.c (init_content_element): Update. Allocate the new
7467 (tui_free_data_content): Update.
7468 (free_content_elements) <case DATA_WIN>: Free the window.
7470 2019-06-25 Tom Tromey <tom@tromey.com>
7472 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7474 * tui/tui-layout.c (make_command_window)
7475 (show_source_disasm_command, show_data, init_and_make_win)
7476 (show_source_or_disasm_and_command): Update.
7477 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7479 <can_highight, is_highlighted>: Now bool.
7480 (tui_set_win_highlight): Don't declare.
7481 * tui/tui-data.c (tui_set_win_highlight): Remove.
7483 2019-06-25 Tom Tromey <tom@tromey.com>
7485 * tui/tui-wingeneral.c (make_visible): Remove check of window
7488 2019-06-25 Tom Tromey <tom@tromey.com>
7490 * tui/tui-win.c (tui_win_info::max_height)
7491 (tui_cmd_window::max_height): New methods.
7492 (new_height_ok): Call max_height.
7493 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7494 <max_height>: New method.
7496 2019-06-25 Tom Tromey <tom@tromey.com>
7498 * tui/tui-win.c (tui_source_window_base::set_new_height)
7499 (tui_data_window::set_new_height): New methods.
7500 (make_invisible_and_set_new_height): Call set_new_height method.
7501 * tui/tui-data.h (struct tui_win_info)
7502 (struct tui_source_window_base, struct tui_data_window)
7503 <set_new_height>: New method.
7505 2019-06-25 Tom Tromey <tom@tromey.com>
7507 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7508 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7509 tui_refresh_data_win.
7510 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7512 (tui_refresh_all_win): Call the refresh_all method.
7513 (tui_set_focus): Likewise.
7514 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7515 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7518 2019-06-25 Tom Tromey <tom@tromey.com>
7520 * tui/tui-winsource.h (tui_refill_source_window)
7521 (tui_set_is_exec_point_at): Don't declare.
7522 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7523 (tui_source_window_base::refill): Rename from
7524 tui_refill_source_window.
7525 (tui_source_window_base::do_scroll_horizontal): Update.
7526 (tui_source_window_base::set_is_exec_point_at): Rename from
7527 tui_set_is_exec_point_at.
7528 (tui_update_all_breakpoint_info): Update.
7529 * tui/tui-stack.c (tui_show_frame_info): Update.
7530 * tui/tui-layout.c (show_data): Add cast.
7531 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7532 * tui/tui-data.h (struct tui_source_window_base) <refill,
7533 set_is_exec_point_at>: New methods.
7534 (tui_source_windows, tui_add_to_source_windows): Update types.
7535 (tui_add_to_source_windows): Remove redundant declaration.
7536 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7537 (tui_source_windows): Change return type.
7538 (tui_clear_source_windows_detail): Update.
7539 (tui_add_to_source_windows): Change type of parameter.
7540 (tui_free_all_source_wins_content): Update.
7542 2019-06-25 Tom Tromey <tom@tromey.com>
7544 * tui/tui-wingeneral.c (tui_win_info::refresh)
7545 (tui_source_window_base::refresh): New methods.
7546 (tui_refresh_all): Call the refresh method.
7547 * tui/tui-data.h (struct tui_win_info)
7548 (struct tui_source_window_base) <refresh>: New method.
7550 2019-06-25 Tom Tromey <tom@tromey.com>
7552 * tui/tui.h (tui_is_window_visible): Return bool.
7553 * tui/tui.c (tui_is_window_visible): Return bool.
7554 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7555 (tui_make_visible, tui_make_invisible)
7556 (tui_win_info::make_visible)
7557 (tui_source_window_base::make_visible, make_all_visible)
7558 (tui_make_all_visible, tui_make_all_invisible): Update.
7559 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7560 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7562 (struct tui_win_info, struct tui_source_window_base)
7563 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7564 * tui/tui-data.c (tui_init_generic_part): Update.
7566 2019-06-25 Tom Tromey <tom@tromey.com>
7568 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7569 (tui_source_window_base::make_visible): New methods.
7570 (make_all_visible): Make method call.
7571 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7572 (struct tui_source_window_base, struct tui_cmd_window): Override
7574 (tui_win_is_source_type): Don't declare.
7575 * tui/tui-data.c (tui_win_is_source_type): Remove.
7577 2019-06-25 Tom Tromey <tom@tromey.com>
7579 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7582 2019-06-25 Tom Tromey <tom@tromey.com>
7584 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7585 Inline constructor. Add initializers for members.
7586 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7587 constructors; now inline in class.
7589 2019-06-25 Tom Tromey <tom@tromey.com>
7591 * tui/tui-regs.c (tui_show_registers): Update.
7592 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7594 * tui/tui-data.c (tui_data_window::clear_detail)
7595 (tui_data_window): Update.
7597 2019-06-25 Tom Tromey <tom@tromey.com>
7599 * tui/tui-windata.c (tui_display_all_data)
7600 (tui_display_data_from_line, tui_display_data_from)
7601 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7603 * tui/tui-regs.c (tui_last_regs_line_no)
7604 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7605 (tui_show_registers, tui_show_register_group)
7606 (tui_display_registers_from, tui_display_reg_element_at_line)
7607 (tui_display_registers_from_line, tui_check_register_values)
7608 (tui_reg_next, tui_reg_prev): Update.
7609 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7610 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7612 (struct tui_win_info) <detail>: Remove. Add new fields from
7614 (TUI_DATA_WIN): Add cast.
7615 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7616 (~tui_data_window): Simplify.
7618 2019-06-25 Tom Tromey <tom@tromey.com>
7620 * tui/tui-layout.c (show_source_disasm_command)
7621 (show_source_or_disasm_and_command): Update.
7622 * tui/tui-io.c (update_cmdwin_start_line)
7623 (tui_redisplay_readline): Update.
7624 * tui/tui-data.h (struct tui_command_info): Remove.
7625 (struct tui_win_info) <detail>: Remove command_info member.
7626 (struct tui_data_window) <start_line>: New member, from
7628 (TUI_CMD_WIN): Add casts.
7630 2019-06-25 Tom Tromey <tom@tromey.com>
7632 * tui/tui-winsource.c (tui_update_source_window)
7633 (tui_refill_source_window)
7634 (tui_source_window_base::do_scroll_horizontal)
7635 (tui_update_breakpoint_info, tui_set_exec_info_content)
7636 (tui_show_exec_info_content, tui_erase_exec_info_content)
7637 (tui_clear_exec_info_content): Update.
7638 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7640 * tui/tui-win.c (make_invisible_and_set_new_height)
7641 (make_visible_with_new_height): Update.
7642 * tui/tui-source.c (tui_set_source_content)
7643 (tui_show_symtab_source): Update.
7644 * tui/tui-layout.c (extract_display_start_addr)
7645 (show_source_disasm_command, show_data)
7646 (make_source_or_disasm_window)
7647 (show_source_or_disasm_and_command): Update.
7648 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7649 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7651 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7652 to tui_source_window_base.
7653 (struct tui_win_info) <detail>: Remove source_info member.
7654 (struct tui_source_window_base) <has_locator>: Inline.
7655 Move contents from tui_source_info; rename has_locator member to
7657 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7658 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7660 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7662 (tui_free_all_source_wins_content): Cast to
7663 tui_source_window_base.
7665 2019-06-25 Tom Tromey <tom@tromey.com>
7667 * tui/tui-win.c (make_invisible_and_set_new_height)
7668 (make_visible_with_new_height): Call has_locator method.
7669 * tui/tui-layout.c (show_source_disasm_command, show_data)
7670 (show_source_or_disasm_and_command): Update for bool change.
7671 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7672 (tui_win_info) <has_locator>: New method.
7673 (struct tui_source_window_base) <has_locator>: New method.
7674 (tui_win_has_locator): Don't declare.
7675 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7676 from tui_win_has_locator.
7677 (tui_source_window_base): Use false, not FALSE.
7679 2019-06-25 Tom Tromey <tom@tromey.com>
7681 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7682 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7683 clear_detail method directly.
7684 (tui_clear_win_detail): Remove.
7686 2019-06-25 Tom Tromey <tom@tromey.com>
7688 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7689 "this", not TUI_DISASM_WIN.
7691 2019-06-25 Tom Tromey <tom@tromey.com>
7693 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7695 * tui/tui-winsource.c
7696 (tui_source_window_base::do_scroll_horizontal): Rename from
7697 tui_horizontal_source_scroll.
7698 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7699 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7700 from tui_vertical_data_scroll.
7701 * tui/tui-win.h (tui_scroll): Don't declare.
7702 * tui/tui-win.c (tui_win_info::forward_scroll)
7703 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7704 (tui_win_info::right_scroll): Rename and update.
7705 (tui_scroll_forward_command, tui_scroll_backward_command)
7706 (tui_scroll_left_command, tui_scroll_right_command): Update.
7707 (tui_scroll): Remove.
7708 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7709 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7710 from tui_vertical_source_scroll.
7711 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7712 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7713 from tui_vertical_disassem_scroll.
7714 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7715 do_scroll_horizontal>: New methods.
7716 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7718 (struct tui_source_window_base): Add do_scroll_horizontal.
7719 (struct tui_source_window, struct tui_disasm_window): Add
7721 (struct tui_data_window, struct tui_cmd_window): Add
7722 do_scroll_horizontal and do_scroll_vertical.
7723 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7725 2019-06-25 Tom Tromey <tom@tromey.com>
7727 * tui/tui-data.h (struct tui_source_window_base): New struct.
7728 (struct tui_source_window): Derive from tui_source_window_base.
7729 (struct tui_disasm_window): New struct.
7730 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7731 from tui_source_window::clear_detail.
7732 (tui_source_window_base): Rename from tui_source_window.
7733 (~tui_source_window_base): Rename from ~tui_source_window.
7734 (tui_alloc_win_info): Create a tui_disasm_window.
7736 2019-06-25 Tom Tromey <tom@tromey.com>
7738 * tui/tui-data.h (struct tui_source_window)
7739 (struct tui_data_window): Declare destructors.
7740 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7742 (tui_win_info): Simplify.
7744 2019-06-25 Tom Tromey <tom@tromey.com>
7746 * tui/tui-winsource.c (tui_display_main)
7747 (tui_update_source_windows_with_addr)
7748 (tui_update_all_breakpoint_info): Update.
7749 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7750 (new_height_ok, parse_scrolling_args): Update.
7751 * tui/tui-stack.c (tui_show_frame_info): Update.
7752 * tui/tui-data.h (struct tui_list): Remove.
7753 (tui_source_windows): Return a reference to a std::vector.
7754 * tui/tui-data.c (source_windows): Now a std::vector.
7755 (tui_source_windows): Change return type.
7756 (tui_clear_source_windows): Rewrite.
7757 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7758 (tui_free_all_source_wins_content): Rewrite.
7760 2019-06-25 Tom Tromey <tom@tromey.com>
7762 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7763 (struct tui_data_window, struct tui_cmd_window): Declare
7764 clear_detail method.
7765 * tui/tui-data.c (tui_source_window::clear_detail)
7766 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7768 (tui_clear_win_detail): Simplify.
7770 2019-06-25 Tom Tromey <tom@tromey.com>
7772 * tui/tui-layout.c (make_source_window, make_disasm_window)
7773 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7774 Return the new window.
7775 (show_source_disasm_command, show_data)
7776 (show_source_or_disasm_and_command): Update.
7778 2019-06-25 Tom Tromey <tom@tromey.com>
7780 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7781 parameter. Return the new window.
7782 (show_source_disasm_command): Update and remove NULL check.
7783 (show_source_or_disasm_and_command): Update.
7785 2019-06-25 Tom Tromey <tom@tromey.com>
7787 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7789 2019-06-25 Tom Tromey <tom@tromey.com>
7791 * tui/tui-data.h (struct tui_win_info): Make constructor
7792 protected. Make destructor virtual. Add initializers.
7793 (tui_source_window, tui_data_window, tui_cmd_window): New
7795 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7796 constructor. Add "type" parameter.
7797 (tui_source_window, tui_data_window, tui_cmd_window): New
7799 (tui_alloc_win_info): Instantiate the appropriate subclass.
7801 2019-06-25 Tom Tromey <tom@tromey.com>
7803 * tui/tui-win.c (tui_resize_all): Use delete.
7804 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7806 (tui_free_window): Don't declare.
7807 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7810 2019-06-25 Tom Tromey <tom@tromey.com>
7812 * tui/tui-data.h (struct tui_win_info): Add constructor.
7813 * tui/tui-data.c (tui_alloc_win_info): Use new.
7814 (tui_free_window): Use delete.
7816 2019-06-22 Tom Tromey <tom@tromey.com>
7818 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7820 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7822 2019-06-22 Tom Tromey <tom@tromey.com>
7824 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7826 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7828 2019-06-22 Tom de Vries <tdevries@suse.de>
7830 * dwarf2read.c (create_addrmap_from_aranges)
7831 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7834 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7836 * dwarf2read.h (dwarf2_section_info_def): Remove.
7837 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7838 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7839 std::vector<dwarf2_section_info>.
7840 (struct dwo_file) <~dwo_file>: Remove.
7841 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7843 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7844 (dwarf2_read_debug_names): Likewise.
7845 (create_debug_types_hash_table): Change parameter type to
7846 array_view, adjust code accordingly.
7847 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7848 (partial_die_info::fixup): Likewise.
7849 (determine_prefix): Likewise.
7850 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7852 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7854 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7856 <~dwo_file>: Remove call to gdb_bfd_unref.
7857 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7858 gdb_bfd_ref_ptr::get.
7860 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7862 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7864 * dwarf2read.c (struct dwo_file): Initialize fields.
7866 (free_dwo_file): Remove, move content to ~dwo_file.
7867 (struct dwo_file_deleter): Remove.
7868 (dwo_file_up>: Remove custom deleter.
7869 (free_dwo_files): Remove.
7870 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7872 (process_skeletonless_type_units): Call unique_ptr::get.
7873 (allocate_dwo_file_hash_table): Add deleter to created hash
7874 table. Change return type to htab_up.
7875 (lookup_dwo_file_slot): Don't memset dwo_file, call
7877 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7878 (create_dwo_unit_in_dwp_v2): Likewise.
7879 (open_and_init_dwo_file): Likewise.
7880 (free_dwo_file_from_slot): Remove.
7882 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7884 * dwarf2read.h (struct dwarf2_section_info) <readin,
7885 is_virtual>: Change type to bool.
7886 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7889 2019-06-19 Tom Tromey <tom@tromey.com>
7891 * tui/tui-data.h (tui_init_content_element): Don't declare.
7893 2019-06-19 Tom Tromey <tom@tromey.com>
7895 * tui/tui-data.h (tui_init_win_info): Don't declare.
7897 2019-06-19 Tom de Vries <tdevries@suse.de>
7899 * dwarf2read.h (abstract_to_concrete): Change type to
7900 std::unordered_map<sect_offset, std::vector<sect_offset>,
7901 gdb::hash_enum<sect_offset>>.
7903 2019-06-19 Tom Tromey <tromey@adacore.com>
7905 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7906 EVAL_AVOID_SIDE_EFFECTS specially.
7908 2019-06-19 Tom Tromey <tromey@adacore.com>
7910 * source-cache.c (highlighter): New global.
7911 (source_cache::get_source_lines): Create a highlighter on demand.
7913 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7915 * defs.h (deprecated_interactive_hook): Delete declaration.
7916 * interps.c (clear_interpreter_hooks): Remove use of
7917 deprecated_interactive_hook.
7918 * top.c (deprecated_interactive_hook): Delete definition.
7919 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7921 2019-06-18 Tom de Vries <tdevries@suse.de>
7924 * dwarf2read.h (abstract_to_concrete): Change type from
7925 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7926 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7927 * dwarf2read.c (read_variable): Update.
7928 (dwarf2_fetch_die_loc_sect_off): Update.
7930 2019-06-17 Tom de Vries <tdevries@suse.de>
7933 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7934 accessing parent[parent_len - 1].
7936 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7939 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7940 call dtrace_process_dof with NULL dof.
7942 2019-06-16 Tom de Vries <tdevries@suse.de>
7945 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7947 2019-06-16 Tom Tromey <tom@tromey.com>
7949 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7950 (make_all_visible): Use address of member.
7952 2019-06-16 Tom Tromey <tom@tromey.com>
7954 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7955 (tui_free_window, free_content, free_content_elements): Remove
7957 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7959 * tui/tui-regs.c (tui_show_register_group)
7960 (tui_display_registers_from, tui_display_reg_element_at_line):
7961 Remove unnecessary cast.
7963 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7965 * linux-nat.c (normal_mask): Delete.
7966 (_initialize_linux_nat): Don't initialise normal_mask.
7968 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7971 * dwarf-index-write.h (write_psymtabs_to_index): Add
7972 dwz_basename parameter.
7973 * dwarf-index-write.c (write_gdbindex): Move file writing to
7974 write_gdbindex_1. Change return type void.
7975 (assert_file_size): Move up, remove filename parameter.
7976 (write_gdbindex_1): New function.
7977 (write_debug_names): Change return type to void, call
7979 (struct index_wip_file): New struct.
7980 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7981 file logic to index_wip_file. Write index for dwz file if
7983 (save_gdb_index_command): Pass basename of dwz file, if present.
7984 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7985 build-id of dwz file, if present.
7986 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7987 (dwarf2_get_dwz_file): Likewise.
7988 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7989 (dwarf2_get_dwz_file): Likewise.
7991 2019-06-16 Tom Tromey <tom@tromey.com>
7993 * coffread.c (process_coff_symbol): Use xstrdup.
7994 * value.c (create_internalvar): Use xstrdup.
7996 2019-06-16 Tom Tromey <tom@tromey.com>
7998 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7999 * breakpoint.c (stopin_command, stopat_command)
8000 (until_break_command, decode_location_default): Remove unnecessary
8002 * utils.c (subset_compare): Remove unnecessary cast.
8003 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8005 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8007 * infcmd.c (path_command): Remove unnecessary cast.
8008 * coffread.c (decode_type): Remove unnecessary cast.
8009 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8010 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8011 * tui/tui-stack.c (tui_show_locator_content)
8012 (tui_show_frame_info): Remove unnecessary cast.
8013 * tui/tui-win.c (tui_scroll_forward_command)
8014 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8015 (parse_scrolling_args): Remove unnecessary cast.
8016 * tui/tui-data.c (init_win_info, tui_del_window)
8017 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8018 (free_content_elements): Remove unnecessary cast.
8019 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8021 * tui/tui-source.c (tui_set_source_content)
8022 (tui_vertical_source_scroll): Remove unnecessary cast.
8023 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8025 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8026 * tui/tui-regs.c (tui_display_registers_from)
8027 (tui_display_register): Remove unnecessary cast.
8028 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8029 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8030 (make_visible): Remove unnecessary cast.
8031 * tui/tui-winsource.c (tui_erase_source_content)
8032 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8034 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8035 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8036 * stabsread.c (read_type, read_array_type, read_range_type):
8037 Remove unnecessary cast.
8038 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8039 (parse_symbol, parse_type, upgrade_type, parse_external)
8040 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8042 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8044 2019-06-16 Tom Tromey <tom@tromey.com>
8046 * tui/tui-data.c (tui_alloc_generic_win_info)
8047 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8050 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8051 Andrew Burgess <andrew.burgess@embecosm.com>
8053 * f-typeprint.c (f_print_type): Don't return early for not
8054 associated or not allocated types.
8055 (f_type_print_varspec_suffix): Add print_rank parameter and print
8056 ranks of array types in case they dangling.
8057 (f_type_print_base): Add print_rank parameter.
8059 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8061 * NEWS: Mention new MI commands.
8062 * break-catch-throw.c (enum exception_event_kind): Move to
8064 (print_mention_exception_catchpoint): Output text as a single
8066 (catch_exception_command_1): Rename to...
8067 (catch_exception_event): ...this, make non-static, update header
8068 command, and change some parameter types.
8069 (catch_catch_command): Update for changes to
8070 catch_exception_command_1.
8071 (catch_throw_command): Likewise.
8072 (catch_rethrow_command): Likewise.
8073 * breakpoint.c (enum exception_event_kind): Delete.
8074 * breakpoint.h (enum exception_event_kind): Moved here from
8075 break-catch-throw.c.
8076 (catch_exception_event): Declare.
8077 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8078 (mi_cmd_catch_throw): New function.
8079 (mi_cmd_catch_rethrow): New function.
8080 (mi_cmd_catch_catch): New function.
8081 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8082 'catch-catch' entries.
8083 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8084 (mi_cmd_catch_rethrow): Declare.
8085 (mi_cmd_catch_catch): Declare.
8087 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8089 * annotate.c (annotate_source_line): Change return type to void,
8090 update implementation to match.
8091 * annotate.h (annotate_source_line): Change return type to void,
8092 update header comment.
8093 * stack.c (print_frame_info): Don't change what frame information
8094 is printed based on whether annotations are on or not.
8096 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8098 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8099 (annotate_source): Make static.
8100 (annotate_source_line): Moved from source.c and renamed from
8101 identify_source_line. Update the return type.
8102 * annotate.h (annotate_source): Delete declaration.
8103 (annotate_source_line): Declaration moved from source.h, and
8104 renamed from identify_source_line. Return type updated.
8105 * source.c (identify_source_line): Moved to annotate.c and renamed
8106 to annotate_source_line.
8107 (info_line_command): Remove check of annotation_level.
8108 * source.h (identify_source_line): Move declaration to annotate.h
8109 and rename to annotate_source_line.
8110 * stack.c: Add 'annotate.h' include.
8111 (print_frame_info): Remove check of annotation_level before
8112 calling annotate_source_line.
8114 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8116 * source-cache.c (source_cache::get_plain_source_lines): Use
8117 open_source_file_with_line_charpos instead of just
8118 open_source_file, remove call to find_source_lines.
8119 (source_cache::get_source_lines): Likewise.
8120 * source.c (find_source_lines): Make static.
8121 (get_filename_and_charpos): Renamed into...
8122 (open_source_file_with_line_charpos): ..this along with changes to
8123 return a scoped_fd, and some other minor clean ups.
8124 (identify_source_line): Use open_source_file_with_line_charpos.
8125 (search_command_helper): Use open_source_file_with_line_charpos
8126 instead of just open_source_file, remove call to
8128 * source.h (open_source_file_with_line_charpos): Declare new
8130 (find_source_lines): Delete declaration.
8132 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8134 * source.c (get_filename_and_charpos): Remove fullname
8136 (identify_source_line): Update call to get_filename_and_charpos.
8138 2019-06-14 Tom Tromey <tromey@adacore.com>
8141 * ui-style.h (skip_ansi_escape): Update comment.
8142 * ui-file.h (class no_terminal_escape_file): New class.
8143 * ui-file.c (no_terminal_escape_file::write)
8144 (no_terminal_escape_file::puts): New methods.
8145 * cli/cli-logging.c (handle_redirections): Use
8146 no_terminal_escape_file.
8148 2019-06-14 Tom Tromey <tromey@adacore.com>
8150 * NEWS: Move convenience variable news above Python news.
8152 2019-06-14 Tom Tromey <tom@tromey.com>
8154 * gnulib: Move directory to top-level.
8155 * configure.ac: Don't configure gnulib.
8156 * configure: Rebuild.
8157 * common/common-defs.h: Use new path to gnulib.
8158 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8160 (INCGNU): Look in new gnulib location.
8161 (HFILES_NO_SRCDIR): Remove gnulib files.
8162 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8163 (generated_files): Remove GNULIB_H.
8164 ($(LIBGNU), all-lib): Remove targets.
8165 (distclean): Don't mention GNULIB_BUILDDIR.
8166 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8168 2019-06-14 Tom Tromey <tromey@adacore.com>
8170 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8171 Warn if symbol file does not provide any symbols.
8173 2019-06-14 Tom Tromey <tromey@adacore.com>
8175 * source.c (find_and_open_source): Respect basenames_may_differ.
8177 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8179 * annotate.c (annotate_breakpoints_invalid): Make use of
8180 scoped_restore_terminal_state.
8181 (annotate_frames_invalid): Likewise.
8183 2019-06-14 Tom Tromey <tromey@adacore.com>
8185 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8186 allow assignment to an internalvar.
8188 2019-06-14 Tom Tromey <tromey@adacore.com>
8190 * ada-lex.l: Allow "_" in attribute names.
8192 2019-06-14 Tom Tromey <tromey@adacore.com>
8195 * regcache.c (registers_changed): Don't call alloca.
8196 * top.c (execute_command): Don't call alloca.
8198 2019-06-13 Pedro Alves <palves@redhat.com>
8200 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8201 'expression'. When parsing an expression, error out if there's
8202 junk after "unlimited".
8203 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8204 (do_set_command): Adjust calls to is_unlimited_literal.
8206 2019-06-13 Pedro Alves <palves@redhat.com>
8208 * compile/compile.c (make_compile_options_def_group): Add braces
8209 around array_view initializer.
8210 * thread.c (make_thread_apply_all_options_def_group)
8211 (make_thread_apply_all_options_def_group): Likewise.
8213 2019-06-13 Pedro Alves <palves@redhat.com>
8215 * NEWS (New commands): Mention "maint test-options
8216 require-delimiter", "maint test-options unknown-is-error", "maint
8217 test-options unknown-is-operand" and "maint show
8218 test-options-completion-result".
8219 (New command options, command completion): New section.
8220 (Completion improvements): New section.
8221 Mention that you can abbreviate "unlimited".
8223 2019-06-13 Pedro Alves <palves@redhat.com>
8225 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8226 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8227 * unittests/cli-utils-selftests.c (test_parse_flags)
8228 (test_parse_flags_qcs): Delete.
8229 (test_cli_utils): Don't call deleted functions.
8231 2019-06-13 Pedro Alves <palves@redhat.com>
8233 * thread.c: Include "cli/cli-option.h".
8234 (tp_array_compar_ascending): Global.
8235 (tp_array_compar): Delete function.
8236 (tp_array_compar_ascending, tp_array_compar_descending): New
8238 (ascending_option_def, qcs_flag_option_def)
8239 (thr_qcs_flags_option_defs)
8240 (make_thread_apply_all_options_def_group)
8241 (make_thread_apply_options_def_group): New.
8242 (thread_apply_all_command): Use gdb::option::process_options.
8243 (thread_apply_command_completer)
8244 (thread_apply_all_command_completer): New.
8245 (thread_apply_command): Use gdb::option::process_options.
8246 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8247 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8248 to generate help text of "thread apply". Adjust "taas"'s help.
8249 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8250 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8252 2019-06-13 Pedro Alves <palves@redhat.com>
8254 * thread.c (thread_apply_command): Check for invalid TID with
8255 isdigit instead of !isalpha.
8257 2019-06-13 Pedro Alves <palves@redhat.com>
8259 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8260 (validate_flags_qcs): New.
8261 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8262 (validate_flags_qcs): Declare.
8263 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8264 (make_frame_apply_options_def_group): New.
8265 (frame_apply_command_count): Process options with
8266 gdb::option::process_options.
8267 (frame_apply_completer): New.
8268 (frame_apply_level_completer, frame_apply_all_completer)
8269 (frame_apply_completer): New.
8270 (_initialize_stack): Update help of "frame apply", "frame apply
8271 level", "frame apply all" and "faas" to mention supported options
8272 and install command completers.
8273 * stack.h (frame_apply_all_completer): Declare.
8274 * thread.c: Include "stack.h".
8275 (tfaas_command): Add "--".
8276 (_initialize_thread): Update help "tfaas" to mention supported
8277 options and install command completer.
8279 2019-06-13 Pedro Alves <palves@redhat.com>
8281 * completer.c (complete_nested_command_line): New.
8282 (gdb_completion_word_break_characters_throw): Add assertion.
8283 * completer.h (complete_nested_command_line): Declare.
8285 2019-06-13 Pedro Alves <palves@redhat.com>
8287 * stack.c (parse_backtrace_qualifiers): New.
8288 (backtrace_command): Use it.
8289 (backtrace_command_completer): Complete on qualifiers.
8291 2019-06-13 Pedro Alves <palves@redhat.com>
8293 * frame.c: Include "cli/cli-option.h.
8294 (user_set_backtrace_options): New.
8295 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8297 (get_prev_frame): Adjust.
8298 (boolean_option_def, uinteger_option_def)
8299 (set_backtrace_option_defs): New.
8300 (_initialize_frame): Adjust and use
8301 gdb::option::add_setshow_cmds_for_options to install "set
8302 backtrace past-main" and "set backtrace past-entry".
8303 * frame.h: Include "cli/cli-option.h".
8304 (struct frame_print_options): Forward declare.
8305 (print_frame_arguments_all, print_frame_arguments_scalars)
8306 (print_frame_arguments_none): Declare.
8307 (print_entry_values): Delete declaration.
8308 (struct frame_print_options, user_frame_print_options): New.
8309 (struct set_backtrace_options): New.
8310 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8311 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8312 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8313 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8314 (list_args_or_locals): Add frame_print_options parameter.
8315 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8316 * python/py-framefilter.c (enumerate_args): Pass down
8317 USER_FRAME_PRINT_OPTIONS.
8318 * stack.c: Include "cli/cli-option.h".
8319 (print_frame_arguments_all, print_frame_arguments_scalars)
8320 (print_frame_arguments_none): Declare.
8321 (print_raw_frame_arguments, print_entry_values): Delete.
8322 (user_frame_print_options): New.
8323 (boolean_option_def, enum_option_def, frame_print_option_defs):
8325 (struct backtrace_cmd_options): New.
8326 (bt_flag_option_def): New.
8327 (backtrace_command_option_defs): New.
8328 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8329 (print_frame_arg, read_frame_arg, print_frame_args)
8330 (print_frame_info, print_frame): Add frame_print_options parameter
8332 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8333 (backtrace_command_1): Add frame_print_options and
8334 backtrace_cmd_options parameters and use them.
8335 (make_backtrace_options_def_group): New.
8336 (backtrace_command): Process command options with
8337 gdb::option::process_options.
8338 (backtrace_command_completer): New.
8339 (_initialize_stack): Extend "backtrace"'s help to mention
8340 supported options. Install completer for "backtrace".
8341 Install some settings commands with add_setshow_cmds_for_options.
8343 2019-06-13 Pedro Alves <palves@redhat.com>
8345 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8346 and that "set/show print raw frame-arguments" are now deprecated.
8348 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8350 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8351 * stack.c (_initialize_stack): Install "set/show print
8352 raw-frame-arguments", and deprecate "set/show print raw
8354 * valprint.c (_initialize_valprint): Deprecate "set/show print
8357 2019-06-13 Pedro Alves <palves@redhat.com>
8359 * compile/compile.c (struct compile_options): New.
8360 (compile_flag_option_def, compile_command_option_defs)
8361 (make_compile_options_def_group): New.
8362 (compile_file_command): Handle options with
8363 gdb::option::process_options.
8364 (compile_file_command_completer): New function.
8365 (compile_code_command): Handle options with
8366 gdb::option::process_options.
8367 (compile_code_command_completer): New function.
8368 (_initialize_compiler): Install completers for "compile code" and
8369 "compile file". Mention available options in "compile code" and
8370 "compile code"'s help.
8371 * completer.c (advance_to_completion_word): New, factored out from
8373 (advance_to_expression_complete_word_point): ... this.
8374 (advance_to_filename_complete_word_point): New.
8375 * completer.h (advance_to_filename_complete_word_point): New
8378 2019-06-13 Pedro Alves <palves@redhat.com>
8380 * compile/compile.c: Include "cli/cli-option.h".
8381 (compile_print_value): Scope data pointer is now a
8382 value_print_options pointer; adjust.
8383 (compile_print_command): Process options. Scope data pointer is
8384 now a value_print_options pointer; adjust.
8385 (_initialize_compile): Update "compile print"'s help to include
8386 supported options. Install a completer for "compile print".
8387 * cp-valprint.c (show_vtblprint, show_objectprint)
8388 (show_static_field_print): Delete.
8389 (_initialize_cp_valprint): Don't install "set print
8390 static-members", "set print vtbl", "set print object" here.
8391 * printcmd.c: Include "cli/cli-option.h" and
8392 "common/gdb_optional.h".
8393 (print_command_parse_format): Rework to fill in a
8394 value_print_options instead of a format_data.
8395 (print_value): Change parameter type from format_data pointer to
8396 value_print_options reference. Adjust.
8397 (print_command_1): Process options. Adjust to pass down a
8398 value_print_options.
8399 (print_command_completer): New.
8400 (_initialize_printcmd): Install print_command_completer as
8401 handle_brkchars completer for the "print" command. Update
8402 "print"'s help to include supported options.
8403 * valprint.c: Include "cli/cli-option.h".
8404 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8405 here from cp-valprint.c.
8406 (boolean_option_def, uinteger_option_def)
8407 (value_print_option_defs, make_value_print_options_def_group):
8408 New. Use gdb::option::add_setshow_cmds_for_options to install
8409 "set print elements", "set print null-stop", "set print repeats",
8410 "set print pretty", "set print union", "set print array", "set
8411 print address", "set print symbol", "set print array-indexes".
8412 * valprint.h: Include <string> and "cli/cli-option.h".
8413 (make_value_print_options_def_group): Declare.
8414 (print_value): Change parameter type from format_data pointer to
8415 value_print_options reference.
8416 (print_command_completer): Declare.
8418 2019-06-13 Pedro Alves <palves@redhat.com>
8420 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8421 (COMMON_SFILES): Add maint-test-settings.c.
8422 * cli/cli-decode.c (boolean_enums): New global, factored out from
8424 (add_setshow_boolean_cmd): ... here.
8425 * cli/cli-decode.h (boolean_enums): Declare.
8426 * cli/cli-option.c: New file.
8427 * cli/cli-option.h: New file.
8428 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8429 factored out from ...
8430 (parse_cli_boolean_value(const char *)): ... this.
8431 (is_unlimited_literal): Change parameter type to pointer to
8432 pointer. Adjust and advance ARG pointer.
8433 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8434 (parse_cli_var_enum): New, factored out from ...
8435 (do_set_command): ... this. Adjust.
8436 * cli/cli-setshow.h (parse_cli_boolean_value)
8437 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8438 (parse_cli_var_enum): Declare.
8439 * cli/cli-utils.c: Include "cli/cli-option.h".
8440 (get_ulongest): New.
8441 * cli/cli-utils.h (get_ulongest): Declare.
8442 (check_for_argument): New overloads.
8443 * maint-test-options.c: New file.
8445 2019-06-13 Pedro Alves <palves@redhat.com>
8447 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8448 parse a range if "-" is at the end of the string.
8450 2019-06-13 Pedro Alves <palves@redhat.com>
8452 * cli/cli-setshow.c (parse_auto_binary_operation)
8453 (parse_cli_boolean_value): Don't allow "o".
8455 2019-06-13 Pedro Alves <palves@redhat.com>
8457 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8458 * NEWS: Mention maint test-settings KIND.
8459 * maint-test-settings.c: New file.
8461 2019-06-13 Pedro Alves <palves@redhat.com>
8463 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8465 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8468 2019-06-13 Pedro Alves <palves@redhat.com>
8470 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8473 2019-06-13 Pedro Alves <palves@redhat.com>
8475 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8477 2019-06-13 Pedro Alves <palves@redhat.com>
8479 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8480 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8482 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8483 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8485 (check_for_argument): Skip spaces after argument.
8487 2019-06-13 Pedro Alves <palves@redhat.com>
8489 * thread.c (thread_apply_command): Adjust TID parsing.
8490 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8491 detected before end of string.
8492 (tid_is_in_list): Error out if LIST is invalid.
8494 2019-06-13 Pedro Alves <palves@redhat.com>
8496 * completer.c (complete_line_internal_1): Rewind completion word
8498 (completion_tracker::advance_custom_word_point_by): Change
8499 parameter type to int.
8500 * completer.h (completion_tracker::advance_custom_word_point_by):
8503 2019-06-13 Pedro Alves <palves@redhat.com>
8505 * completer.c (advance_to_completion_word): Handle delimiters.
8507 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8509 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8511 2019-06-11 Tom Tromey <tom@tromey.com>
8513 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8514 (xmalloc_failed): Move to alloc.c.
8515 * alloc.c: New file.
8516 * Makefile.in (COMMON_SFILES): Add alloc.c.
8518 2019-06-11 Tom Tromey <tom@tromey.com>
8520 * nat/linux-waitpid.c: Don't include server.h.
8521 (linux_debug): Remove.
8522 (my_waitpid): Update.
8524 2019-06-11 Tom Tromey <tromey@adacore.com>
8526 * infcall.c (_initialize_infcall): Remove trailing newline from
8528 * user-regs.c (_initialize_user_regs): Remove trailing newline
8530 * typeprint.c (_initialize_typeprint): Remove trailing newline
8532 * reverse.c (_initialize_reverse): Remove trailing newlines from
8534 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8536 * language.c (add_set_language_command): Remove trailing newline
8538 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8540 * disasm.c (_initialize_disasm): Remove trailing newline from
8542 * top.c (init_main): Remove trailing newline from help.
8543 * interps.c (_initialize_interpreter): Remove trailing newline
8545 * btrace.c (_initialize_btrace): Remove trailing newlines from
8547 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8549 * python/python.c (_initialize_python): Remove trailing newline
8551 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8553 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8554 from help. Reformat some text.
8555 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8557 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8560 2019-06-11 Tom Tromey <tromey@adacore.com>
8562 * darwin-nat.c (darwin_decode_exception_message)
8563 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8565 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8567 * valops.c (value_slice): Check for not allocated or not
8570 2019-06-10 Tom de Vries <tdevries@suse.de>
8573 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8574 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8577 2019-06-10 Tom de Vries <tdevries@suse.de>
8580 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8581 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8583 2019-06-10 Tom de Vries <tdevries@suse.de>
8586 * symtab.c (struct demangled_name_entry): Add language field.
8587 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8588 static minimal symbol". Set and use language field.
8590 2019-06-10 Tom Tromey <tromey@adacore.com>
8592 * ada-lang.c (_initialize_ada_language): Update help text.
8594 2019-06-10 Tom Tromey <tromey@adacore.com>
8596 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8598 * guile/guile.c (handle_boot_error): Don't end warning with a
8600 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8601 warning with a newline.
8602 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8604 (s12z_frame_cache): Likewise.
8605 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8607 * solib-svr4.c (disable_probes_interface): Don't end warning with
8609 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8611 * python/python.c (do_finish_initialization): Don't end warning
8614 2019-06-10 Tom Tromey <tom@tromey.com>
8616 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8617 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8620 2019-06-10 Tom Tromey <tromey@adacore.com>
8622 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8624 (elf_new_init): Don't call stabsread_new_init.
8625 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8626 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8627 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8629 2019-06-10 Tom de Vries <tdevries@suse.de>
8633 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8635 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8637 * source.c (find_and_open_source): Also rewrite relative file
8640 2019-04-26 Amos Bird <amosbird@gmail.com>
8642 * annotate.c (annotate_thread_exited): Add "thread-exited"
8645 2019-06-06 Tom Tromey <tromey@adacore.com>
8647 * maint.h (class scoped_command_stats): Use
8648 DISABLE_COPY_AND_ASSIGN.
8649 <print_time>: New method.
8650 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8652 (scoped_command_stats::print_time): New method.
8654 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8656 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8657 instructions of lengths 6 or 8 bytes.
8659 2019-06-04 Pedro Alves <palves@redhat.com>
8661 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8663 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8664 * breakpoint.c (condition_completer): Likewise.
8665 * cli/cli-dump.c (scan_expression): Likewise.
8666 * common/filestuff.c (mkdir_recursive): Likewise.
8667 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8668 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8669 (gdb_abspath): Likewise.
8670 * compile/compile-cplus-types.c
8671 (compile_cplus_instance::decl_name): Likewise.
8672 * completer.c (complete_explicit_location):
8673 (signal_completer, reg_or_group_completer_1): Likewise.
8674 * cp-support.c (cp_remove_params_if_any): Likewise.
8675 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8676 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8677 * infcmd.c (strip_bg_char): Likewise.
8678 * linespec.c (copy_token_string): Likewise.
8679 * mi/mi-main.c (output_cores): Likewise.
8680 * psymtab.c (psymtab_search_name):
8681 * symfile.c (test_set_ext_lang_command): Likewise.
8682 * target.c (target_fileio_read_stralloc): Likewise.
8683 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8684 * value.c (complete_internalvar): Likewise.
8686 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8688 Add objfile property to gdb.Type.
8689 * NEWS: Mention Python API addition.
8690 * python/py-type.c (typy_get_objfile): New method.
8692 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8694 * NEWS: Mention the new set|show style [title|highlight].
8695 Mention changes to "show style", "help" and "apropos".
8697 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8699 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8700 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8701 instead of print_help_for_command.
8702 (print_doc_of_command): New function.
8703 (help_list): Add 'apropos -v word' suggestion.
8704 (print_help_for_command): Style the command name using title style.
8705 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8706 (_initialize_cli_cmds): Describe -v in apropos_command help.
8708 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8710 * cli/cli-style.h (cli_style_option): Add name in constructor,
8711 add m_name class member, add constructor with intensity,
8712 add name class function.
8713 (cli_style_option::add_setshow_commands): Remove name argument.
8714 (highlight_style, title_style): New styles.
8715 * cli/cli-style.c (do_show): New function that shows a style
8716 characteristic styling the style name with itself.
8717 (set_style_name): New function.
8718 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8719 Update all callers according to the changes in cli/cli-style.h.
8720 * utils.h (fputs_highlighted): New function.
8721 * utils.c (fputs_highlighted): Likewise.
8723 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8725 * NEWS: Mention new pipe command and new convenience variables.
8727 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8729 * cli/cli-cmds.c (pipe_command): New function.
8730 (_initialize_cli_cmds): Call add_com for pipe_command.
8731 Define | as an alias for pipe.
8732 (exit_status_set_internal_vars): New function.
8733 (shell_escape): Call exit_status_set_internal_vars.
8734 cli/cli-decode.c (find_command_name_length): Recognize | as
8735 a single character command.
8737 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8739 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8740 top.c (execute_command_to_ui_file): New function, mostly a copy
8741 of execute_command_to_string.
8742 (execute_command_to_string): Implement by calling
8743 execute_command_to_ui_file.
8745 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8747 * top.h (saved_command_line): Remove declaration.
8748 * top.c (previous_saved_command_line, previous_repeat_arguments):
8750 (saved_command_line): Make static, define together with other
8752 (dont_repeat): Clear repeat_arguments.
8753 (repeat_previous, get_saved_command_line, save_command_line):
8755 (gdb_init): Initialize saved_command_line
8756 and previous_saved_command_line.
8757 * main.c (captured_main_1): Remove saved_command_line initialization.
8758 * event-top.c (handle_line_of_input): Update to use
8759 the new 'repeat' related functions instead of direct access to
8761 * command.h (repeat_previous, get_saved_command_line,
8762 save_command_line): New declarations.
8763 (dont_repeat): Add comment.
8765 2019-05-30 Tom Tromey <tromey@adacore.com>
8767 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8769 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8771 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8774 * completer.c (complete): Initialize variable word.
8776 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8778 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8779 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8780 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8781 'body' is NULL to the outter 'if', protecting the '!is_define'
8784 2019-05-29 Tom Tromey <tromey@adacore.com>
8786 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8787 (dwarf_unknown): New function.
8788 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8789 (dwarf_type_encoding_name): Use dwarf_unknown.
8791 2019-05-29 Tom Tromey <tromey@adacore.com>
8794 * cp-valprint.c (cp_print_value_fields): Call
8795 cp_print_static_field inside "try".
8797 2019-05-29 Tom Tromey <tromey@adacore.com>
8799 * inflow.c (struct terminal_info): Add default operator=.
8800 * configure: Rebuild.
8801 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8802 -Wdeprecated-copy-dtor, -Wredundant-move.
8804 2019-05-29 Tom Tromey <tromey@adacore.com>
8807 * infcmd.c (print_return_value_1): Handle finish_print
8809 (show_print_finish): New function.
8810 (_initialize_infcmd): Add "set/show print finish" commands.
8811 * valprint.c (user_print_options): Initialize new member.
8812 * valprint.h (struct value_print_options) <finish_print>: New
8815 2019-05-28 Tom Tromey <tromey@adacore.com>
8817 * ada-lang.c (ada_remove_Xbn_suffix)
8818 (find_old_style_renaming_symbol)
8819 (parse_old_style_renaming): Remove.
8820 (ada_find_renaming_symbol): Don't call
8821 find_old_style_renaming_symbol.
8822 (ada_is_renaming_symbol): Rename from
8823 ada_find_renaming_symbol. Remove "block" parameter. Return
8825 (ada_read_var_value): Update and simplify.
8826 * ada-exp.y (write_var_or_type): Remove old code.
8828 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8831 * event-top.c: Remove include comment.
8832 * inflow.c (class scoped_ignore_sigttou): Move from here...
8833 * inflow.h (class scoped_ignore_sigttou): ...to here.
8834 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8835 * top.c: Remove include comment.
8837 2019-05-27 Tom Tromey <tom@tromey.com>
8841 2019-05-22 Tom Tromey <tromey@adacore.com>
8843 * target.c (target_follow_exec): Constify parameter.
8844 * target-delegates.c: Rebuild.
8845 * remote.c (remote_target::follow_exec): Constify parameter.
8846 * infrun.c (follow_exec): Constify parameter.
8847 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8848 (target_follow_exec): Likewise.
8850 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8852 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8853 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8855 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8857 * NEWS: Add debugredirect and testsuite sections.
8859 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8861 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8862 target descriptions using exclusively floating point register name
8865 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8868 * f-lang.c (build_fortran_types): Handle the case where
8869 gdbarch_floatformat_for_type returns a nullptr.
8871 2019-05-21 Tom de Vries <tdevries@suse.de>
8874 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8876 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8879 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8881 * i386-tdep.c (i386_floatformat_for_type): Use
8882 floatformats_ia64_quad for the 16-byte floating point component
8883 within a fortran 32-byte complex number.
8885 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8887 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8888 delete default constructor.
8889 (find_partial_die): Update to return const struct.
8890 (partial_die_parent_scope): Move variable declaration into scope
8891 of its use and change its type to auto.
8892 (guess_partial_die_structure_name): Likewise.
8893 (partial_die_info::fixup): Likewise.
8895 2019-05-17 Tom Tromey <tromey@adacore.com>
8897 * source.c (find_and_open_source): Remove cast.
8899 2019-05-17 Tom Tromey <tromey@adacore.com>
8901 * annotate.c (annotate_source): Make "filename" const.
8902 * annotate.h (annotate_source): Use const.
8904 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8906 * disasm.c (set_disassembler_options): Send errors to stderr.
8908 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8910 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8911 (cli_interp_base::set_logging): Check debug_redirect.
8912 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8913 * cli/cli-logging.c (debug_redirect): Add static variable.
8914 (pop_output_files): Add default param.
8915 (handle_redirections): Print debug setting.
8916 (show_logging_command): Likewise.
8917 (_initialize_cli_logging): Add debugredirect command.
8918 * interps.c (current_interp_set_logging): Add debug_redirect
8920 * interps.h (set_logging): Add debug_redirect parameter.
8921 (current_interp_set_logging): Likewise.
8922 * mi/mi-common.h: Likewise.
8923 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8925 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8926 Tom Tromey <tromey@adacore.com>
8928 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8930 * cli/cli-interp.h (make_logging_output): Remove declaration.
8931 * cli/cli-logging.c (make_logging_output): Remove function.
8932 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8934 * ui-file.c (tee_file::tee_file): Remove bools.
8935 (tee_file::~tee_file): Remove deletes.
8936 * ui-file.h (tee_file): Remove bools.
8938 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8940 * mi/mi-cmds.h (mi_cmd_complete): New function.
8941 * mi/mi-main.c (mi_cmd_complete): Likewise.
8942 * mi/mi-cmds.c: Define new MI command -complete.
8943 * NEWS: Mention new -complete command.
8945 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8947 * completer.h (complete): New function.
8948 * completer.c (complete): Likewise.
8949 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8950 function defined in completer.h.
8952 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8954 * MAINTAINERS (Write After Approval): Add myself.
8956 2019-05-17 Tom de Vries <tdevries@suse.de>
8959 * dwarf2read.c (struct cu_partial_die_info): New struct.
8960 (find_partial_die): Return cu_partial_die_info.
8961 (partial_die_parent_scope, guess_partial_die_structure_name)
8962 (partial_die_info::fixup): Handle new return type of find_partial_die.
8964 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8966 PR breakpoints/24541
8967 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8968 "std::string", simplifying the algorithm.
8970 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8972 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8973 (stap_static_probe_ops::get_probes): Likewise.
8975 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8977 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8978 '-')" and "else if".
8979 (stap_parse_single_operand): Join checks for
8980 "gdbarch_stap_parse_special_token_p" and
8981 "gdbarch_stap_parse_special_token" in the same "if" statement.
8982 Invert check when verifying for operation on register
8985 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8987 * stap-probe.c (stap_get_opcode): Update comment.
8988 (stap_get_expected_argument_type): Likewise.
8989 (handle_stap_probe): Likewise.
8991 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8993 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8994 return type to 'bool'. Adjust comment. Use 'bool' when
8996 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8997 * stap-probe.c (stap_parse_argument_1): Likewise.
8998 (stap_is_operator): Likewise.
8999 (stap_is_generic_prefix): Likewise.
9000 (stap_is_register_prefix): Likewise.
9001 (stap_is_register_indirection_prefix): Likewise.
9002 (stap_is_integer_prefix): Likewise.
9003 (stap_generic_check_suffix): Likewise.
9004 (stap_check_integer_suffix): Likewise.
9005 (stap_check_register_suffix): Likewise.
9006 (stap_check_register_indirection_suffix): Likewise.
9007 (stap_parse_register_operand): Likewise.
9008 (stap_parse_single_operand): Likewise.
9009 (stap_parse_argument_1): Likewise.
9010 (stap_probe::get_argument_count): Likewise.
9011 (stap_is_operator): Likewise.
9013 2019-05-16 Tom Tromey <tromey@adacore.com>
9015 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9018 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9020 * linux-thread-db.c (try_thread_db_load_1): Change return type
9022 (try_thread_db_load): Likewise.
9023 (try_thread_db_load_from_pdir_1): Likewise.
9024 (try_thread_db_load_from_pdir): Likewise.
9025 (try_thread_db_load_from_sdir): Likewise.
9026 (try_thread_db_load_from_dir): Likewise.
9027 (thread_db_load_search): Likewise.
9028 (has_libpthread): Likewise.
9029 (thread_db_load): Likewise.
9031 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9033 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9034 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9035 NULL, and complain/return if that's the case.
9037 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9039 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9040 (advance, posn, abstract_read_memory): New functions.
9041 [struct mem_read_abstraction]: New struct.
9042 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9044 2019-05-14 Tom Tromey <tromey@adacore.com>
9046 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9047 value is not lval_memory.
9049 2019-05-14 Tom Tromey <tromey@adacore.com>
9051 * solib.c (info_sharedlibrary_command): Style the file name.
9053 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9055 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9056 (aarch64_vnv_type): Likewise.
9057 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9058 * common/tdesc.c: Likewise.
9059 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9060 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9061 * features/aarch64-fpu.xml: Add ieee half view.
9062 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9063 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9064 * gdbtypes.h (struct builtin_type): Likewise.
9065 (struct objfile_type): Likewise.
9067 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9069 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9071 * location.h (string_to_event_location): Likewise.
9073 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9077 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9079 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9080 New variable declaration.
9081 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9083 (print_one_breakpoint): Use ui_out::test_flags and new global
9084 variable to compute use_fixed_output.
9085 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9087 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9088 (mi_multi_location_breakpoint_output_fixed): Remove.
9089 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9091 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9092 fix_multi_location_breakpoint_output flag if version >= 3.
9093 * ui-out.h (enum ui_out_flag)
9094 <fix_multi_location_breakpoint_output>: New enumerator.
9096 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9098 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9100 2019-05-10 Tom Tromey <tromey@adacore.com>
9102 * ada-lang.c (catch_ada_completer): New function.
9103 (_initialize_ada_language): Use it.
9105 2019-05-10 Tom Tromey <tromey@adacore.com>
9107 * thread.c (print_thread_info): Make "requested_threads" const.
9108 * gdbthread.h (print_thread_info): Make "requested_threads"
9110 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9111 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9113 2019-05-08 Tom Tromey <tom@tromey.com>
9115 * gdbtypes.c (objfile_type_data): Change type.
9116 (objfile_type, _initialize_gdbtypes): Update.
9118 2019-05-08 Tom Tromey <tom@tromey.com>
9120 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9121 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9122 (_initialize_dwarf2_frame): Update.
9124 2019-05-08 Tom Tromey <tom@tromey.com>
9126 * objc-lang.c (objc_objfile_data): Change type.
9127 (find_methods): Update.
9128 (_initialize_objc_lang): Remove.
9130 2019-05-08 Tom Tromey <tom@tromey.com>
9132 * stabsread.c (rs6000_builtin_type_data): Change type.
9133 (rs6000_builtin_type, _initialize_stabsread): Update.
9135 2019-05-08 Tom Tromey <tom@tromey.com>
9137 * mips-tdep.c (mips_pdr_data): Remove.
9138 (_initialize_mips_tdep): Update.
9140 2019-05-08 Tom Tromey <tom@tromey.com>
9142 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9143 (hppa_init_objfile_priv_data, read_unwind_info)
9144 (find_unwind_entry, _initialize_hppa_tdep): Update.
9146 2019-05-08 Tom Tromey <tom@tromey.com>
9148 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9149 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9151 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9153 2019-05-08 Tom Tromey <tom@tromey.com>
9155 * mdebugread.c (basic_type_data): Change type.
9156 (basic_type, _initialize_mdebugread): Update.
9158 2019-05-08 Tom Tromey <tom@tromey.com>
9160 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9162 2019-05-08 Tom Tromey <tom@tromey.com>
9164 * nto-tdep.c (nto_inferior_data_reg): Change type.
9165 (nto_inferior_data): Update.
9166 (nto_inferior_data_cleanup, nto_new_inferior_data)
9167 (_initialize_nto_tdep): Remove.
9168 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9170 2019-05-08 Tom Tromey <tom@tromey.com>
9172 * ada-lang.c (struct ada_inferior_data): Add initializers.
9173 (ada_inferior_data): Change type.
9174 (ada_inferior_data_cleanup): Remove.
9175 (get_ada_inferior_data, ada_inferior_exit)
9176 (struct ada_pspace_data): Add initializers, destructor.
9177 (ada_pspace_data_handle): Change type.
9178 (get_ada_pspace_data): Update.
9179 (ada_pspace_data_cleanup): Remove.
9181 2019-05-08 Tom Tromey <tom@tromey.com>
9183 * coffread.c (struct coff_symfile_info): Add initializers.
9184 (coff_objfile_data_key): Move lower. Change type.
9185 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9187 (coff_free_info): Remove.
9189 2019-05-08 Tom Tromey <tom@tromey.com>
9191 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9192 (fbsd_pspace_data_handle): Move lower. Change type.
9193 (get_fbsd_pspace_data): Update.
9194 (fbsd_pspace_data_cleanup): Remove.
9195 (_initialize_fbsd_tdep): Update.
9197 2019-05-08 Tom Tromey <tom@tromey.com>
9199 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9200 (get_ada_tasks_pspace_data): Update.
9201 (ada_tasks_pspace_data_cleanup): Remove.
9202 (_initialize_tasks): Update.
9203 (ada_tasks_inferior_data_handle): Change type.
9204 (get_ada_tasks_inferior_data): Update.
9205 (ada_tasks_inferior_data_cleanup): Remove.
9206 (struct ada_tasks_pspace_data): Add initializers.
9208 2019-05-08 Tom Tromey <tom@tromey.com>
9210 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9211 * symfile-debug.c (debug_sym_get_probes): Change type.
9212 * stap-probe.c (handle_stap_probe):
9213 (stap_static_probe_ops::get_probes): Change type.
9214 * probe.h (class static_probe_ops) <get_probes>: Change type.
9215 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9216 (parse_probes_in_pspace): Update.
9217 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9219 (any_static_probe_ops::get_probes): Change type.
9220 * elfread.c (elfread_data): New typedef.
9221 (probe_key): Change type.
9222 (elf_get_probes): Likewise. Update.
9223 (probe_key_free): Remove.
9224 (_initialize_elfread): Update.
9225 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9227 (dtrace_process_dof_probe, dtrace_process_dof)
9228 (dtrace_static_probe_ops::get_probe): Change type.
9230 2019-05-08 Tom Tromey <tom@tromey.com>
9232 * xcoffread.c (struct xcoff_symfile_info): Rename from
9233 coff_symfile_info. Add initializers.
9234 (xcoff_objfile_data_key): Move lower. Change type.
9235 (XCOFF_DATA): Rewrite.
9236 (xcoff_free_info): Remove.
9237 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9238 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9239 (xcoff_initial_scan): Update.
9241 2019-05-08 Tom Tromey <tom@tromey.com>
9243 * solib-svr4.c (struct svr4_info): Add initializers and
9245 <probes_table>: Now an htab_up.
9246 (solib_svr4_pspace_data): Change type.
9247 (free_probes_table): Simplify.
9248 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9249 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9250 (probes_table_remove_objfile_probes, register_solib_event_probe)
9251 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9252 (_initialize_svr4_solib): Update.
9254 2019-05-08 Tom Tromey <tom@tromey.com>
9256 * remote.c (remote_pspace_data): Change type.
9257 (remote_pspace_data_cleanup): Remove.
9258 (get_remote_exec_file, set_pspace_remote_exec_file)
9259 (_initialize_remote): Update.
9261 2019-05-08 Tom Tromey <tom@tromey.com>
9263 * breakpoint.c (breakpoint_objfile_key): Change type.
9264 (get_breakpoint_objfile_data): Update.
9265 (free_breakpoint_objfile_data): Remove.
9266 (_initialize_breakpoint): Update.
9268 2019-05-08 Tom Tromey <tom@tromey.com>
9270 * linux-tdep.c (struct linux_info): Add initializers.
9271 (linux_inferior_data): Move. Change type.
9272 (invalidate_linux_cache_inf): Update.
9273 (linux_inferior_data_cleanup): Remove.
9274 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9276 2019-05-08 Tom Tromey <tom@tromey.com>
9278 * auxv.c (auxv_inferior_data): Move. Change type.
9279 (auxv_inferior_data_cleanup): Remove.
9280 (invalidate_auxv_cache_inf): Rewrite.
9281 (get_auxv_inferior_data, _initialize_auxv): Update.
9283 2019-05-08 Tom Tromey <tom@tromey.com>
9285 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9286 (symfile_debug_objfile_data_key): Change type.
9287 (symfile_debug_installed, debug_qf_has_symbols)
9288 (debug_qf_find_last_source_symtab)
9289 (debug_qf_forget_cached_source_info)
9290 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9291 (debug_qf_print_stats, debug_qf_dump)
9292 (debug_qf_expand_symtabs_for_function)
9293 (debug_qf_expand_all_symtabs)
9294 (debug_qf_expand_symtabs_with_fullname)
9295 (debug_qf_map_matching_symbols)
9296 (debug_qf_expand_symtabs_matching)
9297 (debug_qf_find_pc_sect_compunit_symtab)
9298 (debug_qf_map_symbol_filenames)
9299 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9300 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9301 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9302 (debug_sym_read_linetable, debug_sym_relocate): Update.
9303 (symfile_debug_free_objfile): Remove.
9304 (install_symfile_debug_logging, _initialize_symfile_debug):
9307 2019-05-08 Tom Tromey <tom@tromey.com>
9309 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9310 allocate_on_obstack.
9311 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9312 (get_dwarf2_per_objfile): Update.
9313 (set_dwarf2_per_objfile): Remove.
9314 (dwarf2_has_info, dwarf2_get_section_info): Update.
9315 (dwarf2_free_objfile): Remove.
9316 (_initialize_dwarf2_read): Update.
9318 2019-05-08 Tom Tromey <tom@tromey.com>
9320 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9322 <unsupported_script_warning_printed,
9323 script_not_found_warning_printed>: Now bool.
9324 (auto_load_pspace_data): Change type.
9325 (~auto_load_pspace_info): Rename from
9326 auto_load_pspace_data_cleanup.
9327 (get_auto_load_pspace_data, init_loaded_scripts_info)
9328 (clear_section_scripts, maybe_print_unsupported_script_warning)
9329 (maybe_print_script_not_found_warning, _initialize_auto_load):
9332 2019-05-08 Tom Tromey <tom@tromey.com>
9334 * objfiles.c (objfile_pspace_info): Add destructor and
9336 (objfiles_pspace_data): Change type.
9337 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9338 (get_objfile_pspace_data): Update.
9339 (objfiles_bfd_data): Change type.
9340 (get_objfile_bfd_data): Update.
9341 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9343 2019-05-08 Tom Tromey <tom@tromey.com>
9345 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9347 (get_catch_syscall_inferior_data): Update.
9348 (catch_syscall_inferior_data_cleanup): Remove.
9349 (_initialize_break_catch_syscall): Update.
9351 2019-05-08 Tom Tromey <tom@tromey.com>
9353 * inflow.c (struct terminal_info): Add destructor and
9355 (inflow_inferior_data): Change type.
9356 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9357 (get_inflow_inferior_data, inflow_inferior_exit)
9358 (swap_terminal_info, _initialize_inflow): Update.
9360 2019-05-08 Tom Tromey <tom@tromey.com>
9362 * target-dcache.c (target_dcache_cleanup): Remove.
9363 (target_dcache_aspace_key): Change type.
9364 (target_dcache_init_p, target_dcache_invalidate)
9365 (target_dcache_get, target_dcache_get_or_init)
9366 (_initialize_target_dcache): Update.
9367 * dcache.h (struct dcache_deleter): New.
9369 2019-05-08 Tom Tromey <tom@tromey.com>
9371 * symtab.c (struct symbol_cache): Add destructor and
9373 (symbol_cache_key): Move. Change type.
9374 (make_symbol_cache, free_symbol_cache): Remove.
9375 (get_symbol_cache): Update.
9376 (symbol_cache_cleanup): Remove.
9377 (ALL_PSPACES, symbol_cache_flush)
9378 (maintenance_print_symbol_cache)
9379 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9382 2019-05-08 Tom Tromey <tom@tromey.com>
9384 * symtab.c (struct main_info): Add destructor and initializers.
9385 (main_progspace_key): Move. Change type.
9386 (get_main_info): Update.
9387 (main_info_cleanup): Remove.
9388 (_initialize_symtab): Update.
9390 2019-05-08 Tom Tromey <tom@tromey.com>
9392 * registry.h (DECLARE_REGISTRY): Define the _key class.
9394 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9396 * NEWS: Merge two 'New commands' sections.
9398 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9400 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9401 parameter and use Ada language definition instead.
9402 (ada_val_print_ptr): Remove unused language parameter.
9403 (ada_val_print_num): Remove language parameter and use Ada language
9405 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9407 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9408 parameter and use Ada language definition instead.
9409 (ada_val_print_1): Update all ada_val_print_xxx calls.
9410 Remove language parameter.
9411 (ada_val_print): Update ada_val_print_1 call.
9413 2019-05-08 Tom Tromey <tromey@adacore.com>
9415 * remote.c (remote_hw_watchpoint_limit)
9416 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9419 2019-05-08 Tom Tromey <tromey@adacore.com>
9421 * maint.c (_initialize_maint_cmds): Move initialization code to
9423 (watchdog, show_watchdog): Move to remote.c.
9424 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9426 (_initialize_remote): Move initialization code from maint.c.
9427 * defs.h (watchdog): Don't declare.
9429 2019-05-08 Tom Tromey <tromey@adacore.com>
9431 * tui/tui-interp.c: Include main.h.
9432 * interps.c: Include main.h.
9433 * main.h (interpreter_p): Declare.
9434 * defs.h (interpreter_p): Don't declare.
9436 2019-05-08 Tom Tromey <tromey@adacore.com>
9438 * dwarf2loc.c: Include dwarf2read.h.
9439 * defs.h (read_unsigned_leb128): Don't declare.
9440 * dwarf2read.h (read_unsigned_leb128): Declare.
9442 2019-05-08 Tom Tromey <tromey@adacore.com>
9444 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9447 2019-05-08 Tom Tromey <tromey@adacore.com>
9449 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9450 when no wrap column is set.
9452 2019-05-08 Tom Tromey <tromey@adacore.com>
9454 * c-lang.c (c_get_string): Handle non-C-style arrays.
9456 2019-05-08 Tom Tromey <tromey@adacore.com>
9458 * typeprint.c (print_offset_data::update): Print the bit offset,
9459 not the number of bits remaining.
9461 2019-05-08 Tom Tromey <tromey@adacore.com>
9463 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9464 padding at end of comment.
9466 2019-05-08 Tom Tromey <tromey@adacore.com>
9468 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9471 2019-05-06 Tom Tromey <tom@tromey.com>
9473 * common/scoped_mmap.c: Include common-defs.h.
9474 * common/scoped_mmap.h: Don't include config.h.
9476 2019-05-04 Tom Tromey <tom@tromey.com>
9478 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9479 (struct aarch64_call_info): Add initializers.
9480 <si>: Now a std::vector.
9481 (pass_on_stack, aarch64_push_dummy_call): Update.
9483 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9484 Tom Tromey <tom@tromey.com>
9486 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9487 (ppc_threads): Now a std::vector. Now static.
9488 (hwdebug_find_thread_points_by_tid)
9489 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9492 2019-05-04 Tom Tromey <tom@tromey.com>
9494 * arc-tdep.c (arc_tdesc_init): Return bool.
9496 2019-05-04 Tom Tromey <tom@tromey.com>
9498 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9499 Use gdb_assert_not_reached.
9501 2019-05-04 Tom Tromey <tom@tromey.com>
9503 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9506 2019-05-04 Tom Tromey <tom@tromey.com>
9508 * arc-tdep.c (arc_tdesc_init): Use bool.
9510 2019-05-04 Tom Tromey <tom@tromey.com>
9512 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9514 2019-05-04 Tom Tromey <tom@tromey.com>
9516 * cli/cli-cmds.c (valid_command_p): Return bool.
9518 2019-05-04 Tom Tromey <tom@tromey.com>
9520 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9521 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9523 2019-05-04 Raul Tambre <raul@tambre.ee>
9525 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9526 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9527 operator for comparison.
9529 2019-05-04 Tom Tromey <tom@tromey.com>
9531 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9532 (lookup_partial_symbol, print_partial_symbols)
9533 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9534 (psymbol_compare): Update.
9535 (add_psymbol_to_bcache): Clear the entire psymbol.
9536 (maintenance_check_psymtabs): Update.
9537 * psympriv.h (struct partial_symbol): Don't derive from
9538 general_symbol_info.
9539 <obj_section, unrelocated_address, address,
9540 set_unrelocated_address>: Update.
9541 <ginfo>: New member.
9542 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9543 (debug_names::write_psymbols): Update.
9545 2019-05-04 Tom de Vries <tdevries@suse.de>
9547 * contrib/cc-with-tweaks.sh: Support -n arg.
9549 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9551 * corelow.c (core_target::detach): Ensure frame cache and
9552 register caches are cleared.
9553 inferior.c (exit_inferior_1): Likewise.
9555 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9556 Tom Tromey <tom@tromey.com>
9558 * dictionary.c (collate_pending_symbols_by_language): Remove
9559 "struct" from foreach.
9560 * symtab.c (lookup_global_symbol_from_objfile)
9561 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9563 * ser-tcp.c (net_open): Remove "struct" from foreach.
9564 * objfiles.c (objfile_relocate, objfile_rebase)
9565 (objfile_has_symbols): Remove "struct" from foreach.
9566 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9568 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9570 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9571 "struct" from foreach.
9572 * ada-lang.c (create_excep_cond_exprs)
9573 (ada_exception_catchpoint_cond_string): Remove "struct" from
9576 2019-05-03 Tom Tromey <tromey@adacore.com>
9578 * ada-exp.y (convert_char_literal): Check suffix of each
9581 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9584 * ada-exp.y (yywrap): Don't define.
9585 * ada-lex.l (%option): Add noyywrap
9588 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9590 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9591 _WIN32_WINNT to the XP level, unless already defined to a higher
9594 * unittests/parse-connection-spec-selftests.c:
9596 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9599 * symfile.c (find_separate_debug_file): Remove colon from the
9600 drive spec of DOS/Windows file names of the target, so that the
9601 file name produced from DEBUGDIR and the target's directory will
9602 be valid on DOS/Windows systems.
9604 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9606 * rust-lang.c (val_print_struct): Handle printing structures
9609 2019-05-02 Tom Tromey <tromey@adacore.com>
9611 * valarith.c (_initialize_valarith): Remove.
9613 2019-05-01 Tom Tromey <tromey@adacore.com>
9615 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9618 2019-05-01 Tom Tromey <tromey@adacore.com>
9620 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9621 for big-endian copies.
9623 2019-04-30 Ali Tamur <tamur@google.com>
9624 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9625 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9626 (read_3_bytes): New function.
9628 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9630 * windows-nat.c (main_thread_id): Delete.
9631 (handle_output_debug_string): Replace main_thread_id by
9632 current_event.dwThreadId.
9633 (fake_create_process): Likewise.
9634 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9635 Do not set main_thread_id.
9636 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9637 current_event.dwThreadId.
9638 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9640 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9642 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9643 Use current_event.dwThreadId instead of main_thread_id.
9645 2019-04-30 Tom Tromey <tromey@adacore.com>
9647 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9648 (create_excep_cond_exprs): Iterate over program spaces.
9649 (ada_exception_catchpoint_cond_string): Examine all minimal
9650 symbols for exception types.
9652 2019-04-30 Tom Tromey <tromey@adacore.com>
9655 * dwarf2read.c (process_structure_scope): Handle case where type
9656 has template parameters but no symbol was created.
9658 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9659 Chris January <chris.january@arm.com>
9661 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9663 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9665 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9667 * f-typeprint.c (f_print_type): Update rules for printing
9669 (f_type_print_varspec_suffix): Likewise.
9671 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9672 Chris January <chris.january@arm.com>
9674 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9677 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9679 * f-lang.c (build_fortran_types): Change name of void type to
9681 * f-typeprint.c (f_type_print_base): Print the name of the void
9682 type, rather than a fixed string.
9683 * f-valprint.c (f_decorations): Use lower case void string.
9685 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9686 Chris January <chris.january@arm.com>
9688 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9691 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9692 Chris January <chris.january@arm.com>
9693 David Lecomber <david.lecomber@arm.com>
9695 * f-exp.y (BINOP_INTRINSIC): New token.
9696 (exp): New parser rule handling BINOP_INTRINSIC.
9697 (f77_keywords): Add new builtin procedures.
9698 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9699 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9700 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9701 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9702 (print_unop_subexp_f): New function.
9703 (print_binop_subexp_f): New function.
9704 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9705 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9706 (dump_subexp_body_f): Likewise.
9707 (operator_check_f): Likewise.
9708 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9709 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9711 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9713 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9715 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9716 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9717 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9718 (operator_length_f): New fuction.
9719 (print_subexp_f): New function.
9720 (op_name_f): New function.
9721 (dump_subexp_body_f): New function.
9722 (operator_check_f): New function.
9723 (exp_descriptor_f): Replace standard expression handling functions
9725 * gdb/fortran-operator.def: New file.
9726 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9727 * gdb/std-operator.def: Remove UNOP_KIND.
9729 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9731 * std-operator.def: Remove unbalanced, stray double quote
9734 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9735 Chris January <chris.january@arm.com>
9736 Daniel Everett <daniel.everett@arm.com>
9737 Nick Forrington <nick.forrington@arm.com>
9738 Richard Bunt <richard.bunt@arm.com>
9740 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9741 of depth when printing anonymous structs or unions.
9742 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9743 Don't print either the top-level value, or the children if the
9744 max-depth is exceeded.
9745 (ppscm_print_children): When printing the key of a map, allow one
9746 extra level of depth.
9747 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9748 print either the top-level value, or the children if the max-depth
9750 (print_children): When printing the key of a map, allow one extra
9752 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9753 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9754 (user_print_options): Initialise max_depth field.
9755 (val_print_scalar_or_string_type_p): New function.
9756 (val_print): Check to see if the max depth has been reached.
9757 (val_print_check_max_depth): Define new function.
9758 (show_print_max_depth): New function.
9759 (_initialize_valprint): Add 'print max-depth' option.
9760 * valprint.h (struct value_print_options) <max_depth>: New field.
9761 (val_print_check_max_depth): Declare new function.
9762 * NEWS: Document new feature.
9764 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9766 * ada-lang.c (ada_language_defn): Initialise new field.
9767 * c-lang.c (c_is_string_type_p): New function.
9768 (c_language_defn): Initialise new field.
9769 (cplus_language_defn): Initialise new field.
9770 (asm_language_defn): Initialise new field.
9771 (minimal_language_defn): Initialise new field.
9772 * c-lang.h (c_is_string_type_p): Declare new function.
9773 * d-lang.c (d_language_defn): Initialise new field.
9774 * f-lang.c (f_is_string_type_p): New function.
9775 (f_language_defn): Initialise new field.
9776 * go-lang.c (go_is_string_type_p): New function.
9777 (go_language_defn): Initialise new field.
9778 * language.c (default_is_string_type_p): New function.
9779 (unknown_language_defn): Initialise new field.
9780 (auto_language_defn): Initialise new field.
9781 * language.h (struct language_defn) <la_is_string_type_p>: New
9783 (default_is_string_type_p): Declare new function.
9784 * m2-lang.c (m2_language_defn): Initialise new field.
9785 * objc-lang.c (objc_language_defn): Initialise new field.
9786 * opencl-lang.c (opencl_language_defn): Initialise new field.
9787 * p-lang.c (pascal_is_string_type_p): New function.
9788 (pascal_language_defn): Initialise new field.
9789 * rust-lang.c (rust_is_string_type_p): New function.
9790 (rust_language_defn): Initialise new field.
9792 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9794 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9796 * ada-lang.c (ada_language_defn): Initialise new field.
9797 * c-lang.c (c_language_defn): Likewise.
9798 (cplus_language_defn): Likewise.
9799 (asm_language_defn): Likewise.
9800 (minimal_language_defn): Likewise.
9801 * d-lang.c (d_language_defn): Likewise.
9802 * f-lang.c (f_language_defn): Likewise.
9803 * go-lang.c (go_language_defn): Likewise.
9804 * language.c (unknown_language_defn): Likewise.
9805 (auto_language_defn): Likewise.
9806 * m2-lang.c (m2_language_defn): Likewise.
9807 * objc-lang.c (objc_language_defn): Likewise.
9808 * opencl-lang.c (opencl_language_defn): Likewise.
9809 * p-lang.c (pascal_language_defn): Likewise.
9810 * rust-lang.c (rust_language_defn): Likewise.
9812 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9814 * ada-lang.c (ada_is_character_type): Change return type to bool.
9815 (ada_is_string_type): Likewise.
9816 * ada-lang.h (ada_is_character_type): Update declaration
9817 (ada_is_string_type): Likewise.
9819 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9821 Support style in 'frame|thread apply'
9823 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9824 * record.c (record_start, record_stop): Update callers of
9825 execute_command_to_string with false.
9826 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9827 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9829 (class string_file): New constructor with term_out parameter.
9830 Override methods term_out and can_emit_style_escape. New member
9832 (class stdio_file): Override can_emit_style_escape.
9833 (class tee_file): Override term_out and can_emit_style_escape.
9834 * utils.h (can_emit_style_escape): Remove.
9835 * utils.c (can_emit_style_escape): Likewise.
9836 Update all callers of can_emit_style_escape (SOMESTREAM) to
9837 SOMESTREAM->can_emit_style_escape.
9838 * source-cache.c (source_cache::get_source_lines): Likewise.
9839 * stack.c (frame_apply_command_count): Call execute_command_to_string
9840 passing the term_out characteristic of the current gdb_stdout.
9841 * thread.c (thr_try_catch_cmd): Likewise.
9842 * top.c (execute_command_to_string): pass term_out parameter
9843 to construct the string_file for the command output.
9844 * ui-file.c (term_cli_styling): New function (most code moved
9845 from utils.c can_emit_style_escape).
9846 (string_file::string_file, string_file::can_emit_style_escape,
9847 stdio_file::can_emit_style_escape, tee_file::term_out,
9848 tee_file::can_emit_style_escape): New functions.
9850 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9852 * NEWS: Mention the new set|show may-call-functions.
9853 * infcall.c (may_call_functions_p): New variable.
9854 (show_may_call_functions_p): New function.
9855 (call_function_by_hand_dummy): Throws an error if not
9857 (_initialize_infcall): Call add_setshow_boolean_cmd for
9860 2019-04-25 Keith Seitz <keiths@redhat.com>
9863 * cp-support.c (inspect_type): Don't attempt substitutions
9864 of symbol with the same name.
9866 2019-04-25 Tom Tromey <tromey@adacore.com>
9869 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9872 2019-04-25 Tom Tromey <tromey@adacore.com>
9874 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9876 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9877 (gdb_xml_parser::parse): Use std::move.
9878 * python/python-internal.h (gdbpy_convert_exception): Take a const
9880 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9882 * python/py-utils.c (gdbpy_convert_exception): Take a const
9884 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9886 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9888 * mi/mi-main.c (mi_print_exception): Take a const reference.
9889 * main.c (handle_command_errors): Take a const reference.
9890 * linespec.c (parse_linespec): Use std::move.
9891 * infcall.c (run_inferior_call): Use std::move.
9892 (call_function_by_hand_dummy): Use std::move.
9893 * exec.c (try_open_exec_file): Use std::move.
9894 * exceptions.h (exception_print, exception_fprintf)
9895 (exception_print_same): Update.
9896 * exceptions.c (print_exception, exception_print)
9897 (exception_fprintf, exception_print_same): Change parameters to
9899 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9900 * common/new-op.c: Use std::move.
9901 * common/common-exceptions.h (struct gdb_exception): Add move
9903 (struct gdb_exception_error, struct gdb_exception_quit, struct
9904 gdb_quit_bad_alloc): Change constructor to move constructor.
9905 (throw_exception): Change parameter to rvalue reference.
9906 * common/common-exceptions.c (throw_exception): Take rvalue
9908 * cli/cli-interp.c (safe_execute_command): Use std::move.
9909 * breakpoint.c (insert_bp_location, location_to_sals): Use
9912 2019-04-25 Tom Tromey <tromey@adacore.com>
9914 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9915 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9916 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9917 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9918 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9919 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9920 guile/scm-value.c: Use unpack.
9921 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9922 gdbscm_gdb_exception.
9923 (gdbscm_throw_gdb_exception): Likewise.
9924 (struct gdbscm_gdb_exception): New.
9925 (unpack): New function.
9926 (gdbscm_wrap): Use unpack.
9928 2019-04-25 Tom Tromey <tromey@adacore.com>
9930 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9931 (gdb_rl_callback_handler): Use std::move.
9932 * common/common-exceptions.h (struct gdb_exception): Add move
9933 assignment operator.
9934 (throw_exception_sjlj): Change "exception" to const reference.
9935 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9936 (throw_exception_sjlj): Change "exception" to const reference.
9938 2019-04-25 Tom Tromey <tromey@adacore.com>
9940 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9941 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9942 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9944 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9946 * mi/mi-interp.c (mi_interp::exec): Update.
9947 * linespec.c (parse_linespec): Update.
9948 * infcall.c (run_inferior_call): Update.
9949 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9950 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9951 (gdbscm_lookup_global_symbol): Update.
9952 * guile/scm-param.c (gdbscm_parameter_value): Update.
9953 * guile/scm-frame.c (gdbscm_frame_read_register)
9954 (gdbscm_frame_read_var): Update.
9955 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9956 * exec.c (try_open_exec_file): Update.
9957 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9958 (gdb_rl_callback_handler): Update.
9959 * common/common-exceptions.h (exception_none): Don't declare.
9960 * common/common-exceptions.c (exception_none): Don't define.
9961 (struct catcher) <exception>: Update.
9962 * cli/cli-interp.c (safe_execute_command): Update.
9963 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9965 2019-04-25 Ali Tamur <tamur@google.com>
9967 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9968 (read_attribute_value): Likewise.
9969 (dwarf2_read_addr_index): Update comment.
9970 (read_str_index): Add DW_FORM_strx.
9971 (dwarf2_string_attr): Likewise.
9972 (dwarf2_const_value_attr): Likewise.
9973 (dump_die_shallow): Likewise.
9974 (dwarf2_fetch_constant_bytes): Likewise.
9975 (skip_form_bytes): Likewise.
9976 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9978 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9982 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9983 OFFSET. Verify if current mapping contains an ELF header.
9984 (linux_find_memory_regions_full): Adjust call to
9987 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9988 Kang Li <kanglictf@gmail.com>
9992 * dwarf2-frame.c (read_initial_length): Be consistent about using
9993 unsigned representation of length.
9994 (decode_frame_entry_1): Likewise. Check for wraparound of
9995 end pointer as well as buffer overflow.
9997 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9999 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10002 2019-04-24 Tom Tromey <tromey@adacore.com>
10004 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10006 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10008 * s12z-tdep.c (s12z_unwind_pc): Delete.
10009 (s12z_unwind_sp): Delete.
10010 (s12z_gdbarch_init): Don't register deleted functions with
10013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10015 * rl78-tdep.c (rl78_unwind_sp): Delete.
10016 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10018 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10020 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10021 (xstormy16_unwind_pc): Delete.
10022 (xstormy16_dummy_id): Delete.
10023 (xstormy16_gdbarch_init): Don't register deleted functions with
10026 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10028 * vax-tdep.c (vax_unwind_pc): Delete.
10029 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10031 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10033 * v850-tdep.c (v850_unwind_sp): Delete.
10034 (v850_unwind_pc): Delete.
10035 (v850_dummy_id): Delete.
10036 (v850_gdbarch_init): Don't register deleted functions with
10039 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10042 (tilegx_unwind_pc): Delete.
10043 (tilegx_unwind_dummy_id): Delete.
10044 (tilegx_gdbarch_init): Don't register deleted functions with
10047 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10049 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10050 (tic6x_dummy_id): Delete.
10051 (tic6x_gdbarch_init): Don't register deleted functions with
10054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10056 * sparc-tdep.c (sparc_unwind_pc): Delete.
10057 (sparc32_gdbarch_init): Don't register deleted function with
10060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10062 * sh-tdep.c (sh_unwind_sp): Delete.
10063 (sh_unwind_pc): Delete.
10064 (sh_dummy_id): Delete.
10065 (sh_gdbarch_init): Don't register deleted functions with
10068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10070 * score-tdep.c (score_unwind_sp): Delete.
10071 (score_unwind_pc): Delete.
10072 (score_dummy_id): Delete.
10073 (score_gdbarch_init): Don't register deleted functions with
10076 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10078 * rx-tdep.c (rx_unwind_pc): Delete.
10079 (rx_unwind_sp): Delete.
10080 (rx_dummy_id): Delete.
10081 (rx_gdbarch_init): Don't register deleted functions with
10082 gdbarch. Update comment.
10084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10086 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10087 (rs6000_dummy_id): Delete.
10088 (rs6000_gdbarch_init): Don't register deleted functions with
10091 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10093 * or1k-tdep.c (or1k_dummy_id): Delete.
10094 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10096 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10098 * nios2-tdep.c (nios2_dummy_id): Delete.
10099 (nios2_unwind_sp): Delete.
10100 (nios2_gdbarch_init): Don't register deleted functions with
10103 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10105 * nds32-tdep.c (nds32_dummy_id): Delete.
10106 (nds32_unwind_pc): Delete.
10107 (nds32_unwind_sp): Delete.
10108 (nds32_gdbarch_init): Don't register deleted functions with
10111 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10113 * msp430-tdep.c (msp430_unwind_pc): Delete.
10114 (msp430_unwind_sp): Delete.
10115 (msp430_dummy_id): Delete.
10116 (msp430_gdbarch_init): Don't register deleted functions with
10119 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10121 * moxie-tdep.c (moxie_unwind_sp): Delete.
10122 (moxie_unwind_pc): Delete.
10123 (moxie_dummy_id): Delete.
10124 (moxie_gdbarch_init): Don't register deleted functions with
10127 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10129 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10130 (mn10300_unwind_pc): Delete.
10131 (mn10300_unwind_sp): Delete.
10132 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10134 (mn10300_frame_unwind_init): Don't register deleted functions with
10137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139 * mep-tdep.c (mep_unwind_pc): Delete.
10140 (mep_unwind_sp): Delete.
10141 (mep_dummy_id): Delete.
10142 (mep_gdbarch_init): Don't register deleted functions with
10145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10147 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10148 (m68hc11_unwind_sp): Delete.
10149 (m68hc11_gdbarch_init): Don't register deleted functions with
10152 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10154 * m32r-tdep.c (m32r_unwind_sp): Delete.
10155 (m32r_unwind_pc): Delete.
10156 (m32r_dummy_id): Delete.
10157 (m32r_gdbarch_init): Don't register deleted functions with
10160 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10162 * m32c-tdep.c (m32c_unwind_pc): Delete.
10163 (m32c_unwind_sp): Delete.
10164 (m32c_dummy_id): Delete.
10165 (m32c_gdbarch_init): Don't register deleted functions with
10168 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10170 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10171 (lm32_unwind_pc): Delete.
10172 (lm32_dummy_id): Delete.
10173 (lm32_gdbarch_init): Don't register deleted functions with
10176 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10178 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10179 (iq2000_unwind_pc): Delete.
10180 (iq2000_dummy_id): Delete.
10181 (iq2000_gdbarch_init): Don't register deleted functions with
10184 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10186 * nds32-tdep.c (nds32_type_align): Delete.
10187 (nds32_push_dummy_call): Use type_align instead.
10189 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10191 * arm-tdep.c (arm_type_align): Only handle vector override case.
10192 (arm_push_dummy_call): Use type_align.
10193 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10197 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10199 (pass_on_stack): Use type_align.
10200 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10203 2019-04-23 Tom Tromey <tromey@adacore.com>
10205 * dwarf2read.c (line_header::file_name_at): Remove unused
10208 2019-04-23 Tom de Vries <tdevries@suse.de>
10211 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10215 2019-03-27 Ali Tamur <tamur@google.com>
10217 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10218 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10219 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10220 (dwarf_expr_context::get_addr_index): Likewise
10221 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10222 (symbol_needs_eval_context::get_addr_index): Likewise
10223 (disassemble_dwarf_expression): Add DW_OP_addrx
10224 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10225 (read_cutu_die_from_dwo): Update comment
10226 (skip_one_die): Add DW_FORM_addrx
10227 (read_attribute_value): Likewise
10228 (var_decode_location): Add DW_OP_addrx
10229 (dwarf2_const_value_attr): Add DW_FORM_addrx
10230 (dump_die_shallow): Likewise
10231 (dwarf2_fetch_constant_bytes): Likewise
10232 (decode_locdesc): Add DW_OP_addrx
10233 (skip_form_bytes): Add DW_FORM_addrx
10235 2019-04-22 Ali Tamur <tamur@google.com>
10237 * MAINTAINERS (Write After Approval): Add self.
10239 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10241 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10242 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10243 (open_symbol_file_object): Likewise.
10244 (svr4_default_sos): Add info parameter.
10245 (svr4_read_so_list): Likewise.
10246 (svr4_current_sos_direct): Adjust functions calls to pass down
10248 (svr4_current_sos_1): Add info parameter.
10249 (svr4_current_sos): Call get_svr4_info, pass info down to
10250 svr4_current_sos_1.
10251 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10253 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10255 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10257 (probes_table_remove_objfile_probes): Likewise.
10258 (register_solib_event_probe): Add info parameter.
10259 (solist_update_incremental): Pass info parameter down to
10261 (disable_probes_interface): Add info parameter.
10262 (svr4_handle_solib_event): Pass current_program_space to
10263 get_svr4_info. Adjust disable_probes_interface cleanup.
10264 (svr4_create_probe_breakpoints): Add info parameter, pass it
10265 down to register_solib_event_probe.
10266 (svr4_create_solib_event_breakpoints): Add info parameter,
10267 pass it down to svr4_create_probe_breakpoints.
10268 (enable_break): Pass info down to
10269 svr4_create_solib_event_breakpoints.
10270 (svr4_solib_create_inferior_hook): Pass current_program_space to
10272 (svr4_clear_solib): Likewise.
10274 2019-04-22 Pedro Alves <palves@redhat.com>
10276 * solib-svr4.c (svr4_free_objfile_observer): New.
10277 (probe_and_action::objfile): New field.
10278 (probes_table_htab_remove_objfile_probes)
10279 (probes_table_remove_objfile_probes): New functions.
10280 (register_solib_event_probe): Add 'objfile' parameter. Store it
10281 in the new probe_and_action. Don't store the probe in 'lookup'.
10282 (svr4_create_probe_breakpoints): Pass objfile to
10283 register_solib_event_probe.
10284 (_initialize_svr4_solib): Register a free_objfile observer.
10286 2019-04-19 Tom Tromey <tom@tromey.com>
10288 * common/queue.h: Remove.
10290 2019-04-19 Tom Tromey <tom@tromey.com>
10292 * event-loop.c: Don't include "common/queue.h".
10294 2019-04-19 Tom Tromey <tom@tromey.com>
10296 * remote.c (remote_target): Use delete.
10297 * remote-notif.h: Include <list>, not "common/queue.h".
10298 (notif_client_p): Remove typedef.
10299 (remote_notif_state): Add constructor, destructor, initializer.
10300 <notif_queue>: Now a std::list.
10301 (remote_notif_state_xfree): Don't declare.
10302 * remote-notif.c (remote_notif_process, handle_notification)
10303 (remote_notif_state_allocate): Update.
10304 (~remote_notif_state): Rename from remote_notif_state_xfree.
10306 2019-04-19 Tom Tromey <tom@tromey.com>
10308 * symfile.c (reread_symbols): Update.
10309 * objfiles.c (objfile_register_static_link)
10310 (objfile_lookup_static_link): Update
10311 (~objfile) Don't delete static_links.
10312 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10314 2019-04-19 Tom Tromey <tom@tromey.com>
10316 * type-stack.h (struct type_stack) <insert>: Constify string.
10317 * type-stack.c (type_stack::insert): Constify string.
10318 * gdbtypes.h (lookup_template_type): Update.
10319 (address_space_name_to_int): Update.
10320 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10322 (lookup_template_type): Make name const.
10323 * c-exp.y: Update rules.
10324 (lex_one_token, classify_name, classify_inner_name)
10325 (c_print_token): Update.
10326 * p-exp.y: Update rules.
10328 * f-exp.y: Update rules.
10330 * d-exp.y: Update rules.
10331 (lex_one_token, classify_name, classify_inner_name): Update.
10332 * parse.c (write_dollar_variable, copy_name): Return std::string.
10333 * parser-defs.h (copy_name): Change return type.
10334 * m2-exp.y: Update rules.
10336 * go-exp.y (lex_one_token): Update.
10338 (classify_unsafe_function, classify_packaged_name)
10339 (classify_name, yylex): Update.
10341 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10343 * configure.ac: add --enable-source-highlight switch.
10344 * configure: Regenerate.
10345 * top.c (print_gdb_version): plumb --enable-source-highlight
10346 status to "show configuration".
10348 2019-04-19 Tom Tromey <tromey@adacore.com>
10350 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10352 (empty_record, ada_template_to_fixed_record_type_1)
10353 (template_to_static_fixed_type)
10354 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10355 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10356 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10359 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10362 * source.c (print_source_lines_base): Advance "iter" when a
10363 control character is seen.
10365 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10367 * inferior.h (struct infcall_suspend_state_deleter):
10368 Catch exception in destructor to avoid crash.
10370 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10372 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10373 close to the add_com "shell".
10375 2019-04-18 Tom Tromey <tromey@adacore.com>
10377 * process-stratum-target.h (class process_stratum_target)
10378 <stratum>: Add "final".
10380 2019-04-17 Tom Tromey <tromey@adacore.com>
10382 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10383 against nullptr before use.
10385 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10387 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10389 2019-04-17 Jim Wilson <jimw@sifive.com>
10390 Andrew Burgess <andrew.burgess@embecosm.com>
10392 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10393 code read might fail, assume 4-byte breakpoint in that case.
10395 2019-04-15 Leszek Swirski <leszeks@google.com>
10397 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10398 rather than a hand-rolled POD check when checking for forced MEMORY
10401 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10403 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10404 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10406 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10407 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10408 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10411 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10413 * aarch64-linux-nat.c
10414 (aarch64_linux_nat_target::thread_architecture): Add override.
10415 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10418 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10420 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10422 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10424 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10425 target types of size 96-bits, add some additional comments, and
10426 check that the builtin type we found was the correct size.
10428 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10430 * utils.c (prompt_for_continue): Don't restore the styling at the
10431 end, as applied_style has the wrong value. This fixes styling in
10432 long lists of file names that are interrupted by the "Continue?"
10435 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10437 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10438 * c-lang.c (c_language_defn): Likewise.
10439 (cplus_language_defn): Likewise.
10440 (asm_language_defn): Likewise.
10441 (minimal_language_defn): Likewise.
10442 * d-lang.c (d_language_defn): Likewise.
10443 * f-lang.c (f_language_defn): Likewise.
10444 * go-lang.c (go_language_defn): Likewise.
10445 * language.c (unknown_language_defn): Likewise.
10446 (auto_language_defn): Likewise.
10447 * language.h (struct language_defn): Remove la_magic field.
10448 (LANG_MAGIC): Delete.
10449 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10450 * objc-lang.c (objc_language_defn): Likewise.
10451 * opencl-lang.c (opencl_language_defn): Likewise.
10452 * p-lang.c (pascal_language_defn): Likewise.
10453 * rust-lang.c (rust_language_defn): Likewise.
10455 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10457 * riscv-tdep.c (riscv_type_align): New function.
10458 (riscv_type_alignment): Delete.
10459 (riscv_arg_location): Use 'type_align'.
10460 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10462 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10464 * gdbtypes.c (type_align): A struct with no non-static fields also
10465 has alignment of 1.
10467 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10469 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10471 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10473 (riscv_struct_info::analyse): New implementation using new
10474 analyse_inner member function.
10475 (riscv_struct_info::field_offset): New member function.
10476 (riscv_struct_info::m_offsets): New member variable.
10477 (riscv_struct_info::analyse_inner): New private member function,
10478 takes the old implementation of riscv_struct_info::analyse but
10479 extended to track field offsets.
10480 (riscv_call_arg_struct): Update the struct folding special cases
10481 to handle cases where empty C++ structs, which are non-zero
10483 (riscv_arg_location): Initialise the length of each location, a
10484 non-zero length now indicates the location is in use.
10485 (riscv_push_dummy_call): Allow for the first location having a
10486 non-zero offset when setting up arguments.
10487 (riscv_return_value): Likewise, but for return values.
10489 2019-04-11 Tom Tromey <tromey@adacore.com>
10491 * utils.c (internal_vproblem): Make "msg" const.
10493 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10495 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10496 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10497 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10498 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10500 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10502 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10504 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10505 of amd64_collect_native_gregset.
10506 (amd64_linux_nat_target::store_registers): Likewise.
10508 2019-04-10 Tom Tromey <tom@tromey.com>
10510 * symtab.c (lookup_global_symbol_from_objfile)
10511 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10512 * objfiles.h (class separate_debug_iterator): New.
10513 (class separate_debug_range): New.
10514 (struct objfile) <separate_debug_objfiles>: New method.
10515 (objfile_separate_debug_iterate): Don't declare.
10516 * objfiles.c (separate_debug_iterator::operator++): Rename from
10517 objfile_separate_debug_iterate.
10518 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10520 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10523 2019-04-10 Tom Tromey <tom@tromey.com>
10525 * symfile.c (reread_symbols): Remove old comment.
10526 * objfiles.c (free_all_objfiles): Fix a typo.
10528 2019-04-10 Tom Tromey <tom@tromey.com>
10530 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10531 * minsyms.c (lookup_minimal_symbol): Use foreach.
10532 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10533 (lookup_minimal_symbol_solib_trampoline): Likewise.
10534 * symfile.c (reread_symbols): Use foreach.
10536 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10537 Tom Tromey <tromey@adacore.com>
10540 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10541 (rust_lex_int_test): Change "value" to be LONGEST.
10542 (rust_lex_tests): Add test for long integer literal.
10544 2019-04-09 Tom Tromey <tromey@adacore.com>
10546 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10548 (extended_remote_target::attach): Update.
10549 (remote_target::remote_notice_new_inferior): Update.
10550 (remote_target::add_current_inferior_and_thread): Update.
10551 * inferior.c (exit_inferior_1): Use "false".
10552 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10554 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10556 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10557 the "start" command.
10559 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10561 * python/py-inferior.c (infpy_thread_from_thread_handle):
10562 Adjust comments to reflect renaming of thread_from_thread_handle
10563 to thread_from_handle. Adjust keywords. Fix type error message.
10564 (inferior_object_methods): Add thread_from_handle. Retain
10565 thread_from_thread_handle, but mark it as deprecated.
10567 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10569 * gdbthread.h (find_thread_by_handle): Revise declaration.
10570 * thread.c (find_thread_by_handle): Likewise. Adjust
10571 implementation too.
10572 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10573 support for buffer objects as handles.
10575 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10577 * python/py-infthread.c (thpy_thread_handle): New function.
10578 (thread_object_methods): Register thpy_thread_handle.
10580 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10582 * gdbthread.h (thread_to_thread_handle): Declare.
10583 * thread.c (gdbtypes.h): Include.
10584 (thread_to_thread_handle): New function.
10586 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10587 (target_thread_info_to_thread_handle): Declare.
10588 * target.c (target_thread_info_to_thread_handle): New function.
10589 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10590 * target-delegates.c: Regenerate.
10592 * linux-thread-db.c (class thread_db_target): Add method
10593 thread_info_to_thread_handle.
10594 (thread_db_target::thread_info_to_thread_handle): Define.
10595 * remote.c (class remote_target): Add new method
10596 thread_info_to_thread_handle.
10597 (remote_target::thread_info_to_thread_handle): Define.
10599 2019-04-08 Pedro Alves <palves@redhat.com>
10601 * common/common-exceptions.c (throw_exception): Don't create
10602 named object to throw; throw directly.
10603 (throw_it): Likewise. Don't initialize gdb_exception::message
10604 here, with new; pass FMT and AP to the ctor instead.
10605 * common/common-exceptions.h: Include <string>.
10606 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10607 const char *, va_list)): New ctor. Use std::make_shared.
10608 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10610 (gdb_exception_error::gdb_exception_error(enum errors, const char
10612 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10614 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10616 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10617 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10620 2019-04-08 Tom Tromey <tom@tromey.com>
10622 * valops.c (value_rtti_indirect_type): Replace throw_exception
10624 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10626 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10628 * target.c (target_translate_tls_address): Replace throw_exception
10630 * stack.c (frame_apply_command_count): Replace throw_exception
10632 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10634 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10636 * rs6000-tdep.c (rs6000_frame_cache)
10637 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10638 * remote.c: Replace throw_exception with throw.
10639 * record-full.c (record_full_message, record_full_wait_1)
10640 (record_full_restore): Replace throw_exception with throw.
10642 (get_thread_current_frame_id, record_btrace_start_replaying)
10643 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10644 (cmd_record_btrace_start): Replace throw_exception with throw.
10645 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10647 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10648 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10650 (find_linespec_symbols): Replace throw_exception with throw.
10651 * infrun.c (displaced_step_prepare, resume): Replace
10652 throw_exception with throw.
10653 * infcmd.c (post_create_inferior): Replace throw_exception with
10655 * inf-loop.c (inferior_event_handler): Replace throw_exception
10657 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10658 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10659 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10660 (get_prev_frame_always, get_frame_pc_if_available)
10661 (get_frame_address_in_block_if_available, get_frame_language):
10662 Replace throw_exception with throw.
10663 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10664 throw_exception with throw.
10665 * eval.c (fetch_subexp_value, evaluate_var_value)
10666 (evaluate_funcall, evaluate_subexp_standard): Replace
10667 throw_exception with throw.
10668 * dwarf2loc.c (call_site_find_chain)
10669 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10670 Replace throw_exception with throw.
10671 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10673 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10675 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10676 * completer.c (complete_line_internal): Replace throw_exception
10678 * compile/compile-object-run.c (compile_object_run): Replace
10679 throw_exception with throw.
10680 * cli/cli-script.c (process_next_line): Replace throw_exception
10682 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10683 (btrace_enable, btrace_maint_update_pt_packets): Replace
10684 throw_exception with throw.
10685 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10686 throw_exception with throw.
10687 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10688 throw_exception with throw.
10689 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10690 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10691 * aarch64-tdep.c (aarch64_make_prologue_cache)
10692 (aarch64_make_stub_cache): Replace throw_exception with throw.
10694 2019-04-08 Tom Tromey <tom@tromey.com>
10696 * common/common-exceptions.c (throw_exception): Rename from
10697 throw_exception_cxx. Remove old copy. Make argument const.
10698 (throw_it): Create and throw exception objects directly.
10699 * common/common-exceptions.h (throw_exception): Make argument
10701 (struct gdb_exception_error): Add constructor.
10702 (struct gdb_exception_quit): Add constructor.
10704 2019-04-08 Tom Tromey <tom@tromey.com>
10706 * common/common-exceptions.h (exception_rethrow): Don't declare.
10707 (TRY_SJLJ): Update comment.
10708 (TRY, CATCH, END_CATCH): Remove.
10709 * common/common-exceptions.c (exception_rethrow): Remove.
10711 2019-04-08 Tom Tromey <tom@tromey.com>
10713 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10715 (gdb_exception_error): Rename from
10716 gdb_exception_RETURN_MASK_ERROR.
10717 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10718 (gdb_quit_bad_alloc): Update.
10719 * aarch64-tdep.c: Update.
10720 * ada-lang.c: Update.
10721 * ada-typeprint.c: Update.
10722 * ada-valprint.c: Update.
10723 * amd64-tdep.c: Update.
10724 * arch-utils.c: Update.
10725 * break-catch-throw.c: Update.
10726 * breakpoint.c: Update.
10727 * btrace.c: Update.
10728 * c-varobj.c: Update.
10729 * cli/cli-cmds.c: Update.
10730 * cli/cli-interp.c: Update.
10731 * cli/cli-script.c: Update.
10732 * common/common-exceptions.c: Update.
10733 * common/new-op.c: Update.
10734 * common/selftest.c: Update.
10735 * compile/compile-c-symbols.c: Update.
10736 * compile/compile-cplus-symbols.c: Update.
10737 * compile/compile-object-load.c: Update.
10738 * compile/compile-object-run.c: Update.
10739 * completer.c: Update.
10740 * corelow.c: Update.
10741 * cp-abi.c: Update.
10742 * cp-support.c: Update.
10743 * cp-valprint.c: Update.
10744 * darwin-nat.c: Update.
10745 * disasm-selftests.c: Update.
10746 * dtrace-probe.c: Update.
10747 * dwarf-index-cache.c: Update.
10748 * dwarf-index-write.c: Update.
10749 * dwarf2-frame-tailcall.c: Update.
10750 * dwarf2-frame.c: Update.
10751 * dwarf2loc.c: Update.
10752 * dwarf2read.c: Update.
10754 * event-loop.c: Update.
10755 * event-top.c: Update.
10757 * f-valprint.c: Update.
10758 * fbsd-tdep.c: Update.
10759 * frame-unwind.c: Update.
10761 * gdbtypes.c: Update.
10762 * gnu-v3-abi.c: Update.
10763 * guile/guile-internal.h: Update.
10764 * guile/scm-block.c: Update.
10765 * guile/scm-breakpoint.c: Update.
10766 * guile/scm-cmd.c: Update.
10767 * guile/scm-disasm.c: Update.
10768 * guile/scm-frame.c: Update.
10769 * guile/scm-lazy-string.c: Update.
10770 * guile/scm-math.c: Update.
10771 * guile/scm-param.c: Update.
10772 * guile/scm-ports.c: Update.
10773 * guile/scm-pretty-print.c: Update.
10774 * guile/scm-symbol.c: Update.
10775 * guile/scm-symtab.c: Update.
10776 * guile/scm-type.c: Update.
10777 * guile/scm-value.c: Update.
10778 * i386-linux-tdep.c: Update.
10779 * i386-tdep.c: Update.
10780 * inf-loop.c: Update.
10781 * infcall.c: Update.
10782 * infcmd.c: Update.
10783 * infrun.c: Update.
10785 * language.c: Update.
10786 * linespec.c: Update.
10787 * linux-fork.c: Update.
10788 * linux-nat.c: Update.
10789 * linux-tdep.c: Update.
10790 * linux-thread-db.c: Update.
10792 * mi/mi-cmd-break.c: Update.
10793 * mi/mi-cmd-stack.c: Update.
10794 * mi/mi-interp.c: Update.
10795 * mi/mi-main.c: Update.
10796 * objc-lang.c: Update.
10797 * p-valprint.c: Update.
10799 * ppc-linux-tdep.c: Update.
10800 * printcmd.c: Update.
10801 * python/py-arch.c: Update.
10802 * python/py-breakpoint.c: Update.
10803 * python/py-cmd.c: Update.
10804 * python/py-finishbreakpoint.c: Update.
10805 * python/py-frame.c: Update.
10806 * python/py-framefilter.c: Update.
10807 * python/py-gdb-readline.c: Update.
10808 * python/py-inferior.c: Update.
10809 * python/py-infthread.c: Update.
10810 * python/py-lazy-string.c: Update.
10811 * python/py-linetable.c: Update.
10812 * python/py-objfile.c: Update.
10813 * python/py-param.c: Update.
10814 * python/py-prettyprint.c: Update.
10815 * python/py-progspace.c: Update.
10816 * python/py-record-btrace.c: Update.
10817 * python/py-record.c: Update.
10818 * python/py-symbol.c: Update.
10819 * python/py-type.c: Update.
10820 * python/py-unwind.c: Update.
10821 * python/py-utils.c: Update.
10822 * python/py-value.c: Update.
10823 * python/python.c: Update.
10824 * record-btrace.c: Update.
10825 * record-full.c: Update.
10826 * remote-fileio.c: Update.
10827 * remote.c: Update.
10828 * riscv-tdep.c: Update.
10829 * rs6000-aix-tdep.c: Update.
10830 * rs6000-tdep.c: Update.
10831 * rust-exp.y: Update.
10832 * rust-lang.c: Update.
10833 * s390-tdep.c: Update.
10834 * selftest-arch.c: Update.
10835 * solib-dsbt.c: Update.
10836 * solib-frv.c: Update.
10837 * solib-spu.c: Update.
10838 * solib-svr4.c: Update.
10840 * sparc64-linux-tdep.c: Update.
10842 * symfile-mem.c: Update.
10843 * symmisc.c: Update.
10844 * target.c: Update.
10845 * thread.c: Update.
10847 * tracefile-tfile.c: Update.
10848 * tui/tui.c: Update.
10849 * typeprint.c: Update.
10850 * unittests/cli-utils-selftests.c: Update.
10851 * unittests/parse-connection-spec-selftests.c: Update.
10852 * valops.c: Update.
10853 * valprint.c: Update.
10855 * varobj.c: Update.
10856 * windows-nat.c: Update.
10857 * x86-linux-nat.c: Update.
10858 * xml-support.c: Update.
10860 2019-04-08 Tom Tromey <tom@tromey.com>
10862 * xml-support.c: Use C++ exception handling.
10863 * x86-linux-nat.c: Use C++ exception handling.
10864 * windows-nat.c: Use C++ exception handling.
10865 * varobj.c: Use C++ exception handling.
10866 * value.c: Use C++ exception handling.
10867 * valprint.c: Use C++ exception handling.
10868 * valops.c: Use C++ exception handling.
10869 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10871 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10872 * typeprint.c: Use C++ exception handling.
10873 * tui/tui.c: Use C++ exception handling.
10874 * tracefile-tfile.c: Use C++ exception handling.
10875 * top.c: Use C++ exception handling.
10876 * thread.c: Use C++ exception handling.
10877 * target.c: Use C++ exception handling.
10878 * symmisc.c: Use C++ exception handling.
10879 * symfile-mem.c: Use C++ exception handling.
10880 * stack.c: Use C++ exception handling.
10881 * sparc64-linux-tdep.c: Use C++ exception handling.
10882 * solib.c: Use C++ exception handling.
10883 * solib-svr4.c: Use C++ exception handling.
10884 * solib-spu.c: Use C++ exception handling.
10885 * solib-frv.c: Use C++ exception handling.
10886 * solib-dsbt.c: Use C++ exception handling.
10887 * selftest-arch.c: Use C++ exception handling.
10888 * s390-tdep.c: Use C++ exception handling.
10889 * rust-lang.c: Use C++ exception handling.
10890 * rust-exp.y: Use C++ exception handling.
10891 * rs6000-tdep.c: Use C++ exception handling.
10892 * rs6000-aix-tdep.c: Use C++ exception handling.
10893 * riscv-tdep.c: Use C++ exception handling.
10894 * remote.c: Use C++ exception handling.
10895 * remote-fileio.c: Use C++ exception handling.
10896 * record-full.c: Use C++ exception handling.
10897 * record-btrace.c: Use C++ exception handling.
10898 * python/python.c: Use C++ exception handling.
10899 * python/py-value.c: Use C++ exception handling.
10900 * python/py-utils.c: Use C++ exception handling.
10901 * python/py-unwind.c: Use C++ exception handling.
10902 * python/py-type.c: Use C++ exception handling.
10903 * python/py-symbol.c: Use C++ exception handling.
10904 * python/py-record.c: Use C++ exception handling.
10905 * python/py-record-btrace.c: Use C++ exception handling.
10906 * python/py-progspace.c: Use C++ exception handling.
10907 * python/py-prettyprint.c: Use C++ exception handling.
10908 * python/py-param.c: Use C++ exception handling.
10909 * python/py-objfile.c: Use C++ exception handling.
10910 * python/py-linetable.c: Use C++ exception handling.
10911 * python/py-lazy-string.c: Use C++ exception handling.
10912 * python/py-infthread.c: Use C++ exception handling.
10913 * python/py-inferior.c: Use C++ exception handling.
10914 * python/py-gdb-readline.c: Use C++ exception handling.
10915 * python/py-framefilter.c: Use C++ exception handling.
10916 * python/py-frame.c: Use C++ exception handling.
10917 * python/py-finishbreakpoint.c: Use C++ exception handling.
10918 * python/py-cmd.c: Use C++ exception handling.
10919 * python/py-breakpoint.c: Use C++ exception handling.
10920 * python/py-arch.c: Use C++ exception handling.
10921 * printcmd.c: Use C++ exception handling.
10922 * ppc-linux-tdep.c: Use C++ exception handling.
10923 * parse.c: Use C++ exception handling.
10924 * p-valprint.c: Use C++ exception handling.
10925 * objc-lang.c: Use C++ exception handling.
10926 * mi/mi-main.c: Use C++ exception handling.
10927 * mi/mi-interp.c: Use C++ exception handling.
10928 * mi/mi-cmd-stack.c: Use C++ exception handling.
10929 * mi/mi-cmd-break.c: Use C++ exception handling.
10930 * main.c: Use C++ exception handling.
10931 * linux-thread-db.c: Use C++ exception handling.
10932 * linux-tdep.c: Use C++ exception handling.
10933 * linux-nat.c: Use C++ exception handling.
10934 * linux-fork.c: Use C++ exception handling.
10935 * linespec.c: Use C++ exception handling.
10936 * language.c: Use C++ exception handling.
10937 * jit.c: Use C++ exception handling.
10938 * infrun.c: Use C++ exception handling.
10939 * infcmd.c: Use C++ exception handling.
10940 * infcall.c: Use C++ exception handling.
10941 * inf-loop.c: Use C++ exception handling.
10942 * i386-tdep.c: Use C++ exception handling.
10943 * i386-linux-tdep.c: Use C++ exception handling.
10944 * guile/scm-value.c: Use C++ exception handling.
10945 * guile/scm-type.c: Use C++ exception handling.
10946 * guile/scm-symtab.c: Use C++ exception handling.
10947 * guile/scm-symbol.c: Use C++ exception handling.
10948 * guile/scm-pretty-print.c: Use C++ exception handling.
10949 * guile/scm-ports.c: Use C++ exception handling.
10950 * guile/scm-param.c: Use C++ exception handling.
10951 * guile/scm-math.c: Use C++ exception handling.
10952 * guile/scm-lazy-string.c: Use C++ exception handling.
10953 * guile/scm-frame.c: Use C++ exception handling.
10954 * guile/scm-disasm.c: Use C++ exception handling.
10955 * guile/scm-cmd.c: Use C++ exception handling.
10956 * guile/scm-breakpoint.c: Use C++ exception handling.
10957 * guile/scm-block.c: Use C++ exception handling.
10958 * guile/guile-internal.h: Use C++ exception handling.
10959 * gnu-v3-abi.c: Use C++ exception handling.
10960 * gdbtypes.c: Use C++ exception handling.
10961 * frame.c: Use C++ exception handling.
10962 * frame-unwind.c: Use C++ exception handling.
10963 * fbsd-tdep.c: Use C++ exception handling.
10964 * f-valprint.c: Use C++ exception handling.
10965 * exec.c: Use C++ exception handling.
10966 * event-top.c: Use C++ exception handling.
10967 * event-loop.c: Use C++ exception handling.
10968 * eval.c: Use C++ exception handling.
10969 * dwarf2read.c: Use C++ exception handling.
10970 * dwarf2loc.c: Use C++ exception handling.
10971 * dwarf2-frame.c: Use C++ exception handling.
10972 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10973 * dwarf-index-write.c: Use C++ exception handling.
10974 * dwarf-index-cache.c: Use C++ exception handling.
10975 * dtrace-probe.c: Use C++ exception handling.
10976 * disasm-selftests.c: Use C++ exception handling.
10977 * darwin-nat.c: Use C++ exception handling.
10978 * cp-valprint.c: Use C++ exception handling.
10979 * cp-support.c: Use C++ exception handling.
10980 * cp-abi.c: Use C++ exception handling.
10981 * corelow.c: Use C++ exception handling.
10982 * completer.c: Use C++ exception handling.
10983 * compile/compile-object-run.c: Use C++ exception handling.
10984 * compile/compile-object-load.c: Use C++ exception handling.
10985 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10986 * compile/compile-c-symbols.c: Use C++ exception handling.
10987 * common/selftest.c: Use C++ exception handling.
10988 * common/new-op.c: Use C++ exception handling.
10989 * cli/cli-script.c: Use C++ exception handling.
10990 * cli/cli-interp.c: Use C++ exception handling.
10991 * cli/cli-cmds.c: Use C++ exception handling.
10992 * c-varobj.c: Use C++ exception handling.
10993 * btrace.c: Use C++ exception handling.
10994 * breakpoint.c: Use C++ exception handling.
10995 * break-catch-throw.c: Use C++ exception handling.
10996 * arch-utils.c: Use C++ exception handling.
10997 * amd64-tdep.c: Use C++ exception handling.
10998 * ada-valprint.c: Use C++ exception handling.
10999 * ada-typeprint.c: Use C++ exception handling.
11000 * ada-lang.c: Use C++ exception handling.
11001 * aarch64-tdep.c: Use C++ exception handling.
11003 2019-04-08 Tom Tromey <tom@tromey.com>
11005 * xml-support.c (gdb_xml_parser::parse): Update.
11006 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11007 * value.c (show_convenience): Update.
11008 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11009 (test_parse_flags_qcs): Update.
11010 * thread.c (thr_try_catch_cmd): Update.
11011 * target.c (target_translate_tls_address): Update.
11012 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11013 (info_frame_command_core, frame_apply_command_count): Update.
11014 * rust-exp.y (rust_lex_exception_test): Update.
11015 * riscv-tdep.c (riscv_print_one_register_info): Update.
11016 * remote.c (remote_target::enable_btrace): Update.
11017 * record-btrace.c (record_btrace_enable_warn): Update.
11018 * python/py-utils.c (gdbpy_convert_exception): Update.
11019 * printcmd.c (do_one_display, print_variable_and_value): Update.
11020 * mi/mi-main.c (mi_print_exception): Update.
11021 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11022 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11023 * linux-nat.c (linux_nat_target::attach): Update.
11024 * linux-fork.c (class scoped_switch_fork_info): Update.
11025 * infrun.c (displaced_step_prepare): Update.
11026 * infcall.c (call_function_by_hand_dummy): Update.
11027 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11028 * gnu-v3-abi.c (print_one_vtable): Update.
11029 * frame.c (get_prev_frame_always): Update.
11030 * f-valprint.c (info_common_command_for_block): Update.
11031 * exec.c (try_open_exec_file): Update.
11032 * exceptions.c (print_exception, exception_print)
11033 (exception_fprintf, exception_print_same): Update.
11034 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11035 * dwarf-index-cache.c (index_cache::store)
11036 (index_cache::lookup_gdb_index): Update.
11037 * darwin-nat.c (maybe_cache_shell): Update.
11038 * cp-valprint.c (cp_print_value_fields): Update.
11039 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11040 (gcc_cplus_symbol_address): Update.
11041 * compile/compile-c-symbols.c (gcc_convert_symbol)
11042 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11043 * common/selftest.c: Update.
11044 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11046 (exception_try_scope_entry, exception_try_scope_exit): Don't
11048 (struct exception_try_scope): Remove.
11049 (TRY): Don't use exception_try_scope.
11050 (struct gdb_exception): Add constructor, operator=.
11051 <what>: New method.
11052 (struct gdb_exception_RETURN_MASK_ALL)
11053 (struct gdb_exception_RETURN_MASK_ERROR)
11054 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11055 (struct gdb_quit_bad_alloc): Update.
11056 * common/common-exceptions.c (exception_none): Change
11058 (struct catcher) <state, exception>: Initialize inline.
11059 <prev>: Remove member.
11060 (current_catcher): Remove.
11061 (catchers): New global.
11062 (exceptions_state_mc_init): Simplify.
11063 (catcher_pop): Remove.
11064 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11065 (try_scope_depth, exception_try_scope_entry)
11066 (exception_try_scope_exit): Remove.
11067 (throw_exception_sjlj): Update.
11068 (exception_messages, exception_messages_size): Remove.
11069 (throw_it): Simplify.
11070 (gdb_exception_sliced_copy): Remove.
11071 (throw_exception_cxx): Update.
11072 * cli/cli-script.c (script_from_file): Update.
11073 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11075 * ada-valprint.c (ada_val_print): Update.
11076 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11077 (create_excep_cond_exprs): Update.
11079 2019-04-08 Tom Tromey <tom@tromey.com>
11081 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11082 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11083 (TRY, CATCH, END_CATCH): Remove some definitions.
11084 * common/common-exceptions.c: Don't use GDB_XCPT.
11085 (catcher_list_size): Remove.
11086 (throw_exception, throw_it): Simplify.
11088 2019-04-05 Tom Tromey <tom@tromey.com>
11090 Revert the header-sorting patch.
11091 * ft32-tdep.c: Revert.
11092 * frv-tdep.c: Revert.
11093 * frv-linux-tdep.c: Revert.
11095 * frame-unwind.c: Revert.
11096 * frame-base.c: Revert.
11097 * fork-child.c: Revert.
11098 * findvar.c: Revert.
11099 * findcmd.c: Revert.
11100 * filesystem.c: Revert.
11101 * filename-seen-cache.h: Revert.
11102 * filename-seen-cache.c: Revert.
11103 * fbsd-tdep.c: Revert.
11104 * fbsd-nat.h: Revert.
11105 * fbsd-nat.c: Revert.
11106 * f-valprint.c: Revert.
11107 * f-typeprint.c: Revert.
11108 * f-lang.c: Revert.
11109 * extension.h: Revert.
11110 * extension.c: Revert.
11111 * extension-priv.h: Revert.
11112 * expprint.c: Revert.
11115 * exceptions.c: Revert.
11116 * event-top.c: Revert.
11117 * event-loop.c: Revert.
11119 * elfread.c: Revert.
11120 * dwarf2read.h: Revert.
11121 * dwarf2read.c: Revert.
11122 * dwarf2loc.c: Revert.
11123 * dwarf2expr.h: Revert.
11124 * dwarf2expr.c: Revert.
11125 * dwarf2-frame.c: Revert.
11126 * dwarf2-frame-tailcall.c: Revert.
11127 * dwarf-index-write.h: Revert.
11128 * dwarf-index-write.c: Revert.
11129 * dwarf-index-common.c: Revert.
11130 * dwarf-index-cache.h: Revert.
11131 * dwarf-index-cache.c: Revert.
11132 * dummy-frame.c: Revert.
11133 * dtrace-probe.c: Revert.
11134 * disasm.h: Revert.
11135 * disasm.c: Revert.
11136 * disasm-selftests.c: Revert.
11137 * dictionary.c: Revert.
11138 * dicos-tdep.c: Revert.
11139 * demangle.c: Revert.
11140 * dcache.h: Revert.
11141 * dcache.c: Revert.
11142 * darwin-nat.h: Revert.
11143 * darwin-nat.c: Revert.
11144 * darwin-nat-info.c: Revert.
11145 * d-valprint.c: Revert.
11146 * d-namespace.c: Revert.
11147 * d-lang.c: Revert.
11149 * csky-tdep.c: Revert.
11150 * csky-linux-tdep.c: Revert.
11151 * cris-tdep.c: Revert.
11152 * cris-linux-tdep.c: Revert.
11153 * cp-valprint.c: Revert.
11154 * cp-support.c: Revert.
11155 * cp-namespace.c: Revert.
11156 * cp-abi.c: Revert.
11157 * corelow.c: Revert.
11158 * corefile.c: Revert.
11159 * continuations.c: Revert.
11160 * completer.h: Revert.
11161 * completer.c: Revert.
11162 * complaints.c: Revert.
11163 * coffread.c: Revert.
11164 * coff-pe-read.c: Revert.
11165 * cli-out.h: Revert.
11166 * cli-out.c: Revert.
11167 * charset.c: Revert.
11168 * c-varobj.c: Revert.
11169 * c-valprint.c: Revert.
11170 * c-typeprint.c: Revert.
11171 * c-lang.c: Revert.
11172 * buildsym.c: Revert.
11173 * buildsym-legacy.c: Revert.
11174 * build-id.h: Revert.
11175 * build-id.c: Revert.
11176 * btrace.c: Revert.
11177 * bsd-uthread.c: Revert.
11178 * breakpoint.h: Revert.
11179 * breakpoint.c: Revert.
11180 * break-catch-throw.c: Revert.
11181 * break-catch-syscall.c: Revert.
11182 * break-catch-sig.c: Revert.
11183 * blockframe.c: Revert.
11185 * bfin-tdep.c: Revert.
11186 * bfin-linux-tdep.c: Revert.
11187 * bfd-target.c: Revert.
11188 * bcache.c: Revert.
11189 * ax-general.c: Revert.
11190 * ax-gdb.h: Revert.
11191 * ax-gdb.c: Revert.
11192 * avr-tdep.c: Revert.
11194 * auto-load.c: Revert.
11195 * arm-wince-tdep.c: Revert.
11196 * arm-tdep.c: Revert.
11197 * arm-symbian-tdep.c: Revert.
11198 * arm-pikeos-tdep.c: Revert.
11199 * arm-obsd-tdep.c: Revert.
11200 * arm-nbsd-tdep.c: Revert.
11201 * arm-nbsd-nat.c: Revert.
11202 * arm-linux-tdep.c: Revert.
11203 * arm-linux-nat.c: Revert.
11204 * arm-fbsd-tdep.c: Revert.
11205 * arm-fbsd-nat.c: Revert.
11206 * arm-bsd-tdep.c: Revert.
11207 * arch-utils.c: Revert.
11208 * arc-tdep.c: Revert.
11209 * arc-newlib-tdep.c: Revert.
11210 * annotate.h: Revert.
11211 * annotate.c: Revert.
11212 * amd64-windows-tdep.c: Revert.
11213 * amd64-windows-nat.c: Revert.
11214 * amd64-tdep.c: Revert.
11215 * amd64-sol2-tdep.c: Revert.
11216 * amd64-obsd-tdep.c: Revert.
11217 * amd64-obsd-nat.c: Revert.
11218 * amd64-nbsd-tdep.c: Revert.
11219 * amd64-nbsd-nat.c: Revert.
11220 * amd64-nat.c: Revert.
11221 * amd64-linux-tdep.c: Revert.
11222 * amd64-linux-nat.c: Revert.
11223 * amd64-fbsd-tdep.c: Revert.
11224 * amd64-fbsd-nat.c: Revert.
11225 * amd64-dicos-tdep.c: Revert.
11226 * amd64-darwin-tdep.c: Revert.
11227 * amd64-bsd-nat.c: Revert.
11228 * alpha-tdep.c: Revert.
11229 * alpha-obsd-tdep.c: Revert.
11230 * alpha-nbsd-tdep.c: Revert.
11231 * alpha-mdebug-tdep.c: Revert.
11232 * alpha-linux-tdep.c: Revert.
11233 * alpha-linux-nat.c: Revert.
11234 * alpha-bsd-tdep.c: Revert.
11235 * alpha-bsd-nat.c: Revert.
11236 * aix-thread.c: Revert.
11238 * addrmap.c: Revert.
11239 * ada-varobj.c: Revert.
11240 * ada-valprint.c: Revert.
11241 * ada-typeprint.c: Revert.
11242 * ada-tasks.c: Revert.
11243 * ada-lang.c: Revert.
11244 * aarch64-tdep.c: Revert.
11245 * aarch64-ravenscar-thread.c: Revert.
11246 * aarch64-newlib-tdep.c: Revert.
11247 * aarch64-linux-tdep.c: Revert.
11248 * aarch64-linux-nat.c: Revert.
11249 * aarch64-fbsd-tdep.c: Revert.
11250 * aarch64-fbsd-nat.c: Revert.
11251 * aarch32-linux-nat.c: Revert.
11253 2019-04-05 Tom Tromey <tom@tromey.com>
11255 * ft32-tdep.c: Sort headers.
11256 * frv-tdep.c: Sort headers.
11257 * frv-linux-tdep.c: Sort headers.
11258 * frame.c: Sort headers.
11259 * frame-unwind.c: Sort headers.
11260 * frame-base.c: Sort headers.
11261 * fork-child.c: Sort headers.
11262 * findvar.c: Sort headers.
11263 * findcmd.c: Sort headers.
11264 * filesystem.c: Sort headers.
11265 * filename-seen-cache.h: Sort headers.
11266 * filename-seen-cache.c: Sort headers.
11267 * fbsd-tdep.c: Sort headers.
11268 * fbsd-nat.h: Sort headers.
11269 * fbsd-nat.c: Sort headers.
11270 * f-valprint.c: Sort headers.
11271 * f-typeprint.c: Sort headers.
11272 * f-lang.c: Sort headers.
11273 * extension.h: Sort headers.
11274 * extension.c: Sort headers.
11275 * extension-priv.h: Sort headers.
11276 * expprint.c: Sort headers.
11277 * exec.h: Sort headers.
11278 * exec.c: Sort headers.
11279 * exceptions.c: Sort headers.
11280 * event-top.c: Sort headers.
11281 * event-loop.c: Sort headers.
11282 * eval.c: Sort headers.
11283 * elfread.c: Sort headers.
11284 * dwarf2read.h: Sort headers.
11285 * dwarf2read.c: Sort headers.
11286 * dwarf2loc.c: Sort headers.
11287 * dwarf2expr.h: Sort headers.
11288 * dwarf2expr.c: Sort headers.
11289 * dwarf2-frame.c: Sort headers.
11290 * dwarf2-frame-tailcall.c: Sort headers.
11291 * dwarf-index-write.h: Sort headers.
11292 * dwarf-index-write.c: Sort headers.
11293 * dwarf-index-common.c: Sort headers.
11294 * dwarf-index-cache.h: Sort headers.
11295 * dwarf-index-cache.c: Sort headers.
11296 * dummy-frame.c: Sort headers.
11297 * dtrace-probe.c: Sort headers.
11298 * disasm.h: Sort headers.
11299 * disasm.c: Sort headers.
11300 * disasm-selftests.c: Sort headers.
11301 * dictionary.c: Sort headers.
11302 * dicos-tdep.c: Sort headers.
11303 * demangle.c: Sort headers.
11304 * dcache.h: Sort headers.
11305 * dcache.c: Sort headers.
11306 * darwin-nat.h: Sort headers.
11307 * darwin-nat.c: Sort headers.
11308 * darwin-nat-info.c: Sort headers.
11309 * d-valprint.c: Sort headers.
11310 * d-namespace.c: Sort headers.
11311 * d-lang.c: Sort headers.
11312 * ctf.c: Sort headers.
11313 * csky-tdep.c: Sort headers.
11314 * csky-linux-tdep.c: Sort headers.
11315 * cris-tdep.c: Sort headers.
11316 * cris-linux-tdep.c: Sort headers.
11317 * cp-valprint.c: Sort headers.
11318 * cp-support.c: Sort headers.
11319 * cp-namespace.c: Sort headers.
11320 * cp-abi.c: Sort headers.
11321 * corelow.c: Sort headers.
11322 * corefile.c: Sort headers.
11323 * continuations.c: Sort headers.
11324 * completer.h: Sort headers.
11325 * completer.c: Sort headers.
11326 * complaints.c: Sort headers.
11327 * coffread.c: Sort headers.
11328 * coff-pe-read.c: Sort headers.
11329 * cli-out.h: Sort headers.
11330 * cli-out.c: Sort headers.
11331 * charset.c: Sort headers.
11332 * c-varobj.c: Sort headers.
11333 * c-valprint.c: Sort headers.
11334 * c-typeprint.c: Sort headers.
11335 * c-lang.c: Sort headers.
11336 * buildsym.c: Sort headers.
11337 * buildsym-legacy.c: Sort headers.
11338 * build-id.h: Sort headers.
11339 * build-id.c: Sort headers.
11340 * btrace.c: Sort headers.
11341 * bsd-uthread.c: Sort headers.
11342 * breakpoint.h: Sort headers.
11343 * breakpoint.c: Sort headers.
11344 * break-catch-throw.c: Sort headers.
11345 * break-catch-syscall.c: Sort headers.
11346 * break-catch-sig.c: Sort headers.
11347 * blockframe.c: Sort headers.
11348 * block.c: Sort headers.
11349 * bfin-tdep.c: Sort headers.
11350 * bfin-linux-tdep.c: Sort headers.
11351 * bfd-target.c: Sort headers.
11352 * bcache.c: Sort headers.
11353 * ax-general.c: Sort headers.
11354 * ax-gdb.h: Sort headers.
11355 * ax-gdb.c: Sort headers.
11356 * avr-tdep.c: Sort headers.
11357 * auxv.c: Sort headers.
11358 * auto-load.c: Sort headers.
11359 * arm-wince-tdep.c: Sort headers.
11360 * arm-tdep.c: Sort headers.
11361 * arm-symbian-tdep.c: Sort headers.
11362 * arm-pikeos-tdep.c: Sort headers.
11363 * arm-obsd-tdep.c: Sort headers.
11364 * arm-nbsd-tdep.c: Sort headers.
11365 * arm-nbsd-nat.c: Sort headers.
11366 * arm-linux-tdep.c: Sort headers.
11367 * arm-linux-nat.c: Sort headers.
11368 * arm-fbsd-tdep.c: Sort headers.
11369 * arm-fbsd-nat.c: Sort headers.
11370 * arm-bsd-tdep.c: Sort headers.
11371 * arch-utils.c: Sort headers.
11372 * arc-tdep.c: Sort headers.
11373 * arc-newlib-tdep.c: Sort headers.
11374 * annotate.h: Sort headers.
11375 * annotate.c: Sort headers.
11376 * amd64-windows-tdep.c: Sort headers.
11377 * amd64-windows-nat.c: Sort headers.
11378 * amd64-tdep.c: Sort headers.
11379 * amd64-sol2-tdep.c: Sort headers.
11380 * amd64-obsd-tdep.c: Sort headers.
11381 * amd64-obsd-nat.c: Sort headers.
11382 * amd64-nbsd-tdep.c: Sort headers.
11383 * amd64-nbsd-nat.c: Sort headers.
11384 * amd64-nat.c: Sort headers.
11385 * amd64-linux-tdep.c: Sort headers.
11386 * amd64-linux-nat.c: Sort headers.
11387 * amd64-fbsd-tdep.c: Sort headers.
11388 * amd64-fbsd-nat.c: Sort headers.
11389 * amd64-dicos-tdep.c: Sort headers.
11390 * amd64-darwin-tdep.c: Sort headers.
11391 * amd64-bsd-nat.c: Sort headers.
11392 * alpha-tdep.c: Sort headers.
11393 * alpha-obsd-tdep.c: Sort headers.
11394 * alpha-nbsd-tdep.c: Sort headers.
11395 * alpha-mdebug-tdep.c: Sort headers.
11396 * alpha-linux-tdep.c: Sort headers.
11397 * alpha-linux-nat.c: Sort headers.
11398 * alpha-bsd-tdep.c: Sort headers.
11399 * alpha-bsd-nat.c: Sort headers.
11400 * aix-thread.c: Sort headers.
11401 * agent.c: Sort headers.
11402 * addrmap.c: Sort headers.
11403 * ada-varobj.c: Sort headers.
11404 * ada-valprint.c: Sort headers.
11405 * ada-typeprint.c: Sort headers.
11406 * ada-tasks.c: Sort headers.
11407 * ada-lang.c: Sort headers.
11408 * aarch64-tdep.c: Sort headers.
11409 * aarch64-ravenscar-thread.c: Sort headers.
11410 * aarch64-newlib-tdep.c: Sort headers.
11411 * aarch64-linux-tdep.c: Sort headers.
11412 * aarch64-linux-nat.c: Sort headers.
11413 * aarch64-fbsd-tdep.c: Sort headers.
11414 * aarch64-fbsd-nat.c: Sort headers.
11415 * aarch32-linux-nat.c: Sort headers.
11417 2019-04-04 Tom Tromey <tom@tromey.com>
11419 * varobj.c (varobj_create): Update.
11420 * rust-exp.y (struct rust_parser) <update_innermost_block,
11421 lookup_symbol>: New methods.
11422 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11424 (rust_parser::rust_lookup_type)
11425 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11426 * printcmd.c (display_command, do_one_display): Update.
11427 * parser-defs.h (struct parser_state) <parser_state>: Add
11428 "tracker" parameter.
11429 (block_tracker): New member.
11430 (class innermost_block_tracker) <innermost_block_tracker>: Add
11432 <reset>: Remove method.
11433 (innermost_block): Don't declare.
11434 (null_post_parser): Update.
11435 * parse.c (innermost_block): Remove global.
11436 (write_dollar_variable): Update.
11437 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11438 Remove "tracker_types" parameter.
11439 (parse_expression): Add "tracker" parameter.
11440 (parse_expression_for_completion): Update.
11441 (null_post_parser): Add "tracker" parameter.
11442 * p-exp.y: Update rules.
11443 * m2-exp.y: Update rules.
11444 * language.h (struct language_defn) <la_post_parser>: Add
11445 "tracker" parameter.
11446 * go-exp.y: Update rules.
11447 * f-exp.y: Update rules.
11448 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11450 * d-exp.y: Update rules.
11451 * c-exp.y: Update rules.
11452 * breakpoint.c (set_breakpoint_condition): Create an
11453 innermost_block_tracker.
11454 (watch_command_1): Likewise.
11455 * ada-lang.c (resolve): Add "tracker" parameter.
11456 (resolve_subexp): Likewise.
11457 * ada-exp.y (write_var_from_sym): Update.
11459 2019-04-04 Tom Tromey <tom@tromey.com>
11461 * type-stack.h: New file.
11462 * type-stack.c: New file.
11463 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11465 (insert_into_type_stack, insert_type, push_type, push_type_int)
11466 (insert_type_address_space, pop_type, pop_type_int)
11467 (pop_typelist, pop_type_stack, append_type_stack)
11468 (push_type_stack, get_type_stack, push_typelist)
11469 (follow_type_instance_flags, follow_types): Don't declare.
11470 * parse.c (type_stack): Remove global.
11471 (parse_exp_in_context): Update.
11472 (insert_into_type_stack, insert_type, push_type, push_type_int)
11473 (insert_type_address_space, pop_type, pop_type_int)
11474 (pop_typelist, pop_type_stack, append_type_stack)
11475 (push_type_stack, get_type_stack, push_typelist)
11476 (follow_type_instance_flags, follow_types): Remove (moved to
11478 * f-exp.y (type_stack): New global.
11480 (push_kind_type, f_parse): Update.
11481 * d-exp.y (type_stack): New global.
11484 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11486 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11487 (HFILES_NO_SRCDIR): Add type-stack.h.
11489 2019-04-04 Tom Tromey <tom@tromey.com>
11491 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11492 (rust_parser::convert_ast_to_expression, rust_parse)
11493 (rust_lex_test_completion, rust_lex_tests): Update.
11494 * parser-defs.h (struct expr_completion_state): New.
11495 (struct parser_state) <parser_state>: Add completion parameter.
11496 <mark_struct_expression, mark_completion_tag>: New methods.
11497 <parse_completion, m_completion_state>: New members.
11498 (prefixify_expression, null_post_parser): Update.
11499 (mark_struct_expression, mark_completion_tag): Don't declare.
11500 * parse.c (parse_completion, expout_last_struct)
11501 (expout_tag_completion_type, expout_completion_name): Remove
11503 (parser_state::mark_struct_expression)
11504 (parser_state::mark_completion_tag): Now methods.
11505 (prefixify_expression): Add last_struct parameter.
11506 (prefixify_subexp): Likewise.
11507 (parse_exp_1): Update.
11508 (parse_exp_in_context): Add cstate parameter. Update.
11509 (parse_expression_for_completion): Create an
11510 expr_completion_state.
11511 (null_post_parser): Add "completion" parameter.
11512 * p-exp.y: Update rules.
11514 * language.h (struct language_defn) <la_post_parser>: Add
11515 "completing" parameter.
11516 * go-exp.y: Update rules.
11517 (lex_one_token): Update.
11518 * expression.h (parse_completion): Don't declare.
11519 * d-exp.y: Update rules.
11520 (lex_one_token): Update rules.
11521 * c-exp.y: Update rules.
11522 (lex_one_token): Update.
11523 * ada-lang.c (resolve): Add "parse_completion" parameter.
11524 (resolve_subexp): Likewise.
11525 (ada_resolve_function): Likewise.
11527 2019-04-04 Tom Tromey <tom@tromey.com>
11529 * parser-defs.h (struct parser_state) <start_arglist,
11530 end_arglist>: New methods.
11531 <arglist_len, m_funcall_chain>: New members.
11532 (arglist_len, start_arglist, end_arglist): Don't declare.
11533 * parse.c (arglist_len, funcall_chain): Remove global.
11534 (start_arglist, end_arglist): Remove functions.
11535 (parse_exp_in_context): Update.
11536 * p-exp.y: Update rules.
11537 * m2-exp.y: Update rules.
11538 * go-exp.y: Update rules.
11539 * f-exp.y: Update rules.
11540 * d-exp.y: Update rules.
11541 * c-exp.y: Update rules.
11543 2019-04-04 Tom Tromey <tom@tromey.com>
11545 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11546 lex_operator, push_back>: New methods.
11548 (rust_parser::lex_hex, lex_escape): Rename and update.
11549 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11550 (rust_parser::lex_operator): Rename and update.
11551 (rust_parser::lex_number, rustyylex, rustyyerror)
11552 (rust_lex_test_init, rust_lex_test_sequence)
11553 (rust_lex_test_push_back, rust_lex_tests): Update.
11554 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11556 <lexptr, prev_lexptr>: New members.
11557 (lexptr, prev_lexptr): Don't declare.
11558 * parse.c (lexptr, prev_lexptr): Remove globals.
11559 (parse_exp_in_context): Update.
11560 * p-exp.y (yylex, yyerror): Update.
11561 * m2-exp.y (parse_number, yylex, yyerror): Update.
11562 * go-exp.y (lex_one_token, yyerror): Update.
11563 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11564 * d-exp.y (lex_one_token, yyerror): Update.
11565 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11566 (lex_one_token, yyerror): Update.
11567 * ada-lex.l (YY_INPUT): Update.
11568 (rewind_to_char): Update.
11569 * ada-exp.y (yyerror): Update.
11571 2019-04-04 Tom Tromey <tom@tromey.com>
11573 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11574 * parser-defs.h (struct parser_state) <parser_state>: Add new
11576 <comma_terminates>: New member.
11577 (comma_terminates): Don't declare global.
11578 * parse.c (comma_terminates): Remove global.
11579 (parse_exp_in_context): Update.
11580 * p-exp.y (yylex): Update.
11581 * m2-exp.y (yylex): Update.
11582 * go-exp.y (lex_one_token): Update.
11583 * f-exp.y (yylex): Update.
11584 * d-exp.y (lex_one_token): Update.
11585 * c-exp.y (lex_one_token): Update.
11586 * ada-lex.l: Update.
11588 2019-04-04 Tom Tromey <tom@tromey.com>
11590 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11591 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11592 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11593 * parser-defs.h (paren_depth): Don't declare.
11594 * parse.c (paren_depth): Remove global.
11595 (parse_exp_in_context): Update.
11596 * p-exp.y (paren_depth): New global.
11597 (pascal_parse): Initialize it.
11598 * m2-exp.y (paren_depth): New global.
11599 (m2_parse): Initialize it.
11600 * go-exp.y (paren_depth): New global.
11601 (go_parse): Initialize it.
11602 * f-exp.y (paren_depth): New global.
11603 (f_parse): Initialize it.
11604 * d-exp.y (paren_depth): New global.
11605 (d_parse): Initialize it.
11606 * c-exp.y (paren_depth): New global.
11607 (c_parse): Initialize it.
11608 * ada-lex.l (paren_depth): New global.
11609 (lexer_init): Initialize it.
11611 2019-04-04 Tom Tromey <tom@tromey.com>
11613 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11614 (rust_parser::convert_ast_to_type)
11615 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11616 * parser-defs.h (struct parser_state) <parser_state>: Add
11617 parameters. Initialize new members.
11618 <expression_context_block, expression_context_pc>: New members.
11619 * parse.c (expression_context_block, expression_context_pc):
11621 (parse_exp_in_context): Update.
11622 * p-exp.y: Update all rules.
11624 * m2-exp.y: Update all rules.
11626 * go-exp.y (yylex): Update.
11627 * f-exp.y (yylex): Update.
11628 * d-exp.y: Update all rules.
11630 * c-exp.y: Update all rules.
11631 (lex_one_token, classify_name, yylex, c_parse): Update.
11632 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11634 2019-04-04 Tom Tromey <tom@tromey.com>
11636 * gdbarch.h, gdbarch.c: Rebuild.
11637 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11639 (struct stap_parse_info): Replace "parser_state" with
11641 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11642 (parser_state): New class.
11643 * parse.c (expr_builder): Rename.
11644 (expr_builder::release): Rename.
11645 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11646 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11647 (write_exp_elt_longcst, write_exp_elt_floatcst)
11648 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11649 (write_exp_string_vector, write_exp_bitstring)
11650 (write_exp_msymbol, mark_struct_expression)
11651 (write_dollar_variable)
11652 (insert_type_address_space, increase_expout_size): Replace
11653 "parser_state" with "expr_builder".
11654 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11655 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11656 "parser_state" with "expr_builder".
11658 2019-04-04 Tom Tromey <tom@tromey.com>
11660 * rust-exp.y: Replace "parse_language" with method call.
11662 (yylex): Replace "parse_language" with method call.
11664 (yylex): Replace "parse_language" with method call.
11665 * go-exp.y (classify_name): Replace "parse_language" with method
11667 * f-exp.y (yylex): Replace "parse_language" with method call.
11668 * d-exp.y (lex_one_token): Replace "parse_language" with method
11671 (lex_one_token, classify_name, yylex): Replace "parse_language"
11673 * ada-exp.y (find_primitive_type, type_char)
11674 (type_system_address): Replace "parse_language" with method call.
11676 2019-04-04 Tom Tromey <tom@tromey.com>
11678 * rust-exp.y: Replace "parse_gdbarch" with method call.
11679 * parse.c (write_dollar_variable, insert_type_address_space):
11680 Replace "parse_gdbarch" with method call.
11681 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11683 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11685 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11686 "parse_gdbarch" with method call.
11687 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11689 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11690 "parse_gdbarch" with method call.
11691 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11692 "parse_gdbarch" with method call.
11693 * c-exp.y (parse_type, parse_number, classify_name): Replace
11694 "parse_gdbarch" with method call.
11695 * ada-lex.l: Replace "parse_gdbarch" with method call.
11696 * ada-exp.y (parse_type, find_primitive_type, type_char)
11697 (type_system_address): Replace "parse_gdbarch" with method call.
11699 2019-04-04 Tom Tromey <tom@tromey.com>
11701 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11702 * stap-probe.c (stap_parse_argument): Update.
11703 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11704 initial_size parameter.
11705 * rust-exp.y (rust_lex_tests): Update.
11706 * parse.c (parser_state): Update.
11707 (parse_exp_in_context): Update.
11708 * parser-defs.h (struct parser_state) <parser_state>: Remove
11709 "initial_size" parameter.
11711 2019-04-04 Tom Tromey <tom@tromey.com>
11713 * parser-defs.h (increase_expout_size): Don't declare.
11714 * parse.c (increase_expout_size): Now static.
11716 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11718 * gnu-nat.c (gnu_nat_target::wait): Fix
11719 target_waitstatus_to_string call.
11721 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11723 * eval.c (evaluate_subexp_standard): Handle internal functions
11724 during Fortran function call handling.
11726 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11728 * NEWS: Mention new internal functions.
11729 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11730 (read_base_type): Use dwarf2_init_complex_target_type.
11731 * value.c (creal_internal_fn): New function.
11732 (cimag_internal_fn): New function.
11733 (_initialize_values): Register new internal functions.
11735 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11737 * infrun.c (stop_all_threads): If debug_infrun, always
11738 trace the wait status after wait_one, using
11739 target_waitstatus_to_string and target_pid_to_str.
11740 (handle_inferior_event): Replace various trace of
11741 wait status kind by a single trace.
11742 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11743 wait status kind image by target_waitstatus_to_string.
11744 * target/waitstatus.c (target_waitstatus_to_string): Fix
11747 2019-04-01 Tom Tromey <tromey@adacore.com>
11750 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11752 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11753 Pedro Alves <palves@redhat.com>
11755 * top.c (quit_force): Call 'finalize_values'.
11756 * value.c (finalize_values): New function.
11757 * value.h (finalize_values): Declare.
11759 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11761 * NEWS: Announce $_gdb_major and $_gdb_minor.
11763 * top.c (init_gdb_version_vars): New function.
11764 (gdb_init): Call init_gdb_version_vars.
11766 2019-03-29 Tom Tromey <tromey@adacore.com>
11768 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11769 help text. Remove dead code.
11771 2019-03-29 Keith Seitz <keiths@redhat.com>
11773 From Siddhesh Poyarekar:
11774 * f-lang.h (f77_get_upperbound): Return LONGEST.
11775 (f77_get_lowerbound): Likewise.
11776 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11777 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11779 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11780 plongest to format print it.
11781 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11782 (f77_get_upperbound): Likewise.
11783 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11784 LOWER_BOUND to LONGEST.
11785 (f77_create_arrayprint_offset_tbl): Likewise.
11787 2019-03-29 Keith Seitz <keiths@redhat.com>
11789 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11790 %s/pulongest for TYPE_LENGTH instead of %d in format
11792 * ada-typerint.c (ada_print_type): Likewise.
11793 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11794 * compile/compile-c-support.c (generate_register_struct): Likewise.
11795 * gdbtypes.c (recursive_dump_type): Likewise.
11796 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11797 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11798 instead of %d in format strings.
11799 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11800 to std::min to ULONGEST.
11801 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11802 instead of %d in format strings.
11803 * tracepoint.c (info_scope_command): Likewise.
11804 * typeprint.c (print_offset_data::update)
11805 (print_offset_data::finish): Likewise.
11806 * xtensa-tdep.c (xtensa_store_return_value)
11807 (xtensa_push_dummy_call): Likewise.
11809 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11811 * windows-nat.c (display_selector): Fixed format specifications
11814 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11816 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11818 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11820 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11821 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11822 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11823 (nios2_linux_init_abi): Install it.
11825 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11827 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11829 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11831 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11833 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11834 Tom Tromey <tromey@adacore.com>
11836 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11838 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11840 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11841 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11842 method to compute the bounds of range types. Also print "[evaluated]"
11843 if the bounds' values come from a dynamic evaluation.
11845 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11847 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11848 whitespace when pretty printing is on.
11850 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11852 * ppc-linux-nat.c: Add include.
11854 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11856 * NEWS: Mention AArch64 Pointer Authentication.
11858 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11860 * arm-linux-nat.c: Add include.
11862 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11864 * source-cache.c (source_cache::get_source_lines): Re-read
11865 fullname after calling open_source_file.
11867 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11869 * NEWS: Mention TLS support for FreeBSD.
11871 2019-03-25 Tom Tromey <tromey@adacore.com>
11873 * minsyms.c (BUNCH_SIZE): Update comment.
11874 (~minimal_symbol_reader): Remove old comment.
11875 (compact_minimal_symbols): Update comment.
11876 (minimal_symbol_reader::install): Remove old comment. Update
11879 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11881 * s390-linux-nat.c: Add include.
11883 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11885 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11886 Call linux_get_hwcap.
11887 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11889 (aarch64_linux_get_hwcap): Remove function.
11890 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11892 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11894 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11895 * linux-tdep.c (linux_get_hwcap): Add function.
11896 (linux_get_hwcap2): Likewise.
11897 * linux-tdep.h (linux_get_hwcap): Add declaration.
11898 (linux_get_hwcap2): Likewise.
11899 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11900 (ppc_linux_get_hwcap2): Likewise.
11901 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11903 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11904 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11905 (ppc_linux_nat_target::read_description): Likewise.
11906 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11907 * s390-linux-nat.c: Likewise.
11908 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11910 2019-03-24 Tom Tromey <tom@tromey.com>
11912 * ada-lang.c (standard_lookup): Simplify initialization.
11913 (ada_lookup_symbol_nonlocal): Simplify return.
11914 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11915 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11916 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11917 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11919 * solib.c (solib_global_lookup): Simplify.
11920 * symtab.c (null_block_symbol): Remove.
11921 (symbol_cache_lookup): Simplify returns.
11922 (lookup_language_this): Simplify returns.
11923 (lookup_symbol_aux): Simplify return.
11924 (lookup_local_symbol): Simplify returns.
11925 (lookup_global_symbol_from_objfile): Simplify return.
11926 (lookup_symbol_in_objfile_symtabs)
11927 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11928 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11929 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11930 * cp-namespace.c (cp_lookup_bare_symbol)
11931 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11932 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11933 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11934 (cp_lookup_symbol_via_imports): Simplify initialization.
11935 (find_symbol_in_baseclass): Likewise.
11936 * symtab.h (null_block_symbol): Remove.
11937 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11938 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11939 (d_lookup_symbol_module): Likewise.
11940 (find_symbol_in_baseclass): Simplify initialization.
11942 2019-03-24 Tom Tromey <tom@tromey.com>
11944 * expression.h: Don't include symtab.h.
11945 (struct block): Forward declare.
11947 2019-03-24 Tom Tromey <tom@tromey.com>
11949 * c-exp.y (typebase): Remove casts.
11950 * gdbtypes.c (lookup_unsigned_typename, )
11951 (lookup_signed_typename): Remove cast.
11952 * eval.c (parse_to_comma_and_eval): Remove cast.
11953 * parse.c (write_dollar_variable): Remove cast.
11954 * block.h (struct block) <superblock>: Now const.
11955 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11956 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11957 (map_block): Make "block" const.
11958 * symfile.h (struct quick_symbol_functions)
11959 <map_matching_symbols>: Constify block argument to "callback".
11960 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11962 (find_pc_sect_compunit_symtab): Make "b" const.
11963 (find_symbol_at_address): Likewise.
11964 (search_symbols): Likewise.
11965 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11966 (dw2_debug_names_lookup_symbol): Likewise.
11967 (dw2_map_matching_symbols): Update.
11968 * p-valprint.c (pascal_val_print): Remove "block".
11969 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11970 (aux_add_nonlocal_symbols): Make "block" const.
11971 (resolve_subexp): Remove cast.
11972 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11974 (iterate_over_file_blocks): Likewise.
11975 * f-exp.y (%union) <bval>: Remove.
11976 * coffread.c (patch_opaque_types): Make "b" const.
11977 * spu-tdep.c (spu_catch_start): Make "block" const.
11978 * c-valprint.c (print_unpacked_pointer): Remove "block".
11979 * symmisc.c (dump_symtab_1): Make "b" const.
11980 (block_depth): Make "block" const.
11981 * d-exp.y (%union) <bval>: Remove.
11982 * cp-support.h (cp_lookup_rtti_type): Update.
11983 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11984 * psymtab.c (psym_lookup_symbol): Make "block" const.
11985 (maintenance_check_psymtabs): Make "b" const.
11986 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11987 (enumerate_locals, enumerate_args): Update.
11988 * python/py-symtab.c (stpy_global_block): Make "block" const.
11989 (stpy_static_block): Likewise.
11990 * inline-frame.c (block_starting_point_at): Make "new_block"
11992 * block.c (find_block_in_blockvector): Make return type const.
11993 (blockvector_for_pc_sect): Make "b" const.
11994 (find_block_in_blockvector): Make "b" const.
11996 2019-03-23 Tom Tromey <tom@tromey.com>
11998 * varobj.c (varobj_create): Update.
11999 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12000 * printcmd.c (display_command, do_one_display): Don't reset
12002 * parser-defs.h (enum innermost_block_tracker_type): Move to
12004 (innermost_block): Update comment.
12005 * parse.c (parse_exp_1): Add tracker_types parameter.
12006 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12007 tracker_types parameter. Reset innermost_block.
12008 (parse_exp_in_context): Remove.
12009 (parse_expression_for_completion): Update.
12010 * objfiles.c (~objfile): Don't reset expression_context_block or
12012 * expression.h (enum innermost_block_tracker_type): Move from
12014 (parse_exp_1): Add tracker_types parameter.
12015 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12016 reset innermost_block.
12018 2019-03-23 Tom Tromey <tom@tromey.com>
12020 * objfiles.h: Include bcache.h.
12022 2019-03-23 Tom Tromey <tom@tromey.com>
12024 * linespec.c (get_current_search_block): Use
12025 scoped_restore_current_language.
12026 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12028 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12029 Jiong Wang <jiong.wang@arm.com>
12031 * aarch64-linux-tdep.c
12032 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12034 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12036 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12037 Jiong Wang <jiong.wang@arm.com>
12039 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12041 (aarch64_analyze_prologue_test): Add PACIASP test.
12042 (aarch64_prologue_prev_register): Unmask PC value.
12044 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12045 Jiong Wang <jiong.wang@arm.com>
12047 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12048 (aarch64_dwarf2_prev_register): Unmask PC value.
12049 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12050 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12051 DW_CFA_AARCH64_negate_ra_state.
12052 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12054 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12055 Jiong Wang <jiong.wang@arm.com>
12057 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12059 (aarch64_pseudo_register_name): Likewise.
12060 (aarch64_pseudo_register_type): Likewise.
12061 (aarch64_pseudo_register_reggroup_p): Likewise.
12062 (aarch64_gdbarch_init): Add pauth registers.
12063 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12064 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12065 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12066 (struct gdbarch_tdep): Add regnum for ra_state.
12068 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12069 Jiong Wang <jiong.wang@arm.com>
12071 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12073 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12074 Jiong Wang <jiong.wang@arm.com>
12076 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12078 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12079 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12080 (aarch64_gdbarch_init): Add puth registers.
12081 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12082 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12083 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12085 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12086 Jiong Wang <jiong.wang@arm.com>
12088 * aarch64-linux-nat.c
12089 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12090 * aarch64-linux-tdep.c
12091 (aarch64_linux_core_read_description): Likewise.
12092 (aarch64_linux_get_hwcap): New function.
12093 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12094 (aarch64_linux_get_hwcap): New declaration.
12096 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12097 Jiong Wang <jiong.wang@arm.com>
12099 * aarch64-linux-nat.c
12100 (aarch64_linux_nat_target::read_description): Add pauth param.
12101 * aarch64-linux-tdep.c
12102 (aarch64_linux_core_read_description): Likewise.
12103 * aarch64-tdep.c (struct target_desc): Add in pauth.
12104 (aarch64_read_description): Add pauth param.
12105 (aarch64_gdbarch_init): Likewise.
12106 * aarch64-tdep.h (aarch64_read_description): Likewise.
12107 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12108 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12109 * features/Makefile: Add new files.
12110 * features/aarch64-pauth.c: New file.
12111 * features/aarch64-pauth.xml: New file.
12113 2019-03-20 Tom Tromey <tromey@adacore.com>
12115 * infrun.c (handle_inferior_event): Rename from
12116 handle_inferior_event_1. Create a scoped_value_mark.
12117 (handle_inferior_event): Remove.
12119 2019-03-19 Tom Tromey <tromey@adacore.com>
12121 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12122 * infrun.h (print_stop_event): Add "displays" parameter.
12123 * infrun.c (print_stop_event): Add "displays" parameter.
12125 2019-03-19 Pedro Alves <palves@redhat.com>
12127 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12128 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12129 to -1. Fix TABs vs spaces.
12130 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12131 * tui/tui-out.h (tui_ui_out) Add intro comments.
12132 <m_line, m_start_of_line>: In-class initialize, and add describing
12135 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12137 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12139 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12141 2019-03-18 Pedro Alves <palves@redhat.com>
12142 Eli Zaretskii <eliz@gnu.org>
12144 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12145 m_line and m_start_of_line.
12147 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12149 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12150 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12151 it returns a newline. This fixes a regression in TU mode, whereby
12152 the next line is output on the same screen line as the user input.
12154 2019-03-18 Tom Tromey <tromey@adacore.com>
12156 * minsyms.c (minimal_symbol_reader::install): Remove call to
12159 2019-03-18 Pedro Alves <palves@redhat.com>
12161 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12163 (apply_style): New, factored out from ...
12164 (apply_ansi_escape): ... this. Handle reverse video mode.
12165 (tui_set_reverse_mode): New function.
12166 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12167 * tui/tui-winsource.c (tui_show_source_line): Use
12168 tui_set_reverse_mode instead of setting A_STANDOUT.
12169 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12170 New setter methods.
12172 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12174 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12177 2019-03-18 Tom Tromey <tromey@adacore.com>
12179 * ada-lang.c (empty_array): Add "high" parameter.
12180 (ada_evaluate_subexp): Update.
12182 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12184 * unittests/string_view-selftests.c: Define
12185 _initialize_string_view_selftests unconditionally.
12187 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12190 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12192 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12195 * windows-nat.c (display_selector): Fix format specifiers.
12197 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12199 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12200 tui_refill_source_window instead of tui_refresh_win, to update the
12201 current execution line. This fixes redisplay of the current line
12202 when stepping through the code with "next" or "step".
12204 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12206 * source-cache.c (source_cache::get_source_lines): Call
12207 find_source_lines to initialize s->nlines. This fixes vertical
12208 scrolling of TUI source window when the DOWN arrow is pressed.
12210 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12212 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12213 linux-thread-db.c (_initialize_thread_db): Likewise.
12215 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12217 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12218 wclrtoeol in tui_show_source_line". This reverts changes made in
12219 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12221 2019-03-15 Tom Tromey <tom@tromey.com>
12223 * symtab.h (struct minimal_symbol): Derive from
12224 general_symbol_info.
12225 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12226 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12227 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12228 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12229 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12230 (MSYMBOL_SEARCH_NAME): Update.
12231 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12232 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12233 * minsyms.c (minimal_symbol_reader::record_full): Update.
12235 2019-03-15 Tom Tromey <tom@tromey.com>
12237 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12239 2019-03-15 Tom Tromey <tom@tromey.com>
12241 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12242 unique_xmalloc_ptr.
12243 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12245 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12246 (build_minimal_symbol_hash_tables)
12247 (minimal_symbol_reader::install): Update.
12249 2019-03-15 Tom Tromey <tom@tromey.com>
12251 * symtab.c (create_demangled_names_hash): Update.
12252 (symbol_set_names): Update.
12253 * objfiles.h (struct objfile_per_bfd_storage)
12254 <demangled_names_hash>: Now an htab_up.
12255 * objfiles.c (objfile_per_bfd_storage): Simplify.
12257 2019-03-15 Tom Tromey <tom@tromey.com>
12259 * objfiles.h (struct objfile_per_bfd_storage): Declare
12261 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12263 (get_objfile_bfd_data): Use new. Don't initialize
12265 (free_objfile_per_bfd_storage): Remove.
12266 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12268 2019-03-15 Tom Tromey <tom@tromey.com>
12270 * symfile.c (reread_symbols): Update.
12271 * objfiles.c (objfile::objfile): Update.
12272 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12273 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12275 (minimal_symbol_reader::install): Update.
12276 (terminate_minimal_symbol_table): Remove.
12277 * jit.c (jit_object_close_impl): Update.
12279 2019-03-15 Tom Tromey <tom@tromey.com>
12281 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12284 2019-03-15 Tom Tromey <tom@tromey.com>
12286 * objfiles.h (struct objfile_per_bfd_storage)
12287 <demangled_hash_languages>: Now a bitset.
12288 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12289 (lookup_minimal_symbol): Update.
12291 2019-03-15 Tom Tromey <tom@tromey.com>
12293 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12294 Don't return the symbol.
12295 * coffread.c (record_minimal_symbol): Use record_full.
12297 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12299 The MS-Windows port of ncurses fails to switch to a color pair if
12300 one or both of the colors are the implicit default colors. This
12301 change records the default colors when TUI is initialized, and
12302 then specifies them explicitly when a color pair uses the default
12303 colors. This allows color styling in TUI mode on MS-Windows.
12305 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12307 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12308 colors in ncurses_norm_attr.
12309 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12310 "none", replace it with the default color recorded in
12313 2019-03-14 Tom Tromey <tromey@adacore.com>
12315 * source-cache.h (class source_cache) <get_source_lines>: Return
12317 * source-cache.c (source_cache::extract_lines): Handle case where
12318 first_pos==npos. Return std::string.
12319 (source_cache::get_source_lines): Update.
12321 2019-03-14 Tom Tromey <tromey@adacore.com>
12323 * NEWS: Add item for "style sources" commands.
12324 * source-cache.c (source_cache::get_source_lines): Check
12326 * cli/cli-style.c (source_styling): New global.
12327 (_initialize_cli_style): Add "style sources" commands.
12328 (show_style_sources): New function.
12329 * cli/cli-style.h (source_styling): Declare.
12331 2019-03-14 Pedro Alves <palves@redhat.com>
12332 Tom Tromey <tromey@adacore.com>
12334 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12335 * tui/tui-winsource.c (tui_refill_source_window): New function,
12337 (tui_horizontal_source_scroll): ... here. Move some logic.
12338 * cli/cli-style.c (set_style_enabled): Notify new observable.
12339 * tui/tui-hooks.c (tui_redisplay_source): New function.
12340 (tui_attach_detach_observers): Attach or detach
12341 tui_redisplay_source.
12342 * observable.h (source_styling_changed): New observable.
12343 * observable.c: Define source_styling_changed observable.
12345 2019-03-13 Tom Tromey <tromey@adacore.com>
12347 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12348 (i386_gnu_nat_target::store_registers): Update.
12349 * target-debug.h (target_debug_print_std_string): New macro.
12350 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12351 * windows-tdep.c (display_one_tib): Update.
12352 * tui/tui-stack.c (tui_make_status_line): Update.
12353 * top.c (print_inferior_quit_action): Update.
12354 * thread.c (thr_try_catch_cmd): Update.
12355 (add_thread_with_info): Update.
12356 (thread_target_id_str): Update.
12357 (thr_try_catch_cmd): Update.
12358 (thread_command): Update.
12359 (thread_find_command): Update.
12360 * record-btrace.c (record_btrace_target::info_record)
12361 (record_btrace_resume_thread, record_btrace_target::resume)
12362 (record_btrace_cancel_resume, record_btrace_step_thread)
12363 (record_btrace_target::wait, record_btrace_target::wait)
12364 (record_btrace_target::wait, record_btrace_target::stop): Update.
12365 * progspace.c (print_program_space): Update.
12366 * process-stratum-target.c
12367 (process_stratum_target::thread_address_space): Update.
12368 * linux-fork.c (linux_fork_mourn_inferior)
12369 (detach_checkpoint_command, info_checkpoints_command)
12370 (linux_fork_context): Update.
12371 (linux_fork_detach): Update.
12372 (class scoped_switch_fork_info): Update.
12373 (delete_checkpoint_command): Update.
12374 * infrun.c (follow_fork_inferior): Update.
12375 (follow_fork_inferior): Update.
12376 (proceed_after_vfork_done): Update.
12377 (handle_vfork_child_exec_or_exit): Update.
12378 (follow_exec): Update.
12379 (displaced_step_prepare_throw): Update.
12380 (displaced_step_restore): Update.
12381 (start_step_over): Update.
12382 (resume_1): Update.
12383 (clear_proceed_status_thread): Update.
12385 (print_target_wait_results): Update.
12386 (do_target_wait): Update.
12387 (context_switch): Update.
12388 (stop_all_threads): Update.
12389 (restart_threads): Update.
12390 (finish_step_over): Update.
12391 (handle_signal_stop): Update.
12392 (switch_back_to_stepped_thread): Update.
12393 (keep_going_pass_signal): Update.
12394 (print_exited_reason): Update.
12395 (normal_stop): Update.
12396 * inferior.c (inferior_pid_to_str): Change return type.
12397 (print_selected_inferior): Update.
12398 (add_inferior): Update.
12399 (detach_inferior): Update.
12400 * dummy-frame.c (fprint_dummy_frames): Update.
12401 * dcache.c (dcache_info_1): Update.
12402 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12403 (btrace_fetch, btrace_clear): Update.
12404 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12405 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12407 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12408 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12409 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12410 * gdbarch.c, gdbarch.h: Rebuild.
12411 * gdbarch.sh (core_pid_to_str): Change return type.
12412 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12414 (windows_nat_target::pid_to_str): Change return type.
12415 (windows_delete_thread): Update.
12416 (windows_nat_target::attach): Update.
12417 (windows_nat_target::files_info): Update.
12418 * target-delegates.c: Rebuild.
12419 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12421 (sol_thread_target::pid_to_str): Change return type.
12422 * remote.c (class remote_target) <pid_to_str>: Change return
12424 (remote_target::pid_to_str): Change return type.
12425 (extended_remote_target::attach, remote_target::remote_stop_ns)
12426 (remote_target::remote_notif_remove_queued_reply)
12427 (remote_target::push_stop_reply, remote_target::disable_btrace):
12429 (extended_remote_target::attach): Update.
12430 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12432 (gdbsim_target::pid_to_str): Change return type.
12433 * ravenscar-thread.c (struct ravenscar_thread_target)
12434 <pid_to_str>: Change return type.
12435 (ravenscar_thread_target::pid_to_str): Change return type.
12436 * procfs.c (class procfs_target) <pid_to_str>: Change return
12438 (procfs_target::pid_to_str): Change return type.
12439 (procfs_target::attach): Update.
12440 (procfs_target::detach): Update.
12441 (procfs_target::fetch_registers): Update.
12442 (procfs_target::store_registers): Update.
12443 (procfs_target::wait): Update.
12444 (procfs_target::files_info): Update.
12445 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12446 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12448 (nto_procfs_target::pid_to_str): Change return type.
12449 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12450 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12452 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12453 (exit_lwp): Update.
12454 (attach_proc_task_lwp_callback, get_detach_signal)
12455 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12456 (linux_nat_target::resume, wait_lwp, stop_callback)
12457 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12458 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12459 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12460 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12461 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12463 (inf_ptrace_target::attach): Update.
12464 (inf_ptrace_target::files_info): Update.
12465 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12467 (go32_nat_target::pid_to_str): Change return type.
12468 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12469 (gnu_nat_target::wait): Update.
12470 (gnu_nat_target::wait): Update.
12471 (gnu_nat_target::resume): Update.
12472 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12473 (fbsd_nat_target::wait): Update.
12474 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12476 (darwin_nat_target::attach): Update.
12477 * corelow.c (class core_target) <pid_to_str>: Change return type.
12478 (core_target::pid_to_str): Change return type.
12479 * target.c (normal_pid_to_str): Change return type.
12480 (default_pid_to_str): Likewise.
12481 (target_pid_to_str): Change return type.
12482 (target_translate_tls_address): Update.
12483 (target_announce_detach): Update.
12484 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12486 (bsd_uthread_target::pid_to_str): Change return type.
12487 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12489 (bsd_kvm_target::pid_to_str): Change return type.
12490 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12492 (aix_thread_target::pid_to_str): Change return type.
12493 * target.h (struct target_ops) <pid_to_str>: Change return type.
12494 (target_pid_to_str, normal_pid_to_str): Likewise.
12495 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12497 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12499 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12501 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12503 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12505 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12508 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12510 * NEWS: Mention that the new default MI version is 3. Mention
12511 changes to the output of commands and events that deal with
12512 multi-location breakpoints.
12513 * breakpoint.c: Include "mi/mi-out.h".
12514 (print_one_breakpoint): Change output syntax if using MI version
12516 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12518 (mi_multi_location_breakpoint_output_fixed): New.
12519 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12520 (mi_cmd_fix_multi_location_breakpoint_output): New.
12521 (mi_multi_location_breakpoint_output_fixed): New.
12522 * mi/mi-cmds.c (mi_cmds): Register command
12523 -fix-multi-location-breakpoint-output.
12524 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12527 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12529 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12530 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12531 instantiate mi_ui_out based on interpreter name.
12532 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12533 * mi/mi-main.c (mi_load_progress): Likewise.
12535 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12537 * NEWS: Combine separate "New targets" sections for 8.3.
12539 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12541 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12542 (ppcfbsd_init_abi): Install gdbarch
12543 "fetch_tls_load_module_address" and "get_thread_local_address"
12546 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12548 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12549 (riscv_fbsd_init_abi): Install gdbarch
12550 "fetch_tls_load_module_address" and "get_thread_local_address"
12553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12555 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12556 (i386fbsd_init_abi): Install gdbarch
12557 "fetch_tls_load_module_address" and "get_thread_local_address"
12560 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12562 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12563 (amd64fbsd_init_abi): Install gdbarch
12564 "fetch_tls_load_module_address" and "get_thread_local_address"
12567 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12569 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12570 (struct fbsd_pspace_data): New type.
12571 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12572 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12573 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12574 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12575 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12577 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12579 * gdbtypes.c (lookup_struct_elt): New function.
12580 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12581 * gdbtypes.h (struct struct_elt): New type.
12582 (lookup_struct_elt): New prototype.
12584 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12586 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12587 remove disabled code block.
12589 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12591 * gdbarch.sh (get_thread_local_address): New method.
12592 * gdbarch.h, gdbarch.c: Regenerate.
12593 * target.c (target_translate_tls_address): Use
12594 gdbarch_get_thread_local_address if present instead of
12595 target::get_thread_local_address.
12597 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12599 * target.h (target::get_thread_local_address): Update comment.
12601 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12603 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12604 objfile->separate_debug_objfile_backlink if not NULL.
12606 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12608 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12609 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12610 (amd64bsd_store_inferior_registers): Likewise.
12611 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12612 Enable segment base registers.
12613 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12614 PT_GETFSBASE and PT_GETGSBASE.
12615 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12617 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12618 segment base registers.
12619 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12621 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12623 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12624 Update calls to i386_target_description to add 'segments'
12626 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12627 add segment base registers.
12628 * arch/i386.c (i386_create_target_description): Add 'segments'
12629 parameter to enable segment base registers.
12630 * arch/i386.h (i386_create_target_description): Likewise.
12631 * features/i386/32bit-segments.xml: New file.
12632 * features/i386/32bit-segments.c: Generate.
12633 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12634 call to i386_target_description to add 'segments' parameter.
12635 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12636 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12637 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12638 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12639 if feature is present.
12640 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12641 Add 'segments' parameter to call to i386_target_description.
12642 (i386_target_description): Add 'segments' parameter to enable
12643 segment base registers.
12644 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12645 to call to i386_target_description.
12646 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12647 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12648 Define I386_NUM_REGS.
12649 (i386_target_description): Add 'segments' parameter to enable
12650 segment base registers.
12652 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12655 * source-cache.c: #undef open and close, to avoid unresolved
12656 externals during linking.
12658 2019-03-12 Tom Tromey <tromey@adacore.com>
12660 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12661 const. Add initializers.
12662 (_initialize_remote): Don't initialize ptid globals.
12664 2019-03-12 Pedro Alves <palves@redhat.com>
12666 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12668 2019-03-12 Pedro Alves <palves@redhat.com>
12670 * cp-name-parser.y (main): Remove unused 'len' variable.
12672 2019-03-12 Tom Tromey <tromey@adacore.com>
12674 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12675 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12677 2019-03-12 Tom Tromey <tromey@adacore.com>
12679 * linux-nat.c (iterate_over_lwps): Update.
12680 (stop_callback): Remove parameter.
12681 (stop_wait_callback, detach_callback, resume_set_callback)
12682 (select_singlestep_lwp_callback, set_ignore_sigint)
12683 (status_callback, resumed_callback, resume_clear_callback)
12684 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12686 (linux_nat_target::detach, linux_nat_target::resume)
12687 (linux_stop_and_wait_all_lwps, select_event_lwp)
12688 (linux_nat_filter_event, linux_nat_wait_1)
12689 (linux_nat_target::kill, linux_nat_target::stop)
12690 (linux_nat_target::stop): Update.
12691 (linux_nat_resume_callback): Change type.
12692 (resume_stopped_resumed_lwps, count_events_callback)
12693 (select_event_lwp_callback): Likewise.
12694 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12695 * arm-linux-nat.c (struct update_registers_data): Remove.
12696 (update_registers_callback): Change type.
12697 (arm_linux_insert_hw_breakpoint1): Update.
12698 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12700 (x86_linux_dr_set_addr): Update.
12701 (x86_linux_dr_set_control): Update.
12702 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12703 (iterate_over_lwps): Use gdb::function_view.
12704 * nat/aarch64-linux-hw-point.c (struct
12705 aarch64_dr_update_callback_param): Remove.
12706 (debug_reg_change_callback): Change type.
12707 (aarch64_notify_debug_reg_change): Update.
12708 * s390-linux-nat.c (s390_refresh_per_info): Update.
12710 2019-03-11 Tom Tromey <tromey@adacore.com>
12712 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12713 redundant assignment to "this_cu".
12715 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12717 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12719 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12721 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12723 (rank_one_type): ... this.
12725 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12727 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12729 (rank_one_type): ... this.
12731 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12733 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12735 (rank_one_type): ... this.
12737 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12739 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12741 (rank_one_type): ... this.
12743 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12745 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12747 (rank_one_type): ... this.
12749 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12751 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12753 (rank_one_type): ... this.
12755 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12757 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12759 (rank_one_type): ... this.
12761 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12763 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12765 (rank_one_type): ... this.
12767 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12769 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12771 (rank_one_type): ... this.
12773 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12775 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12777 (rank_one_type): ... this.
12779 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12781 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12783 (rank_one_type): ... this.
12785 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12787 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12789 (rank_one_type): ... this.
12791 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12793 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12794 inferior-events' shows the example events.
12796 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12798 Support styling on native MS-Windows console
12801 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12802 on MS-Windows if $TERM is not defined.
12804 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12806 * posix-hdep.c (gdb_console_fputs):
12807 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12809 * ui-file.h (gdb_console_fputs): Add prototype.
12811 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12812 back to fputs only if the former returns zero.
12814 2019-03-07 Tom Tromey <tom@tromey.com>
12816 * symmisc.c (print_symbol_bcache_statistics): Update.
12817 (print_objfile_statistics): Update.
12818 * symfile.c (allocate_symtab): Update.
12819 * stabsread.c: Don't include bcache.h.
12820 * psymtab.h (struct psymbol_bcache): Don't declare.
12821 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12822 (psymbol_bcache_init, psymbol_bcache_free)
12823 (psymbol_bcache_get_bcache): Don't declare.
12824 * psymtab.c (struct psymbol_bcache): Remove.
12825 (psymtab_storage::psymtab_storage): Update.
12826 (psymtab_storage::~psymtab_storage): Update.
12827 (psymbol_bcache_init, psymbol_bcache_free)
12828 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12829 (add_psymbol_to_bcache): Update.
12830 (allocate_psymtab): Update.
12831 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12832 macro_cache>: No longer pointers.
12833 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12834 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12835 * macrotab.c (macro_bcache): Update.
12836 * macroexp.c: Don't include bcache.h.
12837 * gdbtypes.c (check_types_worklist): Update.
12838 (types_deeply_equal): Remove TRY/CATCH. Update.
12839 * elfread.c (elf_symtab_read): Update.
12840 * dwarf2read.c: Don't include bcache.h.
12841 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12842 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12843 (print_bcache_statistics, bcache_memory_used): Don't declare.
12844 (struct bcache): Move from bcache.c. Add constructor, destructor,
12845 methods. Rename all data members.
12846 * bcache.c (struct bcache): Move to bcache.h.
12847 (bcache::expand_hash_table): Rename from expand_hash_table.
12849 (bcache::insert): Rename from bcache_full.
12850 (bcache::compare): Rename from bcache_compare.
12851 (bcache_xmalloc): Remove.
12852 (bcache::~bcache): Rename from bcache_xfree.
12853 (bcache::print_statistics): Rename from print_bcache_statistics.
12854 (bcache::memory_used): Rename from bcache_memory_used.
12856 2019-03-07 Pedro Alves <palves@redhat.com>
12858 * infrun.c (normal_stop): Also check for
12859 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12861 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12863 * f-lang.c (value_from_host_double): Moved to...
12864 * value.c (value_from_host_double): ...here.
12865 * value.h (value_from_host_double): Declare.
12866 * guile/scm-math.c (vlscm_convert_typed_number): Use
12867 value_from_host_double.
12868 (vlscm_convert_number): Likewise.
12869 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12870 * python/py-value.c (convert_value_from_python): Likewise.
12872 2019-03-06 Tom Tromey <tom@tromey.com>
12874 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12876 2019-03-06 Tom Tromey <tom@tromey.com>
12878 * utils.h (free_current_contents): Don't declare.
12879 * utils.c (free_current_contents): Remove.
12881 2019-03-06 Tom Tromey <tom@tromey.com>
12883 * top.c (quit_force): Update.
12884 * main.c (captured_command_loop): Update.
12885 * common/new-op.c (operator new): Update.
12886 * common/common-exceptions.c (struct catcher)
12887 <save_cleanup_chain>: Remove member.
12888 (exceptions_state_mc_init): Update.
12889 (exception_try_scope_entry): Return nullptr.
12890 (exception_try_scope_exit, exception_rethrow)
12891 (throw_exception_sjlj, throw_exception_cxx): Update.
12892 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12893 (all_cleanups, do_cleanups, discard_cleanups)
12894 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12895 (restore_cleanups, restore_final_cleanups): Don't declare.
12896 (do_final_cleanups): Remove parameter.
12897 * common/cleanups.c (cleanup_chain, make_cleanup)
12898 (make_cleanup_dtor, all_cleanups, do_cleanups)
12899 (discard_my_cleanups, discard_cleanups)
12900 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12901 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12902 (null_cleanup): Remove.
12903 (do_final_cleanups): Remove parameter.
12905 2019-03-06 Tom Tromey <tom@tromey.com>
12907 * remote.c (remote_target::remote_parse_stop_reply): Use
12908 unique_xmalloc_ptr.
12910 2019-03-06 Tom Tromey <tom@tromey.com>
12912 * stabsread.c (struct stabs_field_info): Rename from field_info.
12913 <list, fnlist>: Add initializers.
12914 <obstack>: New member.
12915 (read_member_functions, read_struct_fields, read_baseclasses):
12916 Allocate on obstack. Don't use cleanups.
12917 (read_one_struct_field, read_member_functions, read_struct_fields)
12918 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12919 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12920 (read_struct_type): Update.
12922 2019-03-06 Tom Tromey <tom@tromey.com>
12924 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12925 * common/filestuff.h (make_cleanup_close): Don't declare.
12926 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12929 2019-03-06 Tom Tromey <tom@tromey.com>
12931 * solib-aix.c: Use make_scope_exit.
12933 2019-03-06 Tom Tromey <tom@tromey.com>
12935 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12936 Use make_scope_exit.
12938 2019-03-06 Tom Tromey <tom@tromey.com>
12940 * solib-svr4.c (disable_probes_interface): Remove parameter.
12941 (svr4_handle_solib_event): Use make_scope_exit.
12943 2019-03-06 Tom Tromey <tom@tromey.com>
12945 * remote.c (struct stop_reply_deleter): Remove.
12946 (stop_reply_up): Update.
12947 (struct stop_reply): Derive from notif_event. Don't typedef.
12948 <regcache>: Now a std::vector.
12949 (stop_reply_xfree): Remove.
12950 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12951 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12952 (remote_target::discard_pending_stop_replies): Use delete.
12953 (remote_target::remote_parse_stop_reply): Update.
12954 (remote_target::process_stop_reply): Update.
12955 * remote-notif.h (struct notif_event): Add virtual destructor.
12956 Remove "dtr" member.
12957 (struct notif_client) <alloc_event>: Return a unique_ptr.
12958 (notif_event_xfree): Don't declare.
12959 (notif_event_up): New typedef.
12960 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12961 (notif_event_xfree, do_notif_event_xfree): Remove.
12962 (remote_notif_state_xfree): Update.
12964 2019-03-06 Tom Tromey <tom@tromey.com>
12966 * infrun.c (displaced_step_clear_cleanup): Now a
12967 forward_scope_exit type.
12968 (displaced_step_prepare_throw): Update.
12969 (displaced_step_fixup): Update.
12971 2019-03-06 Tom Tromey <tom@tromey.com>
12973 * inferior.h (class inferior): Update comment.
12974 * gdbthread.h (class thread_info): Update comment.
12976 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12977 Tom Tromey <tom@tromey.com>
12979 * stabsread.h (struct stab_section_list): Remove.
12980 (coffstab_build_psymtabs): Update.
12981 * dbxread.c (symbuf_sections): Now a std::vector.
12982 (sect_idx): New global.
12983 (fill_symbuf): Update.
12984 (coffstab_build_psymtabs): Change type of stabsects parameter.
12986 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12988 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12989 (coff_locate_sections): Update.
12990 (coff_symfile_read): Remove cleanups. Update.
12991 (init_stringtab): Add storage parameter.
12992 (free_stringtab, free_stringtab_cleanup): Remove.
12993 (init_lineno): Add storage parameter.
12994 (free_linetab, free_linetab_cleanup): Remove.
12996 2019-03-06 Pedro Alves <palves@redhat.com>
12998 * linux-fork.c (fork_info::clobber_regs): Delete.
12999 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13000 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13002 (scoped_switch_fork_info::scoped_switch_fork_info)
13003 (checkpoint_command, linux_fork_context): Adjust
13004 fork_save_infrun_state calls.
13006 2019-03-06 Pedro Alves <palves@redhat.com>
13008 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13009 (inf_has_multiple_threads): Return 'bool' and rewrite using
13010 inferior_info::threads().
13012 2019-03-06 Pedro Alves <palves@redhat.com>
13014 * linux-fork.c: Include <list>.
13015 (fork_list): Now a std::list instance.
13016 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13017 (forks_exist_p, find_last_fork): Adjust.
13018 (new_fork): Delete.
13020 (add_fork): Adjust.
13021 (free_fork): Delete, folded into fork_info::~fork_info().
13022 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13024 (init_fork_list): Delete.
13025 (linux_fork_killall, linux_fork_mourn_inferior)
13026 (linux_fork_detach, info_checkpoints_command): Adjust.
13027 (_initialize_linux_fork): No longer call init_fork_list.
13029 2019-03-06 Pedro Alves <palves@redhat.com>
13031 * linux-fork.c (new_fork): New, split out of ...
13032 (add_fork): ... this. Return void. Move "first fork" special
13033 case from here, to ...
13034 (checkpoint_command): ... here.
13035 * linux-linux.h (add_fork): Return void.
13037 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13039 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13041 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13042 Chris January <chris.january@arm.com>
13043 David Lecomber <david.lecomber@arm.com>
13045 * f-exp.y: New token, UNOP_INTRINSIC.
13046 (exp): New pattern using UNOP_INTRINSIC token.
13047 (f77_keywords): Add 'abs' keyword.
13048 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13049 (value_from_host_double): New function.
13050 (evaluate_subexp_f): Support UNOP_ABS.
13052 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13054 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13057 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13059 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13060 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13061 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13063 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13065 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13067 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13068 Chris January <chris.january@arm.com>
13070 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13071 * f-exp.y: Define 'KIND' token.
13072 (exp): New pattern for KIND expressions.
13073 (ptype): Handle types with a kind extension.
13074 (direct_abs_decl): Extend to spot kind extensions.
13075 (f77_keywords): Add 'kind' to the list.
13076 (push_kind_type): New function.
13077 (convert_to_kind_type): New function.
13078 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13079 * parse.c (operator_length_standard): Likewise.
13080 * parser-defs.h (enum type_pieces): Add tp_kind.
13081 * std-operator.def: Add UNOP_KIND.
13083 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13085 * f-exp.y (f_parse): Set yydebug.
13087 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13089 * f-lang.c (evaluate_subexp_f): New function.
13090 (exp_descriptor_f): New global.
13091 (f_language_defn): Use exp_descriptor_f instead of
13092 exp_descriptor_standard.
13094 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13096 * f-exp.y (struct token): Add comments.
13097 (dot_ops): Remove uppercase versions and the end marker.
13098 (f77_keywords): Likewise.
13099 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13100 entries in the dot_ops array are case insensitive, and use
13101 strncasecmp to compare strings. Also some whitespace cleanup in
13102 this area. Similar for the f77_keywords array, except entries in
13103 this list might be case sensitive.
13105 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13107 * f-exp.y (struct f77_boolean_val): Add comments.
13108 (boolean_values): Remove uppercase versions, and end marker.
13109 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13110 and use strncasecmp to achieve case insensitivity. Additionally,
13111 perform whitespace cleanup around this code.
13113 2019-03-06 Tom Tromey <tromey@adacore.com>
13115 * remote-sim.c (gdbsim_target_open): Use result of
13118 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13119 Dirk Schubert <dirk.schubert@arm.com>
13120 Chris January <chris.january@arm.com>
13122 * eval.c (evaluate_subexp_standard): Call Fortran argument
13124 * f-lang.c (struct value): A value which can be passed into a
13125 Fortran function call.
13126 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13128 (struct type): Value ready for a Fortran function call.
13129 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13131 * f-lang.h (fortran_argument_convert): Declaration.
13132 (fortran_preserve_arg_pointer): Declaration.
13133 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13135 2019-03-05 Tom Tromey <tromey@adacore.com>
13137 * python/py-prettyprint.c (print_string_repr): Remove #if.
13138 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13140 2019-03-05 Tom Tromey <tromey@adacore.com>
13142 * target.c (the_dummy_target): Move later. Change type to
13144 (initialize_targets): Don't initialize the_dummy_target.
13146 2019-03-05 Tom Tromey <tromey@adacore.com>
13148 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13149 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13151 2019-03-05 Tom Tromey <tromey@adacore.com>
13153 * windows-nat.c (windows_nat_target::attach)
13154 (windows_nat_target::detach): Don't call gdb_flush.
13155 * valprint.c (generic_val_print, val_print, val_print_string):
13156 Don't call gdb_flush.
13157 * utils.c (defaulted_query): Don't call gdb_flush.
13158 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13159 * target.c (target_announce_detach): Don't call gdb_flush.
13160 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13161 * remote.c (extended_remote_target::attach): Don't call
13163 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13164 * printcmd.c (do_examine): Don't call gdb_flush.
13165 (info_display_command): Don't call gdb_flush.
13166 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13167 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13168 * memattr.c (info_mem_command): Don't call gdb_flush.
13169 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13170 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13171 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13172 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13173 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13174 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13175 (gnu_nat_target::detach): Don't call gdb_flush.
13176 * f-valprint.c (f_val_print): Don't call gdb_flush.
13177 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13178 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13179 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13181 * c-valprint.c (c_val_print): Don't call gdb_flush.
13182 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13184 2019-03-05 Tom Tromey <tromey@adacore.com>
13186 * varobj.c (update_dynamic_varobj_children): Update.
13187 (install_default_visualizer): Use reset, not release.
13188 * value.c (set_internalvar): Update.
13189 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13190 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13191 ATTRIBUTE_UNUSED_RESULT.
13193 2019-03-05 Tom Tromey <tromey@adacore.com>
13195 * remote.c (class scoped_remote_fd) <release>: Add
13196 ATTRIBUTE_UNUSED_RESULT.
13198 2019-03-05 Tom Tromey <tromey@adacore.com>
13200 * macroexp.c (struct macro_buffer) <release>: Add
13201 ATTRIBUTE_UNUSED_RESULT.
13203 2019-03-05 Tom Tromey <tromey@adacore.com>
13205 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13206 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13207 ATTRIBUTE_UNUSED_RESULT.
13209 2019-03-05 Tom Tromey <tromey@adacore.com>
13211 * common/scoped_fd.h (class scoped_fd) <release>: Add
13212 ATTRIBUTE_UNUSED_RESULT.
13214 2019-03-05 Tom Tromey <tromey@adacore.com>
13216 * parser-defs.h (struct parser_state) <release>: Add
13217 ATTRIBUTE_UNUSED_RESULT.
13219 2019-03-05 Tom Tromey <tromey@adacore.com>
13221 * utils.h (class gdb_argv) <release>: Add
13222 ATTRIBUTE_UNUSED_RESULT.
13223 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13225 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13227 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13228 for-loop range, to avoid compiler warnings.
13230 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13231 avoid compiler warnings about unused variables.
13233 * NEWS: Mention end of support for native debugging on MS-Windows
13237 * common/netstuff.c:
13238 * gdbserver/gdbreplay.c
13239 * gdbserver/remote-utils.c:
13241 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13242 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13243 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13244 'getaddrinfo' and 'freeaddrinfo' were not available before
13245 Windows XP, and mingw.org's MinGW headers by default define
13246 _WIN32_WINNT to 0x500.
13248 2019-03-01 Gary Benson <gbenson@redhat.com>
13250 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13252 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13253 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13256 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13257 set_sigint_trap, clear_sigint_trap.
13259 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13261 * target.c (target_detach): Clear the regcache and the
13264 2019-02-27 Pedro Alves <palves@redhat.com>
13266 * utils.c (set_screen_size): When we cap the height/width sizes,
13267 tweak the corresponding command variable to show "unlimited":
13269 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13270 Pedro Alves <palves@redhat.com>
13272 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13273 before calling rl_set_screen_size.
13275 2019-02-27 Tom Tromey <tromey@adacore.com>
13277 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13279 * python/py-value.c: Remove Python 2.4 workaround.
13280 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13282 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13283 Python 2.4 workaround.
13284 * python/python-internal.h: Remove Python 2.4 comment.
13285 (Py_ssize_t): Don't define.
13286 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13287 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13288 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13289 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13290 * python/python.c (do_start_initialization): Remove Python 2.4
13292 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13293 (print_children): Remove Python 2.4 workaround.
13294 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13296 (CHARBUFFERPROC_NAME): Remove.
13297 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13298 Python 2.4 workaround.
13300 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13302 * NEWS: Note minimum Python version.
13304 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13306 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13307 code from these functions. Remove corresponding ifdefs. Use
13308 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13309 Remove gotos and target of gotos.
13310 (infpy_search_memory): Likewise.
13312 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13314 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13315 (hppa_gdbarch_init): Don't register deleted functions with
13318 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13320 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13321 (h8300_unwind_sp): Delete.
13322 (h8300_dummy_id): Delete.
13323 (h8300_gdbarch_init): Don't register deleted functions with
13326 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13328 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13329 (ft32_unwind_pc): Delete.
13330 (ft32_unwind_sp): Delete.
13331 (ft32_gdbarch_init): Don't register deleted functions with
13334 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13336 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13337 (frv_unwind_pc): Delete.
13338 (frv_unwind_sp): Delete.
13339 (frv_gdbarch_init): Don't register deleted functions with
13342 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13344 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13345 (riscv_unwind_pc): Delete.
13346 (riscv_unwind_sp): Delete.
13347 (riscv_gdbarch_init): Don't register deleted functions with
13350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13352 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13353 (csky_unwind_pc): Delete.
13354 (csky_unwind_sp): Delete.
13355 (csky_gdbarch_init): Don't register deleted functions with
13358 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13360 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13361 (cris_unwind_pc): Delete.
13362 (cris_unwind_sp): Delete.
13363 (cris_gdbarch_init): Don't register deleted functions with
13366 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13368 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13369 (bfin_unwind_pc): Delete.
13370 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13374 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13375 (arm_unwind_pc): Delete.
13376 (arm_unwind_sp): Delete.
13377 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13379 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13381 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13382 (arc_unwind_pc): Delete.
13383 (arc_unwind_sp): Delete.
13384 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13386 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13388 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13389 (alpha_unwind_pc): Delete.
13390 (alpha_gdbarch_init): Don't register deleted functions with
13393 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13395 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13396 (aarch64_unwind_pc): Delete.
13397 (aarch64_unwind_sp): Delete.
13398 (aarch64_gdbarch_init): Don't register deleted functions with
13401 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13403 * gdbtypes.c (type_align): Don't consider static members when
13404 computing structure alignment.
13406 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13408 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13409 return 0 for other types.
13410 * arch-utils.c (default_type_align): Always return 0.
13411 * gdbarch.h: Regenerate.
13412 * gdbarch.sh (type_align): Extend comment.
13413 * gdbtypes.c (type_align): Add additional comments, always call
13414 gdbarch_type_align before applying the default rules.
13415 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13416 generic code will then apply a suitable default.
13417 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13418 types, return 0 for other types.
13420 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13422 * NEWS: Create a new section for the next release branch.
13423 Rename the section of the current branch, now that it has
13426 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13428 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13429 * version.in: Bump version to 8.3.50.DATE-git.
13431 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13433 * aix-thread.c (ptid_cmp): Remove unused variable.
13434 (get_signaled_thread): Likewise.
13435 (store_regs_user_thread): Likewise.
13436 (store_regs_kernel_thread): Likewise.
13437 (fetch_regs_kernel_thread): Remove shadowed variable.
13439 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13441 * features/riscv/32bit-cpu.xml: Add register numbers.
13442 * features/riscv/32bit-fpu.c: Regenerate.
13443 * features/riscv/32bit-fpu.xml: Add register numbers.
13444 * features/riscv/64bit-cpu.xml: Add register numbers.
13445 * features/riscv/64bit-fpu.c: Regenerate.
13446 * features/riscv/64bit-fpu.xml: Add register numbers.
13448 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13450 * NEWS: Mention two argument form of gdb.Value constructor.
13451 * python/py-value.c (convert_buffer_and_type_to_value): New
13453 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13454 Add support for handling an optional second argument. Call
13455 convert_buffer_and_type_to_value as appropriate.
13456 * python/python-internal.h (Py_buffer_deleter): New struct.
13457 (Py_buffer_up): New typedef.
13459 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13461 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13462 instead of releasing ownership.
13464 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13466 * dwarf2read.c (open_and_init_dwp_file): Call
13467 elf_numsections instead of bfd_count_sections to initialize
13468 dwp_file->num_sections.
13470 2019-02-25 Tom Tromey <tromey@adacore.com>
13472 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13474 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13476 * gcore.in: Add '--readnever' option when invoking GDB.
13478 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13480 * MAINTAINERS: Update my email address.
13482 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13484 * build-id.c (build_id_to_debug_bfd_1): New function.
13485 (build_id_to_debug_bfd): Look for separate debug file in
13488 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13490 * gdbarch.sh: Update the copyright year range that is placed into
13493 2019-02-22 Keith Seitz <keiths@redhat.com>
13496 * linespec.c (create_sals_line_offset): Search for the default
13497 symtab's filename instead of its fullname.
13499 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13501 * NEWS: Update style defaults.
13503 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13505 * main.c (captured_main_1): Disable styling in batch mode.
13507 2019-02-20 Tom Tromey <tom@tromey.com>
13509 * symtab.c (symtab_symbol_info): Fix typos.
13511 2019-02-20 Tom Tromey <tromey@adacore.com>
13513 * findcmd.c (_initialize_mem_search): Use upper case for
13514 metasyntactic variables.
13516 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13518 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13519 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13521 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13523 * top.h (source_file_name): Change to std::string.
13524 * top.c (source_file_name): Likewise.
13525 (command_line_input): Adjust.
13526 * cli/cli-script.c (script_from_file): Adjust.
13528 2019-02-19 Tom Tromey <tromey@adacore.com>
13530 * ravenscar-thread.c
13531 (ravenscar_thread_target::update_thread_list): Don't call
13532 ada_build_task_list.
13533 * ada-lang.h (ada_build_task_list): Don't declare.
13534 * ada-tasks.c (struct ada_tasks_inferior_data)
13535 <task_list_valid_p>: Now bool.
13536 (read_known_tasks, ada_task_list_changed)
13537 (ada_tasks_invalidate_inferior_data): Update.
13538 (read_known_tasks_array): Return bool.
13539 (read_known_tasks_list): Likewise.
13540 (read_known_tasks): Return void.
13541 (ada_build_task_list): Now static.
13543 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13545 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13546 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13548 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13550 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13551 variant for ada_tasks_pspace_data_handle and
13552 ada_tasks_inferior_data_handle.
13553 (ada_tasks_pspace_data_cleanup): New function.
13554 (ada_tasks_inferior_data_cleanup): New function.
13556 2019-02-17 Tom Tromey <tom@tromey.com>
13558 * macrotab.h (macro_source_fullname): Return a std::string.
13559 * macrotab.c (macro_include, check_for_redefinition)
13560 (macro_undef, macro_lookup_definition, foreach_macro)
13561 (foreach_macro_in_scope): Update.
13562 (macro_source_fullname): Return a std::string.
13563 * macrocmd.c (show_pp_source_pos): Update.
13565 2019-02-17 Tom Tromey <tom@tromey.com>
13567 * macrocmd.c (show_pp_source_pos): Style the file names.
13569 2019-02-17 Tom Tromey <tom@tromey.com>
13572 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13574 2019-02-17 Tom Tromey <tom@tromey.com>
13576 * ada-lang.c (user_select_syms): Use filtered printing.
13577 * utils.c (wrap_style): New global.
13578 (desired_style): Remove.
13579 (emit_style_escape): Add stream parameter.
13580 (set_output_style, reset_terminal_style, prompt_for_continue):
13582 (flush_wrap_buffer): Only flush gdb_stdout.
13583 (wrap_here): Set wrap_style.
13584 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13585 treat escape sequences as a character. Change when wrap buffer is
13587 (fputs_styled): Do not set the output style when the default is
13589 * ui-style.h (struct ui_file_style) <is_default>: New method.
13590 * source.c (print_source_lines_base): Emit escape sequences in one
13593 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13595 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13596 integers and enumeration types.
13598 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13600 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13601 instead of lookup_symbol_in_language
13602 (do_exact_match): New function.
13603 (ada_get_symbol_name_matcher): Return do_exact_match when
13604 doing a verbatim match.
13606 2019-02-15 Tom Tromey <tromey@adacore.com>
13608 * ravenscar-thread.c (ravenscar_thread_target::resume)
13609 (ravenscar_thread_target::wait): Special case wildcard requests.
13611 2019-02-15 Tom Tromey <tromey@adacore.com>
13613 * ravenscar-thread.c (base_ptid): Remove.
13614 (struct ravenscar_thread_target) <close>: New method.
13615 <m_base_ptid>: New member.
13616 <update_inferior_ptid, active_task, task_is_currently_active,
13617 runtime_initialized>: Declare methods.
13618 <ravenscar_thread_target>: Add constructor.
13619 (ravenscar_thread_target::task_is_currently_active)
13620 (ravenscar_thread_target::update_inferior_ptid)
13621 (ravenscar_runtime_initialized): Rename. Now methods.
13622 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13623 (ravenscar_thread_target::update_thread_list): Update.
13624 (ravenscar_thread_target::active_task): Now method.
13625 (ravenscar_thread_target::store_registers)
13626 (ravenscar_thread_target::prepare_to_store)
13627 (ravenscar_thread_target::prepare_to_store)
13628 (ravenscar_thread_target::mourn_inferior): Update.
13629 (ravenscar_inferior_created): Use "new" to create target.
13630 (ravenscar_thread_target::get_ada_task_ptid): Update.
13631 (_initialize_ravenscar): Don't initialize base_ptid.
13632 (ravenscar_ops): Remove global.
13634 2019-02-15 Tom Tromey <tromey@adacore.com>
13636 * target.h (push_target): Declare new overload.
13637 * target.c (push_target): New overload, taking an rvalue reference.
13638 * remote.c (remote_target::open_1): Use push_target overload.
13639 * corelow.c (core_target_open): Use push_target overload.
13641 2019-02-15 Tom Tromey <tromey@adacore.com>
13643 * ravenscar-thread.c (is_ravenscar_task)
13644 (ravenscar_task_is_currently_active): Return bool.
13645 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13646 (_initialize_ravenscar): Remove "(void)".
13647 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13650 2019-02-15 Tom Tromey <tromey@adacore.com>
13652 * ravenscar-thread.c (ravenscar_runtime_initializer)
13653 (has_ravenscar_runtime, get_running_thread_id)
13654 (ravenscar_thread_target::resume): Fix indentation.
13656 2019-02-15 Tom Tromey <tromey@adacore.com>
13658 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13659 from ravenscar_arch_ops.
13660 (sparc_ravenscar_ops::fetch_registers)
13661 (sparc_ravenscar_ops::store_registers): Now methods.
13662 (sparc_ravenscar_prepare_to_store): Remove.
13663 (sparc_ravenscar_ops): Redefine.
13664 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13665 methods and destructor. Remove members.
13666 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13667 (ravenscar_thread_target::store_registers)
13668 (ravenscar_thread_target::prepare_to_store): Update.
13669 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13671 (struct ppc_ravenscar_powerpc_ops): Derive from
13672 ravenscar_arch_ops.
13673 (ppc_ravenscar_powerpc_ops::fetch_registers)
13674 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13675 (ppc_ravenscar_powerpc_ops): Redefine.
13676 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13677 (ppc_ravenscar_e500_ops::fetch_registers)
13678 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13679 (ppc_ravenscar_e500_ops): Redefine.
13680 * aarch64-ravenscar-thread.c
13681 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13682 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13683 (aarch64_ravenscar_fetch_registers)
13684 (aarch64_ravenscar_store_registers): Now methods.
13685 (aarch64_ravenscar_ops): Redefine.
13687 2019-02-15 Tom Tromey <tromey@adacore.com>
13689 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13690 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13691 (ravenscar_thread_target::stopped_by_watchpoint)
13692 (ravenscar_thread_target::stopped_data_address)
13693 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13695 2019-02-15 Tom Tromey <tromey@adacore.com>
13697 * ravenscar-thread.c: Fix some typos.
13699 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13700 Tom Tromey <tromey@adacore.com>
13702 * ada-lang.c (ada_exception_sal): Change addr_string to a
13704 (create_ada_exception_catchpoint): Update.
13706 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13707 Tom Tromey <tromey@adacore.com>
13709 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13710 (bp_location_ops): Remove.
13711 (base_breakpoint_allocate_location): Update.
13712 (free_bp_location): Update.
13713 * ada-lang.c (class ada_catchpoint_location)
13714 <ada_catchpoint_location>: Remove ops parameter.
13715 (ada_catchpoint_location_dtor): Remove.
13716 (ada_catchpoint_location_ops): Remove.
13717 (allocate_location_exception): Update.
13718 * breakpoint.h (struct bp_location_ops): Remove.
13719 (class bp_location) <bp_location>: Remove bp_location_ops
13721 <~bp_location>: Add destructor.
13724 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13725 Pedro Alves <palves@redhat.com>
13727 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13730 2019-02-14 David Michael <fedora.dm0@gmail.com>
13731 Samuel Thibault <samuel.thibault@gnu.org>
13732 Thomas Schwinge <thomas@codesourcery.com>
13734 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13735 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13737 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13739 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13740 (check_empty): Use "const char *".
13742 * gnu-nat.c (gnu_nat_target::detach): Instead of
13743 'detach_inferior (pid)' call
13744 'detach_inferior (find_inferior_pid (pid))'.
13746 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13747 'nat/fork-inferior.o'.
13748 * gnu-nat.c: #include "nat/fork-inferior.h".
13750 * gnu-nat.c (gnu_nat_target::detach): Instead of
13751 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13752 * gnu-nat.h: #include "inf-child.h".
13753 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13754 'i386_gnu_nat_target::fetch_registers'.
13755 (gnu_store_registers): Rename/move to
13756 'i386_gnu_nat_target::store_registers'.
13758 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13759 * gnu-nat.h (mach_thread_info): New function.
13760 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13762 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13764 2019-02-14 Frederic Konrad <konrad@adacore.com>
13766 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13768 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13770 * windows-nat.c (windows_add_thread): Add new parameter
13771 "main_thread_p" with default value set to false. Update
13772 function documentation as well as all callers.
13773 (windows_delete_thread): Likewise.
13774 (fake_create_process): Update call to windows_add_thread.
13775 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13776 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13777 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13778 call to windows_delete_thread.
13780 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13782 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13784 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13786 * symfile.c (find_separate_debug_file): Use canonical path of
13787 sysroot with child_path instead of gdb_sysroot if it is valid.
13789 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13791 * symfile.c (find_separate_debug_file): Use child_path to
13792 determine if an object file is under a sysroot.
13794 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13796 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13797 unittests/child-path-selftests.c.
13798 * common/pathstuff.c (child_path): New function.
13799 * common/pathstuff.h (child_path): New prototype.
13800 * unittests/child-path-selftests.c: New file.
13802 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13804 * symfile.c (find_separate_debug_file): Look for separate debug
13805 files in debug directories under the sysroot.
13807 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13809 * symtab.h (struct minimal_symbol data_p): New const method.
13810 (struct minimal_symbol text_p): Likewise.
13811 * symtab.c (output_source_filename): Use file name style
13812 to print file name.
13813 (print_symbol_info): Likewise.
13814 (print_msymbol_info): Use address style to print addresses.
13815 Use function name style to print executable text symbols.
13816 (expand_symtab_containing_pc): Use data_p.
13817 (find_pc_sect_compunit_symtab): Likewise.
13819 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13821 * breakpoint.c (describe_other_breakpoints): Use address style
13822 to print addresses.
13823 (say_where): Likewise.
13825 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13827 * ada-typeprint.c (print_func_type): Print function name
13828 style to print function name.
13829 * c-typeprint.c (c_print_type_1): Likewise.
13831 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13833 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13836 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13838 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13841 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13843 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13844 TYPE_CODE_REF types.
13846 2019-02-08 Jim Wilson <jimw@sifive.com>
13848 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13849 (riscv_linux_fregset): New.
13850 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13852 2019-02-07 Tom Tromey <tom@tromey.com>
13854 * thread.c (thread_cancel_execution_command): Update.
13855 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13857 (struct thread_fsm_ops): Remove.
13858 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13859 (thread_fsm_should_stop, thread_fsm_return_value)
13860 (thread_fsm_set_finished, thread_fsm_finished_p)
13861 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13863 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13864 * infrun.c (clear_proceed_status_thread)
13865 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13866 (print_stop_event): Update.
13867 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13869 (step_command_fsm_ops): Remove.
13870 (new_step_command_fsm): Remove.
13872 (step_command_fsm::should_stop): Rename from
13873 step_command_fsm_should_stop.
13874 (step_command_fsm::clean_up): Rename from
13875 step_command_fsm_clean_up.
13876 (step_command_fsm::do_async_reply_reason): Rename from
13877 step_command_fsm_async_reply_reason.
13878 (struct until_next_fsm): Inherit from thread_fsm. Add
13880 (until_next_fsm_ops): Remove.
13881 (new_until_next_fsm): Remove.
13882 (until_next_fsm::should_stop): Rename from
13883 until_next_fsm_should_stop.
13884 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13885 (until_next_fsm::do_async_reply_reason): Rename from
13886 until_next_fsm_async_reply_reason.
13887 (struct finish_command_fsm): Inherit from thread_fsm. Add
13888 constructor. Change type of breakpoint.
13889 (finish_command_fsm_ops): Remove.
13890 (new_finish_command_fsm): Remove.
13891 (finish_command_fsm::should_stop): Rename from
13892 finish_command_fsm_should_stop.
13893 (finish_command_fsm::clean_up): Rename from
13894 finish_command_fsm_clean_up.
13895 (finish_command_fsm::return_value): Rename from
13896 finish_command_fsm_return_value.
13897 (finish_command_fsm::do_async_reply_reason): Rename from
13898 finish_command_fsm_async_reply_reason.
13899 (finish_command): Update.
13900 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13902 (call_thread_fsm_ops): Remove.
13903 (call_thread_fsm::call_thread_fsm): Rename from
13904 new_call_thread_fsm.
13905 (call_thread_fsm::should_stop): Rename from
13906 call_thread_fsm_should_stop.
13907 (call_thread_fsm::should_notify_stop): Rename from
13908 call_thread_fsm_should_notify_stop.
13909 (run_inferior_call, call_function_by_hand_dummy): Update.
13910 * cli/cli-interp.c (should_print_stop_to_console): Update.
13911 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13912 Add constructor. Change type of location_breakpoint,
13914 (until_break_fsm_ops): Remove.
13915 (new_until_break_fsm): Remove.
13916 (until_break_fsm::should_stop): Rename from
13917 until_break_fsm_should_stop.
13918 (until_break_fsm::clean_up): Rename from
13919 until_break_fsm_clean_up.
13920 (until_break_fsm::do_async_reply_reason): Rename from
13921 until_break_fsm_async_reply_reason.
13922 (until_break_command): Update.
13923 * thread-fsm.c: Remove.
13924 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13926 2019-02-07 Tom Tromey <tom@tromey.com>
13928 * yy-remap.h: Add include guard.
13929 * xtensa-tdep.h: Add include guard.
13930 * xcoffread.h: Rename include guard.
13931 * varobj-iter.h: Add include guard.
13932 * tui/tui.h: Rename include guard.
13933 * tui/tui-winsource.h: Rename include guard.
13934 * tui/tui-wingeneral.h: Rename include guard.
13935 * tui/tui-windata.h: Rename include guard.
13936 * tui/tui-win.h: Rename include guard.
13937 * tui/tui-stack.h: Rename include guard.
13938 * tui/tui-source.h: Rename include guard.
13939 * tui/tui-regs.h: Rename include guard.
13940 * tui/tui-out.h: Rename include guard.
13941 * tui/tui-layout.h: Rename include guard.
13942 * tui/tui-io.h: Rename include guard.
13943 * tui/tui-hooks.h: Rename include guard.
13944 * tui/tui-file.h: Rename include guard.
13945 * tui/tui-disasm.h: Rename include guard.
13946 * tui/tui-data.h: Rename include guard.
13947 * tui/tui-command.h: Rename include guard.
13948 * tic6x-tdep.h: Add include guard.
13949 * target/waitstatus.h: Rename include guard.
13950 * target/wait.h: Rename include guard.
13951 * target/target.h: Rename include guard.
13952 * target/resume.h: Rename include guard.
13953 * target-float.h: Rename include guard.
13954 * stabsread.h: Add include guard.
13955 * rs6000-tdep.h: Add include guard.
13956 * riscv-fbsd-tdep.h: Add include guard.
13957 * regformats/regdef.h: Rename include guard.
13958 * record.h: Rename include guard.
13959 * python/python.h: Rename include guard.
13960 * python/python-internal.h: Rename include guard.
13961 * python/py-stopevent.h: Rename include guard.
13962 * python/py-ref.h: Rename include guard.
13963 * python/py-record.h: Rename include guard.
13964 * python/py-record-full.h: Rename include guard.
13965 * python/py-record-btrace.h: Rename include guard.
13966 * python/py-instruction.h: Rename include guard.
13967 * python/py-events.h: Rename include guard.
13968 * python/py-event.h: Rename include guard.
13969 * procfs.h: Add include guard.
13970 * proc-utils.h: Add include guard.
13971 * p-lang.h: Add include guard.
13972 * or1k-tdep.h: Rename include guard.
13973 * observable.h: Rename include guard.
13974 * nto-tdep.h: Rename include guard.
13975 * nat/x86-linux.h: Rename include guard.
13976 * nat/x86-linux-dregs.h: Rename include guard.
13977 * nat/x86-gcc-cpuid.h: Add include guard.
13978 * nat/x86-dregs.h: Rename include guard.
13979 * nat/x86-cpuid.h: Rename include guard.
13980 * nat/ppc-linux.h: Rename include guard.
13981 * nat/mips-linux-watch.h: Rename include guard.
13982 * nat/linux-waitpid.h: Rename include guard.
13983 * nat/linux-ptrace.h: Rename include guard.
13984 * nat/linux-procfs.h: Rename include guard.
13985 * nat/linux-osdata.h: Rename include guard.
13986 * nat/linux-nat.h: Rename include guard.
13987 * nat/linux-namespaces.h: Rename include guard.
13988 * nat/linux-btrace.h: Rename include guard.
13989 * nat/glibc_thread_db.h: Rename include guard.
13990 * nat/gdb_thread_db.h: Rename include guard.
13991 * nat/gdb_ptrace.h: Rename include guard.
13992 * nat/fork-inferior.h: Rename include guard.
13993 * nat/amd64-linux-siginfo.h: Rename include guard.
13994 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13995 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13996 * nat/aarch64-linux.h: Rename include guard.
13997 * nat/aarch64-linux-hw-point.h: Rename include guard.
13998 * mn10300-tdep.h: Add include guard.
13999 * mips-linux-tdep.h: Add include guard.
14000 * mi/mi-parse.h: Rename include guard.
14001 * mi/mi-out.h: Rename include guard.
14002 * mi/mi-main.h: Rename include guard.
14003 * mi/mi-interp.h: Rename include guard.
14004 * mi/mi-getopt.h: Rename include guard.
14005 * mi/mi-console.h: Rename include guard.
14006 * mi/mi-common.h: Rename include guard.
14007 * mi/mi-cmds.h: Rename include guard.
14008 * mi/mi-cmd-break.h: Rename include guard.
14009 * m2-lang.h: Add include guard.
14010 * location.h: Rename include guard.
14011 * linux-record.h: Rename include guard.
14012 * linux-nat.h: Add include guard.
14013 * linux-fork.h: Add include guard.
14014 * i386-darwin-tdep.h: Rename include guard.
14015 * hppa-linux-offsets.h: Add include guard.
14016 * guile/guile.h: Rename include guard.
14017 * guile/guile-internal.h: Rename include guard.
14018 * gnu-nat.h: Rename include guard.
14019 * gdb-stabs.h: Rename include guard.
14020 * frv-tdep.h: Add include guard.
14021 * f-lang.h: Add include guard.
14022 * event-loop.h: Add include guard.
14023 * darwin-nat.h: Rename include guard.
14024 * cp-abi.h: Rename include guard.
14025 * config/sparc/nm-sol2.h: Rename include guard.
14026 * config/nm-nto.h: Rename include guard.
14027 * config/nm-linux.h: Add include guard.
14028 * config/i386/nm-i386gnu.h: Rename include guard.
14029 * config/djgpp/nl_types.h: Rename include guard.
14030 * config/djgpp/langinfo.h: Rename include guard.
14031 * compile/gcc-cp-plugin.h: Add include guard.
14032 * compile/gcc-c-plugin.h: Add include guard.
14033 * compile/compile.h: Rename include guard.
14034 * compile/compile-object-run.h: Rename include guard.
14035 * compile/compile-object-load.h: Rename include guard.
14036 * compile/compile-internal.h: Rename include guard.
14037 * compile/compile-cplus.h: Rename include guard.
14038 * compile/compile-c.h: Rename include guard.
14039 * common/xml-utils.h: Rename include guard.
14040 * common/x86-xstate.h: Rename include guard.
14041 * common/version.h: Rename include guard.
14042 * common/vec.h: Rename include guard.
14043 * common/tdesc.h: Rename include guard.
14044 * common/selftest.h: Rename include guard.
14045 * common/scoped_restore.h: Rename include guard.
14046 * common/scoped_mmap.h: Rename include guard.
14047 * common/scoped_fd.h: Rename include guard.
14048 * common/safe-iterator.h: Rename include guard.
14049 * common/run-time-clock.h: Rename include guard.
14050 * common/refcounted-object.h: Rename include guard.
14051 * common/queue.h: Rename include guard.
14052 * common/ptid.h: Rename include guard.
14053 * common/print-utils.h: Rename include guard.
14054 * common/preprocessor.h: Rename include guard.
14055 * common/pathstuff.h: Rename include guard.
14056 * common/observable.h: Rename include guard.
14057 * common/netstuff.h: Rename include guard.
14058 * common/job-control.h: Rename include guard.
14059 * common/host-defs.h: Rename include guard.
14060 * common/gdb_wait.h: Rename include guard.
14061 * common/gdb_vecs.h: Rename include guard.
14062 * common/gdb_unlinker.h: Rename include guard.
14063 * common/gdb_unique_ptr.h: Rename include guard.
14064 * common/gdb_tilde_expand.h: Rename include guard.
14065 * common/gdb_sys_time.h: Rename include guard.
14066 * common/gdb_string_view.h: Rename include guard.
14067 * common/gdb_splay_tree.h: Rename include guard.
14068 * common/gdb_setjmp.h: Rename include guard.
14069 * common/gdb_ref_ptr.h: Rename include guard.
14070 * common/gdb_optional.h: Rename include guard.
14071 * common/gdb_locale.h: Rename include guard.
14072 * common/gdb_assert.h: Rename include guard.
14073 * common/filtered-iterator.h: Rename include guard.
14074 * common/filestuff.h: Rename include guard.
14075 * common/fileio.h: Rename include guard.
14076 * common/environ.h: Rename include guard.
14077 * common/common-utils.h: Rename include guard.
14078 * common/common-types.h: Rename include guard.
14079 * common/common-regcache.h: Rename include guard.
14080 * common/common-inferior.h: Rename include guard.
14081 * common/common-gdbthread.h: Rename include guard.
14082 * common/common-exceptions.h: Rename include guard.
14083 * common/common-defs.h: Rename include guard.
14084 * common/common-debug.h: Rename include guard.
14085 * common/cleanups.h: Rename include guard.
14086 * common/buffer.h: Rename include guard.
14087 * common/btrace-common.h: Rename include guard.
14088 * common/break-common.h: Rename include guard.
14089 * cli/cli-utils.h: Rename include guard.
14090 * cli/cli-style.h: Rename include guard.
14091 * cli/cli-setshow.h: Rename include guard.
14092 * cli/cli-script.h: Rename include guard.
14093 * cli/cli-interp.h: Rename include guard.
14094 * cli/cli-decode.h: Rename include guard.
14095 * cli/cli-cmds.h: Rename include guard.
14096 * charset-list.h: Add include guard.
14097 * buildsym-legacy.h: Rename include guard.
14098 * bfin-tdep.h: Add include guard.
14099 * ax.h: Rename include guard.
14100 * arm-linux-tdep.h: Add include guard.
14101 * arm-fbsd-tdep.h: Add include guard.
14102 * arch/xtensa.h: Rename include guard.
14103 * arch/tic6x.h: Add include guard.
14104 * arch/i386.h: Add include guard.
14105 * arch/arm.h: Rename include guard.
14106 * arch/arm-linux.h: Rename include guard.
14107 * arch/arm-get-next-pcs.h: Rename include guard.
14108 * arch/amd64.h: Add include guard.
14109 * arch/aarch64-insn.h: Rename include guard.
14110 * arch-utils.h: Rename include guard.
14111 * annotate.h: Add include guard.
14112 * amd64-darwin-tdep.h: Rename include guard.
14113 * aarch64-linux-tdep.h: Add include guard.
14114 * aarch64-fbsd-tdep.h: Add include guard.
14115 * aarch32-linux-nat.h: Add include guard.
14117 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14119 * macrotab.c (macro_define_internal): New function that
14120 factorizes macro_define_object_internal and macro_define_function
14122 (macro_define_object_internal): Use macro_define_internal.
14123 (macro_define_function): Likewise.
14125 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14127 * macrocmd.c (extract_identifier): Return
14128 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14131 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14133 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14135 2019-02-05 Tom Tromey <tom@tromey.com>
14137 * target.c (target_stack::unpush): Move assertion earlier.
14139 2019-01-30 Tom Tromey <tom@tromey.com>
14142 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14143 (gdbpy_parse_and_eval): Likewise.
14144 * python/python-internal.h (gdbpy_allow_threads): New class.
14146 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14148 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14149 (aarch64_fbsd_fpregmap): Move earlier.
14150 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14151 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14152 instead of individual calls to trad_frame_set_reg_addr.
14153 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14155 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14156 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14157 instead of individual calls to trad_frame_set_reg_addr.
14159 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14161 * CONTRIBUTE: Replace contribution list with wiki link.
14163 2019-01-25 Tom Tromey <tom@tromey.com>
14165 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14167 2019-01-25 Tom Tromey <tom@tromey.com>
14169 * xtensa-linux-nat.c: Fix common/ includes.
14170 * xml-support.h: Fix common/ includes.
14171 * xml-support.c: Fix common/ includes.
14172 * x86-linux-nat.c: Fix common/ includes.
14173 * windows-nat.c: Fix common/ includes.
14174 * varobj.h: Fix common/ includes.
14175 * varobj.c: Fix common/ includes.
14176 * value.c: Fix common/ includes.
14177 * valops.c: Fix common/ includes.
14178 * utils.c: Fix common/ includes.
14179 * unittests/xml-utils-selftests.c: Fix common/ includes.
14180 * unittests/utils-selftests.c: Fix common/ includes.
14181 * unittests/unpack-selftests.c: Fix common/ includes.
14182 * unittests/tracepoint-selftests.c: Fix common/ includes.
14183 * unittests/style-selftests.c: Fix common/ includes.
14184 * unittests/string_view-selftests.c: Fix common/ includes.
14185 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14186 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14187 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14188 * unittests/rsp-low-selftests.c: Fix common/ includes.
14189 * unittests/parse-connection-spec-selftests.c: Fix common/
14191 * unittests/optional-selftests.c: Fix common/ includes.
14192 * unittests/offset-type-selftests.c: Fix common/ includes.
14193 * unittests/observable-selftests.c: Fix common/ includes.
14194 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14195 * unittests/memrange-selftests.c: Fix common/ includes.
14196 * unittests/memory-map-selftests.c: Fix common/ includes.
14197 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14198 * unittests/function-view-selftests.c: Fix common/ includes.
14199 * unittests/environ-selftests.c: Fix common/ includes.
14200 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14201 * unittests/common-utils-selftests.c: Fix common/ includes.
14202 * unittests/cli-utils-selftests.c: Fix common/ includes.
14203 * unittests/array-view-selftests.c: Fix common/ includes.
14204 * ui-file.c: Fix common/ includes.
14205 * tui/tui-io.c: Fix common/ includes.
14206 * tracepoint.h: Fix common/ includes.
14207 * tracepoint.c: Fix common/ includes.
14208 * tracefile-tfile.c: Fix common/ includes.
14209 * top.h: Fix common/ includes.
14210 * top.c: Fix common/ includes.
14211 * thread.c: Fix common/ includes.
14212 * target/waitstatus.h: Fix common/ includes.
14213 * target/waitstatus.c: Fix common/ includes.
14214 * target.h: Fix common/ includes.
14215 * target.c: Fix common/ includes.
14216 * target-memory.c: Fix common/ includes.
14217 * target-descriptions.c: Fix common/ includes.
14218 * symtab.h: Fix common/ includes.
14219 * symfile.c: Fix common/ includes.
14220 * stap-probe.c: Fix common/ includes.
14221 * spu-linux-nat.c: Fix common/ includes.
14222 * sparc-nat.c: Fix common/ includes.
14223 * source.c: Fix common/ includes.
14224 * solib.c: Fix common/ includes.
14225 * solib-target.c: Fix common/ includes.
14226 * ser-unix.c: Fix common/ includes.
14227 * ser-tcp.c: Fix common/ includes.
14228 * ser-pipe.c: Fix common/ includes.
14229 * ser-base.c: Fix common/ includes.
14230 * selftest-arch.c: Fix common/ includes.
14231 * s12z-tdep.c: Fix common/ includes.
14232 * rust-exp.y: Fix common/ includes.
14233 * rs6000-aix-tdep.c: Fix common/ includes.
14234 * riscv-tdep.c: Fix common/ includes.
14235 * remote.c: Fix common/ includes.
14236 * remote-notif.h: Fix common/ includes.
14237 * remote-fileio.h: Fix common/ includes.
14238 * remote-fileio.c: Fix common/ includes.
14239 * regcache.h: Fix common/ includes.
14240 * regcache.c: Fix common/ includes.
14241 * record-btrace.c: Fix common/ includes.
14242 * python/python.c: Fix common/ includes.
14243 * python/py-type.c: Fix common/ includes.
14244 * python/py-inferior.c: Fix common/ includes.
14245 * progspace.h: Fix common/ includes.
14246 * producer.c: Fix common/ includes.
14247 * procfs.c: Fix common/ includes.
14248 * proc-api.c: Fix common/ includes.
14249 * printcmd.c: Fix common/ includes.
14250 * ppc-linux-nat.c: Fix common/ includes.
14251 * parser-defs.h: Fix common/ includes.
14252 * osdata.c: Fix common/ includes.
14253 * obsd-nat.c: Fix common/ includes.
14254 * nat/x86-linux.c: Fix common/ includes.
14255 * nat/x86-linux-dregs.c: Fix common/ includes.
14256 * nat/x86-dregs.h: Fix common/ includes.
14257 * nat/x86-dregs.c: Fix common/ includes.
14258 * nat/ppc-linux.c: Fix common/ includes.
14259 * nat/mips-linux-watch.h: Fix common/ includes.
14260 * nat/mips-linux-watch.c: Fix common/ includes.
14261 * nat/linux-waitpid.c: Fix common/ includes.
14262 * nat/linux-ptrace.h: Fix common/ includes.
14263 * nat/linux-ptrace.c: Fix common/ includes.
14264 * nat/linux-procfs.c: Fix common/ includes.
14265 * nat/linux-personality.c: Fix common/ includes.
14266 * nat/linux-osdata.c: Fix common/ includes.
14267 * nat/linux-namespaces.c: Fix common/ includes.
14268 * nat/linux-btrace.h: Fix common/ includes.
14269 * nat/linux-btrace.c: Fix common/ includes.
14270 * nat/fork-inferior.c: Fix common/ includes.
14271 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14272 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14273 * nat/aarch64-linux.c: Fix common/ includes.
14274 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14275 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14276 * namespace.h: Fix common/ includes.
14277 * mips-linux-tdep.c: Fix common/ includes.
14278 * minsyms.c: Fix common/ includes.
14279 * mi/mi-parse.h: Fix common/ includes.
14280 * mi/mi-main.c: Fix common/ includes.
14281 * mi/mi-cmd-env.c: Fix common/ includes.
14282 * memrange.h: Fix common/ includes.
14283 * memattr.c: Fix common/ includes.
14284 * maint.h: Fix common/ includes.
14285 * maint.c: Fix common/ includes.
14286 * main.c: Fix common/ includes.
14287 * machoread.c: Fix common/ includes.
14288 * location.c: Fix common/ includes.
14289 * linux-thread-db.c: Fix common/ includes.
14290 * linux-nat.c: Fix common/ includes.
14291 * linux-fork.c: Fix common/ includes.
14292 * inline-frame.c: Fix common/ includes.
14293 * infrun.c: Fix common/ includes.
14294 * inflow.c: Fix common/ includes.
14295 * inferior.h: Fix common/ includes.
14296 * inferior.c: Fix common/ includes.
14297 * infcmd.c: Fix common/ includes.
14298 * inf-ptrace.c: Fix common/ includes.
14299 * inf-child.c: Fix common/ includes.
14300 * ia64-linux-nat.c: Fix common/ includes.
14301 * i387-tdep.c: Fix common/ includes.
14302 * i386-tdep.c: Fix common/ includes.
14303 * i386-linux-tdep.c: Fix common/ includes.
14304 * i386-linux-nat.c: Fix common/ includes.
14305 * i386-go32-tdep.c: Fix common/ includes.
14306 * i386-fbsd-tdep.c: Fix common/ includes.
14307 * i386-fbsd-nat.c: Fix common/ includes.
14308 * guile/scm-type.c: Fix common/ includes.
14309 * guile/guile.c: Fix common/ includes.
14310 * go32-nat.c: Fix common/ includes.
14311 * gnu-nat.c: Fix common/ includes.
14312 * gdbthread.h: Fix common/ includes.
14313 * gdbarch-selftests.c: Fix common/ includes.
14314 * gdb_usleep.c: Fix common/ includes.
14315 * gdb_select.h: Fix common/ includes.
14316 * gdb_bfd.c: Fix common/ includes.
14317 * gcore.c: Fix common/ includes.
14318 * fork-child.c: Fix common/ includes.
14319 * findvar.c: Fix common/ includes.
14320 * fbsd-nat.c: Fix common/ includes.
14321 * event-top.c: Fix common/ includes.
14322 * event-loop.c: Fix common/ includes.
14323 * dwarf2read.c: Fix common/ includes.
14324 * dwarf2loc.c: Fix common/ includes.
14325 * dwarf2-frame.c: Fix common/ includes.
14326 * dwarf-index-cache.c: Fix common/ includes.
14327 * dtrace-probe.c: Fix common/ includes.
14328 * disasm-selftests.c: Fix common/ includes.
14329 * defs.h: Fix common/ includes.
14330 * csky-tdep.c: Fix common/ includes.
14331 * cp-valprint.c: Fix common/ includes.
14332 * cp-support.h: Fix common/ includes.
14333 * cp-support.c: Fix common/ includes.
14334 * corelow.c: Fix common/ includes.
14335 * completer.h: Fix common/ includes.
14336 * completer.c: Fix common/ includes.
14337 * compile/compile.c: Fix common/ includes.
14338 * compile/compile-loc2c.c: Fix common/ includes.
14339 * compile/compile-cplus-types.c: Fix common/ includes.
14340 * compile/compile-cplus-symbols.c: Fix common/ includes.
14341 * command.h: Fix common/ includes.
14342 * cli/cli-dump.c: Fix common/ includes.
14343 * cli/cli-cmds.c: Fix common/ includes.
14344 * charset.c: Fix common/ includes.
14345 * build-id.c: Fix common/ includes.
14346 * btrace.h: Fix common/ includes.
14347 * btrace.c: Fix common/ includes.
14348 * breakpoint.h: Fix common/ includes.
14349 * breakpoint.c: Fix common/ includes.
14351 (enum agent_op): Fix common/ includes.
14352 * ax-general.c (struct aop_map): Fix common/ includes.
14353 * ax-gdb.c: Fix common/ includes.
14354 * auxv.c: Fix common/ includes.
14355 * auto-load.c: Fix common/ includes.
14356 * arm-tdep.c: Fix common/ includes.
14357 * arch/riscv.c: Fix common/ includes.
14358 * arch/ppc-linux-common.c: Fix common/ includes.
14359 * arch/i386.c: Fix common/ includes.
14360 * arch/arm.c: Fix common/ includes.
14361 * arch/arm-linux.c: Fix common/ includes.
14362 * arch/arm-get-next-pcs.c: Fix common/ includes.
14363 * arch/amd64.c: Fix common/ includes.
14364 * arch/aarch64.c: Fix common/ includes.
14365 * arch/aarch64-insn.c: Fix common/ includes.
14366 * arch-utils.c: Fix common/ includes.
14367 * amd64-windows-tdep.c: Fix common/ includes.
14368 * amd64-tdep.c: Fix common/ includes.
14369 * amd64-sol2-tdep.c: Fix common/ includes.
14370 * amd64-obsd-tdep.c: Fix common/ includes.
14371 * amd64-nbsd-tdep.c: Fix common/ includes.
14372 * amd64-linux-tdep.c: Fix common/ includes.
14373 * amd64-linux-nat.c: Fix common/ includes.
14374 * amd64-fbsd-tdep.c: Fix common/ includes.
14375 * amd64-fbsd-nat.c: Fix common/ includes.
14376 * amd64-dicos-tdep.c: Fix common/ includes.
14377 * amd64-darwin-tdep.c: Fix common/ includes.
14378 * agent.c: Fix common/ includes.
14379 * ada-lang.h: Fix common/ includes.
14380 * ada-lang.c: Fix common/ includes.
14381 * aarch64-tdep.c: Fix common/ includes.
14383 2019-01-25 Tom Tromey <tom@tromey.com>
14385 * common/create-version.sh: Use common/version.h.
14387 2019-01-24 Pedro Alves <palves@redhat.com>
14389 * infrun.c (signal_stop, signal_print, signal_program)
14390 (signal_catch, signal_pass): Now arrays instead of pointers.
14391 (update_signals_program_target, do_target_resume)
14392 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14393 * linux-nat.c (linux_nat_target::pass_signals)
14394 (linux_nat_target::create_inferior, linux_nat_target::attach):
14396 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14397 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14398 * procfs.c (procfs_target::pass_signals): Adjust.
14399 * record-full.c (record_full_target::resume): Adjust.
14400 * remote.c (remote_target::pass_signals)
14401 (remote_target::program_signals): Adjust.
14402 * target-debug.h (target_debug_print_signals): Now takes a
14403 gdb::array_view as parameter. Adjust.
14404 * target.h (target_ops) <pass_signals, program_signals>: Replace
14405 pointer and length parameters with gdb::array_view.
14406 (target_pass_signals, target_program_signals): Likewise.
14407 * target-delegates.c: Regenerate.
14409 2019-01-24 Pedro Alves <palves@redhat.com>
14411 * common/forward-scope-exit.h
14412 (forward_scope_exit::forward_scope_exit): Pass arguments to
14413 m_bind_function directly, instead of creating a std::bind and
14416 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14418 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14419 for static members.
14420 (pass_in_v_vfp_candidate): Likewise.
14422 2019-01-23 Tom Tromey <tom@tromey.com>
14423 Pedro Alves <palves@redhat.com>
14425 * regcache.c (class regcache_invalidator): Remove.
14426 (regcache::raw_write): Use make_scope_exit.
14428 2019-01-23 Tom Tromey <tom@tromey.com>
14430 * ui-out.h (class ui_out_emit_type): Update comment.
14432 2019-01-23 Tom Tromey <tom@tromey.com>
14434 * infrun.c (fetch_inferior_event): Update comment.
14436 2019-01-23 Tom Tromey <tom@tromey.com>
14437 Pedro Alves <palves@redhat.com>
14439 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14441 (fetch_inferior_event): Use SCOPE_EXIT.
14444 2019-01-23 Tom Tromey <tom@tromey.com>
14445 Pedro Alves <palves@redhat.com>
14447 * infrun.c (disable_thread_events): Delete.
14448 (stop_all_threads): Use SCOPE_EXIT.
14450 2019-01-23 Tom Tromey <tom@tromey.com>
14451 Pedro Alves <palves@redhat.com>
14453 * symfile.c: Include forward-scope-exit.h.
14454 (clear_symtab_users_cleanup): Replace forward declaration with
14455 a FORWARD_SCOPE_EXIT.
14456 (syms_from_objfile_1): Use the forward_scope_exit and
14457 gdb::optional instead of cleanup_function.
14458 (reread_symbols): Use the forward_scope_exit instead of
14460 (clear_symtab_users_cleanup): Remove function.
14462 2019-01-23 Tom Tromey <tom@tromey.com>
14463 Pedro Alves <palves@redhat.com>
14465 * linux-nat.c: Include scope-exit.h.
14466 (cleanup_target_stop): Remove.
14467 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14470 2019-01-23 Tom Tromey <tom@tromey.com>
14471 Pedro Alves <palves@redhat.com>
14473 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14474 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14476 2019-01-23 Tom Tromey <tom@tromey.com>
14477 Andrew Burgess <andrew.burgess@embecosm.com>
14478 Pedro Alves <palves@redhat.com>
14480 * infrun.c (fetch_inferior_event): Use scope_exit.
14481 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14482 * top.c (execute_command): Use scope_exit.
14483 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14484 * utils.c (do_bpstat_clear_actions_cleanup)
14485 (make_bpstat_clear_actions_cleanup): Remove.
14487 2019-01-23 Tom Tromey <tom@tromey.com>
14488 Pedro Alves <palves@redhat.com>
14490 * infrun.c: Include "common/scope-exit.h"
14491 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14492 (wait_for_inferior): Use SCOPE_EXIT.
14493 (fetch_inferior_event): Use scope_exit.
14495 2019-01-23 Tom Tromey <tom@tromey.com>
14496 Pedro Alves <palves@redhat.com>
14498 * breakpoint.c (create_breakpoint): Remove cleanup.
14500 2019-01-23 Tom Tromey <tom@tromey.com>
14501 Andrew Burgess <andrew.burgess@embecosm.com>
14502 Pedro Alves <palves@redhat.com>
14504 2019-01-23 Pedro Alves <palves@redhat.com>
14506 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14508 2019-01-23 Pedro Alves <palves@redhat.com>
14509 Andrew Burgess <andrew.burgess@embecosm.com>
14511 * gdbthread.h: Include "common/forward-scope-exit.h".
14512 (scoped_finish_thread_state): Redefine custom class in terms of
14513 forward_scope_exit.
14515 2019-01-23 Pedro Alves <palves@redhat.com>
14516 Andrew Burgess <andrew.burgess@embecosm.com>
14518 * common/forward-scope-exit.h: New file.
14520 2019-01-23 Pedro Alves <palves@redhat.com>
14521 Andrew Burgess <andrew.burgess@embecosm.com>
14522 Tom Tromey <tom@tromey.com>
14524 * common/scope-exit.h: New file.
14526 2019-01-23 Pedro Alves <palves@redhat.com>
14528 * common/preprocessor.h (ESC): Rename to ...
14529 (ESC_PARENS): ... this.
14530 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14531 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14533 2019-01-23 Tom Tromey <tom@tromey.com>
14535 * language.h (class scoped_switch_to_sym_language_if_auto):
14536 Initialize m_lang in both cases.
14538 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14540 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14543 2019-01-22 Tom Tromey <tom@tromey.com>
14545 * corelow.c: Do not include sys/file.h.
14547 2019-01-22 Tom Tromey <tom@tromey.com>
14549 * tui/tui-wingeneral.h: Include gdb_curses.h.
14551 2019-01-22 Tom Tromey <tom@tromey.com>
14553 * source-cache.h (class source_cache) <get_source_lines,
14554 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14556 2019-01-22 Tom Tromey <tom@tromey.com>
14558 * remote-fileio.h (struct remote_target): Declare.
14560 2019-01-22 Tom Tromey <tom@tromey.com>
14562 * python/py-arch.c: Do not include py-ref.h.
14563 * python/py-bpevent.c: Do not include py-ref.h.
14564 * python/py-cmd.c: Do not include py-ref.h.
14565 * python/py-continueevent.c: Do not include py-ref.h.
14566 * python/py-event.h: Do not include py-ref.h.
14567 * python/py-evtregistry.c: Do not include py-ref.h.
14568 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14569 * python/py-frame.c: Do not include py-ref.h.
14570 * python/py-framefilter.c: Do not include py-ref.h.
14571 * python/py-function.c: Do not include py-ref.h.
14572 * python/py-infevents.c: Do not include py-ref.h.
14573 * python/py-linetable.c: Do not include py-ref.h.
14574 * python/py-objfile.c: Do not include py-ref.h.
14575 * python/py-param.c: Do not include py-ref.h.
14576 * python/py-prettyprint.c: Do not include py-ref.h.
14577 * python/py-progspace.c: Do not include py-ref.h.
14578 * python/py-symbol.c: Do not include py-ref.h.
14579 * python/py-symtab.c: Do not include py-ref.h.
14580 * python/py-type.c: Do not include py-ref.h.
14581 * python/py-unwind.c: Do not include py-ref.h.
14582 * python/py-utils.c: Do not include py-ref.h.
14583 * python/py-value.c: Do not include py-ref.h.
14584 * python/py-varobj.c: Do not include py-ref.h.
14585 * python/py-xmethods.c: Do not include py-ref.h.
14586 * python/python.c: Do not include py-ref.h.
14587 * varobj.c: Do not include py-ref.h.
14589 2019-01-22 Tom Tromey <tom@tromey.com>
14591 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14592 keyword for bcache.
14594 2019-01-22 Tom Tromey <tom@tromey.com>
14596 * compile/compile-cplus-types.c: Remove a comment by #include.
14598 2019-01-22 Tom Tromey <tom@tromey.com>
14600 * compile/gcc-c-plugin.h: Include compile-internal.h.
14602 2019-01-22 Tom Tromey <tom@tromey.com>
14604 * stabsread.c (EXTERN): Do not define.
14605 (symnum, next_symbol_text_func, processing_gcc_compilation)
14606 (within_function, global_sym_chain, global_stabs)
14607 (previous_stab_code, this_object_header_files)
14608 (n_this_object_header_files)
14609 (n_allocated_this_object_header_files): Define.
14610 * stabsread.h (EXTERN): Never define. Use "extern".
14612 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14614 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14617 2019-01-21 Tom Tromey <tom@tromey.com>
14619 * ui-out.c: Fix includes.
14620 * tui/tui-source.c: Fix includes.
14621 * target.c: Fix includes.
14622 * remote.c: Fix includes.
14623 * regcache.c: Fix includes.
14624 * python/py-block.c: Fix includes.
14625 * printcmd.c: Fix includes.
14626 * or1k-tdep.c: Fix includes.
14627 * mi/mi-main.c: Fix includes.
14628 * m32r-tdep.c: Fix includes.
14629 * csky-tdep.c: Fix includes.
14630 * compile/compile-cplus-types.c: Fix includes.
14631 * cli/cli-interp.c: Fix includes.
14633 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14635 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14638 2019-01-16 Tom Tromey <tom@tromey.com>
14640 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14642 (struct objfile) <msymbols_range>: Move from top level.
14643 <msymbols>: New method.
14644 (class objfile_msymbols): Remove.
14645 * symtab.c (default_collect_symbol_completion_matches_break_on):
14647 * symmisc.c (dump_msymbols): Update.
14648 * stabsread.c (scan_file_globals): Update.
14649 * objc-lang.c (info_selectors_command, info_classes_command)
14650 (find_methods): Update.
14651 * minsyms.c (find_solib_trampoline_target): Update.
14652 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14653 * coffread.c (coff_symfile_read): Update.
14654 * ada-lang.c (ada_lookup_simple_minsym)
14655 (ada_collect_symbol_completion_matches): Update.
14657 2019-01-16 Tom Tromey <tom@tromey.com>
14659 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14660 type. Remove no-argument constructor.
14661 <iterator::operator++>: Simplify.
14663 <end>: Use minimal_symbol_count.
14665 2019-01-16 Tom Tromey <tom@tromey.com>
14667 * objfiles.h (struct objfile) <psymtabs>: New method.
14668 (class objfile_psymtabs): Remove.
14669 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14671 <range>: New method.
14672 (require_partial_symbols): Change return type.
14673 * psymtab.c (require_partial_symbols)
14674 (psym_expand_symtabs_matching): Update.
14675 * mdebugread.c (parse_partial_symbols): Update.
14676 * dbxread.c (dbx_end_psymtab): Update.
14678 2019-01-15 Tom Tromey <tom@tromey.com>
14680 * symtab.c (lookup_objfile_from_block)
14681 (lookup_symbol_in_objfile_symtabs)
14682 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14683 (find_line_symtab, info_sources_command)
14684 (default_collect_symbol_completion_matches_break_on)
14685 (make_source_files_completion_list): Update.
14686 * symmisc.c (print_objfile_statistics, dump_objfile)
14687 (maintenance_print_symbols, maintenance_info_symtabs)
14688 (maintenance_check_symtabs, maintenance_info_line_tables):
14690 * source.c (select_source_symtab)
14691 (forget_cached_source_info_for_objfile): Update.
14692 * objfiles.h (class objfile_compunits): Remove.
14693 (struct objfile) <compunits_range>: New typedef.
14694 (compunits): New method.
14695 * objfiles.c (objfile_relocate1): Update.
14696 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14697 * maint.c (count_symtabs_and_blocks): Update.
14698 * linespec.c (iterate_over_all_matching_symtabs): Update.
14699 * cp-support.c (add_symbol_overload_list_qualified): Update.
14700 * coffread.c (coff_symtab_read): Update.
14701 * ada-lang.c (add_nonlocal_symbols)
14702 (ada_collect_symbol_completion_matches)
14703 (ada_add_global_exceptions): Update.
14705 2019-01-15 Tom Tromey <tom@tromey.com>
14707 * progspace.h (program_space) <objfiles_safe_range>: New
14709 <objfiles_safe>: New method.
14710 * objfiles.h (class all_objfiles_safe): Remove.
14711 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14712 * jit.c (jit_inferior_exit_hook): Update.
14714 2019-01-17 Tom Tromey <tom@tromey.com>
14716 * progspace.h (program_space) <objfiles_range>: New typedef.
14717 <objfiles>: New method.
14718 <objfiles_head>: Rename from objfiles.
14719 (object_files): Update.
14720 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14721 * guile/scm-pretty-print.c
14722 (ppscm_find_pretty_printer_from_objfiles): Update.
14723 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14724 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14726 * python/py-progspace.c (pspy_get_objfiles): Update.
14727 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14729 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14730 (objfpy_lookup_objfile_by_build_id): Update.
14731 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14732 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14734 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14735 (expand_symtab_containing_pc, lookup_objfile_from_block)
14736 (lookup_static_symbol, basic_lookup_transparent_type)
14737 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14738 (find_line_symtab, info_sources_command)
14739 (default_collect_symbol_completion_matches_break_on)
14740 (make_source_files_completion_list, find_main_name): Update.
14741 * symmisc.c (print_symbol_bcache_statistics)
14742 (print_objfile_statistics, maintenance_print_symbols)
14743 (maintenance_print_msymbols, maintenance_print_objfiles)
14744 (maintenance_info_symtabs, maintenance_check_symtabs)
14745 (maintenance_expand_symtabs, maintenance_info_line_tables):
14747 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14748 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14749 (map_overlay_command, unmap_overlay_command)
14750 (simple_overlay_update, expand_symtabs_matching)
14751 (map_symbol_filenames): Update.
14752 * symfile-debug.c (set_debug_symfile): Update.
14753 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14755 * source.c (select_source_symtab, forget_cached_source_info):
14757 * solib.c (solib_read_symbols): Update.
14758 * solib-spu.c (append_ocl_sos): Update.
14759 * psymtab.c (maintenance_print_psymbols)
14760 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14761 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14762 * printcmd.c (info_symbol_command): Update.
14763 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14765 * objfiles.h (class all_objfiles): Remove.
14766 * objfiles.c (have_partial_symbols, have_full_symbols)
14767 (have_minimal_symbols, qsort_cmp, update_section_map)
14768 (shared_objfile_contains_address_p)
14769 (default_iterate_over_objfiles_in_search_order): Update.
14770 * objc-lang.c (info_selectors_command, info_classes_command)
14771 (find_methods): Update.
14772 * minsyms.c (find_solib_trampoline_target): Update.
14773 * maint.c (maintenance_info_sections)
14774 (maintenance_translate_address, count_symtabs_and_blocks):
14776 * main.c (captured_main_1): Update.
14777 * linux-thread-db.c (try_thread_db_load_from_pdir)
14778 (has_libpthread): Update.
14779 * linespec.c (iterate_over_all_matching_symtabs)
14780 (search_minsyms_for_name): Update.
14781 * jit.c (jit_find_objf_with_entry_addr): Update.
14782 * hppa-tdep.c (find_unwind_entry)
14783 (hppa_lookup_stub_minimal_symbol): Update.
14784 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14786 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14787 (elf_gnu_ifunc_resolve_by_got): Update.
14788 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14789 * dwarf-index-write.c (save_gdb_index_command): Update.
14790 * cp-support.c (add_symbol_overload_list_qualified): Update.
14791 * breakpoint.c (create_overlay_event_breakpoint)
14792 (create_longjmp_master_breakpoint)
14793 (create_std_terminate_master_breakpoint)
14794 (create_exception_master_breakpoint): Update.
14795 * blockframe.c (find_pc_partial_function): Update.
14796 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14797 (ada_collect_symbol_completion_matches)
14798 (ada_add_global_exceptions): Update.
14800 2019-01-17 Tom Tromey <tom@tromey.com>
14802 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14804 (solib_target_parse_libraries): Change return type.
14805 (library_list_start_segment, library_list_start_section)
14806 (library_list_end_library, library_list_start_library); Update.
14807 (solib_target_free_library_list): Remove.
14808 (solib_target_parse_libraries): Remove cleanup. Change return
14810 (solib_target_current_sos): Update.
14812 2019-01-17 Tom Tromey <tromey@bapiya>
14814 * valprint.c: Replace "the the" with "the".
14815 * symtab.c: Replace "the the" with "the".
14816 * solib.c: Replace "the the" with "the".
14817 * solib-dsbt.c: Replace "the the" with "the".
14818 * linespec.c: Replace "the the" with "the".
14819 * dwarf2loc.h: Replace "the the" with "the".
14820 * amd64-windows-tdep.c: Replace "the the" with "the".
14821 * aarch64-tdep.c: Replace "the the" with "the".
14823 2019-01-16 Keith Seitz <keiths@redhat.com>
14826 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14827 <builder>: Rename to ..
14828 <m_builder>: ... this and make private.
14829 (dwarf2_cu::get_builder): New method. Change all users of
14830 `builder' to use this method.
14831 (dwarf2_start_symtab): Move to ...
14832 (dwarf2_cu::start_symtab): ... here. Update all callers
14833 (setup_type_unit_groups): Move to ...
14834 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14836 (dwarf2_cu::reset_builder): New method.
14837 (process_full_compunit, process_full_type_unit): Use
14838 dwarf2_cu::reset_builder.
14839 (follow_die_offset): Record the ancestor CU if it is different
14840 from the followed DIE's CU.
14841 (follow_die_sig_1): Likewise.
14843 2019-01-15 Tom Tromey <tom@tromey.com>
14845 * remote.c (class remote_state) <buf>: Now a char_vector.
14846 <buf_size>: Remove.
14847 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14849 (remote_target::getpkt_or_notif_sane_1)
14850 (remote_target::getpkt_sane)
14851 (remote_target::getpkt_or_notif_sane): Likewise.
14852 (class remote_target) <putpkt>: New overload.
14853 (remote_target::read_frame): Change type of "buf_p". Remove
14854 sizeof_p parameter.
14855 (packet_ok): New overload.
14856 (packet_check_result): New overload.
14859 2019-01-14 Tom Tromey <tom@tromey.com>
14861 * remote-notif.c (handle_notification, remote_notif_ack)
14862 (remote_notif_parse): Make "buf" const.
14863 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14865 (remote_notif_parse, remote_notif_ack, handle_notification):
14867 * remote.c (remote_notif_stop_parse): Make "buf" const.
14868 (remote_target::remote_parse_stop_reply): Make "buf" const.
14869 (remote_notif_stop_ack): Make "buf" const.
14871 2019-01-14 Tom Tromey <tom@tromey.com>
14873 * remote.c (remote_console_output): Make parameter const.
14875 2019-01-14 Tom Tromey <tom@tromey.com>
14877 * target-debug.h (target_debug_print_signals): Constify.
14878 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14879 * procfs.c (procfs_target::pass_signals): Update.
14880 * linux-nat.c (linux_nat_target::pass_signals): Update.
14881 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14882 * target-delegates.c: Rebuild.
14883 * remote.c (remote_target::program_signals): Update.
14884 (remote_target::pass_signals): Update.
14885 * target.c (target_pass_signals): Constify argument.
14886 (target_program_signals): Likewise.
14887 * target.h (struct target_ops) <pass_signals, program_signals>:
14889 (target_pass_signals, target_program_signals): Constify argument.
14891 2019-01-14 Tom Tromey <tom@tromey.com>
14894 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14896 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14898 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14900 * rs6000-tdep.c: Include reggroups.h.
14901 (IS_V_ALIAS_PSEUDOREG): Define.
14902 (rs6000_register_name): Return names for the "vX" aliases.
14903 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14904 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14905 aliases. Call default_register_reggroup_p for all other
14907 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14909 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14910 Handle "vX" aliases.
14911 (v_alias_pseudo_register_collect): New function.
14912 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14913 (rs6000_gdbarch_init): Initialize "vX" aliases as
14914 pseudo-registers. Restore registration of
14915 rs6000_pseudo_register_reggroup_p with
14916 set_tdesc_pseudo_register_reggroup_p.
14918 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14920 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14921 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14922 set_gdbarch_num_pseudo_regs.
14924 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14926 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14927 Remove arg prefixname, add do_set and do_show.
14928 Add member functions set_list and show_list.
14929 * cli/cli-style.c (class cli_style_option): Update accordingly.
14930 (style_set_list): Move to file scope.
14931 (style_show_list): Likewise.
14932 (set_style): Call help_list.
14933 (show_style): Call cmd_show_list.
14934 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14935 Update to use the new macro.
14937 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14939 * ada-lang.c (_initialize_ada_language): Expand the help text
14940 for the "catch exception" command.
14942 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14944 * symtab.c (matching_obj_sections): Initialize obj,
14945 declare it closer to its usage.
14947 2019-01-10 Tom Tromey <tom@tromey.com>
14949 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14950 (basic_inf_threads_range): Remove.
14951 (inf_threads_range, inf_non_exited_threads_range)
14952 (safe_inf_threads_range): Use next_adapter.
14954 2019-01-10 Keith Seitz <keiths@redhat.com>
14958 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14959 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14961 2019-01-10 Keith Seitz <keiths@redhat.com>
14965 * dictionary.c (pending_to_vector): Remove.
14966 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14967 Remove _1 suffix, replacing functions of the same name. Update
14969 (dict_create_hashed, dict_create_hashed_expandable)
14970 (dict_create_linear, dict_create_linear_expandable, dict_free)
14971 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14972 Make functions static.
14974 2019-01-10 Keith Seitz <keiths@redhat.com>
14978 * dictionary.h (struct dictionary): Replace declaration with
14980 (dict_create_hashed, dict_create_hashed_expandable)
14981 (dict_create_linear, dict_create_linear_expandable)
14982 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14983 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14984 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14985 taking multidictionary argument.
14986 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14987 * block.h (struct block) <dict>: Change to multidictionary
14988 and rename `multidict'.
14989 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14990 symmisc.c: Update all dictionary references to multidictionary.
14992 2019-01-10 Keith Seitz <keiths@redhat.com>
14996 * dictionary.c: Include unordered_map.
14997 (pending_to_vector): New function.
14998 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14999 Rewrite the non-"_1" functions to take vector instead
15001 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15002 "new" _1 versions of the same name.
15003 (multidictionary): Define.
15004 (std::hash<enum language): New definition.
15005 (collate_pending_symbols_by_language, mdict_create_hashed)
15006 (mdict_create_hashed_expandable, mdict_create_linear)
15007 (mdict_create_linear_expandable, mdict_free)
15008 (find_language_dictionary, create_new_language_dictionary)
15009 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15010 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15011 (mdict_size, mdict_empty): New functions.
15012 * dictionary.h (mdict_iterator): Define.
15014 2019-01-10 Pedro Alves <palves@redhat.com>
15016 * breakpoint.c (read_uploaded_action)
15017 (create_tracepoint_from_upload): Adjust to use
15018 gdb::unique_xmalloc_ptr.
15019 * ctf.c (ctf_write_uploaded_tp):
15020 (SET_ARRAY_FIELD): Use emplace_back.
15021 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15022 * tracefile-tfile.c (tfile_write_uploaded_tp):
15023 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15024 gdb::unique_xmalloc_ptr.
15025 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15026 at_string, cond_string, cmd_strings>: Replace char pointers
15027 with gdb::unique_xmalloc_ptr.
15029 2019-01-10 Pedro Alves <palves@redhat.com>
15031 * solib-target.c (library_list_start_library): Don't xstrdup name.
15033 2019-01-10 Pedro Alves <palves@redhat.com>
15035 * mdebugread.c (parse_partial_symbols): Use
15036 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15038 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15040 * linux-fork.c (scoped_switch_fork_info)
15041 <~scoped_switch_fork_info>: Fix incorrect variable name.
15043 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15045 * linux-fork.c (scoped_switch_fork_info)
15046 <scoped_switch_fork_info>: Make explicit.
15047 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15049 2019-01-10 Tom Tromey <tom@tromey.com>
15051 * objfiles.h (objfile::reset_psymtabs): Update.
15052 * objfiles.c (objfile::objfile): Update.
15053 * psymtab.h (psymtab_storage::obstack): Update.
15054 (psymtab_storage::m_obstack): Use gdb::optional.
15055 (class psymtab_storage): Update comment. Remove objfile
15057 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15059 2019-01-10 Tom Tromey <tom@tromey.com>
15061 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15062 <free_psymtabs>: Now private.
15063 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15064 (allocate_psymtab): Use new method.
15066 2019-01-10 Tom Tromey <tom@tromey.com>
15068 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15069 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15070 * mdebugread.c (parse_partial_symbols): Use
15071 allocate_dependencies.
15072 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15073 allocate_dependencies.
15074 (process_psymtab_comp_unit_reader)
15075 (build_type_psymtab_dependencies): Likewise.
15076 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15078 2019-01-10 Tom Tromey <tom@tromey.com>
15080 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15081 PSYMBOL_SET_LANGUAGE.
15082 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15084 2019-01-10 Tom Tromey <tom@tromey.com>
15086 * psymtab.h (psymtab_storage::obstack): New method.
15087 <m_obstack>: Rename from obstack; now private.
15088 * psymtab.c (psymtab_storage): Update.
15089 * dwarf2read.c (create_addrmap_from_index)
15090 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15093 2019-01-10 Tom Tromey <tom@tromey.com>
15095 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15096 * objfiles.h (objfile::reset_psymtabs): New method.
15098 2019-01-10 Tom Tromey <tom@tromey.com>
15100 * symmisc.c (print_symbol_bcache_statistics): Update.
15101 (print_objfile_statistics): Update.
15102 * symfile.c (reread_symbols): Update.
15103 * psymtab.h (class psymtab_storage): New.
15104 * psymtab.c (psymtab_storage): New constructor.
15105 (~psymtab_storage): New destructor.
15106 (require_partial_symbols): Update.
15107 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15108 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15109 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15110 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15111 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15112 (start_psymtab_common, end_psymtab_common)
15113 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15114 (allocate_psymtab): Update.
15115 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15117 (dump_psymtab_addrmap, maintenance_print_psymbols)
15118 (maintenance_check_psymtabs): Update.
15119 (class objfile_psymtabs): Move to objfiles.h.
15120 * psympriv.h (discard_psymtab): Now inline.
15121 (psymtab_discarder::psymtab_discarder): Update.
15122 (psymtab_discarder::~psymtab_discarder): Update.
15123 (ALL_OBJFILE_PSYMTABS): Rewrite.
15124 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15125 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15127 <partial_symtabs>: New field.
15128 (class objfile_psymtabs): Move from psymtab.h. Update.
15129 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15131 (objfile::~objfile): Don't destroy psymbol_cache.
15132 * mdebugread.c (parse_partial_symbols): Update.
15133 * dwarf2read.c (create_addrmap_from_index)
15134 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15135 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15136 (add_partial_subprogram, dwarf2_ranges_read): Update.
15137 * dwarf-index-write.c (write_address_map)
15138 (write_one_signatured_type, recursively_write_psymbols)
15139 (class debug_names, class debug_names, write_psymtabs_to_index):
15142 2019-01-10 Tom Tromey <tom@tromey.com>
15144 * symtab.h (SYMBOL_SET_NAMES): Update.
15145 (symbol_set_names): Update.
15146 (MSYMBOL_SET_NAMES): Update.
15147 * symtab.c (symbol_set_names): Change argument to be an
15148 objfile_per_bfd_storage.
15149 * psymtab.c (add_psymbol_to_bcache): Update.
15150 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15152 2019-01-10 Tom Tromey <tom@tromey.com>
15154 * symtab.c (create_demangled_names_hash): Change argument to be an
15155 objfile_per_bfd_storage.
15156 (symbol_set_names): Update.
15158 2019-01-10 Tom Tromey <tom@tromey.com>
15160 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15162 * psymtab.c (init_psymbol_list): Do nothing if already called.
15163 * psympriv.h (init_psymbol_list): Add comment.
15164 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15166 * dbxread.c (dbx_symfile_read): Unconditionally call
15169 2019-01-10 Tom Tromey <tom@tromey.com>
15171 * xcoffread.c (scan_xcoff_symtab): Update.
15172 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15174 * mdebugread.c (parse_partial_symbols)
15175 (handle_psymbol_enumerators): Update.
15176 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15177 * dbxread.c (read_dbx_symtab): Update.
15178 * psympriv.h (psymbol_placement): New enum.
15179 (add_psymbol_to_list): Update.
15181 2019-01-10 Tom Tromey <tom@tromey.com>
15183 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15184 static_psymbols parameters.
15185 (scan_xcoff_symtab): Update.
15186 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15187 static_psymbols parameters.
15188 * psympriv.h (start_psymtab_common): Update.
15189 * mdebugread.c (parse_partial_symbols): Update.
15190 * dwarf2read.c (create_partial_symtab): Update.
15191 * dbxread.c (read_dbx_symtab): Update.
15192 (start_psymtab): Remove global_psymbols and static_psymbols
15195 2019-01-10 Tom Tromey <tom@tromey.com>
15197 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15198 * psymtab.c (allocate_psymtab): Add comment.
15199 * psympriv.h (allocate_psymtab): Add comment.
15200 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15202 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15204 2019-01-10 Tom Tromey <tom@tromey.com>
15206 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15208 * mipsread.c: Include mdebugread.h.
15209 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15211 * elfread.c: Include mdebugread.h.
15213 2019-01-09 Tom Tromey <tom@tromey.com>
15215 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15216 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15217 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15218 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15219 (psym_lookup_symbol, psym_find_last_source_symtab)
15220 (psym_forget_cached_source_info, psym_print_stats)
15221 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15222 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15223 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15224 (psym_find_compunit_symtab_by_address)
15225 (maintenance_print_psymbols, maintenance_info_psymtabs)
15226 (maintenance_check_psymtabs): Use ranged for.
15227 * psymtab.h (class objfile_psymtabs): New.
15228 (require_partial_symbols): Return objfile_psymtabs.
15229 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15231 2019-01-09 Tom Tromey <tom@tromey.com>
15233 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15234 (find_pc_mapped_section, list_overlays_command)
15235 (map_overlay_command, unmap_overlay_command)
15236 (simple_overlay_update): Use all_objfiles.
15237 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15238 * printcmd.c (info_symbol_command): Use all_objfiles.
15239 * objfiles.h (ALL_OBJSECTIONS): Remove.
15240 * maint.c (maintenance_translate_address): Use all_objfiles.
15241 * gcore.c (gcore_create_callback): Use all_objfiles.
15242 (objfile_find_memory_regions): Likewise.
15244 2019-01-09 Tom Tromey <tom@tromey.com>
15246 * symtab.c (find_line_symtab, info_sources_command)
15247 (make_source_files_completion_list): Use objfile_compunits.
15248 * source.c (select_source_symtab): Use objfile_compunits.
15249 * objfiles.h (struct objfile): Update comment.
15250 (ALL_OBJFILES): Remove.
15251 (ALL_FILETABS): Remove.
15252 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15255 2019-01-09 Tom Tromey <tom@tromey.com>
15257 * symmisc.c (print_objfile_statistics, dump_objfile)
15258 (maintenance_print_symbols): Use compunit_filetabs.
15259 * source.c (forget_cached_source_info_for_objfile): Use
15261 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15262 (ALL_FILETABS): Use compunit_filetabs.
15263 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15264 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15266 2019-01-09 Tom Tromey <tom@tromey.com>
15268 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15269 (compunit_filetabs): New.
15270 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15272 (info_sources_command, make_source_files_completion_list): Remove
15274 * symmisc.c (print_objfile_statistics, dump_objfile)
15275 (maintenance_print_symbols): Remove declaration.
15276 (maintenance_info_symtabs): Use compunit_filetabs.
15277 (maintenance_info_line_tables): Likewise.
15278 * source.c (select_source_symtab): Change local variable name.
15279 (forget_cached_source_info_for_objfile): Remove declaration.
15280 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15281 * objfiles.c (objfile_relocate1): Remove declaration.
15282 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15284 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15285 * coffread.c (coff_symtab_read): Remove declaration.
15286 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15289 2019-01-09 Tom Tromey <tom@tromey.com>
15291 * symtab.c (lookup_objfile_from_block)
15292 (find_pc_sect_compunit_symtab, search_symbols)
15293 (default_collect_symbol_completion_matches_break_on): Use
15295 * objfiles.h (ALL_COMPUNITS): Remove.
15296 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15297 * cp-support.c (add_symbol_overload_list_qualified): Use
15299 * ada-lang.c (ada_collect_symbol_completion_matches)
15300 (ada_add_global_exceptions): Use objfile_compunits.
15302 2019-01-09 Tom Tromey <tom@tromey.com>
15304 * source.c (select_source_symtab)
15305 (forget_cached_source_info_for_objfile): Remove declaration.
15306 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15308 * maint.c (count_symtabs_and_blocks): Remove declaration.
15309 * cp-support.c (add_symbol_overload_list_qualified): Remove
15311 * coffread.c (coff_symtab_read): Remove declaration.
15312 * symtab.c (lookup_symbol_in_objfile_symtabs)
15313 (basic_lookup_transparent_type_1): Use objfile_compunits.
15314 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15315 (info_sources_command, search_symbols)
15316 (default_collect_symbol_completion_matches_break_on)
15317 (make_source_files_completion_list): Remove declaration.
15318 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15319 (ada_collect_symbol_completion_matches)
15320 (ada_add_global_exceptions): Remove declaration.
15321 * linespec.c (iterate_over_all_matching_symtabs): Use
15323 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15324 (class objfile_compunits): New.
15325 (ALL_COMPUNITS): Use objfile_compunits.
15326 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15327 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15329 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15331 2019-01-09 Tom Tromey <tom@tromey.com>
15333 * symtab.c (search_symbols)
15334 (default_collect_symbol_completion_matches_break_on): Use
15336 * ada-lang.c (ada_lookup_simple_minsym)
15337 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15338 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15339 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15341 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15342 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15343 * objc-lang.c (find_methods): Use objfile_msymbols.
15344 (info_selectors_command, info_classes_command): Likewise.
15345 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15346 * objfiles.h (class objfile_msymbols): New.
15347 (ALL_OBJFILE_MSYMBOLS): Remove.
15348 (ALL_MSYMBOLS): Remove.
15350 2019-01-09 Tom Tromey <tom@tromey.com>
15352 * common/next-iterator.h (next_adapter): Add Iterator template
15354 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15355 (class all_objfiles_safe): New.
15356 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15357 * objfiles.c (put_objfile_before): Update comment.
15358 (add_separate_debug_objfile): Likewise.
15359 (free_all_objfiles): Use all_objfiles_safe.
15360 (objfile_purge_solibs): Likewise.
15362 2019-01-09 Tom Tromey <tom@tromey.com>
15364 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15365 (expand_symtab_containing_pc, lookup_static_symbol)
15366 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15367 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15369 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15370 * breakpoint.c (create_overlay_event_breakpoint)
15371 (create_longjmp_master_breakpoint)
15372 (create_std_terminate_master_breakpoint)
15373 (create_exception_master_breakpoint): Use all_objfiles.
15374 * linux-thread-db.c (try_thread_db_load_from_pdir)
15375 (has_libpthread): Use all_objfiles.
15376 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15377 * linespec.c (iterate_over_all_matching_symtabs)
15378 (search_minsyms_for_name): Use all_objfiles.
15379 * maint.c (maintenance_info_sections): Use all_objfiles.
15380 * main.c (captured_main_1): Use all_objfiles.
15381 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15382 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15383 * guile/scm-pretty-print.c
15384 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15385 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15386 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15387 (maintenance_print_msymbols): Use all_objfiles.
15388 * source.c (select_source_symtab): Use all_objfiles.
15389 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15390 * symfile.c (remove_symbol_file_command)
15391 (expand_symtabs_matching, map_symbol_filenames): Use
15393 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15395 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15396 * objc-lang.c (find_methods): Use all_objfiles.
15397 * objfiles.c (have_partial_symbols, have_full_symbols)
15398 (have_minimal_symbols, qsort_cmp)
15399 (default_iterate_over_objfiles_in_search_order): Use
15401 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15402 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15403 (maintenance_check_psymtabs): Use all_objfiles.
15404 (ALL_PSYMTABS): Remove.
15405 * compile/compile-object-run.c (do_module_cleanup): Use
15407 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15408 * cp-support.c (add_symbol_overload_list_qualified): Use
15410 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15412 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15413 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15415 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15416 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15417 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15419 * solib.c (solib_read_symbols): Use all_objfiles
15421 2019-01-09 Tom Tromey <tom@tromey.com>
15423 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15424 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15426 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15427 * symmisc.c (print_symbol_bcache_statistics)
15428 (print_objfile_statistics, maintenance_print_objfiles)
15429 (maintenance_info_symtabs, maintenance_check_symtabs)
15430 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15432 * source.c (forget_cached_source_info): Use all_objfiles.
15433 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15434 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15435 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15436 * objfiles.c (update_section_map): Use all_objfiles.
15437 (shared_objfile_contains_address_p): Likewise.
15438 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15439 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15441 2019-01-09 Tom Tromey <tom@tromey.com>
15443 * common/next-iterator.h: New file.
15444 * objfiles.h (class all_objfiles): New.
15445 (struct objfile_iterator): New.
15447 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15449 * NEWS: Move the description of the changed "frame", "select-frame",
15450 and "info frame" commands to the Changed commands section.
15452 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15454 * gdbtypes.c (check_stub_method_group): Remove handling of old
15456 * linespec.c (find_methods): Likewise.
15457 * stabsread.c (read_member_functions): Likewise.
15458 * valops.c (search_struct_method): Likewise.
15459 (value_struct_elt_for_reference): Likewise.
15460 * NEWS: Mention this change.
15462 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15464 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15465 print_source_lines.
15466 * source.c (print_source_lines_base): Update line number check.
15467 (print_source_lines): New function.
15468 (source_lines_range::source_lines_range): New function.
15469 * source.h (class source_lines_range): New class.
15470 (print_source_lines): New declaration.
15472 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15474 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15476 2019-01-08 Tom Tromey <tom@tromey.com>
15477 Simon Marchi <simon.marchi@ericsson.com>
15480 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15481 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15482 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15483 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15484 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15485 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15487 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15489 * source.c (select_source_symtab): Move header comment to
15490 declaration in source.h.
15491 (forget_cached_source_info_for_objfile): Likewise.
15492 (forget_cached_source_info): Likewise.
15493 (identify_source_line): Likewise.
15494 * source.h (identify_source_line): Move declaration from symtab.h
15495 and add comment from source.c
15496 (print_source_lines): Likewise.
15497 (forget_cached_source_info_for_objfile): Likewise.
15498 (forget_cached_source_info): Likewise.
15499 (select_source_symtab): Likewise.
15500 (enum print_source_lines_flag): Move definition from symtab.h.
15501 * symtab.h (identify_source_line): Move declaration to source.h.
15502 (print_source_lines): Likewise.
15503 (forget_cached_source_info_for_objfile): Likewise.
15504 (forget_cached_source_info): Likewise.
15505 (select_source_symtab): Likewise.
15506 (enum print_source_lines_flag): Move definition to source.h.
15507 * tui/tui-hooks.c: Add 'source.h' include.
15509 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15511 * source.c (print_source_lines_base): Handle requests to print
15512 reverse line number sequences, and guard against empty lines
15515 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15517 * source.c (print_source_lines_base): Fix skip of '\r' if next
15520 2019-01-06 Tom Tromey <tom@tromey.com>
15522 * c-exp.y (struct c_parse_state) <macro_original_text,
15523 expansion_obstack>: New member.
15524 (macro_original_text, expansion_obstack): Remove globals.
15525 (scan_macro_expansion, scanning_macro_expansion)
15526 (finished_macro_expansion): Update.
15527 (scan_macro_cleanup): Remove.
15528 (yylex, c_parse): Update.
15530 2019-01-06 Tom Tromey <tom@tromey.com>
15532 * c-exp.y (struct c_parse_state) <strings>: New member.
15533 (operator_stoken): Update.
15535 2019-01-06 Tom Tromey <tom@tromey.com>
15537 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15538 (union type_stack_elt) <typelist_val>: Now a pointer to
15540 (type_stack_cleanup): Don't declare.
15541 (push_typelist): Update.
15542 * parse.c (pop_typelist): Return a std::vector.
15543 (push_typelist): Take a std::vector.
15544 (follow_types): Update. Do not free args.
15545 (type_stack_cleanup): Remove.
15546 * c-exp.y (struct c_parse_state): New.
15547 (cpstate): New global.
15548 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15549 (nonempty_typelist): Update.
15550 (func_mod): Create a new vector.
15551 (c_parse): Create a c_parse_state.
15552 (check_parameter_typelist): Do not delete params.
15553 (function_method): Update. Do not delete type_list.
15555 2019-01-06 Tom Tromey <tom@tromey.com>
15558 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15560 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15561 (print_return_value): Likewise.
15563 2019-01-05 Tom Tromey <tom@tromey.com>
15565 * contrib/cleanup_check.py: Remove.
15566 * contrib/gcc-with-excheck: Remove.
15567 * contrib/exsummary.py: Remove.
15568 * contrib/excheck.py: Remove.
15570 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15572 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15573 NULL. Initialize tpprev to NULL instead of assigning it
15574 to NULL on the next statement.
15575 * windows-nat.c (windows_delete_thread): Remove check for
15576 main_thread_id before printing thread exit notifications.
15577 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15578 Remove thread ID check against main_thread_id.
15579 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15580 windows_delete_thread.
15581 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15583 2019-01-04 Tom Tromey <tom@tromey.com>
15585 * compile/compile.c (_initialize_compile): Use upper case for
15586 metasyntactic variables.
15587 * symmisc.c (_initialize_symmisc): Use upper case for
15588 metasyntactic variables.
15589 * psymtab.c (_initialize_psymtab): Use upper case for
15590 metasyntactic variables.
15591 * demangle.c (demangle_command): Use upper case for metasyntactic
15593 (_initialize_demangler): Likewise.
15594 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15597 2019-01-03 Tom Tromey <tom@tromey.com>
15599 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15601 2019-01-03 Tom Tromey <tom@tromey.com>
15603 * python/py-symtab.c (salpy_str): Update.
15604 (struct salpy_sal_object) <symtab>: Now a PyObject.
15605 (salpy_dealloc): Update.
15606 (del_objfile_sal): Use gdbpy_ref.
15608 2019-01-03 Tom Tromey <tom@tromey.com>
15610 * python/py-type.c (convert_field): Use new_reference. Return
15612 (make_fielditem): Return gdbpy_ref.
15613 (typy_fields): Update.
15614 (typy_getitem): Update.
15615 (field_name): Return gdbpy_ref. Use new_reference.
15616 (typy_iterator_iternext): Update.
15618 2019-01-03 Tom Tromey <tom@tromey.com>
15620 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15622 2019-01-03 Tom Tromey <tom@tromey.com>
15624 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15625 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15626 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15627 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15628 (pspy_set_type_printers): Likewise.
15629 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15630 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15631 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15632 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15633 (objfpy_set_type_printers): Likewise.
15635 2019-01-03 Tom Tromey <tom@tromey.com>
15637 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15638 (gdbpy_print_stack): Use gdbpy_err_fetch.
15639 * python/python-internal.h (class gdbpy_err_fetch): New class.
15640 (class gdbpy_enter) <m_error_type, m_error_value,
15641 m_error_traceback>: Remove.
15642 <m_error>: New member.
15643 (gdbpy_exception_to_string): Don't declare.
15644 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15645 * python/py-value.c (convert_value_from_python): Use
15647 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15648 gdbpy_exception_to_string.
15649 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15650 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15653 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15655 * linux-nat.c (delete_lwp_cleanup): Delete.
15656 (struct lwp_deleter): New struct.
15657 (lwp_info_up): New typedef.
15658 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15661 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15663 * linux-fork.c (class scoped_switch_fork_info): New class.
15664 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15666 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15668 * valops.c (find_overload_match): Remove use of null_cleanup, and
15669 calls to do_cleanups.
15671 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15673 * compile/compile-cplus-types.c
15674 (compile_cplus_instance::decl_name): Handle changes to
15676 * cp-support.c (cp_func_name): Update header comment, update
15678 * cp-support.h (cp_func_name): Update return type in declaration.
15679 * valops.c (find_overload_match): Move temp_func local to top
15680 level of function and change its type. Use temp_func to hold and
15681 delete temporary string obtained from cp_func_name.
15683 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15685 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15686 gdb::char_vector, remove cleanup, and update uses of `msg`.
15688 2019-01-03 Jim Wilson <jimw@sifive.com>
15690 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15692 2019-01-02 Tom Tromey <tom@tromey.com>
15694 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15695 (tdesc_parse_xml): Remove cleanups.
15696 * target-descriptions.h (make_cleanup_free_target_description):
15698 (target_desc_deleter): New struct.
15699 (target_desc_up): New typedef.
15700 * target-descriptions.c (target_desc_deleter::operator()): Rename
15701 from free_target_description.
15702 (make_cleanup_free_target_description): Remove.
15704 2019-01-02 Tom Tromey <tom@tromey.com>
15706 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15707 constructor, destructor.
15708 (linespec_parser): Remove typedef.
15709 (~linespec_parser): Rename from linespec_parser_delete.
15710 (linespec_lex_to_end, linespec_complete_label)
15711 (linespec_complete): Update.
15712 (decode_line_full): Remove cleanups.
15713 (decode_line_1): Update.
15715 2019-01-02 Tom Tromey <tom@tromey.com>
15717 * python/python-internal.h (inferior_to_inferior_object): Change
15719 * python/py-exitedevent.c (create_exited_event_object): Update.
15720 * python/py-inferior.c (inferior_to_inferior_object): Return
15722 (python_new_inferior, python_inferior_deleted)
15723 (thread_to_thread_object, delete_thread_object)
15724 (build_inferior_list, gdbpy_selected_inferior): Update.
15725 * python/py-infthread.c (create_thread_object): Update. Also fail
15726 if inferior_to_inferior_object fails.
15728 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15730 * inferior.h (class inferior) <displaced_step_state>: New field.
15731 * infrun.h (struct displaced_step_state): Move here from
15732 infrun.c. Initialize fields, add constructor.
15733 <inf>: Remove field.
15734 <reset>: New method.
15735 * infrun.c (struct displaced_step_inferior_state): Move to
15737 (displaced_step_inferior_states): Remove.
15738 (get_displaced_stepping_state): Adust.
15739 (displaced_step_in_progress_any_inferior): Adjust.
15740 (displaced_step_in_progress_thread): Adjust.
15741 (displaced_step_in_progress): Adjust.
15742 (add_displaced_stepping_state): Remove.
15743 (get_displaced_step_closure_by_addr): Adjust.
15744 (remove_displaced_stepping_state): Remove.
15745 (infrun_inferior_exit): Call displaced_step_state.reset.
15746 (use_displaced_stepping): Don't check for NULL.
15747 (displaced_step_prepare_throw): Call
15748 get_displaced_stepping_state.
15749 (displaced_step_fixup): Don't check for NULL.
15750 (prepare_for_detach): Don't check for NULL.
15752 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15754 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15755 in case of call that did not complete.
15757 2019-01-02 Andrey Utkin <autkin@undo.io>
15759 * symfile.c (find_separate_debug_file): Fix search of debug files for
15762 2019-01-02 Tom Tromey <tom@tromey.com>
15764 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15766 * python/py-frame.c (frapy_older): Remove cast.
15767 (frapy_newer): Likewise.
15768 * python/py-breakpoint.c (local_setattro): Remove cast.
15769 * python/py-arch.c (archpy_name): Remove local variable.
15770 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15772 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15774 * unittests/basic_string_view/element_access/char/empty.cc:
15775 Fix year range in copyright header.
15777 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15779 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15781 <operator==>: Update with for removed field.
15783 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15784 <isa_features>: ...this.
15785 <abi_features>: New field.
15786 (riscv_isa_flen): Update comment.
15787 (riscv_abi_xlen): New declaration.
15788 (riscv_abi_flen): New declaration.
15789 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15791 (riscv_abi_xlen): New function.
15792 (riscv_isa_flen): Update to get answer from isa_features.
15793 (riscv_abi_flen): New function.
15794 (riscv_has_fp_abi): Update to get answer from abi_features.
15795 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15797 (riscv_call_info) <xlen, flen>: Update comment.
15798 (riscv_call_arg_struct): Remove invalid assertions
15799 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15801 (riscv_gdbarch_init): Gather isa features and abi features
15802 separately, ensure both match on the gdbarch when reusing an old
15803 gdbarch. Relax an error check to allow 32-bit abi float to run on
15804 a target with 64-bit float hardware.
15806 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15808 * source.c (search_command_helper): Stop reverse search
15809 when line 1 has been searched.
15811 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15813 * record-full.c (record_full_base_target::close): Rewrite
15814 record_full_core_buf_list free logic.
15816 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15818 * break-catch-syscall.c (print_one_catch_syscall): xfree
15821 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15823 * top.c (print_gdb_version): Update Copyright year in version
15826 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15828 Update copyright year range in all GDB files.
15830 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15832 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15834 For older changes see ChangeLog-2018.
15840 version-control: never