1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
4 (cmdpy_init): Set "doc_allocated".
6 2019-11-26 Tom Tromey <tom@tromey.com>
8 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
10 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
12 * configure, config.in: Rebuild.
14 2019-11-26 Tom Tromey <tom@tromey.com>
16 * python/python.c (class gdbpy_gil): New.
17 (struct gdbpy_event): Add constructor, destructor, operator().
18 (gdbpy_post_event): Use run_on_main_thread.
19 (gdbpy_initialize_events): Remove.
20 (do_start_initialization): Update.
22 2019-11-26 Tom Tromey <tom@tromey.com>
25 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
26 commands. Call update_thread_pool_size.
27 (update_thread_pool_size, maintenance_set_worker_threads): New
29 (n_worker_threads): New global.
31 2019-11-26 Christian Biesinger <cbiesinger@google.com>
32 Tom Tromey <tom@tromey.com>
34 * minsyms.c (minimal_symbol_reader::install): Use
36 * gdbsupport/parallel-for.h: New file.
37 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
39 2019-11-26 Christian Biesinger <cbiesinger@google.com>
40 Tom Tromey <tom@tromey.com>
42 * gdbsupport/thread-pool.h: New file.
43 * gdbsupport/thread-pool.c: New file.
44 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
45 (HFILES_NO_SRCDIR): Add thread-pool.h.
47 2019-11-26 Tom Tromey <tom@tromey.com>
49 * event-top.h (thread_local_segv_handler): Declare.
50 * event-top.c (thread_local_segv_handler): New global.
51 (install_handle_sigsegv, handle_sigsegv): New functions.
52 (async_init_signals): Install SIGSEGV handler.
53 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
55 (report_failed_demangle): New function.
56 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
57 handler-setting code, instead use segv_handler. Run warning code
60 2019-11-26 Tom Tromey <tom@tromey.com>
62 * run-on-main-thread.c: New file.
63 * run-on-main-thread.h: New file.
64 * unittests/main-thread-selftests.c: New file.
65 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
66 main-thread-selftests.c.
67 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
68 (COMMON_SFILES): Add run-on-main-thread.c.
70 2019-11-26 Tom Tromey <tom@tromey.com>
72 * main.c (setup_alternate_signal_stack): Remove.
73 (captured_main_1): Use gdb::alternate_signal_stack.
74 * gdbsupport/alt-stack.h: New file.
76 2019-11-26 Tom Tromey <tom@tromey.com>
78 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
80 (save_original_signals_state, restore_original_signals_state): Use
82 * linux-nat.c (block_child_signals, restore_child_signals_mask)
83 (_initialize_linux_nat): Use gdb_sigmask.
84 * guile/guile.c (_initialize_guile): Use block_signals.
85 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
86 * gdbsupport/gdb-sigmask.h: New file.
87 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
88 * cp-support.c (gdb_demangle): Use gdb_sigmask.
89 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
91 * configure, config.in: Rebuild.
92 * gdbsupport/block-signals.h: New file.
94 2019-11-26 Tom Tromey <tom@tromey.com>
96 * acinclude.m4: Include ax_pthread.m4.
97 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
98 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
99 (CLIBS): Use PTHREAD_LIBS.
100 (aclocal_m4_deps): Add ax_pthread.m4.
101 * config.in, configure: Rebuild.
102 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
104 2019-11-26 Tom Tromey <tom@tromey.com>
106 * symtab.h (struct minimal_symbol) <name_set>: New member.
107 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
108 Don't call symbol_set_names.
109 (minimal_symbol_reader::install): Call symbol_set_names.
111 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
113 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
114 restore_active_ext_lang, as GIL is needed for (indirectly)
115 called PyOS_InterruptOccurred.
117 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
119 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
122 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
124 * remote-sim.c (simulator_command): Make static, remove
127 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
129 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
131 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
132 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
134 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
136 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
138 * unittests/basic_string_view/element_access/char/1.cc (test01):
141 * unittests/basic_string_view/element_access/char/empty.cc (main):
143 * unittests/basic_string_view/element_access/char/front_back.cc
146 * unittests/basic_string_view/inserters/char/2.cc (test05):
149 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
152 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
155 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
157 * unittests/basic_string_view/operations/compare/char/1.cc
160 * unittests/basic_string_view/operations/compare/char/13650.cc
162 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
165 * unittests/basic_string_view/operations/data/char/1.cc (test01):
168 * unittests/basic_string_view/operations/find/char/1.cc (test01):
171 * unittests/basic_string_view/operations/find/char/2.cc (test02):
174 * unittests/basic_string_view/operations/find/char/3.cc (test03):
177 * unittests/basic_string_view/operations/find/char/4.cc (main):
179 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
182 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
185 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
188 * unittests/basic_string_view/operations/substr/char/1.cc
191 * unittests/basic_string_view/operators/char/2.cc (main):
193 * unittests/optional/assignment/1.cc (test): Likewise.
194 * unittests/optional/assignment/2.cc (test): Likewise.
195 * unittests/optional/assignment/3.cc (test): Likewise.
196 * unittests/optional/assignment/4.cc (test): Likewise.
197 * unittests/optional/assignment/5.cc (test): Likewise.
198 * unittests/optional/assignment/6.cc (test): Likewise.
199 * unittests/optional/assignment/7.cc (test): Likewise.
200 * unittests/optional/cons/copy.cc (test): Likewise.
201 * unittests/optional/cons/default.cc (test): Likewise.
202 * unittests/optional/cons/move.cc (test): Likewise.
203 * unittests/optional/cons/value.cc (test): Likewise.
204 * unittests/optional/in_place.cc (test): Likewise.
205 * unittests/optional/observers/1.cc (test): Likewise.
206 * unittests/optional/observers/2.cc (test): Likewise.
208 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
210 * tui-win.h (tui_set_var_cmd): Remove.
211 * tui-win.c (tui_set_var_cmd): Make static.
213 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
215 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
216 rbreak_command_wrapper): Remove.
217 * symtab.c (rbreak_command_wrapper): Remove.
219 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
221 * inferior.h (info_terminal_command): Remove declaration.
222 * inflow.c (info_terminal_command): Make static.
224 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
226 * inferior.c (exit_inferior_silent): Remove.
228 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
230 * dictionary.c (dict_empty, mdict_empty): Remove.
231 * dictionary.c (mdict_empty): Remove.
233 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
235 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
236 (arc_insn_get_memory_offset): Likewise.
237 (arc_insn_dump): Likewise.
238 * cp-support.c (test_cp_symbol_name_matches): Likewise.
239 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
240 * dictionary.c (dict_iterator_next): Likewise.
241 (dict_iter_match_first): Likewise.
242 (dict_iter_match_next): Likewise.
243 * f-lang.c (evaluate_subexp_f): Likewise.
244 * hppa-tdep.c (hppa_read_pc): Likewise.
245 * i386-tdep.c (i386_floatformat_for_type): Likewise.
246 * parse.c (write_exp_elt_msym): Likewise.
247 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
248 * remote.c (remote_packet_size): Likewise.
249 (remote_notif_stop_parse): Likewise.
250 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
251 * s12z-tdep.c (s12z_disassemble_info): Likewise.
252 * source.c (prepare_path_for_appending): Likewise.
253 * sparc64-linux-tdep.c
254 (sparc64_linux_handle_segmentation_fault); Likewise.
255 * stack.c (frame_selection_by_function_completer): Likewise.
257 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
259 * completer.c (set_gdb_completion_word_break_characters):
262 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
264 * dwarf-index-write.c: Include dwarf-index-write.h.
265 * mi/mi-interp.c: Include mi/mi-interp.h.
267 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
269 * aarch32-tdep.c: Include aarch32-tdep.h.
270 * aarch32-tdep.h: Forward-declare struct target_desc.
272 2019-11-26 Christian Biesinger <cbiesinger@google.com>
274 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
276 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
277 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
279 2019-11-25 Tom de Vries <tdevries@suse.de>
281 * contrib/words.sh: Add -c option.
283 2019-11-25 Christian Biesinger <cbiesinger@google.com>
285 * solib.c (solib_find_1): Change int to bool.
286 (exec_file_find): Change int to bool.
287 (solib_find): Change int to bool.
288 (solib_read_symbols): Change int to bool.
289 (solib_used): Change int to bool.
290 (solib_add): Change int to bool.
291 (info_sharedlibrary_command): Change int to bool.
292 (solib_contains_address_p): Change int to bool.
293 (solib_keep_data_in_core): Change int to bool.
294 (in_solib_dynsym_resolve_code): Change int to bool.
295 (reload_shared_libraries_1): Change int to bool.
296 (gdb_sysroot_changed): Change int to bool.
297 * solib.h (solib_read_symbols): Change int to bool.
298 (solib_contains_address_p): Change int to bool.
299 (solib_keep_data_in_core): Change int to bool.
300 (in_solib_dynsym_resolve_code): Change int to bool.
301 (libpthread_name_p): Change int to bool.
303 2019-11-25 Luis Machado <luis.machado@linaro.org>
305 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
306 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
307 (remote_packet_max_chars): New static global.
308 (show_remote_packet_max_chars): New function.
309 (remote_target::putpkt_binary): Adjust to use new
310 remote_packet_max_chars option.
311 (remote_target::getpkt_or_notif_sane_1): Likewise.
312 (_initialize_remote): Register new remote-packet-max-chars option.
314 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
316 * m68k-linux-nat.c: Include gdbarch.h.
318 2019-11-24 Tom Tromey <tom@tromey.com>
320 * symfile.c (read_symbols): Update.
321 * psymtab.c (require_partial_symbols): Change type of "verbose" to
323 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
324 (psym_lookup_symbol, psym_find_last_source_symtab)
325 (psym_forget_cached_source_info, psym_print_stats)
326 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
327 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
328 (psym_map_matching_symbols, psym_expand_symtabs_matching)
329 (psym_find_compunit_symtab_by_address)
330 (maintenance_print_psymbols, maintenance_info_psymtabs)
331 (maintenance_check_psymtabs): Update.
332 * psymtab.h (require_partial_symbols): Change type of "verbose" to
335 2019-11-22 Tom Tromey <tom@tromey.com>
337 * observable.h: Update comments.
339 2019-11-22 Tom Tromey <tromey@adacore.com>
341 * ada-tasks.c (ada_task_is_alive): Make parameter const.
342 (print_ada_task_info): Don't try to fetch thread id if task is not
345 2019-11-22 Christian Biesinger <cbiesinger@google.com>
348 * ada-lang.c (sort_choices): Update.
349 (ada_print_symbol_signature): Update.
350 (resolve_subexp): Update.
351 (ada_parse_renaming): Update.
352 (ada_read_renaming_var_value): Update.
353 (lesseq_defined_than): Update.
354 (remove_extra_symbols): Update.
355 (remove_irrelevant_renamings): Update.
356 (ada_add_block_symbols): Update.
357 (ada_collect_symbol_completion_matches): Update.
358 (ada_is_renaming_symbol): Update.
359 (aggregate_assign_from_choices): Update.
360 (ada_evaluate_subexp): Update.
361 (ada_has_this_exception_support): Update.
362 (ada_is_non_standard_exception_sym): Update.
363 (ada_add_exceptions_from_frame): Update.
364 (ada_add_global_exceptions): Update.
365 (ada_print_subexp): Update.
366 * ax-gdb.c (gen_var_ref): Update.
367 (gen_maybe_namespace_elt): Update.
368 (gen_expr_for_cast): Update.
371 * blockframe.c (find_pc_partial_function): Update.
372 * breakpoint.c (print_breakpoint_location): Update.
373 (update_static_tracepoint): Update.
374 * btrace.c (ftrace_print_function_name): Update.
375 (ftrace_function_switched): Update.
376 * buildsym.c (find_symbol_in_list): Update.
378 * c-typeprint.c (c_print_typedef): Update.
379 (c_type_print_template_args): Update.
380 * cli/cli-cmds.c (edit_command): Update.
381 (list_command): Update.
382 (print_sal_location): Update.
383 * coffread.c (patch_opaque_types): Update.
384 (process_coff_symbol): Update.
385 (coff_read_enum_type): Update.
386 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
387 (convert_one_symbol): Update.
388 (hash_symname): Update.
389 (eq_symname): Update.
390 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
391 * compile/compile-cplus-types.c (debug_print_scope): Update.
392 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
393 * compile/compile-object-load.c (get_out_value_type): Update.
394 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
395 (search_symbol_list): Update.
396 (cp_lookup_symbol_imports_or_template): Update.
397 * cp-support.c (overload_list_add_symbol): Update.
398 * ctfread.c (psymtab_to_symtab): Update.
399 * dbxread.c (cp_set_block_scope): Update.
400 * dictionary.c (iter_match_first_hashed): Update.
401 (iter_match_next_hashed): Update.
402 (insert_symbol_hashed): Update.
403 (iter_match_next_linear): Update.
404 * dictionary.h: Update.
405 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
406 (locexpr_describe_location_piece): Update.
407 (locexpr_describe_location_1): Update.
408 (locexpr_generate_c_location): Update.
409 (loclist_describe_location): Update.
410 (loclist_generate_c_location): Update.
411 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
412 (read_func_scope): Update.
413 (process_enumeration_scope): Update.
414 (new_symbol): Update.
415 (dwarf2_const_value): Update.
416 (dwarf2_symbol_mark_computed): Update.
417 * eval.c (evaluate_funcall): Update.
418 (evaluate_subexp_standard): Update.
419 * expprint.c (print_subexp_standard): Update.
420 (dump_subexp_body_standard): Update.
421 * f-valprint.c (info_common_command_for_block): Update.
422 * findvar.c (get_hosting_frame): Update.
423 (default_read_var_value): Update.
424 * go-lang.c (go_symbol_package_name): Update.
425 * guile/scm-block.c (bkscm_print_block_smob): Update.
426 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
427 (gdbscm_symbol_name): Update.
428 (gdbscm_symbol_linkage_name): Update.
429 (gdbscm_symbol_print_name): Update.
430 * infcall.c (get_function_name): Update.
431 * infcmd.c (jump_command): Update.
432 (finish_command): Update.
433 * infrun.c (insert_exception_resume_breakpoint): Update.
434 * linespec.c (canonicalize_linespec): Update.
435 (create_sals_line_offset): Update.
436 (convert_linespec_to_sals): Update.
437 (complete_label): Update.
438 (find_label_symbols_in_block): Update.
439 * m2-typeprint.c (m2_print_typedef): Update.
440 * mdebugread.c (mdebug_reg_to_regnum): Update.
441 (parse_symbol): Update.
442 (mylookup_symbol): Update.
443 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
444 (list_args_or_locals): Update.
445 * objc-lang.c (compare_selectors): Update.
446 (info_selectors_command): Update.
447 (compare_classes): Update.
448 (info_classes_command): Update.
450 * p-typeprint.c (pascal_print_typedef): Update.
451 * printcmd.c (build_address_symbolic): Update.
452 (info_address_command): Update.
453 (print_variable_and_value): Update.
454 * python/py-framefilter.c (extract_sym): Update.
455 (py_print_single_arg): Update.
456 * python/py-symbol.c (sympy_str): Update.
457 (sympy_get_name): Update.
458 (sympy_get_linkage_name): Update.
459 * python/python.c (gdbpy_rbreak): Update.
460 * record-btrace.c (btrace_get_bfun_name): Update.
461 (btrace_call_history): Update.
462 * rust-lang.c (rust_print_typedef): Update.
463 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
464 * stabsread.c (stab_reg_to_regnum): Update.
465 (define_symbol): Update.
466 (read_enum_type): Update.
467 (common_block_end): Update.
468 (cleanup_undefined_types_1): Update.
469 (scan_file_globals): Update.
470 * stack.c (print_frame_arg): Update.
471 (print_frame_args): Update.
472 (find_frame_funname): Update.
473 (info_frame_command_core): Update.
474 (iterate_over_block_locals): Update.
475 (print_block_frame_labels): Update.
476 (do_print_variable_and_value): Update.
477 (iterate_over_block_arg_vars): Update.
478 (return_command): Update.
479 * symmisc.c (dump_symtab_1): Update.
480 (print_symbol): Update.
481 * symtab.c (eq_symbol_entry): Update.
482 (symbol_cache_dump): Update.
483 (lookup_language_this): Update.
484 (find_pc_sect_line): Update.
485 (skip_prologue_sal): Update.
486 (symbol_search::compare_search_syms): Update.
487 (treg_matches_sym_type_name): Update.
488 (search_symbols): Update.
489 (print_symbol_info): Update.
490 (rbreak_command): Update.
491 (completion_list_add_symbol): Update.
492 (find_gnu_ifunc): Update.
493 (get_symbol_address): Update.
494 (search_module_symbols): Update.
495 (info_module_subcommand): Update.
496 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
497 (SYMBOL_LINKAGE_NAME): Remove.
498 (SYMBOL_DEMANGLED_NAME): Remove.
499 (SYMBOL_PRINT_NAME): Remove.
500 (SYMBOL_SEARCH_NAME): Remove.
501 * tracepoint.c (set_traceframe_context): Update.
502 (validate_actionline): Update.
503 (collection_list::collect_symbol): Update.
504 (encode_actions_1): Update.
505 (info_scope_command): Update.
506 (print_one_static_tracepoint_marker): Update.
507 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
508 * valops.c (address_of_variable): Update.
509 (find_overload_match): Update.
510 (find_oload_champ): Update.
512 2019-11-22 Christian Biesinger <cbiesinger@google.com>
514 * ada-lang.c (ada_lookup_simple_minsym): Update.
515 (ada_collect_symbol_completion_matches): Update.
516 * ada-tasks.c (read_atcb): Update.
517 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
518 (amd64_windows_skip_trampoline_code): Update.
519 * arm-tdep.c (skip_prologue_function): Update.
520 (arm_skip_stack_protector): Update.
521 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
522 (arm_wince_skip_main_prologue): Update.
523 * ax-gdb.c (gen_expr): Update.
524 * block.c (call_site_for_pc): Update.
525 * blockframe.c (find_pc_partial_function): Update.
526 * breakpoint.c (set_breakpoint_location_function): Update.
527 * btrace.c (ftrace_print_function_name): Update.
528 (ftrace_function_switched): Update.
529 * c-valprint.c (print_unpacked_pointer): Update.
530 * coffread.c (coff_symfile_read): Update.
531 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
532 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
533 * dwarf-index-write.c (write_psymbols): Update.
534 * dwarf2loc.c (call_site_to_target_addr): Update.
535 (func_verify_no_selftailcall): Update.
536 (tailcall_dump): Update.
537 (call_site_find_chain_1): Update.
538 (dwarf_expr_reg_to_entry_parameter): Update.
539 * elfread.c (elf_gnu_ifunc_record_cache): Update.
540 * eval.c (evaluate_funcall): Update.
541 (evaluate_subexp_standard): Update.
542 (evaluate_subexp_for_sizeof): Update.
543 * expprint.c (print_subexp_standard): Update.
544 (dump_subexp_body_standard): Update.
545 * frame.c (get_prev_frame_always_1): Update.
546 * frv-tdep.c (frv_skip_main_prologue): Update.
547 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
548 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
549 (gnuv3_get_typename_from_type_info): Update.
550 (gnuv3_skip_trampoline): Update.
551 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
552 * i386-tdep.c (i386_skip_main_prologue): Update.
553 (i386_pe_skip_trampoline_code): Update.
554 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
555 * infcall.c (get_function_name): Update.
556 * linespec.c (minsym_found): Update.
557 * linux-fork.c (info_checkpoints_command): Update.
558 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
559 (m32c_m16c_pointer_to_address): Update.
560 * maint.c (maintenance_translate_address): Update.
561 * minsyms.c (add_minsym_to_hash_table): Update.
562 (add_minsym_to_demangled_hash_table): Update.
563 (lookup_minimal_symbol_mangled): Update.
564 (lookup_minimal_symbol_demangled): Update.
565 (lookup_minimal_symbol_linkage): Update.
566 (lookup_minimal_symbol_text): Update.
567 (lookup_minimal_symbol_by_pc_name): Update.
568 (minimal_symbol_is_less_than): Update.
569 (compact_minimal_symbols): Update.
570 (build_minimal_symbol_hash_tables): Update.
571 (find_solib_trampoline_target): Update.
572 * mips-tdep.c (mips_stub_frame_sniffer): Update.
573 (mips_skip_pic_trampoline_code): Update.
574 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
575 * objc-lang.c (info_selectors_command): Update.
576 (info_classes_command): Update.
577 (find_methods): Update.
579 * p-valprint.c (pascal_val_print): Update.
580 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
581 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
582 * printcmd.c (build_address_symbolic): Update.
583 (info_symbol_command): Update.
584 * psymtab.c (psymbol_name_matches): Update.
585 (match_partial_symbol): Update.
586 (lookup_partial_symbol): Update.
587 (print_partial_symbols): Update.
588 (sort_pst_symbols): Update.
589 (maintenance_check_psymtabs): Update.
590 * python/py-framefilter.c (py_print_frame): Update.
591 * python/python.c (gdbpy_rbreak): Update.
592 * record-btrace.c (btrace_get_bfun_name): Update.
593 (btrace_call_history): Update.
594 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
595 (rs6000_skip_trampoline_code): Update.
596 * sol-thread.c (info_cb): Update.
597 * stabsread.c (scan_file_globals): Update.
598 * stack.c (find_frame_funname): Update.
599 (info_frame_command_core): Update.
600 * symmisc.c (dump_msymbols): Update.
601 * symtab.c (symbol_natural_name): Rename to..,
602 (general_symbol_info::natural_name): ...this.
603 (symbol_demangled_name): Rename to...
604 (general_symbol_info::demangled_name): ...this.
605 (symbol_search_name): Rename to...
606 (general_symbol_info::search_name): ...this.
607 (symbol_matches_search_name): Update.
608 (find_pc_sect_line): Update.
609 (skip_prologue_sal): Update.
610 (search_symbols): Update.
611 (print_msymbol_info): Update.
612 (rbreak_command): Update.
613 (completion_list_add_msymbol): Update.
614 (completion_list_objc_symbol): Update.
615 (get_msymbol_address): Update.
616 * symtab.h (struct general_symbol_info): Add member functions
617 natural_name (), linkage_name (), print_name (), demangled_name (),
619 (SYMBOL_NATURAL_NAME): Update.
620 (symbol_natural_name): Move to a member function on general_symbol_info.
621 (SYMBOL_DEMANGLED_NAME): Update.
622 (symbol_demangled_name): Move to a member function on
624 (SYMBOL_SEARCH_NAME): Update.
625 (symbol_search_name): Move to a member function on general_symbol_info.
626 (MSYMBOL_NATURAL_NAME): Remove.
627 (MSYMBOL_LINKAGE_NAME): Remove.
628 (MSYMBOL_PRINT_NAME): Remove.
629 (MSYMBOL_DEMANGLED_NAME): Remove.
630 (MSYMBOL_SEARCH_NAME): Remove.
631 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
633 2019-11-22 Christian Biesinger <cbiesinger@google.com>
635 * symtab.c (create_demangled_names_hash): Use per_bfd->
636 minimal_symbol_count for computing the initial size, if greater
637 than our default size.
639 2019-11-22 Tom de Vries <tdevries@suse.de>
641 * contrib/words.sh: Improve words extraction.
643 2019-11-22 Tom de Vries <tdevries@suse.de>
645 * contrib/words.sh: Combine sed invocations.
647 2019-11-21 Christian Biesinger <cbiesinger@google.com>
649 * Makefile.in: Update.
650 * demangle.c: Rename to...
651 * gdb-demangle.c: ..this.
652 (is_cplus_marker): Change return type to bool.
653 (_initialize_demangler): Rename to...
654 (_initialize_gdb_demangle): ...this.
655 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
656 * symtab.h (demangle): Remove declaration; instead include
659 2019-11-21 Tom Tromey <tromey@adacore.com>
661 * gdbsupport/format.c (format_pieces): Parse %I64d.
662 * unittests/format_pieces-selftests.c (test_windows_formats): New
664 (run_tests): Call it.
666 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
668 Byte reverse display of variables with DW_END_big, DW_END_little
669 (DW_AT_endianity) dwarf attributes if different than the native
671 * ada-lang.c (ada_value_binop):
672 Use type_byte_order instead of gdbarch_byte_order.
673 * ada-valprint.c (printstr):
674 (ada_val_print_string):
675 * ada-lang.c (value_pointer):
677 Use type_byte_order instead of gdbarch_byte_order.
678 * c-lang.c (c_get_string):
679 Use type_byte_order instead of gdbarch_byte_order.
680 * c-valprint.c (c_val_print_array):
681 Use type_byte_order instead of gdbarch_byte_order.
682 * cp-valprint.c (cp_print_class_member):
683 Use type_byte_order instead of gdbarch_byte_order.
684 * dwarf2loc.c (rw_pieced_value):
685 Use type_byte_order instead of gdbarch_byte_order.
686 * dwarf2read.c (read_base_type): Handle DW_END_big,
688 * f-lang.c (f_get_encoding):
689 Use type_byte_order instead of gdbarch_byte_order.
690 * findvar.c (default_read_var_value):
691 Use type_byte_order instead of gdbarch_byte_order.
692 * gdbtypes.c (check_types_equal):
693 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
694 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
695 and TYPE_ENDIANITY_LITTLE if set.
696 (type_byte_order): new function.
697 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
698 (struct main_type) <flag_endianity_not_default>:
700 (type_byte_order): New function.
701 * infcmd.c (default_print_one_register_info):
702 Use type_byte_order instead of gdbarch_byte_order.
703 * p-lang.c (pascal_printstr):
704 Use type_byte_order instead of gdbarch_byte_order.
705 * p-valprint.c (pascal_val_print):
706 Use type_byte_order instead of gdbarch_byte_order.
707 * printcmd.c (print_scalar_formatted):
708 Use type_byte_order instead of gdbarch_byte_order.
709 * solib-darwin.c (darwin_current_sos):
710 Use type_byte_order instead of gdbarch_byte_order.
711 * solib-svr4.c (solib_svr4_r_ldsomap):
712 Use type_byte_order instead of gdbarch_byte_order.
713 * stap-probe.c (stap_modify_semaphore):
714 Use type_byte_order instead of gdbarch_byte_order.
715 * target-float.c (target_float_same_format_p):
716 Use type_byte_order instead of gdbarch_byte_order.
717 * valarith.c (scalar_binop):
719 Use type_byte_order instead of gdbarch_byte_order.
720 * valops.c (value_cast):
721 Use type_byte_order instead of gdbarch_byte_order.
722 * valprint.c (generic_emit_char):
725 Use type_byte_order instead of gdbarch_byte_order.
726 * value.c (unpack_long):
727 (unpack_bits_as_long):
728 (unpack_value_bitfield):
731 (pack_unsigned_long):
732 Use type_byte_order instead of gdbarch_byte_order.
733 * findvar.c (unsigned_pointer_to_address):
734 (signed_pointer_to_address):
735 (unsigned_address_to_pointer):
736 (address_to_signed_pointer):
737 (default_read_var_value):
738 (default_value_from_register):
739 Use type_byte_order instead of gdbarch_byte_order.
740 * gnu-v3-abi.c (gnuv3_make_method_ptr):
741 Use type_byte_order instead of gdbarch_byte_order.
742 * riscv-tdep.c (riscv_print_one_register_info):
743 Use type_byte_order instead of gdbarch_byte_order.
745 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
747 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
748 (current_ui_gdb_stdin_ptr): Likewise.
749 (current_ui_gdb_stderr_ptr): Likewise.
750 (current_ui_gdb_stdlog_ptr): Likewise.
751 (current_ui_current_uiout_ptr): Likewise.
752 (gen_ret_current_ui_field_ptr): Remove.
754 2019-11-21 Tom de Vries <tdevries@suse.de>
757 * cli/cli-script.c (execute_control_command): Only switch to
758 INTERP_CONSOLE's ui_out when INTERP_MI is active.
760 2019-11-19 Tom Tromey <tom@tromey.com>
762 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
763 Now static. Change type of "name".
764 (tui_set_win_height_command): Don't copy "arg".
765 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
766 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
768 2019-11-19 Ali Tamur <tamur@google.com>
770 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
771 "if (attr != nullptr)".
772 (dwarf2_find_base_address): Likewise.
773 (dwarf2_build_include_psymtabs): Likewise.
774 (read_cutu_die_from_dwo): Likewise.
775 (read_func_scope): Likewise.
776 (read_call_site_scope): Likewise.
777 (dwarf2_get_pc_bounds): Likewise.
778 (dwarf2_record_block_ranges): Likewise.
779 (dwarf2_add_field): Likewise.
780 (dwarf2_add_member_fn): Likewise.
781 (read_structure_type): Likewise.
782 (read_enumeration_type): Likewise.
783 (read_array_type): Likewise.
784 (read_array_order): Likewise.
785 (read_set_type): Likewise.
786 (read_common_block): Likewise.
787 (read_tag_reference_type): Likewise.
788 (read_tag_string_type): Likewise.
789 (read_subroutine_type): Likewise.
790 (read_base_type): Likewise.
791 (read_subrange_type): Likewise.
792 (new_symbol): Likewise.
793 (prepare_one_comp_unit): Likewise.
795 2019-11-19 Tom Tromey <tromey@adacore.com>
797 * windows-nat.c (windows_nat_target::attach): Include GetLastError
798 result in error when DebugActiveProcess fails.
800 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
801 Pedro Alves <palves@redhat.com>
803 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
804 * target.c (target_stack::push): Call 'unpush' if there's a
805 target on top of the stack.
807 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
809 * python/py-block.c (blpy_dealloc): Call tp_free.
810 (blpy_block_syms_dealloc): Likewise.
811 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
812 * python/py-inferior.c (infpy_dealloc): Likewise.
813 * python/py-lazy-string.c (stpy_dealloc): Likewise.
814 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
815 * python/py-symbol.c (sympy_dealloc): Likewise.
816 * python/py-symtab.c (stpy_dealloc): Likewise.
817 * python/py-type.c (typy_iterator_dealloc): Likewise.
819 2019-11-18 Christian Biesinger <cbiesinger@google.com>
821 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
822 constructor instead of using a class initializer.
824 2019-11-15 Christian Biesinger <cbiesinger@google.com>
826 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
827 * configure: Regenerate.
828 * configure.ac: Don't source common.host.
829 * gdbsupport/common.host: Remove.
830 * gdbsupport/mingw-strerror.c: Remove.
831 * gdbsupport/posix-strerror.c: Rename to...
832 * gdbsupport/safe-strerror.c: ...this.
834 2019-11-15 Christian Biesinger <cbiesinger@google.com>
836 * maint.c (scoped_command_stats::print_time): Use localtime_r
837 instead of localtime (provided through gnulib if necessary).
838 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
841 2019-11-15 Christian Biesinger <cbiesinger@google.com>
843 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
844 avoid compile errors.
846 2019-11-15 Christian Biesinger <cbiesinger@google.com>
848 * config.in: Regenerate.
849 * configure: Regenerate.
850 * gdbsupport/common.m4: No longer check for strerror_r.
851 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
852 POSIX version of strerror_r, now that gnulib provides it if
855 2019-11-14 Christian Biesinger <cbiesinger@google.com>
857 * README (`configure' options): Update.
859 2019-11-14 Tom Tromey <tromey@adacore.com>
861 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
862 expected type for the RHS if the LHS is a convenience variable.
864 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
866 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
867 Provide explicit default and copy constructor.
869 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
871 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
872 only call Py_INCREF (newbp) in the bppy_pending_object case.
874 2019-11-13 Tom Tromey <tromey@adacore.com>
877 * psympriv.h (partial_symbol): Remove static assert.
878 * symtab.h (general_symbol_info, symbol): Remove static assert.
880 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
882 * gdbsupport/format.c (format_pieces::format_pieces): Support
883 printf 'z' size modifier.
884 * gdbsupport/format.h (enum argclass): Add size_t_arg.
885 * printcmd.c (ui_printf): Handle size_t_arg.
886 * ui-out.c (ui_out::vmessage): Likewise.
887 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
889 (run_tests): Call test_format_int_sizes.
891 2019-11-12 Christian Biesinger <cbiesinger@google.com>
893 * ada-exp.y (write_ambiguous_var): Update.
894 * buildsym.c (add_symbol_to_list): Update.
895 * dwarf2read.c (read_variable): Update.
896 (new_symbol): Update.
897 * jit.c (finalize_symtab): Update.
898 * language.c (language_alloc_type_symbol): Update.
899 * symtab.c (fixup_symbol_section): Update.
900 (initialize_objfile_symbol_1): Move code to...
901 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
902 (allocate_symbol): Update.
903 (allocate_template_symbol): Update.
904 (get_symbol_address): Update.
905 * symtab.h (struct symbol): Inherit from general_symbol_info instead
906 of having as a field, and add a constructor.
907 (SYMBOL_VALUE): Update.
908 (SYMBOL_VALUE_ADDRESS): Update.
909 (SET_SYMBOL_VALUE_ADDRESS): Update.
910 (SYMBOL_VALUE_BYTES): Update.
911 (SYMBOL_VALUE_COMMON_BLOCK): Update.
912 (SYMBOL_BLOCK_VALUE): Update.
913 (SYMBOL_VALUE_CHAIN): Update.
914 (SYMBOL_LANGUAGE): Update.
915 (SYMBOL_SECTION): Update.
916 (SYMBOL_OBJ_SECTION): Update.
917 (SYMBOL_SET_LANGUAGE): Update.
918 (SYMBOL_SET_LINKAGE_NAME): Update.
919 (SYMBOL_SET_NAMES): Update.
920 (SYMBOL_NATURAL_NAME): Update.
921 (SYMBOL_LINKAGE_NAME): Update.
922 (SYMBOL_DEMANGLED_NAME): Update.
923 (SYMBOL_SEARCH_NAME): Update.
924 (SYMBOL_MATCHES_SEARCH_NAME): Update.
925 (struct symbol): Update.
926 (struct template_symbol): Update.
927 (struct rust_vtable_symbol): Update.
928 * xcoffread.c (SYMBOL_DUP): Update.
930 2019-11-12 Tom Tromey <tom@tromey.com>
932 * tui/tui-layout.c (show_layout): Set current_layout.
933 (show_source_disasm_command, show_data)
934 (show_source_or_disasm_and_command): Don't set current_layout.
936 2019-11-12 Tom Tromey <tom@tromey.com>
938 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
940 2019-11-12 Tom Tromey <tom@tromey.com>
942 * tui/tui-win.c (resize_message): New global.
943 (show_tui_resize_message): New function.
944 (tui_async_resize_screen): Print message if requested.
945 (_initialize_tui_win): Add tui-resize-message setting.
946 * NEWS: Add entry for new commands.
948 2019-11-11 Tom Tromey <tom@tromey.com>
950 * tui/tui.c (tui_initialize_readline): Add new bindable readline
953 2019-11-11 Christian Biesinger <cbiesinger@google.com>
955 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
957 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
959 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
961 * python/python-internal.h (gdbpy_lookup_static_symbols):
962 Declare new function.
963 * python/python.c (python_GdbMethods): Add
964 gdb.lookup_static_symbols method.
965 * NEWS: Mention gdb.lookup_static_symbols.
967 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
969 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
970 static block of current object file first. Also fix typo in
973 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
975 * stack.c (set_last_displayed_sal): Delete.
976 (last_displayed_sal_valid): Delete.
977 (last_displayed_pspace): Delete.
978 (last_displayed_addr): Delete.
979 (last_displayed_symtab): Delete.
980 (last_displayed_line): Delete.
981 (class last_displayed_symtab_info_type): New.
982 (last_displayed_symtab_info): New static global variable.
983 (print_frame_info): Call methods on last_displayed_symtab_info.
984 (clear_last_displayed_sal): Update header comment, and make use of
985 last_displayed_symtab_info.
986 (last_displayed_sal_is_valid): Likewise.
987 (get_last_displayed_pspace): Likewise.
988 (get_last_displayed_addr): Likewise.
989 (get_last_displayed_symtab): Likewise.
990 (get_last_displayed_line): Likewise.
991 (get_last_displayed_sal): Likewise.
992 * stack.h (clear_last_displayed_sal): Update header comment.
993 (last_displayed_sal_is_valid): Likewise.
994 (get_last_displayed_pspace): Likewise.
995 (get_last_displayed_addr): Likewise.
996 (get_last_displayed_symtab): Likewise.
997 (get_last_displayed_line): Likewise.
998 (get_last_displayed_sal): Likewise.
1000 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1002 * stack.c (frame_show_address): Convert return type to bool.
1003 * stack.h (frame_show_address): Likewise, and update header
1006 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1008 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1009 * unittests/vec-utils-selftests.c: New file.
1010 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1012 2019-11-10 Tom Tromey <tom@tromey.com>
1014 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1015 (tui_highlight_win): Likewise.
1016 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1017 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1018 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1019 Don't set can_highlight.
1021 2019-11-10 Tom Tromey <tom@tromey.com>
1023 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1024 Remove unused declaration.
1026 2019-11-08 Tom Tromey <tromey@adacore.com>
1028 * top.c (read_command_file): Update.
1029 (command_line_input): Make return type const.
1030 * python/py-gdb-readline.c: Update.
1031 * linespec.c (decode_line_2): Update.
1032 * defs.h (command_line_input): Make return type const.
1033 * cli/cli-script.c (read_next_line): Make return type const.
1034 * ada-lang.c (get_selections): Update.
1036 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1038 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1039 * mi/mi-main.c (output_cores): Likewise.
1040 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1041 (linux_xfer_osdata_modules): Likewise.
1042 * remote.c (register_remote_support_xml): Likewise.
1043 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1044 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1046 2019-11-06 Tom Tromey <tom@tromey.com>
1048 * tui/tui-interp.c: Don't include readline.h.
1049 * tui/tui-hooks.c: Don't include readline.h.
1050 * symmisc.c: Include tilde.h, not readline.h.
1051 * symfile.c: Include tilde.h, not readline.h.
1052 * source.c: Include tilde.h, not readline.h.
1053 * solib.c: Include tilde.h, not readline.h.
1054 * psymtab.c: Include tilde.h, not readline.h.
1055 * exec.c: Include tilde.h, not readline.h.
1056 * corelow.c: Include tilde.h, not readline.h.
1057 * cli/cli-dump.c: Include tilde.h, not readline.h.
1058 * cli/cli-cmds.c: Don't include readline.h.
1060 2019-11-05 Tom Tromey <tom@tromey.com>
1062 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1063 (tui_disassemble): Set addr_size.
1064 (tui_disasm_window::set_contents): Use addr_size.
1066 2019-11-05 Tom Tromey <tom@tromey.com>
1068 * rust-lang.c (rust_language_defn): Update.
1069 * python/py-value.c (valpy_string): Call c_get_string.
1070 * p-lang.c (pascal_language_defn): Update.
1071 * opencl-lang.c (opencl_language_defn): Update.
1072 * objc-lang.c (objc_language_defn): Update.
1073 * m2-lang.c (m2_language_defn): Update.
1074 * language.c (unknown_language_defn, auto_language_defn): Update.
1075 (default_get_string): Remove.
1076 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1077 * go-lang.c (go_language_defn): Update.
1078 * f-lang.c (f_language_defn): Update.
1079 * d-lang.c (d_language_defn): Update.
1080 * c-lang.c (c_language_defn, cplus_language_defn)
1081 (asm_language_defn, minimal_language_defn): Update.
1082 * ada-lang.c (ada_language_defn): Update.
1083 * language.h (struct language_defn) <la_get_string>: Remove.
1084 (LA_GET_STRING): Remove.
1085 (default_get_string): Don't declare.
1087 2019-11-05 Tom Tromey <tom@tromey.com>
1089 * tui/tui-source.h (struct tui_source_window): Inline
1090 constructor. Remove destructor.
1091 <style_changed, m_observable>: Move to superclass.
1092 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1093 (struct tui_source_window_base): Move private members to end.
1094 <style_changed, m_observable>: Move from tui_source_window.
1095 * tui/tui-winsource.c (tui_copy_source_line): Move from
1096 tui-source.c. Rename from copy_source_line. Add special handling
1097 for negative line number.
1098 (tui_source_window_base::style_changed): Move from
1100 (tui_source_window_base): Register observer.
1101 (~tui_source_window_base): New.
1102 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1104 (tui_source_window::set_contents): Use tui_copy_source_line.
1105 (tui_source_window::tui_source_window): Move to tui-source.h.
1106 (tui_source_window::~tui_source_window): Remove.
1107 (tui_source_window::style_changed): Move to superclass.
1108 * tui/tui-disasm.c (tui_disassemble): Create string file with
1109 styling, when possible. Add "addr_size" parameter.
1110 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1111 Don't compute maximum size.
1112 (len_without_escapes): New function
1114 2019-11-05 Tom Tromey <tom@tromey.com>
1116 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1118 * tui/tui-winsource.c (tui_show_source_line): Update.
1119 * tui/tui-source.c (tui_source_window::set_contents): Update.
1120 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1122 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1124 * symtab.h (gdb_static_assert): Put && operator at the beginning
1125 of the line instead of the end.
1127 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1129 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1130 and sizeof (symbol).
1131 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1133 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1135 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1136 * configure.host: Mark *-*-solaris2.10* obsolete.
1137 * configure.tgt: Mark Solaris < 11 obsolete.
1138 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1139 Update target triplet.
1141 2019-11-01 Tom Tromey <tromey@adacore.com>
1143 * utils.c (print_sys_errmsg): Simplify.
1145 2019-11-01 Tom Tromey <tromey@adacore.com>
1147 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1149 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1151 * configure: Regenerate.
1152 * configure.ac: Remove check for strerror_r.
1153 * gdbsupport/common.m4: Check for strerror_r.
1155 2019-11-01 Luis Machado <luis.machado@linaro.org>
1159 * arm-tdep.c (arm_per_objfile): Rename to ...
1160 (arm_per_bfd): ... this.
1161 (arm_objfile_data_key): Rename to ...
1162 (arm_bfd_data_key): ... this.
1163 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1165 (arm_record_special_symbol): Likewise.
1167 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1169 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1171 * c-typeprint.c (c_print_typedef): Likewise.
1172 * f-typeprint.c (f_print_typedef): Likewise.
1173 * m2-typeprint.c (m2_print_typedef): Likewise.
1174 * p-typeprint.c (pascal_print_typedef): Likewise.
1175 * rust-lang.c (rust_print_typedef): Likewise.
1176 * symtab.c (print_symbol_info): Print a newline after calling
1179 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1181 * symtab.c (info_module_cmdlist): New variable.
1182 (info_module_command): New function.
1183 (search_module_symbols): New function.
1184 (info_module_subcommand): New function.
1185 (struct info_modules_var_func_options): New struct.
1186 (info_modules_var_func_options_defs): New variable.
1187 (make_info_modules_var_func_options_def_group): New function.
1188 (info_module_functions_command): New function.
1189 (info_module_variables_command): New function.
1190 (info_module_var_func_command_completer): New function.
1191 (_initialize_symtab): Register new 'info module functions' and
1192 'info module variables' commands.
1193 * symtab.h (typedef symbol_search_in_module): New typedef.
1194 (search_module_symbols): Declare new function.
1195 * NEWS: Mention new commands.
1197 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1199 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1200 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1201 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1203 (scan_partial_symbols): Only create partial module symbols for non
1205 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1207 * symtab.c (search_domain_name): Likewise.
1208 (search_symbols): Likewise.
1209 (print_symbol_info): Likewise.
1210 (symtab_symbol_info): Likewise.
1211 (info_modules_command): New function.
1212 (_initialize_symtab): Register 'info modules' command.
1213 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1214 * NEWS: Mention new 'info modules' command.
1216 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1218 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1219 and $_gdb_maint_setting_str.
1221 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1223 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1224 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1225 (str_value_from_setting, gdb_setting_str_internal_fn)
1226 (gdb_maint_setting_str_internal_fn): New functions.
1227 (_initialize_cli_cmds): Define the new convenience functions.
1228 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1229 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1231 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1233 * agent.c (set_can_use_agent): When the setting is turned on,
1234 look up agent symbols if we don't have them yet.
1235 (agent_new_objfile): Don't look up agent symbols when the agent
1238 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1240 * config.in: Regenerate.
1242 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1244 * configure: Regenerate.
1245 * configure.ac: Check for strerror_r.
1246 * gdbsupport/common-utils.h (safe_strerror): Change return value
1247 to const char * and document that this function is now threadsafe.
1248 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1249 thread_local and call strerror_r, if available.
1250 * utils.c (perror_string): Update.
1251 (print_sys_errmsg): Update.
1253 2019-10-31 Luis Machado <luis.machado@linaro.org>
1255 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1257 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1258 objfile to fetch per-bfd data.
1259 (arm_find_exidx_entry): Likewise.
1261 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1263 * gdbsupport/agent.c (debug_agent): Change type to bool.
1264 (use_agent): Likewise.
1265 (all_agent_symbols_look_up): Likewise.
1266 (agent_loaded_p): Change return value to bool.
1267 (agent_look_up_symbols): Update.
1268 (agent_capability_check): Change return value to bool.
1269 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1270 (debug_agent): Change type to bool.
1271 (use_agent): Likewise.
1272 (agent_capability_check): Change return value to bool.
1274 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1276 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1277 (build_minimal_symbol_hash_tables): Code to clear the table moved
1278 to clear_minimal_symbol_hash_tables.
1279 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1282 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1284 * infcmd.c: Remove includes.
1285 * infrun.c: Remove includes.
1287 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1289 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1290 (grow_vect): Remove declaration.
1291 (ada_type_of_array): Remove declaration.
1292 (ada_update_initial_language): Remove declaration.
1293 (ada_fold_name): Remove declaration.
1294 (ada_fill_in_ada_prototype): Remove declaration.
1295 (user_select_syms): Remove declaration.
1296 (get_selections): Remove declaration.
1297 (ada_tag_type): Remove declaration.
1298 (ada_value_tag): Remove declaration.
1299 (ada_is_others_clause): Remove declaration.
1300 (ada_in_variant): Remove declaration.
1301 (ada_value_struct_elt): Remove declaration.
1302 (ada_attribute_name): Remove declaration.
1303 (ada_system_address_type): Remove declaration.
1304 * ada-lang.c (ada_watch_location_expression): Make static.
1305 (GROW_VECT): Move here from ada-lang.h.
1306 (grow_vect): Make static.
1307 (ada_update_initial_language): Make static.
1308 (ada_fold_name): Make static.
1309 (ada_type_of_array): Make static.
1310 (encoded_ordered_before): Move up.
1311 (sort_choices): Move up.
1312 (print_signatures): Move up.
1313 (ada_print_symbol_signature): Move up.
1314 (get_selections): Move up and make static.
1315 (user_select_syms): Move up and make static.
1316 (ada_value_struct_elt): Move up and make static.
1317 (ada_tag_type): Make static.
1318 (ada_value_tag): Make static.
1319 (ada_is_others_clause): Make static.
1320 (ada_in_variant): Make static.
1321 (ada_attribute_name): Make static.
1323 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1325 * ada-lang.c: Remove includes.
1326 * ada-typeprint.c: Remove includes.
1327 * ada-valprint.c: Remove includes.
1329 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1331 * addrmap.c: Add static assertions of type size, moved from
1332 _initialize_addrmap.
1333 (_initialize_addrmap): Remove.
1335 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1337 * coffread.c (record_minimal_symbol): Update.
1338 (process_coff_symbol): Update.
1339 * dbxread.c (read_dbx_symtab): Update.
1340 * dwarf2read.c (add_partial_symbol): Update.
1341 (fixup_go_packaging): Update.
1342 (load_partial_dies): Update.
1343 (new_symbol): Update.
1344 * elfread.c (record_minimal_symbol): Change signature to use
1345 gdb::string_view instead of name+len.
1346 (elf_symtab_read): Update.
1347 (elf_rel_plt_read): Update.
1348 * mdebugread.c (parse_partial_symbols): Update.
1349 (handle_psymbol_enumerators): Update.
1350 (new_symbol): Update.
1351 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1352 to use gdb::string_view instead of name+len.
1353 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1354 * psympriv.h (add_psymbol_to_list): Likewise.
1355 * psymtab.c (add_psymbol_to_bcache): Likewise.
1356 (add_psymbol_to_list): Likewise.
1357 * stabsread.c (define_symbol): Update.
1358 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1359 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1360 (symbol_set_names): Likewise.
1361 * xcoffread.c (scan_xcoff_symtab): Update.
1363 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1365 * symtab.h (symbol_set_names): Document that copy_name must be
1366 set to true for non-nullterminated strings.
1367 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1368 linkage_name if the entry was not found and we need to demangle.
1370 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1372 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1373 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1374 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1375 * gdbsupport/gdb_binary_search.h: New file.
1377 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1379 * NEWS: Mention new --with-system-gdbinit-dir option.
1380 * config.in: Regenerate.
1381 * configure: Regenerate.
1382 * configure.ac: Add new option --with-system-gdbinit-dir.
1383 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1384 for a ".gdb" suffix.
1385 * main.c (get_init_files): Change system_gdbinit argument to
1386 a vector and return the files in SYSTEM_GDBINIT_DIR in
1387 addition to SYSTEM_GDBINIT.
1388 (captured_main_1): Update.
1389 (print_gdb_help): Update.
1390 * top.c (print_gdb_configuration): Also print the value of
1393 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1395 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1396 that takes gdb::string_view arguments.
1398 2019-10-26 Tom de Vries <tdevries@suse.de>
1400 * aarch64-linux-tdep.c: Fix typos in comments.
1401 * aarch64-tdep.c: Same.
1403 * amd64-nat.c: Same.
1405 * arch/aarch64-insn.c: Same.
1407 * breakpoint.h: Same.
1410 * cli/cli-decode.c: Same.
1411 * cli/cli-script.c: Same.
1412 * cli/cli-utils.h: Same.
1413 * coff-pe-read.c: Same.
1415 * compile/compile-cplus-symbols.c: Same.
1416 * compile/compile-object-run.c: Same.
1417 * completer.c: Same.
1419 * cp-support.c: Same.
1421 * dwarf-index-write.c: Same.
1422 * dwarf2-frame.c: Same.
1423 * dwarf2-frame.h: Same.
1425 * frame-base.h: Same.
1430 * guile/scm-objfile.c: Same.
1431 * i386-tdep.c: Same.
1432 * i386-tdep.h: Same.
1435 * linux-nat.c: Same.
1436 * m68k-tdep.c: Same.
1439 * mi/mi-cmd-disas.c: Same.
1440 * mi/mi-getopt.h: Same.
1441 * mi/mi-main.c: Same.
1443 * nat/aarch64-sve-linux-sigcontext.h: Same.
1445 * ppc-linux-nat.c: Same.
1446 * ppc-linux-tdep.c: Same.
1448 * progspace.h: Same.
1449 * prologue-value.h: Same.
1450 * python/py-evtregistry.c: Same.
1451 * python/py-instruction.h: Same.
1452 * record-btrace.c: Same.
1453 * record-full.c: Same.
1455 * rs6000-tdep.c: Same.
1457 * sol-thread.c: Same.
1458 * sparc-sol2-tdep.c: Same.
1459 * sparc64-tdep.c: Same.
1460 * stabsread.c: Same.
1464 * tracepoint.c: Same.
1465 * tui/tui-data.h: Same.
1466 * tui/tui-io.c: Same.
1467 * tui/tui-win.c: Same.
1469 * unittests/rsp-low-selftests.c: Same.
1470 * user-regs.h: Same.
1481 * xtensa-tdep.c: Same.
1483 2019-10-25 Ali Tamur <tamur@google.com>
1485 * charset.c (find_charset_names): Reflect API change.
1487 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1489 * symtab.c (struct demangled_name_entry): Change demangled name
1490 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1491 part of the struct anymore.
1492 (symbol_set_names): No longer obstack allocate + copy the demangled
1493 name, just store the allocated name from bfd.
1495 2019-10-25 Tom Tromey <tromey@adacore.com>
1497 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1498 (bsearch_cie_cmp, add_cie): Remove.
1499 (find_cie): Reimplement.
1500 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1501 (dwarf2_build_frame_info): Update.
1503 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1506 * symfile.c (reread_symbols): Call forget_cached_source_info to
1507 clear the stale source cache.
1509 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1511 * configure: Regenerate.
1512 * configure.ac: Remove code that sets python_has_threads.
1514 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1516 * config.in: Regenerate.
1517 * configure: Regenerate.
1518 * configure.ac: Remove the code that uses sed to get the python
1519 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1521 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1523 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1526 2019-10-23 Tom Tromey <tom@tromey.com>
1528 * arc-tdep.c: Remove ".." from include.
1529 * frv-tdep.c: Remove ".." from include.
1530 * lm32-tdep.c: Remove ".." from include.
1531 * microblaze-tdep.c: Remove ".." from include.
1532 * or1k-tdep.h: Remove ".." from include.
1533 * s12z-tdep.c: Remove ".." from include.
1534 * Makefile.in (OPCODES_CFLAGS): Add comment.
1535 (TOP_CFLAGS): New variable.
1536 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1538 2019-10-23 Tom Tromey <tom@tromey.com>
1540 * Makefile.in (READLINE_DIR): Update.
1542 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1544 * infcall.c (call_function_by_hand_dummy): Fix the function
1545 comment. And extract out a code section into...
1546 (reserve_stack_space): ...this new function.
1548 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550 * infcall.c (value_arg_coerce): Remove an unused parameter.
1551 (call_function_by_hand_dummy): Update the call to
1554 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1556 * infcall.c (call_function_by_hand_dummy): Refactor.
1558 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1560 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1562 2019-10-23 Tom Tromey <tom@tromey.com>
1564 * configure: Rebuild.
1565 * configure.ac: Don't check for sigprocmask.
1566 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1568 2019-10-23 Tom Tromey <tom@tromey.com>
1570 * configure: Rebuild.
1571 * acinclude.m4: Use m4_include, not sinclude.
1573 2019-10-23 Tom de Vries <tdevries@suse.de>
1575 PR breakpoints/24687
1576 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1578 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1580 * symtab.c (struct demangled_name_entry) <language>: Change from
1581 bitfield to regular variable.
1583 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1585 * symtab.c (struct demangled_name_entry): Add a constructor.
1586 (free_demangled_name_entry): New function to call the destructor
1587 for demangled_name_entry.
1588 (create_demangled_names_hash): Pass free_demangled_name_entry to
1590 (symbol_set_names): Call placement new for demangled_name_entry.
1591 * utils.c: No longer include xxhash.h here, now that fast_hash
1592 is inlined in the header.
1593 * utils.h: Instead, include it here.
1595 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1597 * Makefile.in: Link with libxxhash.
1598 * config.in: Regenerate.
1599 * configure: Regenerate.
1600 * configure.ac: Search for libxxhash.
1601 * utils.c (fast_hash): Use xxhash if present.
1603 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1605 * utils.h (fast_hash): New function.
1606 * symtab.c (hash_demangled_name_entry): Call new function
1609 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1611 * symtab.c (struct demangled_name_entry): Change type of mangled
1612 to gdb::string_view. Also adds a constructor that takes the
1614 (hash_demangled_name_entry): Update.
1615 (eq_demangled_name_entry): Update.
1616 (free_demangled_name_entry): New function to call the destructor
1617 now that this is not a POD anymore.
1618 (create_demangled_names_hash): Pass free_demangled_name_entry to
1620 (symbol_set_names): Update.
1622 2019-10-21 Ali Tamur <tamu@google.com>
1624 * dwarf2read.c (dir_index): Change type.
1625 (file_name_index): Likewise.
1626 (line_header::include_dir_at): Change comment and implementation on
1627 whether it is DWARF 5.
1628 (line_header::is_valid_file_index): New function.
1629 (line_header::file_name_at): Change comment and implementation on
1630 whether it is DWARF 5.
1631 (line_header::file_names): Change to private field renamed as
1632 m_file_names and introduce a new accessor method.
1633 (line_header::file_names_size): New method.
1634 (line_header::include_dirs): Change to private field and rename as
1636 (dw2_get_file_names_reader): Define local var at a smaller scope and
1638 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1639 (process_structure_scope): Likewise.
1640 (line_header::add_include_dir): Change message and reflect renaming.
1641 (line_header::add_file_name): Likewise.
1642 (read_formatted_entries): Handle DW_FORM_data16.
1643 (dwarf_decode_line_header): Fix line header length calculation.
1644 (psymtab_include_file_name): Change comment and API.
1645 (lnp_state_machine::m_file): Update comment and reflect type change.
1646 (lnp_state_machine::record_line): Reflect type change.
1647 (dwarf_decode_lines): Reflect API change.
1648 (file_file_name): Likewise.
1649 (file_full_name): Likewise.
1651 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1653 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1655 2019-10-21 Tom Tromey <tom@tromey.com>
1657 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1659 2019-10-21 Tom Tromey <tom@tromey.com>
1661 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1662 NM_H. Use AC_CONFIG_LINKS.
1663 * configure: Rebuild.
1664 * Makefile.in (NM_H): New variable.
1665 (generated_files): Add NM_H. Remove gcore.
1666 (nm.h, stamp-nmh): New targets.
1668 2019-10-20 Tom Tromey <tom@tromey.com>
1670 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1671 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1673 (put_objfile_before): Now static.
1675 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1677 * gdbsupport/common-utils.h (startswith): Change return type to
1680 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1682 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1683 * breakpoint.c (bp_locations_compare): Rename to...
1684 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1685 (update_global_location_list): Use std::sort instead of qsort.
1686 * buildsym.c (compare_line_numbers): Rename to...
1687 (lte_is_less_than): ...this, and change to std::sort semantics.
1688 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1690 * disasm.c (compare_lines): Rename to...
1691 (line_is_less_than): ...this, and change to std::sort semantics.
1692 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1694 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1695 (fde_is_less_than): ...this, and change to std::sort semantics.
1696 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1697 * mdebugread.c (compare_blocks):
1698 (block_is_less_than): ...this, and change to std::sort semantics.
1699 (sort_blocks): Call std::sort instead of qsort.
1700 * objfiles.c (qsort_cmp): Rename to...
1701 (sort_cmp): ...this, and change to std::sort semantics.
1702 (update_section_map): Call std::sort instead of qsort.
1703 * remote.c (compare_pnums): Remove.
1704 (map_regcache_remote_table): Call std::sort instead of qsort.
1705 * utils.c (compare_positive_ints): Remove.
1706 * utils.h (compare_positive_ints): Remove.
1707 * xcoffread.c (compare_lte): Remove.
1708 (arrange_linetable): Call std::sort instead of qsort.
1710 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1712 * symfile.c (init_entry_point_info): Fix typo.
1713 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1715 2019-10-18 Tom de Vries <tdevries@suse.de>
1717 * aarch64-tdep.c: Fix typos in comments.
1719 * ada-tasks.c: Same.
1720 * alpha-tdep.c: Same.
1721 * alpha-tdep.h: Same.
1722 * amd64-nat.c: Same.
1723 * amd64-windows-tdep.c: Same.
1726 * arch-utils.c: Same.
1727 * arm-nbsd-tdep.c: Same.
1730 * blockframe.c: Same.
1733 * coff-pe-read.c: Same.
1735 * cris-tdep.c: Same.
1736 * darwin-nat.c: Same.
1740 * dtrace-probe.c: Same.
1741 * dwarf-index-write.c: Same.
1742 * dwarf2-frame-tailcall.c: Same.
1743 * dwarf2-frame.c: Same.
1744 * dwarf2read.c: Same.
1746 * exceptions.c: Same.
1747 * fbsd-tdep.c: Same.
1751 * gnu-v3-abi.c: Same.
1753 * h8300-tdep.c: Same.
1754 * hppa-tdep.c: Same.
1755 * i386-linux-tdep.c: Same.
1756 * i386-tdep.c: Same.
1757 * ia64-libunwind-tdep.c: Same.
1758 * ia64-tdep.c: Same.
1762 * linux-nat.c: Same.
1763 * linux-thread-db.c: Same.
1764 * machoread.c: Same.
1765 * mdebugread.c: Same.
1767 * mn10300-tdep.c: Same.
1768 * namespace.c: Same.
1770 * opencl-lang.c: Same.
1771 * or1k-tdep.c: Same.
1773 * ppc-linux-nat.c: Same.
1774 * ppc-linux-tdep.c: Same.
1775 * ppc-sysv-tdep.c: Same.
1778 * record-btrace.c: Same.
1779 * record-full.c: Same.
1780 * remote-fileio.c: Same.
1782 * rs6000-tdep.c: Same.
1783 * s12z-tdep.c: Same.
1784 * score-tdep.c: Same.
1788 * sol-thread.c: Same.
1789 * solib-svr4.c: Same.
1792 * sparc-nat.c: Same.
1793 * sparc-sol2-tdep.c: Same.
1794 * sparc-tdep.c: Same.
1795 * sparc64-tdep.c: Same.
1796 * stabsread.c: Same.
1800 * target-descriptions.c: Same.
1801 * target-float.c: Same.
1808 * windows-nat.c: Same.
1809 * xcoffread.c: Same.
1810 * xstormy16-tdep.c: Same.
1811 * xtensa-tdep.c: Same.
1813 2019-10-17 Tom Tromey <tromey@adacore.com>
1815 * configure: Rebuild.
1816 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1817 in AC_CONFIG_FILES invocation.
1818 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1819 new-style config.status invocation.
1821 2019-10-17 Tom de Vries <tdevries@suse.de>
1823 * arm-nbsd-nat.c: Fix typos in comments.
1825 * darwin-nat-info.c: Same.
1826 * dwarf2read.c: Same.
1828 * event-top.c: Same.
1831 * hppa-tdep.c: Same.
1832 * i386-tdep.c: Same.
1835 * mdebugread.c: Same.
1836 * moxie-tdep.c: Same.
1837 * nto-procfs.c: Same.
1839 * ppc-linux-tdep.c: Same.
1841 * riscv-tdep.c: Same.
1842 * s390-tdep.c: Same.
1844 * sparc-linux-tdep.c: Same.
1845 * sparc-nat.c: Same.
1847 * target-descriptions.c: Same.
1851 2019-10-16 Tom Tromey <tom@tromey.com>
1853 * objfiles.h (struct objfile) <original_name>: Now const.
1855 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1857 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1858 pass on to sigsetjmp's second argument.
1859 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1861 2019-10-16 Keith Seitz <keiths@redhat.com>
1864 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1865 sections whose size is greater than the file size.
1867 2019-10-16 Jim Wilson <jimw@sifive.com>
1869 * riscv-tdep.c (riscv_gcc_target_options): New.
1870 (riscv_gnu_triplet_regexp): New.
1871 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1872 set_gdbarch_gnu_triplet_regexp.
1874 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1876 * Makefile.in: Add xml-builtin.h.
1877 * features/feature_to_c.sh: Add an include for xml-builtin.h
1878 to ensure that the compiler checks that the types match.
1879 * xml-builtin.h: New file.
1880 * xml-support.c (fetch_xml_builtin): Add missing const.
1881 * xml-support.h: Remove declaration of xml_builtins.
1883 2019-10-16 Tom de Vries <tdevries@suse.de>
1886 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1887 (amd64_classify_aggregate): ... here.
1888 (amd64_classify_aggregate_field): Handled fiels of nested structs
1891 2019-10-16 Tom de Vries <tdevries@suse.de>
1894 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1895 that handles 'theclass'.
1897 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * linespec.c (decode_digits_ordinary): Update comment.
1900 * make-target-delegates: No longer need to handle VEC case.
1901 * memrange.c (normalize_mem_ranges): Update comment.
1902 * namespace.c (add_using_directive): Update comment.
1903 * objc-lang.c (uniquify_strings): Update comment.
1904 * ppc-linux-nat.c (struct thread_points): Update comment.
1905 * probe.h (find_probes_in_objfile): Update comment.
1906 * target.h (enum flash_preserve_mode): Update comment.
1907 * varobj.c (varobj_restrict_range): Update comment.
1908 * varobj.h (varobj_list_children): Update comment.
1910 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1912 * Makefile.in: Remove references to vec.h and vec.c.
1913 * aarch64-tdep.c: No longer include vec.h.
1914 * ada-lang.c: Likewise.
1915 * ada-lang.h: Likewise.
1916 * arm-tdep.c: Likewise.
1918 * breakpoint.h: Likewise.
1919 * charset.c: Likewise.
1920 * cp-support.h: Likewise.
1921 * dtrace-probe.c: Likewise.
1922 * dwarf2read.c: Likewise.
1923 * extension.h: Likewise.
1924 * gdb_bfd.c: Likewise.
1925 * gdbsupport/gdb_vecs.h: Likewise.
1926 * gdbsupport/vec.c: Remove.
1927 * gdbsupport/vec.h: Remove.
1928 * gdbthread.h: Likewise.
1929 * guile/scm-type.c: Likewise.
1930 * inline-frame.c: Likewise.
1931 * machoread.c: Likewise.
1932 * memattr.c: Likewise.
1933 * memrange.h: Likewise.
1934 * namespace.h: Likewise.
1935 * nat/linux-btrace.h: Likewise.
1936 * osdata.c: Likewise.
1937 * parser-defs.h: Likewise.
1938 * progspace.h: Likewise.
1939 * python/py-type.c: Likewise.
1940 * record-btrace.c: Likewise.
1941 * rust-exp.y: Likewise.
1942 * solib-target.c: Likewise.
1943 * stap-probe.c: Likewise.
1944 * target-descriptions.c: Likewise.
1945 * target-memory.c: Likewise.
1946 * target.h: Likewise.
1947 * varobj.c: Likewise.
1948 * varobj.h: Likewise.
1949 * xml-support.h: Likewise.
1951 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1953 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1954 Update for new std::vector based implementation.
1955 (process_psymtab_comp_unit_reader): Likewise.
1956 (scan_partial_symbols): Likewise.
1957 (recursively_compute_inclusions): Likewise.
1958 (compute_compunit_symtab_includes): Likewise.
1959 (process_imported_unit_die): Likewise.
1960 (queue_and_load_dwo_tu): Likewise.
1961 (follow_die_sig_1): Likewise.
1962 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1963 (typedef dwarf2_per_cu_ptr): Remove.
1964 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1966 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1967 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1968 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1969 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1972 2019-10-15 Tom Tromey <tromey@adacore.com>
1974 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1977 2019-10-15 Tom Tromey <tromey@adacore.com>
1979 * windows-nat.c (windows_nat_target::fetch_registers)
1980 (windows_nat_target::store_registers): Rename "pid" to "tid".
1982 2019-10-15 Tom Tromey <tromey@adacore.com>
1984 * gdbarch.h, gdbarch.c: Rebuild.
1985 * gdbarch.sh (gcc_target_options): Change return type to
1987 * compile/compile.c (get_args): Update.
1988 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1989 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1991 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1993 * arch-utils.c (default_gcc_target_options): Return std::string.
1994 * arch-utils.h (default_gcc_target_options): Return std::string.
1995 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1997 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1999 * breakpoint.c (breakpoint_chain): Make static.
2000 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2001 of accessing breakpoint_chain.
2003 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2005 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2006 to a gdb::function_view and return value to bool.
2007 * breakpoint.h (iterate_over_breakpoints): Likewise.
2008 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2009 (pop_dummy_frame): Update.
2010 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2011 (gdbscm_breakpoints): Update.
2012 * python/py-breakpoint.c (build_bp_list): Update.
2013 (gdbpy_breakpoints): Update.
2014 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2016 (bpfinishpy_handle_stop): Update.
2017 (bpfinishpy_handle_exit): Update.
2018 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2019 (svr4_update_solib_event_breakpoints): Update.
2021 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2023 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2024 when unwrapping single-field structs.
2026 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2028 * dwarf2read.c: Remove includes.
2030 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2032 * ui-out.c (ui_out::call_do_message): Silence
2033 -Wformat-nonliteral warning.
2035 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2037 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2038 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2039 include: readline/tilde.h.
2041 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2043 * remote.c (remote_target::get_trace_status): Remove declaration of
2044 trace_regblock_size.
2046 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2048 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2049 (show_user): Remove declaration of cmdlist.
2050 * cli/cli-cmds.h (max_user_call_depth): Declare.
2051 * cli/cli-script.c (execute_user_command): Remove declaration
2052 of max_user_call_depth.
2054 2019-10-11 Jim Wilson <jimw@sifive.com>
2056 * gdbsupport/print-utils.h (pulongest): Fix comment.
2057 (plongest): Likewise.
2058 (phex): Add missing comment, mention leading zeros.
2059 (phex_nz): Add mention of no leading zeros to comment.
2061 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2062 plongest instead of unsigned long long cast.
2064 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2066 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2067 for external_editor_command and gdbtk_test.
2069 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2071 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2072 * varobj.c (varobjdebug): Move comment to...
2073 * varobj.h (varobjdebug): ...here, and declare.
2075 2019-10-09 Tom Tromey <tom@tromey.com>
2077 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2080 2019-10-09 Tom Tromey <tom@tromey.com>
2082 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2083 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2084 * tui/tui-command.c (tui_cmd_window::resize)
2085 (tui_refresh_cmd_win): Update.
2086 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2087 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2088 * tui/tui-data.c (~tui_gen_win_info): Remove.
2089 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2090 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2091 (tui_redisplay_readline, tui_mld_flush)
2092 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2093 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2094 (tui_data_window::erase_data_content)
2095 (tui_data_item_window::rerender)
2096 (tui_data_item_window::refresh_window): Update.
2097 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2098 (box_win, tui_gen_win_info::make_window)
2099 (tui_gen_win_info::make_visible): Update.
2100 (tui_delete_win): Remove.
2101 * tui/tui-winsource.c
2102 (tui_source_window_base::do_erase_source_content): Update.
2103 (tui_show_source_line, tui_source_window_base::update_tab_width)
2104 (tui_source_window_base::update_exec_info): Update.
2105 * tui/tui-data.h (struct curses_deleter): New.
2106 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2107 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2109 2019-10-09 Tom Tromey <tom@tromey.com>
2111 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2113 2019-10-09 Tom Tromey <tom@tromey.com>
2115 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2116 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2118 2019-10-09 Tom Tromey <tom@tromey.com>
2120 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2121 window height directly.
2122 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2124 * tui/tui-layout.c (tui_default_win_height): Remove.
2125 (tui_default_win_viewport_height): Remove.
2127 2019-10-09 Tom Tromey <tom@tromey.com>
2129 * tui/tui.h: Remove comments.
2131 2019-10-09 Tom de Vries <tdevries@suse.de>
2133 * python/lib/gdb/printer/bound_registers.py: Use
2134 '^builtin_type_bound128' as regexp argument for
2135 add_builtin_pretty_printer.
2137 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2139 * guile/guile.c (guile_extension_script_ops): Remove forward
2140 declaration and mark as static.
2141 (guile_script_ops): Likewise.
2142 (extension_language_guile): Move further down in the file so
2143 it can reference the definitions for guile_{extension_,}script_ops.
2145 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2147 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2148 except SORTL, DFLTCC, and KDSA.
2150 2019-10-08 Tom Tromey <tromey@adacore.com>
2152 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2153 (struct safe_symbol_file_add_args): Remove.
2155 2019-10-08 Tom Tromey <tromey@adacore.com>
2157 * windows-nat.c: Don't include buildsym-legacy.h.
2159 2019-10-08 Tom Tromey <tromey@adacore.com>
2161 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2163 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2165 * gdbtypes.c (overload_debug): Move comment to header.
2166 * gdbtypes.h (overload_debug): Declare.
2167 * valops.c: Remove declaration of overload_debug, instead
2170 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2172 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2174 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2176 * language.h (lang_frame_mismatch_warn): ... here. Also add
2178 * top.c (lang_frame_mismatch_warn): Remove declaration.
2179 (check_frame_language_change): Pass lang_frame_mismatch_warn
2182 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2184 * c-lang.h (vtbl_ptr_name): Declare.
2185 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2187 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2189 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2191 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2194 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2196 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2197 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2198 * ctfread.c: New file.
2199 * ctfread.h: New file.
2200 * elfread.c: Include ctfread.h.
2201 (struct elfinfo text_p): New member ctfsect.
2202 (elf_locate_sections): Mark CTF section.
2203 (elf_symfile_read): Call elfctf_build_psymtabs.
2204 * Makefile.in (LIBCTF): Add.
2207 (DIST): Add ctfread.c.
2209 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2211 * ctfread.c (struct nextfield): Renamed to ...
2212 (struct ctf_nextfield): ... this.
2213 (struct field_info): Renamed to ...
2214 (strut ctf_field_info): ... this.
2215 (attach_fields_to_type): Update for renamed structures.
2216 (ctf_add_member_cb): Likewise.
2217 (ctf_add_enum_member_cb): Likewise.
2218 (process_struct_members): Likewise.
2219 (process_enum_type): Likewise.
2221 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2223 * tracectf.h: Rename, was ctf.h.
2224 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2225 * tracefile.c: Likewise.
2226 * tracepoint.c: Remove unused include ctf.h.
2227 * mi/mi-main.c: Likewise.
2228 * Makefile.in Replace ctf.c with tracectf.c.
2230 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2232 * version.in: Change version number to "9.0.50.DATE-git".
2234 2019-10-03 Tom Tromey <tom@tromey.com>
2237 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2239 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2241 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2242 cp_search_name_hash.
2243 * NEWS: Add entry about nested function support.
2245 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2246 Andrew Burgess <andrew.burgess@embecosm.com>
2248 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2249 for nested static variables when searchin VAR_DOMAIN.
2250 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2251 global scope, update comment.
2252 (add_partial_subprogram): Call add_partial_subprogram recursively
2253 for nested subroutines when processinng Fortran.
2254 (load_partial_dies): Process the child entities of a subprogram
2255 when processing Fortran.
2256 (partial_die_parent_scope): Handle building scope
2257 for Fortran nested functions.
2258 (process_die): Record that nested functions have a scope.
2259 (new_symbol): Always record Fortran subprograms on the global
2261 (determine_prefix): How to build the prefix for Fortran
2264 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2266 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2267 have just sent the thread a SIGSTOP and are waiting for it to
2270 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2272 * btrace.c (btrace_add_pc): Remove whitespace before the template
2273 parameter in 'std::vector <...>'.
2274 (parse_xml_btrace_block): Likewise.
2275 (btrace_maint_decode_pt): Likewise.
2276 (btrace_maint_update_packets): Likewise.
2277 (btrace_maint_print_packets): Likewise.
2278 * btrace.h (struct btrace_maint_info): Likewise.
2279 * dwarf2read.c (struct type_unit_group): Likewise.
2280 (build_type_psymtabs_reader): Likewise.
2281 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2282 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2283 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2285 2019-10-03 Tom de Vries <tdevries@suse.de>
2287 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2288 the first line of the help text for set/show style metadata.
2290 2019-10-02 Tom Tromey <tromey@adacore.com>
2292 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2293 * gdbsupport/common-inferior.c: New file.
2294 * infcmd.c (startup_with_shell): Don't define.
2295 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2296 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2297 * inferior.h (startup_with_shell): Don't declare.
2299 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2301 * gdbsupport/gdb_assert.h: Include errors.h.
2302 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2304 2019-10-02 Tom Tromey <tromey@adacore.com>
2306 * NEWS: Add $_ada_exception entry.
2307 * ada-lang.c (struct ada_catchpoint): Add constructor.
2308 <m_kind>: New member.
2309 (allocate_location_exception, re_set_exception): Remove
2311 (should_stop_exception): Compute $_ada_exception.
2312 (check_status_exception, print_it_exception)
2313 (print_one_exception, print_mention_exception): Remove
2315 (allocate_location_catch_exception, re_set_catch_exception)
2316 (check_status_exception, print_it_catch_exception)
2317 (print_one_catch_exception, print_mention_catch_exception)
2318 (print_recreate_catch_exception)
2319 (allocate_location_catch_exception_unhandled)
2320 (re_set_catch_exception_unhandled)
2321 (check_status_exception, print_it_catch_exception_unhandled)
2322 (print_one_catch_exception_unhandled)
2323 (print_mention_catch_exception_unhandled)
2324 (print_recreate_catch_exception_unhandled)
2325 (allocate_location_catch_assert, re_set_catch_assert)
2326 (check_status_assert, print_it_catch_assert)
2327 (print_one_catch_assert, print_mention_catch_assert)
2328 (print_recreate_catch_assert)
2329 (allocate_location_catch_handlers, re_set_catch_handlers)
2330 (check_status_handlers, print_it_catch_handlers)
2331 (print_one_catch_handlers, print_mention_catch_handlers)
2332 (print_recreate_catch_handlers): Remove.
2333 (create_ada_exception_catchpoint): Update.
2334 (initialize_ada_catchpoint_ops): Update.
2336 2019-10-02 Tom Tromey <tromey@adacore.com>
2338 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2339 (create_excep_cond_exprs): Simplify exception string computation.
2340 (ada_exception_catchpoint_cond_string): Likewise.
2342 2019-10-02 Tom Tromey <tromey@adacore.com>
2344 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2345 * ada-lang.c (lesseq_defined_than): Handle
2347 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2349 (dwarf2_has_info): Likewise.
2350 (new_symbol): Set maybe_copied on symbol when
2352 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2354 <can_copy>: New member.
2355 * elfread.c (record_minimal_symbol): Set maybe_copied
2356 on symbol when appropriate.
2357 (elf_symfile_read): Update call to dwarf2_has_info.
2358 * minsyms.c (lookup_minimal_symbol_linkage): New
2360 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2361 * symtab.c (get_symbol_address, get_msymbol_address):
2363 * symtab.h (get_symbol_address, get_msymbol_address):
2365 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2367 (struct symbol, struct minimal_symbol) <maybe_copied>:
2370 2019-10-02 Tom Tromey <tromey@adacore.com>
2372 * source.c (struct current_source_location): New.
2373 (current_source_key): New global.
2374 (current_source_symtab, current_source_line)
2375 (current_source_pspace): Remove.
2376 (get_source_location): New function.
2377 (get_current_source_symtab_and_line)
2378 (set_default_source_symtab_and_line)
2379 (set_current_source_symtab_and_line)
2380 (clear_current_source_symtab_and_line, select_source_symtab)
2381 (info_source_command, print_source_lines_base)
2382 (info_line_command, search_command_helper, _initialize_source):
2385 2019-10-02 Tom Tromey <tromey@adacore.com>
2387 * source.c (select_source_symtab): Don't call
2388 decode_line_with_current_source.
2390 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2392 * symtab.c (lookup_global_symbol): Search global block.
2394 2019-10-02 Tom Tromey <tromey@adacore.com>
2396 * coffread.c (process_coff_symbol): Update.
2397 * dwarf2read.c (var_decode_location, new_symbol): Update.
2398 * mdebugread.c (parse_symbol): Update.
2399 * objfiles.c (relocate_one_symbol): Update.
2400 * stabsread.c (define_symbol, fix_common_block)
2401 (scan_file_globals): Update.
2402 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2403 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2404 * xcoffread.c (process_xcoff_symbol): Update.
2406 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2408 * MAINTAINERS: Update my email address.
2410 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2412 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2414 (build_type_psymtabs_reader): Update for std::vector.
2415 (build_type_psymtab_dependencies): Likewise.
2416 * dwarf2read.h: Remove use of DEF_VEC_P.
2417 (typedef sig_type_ptr): Delete.
2419 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2421 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2423 (btrace_maint_decode_pt): Likewise, and move allocation of the
2424 vector outside of the loop.
2425 (btrace_maint_update_packets): Update to handle change from VEC to
2427 (btrace_maint_print_packets): Likewise.
2428 (maint_info_btrace_cmd): Likewise.
2429 * btrace.h: Remove use of DEF_VEC_O.
2430 (typedef btrace_pt_packet_s): Delete.
2431 (struct btrace_maint_info) <packets>: Change fromm VEC to
2433 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2435 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2437 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2438 make accesses into the vector constant references.
2439 (btrace_add_pc): Update for std::vector.
2440 (btrace_stitch_bts): Likewise.
2441 (parse_xml_btrace_block): Likewise.
2442 (btrace_maint_update_packets): Likewise.
2443 (btrace_maint_print_packets): Likewise.
2444 (maint_info_btrace_cmd): Likewise.
2445 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2447 (btrace_data::empty): Likewise.
2448 (btrace_data_append): Likewise.
2449 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2450 (typedef btrace_block_s): Delete.
2451 (struct btrace_block): Add constructor.
2452 (struct btrace_data_bts) <blocks>: Change to std::vector.
2453 * nat/linux-btrace.c (perf_event_read_bts): Update for
2455 (linux_read_bts): Likewise.
2457 2019-10-01 Tom Tromey <tom@tromey.com>
2459 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2461 2019-10-01 Tom Tromey <tom@tromey.com>
2463 * stack.c (print_frame, info_frame_command_core): Use
2465 * linux-thread-db.c (try_thread_db_load_1)
2466 (try_thread_db_load_from_pdir_1): Use styled_string.
2467 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2468 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2469 (maybe_print_unsupported_script_warning)
2470 (maybe_print_script_not_found_warning): Use styled_string.
2471 * ada-lang.c (user_select_syms): Use styled_string.
2473 2019-10-01 Tom Tromey <tom@tromey.com>
2475 * p-lang.c (pascal_printstr): Use metadata style.
2476 * value.c (show_convenience): Use metadata style.
2477 * valprint.c (valprint_check_validity, val_print_optimized_out)
2478 (val_print_not_saved, val_print_unavailable)
2479 (val_print_invalid_address, generic_val_print, val_print)
2480 (value_check_printable, val_print_array_elements): Use metadata
2482 * ui-out.h (class ui_out) <field_fmt>: New overload.
2483 <do_field_fmt>: Add style parameter.
2484 * ui-out.c (ui_out::field_fmt): New overload.
2485 * typeprint.c (type_print_unknown_return_type)
2486 (val_print_not_allocated, val_print_not_associated): Use metadata
2488 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2490 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2491 * tracepoint.c (tvariables_info_1): Use metadata style.
2492 * stack.c (print_frame_arg, print_frame_info, print_frame)
2493 (info_frame_command_core): Use metadata style.
2494 * skip.c (info_skip_command): Use metadata style.
2495 * rust-lang.c (rust_print_enum): Use metadata style.
2496 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2498 * python/py-framefilter.c (py_print_single_arg): Use metadata
2500 * printcmd.c (do_one_display, print_variable_and_value): Use
2502 * p-valprint.c (pascal_val_print)
2503 (pascal_object_print_value_fields): Use metadata style.
2504 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2505 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2507 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2508 * m2-valprint.c (m2_print_long_set): Use metadata style.
2509 * m2-typeprint.c (m2_print_type): Use metadata style.
2510 * infcmd.c (print_return_value_1): Use metadata style.
2511 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2512 * f-valprint.c (info_common_command_for_block): Use metadata
2514 * f-typeprint.c (f_type_print_base): Use metadata style.
2515 * expprint.c (print_subexp_standard): Use metadata style.
2516 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2517 * cli/cli-style.h (class cli_style_option): Add constructor.
2518 (metadata_style): Declare.
2519 * cli/cli-style.c (metadata_style): New global.
2520 (_initialize_cli_style): Register metadata style.
2521 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2523 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2524 * c-typeprint.c (c_type_print_base_struct_union)
2525 (c_type_print_base_1): Use metadata style.
2526 * breakpoint.c (watchpoint_value_print)
2527 (print_one_breakpoint_location): Use metadata style.
2528 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2530 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2532 * ada-valprint.c (val_print_packed_array_elements, printstr)
2533 (print_field_values, ada_val_print_ref, ada_val_print): Use
2535 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2537 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2539 * ada-lang.c (user_select_syms): Use metadata style.
2541 2019-10-01 Tom Tromey <tom@tromey.com>
2543 * cli/cli-cmds.c (pwd_command): Style output.
2545 2019-10-01 Pedro Alves <palves@redhat.com>
2546 Tom Tromey <tom@tromey.com>
2548 * symtab.c (print_symbol_info): Use %ps.
2549 (print_msymbol_info): Use %ps.
2550 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2551 * printcmd.c (print_variable_and_value): Use %ps.
2552 * macrocmd.c (show_pp_source_pos): Use %ps.
2553 * infrun.c (print_exited_reason): Use ui_out::message.
2554 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2555 (describe_other_breakpoints): Use ui_out::message and new
2557 (say_where): Use new formats.
2558 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2561 2019-10-01 Pedro Alves <palves@redhat.com>
2562 Tom Tromey <tom@tromey.com>
2564 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2565 (test_gdb_formats): New function.
2566 (run_tests): Call it.
2567 (test_format_specifier): Update.
2568 * utils.h (fputs_filtered): Update comment.
2569 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2570 (fputs_styled_unfiltered): Declare.
2571 * utils.c (fputs_styled_unfiltered): New function.
2572 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2573 (vfprintf_filtered): Update.
2574 (vfprintf_unfiltered, vprintf_filtered): Update.
2575 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2576 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2577 disallow_ui_out_field>: New constants.
2578 (enum class field_kind): New.
2579 (struct base_field_s, struct signed_field_s): New.
2580 (signed_field): New function.
2581 (struct string_field_s): New.
2582 (string_field): New function.
2583 (struct styled_string_s): New.
2584 (styled_string): New function.
2585 (class ui_out) <message>: Add comment.
2586 <vmessage, call_do_message>: New methods.
2587 <do_message>: Add style parameter.
2588 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2590 (ui_out::message): Rewrite.
2591 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2593 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2594 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2595 gdb_extensions parameter.
2596 (class format_piece): Add parameter to constructor.
2597 (n_int_args): New field.
2598 * gdbsupport/format.c (format_pieces::format_pieces): Add
2599 gdb_extensions parameter. Handle '*'.
2600 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2601 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2602 vfprintf_styled_no_gdbfmt.
2603 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2604 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2606 * ui-style.h (struct ui_file_style) <ptr>: New method.
2608 2019-10-01 Tom Tromey <tom@tromey.com>
2610 * unittests/format_pieces-selftests.c: Update. Add final format.
2611 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2612 empty literal pieces.
2614 2019-10-01 Tom Tromey <tom@tromey.com>
2616 * ui-out.h (enum class ui_out_style_kind): Remove.
2617 (class ui_out) <field_string, field_stsream, do_field_string>:
2618 Change type of "style".
2619 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2620 (ui_out::field_string): Update.
2621 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2623 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2624 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2625 * stack.c (print_frame_arg, print_frame_info, print_frame):
2627 * source.c (print_source_lines_base): Update.
2628 * solib.c (info_sharedlibrary_command): Update.
2629 * skip.c (info_skip_command): Update.
2630 * record-btrace.c (btrace_call_history_src_line)
2631 (btrace_call_history): Update.
2632 * python/py-framefilter.c (py_print_frame): Update.
2633 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2635 * mi/mi-out.c (mi_ui_out::do_table_header)
2636 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2637 (mi_ui_out::do_field_string): Update.
2638 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2640 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2642 * cli-out.c (cli_ui_out::do_table_header)
2643 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2644 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2645 (cli_ui_out::do_field_fmt): Update.
2646 * breakpoint.c (print_breakpoint_location): Update.
2647 (update_static_tracepoint): Update.
2649 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2651 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2652 conversion of gdb_datadir.
2653 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2654 remove not needed c_str ().
2656 2019-09-30 Ali Tamur <tamur@google.com>
2658 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2659 (dwarf2_string_attr): Likewise.
2661 2019-09-30 Ali Tamur <tamur@google.com>
2663 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2664 (process_full_type_unit): Likewise.
2665 (dump_die_shallow): Likewise.
2666 (cu_debug_loc_section): Likewise.
2668 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2670 * minsyms.c (compare_minimal_symbols): Rename to...
2671 (minimal_symbol_is_less_than): ...this, and adjust to STL
2672 conventions (return bool, take arguments as references)
2673 (minimal_symbol_reader::install): Call std::sort instead
2676 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2678 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2680 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2681 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2683 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2685 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2686 * psympriv.h (add_psymbol_to_list): Move comment here and update
2689 2019-09-29 Tom de Vries <tdevries@suse.de>
2691 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2692 Use $tmpdir/$(basename "$output_file").dwz instead of
2693 "${output_file}.dwz".
2695 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2698 * hppa-linux-nat.c: Include gdbarch.h.
2700 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2702 * blockframe.c (find_pc_partial_function): Change return type to bool.
2703 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2704 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2705 (stub_gnu_ifunc_resolve_name): Likewise.
2706 * symtab.c (compare_filenames_for_search): Likewise.
2707 (compare_glob_filenames_for_search): Likewise.
2708 (matching_obj_sections): Likewise.
2709 (symbol_matches_domain): Likewise.
2710 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2711 (find_line_pc): Change return type to bool.
2712 (find_line_pc_range): Likewise.
2713 (producer_is_realview): Likewise.
2714 * symtab.h (symbol_matches_domain): Likewise.
2715 (find_pc_partial_function): Likewise.
2716 (find_pc_line_pc_range): Likewise.
2717 (in_gnu_ifunc_stub): Likewise.
2718 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2719 (find_line_pc): Likewise.
2720 (find_line_pc_range): Likewise.
2721 (matching_obj_sections): Likewise.
2722 (find_line_symtab): Change out parameter to bool.
2723 (producer_is_realview): Change return type to bool.
2724 (compare_filenames_for_search): Likewise.
2725 (compare_glob_filenames_for_search): Likewise.
2727 2019-09-26 Tom Tromey <tom@tromey.com>
2729 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2730 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2731 * gdb_usleep.h: Remove.
2732 * gdb_usleep.c: Remove.
2733 * utils.c: Don't include gdb_usleep.h.
2735 2019-09-26 Tom Tromey <tromey@adacore.com>
2737 * python/py-type.c (type_to_type_object): Call check_typedef
2740 2019-09-26 Tom Tromey <tom@tromey.com>
2742 * utils.h (initialize_utils): Don't declare.
2743 * top.c (gdb_init): Don't call initialize_utils.
2744 * utils.c (initialize_utils): Remove. Move contents...
2745 (_initialize_utils): ... here.
2747 2019-09-25 Tom Tromey <tom@tromey.com>
2749 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2750 * utils.h (make_hex_string): Don't declare.
2751 * utils.c (make_hex_string): Remove.
2753 2019-09-24 Tom de Vries <tdevries@suse.de>
2756 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2757 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2759 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2761 * NEWS: Mention new simulator port for PRU.
2763 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2765 * ada-exp.y (write_object_remaining): Update.
2766 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2767 and eliminate the static buffer.
2768 (ada_decode_symbol): Update.
2769 (ada_la_decode): Update.
2770 (ada_sniff_from_mangled_name): Update.
2771 (is_valid_name_for_wild_match): Update.
2772 (ada_lookup_name_info::matches): Update and simplify.
2773 (name_matches_regex): Update.
2774 (ada_add_global_exceptions): Update.
2775 * ada-lang.h (ada_decode): Update signature.
2776 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2777 * dwarf-index-write.c (debug_names::insert): Update.
2779 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2781 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2784 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2786 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2787 Change "nonzero" to "true" in documentation.
2789 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2791 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2792 (_initialize_darwin_solib): Don't set
2793 darwin_so_ops.lookup_lib_global_symbol.
2794 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2795 set_gdbarch_iterate_over_objfiles_in_search_order.
2796 (elf_lookup_lib_symbol): Rename to...
2797 (svr4_iterate_over_objfiles_in_search_order): this, and update
2798 to iterate semantics.
2799 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2800 * solib.c (solib_global_lookup): Remove.
2801 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2802 (solib_global_lookup): Remove.
2803 * symtab.c (lookup_global_or_static_symbol): Remove call to
2804 solib_global_lookup.
2806 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2808 * NEWS: Move entries about default MI version now being
2809 version 3, and about the GDB/MI fix for multi-location
2810 breakpoints to the "since GDB 8.3" section.
2812 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2816 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2818 * NEWS: Mention that Cell/B.E. debugging support was removed.
2819 * MAINTAINERS: Remove spu target.
2821 * config/djgpp/fnchange.lst: Remove entries for removed files.
2823 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2824 spu-multiarch.o, and spu-tdep.o.
2825 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2826 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2827 spu-multiarch.c, and spu-tdep.c.
2828 * spu-linux-nat.c: Remove file.
2829 * spu-multiarch.c: Remove file.
2830 * spu-tdep.c: Remove file.
2831 * spu-tdep.h: Remove file.
2832 * solib-spu.c: Remove file.
2833 * solib-spu.h: Remove file.
2835 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2836 * configure.nat (spu-linux): Remove.
2837 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2838 solib-multiarch.o from gdb_target_obs.
2841 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2843 (ppc_linux_no_features): Update.
2844 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2846 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2847 (tdesc_powerpc_cell64l): Likewise.
2848 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2849 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2851 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2852 Do not include "features/rs6000/powerpc-cell32l.c" or
2853 "features/rs6000/powerpc-cell64l.c".
2854 (ppc_linux_spu_section): Remove.
2855 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2856 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2857 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2858 (ppc_linux_spe_context_lookup): Remove.
2859 (ppc_linux_spe_context_inferior_created): Remove.
2860 (ppc_linux_spe_context_solib_loaded): Remove.
2861 (ppc_linux_spe_context_solib_unloaded): Remove.
2862 (ppc_linux_spe_context): Remove.
2863 (struct ppu2spu_cache): Remove.
2864 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2865 (struct ppu2spu_data): Remove.
2866 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2867 ppu2spu_unwind): Remove.
2868 (ppc_linux_init_abi): Remove Cell/B.E. support.
2869 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2871 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2872 (rs6000/powerpc-cell64l-expedite): Likewise
2873 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2874 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2875 rs6000/powerpc-cell64l.xml.
2876 * features/rs6000/powerpc-cell32l.xml: Remove.
2877 * features/rs6000/powerpc-cell64l.xml: Likewise.
2878 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2879 * features/rs6000/powerpc-cell64l.c: Likewise.
2880 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2881 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2882 * regformats/reg-spu.dat: Remove.
2884 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2885 * corelow.c (struct spuid_list): Remove.
2886 (add_to_spuid_list): Remove.
2887 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2888 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2889 (remote_protocol_features): Remove associated entries.
2890 (_initialize_remote): No longer initialize them.
2891 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2892 * linux-nat.c (SPUFS_MAGIC): Remove.
2893 (linux_proc_xfer_spu): Remove.
2894 (spu_enumerate_spu_ids): Remove.
2895 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2896 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2897 (linux_make_corefile_notes): No longer call it.
2899 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2900 (cooked_write_test): Likewise.
2902 2019-09-20 Tom Tromey <tom@tromey.com>
2904 * NEWS: Mention case-sensitivity of TUI commands.
2905 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2906 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2907 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2909 2019-09-20 Tom Tromey <tom@tromey.com>
2911 * tui/tui-source.c (tui_source_window::set_contents): Use
2912 make_unique_xstrdup.
2913 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2914 make_unique_xstrdup.
2916 2019-09-20 Tom Tromey <tom@tromey.com>
2918 * tui/tui-data.c: Remove separator comments.
2919 * tui/tui-layout.c: Remove separator comments.
2920 * tui/tui-win.c: Remove separator comments.
2921 * tui/tui-wingeneral.c: Remove separator comments.
2923 2019-09-20 Tom Tromey <tom@tromey.com>
2925 * tui/tui.h (strcat_to_buf): Don't declare.
2926 * tui/tui.c (strcat_to_buf): Remove.
2928 2019-09-20 Tom Tromey <tom@tromey.com>
2930 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2932 * tui/tui-source.c (tui_source_window::set_contents)
2933 (tui_source_window::location_matches_p)
2934 (tui_source_window::maybe_update): Update.
2936 2019-09-20 Tom Tromey <tom@tromey.com>
2938 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2940 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2942 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2943 (tui_data_window::line_from_reg_element_no)
2944 (tui_data_window::first_reg_element_no_inline)
2945 (tui_data_window::show_registers)
2946 (tui_data_window::show_register_group)
2947 (tui_data_window::display_registers_from)
2948 (tui_data_window::display_registers_from_line)
2949 (tui_data_window::first_data_item_displayed)
2950 (tui_data_window::delete_data_content_windows)
2951 (tui_data_window::erase_data_content)
2952 (tui_data_window::do_scroll_vertical)
2953 (tui_data_window::refresh_window)
2954 (tui_data_window::check_register_values): Update.
2956 2019-09-20 Tom Tromey <tom@tromey.com>
2958 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2959 (struct tui_locator_window) <full_name, proc_name>: Now
2961 * tui/tui-stack.c (tui_locator_window::make_status_line)
2962 (tui_locator_window::set_locator_fullname)
2963 (tui_locator_window::set_locator_info): Update.
2964 * tui/tui-source.c (tui_source_window::set_contents)
2965 (tui_source_window::showing_source_p): Update.
2967 2019-09-20 Tom Tromey <tom@tromey.com>
2969 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2970 Don't call tui_locator_win_info_ptr.
2972 2019-09-20 Tom Tromey <tom@tromey.com>
2974 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2976 2019-09-20 Tom Tromey <tom@tromey.com>
2978 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2980 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2981 * tui/tui-layout.c (show_source_disasm_command, show_data)
2982 (show_source_or_disasm_and_command): Use 1 as height for locator.
2984 2019-09-20 Tom Tromey <tom@tromey.com>
2986 * tui/tui.c (tui_enable): Update.
2987 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2989 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2991 * tui/tui-data.c (win_resized): Now bool.
2992 (tui_win_resized): Return bool.
2993 (tui_set_win_resized_to): Accept a bool.
2995 2019-09-20 Tom Tromey <tom@tromey.com>
2997 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2998 Change type of "refresh_values_only".
2999 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3000 type of "refresh_values_only".
3002 2019-09-20 Tom Tromey <tom@tromey.com>
3004 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3006 (tui_disassemble): Add "pos" parameter.
3007 (tui_disasm_window::set_contents): Simplify.
3009 2019-09-20 Tom Tromey <tom@tromey.com>
3011 * tui/tui-winsource.h (struct tui_source_window_base)
3012 <show_source_content>: Now private.
3013 * tui/tui-winsource.c
3014 (tui_source_window_base::show_source_content): Don't handle empty
3017 2019-09-20 Tom Tromey <tom@tromey.com>
3019 * tui/tui-layout.c (show_source_disasm_command)
3020 (show_source_or_disasm_and_command): Don't call
3021 show_source_content.
3023 2019-09-20 Tom Tromey <tom@tromey.com>
3025 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3027 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3028 from tui_make_status_line.
3029 (tui_locator_window::rerender): Update.
3031 2019-09-20 Tom Tromey <tom@tromey.com>
3033 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3034 (tui_locator_window::rerender): Update.
3036 2019-09-20 Tom Tromey <tom@tromey.com>
3038 * tui/tui-winsource.h (struct tui_source_window_base)
3039 <~tui_source_window_base>: Don't declare.
3041 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3042 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3044 * tui/tui-source.c (tui_source_window::set_contents): Update.
3045 (tui_source_window::location_matches_p)
3046 (tui_source_window::maybe_update): Update.
3048 2019-09-20 Tom Tromey <tom@tromey.com>
3050 * tui/tui-winsource.h (~tui_source_element): Remove.
3051 (tui_source_element): Update.
3052 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3053 * tui/tui-winsource.c (tui_show_source_line): Update.
3054 * tui/tui-source.c (tui_source_window::set_contents): Update.
3055 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3057 2019-09-20 Tom Tromey <tom@tromey.com>
3059 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3061 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3062 tui_clear_source_windows_detail.
3063 * tui/tui-winsource.h (struct tui_source_window_base)
3064 <clear_detail>: Don't declare.
3065 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3067 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3069 2019-09-20 Tom Tromey <tromey@adacore.com>
3072 * block.c (contained_in): Fix final return value.
3074 2019-09-20 Alan Modra <amodra@gmail.com>
3076 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3077 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3078 (read_indirect_string_from_dwz): Use bfd accessor.
3079 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3080 * machoread.c (macho_symfile_read_all_oso): Likewise.
3081 * solib.c (solib_bfd_open): Likewise.
3083 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3085 * eval.c: Move declaration of overload_resolution to...
3088 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3090 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3091 * arm-linux-tdep.c: Likewise.
3092 * arm-nbsd-nat.c: Likewise.
3093 * arm-tdep.h: Declare arm_apcs_32.
3094 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3096 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3098 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3099 * dwarf2read.h: Declare dwarf_always_disassemble.
3101 2019-09-19 Tom de Vries <tdevries@suse.de>
3104 * source-cache.c (source_cache::ensure): Catch exception thrown during
3105 construction of the highlighter.
3107 2019-09-18 Alan Modra <amodra@gmail.com>
3109 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3110 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3111 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3112 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3113 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3114 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3115 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3116 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3117 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3118 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3119 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3120 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3121 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3122 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3123 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3124 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3125 * mi/mi-interp.c: Update throughout for bfd section macro and
3127 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3128 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3130 2019-09-18 Tom Tromey <tom@tromey.com>
3133 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3135 (tui_enable): Do not call rl_initialize.
3137 2019-09-18 Christian Groessler <chris@groessler.org>
3139 * alpha-linux-nat.c: Include gdbarch.h.
3141 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3143 * ui-file.c: Include cli/cli-style.h.
3144 (term_cli_styling): Remove cli_styling declaration.
3146 2019-09-18 Alan Modra <amodra@gmail.com>
3148 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3149 to bfd_asymbol_section.
3151 2019-09-18 Alan Modra <amodra@gmail.com>
3153 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3154 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3155 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3157 2019-09-18 Alan Modra <amodra@gmail.com>
3159 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3160 * spu-linux-nat.c (spu_bfd_open): Likewise.
3162 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3164 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3165 to bool to match definition in dwarf2read.c.
3167 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3169 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3170 (print_signatures): Likewise.
3171 (trust_pad_over_xvs): Likewise.
3172 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3173 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3174 * arm-linux-nat.c (arm_apcs_32): Likewise.
3175 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3176 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3177 * arm-tdep.c (arm_debug): Likewise.
3178 (arm_apcs_32): Likewise.
3179 * auto-load.c (debug_auto_load): Likewise.
3180 (auto_load_gdb_scripts): Likewise.
3181 (global_auto_load): Likewise.
3182 (auto_load_local_gdbinit): Likewise.
3183 (auto_load_local_gdbinit_loaded): Likewise.
3184 * auto-load.h (global_auto_load): Likewise.
3185 (auto_load_local_gdbinit): Likewise.
3186 (auto_load_local_gdbinit_loaded): Likewise.
3187 * breakpoint.c (disconnected_dprintf): Likewise.
3188 (breakpoint_proceeded): Likewise.
3189 (automatic_hardware_breakpoints): Likewise.
3190 (always_inserted_mode): Likewise.
3191 (target_exact_watchpoints): Likewise.
3192 (_initialize_breakpoint): Update.
3193 * breakpoint.h (target_exact_watchpoints): Change to bool.
3194 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3195 * cli/cli-cmds.c (trace_commands): Likewise.
3196 * cli/cli-cmds.h (trace_commands): Likewise.
3197 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3199 * cli/cli-logging.c (logging_overwrite): Change to bool.
3200 (logging_redirect): Likewise.
3201 (debug_redirect): Likewise.
3202 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3203 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3205 <boolean_option_def>: Update.
3206 (struct flag_option_def): Change default type of Context to bool
3208 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3209 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3210 (get_setshow_command_value_string): Likewise.
3211 * cli/cli-style.c (cli_styling): Change to bool.
3212 (source_styling): Likewise.
3213 * cli/cli-style.h (source_styling): Likewise.
3214 (cli_styling): Likewise.
3215 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3217 * command.h (var_types): Update comment.
3218 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3219 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3221 (debug_compile_cplus_scopes): Likewise.
3222 * compile/compile-internal.h (compile_debug): Likewise.
3223 * compile/compile.c (compile_debug): Likewise.
3224 (struct compile_options) <raw>: Likewise.
3225 * cp-support.c (catch_demangler_crashes): Likewise.
3226 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3227 (usr_cmd_cris_dwarf2_cfi): Likewise.
3228 * csky-tdep.c (csky_debug): Likewise.
3229 * darwin-nat.c (enable_mach_exceptions): Likewise.
3230 * dcache.c (dcache_enabled_p): Likewise.
3231 * defs.h (info_verbose): Likewise.
3232 * demangle.c (demangle): Likewise.
3233 (asm_demangle): Likewise.
3234 * dwarf-index-cache.c (debug_index_cache): Likewise.
3235 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3236 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3237 * dwarf2read.c (check_physname): Likewise.
3238 (use_deprecated_index_sections): Likewise.
3239 (dwarf_always_disassemble): Likewise.
3240 * eval.c (overload_resolution): Likewise.
3241 * event-top.c (set_editing_cmd_var): Likewise.
3242 (exec_done_display_p): Likewise.
3243 * event-top.h (set_editing_cmd_var): Likewise.
3244 (exec_done_display_p): Likewise.
3245 * exec.c (write_files): Likewise.
3246 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3247 (debug_fbsd_nat): Likewise.
3248 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3250 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3251 <backtrace_past_entry> Likewise.
3252 * gdb-demangle.h (demangle): Likewise.
3253 (asm_demangle): Likewise.
3254 * gdb_bfd.c (bfd_sharing): Likewise.
3255 * gdbcore.h (write_files): Likewise.
3256 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3257 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3258 * gdbthread.h (print_thread_events): Likewise.
3259 * gdbtypes.c (opaque_type_resolution): Likewise.
3260 (strict_type_checking): Likewise.
3261 * gnu-nat.c (gnu_debug_flag): Likewise.
3262 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3263 * guile/scm-param.c (pascm_variable): Add boolval.
3264 (add_setshow_generic): Update.
3265 (pascm_param_value): Update.
3266 (pascm_set_param_value_x): Update.
3267 * hppa-tdep.c (hppa_debug): Change to bool..
3268 * infcall.c (may_call_functions_p): Likewise.
3269 (coerce_float_to_double_p): Likewise.
3270 (unwind_on_signal_p): Likewise.
3271 (unwind_on_terminating_exception_p): Likewise.
3272 * infcmd.c (startup_with_shell): Likewise.
3273 * inferior.c (print_inferior_events): Likewise.
3274 * inferior.h (startup_with_shell): Likewise.
3275 (print_inferior_events): Likewise.
3276 * infrun.c (step_stop_if_no_debug): Likewise.
3277 (detach_fork): Likewise.
3278 (debug_displaced): Likewise.
3279 (disable_randomization): Likewise.
3280 (non_stop): Likewise.
3281 (non_stop_1): Likewise.
3282 (observer_mode): Likewise.
3283 (observer_mode_1): Likewise.
3284 (set_observer_mode): Update.
3285 (sched_multi): Change to bool.
3286 * infrun.h (debug_displaced): Likewise.
3287 (sched_multi): Likewise.
3288 (step_stop_if_no_debug): Likewise.
3289 (non_stop): Likewise.
3290 (disable_randomization): Likewise.
3291 * linux-tdep.c (use_coredump_filter): Likewise.
3292 (dump_excluded_mappings): Likewise.
3293 * linux-thread-db.c (auto_load_thread_db): Likewise.
3294 (check_thread_db_on_load): Likewise.
3295 * main.c (captured_main_1): Update.
3296 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3297 xx2_opt, boolean_opt>: Change to bool.
3298 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3299 * maint.c (maintenance_profile_p): Likewise.
3300 (per_command_time): Likewise.
3301 (per_command_space): Likewise.
3302 (per_command_symtab): Likewise.
3303 * memattr.c (inaccessible_by_default): Likewise.
3304 * mi/mi-main.c (mi_async): Likewise.
3305 (mi_async_1): Likewise.
3306 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3307 * nat/fork-inferior.h (startup_with_shell): Likewise.
3308 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3309 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3310 * nios2-tdep.c (nios2_debug): Likewise.
3311 * or1k-tdep.c (or1k_debug): Likewise.
3312 * parse.c (parser_debug): Likewise.
3313 * parser-defs.h (parser_debug): Likewise.
3314 * printcmd.c (print_symbol_filename): Likewise.
3315 * proc-api.c (procfs_trace): Likewise.
3316 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3317 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3318 (set_parameter_value): Update.
3319 (add_setshow_generic): Update.
3320 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3322 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3324 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3325 * record-btrace.c (record_btrace_target::store_registers): Update.
3326 * record-full.c (record_full_memory_query): Change to bool.
3327 (record_full_stop_at_limit): Likewise.
3328 * record-full.h (record_full_memory_query): Likewise.
3329 * remote-notif.c (notif_debug): Likewise.
3330 * remote-notif.h (notif_debug): Likewise.
3331 * remote.c (use_range_stepping): Likewise.
3332 (interrupt_on_connect): Likewise.
3333 (remote_break): Likewise.
3334 * ser-tcp.c (tcp_auto_retry): Likewise.
3335 * ser-unix.c (serial_hwflow): Likewise.
3336 * skip.c (debug_skip): Likewise.
3337 * solib-aix.c (solib_aix_debug): Likewise.
3338 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3339 (spu_auto_flush_cache_p): Likewise.
3340 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3342 (struct info_print_options) <quiet>: Likewise.
3343 * symfile-debug.c (debug_symfile): Likewise.
3344 * symfile.c (auto_solib_add): Likewise.
3345 (separate_debug_file_debug): Likewise.
3346 * symfile.h (auto_solib_add): Likewise.
3347 (separate_debug_file_debug): Likewise.
3348 * symtab.c (basenames_may_differ): Likewise.
3349 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3350 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3351 (struct info_types_options) <quiet>: Likewise.
3352 * symtab.h (demangle): Likewise.
3353 (basenames_may_differ): Likewise.
3354 * target-dcache.c (stack_cache_enabled_1): Likewise.
3355 (code_cache_enabled_1): Likewise.
3356 * target.c (trust_readonly): Likewise.
3357 (may_write_registers): Likewise.
3358 (may_write_memory): Likewise.
3359 (may_insert_breakpoints): Likewise.
3360 (may_insert_tracepoints): Likewise.
3361 (may_insert_fast_tracepoints): Likewise.
3362 (may_stop): Likewise.
3363 (auto_connect_native_target): Likewise.
3364 (target_stop_and_wait): Update.
3365 (target_async_permitted): Change to bool.
3366 (target_async_permitted_1): Likewise.
3367 (may_write_registers_1): Likewise.
3368 (may_write_memory_1): Likewise.
3369 (may_insert_breakpoints_1): Likewise.
3370 (may_insert_tracepoints_1): Likewise.
3371 (may_insert_fast_tracepoints_1): Likewise.
3372 (may_stop_1): Likewise.
3373 * target.h (target_async_permitted): Likewise.
3374 (may_write_registers): Likewise.
3375 (may_write_memory): Likewise.
3376 (may_insert_breakpoints): Likewise.
3377 (may_insert_tracepoints): Likewise.
3378 (may_insert_fast_tracepoints): Likewise.
3379 (may_stop): Likewise.
3380 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3381 (make_thread_apply_all_options_def_group): Change argument from int*
3383 (thread_apply_all_command): Update.
3384 (print_thread_events): Change to bool.
3385 * top.c (confirm): Likewise.
3386 (command_editing_p): Likewise.
3387 (history_expansion_p): Likewise.
3388 (write_history_p): Likewise.
3389 (info_verbose): Likewise.
3390 * top.h (confirm): Likewise.
3391 (history_expansion_p): Likewise.
3392 * tracepoint.c (disconnected_tracing): Likewise.
3393 (circular_trace_buffer): Likewise.
3394 * typeprint.c (print_methods): Likewise.
3395 (print_typedefs): Likewise.
3396 * utils.c (debug_timestamp): Likewise.
3397 (sevenbit_strings): Likewise.
3398 (pagination_enabled): Likewise.
3399 * utils.h (sevenbit_strings): Likewise.
3400 (pagination_enabled): Likewise.
3401 * valops.c (overload_resolution): Likewise.
3402 * valprint.h (struct value_print_options) <prettyformat_arrays,
3403 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3404 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3405 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3407 * windows-nat.c (new_console): Likewise.
3408 (cygwin_exceptions): Likewise.
3409 (new_group): Likewise.
3410 (debug_exec): Likewise.
3411 (debug_events): Likewise.
3412 (debug_memory): Likewise.
3413 (debug_exceptions): Likewise.
3414 (useshell): Likewise.
3415 * windows-tdep.c (maint_display_all_tib): Likewise.
3416 * xml-support.c (debug_xml): Likewise.
3418 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3420 * source.c (prepare_path_for_appending): New function.
3421 (openp): Make use of new function.
3422 (find_and_open_source): Search for the compilation directory and
3423 source file as a relative path beneath the directory search path.
3425 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3427 * source-cache.c (source_cache::get_line_charpos): Catch
3428 exceptions and return false, this matches the behaviour documented
3431 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3433 * ada-tasks.c (info_task): Remove quoting of the task's name.
3435 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3437 * symfile.c (auto_solib_add): Replace comment with a reference
3440 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3442 * NEWS: Mention that gdb can now be compiled with Python 3
3445 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3447 * maint.c (maint_print_section_data::maint_print_section_data):
3448 Force use of 'float log10 (float)' by casting the argument to
3451 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3453 * maint.c: Add 'cmath' include.
3454 (struct maint_print_section_data): New structure.
3455 (print_section_index): New function.
3456 (print_bfd_section_info): Add header comment, small whitespace
3457 cleanup, and update to call new print_section_index function.
3458 (print_objfile_section_info): Likewise.
3459 (maint_obj_section_from_bfd_section): New function.
3460 (print_bfd_section_info_maybe_relocated): New function.
3461 (maintenance_info_sections): Add header comment, always use
3462 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3464 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3466 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3467 inner scope, add check that the objfile has psymtabs before
3468 checking psymtabs_addrmap.
3469 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3471 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3473 * NEWS: Announce that Ada task names are now shown at more places,
3474 and between quotes (except in info task output).
3475 * gdb/ada-tasks.c (task_to_str): New function.
3476 (display_current_task_id): Call task_to_str.
3477 (task_command_1): Likewise.
3478 (print_ada_task_info): In non-mi mode, Properly align headers and data
3479 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3481 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3483 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3484 prstatus.pr_lwp.pr_info instead of making it up.
3486 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3488 * auto-load.c (auto_load_expand_dir_vars): Update.
3489 * defs.h (gdb_datadir): Change to std::string.
3490 (python_libdir): Likewise.
3491 (relocate_gdb_directory): Change return type to std::string.
3492 * guile/guile.c (gdbscm_data_directory): Update.
3493 (initialize_scheme_side): Update.
3494 * jit.c (jit_reader_dir): Change to std::string.
3495 (jit_reader_load_command): Update.
3496 * main.c (gdb_datadir): Change to std::string.
3497 (python_libdir): Likewise.
3498 (set_gdb_data_directory): Update.
3499 (relocate_path): Change to return std::string.
3500 (relocate_gdb_directory): Change to return std::string.
3501 (relocate_gdbinit_path_maybe_in_datadir): Update.
3502 (captured_main_1): Update.
3503 * python/python.c (do_start_initialization): Update.
3504 * top.c (show_gdb_datadir): Update.
3505 * xml-syscall.c (xml_init_syscalls_info): Update.
3506 (init_syscalls_info): Update.
3508 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3510 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3511 out of get_init_files.
3512 (get_init_files): Update.
3514 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3516 * main.c (get_init_files): Change to use std::string.
3517 (captured_main_1): Update.
3518 (print_gdb_help): Update.
3520 2019-09-11 Ali Tamur <tamur@google.com>
3522 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3525 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3527 * dbxread.c (read_dbx_symtab): Update.
3528 * dwarf2read.c (load_partial_dies): Update.
3529 * mdebugread.c (parse_partial_symbols): Update.
3530 (handle_psymbol_enumerators): Update.
3531 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3532 * psymtab.c (add_psymbol_to_bcache): Likewise.
3533 (add_psymbol_to_list): Likewise.
3534 * symtab.c (symbol_set_names): Likewise.
3535 * symtab.h (symbol_set_names): Likewise.
3536 * xcoffread.c (scan_xcoff_symtab): Update.
3538 2019-09-11 Tom Tromey <tom@tromey.com>
3540 * symfile-mem.c (symbol_file_add_from_memory): Use
3542 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3543 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3545 2019-09-10 Tom Tromey <tromey@adacore.com>
3547 * dwarf-index-write.c (write_psymbols): Extend error message.
3548 (debug_names::insert): Add Ada code.
3549 (debug_names::write_psymbols): Remove Ada check.
3550 (debug_names) <m_string_obstack>: New member.
3551 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3552 (gdb_index_symbol_name_matcher::matches): Remove.
3553 (mapped_index_base::find_name_components_bounds): Add "lang"
3555 (mapped_index_base::build_name_components): Also split names
3556 according to Ada syntax.
3557 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3558 type of "match_callback".
3559 (check_match, check_find_bounds_finds)
3560 (dw2_expand_symtabs_matching): Update.
3561 (dw2_debug_names_iterator): Add new constructor.
3562 (dw2_debug_names_map_matching_symbols): New function.
3563 (dw2_debug_names_expand_symtabs_matching): Update.
3564 (dwarf2_debug_names_functions): Use
3565 dw2_debug_names_map_matching_symbols.
3567 2019-09-10 Tom Tromey <tromey@adacore.com>
3569 * dwarf2read.c (dw2_get_file_names_reader): Add the
3570 CU's file name to the results.
3572 2019-09-10 Tom Tromey <tromey@adacore.com>
3574 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3575 map_matching_symbols. Update.
3576 * dwarf2read.c (dw2_map_matching_symbols): Update.
3577 * psymtab.c (match_partial_symbol): Change type; update.
3578 (psym_map_matching_symbols): Likewise.
3579 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3581 * symfile.h (struct quick_symbol_functions)
3582 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3585 2019-09-10 Tom Tromey <tromey@adacore.com>
3587 * psymtab.c (map_block): Remove.
3588 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3589 * symtab.c (iterate_over_symbols_terminated): New function.
3590 * symtab.c (iterate_over_symbols_terminated): Declare.
3592 2019-09-10 Tom Tromey <tromey@adacore.com>
3594 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3595 * language.h (struct language_defn) <la_iterate_over_symbols>:
3597 * symtab.c (iterate_over_symbols): Return bool.
3598 * symtab.h (iterate_over_symbols): Return bool.
3600 2019-09-10 Tom Tromey <tromey@adacore.com>
3602 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3603 (add_nonlocal_symbols): Update.
3604 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3605 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3606 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3607 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3608 Change type of "callback". Remove "data".
3611 2019-09-09 Ali Tamur <tamur@google.com>
3613 * dwarf2read.c (comp_unit_head): Update comment.
3614 (dwarf2_dwo_name): New function declaration.
3615 (dwarf_unit_type_name): New function declaration.
3616 (read_comp_unit_head): Add support for new compilation units,
3617 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3618 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3619 (currently named as "signature") in their header. Also clarify error
3621 (lookup_dwo_id): New function. Returns the dwo id of the given
3623 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3624 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3626 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3627 (dwarf2_dwo_name): Get the dwo name if present.
3628 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3631 2019-09-09 Tom Tromey <tom@tromey.com>
3633 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3635 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3637 * python/python.c (do_start_initialization): Make progname_copy static,
3638 to avoid a leak report.
3640 2019-09-08 Tom Tromey <tom@tromey.com>
3642 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3644 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3646 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3647 Change type to gdb::optional<block_enum>.
3648 (dw2_symtab_iter_init): Change block_index parameter type
3649 to gdb::optional<block_enum>.
3650 (dw2_lookup_symbol): Change block_index parameter
3651 type to block_enum.c
3652 (dw2_debug_names_lookup_symbol): Likewise.
3653 * psymtab.c (psym_lookup_symbol): Likewise.
3654 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3655 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3658 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3660 * defs.h (relocate_gdb_directory): Change int to bool in
3661 signature and rename flag to relocatable.
3662 * main.c (relocate_path): Likewise.
3663 (relocate_gdb_directory): Likewise.
3665 2019-09-06 Alan Modra <amodra@gmail.com>
3667 * coffread.c (coff_symfile_read): Constify filename variable.
3668 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3669 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3670 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3671 * solib.c (reload_shared_libraries_1): Likewise.
3672 * symfile.c (reread_symbols): Likewise.
3673 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3674 * solib-darwin.c (darwin_bfd_open): Likewise.
3675 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3677 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3679 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3680 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3682 2019-09-03 Tom Tromey <tromey@adacore.com>
3684 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3686 (has_negatives): Unbias a range type bound.
3687 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3688 * gdbtypes.c (operator==): Handle new field.
3689 (create_range_type): Add "bias" parameter.
3690 (create_static_range_type, resolve_dynamic_range): Update.
3691 * gdbtypes.h (struct range_bounds) <bias>: New member.
3692 (create_range_type): Add bias parameter.
3693 * printcmd.c (print_scalar_formatted): Unbias range types.
3694 * value.c (unpack_long): Unbias range types.
3695 (pack_long): Bias range types.
3697 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3699 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3702 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3704 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3705 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3706 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3707 (compile_probe_arg): Likewise.
3708 * probe.h (get_argument_count): Likewise.
3709 * solib-svr4.c (solib_event_probe_action): Likewise.
3710 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3712 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3714 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3716 (svr4_create_solib_event_breakpoints): ...from here.
3718 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3720 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3721 suffix from warning message.
3723 2019-08-30 Tom Tromey <tom@tromey.com>
3725 * tui/tui-winsource.h (struct tui_source_window_base)
3726 <refresh_all>: Don't declare.
3727 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3729 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3730 tui_show_locator_content.
3731 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3733 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3734 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3737 2019-08-30 Tom Tromey <tom@tromey.com>
3739 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3741 2019-08-30 Tom Tromey <tom@tromey.com>
3743 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3744 Remove unnecessary forward declarations.
3746 2019-08-30 Tom Tromey <tom@tromey.com>
3748 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3750 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3751 tui_show_locator_content.
3753 2019-08-30 Tom Tromey <tom@tromey.com>
3755 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3756 (tui_locator_window::rerender): Rewrite using body of previous
3757 tui_show_locator_content.
3759 2019-08-30 Tom Tromey <tom@tromey.com>
3761 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3762 set_locator_fullname>: New methods.
3763 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3764 Rename from tui_set_locator_fullname.
3765 (tui_locator_window::set_locator_info): Rename from
3766 tui_set_locator_info. Return bool.
3767 (tui_update_locator_fullname, tui_show_frame_info): Update.
3769 2019-08-30 Tom Tromey <tom@tromey.com>
3771 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3773 2019-08-30 Tom Tromey <tom@tromey.com>
3775 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3778 2019-08-30 Tom Tromey <tom@tromey.com>
3780 * tui/tui-wingeneral.c (box_win): Assume win_info and
3781 win_info->handle cannot be NULL.
3783 2019-08-30 Tom Tromey <tom@tromey.com>
3785 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3786 refresh_window>: Declare.
3787 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3789 (tui_data_item_window::rerender): Rename from
3790 tui_display_register.
3791 (tui_data_item_window::refresh_window): New method.
3792 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3795 2019-08-30 Tom Tromey <tom@tromey.com>
3797 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3798 regs_column_count, current_group>: Move later. Now private.
3799 <get_current_group>: New method.
3800 * tui/tui-regs.c (tui_reg_command): Update.
3801 * tui/tui-layout.c (tui_set_layout): Update.
3803 2019-08-30 Tom Tromey <tom@tromey.com>
3805 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3806 (tui_data_window::rerender): Don't call
3807 check_and_display_highlight_if_needed.
3808 (tui_data_window::refresh_all): Remove call to
3811 2019-08-30 Tom Tromey <tom@tromey.com>
3813 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3814 (tui_data_window::display_registers_from)
3815 (tui_data_window::display_reg_element_at_line)
3816 (tui_data_window::display_registers_from_line): Remove checks of
3819 2019-08-30 Tom Tromey <tom@tromey.com>
3821 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3823 * tui/tui-regs.c (tui_data_window::show_registers): Call
3825 (tui_data_window::rerender): Rename from display_all_data.
3826 (tui_data_window::rerender): Remove old implementation.
3828 2019-08-30 Tom Tromey <tom@tromey.com>
3830 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3832 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3834 2019-08-29 Bernhard Wodok <barto@gmx.net>
3835 Sergio Durigan Junior <sergiodj@redhat.com>
3838 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3840 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3842 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3843 when searching for types.
3845 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3847 * f-lang.c (f_language_defn): Use f_print_typedef.
3848 * f-lang.h (f_print_typedef): Declare.
3849 * f-typeprint.c (f_print_typedef): Define.
3851 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3853 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3855 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3857 * cli/cli-utils.c (info_print_options_defs): Delete.
3858 (make_info_print_options_def_group): Delete.
3859 (extract_info_print_options): Delete.
3860 (info_print_command_completer): Delete.
3861 (info_print_args_help): Add extra parameter, and optionally
3862 include text about -n flag.
3863 * cli/cli-utils.h (struct info_print_options): Delete.
3864 (extract_info_print_options): Delete declaration.
3865 (info_print_command_completer): Delete declaration.
3866 (info_print_args_help): Add extra parameter, extend header
3868 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3870 * stack.c (struct info_print_options): New type.
3871 (info_print_options_defs): New file scoped variable.
3872 (make_info_print_options_def_group): New static function.
3873 (info_print_command_completer): New static function.
3874 (info_locals_command): Update to use new local functions.
3875 (info_args_command): Likewise.
3876 (_initialize_stack): Add extra parameter to calls to
3877 info_print_args_help.
3878 * symtab.c (search_symbols): Add extra parameter, use this to
3879 possibly excluse non-debug symbols.
3880 (symtab_symbol_info): Add extra parameter, which is passed on to
3882 (struct info_print_options): New type.
3883 (info_print_options_defs): New file scoped variable.
3884 (make_info_print_options_def_group): New static function.
3885 (info_print_command_completer): New static function.
3886 (info_variables_command): Update to use local functions, and pass
3887 extra parameter through to symtab_symbol_info.
3888 (info_functions_command): Likewise.
3889 (info_types_command): Pass additional argument through to
3891 (rbreak_command): Pass extra argument to search_symbols.
3892 (_initialize_symtab): Add extra arguments for calls to
3893 info_print_args_help, and update help text for 'info variables',
3894 'whereis', and 'info functions' commands.
3895 * symtab.h (search_symbols): Add extra argument to declaration.
3896 * NEWS: Mention new flags.
3898 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3900 * symtab.c (lookup_static_symbol): Call the new function (and move
3901 it down to be next to lookup_global_symbol).
3902 (struct global_sym_lookup_data): Add block_enum member and rename to...
3903 (struct global_or_static_sym_lookup_data): ...this.
3904 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3905 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3906 (lookup_symbol_global_or_static_iterator_cb): ...this.
3907 (lookup_global_or_static_symbol): New function.
3908 (lookup_global_symbol): Call new function.
3910 2019-08-26 Tom de Vries <tdevries@suse.de>
3913 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3914 when pc_probe.prob == NULL.
3916 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3918 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3919 variable symbol_linkage to symbol_linkage_.
3921 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3923 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3924 represent whether the symbol is static, dynamic, or we don't
3927 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3929 * gdb/rx-tdep.c (rx_register_names): New.
3930 (rx_register_name): Delete.
3931 (rx_psw_type): Delete.
3932 (rx_fpsw_type): Delete.
3933 (rx_register_type): Delete.
3934 (rx_gdbarch_init): Convert target-descriptions.
3935 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3936 * gdb/features/Makefile: Add rx.xml.
3937 * gdb/features/rx.xml: New.
3938 * gdb/features/rx.c: Generated.
3939 * gdb/NEWS: Mention target description support.
3941 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3943 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3946 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3948 * configure.ac: Don't check for 'dlfcn.h' (moved to
3949 gdbsupport/common.m4).
3950 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3952 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3953 * compile/compile-c-support.c: Include
3954 'gdbsupport/gdb-dlfcn.h'.
3955 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3956 * gdb-dlfcn.c: Move to...
3957 * gdbsupport/gdb-dlfcn.c: ... here.
3958 * gdb-dlfcn.h: Move to...
3959 * gdbsupport/gdb-dlfcn.h: ... here.
3961 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3963 * nios2-tdep.c (struct reg_value): Improve comments. Make
3964 the offset field signed.
3966 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3968 * python/lib/gdb/__init__.py (_execute_file): New function.
3969 * python/python.c (python_run_simple_file): Call gdb._execute_file
3972 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3974 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3975 all uses as this was never set to anything but a zero value.
3977 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3979 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3981 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3983 * tui/tui-data.h (tui_gen_win_info): Add an =default
3984 move constructor, required by some GCC versions.
3986 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3988 * go32-nat.c (go32_sysinfo): Add hygon_p.
3990 2019-08-20 Tom Tromey <tom@tromey.com>
3992 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3993 line_from_reg_element_no, first_reg_element_no_inline,
3994 display_all_data, delete_data_content_windows,
3995 erase_data_content>: Now private.
3997 2019-08-20 Tom Tromey <tom@tromey.com>
3999 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4000 (tui_unhighlight_win, tui_highlight_win)
4001 (tui_win_info::make_window): Update.
4002 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4004 2019-08-20 Tom Tromey <tom@tromey.com>
4006 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4007 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4008 (MAX_PID_WIDTH): Move to tui-stack.c.
4009 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4010 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4011 (MAX_PID_WIDTH): Move from tui-data.h.
4013 2019-08-20 Tom Tromey <tom@tromey.com>
4015 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4016 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4018 (tui_gen_win_info::make_window): Rename from tui_make_window.
4019 (tui_win_info::make_window): New method.
4020 (tui_gen_win_info::make_visible): Update.
4021 * tui/tui-source.c (tui_source_window::set_contents): Update.
4022 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4023 (tui_data_window::display_registers_from): Update.
4024 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4025 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4029 (struct tui_win_info) <make_window>: Declare.
4030 <can_box>: Now virtual.
4031 <title>: New member.
4032 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4033 * tui/tui-command.c (tui_cmd_window::resize): Update.
4035 2019-08-20 Tom Tromey <tom@tromey.com>
4037 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4038 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4039 (tui_data_window::check_register_values): Update.
4041 2019-08-20 Tom Tromey <tom@tromey.com>
4043 * tui/tui-regs.h (struct tui_data_window): Use
4044 DISABLE_COPY_AND_ASSIGN.
4045 <regs_content>: Change type, removing unique_ptr.
4046 <tui_data_window>: Add move constructor.
4047 * tui/tui-regs.c (tui_data_window::show_registers)
4048 (tui_data_window::show_register_group)
4049 (tui_data_window::display_registers_from)
4050 (tui_data_window::display_registers_from)
4051 (tui_data_window::first_data_item_displayed)
4052 (tui_data_window::delete_data_content_windows)
4053 (tui_data_window::rerender, tui_data_window::refresh_window)
4054 (tui_data_window::check_register_values): Update.
4056 2019-08-20 Tom Tromey <tom@tromey.com>
4058 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4059 show_register_group>: Declare.
4060 (tui_show_register_group): Don't declare.
4061 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4063 (tui_data_window::show_register_group): Rename from
4064 tui_show_register_group.
4065 (tui_data_window::check_register_values, tui_reg_command):
4067 * tui/tui-layout.c (tui_set_layout): Update.
4069 2019-08-20 Tom Tromey <tom@tromey.com>
4071 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4073 (tui_check_register_values): Don't declare.
4074 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4075 from tui_check_register_values.
4076 * tui/tui-hooks.c (tui_register_changed): Update.
4078 2019-08-20 Tom Tromey <tom@tromey.com>
4080 * tui/tui-regs.c (tui_reg_layout): Move later.
4081 (tui_show_registers): Don't enable TUI mode or change layout.
4083 2019-08-20 Tom Tromey <tom@tromey.com>
4085 * tui/tui-regs.h (struct tui_data_item_window)
4086 <~tui_data_item_window>: Remove.
4087 <content>: Now a unique_xmalloc_ptr.
4088 * tui/tui-regs.c (tui_register_format): Return a
4090 (tui_get_register): Update.
4091 (~tui_data_item_window): Remove.
4092 (tui_data_window::display_registers_from, tui_display_register):
4094 * tui/tui-io.h (tui_expand_tabs): Update.
4095 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4096 Remove "col" parameter.
4098 2019-08-20 Tom Tromey <tom@tromey.com>
4100 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4102 * tui/tui-regs.c (~tui_data_item_window): Update.
4104 2019-08-20 Tom Tromey <tom@tromey.com>
4106 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4109 2019-08-20 Tom Tromey <tom@tromey.com>
4111 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4113 2019-08-20 Tom Tromey <tom@tromey.com>
4115 * tui/tui-source.h (struct tui_source_window): Update.
4116 * tui/tui-regs.c (tui_show_registers): Update.
4117 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4118 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4119 (NO_REGS_STRING): Remove defines.
4121 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4123 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4124 unnecessary thread walk if remote doesn't support the packet.
4126 2019-08-19 Tom Tromey <tromey@adacore.com>
4128 * python/py-value.c (value_has_field): Fix indentation.
4130 2019-08-19 Tom Tromey <tromey@adacore.com>
4132 * printcmd.c (do_one_display, info_display_command): Update.
4133 * block.h (contained_in): Return bool. Add allow_nested
4135 * block.c (contained_in): Return bool. Add allow_nested
4138 2019-08-19 Tom Tromey <tom@tromey.com>
4140 * configure: Rebuild.
4141 * configure.ac: Disallow the combination of -static-libstdc++ and
4143 * source-cache.c (get_language_name): Handle rust.
4144 (source_cache::get_source_lines): Ignore highlighting exceptions.
4146 2019-08-16 Tom Tromey <tom@tromey.com>
4148 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4149 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4150 (struct tui_source_window_base) <make_visible, refresh_window,
4151 resize>: Remove methods.
4152 <execution_info>: Remove field.
4153 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4154 (tui_show_source_line, tui_source_window_base)
4155 (~tui_source_window_base): Update.
4156 (tui_source_window_base::resize)
4157 (tui_source_window_base::make_visible)
4158 (tui_source_window_base::refresh_window): Remove.
4159 (tui_source_window_base::update_exec_info): Update.
4160 * tui/tui-source.c (tui_source_window::set_contents): Update.
4161 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4163 2019-08-16 Tom Tromey <tom@tromey.com>
4165 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4166 deprecated_query_hook.
4168 2019-08-16 Tom Tromey <tom@tromey.com>
4170 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4171 (tui_update_source_windows_with_line): Update.
4172 * tui/tui-source.h (struct tui_source_window)
4173 <show_symtab_source>: Declare.
4174 (tui_show_symtab_source): Don't declare.
4175 * tui/tui-source.c (tui_show_symtab_source): Rename from
4176 tui_show_symtab_source.
4178 2019-08-16 Tom Tromey <tom@tromey.com>
4180 * tui/tui-winsource.h (struct tui_source_window_base)
4181 <set_contents>: Declare.
4182 * tui/tui-winsource.c
4183 (tui_source_window_base::update_source_window_as_is): Update.
4184 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4186 (tui_set_source_content): Don't declare.
4187 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4188 tui_set_source_content.
4189 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4191 (tui_set_disassem_content): Don't declare.
4192 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4193 tui_set_disassem_content.
4195 2019-08-16 Tom Tromey <tom@tromey.com>
4197 * tui/tui-winsource.h (struct tui_source_window_base)
4198 <update_breakpoint_info>: Declare.
4199 (tui_update_breakpoint_info): Don't declare.
4200 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4201 (tui_update_all_breakpoint_info): Update.
4202 (tui_source_window_base::update_breakpoint_info): Rename from
4203 tui_update_breakpoint_info.
4204 (tui_source_window_base::update_exec_info): Update.
4206 2019-08-16 Tom Tromey <tom@tromey.com>
4208 * tui/tui-winsource.h (struct tui_source_window_base)
4209 <update_source_window>: Declare.
4210 (tui_update_source_window): Don't declare.
4211 * tui/tui-winsource.c
4212 (tui_source_window_base::update_source_window): Rename from
4213 tui_update_source_window.
4214 (tui_source_window_base::rerender): Update.
4215 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4216 * tui/tui-disasm.c (tui_show_disassem)
4217 (tui_show_disassem_and_update_source)
4218 (tui_disasm_window::maybe_update): Update.
4220 2019-08-16 Tom Tromey <tom@tromey.com>
4222 * tui/tui-winsource.h (struct tui_source_window_base)
4223 <update_source_window_as_is>: Declare.
4224 (tui_update_source_window_as_is): Don't declare.
4225 * tui/tui-winsource.c (tui_update_source_window): Update
4226 (tui_source_window_base::update_source_window_as_is): Rename from
4227 tui_update_source_window_as_is.
4228 (tui_source_window_base::refill): Update.
4229 * tui/tui-source.c (tui_show_symtab_source): Update.
4230 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4233 2019-08-16 Tom Tromey <tom@tromey.com>
4235 * tui/tui-winsource.h (tui_update_source_window)
4236 (tui_update_source_window_as_is): Remove "noerror" parameter.
4237 * tui/tui-winsource.c (tui_update_source_window)
4238 (tui_update_source_window_as_is): Remove "noerror" parameter.
4239 (tui_update_source_windows_with_addr)
4240 (tui_update_source_windows_with_line)
4241 (tui_source_window_base::rerender)
4242 (tui_source_window_base::refill): Update.
4243 * tui/tui-source.h (tui_set_source_content)
4244 (tui_show_symtab_source): Remove "noerror" parameter.
4245 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4247 (tui_show_symtab_source): Likewise.
4248 (tui_source_window::maybe_update): Update.
4249 * tui/tui-disasm.c (tui_show_disassem)
4250 (tui_show_disassem_and_update_source)
4251 (tui_disasm_window::do_scroll_vertical)
4252 (tui_disasm_window::maybe_update): Update.
4254 2019-08-16 Tom Tromey <tom@tromey.com>
4256 * tui/tui.c (tui_is_window_visible): Update.
4257 * tui/tui-wingeneral.c (tui_make_window)
4258 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4259 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4260 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4261 (tui_set_win_height_command, parse_scrolling_args): Update.
4262 * tui/tui-source.c (tui_source_window::style_changed): Update.
4263 * tui/tui-regs.c (tui_show_registers)
4264 (tui_data_window::first_data_item_displayed)
4265 (tui_data_window::delete_data_content_windows)
4266 (tui_check_register_values, tui_reg_command): Update.
4267 * tui/tui-disasm.c (tui_show_disassem): Update.
4268 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4270 <is_visible>: Remove field.
4271 * tui/tui-data.c (tui_next_win, tui_prev_win)
4272 (tui_delete_invisible_windows): Update.
4274 2019-08-16 Tom Tromey <tom@tromey.com>
4276 * tui/tui-winsource.h (struct tui_source_window_base)
4277 <m_has_locator>: Remove.
4278 * tui/tui-layout.c (show_source_disasm_command, show_data)
4279 (show_source_or_disasm_and_command): Update.
4281 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4283 * NEWS (Other MI changes): New subsection.
4284 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4285 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4286 * arch-utils.c (default_get_pc_address_flags): New function.
4287 * arch-utils.h (default_get_pc_address_flags): New declaration.
4288 * gdbarch.sh: Add get_pc_address_flags.
4289 * gdbarch.c: Regenerate.
4290 * gdbarch.h: Likewise.
4291 * stack.c (print_pc): New function.
4292 (print_frame_info) (print_frame): Call print_pc.
4294 2019-08-16 Tom de Vries <tdevries@suse.de>
4296 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4297 print_objfile_section_info.
4299 2019-08-15 Tom Tromey <tom@tromey.com>
4301 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4302 calling update_cmdwin_start_line.
4303 * tui/tui-winsource.h (struct tui_source_window_base)
4304 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4305 <rerender>: Declare.
4306 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4308 (tui_source_window_base::set_new_height): Remove.
4309 (tui_source_window_base::rerender): Rename from
4310 do_make_visible_with_new_height.
4311 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4313 (tui_win_info::make_invisible_and_set_new_height)
4314 (tui_win_info::make_visible_with_new_height): Remove.
4315 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4317 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4318 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4319 do_make_visible_with_new_height>: Don't declare.
4320 <rerender>: Declare.
4321 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4323 (tui_data_window::do_make_visible_with_new_height): Remove.
4324 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4325 call tui_show_locator_content.
4326 (tui_gen_win_info::resize): Call rerender.
4327 (show_source_or_disasm_and_command): Don't call
4328 tui_show_locator_content.
4329 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4331 (struct tui_win_info) <rerender>: Declare.
4332 <set_new_height, make_invisible_and_set_new_height,
4333 make_visible_with_new_height>: Don't declare.
4334 * tui/tui-data.c (tui_win_list::rerender): New method.
4335 * tui/tui-command.h (struct tui_cmd_window)
4336 <do_make_visible_with_new_height>: Don't declare.
4338 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4340 2019-08-15 Tom Tromey <tromey@adacore.com>
4342 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4343 * ada-lang.c (ada_enum_name): Likewise.
4345 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4347 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4349 (GdbOutputErrorFile): Likewise.
4350 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4352 (execute_unwinders): Rename to have a leading underscore.
4353 (auto_load_packages): Likewise.
4354 (global scope): Adjust call to auto_load_packages accordingly.
4355 (GdbSetPythonDirectory): Likewise.
4356 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4357 instead of execute_unwinders.
4359 2019-08-15 Tom Tromey <tom@tromey.com>
4361 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4362 (show_data): Don't change window visibility.
4363 (tui_gen_win_info::resize): Remove special case for command
4364 window. Use wresize, when available.
4365 (show_source_or_disasm_and_command): Don't change window
4367 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4368 <make_visible>: New method.
4369 * tui/tui-command.c (tui_cmd_window::resize): New method.
4371 2019-08-15 Tom Tromey <tom@tromey.com>
4373 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4374 (struct tui_source_windows): New.
4375 * tui/tui-winsource.c (tui_display_main): Update.
4376 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4377 (new_height_ok, parse_scrolling_args): Update.
4378 * tui/tui-layout.c (show_layout, show_data): Update.
4379 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4380 (tui_add_to_source_windows): Don't declare.
4381 * tui/tui-data.c (source_windows, tui_source_windows)
4382 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4384 2019-08-15 Tom Tromey <tom@tromey.com>
4386 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4388 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4389 * tui/tui-layout.c (show_source_disasm_command, show_data):
4391 (tui_gen_win_info::resize): Rename.
4392 (show_source_or_disasm_and_command): Update.
4393 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4396 2019-08-15 Tom Tromey <tom@tromey.com>
4398 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4399 * tui/tui-interp.c (tui_interp::init): Don't call
4400 tui_initialize_static_data.
4401 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4403 2019-08-15 Tom Tromey <tom@tromey.com>
4405 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4406 examine tui_win_list.
4408 2019-08-15 Tom Tromey <tom@tromey.com>
4410 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4411 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4412 tui_clear_source_content.
4413 (tui_clear_source_content): Remove.
4414 (tui_source_window_base::do_erase_source_content): Hoist call to
4416 * tui/tui-stack.c (tui_show_frame_info): Don't call
4417 tui_clear_source_content.
4419 2019-08-15 Tom Tromey <tom@tromey.com>
4421 * tui/tui-winsource.h (struct tui_source_window_base)
4422 <do_erase_source_content>: New method.
4423 <erase_source_content>: New method.
4424 (tui_erase_source_content): Don't declare.
4425 * tui/tui-winsource.c (tui_clear_source_content): Update.
4426 (tui_source_window_base::do_erase_source_content): Rename from
4427 tui_erase_source_content.
4428 (tui_source_window_base::show_source_content): Update.
4429 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4430 * tui/tui-source.h (struct tui_source_window)
4431 <erase_source_content>: New method.
4432 * tui/tui-disasm.h (struct tui_disasm_window)
4433 <erase_source_content>: New method.
4435 2019-08-15 Tom Tromey <tom@tromey.com>
4437 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4438 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4440 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4441 * tui/tui-source.c (tui_set_source_content): Update.
4442 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4444 2019-08-15 Tom Tromey <tom@tromey.com>
4446 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4447 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4449 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4451 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4453 (tui_source_window::maybe_update): Update.
4455 2019-08-15 Tom Tromey <tom@tromey.com>
4457 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4458 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4460 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4462 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4464 (tui_disasm_window::maybe_update): Update.
4466 2019-08-15 Tom Tromey <tom@tromey.com>
4468 * tui/tui-winsource.h (struct tui_source_window_base)
4469 <maybe_update>: Declare.
4470 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4472 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4474 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4475 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4477 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4479 2019-08-15 Tom Tromey <tom@tromey.com>
4481 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4483 2019-08-15 Tom Tromey <tom@tromey.com>
4485 * tui/tui-wingeneral.c: Include tui-stack.h.
4486 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4487 (struct tui_locator_window): Move from tui-data.h.
4488 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4489 (tui_initialize_static_data): Move from tui-data.c.
4490 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4491 (struct tui_locator_window): Move to tui-stack.c.
4492 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4493 (tui_initialize_static_data): Move to tui-stack.c.
4495 2019-08-15 Tom Tromey <tom@tromey.com>
4497 * tui/tui-layout.c (show_source_disasm_command)
4498 (show_source_or_disasm_and_command): Use make_visible method, not
4500 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4503 2019-08-15 Tom Tromey <tom@tromey.com>
4505 * tui/tui-wingeneral.h (tui_make_window): Update.
4506 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4508 (tui_gen_win_info::make_visible): Update.
4509 * tui/tui-regs.c (tui_data_window::display_registers_from):
4511 * tui/tui-layout.c (show_source_disasm_command)
4512 (show_source_or_disasm_and_command): Update.
4513 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4514 (enum tui_box): Remove.
4515 (struct tui_win_info) <can_box>: New method.
4516 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4519 2019-08-15 Tom de Vries <tdevries@suse.de>
4521 * linux-nat-trad.c: Include gdbarch.h.
4523 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4525 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4528 2019-08-14 Tom Tromey <tromey@adacore.com>
4530 * darwin-nat.c: Include gdbarch.h.
4531 * darwin-nat-info.c: Include gdbarch.h.
4533 2019-08-13 Tom Tromey <tom@tromey.com>
4535 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4537 * tui/tui-data.c (tui_initialize_static_data): Update.
4539 2019-08-13 Tom Tromey <tom@tromey.com>
4541 * tui/tui-winsource.h (struct tui_exec_info_window)
4542 <~tui_exec_info_window, maybe_allocate_content, get_content,
4544 (struct tui_source_window_base) <set_exec_info_content,
4545 show_exec_info_content>: Don't declare.
4546 * tui/tui-winsource.c
4547 (tui_exec_info_window::maybe_allocate_content): Remove.
4548 (tui_source_window_base::update_exec_info): Rename from
4549 set_exec_info_content.
4550 (tui_source_window_base::show_exec_info_content)
4551 (tui_source_window_base::update_exec_info): Remove.
4553 2019-08-13 Tom Tromey <tom@tromey.com>
4555 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4557 * tui/tui-winsource.c (tui_update_source_window_as_is)
4558 (tui_update_source_windows_with_addr, tui_erase_source_content):
4560 (tui_clear_exec_info_content): Remove.
4562 2019-08-13 Tom Tromey <tom@tromey.com>
4564 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4566 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4567 call tui_erase_exec_info_content.
4568 (tui_clear_exec_info_content): Rename from
4569 tui_erase_exec_info_content.
4570 (tui_clear_exec_info_content): Delete.
4572 2019-08-13 Tom Tromey <tom@tromey.com>
4574 * tui/tui-winsource.h (struct tui_source_window_base)
4575 <show_exec_info_content>: Declare.
4576 (tui_show_exec_info_content): Don't declare.
4577 * tui/tui-winsource.c
4578 (tui_source_window_base::show_exec_info_content): Rename from
4579 tui_show_exec_info_content.
4580 (tui_source_window_base::update_exec_info): Update.
4582 2019-08-13 Tom Tromey <tom@tromey.com>
4584 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4585 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4586 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4587 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4588 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4589 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4592 2019-08-13 Tom Tromey <tom@tromey.com>
4594 * tui/tui-winsource.h (struct tui_source_window_base)
4595 <update_exec_info>: Declare.
4596 (tui_update_exec_info): Don't declare.
4597 * tui/tui-winsource.c (tui_update_source_window_as_is)
4598 (tui_source_window_base::refresh_all)
4599 (tui_update_all_breakpoint_info): Update.
4600 (tui_source_window_base::update_exec_info): Rename from
4601 tui_update_exec_info.
4602 * tui/tui-stack.c (tui_show_frame_info): Update.
4604 2019-08-13 Tom Tromey <tom@tromey.com>
4606 * tui/tui-winsource.h (struct tui_source_window_base)
4607 <set_exec_info_content>: Declare.
4608 (tui_set_exec_info_content): Don't declare.
4609 * tui/tui-winsource.c
4610 (tui_source_window_base::set_exec_info_content): Rename from
4611 tui_set_exec_info_content.
4612 (tui_update_exec_info): Update.
4614 2019-08-13 Tom Tromey <tom@tromey.com>
4616 * tui/tui-winsource.h (struct tui_source_window_base)
4617 <show_source_content>: Declare.
4618 (tui_show_source_content): Don't declare.
4619 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4620 (tui_source_window_base::show_source_content): Rename from
4621 tui_show_source_content.
4622 (tui_source_window_base::refresh_all): Update.
4623 * tui/tui-layout.c (show_source_disasm_command)
4624 (show_source_or_disasm_and_command): Update.
4626 2019-08-13 Tom Tromey <tom@tromey.com>
4628 * tui/tui-winsource.c (tui_erase_source_content)
4629 (tui_show_source_content, tui_source_window_base::refresh_all):
4631 * tui/tui-wingeneral.h
4632 (tui_check_and_display_highlight_if_needed): Don't declare.
4633 * tui/tui-wingeneral.c
4634 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4635 check_and_display_highlight_if_needed.
4636 * tui/tui-win.c (tui_rehighlight_all)
4637 (tui_win_info::make_visible_with_new_height): Update.
4638 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4639 (tui_data_window::erase_data_content)
4640 (tui_data_window::display_all_data): Update.
4641 * tui/tui-data.h (struct tui_win_info)
4642 <check_and_display_highlight_if_needed>: Declare.
4644 2019-08-13 Tom Tromey <tom@tromey.com>
4646 * tui/tui-win.c (tui_resize_all): Call
4647 tui_delete_invisible_windows.
4648 * tui/tui-layout.c (show_layout): Call
4649 tui_delete_invisible_windows.
4650 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4651 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4653 2019-08-13 Tom Tromey <tom@tromey.com>
4655 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4656 tui_add_win_to_layout.
4658 2019-08-13 Tom Tromey <tom@tromey.com>
4660 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4661 * tui/tui-layout.c (tui_default_win_height): Now static.
4663 2019-08-13 Tom Tromey <tom@tromey.com>
4665 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4667 (show_source_disasm_command, show_source_or_disasm_and_command):
4668 Don't check current layout.
4670 2019-08-13 Tom Tromey <tom@tromey.com>
4672 * tui/tui-wingeneral.c (make_all_visible): Remove.
4673 (tui_make_all_invisible): Simplify.
4674 * tui/tui-layout.c (tui_make_all_invisible): Move from
4675 tui-wingeneral.c; simplify.
4676 (show_layout): Hoist call to tui_make_all_invisible.
4677 (show_data): Don't call tui_make_all_invisible.
4679 2019-08-13 Tom Tromey <tom@tromey.com>
4681 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4682 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4684 2019-08-13 Tom Tromey <tom@tromey.com>
4686 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4688 (show_source_disasm_command, show_data)
4689 (show_source_or_disasm_and_command): Don't use
4690 tui_set_current_layout_to.
4691 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4692 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4694 (tui_set_current_layout_to): Remove.
4696 2019-08-13 Tom Tromey <tom@tromey.com>
4698 * tui/tui-layout.c (tui_set_layout): Update.
4699 * tui/tui-data.h (struct tui_layout_def): Remove.
4700 (tui_layout_def): Don't declare.
4701 * tui/tui-data.c (layout_def): Remove.
4702 (tui_layout_def): Remove.
4704 2019-08-13 Tom Tromey <tom@tromey.com>
4706 * tui/tui-winsource.h (struct tui_source_window_base)
4707 <clear_detail>: No longer "override".
4708 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4709 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4710 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4711 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4713 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4715 2019-08-13 Tom Tromey <tromey@adacore.com>
4717 * tracepoint.c: Don't include readline.h or history.h.
4719 2019-08-12 Tom Tromey <tom@tromey.com>
4721 * configure: Rebuild.
4722 * configure.ac: Check for readline 7.
4723 * NEWS: Mention readline 7 requirement.
4726 2019-08-12 Tom Tromey <tom@tromey.com>
4728 * mingw-hdep.c (gdb_select): Remove readline hack.
4730 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4732 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4733 when the function fails.
4735 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4737 * s390-tdep.c (s390_type_align): New function.
4738 (s390_gdbarch_init): Set it as type_align gdbarch method.
4740 2019-08-09 Tom de Vries <tdevries@suse.de>
4743 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4744 pc_low with relocation offset.
4746 2019-08-07 Tom Tromey <tromey@adacore.com>
4748 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4749 (print_frame_args): Update.
4750 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4752 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4753 * frame.h (struct frame_arg): Add initializers.
4754 <error>: Now a unique_xmalloc_ptr.
4756 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4758 * NEWS: Expand the Pointer Authentication entry.
4759 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4760 (aarch64_frame_unmask_lr): ... to this.
4761 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4762 Call aarch64_frame_unmask_lr.
4763 * frame.c (struct frame_info): Add "masked" variable.
4764 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4765 (fprint_frame): Check for masked pc.
4766 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4768 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4769 * stack.c (print_frame): Check for masked pc.
4771 2019-08-06 Tom Tromey <tom@tromey.com>
4773 * stabsread.c (patch_block_stabs, read_one_struct_field)
4774 (read_enum_type): Use obstack_strndup.
4775 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4776 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4777 * dwarf2read.c (guess_full_die_structure_name)
4778 (anonymous_struct_prefix): Use obstack_strndup.
4779 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4780 * c-exp.y (yylex): Use obstack_strndup.
4781 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4782 (write_var_or_type): Use obstack_strndup.
4784 2019-08-06 Tom Tromey <tom@tromey.com>
4786 * symfile.c (reread_symbols): Use obstack_strdup.
4787 * stabsread.c (read_type): Use obstack_strdup.
4788 * gdb_obstack.h (obstack_strdup): New overload.
4789 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4790 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4791 (dwarf2_canonicalize_name): Use obstack_strdup.
4792 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4793 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4796 2019-08-06 Tom Tromey <tom@tromey.com>
4798 * gdb_obstack.h (obstack_strdup): Define.
4799 * gdb_obstack.c (obstack_strdup): Don't define.
4801 2019-08-06 Tom Tromey <tom@tromey.com>
4803 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4805 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4807 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4808 * stabsread.c (common_block_start): Use obstack_strdup.
4809 * objfiles.c (set_objfile_main_name, objfile): Use
4811 * namespace.c (add_using_directive): Use obstack_strdup.
4812 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4813 * jit.c (finalize_symtab): Use obstack_strdup.
4814 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4815 (guess_partial_die_structure_name, partial_die_info::fixup)
4816 (dwarf2_name): Use obstack_strdup.
4817 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4819 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4820 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4822 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4824 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4826 * unittests/help-doc-selftests.c: New file.
4827 * Makefile.in: Add the new file.
4829 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4832 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4833 the full first line, except when FOR_VALUE_PREFIX. In this case,
4834 the trailing '.' is not output, and the first character is uppercased.
4835 (print_help_for_command): Update call to print_doc_line.
4836 (print_doc_of_command): Likewise.
4837 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4838 * cli/cli-option.c (append_indented_doc): Do not append newline.
4839 (build_help_option): Append newline after first appended_indented_doc
4840 only if a second call is done.
4841 (build_help): Append 2 new lines before each option, except the first
4843 * compile/compile.c (_initialize_compile): Add new lines after
4844 %OPTIONS%, when not at the end of the help.
4845 Change help doc or code
4846 producing the help doc to respect the invariants.
4847 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4848 Also removed the new line after 'Options:', as all other commands
4849 do not put an empty line between 'Options:' and the first option.
4850 * printcmd.c (_initialize_printcmd): Likewise.
4851 * stack.c (_initialize_stack): Likewise.
4852 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4853 incorrectly telling COMMAND is optional.
4854 * ada-lang.c (_initialize_ada_language): Change help doc or code
4855 producing the help doc to respect the invariants.
4856 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4857 * breakpoint.c (_initialize_breakpoint): Likewise.
4858 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4859 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4860 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4861 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4862 _initialize_cli_style): Likewise.
4863 * corelow.c (core_target_info): Likewise.
4864 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4865 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4866 * filesystem.c (_initialize_filesystem): Likewise.
4867 * frame.c (_initialize_frame): Likewise.
4868 * gnu-nat.c (add_task_commands): Likewise.
4869 * infcall.c (_initialize_infcall): Likewise.
4870 * infcmd.c (_initialize_infcmd): Likewise.
4871 * interps.c (_initialize_interpreter): Likewise.
4872 * language.c (_initialize_language): Likewise.
4873 * linux-fork.c (_initialize_linux_fork): Likewise.
4874 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4875 * maint.c (_initialize_maint_cmds): Likewise.
4876 * memattr.c (_initialize_mem): Likewise.
4877 * printcmd.c (_initialize_printcmd): Likewise.
4878 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4880 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4881 * record-btrace.c (_initialize_record_btrace): Likewise.
4882 * record-full.c (_initialize_record_full): Likewise.
4883 * record.c (_initialize_record): Likewise.
4884 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4885 * regcache.c (_initialize_regcache): Likewise.
4886 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4887 _initialize_remote): Likewise.
4888 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4889 * serial.c (_initialize_serial): Likewise.
4890 * skip.c (_initialize_step_skip): Likewise.
4891 * source.c (_initialize_source): Likewise.
4892 * stack.c (_initialize_stack): Likewise.
4893 * symfile.c (_initialize_symfile): Likewise.
4894 * symtab.c (_initialize_symtab): Likewise.
4895 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4896 * top.c (init_main): Likewise.
4897 * tracefile-tfile.c (tfile_target_info): Likewise.
4898 * tracepoint.c (_initialize_tracepoint): Likewise.
4899 * tui/tui-win.c (_initialize_tui_win): Likewise.
4900 * utils.c (add_internal_problem_command): Likewise.
4901 * valprint.c (value_print_option_defs): Likewise.
4903 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4906 * configure.ac: Drop enable-libmcheck support.
4907 * configure, config.in: Rebuild.
4908 * libmcheck.m4: Remove.
4909 * acinclude.m4: Don't include it.
4910 * Makefile.in: Don't distribute it.
4911 * top.c (print_gdb_configuration): Don't mention it.
4913 2019-08-06 Tom Tromey <tom@tromey.com>
4915 * utils.c (set_output_style): Sometimes pass stream to
4917 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4918 * record-btrace.c (btrace_insn_history): Update.
4919 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4921 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4922 Update initializers.
4923 <m_uiout>: New field.
4925 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4926 Remove "uiout" parameter.
4927 (dump_insns): Update.
4928 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4929 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4931 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4933 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4934 (error_in_psymtab_expansion): Likewise.
4935 (lookup_symbol_via_quick_fns): Likewise.
4936 (basic_lookup_transparent_type_quick): Likewise.
4937 (basic_lookup_transparent_type_1): Likewise.
4939 2019-08-06 Tom Tromey <tromey@adacore.com>
4941 * source.c (last_source_error): Now bool.
4942 (print_source_lines_base): Make "noprint" bool. Only open
4943 source file when last_source_visited changes.
4945 2019-08-06 Tom Tromey <tromey@adacore.com>
4947 * annotate.c (annotate_source_line): Use g_source_cache.
4948 * source-cache.c (source_cache::get_plain_source_lines): Change
4949 parameters. Populate m_offset_cache.
4950 (source_cache::ensure): New method.
4951 (source_cache::get_line_charpos): New method.
4952 (extract_lines): Move lower. Change parameters.
4953 (source_cache::get_source_lines): Move lower.
4954 * source-cache.h (class source_cache): Update comment.
4955 <get_line_charpos>: New method.
4956 <get_source_lines>: Update comment.
4957 <clear>: Clear m_offset_cache.
4958 <get_plain_source_lines>: Change parameters.
4959 <ensure>: New method
4960 <m_offset_cache>: New member.
4961 * source.c (forget_cached_source_info_for_objfile): Update.
4962 (info_source_command): Use g_source_cache.
4963 (find_source_lines, open_source_file_with_line_charpos): Remove.
4964 (print_source_lines_base, search_command_helper): Use g_source_cache.
4965 * source.h (open_source_file_with_line_charpos): Don't declare.
4966 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4967 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4970 2019-08-06 Tom Tromey <tromey@adacore.com>
4972 * source-cache.c (source_cache::get_plain_source_lines):
4973 Remove "first_line" and "last_line" parameters.
4974 (source_cache::get_source_lines): Cache plain text.
4975 * source-cache.h (class source_cache)
4976 <get_plain_source_lines>: Update.
4978 2019-08-06 Tom Tromey <tromey@adacore.com>
4980 * source-cache.c (extract_lines): No longer a method.
4981 Changed type of parameter. Include final newline.
4982 (selftests::extract_lines_test): New function.
4983 (_initialize_source_cache): Likewise.
4984 * source-cache.h (class source_cache)
4985 <extract_lines>: Don't declare.
4987 2019-08-06 Tom Tromey <tromey@adacore.com>
4989 * breakpoint.c (init_breakpoint_sal): Update.
4990 (breakpoint): Update.
4991 * breakpoint.h (struct breakpoint) <filter>: Now a
4994 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4996 * NEWS: Mention dictionary access on blocks.
4997 * python/py-block.c (blpy_getitem): New function.
4998 (block_object_as_mapping): New struct.
4999 (block_object_type): Use new struct for tp_as_mapping field.
5001 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5003 * objfiles.h (objfile): Add a comment describing partial symbols.
5005 2019-08-05 Tom Tromey <tromey@adacore.com>
5007 * compile/compile.c (_initialize_compile): Use _(), not N_().
5008 * thread.c (_initialize_thread): Use _(), not N_().
5009 * stack.c (_initialize_stack): Use _(), not N_().
5010 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5012 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5014 * dwarf2read.c (struct dw2_symtab_iterator):
5015 <want_specific_block>: Remove.
5016 <block_index>: Change type to gdb::optional.
5017 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5018 change type of BLOCK_INDEX parameter to gdb::optional.
5019 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5020 (dw2_lookup_symbol): Don't pass argument for
5021 WANT_SPECIFIC_BLOCK.
5022 (dw2_expand_symtabs_for_function): Don't pass argument for
5023 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5024 (class dw2_debug_names_iterator)
5025 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5026 parameter, change BLOCK_INDEX type to gdb::optional.
5027 <m_want_specific_block>: Remove.
5028 <m_block_index>: Change type to gdb::optional.
5029 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5030 gdb::optional. Re-write in function of gdb::optional.
5031 (dw2_debug_names_lookup_symbol): Don't pass argument for
5032 WANT_SPECIFIC_BLOCK.
5033 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5034 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5037 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5039 * NEWS: Mention changes to "info sources" command.
5041 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5043 * symtab.c (filename_partial_match_opts): New struct type.
5044 (struct output_source_filename_data): New members
5045 regexp, c_regexp, partial_match.
5046 (output_source_filename): Use new members to decide to print file.
5047 (info_sources_option_defs): New variable.
5048 (make_info_sources_options_def_group, print_info_sources_header,
5049 info_sources_command_completer):
5051 (info_sources_command): Read new optional arguments.
5052 (_initialize_symtab): Update info sources help.
5054 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5056 * ada-lang.c (exception_support_info_v0): Renamed from...
5057 (default_exception_support_info): ... this. Create new
5059 (ada_has_this_exception_support): Look up catch_handlers_sym.
5060 (ada_exception_support_info_sniffer): Try v0 after default.
5062 2019-08-01 Tom Tromey <tromey@adacore.com>
5064 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5067 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5069 * s12z-tdep.c: Fix include path for s12z-opc.h.
5071 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5073 * NEWS: Require GNU make 3.82.
5075 2019-07-16 Tom Tromey <tom@tromey.com>
5077 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5080 2019-07-30 Tom Tromey <tromey@adacore.com>
5082 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5084 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5086 * printcmd.c (print_address_symbolic): Print negative offsets.
5087 (build_address_symbolic): Force signed arithmetic when computing
5090 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5092 PR/24474: Add a function to lookup static variables.
5093 * NEWS: Mention this new function.
5094 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5095 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5096 * python/python.c (python_GdbMethods): Add new function.
5098 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5100 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5101 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5102 (objfpy_lookup_static_symbol): New function.
5103 (objfile_object_methods): Add new functions.
5105 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5107 * NEWS: Mention 'set|show print frame-info'. Mention new
5108 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5109 backtrace argument. Mention that python frame filtering code
5110 is now consistent with what 'backtrace' command prints.
5112 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5114 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5116 (print_frame_info_auto, print_frame_info_source_line,
5117 print_frame_info_location, print_frame_info_source_and_location,
5118 print_frame_info_location_and_address, print_frame_info_short_location):
5120 (struct frame_print_options): New member print_frame_info.
5121 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5122 * stack.h (get_user_print_what_frame_info): New declaration.
5123 (frame_show_address): New declaration.
5124 * stack.c (print_frame_arguments_choices): New value 'presence'.
5125 (print_frame_info_auto, print_frame_info_source_line,
5126 print_frame_info_location, print_frame_info_source_and_location,
5127 print_frame_info_location_and_address, print_frame_info_short_location,
5128 print_frame_info_choices, print_frame_info_print_what): New definitions.
5129 (print_frame_args): Only print dots for args if print frame-arguments
5131 (frame_print_option_defs): New element for "frame-info".
5132 (get_user_print_what_frame_info): New function.
5133 (frame_show_address): Make non static. Move comment to stack.h.
5134 (print_frame_info_to_print_what): New function.
5135 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5136 to decide what to print.
5137 (backtrace_command_1): Handle the new print_frame_arguments_presence
5139 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5140 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5141 (py_print_frame): In non-mi mode, use LOCATION as default for
5142 print_what, similarly to frame information printed directly by
5143 backtrace command. Handle frame-info user option in non MI mode.
5145 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5147 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5148 Add case for debugging 32-bit target on 64-bit host. Revise
5151 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5153 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5154 instead of find_function_entry_range_from_pc.
5156 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5158 * stack.c (find_frame_funname): Remove code which preferred
5159 minsym over symtab sym in "certain pathological cases".
5161 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5162 parameter. Change type of "do_demangle" to bool.
5163 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5164 Pass suitable "prefer_sym_over_minsym" flag to
5165 build_address_symbolic(). Don't output "+" for negative offsets.
5166 * printcmd.c (print_address_symbolic): Update invocation of
5167 build_address_symbolic to include a "prefer_sym_over_minsym"
5169 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5170 Restrict cases in which use of minimal symbol is preferred to that
5171 of a found symbol. Update comments.
5173 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5174 for entry pc when entry pc is out of range for that FDE.
5176 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5179 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5182 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5184 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5185 this function's Python signature.
5188 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5190 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5191 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5192 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5193 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5194 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5197 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5199 * h8300-tdep.c (h8300_register_name_common): New.
5200 h8300_register_name): Use h8300_register_name_common.
5201 (h8300s_register_name): Likewise.
5202 (h8300sx_register_name): Likewise.
5203 (h8300h_register_nam): New.
5204 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5207 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5209 * arm-tdep.c (arm_skip_cmse_entry): New function.
5210 (arm_is_sgstubs_section): New function.
5211 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5213 2019-07-22 Tom Tromey <tom@tromey.com>
5215 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5218 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5220 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5223 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5225 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5226 so that GDB doesn't match any msymbols when searching in the
5228 (print_symbol_info): Print using typedef_print or type_print based
5229 on the type of the symbol. Add updated FIXME comment moved from...
5230 (_initialize_symtab): ... move and update FIXME comment to above.
5232 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5234 * NEWS: Mention adding -q option to "info types".
5235 * symtab.c (struct info_types_options): New struct.
5236 (info_types_options_defs): New variable.
5237 (make_info_types_options_def_group): New function.
5238 (info_types_command): Use gdb::option framework to parse options.
5239 (info_types_command_completer): New function.
5240 (_initialize_symtab): Extend the help text on "info types" and
5241 register command completer.
5243 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5245 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5246 (lookup_symbol_in_objfile): Change int to block_enum and add a
5247 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5249 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5251 * MAINTAINERS (Write After Approval): Add self.
5253 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5255 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5256 instruction to the dummy code region.
5258 2019-07-19 Tom Tromey <tromey@adacore.com>
5260 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5261 (ARGSUSED, PARAMS, __func__): Remove rules.
5263 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5265 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5266 * features/arm/arm-with-iwmmxt.c: Remove.
5267 * features/arm/arm-with-iwmmxt.xml: Remove.
5268 * features/arm/arm-with-m-fpa-layout.c: Remove.
5269 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5270 * features/arm/arm-with-m-vfp-d16.c: Remove.
5271 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5272 * features/arm/arm-with-m.c: Remove.
5273 * features/arm/arm-with-m.xml: Remove.
5274 * features/arm/arm-with-neon.c: Remove.
5275 * features/arm/arm-with-neon.xml: Remove.
5276 * features/arm/arm-with-vfpv2.c: Remove.
5277 * features/arm/arm-with-vfpv2.xml: Remove.
5278 * features/arm/arm-with-vfpv3.c: Remove.
5279 * features/arm/arm-with-vfpv3.xml: Remove.
5281 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5283 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5285 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5287 * arch/aarch32.c (aarch32_create_target_description): Create
5288 target descriptions using features.
5289 * arch/arm.c (arm_create_target_description)
5290 (arm_create_mprofile_target_description): Likewise.
5291 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5293 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5295 * Makefile.in: Add new files.
5296 * aarch32-tdep.c: New file.
5297 * aarch32-tdep.h: New file.
5298 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5299 Call aarch32_read_description.
5300 * arch/aarch32.c: New file.
5301 * arch/aarch32.h: New file.
5302 * arch/arm.c (arm_create_target_description)
5303 (arm_create_mprofile_target_description): New function.
5304 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5305 (arm_create_target_description)
5306 (arm_create_mprofile_target_description): New declaration.
5307 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5308 read_description functions.
5309 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5311 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5312 * arm-tdep.c (tdesc_arm_list): New variable.
5313 (arm_register_g_packet_guesses): Call create description functions.
5314 (arm_read_description) (arm_read_mprofile_description): New
5316 * arm-tdep.h (arm_read_description)
5317 (arm_read_mprofile_description): Add declaration.
5318 * configure.tgt: Add new files.
5320 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5322 * top.c (new_ui_command): Open specified terminal just once.
5324 2019-07-18 Tom Tromey <tromey@adacore.com>
5326 * symtab.c (main_name): Constify return type.
5327 * symfile.c (set_initial_language): Update.
5328 * symtab.h (main_name): Constify return type.
5330 2019-07-17 Tom Tromey <tom@tromey.com>
5332 * tui/tui-winsource.c (tui_update_source_window)
5333 (tui_update_source_window_as_is)
5334 (tui_update_source_windows_with_line): Remove return.
5335 * tui/tui-disasm.c (tui_show_disassem)
5336 (tui_show_disassem_and_update_source): Remove return.
5337 * tui/tui.c (tui_reset): Remove return.
5338 * tui/tui-wingeneral.c
5339 (tui_check_and_display_highlight_if_needed): Remove return.
5341 2019-07-17 Tom Tromey <tom@tromey.com>
5343 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5345 2019-07-17 Tom Tromey <tom@tromey.com>
5347 * tui/tui-winsource.h (struct tui_exec_info_window)
5348 (struct tui_source_window_base): Move from tui-data.h.
5349 * tui/tui-winsource.c: Move many method definitions from
5350 elsewhere. Remove "structuring" comments.
5351 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5352 (tui_source_window_base::refresh_window): Move to
5354 * tui/tui-win.c (tui_source_window_base::refresh_all)
5355 (tui_source_window_base::update_tab_width)
5356 (tui_source_window_base::set_new_height)
5357 (tui_source_window_base::do_make_visible_with_new_height): Move to
5359 * tui/tui-source.h: Update.
5360 * tui/tui-source.c (tui_source_window_base::reset): Move to
5362 * tui/tui-disasm.h: Update.
5363 * tui/tui-data.h (struct tui_exec_info_window): Move to
5365 (struct tui_source_window_base): Likewise.
5366 * tui/tui-data.c (tui_source_window_base::clear_detail)
5367 (tui_source_window_base, ~tui_source_window_base): Move to
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5372 * tui/tui-win.c (tui_resize_all)
5373 (tui_source_window_base::update_tab_width)
5374 (tui_adjust_win_heights): Update.
5375 (tui_win_info::make_invisible_and_set_new_height): Rename from
5376 make_invisible_and_set_new_height.
5377 * tui/tui-data.h (struct tui_win_info)
5378 <make_invisible_and_set_new_height>: New method.
5380 2019-07-17 Tom Tromey <tom@tromey.com>
5382 * tui/tui.c: Update.
5383 * tui/tui-source.h (struct tui_source_window): Move from
5385 * tui/tui-layout.c: Update.
5386 * tui/tui-disasm.c: Update.
5387 * tui/tui-data.h (struct tui_source_window): Move to
5390 2019-07-17 Tom Tromey <tom@tromey.com>
5392 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5394 * tui/tui-data.h (struct tui_disasm_window): Move to
5397 2019-07-17 Tom Tromey <tom@tromey.com>
5399 * tui/tui-regs.h (struct tui_data_item_window): Move from
5401 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5402 * tui/tui-data.h (struct tui_data_item_window): Move to
5404 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5406 2019-07-17 Tom Tromey <tom@tromey.com>
5408 * tui/tui.c: Update.
5409 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5410 (tui_cmd_window::max_height): Move to tui-command.c.
5411 * tui/tui-layout.c: Update.
5412 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5413 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5415 * tui/tui-command.h (struct tui_cmd_window): Move from
5417 * tui/tui-command.c: Remove "structuring" comments.
5418 (tui_cmd_window::clear_detail)
5419 (tui_cmd_window::do_make_visible_with_new_height)
5420 (tui_cmd_window::max_height): Move from elsewhere.
5422 2019-07-17 Tom Tromey <tom@tromey.com>
5424 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5426 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5427 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5429 2019-07-17 Tom Tromey <tom@tromey.com>
5431 * tui/tui.c: Update.
5432 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5434 * tui/tui-windata.h: Remove file.
5435 * tui/tui-windata.c: Remove file.
5436 * tui/tui-win.c (tui_data_window::set_new_height)
5437 (tui_data_window::do_make_visible_with_new_height): Move to
5439 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5440 * tui/tui-regs.c: Remove "structuring" comments.
5441 (tui_data_window::first_data_item_displayed)
5442 (tui_data_window::delete_data_content_windows)
5443 (tui_data_window::erase_data_content)
5444 (tui_data_window::display_all_data)
5445 (tui_data_window::refresh_all)
5446 (tui_data_window::do_scroll_vertical)
5447 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5448 (tui_data_window::do_make_visible_with_new_height)
5449 (tui_data_window::refresh_window): Move from elsewhere.
5450 (_initialize_tui_regs): Move to end of file.
5451 * tui/tui-layout.c: Update.
5452 * tui/tui-hooks.c: Update.
5453 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5454 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5456 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5458 2019-07-17 Tom Tromey <tom@tromey.com>
5460 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5463 2019-07-17 Tom Tromey <tom@tromey.com>
5465 * tui/tui-win.c (tui_source_window_base::set_new_height)
5466 (tui_source_window_base::do_make_visible_with_new_height): Use
5467 m_has_locator field directly.
5468 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5470 (struct tui_source_window_base) <has_locator>: Likewise.
5472 2019-07-17 Tom Tromey <tom@tromey.com>
5474 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5476 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5478 * tui/tui-win.c (tui_source_window_base::set_new_height)
5479 (tui_source_window_base::set_new_height)
5480 (make_invisible_and_set_new_height)
5481 (tui_source_window_base::do_make_visible_with_new_height)
5482 (tui_source_window_base::do_make_visible_with_new_height):
5484 * tui/tui-layout.c (show_source_disasm_command, show_data)
5485 (show_source_or_disasm_and_command): Update.
5486 * tui/tui-layout.c (show_layout): Update.
5488 2019-07-17 Tom Tromey <tom@tromey.com>
5490 * tui/tui-layout.c (make_data_window): Remove.
5491 (show_data): Unify creation and re-initialization cases.
5493 2019-07-17 Tom Tromey <tom@tromey.com>
5495 * tui/tui-layout.c (make_source_window, make_disasm_window):
5497 (show_data): Unify creation and re-initialization cases.
5499 2019-07-17 Tom Tromey <tom@tromey.com>
5501 * tui/tui-layout.c (make_command_window): Remove.
5502 (show_source_disasm_command, show_source_or_disasm_and_command):
5503 Unify creation and re-initialization cases.
5505 2019-07-17 Tom Tromey <tom@tromey.com>
5507 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5508 creation and re-initialization cases.
5510 2019-07-17 Tom Tromey <tom@tromey.com>
5512 * tui/tui-regs.c (tui_get_register): Return void.
5514 2019-07-17 Tom Tromey <tom@tromey.com>
5516 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5519 2019-07-17 Tom Tromey <tom@tromey.com>
5521 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5524 2019-07-17 Tom Tromey <tom@tromey.com>
5526 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5527 * tui/tui-regs.c (tui_reg_layout): New function.
5528 (tui_show_registers, tui_reg_command): Use it.
5529 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5530 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5532 (tui_layout_command): Remove.
5534 2019-07-17 Tom Tromey <tom@tromey.com>
5536 * tui/tui-layout.h (tui/tui-layout): Return void.
5537 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5539 2019-07-17 Tom Tromey <tom@tromey.com>
5541 * tui/tui-layout.c (show_source_disasm_command, show_data):
5543 (reset_locator): Remove.
5544 (show_source_or_disasm_and_command): Update.
5546 2019-07-17 Tom Tromey <tom@tromey.com>
5548 * tui/tui-source.c (tui_source_window_base::reset): Remove
5550 * tui/tui-layout.c (make_command_window, make_source_window)
5551 (make_disasm_window, make_data_window)
5552 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5553 (reset_locator, show_source_or_disasm_and_command): Update.
5554 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5556 (struct tui_source_window_base) <reset>: Likewise.
5558 2019-07-17 Tom Tromey <tom@tromey.com>
5560 * tui/tui-layout.c (show_source_disasm_command): Use
5562 (reset_locator): New function.
5563 (init_and_make_win): Remove.
5564 (show_source_or_disasm_and_command): Use reset_locator.
5566 2019-07-17 Tom Tromey <tom@tromey.com>
5568 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5570 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5572 * tui/tui-source.c (tui_source_window_base::reset): New method.
5573 * tui/tui-layout.c (make_command_window): Don't call
5575 (make_source_window, make_disasm_window): Don't call
5576 make_source_or_disasm_window.
5577 (make_data_window): Don't call init_and_make_win. Change calling
5579 (show_source_disasm_command, show_data): Simplify.
5580 (make_source_or_disasm_window): Remove.
5581 (show_source_or_disasm_and_command): Simplify.
5582 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5583 (struct tui_source_window_base) <reset>: Likewise.
5584 <execution_info>: Remove initializer.
5585 * tui/tui-data.c (tui_source_window_base): Initialize
5588 2019-07-17 Tom Tromey <tom@tromey.com>
5590 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5593 2019-07-17 Tom Tromey <tom@tromey.com>
5595 * tui/tui.c (tui_rl_other_window): Update.
5596 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5597 superclass method first. Always iterate over regs_content.
5598 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5600 * tui/tui-win.c (tui_set_focus_command): Update.
5602 2019-07-17 Tom Tromey <tom@tromey.com>
5604 * tui/tui-win.c (tui_set_focus_command): Rename from
5605 tui_set_focus. Call tui_enable.
5606 (tui_set_focus_command): Remove.
5608 2019-07-17 Tom Tromey <tom@tromey.com>
5610 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5612 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5614 (tui_data_window::refresh_window): Call refresh_window on data
5615 items. Always call superclass refresh_window.
5616 (tui_win_info::refresh): Remove.
5617 (tui_source_window_base::refresh_window): Update.
5618 (tui_refresh_all): Update.
5619 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5621 (show_source_or_disasm_and_command): Likewise.
5622 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5623 (struct tui_source_window_base) <refresh>: Likewise.
5625 2019-07-17 Tom Tromey <tom@tromey.com>
5627 * tui/tui-winsource.c (tui_clear_source_content)
5628 (tui_show_source_content): Update.
5629 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5630 whether content is empty.
5631 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5634 2019-07-17 Tom Tromey <tom@tromey.com>
5636 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5638 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5639 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5641 2019-07-17 Tom Tromey <tom@tromey.com>
5643 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5644 (struct tui_data_item_window): Update.
5646 2019-07-17 Tom Tromey <tom@tromey.com>
5648 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5649 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5652 2019-07-17 Tom Tromey <tom@tromey.com>
5654 * tui/tui-winsource.h (tui_erase_source_content)
5655 (tui_clear_source_content): Remove "display_prompt" parameter.
5656 * tui/tui-winsource.c (tui_update_source_window_as_is)
5657 (tui_update_source_windows_with_addr): Update.
5658 (tui_clear_source_content): Remove "display_prompt" parameter.
5659 (tui_erase_source_content): Likewise. Simplify.
5660 (tui_show_source_content): Update.
5661 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5662 * tui/tui-stack.c (tui_show_frame_info): Update.
5663 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5666 2019-07-17 Tom Tromey <tom@tromey.com>
5668 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5669 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5671 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5674 2019-07-17 Tom Tromey <tom@tromey.com>
5676 * tui/tui-winsource.c (tui_clear_source_content)
5677 (tui_show_source_content, tui_show_exec_info_content)
5678 (tui_clear_exec_info_content): Update.
5679 * tui/tui-stack.c (tui_show_locator_content): Update.
5680 (tui_show_frame_info): Update.
5681 * tui/tui-source.h (tui_source_window): Don't declare.
5682 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5683 from tui_source_is_displayed.
5684 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5686 (struct tui_source_window_base) <content_in_use>: New field. Now
5688 (struct tui_source_window) <showing_source_p>: New method.
5689 (TUI_SRC_WIN): Change cast.
5690 * tui/tui-data.c (tui_initialize_static_data): Update.
5692 2019-07-17 Tom Tromey <tom@tromey.com>
5694 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5696 * tui/tui-source.c (tui_source_window::location_matches_p): New
5698 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5700 * tui/tui-data.h (struct tui_source_window_base)
5701 <location_matches_p>: New method.
5702 (struct tui_source_window, struct tui_disasm_window)
5703 <location_matches_p>: Likewise.
5705 2019-07-17 Tom Tromey <tom@tromey.com>
5707 * tui/tui-win.c (tui_set_win_height_command): Rename from
5709 (tui_set_win_height_command): Remove.
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5713 * tui/tui-source.c (tui_source_window): New constructor. Add
5715 (~tui_source_window): New destructor.
5716 (tui_source_window::style_changed): New method.
5717 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5718 (tui_attach_detach_observers): Update.
5719 * tui/tui-data.h (struct tui_source_window): Make constructor not
5720 inline. Add destructor.
5721 (struct tui_source_window) <style_changed>: New method.
5722 <m_observable>: New member.
5724 2019-07-17 Tom Tromey <tom@tromey.com>
5726 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5727 * tui/tui-win.c (tui_resize_all): Fix typo.
5729 2019-07-17 Tom Tromey <tom@tromey.com>
5731 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5732 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5733 (tui_refresh_all): Remove "list" parameter. Use foreach.
5734 * tui/tui-win.c (window_name_completer): Use foreach.
5735 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5736 (update_tab_width): Likewise.
5737 * tui/tui-layout.c (show_layout): Update.
5738 * tui/tui-data.h (class tui_window_iterator): New.
5739 (struct all_tui_windows): New.
5740 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5742 2019-07-17 Tom Tromey <tom@tromey.com>
5744 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5745 parameter. Don't reference globals.
5746 (tui_reg_command): Update.
5748 2019-07-17 Tom Tromey <tom@tromey.com>
5750 * tui/tui-regs.c (tui_show_registers): Simplify.
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5754 * tui/tui-regs.c (tui_show_registers): Update.
5755 (tui_show_register_group): Add win_info parameter.
5757 2019-07-17 Tom Tromey <tom@tromey.com>
5759 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5760 Rename from tui_display_reg_element_at_line.
5761 (tui_data_window::display_registers_from_line): Update.
5762 * tui/tui-data.h (struct tui_data_window)
5763 <display_reg_element_at_line>: New method.
5765 2019-07-17 Tom Tromey <tom@tromey.com>
5767 * tui/tui-regs.h (tui_display_registers_from)
5768 (tui_display_registers_from_line): Don't declare.
5769 * tui/tui-windata.c (tui_data_window::display_all_data)
5770 (tui_data_window::refresh_all)
5771 (tui_data_window::do_scroll_vertical): Update.
5772 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5773 from tui_display_registers_from.
5774 (tui_display_reg_element_at_line): Update.
5775 (tui_data_window::display_registers_from_line): Rename from
5776 tui_display_registers_from_line.
5777 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5778 display_registers_from_line>: New methods.
5780 2019-07-17 Tom Tromey <tom@tromey.com>
5782 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5783 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5784 from tui_erase_data_content.
5785 (tui_data_window::display_all_data)
5786 (tui_data_window::refresh_all)
5787 (tui_data_window::do_scroll_vertical): Update.
5788 * tui/tui-regs.c (tui_show_registers): Update.
5789 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5792 2019-07-17 Tom Tromey <tom@tromey.com>
5794 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5797 (tui_data_window::delete_data_content_windows): Rename from
5798 tui_delete_data_content_windows.
5799 (tui_data_window::display_all_data)
5800 (tui_data_window::do_scroll_vertical): Update.
5801 * tui/tui-data.h (struct tui_data_window)
5802 <delete_data_content_windows>: New method.
5804 2019-07-17 Tom Tromey <tom@tromey.com>
5806 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5807 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5809 2019-07-17 Tom Tromey <tom@tromey.com>
5811 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5812 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5813 from tui_display_all_data.
5815 (tui_data_window::do_make_visible_with_new_height): Update.
5816 * tui/tui-regs.c (tui_show_registers): Update.
5817 * tui/tui-layout.c (tui_set_layout): Update.
5818 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5821 2019-07-17 Tom Tromey <tom@tromey.com>
5823 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5824 * tui/tui-windata.c (tui_display_data_from): Remove.
5825 (tui_data_window::refresh_all): Update.
5827 2019-07-17 Tom Tromey <tom@tromey.com>
5829 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5830 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5831 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5832 tui_display_registers_from_line.
5833 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5834 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5835 "force_display" parameter.
5837 2019-07-17 Tom Tromey <tom@tromey.com>
5839 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5841 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5842 Rename from tui_first_reg_element_no_inline.
5843 (tui_display_reg_element_at_line)
5844 (tui_display_registers_from_line): Update.
5845 * tui/tui-data.h (struct tui_data_window)
5846 <first_reg_element_no_inline>: New method.
5848 2019-07-17 Tom Tromey <tom@tromey.com>
5850 * tui/tui-windata.c (tui_display_data_from)
5851 (tui_data_window::do_scroll_vertical): Update.
5852 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5853 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5854 Rename from tui_line_from_reg_element_no.
5855 (tui_display_registers_from_line): Update.
5856 * tui/tui-data.h (struct tui_data_window)
5857 <line_from_reg_element_no>: New method.
5859 2019-07-17 Tom Tromey <tom@tromey.com>
5861 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5862 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5863 tui_last_regs_line_no.
5864 (tui_display_reg_element_at_line)
5865 (tui_display_registers_from_line): Update.
5866 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5869 2019-07-17 Tom Tromey <tom@tromey.com>
5872 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5873 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5874 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5875 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5876 (tui_update_breakpoint_info): Likewise.
5877 * tui/tui-hooks.c (tui_event_create_breakpoint)
5878 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5881 2019-07-17 Tom Tromey <tom@tromey.com>
5883 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5885 2019-07-17 Tom Tromey <tom@tromey.com>
5887 * tui/tui-winsource.c (tui_update_source_window_as_is)
5888 (tui_update_source_windows_with_addr): Update.
5889 * tui/tui-source.h (tui_set_source_content)
5890 (tui_show_symtab_source): Add "win_info" parameter.
5891 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5893 (tui_show_symtab_source): Likewise.
5895 2019-07-17 Tom Tromey <tom@tromey.com>
5897 * tui/tui-wingeneral.c
5898 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5900 2019-07-17 Tom Tromey <tom@tromey.com>
5902 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5903 (struct tui_cmd_window) <can_scroll>: New method.
5904 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5907 2019-07-17 Tom Tromey <tromey@adacore.com>
5909 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5910 do_field_signed>: Rename. Change type of "value".
5911 * ui-out.c (ui_out::field_signed): Rename from field_int.
5912 Change type of "value".
5913 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5915 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5916 do_field_int. Change type of "value".
5917 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5918 do_field_int. Change type of "value".
5919 * tracepoint.c (trace_status_mi, tfind_1)
5920 (print_one_static_tracepoint_marker): Update.
5921 * thread.c (print_thread_info_1, print_selected_thread_frame):
5923 * stack.c (print_frame, print_frame_info): Update.
5924 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5926 * source.c (print_source_lines_base): Update.
5927 * skip.c (info_skip_command): Update.
5928 * record-btrace.c (btrace_ui_out_decode_error)
5929 (btrace_call_history_src_line): Update.
5930 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5932 * progspace.c (print_program_space): Update.
5933 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5934 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5935 do_field_int. Change type of "value".
5936 * mi/mi-out.c (mi_ui_out::do_table_begin)
5937 (mi_ui_out::do_table_header): Update.
5938 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5940 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5941 (mi_cmd_data_list_changed_registers, output_register)
5942 (mi_cmd_data_read_memory, mi_load_progress)
5943 (mi_cmd_trace_frame_collected): Update.
5944 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5946 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5947 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5948 (mi_cmd_var_list_children, varobj_update_one): Update.
5949 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5950 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5951 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5952 * inferior.c (print_inferior): Update.
5953 * gdb_bfd.c (print_one_bfd): Update.
5954 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5956 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5957 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5958 do_field_int. Change type of "value".
5959 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5960 do_field_int. Change type of "value".
5961 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5962 (print_one_breakpoint_location, print_it_catch_fork)
5963 (print_one_catch_fork, print_it_catch_vfork)
5964 (print_one_catch_vfork, print_it_catch_solib)
5965 (print_it_catch_exec, print_it_ranged_breakpoint)
5966 (print_mention_watchpoint, print_mention_masked_watchpoint)
5967 (bkpt_print_it, update_static_tracepoint): Update.
5968 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5969 * break-catch-syscall.c (print_it_catch_syscall): Update.
5970 * ada-tasks.c (print_ada_task_info): Update.
5971 * ada-lang.c (print_it_exception, print_mention_exception):
5974 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5976 PR breakpoints/24541
5977 * gdbarch.c: Regenerate.
5978 * gdbarch.h: Regenerate.
5979 * gdbarch.sh: Adjust return type and parameter types for
5980 'stap_adjust_register'.
5981 (i386_stap_adjust_register): Adjust signature and return new
5983 * stap-probe.c (stap_parse_register_operand): Adjust use of
5984 'gdbarch_stap_adjust_register'.
5986 2019-07-17 Tom Tromey <tromey@adacore.com>
5988 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5990 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5992 (struct s390_process_info): Add initializers.
5993 (s390_add_process): Use new.
5994 (s390_linux_nat_target::low_forget_process): Use delete.
5995 (s390_linux_nat_target::low_new_fork)
5996 (s390_linux_nat_target::stopped_by_watchpoint)
5997 (s390_linux_nat_target::low_prepare_to_resume)
5998 (s390_linux_nat_target::insert_watchpoint)
5999 (s390_linux_nat_target::insert_hw_breakpoint)
6000 (s390_linux_nat_target::remove_watchpoint)
6001 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6003 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6005 * aarch64-fbsd-nat.c: Include regcache.h.
6006 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6008 (aarch64_fbsd_nat_target::fetch_registers)
6009 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6011 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6013 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6015 * fbsd-nat.c: Include gdbarch.h.
6017 2019-07-15 Tom Tromey <tromey@adacore.com>
6019 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6021 2019-07-15 Tom Tromey <tromey@adacore.com>
6023 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6024 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6025 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6026 * cli-out.c (cli_ui_out::do_field_int): New method.
6027 * ui-out.c (ui_out::field_unsigned): New method.
6028 * symfile.c (generic_load): Use field_unsigned.
6029 (print_transfer_performance): Likewise.
6030 * record-btrace.c (ui_out_field_uint): Remove.
6031 (btrace_call_history_insn_range, btrace_call_history): Use
6033 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6035 * ui-out.h (class ui_out) <field_unsigned>: New method.
6036 <do_field_unsigned>: Likewise.
6038 2019-07-15 Tom Tromey <tromey@adacore.com>
6040 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6041 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6042 * target.c (flash_erase_command): Use field_string.
6043 * infrun.c (print_signal_received_reason): Use field_string.
6044 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6045 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6047 * ada-tasks.c (print_ada_task_info): Use field_string.
6049 2019-07-15 Tom Tromey <tromey@adacore.com>
6051 * target.c (flash_erase_command): Use field_core_addr.
6052 * symfile.c (generic_load): Use field_core_addr.
6053 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6054 Use field_core_addr.
6055 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6058 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6060 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6061 value if its desired type is smaller than a CORE_ADDR and signed.
6063 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6065 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6066 of changes to field names, and use new is_reference field to
6067 decide if a property is a reference or not.
6068 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6070 (struct dwarf2_property_baton): Update header comment, rename
6071 'referenced_type' to 'property_type' and update comments.
6072 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6073 default property type, store in property baton, update to take
6074 accound of renamed field.
6075 (read_func_scope): Update call to attr_to_dynamic_prop.
6076 (read_array_type): Likewise.
6077 (dwarf2_per_cu_addr_sized_int_type): New function.
6078 (read_subrange_index_type): Move type finding code to
6079 dwarf2_per_cu_addr_sized_int_type.
6080 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6081 (dwarf2_per_cu_addr_type): New function.
6082 (set_die_type): Update calls to attr_to_dynamic_prop.
6084 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6086 * dwarf2read.c (read_subrange_index_type): New function.
6087 (read_subrange_type): Move code into new function and call it.
6088 * gdbtypes.c (create_range_type): Add some asserts.
6090 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6092 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6093 update return statements.
6094 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6095 declaration, and update comment to match.
6096 * gdbtypes.c (resolve_dynamic_array): Update call to
6097 dwarf2_evaluate_property to match new return type.
6099 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6101 * valarith.c (value_subscripted_rvalue): Change lowerbound
6102 parameter type from int to LONGEST.
6103 * value.h (value_subscripted_rvalue): Likewise in declaration.
6105 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6107 * cli/cli-utils.c (info_print_command_completer): New function.
6108 * cli/cli-utils.h: Add 'completer.h' include, and forward
6109 declaration for 'struct cmd_list_element'.
6110 (info_print_command_completer): Declare.
6111 * stack.c (_initialize_stack): Add completer for 'info locals' and
6113 * symtab.c (_initialize_symtab): Add completer for 'info
6114 variables' and 'info functions'.
6115 * NEWS: Mention completion for additional info commands.
6117 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6119 * cli/cli-utils.c (extract_info_print_args): Delete.
6120 (extract_arg_maybe_quoted): Delete.
6121 (info_print_options_defs): New variable.
6122 (make_info_print_options_def_group): New function.
6123 (extract_info_print_options): Define new function.
6124 * cli/cli-utils.h (extract_info_print_args): Delete.
6125 (struct info_print_options): New structure.
6126 (extract_info_print_options): Declare new function.
6127 * stack.c (info_locals_command): Update to use new
6128 extract_info_print_options, also add a header comment.
6129 (info_args_command): Likewise.
6130 * symtab.c (info_variables_command): Likewise.
6131 (info_functions_command): Likewise.
6133 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6135 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6136 to extract string arguments.
6137 * common/common-utils.c (extract_string_maybe_quoted): New function.
6138 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6140 2019-07-11 Tom Tromey <tromey@adacore.com>
6142 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6143 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6144 * top.h (gdbinit): Don't declare.
6145 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6147 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6148 * top.c (gdb_init): Don't call init_cli_cmds.
6150 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6152 2019-07-11 Tom Tromey <tromey@adacore.com>
6154 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6155 after it has been moved.
6157 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6159 * valops.c (value_must_coerce_to_target): Change return type to
6161 * value.h (value_must_coerce_to_target): Likewise.
6163 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6165 * breakpoint.c (is_hardware_watchpoint): Remove
6166 forward-declaration.
6167 (is_masked_watchpoint): Change return type to bool.
6168 (is_tracepoint): Likewise.
6169 (is_breakpoint): Likewise.
6170 (is_hardware_watchpoint): Likewise.
6171 (is_watchpoint): Likewise.
6172 (is_no_memory_software_watchpoint): Likewise.
6173 (is_catchpoint): Likewise.
6174 (breakpoint_1): Make FILTER parameter's return type bool.
6175 is_masked_watchpoint): Change return type to bool.
6176 (save_breakpoints): Make FILTER parameter's return type bool.
6177 * breakpoint.h (is_breakpoint): Change return type to bool.
6178 (is_watchpoint): Likewise.
6179 (is_catchpoint): Likewise.
6180 (is_tracepoint): Likewise.
6182 2019-07-10 Tom Tromey <tom@tromey.com>
6184 * defs.h: Don't include gdbarch.h.
6185 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6186 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6187 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6188 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6189 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6190 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6191 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6192 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6193 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6194 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6195 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6196 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6197 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6198 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6199 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6200 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6201 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6202 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6203 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6204 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6205 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6206 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6207 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6208 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6209 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6210 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6211 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6213 2019-07-10 Tom Tromey <tromey@adacore.com>
6215 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6216 * breakpoint.c (init_ada_exception_breakpoint): Register as
6218 (print_one_breakpoint_location, print_one_breakpoint): Use
6219 is_ada_exception_catchpoint.
6220 * ada-lang.c (class ada_catchpoint_location): Pass
6221 bp_loc_software_breakpoint to bp_location constructor.
6222 (is_ada_exception_catchpoint): New function.
6224 2019-07-10 Tom Tromey <tromey@adacore.com>
6226 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6228 (struct arm_exidx_entry): New method operator<.
6229 (struct arm_exidx_data) <section_maps>: Change type.
6230 (arm_exidx_data_free): Remove.
6231 (arm_exidx_data_key): Change type. Move lower.
6232 (arm_exidx_new_objfile): Update.
6233 (arm_compare_exidx_entries): Remove.
6234 (arm_find_exidx_entry, _initialize_arm_tdep)
6236 2019-07-10 Tom Tromey <tromey@adacore.com>
6238 * solib-spu.c (ocl_program_data_key): Change type.
6239 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6242 2019-07-10 Tom Tromey <tromey@adacore.com>
6244 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6245 (struct solib_aix_inferior_data) <library_list>: Change type.
6246 (solib_aix_inferior_data_handle): Change type.
6247 (get_solib_aix_inferior_data): Update.
6248 (solib_aix_free_library_list): Remove.
6249 (library_list_start_library): Update.
6250 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6252 (solib_aix_get_library_list)
6253 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6254 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6256 2019-07-10 Tom Tromey <tromey@adacore.com>
6258 * solib-dsbt.c (struct dsbt_info): Add initializers.
6259 (solib_dsbt_pspace_data): Change type.
6260 (dsbt_pspace_data_cleanup): Remove.
6261 (get_dsbt_info, _initialize_dsbt_solib): Update.
6263 2019-07-10 Tom Tromey <tromey@adacore.com>
6265 * spu-tdep.c (spu_overlay_data): Change type.
6266 (spu_get_overlay_table, spu_overlay_new_objfile)
6267 (_initialize_spu_tdep): Update.
6269 2019-07-10 Tom Tromey <tromey@adacore.com>
6271 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6273 (dbx_objfile_data_key): Change type and declare later.
6274 (DBX_SYMFILE_INFO): Rewrite.
6275 * dbxread.c (dbx_objfile_data_key): Change type.
6276 (dbx_symfile_init): Update.
6277 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6278 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6279 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6281 2019-07-10 Tom Tromey <tromey@adacore.com>
6283 * jit.c (jit_program_space_key): Change type. Move lower.
6284 (get_jit_program_space_data): Update.
6285 (jit_program_space_data_cleanup): Remove.
6286 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6288 (struct jit_program_space_data): Add initializers.
6290 2019-07-10 Tom Tromey <tromey@adacore.com>
6292 * solib-darwin.c (struct darwin_info): Add initializers.
6293 (solib_darwin_pspace_data): Change type.
6294 (darwin_pspace_data_cleanup): Remove.
6295 (get_darwin_info, _initialize_darwin_solib): Update.
6297 2019-07-10 Tom Tromey <tromey@adacore.com>
6299 * remote-sim.c (struct sim_inferior_data): Add initializers,
6300 constructor, and destructor.
6301 (sim_inferior_data_key): Change type. Move lower.
6302 (check_for_duplicate_sim_descriptor): Update.
6303 (get_sim_inferior_data): Use new. Update.
6304 (~sim_inferior_data_cleanup): Rename from
6305 sim_inferior_data_cleanup. Simplify.
6306 (gdbsim_close_inferior, simulator_command)
6307 (sim_command_completer, _initialize_remote_sim): Update.
6308 (next_pid, INITIAL_PID): Move earlier.
6310 2019-07-10 Tom Tromey <tromey@adacore.com>
6312 * python/python-internal.h (create_thread_object): Return
6314 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6315 * python/py-inferior.c (struct threadlist_entry): Add
6317 <thread_obj>: Now a gdbpy_ref.
6318 (thread_to_thread_object): Update.
6319 (add_thread_object): Use new.
6320 (delete_thread_object): Use delete.
6321 (infpy_threads): Update.
6322 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6325 2019-07-10 Tom Tromey <tromey@adacore.com>
6327 * valops.c (value_cast): Specialize error message for Ada.
6329 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6331 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6333 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6335 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6336 bpstat_should_step): Return bool, adjust comments.
6337 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6338 bpstat_should_step): Likewise.
6340 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6342 * features/Makefile: Use feature target descriptions for Arm.
6343 * features/arm/arm-core.c: Generate new file.
6344 * features/arm/arm-fpa.c: Likewise.
6345 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6346 * features/arm/arm-m-profile.c: Likewise.
6347 * features/arm/arm-vfpv2.c: Likewise.
6348 * features/arm/arm-vfpv3.c: Likewise.
6349 * features/arm/xscale-iwmmxt.c: Likewise.
6350 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6352 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6354 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6357 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6359 * features/aarch64-pauth.c: Regenerate.
6361 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6363 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6365 (bpstat_what): Use false instead of 0.
6367 2019-07-09 Pedro Alves <palves@redhat.com>
6369 * break-catch-throw.c (is_exception_catchpoint): New.
6370 * breakpoint.c (print_one_breakpoint_location): New parameter
6371 'raw_loc'. Handle it. Use
6372 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6373 looking at the breakpoint's type.
6374 (print_one_breakpoint): If handling "maint info breakpoints", also
6375 print locations of exception catchpoints.
6376 * breakpoint.h (is_exception_catchpoint): Declare.
6378 2019-07-09 Pedro Alves <palves@redhat.com>
6380 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6382 (allocate_location_exception_catchpoint): New.
6383 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6384 (initialize_throw_catchpoint_ops): Install
6385 allocate_location_exception_catchpoint as allocate_location
6387 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6388 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6390 (breakpoint_address_is_meaningful): Delete.
6391 (bl_address_is_meaningful): New.
6392 (breakpoint_locations_match): Adjust comment.
6393 (bp_location_from_bp_type): New, factored out of...
6394 (bp_location::bp_location(breakpoint *)): ... this.
6395 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6397 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6398 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6399 breakpoint_address_is_meaningful.
6400 (bp_locations_compare): Adjust comment.
6401 (update_global_location_list): Use bl_address_is_meaningful
6402 instead of breakpoint_address_is_meaningful.
6403 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6405 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6406 * python/py-breakpoint.c (bppy_get_location): No longer check
6407 whether location is null.
6409 2019-07-09 Pedro Alves <palves@redhat.com>
6412 * breakpoint.c (print_one_breakpoint_location): Remove
6413 single-location assert.
6415 2019-07-09 Tom Tromey <tom@tromey.com>
6417 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6418 * configure: Rebuild.
6419 * configure.ac: Change common to gdbsupport.
6420 * gdbsupport: Rename from common.
6421 * acinclude.m4: Change common to gdbsupport.
6422 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6423 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6425 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6426 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6427 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6428 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6429 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6430 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6431 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6432 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6433 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6434 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6435 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6436 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6437 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6438 coff-pe-read.c, command.h, compile/compile-c-support.c,
6439 compile/compile-c.h, compile/compile-cplus-symbols.c,
6440 compile/compile-cplus-types.c, compile/compile-cplus.h,
6441 compile/compile-loc2c.c, compile/compile.c, completer.c,
6442 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6443 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6444 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6445 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6446 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6447 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6448 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6449 features/aarch64-core.c, features/aarch64-fpu.c,
6450 features/aarch64-pauth.c, features/aarch64-sve.c,
6451 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6452 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6453 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6454 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6455 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6456 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6457 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6458 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6459 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6460 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6461 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6462 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6463 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6464 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6465 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6466 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6467 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6468 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6469 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6470 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6471 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6472 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6473 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6474 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6475 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6476 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6477 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6478 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6479 minsyms.c, mips-linux-tdep.c, namespace.h,
6480 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6481 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6482 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6483 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6484 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6485 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6486 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6487 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6488 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6489 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6490 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6491 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6492 procfs.c, producer.c, progspace.h, psymtab.h,
6493 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6494 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6495 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6496 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6497 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6498 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6499 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6500 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6501 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6502 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6503 target-memory.c, target.c, target.h, target/waitstatus.c,
6504 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6505 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6506 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6507 unittests/array-view-selftests.c,
6508 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6509 unittests/common-utils-selftests.c,
6510 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6511 unittests/format_pieces-selftests.c,
6512 unittests/function-view-selftests.c,
6513 unittests/lookup_name_info-selftests.c,
6514 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6515 unittests/mkdir-recursive-selftests.c,
6516 unittests/observable-selftests.c,
6517 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6518 unittests/parse-connection-spec-selftests.c,
6519 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6520 unittests/scoped_fd-selftests.c,
6521 unittests/scoped_mmap-selftests.c,
6522 unittests/scoped_restore-selftests.c,
6523 unittests/string_view-selftests.c, unittests/style-selftests.c,
6524 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6525 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6526 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6527 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6528 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6529 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6531 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6533 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6535 (decode_digits_ordinary): Set explicit_line field in sal.
6536 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6537 symtab_and_line that was set on an explicit line number in
6538 assembler code. Do always update the recorded symtab and line if
6539 we do skip the prologue.
6541 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6543 * breakpoint.c (set_breakpoint_location_function): Remove
6544 explicit_loc parameter.
6545 (momentary_breakpoint_from_master): Update call to
6546 set_breakpoint_location_function.
6547 (add_location_to_breakpoint): Likewise.
6549 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6551 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6552 required features based on default bfd type when no specific bfd
6555 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6557 * NEWS: Mention that GDB printf and eval commands can now print
6558 C-style and Ada-style convenience var strings without
6559 calling the inferior.
6560 * printcmd.c (printf_c_string): Locally print GDB internal var
6561 instead of transiting via the inferior.
6562 (printf_wide_c_string): Likewise.
6564 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6566 PR breakpoints/25011
6567 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6569 2019-07-04 Tom Tromey <tom@tromey.com>
6572 * tui/tui-winsource.c (tui_clear_source_content): Update.
6573 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6574 (tui_update_breakpoint_info): Update.
6575 (tui_set_exec_info_content): Update.
6576 * tui/tui-source.c (tui_set_source_content_nil): Update.
6577 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6579 * tui/tui-data.h (enum tui_bp_flag): New.
6580 (tui_bp_flags): New enum flags type.
6581 (struct tui_source_element) <break_mode>: Change type. Rename
6583 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6584 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6586 * tui/tui-winsource.h: Fix comment.
6588 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6590 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6591 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6592 (store_fpregs_to_thread)
6593 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6594 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6595 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6596 (IWMMXT_REGS_SIZE): Add define.
6597 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6598 (fetch_vfp_regs, store_vfp_regs)
6599 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6600 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6602 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6604 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6606 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6607 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6608 (ARM_INT_REGISTER_SIZE): ...to this.
6609 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6610 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6611 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6612 (arm_linux_collect_gregset, supply_nwfpe_register)
6613 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6615 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6616 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6617 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6618 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6619 (arm_return_in_memory, arm_store_return_value)
6620 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6621 (arm_record_ld_st_multiple): Likewise.
6622 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6623 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6625 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6627 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6628 AARCH64_DISPLACED_MODIFIED_INSNS.
6629 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6630 (aarch64_displaced_step_copy_insn): Likewise.
6631 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6632 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6633 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6634 ARM_DISPLACED_MODIFIED_INSNS.
6635 * arm-tdep.c (arm_gdbarch_init): Likewise.
6636 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6637 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6638 (struct arm_displaced_step_closure): Use
6639 ARM_DISPLACED_MODIFIED_INSNS.
6641 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6643 * features/Makefile: Remove unused xml files.
6644 * features/aarch64.xml: Remove.
6645 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6646 * features/i386/amd64-avx-avx512.xml: Remove.
6647 * features/i386/amd64-avx-linux.xml: Remove.
6648 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6649 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6650 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6651 * features/i386/amd64-avx-mpx.xml: Remove.
6652 * features/i386/amd64-avx.xml: Remove.
6653 * features/i386/amd64-linux.xml: Remove.
6654 * features/i386/amd64-mpx-linux.xml: Remove.
6655 * features/i386/amd64-mpx.xml: Remove.
6656 * features/i386/amd64.xml: Remove.
6657 * features/i386/i386-avx-avx512-linux.xml: Remove.
6658 * features/i386/i386-avx-avx512.xml: Remove.
6659 * features/i386/i386-avx-linux.xml: Remove.
6660 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6661 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6662 * features/i386/i386-avx-mpx-linux.xml: Remove.
6663 * features/i386/i386-avx-mpx.xml: Remove.
6664 * features/i386/i386-avx.xml: Remove.
6665 * features/i386/i386-linux.xml: Remove.
6666 * features/i386/i386-mmx-linux.xml: Remove.
6667 * features/i386/i386-mmx.xml: Remove.
6668 * features/i386/i386-mpx-linux.xml: Remove.
6669 * features/i386/i386-mpx.xml: Remove.
6670 * features/i386/i386.xml: Remove.
6671 * features/i386/x32-avx-avx512-linux.xml: Remove.
6672 * features/i386/x32-avx-linux.xml: Remove.
6673 * features/i386/x32-linux.xml: Remove.
6675 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6677 * regformats/aarch64.dat: Remove.
6678 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6679 * regformats/i386/amd64-avx-linux.dat: Remove.
6680 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6681 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6682 * regformats/i386/amd64-linux.dat: Remove.
6683 * regformats/i386/amd64-mpx-linux.dat: Remove.
6684 * regformats/i386/amd64.dat: Remove.
6685 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6686 * regformats/i386/i386-avx-linux.dat: Remove.
6687 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6688 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6689 * regformats/i386/i386-linux.dat: Remove.
6690 * regformats/i386/i386-mmx-linux.dat: Remove.
6691 * regformats/i386/i386-mpx-linux.dat: Remove.
6692 * regformats/i386/i386.dat: Remove.
6693 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6694 * regformats/i386/x32-avx-linux.dat: Remove.
6695 * regformats/i386/x32-linux.dat: Remove.
6697 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6699 * aarch64-tdep.c: Remove xml self tests.
6700 * amd64-linux-tdep.c: Likewise.
6701 * amd64-tdep.c: Likewise.
6702 * i386-linux-tdep.c: Likewise.
6703 * i386-tdep.c: Likewise.
6705 2019-07-03 Pedro Alves <palves@redhat.com>
6708 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6709 (pipe_cmd_option_defs): New.
6710 (make_pipe_cmd_options_def_group): New.
6711 (pipe_command): Use gdb::option::process_options.
6712 (pipe_command_completer): New function.
6713 (_initialize_cli_cmds): Install completer for "pipe" command.
6715 2019-07-03 Pedro Alves <palves@redhat.com>
6717 * cli/cli-option.c (union option_value) <string>: New field.
6718 (struct option_def_and_value): Add ctor, move ctor, dtor and
6719 use DISABLE_COPY_AND_ASSIGN.
6720 (option_def_and_value::clear_value): New.
6721 (parse_option, save_option_value_in_ctx, get_val_type_str)
6722 (add_setshow_cmds_for_options): Handle var_string.
6723 * cli-option.h (union option_def::var_address) <string>: New
6725 (struct string_option_def): New.
6726 * maint-test-options.c (struct test_options_opts): Add default
6727 ctor and use DISABLE_COPY_AND_ASSIGN.
6728 <string_opt>: New field.
6729 (test_options_opts::~test_options_opts): New.
6730 (test_options_opts::dump): Also dump "-string".
6731 (test_options_option_defs): Install "string.
6733 2019-07-03 Pedro Alves <palves@redhat.com>
6735 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6736 option_value with a null enumeration.
6737 (complete_options): Save the option values in the context.
6738 (save_option_value_in_ctx): New, factored out from ...
6739 (process_options): ... here.
6740 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6742 * maint-test-options.c (test_options_opts::dump): New, factored
6744 (maintenance_test_options_command_mode): ... here.
6745 (maintenance_test_options_command_completion_result): Delete.
6746 (maintenance_test_options_command_completion_text): Update
6748 (maintenance_show_test_options_completion_result): Change
6749 prototype. Just print
6750 maintenance_test_options_command_completion_text.
6751 (save_completion_result): New.
6752 (maintenance_test_options_completer_mode): Pass options context to
6753 complete_options, and then save a dump.
6754 (_initialize_maint_test_options): Use add_cmd to install "maint
6755 show test-options-completion-result".
6757 2019-07-03 Pedro Alves <palves@redhat.com>
6759 * NEWS (New commands): Mention "with" and "maint with".
6760 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6761 (with_command, with_command_completer): New.
6762 (pipe_command): Adjust to new repeat_previous
6764 (_initialize_cli_cmds): Install the "with" command and its "w"
6766 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6768 * cli/cli-setshow.c (parse_cli_var_uinteger)
6769 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6770 argument strings for all var_types.
6771 (get_setshow_command_value_string): New, factored out from ...
6772 (do_show_command): ... this.
6773 * cli/cli-setshow.h: Include <string>.
6774 (get_setshow_command_value_string): Declare.
6775 * command.h (repeat_previous): Now returns const char *. Adjust
6777 * maint.c: Include "cli/cli-cmds.h".
6778 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6779 (_initialize_maint_cmds): Register the "maintenance with" command.
6780 * top.c (repeat_previous): Move bits from pipe_command here:
6781 Return the saved command line, if any; error out if there's no
6782 command to relaunch.
6784 2019-07-03 Pedro Alves <palves@redhat.com>
6786 * NEWS (New commands): Mention "maint set/show test-settings"
6787 instead of "maint test-settings".
6788 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6789 (maintenance_test_settings_set_list): Rename to ...
6790 (maintenance_set_test_settings_list): ... this.
6791 (maintenance_test_settings_show_list): Rename to ...
6792 (maintenance_show_test_settings_list): ... this.
6793 (maintenance_test_settings_cmd): Delete.
6794 (maintenance_test_settings_set_cmd): ...
6795 (maintenance_set_test_settings_cmd): ... this.
6796 (maintenance_test_settings_show_cmd): ...
6797 (maintenance_show_test_settings_cmd): ... this.
6798 (maintenance_test_settings_show_value_cmd):
6799 (maintenance_show_test_settings_value_cmd): ... this.
6800 (_initialize_maint_test_settings): No longer install the "maint
6801 test-settings" prefix command. Rename "maint test-settings set"
6802 to "maint set test-settings", and "maint test-settings show" to
6803 "maint show test-settings". Adjust all subcommands.
6805 2019-07-03 Pedro Alves <palves@redhat.com>
6807 * maint-test-settings.c: Fix file's intro comment. Replace all
6808 references to "test-options" with references to "test-settings",
6811 2019-07-03 Pedro Alves <palves@redhat.com>
6813 * maint-test-settings.c (maintenance_test_settings_xxx)
6814 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6816 (maintenance_test_settings_enums): Use them.
6817 (maintenance_test_settings_enum): Default to
6818 maintenance_test_settings_xxx.
6819 (_initialize_maint_test_settings): Initialize
6820 MAINTENANCE_TEST_SETTINGS_FILENAME.
6822 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6824 * breakpoint.h (remove_breakpoints_inf): Change return type to
6825 void, move function documentation here.
6826 * breakpoint.c (remove_breakpoints_inf): Change return type to
6827 void, move function documentation to header.
6829 2019-07-02 Pedro Alves <palves@redhat.com>
6831 * NEWS (Completion improvements): Mention "info threads".
6832 * thread.c (struct info_threads_opts, info_threads_option_defs)
6833 (make_info_threads_options_def_group): New.
6834 (info_threads_command): Use gdb::option::process_options.
6835 (info_threads_command_completer): New.
6836 (_initialize_thread): Use gdb::option::build_help to build the
6837 help text for "info threads".
6839 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6841 * defs.h (generic_load): Move from here...
6842 * symfile.h (generic_load): ... to here. Rename name parameter
6844 * symfile.c (generic_load): Add comment.
6846 2019-07-01 Tom Tromey <tromey@adacore.com>
6849 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6850 declaration of without_params. Fix formatting.
6852 2019-07-01 Tom Tromey <tromey@adacore.com>
6854 * ada-exp.y (find_primitive_type): Update.
6855 * ada-lang.h (ada_lookup_symbol): Update.
6856 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6858 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6860 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6862 PR breakpoints/24541
6863 * gdbarch.c: Regenerate.
6864 * gdbarch.h: Regenerate.
6865 * gdbarch.sh: Add 'stap_adjust_register'.
6866 * i386-tdep.c: Include '<unordered_set>'.
6867 (i386_stap_adjust_register): New function.
6868 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6869 * stap-probe.c (stap_parse_register_operand): Call
6870 'gdbarch_stap_adjust_register'.
6872 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6875 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6876 * python/python.c (do_start_initialization): Use 'xmalloc'
6877 instead of 'PyMem_Malloc'.
6879 2019-06-28 Tom Tromey <tromey@adacore.com>
6881 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6884 2019-06-27 Tom Tromey <tromey@adacore.com>
6886 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6888 (arm_find_mapping_symbol, arm_record_special_symbol)
6889 (_initialize_arm_tdep): Update.
6890 (arm_objfile_data_free): Remove.
6892 2019-06-27 Tom Tromey <tromey@adacore.com>
6894 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6895 to cp_print_static_field.
6897 2019-06-26 Tom Tromey <tromey@adacore.com>
6899 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6900 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6903 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6905 * features/aarch64-core.c (create_feature_aarch64_core):
6907 * features/aarch64-core.xml: Add cpsr flags.
6909 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6911 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6912 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6914 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6916 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6918 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6920 (arm_record_special_symbol): Don't insert new symbol in sorted
6921 position, push it at the end.
6923 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6925 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6926 (arm_mapping_symbol_s): Remove.
6927 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6928 (arm_mapping_symbol_vec): New typedef.
6929 (struct arm_per_objfile): Add constructor.
6930 <section_maps>: Change type to
6931 std::unique_ptr<arm_mapping_symbol_vec[]>.
6932 (arm_compare_mapping_symbols): Remove.
6933 (arm_find_mapping_symbol): Adjust to section_maps type change.
6934 (arm_objfile_data_free): Call delete on arm_per_objfile.
6935 (arm_record_special_symbol): Adjust to section_maps type change.
6936 Allocate arm_per_objfile with new.
6938 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6940 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6941 with the command prefix.
6943 2019-06-25 Tom Tromey <tom@tromey.com>
6945 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6946 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6948 2019-06-25 Tom Tromey <tom@tromey.com>
6950 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6952 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6955 2019-06-25 Tom Tromey <tom@tromey.com>
6957 * tui/tui-winsource.c
6958 (tui_source_window_base::set_is_exec_point_at): Add check against
6961 2019-06-25 Tom Tromey <tom@tromey.com>
6963 * tui/tui-source.c (tui_set_source_content): Don't check before
6965 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6967 2019-06-25 Tom Tromey <tom@tromey.com>
6969 * tui/tui-winsource.h (tui_update_source_window_as_is)
6970 (tui_alloc_source_buffer, tui_line_is_displayed)
6971 (tui_addr_is_displayed): Change type of win_info.
6972 * tui/tui-winsource.c (tui_update_source_window_as_is)
6973 (tui_clear_source_content, tui_show_source_line)
6974 (tui_show_source_content, tui_source_window_base::refill)
6975 (tui_source_window_base::set_is_exec_point_at)
6976 (tui_source_window_base::set_is_exec_point_at)
6977 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6978 (tui_alloc_source_buffer, tui_line_is_displayed)
6979 (tui_addr_is_displayed): Change type of win_info. Update.
6980 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6981 (tui_source_window_base::do_make_visible_with_new_height):
6983 * tui/tui-source.c (tui_set_source_content)
6984 (tui_set_source_content_nil)
6985 (tui_source_window::do_scroll_vertical): Update.
6986 * tui/tui-layout.c (show_layout): Update.
6987 * tui/tui-disasm.c (tui_set_disassem_content)
6988 (tui_disasm_window::do_scroll_vertical): Update.
6989 * tui/tui-data.h (tui_win_content): Remove.
6990 (struct tui_gen_win_info) <content, content_size>: Remove.
6991 (struct tui_source_element): Add initializers and destructor.
6992 (union tui_which_element, struct tui_win_element): Remove.
6993 (struct tui_source_window_base) <content>: New field.
6994 (struct tui_data_window): Remove destructor.
6995 (tui_alloc_content, tui_free_win_content)
6996 (tui_free_all_source_wins_content): Don't declare.
6997 * tui/tui-data.c (tui_initialize_static_data): Update.
6998 (init_content_element, tui_alloc_content): Remove.
6999 (~tui_gen_win_info): Update.
7000 (~tui_data_window, tui_free_all_source_wins_content)
7001 (tui_free_win_content, free_content, free_content_elements):
7004 2019-06-25 Tom Tromey <tom@tromey.com>
7006 * tui/tui-winsource.h (tui_clear_source_content)
7007 (tui_erase_source_content, tui_show_source_content): Change type
7009 * tui/tui-winsource.c (tui_clear_source_content)
7010 (tui_erase_source_content, tui_show_source_content): Change type
7012 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7013 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7015 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7017 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7019 2019-06-25 Tom Tromey <tom@tromey.com>
7021 * tui/tui-winsource.c (tui_clear_source_content)
7022 (tui_source_window_base::set_is_exec_point_at): Update.
7023 * tui/tui-source.c (tui_set_source_content_nil): Update.
7024 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7026 * tui/tui-data.c (init_content_element): Update.
7028 2019-06-25 Tom Tromey <tom@tromey.com>
7030 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7031 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7032 * tui/tui-layout.c (init_and_make_win): Update.
7033 * tui/tui.h (enum tui_win_type): Update.
7034 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7035 tui_win_is_auxillary.
7036 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7037 tui_win_is_auxillary.
7039 2019-06-25 Tom Tromey <tom@tromey.com>
7041 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7042 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7043 (tui_delete_data_content_windows, tui_display_all_data)
7044 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7046 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7047 * tui/tui-regs.c (tui_last_regs_line_no)
7048 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7049 (tui_show_registers): Update.
7050 (tui_show_register_group): Return void. Update.
7051 (tui_display_registers_from, tui_display_reg_element_at_line)
7052 (tui_display_registers_from_line, tui_check_register_values):
7054 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7056 (struct tui_data_window) <regs_content>: Now a std::vector.
7057 <regs_content_count>: Remove.
7058 (tui_add_content_elements, tui_free_data_content): Don't declare.
7059 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7060 (init_content_element): Remove DATA_WIN case. Add assert.
7061 (tui_add_content_elements): Remove.
7062 (tui_data_window): Update.
7063 (tui_free_data_content): Remove.
7064 (free_content_elements): Remove DATA_WIN case.
7066 2019-06-25 Tom Tromey <tom@tromey.com>
7068 * tui/tui-data.c (tui_data_item_window): Update.
7069 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7070 * tui/tui-windata.c (tui_display_all_data)
7071 (tui_display_data_from_line): Update.
7072 (tui_check_data_values): Remove.
7073 * tui/tui-regs.c (tui_show_register_group)
7074 (tui_display_reg_element_at_line): Update.
7075 * tui/tui-hooks.c (tui_register_changed)
7076 (tui_refresh_frame_and_register_information): Call
7077 tui_check_register_values.
7078 * tui/tui-data.h (struct tui_data_window) <data_content,
7079 data_content_count, data_type>: Remove.
7080 (enum tui_data_type): Remove.
7082 * tui/tui-data.c (tui_data_window::clear_detail)
7083 (~tui_data_window): Update.
7085 2019-06-25 Tom Tromey <tom@tromey.com>
7087 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7089 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7090 Rename from tui_first_data_item_displayed. Update.
7091 (tui_data_window::refresh_all)
7092 (tui_data_window::do_scroll_vertical): Update.
7093 * tui/tui-data.h (struct tui_data_window)
7094 <first_data_item_displayed>: Declare new method.
7096 2019-06-25 Tom Tromey <tom@tromey.com>
7098 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7099 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7101 (tui_initialize_static_data): ...here.
7103 2019-06-25 Tom Tromey <tom@tromey.com>
7105 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7106 (tui_display_registers_from, tui_check_register_values): Update.
7107 (tui_display_register): Remove win_info parameter; update.
7108 (tui_get_register): Change type of parameters.
7109 * tui/tui-data.h (struct tui_data_element): Remove.
7110 (union tui_which_element) <data>: Remove.
7111 <data_window>: Change type.
7112 (struct tui_data_item_window): New.
7113 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7115 (~tui_data_item_window): New destructor.
7116 (free_content_elements): Remove DATA_ITEM_WIN case.
7118 2019-06-25 Tom Tromey <tom@tromey.com>
7120 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7123 2019-06-25 Tom Tromey <tom@tromey.com>
7125 * tui/tui-data.h (struct tui_command_element): Remove.
7126 (union tui_which_element) <command>: Remove.
7127 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7129 (free_content_elements): Remove CMD_WIN case.
7131 2019-06-25 Tom Tromey <tom@tromey.com>
7133 * tui/tui-layout.c (tui_set_layout): Update.
7134 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7135 * tui/tui-data.c (layout_def): Update.
7137 2019-06-25 Tom Tromey <tom@tromey.com>
7139 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7140 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7141 (tui_source_window_base::set_new_height): Update.
7142 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7144 (tui_set_locator_fullname, tui_set_locator_info)
7145 (tui_show_frame_info): Update.
7146 * tui/tui-source.c (tui_set_source_content)
7147 (tui_source_is_displayed): Update.
7148 * tui/tui-layout.c (show_source_disasm_command, show_data)
7149 (show_source_or_disasm_and_command): Update.
7150 * tui/tui-disasm.c (tui_set_disassem_content)
7151 (tui_get_begin_asm_address): Update.
7152 * tui/tui-data.h (struct tui_locator_element): Remove.
7153 (union tui_which_element) <locator>: Remove.
7154 (struct tui_locator_window): New.
7155 (tui_locator_win_info_ptr): Change return type.
7156 * tui/tui-data.c (_locator): Change type.
7157 (tui_locator_win_info_ptr): Change return type.
7158 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7159 (tui_alloc_content): Add assert.
7161 2019-06-25 Tom Tromey <tom@tromey.com>
7163 * tui/tui-winsource.c
7164 (tui_exec_info_window::maybe_allocate_content): New method.
7165 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7166 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7167 (make_source_or_disasm_window): Add cast.
7168 * tui/tui-data.h (union tui_which_element) <simple_string>:
7170 (struct tui_source_info): New.
7171 (struct tui_source_window_base) <execution_info>: Change type.
7172 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7173 case, and add assert.
7174 (tui_alloc_content): Add assert.
7176 2019-06-25 Tom Tromey <tom@tromey.com>
7178 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7179 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7180 * tui/tui-data.c (tui_alloc_win_info): Remove.
7182 2019-06-25 Tom Tromey <tom@tromey.com>
7184 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7185 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7188 2019-06-25 Tom Tromey <tom@tromey.com>
7190 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7191 make_visible_with_new_height method.
7192 (tui_win_info::make_visible_with_new_height): New method.
7193 (tui_source_window_base::do_make_visible_with_new_height)
7194 (tui_data_window::do_make_visible_with_new_height)
7195 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7196 (make_visible_with_new_height): Remove.
7197 (tui_resize_all, tui_adjust_win_heights): Use
7198 make_visible_with_new_height method.
7199 * tui/tui-data.h (struct tui_win_info)
7200 <do_make_visible_with_new_height, make_visible_with_new_height>:
7202 (struct tui_source_window_base, struct tui_data_window)
7203 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7206 2019-06-25 Tom Tromey <tom@tromey.com>
7208 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7210 (update_tab_width): Call update_tab_width method.
7211 * tui/tui-data.h (struct tui_win_info)
7212 (struct tui_source_window_base) <update_tab_width>: New methods.
7214 2019-06-25 Tom Tromey <tom@tromey.com>
7216 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7218 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7220 (tui_gen_win_info::make_visible): Update.
7221 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7223 * tui/tui-data.h (enum tui_box): New enum.
7224 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7226 2019-06-25 Tom Tromey <tom@tromey.com>
7228 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7229 init_and_make_win for EXEC_INFO_WIN.
7230 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7232 (struct tui_win_info) <~tui_win_info>: Inline.
7233 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7235 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7236 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7238 (tui_initialize_static_data): Update.
7239 (~tui_gen_win_info): Handle more cleanup here.
7240 (~tui_source_window_base): Delete "execution_info".
7241 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7243 2019-06-25 Tom Tromey <tom@tromey.com>
7245 * tui/tui-layout.c (make_command_window): Don't set
7247 (show_source_disasm_command): Call the reset method.
7248 (show_data): Don't set can_highlight. Call the reset method.
7249 (tui_gen_win_info::reset): Rename from init_gen_win_info
7250 (init_and_make_win): Simplify. Return tui_gen_win_info.
7251 (show_source_or_disasm_and_command): Call the reset method.
7252 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7253 (struct tui_cmd_window): Set can_highlight.
7255 2019-06-25 Tom Tromey <tom@tromey.com>
7257 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7259 (tui_make_visible, tui_make_invisible): Rewrite.
7260 (tui_win_info::make_visible): Remove.
7261 (tui_source_window_base::make_visible): Update.
7262 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7263 method. Moved from...
7264 (struct tui_win_info) <make_visible>: ...here.
7266 2019-06-25 Tom Tromey <tom@tromey.com>
7268 * tui/tui-winsource.c
7269 (tui_source_window_base::do_scroll_horizontal): Remove direction
7271 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7272 direction parameter.
7273 * tui/tui-win.c (tui_win_info::forward_scroll)
7274 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7275 (tui_win_info::right_scroll): Update.
7276 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7277 direction parameter.
7278 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7279 direction parameter.
7280 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7281 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7282 Remove direction parameter.
7283 (struct tui_source_window_base, struct tui_source_window)
7284 (struct tui_disasm_window, struct tui_data_window)
7285 (struct tui_cmd_window): Update.
7287 2019-06-25 Tom Tromey <tom@tromey.com>
7289 * tui/tui-winsource.h (tui_set_exec_info_content)
7290 (tui_show_exec_info_content, tui_erase_exec_info_content)
7291 (tui_clear_exec_info_content, tui_update_exec_info): Change
7292 argument to tui_source_window_base.
7293 * tui/tui-winsource.c (tui_set_exec_info_content)
7294 (tui_show_exec_info_content, tui_erase_exec_info_content)
7295 (tui_clear_exec_info_content, tui_update_exec_info): Change
7296 argument to tui_source_window_base.
7298 2019-06-25 Tom Tromey <tom@tromey.com>
7300 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7301 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7303 2019-06-25 Tom Tromey <tom@tromey.com>
7305 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7308 2019-06-25 Tom Tromey <tom@tromey.com>
7310 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7312 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7314 * tui/tui-source.c (tui_set_source_content): Update.
7315 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7317 2019-06-25 Tom Tromey <tom@tromey.com>
7319 * tui/tui-win.c (window_name_completer, tui_set_focus)
7320 (tui_all_windows_info): Use name method.
7321 * tui/tui-data.h (struct tui_gen_win_info)
7322 (struct tui_source_window, struct tui_disasm_window)
7323 (struct tui_data_window, struct tui_cmd_window) <name>: New
7325 (tui_win_name): Don't declare.
7326 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7327 (tui_win_name): Remove.
7329 2019-06-25 Tom Tromey <tom@tromey.com>
7331 * tui/tui-winsource.h (tui_update_source_window)
7332 (tui_update_source_window_as_is): Change parameter type.
7333 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7334 to be a tui_source_window_base.
7335 (tui_update_source_window_as_is): Likewise.
7336 * tui/tui-win.c (make_visible_with_new_height): Update.
7338 2019-06-25 Tom Tromey <tom@tromey.com>
7340 * tui/tui-winsource.c (tui_erase_source_content)
7341 (tui_show_source_content, tui_show_exec_info_content)
7342 (tui_erase_exec_info_content): Use refresh_window method.
7343 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7344 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7345 from tui_refresh_win.
7346 (tui_data_window::refresh_window): New method.
7347 (tui_win_info::refresh, tui_source_window_base::refresh)
7348 (tui_refresh_all): Use refresh_window method.
7349 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7351 * tui/tui-regs.c (tui_display_register): Call refresh_window
7353 * tui/tui-layout.c (show_source_disasm_command)
7354 (show_source_or_disasm_and_command): Call refresh_window method.
7355 * tui/tui-data.h (struct tui_gen_win_info)
7356 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7359 2019-06-25 Tom Tromey <tom@tromey.com>
7361 * tui/tui.c (tui_rl_other_window, tui_enable)
7362 (tui_is_window_visible, tui_get_command_dimension): Update.
7363 * tui/tui-winsource.c (tui_update_source_window_as_is)
7364 (tui_clear_source_content, tui_erase_source_content)
7365 (tui_show_source_line, tui_source_window_base::refill)
7366 (tui_source_window_base::do_scroll_horizontal)
7367 (tui_source_window_base::set_is_exec_point_at)
7368 (tui_update_breakpoint_info, tui_set_exec_info_content)
7369 (tui_alloc_source_buffer, tui_line_is_displayed)
7370 (tui_addr_is_displayed): Update.
7371 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7372 (tui_check_and_display_highlight_if_needed)
7373 (tui_win_info::make_visible, tui_win_info::refresh)
7374 (tui_refresh_all): Update.
7375 * tui/tui-windata.c (tui_first_data_item_displayed)
7376 (tui_delete_data_content_windows, tui_erase_data_content)
7377 (tui_display_all_data, tui_data_window::refresh_all)
7378 (tui_check_data_values): Update.
7379 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7380 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7381 (tui_win_info::backward_scroll, tui_refresh_all_win)
7382 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7383 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7384 (tui_source_window_base::set_new_height)
7385 (tui_data_window::set_new_height)
7386 (make_invisible_and_set_new_height)
7387 (make_visible_with_new_height, new_height_ok)
7388 (parse_scrolling_args): Update.
7389 * tui/tui-stack.c (tui_show_frame_info): Update.
7390 * tui/tui-source.c (tui_set_source_content)
7391 (tui_set_source_content_nil, tui_source_is_displayed)
7392 (tui_source_window::do_scroll_vertical): Update.
7393 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7394 (tui_display_registers_from, tui_display_reg_element_at_line)
7395 (tui_check_register_values, tui_reg_command): Update.
7396 * tui/tui-layout.c (tui_default_win_height)
7397 (show_source_disasm_command, show_data, init_and_make_win)
7398 (show_source_or_disasm_and_command): Update.
7399 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7400 (tui_redisplay_readline, tui_mld_flush)
7401 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7403 * tui/tui-disasm.c (tui_set_disassem_content)
7404 (tui_disasm_window::do_scroll_vertical): Update.
7405 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7407 (struct tui_win_info): Derive from tui_gen_win_info.
7408 <~tui_win_info>: Mark as override.
7409 <generic>: Remove member.
7410 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7411 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7412 (~tui_data_window, ~tui_win_info)
7413 (tui_free_all_source_wins_content): Update.
7414 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7416 2019-06-25 Tom Tromey <tom@tromey.com>
7418 * tui/tui-layout.c (init_and_make_win): Use new.
7419 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7420 destructor, initializers.
7421 (tui_alloc_generic_win_info): Don't declare.
7422 * tui/tui-data.c (_locator): Add argument to constructor.
7423 (source_win, disasm_win): New globals.
7424 (exec_info): Remove.
7425 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7427 (tui_alloc_generic_win_info): Remove.
7428 (init_content_element): Use new.
7429 (tui_win_info::tui_win_info): Update.
7430 (free_content_elements) <case DATA_WIN>: Use delete.
7432 2019-06-25 Tom Tromey <tom@tromey.com>
7434 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7435 * tui/tui-windata.c (tui_first_data_item_displayed)
7436 (tui_delete_data_content_windows): Update.
7437 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7438 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7439 (tui_display_registers_from, tui_check_register_values): Update.
7440 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7442 * tui/tui-data.c (init_content_element): Update. Allocate the new
7444 (tui_free_data_content): Update.
7445 (free_content_elements) <case DATA_WIN>: Free the window.
7447 2019-06-25 Tom Tromey <tom@tromey.com>
7449 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7451 * tui/tui-layout.c (make_command_window)
7452 (show_source_disasm_command, show_data, init_and_make_win)
7453 (show_source_or_disasm_and_command): Update.
7454 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7456 <can_highight, is_highlighted>: Now bool.
7457 (tui_set_win_highlight): Don't declare.
7458 * tui/tui-data.c (tui_set_win_highlight): Remove.
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7462 * tui/tui-wingeneral.c (make_visible): Remove check of window
7465 2019-06-25 Tom Tromey <tom@tromey.com>
7467 * tui/tui-win.c (tui_win_info::max_height)
7468 (tui_cmd_window::max_height): New methods.
7469 (new_height_ok): Call max_height.
7470 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7471 <max_height>: New method.
7473 2019-06-25 Tom Tromey <tom@tromey.com>
7475 * tui/tui-win.c (tui_source_window_base::set_new_height)
7476 (tui_data_window::set_new_height): New methods.
7477 (make_invisible_and_set_new_height): Call set_new_height method.
7478 * tui/tui-data.h (struct tui_win_info)
7479 (struct tui_source_window_base, struct tui_data_window)
7480 <set_new_height>: New method.
7482 2019-06-25 Tom Tromey <tom@tromey.com>
7484 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7485 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7486 tui_refresh_data_win.
7487 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7489 (tui_refresh_all_win): Call the refresh_all method.
7490 (tui_set_focus): Likewise.
7491 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7492 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7497 * tui/tui-winsource.h (tui_refill_source_window)
7498 (tui_set_is_exec_point_at): Don't declare.
7499 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7500 (tui_source_window_base::refill): Rename from
7501 tui_refill_source_window.
7502 (tui_source_window_base::do_scroll_horizontal): Update.
7503 (tui_source_window_base::set_is_exec_point_at): Rename from
7504 tui_set_is_exec_point_at.
7505 (tui_update_all_breakpoint_info): Update.
7506 * tui/tui-stack.c (tui_show_frame_info): Update.
7507 * tui/tui-layout.c (show_data): Add cast.
7508 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7509 * tui/tui-data.h (struct tui_source_window_base) <refill,
7510 set_is_exec_point_at>: New methods.
7511 (tui_source_windows, tui_add_to_source_windows): Update types.
7512 (tui_add_to_source_windows): Remove redundant declaration.
7513 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7514 (tui_source_windows): Change return type.
7515 (tui_clear_source_windows_detail): Update.
7516 (tui_add_to_source_windows): Change type of parameter.
7517 (tui_free_all_source_wins_content): Update.
7519 2019-06-25 Tom Tromey <tom@tromey.com>
7521 * tui/tui-wingeneral.c (tui_win_info::refresh)
7522 (tui_source_window_base::refresh): New methods.
7523 (tui_refresh_all): Call the refresh method.
7524 * tui/tui-data.h (struct tui_win_info)
7525 (struct tui_source_window_base) <refresh>: New method.
7527 2019-06-25 Tom Tromey <tom@tromey.com>
7529 * tui/tui.h (tui_is_window_visible): Return bool.
7530 * tui/tui.c (tui_is_window_visible): Return bool.
7531 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7532 (tui_make_visible, tui_make_invisible)
7533 (tui_win_info::make_visible)
7534 (tui_source_window_base::make_visible, make_all_visible)
7535 (tui_make_all_visible, tui_make_all_invisible): Update.
7536 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7537 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7539 (struct tui_win_info, struct tui_source_window_base)
7540 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7541 * tui/tui-data.c (tui_init_generic_part): Update.
7543 2019-06-25 Tom Tromey <tom@tromey.com>
7545 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7546 (tui_source_window_base::make_visible): New methods.
7547 (make_all_visible): Make method call.
7548 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7549 (struct tui_source_window_base, struct tui_cmd_window): Override
7551 (tui_win_is_source_type): Don't declare.
7552 * tui/tui-data.c (tui_win_is_source_type): Remove.
7554 2019-06-25 Tom Tromey <tom@tromey.com>
7556 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7559 2019-06-25 Tom Tromey <tom@tromey.com>
7561 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7562 Inline constructor. Add initializers for members.
7563 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7564 constructors; now inline in class.
7566 2019-06-25 Tom Tromey <tom@tromey.com>
7568 * tui/tui-regs.c (tui_show_registers): Update.
7569 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7571 * tui/tui-data.c (tui_data_window::clear_detail)
7572 (tui_data_window): Update.
7574 2019-06-25 Tom Tromey <tom@tromey.com>
7576 * tui/tui-windata.c (tui_display_all_data)
7577 (tui_display_data_from_line, tui_display_data_from)
7578 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7580 * tui/tui-regs.c (tui_last_regs_line_no)
7581 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7582 (tui_show_registers, tui_show_register_group)
7583 (tui_display_registers_from, tui_display_reg_element_at_line)
7584 (tui_display_registers_from_line, tui_check_register_values)
7585 (tui_reg_next, tui_reg_prev): Update.
7586 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7587 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7589 (struct tui_win_info) <detail>: Remove. Add new fields from
7591 (TUI_DATA_WIN): Add cast.
7592 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7593 (~tui_data_window): Simplify.
7595 2019-06-25 Tom Tromey <tom@tromey.com>
7597 * tui/tui-layout.c (show_source_disasm_command)
7598 (show_source_or_disasm_and_command): Update.
7599 * tui/tui-io.c (update_cmdwin_start_line)
7600 (tui_redisplay_readline): Update.
7601 * tui/tui-data.h (struct tui_command_info): Remove.
7602 (struct tui_win_info) <detail>: Remove command_info member.
7603 (struct tui_data_window) <start_line>: New member, from
7605 (TUI_CMD_WIN): Add casts.
7607 2019-06-25 Tom Tromey <tom@tromey.com>
7609 * tui/tui-winsource.c (tui_update_source_window)
7610 (tui_refill_source_window)
7611 (tui_source_window_base::do_scroll_horizontal)
7612 (tui_update_breakpoint_info, tui_set_exec_info_content)
7613 (tui_show_exec_info_content, tui_erase_exec_info_content)
7614 (tui_clear_exec_info_content): Update.
7615 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7617 * tui/tui-win.c (make_invisible_and_set_new_height)
7618 (make_visible_with_new_height): Update.
7619 * tui/tui-source.c (tui_set_source_content)
7620 (tui_show_symtab_source): Update.
7621 * tui/tui-layout.c (extract_display_start_addr)
7622 (show_source_disasm_command, show_data)
7623 (make_source_or_disasm_window)
7624 (show_source_or_disasm_and_command): Update.
7625 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7626 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7628 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7629 to tui_source_window_base.
7630 (struct tui_win_info) <detail>: Remove source_info member.
7631 (struct tui_source_window_base) <has_locator>: Inline.
7632 Move contents from tui_source_info; rename has_locator member to
7634 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7635 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7637 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7639 (tui_free_all_source_wins_content): Cast to
7640 tui_source_window_base.
7642 2019-06-25 Tom Tromey <tom@tromey.com>
7644 * tui/tui-win.c (make_invisible_and_set_new_height)
7645 (make_visible_with_new_height): Call has_locator method.
7646 * tui/tui-layout.c (show_source_disasm_command, show_data)
7647 (show_source_or_disasm_and_command): Update for bool change.
7648 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7649 (tui_win_info) <has_locator>: New method.
7650 (struct tui_source_window_base) <has_locator>: New method.
7651 (tui_win_has_locator): Don't declare.
7652 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7653 from tui_win_has_locator.
7654 (tui_source_window_base): Use false, not FALSE.
7656 2019-06-25 Tom Tromey <tom@tromey.com>
7658 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7659 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7660 clear_detail method directly.
7661 (tui_clear_win_detail): Remove.
7663 2019-06-25 Tom Tromey <tom@tromey.com>
7665 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7666 "this", not TUI_DISASM_WIN.
7668 2019-06-25 Tom Tromey <tom@tromey.com>
7670 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7672 * tui/tui-winsource.c
7673 (tui_source_window_base::do_scroll_horizontal): Rename from
7674 tui_horizontal_source_scroll.
7675 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7676 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7677 from tui_vertical_data_scroll.
7678 * tui/tui-win.h (tui_scroll): Don't declare.
7679 * tui/tui-win.c (tui_win_info::forward_scroll)
7680 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7681 (tui_win_info::right_scroll): Rename and update.
7682 (tui_scroll_forward_command, tui_scroll_backward_command)
7683 (tui_scroll_left_command, tui_scroll_right_command): Update.
7684 (tui_scroll): Remove.
7685 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7686 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7687 from tui_vertical_source_scroll.
7688 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7689 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7690 from tui_vertical_disassem_scroll.
7691 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7692 do_scroll_horizontal>: New methods.
7693 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7695 (struct tui_source_window_base): Add do_scroll_horizontal.
7696 (struct tui_source_window, struct tui_disasm_window): Add
7698 (struct tui_data_window, struct tui_cmd_window): Add
7699 do_scroll_horizontal and do_scroll_vertical.
7700 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7702 2019-06-25 Tom Tromey <tom@tromey.com>
7704 * tui/tui-data.h (struct tui_source_window_base): New struct.
7705 (struct tui_source_window): Derive from tui_source_window_base.
7706 (struct tui_disasm_window): New struct.
7707 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7708 from tui_source_window::clear_detail.
7709 (tui_source_window_base): Rename from tui_source_window.
7710 (~tui_source_window_base): Rename from ~tui_source_window.
7711 (tui_alloc_win_info): Create a tui_disasm_window.
7713 2019-06-25 Tom Tromey <tom@tromey.com>
7715 * tui/tui-data.h (struct tui_source_window)
7716 (struct tui_data_window): Declare destructors.
7717 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7719 (tui_win_info): Simplify.
7721 2019-06-25 Tom Tromey <tom@tromey.com>
7723 * tui/tui-winsource.c (tui_display_main)
7724 (tui_update_source_windows_with_addr)
7725 (tui_update_all_breakpoint_info): Update.
7726 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7727 (new_height_ok, parse_scrolling_args): Update.
7728 * tui/tui-stack.c (tui_show_frame_info): Update.
7729 * tui/tui-data.h (struct tui_list): Remove.
7730 (tui_source_windows): Return a reference to a std::vector.
7731 * tui/tui-data.c (source_windows): Now a std::vector.
7732 (tui_source_windows): Change return type.
7733 (tui_clear_source_windows): Rewrite.
7734 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7735 (tui_free_all_source_wins_content): Rewrite.
7737 2019-06-25 Tom Tromey <tom@tromey.com>
7739 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7740 (struct tui_data_window, struct tui_cmd_window): Declare
7741 clear_detail method.
7742 * tui/tui-data.c (tui_source_window::clear_detail)
7743 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7745 (tui_clear_win_detail): Simplify.
7747 2019-06-25 Tom Tromey <tom@tromey.com>
7749 * tui/tui-layout.c (make_source_window, make_disasm_window)
7750 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7751 Return the new window.
7752 (show_source_disasm_command, show_data)
7753 (show_source_or_disasm_and_command): Update.
7755 2019-06-25 Tom Tromey <tom@tromey.com>
7757 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7758 parameter. Return the new window.
7759 (show_source_disasm_command): Update and remove NULL check.
7760 (show_source_or_disasm_and_command): Update.
7762 2019-06-25 Tom Tromey <tom@tromey.com>
7764 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7766 2019-06-25 Tom Tromey <tom@tromey.com>
7768 * tui/tui-data.h (struct tui_win_info): Make constructor
7769 protected. Make destructor virtual. Add initializers.
7770 (tui_source_window, tui_data_window, tui_cmd_window): New
7772 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7773 constructor. Add "type" parameter.
7774 (tui_source_window, tui_data_window, tui_cmd_window): New
7776 (tui_alloc_win_info): Instantiate the appropriate subclass.
7778 2019-06-25 Tom Tromey <tom@tromey.com>
7780 * tui/tui-win.c (tui_resize_all): Use delete.
7781 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7783 (tui_free_window): Don't declare.
7784 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7787 2019-06-25 Tom Tromey <tom@tromey.com>
7789 * tui/tui-data.h (struct tui_win_info): Add constructor.
7790 * tui/tui-data.c (tui_alloc_win_info): Use new.
7791 (tui_free_window): Use delete.
7793 2019-06-22 Tom Tromey <tom@tromey.com>
7795 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7797 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7799 2019-06-22 Tom Tromey <tom@tromey.com>
7801 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7803 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7805 2019-06-22 Tom de Vries <tdevries@suse.de>
7807 * dwarf2read.c (create_addrmap_from_aranges)
7808 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7811 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7813 * dwarf2read.h (dwarf2_section_info_def): Remove.
7814 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7815 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7816 std::vector<dwarf2_section_info>.
7817 (struct dwo_file) <~dwo_file>: Remove.
7818 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7820 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7821 (dwarf2_read_debug_names): Likewise.
7822 (create_debug_types_hash_table): Change parameter type to
7823 array_view, adjust code accordingly.
7824 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7825 (partial_die_info::fixup): Likewise.
7826 (determine_prefix): Likewise.
7827 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7829 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7831 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7833 <~dwo_file>: Remove call to gdb_bfd_unref.
7834 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7835 gdb_bfd_ref_ptr::get.
7837 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7839 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7841 * dwarf2read.c (struct dwo_file): Initialize fields.
7843 (free_dwo_file): Remove, move content to ~dwo_file.
7844 (struct dwo_file_deleter): Remove.
7845 (dwo_file_up>: Remove custom deleter.
7846 (free_dwo_files): Remove.
7847 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7849 (process_skeletonless_type_units): Call unique_ptr::get.
7850 (allocate_dwo_file_hash_table): Add deleter to created hash
7851 table. Change return type to htab_up.
7852 (lookup_dwo_file_slot): Don't memset dwo_file, call
7854 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7855 (create_dwo_unit_in_dwp_v2): Likewise.
7856 (open_and_init_dwo_file): Likewise.
7857 (free_dwo_file_from_slot): Remove.
7859 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7861 * dwarf2read.h (struct dwarf2_section_info) <readin,
7862 is_virtual>: Change type to bool.
7863 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7866 2019-06-19 Tom Tromey <tom@tromey.com>
7868 * tui/tui-data.h (tui_init_content_element): Don't declare.
7870 2019-06-19 Tom Tromey <tom@tromey.com>
7872 * tui/tui-data.h (tui_init_win_info): Don't declare.
7874 2019-06-19 Tom de Vries <tdevries@suse.de>
7876 * dwarf2read.h (abstract_to_concrete): Change type to
7877 std::unordered_map<sect_offset, std::vector<sect_offset>,
7878 gdb::hash_enum<sect_offset>>.
7880 2019-06-19 Tom Tromey <tromey@adacore.com>
7882 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7883 EVAL_AVOID_SIDE_EFFECTS specially.
7885 2019-06-19 Tom Tromey <tromey@adacore.com>
7887 * source-cache.c (highlighter): New global.
7888 (source_cache::get_source_lines): Create a highlighter on demand.
7890 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7892 * defs.h (deprecated_interactive_hook): Delete declaration.
7893 * interps.c (clear_interpreter_hooks): Remove use of
7894 deprecated_interactive_hook.
7895 * top.c (deprecated_interactive_hook): Delete definition.
7896 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7898 2019-06-18 Tom de Vries <tdevries@suse.de>
7901 * dwarf2read.h (abstract_to_concrete): Change type from
7902 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7903 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7904 * dwarf2read.c (read_variable): Update.
7905 (dwarf2_fetch_die_loc_sect_off): Update.
7907 2019-06-17 Tom de Vries <tdevries@suse.de>
7910 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7911 accessing parent[parent_len - 1].
7913 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7916 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7917 call dtrace_process_dof with NULL dof.
7919 2019-06-16 Tom de Vries <tdevries@suse.de>
7922 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7924 2019-06-16 Tom Tromey <tom@tromey.com>
7926 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7927 (make_all_visible): Use address of member.
7929 2019-06-16 Tom Tromey <tom@tromey.com>
7931 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7932 (tui_free_window, free_content, free_content_elements): Remove
7934 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7936 * tui/tui-regs.c (tui_show_register_group)
7937 (tui_display_registers_from, tui_display_reg_element_at_line):
7938 Remove unnecessary cast.
7940 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7942 * linux-nat.c (normal_mask): Delete.
7943 (_initialize_linux_nat): Don't initialise normal_mask.
7945 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7948 * dwarf-index-write.h (write_psymtabs_to_index): Add
7949 dwz_basename parameter.
7950 * dwarf-index-write.c (write_gdbindex): Move file writing to
7951 write_gdbindex_1. Change return type void.
7952 (assert_file_size): Move up, remove filename parameter.
7953 (write_gdbindex_1): New function.
7954 (write_debug_names): Change return type to void, call
7956 (struct index_wip_file): New struct.
7957 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7958 file logic to index_wip_file. Write index for dwz file if
7960 (save_gdb_index_command): Pass basename of dwz file, if present.
7961 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7962 build-id of dwz file, if present.
7963 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7964 (dwarf2_get_dwz_file): Likewise.
7965 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7966 (dwarf2_get_dwz_file): Likewise.
7968 2019-06-16 Tom Tromey <tom@tromey.com>
7970 * coffread.c (process_coff_symbol): Use xstrdup.
7971 * value.c (create_internalvar): Use xstrdup.
7973 2019-06-16 Tom Tromey <tom@tromey.com>
7975 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7976 * breakpoint.c (stopin_command, stopat_command)
7977 (until_break_command, decode_location_default): Remove unnecessary
7979 * utils.c (subset_compare): Remove unnecessary cast.
7980 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7982 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7984 * infcmd.c (path_command): Remove unnecessary cast.
7985 * coffread.c (decode_type): Remove unnecessary cast.
7986 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7987 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7988 * tui/tui-stack.c (tui_show_locator_content)
7989 (tui_show_frame_info): Remove unnecessary cast.
7990 * tui/tui-win.c (tui_scroll_forward_command)
7991 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7992 (parse_scrolling_args): Remove unnecessary cast.
7993 * tui/tui-data.c (init_win_info, tui_del_window)
7994 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7995 (free_content_elements): Remove unnecessary cast.
7996 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7998 * tui/tui-source.c (tui_set_source_content)
7999 (tui_vertical_source_scroll): Remove unnecessary cast.
8000 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8002 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8003 * tui/tui-regs.c (tui_display_registers_from)
8004 (tui_display_register): Remove unnecessary cast.
8005 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8006 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8007 (make_visible): Remove unnecessary cast.
8008 * tui/tui-winsource.c (tui_erase_source_content)
8009 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8011 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8012 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8013 * stabsread.c (read_type, read_array_type, read_range_type):
8014 Remove unnecessary cast.
8015 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8016 (parse_symbol, parse_type, upgrade_type, parse_external)
8017 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8019 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8021 2019-06-16 Tom Tromey <tom@tromey.com>
8023 * tui/tui-data.c (tui_alloc_generic_win_info)
8024 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8027 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8028 Andrew Burgess <andrew.burgess@embecosm.com>
8030 * f-typeprint.c (f_print_type): Don't return early for not
8031 associated or not allocated types.
8032 (f_type_print_varspec_suffix): Add print_rank parameter and print
8033 ranks of array types in case they dangling.
8034 (f_type_print_base): Add print_rank parameter.
8036 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8038 * NEWS: Mention new MI commands.
8039 * break-catch-throw.c (enum exception_event_kind): Move to
8041 (print_mention_exception_catchpoint): Output text as a single
8043 (catch_exception_command_1): Rename to...
8044 (catch_exception_event): ...this, make non-static, update header
8045 command, and change some parameter types.
8046 (catch_catch_command): Update for changes to
8047 catch_exception_command_1.
8048 (catch_throw_command): Likewise.
8049 (catch_rethrow_command): Likewise.
8050 * breakpoint.c (enum exception_event_kind): Delete.
8051 * breakpoint.h (enum exception_event_kind): Moved here from
8052 break-catch-throw.c.
8053 (catch_exception_event): Declare.
8054 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8055 (mi_cmd_catch_throw): New function.
8056 (mi_cmd_catch_rethrow): New function.
8057 (mi_cmd_catch_catch): New function.
8058 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8059 'catch-catch' entries.
8060 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8061 (mi_cmd_catch_rethrow): Declare.
8062 (mi_cmd_catch_catch): Declare.
8064 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8066 * annotate.c (annotate_source_line): Change return type to void,
8067 update implementation to match.
8068 * annotate.h (annotate_source_line): Change return type to void,
8069 update header comment.
8070 * stack.c (print_frame_info): Don't change what frame information
8071 is printed based on whether annotations are on or not.
8073 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8075 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8076 (annotate_source): Make static.
8077 (annotate_source_line): Moved from source.c and renamed from
8078 identify_source_line. Update the return type.
8079 * annotate.h (annotate_source): Delete declaration.
8080 (annotate_source_line): Declaration moved from source.h, and
8081 renamed from identify_source_line. Return type updated.
8082 * source.c (identify_source_line): Moved to annotate.c and renamed
8083 to annotate_source_line.
8084 (info_line_command): Remove check of annotation_level.
8085 * source.h (identify_source_line): Move declaration to annotate.h
8086 and rename to annotate_source_line.
8087 * stack.c: Add 'annotate.h' include.
8088 (print_frame_info): Remove check of annotation_level before
8089 calling annotate_source_line.
8091 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8093 * source-cache.c (source_cache::get_plain_source_lines): Use
8094 open_source_file_with_line_charpos instead of just
8095 open_source_file, remove call to find_source_lines.
8096 (source_cache::get_source_lines): Likewise.
8097 * source.c (find_source_lines): Make static.
8098 (get_filename_and_charpos): Renamed into...
8099 (open_source_file_with_line_charpos): ..this along with changes to
8100 return a scoped_fd, and some other minor clean ups.
8101 (identify_source_line): Use open_source_file_with_line_charpos.
8102 (search_command_helper): Use open_source_file_with_line_charpos
8103 instead of just open_source_file, remove call to
8105 * source.h (open_source_file_with_line_charpos): Declare new
8107 (find_source_lines): Delete declaration.
8109 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8111 * source.c (get_filename_and_charpos): Remove fullname
8113 (identify_source_line): Update call to get_filename_and_charpos.
8115 2019-06-14 Tom Tromey <tromey@adacore.com>
8118 * ui-style.h (skip_ansi_escape): Update comment.
8119 * ui-file.h (class no_terminal_escape_file): New class.
8120 * ui-file.c (no_terminal_escape_file::write)
8121 (no_terminal_escape_file::puts): New methods.
8122 * cli/cli-logging.c (handle_redirections): Use
8123 no_terminal_escape_file.
8125 2019-06-14 Tom Tromey <tromey@adacore.com>
8127 * NEWS: Move convenience variable news above Python news.
8129 2019-06-14 Tom Tromey <tom@tromey.com>
8131 * gnulib: Move directory to top-level.
8132 * configure.ac: Don't configure gnulib.
8133 * configure: Rebuild.
8134 * common/common-defs.h: Use new path to gnulib.
8135 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8137 (INCGNU): Look in new gnulib location.
8138 (HFILES_NO_SRCDIR): Remove gnulib files.
8139 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8140 (generated_files): Remove GNULIB_H.
8141 ($(LIBGNU), all-lib): Remove targets.
8142 (distclean): Don't mention GNULIB_BUILDDIR.
8143 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8145 2019-06-14 Tom Tromey <tromey@adacore.com>
8147 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8148 Warn if symbol file does not provide any symbols.
8150 2019-06-14 Tom Tromey <tromey@adacore.com>
8152 * source.c (find_and_open_source): Respect basenames_may_differ.
8154 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8156 * annotate.c (annotate_breakpoints_invalid): Make use of
8157 scoped_restore_terminal_state.
8158 (annotate_frames_invalid): Likewise.
8160 2019-06-14 Tom Tromey <tromey@adacore.com>
8162 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8163 allow assignment to an internalvar.
8165 2019-06-14 Tom Tromey <tromey@adacore.com>
8167 * ada-lex.l: Allow "_" in attribute names.
8169 2019-06-14 Tom Tromey <tromey@adacore.com>
8172 * regcache.c (registers_changed): Don't call alloca.
8173 * top.c (execute_command): Don't call alloca.
8175 2019-06-13 Pedro Alves <palves@redhat.com>
8177 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8178 'expression'. When parsing an expression, error out if there's
8179 junk after "unlimited".
8180 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8181 (do_set_command): Adjust calls to is_unlimited_literal.
8183 2019-06-13 Pedro Alves <palves@redhat.com>
8185 * compile/compile.c (make_compile_options_def_group): Add braces
8186 around array_view initializer.
8187 * thread.c (make_thread_apply_all_options_def_group)
8188 (make_thread_apply_all_options_def_group): Likewise.
8190 2019-06-13 Pedro Alves <palves@redhat.com>
8192 * NEWS (New commands): Mention "maint test-options
8193 require-delimiter", "maint test-options unknown-is-error", "maint
8194 test-options unknown-is-operand" and "maint show
8195 test-options-completion-result".
8196 (New command options, command completion): New section.
8197 (Completion improvements): New section.
8198 Mention that you can abbreviate "unlimited".
8200 2019-06-13 Pedro Alves <palves@redhat.com>
8202 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8203 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8204 * unittests/cli-utils-selftests.c (test_parse_flags)
8205 (test_parse_flags_qcs): Delete.
8206 (test_cli_utils): Don't call deleted functions.
8208 2019-06-13 Pedro Alves <palves@redhat.com>
8210 * thread.c: Include "cli/cli-option.h".
8211 (tp_array_compar_ascending): Global.
8212 (tp_array_compar): Delete function.
8213 (tp_array_compar_ascending, tp_array_compar_descending): New
8215 (ascending_option_def, qcs_flag_option_def)
8216 (thr_qcs_flags_option_defs)
8217 (make_thread_apply_all_options_def_group)
8218 (make_thread_apply_options_def_group): New.
8219 (thread_apply_all_command): Use gdb::option::process_options.
8220 (thread_apply_command_completer)
8221 (thread_apply_all_command_completer): New.
8222 (thread_apply_command): Use gdb::option::process_options.
8223 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8224 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8225 to generate help text of "thread apply". Adjust "taas"'s help.
8226 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8227 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8229 2019-06-13 Pedro Alves <palves@redhat.com>
8231 * thread.c (thread_apply_command): Check for invalid TID with
8232 isdigit instead of !isalpha.
8234 2019-06-13 Pedro Alves <palves@redhat.com>
8236 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8237 (validate_flags_qcs): New.
8238 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8239 (validate_flags_qcs): Declare.
8240 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8241 (make_frame_apply_options_def_group): New.
8242 (frame_apply_command_count): Process options with
8243 gdb::option::process_options.
8244 (frame_apply_completer): New.
8245 (frame_apply_level_completer, frame_apply_all_completer)
8246 (frame_apply_completer): New.
8247 (_initialize_stack): Update help of "frame apply", "frame apply
8248 level", "frame apply all" and "faas" to mention supported options
8249 and install command completers.
8250 * stack.h (frame_apply_all_completer): Declare.
8251 * thread.c: Include "stack.h".
8252 (tfaas_command): Add "--".
8253 (_initialize_thread): Update help "tfaas" to mention supported
8254 options and install command completer.
8256 2019-06-13 Pedro Alves <palves@redhat.com>
8258 * completer.c (complete_nested_command_line): New.
8259 (gdb_completion_word_break_characters_throw): Add assertion.
8260 * completer.h (complete_nested_command_line): Declare.
8262 2019-06-13 Pedro Alves <palves@redhat.com>
8264 * stack.c (parse_backtrace_qualifiers): New.
8265 (backtrace_command): Use it.
8266 (backtrace_command_completer): Complete on qualifiers.
8268 2019-06-13 Pedro Alves <palves@redhat.com>
8270 * frame.c: Include "cli/cli-option.h.
8271 (user_set_backtrace_options): New.
8272 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8274 (get_prev_frame): Adjust.
8275 (boolean_option_def, uinteger_option_def)
8276 (set_backtrace_option_defs): New.
8277 (_initialize_frame): Adjust and use
8278 gdb::option::add_setshow_cmds_for_options to install "set
8279 backtrace past-main" and "set backtrace past-entry".
8280 * frame.h: Include "cli/cli-option.h".
8281 (struct frame_print_options): Forward declare.
8282 (print_frame_arguments_all, print_frame_arguments_scalars)
8283 (print_frame_arguments_none): Declare.
8284 (print_entry_values): Delete declaration.
8285 (struct frame_print_options, user_frame_print_options): New.
8286 (struct set_backtrace_options): New.
8287 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8288 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8289 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8290 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8291 (list_args_or_locals): Add frame_print_options parameter.
8292 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8293 * python/py-framefilter.c (enumerate_args): Pass down
8294 USER_FRAME_PRINT_OPTIONS.
8295 * stack.c: Include "cli/cli-option.h".
8296 (print_frame_arguments_all, print_frame_arguments_scalars)
8297 (print_frame_arguments_none): Declare.
8298 (print_raw_frame_arguments, print_entry_values): Delete.
8299 (user_frame_print_options): New.
8300 (boolean_option_def, enum_option_def, frame_print_option_defs):
8302 (struct backtrace_cmd_options): New.
8303 (bt_flag_option_def): New.
8304 (backtrace_command_option_defs): New.
8305 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8306 (print_frame_arg, read_frame_arg, print_frame_args)
8307 (print_frame_info, print_frame): Add frame_print_options parameter
8309 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8310 (backtrace_command_1): Add frame_print_options and
8311 backtrace_cmd_options parameters and use them.
8312 (make_backtrace_options_def_group): New.
8313 (backtrace_command): Process command options with
8314 gdb::option::process_options.
8315 (backtrace_command_completer): New.
8316 (_initialize_stack): Extend "backtrace"'s help to mention
8317 supported options. Install completer for "backtrace".
8318 Install some settings commands with add_setshow_cmds_for_options.
8320 2019-06-13 Pedro Alves <palves@redhat.com>
8322 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8323 and that "set/show print raw frame-arguments" are now deprecated.
8325 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8327 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8328 * stack.c (_initialize_stack): Install "set/show print
8329 raw-frame-arguments", and deprecate "set/show print raw
8331 * valprint.c (_initialize_valprint): Deprecate "set/show print
8334 2019-06-13 Pedro Alves <palves@redhat.com>
8336 * compile/compile.c (struct compile_options): New.
8337 (compile_flag_option_def, compile_command_option_defs)
8338 (make_compile_options_def_group): New.
8339 (compile_file_command): Handle options with
8340 gdb::option::process_options.
8341 (compile_file_command_completer): New function.
8342 (compile_code_command): Handle options with
8343 gdb::option::process_options.
8344 (compile_code_command_completer): New function.
8345 (_initialize_compiler): Install completers for "compile code" and
8346 "compile file". Mention available options in "compile code" and
8347 "compile code"'s help.
8348 * completer.c (advance_to_completion_word): New, factored out from
8350 (advance_to_expression_complete_word_point): ... this.
8351 (advance_to_filename_complete_word_point): New.
8352 * completer.h (advance_to_filename_complete_word_point): New
8355 2019-06-13 Pedro Alves <palves@redhat.com>
8357 * compile/compile.c: Include "cli/cli-option.h".
8358 (compile_print_value): Scope data pointer is now a
8359 value_print_options pointer; adjust.
8360 (compile_print_command): Process options. Scope data pointer is
8361 now a value_print_options pointer; adjust.
8362 (_initialize_compile): Update "compile print"'s help to include
8363 supported options. Install a completer for "compile print".
8364 * cp-valprint.c (show_vtblprint, show_objectprint)
8365 (show_static_field_print): Delete.
8366 (_initialize_cp_valprint): Don't install "set print
8367 static-members", "set print vtbl", "set print object" here.
8368 * printcmd.c: Include "cli/cli-option.h" and
8369 "common/gdb_optional.h".
8370 (print_command_parse_format): Rework to fill in a
8371 value_print_options instead of a format_data.
8372 (print_value): Change parameter type from format_data pointer to
8373 value_print_options reference. Adjust.
8374 (print_command_1): Process options. Adjust to pass down a
8375 value_print_options.
8376 (print_command_completer): New.
8377 (_initialize_printcmd): Install print_command_completer as
8378 handle_brkchars completer for the "print" command. Update
8379 "print"'s help to include supported options.
8380 * valprint.c: Include "cli/cli-option.h".
8381 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8382 here from cp-valprint.c.
8383 (boolean_option_def, uinteger_option_def)
8384 (value_print_option_defs, make_value_print_options_def_group):
8385 New. Use gdb::option::add_setshow_cmds_for_options to install
8386 "set print elements", "set print null-stop", "set print repeats",
8387 "set print pretty", "set print union", "set print array", "set
8388 print address", "set print symbol", "set print array-indexes".
8389 * valprint.h: Include <string> and "cli/cli-option.h".
8390 (make_value_print_options_def_group): Declare.
8391 (print_value): Change parameter type from format_data pointer to
8392 value_print_options reference.
8393 (print_command_completer): Declare.
8395 2019-06-13 Pedro Alves <palves@redhat.com>
8397 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8398 (COMMON_SFILES): Add maint-test-settings.c.
8399 * cli/cli-decode.c (boolean_enums): New global, factored out from
8401 (add_setshow_boolean_cmd): ... here.
8402 * cli/cli-decode.h (boolean_enums): Declare.
8403 * cli/cli-option.c: New file.
8404 * cli/cli-option.h: New file.
8405 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8406 factored out from ...
8407 (parse_cli_boolean_value(const char *)): ... this.
8408 (is_unlimited_literal): Change parameter type to pointer to
8409 pointer. Adjust and advance ARG pointer.
8410 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8411 (parse_cli_var_enum): New, factored out from ...
8412 (do_set_command): ... this. Adjust.
8413 * cli/cli-setshow.h (parse_cli_boolean_value)
8414 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8415 (parse_cli_var_enum): Declare.
8416 * cli/cli-utils.c: Include "cli/cli-option.h".
8417 (get_ulongest): New.
8418 * cli/cli-utils.h (get_ulongest): Declare.
8419 (check_for_argument): New overloads.
8420 * maint-test-options.c: New file.
8422 2019-06-13 Pedro Alves <palves@redhat.com>
8424 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8425 parse a range if "-" is at the end of the string.
8427 2019-06-13 Pedro Alves <palves@redhat.com>
8429 * cli/cli-setshow.c (parse_auto_binary_operation)
8430 (parse_cli_boolean_value): Don't allow "o".
8432 2019-06-13 Pedro Alves <palves@redhat.com>
8434 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8435 * NEWS: Mention maint test-settings KIND.
8436 * maint-test-settings.c: New file.
8438 2019-06-13 Pedro Alves <palves@redhat.com>
8440 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8442 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8445 2019-06-13 Pedro Alves <palves@redhat.com>
8447 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8450 2019-06-13 Pedro Alves <palves@redhat.com>
8452 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8454 2019-06-13 Pedro Alves <palves@redhat.com>
8456 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8457 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8459 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8460 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8462 (check_for_argument): Skip spaces after argument.
8464 2019-06-13 Pedro Alves <palves@redhat.com>
8466 * thread.c (thread_apply_command): Adjust TID parsing.
8467 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8468 detected before end of string.
8469 (tid_is_in_list): Error out if LIST is invalid.
8471 2019-06-13 Pedro Alves <palves@redhat.com>
8473 * completer.c (complete_line_internal_1): Rewind completion word
8475 (completion_tracker::advance_custom_word_point_by): Change
8476 parameter type to int.
8477 * completer.h (completion_tracker::advance_custom_word_point_by):
8480 2019-06-13 Pedro Alves <palves@redhat.com>
8482 * completer.c (advance_to_completion_word): Handle delimiters.
8484 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8486 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8488 2019-06-11 Tom Tromey <tom@tromey.com>
8490 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8491 (xmalloc_failed): Move to alloc.c.
8492 * alloc.c: New file.
8493 * Makefile.in (COMMON_SFILES): Add alloc.c.
8495 2019-06-11 Tom Tromey <tom@tromey.com>
8497 * nat/linux-waitpid.c: Don't include server.h.
8498 (linux_debug): Remove.
8499 (my_waitpid): Update.
8501 2019-06-11 Tom Tromey <tromey@adacore.com>
8503 * infcall.c (_initialize_infcall): Remove trailing newline from
8505 * user-regs.c (_initialize_user_regs): Remove trailing newline
8507 * typeprint.c (_initialize_typeprint): Remove trailing newline
8509 * reverse.c (_initialize_reverse): Remove trailing newlines from
8511 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8513 * language.c (add_set_language_command): Remove trailing newline
8515 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8517 * disasm.c (_initialize_disasm): Remove trailing newline from
8519 * top.c (init_main): Remove trailing newline from help.
8520 * interps.c (_initialize_interpreter): Remove trailing newline
8522 * btrace.c (_initialize_btrace): Remove trailing newlines from
8524 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8526 * python/python.c (_initialize_python): Remove trailing newline
8528 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8530 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8531 from help. Reformat some text.
8532 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8534 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8537 2019-06-11 Tom Tromey <tromey@adacore.com>
8539 * darwin-nat.c (darwin_decode_exception_message)
8540 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8542 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8544 * valops.c (value_slice): Check for not allocated or not
8547 2019-06-10 Tom de Vries <tdevries@suse.de>
8550 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8551 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8554 2019-06-10 Tom de Vries <tdevries@suse.de>
8557 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8558 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8560 2019-06-10 Tom de Vries <tdevries@suse.de>
8563 * symtab.c (struct demangled_name_entry): Add language field.
8564 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8565 static minimal symbol". Set and use language field.
8567 2019-06-10 Tom Tromey <tromey@adacore.com>
8569 * ada-lang.c (_initialize_ada_language): Update help text.
8571 2019-06-10 Tom Tromey <tromey@adacore.com>
8573 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8575 * guile/guile.c (handle_boot_error): Don't end warning with a
8577 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8578 warning with a newline.
8579 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8581 (s12z_frame_cache): Likewise.
8582 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8584 * solib-svr4.c (disable_probes_interface): Don't end warning with
8586 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8588 * python/python.c (do_finish_initialization): Don't end warning
8591 2019-06-10 Tom Tromey <tom@tromey.com>
8593 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8594 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8597 2019-06-10 Tom Tromey <tromey@adacore.com>
8599 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8601 (elf_new_init): Don't call stabsread_new_init.
8602 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8603 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8604 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8606 2019-06-10 Tom de Vries <tdevries@suse.de>
8610 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8612 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8614 * source.c (find_and_open_source): Also rewrite relative file
8617 2019-04-26 Amos Bird <amosbird@gmail.com>
8619 * annotate.c (annotate_thread_exited): Add "thread-exited"
8622 2019-06-06 Tom Tromey <tromey@adacore.com>
8624 * maint.h (class scoped_command_stats): Use
8625 DISABLE_COPY_AND_ASSIGN.
8626 <print_time>: New method.
8627 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8629 (scoped_command_stats::print_time): New method.
8631 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8633 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8634 instructions of lengths 6 or 8 bytes.
8636 2019-06-04 Pedro Alves <palves@redhat.com>
8638 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8640 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8641 * breakpoint.c (condition_completer): Likewise.
8642 * cli/cli-dump.c (scan_expression): Likewise.
8643 * common/filestuff.c (mkdir_recursive): Likewise.
8644 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8645 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8646 (gdb_abspath): Likewise.
8647 * compile/compile-cplus-types.c
8648 (compile_cplus_instance::decl_name): Likewise.
8649 * completer.c (complete_explicit_location):
8650 (signal_completer, reg_or_group_completer_1): Likewise.
8651 * cp-support.c (cp_remove_params_if_any): Likewise.
8652 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8653 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8654 * infcmd.c (strip_bg_char): Likewise.
8655 * linespec.c (copy_token_string): Likewise.
8656 * mi/mi-main.c (output_cores): Likewise.
8657 * psymtab.c (psymtab_search_name):
8658 * symfile.c (test_set_ext_lang_command): Likewise.
8659 * target.c (target_fileio_read_stralloc): Likewise.
8660 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8661 * value.c (complete_internalvar): Likewise.
8663 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8665 Add objfile property to gdb.Type.
8666 * NEWS: Mention Python API addition.
8667 * python/py-type.c (typy_get_objfile): New method.
8669 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8671 * NEWS: Mention the new set|show style [title|highlight].
8672 Mention changes to "show style", "help" and "apropos".
8674 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8676 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8677 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8678 instead of print_help_for_command.
8679 (print_doc_of_command): New function.
8680 (help_list): Add 'apropos -v word' suggestion.
8681 (print_help_for_command): Style the command name using title style.
8682 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8683 (_initialize_cli_cmds): Describe -v in apropos_command help.
8685 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8687 * cli/cli-style.h (cli_style_option): Add name in constructor,
8688 add m_name class member, add constructor with intensity,
8689 add name class function.
8690 (cli_style_option::add_setshow_commands): Remove name argument.
8691 (highlight_style, title_style): New styles.
8692 * cli/cli-style.c (do_show): New function that shows a style
8693 characteristic styling the style name with itself.
8694 (set_style_name): New function.
8695 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8696 Update all callers according to the changes in cli/cli-style.h.
8697 * utils.h (fputs_highlighted): New function.
8698 * utils.c (fputs_highlighted): Likewise.
8700 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8702 * NEWS: Mention new pipe command and new convenience variables.
8704 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8706 * cli/cli-cmds.c (pipe_command): New function.
8707 (_initialize_cli_cmds): Call add_com for pipe_command.
8708 Define | as an alias for pipe.
8709 (exit_status_set_internal_vars): New function.
8710 (shell_escape): Call exit_status_set_internal_vars.
8711 cli/cli-decode.c (find_command_name_length): Recognize | as
8712 a single character command.
8714 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8716 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8717 top.c (execute_command_to_ui_file): New function, mostly a copy
8718 of execute_command_to_string.
8719 (execute_command_to_string): Implement by calling
8720 execute_command_to_ui_file.
8722 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8724 * top.h (saved_command_line): Remove declaration.
8725 * top.c (previous_saved_command_line, previous_repeat_arguments):
8727 (saved_command_line): Make static, define together with other
8729 (dont_repeat): Clear repeat_arguments.
8730 (repeat_previous, get_saved_command_line, save_command_line):
8732 (gdb_init): Initialize saved_command_line
8733 and previous_saved_command_line.
8734 * main.c (captured_main_1): Remove saved_command_line initialization.
8735 * event-top.c (handle_line_of_input): Update to use
8736 the new 'repeat' related functions instead of direct access to
8738 * command.h (repeat_previous, get_saved_command_line,
8739 save_command_line): New declarations.
8740 (dont_repeat): Add comment.
8742 2019-05-30 Tom Tromey <tromey@adacore.com>
8744 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8746 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8748 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8751 * completer.c (complete): Initialize variable word.
8753 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8755 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8756 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8757 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8758 'body' is NULL to the outter 'if', protecting the '!is_define'
8761 2019-05-29 Tom Tromey <tromey@adacore.com>
8763 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8764 (dwarf_unknown): New function.
8765 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8766 (dwarf_type_encoding_name): Use dwarf_unknown.
8768 2019-05-29 Tom Tromey <tromey@adacore.com>
8771 * cp-valprint.c (cp_print_value_fields): Call
8772 cp_print_static_field inside "try".
8774 2019-05-29 Tom Tromey <tromey@adacore.com>
8776 * inflow.c (struct terminal_info): Add default operator=.
8777 * configure: Rebuild.
8778 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8779 -Wdeprecated-copy-dtor, -Wredundant-move.
8781 2019-05-29 Tom Tromey <tromey@adacore.com>
8784 * infcmd.c (print_return_value_1): Handle finish_print
8786 (show_print_finish): New function.
8787 (_initialize_infcmd): Add "set/show print finish" commands.
8788 * valprint.c (user_print_options): Initialize new member.
8789 * valprint.h (struct value_print_options) <finish_print>: New
8792 2019-05-28 Tom Tromey <tromey@adacore.com>
8794 * ada-lang.c (ada_remove_Xbn_suffix)
8795 (find_old_style_renaming_symbol)
8796 (parse_old_style_renaming): Remove.
8797 (ada_find_renaming_symbol): Don't call
8798 find_old_style_renaming_symbol.
8799 (ada_is_renaming_symbol): Rename from
8800 ada_find_renaming_symbol. Remove "block" parameter. Return
8802 (ada_read_var_value): Update and simplify.
8803 * ada-exp.y (write_var_or_type): Remove old code.
8805 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8808 * event-top.c: Remove include comment.
8809 * inflow.c (class scoped_ignore_sigttou): Move from here...
8810 * inflow.h (class scoped_ignore_sigttou): ...to here.
8811 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8812 * top.c: Remove include comment.
8814 2019-05-27 Tom Tromey <tom@tromey.com>
8818 2019-05-22 Tom Tromey <tromey@adacore.com>
8820 * target.c (target_follow_exec): Constify parameter.
8821 * target-delegates.c: Rebuild.
8822 * remote.c (remote_target::follow_exec): Constify parameter.
8823 * infrun.c (follow_exec): Constify parameter.
8824 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8825 (target_follow_exec): Likewise.
8827 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8829 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8830 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8832 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8834 * NEWS: Add debugredirect and testsuite sections.
8836 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8838 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8839 target descriptions using exclusively floating point register name
8842 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8845 * f-lang.c (build_fortran_types): Handle the case where
8846 gdbarch_floatformat_for_type returns a nullptr.
8848 2019-05-21 Tom de Vries <tdevries@suse.de>
8851 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8853 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8856 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8858 * i386-tdep.c (i386_floatformat_for_type): Use
8859 floatformats_ia64_quad for the 16-byte floating point component
8860 within a fortran 32-byte complex number.
8862 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8864 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8865 delete default constructor.
8866 (find_partial_die): Update to return const struct.
8867 (partial_die_parent_scope): Move variable declaration into scope
8868 of its use and change its type to auto.
8869 (guess_partial_die_structure_name): Likewise.
8870 (partial_die_info::fixup): Likewise.
8872 2019-05-17 Tom Tromey <tromey@adacore.com>
8874 * source.c (find_and_open_source): Remove cast.
8876 2019-05-17 Tom Tromey <tromey@adacore.com>
8878 * annotate.c (annotate_source): Make "filename" const.
8879 * annotate.h (annotate_source): Use const.
8881 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8883 * disasm.c (set_disassembler_options): Send errors to stderr.
8885 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8887 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8888 (cli_interp_base::set_logging): Check debug_redirect.
8889 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8890 * cli/cli-logging.c (debug_redirect): Add static variable.
8891 (pop_output_files): Add default param.
8892 (handle_redirections): Print debug setting.
8893 (show_logging_command): Likewise.
8894 (_initialize_cli_logging): Add debugredirect command.
8895 * interps.c (current_interp_set_logging): Add debug_redirect
8897 * interps.h (set_logging): Add debug_redirect parameter.
8898 (current_interp_set_logging): Likewise.
8899 * mi/mi-common.h: Likewise.
8900 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8902 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8903 Tom Tromey <tromey@adacore.com>
8905 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8907 * cli/cli-interp.h (make_logging_output): Remove declaration.
8908 * cli/cli-logging.c (make_logging_output): Remove function.
8909 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8911 * ui-file.c (tee_file::tee_file): Remove bools.
8912 (tee_file::~tee_file): Remove deletes.
8913 * ui-file.h (tee_file): Remove bools.
8915 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8917 * mi/mi-cmds.h (mi_cmd_complete): New function.
8918 * mi/mi-main.c (mi_cmd_complete): Likewise.
8919 * mi/mi-cmds.c: Define new MI command -complete.
8920 * NEWS: Mention new -complete command.
8922 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8924 * completer.h (complete): New function.
8925 * completer.c (complete): Likewise.
8926 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8927 function defined in completer.h.
8929 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8931 * MAINTAINERS (Write After Approval): Add myself.
8933 2019-05-17 Tom de Vries <tdevries@suse.de>
8936 * dwarf2read.c (struct cu_partial_die_info): New struct.
8937 (find_partial_die): Return cu_partial_die_info.
8938 (partial_die_parent_scope, guess_partial_die_structure_name)
8939 (partial_die_info::fixup): Handle new return type of find_partial_die.
8941 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8943 PR breakpoints/24541
8944 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8945 "std::string", simplifying the algorithm.
8947 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8949 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8950 (stap_static_probe_ops::get_probes): Likewise.
8952 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8954 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8955 '-')" and "else if".
8956 (stap_parse_single_operand): Join checks for
8957 "gdbarch_stap_parse_special_token_p" and
8958 "gdbarch_stap_parse_special_token" in the same "if" statement.
8959 Invert check when verifying for operation on register
8962 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8964 * stap-probe.c (stap_get_opcode): Update comment.
8965 (stap_get_expected_argument_type): Likewise.
8966 (handle_stap_probe): Likewise.
8968 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8970 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8971 return type to 'bool'. Adjust comment. Use 'bool' when
8973 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8974 * stap-probe.c (stap_parse_argument_1): Likewise.
8975 (stap_is_operator): Likewise.
8976 (stap_is_generic_prefix): Likewise.
8977 (stap_is_register_prefix): Likewise.
8978 (stap_is_register_indirection_prefix): Likewise.
8979 (stap_is_integer_prefix): Likewise.
8980 (stap_generic_check_suffix): Likewise.
8981 (stap_check_integer_suffix): Likewise.
8982 (stap_check_register_suffix): Likewise.
8983 (stap_check_register_indirection_suffix): Likewise.
8984 (stap_parse_register_operand): Likewise.
8985 (stap_parse_single_operand): Likewise.
8986 (stap_parse_argument_1): Likewise.
8987 (stap_probe::get_argument_count): Likewise.
8988 (stap_is_operator): Likewise.
8990 2019-05-16 Tom Tromey <tromey@adacore.com>
8992 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8995 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8997 * linux-thread-db.c (try_thread_db_load_1): Change return type
8999 (try_thread_db_load): Likewise.
9000 (try_thread_db_load_from_pdir_1): Likewise.
9001 (try_thread_db_load_from_pdir): Likewise.
9002 (try_thread_db_load_from_sdir): Likewise.
9003 (try_thread_db_load_from_dir): Likewise.
9004 (thread_db_load_search): Likewise.
9005 (has_libpthread): Likewise.
9006 (thread_db_load): Likewise.
9008 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9010 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9011 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9012 NULL, and complain/return if that's the case.
9014 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9016 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9017 (advance, posn, abstract_read_memory): New functions.
9018 [struct mem_read_abstraction]: New struct.
9019 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9021 2019-05-14 Tom Tromey <tromey@adacore.com>
9023 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9024 value is not lval_memory.
9026 2019-05-14 Tom Tromey <tromey@adacore.com>
9028 * solib.c (info_sharedlibrary_command): Style the file name.
9030 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9032 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9033 (aarch64_vnv_type): Likewise.
9034 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9035 * common/tdesc.c: Likewise.
9036 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9037 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9038 * features/aarch64-fpu.xml: Add ieee half view.
9039 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9040 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9041 * gdbtypes.h (struct builtin_type): Likewise.
9042 (struct objfile_type): Likewise.
9044 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9046 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9048 * location.h (string_to_event_location): Likewise.
9050 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9054 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9056 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9057 New variable declaration.
9058 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9060 (print_one_breakpoint): Use ui_out::test_flags and new global
9061 variable to compute use_fixed_output.
9062 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9064 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9065 (mi_multi_location_breakpoint_output_fixed): Remove.
9066 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9068 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9069 fix_multi_location_breakpoint_output flag if version >= 3.
9070 * ui-out.h (enum ui_out_flag)
9071 <fix_multi_location_breakpoint_output>: New enumerator.
9073 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9075 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9077 2019-05-10 Tom Tromey <tromey@adacore.com>
9079 * ada-lang.c (catch_ada_completer): New function.
9080 (_initialize_ada_language): Use it.
9082 2019-05-10 Tom Tromey <tromey@adacore.com>
9084 * thread.c (print_thread_info): Make "requested_threads" const.
9085 * gdbthread.h (print_thread_info): Make "requested_threads"
9087 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9088 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9090 2019-05-08 Tom Tromey <tom@tromey.com>
9092 * gdbtypes.c (objfile_type_data): Change type.
9093 (objfile_type, _initialize_gdbtypes): Update.
9095 2019-05-08 Tom Tromey <tom@tromey.com>
9097 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9098 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9099 (_initialize_dwarf2_frame): Update.
9101 2019-05-08 Tom Tromey <tom@tromey.com>
9103 * objc-lang.c (objc_objfile_data): Change type.
9104 (find_methods): Update.
9105 (_initialize_objc_lang): Remove.
9107 2019-05-08 Tom Tromey <tom@tromey.com>
9109 * stabsread.c (rs6000_builtin_type_data): Change type.
9110 (rs6000_builtin_type, _initialize_stabsread): Update.
9112 2019-05-08 Tom Tromey <tom@tromey.com>
9114 * mips-tdep.c (mips_pdr_data): Remove.
9115 (_initialize_mips_tdep): Update.
9117 2019-05-08 Tom Tromey <tom@tromey.com>
9119 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9120 (hppa_init_objfile_priv_data, read_unwind_info)
9121 (find_unwind_entry, _initialize_hppa_tdep): Update.
9123 2019-05-08 Tom Tromey <tom@tromey.com>
9125 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9126 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9128 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9130 2019-05-08 Tom Tromey <tom@tromey.com>
9132 * mdebugread.c (basic_type_data): Change type.
9133 (basic_type, _initialize_mdebugread): Update.
9135 2019-05-08 Tom Tromey <tom@tromey.com>
9137 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9139 2019-05-08 Tom Tromey <tom@tromey.com>
9141 * nto-tdep.c (nto_inferior_data_reg): Change type.
9142 (nto_inferior_data): Update.
9143 (nto_inferior_data_cleanup, nto_new_inferior_data)
9144 (_initialize_nto_tdep): Remove.
9145 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9147 2019-05-08 Tom Tromey <tom@tromey.com>
9149 * ada-lang.c (struct ada_inferior_data): Add initializers.
9150 (ada_inferior_data): Change type.
9151 (ada_inferior_data_cleanup): Remove.
9152 (get_ada_inferior_data, ada_inferior_exit)
9153 (struct ada_pspace_data): Add initializers, destructor.
9154 (ada_pspace_data_handle): Change type.
9155 (get_ada_pspace_data): Update.
9156 (ada_pspace_data_cleanup): Remove.
9158 2019-05-08 Tom Tromey <tom@tromey.com>
9160 * coffread.c (struct coff_symfile_info): Add initializers.
9161 (coff_objfile_data_key): Move lower. Change type.
9162 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9164 (coff_free_info): Remove.
9166 2019-05-08 Tom Tromey <tom@tromey.com>
9168 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9169 (fbsd_pspace_data_handle): Move lower. Change type.
9170 (get_fbsd_pspace_data): Update.
9171 (fbsd_pspace_data_cleanup): Remove.
9172 (_initialize_fbsd_tdep): Update.
9174 2019-05-08 Tom Tromey <tom@tromey.com>
9176 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9177 (get_ada_tasks_pspace_data): Update.
9178 (ada_tasks_pspace_data_cleanup): Remove.
9179 (_initialize_tasks): Update.
9180 (ada_tasks_inferior_data_handle): Change type.
9181 (get_ada_tasks_inferior_data): Update.
9182 (ada_tasks_inferior_data_cleanup): Remove.
9183 (struct ada_tasks_pspace_data): Add initializers.
9185 2019-05-08 Tom Tromey <tom@tromey.com>
9187 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9188 * symfile-debug.c (debug_sym_get_probes): Change type.
9189 * stap-probe.c (handle_stap_probe):
9190 (stap_static_probe_ops::get_probes): Change type.
9191 * probe.h (class static_probe_ops) <get_probes>: Change type.
9192 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9193 (parse_probes_in_pspace): Update.
9194 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9196 (any_static_probe_ops::get_probes): Change type.
9197 * elfread.c (elfread_data): New typedef.
9198 (probe_key): Change type.
9199 (elf_get_probes): Likewise. Update.
9200 (probe_key_free): Remove.
9201 (_initialize_elfread): Update.
9202 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9204 (dtrace_process_dof_probe, dtrace_process_dof)
9205 (dtrace_static_probe_ops::get_probe): Change type.
9207 2019-05-08 Tom Tromey <tom@tromey.com>
9209 * xcoffread.c (struct xcoff_symfile_info): Rename from
9210 coff_symfile_info. Add initializers.
9211 (xcoff_objfile_data_key): Move lower. Change type.
9212 (XCOFF_DATA): Rewrite.
9213 (xcoff_free_info): Remove.
9214 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9215 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9216 (xcoff_initial_scan): Update.
9218 2019-05-08 Tom Tromey <tom@tromey.com>
9220 * solib-svr4.c (struct svr4_info): Add initializers and
9222 <probes_table>: Now an htab_up.
9223 (solib_svr4_pspace_data): Change type.
9224 (free_probes_table): Simplify.
9225 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9226 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9227 (probes_table_remove_objfile_probes, register_solib_event_probe)
9228 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9229 (_initialize_svr4_solib): Update.
9231 2019-05-08 Tom Tromey <tom@tromey.com>
9233 * remote.c (remote_pspace_data): Change type.
9234 (remote_pspace_data_cleanup): Remove.
9235 (get_remote_exec_file, set_pspace_remote_exec_file)
9236 (_initialize_remote): Update.
9238 2019-05-08 Tom Tromey <tom@tromey.com>
9240 * breakpoint.c (breakpoint_objfile_key): Change type.
9241 (get_breakpoint_objfile_data): Update.
9242 (free_breakpoint_objfile_data): Remove.
9243 (_initialize_breakpoint): Update.
9245 2019-05-08 Tom Tromey <tom@tromey.com>
9247 * linux-tdep.c (struct linux_info): Add initializers.
9248 (linux_inferior_data): Move. Change type.
9249 (invalidate_linux_cache_inf): Update.
9250 (linux_inferior_data_cleanup): Remove.
9251 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9253 2019-05-08 Tom Tromey <tom@tromey.com>
9255 * auxv.c (auxv_inferior_data): Move. Change type.
9256 (auxv_inferior_data_cleanup): Remove.
9257 (invalidate_auxv_cache_inf): Rewrite.
9258 (get_auxv_inferior_data, _initialize_auxv): Update.
9260 2019-05-08 Tom Tromey <tom@tromey.com>
9262 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9263 (symfile_debug_objfile_data_key): Change type.
9264 (symfile_debug_installed, debug_qf_has_symbols)
9265 (debug_qf_find_last_source_symtab)
9266 (debug_qf_forget_cached_source_info)
9267 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9268 (debug_qf_print_stats, debug_qf_dump)
9269 (debug_qf_expand_symtabs_for_function)
9270 (debug_qf_expand_all_symtabs)
9271 (debug_qf_expand_symtabs_with_fullname)
9272 (debug_qf_map_matching_symbols)
9273 (debug_qf_expand_symtabs_matching)
9274 (debug_qf_find_pc_sect_compunit_symtab)
9275 (debug_qf_map_symbol_filenames)
9276 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9277 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9278 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9279 (debug_sym_read_linetable, debug_sym_relocate): Update.
9280 (symfile_debug_free_objfile): Remove.
9281 (install_symfile_debug_logging, _initialize_symfile_debug):
9284 2019-05-08 Tom Tromey <tom@tromey.com>
9286 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9287 allocate_on_obstack.
9288 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9289 (get_dwarf2_per_objfile): Update.
9290 (set_dwarf2_per_objfile): Remove.
9291 (dwarf2_has_info, dwarf2_get_section_info): Update.
9292 (dwarf2_free_objfile): Remove.
9293 (_initialize_dwarf2_read): Update.
9295 2019-05-08 Tom Tromey <tom@tromey.com>
9297 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9299 <unsupported_script_warning_printed,
9300 script_not_found_warning_printed>: Now bool.
9301 (auto_load_pspace_data): Change type.
9302 (~auto_load_pspace_info): Rename from
9303 auto_load_pspace_data_cleanup.
9304 (get_auto_load_pspace_data, init_loaded_scripts_info)
9305 (clear_section_scripts, maybe_print_unsupported_script_warning)
9306 (maybe_print_script_not_found_warning, _initialize_auto_load):
9309 2019-05-08 Tom Tromey <tom@tromey.com>
9311 * objfiles.c (objfile_pspace_info): Add destructor and
9313 (objfiles_pspace_data): Change type.
9314 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9315 (get_objfile_pspace_data): Update.
9316 (objfiles_bfd_data): Change type.
9317 (get_objfile_bfd_data): Update.
9318 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9320 2019-05-08 Tom Tromey <tom@tromey.com>
9322 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9324 (get_catch_syscall_inferior_data): Update.
9325 (catch_syscall_inferior_data_cleanup): Remove.
9326 (_initialize_break_catch_syscall): Update.
9328 2019-05-08 Tom Tromey <tom@tromey.com>
9330 * inflow.c (struct terminal_info): Add destructor and
9332 (inflow_inferior_data): Change type.
9333 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9334 (get_inflow_inferior_data, inflow_inferior_exit)
9335 (swap_terminal_info, _initialize_inflow): Update.
9337 2019-05-08 Tom Tromey <tom@tromey.com>
9339 * target-dcache.c (target_dcache_cleanup): Remove.
9340 (target_dcache_aspace_key): Change type.
9341 (target_dcache_init_p, target_dcache_invalidate)
9342 (target_dcache_get, target_dcache_get_or_init)
9343 (_initialize_target_dcache): Update.
9344 * dcache.h (struct dcache_deleter): New.
9346 2019-05-08 Tom Tromey <tom@tromey.com>
9348 * symtab.c (struct symbol_cache): Add destructor and
9350 (symbol_cache_key): Move. Change type.
9351 (make_symbol_cache, free_symbol_cache): Remove.
9352 (get_symbol_cache): Update.
9353 (symbol_cache_cleanup): Remove.
9354 (ALL_PSPACES, symbol_cache_flush)
9355 (maintenance_print_symbol_cache)
9356 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9359 2019-05-08 Tom Tromey <tom@tromey.com>
9361 * symtab.c (struct main_info): Add destructor and initializers.
9362 (main_progspace_key): Move. Change type.
9363 (get_main_info): Update.
9364 (main_info_cleanup): Remove.
9365 (_initialize_symtab): Update.
9367 2019-05-08 Tom Tromey <tom@tromey.com>
9369 * registry.h (DECLARE_REGISTRY): Define the _key class.
9371 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9373 * NEWS: Merge two 'New commands' sections.
9375 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9377 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9378 parameter and use Ada language definition instead.
9379 (ada_val_print_ptr): Remove unused language parameter.
9380 (ada_val_print_num): Remove language parameter and use Ada language
9382 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9384 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9385 parameter and use Ada language definition instead.
9386 (ada_val_print_1): Update all ada_val_print_xxx calls.
9387 Remove language parameter.
9388 (ada_val_print): Update ada_val_print_1 call.
9390 2019-05-08 Tom Tromey <tromey@adacore.com>
9392 * remote.c (remote_hw_watchpoint_limit)
9393 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9396 2019-05-08 Tom Tromey <tromey@adacore.com>
9398 * maint.c (_initialize_maint_cmds): Move initialization code to
9400 (watchdog, show_watchdog): Move to remote.c.
9401 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9403 (_initialize_remote): Move initialization code from maint.c.
9404 * defs.h (watchdog): Don't declare.
9406 2019-05-08 Tom Tromey <tromey@adacore.com>
9408 * tui/tui-interp.c: Include main.h.
9409 * interps.c: Include main.h.
9410 * main.h (interpreter_p): Declare.
9411 * defs.h (interpreter_p): Don't declare.
9413 2019-05-08 Tom Tromey <tromey@adacore.com>
9415 * dwarf2loc.c: Include dwarf2read.h.
9416 * defs.h (read_unsigned_leb128): Don't declare.
9417 * dwarf2read.h (read_unsigned_leb128): Declare.
9419 2019-05-08 Tom Tromey <tromey@adacore.com>
9421 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9424 2019-05-08 Tom Tromey <tromey@adacore.com>
9426 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9427 when no wrap column is set.
9429 2019-05-08 Tom Tromey <tromey@adacore.com>
9431 * c-lang.c (c_get_string): Handle non-C-style arrays.
9433 2019-05-08 Tom Tromey <tromey@adacore.com>
9435 * typeprint.c (print_offset_data::update): Print the bit offset,
9436 not the number of bits remaining.
9438 2019-05-08 Tom Tromey <tromey@adacore.com>
9440 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9441 padding at end of comment.
9443 2019-05-08 Tom Tromey <tromey@adacore.com>
9445 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9448 2019-05-06 Tom Tromey <tom@tromey.com>
9450 * common/scoped_mmap.c: Include common-defs.h.
9451 * common/scoped_mmap.h: Don't include config.h.
9453 2019-05-04 Tom Tromey <tom@tromey.com>
9455 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9456 (struct aarch64_call_info): Add initializers.
9457 <si>: Now a std::vector.
9458 (pass_on_stack, aarch64_push_dummy_call): Update.
9460 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9461 Tom Tromey <tom@tromey.com>
9463 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9464 (ppc_threads): Now a std::vector. Now static.
9465 (hwdebug_find_thread_points_by_tid)
9466 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9469 2019-05-04 Tom Tromey <tom@tromey.com>
9471 * arc-tdep.c (arc_tdesc_init): Return bool.
9473 2019-05-04 Tom Tromey <tom@tromey.com>
9475 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9476 Use gdb_assert_not_reached.
9478 2019-05-04 Tom Tromey <tom@tromey.com>
9480 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9483 2019-05-04 Tom Tromey <tom@tromey.com>
9485 * arc-tdep.c (arc_tdesc_init): Use bool.
9487 2019-05-04 Tom Tromey <tom@tromey.com>
9489 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9491 2019-05-04 Tom Tromey <tom@tromey.com>
9493 * cli/cli-cmds.c (valid_command_p): Return bool.
9495 2019-05-04 Tom Tromey <tom@tromey.com>
9497 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9498 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9500 2019-05-04 Raul Tambre <raul@tambre.ee>
9502 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9503 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9504 operator for comparison.
9506 2019-05-04 Tom Tromey <tom@tromey.com>
9508 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9509 (lookup_partial_symbol, print_partial_symbols)
9510 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9511 (psymbol_compare): Update.
9512 (add_psymbol_to_bcache): Clear the entire psymbol.
9513 (maintenance_check_psymtabs): Update.
9514 * psympriv.h (struct partial_symbol): Don't derive from
9515 general_symbol_info.
9516 <obj_section, unrelocated_address, address,
9517 set_unrelocated_address>: Update.
9518 <ginfo>: New member.
9519 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9520 (debug_names::write_psymbols): Update.
9522 2019-05-04 Tom de Vries <tdevries@suse.de>
9524 * contrib/cc-with-tweaks.sh: Support -n arg.
9526 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9528 * corelow.c (core_target::detach): Ensure frame cache and
9529 register caches are cleared.
9530 inferior.c (exit_inferior_1): Likewise.
9532 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9533 Tom Tromey <tom@tromey.com>
9535 * dictionary.c (collate_pending_symbols_by_language): Remove
9536 "struct" from foreach.
9537 * symtab.c (lookup_global_symbol_from_objfile)
9538 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9540 * ser-tcp.c (net_open): Remove "struct" from foreach.
9541 * objfiles.c (objfile_relocate, objfile_rebase)
9542 (objfile_has_symbols): Remove "struct" from foreach.
9543 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9545 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9547 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9548 "struct" from foreach.
9549 * ada-lang.c (create_excep_cond_exprs)
9550 (ada_exception_catchpoint_cond_string): Remove "struct" from
9553 2019-05-03 Tom Tromey <tromey@adacore.com>
9555 * ada-exp.y (convert_char_literal): Check suffix of each
9558 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9561 * ada-exp.y (yywrap): Don't define.
9562 * ada-lex.l (%option): Add noyywrap
9565 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9567 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9568 _WIN32_WINNT to the XP level, unless already defined to a higher
9571 * unittests/parse-connection-spec-selftests.c:
9573 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9576 * symfile.c (find_separate_debug_file): Remove colon from the
9577 drive spec of DOS/Windows file names of the target, so that the
9578 file name produced from DEBUGDIR and the target's directory will
9579 be valid on DOS/Windows systems.
9581 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9583 * rust-lang.c (val_print_struct): Handle printing structures
9586 2019-05-02 Tom Tromey <tromey@adacore.com>
9588 * valarith.c (_initialize_valarith): Remove.
9590 2019-05-01 Tom Tromey <tromey@adacore.com>
9592 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9595 2019-05-01 Tom Tromey <tromey@adacore.com>
9597 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9598 for big-endian copies.
9600 2019-04-30 Ali Tamur <tamur@google.com>
9601 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9602 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9603 (read_3_bytes): New function.
9605 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9607 * windows-nat.c (main_thread_id): Delete.
9608 (handle_output_debug_string): Replace main_thread_id by
9609 current_event.dwThreadId.
9610 (fake_create_process): Likewise.
9611 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9612 Do not set main_thread_id.
9613 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9614 current_event.dwThreadId.
9615 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9617 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9619 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9620 Use current_event.dwThreadId instead of main_thread_id.
9622 2019-04-30 Tom Tromey <tromey@adacore.com>
9624 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9625 (create_excep_cond_exprs): Iterate over program spaces.
9626 (ada_exception_catchpoint_cond_string): Examine all minimal
9627 symbols for exception types.
9629 2019-04-30 Tom Tromey <tromey@adacore.com>
9632 * dwarf2read.c (process_structure_scope): Handle case where type
9633 has template parameters but no symbol was created.
9635 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9636 Chris January <chris.january@arm.com>
9638 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9640 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9642 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9644 * f-typeprint.c (f_print_type): Update rules for printing
9646 (f_type_print_varspec_suffix): Likewise.
9648 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9649 Chris January <chris.january@arm.com>
9651 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9654 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9656 * f-lang.c (build_fortran_types): Change name of void type to
9658 * f-typeprint.c (f_type_print_base): Print the name of the void
9659 type, rather than a fixed string.
9660 * f-valprint.c (f_decorations): Use lower case void string.
9662 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9663 Chris January <chris.january@arm.com>
9665 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9668 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9669 Chris January <chris.january@arm.com>
9670 David Lecomber <david.lecomber@arm.com>
9672 * f-exp.y (BINOP_INTRINSIC): New token.
9673 (exp): New parser rule handling BINOP_INTRINSIC.
9674 (f77_keywords): Add new builtin procedures.
9675 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9676 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9677 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9678 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9679 (print_unop_subexp_f): New function.
9680 (print_binop_subexp_f): New function.
9681 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9682 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9683 (dump_subexp_body_f): Likewise.
9684 (operator_check_f): Likewise.
9685 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9686 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9688 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9690 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9692 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9693 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9694 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9695 (operator_length_f): New fuction.
9696 (print_subexp_f): New function.
9697 (op_name_f): New function.
9698 (dump_subexp_body_f): New function.
9699 (operator_check_f): New function.
9700 (exp_descriptor_f): Replace standard expression handling functions
9702 * gdb/fortran-operator.def: New file.
9703 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9704 * gdb/std-operator.def: Remove UNOP_KIND.
9706 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9708 * std-operator.def: Remove unbalanced, stray double quote
9711 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9712 Chris January <chris.january@arm.com>
9713 Daniel Everett <daniel.everett@arm.com>
9714 Nick Forrington <nick.forrington@arm.com>
9715 Richard Bunt <richard.bunt@arm.com>
9717 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9718 of depth when printing anonymous structs or unions.
9719 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9720 Don't print either the top-level value, or the children if the
9721 max-depth is exceeded.
9722 (ppscm_print_children): When printing the key of a map, allow one
9723 extra level of depth.
9724 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9725 print either the top-level value, or the children if the max-depth
9727 (print_children): When printing the key of a map, allow one extra
9729 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9730 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9731 (user_print_options): Initialise max_depth field.
9732 (val_print_scalar_or_string_type_p): New function.
9733 (val_print): Check to see if the max depth has been reached.
9734 (val_print_check_max_depth): Define new function.
9735 (show_print_max_depth): New function.
9736 (_initialize_valprint): Add 'print max-depth' option.
9737 * valprint.h (struct value_print_options) <max_depth>: New field.
9738 (val_print_check_max_depth): Declare new function.
9739 * NEWS: Document new feature.
9741 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9743 * ada-lang.c (ada_language_defn): Initialise new field.
9744 * c-lang.c (c_is_string_type_p): New function.
9745 (c_language_defn): Initialise new field.
9746 (cplus_language_defn): Initialise new field.
9747 (asm_language_defn): Initialise new field.
9748 (minimal_language_defn): Initialise new field.
9749 * c-lang.h (c_is_string_type_p): Declare new function.
9750 * d-lang.c (d_language_defn): Initialise new field.
9751 * f-lang.c (f_is_string_type_p): New function.
9752 (f_language_defn): Initialise new field.
9753 * go-lang.c (go_is_string_type_p): New function.
9754 (go_language_defn): Initialise new field.
9755 * language.c (default_is_string_type_p): New function.
9756 (unknown_language_defn): Initialise new field.
9757 (auto_language_defn): Initialise new field.
9758 * language.h (struct language_defn) <la_is_string_type_p>: New
9760 (default_is_string_type_p): Declare new function.
9761 * m2-lang.c (m2_language_defn): Initialise new field.
9762 * objc-lang.c (objc_language_defn): Initialise new field.
9763 * opencl-lang.c (opencl_language_defn): Initialise new field.
9764 * p-lang.c (pascal_is_string_type_p): New function.
9765 (pascal_language_defn): Initialise new field.
9766 * rust-lang.c (rust_is_string_type_p): New function.
9767 (rust_language_defn): Initialise new field.
9769 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9771 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9773 * ada-lang.c (ada_language_defn): Initialise new field.
9774 * c-lang.c (c_language_defn): Likewise.
9775 (cplus_language_defn): Likewise.
9776 (asm_language_defn): Likewise.
9777 (minimal_language_defn): Likewise.
9778 * d-lang.c (d_language_defn): Likewise.
9779 * f-lang.c (f_language_defn): Likewise.
9780 * go-lang.c (go_language_defn): Likewise.
9781 * language.c (unknown_language_defn): Likewise.
9782 (auto_language_defn): Likewise.
9783 * m2-lang.c (m2_language_defn): Likewise.
9784 * objc-lang.c (objc_language_defn): Likewise.
9785 * opencl-lang.c (opencl_language_defn): Likewise.
9786 * p-lang.c (pascal_language_defn): Likewise.
9787 * rust-lang.c (rust_language_defn): Likewise.
9789 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9791 * ada-lang.c (ada_is_character_type): Change return type to bool.
9792 (ada_is_string_type): Likewise.
9793 * ada-lang.h (ada_is_character_type): Update declaration
9794 (ada_is_string_type): Likewise.
9796 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9798 Support style in 'frame|thread apply'
9800 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9801 * record.c (record_start, record_stop): Update callers of
9802 execute_command_to_string with false.
9803 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9804 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9806 (class string_file): New constructor with term_out parameter.
9807 Override methods term_out and can_emit_style_escape. New member
9809 (class stdio_file): Override can_emit_style_escape.
9810 (class tee_file): Override term_out and can_emit_style_escape.
9811 * utils.h (can_emit_style_escape): Remove.
9812 * utils.c (can_emit_style_escape): Likewise.
9813 Update all callers of can_emit_style_escape (SOMESTREAM) to
9814 SOMESTREAM->can_emit_style_escape.
9815 * source-cache.c (source_cache::get_source_lines): Likewise.
9816 * stack.c (frame_apply_command_count): Call execute_command_to_string
9817 passing the term_out characteristic of the current gdb_stdout.
9818 * thread.c (thr_try_catch_cmd): Likewise.
9819 * top.c (execute_command_to_string): pass term_out parameter
9820 to construct the string_file for the command output.
9821 * ui-file.c (term_cli_styling): New function (most code moved
9822 from utils.c can_emit_style_escape).
9823 (string_file::string_file, string_file::can_emit_style_escape,
9824 stdio_file::can_emit_style_escape, tee_file::term_out,
9825 tee_file::can_emit_style_escape): New functions.
9827 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9829 * NEWS: Mention the new set|show may-call-functions.
9830 * infcall.c (may_call_functions_p): New variable.
9831 (show_may_call_functions_p): New function.
9832 (call_function_by_hand_dummy): Throws an error if not
9834 (_initialize_infcall): Call add_setshow_boolean_cmd for
9837 2019-04-25 Keith Seitz <keiths@redhat.com>
9840 * cp-support.c (inspect_type): Don't attempt substitutions
9841 of symbol with the same name.
9843 2019-04-25 Tom Tromey <tromey@adacore.com>
9846 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9849 2019-04-25 Tom Tromey <tromey@adacore.com>
9851 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9853 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9854 (gdb_xml_parser::parse): Use std::move.
9855 * python/python-internal.h (gdbpy_convert_exception): Take a const
9857 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9859 * python/py-utils.c (gdbpy_convert_exception): Take a const
9861 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9863 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9865 * mi/mi-main.c (mi_print_exception): Take a const reference.
9866 * main.c (handle_command_errors): Take a const reference.
9867 * linespec.c (parse_linespec): Use std::move.
9868 * infcall.c (run_inferior_call): Use std::move.
9869 (call_function_by_hand_dummy): Use std::move.
9870 * exec.c (try_open_exec_file): Use std::move.
9871 * exceptions.h (exception_print, exception_fprintf)
9872 (exception_print_same): Update.
9873 * exceptions.c (print_exception, exception_print)
9874 (exception_fprintf, exception_print_same): Change parameters to
9876 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9877 * common/new-op.c: Use std::move.
9878 * common/common-exceptions.h (struct gdb_exception): Add move
9880 (struct gdb_exception_error, struct gdb_exception_quit, struct
9881 gdb_quit_bad_alloc): Change constructor to move constructor.
9882 (throw_exception): Change parameter to rvalue reference.
9883 * common/common-exceptions.c (throw_exception): Take rvalue
9885 * cli/cli-interp.c (safe_execute_command): Use std::move.
9886 * breakpoint.c (insert_bp_location, location_to_sals): Use
9889 2019-04-25 Tom Tromey <tromey@adacore.com>
9891 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9892 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9893 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9894 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9895 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9896 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9897 guile/scm-value.c: Use unpack.
9898 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9899 gdbscm_gdb_exception.
9900 (gdbscm_throw_gdb_exception): Likewise.
9901 (struct gdbscm_gdb_exception): New.
9902 (unpack): New function.
9903 (gdbscm_wrap): Use unpack.
9905 2019-04-25 Tom Tromey <tromey@adacore.com>
9907 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9908 (gdb_rl_callback_handler): Use std::move.
9909 * common/common-exceptions.h (struct gdb_exception): Add move
9910 assignment operator.
9911 (throw_exception_sjlj): Change "exception" to const reference.
9912 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9913 (throw_exception_sjlj): Change "exception" to const reference.
9915 2019-04-25 Tom Tromey <tromey@adacore.com>
9917 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9918 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9919 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9921 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9923 * mi/mi-interp.c (mi_interp::exec): Update.
9924 * linespec.c (parse_linespec): Update.
9925 * infcall.c (run_inferior_call): Update.
9926 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9927 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9928 (gdbscm_lookup_global_symbol): Update.
9929 * guile/scm-param.c (gdbscm_parameter_value): Update.
9930 * guile/scm-frame.c (gdbscm_frame_read_register)
9931 (gdbscm_frame_read_var): Update.
9932 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9933 * exec.c (try_open_exec_file): Update.
9934 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9935 (gdb_rl_callback_handler): Update.
9936 * common/common-exceptions.h (exception_none): Don't declare.
9937 * common/common-exceptions.c (exception_none): Don't define.
9938 (struct catcher) <exception>: Update.
9939 * cli/cli-interp.c (safe_execute_command): Update.
9940 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9942 2019-04-25 Ali Tamur <tamur@google.com>
9944 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9945 (read_attribute_value): Likewise.
9946 (dwarf2_read_addr_index): Update comment.
9947 (read_str_index): Add DW_FORM_strx.
9948 (dwarf2_string_attr): Likewise.
9949 (dwarf2_const_value_attr): Likewise.
9950 (dump_die_shallow): Likewise.
9951 (dwarf2_fetch_constant_bytes): Likewise.
9952 (skip_form_bytes): Likewise.
9953 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9955 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9959 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9960 OFFSET. Verify if current mapping contains an ELF header.
9961 (linux_find_memory_regions_full): Adjust call to
9964 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9965 Kang Li <kanglictf@gmail.com>
9969 * dwarf2-frame.c (read_initial_length): Be consistent about using
9970 unsigned representation of length.
9971 (decode_frame_entry_1): Likewise. Check for wraparound of
9972 end pointer as well as buffer overflow.
9974 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9976 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9979 2019-04-24 Tom Tromey <tromey@adacore.com>
9981 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9983 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9985 * s12z-tdep.c (s12z_unwind_pc): Delete.
9986 (s12z_unwind_sp): Delete.
9987 (s12z_gdbarch_init): Don't register deleted functions with
9990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9992 * rl78-tdep.c (rl78_unwind_sp): Delete.
9993 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9995 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9997 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9998 (xstormy16_unwind_pc): Delete.
9999 (xstormy16_dummy_id): Delete.
10000 (xstormy16_gdbarch_init): Don't register deleted functions with
10003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10005 * vax-tdep.c (vax_unwind_pc): Delete.
10006 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10008 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10010 * v850-tdep.c (v850_unwind_sp): Delete.
10011 (v850_unwind_pc): Delete.
10012 (v850_dummy_id): Delete.
10013 (v850_gdbarch_init): Don't register deleted functions with
10016 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10018 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10019 (tilegx_unwind_pc): Delete.
10020 (tilegx_unwind_dummy_id): Delete.
10021 (tilegx_gdbarch_init): Don't register deleted functions with
10024 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10026 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10027 (tic6x_dummy_id): Delete.
10028 (tic6x_gdbarch_init): Don't register deleted functions with
10031 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10033 * sparc-tdep.c (sparc_unwind_pc): Delete.
10034 (sparc32_gdbarch_init): Don't register deleted function with
10037 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10039 * sh-tdep.c (sh_unwind_sp): Delete.
10040 (sh_unwind_pc): Delete.
10041 (sh_dummy_id): Delete.
10042 (sh_gdbarch_init): Don't register deleted functions with
10045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10047 * score-tdep.c (score_unwind_sp): Delete.
10048 (score_unwind_pc): Delete.
10049 (score_dummy_id): Delete.
10050 (score_gdbarch_init): Don't register deleted functions with
10053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10055 * rx-tdep.c (rx_unwind_pc): Delete.
10056 (rx_unwind_sp): Delete.
10057 (rx_dummy_id): Delete.
10058 (rx_gdbarch_init): Don't register deleted functions with
10059 gdbarch. Update comment.
10061 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10063 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10064 (rs6000_dummy_id): Delete.
10065 (rs6000_gdbarch_init): Don't register deleted functions with
10068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10070 * or1k-tdep.c (or1k_dummy_id): Delete.
10071 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10073 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10075 * nios2-tdep.c (nios2_dummy_id): Delete.
10076 (nios2_unwind_sp): Delete.
10077 (nios2_gdbarch_init): Don't register deleted functions with
10080 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10082 * nds32-tdep.c (nds32_dummy_id): Delete.
10083 (nds32_unwind_pc): Delete.
10084 (nds32_unwind_sp): Delete.
10085 (nds32_gdbarch_init): Don't register deleted functions with
10088 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10090 * msp430-tdep.c (msp430_unwind_pc): Delete.
10091 (msp430_unwind_sp): Delete.
10092 (msp430_dummy_id): Delete.
10093 (msp430_gdbarch_init): Don't register deleted functions with
10096 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10098 * moxie-tdep.c (moxie_unwind_sp): Delete.
10099 (moxie_unwind_pc): Delete.
10100 (moxie_dummy_id): Delete.
10101 (moxie_gdbarch_init): Don't register deleted functions with
10104 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10106 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10107 (mn10300_unwind_pc): Delete.
10108 (mn10300_unwind_sp): Delete.
10109 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10111 (mn10300_frame_unwind_init): Don't register deleted functions with
10114 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10116 * mep-tdep.c (mep_unwind_pc): Delete.
10117 (mep_unwind_sp): Delete.
10118 (mep_dummy_id): Delete.
10119 (mep_gdbarch_init): Don't register deleted functions with
10122 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10124 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10125 (m68hc11_unwind_sp): Delete.
10126 (m68hc11_gdbarch_init): Don't register deleted functions with
10129 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10131 * m32r-tdep.c (m32r_unwind_sp): Delete.
10132 (m32r_unwind_pc): Delete.
10133 (m32r_dummy_id): Delete.
10134 (m32r_gdbarch_init): Don't register deleted functions with
10137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10139 * m32c-tdep.c (m32c_unwind_pc): Delete.
10140 (m32c_unwind_sp): Delete.
10141 (m32c_dummy_id): Delete.
10142 (m32c_gdbarch_init): Don't register deleted functions with
10145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10147 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10148 (lm32_unwind_pc): Delete.
10149 (lm32_dummy_id): Delete.
10150 (lm32_gdbarch_init): Don't register deleted functions with
10153 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10155 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10156 (iq2000_unwind_pc): Delete.
10157 (iq2000_dummy_id): Delete.
10158 (iq2000_gdbarch_init): Don't register deleted functions with
10161 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10163 * nds32-tdep.c (nds32_type_align): Delete.
10164 (nds32_push_dummy_call): Use type_align instead.
10166 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10168 * arm-tdep.c (arm_type_align): Only handle vector override case.
10169 (arm_push_dummy_call): Use type_align.
10170 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10172 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10174 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10176 (pass_on_stack): Use type_align.
10177 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10180 2019-04-23 Tom Tromey <tromey@adacore.com>
10182 * dwarf2read.c (line_header::file_name_at): Remove unused
10185 2019-04-23 Tom de Vries <tdevries@suse.de>
10188 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10192 2019-03-27 Ali Tamur <tamur@google.com>
10194 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10195 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10196 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10197 (dwarf_expr_context::get_addr_index): Likewise
10198 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10199 (symbol_needs_eval_context::get_addr_index): Likewise
10200 (disassemble_dwarf_expression): Add DW_OP_addrx
10201 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10202 (read_cutu_die_from_dwo): Update comment
10203 (skip_one_die): Add DW_FORM_addrx
10204 (read_attribute_value): Likewise
10205 (var_decode_location): Add DW_OP_addrx
10206 (dwarf2_const_value_attr): Add DW_FORM_addrx
10207 (dump_die_shallow): Likewise
10208 (dwarf2_fetch_constant_bytes): Likewise
10209 (decode_locdesc): Add DW_OP_addrx
10210 (skip_form_bytes): Add DW_FORM_addrx
10212 2019-04-22 Ali Tamur <tamur@google.com>
10214 * MAINTAINERS (Write After Approval): Add self.
10216 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10218 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10219 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10220 (open_symbol_file_object): Likewise.
10221 (svr4_default_sos): Add info parameter.
10222 (svr4_read_so_list): Likewise.
10223 (svr4_current_sos_direct): Adjust functions calls to pass down
10225 (svr4_current_sos_1): Add info parameter.
10226 (svr4_current_sos): Call get_svr4_info, pass info down to
10227 svr4_current_sos_1.
10228 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10230 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10232 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10234 (probes_table_remove_objfile_probes): Likewise.
10235 (register_solib_event_probe): Add info parameter.
10236 (solist_update_incremental): Pass info parameter down to
10238 (disable_probes_interface): Add info parameter.
10239 (svr4_handle_solib_event): Pass current_program_space to
10240 get_svr4_info. Adjust disable_probes_interface cleanup.
10241 (svr4_create_probe_breakpoints): Add info parameter, pass it
10242 down to register_solib_event_probe.
10243 (svr4_create_solib_event_breakpoints): Add info parameter,
10244 pass it down to svr4_create_probe_breakpoints.
10245 (enable_break): Pass info down to
10246 svr4_create_solib_event_breakpoints.
10247 (svr4_solib_create_inferior_hook): Pass current_program_space to
10249 (svr4_clear_solib): Likewise.
10251 2019-04-22 Pedro Alves <palves@redhat.com>
10253 * solib-svr4.c (svr4_free_objfile_observer): New.
10254 (probe_and_action::objfile): New field.
10255 (probes_table_htab_remove_objfile_probes)
10256 (probes_table_remove_objfile_probes): New functions.
10257 (register_solib_event_probe): Add 'objfile' parameter. Store it
10258 in the new probe_and_action. Don't store the probe in 'lookup'.
10259 (svr4_create_probe_breakpoints): Pass objfile to
10260 register_solib_event_probe.
10261 (_initialize_svr4_solib): Register a free_objfile observer.
10263 2019-04-19 Tom Tromey <tom@tromey.com>
10265 * common/queue.h: Remove.
10267 2019-04-19 Tom Tromey <tom@tromey.com>
10269 * event-loop.c: Don't include "common/queue.h".
10271 2019-04-19 Tom Tromey <tom@tromey.com>
10273 * remote.c (remote_target): Use delete.
10274 * remote-notif.h: Include <list>, not "common/queue.h".
10275 (notif_client_p): Remove typedef.
10276 (remote_notif_state): Add constructor, destructor, initializer.
10277 <notif_queue>: Now a std::list.
10278 (remote_notif_state_xfree): Don't declare.
10279 * remote-notif.c (remote_notif_process, handle_notification)
10280 (remote_notif_state_allocate): Update.
10281 (~remote_notif_state): Rename from remote_notif_state_xfree.
10283 2019-04-19 Tom Tromey <tom@tromey.com>
10285 * symfile.c (reread_symbols): Update.
10286 * objfiles.c (objfile_register_static_link)
10287 (objfile_lookup_static_link): Update
10288 (~objfile) Don't delete static_links.
10289 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10291 2019-04-19 Tom Tromey <tom@tromey.com>
10293 * type-stack.h (struct type_stack) <insert>: Constify string.
10294 * type-stack.c (type_stack::insert): Constify string.
10295 * gdbtypes.h (lookup_template_type): Update.
10296 (address_space_name_to_int): Update.
10297 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10299 (lookup_template_type): Make name const.
10300 * c-exp.y: Update rules.
10301 (lex_one_token, classify_name, classify_inner_name)
10302 (c_print_token): Update.
10303 * p-exp.y: Update rules.
10305 * f-exp.y: Update rules.
10307 * d-exp.y: Update rules.
10308 (lex_one_token, classify_name, classify_inner_name): Update.
10309 * parse.c (write_dollar_variable, copy_name): Return std::string.
10310 * parser-defs.h (copy_name): Change return type.
10311 * m2-exp.y: Update rules.
10313 * go-exp.y (lex_one_token): Update.
10315 (classify_unsafe_function, classify_packaged_name)
10316 (classify_name, yylex): Update.
10318 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10320 * configure.ac: add --enable-source-highlight switch.
10321 * configure: Regenerate.
10322 * top.c (print_gdb_version): plumb --enable-source-highlight
10323 status to "show configuration".
10325 2019-04-19 Tom Tromey <tromey@adacore.com>
10327 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10329 (empty_record, ada_template_to_fixed_record_type_1)
10330 (template_to_static_fixed_type)
10331 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10332 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10333 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10336 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10339 * source.c (print_source_lines_base): Advance "iter" when a
10340 control character is seen.
10342 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10344 * inferior.h (struct infcall_suspend_state_deleter):
10345 Catch exception in destructor to avoid crash.
10347 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10349 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10350 close to the add_com "shell".
10352 2019-04-18 Tom Tromey <tromey@adacore.com>
10354 * process-stratum-target.h (class process_stratum_target)
10355 <stratum>: Add "final".
10357 2019-04-17 Tom Tromey <tromey@adacore.com>
10359 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10360 against nullptr before use.
10362 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10364 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10366 2019-04-17 Jim Wilson <jimw@sifive.com>
10367 Andrew Burgess <andrew.burgess@embecosm.com>
10369 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10370 code read might fail, assume 4-byte breakpoint in that case.
10372 2019-04-15 Leszek Swirski <leszeks@google.com>
10374 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10375 rather than a hand-rolled POD check when checking for forced MEMORY
10378 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10380 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10381 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10383 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10384 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10385 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10388 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10390 * aarch64-linux-nat.c
10391 (aarch64_linux_nat_target::thread_architecture): Add override.
10392 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10395 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10397 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10399 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10401 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10402 target types of size 96-bits, add some additional comments, and
10403 check that the builtin type we found was the correct size.
10405 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10407 * utils.c (prompt_for_continue): Don't restore the styling at the
10408 end, as applied_style has the wrong value. This fixes styling in
10409 long lists of file names that are interrupted by the "Continue?"
10412 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10414 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10415 * c-lang.c (c_language_defn): Likewise.
10416 (cplus_language_defn): Likewise.
10417 (asm_language_defn): Likewise.
10418 (minimal_language_defn): Likewise.
10419 * d-lang.c (d_language_defn): Likewise.
10420 * f-lang.c (f_language_defn): Likewise.
10421 * go-lang.c (go_language_defn): Likewise.
10422 * language.c (unknown_language_defn): Likewise.
10423 (auto_language_defn): Likewise.
10424 * language.h (struct language_defn): Remove la_magic field.
10425 (LANG_MAGIC): Delete.
10426 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10427 * objc-lang.c (objc_language_defn): Likewise.
10428 * opencl-lang.c (opencl_language_defn): Likewise.
10429 * p-lang.c (pascal_language_defn): Likewise.
10430 * rust-lang.c (rust_language_defn): Likewise.
10432 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10434 * riscv-tdep.c (riscv_type_align): New function.
10435 (riscv_type_alignment): Delete.
10436 (riscv_arg_location): Use 'type_align'.
10437 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10439 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10441 * gdbtypes.c (type_align): A struct with no non-static fields also
10442 has alignment of 1.
10444 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10446 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10448 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10450 (riscv_struct_info::analyse): New implementation using new
10451 analyse_inner member function.
10452 (riscv_struct_info::field_offset): New member function.
10453 (riscv_struct_info::m_offsets): New member variable.
10454 (riscv_struct_info::analyse_inner): New private member function,
10455 takes the old implementation of riscv_struct_info::analyse but
10456 extended to track field offsets.
10457 (riscv_call_arg_struct): Update the struct folding special cases
10458 to handle cases where empty C++ structs, which are non-zero
10460 (riscv_arg_location): Initialise the length of each location, a
10461 non-zero length now indicates the location is in use.
10462 (riscv_push_dummy_call): Allow for the first location having a
10463 non-zero offset when setting up arguments.
10464 (riscv_return_value): Likewise, but for return values.
10466 2019-04-11 Tom Tromey <tromey@adacore.com>
10468 * utils.c (internal_vproblem): Make "msg" const.
10470 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10472 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10473 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10474 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10475 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10477 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10479 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10481 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10482 of amd64_collect_native_gregset.
10483 (amd64_linux_nat_target::store_registers): Likewise.
10485 2019-04-10 Tom Tromey <tom@tromey.com>
10487 * symtab.c (lookup_global_symbol_from_objfile)
10488 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10489 * objfiles.h (class separate_debug_iterator): New.
10490 (class separate_debug_range): New.
10491 (struct objfile) <separate_debug_objfiles>: New method.
10492 (objfile_separate_debug_iterate): Don't declare.
10493 * objfiles.c (separate_debug_iterator::operator++): Rename from
10494 objfile_separate_debug_iterate.
10495 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10497 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10500 2019-04-10 Tom Tromey <tom@tromey.com>
10502 * symfile.c (reread_symbols): Remove old comment.
10503 * objfiles.c (free_all_objfiles): Fix a typo.
10505 2019-04-10 Tom Tromey <tom@tromey.com>
10507 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10508 * minsyms.c (lookup_minimal_symbol): Use foreach.
10509 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10510 (lookup_minimal_symbol_solib_trampoline): Likewise.
10511 * symfile.c (reread_symbols): Use foreach.
10513 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10514 Tom Tromey <tromey@adacore.com>
10517 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10518 (rust_lex_int_test): Change "value" to be LONGEST.
10519 (rust_lex_tests): Add test for long integer literal.
10521 2019-04-09 Tom Tromey <tromey@adacore.com>
10523 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10525 (extended_remote_target::attach): Update.
10526 (remote_target::remote_notice_new_inferior): Update.
10527 (remote_target::add_current_inferior_and_thread): Update.
10528 * inferior.c (exit_inferior_1): Use "false".
10529 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10531 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10533 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10534 the "start" command.
10536 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10538 * python/py-inferior.c (infpy_thread_from_thread_handle):
10539 Adjust comments to reflect renaming of thread_from_thread_handle
10540 to thread_from_handle. Adjust keywords. Fix type error message.
10541 (inferior_object_methods): Add thread_from_handle. Retain
10542 thread_from_thread_handle, but mark it as deprecated.
10544 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10546 * gdbthread.h (find_thread_by_handle): Revise declaration.
10547 * thread.c (find_thread_by_handle): Likewise. Adjust
10548 implementation too.
10549 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10550 support for buffer objects as handles.
10552 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10554 * python/py-infthread.c (thpy_thread_handle): New function.
10555 (thread_object_methods): Register thpy_thread_handle.
10557 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10559 * gdbthread.h (thread_to_thread_handle): Declare.
10560 * thread.c (gdbtypes.h): Include.
10561 (thread_to_thread_handle): New function.
10563 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10564 (target_thread_info_to_thread_handle): Declare.
10565 * target.c (target_thread_info_to_thread_handle): New function.
10566 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10567 * target-delegates.c: Regenerate.
10569 * linux-thread-db.c (class thread_db_target): Add method
10570 thread_info_to_thread_handle.
10571 (thread_db_target::thread_info_to_thread_handle): Define.
10572 * remote.c (class remote_target): Add new method
10573 thread_info_to_thread_handle.
10574 (remote_target::thread_info_to_thread_handle): Define.
10576 2019-04-08 Pedro Alves <palves@redhat.com>
10578 * common/common-exceptions.c (throw_exception): Don't create
10579 named object to throw; throw directly.
10580 (throw_it): Likewise. Don't initialize gdb_exception::message
10581 here, with new; pass FMT and AP to the ctor instead.
10582 * common/common-exceptions.h: Include <string>.
10583 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10584 const char *, va_list)): New ctor. Use std::make_shared.
10585 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10587 (gdb_exception_error::gdb_exception_error(enum errors, const char
10589 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10591 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10593 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10594 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10597 2019-04-08 Tom Tromey <tom@tromey.com>
10599 * valops.c (value_rtti_indirect_type): Replace throw_exception
10601 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10603 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10605 * target.c (target_translate_tls_address): Replace throw_exception
10607 * stack.c (frame_apply_command_count): Replace throw_exception
10609 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10611 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10613 * rs6000-tdep.c (rs6000_frame_cache)
10614 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10615 * remote.c: Replace throw_exception with throw.
10616 * record-full.c (record_full_message, record_full_wait_1)
10617 (record_full_restore): Replace throw_exception with throw.
10619 (get_thread_current_frame_id, record_btrace_start_replaying)
10620 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10621 (cmd_record_btrace_start): Replace throw_exception with throw.
10622 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10624 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10625 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10627 (find_linespec_symbols): Replace throw_exception with throw.
10628 * infrun.c (displaced_step_prepare, resume): Replace
10629 throw_exception with throw.
10630 * infcmd.c (post_create_inferior): Replace throw_exception with
10632 * inf-loop.c (inferior_event_handler): Replace throw_exception
10634 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10635 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10636 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10637 (get_prev_frame_always, get_frame_pc_if_available)
10638 (get_frame_address_in_block_if_available, get_frame_language):
10639 Replace throw_exception with throw.
10640 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10641 throw_exception with throw.
10642 * eval.c (fetch_subexp_value, evaluate_var_value)
10643 (evaluate_funcall, evaluate_subexp_standard): Replace
10644 throw_exception with throw.
10645 * dwarf2loc.c (call_site_find_chain)
10646 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10647 Replace throw_exception with throw.
10648 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10650 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10652 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10653 * completer.c (complete_line_internal): Replace throw_exception
10655 * compile/compile-object-run.c (compile_object_run): Replace
10656 throw_exception with throw.
10657 * cli/cli-script.c (process_next_line): Replace throw_exception
10659 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10660 (btrace_enable, btrace_maint_update_pt_packets): Replace
10661 throw_exception with throw.
10662 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10663 throw_exception with throw.
10664 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10665 throw_exception with throw.
10666 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10667 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10668 * aarch64-tdep.c (aarch64_make_prologue_cache)
10669 (aarch64_make_stub_cache): Replace throw_exception with throw.
10671 2019-04-08 Tom Tromey <tom@tromey.com>
10673 * common/common-exceptions.c (throw_exception): Rename from
10674 throw_exception_cxx. Remove old copy. Make argument const.
10675 (throw_it): Create and throw exception objects directly.
10676 * common/common-exceptions.h (throw_exception): Make argument
10678 (struct gdb_exception_error): Add constructor.
10679 (struct gdb_exception_quit): Add constructor.
10681 2019-04-08 Tom Tromey <tom@tromey.com>
10683 * common/common-exceptions.h (exception_rethrow): Don't declare.
10684 (TRY_SJLJ): Update comment.
10685 (TRY, CATCH, END_CATCH): Remove.
10686 * common/common-exceptions.c (exception_rethrow): Remove.
10688 2019-04-08 Tom Tromey <tom@tromey.com>
10690 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10692 (gdb_exception_error): Rename from
10693 gdb_exception_RETURN_MASK_ERROR.
10694 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10695 (gdb_quit_bad_alloc): Update.
10696 * aarch64-tdep.c: Update.
10697 * ada-lang.c: Update.
10698 * ada-typeprint.c: Update.
10699 * ada-valprint.c: Update.
10700 * amd64-tdep.c: Update.
10701 * arch-utils.c: Update.
10702 * break-catch-throw.c: Update.
10703 * breakpoint.c: Update.
10704 * btrace.c: Update.
10705 * c-varobj.c: Update.
10706 * cli/cli-cmds.c: Update.
10707 * cli/cli-interp.c: Update.
10708 * cli/cli-script.c: Update.
10709 * common/common-exceptions.c: Update.
10710 * common/new-op.c: Update.
10711 * common/selftest.c: Update.
10712 * compile/compile-c-symbols.c: Update.
10713 * compile/compile-cplus-symbols.c: Update.
10714 * compile/compile-object-load.c: Update.
10715 * compile/compile-object-run.c: Update.
10716 * completer.c: Update.
10717 * corelow.c: Update.
10718 * cp-abi.c: Update.
10719 * cp-support.c: Update.
10720 * cp-valprint.c: Update.
10721 * darwin-nat.c: Update.
10722 * disasm-selftests.c: Update.
10723 * dtrace-probe.c: Update.
10724 * dwarf-index-cache.c: Update.
10725 * dwarf-index-write.c: Update.
10726 * dwarf2-frame-tailcall.c: Update.
10727 * dwarf2-frame.c: Update.
10728 * dwarf2loc.c: Update.
10729 * dwarf2read.c: Update.
10731 * event-loop.c: Update.
10732 * event-top.c: Update.
10734 * f-valprint.c: Update.
10735 * fbsd-tdep.c: Update.
10736 * frame-unwind.c: Update.
10738 * gdbtypes.c: Update.
10739 * gnu-v3-abi.c: Update.
10740 * guile/guile-internal.h: Update.
10741 * guile/scm-block.c: Update.
10742 * guile/scm-breakpoint.c: Update.
10743 * guile/scm-cmd.c: Update.
10744 * guile/scm-disasm.c: Update.
10745 * guile/scm-frame.c: Update.
10746 * guile/scm-lazy-string.c: Update.
10747 * guile/scm-math.c: Update.
10748 * guile/scm-param.c: Update.
10749 * guile/scm-ports.c: Update.
10750 * guile/scm-pretty-print.c: Update.
10751 * guile/scm-symbol.c: Update.
10752 * guile/scm-symtab.c: Update.
10753 * guile/scm-type.c: Update.
10754 * guile/scm-value.c: Update.
10755 * i386-linux-tdep.c: Update.
10756 * i386-tdep.c: Update.
10757 * inf-loop.c: Update.
10758 * infcall.c: Update.
10759 * infcmd.c: Update.
10760 * infrun.c: Update.
10762 * language.c: Update.
10763 * linespec.c: Update.
10764 * linux-fork.c: Update.
10765 * linux-nat.c: Update.
10766 * linux-tdep.c: Update.
10767 * linux-thread-db.c: Update.
10769 * mi/mi-cmd-break.c: Update.
10770 * mi/mi-cmd-stack.c: Update.
10771 * mi/mi-interp.c: Update.
10772 * mi/mi-main.c: Update.
10773 * objc-lang.c: Update.
10774 * p-valprint.c: Update.
10776 * ppc-linux-tdep.c: Update.
10777 * printcmd.c: Update.
10778 * python/py-arch.c: Update.
10779 * python/py-breakpoint.c: Update.
10780 * python/py-cmd.c: Update.
10781 * python/py-finishbreakpoint.c: Update.
10782 * python/py-frame.c: Update.
10783 * python/py-framefilter.c: Update.
10784 * python/py-gdb-readline.c: Update.
10785 * python/py-inferior.c: Update.
10786 * python/py-infthread.c: Update.
10787 * python/py-lazy-string.c: Update.
10788 * python/py-linetable.c: Update.
10789 * python/py-objfile.c: Update.
10790 * python/py-param.c: Update.
10791 * python/py-prettyprint.c: Update.
10792 * python/py-progspace.c: Update.
10793 * python/py-record-btrace.c: Update.
10794 * python/py-record.c: Update.
10795 * python/py-symbol.c: Update.
10796 * python/py-type.c: Update.
10797 * python/py-unwind.c: Update.
10798 * python/py-utils.c: Update.
10799 * python/py-value.c: Update.
10800 * python/python.c: Update.
10801 * record-btrace.c: Update.
10802 * record-full.c: Update.
10803 * remote-fileio.c: Update.
10804 * remote.c: Update.
10805 * riscv-tdep.c: Update.
10806 * rs6000-aix-tdep.c: Update.
10807 * rs6000-tdep.c: Update.
10808 * rust-exp.y: Update.
10809 * rust-lang.c: Update.
10810 * s390-tdep.c: Update.
10811 * selftest-arch.c: Update.
10812 * solib-dsbt.c: Update.
10813 * solib-frv.c: Update.
10814 * solib-spu.c: Update.
10815 * solib-svr4.c: Update.
10817 * sparc64-linux-tdep.c: Update.
10819 * symfile-mem.c: Update.
10820 * symmisc.c: Update.
10821 * target.c: Update.
10822 * thread.c: Update.
10824 * tracefile-tfile.c: Update.
10825 * tui/tui.c: Update.
10826 * typeprint.c: Update.
10827 * unittests/cli-utils-selftests.c: Update.
10828 * unittests/parse-connection-spec-selftests.c: Update.
10829 * valops.c: Update.
10830 * valprint.c: Update.
10832 * varobj.c: Update.
10833 * windows-nat.c: Update.
10834 * x86-linux-nat.c: Update.
10835 * xml-support.c: Update.
10837 2019-04-08 Tom Tromey <tom@tromey.com>
10839 * xml-support.c: Use C++ exception handling.
10840 * x86-linux-nat.c: Use C++ exception handling.
10841 * windows-nat.c: Use C++ exception handling.
10842 * varobj.c: Use C++ exception handling.
10843 * value.c: Use C++ exception handling.
10844 * valprint.c: Use C++ exception handling.
10845 * valops.c: Use C++ exception handling.
10846 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10848 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10849 * typeprint.c: Use C++ exception handling.
10850 * tui/tui.c: Use C++ exception handling.
10851 * tracefile-tfile.c: Use C++ exception handling.
10852 * top.c: Use C++ exception handling.
10853 * thread.c: Use C++ exception handling.
10854 * target.c: Use C++ exception handling.
10855 * symmisc.c: Use C++ exception handling.
10856 * symfile-mem.c: Use C++ exception handling.
10857 * stack.c: Use C++ exception handling.
10858 * sparc64-linux-tdep.c: Use C++ exception handling.
10859 * solib.c: Use C++ exception handling.
10860 * solib-svr4.c: Use C++ exception handling.
10861 * solib-spu.c: Use C++ exception handling.
10862 * solib-frv.c: Use C++ exception handling.
10863 * solib-dsbt.c: Use C++ exception handling.
10864 * selftest-arch.c: Use C++ exception handling.
10865 * s390-tdep.c: Use C++ exception handling.
10866 * rust-lang.c: Use C++ exception handling.
10867 * rust-exp.y: Use C++ exception handling.
10868 * rs6000-tdep.c: Use C++ exception handling.
10869 * rs6000-aix-tdep.c: Use C++ exception handling.
10870 * riscv-tdep.c: Use C++ exception handling.
10871 * remote.c: Use C++ exception handling.
10872 * remote-fileio.c: Use C++ exception handling.
10873 * record-full.c: Use C++ exception handling.
10874 * record-btrace.c: Use C++ exception handling.
10875 * python/python.c: Use C++ exception handling.
10876 * python/py-value.c: Use C++ exception handling.
10877 * python/py-utils.c: Use C++ exception handling.
10878 * python/py-unwind.c: Use C++ exception handling.
10879 * python/py-type.c: Use C++ exception handling.
10880 * python/py-symbol.c: Use C++ exception handling.
10881 * python/py-record.c: Use C++ exception handling.
10882 * python/py-record-btrace.c: Use C++ exception handling.
10883 * python/py-progspace.c: Use C++ exception handling.
10884 * python/py-prettyprint.c: Use C++ exception handling.
10885 * python/py-param.c: Use C++ exception handling.
10886 * python/py-objfile.c: Use C++ exception handling.
10887 * python/py-linetable.c: Use C++ exception handling.
10888 * python/py-lazy-string.c: Use C++ exception handling.
10889 * python/py-infthread.c: Use C++ exception handling.
10890 * python/py-inferior.c: Use C++ exception handling.
10891 * python/py-gdb-readline.c: Use C++ exception handling.
10892 * python/py-framefilter.c: Use C++ exception handling.
10893 * python/py-frame.c: Use C++ exception handling.
10894 * python/py-finishbreakpoint.c: Use C++ exception handling.
10895 * python/py-cmd.c: Use C++ exception handling.
10896 * python/py-breakpoint.c: Use C++ exception handling.
10897 * python/py-arch.c: Use C++ exception handling.
10898 * printcmd.c: Use C++ exception handling.
10899 * ppc-linux-tdep.c: Use C++ exception handling.
10900 * parse.c: Use C++ exception handling.
10901 * p-valprint.c: Use C++ exception handling.
10902 * objc-lang.c: Use C++ exception handling.
10903 * mi/mi-main.c: Use C++ exception handling.
10904 * mi/mi-interp.c: Use C++ exception handling.
10905 * mi/mi-cmd-stack.c: Use C++ exception handling.
10906 * mi/mi-cmd-break.c: Use C++ exception handling.
10907 * main.c: Use C++ exception handling.
10908 * linux-thread-db.c: Use C++ exception handling.
10909 * linux-tdep.c: Use C++ exception handling.
10910 * linux-nat.c: Use C++ exception handling.
10911 * linux-fork.c: Use C++ exception handling.
10912 * linespec.c: Use C++ exception handling.
10913 * language.c: Use C++ exception handling.
10914 * jit.c: Use C++ exception handling.
10915 * infrun.c: Use C++ exception handling.
10916 * infcmd.c: Use C++ exception handling.
10917 * infcall.c: Use C++ exception handling.
10918 * inf-loop.c: Use C++ exception handling.
10919 * i386-tdep.c: Use C++ exception handling.
10920 * i386-linux-tdep.c: Use C++ exception handling.
10921 * guile/scm-value.c: Use C++ exception handling.
10922 * guile/scm-type.c: Use C++ exception handling.
10923 * guile/scm-symtab.c: Use C++ exception handling.
10924 * guile/scm-symbol.c: Use C++ exception handling.
10925 * guile/scm-pretty-print.c: Use C++ exception handling.
10926 * guile/scm-ports.c: Use C++ exception handling.
10927 * guile/scm-param.c: Use C++ exception handling.
10928 * guile/scm-math.c: Use C++ exception handling.
10929 * guile/scm-lazy-string.c: Use C++ exception handling.
10930 * guile/scm-frame.c: Use C++ exception handling.
10931 * guile/scm-disasm.c: Use C++ exception handling.
10932 * guile/scm-cmd.c: Use C++ exception handling.
10933 * guile/scm-breakpoint.c: Use C++ exception handling.
10934 * guile/scm-block.c: Use C++ exception handling.
10935 * guile/guile-internal.h: Use C++ exception handling.
10936 * gnu-v3-abi.c: Use C++ exception handling.
10937 * gdbtypes.c: Use C++ exception handling.
10938 * frame.c: Use C++ exception handling.
10939 * frame-unwind.c: Use C++ exception handling.
10940 * fbsd-tdep.c: Use C++ exception handling.
10941 * f-valprint.c: Use C++ exception handling.
10942 * exec.c: Use C++ exception handling.
10943 * event-top.c: Use C++ exception handling.
10944 * event-loop.c: Use C++ exception handling.
10945 * eval.c: Use C++ exception handling.
10946 * dwarf2read.c: Use C++ exception handling.
10947 * dwarf2loc.c: Use C++ exception handling.
10948 * dwarf2-frame.c: Use C++ exception handling.
10949 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10950 * dwarf-index-write.c: Use C++ exception handling.
10951 * dwarf-index-cache.c: Use C++ exception handling.
10952 * dtrace-probe.c: Use C++ exception handling.
10953 * disasm-selftests.c: Use C++ exception handling.
10954 * darwin-nat.c: Use C++ exception handling.
10955 * cp-valprint.c: Use C++ exception handling.
10956 * cp-support.c: Use C++ exception handling.
10957 * cp-abi.c: Use C++ exception handling.
10958 * corelow.c: Use C++ exception handling.
10959 * completer.c: Use C++ exception handling.
10960 * compile/compile-object-run.c: Use C++ exception handling.
10961 * compile/compile-object-load.c: Use C++ exception handling.
10962 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10963 * compile/compile-c-symbols.c: Use C++ exception handling.
10964 * common/selftest.c: Use C++ exception handling.
10965 * common/new-op.c: Use C++ exception handling.
10966 * cli/cli-script.c: Use C++ exception handling.
10967 * cli/cli-interp.c: Use C++ exception handling.
10968 * cli/cli-cmds.c: Use C++ exception handling.
10969 * c-varobj.c: Use C++ exception handling.
10970 * btrace.c: Use C++ exception handling.
10971 * breakpoint.c: Use C++ exception handling.
10972 * break-catch-throw.c: Use C++ exception handling.
10973 * arch-utils.c: Use C++ exception handling.
10974 * amd64-tdep.c: Use C++ exception handling.
10975 * ada-valprint.c: Use C++ exception handling.
10976 * ada-typeprint.c: Use C++ exception handling.
10977 * ada-lang.c: Use C++ exception handling.
10978 * aarch64-tdep.c: Use C++ exception handling.
10980 2019-04-08 Tom Tromey <tom@tromey.com>
10982 * xml-support.c (gdb_xml_parser::parse): Update.
10983 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10984 * value.c (show_convenience): Update.
10985 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10986 (test_parse_flags_qcs): Update.
10987 * thread.c (thr_try_catch_cmd): Update.
10988 * target.c (target_translate_tls_address): Update.
10989 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10990 (info_frame_command_core, frame_apply_command_count): Update.
10991 * rust-exp.y (rust_lex_exception_test): Update.
10992 * riscv-tdep.c (riscv_print_one_register_info): Update.
10993 * remote.c (remote_target::enable_btrace): Update.
10994 * record-btrace.c (record_btrace_enable_warn): Update.
10995 * python/py-utils.c (gdbpy_convert_exception): Update.
10996 * printcmd.c (do_one_display, print_variable_and_value): Update.
10997 * mi/mi-main.c (mi_print_exception): Update.
10998 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10999 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11000 * linux-nat.c (linux_nat_target::attach): Update.
11001 * linux-fork.c (class scoped_switch_fork_info): Update.
11002 * infrun.c (displaced_step_prepare): Update.
11003 * infcall.c (call_function_by_hand_dummy): Update.
11004 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11005 * gnu-v3-abi.c (print_one_vtable): Update.
11006 * frame.c (get_prev_frame_always): Update.
11007 * f-valprint.c (info_common_command_for_block): Update.
11008 * exec.c (try_open_exec_file): Update.
11009 * exceptions.c (print_exception, exception_print)
11010 (exception_fprintf, exception_print_same): Update.
11011 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11012 * dwarf-index-cache.c (index_cache::store)
11013 (index_cache::lookup_gdb_index): Update.
11014 * darwin-nat.c (maybe_cache_shell): Update.
11015 * cp-valprint.c (cp_print_value_fields): Update.
11016 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11017 (gcc_cplus_symbol_address): Update.
11018 * compile/compile-c-symbols.c (gcc_convert_symbol)
11019 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11020 * common/selftest.c: Update.
11021 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11023 (exception_try_scope_entry, exception_try_scope_exit): Don't
11025 (struct exception_try_scope): Remove.
11026 (TRY): Don't use exception_try_scope.
11027 (struct gdb_exception): Add constructor, operator=.
11028 <what>: New method.
11029 (struct gdb_exception_RETURN_MASK_ALL)
11030 (struct gdb_exception_RETURN_MASK_ERROR)
11031 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11032 (struct gdb_quit_bad_alloc): Update.
11033 * common/common-exceptions.c (exception_none): Change
11035 (struct catcher) <state, exception>: Initialize inline.
11036 <prev>: Remove member.
11037 (current_catcher): Remove.
11038 (catchers): New global.
11039 (exceptions_state_mc_init): Simplify.
11040 (catcher_pop): Remove.
11041 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11042 (try_scope_depth, exception_try_scope_entry)
11043 (exception_try_scope_exit): Remove.
11044 (throw_exception_sjlj): Update.
11045 (exception_messages, exception_messages_size): Remove.
11046 (throw_it): Simplify.
11047 (gdb_exception_sliced_copy): Remove.
11048 (throw_exception_cxx): Update.
11049 * cli/cli-script.c (script_from_file): Update.
11050 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11052 * ada-valprint.c (ada_val_print): Update.
11053 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11054 (create_excep_cond_exprs): Update.
11056 2019-04-08 Tom Tromey <tom@tromey.com>
11058 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11059 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11060 (TRY, CATCH, END_CATCH): Remove some definitions.
11061 * common/common-exceptions.c: Don't use GDB_XCPT.
11062 (catcher_list_size): Remove.
11063 (throw_exception, throw_it): Simplify.
11065 2019-04-05 Tom Tromey <tom@tromey.com>
11067 Revert the header-sorting patch.
11068 * ft32-tdep.c: Revert.
11069 * frv-tdep.c: Revert.
11070 * frv-linux-tdep.c: Revert.
11072 * frame-unwind.c: Revert.
11073 * frame-base.c: Revert.
11074 * fork-child.c: Revert.
11075 * findvar.c: Revert.
11076 * findcmd.c: Revert.
11077 * filesystem.c: Revert.
11078 * filename-seen-cache.h: Revert.
11079 * filename-seen-cache.c: Revert.
11080 * fbsd-tdep.c: Revert.
11081 * fbsd-nat.h: Revert.
11082 * fbsd-nat.c: Revert.
11083 * f-valprint.c: Revert.
11084 * f-typeprint.c: Revert.
11085 * f-lang.c: Revert.
11086 * extension.h: Revert.
11087 * extension.c: Revert.
11088 * extension-priv.h: Revert.
11089 * expprint.c: Revert.
11092 * exceptions.c: Revert.
11093 * event-top.c: Revert.
11094 * event-loop.c: Revert.
11096 * elfread.c: Revert.
11097 * dwarf2read.h: Revert.
11098 * dwarf2read.c: Revert.
11099 * dwarf2loc.c: Revert.
11100 * dwarf2expr.h: Revert.
11101 * dwarf2expr.c: Revert.
11102 * dwarf2-frame.c: Revert.
11103 * dwarf2-frame-tailcall.c: Revert.
11104 * dwarf-index-write.h: Revert.
11105 * dwarf-index-write.c: Revert.
11106 * dwarf-index-common.c: Revert.
11107 * dwarf-index-cache.h: Revert.
11108 * dwarf-index-cache.c: Revert.
11109 * dummy-frame.c: Revert.
11110 * dtrace-probe.c: Revert.
11111 * disasm.h: Revert.
11112 * disasm.c: Revert.
11113 * disasm-selftests.c: Revert.
11114 * dictionary.c: Revert.
11115 * dicos-tdep.c: Revert.
11116 * demangle.c: Revert.
11117 * dcache.h: Revert.
11118 * dcache.c: Revert.
11119 * darwin-nat.h: Revert.
11120 * darwin-nat.c: Revert.
11121 * darwin-nat-info.c: Revert.
11122 * d-valprint.c: Revert.
11123 * d-namespace.c: Revert.
11124 * d-lang.c: Revert.
11126 * csky-tdep.c: Revert.
11127 * csky-linux-tdep.c: Revert.
11128 * cris-tdep.c: Revert.
11129 * cris-linux-tdep.c: Revert.
11130 * cp-valprint.c: Revert.
11131 * cp-support.c: Revert.
11132 * cp-namespace.c: Revert.
11133 * cp-abi.c: Revert.
11134 * corelow.c: Revert.
11135 * corefile.c: Revert.
11136 * continuations.c: Revert.
11137 * completer.h: Revert.
11138 * completer.c: Revert.
11139 * complaints.c: Revert.
11140 * coffread.c: Revert.
11141 * coff-pe-read.c: Revert.
11142 * cli-out.h: Revert.
11143 * cli-out.c: Revert.
11144 * charset.c: Revert.
11145 * c-varobj.c: Revert.
11146 * c-valprint.c: Revert.
11147 * c-typeprint.c: Revert.
11148 * c-lang.c: Revert.
11149 * buildsym.c: Revert.
11150 * buildsym-legacy.c: Revert.
11151 * build-id.h: Revert.
11152 * build-id.c: Revert.
11153 * btrace.c: Revert.
11154 * bsd-uthread.c: Revert.
11155 * breakpoint.h: Revert.
11156 * breakpoint.c: Revert.
11157 * break-catch-throw.c: Revert.
11158 * break-catch-syscall.c: Revert.
11159 * break-catch-sig.c: Revert.
11160 * blockframe.c: Revert.
11162 * bfin-tdep.c: Revert.
11163 * bfin-linux-tdep.c: Revert.
11164 * bfd-target.c: Revert.
11165 * bcache.c: Revert.
11166 * ax-general.c: Revert.
11167 * ax-gdb.h: Revert.
11168 * ax-gdb.c: Revert.
11169 * avr-tdep.c: Revert.
11171 * auto-load.c: Revert.
11172 * arm-wince-tdep.c: Revert.
11173 * arm-tdep.c: Revert.
11174 * arm-symbian-tdep.c: Revert.
11175 * arm-pikeos-tdep.c: Revert.
11176 * arm-obsd-tdep.c: Revert.
11177 * arm-nbsd-tdep.c: Revert.
11178 * arm-nbsd-nat.c: Revert.
11179 * arm-linux-tdep.c: Revert.
11180 * arm-linux-nat.c: Revert.
11181 * arm-fbsd-tdep.c: Revert.
11182 * arm-fbsd-nat.c: Revert.
11183 * arm-bsd-tdep.c: Revert.
11184 * arch-utils.c: Revert.
11185 * arc-tdep.c: Revert.
11186 * arc-newlib-tdep.c: Revert.
11187 * annotate.h: Revert.
11188 * annotate.c: Revert.
11189 * amd64-windows-tdep.c: Revert.
11190 * amd64-windows-nat.c: Revert.
11191 * amd64-tdep.c: Revert.
11192 * amd64-sol2-tdep.c: Revert.
11193 * amd64-obsd-tdep.c: Revert.
11194 * amd64-obsd-nat.c: Revert.
11195 * amd64-nbsd-tdep.c: Revert.
11196 * amd64-nbsd-nat.c: Revert.
11197 * amd64-nat.c: Revert.
11198 * amd64-linux-tdep.c: Revert.
11199 * amd64-linux-nat.c: Revert.
11200 * amd64-fbsd-tdep.c: Revert.
11201 * amd64-fbsd-nat.c: Revert.
11202 * amd64-dicos-tdep.c: Revert.
11203 * amd64-darwin-tdep.c: Revert.
11204 * amd64-bsd-nat.c: Revert.
11205 * alpha-tdep.c: Revert.
11206 * alpha-obsd-tdep.c: Revert.
11207 * alpha-nbsd-tdep.c: Revert.
11208 * alpha-mdebug-tdep.c: Revert.
11209 * alpha-linux-tdep.c: Revert.
11210 * alpha-linux-nat.c: Revert.
11211 * alpha-bsd-tdep.c: Revert.
11212 * alpha-bsd-nat.c: Revert.
11213 * aix-thread.c: Revert.
11215 * addrmap.c: Revert.
11216 * ada-varobj.c: Revert.
11217 * ada-valprint.c: Revert.
11218 * ada-typeprint.c: Revert.
11219 * ada-tasks.c: Revert.
11220 * ada-lang.c: Revert.
11221 * aarch64-tdep.c: Revert.
11222 * aarch64-ravenscar-thread.c: Revert.
11223 * aarch64-newlib-tdep.c: Revert.
11224 * aarch64-linux-tdep.c: Revert.
11225 * aarch64-linux-nat.c: Revert.
11226 * aarch64-fbsd-tdep.c: Revert.
11227 * aarch64-fbsd-nat.c: Revert.
11228 * aarch32-linux-nat.c: Revert.
11230 2019-04-05 Tom Tromey <tom@tromey.com>
11232 * ft32-tdep.c: Sort headers.
11233 * frv-tdep.c: Sort headers.
11234 * frv-linux-tdep.c: Sort headers.
11235 * frame.c: Sort headers.
11236 * frame-unwind.c: Sort headers.
11237 * frame-base.c: Sort headers.
11238 * fork-child.c: Sort headers.
11239 * findvar.c: Sort headers.
11240 * findcmd.c: Sort headers.
11241 * filesystem.c: Sort headers.
11242 * filename-seen-cache.h: Sort headers.
11243 * filename-seen-cache.c: Sort headers.
11244 * fbsd-tdep.c: Sort headers.
11245 * fbsd-nat.h: Sort headers.
11246 * fbsd-nat.c: Sort headers.
11247 * f-valprint.c: Sort headers.
11248 * f-typeprint.c: Sort headers.
11249 * f-lang.c: Sort headers.
11250 * extension.h: Sort headers.
11251 * extension.c: Sort headers.
11252 * extension-priv.h: Sort headers.
11253 * expprint.c: Sort headers.
11254 * exec.h: Sort headers.
11255 * exec.c: Sort headers.
11256 * exceptions.c: Sort headers.
11257 * event-top.c: Sort headers.
11258 * event-loop.c: Sort headers.
11259 * eval.c: Sort headers.
11260 * elfread.c: Sort headers.
11261 * dwarf2read.h: Sort headers.
11262 * dwarf2read.c: Sort headers.
11263 * dwarf2loc.c: Sort headers.
11264 * dwarf2expr.h: Sort headers.
11265 * dwarf2expr.c: Sort headers.
11266 * dwarf2-frame.c: Sort headers.
11267 * dwarf2-frame-tailcall.c: Sort headers.
11268 * dwarf-index-write.h: Sort headers.
11269 * dwarf-index-write.c: Sort headers.
11270 * dwarf-index-common.c: Sort headers.
11271 * dwarf-index-cache.h: Sort headers.
11272 * dwarf-index-cache.c: Sort headers.
11273 * dummy-frame.c: Sort headers.
11274 * dtrace-probe.c: Sort headers.
11275 * disasm.h: Sort headers.
11276 * disasm.c: Sort headers.
11277 * disasm-selftests.c: Sort headers.
11278 * dictionary.c: Sort headers.
11279 * dicos-tdep.c: Sort headers.
11280 * demangle.c: Sort headers.
11281 * dcache.h: Sort headers.
11282 * dcache.c: Sort headers.
11283 * darwin-nat.h: Sort headers.
11284 * darwin-nat.c: Sort headers.
11285 * darwin-nat-info.c: Sort headers.
11286 * d-valprint.c: Sort headers.
11287 * d-namespace.c: Sort headers.
11288 * d-lang.c: Sort headers.
11289 * ctf.c: Sort headers.
11290 * csky-tdep.c: Sort headers.
11291 * csky-linux-tdep.c: Sort headers.
11292 * cris-tdep.c: Sort headers.
11293 * cris-linux-tdep.c: Sort headers.
11294 * cp-valprint.c: Sort headers.
11295 * cp-support.c: Sort headers.
11296 * cp-namespace.c: Sort headers.
11297 * cp-abi.c: Sort headers.
11298 * corelow.c: Sort headers.
11299 * corefile.c: Sort headers.
11300 * continuations.c: Sort headers.
11301 * completer.h: Sort headers.
11302 * completer.c: Sort headers.
11303 * complaints.c: Sort headers.
11304 * coffread.c: Sort headers.
11305 * coff-pe-read.c: Sort headers.
11306 * cli-out.h: Sort headers.
11307 * cli-out.c: Sort headers.
11308 * charset.c: Sort headers.
11309 * c-varobj.c: Sort headers.
11310 * c-valprint.c: Sort headers.
11311 * c-typeprint.c: Sort headers.
11312 * c-lang.c: Sort headers.
11313 * buildsym.c: Sort headers.
11314 * buildsym-legacy.c: Sort headers.
11315 * build-id.h: Sort headers.
11316 * build-id.c: Sort headers.
11317 * btrace.c: Sort headers.
11318 * bsd-uthread.c: Sort headers.
11319 * breakpoint.h: Sort headers.
11320 * breakpoint.c: Sort headers.
11321 * break-catch-throw.c: Sort headers.
11322 * break-catch-syscall.c: Sort headers.
11323 * break-catch-sig.c: Sort headers.
11324 * blockframe.c: Sort headers.
11325 * block.c: Sort headers.
11326 * bfin-tdep.c: Sort headers.
11327 * bfin-linux-tdep.c: Sort headers.
11328 * bfd-target.c: Sort headers.
11329 * bcache.c: Sort headers.
11330 * ax-general.c: Sort headers.
11331 * ax-gdb.h: Sort headers.
11332 * ax-gdb.c: Sort headers.
11333 * avr-tdep.c: Sort headers.
11334 * auxv.c: Sort headers.
11335 * auto-load.c: Sort headers.
11336 * arm-wince-tdep.c: Sort headers.
11337 * arm-tdep.c: Sort headers.
11338 * arm-symbian-tdep.c: Sort headers.
11339 * arm-pikeos-tdep.c: Sort headers.
11340 * arm-obsd-tdep.c: Sort headers.
11341 * arm-nbsd-tdep.c: Sort headers.
11342 * arm-nbsd-nat.c: Sort headers.
11343 * arm-linux-tdep.c: Sort headers.
11344 * arm-linux-nat.c: Sort headers.
11345 * arm-fbsd-tdep.c: Sort headers.
11346 * arm-fbsd-nat.c: Sort headers.
11347 * arm-bsd-tdep.c: Sort headers.
11348 * arch-utils.c: Sort headers.
11349 * arc-tdep.c: Sort headers.
11350 * arc-newlib-tdep.c: Sort headers.
11351 * annotate.h: Sort headers.
11352 * annotate.c: Sort headers.
11353 * amd64-windows-tdep.c: Sort headers.
11354 * amd64-windows-nat.c: Sort headers.
11355 * amd64-tdep.c: Sort headers.
11356 * amd64-sol2-tdep.c: Sort headers.
11357 * amd64-obsd-tdep.c: Sort headers.
11358 * amd64-obsd-nat.c: Sort headers.
11359 * amd64-nbsd-tdep.c: Sort headers.
11360 * amd64-nbsd-nat.c: Sort headers.
11361 * amd64-nat.c: Sort headers.
11362 * amd64-linux-tdep.c: Sort headers.
11363 * amd64-linux-nat.c: Sort headers.
11364 * amd64-fbsd-tdep.c: Sort headers.
11365 * amd64-fbsd-nat.c: Sort headers.
11366 * amd64-dicos-tdep.c: Sort headers.
11367 * amd64-darwin-tdep.c: Sort headers.
11368 * amd64-bsd-nat.c: Sort headers.
11369 * alpha-tdep.c: Sort headers.
11370 * alpha-obsd-tdep.c: Sort headers.
11371 * alpha-nbsd-tdep.c: Sort headers.
11372 * alpha-mdebug-tdep.c: Sort headers.
11373 * alpha-linux-tdep.c: Sort headers.
11374 * alpha-linux-nat.c: Sort headers.
11375 * alpha-bsd-tdep.c: Sort headers.
11376 * alpha-bsd-nat.c: Sort headers.
11377 * aix-thread.c: Sort headers.
11378 * agent.c: Sort headers.
11379 * addrmap.c: Sort headers.
11380 * ada-varobj.c: Sort headers.
11381 * ada-valprint.c: Sort headers.
11382 * ada-typeprint.c: Sort headers.
11383 * ada-tasks.c: Sort headers.
11384 * ada-lang.c: Sort headers.
11385 * aarch64-tdep.c: Sort headers.
11386 * aarch64-ravenscar-thread.c: Sort headers.
11387 * aarch64-newlib-tdep.c: Sort headers.
11388 * aarch64-linux-tdep.c: Sort headers.
11389 * aarch64-linux-nat.c: Sort headers.
11390 * aarch64-fbsd-tdep.c: Sort headers.
11391 * aarch64-fbsd-nat.c: Sort headers.
11392 * aarch32-linux-nat.c: Sort headers.
11394 2019-04-04 Tom Tromey <tom@tromey.com>
11396 * varobj.c (varobj_create): Update.
11397 * rust-exp.y (struct rust_parser) <update_innermost_block,
11398 lookup_symbol>: New methods.
11399 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11401 (rust_parser::rust_lookup_type)
11402 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11403 * printcmd.c (display_command, do_one_display): Update.
11404 * parser-defs.h (struct parser_state) <parser_state>: Add
11405 "tracker" parameter.
11406 (block_tracker): New member.
11407 (class innermost_block_tracker) <innermost_block_tracker>: Add
11409 <reset>: Remove method.
11410 (innermost_block): Don't declare.
11411 (null_post_parser): Update.
11412 * parse.c (innermost_block): Remove global.
11413 (write_dollar_variable): Update.
11414 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11415 Remove "tracker_types" parameter.
11416 (parse_expression): Add "tracker" parameter.
11417 (parse_expression_for_completion): Update.
11418 (null_post_parser): Add "tracker" parameter.
11419 * p-exp.y: Update rules.
11420 * m2-exp.y: Update rules.
11421 * language.h (struct language_defn) <la_post_parser>: Add
11422 "tracker" parameter.
11423 * go-exp.y: Update rules.
11424 * f-exp.y: Update rules.
11425 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11427 * d-exp.y: Update rules.
11428 * c-exp.y: Update rules.
11429 * breakpoint.c (set_breakpoint_condition): Create an
11430 innermost_block_tracker.
11431 (watch_command_1): Likewise.
11432 * ada-lang.c (resolve): Add "tracker" parameter.
11433 (resolve_subexp): Likewise.
11434 * ada-exp.y (write_var_from_sym): Update.
11436 2019-04-04 Tom Tromey <tom@tromey.com>
11438 * type-stack.h: New file.
11439 * type-stack.c: New file.
11440 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11442 (insert_into_type_stack, insert_type, push_type, push_type_int)
11443 (insert_type_address_space, pop_type, pop_type_int)
11444 (pop_typelist, pop_type_stack, append_type_stack)
11445 (push_type_stack, get_type_stack, push_typelist)
11446 (follow_type_instance_flags, follow_types): Don't declare.
11447 * parse.c (type_stack): Remove global.
11448 (parse_exp_in_context): Update.
11449 (insert_into_type_stack, insert_type, push_type, push_type_int)
11450 (insert_type_address_space, pop_type, pop_type_int)
11451 (pop_typelist, pop_type_stack, append_type_stack)
11452 (push_type_stack, get_type_stack, push_typelist)
11453 (follow_type_instance_flags, follow_types): Remove (moved to
11455 * f-exp.y (type_stack): New global.
11457 (push_kind_type, f_parse): Update.
11458 * d-exp.y (type_stack): New global.
11461 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11463 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11464 (HFILES_NO_SRCDIR): Add type-stack.h.
11466 2019-04-04 Tom Tromey <tom@tromey.com>
11468 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11469 (rust_parser::convert_ast_to_expression, rust_parse)
11470 (rust_lex_test_completion, rust_lex_tests): Update.
11471 * parser-defs.h (struct expr_completion_state): New.
11472 (struct parser_state) <parser_state>: Add completion parameter.
11473 <mark_struct_expression, mark_completion_tag>: New methods.
11474 <parse_completion, m_completion_state>: New members.
11475 (prefixify_expression, null_post_parser): Update.
11476 (mark_struct_expression, mark_completion_tag): Don't declare.
11477 * parse.c (parse_completion, expout_last_struct)
11478 (expout_tag_completion_type, expout_completion_name): Remove
11480 (parser_state::mark_struct_expression)
11481 (parser_state::mark_completion_tag): Now methods.
11482 (prefixify_expression): Add last_struct parameter.
11483 (prefixify_subexp): Likewise.
11484 (parse_exp_1): Update.
11485 (parse_exp_in_context): Add cstate parameter. Update.
11486 (parse_expression_for_completion): Create an
11487 expr_completion_state.
11488 (null_post_parser): Add "completion" parameter.
11489 * p-exp.y: Update rules.
11491 * language.h (struct language_defn) <la_post_parser>: Add
11492 "completing" parameter.
11493 * go-exp.y: Update rules.
11494 (lex_one_token): Update.
11495 * expression.h (parse_completion): Don't declare.
11496 * d-exp.y: Update rules.
11497 (lex_one_token): Update rules.
11498 * c-exp.y: Update rules.
11499 (lex_one_token): Update.
11500 * ada-lang.c (resolve): Add "parse_completion" parameter.
11501 (resolve_subexp): Likewise.
11502 (ada_resolve_function): Likewise.
11504 2019-04-04 Tom Tromey <tom@tromey.com>
11506 * parser-defs.h (struct parser_state) <start_arglist,
11507 end_arglist>: New methods.
11508 <arglist_len, m_funcall_chain>: New members.
11509 (arglist_len, start_arglist, end_arglist): Don't declare.
11510 * parse.c (arglist_len, funcall_chain): Remove global.
11511 (start_arglist, end_arglist): Remove functions.
11512 (parse_exp_in_context): Update.
11513 * p-exp.y: Update rules.
11514 * m2-exp.y: Update rules.
11515 * go-exp.y: Update rules.
11516 * f-exp.y: Update rules.
11517 * d-exp.y: Update rules.
11518 * c-exp.y: Update rules.
11520 2019-04-04 Tom Tromey <tom@tromey.com>
11522 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11523 lex_operator, push_back>: New methods.
11525 (rust_parser::lex_hex, lex_escape): Rename and update.
11526 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11527 (rust_parser::lex_operator): Rename and update.
11528 (rust_parser::lex_number, rustyylex, rustyyerror)
11529 (rust_lex_test_init, rust_lex_test_sequence)
11530 (rust_lex_test_push_back, rust_lex_tests): Update.
11531 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11533 <lexptr, prev_lexptr>: New members.
11534 (lexptr, prev_lexptr): Don't declare.
11535 * parse.c (lexptr, prev_lexptr): Remove globals.
11536 (parse_exp_in_context): Update.
11537 * p-exp.y (yylex, yyerror): Update.
11538 * m2-exp.y (parse_number, yylex, yyerror): Update.
11539 * go-exp.y (lex_one_token, yyerror): Update.
11540 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11541 * d-exp.y (lex_one_token, yyerror): Update.
11542 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11543 (lex_one_token, yyerror): Update.
11544 * ada-lex.l (YY_INPUT): Update.
11545 (rewind_to_char): Update.
11546 * ada-exp.y (yyerror): Update.
11548 2019-04-04 Tom Tromey <tom@tromey.com>
11550 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11551 * parser-defs.h (struct parser_state) <parser_state>: Add new
11553 <comma_terminates>: New member.
11554 (comma_terminates): Don't declare global.
11555 * parse.c (comma_terminates): Remove global.
11556 (parse_exp_in_context): Update.
11557 * p-exp.y (yylex): Update.
11558 * m2-exp.y (yylex): Update.
11559 * go-exp.y (lex_one_token): Update.
11560 * f-exp.y (yylex): Update.
11561 * d-exp.y (lex_one_token): Update.
11562 * c-exp.y (lex_one_token): Update.
11563 * ada-lex.l: Update.
11565 2019-04-04 Tom Tromey <tom@tromey.com>
11567 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11568 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11569 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11570 * parser-defs.h (paren_depth): Don't declare.
11571 * parse.c (paren_depth): Remove global.
11572 (parse_exp_in_context): Update.
11573 * p-exp.y (paren_depth): New global.
11574 (pascal_parse): Initialize it.
11575 * m2-exp.y (paren_depth): New global.
11576 (m2_parse): Initialize it.
11577 * go-exp.y (paren_depth): New global.
11578 (go_parse): Initialize it.
11579 * f-exp.y (paren_depth): New global.
11580 (f_parse): Initialize it.
11581 * d-exp.y (paren_depth): New global.
11582 (d_parse): Initialize it.
11583 * c-exp.y (paren_depth): New global.
11584 (c_parse): Initialize it.
11585 * ada-lex.l (paren_depth): New global.
11586 (lexer_init): Initialize it.
11588 2019-04-04 Tom Tromey <tom@tromey.com>
11590 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11591 (rust_parser::convert_ast_to_type)
11592 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11593 * parser-defs.h (struct parser_state) <parser_state>: Add
11594 parameters. Initialize new members.
11595 <expression_context_block, expression_context_pc>: New members.
11596 * parse.c (expression_context_block, expression_context_pc):
11598 (parse_exp_in_context): Update.
11599 * p-exp.y: Update all rules.
11601 * m2-exp.y: Update all rules.
11603 * go-exp.y (yylex): Update.
11604 * f-exp.y (yylex): Update.
11605 * d-exp.y: Update all rules.
11607 * c-exp.y: Update all rules.
11608 (lex_one_token, classify_name, yylex, c_parse): Update.
11609 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11611 2019-04-04 Tom Tromey <tom@tromey.com>
11613 * gdbarch.h, gdbarch.c: Rebuild.
11614 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11616 (struct stap_parse_info): Replace "parser_state" with
11618 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11619 (parser_state): New class.
11620 * parse.c (expr_builder): Rename.
11621 (expr_builder::release): Rename.
11622 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11623 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11624 (write_exp_elt_longcst, write_exp_elt_floatcst)
11625 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11626 (write_exp_string_vector, write_exp_bitstring)
11627 (write_exp_msymbol, mark_struct_expression)
11628 (write_dollar_variable)
11629 (insert_type_address_space, increase_expout_size): Replace
11630 "parser_state" with "expr_builder".
11631 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11632 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11633 "parser_state" with "expr_builder".
11635 2019-04-04 Tom Tromey <tom@tromey.com>
11637 * rust-exp.y: Replace "parse_language" with method call.
11639 (yylex): Replace "parse_language" with method call.
11641 (yylex): Replace "parse_language" with method call.
11642 * go-exp.y (classify_name): Replace "parse_language" with method
11644 * f-exp.y (yylex): Replace "parse_language" with method call.
11645 * d-exp.y (lex_one_token): Replace "parse_language" with method
11648 (lex_one_token, classify_name, yylex): Replace "parse_language"
11650 * ada-exp.y (find_primitive_type, type_char)
11651 (type_system_address): Replace "parse_language" with method call.
11653 2019-04-04 Tom Tromey <tom@tromey.com>
11655 * rust-exp.y: Replace "parse_gdbarch" with method call.
11656 * parse.c (write_dollar_variable, insert_type_address_space):
11657 Replace "parse_gdbarch" with method call.
11658 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11660 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11662 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11663 "parse_gdbarch" with method call.
11664 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11666 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11667 "parse_gdbarch" with method call.
11668 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11669 "parse_gdbarch" with method call.
11670 * c-exp.y (parse_type, parse_number, classify_name): Replace
11671 "parse_gdbarch" with method call.
11672 * ada-lex.l: Replace "parse_gdbarch" with method call.
11673 * ada-exp.y (parse_type, find_primitive_type, type_char)
11674 (type_system_address): Replace "parse_gdbarch" with method call.
11676 2019-04-04 Tom Tromey <tom@tromey.com>
11678 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11679 * stap-probe.c (stap_parse_argument): Update.
11680 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11681 initial_size parameter.
11682 * rust-exp.y (rust_lex_tests): Update.
11683 * parse.c (parser_state): Update.
11684 (parse_exp_in_context): Update.
11685 * parser-defs.h (struct parser_state) <parser_state>: Remove
11686 "initial_size" parameter.
11688 2019-04-04 Tom Tromey <tom@tromey.com>
11690 * parser-defs.h (increase_expout_size): Don't declare.
11691 * parse.c (increase_expout_size): Now static.
11693 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11695 * gnu-nat.c (gnu_nat_target::wait): Fix
11696 target_waitstatus_to_string call.
11698 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11700 * eval.c (evaluate_subexp_standard): Handle internal functions
11701 during Fortran function call handling.
11703 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11705 * NEWS: Mention new internal functions.
11706 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11707 (read_base_type): Use dwarf2_init_complex_target_type.
11708 * value.c (creal_internal_fn): New function.
11709 (cimag_internal_fn): New function.
11710 (_initialize_values): Register new internal functions.
11712 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11714 * infrun.c (stop_all_threads): If debug_infrun, always
11715 trace the wait status after wait_one, using
11716 target_waitstatus_to_string and target_pid_to_str.
11717 (handle_inferior_event): Replace various trace of
11718 wait status kind by a single trace.
11719 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11720 wait status kind image by target_waitstatus_to_string.
11721 * target/waitstatus.c (target_waitstatus_to_string): Fix
11724 2019-04-01 Tom Tromey <tromey@adacore.com>
11727 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11729 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11730 Pedro Alves <palves@redhat.com>
11732 * top.c (quit_force): Call 'finalize_values'.
11733 * value.c (finalize_values): New function.
11734 * value.h (finalize_values): Declare.
11736 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11738 * NEWS: Announce $_gdb_major and $_gdb_minor.
11740 * top.c (init_gdb_version_vars): New function.
11741 (gdb_init): Call init_gdb_version_vars.
11743 2019-03-29 Tom Tromey <tromey@adacore.com>
11745 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11746 help text. Remove dead code.
11748 2019-03-29 Keith Seitz <keiths@redhat.com>
11750 From Siddhesh Poyarekar:
11751 * f-lang.h (f77_get_upperbound): Return LONGEST.
11752 (f77_get_lowerbound): Likewise.
11753 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11754 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11756 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11757 plongest to format print it.
11758 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11759 (f77_get_upperbound): Likewise.
11760 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11761 LOWER_BOUND to LONGEST.
11762 (f77_create_arrayprint_offset_tbl): Likewise.
11764 2019-03-29 Keith Seitz <keiths@redhat.com>
11766 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11767 %s/pulongest for TYPE_LENGTH instead of %d in format
11769 * ada-typerint.c (ada_print_type): Likewise.
11770 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11771 * compile/compile-c-support.c (generate_register_struct): Likewise.
11772 * gdbtypes.c (recursive_dump_type): Likewise.
11773 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11774 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11775 instead of %d in format strings.
11776 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11777 to std::min to ULONGEST.
11778 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11779 instead of %d in format strings.
11780 * tracepoint.c (info_scope_command): Likewise.
11781 * typeprint.c (print_offset_data::update)
11782 (print_offset_data::finish): Likewise.
11783 * xtensa-tdep.c (xtensa_store_return_value)
11784 (xtensa_push_dummy_call): Likewise.
11786 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11788 * windows-nat.c (display_selector): Fixed format specifications
11791 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11793 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11795 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11797 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11798 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11799 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11800 (nios2_linux_init_abi): Install it.
11802 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11804 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11806 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11808 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11810 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11811 Tom Tromey <tromey@adacore.com>
11813 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11815 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11817 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11818 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11819 method to compute the bounds of range types. Also print "[evaluated]"
11820 if the bounds' values come from a dynamic evaluation.
11822 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11824 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11825 whitespace when pretty printing is on.
11827 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11829 * ppc-linux-nat.c: Add include.
11831 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11833 * NEWS: Mention AArch64 Pointer Authentication.
11835 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11837 * arm-linux-nat.c: Add include.
11839 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11841 * source-cache.c (source_cache::get_source_lines): Re-read
11842 fullname after calling open_source_file.
11844 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11846 * NEWS: Mention TLS support for FreeBSD.
11848 2019-03-25 Tom Tromey <tromey@adacore.com>
11850 * minsyms.c (BUNCH_SIZE): Update comment.
11851 (~minimal_symbol_reader): Remove old comment.
11852 (compact_minimal_symbols): Update comment.
11853 (minimal_symbol_reader::install): Remove old comment. Update
11856 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11858 * s390-linux-nat.c: Add include.
11860 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11862 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11863 Call linux_get_hwcap.
11864 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11866 (aarch64_linux_get_hwcap): Remove function.
11867 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11869 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11871 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11872 * linux-tdep.c (linux_get_hwcap): Add function.
11873 (linux_get_hwcap2): Likewise.
11874 * linux-tdep.h (linux_get_hwcap): Add declaration.
11875 (linux_get_hwcap2): Likewise.
11876 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11877 (ppc_linux_get_hwcap2): Likewise.
11878 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11880 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11881 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11882 (ppc_linux_nat_target::read_description): Likewise.
11883 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11884 * s390-linux-nat.c: Likewise.
11885 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11887 2019-03-24 Tom Tromey <tom@tromey.com>
11889 * ada-lang.c (standard_lookup): Simplify initialization.
11890 (ada_lookup_symbol_nonlocal): Simplify return.
11891 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11892 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11893 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11894 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11896 * solib.c (solib_global_lookup): Simplify.
11897 * symtab.c (null_block_symbol): Remove.
11898 (symbol_cache_lookup): Simplify returns.
11899 (lookup_language_this): Simplify returns.
11900 (lookup_symbol_aux): Simplify return.
11901 (lookup_local_symbol): Simplify returns.
11902 (lookup_global_symbol_from_objfile): Simplify return.
11903 (lookup_symbol_in_objfile_symtabs)
11904 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11905 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11906 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11907 * cp-namespace.c (cp_lookup_bare_symbol)
11908 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11909 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11910 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11911 (cp_lookup_symbol_via_imports): Simplify initialization.
11912 (find_symbol_in_baseclass): Likewise.
11913 * symtab.h (null_block_symbol): Remove.
11914 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11915 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11916 (d_lookup_symbol_module): Likewise.
11917 (find_symbol_in_baseclass): Simplify initialization.
11919 2019-03-24 Tom Tromey <tom@tromey.com>
11921 * expression.h: Don't include symtab.h.
11922 (struct block): Forward declare.
11924 2019-03-24 Tom Tromey <tom@tromey.com>
11926 * c-exp.y (typebase): Remove casts.
11927 * gdbtypes.c (lookup_unsigned_typename, )
11928 (lookup_signed_typename): Remove cast.
11929 * eval.c (parse_to_comma_and_eval): Remove cast.
11930 * parse.c (write_dollar_variable): Remove cast.
11931 * block.h (struct block) <superblock>: Now const.
11932 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11933 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11934 (map_block): Make "block" const.
11935 * symfile.h (struct quick_symbol_functions)
11936 <map_matching_symbols>: Constify block argument to "callback".
11937 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11939 (find_pc_sect_compunit_symtab): Make "b" const.
11940 (find_symbol_at_address): Likewise.
11941 (search_symbols): Likewise.
11942 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11943 (dw2_debug_names_lookup_symbol): Likewise.
11944 (dw2_map_matching_symbols): Update.
11945 * p-valprint.c (pascal_val_print): Remove "block".
11946 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11947 (aux_add_nonlocal_symbols): Make "block" const.
11948 (resolve_subexp): Remove cast.
11949 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11951 (iterate_over_file_blocks): Likewise.
11952 * f-exp.y (%union) <bval>: Remove.
11953 * coffread.c (patch_opaque_types): Make "b" const.
11954 * spu-tdep.c (spu_catch_start): Make "block" const.
11955 * c-valprint.c (print_unpacked_pointer): Remove "block".
11956 * symmisc.c (dump_symtab_1): Make "b" const.
11957 (block_depth): Make "block" const.
11958 * d-exp.y (%union) <bval>: Remove.
11959 * cp-support.h (cp_lookup_rtti_type): Update.
11960 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11961 * psymtab.c (psym_lookup_symbol): Make "block" const.
11962 (maintenance_check_psymtabs): Make "b" const.
11963 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11964 (enumerate_locals, enumerate_args): Update.
11965 * python/py-symtab.c (stpy_global_block): Make "block" const.
11966 (stpy_static_block): Likewise.
11967 * inline-frame.c (block_starting_point_at): Make "new_block"
11969 * block.c (find_block_in_blockvector): Make return type const.
11970 (blockvector_for_pc_sect): Make "b" const.
11971 (find_block_in_blockvector): Make "b" const.
11973 2019-03-23 Tom Tromey <tom@tromey.com>
11975 * varobj.c (varobj_create): Update.
11976 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11977 * printcmd.c (display_command, do_one_display): Don't reset
11979 * parser-defs.h (enum innermost_block_tracker_type): Move to
11981 (innermost_block): Update comment.
11982 * parse.c (parse_exp_1): Add tracker_types parameter.
11983 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11984 tracker_types parameter. Reset innermost_block.
11985 (parse_exp_in_context): Remove.
11986 (parse_expression_for_completion): Update.
11987 * objfiles.c (~objfile): Don't reset expression_context_block or
11989 * expression.h (enum innermost_block_tracker_type): Move from
11991 (parse_exp_1): Add tracker_types parameter.
11992 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11993 reset innermost_block.
11995 2019-03-23 Tom Tromey <tom@tromey.com>
11997 * objfiles.h: Include bcache.h.
11999 2019-03-23 Tom Tromey <tom@tromey.com>
12001 * linespec.c (get_current_search_block): Use
12002 scoped_restore_current_language.
12003 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12005 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12006 Jiong Wang <jiong.wang@arm.com>
12008 * aarch64-linux-tdep.c
12009 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12011 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12013 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12014 Jiong Wang <jiong.wang@arm.com>
12016 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12018 (aarch64_analyze_prologue_test): Add PACIASP test.
12019 (aarch64_prologue_prev_register): Unmask PC value.
12021 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12022 Jiong Wang <jiong.wang@arm.com>
12024 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12025 (aarch64_dwarf2_prev_register): Unmask PC value.
12026 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12027 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12028 DW_CFA_AARCH64_negate_ra_state.
12029 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12031 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12032 Jiong Wang <jiong.wang@arm.com>
12034 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12036 (aarch64_pseudo_register_name): Likewise.
12037 (aarch64_pseudo_register_type): Likewise.
12038 (aarch64_pseudo_register_reggroup_p): Likewise.
12039 (aarch64_gdbarch_init): Add pauth registers.
12040 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12041 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12042 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12043 (struct gdbarch_tdep): Add regnum for ra_state.
12045 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12046 Jiong Wang <jiong.wang@arm.com>
12048 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12050 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12051 Jiong Wang <jiong.wang@arm.com>
12053 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12055 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12056 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12057 (aarch64_gdbarch_init): Add puth registers.
12058 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12059 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12060 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12062 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12063 Jiong Wang <jiong.wang@arm.com>
12065 * aarch64-linux-nat.c
12066 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12067 * aarch64-linux-tdep.c
12068 (aarch64_linux_core_read_description): Likewise.
12069 (aarch64_linux_get_hwcap): New function.
12070 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12071 (aarch64_linux_get_hwcap): New declaration.
12073 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12074 Jiong Wang <jiong.wang@arm.com>
12076 * aarch64-linux-nat.c
12077 (aarch64_linux_nat_target::read_description): Add pauth param.
12078 * aarch64-linux-tdep.c
12079 (aarch64_linux_core_read_description): Likewise.
12080 * aarch64-tdep.c (struct target_desc): Add in pauth.
12081 (aarch64_read_description): Add pauth param.
12082 (aarch64_gdbarch_init): Likewise.
12083 * aarch64-tdep.h (aarch64_read_description): Likewise.
12084 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12085 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12086 * features/Makefile: Add new files.
12087 * features/aarch64-pauth.c: New file.
12088 * features/aarch64-pauth.xml: New file.
12090 2019-03-20 Tom Tromey <tromey@adacore.com>
12092 * infrun.c (handle_inferior_event): Rename from
12093 handle_inferior_event_1. Create a scoped_value_mark.
12094 (handle_inferior_event): Remove.
12096 2019-03-19 Tom Tromey <tromey@adacore.com>
12098 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12099 * infrun.h (print_stop_event): Add "displays" parameter.
12100 * infrun.c (print_stop_event): Add "displays" parameter.
12102 2019-03-19 Pedro Alves <palves@redhat.com>
12104 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12105 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12106 to -1. Fix TABs vs spaces.
12107 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12108 * tui/tui-out.h (tui_ui_out) Add intro comments.
12109 <m_line, m_start_of_line>: In-class initialize, and add describing
12112 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12114 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12116 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12118 2019-03-18 Pedro Alves <palves@redhat.com>
12119 Eli Zaretskii <eliz@gnu.org>
12121 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12122 m_line and m_start_of_line.
12124 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12126 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12127 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12128 it returns a newline. This fixes a regression in TU mode, whereby
12129 the next line is output on the same screen line as the user input.
12131 2019-03-18 Tom Tromey <tromey@adacore.com>
12133 * minsyms.c (minimal_symbol_reader::install): Remove call to
12136 2019-03-18 Pedro Alves <palves@redhat.com>
12138 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12140 (apply_style): New, factored out from ...
12141 (apply_ansi_escape): ... this. Handle reverse video mode.
12142 (tui_set_reverse_mode): New function.
12143 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12144 * tui/tui-winsource.c (tui_show_source_line): Use
12145 tui_set_reverse_mode instead of setting A_STANDOUT.
12146 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12147 New setter methods.
12149 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12151 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12154 2019-03-18 Tom Tromey <tromey@adacore.com>
12156 * ada-lang.c (empty_array): Add "high" parameter.
12157 (ada_evaluate_subexp): Update.
12159 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12161 * unittests/string_view-selftests.c: Define
12162 _initialize_string_view_selftests unconditionally.
12164 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12167 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12169 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12172 * windows-nat.c (display_selector): Fix format specifiers.
12174 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12176 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12177 tui_refill_source_window instead of tui_refresh_win, to update the
12178 current execution line. This fixes redisplay of the current line
12179 when stepping through the code with "next" or "step".
12181 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12183 * source-cache.c (source_cache::get_source_lines): Call
12184 find_source_lines to initialize s->nlines. This fixes vertical
12185 scrolling of TUI source window when the DOWN arrow is pressed.
12187 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12189 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12190 linux-thread-db.c (_initialize_thread_db): Likewise.
12192 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12194 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12195 wclrtoeol in tui_show_source_line". This reverts changes made in
12196 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12198 2019-03-15 Tom Tromey <tom@tromey.com>
12200 * symtab.h (struct minimal_symbol): Derive from
12201 general_symbol_info.
12202 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12203 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12204 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12205 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12206 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12207 (MSYMBOL_SEARCH_NAME): Update.
12208 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12209 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12210 * minsyms.c (minimal_symbol_reader::record_full): Update.
12212 2019-03-15 Tom Tromey <tom@tromey.com>
12214 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12216 2019-03-15 Tom Tromey <tom@tromey.com>
12218 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12219 unique_xmalloc_ptr.
12220 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12222 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12223 (build_minimal_symbol_hash_tables)
12224 (minimal_symbol_reader::install): Update.
12226 2019-03-15 Tom Tromey <tom@tromey.com>
12228 * symtab.c (create_demangled_names_hash): Update.
12229 (symbol_set_names): Update.
12230 * objfiles.h (struct objfile_per_bfd_storage)
12231 <demangled_names_hash>: Now an htab_up.
12232 * objfiles.c (objfile_per_bfd_storage): Simplify.
12234 2019-03-15 Tom Tromey <tom@tromey.com>
12236 * objfiles.h (struct objfile_per_bfd_storage): Declare
12238 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12240 (get_objfile_bfd_data): Use new. Don't initialize
12242 (free_objfile_per_bfd_storage): Remove.
12243 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12245 2019-03-15 Tom Tromey <tom@tromey.com>
12247 * symfile.c (reread_symbols): Update.
12248 * objfiles.c (objfile::objfile): Update.
12249 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12250 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12252 (minimal_symbol_reader::install): Update.
12253 (terminate_minimal_symbol_table): Remove.
12254 * jit.c (jit_object_close_impl): Update.
12256 2019-03-15 Tom Tromey <tom@tromey.com>
12258 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12261 2019-03-15 Tom Tromey <tom@tromey.com>
12263 * objfiles.h (struct objfile_per_bfd_storage)
12264 <demangled_hash_languages>: Now a bitset.
12265 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12266 (lookup_minimal_symbol): Update.
12268 2019-03-15 Tom Tromey <tom@tromey.com>
12270 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12271 Don't return the symbol.
12272 * coffread.c (record_minimal_symbol): Use record_full.
12274 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12276 The MS-Windows port of ncurses fails to switch to a color pair if
12277 one or both of the colors are the implicit default colors. This
12278 change records the default colors when TUI is initialized, and
12279 then specifies them explicitly when a color pair uses the default
12280 colors. This allows color styling in TUI mode on MS-Windows.
12282 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12284 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12285 colors in ncurses_norm_attr.
12286 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12287 "none", replace it with the default color recorded in
12290 2019-03-14 Tom Tromey <tromey@adacore.com>
12292 * source-cache.h (class source_cache) <get_source_lines>: Return
12294 * source-cache.c (source_cache::extract_lines): Handle case where
12295 first_pos==npos. Return std::string.
12296 (source_cache::get_source_lines): Update.
12298 2019-03-14 Tom Tromey <tromey@adacore.com>
12300 * NEWS: Add item for "style sources" commands.
12301 * source-cache.c (source_cache::get_source_lines): Check
12303 * cli/cli-style.c (source_styling): New global.
12304 (_initialize_cli_style): Add "style sources" commands.
12305 (show_style_sources): New function.
12306 * cli/cli-style.h (source_styling): Declare.
12308 2019-03-14 Pedro Alves <palves@redhat.com>
12309 Tom Tromey <tromey@adacore.com>
12311 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12312 * tui/tui-winsource.c (tui_refill_source_window): New function,
12314 (tui_horizontal_source_scroll): ... here. Move some logic.
12315 * cli/cli-style.c (set_style_enabled): Notify new observable.
12316 * tui/tui-hooks.c (tui_redisplay_source): New function.
12317 (tui_attach_detach_observers): Attach or detach
12318 tui_redisplay_source.
12319 * observable.h (source_styling_changed): New observable.
12320 * observable.c: Define source_styling_changed observable.
12322 2019-03-13 Tom Tromey <tromey@adacore.com>
12324 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12325 (i386_gnu_nat_target::store_registers): Update.
12326 * target-debug.h (target_debug_print_std_string): New macro.
12327 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12328 * windows-tdep.c (display_one_tib): Update.
12329 * tui/tui-stack.c (tui_make_status_line): Update.
12330 * top.c (print_inferior_quit_action): Update.
12331 * thread.c (thr_try_catch_cmd): Update.
12332 (add_thread_with_info): Update.
12333 (thread_target_id_str): Update.
12334 (thr_try_catch_cmd): Update.
12335 (thread_command): Update.
12336 (thread_find_command): Update.
12337 * record-btrace.c (record_btrace_target::info_record)
12338 (record_btrace_resume_thread, record_btrace_target::resume)
12339 (record_btrace_cancel_resume, record_btrace_step_thread)
12340 (record_btrace_target::wait, record_btrace_target::wait)
12341 (record_btrace_target::wait, record_btrace_target::stop): Update.
12342 * progspace.c (print_program_space): Update.
12343 * process-stratum-target.c
12344 (process_stratum_target::thread_address_space): Update.
12345 * linux-fork.c (linux_fork_mourn_inferior)
12346 (detach_checkpoint_command, info_checkpoints_command)
12347 (linux_fork_context): Update.
12348 (linux_fork_detach): Update.
12349 (class scoped_switch_fork_info): Update.
12350 (delete_checkpoint_command): Update.
12351 * infrun.c (follow_fork_inferior): Update.
12352 (follow_fork_inferior): Update.
12353 (proceed_after_vfork_done): Update.
12354 (handle_vfork_child_exec_or_exit): Update.
12355 (follow_exec): Update.
12356 (displaced_step_prepare_throw): Update.
12357 (displaced_step_restore): Update.
12358 (start_step_over): Update.
12359 (resume_1): Update.
12360 (clear_proceed_status_thread): Update.
12362 (print_target_wait_results): Update.
12363 (do_target_wait): Update.
12364 (context_switch): Update.
12365 (stop_all_threads): Update.
12366 (restart_threads): Update.
12367 (finish_step_over): Update.
12368 (handle_signal_stop): Update.
12369 (switch_back_to_stepped_thread): Update.
12370 (keep_going_pass_signal): Update.
12371 (print_exited_reason): Update.
12372 (normal_stop): Update.
12373 * inferior.c (inferior_pid_to_str): Change return type.
12374 (print_selected_inferior): Update.
12375 (add_inferior): Update.
12376 (detach_inferior): Update.
12377 * dummy-frame.c (fprint_dummy_frames): Update.
12378 * dcache.c (dcache_info_1): Update.
12379 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12380 (btrace_fetch, btrace_clear): Update.
12381 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12382 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12384 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12385 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12386 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12387 * gdbarch.c, gdbarch.h: Rebuild.
12388 * gdbarch.sh (core_pid_to_str): Change return type.
12389 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12391 (windows_nat_target::pid_to_str): Change return type.
12392 (windows_delete_thread): Update.
12393 (windows_nat_target::attach): Update.
12394 (windows_nat_target::files_info): Update.
12395 * target-delegates.c: Rebuild.
12396 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12398 (sol_thread_target::pid_to_str): Change return type.
12399 * remote.c (class remote_target) <pid_to_str>: Change return
12401 (remote_target::pid_to_str): Change return type.
12402 (extended_remote_target::attach, remote_target::remote_stop_ns)
12403 (remote_target::remote_notif_remove_queued_reply)
12404 (remote_target::push_stop_reply, remote_target::disable_btrace):
12406 (extended_remote_target::attach): Update.
12407 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12409 (gdbsim_target::pid_to_str): Change return type.
12410 * ravenscar-thread.c (struct ravenscar_thread_target)
12411 <pid_to_str>: Change return type.
12412 (ravenscar_thread_target::pid_to_str): Change return type.
12413 * procfs.c (class procfs_target) <pid_to_str>: Change return
12415 (procfs_target::pid_to_str): Change return type.
12416 (procfs_target::attach): Update.
12417 (procfs_target::detach): Update.
12418 (procfs_target::fetch_registers): Update.
12419 (procfs_target::store_registers): Update.
12420 (procfs_target::wait): Update.
12421 (procfs_target::files_info): Update.
12422 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12423 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12425 (nto_procfs_target::pid_to_str): Change return type.
12426 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12427 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12429 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12430 (exit_lwp): Update.
12431 (attach_proc_task_lwp_callback, get_detach_signal)
12432 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12433 (linux_nat_target::resume, wait_lwp, stop_callback)
12434 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12435 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12436 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12437 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12438 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12440 (inf_ptrace_target::attach): Update.
12441 (inf_ptrace_target::files_info): Update.
12442 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12444 (go32_nat_target::pid_to_str): Change return type.
12445 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12446 (gnu_nat_target::wait): Update.
12447 (gnu_nat_target::wait): Update.
12448 (gnu_nat_target::resume): Update.
12449 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12450 (fbsd_nat_target::wait): Update.
12451 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12453 (darwin_nat_target::attach): Update.
12454 * corelow.c (class core_target) <pid_to_str>: Change return type.
12455 (core_target::pid_to_str): Change return type.
12456 * target.c (normal_pid_to_str): Change return type.
12457 (default_pid_to_str): Likewise.
12458 (target_pid_to_str): Change return type.
12459 (target_translate_tls_address): Update.
12460 (target_announce_detach): Update.
12461 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12463 (bsd_uthread_target::pid_to_str): Change return type.
12464 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12466 (bsd_kvm_target::pid_to_str): Change return type.
12467 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12469 (aix_thread_target::pid_to_str): Change return type.
12470 * target.h (struct target_ops) <pid_to_str>: Change return type.
12471 (target_pid_to_str, normal_pid_to_str): Likewise.
12472 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12474 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12476 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12478 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12480 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12482 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12485 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12487 * NEWS: Mention that the new default MI version is 3. Mention
12488 changes to the output of commands and events that deal with
12489 multi-location breakpoints.
12490 * breakpoint.c: Include "mi/mi-out.h".
12491 (print_one_breakpoint): Change output syntax if using MI version
12493 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12495 (mi_multi_location_breakpoint_output_fixed): New.
12496 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12497 (mi_cmd_fix_multi_location_breakpoint_output): New.
12498 (mi_multi_location_breakpoint_output_fixed): New.
12499 * mi/mi-cmds.c (mi_cmds): Register command
12500 -fix-multi-location-breakpoint-output.
12501 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12504 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12506 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12507 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12508 instantiate mi_ui_out based on interpreter name.
12509 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12510 * mi/mi-main.c (mi_load_progress): Likewise.
12512 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12514 * NEWS: Combine separate "New targets" sections for 8.3.
12516 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12518 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12519 (ppcfbsd_init_abi): Install gdbarch
12520 "fetch_tls_load_module_address" and "get_thread_local_address"
12523 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12525 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12526 (riscv_fbsd_init_abi): Install gdbarch
12527 "fetch_tls_load_module_address" and "get_thread_local_address"
12530 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12532 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12533 (i386fbsd_init_abi): Install gdbarch
12534 "fetch_tls_load_module_address" and "get_thread_local_address"
12537 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12539 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12540 (amd64fbsd_init_abi): Install gdbarch
12541 "fetch_tls_load_module_address" and "get_thread_local_address"
12544 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12546 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12547 (struct fbsd_pspace_data): New type.
12548 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12549 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12550 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12551 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12552 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12554 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12556 * gdbtypes.c (lookup_struct_elt): New function.
12557 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12558 * gdbtypes.h (struct struct_elt): New type.
12559 (lookup_struct_elt): New prototype.
12561 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12563 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12564 remove disabled code block.
12566 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12568 * gdbarch.sh (get_thread_local_address): New method.
12569 * gdbarch.h, gdbarch.c: Regenerate.
12570 * target.c (target_translate_tls_address): Use
12571 gdbarch_get_thread_local_address if present instead of
12572 target::get_thread_local_address.
12574 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12576 * target.h (target::get_thread_local_address): Update comment.
12578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12580 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12581 objfile->separate_debug_objfile_backlink if not NULL.
12583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12585 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12586 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12587 (amd64bsd_store_inferior_registers): Likewise.
12588 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12589 Enable segment base registers.
12590 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12591 PT_GETFSBASE and PT_GETGSBASE.
12592 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12594 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12595 segment base registers.
12596 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12598 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12600 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12601 Update calls to i386_target_description to add 'segments'
12603 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12604 add segment base registers.
12605 * arch/i386.c (i386_create_target_description): Add 'segments'
12606 parameter to enable segment base registers.
12607 * arch/i386.h (i386_create_target_description): Likewise.
12608 * features/i386/32bit-segments.xml: New file.
12609 * features/i386/32bit-segments.c: Generate.
12610 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12611 call to i386_target_description to add 'segments' parameter.
12612 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12613 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12614 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12615 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12616 if feature is present.
12617 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12618 Add 'segments' parameter to call to i386_target_description.
12619 (i386_target_description): Add 'segments' parameter to enable
12620 segment base registers.
12621 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12622 to call to i386_target_description.
12623 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12624 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12625 Define I386_NUM_REGS.
12626 (i386_target_description): Add 'segments' parameter to enable
12627 segment base registers.
12629 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12632 * source-cache.c: #undef open and close, to avoid unresolved
12633 externals during linking.
12635 2019-03-12 Tom Tromey <tromey@adacore.com>
12637 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12638 const. Add initializers.
12639 (_initialize_remote): Don't initialize ptid globals.
12641 2019-03-12 Pedro Alves <palves@redhat.com>
12643 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12645 2019-03-12 Pedro Alves <palves@redhat.com>
12647 * cp-name-parser.y (main): Remove unused 'len' variable.
12649 2019-03-12 Tom Tromey <tromey@adacore.com>
12651 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12652 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12654 2019-03-12 Tom Tromey <tromey@adacore.com>
12656 * linux-nat.c (iterate_over_lwps): Update.
12657 (stop_callback): Remove parameter.
12658 (stop_wait_callback, detach_callback, resume_set_callback)
12659 (select_singlestep_lwp_callback, set_ignore_sigint)
12660 (status_callback, resumed_callback, resume_clear_callback)
12661 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12663 (linux_nat_target::detach, linux_nat_target::resume)
12664 (linux_stop_and_wait_all_lwps, select_event_lwp)
12665 (linux_nat_filter_event, linux_nat_wait_1)
12666 (linux_nat_target::kill, linux_nat_target::stop)
12667 (linux_nat_target::stop): Update.
12668 (linux_nat_resume_callback): Change type.
12669 (resume_stopped_resumed_lwps, count_events_callback)
12670 (select_event_lwp_callback): Likewise.
12671 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12672 * arm-linux-nat.c (struct update_registers_data): Remove.
12673 (update_registers_callback): Change type.
12674 (arm_linux_insert_hw_breakpoint1): Update.
12675 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12677 (x86_linux_dr_set_addr): Update.
12678 (x86_linux_dr_set_control): Update.
12679 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12680 (iterate_over_lwps): Use gdb::function_view.
12681 * nat/aarch64-linux-hw-point.c (struct
12682 aarch64_dr_update_callback_param): Remove.
12683 (debug_reg_change_callback): Change type.
12684 (aarch64_notify_debug_reg_change): Update.
12685 * s390-linux-nat.c (s390_refresh_per_info): Update.
12687 2019-03-11 Tom Tromey <tromey@adacore.com>
12689 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12690 redundant assignment to "this_cu".
12692 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12694 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12696 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12698 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12700 (rank_one_type): ... this.
12702 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12704 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12706 (rank_one_type): ... this.
12708 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12710 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12712 (rank_one_type): ... this.
12714 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12716 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12718 (rank_one_type): ... this.
12720 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12722 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12724 (rank_one_type): ... this.
12726 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12728 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12730 (rank_one_type): ... this.
12732 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12734 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12736 (rank_one_type): ... this.
12738 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12740 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12742 (rank_one_type): ... this.
12744 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12746 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12748 (rank_one_type): ... this.
12750 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12752 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12754 (rank_one_type): ... this.
12756 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12758 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12760 (rank_one_type): ... this.
12762 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12764 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12766 (rank_one_type): ... this.
12768 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12770 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12771 inferior-events' shows the example events.
12773 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12775 Support styling on native MS-Windows console
12778 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12779 on MS-Windows if $TERM is not defined.
12781 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12783 * posix-hdep.c (gdb_console_fputs):
12784 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12786 * ui-file.h (gdb_console_fputs): Add prototype.
12788 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12789 back to fputs only if the former returns zero.
12791 2019-03-07 Tom Tromey <tom@tromey.com>
12793 * symmisc.c (print_symbol_bcache_statistics): Update.
12794 (print_objfile_statistics): Update.
12795 * symfile.c (allocate_symtab): Update.
12796 * stabsread.c: Don't include bcache.h.
12797 * psymtab.h (struct psymbol_bcache): Don't declare.
12798 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12799 (psymbol_bcache_init, psymbol_bcache_free)
12800 (psymbol_bcache_get_bcache): Don't declare.
12801 * psymtab.c (struct psymbol_bcache): Remove.
12802 (psymtab_storage::psymtab_storage): Update.
12803 (psymtab_storage::~psymtab_storage): Update.
12804 (psymbol_bcache_init, psymbol_bcache_free)
12805 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12806 (add_psymbol_to_bcache): Update.
12807 (allocate_psymtab): Update.
12808 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12809 macro_cache>: No longer pointers.
12810 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12811 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12812 * macrotab.c (macro_bcache): Update.
12813 * macroexp.c: Don't include bcache.h.
12814 * gdbtypes.c (check_types_worklist): Update.
12815 (types_deeply_equal): Remove TRY/CATCH. Update.
12816 * elfread.c (elf_symtab_read): Update.
12817 * dwarf2read.c: Don't include bcache.h.
12818 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12819 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12820 (print_bcache_statistics, bcache_memory_used): Don't declare.
12821 (struct bcache): Move from bcache.c. Add constructor, destructor,
12822 methods. Rename all data members.
12823 * bcache.c (struct bcache): Move to bcache.h.
12824 (bcache::expand_hash_table): Rename from expand_hash_table.
12826 (bcache::insert): Rename from bcache_full.
12827 (bcache::compare): Rename from bcache_compare.
12828 (bcache_xmalloc): Remove.
12829 (bcache::~bcache): Rename from bcache_xfree.
12830 (bcache::print_statistics): Rename from print_bcache_statistics.
12831 (bcache::memory_used): Rename from bcache_memory_used.
12833 2019-03-07 Pedro Alves <palves@redhat.com>
12835 * infrun.c (normal_stop): Also check for
12836 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12838 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12840 * f-lang.c (value_from_host_double): Moved to...
12841 * value.c (value_from_host_double): ...here.
12842 * value.h (value_from_host_double): Declare.
12843 * guile/scm-math.c (vlscm_convert_typed_number): Use
12844 value_from_host_double.
12845 (vlscm_convert_number): Likewise.
12846 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12847 * python/py-value.c (convert_value_from_python): Likewise.
12849 2019-03-06 Tom Tromey <tom@tromey.com>
12851 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12853 2019-03-06 Tom Tromey <tom@tromey.com>
12855 * utils.h (free_current_contents): Don't declare.
12856 * utils.c (free_current_contents): Remove.
12858 2019-03-06 Tom Tromey <tom@tromey.com>
12860 * top.c (quit_force): Update.
12861 * main.c (captured_command_loop): Update.
12862 * common/new-op.c (operator new): Update.
12863 * common/common-exceptions.c (struct catcher)
12864 <save_cleanup_chain>: Remove member.
12865 (exceptions_state_mc_init): Update.
12866 (exception_try_scope_entry): Return nullptr.
12867 (exception_try_scope_exit, exception_rethrow)
12868 (throw_exception_sjlj, throw_exception_cxx): Update.
12869 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12870 (all_cleanups, do_cleanups, discard_cleanups)
12871 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12872 (restore_cleanups, restore_final_cleanups): Don't declare.
12873 (do_final_cleanups): Remove parameter.
12874 * common/cleanups.c (cleanup_chain, make_cleanup)
12875 (make_cleanup_dtor, all_cleanups, do_cleanups)
12876 (discard_my_cleanups, discard_cleanups)
12877 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12878 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12879 (null_cleanup): Remove.
12880 (do_final_cleanups): Remove parameter.
12882 2019-03-06 Tom Tromey <tom@tromey.com>
12884 * remote.c (remote_target::remote_parse_stop_reply): Use
12885 unique_xmalloc_ptr.
12887 2019-03-06 Tom Tromey <tom@tromey.com>
12889 * stabsread.c (struct stabs_field_info): Rename from field_info.
12890 <list, fnlist>: Add initializers.
12891 <obstack>: New member.
12892 (read_member_functions, read_struct_fields, read_baseclasses):
12893 Allocate on obstack. Don't use cleanups.
12894 (read_one_struct_field, read_member_functions, read_struct_fields)
12895 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12896 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12897 (read_struct_type): Update.
12899 2019-03-06 Tom Tromey <tom@tromey.com>
12901 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12902 * common/filestuff.h (make_cleanup_close): Don't declare.
12903 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12906 2019-03-06 Tom Tromey <tom@tromey.com>
12908 * solib-aix.c: Use make_scope_exit.
12910 2019-03-06 Tom Tromey <tom@tromey.com>
12912 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12913 Use make_scope_exit.
12915 2019-03-06 Tom Tromey <tom@tromey.com>
12917 * solib-svr4.c (disable_probes_interface): Remove parameter.
12918 (svr4_handle_solib_event): Use make_scope_exit.
12920 2019-03-06 Tom Tromey <tom@tromey.com>
12922 * remote.c (struct stop_reply_deleter): Remove.
12923 (stop_reply_up): Update.
12924 (struct stop_reply): Derive from notif_event. Don't typedef.
12925 <regcache>: Now a std::vector.
12926 (stop_reply_xfree): Remove.
12927 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12928 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12929 (remote_target::discard_pending_stop_replies): Use delete.
12930 (remote_target::remote_parse_stop_reply): Update.
12931 (remote_target::process_stop_reply): Update.
12932 * remote-notif.h (struct notif_event): Add virtual destructor.
12933 Remove "dtr" member.
12934 (struct notif_client) <alloc_event>: Return a unique_ptr.
12935 (notif_event_xfree): Don't declare.
12936 (notif_event_up): New typedef.
12937 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12938 (notif_event_xfree, do_notif_event_xfree): Remove.
12939 (remote_notif_state_xfree): Update.
12941 2019-03-06 Tom Tromey <tom@tromey.com>
12943 * infrun.c (displaced_step_clear_cleanup): Now a
12944 forward_scope_exit type.
12945 (displaced_step_prepare_throw): Update.
12946 (displaced_step_fixup): Update.
12948 2019-03-06 Tom Tromey <tom@tromey.com>
12950 * inferior.h (class inferior): Update comment.
12951 * gdbthread.h (class thread_info): Update comment.
12953 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12954 Tom Tromey <tom@tromey.com>
12956 * stabsread.h (struct stab_section_list): Remove.
12957 (coffstab_build_psymtabs): Update.
12958 * dbxread.c (symbuf_sections): Now a std::vector.
12959 (sect_idx): New global.
12960 (fill_symbuf): Update.
12961 (coffstab_build_psymtabs): Change type of stabsects parameter.
12963 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12965 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12966 (coff_locate_sections): Update.
12967 (coff_symfile_read): Remove cleanups. Update.
12968 (init_stringtab): Add storage parameter.
12969 (free_stringtab, free_stringtab_cleanup): Remove.
12970 (init_lineno): Add storage parameter.
12971 (free_linetab, free_linetab_cleanup): Remove.
12973 2019-03-06 Pedro Alves <palves@redhat.com>
12975 * linux-fork.c (fork_info::clobber_regs): Delete.
12976 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12977 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12979 (scoped_switch_fork_info::scoped_switch_fork_info)
12980 (checkpoint_command, linux_fork_context): Adjust
12981 fork_save_infrun_state calls.
12983 2019-03-06 Pedro Alves <palves@redhat.com>
12985 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12986 (inf_has_multiple_threads): Return 'bool' and rewrite using
12987 inferior_info::threads().
12989 2019-03-06 Pedro Alves <palves@redhat.com>
12991 * linux-fork.c: Include <list>.
12992 (fork_list): Now a std::list instance.
12993 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12994 (forks_exist_p, find_last_fork): Adjust.
12995 (new_fork): Delete.
12997 (add_fork): Adjust.
12998 (free_fork): Delete, folded into fork_info::~fork_info().
12999 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13001 (init_fork_list): Delete.
13002 (linux_fork_killall, linux_fork_mourn_inferior)
13003 (linux_fork_detach, info_checkpoints_command): Adjust.
13004 (_initialize_linux_fork): No longer call init_fork_list.
13006 2019-03-06 Pedro Alves <palves@redhat.com>
13008 * linux-fork.c (new_fork): New, split out of ...
13009 (add_fork): ... this. Return void. Move "first fork" special
13010 case from here, to ...
13011 (checkpoint_command): ... here.
13012 * linux-linux.h (add_fork): Return void.
13014 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13016 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13018 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13019 Chris January <chris.january@arm.com>
13020 David Lecomber <david.lecomber@arm.com>
13022 * f-exp.y: New token, UNOP_INTRINSIC.
13023 (exp): New pattern using UNOP_INTRINSIC token.
13024 (f77_keywords): Add 'abs' keyword.
13025 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13026 (value_from_host_double): New function.
13027 (evaluate_subexp_f): Support UNOP_ABS.
13029 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13031 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13034 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13036 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13037 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13038 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13040 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13042 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13044 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13045 Chris January <chris.january@arm.com>
13047 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13048 * f-exp.y: Define 'KIND' token.
13049 (exp): New pattern for KIND expressions.
13050 (ptype): Handle types with a kind extension.
13051 (direct_abs_decl): Extend to spot kind extensions.
13052 (f77_keywords): Add 'kind' to the list.
13053 (push_kind_type): New function.
13054 (convert_to_kind_type): New function.
13055 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13056 * parse.c (operator_length_standard): Likewise.
13057 * parser-defs.h (enum type_pieces): Add tp_kind.
13058 * std-operator.def: Add UNOP_KIND.
13060 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13062 * f-exp.y (f_parse): Set yydebug.
13064 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13066 * f-lang.c (evaluate_subexp_f): New function.
13067 (exp_descriptor_f): New global.
13068 (f_language_defn): Use exp_descriptor_f instead of
13069 exp_descriptor_standard.
13071 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13073 * f-exp.y (struct token): Add comments.
13074 (dot_ops): Remove uppercase versions and the end marker.
13075 (f77_keywords): Likewise.
13076 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13077 entries in the dot_ops array are case insensitive, and use
13078 strncasecmp to compare strings. Also some whitespace cleanup in
13079 this area. Similar for the f77_keywords array, except entries in
13080 this list might be case sensitive.
13082 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13084 * f-exp.y (struct f77_boolean_val): Add comments.
13085 (boolean_values): Remove uppercase versions, and end marker.
13086 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13087 and use strncasecmp to achieve case insensitivity. Additionally,
13088 perform whitespace cleanup around this code.
13090 2019-03-06 Tom Tromey <tromey@adacore.com>
13092 * remote-sim.c (gdbsim_target_open): Use result of
13095 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13096 Dirk Schubert <dirk.schubert@arm.com>
13097 Chris January <chris.january@arm.com>
13099 * eval.c (evaluate_subexp_standard): Call Fortran argument
13101 * f-lang.c (struct value): A value which can be passed into a
13102 Fortran function call.
13103 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13105 (struct type): Value ready for a Fortran function call.
13106 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13108 * f-lang.h (fortran_argument_convert): Declaration.
13109 (fortran_preserve_arg_pointer): Declaration.
13110 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13112 2019-03-05 Tom Tromey <tromey@adacore.com>
13114 * python/py-prettyprint.c (print_string_repr): Remove #if.
13115 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13117 2019-03-05 Tom Tromey <tromey@adacore.com>
13119 * target.c (the_dummy_target): Move later. Change type to
13121 (initialize_targets): Don't initialize the_dummy_target.
13123 2019-03-05 Tom Tromey <tromey@adacore.com>
13125 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13126 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13128 2019-03-05 Tom Tromey <tromey@adacore.com>
13130 * windows-nat.c (windows_nat_target::attach)
13131 (windows_nat_target::detach): Don't call gdb_flush.
13132 * valprint.c (generic_val_print, val_print, val_print_string):
13133 Don't call gdb_flush.
13134 * utils.c (defaulted_query): Don't call gdb_flush.
13135 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13136 * target.c (target_announce_detach): Don't call gdb_flush.
13137 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13138 * remote.c (extended_remote_target::attach): Don't call
13140 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13141 * printcmd.c (do_examine): Don't call gdb_flush.
13142 (info_display_command): Don't call gdb_flush.
13143 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13144 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13145 * memattr.c (info_mem_command): Don't call gdb_flush.
13146 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13147 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13148 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13149 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13150 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13151 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13152 (gnu_nat_target::detach): Don't call gdb_flush.
13153 * f-valprint.c (f_val_print): Don't call gdb_flush.
13154 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13155 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13156 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13158 * c-valprint.c (c_val_print): Don't call gdb_flush.
13159 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13161 2019-03-05 Tom Tromey <tromey@adacore.com>
13163 * varobj.c (update_dynamic_varobj_children): Update.
13164 (install_default_visualizer): Use reset, not release.
13165 * value.c (set_internalvar): Update.
13166 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13167 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13168 ATTRIBUTE_UNUSED_RESULT.
13170 2019-03-05 Tom Tromey <tromey@adacore.com>
13172 * remote.c (class scoped_remote_fd) <release>: Add
13173 ATTRIBUTE_UNUSED_RESULT.
13175 2019-03-05 Tom Tromey <tromey@adacore.com>
13177 * macroexp.c (struct macro_buffer) <release>: Add
13178 ATTRIBUTE_UNUSED_RESULT.
13180 2019-03-05 Tom Tromey <tromey@adacore.com>
13182 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13183 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13184 ATTRIBUTE_UNUSED_RESULT.
13186 2019-03-05 Tom Tromey <tromey@adacore.com>
13188 * common/scoped_fd.h (class scoped_fd) <release>: Add
13189 ATTRIBUTE_UNUSED_RESULT.
13191 2019-03-05 Tom Tromey <tromey@adacore.com>
13193 * parser-defs.h (struct parser_state) <release>: Add
13194 ATTRIBUTE_UNUSED_RESULT.
13196 2019-03-05 Tom Tromey <tromey@adacore.com>
13198 * utils.h (class gdb_argv) <release>: Add
13199 ATTRIBUTE_UNUSED_RESULT.
13200 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13202 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13204 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13205 for-loop range, to avoid compiler warnings.
13207 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13208 avoid compiler warnings about unused variables.
13210 * NEWS: Mention end of support for native debugging on MS-Windows
13214 * common/netstuff.c:
13215 * gdbserver/gdbreplay.c
13216 * gdbserver/remote-utils.c:
13218 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13219 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13220 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13221 'getaddrinfo' and 'freeaddrinfo' were not available before
13222 Windows XP, and mingw.org's MinGW headers by default define
13223 _WIN32_WINNT to 0x500.
13225 2019-03-01 Gary Benson <gbenson@redhat.com>
13227 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13229 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13230 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13233 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13234 set_sigint_trap, clear_sigint_trap.
13236 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13238 * target.c (target_detach): Clear the regcache and the
13241 2019-02-27 Pedro Alves <palves@redhat.com>
13243 * utils.c (set_screen_size): When we cap the height/width sizes,
13244 tweak the corresponding command variable to show "unlimited":
13246 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13247 Pedro Alves <palves@redhat.com>
13249 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13250 before calling rl_set_screen_size.
13252 2019-02-27 Tom Tromey <tromey@adacore.com>
13254 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13256 * python/py-value.c: Remove Python 2.4 workaround.
13257 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13259 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13260 Python 2.4 workaround.
13261 * python/python-internal.h: Remove Python 2.4 comment.
13262 (Py_ssize_t): Don't define.
13263 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13264 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13265 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13266 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13267 * python/python.c (do_start_initialization): Remove Python 2.4
13269 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13270 (print_children): Remove Python 2.4 workaround.
13271 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13273 (CHARBUFFERPROC_NAME): Remove.
13274 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13275 Python 2.4 workaround.
13277 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13279 * NEWS: Note minimum Python version.
13281 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13283 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13284 code from these functions. Remove corresponding ifdefs. Use
13285 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13286 Remove gotos and target of gotos.
13287 (infpy_search_memory): Likewise.
13289 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13291 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13292 (hppa_gdbarch_init): Don't register deleted functions with
13295 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13297 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13298 (h8300_unwind_sp): Delete.
13299 (h8300_dummy_id): Delete.
13300 (h8300_gdbarch_init): Don't register deleted functions with
13303 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13305 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13306 (ft32_unwind_pc): Delete.
13307 (ft32_unwind_sp): Delete.
13308 (ft32_gdbarch_init): Don't register deleted functions with
13311 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13313 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13314 (frv_unwind_pc): Delete.
13315 (frv_unwind_sp): Delete.
13316 (frv_gdbarch_init): Don't register deleted functions with
13319 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13321 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13322 (riscv_unwind_pc): Delete.
13323 (riscv_unwind_sp): Delete.
13324 (riscv_gdbarch_init): Don't register deleted functions with
13327 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13329 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13330 (csky_unwind_pc): Delete.
13331 (csky_unwind_sp): Delete.
13332 (csky_gdbarch_init): Don't register deleted functions with
13335 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13337 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13338 (cris_unwind_pc): Delete.
13339 (cris_unwind_sp): Delete.
13340 (cris_gdbarch_init): Don't register deleted functions with
13343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13345 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13346 (bfin_unwind_pc): Delete.
13347 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13349 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13351 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13352 (arm_unwind_pc): Delete.
13353 (arm_unwind_sp): Delete.
13354 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13356 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13358 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13359 (arc_unwind_pc): Delete.
13360 (arc_unwind_sp): Delete.
13361 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13363 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13365 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13366 (alpha_unwind_pc): Delete.
13367 (alpha_gdbarch_init): Don't register deleted functions with
13370 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13372 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13373 (aarch64_unwind_pc): Delete.
13374 (aarch64_unwind_sp): Delete.
13375 (aarch64_gdbarch_init): Don't register deleted functions with
13378 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13380 * gdbtypes.c (type_align): Don't consider static members when
13381 computing structure alignment.
13383 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13385 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13386 return 0 for other types.
13387 * arch-utils.c (default_type_align): Always return 0.
13388 * gdbarch.h: Regenerate.
13389 * gdbarch.sh (type_align): Extend comment.
13390 * gdbtypes.c (type_align): Add additional comments, always call
13391 gdbarch_type_align before applying the default rules.
13392 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13393 generic code will then apply a suitable default.
13394 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13395 types, return 0 for other types.
13397 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13399 * NEWS: Create a new section for the next release branch.
13400 Rename the section of the current branch, now that it has
13403 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13405 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13406 * version.in: Bump version to 8.3.50.DATE-git.
13408 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13410 * aix-thread.c (ptid_cmp): Remove unused variable.
13411 (get_signaled_thread): Likewise.
13412 (store_regs_user_thread): Likewise.
13413 (store_regs_kernel_thread): Likewise.
13414 (fetch_regs_kernel_thread): Remove shadowed variable.
13416 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13418 * features/riscv/32bit-cpu.xml: Add register numbers.
13419 * features/riscv/32bit-fpu.c: Regenerate.
13420 * features/riscv/32bit-fpu.xml: Add register numbers.
13421 * features/riscv/64bit-cpu.xml: Add register numbers.
13422 * features/riscv/64bit-fpu.c: Regenerate.
13423 * features/riscv/64bit-fpu.xml: Add register numbers.
13425 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13427 * NEWS: Mention two argument form of gdb.Value constructor.
13428 * python/py-value.c (convert_buffer_and_type_to_value): New
13430 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13431 Add support for handling an optional second argument. Call
13432 convert_buffer_and_type_to_value as appropriate.
13433 * python/python-internal.h (Py_buffer_deleter): New struct.
13434 (Py_buffer_up): New typedef.
13436 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13438 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13439 instead of releasing ownership.
13441 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13443 * dwarf2read.c (open_and_init_dwp_file): Call
13444 elf_numsections instead of bfd_count_sections to initialize
13445 dwp_file->num_sections.
13447 2019-02-25 Tom Tromey <tromey@adacore.com>
13449 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13451 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13453 * gcore.in: Add '--readnever' option when invoking GDB.
13455 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13457 * MAINTAINERS: Update my email address.
13459 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13461 * build-id.c (build_id_to_debug_bfd_1): New function.
13462 (build_id_to_debug_bfd): Look for separate debug file in
13465 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13467 * gdbarch.sh: Update the copyright year range that is placed into
13470 2019-02-22 Keith Seitz <keiths@redhat.com>
13473 * linespec.c (create_sals_line_offset): Search for the default
13474 symtab's filename instead of its fullname.
13476 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13478 * NEWS: Update style defaults.
13480 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13482 * main.c (captured_main_1): Disable styling in batch mode.
13484 2019-02-20 Tom Tromey <tom@tromey.com>
13486 * symtab.c (symtab_symbol_info): Fix typos.
13488 2019-02-20 Tom Tromey <tromey@adacore.com>
13490 * findcmd.c (_initialize_mem_search): Use upper case for
13491 metasyntactic variables.
13493 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13495 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13496 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13498 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13500 * top.h (source_file_name): Change to std::string.
13501 * top.c (source_file_name): Likewise.
13502 (command_line_input): Adjust.
13503 * cli/cli-script.c (script_from_file): Adjust.
13505 2019-02-19 Tom Tromey <tromey@adacore.com>
13507 * ravenscar-thread.c
13508 (ravenscar_thread_target::update_thread_list): Don't call
13509 ada_build_task_list.
13510 * ada-lang.h (ada_build_task_list): Don't declare.
13511 * ada-tasks.c (struct ada_tasks_inferior_data)
13512 <task_list_valid_p>: Now bool.
13513 (read_known_tasks, ada_task_list_changed)
13514 (ada_tasks_invalidate_inferior_data): Update.
13515 (read_known_tasks_array): Return bool.
13516 (read_known_tasks_list): Likewise.
13517 (read_known_tasks): Return void.
13518 (ada_build_task_list): Now static.
13520 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13522 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13523 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13525 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13527 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13528 variant for ada_tasks_pspace_data_handle and
13529 ada_tasks_inferior_data_handle.
13530 (ada_tasks_pspace_data_cleanup): New function.
13531 (ada_tasks_inferior_data_cleanup): New function.
13533 2019-02-17 Tom Tromey <tom@tromey.com>
13535 * macrotab.h (macro_source_fullname): Return a std::string.
13536 * macrotab.c (macro_include, check_for_redefinition)
13537 (macro_undef, macro_lookup_definition, foreach_macro)
13538 (foreach_macro_in_scope): Update.
13539 (macro_source_fullname): Return a std::string.
13540 * macrocmd.c (show_pp_source_pos): Update.
13542 2019-02-17 Tom Tromey <tom@tromey.com>
13544 * macrocmd.c (show_pp_source_pos): Style the file names.
13546 2019-02-17 Tom Tromey <tom@tromey.com>
13549 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13551 2019-02-17 Tom Tromey <tom@tromey.com>
13553 * ada-lang.c (user_select_syms): Use filtered printing.
13554 * utils.c (wrap_style): New global.
13555 (desired_style): Remove.
13556 (emit_style_escape): Add stream parameter.
13557 (set_output_style, reset_terminal_style, prompt_for_continue):
13559 (flush_wrap_buffer): Only flush gdb_stdout.
13560 (wrap_here): Set wrap_style.
13561 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13562 treat escape sequences as a character. Change when wrap buffer is
13564 (fputs_styled): Do not set the output style when the default is
13566 * ui-style.h (struct ui_file_style) <is_default>: New method.
13567 * source.c (print_source_lines_base): Emit escape sequences in one
13570 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13572 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13573 integers and enumeration types.
13575 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13577 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13578 instead of lookup_symbol_in_language
13579 (do_exact_match): New function.
13580 (ada_get_symbol_name_matcher): Return do_exact_match when
13581 doing a verbatim match.
13583 2019-02-15 Tom Tromey <tromey@adacore.com>
13585 * ravenscar-thread.c (ravenscar_thread_target::resume)
13586 (ravenscar_thread_target::wait): Special case wildcard requests.
13588 2019-02-15 Tom Tromey <tromey@adacore.com>
13590 * ravenscar-thread.c (base_ptid): Remove.
13591 (struct ravenscar_thread_target) <close>: New method.
13592 <m_base_ptid>: New member.
13593 <update_inferior_ptid, active_task, task_is_currently_active,
13594 runtime_initialized>: Declare methods.
13595 <ravenscar_thread_target>: Add constructor.
13596 (ravenscar_thread_target::task_is_currently_active)
13597 (ravenscar_thread_target::update_inferior_ptid)
13598 (ravenscar_runtime_initialized): Rename. Now methods.
13599 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13600 (ravenscar_thread_target::update_thread_list): Update.
13601 (ravenscar_thread_target::active_task): Now method.
13602 (ravenscar_thread_target::store_registers)
13603 (ravenscar_thread_target::prepare_to_store)
13604 (ravenscar_thread_target::prepare_to_store)
13605 (ravenscar_thread_target::mourn_inferior): Update.
13606 (ravenscar_inferior_created): Use "new" to create target.
13607 (ravenscar_thread_target::get_ada_task_ptid): Update.
13608 (_initialize_ravenscar): Don't initialize base_ptid.
13609 (ravenscar_ops): Remove global.
13611 2019-02-15 Tom Tromey <tromey@adacore.com>
13613 * target.h (push_target): Declare new overload.
13614 * target.c (push_target): New overload, taking an rvalue reference.
13615 * remote.c (remote_target::open_1): Use push_target overload.
13616 * corelow.c (core_target_open): Use push_target overload.
13618 2019-02-15 Tom Tromey <tromey@adacore.com>
13620 * ravenscar-thread.c (is_ravenscar_task)
13621 (ravenscar_task_is_currently_active): Return bool.
13622 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13623 (_initialize_ravenscar): Remove "(void)".
13624 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13627 2019-02-15 Tom Tromey <tromey@adacore.com>
13629 * ravenscar-thread.c (ravenscar_runtime_initializer)
13630 (has_ravenscar_runtime, get_running_thread_id)
13631 (ravenscar_thread_target::resume): Fix indentation.
13633 2019-02-15 Tom Tromey <tromey@adacore.com>
13635 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13636 from ravenscar_arch_ops.
13637 (sparc_ravenscar_ops::fetch_registers)
13638 (sparc_ravenscar_ops::store_registers): Now methods.
13639 (sparc_ravenscar_prepare_to_store): Remove.
13640 (sparc_ravenscar_ops): Redefine.
13641 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13642 methods and destructor. Remove members.
13643 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13644 (ravenscar_thread_target::store_registers)
13645 (ravenscar_thread_target::prepare_to_store): Update.
13646 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13648 (struct ppc_ravenscar_powerpc_ops): Derive from
13649 ravenscar_arch_ops.
13650 (ppc_ravenscar_powerpc_ops::fetch_registers)
13651 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13652 (ppc_ravenscar_powerpc_ops): Redefine.
13653 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13654 (ppc_ravenscar_e500_ops::fetch_registers)
13655 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13656 (ppc_ravenscar_e500_ops): Redefine.
13657 * aarch64-ravenscar-thread.c
13658 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13659 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13660 (aarch64_ravenscar_fetch_registers)
13661 (aarch64_ravenscar_store_registers): Now methods.
13662 (aarch64_ravenscar_ops): Redefine.
13664 2019-02-15 Tom Tromey <tromey@adacore.com>
13666 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13667 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13668 (ravenscar_thread_target::stopped_by_watchpoint)
13669 (ravenscar_thread_target::stopped_data_address)
13670 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13672 2019-02-15 Tom Tromey <tromey@adacore.com>
13674 * ravenscar-thread.c: Fix some typos.
13676 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13677 Tom Tromey <tromey@adacore.com>
13679 * ada-lang.c (ada_exception_sal): Change addr_string to a
13681 (create_ada_exception_catchpoint): Update.
13683 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13684 Tom Tromey <tromey@adacore.com>
13686 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13687 (bp_location_ops): Remove.
13688 (base_breakpoint_allocate_location): Update.
13689 (free_bp_location): Update.
13690 * ada-lang.c (class ada_catchpoint_location)
13691 <ada_catchpoint_location>: Remove ops parameter.
13692 (ada_catchpoint_location_dtor): Remove.
13693 (ada_catchpoint_location_ops): Remove.
13694 (allocate_location_exception): Update.
13695 * breakpoint.h (struct bp_location_ops): Remove.
13696 (class bp_location) <bp_location>: Remove bp_location_ops
13698 <~bp_location>: Add destructor.
13701 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13702 Pedro Alves <palves@redhat.com>
13704 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13707 2019-02-14 David Michael <fedora.dm0@gmail.com>
13708 Samuel Thibault <samuel.thibault@gnu.org>
13709 Thomas Schwinge <thomas@codesourcery.com>
13711 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13712 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13714 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13716 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13717 (check_empty): Use "const char *".
13719 * gnu-nat.c (gnu_nat_target::detach): Instead of
13720 'detach_inferior (pid)' call
13721 'detach_inferior (find_inferior_pid (pid))'.
13723 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13724 'nat/fork-inferior.o'.
13725 * gnu-nat.c: #include "nat/fork-inferior.h".
13727 * gnu-nat.c (gnu_nat_target::detach): Instead of
13728 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13729 * gnu-nat.h: #include "inf-child.h".
13730 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13731 'i386_gnu_nat_target::fetch_registers'.
13732 (gnu_store_registers): Rename/move to
13733 'i386_gnu_nat_target::store_registers'.
13735 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13736 * gnu-nat.h (mach_thread_info): New function.
13737 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13739 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13741 2019-02-14 Frederic Konrad <konrad@adacore.com>
13743 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13745 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13747 * windows-nat.c (windows_add_thread): Add new parameter
13748 "main_thread_p" with default value set to false. Update
13749 function documentation as well as all callers.
13750 (windows_delete_thread): Likewise.
13751 (fake_create_process): Update call to windows_add_thread.
13752 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13753 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13754 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13755 call to windows_delete_thread.
13757 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13759 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13761 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13763 * symfile.c (find_separate_debug_file): Use canonical path of
13764 sysroot with child_path instead of gdb_sysroot if it is valid.
13766 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13768 * symfile.c (find_separate_debug_file): Use child_path to
13769 determine if an object file is under a sysroot.
13771 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13773 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13774 unittests/child-path-selftests.c.
13775 * common/pathstuff.c (child_path): New function.
13776 * common/pathstuff.h (child_path): New prototype.
13777 * unittests/child-path-selftests.c: New file.
13779 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13781 * symfile.c (find_separate_debug_file): Look for separate debug
13782 files in debug directories under the sysroot.
13784 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13786 * symtab.h (struct minimal_symbol data_p): New const method.
13787 (struct minimal_symbol text_p): Likewise.
13788 * symtab.c (output_source_filename): Use file name style
13789 to print file name.
13790 (print_symbol_info): Likewise.
13791 (print_msymbol_info): Use address style to print addresses.
13792 Use function name style to print executable text symbols.
13793 (expand_symtab_containing_pc): Use data_p.
13794 (find_pc_sect_compunit_symtab): Likewise.
13796 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13798 * breakpoint.c (describe_other_breakpoints): Use address style
13799 to print addresses.
13800 (say_where): Likewise.
13802 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13804 * ada-typeprint.c (print_func_type): Print function name
13805 style to print function name.
13806 * c-typeprint.c (c_print_type_1): Likewise.
13808 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13810 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13813 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13815 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13818 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13820 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13821 TYPE_CODE_REF types.
13823 2019-02-08 Jim Wilson <jimw@sifive.com>
13825 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13826 (riscv_linux_fregset): New.
13827 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13829 2019-02-07 Tom Tromey <tom@tromey.com>
13831 * thread.c (thread_cancel_execution_command): Update.
13832 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13834 (struct thread_fsm_ops): Remove.
13835 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13836 (thread_fsm_should_stop, thread_fsm_return_value)
13837 (thread_fsm_set_finished, thread_fsm_finished_p)
13838 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13840 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13841 * infrun.c (clear_proceed_status_thread)
13842 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13843 (print_stop_event): Update.
13844 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13846 (step_command_fsm_ops): Remove.
13847 (new_step_command_fsm): Remove.
13849 (step_command_fsm::should_stop): Rename from
13850 step_command_fsm_should_stop.
13851 (step_command_fsm::clean_up): Rename from
13852 step_command_fsm_clean_up.
13853 (step_command_fsm::do_async_reply_reason): Rename from
13854 step_command_fsm_async_reply_reason.
13855 (struct until_next_fsm): Inherit from thread_fsm. Add
13857 (until_next_fsm_ops): Remove.
13858 (new_until_next_fsm): Remove.
13859 (until_next_fsm::should_stop): Rename from
13860 until_next_fsm_should_stop.
13861 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13862 (until_next_fsm::do_async_reply_reason): Rename from
13863 until_next_fsm_async_reply_reason.
13864 (struct finish_command_fsm): Inherit from thread_fsm. Add
13865 constructor. Change type of breakpoint.
13866 (finish_command_fsm_ops): Remove.
13867 (new_finish_command_fsm): Remove.
13868 (finish_command_fsm::should_stop): Rename from
13869 finish_command_fsm_should_stop.
13870 (finish_command_fsm::clean_up): Rename from
13871 finish_command_fsm_clean_up.
13872 (finish_command_fsm::return_value): Rename from
13873 finish_command_fsm_return_value.
13874 (finish_command_fsm::do_async_reply_reason): Rename from
13875 finish_command_fsm_async_reply_reason.
13876 (finish_command): Update.
13877 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13879 (call_thread_fsm_ops): Remove.
13880 (call_thread_fsm::call_thread_fsm): Rename from
13881 new_call_thread_fsm.
13882 (call_thread_fsm::should_stop): Rename from
13883 call_thread_fsm_should_stop.
13884 (call_thread_fsm::should_notify_stop): Rename from
13885 call_thread_fsm_should_notify_stop.
13886 (run_inferior_call, call_function_by_hand_dummy): Update.
13887 * cli/cli-interp.c (should_print_stop_to_console): Update.
13888 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13889 Add constructor. Change type of location_breakpoint,
13891 (until_break_fsm_ops): Remove.
13892 (new_until_break_fsm): Remove.
13893 (until_break_fsm::should_stop): Rename from
13894 until_break_fsm_should_stop.
13895 (until_break_fsm::clean_up): Rename from
13896 until_break_fsm_clean_up.
13897 (until_break_fsm::do_async_reply_reason): Rename from
13898 until_break_fsm_async_reply_reason.
13899 (until_break_command): Update.
13900 * thread-fsm.c: Remove.
13901 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13903 2019-02-07 Tom Tromey <tom@tromey.com>
13905 * yy-remap.h: Add include guard.
13906 * xtensa-tdep.h: Add include guard.
13907 * xcoffread.h: Rename include guard.
13908 * varobj-iter.h: Add include guard.
13909 * tui/tui.h: Rename include guard.
13910 * tui/tui-winsource.h: Rename include guard.
13911 * tui/tui-wingeneral.h: Rename include guard.
13912 * tui/tui-windata.h: Rename include guard.
13913 * tui/tui-win.h: Rename include guard.
13914 * tui/tui-stack.h: Rename include guard.
13915 * tui/tui-source.h: Rename include guard.
13916 * tui/tui-regs.h: Rename include guard.
13917 * tui/tui-out.h: Rename include guard.
13918 * tui/tui-layout.h: Rename include guard.
13919 * tui/tui-io.h: Rename include guard.
13920 * tui/tui-hooks.h: Rename include guard.
13921 * tui/tui-file.h: Rename include guard.
13922 * tui/tui-disasm.h: Rename include guard.
13923 * tui/tui-data.h: Rename include guard.
13924 * tui/tui-command.h: Rename include guard.
13925 * tic6x-tdep.h: Add include guard.
13926 * target/waitstatus.h: Rename include guard.
13927 * target/wait.h: Rename include guard.
13928 * target/target.h: Rename include guard.
13929 * target/resume.h: Rename include guard.
13930 * target-float.h: Rename include guard.
13931 * stabsread.h: Add include guard.
13932 * rs6000-tdep.h: Add include guard.
13933 * riscv-fbsd-tdep.h: Add include guard.
13934 * regformats/regdef.h: Rename include guard.
13935 * record.h: Rename include guard.
13936 * python/python.h: Rename include guard.
13937 * python/python-internal.h: Rename include guard.
13938 * python/py-stopevent.h: Rename include guard.
13939 * python/py-ref.h: Rename include guard.
13940 * python/py-record.h: Rename include guard.
13941 * python/py-record-full.h: Rename include guard.
13942 * python/py-record-btrace.h: Rename include guard.
13943 * python/py-instruction.h: Rename include guard.
13944 * python/py-events.h: Rename include guard.
13945 * python/py-event.h: Rename include guard.
13946 * procfs.h: Add include guard.
13947 * proc-utils.h: Add include guard.
13948 * p-lang.h: Add include guard.
13949 * or1k-tdep.h: Rename include guard.
13950 * observable.h: Rename include guard.
13951 * nto-tdep.h: Rename include guard.
13952 * nat/x86-linux.h: Rename include guard.
13953 * nat/x86-linux-dregs.h: Rename include guard.
13954 * nat/x86-gcc-cpuid.h: Add include guard.
13955 * nat/x86-dregs.h: Rename include guard.
13956 * nat/x86-cpuid.h: Rename include guard.
13957 * nat/ppc-linux.h: Rename include guard.
13958 * nat/mips-linux-watch.h: Rename include guard.
13959 * nat/linux-waitpid.h: Rename include guard.
13960 * nat/linux-ptrace.h: Rename include guard.
13961 * nat/linux-procfs.h: Rename include guard.
13962 * nat/linux-osdata.h: Rename include guard.
13963 * nat/linux-nat.h: Rename include guard.
13964 * nat/linux-namespaces.h: Rename include guard.
13965 * nat/linux-btrace.h: Rename include guard.
13966 * nat/glibc_thread_db.h: Rename include guard.
13967 * nat/gdb_thread_db.h: Rename include guard.
13968 * nat/gdb_ptrace.h: Rename include guard.
13969 * nat/fork-inferior.h: Rename include guard.
13970 * nat/amd64-linux-siginfo.h: Rename include guard.
13971 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13972 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13973 * nat/aarch64-linux.h: Rename include guard.
13974 * nat/aarch64-linux-hw-point.h: Rename include guard.
13975 * mn10300-tdep.h: Add include guard.
13976 * mips-linux-tdep.h: Add include guard.
13977 * mi/mi-parse.h: Rename include guard.
13978 * mi/mi-out.h: Rename include guard.
13979 * mi/mi-main.h: Rename include guard.
13980 * mi/mi-interp.h: Rename include guard.
13981 * mi/mi-getopt.h: Rename include guard.
13982 * mi/mi-console.h: Rename include guard.
13983 * mi/mi-common.h: Rename include guard.
13984 * mi/mi-cmds.h: Rename include guard.
13985 * mi/mi-cmd-break.h: Rename include guard.
13986 * m2-lang.h: Add include guard.
13987 * location.h: Rename include guard.
13988 * linux-record.h: Rename include guard.
13989 * linux-nat.h: Add include guard.
13990 * linux-fork.h: Add include guard.
13991 * i386-darwin-tdep.h: Rename include guard.
13992 * hppa-linux-offsets.h: Add include guard.
13993 * guile/guile.h: Rename include guard.
13994 * guile/guile-internal.h: Rename include guard.
13995 * gnu-nat.h: Rename include guard.
13996 * gdb-stabs.h: Rename include guard.
13997 * frv-tdep.h: Add include guard.
13998 * f-lang.h: Add include guard.
13999 * event-loop.h: Add include guard.
14000 * darwin-nat.h: Rename include guard.
14001 * cp-abi.h: Rename include guard.
14002 * config/sparc/nm-sol2.h: Rename include guard.
14003 * config/nm-nto.h: Rename include guard.
14004 * config/nm-linux.h: Add include guard.
14005 * config/i386/nm-i386gnu.h: Rename include guard.
14006 * config/djgpp/nl_types.h: Rename include guard.
14007 * config/djgpp/langinfo.h: Rename include guard.
14008 * compile/gcc-cp-plugin.h: Add include guard.
14009 * compile/gcc-c-plugin.h: Add include guard.
14010 * compile/compile.h: Rename include guard.
14011 * compile/compile-object-run.h: Rename include guard.
14012 * compile/compile-object-load.h: Rename include guard.
14013 * compile/compile-internal.h: Rename include guard.
14014 * compile/compile-cplus.h: Rename include guard.
14015 * compile/compile-c.h: Rename include guard.
14016 * common/xml-utils.h: Rename include guard.
14017 * common/x86-xstate.h: Rename include guard.
14018 * common/version.h: Rename include guard.
14019 * common/vec.h: Rename include guard.
14020 * common/tdesc.h: Rename include guard.
14021 * common/selftest.h: Rename include guard.
14022 * common/scoped_restore.h: Rename include guard.
14023 * common/scoped_mmap.h: Rename include guard.
14024 * common/scoped_fd.h: Rename include guard.
14025 * common/safe-iterator.h: Rename include guard.
14026 * common/run-time-clock.h: Rename include guard.
14027 * common/refcounted-object.h: Rename include guard.
14028 * common/queue.h: Rename include guard.
14029 * common/ptid.h: Rename include guard.
14030 * common/print-utils.h: Rename include guard.
14031 * common/preprocessor.h: Rename include guard.
14032 * common/pathstuff.h: Rename include guard.
14033 * common/observable.h: Rename include guard.
14034 * common/netstuff.h: Rename include guard.
14035 * common/job-control.h: Rename include guard.
14036 * common/host-defs.h: Rename include guard.
14037 * common/gdb_wait.h: Rename include guard.
14038 * common/gdb_vecs.h: Rename include guard.
14039 * common/gdb_unlinker.h: Rename include guard.
14040 * common/gdb_unique_ptr.h: Rename include guard.
14041 * common/gdb_tilde_expand.h: Rename include guard.
14042 * common/gdb_sys_time.h: Rename include guard.
14043 * common/gdb_string_view.h: Rename include guard.
14044 * common/gdb_splay_tree.h: Rename include guard.
14045 * common/gdb_setjmp.h: Rename include guard.
14046 * common/gdb_ref_ptr.h: Rename include guard.
14047 * common/gdb_optional.h: Rename include guard.
14048 * common/gdb_locale.h: Rename include guard.
14049 * common/gdb_assert.h: Rename include guard.
14050 * common/filtered-iterator.h: Rename include guard.
14051 * common/filestuff.h: Rename include guard.
14052 * common/fileio.h: Rename include guard.
14053 * common/environ.h: Rename include guard.
14054 * common/common-utils.h: Rename include guard.
14055 * common/common-types.h: Rename include guard.
14056 * common/common-regcache.h: Rename include guard.
14057 * common/common-inferior.h: Rename include guard.
14058 * common/common-gdbthread.h: Rename include guard.
14059 * common/common-exceptions.h: Rename include guard.
14060 * common/common-defs.h: Rename include guard.
14061 * common/common-debug.h: Rename include guard.
14062 * common/cleanups.h: Rename include guard.
14063 * common/buffer.h: Rename include guard.
14064 * common/btrace-common.h: Rename include guard.
14065 * common/break-common.h: Rename include guard.
14066 * cli/cli-utils.h: Rename include guard.
14067 * cli/cli-style.h: Rename include guard.
14068 * cli/cli-setshow.h: Rename include guard.
14069 * cli/cli-script.h: Rename include guard.
14070 * cli/cli-interp.h: Rename include guard.
14071 * cli/cli-decode.h: Rename include guard.
14072 * cli/cli-cmds.h: Rename include guard.
14073 * charset-list.h: Add include guard.
14074 * buildsym-legacy.h: Rename include guard.
14075 * bfin-tdep.h: Add include guard.
14076 * ax.h: Rename include guard.
14077 * arm-linux-tdep.h: Add include guard.
14078 * arm-fbsd-tdep.h: Add include guard.
14079 * arch/xtensa.h: Rename include guard.
14080 * arch/tic6x.h: Add include guard.
14081 * arch/i386.h: Add include guard.
14082 * arch/arm.h: Rename include guard.
14083 * arch/arm-linux.h: Rename include guard.
14084 * arch/arm-get-next-pcs.h: Rename include guard.
14085 * arch/amd64.h: Add include guard.
14086 * arch/aarch64-insn.h: Rename include guard.
14087 * arch-utils.h: Rename include guard.
14088 * annotate.h: Add include guard.
14089 * amd64-darwin-tdep.h: Rename include guard.
14090 * aarch64-linux-tdep.h: Add include guard.
14091 * aarch64-fbsd-tdep.h: Add include guard.
14092 * aarch32-linux-nat.h: Add include guard.
14094 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14096 * macrotab.c (macro_define_internal): New function that
14097 factorizes macro_define_object_internal and macro_define_function
14099 (macro_define_object_internal): Use macro_define_internal.
14100 (macro_define_function): Likewise.
14102 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14104 * macrocmd.c (extract_identifier): Return
14105 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14108 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14110 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14112 2019-02-05 Tom Tromey <tom@tromey.com>
14114 * target.c (target_stack::unpush): Move assertion earlier.
14116 2019-01-30 Tom Tromey <tom@tromey.com>
14119 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14120 (gdbpy_parse_and_eval): Likewise.
14121 * python/python-internal.h (gdbpy_allow_threads): New class.
14123 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14125 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14126 (aarch64_fbsd_fpregmap): Move earlier.
14127 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14128 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14129 instead of individual calls to trad_frame_set_reg_addr.
14130 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14132 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14133 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14134 instead of individual calls to trad_frame_set_reg_addr.
14136 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14138 * CONTRIBUTE: Replace contribution list with wiki link.
14140 2019-01-25 Tom Tromey <tom@tromey.com>
14142 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14144 2019-01-25 Tom Tromey <tom@tromey.com>
14146 * xtensa-linux-nat.c: Fix common/ includes.
14147 * xml-support.h: Fix common/ includes.
14148 * xml-support.c: Fix common/ includes.
14149 * x86-linux-nat.c: Fix common/ includes.
14150 * windows-nat.c: Fix common/ includes.
14151 * varobj.h: Fix common/ includes.
14152 * varobj.c: Fix common/ includes.
14153 * value.c: Fix common/ includes.
14154 * valops.c: Fix common/ includes.
14155 * utils.c: Fix common/ includes.
14156 * unittests/xml-utils-selftests.c: Fix common/ includes.
14157 * unittests/utils-selftests.c: Fix common/ includes.
14158 * unittests/unpack-selftests.c: Fix common/ includes.
14159 * unittests/tracepoint-selftests.c: Fix common/ includes.
14160 * unittests/style-selftests.c: Fix common/ includes.
14161 * unittests/string_view-selftests.c: Fix common/ includes.
14162 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14163 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14164 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14165 * unittests/rsp-low-selftests.c: Fix common/ includes.
14166 * unittests/parse-connection-spec-selftests.c: Fix common/
14168 * unittests/optional-selftests.c: Fix common/ includes.
14169 * unittests/offset-type-selftests.c: Fix common/ includes.
14170 * unittests/observable-selftests.c: Fix common/ includes.
14171 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14172 * unittests/memrange-selftests.c: Fix common/ includes.
14173 * unittests/memory-map-selftests.c: Fix common/ includes.
14174 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14175 * unittests/function-view-selftests.c: Fix common/ includes.
14176 * unittests/environ-selftests.c: Fix common/ includes.
14177 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14178 * unittests/common-utils-selftests.c: Fix common/ includes.
14179 * unittests/cli-utils-selftests.c: Fix common/ includes.
14180 * unittests/array-view-selftests.c: Fix common/ includes.
14181 * ui-file.c: Fix common/ includes.
14182 * tui/tui-io.c: Fix common/ includes.
14183 * tracepoint.h: Fix common/ includes.
14184 * tracepoint.c: Fix common/ includes.
14185 * tracefile-tfile.c: Fix common/ includes.
14186 * top.h: Fix common/ includes.
14187 * top.c: Fix common/ includes.
14188 * thread.c: Fix common/ includes.
14189 * target/waitstatus.h: Fix common/ includes.
14190 * target/waitstatus.c: Fix common/ includes.
14191 * target.h: Fix common/ includes.
14192 * target.c: Fix common/ includes.
14193 * target-memory.c: Fix common/ includes.
14194 * target-descriptions.c: Fix common/ includes.
14195 * symtab.h: Fix common/ includes.
14196 * symfile.c: Fix common/ includes.
14197 * stap-probe.c: Fix common/ includes.
14198 * spu-linux-nat.c: Fix common/ includes.
14199 * sparc-nat.c: Fix common/ includes.
14200 * source.c: Fix common/ includes.
14201 * solib.c: Fix common/ includes.
14202 * solib-target.c: Fix common/ includes.
14203 * ser-unix.c: Fix common/ includes.
14204 * ser-tcp.c: Fix common/ includes.
14205 * ser-pipe.c: Fix common/ includes.
14206 * ser-base.c: Fix common/ includes.
14207 * selftest-arch.c: Fix common/ includes.
14208 * s12z-tdep.c: Fix common/ includes.
14209 * rust-exp.y: Fix common/ includes.
14210 * rs6000-aix-tdep.c: Fix common/ includes.
14211 * riscv-tdep.c: Fix common/ includes.
14212 * remote.c: Fix common/ includes.
14213 * remote-notif.h: Fix common/ includes.
14214 * remote-fileio.h: Fix common/ includes.
14215 * remote-fileio.c: Fix common/ includes.
14216 * regcache.h: Fix common/ includes.
14217 * regcache.c: Fix common/ includes.
14218 * record-btrace.c: Fix common/ includes.
14219 * python/python.c: Fix common/ includes.
14220 * python/py-type.c: Fix common/ includes.
14221 * python/py-inferior.c: Fix common/ includes.
14222 * progspace.h: Fix common/ includes.
14223 * producer.c: Fix common/ includes.
14224 * procfs.c: Fix common/ includes.
14225 * proc-api.c: Fix common/ includes.
14226 * printcmd.c: Fix common/ includes.
14227 * ppc-linux-nat.c: Fix common/ includes.
14228 * parser-defs.h: Fix common/ includes.
14229 * osdata.c: Fix common/ includes.
14230 * obsd-nat.c: Fix common/ includes.
14231 * nat/x86-linux.c: Fix common/ includes.
14232 * nat/x86-linux-dregs.c: Fix common/ includes.
14233 * nat/x86-dregs.h: Fix common/ includes.
14234 * nat/x86-dregs.c: Fix common/ includes.
14235 * nat/ppc-linux.c: Fix common/ includes.
14236 * nat/mips-linux-watch.h: Fix common/ includes.
14237 * nat/mips-linux-watch.c: Fix common/ includes.
14238 * nat/linux-waitpid.c: Fix common/ includes.
14239 * nat/linux-ptrace.h: Fix common/ includes.
14240 * nat/linux-ptrace.c: Fix common/ includes.
14241 * nat/linux-procfs.c: Fix common/ includes.
14242 * nat/linux-personality.c: Fix common/ includes.
14243 * nat/linux-osdata.c: Fix common/ includes.
14244 * nat/linux-namespaces.c: Fix common/ includes.
14245 * nat/linux-btrace.h: Fix common/ includes.
14246 * nat/linux-btrace.c: Fix common/ includes.
14247 * nat/fork-inferior.c: Fix common/ includes.
14248 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14249 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14250 * nat/aarch64-linux.c: Fix common/ includes.
14251 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14252 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14253 * namespace.h: Fix common/ includes.
14254 * mips-linux-tdep.c: Fix common/ includes.
14255 * minsyms.c: Fix common/ includes.
14256 * mi/mi-parse.h: Fix common/ includes.
14257 * mi/mi-main.c: Fix common/ includes.
14258 * mi/mi-cmd-env.c: Fix common/ includes.
14259 * memrange.h: Fix common/ includes.
14260 * memattr.c: Fix common/ includes.
14261 * maint.h: Fix common/ includes.
14262 * maint.c: Fix common/ includes.
14263 * main.c: Fix common/ includes.
14264 * machoread.c: Fix common/ includes.
14265 * location.c: Fix common/ includes.
14266 * linux-thread-db.c: Fix common/ includes.
14267 * linux-nat.c: Fix common/ includes.
14268 * linux-fork.c: Fix common/ includes.
14269 * inline-frame.c: Fix common/ includes.
14270 * infrun.c: Fix common/ includes.
14271 * inflow.c: Fix common/ includes.
14272 * inferior.h: Fix common/ includes.
14273 * inferior.c: Fix common/ includes.
14274 * infcmd.c: Fix common/ includes.
14275 * inf-ptrace.c: Fix common/ includes.
14276 * inf-child.c: Fix common/ includes.
14277 * ia64-linux-nat.c: Fix common/ includes.
14278 * i387-tdep.c: Fix common/ includes.
14279 * i386-tdep.c: Fix common/ includes.
14280 * i386-linux-tdep.c: Fix common/ includes.
14281 * i386-linux-nat.c: Fix common/ includes.
14282 * i386-go32-tdep.c: Fix common/ includes.
14283 * i386-fbsd-tdep.c: Fix common/ includes.
14284 * i386-fbsd-nat.c: Fix common/ includes.
14285 * guile/scm-type.c: Fix common/ includes.
14286 * guile/guile.c: Fix common/ includes.
14287 * go32-nat.c: Fix common/ includes.
14288 * gnu-nat.c: Fix common/ includes.
14289 * gdbthread.h: Fix common/ includes.
14290 * gdbarch-selftests.c: Fix common/ includes.
14291 * gdb_usleep.c: Fix common/ includes.
14292 * gdb_select.h: Fix common/ includes.
14293 * gdb_bfd.c: Fix common/ includes.
14294 * gcore.c: Fix common/ includes.
14295 * fork-child.c: Fix common/ includes.
14296 * findvar.c: Fix common/ includes.
14297 * fbsd-nat.c: Fix common/ includes.
14298 * event-top.c: Fix common/ includes.
14299 * event-loop.c: Fix common/ includes.
14300 * dwarf2read.c: Fix common/ includes.
14301 * dwarf2loc.c: Fix common/ includes.
14302 * dwarf2-frame.c: Fix common/ includes.
14303 * dwarf-index-cache.c: Fix common/ includes.
14304 * dtrace-probe.c: Fix common/ includes.
14305 * disasm-selftests.c: Fix common/ includes.
14306 * defs.h: Fix common/ includes.
14307 * csky-tdep.c: Fix common/ includes.
14308 * cp-valprint.c: Fix common/ includes.
14309 * cp-support.h: Fix common/ includes.
14310 * cp-support.c: Fix common/ includes.
14311 * corelow.c: Fix common/ includes.
14312 * completer.h: Fix common/ includes.
14313 * completer.c: Fix common/ includes.
14314 * compile/compile.c: Fix common/ includes.
14315 * compile/compile-loc2c.c: Fix common/ includes.
14316 * compile/compile-cplus-types.c: Fix common/ includes.
14317 * compile/compile-cplus-symbols.c: Fix common/ includes.
14318 * command.h: Fix common/ includes.
14319 * cli/cli-dump.c: Fix common/ includes.
14320 * cli/cli-cmds.c: Fix common/ includes.
14321 * charset.c: Fix common/ includes.
14322 * build-id.c: Fix common/ includes.
14323 * btrace.h: Fix common/ includes.
14324 * btrace.c: Fix common/ includes.
14325 * breakpoint.h: Fix common/ includes.
14326 * breakpoint.c: Fix common/ includes.
14328 (enum agent_op): Fix common/ includes.
14329 * ax-general.c (struct aop_map): Fix common/ includes.
14330 * ax-gdb.c: Fix common/ includes.
14331 * auxv.c: Fix common/ includes.
14332 * auto-load.c: Fix common/ includes.
14333 * arm-tdep.c: Fix common/ includes.
14334 * arch/riscv.c: Fix common/ includes.
14335 * arch/ppc-linux-common.c: Fix common/ includes.
14336 * arch/i386.c: Fix common/ includes.
14337 * arch/arm.c: Fix common/ includes.
14338 * arch/arm-linux.c: Fix common/ includes.
14339 * arch/arm-get-next-pcs.c: Fix common/ includes.
14340 * arch/amd64.c: Fix common/ includes.
14341 * arch/aarch64.c: Fix common/ includes.
14342 * arch/aarch64-insn.c: Fix common/ includes.
14343 * arch-utils.c: Fix common/ includes.
14344 * amd64-windows-tdep.c: Fix common/ includes.
14345 * amd64-tdep.c: Fix common/ includes.
14346 * amd64-sol2-tdep.c: Fix common/ includes.
14347 * amd64-obsd-tdep.c: Fix common/ includes.
14348 * amd64-nbsd-tdep.c: Fix common/ includes.
14349 * amd64-linux-tdep.c: Fix common/ includes.
14350 * amd64-linux-nat.c: Fix common/ includes.
14351 * amd64-fbsd-tdep.c: Fix common/ includes.
14352 * amd64-fbsd-nat.c: Fix common/ includes.
14353 * amd64-dicos-tdep.c: Fix common/ includes.
14354 * amd64-darwin-tdep.c: Fix common/ includes.
14355 * agent.c: Fix common/ includes.
14356 * ada-lang.h: Fix common/ includes.
14357 * ada-lang.c: Fix common/ includes.
14358 * aarch64-tdep.c: Fix common/ includes.
14360 2019-01-25 Tom Tromey <tom@tromey.com>
14362 * common/create-version.sh: Use common/version.h.
14364 2019-01-24 Pedro Alves <palves@redhat.com>
14366 * infrun.c (signal_stop, signal_print, signal_program)
14367 (signal_catch, signal_pass): Now arrays instead of pointers.
14368 (update_signals_program_target, do_target_resume)
14369 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14370 * linux-nat.c (linux_nat_target::pass_signals)
14371 (linux_nat_target::create_inferior, linux_nat_target::attach):
14373 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14374 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14375 * procfs.c (procfs_target::pass_signals): Adjust.
14376 * record-full.c (record_full_target::resume): Adjust.
14377 * remote.c (remote_target::pass_signals)
14378 (remote_target::program_signals): Adjust.
14379 * target-debug.h (target_debug_print_signals): Now takes a
14380 gdb::array_view as parameter. Adjust.
14381 * target.h (target_ops) <pass_signals, program_signals>: Replace
14382 pointer and length parameters with gdb::array_view.
14383 (target_pass_signals, target_program_signals): Likewise.
14384 * target-delegates.c: Regenerate.
14386 2019-01-24 Pedro Alves <palves@redhat.com>
14388 * common/forward-scope-exit.h
14389 (forward_scope_exit::forward_scope_exit): Pass arguments to
14390 m_bind_function directly, instead of creating a std::bind and
14393 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14395 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14396 for static members.
14397 (pass_in_v_vfp_candidate): Likewise.
14399 2019-01-23 Tom Tromey <tom@tromey.com>
14400 Pedro Alves <palves@redhat.com>
14402 * regcache.c (class regcache_invalidator): Remove.
14403 (regcache::raw_write): Use make_scope_exit.
14405 2019-01-23 Tom Tromey <tom@tromey.com>
14407 * ui-out.h (class ui_out_emit_type): Update comment.
14409 2019-01-23 Tom Tromey <tom@tromey.com>
14411 * infrun.c (fetch_inferior_event): Update comment.
14413 2019-01-23 Tom Tromey <tom@tromey.com>
14414 Pedro Alves <palves@redhat.com>
14416 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14418 (fetch_inferior_event): Use SCOPE_EXIT.
14421 2019-01-23 Tom Tromey <tom@tromey.com>
14422 Pedro Alves <palves@redhat.com>
14424 * infrun.c (disable_thread_events): Delete.
14425 (stop_all_threads): Use SCOPE_EXIT.
14427 2019-01-23 Tom Tromey <tom@tromey.com>
14428 Pedro Alves <palves@redhat.com>
14430 * symfile.c: Include forward-scope-exit.h.
14431 (clear_symtab_users_cleanup): Replace forward declaration with
14432 a FORWARD_SCOPE_EXIT.
14433 (syms_from_objfile_1): Use the forward_scope_exit and
14434 gdb::optional instead of cleanup_function.
14435 (reread_symbols): Use the forward_scope_exit instead of
14437 (clear_symtab_users_cleanup): Remove function.
14439 2019-01-23 Tom Tromey <tom@tromey.com>
14440 Pedro Alves <palves@redhat.com>
14442 * linux-nat.c: Include scope-exit.h.
14443 (cleanup_target_stop): Remove.
14444 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14447 2019-01-23 Tom Tromey <tom@tromey.com>
14448 Pedro Alves <palves@redhat.com>
14450 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14451 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14453 2019-01-23 Tom Tromey <tom@tromey.com>
14454 Andrew Burgess <andrew.burgess@embecosm.com>
14455 Pedro Alves <palves@redhat.com>
14457 * infrun.c (fetch_inferior_event): Use scope_exit.
14458 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14459 * top.c (execute_command): Use scope_exit.
14460 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14461 * utils.c (do_bpstat_clear_actions_cleanup)
14462 (make_bpstat_clear_actions_cleanup): Remove.
14464 2019-01-23 Tom Tromey <tom@tromey.com>
14465 Pedro Alves <palves@redhat.com>
14467 * infrun.c: Include "common/scope-exit.h"
14468 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14469 (wait_for_inferior): Use SCOPE_EXIT.
14470 (fetch_inferior_event): Use scope_exit.
14472 2019-01-23 Tom Tromey <tom@tromey.com>
14473 Pedro Alves <palves@redhat.com>
14475 * breakpoint.c (create_breakpoint): Remove cleanup.
14477 2019-01-23 Tom Tromey <tom@tromey.com>
14478 Andrew Burgess <andrew.burgess@embecosm.com>
14479 Pedro Alves <palves@redhat.com>
14481 2019-01-23 Pedro Alves <palves@redhat.com>
14483 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14485 2019-01-23 Pedro Alves <palves@redhat.com>
14486 Andrew Burgess <andrew.burgess@embecosm.com>
14488 * gdbthread.h: Include "common/forward-scope-exit.h".
14489 (scoped_finish_thread_state): Redefine custom class in terms of
14490 forward_scope_exit.
14492 2019-01-23 Pedro Alves <palves@redhat.com>
14493 Andrew Burgess <andrew.burgess@embecosm.com>
14495 * common/forward-scope-exit.h: New file.
14497 2019-01-23 Pedro Alves <palves@redhat.com>
14498 Andrew Burgess <andrew.burgess@embecosm.com>
14499 Tom Tromey <tom@tromey.com>
14501 * common/scope-exit.h: New file.
14503 2019-01-23 Pedro Alves <palves@redhat.com>
14505 * common/preprocessor.h (ESC): Rename to ...
14506 (ESC_PARENS): ... this.
14507 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14508 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14510 2019-01-23 Tom Tromey <tom@tromey.com>
14512 * language.h (class scoped_switch_to_sym_language_if_auto):
14513 Initialize m_lang in both cases.
14515 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14517 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14520 2019-01-22 Tom Tromey <tom@tromey.com>
14522 * corelow.c: Do not include sys/file.h.
14524 2019-01-22 Tom Tromey <tom@tromey.com>
14526 * tui/tui-wingeneral.h: Include gdb_curses.h.
14528 2019-01-22 Tom Tromey <tom@tromey.com>
14530 * source-cache.h (class source_cache) <get_source_lines,
14531 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14533 2019-01-22 Tom Tromey <tom@tromey.com>
14535 * remote-fileio.h (struct remote_target): Declare.
14537 2019-01-22 Tom Tromey <tom@tromey.com>
14539 * python/py-arch.c: Do not include py-ref.h.
14540 * python/py-bpevent.c: Do not include py-ref.h.
14541 * python/py-cmd.c: Do not include py-ref.h.
14542 * python/py-continueevent.c: Do not include py-ref.h.
14543 * python/py-event.h: Do not include py-ref.h.
14544 * python/py-evtregistry.c: Do not include py-ref.h.
14545 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14546 * python/py-frame.c: Do not include py-ref.h.
14547 * python/py-framefilter.c: Do not include py-ref.h.
14548 * python/py-function.c: Do not include py-ref.h.
14549 * python/py-infevents.c: Do not include py-ref.h.
14550 * python/py-linetable.c: Do not include py-ref.h.
14551 * python/py-objfile.c: Do not include py-ref.h.
14552 * python/py-param.c: Do not include py-ref.h.
14553 * python/py-prettyprint.c: Do not include py-ref.h.
14554 * python/py-progspace.c: Do not include py-ref.h.
14555 * python/py-symbol.c: Do not include py-ref.h.
14556 * python/py-symtab.c: Do not include py-ref.h.
14557 * python/py-type.c: Do not include py-ref.h.
14558 * python/py-unwind.c: Do not include py-ref.h.
14559 * python/py-utils.c: Do not include py-ref.h.
14560 * python/py-value.c: Do not include py-ref.h.
14561 * python/py-varobj.c: Do not include py-ref.h.
14562 * python/py-xmethods.c: Do not include py-ref.h.
14563 * python/python.c: Do not include py-ref.h.
14564 * varobj.c: Do not include py-ref.h.
14566 2019-01-22 Tom Tromey <tom@tromey.com>
14568 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14569 keyword for bcache.
14571 2019-01-22 Tom Tromey <tom@tromey.com>
14573 * compile/compile-cplus-types.c: Remove a comment by #include.
14575 2019-01-22 Tom Tromey <tom@tromey.com>
14577 * compile/gcc-c-plugin.h: Include compile-internal.h.
14579 2019-01-22 Tom Tromey <tom@tromey.com>
14581 * stabsread.c (EXTERN): Do not define.
14582 (symnum, next_symbol_text_func, processing_gcc_compilation)
14583 (within_function, global_sym_chain, global_stabs)
14584 (previous_stab_code, this_object_header_files)
14585 (n_this_object_header_files)
14586 (n_allocated_this_object_header_files): Define.
14587 * stabsread.h (EXTERN): Never define. Use "extern".
14589 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14591 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14594 2019-01-21 Tom Tromey <tom@tromey.com>
14596 * ui-out.c: Fix includes.
14597 * tui/tui-source.c: Fix includes.
14598 * target.c: Fix includes.
14599 * remote.c: Fix includes.
14600 * regcache.c: Fix includes.
14601 * python/py-block.c: Fix includes.
14602 * printcmd.c: Fix includes.
14603 * or1k-tdep.c: Fix includes.
14604 * mi/mi-main.c: Fix includes.
14605 * m32r-tdep.c: Fix includes.
14606 * csky-tdep.c: Fix includes.
14607 * compile/compile-cplus-types.c: Fix includes.
14608 * cli/cli-interp.c: Fix includes.
14610 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14612 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14615 2019-01-16 Tom Tromey <tom@tromey.com>
14617 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14619 (struct objfile) <msymbols_range>: Move from top level.
14620 <msymbols>: New method.
14621 (class objfile_msymbols): Remove.
14622 * symtab.c (default_collect_symbol_completion_matches_break_on):
14624 * symmisc.c (dump_msymbols): Update.
14625 * stabsread.c (scan_file_globals): Update.
14626 * objc-lang.c (info_selectors_command, info_classes_command)
14627 (find_methods): Update.
14628 * minsyms.c (find_solib_trampoline_target): Update.
14629 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14630 * coffread.c (coff_symfile_read): Update.
14631 * ada-lang.c (ada_lookup_simple_minsym)
14632 (ada_collect_symbol_completion_matches): Update.
14634 2019-01-16 Tom Tromey <tom@tromey.com>
14636 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14637 type. Remove no-argument constructor.
14638 <iterator::operator++>: Simplify.
14640 <end>: Use minimal_symbol_count.
14642 2019-01-16 Tom Tromey <tom@tromey.com>
14644 * objfiles.h (struct objfile) <psymtabs>: New method.
14645 (class objfile_psymtabs): Remove.
14646 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14648 <range>: New method.
14649 (require_partial_symbols): Change return type.
14650 * psymtab.c (require_partial_symbols)
14651 (psym_expand_symtabs_matching): Update.
14652 * mdebugread.c (parse_partial_symbols): Update.
14653 * dbxread.c (dbx_end_psymtab): Update.
14655 2019-01-15 Tom Tromey <tom@tromey.com>
14657 * symtab.c (lookup_objfile_from_block)
14658 (lookup_symbol_in_objfile_symtabs)
14659 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14660 (find_line_symtab, info_sources_command)
14661 (default_collect_symbol_completion_matches_break_on)
14662 (make_source_files_completion_list): Update.
14663 * symmisc.c (print_objfile_statistics, dump_objfile)
14664 (maintenance_print_symbols, maintenance_info_symtabs)
14665 (maintenance_check_symtabs, maintenance_info_line_tables):
14667 * source.c (select_source_symtab)
14668 (forget_cached_source_info_for_objfile): Update.
14669 * objfiles.h (class objfile_compunits): Remove.
14670 (struct objfile) <compunits_range>: New typedef.
14671 (compunits): New method.
14672 * objfiles.c (objfile_relocate1): Update.
14673 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14674 * maint.c (count_symtabs_and_blocks): Update.
14675 * linespec.c (iterate_over_all_matching_symtabs): Update.
14676 * cp-support.c (add_symbol_overload_list_qualified): Update.
14677 * coffread.c (coff_symtab_read): Update.
14678 * ada-lang.c (add_nonlocal_symbols)
14679 (ada_collect_symbol_completion_matches)
14680 (ada_add_global_exceptions): Update.
14682 2019-01-15 Tom Tromey <tom@tromey.com>
14684 * progspace.h (program_space) <objfiles_safe_range>: New
14686 <objfiles_safe>: New method.
14687 * objfiles.h (class all_objfiles_safe): Remove.
14688 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14689 * jit.c (jit_inferior_exit_hook): Update.
14691 2019-01-17 Tom Tromey <tom@tromey.com>
14693 * progspace.h (program_space) <objfiles_range>: New typedef.
14694 <objfiles>: New method.
14695 <objfiles_head>: Rename from objfiles.
14696 (object_files): Update.
14697 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14698 * guile/scm-pretty-print.c
14699 (ppscm_find_pretty_printer_from_objfiles): Update.
14700 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14701 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14703 * python/py-progspace.c (pspy_get_objfiles): Update.
14704 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14706 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14707 (objfpy_lookup_objfile_by_build_id): Update.
14708 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14709 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14711 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14712 (expand_symtab_containing_pc, lookup_objfile_from_block)
14713 (lookup_static_symbol, basic_lookup_transparent_type)
14714 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14715 (find_line_symtab, info_sources_command)
14716 (default_collect_symbol_completion_matches_break_on)
14717 (make_source_files_completion_list, find_main_name): Update.
14718 * symmisc.c (print_symbol_bcache_statistics)
14719 (print_objfile_statistics, maintenance_print_symbols)
14720 (maintenance_print_msymbols, maintenance_print_objfiles)
14721 (maintenance_info_symtabs, maintenance_check_symtabs)
14722 (maintenance_expand_symtabs, maintenance_info_line_tables):
14724 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14725 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14726 (map_overlay_command, unmap_overlay_command)
14727 (simple_overlay_update, expand_symtabs_matching)
14728 (map_symbol_filenames): Update.
14729 * symfile-debug.c (set_debug_symfile): Update.
14730 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14732 * source.c (select_source_symtab, forget_cached_source_info):
14734 * solib.c (solib_read_symbols): Update.
14735 * solib-spu.c (append_ocl_sos): Update.
14736 * psymtab.c (maintenance_print_psymbols)
14737 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14738 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14739 * printcmd.c (info_symbol_command): Update.
14740 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14742 * objfiles.h (class all_objfiles): Remove.
14743 * objfiles.c (have_partial_symbols, have_full_symbols)
14744 (have_minimal_symbols, qsort_cmp, update_section_map)
14745 (shared_objfile_contains_address_p)
14746 (default_iterate_over_objfiles_in_search_order): Update.
14747 * objc-lang.c (info_selectors_command, info_classes_command)
14748 (find_methods): Update.
14749 * minsyms.c (find_solib_trampoline_target): Update.
14750 * maint.c (maintenance_info_sections)
14751 (maintenance_translate_address, count_symtabs_and_blocks):
14753 * main.c (captured_main_1): Update.
14754 * linux-thread-db.c (try_thread_db_load_from_pdir)
14755 (has_libpthread): Update.
14756 * linespec.c (iterate_over_all_matching_symtabs)
14757 (search_minsyms_for_name): Update.
14758 * jit.c (jit_find_objf_with_entry_addr): Update.
14759 * hppa-tdep.c (find_unwind_entry)
14760 (hppa_lookup_stub_minimal_symbol): Update.
14761 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14763 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14764 (elf_gnu_ifunc_resolve_by_got): Update.
14765 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14766 * dwarf-index-write.c (save_gdb_index_command): Update.
14767 * cp-support.c (add_symbol_overload_list_qualified): Update.
14768 * breakpoint.c (create_overlay_event_breakpoint)
14769 (create_longjmp_master_breakpoint)
14770 (create_std_terminate_master_breakpoint)
14771 (create_exception_master_breakpoint): Update.
14772 * blockframe.c (find_pc_partial_function): Update.
14773 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14774 (ada_collect_symbol_completion_matches)
14775 (ada_add_global_exceptions): Update.
14777 2019-01-17 Tom Tromey <tom@tromey.com>
14779 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14781 (solib_target_parse_libraries): Change return type.
14782 (library_list_start_segment, library_list_start_section)
14783 (library_list_end_library, library_list_start_library); Update.
14784 (solib_target_free_library_list): Remove.
14785 (solib_target_parse_libraries): Remove cleanup. Change return
14787 (solib_target_current_sos): Update.
14789 2019-01-17 Tom Tromey <tromey@bapiya>
14791 * valprint.c: Replace "the the" with "the".
14792 * symtab.c: Replace "the the" with "the".
14793 * solib.c: Replace "the the" with "the".
14794 * solib-dsbt.c: Replace "the the" with "the".
14795 * linespec.c: Replace "the the" with "the".
14796 * dwarf2loc.h: Replace "the the" with "the".
14797 * amd64-windows-tdep.c: Replace "the the" with "the".
14798 * aarch64-tdep.c: Replace "the the" with "the".
14800 2019-01-16 Keith Seitz <keiths@redhat.com>
14803 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14804 <builder>: Rename to ..
14805 <m_builder>: ... this and make private.
14806 (dwarf2_cu::get_builder): New method. Change all users of
14807 `builder' to use this method.
14808 (dwarf2_start_symtab): Move to ...
14809 (dwarf2_cu::start_symtab): ... here. Update all callers
14810 (setup_type_unit_groups): Move to ...
14811 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14813 (dwarf2_cu::reset_builder): New method.
14814 (process_full_compunit, process_full_type_unit): Use
14815 dwarf2_cu::reset_builder.
14816 (follow_die_offset): Record the ancestor CU if it is different
14817 from the followed DIE's CU.
14818 (follow_die_sig_1): Likewise.
14820 2019-01-15 Tom Tromey <tom@tromey.com>
14822 * remote.c (class remote_state) <buf>: Now a char_vector.
14823 <buf_size>: Remove.
14824 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14826 (remote_target::getpkt_or_notif_sane_1)
14827 (remote_target::getpkt_sane)
14828 (remote_target::getpkt_or_notif_sane): Likewise.
14829 (class remote_target) <putpkt>: New overload.
14830 (remote_target::read_frame): Change type of "buf_p". Remove
14831 sizeof_p parameter.
14832 (packet_ok): New overload.
14833 (packet_check_result): New overload.
14836 2019-01-14 Tom Tromey <tom@tromey.com>
14838 * remote-notif.c (handle_notification, remote_notif_ack)
14839 (remote_notif_parse): Make "buf" const.
14840 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14842 (remote_notif_parse, remote_notif_ack, handle_notification):
14844 * remote.c (remote_notif_stop_parse): Make "buf" const.
14845 (remote_target::remote_parse_stop_reply): Make "buf" const.
14846 (remote_notif_stop_ack): Make "buf" const.
14848 2019-01-14 Tom Tromey <tom@tromey.com>
14850 * remote.c (remote_console_output): Make parameter const.
14852 2019-01-14 Tom Tromey <tom@tromey.com>
14854 * target-debug.h (target_debug_print_signals): Constify.
14855 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14856 * procfs.c (procfs_target::pass_signals): Update.
14857 * linux-nat.c (linux_nat_target::pass_signals): Update.
14858 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14859 * target-delegates.c: Rebuild.
14860 * remote.c (remote_target::program_signals): Update.
14861 (remote_target::pass_signals): Update.
14862 * target.c (target_pass_signals): Constify argument.
14863 (target_program_signals): Likewise.
14864 * target.h (struct target_ops) <pass_signals, program_signals>:
14866 (target_pass_signals, target_program_signals): Constify argument.
14868 2019-01-14 Tom Tromey <tom@tromey.com>
14871 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14873 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14875 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14877 * rs6000-tdep.c: Include reggroups.h.
14878 (IS_V_ALIAS_PSEUDOREG): Define.
14879 (rs6000_register_name): Return names for the "vX" aliases.
14880 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14881 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14882 aliases. Call default_register_reggroup_p for all other
14884 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14886 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14887 Handle "vX" aliases.
14888 (v_alias_pseudo_register_collect): New function.
14889 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14890 (rs6000_gdbarch_init): Initialize "vX" aliases as
14891 pseudo-registers. Restore registration of
14892 rs6000_pseudo_register_reggroup_p with
14893 set_tdesc_pseudo_register_reggroup_p.
14895 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14897 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14898 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14899 set_gdbarch_num_pseudo_regs.
14901 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14903 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14904 Remove arg prefixname, add do_set and do_show.
14905 Add member functions set_list and show_list.
14906 * cli/cli-style.c (class cli_style_option): Update accordingly.
14907 (style_set_list): Move to file scope.
14908 (style_show_list): Likewise.
14909 (set_style): Call help_list.
14910 (show_style): Call cmd_show_list.
14911 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14912 Update to use the new macro.
14914 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14916 * ada-lang.c (_initialize_ada_language): Expand the help text
14917 for the "catch exception" command.
14919 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14921 * symtab.c (matching_obj_sections): Initialize obj,
14922 declare it closer to its usage.
14924 2019-01-10 Tom Tromey <tom@tromey.com>
14926 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14927 (basic_inf_threads_range): Remove.
14928 (inf_threads_range, inf_non_exited_threads_range)
14929 (safe_inf_threads_range): Use next_adapter.
14931 2019-01-10 Keith Seitz <keiths@redhat.com>
14935 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14936 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14938 2019-01-10 Keith Seitz <keiths@redhat.com>
14942 * dictionary.c (pending_to_vector): Remove.
14943 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14944 Remove _1 suffix, replacing functions of the same name. Update
14946 (dict_create_hashed, dict_create_hashed_expandable)
14947 (dict_create_linear, dict_create_linear_expandable, dict_free)
14948 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14949 Make functions static.
14951 2019-01-10 Keith Seitz <keiths@redhat.com>
14955 * dictionary.h (struct dictionary): Replace declaration with
14957 (dict_create_hashed, dict_create_hashed_expandable)
14958 (dict_create_linear, dict_create_linear_expandable)
14959 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14960 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14961 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14962 taking multidictionary argument.
14963 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14964 * block.h (struct block) <dict>: Change to multidictionary
14965 and rename `multidict'.
14966 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14967 symmisc.c: Update all dictionary references to multidictionary.
14969 2019-01-10 Keith Seitz <keiths@redhat.com>
14973 * dictionary.c: Include unordered_map.
14974 (pending_to_vector): New function.
14975 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14976 Rewrite the non-"_1" functions to take vector instead
14978 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14979 "new" _1 versions of the same name.
14980 (multidictionary): Define.
14981 (std::hash<enum language): New definition.
14982 (collate_pending_symbols_by_language, mdict_create_hashed)
14983 (mdict_create_hashed_expandable, mdict_create_linear)
14984 (mdict_create_linear_expandable, mdict_free)
14985 (find_language_dictionary, create_new_language_dictionary)
14986 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14987 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14988 (mdict_size, mdict_empty): New functions.
14989 * dictionary.h (mdict_iterator): Define.
14991 2019-01-10 Pedro Alves <palves@redhat.com>
14993 * breakpoint.c (read_uploaded_action)
14994 (create_tracepoint_from_upload): Adjust to use
14995 gdb::unique_xmalloc_ptr.
14996 * ctf.c (ctf_write_uploaded_tp):
14997 (SET_ARRAY_FIELD): Use emplace_back.
14998 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14999 * tracefile-tfile.c (tfile_write_uploaded_tp):
15000 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15001 gdb::unique_xmalloc_ptr.
15002 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15003 at_string, cond_string, cmd_strings>: Replace char pointers
15004 with gdb::unique_xmalloc_ptr.
15006 2019-01-10 Pedro Alves <palves@redhat.com>
15008 * solib-target.c (library_list_start_library): Don't xstrdup name.
15010 2019-01-10 Pedro Alves <palves@redhat.com>
15012 * mdebugread.c (parse_partial_symbols): Use
15013 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15015 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15017 * linux-fork.c (scoped_switch_fork_info)
15018 <~scoped_switch_fork_info>: Fix incorrect variable name.
15020 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15022 * linux-fork.c (scoped_switch_fork_info)
15023 <scoped_switch_fork_info>: Make explicit.
15024 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15026 2019-01-10 Tom Tromey <tom@tromey.com>
15028 * objfiles.h (objfile::reset_psymtabs): Update.
15029 * objfiles.c (objfile::objfile): Update.
15030 * psymtab.h (psymtab_storage::obstack): Update.
15031 (psymtab_storage::m_obstack): Use gdb::optional.
15032 (class psymtab_storage): Update comment. Remove objfile
15034 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15036 2019-01-10 Tom Tromey <tom@tromey.com>
15038 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15039 <free_psymtabs>: Now private.
15040 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15041 (allocate_psymtab): Use new method.
15043 2019-01-10 Tom Tromey <tom@tromey.com>
15045 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15046 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15047 * mdebugread.c (parse_partial_symbols): Use
15048 allocate_dependencies.
15049 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15050 allocate_dependencies.
15051 (process_psymtab_comp_unit_reader)
15052 (build_type_psymtab_dependencies): Likewise.
15053 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15055 2019-01-10 Tom Tromey <tom@tromey.com>
15057 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15058 PSYMBOL_SET_LANGUAGE.
15059 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15061 2019-01-10 Tom Tromey <tom@tromey.com>
15063 * psymtab.h (psymtab_storage::obstack): New method.
15064 <m_obstack>: Rename from obstack; now private.
15065 * psymtab.c (psymtab_storage): Update.
15066 * dwarf2read.c (create_addrmap_from_index)
15067 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15070 2019-01-10 Tom Tromey <tom@tromey.com>
15072 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15073 * objfiles.h (objfile::reset_psymtabs): New method.
15075 2019-01-10 Tom Tromey <tom@tromey.com>
15077 * symmisc.c (print_symbol_bcache_statistics): Update.
15078 (print_objfile_statistics): Update.
15079 * symfile.c (reread_symbols): Update.
15080 * psymtab.h (class psymtab_storage): New.
15081 * psymtab.c (psymtab_storage): New constructor.
15082 (~psymtab_storage): New destructor.
15083 (require_partial_symbols): Update.
15084 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15085 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15086 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15087 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15088 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15089 (start_psymtab_common, end_psymtab_common)
15090 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15091 (allocate_psymtab): Update.
15092 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15094 (dump_psymtab_addrmap, maintenance_print_psymbols)
15095 (maintenance_check_psymtabs): Update.
15096 (class objfile_psymtabs): Move to objfiles.h.
15097 * psympriv.h (discard_psymtab): Now inline.
15098 (psymtab_discarder::psymtab_discarder): Update.
15099 (psymtab_discarder::~psymtab_discarder): Update.
15100 (ALL_OBJFILE_PSYMTABS): Rewrite.
15101 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15102 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15104 <partial_symtabs>: New field.
15105 (class objfile_psymtabs): Move from psymtab.h. Update.
15106 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15108 (objfile::~objfile): Don't destroy psymbol_cache.
15109 * mdebugread.c (parse_partial_symbols): Update.
15110 * dwarf2read.c (create_addrmap_from_index)
15111 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15112 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15113 (add_partial_subprogram, dwarf2_ranges_read): Update.
15114 * dwarf-index-write.c (write_address_map)
15115 (write_one_signatured_type, recursively_write_psymbols)
15116 (class debug_names, class debug_names, write_psymtabs_to_index):
15119 2019-01-10 Tom Tromey <tom@tromey.com>
15121 * symtab.h (SYMBOL_SET_NAMES): Update.
15122 (symbol_set_names): Update.
15123 (MSYMBOL_SET_NAMES): Update.
15124 * symtab.c (symbol_set_names): Change argument to be an
15125 objfile_per_bfd_storage.
15126 * psymtab.c (add_psymbol_to_bcache): Update.
15127 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15129 2019-01-10 Tom Tromey <tom@tromey.com>
15131 * symtab.c (create_demangled_names_hash): Change argument to be an
15132 objfile_per_bfd_storage.
15133 (symbol_set_names): Update.
15135 2019-01-10 Tom Tromey <tom@tromey.com>
15137 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15139 * psymtab.c (init_psymbol_list): Do nothing if already called.
15140 * psympriv.h (init_psymbol_list): Add comment.
15141 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15143 * dbxread.c (dbx_symfile_read): Unconditionally call
15146 2019-01-10 Tom Tromey <tom@tromey.com>
15148 * xcoffread.c (scan_xcoff_symtab): Update.
15149 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15151 * mdebugread.c (parse_partial_symbols)
15152 (handle_psymbol_enumerators): Update.
15153 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15154 * dbxread.c (read_dbx_symtab): Update.
15155 * psympriv.h (psymbol_placement): New enum.
15156 (add_psymbol_to_list): Update.
15158 2019-01-10 Tom Tromey <tom@tromey.com>
15160 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15161 static_psymbols parameters.
15162 (scan_xcoff_symtab): Update.
15163 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15164 static_psymbols parameters.
15165 * psympriv.h (start_psymtab_common): Update.
15166 * mdebugread.c (parse_partial_symbols): Update.
15167 * dwarf2read.c (create_partial_symtab): Update.
15168 * dbxread.c (read_dbx_symtab): Update.
15169 (start_psymtab): Remove global_psymbols and static_psymbols
15172 2019-01-10 Tom Tromey <tom@tromey.com>
15174 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15175 * psymtab.c (allocate_psymtab): Add comment.
15176 * psympriv.h (allocate_psymtab): Add comment.
15177 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15179 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15181 2019-01-10 Tom Tromey <tom@tromey.com>
15183 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15185 * mipsread.c: Include mdebugread.h.
15186 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15188 * elfread.c: Include mdebugread.h.
15190 2019-01-09 Tom Tromey <tom@tromey.com>
15192 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15193 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15194 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15195 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15196 (psym_lookup_symbol, psym_find_last_source_symtab)
15197 (psym_forget_cached_source_info, psym_print_stats)
15198 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15199 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15200 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15201 (psym_find_compunit_symtab_by_address)
15202 (maintenance_print_psymbols, maintenance_info_psymtabs)
15203 (maintenance_check_psymtabs): Use ranged for.
15204 * psymtab.h (class objfile_psymtabs): New.
15205 (require_partial_symbols): Return objfile_psymtabs.
15206 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15208 2019-01-09 Tom Tromey <tom@tromey.com>
15210 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15211 (find_pc_mapped_section, list_overlays_command)
15212 (map_overlay_command, unmap_overlay_command)
15213 (simple_overlay_update): Use all_objfiles.
15214 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15215 * printcmd.c (info_symbol_command): Use all_objfiles.
15216 * objfiles.h (ALL_OBJSECTIONS): Remove.
15217 * maint.c (maintenance_translate_address): Use all_objfiles.
15218 * gcore.c (gcore_create_callback): Use all_objfiles.
15219 (objfile_find_memory_regions): Likewise.
15221 2019-01-09 Tom Tromey <tom@tromey.com>
15223 * symtab.c (find_line_symtab, info_sources_command)
15224 (make_source_files_completion_list): Use objfile_compunits.
15225 * source.c (select_source_symtab): Use objfile_compunits.
15226 * objfiles.h (struct objfile): Update comment.
15227 (ALL_OBJFILES): Remove.
15228 (ALL_FILETABS): Remove.
15229 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15232 2019-01-09 Tom Tromey <tom@tromey.com>
15234 * symmisc.c (print_objfile_statistics, dump_objfile)
15235 (maintenance_print_symbols): Use compunit_filetabs.
15236 * source.c (forget_cached_source_info_for_objfile): Use
15238 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15239 (ALL_FILETABS): Use compunit_filetabs.
15240 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15241 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15243 2019-01-09 Tom Tromey <tom@tromey.com>
15245 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15246 (compunit_filetabs): New.
15247 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15249 (info_sources_command, make_source_files_completion_list): Remove
15251 * symmisc.c (print_objfile_statistics, dump_objfile)
15252 (maintenance_print_symbols): Remove declaration.
15253 (maintenance_info_symtabs): Use compunit_filetabs.
15254 (maintenance_info_line_tables): Likewise.
15255 * source.c (select_source_symtab): Change local variable name.
15256 (forget_cached_source_info_for_objfile): Remove declaration.
15257 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15258 * objfiles.c (objfile_relocate1): Remove declaration.
15259 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15261 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15262 * coffread.c (coff_symtab_read): Remove declaration.
15263 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15266 2019-01-09 Tom Tromey <tom@tromey.com>
15268 * symtab.c (lookup_objfile_from_block)
15269 (find_pc_sect_compunit_symtab, search_symbols)
15270 (default_collect_symbol_completion_matches_break_on): Use
15272 * objfiles.h (ALL_COMPUNITS): Remove.
15273 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15274 * cp-support.c (add_symbol_overload_list_qualified): Use
15276 * ada-lang.c (ada_collect_symbol_completion_matches)
15277 (ada_add_global_exceptions): Use objfile_compunits.
15279 2019-01-09 Tom Tromey <tom@tromey.com>
15281 * source.c (select_source_symtab)
15282 (forget_cached_source_info_for_objfile): Remove declaration.
15283 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15285 * maint.c (count_symtabs_and_blocks): Remove declaration.
15286 * cp-support.c (add_symbol_overload_list_qualified): Remove
15288 * coffread.c (coff_symtab_read): Remove declaration.
15289 * symtab.c (lookup_symbol_in_objfile_symtabs)
15290 (basic_lookup_transparent_type_1): Use objfile_compunits.
15291 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15292 (info_sources_command, search_symbols)
15293 (default_collect_symbol_completion_matches_break_on)
15294 (make_source_files_completion_list): Remove declaration.
15295 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15296 (ada_collect_symbol_completion_matches)
15297 (ada_add_global_exceptions): Remove declaration.
15298 * linespec.c (iterate_over_all_matching_symtabs): Use
15300 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15301 (class objfile_compunits): New.
15302 (ALL_COMPUNITS): Use objfile_compunits.
15303 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15304 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15306 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15308 2019-01-09 Tom Tromey <tom@tromey.com>
15310 * symtab.c (search_symbols)
15311 (default_collect_symbol_completion_matches_break_on): Use
15313 * ada-lang.c (ada_lookup_simple_minsym)
15314 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15315 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15316 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15318 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15319 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15320 * objc-lang.c (find_methods): Use objfile_msymbols.
15321 (info_selectors_command, info_classes_command): Likewise.
15322 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15323 * objfiles.h (class objfile_msymbols): New.
15324 (ALL_OBJFILE_MSYMBOLS): Remove.
15325 (ALL_MSYMBOLS): Remove.
15327 2019-01-09 Tom Tromey <tom@tromey.com>
15329 * common/next-iterator.h (next_adapter): Add Iterator template
15331 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15332 (class all_objfiles_safe): New.
15333 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15334 * objfiles.c (put_objfile_before): Update comment.
15335 (add_separate_debug_objfile): Likewise.
15336 (free_all_objfiles): Use all_objfiles_safe.
15337 (objfile_purge_solibs): Likewise.
15339 2019-01-09 Tom Tromey <tom@tromey.com>
15341 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15342 (expand_symtab_containing_pc, lookup_static_symbol)
15343 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15344 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15346 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15347 * breakpoint.c (create_overlay_event_breakpoint)
15348 (create_longjmp_master_breakpoint)
15349 (create_std_terminate_master_breakpoint)
15350 (create_exception_master_breakpoint): Use all_objfiles.
15351 * linux-thread-db.c (try_thread_db_load_from_pdir)
15352 (has_libpthread): Use all_objfiles.
15353 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15354 * linespec.c (iterate_over_all_matching_symtabs)
15355 (search_minsyms_for_name): Use all_objfiles.
15356 * maint.c (maintenance_info_sections): Use all_objfiles.
15357 * main.c (captured_main_1): Use all_objfiles.
15358 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15359 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15360 * guile/scm-pretty-print.c
15361 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15362 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15363 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15364 (maintenance_print_msymbols): Use all_objfiles.
15365 * source.c (select_source_symtab): Use all_objfiles.
15366 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15367 * symfile.c (remove_symbol_file_command)
15368 (expand_symtabs_matching, map_symbol_filenames): Use
15370 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15372 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15373 * objc-lang.c (find_methods): Use all_objfiles.
15374 * objfiles.c (have_partial_symbols, have_full_symbols)
15375 (have_minimal_symbols, qsort_cmp)
15376 (default_iterate_over_objfiles_in_search_order): Use
15378 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15379 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15380 (maintenance_check_psymtabs): Use all_objfiles.
15381 (ALL_PSYMTABS): Remove.
15382 * compile/compile-object-run.c (do_module_cleanup): Use
15384 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15385 * cp-support.c (add_symbol_overload_list_qualified): Use
15387 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15389 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15390 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15392 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15393 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15394 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15396 * solib.c (solib_read_symbols): Use all_objfiles
15398 2019-01-09 Tom Tromey <tom@tromey.com>
15400 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15401 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15403 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15404 * symmisc.c (print_symbol_bcache_statistics)
15405 (print_objfile_statistics, maintenance_print_objfiles)
15406 (maintenance_info_symtabs, maintenance_check_symtabs)
15407 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15409 * source.c (forget_cached_source_info): Use all_objfiles.
15410 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15411 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15412 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15413 * objfiles.c (update_section_map): Use all_objfiles.
15414 (shared_objfile_contains_address_p): Likewise.
15415 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15416 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15418 2019-01-09 Tom Tromey <tom@tromey.com>
15420 * common/next-iterator.h: New file.
15421 * objfiles.h (class all_objfiles): New.
15422 (struct objfile_iterator): New.
15424 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15426 * NEWS: Move the description of the changed "frame", "select-frame",
15427 and "info frame" commands to the Changed commands section.
15429 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15431 * gdbtypes.c (check_stub_method_group): Remove handling of old
15433 * linespec.c (find_methods): Likewise.
15434 * stabsread.c (read_member_functions): Likewise.
15435 * valops.c (search_struct_method): Likewise.
15436 (value_struct_elt_for_reference): Likewise.
15437 * NEWS: Mention this change.
15439 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15441 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15442 print_source_lines.
15443 * source.c (print_source_lines_base): Update line number check.
15444 (print_source_lines): New function.
15445 (source_lines_range::source_lines_range): New function.
15446 * source.h (class source_lines_range): New class.
15447 (print_source_lines): New declaration.
15449 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15451 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15453 2019-01-08 Tom Tromey <tom@tromey.com>
15454 Simon Marchi <simon.marchi@ericsson.com>
15457 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15458 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15459 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15460 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15461 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15462 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15464 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15466 * source.c (select_source_symtab): Move header comment to
15467 declaration in source.h.
15468 (forget_cached_source_info_for_objfile): Likewise.
15469 (forget_cached_source_info): Likewise.
15470 (identify_source_line): Likewise.
15471 * source.h (identify_source_line): Move declaration from symtab.h
15472 and add comment from source.c
15473 (print_source_lines): Likewise.
15474 (forget_cached_source_info_for_objfile): Likewise.
15475 (forget_cached_source_info): Likewise.
15476 (select_source_symtab): Likewise.
15477 (enum print_source_lines_flag): Move definition from symtab.h.
15478 * symtab.h (identify_source_line): Move declaration to source.h.
15479 (print_source_lines): Likewise.
15480 (forget_cached_source_info_for_objfile): Likewise.
15481 (forget_cached_source_info): Likewise.
15482 (select_source_symtab): Likewise.
15483 (enum print_source_lines_flag): Move definition to source.h.
15484 * tui/tui-hooks.c: Add 'source.h' include.
15486 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15488 * source.c (print_source_lines_base): Handle requests to print
15489 reverse line number sequences, and guard against empty lines
15492 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15494 * source.c (print_source_lines_base): Fix skip of '\r' if next
15497 2019-01-06 Tom Tromey <tom@tromey.com>
15499 * c-exp.y (struct c_parse_state) <macro_original_text,
15500 expansion_obstack>: New member.
15501 (macro_original_text, expansion_obstack): Remove globals.
15502 (scan_macro_expansion, scanning_macro_expansion)
15503 (finished_macro_expansion): Update.
15504 (scan_macro_cleanup): Remove.
15505 (yylex, c_parse): Update.
15507 2019-01-06 Tom Tromey <tom@tromey.com>
15509 * c-exp.y (struct c_parse_state) <strings>: New member.
15510 (operator_stoken): Update.
15512 2019-01-06 Tom Tromey <tom@tromey.com>
15514 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15515 (union type_stack_elt) <typelist_val>: Now a pointer to
15517 (type_stack_cleanup): Don't declare.
15518 (push_typelist): Update.
15519 * parse.c (pop_typelist): Return a std::vector.
15520 (push_typelist): Take a std::vector.
15521 (follow_types): Update. Do not free args.
15522 (type_stack_cleanup): Remove.
15523 * c-exp.y (struct c_parse_state): New.
15524 (cpstate): New global.
15525 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15526 (nonempty_typelist): Update.
15527 (func_mod): Create a new vector.
15528 (c_parse): Create a c_parse_state.
15529 (check_parameter_typelist): Do not delete params.
15530 (function_method): Update. Do not delete type_list.
15532 2019-01-06 Tom Tromey <tom@tromey.com>
15535 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15537 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15538 (print_return_value): Likewise.
15540 2019-01-05 Tom Tromey <tom@tromey.com>
15542 * contrib/cleanup_check.py: Remove.
15543 * contrib/gcc-with-excheck: Remove.
15544 * contrib/exsummary.py: Remove.
15545 * contrib/excheck.py: Remove.
15547 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15549 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15550 NULL. Initialize tpprev to NULL instead of assigning it
15551 to NULL on the next statement.
15552 * windows-nat.c (windows_delete_thread): Remove check for
15553 main_thread_id before printing thread exit notifications.
15554 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15555 Remove thread ID check against main_thread_id.
15556 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15557 windows_delete_thread.
15558 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15560 2019-01-04 Tom Tromey <tom@tromey.com>
15562 * compile/compile.c (_initialize_compile): Use upper case for
15563 metasyntactic variables.
15564 * symmisc.c (_initialize_symmisc): Use upper case for
15565 metasyntactic variables.
15566 * psymtab.c (_initialize_psymtab): Use upper case for
15567 metasyntactic variables.
15568 * demangle.c (demangle_command): Use upper case for metasyntactic
15570 (_initialize_demangler): Likewise.
15571 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15574 2019-01-03 Tom Tromey <tom@tromey.com>
15576 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15578 2019-01-03 Tom Tromey <tom@tromey.com>
15580 * python/py-symtab.c (salpy_str): Update.
15581 (struct salpy_sal_object) <symtab>: Now a PyObject.
15582 (salpy_dealloc): Update.
15583 (del_objfile_sal): Use gdbpy_ref.
15585 2019-01-03 Tom Tromey <tom@tromey.com>
15587 * python/py-type.c (convert_field): Use new_reference. Return
15589 (make_fielditem): Return gdbpy_ref.
15590 (typy_fields): Update.
15591 (typy_getitem): Update.
15592 (field_name): Return gdbpy_ref. Use new_reference.
15593 (typy_iterator_iternext): Update.
15595 2019-01-03 Tom Tromey <tom@tromey.com>
15597 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15599 2019-01-03 Tom Tromey <tom@tromey.com>
15601 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15602 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15603 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15604 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15605 (pspy_set_type_printers): Likewise.
15606 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15607 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15608 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15609 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15610 (objfpy_set_type_printers): Likewise.
15612 2019-01-03 Tom Tromey <tom@tromey.com>
15614 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15615 (gdbpy_print_stack): Use gdbpy_err_fetch.
15616 * python/python-internal.h (class gdbpy_err_fetch): New class.
15617 (class gdbpy_enter) <m_error_type, m_error_value,
15618 m_error_traceback>: Remove.
15619 <m_error>: New member.
15620 (gdbpy_exception_to_string): Don't declare.
15621 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15622 * python/py-value.c (convert_value_from_python): Use
15624 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15625 gdbpy_exception_to_string.
15626 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15627 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15630 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15632 * linux-nat.c (delete_lwp_cleanup): Delete.
15633 (struct lwp_deleter): New struct.
15634 (lwp_info_up): New typedef.
15635 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15638 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15640 * linux-fork.c (class scoped_switch_fork_info): New class.
15641 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15643 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15645 * valops.c (find_overload_match): Remove use of null_cleanup, and
15646 calls to do_cleanups.
15648 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15650 * compile/compile-cplus-types.c
15651 (compile_cplus_instance::decl_name): Handle changes to
15653 * cp-support.c (cp_func_name): Update header comment, update
15655 * cp-support.h (cp_func_name): Update return type in declaration.
15656 * valops.c (find_overload_match): Move temp_func local to top
15657 level of function and change its type. Use temp_func to hold and
15658 delete temporary string obtained from cp_func_name.
15660 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15662 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15663 gdb::char_vector, remove cleanup, and update uses of `msg`.
15665 2019-01-03 Jim Wilson <jimw@sifive.com>
15667 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15669 2019-01-02 Tom Tromey <tom@tromey.com>
15671 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15672 (tdesc_parse_xml): Remove cleanups.
15673 * target-descriptions.h (make_cleanup_free_target_description):
15675 (target_desc_deleter): New struct.
15676 (target_desc_up): New typedef.
15677 * target-descriptions.c (target_desc_deleter::operator()): Rename
15678 from free_target_description.
15679 (make_cleanup_free_target_description): Remove.
15681 2019-01-02 Tom Tromey <tom@tromey.com>
15683 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15684 constructor, destructor.
15685 (linespec_parser): Remove typedef.
15686 (~linespec_parser): Rename from linespec_parser_delete.
15687 (linespec_lex_to_end, linespec_complete_label)
15688 (linespec_complete): Update.
15689 (decode_line_full): Remove cleanups.
15690 (decode_line_1): Update.
15692 2019-01-02 Tom Tromey <tom@tromey.com>
15694 * python/python-internal.h (inferior_to_inferior_object): Change
15696 * python/py-exitedevent.c (create_exited_event_object): Update.
15697 * python/py-inferior.c (inferior_to_inferior_object): Return
15699 (python_new_inferior, python_inferior_deleted)
15700 (thread_to_thread_object, delete_thread_object)
15701 (build_inferior_list, gdbpy_selected_inferior): Update.
15702 * python/py-infthread.c (create_thread_object): Update. Also fail
15703 if inferior_to_inferior_object fails.
15705 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15707 * inferior.h (class inferior) <displaced_step_state>: New field.
15708 * infrun.h (struct displaced_step_state): Move here from
15709 infrun.c. Initialize fields, add constructor.
15710 <inf>: Remove field.
15711 <reset>: New method.
15712 * infrun.c (struct displaced_step_inferior_state): Move to
15714 (displaced_step_inferior_states): Remove.
15715 (get_displaced_stepping_state): Adust.
15716 (displaced_step_in_progress_any_inferior): Adjust.
15717 (displaced_step_in_progress_thread): Adjust.
15718 (displaced_step_in_progress): Adjust.
15719 (add_displaced_stepping_state): Remove.
15720 (get_displaced_step_closure_by_addr): Adjust.
15721 (remove_displaced_stepping_state): Remove.
15722 (infrun_inferior_exit): Call displaced_step_state.reset.
15723 (use_displaced_stepping): Don't check for NULL.
15724 (displaced_step_prepare_throw): Call
15725 get_displaced_stepping_state.
15726 (displaced_step_fixup): Don't check for NULL.
15727 (prepare_for_detach): Don't check for NULL.
15729 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15731 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15732 in case of call that did not complete.
15734 2019-01-02 Andrey Utkin <autkin@undo.io>
15736 * symfile.c (find_separate_debug_file): Fix search of debug files for
15739 2019-01-02 Tom Tromey <tom@tromey.com>
15741 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15743 * python/py-frame.c (frapy_older): Remove cast.
15744 (frapy_newer): Likewise.
15745 * python/py-breakpoint.c (local_setattro): Remove cast.
15746 * python/py-arch.c (archpy_name): Remove local variable.
15747 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15749 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15751 * unittests/basic_string_view/element_access/char/empty.cc:
15752 Fix year range in copyright header.
15754 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15756 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15758 <operator==>: Update with for removed field.
15760 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15761 <isa_features>: ...this.
15762 <abi_features>: New field.
15763 (riscv_isa_flen): Update comment.
15764 (riscv_abi_xlen): New declaration.
15765 (riscv_abi_flen): New declaration.
15766 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15768 (riscv_abi_xlen): New function.
15769 (riscv_isa_flen): Update to get answer from isa_features.
15770 (riscv_abi_flen): New function.
15771 (riscv_has_fp_abi): Update to get answer from abi_features.
15772 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15774 (riscv_call_info) <xlen, flen>: Update comment.
15775 (riscv_call_arg_struct): Remove invalid assertions
15776 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15778 (riscv_gdbarch_init): Gather isa features and abi features
15779 separately, ensure both match on the gdbarch when reusing an old
15780 gdbarch. Relax an error check to allow 32-bit abi float to run on
15781 a target with 64-bit float hardware.
15783 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15785 * source.c (search_command_helper): Stop reverse search
15786 when line 1 has been searched.
15788 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15790 * record-full.c (record_full_base_target::close): Rewrite
15791 record_full_core_buf_list free logic.
15793 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15795 * break-catch-syscall.c (print_one_catch_syscall): xfree
15798 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15800 * top.c (print_gdb_version): Update Copyright year in version
15803 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15805 Update copyright year range in all GDB files.
15807 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15809 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15811 For older changes see ChangeLog-2018.
15817 version-control: never