1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * value.h (add_internal_function): Add new overload. Move
4 documentation from value.h.
5 * value.c (do_add_internal_function): New function.
6 (add_internal_function): Use it. Add new overload.
7 (function_destroyer): Don't free doc.
8 * python/py-function.c (fnpy_init): Update.
10 2019-11-26 Tom Tromey <tom@tromey.com>
12 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
13 (cmdpy_init): Set "doc_allocated".
15 2019-11-26 Tom Tromey <tom@tromey.com>
17 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
18 name of worker thread.
19 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
21 * configure, config.in: Rebuild.
23 2019-11-26 Tom Tromey <tom@tromey.com>
25 * python/python.c (class gdbpy_gil): New.
26 (struct gdbpy_event): Add constructor, destructor, operator().
27 (gdbpy_post_event): Use run_on_main_thread.
28 (gdbpy_initialize_events): Remove.
29 (do_start_initialization): Update.
31 2019-11-26 Tom Tromey <tom@tromey.com>
34 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
35 commands. Call update_thread_pool_size.
36 (update_thread_pool_size, maintenance_set_worker_threads): New
38 (n_worker_threads): New global.
40 2019-11-26 Christian Biesinger <cbiesinger@google.com>
41 Tom Tromey <tom@tromey.com>
43 * minsyms.c (minimal_symbol_reader::install): Use
45 * gdbsupport/parallel-for.h: New file.
46 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
48 2019-11-26 Christian Biesinger <cbiesinger@google.com>
49 Tom Tromey <tom@tromey.com>
51 * gdbsupport/thread-pool.h: New file.
52 * gdbsupport/thread-pool.c: New file.
53 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
54 (HFILES_NO_SRCDIR): Add thread-pool.h.
56 2019-11-26 Tom Tromey <tom@tromey.com>
58 * event-top.h (thread_local_segv_handler): Declare.
59 * event-top.c (thread_local_segv_handler): New global.
60 (install_handle_sigsegv, handle_sigsegv): New functions.
61 (async_init_signals): Install SIGSEGV handler.
62 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
64 (report_failed_demangle): New function.
65 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
66 handler-setting code, instead use segv_handler. Run warning code
69 2019-11-26 Tom Tromey <tom@tromey.com>
71 * run-on-main-thread.c: New file.
72 * run-on-main-thread.h: New file.
73 * unittests/main-thread-selftests.c: New file.
74 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
75 main-thread-selftests.c.
76 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
77 (COMMON_SFILES): Add run-on-main-thread.c.
79 2019-11-26 Tom Tromey <tom@tromey.com>
81 * main.c (setup_alternate_signal_stack): Remove.
82 (captured_main_1): Use gdb::alternate_signal_stack.
83 * gdbsupport/alt-stack.h: New file.
85 2019-11-26 Tom Tromey <tom@tromey.com>
87 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
89 (save_original_signals_state, restore_original_signals_state): Use
91 * linux-nat.c (block_child_signals, restore_child_signals_mask)
92 (_initialize_linux_nat): Use gdb_sigmask.
93 * guile/guile.c (_initialize_guile): Use block_signals.
94 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
95 * gdbsupport/gdb-sigmask.h: New file.
96 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
97 * cp-support.c (gdb_demangle): Use gdb_sigmask.
98 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
100 * configure, config.in: Rebuild.
101 * gdbsupport/block-signals.h: New file.
103 2019-11-26 Tom Tromey <tom@tromey.com>
105 * acinclude.m4: Include ax_pthread.m4.
106 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
107 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
108 (CLIBS): Use PTHREAD_LIBS.
109 (aclocal_m4_deps): Add ax_pthread.m4.
110 * config.in, configure: Rebuild.
111 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
113 2019-11-26 Tom Tromey <tom@tromey.com>
115 * symtab.h (struct minimal_symbol) <name_set>: New member.
116 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
117 Don't call symbol_set_names.
118 (minimal_symbol_reader::install): Call symbol_set_names.
120 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
122 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
123 restore_active_ext_lang, as GIL is needed for (indirectly)
124 called PyOS_InterruptOccurred.
126 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
128 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
131 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
133 * remote-sim.c (simulator_command): Make static, remove
136 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
138 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
140 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
141 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
143 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
145 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
147 * unittests/basic_string_view/element_access/char/1.cc (test01):
150 * unittests/basic_string_view/element_access/char/empty.cc (main):
152 * unittests/basic_string_view/element_access/char/front_back.cc
155 * unittests/basic_string_view/inserters/char/2.cc (test05):
158 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
161 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
164 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
166 * unittests/basic_string_view/operations/compare/char/1.cc
169 * unittests/basic_string_view/operations/compare/char/13650.cc
171 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
174 * unittests/basic_string_view/operations/data/char/1.cc (test01):
177 * unittests/basic_string_view/operations/find/char/1.cc (test01):
180 * unittests/basic_string_view/operations/find/char/2.cc (test02):
183 * unittests/basic_string_view/operations/find/char/3.cc (test03):
186 * unittests/basic_string_view/operations/find/char/4.cc (main):
188 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
191 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
194 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
197 * unittests/basic_string_view/operations/substr/char/1.cc
200 * unittests/basic_string_view/operators/char/2.cc (main):
202 * unittests/optional/assignment/1.cc (test): Likewise.
203 * unittests/optional/assignment/2.cc (test): Likewise.
204 * unittests/optional/assignment/3.cc (test): Likewise.
205 * unittests/optional/assignment/4.cc (test): Likewise.
206 * unittests/optional/assignment/5.cc (test): Likewise.
207 * unittests/optional/assignment/6.cc (test): Likewise.
208 * unittests/optional/assignment/7.cc (test): Likewise.
209 * unittests/optional/cons/copy.cc (test): Likewise.
210 * unittests/optional/cons/default.cc (test): Likewise.
211 * unittests/optional/cons/move.cc (test): Likewise.
212 * unittests/optional/cons/value.cc (test): Likewise.
213 * unittests/optional/in_place.cc (test): Likewise.
214 * unittests/optional/observers/1.cc (test): Likewise.
215 * unittests/optional/observers/2.cc (test): Likewise.
217 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
219 * tui-win.h (tui_set_var_cmd): Remove.
220 * tui-win.c (tui_set_var_cmd): Make static.
222 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
224 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
225 rbreak_command_wrapper): Remove.
226 * symtab.c (rbreak_command_wrapper): Remove.
228 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
230 * inferior.h (info_terminal_command): Remove declaration.
231 * inflow.c (info_terminal_command): Make static.
233 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
235 * inferior.c (exit_inferior_silent): Remove.
237 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
239 * dictionary.c (dict_empty, mdict_empty): Remove.
240 * dictionary.c (mdict_empty): Remove.
242 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
244 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
245 (arc_insn_get_memory_offset): Likewise.
246 (arc_insn_dump): Likewise.
247 * cp-support.c (test_cp_symbol_name_matches): Likewise.
248 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
249 * dictionary.c (dict_iterator_next): Likewise.
250 (dict_iter_match_first): Likewise.
251 (dict_iter_match_next): Likewise.
252 * f-lang.c (evaluate_subexp_f): Likewise.
253 * hppa-tdep.c (hppa_read_pc): Likewise.
254 * i386-tdep.c (i386_floatformat_for_type): Likewise.
255 * parse.c (write_exp_elt_msym): Likewise.
256 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
257 * remote.c (remote_packet_size): Likewise.
258 (remote_notif_stop_parse): Likewise.
259 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
260 * s12z-tdep.c (s12z_disassemble_info): Likewise.
261 * source.c (prepare_path_for_appending): Likewise.
262 * sparc64-linux-tdep.c
263 (sparc64_linux_handle_segmentation_fault); Likewise.
264 * stack.c (frame_selection_by_function_completer): Likewise.
266 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
268 * completer.c (set_gdb_completion_word_break_characters):
271 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
273 * dwarf-index-write.c: Include dwarf-index-write.h.
274 * mi/mi-interp.c: Include mi/mi-interp.h.
276 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
278 * aarch32-tdep.c: Include aarch32-tdep.h.
279 * aarch32-tdep.h: Forward-declare struct target_desc.
281 2019-11-26 Christian Biesinger <cbiesinger@google.com>
283 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
285 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
286 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
288 2019-11-25 Tom de Vries <tdevries@suse.de>
290 * contrib/words.sh: Add -c option.
292 2019-11-25 Christian Biesinger <cbiesinger@google.com>
294 * solib.c (solib_find_1): Change int to bool.
295 (exec_file_find): Change int to bool.
296 (solib_find): Change int to bool.
297 (solib_read_symbols): Change int to bool.
298 (solib_used): Change int to bool.
299 (solib_add): Change int to bool.
300 (info_sharedlibrary_command): Change int to bool.
301 (solib_contains_address_p): Change int to bool.
302 (solib_keep_data_in_core): Change int to bool.
303 (in_solib_dynsym_resolve_code): Change int to bool.
304 (reload_shared_libraries_1): Change int to bool.
305 (gdb_sysroot_changed): Change int to bool.
306 * solib.h (solib_read_symbols): Change int to bool.
307 (solib_contains_address_p): Change int to bool.
308 (solib_keep_data_in_core): Change int to bool.
309 (in_solib_dynsym_resolve_code): Change int to bool.
310 (libpthread_name_p): Change int to bool.
312 2019-11-25 Luis Machado <luis.machado@linaro.org>
314 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
315 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
316 (remote_packet_max_chars): New static global.
317 (show_remote_packet_max_chars): New function.
318 (remote_target::putpkt_binary): Adjust to use new
319 remote_packet_max_chars option.
320 (remote_target::getpkt_or_notif_sane_1): Likewise.
321 (_initialize_remote): Register new remote-packet-max-chars option.
323 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
325 * m68k-linux-nat.c: Include gdbarch.h.
327 2019-11-24 Tom Tromey <tom@tromey.com>
329 * symfile.c (read_symbols): Update.
330 * psymtab.c (require_partial_symbols): Change type of "verbose" to
332 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
333 (psym_lookup_symbol, psym_find_last_source_symtab)
334 (psym_forget_cached_source_info, psym_print_stats)
335 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
336 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
337 (psym_map_matching_symbols, psym_expand_symtabs_matching)
338 (psym_find_compunit_symtab_by_address)
339 (maintenance_print_psymbols, maintenance_info_psymtabs)
340 (maintenance_check_psymtabs): Update.
341 * psymtab.h (require_partial_symbols): Change type of "verbose" to
344 2019-11-22 Tom Tromey <tom@tromey.com>
346 * observable.h: Update comments.
348 2019-11-22 Tom Tromey <tromey@adacore.com>
350 * ada-tasks.c (ada_task_is_alive): Make parameter const.
351 (print_ada_task_info): Don't try to fetch thread id if task is not
354 2019-11-22 Christian Biesinger <cbiesinger@google.com>
357 * ada-lang.c (sort_choices): Update.
358 (ada_print_symbol_signature): Update.
359 (resolve_subexp): Update.
360 (ada_parse_renaming): Update.
361 (ada_read_renaming_var_value): Update.
362 (lesseq_defined_than): Update.
363 (remove_extra_symbols): Update.
364 (remove_irrelevant_renamings): Update.
365 (ada_add_block_symbols): Update.
366 (ada_collect_symbol_completion_matches): Update.
367 (ada_is_renaming_symbol): Update.
368 (aggregate_assign_from_choices): Update.
369 (ada_evaluate_subexp): Update.
370 (ada_has_this_exception_support): Update.
371 (ada_is_non_standard_exception_sym): Update.
372 (ada_add_exceptions_from_frame): Update.
373 (ada_add_global_exceptions): Update.
374 (ada_print_subexp): Update.
375 * ax-gdb.c (gen_var_ref): Update.
376 (gen_maybe_namespace_elt): Update.
377 (gen_expr_for_cast): Update.
380 * blockframe.c (find_pc_partial_function): Update.
381 * breakpoint.c (print_breakpoint_location): Update.
382 (update_static_tracepoint): Update.
383 * btrace.c (ftrace_print_function_name): Update.
384 (ftrace_function_switched): Update.
385 * buildsym.c (find_symbol_in_list): Update.
387 * c-typeprint.c (c_print_typedef): Update.
388 (c_type_print_template_args): Update.
389 * cli/cli-cmds.c (edit_command): Update.
390 (list_command): Update.
391 (print_sal_location): Update.
392 * coffread.c (patch_opaque_types): Update.
393 (process_coff_symbol): Update.
394 (coff_read_enum_type): Update.
395 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
396 (convert_one_symbol): Update.
397 (hash_symname): Update.
398 (eq_symname): Update.
399 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
400 * compile/compile-cplus-types.c (debug_print_scope): Update.
401 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
402 * compile/compile-object-load.c (get_out_value_type): Update.
403 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
404 (search_symbol_list): Update.
405 (cp_lookup_symbol_imports_or_template): Update.
406 * cp-support.c (overload_list_add_symbol): Update.
407 * ctfread.c (psymtab_to_symtab): Update.
408 * dbxread.c (cp_set_block_scope): Update.
409 * dictionary.c (iter_match_first_hashed): Update.
410 (iter_match_next_hashed): Update.
411 (insert_symbol_hashed): Update.
412 (iter_match_next_linear): Update.
413 * dictionary.h: Update.
414 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
415 (locexpr_describe_location_piece): Update.
416 (locexpr_describe_location_1): Update.
417 (locexpr_generate_c_location): Update.
418 (loclist_describe_location): Update.
419 (loclist_generate_c_location): Update.
420 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
421 (read_func_scope): Update.
422 (process_enumeration_scope): Update.
423 (new_symbol): Update.
424 (dwarf2_const_value): Update.
425 (dwarf2_symbol_mark_computed): Update.
426 * eval.c (evaluate_funcall): Update.
427 (evaluate_subexp_standard): Update.
428 * expprint.c (print_subexp_standard): Update.
429 (dump_subexp_body_standard): Update.
430 * f-valprint.c (info_common_command_for_block): Update.
431 * findvar.c (get_hosting_frame): Update.
432 (default_read_var_value): Update.
433 * go-lang.c (go_symbol_package_name): Update.
434 * guile/scm-block.c (bkscm_print_block_smob): Update.
435 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
436 (gdbscm_symbol_name): Update.
437 (gdbscm_symbol_linkage_name): Update.
438 (gdbscm_symbol_print_name): Update.
439 * infcall.c (get_function_name): Update.
440 * infcmd.c (jump_command): Update.
441 (finish_command): Update.
442 * infrun.c (insert_exception_resume_breakpoint): Update.
443 * linespec.c (canonicalize_linespec): Update.
444 (create_sals_line_offset): Update.
445 (convert_linespec_to_sals): Update.
446 (complete_label): Update.
447 (find_label_symbols_in_block): Update.
448 * m2-typeprint.c (m2_print_typedef): Update.
449 * mdebugread.c (mdebug_reg_to_regnum): Update.
450 (parse_symbol): Update.
451 (mylookup_symbol): Update.
452 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
453 (list_args_or_locals): Update.
454 * objc-lang.c (compare_selectors): Update.
455 (info_selectors_command): Update.
456 (compare_classes): Update.
457 (info_classes_command): Update.
459 * p-typeprint.c (pascal_print_typedef): Update.
460 * printcmd.c (build_address_symbolic): Update.
461 (info_address_command): Update.
462 (print_variable_and_value): Update.
463 * python/py-framefilter.c (extract_sym): Update.
464 (py_print_single_arg): Update.
465 * python/py-symbol.c (sympy_str): Update.
466 (sympy_get_name): Update.
467 (sympy_get_linkage_name): Update.
468 * python/python.c (gdbpy_rbreak): Update.
469 * record-btrace.c (btrace_get_bfun_name): Update.
470 (btrace_call_history): Update.
471 * rust-lang.c (rust_print_typedef): Update.
472 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
473 * stabsread.c (stab_reg_to_regnum): Update.
474 (define_symbol): Update.
475 (read_enum_type): Update.
476 (common_block_end): Update.
477 (cleanup_undefined_types_1): Update.
478 (scan_file_globals): Update.
479 * stack.c (print_frame_arg): Update.
480 (print_frame_args): Update.
481 (find_frame_funname): Update.
482 (info_frame_command_core): Update.
483 (iterate_over_block_locals): Update.
484 (print_block_frame_labels): Update.
485 (do_print_variable_and_value): Update.
486 (iterate_over_block_arg_vars): Update.
487 (return_command): Update.
488 * symmisc.c (dump_symtab_1): Update.
489 (print_symbol): Update.
490 * symtab.c (eq_symbol_entry): Update.
491 (symbol_cache_dump): Update.
492 (lookup_language_this): Update.
493 (find_pc_sect_line): Update.
494 (skip_prologue_sal): Update.
495 (symbol_search::compare_search_syms): Update.
496 (treg_matches_sym_type_name): Update.
497 (search_symbols): Update.
498 (print_symbol_info): Update.
499 (rbreak_command): Update.
500 (completion_list_add_symbol): Update.
501 (find_gnu_ifunc): Update.
502 (get_symbol_address): Update.
503 (search_module_symbols): Update.
504 (info_module_subcommand): Update.
505 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
506 (SYMBOL_LINKAGE_NAME): Remove.
507 (SYMBOL_DEMANGLED_NAME): Remove.
508 (SYMBOL_PRINT_NAME): Remove.
509 (SYMBOL_SEARCH_NAME): Remove.
510 * tracepoint.c (set_traceframe_context): Update.
511 (validate_actionline): Update.
512 (collection_list::collect_symbol): Update.
513 (encode_actions_1): Update.
514 (info_scope_command): Update.
515 (print_one_static_tracepoint_marker): Update.
516 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
517 * valops.c (address_of_variable): Update.
518 (find_overload_match): Update.
519 (find_oload_champ): Update.
521 2019-11-22 Christian Biesinger <cbiesinger@google.com>
523 * ada-lang.c (ada_lookup_simple_minsym): Update.
524 (ada_collect_symbol_completion_matches): Update.
525 * ada-tasks.c (read_atcb): Update.
526 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
527 (amd64_windows_skip_trampoline_code): Update.
528 * arm-tdep.c (skip_prologue_function): Update.
529 (arm_skip_stack_protector): Update.
530 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
531 (arm_wince_skip_main_prologue): Update.
532 * ax-gdb.c (gen_expr): Update.
533 * block.c (call_site_for_pc): Update.
534 * blockframe.c (find_pc_partial_function): Update.
535 * breakpoint.c (set_breakpoint_location_function): Update.
536 * btrace.c (ftrace_print_function_name): Update.
537 (ftrace_function_switched): Update.
538 * c-valprint.c (print_unpacked_pointer): Update.
539 * coffread.c (coff_symfile_read): Update.
540 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
541 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
542 * dwarf-index-write.c (write_psymbols): Update.
543 * dwarf2loc.c (call_site_to_target_addr): Update.
544 (func_verify_no_selftailcall): Update.
545 (tailcall_dump): Update.
546 (call_site_find_chain_1): Update.
547 (dwarf_expr_reg_to_entry_parameter): Update.
548 * elfread.c (elf_gnu_ifunc_record_cache): Update.
549 * eval.c (evaluate_funcall): Update.
550 (evaluate_subexp_standard): Update.
551 (evaluate_subexp_for_sizeof): Update.
552 * expprint.c (print_subexp_standard): Update.
553 (dump_subexp_body_standard): Update.
554 * frame.c (get_prev_frame_always_1): Update.
555 * frv-tdep.c (frv_skip_main_prologue): Update.
556 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
557 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
558 (gnuv3_get_typename_from_type_info): Update.
559 (gnuv3_skip_trampoline): Update.
560 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
561 * i386-tdep.c (i386_skip_main_prologue): Update.
562 (i386_pe_skip_trampoline_code): Update.
563 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
564 * infcall.c (get_function_name): Update.
565 * linespec.c (minsym_found): Update.
566 * linux-fork.c (info_checkpoints_command): Update.
567 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
568 (m32c_m16c_pointer_to_address): Update.
569 * maint.c (maintenance_translate_address): Update.
570 * minsyms.c (add_minsym_to_hash_table): Update.
571 (add_minsym_to_demangled_hash_table): Update.
572 (lookup_minimal_symbol_mangled): Update.
573 (lookup_minimal_symbol_demangled): Update.
574 (lookup_minimal_symbol_linkage): Update.
575 (lookup_minimal_symbol_text): Update.
576 (lookup_minimal_symbol_by_pc_name): Update.
577 (minimal_symbol_is_less_than): Update.
578 (compact_minimal_symbols): Update.
579 (build_minimal_symbol_hash_tables): Update.
580 (find_solib_trampoline_target): Update.
581 * mips-tdep.c (mips_stub_frame_sniffer): Update.
582 (mips_skip_pic_trampoline_code): Update.
583 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
584 * objc-lang.c (info_selectors_command): Update.
585 (info_classes_command): Update.
586 (find_methods): Update.
588 * p-valprint.c (pascal_val_print): Update.
589 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
590 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
591 * printcmd.c (build_address_symbolic): Update.
592 (info_symbol_command): Update.
593 * psymtab.c (psymbol_name_matches): Update.
594 (match_partial_symbol): Update.
595 (lookup_partial_symbol): Update.
596 (print_partial_symbols): Update.
597 (sort_pst_symbols): Update.
598 (maintenance_check_psymtabs): Update.
599 * python/py-framefilter.c (py_print_frame): Update.
600 * python/python.c (gdbpy_rbreak): Update.
601 * record-btrace.c (btrace_get_bfun_name): Update.
602 (btrace_call_history): Update.
603 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
604 (rs6000_skip_trampoline_code): Update.
605 * sol-thread.c (info_cb): Update.
606 * stabsread.c (scan_file_globals): Update.
607 * stack.c (find_frame_funname): Update.
608 (info_frame_command_core): Update.
609 * symmisc.c (dump_msymbols): Update.
610 * symtab.c (symbol_natural_name): Rename to..,
611 (general_symbol_info::natural_name): ...this.
612 (symbol_demangled_name): Rename to...
613 (general_symbol_info::demangled_name): ...this.
614 (symbol_search_name): Rename to...
615 (general_symbol_info::search_name): ...this.
616 (symbol_matches_search_name): Update.
617 (find_pc_sect_line): Update.
618 (skip_prologue_sal): Update.
619 (search_symbols): Update.
620 (print_msymbol_info): Update.
621 (rbreak_command): Update.
622 (completion_list_add_msymbol): Update.
623 (completion_list_objc_symbol): Update.
624 (get_msymbol_address): Update.
625 * symtab.h (struct general_symbol_info): Add member functions
626 natural_name (), linkage_name (), print_name (), demangled_name (),
628 (SYMBOL_NATURAL_NAME): Update.
629 (symbol_natural_name): Move to a member function on general_symbol_info.
630 (SYMBOL_DEMANGLED_NAME): Update.
631 (symbol_demangled_name): Move to a member function on
633 (SYMBOL_SEARCH_NAME): Update.
634 (symbol_search_name): Move to a member function on general_symbol_info.
635 (MSYMBOL_NATURAL_NAME): Remove.
636 (MSYMBOL_LINKAGE_NAME): Remove.
637 (MSYMBOL_PRINT_NAME): Remove.
638 (MSYMBOL_DEMANGLED_NAME): Remove.
639 (MSYMBOL_SEARCH_NAME): Remove.
640 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
642 2019-11-22 Christian Biesinger <cbiesinger@google.com>
644 * symtab.c (create_demangled_names_hash): Use per_bfd->
645 minimal_symbol_count for computing the initial size, if greater
646 than our default size.
648 2019-11-22 Tom de Vries <tdevries@suse.de>
650 * contrib/words.sh: Improve words extraction.
652 2019-11-22 Tom de Vries <tdevries@suse.de>
654 * contrib/words.sh: Combine sed invocations.
656 2019-11-21 Christian Biesinger <cbiesinger@google.com>
658 * Makefile.in: Update.
659 * demangle.c: Rename to...
660 * gdb-demangle.c: ..this.
661 (is_cplus_marker): Change return type to bool.
662 (_initialize_demangler): Rename to...
663 (_initialize_gdb_demangle): ...this.
664 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
665 * symtab.h (demangle): Remove declaration; instead include
668 2019-11-21 Tom Tromey <tromey@adacore.com>
670 * gdbsupport/format.c (format_pieces): Parse %I64d.
671 * unittests/format_pieces-selftests.c (test_windows_formats): New
673 (run_tests): Call it.
675 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
677 Byte reverse display of variables with DW_END_big, DW_END_little
678 (DW_AT_endianity) dwarf attributes if different than the native
680 * ada-lang.c (ada_value_binop):
681 Use type_byte_order instead of gdbarch_byte_order.
682 * ada-valprint.c (printstr):
683 (ada_val_print_string):
684 * ada-lang.c (value_pointer):
686 Use type_byte_order instead of gdbarch_byte_order.
687 * c-lang.c (c_get_string):
688 Use type_byte_order instead of gdbarch_byte_order.
689 * c-valprint.c (c_val_print_array):
690 Use type_byte_order instead of gdbarch_byte_order.
691 * cp-valprint.c (cp_print_class_member):
692 Use type_byte_order instead of gdbarch_byte_order.
693 * dwarf2loc.c (rw_pieced_value):
694 Use type_byte_order instead of gdbarch_byte_order.
695 * dwarf2read.c (read_base_type): Handle DW_END_big,
697 * f-lang.c (f_get_encoding):
698 Use type_byte_order instead of gdbarch_byte_order.
699 * findvar.c (default_read_var_value):
700 Use type_byte_order instead of gdbarch_byte_order.
701 * gdbtypes.c (check_types_equal):
702 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
703 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
704 and TYPE_ENDIANITY_LITTLE if set.
705 (type_byte_order): new function.
706 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
707 (struct main_type) <flag_endianity_not_default>:
709 (type_byte_order): New function.
710 * infcmd.c (default_print_one_register_info):
711 Use type_byte_order instead of gdbarch_byte_order.
712 * p-lang.c (pascal_printstr):
713 Use type_byte_order instead of gdbarch_byte_order.
714 * p-valprint.c (pascal_val_print):
715 Use type_byte_order instead of gdbarch_byte_order.
716 * printcmd.c (print_scalar_formatted):
717 Use type_byte_order instead of gdbarch_byte_order.
718 * solib-darwin.c (darwin_current_sos):
719 Use type_byte_order instead of gdbarch_byte_order.
720 * solib-svr4.c (solib_svr4_r_ldsomap):
721 Use type_byte_order instead of gdbarch_byte_order.
722 * stap-probe.c (stap_modify_semaphore):
723 Use type_byte_order instead of gdbarch_byte_order.
724 * target-float.c (target_float_same_format_p):
725 Use type_byte_order instead of gdbarch_byte_order.
726 * valarith.c (scalar_binop):
728 Use type_byte_order instead of gdbarch_byte_order.
729 * valops.c (value_cast):
730 Use type_byte_order instead of gdbarch_byte_order.
731 * valprint.c (generic_emit_char):
734 Use type_byte_order instead of gdbarch_byte_order.
735 * value.c (unpack_long):
736 (unpack_bits_as_long):
737 (unpack_value_bitfield):
740 (pack_unsigned_long):
741 Use type_byte_order instead of gdbarch_byte_order.
742 * findvar.c (unsigned_pointer_to_address):
743 (signed_pointer_to_address):
744 (unsigned_address_to_pointer):
745 (address_to_signed_pointer):
746 (default_read_var_value):
747 (default_value_from_register):
748 Use type_byte_order instead of gdbarch_byte_order.
749 * gnu-v3-abi.c (gnuv3_make_method_ptr):
750 Use type_byte_order instead of gdbarch_byte_order.
751 * riscv-tdep.c (riscv_print_one_register_info):
752 Use type_byte_order instead of gdbarch_byte_order.
754 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
756 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
757 (current_ui_gdb_stdin_ptr): Likewise.
758 (current_ui_gdb_stderr_ptr): Likewise.
759 (current_ui_gdb_stdlog_ptr): Likewise.
760 (current_ui_current_uiout_ptr): Likewise.
761 (gen_ret_current_ui_field_ptr): Remove.
763 2019-11-21 Tom de Vries <tdevries@suse.de>
766 * cli/cli-script.c (execute_control_command): Only switch to
767 INTERP_CONSOLE's ui_out when INTERP_MI is active.
769 2019-11-19 Tom Tromey <tom@tromey.com>
771 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
772 Now static. Change type of "name".
773 (tui_set_win_height_command): Don't copy "arg".
774 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
775 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
777 2019-11-19 Ali Tamur <tamur@google.com>
779 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
780 "if (attr != nullptr)".
781 (dwarf2_find_base_address): Likewise.
782 (dwarf2_build_include_psymtabs): Likewise.
783 (read_cutu_die_from_dwo): Likewise.
784 (read_func_scope): Likewise.
785 (read_call_site_scope): Likewise.
786 (dwarf2_get_pc_bounds): Likewise.
787 (dwarf2_record_block_ranges): Likewise.
788 (dwarf2_add_field): Likewise.
789 (dwarf2_add_member_fn): Likewise.
790 (read_structure_type): Likewise.
791 (read_enumeration_type): Likewise.
792 (read_array_type): Likewise.
793 (read_array_order): Likewise.
794 (read_set_type): Likewise.
795 (read_common_block): Likewise.
796 (read_tag_reference_type): Likewise.
797 (read_tag_string_type): Likewise.
798 (read_subroutine_type): Likewise.
799 (read_base_type): Likewise.
800 (read_subrange_type): Likewise.
801 (new_symbol): Likewise.
802 (prepare_one_comp_unit): Likewise.
804 2019-11-19 Tom Tromey <tromey@adacore.com>
806 * windows-nat.c (windows_nat_target::attach): Include GetLastError
807 result in error when DebugActiveProcess fails.
809 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
810 Pedro Alves <palves@redhat.com>
812 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
813 * target.c (target_stack::push): Call 'unpush' if there's a
814 target on top of the stack.
816 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
818 * python/py-block.c (blpy_dealloc): Call tp_free.
819 (blpy_block_syms_dealloc): Likewise.
820 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
821 * python/py-inferior.c (infpy_dealloc): Likewise.
822 * python/py-lazy-string.c (stpy_dealloc): Likewise.
823 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
824 * python/py-symbol.c (sympy_dealloc): Likewise.
825 * python/py-symtab.c (stpy_dealloc): Likewise.
826 * python/py-type.c (typy_iterator_dealloc): Likewise.
828 2019-11-18 Christian Biesinger <cbiesinger@google.com>
830 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
831 constructor instead of using a class initializer.
833 2019-11-15 Christian Biesinger <cbiesinger@google.com>
835 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
836 * configure: Regenerate.
837 * configure.ac: Don't source common.host.
838 * gdbsupport/common.host: Remove.
839 * gdbsupport/mingw-strerror.c: Remove.
840 * gdbsupport/posix-strerror.c: Rename to...
841 * gdbsupport/safe-strerror.c: ...this.
843 2019-11-15 Christian Biesinger <cbiesinger@google.com>
845 * maint.c (scoped_command_stats::print_time): Use localtime_r
846 instead of localtime (provided through gnulib if necessary).
847 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
850 2019-11-15 Christian Biesinger <cbiesinger@google.com>
852 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
853 avoid compile errors.
855 2019-11-15 Christian Biesinger <cbiesinger@google.com>
857 * config.in: Regenerate.
858 * configure: Regenerate.
859 * gdbsupport/common.m4: No longer check for strerror_r.
860 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
861 POSIX version of strerror_r, now that gnulib provides it if
864 2019-11-14 Christian Biesinger <cbiesinger@google.com>
866 * README (`configure' options): Update.
868 2019-11-14 Tom Tromey <tromey@adacore.com>
870 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
871 expected type for the RHS if the LHS is a convenience variable.
873 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
875 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
876 Provide explicit default and copy constructor.
878 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
880 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
881 only call Py_INCREF (newbp) in the bppy_pending_object case.
883 2019-11-13 Tom Tromey <tromey@adacore.com>
886 * psympriv.h (partial_symbol): Remove static assert.
887 * symtab.h (general_symbol_info, symbol): Remove static assert.
889 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
891 * gdbsupport/format.c (format_pieces::format_pieces): Support
892 printf 'z' size modifier.
893 * gdbsupport/format.h (enum argclass): Add size_t_arg.
894 * printcmd.c (ui_printf): Handle size_t_arg.
895 * ui-out.c (ui_out::vmessage): Likewise.
896 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
898 (run_tests): Call test_format_int_sizes.
900 2019-11-12 Christian Biesinger <cbiesinger@google.com>
902 * ada-exp.y (write_ambiguous_var): Update.
903 * buildsym.c (add_symbol_to_list): Update.
904 * dwarf2read.c (read_variable): Update.
905 (new_symbol): Update.
906 * jit.c (finalize_symtab): Update.
907 * language.c (language_alloc_type_symbol): Update.
908 * symtab.c (fixup_symbol_section): Update.
909 (initialize_objfile_symbol_1): Move code to...
910 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
911 (allocate_symbol): Update.
912 (allocate_template_symbol): Update.
913 (get_symbol_address): Update.
914 * symtab.h (struct symbol): Inherit from general_symbol_info instead
915 of having as a field, and add a constructor.
916 (SYMBOL_VALUE): Update.
917 (SYMBOL_VALUE_ADDRESS): Update.
918 (SET_SYMBOL_VALUE_ADDRESS): Update.
919 (SYMBOL_VALUE_BYTES): Update.
920 (SYMBOL_VALUE_COMMON_BLOCK): Update.
921 (SYMBOL_BLOCK_VALUE): Update.
922 (SYMBOL_VALUE_CHAIN): Update.
923 (SYMBOL_LANGUAGE): Update.
924 (SYMBOL_SECTION): Update.
925 (SYMBOL_OBJ_SECTION): Update.
926 (SYMBOL_SET_LANGUAGE): Update.
927 (SYMBOL_SET_LINKAGE_NAME): Update.
928 (SYMBOL_SET_NAMES): Update.
929 (SYMBOL_NATURAL_NAME): Update.
930 (SYMBOL_LINKAGE_NAME): Update.
931 (SYMBOL_DEMANGLED_NAME): Update.
932 (SYMBOL_SEARCH_NAME): Update.
933 (SYMBOL_MATCHES_SEARCH_NAME): Update.
934 (struct symbol): Update.
935 (struct template_symbol): Update.
936 (struct rust_vtable_symbol): Update.
937 * xcoffread.c (SYMBOL_DUP): Update.
939 2019-11-12 Tom Tromey <tom@tromey.com>
941 * tui/tui-layout.c (show_layout): Set current_layout.
942 (show_source_disasm_command, show_data)
943 (show_source_or_disasm_and_command): Don't set current_layout.
945 2019-11-12 Tom Tromey <tom@tromey.com>
947 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
949 2019-11-12 Tom Tromey <tom@tromey.com>
951 * tui/tui-win.c (resize_message): New global.
952 (show_tui_resize_message): New function.
953 (tui_async_resize_screen): Print message if requested.
954 (_initialize_tui_win): Add tui-resize-message setting.
955 * NEWS: Add entry for new commands.
957 2019-11-11 Tom Tromey <tom@tromey.com>
959 * tui/tui.c (tui_initialize_readline): Add new bindable readline
962 2019-11-11 Christian Biesinger <cbiesinger@google.com>
964 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
966 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
968 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
970 * python/python-internal.h (gdbpy_lookup_static_symbols):
971 Declare new function.
972 * python/python.c (python_GdbMethods): Add
973 gdb.lookup_static_symbols method.
974 * NEWS: Mention gdb.lookup_static_symbols.
976 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
978 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
979 static block of current object file first. Also fix typo in
982 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
984 * stack.c (set_last_displayed_sal): Delete.
985 (last_displayed_sal_valid): Delete.
986 (last_displayed_pspace): Delete.
987 (last_displayed_addr): Delete.
988 (last_displayed_symtab): Delete.
989 (last_displayed_line): Delete.
990 (class last_displayed_symtab_info_type): New.
991 (last_displayed_symtab_info): New static global variable.
992 (print_frame_info): Call methods on last_displayed_symtab_info.
993 (clear_last_displayed_sal): Update header comment, and make use of
994 last_displayed_symtab_info.
995 (last_displayed_sal_is_valid): Likewise.
996 (get_last_displayed_pspace): Likewise.
997 (get_last_displayed_addr): Likewise.
998 (get_last_displayed_symtab): Likewise.
999 (get_last_displayed_line): Likewise.
1000 (get_last_displayed_sal): Likewise.
1001 * stack.h (clear_last_displayed_sal): Update header comment.
1002 (last_displayed_sal_is_valid): Likewise.
1003 (get_last_displayed_pspace): Likewise.
1004 (get_last_displayed_addr): Likewise.
1005 (get_last_displayed_symtab): Likewise.
1006 (get_last_displayed_line): Likewise.
1007 (get_last_displayed_sal): Likewise.
1009 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1011 * stack.c (frame_show_address): Convert return type to bool.
1012 * stack.h (frame_show_address): Likewise, and update header
1015 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1017 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1018 * unittests/vec-utils-selftests.c: New file.
1019 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1021 2019-11-10 Tom Tromey <tom@tromey.com>
1023 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1024 (tui_highlight_win): Likewise.
1025 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1026 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1027 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1028 Don't set can_highlight.
1030 2019-11-10 Tom Tromey <tom@tromey.com>
1032 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1033 Remove unused declaration.
1035 2019-11-08 Tom Tromey <tromey@adacore.com>
1037 * top.c (read_command_file): Update.
1038 (command_line_input): Make return type const.
1039 * python/py-gdb-readline.c: Update.
1040 * linespec.c (decode_line_2): Update.
1041 * defs.h (command_line_input): Make return type const.
1042 * cli/cli-script.c (read_next_line): Make return type const.
1043 * ada-lang.c (get_selections): Update.
1045 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1047 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1048 * mi/mi-main.c (output_cores): Likewise.
1049 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1050 (linux_xfer_osdata_modules): Likewise.
1051 * remote.c (register_remote_support_xml): Likewise.
1052 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1053 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1055 2019-11-06 Tom Tromey <tom@tromey.com>
1057 * tui/tui-interp.c: Don't include readline.h.
1058 * tui/tui-hooks.c: Don't include readline.h.
1059 * symmisc.c: Include tilde.h, not readline.h.
1060 * symfile.c: Include tilde.h, not readline.h.
1061 * source.c: Include tilde.h, not readline.h.
1062 * solib.c: Include tilde.h, not readline.h.
1063 * psymtab.c: Include tilde.h, not readline.h.
1064 * exec.c: Include tilde.h, not readline.h.
1065 * corelow.c: Include tilde.h, not readline.h.
1066 * cli/cli-dump.c: Include tilde.h, not readline.h.
1067 * cli/cli-cmds.c: Don't include readline.h.
1069 2019-11-05 Tom Tromey <tom@tromey.com>
1071 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1072 (tui_disassemble): Set addr_size.
1073 (tui_disasm_window::set_contents): Use addr_size.
1075 2019-11-05 Tom Tromey <tom@tromey.com>
1077 * rust-lang.c (rust_language_defn): Update.
1078 * python/py-value.c (valpy_string): Call c_get_string.
1079 * p-lang.c (pascal_language_defn): Update.
1080 * opencl-lang.c (opencl_language_defn): Update.
1081 * objc-lang.c (objc_language_defn): Update.
1082 * m2-lang.c (m2_language_defn): Update.
1083 * language.c (unknown_language_defn, auto_language_defn): Update.
1084 (default_get_string): Remove.
1085 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1086 * go-lang.c (go_language_defn): Update.
1087 * f-lang.c (f_language_defn): Update.
1088 * d-lang.c (d_language_defn): Update.
1089 * c-lang.c (c_language_defn, cplus_language_defn)
1090 (asm_language_defn, minimal_language_defn): Update.
1091 * ada-lang.c (ada_language_defn): Update.
1092 * language.h (struct language_defn) <la_get_string>: Remove.
1093 (LA_GET_STRING): Remove.
1094 (default_get_string): Don't declare.
1096 2019-11-05 Tom Tromey <tom@tromey.com>
1098 * tui/tui-source.h (struct tui_source_window): Inline
1099 constructor. Remove destructor.
1100 <style_changed, m_observable>: Move to superclass.
1101 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1102 (struct tui_source_window_base): Move private members to end.
1103 <style_changed, m_observable>: Move from tui_source_window.
1104 * tui/tui-winsource.c (tui_copy_source_line): Move from
1105 tui-source.c. Rename from copy_source_line. Add special handling
1106 for negative line number.
1107 (tui_source_window_base::style_changed): Move from
1109 (tui_source_window_base): Register observer.
1110 (~tui_source_window_base): New.
1111 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1113 (tui_source_window::set_contents): Use tui_copy_source_line.
1114 (tui_source_window::tui_source_window): Move to tui-source.h.
1115 (tui_source_window::~tui_source_window): Remove.
1116 (tui_source_window::style_changed): Move to superclass.
1117 * tui/tui-disasm.c (tui_disassemble): Create string file with
1118 styling, when possible. Add "addr_size" parameter.
1119 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1120 Don't compute maximum size.
1121 (len_without_escapes): New function
1123 2019-11-05 Tom Tromey <tom@tromey.com>
1125 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1127 * tui/tui-winsource.c (tui_show_source_line): Update.
1128 * tui/tui-source.c (tui_source_window::set_contents): Update.
1129 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1131 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1133 * symtab.h (gdb_static_assert): Put && operator at the beginning
1134 of the line instead of the end.
1136 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1138 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1139 and sizeof (symbol).
1140 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1142 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1144 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1145 * configure.host: Mark *-*-solaris2.10* obsolete.
1146 * configure.tgt: Mark Solaris < 11 obsolete.
1147 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1148 Update target triplet.
1150 2019-11-01 Tom Tromey <tromey@adacore.com>
1152 * utils.c (print_sys_errmsg): Simplify.
1154 2019-11-01 Tom Tromey <tromey@adacore.com>
1156 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1158 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1160 * configure: Regenerate.
1161 * configure.ac: Remove check for strerror_r.
1162 * gdbsupport/common.m4: Check for strerror_r.
1164 2019-11-01 Luis Machado <luis.machado@linaro.org>
1168 * arm-tdep.c (arm_per_objfile): Rename to ...
1169 (arm_per_bfd): ... this.
1170 (arm_objfile_data_key): Rename to ...
1171 (arm_bfd_data_key): ... this.
1172 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1174 (arm_record_special_symbol): Likewise.
1176 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1178 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1180 * c-typeprint.c (c_print_typedef): Likewise.
1181 * f-typeprint.c (f_print_typedef): Likewise.
1182 * m2-typeprint.c (m2_print_typedef): Likewise.
1183 * p-typeprint.c (pascal_print_typedef): Likewise.
1184 * rust-lang.c (rust_print_typedef): Likewise.
1185 * symtab.c (print_symbol_info): Print a newline after calling
1188 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1190 * symtab.c (info_module_cmdlist): New variable.
1191 (info_module_command): New function.
1192 (search_module_symbols): New function.
1193 (info_module_subcommand): New function.
1194 (struct info_modules_var_func_options): New struct.
1195 (info_modules_var_func_options_defs): New variable.
1196 (make_info_modules_var_func_options_def_group): New function.
1197 (info_module_functions_command): New function.
1198 (info_module_variables_command): New function.
1199 (info_module_var_func_command_completer): New function.
1200 (_initialize_symtab): Register new 'info module functions' and
1201 'info module variables' commands.
1202 * symtab.h (typedef symbol_search_in_module): New typedef.
1203 (search_module_symbols): Declare new function.
1204 * NEWS: Mention new commands.
1206 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1208 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1209 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1210 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1212 (scan_partial_symbols): Only create partial module symbols for non
1214 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1216 * symtab.c (search_domain_name): Likewise.
1217 (search_symbols): Likewise.
1218 (print_symbol_info): Likewise.
1219 (symtab_symbol_info): Likewise.
1220 (info_modules_command): New function.
1221 (_initialize_symtab): Register 'info modules' command.
1222 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1223 * NEWS: Mention new 'info modules' command.
1225 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1227 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1228 and $_gdb_maint_setting_str.
1230 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1232 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1233 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1234 (str_value_from_setting, gdb_setting_str_internal_fn)
1235 (gdb_maint_setting_str_internal_fn): New functions.
1236 (_initialize_cli_cmds): Define the new convenience functions.
1237 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1238 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1240 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1242 * agent.c (set_can_use_agent): When the setting is turned on,
1243 look up agent symbols if we don't have them yet.
1244 (agent_new_objfile): Don't look up agent symbols when the agent
1247 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1249 * config.in: Regenerate.
1251 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1253 * configure: Regenerate.
1254 * configure.ac: Check for strerror_r.
1255 * gdbsupport/common-utils.h (safe_strerror): Change return value
1256 to const char * and document that this function is now threadsafe.
1257 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1258 thread_local and call strerror_r, if available.
1259 * utils.c (perror_string): Update.
1260 (print_sys_errmsg): Update.
1262 2019-10-31 Luis Machado <luis.machado@linaro.org>
1264 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1266 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1267 objfile to fetch per-bfd data.
1268 (arm_find_exidx_entry): Likewise.
1270 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1272 * gdbsupport/agent.c (debug_agent): Change type to bool.
1273 (use_agent): Likewise.
1274 (all_agent_symbols_look_up): Likewise.
1275 (agent_loaded_p): Change return value to bool.
1276 (agent_look_up_symbols): Update.
1277 (agent_capability_check): Change return value to bool.
1278 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1279 (debug_agent): Change type to bool.
1280 (use_agent): Likewise.
1281 (agent_capability_check): Change return value to bool.
1283 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1285 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1286 (build_minimal_symbol_hash_tables): Code to clear the table moved
1287 to clear_minimal_symbol_hash_tables.
1288 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1291 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1293 * infcmd.c: Remove includes.
1294 * infrun.c: Remove includes.
1296 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1298 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1299 (grow_vect): Remove declaration.
1300 (ada_type_of_array): Remove declaration.
1301 (ada_update_initial_language): Remove declaration.
1302 (ada_fold_name): Remove declaration.
1303 (ada_fill_in_ada_prototype): Remove declaration.
1304 (user_select_syms): Remove declaration.
1305 (get_selections): Remove declaration.
1306 (ada_tag_type): Remove declaration.
1307 (ada_value_tag): Remove declaration.
1308 (ada_is_others_clause): Remove declaration.
1309 (ada_in_variant): Remove declaration.
1310 (ada_value_struct_elt): Remove declaration.
1311 (ada_attribute_name): Remove declaration.
1312 (ada_system_address_type): Remove declaration.
1313 * ada-lang.c (ada_watch_location_expression): Make static.
1314 (GROW_VECT): Move here from ada-lang.h.
1315 (grow_vect): Make static.
1316 (ada_update_initial_language): Make static.
1317 (ada_fold_name): Make static.
1318 (ada_type_of_array): Make static.
1319 (encoded_ordered_before): Move up.
1320 (sort_choices): Move up.
1321 (print_signatures): Move up.
1322 (ada_print_symbol_signature): Move up.
1323 (get_selections): Move up and make static.
1324 (user_select_syms): Move up and make static.
1325 (ada_value_struct_elt): Move up and make static.
1326 (ada_tag_type): Make static.
1327 (ada_value_tag): Make static.
1328 (ada_is_others_clause): Make static.
1329 (ada_in_variant): Make static.
1330 (ada_attribute_name): Make static.
1332 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1334 * ada-lang.c: Remove includes.
1335 * ada-typeprint.c: Remove includes.
1336 * ada-valprint.c: Remove includes.
1338 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1340 * addrmap.c: Add static assertions of type size, moved from
1341 _initialize_addrmap.
1342 (_initialize_addrmap): Remove.
1344 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1346 * coffread.c (record_minimal_symbol): Update.
1347 (process_coff_symbol): Update.
1348 * dbxread.c (read_dbx_symtab): Update.
1349 * dwarf2read.c (add_partial_symbol): Update.
1350 (fixup_go_packaging): Update.
1351 (load_partial_dies): Update.
1352 (new_symbol): Update.
1353 * elfread.c (record_minimal_symbol): Change signature to use
1354 gdb::string_view instead of name+len.
1355 (elf_symtab_read): Update.
1356 (elf_rel_plt_read): Update.
1357 * mdebugread.c (parse_partial_symbols): Update.
1358 (handle_psymbol_enumerators): Update.
1359 (new_symbol): Update.
1360 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1361 to use gdb::string_view instead of name+len.
1362 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1363 * psympriv.h (add_psymbol_to_list): Likewise.
1364 * psymtab.c (add_psymbol_to_bcache): Likewise.
1365 (add_psymbol_to_list): Likewise.
1366 * stabsread.c (define_symbol): Update.
1367 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1368 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1369 (symbol_set_names): Likewise.
1370 * xcoffread.c (scan_xcoff_symtab): Update.
1372 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1374 * symtab.h (symbol_set_names): Document that copy_name must be
1375 set to true for non-nullterminated strings.
1376 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1377 linkage_name if the entry was not found and we need to demangle.
1379 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1381 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1382 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1383 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1384 * gdbsupport/gdb_binary_search.h: New file.
1386 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1388 * NEWS: Mention new --with-system-gdbinit-dir option.
1389 * config.in: Regenerate.
1390 * configure: Regenerate.
1391 * configure.ac: Add new option --with-system-gdbinit-dir.
1392 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1393 for a ".gdb" suffix.
1394 * main.c (get_init_files): Change system_gdbinit argument to
1395 a vector and return the files in SYSTEM_GDBINIT_DIR in
1396 addition to SYSTEM_GDBINIT.
1397 (captured_main_1): Update.
1398 (print_gdb_help): Update.
1399 * top.c (print_gdb_configuration): Also print the value of
1402 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1404 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1405 that takes gdb::string_view arguments.
1407 2019-10-26 Tom de Vries <tdevries@suse.de>
1409 * aarch64-linux-tdep.c: Fix typos in comments.
1410 * aarch64-tdep.c: Same.
1412 * amd64-nat.c: Same.
1414 * arch/aarch64-insn.c: Same.
1416 * breakpoint.h: Same.
1419 * cli/cli-decode.c: Same.
1420 * cli/cli-script.c: Same.
1421 * cli/cli-utils.h: Same.
1422 * coff-pe-read.c: Same.
1424 * compile/compile-cplus-symbols.c: Same.
1425 * compile/compile-object-run.c: Same.
1426 * completer.c: Same.
1428 * cp-support.c: Same.
1430 * dwarf-index-write.c: Same.
1431 * dwarf2-frame.c: Same.
1432 * dwarf2-frame.h: Same.
1434 * frame-base.h: Same.
1439 * guile/scm-objfile.c: Same.
1440 * i386-tdep.c: Same.
1441 * i386-tdep.h: Same.
1444 * linux-nat.c: Same.
1445 * m68k-tdep.c: Same.
1448 * mi/mi-cmd-disas.c: Same.
1449 * mi/mi-getopt.h: Same.
1450 * mi/mi-main.c: Same.
1452 * nat/aarch64-sve-linux-sigcontext.h: Same.
1454 * ppc-linux-nat.c: Same.
1455 * ppc-linux-tdep.c: Same.
1457 * progspace.h: Same.
1458 * prologue-value.h: Same.
1459 * python/py-evtregistry.c: Same.
1460 * python/py-instruction.h: Same.
1461 * record-btrace.c: Same.
1462 * record-full.c: Same.
1464 * rs6000-tdep.c: Same.
1466 * sol-thread.c: Same.
1467 * sparc-sol2-tdep.c: Same.
1468 * sparc64-tdep.c: Same.
1469 * stabsread.c: Same.
1473 * tracepoint.c: Same.
1474 * tui/tui-data.h: Same.
1475 * tui/tui-io.c: Same.
1476 * tui/tui-win.c: Same.
1478 * unittests/rsp-low-selftests.c: Same.
1479 * user-regs.h: Same.
1490 * xtensa-tdep.c: Same.
1492 2019-10-25 Ali Tamur <tamur@google.com>
1494 * charset.c (find_charset_names): Reflect API change.
1496 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1498 * symtab.c (struct demangled_name_entry): Change demangled name
1499 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1500 part of the struct anymore.
1501 (symbol_set_names): No longer obstack allocate + copy the demangled
1502 name, just store the allocated name from bfd.
1504 2019-10-25 Tom Tromey <tromey@adacore.com>
1506 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1507 (bsearch_cie_cmp, add_cie): Remove.
1508 (find_cie): Reimplement.
1509 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1510 (dwarf2_build_frame_info): Update.
1512 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1515 * symfile.c (reread_symbols): Call forget_cached_source_info to
1516 clear the stale source cache.
1518 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1520 * configure: Regenerate.
1521 * configure.ac: Remove code that sets python_has_threads.
1523 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1525 * config.in: Regenerate.
1526 * configure: Regenerate.
1527 * configure.ac: Remove the code that uses sed to get the python
1528 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1530 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1532 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1535 2019-10-23 Tom Tromey <tom@tromey.com>
1537 * arc-tdep.c: Remove ".." from include.
1538 * frv-tdep.c: Remove ".." from include.
1539 * lm32-tdep.c: Remove ".." from include.
1540 * microblaze-tdep.c: Remove ".." from include.
1541 * or1k-tdep.h: Remove ".." from include.
1542 * s12z-tdep.c: Remove ".." from include.
1543 * Makefile.in (OPCODES_CFLAGS): Add comment.
1544 (TOP_CFLAGS): New variable.
1545 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1547 2019-10-23 Tom Tromey <tom@tromey.com>
1549 * Makefile.in (READLINE_DIR): Update.
1551 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1553 * infcall.c (call_function_by_hand_dummy): Fix the function
1554 comment. And extract out a code section into...
1555 (reserve_stack_space): ...this new function.
1557 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1559 * infcall.c (value_arg_coerce): Remove an unused parameter.
1560 (call_function_by_hand_dummy): Update the call to
1563 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1565 * infcall.c (call_function_by_hand_dummy): Refactor.
1567 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1569 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1571 2019-10-23 Tom Tromey <tom@tromey.com>
1573 * configure: Rebuild.
1574 * configure.ac: Don't check for sigprocmask.
1575 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1577 2019-10-23 Tom Tromey <tom@tromey.com>
1579 * configure: Rebuild.
1580 * acinclude.m4: Use m4_include, not sinclude.
1582 2019-10-23 Tom de Vries <tdevries@suse.de>
1584 PR breakpoints/24687
1585 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1587 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1589 * symtab.c (struct demangled_name_entry) <language>: Change from
1590 bitfield to regular variable.
1592 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1594 * symtab.c (struct demangled_name_entry): Add a constructor.
1595 (free_demangled_name_entry): New function to call the destructor
1596 for demangled_name_entry.
1597 (create_demangled_names_hash): Pass free_demangled_name_entry to
1599 (symbol_set_names): Call placement new for demangled_name_entry.
1600 * utils.c: No longer include xxhash.h here, now that fast_hash
1601 is inlined in the header.
1602 * utils.h: Instead, include it here.
1604 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1606 * Makefile.in: Link with libxxhash.
1607 * config.in: Regenerate.
1608 * configure: Regenerate.
1609 * configure.ac: Search for libxxhash.
1610 * utils.c (fast_hash): Use xxhash if present.
1612 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1614 * utils.h (fast_hash): New function.
1615 * symtab.c (hash_demangled_name_entry): Call new function
1618 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1620 * symtab.c (struct demangled_name_entry): Change type of mangled
1621 to gdb::string_view. Also adds a constructor that takes the
1623 (hash_demangled_name_entry): Update.
1624 (eq_demangled_name_entry): Update.
1625 (free_demangled_name_entry): New function to call the destructor
1626 now that this is not a POD anymore.
1627 (create_demangled_names_hash): Pass free_demangled_name_entry to
1629 (symbol_set_names): Update.
1631 2019-10-21 Ali Tamur <tamu@google.com>
1633 * dwarf2read.c (dir_index): Change type.
1634 (file_name_index): Likewise.
1635 (line_header::include_dir_at): Change comment and implementation on
1636 whether it is DWARF 5.
1637 (line_header::is_valid_file_index): New function.
1638 (line_header::file_name_at): Change comment and implementation on
1639 whether it is DWARF 5.
1640 (line_header::file_names): Change to private field renamed as
1641 m_file_names and introduce a new accessor method.
1642 (line_header::file_names_size): New method.
1643 (line_header::include_dirs): Change to private field and rename as
1645 (dw2_get_file_names_reader): Define local var at a smaller scope and
1647 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1648 (process_structure_scope): Likewise.
1649 (line_header::add_include_dir): Change message and reflect renaming.
1650 (line_header::add_file_name): Likewise.
1651 (read_formatted_entries): Handle DW_FORM_data16.
1652 (dwarf_decode_line_header): Fix line header length calculation.
1653 (psymtab_include_file_name): Change comment and API.
1654 (lnp_state_machine::m_file): Update comment and reflect type change.
1655 (lnp_state_machine::record_line): Reflect type change.
1656 (dwarf_decode_lines): Reflect API change.
1657 (file_file_name): Likewise.
1658 (file_full_name): Likewise.
1660 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1662 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1664 2019-10-21 Tom Tromey <tom@tromey.com>
1666 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1668 2019-10-21 Tom Tromey <tom@tromey.com>
1670 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1671 NM_H. Use AC_CONFIG_LINKS.
1672 * configure: Rebuild.
1673 * Makefile.in (NM_H): New variable.
1674 (generated_files): Add NM_H. Remove gcore.
1675 (nm.h, stamp-nmh): New targets.
1677 2019-10-20 Tom Tromey <tom@tromey.com>
1679 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1680 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1682 (put_objfile_before): Now static.
1684 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1686 * gdbsupport/common-utils.h (startswith): Change return type to
1689 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1691 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1692 * breakpoint.c (bp_locations_compare): Rename to...
1693 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1694 (update_global_location_list): Use std::sort instead of qsort.
1695 * buildsym.c (compare_line_numbers): Rename to...
1696 (lte_is_less_than): ...this, and change to std::sort semantics.
1697 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1699 * disasm.c (compare_lines): Rename to...
1700 (line_is_less_than): ...this, and change to std::sort semantics.
1701 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1703 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1704 (fde_is_less_than): ...this, and change to std::sort semantics.
1705 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1706 * mdebugread.c (compare_blocks):
1707 (block_is_less_than): ...this, and change to std::sort semantics.
1708 (sort_blocks): Call std::sort instead of qsort.
1709 * objfiles.c (qsort_cmp): Rename to...
1710 (sort_cmp): ...this, and change to std::sort semantics.
1711 (update_section_map): Call std::sort instead of qsort.
1712 * remote.c (compare_pnums): Remove.
1713 (map_regcache_remote_table): Call std::sort instead of qsort.
1714 * utils.c (compare_positive_ints): Remove.
1715 * utils.h (compare_positive_ints): Remove.
1716 * xcoffread.c (compare_lte): Remove.
1717 (arrange_linetable): Call std::sort instead of qsort.
1719 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1721 * symfile.c (init_entry_point_info): Fix typo.
1722 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1724 2019-10-18 Tom de Vries <tdevries@suse.de>
1726 * aarch64-tdep.c: Fix typos in comments.
1728 * ada-tasks.c: Same.
1729 * alpha-tdep.c: Same.
1730 * alpha-tdep.h: Same.
1731 * amd64-nat.c: Same.
1732 * amd64-windows-tdep.c: Same.
1735 * arch-utils.c: Same.
1736 * arm-nbsd-tdep.c: Same.
1739 * blockframe.c: Same.
1742 * coff-pe-read.c: Same.
1744 * cris-tdep.c: Same.
1745 * darwin-nat.c: Same.
1749 * dtrace-probe.c: Same.
1750 * dwarf-index-write.c: Same.
1751 * dwarf2-frame-tailcall.c: Same.
1752 * dwarf2-frame.c: Same.
1753 * dwarf2read.c: Same.
1755 * exceptions.c: Same.
1756 * fbsd-tdep.c: Same.
1760 * gnu-v3-abi.c: Same.
1762 * h8300-tdep.c: Same.
1763 * hppa-tdep.c: Same.
1764 * i386-linux-tdep.c: Same.
1765 * i386-tdep.c: Same.
1766 * ia64-libunwind-tdep.c: Same.
1767 * ia64-tdep.c: Same.
1771 * linux-nat.c: Same.
1772 * linux-thread-db.c: Same.
1773 * machoread.c: Same.
1774 * mdebugread.c: Same.
1776 * mn10300-tdep.c: Same.
1777 * namespace.c: Same.
1779 * opencl-lang.c: Same.
1780 * or1k-tdep.c: Same.
1782 * ppc-linux-nat.c: Same.
1783 * ppc-linux-tdep.c: Same.
1784 * ppc-sysv-tdep.c: Same.
1787 * record-btrace.c: Same.
1788 * record-full.c: Same.
1789 * remote-fileio.c: Same.
1791 * rs6000-tdep.c: Same.
1792 * s12z-tdep.c: Same.
1793 * score-tdep.c: Same.
1797 * sol-thread.c: Same.
1798 * solib-svr4.c: Same.
1801 * sparc-nat.c: Same.
1802 * sparc-sol2-tdep.c: Same.
1803 * sparc-tdep.c: Same.
1804 * sparc64-tdep.c: Same.
1805 * stabsread.c: Same.
1809 * target-descriptions.c: Same.
1810 * target-float.c: Same.
1817 * windows-nat.c: Same.
1818 * xcoffread.c: Same.
1819 * xstormy16-tdep.c: Same.
1820 * xtensa-tdep.c: Same.
1822 2019-10-17 Tom Tromey <tromey@adacore.com>
1824 * configure: Rebuild.
1825 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1826 in AC_CONFIG_FILES invocation.
1827 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1828 new-style config.status invocation.
1830 2019-10-17 Tom de Vries <tdevries@suse.de>
1832 * arm-nbsd-nat.c: Fix typos in comments.
1834 * darwin-nat-info.c: Same.
1835 * dwarf2read.c: Same.
1837 * event-top.c: Same.
1840 * hppa-tdep.c: Same.
1841 * i386-tdep.c: Same.
1844 * mdebugread.c: Same.
1845 * moxie-tdep.c: Same.
1846 * nto-procfs.c: Same.
1848 * ppc-linux-tdep.c: Same.
1850 * riscv-tdep.c: Same.
1851 * s390-tdep.c: Same.
1853 * sparc-linux-tdep.c: Same.
1854 * sparc-nat.c: Same.
1856 * target-descriptions.c: Same.
1860 2019-10-16 Tom Tromey <tom@tromey.com>
1862 * objfiles.h (struct objfile) <original_name>: Now const.
1864 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1866 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1867 pass on to sigsetjmp's second argument.
1868 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1870 2019-10-16 Keith Seitz <keiths@redhat.com>
1873 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1874 sections whose size is greater than the file size.
1876 2019-10-16 Jim Wilson <jimw@sifive.com>
1878 * riscv-tdep.c (riscv_gcc_target_options): New.
1879 (riscv_gnu_triplet_regexp): New.
1880 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1881 set_gdbarch_gnu_triplet_regexp.
1883 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1885 * Makefile.in: Add xml-builtin.h.
1886 * features/feature_to_c.sh: Add an include for xml-builtin.h
1887 to ensure that the compiler checks that the types match.
1888 * xml-builtin.h: New file.
1889 * xml-support.c (fetch_xml_builtin): Add missing const.
1890 * xml-support.h: Remove declaration of xml_builtins.
1892 2019-10-16 Tom de Vries <tdevries@suse.de>
1895 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1896 (amd64_classify_aggregate): ... here.
1897 (amd64_classify_aggregate_field): Handled fiels of nested structs
1900 2019-10-16 Tom de Vries <tdevries@suse.de>
1903 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1904 that handles 'theclass'.
1906 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1908 * linespec.c (decode_digits_ordinary): Update comment.
1909 * make-target-delegates: No longer need to handle VEC case.
1910 * memrange.c (normalize_mem_ranges): Update comment.
1911 * namespace.c (add_using_directive): Update comment.
1912 * objc-lang.c (uniquify_strings): Update comment.
1913 * ppc-linux-nat.c (struct thread_points): Update comment.
1914 * probe.h (find_probes_in_objfile): Update comment.
1915 * target.h (enum flash_preserve_mode): Update comment.
1916 * varobj.c (varobj_restrict_range): Update comment.
1917 * varobj.h (varobj_list_children): Update comment.
1919 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1921 * Makefile.in: Remove references to vec.h and vec.c.
1922 * aarch64-tdep.c: No longer include vec.h.
1923 * ada-lang.c: Likewise.
1924 * ada-lang.h: Likewise.
1925 * arm-tdep.c: Likewise.
1927 * breakpoint.h: Likewise.
1928 * charset.c: Likewise.
1929 * cp-support.h: Likewise.
1930 * dtrace-probe.c: Likewise.
1931 * dwarf2read.c: Likewise.
1932 * extension.h: Likewise.
1933 * gdb_bfd.c: Likewise.
1934 * gdbsupport/gdb_vecs.h: Likewise.
1935 * gdbsupport/vec.c: Remove.
1936 * gdbsupport/vec.h: Remove.
1937 * gdbthread.h: Likewise.
1938 * guile/scm-type.c: Likewise.
1939 * inline-frame.c: Likewise.
1940 * machoread.c: Likewise.
1941 * memattr.c: Likewise.
1942 * memrange.h: Likewise.
1943 * namespace.h: Likewise.
1944 * nat/linux-btrace.h: Likewise.
1945 * osdata.c: Likewise.
1946 * parser-defs.h: Likewise.
1947 * progspace.h: Likewise.
1948 * python/py-type.c: Likewise.
1949 * record-btrace.c: Likewise.
1950 * rust-exp.y: Likewise.
1951 * solib-target.c: Likewise.
1952 * stap-probe.c: Likewise.
1953 * target-descriptions.c: Likewise.
1954 * target-memory.c: Likewise.
1955 * target.h: Likewise.
1956 * varobj.c: Likewise.
1957 * varobj.h: Likewise.
1958 * xml-support.h: Likewise.
1960 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1962 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1963 Update for new std::vector based implementation.
1964 (process_psymtab_comp_unit_reader): Likewise.
1965 (scan_partial_symbols): Likewise.
1966 (recursively_compute_inclusions): Likewise.
1967 (compute_compunit_symtab_includes): Likewise.
1968 (process_imported_unit_die): Likewise.
1969 (queue_and_load_dwo_tu): Likewise.
1970 (follow_die_sig_1): Likewise.
1971 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1972 (typedef dwarf2_per_cu_ptr): Remove.
1973 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1975 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1976 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1977 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1978 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1981 2019-10-15 Tom Tromey <tromey@adacore.com>
1983 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1986 2019-10-15 Tom Tromey <tromey@adacore.com>
1988 * windows-nat.c (windows_nat_target::fetch_registers)
1989 (windows_nat_target::store_registers): Rename "pid" to "tid".
1991 2019-10-15 Tom Tromey <tromey@adacore.com>
1993 * gdbarch.h, gdbarch.c: Rebuild.
1994 * gdbarch.sh (gcc_target_options): Change return type to
1996 * compile/compile.c (get_args): Update.
1997 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1998 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2000 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2002 * arch-utils.c (default_gcc_target_options): Return std::string.
2003 * arch-utils.h (default_gcc_target_options): Return std::string.
2004 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2006 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2008 * breakpoint.c (breakpoint_chain): Make static.
2009 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2010 of accessing breakpoint_chain.
2012 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2014 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2015 to a gdb::function_view and return value to bool.
2016 * breakpoint.h (iterate_over_breakpoints): Likewise.
2017 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2018 (pop_dummy_frame): Update.
2019 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2020 (gdbscm_breakpoints): Update.
2021 * python/py-breakpoint.c (build_bp_list): Update.
2022 (gdbpy_breakpoints): Update.
2023 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2025 (bpfinishpy_handle_stop): Update.
2026 (bpfinishpy_handle_exit): Update.
2027 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2028 (svr4_update_solib_event_breakpoints): Update.
2030 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2032 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2033 when unwrapping single-field structs.
2035 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2037 * dwarf2read.c: Remove includes.
2039 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2041 * ui-out.c (ui_out::call_do_message): Silence
2042 -Wformat-nonliteral warning.
2044 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2046 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2047 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2048 include: readline/tilde.h.
2050 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2052 * remote.c (remote_target::get_trace_status): Remove declaration of
2053 trace_regblock_size.
2055 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2057 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2058 (show_user): Remove declaration of cmdlist.
2059 * cli/cli-cmds.h (max_user_call_depth): Declare.
2060 * cli/cli-script.c (execute_user_command): Remove declaration
2061 of max_user_call_depth.
2063 2019-10-11 Jim Wilson <jimw@sifive.com>
2065 * gdbsupport/print-utils.h (pulongest): Fix comment.
2066 (plongest): Likewise.
2067 (phex): Add missing comment, mention leading zeros.
2068 (phex_nz): Add mention of no leading zeros to comment.
2070 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2071 plongest instead of unsigned long long cast.
2073 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2075 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2076 for external_editor_command and gdbtk_test.
2078 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2080 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2081 * varobj.c (varobjdebug): Move comment to...
2082 * varobj.h (varobjdebug): ...here, and declare.
2084 2019-10-09 Tom Tromey <tom@tromey.com>
2086 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2089 2019-10-09 Tom Tromey <tom@tromey.com>
2091 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2092 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2093 * tui/tui-command.c (tui_cmd_window::resize)
2094 (tui_refresh_cmd_win): Update.
2095 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2096 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2097 * tui/tui-data.c (~tui_gen_win_info): Remove.
2098 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2099 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2100 (tui_redisplay_readline, tui_mld_flush)
2101 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2102 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2103 (tui_data_window::erase_data_content)
2104 (tui_data_item_window::rerender)
2105 (tui_data_item_window::refresh_window): Update.
2106 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2107 (box_win, tui_gen_win_info::make_window)
2108 (tui_gen_win_info::make_visible): Update.
2109 (tui_delete_win): Remove.
2110 * tui/tui-winsource.c
2111 (tui_source_window_base::do_erase_source_content): Update.
2112 (tui_show_source_line, tui_source_window_base::update_tab_width)
2113 (tui_source_window_base::update_exec_info): Update.
2114 * tui/tui-data.h (struct curses_deleter): New.
2115 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2116 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2118 2019-10-09 Tom Tromey <tom@tromey.com>
2120 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2122 2019-10-09 Tom Tromey <tom@tromey.com>
2124 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2125 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2127 2019-10-09 Tom Tromey <tom@tromey.com>
2129 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2130 window height directly.
2131 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2133 * tui/tui-layout.c (tui_default_win_height): Remove.
2134 (tui_default_win_viewport_height): Remove.
2136 2019-10-09 Tom Tromey <tom@tromey.com>
2138 * tui/tui.h: Remove comments.
2140 2019-10-09 Tom de Vries <tdevries@suse.de>
2142 * python/lib/gdb/printer/bound_registers.py: Use
2143 '^builtin_type_bound128' as regexp argument for
2144 add_builtin_pretty_printer.
2146 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2148 * guile/guile.c (guile_extension_script_ops): Remove forward
2149 declaration and mark as static.
2150 (guile_script_ops): Likewise.
2151 (extension_language_guile): Move further down in the file so
2152 it can reference the definitions for guile_{extension_,}script_ops.
2154 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2156 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2157 except SORTL, DFLTCC, and KDSA.
2159 2019-10-08 Tom Tromey <tromey@adacore.com>
2161 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2162 (struct safe_symbol_file_add_args): Remove.
2164 2019-10-08 Tom Tromey <tromey@adacore.com>
2166 * windows-nat.c: Don't include buildsym-legacy.h.
2168 2019-10-08 Tom Tromey <tromey@adacore.com>
2170 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2172 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2174 * gdbtypes.c (overload_debug): Move comment to header.
2175 * gdbtypes.h (overload_debug): Declare.
2176 * valops.c: Remove declaration of overload_debug, instead
2179 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2181 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2183 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2185 * language.h (lang_frame_mismatch_warn): ... here. Also add
2187 * top.c (lang_frame_mismatch_warn): Remove declaration.
2188 (check_frame_language_change): Pass lang_frame_mismatch_warn
2191 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2193 * c-lang.h (vtbl_ptr_name): Declare.
2194 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2196 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2198 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2200 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2203 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2205 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2206 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2207 * ctfread.c: New file.
2208 * ctfread.h: New file.
2209 * elfread.c: Include ctfread.h.
2210 (struct elfinfo text_p): New member ctfsect.
2211 (elf_locate_sections): Mark CTF section.
2212 (elf_symfile_read): Call elfctf_build_psymtabs.
2213 * Makefile.in (LIBCTF): Add.
2216 (DIST): Add ctfread.c.
2218 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2220 * ctfread.c (struct nextfield): Renamed to ...
2221 (struct ctf_nextfield): ... this.
2222 (struct field_info): Renamed to ...
2223 (strut ctf_field_info): ... this.
2224 (attach_fields_to_type): Update for renamed structures.
2225 (ctf_add_member_cb): Likewise.
2226 (ctf_add_enum_member_cb): Likewise.
2227 (process_struct_members): Likewise.
2228 (process_enum_type): Likewise.
2230 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2232 * tracectf.h: Rename, was ctf.h.
2233 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2234 * tracefile.c: Likewise.
2235 * tracepoint.c: Remove unused include ctf.h.
2236 * mi/mi-main.c: Likewise.
2237 * Makefile.in Replace ctf.c with tracectf.c.
2239 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2241 * version.in: Change version number to "9.0.50.DATE-git".
2243 2019-10-03 Tom Tromey <tom@tromey.com>
2246 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2248 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2250 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2251 cp_search_name_hash.
2252 * NEWS: Add entry about nested function support.
2254 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2255 Andrew Burgess <andrew.burgess@embecosm.com>
2257 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2258 for nested static variables when searchin VAR_DOMAIN.
2259 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2260 global scope, update comment.
2261 (add_partial_subprogram): Call add_partial_subprogram recursively
2262 for nested subroutines when processinng Fortran.
2263 (load_partial_dies): Process the child entities of a subprogram
2264 when processing Fortran.
2265 (partial_die_parent_scope): Handle building scope
2266 for Fortran nested functions.
2267 (process_die): Record that nested functions have a scope.
2268 (new_symbol): Always record Fortran subprograms on the global
2270 (determine_prefix): How to build the prefix for Fortran
2273 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2275 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2276 have just sent the thread a SIGSTOP and are waiting for it to
2279 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2281 * btrace.c (btrace_add_pc): Remove whitespace before the template
2282 parameter in 'std::vector <...>'.
2283 (parse_xml_btrace_block): Likewise.
2284 (btrace_maint_decode_pt): Likewise.
2285 (btrace_maint_update_packets): Likewise.
2286 (btrace_maint_print_packets): Likewise.
2287 * btrace.h (struct btrace_maint_info): Likewise.
2288 * dwarf2read.c (struct type_unit_group): Likewise.
2289 (build_type_psymtabs_reader): Likewise.
2290 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2291 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2292 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2294 2019-10-03 Tom de Vries <tdevries@suse.de>
2296 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2297 the first line of the help text for set/show style metadata.
2299 2019-10-02 Tom Tromey <tromey@adacore.com>
2301 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2302 * gdbsupport/common-inferior.c: New file.
2303 * infcmd.c (startup_with_shell): Don't define.
2304 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2305 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2306 * inferior.h (startup_with_shell): Don't declare.
2308 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2310 * gdbsupport/gdb_assert.h: Include errors.h.
2311 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2313 2019-10-02 Tom Tromey <tromey@adacore.com>
2315 * NEWS: Add $_ada_exception entry.
2316 * ada-lang.c (struct ada_catchpoint): Add constructor.
2317 <m_kind>: New member.
2318 (allocate_location_exception, re_set_exception): Remove
2320 (should_stop_exception): Compute $_ada_exception.
2321 (check_status_exception, print_it_exception)
2322 (print_one_exception, print_mention_exception): Remove
2324 (allocate_location_catch_exception, re_set_catch_exception)
2325 (check_status_exception, print_it_catch_exception)
2326 (print_one_catch_exception, print_mention_catch_exception)
2327 (print_recreate_catch_exception)
2328 (allocate_location_catch_exception_unhandled)
2329 (re_set_catch_exception_unhandled)
2330 (check_status_exception, print_it_catch_exception_unhandled)
2331 (print_one_catch_exception_unhandled)
2332 (print_mention_catch_exception_unhandled)
2333 (print_recreate_catch_exception_unhandled)
2334 (allocate_location_catch_assert, re_set_catch_assert)
2335 (check_status_assert, print_it_catch_assert)
2336 (print_one_catch_assert, print_mention_catch_assert)
2337 (print_recreate_catch_assert)
2338 (allocate_location_catch_handlers, re_set_catch_handlers)
2339 (check_status_handlers, print_it_catch_handlers)
2340 (print_one_catch_handlers, print_mention_catch_handlers)
2341 (print_recreate_catch_handlers): Remove.
2342 (create_ada_exception_catchpoint): Update.
2343 (initialize_ada_catchpoint_ops): Update.
2345 2019-10-02 Tom Tromey <tromey@adacore.com>
2347 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2348 (create_excep_cond_exprs): Simplify exception string computation.
2349 (ada_exception_catchpoint_cond_string): Likewise.
2351 2019-10-02 Tom Tromey <tromey@adacore.com>
2353 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2354 * ada-lang.c (lesseq_defined_than): Handle
2356 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2358 (dwarf2_has_info): Likewise.
2359 (new_symbol): Set maybe_copied on symbol when
2361 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2363 <can_copy>: New member.
2364 * elfread.c (record_minimal_symbol): Set maybe_copied
2365 on symbol when appropriate.
2366 (elf_symfile_read): Update call to dwarf2_has_info.
2367 * minsyms.c (lookup_minimal_symbol_linkage): New
2369 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2370 * symtab.c (get_symbol_address, get_msymbol_address):
2372 * symtab.h (get_symbol_address, get_msymbol_address):
2374 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2376 (struct symbol, struct minimal_symbol) <maybe_copied>:
2379 2019-10-02 Tom Tromey <tromey@adacore.com>
2381 * source.c (struct current_source_location): New.
2382 (current_source_key): New global.
2383 (current_source_symtab, current_source_line)
2384 (current_source_pspace): Remove.
2385 (get_source_location): New function.
2386 (get_current_source_symtab_and_line)
2387 (set_default_source_symtab_and_line)
2388 (set_current_source_symtab_and_line)
2389 (clear_current_source_symtab_and_line, select_source_symtab)
2390 (info_source_command, print_source_lines_base)
2391 (info_line_command, search_command_helper, _initialize_source):
2394 2019-10-02 Tom Tromey <tromey@adacore.com>
2396 * source.c (select_source_symtab): Don't call
2397 decode_line_with_current_source.
2399 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2401 * symtab.c (lookup_global_symbol): Search global block.
2403 2019-10-02 Tom Tromey <tromey@adacore.com>
2405 * coffread.c (process_coff_symbol): Update.
2406 * dwarf2read.c (var_decode_location, new_symbol): Update.
2407 * mdebugread.c (parse_symbol): Update.
2408 * objfiles.c (relocate_one_symbol): Update.
2409 * stabsread.c (define_symbol, fix_common_block)
2410 (scan_file_globals): Update.
2411 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2412 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2413 * xcoffread.c (process_xcoff_symbol): Update.
2415 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2417 * MAINTAINERS: Update my email address.
2419 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2421 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2423 (build_type_psymtabs_reader): Update for std::vector.
2424 (build_type_psymtab_dependencies): Likewise.
2425 * dwarf2read.h: Remove use of DEF_VEC_P.
2426 (typedef sig_type_ptr): Delete.
2428 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2430 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2432 (btrace_maint_decode_pt): Likewise, and move allocation of the
2433 vector outside of the loop.
2434 (btrace_maint_update_packets): Update to handle change from VEC to
2436 (btrace_maint_print_packets): Likewise.
2437 (maint_info_btrace_cmd): Likewise.
2438 * btrace.h: Remove use of DEF_VEC_O.
2439 (typedef btrace_pt_packet_s): Delete.
2440 (struct btrace_maint_info) <packets>: Change fromm VEC to
2442 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2444 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2446 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2447 make accesses into the vector constant references.
2448 (btrace_add_pc): Update for std::vector.
2449 (btrace_stitch_bts): Likewise.
2450 (parse_xml_btrace_block): Likewise.
2451 (btrace_maint_update_packets): Likewise.
2452 (btrace_maint_print_packets): Likewise.
2453 (maint_info_btrace_cmd): Likewise.
2454 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2456 (btrace_data::empty): Likewise.
2457 (btrace_data_append): Likewise.
2458 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2459 (typedef btrace_block_s): Delete.
2460 (struct btrace_block): Add constructor.
2461 (struct btrace_data_bts) <blocks>: Change to std::vector.
2462 * nat/linux-btrace.c (perf_event_read_bts): Update for
2464 (linux_read_bts): Likewise.
2466 2019-10-01 Tom Tromey <tom@tromey.com>
2468 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2470 2019-10-01 Tom Tromey <tom@tromey.com>
2472 * stack.c (print_frame, info_frame_command_core): Use
2474 * linux-thread-db.c (try_thread_db_load_1)
2475 (try_thread_db_load_from_pdir_1): Use styled_string.
2476 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2477 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2478 (maybe_print_unsupported_script_warning)
2479 (maybe_print_script_not_found_warning): Use styled_string.
2480 * ada-lang.c (user_select_syms): Use styled_string.
2482 2019-10-01 Tom Tromey <tom@tromey.com>
2484 * p-lang.c (pascal_printstr): Use metadata style.
2485 * value.c (show_convenience): Use metadata style.
2486 * valprint.c (valprint_check_validity, val_print_optimized_out)
2487 (val_print_not_saved, val_print_unavailable)
2488 (val_print_invalid_address, generic_val_print, val_print)
2489 (value_check_printable, val_print_array_elements): Use metadata
2491 * ui-out.h (class ui_out) <field_fmt>: New overload.
2492 <do_field_fmt>: Add style parameter.
2493 * ui-out.c (ui_out::field_fmt): New overload.
2494 * typeprint.c (type_print_unknown_return_type)
2495 (val_print_not_allocated, val_print_not_associated): Use metadata
2497 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2499 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2500 * tracepoint.c (tvariables_info_1): Use metadata style.
2501 * stack.c (print_frame_arg, print_frame_info, print_frame)
2502 (info_frame_command_core): Use metadata style.
2503 * skip.c (info_skip_command): Use metadata style.
2504 * rust-lang.c (rust_print_enum): Use metadata style.
2505 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2507 * python/py-framefilter.c (py_print_single_arg): Use metadata
2509 * printcmd.c (do_one_display, print_variable_and_value): Use
2511 * p-valprint.c (pascal_val_print)
2512 (pascal_object_print_value_fields): Use metadata style.
2513 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2514 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2516 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2517 * m2-valprint.c (m2_print_long_set): Use metadata style.
2518 * m2-typeprint.c (m2_print_type): Use metadata style.
2519 * infcmd.c (print_return_value_1): Use metadata style.
2520 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2521 * f-valprint.c (info_common_command_for_block): Use metadata
2523 * f-typeprint.c (f_type_print_base): Use metadata style.
2524 * expprint.c (print_subexp_standard): Use metadata style.
2525 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2526 * cli/cli-style.h (class cli_style_option): Add constructor.
2527 (metadata_style): Declare.
2528 * cli/cli-style.c (metadata_style): New global.
2529 (_initialize_cli_style): Register metadata style.
2530 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2532 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2533 * c-typeprint.c (c_type_print_base_struct_union)
2534 (c_type_print_base_1): Use metadata style.
2535 * breakpoint.c (watchpoint_value_print)
2536 (print_one_breakpoint_location): Use metadata style.
2537 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2539 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2541 * ada-valprint.c (val_print_packed_array_elements, printstr)
2542 (print_field_values, ada_val_print_ref, ada_val_print): Use
2544 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2546 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2548 * ada-lang.c (user_select_syms): Use metadata style.
2550 2019-10-01 Tom Tromey <tom@tromey.com>
2552 * cli/cli-cmds.c (pwd_command): Style output.
2554 2019-10-01 Pedro Alves <palves@redhat.com>
2555 Tom Tromey <tom@tromey.com>
2557 * symtab.c (print_symbol_info): Use %ps.
2558 (print_msymbol_info): Use %ps.
2559 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2560 * printcmd.c (print_variable_and_value): Use %ps.
2561 * macrocmd.c (show_pp_source_pos): Use %ps.
2562 * infrun.c (print_exited_reason): Use ui_out::message.
2563 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2564 (describe_other_breakpoints): Use ui_out::message and new
2566 (say_where): Use new formats.
2567 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2570 2019-10-01 Pedro Alves <palves@redhat.com>
2571 Tom Tromey <tom@tromey.com>
2573 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2574 (test_gdb_formats): New function.
2575 (run_tests): Call it.
2576 (test_format_specifier): Update.
2577 * utils.h (fputs_filtered): Update comment.
2578 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2579 (fputs_styled_unfiltered): Declare.
2580 * utils.c (fputs_styled_unfiltered): New function.
2581 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2582 (vfprintf_filtered): Update.
2583 (vfprintf_unfiltered, vprintf_filtered): Update.
2584 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2585 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2586 disallow_ui_out_field>: New constants.
2587 (enum class field_kind): New.
2588 (struct base_field_s, struct signed_field_s): New.
2589 (signed_field): New function.
2590 (struct string_field_s): New.
2591 (string_field): New function.
2592 (struct styled_string_s): New.
2593 (styled_string): New function.
2594 (class ui_out) <message>: Add comment.
2595 <vmessage, call_do_message>: New methods.
2596 <do_message>: Add style parameter.
2597 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2599 (ui_out::message): Rewrite.
2600 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2602 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2603 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2604 gdb_extensions parameter.
2605 (class format_piece): Add parameter to constructor.
2606 (n_int_args): New field.
2607 * gdbsupport/format.c (format_pieces::format_pieces): Add
2608 gdb_extensions parameter. Handle '*'.
2609 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2610 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2611 vfprintf_styled_no_gdbfmt.
2612 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2613 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2615 * ui-style.h (struct ui_file_style) <ptr>: New method.
2617 2019-10-01 Tom Tromey <tom@tromey.com>
2619 * unittests/format_pieces-selftests.c: Update. Add final format.
2620 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2621 empty literal pieces.
2623 2019-10-01 Tom Tromey <tom@tromey.com>
2625 * ui-out.h (enum class ui_out_style_kind): Remove.
2626 (class ui_out) <field_string, field_stsream, do_field_string>:
2627 Change type of "style".
2628 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2629 (ui_out::field_string): Update.
2630 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2632 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2633 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2634 * stack.c (print_frame_arg, print_frame_info, print_frame):
2636 * source.c (print_source_lines_base): Update.
2637 * solib.c (info_sharedlibrary_command): Update.
2638 * skip.c (info_skip_command): Update.
2639 * record-btrace.c (btrace_call_history_src_line)
2640 (btrace_call_history): Update.
2641 * python/py-framefilter.c (py_print_frame): Update.
2642 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2644 * mi/mi-out.c (mi_ui_out::do_table_header)
2645 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2646 (mi_ui_out::do_field_string): Update.
2647 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2649 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2651 * cli-out.c (cli_ui_out::do_table_header)
2652 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2653 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2654 (cli_ui_out::do_field_fmt): Update.
2655 * breakpoint.c (print_breakpoint_location): Update.
2656 (update_static_tracepoint): Update.
2658 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2660 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2661 conversion of gdb_datadir.
2662 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2663 remove not needed c_str ().
2665 2019-09-30 Ali Tamur <tamur@google.com>
2667 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2668 (dwarf2_string_attr): Likewise.
2670 2019-09-30 Ali Tamur <tamur@google.com>
2672 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2673 (process_full_type_unit): Likewise.
2674 (dump_die_shallow): Likewise.
2675 (cu_debug_loc_section): Likewise.
2677 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2679 * minsyms.c (compare_minimal_symbols): Rename to...
2680 (minimal_symbol_is_less_than): ...this, and adjust to STL
2681 conventions (return bool, take arguments as references)
2682 (minimal_symbol_reader::install): Call std::sort instead
2685 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2687 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2689 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2690 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2692 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2694 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2695 * psympriv.h (add_psymbol_to_list): Move comment here and update
2698 2019-09-29 Tom de Vries <tdevries@suse.de>
2700 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2701 Use $tmpdir/$(basename "$output_file").dwz instead of
2702 "${output_file}.dwz".
2704 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2707 * hppa-linux-nat.c: Include gdbarch.h.
2709 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2711 * blockframe.c (find_pc_partial_function): Change return type to bool.
2712 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2713 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2714 (stub_gnu_ifunc_resolve_name): Likewise.
2715 * symtab.c (compare_filenames_for_search): Likewise.
2716 (compare_glob_filenames_for_search): Likewise.
2717 (matching_obj_sections): Likewise.
2718 (symbol_matches_domain): Likewise.
2719 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2720 (find_line_pc): Change return type to bool.
2721 (find_line_pc_range): Likewise.
2722 (producer_is_realview): Likewise.
2723 * symtab.h (symbol_matches_domain): Likewise.
2724 (find_pc_partial_function): Likewise.
2725 (find_pc_line_pc_range): Likewise.
2726 (in_gnu_ifunc_stub): Likewise.
2727 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2728 (find_line_pc): Likewise.
2729 (find_line_pc_range): Likewise.
2730 (matching_obj_sections): Likewise.
2731 (find_line_symtab): Change out parameter to bool.
2732 (producer_is_realview): Change return type to bool.
2733 (compare_filenames_for_search): Likewise.
2734 (compare_glob_filenames_for_search): Likewise.
2736 2019-09-26 Tom Tromey <tom@tromey.com>
2738 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2739 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2740 * gdb_usleep.h: Remove.
2741 * gdb_usleep.c: Remove.
2742 * utils.c: Don't include gdb_usleep.h.
2744 2019-09-26 Tom Tromey <tromey@adacore.com>
2746 * python/py-type.c (type_to_type_object): Call check_typedef
2749 2019-09-26 Tom Tromey <tom@tromey.com>
2751 * utils.h (initialize_utils): Don't declare.
2752 * top.c (gdb_init): Don't call initialize_utils.
2753 * utils.c (initialize_utils): Remove. Move contents...
2754 (_initialize_utils): ... here.
2756 2019-09-25 Tom Tromey <tom@tromey.com>
2758 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2759 * utils.h (make_hex_string): Don't declare.
2760 * utils.c (make_hex_string): Remove.
2762 2019-09-24 Tom de Vries <tdevries@suse.de>
2765 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2766 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2768 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2770 * NEWS: Mention new simulator port for PRU.
2772 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2774 * ada-exp.y (write_object_remaining): Update.
2775 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2776 and eliminate the static buffer.
2777 (ada_decode_symbol): Update.
2778 (ada_la_decode): Update.
2779 (ada_sniff_from_mangled_name): Update.
2780 (is_valid_name_for_wild_match): Update.
2781 (ada_lookup_name_info::matches): Update and simplify.
2782 (name_matches_regex): Update.
2783 (ada_add_global_exceptions): Update.
2784 * ada-lang.h (ada_decode): Update signature.
2785 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2786 * dwarf-index-write.c (debug_names::insert): Update.
2788 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2790 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2793 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2795 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2796 Change "nonzero" to "true" in documentation.
2798 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2800 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2801 (_initialize_darwin_solib): Don't set
2802 darwin_so_ops.lookup_lib_global_symbol.
2803 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2804 set_gdbarch_iterate_over_objfiles_in_search_order.
2805 (elf_lookup_lib_symbol): Rename to...
2806 (svr4_iterate_over_objfiles_in_search_order): this, and update
2807 to iterate semantics.
2808 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2809 * solib.c (solib_global_lookup): Remove.
2810 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2811 (solib_global_lookup): Remove.
2812 * symtab.c (lookup_global_or_static_symbol): Remove call to
2813 solib_global_lookup.
2815 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2817 * NEWS: Move entries about default MI version now being
2818 version 3, and about the GDB/MI fix for multi-location
2819 breakpoints to the "since GDB 8.3" section.
2821 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2825 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2827 * NEWS: Mention that Cell/B.E. debugging support was removed.
2828 * MAINTAINERS: Remove spu target.
2830 * config/djgpp/fnchange.lst: Remove entries for removed files.
2832 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2833 spu-multiarch.o, and spu-tdep.o.
2834 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2835 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2836 spu-multiarch.c, and spu-tdep.c.
2837 * spu-linux-nat.c: Remove file.
2838 * spu-multiarch.c: Remove file.
2839 * spu-tdep.c: Remove file.
2840 * spu-tdep.h: Remove file.
2841 * solib-spu.c: Remove file.
2842 * solib-spu.h: Remove file.
2844 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2845 * configure.nat (spu-linux): Remove.
2846 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2847 solib-multiarch.o from gdb_target_obs.
2850 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2852 (ppc_linux_no_features): Update.
2853 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2855 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2856 (tdesc_powerpc_cell64l): Likewise.
2857 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2858 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2860 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2861 Do not include "features/rs6000/powerpc-cell32l.c" or
2862 "features/rs6000/powerpc-cell64l.c".
2863 (ppc_linux_spu_section): Remove.
2864 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2865 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2866 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2867 (ppc_linux_spe_context_lookup): Remove.
2868 (ppc_linux_spe_context_inferior_created): Remove.
2869 (ppc_linux_spe_context_solib_loaded): Remove.
2870 (ppc_linux_spe_context_solib_unloaded): Remove.
2871 (ppc_linux_spe_context): Remove.
2872 (struct ppu2spu_cache): Remove.
2873 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2874 (struct ppu2spu_data): Remove.
2875 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2876 ppu2spu_unwind): Remove.
2877 (ppc_linux_init_abi): Remove Cell/B.E. support.
2878 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2880 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2881 (rs6000/powerpc-cell64l-expedite): Likewise
2882 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2883 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2884 rs6000/powerpc-cell64l.xml.
2885 * features/rs6000/powerpc-cell32l.xml: Remove.
2886 * features/rs6000/powerpc-cell64l.xml: Likewise.
2887 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2888 * features/rs6000/powerpc-cell64l.c: Likewise.
2889 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2890 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2891 * regformats/reg-spu.dat: Remove.
2893 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2894 * corelow.c (struct spuid_list): Remove.
2895 (add_to_spuid_list): Remove.
2896 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2897 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2898 (remote_protocol_features): Remove associated entries.
2899 (_initialize_remote): No longer initialize them.
2900 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2901 * linux-nat.c (SPUFS_MAGIC): Remove.
2902 (linux_proc_xfer_spu): Remove.
2903 (spu_enumerate_spu_ids): Remove.
2904 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2905 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2906 (linux_make_corefile_notes): No longer call it.
2908 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2909 (cooked_write_test): Likewise.
2911 2019-09-20 Tom Tromey <tom@tromey.com>
2913 * NEWS: Mention case-sensitivity of TUI commands.
2914 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2915 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2916 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2918 2019-09-20 Tom Tromey <tom@tromey.com>
2920 * tui/tui-source.c (tui_source_window::set_contents): Use
2921 make_unique_xstrdup.
2922 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2923 make_unique_xstrdup.
2925 2019-09-20 Tom Tromey <tom@tromey.com>
2927 * tui/tui-data.c: Remove separator comments.
2928 * tui/tui-layout.c: Remove separator comments.
2929 * tui/tui-win.c: Remove separator comments.
2930 * tui/tui-wingeneral.c: Remove separator comments.
2932 2019-09-20 Tom Tromey <tom@tromey.com>
2934 * tui/tui.h (strcat_to_buf): Don't declare.
2935 * tui/tui.c (strcat_to_buf): Remove.
2937 2019-09-20 Tom Tromey <tom@tromey.com>
2939 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2941 * tui/tui-source.c (tui_source_window::set_contents)
2942 (tui_source_window::location_matches_p)
2943 (tui_source_window::maybe_update): Update.
2945 2019-09-20 Tom Tromey <tom@tromey.com>
2947 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2949 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2951 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2952 (tui_data_window::line_from_reg_element_no)
2953 (tui_data_window::first_reg_element_no_inline)
2954 (tui_data_window::show_registers)
2955 (tui_data_window::show_register_group)
2956 (tui_data_window::display_registers_from)
2957 (tui_data_window::display_registers_from_line)
2958 (tui_data_window::first_data_item_displayed)
2959 (tui_data_window::delete_data_content_windows)
2960 (tui_data_window::erase_data_content)
2961 (tui_data_window::do_scroll_vertical)
2962 (tui_data_window::refresh_window)
2963 (tui_data_window::check_register_values): Update.
2965 2019-09-20 Tom Tromey <tom@tromey.com>
2967 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2968 (struct tui_locator_window) <full_name, proc_name>: Now
2970 * tui/tui-stack.c (tui_locator_window::make_status_line)
2971 (tui_locator_window::set_locator_fullname)
2972 (tui_locator_window::set_locator_info): Update.
2973 * tui/tui-source.c (tui_source_window::set_contents)
2974 (tui_source_window::showing_source_p): Update.
2976 2019-09-20 Tom Tromey <tom@tromey.com>
2978 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2979 Don't call tui_locator_win_info_ptr.
2981 2019-09-20 Tom Tromey <tom@tromey.com>
2983 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2985 2019-09-20 Tom Tromey <tom@tromey.com>
2987 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2989 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2990 * tui/tui-layout.c (show_source_disasm_command, show_data)
2991 (show_source_or_disasm_and_command): Use 1 as height for locator.
2993 2019-09-20 Tom Tromey <tom@tromey.com>
2995 * tui/tui.c (tui_enable): Update.
2996 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2998 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3000 * tui/tui-data.c (win_resized): Now bool.
3001 (tui_win_resized): Return bool.
3002 (tui_set_win_resized_to): Accept a bool.
3004 2019-09-20 Tom Tromey <tom@tromey.com>
3006 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3007 Change type of "refresh_values_only".
3008 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3009 type of "refresh_values_only".
3011 2019-09-20 Tom Tromey <tom@tromey.com>
3013 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3015 (tui_disassemble): Add "pos" parameter.
3016 (tui_disasm_window::set_contents): Simplify.
3018 2019-09-20 Tom Tromey <tom@tromey.com>
3020 * tui/tui-winsource.h (struct tui_source_window_base)
3021 <show_source_content>: Now private.
3022 * tui/tui-winsource.c
3023 (tui_source_window_base::show_source_content): Don't handle empty
3026 2019-09-20 Tom Tromey <tom@tromey.com>
3028 * tui/tui-layout.c (show_source_disasm_command)
3029 (show_source_or_disasm_and_command): Don't call
3030 show_source_content.
3032 2019-09-20 Tom Tromey <tom@tromey.com>
3034 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3036 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3037 from tui_make_status_line.
3038 (tui_locator_window::rerender): Update.
3040 2019-09-20 Tom Tromey <tom@tromey.com>
3042 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3043 (tui_locator_window::rerender): Update.
3045 2019-09-20 Tom Tromey <tom@tromey.com>
3047 * tui/tui-winsource.h (struct tui_source_window_base)
3048 <~tui_source_window_base>: Don't declare.
3050 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3051 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3053 * tui/tui-source.c (tui_source_window::set_contents): Update.
3054 (tui_source_window::location_matches_p)
3055 (tui_source_window::maybe_update): Update.
3057 2019-09-20 Tom Tromey <tom@tromey.com>
3059 * tui/tui-winsource.h (~tui_source_element): Remove.
3060 (tui_source_element): Update.
3061 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3062 * tui/tui-winsource.c (tui_show_source_line): Update.
3063 * tui/tui-source.c (tui_source_window::set_contents): Update.
3064 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3066 2019-09-20 Tom Tromey <tom@tromey.com>
3068 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3070 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3071 tui_clear_source_windows_detail.
3072 * tui/tui-winsource.h (struct tui_source_window_base)
3073 <clear_detail>: Don't declare.
3074 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3076 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3078 2019-09-20 Tom Tromey <tromey@adacore.com>
3081 * block.c (contained_in): Fix final return value.
3083 2019-09-20 Alan Modra <amodra@gmail.com>
3085 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3086 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3087 (read_indirect_string_from_dwz): Use bfd accessor.
3088 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3089 * machoread.c (macho_symfile_read_all_oso): Likewise.
3090 * solib.c (solib_bfd_open): Likewise.
3092 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3094 * eval.c: Move declaration of overload_resolution to...
3097 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3099 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3100 * arm-linux-tdep.c: Likewise.
3101 * arm-nbsd-nat.c: Likewise.
3102 * arm-tdep.h: Declare arm_apcs_32.
3103 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3105 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3107 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3108 * dwarf2read.h: Declare dwarf_always_disassemble.
3110 2019-09-19 Tom de Vries <tdevries@suse.de>
3113 * source-cache.c (source_cache::ensure): Catch exception thrown during
3114 construction of the highlighter.
3116 2019-09-18 Alan Modra <amodra@gmail.com>
3118 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3119 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3120 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3121 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3122 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3123 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3124 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3125 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3126 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3127 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3128 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3129 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3130 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3131 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3132 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3133 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3134 * mi/mi-interp.c: Update throughout for bfd section macro and
3136 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3137 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3139 2019-09-18 Tom Tromey <tom@tromey.com>
3142 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3144 (tui_enable): Do not call rl_initialize.
3146 2019-09-18 Christian Groessler <chris@groessler.org>
3148 * alpha-linux-nat.c: Include gdbarch.h.
3150 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3152 * ui-file.c: Include cli/cli-style.h.
3153 (term_cli_styling): Remove cli_styling declaration.
3155 2019-09-18 Alan Modra <amodra@gmail.com>
3157 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3158 to bfd_asymbol_section.
3160 2019-09-18 Alan Modra <amodra@gmail.com>
3162 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3163 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3164 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3166 2019-09-18 Alan Modra <amodra@gmail.com>
3168 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3169 * spu-linux-nat.c (spu_bfd_open): Likewise.
3171 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3173 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3174 to bool to match definition in dwarf2read.c.
3176 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3178 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3179 (print_signatures): Likewise.
3180 (trust_pad_over_xvs): Likewise.
3181 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3182 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3183 * arm-linux-nat.c (arm_apcs_32): Likewise.
3184 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3185 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3186 * arm-tdep.c (arm_debug): Likewise.
3187 (arm_apcs_32): Likewise.
3188 * auto-load.c (debug_auto_load): Likewise.
3189 (auto_load_gdb_scripts): Likewise.
3190 (global_auto_load): Likewise.
3191 (auto_load_local_gdbinit): Likewise.
3192 (auto_load_local_gdbinit_loaded): Likewise.
3193 * auto-load.h (global_auto_load): Likewise.
3194 (auto_load_local_gdbinit): Likewise.
3195 (auto_load_local_gdbinit_loaded): Likewise.
3196 * breakpoint.c (disconnected_dprintf): Likewise.
3197 (breakpoint_proceeded): Likewise.
3198 (automatic_hardware_breakpoints): Likewise.
3199 (always_inserted_mode): Likewise.
3200 (target_exact_watchpoints): Likewise.
3201 (_initialize_breakpoint): Update.
3202 * breakpoint.h (target_exact_watchpoints): Change to bool.
3203 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3204 * cli/cli-cmds.c (trace_commands): Likewise.
3205 * cli/cli-cmds.h (trace_commands): Likewise.
3206 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3208 * cli/cli-logging.c (logging_overwrite): Change to bool.
3209 (logging_redirect): Likewise.
3210 (debug_redirect): Likewise.
3211 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3212 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3214 <boolean_option_def>: Update.
3215 (struct flag_option_def): Change default type of Context to bool
3217 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3218 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3219 (get_setshow_command_value_string): Likewise.
3220 * cli/cli-style.c (cli_styling): Change to bool.
3221 (source_styling): Likewise.
3222 * cli/cli-style.h (source_styling): Likewise.
3223 (cli_styling): Likewise.
3224 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3226 * command.h (var_types): Update comment.
3227 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3228 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3230 (debug_compile_cplus_scopes): Likewise.
3231 * compile/compile-internal.h (compile_debug): Likewise.
3232 * compile/compile.c (compile_debug): Likewise.
3233 (struct compile_options) <raw>: Likewise.
3234 * cp-support.c (catch_demangler_crashes): Likewise.
3235 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3236 (usr_cmd_cris_dwarf2_cfi): Likewise.
3237 * csky-tdep.c (csky_debug): Likewise.
3238 * darwin-nat.c (enable_mach_exceptions): Likewise.
3239 * dcache.c (dcache_enabled_p): Likewise.
3240 * defs.h (info_verbose): Likewise.
3241 * demangle.c (demangle): Likewise.
3242 (asm_demangle): Likewise.
3243 * dwarf-index-cache.c (debug_index_cache): Likewise.
3244 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3245 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3246 * dwarf2read.c (check_physname): Likewise.
3247 (use_deprecated_index_sections): Likewise.
3248 (dwarf_always_disassemble): Likewise.
3249 * eval.c (overload_resolution): Likewise.
3250 * event-top.c (set_editing_cmd_var): Likewise.
3251 (exec_done_display_p): Likewise.
3252 * event-top.h (set_editing_cmd_var): Likewise.
3253 (exec_done_display_p): Likewise.
3254 * exec.c (write_files): Likewise.
3255 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3256 (debug_fbsd_nat): Likewise.
3257 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3259 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3260 <backtrace_past_entry> Likewise.
3261 * gdb-demangle.h (demangle): Likewise.
3262 (asm_demangle): Likewise.
3263 * gdb_bfd.c (bfd_sharing): Likewise.
3264 * gdbcore.h (write_files): Likewise.
3265 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3266 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3267 * gdbthread.h (print_thread_events): Likewise.
3268 * gdbtypes.c (opaque_type_resolution): Likewise.
3269 (strict_type_checking): Likewise.
3270 * gnu-nat.c (gnu_debug_flag): Likewise.
3271 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3272 * guile/scm-param.c (pascm_variable): Add boolval.
3273 (add_setshow_generic): Update.
3274 (pascm_param_value): Update.
3275 (pascm_set_param_value_x): Update.
3276 * hppa-tdep.c (hppa_debug): Change to bool..
3277 * infcall.c (may_call_functions_p): Likewise.
3278 (coerce_float_to_double_p): Likewise.
3279 (unwind_on_signal_p): Likewise.
3280 (unwind_on_terminating_exception_p): Likewise.
3281 * infcmd.c (startup_with_shell): Likewise.
3282 * inferior.c (print_inferior_events): Likewise.
3283 * inferior.h (startup_with_shell): Likewise.
3284 (print_inferior_events): Likewise.
3285 * infrun.c (step_stop_if_no_debug): Likewise.
3286 (detach_fork): Likewise.
3287 (debug_displaced): Likewise.
3288 (disable_randomization): Likewise.
3289 (non_stop): Likewise.
3290 (non_stop_1): Likewise.
3291 (observer_mode): Likewise.
3292 (observer_mode_1): Likewise.
3293 (set_observer_mode): Update.
3294 (sched_multi): Change to bool.
3295 * infrun.h (debug_displaced): Likewise.
3296 (sched_multi): Likewise.
3297 (step_stop_if_no_debug): Likewise.
3298 (non_stop): Likewise.
3299 (disable_randomization): Likewise.
3300 * linux-tdep.c (use_coredump_filter): Likewise.
3301 (dump_excluded_mappings): Likewise.
3302 * linux-thread-db.c (auto_load_thread_db): Likewise.
3303 (check_thread_db_on_load): Likewise.
3304 * main.c (captured_main_1): Update.
3305 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3306 xx2_opt, boolean_opt>: Change to bool.
3307 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3308 * maint.c (maintenance_profile_p): Likewise.
3309 (per_command_time): Likewise.
3310 (per_command_space): Likewise.
3311 (per_command_symtab): Likewise.
3312 * memattr.c (inaccessible_by_default): Likewise.
3313 * mi/mi-main.c (mi_async): Likewise.
3314 (mi_async_1): Likewise.
3315 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3316 * nat/fork-inferior.h (startup_with_shell): Likewise.
3317 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3318 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3319 * nios2-tdep.c (nios2_debug): Likewise.
3320 * or1k-tdep.c (or1k_debug): Likewise.
3321 * parse.c (parser_debug): Likewise.
3322 * parser-defs.h (parser_debug): Likewise.
3323 * printcmd.c (print_symbol_filename): Likewise.
3324 * proc-api.c (procfs_trace): Likewise.
3325 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3326 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3327 (set_parameter_value): Update.
3328 (add_setshow_generic): Update.
3329 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3331 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3333 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3334 * record-btrace.c (record_btrace_target::store_registers): Update.
3335 * record-full.c (record_full_memory_query): Change to bool.
3336 (record_full_stop_at_limit): Likewise.
3337 * record-full.h (record_full_memory_query): Likewise.
3338 * remote-notif.c (notif_debug): Likewise.
3339 * remote-notif.h (notif_debug): Likewise.
3340 * remote.c (use_range_stepping): Likewise.
3341 (interrupt_on_connect): Likewise.
3342 (remote_break): Likewise.
3343 * ser-tcp.c (tcp_auto_retry): Likewise.
3344 * ser-unix.c (serial_hwflow): Likewise.
3345 * skip.c (debug_skip): Likewise.
3346 * solib-aix.c (solib_aix_debug): Likewise.
3347 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3348 (spu_auto_flush_cache_p): Likewise.
3349 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3351 (struct info_print_options) <quiet>: Likewise.
3352 * symfile-debug.c (debug_symfile): Likewise.
3353 * symfile.c (auto_solib_add): Likewise.
3354 (separate_debug_file_debug): Likewise.
3355 * symfile.h (auto_solib_add): Likewise.
3356 (separate_debug_file_debug): Likewise.
3357 * symtab.c (basenames_may_differ): Likewise.
3358 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3359 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3360 (struct info_types_options) <quiet>: Likewise.
3361 * symtab.h (demangle): Likewise.
3362 (basenames_may_differ): Likewise.
3363 * target-dcache.c (stack_cache_enabled_1): Likewise.
3364 (code_cache_enabled_1): Likewise.
3365 * target.c (trust_readonly): Likewise.
3366 (may_write_registers): Likewise.
3367 (may_write_memory): Likewise.
3368 (may_insert_breakpoints): Likewise.
3369 (may_insert_tracepoints): Likewise.
3370 (may_insert_fast_tracepoints): Likewise.
3371 (may_stop): Likewise.
3372 (auto_connect_native_target): Likewise.
3373 (target_stop_and_wait): Update.
3374 (target_async_permitted): Change to bool.
3375 (target_async_permitted_1): Likewise.
3376 (may_write_registers_1): Likewise.
3377 (may_write_memory_1): Likewise.
3378 (may_insert_breakpoints_1): Likewise.
3379 (may_insert_tracepoints_1): Likewise.
3380 (may_insert_fast_tracepoints_1): Likewise.
3381 (may_stop_1): Likewise.
3382 * target.h (target_async_permitted): Likewise.
3383 (may_write_registers): Likewise.
3384 (may_write_memory): Likewise.
3385 (may_insert_breakpoints): Likewise.
3386 (may_insert_tracepoints): Likewise.
3387 (may_insert_fast_tracepoints): Likewise.
3388 (may_stop): Likewise.
3389 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3390 (make_thread_apply_all_options_def_group): Change argument from int*
3392 (thread_apply_all_command): Update.
3393 (print_thread_events): Change to bool.
3394 * top.c (confirm): Likewise.
3395 (command_editing_p): Likewise.
3396 (history_expansion_p): Likewise.
3397 (write_history_p): Likewise.
3398 (info_verbose): Likewise.
3399 * top.h (confirm): Likewise.
3400 (history_expansion_p): Likewise.
3401 * tracepoint.c (disconnected_tracing): Likewise.
3402 (circular_trace_buffer): Likewise.
3403 * typeprint.c (print_methods): Likewise.
3404 (print_typedefs): Likewise.
3405 * utils.c (debug_timestamp): Likewise.
3406 (sevenbit_strings): Likewise.
3407 (pagination_enabled): Likewise.
3408 * utils.h (sevenbit_strings): Likewise.
3409 (pagination_enabled): Likewise.
3410 * valops.c (overload_resolution): Likewise.
3411 * valprint.h (struct value_print_options) <prettyformat_arrays,
3412 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3413 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3414 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3416 * windows-nat.c (new_console): Likewise.
3417 (cygwin_exceptions): Likewise.
3418 (new_group): Likewise.
3419 (debug_exec): Likewise.
3420 (debug_events): Likewise.
3421 (debug_memory): Likewise.
3422 (debug_exceptions): Likewise.
3423 (useshell): Likewise.
3424 * windows-tdep.c (maint_display_all_tib): Likewise.
3425 * xml-support.c (debug_xml): Likewise.
3427 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3429 * source.c (prepare_path_for_appending): New function.
3430 (openp): Make use of new function.
3431 (find_and_open_source): Search for the compilation directory and
3432 source file as a relative path beneath the directory search path.
3434 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3436 * source-cache.c (source_cache::get_line_charpos): Catch
3437 exceptions and return false, this matches the behaviour documented
3440 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3442 * ada-tasks.c (info_task): Remove quoting of the task's name.
3444 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3446 * symfile.c (auto_solib_add): Replace comment with a reference
3449 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3451 * NEWS: Mention that gdb can now be compiled with Python 3
3454 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3456 * maint.c (maint_print_section_data::maint_print_section_data):
3457 Force use of 'float log10 (float)' by casting the argument to
3460 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3462 * maint.c: Add 'cmath' include.
3463 (struct maint_print_section_data): New structure.
3464 (print_section_index): New function.
3465 (print_bfd_section_info): Add header comment, small whitespace
3466 cleanup, and update to call new print_section_index function.
3467 (print_objfile_section_info): Likewise.
3468 (maint_obj_section_from_bfd_section): New function.
3469 (print_bfd_section_info_maybe_relocated): New function.
3470 (maintenance_info_sections): Add header comment, always use
3471 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3473 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3475 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3476 inner scope, add check that the objfile has psymtabs before
3477 checking psymtabs_addrmap.
3478 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3480 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3482 * NEWS: Announce that Ada task names are now shown at more places,
3483 and between quotes (except in info task output).
3484 * gdb/ada-tasks.c (task_to_str): New function.
3485 (display_current_task_id): Call task_to_str.
3486 (task_command_1): Likewise.
3487 (print_ada_task_info): In non-mi mode, Properly align headers and data
3488 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3490 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3492 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3493 prstatus.pr_lwp.pr_info instead of making it up.
3495 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3497 * auto-load.c (auto_load_expand_dir_vars): Update.
3498 * defs.h (gdb_datadir): Change to std::string.
3499 (python_libdir): Likewise.
3500 (relocate_gdb_directory): Change return type to std::string.
3501 * guile/guile.c (gdbscm_data_directory): Update.
3502 (initialize_scheme_side): Update.
3503 * jit.c (jit_reader_dir): Change to std::string.
3504 (jit_reader_load_command): Update.
3505 * main.c (gdb_datadir): Change to std::string.
3506 (python_libdir): Likewise.
3507 (set_gdb_data_directory): Update.
3508 (relocate_path): Change to return std::string.
3509 (relocate_gdb_directory): Change to return std::string.
3510 (relocate_gdbinit_path_maybe_in_datadir): Update.
3511 (captured_main_1): Update.
3512 * python/python.c (do_start_initialization): Update.
3513 * top.c (show_gdb_datadir): Update.
3514 * xml-syscall.c (xml_init_syscalls_info): Update.
3515 (init_syscalls_info): Update.
3517 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3519 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3520 out of get_init_files.
3521 (get_init_files): Update.
3523 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3525 * main.c (get_init_files): Change to use std::string.
3526 (captured_main_1): Update.
3527 (print_gdb_help): Update.
3529 2019-09-11 Ali Tamur <tamur@google.com>
3531 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3534 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3536 * dbxread.c (read_dbx_symtab): Update.
3537 * dwarf2read.c (load_partial_dies): Update.
3538 * mdebugread.c (parse_partial_symbols): Update.
3539 (handle_psymbol_enumerators): Update.
3540 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3541 * psymtab.c (add_psymbol_to_bcache): Likewise.
3542 (add_psymbol_to_list): Likewise.
3543 * symtab.c (symbol_set_names): Likewise.
3544 * symtab.h (symbol_set_names): Likewise.
3545 * xcoffread.c (scan_xcoff_symtab): Update.
3547 2019-09-11 Tom Tromey <tom@tromey.com>
3549 * symfile-mem.c (symbol_file_add_from_memory): Use
3551 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3552 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3554 2019-09-10 Tom Tromey <tromey@adacore.com>
3556 * dwarf-index-write.c (write_psymbols): Extend error message.
3557 (debug_names::insert): Add Ada code.
3558 (debug_names::write_psymbols): Remove Ada check.
3559 (debug_names) <m_string_obstack>: New member.
3560 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3561 (gdb_index_symbol_name_matcher::matches): Remove.
3562 (mapped_index_base::find_name_components_bounds): Add "lang"
3564 (mapped_index_base::build_name_components): Also split names
3565 according to Ada syntax.
3566 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3567 type of "match_callback".
3568 (check_match, check_find_bounds_finds)
3569 (dw2_expand_symtabs_matching): Update.
3570 (dw2_debug_names_iterator): Add new constructor.
3571 (dw2_debug_names_map_matching_symbols): New function.
3572 (dw2_debug_names_expand_symtabs_matching): Update.
3573 (dwarf2_debug_names_functions): Use
3574 dw2_debug_names_map_matching_symbols.
3576 2019-09-10 Tom Tromey <tromey@adacore.com>
3578 * dwarf2read.c (dw2_get_file_names_reader): Add the
3579 CU's file name to the results.
3581 2019-09-10 Tom Tromey <tromey@adacore.com>
3583 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3584 map_matching_symbols. Update.
3585 * dwarf2read.c (dw2_map_matching_symbols): Update.
3586 * psymtab.c (match_partial_symbol): Change type; update.
3587 (psym_map_matching_symbols): Likewise.
3588 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3590 * symfile.h (struct quick_symbol_functions)
3591 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3594 2019-09-10 Tom Tromey <tromey@adacore.com>
3596 * psymtab.c (map_block): Remove.
3597 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3598 * symtab.c (iterate_over_symbols_terminated): New function.
3599 * symtab.c (iterate_over_symbols_terminated): Declare.
3601 2019-09-10 Tom Tromey <tromey@adacore.com>
3603 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3604 * language.h (struct language_defn) <la_iterate_over_symbols>:
3606 * symtab.c (iterate_over_symbols): Return bool.
3607 * symtab.h (iterate_over_symbols): Return bool.
3609 2019-09-10 Tom Tromey <tromey@adacore.com>
3611 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3612 (add_nonlocal_symbols): Update.
3613 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3614 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3615 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3616 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3617 Change type of "callback". Remove "data".
3620 2019-09-09 Ali Tamur <tamur@google.com>
3622 * dwarf2read.c (comp_unit_head): Update comment.
3623 (dwarf2_dwo_name): New function declaration.
3624 (dwarf_unit_type_name): New function declaration.
3625 (read_comp_unit_head): Add support for new compilation units,
3626 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3627 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3628 (currently named as "signature") in their header. Also clarify error
3630 (lookup_dwo_id): New function. Returns the dwo id of the given
3632 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3633 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3635 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3636 (dwarf2_dwo_name): Get the dwo name if present.
3637 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3640 2019-09-09 Tom Tromey <tom@tromey.com>
3642 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3644 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3646 * python/python.c (do_start_initialization): Make progname_copy static,
3647 to avoid a leak report.
3649 2019-09-08 Tom Tromey <tom@tromey.com>
3651 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3653 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3655 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3656 Change type to gdb::optional<block_enum>.
3657 (dw2_symtab_iter_init): Change block_index parameter type
3658 to gdb::optional<block_enum>.
3659 (dw2_lookup_symbol): Change block_index parameter
3660 type to block_enum.c
3661 (dw2_debug_names_lookup_symbol): Likewise.
3662 * psymtab.c (psym_lookup_symbol): Likewise.
3663 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3664 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3667 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3669 * defs.h (relocate_gdb_directory): Change int to bool in
3670 signature and rename flag to relocatable.
3671 * main.c (relocate_path): Likewise.
3672 (relocate_gdb_directory): Likewise.
3674 2019-09-06 Alan Modra <amodra@gmail.com>
3676 * coffread.c (coff_symfile_read): Constify filename variable.
3677 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3678 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3679 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3680 * solib.c (reload_shared_libraries_1): Likewise.
3681 * symfile.c (reread_symbols): Likewise.
3682 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3683 * solib-darwin.c (darwin_bfd_open): Likewise.
3684 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3686 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3688 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3689 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3691 2019-09-03 Tom Tromey <tromey@adacore.com>
3693 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3695 (has_negatives): Unbias a range type bound.
3696 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3697 * gdbtypes.c (operator==): Handle new field.
3698 (create_range_type): Add "bias" parameter.
3699 (create_static_range_type, resolve_dynamic_range): Update.
3700 * gdbtypes.h (struct range_bounds) <bias>: New member.
3701 (create_range_type): Add bias parameter.
3702 * printcmd.c (print_scalar_formatted): Unbias range types.
3703 * value.c (unpack_long): Unbias range types.
3704 (pack_long): Bias range types.
3706 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3708 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3711 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3713 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3714 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3715 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3716 (compile_probe_arg): Likewise.
3717 * probe.h (get_argument_count): Likewise.
3718 * solib-svr4.c (solib_event_probe_action): Likewise.
3719 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3721 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3723 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3725 (svr4_create_solib_event_breakpoints): ...from here.
3727 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3729 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3730 suffix from warning message.
3732 2019-08-30 Tom Tromey <tom@tromey.com>
3734 * tui/tui-winsource.h (struct tui_source_window_base)
3735 <refresh_all>: Don't declare.
3736 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3738 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3739 tui_show_locator_content.
3740 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3742 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3743 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3746 2019-08-30 Tom Tromey <tom@tromey.com>
3748 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3750 2019-08-30 Tom Tromey <tom@tromey.com>
3752 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3753 Remove unnecessary forward declarations.
3755 2019-08-30 Tom Tromey <tom@tromey.com>
3757 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3759 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3760 tui_show_locator_content.
3762 2019-08-30 Tom Tromey <tom@tromey.com>
3764 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3765 (tui_locator_window::rerender): Rewrite using body of previous
3766 tui_show_locator_content.
3768 2019-08-30 Tom Tromey <tom@tromey.com>
3770 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3771 set_locator_fullname>: New methods.
3772 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3773 Rename from tui_set_locator_fullname.
3774 (tui_locator_window::set_locator_info): Rename from
3775 tui_set_locator_info. Return bool.
3776 (tui_update_locator_fullname, tui_show_frame_info): Update.
3778 2019-08-30 Tom Tromey <tom@tromey.com>
3780 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3782 2019-08-30 Tom Tromey <tom@tromey.com>
3784 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3787 2019-08-30 Tom Tromey <tom@tromey.com>
3789 * tui/tui-wingeneral.c (box_win): Assume win_info and
3790 win_info->handle cannot be NULL.
3792 2019-08-30 Tom Tromey <tom@tromey.com>
3794 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3795 refresh_window>: Declare.
3796 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3798 (tui_data_item_window::rerender): Rename from
3799 tui_display_register.
3800 (tui_data_item_window::refresh_window): New method.
3801 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3804 2019-08-30 Tom Tromey <tom@tromey.com>
3806 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3807 regs_column_count, current_group>: Move later. Now private.
3808 <get_current_group>: New method.
3809 * tui/tui-regs.c (tui_reg_command): Update.
3810 * tui/tui-layout.c (tui_set_layout): Update.
3812 2019-08-30 Tom Tromey <tom@tromey.com>
3814 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3815 (tui_data_window::rerender): Don't call
3816 check_and_display_highlight_if_needed.
3817 (tui_data_window::refresh_all): Remove call to
3820 2019-08-30 Tom Tromey <tom@tromey.com>
3822 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3823 (tui_data_window::display_registers_from)
3824 (tui_data_window::display_reg_element_at_line)
3825 (tui_data_window::display_registers_from_line): Remove checks of
3828 2019-08-30 Tom Tromey <tom@tromey.com>
3830 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3832 * tui/tui-regs.c (tui_data_window::show_registers): Call
3834 (tui_data_window::rerender): Rename from display_all_data.
3835 (tui_data_window::rerender): Remove old implementation.
3837 2019-08-30 Tom Tromey <tom@tromey.com>
3839 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3841 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3843 2019-08-29 Bernhard Wodok <barto@gmx.net>
3844 Sergio Durigan Junior <sergiodj@redhat.com>
3847 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3849 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3851 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3852 when searching for types.
3854 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3856 * f-lang.c (f_language_defn): Use f_print_typedef.
3857 * f-lang.h (f_print_typedef): Declare.
3858 * f-typeprint.c (f_print_typedef): Define.
3860 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3862 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3864 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3866 * cli/cli-utils.c (info_print_options_defs): Delete.
3867 (make_info_print_options_def_group): Delete.
3868 (extract_info_print_options): Delete.
3869 (info_print_command_completer): Delete.
3870 (info_print_args_help): Add extra parameter, and optionally
3871 include text about -n flag.
3872 * cli/cli-utils.h (struct info_print_options): Delete.
3873 (extract_info_print_options): Delete declaration.
3874 (info_print_command_completer): Delete declaration.
3875 (info_print_args_help): Add extra parameter, extend header
3877 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3879 * stack.c (struct info_print_options): New type.
3880 (info_print_options_defs): New file scoped variable.
3881 (make_info_print_options_def_group): New static function.
3882 (info_print_command_completer): New static function.
3883 (info_locals_command): Update to use new local functions.
3884 (info_args_command): Likewise.
3885 (_initialize_stack): Add extra parameter to calls to
3886 info_print_args_help.
3887 * symtab.c (search_symbols): Add extra parameter, use this to
3888 possibly excluse non-debug symbols.
3889 (symtab_symbol_info): Add extra parameter, which is passed on to
3891 (struct info_print_options): New type.
3892 (info_print_options_defs): New file scoped variable.
3893 (make_info_print_options_def_group): New static function.
3894 (info_print_command_completer): New static function.
3895 (info_variables_command): Update to use local functions, and pass
3896 extra parameter through to symtab_symbol_info.
3897 (info_functions_command): Likewise.
3898 (info_types_command): Pass additional argument through to
3900 (rbreak_command): Pass extra argument to search_symbols.
3901 (_initialize_symtab): Add extra arguments for calls to
3902 info_print_args_help, and update help text for 'info variables',
3903 'whereis', and 'info functions' commands.
3904 * symtab.h (search_symbols): Add extra argument to declaration.
3905 * NEWS: Mention new flags.
3907 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3909 * symtab.c (lookup_static_symbol): Call the new function (and move
3910 it down to be next to lookup_global_symbol).
3911 (struct global_sym_lookup_data): Add block_enum member and rename to...
3912 (struct global_or_static_sym_lookup_data): ...this.
3913 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3914 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3915 (lookup_symbol_global_or_static_iterator_cb): ...this.
3916 (lookup_global_or_static_symbol): New function.
3917 (lookup_global_symbol): Call new function.
3919 2019-08-26 Tom de Vries <tdevries@suse.de>
3922 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3923 when pc_probe.prob == NULL.
3925 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3927 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3928 variable symbol_linkage to symbol_linkage_.
3930 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3932 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3933 represent whether the symbol is static, dynamic, or we don't
3936 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3938 * gdb/rx-tdep.c (rx_register_names): New.
3939 (rx_register_name): Delete.
3940 (rx_psw_type): Delete.
3941 (rx_fpsw_type): Delete.
3942 (rx_register_type): Delete.
3943 (rx_gdbarch_init): Convert target-descriptions.
3944 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3945 * gdb/features/Makefile: Add rx.xml.
3946 * gdb/features/rx.xml: New.
3947 * gdb/features/rx.c: Generated.
3948 * gdb/NEWS: Mention target description support.
3950 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3952 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3955 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3957 * configure.ac: Don't check for 'dlfcn.h' (moved to
3958 gdbsupport/common.m4).
3959 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3961 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3962 * compile/compile-c-support.c: Include
3963 'gdbsupport/gdb-dlfcn.h'.
3964 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3965 * gdb-dlfcn.c: Move to...
3966 * gdbsupport/gdb-dlfcn.c: ... here.
3967 * gdb-dlfcn.h: Move to...
3968 * gdbsupport/gdb-dlfcn.h: ... here.
3970 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3972 * nios2-tdep.c (struct reg_value): Improve comments. Make
3973 the offset field signed.
3975 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3977 * python/lib/gdb/__init__.py (_execute_file): New function.
3978 * python/python.c (python_run_simple_file): Call gdb._execute_file
3981 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3983 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3984 all uses as this was never set to anything but a zero value.
3986 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3988 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3990 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3992 * tui/tui-data.h (tui_gen_win_info): Add an =default
3993 move constructor, required by some GCC versions.
3995 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3997 * go32-nat.c (go32_sysinfo): Add hygon_p.
3999 2019-08-20 Tom Tromey <tom@tromey.com>
4001 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4002 line_from_reg_element_no, first_reg_element_no_inline,
4003 display_all_data, delete_data_content_windows,
4004 erase_data_content>: Now private.
4006 2019-08-20 Tom Tromey <tom@tromey.com>
4008 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4009 (tui_unhighlight_win, tui_highlight_win)
4010 (tui_win_info::make_window): Update.
4011 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4013 2019-08-20 Tom Tromey <tom@tromey.com>
4015 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4016 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4017 (MAX_PID_WIDTH): Move to tui-stack.c.
4018 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4019 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4020 (MAX_PID_WIDTH): Move from tui-data.h.
4022 2019-08-20 Tom Tromey <tom@tromey.com>
4024 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4025 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4027 (tui_gen_win_info::make_window): Rename from tui_make_window.
4028 (tui_win_info::make_window): New method.
4029 (tui_gen_win_info::make_visible): Update.
4030 * tui/tui-source.c (tui_source_window::set_contents): Update.
4031 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4032 (tui_data_window::display_registers_from): Update.
4033 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4034 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4038 (struct tui_win_info) <make_window>: Declare.
4039 <can_box>: Now virtual.
4040 <title>: New member.
4041 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4042 * tui/tui-command.c (tui_cmd_window::resize): Update.
4044 2019-08-20 Tom Tromey <tom@tromey.com>
4046 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4047 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4048 (tui_data_window::check_register_values): Update.
4050 2019-08-20 Tom Tromey <tom@tromey.com>
4052 * tui/tui-regs.h (struct tui_data_window): Use
4053 DISABLE_COPY_AND_ASSIGN.
4054 <regs_content>: Change type, removing unique_ptr.
4055 <tui_data_window>: Add move constructor.
4056 * tui/tui-regs.c (tui_data_window::show_registers)
4057 (tui_data_window::show_register_group)
4058 (tui_data_window::display_registers_from)
4059 (tui_data_window::display_registers_from)
4060 (tui_data_window::first_data_item_displayed)
4061 (tui_data_window::delete_data_content_windows)
4062 (tui_data_window::rerender, tui_data_window::refresh_window)
4063 (tui_data_window::check_register_values): Update.
4065 2019-08-20 Tom Tromey <tom@tromey.com>
4067 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4068 show_register_group>: Declare.
4069 (tui_show_register_group): Don't declare.
4070 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4072 (tui_data_window::show_register_group): Rename from
4073 tui_show_register_group.
4074 (tui_data_window::check_register_values, tui_reg_command):
4076 * tui/tui-layout.c (tui_set_layout): Update.
4078 2019-08-20 Tom Tromey <tom@tromey.com>
4080 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4082 (tui_check_register_values): Don't declare.
4083 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4084 from tui_check_register_values.
4085 * tui/tui-hooks.c (tui_register_changed): Update.
4087 2019-08-20 Tom Tromey <tom@tromey.com>
4089 * tui/tui-regs.c (tui_reg_layout): Move later.
4090 (tui_show_registers): Don't enable TUI mode or change layout.
4092 2019-08-20 Tom Tromey <tom@tromey.com>
4094 * tui/tui-regs.h (struct tui_data_item_window)
4095 <~tui_data_item_window>: Remove.
4096 <content>: Now a unique_xmalloc_ptr.
4097 * tui/tui-regs.c (tui_register_format): Return a
4099 (tui_get_register): Update.
4100 (~tui_data_item_window): Remove.
4101 (tui_data_window::display_registers_from, tui_display_register):
4103 * tui/tui-io.h (tui_expand_tabs): Update.
4104 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4105 Remove "col" parameter.
4107 2019-08-20 Tom Tromey <tom@tromey.com>
4109 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4111 * tui/tui-regs.c (~tui_data_item_window): Update.
4113 2019-08-20 Tom Tromey <tom@tromey.com>
4115 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4118 2019-08-20 Tom Tromey <tom@tromey.com>
4120 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4122 2019-08-20 Tom Tromey <tom@tromey.com>
4124 * tui/tui-source.h (struct tui_source_window): Update.
4125 * tui/tui-regs.c (tui_show_registers): Update.
4126 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4127 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4128 (NO_REGS_STRING): Remove defines.
4130 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4132 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4133 unnecessary thread walk if remote doesn't support the packet.
4135 2019-08-19 Tom Tromey <tromey@adacore.com>
4137 * python/py-value.c (value_has_field): Fix indentation.
4139 2019-08-19 Tom Tromey <tromey@adacore.com>
4141 * printcmd.c (do_one_display, info_display_command): Update.
4142 * block.h (contained_in): Return bool. Add allow_nested
4144 * block.c (contained_in): Return bool. Add allow_nested
4147 2019-08-19 Tom Tromey <tom@tromey.com>
4149 * configure: Rebuild.
4150 * configure.ac: Disallow the combination of -static-libstdc++ and
4152 * source-cache.c (get_language_name): Handle rust.
4153 (source_cache::get_source_lines): Ignore highlighting exceptions.
4155 2019-08-16 Tom Tromey <tom@tromey.com>
4157 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4158 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4159 (struct tui_source_window_base) <make_visible, refresh_window,
4160 resize>: Remove methods.
4161 <execution_info>: Remove field.
4162 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4163 (tui_show_source_line, tui_source_window_base)
4164 (~tui_source_window_base): Update.
4165 (tui_source_window_base::resize)
4166 (tui_source_window_base::make_visible)
4167 (tui_source_window_base::refresh_window): Remove.
4168 (tui_source_window_base::update_exec_info): Update.
4169 * tui/tui-source.c (tui_source_window::set_contents): Update.
4170 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4172 2019-08-16 Tom Tromey <tom@tromey.com>
4174 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4175 deprecated_query_hook.
4177 2019-08-16 Tom Tromey <tom@tromey.com>
4179 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4180 (tui_update_source_windows_with_line): Update.
4181 * tui/tui-source.h (struct tui_source_window)
4182 <show_symtab_source>: Declare.
4183 (tui_show_symtab_source): Don't declare.
4184 * tui/tui-source.c (tui_show_symtab_source): Rename from
4185 tui_show_symtab_source.
4187 2019-08-16 Tom Tromey <tom@tromey.com>
4189 * tui/tui-winsource.h (struct tui_source_window_base)
4190 <set_contents>: Declare.
4191 * tui/tui-winsource.c
4192 (tui_source_window_base::update_source_window_as_is): Update.
4193 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4195 (tui_set_source_content): Don't declare.
4196 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4197 tui_set_source_content.
4198 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4200 (tui_set_disassem_content): Don't declare.
4201 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4202 tui_set_disassem_content.
4204 2019-08-16 Tom Tromey <tom@tromey.com>
4206 * tui/tui-winsource.h (struct tui_source_window_base)
4207 <update_breakpoint_info>: Declare.
4208 (tui_update_breakpoint_info): Don't declare.
4209 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4210 (tui_update_all_breakpoint_info): Update.
4211 (tui_source_window_base::update_breakpoint_info): Rename from
4212 tui_update_breakpoint_info.
4213 (tui_source_window_base::update_exec_info): Update.
4215 2019-08-16 Tom Tromey <tom@tromey.com>
4217 * tui/tui-winsource.h (struct tui_source_window_base)
4218 <update_source_window>: Declare.
4219 (tui_update_source_window): Don't declare.
4220 * tui/tui-winsource.c
4221 (tui_source_window_base::update_source_window): Rename from
4222 tui_update_source_window.
4223 (tui_source_window_base::rerender): Update.
4224 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4225 * tui/tui-disasm.c (tui_show_disassem)
4226 (tui_show_disassem_and_update_source)
4227 (tui_disasm_window::maybe_update): Update.
4229 2019-08-16 Tom Tromey <tom@tromey.com>
4231 * tui/tui-winsource.h (struct tui_source_window_base)
4232 <update_source_window_as_is>: Declare.
4233 (tui_update_source_window_as_is): Don't declare.
4234 * tui/tui-winsource.c (tui_update_source_window): Update
4235 (tui_source_window_base::update_source_window_as_is): Rename from
4236 tui_update_source_window_as_is.
4237 (tui_source_window_base::refill): Update.
4238 * tui/tui-source.c (tui_show_symtab_source): Update.
4239 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4242 2019-08-16 Tom Tromey <tom@tromey.com>
4244 * tui/tui-winsource.h (tui_update_source_window)
4245 (tui_update_source_window_as_is): Remove "noerror" parameter.
4246 * tui/tui-winsource.c (tui_update_source_window)
4247 (tui_update_source_window_as_is): Remove "noerror" parameter.
4248 (tui_update_source_windows_with_addr)
4249 (tui_update_source_windows_with_line)
4250 (tui_source_window_base::rerender)
4251 (tui_source_window_base::refill): Update.
4252 * tui/tui-source.h (tui_set_source_content)
4253 (tui_show_symtab_source): Remove "noerror" parameter.
4254 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4256 (tui_show_symtab_source): Likewise.
4257 (tui_source_window::maybe_update): Update.
4258 * tui/tui-disasm.c (tui_show_disassem)
4259 (tui_show_disassem_and_update_source)
4260 (tui_disasm_window::do_scroll_vertical)
4261 (tui_disasm_window::maybe_update): Update.
4263 2019-08-16 Tom Tromey <tom@tromey.com>
4265 * tui/tui.c (tui_is_window_visible): Update.
4266 * tui/tui-wingeneral.c (tui_make_window)
4267 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4268 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4269 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4270 (tui_set_win_height_command, parse_scrolling_args): Update.
4271 * tui/tui-source.c (tui_source_window::style_changed): Update.
4272 * tui/tui-regs.c (tui_show_registers)
4273 (tui_data_window::first_data_item_displayed)
4274 (tui_data_window::delete_data_content_windows)
4275 (tui_check_register_values, tui_reg_command): Update.
4276 * tui/tui-disasm.c (tui_show_disassem): Update.
4277 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4279 <is_visible>: Remove field.
4280 * tui/tui-data.c (tui_next_win, tui_prev_win)
4281 (tui_delete_invisible_windows): Update.
4283 2019-08-16 Tom Tromey <tom@tromey.com>
4285 * tui/tui-winsource.h (struct tui_source_window_base)
4286 <m_has_locator>: Remove.
4287 * tui/tui-layout.c (show_source_disasm_command, show_data)
4288 (show_source_or_disasm_and_command): Update.
4290 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4292 * NEWS (Other MI changes): New subsection.
4293 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4294 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4295 * arch-utils.c (default_get_pc_address_flags): New function.
4296 * arch-utils.h (default_get_pc_address_flags): New declaration.
4297 * gdbarch.sh: Add get_pc_address_flags.
4298 * gdbarch.c: Regenerate.
4299 * gdbarch.h: Likewise.
4300 * stack.c (print_pc): New function.
4301 (print_frame_info) (print_frame): Call print_pc.
4303 2019-08-16 Tom de Vries <tdevries@suse.de>
4305 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4306 print_objfile_section_info.
4308 2019-08-15 Tom Tromey <tom@tromey.com>
4310 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4311 calling update_cmdwin_start_line.
4312 * tui/tui-winsource.h (struct tui_source_window_base)
4313 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4314 <rerender>: Declare.
4315 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4317 (tui_source_window_base::set_new_height): Remove.
4318 (tui_source_window_base::rerender): Rename from
4319 do_make_visible_with_new_height.
4320 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4322 (tui_win_info::make_invisible_and_set_new_height)
4323 (tui_win_info::make_visible_with_new_height): Remove.
4324 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4326 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4327 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4328 do_make_visible_with_new_height>: Don't declare.
4329 <rerender>: Declare.
4330 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4332 (tui_data_window::do_make_visible_with_new_height): Remove.
4333 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4334 call tui_show_locator_content.
4335 (tui_gen_win_info::resize): Call rerender.
4336 (show_source_or_disasm_and_command): Don't call
4337 tui_show_locator_content.
4338 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4340 (struct tui_win_info) <rerender>: Declare.
4341 <set_new_height, make_invisible_and_set_new_height,
4342 make_visible_with_new_height>: Don't declare.
4343 * tui/tui-data.c (tui_win_list::rerender): New method.
4344 * tui/tui-command.h (struct tui_cmd_window)
4345 <do_make_visible_with_new_height>: Don't declare.
4347 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4349 2019-08-15 Tom Tromey <tromey@adacore.com>
4351 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4352 * ada-lang.c (ada_enum_name): Likewise.
4354 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4356 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4358 (GdbOutputErrorFile): Likewise.
4359 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4361 (execute_unwinders): Rename to have a leading underscore.
4362 (auto_load_packages): Likewise.
4363 (global scope): Adjust call to auto_load_packages accordingly.
4364 (GdbSetPythonDirectory): Likewise.
4365 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4366 instead of execute_unwinders.
4368 2019-08-15 Tom Tromey <tom@tromey.com>
4370 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4371 (show_data): Don't change window visibility.
4372 (tui_gen_win_info::resize): Remove special case for command
4373 window. Use wresize, when available.
4374 (show_source_or_disasm_and_command): Don't change window
4376 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4377 <make_visible>: New method.
4378 * tui/tui-command.c (tui_cmd_window::resize): New method.
4380 2019-08-15 Tom Tromey <tom@tromey.com>
4382 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4383 (struct tui_source_windows): New.
4384 * tui/tui-winsource.c (tui_display_main): Update.
4385 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4386 (new_height_ok, parse_scrolling_args): Update.
4387 * tui/tui-layout.c (show_layout, show_data): Update.
4388 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4389 (tui_add_to_source_windows): Don't declare.
4390 * tui/tui-data.c (source_windows, tui_source_windows)
4391 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4393 2019-08-15 Tom Tromey <tom@tromey.com>
4395 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4397 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4398 * tui/tui-layout.c (show_source_disasm_command, show_data):
4400 (tui_gen_win_info::resize): Rename.
4401 (show_source_or_disasm_and_command): Update.
4402 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4405 2019-08-15 Tom Tromey <tom@tromey.com>
4407 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4408 * tui/tui-interp.c (tui_interp::init): Don't call
4409 tui_initialize_static_data.
4410 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4412 2019-08-15 Tom Tromey <tom@tromey.com>
4414 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4415 examine tui_win_list.
4417 2019-08-15 Tom Tromey <tom@tromey.com>
4419 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4420 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4421 tui_clear_source_content.
4422 (tui_clear_source_content): Remove.
4423 (tui_source_window_base::do_erase_source_content): Hoist call to
4425 * tui/tui-stack.c (tui_show_frame_info): Don't call
4426 tui_clear_source_content.
4428 2019-08-15 Tom Tromey <tom@tromey.com>
4430 * tui/tui-winsource.h (struct tui_source_window_base)
4431 <do_erase_source_content>: New method.
4432 <erase_source_content>: New method.
4433 (tui_erase_source_content): Don't declare.
4434 * tui/tui-winsource.c (tui_clear_source_content): Update.
4435 (tui_source_window_base::do_erase_source_content): Rename from
4436 tui_erase_source_content.
4437 (tui_source_window_base::show_source_content): Update.
4438 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4439 * tui/tui-source.h (struct tui_source_window)
4440 <erase_source_content>: New method.
4441 * tui/tui-disasm.h (struct tui_disasm_window)
4442 <erase_source_content>: New method.
4444 2019-08-15 Tom Tromey <tom@tromey.com>
4446 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4447 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4449 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4450 * tui/tui-source.c (tui_set_source_content): Update.
4451 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4453 2019-08-15 Tom Tromey <tom@tromey.com>
4455 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4456 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4458 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4460 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4462 (tui_source_window::maybe_update): Update.
4464 2019-08-15 Tom Tromey <tom@tromey.com>
4466 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4467 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4469 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4471 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4473 (tui_disasm_window::maybe_update): Update.
4475 2019-08-15 Tom Tromey <tom@tromey.com>
4477 * tui/tui-winsource.h (struct tui_source_window_base)
4478 <maybe_update>: Declare.
4479 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4481 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4483 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4484 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4486 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4488 2019-08-15 Tom Tromey <tom@tromey.com>
4490 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4492 2019-08-15 Tom Tromey <tom@tromey.com>
4494 * tui/tui-wingeneral.c: Include tui-stack.h.
4495 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4496 (struct tui_locator_window): Move from tui-data.h.
4497 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4498 (tui_initialize_static_data): Move from tui-data.c.
4499 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4500 (struct tui_locator_window): Move to tui-stack.c.
4501 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4502 (tui_initialize_static_data): Move to tui-stack.c.
4504 2019-08-15 Tom Tromey <tom@tromey.com>
4506 * tui/tui-layout.c (show_source_disasm_command)
4507 (show_source_or_disasm_and_command): Use make_visible method, not
4509 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4512 2019-08-15 Tom Tromey <tom@tromey.com>
4514 * tui/tui-wingeneral.h (tui_make_window): Update.
4515 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4517 (tui_gen_win_info::make_visible): Update.
4518 * tui/tui-regs.c (tui_data_window::display_registers_from):
4520 * tui/tui-layout.c (show_source_disasm_command)
4521 (show_source_or_disasm_and_command): Update.
4522 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4523 (enum tui_box): Remove.
4524 (struct tui_win_info) <can_box>: New method.
4525 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4528 2019-08-15 Tom de Vries <tdevries@suse.de>
4530 * linux-nat-trad.c: Include gdbarch.h.
4532 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4534 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4537 2019-08-14 Tom Tromey <tromey@adacore.com>
4539 * darwin-nat.c: Include gdbarch.h.
4540 * darwin-nat-info.c: Include gdbarch.h.
4542 2019-08-13 Tom Tromey <tom@tromey.com>
4544 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4546 * tui/tui-data.c (tui_initialize_static_data): Update.
4548 2019-08-13 Tom Tromey <tom@tromey.com>
4550 * tui/tui-winsource.h (struct tui_exec_info_window)
4551 <~tui_exec_info_window, maybe_allocate_content, get_content,
4553 (struct tui_source_window_base) <set_exec_info_content,
4554 show_exec_info_content>: Don't declare.
4555 * tui/tui-winsource.c
4556 (tui_exec_info_window::maybe_allocate_content): Remove.
4557 (tui_source_window_base::update_exec_info): Rename from
4558 set_exec_info_content.
4559 (tui_source_window_base::show_exec_info_content)
4560 (tui_source_window_base::update_exec_info): Remove.
4562 2019-08-13 Tom Tromey <tom@tromey.com>
4564 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4566 * tui/tui-winsource.c (tui_update_source_window_as_is)
4567 (tui_update_source_windows_with_addr, tui_erase_source_content):
4569 (tui_clear_exec_info_content): Remove.
4571 2019-08-13 Tom Tromey <tom@tromey.com>
4573 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4575 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4576 call tui_erase_exec_info_content.
4577 (tui_clear_exec_info_content): Rename from
4578 tui_erase_exec_info_content.
4579 (tui_clear_exec_info_content): Delete.
4581 2019-08-13 Tom Tromey <tom@tromey.com>
4583 * tui/tui-winsource.h (struct tui_source_window_base)
4584 <show_exec_info_content>: Declare.
4585 (tui_show_exec_info_content): Don't declare.
4586 * tui/tui-winsource.c
4587 (tui_source_window_base::show_exec_info_content): Rename from
4588 tui_show_exec_info_content.
4589 (tui_source_window_base::update_exec_info): Update.
4591 2019-08-13 Tom Tromey <tom@tromey.com>
4593 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4594 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4595 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4596 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4597 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4598 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4601 2019-08-13 Tom Tromey <tom@tromey.com>
4603 * tui/tui-winsource.h (struct tui_source_window_base)
4604 <update_exec_info>: Declare.
4605 (tui_update_exec_info): Don't declare.
4606 * tui/tui-winsource.c (tui_update_source_window_as_is)
4607 (tui_source_window_base::refresh_all)
4608 (tui_update_all_breakpoint_info): Update.
4609 (tui_source_window_base::update_exec_info): Rename from
4610 tui_update_exec_info.
4611 * tui/tui-stack.c (tui_show_frame_info): Update.
4613 2019-08-13 Tom Tromey <tom@tromey.com>
4615 * tui/tui-winsource.h (struct tui_source_window_base)
4616 <set_exec_info_content>: Declare.
4617 (tui_set_exec_info_content): Don't declare.
4618 * tui/tui-winsource.c
4619 (tui_source_window_base::set_exec_info_content): Rename from
4620 tui_set_exec_info_content.
4621 (tui_update_exec_info): Update.
4623 2019-08-13 Tom Tromey <tom@tromey.com>
4625 * tui/tui-winsource.h (struct tui_source_window_base)
4626 <show_source_content>: Declare.
4627 (tui_show_source_content): Don't declare.
4628 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4629 (tui_source_window_base::show_source_content): Rename from
4630 tui_show_source_content.
4631 (tui_source_window_base::refresh_all): Update.
4632 * tui/tui-layout.c (show_source_disasm_command)
4633 (show_source_or_disasm_and_command): Update.
4635 2019-08-13 Tom Tromey <tom@tromey.com>
4637 * tui/tui-winsource.c (tui_erase_source_content)
4638 (tui_show_source_content, tui_source_window_base::refresh_all):
4640 * tui/tui-wingeneral.h
4641 (tui_check_and_display_highlight_if_needed): Don't declare.
4642 * tui/tui-wingeneral.c
4643 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4644 check_and_display_highlight_if_needed.
4645 * tui/tui-win.c (tui_rehighlight_all)
4646 (tui_win_info::make_visible_with_new_height): Update.
4647 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4648 (tui_data_window::erase_data_content)
4649 (tui_data_window::display_all_data): Update.
4650 * tui/tui-data.h (struct tui_win_info)
4651 <check_and_display_highlight_if_needed>: Declare.
4653 2019-08-13 Tom Tromey <tom@tromey.com>
4655 * tui/tui-win.c (tui_resize_all): Call
4656 tui_delete_invisible_windows.
4657 * tui/tui-layout.c (show_layout): Call
4658 tui_delete_invisible_windows.
4659 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4660 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4662 2019-08-13 Tom Tromey <tom@tromey.com>
4664 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4665 tui_add_win_to_layout.
4667 2019-08-13 Tom Tromey <tom@tromey.com>
4669 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4670 * tui/tui-layout.c (tui_default_win_height): Now static.
4672 2019-08-13 Tom Tromey <tom@tromey.com>
4674 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4676 (show_source_disasm_command, show_source_or_disasm_and_command):
4677 Don't check current layout.
4679 2019-08-13 Tom Tromey <tom@tromey.com>
4681 * tui/tui-wingeneral.c (make_all_visible): Remove.
4682 (tui_make_all_invisible): Simplify.
4683 * tui/tui-layout.c (tui_make_all_invisible): Move from
4684 tui-wingeneral.c; simplify.
4685 (show_layout): Hoist call to tui_make_all_invisible.
4686 (show_data): Don't call tui_make_all_invisible.
4688 2019-08-13 Tom Tromey <tom@tromey.com>
4690 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4691 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4693 2019-08-13 Tom Tromey <tom@tromey.com>
4695 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4697 (show_source_disasm_command, show_data)
4698 (show_source_or_disasm_and_command): Don't use
4699 tui_set_current_layout_to.
4700 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4701 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4703 (tui_set_current_layout_to): Remove.
4705 2019-08-13 Tom Tromey <tom@tromey.com>
4707 * tui/tui-layout.c (tui_set_layout): Update.
4708 * tui/tui-data.h (struct tui_layout_def): Remove.
4709 (tui_layout_def): Don't declare.
4710 * tui/tui-data.c (layout_def): Remove.
4711 (tui_layout_def): Remove.
4713 2019-08-13 Tom Tromey <tom@tromey.com>
4715 * tui/tui-winsource.h (struct tui_source_window_base)
4716 <clear_detail>: No longer "override".
4717 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4718 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4719 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4720 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4722 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4724 2019-08-13 Tom Tromey <tromey@adacore.com>
4726 * tracepoint.c: Don't include readline.h or history.h.
4728 2019-08-12 Tom Tromey <tom@tromey.com>
4730 * configure: Rebuild.
4731 * configure.ac: Check for readline 7.
4732 * NEWS: Mention readline 7 requirement.
4735 2019-08-12 Tom Tromey <tom@tromey.com>
4737 * mingw-hdep.c (gdb_select): Remove readline hack.
4739 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4741 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4742 when the function fails.
4744 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4746 * s390-tdep.c (s390_type_align): New function.
4747 (s390_gdbarch_init): Set it as type_align gdbarch method.
4749 2019-08-09 Tom de Vries <tdevries@suse.de>
4752 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4753 pc_low with relocation offset.
4755 2019-08-07 Tom Tromey <tromey@adacore.com>
4757 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4758 (print_frame_args): Update.
4759 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4761 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4762 * frame.h (struct frame_arg): Add initializers.
4763 <error>: Now a unique_xmalloc_ptr.
4765 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4767 * NEWS: Expand the Pointer Authentication entry.
4768 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4769 (aarch64_frame_unmask_lr): ... to this.
4770 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4771 Call aarch64_frame_unmask_lr.
4772 * frame.c (struct frame_info): Add "masked" variable.
4773 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4774 (fprint_frame): Check for masked pc.
4775 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4777 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4778 * stack.c (print_frame): Check for masked pc.
4780 2019-08-06 Tom Tromey <tom@tromey.com>
4782 * stabsread.c (patch_block_stabs, read_one_struct_field)
4783 (read_enum_type): Use obstack_strndup.
4784 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4785 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4786 * dwarf2read.c (guess_full_die_structure_name)
4787 (anonymous_struct_prefix): Use obstack_strndup.
4788 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4789 * c-exp.y (yylex): Use obstack_strndup.
4790 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4791 (write_var_or_type): Use obstack_strndup.
4793 2019-08-06 Tom Tromey <tom@tromey.com>
4795 * symfile.c (reread_symbols): Use obstack_strdup.
4796 * stabsread.c (read_type): Use obstack_strdup.
4797 * gdb_obstack.h (obstack_strdup): New overload.
4798 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4799 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4800 (dwarf2_canonicalize_name): Use obstack_strdup.
4801 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4802 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4805 2019-08-06 Tom Tromey <tom@tromey.com>
4807 * gdb_obstack.h (obstack_strdup): Define.
4808 * gdb_obstack.c (obstack_strdup): Don't define.
4810 2019-08-06 Tom Tromey <tom@tromey.com>
4812 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4814 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4816 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4817 * stabsread.c (common_block_start): Use obstack_strdup.
4818 * objfiles.c (set_objfile_main_name, objfile): Use
4820 * namespace.c (add_using_directive): Use obstack_strdup.
4821 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4822 * jit.c (finalize_symtab): Use obstack_strdup.
4823 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4824 (guess_partial_die_structure_name, partial_die_info::fixup)
4825 (dwarf2_name): Use obstack_strdup.
4826 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4828 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4829 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4831 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4833 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4835 * unittests/help-doc-selftests.c: New file.
4836 * Makefile.in: Add the new file.
4838 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4840 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4841 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4842 the full first line, except when FOR_VALUE_PREFIX. In this case,
4843 the trailing '.' is not output, and the first character is uppercased.
4844 (print_help_for_command): Update call to print_doc_line.
4845 (print_doc_of_command): Likewise.
4846 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4847 * cli/cli-option.c (append_indented_doc): Do not append newline.
4848 (build_help_option): Append newline after first appended_indented_doc
4849 only if a second call is done.
4850 (build_help): Append 2 new lines before each option, except the first
4852 * compile/compile.c (_initialize_compile): Add new lines after
4853 %OPTIONS%, when not at the end of the help.
4854 Change help doc or code
4855 producing the help doc to respect the invariants.
4856 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4857 Also removed the new line after 'Options:', as all other commands
4858 do not put an empty line between 'Options:' and the first option.
4859 * printcmd.c (_initialize_printcmd): Likewise.
4860 * stack.c (_initialize_stack): Likewise.
4861 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4862 incorrectly telling COMMAND is optional.
4863 * ada-lang.c (_initialize_ada_language): Change help doc or code
4864 producing the help doc to respect the invariants.
4865 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4866 * breakpoint.c (_initialize_breakpoint): Likewise.
4867 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4868 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4869 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4870 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4871 _initialize_cli_style): Likewise.
4872 * corelow.c (core_target_info): Likewise.
4873 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4874 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4875 * filesystem.c (_initialize_filesystem): Likewise.
4876 * frame.c (_initialize_frame): Likewise.
4877 * gnu-nat.c (add_task_commands): Likewise.
4878 * infcall.c (_initialize_infcall): Likewise.
4879 * infcmd.c (_initialize_infcmd): Likewise.
4880 * interps.c (_initialize_interpreter): Likewise.
4881 * language.c (_initialize_language): Likewise.
4882 * linux-fork.c (_initialize_linux_fork): Likewise.
4883 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4884 * maint.c (_initialize_maint_cmds): Likewise.
4885 * memattr.c (_initialize_mem): Likewise.
4886 * printcmd.c (_initialize_printcmd): Likewise.
4887 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4889 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4890 * record-btrace.c (_initialize_record_btrace): Likewise.
4891 * record-full.c (_initialize_record_full): Likewise.
4892 * record.c (_initialize_record): Likewise.
4893 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4894 * regcache.c (_initialize_regcache): Likewise.
4895 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4896 _initialize_remote): Likewise.
4897 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4898 * serial.c (_initialize_serial): Likewise.
4899 * skip.c (_initialize_step_skip): Likewise.
4900 * source.c (_initialize_source): Likewise.
4901 * stack.c (_initialize_stack): Likewise.
4902 * symfile.c (_initialize_symfile): Likewise.
4903 * symtab.c (_initialize_symtab): Likewise.
4904 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4905 * top.c (init_main): Likewise.
4906 * tracefile-tfile.c (tfile_target_info): Likewise.
4907 * tracepoint.c (_initialize_tracepoint): Likewise.
4908 * tui/tui-win.c (_initialize_tui_win): Likewise.
4909 * utils.c (add_internal_problem_command): Likewise.
4910 * valprint.c (value_print_option_defs): Likewise.
4912 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4915 * configure.ac: Drop enable-libmcheck support.
4916 * configure, config.in: Rebuild.
4917 * libmcheck.m4: Remove.
4918 * acinclude.m4: Don't include it.
4919 * Makefile.in: Don't distribute it.
4920 * top.c (print_gdb_configuration): Don't mention it.
4922 2019-08-06 Tom Tromey <tom@tromey.com>
4924 * utils.c (set_output_style): Sometimes pass stream to
4926 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4927 * record-btrace.c (btrace_insn_history): Update.
4928 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4930 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4931 Update initializers.
4932 <m_uiout>: New field.
4934 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4935 Remove "uiout" parameter.
4936 (dump_insns): Update.
4937 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4938 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4940 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4942 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4943 (error_in_psymtab_expansion): Likewise.
4944 (lookup_symbol_via_quick_fns): Likewise.
4945 (basic_lookup_transparent_type_quick): Likewise.
4946 (basic_lookup_transparent_type_1): Likewise.
4948 2019-08-06 Tom Tromey <tromey@adacore.com>
4950 * source.c (last_source_error): Now bool.
4951 (print_source_lines_base): Make "noprint" bool. Only open
4952 source file when last_source_visited changes.
4954 2019-08-06 Tom Tromey <tromey@adacore.com>
4956 * annotate.c (annotate_source_line): Use g_source_cache.
4957 * source-cache.c (source_cache::get_plain_source_lines): Change
4958 parameters. Populate m_offset_cache.
4959 (source_cache::ensure): New method.
4960 (source_cache::get_line_charpos): New method.
4961 (extract_lines): Move lower. Change parameters.
4962 (source_cache::get_source_lines): Move lower.
4963 * source-cache.h (class source_cache): Update comment.
4964 <get_line_charpos>: New method.
4965 <get_source_lines>: Update comment.
4966 <clear>: Clear m_offset_cache.
4967 <get_plain_source_lines>: Change parameters.
4968 <ensure>: New method
4969 <m_offset_cache>: New member.
4970 * source.c (forget_cached_source_info_for_objfile): Update.
4971 (info_source_command): Use g_source_cache.
4972 (find_source_lines, open_source_file_with_line_charpos): Remove.
4973 (print_source_lines_base, search_command_helper): Use g_source_cache.
4974 * source.h (open_source_file_with_line_charpos): Don't declare.
4975 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4976 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4979 2019-08-06 Tom Tromey <tromey@adacore.com>
4981 * source-cache.c (source_cache::get_plain_source_lines):
4982 Remove "first_line" and "last_line" parameters.
4983 (source_cache::get_source_lines): Cache plain text.
4984 * source-cache.h (class source_cache)
4985 <get_plain_source_lines>: Update.
4987 2019-08-06 Tom Tromey <tromey@adacore.com>
4989 * source-cache.c (extract_lines): No longer a method.
4990 Changed type of parameter. Include final newline.
4991 (selftests::extract_lines_test): New function.
4992 (_initialize_source_cache): Likewise.
4993 * source-cache.h (class source_cache)
4994 <extract_lines>: Don't declare.
4996 2019-08-06 Tom Tromey <tromey@adacore.com>
4998 * breakpoint.c (init_breakpoint_sal): Update.
4999 (breakpoint): Update.
5000 * breakpoint.h (struct breakpoint) <filter>: Now a
5003 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5005 * NEWS: Mention dictionary access on blocks.
5006 * python/py-block.c (blpy_getitem): New function.
5007 (block_object_as_mapping): New struct.
5008 (block_object_type): Use new struct for tp_as_mapping field.
5010 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5012 * objfiles.h (objfile): Add a comment describing partial symbols.
5014 2019-08-05 Tom Tromey <tromey@adacore.com>
5016 * compile/compile.c (_initialize_compile): Use _(), not N_().
5017 * thread.c (_initialize_thread): Use _(), not N_().
5018 * stack.c (_initialize_stack): Use _(), not N_().
5019 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5021 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5023 * dwarf2read.c (struct dw2_symtab_iterator):
5024 <want_specific_block>: Remove.
5025 <block_index>: Change type to gdb::optional.
5026 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5027 change type of BLOCK_INDEX parameter to gdb::optional.
5028 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5029 (dw2_lookup_symbol): Don't pass argument for
5030 WANT_SPECIFIC_BLOCK.
5031 (dw2_expand_symtabs_for_function): Don't pass argument for
5032 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5033 (class dw2_debug_names_iterator)
5034 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5035 parameter, change BLOCK_INDEX type to gdb::optional.
5036 <m_want_specific_block>: Remove.
5037 <m_block_index>: Change type to gdb::optional.
5038 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5039 gdb::optional. Re-write in function of gdb::optional.
5040 (dw2_debug_names_lookup_symbol): Don't pass argument for
5041 WANT_SPECIFIC_BLOCK.
5042 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5043 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5046 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5048 * NEWS: Mention changes to "info sources" command.
5050 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5052 * symtab.c (filename_partial_match_opts): New struct type.
5053 (struct output_source_filename_data): New members
5054 regexp, c_regexp, partial_match.
5055 (output_source_filename): Use new members to decide to print file.
5056 (info_sources_option_defs): New variable.
5057 (make_info_sources_options_def_group, print_info_sources_header,
5058 info_sources_command_completer):
5060 (info_sources_command): Read new optional arguments.
5061 (_initialize_symtab): Update info sources help.
5063 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5065 * ada-lang.c (exception_support_info_v0): Renamed from...
5066 (default_exception_support_info): ... this. Create new
5068 (ada_has_this_exception_support): Look up catch_handlers_sym.
5069 (ada_exception_support_info_sniffer): Try v0 after default.
5071 2019-08-01 Tom Tromey <tromey@adacore.com>
5073 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5076 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5078 * s12z-tdep.c: Fix include path for s12z-opc.h.
5080 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5082 * NEWS: Require GNU make 3.82.
5084 2019-07-16 Tom Tromey <tom@tromey.com>
5086 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5089 2019-07-30 Tom Tromey <tromey@adacore.com>
5091 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5093 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5095 * printcmd.c (print_address_symbolic): Print negative offsets.
5096 (build_address_symbolic): Force signed arithmetic when computing
5099 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5101 PR/24474: Add a function to lookup static variables.
5102 * NEWS: Mention this new function.
5103 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5104 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5105 * python/python.c (python_GdbMethods): Add new function.
5107 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5109 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5110 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5111 (objfpy_lookup_static_symbol): New function.
5112 (objfile_object_methods): Add new functions.
5114 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5116 * NEWS: Mention 'set|show print frame-info'. Mention new
5117 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5118 backtrace argument. Mention that python frame filtering code
5119 is now consistent with what 'backtrace' command prints.
5121 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5123 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
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):
5129 (struct frame_print_options): New member print_frame_info.
5130 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5131 * stack.h (get_user_print_what_frame_info): New declaration.
5132 (frame_show_address): New declaration.
5133 * stack.c (print_frame_arguments_choices): New value 'presence'.
5134 (print_frame_info_auto, print_frame_info_source_line,
5135 print_frame_info_location, print_frame_info_source_and_location,
5136 print_frame_info_location_and_address, print_frame_info_short_location,
5137 print_frame_info_choices, print_frame_info_print_what): New definitions.
5138 (print_frame_args): Only print dots for args if print frame-arguments
5140 (frame_print_option_defs): New element for "frame-info".
5141 (get_user_print_what_frame_info): New function.
5142 (frame_show_address): Make non static. Move comment to stack.h.
5143 (print_frame_info_to_print_what): New function.
5144 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5145 to decide what to print.
5146 (backtrace_command_1): Handle the new print_frame_arguments_presence
5148 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5149 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5150 (py_print_frame): In non-mi mode, use LOCATION as default for
5151 print_what, similarly to frame information printed directly by
5152 backtrace command. Handle frame-info user option in non MI mode.
5154 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5156 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5157 Add case for debugging 32-bit target on 64-bit host. Revise
5160 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5162 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5163 instead of find_function_entry_range_from_pc.
5165 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5167 * stack.c (find_frame_funname): Remove code which preferred
5168 minsym over symtab sym in "certain pathological cases".
5170 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5171 parameter. Change type of "do_demangle" to bool.
5172 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5173 Pass suitable "prefer_sym_over_minsym" flag to
5174 build_address_symbolic(). Don't output "+" for negative offsets.
5175 * printcmd.c (print_address_symbolic): Update invocation of
5176 build_address_symbolic to include a "prefer_sym_over_minsym"
5178 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5179 Restrict cases in which use of minimal symbol is preferred to that
5180 of a found symbol. Update comments.
5182 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5183 for entry pc when entry pc is out of range for that FDE.
5185 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5188 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5191 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5193 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5194 this function's Python signature.
5197 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5199 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5200 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5201 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5202 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5203 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5206 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5208 * h8300-tdep.c (h8300_register_name_common): New.
5209 h8300_register_name): Use h8300_register_name_common.
5210 (h8300s_register_name): Likewise.
5211 (h8300sx_register_name): Likewise.
5212 (h8300h_register_nam): New.
5213 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5216 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5218 * arm-tdep.c (arm_skip_cmse_entry): New function.
5219 (arm_is_sgstubs_section): New function.
5220 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5222 2019-07-22 Tom Tromey <tom@tromey.com>
5224 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5227 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5229 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5232 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5234 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5235 so that GDB doesn't match any msymbols when searching in the
5237 (print_symbol_info): Print using typedef_print or type_print based
5238 on the type of the symbol. Add updated FIXME comment moved from...
5239 (_initialize_symtab): ... move and update FIXME comment to above.
5241 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5243 * NEWS: Mention adding -q option to "info types".
5244 * symtab.c (struct info_types_options): New struct.
5245 (info_types_options_defs): New variable.
5246 (make_info_types_options_def_group): New function.
5247 (info_types_command): Use gdb::option framework to parse options.
5248 (info_types_command_completer): New function.
5249 (_initialize_symtab): Extend the help text on "info types" and
5250 register command completer.
5252 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5254 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5255 (lookup_symbol_in_objfile): Change int to block_enum and add a
5256 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5258 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5260 * MAINTAINERS (Write After Approval): Add self.
5262 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5264 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5265 instruction to the dummy code region.
5267 2019-07-19 Tom Tromey <tromey@adacore.com>
5269 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5270 (ARGSUSED, PARAMS, __func__): Remove rules.
5272 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5274 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5275 * features/arm/arm-with-iwmmxt.c: Remove.
5276 * features/arm/arm-with-iwmmxt.xml: Remove.
5277 * features/arm/arm-with-m-fpa-layout.c: Remove.
5278 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5279 * features/arm/arm-with-m-vfp-d16.c: Remove.
5280 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5281 * features/arm/arm-with-m.c: Remove.
5282 * features/arm/arm-with-m.xml: Remove.
5283 * features/arm/arm-with-neon.c: Remove.
5284 * features/arm/arm-with-neon.xml: Remove.
5285 * features/arm/arm-with-vfpv2.c: Remove.
5286 * features/arm/arm-with-vfpv2.xml: Remove.
5287 * features/arm/arm-with-vfpv3.c: Remove.
5288 * features/arm/arm-with-vfpv3.xml: Remove.
5290 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5292 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5294 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5296 * arch/aarch32.c (aarch32_create_target_description): Create
5297 target descriptions using features.
5298 * arch/arm.c (arm_create_target_description)
5299 (arm_create_mprofile_target_description): Likewise.
5300 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5302 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5304 * Makefile.in: Add new files.
5305 * aarch32-tdep.c: New file.
5306 * aarch32-tdep.h: New file.
5307 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5308 Call aarch32_read_description.
5309 * arch/aarch32.c: New file.
5310 * arch/aarch32.h: New file.
5311 * arch/arm.c (arm_create_target_description)
5312 (arm_create_mprofile_target_description): New function.
5313 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5314 (arm_create_target_description)
5315 (arm_create_mprofile_target_description): New declaration.
5316 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5317 read_description functions.
5318 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5320 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5321 * arm-tdep.c (tdesc_arm_list): New variable.
5322 (arm_register_g_packet_guesses): Call create description functions.
5323 (arm_read_description) (arm_read_mprofile_description): New
5325 * arm-tdep.h (arm_read_description)
5326 (arm_read_mprofile_description): Add declaration.
5327 * configure.tgt: Add new files.
5329 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5331 * top.c (new_ui_command): Open specified terminal just once.
5333 2019-07-18 Tom Tromey <tromey@adacore.com>
5335 * symtab.c (main_name): Constify return type.
5336 * symfile.c (set_initial_language): Update.
5337 * symtab.h (main_name): Constify return type.
5339 2019-07-17 Tom Tromey <tom@tromey.com>
5341 * tui/tui-winsource.c (tui_update_source_window)
5342 (tui_update_source_window_as_is)
5343 (tui_update_source_windows_with_line): Remove return.
5344 * tui/tui-disasm.c (tui_show_disassem)
5345 (tui_show_disassem_and_update_source): Remove return.
5346 * tui/tui.c (tui_reset): Remove return.
5347 * tui/tui-wingeneral.c
5348 (tui_check_and_display_highlight_if_needed): Remove return.
5350 2019-07-17 Tom Tromey <tom@tromey.com>
5352 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5354 2019-07-17 Tom Tromey <tom@tromey.com>
5356 * tui/tui-winsource.h (struct tui_exec_info_window)
5357 (struct tui_source_window_base): Move from tui-data.h.
5358 * tui/tui-winsource.c: Move many method definitions from
5359 elsewhere. Remove "structuring" comments.
5360 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5361 (tui_source_window_base::refresh_window): Move to
5363 * tui/tui-win.c (tui_source_window_base::refresh_all)
5364 (tui_source_window_base::update_tab_width)
5365 (tui_source_window_base::set_new_height)
5366 (tui_source_window_base::do_make_visible_with_new_height): Move to
5368 * tui/tui-source.h: Update.
5369 * tui/tui-source.c (tui_source_window_base::reset): Move to
5371 * tui/tui-disasm.h: Update.
5372 * tui/tui-data.h (struct tui_exec_info_window): Move to
5374 (struct tui_source_window_base): Likewise.
5375 * tui/tui-data.c (tui_source_window_base::clear_detail)
5376 (tui_source_window_base, ~tui_source_window_base): Move to
5379 2019-07-17 Tom Tromey <tom@tromey.com>
5381 * tui/tui-win.c (tui_resize_all)
5382 (tui_source_window_base::update_tab_width)
5383 (tui_adjust_win_heights): Update.
5384 (tui_win_info::make_invisible_and_set_new_height): Rename from
5385 make_invisible_and_set_new_height.
5386 * tui/tui-data.h (struct tui_win_info)
5387 <make_invisible_and_set_new_height>: New method.
5389 2019-07-17 Tom Tromey <tom@tromey.com>
5391 * tui/tui.c: Update.
5392 * tui/tui-source.h (struct tui_source_window): Move from
5394 * tui/tui-layout.c: Update.
5395 * tui/tui-disasm.c: Update.
5396 * tui/tui-data.h (struct tui_source_window): Move to
5399 2019-07-17 Tom Tromey <tom@tromey.com>
5401 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5403 * tui/tui-data.h (struct tui_disasm_window): Move to
5406 2019-07-17 Tom Tromey <tom@tromey.com>
5408 * tui/tui-regs.h (struct tui_data_item_window): Move from
5410 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5411 * tui/tui-data.h (struct tui_data_item_window): Move to
5413 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5415 2019-07-17 Tom Tromey <tom@tromey.com>
5417 * tui/tui.c: Update.
5418 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5419 (tui_cmd_window::max_height): Move to tui-command.c.
5420 * tui/tui-layout.c: Update.
5421 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5422 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5424 * tui/tui-command.h (struct tui_cmd_window): Move from
5426 * tui/tui-command.c: Remove "structuring" comments.
5427 (tui_cmd_window::clear_detail)
5428 (tui_cmd_window::do_make_visible_with_new_height)
5429 (tui_cmd_window::max_height): Move from elsewhere.
5431 2019-07-17 Tom Tromey <tom@tromey.com>
5433 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5435 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5436 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5438 2019-07-17 Tom Tromey <tom@tromey.com>
5440 * tui/tui.c: Update.
5441 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5443 * tui/tui-windata.h: Remove file.
5444 * tui/tui-windata.c: Remove file.
5445 * tui/tui-win.c (tui_data_window::set_new_height)
5446 (tui_data_window::do_make_visible_with_new_height): Move to
5448 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5449 * tui/tui-regs.c: Remove "structuring" comments.
5450 (tui_data_window::first_data_item_displayed)
5451 (tui_data_window::delete_data_content_windows)
5452 (tui_data_window::erase_data_content)
5453 (tui_data_window::display_all_data)
5454 (tui_data_window::refresh_all)
5455 (tui_data_window::do_scroll_vertical)
5456 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5457 (tui_data_window::do_make_visible_with_new_height)
5458 (tui_data_window::refresh_window): Move from elsewhere.
5459 (_initialize_tui_regs): Move to end of file.
5460 * tui/tui-layout.c: Update.
5461 * tui/tui-hooks.c: Update.
5462 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5463 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5465 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5467 2019-07-17 Tom Tromey <tom@tromey.com>
5469 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5472 2019-07-17 Tom Tromey <tom@tromey.com>
5474 * tui/tui-win.c (tui_source_window_base::set_new_height)
5475 (tui_source_window_base::do_make_visible_with_new_height): Use
5476 m_has_locator field directly.
5477 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5479 (struct tui_source_window_base) <has_locator>: Likewise.
5481 2019-07-17 Tom Tromey <tom@tromey.com>
5483 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5485 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5487 * tui/tui-win.c (tui_source_window_base::set_new_height)
5488 (tui_source_window_base::set_new_height)
5489 (make_invisible_and_set_new_height)
5490 (tui_source_window_base::do_make_visible_with_new_height)
5491 (tui_source_window_base::do_make_visible_with_new_height):
5493 * tui/tui-layout.c (show_source_disasm_command, show_data)
5494 (show_source_or_disasm_and_command): Update.
5495 * tui/tui-layout.c (show_layout): Update.
5497 2019-07-17 Tom Tromey <tom@tromey.com>
5499 * tui/tui-layout.c (make_data_window): Remove.
5500 (show_data): Unify creation and re-initialization cases.
5502 2019-07-17 Tom Tromey <tom@tromey.com>
5504 * tui/tui-layout.c (make_source_window, make_disasm_window):
5506 (show_data): Unify creation and re-initialization cases.
5508 2019-07-17 Tom Tromey <tom@tromey.com>
5510 * tui/tui-layout.c (make_command_window): Remove.
5511 (show_source_disasm_command, show_source_or_disasm_and_command):
5512 Unify creation and re-initialization cases.
5514 2019-07-17 Tom Tromey <tom@tromey.com>
5516 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5517 creation and re-initialization cases.
5519 2019-07-17 Tom Tromey <tom@tromey.com>
5521 * tui/tui-regs.c (tui_get_register): Return void.
5523 2019-07-17 Tom Tromey <tom@tromey.com>
5525 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5528 2019-07-17 Tom Tromey <tom@tromey.com>
5530 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5535 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5536 * tui/tui-regs.c (tui_reg_layout): New function.
5537 (tui_show_registers, tui_reg_command): Use it.
5538 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5539 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5541 (tui_layout_command): Remove.
5543 2019-07-17 Tom Tromey <tom@tromey.com>
5545 * tui/tui-layout.h (tui/tui-layout): Return void.
5546 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5548 2019-07-17 Tom Tromey <tom@tromey.com>
5550 * tui/tui-layout.c (show_source_disasm_command, show_data):
5552 (reset_locator): Remove.
5553 (show_source_or_disasm_and_command): Update.
5555 2019-07-17 Tom Tromey <tom@tromey.com>
5557 * tui/tui-source.c (tui_source_window_base::reset): Remove
5559 * tui/tui-layout.c (make_command_window, make_source_window)
5560 (make_disasm_window, make_data_window)
5561 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5562 (reset_locator, show_source_or_disasm_and_command): Update.
5563 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5565 (struct tui_source_window_base) <reset>: Likewise.
5567 2019-07-17 Tom Tromey <tom@tromey.com>
5569 * tui/tui-layout.c (show_source_disasm_command): Use
5571 (reset_locator): New function.
5572 (init_and_make_win): Remove.
5573 (show_source_or_disasm_and_command): Use reset_locator.
5575 2019-07-17 Tom Tromey <tom@tromey.com>
5577 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5579 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5581 * tui/tui-source.c (tui_source_window_base::reset): New method.
5582 * tui/tui-layout.c (make_command_window): Don't call
5584 (make_source_window, make_disasm_window): Don't call
5585 make_source_or_disasm_window.
5586 (make_data_window): Don't call init_and_make_win. Change calling
5588 (show_source_disasm_command, show_data): Simplify.
5589 (make_source_or_disasm_window): Remove.
5590 (show_source_or_disasm_and_command): Simplify.
5591 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5592 (struct tui_source_window_base) <reset>: Likewise.
5593 <execution_info>: Remove initializer.
5594 * tui/tui-data.c (tui_source_window_base): Initialize
5597 2019-07-17 Tom Tromey <tom@tromey.com>
5599 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5602 2019-07-17 Tom Tromey <tom@tromey.com>
5604 * tui/tui.c (tui_rl_other_window): Update.
5605 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5606 superclass method first. Always iterate over regs_content.
5607 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5609 * tui/tui-win.c (tui_set_focus_command): Update.
5611 2019-07-17 Tom Tromey <tom@tromey.com>
5613 * tui/tui-win.c (tui_set_focus_command): Rename from
5614 tui_set_focus. Call tui_enable.
5615 (tui_set_focus_command): Remove.
5617 2019-07-17 Tom Tromey <tom@tromey.com>
5619 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5621 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5623 (tui_data_window::refresh_window): Call refresh_window on data
5624 items. Always call superclass refresh_window.
5625 (tui_win_info::refresh): Remove.
5626 (tui_source_window_base::refresh_window): Update.
5627 (tui_refresh_all): Update.
5628 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5630 (show_source_or_disasm_and_command): Likewise.
5631 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5632 (struct tui_source_window_base) <refresh>: Likewise.
5634 2019-07-17 Tom Tromey <tom@tromey.com>
5636 * tui/tui-winsource.c (tui_clear_source_content)
5637 (tui_show_source_content): Update.
5638 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5639 whether content is empty.
5640 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5643 2019-07-17 Tom Tromey <tom@tromey.com>
5645 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5647 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5648 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5650 2019-07-17 Tom Tromey <tom@tromey.com>
5652 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5653 (struct tui_data_item_window): Update.
5655 2019-07-17 Tom Tromey <tom@tromey.com>
5657 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5658 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5663 * tui/tui-winsource.h (tui_erase_source_content)
5664 (tui_clear_source_content): Remove "display_prompt" parameter.
5665 * tui/tui-winsource.c (tui_update_source_window_as_is)
5666 (tui_update_source_windows_with_addr): Update.
5667 (tui_clear_source_content): Remove "display_prompt" parameter.
5668 (tui_erase_source_content): Likewise. Simplify.
5669 (tui_show_source_content): Update.
5670 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5671 * tui/tui-stack.c (tui_show_frame_info): Update.
5672 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5675 2019-07-17 Tom Tromey <tom@tromey.com>
5677 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5678 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5680 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5683 2019-07-17 Tom Tromey <tom@tromey.com>
5685 * tui/tui-winsource.c (tui_clear_source_content)
5686 (tui_show_source_content, tui_show_exec_info_content)
5687 (tui_clear_exec_info_content): Update.
5688 * tui/tui-stack.c (tui_show_locator_content): Update.
5689 (tui_show_frame_info): Update.
5690 * tui/tui-source.h (tui_source_window): Don't declare.
5691 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5692 from tui_source_is_displayed.
5693 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5695 (struct tui_source_window_base) <content_in_use>: New field. Now
5697 (struct tui_source_window) <showing_source_p>: New method.
5698 (TUI_SRC_WIN): Change cast.
5699 * tui/tui-data.c (tui_initialize_static_data): Update.
5701 2019-07-17 Tom Tromey <tom@tromey.com>
5703 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5705 * tui/tui-source.c (tui_source_window::location_matches_p): New
5707 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5709 * tui/tui-data.h (struct tui_source_window_base)
5710 <location_matches_p>: New method.
5711 (struct tui_source_window, struct tui_disasm_window)
5712 <location_matches_p>: Likewise.
5714 2019-07-17 Tom Tromey <tom@tromey.com>
5716 * tui/tui-win.c (tui_set_win_height_command): Rename from
5718 (tui_set_win_height_command): Remove.
5720 2019-07-17 Tom Tromey <tom@tromey.com>
5722 * tui/tui-source.c (tui_source_window): New constructor. Add
5724 (~tui_source_window): New destructor.
5725 (tui_source_window::style_changed): New method.
5726 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5727 (tui_attach_detach_observers): Update.
5728 * tui/tui-data.h (struct tui_source_window): Make constructor not
5729 inline. Add destructor.
5730 (struct tui_source_window) <style_changed>: New method.
5731 <m_observable>: New member.
5733 2019-07-17 Tom Tromey <tom@tromey.com>
5735 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5736 * tui/tui-win.c (tui_resize_all): Fix typo.
5738 2019-07-17 Tom Tromey <tom@tromey.com>
5740 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5741 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5742 (tui_refresh_all): Remove "list" parameter. Use foreach.
5743 * tui/tui-win.c (window_name_completer): Use foreach.
5744 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5745 (update_tab_width): Likewise.
5746 * tui/tui-layout.c (show_layout): Update.
5747 * tui/tui-data.h (class tui_window_iterator): New.
5748 (struct all_tui_windows): New.
5749 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5751 2019-07-17 Tom Tromey <tom@tromey.com>
5753 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5754 parameter. Don't reference globals.
5755 (tui_reg_command): Update.
5757 2019-07-17 Tom Tromey <tom@tromey.com>
5759 * tui/tui-regs.c (tui_show_registers): Simplify.
5761 2019-07-17 Tom Tromey <tom@tromey.com>
5763 * tui/tui-regs.c (tui_show_registers): Update.
5764 (tui_show_register_group): Add win_info parameter.
5766 2019-07-17 Tom Tromey <tom@tromey.com>
5768 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5769 Rename from tui_display_reg_element_at_line.
5770 (tui_data_window::display_registers_from_line): Update.
5771 * tui/tui-data.h (struct tui_data_window)
5772 <display_reg_element_at_line>: New method.
5774 2019-07-17 Tom Tromey <tom@tromey.com>
5776 * tui/tui-regs.h (tui_display_registers_from)
5777 (tui_display_registers_from_line): Don't declare.
5778 * tui/tui-windata.c (tui_data_window::display_all_data)
5779 (tui_data_window::refresh_all)
5780 (tui_data_window::do_scroll_vertical): Update.
5781 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5782 from tui_display_registers_from.
5783 (tui_display_reg_element_at_line): Update.
5784 (tui_data_window::display_registers_from_line): Rename from
5785 tui_display_registers_from_line.
5786 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5787 display_registers_from_line>: New methods.
5789 2019-07-17 Tom Tromey <tom@tromey.com>
5791 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5792 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5793 from tui_erase_data_content.
5794 (tui_data_window::display_all_data)
5795 (tui_data_window::refresh_all)
5796 (tui_data_window::do_scroll_vertical): Update.
5797 * tui/tui-regs.c (tui_show_registers): Update.
5798 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5801 2019-07-17 Tom Tromey <tom@tromey.com>
5803 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5806 (tui_data_window::delete_data_content_windows): Rename from
5807 tui_delete_data_content_windows.
5808 (tui_data_window::display_all_data)
5809 (tui_data_window::do_scroll_vertical): Update.
5810 * tui/tui-data.h (struct tui_data_window)
5811 <delete_data_content_windows>: New method.
5813 2019-07-17 Tom Tromey <tom@tromey.com>
5815 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5816 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5818 2019-07-17 Tom Tromey <tom@tromey.com>
5820 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5821 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5822 from tui_display_all_data.
5824 (tui_data_window::do_make_visible_with_new_height): Update.
5825 * tui/tui-regs.c (tui_show_registers): Update.
5826 * tui/tui-layout.c (tui_set_layout): Update.
5827 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5830 2019-07-17 Tom Tromey <tom@tromey.com>
5832 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5833 * tui/tui-windata.c (tui_display_data_from): Remove.
5834 (tui_data_window::refresh_all): Update.
5836 2019-07-17 Tom Tromey <tom@tromey.com>
5838 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5839 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5840 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5841 tui_display_registers_from_line.
5842 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5843 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5844 "force_display" parameter.
5846 2019-07-17 Tom Tromey <tom@tromey.com>
5848 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5850 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5851 Rename from tui_first_reg_element_no_inline.
5852 (tui_display_reg_element_at_line)
5853 (tui_display_registers_from_line): Update.
5854 * tui/tui-data.h (struct tui_data_window)
5855 <first_reg_element_no_inline>: New method.
5857 2019-07-17 Tom Tromey <tom@tromey.com>
5859 * tui/tui-windata.c (tui_display_data_from)
5860 (tui_data_window::do_scroll_vertical): Update.
5861 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5862 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5863 Rename from tui_line_from_reg_element_no.
5864 (tui_display_registers_from_line): Update.
5865 * tui/tui-data.h (struct tui_data_window)
5866 <line_from_reg_element_no>: New method.
5868 2019-07-17 Tom Tromey <tom@tromey.com>
5870 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5871 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5872 tui_last_regs_line_no.
5873 (tui_display_reg_element_at_line)
5874 (tui_display_registers_from_line): Update.
5875 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5878 2019-07-17 Tom Tromey <tom@tromey.com>
5881 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5882 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5883 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5884 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5885 (tui_update_breakpoint_info): Likewise.
5886 * tui/tui-hooks.c (tui_event_create_breakpoint)
5887 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5890 2019-07-17 Tom Tromey <tom@tromey.com>
5892 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5894 2019-07-17 Tom Tromey <tom@tromey.com>
5896 * tui/tui-winsource.c (tui_update_source_window_as_is)
5897 (tui_update_source_windows_with_addr): Update.
5898 * tui/tui-source.h (tui_set_source_content)
5899 (tui_show_symtab_source): Add "win_info" parameter.
5900 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5902 (tui_show_symtab_source): Likewise.
5904 2019-07-17 Tom Tromey <tom@tromey.com>
5906 * tui/tui-wingeneral.c
5907 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5909 2019-07-17 Tom Tromey <tom@tromey.com>
5911 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5912 (struct tui_cmd_window) <can_scroll>: New method.
5913 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5916 2019-07-17 Tom Tromey <tromey@adacore.com>
5918 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5919 do_field_signed>: Rename. Change type of "value".
5920 * ui-out.c (ui_out::field_signed): Rename from field_int.
5921 Change type of "value".
5922 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5924 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5925 do_field_int. Change type of "value".
5926 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5927 do_field_int. Change type of "value".
5928 * tracepoint.c (trace_status_mi, tfind_1)
5929 (print_one_static_tracepoint_marker): Update.
5930 * thread.c (print_thread_info_1, print_selected_thread_frame):
5932 * stack.c (print_frame, print_frame_info): Update.
5933 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5935 * source.c (print_source_lines_base): Update.
5936 * skip.c (info_skip_command): Update.
5937 * record-btrace.c (btrace_ui_out_decode_error)
5938 (btrace_call_history_src_line): Update.
5939 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5941 * progspace.c (print_program_space): Update.
5942 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5943 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5944 do_field_int. Change type of "value".
5945 * mi/mi-out.c (mi_ui_out::do_table_begin)
5946 (mi_ui_out::do_table_header): Update.
5947 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5949 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5950 (mi_cmd_data_list_changed_registers, output_register)
5951 (mi_cmd_data_read_memory, mi_load_progress)
5952 (mi_cmd_trace_frame_collected): Update.
5953 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5955 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5956 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5957 (mi_cmd_var_list_children, varobj_update_one): Update.
5958 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5959 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5961 * inferior.c (print_inferior): Update.
5962 * gdb_bfd.c (print_one_bfd): Update.
5963 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5965 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5966 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5967 do_field_int. Change type of "value".
5968 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5969 do_field_int. Change type of "value".
5970 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5971 (print_one_breakpoint_location, print_it_catch_fork)
5972 (print_one_catch_fork, print_it_catch_vfork)
5973 (print_one_catch_vfork, print_it_catch_solib)
5974 (print_it_catch_exec, print_it_ranged_breakpoint)
5975 (print_mention_watchpoint, print_mention_masked_watchpoint)
5976 (bkpt_print_it, update_static_tracepoint): Update.
5977 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5978 * break-catch-syscall.c (print_it_catch_syscall): Update.
5979 * ada-tasks.c (print_ada_task_info): Update.
5980 * ada-lang.c (print_it_exception, print_mention_exception):
5983 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5985 PR breakpoints/24541
5986 * gdbarch.c: Regenerate.
5987 * gdbarch.h: Regenerate.
5988 * gdbarch.sh: Adjust return type and parameter types for
5989 'stap_adjust_register'.
5990 (i386_stap_adjust_register): Adjust signature and return new
5992 * stap-probe.c (stap_parse_register_operand): Adjust use of
5993 'gdbarch_stap_adjust_register'.
5995 2019-07-17 Tom Tromey <tromey@adacore.com>
5997 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5999 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6001 (struct s390_process_info): Add initializers.
6002 (s390_add_process): Use new.
6003 (s390_linux_nat_target::low_forget_process): Use delete.
6004 (s390_linux_nat_target::low_new_fork)
6005 (s390_linux_nat_target::stopped_by_watchpoint)
6006 (s390_linux_nat_target::low_prepare_to_resume)
6007 (s390_linux_nat_target::insert_watchpoint)
6008 (s390_linux_nat_target::insert_hw_breakpoint)
6009 (s390_linux_nat_target::remove_watchpoint)
6010 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6012 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6014 * aarch64-fbsd-nat.c: Include regcache.h.
6015 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6017 (aarch64_fbsd_nat_target::fetch_registers)
6018 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6020 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6022 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6024 * fbsd-nat.c: Include gdbarch.h.
6026 2019-07-15 Tom Tromey <tromey@adacore.com>
6028 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6030 2019-07-15 Tom Tromey <tromey@adacore.com>
6032 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6033 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6034 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6035 * cli-out.c (cli_ui_out::do_field_int): New method.
6036 * ui-out.c (ui_out::field_unsigned): New method.
6037 * symfile.c (generic_load): Use field_unsigned.
6038 (print_transfer_performance): Likewise.
6039 * record-btrace.c (ui_out_field_uint): Remove.
6040 (btrace_call_history_insn_range, btrace_call_history): Use
6042 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6044 * ui-out.h (class ui_out) <field_unsigned>: New method.
6045 <do_field_unsigned>: Likewise.
6047 2019-07-15 Tom Tromey <tromey@adacore.com>
6049 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6050 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6051 * target.c (flash_erase_command): Use field_string.
6052 * infrun.c (print_signal_received_reason): Use field_string.
6053 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6054 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6056 * ada-tasks.c (print_ada_task_info): Use field_string.
6058 2019-07-15 Tom Tromey <tromey@adacore.com>
6060 * target.c (flash_erase_command): Use field_core_addr.
6061 * symfile.c (generic_load): Use field_core_addr.
6062 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6063 Use field_core_addr.
6064 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6067 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6069 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6070 value if its desired type is smaller than a CORE_ADDR and signed.
6072 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6074 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6075 of changes to field names, and use new is_reference field to
6076 decide if a property is a reference or not.
6077 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6079 (struct dwarf2_property_baton): Update header comment, rename
6080 'referenced_type' to 'property_type' and update comments.
6081 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6082 default property type, store in property baton, update to take
6083 accound of renamed field.
6084 (read_func_scope): Update call to attr_to_dynamic_prop.
6085 (read_array_type): Likewise.
6086 (dwarf2_per_cu_addr_sized_int_type): New function.
6087 (read_subrange_index_type): Move type finding code to
6088 dwarf2_per_cu_addr_sized_int_type.
6089 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6090 (dwarf2_per_cu_addr_type): New function.
6091 (set_die_type): Update calls to attr_to_dynamic_prop.
6093 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6095 * dwarf2read.c (read_subrange_index_type): New function.
6096 (read_subrange_type): Move code into new function and call it.
6097 * gdbtypes.c (create_range_type): Add some asserts.
6099 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6101 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6102 update return statements.
6103 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6104 declaration, and update comment to match.
6105 * gdbtypes.c (resolve_dynamic_array): Update call to
6106 dwarf2_evaluate_property to match new return type.
6108 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6110 * valarith.c (value_subscripted_rvalue): Change lowerbound
6111 parameter type from int to LONGEST.
6112 * value.h (value_subscripted_rvalue): Likewise in declaration.
6114 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6116 * cli/cli-utils.c (info_print_command_completer): New function.
6117 * cli/cli-utils.h: Add 'completer.h' include, and forward
6118 declaration for 'struct cmd_list_element'.
6119 (info_print_command_completer): Declare.
6120 * stack.c (_initialize_stack): Add completer for 'info locals' and
6122 * symtab.c (_initialize_symtab): Add completer for 'info
6123 variables' and 'info functions'.
6124 * NEWS: Mention completion for additional info commands.
6126 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6128 * cli/cli-utils.c (extract_info_print_args): Delete.
6129 (extract_arg_maybe_quoted): Delete.
6130 (info_print_options_defs): New variable.
6131 (make_info_print_options_def_group): New function.
6132 (extract_info_print_options): Define new function.
6133 * cli/cli-utils.h (extract_info_print_args): Delete.
6134 (struct info_print_options): New structure.
6135 (extract_info_print_options): Declare new function.
6136 * stack.c (info_locals_command): Update to use new
6137 extract_info_print_options, also add a header comment.
6138 (info_args_command): Likewise.
6139 * symtab.c (info_variables_command): Likewise.
6140 (info_functions_command): Likewise.
6142 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6144 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6145 to extract string arguments.
6146 * common/common-utils.c (extract_string_maybe_quoted): New function.
6147 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6149 2019-07-11 Tom Tromey <tromey@adacore.com>
6151 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6152 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6153 * top.h (gdbinit): Don't declare.
6154 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6156 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6157 * top.c (gdb_init): Don't call init_cli_cmds.
6159 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6161 2019-07-11 Tom Tromey <tromey@adacore.com>
6163 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6164 after it has been moved.
6166 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6168 * valops.c (value_must_coerce_to_target): Change return type to
6170 * value.h (value_must_coerce_to_target): Likewise.
6172 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6174 * breakpoint.c (is_hardware_watchpoint): Remove
6175 forward-declaration.
6176 (is_masked_watchpoint): Change return type to bool.
6177 (is_tracepoint): Likewise.
6178 (is_breakpoint): Likewise.
6179 (is_hardware_watchpoint): Likewise.
6180 (is_watchpoint): Likewise.
6181 (is_no_memory_software_watchpoint): Likewise.
6182 (is_catchpoint): Likewise.
6183 (breakpoint_1): Make FILTER parameter's return type bool.
6184 is_masked_watchpoint): Change return type to bool.
6185 (save_breakpoints): Make FILTER parameter's return type bool.
6186 * breakpoint.h (is_breakpoint): Change return type to bool.
6187 (is_watchpoint): Likewise.
6188 (is_catchpoint): Likewise.
6189 (is_tracepoint): Likewise.
6191 2019-07-10 Tom Tromey <tom@tromey.com>
6193 * defs.h: Don't include gdbarch.h.
6194 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6195 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6196 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6197 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6198 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6199 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6200 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6201 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6202 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6203 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6204 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6205 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6206 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6207 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6208 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6209 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6210 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6211 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6212 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6213 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6214 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6215 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6216 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6217 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6218 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6219 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6220 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6222 2019-07-10 Tom Tromey <tromey@adacore.com>
6224 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6225 * breakpoint.c (init_ada_exception_breakpoint): Register as
6227 (print_one_breakpoint_location, print_one_breakpoint): Use
6228 is_ada_exception_catchpoint.
6229 * ada-lang.c (class ada_catchpoint_location): Pass
6230 bp_loc_software_breakpoint to bp_location constructor.
6231 (is_ada_exception_catchpoint): New function.
6233 2019-07-10 Tom Tromey <tromey@adacore.com>
6235 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6237 (struct arm_exidx_entry): New method operator<.
6238 (struct arm_exidx_data) <section_maps>: Change type.
6239 (arm_exidx_data_free): Remove.
6240 (arm_exidx_data_key): Change type. Move lower.
6241 (arm_exidx_new_objfile): Update.
6242 (arm_compare_exidx_entries): Remove.
6243 (arm_find_exidx_entry, _initialize_arm_tdep)
6245 2019-07-10 Tom Tromey <tromey@adacore.com>
6247 * solib-spu.c (ocl_program_data_key): Change type.
6248 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6251 2019-07-10 Tom Tromey <tromey@adacore.com>
6253 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6254 (struct solib_aix_inferior_data) <library_list>: Change type.
6255 (solib_aix_inferior_data_handle): Change type.
6256 (get_solib_aix_inferior_data): Update.
6257 (solib_aix_free_library_list): Remove.
6258 (library_list_start_library): Update.
6259 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6261 (solib_aix_get_library_list)
6262 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6263 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6265 2019-07-10 Tom Tromey <tromey@adacore.com>
6267 * solib-dsbt.c (struct dsbt_info): Add initializers.
6268 (solib_dsbt_pspace_data): Change type.
6269 (dsbt_pspace_data_cleanup): Remove.
6270 (get_dsbt_info, _initialize_dsbt_solib): Update.
6272 2019-07-10 Tom Tromey <tromey@adacore.com>
6274 * spu-tdep.c (spu_overlay_data): Change type.
6275 (spu_get_overlay_table, spu_overlay_new_objfile)
6276 (_initialize_spu_tdep): Update.
6278 2019-07-10 Tom Tromey <tromey@adacore.com>
6280 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6282 (dbx_objfile_data_key): Change type and declare later.
6283 (DBX_SYMFILE_INFO): Rewrite.
6284 * dbxread.c (dbx_objfile_data_key): Change type.
6285 (dbx_symfile_init): Update.
6286 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6287 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6288 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6290 2019-07-10 Tom Tromey <tromey@adacore.com>
6292 * jit.c (jit_program_space_key): Change type. Move lower.
6293 (get_jit_program_space_data): Update.
6294 (jit_program_space_data_cleanup): Remove.
6295 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6297 (struct jit_program_space_data): Add initializers.
6299 2019-07-10 Tom Tromey <tromey@adacore.com>
6301 * solib-darwin.c (struct darwin_info): Add initializers.
6302 (solib_darwin_pspace_data): Change type.
6303 (darwin_pspace_data_cleanup): Remove.
6304 (get_darwin_info, _initialize_darwin_solib): Update.
6306 2019-07-10 Tom Tromey <tromey@adacore.com>
6308 * remote-sim.c (struct sim_inferior_data): Add initializers,
6309 constructor, and destructor.
6310 (sim_inferior_data_key): Change type. Move lower.
6311 (check_for_duplicate_sim_descriptor): Update.
6312 (get_sim_inferior_data): Use new. Update.
6313 (~sim_inferior_data_cleanup): Rename from
6314 sim_inferior_data_cleanup. Simplify.
6315 (gdbsim_close_inferior, simulator_command)
6316 (sim_command_completer, _initialize_remote_sim): Update.
6317 (next_pid, INITIAL_PID): Move earlier.
6319 2019-07-10 Tom Tromey <tromey@adacore.com>
6321 * python/python-internal.h (create_thread_object): Return
6323 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6324 * python/py-inferior.c (struct threadlist_entry): Add
6326 <thread_obj>: Now a gdbpy_ref.
6327 (thread_to_thread_object): Update.
6328 (add_thread_object): Use new.
6329 (delete_thread_object): Use delete.
6330 (infpy_threads): Update.
6331 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6334 2019-07-10 Tom Tromey <tromey@adacore.com>
6336 * valops.c (value_cast): Specialize error message for Ada.
6338 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6340 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6342 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6344 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6345 bpstat_should_step): Return bool, adjust comments.
6346 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6347 bpstat_should_step): Likewise.
6349 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6351 * features/Makefile: Use feature target descriptions for Arm.
6352 * features/arm/arm-core.c: Generate new file.
6353 * features/arm/arm-fpa.c: Likewise.
6354 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6355 * features/arm/arm-m-profile.c: Likewise.
6356 * features/arm/arm-vfpv2.c: Likewise.
6357 * features/arm/arm-vfpv3.c: Likewise.
6358 * features/arm/xscale-iwmmxt.c: Likewise.
6359 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6361 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6363 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6366 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6368 * features/aarch64-pauth.c: Regenerate.
6370 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6372 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6374 (bpstat_what): Use false instead of 0.
6376 2019-07-09 Pedro Alves <palves@redhat.com>
6378 * break-catch-throw.c (is_exception_catchpoint): New.
6379 * breakpoint.c (print_one_breakpoint_location): New parameter
6380 'raw_loc'. Handle it. Use
6381 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6382 looking at the breakpoint's type.
6383 (print_one_breakpoint): If handling "maint info breakpoints", also
6384 print locations of exception catchpoints.
6385 * breakpoint.h (is_exception_catchpoint): Declare.
6387 2019-07-09 Pedro Alves <palves@redhat.com>
6389 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6391 (allocate_location_exception_catchpoint): New.
6392 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6393 (initialize_throw_catchpoint_ops): Install
6394 allocate_location_exception_catchpoint as allocate_location
6396 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6397 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6399 (breakpoint_address_is_meaningful): Delete.
6400 (bl_address_is_meaningful): New.
6401 (breakpoint_locations_match): Adjust comment.
6402 (bp_location_from_bp_type): New, factored out of...
6403 (bp_location::bp_location(breakpoint *)): ... this.
6404 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6406 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6407 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6408 breakpoint_address_is_meaningful.
6409 (bp_locations_compare): Adjust comment.
6410 (update_global_location_list): Use bl_address_is_meaningful
6411 instead of breakpoint_address_is_meaningful.
6412 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6414 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6415 * python/py-breakpoint.c (bppy_get_location): No longer check
6416 whether location is null.
6418 2019-07-09 Pedro Alves <palves@redhat.com>
6421 * breakpoint.c (print_one_breakpoint_location): Remove
6422 single-location assert.
6424 2019-07-09 Tom Tromey <tom@tromey.com>
6426 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6427 * configure: Rebuild.
6428 * configure.ac: Change common to gdbsupport.
6429 * gdbsupport: Rename from common.
6430 * acinclude.m4: Change common to gdbsupport.
6431 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6432 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6434 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6435 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6436 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6437 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6438 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6439 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6440 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6441 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6442 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6443 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6444 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6445 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6446 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6447 coff-pe-read.c, command.h, compile/compile-c-support.c,
6448 compile/compile-c.h, compile/compile-cplus-symbols.c,
6449 compile/compile-cplus-types.c, compile/compile-cplus.h,
6450 compile/compile-loc2c.c, compile/compile.c, completer.c,
6451 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6452 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6453 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6454 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6455 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6456 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6457 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6458 features/aarch64-core.c, features/aarch64-fpu.c,
6459 features/aarch64-pauth.c, features/aarch64-sve.c,
6460 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6461 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6462 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6463 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6464 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6465 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6466 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6467 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6468 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6469 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6470 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6471 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6472 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6473 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6474 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6475 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6476 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6477 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6478 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6479 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6480 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6481 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6482 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6483 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6484 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6485 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6486 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6487 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6488 minsyms.c, mips-linux-tdep.c, namespace.h,
6489 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6490 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6491 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6492 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6493 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6494 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6495 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6496 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6497 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6498 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6499 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6500 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6501 procfs.c, producer.c, progspace.h, psymtab.h,
6502 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6503 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6504 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6505 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6506 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6507 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6508 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6509 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6510 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6511 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6512 target-memory.c, target.c, target.h, target/waitstatus.c,
6513 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6514 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6515 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6516 unittests/array-view-selftests.c,
6517 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6518 unittests/common-utils-selftests.c,
6519 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6520 unittests/format_pieces-selftests.c,
6521 unittests/function-view-selftests.c,
6522 unittests/lookup_name_info-selftests.c,
6523 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6524 unittests/mkdir-recursive-selftests.c,
6525 unittests/observable-selftests.c,
6526 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6527 unittests/parse-connection-spec-selftests.c,
6528 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6529 unittests/scoped_fd-selftests.c,
6530 unittests/scoped_mmap-selftests.c,
6531 unittests/scoped_restore-selftests.c,
6532 unittests/string_view-selftests.c, unittests/style-selftests.c,
6533 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6534 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6535 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6536 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6537 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6538 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6540 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6542 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6544 (decode_digits_ordinary): Set explicit_line field in sal.
6545 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6546 symtab_and_line that was set on an explicit line number in
6547 assembler code. Do always update the recorded symtab and line if
6548 we do skip the prologue.
6550 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6552 * breakpoint.c (set_breakpoint_location_function): Remove
6553 explicit_loc parameter.
6554 (momentary_breakpoint_from_master): Update call to
6555 set_breakpoint_location_function.
6556 (add_location_to_breakpoint): Likewise.
6558 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6560 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6561 required features based on default bfd type when no specific bfd
6564 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6566 * NEWS: Mention that GDB printf and eval commands can now print
6567 C-style and Ada-style convenience var strings without
6568 calling the inferior.
6569 * printcmd.c (printf_c_string): Locally print GDB internal var
6570 instead of transiting via the inferior.
6571 (printf_wide_c_string): Likewise.
6573 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6575 PR breakpoints/25011
6576 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6578 2019-07-04 Tom Tromey <tom@tromey.com>
6581 * tui/tui-winsource.c (tui_clear_source_content): Update.
6582 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6583 (tui_update_breakpoint_info): Update.
6584 (tui_set_exec_info_content): Update.
6585 * tui/tui-source.c (tui_set_source_content_nil): Update.
6586 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6588 * tui/tui-data.h (enum tui_bp_flag): New.
6589 (tui_bp_flags): New enum flags type.
6590 (struct tui_source_element) <break_mode>: Change type. Rename
6592 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6593 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6595 * tui/tui-winsource.h: Fix comment.
6597 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6599 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6600 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6601 (store_fpregs_to_thread)
6602 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6603 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6604 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6605 (IWMMXT_REGS_SIZE): Add define.
6606 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6607 (fetch_vfp_regs, store_vfp_regs)
6608 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6609 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6611 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6613 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6615 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6616 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6617 (ARM_INT_REGISTER_SIZE): ...to this.
6618 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6619 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6620 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6621 (arm_linux_collect_gregset, supply_nwfpe_register)
6622 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6624 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6625 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6626 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6627 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6628 (arm_return_in_memory, arm_store_return_value)
6629 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6630 (arm_record_ld_st_multiple): Likewise.
6631 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6632 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6634 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6636 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6637 AARCH64_DISPLACED_MODIFIED_INSNS.
6638 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6639 (aarch64_displaced_step_copy_insn): Likewise.
6640 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6641 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6642 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6643 ARM_DISPLACED_MODIFIED_INSNS.
6644 * arm-tdep.c (arm_gdbarch_init): Likewise.
6645 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6646 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6647 (struct arm_displaced_step_closure): Use
6648 ARM_DISPLACED_MODIFIED_INSNS.
6650 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6652 * features/Makefile: Remove unused xml files.
6653 * features/aarch64.xml: Remove.
6654 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6655 * features/i386/amd64-avx-avx512.xml: Remove.
6656 * features/i386/amd64-avx-linux.xml: Remove.
6657 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6658 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6659 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6660 * features/i386/amd64-avx-mpx.xml: Remove.
6661 * features/i386/amd64-avx.xml: Remove.
6662 * features/i386/amd64-linux.xml: Remove.
6663 * features/i386/amd64-mpx-linux.xml: Remove.
6664 * features/i386/amd64-mpx.xml: Remove.
6665 * features/i386/amd64.xml: Remove.
6666 * features/i386/i386-avx-avx512-linux.xml: Remove.
6667 * features/i386/i386-avx-avx512.xml: Remove.
6668 * features/i386/i386-avx-linux.xml: Remove.
6669 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6670 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6671 * features/i386/i386-avx-mpx-linux.xml: Remove.
6672 * features/i386/i386-avx-mpx.xml: Remove.
6673 * features/i386/i386-avx.xml: Remove.
6674 * features/i386/i386-linux.xml: Remove.
6675 * features/i386/i386-mmx-linux.xml: Remove.
6676 * features/i386/i386-mmx.xml: Remove.
6677 * features/i386/i386-mpx-linux.xml: Remove.
6678 * features/i386/i386-mpx.xml: Remove.
6679 * features/i386/i386.xml: Remove.
6680 * features/i386/x32-avx-avx512-linux.xml: Remove.
6681 * features/i386/x32-avx-linux.xml: Remove.
6682 * features/i386/x32-linux.xml: Remove.
6684 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6686 * regformats/aarch64.dat: Remove.
6687 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6688 * regformats/i386/amd64-avx-linux.dat: Remove.
6689 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6690 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6691 * regformats/i386/amd64-linux.dat: Remove.
6692 * regformats/i386/amd64-mpx-linux.dat: Remove.
6693 * regformats/i386/amd64.dat: Remove.
6694 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6695 * regformats/i386/i386-avx-linux.dat: Remove.
6696 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6697 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6698 * regformats/i386/i386-linux.dat: Remove.
6699 * regformats/i386/i386-mmx-linux.dat: Remove.
6700 * regformats/i386/i386-mpx-linux.dat: Remove.
6701 * regformats/i386/i386.dat: Remove.
6702 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6703 * regformats/i386/x32-avx-linux.dat: Remove.
6704 * regformats/i386/x32-linux.dat: Remove.
6706 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6708 * aarch64-tdep.c: Remove xml self tests.
6709 * amd64-linux-tdep.c: Likewise.
6710 * amd64-tdep.c: Likewise.
6711 * i386-linux-tdep.c: Likewise.
6712 * i386-tdep.c: Likewise.
6714 2019-07-03 Pedro Alves <palves@redhat.com>
6717 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6718 (pipe_cmd_option_defs): New.
6719 (make_pipe_cmd_options_def_group): New.
6720 (pipe_command): Use gdb::option::process_options.
6721 (pipe_command_completer): New function.
6722 (_initialize_cli_cmds): Install completer for "pipe" command.
6724 2019-07-03 Pedro Alves <palves@redhat.com>
6726 * cli/cli-option.c (union option_value) <string>: New field.
6727 (struct option_def_and_value): Add ctor, move ctor, dtor and
6728 use DISABLE_COPY_AND_ASSIGN.
6729 (option_def_and_value::clear_value): New.
6730 (parse_option, save_option_value_in_ctx, get_val_type_str)
6731 (add_setshow_cmds_for_options): Handle var_string.
6732 * cli-option.h (union option_def::var_address) <string>: New
6734 (struct string_option_def): New.
6735 * maint-test-options.c (struct test_options_opts): Add default
6736 ctor and use DISABLE_COPY_AND_ASSIGN.
6737 <string_opt>: New field.
6738 (test_options_opts::~test_options_opts): New.
6739 (test_options_opts::dump): Also dump "-string".
6740 (test_options_option_defs): Install "string.
6742 2019-07-03 Pedro Alves <palves@redhat.com>
6744 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6745 option_value with a null enumeration.
6746 (complete_options): Save the option values in the context.
6747 (save_option_value_in_ctx): New, factored out from ...
6748 (process_options): ... here.
6749 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6751 * maint-test-options.c (test_options_opts::dump): New, factored
6753 (maintenance_test_options_command_mode): ... here.
6754 (maintenance_test_options_command_completion_result): Delete.
6755 (maintenance_test_options_command_completion_text): Update
6757 (maintenance_show_test_options_completion_result): Change
6758 prototype. Just print
6759 maintenance_test_options_command_completion_text.
6760 (save_completion_result): New.
6761 (maintenance_test_options_completer_mode): Pass options context to
6762 complete_options, and then save a dump.
6763 (_initialize_maint_test_options): Use add_cmd to install "maint
6764 show test-options-completion-result".
6766 2019-07-03 Pedro Alves <palves@redhat.com>
6768 * NEWS (New commands): Mention "with" and "maint with".
6769 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6770 (with_command, with_command_completer): New.
6771 (pipe_command): Adjust to new repeat_previous
6773 (_initialize_cli_cmds): Install the "with" command and its "w"
6775 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6777 * cli/cli-setshow.c (parse_cli_var_uinteger)
6778 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6779 argument strings for all var_types.
6780 (get_setshow_command_value_string): New, factored out from ...
6781 (do_show_command): ... this.
6782 * cli/cli-setshow.h: Include <string>.
6783 (get_setshow_command_value_string): Declare.
6784 * command.h (repeat_previous): Now returns const char *. Adjust
6786 * maint.c: Include "cli/cli-cmds.h".
6787 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6788 (_initialize_maint_cmds): Register the "maintenance with" command.
6789 * top.c (repeat_previous): Move bits from pipe_command here:
6790 Return the saved command line, if any; error out if there's no
6791 command to relaunch.
6793 2019-07-03 Pedro Alves <palves@redhat.com>
6795 * NEWS (New commands): Mention "maint set/show test-settings"
6796 instead of "maint test-settings".
6797 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6798 (maintenance_test_settings_set_list): Rename to ...
6799 (maintenance_set_test_settings_list): ... this.
6800 (maintenance_test_settings_show_list): Rename to ...
6801 (maintenance_show_test_settings_list): ... this.
6802 (maintenance_test_settings_cmd): Delete.
6803 (maintenance_test_settings_set_cmd): ...
6804 (maintenance_set_test_settings_cmd): ... this.
6805 (maintenance_test_settings_show_cmd): ...
6806 (maintenance_show_test_settings_cmd): ... this.
6807 (maintenance_test_settings_show_value_cmd):
6808 (maintenance_show_test_settings_value_cmd): ... this.
6809 (_initialize_maint_test_settings): No longer install the "maint
6810 test-settings" prefix command. Rename "maint test-settings set"
6811 to "maint set test-settings", and "maint test-settings show" to
6812 "maint show test-settings". Adjust all subcommands.
6814 2019-07-03 Pedro Alves <palves@redhat.com>
6816 * maint-test-settings.c: Fix file's intro comment. Replace all
6817 references to "test-options" with references to "test-settings",
6820 2019-07-03 Pedro Alves <palves@redhat.com>
6822 * maint-test-settings.c (maintenance_test_settings_xxx)
6823 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6825 (maintenance_test_settings_enums): Use them.
6826 (maintenance_test_settings_enum): Default to
6827 maintenance_test_settings_xxx.
6828 (_initialize_maint_test_settings): Initialize
6829 MAINTENANCE_TEST_SETTINGS_FILENAME.
6831 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6833 * breakpoint.h (remove_breakpoints_inf): Change return type to
6834 void, move function documentation here.
6835 * breakpoint.c (remove_breakpoints_inf): Change return type to
6836 void, move function documentation to header.
6838 2019-07-02 Pedro Alves <palves@redhat.com>
6840 * NEWS (Completion improvements): Mention "info threads".
6841 * thread.c (struct info_threads_opts, info_threads_option_defs)
6842 (make_info_threads_options_def_group): New.
6843 (info_threads_command): Use gdb::option::process_options.
6844 (info_threads_command_completer): New.
6845 (_initialize_thread): Use gdb::option::build_help to build the
6846 help text for "info threads".
6848 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6850 * defs.h (generic_load): Move from here...
6851 * symfile.h (generic_load): ... to here. Rename name parameter
6853 * symfile.c (generic_load): Add comment.
6855 2019-07-01 Tom Tromey <tromey@adacore.com>
6858 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6859 declaration of without_params. Fix formatting.
6861 2019-07-01 Tom Tromey <tromey@adacore.com>
6863 * ada-exp.y (find_primitive_type): Update.
6864 * ada-lang.h (ada_lookup_symbol): Update.
6865 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6867 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6869 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6871 PR breakpoints/24541
6872 * gdbarch.c: Regenerate.
6873 * gdbarch.h: Regenerate.
6874 * gdbarch.sh: Add 'stap_adjust_register'.
6875 * i386-tdep.c: Include '<unordered_set>'.
6876 (i386_stap_adjust_register): New function.
6877 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6878 * stap-probe.c (stap_parse_register_operand): Call
6879 'gdbarch_stap_adjust_register'.
6881 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6884 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6885 * python/python.c (do_start_initialization): Use 'xmalloc'
6886 instead of 'PyMem_Malloc'.
6888 2019-06-28 Tom Tromey <tromey@adacore.com>
6890 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6893 2019-06-27 Tom Tromey <tromey@adacore.com>
6895 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6897 (arm_find_mapping_symbol, arm_record_special_symbol)
6898 (_initialize_arm_tdep): Update.
6899 (arm_objfile_data_free): Remove.
6901 2019-06-27 Tom Tromey <tromey@adacore.com>
6903 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6904 to cp_print_static_field.
6906 2019-06-26 Tom Tromey <tromey@adacore.com>
6908 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6909 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6912 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6914 * features/aarch64-core.c (create_feature_aarch64_core):
6916 * features/aarch64-core.xml: Add cpsr flags.
6918 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6920 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6921 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6923 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6925 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6927 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6929 (arm_record_special_symbol): Don't insert new symbol in sorted
6930 position, push it at the end.
6932 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6934 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6935 (arm_mapping_symbol_s): Remove.
6936 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6937 (arm_mapping_symbol_vec): New typedef.
6938 (struct arm_per_objfile): Add constructor.
6939 <section_maps>: Change type to
6940 std::unique_ptr<arm_mapping_symbol_vec[]>.
6941 (arm_compare_mapping_symbols): Remove.
6942 (arm_find_mapping_symbol): Adjust to section_maps type change.
6943 (arm_objfile_data_free): Call delete on arm_per_objfile.
6944 (arm_record_special_symbol): Adjust to section_maps type change.
6945 Allocate arm_per_objfile with new.
6947 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6949 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6950 with the command prefix.
6952 2019-06-25 Tom Tromey <tom@tromey.com>
6954 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6955 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6957 2019-06-25 Tom Tromey <tom@tromey.com>
6959 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6961 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6964 2019-06-25 Tom Tromey <tom@tromey.com>
6966 * tui/tui-winsource.c
6967 (tui_source_window_base::set_is_exec_point_at): Add check against
6970 2019-06-25 Tom Tromey <tom@tromey.com>
6972 * tui/tui-source.c (tui_set_source_content): Don't check before
6974 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6976 2019-06-25 Tom Tromey <tom@tromey.com>
6978 * tui/tui-winsource.h (tui_update_source_window_as_is)
6979 (tui_alloc_source_buffer, tui_line_is_displayed)
6980 (tui_addr_is_displayed): Change type of win_info.
6981 * tui/tui-winsource.c (tui_update_source_window_as_is)
6982 (tui_clear_source_content, tui_show_source_line)
6983 (tui_show_source_content, tui_source_window_base::refill)
6984 (tui_source_window_base::set_is_exec_point_at)
6985 (tui_source_window_base::set_is_exec_point_at)
6986 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6987 (tui_alloc_source_buffer, tui_line_is_displayed)
6988 (tui_addr_is_displayed): Change type of win_info. Update.
6989 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6990 (tui_source_window_base::do_make_visible_with_new_height):
6992 * tui/tui-source.c (tui_set_source_content)
6993 (tui_set_source_content_nil)
6994 (tui_source_window::do_scroll_vertical): Update.
6995 * tui/tui-layout.c (show_layout): Update.
6996 * tui/tui-disasm.c (tui_set_disassem_content)
6997 (tui_disasm_window::do_scroll_vertical): Update.
6998 * tui/tui-data.h (tui_win_content): Remove.
6999 (struct tui_gen_win_info) <content, content_size>: Remove.
7000 (struct tui_source_element): Add initializers and destructor.
7001 (union tui_which_element, struct tui_win_element): Remove.
7002 (struct tui_source_window_base) <content>: New field.
7003 (struct tui_data_window): Remove destructor.
7004 (tui_alloc_content, tui_free_win_content)
7005 (tui_free_all_source_wins_content): Don't declare.
7006 * tui/tui-data.c (tui_initialize_static_data): Update.
7007 (init_content_element, tui_alloc_content): Remove.
7008 (~tui_gen_win_info): Update.
7009 (~tui_data_window, tui_free_all_source_wins_content)
7010 (tui_free_win_content, free_content, free_content_elements):
7013 2019-06-25 Tom Tromey <tom@tromey.com>
7015 * tui/tui-winsource.h (tui_clear_source_content)
7016 (tui_erase_source_content, tui_show_source_content): Change type
7018 * tui/tui-winsource.c (tui_clear_source_content)
7019 (tui_erase_source_content, tui_show_source_content): Change type
7021 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7022 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7024 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7026 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7028 2019-06-25 Tom Tromey <tom@tromey.com>
7030 * tui/tui-winsource.c (tui_clear_source_content)
7031 (tui_source_window_base::set_is_exec_point_at): Update.
7032 * tui/tui-source.c (tui_set_source_content_nil): Update.
7033 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7035 * tui/tui-data.c (init_content_element): Update.
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7039 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7040 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7041 * tui/tui-layout.c (init_and_make_win): Update.
7042 * tui/tui.h (enum tui_win_type): Update.
7043 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7044 tui_win_is_auxillary.
7045 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7046 tui_win_is_auxillary.
7048 2019-06-25 Tom Tromey <tom@tromey.com>
7050 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7051 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7052 (tui_delete_data_content_windows, tui_display_all_data)
7053 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7055 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7056 * tui/tui-regs.c (tui_last_regs_line_no)
7057 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7058 (tui_show_registers): Update.
7059 (tui_show_register_group): Return void. Update.
7060 (tui_display_registers_from, tui_display_reg_element_at_line)
7061 (tui_display_registers_from_line, tui_check_register_values):
7063 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7065 (struct tui_data_window) <regs_content>: Now a std::vector.
7066 <regs_content_count>: Remove.
7067 (tui_add_content_elements, tui_free_data_content): Don't declare.
7068 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7069 (init_content_element): Remove DATA_WIN case. Add assert.
7070 (tui_add_content_elements): Remove.
7071 (tui_data_window): Update.
7072 (tui_free_data_content): Remove.
7073 (free_content_elements): Remove DATA_WIN case.
7075 2019-06-25 Tom Tromey <tom@tromey.com>
7077 * tui/tui-data.c (tui_data_item_window): Update.
7078 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7079 * tui/tui-windata.c (tui_display_all_data)
7080 (tui_display_data_from_line): Update.
7081 (tui_check_data_values): Remove.
7082 * tui/tui-regs.c (tui_show_register_group)
7083 (tui_display_reg_element_at_line): Update.
7084 * tui/tui-hooks.c (tui_register_changed)
7085 (tui_refresh_frame_and_register_information): Call
7086 tui_check_register_values.
7087 * tui/tui-data.h (struct tui_data_window) <data_content,
7088 data_content_count, data_type>: Remove.
7089 (enum tui_data_type): Remove.
7091 * tui/tui-data.c (tui_data_window::clear_detail)
7092 (~tui_data_window): Update.
7094 2019-06-25 Tom Tromey <tom@tromey.com>
7096 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7098 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7099 Rename from tui_first_data_item_displayed. Update.
7100 (tui_data_window::refresh_all)
7101 (tui_data_window::do_scroll_vertical): Update.
7102 * tui/tui-data.h (struct tui_data_window)
7103 <first_data_item_displayed>: Declare new method.
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7107 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7108 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7110 (tui_initialize_static_data): ...here.
7112 2019-06-25 Tom Tromey <tom@tromey.com>
7114 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7115 (tui_display_registers_from, tui_check_register_values): Update.
7116 (tui_display_register): Remove win_info parameter; update.
7117 (tui_get_register): Change type of parameters.
7118 * tui/tui-data.h (struct tui_data_element): Remove.
7119 (union tui_which_element) <data>: Remove.
7120 <data_window>: Change type.
7121 (struct tui_data_item_window): New.
7122 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7124 (~tui_data_item_window): New destructor.
7125 (free_content_elements): Remove DATA_ITEM_WIN case.
7127 2019-06-25 Tom Tromey <tom@tromey.com>
7129 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7132 2019-06-25 Tom Tromey <tom@tromey.com>
7134 * tui/tui-data.h (struct tui_command_element): Remove.
7135 (union tui_which_element) <command>: Remove.
7136 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7138 (free_content_elements): Remove CMD_WIN case.
7140 2019-06-25 Tom Tromey <tom@tromey.com>
7142 * tui/tui-layout.c (tui_set_layout): Update.
7143 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7144 * tui/tui-data.c (layout_def): Update.
7146 2019-06-25 Tom Tromey <tom@tromey.com>
7148 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7149 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7150 (tui_source_window_base::set_new_height): Update.
7151 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7153 (tui_set_locator_fullname, tui_set_locator_info)
7154 (tui_show_frame_info): Update.
7155 * tui/tui-source.c (tui_set_source_content)
7156 (tui_source_is_displayed): Update.
7157 * tui/tui-layout.c (show_source_disasm_command, show_data)
7158 (show_source_or_disasm_and_command): Update.
7159 * tui/tui-disasm.c (tui_set_disassem_content)
7160 (tui_get_begin_asm_address): Update.
7161 * tui/tui-data.h (struct tui_locator_element): Remove.
7162 (union tui_which_element) <locator>: Remove.
7163 (struct tui_locator_window): New.
7164 (tui_locator_win_info_ptr): Change return type.
7165 * tui/tui-data.c (_locator): Change type.
7166 (tui_locator_win_info_ptr): Change return type.
7167 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7168 (tui_alloc_content): Add assert.
7170 2019-06-25 Tom Tromey <tom@tromey.com>
7172 * tui/tui-winsource.c
7173 (tui_exec_info_window::maybe_allocate_content): New method.
7174 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7175 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7176 (make_source_or_disasm_window): Add cast.
7177 * tui/tui-data.h (union tui_which_element) <simple_string>:
7179 (struct tui_source_info): New.
7180 (struct tui_source_window_base) <execution_info>: Change type.
7181 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7182 case, and add assert.
7183 (tui_alloc_content): Add assert.
7185 2019-06-25 Tom Tromey <tom@tromey.com>
7187 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7188 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7189 * tui/tui-data.c (tui_alloc_win_info): Remove.
7191 2019-06-25 Tom Tromey <tom@tromey.com>
7193 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7194 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7197 2019-06-25 Tom Tromey <tom@tromey.com>
7199 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7200 make_visible_with_new_height method.
7201 (tui_win_info::make_visible_with_new_height): New method.
7202 (tui_source_window_base::do_make_visible_with_new_height)
7203 (tui_data_window::do_make_visible_with_new_height)
7204 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7205 (make_visible_with_new_height): Remove.
7206 (tui_resize_all, tui_adjust_win_heights): Use
7207 make_visible_with_new_height method.
7208 * tui/tui-data.h (struct tui_win_info)
7209 <do_make_visible_with_new_height, make_visible_with_new_height>:
7211 (struct tui_source_window_base, struct tui_data_window)
7212 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7215 2019-06-25 Tom Tromey <tom@tromey.com>
7217 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7219 (update_tab_width): Call update_tab_width method.
7220 * tui/tui-data.h (struct tui_win_info)
7221 (struct tui_source_window_base) <update_tab_width>: New methods.
7223 2019-06-25 Tom Tromey <tom@tromey.com>
7225 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7227 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7229 (tui_gen_win_info::make_visible): Update.
7230 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7232 * tui/tui-data.h (enum tui_box): New enum.
7233 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7235 2019-06-25 Tom Tromey <tom@tromey.com>
7237 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7238 init_and_make_win for EXEC_INFO_WIN.
7239 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7241 (struct tui_win_info) <~tui_win_info>: Inline.
7242 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7244 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7245 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7247 (tui_initialize_static_data): Update.
7248 (~tui_gen_win_info): Handle more cleanup here.
7249 (~tui_source_window_base): Delete "execution_info".
7250 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7252 2019-06-25 Tom Tromey <tom@tromey.com>
7254 * tui/tui-layout.c (make_command_window): Don't set
7256 (show_source_disasm_command): Call the reset method.
7257 (show_data): Don't set can_highlight. Call the reset method.
7258 (tui_gen_win_info::reset): Rename from init_gen_win_info
7259 (init_and_make_win): Simplify. Return tui_gen_win_info.
7260 (show_source_or_disasm_and_command): Call the reset method.
7261 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7262 (struct tui_cmd_window): Set can_highlight.
7264 2019-06-25 Tom Tromey <tom@tromey.com>
7266 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7268 (tui_make_visible, tui_make_invisible): Rewrite.
7269 (tui_win_info::make_visible): Remove.
7270 (tui_source_window_base::make_visible): Update.
7271 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7272 method. Moved from...
7273 (struct tui_win_info) <make_visible>: ...here.
7275 2019-06-25 Tom Tromey <tom@tromey.com>
7277 * tui/tui-winsource.c
7278 (tui_source_window_base::do_scroll_horizontal): Remove direction
7280 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7281 direction parameter.
7282 * tui/tui-win.c (tui_win_info::forward_scroll)
7283 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7284 (tui_win_info::right_scroll): Update.
7285 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7286 direction parameter.
7287 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7288 direction parameter.
7289 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7290 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7291 Remove direction parameter.
7292 (struct tui_source_window_base, struct tui_source_window)
7293 (struct tui_disasm_window, struct tui_data_window)
7294 (struct tui_cmd_window): Update.
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7298 * tui/tui-winsource.h (tui_set_exec_info_content)
7299 (tui_show_exec_info_content, tui_erase_exec_info_content)
7300 (tui_clear_exec_info_content, tui_update_exec_info): Change
7301 argument to tui_source_window_base.
7302 * tui/tui-winsource.c (tui_set_exec_info_content)
7303 (tui_show_exec_info_content, tui_erase_exec_info_content)
7304 (tui_clear_exec_info_content, tui_update_exec_info): Change
7305 argument to tui_source_window_base.
7307 2019-06-25 Tom Tromey <tom@tromey.com>
7309 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7310 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7312 2019-06-25 Tom Tromey <tom@tromey.com>
7314 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7317 2019-06-25 Tom Tromey <tom@tromey.com>
7319 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7321 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7323 * tui/tui-source.c (tui_set_source_content): Update.
7324 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7326 2019-06-25 Tom Tromey <tom@tromey.com>
7328 * tui/tui-win.c (window_name_completer, tui_set_focus)
7329 (tui_all_windows_info): Use name method.
7330 * tui/tui-data.h (struct tui_gen_win_info)
7331 (struct tui_source_window, struct tui_disasm_window)
7332 (struct tui_data_window, struct tui_cmd_window) <name>: New
7334 (tui_win_name): Don't declare.
7335 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7336 (tui_win_name): Remove.
7338 2019-06-25 Tom Tromey <tom@tromey.com>
7340 * tui/tui-winsource.h (tui_update_source_window)
7341 (tui_update_source_window_as_is): Change parameter type.
7342 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7343 to be a tui_source_window_base.
7344 (tui_update_source_window_as_is): Likewise.
7345 * tui/tui-win.c (make_visible_with_new_height): Update.
7347 2019-06-25 Tom Tromey <tom@tromey.com>
7349 * tui/tui-winsource.c (tui_erase_source_content)
7350 (tui_show_source_content, tui_show_exec_info_content)
7351 (tui_erase_exec_info_content): Use refresh_window method.
7352 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7353 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7354 from tui_refresh_win.
7355 (tui_data_window::refresh_window): New method.
7356 (tui_win_info::refresh, tui_source_window_base::refresh)
7357 (tui_refresh_all): Use refresh_window method.
7358 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7360 * tui/tui-regs.c (tui_display_register): Call refresh_window
7362 * tui/tui-layout.c (show_source_disasm_command)
7363 (show_source_or_disasm_and_command): Call refresh_window method.
7364 * tui/tui-data.h (struct tui_gen_win_info)
7365 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7368 2019-06-25 Tom Tromey <tom@tromey.com>
7370 * tui/tui.c (tui_rl_other_window, tui_enable)
7371 (tui_is_window_visible, tui_get_command_dimension): Update.
7372 * tui/tui-winsource.c (tui_update_source_window_as_is)
7373 (tui_clear_source_content, tui_erase_source_content)
7374 (tui_show_source_line, tui_source_window_base::refill)
7375 (tui_source_window_base::do_scroll_horizontal)
7376 (tui_source_window_base::set_is_exec_point_at)
7377 (tui_update_breakpoint_info, tui_set_exec_info_content)
7378 (tui_alloc_source_buffer, tui_line_is_displayed)
7379 (tui_addr_is_displayed): Update.
7380 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7381 (tui_check_and_display_highlight_if_needed)
7382 (tui_win_info::make_visible, tui_win_info::refresh)
7383 (tui_refresh_all): Update.
7384 * tui/tui-windata.c (tui_first_data_item_displayed)
7385 (tui_delete_data_content_windows, tui_erase_data_content)
7386 (tui_display_all_data, tui_data_window::refresh_all)
7387 (tui_check_data_values): Update.
7388 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7389 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7390 (tui_win_info::backward_scroll, tui_refresh_all_win)
7391 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7392 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7393 (tui_source_window_base::set_new_height)
7394 (tui_data_window::set_new_height)
7395 (make_invisible_and_set_new_height)
7396 (make_visible_with_new_height, new_height_ok)
7397 (parse_scrolling_args): Update.
7398 * tui/tui-stack.c (tui_show_frame_info): Update.
7399 * tui/tui-source.c (tui_set_source_content)
7400 (tui_set_source_content_nil, tui_source_is_displayed)
7401 (tui_source_window::do_scroll_vertical): Update.
7402 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7403 (tui_display_registers_from, tui_display_reg_element_at_line)
7404 (tui_check_register_values, tui_reg_command): Update.
7405 * tui/tui-layout.c (tui_default_win_height)
7406 (show_source_disasm_command, show_data, init_and_make_win)
7407 (show_source_or_disasm_and_command): Update.
7408 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7409 (tui_redisplay_readline, tui_mld_flush)
7410 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7412 * tui/tui-disasm.c (tui_set_disassem_content)
7413 (tui_disasm_window::do_scroll_vertical): Update.
7414 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7416 (struct tui_win_info): Derive from tui_gen_win_info.
7417 <~tui_win_info>: Mark as override.
7418 <generic>: Remove member.
7419 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7420 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7421 (~tui_data_window, ~tui_win_info)
7422 (tui_free_all_source_wins_content): Update.
7423 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7425 2019-06-25 Tom Tromey <tom@tromey.com>
7427 * tui/tui-layout.c (init_and_make_win): Use new.
7428 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7429 destructor, initializers.
7430 (tui_alloc_generic_win_info): Don't declare.
7431 * tui/tui-data.c (_locator): Add argument to constructor.
7432 (source_win, disasm_win): New globals.
7433 (exec_info): Remove.
7434 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7436 (tui_alloc_generic_win_info): Remove.
7437 (init_content_element): Use new.
7438 (tui_win_info::tui_win_info): Update.
7439 (free_content_elements) <case DATA_WIN>: Use delete.
7441 2019-06-25 Tom Tromey <tom@tromey.com>
7443 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7444 * tui/tui-windata.c (tui_first_data_item_displayed)
7445 (tui_delete_data_content_windows): Update.
7446 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7447 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7448 (tui_display_registers_from, tui_check_register_values): Update.
7449 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7451 * tui/tui-data.c (init_content_element): Update. Allocate the new
7453 (tui_free_data_content): Update.
7454 (free_content_elements) <case DATA_WIN>: Free the window.
7456 2019-06-25 Tom Tromey <tom@tromey.com>
7458 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7460 * tui/tui-layout.c (make_command_window)
7461 (show_source_disasm_command, show_data, init_and_make_win)
7462 (show_source_or_disasm_and_command): Update.
7463 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7465 <can_highight, is_highlighted>: Now bool.
7466 (tui_set_win_highlight): Don't declare.
7467 * tui/tui-data.c (tui_set_win_highlight): Remove.
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7471 * tui/tui-wingeneral.c (make_visible): Remove check of window
7474 2019-06-25 Tom Tromey <tom@tromey.com>
7476 * tui/tui-win.c (tui_win_info::max_height)
7477 (tui_cmd_window::max_height): New methods.
7478 (new_height_ok): Call max_height.
7479 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7480 <max_height>: New method.
7482 2019-06-25 Tom Tromey <tom@tromey.com>
7484 * tui/tui-win.c (tui_source_window_base::set_new_height)
7485 (tui_data_window::set_new_height): New methods.
7486 (make_invisible_and_set_new_height): Call set_new_height method.
7487 * tui/tui-data.h (struct tui_win_info)
7488 (struct tui_source_window_base, struct tui_data_window)
7489 <set_new_height>: New method.
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7493 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7494 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7495 tui_refresh_data_win.
7496 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7498 (tui_refresh_all_win): Call the refresh_all method.
7499 (tui_set_focus): Likewise.
7500 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7501 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7504 2019-06-25 Tom Tromey <tom@tromey.com>
7506 * tui/tui-winsource.h (tui_refill_source_window)
7507 (tui_set_is_exec_point_at): Don't declare.
7508 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7509 (tui_source_window_base::refill): Rename from
7510 tui_refill_source_window.
7511 (tui_source_window_base::do_scroll_horizontal): Update.
7512 (tui_source_window_base::set_is_exec_point_at): Rename from
7513 tui_set_is_exec_point_at.
7514 (tui_update_all_breakpoint_info): Update.
7515 * tui/tui-stack.c (tui_show_frame_info): Update.
7516 * tui/tui-layout.c (show_data): Add cast.
7517 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7518 * tui/tui-data.h (struct tui_source_window_base) <refill,
7519 set_is_exec_point_at>: New methods.
7520 (tui_source_windows, tui_add_to_source_windows): Update types.
7521 (tui_add_to_source_windows): Remove redundant declaration.
7522 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7523 (tui_source_windows): Change return type.
7524 (tui_clear_source_windows_detail): Update.
7525 (tui_add_to_source_windows): Change type of parameter.
7526 (tui_free_all_source_wins_content): Update.
7528 2019-06-25 Tom Tromey <tom@tromey.com>
7530 * tui/tui-wingeneral.c (tui_win_info::refresh)
7531 (tui_source_window_base::refresh): New methods.
7532 (tui_refresh_all): Call the refresh method.
7533 * tui/tui-data.h (struct tui_win_info)
7534 (struct tui_source_window_base) <refresh>: New method.
7536 2019-06-25 Tom Tromey <tom@tromey.com>
7538 * tui/tui.h (tui_is_window_visible): Return bool.
7539 * tui/tui.c (tui_is_window_visible): Return bool.
7540 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7541 (tui_make_visible, tui_make_invisible)
7542 (tui_win_info::make_visible)
7543 (tui_source_window_base::make_visible, make_all_visible)
7544 (tui_make_all_visible, tui_make_all_invisible): Update.
7545 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7546 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7548 (struct tui_win_info, struct tui_source_window_base)
7549 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7550 * tui/tui-data.c (tui_init_generic_part): Update.
7552 2019-06-25 Tom Tromey <tom@tromey.com>
7554 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7555 (tui_source_window_base::make_visible): New methods.
7556 (make_all_visible): Make method call.
7557 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7558 (struct tui_source_window_base, struct tui_cmd_window): Override
7560 (tui_win_is_source_type): Don't declare.
7561 * tui/tui-data.c (tui_win_is_source_type): Remove.
7563 2019-06-25 Tom Tromey <tom@tromey.com>
7565 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7568 2019-06-25 Tom Tromey <tom@tromey.com>
7570 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7571 Inline constructor. Add initializers for members.
7572 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7573 constructors; now inline in class.
7575 2019-06-25 Tom Tromey <tom@tromey.com>
7577 * tui/tui-regs.c (tui_show_registers): Update.
7578 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7580 * tui/tui-data.c (tui_data_window::clear_detail)
7581 (tui_data_window): Update.
7583 2019-06-25 Tom Tromey <tom@tromey.com>
7585 * tui/tui-windata.c (tui_display_all_data)
7586 (tui_display_data_from_line, tui_display_data_from)
7587 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7589 * tui/tui-regs.c (tui_last_regs_line_no)
7590 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7591 (tui_show_registers, tui_show_register_group)
7592 (tui_display_registers_from, tui_display_reg_element_at_line)
7593 (tui_display_registers_from_line, tui_check_register_values)
7594 (tui_reg_next, tui_reg_prev): Update.
7595 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7596 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7598 (struct tui_win_info) <detail>: Remove. Add new fields from
7600 (TUI_DATA_WIN): Add cast.
7601 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7602 (~tui_data_window): Simplify.
7604 2019-06-25 Tom Tromey <tom@tromey.com>
7606 * tui/tui-layout.c (show_source_disasm_command)
7607 (show_source_or_disasm_and_command): Update.
7608 * tui/tui-io.c (update_cmdwin_start_line)
7609 (tui_redisplay_readline): Update.
7610 * tui/tui-data.h (struct tui_command_info): Remove.
7611 (struct tui_win_info) <detail>: Remove command_info member.
7612 (struct tui_data_window) <start_line>: New member, from
7614 (TUI_CMD_WIN): Add casts.
7616 2019-06-25 Tom Tromey <tom@tromey.com>
7618 * tui/tui-winsource.c (tui_update_source_window)
7619 (tui_refill_source_window)
7620 (tui_source_window_base::do_scroll_horizontal)
7621 (tui_update_breakpoint_info, tui_set_exec_info_content)
7622 (tui_show_exec_info_content, tui_erase_exec_info_content)
7623 (tui_clear_exec_info_content): Update.
7624 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7626 * tui/tui-win.c (make_invisible_and_set_new_height)
7627 (make_visible_with_new_height): Update.
7628 * tui/tui-source.c (tui_set_source_content)
7629 (tui_show_symtab_source): Update.
7630 * tui/tui-layout.c (extract_display_start_addr)
7631 (show_source_disasm_command, show_data)
7632 (make_source_or_disasm_window)
7633 (show_source_or_disasm_and_command): Update.
7634 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7635 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7637 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7638 to tui_source_window_base.
7639 (struct tui_win_info) <detail>: Remove source_info member.
7640 (struct tui_source_window_base) <has_locator>: Inline.
7641 Move contents from tui_source_info; rename has_locator member to
7643 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7644 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7646 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7648 (tui_free_all_source_wins_content): Cast to
7649 tui_source_window_base.
7651 2019-06-25 Tom Tromey <tom@tromey.com>
7653 * tui/tui-win.c (make_invisible_and_set_new_height)
7654 (make_visible_with_new_height): Call has_locator method.
7655 * tui/tui-layout.c (show_source_disasm_command, show_data)
7656 (show_source_or_disasm_and_command): Update for bool change.
7657 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7658 (tui_win_info) <has_locator>: New method.
7659 (struct tui_source_window_base) <has_locator>: New method.
7660 (tui_win_has_locator): Don't declare.
7661 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7662 from tui_win_has_locator.
7663 (tui_source_window_base): Use false, not FALSE.
7665 2019-06-25 Tom Tromey <tom@tromey.com>
7667 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7668 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7669 clear_detail method directly.
7670 (tui_clear_win_detail): Remove.
7672 2019-06-25 Tom Tromey <tom@tromey.com>
7674 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7675 "this", not TUI_DISASM_WIN.
7677 2019-06-25 Tom Tromey <tom@tromey.com>
7679 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7681 * tui/tui-winsource.c
7682 (tui_source_window_base::do_scroll_horizontal): Rename from
7683 tui_horizontal_source_scroll.
7684 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7685 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7686 from tui_vertical_data_scroll.
7687 * tui/tui-win.h (tui_scroll): Don't declare.
7688 * tui/tui-win.c (tui_win_info::forward_scroll)
7689 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7690 (tui_win_info::right_scroll): Rename and update.
7691 (tui_scroll_forward_command, tui_scroll_backward_command)
7692 (tui_scroll_left_command, tui_scroll_right_command): Update.
7693 (tui_scroll): Remove.
7694 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7695 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7696 from tui_vertical_source_scroll.
7697 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7698 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7699 from tui_vertical_disassem_scroll.
7700 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7701 do_scroll_horizontal>: New methods.
7702 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7704 (struct tui_source_window_base): Add do_scroll_horizontal.
7705 (struct tui_source_window, struct tui_disasm_window): Add
7707 (struct tui_data_window, struct tui_cmd_window): Add
7708 do_scroll_horizontal and do_scroll_vertical.
7709 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7711 2019-06-25 Tom Tromey <tom@tromey.com>
7713 * tui/tui-data.h (struct tui_source_window_base): New struct.
7714 (struct tui_source_window): Derive from tui_source_window_base.
7715 (struct tui_disasm_window): New struct.
7716 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7717 from tui_source_window::clear_detail.
7718 (tui_source_window_base): Rename from tui_source_window.
7719 (~tui_source_window_base): Rename from ~tui_source_window.
7720 (tui_alloc_win_info): Create a tui_disasm_window.
7722 2019-06-25 Tom Tromey <tom@tromey.com>
7724 * tui/tui-data.h (struct tui_source_window)
7725 (struct tui_data_window): Declare destructors.
7726 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7728 (tui_win_info): Simplify.
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7732 * tui/tui-winsource.c (tui_display_main)
7733 (tui_update_source_windows_with_addr)
7734 (tui_update_all_breakpoint_info): Update.
7735 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7736 (new_height_ok, parse_scrolling_args): Update.
7737 * tui/tui-stack.c (tui_show_frame_info): Update.
7738 * tui/tui-data.h (struct tui_list): Remove.
7739 (tui_source_windows): Return a reference to a std::vector.
7740 * tui/tui-data.c (source_windows): Now a std::vector.
7741 (tui_source_windows): Change return type.
7742 (tui_clear_source_windows): Rewrite.
7743 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7744 (tui_free_all_source_wins_content): Rewrite.
7746 2019-06-25 Tom Tromey <tom@tromey.com>
7748 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7749 (struct tui_data_window, struct tui_cmd_window): Declare
7750 clear_detail method.
7751 * tui/tui-data.c (tui_source_window::clear_detail)
7752 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7754 (tui_clear_win_detail): Simplify.
7756 2019-06-25 Tom Tromey <tom@tromey.com>
7758 * tui/tui-layout.c (make_source_window, make_disasm_window)
7759 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7760 Return the new window.
7761 (show_source_disasm_command, show_data)
7762 (show_source_or_disasm_and_command): Update.
7764 2019-06-25 Tom Tromey <tom@tromey.com>
7766 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7767 parameter. Return the new window.
7768 (show_source_disasm_command): Update and remove NULL check.
7769 (show_source_or_disasm_and_command): Update.
7771 2019-06-25 Tom Tromey <tom@tromey.com>
7773 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7775 2019-06-25 Tom Tromey <tom@tromey.com>
7777 * tui/tui-data.h (struct tui_win_info): Make constructor
7778 protected. Make destructor virtual. Add initializers.
7779 (tui_source_window, tui_data_window, tui_cmd_window): New
7781 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7782 constructor. Add "type" parameter.
7783 (tui_source_window, tui_data_window, tui_cmd_window): New
7785 (tui_alloc_win_info): Instantiate the appropriate subclass.
7787 2019-06-25 Tom Tromey <tom@tromey.com>
7789 * tui/tui-win.c (tui_resize_all): Use delete.
7790 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7792 (tui_free_window): Don't declare.
7793 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7796 2019-06-25 Tom Tromey <tom@tromey.com>
7798 * tui/tui-data.h (struct tui_win_info): Add constructor.
7799 * tui/tui-data.c (tui_alloc_win_info): Use new.
7800 (tui_free_window): Use delete.
7802 2019-06-22 Tom Tromey <tom@tromey.com>
7804 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7806 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7808 2019-06-22 Tom Tromey <tom@tromey.com>
7810 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7812 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7814 2019-06-22 Tom de Vries <tdevries@suse.de>
7816 * dwarf2read.c (create_addrmap_from_aranges)
7817 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7820 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7822 * dwarf2read.h (dwarf2_section_info_def): Remove.
7823 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7824 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7825 std::vector<dwarf2_section_info>.
7826 (struct dwo_file) <~dwo_file>: Remove.
7827 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7829 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7830 (dwarf2_read_debug_names): Likewise.
7831 (create_debug_types_hash_table): Change parameter type to
7832 array_view, adjust code accordingly.
7833 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7834 (partial_die_info::fixup): Likewise.
7835 (determine_prefix): Likewise.
7836 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7838 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7840 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7842 <~dwo_file>: Remove call to gdb_bfd_unref.
7843 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7844 gdb_bfd_ref_ptr::get.
7846 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7848 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7850 * dwarf2read.c (struct dwo_file): Initialize fields.
7852 (free_dwo_file): Remove, move content to ~dwo_file.
7853 (struct dwo_file_deleter): Remove.
7854 (dwo_file_up>: Remove custom deleter.
7855 (free_dwo_files): Remove.
7856 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7858 (process_skeletonless_type_units): Call unique_ptr::get.
7859 (allocate_dwo_file_hash_table): Add deleter to created hash
7860 table. Change return type to htab_up.
7861 (lookup_dwo_file_slot): Don't memset dwo_file, call
7863 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7864 (create_dwo_unit_in_dwp_v2): Likewise.
7865 (open_and_init_dwo_file): Likewise.
7866 (free_dwo_file_from_slot): Remove.
7868 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7870 * dwarf2read.h (struct dwarf2_section_info) <readin,
7871 is_virtual>: Change type to bool.
7872 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7875 2019-06-19 Tom Tromey <tom@tromey.com>
7877 * tui/tui-data.h (tui_init_content_element): Don't declare.
7879 2019-06-19 Tom Tromey <tom@tromey.com>
7881 * tui/tui-data.h (tui_init_win_info): Don't declare.
7883 2019-06-19 Tom de Vries <tdevries@suse.de>
7885 * dwarf2read.h (abstract_to_concrete): Change type to
7886 std::unordered_map<sect_offset, std::vector<sect_offset>,
7887 gdb::hash_enum<sect_offset>>.
7889 2019-06-19 Tom Tromey <tromey@adacore.com>
7891 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7892 EVAL_AVOID_SIDE_EFFECTS specially.
7894 2019-06-19 Tom Tromey <tromey@adacore.com>
7896 * source-cache.c (highlighter): New global.
7897 (source_cache::get_source_lines): Create a highlighter on demand.
7899 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7901 * defs.h (deprecated_interactive_hook): Delete declaration.
7902 * interps.c (clear_interpreter_hooks): Remove use of
7903 deprecated_interactive_hook.
7904 * top.c (deprecated_interactive_hook): Delete definition.
7905 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7907 2019-06-18 Tom de Vries <tdevries@suse.de>
7910 * dwarf2read.h (abstract_to_concrete): Change type from
7911 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7912 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7913 * dwarf2read.c (read_variable): Update.
7914 (dwarf2_fetch_die_loc_sect_off): Update.
7916 2019-06-17 Tom de Vries <tdevries@suse.de>
7919 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7920 accessing parent[parent_len - 1].
7922 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7925 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7926 call dtrace_process_dof with NULL dof.
7928 2019-06-16 Tom de Vries <tdevries@suse.de>
7931 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7933 2019-06-16 Tom Tromey <tom@tromey.com>
7935 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7936 (make_all_visible): Use address of member.
7938 2019-06-16 Tom Tromey <tom@tromey.com>
7940 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7941 (tui_free_window, free_content, free_content_elements): Remove
7943 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7945 * tui/tui-regs.c (tui_show_register_group)
7946 (tui_display_registers_from, tui_display_reg_element_at_line):
7947 Remove unnecessary cast.
7949 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7951 * linux-nat.c (normal_mask): Delete.
7952 (_initialize_linux_nat): Don't initialise normal_mask.
7954 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7957 * dwarf-index-write.h (write_psymtabs_to_index): Add
7958 dwz_basename parameter.
7959 * dwarf-index-write.c (write_gdbindex): Move file writing to
7960 write_gdbindex_1. Change return type void.
7961 (assert_file_size): Move up, remove filename parameter.
7962 (write_gdbindex_1): New function.
7963 (write_debug_names): Change return type to void, call
7965 (struct index_wip_file): New struct.
7966 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7967 file logic to index_wip_file. Write index for dwz file if
7969 (save_gdb_index_command): Pass basename of dwz file, if present.
7970 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7971 build-id of dwz file, if present.
7972 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7973 (dwarf2_get_dwz_file): Likewise.
7974 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7975 (dwarf2_get_dwz_file): Likewise.
7977 2019-06-16 Tom Tromey <tom@tromey.com>
7979 * coffread.c (process_coff_symbol): Use xstrdup.
7980 * value.c (create_internalvar): Use xstrdup.
7982 2019-06-16 Tom Tromey <tom@tromey.com>
7984 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7985 * breakpoint.c (stopin_command, stopat_command)
7986 (until_break_command, decode_location_default): Remove unnecessary
7988 * utils.c (subset_compare): Remove unnecessary cast.
7989 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7991 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7993 * infcmd.c (path_command): Remove unnecessary cast.
7994 * coffread.c (decode_type): Remove unnecessary cast.
7995 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7996 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7997 * tui/tui-stack.c (tui_show_locator_content)
7998 (tui_show_frame_info): Remove unnecessary cast.
7999 * tui/tui-win.c (tui_scroll_forward_command)
8000 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8001 (parse_scrolling_args): Remove unnecessary cast.
8002 * tui/tui-data.c (init_win_info, tui_del_window)
8003 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8004 (free_content_elements): Remove unnecessary cast.
8005 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8007 * tui/tui-source.c (tui_set_source_content)
8008 (tui_vertical_source_scroll): Remove unnecessary cast.
8009 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8011 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8012 * tui/tui-regs.c (tui_display_registers_from)
8013 (tui_display_register): Remove unnecessary cast.
8014 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8015 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8016 (make_visible): Remove unnecessary cast.
8017 * tui/tui-winsource.c (tui_erase_source_content)
8018 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8020 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8021 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8022 * stabsread.c (read_type, read_array_type, read_range_type):
8023 Remove unnecessary cast.
8024 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8025 (parse_symbol, parse_type, upgrade_type, parse_external)
8026 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8028 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8030 2019-06-16 Tom Tromey <tom@tromey.com>
8032 * tui/tui-data.c (tui_alloc_generic_win_info)
8033 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8036 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8037 Andrew Burgess <andrew.burgess@embecosm.com>
8039 * f-typeprint.c (f_print_type): Don't return early for not
8040 associated or not allocated types.
8041 (f_type_print_varspec_suffix): Add print_rank parameter and print
8042 ranks of array types in case they dangling.
8043 (f_type_print_base): Add print_rank parameter.
8045 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8047 * NEWS: Mention new MI commands.
8048 * break-catch-throw.c (enum exception_event_kind): Move to
8050 (print_mention_exception_catchpoint): Output text as a single
8052 (catch_exception_command_1): Rename to...
8053 (catch_exception_event): ...this, make non-static, update header
8054 command, and change some parameter types.
8055 (catch_catch_command): Update for changes to
8056 catch_exception_command_1.
8057 (catch_throw_command): Likewise.
8058 (catch_rethrow_command): Likewise.
8059 * breakpoint.c (enum exception_event_kind): Delete.
8060 * breakpoint.h (enum exception_event_kind): Moved here from
8061 break-catch-throw.c.
8062 (catch_exception_event): Declare.
8063 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8064 (mi_cmd_catch_throw): New function.
8065 (mi_cmd_catch_rethrow): New function.
8066 (mi_cmd_catch_catch): New function.
8067 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8068 'catch-catch' entries.
8069 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8070 (mi_cmd_catch_rethrow): Declare.
8071 (mi_cmd_catch_catch): Declare.
8073 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8075 * annotate.c (annotate_source_line): Change return type to void,
8076 update implementation to match.
8077 * annotate.h (annotate_source_line): Change return type to void,
8078 update header comment.
8079 * stack.c (print_frame_info): Don't change what frame information
8080 is printed based on whether annotations are on or not.
8082 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8084 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8085 (annotate_source): Make static.
8086 (annotate_source_line): Moved from source.c and renamed from
8087 identify_source_line. Update the return type.
8088 * annotate.h (annotate_source): Delete declaration.
8089 (annotate_source_line): Declaration moved from source.h, and
8090 renamed from identify_source_line. Return type updated.
8091 * source.c (identify_source_line): Moved to annotate.c and renamed
8092 to annotate_source_line.
8093 (info_line_command): Remove check of annotation_level.
8094 * source.h (identify_source_line): Move declaration to annotate.h
8095 and rename to annotate_source_line.
8096 * stack.c: Add 'annotate.h' include.
8097 (print_frame_info): Remove check of annotation_level before
8098 calling annotate_source_line.
8100 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8102 * source-cache.c (source_cache::get_plain_source_lines): Use
8103 open_source_file_with_line_charpos instead of just
8104 open_source_file, remove call to find_source_lines.
8105 (source_cache::get_source_lines): Likewise.
8106 * source.c (find_source_lines): Make static.
8107 (get_filename_and_charpos): Renamed into...
8108 (open_source_file_with_line_charpos): ..this along with changes to
8109 return a scoped_fd, and some other minor clean ups.
8110 (identify_source_line): Use open_source_file_with_line_charpos.
8111 (search_command_helper): Use open_source_file_with_line_charpos
8112 instead of just open_source_file, remove call to
8114 * source.h (open_source_file_with_line_charpos): Declare new
8116 (find_source_lines): Delete declaration.
8118 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8120 * source.c (get_filename_and_charpos): Remove fullname
8122 (identify_source_line): Update call to get_filename_and_charpos.
8124 2019-06-14 Tom Tromey <tromey@adacore.com>
8127 * ui-style.h (skip_ansi_escape): Update comment.
8128 * ui-file.h (class no_terminal_escape_file): New class.
8129 * ui-file.c (no_terminal_escape_file::write)
8130 (no_terminal_escape_file::puts): New methods.
8131 * cli/cli-logging.c (handle_redirections): Use
8132 no_terminal_escape_file.
8134 2019-06-14 Tom Tromey <tromey@adacore.com>
8136 * NEWS: Move convenience variable news above Python news.
8138 2019-06-14 Tom Tromey <tom@tromey.com>
8140 * gnulib: Move directory to top-level.
8141 * configure.ac: Don't configure gnulib.
8142 * configure: Rebuild.
8143 * common/common-defs.h: Use new path to gnulib.
8144 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8146 (INCGNU): Look in new gnulib location.
8147 (HFILES_NO_SRCDIR): Remove gnulib files.
8148 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8149 (generated_files): Remove GNULIB_H.
8150 ($(LIBGNU), all-lib): Remove targets.
8151 (distclean): Don't mention GNULIB_BUILDDIR.
8152 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8154 2019-06-14 Tom Tromey <tromey@adacore.com>
8156 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8157 Warn if symbol file does not provide any symbols.
8159 2019-06-14 Tom Tromey <tromey@adacore.com>
8161 * source.c (find_and_open_source): Respect basenames_may_differ.
8163 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8165 * annotate.c (annotate_breakpoints_invalid): Make use of
8166 scoped_restore_terminal_state.
8167 (annotate_frames_invalid): Likewise.
8169 2019-06-14 Tom Tromey <tromey@adacore.com>
8171 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8172 allow assignment to an internalvar.
8174 2019-06-14 Tom Tromey <tromey@adacore.com>
8176 * ada-lex.l: Allow "_" in attribute names.
8178 2019-06-14 Tom Tromey <tromey@adacore.com>
8181 * regcache.c (registers_changed): Don't call alloca.
8182 * top.c (execute_command): Don't call alloca.
8184 2019-06-13 Pedro Alves <palves@redhat.com>
8186 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8187 'expression'. When parsing an expression, error out if there's
8188 junk after "unlimited".
8189 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8190 (do_set_command): Adjust calls to is_unlimited_literal.
8192 2019-06-13 Pedro Alves <palves@redhat.com>
8194 * compile/compile.c (make_compile_options_def_group): Add braces
8195 around array_view initializer.
8196 * thread.c (make_thread_apply_all_options_def_group)
8197 (make_thread_apply_all_options_def_group): Likewise.
8199 2019-06-13 Pedro Alves <palves@redhat.com>
8201 * NEWS (New commands): Mention "maint test-options
8202 require-delimiter", "maint test-options unknown-is-error", "maint
8203 test-options unknown-is-operand" and "maint show
8204 test-options-completion-result".
8205 (New command options, command completion): New section.
8206 (Completion improvements): New section.
8207 Mention that you can abbreviate "unlimited".
8209 2019-06-13 Pedro Alves <palves@redhat.com>
8211 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8212 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8213 * unittests/cli-utils-selftests.c (test_parse_flags)
8214 (test_parse_flags_qcs): Delete.
8215 (test_cli_utils): Don't call deleted functions.
8217 2019-06-13 Pedro Alves <palves@redhat.com>
8219 * thread.c: Include "cli/cli-option.h".
8220 (tp_array_compar_ascending): Global.
8221 (tp_array_compar): Delete function.
8222 (tp_array_compar_ascending, tp_array_compar_descending): New
8224 (ascending_option_def, qcs_flag_option_def)
8225 (thr_qcs_flags_option_defs)
8226 (make_thread_apply_all_options_def_group)
8227 (make_thread_apply_options_def_group): New.
8228 (thread_apply_all_command): Use gdb::option::process_options.
8229 (thread_apply_command_completer)
8230 (thread_apply_all_command_completer): New.
8231 (thread_apply_command): Use gdb::option::process_options.
8232 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8233 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8234 to generate help text of "thread apply". Adjust "taas"'s help.
8235 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8236 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8238 2019-06-13 Pedro Alves <palves@redhat.com>
8240 * thread.c (thread_apply_command): Check for invalid TID with
8241 isdigit instead of !isalpha.
8243 2019-06-13 Pedro Alves <palves@redhat.com>
8245 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8246 (validate_flags_qcs): New.
8247 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8248 (validate_flags_qcs): Declare.
8249 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8250 (make_frame_apply_options_def_group): New.
8251 (frame_apply_command_count): Process options with
8252 gdb::option::process_options.
8253 (frame_apply_completer): New.
8254 (frame_apply_level_completer, frame_apply_all_completer)
8255 (frame_apply_completer): New.
8256 (_initialize_stack): Update help of "frame apply", "frame apply
8257 level", "frame apply all" and "faas" to mention supported options
8258 and install command completers.
8259 * stack.h (frame_apply_all_completer): Declare.
8260 * thread.c: Include "stack.h".
8261 (tfaas_command): Add "--".
8262 (_initialize_thread): Update help "tfaas" to mention supported
8263 options and install command completer.
8265 2019-06-13 Pedro Alves <palves@redhat.com>
8267 * completer.c (complete_nested_command_line): New.
8268 (gdb_completion_word_break_characters_throw): Add assertion.
8269 * completer.h (complete_nested_command_line): Declare.
8271 2019-06-13 Pedro Alves <palves@redhat.com>
8273 * stack.c (parse_backtrace_qualifiers): New.
8274 (backtrace_command): Use it.
8275 (backtrace_command_completer): Complete on qualifiers.
8277 2019-06-13 Pedro Alves <palves@redhat.com>
8279 * frame.c: Include "cli/cli-option.h.
8280 (user_set_backtrace_options): New.
8281 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8283 (get_prev_frame): Adjust.
8284 (boolean_option_def, uinteger_option_def)
8285 (set_backtrace_option_defs): New.
8286 (_initialize_frame): Adjust and use
8287 gdb::option::add_setshow_cmds_for_options to install "set
8288 backtrace past-main" and "set backtrace past-entry".
8289 * frame.h: Include "cli/cli-option.h".
8290 (struct frame_print_options): Forward declare.
8291 (print_frame_arguments_all, print_frame_arguments_scalars)
8292 (print_frame_arguments_none): Declare.
8293 (print_entry_values): Delete declaration.
8294 (struct frame_print_options, user_frame_print_options): New.
8295 (struct set_backtrace_options): New.
8296 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8297 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8298 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8299 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8300 (list_args_or_locals): Add frame_print_options parameter.
8301 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8302 * python/py-framefilter.c (enumerate_args): Pass down
8303 USER_FRAME_PRINT_OPTIONS.
8304 * stack.c: Include "cli/cli-option.h".
8305 (print_frame_arguments_all, print_frame_arguments_scalars)
8306 (print_frame_arguments_none): Declare.
8307 (print_raw_frame_arguments, print_entry_values): Delete.
8308 (user_frame_print_options): New.
8309 (boolean_option_def, enum_option_def, frame_print_option_defs):
8311 (struct backtrace_cmd_options): New.
8312 (bt_flag_option_def): New.
8313 (backtrace_command_option_defs): New.
8314 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8315 (print_frame_arg, read_frame_arg, print_frame_args)
8316 (print_frame_info, print_frame): Add frame_print_options parameter
8318 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8319 (backtrace_command_1): Add frame_print_options and
8320 backtrace_cmd_options parameters and use them.
8321 (make_backtrace_options_def_group): New.
8322 (backtrace_command): Process command options with
8323 gdb::option::process_options.
8324 (backtrace_command_completer): New.
8325 (_initialize_stack): Extend "backtrace"'s help to mention
8326 supported options. Install completer for "backtrace".
8327 Install some settings commands with add_setshow_cmds_for_options.
8329 2019-06-13 Pedro Alves <palves@redhat.com>
8331 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8332 and that "set/show print raw frame-arguments" are now deprecated.
8334 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8336 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8337 * stack.c (_initialize_stack): Install "set/show print
8338 raw-frame-arguments", and deprecate "set/show print raw
8340 * valprint.c (_initialize_valprint): Deprecate "set/show print
8343 2019-06-13 Pedro Alves <palves@redhat.com>
8345 * compile/compile.c (struct compile_options): New.
8346 (compile_flag_option_def, compile_command_option_defs)
8347 (make_compile_options_def_group): New.
8348 (compile_file_command): Handle options with
8349 gdb::option::process_options.
8350 (compile_file_command_completer): New function.
8351 (compile_code_command): Handle options with
8352 gdb::option::process_options.
8353 (compile_code_command_completer): New function.
8354 (_initialize_compiler): Install completers for "compile code" and
8355 "compile file". Mention available options in "compile code" and
8356 "compile code"'s help.
8357 * completer.c (advance_to_completion_word): New, factored out from
8359 (advance_to_expression_complete_word_point): ... this.
8360 (advance_to_filename_complete_word_point): New.
8361 * completer.h (advance_to_filename_complete_word_point): New
8364 2019-06-13 Pedro Alves <palves@redhat.com>
8366 * compile/compile.c: Include "cli/cli-option.h".
8367 (compile_print_value): Scope data pointer is now a
8368 value_print_options pointer; adjust.
8369 (compile_print_command): Process options. Scope data pointer is
8370 now a value_print_options pointer; adjust.
8371 (_initialize_compile): Update "compile print"'s help to include
8372 supported options. Install a completer for "compile print".
8373 * cp-valprint.c (show_vtblprint, show_objectprint)
8374 (show_static_field_print): Delete.
8375 (_initialize_cp_valprint): Don't install "set print
8376 static-members", "set print vtbl", "set print object" here.
8377 * printcmd.c: Include "cli/cli-option.h" and
8378 "common/gdb_optional.h".
8379 (print_command_parse_format): Rework to fill in a
8380 value_print_options instead of a format_data.
8381 (print_value): Change parameter type from format_data pointer to
8382 value_print_options reference. Adjust.
8383 (print_command_1): Process options. Adjust to pass down a
8384 value_print_options.
8385 (print_command_completer): New.
8386 (_initialize_printcmd): Install print_command_completer as
8387 handle_brkchars completer for the "print" command. Update
8388 "print"'s help to include supported options.
8389 * valprint.c: Include "cli/cli-option.h".
8390 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8391 here from cp-valprint.c.
8392 (boolean_option_def, uinteger_option_def)
8393 (value_print_option_defs, make_value_print_options_def_group):
8394 New. Use gdb::option::add_setshow_cmds_for_options to install
8395 "set print elements", "set print null-stop", "set print repeats",
8396 "set print pretty", "set print union", "set print array", "set
8397 print address", "set print symbol", "set print array-indexes".
8398 * valprint.h: Include <string> and "cli/cli-option.h".
8399 (make_value_print_options_def_group): Declare.
8400 (print_value): Change parameter type from format_data pointer to
8401 value_print_options reference.
8402 (print_command_completer): Declare.
8404 2019-06-13 Pedro Alves <palves@redhat.com>
8406 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8407 (COMMON_SFILES): Add maint-test-settings.c.
8408 * cli/cli-decode.c (boolean_enums): New global, factored out from
8410 (add_setshow_boolean_cmd): ... here.
8411 * cli/cli-decode.h (boolean_enums): Declare.
8412 * cli/cli-option.c: New file.
8413 * cli/cli-option.h: New file.
8414 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8415 factored out from ...
8416 (parse_cli_boolean_value(const char *)): ... this.
8417 (is_unlimited_literal): Change parameter type to pointer to
8418 pointer. Adjust and advance ARG pointer.
8419 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8420 (parse_cli_var_enum): New, factored out from ...
8421 (do_set_command): ... this. Adjust.
8422 * cli/cli-setshow.h (parse_cli_boolean_value)
8423 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8424 (parse_cli_var_enum): Declare.
8425 * cli/cli-utils.c: Include "cli/cli-option.h".
8426 (get_ulongest): New.
8427 * cli/cli-utils.h (get_ulongest): Declare.
8428 (check_for_argument): New overloads.
8429 * maint-test-options.c: New file.
8431 2019-06-13 Pedro Alves <palves@redhat.com>
8433 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8434 parse a range if "-" is at the end of the string.
8436 2019-06-13 Pedro Alves <palves@redhat.com>
8438 * cli/cli-setshow.c (parse_auto_binary_operation)
8439 (parse_cli_boolean_value): Don't allow "o".
8441 2019-06-13 Pedro Alves <palves@redhat.com>
8443 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8444 * NEWS: Mention maint test-settings KIND.
8445 * maint-test-settings.c: New file.
8447 2019-06-13 Pedro Alves <palves@redhat.com>
8449 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8451 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8454 2019-06-13 Pedro Alves <palves@redhat.com>
8456 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8459 2019-06-13 Pedro Alves <palves@redhat.com>
8461 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8463 2019-06-13 Pedro Alves <palves@redhat.com>
8465 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8466 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8468 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8469 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8471 (check_for_argument): Skip spaces after argument.
8473 2019-06-13 Pedro Alves <palves@redhat.com>
8475 * thread.c (thread_apply_command): Adjust TID parsing.
8476 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8477 detected before end of string.
8478 (tid_is_in_list): Error out if LIST is invalid.
8480 2019-06-13 Pedro Alves <palves@redhat.com>
8482 * completer.c (complete_line_internal_1): Rewind completion word
8484 (completion_tracker::advance_custom_word_point_by): Change
8485 parameter type to int.
8486 * completer.h (completion_tracker::advance_custom_word_point_by):
8489 2019-06-13 Pedro Alves <palves@redhat.com>
8491 * completer.c (advance_to_completion_word): Handle delimiters.
8493 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8495 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8497 2019-06-11 Tom Tromey <tom@tromey.com>
8499 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8500 (xmalloc_failed): Move to alloc.c.
8501 * alloc.c: New file.
8502 * Makefile.in (COMMON_SFILES): Add alloc.c.
8504 2019-06-11 Tom Tromey <tom@tromey.com>
8506 * nat/linux-waitpid.c: Don't include server.h.
8507 (linux_debug): Remove.
8508 (my_waitpid): Update.
8510 2019-06-11 Tom Tromey <tromey@adacore.com>
8512 * infcall.c (_initialize_infcall): Remove trailing newline from
8514 * user-regs.c (_initialize_user_regs): Remove trailing newline
8516 * typeprint.c (_initialize_typeprint): Remove trailing newline
8518 * reverse.c (_initialize_reverse): Remove trailing newlines from
8520 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8522 * language.c (add_set_language_command): Remove trailing newline
8524 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8526 * disasm.c (_initialize_disasm): Remove trailing newline from
8528 * top.c (init_main): Remove trailing newline from help.
8529 * interps.c (_initialize_interpreter): Remove trailing newline
8531 * btrace.c (_initialize_btrace): Remove trailing newlines from
8533 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8535 * python/python.c (_initialize_python): Remove trailing newline
8537 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8539 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8540 from help. Reformat some text.
8541 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8543 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8546 2019-06-11 Tom Tromey <tromey@adacore.com>
8548 * darwin-nat.c (darwin_decode_exception_message)
8549 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8551 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8553 * valops.c (value_slice): Check for not allocated or not
8556 2019-06-10 Tom de Vries <tdevries@suse.de>
8559 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8560 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8563 2019-06-10 Tom de Vries <tdevries@suse.de>
8566 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8567 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8569 2019-06-10 Tom de Vries <tdevries@suse.de>
8572 * symtab.c (struct demangled_name_entry): Add language field.
8573 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8574 static minimal symbol". Set and use language field.
8576 2019-06-10 Tom Tromey <tromey@adacore.com>
8578 * ada-lang.c (_initialize_ada_language): Update help text.
8580 2019-06-10 Tom Tromey <tromey@adacore.com>
8582 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8584 * guile/guile.c (handle_boot_error): Don't end warning with a
8586 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8587 warning with a newline.
8588 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8590 (s12z_frame_cache): Likewise.
8591 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8593 * solib-svr4.c (disable_probes_interface): Don't end warning with
8595 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8597 * python/python.c (do_finish_initialization): Don't end warning
8600 2019-06-10 Tom Tromey <tom@tromey.com>
8602 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8603 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8606 2019-06-10 Tom Tromey <tromey@adacore.com>
8608 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8610 (elf_new_init): Don't call stabsread_new_init.
8611 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8612 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8613 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8615 2019-06-10 Tom de Vries <tdevries@suse.de>
8619 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8621 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8623 * source.c (find_and_open_source): Also rewrite relative file
8626 2019-04-26 Amos Bird <amosbird@gmail.com>
8628 * annotate.c (annotate_thread_exited): Add "thread-exited"
8631 2019-06-06 Tom Tromey <tromey@adacore.com>
8633 * maint.h (class scoped_command_stats): Use
8634 DISABLE_COPY_AND_ASSIGN.
8635 <print_time>: New method.
8636 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8638 (scoped_command_stats::print_time): New method.
8640 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8642 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8643 instructions of lengths 6 or 8 bytes.
8645 2019-06-04 Pedro Alves <palves@redhat.com>
8647 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8649 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8650 * breakpoint.c (condition_completer): Likewise.
8651 * cli/cli-dump.c (scan_expression): Likewise.
8652 * common/filestuff.c (mkdir_recursive): Likewise.
8653 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8654 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8655 (gdb_abspath): Likewise.
8656 * compile/compile-cplus-types.c
8657 (compile_cplus_instance::decl_name): Likewise.
8658 * completer.c (complete_explicit_location):
8659 (signal_completer, reg_or_group_completer_1): Likewise.
8660 * cp-support.c (cp_remove_params_if_any): Likewise.
8661 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8662 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8663 * infcmd.c (strip_bg_char): Likewise.
8664 * linespec.c (copy_token_string): Likewise.
8665 * mi/mi-main.c (output_cores): Likewise.
8666 * psymtab.c (psymtab_search_name):
8667 * symfile.c (test_set_ext_lang_command): Likewise.
8668 * target.c (target_fileio_read_stralloc): Likewise.
8669 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8670 * value.c (complete_internalvar): Likewise.
8672 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8674 Add objfile property to gdb.Type.
8675 * NEWS: Mention Python API addition.
8676 * python/py-type.c (typy_get_objfile): New method.
8678 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8680 * NEWS: Mention the new set|show style [title|highlight].
8681 Mention changes to "show style", "help" and "apropos".
8683 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8685 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8686 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8687 instead of print_help_for_command.
8688 (print_doc_of_command): New function.
8689 (help_list): Add 'apropos -v word' suggestion.
8690 (print_help_for_command): Style the command name using title style.
8691 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8692 (_initialize_cli_cmds): Describe -v in apropos_command help.
8694 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8696 * cli/cli-style.h (cli_style_option): Add name in constructor,
8697 add m_name class member, add constructor with intensity,
8698 add name class function.
8699 (cli_style_option::add_setshow_commands): Remove name argument.
8700 (highlight_style, title_style): New styles.
8701 * cli/cli-style.c (do_show): New function that shows a style
8702 characteristic styling the style name with itself.
8703 (set_style_name): New function.
8704 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8705 Update all callers according to the changes in cli/cli-style.h.
8706 * utils.h (fputs_highlighted): New function.
8707 * utils.c (fputs_highlighted): Likewise.
8709 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8711 * NEWS: Mention new pipe command and new convenience variables.
8713 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8715 * cli/cli-cmds.c (pipe_command): New function.
8716 (_initialize_cli_cmds): Call add_com for pipe_command.
8717 Define | as an alias for pipe.
8718 (exit_status_set_internal_vars): New function.
8719 (shell_escape): Call exit_status_set_internal_vars.
8720 cli/cli-decode.c (find_command_name_length): Recognize | as
8721 a single character command.
8723 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8725 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8726 top.c (execute_command_to_ui_file): New function, mostly a copy
8727 of execute_command_to_string.
8728 (execute_command_to_string): Implement by calling
8729 execute_command_to_ui_file.
8731 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8733 * top.h (saved_command_line): Remove declaration.
8734 * top.c (previous_saved_command_line, previous_repeat_arguments):
8736 (saved_command_line): Make static, define together with other
8738 (dont_repeat): Clear repeat_arguments.
8739 (repeat_previous, get_saved_command_line, save_command_line):
8741 (gdb_init): Initialize saved_command_line
8742 and previous_saved_command_line.
8743 * main.c (captured_main_1): Remove saved_command_line initialization.
8744 * event-top.c (handle_line_of_input): Update to use
8745 the new 'repeat' related functions instead of direct access to
8747 * command.h (repeat_previous, get_saved_command_line,
8748 save_command_line): New declarations.
8749 (dont_repeat): Add comment.
8751 2019-05-30 Tom Tromey <tromey@adacore.com>
8753 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8755 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8757 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8760 * completer.c (complete): Initialize variable word.
8762 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8764 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8765 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8766 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8767 'body' is NULL to the outter 'if', protecting the '!is_define'
8770 2019-05-29 Tom Tromey <tromey@adacore.com>
8772 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8773 (dwarf_unknown): New function.
8774 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8775 (dwarf_type_encoding_name): Use dwarf_unknown.
8777 2019-05-29 Tom Tromey <tromey@adacore.com>
8780 * cp-valprint.c (cp_print_value_fields): Call
8781 cp_print_static_field inside "try".
8783 2019-05-29 Tom Tromey <tromey@adacore.com>
8785 * inflow.c (struct terminal_info): Add default operator=.
8786 * configure: Rebuild.
8787 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8788 -Wdeprecated-copy-dtor, -Wredundant-move.
8790 2019-05-29 Tom Tromey <tromey@adacore.com>
8793 * infcmd.c (print_return_value_1): Handle finish_print
8795 (show_print_finish): New function.
8796 (_initialize_infcmd): Add "set/show print finish" commands.
8797 * valprint.c (user_print_options): Initialize new member.
8798 * valprint.h (struct value_print_options) <finish_print>: New
8801 2019-05-28 Tom Tromey <tromey@adacore.com>
8803 * ada-lang.c (ada_remove_Xbn_suffix)
8804 (find_old_style_renaming_symbol)
8805 (parse_old_style_renaming): Remove.
8806 (ada_find_renaming_symbol): Don't call
8807 find_old_style_renaming_symbol.
8808 (ada_is_renaming_symbol): Rename from
8809 ada_find_renaming_symbol. Remove "block" parameter. Return
8811 (ada_read_var_value): Update and simplify.
8812 * ada-exp.y (write_var_or_type): Remove old code.
8814 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8817 * event-top.c: Remove include comment.
8818 * inflow.c (class scoped_ignore_sigttou): Move from here...
8819 * inflow.h (class scoped_ignore_sigttou): ...to here.
8820 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8821 * top.c: Remove include comment.
8823 2019-05-27 Tom Tromey <tom@tromey.com>
8827 2019-05-22 Tom Tromey <tromey@adacore.com>
8829 * target.c (target_follow_exec): Constify parameter.
8830 * target-delegates.c: Rebuild.
8831 * remote.c (remote_target::follow_exec): Constify parameter.
8832 * infrun.c (follow_exec): Constify parameter.
8833 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8834 (target_follow_exec): Likewise.
8836 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8838 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8839 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8841 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8843 * NEWS: Add debugredirect and testsuite sections.
8845 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8847 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8848 target descriptions using exclusively floating point register name
8851 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8854 * f-lang.c (build_fortran_types): Handle the case where
8855 gdbarch_floatformat_for_type returns a nullptr.
8857 2019-05-21 Tom de Vries <tdevries@suse.de>
8860 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8862 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8865 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8867 * i386-tdep.c (i386_floatformat_for_type): Use
8868 floatformats_ia64_quad for the 16-byte floating point component
8869 within a fortran 32-byte complex number.
8871 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8873 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8874 delete default constructor.
8875 (find_partial_die): Update to return const struct.
8876 (partial_die_parent_scope): Move variable declaration into scope
8877 of its use and change its type to auto.
8878 (guess_partial_die_structure_name): Likewise.
8879 (partial_die_info::fixup): Likewise.
8881 2019-05-17 Tom Tromey <tromey@adacore.com>
8883 * source.c (find_and_open_source): Remove cast.
8885 2019-05-17 Tom Tromey <tromey@adacore.com>
8887 * annotate.c (annotate_source): Make "filename" const.
8888 * annotate.h (annotate_source): Use const.
8890 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8892 * disasm.c (set_disassembler_options): Send errors to stderr.
8894 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8896 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8897 (cli_interp_base::set_logging): Check debug_redirect.
8898 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8899 * cli/cli-logging.c (debug_redirect): Add static variable.
8900 (pop_output_files): Add default param.
8901 (handle_redirections): Print debug setting.
8902 (show_logging_command): Likewise.
8903 (_initialize_cli_logging): Add debugredirect command.
8904 * interps.c (current_interp_set_logging): Add debug_redirect
8906 * interps.h (set_logging): Add debug_redirect parameter.
8907 (current_interp_set_logging): Likewise.
8908 * mi/mi-common.h: Likewise.
8909 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8911 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8912 Tom Tromey <tromey@adacore.com>
8914 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8916 * cli/cli-interp.h (make_logging_output): Remove declaration.
8917 * cli/cli-logging.c (make_logging_output): Remove function.
8918 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8920 * ui-file.c (tee_file::tee_file): Remove bools.
8921 (tee_file::~tee_file): Remove deletes.
8922 * ui-file.h (tee_file): Remove bools.
8924 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8926 * mi/mi-cmds.h (mi_cmd_complete): New function.
8927 * mi/mi-main.c (mi_cmd_complete): Likewise.
8928 * mi/mi-cmds.c: Define new MI command -complete.
8929 * NEWS: Mention new -complete command.
8931 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8933 * completer.h (complete): New function.
8934 * completer.c (complete): Likewise.
8935 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8936 function defined in completer.h.
8938 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8940 * MAINTAINERS (Write After Approval): Add myself.
8942 2019-05-17 Tom de Vries <tdevries@suse.de>
8945 * dwarf2read.c (struct cu_partial_die_info): New struct.
8946 (find_partial_die): Return cu_partial_die_info.
8947 (partial_die_parent_scope, guess_partial_die_structure_name)
8948 (partial_die_info::fixup): Handle new return type of find_partial_die.
8950 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8952 PR breakpoints/24541
8953 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8954 "std::string", simplifying the algorithm.
8956 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8958 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8959 (stap_static_probe_ops::get_probes): Likewise.
8961 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8963 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8964 '-')" and "else if".
8965 (stap_parse_single_operand): Join checks for
8966 "gdbarch_stap_parse_special_token_p" and
8967 "gdbarch_stap_parse_special_token" in the same "if" statement.
8968 Invert check when verifying for operation on register
8971 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8973 * stap-probe.c (stap_get_opcode): Update comment.
8974 (stap_get_expected_argument_type): Likewise.
8975 (handle_stap_probe): Likewise.
8977 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8979 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8980 return type to 'bool'. Adjust comment. Use 'bool' when
8982 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8983 * stap-probe.c (stap_parse_argument_1): Likewise.
8984 (stap_is_operator): Likewise.
8985 (stap_is_generic_prefix): Likewise.
8986 (stap_is_register_prefix): Likewise.
8987 (stap_is_register_indirection_prefix): Likewise.
8988 (stap_is_integer_prefix): Likewise.
8989 (stap_generic_check_suffix): Likewise.
8990 (stap_check_integer_suffix): Likewise.
8991 (stap_check_register_suffix): Likewise.
8992 (stap_check_register_indirection_suffix): Likewise.
8993 (stap_parse_register_operand): Likewise.
8994 (stap_parse_single_operand): Likewise.
8995 (stap_parse_argument_1): Likewise.
8996 (stap_probe::get_argument_count): Likewise.
8997 (stap_is_operator): Likewise.
8999 2019-05-16 Tom Tromey <tromey@adacore.com>
9001 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9004 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9006 * linux-thread-db.c (try_thread_db_load_1): Change return type
9008 (try_thread_db_load): Likewise.
9009 (try_thread_db_load_from_pdir_1): Likewise.
9010 (try_thread_db_load_from_pdir): Likewise.
9011 (try_thread_db_load_from_sdir): Likewise.
9012 (try_thread_db_load_from_dir): Likewise.
9013 (thread_db_load_search): Likewise.
9014 (has_libpthread): Likewise.
9015 (thread_db_load): Likewise.
9017 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9019 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9020 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9021 NULL, and complain/return if that's the case.
9023 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9025 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9026 (advance, posn, abstract_read_memory): New functions.
9027 [struct mem_read_abstraction]: New struct.
9028 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9030 2019-05-14 Tom Tromey <tromey@adacore.com>
9032 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9033 value is not lval_memory.
9035 2019-05-14 Tom Tromey <tromey@adacore.com>
9037 * solib.c (info_sharedlibrary_command): Style the file name.
9039 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9041 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9042 (aarch64_vnv_type): Likewise.
9043 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9044 * common/tdesc.c: Likewise.
9045 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9046 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9047 * features/aarch64-fpu.xml: Add ieee half view.
9048 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9049 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9050 * gdbtypes.h (struct builtin_type): Likewise.
9051 (struct objfile_type): Likewise.
9053 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9055 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9057 * location.h (string_to_event_location): Likewise.
9059 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9063 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9065 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9066 New variable declaration.
9067 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9069 (print_one_breakpoint): Use ui_out::test_flags and new global
9070 variable to compute use_fixed_output.
9071 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9073 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9074 (mi_multi_location_breakpoint_output_fixed): Remove.
9075 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9077 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9078 fix_multi_location_breakpoint_output flag if version >= 3.
9079 * ui-out.h (enum ui_out_flag)
9080 <fix_multi_location_breakpoint_output>: New enumerator.
9082 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9084 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9086 2019-05-10 Tom Tromey <tromey@adacore.com>
9088 * ada-lang.c (catch_ada_completer): New function.
9089 (_initialize_ada_language): Use it.
9091 2019-05-10 Tom Tromey <tromey@adacore.com>
9093 * thread.c (print_thread_info): Make "requested_threads" const.
9094 * gdbthread.h (print_thread_info): Make "requested_threads"
9096 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9097 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9099 2019-05-08 Tom Tromey <tom@tromey.com>
9101 * gdbtypes.c (objfile_type_data): Change type.
9102 (objfile_type, _initialize_gdbtypes): Update.
9104 2019-05-08 Tom Tromey <tom@tromey.com>
9106 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9107 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9108 (_initialize_dwarf2_frame): Update.
9110 2019-05-08 Tom Tromey <tom@tromey.com>
9112 * objc-lang.c (objc_objfile_data): Change type.
9113 (find_methods): Update.
9114 (_initialize_objc_lang): Remove.
9116 2019-05-08 Tom Tromey <tom@tromey.com>
9118 * stabsread.c (rs6000_builtin_type_data): Change type.
9119 (rs6000_builtin_type, _initialize_stabsread): Update.
9121 2019-05-08 Tom Tromey <tom@tromey.com>
9123 * mips-tdep.c (mips_pdr_data): Remove.
9124 (_initialize_mips_tdep): Update.
9126 2019-05-08 Tom Tromey <tom@tromey.com>
9128 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9129 (hppa_init_objfile_priv_data, read_unwind_info)
9130 (find_unwind_entry, _initialize_hppa_tdep): Update.
9132 2019-05-08 Tom Tromey <tom@tromey.com>
9134 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9135 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9137 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9139 2019-05-08 Tom Tromey <tom@tromey.com>
9141 * mdebugread.c (basic_type_data): Change type.
9142 (basic_type, _initialize_mdebugread): Update.
9144 2019-05-08 Tom Tromey <tom@tromey.com>
9146 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9148 2019-05-08 Tom Tromey <tom@tromey.com>
9150 * nto-tdep.c (nto_inferior_data_reg): Change type.
9151 (nto_inferior_data): Update.
9152 (nto_inferior_data_cleanup, nto_new_inferior_data)
9153 (_initialize_nto_tdep): Remove.
9154 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9156 2019-05-08 Tom Tromey <tom@tromey.com>
9158 * ada-lang.c (struct ada_inferior_data): Add initializers.
9159 (ada_inferior_data): Change type.
9160 (ada_inferior_data_cleanup): Remove.
9161 (get_ada_inferior_data, ada_inferior_exit)
9162 (struct ada_pspace_data): Add initializers, destructor.
9163 (ada_pspace_data_handle): Change type.
9164 (get_ada_pspace_data): Update.
9165 (ada_pspace_data_cleanup): Remove.
9167 2019-05-08 Tom Tromey <tom@tromey.com>
9169 * coffread.c (struct coff_symfile_info): Add initializers.
9170 (coff_objfile_data_key): Move lower. Change type.
9171 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9173 (coff_free_info): Remove.
9175 2019-05-08 Tom Tromey <tom@tromey.com>
9177 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9178 (fbsd_pspace_data_handle): Move lower. Change type.
9179 (get_fbsd_pspace_data): Update.
9180 (fbsd_pspace_data_cleanup): Remove.
9181 (_initialize_fbsd_tdep): Update.
9183 2019-05-08 Tom Tromey <tom@tromey.com>
9185 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9186 (get_ada_tasks_pspace_data): Update.
9187 (ada_tasks_pspace_data_cleanup): Remove.
9188 (_initialize_tasks): Update.
9189 (ada_tasks_inferior_data_handle): Change type.
9190 (get_ada_tasks_inferior_data): Update.
9191 (ada_tasks_inferior_data_cleanup): Remove.
9192 (struct ada_tasks_pspace_data): Add initializers.
9194 2019-05-08 Tom Tromey <tom@tromey.com>
9196 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9197 * symfile-debug.c (debug_sym_get_probes): Change type.
9198 * stap-probe.c (handle_stap_probe):
9199 (stap_static_probe_ops::get_probes): Change type.
9200 * probe.h (class static_probe_ops) <get_probes>: Change type.
9201 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9202 (parse_probes_in_pspace): Update.
9203 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9205 (any_static_probe_ops::get_probes): Change type.
9206 * elfread.c (elfread_data): New typedef.
9207 (probe_key): Change type.
9208 (elf_get_probes): Likewise. Update.
9209 (probe_key_free): Remove.
9210 (_initialize_elfread): Update.
9211 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9213 (dtrace_process_dof_probe, dtrace_process_dof)
9214 (dtrace_static_probe_ops::get_probe): Change type.
9216 2019-05-08 Tom Tromey <tom@tromey.com>
9218 * xcoffread.c (struct xcoff_symfile_info): Rename from
9219 coff_symfile_info. Add initializers.
9220 (xcoff_objfile_data_key): Move lower. Change type.
9221 (XCOFF_DATA): Rewrite.
9222 (xcoff_free_info): Remove.
9223 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9224 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9225 (xcoff_initial_scan): Update.
9227 2019-05-08 Tom Tromey <tom@tromey.com>
9229 * solib-svr4.c (struct svr4_info): Add initializers and
9231 <probes_table>: Now an htab_up.
9232 (solib_svr4_pspace_data): Change type.
9233 (free_probes_table): Simplify.
9234 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9235 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9236 (probes_table_remove_objfile_probes, register_solib_event_probe)
9237 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9238 (_initialize_svr4_solib): Update.
9240 2019-05-08 Tom Tromey <tom@tromey.com>
9242 * remote.c (remote_pspace_data): Change type.
9243 (remote_pspace_data_cleanup): Remove.
9244 (get_remote_exec_file, set_pspace_remote_exec_file)
9245 (_initialize_remote): Update.
9247 2019-05-08 Tom Tromey <tom@tromey.com>
9249 * breakpoint.c (breakpoint_objfile_key): Change type.
9250 (get_breakpoint_objfile_data): Update.
9251 (free_breakpoint_objfile_data): Remove.
9252 (_initialize_breakpoint): Update.
9254 2019-05-08 Tom Tromey <tom@tromey.com>
9256 * linux-tdep.c (struct linux_info): Add initializers.
9257 (linux_inferior_data): Move. Change type.
9258 (invalidate_linux_cache_inf): Update.
9259 (linux_inferior_data_cleanup): Remove.
9260 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9262 2019-05-08 Tom Tromey <tom@tromey.com>
9264 * auxv.c (auxv_inferior_data): Move. Change type.
9265 (auxv_inferior_data_cleanup): Remove.
9266 (invalidate_auxv_cache_inf): Rewrite.
9267 (get_auxv_inferior_data, _initialize_auxv): Update.
9269 2019-05-08 Tom Tromey <tom@tromey.com>
9271 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9272 (symfile_debug_objfile_data_key): Change type.
9273 (symfile_debug_installed, debug_qf_has_symbols)
9274 (debug_qf_find_last_source_symtab)
9275 (debug_qf_forget_cached_source_info)
9276 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9277 (debug_qf_print_stats, debug_qf_dump)
9278 (debug_qf_expand_symtabs_for_function)
9279 (debug_qf_expand_all_symtabs)
9280 (debug_qf_expand_symtabs_with_fullname)
9281 (debug_qf_map_matching_symbols)
9282 (debug_qf_expand_symtabs_matching)
9283 (debug_qf_find_pc_sect_compunit_symtab)
9284 (debug_qf_map_symbol_filenames)
9285 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9286 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9287 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9288 (debug_sym_read_linetable, debug_sym_relocate): Update.
9289 (symfile_debug_free_objfile): Remove.
9290 (install_symfile_debug_logging, _initialize_symfile_debug):
9293 2019-05-08 Tom Tromey <tom@tromey.com>
9295 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9296 allocate_on_obstack.
9297 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9298 (get_dwarf2_per_objfile): Update.
9299 (set_dwarf2_per_objfile): Remove.
9300 (dwarf2_has_info, dwarf2_get_section_info): Update.
9301 (dwarf2_free_objfile): Remove.
9302 (_initialize_dwarf2_read): Update.
9304 2019-05-08 Tom Tromey <tom@tromey.com>
9306 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9308 <unsupported_script_warning_printed,
9309 script_not_found_warning_printed>: Now bool.
9310 (auto_load_pspace_data): Change type.
9311 (~auto_load_pspace_info): Rename from
9312 auto_load_pspace_data_cleanup.
9313 (get_auto_load_pspace_data, init_loaded_scripts_info)
9314 (clear_section_scripts, maybe_print_unsupported_script_warning)
9315 (maybe_print_script_not_found_warning, _initialize_auto_load):
9318 2019-05-08 Tom Tromey <tom@tromey.com>
9320 * objfiles.c (objfile_pspace_info): Add destructor and
9322 (objfiles_pspace_data): Change type.
9323 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9324 (get_objfile_pspace_data): Update.
9325 (objfiles_bfd_data): Change type.
9326 (get_objfile_bfd_data): Update.
9327 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9329 2019-05-08 Tom Tromey <tom@tromey.com>
9331 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9333 (get_catch_syscall_inferior_data): Update.
9334 (catch_syscall_inferior_data_cleanup): Remove.
9335 (_initialize_break_catch_syscall): Update.
9337 2019-05-08 Tom Tromey <tom@tromey.com>
9339 * inflow.c (struct terminal_info): Add destructor and
9341 (inflow_inferior_data): Change type.
9342 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9343 (get_inflow_inferior_data, inflow_inferior_exit)
9344 (swap_terminal_info, _initialize_inflow): Update.
9346 2019-05-08 Tom Tromey <tom@tromey.com>
9348 * target-dcache.c (target_dcache_cleanup): Remove.
9349 (target_dcache_aspace_key): Change type.
9350 (target_dcache_init_p, target_dcache_invalidate)
9351 (target_dcache_get, target_dcache_get_or_init)
9352 (_initialize_target_dcache): Update.
9353 * dcache.h (struct dcache_deleter): New.
9355 2019-05-08 Tom Tromey <tom@tromey.com>
9357 * symtab.c (struct symbol_cache): Add destructor and
9359 (symbol_cache_key): Move. Change type.
9360 (make_symbol_cache, free_symbol_cache): Remove.
9361 (get_symbol_cache): Update.
9362 (symbol_cache_cleanup): Remove.
9363 (ALL_PSPACES, symbol_cache_flush)
9364 (maintenance_print_symbol_cache)
9365 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9368 2019-05-08 Tom Tromey <tom@tromey.com>
9370 * symtab.c (struct main_info): Add destructor and initializers.
9371 (main_progspace_key): Move. Change type.
9372 (get_main_info): Update.
9373 (main_info_cleanup): Remove.
9374 (_initialize_symtab): Update.
9376 2019-05-08 Tom Tromey <tom@tromey.com>
9378 * registry.h (DECLARE_REGISTRY): Define the _key class.
9380 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9382 * NEWS: Merge two 'New commands' sections.
9384 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9386 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9387 parameter and use Ada language definition instead.
9388 (ada_val_print_ptr): Remove unused language parameter.
9389 (ada_val_print_num): Remove language parameter and use Ada language
9391 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9393 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9394 parameter and use Ada language definition instead.
9395 (ada_val_print_1): Update all ada_val_print_xxx calls.
9396 Remove language parameter.
9397 (ada_val_print): Update ada_val_print_1 call.
9399 2019-05-08 Tom Tromey <tromey@adacore.com>
9401 * remote.c (remote_hw_watchpoint_limit)
9402 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9405 2019-05-08 Tom Tromey <tromey@adacore.com>
9407 * maint.c (_initialize_maint_cmds): Move initialization code to
9409 (watchdog, show_watchdog): Move to remote.c.
9410 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9412 (_initialize_remote): Move initialization code from maint.c.
9413 * defs.h (watchdog): Don't declare.
9415 2019-05-08 Tom Tromey <tromey@adacore.com>
9417 * tui/tui-interp.c: Include main.h.
9418 * interps.c: Include main.h.
9419 * main.h (interpreter_p): Declare.
9420 * defs.h (interpreter_p): Don't declare.
9422 2019-05-08 Tom Tromey <tromey@adacore.com>
9424 * dwarf2loc.c: Include dwarf2read.h.
9425 * defs.h (read_unsigned_leb128): Don't declare.
9426 * dwarf2read.h (read_unsigned_leb128): Declare.
9428 2019-05-08 Tom Tromey <tromey@adacore.com>
9430 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9433 2019-05-08 Tom Tromey <tromey@adacore.com>
9435 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9436 when no wrap column is set.
9438 2019-05-08 Tom Tromey <tromey@adacore.com>
9440 * c-lang.c (c_get_string): Handle non-C-style arrays.
9442 2019-05-08 Tom Tromey <tromey@adacore.com>
9444 * typeprint.c (print_offset_data::update): Print the bit offset,
9445 not the number of bits remaining.
9447 2019-05-08 Tom Tromey <tromey@adacore.com>
9449 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9450 padding at end of comment.
9452 2019-05-08 Tom Tromey <tromey@adacore.com>
9454 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9457 2019-05-06 Tom Tromey <tom@tromey.com>
9459 * common/scoped_mmap.c: Include common-defs.h.
9460 * common/scoped_mmap.h: Don't include config.h.
9462 2019-05-04 Tom Tromey <tom@tromey.com>
9464 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9465 (struct aarch64_call_info): Add initializers.
9466 <si>: Now a std::vector.
9467 (pass_on_stack, aarch64_push_dummy_call): Update.
9469 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9470 Tom Tromey <tom@tromey.com>
9472 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9473 (ppc_threads): Now a std::vector. Now static.
9474 (hwdebug_find_thread_points_by_tid)
9475 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9478 2019-05-04 Tom Tromey <tom@tromey.com>
9480 * arc-tdep.c (arc_tdesc_init): Return bool.
9482 2019-05-04 Tom Tromey <tom@tromey.com>
9484 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9485 Use gdb_assert_not_reached.
9487 2019-05-04 Tom Tromey <tom@tromey.com>
9489 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9492 2019-05-04 Tom Tromey <tom@tromey.com>
9494 * arc-tdep.c (arc_tdesc_init): Use bool.
9496 2019-05-04 Tom Tromey <tom@tromey.com>
9498 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9500 2019-05-04 Tom Tromey <tom@tromey.com>
9502 * cli/cli-cmds.c (valid_command_p): Return bool.
9504 2019-05-04 Tom Tromey <tom@tromey.com>
9506 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9507 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9509 2019-05-04 Raul Tambre <raul@tambre.ee>
9511 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9512 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9513 operator for comparison.
9515 2019-05-04 Tom Tromey <tom@tromey.com>
9517 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9518 (lookup_partial_symbol, print_partial_symbols)
9519 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9520 (psymbol_compare): Update.
9521 (add_psymbol_to_bcache): Clear the entire psymbol.
9522 (maintenance_check_psymtabs): Update.
9523 * psympriv.h (struct partial_symbol): Don't derive from
9524 general_symbol_info.
9525 <obj_section, unrelocated_address, address,
9526 set_unrelocated_address>: Update.
9527 <ginfo>: New member.
9528 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9529 (debug_names::write_psymbols): Update.
9531 2019-05-04 Tom de Vries <tdevries@suse.de>
9533 * contrib/cc-with-tweaks.sh: Support -n arg.
9535 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9537 * corelow.c (core_target::detach): Ensure frame cache and
9538 register caches are cleared.
9539 inferior.c (exit_inferior_1): Likewise.
9541 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9542 Tom Tromey <tom@tromey.com>
9544 * dictionary.c (collate_pending_symbols_by_language): Remove
9545 "struct" from foreach.
9546 * symtab.c (lookup_global_symbol_from_objfile)
9547 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9549 * ser-tcp.c (net_open): Remove "struct" from foreach.
9550 * objfiles.c (objfile_relocate, objfile_rebase)
9551 (objfile_has_symbols): Remove "struct" from foreach.
9552 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9554 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9556 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9557 "struct" from foreach.
9558 * ada-lang.c (create_excep_cond_exprs)
9559 (ada_exception_catchpoint_cond_string): Remove "struct" from
9562 2019-05-03 Tom Tromey <tromey@adacore.com>
9564 * ada-exp.y (convert_char_literal): Check suffix of each
9567 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9570 * ada-exp.y (yywrap): Don't define.
9571 * ada-lex.l (%option): Add noyywrap
9574 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9576 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9577 _WIN32_WINNT to the XP level, unless already defined to a higher
9580 * unittests/parse-connection-spec-selftests.c:
9582 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9585 * symfile.c (find_separate_debug_file): Remove colon from the
9586 drive spec of DOS/Windows file names of the target, so that the
9587 file name produced from DEBUGDIR and the target's directory will
9588 be valid on DOS/Windows systems.
9590 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9592 * rust-lang.c (val_print_struct): Handle printing structures
9595 2019-05-02 Tom Tromey <tromey@adacore.com>
9597 * valarith.c (_initialize_valarith): Remove.
9599 2019-05-01 Tom Tromey <tromey@adacore.com>
9601 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9604 2019-05-01 Tom Tromey <tromey@adacore.com>
9606 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9607 for big-endian copies.
9609 2019-04-30 Ali Tamur <tamur@google.com>
9610 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9611 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9612 (read_3_bytes): New function.
9614 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9616 * windows-nat.c (main_thread_id): Delete.
9617 (handle_output_debug_string): Replace main_thread_id by
9618 current_event.dwThreadId.
9619 (fake_create_process): Likewise.
9620 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9621 Do not set main_thread_id.
9622 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9623 current_event.dwThreadId.
9624 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9626 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9628 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9629 Use current_event.dwThreadId instead of main_thread_id.
9631 2019-04-30 Tom Tromey <tromey@adacore.com>
9633 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9634 (create_excep_cond_exprs): Iterate over program spaces.
9635 (ada_exception_catchpoint_cond_string): Examine all minimal
9636 symbols for exception types.
9638 2019-04-30 Tom Tromey <tromey@adacore.com>
9641 * dwarf2read.c (process_structure_scope): Handle case where type
9642 has template parameters but no symbol was created.
9644 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9645 Chris January <chris.january@arm.com>
9647 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9649 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9651 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9653 * f-typeprint.c (f_print_type): Update rules for printing
9655 (f_type_print_varspec_suffix): Likewise.
9657 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9658 Chris January <chris.january@arm.com>
9660 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9663 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9665 * f-lang.c (build_fortran_types): Change name of void type to
9667 * f-typeprint.c (f_type_print_base): Print the name of the void
9668 type, rather than a fixed string.
9669 * f-valprint.c (f_decorations): Use lower case void string.
9671 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9672 Chris January <chris.january@arm.com>
9674 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9677 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9678 Chris January <chris.january@arm.com>
9679 David Lecomber <david.lecomber@arm.com>
9681 * f-exp.y (BINOP_INTRINSIC): New token.
9682 (exp): New parser rule handling BINOP_INTRINSIC.
9683 (f77_keywords): Add new builtin procedures.
9684 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9685 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9686 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9687 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9688 (print_unop_subexp_f): New function.
9689 (print_binop_subexp_f): New function.
9690 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9691 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9692 (dump_subexp_body_f): Likewise.
9693 (operator_check_f): Likewise.
9694 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9695 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9697 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9699 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9701 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9702 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9703 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9704 (operator_length_f): New fuction.
9705 (print_subexp_f): New function.
9706 (op_name_f): New function.
9707 (dump_subexp_body_f): New function.
9708 (operator_check_f): New function.
9709 (exp_descriptor_f): Replace standard expression handling functions
9711 * gdb/fortran-operator.def: New file.
9712 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9713 * gdb/std-operator.def: Remove UNOP_KIND.
9715 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9717 * std-operator.def: Remove unbalanced, stray double quote
9720 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9721 Chris January <chris.january@arm.com>
9722 Daniel Everett <daniel.everett@arm.com>
9723 Nick Forrington <nick.forrington@arm.com>
9724 Richard Bunt <richard.bunt@arm.com>
9726 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9727 of depth when printing anonymous structs or unions.
9728 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9729 Don't print either the top-level value, or the children if the
9730 max-depth is exceeded.
9731 (ppscm_print_children): When printing the key of a map, allow one
9732 extra level of depth.
9733 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9734 print either the top-level value, or the children if the max-depth
9736 (print_children): When printing the key of a map, allow one extra
9738 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9739 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9740 (user_print_options): Initialise max_depth field.
9741 (val_print_scalar_or_string_type_p): New function.
9742 (val_print): Check to see if the max depth has been reached.
9743 (val_print_check_max_depth): Define new function.
9744 (show_print_max_depth): New function.
9745 (_initialize_valprint): Add 'print max-depth' option.
9746 * valprint.h (struct value_print_options) <max_depth>: New field.
9747 (val_print_check_max_depth): Declare new function.
9748 * NEWS: Document new feature.
9750 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9752 * ada-lang.c (ada_language_defn): Initialise new field.
9753 * c-lang.c (c_is_string_type_p): New function.
9754 (c_language_defn): Initialise new field.
9755 (cplus_language_defn): Initialise new field.
9756 (asm_language_defn): Initialise new field.
9757 (minimal_language_defn): Initialise new field.
9758 * c-lang.h (c_is_string_type_p): Declare new function.
9759 * d-lang.c (d_language_defn): Initialise new field.
9760 * f-lang.c (f_is_string_type_p): New function.
9761 (f_language_defn): Initialise new field.
9762 * go-lang.c (go_is_string_type_p): New function.
9763 (go_language_defn): Initialise new field.
9764 * language.c (default_is_string_type_p): New function.
9765 (unknown_language_defn): Initialise new field.
9766 (auto_language_defn): Initialise new field.
9767 * language.h (struct language_defn) <la_is_string_type_p>: New
9769 (default_is_string_type_p): Declare new function.
9770 * m2-lang.c (m2_language_defn): Initialise new field.
9771 * objc-lang.c (objc_language_defn): Initialise new field.
9772 * opencl-lang.c (opencl_language_defn): Initialise new field.
9773 * p-lang.c (pascal_is_string_type_p): New function.
9774 (pascal_language_defn): Initialise new field.
9775 * rust-lang.c (rust_is_string_type_p): New function.
9776 (rust_language_defn): Initialise new field.
9778 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9780 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9782 * ada-lang.c (ada_language_defn): Initialise new field.
9783 * c-lang.c (c_language_defn): Likewise.
9784 (cplus_language_defn): Likewise.
9785 (asm_language_defn): Likewise.
9786 (minimal_language_defn): Likewise.
9787 * d-lang.c (d_language_defn): Likewise.
9788 * f-lang.c (f_language_defn): Likewise.
9789 * go-lang.c (go_language_defn): Likewise.
9790 * language.c (unknown_language_defn): Likewise.
9791 (auto_language_defn): Likewise.
9792 * m2-lang.c (m2_language_defn): Likewise.
9793 * objc-lang.c (objc_language_defn): Likewise.
9794 * opencl-lang.c (opencl_language_defn): Likewise.
9795 * p-lang.c (pascal_language_defn): Likewise.
9796 * rust-lang.c (rust_language_defn): Likewise.
9798 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9800 * ada-lang.c (ada_is_character_type): Change return type to bool.
9801 (ada_is_string_type): Likewise.
9802 * ada-lang.h (ada_is_character_type): Update declaration
9803 (ada_is_string_type): Likewise.
9805 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807 Support style in 'frame|thread apply'
9809 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9810 * record.c (record_start, record_stop): Update callers of
9811 execute_command_to_string with false.
9812 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9813 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9815 (class string_file): New constructor with term_out parameter.
9816 Override methods term_out and can_emit_style_escape. New member
9818 (class stdio_file): Override can_emit_style_escape.
9819 (class tee_file): Override term_out and can_emit_style_escape.
9820 * utils.h (can_emit_style_escape): Remove.
9821 * utils.c (can_emit_style_escape): Likewise.
9822 Update all callers of can_emit_style_escape (SOMESTREAM) to
9823 SOMESTREAM->can_emit_style_escape.
9824 * source-cache.c (source_cache::get_source_lines): Likewise.
9825 * stack.c (frame_apply_command_count): Call execute_command_to_string
9826 passing the term_out characteristic of the current gdb_stdout.
9827 * thread.c (thr_try_catch_cmd): Likewise.
9828 * top.c (execute_command_to_string): pass term_out parameter
9829 to construct the string_file for the command output.
9830 * ui-file.c (term_cli_styling): New function (most code moved
9831 from utils.c can_emit_style_escape).
9832 (string_file::string_file, string_file::can_emit_style_escape,
9833 stdio_file::can_emit_style_escape, tee_file::term_out,
9834 tee_file::can_emit_style_escape): New functions.
9836 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9838 * NEWS: Mention the new set|show may-call-functions.
9839 * infcall.c (may_call_functions_p): New variable.
9840 (show_may_call_functions_p): New function.
9841 (call_function_by_hand_dummy): Throws an error if not
9843 (_initialize_infcall): Call add_setshow_boolean_cmd for
9846 2019-04-25 Keith Seitz <keiths@redhat.com>
9849 * cp-support.c (inspect_type): Don't attempt substitutions
9850 of symbol with the same name.
9852 2019-04-25 Tom Tromey <tromey@adacore.com>
9855 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9858 2019-04-25 Tom Tromey <tromey@adacore.com>
9860 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9862 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9863 (gdb_xml_parser::parse): Use std::move.
9864 * python/python-internal.h (gdbpy_convert_exception): Take a const
9866 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9868 * python/py-utils.c (gdbpy_convert_exception): Take a const
9870 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9872 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9874 * mi/mi-main.c (mi_print_exception): Take a const reference.
9875 * main.c (handle_command_errors): Take a const reference.
9876 * linespec.c (parse_linespec): Use std::move.
9877 * infcall.c (run_inferior_call): Use std::move.
9878 (call_function_by_hand_dummy): Use std::move.
9879 * exec.c (try_open_exec_file): Use std::move.
9880 * exceptions.h (exception_print, exception_fprintf)
9881 (exception_print_same): Update.
9882 * exceptions.c (print_exception, exception_print)
9883 (exception_fprintf, exception_print_same): Change parameters to
9885 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9886 * common/new-op.c: Use std::move.
9887 * common/common-exceptions.h (struct gdb_exception): Add move
9889 (struct gdb_exception_error, struct gdb_exception_quit, struct
9890 gdb_quit_bad_alloc): Change constructor to move constructor.
9891 (throw_exception): Change parameter to rvalue reference.
9892 * common/common-exceptions.c (throw_exception): Take rvalue
9894 * cli/cli-interp.c (safe_execute_command): Use std::move.
9895 * breakpoint.c (insert_bp_location, location_to_sals): Use
9898 2019-04-25 Tom Tromey <tromey@adacore.com>
9900 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9901 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9902 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9903 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9904 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9905 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9906 guile/scm-value.c: Use unpack.
9907 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9908 gdbscm_gdb_exception.
9909 (gdbscm_throw_gdb_exception): Likewise.
9910 (struct gdbscm_gdb_exception): New.
9911 (unpack): New function.
9912 (gdbscm_wrap): Use unpack.
9914 2019-04-25 Tom Tromey <tromey@adacore.com>
9916 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9917 (gdb_rl_callback_handler): Use std::move.
9918 * common/common-exceptions.h (struct gdb_exception): Add move
9919 assignment operator.
9920 (throw_exception_sjlj): Change "exception" to const reference.
9921 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9922 (throw_exception_sjlj): Change "exception" to const reference.
9924 2019-04-25 Tom Tromey <tromey@adacore.com>
9926 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9927 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9928 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9930 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9932 * mi/mi-interp.c (mi_interp::exec): Update.
9933 * linespec.c (parse_linespec): Update.
9934 * infcall.c (run_inferior_call): Update.
9935 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9936 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9937 (gdbscm_lookup_global_symbol): Update.
9938 * guile/scm-param.c (gdbscm_parameter_value): Update.
9939 * guile/scm-frame.c (gdbscm_frame_read_register)
9940 (gdbscm_frame_read_var): Update.
9941 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9942 * exec.c (try_open_exec_file): Update.
9943 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9944 (gdb_rl_callback_handler): Update.
9945 * common/common-exceptions.h (exception_none): Don't declare.
9946 * common/common-exceptions.c (exception_none): Don't define.
9947 (struct catcher) <exception>: Update.
9948 * cli/cli-interp.c (safe_execute_command): Update.
9949 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9951 2019-04-25 Ali Tamur <tamur@google.com>
9953 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9954 (read_attribute_value): Likewise.
9955 (dwarf2_read_addr_index): Update comment.
9956 (read_str_index): Add DW_FORM_strx.
9957 (dwarf2_string_attr): Likewise.
9958 (dwarf2_const_value_attr): Likewise.
9959 (dump_die_shallow): Likewise.
9960 (dwarf2_fetch_constant_bytes): Likewise.
9961 (skip_form_bytes): Likewise.
9962 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9964 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9968 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9969 OFFSET. Verify if current mapping contains an ELF header.
9970 (linux_find_memory_regions_full): Adjust call to
9973 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9974 Kang Li <kanglictf@gmail.com>
9978 * dwarf2-frame.c (read_initial_length): Be consistent about using
9979 unsigned representation of length.
9980 (decode_frame_entry_1): Likewise. Check for wraparound of
9981 end pointer as well as buffer overflow.
9983 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9985 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9988 2019-04-24 Tom Tromey <tromey@adacore.com>
9990 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9992 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9994 * s12z-tdep.c (s12z_unwind_pc): Delete.
9995 (s12z_unwind_sp): Delete.
9996 (s12z_gdbarch_init): Don't register deleted functions with
9999 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10001 * rl78-tdep.c (rl78_unwind_sp): Delete.
10002 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10006 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10007 (xstormy16_unwind_pc): Delete.
10008 (xstormy16_dummy_id): Delete.
10009 (xstormy16_gdbarch_init): Don't register deleted functions with
10012 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10014 * vax-tdep.c (vax_unwind_pc): Delete.
10015 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10017 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10019 * v850-tdep.c (v850_unwind_sp): Delete.
10020 (v850_unwind_pc): Delete.
10021 (v850_dummy_id): Delete.
10022 (v850_gdbarch_init): Don't register deleted functions with
10025 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10027 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10028 (tilegx_unwind_pc): Delete.
10029 (tilegx_unwind_dummy_id): Delete.
10030 (tilegx_gdbarch_init): Don't register deleted functions with
10033 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10035 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10036 (tic6x_dummy_id): Delete.
10037 (tic6x_gdbarch_init): Don't register deleted functions with
10040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10042 * sparc-tdep.c (sparc_unwind_pc): Delete.
10043 (sparc32_gdbarch_init): Don't register deleted function with
10046 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10048 * sh-tdep.c (sh_unwind_sp): Delete.
10049 (sh_unwind_pc): Delete.
10050 (sh_dummy_id): Delete.
10051 (sh_gdbarch_init): Don't register deleted functions with
10054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10056 * score-tdep.c (score_unwind_sp): Delete.
10057 (score_unwind_pc): Delete.
10058 (score_dummy_id): Delete.
10059 (score_gdbarch_init): Don't register deleted functions with
10062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10064 * rx-tdep.c (rx_unwind_pc): Delete.
10065 (rx_unwind_sp): Delete.
10066 (rx_dummy_id): Delete.
10067 (rx_gdbarch_init): Don't register deleted functions with
10068 gdbarch. Update comment.
10070 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10072 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10073 (rs6000_dummy_id): Delete.
10074 (rs6000_gdbarch_init): Don't register deleted functions with
10077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10079 * or1k-tdep.c (or1k_dummy_id): Delete.
10080 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10082 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10084 * nios2-tdep.c (nios2_dummy_id): Delete.
10085 (nios2_unwind_sp): Delete.
10086 (nios2_gdbarch_init): Don't register deleted functions with
10089 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10091 * nds32-tdep.c (nds32_dummy_id): Delete.
10092 (nds32_unwind_pc): Delete.
10093 (nds32_unwind_sp): Delete.
10094 (nds32_gdbarch_init): Don't register deleted functions with
10097 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10099 * msp430-tdep.c (msp430_unwind_pc): Delete.
10100 (msp430_unwind_sp): Delete.
10101 (msp430_dummy_id): Delete.
10102 (msp430_gdbarch_init): Don't register deleted functions with
10105 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10107 * moxie-tdep.c (moxie_unwind_sp): Delete.
10108 (moxie_unwind_pc): Delete.
10109 (moxie_dummy_id): Delete.
10110 (moxie_gdbarch_init): Don't register deleted functions with
10113 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10115 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10116 (mn10300_unwind_pc): Delete.
10117 (mn10300_unwind_sp): Delete.
10118 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10120 (mn10300_frame_unwind_init): Don't register deleted functions with
10123 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10125 * mep-tdep.c (mep_unwind_pc): Delete.
10126 (mep_unwind_sp): Delete.
10127 (mep_dummy_id): Delete.
10128 (mep_gdbarch_init): Don't register deleted functions with
10131 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10133 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10134 (m68hc11_unwind_sp): Delete.
10135 (m68hc11_gdbarch_init): Don't register deleted functions with
10138 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10140 * m32r-tdep.c (m32r_unwind_sp): Delete.
10141 (m32r_unwind_pc): Delete.
10142 (m32r_dummy_id): Delete.
10143 (m32r_gdbarch_init): Don't register deleted functions with
10146 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10148 * m32c-tdep.c (m32c_unwind_pc): Delete.
10149 (m32c_unwind_sp): Delete.
10150 (m32c_dummy_id): Delete.
10151 (m32c_gdbarch_init): Don't register deleted functions with
10154 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10156 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10157 (lm32_unwind_pc): Delete.
10158 (lm32_dummy_id): Delete.
10159 (lm32_gdbarch_init): Don't register deleted functions with
10162 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10164 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10165 (iq2000_unwind_pc): Delete.
10166 (iq2000_dummy_id): Delete.
10167 (iq2000_gdbarch_init): Don't register deleted functions with
10170 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10172 * nds32-tdep.c (nds32_type_align): Delete.
10173 (nds32_push_dummy_call): Use type_align instead.
10175 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10177 * arm-tdep.c (arm_type_align): Only handle vector override case.
10178 (arm_push_dummy_call): Use type_align.
10179 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10181 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10183 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10185 (pass_on_stack): Use type_align.
10186 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10189 2019-04-23 Tom Tromey <tromey@adacore.com>
10191 * dwarf2read.c (line_header::file_name_at): Remove unused
10194 2019-04-23 Tom de Vries <tdevries@suse.de>
10197 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10201 2019-03-27 Ali Tamur <tamur@google.com>
10203 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10204 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10205 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10206 (dwarf_expr_context::get_addr_index): Likewise
10207 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10208 (symbol_needs_eval_context::get_addr_index): Likewise
10209 (disassemble_dwarf_expression): Add DW_OP_addrx
10210 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10211 (read_cutu_die_from_dwo): Update comment
10212 (skip_one_die): Add DW_FORM_addrx
10213 (read_attribute_value): Likewise
10214 (var_decode_location): Add DW_OP_addrx
10215 (dwarf2_const_value_attr): Add DW_FORM_addrx
10216 (dump_die_shallow): Likewise
10217 (dwarf2_fetch_constant_bytes): Likewise
10218 (decode_locdesc): Add DW_OP_addrx
10219 (skip_form_bytes): Add DW_FORM_addrx
10221 2019-04-22 Ali Tamur <tamur@google.com>
10223 * MAINTAINERS (Write After Approval): Add self.
10225 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10227 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10228 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10229 (open_symbol_file_object): Likewise.
10230 (svr4_default_sos): Add info parameter.
10231 (svr4_read_so_list): Likewise.
10232 (svr4_current_sos_direct): Adjust functions calls to pass down
10234 (svr4_current_sos_1): Add info parameter.
10235 (svr4_current_sos): Call get_svr4_info, pass info down to
10236 svr4_current_sos_1.
10237 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10239 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10241 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10243 (probes_table_remove_objfile_probes): Likewise.
10244 (register_solib_event_probe): Add info parameter.
10245 (solist_update_incremental): Pass info parameter down to
10247 (disable_probes_interface): Add info parameter.
10248 (svr4_handle_solib_event): Pass current_program_space to
10249 get_svr4_info. Adjust disable_probes_interface cleanup.
10250 (svr4_create_probe_breakpoints): Add info parameter, pass it
10251 down to register_solib_event_probe.
10252 (svr4_create_solib_event_breakpoints): Add info parameter,
10253 pass it down to svr4_create_probe_breakpoints.
10254 (enable_break): Pass info down to
10255 svr4_create_solib_event_breakpoints.
10256 (svr4_solib_create_inferior_hook): Pass current_program_space to
10258 (svr4_clear_solib): Likewise.
10260 2019-04-22 Pedro Alves <palves@redhat.com>
10262 * solib-svr4.c (svr4_free_objfile_observer): New.
10263 (probe_and_action::objfile): New field.
10264 (probes_table_htab_remove_objfile_probes)
10265 (probes_table_remove_objfile_probes): New functions.
10266 (register_solib_event_probe): Add 'objfile' parameter. Store it
10267 in the new probe_and_action. Don't store the probe in 'lookup'.
10268 (svr4_create_probe_breakpoints): Pass objfile to
10269 register_solib_event_probe.
10270 (_initialize_svr4_solib): Register a free_objfile observer.
10272 2019-04-19 Tom Tromey <tom@tromey.com>
10274 * common/queue.h: Remove.
10276 2019-04-19 Tom Tromey <tom@tromey.com>
10278 * event-loop.c: Don't include "common/queue.h".
10280 2019-04-19 Tom Tromey <tom@tromey.com>
10282 * remote.c (remote_target): Use delete.
10283 * remote-notif.h: Include <list>, not "common/queue.h".
10284 (notif_client_p): Remove typedef.
10285 (remote_notif_state): Add constructor, destructor, initializer.
10286 <notif_queue>: Now a std::list.
10287 (remote_notif_state_xfree): Don't declare.
10288 * remote-notif.c (remote_notif_process, handle_notification)
10289 (remote_notif_state_allocate): Update.
10290 (~remote_notif_state): Rename from remote_notif_state_xfree.
10292 2019-04-19 Tom Tromey <tom@tromey.com>
10294 * symfile.c (reread_symbols): Update.
10295 * objfiles.c (objfile_register_static_link)
10296 (objfile_lookup_static_link): Update
10297 (~objfile) Don't delete static_links.
10298 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10300 2019-04-19 Tom Tromey <tom@tromey.com>
10302 * type-stack.h (struct type_stack) <insert>: Constify string.
10303 * type-stack.c (type_stack::insert): Constify string.
10304 * gdbtypes.h (lookup_template_type): Update.
10305 (address_space_name_to_int): Update.
10306 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10308 (lookup_template_type): Make name const.
10309 * c-exp.y: Update rules.
10310 (lex_one_token, classify_name, classify_inner_name)
10311 (c_print_token): Update.
10312 * p-exp.y: Update rules.
10314 * f-exp.y: Update rules.
10316 * d-exp.y: Update rules.
10317 (lex_one_token, classify_name, classify_inner_name): Update.
10318 * parse.c (write_dollar_variable, copy_name): Return std::string.
10319 * parser-defs.h (copy_name): Change return type.
10320 * m2-exp.y: Update rules.
10322 * go-exp.y (lex_one_token): Update.
10324 (classify_unsafe_function, classify_packaged_name)
10325 (classify_name, yylex): Update.
10327 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10329 * configure.ac: add --enable-source-highlight switch.
10330 * configure: Regenerate.
10331 * top.c (print_gdb_version): plumb --enable-source-highlight
10332 status to "show configuration".
10334 2019-04-19 Tom Tromey <tromey@adacore.com>
10336 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10338 (empty_record, ada_template_to_fixed_record_type_1)
10339 (template_to_static_fixed_type)
10340 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10341 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10342 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10345 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10348 * source.c (print_source_lines_base): Advance "iter" when a
10349 control character is seen.
10351 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10353 * inferior.h (struct infcall_suspend_state_deleter):
10354 Catch exception in destructor to avoid crash.
10356 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10358 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10359 close to the add_com "shell".
10361 2019-04-18 Tom Tromey <tromey@adacore.com>
10363 * process-stratum-target.h (class process_stratum_target)
10364 <stratum>: Add "final".
10366 2019-04-17 Tom Tromey <tromey@adacore.com>
10368 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10369 against nullptr before use.
10371 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10373 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10375 2019-04-17 Jim Wilson <jimw@sifive.com>
10376 Andrew Burgess <andrew.burgess@embecosm.com>
10378 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10379 code read might fail, assume 4-byte breakpoint in that case.
10381 2019-04-15 Leszek Swirski <leszeks@google.com>
10383 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10384 rather than a hand-rolled POD check when checking for forced MEMORY
10387 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10389 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10390 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10392 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10393 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10394 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10397 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10399 * aarch64-linux-nat.c
10400 (aarch64_linux_nat_target::thread_architecture): Add override.
10401 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10404 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10406 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10408 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10410 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10411 target types of size 96-bits, add some additional comments, and
10412 check that the builtin type we found was the correct size.
10414 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10416 * utils.c (prompt_for_continue): Don't restore the styling at the
10417 end, as applied_style has the wrong value. This fixes styling in
10418 long lists of file names that are interrupted by the "Continue?"
10421 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10423 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10424 * c-lang.c (c_language_defn): Likewise.
10425 (cplus_language_defn): Likewise.
10426 (asm_language_defn): Likewise.
10427 (minimal_language_defn): Likewise.
10428 * d-lang.c (d_language_defn): Likewise.
10429 * f-lang.c (f_language_defn): Likewise.
10430 * go-lang.c (go_language_defn): Likewise.
10431 * language.c (unknown_language_defn): Likewise.
10432 (auto_language_defn): Likewise.
10433 * language.h (struct language_defn): Remove la_magic field.
10434 (LANG_MAGIC): Delete.
10435 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10436 * objc-lang.c (objc_language_defn): Likewise.
10437 * opencl-lang.c (opencl_language_defn): Likewise.
10438 * p-lang.c (pascal_language_defn): Likewise.
10439 * rust-lang.c (rust_language_defn): Likewise.
10441 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10443 * riscv-tdep.c (riscv_type_align): New function.
10444 (riscv_type_alignment): Delete.
10445 (riscv_arg_location): Use 'type_align'.
10446 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10448 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10450 * gdbtypes.c (type_align): A struct with no non-static fields also
10451 has alignment of 1.
10453 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10455 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10457 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10459 (riscv_struct_info::analyse): New implementation using new
10460 analyse_inner member function.
10461 (riscv_struct_info::field_offset): New member function.
10462 (riscv_struct_info::m_offsets): New member variable.
10463 (riscv_struct_info::analyse_inner): New private member function,
10464 takes the old implementation of riscv_struct_info::analyse but
10465 extended to track field offsets.
10466 (riscv_call_arg_struct): Update the struct folding special cases
10467 to handle cases where empty C++ structs, which are non-zero
10469 (riscv_arg_location): Initialise the length of each location, a
10470 non-zero length now indicates the location is in use.
10471 (riscv_push_dummy_call): Allow for the first location having a
10472 non-zero offset when setting up arguments.
10473 (riscv_return_value): Likewise, but for return values.
10475 2019-04-11 Tom Tromey <tromey@adacore.com>
10477 * utils.c (internal_vproblem): Make "msg" const.
10479 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10481 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10482 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10483 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10484 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10486 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10488 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10490 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10491 of amd64_collect_native_gregset.
10492 (amd64_linux_nat_target::store_registers): Likewise.
10494 2019-04-10 Tom Tromey <tom@tromey.com>
10496 * symtab.c (lookup_global_symbol_from_objfile)
10497 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10498 * objfiles.h (class separate_debug_iterator): New.
10499 (class separate_debug_range): New.
10500 (struct objfile) <separate_debug_objfiles>: New method.
10501 (objfile_separate_debug_iterate): Don't declare.
10502 * objfiles.c (separate_debug_iterator::operator++): Rename from
10503 objfile_separate_debug_iterate.
10504 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10506 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10509 2019-04-10 Tom Tromey <tom@tromey.com>
10511 * symfile.c (reread_symbols): Remove old comment.
10512 * objfiles.c (free_all_objfiles): Fix a typo.
10514 2019-04-10 Tom Tromey <tom@tromey.com>
10516 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10517 * minsyms.c (lookup_minimal_symbol): Use foreach.
10518 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10519 (lookup_minimal_symbol_solib_trampoline): Likewise.
10520 * symfile.c (reread_symbols): Use foreach.
10522 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10523 Tom Tromey <tromey@adacore.com>
10526 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10527 (rust_lex_int_test): Change "value" to be LONGEST.
10528 (rust_lex_tests): Add test for long integer literal.
10530 2019-04-09 Tom Tromey <tromey@adacore.com>
10532 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10534 (extended_remote_target::attach): Update.
10535 (remote_target::remote_notice_new_inferior): Update.
10536 (remote_target::add_current_inferior_and_thread): Update.
10537 * inferior.c (exit_inferior_1): Use "false".
10538 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10540 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10542 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10543 the "start" command.
10545 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10547 * python/py-inferior.c (infpy_thread_from_thread_handle):
10548 Adjust comments to reflect renaming of thread_from_thread_handle
10549 to thread_from_handle. Adjust keywords. Fix type error message.
10550 (inferior_object_methods): Add thread_from_handle. Retain
10551 thread_from_thread_handle, but mark it as deprecated.
10553 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10555 * gdbthread.h (find_thread_by_handle): Revise declaration.
10556 * thread.c (find_thread_by_handle): Likewise. Adjust
10557 implementation too.
10558 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10559 support for buffer objects as handles.
10561 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10563 * python/py-infthread.c (thpy_thread_handle): New function.
10564 (thread_object_methods): Register thpy_thread_handle.
10566 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10568 * gdbthread.h (thread_to_thread_handle): Declare.
10569 * thread.c (gdbtypes.h): Include.
10570 (thread_to_thread_handle): New function.
10572 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10573 (target_thread_info_to_thread_handle): Declare.
10574 * target.c (target_thread_info_to_thread_handle): New function.
10575 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10576 * target-delegates.c: Regenerate.
10578 * linux-thread-db.c (class thread_db_target): Add method
10579 thread_info_to_thread_handle.
10580 (thread_db_target::thread_info_to_thread_handle): Define.
10581 * remote.c (class remote_target): Add new method
10582 thread_info_to_thread_handle.
10583 (remote_target::thread_info_to_thread_handle): Define.
10585 2019-04-08 Pedro Alves <palves@redhat.com>
10587 * common/common-exceptions.c (throw_exception): Don't create
10588 named object to throw; throw directly.
10589 (throw_it): Likewise. Don't initialize gdb_exception::message
10590 here, with new; pass FMT and AP to the ctor instead.
10591 * common/common-exceptions.h: Include <string>.
10592 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10593 const char *, va_list)): New ctor. Use std::make_shared.
10594 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10596 (gdb_exception_error::gdb_exception_error(enum errors, const char
10598 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10600 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10602 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10603 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10606 2019-04-08 Tom Tromey <tom@tromey.com>
10608 * valops.c (value_rtti_indirect_type): Replace throw_exception
10610 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10612 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10614 * target.c (target_translate_tls_address): Replace throw_exception
10616 * stack.c (frame_apply_command_count): Replace throw_exception
10618 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10620 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10622 * rs6000-tdep.c (rs6000_frame_cache)
10623 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10624 * remote.c: Replace throw_exception with throw.
10625 * record-full.c (record_full_message, record_full_wait_1)
10626 (record_full_restore): Replace throw_exception with throw.
10628 (get_thread_current_frame_id, record_btrace_start_replaying)
10629 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10630 (cmd_record_btrace_start): Replace throw_exception with throw.
10631 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10633 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10634 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10636 (find_linespec_symbols): Replace throw_exception with throw.
10637 * infrun.c (displaced_step_prepare, resume): Replace
10638 throw_exception with throw.
10639 * infcmd.c (post_create_inferior): Replace throw_exception with
10641 * inf-loop.c (inferior_event_handler): Replace throw_exception
10643 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10644 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10645 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10646 (get_prev_frame_always, get_frame_pc_if_available)
10647 (get_frame_address_in_block_if_available, get_frame_language):
10648 Replace throw_exception with throw.
10649 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10650 throw_exception with throw.
10651 * eval.c (fetch_subexp_value, evaluate_var_value)
10652 (evaluate_funcall, evaluate_subexp_standard): Replace
10653 throw_exception with throw.
10654 * dwarf2loc.c (call_site_find_chain)
10655 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10656 Replace throw_exception with throw.
10657 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10659 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10661 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10662 * completer.c (complete_line_internal): Replace throw_exception
10664 * compile/compile-object-run.c (compile_object_run): Replace
10665 throw_exception with throw.
10666 * cli/cli-script.c (process_next_line): Replace throw_exception
10668 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10669 (btrace_enable, btrace_maint_update_pt_packets): Replace
10670 throw_exception with throw.
10671 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10672 throw_exception with throw.
10673 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10674 throw_exception with throw.
10675 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10676 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10677 * aarch64-tdep.c (aarch64_make_prologue_cache)
10678 (aarch64_make_stub_cache): Replace throw_exception with throw.
10680 2019-04-08 Tom Tromey <tom@tromey.com>
10682 * common/common-exceptions.c (throw_exception): Rename from
10683 throw_exception_cxx. Remove old copy. Make argument const.
10684 (throw_it): Create and throw exception objects directly.
10685 * common/common-exceptions.h (throw_exception): Make argument
10687 (struct gdb_exception_error): Add constructor.
10688 (struct gdb_exception_quit): Add constructor.
10690 2019-04-08 Tom Tromey <tom@tromey.com>
10692 * common/common-exceptions.h (exception_rethrow): Don't declare.
10693 (TRY_SJLJ): Update comment.
10694 (TRY, CATCH, END_CATCH): Remove.
10695 * common/common-exceptions.c (exception_rethrow): Remove.
10697 2019-04-08 Tom Tromey <tom@tromey.com>
10699 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10701 (gdb_exception_error): Rename from
10702 gdb_exception_RETURN_MASK_ERROR.
10703 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10704 (gdb_quit_bad_alloc): Update.
10705 * aarch64-tdep.c: Update.
10706 * ada-lang.c: Update.
10707 * ada-typeprint.c: Update.
10708 * ada-valprint.c: Update.
10709 * amd64-tdep.c: Update.
10710 * arch-utils.c: Update.
10711 * break-catch-throw.c: Update.
10712 * breakpoint.c: Update.
10713 * btrace.c: Update.
10714 * c-varobj.c: Update.
10715 * cli/cli-cmds.c: Update.
10716 * cli/cli-interp.c: Update.
10717 * cli/cli-script.c: Update.
10718 * common/common-exceptions.c: Update.
10719 * common/new-op.c: Update.
10720 * common/selftest.c: Update.
10721 * compile/compile-c-symbols.c: Update.
10722 * compile/compile-cplus-symbols.c: Update.
10723 * compile/compile-object-load.c: Update.
10724 * compile/compile-object-run.c: Update.
10725 * completer.c: Update.
10726 * corelow.c: Update.
10727 * cp-abi.c: Update.
10728 * cp-support.c: Update.
10729 * cp-valprint.c: Update.
10730 * darwin-nat.c: Update.
10731 * disasm-selftests.c: Update.
10732 * dtrace-probe.c: Update.
10733 * dwarf-index-cache.c: Update.
10734 * dwarf-index-write.c: Update.
10735 * dwarf2-frame-tailcall.c: Update.
10736 * dwarf2-frame.c: Update.
10737 * dwarf2loc.c: Update.
10738 * dwarf2read.c: Update.
10740 * event-loop.c: Update.
10741 * event-top.c: Update.
10743 * f-valprint.c: Update.
10744 * fbsd-tdep.c: Update.
10745 * frame-unwind.c: Update.
10747 * gdbtypes.c: Update.
10748 * gnu-v3-abi.c: Update.
10749 * guile/guile-internal.h: Update.
10750 * guile/scm-block.c: Update.
10751 * guile/scm-breakpoint.c: Update.
10752 * guile/scm-cmd.c: Update.
10753 * guile/scm-disasm.c: Update.
10754 * guile/scm-frame.c: Update.
10755 * guile/scm-lazy-string.c: Update.
10756 * guile/scm-math.c: Update.
10757 * guile/scm-param.c: Update.
10758 * guile/scm-ports.c: Update.
10759 * guile/scm-pretty-print.c: Update.
10760 * guile/scm-symbol.c: Update.
10761 * guile/scm-symtab.c: Update.
10762 * guile/scm-type.c: Update.
10763 * guile/scm-value.c: Update.
10764 * i386-linux-tdep.c: Update.
10765 * i386-tdep.c: Update.
10766 * inf-loop.c: Update.
10767 * infcall.c: Update.
10768 * infcmd.c: Update.
10769 * infrun.c: Update.
10771 * language.c: Update.
10772 * linespec.c: Update.
10773 * linux-fork.c: Update.
10774 * linux-nat.c: Update.
10775 * linux-tdep.c: Update.
10776 * linux-thread-db.c: Update.
10778 * mi/mi-cmd-break.c: Update.
10779 * mi/mi-cmd-stack.c: Update.
10780 * mi/mi-interp.c: Update.
10781 * mi/mi-main.c: Update.
10782 * objc-lang.c: Update.
10783 * p-valprint.c: Update.
10785 * ppc-linux-tdep.c: Update.
10786 * printcmd.c: Update.
10787 * python/py-arch.c: Update.
10788 * python/py-breakpoint.c: Update.
10789 * python/py-cmd.c: Update.
10790 * python/py-finishbreakpoint.c: Update.
10791 * python/py-frame.c: Update.
10792 * python/py-framefilter.c: Update.
10793 * python/py-gdb-readline.c: Update.
10794 * python/py-inferior.c: Update.
10795 * python/py-infthread.c: Update.
10796 * python/py-lazy-string.c: Update.
10797 * python/py-linetable.c: Update.
10798 * python/py-objfile.c: Update.
10799 * python/py-param.c: Update.
10800 * python/py-prettyprint.c: Update.
10801 * python/py-progspace.c: Update.
10802 * python/py-record-btrace.c: Update.
10803 * python/py-record.c: Update.
10804 * python/py-symbol.c: Update.
10805 * python/py-type.c: Update.
10806 * python/py-unwind.c: Update.
10807 * python/py-utils.c: Update.
10808 * python/py-value.c: Update.
10809 * python/python.c: Update.
10810 * record-btrace.c: Update.
10811 * record-full.c: Update.
10812 * remote-fileio.c: Update.
10813 * remote.c: Update.
10814 * riscv-tdep.c: Update.
10815 * rs6000-aix-tdep.c: Update.
10816 * rs6000-tdep.c: Update.
10817 * rust-exp.y: Update.
10818 * rust-lang.c: Update.
10819 * s390-tdep.c: Update.
10820 * selftest-arch.c: Update.
10821 * solib-dsbt.c: Update.
10822 * solib-frv.c: Update.
10823 * solib-spu.c: Update.
10824 * solib-svr4.c: Update.
10826 * sparc64-linux-tdep.c: Update.
10828 * symfile-mem.c: Update.
10829 * symmisc.c: Update.
10830 * target.c: Update.
10831 * thread.c: Update.
10833 * tracefile-tfile.c: Update.
10834 * tui/tui.c: Update.
10835 * typeprint.c: Update.
10836 * unittests/cli-utils-selftests.c: Update.
10837 * unittests/parse-connection-spec-selftests.c: Update.
10838 * valops.c: Update.
10839 * valprint.c: Update.
10841 * varobj.c: Update.
10842 * windows-nat.c: Update.
10843 * x86-linux-nat.c: Update.
10844 * xml-support.c: Update.
10846 2019-04-08 Tom Tromey <tom@tromey.com>
10848 * xml-support.c: Use C++ exception handling.
10849 * x86-linux-nat.c: Use C++ exception handling.
10850 * windows-nat.c: Use C++ exception handling.
10851 * varobj.c: Use C++ exception handling.
10852 * value.c: Use C++ exception handling.
10853 * valprint.c: Use C++ exception handling.
10854 * valops.c: Use C++ exception handling.
10855 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10857 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10858 * typeprint.c: Use C++ exception handling.
10859 * tui/tui.c: Use C++ exception handling.
10860 * tracefile-tfile.c: Use C++ exception handling.
10861 * top.c: Use C++ exception handling.
10862 * thread.c: Use C++ exception handling.
10863 * target.c: Use C++ exception handling.
10864 * symmisc.c: Use C++ exception handling.
10865 * symfile-mem.c: Use C++ exception handling.
10866 * stack.c: Use C++ exception handling.
10867 * sparc64-linux-tdep.c: Use C++ exception handling.
10868 * solib.c: Use C++ exception handling.
10869 * solib-svr4.c: Use C++ exception handling.
10870 * solib-spu.c: Use C++ exception handling.
10871 * solib-frv.c: Use C++ exception handling.
10872 * solib-dsbt.c: Use C++ exception handling.
10873 * selftest-arch.c: Use C++ exception handling.
10874 * s390-tdep.c: Use C++ exception handling.
10875 * rust-lang.c: Use C++ exception handling.
10876 * rust-exp.y: Use C++ exception handling.
10877 * rs6000-tdep.c: Use C++ exception handling.
10878 * rs6000-aix-tdep.c: Use C++ exception handling.
10879 * riscv-tdep.c: Use C++ exception handling.
10880 * remote.c: Use C++ exception handling.
10881 * remote-fileio.c: Use C++ exception handling.
10882 * record-full.c: Use C++ exception handling.
10883 * record-btrace.c: Use C++ exception handling.
10884 * python/python.c: Use C++ exception handling.
10885 * python/py-value.c: Use C++ exception handling.
10886 * python/py-utils.c: Use C++ exception handling.
10887 * python/py-unwind.c: Use C++ exception handling.
10888 * python/py-type.c: Use C++ exception handling.
10889 * python/py-symbol.c: Use C++ exception handling.
10890 * python/py-record.c: Use C++ exception handling.
10891 * python/py-record-btrace.c: Use C++ exception handling.
10892 * python/py-progspace.c: Use C++ exception handling.
10893 * python/py-prettyprint.c: Use C++ exception handling.
10894 * python/py-param.c: Use C++ exception handling.
10895 * python/py-objfile.c: Use C++ exception handling.
10896 * python/py-linetable.c: Use C++ exception handling.
10897 * python/py-lazy-string.c: Use C++ exception handling.
10898 * python/py-infthread.c: Use C++ exception handling.
10899 * python/py-inferior.c: Use C++ exception handling.
10900 * python/py-gdb-readline.c: Use C++ exception handling.
10901 * python/py-framefilter.c: Use C++ exception handling.
10902 * python/py-frame.c: Use C++ exception handling.
10903 * python/py-finishbreakpoint.c: Use C++ exception handling.
10904 * python/py-cmd.c: Use C++ exception handling.
10905 * python/py-breakpoint.c: Use C++ exception handling.
10906 * python/py-arch.c: Use C++ exception handling.
10907 * printcmd.c: Use C++ exception handling.
10908 * ppc-linux-tdep.c: Use C++ exception handling.
10909 * parse.c: Use C++ exception handling.
10910 * p-valprint.c: Use C++ exception handling.
10911 * objc-lang.c: Use C++ exception handling.
10912 * mi/mi-main.c: Use C++ exception handling.
10913 * mi/mi-interp.c: Use C++ exception handling.
10914 * mi/mi-cmd-stack.c: Use C++ exception handling.
10915 * mi/mi-cmd-break.c: Use C++ exception handling.
10916 * main.c: Use C++ exception handling.
10917 * linux-thread-db.c: Use C++ exception handling.
10918 * linux-tdep.c: Use C++ exception handling.
10919 * linux-nat.c: Use C++ exception handling.
10920 * linux-fork.c: Use C++ exception handling.
10921 * linespec.c: Use C++ exception handling.
10922 * language.c: Use C++ exception handling.
10923 * jit.c: Use C++ exception handling.
10924 * infrun.c: Use C++ exception handling.
10925 * infcmd.c: Use C++ exception handling.
10926 * infcall.c: Use C++ exception handling.
10927 * inf-loop.c: Use C++ exception handling.
10928 * i386-tdep.c: Use C++ exception handling.
10929 * i386-linux-tdep.c: Use C++ exception handling.
10930 * guile/scm-value.c: Use C++ exception handling.
10931 * guile/scm-type.c: Use C++ exception handling.
10932 * guile/scm-symtab.c: Use C++ exception handling.
10933 * guile/scm-symbol.c: Use C++ exception handling.
10934 * guile/scm-pretty-print.c: Use C++ exception handling.
10935 * guile/scm-ports.c: Use C++ exception handling.
10936 * guile/scm-param.c: Use C++ exception handling.
10937 * guile/scm-math.c: Use C++ exception handling.
10938 * guile/scm-lazy-string.c: Use C++ exception handling.
10939 * guile/scm-frame.c: Use C++ exception handling.
10940 * guile/scm-disasm.c: Use C++ exception handling.
10941 * guile/scm-cmd.c: Use C++ exception handling.
10942 * guile/scm-breakpoint.c: Use C++ exception handling.
10943 * guile/scm-block.c: Use C++ exception handling.
10944 * guile/guile-internal.h: Use C++ exception handling.
10945 * gnu-v3-abi.c: Use C++ exception handling.
10946 * gdbtypes.c: Use C++ exception handling.
10947 * frame.c: Use C++ exception handling.
10948 * frame-unwind.c: Use C++ exception handling.
10949 * fbsd-tdep.c: Use C++ exception handling.
10950 * f-valprint.c: Use C++ exception handling.
10951 * exec.c: Use C++ exception handling.
10952 * event-top.c: Use C++ exception handling.
10953 * event-loop.c: Use C++ exception handling.
10954 * eval.c: Use C++ exception handling.
10955 * dwarf2read.c: Use C++ exception handling.
10956 * dwarf2loc.c: Use C++ exception handling.
10957 * dwarf2-frame.c: Use C++ exception handling.
10958 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10959 * dwarf-index-write.c: Use C++ exception handling.
10960 * dwarf-index-cache.c: Use C++ exception handling.
10961 * dtrace-probe.c: Use C++ exception handling.
10962 * disasm-selftests.c: Use C++ exception handling.
10963 * darwin-nat.c: Use C++ exception handling.
10964 * cp-valprint.c: Use C++ exception handling.
10965 * cp-support.c: Use C++ exception handling.
10966 * cp-abi.c: Use C++ exception handling.
10967 * corelow.c: Use C++ exception handling.
10968 * completer.c: Use C++ exception handling.
10969 * compile/compile-object-run.c: Use C++ exception handling.
10970 * compile/compile-object-load.c: Use C++ exception handling.
10971 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10972 * compile/compile-c-symbols.c: Use C++ exception handling.
10973 * common/selftest.c: Use C++ exception handling.
10974 * common/new-op.c: Use C++ exception handling.
10975 * cli/cli-script.c: Use C++ exception handling.
10976 * cli/cli-interp.c: Use C++ exception handling.
10977 * cli/cli-cmds.c: Use C++ exception handling.
10978 * c-varobj.c: Use C++ exception handling.
10979 * btrace.c: Use C++ exception handling.
10980 * breakpoint.c: Use C++ exception handling.
10981 * break-catch-throw.c: Use C++ exception handling.
10982 * arch-utils.c: Use C++ exception handling.
10983 * amd64-tdep.c: Use C++ exception handling.
10984 * ada-valprint.c: Use C++ exception handling.
10985 * ada-typeprint.c: Use C++ exception handling.
10986 * ada-lang.c: Use C++ exception handling.
10987 * aarch64-tdep.c: Use C++ exception handling.
10989 2019-04-08 Tom Tromey <tom@tromey.com>
10991 * xml-support.c (gdb_xml_parser::parse): Update.
10992 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10993 * value.c (show_convenience): Update.
10994 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10995 (test_parse_flags_qcs): Update.
10996 * thread.c (thr_try_catch_cmd): Update.
10997 * target.c (target_translate_tls_address): Update.
10998 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10999 (info_frame_command_core, frame_apply_command_count): Update.
11000 * rust-exp.y (rust_lex_exception_test): Update.
11001 * riscv-tdep.c (riscv_print_one_register_info): Update.
11002 * remote.c (remote_target::enable_btrace): Update.
11003 * record-btrace.c (record_btrace_enable_warn): Update.
11004 * python/py-utils.c (gdbpy_convert_exception): Update.
11005 * printcmd.c (do_one_display, print_variable_and_value): Update.
11006 * mi/mi-main.c (mi_print_exception): Update.
11007 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11008 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11009 * linux-nat.c (linux_nat_target::attach): Update.
11010 * linux-fork.c (class scoped_switch_fork_info): Update.
11011 * infrun.c (displaced_step_prepare): Update.
11012 * infcall.c (call_function_by_hand_dummy): Update.
11013 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11014 * gnu-v3-abi.c (print_one_vtable): Update.
11015 * frame.c (get_prev_frame_always): Update.
11016 * f-valprint.c (info_common_command_for_block): Update.
11017 * exec.c (try_open_exec_file): Update.
11018 * exceptions.c (print_exception, exception_print)
11019 (exception_fprintf, exception_print_same): Update.
11020 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11021 * dwarf-index-cache.c (index_cache::store)
11022 (index_cache::lookup_gdb_index): Update.
11023 * darwin-nat.c (maybe_cache_shell): Update.
11024 * cp-valprint.c (cp_print_value_fields): Update.
11025 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11026 (gcc_cplus_symbol_address): Update.
11027 * compile/compile-c-symbols.c (gcc_convert_symbol)
11028 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11029 * common/selftest.c: Update.
11030 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11032 (exception_try_scope_entry, exception_try_scope_exit): Don't
11034 (struct exception_try_scope): Remove.
11035 (TRY): Don't use exception_try_scope.
11036 (struct gdb_exception): Add constructor, operator=.
11037 <what>: New method.
11038 (struct gdb_exception_RETURN_MASK_ALL)
11039 (struct gdb_exception_RETURN_MASK_ERROR)
11040 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11041 (struct gdb_quit_bad_alloc): Update.
11042 * common/common-exceptions.c (exception_none): Change
11044 (struct catcher) <state, exception>: Initialize inline.
11045 <prev>: Remove member.
11046 (current_catcher): Remove.
11047 (catchers): New global.
11048 (exceptions_state_mc_init): Simplify.
11049 (catcher_pop): Remove.
11050 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11051 (try_scope_depth, exception_try_scope_entry)
11052 (exception_try_scope_exit): Remove.
11053 (throw_exception_sjlj): Update.
11054 (exception_messages, exception_messages_size): Remove.
11055 (throw_it): Simplify.
11056 (gdb_exception_sliced_copy): Remove.
11057 (throw_exception_cxx): Update.
11058 * cli/cli-script.c (script_from_file): Update.
11059 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11061 * ada-valprint.c (ada_val_print): Update.
11062 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11063 (create_excep_cond_exprs): Update.
11065 2019-04-08 Tom Tromey <tom@tromey.com>
11067 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11068 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11069 (TRY, CATCH, END_CATCH): Remove some definitions.
11070 * common/common-exceptions.c: Don't use GDB_XCPT.
11071 (catcher_list_size): Remove.
11072 (throw_exception, throw_it): Simplify.
11074 2019-04-05 Tom Tromey <tom@tromey.com>
11076 Revert the header-sorting patch.
11077 * ft32-tdep.c: Revert.
11078 * frv-tdep.c: Revert.
11079 * frv-linux-tdep.c: Revert.
11081 * frame-unwind.c: Revert.
11082 * frame-base.c: Revert.
11083 * fork-child.c: Revert.
11084 * findvar.c: Revert.
11085 * findcmd.c: Revert.
11086 * filesystem.c: Revert.
11087 * filename-seen-cache.h: Revert.
11088 * filename-seen-cache.c: Revert.
11089 * fbsd-tdep.c: Revert.
11090 * fbsd-nat.h: Revert.
11091 * fbsd-nat.c: Revert.
11092 * f-valprint.c: Revert.
11093 * f-typeprint.c: Revert.
11094 * f-lang.c: Revert.
11095 * extension.h: Revert.
11096 * extension.c: Revert.
11097 * extension-priv.h: Revert.
11098 * expprint.c: Revert.
11101 * exceptions.c: Revert.
11102 * event-top.c: Revert.
11103 * event-loop.c: Revert.
11105 * elfread.c: Revert.
11106 * dwarf2read.h: Revert.
11107 * dwarf2read.c: Revert.
11108 * dwarf2loc.c: Revert.
11109 * dwarf2expr.h: Revert.
11110 * dwarf2expr.c: Revert.
11111 * dwarf2-frame.c: Revert.
11112 * dwarf2-frame-tailcall.c: Revert.
11113 * dwarf-index-write.h: Revert.
11114 * dwarf-index-write.c: Revert.
11115 * dwarf-index-common.c: Revert.
11116 * dwarf-index-cache.h: Revert.
11117 * dwarf-index-cache.c: Revert.
11118 * dummy-frame.c: Revert.
11119 * dtrace-probe.c: Revert.
11120 * disasm.h: Revert.
11121 * disasm.c: Revert.
11122 * disasm-selftests.c: Revert.
11123 * dictionary.c: Revert.
11124 * dicos-tdep.c: Revert.
11125 * demangle.c: Revert.
11126 * dcache.h: Revert.
11127 * dcache.c: Revert.
11128 * darwin-nat.h: Revert.
11129 * darwin-nat.c: Revert.
11130 * darwin-nat-info.c: Revert.
11131 * d-valprint.c: Revert.
11132 * d-namespace.c: Revert.
11133 * d-lang.c: Revert.
11135 * csky-tdep.c: Revert.
11136 * csky-linux-tdep.c: Revert.
11137 * cris-tdep.c: Revert.
11138 * cris-linux-tdep.c: Revert.
11139 * cp-valprint.c: Revert.
11140 * cp-support.c: Revert.
11141 * cp-namespace.c: Revert.
11142 * cp-abi.c: Revert.
11143 * corelow.c: Revert.
11144 * corefile.c: Revert.
11145 * continuations.c: Revert.
11146 * completer.h: Revert.
11147 * completer.c: Revert.
11148 * complaints.c: Revert.
11149 * coffread.c: Revert.
11150 * coff-pe-read.c: Revert.
11151 * cli-out.h: Revert.
11152 * cli-out.c: Revert.
11153 * charset.c: Revert.
11154 * c-varobj.c: Revert.
11155 * c-valprint.c: Revert.
11156 * c-typeprint.c: Revert.
11157 * c-lang.c: Revert.
11158 * buildsym.c: Revert.
11159 * buildsym-legacy.c: Revert.
11160 * build-id.h: Revert.
11161 * build-id.c: Revert.
11162 * btrace.c: Revert.
11163 * bsd-uthread.c: Revert.
11164 * breakpoint.h: Revert.
11165 * breakpoint.c: Revert.
11166 * break-catch-throw.c: Revert.
11167 * break-catch-syscall.c: Revert.
11168 * break-catch-sig.c: Revert.
11169 * blockframe.c: Revert.
11171 * bfin-tdep.c: Revert.
11172 * bfin-linux-tdep.c: Revert.
11173 * bfd-target.c: Revert.
11174 * bcache.c: Revert.
11175 * ax-general.c: Revert.
11176 * ax-gdb.h: Revert.
11177 * ax-gdb.c: Revert.
11178 * avr-tdep.c: Revert.
11180 * auto-load.c: Revert.
11181 * arm-wince-tdep.c: Revert.
11182 * arm-tdep.c: Revert.
11183 * arm-symbian-tdep.c: Revert.
11184 * arm-pikeos-tdep.c: Revert.
11185 * arm-obsd-tdep.c: Revert.
11186 * arm-nbsd-tdep.c: Revert.
11187 * arm-nbsd-nat.c: Revert.
11188 * arm-linux-tdep.c: Revert.
11189 * arm-linux-nat.c: Revert.
11190 * arm-fbsd-tdep.c: Revert.
11191 * arm-fbsd-nat.c: Revert.
11192 * arm-bsd-tdep.c: Revert.
11193 * arch-utils.c: Revert.
11194 * arc-tdep.c: Revert.
11195 * arc-newlib-tdep.c: Revert.
11196 * annotate.h: Revert.
11197 * annotate.c: Revert.
11198 * amd64-windows-tdep.c: Revert.
11199 * amd64-windows-nat.c: Revert.
11200 * amd64-tdep.c: Revert.
11201 * amd64-sol2-tdep.c: Revert.
11202 * amd64-obsd-tdep.c: Revert.
11203 * amd64-obsd-nat.c: Revert.
11204 * amd64-nbsd-tdep.c: Revert.
11205 * amd64-nbsd-nat.c: Revert.
11206 * amd64-nat.c: Revert.
11207 * amd64-linux-tdep.c: Revert.
11208 * amd64-linux-nat.c: Revert.
11209 * amd64-fbsd-tdep.c: Revert.
11210 * amd64-fbsd-nat.c: Revert.
11211 * amd64-dicos-tdep.c: Revert.
11212 * amd64-darwin-tdep.c: Revert.
11213 * amd64-bsd-nat.c: Revert.
11214 * alpha-tdep.c: Revert.
11215 * alpha-obsd-tdep.c: Revert.
11216 * alpha-nbsd-tdep.c: Revert.
11217 * alpha-mdebug-tdep.c: Revert.
11218 * alpha-linux-tdep.c: Revert.
11219 * alpha-linux-nat.c: Revert.
11220 * alpha-bsd-tdep.c: Revert.
11221 * alpha-bsd-nat.c: Revert.
11222 * aix-thread.c: Revert.
11224 * addrmap.c: Revert.
11225 * ada-varobj.c: Revert.
11226 * ada-valprint.c: Revert.
11227 * ada-typeprint.c: Revert.
11228 * ada-tasks.c: Revert.
11229 * ada-lang.c: Revert.
11230 * aarch64-tdep.c: Revert.
11231 * aarch64-ravenscar-thread.c: Revert.
11232 * aarch64-newlib-tdep.c: Revert.
11233 * aarch64-linux-tdep.c: Revert.
11234 * aarch64-linux-nat.c: Revert.
11235 * aarch64-fbsd-tdep.c: Revert.
11236 * aarch64-fbsd-nat.c: Revert.
11237 * aarch32-linux-nat.c: Revert.
11239 2019-04-05 Tom Tromey <tom@tromey.com>
11241 * ft32-tdep.c: Sort headers.
11242 * frv-tdep.c: Sort headers.
11243 * frv-linux-tdep.c: Sort headers.
11244 * frame.c: Sort headers.
11245 * frame-unwind.c: Sort headers.
11246 * frame-base.c: Sort headers.
11247 * fork-child.c: Sort headers.
11248 * findvar.c: Sort headers.
11249 * findcmd.c: Sort headers.
11250 * filesystem.c: Sort headers.
11251 * filename-seen-cache.h: Sort headers.
11252 * filename-seen-cache.c: Sort headers.
11253 * fbsd-tdep.c: Sort headers.
11254 * fbsd-nat.h: Sort headers.
11255 * fbsd-nat.c: Sort headers.
11256 * f-valprint.c: Sort headers.
11257 * f-typeprint.c: Sort headers.
11258 * f-lang.c: Sort headers.
11259 * extension.h: Sort headers.
11260 * extension.c: Sort headers.
11261 * extension-priv.h: Sort headers.
11262 * expprint.c: Sort headers.
11263 * exec.h: Sort headers.
11264 * exec.c: Sort headers.
11265 * exceptions.c: Sort headers.
11266 * event-top.c: Sort headers.
11267 * event-loop.c: Sort headers.
11268 * eval.c: Sort headers.
11269 * elfread.c: Sort headers.
11270 * dwarf2read.h: Sort headers.
11271 * dwarf2read.c: Sort headers.
11272 * dwarf2loc.c: Sort headers.
11273 * dwarf2expr.h: Sort headers.
11274 * dwarf2expr.c: Sort headers.
11275 * dwarf2-frame.c: Sort headers.
11276 * dwarf2-frame-tailcall.c: Sort headers.
11277 * dwarf-index-write.h: Sort headers.
11278 * dwarf-index-write.c: Sort headers.
11279 * dwarf-index-common.c: Sort headers.
11280 * dwarf-index-cache.h: Sort headers.
11281 * dwarf-index-cache.c: Sort headers.
11282 * dummy-frame.c: Sort headers.
11283 * dtrace-probe.c: Sort headers.
11284 * disasm.h: Sort headers.
11285 * disasm.c: Sort headers.
11286 * disasm-selftests.c: Sort headers.
11287 * dictionary.c: Sort headers.
11288 * dicos-tdep.c: Sort headers.
11289 * demangle.c: Sort headers.
11290 * dcache.h: Sort headers.
11291 * dcache.c: Sort headers.
11292 * darwin-nat.h: Sort headers.
11293 * darwin-nat.c: Sort headers.
11294 * darwin-nat-info.c: Sort headers.
11295 * d-valprint.c: Sort headers.
11296 * d-namespace.c: Sort headers.
11297 * d-lang.c: Sort headers.
11298 * ctf.c: Sort headers.
11299 * csky-tdep.c: Sort headers.
11300 * csky-linux-tdep.c: Sort headers.
11301 * cris-tdep.c: Sort headers.
11302 * cris-linux-tdep.c: Sort headers.
11303 * cp-valprint.c: Sort headers.
11304 * cp-support.c: Sort headers.
11305 * cp-namespace.c: Sort headers.
11306 * cp-abi.c: Sort headers.
11307 * corelow.c: Sort headers.
11308 * corefile.c: Sort headers.
11309 * continuations.c: Sort headers.
11310 * completer.h: Sort headers.
11311 * completer.c: Sort headers.
11312 * complaints.c: Sort headers.
11313 * coffread.c: Sort headers.
11314 * coff-pe-read.c: Sort headers.
11315 * cli-out.h: Sort headers.
11316 * cli-out.c: Sort headers.
11317 * charset.c: Sort headers.
11318 * c-varobj.c: Sort headers.
11319 * c-valprint.c: Sort headers.
11320 * c-typeprint.c: Sort headers.
11321 * c-lang.c: Sort headers.
11322 * buildsym.c: Sort headers.
11323 * buildsym-legacy.c: Sort headers.
11324 * build-id.h: Sort headers.
11325 * build-id.c: Sort headers.
11326 * btrace.c: Sort headers.
11327 * bsd-uthread.c: Sort headers.
11328 * breakpoint.h: Sort headers.
11329 * breakpoint.c: Sort headers.
11330 * break-catch-throw.c: Sort headers.
11331 * break-catch-syscall.c: Sort headers.
11332 * break-catch-sig.c: Sort headers.
11333 * blockframe.c: Sort headers.
11334 * block.c: Sort headers.
11335 * bfin-tdep.c: Sort headers.
11336 * bfin-linux-tdep.c: Sort headers.
11337 * bfd-target.c: Sort headers.
11338 * bcache.c: Sort headers.
11339 * ax-general.c: Sort headers.
11340 * ax-gdb.h: Sort headers.
11341 * ax-gdb.c: Sort headers.
11342 * avr-tdep.c: Sort headers.
11343 * auxv.c: Sort headers.
11344 * auto-load.c: Sort headers.
11345 * arm-wince-tdep.c: Sort headers.
11346 * arm-tdep.c: Sort headers.
11347 * arm-symbian-tdep.c: Sort headers.
11348 * arm-pikeos-tdep.c: Sort headers.
11349 * arm-obsd-tdep.c: Sort headers.
11350 * arm-nbsd-tdep.c: Sort headers.
11351 * arm-nbsd-nat.c: Sort headers.
11352 * arm-linux-tdep.c: Sort headers.
11353 * arm-linux-nat.c: Sort headers.
11354 * arm-fbsd-tdep.c: Sort headers.
11355 * arm-fbsd-nat.c: Sort headers.
11356 * arm-bsd-tdep.c: Sort headers.
11357 * arch-utils.c: Sort headers.
11358 * arc-tdep.c: Sort headers.
11359 * arc-newlib-tdep.c: Sort headers.
11360 * annotate.h: Sort headers.
11361 * annotate.c: Sort headers.
11362 * amd64-windows-tdep.c: Sort headers.
11363 * amd64-windows-nat.c: Sort headers.
11364 * amd64-tdep.c: Sort headers.
11365 * amd64-sol2-tdep.c: Sort headers.
11366 * amd64-obsd-tdep.c: Sort headers.
11367 * amd64-obsd-nat.c: Sort headers.
11368 * amd64-nbsd-tdep.c: Sort headers.
11369 * amd64-nbsd-nat.c: Sort headers.
11370 * amd64-nat.c: Sort headers.
11371 * amd64-linux-tdep.c: Sort headers.
11372 * amd64-linux-nat.c: Sort headers.
11373 * amd64-fbsd-tdep.c: Sort headers.
11374 * amd64-fbsd-nat.c: Sort headers.
11375 * amd64-dicos-tdep.c: Sort headers.
11376 * amd64-darwin-tdep.c: Sort headers.
11377 * amd64-bsd-nat.c: Sort headers.
11378 * alpha-tdep.c: Sort headers.
11379 * alpha-obsd-tdep.c: Sort headers.
11380 * alpha-nbsd-tdep.c: Sort headers.
11381 * alpha-mdebug-tdep.c: Sort headers.
11382 * alpha-linux-tdep.c: Sort headers.
11383 * alpha-linux-nat.c: Sort headers.
11384 * alpha-bsd-tdep.c: Sort headers.
11385 * alpha-bsd-nat.c: Sort headers.
11386 * aix-thread.c: Sort headers.
11387 * agent.c: Sort headers.
11388 * addrmap.c: Sort headers.
11389 * ada-varobj.c: Sort headers.
11390 * ada-valprint.c: Sort headers.
11391 * ada-typeprint.c: Sort headers.
11392 * ada-tasks.c: Sort headers.
11393 * ada-lang.c: Sort headers.
11394 * aarch64-tdep.c: Sort headers.
11395 * aarch64-ravenscar-thread.c: Sort headers.
11396 * aarch64-newlib-tdep.c: Sort headers.
11397 * aarch64-linux-tdep.c: Sort headers.
11398 * aarch64-linux-nat.c: Sort headers.
11399 * aarch64-fbsd-tdep.c: Sort headers.
11400 * aarch64-fbsd-nat.c: Sort headers.
11401 * aarch32-linux-nat.c: Sort headers.
11403 2019-04-04 Tom Tromey <tom@tromey.com>
11405 * varobj.c (varobj_create): Update.
11406 * rust-exp.y (struct rust_parser) <update_innermost_block,
11407 lookup_symbol>: New methods.
11408 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11410 (rust_parser::rust_lookup_type)
11411 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11412 * printcmd.c (display_command, do_one_display): Update.
11413 * parser-defs.h (struct parser_state) <parser_state>: Add
11414 "tracker" parameter.
11415 (block_tracker): New member.
11416 (class innermost_block_tracker) <innermost_block_tracker>: Add
11418 <reset>: Remove method.
11419 (innermost_block): Don't declare.
11420 (null_post_parser): Update.
11421 * parse.c (innermost_block): Remove global.
11422 (write_dollar_variable): Update.
11423 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11424 Remove "tracker_types" parameter.
11425 (parse_expression): Add "tracker" parameter.
11426 (parse_expression_for_completion): Update.
11427 (null_post_parser): Add "tracker" parameter.
11428 * p-exp.y: Update rules.
11429 * m2-exp.y: Update rules.
11430 * language.h (struct language_defn) <la_post_parser>: Add
11431 "tracker" parameter.
11432 * go-exp.y: Update rules.
11433 * f-exp.y: Update rules.
11434 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11436 * d-exp.y: Update rules.
11437 * c-exp.y: Update rules.
11438 * breakpoint.c (set_breakpoint_condition): Create an
11439 innermost_block_tracker.
11440 (watch_command_1): Likewise.
11441 * ada-lang.c (resolve): Add "tracker" parameter.
11442 (resolve_subexp): Likewise.
11443 * ada-exp.y (write_var_from_sym): Update.
11445 2019-04-04 Tom Tromey <tom@tromey.com>
11447 * type-stack.h: New file.
11448 * type-stack.c: New file.
11449 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11451 (insert_into_type_stack, insert_type, push_type, push_type_int)
11452 (insert_type_address_space, pop_type, pop_type_int)
11453 (pop_typelist, pop_type_stack, append_type_stack)
11454 (push_type_stack, get_type_stack, push_typelist)
11455 (follow_type_instance_flags, follow_types): Don't declare.
11456 * parse.c (type_stack): Remove global.
11457 (parse_exp_in_context): Update.
11458 (insert_into_type_stack, insert_type, push_type, push_type_int)
11459 (insert_type_address_space, pop_type, pop_type_int)
11460 (pop_typelist, pop_type_stack, append_type_stack)
11461 (push_type_stack, get_type_stack, push_typelist)
11462 (follow_type_instance_flags, follow_types): Remove (moved to
11464 * f-exp.y (type_stack): New global.
11466 (push_kind_type, f_parse): Update.
11467 * d-exp.y (type_stack): New global.
11470 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11472 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11473 (HFILES_NO_SRCDIR): Add type-stack.h.
11475 2019-04-04 Tom Tromey <tom@tromey.com>
11477 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11478 (rust_parser::convert_ast_to_expression, rust_parse)
11479 (rust_lex_test_completion, rust_lex_tests): Update.
11480 * parser-defs.h (struct expr_completion_state): New.
11481 (struct parser_state) <parser_state>: Add completion parameter.
11482 <mark_struct_expression, mark_completion_tag>: New methods.
11483 <parse_completion, m_completion_state>: New members.
11484 (prefixify_expression, null_post_parser): Update.
11485 (mark_struct_expression, mark_completion_tag): Don't declare.
11486 * parse.c (parse_completion, expout_last_struct)
11487 (expout_tag_completion_type, expout_completion_name): Remove
11489 (parser_state::mark_struct_expression)
11490 (parser_state::mark_completion_tag): Now methods.
11491 (prefixify_expression): Add last_struct parameter.
11492 (prefixify_subexp): Likewise.
11493 (parse_exp_1): Update.
11494 (parse_exp_in_context): Add cstate parameter. Update.
11495 (parse_expression_for_completion): Create an
11496 expr_completion_state.
11497 (null_post_parser): Add "completion" parameter.
11498 * p-exp.y: Update rules.
11500 * language.h (struct language_defn) <la_post_parser>: Add
11501 "completing" parameter.
11502 * go-exp.y: Update rules.
11503 (lex_one_token): Update.
11504 * expression.h (parse_completion): Don't declare.
11505 * d-exp.y: Update rules.
11506 (lex_one_token): Update rules.
11507 * c-exp.y: Update rules.
11508 (lex_one_token): Update.
11509 * ada-lang.c (resolve): Add "parse_completion" parameter.
11510 (resolve_subexp): Likewise.
11511 (ada_resolve_function): Likewise.
11513 2019-04-04 Tom Tromey <tom@tromey.com>
11515 * parser-defs.h (struct parser_state) <start_arglist,
11516 end_arglist>: New methods.
11517 <arglist_len, m_funcall_chain>: New members.
11518 (arglist_len, start_arglist, end_arglist): Don't declare.
11519 * parse.c (arglist_len, funcall_chain): Remove global.
11520 (start_arglist, end_arglist): Remove functions.
11521 (parse_exp_in_context): Update.
11522 * p-exp.y: Update rules.
11523 * m2-exp.y: Update rules.
11524 * go-exp.y: Update rules.
11525 * f-exp.y: Update rules.
11526 * d-exp.y: Update rules.
11527 * c-exp.y: Update rules.
11529 2019-04-04 Tom Tromey <tom@tromey.com>
11531 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11532 lex_operator, push_back>: New methods.
11534 (rust_parser::lex_hex, lex_escape): Rename and update.
11535 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11536 (rust_parser::lex_operator): Rename and update.
11537 (rust_parser::lex_number, rustyylex, rustyyerror)
11538 (rust_lex_test_init, rust_lex_test_sequence)
11539 (rust_lex_test_push_back, rust_lex_tests): Update.
11540 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11542 <lexptr, prev_lexptr>: New members.
11543 (lexptr, prev_lexptr): Don't declare.
11544 * parse.c (lexptr, prev_lexptr): Remove globals.
11545 (parse_exp_in_context): Update.
11546 * p-exp.y (yylex, yyerror): Update.
11547 * m2-exp.y (parse_number, yylex, yyerror): Update.
11548 * go-exp.y (lex_one_token, yyerror): Update.
11549 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11550 * d-exp.y (lex_one_token, yyerror): Update.
11551 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11552 (lex_one_token, yyerror): Update.
11553 * ada-lex.l (YY_INPUT): Update.
11554 (rewind_to_char): Update.
11555 * ada-exp.y (yyerror): Update.
11557 2019-04-04 Tom Tromey <tom@tromey.com>
11559 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11560 * parser-defs.h (struct parser_state) <parser_state>: Add new
11562 <comma_terminates>: New member.
11563 (comma_terminates): Don't declare global.
11564 * parse.c (comma_terminates): Remove global.
11565 (parse_exp_in_context): Update.
11566 * p-exp.y (yylex): Update.
11567 * m2-exp.y (yylex): Update.
11568 * go-exp.y (lex_one_token): Update.
11569 * f-exp.y (yylex): Update.
11570 * d-exp.y (lex_one_token): Update.
11571 * c-exp.y (lex_one_token): Update.
11572 * ada-lex.l: Update.
11574 2019-04-04 Tom Tromey <tom@tromey.com>
11576 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11577 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11578 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11579 * parser-defs.h (paren_depth): Don't declare.
11580 * parse.c (paren_depth): Remove global.
11581 (parse_exp_in_context): Update.
11582 * p-exp.y (paren_depth): New global.
11583 (pascal_parse): Initialize it.
11584 * m2-exp.y (paren_depth): New global.
11585 (m2_parse): Initialize it.
11586 * go-exp.y (paren_depth): New global.
11587 (go_parse): Initialize it.
11588 * f-exp.y (paren_depth): New global.
11589 (f_parse): Initialize it.
11590 * d-exp.y (paren_depth): New global.
11591 (d_parse): Initialize it.
11592 * c-exp.y (paren_depth): New global.
11593 (c_parse): Initialize it.
11594 * ada-lex.l (paren_depth): New global.
11595 (lexer_init): Initialize it.
11597 2019-04-04 Tom Tromey <tom@tromey.com>
11599 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11600 (rust_parser::convert_ast_to_type)
11601 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11602 * parser-defs.h (struct parser_state) <parser_state>: Add
11603 parameters. Initialize new members.
11604 <expression_context_block, expression_context_pc>: New members.
11605 * parse.c (expression_context_block, expression_context_pc):
11607 (parse_exp_in_context): Update.
11608 * p-exp.y: Update all rules.
11610 * m2-exp.y: Update all rules.
11612 * go-exp.y (yylex): Update.
11613 * f-exp.y (yylex): Update.
11614 * d-exp.y: Update all rules.
11616 * c-exp.y: Update all rules.
11617 (lex_one_token, classify_name, yylex, c_parse): Update.
11618 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11620 2019-04-04 Tom Tromey <tom@tromey.com>
11622 * gdbarch.h, gdbarch.c: Rebuild.
11623 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11625 (struct stap_parse_info): Replace "parser_state" with
11627 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11628 (parser_state): New class.
11629 * parse.c (expr_builder): Rename.
11630 (expr_builder::release): Rename.
11631 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11632 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11633 (write_exp_elt_longcst, write_exp_elt_floatcst)
11634 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11635 (write_exp_string_vector, write_exp_bitstring)
11636 (write_exp_msymbol, mark_struct_expression)
11637 (write_dollar_variable)
11638 (insert_type_address_space, increase_expout_size): Replace
11639 "parser_state" with "expr_builder".
11640 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11641 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11642 "parser_state" with "expr_builder".
11644 2019-04-04 Tom Tromey <tom@tromey.com>
11646 * rust-exp.y: Replace "parse_language" with method call.
11648 (yylex): Replace "parse_language" with method call.
11650 (yylex): Replace "parse_language" with method call.
11651 * go-exp.y (classify_name): Replace "parse_language" with method
11653 * f-exp.y (yylex): Replace "parse_language" with method call.
11654 * d-exp.y (lex_one_token): Replace "parse_language" with method
11657 (lex_one_token, classify_name, yylex): Replace "parse_language"
11659 * ada-exp.y (find_primitive_type, type_char)
11660 (type_system_address): Replace "parse_language" with method call.
11662 2019-04-04 Tom Tromey <tom@tromey.com>
11664 * rust-exp.y: Replace "parse_gdbarch" with method call.
11665 * parse.c (write_dollar_variable, insert_type_address_space):
11666 Replace "parse_gdbarch" with method call.
11667 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11669 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11671 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11672 "parse_gdbarch" with method call.
11673 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11675 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11676 "parse_gdbarch" with method call.
11677 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11678 "parse_gdbarch" with method call.
11679 * c-exp.y (parse_type, parse_number, classify_name): Replace
11680 "parse_gdbarch" with method call.
11681 * ada-lex.l: Replace "parse_gdbarch" with method call.
11682 * ada-exp.y (parse_type, find_primitive_type, type_char)
11683 (type_system_address): Replace "parse_gdbarch" with method call.
11685 2019-04-04 Tom Tromey <tom@tromey.com>
11687 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11688 * stap-probe.c (stap_parse_argument): Update.
11689 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11690 initial_size parameter.
11691 * rust-exp.y (rust_lex_tests): Update.
11692 * parse.c (parser_state): Update.
11693 (parse_exp_in_context): Update.
11694 * parser-defs.h (struct parser_state) <parser_state>: Remove
11695 "initial_size" parameter.
11697 2019-04-04 Tom Tromey <tom@tromey.com>
11699 * parser-defs.h (increase_expout_size): Don't declare.
11700 * parse.c (increase_expout_size): Now static.
11702 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11704 * gnu-nat.c (gnu_nat_target::wait): Fix
11705 target_waitstatus_to_string call.
11707 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11709 * eval.c (evaluate_subexp_standard): Handle internal functions
11710 during Fortran function call handling.
11712 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11714 * NEWS: Mention new internal functions.
11715 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11716 (read_base_type): Use dwarf2_init_complex_target_type.
11717 * value.c (creal_internal_fn): New function.
11718 (cimag_internal_fn): New function.
11719 (_initialize_values): Register new internal functions.
11721 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11723 * infrun.c (stop_all_threads): If debug_infrun, always
11724 trace the wait status after wait_one, using
11725 target_waitstatus_to_string and target_pid_to_str.
11726 (handle_inferior_event): Replace various trace of
11727 wait status kind by a single trace.
11728 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11729 wait status kind image by target_waitstatus_to_string.
11730 * target/waitstatus.c (target_waitstatus_to_string): Fix
11733 2019-04-01 Tom Tromey <tromey@adacore.com>
11736 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11738 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11739 Pedro Alves <palves@redhat.com>
11741 * top.c (quit_force): Call 'finalize_values'.
11742 * value.c (finalize_values): New function.
11743 * value.h (finalize_values): Declare.
11745 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11747 * NEWS: Announce $_gdb_major and $_gdb_minor.
11749 * top.c (init_gdb_version_vars): New function.
11750 (gdb_init): Call init_gdb_version_vars.
11752 2019-03-29 Tom Tromey <tromey@adacore.com>
11754 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11755 help text. Remove dead code.
11757 2019-03-29 Keith Seitz <keiths@redhat.com>
11759 From Siddhesh Poyarekar:
11760 * f-lang.h (f77_get_upperbound): Return LONGEST.
11761 (f77_get_lowerbound): Likewise.
11762 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11763 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11765 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11766 plongest to format print it.
11767 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11768 (f77_get_upperbound): Likewise.
11769 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11770 LOWER_BOUND to LONGEST.
11771 (f77_create_arrayprint_offset_tbl): Likewise.
11773 2019-03-29 Keith Seitz <keiths@redhat.com>
11775 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11776 %s/pulongest for TYPE_LENGTH instead of %d in format
11778 * ada-typerint.c (ada_print_type): Likewise.
11779 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11780 * compile/compile-c-support.c (generate_register_struct): Likewise.
11781 * gdbtypes.c (recursive_dump_type): Likewise.
11782 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11783 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11784 instead of %d in format strings.
11785 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11786 to std::min to ULONGEST.
11787 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11788 instead of %d in format strings.
11789 * tracepoint.c (info_scope_command): Likewise.
11790 * typeprint.c (print_offset_data::update)
11791 (print_offset_data::finish): Likewise.
11792 * xtensa-tdep.c (xtensa_store_return_value)
11793 (xtensa_push_dummy_call): Likewise.
11795 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11797 * windows-nat.c (display_selector): Fixed format specifications
11800 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11802 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11804 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11806 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11807 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11808 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11809 (nios2_linux_init_abi): Install it.
11811 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11813 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11815 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11817 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11819 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11820 Tom Tromey <tromey@adacore.com>
11822 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11824 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11826 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11827 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11828 method to compute the bounds of range types. Also print "[evaluated]"
11829 if the bounds' values come from a dynamic evaluation.
11831 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11833 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11834 whitespace when pretty printing is on.
11836 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11838 * ppc-linux-nat.c: Add include.
11840 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11842 * NEWS: Mention AArch64 Pointer Authentication.
11844 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11846 * arm-linux-nat.c: Add include.
11848 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11850 * source-cache.c (source_cache::get_source_lines): Re-read
11851 fullname after calling open_source_file.
11853 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11855 * NEWS: Mention TLS support for FreeBSD.
11857 2019-03-25 Tom Tromey <tromey@adacore.com>
11859 * minsyms.c (BUNCH_SIZE): Update comment.
11860 (~minimal_symbol_reader): Remove old comment.
11861 (compact_minimal_symbols): Update comment.
11862 (minimal_symbol_reader::install): Remove old comment. Update
11865 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11867 * s390-linux-nat.c: Add include.
11869 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11871 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11872 Call linux_get_hwcap.
11873 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11875 (aarch64_linux_get_hwcap): Remove function.
11876 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11878 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11880 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11881 * linux-tdep.c (linux_get_hwcap): Add function.
11882 (linux_get_hwcap2): Likewise.
11883 * linux-tdep.h (linux_get_hwcap): Add declaration.
11884 (linux_get_hwcap2): Likewise.
11885 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11886 (ppc_linux_get_hwcap2): Likewise.
11887 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11889 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11890 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11891 (ppc_linux_nat_target::read_description): Likewise.
11892 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11893 * s390-linux-nat.c: Likewise.
11894 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11896 2019-03-24 Tom Tromey <tom@tromey.com>
11898 * ada-lang.c (standard_lookup): Simplify initialization.
11899 (ada_lookup_symbol_nonlocal): Simplify return.
11900 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11901 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11902 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11903 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11905 * solib.c (solib_global_lookup): Simplify.
11906 * symtab.c (null_block_symbol): Remove.
11907 (symbol_cache_lookup): Simplify returns.
11908 (lookup_language_this): Simplify returns.
11909 (lookup_symbol_aux): Simplify return.
11910 (lookup_local_symbol): Simplify returns.
11911 (lookup_global_symbol_from_objfile): Simplify return.
11912 (lookup_symbol_in_objfile_symtabs)
11913 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11914 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11915 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11916 * cp-namespace.c (cp_lookup_bare_symbol)
11917 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11918 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11919 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11920 (cp_lookup_symbol_via_imports): Simplify initialization.
11921 (find_symbol_in_baseclass): Likewise.
11922 * symtab.h (null_block_symbol): Remove.
11923 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11924 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11925 (d_lookup_symbol_module): Likewise.
11926 (find_symbol_in_baseclass): Simplify initialization.
11928 2019-03-24 Tom Tromey <tom@tromey.com>
11930 * expression.h: Don't include symtab.h.
11931 (struct block): Forward declare.
11933 2019-03-24 Tom Tromey <tom@tromey.com>
11935 * c-exp.y (typebase): Remove casts.
11936 * gdbtypes.c (lookup_unsigned_typename, )
11937 (lookup_signed_typename): Remove cast.
11938 * eval.c (parse_to_comma_and_eval): Remove cast.
11939 * parse.c (write_dollar_variable): Remove cast.
11940 * block.h (struct block) <superblock>: Now const.
11941 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11942 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11943 (map_block): Make "block" const.
11944 * symfile.h (struct quick_symbol_functions)
11945 <map_matching_symbols>: Constify block argument to "callback".
11946 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11948 (find_pc_sect_compunit_symtab): Make "b" const.
11949 (find_symbol_at_address): Likewise.
11950 (search_symbols): Likewise.
11951 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11952 (dw2_debug_names_lookup_symbol): Likewise.
11953 (dw2_map_matching_symbols): Update.
11954 * p-valprint.c (pascal_val_print): Remove "block".
11955 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11956 (aux_add_nonlocal_symbols): Make "block" const.
11957 (resolve_subexp): Remove cast.
11958 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11960 (iterate_over_file_blocks): Likewise.
11961 * f-exp.y (%union) <bval>: Remove.
11962 * coffread.c (patch_opaque_types): Make "b" const.
11963 * spu-tdep.c (spu_catch_start): Make "block" const.
11964 * c-valprint.c (print_unpacked_pointer): Remove "block".
11965 * symmisc.c (dump_symtab_1): Make "b" const.
11966 (block_depth): Make "block" const.
11967 * d-exp.y (%union) <bval>: Remove.
11968 * cp-support.h (cp_lookup_rtti_type): Update.
11969 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11970 * psymtab.c (psym_lookup_symbol): Make "block" const.
11971 (maintenance_check_psymtabs): Make "b" const.
11972 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11973 (enumerate_locals, enumerate_args): Update.
11974 * python/py-symtab.c (stpy_global_block): Make "block" const.
11975 (stpy_static_block): Likewise.
11976 * inline-frame.c (block_starting_point_at): Make "new_block"
11978 * block.c (find_block_in_blockvector): Make return type const.
11979 (blockvector_for_pc_sect): Make "b" const.
11980 (find_block_in_blockvector): Make "b" const.
11982 2019-03-23 Tom Tromey <tom@tromey.com>
11984 * varobj.c (varobj_create): Update.
11985 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11986 * printcmd.c (display_command, do_one_display): Don't reset
11988 * parser-defs.h (enum innermost_block_tracker_type): Move to
11990 (innermost_block): Update comment.
11991 * parse.c (parse_exp_1): Add tracker_types parameter.
11992 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11993 tracker_types parameter. Reset innermost_block.
11994 (parse_exp_in_context): Remove.
11995 (parse_expression_for_completion): Update.
11996 * objfiles.c (~objfile): Don't reset expression_context_block or
11998 * expression.h (enum innermost_block_tracker_type): Move from
12000 (parse_exp_1): Add tracker_types parameter.
12001 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12002 reset innermost_block.
12004 2019-03-23 Tom Tromey <tom@tromey.com>
12006 * objfiles.h: Include bcache.h.
12008 2019-03-23 Tom Tromey <tom@tromey.com>
12010 * linespec.c (get_current_search_block): Use
12011 scoped_restore_current_language.
12012 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12014 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12015 Jiong Wang <jiong.wang@arm.com>
12017 * aarch64-linux-tdep.c
12018 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12020 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12022 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12023 Jiong Wang <jiong.wang@arm.com>
12025 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12027 (aarch64_analyze_prologue_test): Add PACIASP test.
12028 (aarch64_prologue_prev_register): Unmask PC value.
12030 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12031 Jiong Wang <jiong.wang@arm.com>
12033 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12034 (aarch64_dwarf2_prev_register): Unmask PC value.
12035 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12036 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12037 DW_CFA_AARCH64_negate_ra_state.
12038 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12040 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12041 Jiong Wang <jiong.wang@arm.com>
12043 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12045 (aarch64_pseudo_register_name): Likewise.
12046 (aarch64_pseudo_register_type): Likewise.
12047 (aarch64_pseudo_register_reggroup_p): Likewise.
12048 (aarch64_gdbarch_init): Add pauth registers.
12049 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12050 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12051 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12052 (struct gdbarch_tdep): Add regnum for ra_state.
12054 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12055 Jiong Wang <jiong.wang@arm.com>
12057 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12059 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12060 Jiong Wang <jiong.wang@arm.com>
12062 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12064 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12065 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12066 (aarch64_gdbarch_init): Add puth registers.
12067 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12068 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12069 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12071 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12072 Jiong Wang <jiong.wang@arm.com>
12074 * aarch64-linux-nat.c
12075 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12076 * aarch64-linux-tdep.c
12077 (aarch64_linux_core_read_description): Likewise.
12078 (aarch64_linux_get_hwcap): New function.
12079 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12080 (aarch64_linux_get_hwcap): New declaration.
12082 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12083 Jiong Wang <jiong.wang@arm.com>
12085 * aarch64-linux-nat.c
12086 (aarch64_linux_nat_target::read_description): Add pauth param.
12087 * aarch64-linux-tdep.c
12088 (aarch64_linux_core_read_description): Likewise.
12089 * aarch64-tdep.c (struct target_desc): Add in pauth.
12090 (aarch64_read_description): Add pauth param.
12091 (aarch64_gdbarch_init): Likewise.
12092 * aarch64-tdep.h (aarch64_read_description): Likewise.
12093 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12094 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12095 * features/Makefile: Add new files.
12096 * features/aarch64-pauth.c: New file.
12097 * features/aarch64-pauth.xml: New file.
12099 2019-03-20 Tom Tromey <tromey@adacore.com>
12101 * infrun.c (handle_inferior_event): Rename from
12102 handle_inferior_event_1. Create a scoped_value_mark.
12103 (handle_inferior_event): Remove.
12105 2019-03-19 Tom Tromey <tromey@adacore.com>
12107 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12108 * infrun.h (print_stop_event): Add "displays" parameter.
12109 * infrun.c (print_stop_event): Add "displays" parameter.
12111 2019-03-19 Pedro Alves <palves@redhat.com>
12113 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12114 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12115 to -1. Fix TABs vs spaces.
12116 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12117 * tui/tui-out.h (tui_ui_out) Add intro comments.
12118 <m_line, m_start_of_line>: In-class initialize, and add describing
12121 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12123 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12125 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12127 2019-03-18 Pedro Alves <palves@redhat.com>
12128 Eli Zaretskii <eliz@gnu.org>
12130 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12131 m_line and m_start_of_line.
12133 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12135 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12136 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12137 it returns a newline. This fixes a regression in TU mode, whereby
12138 the next line is output on the same screen line as the user input.
12140 2019-03-18 Tom Tromey <tromey@adacore.com>
12142 * minsyms.c (minimal_symbol_reader::install): Remove call to
12145 2019-03-18 Pedro Alves <palves@redhat.com>
12147 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12149 (apply_style): New, factored out from ...
12150 (apply_ansi_escape): ... this. Handle reverse video mode.
12151 (tui_set_reverse_mode): New function.
12152 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12153 * tui/tui-winsource.c (tui_show_source_line): Use
12154 tui_set_reverse_mode instead of setting A_STANDOUT.
12155 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12156 New setter methods.
12158 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12160 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12163 2019-03-18 Tom Tromey <tromey@adacore.com>
12165 * ada-lang.c (empty_array): Add "high" parameter.
12166 (ada_evaluate_subexp): Update.
12168 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12170 * unittests/string_view-selftests.c: Define
12171 _initialize_string_view_selftests unconditionally.
12173 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12176 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12178 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12181 * windows-nat.c (display_selector): Fix format specifiers.
12183 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12185 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12186 tui_refill_source_window instead of tui_refresh_win, to update the
12187 current execution line. This fixes redisplay of the current line
12188 when stepping through the code with "next" or "step".
12190 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12192 * source-cache.c (source_cache::get_source_lines): Call
12193 find_source_lines to initialize s->nlines. This fixes vertical
12194 scrolling of TUI source window when the DOWN arrow is pressed.
12196 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12198 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12199 linux-thread-db.c (_initialize_thread_db): Likewise.
12201 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12203 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12204 wclrtoeol in tui_show_source_line". This reverts changes made in
12205 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12207 2019-03-15 Tom Tromey <tom@tromey.com>
12209 * symtab.h (struct minimal_symbol): Derive from
12210 general_symbol_info.
12211 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12212 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12213 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12214 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12215 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12216 (MSYMBOL_SEARCH_NAME): Update.
12217 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12218 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12219 * minsyms.c (minimal_symbol_reader::record_full): Update.
12221 2019-03-15 Tom Tromey <tom@tromey.com>
12223 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12225 2019-03-15 Tom Tromey <tom@tromey.com>
12227 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12228 unique_xmalloc_ptr.
12229 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12231 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12232 (build_minimal_symbol_hash_tables)
12233 (minimal_symbol_reader::install): Update.
12235 2019-03-15 Tom Tromey <tom@tromey.com>
12237 * symtab.c (create_demangled_names_hash): Update.
12238 (symbol_set_names): Update.
12239 * objfiles.h (struct objfile_per_bfd_storage)
12240 <demangled_names_hash>: Now an htab_up.
12241 * objfiles.c (objfile_per_bfd_storage): Simplify.
12243 2019-03-15 Tom Tromey <tom@tromey.com>
12245 * objfiles.h (struct objfile_per_bfd_storage): Declare
12247 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12249 (get_objfile_bfd_data): Use new. Don't initialize
12251 (free_objfile_per_bfd_storage): Remove.
12252 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12254 2019-03-15 Tom Tromey <tom@tromey.com>
12256 * symfile.c (reread_symbols): Update.
12257 * objfiles.c (objfile::objfile): Update.
12258 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12259 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12261 (minimal_symbol_reader::install): Update.
12262 (terminate_minimal_symbol_table): Remove.
12263 * jit.c (jit_object_close_impl): Update.
12265 2019-03-15 Tom Tromey <tom@tromey.com>
12267 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12270 2019-03-15 Tom Tromey <tom@tromey.com>
12272 * objfiles.h (struct objfile_per_bfd_storage)
12273 <demangled_hash_languages>: Now a bitset.
12274 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12275 (lookup_minimal_symbol): Update.
12277 2019-03-15 Tom Tromey <tom@tromey.com>
12279 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12280 Don't return the symbol.
12281 * coffread.c (record_minimal_symbol): Use record_full.
12283 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12285 The MS-Windows port of ncurses fails to switch to a color pair if
12286 one or both of the colors are the implicit default colors. This
12287 change records the default colors when TUI is initialized, and
12288 then specifies them explicitly when a color pair uses the default
12289 colors. This allows color styling in TUI mode on MS-Windows.
12291 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12293 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12294 colors in ncurses_norm_attr.
12295 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12296 "none", replace it with the default color recorded in
12299 2019-03-14 Tom Tromey <tromey@adacore.com>
12301 * source-cache.h (class source_cache) <get_source_lines>: Return
12303 * source-cache.c (source_cache::extract_lines): Handle case where
12304 first_pos==npos. Return std::string.
12305 (source_cache::get_source_lines): Update.
12307 2019-03-14 Tom Tromey <tromey@adacore.com>
12309 * NEWS: Add item for "style sources" commands.
12310 * source-cache.c (source_cache::get_source_lines): Check
12312 * cli/cli-style.c (source_styling): New global.
12313 (_initialize_cli_style): Add "style sources" commands.
12314 (show_style_sources): New function.
12315 * cli/cli-style.h (source_styling): Declare.
12317 2019-03-14 Pedro Alves <palves@redhat.com>
12318 Tom Tromey <tromey@adacore.com>
12320 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12321 * tui/tui-winsource.c (tui_refill_source_window): New function,
12323 (tui_horizontal_source_scroll): ... here. Move some logic.
12324 * cli/cli-style.c (set_style_enabled): Notify new observable.
12325 * tui/tui-hooks.c (tui_redisplay_source): New function.
12326 (tui_attach_detach_observers): Attach or detach
12327 tui_redisplay_source.
12328 * observable.h (source_styling_changed): New observable.
12329 * observable.c: Define source_styling_changed observable.
12331 2019-03-13 Tom Tromey <tromey@adacore.com>
12333 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12334 (i386_gnu_nat_target::store_registers): Update.
12335 * target-debug.h (target_debug_print_std_string): New macro.
12336 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12337 * windows-tdep.c (display_one_tib): Update.
12338 * tui/tui-stack.c (tui_make_status_line): Update.
12339 * top.c (print_inferior_quit_action): Update.
12340 * thread.c (thr_try_catch_cmd): Update.
12341 (add_thread_with_info): Update.
12342 (thread_target_id_str): Update.
12343 (thr_try_catch_cmd): Update.
12344 (thread_command): Update.
12345 (thread_find_command): Update.
12346 * record-btrace.c (record_btrace_target::info_record)
12347 (record_btrace_resume_thread, record_btrace_target::resume)
12348 (record_btrace_cancel_resume, record_btrace_step_thread)
12349 (record_btrace_target::wait, record_btrace_target::wait)
12350 (record_btrace_target::wait, record_btrace_target::stop): Update.
12351 * progspace.c (print_program_space): Update.
12352 * process-stratum-target.c
12353 (process_stratum_target::thread_address_space): Update.
12354 * linux-fork.c (linux_fork_mourn_inferior)
12355 (detach_checkpoint_command, info_checkpoints_command)
12356 (linux_fork_context): Update.
12357 (linux_fork_detach): Update.
12358 (class scoped_switch_fork_info): Update.
12359 (delete_checkpoint_command): Update.
12360 * infrun.c (follow_fork_inferior): Update.
12361 (follow_fork_inferior): Update.
12362 (proceed_after_vfork_done): Update.
12363 (handle_vfork_child_exec_or_exit): Update.
12364 (follow_exec): Update.
12365 (displaced_step_prepare_throw): Update.
12366 (displaced_step_restore): Update.
12367 (start_step_over): Update.
12368 (resume_1): Update.
12369 (clear_proceed_status_thread): Update.
12371 (print_target_wait_results): Update.
12372 (do_target_wait): Update.
12373 (context_switch): Update.
12374 (stop_all_threads): Update.
12375 (restart_threads): Update.
12376 (finish_step_over): Update.
12377 (handle_signal_stop): Update.
12378 (switch_back_to_stepped_thread): Update.
12379 (keep_going_pass_signal): Update.
12380 (print_exited_reason): Update.
12381 (normal_stop): Update.
12382 * inferior.c (inferior_pid_to_str): Change return type.
12383 (print_selected_inferior): Update.
12384 (add_inferior): Update.
12385 (detach_inferior): Update.
12386 * dummy-frame.c (fprint_dummy_frames): Update.
12387 * dcache.c (dcache_info_1): Update.
12388 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12389 (btrace_fetch, btrace_clear): Update.
12390 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12391 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12393 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12394 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12395 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12396 * gdbarch.c, gdbarch.h: Rebuild.
12397 * gdbarch.sh (core_pid_to_str): Change return type.
12398 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12400 (windows_nat_target::pid_to_str): Change return type.
12401 (windows_delete_thread): Update.
12402 (windows_nat_target::attach): Update.
12403 (windows_nat_target::files_info): Update.
12404 * target-delegates.c: Rebuild.
12405 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12407 (sol_thread_target::pid_to_str): Change return type.
12408 * remote.c (class remote_target) <pid_to_str>: Change return
12410 (remote_target::pid_to_str): Change return type.
12411 (extended_remote_target::attach, remote_target::remote_stop_ns)
12412 (remote_target::remote_notif_remove_queued_reply)
12413 (remote_target::push_stop_reply, remote_target::disable_btrace):
12415 (extended_remote_target::attach): Update.
12416 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12418 (gdbsim_target::pid_to_str): Change return type.
12419 * ravenscar-thread.c (struct ravenscar_thread_target)
12420 <pid_to_str>: Change return type.
12421 (ravenscar_thread_target::pid_to_str): Change return type.
12422 * procfs.c (class procfs_target) <pid_to_str>: Change return
12424 (procfs_target::pid_to_str): Change return type.
12425 (procfs_target::attach): Update.
12426 (procfs_target::detach): Update.
12427 (procfs_target::fetch_registers): Update.
12428 (procfs_target::store_registers): Update.
12429 (procfs_target::wait): Update.
12430 (procfs_target::files_info): Update.
12431 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12432 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12434 (nto_procfs_target::pid_to_str): Change return type.
12435 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12436 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12438 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12439 (exit_lwp): Update.
12440 (attach_proc_task_lwp_callback, get_detach_signal)
12441 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12442 (linux_nat_target::resume, wait_lwp, stop_callback)
12443 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12444 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12445 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12446 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12447 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12449 (inf_ptrace_target::attach): Update.
12450 (inf_ptrace_target::files_info): Update.
12451 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12453 (go32_nat_target::pid_to_str): Change return type.
12454 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12455 (gnu_nat_target::wait): Update.
12456 (gnu_nat_target::wait): Update.
12457 (gnu_nat_target::resume): Update.
12458 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12459 (fbsd_nat_target::wait): Update.
12460 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12462 (darwin_nat_target::attach): Update.
12463 * corelow.c (class core_target) <pid_to_str>: Change return type.
12464 (core_target::pid_to_str): Change return type.
12465 * target.c (normal_pid_to_str): Change return type.
12466 (default_pid_to_str): Likewise.
12467 (target_pid_to_str): Change return type.
12468 (target_translate_tls_address): Update.
12469 (target_announce_detach): Update.
12470 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12472 (bsd_uthread_target::pid_to_str): Change return type.
12473 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12475 (bsd_kvm_target::pid_to_str): Change return type.
12476 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12478 (aix_thread_target::pid_to_str): Change return type.
12479 * target.h (struct target_ops) <pid_to_str>: Change return type.
12480 (target_pid_to_str, normal_pid_to_str): Likewise.
12481 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12483 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12485 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12487 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12489 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12491 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12494 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12496 * NEWS: Mention that the new default MI version is 3. Mention
12497 changes to the output of commands and events that deal with
12498 multi-location breakpoints.
12499 * breakpoint.c: Include "mi/mi-out.h".
12500 (print_one_breakpoint): Change output syntax if using MI version
12502 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12504 (mi_multi_location_breakpoint_output_fixed): New.
12505 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12506 (mi_cmd_fix_multi_location_breakpoint_output): New.
12507 (mi_multi_location_breakpoint_output_fixed): New.
12508 * mi/mi-cmds.c (mi_cmds): Register command
12509 -fix-multi-location-breakpoint-output.
12510 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12513 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12515 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12516 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12517 instantiate mi_ui_out based on interpreter name.
12518 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12519 * mi/mi-main.c (mi_load_progress): Likewise.
12521 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12523 * NEWS: Combine separate "New targets" sections for 8.3.
12525 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12527 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12528 (ppcfbsd_init_abi): Install gdbarch
12529 "fetch_tls_load_module_address" and "get_thread_local_address"
12532 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12534 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12535 (riscv_fbsd_init_abi): Install gdbarch
12536 "fetch_tls_load_module_address" and "get_thread_local_address"
12539 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12541 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12542 (i386fbsd_init_abi): Install gdbarch
12543 "fetch_tls_load_module_address" and "get_thread_local_address"
12546 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12548 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12549 (amd64fbsd_init_abi): Install gdbarch
12550 "fetch_tls_load_module_address" and "get_thread_local_address"
12553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12555 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12556 (struct fbsd_pspace_data): New type.
12557 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12558 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12559 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12560 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12561 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12565 * gdbtypes.c (lookup_struct_elt): New function.
12566 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12567 * gdbtypes.h (struct struct_elt): New type.
12568 (lookup_struct_elt): New prototype.
12570 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12572 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12573 remove disabled code block.
12575 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12577 * gdbarch.sh (get_thread_local_address): New method.
12578 * gdbarch.h, gdbarch.c: Regenerate.
12579 * target.c (target_translate_tls_address): Use
12580 gdbarch_get_thread_local_address if present instead of
12581 target::get_thread_local_address.
12583 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12585 * target.h (target::get_thread_local_address): Update comment.
12587 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12589 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12590 objfile->separate_debug_objfile_backlink if not NULL.
12592 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12594 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12595 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12596 (amd64bsd_store_inferior_registers): Likewise.
12597 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12598 Enable segment base registers.
12599 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12600 PT_GETFSBASE and PT_GETGSBASE.
12601 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12603 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12604 segment base registers.
12605 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12607 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12609 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12610 Update calls to i386_target_description to add 'segments'
12612 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12613 add segment base registers.
12614 * arch/i386.c (i386_create_target_description): Add 'segments'
12615 parameter to enable segment base registers.
12616 * arch/i386.h (i386_create_target_description): Likewise.
12617 * features/i386/32bit-segments.xml: New file.
12618 * features/i386/32bit-segments.c: Generate.
12619 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12620 call to i386_target_description to add 'segments' parameter.
12621 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12622 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12623 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12624 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12625 if feature is present.
12626 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12627 Add 'segments' parameter to call to i386_target_description.
12628 (i386_target_description): Add 'segments' parameter to enable
12629 segment base registers.
12630 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12631 to call to i386_target_description.
12632 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12633 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12634 Define I386_NUM_REGS.
12635 (i386_target_description): Add 'segments' parameter to enable
12636 segment base registers.
12638 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12641 * source-cache.c: #undef open and close, to avoid unresolved
12642 externals during linking.
12644 2019-03-12 Tom Tromey <tromey@adacore.com>
12646 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12647 const. Add initializers.
12648 (_initialize_remote): Don't initialize ptid globals.
12650 2019-03-12 Pedro Alves <palves@redhat.com>
12652 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12654 2019-03-12 Pedro Alves <palves@redhat.com>
12656 * cp-name-parser.y (main): Remove unused 'len' variable.
12658 2019-03-12 Tom Tromey <tromey@adacore.com>
12660 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12661 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12663 2019-03-12 Tom Tromey <tromey@adacore.com>
12665 * linux-nat.c (iterate_over_lwps): Update.
12666 (stop_callback): Remove parameter.
12667 (stop_wait_callback, detach_callback, resume_set_callback)
12668 (select_singlestep_lwp_callback, set_ignore_sigint)
12669 (status_callback, resumed_callback, resume_clear_callback)
12670 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12672 (linux_nat_target::detach, linux_nat_target::resume)
12673 (linux_stop_and_wait_all_lwps, select_event_lwp)
12674 (linux_nat_filter_event, linux_nat_wait_1)
12675 (linux_nat_target::kill, linux_nat_target::stop)
12676 (linux_nat_target::stop): Update.
12677 (linux_nat_resume_callback): Change type.
12678 (resume_stopped_resumed_lwps, count_events_callback)
12679 (select_event_lwp_callback): Likewise.
12680 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12681 * arm-linux-nat.c (struct update_registers_data): Remove.
12682 (update_registers_callback): Change type.
12683 (arm_linux_insert_hw_breakpoint1): Update.
12684 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12686 (x86_linux_dr_set_addr): Update.
12687 (x86_linux_dr_set_control): Update.
12688 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12689 (iterate_over_lwps): Use gdb::function_view.
12690 * nat/aarch64-linux-hw-point.c (struct
12691 aarch64_dr_update_callback_param): Remove.
12692 (debug_reg_change_callback): Change type.
12693 (aarch64_notify_debug_reg_change): Update.
12694 * s390-linux-nat.c (s390_refresh_per_info): Update.
12696 2019-03-11 Tom Tromey <tromey@adacore.com>
12698 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12699 redundant assignment to "this_cu".
12701 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12703 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12705 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12707 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12709 (rank_one_type): ... this.
12711 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12713 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12715 (rank_one_type): ... this.
12717 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12719 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12721 (rank_one_type): ... this.
12723 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12725 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12727 (rank_one_type): ... this.
12729 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12731 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12733 (rank_one_type): ... this.
12735 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12737 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12739 (rank_one_type): ... this.
12741 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12743 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12745 (rank_one_type): ... this.
12747 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12749 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12751 (rank_one_type): ... this.
12753 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12755 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12757 (rank_one_type): ... this.
12759 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12761 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12763 (rank_one_type): ... this.
12765 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12767 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12769 (rank_one_type): ... this.
12771 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12773 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12775 (rank_one_type): ... this.
12777 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12779 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12780 inferior-events' shows the example events.
12782 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12784 Support styling on native MS-Windows console
12787 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12788 on MS-Windows if $TERM is not defined.
12790 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12792 * posix-hdep.c (gdb_console_fputs):
12793 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12795 * ui-file.h (gdb_console_fputs): Add prototype.
12797 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12798 back to fputs only if the former returns zero.
12800 2019-03-07 Tom Tromey <tom@tromey.com>
12802 * symmisc.c (print_symbol_bcache_statistics): Update.
12803 (print_objfile_statistics): Update.
12804 * symfile.c (allocate_symtab): Update.
12805 * stabsread.c: Don't include bcache.h.
12806 * psymtab.h (struct psymbol_bcache): Don't declare.
12807 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12808 (psymbol_bcache_init, psymbol_bcache_free)
12809 (psymbol_bcache_get_bcache): Don't declare.
12810 * psymtab.c (struct psymbol_bcache): Remove.
12811 (psymtab_storage::psymtab_storage): Update.
12812 (psymtab_storage::~psymtab_storage): Update.
12813 (psymbol_bcache_init, psymbol_bcache_free)
12814 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12815 (add_psymbol_to_bcache): Update.
12816 (allocate_psymtab): Update.
12817 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12818 macro_cache>: No longer pointers.
12819 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12820 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12821 * macrotab.c (macro_bcache): Update.
12822 * macroexp.c: Don't include bcache.h.
12823 * gdbtypes.c (check_types_worklist): Update.
12824 (types_deeply_equal): Remove TRY/CATCH. Update.
12825 * elfread.c (elf_symtab_read): Update.
12826 * dwarf2read.c: Don't include bcache.h.
12827 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12828 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12829 (print_bcache_statistics, bcache_memory_used): Don't declare.
12830 (struct bcache): Move from bcache.c. Add constructor, destructor,
12831 methods. Rename all data members.
12832 * bcache.c (struct bcache): Move to bcache.h.
12833 (bcache::expand_hash_table): Rename from expand_hash_table.
12835 (bcache::insert): Rename from bcache_full.
12836 (bcache::compare): Rename from bcache_compare.
12837 (bcache_xmalloc): Remove.
12838 (bcache::~bcache): Rename from bcache_xfree.
12839 (bcache::print_statistics): Rename from print_bcache_statistics.
12840 (bcache::memory_used): Rename from bcache_memory_used.
12842 2019-03-07 Pedro Alves <palves@redhat.com>
12844 * infrun.c (normal_stop): Also check for
12845 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12847 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12849 * f-lang.c (value_from_host_double): Moved to...
12850 * value.c (value_from_host_double): ...here.
12851 * value.h (value_from_host_double): Declare.
12852 * guile/scm-math.c (vlscm_convert_typed_number): Use
12853 value_from_host_double.
12854 (vlscm_convert_number): Likewise.
12855 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12856 * python/py-value.c (convert_value_from_python): Likewise.
12858 2019-03-06 Tom Tromey <tom@tromey.com>
12860 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12862 2019-03-06 Tom Tromey <tom@tromey.com>
12864 * utils.h (free_current_contents): Don't declare.
12865 * utils.c (free_current_contents): Remove.
12867 2019-03-06 Tom Tromey <tom@tromey.com>
12869 * top.c (quit_force): Update.
12870 * main.c (captured_command_loop): Update.
12871 * common/new-op.c (operator new): Update.
12872 * common/common-exceptions.c (struct catcher)
12873 <save_cleanup_chain>: Remove member.
12874 (exceptions_state_mc_init): Update.
12875 (exception_try_scope_entry): Return nullptr.
12876 (exception_try_scope_exit, exception_rethrow)
12877 (throw_exception_sjlj, throw_exception_cxx): Update.
12878 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12879 (all_cleanups, do_cleanups, discard_cleanups)
12880 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12881 (restore_cleanups, restore_final_cleanups): Don't declare.
12882 (do_final_cleanups): Remove parameter.
12883 * common/cleanups.c (cleanup_chain, make_cleanup)
12884 (make_cleanup_dtor, all_cleanups, do_cleanups)
12885 (discard_my_cleanups, discard_cleanups)
12886 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12887 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12888 (null_cleanup): Remove.
12889 (do_final_cleanups): Remove parameter.
12891 2019-03-06 Tom Tromey <tom@tromey.com>
12893 * remote.c (remote_target::remote_parse_stop_reply): Use
12894 unique_xmalloc_ptr.
12896 2019-03-06 Tom Tromey <tom@tromey.com>
12898 * stabsread.c (struct stabs_field_info): Rename from field_info.
12899 <list, fnlist>: Add initializers.
12900 <obstack>: New member.
12901 (read_member_functions, read_struct_fields, read_baseclasses):
12902 Allocate on obstack. Don't use cleanups.
12903 (read_one_struct_field, read_member_functions, read_struct_fields)
12904 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12905 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12906 (read_struct_type): Update.
12908 2019-03-06 Tom Tromey <tom@tromey.com>
12910 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12911 * common/filestuff.h (make_cleanup_close): Don't declare.
12912 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12915 2019-03-06 Tom Tromey <tom@tromey.com>
12917 * solib-aix.c: Use make_scope_exit.
12919 2019-03-06 Tom Tromey <tom@tromey.com>
12921 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12922 Use make_scope_exit.
12924 2019-03-06 Tom Tromey <tom@tromey.com>
12926 * solib-svr4.c (disable_probes_interface): Remove parameter.
12927 (svr4_handle_solib_event): Use make_scope_exit.
12929 2019-03-06 Tom Tromey <tom@tromey.com>
12931 * remote.c (struct stop_reply_deleter): Remove.
12932 (stop_reply_up): Update.
12933 (struct stop_reply): Derive from notif_event. Don't typedef.
12934 <regcache>: Now a std::vector.
12935 (stop_reply_xfree): Remove.
12936 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12937 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12938 (remote_target::discard_pending_stop_replies): Use delete.
12939 (remote_target::remote_parse_stop_reply): Update.
12940 (remote_target::process_stop_reply): Update.
12941 * remote-notif.h (struct notif_event): Add virtual destructor.
12942 Remove "dtr" member.
12943 (struct notif_client) <alloc_event>: Return a unique_ptr.
12944 (notif_event_xfree): Don't declare.
12945 (notif_event_up): New typedef.
12946 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12947 (notif_event_xfree, do_notif_event_xfree): Remove.
12948 (remote_notif_state_xfree): Update.
12950 2019-03-06 Tom Tromey <tom@tromey.com>
12952 * infrun.c (displaced_step_clear_cleanup): Now a
12953 forward_scope_exit type.
12954 (displaced_step_prepare_throw): Update.
12955 (displaced_step_fixup): Update.
12957 2019-03-06 Tom Tromey <tom@tromey.com>
12959 * inferior.h (class inferior): Update comment.
12960 * gdbthread.h (class thread_info): Update comment.
12962 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12963 Tom Tromey <tom@tromey.com>
12965 * stabsread.h (struct stab_section_list): Remove.
12966 (coffstab_build_psymtabs): Update.
12967 * dbxread.c (symbuf_sections): Now a std::vector.
12968 (sect_idx): New global.
12969 (fill_symbuf): Update.
12970 (coffstab_build_psymtabs): Change type of stabsects parameter.
12972 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12974 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12975 (coff_locate_sections): Update.
12976 (coff_symfile_read): Remove cleanups. Update.
12977 (init_stringtab): Add storage parameter.
12978 (free_stringtab, free_stringtab_cleanup): Remove.
12979 (init_lineno): Add storage parameter.
12980 (free_linetab, free_linetab_cleanup): Remove.
12982 2019-03-06 Pedro Alves <palves@redhat.com>
12984 * linux-fork.c (fork_info::clobber_regs): Delete.
12985 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12986 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12988 (scoped_switch_fork_info::scoped_switch_fork_info)
12989 (checkpoint_command, linux_fork_context): Adjust
12990 fork_save_infrun_state calls.
12992 2019-03-06 Pedro Alves <palves@redhat.com>
12994 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12995 (inf_has_multiple_threads): Return 'bool' and rewrite using
12996 inferior_info::threads().
12998 2019-03-06 Pedro Alves <palves@redhat.com>
13000 * linux-fork.c: Include <list>.
13001 (fork_list): Now a std::list instance.
13002 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13003 (forks_exist_p, find_last_fork): Adjust.
13004 (new_fork): Delete.
13006 (add_fork): Adjust.
13007 (free_fork): Delete, folded into fork_info::~fork_info().
13008 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13010 (init_fork_list): Delete.
13011 (linux_fork_killall, linux_fork_mourn_inferior)
13012 (linux_fork_detach, info_checkpoints_command): Adjust.
13013 (_initialize_linux_fork): No longer call init_fork_list.
13015 2019-03-06 Pedro Alves <palves@redhat.com>
13017 * linux-fork.c (new_fork): New, split out of ...
13018 (add_fork): ... this. Return void. Move "first fork" special
13019 case from here, to ...
13020 (checkpoint_command): ... here.
13021 * linux-linux.h (add_fork): Return void.
13023 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13025 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13027 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13028 Chris January <chris.january@arm.com>
13029 David Lecomber <david.lecomber@arm.com>
13031 * f-exp.y: New token, UNOP_INTRINSIC.
13032 (exp): New pattern using UNOP_INTRINSIC token.
13033 (f77_keywords): Add 'abs' keyword.
13034 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13035 (value_from_host_double): New function.
13036 (evaluate_subexp_f): Support UNOP_ABS.
13038 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13040 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13043 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13045 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13046 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13047 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13049 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13051 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13053 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13054 Chris January <chris.january@arm.com>
13056 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13057 * f-exp.y: Define 'KIND' token.
13058 (exp): New pattern for KIND expressions.
13059 (ptype): Handle types with a kind extension.
13060 (direct_abs_decl): Extend to spot kind extensions.
13061 (f77_keywords): Add 'kind' to the list.
13062 (push_kind_type): New function.
13063 (convert_to_kind_type): New function.
13064 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13065 * parse.c (operator_length_standard): Likewise.
13066 * parser-defs.h (enum type_pieces): Add tp_kind.
13067 * std-operator.def: Add UNOP_KIND.
13069 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13071 * f-exp.y (f_parse): Set yydebug.
13073 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13075 * f-lang.c (evaluate_subexp_f): New function.
13076 (exp_descriptor_f): New global.
13077 (f_language_defn): Use exp_descriptor_f instead of
13078 exp_descriptor_standard.
13080 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13082 * f-exp.y (struct token): Add comments.
13083 (dot_ops): Remove uppercase versions and the end marker.
13084 (f77_keywords): Likewise.
13085 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13086 entries in the dot_ops array are case insensitive, and use
13087 strncasecmp to compare strings. Also some whitespace cleanup in
13088 this area. Similar for the f77_keywords array, except entries in
13089 this list might be case sensitive.
13091 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13093 * f-exp.y (struct f77_boolean_val): Add comments.
13094 (boolean_values): Remove uppercase versions, and end marker.
13095 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13096 and use strncasecmp to achieve case insensitivity. Additionally,
13097 perform whitespace cleanup around this code.
13099 2019-03-06 Tom Tromey <tromey@adacore.com>
13101 * remote-sim.c (gdbsim_target_open): Use result of
13104 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13105 Dirk Schubert <dirk.schubert@arm.com>
13106 Chris January <chris.january@arm.com>
13108 * eval.c (evaluate_subexp_standard): Call Fortran argument
13110 * f-lang.c (struct value): A value which can be passed into a
13111 Fortran function call.
13112 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13114 (struct type): Value ready for a Fortran function call.
13115 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13117 * f-lang.h (fortran_argument_convert): Declaration.
13118 (fortran_preserve_arg_pointer): Declaration.
13119 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13121 2019-03-05 Tom Tromey <tromey@adacore.com>
13123 * python/py-prettyprint.c (print_string_repr): Remove #if.
13124 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13126 2019-03-05 Tom Tromey <tromey@adacore.com>
13128 * target.c (the_dummy_target): Move later. Change type to
13130 (initialize_targets): Don't initialize the_dummy_target.
13132 2019-03-05 Tom Tromey <tromey@adacore.com>
13134 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13135 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13137 2019-03-05 Tom Tromey <tromey@adacore.com>
13139 * windows-nat.c (windows_nat_target::attach)
13140 (windows_nat_target::detach): Don't call gdb_flush.
13141 * valprint.c (generic_val_print, val_print, val_print_string):
13142 Don't call gdb_flush.
13143 * utils.c (defaulted_query): Don't call gdb_flush.
13144 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13145 * target.c (target_announce_detach): Don't call gdb_flush.
13146 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13147 * remote.c (extended_remote_target::attach): Don't call
13149 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13150 * printcmd.c (do_examine): Don't call gdb_flush.
13151 (info_display_command): Don't call gdb_flush.
13152 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13153 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13154 * memattr.c (info_mem_command): Don't call gdb_flush.
13155 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13156 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13157 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13158 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13159 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13160 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13161 (gnu_nat_target::detach): Don't call gdb_flush.
13162 * f-valprint.c (f_val_print): Don't call gdb_flush.
13163 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13164 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13165 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13167 * c-valprint.c (c_val_print): Don't call gdb_flush.
13168 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13170 2019-03-05 Tom Tromey <tromey@adacore.com>
13172 * varobj.c (update_dynamic_varobj_children): Update.
13173 (install_default_visualizer): Use reset, not release.
13174 * value.c (set_internalvar): Update.
13175 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13176 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13177 ATTRIBUTE_UNUSED_RESULT.
13179 2019-03-05 Tom Tromey <tromey@adacore.com>
13181 * remote.c (class scoped_remote_fd) <release>: Add
13182 ATTRIBUTE_UNUSED_RESULT.
13184 2019-03-05 Tom Tromey <tromey@adacore.com>
13186 * macroexp.c (struct macro_buffer) <release>: Add
13187 ATTRIBUTE_UNUSED_RESULT.
13189 2019-03-05 Tom Tromey <tromey@adacore.com>
13191 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13192 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13193 ATTRIBUTE_UNUSED_RESULT.
13195 2019-03-05 Tom Tromey <tromey@adacore.com>
13197 * common/scoped_fd.h (class scoped_fd) <release>: Add
13198 ATTRIBUTE_UNUSED_RESULT.
13200 2019-03-05 Tom Tromey <tromey@adacore.com>
13202 * parser-defs.h (struct parser_state) <release>: Add
13203 ATTRIBUTE_UNUSED_RESULT.
13205 2019-03-05 Tom Tromey <tromey@adacore.com>
13207 * utils.h (class gdb_argv) <release>: Add
13208 ATTRIBUTE_UNUSED_RESULT.
13209 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13211 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13213 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13214 for-loop range, to avoid compiler warnings.
13216 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13217 avoid compiler warnings about unused variables.
13219 * NEWS: Mention end of support for native debugging on MS-Windows
13223 * common/netstuff.c:
13224 * gdbserver/gdbreplay.c
13225 * gdbserver/remote-utils.c:
13227 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13228 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13229 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13230 'getaddrinfo' and 'freeaddrinfo' were not available before
13231 Windows XP, and mingw.org's MinGW headers by default define
13232 _WIN32_WINNT to 0x500.
13234 2019-03-01 Gary Benson <gbenson@redhat.com>
13236 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13238 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13239 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13242 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13243 set_sigint_trap, clear_sigint_trap.
13245 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13247 * target.c (target_detach): Clear the regcache and the
13250 2019-02-27 Pedro Alves <palves@redhat.com>
13252 * utils.c (set_screen_size): When we cap the height/width sizes,
13253 tweak the corresponding command variable to show "unlimited":
13255 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13256 Pedro Alves <palves@redhat.com>
13258 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13259 before calling rl_set_screen_size.
13261 2019-02-27 Tom Tromey <tromey@adacore.com>
13263 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13265 * python/py-value.c: Remove Python 2.4 workaround.
13266 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13268 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13269 Python 2.4 workaround.
13270 * python/python-internal.h: Remove Python 2.4 comment.
13271 (Py_ssize_t): Don't define.
13272 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13273 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13274 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13275 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13276 * python/python.c (do_start_initialization): Remove Python 2.4
13278 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13279 (print_children): Remove Python 2.4 workaround.
13280 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13282 (CHARBUFFERPROC_NAME): Remove.
13283 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13284 Python 2.4 workaround.
13286 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13288 * NEWS: Note minimum Python version.
13290 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13292 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13293 code from these functions. Remove corresponding ifdefs. Use
13294 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13295 Remove gotos and target of gotos.
13296 (infpy_search_memory): Likewise.
13298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13300 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13301 (hppa_gdbarch_init): Don't register deleted functions with
13304 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13306 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13307 (h8300_unwind_sp): Delete.
13308 (h8300_dummy_id): Delete.
13309 (h8300_gdbarch_init): Don't register deleted functions with
13312 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13314 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13315 (ft32_unwind_pc): Delete.
13316 (ft32_unwind_sp): Delete.
13317 (ft32_gdbarch_init): Don't register deleted functions with
13320 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13322 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13323 (frv_unwind_pc): Delete.
13324 (frv_unwind_sp): Delete.
13325 (frv_gdbarch_init): Don't register deleted functions with
13328 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13330 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13331 (riscv_unwind_pc): Delete.
13332 (riscv_unwind_sp): Delete.
13333 (riscv_gdbarch_init): Don't register deleted functions with
13336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13338 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13339 (csky_unwind_pc): Delete.
13340 (csky_unwind_sp): Delete.
13341 (csky_gdbarch_init): Don't register deleted functions with
13344 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13346 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13347 (cris_unwind_pc): Delete.
13348 (cris_unwind_sp): Delete.
13349 (cris_gdbarch_init): Don't register deleted functions with
13352 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13354 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13355 (bfin_unwind_pc): Delete.
13356 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13358 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13360 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13361 (arm_unwind_pc): Delete.
13362 (arm_unwind_sp): Delete.
13363 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13367 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13368 (arc_unwind_pc): Delete.
13369 (arc_unwind_sp): Delete.
13370 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13372 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13374 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13375 (alpha_unwind_pc): Delete.
13376 (alpha_gdbarch_init): Don't register deleted functions with
13379 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13381 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13382 (aarch64_unwind_pc): Delete.
13383 (aarch64_unwind_sp): Delete.
13384 (aarch64_gdbarch_init): Don't register deleted functions with
13387 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13389 * gdbtypes.c (type_align): Don't consider static members when
13390 computing structure alignment.
13392 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13394 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13395 return 0 for other types.
13396 * arch-utils.c (default_type_align): Always return 0.
13397 * gdbarch.h: Regenerate.
13398 * gdbarch.sh (type_align): Extend comment.
13399 * gdbtypes.c (type_align): Add additional comments, always call
13400 gdbarch_type_align before applying the default rules.
13401 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13402 generic code will then apply a suitable default.
13403 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13404 types, return 0 for other types.
13406 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13408 * NEWS: Create a new section for the next release branch.
13409 Rename the section of the current branch, now that it has
13412 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13414 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13415 * version.in: Bump version to 8.3.50.DATE-git.
13417 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13419 * aix-thread.c (ptid_cmp): Remove unused variable.
13420 (get_signaled_thread): Likewise.
13421 (store_regs_user_thread): Likewise.
13422 (store_regs_kernel_thread): Likewise.
13423 (fetch_regs_kernel_thread): Remove shadowed variable.
13425 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13427 * features/riscv/32bit-cpu.xml: Add register numbers.
13428 * features/riscv/32bit-fpu.c: Regenerate.
13429 * features/riscv/32bit-fpu.xml: Add register numbers.
13430 * features/riscv/64bit-cpu.xml: Add register numbers.
13431 * features/riscv/64bit-fpu.c: Regenerate.
13432 * features/riscv/64bit-fpu.xml: Add register numbers.
13434 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13436 * NEWS: Mention two argument form of gdb.Value constructor.
13437 * python/py-value.c (convert_buffer_and_type_to_value): New
13439 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13440 Add support for handling an optional second argument. Call
13441 convert_buffer_and_type_to_value as appropriate.
13442 * python/python-internal.h (Py_buffer_deleter): New struct.
13443 (Py_buffer_up): New typedef.
13445 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13447 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13448 instead of releasing ownership.
13450 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13452 * dwarf2read.c (open_and_init_dwp_file): Call
13453 elf_numsections instead of bfd_count_sections to initialize
13454 dwp_file->num_sections.
13456 2019-02-25 Tom Tromey <tromey@adacore.com>
13458 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13460 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13462 * gcore.in: Add '--readnever' option when invoking GDB.
13464 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13466 * MAINTAINERS: Update my email address.
13468 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13470 * build-id.c (build_id_to_debug_bfd_1): New function.
13471 (build_id_to_debug_bfd): Look for separate debug file in
13474 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13476 * gdbarch.sh: Update the copyright year range that is placed into
13479 2019-02-22 Keith Seitz <keiths@redhat.com>
13482 * linespec.c (create_sals_line_offset): Search for the default
13483 symtab's filename instead of its fullname.
13485 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13487 * NEWS: Update style defaults.
13489 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13491 * main.c (captured_main_1): Disable styling in batch mode.
13493 2019-02-20 Tom Tromey <tom@tromey.com>
13495 * symtab.c (symtab_symbol_info): Fix typos.
13497 2019-02-20 Tom Tromey <tromey@adacore.com>
13499 * findcmd.c (_initialize_mem_search): Use upper case for
13500 metasyntactic variables.
13502 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13504 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13505 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13507 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13509 * top.h (source_file_name): Change to std::string.
13510 * top.c (source_file_name): Likewise.
13511 (command_line_input): Adjust.
13512 * cli/cli-script.c (script_from_file): Adjust.
13514 2019-02-19 Tom Tromey <tromey@adacore.com>
13516 * ravenscar-thread.c
13517 (ravenscar_thread_target::update_thread_list): Don't call
13518 ada_build_task_list.
13519 * ada-lang.h (ada_build_task_list): Don't declare.
13520 * ada-tasks.c (struct ada_tasks_inferior_data)
13521 <task_list_valid_p>: Now bool.
13522 (read_known_tasks, ada_task_list_changed)
13523 (ada_tasks_invalidate_inferior_data): Update.
13524 (read_known_tasks_array): Return bool.
13525 (read_known_tasks_list): Likewise.
13526 (read_known_tasks): Return void.
13527 (ada_build_task_list): Now static.
13529 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13531 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13532 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13534 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13536 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13537 variant for ada_tasks_pspace_data_handle and
13538 ada_tasks_inferior_data_handle.
13539 (ada_tasks_pspace_data_cleanup): New function.
13540 (ada_tasks_inferior_data_cleanup): New function.
13542 2019-02-17 Tom Tromey <tom@tromey.com>
13544 * macrotab.h (macro_source_fullname): Return a std::string.
13545 * macrotab.c (macro_include, check_for_redefinition)
13546 (macro_undef, macro_lookup_definition, foreach_macro)
13547 (foreach_macro_in_scope): Update.
13548 (macro_source_fullname): Return a std::string.
13549 * macrocmd.c (show_pp_source_pos): Update.
13551 2019-02-17 Tom Tromey <tom@tromey.com>
13553 * macrocmd.c (show_pp_source_pos): Style the file names.
13555 2019-02-17 Tom Tromey <tom@tromey.com>
13558 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13560 2019-02-17 Tom Tromey <tom@tromey.com>
13562 * ada-lang.c (user_select_syms): Use filtered printing.
13563 * utils.c (wrap_style): New global.
13564 (desired_style): Remove.
13565 (emit_style_escape): Add stream parameter.
13566 (set_output_style, reset_terminal_style, prompt_for_continue):
13568 (flush_wrap_buffer): Only flush gdb_stdout.
13569 (wrap_here): Set wrap_style.
13570 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13571 treat escape sequences as a character. Change when wrap buffer is
13573 (fputs_styled): Do not set the output style when the default is
13575 * ui-style.h (struct ui_file_style) <is_default>: New method.
13576 * source.c (print_source_lines_base): Emit escape sequences in one
13579 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13581 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13582 integers and enumeration types.
13584 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13586 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13587 instead of lookup_symbol_in_language
13588 (do_exact_match): New function.
13589 (ada_get_symbol_name_matcher): Return do_exact_match when
13590 doing a verbatim match.
13592 2019-02-15 Tom Tromey <tromey@adacore.com>
13594 * ravenscar-thread.c (ravenscar_thread_target::resume)
13595 (ravenscar_thread_target::wait): Special case wildcard requests.
13597 2019-02-15 Tom Tromey <tromey@adacore.com>
13599 * ravenscar-thread.c (base_ptid): Remove.
13600 (struct ravenscar_thread_target) <close>: New method.
13601 <m_base_ptid>: New member.
13602 <update_inferior_ptid, active_task, task_is_currently_active,
13603 runtime_initialized>: Declare methods.
13604 <ravenscar_thread_target>: Add constructor.
13605 (ravenscar_thread_target::task_is_currently_active)
13606 (ravenscar_thread_target::update_inferior_ptid)
13607 (ravenscar_runtime_initialized): Rename. Now methods.
13608 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13609 (ravenscar_thread_target::update_thread_list): Update.
13610 (ravenscar_thread_target::active_task): Now method.
13611 (ravenscar_thread_target::store_registers)
13612 (ravenscar_thread_target::prepare_to_store)
13613 (ravenscar_thread_target::prepare_to_store)
13614 (ravenscar_thread_target::mourn_inferior): Update.
13615 (ravenscar_inferior_created): Use "new" to create target.
13616 (ravenscar_thread_target::get_ada_task_ptid): Update.
13617 (_initialize_ravenscar): Don't initialize base_ptid.
13618 (ravenscar_ops): Remove global.
13620 2019-02-15 Tom Tromey <tromey@adacore.com>
13622 * target.h (push_target): Declare new overload.
13623 * target.c (push_target): New overload, taking an rvalue reference.
13624 * remote.c (remote_target::open_1): Use push_target overload.
13625 * corelow.c (core_target_open): Use push_target overload.
13627 2019-02-15 Tom Tromey <tromey@adacore.com>
13629 * ravenscar-thread.c (is_ravenscar_task)
13630 (ravenscar_task_is_currently_active): Return bool.
13631 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13632 (_initialize_ravenscar): Remove "(void)".
13633 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13636 2019-02-15 Tom Tromey <tromey@adacore.com>
13638 * ravenscar-thread.c (ravenscar_runtime_initializer)
13639 (has_ravenscar_runtime, get_running_thread_id)
13640 (ravenscar_thread_target::resume): Fix indentation.
13642 2019-02-15 Tom Tromey <tromey@adacore.com>
13644 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13645 from ravenscar_arch_ops.
13646 (sparc_ravenscar_ops::fetch_registers)
13647 (sparc_ravenscar_ops::store_registers): Now methods.
13648 (sparc_ravenscar_prepare_to_store): Remove.
13649 (sparc_ravenscar_ops): Redefine.
13650 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13651 methods and destructor. Remove members.
13652 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13653 (ravenscar_thread_target::store_registers)
13654 (ravenscar_thread_target::prepare_to_store): Update.
13655 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13657 (struct ppc_ravenscar_powerpc_ops): Derive from
13658 ravenscar_arch_ops.
13659 (ppc_ravenscar_powerpc_ops::fetch_registers)
13660 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13661 (ppc_ravenscar_powerpc_ops): Redefine.
13662 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13663 (ppc_ravenscar_e500_ops::fetch_registers)
13664 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13665 (ppc_ravenscar_e500_ops): Redefine.
13666 * aarch64-ravenscar-thread.c
13667 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13668 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13669 (aarch64_ravenscar_fetch_registers)
13670 (aarch64_ravenscar_store_registers): Now methods.
13671 (aarch64_ravenscar_ops): Redefine.
13673 2019-02-15 Tom Tromey <tromey@adacore.com>
13675 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13676 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13677 (ravenscar_thread_target::stopped_by_watchpoint)
13678 (ravenscar_thread_target::stopped_data_address)
13679 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13681 2019-02-15 Tom Tromey <tromey@adacore.com>
13683 * ravenscar-thread.c: Fix some typos.
13685 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13686 Tom Tromey <tromey@adacore.com>
13688 * ada-lang.c (ada_exception_sal): Change addr_string to a
13690 (create_ada_exception_catchpoint): Update.
13692 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13693 Tom Tromey <tromey@adacore.com>
13695 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13696 (bp_location_ops): Remove.
13697 (base_breakpoint_allocate_location): Update.
13698 (free_bp_location): Update.
13699 * ada-lang.c (class ada_catchpoint_location)
13700 <ada_catchpoint_location>: Remove ops parameter.
13701 (ada_catchpoint_location_dtor): Remove.
13702 (ada_catchpoint_location_ops): Remove.
13703 (allocate_location_exception): Update.
13704 * breakpoint.h (struct bp_location_ops): Remove.
13705 (class bp_location) <bp_location>: Remove bp_location_ops
13707 <~bp_location>: Add destructor.
13710 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13711 Pedro Alves <palves@redhat.com>
13713 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13716 2019-02-14 David Michael <fedora.dm0@gmail.com>
13717 Samuel Thibault <samuel.thibault@gnu.org>
13718 Thomas Schwinge <thomas@codesourcery.com>
13720 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13721 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13723 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13725 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13726 (check_empty): Use "const char *".
13728 * gnu-nat.c (gnu_nat_target::detach): Instead of
13729 'detach_inferior (pid)' call
13730 'detach_inferior (find_inferior_pid (pid))'.
13732 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13733 'nat/fork-inferior.o'.
13734 * gnu-nat.c: #include "nat/fork-inferior.h".
13736 * gnu-nat.c (gnu_nat_target::detach): Instead of
13737 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13738 * gnu-nat.h: #include "inf-child.h".
13739 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13740 'i386_gnu_nat_target::fetch_registers'.
13741 (gnu_store_registers): Rename/move to
13742 'i386_gnu_nat_target::store_registers'.
13744 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13745 * gnu-nat.h (mach_thread_info): New function.
13746 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13748 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13750 2019-02-14 Frederic Konrad <konrad@adacore.com>
13752 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13754 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13756 * windows-nat.c (windows_add_thread): Add new parameter
13757 "main_thread_p" with default value set to false. Update
13758 function documentation as well as all callers.
13759 (windows_delete_thread): Likewise.
13760 (fake_create_process): Update call to windows_add_thread.
13761 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13762 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13763 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13764 call to windows_delete_thread.
13766 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13768 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13770 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13772 * symfile.c (find_separate_debug_file): Use canonical path of
13773 sysroot with child_path instead of gdb_sysroot if it is valid.
13775 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13777 * symfile.c (find_separate_debug_file): Use child_path to
13778 determine if an object file is under a sysroot.
13780 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13782 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13783 unittests/child-path-selftests.c.
13784 * common/pathstuff.c (child_path): New function.
13785 * common/pathstuff.h (child_path): New prototype.
13786 * unittests/child-path-selftests.c: New file.
13788 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13790 * symfile.c (find_separate_debug_file): Look for separate debug
13791 files in debug directories under the sysroot.
13793 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13795 * symtab.h (struct minimal_symbol data_p): New const method.
13796 (struct minimal_symbol text_p): Likewise.
13797 * symtab.c (output_source_filename): Use file name style
13798 to print file name.
13799 (print_symbol_info): Likewise.
13800 (print_msymbol_info): Use address style to print addresses.
13801 Use function name style to print executable text symbols.
13802 (expand_symtab_containing_pc): Use data_p.
13803 (find_pc_sect_compunit_symtab): Likewise.
13805 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13807 * breakpoint.c (describe_other_breakpoints): Use address style
13808 to print addresses.
13809 (say_where): Likewise.
13811 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13813 * ada-typeprint.c (print_func_type): Print function name
13814 style to print function name.
13815 * c-typeprint.c (c_print_type_1): Likewise.
13817 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13819 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13822 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13824 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13827 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13829 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13830 TYPE_CODE_REF types.
13832 2019-02-08 Jim Wilson <jimw@sifive.com>
13834 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13835 (riscv_linux_fregset): New.
13836 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13838 2019-02-07 Tom Tromey <tom@tromey.com>
13840 * thread.c (thread_cancel_execution_command): Update.
13841 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13843 (struct thread_fsm_ops): Remove.
13844 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13845 (thread_fsm_should_stop, thread_fsm_return_value)
13846 (thread_fsm_set_finished, thread_fsm_finished_p)
13847 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13849 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13850 * infrun.c (clear_proceed_status_thread)
13851 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13852 (print_stop_event): Update.
13853 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13855 (step_command_fsm_ops): Remove.
13856 (new_step_command_fsm): Remove.
13858 (step_command_fsm::should_stop): Rename from
13859 step_command_fsm_should_stop.
13860 (step_command_fsm::clean_up): Rename from
13861 step_command_fsm_clean_up.
13862 (step_command_fsm::do_async_reply_reason): Rename from
13863 step_command_fsm_async_reply_reason.
13864 (struct until_next_fsm): Inherit from thread_fsm. Add
13866 (until_next_fsm_ops): Remove.
13867 (new_until_next_fsm): Remove.
13868 (until_next_fsm::should_stop): Rename from
13869 until_next_fsm_should_stop.
13870 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13871 (until_next_fsm::do_async_reply_reason): Rename from
13872 until_next_fsm_async_reply_reason.
13873 (struct finish_command_fsm): Inherit from thread_fsm. Add
13874 constructor. Change type of breakpoint.
13875 (finish_command_fsm_ops): Remove.
13876 (new_finish_command_fsm): Remove.
13877 (finish_command_fsm::should_stop): Rename from
13878 finish_command_fsm_should_stop.
13879 (finish_command_fsm::clean_up): Rename from
13880 finish_command_fsm_clean_up.
13881 (finish_command_fsm::return_value): Rename from
13882 finish_command_fsm_return_value.
13883 (finish_command_fsm::do_async_reply_reason): Rename from
13884 finish_command_fsm_async_reply_reason.
13885 (finish_command): Update.
13886 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13888 (call_thread_fsm_ops): Remove.
13889 (call_thread_fsm::call_thread_fsm): Rename from
13890 new_call_thread_fsm.
13891 (call_thread_fsm::should_stop): Rename from
13892 call_thread_fsm_should_stop.
13893 (call_thread_fsm::should_notify_stop): Rename from
13894 call_thread_fsm_should_notify_stop.
13895 (run_inferior_call, call_function_by_hand_dummy): Update.
13896 * cli/cli-interp.c (should_print_stop_to_console): Update.
13897 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13898 Add constructor. Change type of location_breakpoint,
13900 (until_break_fsm_ops): Remove.
13901 (new_until_break_fsm): Remove.
13902 (until_break_fsm::should_stop): Rename from
13903 until_break_fsm_should_stop.
13904 (until_break_fsm::clean_up): Rename from
13905 until_break_fsm_clean_up.
13906 (until_break_fsm::do_async_reply_reason): Rename from
13907 until_break_fsm_async_reply_reason.
13908 (until_break_command): Update.
13909 * thread-fsm.c: Remove.
13910 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13912 2019-02-07 Tom Tromey <tom@tromey.com>
13914 * yy-remap.h: Add include guard.
13915 * xtensa-tdep.h: Add include guard.
13916 * xcoffread.h: Rename include guard.
13917 * varobj-iter.h: Add include guard.
13918 * tui/tui.h: Rename include guard.
13919 * tui/tui-winsource.h: Rename include guard.
13920 * tui/tui-wingeneral.h: Rename include guard.
13921 * tui/tui-windata.h: Rename include guard.
13922 * tui/tui-win.h: Rename include guard.
13923 * tui/tui-stack.h: Rename include guard.
13924 * tui/tui-source.h: Rename include guard.
13925 * tui/tui-regs.h: Rename include guard.
13926 * tui/tui-out.h: Rename include guard.
13927 * tui/tui-layout.h: Rename include guard.
13928 * tui/tui-io.h: Rename include guard.
13929 * tui/tui-hooks.h: Rename include guard.
13930 * tui/tui-file.h: Rename include guard.
13931 * tui/tui-disasm.h: Rename include guard.
13932 * tui/tui-data.h: Rename include guard.
13933 * tui/tui-command.h: Rename include guard.
13934 * tic6x-tdep.h: Add include guard.
13935 * target/waitstatus.h: Rename include guard.
13936 * target/wait.h: Rename include guard.
13937 * target/target.h: Rename include guard.
13938 * target/resume.h: Rename include guard.
13939 * target-float.h: Rename include guard.
13940 * stabsread.h: Add include guard.
13941 * rs6000-tdep.h: Add include guard.
13942 * riscv-fbsd-tdep.h: Add include guard.
13943 * regformats/regdef.h: Rename include guard.
13944 * record.h: Rename include guard.
13945 * python/python.h: Rename include guard.
13946 * python/python-internal.h: Rename include guard.
13947 * python/py-stopevent.h: Rename include guard.
13948 * python/py-ref.h: Rename include guard.
13949 * python/py-record.h: Rename include guard.
13950 * python/py-record-full.h: Rename include guard.
13951 * python/py-record-btrace.h: Rename include guard.
13952 * python/py-instruction.h: Rename include guard.
13953 * python/py-events.h: Rename include guard.
13954 * python/py-event.h: Rename include guard.
13955 * procfs.h: Add include guard.
13956 * proc-utils.h: Add include guard.
13957 * p-lang.h: Add include guard.
13958 * or1k-tdep.h: Rename include guard.
13959 * observable.h: Rename include guard.
13960 * nto-tdep.h: Rename include guard.
13961 * nat/x86-linux.h: Rename include guard.
13962 * nat/x86-linux-dregs.h: Rename include guard.
13963 * nat/x86-gcc-cpuid.h: Add include guard.
13964 * nat/x86-dregs.h: Rename include guard.
13965 * nat/x86-cpuid.h: Rename include guard.
13966 * nat/ppc-linux.h: Rename include guard.
13967 * nat/mips-linux-watch.h: Rename include guard.
13968 * nat/linux-waitpid.h: Rename include guard.
13969 * nat/linux-ptrace.h: Rename include guard.
13970 * nat/linux-procfs.h: Rename include guard.
13971 * nat/linux-osdata.h: Rename include guard.
13972 * nat/linux-nat.h: Rename include guard.
13973 * nat/linux-namespaces.h: Rename include guard.
13974 * nat/linux-btrace.h: Rename include guard.
13975 * nat/glibc_thread_db.h: Rename include guard.
13976 * nat/gdb_thread_db.h: Rename include guard.
13977 * nat/gdb_ptrace.h: Rename include guard.
13978 * nat/fork-inferior.h: Rename include guard.
13979 * nat/amd64-linux-siginfo.h: Rename include guard.
13980 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13981 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13982 * nat/aarch64-linux.h: Rename include guard.
13983 * nat/aarch64-linux-hw-point.h: Rename include guard.
13984 * mn10300-tdep.h: Add include guard.
13985 * mips-linux-tdep.h: Add include guard.
13986 * mi/mi-parse.h: Rename include guard.
13987 * mi/mi-out.h: Rename include guard.
13988 * mi/mi-main.h: Rename include guard.
13989 * mi/mi-interp.h: Rename include guard.
13990 * mi/mi-getopt.h: Rename include guard.
13991 * mi/mi-console.h: Rename include guard.
13992 * mi/mi-common.h: Rename include guard.
13993 * mi/mi-cmds.h: Rename include guard.
13994 * mi/mi-cmd-break.h: Rename include guard.
13995 * m2-lang.h: Add include guard.
13996 * location.h: Rename include guard.
13997 * linux-record.h: Rename include guard.
13998 * linux-nat.h: Add include guard.
13999 * linux-fork.h: Add include guard.
14000 * i386-darwin-tdep.h: Rename include guard.
14001 * hppa-linux-offsets.h: Add include guard.
14002 * guile/guile.h: Rename include guard.
14003 * guile/guile-internal.h: Rename include guard.
14004 * gnu-nat.h: Rename include guard.
14005 * gdb-stabs.h: Rename include guard.
14006 * frv-tdep.h: Add include guard.
14007 * f-lang.h: Add include guard.
14008 * event-loop.h: Add include guard.
14009 * darwin-nat.h: Rename include guard.
14010 * cp-abi.h: Rename include guard.
14011 * config/sparc/nm-sol2.h: Rename include guard.
14012 * config/nm-nto.h: Rename include guard.
14013 * config/nm-linux.h: Add include guard.
14014 * config/i386/nm-i386gnu.h: Rename include guard.
14015 * config/djgpp/nl_types.h: Rename include guard.
14016 * config/djgpp/langinfo.h: Rename include guard.
14017 * compile/gcc-cp-plugin.h: Add include guard.
14018 * compile/gcc-c-plugin.h: Add include guard.
14019 * compile/compile.h: Rename include guard.
14020 * compile/compile-object-run.h: Rename include guard.
14021 * compile/compile-object-load.h: Rename include guard.
14022 * compile/compile-internal.h: Rename include guard.
14023 * compile/compile-cplus.h: Rename include guard.
14024 * compile/compile-c.h: Rename include guard.
14025 * common/xml-utils.h: Rename include guard.
14026 * common/x86-xstate.h: Rename include guard.
14027 * common/version.h: Rename include guard.
14028 * common/vec.h: Rename include guard.
14029 * common/tdesc.h: Rename include guard.
14030 * common/selftest.h: Rename include guard.
14031 * common/scoped_restore.h: Rename include guard.
14032 * common/scoped_mmap.h: Rename include guard.
14033 * common/scoped_fd.h: Rename include guard.
14034 * common/safe-iterator.h: Rename include guard.
14035 * common/run-time-clock.h: Rename include guard.
14036 * common/refcounted-object.h: Rename include guard.
14037 * common/queue.h: Rename include guard.
14038 * common/ptid.h: Rename include guard.
14039 * common/print-utils.h: Rename include guard.
14040 * common/preprocessor.h: Rename include guard.
14041 * common/pathstuff.h: Rename include guard.
14042 * common/observable.h: Rename include guard.
14043 * common/netstuff.h: Rename include guard.
14044 * common/job-control.h: Rename include guard.
14045 * common/host-defs.h: Rename include guard.
14046 * common/gdb_wait.h: Rename include guard.
14047 * common/gdb_vecs.h: Rename include guard.
14048 * common/gdb_unlinker.h: Rename include guard.
14049 * common/gdb_unique_ptr.h: Rename include guard.
14050 * common/gdb_tilde_expand.h: Rename include guard.
14051 * common/gdb_sys_time.h: Rename include guard.
14052 * common/gdb_string_view.h: Rename include guard.
14053 * common/gdb_splay_tree.h: Rename include guard.
14054 * common/gdb_setjmp.h: Rename include guard.
14055 * common/gdb_ref_ptr.h: Rename include guard.
14056 * common/gdb_optional.h: Rename include guard.
14057 * common/gdb_locale.h: Rename include guard.
14058 * common/gdb_assert.h: Rename include guard.
14059 * common/filtered-iterator.h: Rename include guard.
14060 * common/filestuff.h: Rename include guard.
14061 * common/fileio.h: Rename include guard.
14062 * common/environ.h: Rename include guard.
14063 * common/common-utils.h: Rename include guard.
14064 * common/common-types.h: Rename include guard.
14065 * common/common-regcache.h: Rename include guard.
14066 * common/common-inferior.h: Rename include guard.
14067 * common/common-gdbthread.h: Rename include guard.
14068 * common/common-exceptions.h: Rename include guard.
14069 * common/common-defs.h: Rename include guard.
14070 * common/common-debug.h: Rename include guard.
14071 * common/cleanups.h: Rename include guard.
14072 * common/buffer.h: Rename include guard.
14073 * common/btrace-common.h: Rename include guard.
14074 * common/break-common.h: Rename include guard.
14075 * cli/cli-utils.h: Rename include guard.
14076 * cli/cli-style.h: Rename include guard.
14077 * cli/cli-setshow.h: Rename include guard.
14078 * cli/cli-script.h: Rename include guard.
14079 * cli/cli-interp.h: Rename include guard.
14080 * cli/cli-decode.h: Rename include guard.
14081 * cli/cli-cmds.h: Rename include guard.
14082 * charset-list.h: Add include guard.
14083 * buildsym-legacy.h: Rename include guard.
14084 * bfin-tdep.h: Add include guard.
14085 * ax.h: Rename include guard.
14086 * arm-linux-tdep.h: Add include guard.
14087 * arm-fbsd-tdep.h: Add include guard.
14088 * arch/xtensa.h: Rename include guard.
14089 * arch/tic6x.h: Add include guard.
14090 * arch/i386.h: Add include guard.
14091 * arch/arm.h: Rename include guard.
14092 * arch/arm-linux.h: Rename include guard.
14093 * arch/arm-get-next-pcs.h: Rename include guard.
14094 * arch/amd64.h: Add include guard.
14095 * arch/aarch64-insn.h: Rename include guard.
14096 * arch-utils.h: Rename include guard.
14097 * annotate.h: Add include guard.
14098 * amd64-darwin-tdep.h: Rename include guard.
14099 * aarch64-linux-tdep.h: Add include guard.
14100 * aarch64-fbsd-tdep.h: Add include guard.
14101 * aarch32-linux-nat.h: Add include guard.
14103 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14105 * macrotab.c (macro_define_internal): New function that
14106 factorizes macro_define_object_internal and macro_define_function
14108 (macro_define_object_internal): Use macro_define_internal.
14109 (macro_define_function): Likewise.
14111 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14113 * macrocmd.c (extract_identifier): Return
14114 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14117 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14119 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14121 2019-02-05 Tom Tromey <tom@tromey.com>
14123 * target.c (target_stack::unpush): Move assertion earlier.
14125 2019-01-30 Tom Tromey <tom@tromey.com>
14128 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14129 (gdbpy_parse_and_eval): Likewise.
14130 * python/python-internal.h (gdbpy_allow_threads): New class.
14132 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14134 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14135 (aarch64_fbsd_fpregmap): Move earlier.
14136 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14137 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14138 instead of individual calls to trad_frame_set_reg_addr.
14139 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14141 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14142 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14143 instead of individual calls to trad_frame_set_reg_addr.
14145 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14147 * CONTRIBUTE: Replace contribution list with wiki link.
14149 2019-01-25 Tom Tromey <tom@tromey.com>
14151 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14153 2019-01-25 Tom Tromey <tom@tromey.com>
14155 * xtensa-linux-nat.c: Fix common/ includes.
14156 * xml-support.h: Fix common/ includes.
14157 * xml-support.c: Fix common/ includes.
14158 * x86-linux-nat.c: Fix common/ includes.
14159 * windows-nat.c: Fix common/ includes.
14160 * varobj.h: Fix common/ includes.
14161 * varobj.c: Fix common/ includes.
14162 * value.c: Fix common/ includes.
14163 * valops.c: Fix common/ includes.
14164 * utils.c: Fix common/ includes.
14165 * unittests/xml-utils-selftests.c: Fix common/ includes.
14166 * unittests/utils-selftests.c: Fix common/ includes.
14167 * unittests/unpack-selftests.c: Fix common/ includes.
14168 * unittests/tracepoint-selftests.c: Fix common/ includes.
14169 * unittests/style-selftests.c: Fix common/ includes.
14170 * unittests/string_view-selftests.c: Fix common/ includes.
14171 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14172 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14173 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14174 * unittests/rsp-low-selftests.c: Fix common/ includes.
14175 * unittests/parse-connection-spec-selftests.c: Fix common/
14177 * unittests/optional-selftests.c: Fix common/ includes.
14178 * unittests/offset-type-selftests.c: Fix common/ includes.
14179 * unittests/observable-selftests.c: Fix common/ includes.
14180 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14181 * unittests/memrange-selftests.c: Fix common/ includes.
14182 * unittests/memory-map-selftests.c: Fix common/ includes.
14183 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14184 * unittests/function-view-selftests.c: Fix common/ includes.
14185 * unittests/environ-selftests.c: Fix common/ includes.
14186 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14187 * unittests/common-utils-selftests.c: Fix common/ includes.
14188 * unittests/cli-utils-selftests.c: Fix common/ includes.
14189 * unittests/array-view-selftests.c: Fix common/ includes.
14190 * ui-file.c: Fix common/ includes.
14191 * tui/tui-io.c: Fix common/ includes.
14192 * tracepoint.h: Fix common/ includes.
14193 * tracepoint.c: Fix common/ includes.
14194 * tracefile-tfile.c: Fix common/ includes.
14195 * top.h: Fix common/ includes.
14196 * top.c: Fix common/ includes.
14197 * thread.c: Fix common/ includes.
14198 * target/waitstatus.h: Fix common/ includes.
14199 * target/waitstatus.c: Fix common/ includes.
14200 * target.h: Fix common/ includes.
14201 * target.c: Fix common/ includes.
14202 * target-memory.c: Fix common/ includes.
14203 * target-descriptions.c: Fix common/ includes.
14204 * symtab.h: Fix common/ includes.
14205 * symfile.c: Fix common/ includes.
14206 * stap-probe.c: Fix common/ includes.
14207 * spu-linux-nat.c: Fix common/ includes.
14208 * sparc-nat.c: Fix common/ includes.
14209 * source.c: Fix common/ includes.
14210 * solib.c: Fix common/ includes.
14211 * solib-target.c: Fix common/ includes.
14212 * ser-unix.c: Fix common/ includes.
14213 * ser-tcp.c: Fix common/ includes.
14214 * ser-pipe.c: Fix common/ includes.
14215 * ser-base.c: Fix common/ includes.
14216 * selftest-arch.c: Fix common/ includes.
14217 * s12z-tdep.c: Fix common/ includes.
14218 * rust-exp.y: Fix common/ includes.
14219 * rs6000-aix-tdep.c: Fix common/ includes.
14220 * riscv-tdep.c: Fix common/ includes.
14221 * remote.c: Fix common/ includes.
14222 * remote-notif.h: Fix common/ includes.
14223 * remote-fileio.h: Fix common/ includes.
14224 * remote-fileio.c: Fix common/ includes.
14225 * regcache.h: Fix common/ includes.
14226 * regcache.c: Fix common/ includes.
14227 * record-btrace.c: Fix common/ includes.
14228 * python/python.c: Fix common/ includes.
14229 * python/py-type.c: Fix common/ includes.
14230 * python/py-inferior.c: Fix common/ includes.
14231 * progspace.h: Fix common/ includes.
14232 * producer.c: Fix common/ includes.
14233 * procfs.c: Fix common/ includes.
14234 * proc-api.c: Fix common/ includes.
14235 * printcmd.c: Fix common/ includes.
14236 * ppc-linux-nat.c: Fix common/ includes.
14237 * parser-defs.h: Fix common/ includes.
14238 * osdata.c: Fix common/ includes.
14239 * obsd-nat.c: Fix common/ includes.
14240 * nat/x86-linux.c: Fix common/ includes.
14241 * nat/x86-linux-dregs.c: Fix common/ includes.
14242 * nat/x86-dregs.h: Fix common/ includes.
14243 * nat/x86-dregs.c: Fix common/ includes.
14244 * nat/ppc-linux.c: Fix common/ includes.
14245 * nat/mips-linux-watch.h: Fix common/ includes.
14246 * nat/mips-linux-watch.c: Fix common/ includes.
14247 * nat/linux-waitpid.c: Fix common/ includes.
14248 * nat/linux-ptrace.h: Fix common/ includes.
14249 * nat/linux-ptrace.c: Fix common/ includes.
14250 * nat/linux-procfs.c: Fix common/ includes.
14251 * nat/linux-personality.c: Fix common/ includes.
14252 * nat/linux-osdata.c: Fix common/ includes.
14253 * nat/linux-namespaces.c: Fix common/ includes.
14254 * nat/linux-btrace.h: Fix common/ includes.
14255 * nat/linux-btrace.c: Fix common/ includes.
14256 * nat/fork-inferior.c: Fix common/ includes.
14257 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14258 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14259 * nat/aarch64-linux.c: Fix common/ includes.
14260 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14261 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14262 * namespace.h: Fix common/ includes.
14263 * mips-linux-tdep.c: Fix common/ includes.
14264 * minsyms.c: Fix common/ includes.
14265 * mi/mi-parse.h: Fix common/ includes.
14266 * mi/mi-main.c: Fix common/ includes.
14267 * mi/mi-cmd-env.c: Fix common/ includes.
14268 * memrange.h: Fix common/ includes.
14269 * memattr.c: Fix common/ includes.
14270 * maint.h: Fix common/ includes.
14271 * maint.c: Fix common/ includes.
14272 * main.c: Fix common/ includes.
14273 * machoread.c: Fix common/ includes.
14274 * location.c: Fix common/ includes.
14275 * linux-thread-db.c: Fix common/ includes.
14276 * linux-nat.c: Fix common/ includes.
14277 * linux-fork.c: Fix common/ includes.
14278 * inline-frame.c: Fix common/ includes.
14279 * infrun.c: Fix common/ includes.
14280 * inflow.c: Fix common/ includes.
14281 * inferior.h: Fix common/ includes.
14282 * inferior.c: Fix common/ includes.
14283 * infcmd.c: Fix common/ includes.
14284 * inf-ptrace.c: Fix common/ includes.
14285 * inf-child.c: Fix common/ includes.
14286 * ia64-linux-nat.c: Fix common/ includes.
14287 * i387-tdep.c: Fix common/ includes.
14288 * i386-tdep.c: Fix common/ includes.
14289 * i386-linux-tdep.c: Fix common/ includes.
14290 * i386-linux-nat.c: Fix common/ includes.
14291 * i386-go32-tdep.c: Fix common/ includes.
14292 * i386-fbsd-tdep.c: Fix common/ includes.
14293 * i386-fbsd-nat.c: Fix common/ includes.
14294 * guile/scm-type.c: Fix common/ includes.
14295 * guile/guile.c: Fix common/ includes.
14296 * go32-nat.c: Fix common/ includes.
14297 * gnu-nat.c: Fix common/ includes.
14298 * gdbthread.h: Fix common/ includes.
14299 * gdbarch-selftests.c: Fix common/ includes.
14300 * gdb_usleep.c: Fix common/ includes.
14301 * gdb_select.h: Fix common/ includes.
14302 * gdb_bfd.c: Fix common/ includes.
14303 * gcore.c: Fix common/ includes.
14304 * fork-child.c: Fix common/ includes.
14305 * findvar.c: Fix common/ includes.
14306 * fbsd-nat.c: Fix common/ includes.
14307 * event-top.c: Fix common/ includes.
14308 * event-loop.c: Fix common/ includes.
14309 * dwarf2read.c: Fix common/ includes.
14310 * dwarf2loc.c: Fix common/ includes.
14311 * dwarf2-frame.c: Fix common/ includes.
14312 * dwarf-index-cache.c: Fix common/ includes.
14313 * dtrace-probe.c: Fix common/ includes.
14314 * disasm-selftests.c: Fix common/ includes.
14315 * defs.h: Fix common/ includes.
14316 * csky-tdep.c: Fix common/ includes.
14317 * cp-valprint.c: Fix common/ includes.
14318 * cp-support.h: Fix common/ includes.
14319 * cp-support.c: Fix common/ includes.
14320 * corelow.c: Fix common/ includes.
14321 * completer.h: Fix common/ includes.
14322 * completer.c: Fix common/ includes.
14323 * compile/compile.c: Fix common/ includes.
14324 * compile/compile-loc2c.c: Fix common/ includes.
14325 * compile/compile-cplus-types.c: Fix common/ includes.
14326 * compile/compile-cplus-symbols.c: Fix common/ includes.
14327 * command.h: Fix common/ includes.
14328 * cli/cli-dump.c: Fix common/ includes.
14329 * cli/cli-cmds.c: Fix common/ includes.
14330 * charset.c: Fix common/ includes.
14331 * build-id.c: Fix common/ includes.
14332 * btrace.h: Fix common/ includes.
14333 * btrace.c: Fix common/ includes.
14334 * breakpoint.h: Fix common/ includes.
14335 * breakpoint.c: Fix common/ includes.
14337 (enum agent_op): Fix common/ includes.
14338 * ax-general.c (struct aop_map): Fix common/ includes.
14339 * ax-gdb.c: Fix common/ includes.
14340 * auxv.c: Fix common/ includes.
14341 * auto-load.c: Fix common/ includes.
14342 * arm-tdep.c: Fix common/ includes.
14343 * arch/riscv.c: Fix common/ includes.
14344 * arch/ppc-linux-common.c: Fix common/ includes.
14345 * arch/i386.c: Fix common/ includes.
14346 * arch/arm.c: Fix common/ includes.
14347 * arch/arm-linux.c: Fix common/ includes.
14348 * arch/arm-get-next-pcs.c: Fix common/ includes.
14349 * arch/amd64.c: Fix common/ includes.
14350 * arch/aarch64.c: Fix common/ includes.
14351 * arch/aarch64-insn.c: Fix common/ includes.
14352 * arch-utils.c: Fix common/ includes.
14353 * amd64-windows-tdep.c: Fix common/ includes.
14354 * amd64-tdep.c: Fix common/ includes.
14355 * amd64-sol2-tdep.c: Fix common/ includes.
14356 * amd64-obsd-tdep.c: Fix common/ includes.
14357 * amd64-nbsd-tdep.c: Fix common/ includes.
14358 * amd64-linux-tdep.c: Fix common/ includes.
14359 * amd64-linux-nat.c: Fix common/ includes.
14360 * amd64-fbsd-tdep.c: Fix common/ includes.
14361 * amd64-fbsd-nat.c: Fix common/ includes.
14362 * amd64-dicos-tdep.c: Fix common/ includes.
14363 * amd64-darwin-tdep.c: Fix common/ includes.
14364 * agent.c: Fix common/ includes.
14365 * ada-lang.h: Fix common/ includes.
14366 * ada-lang.c: Fix common/ includes.
14367 * aarch64-tdep.c: Fix common/ includes.
14369 2019-01-25 Tom Tromey <tom@tromey.com>
14371 * common/create-version.sh: Use common/version.h.
14373 2019-01-24 Pedro Alves <palves@redhat.com>
14375 * infrun.c (signal_stop, signal_print, signal_program)
14376 (signal_catch, signal_pass): Now arrays instead of pointers.
14377 (update_signals_program_target, do_target_resume)
14378 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14379 * linux-nat.c (linux_nat_target::pass_signals)
14380 (linux_nat_target::create_inferior, linux_nat_target::attach):
14382 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14383 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14384 * procfs.c (procfs_target::pass_signals): Adjust.
14385 * record-full.c (record_full_target::resume): Adjust.
14386 * remote.c (remote_target::pass_signals)
14387 (remote_target::program_signals): Adjust.
14388 * target-debug.h (target_debug_print_signals): Now takes a
14389 gdb::array_view as parameter. Adjust.
14390 * target.h (target_ops) <pass_signals, program_signals>: Replace
14391 pointer and length parameters with gdb::array_view.
14392 (target_pass_signals, target_program_signals): Likewise.
14393 * target-delegates.c: Regenerate.
14395 2019-01-24 Pedro Alves <palves@redhat.com>
14397 * common/forward-scope-exit.h
14398 (forward_scope_exit::forward_scope_exit): Pass arguments to
14399 m_bind_function directly, instead of creating a std::bind and
14402 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14404 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14405 for static members.
14406 (pass_in_v_vfp_candidate): Likewise.
14408 2019-01-23 Tom Tromey <tom@tromey.com>
14409 Pedro Alves <palves@redhat.com>
14411 * regcache.c (class regcache_invalidator): Remove.
14412 (regcache::raw_write): Use make_scope_exit.
14414 2019-01-23 Tom Tromey <tom@tromey.com>
14416 * ui-out.h (class ui_out_emit_type): Update comment.
14418 2019-01-23 Tom Tromey <tom@tromey.com>
14420 * infrun.c (fetch_inferior_event): Update comment.
14422 2019-01-23 Tom Tromey <tom@tromey.com>
14423 Pedro Alves <palves@redhat.com>
14425 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14427 (fetch_inferior_event): Use SCOPE_EXIT.
14430 2019-01-23 Tom Tromey <tom@tromey.com>
14431 Pedro Alves <palves@redhat.com>
14433 * infrun.c (disable_thread_events): Delete.
14434 (stop_all_threads): Use SCOPE_EXIT.
14436 2019-01-23 Tom Tromey <tom@tromey.com>
14437 Pedro Alves <palves@redhat.com>
14439 * symfile.c: Include forward-scope-exit.h.
14440 (clear_symtab_users_cleanup): Replace forward declaration with
14441 a FORWARD_SCOPE_EXIT.
14442 (syms_from_objfile_1): Use the forward_scope_exit and
14443 gdb::optional instead of cleanup_function.
14444 (reread_symbols): Use the forward_scope_exit instead of
14446 (clear_symtab_users_cleanup): Remove function.
14448 2019-01-23 Tom Tromey <tom@tromey.com>
14449 Pedro Alves <palves@redhat.com>
14451 * linux-nat.c: Include scope-exit.h.
14452 (cleanup_target_stop): Remove.
14453 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14456 2019-01-23 Tom Tromey <tom@tromey.com>
14457 Pedro Alves <palves@redhat.com>
14459 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14460 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14462 2019-01-23 Tom Tromey <tom@tromey.com>
14463 Andrew Burgess <andrew.burgess@embecosm.com>
14464 Pedro Alves <palves@redhat.com>
14466 * infrun.c (fetch_inferior_event): Use scope_exit.
14467 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14468 * top.c (execute_command): Use scope_exit.
14469 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14470 * utils.c (do_bpstat_clear_actions_cleanup)
14471 (make_bpstat_clear_actions_cleanup): Remove.
14473 2019-01-23 Tom Tromey <tom@tromey.com>
14474 Pedro Alves <palves@redhat.com>
14476 * infrun.c: Include "common/scope-exit.h"
14477 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14478 (wait_for_inferior): Use SCOPE_EXIT.
14479 (fetch_inferior_event): Use scope_exit.
14481 2019-01-23 Tom Tromey <tom@tromey.com>
14482 Pedro Alves <palves@redhat.com>
14484 * breakpoint.c (create_breakpoint): Remove cleanup.
14486 2019-01-23 Tom Tromey <tom@tromey.com>
14487 Andrew Burgess <andrew.burgess@embecosm.com>
14488 Pedro Alves <palves@redhat.com>
14490 2019-01-23 Pedro Alves <palves@redhat.com>
14492 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14494 2019-01-23 Pedro Alves <palves@redhat.com>
14495 Andrew Burgess <andrew.burgess@embecosm.com>
14497 * gdbthread.h: Include "common/forward-scope-exit.h".
14498 (scoped_finish_thread_state): Redefine custom class in terms of
14499 forward_scope_exit.
14501 2019-01-23 Pedro Alves <palves@redhat.com>
14502 Andrew Burgess <andrew.burgess@embecosm.com>
14504 * common/forward-scope-exit.h: New file.
14506 2019-01-23 Pedro Alves <palves@redhat.com>
14507 Andrew Burgess <andrew.burgess@embecosm.com>
14508 Tom Tromey <tom@tromey.com>
14510 * common/scope-exit.h: New file.
14512 2019-01-23 Pedro Alves <palves@redhat.com>
14514 * common/preprocessor.h (ESC): Rename to ...
14515 (ESC_PARENS): ... this.
14516 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14517 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14519 2019-01-23 Tom Tromey <tom@tromey.com>
14521 * language.h (class scoped_switch_to_sym_language_if_auto):
14522 Initialize m_lang in both cases.
14524 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14526 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14529 2019-01-22 Tom Tromey <tom@tromey.com>
14531 * corelow.c: Do not include sys/file.h.
14533 2019-01-22 Tom Tromey <tom@tromey.com>
14535 * tui/tui-wingeneral.h: Include gdb_curses.h.
14537 2019-01-22 Tom Tromey <tom@tromey.com>
14539 * source-cache.h (class source_cache) <get_source_lines,
14540 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14542 2019-01-22 Tom Tromey <tom@tromey.com>
14544 * remote-fileio.h (struct remote_target): Declare.
14546 2019-01-22 Tom Tromey <tom@tromey.com>
14548 * python/py-arch.c: Do not include py-ref.h.
14549 * python/py-bpevent.c: Do not include py-ref.h.
14550 * python/py-cmd.c: Do not include py-ref.h.
14551 * python/py-continueevent.c: Do not include py-ref.h.
14552 * python/py-event.h: Do not include py-ref.h.
14553 * python/py-evtregistry.c: Do not include py-ref.h.
14554 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14555 * python/py-frame.c: Do not include py-ref.h.
14556 * python/py-framefilter.c: Do not include py-ref.h.
14557 * python/py-function.c: Do not include py-ref.h.
14558 * python/py-infevents.c: Do not include py-ref.h.
14559 * python/py-linetable.c: Do not include py-ref.h.
14560 * python/py-objfile.c: Do not include py-ref.h.
14561 * python/py-param.c: Do not include py-ref.h.
14562 * python/py-prettyprint.c: Do not include py-ref.h.
14563 * python/py-progspace.c: Do not include py-ref.h.
14564 * python/py-symbol.c: Do not include py-ref.h.
14565 * python/py-symtab.c: Do not include py-ref.h.
14566 * python/py-type.c: Do not include py-ref.h.
14567 * python/py-unwind.c: Do not include py-ref.h.
14568 * python/py-utils.c: Do not include py-ref.h.
14569 * python/py-value.c: Do not include py-ref.h.
14570 * python/py-varobj.c: Do not include py-ref.h.
14571 * python/py-xmethods.c: Do not include py-ref.h.
14572 * python/python.c: Do not include py-ref.h.
14573 * varobj.c: Do not include py-ref.h.
14575 2019-01-22 Tom Tromey <tom@tromey.com>
14577 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14578 keyword for bcache.
14580 2019-01-22 Tom Tromey <tom@tromey.com>
14582 * compile/compile-cplus-types.c: Remove a comment by #include.
14584 2019-01-22 Tom Tromey <tom@tromey.com>
14586 * compile/gcc-c-plugin.h: Include compile-internal.h.
14588 2019-01-22 Tom Tromey <tom@tromey.com>
14590 * stabsread.c (EXTERN): Do not define.
14591 (symnum, next_symbol_text_func, processing_gcc_compilation)
14592 (within_function, global_sym_chain, global_stabs)
14593 (previous_stab_code, this_object_header_files)
14594 (n_this_object_header_files)
14595 (n_allocated_this_object_header_files): Define.
14596 * stabsread.h (EXTERN): Never define. Use "extern".
14598 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14600 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14603 2019-01-21 Tom Tromey <tom@tromey.com>
14605 * ui-out.c: Fix includes.
14606 * tui/tui-source.c: Fix includes.
14607 * target.c: Fix includes.
14608 * remote.c: Fix includes.
14609 * regcache.c: Fix includes.
14610 * python/py-block.c: Fix includes.
14611 * printcmd.c: Fix includes.
14612 * or1k-tdep.c: Fix includes.
14613 * mi/mi-main.c: Fix includes.
14614 * m32r-tdep.c: Fix includes.
14615 * csky-tdep.c: Fix includes.
14616 * compile/compile-cplus-types.c: Fix includes.
14617 * cli/cli-interp.c: Fix includes.
14619 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14621 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14624 2019-01-16 Tom Tromey <tom@tromey.com>
14626 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14628 (struct objfile) <msymbols_range>: Move from top level.
14629 <msymbols>: New method.
14630 (class objfile_msymbols): Remove.
14631 * symtab.c (default_collect_symbol_completion_matches_break_on):
14633 * symmisc.c (dump_msymbols): Update.
14634 * stabsread.c (scan_file_globals): Update.
14635 * objc-lang.c (info_selectors_command, info_classes_command)
14636 (find_methods): Update.
14637 * minsyms.c (find_solib_trampoline_target): Update.
14638 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14639 * coffread.c (coff_symfile_read): Update.
14640 * ada-lang.c (ada_lookup_simple_minsym)
14641 (ada_collect_symbol_completion_matches): Update.
14643 2019-01-16 Tom Tromey <tom@tromey.com>
14645 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14646 type. Remove no-argument constructor.
14647 <iterator::operator++>: Simplify.
14649 <end>: Use minimal_symbol_count.
14651 2019-01-16 Tom Tromey <tom@tromey.com>
14653 * objfiles.h (struct objfile) <psymtabs>: New method.
14654 (class objfile_psymtabs): Remove.
14655 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14657 <range>: New method.
14658 (require_partial_symbols): Change return type.
14659 * psymtab.c (require_partial_symbols)
14660 (psym_expand_symtabs_matching): Update.
14661 * mdebugread.c (parse_partial_symbols): Update.
14662 * dbxread.c (dbx_end_psymtab): Update.
14664 2019-01-15 Tom Tromey <tom@tromey.com>
14666 * symtab.c (lookup_objfile_from_block)
14667 (lookup_symbol_in_objfile_symtabs)
14668 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14669 (find_line_symtab, info_sources_command)
14670 (default_collect_symbol_completion_matches_break_on)
14671 (make_source_files_completion_list): Update.
14672 * symmisc.c (print_objfile_statistics, dump_objfile)
14673 (maintenance_print_symbols, maintenance_info_symtabs)
14674 (maintenance_check_symtabs, maintenance_info_line_tables):
14676 * source.c (select_source_symtab)
14677 (forget_cached_source_info_for_objfile): Update.
14678 * objfiles.h (class objfile_compunits): Remove.
14679 (struct objfile) <compunits_range>: New typedef.
14680 (compunits): New method.
14681 * objfiles.c (objfile_relocate1): Update.
14682 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14683 * maint.c (count_symtabs_and_blocks): Update.
14684 * linespec.c (iterate_over_all_matching_symtabs): Update.
14685 * cp-support.c (add_symbol_overload_list_qualified): Update.
14686 * coffread.c (coff_symtab_read): Update.
14687 * ada-lang.c (add_nonlocal_symbols)
14688 (ada_collect_symbol_completion_matches)
14689 (ada_add_global_exceptions): Update.
14691 2019-01-15 Tom Tromey <tom@tromey.com>
14693 * progspace.h (program_space) <objfiles_safe_range>: New
14695 <objfiles_safe>: New method.
14696 * objfiles.h (class all_objfiles_safe): Remove.
14697 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14698 * jit.c (jit_inferior_exit_hook): Update.
14700 2019-01-17 Tom Tromey <tom@tromey.com>
14702 * progspace.h (program_space) <objfiles_range>: New typedef.
14703 <objfiles>: New method.
14704 <objfiles_head>: Rename from objfiles.
14705 (object_files): Update.
14706 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14707 * guile/scm-pretty-print.c
14708 (ppscm_find_pretty_printer_from_objfiles): Update.
14709 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14710 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14712 * python/py-progspace.c (pspy_get_objfiles): Update.
14713 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14715 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14716 (objfpy_lookup_objfile_by_build_id): Update.
14717 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14718 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14720 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14721 (expand_symtab_containing_pc, lookup_objfile_from_block)
14722 (lookup_static_symbol, basic_lookup_transparent_type)
14723 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14724 (find_line_symtab, info_sources_command)
14725 (default_collect_symbol_completion_matches_break_on)
14726 (make_source_files_completion_list, find_main_name): Update.
14727 * symmisc.c (print_symbol_bcache_statistics)
14728 (print_objfile_statistics, maintenance_print_symbols)
14729 (maintenance_print_msymbols, maintenance_print_objfiles)
14730 (maintenance_info_symtabs, maintenance_check_symtabs)
14731 (maintenance_expand_symtabs, maintenance_info_line_tables):
14733 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14734 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14735 (map_overlay_command, unmap_overlay_command)
14736 (simple_overlay_update, expand_symtabs_matching)
14737 (map_symbol_filenames): Update.
14738 * symfile-debug.c (set_debug_symfile): Update.
14739 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14741 * source.c (select_source_symtab, forget_cached_source_info):
14743 * solib.c (solib_read_symbols): Update.
14744 * solib-spu.c (append_ocl_sos): Update.
14745 * psymtab.c (maintenance_print_psymbols)
14746 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14747 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14748 * printcmd.c (info_symbol_command): Update.
14749 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14751 * objfiles.h (class all_objfiles): Remove.
14752 * objfiles.c (have_partial_symbols, have_full_symbols)
14753 (have_minimal_symbols, qsort_cmp, update_section_map)
14754 (shared_objfile_contains_address_p)
14755 (default_iterate_over_objfiles_in_search_order): Update.
14756 * objc-lang.c (info_selectors_command, info_classes_command)
14757 (find_methods): Update.
14758 * minsyms.c (find_solib_trampoline_target): Update.
14759 * maint.c (maintenance_info_sections)
14760 (maintenance_translate_address, count_symtabs_and_blocks):
14762 * main.c (captured_main_1): Update.
14763 * linux-thread-db.c (try_thread_db_load_from_pdir)
14764 (has_libpthread): Update.
14765 * linespec.c (iterate_over_all_matching_symtabs)
14766 (search_minsyms_for_name): Update.
14767 * jit.c (jit_find_objf_with_entry_addr): Update.
14768 * hppa-tdep.c (find_unwind_entry)
14769 (hppa_lookup_stub_minimal_symbol): Update.
14770 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14772 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14773 (elf_gnu_ifunc_resolve_by_got): Update.
14774 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14775 * dwarf-index-write.c (save_gdb_index_command): Update.
14776 * cp-support.c (add_symbol_overload_list_qualified): Update.
14777 * breakpoint.c (create_overlay_event_breakpoint)
14778 (create_longjmp_master_breakpoint)
14779 (create_std_terminate_master_breakpoint)
14780 (create_exception_master_breakpoint): Update.
14781 * blockframe.c (find_pc_partial_function): Update.
14782 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14783 (ada_collect_symbol_completion_matches)
14784 (ada_add_global_exceptions): Update.
14786 2019-01-17 Tom Tromey <tom@tromey.com>
14788 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14790 (solib_target_parse_libraries): Change return type.
14791 (library_list_start_segment, library_list_start_section)
14792 (library_list_end_library, library_list_start_library); Update.
14793 (solib_target_free_library_list): Remove.
14794 (solib_target_parse_libraries): Remove cleanup. Change return
14796 (solib_target_current_sos): Update.
14798 2019-01-17 Tom Tromey <tromey@bapiya>
14800 * valprint.c: Replace "the the" with "the".
14801 * symtab.c: Replace "the the" with "the".
14802 * solib.c: Replace "the the" with "the".
14803 * solib-dsbt.c: Replace "the the" with "the".
14804 * linespec.c: Replace "the the" with "the".
14805 * dwarf2loc.h: Replace "the the" with "the".
14806 * amd64-windows-tdep.c: Replace "the the" with "the".
14807 * aarch64-tdep.c: Replace "the the" with "the".
14809 2019-01-16 Keith Seitz <keiths@redhat.com>
14812 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14813 <builder>: Rename to ..
14814 <m_builder>: ... this and make private.
14815 (dwarf2_cu::get_builder): New method. Change all users of
14816 `builder' to use this method.
14817 (dwarf2_start_symtab): Move to ...
14818 (dwarf2_cu::start_symtab): ... here. Update all callers
14819 (setup_type_unit_groups): Move to ...
14820 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14822 (dwarf2_cu::reset_builder): New method.
14823 (process_full_compunit, process_full_type_unit): Use
14824 dwarf2_cu::reset_builder.
14825 (follow_die_offset): Record the ancestor CU if it is different
14826 from the followed DIE's CU.
14827 (follow_die_sig_1): Likewise.
14829 2019-01-15 Tom Tromey <tom@tromey.com>
14831 * remote.c (class remote_state) <buf>: Now a char_vector.
14832 <buf_size>: Remove.
14833 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14835 (remote_target::getpkt_or_notif_sane_1)
14836 (remote_target::getpkt_sane)
14837 (remote_target::getpkt_or_notif_sane): Likewise.
14838 (class remote_target) <putpkt>: New overload.
14839 (remote_target::read_frame): Change type of "buf_p". Remove
14840 sizeof_p parameter.
14841 (packet_ok): New overload.
14842 (packet_check_result): New overload.
14845 2019-01-14 Tom Tromey <tom@tromey.com>
14847 * remote-notif.c (handle_notification, remote_notif_ack)
14848 (remote_notif_parse): Make "buf" const.
14849 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14851 (remote_notif_parse, remote_notif_ack, handle_notification):
14853 * remote.c (remote_notif_stop_parse): Make "buf" const.
14854 (remote_target::remote_parse_stop_reply): Make "buf" const.
14855 (remote_notif_stop_ack): Make "buf" const.
14857 2019-01-14 Tom Tromey <tom@tromey.com>
14859 * remote.c (remote_console_output): Make parameter const.
14861 2019-01-14 Tom Tromey <tom@tromey.com>
14863 * target-debug.h (target_debug_print_signals): Constify.
14864 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14865 * procfs.c (procfs_target::pass_signals): Update.
14866 * linux-nat.c (linux_nat_target::pass_signals): Update.
14867 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14868 * target-delegates.c: Rebuild.
14869 * remote.c (remote_target::program_signals): Update.
14870 (remote_target::pass_signals): Update.
14871 * target.c (target_pass_signals): Constify argument.
14872 (target_program_signals): Likewise.
14873 * target.h (struct target_ops) <pass_signals, program_signals>:
14875 (target_pass_signals, target_program_signals): Constify argument.
14877 2019-01-14 Tom Tromey <tom@tromey.com>
14880 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14882 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14884 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14886 * rs6000-tdep.c: Include reggroups.h.
14887 (IS_V_ALIAS_PSEUDOREG): Define.
14888 (rs6000_register_name): Return names for the "vX" aliases.
14889 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14890 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14891 aliases. Call default_register_reggroup_p for all other
14893 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14895 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14896 Handle "vX" aliases.
14897 (v_alias_pseudo_register_collect): New function.
14898 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14899 (rs6000_gdbarch_init): Initialize "vX" aliases as
14900 pseudo-registers. Restore registration of
14901 rs6000_pseudo_register_reggroup_p with
14902 set_tdesc_pseudo_register_reggroup_p.
14904 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14906 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14907 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14908 set_gdbarch_num_pseudo_regs.
14910 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14912 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14913 Remove arg prefixname, add do_set and do_show.
14914 Add member functions set_list and show_list.
14915 * cli/cli-style.c (class cli_style_option): Update accordingly.
14916 (style_set_list): Move to file scope.
14917 (style_show_list): Likewise.
14918 (set_style): Call help_list.
14919 (show_style): Call cmd_show_list.
14920 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14921 Update to use the new macro.
14923 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14925 * ada-lang.c (_initialize_ada_language): Expand the help text
14926 for the "catch exception" command.
14928 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14930 * symtab.c (matching_obj_sections): Initialize obj,
14931 declare it closer to its usage.
14933 2019-01-10 Tom Tromey <tom@tromey.com>
14935 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14936 (basic_inf_threads_range): Remove.
14937 (inf_threads_range, inf_non_exited_threads_range)
14938 (safe_inf_threads_range): Use next_adapter.
14940 2019-01-10 Keith Seitz <keiths@redhat.com>
14944 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14945 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14947 2019-01-10 Keith Seitz <keiths@redhat.com>
14951 * dictionary.c (pending_to_vector): Remove.
14952 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14953 Remove _1 suffix, replacing functions of the same name. Update
14955 (dict_create_hashed, dict_create_hashed_expandable)
14956 (dict_create_linear, dict_create_linear_expandable, dict_free)
14957 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14958 Make functions static.
14960 2019-01-10 Keith Seitz <keiths@redhat.com>
14964 * dictionary.h (struct dictionary): Replace declaration with
14966 (dict_create_hashed, dict_create_hashed_expandable)
14967 (dict_create_linear, dict_create_linear_expandable)
14968 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14969 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14970 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14971 taking multidictionary argument.
14972 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14973 * block.h (struct block) <dict>: Change to multidictionary
14974 and rename `multidict'.
14975 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14976 symmisc.c: Update all dictionary references to multidictionary.
14978 2019-01-10 Keith Seitz <keiths@redhat.com>
14982 * dictionary.c: Include unordered_map.
14983 (pending_to_vector): New function.
14984 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14985 Rewrite the non-"_1" functions to take vector instead
14987 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14988 "new" _1 versions of the same name.
14989 (multidictionary): Define.
14990 (std::hash<enum language): New definition.
14991 (collate_pending_symbols_by_language, mdict_create_hashed)
14992 (mdict_create_hashed_expandable, mdict_create_linear)
14993 (mdict_create_linear_expandable, mdict_free)
14994 (find_language_dictionary, create_new_language_dictionary)
14995 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14996 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14997 (mdict_size, mdict_empty): New functions.
14998 * dictionary.h (mdict_iterator): Define.
15000 2019-01-10 Pedro Alves <palves@redhat.com>
15002 * breakpoint.c (read_uploaded_action)
15003 (create_tracepoint_from_upload): Adjust to use
15004 gdb::unique_xmalloc_ptr.
15005 * ctf.c (ctf_write_uploaded_tp):
15006 (SET_ARRAY_FIELD): Use emplace_back.
15007 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15008 * tracefile-tfile.c (tfile_write_uploaded_tp):
15009 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15010 gdb::unique_xmalloc_ptr.
15011 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15012 at_string, cond_string, cmd_strings>: Replace char pointers
15013 with gdb::unique_xmalloc_ptr.
15015 2019-01-10 Pedro Alves <palves@redhat.com>
15017 * solib-target.c (library_list_start_library): Don't xstrdup name.
15019 2019-01-10 Pedro Alves <palves@redhat.com>
15021 * mdebugread.c (parse_partial_symbols): Use
15022 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15024 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15026 * linux-fork.c (scoped_switch_fork_info)
15027 <~scoped_switch_fork_info>: Fix incorrect variable name.
15029 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15031 * linux-fork.c (scoped_switch_fork_info)
15032 <scoped_switch_fork_info>: Make explicit.
15033 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15035 2019-01-10 Tom Tromey <tom@tromey.com>
15037 * objfiles.h (objfile::reset_psymtabs): Update.
15038 * objfiles.c (objfile::objfile): Update.
15039 * psymtab.h (psymtab_storage::obstack): Update.
15040 (psymtab_storage::m_obstack): Use gdb::optional.
15041 (class psymtab_storage): Update comment. Remove objfile
15043 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15045 2019-01-10 Tom Tromey <tom@tromey.com>
15047 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15048 <free_psymtabs>: Now private.
15049 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15050 (allocate_psymtab): Use new method.
15052 2019-01-10 Tom Tromey <tom@tromey.com>
15054 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15055 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15056 * mdebugread.c (parse_partial_symbols): Use
15057 allocate_dependencies.
15058 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15059 allocate_dependencies.
15060 (process_psymtab_comp_unit_reader)
15061 (build_type_psymtab_dependencies): Likewise.
15062 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15064 2019-01-10 Tom Tromey <tom@tromey.com>
15066 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15067 PSYMBOL_SET_LANGUAGE.
15068 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15070 2019-01-10 Tom Tromey <tom@tromey.com>
15072 * psymtab.h (psymtab_storage::obstack): New method.
15073 <m_obstack>: Rename from obstack; now private.
15074 * psymtab.c (psymtab_storage): Update.
15075 * dwarf2read.c (create_addrmap_from_index)
15076 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15079 2019-01-10 Tom Tromey <tom@tromey.com>
15081 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15082 * objfiles.h (objfile::reset_psymtabs): New method.
15084 2019-01-10 Tom Tromey <tom@tromey.com>
15086 * symmisc.c (print_symbol_bcache_statistics): Update.
15087 (print_objfile_statistics): Update.
15088 * symfile.c (reread_symbols): Update.
15089 * psymtab.h (class psymtab_storage): New.
15090 * psymtab.c (psymtab_storage): New constructor.
15091 (~psymtab_storage): New destructor.
15092 (require_partial_symbols): Update.
15093 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15094 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15095 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15096 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15097 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15098 (start_psymtab_common, end_psymtab_common)
15099 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15100 (allocate_psymtab): Update.
15101 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15103 (dump_psymtab_addrmap, maintenance_print_psymbols)
15104 (maintenance_check_psymtabs): Update.
15105 (class objfile_psymtabs): Move to objfiles.h.
15106 * psympriv.h (discard_psymtab): Now inline.
15107 (psymtab_discarder::psymtab_discarder): Update.
15108 (psymtab_discarder::~psymtab_discarder): Update.
15109 (ALL_OBJFILE_PSYMTABS): Rewrite.
15110 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15111 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15113 <partial_symtabs>: New field.
15114 (class objfile_psymtabs): Move from psymtab.h. Update.
15115 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15117 (objfile::~objfile): Don't destroy psymbol_cache.
15118 * mdebugread.c (parse_partial_symbols): Update.
15119 * dwarf2read.c (create_addrmap_from_index)
15120 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15121 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15122 (add_partial_subprogram, dwarf2_ranges_read): Update.
15123 * dwarf-index-write.c (write_address_map)
15124 (write_one_signatured_type, recursively_write_psymbols)
15125 (class debug_names, class debug_names, write_psymtabs_to_index):
15128 2019-01-10 Tom Tromey <tom@tromey.com>
15130 * symtab.h (SYMBOL_SET_NAMES): Update.
15131 (symbol_set_names): Update.
15132 (MSYMBOL_SET_NAMES): Update.
15133 * symtab.c (symbol_set_names): Change argument to be an
15134 objfile_per_bfd_storage.
15135 * psymtab.c (add_psymbol_to_bcache): Update.
15136 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15138 2019-01-10 Tom Tromey <tom@tromey.com>
15140 * symtab.c (create_demangled_names_hash): Change argument to be an
15141 objfile_per_bfd_storage.
15142 (symbol_set_names): Update.
15144 2019-01-10 Tom Tromey <tom@tromey.com>
15146 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15148 * psymtab.c (init_psymbol_list): Do nothing if already called.
15149 * psympriv.h (init_psymbol_list): Add comment.
15150 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15152 * dbxread.c (dbx_symfile_read): Unconditionally call
15155 2019-01-10 Tom Tromey <tom@tromey.com>
15157 * xcoffread.c (scan_xcoff_symtab): Update.
15158 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15160 * mdebugread.c (parse_partial_symbols)
15161 (handle_psymbol_enumerators): Update.
15162 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15163 * dbxread.c (read_dbx_symtab): Update.
15164 * psympriv.h (psymbol_placement): New enum.
15165 (add_psymbol_to_list): Update.
15167 2019-01-10 Tom Tromey <tom@tromey.com>
15169 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15170 static_psymbols parameters.
15171 (scan_xcoff_symtab): Update.
15172 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15173 static_psymbols parameters.
15174 * psympriv.h (start_psymtab_common): Update.
15175 * mdebugread.c (parse_partial_symbols): Update.
15176 * dwarf2read.c (create_partial_symtab): Update.
15177 * dbxread.c (read_dbx_symtab): Update.
15178 (start_psymtab): Remove global_psymbols and static_psymbols
15181 2019-01-10 Tom Tromey <tom@tromey.com>
15183 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15184 * psymtab.c (allocate_psymtab): Add comment.
15185 * psympriv.h (allocate_psymtab): Add comment.
15186 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15188 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15190 2019-01-10 Tom Tromey <tom@tromey.com>
15192 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15194 * mipsread.c: Include mdebugread.h.
15195 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15197 * elfread.c: Include mdebugread.h.
15199 2019-01-09 Tom Tromey <tom@tromey.com>
15201 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15202 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15203 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15204 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15205 (psym_lookup_symbol, psym_find_last_source_symtab)
15206 (psym_forget_cached_source_info, psym_print_stats)
15207 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15208 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15209 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15210 (psym_find_compunit_symtab_by_address)
15211 (maintenance_print_psymbols, maintenance_info_psymtabs)
15212 (maintenance_check_psymtabs): Use ranged for.
15213 * psymtab.h (class objfile_psymtabs): New.
15214 (require_partial_symbols): Return objfile_psymtabs.
15215 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15217 2019-01-09 Tom Tromey <tom@tromey.com>
15219 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15220 (find_pc_mapped_section, list_overlays_command)
15221 (map_overlay_command, unmap_overlay_command)
15222 (simple_overlay_update): Use all_objfiles.
15223 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15224 * printcmd.c (info_symbol_command): Use all_objfiles.
15225 * objfiles.h (ALL_OBJSECTIONS): Remove.
15226 * maint.c (maintenance_translate_address): Use all_objfiles.
15227 * gcore.c (gcore_create_callback): Use all_objfiles.
15228 (objfile_find_memory_regions): Likewise.
15230 2019-01-09 Tom Tromey <tom@tromey.com>
15232 * symtab.c (find_line_symtab, info_sources_command)
15233 (make_source_files_completion_list): Use objfile_compunits.
15234 * source.c (select_source_symtab): Use objfile_compunits.
15235 * objfiles.h (struct objfile): Update comment.
15236 (ALL_OBJFILES): Remove.
15237 (ALL_FILETABS): Remove.
15238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15241 2019-01-09 Tom Tromey <tom@tromey.com>
15243 * symmisc.c (print_objfile_statistics, dump_objfile)
15244 (maintenance_print_symbols): Use compunit_filetabs.
15245 * source.c (forget_cached_source_info_for_objfile): Use
15247 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15248 (ALL_FILETABS): Use compunit_filetabs.
15249 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15250 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15252 2019-01-09 Tom Tromey <tom@tromey.com>
15254 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15255 (compunit_filetabs): New.
15256 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15258 (info_sources_command, make_source_files_completion_list): Remove
15260 * symmisc.c (print_objfile_statistics, dump_objfile)
15261 (maintenance_print_symbols): Remove declaration.
15262 (maintenance_info_symtabs): Use compunit_filetabs.
15263 (maintenance_info_line_tables): Likewise.
15264 * source.c (select_source_symtab): Change local variable name.
15265 (forget_cached_source_info_for_objfile): Remove declaration.
15266 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15267 * objfiles.c (objfile_relocate1): Remove declaration.
15268 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15270 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15271 * coffread.c (coff_symtab_read): Remove declaration.
15272 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15275 2019-01-09 Tom Tromey <tom@tromey.com>
15277 * symtab.c (lookup_objfile_from_block)
15278 (find_pc_sect_compunit_symtab, search_symbols)
15279 (default_collect_symbol_completion_matches_break_on): Use
15281 * objfiles.h (ALL_COMPUNITS): Remove.
15282 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15283 * cp-support.c (add_symbol_overload_list_qualified): Use
15285 * ada-lang.c (ada_collect_symbol_completion_matches)
15286 (ada_add_global_exceptions): Use objfile_compunits.
15288 2019-01-09 Tom Tromey <tom@tromey.com>
15290 * source.c (select_source_symtab)
15291 (forget_cached_source_info_for_objfile): Remove declaration.
15292 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15294 * maint.c (count_symtabs_and_blocks): Remove declaration.
15295 * cp-support.c (add_symbol_overload_list_qualified): Remove
15297 * coffread.c (coff_symtab_read): Remove declaration.
15298 * symtab.c (lookup_symbol_in_objfile_symtabs)
15299 (basic_lookup_transparent_type_1): Use objfile_compunits.
15300 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15301 (info_sources_command, search_symbols)
15302 (default_collect_symbol_completion_matches_break_on)
15303 (make_source_files_completion_list): Remove declaration.
15304 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15305 (ada_collect_symbol_completion_matches)
15306 (ada_add_global_exceptions): Remove declaration.
15307 * linespec.c (iterate_over_all_matching_symtabs): Use
15309 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15310 (class objfile_compunits): New.
15311 (ALL_COMPUNITS): Use objfile_compunits.
15312 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15313 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15315 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15317 2019-01-09 Tom Tromey <tom@tromey.com>
15319 * symtab.c (search_symbols)
15320 (default_collect_symbol_completion_matches_break_on): Use
15322 * ada-lang.c (ada_lookup_simple_minsym)
15323 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15324 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15325 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15327 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15328 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15329 * objc-lang.c (find_methods): Use objfile_msymbols.
15330 (info_selectors_command, info_classes_command): Likewise.
15331 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15332 * objfiles.h (class objfile_msymbols): New.
15333 (ALL_OBJFILE_MSYMBOLS): Remove.
15334 (ALL_MSYMBOLS): Remove.
15336 2019-01-09 Tom Tromey <tom@tromey.com>
15338 * common/next-iterator.h (next_adapter): Add Iterator template
15340 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15341 (class all_objfiles_safe): New.
15342 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15343 * objfiles.c (put_objfile_before): Update comment.
15344 (add_separate_debug_objfile): Likewise.
15345 (free_all_objfiles): Use all_objfiles_safe.
15346 (objfile_purge_solibs): Likewise.
15348 2019-01-09 Tom Tromey <tom@tromey.com>
15350 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15351 (expand_symtab_containing_pc, lookup_static_symbol)
15352 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15353 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15355 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15356 * breakpoint.c (create_overlay_event_breakpoint)
15357 (create_longjmp_master_breakpoint)
15358 (create_std_terminate_master_breakpoint)
15359 (create_exception_master_breakpoint): Use all_objfiles.
15360 * linux-thread-db.c (try_thread_db_load_from_pdir)
15361 (has_libpthread): Use all_objfiles.
15362 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15363 * linespec.c (iterate_over_all_matching_symtabs)
15364 (search_minsyms_for_name): Use all_objfiles.
15365 * maint.c (maintenance_info_sections): Use all_objfiles.
15366 * main.c (captured_main_1): Use all_objfiles.
15367 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15368 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15369 * guile/scm-pretty-print.c
15370 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15371 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15372 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15373 (maintenance_print_msymbols): Use all_objfiles.
15374 * source.c (select_source_symtab): Use all_objfiles.
15375 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15376 * symfile.c (remove_symbol_file_command)
15377 (expand_symtabs_matching, map_symbol_filenames): Use
15379 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15381 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15382 * objc-lang.c (find_methods): Use all_objfiles.
15383 * objfiles.c (have_partial_symbols, have_full_symbols)
15384 (have_minimal_symbols, qsort_cmp)
15385 (default_iterate_over_objfiles_in_search_order): Use
15387 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15388 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15389 (maintenance_check_psymtabs): Use all_objfiles.
15390 (ALL_PSYMTABS): Remove.
15391 * compile/compile-object-run.c (do_module_cleanup): Use
15393 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15394 * cp-support.c (add_symbol_overload_list_qualified): Use
15396 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15398 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15399 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15401 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15402 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15403 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15405 * solib.c (solib_read_symbols): Use all_objfiles
15407 2019-01-09 Tom Tromey <tom@tromey.com>
15409 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15410 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15412 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15413 * symmisc.c (print_symbol_bcache_statistics)
15414 (print_objfile_statistics, maintenance_print_objfiles)
15415 (maintenance_info_symtabs, maintenance_check_symtabs)
15416 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15418 * source.c (forget_cached_source_info): Use all_objfiles.
15419 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15420 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15421 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15422 * objfiles.c (update_section_map): Use all_objfiles.
15423 (shared_objfile_contains_address_p): Likewise.
15424 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15425 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15427 2019-01-09 Tom Tromey <tom@tromey.com>
15429 * common/next-iterator.h: New file.
15430 * objfiles.h (class all_objfiles): New.
15431 (struct objfile_iterator): New.
15433 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15435 * NEWS: Move the description of the changed "frame", "select-frame",
15436 and "info frame" commands to the Changed commands section.
15438 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15440 * gdbtypes.c (check_stub_method_group): Remove handling of old
15442 * linespec.c (find_methods): Likewise.
15443 * stabsread.c (read_member_functions): Likewise.
15444 * valops.c (search_struct_method): Likewise.
15445 (value_struct_elt_for_reference): Likewise.
15446 * NEWS: Mention this change.
15448 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15450 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15451 print_source_lines.
15452 * source.c (print_source_lines_base): Update line number check.
15453 (print_source_lines): New function.
15454 (source_lines_range::source_lines_range): New function.
15455 * source.h (class source_lines_range): New class.
15456 (print_source_lines): New declaration.
15458 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15460 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15462 2019-01-08 Tom Tromey <tom@tromey.com>
15463 Simon Marchi <simon.marchi@ericsson.com>
15466 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15467 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15468 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15469 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15470 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15471 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15473 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15475 * source.c (select_source_symtab): Move header comment to
15476 declaration in source.h.
15477 (forget_cached_source_info_for_objfile): Likewise.
15478 (forget_cached_source_info): Likewise.
15479 (identify_source_line): Likewise.
15480 * source.h (identify_source_line): Move declaration from symtab.h
15481 and add comment from source.c
15482 (print_source_lines): Likewise.
15483 (forget_cached_source_info_for_objfile): Likewise.
15484 (forget_cached_source_info): Likewise.
15485 (select_source_symtab): Likewise.
15486 (enum print_source_lines_flag): Move definition from symtab.h.
15487 * symtab.h (identify_source_line): Move declaration to source.h.
15488 (print_source_lines): Likewise.
15489 (forget_cached_source_info_for_objfile): Likewise.
15490 (forget_cached_source_info): Likewise.
15491 (select_source_symtab): Likewise.
15492 (enum print_source_lines_flag): Move definition to source.h.
15493 * tui/tui-hooks.c: Add 'source.h' include.
15495 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15497 * source.c (print_source_lines_base): Handle requests to print
15498 reverse line number sequences, and guard against empty lines
15501 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15503 * source.c (print_source_lines_base): Fix skip of '\r' if next
15506 2019-01-06 Tom Tromey <tom@tromey.com>
15508 * c-exp.y (struct c_parse_state) <macro_original_text,
15509 expansion_obstack>: New member.
15510 (macro_original_text, expansion_obstack): Remove globals.
15511 (scan_macro_expansion, scanning_macro_expansion)
15512 (finished_macro_expansion): Update.
15513 (scan_macro_cleanup): Remove.
15514 (yylex, c_parse): Update.
15516 2019-01-06 Tom Tromey <tom@tromey.com>
15518 * c-exp.y (struct c_parse_state) <strings>: New member.
15519 (operator_stoken): Update.
15521 2019-01-06 Tom Tromey <tom@tromey.com>
15523 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15524 (union type_stack_elt) <typelist_val>: Now a pointer to
15526 (type_stack_cleanup): Don't declare.
15527 (push_typelist): Update.
15528 * parse.c (pop_typelist): Return a std::vector.
15529 (push_typelist): Take a std::vector.
15530 (follow_types): Update. Do not free args.
15531 (type_stack_cleanup): Remove.
15532 * c-exp.y (struct c_parse_state): New.
15533 (cpstate): New global.
15534 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15535 (nonempty_typelist): Update.
15536 (func_mod): Create a new vector.
15537 (c_parse): Create a c_parse_state.
15538 (check_parameter_typelist): Do not delete params.
15539 (function_method): Update. Do not delete type_list.
15541 2019-01-06 Tom Tromey <tom@tromey.com>
15544 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15546 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15547 (print_return_value): Likewise.
15549 2019-01-05 Tom Tromey <tom@tromey.com>
15551 * contrib/cleanup_check.py: Remove.
15552 * contrib/gcc-with-excheck: Remove.
15553 * contrib/exsummary.py: Remove.
15554 * contrib/excheck.py: Remove.
15556 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15558 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15559 NULL. Initialize tpprev to NULL instead of assigning it
15560 to NULL on the next statement.
15561 * windows-nat.c (windows_delete_thread): Remove check for
15562 main_thread_id before printing thread exit notifications.
15563 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15564 Remove thread ID check against main_thread_id.
15565 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15566 windows_delete_thread.
15567 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15569 2019-01-04 Tom Tromey <tom@tromey.com>
15571 * compile/compile.c (_initialize_compile): Use upper case for
15572 metasyntactic variables.
15573 * symmisc.c (_initialize_symmisc): Use upper case for
15574 metasyntactic variables.
15575 * psymtab.c (_initialize_psymtab): Use upper case for
15576 metasyntactic variables.
15577 * demangle.c (demangle_command): Use upper case for metasyntactic
15579 (_initialize_demangler): Likewise.
15580 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15583 2019-01-03 Tom Tromey <tom@tromey.com>
15585 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15587 2019-01-03 Tom Tromey <tom@tromey.com>
15589 * python/py-symtab.c (salpy_str): Update.
15590 (struct salpy_sal_object) <symtab>: Now a PyObject.
15591 (salpy_dealloc): Update.
15592 (del_objfile_sal): Use gdbpy_ref.
15594 2019-01-03 Tom Tromey <tom@tromey.com>
15596 * python/py-type.c (convert_field): Use new_reference. Return
15598 (make_fielditem): Return gdbpy_ref.
15599 (typy_fields): Update.
15600 (typy_getitem): Update.
15601 (field_name): Return gdbpy_ref. Use new_reference.
15602 (typy_iterator_iternext): Update.
15604 2019-01-03 Tom Tromey <tom@tromey.com>
15606 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15608 2019-01-03 Tom Tromey <tom@tromey.com>
15610 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15611 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15612 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15613 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15614 (pspy_set_type_printers): Likewise.
15615 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15616 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15617 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15618 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15619 (objfpy_set_type_printers): Likewise.
15621 2019-01-03 Tom Tromey <tom@tromey.com>
15623 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15624 (gdbpy_print_stack): Use gdbpy_err_fetch.
15625 * python/python-internal.h (class gdbpy_err_fetch): New class.
15626 (class gdbpy_enter) <m_error_type, m_error_value,
15627 m_error_traceback>: Remove.
15628 <m_error>: New member.
15629 (gdbpy_exception_to_string): Don't declare.
15630 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15631 * python/py-value.c (convert_value_from_python): Use
15633 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15634 gdbpy_exception_to_string.
15635 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15636 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15639 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15641 * linux-nat.c (delete_lwp_cleanup): Delete.
15642 (struct lwp_deleter): New struct.
15643 (lwp_info_up): New typedef.
15644 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15647 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15649 * linux-fork.c (class scoped_switch_fork_info): New class.
15650 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15652 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15654 * valops.c (find_overload_match): Remove use of null_cleanup, and
15655 calls to do_cleanups.
15657 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15659 * compile/compile-cplus-types.c
15660 (compile_cplus_instance::decl_name): Handle changes to
15662 * cp-support.c (cp_func_name): Update header comment, update
15664 * cp-support.h (cp_func_name): Update return type in declaration.
15665 * valops.c (find_overload_match): Move temp_func local to top
15666 level of function and change its type. Use temp_func to hold and
15667 delete temporary string obtained from cp_func_name.
15669 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15671 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15672 gdb::char_vector, remove cleanup, and update uses of `msg`.
15674 2019-01-03 Jim Wilson <jimw@sifive.com>
15676 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15678 2019-01-02 Tom Tromey <tom@tromey.com>
15680 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15681 (tdesc_parse_xml): Remove cleanups.
15682 * target-descriptions.h (make_cleanup_free_target_description):
15684 (target_desc_deleter): New struct.
15685 (target_desc_up): New typedef.
15686 * target-descriptions.c (target_desc_deleter::operator()): Rename
15687 from free_target_description.
15688 (make_cleanup_free_target_description): Remove.
15690 2019-01-02 Tom Tromey <tom@tromey.com>
15692 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15693 constructor, destructor.
15694 (linespec_parser): Remove typedef.
15695 (~linespec_parser): Rename from linespec_parser_delete.
15696 (linespec_lex_to_end, linespec_complete_label)
15697 (linespec_complete): Update.
15698 (decode_line_full): Remove cleanups.
15699 (decode_line_1): Update.
15701 2019-01-02 Tom Tromey <tom@tromey.com>
15703 * python/python-internal.h (inferior_to_inferior_object): Change
15705 * python/py-exitedevent.c (create_exited_event_object): Update.
15706 * python/py-inferior.c (inferior_to_inferior_object): Return
15708 (python_new_inferior, python_inferior_deleted)
15709 (thread_to_thread_object, delete_thread_object)
15710 (build_inferior_list, gdbpy_selected_inferior): Update.
15711 * python/py-infthread.c (create_thread_object): Update. Also fail
15712 if inferior_to_inferior_object fails.
15714 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15716 * inferior.h (class inferior) <displaced_step_state>: New field.
15717 * infrun.h (struct displaced_step_state): Move here from
15718 infrun.c. Initialize fields, add constructor.
15719 <inf>: Remove field.
15720 <reset>: New method.
15721 * infrun.c (struct displaced_step_inferior_state): Move to
15723 (displaced_step_inferior_states): Remove.
15724 (get_displaced_stepping_state): Adust.
15725 (displaced_step_in_progress_any_inferior): Adjust.
15726 (displaced_step_in_progress_thread): Adjust.
15727 (displaced_step_in_progress): Adjust.
15728 (add_displaced_stepping_state): Remove.
15729 (get_displaced_step_closure_by_addr): Adjust.
15730 (remove_displaced_stepping_state): Remove.
15731 (infrun_inferior_exit): Call displaced_step_state.reset.
15732 (use_displaced_stepping): Don't check for NULL.
15733 (displaced_step_prepare_throw): Call
15734 get_displaced_stepping_state.
15735 (displaced_step_fixup): Don't check for NULL.
15736 (prepare_for_detach): Don't check for NULL.
15738 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15740 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15741 in case of call that did not complete.
15743 2019-01-02 Andrey Utkin <autkin@undo.io>
15745 * symfile.c (find_separate_debug_file): Fix search of debug files for
15748 2019-01-02 Tom Tromey <tom@tromey.com>
15750 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15752 * python/py-frame.c (frapy_older): Remove cast.
15753 (frapy_newer): Likewise.
15754 * python/py-breakpoint.c (local_setattro): Remove cast.
15755 * python/py-arch.c (archpy_name): Remove local variable.
15756 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15758 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15760 * unittests/basic_string_view/element_access/char/empty.cc:
15761 Fix year range in copyright header.
15763 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15765 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15767 <operator==>: Update with for removed field.
15769 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15770 <isa_features>: ...this.
15771 <abi_features>: New field.
15772 (riscv_isa_flen): Update comment.
15773 (riscv_abi_xlen): New declaration.
15774 (riscv_abi_flen): New declaration.
15775 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15777 (riscv_abi_xlen): New function.
15778 (riscv_isa_flen): Update to get answer from isa_features.
15779 (riscv_abi_flen): New function.
15780 (riscv_has_fp_abi): Update to get answer from abi_features.
15781 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15783 (riscv_call_info) <xlen, flen>: Update comment.
15784 (riscv_call_arg_struct): Remove invalid assertions
15785 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15787 (riscv_gdbarch_init): Gather isa features and abi features
15788 separately, ensure both match on the gdbarch when reusing an old
15789 gdbarch. Relax an error check to allow 32-bit abi float to run on
15790 a target with 64-bit float hardware.
15792 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15794 * source.c (search_command_helper): Stop reverse search
15795 when line 1 has been searched.
15797 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15799 * record-full.c (record_full_base_target::close): Rewrite
15800 record_full_core_buf_list free logic.
15802 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15804 * break-catch-syscall.c (print_one_catch_syscall): xfree
15807 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15809 * top.c (print_gdb_version): Update Copyright year in version
15812 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15814 Update copyright year range in all GDB files.
15816 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15818 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15820 For older changes see ChangeLog-2018.
15826 version-control: never