1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
5 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
7 * configure, config.in: Rebuild.
9 2019-11-26 Tom Tromey <tom@tromey.com>
11 * python/python.c (class gdbpy_gil): New.
12 (struct gdbpy_event): Add constructor, destructor, operator().
13 (gdbpy_post_event): Use run_on_main_thread.
14 (gdbpy_initialize_events): Remove.
15 (do_start_initialization): Update.
17 2019-11-26 Tom Tromey <tom@tromey.com>
20 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
21 commands. Call update_thread_pool_size.
22 (update_thread_pool_size, maintenance_set_worker_threads): New
24 (n_worker_threads): New global.
26 2019-11-26 Christian Biesinger <cbiesinger@google.com>
27 Tom Tromey <tom@tromey.com>
29 * minsyms.c (minimal_symbol_reader::install): Use
31 * gdbsupport/parallel-for.h: New file.
32 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
34 2019-11-26 Christian Biesinger <cbiesinger@google.com>
35 Tom Tromey <tom@tromey.com>
37 * gdbsupport/thread-pool.h: New file.
38 * gdbsupport/thread-pool.c: New file.
39 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
40 (HFILES_NO_SRCDIR): Add thread-pool.h.
42 2019-11-26 Tom Tromey <tom@tromey.com>
44 * event-top.h (thread_local_segv_handler): Declare.
45 * event-top.c (thread_local_segv_handler): New global.
46 (install_handle_sigsegv, handle_sigsegv): New functions.
47 (async_init_signals): Install SIGSEGV handler.
48 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
50 (report_failed_demangle): New function.
51 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
52 handler-setting code, instead use segv_handler. Run warning code
55 2019-11-26 Tom Tromey <tom@tromey.com>
57 * run-on-main-thread.c: New file.
58 * run-on-main-thread.h: New file.
59 * unittests/main-thread-selftests.c: New file.
60 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
61 main-thread-selftests.c.
62 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
63 (COMMON_SFILES): Add run-on-main-thread.c.
65 2019-11-26 Tom Tromey <tom@tromey.com>
67 * main.c (setup_alternate_signal_stack): Remove.
68 (captured_main_1): Use gdb::alternate_signal_stack.
69 * gdbsupport/alt-stack.h: New file.
71 2019-11-26 Tom Tromey <tom@tromey.com>
73 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
75 (save_original_signals_state, restore_original_signals_state): Use
77 * linux-nat.c (block_child_signals, restore_child_signals_mask)
78 (_initialize_linux_nat): Use gdb_sigmask.
79 * guile/guile.c (_initialize_guile): Use block_signals.
80 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
81 * gdbsupport/gdb-sigmask.h: New file.
82 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
83 * cp-support.c (gdb_demangle): Use gdb_sigmask.
84 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
86 * configure, config.in: Rebuild.
87 * gdbsupport/block-signals.h: New file.
89 2019-11-26 Tom Tromey <tom@tromey.com>
91 * acinclude.m4: Include ax_pthread.m4.
92 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
93 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
94 (CLIBS): Use PTHREAD_LIBS.
95 (aclocal_m4_deps): Add ax_pthread.m4.
96 * config.in, configure: Rebuild.
97 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
99 2019-11-26 Tom Tromey <tom@tromey.com>
101 * symtab.h (struct minimal_symbol) <name_set>: New member.
102 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
103 Don't call symbol_set_names.
104 (minimal_symbol_reader::install): Call symbol_set_names.
106 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
108 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
109 restore_active_ext_lang, as GIL is needed for (indirectly)
110 called PyOS_InterruptOccurred.
112 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
114 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
117 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
119 * remote-sim.c (simulator_command): Make static, remove
122 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
124 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
126 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
127 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
129 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
131 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
133 * unittests/basic_string_view/element_access/char/1.cc (test01):
136 * unittests/basic_string_view/element_access/char/empty.cc (main):
138 * unittests/basic_string_view/element_access/char/front_back.cc
141 * unittests/basic_string_view/inserters/char/2.cc (test05):
144 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
147 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
150 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
152 * unittests/basic_string_view/operations/compare/char/1.cc
155 * unittests/basic_string_view/operations/compare/char/13650.cc
157 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
160 * unittests/basic_string_view/operations/data/char/1.cc (test01):
163 * unittests/basic_string_view/operations/find/char/1.cc (test01):
166 * unittests/basic_string_view/operations/find/char/2.cc (test02):
169 * unittests/basic_string_view/operations/find/char/3.cc (test03):
172 * unittests/basic_string_view/operations/find/char/4.cc (main):
174 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
177 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
180 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
183 * unittests/basic_string_view/operations/substr/char/1.cc
186 * unittests/basic_string_view/operators/char/2.cc (main):
188 * unittests/optional/assignment/1.cc (test): Likewise.
189 * unittests/optional/assignment/2.cc (test): Likewise.
190 * unittests/optional/assignment/3.cc (test): Likewise.
191 * unittests/optional/assignment/4.cc (test): Likewise.
192 * unittests/optional/assignment/5.cc (test): Likewise.
193 * unittests/optional/assignment/6.cc (test): Likewise.
194 * unittests/optional/assignment/7.cc (test): Likewise.
195 * unittests/optional/cons/copy.cc (test): Likewise.
196 * unittests/optional/cons/default.cc (test): Likewise.
197 * unittests/optional/cons/move.cc (test): Likewise.
198 * unittests/optional/cons/value.cc (test): Likewise.
199 * unittests/optional/in_place.cc (test): Likewise.
200 * unittests/optional/observers/1.cc (test): Likewise.
201 * unittests/optional/observers/2.cc (test): Likewise.
203 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
205 * tui-win.h (tui_set_var_cmd): Remove.
206 * tui-win.c (tui_set_var_cmd): Make static.
208 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
210 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
211 rbreak_command_wrapper): Remove.
212 * symtab.c (rbreak_command_wrapper): Remove.
214 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
216 * inferior.h (info_terminal_command): Remove declaration.
217 * inflow.c (info_terminal_command): Make static.
219 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
221 * inferior.c (exit_inferior_silent): Remove.
223 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
225 * dictionary.c (dict_empty, mdict_empty): Remove.
226 * dictionary.c (mdict_empty): Remove.
228 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
230 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
231 (arc_insn_get_memory_offset): Likewise.
232 (arc_insn_dump): Likewise.
233 * cp-support.c (test_cp_symbol_name_matches): Likewise.
234 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
235 * dictionary.c (dict_iterator_next): Likewise.
236 (dict_iter_match_first): Likewise.
237 (dict_iter_match_next): Likewise.
238 * f-lang.c (evaluate_subexp_f): Likewise.
239 * hppa-tdep.c (hppa_read_pc): Likewise.
240 * i386-tdep.c (i386_floatformat_for_type): Likewise.
241 * parse.c (write_exp_elt_msym): Likewise.
242 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
243 * remote.c (remote_packet_size): Likewise.
244 (remote_notif_stop_parse): Likewise.
245 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
246 * s12z-tdep.c (s12z_disassemble_info): Likewise.
247 * source.c (prepare_path_for_appending): Likewise.
248 * sparc64-linux-tdep.c
249 (sparc64_linux_handle_segmentation_fault); Likewise.
250 * stack.c (frame_selection_by_function_completer): Likewise.
252 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
254 * completer.c (set_gdb_completion_word_break_characters):
257 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
259 * dwarf-index-write.c: Include dwarf-index-write.h.
260 * mi/mi-interp.c: Include mi/mi-interp.h.
262 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
264 * aarch32-tdep.c: Include aarch32-tdep.h.
265 * aarch32-tdep.h: Forward-declare struct target_desc.
267 2019-11-26 Christian Biesinger <cbiesinger@google.com>
269 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
271 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
272 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
274 2019-11-25 Tom de Vries <tdevries@suse.de>
276 * contrib/words.sh: Add -c option.
278 2019-11-25 Christian Biesinger <cbiesinger@google.com>
280 * solib.c (solib_find_1): Change int to bool.
281 (exec_file_find): Change int to bool.
282 (solib_find): Change int to bool.
283 (solib_read_symbols): Change int to bool.
284 (solib_used): Change int to bool.
285 (solib_add): Change int to bool.
286 (info_sharedlibrary_command): Change int to bool.
287 (solib_contains_address_p): Change int to bool.
288 (solib_keep_data_in_core): Change int to bool.
289 (in_solib_dynsym_resolve_code): Change int to bool.
290 (reload_shared_libraries_1): Change int to bool.
291 (gdb_sysroot_changed): Change int to bool.
292 * solib.h (solib_read_symbols): Change int to bool.
293 (solib_contains_address_p): Change int to bool.
294 (solib_keep_data_in_core): Change int to bool.
295 (in_solib_dynsym_resolve_code): Change int to bool.
296 (libpthread_name_p): Change int to bool.
298 2019-11-25 Luis Machado <luis.machado@linaro.org>
300 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
301 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
302 (remote_packet_max_chars): New static global.
303 (show_remote_packet_max_chars): New function.
304 (remote_target::putpkt_binary): Adjust to use new
305 remote_packet_max_chars option.
306 (remote_target::getpkt_or_notif_sane_1): Likewise.
307 (_initialize_remote): Register new remote-packet-max-chars option.
309 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
311 * m68k-linux-nat.c: Include gdbarch.h.
313 2019-11-24 Tom Tromey <tom@tromey.com>
315 * symfile.c (read_symbols): Update.
316 * psymtab.c (require_partial_symbols): Change type of "verbose" to
318 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
319 (psym_lookup_symbol, psym_find_last_source_symtab)
320 (psym_forget_cached_source_info, psym_print_stats)
321 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
322 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
323 (psym_map_matching_symbols, psym_expand_symtabs_matching)
324 (psym_find_compunit_symtab_by_address)
325 (maintenance_print_psymbols, maintenance_info_psymtabs)
326 (maintenance_check_psymtabs): Update.
327 * psymtab.h (require_partial_symbols): Change type of "verbose" to
330 2019-11-22 Tom Tromey <tom@tromey.com>
332 * observable.h: Update comments.
334 2019-11-22 Tom Tromey <tromey@adacore.com>
336 * ada-tasks.c (ada_task_is_alive): Make parameter const.
337 (print_ada_task_info): Don't try to fetch thread id if task is not
340 2019-11-22 Christian Biesinger <cbiesinger@google.com>
343 * ada-lang.c (sort_choices): Update.
344 (ada_print_symbol_signature): Update.
345 (resolve_subexp): Update.
346 (ada_parse_renaming): Update.
347 (ada_read_renaming_var_value): Update.
348 (lesseq_defined_than): Update.
349 (remove_extra_symbols): Update.
350 (remove_irrelevant_renamings): Update.
351 (ada_add_block_symbols): Update.
352 (ada_collect_symbol_completion_matches): Update.
353 (ada_is_renaming_symbol): Update.
354 (aggregate_assign_from_choices): Update.
355 (ada_evaluate_subexp): Update.
356 (ada_has_this_exception_support): Update.
357 (ada_is_non_standard_exception_sym): Update.
358 (ada_add_exceptions_from_frame): Update.
359 (ada_add_global_exceptions): Update.
360 (ada_print_subexp): Update.
361 * ax-gdb.c (gen_var_ref): Update.
362 (gen_maybe_namespace_elt): Update.
363 (gen_expr_for_cast): Update.
366 * blockframe.c (find_pc_partial_function): Update.
367 * breakpoint.c (print_breakpoint_location): Update.
368 (update_static_tracepoint): Update.
369 * btrace.c (ftrace_print_function_name): Update.
370 (ftrace_function_switched): Update.
371 * buildsym.c (find_symbol_in_list): Update.
373 * c-typeprint.c (c_print_typedef): Update.
374 (c_type_print_template_args): Update.
375 * cli/cli-cmds.c (edit_command): Update.
376 (list_command): Update.
377 (print_sal_location): Update.
378 * coffread.c (patch_opaque_types): Update.
379 (process_coff_symbol): Update.
380 (coff_read_enum_type): Update.
381 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
382 (convert_one_symbol): Update.
383 (hash_symname): Update.
384 (eq_symname): Update.
385 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
386 * compile/compile-cplus-types.c (debug_print_scope): Update.
387 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
388 * compile/compile-object-load.c (get_out_value_type): Update.
389 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
390 (search_symbol_list): Update.
391 (cp_lookup_symbol_imports_or_template): Update.
392 * cp-support.c (overload_list_add_symbol): Update.
393 * ctfread.c (psymtab_to_symtab): Update.
394 * dbxread.c (cp_set_block_scope): Update.
395 * dictionary.c (iter_match_first_hashed): Update.
396 (iter_match_next_hashed): Update.
397 (insert_symbol_hashed): Update.
398 (iter_match_next_linear): Update.
399 * dictionary.h: Update.
400 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
401 (locexpr_describe_location_piece): Update.
402 (locexpr_describe_location_1): Update.
403 (locexpr_generate_c_location): Update.
404 (loclist_describe_location): Update.
405 (loclist_generate_c_location): Update.
406 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
407 (read_func_scope): Update.
408 (process_enumeration_scope): Update.
409 (new_symbol): Update.
410 (dwarf2_const_value): Update.
411 (dwarf2_symbol_mark_computed): Update.
412 * eval.c (evaluate_funcall): Update.
413 (evaluate_subexp_standard): Update.
414 * expprint.c (print_subexp_standard): Update.
415 (dump_subexp_body_standard): Update.
416 * f-valprint.c (info_common_command_for_block): Update.
417 * findvar.c (get_hosting_frame): Update.
418 (default_read_var_value): Update.
419 * go-lang.c (go_symbol_package_name): Update.
420 * guile/scm-block.c (bkscm_print_block_smob): Update.
421 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
422 (gdbscm_symbol_name): Update.
423 (gdbscm_symbol_linkage_name): Update.
424 (gdbscm_symbol_print_name): Update.
425 * infcall.c (get_function_name): Update.
426 * infcmd.c (jump_command): Update.
427 (finish_command): Update.
428 * infrun.c (insert_exception_resume_breakpoint): Update.
429 * linespec.c (canonicalize_linespec): Update.
430 (create_sals_line_offset): Update.
431 (convert_linespec_to_sals): Update.
432 (complete_label): Update.
433 (find_label_symbols_in_block): Update.
434 * m2-typeprint.c (m2_print_typedef): Update.
435 * mdebugread.c (mdebug_reg_to_regnum): Update.
436 (parse_symbol): Update.
437 (mylookup_symbol): Update.
438 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
439 (list_args_or_locals): Update.
440 * objc-lang.c (compare_selectors): Update.
441 (info_selectors_command): Update.
442 (compare_classes): Update.
443 (info_classes_command): Update.
445 * p-typeprint.c (pascal_print_typedef): Update.
446 * printcmd.c (build_address_symbolic): Update.
447 (info_address_command): Update.
448 (print_variable_and_value): Update.
449 * python/py-framefilter.c (extract_sym): Update.
450 (py_print_single_arg): Update.
451 * python/py-symbol.c (sympy_str): Update.
452 (sympy_get_name): Update.
453 (sympy_get_linkage_name): Update.
454 * python/python.c (gdbpy_rbreak): Update.
455 * record-btrace.c (btrace_get_bfun_name): Update.
456 (btrace_call_history): Update.
457 * rust-lang.c (rust_print_typedef): Update.
458 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
459 * stabsread.c (stab_reg_to_regnum): Update.
460 (define_symbol): Update.
461 (read_enum_type): Update.
462 (common_block_end): Update.
463 (cleanup_undefined_types_1): Update.
464 (scan_file_globals): Update.
465 * stack.c (print_frame_arg): Update.
466 (print_frame_args): Update.
467 (find_frame_funname): Update.
468 (info_frame_command_core): Update.
469 (iterate_over_block_locals): Update.
470 (print_block_frame_labels): Update.
471 (do_print_variable_and_value): Update.
472 (iterate_over_block_arg_vars): Update.
473 (return_command): Update.
474 * symmisc.c (dump_symtab_1): Update.
475 (print_symbol): Update.
476 * symtab.c (eq_symbol_entry): Update.
477 (symbol_cache_dump): Update.
478 (lookup_language_this): Update.
479 (find_pc_sect_line): Update.
480 (skip_prologue_sal): Update.
481 (symbol_search::compare_search_syms): Update.
482 (treg_matches_sym_type_name): Update.
483 (search_symbols): Update.
484 (print_symbol_info): Update.
485 (rbreak_command): Update.
486 (completion_list_add_symbol): Update.
487 (find_gnu_ifunc): Update.
488 (get_symbol_address): Update.
489 (search_module_symbols): Update.
490 (info_module_subcommand): Update.
491 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
492 (SYMBOL_LINKAGE_NAME): Remove.
493 (SYMBOL_DEMANGLED_NAME): Remove.
494 (SYMBOL_PRINT_NAME): Remove.
495 (SYMBOL_SEARCH_NAME): Remove.
496 * tracepoint.c (set_traceframe_context): Update.
497 (validate_actionline): Update.
498 (collection_list::collect_symbol): Update.
499 (encode_actions_1): Update.
500 (info_scope_command): Update.
501 (print_one_static_tracepoint_marker): Update.
502 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
503 * valops.c (address_of_variable): Update.
504 (find_overload_match): Update.
505 (find_oload_champ): Update.
507 2019-11-22 Christian Biesinger <cbiesinger@google.com>
509 * ada-lang.c (ada_lookup_simple_minsym): Update.
510 (ada_collect_symbol_completion_matches): Update.
511 * ada-tasks.c (read_atcb): Update.
512 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
513 (amd64_windows_skip_trampoline_code): Update.
514 * arm-tdep.c (skip_prologue_function): Update.
515 (arm_skip_stack_protector): Update.
516 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
517 (arm_wince_skip_main_prologue): Update.
518 * ax-gdb.c (gen_expr): Update.
519 * block.c (call_site_for_pc): Update.
520 * blockframe.c (find_pc_partial_function): Update.
521 * breakpoint.c (set_breakpoint_location_function): Update.
522 * btrace.c (ftrace_print_function_name): Update.
523 (ftrace_function_switched): Update.
524 * c-valprint.c (print_unpacked_pointer): Update.
525 * coffread.c (coff_symfile_read): Update.
526 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
527 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
528 * dwarf-index-write.c (write_psymbols): Update.
529 * dwarf2loc.c (call_site_to_target_addr): Update.
530 (func_verify_no_selftailcall): Update.
531 (tailcall_dump): Update.
532 (call_site_find_chain_1): Update.
533 (dwarf_expr_reg_to_entry_parameter): Update.
534 * elfread.c (elf_gnu_ifunc_record_cache): Update.
535 * eval.c (evaluate_funcall): Update.
536 (evaluate_subexp_standard): Update.
537 (evaluate_subexp_for_sizeof): Update.
538 * expprint.c (print_subexp_standard): Update.
539 (dump_subexp_body_standard): Update.
540 * frame.c (get_prev_frame_always_1): Update.
541 * frv-tdep.c (frv_skip_main_prologue): Update.
542 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
543 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
544 (gnuv3_get_typename_from_type_info): Update.
545 (gnuv3_skip_trampoline): Update.
546 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
547 * i386-tdep.c (i386_skip_main_prologue): Update.
548 (i386_pe_skip_trampoline_code): Update.
549 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
550 * infcall.c (get_function_name): Update.
551 * linespec.c (minsym_found): Update.
552 * linux-fork.c (info_checkpoints_command): Update.
553 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
554 (m32c_m16c_pointer_to_address): Update.
555 * maint.c (maintenance_translate_address): Update.
556 * minsyms.c (add_minsym_to_hash_table): Update.
557 (add_minsym_to_demangled_hash_table): Update.
558 (lookup_minimal_symbol_mangled): Update.
559 (lookup_minimal_symbol_demangled): Update.
560 (lookup_minimal_symbol_linkage): Update.
561 (lookup_minimal_symbol_text): Update.
562 (lookup_minimal_symbol_by_pc_name): Update.
563 (minimal_symbol_is_less_than): Update.
564 (compact_minimal_symbols): Update.
565 (build_minimal_symbol_hash_tables): Update.
566 (find_solib_trampoline_target): Update.
567 * mips-tdep.c (mips_stub_frame_sniffer): Update.
568 (mips_skip_pic_trampoline_code): Update.
569 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
570 * objc-lang.c (info_selectors_command): Update.
571 (info_classes_command): Update.
572 (find_methods): Update.
574 * p-valprint.c (pascal_val_print): Update.
575 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
576 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
577 * printcmd.c (build_address_symbolic): Update.
578 (info_symbol_command): Update.
579 * psymtab.c (psymbol_name_matches): Update.
580 (match_partial_symbol): Update.
581 (lookup_partial_symbol): Update.
582 (print_partial_symbols): Update.
583 (sort_pst_symbols): Update.
584 (maintenance_check_psymtabs): Update.
585 * python/py-framefilter.c (py_print_frame): Update.
586 * python/python.c (gdbpy_rbreak): Update.
587 * record-btrace.c (btrace_get_bfun_name): Update.
588 (btrace_call_history): Update.
589 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
590 (rs6000_skip_trampoline_code): Update.
591 * sol-thread.c (info_cb): Update.
592 * stabsread.c (scan_file_globals): Update.
593 * stack.c (find_frame_funname): Update.
594 (info_frame_command_core): Update.
595 * symmisc.c (dump_msymbols): Update.
596 * symtab.c (symbol_natural_name): Rename to..,
597 (general_symbol_info::natural_name): ...this.
598 (symbol_demangled_name): Rename to...
599 (general_symbol_info::demangled_name): ...this.
600 (symbol_search_name): Rename to...
601 (general_symbol_info::search_name): ...this.
602 (symbol_matches_search_name): Update.
603 (find_pc_sect_line): Update.
604 (skip_prologue_sal): Update.
605 (search_symbols): Update.
606 (print_msymbol_info): Update.
607 (rbreak_command): Update.
608 (completion_list_add_msymbol): Update.
609 (completion_list_objc_symbol): Update.
610 (get_msymbol_address): Update.
611 * symtab.h (struct general_symbol_info): Add member functions
612 natural_name (), linkage_name (), print_name (), demangled_name (),
614 (SYMBOL_NATURAL_NAME): Update.
615 (symbol_natural_name): Move to a member function on general_symbol_info.
616 (SYMBOL_DEMANGLED_NAME): Update.
617 (symbol_demangled_name): Move to a member function on
619 (SYMBOL_SEARCH_NAME): Update.
620 (symbol_search_name): Move to a member function on general_symbol_info.
621 (MSYMBOL_NATURAL_NAME): Remove.
622 (MSYMBOL_LINKAGE_NAME): Remove.
623 (MSYMBOL_PRINT_NAME): Remove.
624 (MSYMBOL_DEMANGLED_NAME): Remove.
625 (MSYMBOL_SEARCH_NAME): Remove.
626 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
628 2019-11-22 Christian Biesinger <cbiesinger@google.com>
630 * symtab.c (create_demangled_names_hash): Use per_bfd->
631 minimal_symbol_count for computing the initial size, if greater
632 than our default size.
634 2019-11-22 Tom de Vries <tdevries@suse.de>
636 * contrib/words.sh: Improve words extraction.
638 2019-11-22 Tom de Vries <tdevries@suse.de>
640 * contrib/words.sh: Combine sed invocations.
642 2019-11-21 Christian Biesinger <cbiesinger@google.com>
644 * Makefile.in: Update.
645 * demangle.c: Rename to...
646 * gdb-demangle.c: ..this.
647 (is_cplus_marker): Change return type to bool.
648 (_initialize_demangler): Rename to...
649 (_initialize_gdb_demangle): ...this.
650 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
651 * symtab.h (demangle): Remove declaration; instead include
654 2019-11-21 Tom Tromey <tromey@adacore.com>
656 * gdbsupport/format.c (format_pieces): Parse %I64d.
657 * unittests/format_pieces-selftests.c (test_windows_formats): New
659 (run_tests): Call it.
661 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
663 Byte reverse display of variables with DW_END_big, DW_END_little
664 (DW_AT_endianity) dwarf attributes if different than the native
666 * ada-lang.c (ada_value_binop):
667 Use type_byte_order instead of gdbarch_byte_order.
668 * ada-valprint.c (printstr):
669 (ada_val_print_string):
670 * ada-lang.c (value_pointer):
672 Use type_byte_order instead of gdbarch_byte_order.
673 * c-lang.c (c_get_string):
674 Use type_byte_order instead of gdbarch_byte_order.
675 * c-valprint.c (c_val_print_array):
676 Use type_byte_order instead of gdbarch_byte_order.
677 * cp-valprint.c (cp_print_class_member):
678 Use type_byte_order instead of gdbarch_byte_order.
679 * dwarf2loc.c (rw_pieced_value):
680 Use type_byte_order instead of gdbarch_byte_order.
681 * dwarf2read.c (read_base_type): Handle DW_END_big,
683 * f-lang.c (f_get_encoding):
684 Use type_byte_order instead of gdbarch_byte_order.
685 * findvar.c (default_read_var_value):
686 Use type_byte_order instead of gdbarch_byte_order.
687 * gdbtypes.c (check_types_equal):
688 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
689 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
690 and TYPE_ENDIANITY_LITTLE if set.
691 (type_byte_order): new function.
692 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
693 (struct main_type) <flag_endianity_not_default>:
695 (type_byte_order): New function.
696 * infcmd.c (default_print_one_register_info):
697 Use type_byte_order instead of gdbarch_byte_order.
698 * p-lang.c (pascal_printstr):
699 Use type_byte_order instead of gdbarch_byte_order.
700 * p-valprint.c (pascal_val_print):
701 Use type_byte_order instead of gdbarch_byte_order.
702 * printcmd.c (print_scalar_formatted):
703 Use type_byte_order instead of gdbarch_byte_order.
704 * solib-darwin.c (darwin_current_sos):
705 Use type_byte_order instead of gdbarch_byte_order.
706 * solib-svr4.c (solib_svr4_r_ldsomap):
707 Use type_byte_order instead of gdbarch_byte_order.
708 * stap-probe.c (stap_modify_semaphore):
709 Use type_byte_order instead of gdbarch_byte_order.
710 * target-float.c (target_float_same_format_p):
711 Use type_byte_order instead of gdbarch_byte_order.
712 * valarith.c (scalar_binop):
714 Use type_byte_order instead of gdbarch_byte_order.
715 * valops.c (value_cast):
716 Use type_byte_order instead of gdbarch_byte_order.
717 * valprint.c (generic_emit_char):
720 Use type_byte_order instead of gdbarch_byte_order.
721 * value.c (unpack_long):
722 (unpack_bits_as_long):
723 (unpack_value_bitfield):
726 (pack_unsigned_long):
727 Use type_byte_order instead of gdbarch_byte_order.
728 * findvar.c (unsigned_pointer_to_address):
729 (signed_pointer_to_address):
730 (unsigned_address_to_pointer):
731 (address_to_signed_pointer):
732 (default_read_var_value):
733 (default_value_from_register):
734 Use type_byte_order instead of gdbarch_byte_order.
735 * gnu-v3-abi.c (gnuv3_make_method_ptr):
736 Use type_byte_order instead of gdbarch_byte_order.
737 * riscv-tdep.c (riscv_print_one_register_info):
738 Use type_byte_order instead of gdbarch_byte_order.
740 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
742 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
743 (current_ui_gdb_stdin_ptr): Likewise.
744 (current_ui_gdb_stderr_ptr): Likewise.
745 (current_ui_gdb_stdlog_ptr): Likewise.
746 (current_ui_current_uiout_ptr): Likewise.
747 (gen_ret_current_ui_field_ptr): Remove.
749 2019-11-21 Tom de Vries <tdevries@suse.de>
752 * cli/cli-script.c (execute_control_command): Only switch to
753 INTERP_CONSOLE's ui_out when INTERP_MI is active.
755 2019-11-19 Tom Tromey <tom@tromey.com>
757 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
758 Now static. Change type of "name".
759 (tui_set_win_height_command): Don't copy "arg".
760 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
761 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
763 2019-11-19 Ali Tamur <tamur@google.com>
765 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
766 "if (attr != nullptr)".
767 (dwarf2_find_base_address): Likewise.
768 (dwarf2_build_include_psymtabs): Likewise.
769 (read_cutu_die_from_dwo): Likewise.
770 (read_func_scope): Likewise.
771 (read_call_site_scope): Likewise.
772 (dwarf2_get_pc_bounds): Likewise.
773 (dwarf2_record_block_ranges): Likewise.
774 (dwarf2_add_field): Likewise.
775 (dwarf2_add_member_fn): Likewise.
776 (read_structure_type): Likewise.
777 (read_enumeration_type): Likewise.
778 (read_array_type): Likewise.
779 (read_array_order): Likewise.
780 (read_set_type): Likewise.
781 (read_common_block): Likewise.
782 (read_tag_reference_type): Likewise.
783 (read_tag_string_type): Likewise.
784 (read_subroutine_type): Likewise.
785 (read_base_type): Likewise.
786 (read_subrange_type): Likewise.
787 (new_symbol): Likewise.
788 (prepare_one_comp_unit): Likewise.
790 2019-11-19 Tom Tromey <tromey@adacore.com>
792 * windows-nat.c (windows_nat_target::attach): Include GetLastError
793 result in error when DebugActiveProcess fails.
795 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
796 Pedro Alves <palves@redhat.com>
798 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
799 * target.c (target_stack::push): Call 'unpush' if there's a
800 target on top of the stack.
802 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
804 * python/py-block.c (blpy_dealloc): Call tp_free.
805 (blpy_block_syms_dealloc): Likewise.
806 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
807 * python/py-inferior.c (infpy_dealloc): Likewise.
808 * python/py-lazy-string.c (stpy_dealloc): Likewise.
809 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
810 * python/py-symbol.c (sympy_dealloc): Likewise.
811 * python/py-symtab.c (stpy_dealloc): Likewise.
812 * python/py-type.c (typy_iterator_dealloc): Likewise.
814 2019-11-18 Christian Biesinger <cbiesinger@google.com>
816 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
817 constructor instead of using a class initializer.
819 2019-11-15 Christian Biesinger <cbiesinger@google.com>
821 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
822 * configure: Regenerate.
823 * configure.ac: Don't source common.host.
824 * gdbsupport/common.host: Remove.
825 * gdbsupport/mingw-strerror.c: Remove.
826 * gdbsupport/posix-strerror.c: Rename to...
827 * gdbsupport/safe-strerror.c: ...this.
829 2019-11-15 Christian Biesinger <cbiesinger@google.com>
831 * maint.c (scoped_command_stats::print_time): Use localtime_r
832 instead of localtime (provided through gnulib if necessary).
833 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
836 2019-11-15 Christian Biesinger <cbiesinger@google.com>
838 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
839 avoid compile errors.
841 2019-11-15 Christian Biesinger <cbiesinger@google.com>
843 * config.in: Regenerate.
844 * configure: Regenerate.
845 * gdbsupport/common.m4: No longer check for strerror_r.
846 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
847 POSIX version of strerror_r, now that gnulib provides it if
850 2019-11-14 Christian Biesinger <cbiesinger@google.com>
852 * README (`configure' options): Update.
854 2019-11-14 Tom Tromey <tromey@adacore.com>
856 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
857 expected type for the RHS if the LHS is a convenience variable.
859 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
861 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
862 Provide explicit default and copy constructor.
864 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
866 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
867 only call Py_INCREF (newbp) in the bppy_pending_object case.
869 2019-11-13 Tom Tromey <tromey@adacore.com>
872 * psympriv.h (partial_symbol): Remove static assert.
873 * symtab.h (general_symbol_info, symbol): Remove static assert.
875 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
877 * gdbsupport/format.c (format_pieces::format_pieces): Support
878 printf 'z' size modifier.
879 * gdbsupport/format.h (enum argclass): Add size_t_arg.
880 * printcmd.c (ui_printf): Handle size_t_arg.
881 * ui-out.c (ui_out::vmessage): Likewise.
882 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
884 (run_tests): Call test_format_int_sizes.
886 2019-11-12 Christian Biesinger <cbiesinger@google.com>
888 * ada-exp.y (write_ambiguous_var): Update.
889 * buildsym.c (add_symbol_to_list): Update.
890 * dwarf2read.c (read_variable): Update.
891 (new_symbol): Update.
892 * jit.c (finalize_symtab): Update.
893 * language.c (language_alloc_type_symbol): Update.
894 * symtab.c (fixup_symbol_section): Update.
895 (initialize_objfile_symbol_1): Move code to...
896 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
897 (allocate_symbol): Update.
898 (allocate_template_symbol): Update.
899 (get_symbol_address): Update.
900 * symtab.h (struct symbol): Inherit from general_symbol_info instead
901 of having as a field, and add a constructor.
902 (SYMBOL_VALUE): Update.
903 (SYMBOL_VALUE_ADDRESS): Update.
904 (SET_SYMBOL_VALUE_ADDRESS): Update.
905 (SYMBOL_VALUE_BYTES): Update.
906 (SYMBOL_VALUE_COMMON_BLOCK): Update.
907 (SYMBOL_BLOCK_VALUE): Update.
908 (SYMBOL_VALUE_CHAIN): Update.
909 (SYMBOL_LANGUAGE): Update.
910 (SYMBOL_SECTION): Update.
911 (SYMBOL_OBJ_SECTION): Update.
912 (SYMBOL_SET_LANGUAGE): Update.
913 (SYMBOL_SET_LINKAGE_NAME): Update.
914 (SYMBOL_SET_NAMES): Update.
915 (SYMBOL_NATURAL_NAME): Update.
916 (SYMBOL_LINKAGE_NAME): Update.
917 (SYMBOL_DEMANGLED_NAME): Update.
918 (SYMBOL_SEARCH_NAME): Update.
919 (SYMBOL_MATCHES_SEARCH_NAME): Update.
920 (struct symbol): Update.
921 (struct template_symbol): Update.
922 (struct rust_vtable_symbol): Update.
923 * xcoffread.c (SYMBOL_DUP): Update.
925 2019-11-12 Tom Tromey <tom@tromey.com>
927 * tui/tui-layout.c (show_layout): Set current_layout.
928 (show_source_disasm_command, show_data)
929 (show_source_or_disasm_and_command): Don't set current_layout.
931 2019-11-12 Tom Tromey <tom@tromey.com>
933 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
935 2019-11-12 Tom Tromey <tom@tromey.com>
937 * tui/tui-win.c (resize_message): New global.
938 (show_tui_resize_message): New function.
939 (tui_async_resize_screen): Print message if requested.
940 (_initialize_tui_win): Add tui-resize-message setting.
941 * NEWS: Add entry for new commands.
943 2019-11-11 Tom Tromey <tom@tromey.com>
945 * tui/tui.c (tui_initialize_readline): Add new bindable readline
948 2019-11-11 Christian Biesinger <cbiesinger@google.com>
950 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
952 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
954 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
956 * python/python-internal.h (gdbpy_lookup_static_symbols):
957 Declare new function.
958 * python/python.c (python_GdbMethods): Add
959 gdb.lookup_static_symbols method.
960 * NEWS: Mention gdb.lookup_static_symbols.
962 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
964 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
965 static block of current object file first. Also fix typo in
968 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
970 * stack.c (set_last_displayed_sal): Delete.
971 (last_displayed_sal_valid): Delete.
972 (last_displayed_pspace): Delete.
973 (last_displayed_addr): Delete.
974 (last_displayed_symtab): Delete.
975 (last_displayed_line): Delete.
976 (class last_displayed_symtab_info_type): New.
977 (last_displayed_symtab_info): New static global variable.
978 (print_frame_info): Call methods on last_displayed_symtab_info.
979 (clear_last_displayed_sal): Update header comment, and make use of
980 last_displayed_symtab_info.
981 (last_displayed_sal_is_valid): Likewise.
982 (get_last_displayed_pspace): Likewise.
983 (get_last_displayed_addr): Likewise.
984 (get_last_displayed_symtab): Likewise.
985 (get_last_displayed_line): Likewise.
986 (get_last_displayed_sal): Likewise.
987 * stack.h (clear_last_displayed_sal): Update header comment.
988 (last_displayed_sal_is_valid): Likewise.
989 (get_last_displayed_pspace): Likewise.
990 (get_last_displayed_addr): Likewise.
991 (get_last_displayed_symtab): Likewise.
992 (get_last_displayed_line): Likewise.
993 (get_last_displayed_sal): Likewise.
995 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
997 * stack.c (frame_show_address): Convert return type to bool.
998 * stack.h (frame_show_address): Likewise, and update header
1001 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1003 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1004 * unittests/vec-utils-selftests.c: New file.
1005 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1007 2019-11-10 Tom Tromey <tom@tromey.com>
1009 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1010 (tui_highlight_win): Likewise.
1011 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1012 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1013 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1014 Don't set can_highlight.
1016 2019-11-10 Tom Tromey <tom@tromey.com>
1018 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1019 Remove unused declaration.
1021 2019-11-08 Tom Tromey <tromey@adacore.com>
1023 * top.c (read_command_file): Update.
1024 (command_line_input): Make return type const.
1025 * python/py-gdb-readline.c: Update.
1026 * linespec.c (decode_line_2): Update.
1027 * defs.h (command_line_input): Make return type const.
1028 * cli/cli-script.c (read_next_line): Make return type const.
1029 * ada-lang.c (get_selections): Update.
1031 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1033 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1034 * mi/mi-main.c (output_cores): Likewise.
1035 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1036 (linux_xfer_osdata_modules): Likewise.
1037 * remote.c (register_remote_support_xml): Likewise.
1038 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1039 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1041 2019-11-06 Tom Tromey <tom@tromey.com>
1043 * tui/tui-interp.c: Don't include readline.h.
1044 * tui/tui-hooks.c: Don't include readline.h.
1045 * symmisc.c: Include tilde.h, not readline.h.
1046 * symfile.c: Include tilde.h, not readline.h.
1047 * source.c: Include tilde.h, not readline.h.
1048 * solib.c: Include tilde.h, not readline.h.
1049 * psymtab.c: Include tilde.h, not readline.h.
1050 * exec.c: Include tilde.h, not readline.h.
1051 * corelow.c: Include tilde.h, not readline.h.
1052 * cli/cli-dump.c: Include tilde.h, not readline.h.
1053 * cli/cli-cmds.c: Don't include readline.h.
1055 2019-11-05 Tom Tromey <tom@tromey.com>
1057 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1058 (tui_disassemble): Set addr_size.
1059 (tui_disasm_window::set_contents): Use addr_size.
1061 2019-11-05 Tom Tromey <tom@tromey.com>
1063 * rust-lang.c (rust_language_defn): Update.
1064 * python/py-value.c (valpy_string): Call c_get_string.
1065 * p-lang.c (pascal_language_defn): Update.
1066 * opencl-lang.c (opencl_language_defn): Update.
1067 * objc-lang.c (objc_language_defn): Update.
1068 * m2-lang.c (m2_language_defn): Update.
1069 * language.c (unknown_language_defn, auto_language_defn): Update.
1070 (default_get_string): Remove.
1071 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1072 * go-lang.c (go_language_defn): Update.
1073 * f-lang.c (f_language_defn): Update.
1074 * d-lang.c (d_language_defn): Update.
1075 * c-lang.c (c_language_defn, cplus_language_defn)
1076 (asm_language_defn, minimal_language_defn): Update.
1077 * ada-lang.c (ada_language_defn): Update.
1078 * language.h (struct language_defn) <la_get_string>: Remove.
1079 (LA_GET_STRING): Remove.
1080 (default_get_string): Don't declare.
1082 2019-11-05 Tom Tromey <tom@tromey.com>
1084 * tui/tui-source.h (struct tui_source_window): Inline
1085 constructor. Remove destructor.
1086 <style_changed, m_observable>: Move to superclass.
1087 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1088 (struct tui_source_window_base): Move private members to end.
1089 <style_changed, m_observable>: Move from tui_source_window.
1090 * tui/tui-winsource.c (tui_copy_source_line): Move from
1091 tui-source.c. Rename from copy_source_line. Add special handling
1092 for negative line number.
1093 (tui_source_window_base::style_changed): Move from
1095 (tui_source_window_base): Register observer.
1096 (~tui_source_window_base): New.
1097 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1099 (tui_source_window::set_contents): Use tui_copy_source_line.
1100 (tui_source_window::tui_source_window): Move to tui-source.h.
1101 (tui_source_window::~tui_source_window): Remove.
1102 (tui_source_window::style_changed): Move to superclass.
1103 * tui/tui-disasm.c (tui_disassemble): Create string file with
1104 styling, when possible. Add "addr_size" parameter.
1105 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1106 Don't compute maximum size.
1107 (len_without_escapes): New function
1109 2019-11-05 Tom Tromey <tom@tromey.com>
1111 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1113 * tui/tui-winsource.c (tui_show_source_line): Update.
1114 * tui/tui-source.c (tui_source_window::set_contents): Update.
1115 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1117 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1119 * symtab.h (gdb_static_assert): Put && operator at the beginning
1120 of the line instead of the end.
1122 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1124 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1125 and sizeof (symbol).
1126 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1128 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1130 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1131 * configure.host: Mark *-*-solaris2.10* obsolete.
1132 * configure.tgt: Mark Solaris < 11 obsolete.
1133 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1134 Update target triplet.
1136 2019-11-01 Tom Tromey <tromey@adacore.com>
1138 * utils.c (print_sys_errmsg): Simplify.
1140 2019-11-01 Tom Tromey <tromey@adacore.com>
1142 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1144 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1146 * configure: Regenerate.
1147 * configure.ac: Remove check for strerror_r.
1148 * gdbsupport/common.m4: Check for strerror_r.
1150 2019-11-01 Luis Machado <luis.machado@linaro.org>
1154 * arm-tdep.c (arm_per_objfile): Rename to ...
1155 (arm_per_bfd): ... this.
1156 (arm_objfile_data_key): Rename to ...
1157 (arm_bfd_data_key): ... this.
1158 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1160 (arm_record_special_symbol): Likewise.
1162 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1166 * c-typeprint.c (c_print_typedef): Likewise.
1167 * f-typeprint.c (f_print_typedef): Likewise.
1168 * m2-typeprint.c (m2_print_typedef): Likewise.
1169 * p-typeprint.c (pascal_print_typedef): Likewise.
1170 * rust-lang.c (rust_print_typedef): Likewise.
1171 * symtab.c (print_symbol_info): Print a newline after calling
1174 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1176 * symtab.c (info_module_cmdlist): New variable.
1177 (info_module_command): New function.
1178 (search_module_symbols): New function.
1179 (info_module_subcommand): New function.
1180 (struct info_modules_var_func_options): New struct.
1181 (info_modules_var_func_options_defs): New variable.
1182 (make_info_modules_var_func_options_def_group): New function.
1183 (info_module_functions_command): New function.
1184 (info_module_variables_command): New function.
1185 (info_module_var_func_command_completer): New function.
1186 (_initialize_symtab): Register new 'info module functions' and
1187 'info module variables' commands.
1188 * symtab.h (typedef symbol_search_in_module): New typedef.
1189 (search_module_symbols): Declare new function.
1190 * NEWS: Mention new commands.
1192 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1194 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1195 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1196 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1198 (scan_partial_symbols): Only create partial module symbols for non
1200 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1202 * symtab.c (search_domain_name): Likewise.
1203 (search_symbols): Likewise.
1204 (print_symbol_info): Likewise.
1205 (symtab_symbol_info): Likewise.
1206 (info_modules_command): New function.
1207 (_initialize_symtab): Register 'info modules' command.
1208 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1209 * NEWS: Mention new 'info modules' command.
1211 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1213 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1214 and $_gdb_maint_setting_str.
1216 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1218 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1219 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1220 (str_value_from_setting, gdb_setting_str_internal_fn)
1221 (gdb_maint_setting_str_internal_fn): New functions.
1222 (_initialize_cli_cmds): Define the new convenience functions.
1223 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1224 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1226 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1228 * agent.c (set_can_use_agent): When the setting is turned on,
1229 look up agent symbols if we don't have them yet.
1230 (agent_new_objfile): Don't look up agent symbols when the agent
1233 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1235 * config.in: Regenerate.
1237 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1239 * configure: Regenerate.
1240 * configure.ac: Check for strerror_r.
1241 * gdbsupport/common-utils.h (safe_strerror): Change return value
1242 to const char * and document that this function is now threadsafe.
1243 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1244 thread_local and call strerror_r, if available.
1245 * utils.c (perror_string): Update.
1246 (print_sys_errmsg): Update.
1248 2019-10-31 Luis Machado <luis.machado@linaro.org>
1250 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1252 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1253 objfile to fetch per-bfd data.
1254 (arm_find_exidx_entry): Likewise.
1256 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1258 * gdbsupport/agent.c (debug_agent): Change type to bool.
1259 (use_agent): Likewise.
1260 (all_agent_symbols_look_up): Likewise.
1261 (agent_loaded_p): Change return value to bool.
1262 (agent_look_up_symbols): Update.
1263 (agent_capability_check): Change return value to bool.
1264 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1265 (debug_agent): Change type to bool.
1266 (use_agent): Likewise.
1267 (agent_capability_check): Change return value to bool.
1269 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1271 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1272 (build_minimal_symbol_hash_tables): Code to clear the table moved
1273 to clear_minimal_symbol_hash_tables.
1274 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1277 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1279 * infcmd.c: Remove includes.
1280 * infrun.c: Remove includes.
1282 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1284 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1285 (grow_vect): Remove declaration.
1286 (ada_type_of_array): Remove declaration.
1287 (ada_update_initial_language): Remove declaration.
1288 (ada_fold_name): Remove declaration.
1289 (ada_fill_in_ada_prototype): Remove declaration.
1290 (user_select_syms): Remove declaration.
1291 (get_selections): Remove declaration.
1292 (ada_tag_type): Remove declaration.
1293 (ada_value_tag): Remove declaration.
1294 (ada_is_others_clause): Remove declaration.
1295 (ada_in_variant): Remove declaration.
1296 (ada_value_struct_elt): Remove declaration.
1297 (ada_attribute_name): Remove declaration.
1298 (ada_system_address_type): Remove declaration.
1299 * ada-lang.c (ada_watch_location_expression): Make static.
1300 (GROW_VECT): Move here from ada-lang.h.
1301 (grow_vect): Make static.
1302 (ada_update_initial_language): Make static.
1303 (ada_fold_name): Make static.
1304 (ada_type_of_array): Make static.
1305 (encoded_ordered_before): Move up.
1306 (sort_choices): Move up.
1307 (print_signatures): Move up.
1308 (ada_print_symbol_signature): Move up.
1309 (get_selections): Move up and make static.
1310 (user_select_syms): Move up and make static.
1311 (ada_value_struct_elt): Move up and make static.
1312 (ada_tag_type): Make static.
1313 (ada_value_tag): Make static.
1314 (ada_is_others_clause): Make static.
1315 (ada_in_variant): Make static.
1316 (ada_attribute_name): Make static.
1318 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1320 * ada-lang.c: Remove includes.
1321 * ada-typeprint.c: Remove includes.
1322 * ada-valprint.c: Remove includes.
1324 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1326 * addrmap.c: Add static assertions of type size, moved from
1327 _initialize_addrmap.
1328 (_initialize_addrmap): Remove.
1330 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1332 * coffread.c (record_minimal_symbol): Update.
1333 (process_coff_symbol): Update.
1334 * dbxread.c (read_dbx_symtab): Update.
1335 * dwarf2read.c (add_partial_symbol): Update.
1336 (fixup_go_packaging): Update.
1337 (load_partial_dies): Update.
1338 (new_symbol): Update.
1339 * elfread.c (record_minimal_symbol): Change signature to use
1340 gdb::string_view instead of name+len.
1341 (elf_symtab_read): Update.
1342 (elf_rel_plt_read): Update.
1343 * mdebugread.c (parse_partial_symbols): Update.
1344 (handle_psymbol_enumerators): Update.
1345 (new_symbol): Update.
1346 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1347 to use gdb::string_view instead of name+len.
1348 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1349 * psympriv.h (add_psymbol_to_list): Likewise.
1350 * psymtab.c (add_psymbol_to_bcache): Likewise.
1351 (add_psymbol_to_list): Likewise.
1352 * stabsread.c (define_symbol): Update.
1353 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1354 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1355 (symbol_set_names): Likewise.
1356 * xcoffread.c (scan_xcoff_symtab): Update.
1358 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1360 * symtab.h (symbol_set_names): Document that copy_name must be
1361 set to true for non-nullterminated strings.
1362 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1363 linkage_name if the entry was not found and we need to demangle.
1365 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1367 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1368 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1369 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1370 * gdbsupport/gdb_binary_search.h: New file.
1372 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1374 * NEWS: Mention new --with-system-gdbinit-dir option.
1375 * config.in: Regenerate.
1376 * configure: Regenerate.
1377 * configure.ac: Add new option --with-system-gdbinit-dir.
1378 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1379 for a ".gdb" suffix.
1380 * main.c (get_init_files): Change system_gdbinit argument to
1381 a vector and return the files in SYSTEM_GDBINIT_DIR in
1382 addition to SYSTEM_GDBINIT.
1383 (captured_main_1): Update.
1384 (print_gdb_help): Update.
1385 * top.c (print_gdb_configuration): Also print the value of
1388 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1390 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1391 that takes gdb::string_view arguments.
1393 2019-10-26 Tom de Vries <tdevries@suse.de>
1395 * aarch64-linux-tdep.c: Fix typos in comments.
1396 * aarch64-tdep.c: Same.
1398 * amd64-nat.c: Same.
1400 * arch/aarch64-insn.c: Same.
1402 * breakpoint.h: Same.
1405 * cli/cli-decode.c: Same.
1406 * cli/cli-script.c: Same.
1407 * cli/cli-utils.h: Same.
1408 * coff-pe-read.c: Same.
1410 * compile/compile-cplus-symbols.c: Same.
1411 * compile/compile-object-run.c: Same.
1412 * completer.c: Same.
1414 * cp-support.c: Same.
1416 * dwarf-index-write.c: Same.
1417 * dwarf2-frame.c: Same.
1418 * dwarf2-frame.h: Same.
1420 * frame-base.h: Same.
1425 * guile/scm-objfile.c: Same.
1426 * i386-tdep.c: Same.
1427 * i386-tdep.h: Same.
1430 * linux-nat.c: Same.
1431 * m68k-tdep.c: Same.
1434 * mi/mi-cmd-disas.c: Same.
1435 * mi/mi-getopt.h: Same.
1436 * mi/mi-main.c: Same.
1438 * nat/aarch64-sve-linux-sigcontext.h: Same.
1440 * ppc-linux-nat.c: Same.
1441 * ppc-linux-tdep.c: Same.
1443 * progspace.h: Same.
1444 * prologue-value.h: Same.
1445 * python/py-evtregistry.c: Same.
1446 * python/py-instruction.h: Same.
1447 * record-btrace.c: Same.
1448 * record-full.c: Same.
1450 * rs6000-tdep.c: Same.
1452 * sol-thread.c: Same.
1453 * sparc-sol2-tdep.c: Same.
1454 * sparc64-tdep.c: Same.
1455 * stabsread.c: Same.
1459 * tracepoint.c: Same.
1460 * tui/tui-data.h: Same.
1461 * tui/tui-io.c: Same.
1462 * tui/tui-win.c: Same.
1464 * unittests/rsp-low-selftests.c: Same.
1465 * user-regs.h: Same.
1476 * xtensa-tdep.c: Same.
1478 2019-10-25 Ali Tamur <tamur@google.com>
1480 * charset.c (find_charset_names): Reflect API change.
1482 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1484 * symtab.c (struct demangled_name_entry): Change demangled name
1485 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1486 part of the struct anymore.
1487 (symbol_set_names): No longer obstack allocate + copy the demangled
1488 name, just store the allocated name from bfd.
1490 2019-10-25 Tom Tromey <tromey@adacore.com>
1492 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1493 (bsearch_cie_cmp, add_cie): Remove.
1494 (find_cie): Reimplement.
1495 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1496 (dwarf2_build_frame_info): Update.
1498 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1501 * symfile.c (reread_symbols): Call forget_cached_source_info to
1502 clear the stale source cache.
1504 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1506 * configure: Regenerate.
1507 * configure.ac: Remove code that sets python_has_threads.
1509 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1511 * config.in: Regenerate.
1512 * configure: Regenerate.
1513 * configure.ac: Remove the code that uses sed to get the python
1514 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1516 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1518 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1521 2019-10-23 Tom Tromey <tom@tromey.com>
1523 * arc-tdep.c: Remove ".." from include.
1524 * frv-tdep.c: Remove ".." from include.
1525 * lm32-tdep.c: Remove ".." from include.
1526 * microblaze-tdep.c: Remove ".." from include.
1527 * or1k-tdep.h: Remove ".." from include.
1528 * s12z-tdep.c: Remove ".." from include.
1529 * Makefile.in (OPCODES_CFLAGS): Add comment.
1530 (TOP_CFLAGS): New variable.
1531 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1533 2019-10-23 Tom Tromey <tom@tromey.com>
1535 * Makefile.in (READLINE_DIR): Update.
1537 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1539 * infcall.c (call_function_by_hand_dummy): Fix the function
1540 comment. And extract out a code section into...
1541 (reserve_stack_space): ...this new function.
1543 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545 * infcall.c (value_arg_coerce): Remove an unused parameter.
1546 (call_function_by_hand_dummy): Update the call to
1549 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1551 * infcall.c (call_function_by_hand_dummy): Refactor.
1553 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1557 2019-10-23 Tom Tromey <tom@tromey.com>
1559 * configure: Rebuild.
1560 * configure.ac: Don't check for sigprocmask.
1561 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1563 2019-10-23 Tom Tromey <tom@tromey.com>
1565 * configure: Rebuild.
1566 * acinclude.m4: Use m4_include, not sinclude.
1568 2019-10-23 Tom de Vries <tdevries@suse.de>
1570 PR breakpoints/24687
1571 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1573 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1575 * symtab.c (struct demangled_name_entry) <language>: Change from
1576 bitfield to regular variable.
1578 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1580 * symtab.c (struct demangled_name_entry): Add a constructor.
1581 (free_demangled_name_entry): New function to call the destructor
1582 for demangled_name_entry.
1583 (create_demangled_names_hash): Pass free_demangled_name_entry to
1585 (symbol_set_names): Call placement new for demangled_name_entry.
1586 * utils.c: No longer include xxhash.h here, now that fast_hash
1587 is inlined in the header.
1588 * utils.h: Instead, include it here.
1590 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1592 * Makefile.in: Link with libxxhash.
1593 * config.in: Regenerate.
1594 * configure: Regenerate.
1595 * configure.ac: Search for libxxhash.
1596 * utils.c (fast_hash): Use xxhash if present.
1598 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1600 * utils.h (fast_hash): New function.
1601 * symtab.c (hash_demangled_name_entry): Call new function
1604 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1606 * symtab.c (struct demangled_name_entry): Change type of mangled
1607 to gdb::string_view. Also adds a constructor that takes the
1609 (hash_demangled_name_entry): Update.
1610 (eq_demangled_name_entry): Update.
1611 (free_demangled_name_entry): New function to call the destructor
1612 now that this is not a POD anymore.
1613 (create_demangled_names_hash): Pass free_demangled_name_entry to
1615 (symbol_set_names): Update.
1617 2019-10-21 Ali Tamur <tamu@google.com>
1619 * dwarf2read.c (dir_index): Change type.
1620 (file_name_index): Likewise.
1621 (line_header::include_dir_at): Change comment and implementation on
1622 whether it is DWARF 5.
1623 (line_header::is_valid_file_index): New function.
1624 (line_header::file_name_at): Change comment and implementation on
1625 whether it is DWARF 5.
1626 (line_header::file_names): Change to private field renamed as
1627 m_file_names and introduce a new accessor method.
1628 (line_header::file_names_size): New method.
1629 (line_header::include_dirs): Change to private field and rename as
1631 (dw2_get_file_names_reader): Define local var at a smaller scope and
1633 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1634 (process_structure_scope): Likewise.
1635 (line_header::add_include_dir): Change message and reflect renaming.
1636 (line_header::add_file_name): Likewise.
1637 (read_formatted_entries): Handle DW_FORM_data16.
1638 (dwarf_decode_line_header): Fix line header length calculation.
1639 (psymtab_include_file_name): Change comment and API.
1640 (lnp_state_machine::m_file): Update comment and reflect type change.
1641 (lnp_state_machine::record_line): Reflect type change.
1642 (dwarf_decode_lines): Reflect API change.
1643 (file_file_name): Likewise.
1644 (file_full_name): Likewise.
1646 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1648 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1650 2019-10-21 Tom Tromey <tom@tromey.com>
1652 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1654 2019-10-21 Tom Tromey <tom@tromey.com>
1656 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1657 NM_H. Use AC_CONFIG_LINKS.
1658 * configure: Rebuild.
1659 * Makefile.in (NM_H): New variable.
1660 (generated_files): Add NM_H. Remove gcore.
1661 (nm.h, stamp-nmh): New targets.
1663 2019-10-20 Tom Tromey <tom@tromey.com>
1665 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1666 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1668 (put_objfile_before): Now static.
1670 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1672 * gdbsupport/common-utils.h (startswith): Change return type to
1675 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1677 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1678 * breakpoint.c (bp_locations_compare): Rename to...
1679 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1680 (update_global_location_list): Use std::sort instead of qsort.
1681 * buildsym.c (compare_line_numbers): Rename to...
1682 (lte_is_less_than): ...this, and change to std::sort semantics.
1683 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1685 * disasm.c (compare_lines): Rename to...
1686 (line_is_less_than): ...this, and change to std::sort semantics.
1687 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1689 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1690 (fde_is_less_than): ...this, and change to std::sort semantics.
1691 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1692 * mdebugread.c (compare_blocks):
1693 (block_is_less_than): ...this, and change to std::sort semantics.
1694 (sort_blocks): Call std::sort instead of qsort.
1695 * objfiles.c (qsort_cmp): Rename to...
1696 (sort_cmp): ...this, and change to std::sort semantics.
1697 (update_section_map): Call std::sort instead of qsort.
1698 * remote.c (compare_pnums): Remove.
1699 (map_regcache_remote_table): Call std::sort instead of qsort.
1700 * utils.c (compare_positive_ints): Remove.
1701 * utils.h (compare_positive_ints): Remove.
1702 * xcoffread.c (compare_lte): Remove.
1703 (arrange_linetable): Call std::sort instead of qsort.
1705 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1707 * symfile.c (init_entry_point_info): Fix typo.
1708 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1710 2019-10-18 Tom de Vries <tdevries@suse.de>
1712 * aarch64-tdep.c: Fix typos in comments.
1714 * ada-tasks.c: Same.
1715 * alpha-tdep.c: Same.
1716 * alpha-tdep.h: Same.
1717 * amd64-nat.c: Same.
1718 * amd64-windows-tdep.c: Same.
1721 * arch-utils.c: Same.
1722 * arm-nbsd-tdep.c: Same.
1725 * blockframe.c: Same.
1728 * coff-pe-read.c: Same.
1730 * cris-tdep.c: Same.
1731 * darwin-nat.c: Same.
1735 * dtrace-probe.c: Same.
1736 * dwarf-index-write.c: Same.
1737 * dwarf2-frame-tailcall.c: Same.
1738 * dwarf2-frame.c: Same.
1739 * dwarf2read.c: Same.
1741 * exceptions.c: Same.
1742 * fbsd-tdep.c: Same.
1746 * gnu-v3-abi.c: Same.
1748 * h8300-tdep.c: Same.
1749 * hppa-tdep.c: Same.
1750 * i386-linux-tdep.c: Same.
1751 * i386-tdep.c: Same.
1752 * ia64-libunwind-tdep.c: Same.
1753 * ia64-tdep.c: Same.
1757 * linux-nat.c: Same.
1758 * linux-thread-db.c: Same.
1759 * machoread.c: Same.
1760 * mdebugread.c: Same.
1762 * mn10300-tdep.c: Same.
1763 * namespace.c: Same.
1765 * opencl-lang.c: Same.
1766 * or1k-tdep.c: Same.
1768 * ppc-linux-nat.c: Same.
1769 * ppc-linux-tdep.c: Same.
1770 * ppc-sysv-tdep.c: Same.
1773 * record-btrace.c: Same.
1774 * record-full.c: Same.
1775 * remote-fileio.c: Same.
1777 * rs6000-tdep.c: Same.
1778 * s12z-tdep.c: Same.
1779 * score-tdep.c: Same.
1783 * sol-thread.c: Same.
1784 * solib-svr4.c: Same.
1787 * sparc-nat.c: Same.
1788 * sparc-sol2-tdep.c: Same.
1789 * sparc-tdep.c: Same.
1790 * sparc64-tdep.c: Same.
1791 * stabsread.c: Same.
1795 * target-descriptions.c: Same.
1796 * target-float.c: Same.
1803 * windows-nat.c: Same.
1804 * xcoffread.c: Same.
1805 * xstormy16-tdep.c: Same.
1806 * xtensa-tdep.c: Same.
1808 2019-10-17 Tom Tromey <tromey@adacore.com>
1810 * configure: Rebuild.
1811 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1812 in AC_CONFIG_FILES invocation.
1813 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1814 new-style config.status invocation.
1816 2019-10-17 Tom de Vries <tdevries@suse.de>
1818 * arm-nbsd-nat.c: Fix typos in comments.
1820 * darwin-nat-info.c: Same.
1821 * dwarf2read.c: Same.
1823 * event-top.c: Same.
1826 * hppa-tdep.c: Same.
1827 * i386-tdep.c: Same.
1830 * mdebugread.c: Same.
1831 * moxie-tdep.c: Same.
1832 * nto-procfs.c: Same.
1834 * ppc-linux-tdep.c: Same.
1836 * riscv-tdep.c: Same.
1837 * s390-tdep.c: Same.
1839 * sparc-linux-tdep.c: Same.
1840 * sparc-nat.c: Same.
1842 * target-descriptions.c: Same.
1846 2019-10-16 Tom Tromey <tom@tromey.com>
1848 * objfiles.h (struct objfile) <original_name>: Now const.
1850 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1852 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1853 pass on to sigsetjmp's second argument.
1854 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1856 2019-10-16 Keith Seitz <keiths@redhat.com>
1859 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1860 sections whose size is greater than the file size.
1862 2019-10-16 Jim Wilson <jimw@sifive.com>
1864 * riscv-tdep.c (riscv_gcc_target_options): New.
1865 (riscv_gnu_triplet_regexp): New.
1866 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1867 set_gdbarch_gnu_triplet_regexp.
1869 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1871 * Makefile.in: Add xml-builtin.h.
1872 * features/feature_to_c.sh: Add an include for xml-builtin.h
1873 to ensure that the compiler checks that the types match.
1874 * xml-builtin.h: New file.
1875 * xml-support.c (fetch_xml_builtin): Add missing const.
1876 * xml-support.h: Remove declaration of xml_builtins.
1878 2019-10-16 Tom de Vries <tdevries@suse.de>
1881 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1882 (amd64_classify_aggregate): ... here.
1883 (amd64_classify_aggregate_field): Handled fiels of nested structs
1886 2019-10-16 Tom de Vries <tdevries@suse.de>
1889 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1890 that handles 'theclass'.
1892 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * linespec.c (decode_digits_ordinary): Update comment.
1895 * make-target-delegates: No longer need to handle VEC case.
1896 * memrange.c (normalize_mem_ranges): Update comment.
1897 * namespace.c (add_using_directive): Update comment.
1898 * objc-lang.c (uniquify_strings): Update comment.
1899 * ppc-linux-nat.c (struct thread_points): Update comment.
1900 * probe.h (find_probes_in_objfile): Update comment.
1901 * target.h (enum flash_preserve_mode): Update comment.
1902 * varobj.c (varobj_restrict_range): Update comment.
1903 * varobj.h (varobj_list_children): Update comment.
1905 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1907 * Makefile.in: Remove references to vec.h and vec.c.
1908 * aarch64-tdep.c: No longer include vec.h.
1909 * ada-lang.c: Likewise.
1910 * ada-lang.h: Likewise.
1911 * arm-tdep.c: Likewise.
1913 * breakpoint.h: Likewise.
1914 * charset.c: Likewise.
1915 * cp-support.h: Likewise.
1916 * dtrace-probe.c: Likewise.
1917 * dwarf2read.c: Likewise.
1918 * extension.h: Likewise.
1919 * gdb_bfd.c: Likewise.
1920 * gdbsupport/gdb_vecs.h: Likewise.
1921 * gdbsupport/vec.c: Remove.
1922 * gdbsupport/vec.h: Remove.
1923 * gdbthread.h: Likewise.
1924 * guile/scm-type.c: Likewise.
1925 * inline-frame.c: Likewise.
1926 * machoread.c: Likewise.
1927 * memattr.c: Likewise.
1928 * memrange.h: Likewise.
1929 * namespace.h: Likewise.
1930 * nat/linux-btrace.h: Likewise.
1931 * osdata.c: Likewise.
1932 * parser-defs.h: Likewise.
1933 * progspace.h: Likewise.
1934 * python/py-type.c: Likewise.
1935 * record-btrace.c: Likewise.
1936 * rust-exp.y: Likewise.
1937 * solib-target.c: Likewise.
1938 * stap-probe.c: Likewise.
1939 * target-descriptions.c: Likewise.
1940 * target-memory.c: Likewise.
1941 * target.h: Likewise.
1942 * varobj.c: Likewise.
1943 * varobj.h: Likewise.
1944 * xml-support.h: Likewise.
1946 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1948 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1949 Update for new std::vector based implementation.
1950 (process_psymtab_comp_unit_reader): Likewise.
1951 (scan_partial_symbols): Likewise.
1952 (recursively_compute_inclusions): Likewise.
1953 (compute_compunit_symtab_includes): Likewise.
1954 (process_imported_unit_die): Likewise.
1955 (queue_and_load_dwo_tu): Likewise.
1956 (follow_die_sig_1): Likewise.
1957 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1958 (typedef dwarf2_per_cu_ptr): Remove.
1959 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1961 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1962 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1963 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1964 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1967 2019-10-15 Tom Tromey <tromey@adacore.com>
1969 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1972 2019-10-15 Tom Tromey <tromey@adacore.com>
1974 * windows-nat.c (windows_nat_target::fetch_registers)
1975 (windows_nat_target::store_registers): Rename "pid" to "tid".
1977 2019-10-15 Tom Tromey <tromey@adacore.com>
1979 * gdbarch.h, gdbarch.c: Rebuild.
1980 * gdbarch.sh (gcc_target_options): Change return type to
1982 * compile/compile.c (get_args): Update.
1983 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1984 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1986 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1988 * arch-utils.c (default_gcc_target_options): Return std::string.
1989 * arch-utils.h (default_gcc_target_options): Return std::string.
1990 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1992 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1994 * breakpoint.c (breakpoint_chain): Make static.
1995 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1996 of accessing breakpoint_chain.
1998 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2000 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2001 to a gdb::function_view and return value to bool.
2002 * breakpoint.h (iterate_over_breakpoints): Likewise.
2003 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2004 (pop_dummy_frame): Update.
2005 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2006 (gdbscm_breakpoints): Update.
2007 * python/py-breakpoint.c (build_bp_list): Update.
2008 (gdbpy_breakpoints): Update.
2009 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2011 (bpfinishpy_handle_stop): Update.
2012 (bpfinishpy_handle_exit): Update.
2013 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2014 (svr4_update_solib_event_breakpoints): Update.
2016 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2018 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2019 when unwrapping single-field structs.
2021 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2023 * dwarf2read.c: Remove includes.
2025 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2027 * ui-out.c (ui_out::call_do_message): Silence
2028 -Wformat-nonliteral warning.
2030 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2032 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2033 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2034 include: readline/tilde.h.
2036 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2038 * remote.c (remote_target::get_trace_status): Remove declaration of
2039 trace_regblock_size.
2041 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2043 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2044 (show_user): Remove declaration of cmdlist.
2045 * cli/cli-cmds.h (max_user_call_depth): Declare.
2046 * cli/cli-script.c (execute_user_command): Remove declaration
2047 of max_user_call_depth.
2049 2019-10-11 Jim Wilson <jimw@sifive.com>
2051 * gdbsupport/print-utils.h (pulongest): Fix comment.
2052 (plongest): Likewise.
2053 (phex): Add missing comment, mention leading zeros.
2054 (phex_nz): Add mention of no leading zeros to comment.
2056 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2057 plongest instead of unsigned long long cast.
2059 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2061 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2062 for external_editor_command and gdbtk_test.
2064 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2066 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2067 * varobj.c (varobjdebug): Move comment to...
2068 * varobj.h (varobjdebug): ...here, and declare.
2070 2019-10-09 Tom Tromey <tom@tromey.com>
2072 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2075 2019-10-09 Tom Tromey <tom@tromey.com>
2077 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2078 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2079 * tui/tui-command.c (tui_cmd_window::resize)
2080 (tui_refresh_cmd_win): Update.
2081 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2082 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2083 * tui/tui-data.c (~tui_gen_win_info): Remove.
2084 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2085 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2086 (tui_redisplay_readline, tui_mld_flush)
2087 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2088 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2089 (tui_data_window::erase_data_content)
2090 (tui_data_item_window::rerender)
2091 (tui_data_item_window::refresh_window): Update.
2092 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2093 (box_win, tui_gen_win_info::make_window)
2094 (tui_gen_win_info::make_visible): Update.
2095 (tui_delete_win): Remove.
2096 * tui/tui-winsource.c
2097 (tui_source_window_base::do_erase_source_content): Update.
2098 (tui_show_source_line, tui_source_window_base::update_tab_width)
2099 (tui_source_window_base::update_exec_info): Update.
2100 * tui/tui-data.h (struct curses_deleter): New.
2101 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2102 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2104 2019-10-09 Tom Tromey <tom@tromey.com>
2106 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2108 2019-10-09 Tom Tromey <tom@tromey.com>
2110 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2111 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2113 2019-10-09 Tom Tromey <tom@tromey.com>
2115 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2116 window height directly.
2117 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2119 * tui/tui-layout.c (tui_default_win_height): Remove.
2120 (tui_default_win_viewport_height): Remove.
2122 2019-10-09 Tom Tromey <tom@tromey.com>
2124 * tui/tui.h: Remove comments.
2126 2019-10-09 Tom de Vries <tdevries@suse.de>
2128 * python/lib/gdb/printer/bound_registers.py: Use
2129 '^builtin_type_bound128' as regexp argument for
2130 add_builtin_pretty_printer.
2132 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2134 * guile/guile.c (guile_extension_script_ops): Remove forward
2135 declaration and mark as static.
2136 (guile_script_ops): Likewise.
2137 (extension_language_guile): Move further down in the file so
2138 it can reference the definitions for guile_{extension_,}script_ops.
2140 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2142 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2143 except SORTL, DFLTCC, and KDSA.
2145 2019-10-08 Tom Tromey <tromey@adacore.com>
2147 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2148 (struct safe_symbol_file_add_args): Remove.
2150 2019-10-08 Tom Tromey <tromey@adacore.com>
2152 * windows-nat.c: Don't include buildsym-legacy.h.
2154 2019-10-08 Tom Tromey <tromey@adacore.com>
2156 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2158 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2160 * gdbtypes.c (overload_debug): Move comment to header.
2161 * gdbtypes.h (overload_debug): Declare.
2162 * valops.c: Remove declaration of overload_debug, instead
2165 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2167 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2169 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2171 * language.h (lang_frame_mismatch_warn): ... here. Also add
2173 * top.c (lang_frame_mismatch_warn): Remove declaration.
2174 (check_frame_language_change): Pass lang_frame_mismatch_warn
2177 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2179 * c-lang.h (vtbl_ptr_name): Declare.
2180 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2182 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2184 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2186 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2189 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2191 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2192 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2193 * ctfread.c: New file.
2194 * ctfread.h: New file.
2195 * elfread.c: Include ctfread.h.
2196 (struct elfinfo text_p): New member ctfsect.
2197 (elf_locate_sections): Mark CTF section.
2198 (elf_symfile_read): Call elfctf_build_psymtabs.
2199 * Makefile.in (LIBCTF): Add.
2202 (DIST): Add ctfread.c.
2204 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2206 * ctfread.c (struct nextfield): Renamed to ...
2207 (struct ctf_nextfield): ... this.
2208 (struct field_info): Renamed to ...
2209 (strut ctf_field_info): ... this.
2210 (attach_fields_to_type): Update for renamed structures.
2211 (ctf_add_member_cb): Likewise.
2212 (ctf_add_enum_member_cb): Likewise.
2213 (process_struct_members): Likewise.
2214 (process_enum_type): Likewise.
2216 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2218 * tracectf.h: Rename, was ctf.h.
2219 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2220 * tracefile.c: Likewise.
2221 * tracepoint.c: Remove unused include ctf.h.
2222 * mi/mi-main.c: Likewise.
2223 * Makefile.in Replace ctf.c with tracectf.c.
2225 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2227 * version.in: Change version number to "9.0.50.DATE-git".
2229 2019-10-03 Tom Tromey <tom@tromey.com>
2232 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2234 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2236 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2237 cp_search_name_hash.
2238 * NEWS: Add entry about nested function support.
2240 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2241 Andrew Burgess <andrew.burgess@embecosm.com>
2243 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2244 for nested static variables when searchin VAR_DOMAIN.
2245 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2246 global scope, update comment.
2247 (add_partial_subprogram): Call add_partial_subprogram recursively
2248 for nested subroutines when processinng Fortran.
2249 (load_partial_dies): Process the child entities of a subprogram
2250 when processing Fortran.
2251 (partial_die_parent_scope): Handle building scope
2252 for Fortran nested functions.
2253 (process_die): Record that nested functions have a scope.
2254 (new_symbol): Always record Fortran subprograms on the global
2256 (determine_prefix): How to build the prefix for Fortran
2259 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2261 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2262 have just sent the thread a SIGSTOP and are waiting for it to
2265 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2267 * btrace.c (btrace_add_pc): Remove whitespace before the template
2268 parameter in 'std::vector <...>'.
2269 (parse_xml_btrace_block): Likewise.
2270 (btrace_maint_decode_pt): Likewise.
2271 (btrace_maint_update_packets): Likewise.
2272 (btrace_maint_print_packets): Likewise.
2273 * btrace.h (struct btrace_maint_info): Likewise.
2274 * dwarf2read.c (struct type_unit_group): Likewise.
2275 (build_type_psymtabs_reader): Likewise.
2276 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2277 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2278 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2280 2019-10-03 Tom de Vries <tdevries@suse.de>
2282 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2283 the first line of the help text for set/show style metadata.
2285 2019-10-02 Tom Tromey <tromey@adacore.com>
2287 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2288 * gdbsupport/common-inferior.c: New file.
2289 * infcmd.c (startup_with_shell): Don't define.
2290 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2291 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2292 * inferior.h (startup_with_shell): Don't declare.
2294 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2296 * gdbsupport/gdb_assert.h: Include errors.h.
2297 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2299 2019-10-02 Tom Tromey <tromey@adacore.com>
2301 * NEWS: Add $_ada_exception entry.
2302 * ada-lang.c (struct ada_catchpoint): Add constructor.
2303 <m_kind>: New member.
2304 (allocate_location_exception, re_set_exception): Remove
2306 (should_stop_exception): Compute $_ada_exception.
2307 (check_status_exception, print_it_exception)
2308 (print_one_exception, print_mention_exception): Remove
2310 (allocate_location_catch_exception, re_set_catch_exception)
2311 (check_status_exception, print_it_catch_exception)
2312 (print_one_catch_exception, print_mention_catch_exception)
2313 (print_recreate_catch_exception)
2314 (allocate_location_catch_exception_unhandled)
2315 (re_set_catch_exception_unhandled)
2316 (check_status_exception, print_it_catch_exception_unhandled)
2317 (print_one_catch_exception_unhandled)
2318 (print_mention_catch_exception_unhandled)
2319 (print_recreate_catch_exception_unhandled)
2320 (allocate_location_catch_assert, re_set_catch_assert)
2321 (check_status_assert, print_it_catch_assert)
2322 (print_one_catch_assert, print_mention_catch_assert)
2323 (print_recreate_catch_assert)
2324 (allocate_location_catch_handlers, re_set_catch_handlers)
2325 (check_status_handlers, print_it_catch_handlers)
2326 (print_one_catch_handlers, print_mention_catch_handlers)
2327 (print_recreate_catch_handlers): Remove.
2328 (create_ada_exception_catchpoint): Update.
2329 (initialize_ada_catchpoint_ops): Update.
2331 2019-10-02 Tom Tromey <tromey@adacore.com>
2333 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2334 (create_excep_cond_exprs): Simplify exception string computation.
2335 (ada_exception_catchpoint_cond_string): Likewise.
2337 2019-10-02 Tom Tromey <tromey@adacore.com>
2339 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2340 * ada-lang.c (lesseq_defined_than): Handle
2342 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2344 (dwarf2_has_info): Likewise.
2345 (new_symbol): Set maybe_copied on symbol when
2347 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2349 <can_copy>: New member.
2350 * elfread.c (record_minimal_symbol): Set maybe_copied
2351 on symbol when appropriate.
2352 (elf_symfile_read): Update call to dwarf2_has_info.
2353 * minsyms.c (lookup_minimal_symbol_linkage): New
2355 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2356 * symtab.c (get_symbol_address, get_msymbol_address):
2358 * symtab.h (get_symbol_address, get_msymbol_address):
2360 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2362 (struct symbol, struct minimal_symbol) <maybe_copied>:
2365 2019-10-02 Tom Tromey <tromey@adacore.com>
2367 * source.c (struct current_source_location): New.
2368 (current_source_key): New global.
2369 (current_source_symtab, current_source_line)
2370 (current_source_pspace): Remove.
2371 (get_source_location): New function.
2372 (get_current_source_symtab_and_line)
2373 (set_default_source_symtab_and_line)
2374 (set_current_source_symtab_and_line)
2375 (clear_current_source_symtab_and_line, select_source_symtab)
2376 (info_source_command, print_source_lines_base)
2377 (info_line_command, search_command_helper, _initialize_source):
2380 2019-10-02 Tom Tromey <tromey@adacore.com>
2382 * source.c (select_source_symtab): Don't call
2383 decode_line_with_current_source.
2385 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2387 * symtab.c (lookup_global_symbol): Search global block.
2389 2019-10-02 Tom Tromey <tromey@adacore.com>
2391 * coffread.c (process_coff_symbol): Update.
2392 * dwarf2read.c (var_decode_location, new_symbol): Update.
2393 * mdebugread.c (parse_symbol): Update.
2394 * objfiles.c (relocate_one_symbol): Update.
2395 * stabsread.c (define_symbol, fix_common_block)
2396 (scan_file_globals): Update.
2397 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2398 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2399 * xcoffread.c (process_xcoff_symbol): Update.
2401 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2403 * MAINTAINERS: Update my email address.
2405 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2407 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2409 (build_type_psymtabs_reader): Update for std::vector.
2410 (build_type_psymtab_dependencies): Likewise.
2411 * dwarf2read.h: Remove use of DEF_VEC_P.
2412 (typedef sig_type_ptr): Delete.
2414 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2416 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2418 (btrace_maint_decode_pt): Likewise, and move allocation of the
2419 vector outside of the loop.
2420 (btrace_maint_update_packets): Update to handle change from VEC to
2422 (btrace_maint_print_packets): Likewise.
2423 (maint_info_btrace_cmd): Likewise.
2424 * btrace.h: Remove use of DEF_VEC_O.
2425 (typedef btrace_pt_packet_s): Delete.
2426 (struct btrace_maint_info) <packets>: Change fromm VEC to
2428 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2430 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2432 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2433 make accesses into the vector constant references.
2434 (btrace_add_pc): Update for std::vector.
2435 (btrace_stitch_bts): Likewise.
2436 (parse_xml_btrace_block): Likewise.
2437 (btrace_maint_update_packets): Likewise.
2438 (btrace_maint_print_packets): Likewise.
2439 (maint_info_btrace_cmd): Likewise.
2440 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2442 (btrace_data::empty): Likewise.
2443 (btrace_data_append): Likewise.
2444 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2445 (typedef btrace_block_s): Delete.
2446 (struct btrace_block): Add constructor.
2447 (struct btrace_data_bts) <blocks>: Change to std::vector.
2448 * nat/linux-btrace.c (perf_event_read_bts): Update for
2450 (linux_read_bts): Likewise.
2452 2019-10-01 Tom Tromey <tom@tromey.com>
2454 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2456 2019-10-01 Tom Tromey <tom@tromey.com>
2458 * stack.c (print_frame, info_frame_command_core): Use
2460 * linux-thread-db.c (try_thread_db_load_1)
2461 (try_thread_db_load_from_pdir_1): Use styled_string.
2462 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2463 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2464 (maybe_print_unsupported_script_warning)
2465 (maybe_print_script_not_found_warning): Use styled_string.
2466 * ada-lang.c (user_select_syms): Use styled_string.
2468 2019-10-01 Tom Tromey <tom@tromey.com>
2470 * p-lang.c (pascal_printstr): Use metadata style.
2471 * value.c (show_convenience): Use metadata style.
2472 * valprint.c (valprint_check_validity, val_print_optimized_out)
2473 (val_print_not_saved, val_print_unavailable)
2474 (val_print_invalid_address, generic_val_print, val_print)
2475 (value_check_printable, val_print_array_elements): Use metadata
2477 * ui-out.h (class ui_out) <field_fmt>: New overload.
2478 <do_field_fmt>: Add style parameter.
2479 * ui-out.c (ui_out::field_fmt): New overload.
2480 * typeprint.c (type_print_unknown_return_type)
2481 (val_print_not_allocated, val_print_not_associated): Use metadata
2483 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2485 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2486 * tracepoint.c (tvariables_info_1): Use metadata style.
2487 * stack.c (print_frame_arg, print_frame_info, print_frame)
2488 (info_frame_command_core): Use metadata style.
2489 * skip.c (info_skip_command): Use metadata style.
2490 * rust-lang.c (rust_print_enum): Use metadata style.
2491 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2493 * python/py-framefilter.c (py_print_single_arg): Use metadata
2495 * printcmd.c (do_one_display, print_variable_and_value): Use
2497 * p-valprint.c (pascal_val_print)
2498 (pascal_object_print_value_fields): Use metadata style.
2499 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2500 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2502 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2503 * m2-valprint.c (m2_print_long_set): Use metadata style.
2504 * m2-typeprint.c (m2_print_type): Use metadata style.
2505 * infcmd.c (print_return_value_1): Use metadata style.
2506 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2507 * f-valprint.c (info_common_command_for_block): Use metadata
2509 * f-typeprint.c (f_type_print_base): Use metadata style.
2510 * expprint.c (print_subexp_standard): Use metadata style.
2511 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2512 * cli/cli-style.h (class cli_style_option): Add constructor.
2513 (metadata_style): Declare.
2514 * cli/cli-style.c (metadata_style): New global.
2515 (_initialize_cli_style): Register metadata style.
2516 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2518 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2519 * c-typeprint.c (c_type_print_base_struct_union)
2520 (c_type_print_base_1): Use metadata style.
2521 * breakpoint.c (watchpoint_value_print)
2522 (print_one_breakpoint_location): Use metadata style.
2523 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2525 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2527 * ada-valprint.c (val_print_packed_array_elements, printstr)
2528 (print_field_values, ada_val_print_ref, ada_val_print): Use
2530 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2532 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2534 * ada-lang.c (user_select_syms): Use metadata style.
2536 2019-10-01 Tom Tromey <tom@tromey.com>
2538 * cli/cli-cmds.c (pwd_command): Style output.
2540 2019-10-01 Pedro Alves <palves@redhat.com>
2541 Tom Tromey <tom@tromey.com>
2543 * symtab.c (print_symbol_info): Use %ps.
2544 (print_msymbol_info): Use %ps.
2545 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2546 * printcmd.c (print_variable_and_value): Use %ps.
2547 * macrocmd.c (show_pp_source_pos): Use %ps.
2548 * infrun.c (print_exited_reason): Use ui_out::message.
2549 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2550 (describe_other_breakpoints): Use ui_out::message and new
2552 (say_where): Use new formats.
2553 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2556 2019-10-01 Pedro Alves <palves@redhat.com>
2557 Tom Tromey <tom@tromey.com>
2559 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2560 (test_gdb_formats): New function.
2561 (run_tests): Call it.
2562 (test_format_specifier): Update.
2563 * utils.h (fputs_filtered): Update comment.
2564 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2565 (fputs_styled_unfiltered): Declare.
2566 * utils.c (fputs_styled_unfiltered): New function.
2567 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2568 (vfprintf_filtered): Update.
2569 (vfprintf_unfiltered, vprintf_filtered): Update.
2570 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2571 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2572 disallow_ui_out_field>: New constants.
2573 (enum class field_kind): New.
2574 (struct base_field_s, struct signed_field_s): New.
2575 (signed_field): New function.
2576 (struct string_field_s): New.
2577 (string_field): New function.
2578 (struct styled_string_s): New.
2579 (styled_string): New function.
2580 (class ui_out) <message>: Add comment.
2581 <vmessage, call_do_message>: New methods.
2582 <do_message>: Add style parameter.
2583 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2585 (ui_out::message): Rewrite.
2586 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2588 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2589 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2590 gdb_extensions parameter.
2591 (class format_piece): Add parameter to constructor.
2592 (n_int_args): New field.
2593 * gdbsupport/format.c (format_pieces::format_pieces): Add
2594 gdb_extensions parameter. Handle '*'.
2595 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2596 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2597 vfprintf_styled_no_gdbfmt.
2598 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2599 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2601 * ui-style.h (struct ui_file_style) <ptr>: New method.
2603 2019-10-01 Tom Tromey <tom@tromey.com>
2605 * unittests/format_pieces-selftests.c: Update. Add final format.
2606 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2607 empty literal pieces.
2609 2019-10-01 Tom Tromey <tom@tromey.com>
2611 * ui-out.h (enum class ui_out_style_kind): Remove.
2612 (class ui_out) <field_string, field_stsream, do_field_string>:
2613 Change type of "style".
2614 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2615 (ui_out::field_string): Update.
2616 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2618 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2619 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2620 * stack.c (print_frame_arg, print_frame_info, print_frame):
2622 * source.c (print_source_lines_base): Update.
2623 * solib.c (info_sharedlibrary_command): Update.
2624 * skip.c (info_skip_command): Update.
2625 * record-btrace.c (btrace_call_history_src_line)
2626 (btrace_call_history): Update.
2627 * python/py-framefilter.c (py_print_frame): Update.
2628 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2630 * mi/mi-out.c (mi_ui_out::do_table_header)
2631 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2632 (mi_ui_out::do_field_string): Update.
2633 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2635 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2637 * cli-out.c (cli_ui_out::do_table_header)
2638 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2639 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2640 (cli_ui_out::do_field_fmt): Update.
2641 * breakpoint.c (print_breakpoint_location): Update.
2642 (update_static_tracepoint): Update.
2644 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2646 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2647 conversion of gdb_datadir.
2648 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2649 remove not needed c_str ().
2651 2019-09-30 Ali Tamur <tamur@google.com>
2653 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2654 (dwarf2_string_attr): Likewise.
2656 2019-09-30 Ali Tamur <tamur@google.com>
2658 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2659 (process_full_type_unit): Likewise.
2660 (dump_die_shallow): Likewise.
2661 (cu_debug_loc_section): Likewise.
2663 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2665 * minsyms.c (compare_minimal_symbols): Rename to...
2666 (minimal_symbol_is_less_than): ...this, and adjust to STL
2667 conventions (return bool, take arguments as references)
2668 (minimal_symbol_reader::install): Call std::sort instead
2671 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2673 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2675 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2676 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2678 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2680 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2681 * psympriv.h (add_psymbol_to_list): Move comment here and update
2684 2019-09-29 Tom de Vries <tdevries@suse.de>
2686 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2687 Use $tmpdir/$(basename "$output_file").dwz instead of
2688 "${output_file}.dwz".
2690 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2693 * hppa-linux-nat.c: Include gdbarch.h.
2695 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2697 * blockframe.c (find_pc_partial_function): Change return type to bool.
2698 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2699 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2700 (stub_gnu_ifunc_resolve_name): Likewise.
2701 * symtab.c (compare_filenames_for_search): Likewise.
2702 (compare_glob_filenames_for_search): Likewise.
2703 (matching_obj_sections): Likewise.
2704 (symbol_matches_domain): Likewise.
2705 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2706 (find_line_pc): Change return type to bool.
2707 (find_line_pc_range): Likewise.
2708 (producer_is_realview): Likewise.
2709 * symtab.h (symbol_matches_domain): Likewise.
2710 (find_pc_partial_function): Likewise.
2711 (find_pc_line_pc_range): Likewise.
2712 (in_gnu_ifunc_stub): Likewise.
2713 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2714 (find_line_pc): Likewise.
2715 (find_line_pc_range): Likewise.
2716 (matching_obj_sections): Likewise.
2717 (find_line_symtab): Change out parameter to bool.
2718 (producer_is_realview): Change return type to bool.
2719 (compare_filenames_for_search): Likewise.
2720 (compare_glob_filenames_for_search): Likewise.
2722 2019-09-26 Tom Tromey <tom@tromey.com>
2724 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2725 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2726 * gdb_usleep.h: Remove.
2727 * gdb_usleep.c: Remove.
2728 * utils.c: Don't include gdb_usleep.h.
2730 2019-09-26 Tom Tromey <tromey@adacore.com>
2732 * python/py-type.c (type_to_type_object): Call check_typedef
2735 2019-09-26 Tom Tromey <tom@tromey.com>
2737 * utils.h (initialize_utils): Don't declare.
2738 * top.c (gdb_init): Don't call initialize_utils.
2739 * utils.c (initialize_utils): Remove. Move contents...
2740 (_initialize_utils): ... here.
2742 2019-09-25 Tom Tromey <tom@tromey.com>
2744 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2745 * utils.h (make_hex_string): Don't declare.
2746 * utils.c (make_hex_string): Remove.
2748 2019-09-24 Tom de Vries <tdevries@suse.de>
2751 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2752 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2754 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2756 * NEWS: Mention new simulator port for PRU.
2758 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2760 * ada-exp.y (write_object_remaining): Update.
2761 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2762 and eliminate the static buffer.
2763 (ada_decode_symbol): Update.
2764 (ada_la_decode): Update.
2765 (ada_sniff_from_mangled_name): Update.
2766 (is_valid_name_for_wild_match): Update.
2767 (ada_lookup_name_info::matches): Update and simplify.
2768 (name_matches_regex): Update.
2769 (ada_add_global_exceptions): Update.
2770 * ada-lang.h (ada_decode): Update signature.
2771 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2772 * dwarf-index-write.c (debug_names::insert): Update.
2774 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2776 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2779 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2781 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2782 Change "nonzero" to "true" in documentation.
2784 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2786 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2787 (_initialize_darwin_solib): Don't set
2788 darwin_so_ops.lookup_lib_global_symbol.
2789 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2790 set_gdbarch_iterate_over_objfiles_in_search_order.
2791 (elf_lookup_lib_symbol): Rename to...
2792 (svr4_iterate_over_objfiles_in_search_order): this, and update
2793 to iterate semantics.
2794 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2795 * solib.c (solib_global_lookup): Remove.
2796 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2797 (solib_global_lookup): Remove.
2798 * symtab.c (lookup_global_or_static_symbol): Remove call to
2799 solib_global_lookup.
2801 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2803 * NEWS: Move entries about default MI version now being
2804 version 3, and about the GDB/MI fix for multi-location
2805 breakpoints to the "since GDB 8.3" section.
2807 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2811 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2813 * NEWS: Mention that Cell/B.E. debugging support was removed.
2814 * MAINTAINERS: Remove spu target.
2816 * config/djgpp/fnchange.lst: Remove entries for removed files.
2818 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2819 spu-multiarch.o, and spu-tdep.o.
2820 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2821 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2822 spu-multiarch.c, and spu-tdep.c.
2823 * spu-linux-nat.c: Remove file.
2824 * spu-multiarch.c: Remove file.
2825 * spu-tdep.c: Remove file.
2826 * spu-tdep.h: Remove file.
2827 * solib-spu.c: Remove file.
2828 * solib-spu.h: Remove file.
2830 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2831 * configure.nat (spu-linux): Remove.
2832 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2833 solib-multiarch.o from gdb_target_obs.
2836 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2838 (ppc_linux_no_features): Update.
2839 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2841 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2842 (tdesc_powerpc_cell64l): Likewise.
2843 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2844 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2846 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2847 Do not include "features/rs6000/powerpc-cell32l.c" or
2848 "features/rs6000/powerpc-cell64l.c".
2849 (ppc_linux_spu_section): Remove.
2850 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2851 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2852 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2853 (ppc_linux_spe_context_lookup): Remove.
2854 (ppc_linux_spe_context_inferior_created): Remove.
2855 (ppc_linux_spe_context_solib_loaded): Remove.
2856 (ppc_linux_spe_context_solib_unloaded): Remove.
2857 (ppc_linux_spe_context): Remove.
2858 (struct ppu2spu_cache): Remove.
2859 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2860 (struct ppu2spu_data): Remove.
2861 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2862 ppu2spu_unwind): Remove.
2863 (ppc_linux_init_abi): Remove Cell/B.E. support.
2864 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2866 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2867 (rs6000/powerpc-cell64l-expedite): Likewise
2868 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2869 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2870 rs6000/powerpc-cell64l.xml.
2871 * features/rs6000/powerpc-cell32l.xml: Remove.
2872 * features/rs6000/powerpc-cell64l.xml: Likewise.
2873 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2874 * features/rs6000/powerpc-cell64l.c: Likewise.
2875 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2876 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2877 * regformats/reg-spu.dat: Remove.
2879 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2880 * corelow.c (struct spuid_list): Remove.
2881 (add_to_spuid_list): Remove.
2882 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2883 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2884 (remote_protocol_features): Remove associated entries.
2885 (_initialize_remote): No longer initialize them.
2886 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2887 * linux-nat.c (SPUFS_MAGIC): Remove.
2888 (linux_proc_xfer_spu): Remove.
2889 (spu_enumerate_spu_ids): Remove.
2890 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2891 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2892 (linux_make_corefile_notes): No longer call it.
2894 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2895 (cooked_write_test): Likewise.
2897 2019-09-20 Tom Tromey <tom@tromey.com>
2899 * NEWS: Mention case-sensitivity of TUI commands.
2900 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2901 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2902 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2904 2019-09-20 Tom Tromey <tom@tromey.com>
2906 * tui/tui-source.c (tui_source_window::set_contents): Use
2907 make_unique_xstrdup.
2908 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2909 make_unique_xstrdup.
2911 2019-09-20 Tom Tromey <tom@tromey.com>
2913 * tui/tui-data.c: Remove separator comments.
2914 * tui/tui-layout.c: Remove separator comments.
2915 * tui/tui-win.c: Remove separator comments.
2916 * tui/tui-wingeneral.c: Remove separator comments.
2918 2019-09-20 Tom Tromey <tom@tromey.com>
2920 * tui/tui.h (strcat_to_buf): Don't declare.
2921 * tui/tui.c (strcat_to_buf): Remove.
2923 2019-09-20 Tom Tromey <tom@tromey.com>
2925 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2927 * tui/tui-source.c (tui_source_window::set_contents)
2928 (tui_source_window::location_matches_p)
2929 (tui_source_window::maybe_update): Update.
2931 2019-09-20 Tom Tromey <tom@tromey.com>
2933 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2935 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2937 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2938 (tui_data_window::line_from_reg_element_no)
2939 (tui_data_window::first_reg_element_no_inline)
2940 (tui_data_window::show_registers)
2941 (tui_data_window::show_register_group)
2942 (tui_data_window::display_registers_from)
2943 (tui_data_window::display_registers_from_line)
2944 (tui_data_window::first_data_item_displayed)
2945 (tui_data_window::delete_data_content_windows)
2946 (tui_data_window::erase_data_content)
2947 (tui_data_window::do_scroll_vertical)
2948 (tui_data_window::refresh_window)
2949 (tui_data_window::check_register_values): Update.
2951 2019-09-20 Tom Tromey <tom@tromey.com>
2953 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2954 (struct tui_locator_window) <full_name, proc_name>: Now
2956 * tui/tui-stack.c (tui_locator_window::make_status_line)
2957 (tui_locator_window::set_locator_fullname)
2958 (tui_locator_window::set_locator_info): Update.
2959 * tui/tui-source.c (tui_source_window::set_contents)
2960 (tui_source_window::showing_source_p): Update.
2962 2019-09-20 Tom Tromey <tom@tromey.com>
2964 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2965 Don't call tui_locator_win_info_ptr.
2967 2019-09-20 Tom Tromey <tom@tromey.com>
2969 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2971 2019-09-20 Tom Tromey <tom@tromey.com>
2973 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2975 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2976 * tui/tui-layout.c (show_source_disasm_command, show_data)
2977 (show_source_or_disasm_and_command): Use 1 as height for locator.
2979 2019-09-20 Tom Tromey <tom@tromey.com>
2981 * tui/tui.c (tui_enable): Update.
2982 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2984 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2986 * tui/tui-data.c (win_resized): Now bool.
2987 (tui_win_resized): Return bool.
2988 (tui_set_win_resized_to): Accept a bool.
2990 2019-09-20 Tom Tromey <tom@tromey.com>
2992 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2993 Change type of "refresh_values_only".
2994 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2995 type of "refresh_values_only".
2997 2019-09-20 Tom Tromey <tom@tromey.com>
2999 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3001 (tui_disassemble): Add "pos" parameter.
3002 (tui_disasm_window::set_contents): Simplify.
3004 2019-09-20 Tom Tromey <tom@tromey.com>
3006 * tui/tui-winsource.h (struct tui_source_window_base)
3007 <show_source_content>: Now private.
3008 * tui/tui-winsource.c
3009 (tui_source_window_base::show_source_content): Don't handle empty
3012 2019-09-20 Tom Tromey <tom@tromey.com>
3014 * tui/tui-layout.c (show_source_disasm_command)
3015 (show_source_or_disasm_and_command): Don't call
3016 show_source_content.
3018 2019-09-20 Tom Tromey <tom@tromey.com>
3020 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3022 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3023 from tui_make_status_line.
3024 (tui_locator_window::rerender): Update.
3026 2019-09-20 Tom Tromey <tom@tromey.com>
3028 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3029 (tui_locator_window::rerender): Update.
3031 2019-09-20 Tom Tromey <tom@tromey.com>
3033 * tui/tui-winsource.h (struct tui_source_window_base)
3034 <~tui_source_window_base>: Don't declare.
3036 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3037 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3039 * tui/tui-source.c (tui_source_window::set_contents): Update.
3040 (tui_source_window::location_matches_p)
3041 (tui_source_window::maybe_update): Update.
3043 2019-09-20 Tom Tromey <tom@tromey.com>
3045 * tui/tui-winsource.h (~tui_source_element): Remove.
3046 (tui_source_element): Update.
3047 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3048 * tui/tui-winsource.c (tui_show_source_line): Update.
3049 * tui/tui-source.c (tui_source_window::set_contents): Update.
3050 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3052 2019-09-20 Tom Tromey <tom@tromey.com>
3054 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3056 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3057 tui_clear_source_windows_detail.
3058 * tui/tui-winsource.h (struct tui_source_window_base)
3059 <clear_detail>: Don't declare.
3060 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3062 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3064 2019-09-20 Tom Tromey <tromey@adacore.com>
3067 * block.c (contained_in): Fix final return value.
3069 2019-09-20 Alan Modra <amodra@gmail.com>
3071 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3072 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3073 (read_indirect_string_from_dwz): Use bfd accessor.
3074 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3075 * machoread.c (macho_symfile_read_all_oso): Likewise.
3076 * solib.c (solib_bfd_open): Likewise.
3078 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3080 * eval.c: Move declaration of overload_resolution to...
3083 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3085 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3086 * arm-linux-tdep.c: Likewise.
3087 * arm-nbsd-nat.c: Likewise.
3088 * arm-tdep.h: Declare arm_apcs_32.
3089 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3091 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3093 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3094 * dwarf2read.h: Declare dwarf_always_disassemble.
3096 2019-09-19 Tom de Vries <tdevries@suse.de>
3099 * source-cache.c (source_cache::ensure): Catch exception thrown during
3100 construction of the highlighter.
3102 2019-09-18 Alan Modra <amodra@gmail.com>
3104 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3105 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3106 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3107 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3108 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3109 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3110 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3111 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3112 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3113 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3114 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3115 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3116 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3117 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3118 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3119 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3120 * mi/mi-interp.c: Update throughout for bfd section macro and
3122 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3123 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3125 2019-09-18 Tom Tromey <tom@tromey.com>
3128 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3130 (tui_enable): Do not call rl_initialize.
3132 2019-09-18 Christian Groessler <chris@groessler.org>
3134 * alpha-linux-nat.c: Include gdbarch.h.
3136 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3138 * ui-file.c: Include cli/cli-style.h.
3139 (term_cli_styling): Remove cli_styling declaration.
3141 2019-09-18 Alan Modra <amodra@gmail.com>
3143 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3144 to bfd_asymbol_section.
3146 2019-09-18 Alan Modra <amodra@gmail.com>
3148 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3149 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3150 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3152 2019-09-18 Alan Modra <amodra@gmail.com>
3154 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3155 * spu-linux-nat.c (spu_bfd_open): Likewise.
3157 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3159 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3160 to bool to match definition in dwarf2read.c.
3162 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3164 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3165 (print_signatures): Likewise.
3166 (trust_pad_over_xvs): Likewise.
3167 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3168 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3169 * arm-linux-nat.c (arm_apcs_32): Likewise.
3170 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3171 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3172 * arm-tdep.c (arm_debug): Likewise.
3173 (arm_apcs_32): Likewise.
3174 * auto-load.c (debug_auto_load): Likewise.
3175 (auto_load_gdb_scripts): Likewise.
3176 (global_auto_load): Likewise.
3177 (auto_load_local_gdbinit): Likewise.
3178 (auto_load_local_gdbinit_loaded): Likewise.
3179 * auto-load.h (global_auto_load): Likewise.
3180 (auto_load_local_gdbinit): Likewise.
3181 (auto_load_local_gdbinit_loaded): Likewise.
3182 * breakpoint.c (disconnected_dprintf): Likewise.
3183 (breakpoint_proceeded): Likewise.
3184 (automatic_hardware_breakpoints): Likewise.
3185 (always_inserted_mode): Likewise.
3186 (target_exact_watchpoints): Likewise.
3187 (_initialize_breakpoint): Update.
3188 * breakpoint.h (target_exact_watchpoints): Change to bool.
3189 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3190 * cli/cli-cmds.c (trace_commands): Likewise.
3191 * cli/cli-cmds.h (trace_commands): Likewise.
3192 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3194 * cli/cli-logging.c (logging_overwrite): Change to bool.
3195 (logging_redirect): Likewise.
3196 (debug_redirect): Likewise.
3197 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3198 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3200 <boolean_option_def>: Update.
3201 (struct flag_option_def): Change default type of Context to bool
3203 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3204 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3205 (get_setshow_command_value_string): Likewise.
3206 * cli/cli-style.c (cli_styling): Change to bool.
3207 (source_styling): Likewise.
3208 * cli/cli-style.h (source_styling): Likewise.
3209 (cli_styling): Likewise.
3210 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3212 * command.h (var_types): Update comment.
3213 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3214 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3216 (debug_compile_cplus_scopes): Likewise.
3217 * compile/compile-internal.h (compile_debug): Likewise.
3218 * compile/compile.c (compile_debug): Likewise.
3219 (struct compile_options) <raw>: Likewise.
3220 * cp-support.c (catch_demangler_crashes): Likewise.
3221 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3222 (usr_cmd_cris_dwarf2_cfi): Likewise.
3223 * csky-tdep.c (csky_debug): Likewise.
3224 * darwin-nat.c (enable_mach_exceptions): Likewise.
3225 * dcache.c (dcache_enabled_p): Likewise.
3226 * defs.h (info_verbose): Likewise.
3227 * demangle.c (demangle): Likewise.
3228 (asm_demangle): Likewise.
3229 * dwarf-index-cache.c (debug_index_cache): Likewise.
3230 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3231 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3232 * dwarf2read.c (check_physname): Likewise.
3233 (use_deprecated_index_sections): Likewise.
3234 (dwarf_always_disassemble): Likewise.
3235 * eval.c (overload_resolution): Likewise.
3236 * event-top.c (set_editing_cmd_var): Likewise.
3237 (exec_done_display_p): Likewise.
3238 * event-top.h (set_editing_cmd_var): Likewise.
3239 (exec_done_display_p): Likewise.
3240 * exec.c (write_files): Likewise.
3241 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3242 (debug_fbsd_nat): Likewise.
3243 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3245 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3246 <backtrace_past_entry> Likewise.
3247 * gdb-demangle.h (demangle): Likewise.
3248 (asm_demangle): Likewise.
3249 * gdb_bfd.c (bfd_sharing): Likewise.
3250 * gdbcore.h (write_files): Likewise.
3251 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3252 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3253 * gdbthread.h (print_thread_events): Likewise.
3254 * gdbtypes.c (opaque_type_resolution): Likewise.
3255 (strict_type_checking): Likewise.
3256 * gnu-nat.c (gnu_debug_flag): Likewise.
3257 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3258 * guile/scm-param.c (pascm_variable): Add boolval.
3259 (add_setshow_generic): Update.
3260 (pascm_param_value): Update.
3261 (pascm_set_param_value_x): Update.
3262 * hppa-tdep.c (hppa_debug): Change to bool..
3263 * infcall.c (may_call_functions_p): Likewise.
3264 (coerce_float_to_double_p): Likewise.
3265 (unwind_on_signal_p): Likewise.
3266 (unwind_on_terminating_exception_p): Likewise.
3267 * infcmd.c (startup_with_shell): Likewise.
3268 * inferior.c (print_inferior_events): Likewise.
3269 * inferior.h (startup_with_shell): Likewise.
3270 (print_inferior_events): Likewise.
3271 * infrun.c (step_stop_if_no_debug): Likewise.
3272 (detach_fork): Likewise.
3273 (debug_displaced): Likewise.
3274 (disable_randomization): Likewise.
3275 (non_stop): Likewise.
3276 (non_stop_1): Likewise.
3277 (observer_mode): Likewise.
3278 (observer_mode_1): Likewise.
3279 (set_observer_mode): Update.
3280 (sched_multi): Change to bool.
3281 * infrun.h (debug_displaced): Likewise.
3282 (sched_multi): Likewise.
3283 (step_stop_if_no_debug): Likewise.
3284 (non_stop): Likewise.
3285 (disable_randomization): Likewise.
3286 * linux-tdep.c (use_coredump_filter): Likewise.
3287 (dump_excluded_mappings): Likewise.
3288 * linux-thread-db.c (auto_load_thread_db): Likewise.
3289 (check_thread_db_on_load): Likewise.
3290 * main.c (captured_main_1): Update.
3291 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3292 xx2_opt, boolean_opt>: Change to bool.
3293 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3294 * maint.c (maintenance_profile_p): Likewise.
3295 (per_command_time): Likewise.
3296 (per_command_space): Likewise.
3297 (per_command_symtab): Likewise.
3298 * memattr.c (inaccessible_by_default): Likewise.
3299 * mi/mi-main.c (mi_async): Likewise.
3300 (mi_async_1): Likewise.
3301 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3302 * nat/fork-inferior.h (startup_with_shell): Likewise.
3303 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3304 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3305 * nios2-tdep.c (nios2_debug): Likewise.
3306 * or1k-tdep.c (or1k_debug): Likewise.
3307 * parse.c (parser_debug): Likewise.
3308 * parser-defs.h (parser_debug): Likewise.
3309 * printcmd.c (print_symbol_filename): Likewise.
3310 * proc-api.c (procfs_trace): Likewise.
3311 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3312 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3313 (set_parameter_value): Update.
3314 (add_setshow_generic): Update.
3315 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3317 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3319 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3320 * record-btrace.c (record_btrace_target::store_registers): Update.
3321 * record-full.c (record_full_memory_query): Change to bool.
3322 (record_full_stop_at_limit): Likewise.
3323 * record-full.h (record_full_memory_query): Likewise.
3324 * remote-notif.c (notif_debug): Likewise.
3325 * remote-notif.h (notif_debug): Likewise.
3326 * remote.c (use_range_stepping): Likewise.
3327 (interrupt_on_connect): Likewise.
3328 (remote_break): Likewise.
3329 * ser-tcp.c (tcp_auto_retry): Likewise.
3330 * ser-unix.c (serial_hwflow): Likewise.
3331 * skip.c (debug_skip): Likewise.
3332 * solib-aix.c (solib_aix_debug): Likewise.
3333 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3334 (spu_auto_flush_cache_p): Likewise.
3335 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3337 (struct info_print_options) <quiet>: Likewise.
3338 * symfile-debug.c (debug_symfile): Likewise.
3339 * symfile.c (auto_solib_add): Likewise.
3340 (separate_debug_file_debug): Likewise.
3341 * symfile.h (auto_solib_add): Likewise.
3342 (separate_debug_file_debug): Likewise.
3343 * symtab.c (basenames_may_differ): Likewise.
3344 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3345 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3346 (struct info_types_options) <quiet>: Likewise.
3347 * symtab.h (demangle): Likewise.
3348 (basenames_may_differ): Likewise.
3349 * target-dcache.c (stack_cache_enabled_1): Likewise.
3350 (code_cache_enabled_1): Likewise.
3351 * target.c (trust_readonly): Likewise.
3352 (may_write_registers): Likewise.
3353 (may_write_memory): Likewise.
3354 (may_insert_breakpoints): Likewise.
3355 (may_insert_tracepoints): Likewise.
3356 (may_insert_fast_tracepoints): Likewise.
3357 (may_stop): Likewise.
3358 (auto_connect_native_target): Likewise.
3359 (target_stop_and_wait): Update.
3360 (target_async_permitted): Change to bool.
3361 (target_async_permitted_1): Likewise.
3362 (may_write_registers_1): Likewise.
3363 (may_write_memory_1): Likewise.
3364 (may_insert_breakpoints_1): Likewise.
3365 (may_insert_tracepoints_1): Likewise.
3366 (may_insert_fast_tracepoints_1): Likewise.
3367 (may_stop_1): Likewise.
3368 * target.h (target_async_permitted): Likewise.
3369 (may_write_registers): Likewise.
3370 (may_write_memory): Likewise.
3371 (may_insert_breakpoints): Likewise.
3372 (may_insert_tracepoints): Likewise.
3373 (may_insert_fast_tracepoints): Likewise.
3374 (may_stop): Likewise.
3375 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3376 (make_thread_apply_all_options_def_group): Change argument from int*
3378 (thread_apply_all_command): Update.
3379 (print_thread_events): Change to bool.
3380 * top.c (confirm): Likewise.
3381 (command_editing_p): Likewise.
3382 (history_expansion_p): Likewise.
3383 (write_history_p): Likewise.
3384 (info_verbose): Likewise.
3385 * top.h (confirm): Likewise.
3386 (history_expansion_p): Likewise.
3387 * tracepoint.c (disconnected_tracing): Likewise.
3388 (circular_trace_buffer): Likewise.
3389 * typeprint.c (print_methods): Likewise.
3390 (print_typedefs): Likewise.
3391 * utils.c (debug_timestamp): Likewise.
3392 (sevenbit_strings): Likewise.
3393 (pagination_enabled): Likewise.
3394 * utils.h (sevenbit_strings): Likewise.
3395 (pagination_enabled): Likewise.
3396 * valops.c (overload_resolution): Likewise.
3397 * valprint.h (struct value_print_options) <prettyformat_arrays,
3398 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3399 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3400 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3402 * windows-nat.c (new_console): Likewise.
3403 (cygwin_exceptions): Likewise.
3404 (new_group): Likewise.
3405 (debug_exec): Likewise.
3406 (debug_events): Likewise.
3407 (debug_memory): Likewise.
3408 (debug_exceptions): Likewise.
3409 (useshell): Likewise.
3410 * windows-tdep.c (maint_display_all_tib): Likewise.
3411 * xml-support.c (debug_xml): Likewise.
3413 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3415 * source.c (prepare_path_for_appending): New function.
3416 (openp): Make use of new function.
3417 (find_and_open_source): Search for the compilation directory and
3418 source file as a relative path beneath the directory search path.
3420 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3422 * source-cache.c (source_cache::get_line_charpos): Catch
3423 exceptions and return false, this matches the behaviour documented
3426 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3428 * ada-tasks.c (info_task): Remove quoting of the task's name.
3430 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3432 * symfile.c (auto_solib_add): Replace comment with a reference
3435 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3437 * NEWS: Mention that gdb can now be compiled with Python 3
3440 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3442 * maint.c (maint_print_section_data::maint_print_section_data):
3443 Force use of 'float log10 (float)' by casting the argument to
3446 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3448 * maint.c: Add 'cmath' include.
3449 (struct maint_print_section_data): New structure.
3450 (print_section_index): New function.
3451 (print_bfd_section_info): Add header comment, small whitespace
3452 cleanup, and update to call new print_section_index function.
3453 (print_objfile_section_info): Likewise.
3454 (maint_obj_section_from_bfd_section): New function.
3455 (print_bfd_section_info_maybe_relocated): New function.
3456 (maintenance_info_sections): Add header comment, always use
3457 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3459 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3461 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3462 inner scope, add check that the objfile has psymtabs before
3463 checking psymtabs_addrmap.
3464 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3466 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3468 * NEWS: Announce that Ada task names are now shown at more places,
3469 and between quotes (except in info task output).
3470 * gdb/ada-tasks.c (task_to_str): New function.
3471 (display_current_task_id): Call task_to_str.
3472 (task_command_1): Likewise.
3473 (print_ada_task_info): In non-mi mode, Properly align headers and data
3474 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3476 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3478 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3479 prstatus.pr_lwp.pr_info instead of making it up.
3481 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3483 * auto-load.c (auto_load_expand_dir_vars): Update.
3484 * defs.h (gdb_datadir): Change to std::string.
3485 (python_libdir): Likewise.
3486 (relocate_gdb_directory): Change return type to std::string.
3487 * guile/guile.c (gdbscm_data_directory): Update.
3488 (initialize_scheme_side): Update.
3489 * jit.c (jit_reader_dir): Change to std::string.
3490 (jit_reader_load_command): Update.
3491 * main.c (gdb_datadir): Change to std::string.
3492 (python_libdir): Likewise.
3493 (set_gdb_data_directory): Update.
3494 (relocate_path): Change to return std::string.
3495 (relocate_gdb_directory): Change to return std::string.
3496 (relocate_gdbinit_path_maybe_in_datadir): Update.
3497 (captured_main_1): Update.
3498 * python/python.c (do_start_initialization): Update.
3499 * top.c (show_gdb_datadir): Update.
3500 * xml-syscall.c (xml_init_syscalls_info): Update.
3501 (init_syscalls_info): Update.
3503 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3505 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3506 out of get_init_files.
3507 (get_init_files): Update.
3509 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3511 * main.c (get_init_files): Change to use std::string.
3512 (captured_main_1): Update.
3513 (print_gdb_help): Update.
3515 2019-09-11 Ali Tamur <tamur@google.com>
3517 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3520 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3522 * dbxread.c (read_dbx_symtab): Update.
3523 * dwarf2read.c (load_partial_dies): Update.
3524 * mdebugread.c (parse_partial_symbols): Update.
3525 (handle_psymbol_enumerators): Update.
3526 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3527 * psymtab.c (add_psymbol_to_bcache): Likewise.
3528 (add_psymbol_to_list): Likewise.
3529 * symtab.c (symbol_set_names): Likewise.
3530 * symtab.h (symbol_set_names): Likewise.
3531 * xcoffread.c (scan_xcoff_symtab): Update.
3533 2019-09-11 Tom Tromey <tom@tromey.com>
3535 * symfile-mem.c (symbol_file_add_from_memory): Use
3537 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3538 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3540 2019-09-10 Tom Tromey <tromey@adacore.com>
3542 * dwarf-index-write.c (write_psymbols): Extend error message.
3543 (debug_names::insert): Add Ada code.
3544 (debug_names::write_psymbols): Remove Ada check.
3545 (debug_names) <m_string_obstack>: New member.
3546 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3547 (gdb_index_symbol_name_matcher::matches): Remove.
3548 (mapped_index_base::find_name_components_bounds): Add "lang"
3550 (mapped_index_base::build_name_components): Also split names
3551 according to Ada syntax.
3552 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3553 type of "match_callback".
3554 (check_match, check_find_bounds_finds)
3555 (dw2_expand_symtabs_matching): Update.
3556 (dw2_debug_names_iterator): Add new constructor.
3557 (dw2_debug_names_map_matching_symbols): New function.
3558 (dw2_debug_names_expand_symtabs_matching): Update.
3559 (dwarf2_debug_names_functions): Use
3560 dw2_debug_names_map_matching_symbols.
3562 2019-09-10 Tom Tromey <tromey@adacore.com>
3564 * dwarf2read.c (dw2_get_file_names_reader): Add the
3565 CU's file name to the results.
3567 2019-09-10 Tom Tromey <tromey@adacore.com>
3569 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3570 map_matching_symbols. Update.
3571 * dwarf2read.c (dw2_map_matching_symbols): Update.
3572 * psymtab.c (match_partial_symbol): Change type; update.
3573 (psym_map_matching_symbols): Likewise.
3574 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3576 * symfile.h (struct quick_symbol_functions)
3577 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3580 2019-09-10 Tom Tromey <tromey@adacore.com>
3582 * psymtab.c (map_block): Remove.
3583 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3584 * symtab.c (iterate_over_symbols_terminated): New function.
3585 * symtab.c (iterate_over_symbols_terminated): Declare.
3587 2019-09-10 Tom Tromey <tromey@adacore.com>
3589 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3590 * language.h (struct language_defn) <la_iterate_over_symbols>:
3592 * symtab.c (iterate_over_symbols): Return bool.
3593 * symtab.h (iterate_over_symbols): Return bool.
3595 2019-09-10 Tom Tromey <tromey@adacore.com>
3597 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3598 (add_nonlocal_symbols): Update.
3599 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3600 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3601 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3602 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3603 Change type of "callback". Remove "data".
3606 2019-09-09 Ali Tamur <tamur@google.com>
3608 * dwarf2read.c (comp_unit_head): Update comment.
3609 (dwarf2_dwo_name): New function declaration.
3610 (dwarf_unit_type_name): New function declaration.
3611 (read_comp_unit_head): Add support for new compilation units,
3612 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3613 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3614 (currently named as "signature") in their header. Also clarify error
3616 (lookup_dwo_id): New function. Returns the dwo id of the given
3618 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3619 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3621 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3622 (dwarf2_dwo_name): Get the dwo name if present.
3623 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3626 2019-09-09 Tom Tromey <tom@tromey.com>
3628 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3630 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3632 * python/python.c (do_start_initialization): Make progname_copy static,
3633 to avoid a leak report.
3635 2019-09-08 Tom Tromey <tom@tromey.com>
3637 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3639 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3641 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3642 Change type to gdb::optional<block_enum>.
3643 (dw2_symtab_iter_init): Change block_index parameter type
3644 to gdb::optional<block_enum>.
3645 (dw2_lookup_symbol): Change block_index parameter
3646 type to block_enum.c
3647 (dw2_debug_names_lookup_symbol): Likewise.
3648 * psymtab.c (psym_lookup_symbol): Likewise.
3649 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3650 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3653 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3655 * defs.h (relocate_gdb_directory): Change int to bool in
3656 signature and rename flag to relocatable.
3657 * main.c (relocate_path): Likewise.
3658 (relocate_gdb_directory): Likewise.
3660 2019-09-06 Alan Modra <amodra@gmail.com>
3662 * coffread.c (coff_symfile_read): Constify filename variable.
3663 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3664 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3665 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3666 * solib.c (reload_shared_libraries_1): Likewise.
3667 * symfile.c (reread_symbols): Likewise.
3668 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3669 * solib-darwin.c (darwin_bfd_open): Likewise.
3670 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3672 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3674 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3675 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3677 2019-09-03 Tom Tromey <tromey@adacore.com>
3679 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3681 (has_negatives): Unbias a range type bound.
3682 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3683 * gdbtypes.c (operator==): Handle new field.
3684 (create_range_type): Add "bias" parameter.
3685 (create_static_range_type, resolve_dynamic_range): Update.
3686 * gdbtypes.h (struct range_bounds) <bias>: New member.
3687 (create_range_type): Add bias parameter.
3688 * printcmd.c (print_scalar_formatted): Unbias range types.
3689 * value.c (unpack_long): Unbias range types.
3690 (pack_long): Bias range types.
3692 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3694 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3697 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3699 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3700 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3701 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3702 (compile_probe_arg): Likewise.
3703 * probe.h (get_argument_count): Likewise.
3704 * solib-svr4.c (solib_event_probe_action): Likewise.
3705 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3707 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3709 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3711 (svr4_create_solib_event_breakpoints): ...from here.
3713 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3715 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3716 suffix from warning message.
3718 2019-08-30 Tom Tromey <tom@tromey.com>
3720 * tui/tui-winsource.h (struct tui_source_window_base)
3721 <refresh_all>: Don't declare.
3722 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3724 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3725 tui_show_locator_content.
3726 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3728 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3729 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3732 2019-08-30 Tom Tromey <tom@tromey.com>
3734 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3736 2019-08-30 Tom Tromey <tom@tromey.com>
3738 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3739 Remove unnecessary forward declarations.
3741 2019-08-30 Tom Tromey <tom@tromey.com>
3743 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3745 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3746 tui_show_locator_content.
3748 2019-08-30 Tom Tromey <tom@tromey.com>
3750 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3751 (tui_locator_window::rerender): Rewrite using body of previous
3752 tui_show_locator_content.
3754 2019-08-30 Tom Tromey <tom@tromey.com>
3756 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3757 set_locator_fullname>: New methods.
3758 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3759 Rename from tui_set_locator_fullname.
3760 (tui_locator_window::set_locator_info): Rename from
3761 tui_set_locator_info. Return bool.
3762 (tui_update_locator_fullname, tui_show_frame_info): Update.
3764 2019-08-30 Tom Tromey <tom@tromey.com>
3766 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3768 2019-08-30 Tom Tromey <tom@tromey.com>
3770 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3773 2019-08-30 Tom Tromey <tom@tromey.com>
3775 * tui/tui-wingeneral.c (box_win): Assume win_info and
3776 win_info->handle cannot be NULL.
3778 2019-08-30 Tom Tromey <tom@tromey.com>
3780 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3781 refresh_window>: Declare.
3782 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3784 (tui_data_item_window::rerender): Rename from
3785 tui_display_register.
3786 (tui_data_item_window::refresh_window): New method.
3787 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3790 2019-08-30 Tom Tromey <tom@tromey.com>
3792 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3793 regs_column_count, current_group>: Move later. Now private.
3794 <get_current_group>: New method.
3795 * tui/tui-regs.c (tui_reg_command): Update.
3796 * tui/tui-layout.c (tui_set_layout): Update.
3798 2019-08-30 Tom Tromey <tom@tromey.com>
3800 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3801 (tui_data_window::rerender): Don't call
3802 check_and_display_highlight_if_needed.
3803 (tui_data_window::refresh_all): Remove call to
3806 2019-08-30 Tom Tromey <tom@tromey.com>
3808 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3809 (tui_data_window::display_registers_from)
3810 (tui_data_window::display_reg_element_at_line)
3811 (tui_data_window::display_registers_from_line): Remove checks of
3814 2019-08-30 Tom Tromey <tom@tromey.com>
3816 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3818 * tui/tui-regs.c (tui_data_window::show_registers): Call
3820 (tui_data_window::rerender): Rename from display_all_data.
3821 (tui_data_window::rerender): Remove old implementation.
3823 2019-08-30 Tom Tromey <tom@tromey.com>
3825 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3827 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3829 2019-08-29 Bernhard Wodok <barto@gmx.net>
3830 Sergio Durigan Junior <sergiodj@redhat.com>
3833 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3835 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3837 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3838 when searching for types.
3840 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3842 * f-lang.c (f_language_defn): Use f_print_typedef.
3843 * f-lang.h (f_print_typedef): Declare.
3844 * f-typeprint.c (f_print_typedef): Define.
3846 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3848 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3850 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3852 * cli/cli-utils.c (info_print_options_defs): Delete.
3853 (make_info_print_options_def_group): Delete.
3854 (extract_info_print_options): Delete.
3855 (info_print_command_completer): Delete.
3856 (info_print_args_help): Add extra parameter, and optionally
3857 include text about -n flag.
3858 * cli/cli-utils.h (struct info_print_options): Delete.
3859 (extract_info_print_options): Delete declaration.
3860 (info_print_command_completer): Delete declaration.
3861 (info_print_args_help): Add extra parameter, extend header
3863 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3865 * stack.c (struct info_print_options): New type.
3866 (info_print_options_defs): New file scoped variable.
3867 (make_info_print_options_def_group): New static function.
3868 (info_print_command_completer): New static function.
3869 (info_locals_command): Update to use new local functions.
3870 (info_args_command): Likewise.
3871 (_initialize_stack): Add extra parameter to calls to
3872 info_print_args_help.
3873 * symtab.c (search_symbols): Add extra parameter, use this to
3874 possibly excluse non-debug symbols.
3875 (symtab_symbol_info): Add extra parameter, which is passed on to
3877 (struct info_print_options): New type.
3878 (info_print_options_defs): New file scoped variable.
3879 (make_info_print_options_def_group): New static function.
3880 (info_print_command_completer): New static function.
3881 (info_variables_command): Update to use local functions, and pass
3882 extra parameter through to symtab_symbol_info.
3883 (info_functions_command): Likewise.
3884 (info_types_command): Pass additional argument through to
3886 (rbreak_command): Pass extra argument to search_symbols.
3887 (_initialize_symtab): Add extra arguments for calls to
3888 info_print_args_help, and update help text for 'info variables',
3889 'whereis', and 'info functions' commands.
3890 * symtab.h (search_symbols): Add extra argument to declaration.
3891 * NEWS: Mention new flags.
3893 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3895 * symtab.c (lookup_static_symbol): Call the new function (and move
3896 it down to be next to lookup_global_symbol).
3897 (struct global_sym_lookup_data): Add block_enum member and rename to...
3898 (struct global_or_static_sym_lookup_data): ...this.
3899 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3900 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3901 (lookup_symbol_global_or_static_iterator_cb): ...this.
3902 (lookup_global_or_static_symbol): New function.
3903 (lookup_global_symbol): Call new function.
3905 2019-08-26 Tom de Vries <tdevries@suse.de>
3908 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3909 when pc_probe.prob == NULL.
3911 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3913 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3914 variable symbol_linkage to symbol_linkage_.
3916 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3918 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3919 represent whether the symbol is static, dynamic, or we don't
3922 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3924 * gdb/rx-tdep.c (rx_register_names): New.
3925 (rx_register_name): Delete.
3926 (rx_psw_type): Delete.
3927 (rx_fpsw_type): Delete.
3928 (rx_register_type): Delete.
3929 (rx_gdbarch_init): Convert target-descriptions.
3930 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3931 * gdb/features/Makefile: Add rx.xml.
3932 * gdb/features/rx.xml: New.
3933 * gdb/features/rx.c: Generated.
3934 * gdb/NEWS: Mention target description support.
3936 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3938 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3941 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3943 * configure.ac: Don't check for 'dlfcn.h' (moved to
3944 gdbsupport/common.m4).
3945 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3947 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3948 * compile/compile-c-support.c: Include
3949 'gdbsupport/gdb-dlfcn.h'.
3950 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3951 * gdb-dlfcn.c: Move to...
3952 * gdbsupport/gdb-dlfcn.c: ... here.
3953 * gdb-dlfcn.h: Move to...
3954 * gdbsupport/gdb-dlfcn.h: ... here.
3956 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3958 * nios2-tdep.c (struct reg_value): Improve comments. Make
3959 the offset field signed.
3961 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3963 * python/lib/gdb/__init__.py (_execute_file): New function.
3964 * python/python.c (python_run_simple_file): Call gdb._execute_file
3967 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3969 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3970 all uses as this was never set to anything but a zero value.
3972 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3974 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3976 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3978 * tui/tui-data.h (tui_gen_win_info): Add an =default
3979 move constructor, required by some GCC versions.
3981 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3983 * go32-nat.c (go32_sysinfo): Add hygon_p.
3985 2019-08-20 Tom Tromey <tom@tromey.com>
3987 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3988 line_from_reg_element_no, first_reg_element_no_inline,
3989 display_all_data, delete_data_content_windows,
3990 erase_data_content>: Now private.
3992 2019-08-20 Tom Tromey <tom@tromey.com>
3994 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3995 (tui_unhighlight_win, tui_highlight_win)
3996 (tui_win_info::make_window): Update.
3997 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3999 2019-08-20 Tom Tromey <tom@tromey.com>
4001 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4002 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4003 (MAX_PID_WIDTH): Move to tui-stack.c.
4004 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4005 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4006 (MAX_PID_WIDTH): Move from tui-data.h.
4008 2019-08-20 Tom Tromey <tom@tromey.com>
4010 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4011 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4013 (tui_gen_win_info::make_window): Rename from tui_make_window.
4014 (tui_win_info::make_window): New method.
4015 (tui_gen_win_info::make_visible): Update.
4016 * tui/tui-source.c (tui_source_window::set_contents): Update.
4017 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4018 (tui_data_window::display_registers_from): Update.
4019 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4020 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4024 (struct tui_win_info) <make_window>: Declare.
4025 <can_box>: Now virtual.
4026 <title>: New member.
4027 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4028 * tui/tui-command.c (tui_cmd_window::resize): Update.
4030 2019-08-20 Tom Tromey <tom@tromey.com>
4032 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4033 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4034 (tui_data_window::check_register_values): Update.
4036 2019-08-20 Tom Tromey <tom@tromey.com>
4038 * tui/tui-regs.h (struct tui_data_window): Use
4039 DISABLE_COPY_AND_ASSIGN.
4040 <regs_content>: Change type, removing unique_ptr.
4041 <tui_data_window>: Add move constructor.
4042 * tui/tui-regs.c (tui_data_window::show_registers)
4043 (tui_data_window::show_register_group)
4044 (tui_data_window::display_registers_from)
4045 (tui_data_window::display_registers_from)
4046 (tui_data_window::first_data_item_displayed)
4047 (tui_data_window::delete_data_content_windows)
4048 (tui_data_window::rerender, tui_data_window::refresh_window)
4049 (tui_data_window::check_register_values): Update.
4051 2019-08-20 Tom Tromey <tom@tromey.com>
4053 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4054 show_register_group>: Declare.
4055 (tui_show_register_group): Don't declare.
4056 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4058 (tui_data_window::show_register_group): Rename from
4059 tui_show_register_group.
4060 (tui_data_window::check_register_values, tui_reg_command):
4062 * tui/tui-layout.c (tui_set_layout): Update.
4064 2019-08-20 Tom Tromey <tom@tromey.com>
4066 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4068 (tui_check_register_values): Don't declare.
4069 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4070 from tui_check_register_values.
4071 * tui/tui-hooks.c (tui_register_changed): Update.
4073 2019-08-20 Tom Tromey <tom@tromey.com>
4075 * tui/tui-regs.c (tui_reg_layout): Move later.
4076 (tui_show_registers): Don't enable TUI mode or change layout.
4078 2019-08-20 Tom Tromey <tom@tromey.com>
4080 * tui/tui-regs.h (struct tui_data_item_window)
4081 <~tui_data_item_window>: Remove.
4082 <content>: Now a unique_xmalloc_ptr.
4083 * tui/tui-regs.c (tui_register_format): Return a
4085 (tui_get_register): Update.
4086 (~tui_data_item_window): Remove.
4087 (tui_data_window::display_registers_from, tui_display_register):
4089 * tui/tui-io.h (tui_expand_tabs): Update.
4090 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4091 Remove "col" parameter.
4093 2019-08-20 Tom Tromey <tom@tromey.com>
4095 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4097 * tui/tui-regs.c (~tui_data_item_window): Update.
4099 2019-08-20 Tom Tromey <tom@tromey.com>
4101 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4104 2019-08-20 Tom Tromey <tom@tromey.com>
4106 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4108 2019-08-20 Tom Tromey <tom@tromey.com>
4110 * tui/tui-source.h (struct tui_source_window): Update.
4111 * tui/tui-regs.c (tui_show_registers): Update.
4112 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4113 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4114 (NO_REGS_STRING): Remove defines.
4116 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4118 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4119 unnecessary thread walk if remote doesn't support the packet.
4121 2019-08-19 Tom Tromey <tromey@adacore.com>
4123 * python/py-value.c (value_has_field): Fix indentation.
4125 2019-08-19 Tom Tromey <tromey@adacore.com>
4127 * printcmd.c (do_one_display, info_display_command): Update.
4128 * block.h (contained_in): Return bool. Add allow_nested
4130 * block.c (contained_in): Return bool. Add allow_nested
4133 2019-08-19 Tom Tromey <tom@tromey.com>
4135 * configure: Rebuild.
4136 * configure.ac: Disallow the combination of -static-libstdc++ and
4138 * source-cache.c (get_language_name): Handle rust.
4139 (source_cache::get_source_lines): Ignore highlighting exceptions.
4141 2019-08-16 Tom Tromey <tom@tromey.com>
4143 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4144 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4145 (struct tui_source_window_base) <make_visible, refresh_window,
4146 resize>: Remove methods.
4147 <execution_info>: Remove field.
4148 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4149 (tui_show_source_line, tui_source_window_base)
4150 (~tui_source_window_base): Update.
4151 (tui_source_window_base::resize)
4152 (tui_source_window_base::make_visible)
4153 (tui_source_window_base::refresh_window): Remove.
4154 (tui_source_window_base::update_exec_info): Update.
4155 * tui/tui-source.c (tui_source_window::set_contents): Update.
4156 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4158 2019-08-16 Tom Tromey <tom@tromey.com>
4160 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4161 deprecated_query_hook.
4163 2019-08-16 Tom Tromey <tom@tromey.com>
4165 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4166 (tui_update_source_windows_with_line): Update.
4167 * tui/tui-source.h (struct tui_source_window)
4168 <show_symtab_source>: Declare.
4169 (tui_show_symtab_source): Don't declare.
4170 * tui/tui-source.c (tui_show_symtab_source): Rename from
4171 tui_show_symtab_source.
4173 2019-08-16 Tom Tromey <tom@tromey.com>
4175 * tui/tui-winsource.h (struct tui_source_window_base)
4176 <set_contents>: Declare.
4177 * tui/tui-winsource.c
4178 (tui_source_window_base::update_source_window_as_is): Update.
4179 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4181 (tui_set_source_content): Don't declare.
4182 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4183 tui_set_source_content.
4184 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4186 (tui_set_disassem_content): Don't declare.
4187 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4188 tui_set_disassem_content.
4190 2019-08-16 Tom Tromey <tom@tromey.com>
4192 * tui/tui-winsource.h (struct tui_source_window_base)
4193 <update_breakpoint_info>: Declare.
4194 (tui_update_breakpoint_info): Don't declare.
4195 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4196 (tui_update_all_breakpoint_info): Update.
4197 (tui_source_window_base::update_breakpoint_info): Rename from
4198 tui_update_breakpoint_info.
4199 (tui_source_window_base::update_exec_info): Update.
4201 2019-08-16 Tom Tromey <tom@tromey.com>
4203 * tui/tui-winsource.h (struct tui_source_window_base)
4204 <update_source_window>: Declare.
4205 (tui_update_source_window): Don't declare.
4206 * tui/tui-winsource.c
4207 (tui_source_window_base::update_source_window): Rename from
4208 tui_update_source_window.
4209 (tui_source_window_base::rerender): Update.
4210 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4211 * tui/tui-disasm.c (tui_show_disassem)
4212 (tui_show_disassem_and_update_source)
4213 (tui_disasm_window::maybe_update): Update.
4215 2019-08-16 Tom Tromey <tom@tromey.com>
4217 * tui/tui-winsource.h (struct tui_source_window_base)
4218 <update_source_window_as_is>: Declare.
4219 (tui_update_source_window_as_is): Don't declare.
4220 * tui/tui-winsource.c (tui_update_source_window): Update
4221 (tui_source_window_base::update_source_window_as_is): Rename from
4222 tui_update_source_window_as_is.
4223 (tui_source_window_base::refill): Update.
4224 * tui/tui-source.c (tui_show_symtab_source): Update.
4225 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4228 2019-08-16 Tom Tromey <tom@tromey.com>
4230 * tui/tui-winsource.h (tui_update_source_window)
4231 (tui_update_source_window_as_is): Remove "noerror" parameter.
4232 * tui/tui-winsource.c (tui_update_source_window)
4233 (tui_update_source_window_as_is): Remove "noerror" parameter.
4234 (tui_update_source_windows_with_addr)
4235 (tui_update_source_windows_with_line)
4236 (tui_source_window_base::rerender)
4237 (tui_source_window_base::refill): Update.
4238 * tui/tui-source.h (tui_set_source_content)
4239 (tui_show_symtab_source): Remove "noerror" parameter.
4240 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4242 (tui_show_symtab_source): Likewise.
4243 (tui_source_window::maybe_update): Update.
4244 * tui/tui-disasm.c (tui_show_disassem)
4245 (tui_show_disassem_and_update_source)
4246 (tui_disasm_window::do_scroll_vertical)
4247 (tui_disasm_window::maybe_update): Update.
4249 2019-08-16 Tom Tromey <tom@tromey.com>
4251 * tui/tui.c (tui_is_window_visible): Update.
4252 * tui/tui-wingeneral.c (tui_make_window)
4253 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4254 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4255 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4256 (tui_set_win_height_command, parse_scrolling_args): Update.
4257 * tui/tui-source.c (tui_source_window::style_changed): Update.
4258 * tui/tui-regs.c (tui_show_registers)
4259 (tui_data_window::first_data_item_displayed)
4260 (tui_data_window::delete_data_content_windows)
4261 (tui_check_register_values, tui_reg_command): Update.
4262 * tui/tui-disasm.c (tui_show_disassem): Update.
4263 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4265 <is_visible>: Remove field.
4266 * tui/tui-data.c (tui_next_win, tui_prev_win)
4267 (tui_delete_invisible_windows): Update.
4269 2019-08-16 Tom Tromey <tom@tromey.com>
4271 * tui/tui-winsource.h (struct tui_source_window_base)
4272 <m_has_locator>: Remove.
4273 * tui/tui-layout.c (show_source_disasm_command, show_data)
4274 (show_source_or_disasm_and_command): Update.
4276 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4278 * NEWS (Other MI changes): New subsection.
4279 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4280 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4281 * arch-utils.c (default_get_pc_address_flags): New function.
4282 * arch-utils.h (default_get_pc_address_flags): New declaration.
4283 * gdbarch.sh: Add get_pc_address_flags.
4284 * gdbarch.c: Regenerate.
4285 * gdbarch.h: Likewise.
4286 * stack.c (print_pc): New function.
4287 (print_frame_info) (print_frame): Call print_pc.
4289 2019-08-16 Tom de Vries <tdevries@suse.de>
4291 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4292 print_objfile_section_info.
4294 2019-08-15 Tom Tromey <tom@tromey.com>
4296 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4297 calling update_cmdwin_start_line.
4298 * tui/tui-winsource.h (struct tui_source_window_base)
4299 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4300 <rerender>: Declare.
4301 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4303 (tui_source_window_base::set_new_height): Remove.
4304 (tui_source_window_base::rerender): Rename from
4305 do_make_visible_with_new_height.
4306 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4308 (tui_win_info::make_invisible_and_set_new_height)
4309 (tui_win_info::make_visible_with_new_height): Remove.
4310 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4312 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4313 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4314 do_make_visible_with_new_height>: Don't declare.
4315 <rerender>: Declare.
4316 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4318 (tui_data_window::do_make_visible_with_new_height): Remove.
4319 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4320 call tui_show_locator_content.
4321 (tui_gen_win_info::resize): Call rerender.
4322 (show_source_or_disasm_and_command): Don't call
4323 tui_show_locator_content.
4324 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4326 (struct tui_win_info) <rerender>: Declare.
4327 <set_new_height, make_invisible_and_set_new_height,
4328 make_visible_with_new_height>: Don't declare.
4329 * tui/tui-data.c (tui_win_list::rerender): New method.
4330 * tui/tui-command.h (struct tui_cmd_window)
4331 <do_make_visible_with_new_height>: Don't declare.
4333 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4335 2019-08-15 Tom Tromey <tromey@adacore.com>
4337 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4338 * ada-lang.c (ada_enum_name): Likewise.
4340 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4342 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4344 (GdbOutputErrorFile): Likewise.
4345 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4347 (execute_unwinders): Rename to have a leading underscore.
4348 (auto_load_packages): Likewise.
4349 (global scope): Adjust call to auto_load_packages accordingly.
4350 (GdbSetPythonDirectory): Likewise.
4351 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4352 instead of execute_unwinders.
4354 2019-08-15 Tom Tromey <tom@tromey.com>
4356 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4357 (show_data): Don't change window visibility.
4358 (tui_gen_win_info::resize): Remove special case for command
4359 window. Use wresize, when available.
4360 (show_source_or_disasm_and_command): Don't change window
4362 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4363 <make_visible>: New method.
4364 * tui/tui-command.c (tui_cmd_window::resize): New method.
4366 2019-08-15 Tom Tromey <tom@tromey.com>
4368 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4369 (struct tui_source_windows): New.
4370 * tui/tui-winsource.c (tui_display_main): Update.
4371 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4372 (new_height_ok, parse_scrolling_args): Update.
4373 * tui/tui-layout.c (show_layout, show_data): Update.
4374 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4375 (tui_add_to_source_windows): Don't declare.
4376 * tui/tui-data.c (source_windows, tui_source_windows)
4377 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4379 2019-08-15 Tom Tromey <tom@tromey.com>
4381 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4383 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4384 * tui/tui-layout.c (show_source_disasm_command, show_data):
4386 (tui_gen_win_info::resize): Rename.
4387 (show_source_or_disasm_and_command): Update.
4388 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4391 2019-08-15 Tom Tromey <tom@tromey.com>
4393 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4394 * tui/tui-interp.c (tui_interp::init): Don't call
4395 tui_initialize_static_data.
4396 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4398 2019-08-15 Tom Tromey <tom@tromey.com>
4400 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4401 examine tui_win_list.
4403 2019-08-15 Tom Tromey <tom@tromey.com>
4405 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4406 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4407 tui_clear_source_content.
4408 (tui_clear_source_content): Remove.
4409 (tui_source_window_base::do_erase_source_content): Hoist call to
4411 * tui/tui-stack.c (tui_show_frame_info): Don't call
4412 tui_clear_source_content.
4414 2019-08-15 Tom Tromey <tom@tromey.com>
4416 * tui/tui-winsource.h (struct tui_source_window_base)
4417 <do_erase_source_content>: New method.
4418 <erase_source_content>: New method.
4419 (tui_erase_source_content): Don't declare.
4420 * tui/tui-winsource.c (tui_clear_source_content): Update.
4421 (tui_source_window_base::do_erase_source_content): Rename from
4422 tui_erase_source_content.
4423 (tui_source_window_base::show_source_content): Update.
4424 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4425 * tui/tui-source.h (struct tui_source_window)
4426 <erase_source_content>: New method.
4427 * tui/tui-disasm.h (struct tui_disasm_window)
4428 <erase_source_content>: New method.
4430 2019-08-15 Tom Tromey <tom@tromey.com>
4432 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4433 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4435 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4436 * tui/tui-source.c (tui_set_source_content): Update.
4437 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4439 2019-08-15 Tom Tromey <tom@tromey.com>
4441 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4442 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4444 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4446 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4448 (tui_source_window::maybe_update): Update.
4450 2019-08-15 Tom Tromey <tom@tromey.com>
4452 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4453 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4455 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4457 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4459 (tui_disasm_window::maybe_update): Update.
4461 2019-08-15 Tom Tromey <tom@tromey.com>
4463 * tui/tui-winsource.h (struct tui_source_window_base)
4464 <maybe_update>: Declare.
4465 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4467 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4469 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4470 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4472 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4474 2019-08-15 Tom Tromey <tom@tromey.com>
4476 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4478 2019-08-15 Tom Tromey <tom@tromey.com>
4480 * tui/tui-wingeneral.c: Include tui-stack.h.
4481 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4482 (struct tui_locator_window): Move from tui-data.h.
4483 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4484 (tui_initialize_static_data): Move from tui-data.c.
4485 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4486 (struct tui_locator_window): Move to tui-stack.c.
4487 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4488 (tui_initialize_static_data): Move to tui-stack.c.
4490 2019-08-15 Tom Tromey <tom@tromey.com>
4492 * tui/tui-layout.c (show_source_disasm_command)
4493 (show_source_or_disasm_and_command): Use make_visible method, not
4495 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4498 2019-08-15 Tom Tromey <tom@tromey.com>
4500 * tui/tui-wingeneral.h (tui_make_window): Update.
4501 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4503 (tui_gen_win_info::make_visible): Update.
4504 * tui/tui-regs.c (tui_data_window::display_registers_from):
4506 * tui/tui-layout.c (show_source_disasm_command)
4507 (show_source_or_disasm_and_command): Update.
4508 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4509 (enum tui_box): Remove.
4510 (struct tui_win_info) <can_box>: New method.
4511 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4514 2019-08-15 Tom de Vries <tdevries@suse.de>
4516 * linux-nat-trad.c: Include gdbarch.h.
4518 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4520 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4523 2019-08-14 Tom Tromey <tromey@adacore.com>
4525 * darwin-nat.c: Include gdbarch.h.
4526 * darwin-nat-info.c: Include gdbarch.h.
4528 2019-08-13 Tom Tromey <tom@tromey.com>
4530 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4532 * tui/tui-data.c (tui_initialize_static_data): Update.
4534 2019-08-13 Tom Tromey <tom@tromey.com>
4536 * tui/tui-winsource.h (struct tui_exec_info_window)
4537 <~tui_exec_info_window, maybe_allocate_content, get_content,
4539 (struct tui_source_window_base) <set_exec_info_content,
4540 show_exec_info_content>: Don't declare.
4541 * tui/tui-winsource.c
4542 (tui_exec_info_window::maybe_allocate_content): Remove.
4543 (tui_source_window_base::update_exec_info): Rename from
4544 set_exec_info_content.
4545 (tui_source_window_base::show_exec_info_content)
4546 (tui_source_window_base::update_exec_info): Remove.
4548 2019-08-13 Tom Tromey <tom@tromey.com>
4550 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4552 * tui/tui-winsource.c (tui_update_source_window_as_is)
4553 (tui_update_source_windows_with_addr, tui_erase_source_content):
4555 (tui_clear_exec_info_content): Remove.
4557 2019-08-13 Tom Tromey <tom@tromey.com>
4559 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4561 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4562 call tui_erase_exec_info_content.
4563 (tui_clear_exec_info_content): Rename from
4564 tui_erase_exec_info_content.
4565 (tui_clear_exec_info_content): Delete.
4567 2019-08-13 Tom Tromey <tom@tromey.com>
4569 * tui/tui-winsource.h (struct tui_source_window_base)
4570 <show_exec_info_content>: Declare.
4571 (tui_show_exec_info_content): Don't declare.
4572 * tui/tui-winsource.c
4573 (tui_source_window_base::show_exec_info_content): Rename from
4574 tui_show_exec_info_content.
4575 (tui_source_window_base::update_exec_info): Update.
4577 2019-08-13 Tom Tromey <tom@tromey.com>
4579 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4580 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4581 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4582 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4583 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4584 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4587 2019-08-13 Tom Tromey <tom@tromey.com>
4589 * tui/tui-winsource.h (struct tui_source_window_base)
4590 <update_exec_info>: Declare.
4591 (tui_update_exec_info): Don't declare.
4592 * tui/tui-winsource.c (tui_update_source_window_as_is)
4593 (tui_source_window_base::refresh_all)
4594 (tui_update_all_breakpoint_info): Update.
4595 (tui_source_window_base::update_exec_info): Rename from
4596 tui_update_exec_info.
4597 * tui/tui-stack.c (tui_show_frame_info): Update.
4599 2019-08-13 Tom Tromey <tom@tromey.com>
4601 * tui/tui-winsource.h (struct tui_source_window_base)
4602 <set_exec_info_content>: Declare.
4603 (tui_set_exec_info_content): Don't declare.
4604 * tui/tui-winsource.c
4605 (tui_source_window_base::set_exec_info_content): Rename from
4606 tui_set_exec_info_content.
4607 (tui_update_exec_info): Update.
4609 2019-08-13 Tom Tromey <tom@tromey.com>
4611 * tui/tui-winsource.h (struct tui_source_window_base)
4612 <show_source_content>: Declare.
4613 (tui_show_source_content): Don't declare.
4614 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4615 (tui_source_window_base::show_source_content): Rename from
4616 tui_show_source_content.
4617 (tui_source_window_base::refresh_all): Update.
4618 * tui/tui-layout.c (show_source_disasm_command)
4619 (show_source_or_disasm_and_command): Update.
4621 2019-08-13 Tom Tromey <tom@tromey.com>
4623 * tui/tui-winsource.c (tui_erase_source_content)
4624 (tui_show_source_content, tui_source_window_base::refresh_all):
4626 * tui/tui-wingeneral.h
4627 (tui_check_and_display_highlight_if_needed): Don't declare.
4628 * tui/tui-wingeneral.c
4629 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4630 check_and_display_highlight_if_needed.
4631 * tui/tui-win.c (tui_rehighlight_all)
4632 (tui_win_info::make_visible_with_new_height): Update.
4633 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4634 (tui_data_window::erase_data_content)
4635 (tui_data_window::display_all_data): Update.
4636 * tui/tui-data.h (struct tui_win_info)
4637 <check_and_display_highlight_if_needed>: Declare.
4639 2019-08-13 Tom Tromey <tom@tromey.com>
4641 * tui/tui-win.c (tui_resize_all): Call
4642 tui_delete_invisible_windows.
4643 * tui/tui-layout.c (show_layout): Call
4644 tui_delete_invisible_windows.
4645 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4646 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4648 2019-08-13 Tom Tromey <tom@tromey.com>
4650 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4651 tui_add_win_to_layout.
4653 2019-08-13 Tom Tromey <tom@tromey.com>
4655 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4656 * tui/tui-layout.c (tui_default_win_height): Now static.
4658 2019-08-13 Tom Tromey <tom@tromey.com>
4660 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4662 (show_source_disasm_command, show_source_or_disasm_and_command):
4663 Don't check current layout.
4665 2019-08-13 Tom Tromey <tom@tromey.com>
4667 * tui/tui-wingeneral.c (make_all_visible): Remove.
4668 (tui_make_all_invisible): Simplify.
4669 * tui/tui-layout.c (tui_make_all_invisible): Move from
4670 tui-wingeneral.c; simplify.
4671 (show_layout): Hoist call to tui_make_all_invisible.
4672 (show_data): Don't call tui_make_all_invisible.
4674 2019-08-13 Tom Tromey <tom@tromey.com>
4676 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4677 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4679 2019-08-13 Tom Tromey <tom@tromey.com>
4681 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4683 (show_source_disasm_command, show_data)
4684 (show_source_or_disasm_and_command): Don't use
4685 tui_set_current_layout_to.
4686 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4687 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4689 (tui_set_current_layout_to): Remove.
4691 2019-08-13 Tom Tromey <tom@tromey.com>
4693 * tui/tui-layout.c (tui_set_layout): Update.
4694 * tui/tui-data.h (struct tui_layout_def): Remove.
4695 (tui_layout_def): Don't declare.
4696 * tui/tui-data.c (layout_def): Remove.
4697 (tui_layout_def): Remove.
4699 2019-08-13 Tom Tromey <tom@tromey.com>
4701 * tui/tui-winsource.h (struct tui_source_window_base)
4702 <clear_detail>: No longer "override".
4703 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4704 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4705 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4706 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4708 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4710 2019-08-13 Tom Tromey <tromey@adacore.com>
4712 * tracepoint.c: Don't include readline.h or history.h.
4714 2019-08-12 Tom Tromey <tom@tromey.com>
4716 * configure: Rebuild.
4717 * configure.ac: Check for readline 7.
4718 * NEWS: Mention readline 7 requirement.
4721 2019-08-12 Tom Tromey <tom@tromey.com>
4723 * mingw-hdep.c (gdb_select): Remove readline hack.
4725 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4727 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4728 when the function fails.
4730 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4732 * s390-tdep.c (s390_type_align): New function.
4733 (s390_gdbarch_init): Set it as type_align gdbarch method.
4735 2019-08-09 Tom de Vries <tdevries@suse.de>
4738 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4739 pc_low with relocation offset.
4741 2019-08-07 Tom Tromey <tromey@adacore.com>
4743 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4744 (print_frame_args): Update.
4745 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4747 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4748 * frame.h (struct frame_arg): Add initializers.
4749 <error>: Now a unique_xmalloc_ptr.
4751 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4753 * NEWS: Expand the Pointer Authentication entry.
4754 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4755 (aarch64_frame_unmask_lr): ... to this.
4756 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4757 Call aarch64_frame_unmask_lr.
4758 * frame.c (struct frame_info): Add "masked" variable.
4759 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4760 (fprint_frame): Check for masked pc.
4761 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4763 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4764 * stack.c (print_frame): Check for masked pc.
4766 2019-08-06 Tom Tromey <tom@tromey.com>
4768 * stabsread.c (patch_block_stabs, read_one_struct_field)
4769 (read_enum_type): Use obstack_strndup.
4770 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4771 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4772 * dwarf2read.c (guess_full_die_structure_name)
4773 (anonymous_struct_prefix): Use obstack_strndup.
4774 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4775 * c-exp.y (yylex): Use obstack_strndup.
4776 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4777 (write_var_or_type): Use obstack_strndup.
4779 2019-08-06 Tom Tromey <tom@tromey.com>
4781 * symfile.c (reread_symbols): Use obstack_strdup.
4782 * stabsread.c (read_type): Use obstack_strdup.
4783 * gdb_obstack.h (obstack_strdup): New overload.
4784 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4785 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4786 (dwarf2_canonicalize_name): Use obstack_strdup.
4787 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4788 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4791 2019-08-06 Tom Tromey <tom@tromey.com>
4793 * gdb_obstack.h (obstack_strdup): Define.
4794 * gdb_obstack.c (obstack_strdup): Don't define.
4796 2019-08-06 Tom Tromey <tom@tromey.com>
4798 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4800 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4802 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4803 * stabsread.c (common_block_start): Use obstack_strdup.
4804 * objfiles.c (set_objfile_main_name, objfile): Use
4806 * namespace.c (add_using_directive): Use obstack_strdup.
4807 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4808 * jit.c (finalize_symtab): Use obstack_strdup.
4809 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4810 (guess_partial_die_structure_name, partial_die_info::fixup)
4811 (dwarf2_name): Use obstack_strdup.
4812 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4814 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4815 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4817 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4819 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4821 * unittests/help-doc-selftests.c: New file.
4822 * Makefile.in: Add the new file.
4824 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4826 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4827 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4828 the full first line, except when FOR_VALUE_PREFIX. In this case,
4829 the trailing '.' is not output, and the first character is uppercased.
4830 (print_help_for_command): Update call to print_doc_line.
4831 (print_doc_of_command): Likewise.
4832 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4833 * cli/cli-option.c (append_indented_doc): Do not append newline.
4834 (build_help_option): Append newline after first appended_indented_doc
4835 only if a second call is done.
4836 (build_help): Append 2 new lines before each option, except the first
4838 * compile/compile.c (_initialize_compile): Add new lines after
4839 %OPTIONS%, when not at the end of the help.
4840 Change help doc or code
4841 producing the help doc to respect the invariants.
4842 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4843 Also removed the new line after 'Options:', as all other commands
4844 do not put an empty line between 'Options:' and the first option.
4845 * printcmd.c (_initialize_printcmd): Likewise.
4846 * stack.c (_initialize_stack): Likewise.
4847 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4848 incorrectly telling COMMAND is optional.
4849 * ada-lang.c (_initialize_ada_language): Change help doc or code
4850 producing the help doc to respect the invariants.
4851 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4852 * breakpoint.c (_initialize_breakpoint): Likewise.
4853 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4854 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4855 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4856 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4857 _initialize_cli_style): Likewise.
4858 * corelow.c (core_target_info): Likewise.
4859 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4860 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4861 * filesystem.c (_initialize_filesystem): Likewise.
4862 * frame.c (_initialize_frame): Likewise.
4863 * gnu-nat.c (add_task_commands): Likewise.
4864 * infcall.c (_initialize_infcall): Likewise.
4865 * infcmd.c (_initialize_infcmd): Likewise.
4866 * interps.c (_initialize_interpreter): Likewise.
4867 * language.c (_initialize_language): Likewise.
4868 * linux-fork.c (_initialize_linux_fork): Likewise.
4869 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4870 * maint.c (_initialize_maint_cmds): Likewise.
4871 * memattr.c (_initialize_mem): Likewise.
4872 * printcmd.c (_initialize_printcmd): Likewise.
4873 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4875 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4876 * record-btrace.c (_initialize_record_btrace): Likewise.
4877 * record-full.c (_initialize_record_full): Likewise.
4878 * record.c (_initialize_record): Likewise.
4879 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4880 * regcache.c (_initialize_regcache): Likewise.
4881 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4882 _initialize_remote): Likewise.
4883 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4884 * serial.c (_initialize_serial): Likewise.
4885 * skip.c (_initialize_step_skip): Likewise.
4886 * source.c (_initialize_source): Likewise.
4887 * stack.c (_initialize_stack): Likewise.
4888 * symfile.c (_initialize_symfile): Likewise.
4889 * symtab.c (_initialize_symtab): Likewise.
4890 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4891 * top.c (init_main): Likewise.
4892 * tracefile-tfile.c (tfile_target_info): Likewise.
4893 * tracepoint.c (_initialize_tracepoint): Likewise.
4894 * tui/tui-win.c (_initialize_tui_win): Likewise.
4895 * utils.c (add_internal_problem_command): Likewise.
4896 * valprint.c (value_print_option_defs): Likewise.
4898 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4901 * configure.ac: Drop enable-libmcheck support.
4902 * configure, config.in: Rebuild.
4903 * libmcheck.m4: Remove.
4904 * acinclude.m4: Don't include it.
4905 * Makefile.in: Don't distribute it.
4906 * top.c (print_gdb_configuration): Don't mention it.
4908 2019-08-06 Tom Tromey <tom@tromey.com>
4910 * utils.c (set_output_style): Sometimes pass stream to
4912 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4913 * record-btrace.c (btrace_insn_history): Update.
4914 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4916 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4917 Update initializers.
4918 <m_uiout>: New field.
4920 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4921 Remove "uiout" parameter.
4922 (dump_insns): Update.
4923 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4924 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4926 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4928 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4929 (error_in_psymtab_expansion): Likewise.
4930 (lookup_symbol_via_quick_fns): Likewise.
4931 (basic_lookup_transparent_type_quick): Likewise.
4932 (basic_lookup_transparent_type_1): Likewise.
4934 2019-08-06 Tom Tromey <tromey@adacore.com>
4936 * source.c (last_source_error): Now bool.
4937 (print_source_lines_base): Make "noprint" bool. Only open
4938 source file when last_source_visited changes.
4940 2019-08-06 Tom Tromey <tromey@adacore.com>
4942 * annotate.c (annotate_source_line): Use g_source_cache.
4943 * source-cache.c (source_cache::get_plain_source_lines): Change
4944 parameters. Populate m_offset_cache.
4945 (source_cache::ensure): New method.
4946 (source_cache::get_line_charpos): New method.
4947 (extract_lines): Move lower. Change parameters.
4948 (source_cache::get_source_lines): Move lower.
4949 * source-cache.h (class source_cache): Update comment.
4950 <get_line_charpos>: New method.
4951 <get_source_lines>: Update comment.
4952 <clear>: Clear m_offset_cache.
4953 <get_plain_source_lines>: Change parameters.
4954 <ensure>: New method
4955 <m_offset_cache>: New member.
4956 * source.c (forget_cached_source_info_for_objfile): Update.
4957 (info_source_command): Use g_source_cache.
4958 (find_source_lines, open_source_file_with_line_charpos): Remove.
4959 (print_source_lines_base, search_command_helper): Use g_source_cache.
4960 * source.h (open_source_file_with_line_charpos): Don't declare.
4961 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4962 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4965 2019-08-06 Tom Tromey <tromey@adacore.com>
4967 * source-cache.c (source_cache::get_plain_source_lines):
4968 Remove "first_line" and "last_line" parameters.
4969 (source_cache::get_source_lines): Cache plain text.
4970 * source-cache.h (class source_cache)
4971 <get_plain_source_lines>: Update.
4973 2019-08-06 Tom Tromey <tromey@adacore.com>
4975 * source-cache.c (extract_lines): No longer a method.
4976 Changed type of parameter. Include final newline.
4977 (selftests::extract_lines_test): New function.
4978 (_initialize_source_cache): Likewise.
4979 * source-cache.h (class source_cache)
4980 <extract_lines>: Don't declare.
4982 2019-08-06 Tom Tromey <tromey@adacore.com>
4984 * breakpoint.c (init_breakpoint_sal): Update.
4985 (breakpoint): Update.
4986 * breakpoint.h (struct breakpoint) <filter>: Now a
4989 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4991 * NEWS: Mention dictionary access on blocks.
4992 * python/py-block.c (blpy_getitem): New function.
4993 (block_object_as_mapping): New struct.
4994 (block_object_type): Use new struct for tp_as_mapping field.
4996 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4998 * objfiles.h (objfile): Add a comment describing partial symbols.
5000 2019-08-05 Tom Tromey <tromey@adacore.com>
5002 * compile/compile.c (_initialize_compile): Use _(), not N_().
5003 * thread.c (_initialize_thread): Use _(), not N_().
5004 * stack.c (_initialize_stack): Use _(), not N_().
5005 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5007 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5009 * dwarf2read.c (struct dw2_symtab_iterator):
5010 <want_specific_block>: Remove.
5011 <block_index>: Change type to gdb::optional.
5012 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5013 change type of BLOCK_INDEX parameter to gdb::optional.
5014 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5015 (dw2_lookup_symbol): Don't pass argument for
5016 WANT_SPECIFIC_BLOCK.
5017 (dw2_expand_symtabs_for_function): Don't pass argument for
5018 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5019 (class dw2_debug_names_iterator)
5020 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5021 parameter, change BLOCK_INDEX type to gdb::optional.
5022 <m_want_specific_block>: Remove.
5023 <m_block_index>: Change type to gdb::optional.
5024 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5025 gdb::optional. Re-write in function of gdb::optional.
5026 (dw2_debug_names_lookup_symbol): Don't pass argument for
5027 WANT_SPECIFIC_BLOCK.
5028 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5029 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5032 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5034 * NEWS: Mention changes to "info sources" command.
5036 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5038 * symtab.c (filename_partial_match_opts): New struct type.
5039 (struct output_source_filename_data): New members
5040 regexp, c_regexp, partial_match.
5041 (output_source_filename): Use new members to decide to print file.
5042 (info_sources_option_defs): New variable.
5043 (make_info_sources_options_def_group, print_info_sources_header,
5044 info_sources_command_completer):
5046 (info_sources_command): Read new optional arguments.
5047 (_initialize_symtab): Update info sources help.
5049 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5051 * ada-lang.c (exception_support_info_v0): Renamed from...
5052 (default_exception_support_info): ... this. Create new
5054 (ada_has_this_exception_support): Look up catch_handlers_sym.
5055 (ada_exception_support_info_sniffer): Try v0 after default.
5057 2019-08-01 Tom Tromey <tromey@adacore.com>
5059 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5062 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5064 * s12z-tdep.c: Fix include path for s12z-opc.h.
5066 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5068 * NEWS: Require GNU make 3.82.
5070 2019-07-16 Tom Tromey <tom@tromey.com>
5072 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5075 2019-07-30 Tom Tromey <tromey@adacore.com>
5077 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5079 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5081 * printcmd.c (print_address_symbolic): Print negative offsets.
5082 (build_address_symbolic): Force signed arithmetic when computing
5085 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5087 PR/24474: Add a function to lookup static variables.
5088 * NEWS: Mention this new function.
5089 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5090 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5091 * python/python.c (python_GdbMethods): Add new function.
5093 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5095 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5096 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5097 (objfpy_lookup_static_symbol): New function.
5098 (objfile_object_methods): Add new functions.
5100 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5102 * NEWS: Mention 'set|show print frame-info'. Mention new
5103 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5104 backtrace argument. Mention that python frame filtering code
5105 is now consistent with what 'backtrace' command prints.
5107 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5109 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5111 (print_frame_info_auto, print_frame_info_source_line,
5112 print_frame_info_location, print_frame_info_source_and_location,
5113 print_frame_info_location_and_address, print_frame_info_short_location):
5115 (struct frame_print_options): New member print_frame_info.
5116 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5117 * stack.h (get_user_print_what_frame_info): New declaration.
5118 (frame_show_address): New declaration.
5119 * stack.c (print_frame_arguments_choices): New value 'presence'.
5120 (print_frame_info_auto, print_frame_info_source_line,
5121 print_frame_info_location, print_frame_info_source_and_location,
5122 print_frame_info_location_and_address, print_frame_info_short_location,
5123 print_frame_info_choices, print_frame_info_print_what): New definitions.
5124 (print_frame_args): Only print dots for args if print frame-arguments
5126 (frame_print_option_defs): New element for "frame-info".
5127 (get_user_print_what_frame_info): New function.
5128 (frame_show_address): Make non static. Move comment to stack.h.
5129 (print_frame_info_to_print_what): New function.
5130 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5131 to decide what to print.
5132 (backtrace_command_1): Handle the new print_frame_arguments_presence
5134 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5135 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5136 (py_print_frame): In non-mi mode, use LOCATION as default for
5137 print_what, similarly to frame information printed directly by
5138 backtrace command. Handle frame-info user option in non MI mode.
5140 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5142 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5143 Add case for debugging 32-bit target on 64-bit host. Revise
5146 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5148 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5149 instead of find_function_entry_range_from_pc.
5151 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5153 * stack.c (find_frame_funname): Remove code which preferred
5154 minsym over symtab sym in "certain pathological cases".
5156 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5157 parameter. Change type of "do_demangle" to bool.
5158 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5159 Pass suitable "prefer_sym_over_minsym" flag to
5160 build_address_symbolic(). Don't output "+" for negative offsets.
5161 * printcmd.c (print_address_symbolic): Update invocation of
5162 build_address_symbolic to include a "prefer_sym_over_minsym"
5164 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5165 Restrict cases in which use of minimal symbol is preferred to that
5166 of a found symbol. Update comments.
5168 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5169 for entry pc when entry pc is out of range for that FDE.
5171 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5174 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5177 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5179 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5180 this function's Python signature.
5183 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5185 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5186 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5187 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5188 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5189 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5192 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5194 * h8300-tdep.c (h8300_register_name_common): New.
5195 h8300_register_name): Use h8300_register_name_common.
5196 (h8300s_register_name): Likewise.
5197 (h8300sx_register_name): Likewise.
5198 (h8300h_register_nam): New.
5199 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5202 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5204 * arm-tdep.c (arm_skip_cmse_entry): New function.
5205 (arm_is_sgstubs_section): New function.
5206 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5208 2019-07-22 Tom Tromey <tom@tromey.com>
5210 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5213 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5215 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5218 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5220 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5221 so that GDB doesn't match any msymbols when searching in the
5223 (print_symbol_info): Print using typedef_print or type_print based
5224 on the type of the symbol. Add updated FIXME comment moved from...
5225 (_initialize_symtab): ... move and update FIXME comment to above.
5227 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5229 * NEWS: Mention adding -q option to "info types".
5230 * symtab.c (struct info_types_options): New struct.
5231 (info_types_options_defs): New variable.
5232 (make_info_types_options_def_group): New function.
5233 (info_types_command): Use gdb::option framework to parse options.
5234 (info_types_command_completer): New function.
5235 (_initialize_symtab): Extend the help text on "info types" and
5236 register command completer.
5238 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5240 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5241 (lookup_symbol_in_objfile): Change int to block_enum and add a
5242 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5244 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5246 * MAINTAINERS (Write After Approval): Add self.
5248 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5250 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5251 instruction to the dummy code region.
5253 2019-07-19 Tom Tromey <tromey@adacore.com>
5255 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5256 (ARGSUSED, PARAMS, __func__): Remove rules.
5258 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5260 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5261 * features/arm/arm-with-iwmmxt.c: Remove.
5262 * features/arm/arm-with-iwmmxt.xml: Remove.
5263 * features/arm/arm-with-m-fpa-layout.c: Remove.
5264 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5265 * features/arm/arm-with-m-vfp-d16.c: Remove.
5266 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5267 * features/arm/arm-with-m.c: Remove.
5268 * features/arm/arm-with-m.xml: Remove.
5269 * features/arm/arm-with-neon.c: Remove.
5270 * features/arm/arm-with-neon.xml: Remove.
5271 * features/arm/arm-with-vfpv2.c: Remove.
5272 * features/arm/arm-with-vfpv2.xml: Remove.
5273 * features/arm/arm-with-vfpv3.c: Remove.
5274 * features/arm/arm-with-vfpv3.xml: Remove.
5276 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5278 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5280 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5282 * arch/aarch32.c (aarch32_create_target_description): Create
5283 target descriptions using features.
5284 * arch/arm.c (arm_create_target_description)
5285 (arm_create_mprofile_target_description): Likewise.
5286 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5288 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5290 * Makefile.in: Add new files.
5291 * aarch32-tdep.c: New file.
5292 * aarch32-tdep.h: New file.
5293 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5294 Call aarch32_read_description.
5295 * arch/aarch32.c: New file.
5296 * arch/aarch32.h: New file.
5297 * arch/arm.c (arm_create_target_description)
5298 (arm_create_mprofile_target_description): New function.
5299 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5300 (arm_create_target_description)
5301 (arm_create_mprofile_target_description): New declaration.
5302 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5303 read_description functions.
5304 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5306 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5307 * arm-tdep.c (tdesc_arm_list): New variable.
5308 (arm_register_g_packet_guesses): Call create description functions.
5309 (arm_read_description) (arm_read_mprofile_description): New
5311 * arm-tdep.h (arm_read_description)
5312 (arm_read_mprofile_description): Add declaration.
5313 * configure.tgt: Add new files.
5315 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5317 * top.c (new_ui_command): Open specified terminal just once.
5319 2019-07-18 Tom Tromey <tromey@adacore.com>
5321 * symtab.c (main_name): Constify return type.
5322 * symfile.c (set_initial_language): Update.
5323 * symtab.h (main_name): Constify return type.
5325 2019-07-17 Tom Tromey <tom@tromey.com>
5327 * tui/tui-winsource.c (tui_update_source_window)
5328 (tui_update_source_window_as_is)
5329 (tui_update_source_windows_with_line): Remove return.
5330 * tui/tui-disasm.c (tui_show_disassem)
5331 (tui_show_disassem_and_update_source): Remove return.
5332 * tui/tui.c (tui_reset): Remove return.
5333 * tui/tui-wingeneral.c
5334 (tui_check_and_display_highlight_if_needed): Remove return.
5336 2019-07-17 Tom Tromey <tom@tromey.com>
5338 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5340 2019-07-17 Tom Tromey <tom@tromey.com>
5342 * tui/tui-winsource.h (struct tui_exec_info_window)
5343 (struct tui_source_window_base): Move from tui-data.h.
5344 * tui/tui-winsource.c: Move many method definitions from
5345 elsewhere. Remove "structuring" comments.
5346 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5347 (tui_source_window_base::refresh_window): Move to
5349 * tui/tui-win.c (tui_source_window_base::refresh_all)
5350 (tui_source_window_base::update_tab_width)
5351 (tui_source_window_base::set_new_height)
5352 (tui_source_window_base::do_make_visible_with_new_height): Move to
5354 * tui/tui-source.h: Update.
5355 * tui/tui-source.c (tui_source_window_base::reset): Move to
5357 * tui/tui-disasm.h: Update.
5358 * tui/tui-data.h (struct tui_exec_info_window): Move to
5360 (struct tui_source_window_base): Likewise.
5361 * tui/tui-data.c (tui_source_window_base::clear_detail)
5362 (tui_source_window_base, ~tui_source_window_base): Move to
5365 2019-07-17 Tom Tromey <tom@tromey.com>
5367 * tui/tui-win.c (tui_resize_all)
5368 (tui_source_window_base::update_tab_width)
5369 (tui_adjust_win_heights): Update.
5370 (tui_win_info::make_invisible_and_set_new_height): Rename from
5371 make_invisible_and_set_new_height.
5372 * tui/tui-data.h (struct tui_win_info)
5373 <make_invisible_and_set_new_height>: New method.
5375 2019-07-17 Tom Tromey <tom@tromey.com>
5377 * tui/tui.c: Update.
5378 * tui/tui-source.h (struct tui_source_window): Move from
5380 * tui/tui-layout.c: Update.
5381 * tui/tui-disasm.c: Update.
5382 * tui/tui-data.h (struct tui_source_window): Move to
5385 2019-07-17 Tom Tromey <tom@tromey.com>
5387 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5389 * tui/tui-data.h (struct tui_disasm_window): Move to
5392 2019-07-17 Tom Tromey <tom@tromey.com>
5394 * tui/tui-regs.h (struct tui_data_item_window): Move from
5396 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5397 * tui/tui-data.h (struct tui_data_item_window): Move to
5399 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5401 2019-07-17 Tom Tromey <tom@tromey.com>
5403 * tui/tui.c: Update.
5404 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5405 (tui_cmd_window::max_height): Move to tui-command.c.
5406 * tui/tui-layout.c: Update.
5407 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5408 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5410 * tui/tui-command.h (struct tui_cmd_window): Move from
5412 * tui/tui-command.c: Remove "structuring" comments.
5413 (tui_cmd_window::clear_detail)
5414 (tui_cmd_window::do_make_visible_with_new_height)
5415 (tui_cmd_window::max_height): Move from elsewhere.
5417 2019-07-17 Tom Tromey <tom@tromey.com>
5419 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5421 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5422 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5424 2019-07-17 Tom Tromey <tom@tromey.com>
5426 * tui/tui.c: Update.
5427 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5429 * tui/tui-windata.h: Remove file.
5430 * tui/tui-windata.c: Remove file.
5431 * tui/tui-win.c (tui_data_window::set_new_height)
5432 (tui_data_window::do_make_visible_with_new_height): Move to
5434 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5435 * tui/tui-regs.c: Remove "structuring" comments.
5436 (tui_data_window::first_data_item_displayed)
5437 (tui_data_window::delete_data_content_windows)
5438 (tui_data_window::erase_data_content)
5439 (tui_data_window::display_all_data)
5440 (tui_data_window::refresh_all)
5441 (tui_data_window::do_scroll_vertical)
5442 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5443 (tui_data_window::do_make_visible_with_new_height)
5444 (tui_data_window::refresh_window): Move from elsewhere.
5445 (_initialize_tui_regs): Move to end of file.
5446 * tui/tui-layout.c: Update.
5447 * tui/tui-hooks.c: Update.
5448 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5449 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5451 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5453 2019-07-17 Tom Tromey <tom@tromey.com>
5455 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5458 2019-07-17 Tom Tromey <tom@tromey.com>
5460 * tui/tui-win.c (tui_source_window_base::set_new_height)
5461 (tui_source_window_base::do_make_visible_with_new_height): Use
5462 m_has_locator field directly.
5463 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5465 (struct tui_source_window_base) <has_locator>: Likewise.
5467 2019-07-17 Tom Tromey <tom@tromey.com>
5469 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5471 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5473 * tui/tui-win.c (tui_source_window_base::set_new_height)
5474 (tui_source_window_base::set_new_height)
5475 (make_invisible_and_set_new_height)
5476 (tui_source_window_base::do_make_visible_with_new_height)
5477 (tui_source_window_base::do_make_visible_with_new_height):
5479 * tui/tui-layout.c (show_source_disasm_command, show_data)
5480 (show_source_or_disasm_and_command): Update.
5481 * tui/tui-layout.c (show_layout): Update.
5483 2019-07-17 Tom Tromey <tom@tromey.com>
5485 * tui/tui-layout.c (make_data_window): Remove.
5486 (show_data): Unify creation and re-initialization cases.
5488 2019-07-17 Tom Tromey <tom@tromey.com>
5490 * tui/tui-layout.c (make_source_window, make_disasm_window):
5492 (show_data): Unify creation and re-initialization cases.
5494 2019-07-17 Tom Tromey <tom@tromey.com>
5496 * tui/tui-layout.c (make_command_window): Remove.
5497 (show_source_disasm_command, show_source_or_disasm_and_command):
5498 Unify creation and re-initialization cases.
5500 2019-07-17 Tom Tromey <tom@tromey.com>
5502 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5503 creation and re-initialization cases.
5505 2019-07-17 Tom Tromey <tom@tromey.com>
5507 * tui/tui-regs.c (tui_get_register): Return void.
5509 2019-07-17 Tom Tromey <tom@tromey.com>
5511 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5514 2019-07-17 Tom Tromey <tom@tromey.com>
5516 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5519 2019-07-17 Tom Tromey <tom@tromey.com>
5521 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5522 * tui/tui-regs.c (tui_reg_layout): New function.
5523 (tui_show_registers, tui_reg_command): Use it.
5524 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5525 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5527 (tui_layout_command): Remove.
5529 2019-07-17 Tom Tromey <tom@tromey.com>
5531 * tui/tui-layout.h (tui/tui-layout): Return void.
5532 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5534 2019-07-17 Tom Tromey <tom@tromey.com>
5536 * tui/tui-layout.c (show_source_disasm_command, show_data):
5538 (reset_locator): Remove.
5539 (show_source_or_disasm_and_command): Update.
5541 2019-07-17 Tom Tromey <tom@tromey.com>
5543 * tui/tui-source.c (tui_source_window_base::reset): Remove
5545 * tui/tui-layout.c (make_command_window, make_source_window)
5546 (make_disasm_window, make_data_window)
5547 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5548 (reset_locator, show_source_or_disasm_and_command): Update.
5549 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5551 (struct tui_source_window_base) <reset>: Likewise.
5553 2019-07-17 Tom Tromey <tom@tromey.com>
5555 * tui/tui-layout.c (show_source_disasm_command): Use
5557 (reset_locator): New function.
5558 (init_and_make_win): Remove.
5559 (show_source_or_disasm_and_command): Use reset_locator.
5561 2019-07-17 Tom Tromey <tom@tromey.com>
5563 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5565 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5567 * tui/tui-source.c (tui_source_window_base::reset): New method.
5568 * tui/tui-layout.c (make_command_window): Don't call
5570 (make_source_window, make_disasm_window): Don't call
5571 make_source_or_disasm_window.
5572 (make_data_window): Don't call init_and_make_win. Change calling
5574 (show_source_disasm_command, show_data): Simplify.
5575 (make_source_or_disasm_window): Remove.
5576 (show_source_or_disasm_and_command): Simplify.
5577 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5578 (struct tui_source_window_base) <reset>: Likewise.
5579 <execution_info>: Remove initializer.
5580 * tui/tui-data.c (tui_source_window_base): Initialize
5583 2019-07-17 Tom Tromey <tom@tromey.com>
5585 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5588 2019-07-17 Tom Tromey <tom@tromey.com>
5590 * tui/tui.c (tui_rl_other_window): Update.
5591 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5592 superclass method first. Always iterate over regs_content.
5593 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5595 * tui/tui-win.c (tui_set_focus_command): Update.
5597 2019-07-17 Tom Tromey <tom@tromey.com>
5599 * tui/tui-win.c (tui_set_focus_command): Rename from
5600 tui_set_focus. Call tui_enable.
5601 (tui_set_focus_command): Remove.
5603 2019-07-17 Tom Tromey <tom@tromey.com>
5605 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5607 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5609 (tui_data_window::refresh_window): Call refresh_window on data
5610 items. Always call superclass refresh_window.
5611 (tui_win_info::refresh): Remove.
5612 (tui_source_window_base::refresh_window): Update.
5613 (tui_refresh_all): Update.
5614 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5616 (show_source_or_disasm_and_command): Likewise.
5617 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5618 (struct tui_source_window_base) <refresh>: Likewise.
5620 2019-07-17 Tom Tromey <tom@tromey.com>
5622 * tui/tui-winsource.c (tui_clear_source_content)
5623 (tui_show_source_content): Update.
5624 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5625 whether content is empty.
5626 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5629 2019-07-17 Tom Tromey <tom@tromey.com>
5631 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5633 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5634 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5638 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5639 (struct tui_data_item_window): Update.
5641 2019-07-17 Tom Tromey <tom@tromey.com>
5643 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5644 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5647 2019-07-17 Tom Tromey <tom@tromey.com>
5649 * tui/tui-winsource.h (tui_erase_source_content)
5650 (tui_clear_source_content): Remove "display_prompt" parameter.
5651 * tui/tui-winsource.c (tui_update_source_window_as_is)
5652 (tui_update_source_windows_with_addr): Update.
5653 (tui_clear_source_content): Remove "display_prompt" parameter.
5654 (tui_erase_source_content): Likewise. Simplify.
5655 (tui_show_source_content): Update.
5656 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5657 * tui/tui-stack.c (tui_show_frame_info): Update.
5658 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5661 2019-07-17 Tom Tromey <tom@tromey.com>
5663 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5664 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5666 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5669 2019-07-17 Tom Tromey <tom@tromey.com>
5671 * tui/tui-winsource.c (tui_clear_source_content)
5672 (tui_show_source_content, tui_show_exec_info_content)
5673 (tui_clear_exec_info_content): Update.
5674 * tui/tui-stack.c (tui_show_locator_content): Update.
5675 (tui_show_frame_info): Update.
5676 * tui/tui-source.h (tui_source_window): Don't declare.
5677 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5678 from tui_source_is_displayed.
5679 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5681 (struct tui_source_window_base) <content_in_use>: New field. Now
5683 (struct tui_source_window) <showing_source_p>: New method.
5684 (TUI_SRC_WIN): Change cast.
5685 * tui/tui-data.c (tui_initialize_static_data): Update.
5687 2019-07-17 Tom Tromey <tom@tromey.com>
5689 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5691 * tui/tui-source.c (tui_source_window::location_matches_p): New
5693 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5695 * tui/tui-data.h (struct tui_source_window_base)
5696 <location_matches_p>: New method.
5697 (struct tui_source_window, struct tui_disasm_window)
5698 <location_matches_p>: Likewise.
5700 2019-07-17 Tom Tromey <tom@tromey.com>
5702 * tui/tui-win.c (tui_set_win_height_command): Rename from
5704 (tui_set_win_height_command): Remove.
5706 2019-07-17 Tom Tromey <tom@tromey.com>
5708 * tui/tui-source.c (tui_source_window): New constructor. Add
5710 (~tui_source_window): New destructor.
5711 (tui_source_window::style_changed): New method.
5712 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5713 (tui_attach_detach_observers): Update.
5714 * tui/tui-data.h (struct tui_source_window): Make constructor not
5715 inline. Add destructor.
5716 (struct tui_source_window) <style_changed>: New method.
5717 <m_observable>: New member.
5719 2019-07-17 Tom Tromey <tom@tromey.com>
5721 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5722 * tui/tui-win.c (tui_resize_all): Fix typo.
5724 2019-07-17 Tom Tromey <tom@tromey.com>
5726 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5727 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5728 (tui_refresh_all): Remove "list" parameter. Use foreach.
5729 * tui/tui-win.c (window_name_completer): Use foreach.
5730 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5731 (update_tab_width): Likewise.
5732 * tui/tui-layout.c (show_layout): Update.
5733 * tui/tui-data.h (class tui_window_iterator): New.
5734 (struct all_tui_windows): New.
5735 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5737 2019-07-17 Tom Tromey <tom@tromey.com>
5739 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5740 parameter. Don't reference globals.
5741 (tui_reg_command): Update.
5743 2019-07-17 Tom Tromey <tom@tromey.com>
5745 * tui/tui-regs.c (tui_show_registers): Simplify.
5747 2019-07-17 Tom Tromey <tom@tromey.com>
5749 * tui/tui-regs.c (tui_show_registers): Update.
5750 (tui_show_register_group): Add win_info parameter.
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5754 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5755 Rename from tui_display_reg_element_at_line.
5756 (tui_data_window::display_registers_from_line): Update.
5757 * tui/tui-data.h (struct tui_data_window)
5758 <display_reg_element_at_line>: New method.
5760 2019-07-17 Tom Tromey <tom@tromey.com>
5762 * tui/tui-regs.h (tui_display_registers_from)
5763 (tui_display_registers_from_line): Don't declare.
5764 * tui/tui-windata.c (tui_data_window::display_all_data)
5765 (tui_data_window::refresh_all)
5766 (tui_data_window::do_scroll_vertical): Update.
5767 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5768 from tui_display_registers_from.
5769 (tui_display_reg_element_at_line): Update.
5770 (tui_data_window::display_registers_from_line): Rename from
5771 tui_display_registers_from_line.
5772 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5773 display_registers_from_line>: New methods.
5775 2019-07-17 Tom Tromey <tom@tromey.com>
5777 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5778 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5779 from tui_erase_data_content.
5780 (tui_data_window::display_all_data)
5781 (tui_data_window::refresh_all)
5782 (tui_data_window::do_scroll_vertical): Update.
5783 * tui/tui-regs.c (tui_show_registers): Update.
5784 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5787 2019-07-17 Tom Tromey <tom@tromey.com>
5789 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5792 (tui_data_window::delete_data_content_windows): Rename from
5793 tui_delete_data_content_windows.
5794 (tui_data_window::display_all_data)
5795 (tui_data_window::do_scroll_vertical): Update.
5796 * tui/tui-data.h (struct tui_data_window)
5797 <delete_data_content_windows>: New method.
5799 2019-07-17 Tom Tromey <tom@tromey.com>
5801 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5802 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5804 2019-07-17 Tom Tromey <tom@tromey.com>
5806 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5807 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5808 from tui_display_all_data.
5810 (tui_data_window::do_make_visible_with_new_height): Update.
5811 * tui/tui-regs.c (tui_show_registers): Update.
5812 * tui/tui-layout.c (tui_set_layout): Update.
5813 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5816 2019-07-17 Tom Tromey <tom@tromey.com>
5818 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5819 * tui/tui-windata.c (tui_display_data_from): Remove.
5820 (tui_data_window::refresh_all): Update.
5822 2019-07-17 Tom Tromey <tom@tromey.com>
5824 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5825 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5826 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5827 tui_display_registers_from_line.
5828 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5829 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5830 "force_display" parameter.
5832 2019-07-17 Tom Tromey <tom@tromey.com>
5834 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5836 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5837 Rename from tui_first_reg_element_no_inline.
5838 (tui_display_reg_element_at_line)
5839 (tui_display_registers_from_line): Update.
5840 * tui/tui-data.h (struct tui_data_window)
5841 <first_reg_element_no_inline>: New method.
5843 2019-07-17 Tom Tromey <tom@tromey.com>
5845 * tui/tui-windata.c (tui_display_data_from)
5846 (tui_data_window::do_scroll_vertical): Update.
5847 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5848 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5849 Rename from tui_line_from_reg_element_no.
5850 (tui_display_registers_from_line): Update.
5851 * tui/tui-data.h (struct tui_data_window)
5852 <line_from_reg_element_no>: New method.
5854 2019-07-17 Tom Tromey <tom@tromey.com>
5856 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5857 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5858 tui_last_regs_line_no.
5859 (tui_display_reg_element_at_line)
5860 (tui_display_registers_from_line): Update.
5861 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5864 2019-07-17 Tom Tromey <tom@tromey.com>
5867 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5868 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5869 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5870 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5871 (tui_update_breakpoint_info): Likewise.
5872 * tui/tui-hooks.c (tui_event_create_breakpoint)
5873 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5876 2019-07-17 Tom Tromey <tom@tromey.com>
5878 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5880 2019-07-17 Tom Tromey <tom@tromey.com>
5882 * tui/tui-winsource.c (tui_update_source_window_as_is)
5883 (tui_update_source_windows_with_addr): Update.
5884 * tui/tui-source.h (tui_set_source_content)
5885 (tui_show_symtab_source): Add "win_info" parameter.
5886 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5888 (tui_show_symtab_source): Likewise.
5890 2019-07-17 Tom Tromey <tom@tromey.com>
5892 * tui/tui-wingeneral.c
5893 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5895 2019-07-17 Tom Tromey <tom@tromey.com>
5897 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5898 (struct tui_cmd_window) <can_scroll>: New method.
5899 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5902 2019-07-17 Tom Tromey <tromey@adacore.com>
5904 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5905 do_field_signed>: Rename. Change type of "value".
5906 * ui-out.c (ui_out::field_signed): Rename from field_int.
5907 Change type of "value".
5908 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5910 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5911 do_field_int. Change type of "value".
5912 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5913 do_field_int. Change type of "value".
5914 * tracepoint.c (trace_status_mi, tfind_1)
5915 (print_one_static_tracepoint_marker): Update.
5916 * thread.c (print_thread_info_1, print_selected_thread_frame):
5918 * stack.c (print_frame, print_frame_info): Update.
5919 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5921 * source.c (print_source_lines_base): Update.
5922 * skip.c (info_skip_command): Update.
5923 * record-btrace.c (btrace_ui_out_decode_error)
5924 (btrace_call_history_src_line): Update.
5925 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5927 * progspace.c (print_program_space): Update.
5928 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5929 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5930 do_field_int. Change type of "value".
5931 * mi/mi-out.c (mi_ui_out::do_table_begin)
5932 (mi_ui_out::do_table_header): Update.
5933 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5935 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5936 (mi_cmd_data_list_changed_registers, output_register)
5937 (mi_cmd_data_read_memory, mi_load_progress)
5938 (mi_cmd_trace_frame_collected): Update.
5939 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5941 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5942 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5943 (mi_cmd_var_list_children, varobj_update_one): Update.
5944 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5945 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5946 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5947 * inferior.c (print_inferior): Update.
5948 * gdb_bfd.c (print_one_bfd): Update.
5949 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5951 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5952 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5953 do_field_int. Change type of "value".
5954 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5955 do_field_int. Change type of "value".
5956 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5957 (print_one_breakpoint_location, print_it_catch_fork)
5958 (print_one_catch_fork, print_it_catch_vfork)
5959 (print_one_catch_vfork, print_it_catch_solib)
5960 (print_it_catch_exec, print_it_ranged_breakpoint)
5961 (print_mention_watchpoint, print_mention_masked_watchpoint)
5962 (bkpt_print_it, update_static_tracepoint): Update.
5963 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5964 * break-catch-syscall.c (print_it_catch_syscall): Update.
5965 * ada-tasks.c (print_ada_task_info): Update.
5966 * ada-lang.c (print_it_exception, print_mention_exception):
5969 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5971 PR breakpoints/24541
5972 * gdbarch.c: Regenerate.
5973 * gdbarch.h: Regenerate.
5974 * gdbarch.sh: Adjust return type and parameter types for
5975 'stap_adjust_register'.
5976 (i386_stap_adjust_register): Adjust signature and return new
5978 * stap-probe.c (stap_parse_register_operand): Adjust use of
5979 'gdbarch_stap_adjust_register'.
5981 2019-07-17 Tom Tromey <tromey@adacore.com>
5983 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5985 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5987 (struct s390_process_info): Add initializers.
5988 (s390_add_process): Use new.
5989 (s390_linux_nat_target::low_forget_process): Use delete.
5990 (s390_linux_nat_target::low_new_fork)
5991 (s390_linux_nat_target::stopped_by_watchpoint)
5992 (s390_linux_nat_target::low_prepare_to_resume)
5993 (s390_linux_nat_target::insert_watchpoint)
5994 (s390_linux_nat_target::insert_hw_breakpoint)
5995 (s390_linux_nat_target::remove_watchpoint)
5996 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5998 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6000 * aarch64-fbsd-nat.c: Include regcache.h.
6001 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6003 (aarch64_fbsd_nat_target::fetch_registers)
6004 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6006 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6008 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6010 * fbsd-nat.c: Include gdbarch.h.
6012 2019-07-15 Tom Tromey <tromey@adacore.com>
6014 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6016 2019-07-15 Tom Tromey <tromey@adacore.com>
6018 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6019 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6020 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6021 * cli-out.c (cli_ui_out::do_field_int): New method.
6022 * ui-out.c (ui_out::field_unsigned): New method.
6023 * symfile.c (generic_load): Use field_unsigned.
6024 (print_transfer_performance): Likewise.
6025 * record-btrace.c (ui_out_field_uint): Remove.
6026 (btrace_call_history_insn_range, btrace_call_history): Use
6028 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6030 * ui-out.h (class ui_out) <field_unsigned>: New method.
6031 <do_field_unsigned>: Likewise.
6033 2019-07-15 Tom Tromey <tromey@adacore.com>
6035 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6036 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6037 * target.c (flash_erase_command): Use field_string.
6038 * infrun.c (print_signal_received_reason): Use field_string.
6039 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6040 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6042 * ada-tasks.c (print_ada_task_info): Use field_string.
6044 2019-07-15 Tom Tromey <tromey@adacore.com>
6046 * target.c (flash_erase_command): Use field_core_addr.
6047 * symfile.c (generic_load): Use field_core_addr.
6048 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6049 Use field_core_addr.
6050 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6053 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6055 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6056 value if its desired type is smaller than a CORE_ADDR and signed.
6058 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6060 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6061 of changes to field names, and use new is_reference field to
6062 decide if a property is a reference or not.
6063 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6065 (struct dwarf2_property_baton): Update header comment, rename
6066 'referenced_type' to 'property_type' and update comments.
6067 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6068 default property type, store in property baton, update to take
6069 accound of renamed field.
6070 (read_func_scope): Update call to attr_to_dynamic_prop.
6071 (read_array_type): Likewise.
6072 (dwarf2_per_cu_addr_sized_int_type): New function.
6073 (read_subrange_index_type): Move type finding code to
6074 dwarf2_per_cu_addr_sized_int_type.
6075 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6076 (dwarf2_per_cu_addr_type): New function.
6077 (set_die_type): Update calls to attr_to_dynamic_prop.
6079 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6081 * dwarf2read.c (read_subrange_index_type): New function.
6082 (read_subrange_type): Move code into new function and call it.
6083 * gdbtypes.c (create_range_type): Add some asserts.
6085 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6087 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6088 update return statements.
6089 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6090 declaration, and update comment to match.
6091 * gdbtypes.c (resolve_dynamic_array): Update call to
6092 dwarf2_evaluate_property to match new return type.
6094 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6096 * valarith.c (value_subscripted_rvalue): Change lowerbound
6097 parameter type from int to LONGEST.
6098 * value.h (value_subscripted_rvalue): Likewise in declaration.
6100 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6102 * cli/cli-utils.c (info_print_command_completer): New function.
6103 * cli/cli-utils.h: Add 'completer.h' include, and forward
6104 declaration for 'struct cmd_list_element'.
6105 (info_print_command_completer): Declare.
6106 * stack.c (_initialize_stack): Add completer for 'info locals' and
6108 * symtab.c (_initialize_symtab): Add completer for 'info
6109 variables' and 'info functions'.
6110 * NEWS: Mention completion for additional info commands.
6112 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6114 * cli/cli-utils.c (extract_info_print_args): Delete.
6115 (extract_arg_maybe_quoted): Delete.
6116 (info_print_options_defs): New variable.
6117 (make_info_print_options_def_group): New function.
6118 (extract_info_print_options): Define new function.
6119 * cli/cli-utils.h (extract_info_print_args): Delete.
6120 (struct info_print_options): New structure.
6121 (extract_info_print_options): Declare new function.
6122 * stack.c (info_locals_command): Update to use new
6123 extract_info_print_options, also add a header comment.
6124 (info_args_command): Likewise.
6125 * symtab.c (info_variables_command): Likewise.
6126 (info_functions_command): Likewise.
6128 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6130 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6131 to extract string arguments.
6132 * common/common-utils.c (extract_string_maybe_quoted): New function.
6133 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6135 2019-07-11 Tom Tromey <tromey@adacore.com>
6137 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6138 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6139 * top.h (gdbinit): Don't declare.
6140 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6142 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6143 * top.c (gdb_init): Don't call init_cli_cmds.
6145 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6147 2019-07-11 Tom Tromey <tromey@adacore.com>
6149 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6150 after it has been moved.
6152 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6154 * valops.c (value_must_coerce_to_target): Change return type to
6156 * value.h (value_must_coerce_to_target): Likewise.
6158 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6160 * breakpoint.c (is_hardware_watchpoint): Remove
6161 forward-declaration.
6162 (is_masked_watchpoint): Change return type to bool.
6163 (is_tracepoint): Likewise.
6164 (is_breakpoint): Likewise.
6165 (is_hardware_watchpoint): Likewise.
6166 (is_watchpoint): Likewise.
6167 (is_no_memory_software_watchpoint): Likewise.
6168 (is_catchpoint): Likewise.
6169 (breakpoint_1): Make FILTER parameter's return type bool.
6170 is_masked_watchpoint): Change return type to bool.
6171 (save_breakpoints): Make FILTER parameter's return type bool.
6172 * breakpoint.h (is_breakpoint): Change return type to bool.
6173 (is_watchpoint): Likewise.
6174 (is_catchpoint): Likewise.
6175 (is_tracepoint): Likewise.
6177 2019-07-10 Tom Tromey <tom@tromey.com>
6179 * defs.h: Don't include gdbarch.h.
6180 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6181 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6182 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6183 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6184 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6185 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6186 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6187 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6188 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6189 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6190 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6191 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6192 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6193 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6194 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6195 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6196 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6197 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6198 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6199 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6200 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6201 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6202 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6203 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6204 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6205 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6206 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6208 2019-07-10 Tom Tromey <tromey@adacore.com>
6210 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6211 * breakpoint.c (init_ada_exception_breakpoint): Register as
6213 (print_one_breakpoint_location, print_one_breakpoint): Use
6214 is_ada_exception_catchpoint.
6215 * ada-lang.c (class ada_catchpoint_location): Pass
6216 bp_loc_software_breakpoint to bp_location constructor.
6217 (is_ada_exception_catchpoint): New function.
6219 2019-07-10 Tom Tromey <tromey@adacore.com>
6221 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6223 (struct arm_exidx_entry): New method operator<.
6224 (struct arm_exidx_data) <section_maps>: Change type.
6225 (arm_exidx_data_free): Remove.
6226 (arm_exidx_data_key): Change type. Move lower.
6227 (arm_exidx_new_objfile): Update.
6228 (arm_compare_exidx_entries): Remove.
6229 (arm_find_exidx_entry, _initialize_arm_tdep)
6231 2019-07-10 Tom Tromey <tromey@adacore.com>
6233 * solib-spu.c (ocl_program_data_key): Change type.
6234 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6237 2019-07-10 Tom Tromey <tromey@adacore.com>
6239 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6240 (struct solib_aix_inferior_data) <library_list>: Change type.
6241 (solib_aix_inferior_data_handle): Change type.
6242 (get_solib_aix_inferior_data): Update.
6243 (solib_aix_free_library_list): Remove.
6244 (library_list_start_library): Update.
6245 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6247 (solib_aix_get_library_list)
6248 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6249 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6251 2019-07-10 Tom Tromey <tromey@adacore.com>
6253 * solib-dsbt.c (struct dsbt_info): Add initializers.
6254 (solib_dsbt_pspace_data): Change type.
6255 (dsbt_pspace_data_cleanup): Remove.
6256 (get_dsbt_info, _initialize_dsbt_solib): Update.
6258 2019-07-10 Tom Tromey <tromey@adacore.com>
6260 * spu-tdep.c (spu_overlay_data): Change type.
6261 (spu_get_overlay_table, spu_overlay_new_objfile)
6262 (_initialize_spu_tdep): Update.
6264 2019-07-10 Tom Tromey <tromey@adacore.com>
6266 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6268 (dbx_objfile_data_key): Change type and declare later.
6269 (DBX_SYMFILE_INFO): Rewrite.
6270 * dbxread.c (dbx_objfile_data_key): Change type.
6271 (dbx_symfile_init): Update.
6272 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6273 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6274 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6276 2019-07-10 Tom Tromey <tromey@adacore.com>
6278 * jit.c (jit_program_space_key): Change type. Move lower.
6279 (get_jit_program_space_data): Update.
6280 (jit_program_space_data_cleanup): Remove.
6281 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6283 (struct jit_program_space_data): Add initializers.
6285 2019-07-10 Tom Tromey <tromey@adacore.com>
6287 * solib-darwin.c (struct darwin_info): Add initializers.
6288 (solib_darwin_pspace_data): Change type.
6289 (darwin_pspace_data_cleanup): Remove.
6290 (get_darwin_info, _initialize_darwin_solib): Update.
6292 2019-07-10 Tom Tromey <tromey@adacore.com>
6294 * remote-sim.c (struct sim_inferior_data): Add initializers,
6295 constructor, and destructor.
6296 (sim_inferior_data_key): Change type. Move lower.
6297 (check_for_duplicate_sim_descriptor): Update.
6298 (get_sim_inferior_data): Use new. Update.
6299 (~sim_inferior_data_cleanup): Rename from
6300 sim_inferior_data_cleanup. Simplify.
6301 (gdbsim_close_inferior, simulator_command)
6302 (sim_command_completer, _initialize_remote_sim): Update.
6303 (next_pid, INITIAL_PID): Move earlier.
6305 2019-07-10 Tom Tromey <tromey@adacore.com>
6307 * python/python-internal.h (create_thread_object): Return
6309 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6310 * python/py-inferior.c (struct threadlist_entry): Add
6312 <thread_obj>: Now a gdbpy_ref.
6313 (thread_to_thread_object): Update.
6314 (add_thread_object): Use new.
6315 (delete_thread_object): Use delete.
6316 (infpy_threads): Update.
6317 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6320 2019-07-10 Tom Tromey <tromey@adacore.com>
6322 * valops.c (value_cast): Specialize error message for Ada.
6324 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6326 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6328 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6330 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6331 bpstat_should_step): Return bool, adjust comments.
6332 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6333 bpstat_should_step): Likewise.
6335 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6337 * features/Makefile: Use feature target descriptions for Arm.
6338 * features/arm/arm-core.c: Generate new file.
6339 * features/arm/arm-fpa.c: Likewise.
6340 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6341 * features/arm/arm-m-profile.c: Likewise.
6342 * features/arm/arm-vfpv2.c: Likewise.
6343 * features/arm/arm-vfpv3.c: Likewise.
6344 * features/arm/xscale-iwmmxt.c: Likewise.
6345 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6347 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6349 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6352 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6354 * features/aarch64-pauth.c: Regenerate.
6356 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6358 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6360 (bpstat_what): Use false instead of 0.
6362 2019-07-09 Pedro Alves <palves@redhat.com>
6364 * break-catch-throw.c (is_exception_catchpoint): New.
6365 * breakpoint.c (print_one_breakpoint_location): New parameter
6366 'raw_loc'. Handle it. Use
6367 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6368 looking at the breakpoint's type.
6369 (print_one_breakpoint): If handling "maint info breakpoints", also
6370 print locations of exception catchpoints.
6371 * breakpoint.h (is_exception_catchpoint): Declare.
6373 2019-07-09 Pedro Alves <palves@redhat.com>
6375 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6377 (allocate_location_exception_catchpoint): New.
6378 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6379 (initialize_throw_catchpoint_ops): Install
6380 allocate_location_exception_catchpoint as allocate_location
6382 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6383 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6385 (breakpoint_address_is_meaningful): Delete.
6386 (bl_address_is_meaningful): New.
6387 (breakpoint_locations_match): Adjust comment.
6388 (bp_location_from_bp_type): New, factored out of...
6389 (bp_location::bp_location(breakpoint *)): ... this.
6390 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6392 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6393 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6394 breakpoint_address_is_meaningful.
6395 (bp_locations_compare): Adjust comment.
6396 (update_global_location_list): Use bl_address_is_meaningful
6397 instead of breakpoint_address_is_meaningful.
6398 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6400 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6401 * python/py-breakpoint.c (bppy_get_location): No longer check
6402 whether location is null.
6404 2019-07-09 Pedro Alves <palves@redhat.com>
6407 * breakpoint.c (print_one_breakpoint_location): Remove
6408 single-location assert.
6410 2019-07-09 Tom Tromey <tom@tromey.com>
6412 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6413 * configure: Rebuild.
6414 * configure.ac: Change common to gdbsupport.
6415 * gdbsupport: Rename from common.
6416 * acinclude.m4: Change common to gdbsupport.
6417 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6418 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6420 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6421 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6422 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6423 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6424 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6425 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6426 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6427 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6428 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6429 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6430 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6431 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6432 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6433 coff-pe-read.c, command.h, compile/compile-c-support.c,
6434 compile/compile-c.h, compile/compile-cplus-symbols.c,
6435 compile/compile-cplus-types.c, compile/compile-cplus.h,
6436 compile/compile-loc2c.c, compile/compile.c, completer.c,
6437 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6438 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6439 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6440 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6441 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6442 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6443 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6444 features/aarch64-core.c, features/aarch64-fpu.c,
6445 features/aarch64-pauth.c, features/aarch64-sve.c,
6446 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6447 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6448 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6449 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6450 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6451 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6452 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6453 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6454 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6455 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6456 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6457 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6458 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6459 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6460 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6461 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6462 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6463 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6464 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6465 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6466 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6467 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6468 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6469 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6470 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6471 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6472 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6473 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6474 minsyms.c, mips-linux-tdep.c, namespace.h,
6475 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6476 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6477 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6478 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6479 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6480 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6481 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6482 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6483 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6484 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6485 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6486 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6487 procfs.c, producer.c, progspace.h, psymtab.h,
6488 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6489 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6490 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6491 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6492 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6493 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6494 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6495 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6496 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6497 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6498 target-memory.c, target.c, target.h, target/waitstatus.c,
6499 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6500 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6501 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6502 unittests/array-view-selftests.c,
6503 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6504 unittests/common-utils-selftests.c,
6505 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6506 unittests/format_pieces-selftests.c,
6507 unittests/function-view-selftests.c,
6508 unittests/lookup_name_info-selftests.c,
6509 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6510 unittests/mkdir-recursive-selftests.c,
6511 unittests/observable-selftests.c,
6512 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6513 unittests/parse-connection-spec-selftests.c,
6514 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6515 unittests/scoped_fd-selftests.c,
6516 unittests/scoped_mmap-selftests.c,
6517 unittests/scoped_restore-selftests.c,
6518 unittests/string_view-selftests.c, unittests/style-selftests.c,
6519 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6520 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6521 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6522 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6523 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6524 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6526 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6528 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6530 (decode_digits_ordinary): Set explicit_line field in sal.
6531 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6532 symtab_and_line that was set on an explicit line number in
6533 assembler code. Do always update the recorded symtab and line if
6534 we do skip the prologue.
6536 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6538 * breakpoint.c (set_breakpoint_location_function): Remove
6539 explicit_loc parameter.
6540 (momentary_breakpoint_from_master): Update call to
6541 set_breakpoint_location_function.
6542 (add_location_to_breakpoint): Likewise.
6544 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6546 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6547 required features based on default bfd type when no specific bfd
6550 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6552 * NEWS: Mention that GDB printf and eval commands can now print
6553 C-style and Ada-style convenience var strings without
6554 calling the inferior.
6555 * printcmd.c (printf_c_string): Locally print GDB internal var
6556 instead of transiting via the inferior.
6557 (printf_wide_c_string): Likewise.
6559 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6561 PR breakpoints/25011
6562 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6564 2019-07-04 Tom Tromey <tom@tromey.com>
6567 * tui/tui-winsource.c (tui_clear_source_content): Update.
6568 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6569 (tui_update_breakpoint_info): Update.
6570 (tui_set_exec_info_content): Update.
6571 * tui/tui-source.c (tui_set_source_content_nil): Update.
6572 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6574 * tui/tui-data.h (enum tui_bp_flag): New.
6575 (tui_bp_flags): New enum flags type.
6576 (struct tui_source_element) <break_mode>: Change type. Rename
6578 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6579 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6581 * tui/tui-winsource.h: Fix comment.
6583 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6585 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6586 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6587 (store_fpregs_to_thread)
6588 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6589 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6590 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6591 (IWMMXT_REGS_SIZE): Add define.
6592 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6593 (fetch_vfp_regs, store_vfp_regs)
6594 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6595 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6597 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6599 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6601 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6602 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6603 (ARM_INT_REGISTER_SIZE): ...to this.
6604 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6605 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6606 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6607 (arm_linux_collect_gregset, supply_nwfpe_register)
6608 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6610 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6611 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6612 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6613 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6614 (arm_return_in_memory, arm_store_return_value)
6615 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6616 (arm_record_ld_st_multiple): Likewise.
6617 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6618 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6620 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6622 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6623 AARCH64_DISPLACED_MODIFIED_INSNS.
6624 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6625 (aarch64_displaced_step_copy_insn): Likewise.
6626 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6627 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6628 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6629 ARM_DISPLACED_MODIFIED_INSNS.
6630 * arm-tdep.c (arm_gdbarch_init): Likewise.
6631 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6632 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6633 (struct arm_displaced_step_closure): Use
6634 ARM_DISPLACED_MODIFIED_INSNS.
6636 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6638 * features/Makefile: Remove unused xml files.
6639 * features/aarch64.xml: Remove.
6640 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6641 * features/i386/amd64-avx-avx512.xml: Remove.
6642 * features/i386/amd64-avx-linux.xml: Remove.
6643 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6644 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6645 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6646 * features/i386/amd64-avx-mpx.xml: Remove.
6647 * features/i386/amd64-avx.xml: Remove.
6648 * features/i386/amd64-linux.xml: Remove.
6649 * features/i386/amd64-mpx-linux.xml: Remove.
6650 * features/i386/amd64-mpx.xml: Remove.
6651 * features/i386/amd64.xml: Remove.
6652 * features/i386/i386-avx-avx512-linux.xml: Remove.
6653 * features/i386/i386-avx-avx512.xml: Remove.
6654 * features/i386/i386-avx-linux.xml: Remove.
6655 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6656 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6657 * features/i386/i386-avx-mpx-linux.xml: Remove.
6658 * features/i386/i386-avx-mpx.xml: Remove.
6659 * features/i386/i386-avx.xml: Remove.
6660 * features/i386/i386-linux.xml: Remove.
6661 * features/i386/i386-mmx-linux.xml: Remove.
6662 * features/i386/i386-mmx.xml: Remove.
6663 * features/i386/i386-mpx-linux.xml: Remove.
6664 * features/i386/i386-mpx.xml: Remove.
6665 * features/i386/i386.xml: Remove.
6666 * features/i386/x32-avx-avx512-linux.xml: Remove.
6667 * features/i386/x32-avx-linux.xml: Remove.
6668 * features/i386/x32-linux.xml: Remove.
6670 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6672 * regformats/aarch64.dat: Remove.
6673 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6674 * regformats/i386/amd64-avx-linux.dat: Remove.
6675 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6676 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6677 * regformats/i386/amd64-linux.dat: Remove.
6678 * regformats/i386/amd64-mpx-linux.dat: Remove.
6679 * regformats/i386/amd64.dat: Remove.
6680 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6681 * regformats/i386/i386-avx-linux.dat: Remove.
6682 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6683 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6684 * regformats/i386/i386-linux.dat: Remove.
6685 * regformats/i386/i386-mmx-linux.dat: Remove.
6686 * regformats/i386/i386-mpx-linux.dat: Remove.
6687 * regformats/i386/i386.dat: Remove.
6688 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6689 * regformats/i386/x32-avx-linux.dat: Remove.
6690 * regformats/i386/x32-linux.dat: Remove.
6692 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6694 * aarch64-tdep.c: Remove xml self tests.
6695 * amd64-linux-tdep.c: Likewise.
6696 * amd64-tdep.c: Likewise.
6697 * i386-linux-tdep.c: Likewise.
6698 * i386-tdep.c: Likewise.
6700 2019-07-03 Pedro Alves <palves@redhat.com>
6703 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6704 (pipe_cmd_option_defs): New.
6705 (make_pipe_cmd_options_def_group): New.
6706 (pipe_command): Use gdb::option::process_options.
6707 (pipe_command_completer): New function.
6708 (_initialize_cli_cmds): Install completer for "pipe" command.
6710 2019-07-03 Pedro Alves <palves@redhat.com>
6712 * cli/cli-option.c (union option_value) <string>: New field.
6713 (struct option_def_and_value): Add ctor, move ctor, dtor and
6714 use DISABLE_COPY_AND_ASSIGN.
6715 (option_def_and_value::clear_value): New.
6716 (parse_option, save_option_value_in_ctx, get_val_type_str)
6717 (add_setshow_cmds_for_options): Handle var_string.
6718 * cli-option.h (union option_def::var_address) <string>: New
6720 (struct string_option_def): New.
6721 * maint-test-options.c (struct test_options_opts): Add default
6722 ctor and use DISABLE_COPY_AND_ASSIGN.
6723 <string_opt>: New field.
6724 (test_options_opts::~test_options_opts): New.
6725 (test_options_opts::dump): Also dump "-string".
6726 (test_options_option_defs): Install "string.
6728 2019-07-03 Pedro Alves <palves@redhat.com>
6730 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6731 option_value with a null enumeration.
6732 (complete_options): Save the option values in the context.
6733 (save_option_value_in_ctx): New, factored out from ...
6734 (process_options): ... here.
6735 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6737 * maint-test-options.c (test_options_opts::dump): New, factored
6739 (maintenance_test_options_command_mode): ... here.
6740 (maintenance_test_options_command_completion_result): Delete.
6741 (maintenance_test_options_command_completion_text): Update
6743 (maintenance_show_test_options_completion_result): Change
6744 prototype. Just print
6745 maintenance_test_options_command_completion_text.
6746 (save_completion_result): New.
6747 (maintenance_test_options_completer_mode): Pass options context to
6748 complete_options, and then save a dump.
6749 (_initialize_maint_test_options): Use add_cmd to install "maint
6750 show test-options-completion-result".
6752 2019-07-03 Pedro Alves <palves@redhat.com>
6754 * NEWS (New commands): Mention "with" and "maint with".
6755 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6756 (with_command, with_command_completer): New.
6757 (pipe_command): Adjust to new repeat_previous
6759 (_initialize_cli_cmds): Install the "with" command and its "w"
6761 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6763 * cli/cli-setshow.c (parse_cli_var_uinteger)
6764 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6765 argument strings for all var_types.
6766 (get_setshow_command_value_string): New, factored out from ...
6767 (do_show_command): ... this.
6768 * cli/cli-setshow.h: Include <string>.
6769 (get_setshow_command_value_string): Declare.
6770 * command.h (repeat_previous): Now returns const char *. Adjust
6772 * maint.c: Include "cli/cli-cmds.h".
6773 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6774 (_initialize_maint_cmds): Register the "maintenance with" command.
6775 * top.c (repeat_previous): Move bits from pipe_command here:
6776 Return the saved command line, if any; error out if there's no
6777 command to relaunch.
6779 2019-07-03 Pedro Alves <palves@redhat.com>
6781 * NEWS (New commands): Mention "maint set/show test-settings"
6782 instead of "maint test-settings".
6783 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6784 (maintenance_test_settings_set_list): Rename to ...
6785 (maintenance_set_test_settings_list): ... this.
6786 (maintenance_test_settings_show_list): Rename to ...
6787 (maintenance_show_test_settings_list): ... this.
6788 (maintenance_test_settings_cmd): Delete.
6789 (maintenance_test_settings_set_cmd): ...
6790 (maintenance_set_test_settings_cmd): ... this.
6791 (maintenance_test_settings_show_cmd): ...
6792 (maintenance_show_test_settings_cmd): ... this.
6793 (maintenance_test_settings_show_value_cmd):
6794 (maintenance_show_test_settings_value_cmd): ... this.
6795 (_initialize_maint_test_settings): No longer install the "maint
6796 test-settings" prefix command. Rename "maint test-settings set"
6797 to "maint set test-settings", and "maint test-settings show" to
6798 "maint show test-settings". Adjust all subcommands.
6800 2019-07-03 Pedro Alves <palves@redhat.com>
6802 * maint-test-settings.c: Fix file's intro comment. Replace all
6803 references to "test-options" with references to "test-settings",
6806 2019-07-03 Pedro Alves <palves@redhat.com>
6808 * maint-test-settings.c (maintenance_test_settings_xxx)
6809 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6811 (maintenance_test_settings_enums): Use them.
6812 (maintenance_test_settings_enum): Default to
6813 maintenance_test_settings_xxx.
6814 (_initialize_maint_test_settings): Initialize
6815 MAINTENANCE_TEST_SETTINGS_FILENAME.
6817 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6819 * breakpoint.h (remove_breakpoints_inf): Change return type to
6820 void, move function documentation here.
6821 * breakpoint.c (remove_breakpoints_inf): Change return type to
6822 void, move function documentation to header.
6824 2019-07-02 Pedro Alves <palves@redhat.com>
6826 * NEWS (Completion improvements): Mention "info threads".
6827 * thread.c (struct info_threads_opts, info_threads_option_defs)
6828 (make_info_threads_options_def_group): New.
6829 (info_threads_command): Use gdb::option::process_options.
6830 (info_threads_command_completer): New.
6831 (_initialize_thread): Use gdb::option::build_help to build the
6832 help text for "info threads".
6834 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6836 * defs.h (generic_load): Move from here...
6837 * symfile.h (generic_load): ... to here. Rename name parameter
6839 * symfile.c (generic_load): Add comment.
6841 2019-07-01 Tom Tromey <tromey@adacore.com>
6844 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6845 declaration of without_params. Fix formatting.
6847 2019-07-01 Tom Tromey <tromey@adacore.com>
6849 * ada-exp.y (find_primitive_type): Update.
6850 * ada-lang.h (ada_lookup_symbol): Update.
6851 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6853 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6855 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6857 PR breakpoints/24541
6858 * gdbarch.c: Regenerate.
6859 * gdbarch.h: Regenerate.
6860 * gdbarch.sh: Add 'stap_adjust_register'.
6861 * i386-tdep.c: Include '<unordered_set>'.
6862 (i386_stap_adjust_register): New function.
6863 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6864 * stap-probe.c (stap_parse_register_operand): Call
6865 'gdbarch_stap_adjust_register'.
6867 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6870 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6871 * python/python.c (do_start_initialization): Use 'xmalloc'
6872 instead of 'PyMem_Malloc'.
6874 2019-06-28 Tom Tromey <tromey@adacore.com>
6876 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6879 2019-06-27 Tom Tromey <tromey@adacore.com>
6881 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6883 (arm_find_mapping_symbol, arm_record_special_symbol)
6884 (_initialize_arm_tdep): Update.
6885 (arm_objfile_data_free): Remove.
6887 2019-06-27 Tom Tromey <tromey@adacore.com>
6889 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6890 to cp_print_static_field.
6892 2019-06-26 Tom Tromey <tromey@adacore.com>
6894 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6895 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6898 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6900 * features/aarch64-core.c (create_feature_aarch64_core):
6902 * features/aarch64-core.xml: Add cpsr flags.
6904 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6906 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6907 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6909 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6911 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6913 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6915 (arm_record_special_symbol): Don't insert new symbol in sorted
6916 position, push it at the end.
6918 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6920 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6921 (arm_mapping_symbol_s): Remove.
6922 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6923 (arm_mapping_symbol_vec): New typedef.
6924 (struct arm_per_objfile): Add constructor.
6925 <section_maps>: Change type to
6926 std::unique_ptr<arm_mapping_symbol_vec[]>.
6927 (arm_compare_mapping_symbols): Remove.
6928 (arm_find_mapping_symbol): Adjust to section_maps type change.
6929 (arm_objfile_data_free): Call delete on arm_per_objfile.
6930 (arm_record_special_symbol): Adjust to section_maps type change.
6931 Allocate arm_per_objfile with new.
6933 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6935 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6936 with the command prefix.
6938 2019-06-25 Tom Tromey <tom@tromey.com>
6940 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6941 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6943 2019-06-25 Tom Tromey <tom@tromey.com>
6945 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6947 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6950 2019-06-25 Tom Tromey <tom@tromey.com>
6952 * tui/tui-winsource.c
6953 (tui_source_window_base::set_is_exec_point_at): Add check against
6956 2019-06-25 Tom Tromey <tom@tromey.com>
6958 * tui/tui-source.c (tui_set_source_content): Don't check before
6960 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6962 2019-06-25 Tom Tromey <tom@tromey.com>
6964 * tui/tui-winsource.h (tui_update_source_window_as_is)
6965 (tui_alloc_source_buffer, tui_line_is_displayed)
6966 (tui_addr_is_displayed): Change type of win_info.
6967 * tui/tui-winsource.c (tui_update_source_window_as_is)
6968 (tui_clear_source_content, tui_show_source_line)
6969 (tui_show_source_content, tui_source_window_base::refill)
6970 (tui_source_window_base::set_is_exec_point_at)
6971 (tui_source_window_base::set_is_exec_point_at)
6972 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6973 (tui_alloc_source_buffer, tui_line_is_displayed)
6974 (tui_addr_is_displayed): Change type of win_info. Update.
6975 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6976 (tui_source_window_base::do_make_visible_with_new_height):
6978 * tui/tui-source.c (tui_set_source_content)
6979 (tui_set_source_content_nil)
6980 (tui_source_window::do_scroll_vertical): Update.
6981 * tui/tui-layout.c (show_layout): Update.
6982 * tui/tui-disasm.c (tui_set_disassem_content)
6983 (tui_disasm_window::do_scroll_vertical): Update.
6984 * tui/tui-data.h (tui_win_content): Remove.
6985 (struct tui_gen_win_info) <content, content_size>: Remove.
6986 (struct tui_source_element): Add initializers and destructor.
6987 (union tui_which_element, struct tui_win_element): Remove.
6988 (struct tui_source_window_base) <content>: New field.
6989 (struct tui_data_window): Remove destructor.
6990 (tui_alloc_content, tui_free_win_content)
6991 (tui_free_all_source_wins_content): Don't declare.
6992 * tui/tui-data.c (tui_initialize_static_data): Update.
6993 (init_content_element, tui_alloc_content): Remove.
6994 (~tui_gen_win_info): Update.
6995 (~tui_data_window, tui_free_all_source_wins_content)
6996 (tui_free_win_content, free_content, free_content_elements):
6999 2019-06-25 Tom Tromey <tom@tromey.com>
7001 * tui/tui-winsource.h (tui_clear_source_content)
7002 (tui_erase_source_content, tui_show_source_content): Change type
7004 * tui/tui-winsource.c (tui_clear_source_content)
7005 (tui_erase_source_content, tui_show_source_content): Change type
7007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7008 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7010 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7012 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7014 2019-06-25 Tom Tromey <tom@tromey.com>
7016 * tui/tui-winsource.c (tui_clear_source_content)
7017 (tui_source_window_base::set_is_exec_point_at): Update.
7018 * tui/tui-source.c (tui_set_source_content_nil): Update.
7019 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7021 * tui/tui-data.c (init_content_element): Update.
7023 2019-06-25 Tom Tromey <tom@tromey.com>
7025 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7026 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7027 * tui/tui-layout.c (init_and_make_win): Update.
7028 * tui/tui.h (enum tui_win_type): Update.
7029 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7030 tui_win_is_auxillary.
7031 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7032 tui_win_is_auxillary.
7034 2019-06-25 Tom Tromey <tom@tromey.com>
7036 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7037 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7038 (tui_delete_data_content_windows, tui_display_all_data)
7039 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7041 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7042 * tui/tui-regs.c (tui_last_regs_line_no)
7043 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7044 (tui_show_registers): Update.
7045 (tui_show_register_group): Return void. Update.
7046 (tui_display_registers_from, tui_display_reg_element_at_line)
7047 (tui_display_registers_from_line, tui_check_register_values):
7049 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7051 (struct tui_data_window) <regs_content>: Now a std::vector.
7052 <regs_content_count>: Remove.
7053 (tui_add_content_elements, tui_free_data_content): Don't declare.
7054 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7055 (init_content_element): Remove DATA_WIN case. Add assert.
7056 (tui_add_content_elements): Remove.
7057 (tui_data_window): Update.
7058 (tui_free_data_content): Remove.
7059 (free_content_elements): Remove DATA_WIN case.
7061 2019-06-25 Tom Tromey <tom@tromey.com>
7063 * tui/tui-data.c (tui_data_item_window): Update.
7064 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7065 * tui/tui-windata.c (tui_display_all_data)
7066 (tui_display_data_from_line): Update.
7067 (tui_check_data_values): Remove.
7068 * tui/tui-regs.c (tui_show_register_group)
7069 (tui_display_reg_element_at_line): Update.
7070 * tui/tui-hooks.c (tui_register_changed)
7071 (tui_refresh_frame_and_register_information): Call
7072 tui_check_register_values.
7073 * tui/tui-data.h (struct tui_data_window) <data_content,
7074 data_content_count, data_type>: Remove.
7075 (enum tui_data_type): Remove.
7077 * tui/tui-data.c (tui_data_window::clear_detail)
7078 (~tui_data_window): Update.
7080 2019-06-25 Tom Tromey <tom@tromey.com>
7082 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7084 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7085 Rename from tui_first_data_item_displayed. Update.
7086 (tui_data_window::refresh_all)
7087 (tui_data_window::do_scroll_vertical): Update.
7088 * tui/tui-data.h (struct tui_data_window)
7089 <first_data_item_displayed>: Declare new method.
7091 2019-06-25 Tom Tromey <tom@tromey.com>
7093 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7094 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7096 (tui_initialize_static_data): ...here.
7098 2019-06-25 Tom Tromey <tom@tromey.com>
7100 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7101 (tui_display_registers_from, tui_check_register_values): Update.
7102 (tui_display_register): Remove win_info parameter; update.
7103 (tui_get_register): Change type of parameters.
7104 * tui/tui-data.h (struct tui_data_element): Remove.
7105 (union tui_which_element) <data>: Remove.
7106 <data_window>: Change type.
7107 (struct tui_data_item_window): New.
7108 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7110 (~tui_data_item_window): New destructor.
7111 (free_content_elements): Remove DATA_ITEM_WIN case.
7113 2019-06-25 Tom Tromey <tom@tromey.com>
7115 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7118 2019-06-25 Tom Tromey <tom@tromey.com>
7120 * tui/tui-data.h (struct tui_command_element): Remove.
7121 (union tui_which_element) <command>: Remove.
7122 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7124 (free_content_elements): Remove CMD_WIN case.
7126 2019-06-25 Tom Tromey <tom@tromey.com>
7128 * tui/tui-layout.c (tui_set_layout): Update.
7129 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7130 * tui/tui-data.c (layout_def): Update.
7132 2019-06-25 Tom Tromey <tom@tromey.com>
7134 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7135 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7136 (tui_source_window_base::set_new_height): Update.
7137 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7139 (tui_set_locator_fullname, tui_set_locator_info)
7140 (tui_show_frame_info): Update.
7141 * tui/tui-source.c (tui_set_source_content)
7142 (tui_source_is_displayed): Update.
7143 * tui/tui-layout.c (show_source_disasm_command, show_data)
7144 (show_source_or_disasm_and_command): Update.
7145 * tui/tui-disasm.c (tui_set_disassem_content)
7146 (tui_get_begin_asm_address): Update.
7147 * tui/tui-data.h (struct tui_locator_element): Remove.
7148 (union tui_which_element) <locator>: Remove.
7149 (struct tui_locator_window): New.
7150 (tui_locator_win_info_ptr): Change return type.
7151 * tui/tui-data.c (_locator): Change type.
7152 (tui_locator_win_info_ptr): Change return type.
7153 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7154 (tui_alloc_content): Add assert.
7156 2019-06-25 Tom Tromey <tom@tromey.com>
7158 * tui/tui-winsource.c
7159 (tui_exec_info_window::maybe_allocate_content): New method.
7160 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7161 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7162 (make_source_or_disasm_window): Add cast.
7163 * tui/tui-data.h (union tui_which_element) <simple_string>:
7165 (struct tui_source_info): New.
7166 (struct tui_source_window_base) <execution_info>: Change type.
7167 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7168 case, and add assert.
7169 (tui_alloc_content): Add assert.
7171 2019-06-25 Tom Tromey <tom@tromey.com>
7173 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7174 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7175 * tui/tui-data.c (tui_alloc_win_info): Remove.
7177 2019-06-25 Tom Tromey <tom@tromey.com>
7179 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7180 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7183 2019-06-25 Tom Tromey <tom@tromey.com>
7185 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7186 make_visible_with_new_height method.
7187 (tui_win_info::make_visible_with_new_height): New method.
7188 (tui_source_window_base::do_make_visible_with_new_height)
7189 (tui_data_window::do_make_visible_with_new_height)
7190 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7191 (make_visible_with_new_height): Remove.
7192 (tui_resize_all, tui_adjust_win_heights): Use
7193 make_visible_with_new_height method.
7194 * tui/tui-data.h (struct tui_win_info)
7195 <do_make_visible_with_new_height, make_visible_with_new_height>:
7197 (struct tui_source_window_base, struct tui_data_window)
7198 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7201 2019-06-25 Tom Tromey <tom@tromey.com>
7203 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7205 (update_tab_width): Call update_tab_width method.
7206 * tui/tui-data.h (struct tui_win_info)
7207 (struct tui_source_window_base) <update_tab_width>: New methods.
7209 2019-06-25 Tom Tromey <tom@tromey.com>
7211 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7213 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7215 (tui_gen_win_info::make_visible): Update.
7216 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7218 * tui/tui-data.h (enum tui_box): New enum.
7219 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7221 2019-06-25 Tom Tromey <tom@tromey.com>
7223 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7224 init_and_make_win for EXEC_INFO_WIN.
7225 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7227 (struct tui_win_info) <~tui_win_info>: Inline.
7228 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7230 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7231 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7233 (tui_initialize_static_data): Update.
7234 (~tui_gen_win_info): Handle more cleanup here.
7235 (~tui_source_window_base): Delete "execution_info".
7236 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7238 2019-06-25 Tom Tromey <tom@tromey.com>
7240 * tui/tui-layout.c (make_command_window): Don't set
7242 (show_source_disasm_command): Call the reset method.
7243 (show_data): Don't set can_highlight. Call the reset method.
7244 (tui_gen_win_info::reset): Rename from init_gen_win_info
7245 (init_and_make_win): Simplify. Return tui_gen_win_info.
7246 (show_source_or_disasm_and_command): Call the reset method.
7247 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7248 (struct tui_cmd_window): Set can_highlight.
7250 2019-06-25 Tom Tromey <tom@tromey.com>
7252 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7254 (tui_make_visible, tui_make_invisible): Rewrite.
7255 (tui_win_info::make_visible): Remove.
7256 (tui_source_window_base::make_visible): Update.
7257 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7258 method. Moved from...
7259 (struct tui_win_info) <make_visible>: ...here.
7261 2019-06-25 Tom Tromey <tom@tromey.com>
7263 * tui/tui-winsource.c
7264 (tui_source_window_base::do_scroll_horizontal): Remove direction
7266 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7267 direction parameter.
7268 * tui/tui-win.c (tui_win_info::forward_scroll)
7269 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7270 (tui_win_info::right_scroll): Update.
7271 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7272 direction parameter.
7273 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7274 direction parameter.
7275 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7276 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7277 Remove direction parameter.
7278 (struct tui_source_window_base, struct tui_source_window)
7279 (struct tui_disasm_window, struct tui_data_window)
7280 (struct tui_cmd_window): Update.
7282 2019-06-25 Tom Tromey <tom@tromey.com>
7284 * tui/tui-winsource.h (tui_set_exec_info_content)
7285 (tui_show_exec_info_content, tui_erase_exec_info_content)
7286 (tui_clear_exec_info_content, tui_update_exec_info): Change
7287 argument to tui_source_window_base.
7288 * tui/tui-winsource.c (tui_set_exec_info_content)
7289 (tui_show_exec_info_content, tui_erase_exec_info_content)
7290 (tui_clear_exec_info_content, tui_update_exec_info): Change
7291 argument to tui_source_window_base.
7293 2019-06-25 Tom Tromey <tom@tromey.com>
7295 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7296 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7298 2019-06-25 Tom Tromey <tom@tromey.com>
7300 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7303 2019-06-25 Tom Tromey <tom@tromey.com>
7305 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7307 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7309 * tui/tui-source.c (tui_set_source_content): Update.
7310 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7312 2019-06-25 Tom Tromey <tom@tromey.com>
7314 * tui/tui-win.c (window_name_completer, tui_set_focus)
7315 (tui_all_windows_info): Use name method.
7316 * tui/tui-data.h (struct tui_gen_win_info)
7317 (struct tui_source_window, struct tui_disasm_window)
7318 (struct tui_data_window, struct tui_cmd_window) <name>: New
7320 (tui_win_name): Don't declare.
7321 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7322 (tui_win_name): Remove.
7324 2019-06-25 Tom Tromey <tom@tromey.com>
7326 * tui/tui-winsource.h (tui_update_source_window)
7327 (tui_update_source_window_as_is): Change parameter type.
7328 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7329 to be a tui_source_window_base.
7330 (tui_update_source_window_as_is): Likewise.
7331 * tui/tui-win.c (make_visible_with_new_height): Update.
7333 2019-06-25 Tom Tromey <tom@tromey.com>
7335 * tui/tui-winsource.c (tui_erase_source_content)
7336 (tui_show_source_content, tui_show_exec_info_content)
7337 (tui_erase_exec_info_content): Use refresh_window method.
7338 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7339 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7340 from tui_refresh_win.
7341 (tui_data_window::refresh_window): New method.
7342 (tui_win_info::refresh, tui_source_window_base::refresh)
7343 (tui_refresh_all): Use refresh_window method.
7344 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7346 * tui/tui-regs.c (tui_display_register): Call refresh_window
7348 * tui/tui-layout.c (show_source_disasm_command)
7349 (show_source_or_disasm_and_command): Call refresh_window method.
7350 * tui/tui-data.h (struct tui_gen_win_info)
7351 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7354 2019-06-25 Tom Tromey <tom@tromey.com>
7356 * tui/tui.c (tui_rl_other_window, tui_enable)
7357 (tui_is_window_visible, tui_get_command_dimension): Update.
7358 * tui/tui-winsource.c (tui_update_source_window_as_is)
7359 (tui_clear_source_content, tui_erase_source_content)
7360 (tui_show_source_line, tui_source_window_base::refill)
7361 (tui_source_window_base::do_scroll_horizontal)
7362 (tui_source_window_base::set_is_exec_point_at)
7363 (tui_update_breakpoint_info, tui_set_exec_info_content)
7364 (tui_alloc_source_buffer, tui_line_is_displayed)
7365 (tui_addr_is_displayed): Update.
7366 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7367 (tui_check_and_display_highlight_if_needed)
7368 (tui_win_info::make_visible, tui_win_info::refresh)
7369 (tui_refresh_all): Update.
7370 * tui/tui-windata.c (tui_first_data_item_displayed)
7371 (tui_delete_data_content_windows, tui_erase_data_content)
7372 (tui_display_all_data, tui_data_window::refresh_all)
7373 (tui_check_data_values): Update.
7374 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7375 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7376 (tui_win_info::backward_scroll, tui_refresh_all_win)
7377 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7378 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7379 (tui_source_window_base::set_new_height)
7380 (tui_data_window::set_new_height)
7381 (make_invisible_and_set_new_height)
7382 (make_visible_with_new_height, new_height_ok)
7383 (parse_scrolling_args): Update.
7384 * tui/tui-stack.c (tui_show_frame_info): Update.
7385 * tui/tui-source.c (tui_set_source_content)
7386 (tui_set_source_content_nil, tui_source_is_displayed)
7387 (tui_source_window::do_scroll_vertical): Update.
7388 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7389 (tui_display_registers_from, tui_display_reg_element_at_line)
7390 (tui_check_register_values, tui_reg_command): Update.
7391 * tui/tui-layout.c (tui_default_win_height)
7392 (show_source_disasm_command, show_data, init_and_make_win)
7393 (show_source_or_disasm_and_command): Update.
7394 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7395 (tui_redisplay_readline, tui_mld_flush)
7396 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7398 * tui/tui-disasm.c (tui_set_disassem_content)
7399 (tui_disasm_window::do_scroll_vertical): Update.
7400 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7402 (struct tui_win_info): Derive from tui_gen_win_info.
7403 <~tui_win_info>: Mark as override.
7404 <generic>: Remove member.
7405 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7406 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7407 (~tui_data_window, ~tui_win_info)
7408 (tui_free_all_source_wins_content): Update.
7409 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7411 2019-06-25 Tom Tromey <tom@tromey.com>
7413 * tui/tui-layout.c (init_and_make_win): Use new.
7414 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7415 destructor, initializers.
7416 (tui_alloc_generic_win_info): Don't declare.
7417 * tui/tui-data.c (_locator): Add argument to constructor.
7418 (source_win, disasm_win): New globals.
7419 (exec_info): Remove.
7420 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7422 (tui_alloc_generic_win_info): Remove.
7423 (init_content_element): Use new.
7424 (tui_win_info::tui_win_info): Update.
7425 (free_content_elements) <case DATA_WIN>: Use delete.
7427 2019-06-25 Tom Tromey <tom@tromey.com>
7429 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7430 * tui/tui-windata.c (tui_first_data_item_displayed)
7431 (tui_delete_data_content_windows): Update.
7432 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7433 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7434 (tui_display_registers_from, tui_check_register_values): Update.
7435 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7437 * tui/tui-data.c (init_content_element): Update. Allocate the new
7439 (tui_free_data_content): Update.
7440 (free_content_elements) <case DATA_WIN>: Free the window.
7442 2019-06-25 Tom Tromey <tom@tromey.com>
7444 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7446 * tui/tui-layout.c (make_command_window)
7447 (show_source_disasm_command, show_data, init_and_make_win)
7448 (show_source_or_disasm_and_command): Update.
7449 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7451 <can_highight, is_highlighted>: Now bool.
7452 (tui_set_win_highlight): Don't declare.
7453 * tui/tui-data.c (tui_set_win_highlight): Remove.
7455 2019-06-25 Tom Tromey <tom@tromey.com>
7457 * tui/tui-wingeneral.c (make_visible): Remove check of window
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7462 * tui/tui-win.c (tui_win_info::max_height)
7463 (tui_cmd_window::max_height): New methods.
7464 (new_height_ok): Call max_height.
7465 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7466 <max_height>: New method.
7468 2019-06-25 Tom Tromey <tom@tromey.com>
7470 * tui/tui-win.c (tui_source_window_base::set_new_height)
7471 (tui_data_window::set_new_height): New methods.
7472 (make_invisible_and_set_new_height): Call set_new_height method.
7473 * tui/tui-data.h (struct tui_win_info)
7474 (struct tui_source_window_base, struct tui_data_window)
7475 <set_new_height>: New method.
7477 2019-06-25 Tom Tromey <tom@tromey.com>
7479 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7480 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7481 tui_refresh_data_win.
7482 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7484 (tui_refresh_all_win): Call the refresh_all method.
7485 (tui_set_focus): Likewise.
7486 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7487 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7490 2019-06-25 Tom Tromey <tom@tromey.com>
7492 * tui/tui-winsource.h (tui_refill_source_window)
7493 (tui_set_is_exec_point_at): Don't declare.
7494 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7495 (tui_source_window_base::refill): Rename from
7496 tui_refill_source_window.
7497 (tui_source_window_base::do_scroll_horizontal): Update.
7498 (tui_source_window_base::set_is_exec_point_at): Rename from
7499 tui_set_is_exec_point_at.
7500 (tui_update_all_breakpoint_info): Update.
7501 * tui/tui-stack.c (tui_show_frame_info): Update.
7502 * tui/tui-layout.c (show_data): Add cast.
7503 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7504 * tui/tui-data.h (struct tui_source_window_base) <refill,
7505 set_is_exec_point_at>: New methods.
7506 (tui_source_windows, tui_add_to_source_windows): Update types.
7507 (tui_add_to_source_windows): Remove redundant declaration.
7508 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7509 (tui_source_windows): Change return type.
7510 (tui_clear_source_windows_detail): Update.
7511 (tui_add_to_source_windows): Change type of parameter.
7512 (tui_free_all_source_wins_content): Update.
7514 2019-06-25 Tom Tromey <tom@tromey.com>
7516 * tui/tui-wingeneral.c (tui_win_info::refresh)
7517 (tui_source_window_base::refresh): New methods.
7518 (tui_refresh_all): Call the refresh method.
7519 * tui/tui-data.h (struct tui_win_info)
7520 (struct tui_source_window_base) <refresh>: New method.
7522 2019-06-25 Tom Tromey <tom@tromey.com>
7524 * tui/tui.h (tui_is_window_visible): Return bool.
7525 * tui/tui.c (tui_is_window_visible): Return bool.
7526 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7527 (tui_make_visible, tui_make_invisible)
7528 (tui_win_info::make_visible)
7529 (tui_source_window_base::make_visible, make_all_visible)
7530 (tui_make_all_visible, tui_make_all_invisible): Update.
7531 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7532 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7534 (struct tui_win_info, struct tui_source_window_base)
7535 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7536 * tui/tui-data.c (tui_init_generic_part): Update.
7538 2019-06-25 Tom Tromey <tom@tromey.com>
7540 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7541 (tui_source_window_base::make_visible): New methods.
7542 (make_all_visible): Make method call.
7543 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7544 (struct tui_source_window_base, struct tui_cmd_window): Override
7546 (tui_win_is_source_type): Don't declare.
7547 * tui/tui-data.c (tui_win_is_source_type): Remove.
7549 2019-06-25 Tom Tromey <tom@tromey.com>
7551 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7554 2019-06-25 Tom Tromey <tom@tromey.com>
7556 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7557 Inline constructor. Add initializers for members.
7558 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7559 constructors; now inline in class.
7561 2019-06-25 Tom Tromey <tom@tromey.com>
7563 * tui/tui-regs.c (tui_show_registers): Update.
7564 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7566 * tui/tui-data.c (tui_data_window::clear_detail)
7567 (tui_data_window): Update.
7569 2019-06-25 Tom Tromey <tom@tromey.com>
7571 * tui/tui-windata.c (tui_display_all_data)
7572 (tui_display_data_from_line, tui_display_data_from)
7573 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7575 * tui/tui-regs.c (tui_last_regs_line_no)
7576 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7577 (tui_show_registers, tui_show_register_group)
7578 (tui_display_registers_from, tui_display_reg_element_at_line)
7579 (tui_display_registers_from_line, tui_check_register_values)
7580 (tui_reg_next, tui_reg_prev): Update.
7581 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7582 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7584 (struct tui_win_info) <detail>: Remove. Add new fields from
7586 (TUI_DATA_WIN): Add cast.
7587 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7588 (~tui_data_window): Simplify.
7590 2019-06-25 Tom Tromey <tom@tromey.com>
7592 * tui/tui-layout.c (show_source_disasm_command)
7593 (show_source_or_disasm_and_command): Update.
7594 * tui/tui-io.c (update_cmdwin_start_line)
7595 (tui_redisplay_readline): Update.
7596 * tui/tui-data.h (struct tui_command_info): Remove.
7597 (struct tui_win_info) <detail>: Remove command_info member.
7598 (struct tui_data_window) <start_line>: New member, from
7600 (TUI_CMD_WIN): Add casts.
7602 2019-06-25 Tom Tromey <tom@tromey.com>
7604 * tui/tui-winsource.c (tui_update_source_window)
7605 (tui_refill_source_window)
7606 (tui_source_window_base::do_scroll_horizontal)
7607 (tui_update_breakpoint_info, tui_set_exec_info_content)
7608 (tui_show_exec_info_content, tui_erase_exec_info_content)
7609 (tui_clear_exec_info_content): Update.
7610 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7612 * tui/tui-win.c (make_invisible_and_set_new_height)
7613 (make_visible_with_new_height): Update.
7614 * tui/tui-source.c (tui_set_source_content)
7615 (tui_show_symtab_source): Update.
7616 * tui/tui-layout.c (extract_display_start_addr)
7617 (show_source_disasm_command, show_data)
7618 (make_source_or_disasm_window)
7619 (show_source_or_disasm_and_command): Update.
7620 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7621 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7623 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7624 to tui_source_window_base.
7625 (struct tui_win_info) <detail>: Remove source_info member.
7626 (struct tui_source_window_base) <has_locator>: Inline.
7627 Move contents from tui_source_info; rename has_locator member to
7629 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7630 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7632 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7634 (tui_free_all_source_wins_content): Cast to
7635 tui_source_window_base.
7637 2019-06-25 Tom Tromey <tom@tromey.com>
7639 * tui/tui-win.c (make_invisible_and_set_new_height)
7640 (make_visible_with_new_height): Call has_locator method.
7641 * tui/tui-layout.c (show_source_disasm_command, show_data)
7642 (show_source_or_disasm_and_command): Update for bool change.
7643 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7644 (tui_win_info) <has_locator>: New method.
7645 (struct tui_source_window_base) <has_locator>: New method.
7646 (tui_win_has_locator): Don't declare.
7647 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7648 from tui_win_has_locator.
7649 (tui_source_window_base): Use false, not FALSE.
7651 2019-06-25 Tom Tromey <tom@tromey.com>
7653 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7654 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7655 clear_detail method directly.
7656 (tui_clear_win_detail): Remove.
7658 2019-06-25 Tom Tromey <tom@tromey.com>
7660 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7661 "this", not TUI_DISASM_WIN.
7663 2019-06-25 Tom Tromey <tom@tromey.com>
7665 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7667 * tui/tui-winsource.c
7668 (tui_source_window_base::do_scroll_horizontal): Rename from
7669 tui_horizontal_source_scroll.
7670 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7671 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7672 from tui_vertical_data_scroll.
7673 * tui/tui-win.h (tui_scroll): Don't declare.
7674 * tui/tui-win.c (tui_win_info::forward_scroll)
7675 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7676 (tui_win_info::right_scroll): Rename and update.
7677 (tui_scroll_forward_command, tui_scroll_backward_command)
7678 (tui_scroll_left_command, tui_scroll_right_command): Update.
7679 (tui_scroll): Remove.
7680 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7681 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7682 from tui_vertical_source_scroll.
7683 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7684 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7685 from tui_vertical_disassem_scroll.
7686 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7687 do_scroll_horizontal>: New methods.
7688 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7690 (struct tui_source_window_base): Add do_scroll_horizontal.
7691 (struct tui_source_window, struct tui_disasm_window): Add
7693 (struct tui_data_window, struct tui_cmd_window): Add
7694 do_scroll_horizontal and do_scroll_vertical.
7695 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7697 2019-06-25 Tom Tromey <tom@tromey.com>
7699 * tui/tui-data.h (struct tui_source_window_base): New struct.
7700 (struct tui_source_window): Derive from tui_source_window_base.
7701 (struct tui_disasm_window): New struct.
7702 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7703 from tui_source_window::clear_detail.
7704 (tui_source_window_base): Rename from tui_source_window.
7705 (~tui_source_window_base): Rename from ~tui_source_window.
7706 (tui_alloc_win_info): Create a tui_disasm_window.
7708 2019-06-25 Tom Tromey <tom@tromey.com>
7710 * tui/tui-data.h (struct tui_source_window)
7711 (struct tui_data_window): Declare destructors.
7712 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7714 (tui_win_info): Simplify.
7716 2019-06-25 Tom Tromey <tom@tromey.com>
7718 * tui/tui-winsource.c (tui_display_main)
7719 (tui_update_source_windows_with_addr)
7720 (tui_update_all_breakpoint_info): Update.
7721 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7722 (new_height_ok, parse_scrolling_args): Update.
7723 * tui/tui-stack.c (tui_show_frame_info): Update.
7724 * tui/tui-data.h (struct tui_list): Remove.
7725 (tui_source_windows): Return a reference to a std::vector.
7726 * tui/tui-data.c (source_windows): Now a std::vector.
7727 (tui_source_windows): Change return type.
7728 (tui_clear_source_windows): Rewrite.
7729 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7730 (tui_free_all_source_wins_content): Rewrite.
7732 2019-06-25 Tom Tromey <tom@tromey.com>
7734 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7735 (struct tui_data_window, struct tui_cmd_window): Declare
7736 clear_detail method.
7737 * tui/tui-data.c (tui_source_window::clear_detail)
7738 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7740 (tui_clear_win_detail): Simplify.
7742 2019-06-25 Tom Tromey <tom@tromey.com>
7744 * tui/tui-layout.c (make_source_window, make_disasm_window)
7745 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7746 Return the new window.
7747 (show_source_disasm_command, show_data)
7748 (show_source_or_disasm_and_command): Update.
7750 2019-06-25 Tom Tromey <tom@tromey.com>
7752 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7753 parameter. Return the new window.
7754 (show_source_disasm_command): Update and remove NULL check.
7755 (show_source_or_disasm_and_command): Update.
7757 2019-06-25 Tom Tromey <tom@tromey.com>
7759 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7761 2019-06-25 Tom Tromey <tom@tromey.com>
7763 * tui/tui-data.h (struct tui_win_info): Make constructor
7764 protected. Make destructor virtual. Add initializers.
7765 (tui_source_window, tui_data_window, tui_cmd_window): New
7767 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7768 constructor. Add "type" parameter.
7769 (tui_source_window, tui_data_window, tui_cmd_window): New
7771 (tui_alloc_win_info): Instantiate the appropriate subclass.
7773 2019-06-25 Tom Tromey <tom@tromey.com>
7775 * tui/tui-win.c (tui_resize_all): Use delete.
7776 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7778 (tui_free_window): Don't declare.
7779 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7782 2019-06-25 Tom Tromey <tom@tromey.com>
7784 * tui/tui-data.h (struct tui_win_info): Add constructor.
7785 * tui/tui-data.c (tui_alloc_win_info): Use new.
7786 (tui_free_window): Use delete.
7788 2019-06-22 Tom Tromey <tom@tromey.com>
7790 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7792 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7794 2019-06-22 Tom Tromey <tom@tromey.com>
7796 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7798 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7800 2019-06-22 Tom de Vries <tdevries@suse.de>
7802 * dwarf2read.c (create_addrmap_from_aranges)
7803 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7806 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7808 * dwarf2read.h (dwarf2_section_info_def): Remove.
7809 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7810 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7811 std::vector<dwarf2_section_info>.
7812 (struct dwo_file) <~dwo_file>: Remove.
7813 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7815 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7816 (dwarf2_read_debug_names): Likewise.
7817 (create_debug_types_hash_table): Change parameter type to
7818 array_view, adjust code accordingly.
7819 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7820 (partial_die_info::fixup): Likewise.
7821 (determine_prefix): Likewise.
7822 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7824 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7826 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7828 <~dwo_file>: Remove call to gdb_bfd_unref.
7829 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7830 gdb_bfd_ref_ptr::get.
7832 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7834 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7836 * dwarf2read.c (struct dwo_file): Initialize fields.
7838 (free_dwo_file): Remove, move content to ~dwo_file.
7839 (struct dwo_file_deleter): Remove.
7840 (dwo_file_up>: Remove custom deleter.
7841 (free_dwo_files): Remove.
7842 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7844 (process_skeletonless_type_units): Call unique_ptr::get.
7845 (allocate_dwo_file_hash_table): Add deleter to created hash
7846 table. Change return type to htab_up.
7847 (lookup_dwo_file_slot): Don't memset dwo_file, call
7849 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7850 (create_dwo_unit_in_dwp_v2): Likewise.
7851 (open_and_init_dwo_file): Likewise.
7852 (free_dwo_file_from_slot): Remove.
7854 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7856 * dwarf2read.h (struct dwarf2_section_info) <readin,
7857 is_virtual>: Change type to bool.
7858 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7861 2019-06-19 Tom Tromey <tom@tromey.com>
7863 * tui/tui-data.h (tui_init_content_element): Don't declare.
7865 2019-06-19 Tom Tromey <tom@tromey.com>
7867 * tui/tui-data.h (tui_init_win_info): Don't declare.
7869 2019-06-19 Tom de Vries <tdevries@suse.de>
7871 * dwarf2read.h (abstract_to_concrete): Change type to
7872 std::unordered_map<sect_offset, std::vector<sect_offset>,
7873 gdb::hash_enum<sect_offset>>.
7875 2019-06-19 Tom Tromey <tromey@adacore.com>
7877 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7878 EVAL_AVOID_SIDE_EFFECTS specially.
7880 2019-06-19 Tom Tromey <tromey@adacore.com>
7882 * source-cache.c (highlighter): New global.
7883 (source_cache::get_source_lines): Create a highlighter on demand.
7885 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7887 * defs.h (deprecated_interactive_hook): Delete declaration.
7888 * interps.c (clear_interpreter_hooks): Remove use of
7889 deprecated_interactive_hook.
7890 * top.c (deprecated_interactive_hook): Delete definition.
7891 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7893 2019-06-18 Tom de Vries <tdevries@suse.de>
7896 * dwarf2read.h (abstract_to_concrete): Change type from
7897 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7898 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7899 * dwarf2read.c (read_variable): Update.
7900 (dwarf2_fetch_die_loc_sect_off): Update.
7902 2019-06-17 Tom de Vries <tdevries@suse.de>
7905 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7906 accessing parent[parent_len - 1].
7908 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7911 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7912 call dtrace_process_dof with NULL dof.
7914 2019-06-16 Tom de Vries <tdevries@suse.de>
7917 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7919 2019-06-16 Tom Tromey <tom@tromey.com>
7921 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7922 (make_all_visible): Use address of member.
7924 2019-06-16 Tom Tromey <tom@tromey.com>
7926 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7927 (tui_free_window, free_content, free_content_elements): Remove
7929 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7931 * tui/tui-regs.c (tui_show_register_group)
7932 (tui_display_registers_from, tui_display_reg_element_at_line):
7933 Remove unnecessary cast.
7935 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7937 * linux-nat.c (normal_mask): Delete.
7938 (_initialize_linux_nat): Don't initialise normal_mask.
7940 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7943 * dwarf-index-write.h (write_psymtabs_to_index): Add
7944 dwz_basename parameter.
7945 * dwarf-index-write.c (write_gdbindex): Move file writing to
7946 write_gdbindex_1. Change return type void.
7947 (assert_file_size): Move up, remove filename parameter.
7948 (write_gdbindex_1): New function.
7949 (write_debug_names): Change return type to void, call
7951 (struct index_wip_file): New struct.
7952 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7953 file logic to index_wip_file. Write index for dwz file if
7955 (save_gdb_index_command): Pass basename of dwz file, if present.
7956 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7957 build-id of dwz file, if present.
7958 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7959 (dwarf2_get_dwz_file): Likewise.
7960 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7961 (dwarf2_get_dwz_file): Likewise.
7963 2019-06-16 Tom Tromey <tom@tromey.com>
7965 * coffread.c (process_coff_symbol): Use xstrdup.
7966 * value.c (create_internalvar): Use xstrdup.
7968 2019-06-16 Tom Tromey <tom@tromey.com>
7970 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7971 * breakpoint.c (stopin_command, stopat_command)
7972 (until_break_command, decode_location_default): Remove unnecessary
7974 * utils.c (subset_compare): Remove unnecessary cast.
7975 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7977 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7979 * infcmd.c (path_command): Remove unnecessary cast.
7980 * coffread.c (decode_type): Remove unnecessary cast.
7981 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7982 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7983 * tui/tui-stack.c (tui_show_locator_content)
7984 (tui_show_frame_info): Remove unnecessary cast.
7985 * tui/tui-win.c (tui_scroll_forward_command)
7986 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7987 (parse_scrolling_args): Remove unnecessary cast.
7988 * tui/tui-data.c (init_win_info, tui_del_window)
7989 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7990 (free_content_elements): Remove unnecessary cast.
7991 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7993 * tui/tui-source.c (tui_set_source_content)
7994 (tui_vertical_source_scroll): Remove unnecessary cast.
7995 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7997 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7998 * tui/tui-regs.c (tui_display_registers_from)
7999 (tui_display_register): Remove unnecessary cast.
8000 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8001 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8002 (make_visible): Remove unnecessary cast.
8003 * tui/tui-winsource.c (tui_erase_source_content)
8004 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8006 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8007 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8008 * stabsread.c (read_type, read_array_type, read_range_type):
8009 Remove unnecessary cast.
8010 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8011 (parse_symbol, parse_type, upgrade_type, parse_external)
8012 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8014 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8016 2019-06-16 Tom Tromey <tom@tromey.com>
8018 * tui/tui-data.c (tui_alloc_generic_win_info)
8019 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8022 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8023 Andrew Burgess <andrew.burgess@embecosm.com>
8025 * f-typeprint.c (f_print_type): Don't return early for not
8026 associated or not allocated types.
8027 (f_type_print_varspec_suffix): Add print_rank parameter and print
8028 ranks of array types in case they dangling.
8029 (f_type_print_base): Add print_rank parameter.
8031 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8033 * NEWS: Mention new MI commands.
8034 * break-catch-throw.c (enum exception_event_kind): Move to
8036 (print_mention_exception_catchpoint): Output text as a single
8038 (catch_exception_command_1): Rename to...
8039 (catch_exception_event): ...this, make non-static, update header
8040 command, and change some parameter types.
8041 (catch_catch_command): Update for changes to
8042 catch_exception_command_1.
8043 (catch_throw_command): Likewise.
8044 (catch_rethrow_command): Likewise.
8045 * breakpoint.c (enum exception_event_kind): Delete.
8046 * breakpoint.h (enum exception_event_kind): Moved here from
8047 break-catch-throw.c.
8048 (catch_exception_event): Declare.
8049 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8050 (mi_cmd_catch_throw): New function.
8051 (mi_cmd_catch_rethrow): New function.
8052 (mi_cmd_catch_catch): New function.
8053 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8054 'catch-catch' entries.
8055 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8056 (mi_cmd_catch_rethrow): Declare.
8057 (mi_cmd_catch_catch): Declare.
8059 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8061 * annotate.c (annotate_source_line): Change return type to void,
8062 update implementation to match.
8063 * annotate.h (annotate_source_line): Change return type to void,
8064 update header comment.
8065 * stack.c (print_frame_info): Don't change what frame information
8066 is printed based on whether annotations are on or not.
8068 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8070 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8071 (annotate_source): Make static.
8072 (annotate_source_line): Moved from source.c and renamed from
8073 identify_source_line. Update the return type.
8074 * annotate.h (annotate_source): Delete declaration.
8075 (annotate_source_line): Declaration moved from source.h, and
8076 renamed from identify_source_line. Return type updated.
8077 * source.c (identify_source_line): Moved to annotate.c and renamed
8078 to annotate_source_line.
8079 (info_line_command): Remove check of annotation_level.
8080 * source.h (identify_source_line): Move declaration to annotate.h
8081 and rename to annotate_source_line.
8082 * stack.c: Add 'annotate.h' include.
8083 (print_frame_info): Remove check of annotation_level before
8084 calling annotate_source_line.
8086 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8088 * source-cache.c (source_cache::get_plain_source_lines): Use
8089 open_source_file_with_line_charpos instead of just
8090 open_source_file, remove call to find_source_lines.
8091 (source_cache::get_source_lines): Likewise.
8092 * source.c (find_source_lines): Make static.
8093 (get_filename_and_charpos): Renamed into...
8094 (open_source_file_with_line_charpos): ..this along with changes to
8095 return a scoped_fd, and some other minor clean ups.
8096 (identify_source_line): Use open_source_file_with_line_charpos.
8097 (search_command_helper): Use open_source_file_with_line_charpos
8098 instead of just open_source_file, remove call to
8100 * source.h (open_source_file_with_line_charpos): Declare new
8102 (find_source_lines): Delete declaration.
8104 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8106 * source.c (get_filename_and_charpos): Remove fullname
8108 (identify_source_line): Update call to get_filename_and_charpos.
8110 2019-06-14 Tom Tromey <tromey@adacore.com>
8113 * ui-style.h (skip_ansi_escape): Update comment.
8114 * ui-file.h (class no_terminal_escape_file): New class.
8115 * ui-file.c (no_terminal_escape_file::write)
8116 (no_terminal_escape_file::puts): New methods.
8117 * cli/cli-logging.c (handle_redirections): Use
8118 no_terminal_escape_file.
8120 2019-06-14 Tom Tromey <tromey@adacore.com>
8122 * NEWS: Move convenience variable news above Python news.
8124 2019-06-14 Tom Tromey <tom@tromey.com>
8126 * gnulib: Move directory to top-level.
8127 * configure.ac: Don't configure gnulib.
8128 * configure: Rebuild.
8129 * common/common-defs.h: Use new path to gnulib.
8130 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8132 (INCGNU): Look in new gnulib location.
8133 (HFILES_NO_SRCDIR): Remove gnulib files.
8134 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8135 (generated_files): Remove GNULIB_H.
8136 ($(LIBGNU), all-lib): Remove targets.
8137 (distclean): Don't mention GNULIB_BUILDDIR.
8138 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8140 2019-06-14 Tom Tromey <tromey@adacore.com>
8142 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8143 Warn if symbol file does not provide any symbols.
8145 2019-06-14 Tom Tromey <tromey@adacore.com>
8147 * source.c (find_and_open_source): Respect basenames_may_differ.
8149 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8151 * annotate.c (annotate_breakpoints_invalid): Make use of
8152 scoped_restore_terminal_state.
8153 (annotate_frames_invalid): Likewise.
8155 2019-06-14 Tom Tromey <tromey@adacore.com>
8157 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8158 allow assignment to an internalvar.
8160 2019-06-14 Tom Tromey <tromey@adacore.com>
8162 * ada-lex.l: Allow "_" in attribute names.
8164 2019-06-14 Tom Tromey <tromey@adacore.com>
8167 * regcache.c (registers_changed): Don't call alloca.
8168 * top.c (execute_command): Don't call alloca.
8170 2019-06-13 Pedro Alves <palves@redhat.com>
8172 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8173 'expression'. When parsing an expression, error out if there's
8174 junk after "unlimited".
8175 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8176 (do_set_command): Adjust calls to is_unlimited_literal.
8178 2019-06-13 Pedro Alves <palves@redhat.com>
8180 * compile/compile.c (make_compile_options_def_group): Add braces
8181 around array_view initializer.
8182 * thread.c (make_thread_apply_all_options_def_group)
8183 (make_thread_apply_all_options_def_group): Likewise.
8185 2019-06-13 Pedro Alves <palves@redhat.com>
8187 * NEWS (New commands): Mention "maint test-options
8188 require-delimiter", "maint test-options unknown-is-error", "maint
8189 test-options unknown-is-operand" and "maint show
8190 test-options-completion-result".
8191 (New command options, command completion): New section.
8192 (Completion improvements): New section.
8193 Mention that you can abbreviate "unlimited".
8195 2019-06-13 Pedro Alves <palves@redhat.com>
8197 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8198 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8199 * unittests/cli-utils-selftests.c (test_parse_flags)
8200 (test_parse_flags_qcs): Delete.
8201 (test_cli_utils): Don't call deleted functions.
8203 2019-06-13 Pedro Alves <palves@redhat.com>
8205 * thread.c: Include "cli/cli-option.h".
8206 (tp_array_compar_ascending): Global.
8207 (tp_array_compar): Delete function.
8208 (tp_array_compar_ascending, tp_array_compar_descending): New
8210 (ascending_option_def, qcs_flag_option_def)
8211 (thr_qcs_flags_option_defs)
8212 (make_thread_apply_all_options_def_group)
8213 (make_thread_apply_options_def_group): New.
8214 (thread_apply_all_command): Use gdb::option::process_options.
8215 (thread_apply_command_completer)
8216 (thread_apply_all_command_completer): New.
8217 (thread_apply_command): Use gdb::option::process_options.
8218 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8219 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8220 to generate help text of "thread apply". Adjust "taas"'s help.
8221 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8222 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8224 2019-06-13 Pedro Alves <palves@redhat.com>
8226 * thread.c (thread_apply_command): Check for invalid TID with
8227 isdigit instead of !isalpha.
8229 2019-06-13 Pedro Alves <palves@redhat.com>
8231 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8232 (validate_flags_qcs): New.
8233 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8234 (validate_flags_qcs): Declare.
8235 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8236 (make_frame_apply_options_def_group): New.
8237 (frame_apply_command_count): Process options with
8238 gdb::option::process_options.
8239 (frame_apply_completer): New.
8240 (frame_apply_level_completer, frame_apply_all_completer)
8241 (frame_apply_completer): New.
8242 (_initialize_stack): Update help of "frame apply", "frame apply
8243 level", "frame apply all" and "faas" to mention supported options
8244 and install command completers.
8245 * stack.h (frame_apply_all_completer): Declare.
8246 * thread.c: Include "stack.h".
8247 (tfaas_command): Add "--".
8248 (_initialize_thread): Update help "tfaas" to mention supported
8249 options and install command completer.
8251 2019-06-13 Pedro Alves <palves@redhat.com>
8253 * completer.c (complete_nested_command_line): New.
8254 (gdb_completion_word_break_characters_throw): Add assertion.
8255 * completer.h (complete_nested_command_line): Declare.
8257 2019-06-13 Pedro Alves <palves@redhat.com>
8259 * stack.c (parse_backtrace_qualifiers): New.
8260 (backtrace_command): Use it.
8261 (backtrace_command_completer): Complete on qualifiers.
8263 2019-06-13 Pedro Alves <palves@redhat.com>
8265 * frame.c: Include "cli/cli-option.h.
8266 (user_set_backtrace_options): New.
8267 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8269 (get_prev_frame): Adjust.
8270 (boolean_option_def, uinteger_option_def)
8271 (set_backtrace_option_defs): New.
8272 (_initialize_frame): Adjust and use
8273 gdb::option::add_setshow_cmds_for_options to install "set
8274 backtrace past-main" and "set backtrace past-entry".
8275 * frame.h: Include "cli/cli-option.h".
8276 (struct frame_print_options): Forward declare.
8277 (print_frame_arguments_all, print_frame_arguments_scalars)
8278 (print_frame_arguments_none): Declare.
8279 (print_entry_values): Delete declaration.
8280 (struct frame_print_options, user_frame_print_options): New.
8281 (struct set_backtrace_options): New.
8282 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8283 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8284 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8285 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8286 (list_args_or_locals): Add frame_print_options parameter.
8287 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8288 * python/py-framefilter.c (enumerate_args): Pass down
8289 USER_FRAME_PRINT_OPTIONS.
8290 * stack.c: Include "cli/cli-option.h".
8291 (print_frame_arguments_all, print_frame_arguments_scalars)
8292 (print_frame_arguments_none): Declare.
8293 (print_raw_frame_arguments, print_entry_values): Delete.
8294 (user_frame_print_options): New.
8295 (boolean_option_def, enum_option_def, frame_print_option_defs):
8297 (struct backtrace_cmd_options): New.
8298 (bt_flag_option_def): New.
8299 (backtrace_command_option_defs): New.
8300 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8301 (print_frame_arg, read_frame_arg, print_frame_args)
8302 (print_frame_info, print_frame): Add frame_print_options parameter
8304 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8305 (backtrace_command_1): Add frame_print_options and
8306 backtrace_cmd_options parameters and use them.
8307 (make_backtrace_options_def_group): New.
8308 (backtrace_command): Process command options with
8309 gdb::option::process_options.
8310 (backtrace_command_completer): New.
8311 (_initialize_stack): Extend "backtrace"'s help to mention
8312 supported options. Install completer for "backtrace".
8313 Install some settings commands with add_setshow_cmds_for_options.
8315 2019-06-13 Pedro Alves <palves@redhat.com>
8317 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8318 and that "set/show print raw frame-arguments" are now deprecated.
8320 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8322 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8323 * stack.c (_initialize_stack): Install "set/show print
8324 raw-frame-arguments", and deprecate "set/show print raw
8326 * valprint.c (_initialize_valprint): Deprecate "set/show print
8329 2019-06-13 Pedro Alves <palves@redhat.com>
8331 * compile/compile.c (struct compile_options): New.
8332 (compile_flag_option_def, compile_command_option_defs)
8333 (make_compile_options_def_group): New.
8334 (compile_file_command): Handle options with
8335 gdb::option::process_options.
8336 (compile_file_command_completer): New function.
8337 (compile_code_command): Handle options with
8338 gdb::option::process_options.
8339 (compile_code_command_completer): New function.
8340 (_initialize_compiler): Install completers for "compile code" and
8341 "compile file". Mention available options in "compile code" and
8342 "compile code"'s help.
8343 * completer.c (advance_to_completion_word): New, factored out from
8345 (advance_to_expression_complete_word_point): ... this.
8346 (advance_to_filename_complete_word_point): New.
8347 * completer.h (advance_to_filename_complete_word_point): New
8350 2019-06-13 Pedro Alves <palves@redhat.com>
8352 * compile/compile.c: Include "cli/cli-option.h".
8353 (compile_print_value): Scope data pointer is now a
8354 value_print_options pointer; adjust.
8355 (compile_print_command): Process options. Scope data pointer is
8356 now a value_print_options pointer; adjust.
8357 (_initialize_compile): Update "compile print"'s help to include
8358 supported options. Install a completer for "compile print".
8359 * cp-valprint.c (show_vtblprint, show_objectprint)
8360 (show_static_field_print): Delete.
8361 (_initialize_cp_valprint): Don't install "set print
8362 static-members", "set print vtbl", "set print object" here.
8363 * printcmd.c: Include "cli/cli-option.h" and
8364 "common/gdb_optional.h".
8365 (print_command_parse_format): Rework to fill in a
8366 value_print_options instead of a format_data.
8367 (print_value): Change parameter type from format_data pointer to
8368 value_print_options reference. Adjust.
8369 (print_command_1): Process options. Adjust to pass down a
8370 value_print_options.
8371 (print_command_completer): New.
8372 (_initialize_printcmd): Install print_command_completer as
8373 handle_brkchars completer for the "print" command. Update
8374 "print"'s help to include supported options.
8375 * valprint.c: Include "cli/cli-option.h".
8376 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8377 here from cp-valprint.c.
8378 (boolean_option_def, uinteger_option_def)
8379 (value_print_option_defs, make_value_print_options_def_group):
8380 New. Use gdb::option::add_setshow_cmds_for_options to install
8381 "set print elements", "set print null-stop", "set print repeats",
8382 "set print pretty", "set print union", "set print array", "set
8383 print address", "set print symbol", "set print array-indexes".
8384 * valprint.h: Include <string> and "cli/cli-option.h".
8385 (make_value_print_options_def_group): Declare.
8386 (print_value): Change parameter type from format_data pointer to
8387 value_print_options reference.
8388 (print_command_completer): Declare.
8390 2019-06-13 Pedro Alves <palves@redhat.com>
8392 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8393 (COMMON_SFILES): Add maint-test-settings.c.
8394 * cli/cli-decode.c (boolean_enums): New global, factored out from
8396 (add_setshow_boolean_cmd): ... here.
8397 * cli/cli-decode.h (boolean_enums): Declare.
8398 * cli/cli-option.c: New file.
8399 * cli/cli-option.h: New file.
8400 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8401 factored out from ...
8402 (parse_cli_boolean_value(const char *)): ... this.
8403 (is_unlimited_literal): Change parameter type to pointer to
8404 pointer. Adjust and advance ARG pointer.
8405 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8406 (parse_cli_var_enum): New, factored out from ...
8407 (do_set_command): ... this. Adjust.
8408 * cli/cli-setshow.h (parse_cli_boolean_value)
8409 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8410 (parse_cli_var_enum): Declare.
8411 * cli/cli-utils.c: Include "cli/cli-option.h".
8412 (get_ulongest): New.
8413 * cli/cli-utils.h (get_ulongest): Declare.
8414 (check_for_argument): New overloads.
8415 * maint-test-options.c: New file.
8417 2019-06-13 Pedro Alves <palves@redhat.com>
8419 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8420 parse a range if "-" is at the end of the string.
8422 2019-06-13 Pedro Alves <palves@redhat.com>
8424 * cli/cli-setshow.c (parse_auto_binary_operation)
8425 (parse_cli_boolean_value): Don't allow "o".
8427 2019-06-13 Pedro Alves <palves@redhat.com>
8429 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8430 * NEWS: Mention maint test-settings KIND.
8431 * maint-test-settings.c: New file.
8433 2019-06-13 Pedro Alves <palves@redhat.com>
8435 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8437 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8440 2019-06-13 Pedro Alves <palves@redhat.com>
8442 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8445 2019-06-13 Pedro Alves <palves@redhat.com>
8447 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8449 2019-06-13 Pedro Alves <palves@redhat.com>
8451 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8452 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8454 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8455 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8457 (check_for_argument): Skip spaces after argument.
8459 2019-06-13 Pedro Alves <palves@redhat.com>
8461 * thread.c (thread_apply_command): Adjust TID parsing.
8462 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8463 detected before end of string.
8464 (tid_is_in_list): Error out if LIST is invalid.
8466 2019-06-13 Pedro Alves <palves@redhat.com>
8468 * completer.c (complete_line_internal_1): Rewind completion word
8470 (completion_tracker::advance_custom_word_point_by): Change
8471 parameter type to int.
8472 * completer.h (completion_tracker::advance_custom_word_point_by):
8475 2019-06-13 Pedro Alves <palves@redhat.com>
8477 * completer.c (advance_to_completion_word): Handle delimiters.
8479 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8481 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8483 2019-06-11 Tom Tromey <tom@tromey.com>
8485 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8486 (xmalloc_failed): Move to alloc.c.
8487 * alloc.c: New file.
8488 * Makefile.in (COMMON_SFILES): Add alloc.c.
8490 2019-06-11 Tom Tromey <tom@tromey.com>
8492 * nat/linux-waitpid.c: Don't include server.h.
8493 (linux_debug): Remove.
8494 (my_waitpid): Update.
8496 2019-06-11 Tom Tromey <tromey@adacore.com>
8498 * infcall.c (_initialize_infcall): Remove trailing newline from
8500 * user-regs.c (_initialize_user_regs): Remove trailing newline
8502 * typeprint.c (_initialize_typeprint): Remove trailing newline
8504 * reverse.c (_initialize_reverse): Remove trailing newlines from
8506 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8508 * language.c (add_set_language_command): Remove trailing newline
8510 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8512 * disasm.c (_initialize_disasm): Remove trailing newline from
8514 * top.c (init_main): Remove trailing newline from help.
8515 * interps.c (_initialize_interpreter): Remove trailing newline
8517 * btrace.c (_initialize_btrace): Remove trailing newlines from
8519 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8521 * python/python.c (_initialize_python): Remove trailing newline
8523 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8525 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8526 from help. Reformat some text.
8527 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8529 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8532 2019-06-11 Tom Tromey <tromey@adacore.com>
8534 * darwin-nat.c (darwin_decode_exception_message)
8535 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8537 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8539 * valops.c (value_slice): Check for not allocated or not
8542 2019-06-10 Tom de Vries <tdevries@suse.de>
8545 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8546 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8549 2019-06-10 Tom de Vries <tdevries@suse.de>
8552 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8553 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8555 2019-06-10 Tom de Vries <tdevries@suse.de>
8558 * symtab.c (struct demangled_name_entry): Add language field.
8559 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8560 static minimal symbol". Set and use language field.
8562 2019-06-10 Tom Tromey <tromey@adacore.com>
8564 * ada-lang.c (_initialize_ada_language): Update help text.
8566 2019-06-10 Tom Tromey <tromey@adacore.com>
8568 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8570 * guile/guile.c (handle_boot_error): Don't end warning with a
8572 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8573 warning with a newline.
8574 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8576 (s12z_frame_cache): Likewise.
8577 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8579 * solib-svr4.c (disable_probes_interface): Don't end warning with
8581 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8583 * python/python.c (do_finish_initialization): Don't end warning
8586 2019-06-10 Tom Tromey <tom@tromey.com>
8588 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8589 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8592 2019-06-10 Tom Tromey <tromey@adacore.com>
8594 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8596 (elf_new_init): Don't call stabsread_new_init.
8597 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8598 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8599 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8601 2019-06-10 Tom de Vries <tdevries@suse.de>
8605 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8607 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8609 * source.c (find_and_open_source): Also rewrite relative file
8612 2019-04-26 Amos Bird <amosbird@gmail.com>
8614 * annotate.c (annotate_thread_exited): Add "thread-exited"
8617 2019-06-06 Tom Tromey <tromey@adacore.com>
8619 * maint.h (class scoped_command_stats): Use
8620 DISABLE_COPY_AND_ASSIGN.
8621 <print_time>: New method.
8622 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8624 (scoped_command_stats::print_time): New method.
8626 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8628 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8629 instructions of lengths 6 or 8 bytes.
8631 2019-06-04 Pedro Alves <palves@redhat.com>
8633 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8635 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8636 * breakpoint.c (condition_completer): Likewise.
8637 * cli/cli-dump.c (scan_expression): Likewise.
8638 * common/filestuff.c (mkdir_recursive): Likewise.
8639 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8640 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8641 (gdb_abspath): Likewise.
8642 * compile/compile-cplus-types.c
8643 (compile_cplus_instance::decl_name): Likewise.
8644 * completer.c (complete_explicit_location):
8645 (signal_completer, reg_or_group_completer_1): Likewise.
8646 * cp-support.c (cp_remove_params_if_any): Likewise.
8647 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8648 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8649 * infcmd.c (strip_bg_char): Likewise.
8650 * linespec.c (copy_token_string): Likewise.
8651 * mi/mi-main.c (output_cores): Likewise.
8652 * psymtab.c (psymtab_search_name):
8653 * symfile.c (test_set_ext_lang_command): Likewise.
8654 * target.c (target_fileio_read_stralloc): Likewise.
8655 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8656 * value.c (complete_internalvar): Likewise.
8658 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8660 Add objfile property to gdb.Type.
8661 * NEWS: Mention Python API addition.
8662 * python/py-type.c (typy_get_objfile): New method.
8664 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8666 * NEWS: Mention the new set|show style [title|highlight].
8667 Mention changes to "show style", "help" and "apropos".
8669 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8671 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8672 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8673 instead of print_help_for_command.
8674 (print_doc_of_command): New function.
8675 (help_list): Add 'apropos -v word' suggestion.
8676 (print_help_for_command): Style the command name using title style.
8677 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8678 (_initialize_cli_cmds): Describe -v in apropos_command help.
8680 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8682 * cli/cli-style.h (cli_style_option): Add name in constructor,
8683 add m_name class member, add constructor with intensity,
8684 add name class function.
8685 (cli_style_option::add_setshow_commands): Remove name argument.
8686 (highlight_style, title_style): New styles.
8687 * cli/cli-style.c (do_show): New function that shows a style
8688 characteristic styling the style name with itself.
8689 (set_style_name): New function.
8690 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8691 Update all callers according to the changes in cli/cli-style.h.
8692 * utils.h (fputs_highlighted): New function.
8693 * utils.c (fputs_highlighted): Likewise.
8695 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8697 * NEWS: Mention new pipe command and new convenience variables.
8699 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8701 * cli/cli-cmds.c (pipe_command): New function.
8702 (_initialize_cli_cmds): Call add_com for pipe_command.
8703 Define | as an alias for pipe.
8704 (exit_status_set_internal_vars): New function.
8705 (shell_escape): Call exit_status_set_internal_vars.
8706 cli/cli-decode.c (find_command_name_length): Recognize | as
8707 a single character command.
8709 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8711 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8712 top.c (execute_command_to_ui_file): New function, mostly a copy
8713 of execute_command_to_string.
8714 (execute_command_to_string): Implement by calling
8715 execute_command_to_ui_file.
8717 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8719 * top.h (saved_command_line): Remove declaration.
8720 * top.c (previous_saved_command_line, previous_repeat_arguments):
8722 (saved_command_line): Make static, define together with other
8724 (dont_repeat): Clear repeat_arguments.
8725 (repeat_previous, get_saved_command_line, save_command_line):
8727 (gdb_init): Initialize saved_command_line
8728 and previous_saved_command_line.
8729 * main.c (captured_main_1): Remove saved_command_line initialization.
8730 * event-top.c (handle_line_of_input): Update to use
8731 the new 'repeat' related functions instead of direct access to
8733 * command.h (repeat_previous, get_saved_command_line,
8734 save_command_line): New declarations.
8735 (dont_repeat): Add comment.
8737 2019-05-30 Tom Tromey <tromey@adacore.com>
8739 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8741 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8743 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8746 * completer.c (complete): Initialize variable word.
8748 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8750 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8751 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8752 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8753 'body' is NULL to the outter 'if', protecting the '!is_define'
8756 2019-05-29 Tom Tromey <tromey@adacore.com>
8758 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8759 (dwarf_unknown): New function.
8760 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8761 (dwarf_type_encoding_name): Use dwarf_unknown.
8763 2019-05-29 Tom Tromey <tromey@adacore.com>
8766 * cp-valprint.c (cp_print_value_fields): Call
8767 cp_print_static_field inside "try".
8769 2019-05-29 Tom Tromey <tromey@adacore.com>
8771 * inflow.c (struct terminal_info): Add default operator=.
8772 * configure: Rebuild.
8773 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8774 -Wdeprecated-copy-dtor, -Wredundant-move.
8776 2019-05-29 Tom Tromey <tromey@adacore.com>
8779 * infcmd.c (print_return_value_1): Handle finish_print
8781 (show_print_finish): New function.
8782 (_initialize_infcmd): Add "set/show print finish" commands.
8783 * valprint.c (user_print_options): Initialize new member.
8784 * valprint.h (struct value_print_options) <finish_print>: New
8787 2019-05-28 Tom Tromey <tromey@adacore.com>
8789 * ada-lang.c (ada_remove_Xbn_suffix)
8790 (find_old_style_renaming_symbol)
8791 (parse_old_style_renaming): Remove.
8792 (ada_find_renaming_symbol): Don't call
8793 find_old_style_renaming_symbol.
8794 (ada_is_renaming_symbol): Rename from
8795 ada_find_renaming_symbol. Remove "block" parameter. Return
8797 (ada_read_var_value): Update and simplify.
8798 * ada-exp.y (write_var_or_type): Remove old code.
8800 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8803 * event-top.c: Remove include comment.
8804 * inflow.c (class scoped_ignore_sigttou): Move from here...
8805 * inflow.h (class scoped_ignore_sigttou): ...to here.
8806 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8807 * top.c: Remove include comment.
8809 2019-05-27 Tom Tromey <tom@tromey.com>
8813 2019-05-22 Tom Tromey <tromey@adacore.com>
8815 * target.c (target_follow_exec): Constify parameter.
8816 * target-delegates.c: Rebuild.
8817 * remote.c (remote_target::follow_exec): Constify parameter.
8818 * infrun.c (follow_exec): Constify parameter.
8819 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8820 (target_follow_exec): Likewise.
8822 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8824 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8825 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8827 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8829 * NEWS: Add debugredirect and testsuite sections.
8831 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8833 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8834 target descriptions using exclusively floating point register name
8837 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8840 * f-lang.c (build_fortran_types): Handle the case where
8841 gdbarch_floatformat_for_type returns a nullptr.
8843 2019-05-21 Tom de Vries <tdevries@suse.de>
8846 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8848 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8851 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8853 * i386-tdep.c (i386_floatformat_for_type): Use
8854 floatformats_ia64_quad for the 16-byte floating point component
8855 within a fortran 32-byte complex number.
8857 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8859 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8860 delete default constructor.
8861 (find_partial_die): Update to return const struct.
8862 (partial_die_parent_scope): Move variable declaration into scope
8863 of its use and change its type to auto.
8864 (guess_partial_die_structure_name): Likewise.
8865 (partial_die_info::fixup): Likewise.
8867 2019-05-17 Tom Tromey <tromey@adacore.com>
8869 * source.c (find_and_open_source): Remove cast.
8871 2019-05-17 Tom Tromey <tromey@adacore.com>
8873 * annotate.c (annotate_source): Make "filename" const.
8874 * annotate.h (annotate_source): Use const.
8876 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8878 * disasm.c (set_disassembler_options): Send errors to stderr.
8880 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8882 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8883 (cli_interp_base::set_logging): Check debug_redirect.
8884 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8885 * cli/cli-logging.c (debug_redirect): Add static variable.
8886 (pop_output_files): Add default param.
8887 (handle_redirections): Print debug setting.
8888 (show_logging_command): Likewise.
8889 (_initialize_cli_logging): Add debugredirect command.
8890 * interps.c (current_interp_set_logging): Add debug_redirect
8892 * interps.h (set_logging): Add debug_redirect parameter.
8893 (current_interp_set_logging): Likewise.
8894 * mi/mi-common.h: Likewise.
8895 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8897 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8898 Tom Tromey <tromey@adacore.com>
8900 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8902 * cli/cli-interp.h (make_logging_output): Remove declaration.
8903 * cli/cli-logging.c (make_logging_output): Remove function.
8904 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8906 * ui-file.c (tee_file::tee_file): Remove bools.
8907 (tee_file::~tee_file): Remove deletes.
8908 * ui-file.h (tee_file): Remove bools.
8910 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8912 * mi/mi-cmds.h (mi_cmd_complete): New function.
8913 * mi/mi-main.c (mi_cmd_complete): Likewise.
8914 * mi/mi-cmds.c: Define new MI command -complete.
8915 * NEWS: Mention new -complete command.
8917 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8919 * completer.h (complete): New function.
8920 * completer.c (complete): Likewise.
8921 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8922 function defined in completer.h.
8924 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8926 * MAINTAINERS (Write After Approval): Add myself.
8928 2019-05-17 Tom de Vries <tdevries@suse.de>
8931 * dwarf2read.c (struct cu_partial_die_info): New struct.
8932 (find_partial_die): Return cu_partial_die_info.
8933 (partial_die_parent_scope, guess_partial_die_structure_name)
8934 (partial_die_info::fixup): Handle new return type of find_partial_die.
8936 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8938 PR breakpoints/24541
8939 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8940 "std::string", simplifying the algorithm.
8942 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8944 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8945 (stap_static_probe_ops::get_probes): Likewise.
8947 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8949 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8950 '-')" and "else if".
8951 (stap_parse_single_operand): Join checks for
8952 "gdbarch_stap_parse_special_token_p" and
8953 "gdbarch_stap_parse_special_token" in the same "if" statement.
8954 Invert check when verifying for operation on register
8957 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8959 * stap-probe.c (stap_get_opcode): Update comment.
8960 (stap_get_expected_argument_type): Likewise.
8961 (handle_stap_probe): Likewise.
8963 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8965 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8966 return type to 'bool'. Adjust comment. Use 'bool' when
8968 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8969 * stap-probe.c (stap_parse_argument_1): Likewise.
8970 (stap_is_operator): Likewise.
8971 (stap_is_generic_prefix): Likewise.
8972 (stap_is_register_prefix): Likewise.
8973 (stap_is_register_indirection_prefix): Likewise.
8974 (stap_is_integer_prefix): Likewise.
8975 (stap_generic_check_suffix): Likewise.
8976 (stap_check_integer_suffix): Likewise.
8977 (stap_check_register_suffix): Likewise.
8978 (stap_check_register_indirection_suffix): Likewise.
8979 (stap_parse_register_operand): Likewise.
8980 (stap_parse_single_operand): Likewise.
8981 (stap_parse_argument_1): Likewise.
8982 (stap_probe::get_argument_count): Likewise.
8983 (stap_is_operator): Likewise.
8985 2019-05-16 Tom Tromey <tromey@adacore.com>
8987 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8990 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8992 * linux-thread-db.c (try_thread_db_load_1): Change return type
8994 (try_thread_db_load): Likewise.
8995 (try_thread_db_load_from_pdir_1): Likewise.
8996 (try_thread_db_load_from_pdir): Likewise.
8997 (try_thread_db_load_from_sdir): Likewise.
8998 (try_thread_db_load_from_dir): Likewise.
8999 (thread_db_load_search): Likewise.
9000 (has_libpthread): Likewise.
9001 (thread_db_load): Likewise.
9003 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9005 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9006 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9007 NULL, and complain/return if that's the case.
9009 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9011 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9012 (advance, posn, abstract_read_memory): New functions.
9013 [struct mem_read_abstraction]: New struct.
9014 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9016 2019-05-14 Tom Tromey <tromey@adacore.com>
9018 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9019 value is not lval_memory.
9021 2019-05-14 Tom Tromey <tromey@adacore.com>
9023 * solib.c (info_sharedlibrary_command): Style the file name.
9025 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9027 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9028 (aarch64_vnv_type): Likewise.
9029 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9030 * common/tdesc.c: Likewise.
9031 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9032 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9033 * features/aarch64-fpu.xml: Add ieee half view.
9034 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9035 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9036 * gdbtypes.h (struct builtin_type): Likewise.
9037 (struct objfile_type): Likewise.
9039 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9041 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9043 * location.h (string_to_event_location): Likewise.
9045 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9049 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9051 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9052 New variable declaration.
9053 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9055 (print_one_breakpoint): Use ui_out::test_flags and new global
9056 variable to compute use_fixed_output.
9057 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9059 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9060 (mi_multi_location_breakpoint_output_fixed): Remove.
9061 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9063 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9064 fix_multi_location_breakpoint_output flag if version >= 3.
9065 * ui-out.h (enum ui_out_flag)
9066 <fix_multi_location_breakpoint_output>: New enumerator.
9068 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9070 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9072 2019-05-10 Tom Tromey <tromey@adacore.com>
9074 * ada-lang.c (catch_ada_completer): New function.
9075 (_initialize_ada_language): Use it.
9077 2019-05-10 Tom Tromey <tromey@adacore.com>
9079 * thread.c (print_thread_info): Make "requested_threads" const.
9080 * gdbthread.h (print_thread_info): Make "requested_threads"
9082 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9083 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9085 2019-05-08 Tom Tromey <tom@tromey.com>
9087 * gdbtypes.c (objfile_type_data): Change type.
9088 (objfile_type, _initialize_gdbtypes): Update.
9090 2019-05-08 Tom Tromey <tom@tromey.com>
9092 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9093 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9094 (_initialize_dwarf2_frame): Update.
9096 2019-05-08 Tom Tromey <tom@tromey.com>
9098 * objc-lang.c (objc_objfile_data): Change type.
9099 (find_methods): Update.
9100 (_initialize_objc_lang): Remove.
9102 2019-05-08 Tom Tromey <tom@tromey.com>
9104 * stabsread.c (rs6000_builtin_type_data): Change type.
9105 (rs6000_builtin_type, _initialize_stabsread): Update.
9107 2019-05-08 Tom Tromey <tom@tromey.com>
9109 * mips-tdep.c (mips_pdr_data): Remove.
9110 (_initialize_mips_tdep): Update.
9112 2019-05-08 Tom Tromey <tom@tromey.com>
9114 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9115 (hppa_init_objfile_priv_data, read_unwind_info)
9116 (find_unwind_entry, _initialize_hppa_tdep): Update.
9118 2019-05-08 Tom Tromey <tom@tromey.com>
9120 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9121 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9123 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9125 2019-05-08 Tom Tromey <tom@tromey.com>
9127 * mdebugread.c (basic_type_data): Change type.
9128 (basic_type, _initialize_mdebugread): Update.
9130 2019-05-08 Tom Tromey <tom@tromey.com>
9132 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9134 2019-05-08 Tom Tromey <tom@tromey.com>
9136 * nto-tdep.c (nto_inferior_data_reg): Change type.
9137 (nto_inferior_data): Update.
9138 (nto_inferior_data_cleanup, nto_new_inferior_data)
9139 (_initialize_nto_tdep): Remove.
9140 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9142 2019-05-08 Tom Tromey <tom@tromey.com>
9144 * ada-lang.c (struct ada_inferior_data): Add initializers.
9145 (ada_inferior_data): Change type.
9146 (ada_inferior_data_cleanup): Remove.
9147 (get_ada_inferior_data, ada_inferior_exit)
9148 (struct ada_pspace_data): Add initializers, destructor.
9149 (ada_pspace_data_handle): Change type.
9150 (get_ada_pspace_data): Update.
9151 (ada_pspace_data_cleanup): Remove.
9153 2019-05-08 Tom Tromey <tom@tromey.com>
9155 * coffread.c (struct coff_symfile_info): Add initializers.
9156 (coff_objfile_data_key): Move lower. Change type.
9157 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9159 (coff_free_info): Remove.
9161 2019-05-08 Tom Tromey <tom@tromey.com>
9163 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9164 (fbsd_pspace_data_handle): Move lower. Change type.
9165 (get_fbsd_pspace_data): Update.
9166 (fbsd_pspace_data_cleanup): Remove.
9167 (_initialize_fbsd_tdep): Update.
9169 2019-05-08 Tom Tromey <tom@tromey.com>
9171 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9172 (get_ada_tasks_pspace_data): Update.
9173 (ada_tasks_pspace_data_cleanup): Remove.
9174 (_initialize_tasks): Update.
9175 (ada_tasks_inferior_data_handle): Change type.
9176 (get_ada_tasks_inferior_data): Update.
9177 (ada_tasks_inferior_data_cleanup): Remove.
9178 (struct ada_tasks_pspace_data): Add initializers.
9180 2019-05-08 Tom Tromey <tom@tromey.com>
9182 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9183 * symfile-debug.c (debug_sym_get_probes): Change type.
9184 * stap-probe.c (handle_stap_probe):
9185 (stap_static_probe_ops::get_probes): Change type.
9186 * probe.h (class static_probe_ops) <get_probes>: Change type.
9187 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9188 (parse_probes_in_pspace): Update.
9189 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9191 (any_static_probe_ops::get_probes): Change type.
9192 * elfread.c (elfread_data): New typedef.
9193 (probe_key): Change type.
9194 (elf_get_probes): Likewise. Update.
9195 (probe_key_free): Remove.
9196 (_initialize_elfread): Update.
9197 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9199 (dtrace_process_dof_probe, dtrace_process_dof)
9200 (dtrace_static_probe_ops::get_probe): Change type.
9202 2019-05-08 Tom Tromey <tom@tromey.com>
9204 * xcoffread.c (struct xcoff_symfile_info): Rename from
9205 coff_symfile_info. Add initializers.
9206 (xcoff_objfile_data_key): Move lower. Change type.
9207 (XCOFF_DATA): Rewrite.
9208 (xcoff_free_info): Remove.
9209 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9210 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9211 (xcoff_initial_scan): Update.
9213 2019-05-08 Tom Tromey <tom@tromey.com>
9215 * solib-svr4.c (struct svr4_info): Add initializers and
9217 <probes_table>: Now an htab_up.
9218 (solib_svr4_pspace_data): Change type.
9219 (free_probes_table): Simplify.
9220 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9221 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9222 (probes_table_remove_objfile_probes, register_solib_event_probe)
9223 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9224 (_initialize_svr4_solib): Update.
9226 2019-05-08 Tom Tromey <tom@tromey.com>
9228 * remote.c (remote_pspace_data): Change type.
9229 (remote_pspace_data_cleanup): Remove.
9230 (get_remote_exec_file, set_pspace_remote_exec_file)
9231 (_initialize_remote): Update.
9233 2019-05-08 Tom Tromey <tom@tromey.com>
9235 * breakpoint.c (breakpoint_objfile_key): Change type.
9236 (get_breakpoint_objfile_data): Update.
9237 (free_breakpoint_objfile_data): Remove.
9238 (_initialize_breakpoint): Update.
9240 2019-05-08 Tom Tromey <tom@tromey.com>
9242 * linux-tdep.c (struct linux_info): Add initializers.
9243 (linux_inferior_data): Move. Change type.
9244 (invalidate_linux_cache_inf): Update.
9245 (linux_inferior_data_cleanup): Remove.
9246 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9248 2019-05-08 Tom Tromey <tom@tromey.com>
9250 * auxv.c (auxv_inferior_data): Move. Change type.
9251 (auxv_inferior_data_cleanup): Remove.
9252 (invalidate_auxv_cache_inf): Rewrite.
9253 (get_auxv_inferior_data, _initialize_auxv): Update.
9255 2019-05-08 Tom Tromey <tom@tromey.com>
9257 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9258 (symfile_debug_objfile_data_key): Change type.
9259 (symfile_debug_installed, debug_qf_has_symbols)
9260 (debug_qf_find_last_source_symtab)
9261 (debug_qf_forget_cached_source_info)
9262 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9263 (debug_qf_print_stats, debug_qf_dump)
9264 (debug_qf_expand_symtabs_for_function)
9265 (debug_qf_expand_all_symtabs)
9266 (debug_qf_expand_symtabs_with_fullname)
9267 (debug_qf_map_matching_symbols)
9268 (debug_qf_expand_symtabs_matching)
9269 (debug_qf_find_pc_sect_compunit_symtab)
9270 (debug_qf_map_symbol_filenames)
9271 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9272 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9273 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9274 (debug_sym_read_linetable, debug_sym_relocate): Update.
9275 (symfile_debug_free_objfile): Remove.
9276 (install_symfile_debug_logging, _initialize_symfile_debug):
9279 2019-05-08 Tom Tromey <tom@tromey.com>
9281 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9282 allocate_on_obstack.
9283 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9284 (get_dwarf2_per_objfile): Update.
9285 (set_dwarf2_per_objfile): Remove.
9286 (dwarf2_has_info, dwarf2_get_section_info): Update.
9287 (dwarf2_free_objfile): Remove.
9288 (_initialize_dwarf2_read): Update.
9290 2019-05-08 Tom Tromey <tom@tromey.com>
9292 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9294 <unsupported_script_warning_printed,
9295 script_not_found_warning_printed>: Now bool.
9296 (auto_load_pspace_data): Change type.
9297 (~auto_load_pspace_info): Rename from
9298 auto_load_pspace_data_cleanup.
9299 (get_auto_load_pspace_data, init_loaded_scripts_info)
9300 (clear_section_scripts, maybe_print_unsupported_script_warning)
9301 (maybe_print_script_not_found_warning, _initialize_auto_load):
9304 2019-05-08 Tom Tromey <tom@tromey.com>
9306 * objfiles.c (objfile_pspace_info): Add destructor and
9308 (objfiles_pspace_data): Change type.
9309 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9310 (get_objfile_pspace_data): Update.
9311 (objfiles_bfd_data): Change type.
9312 (get_objfile_bfd_data): Update.
9313 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9315 2019-05-08 Tom Tromey <tom@tromey.com>
9317 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9319 (get_catch_syscall_inferior_data): Update.
9320 (catch_syscall_inferior_data_cleanup): Remove.
9321 (_initialize_break_catch_syscall): Update.
9323 2019-05-08 Tom Tromey <tom@tromey.com>
9325 * inflow.c (struct terminal_info): Add destructor and
9327 (inflow_inferior_data): Change type.
9328 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9329 (get_inflow_inferior_data, inflow_inferior_exit)
9330 (swap_terminal_info, _initialize_inflow): Update.
9332 2019-05-08 Tom Tromey <tom@tromey.com>
9334 * target-dcache.c (target_dcache_cleanup): Remove.
9335 (target_dcache_aspace_key): Change type.
9336 (target_dcache_init_p, target_dcache_invalidate)
9337 (target_dcache_get, target_dcache_get_or_init)
9338 (_initialize_target_dcache): Update.
9339 * dcache.h (struct dcache_deleter): New.
9341 2019-05-08 Tom Tromey <tom@tromey.com>
9343 * symtab.c (struct symbol_cache): Add destructor and
9345 (symbol_cache_key): Move. Change type.
9346 (make_symbol_cache, free_symbol_cache): Remove.
9347 (get_symbol_cache): Update.
9348 (symbol_cache_cleanup): Remove.
9349 (ALL_PSPACES, symbol_cache_flush)
9350 (maintenance_print_symbol_cache)
9351 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9354 2019-05-08 Tom Tromey <tom@tromey.com>
9356 * symtab.c (struct main_info): Add destructor and initializers.
9357 (main_progspace_key): Move. Change type.
9358 (get_main_info): Update.
9359 (main_info_cleanup): Remove.
9360 (_initialize_symtab): Update.
9362 2019-05-08 Tom Tromey <tom@tromey.com>
9364 * registry.h (DECLARE_REGISTRY): Define the _key class.
9366 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9368 * NEWS: Merge two 'New commands' sections.
9370 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9372 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9373 parameter and use Ada language definition instead.
9374 (ada_val_print_ptr): Remove unused language parameter.
9375 (ada_val_print_num): Remove language parameter and use Ada language
9377 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9379 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9380 parameter and use Ada language definition instead.
9381 (ada_val_print_1): Update all ada_val_print_xxx calls.
9382 Remove language parameter.
9383 (ada_val_print): Update ada_val_print_1 call.
9385 2019-05-08 Tom Tromey <tromey@adacore.com>
9387 * remote.c (remote_hw_watchpoint_limit)
9388 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9391 2019-05-08 Tom Tromey <tromey@adacore.com>
9393 * maint.c (_initialize_maint_cmds): Move initialization code to
9395 (watchdog, show_watchdog): Move to remote.c.
9396 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9398 (_initialize_remote): Move initialization code from maint.c.
9399 * defs.h (watchdog): Don't declare.
9401 2019-05-08 Tom Tromey <tromey@adacore.com>
9403 * tui/tui-interp.c: Include main.h.
9404 * interps.c: Include main.h.
9405 * main.h (interpreter_p): Declare.
9406 * defs.h (interpreter_p): Don't declare.
9408 2019-05-08 Tom Tromey <tromey@adacore.com>
9410 * dwarf2loc.c: Include dwarf2read.h.
9411 * defs.h (read_unsigned_leb128): Don't declare.
9412 * dwarf2read.h (read_unsigned_leb128): Declare.
9414 2019-05-08 Tom Tromey <tromey@adacore.com>
9416 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9419 2019-05-08 Tom Tromey <tromey@adacore.com>
9421 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9422 when no wrap column is set.
9424 2019-05-08 Tom Tromey <tromey@adacore.com>
9426 * c-lang.c (c_get_string): Handle non-C-style arrays.
9428 2019-05-08 Tom Tromey <tromey@adacore.com>
9430 * typeprint.c (print_offset_data::update): Print the bit offset,
9431 not the number of bits remaining.
9433 2019-05-08 Tom Tromey <tromey@adacore.com>
9435 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9436 padding at end of comment.
9438 2019-05-08 Tom Tromey <tromey@adacore.com>
9440 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9443 2019-05-06 Tom Tromey <tom@tromey.com>
9445 * common/scoped_mmap.c: Include common-defs.h.
9446 * common/scoped_mmap.h: Don't include config.h.
9448 2019-05-04 Tom Tromey <tom@tromey.com>
9450 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9451 (struct aarch64_call_info): Add initializers.
9452 <si>: Now a std::vector.
9453 (pass_on_stack, aarch64_push_dummy_call): Update.
9455 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9456 Tom Tromey <tom@tromey.com>
9458 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9459 (ppc_threads): Now a std::vector. Now static.
9460 (hwdebug_find_thread_points_by_tid)
9461 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9464 2019-05-04 Tom Tromey <tom@tromey.com>
9466 * arc-tdep.c (arc_tdesc_init): Return bool.
9468 2019-05-04 Tom Tromey <tom@tromey.com>
9470 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9471 Use gdb_assert_not_reached.
9473 2019-05-04 Tom Tromey <tom@tromey.com>
9475 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9478 2019-05-04 Tom Tromey <tom@tromey.com>
9480 * arc-tdep.c (arc_tdesc_init): Use bool.
9482 2019-05-04 Tom Tromey <tom@tromey.com>
9484 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9486 2019-05-04 Tom Tromey <tom@tromey.com>
9488 * cli/cli-cmds.c (valid_command_p): Return bool.
9490 2019-05-04 Tom Tromey <tom@tromey.com>
9492 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9493 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9495 2019-05-04 Raul Tambre <raul@tambre.ee>
9497 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9498 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9499 operator for comparison.
9501 2019-05-04 Tom Tromey <tom@tromey.com>
9503 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9504 (lookup_partial_symbol, print_partial_symbols)
9505 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9506 (psymbol_compare): Update.
9507 (add_psymbol_to_bcache): Clear the entire psymbol.
9508 (maintenance_check_psymtabs): Update.
9509 * psympriv.h (struct partial_symbol): Don't derive from
9510 general_symbol_info.
9511 <obj_section, unrelocated_address, address,
9512 set_unrelocated_address>: Update.
9513 <ginfo>: New member.
9514 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9515 (debug_names::write_psymbols): Update.
9517 2019-05-04 Tom de Vries <tdevries@suse.de>
9519 * contrib/cc-with-tweaks.sh: Support -n arg.
9521 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9523 * corelow.c (core_target::detach): Ensure frame cache and
9524 register caches are cleared.
9525 inferior.c (exit_inferior_1): Likewise.
9527 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9528 Tom Tromey <tom@tromey.com>
9530 * dictionary.c (collate_pending_symbols_by_language): Remove
9531 "struct" from foreach.
9532 * symtab.c (lookup_global_symbol_from_objfile)
9533 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9535 * ser-tcp.c (net_open): Remove "struct" from foreach.
9536 * objfiles.c (objfile_relocate, objfile_rebase)
9537 (objfile_has_symbols): Remove "struct" from foreach.
9538 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9540 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9542 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9543 "struct" from foreach.
9544 * ada-lang.c (create_excep_cond_exprs)
9545 (ada_exception_catchpoint_cond_string): Remove "struct" from
9548 2019-05-03 Tom Tromey <tromey@adacore.com>
9550 * ada-exp.y (convert_char_literal): Check suffix of each
9553 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9556 * ada-exp.y (yywrap): Don't define.
9557 * ada-lex.l (%option): Add noyywrap
9560 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9562 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9563 _WIN32_WINNT to the XP level, unless already defined to a higher
9566 * unittests/parse-connection-spec-selftests.c:
9568 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9571 * symfile.c (find_separate_debug_file): Remove colon from the
9572 drive spec of DOS/Windows file names of the target, so that the
9573 file name produced from DEBUGDIR and the target's directory will
9574 be valid on DOS/Windows systems.
9576 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9578 * rust-lang.c (val_print_struct): Handle printing structures
9581 2019-05-02 Tom Tromey <tromey@adacore.com>
9583 * valarith.c (_initialize_valarith): Remove.
9585 2019-05-01 Tom Tromey <tromey@adacore.com>
9587 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9590 2019-05-01 Tom Tromey <tromey@adacore.com>
9592 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9593 for big-endian copies.
9595 2019-04-30 Ali Tamur <tamur@google.com>
9596 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9597 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9598 (read_3_bytes): New function.
9600 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9602 * windows-nat.c (main_thread_id): Delete.
9603 (handle_output_debug_string): Replace main_thread_id by
9604 current_event.dwThreadId.
9605 (fake_create_process): Likewise.
9606 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9607 Do not set main_thread_id.
9608 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9609 current_event.dwThreadId.
9610 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9612 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9614 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9615 Use current_event.dwThreadId instead of main_thread_id.
9617 2019-04-30 Tom Tromey <tromey@adacore.com>
9619 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9620 (create_excep_cond_exprs): Iterate over program spaces.
9621 (ada_exception_catchpoint_cond_string): Examine all minimal
9622 symbols for exception types.
9624 2019-04-30 Tom Tromey <tromey@adacore.com>
9627 * dwarf2read.c (process_structure_scope): Handle case where type
9628 has template parameters but no symbol was created.
9630 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9631 Chris January <chris.january@arm.com>
9633 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9635 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9637 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9639 * f-typeprint.c (f_print_type): Update rules for printing
9641 (f_type_print_varspec_suffix): Likewise.
9643 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9644 Chris January <chris.january@arm.com>
9646 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9649 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9651 * f-lang.c (build_fortran_types): Change name of void type to
9653 * f-typeprint.c (f_type_print_base): Print the name of the void
9654 type, rather than a fixed string.
9655 * f-valprint.c (f_decorations): Use lower case void string.
9657 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9658 Chris January <chris.january@arm.com>
9660 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9663 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9664 Chris January <chris.january@arm.com>
9665 David Lecomber <david.lecomber@arm.com>
9667 * f-exp.y (BINOP_INTRINSIC): New token.
9668 (exp): New parser rule handling BINOP_INTRINSIC.
9669 (f77_keywords): Add new builtin procedures.
9670 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9671 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9672 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9673 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9674 (print_unop_subexp_f): New function.
9675 (print_binop_subexp_f): New function.
9676 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9677 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9678 (dump_subexp_body_f): Likewise.
9679 (operator_check_f): Likewise.
9680 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9681 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9683 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9685 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9687 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9688 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9689 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9690 (operator_length_f): New fuction.
9691 (print_subexp_f): New function.
9692 (op_name_f): New function.
9693 (dump_subexp_body_f): New function.
9694 (operator_check_f): New function.
9695 (exp_descriptor_f): Replace standard expression handling functions
9697 * gdb/fortran-operator.def: New file.
9698 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9699 * gdb/std-operator.def: Remove UNOP_KIND.
9701 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9703 * std-operator.def: Remove unbalanced, stray double quote
9706 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9707 Chris January <chris.january@arm.com>
9708 Daniel Everett <daniel.everett@arm.com>
9709 Nick Forrington <nick.forrington@arm.com>
9710 Richard Bunt <richard.bunt@arm.com>
9712 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9713 of depth when printing anonymous structs or unions.
9714 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9715 Don't print either the top-level value, or the children if the
9716 max-depth is exceeded.
9717 (ppscm_print_children): When printing the key of a map, allow one
9718 extra level of depth.
9719 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9720 print either the top-level value, or the children if the max-depth
9722 (print_children): When printing the key of a map, allow one extra
9724 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9725 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9726 (user_print_options): Initialise max_depth field.
9727 (val_print_scalar_or_string_type_p): New function.
9728 (val_print): Check to see if the max depth has been reached.
9729 (val_print_check_max_depth): Define new function.
9730 (show_print_max_depth): New function.
9731 (_initialize_valprint): Add 'print max-depth' option.
9732 * valprint.h (struct value_print_options) <max_depth>: New field.
9733 (val_print_check_max_depth): Declare new function.
9734 * NEWS: Document new feature.
9736 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9738 * ada-lang.c (ada_language_defn): Initialise new field.
9739 * c-lang.c (c_is_string_type_p): New function.
9740 (c_language_defn): Initialise new field.
9741 (cplus_language_defn): Initialise new field.
9742 (asm_language_defn): Initialise new field.
9743 (minimal_language_defn): Initialise new field.
9744 * c-lang.h (c_is_string_type_p): Declare new function.
9745 * d-lang.c (d_language_defn): Initialise new field.
9746 * f-lang.c (f_is_string_type_p): New function.
9747 (f_language_defn): Initialise new field.
9748 * go-lang.c (go_is_string_type_p): New function.
9749 (go_language_defn): Initialise new field.
9750 * language.c (default_is_string_type_p): New function.
9751 (unknown_language_defn): Initialise new field.
9752 (auto_language_defn): Initialise new field.
9753 * language.h (struct language_defn) <la_is_string_type_p>: New
9755 (default_is_string_type_p): Declare new function.
9756 * m2-lang.c (m2_language_defn): Initialise new field.
9757 * objc-lang.c (objc_language_defn): Initialise new field.
9758 * opencl-lang.c (opencl_language_defn): Initialise new field.
9759 * p-lang.c (pascal_is_string_type_p): New function.
9760 (pascal_language_defn): Initialise new field.
9761 * rust-lang.c (rust_is_string_type_p): New function.
9762 (rust_language_defn): Initialise new field.
9764 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9766 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9768 * ada-lang.c (ada_language_defn): Initialise new field.
9769 * c-lang.c (c_language_defn): Likewise.
9770 (cplus_language_defn): Likewise.
9771 (asm_language_defn): Likewise.
9772 (minimal_language_defn): Likewise.
9773 * d-lang.c (d_language_defn): Likewise.
9774 * f-lang.c (f_language_defn): Likewise.
9775 * go-lang.c (go_language_defn): Likewise.
9776 * language.c (unknown_language_defn): Likewise.
9777 (auto_language_defn): Likewise.
9778 * m2-lang.c (m2_language_defn): Likewise.
9779 * objc-lang.c (objc_language_defn): Likewise.
9780 * opencl-lang.c (opencl_language_defn): Likewise.
9781 * p-lang.c (pascal_language_defn): Likewise.
9782 * rust-lang.c (rust_language_defn): Likewise.
9784 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9786 * ada-lang.c (ada_is_character_type): Change return type to bool.
9787 (ada_is_string_type): Likewise.
9788 * ada-lang.h (ada_is_character_type): Update declaration
9789 (ada_is_string_type): Likewise.
9791 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9793 Support style in 'frame|thread apply'
9795 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9796 * record.c (record_start, record_stop): Update callers of
9797 execute_command_to_string with false.
9798 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9799 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9801 (class string_file): New constructor with term_out parameter.
9802 Override methods term_out and can_emit_style_escape. New member
9804 (class stdio_file): Override can_emit_style_escape.
9805 (class tee_file): Override term_out and can_emit_style_escape.
9806 * utils.h (can_emit_style_escape): Remove.
9807 * utils.c (can_emit_style_escape): Likewise.
9808 Update all callers of can_emit_style_escape (SOMESTREAM) to
9809 SOMESTREAM->can_emit_style_escape.
9810 * source-cache.c (source_cache::get_source_lines): Likewise.
9811 * stack.c (frame_apply_command_count): Call execute_command_to_string
9812 passing the term_out characteristic of the current gdb_stdout.
9813 * thread.c (thr_try_catch_cmd): Likewise.
9814 * top.c (execute_command_to_string): pass term_out parameter
9815 to construct the string_file for the command output.
9816 * ui-file.c (term_cli_styling): New function (most code moved
9817 from utils.c can_emit_style_escape).
9818 (string_file::string_file, string_file::can_emit_style_escape,
9819 stdio_file::can_emit_style_escape, tee_file::term_out,
9820 tee_file::can_emit_style_escape): New functions.
9822 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9824 * NEWS: Mention the new set|show may-call-functions.
9825 * infcall.c (may_call_functions_p): New variable.
9826 (show_may_call_functions_p): New function.
9827 (call_function_by_hand_dummy): Throws an error if not
9829 (_initialize_infcall): Call add_setshow_boolean_cmd for
9832 2019-04-25 Keith Seitz <keiths@redhat.com>
9835 * cp-support.c (inspect_type): Don't attempt substitutions
9836 of symbol with the same name.
9838 2019-04-25 Tom Tromey <tromey@adacore.com>
9841 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9844 2019-04-25 Tom Tromey <tromey@adacore.com>
9846 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9848 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9849 (gdb_xml_parser::parse): Use std::move.
9850 * python/python-internal.h (gdbpy_convert_exception): Take a const
9852 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9854 * python/py-utils.c (gdbpy_convert_exception): Take a const
9856 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9858 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9860 * mi/mi-main.c (mi_print_exception): Take a const reference.
9861 * main.c (handle_command_errors): Take a const reference.
9862 * linespec.c (parse_linespec): Use std::move.
9863 * infcall.c (run_inferior_call): Use std::move.
9864 (call_function_by_hand_dummy): Use std::move.
9865 * exec.c (try_open_exec_file): Use std::move.
9866 * exceptions.h (exception_print, exception_fprintf)
9867 (exception_print_same): Update.
9868 * exceptions.c (print_exception, exception_print)
9869 (exception_fprintf, exception_print_same): Change parameters to
9871 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9872 * common/new-op.c: Use std::move.
9873 * common/common-exceptions.h (struct gdb_exception): Add move
9875 (struct gdb_exception_error, struct gdb_exception_quit, struct
9876 gdb_quit_bad_alloc): Change constructor to move constructor.
9877 (throw_exception): Change parameter to rvalue reference.
9878 * common/common-exceptions.c (throw_exception): Take rvalue
9880 * cli/cli-interp.c (safe_execute_command): Use std::move.
9881 * breakpoint.c (insert_bp_location, location_to_sals): Use
9884 2019-04-25 Tom Tromey <tromey@adacore.com>
9886 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9887 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9888 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9889 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9890 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9891 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9892 guile/scm-value.c: Use unpack.
9893 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9894 gdbscm_gdb_exception.
9895 (gdbscm_throw_gdb_exception): Likewise.
9896 (struct gdbscm_gdb_exception): New.
9897 (unpack): New function.
9898 (gdbscm_wrap): Use unpack.
9900 2019-04-25 Tom Tromey <tromey@adacore.com>
9902 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9903 (gdb_rl_callback_handler): Use std::move.
9904 * common/common-exceptions.h (struct gdb_exception): Add move
9905 assignment operator.
9906 (throw_exception_sjlj): Change "exception" to const reference.
9907 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9908 (throw_exception_sjlj): Change "exception" to const reference.
9910 2019-04-25 Tom Tromey <tromey@adacore.com>
9912 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9913 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9914 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9916 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9918 * mi/mi-interp.c (mi_interp::exec): Update.
9919 * linespec.c (parse_linespec): Update.
9920 * infcall.c (run_inferior_call): Update.
9921 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9922 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9923 (gdbscm_lookup_global_symbol): Update.
9924 * guile/scm-param.c (gdbscm_parameter_value): Update.
9925 * guile/scm-frame.c (gdbscm_frame_read_register)
9926 (gdbscm_frame_read_var): Update.
9927 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9928 * exec.c (try_open_exec_file): Update.
9929 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9930 (gdb_rl_callback_handler): Update.
9931 * common/common-exceptions.h (exception_none): Don't declare.
9932 * common/common-exceptions.c (exception_none): Don't define.
9933 (struct catcher) <exception>: Update.
9934 * cli/cli-interp.c (safe_execute_command): Update.
9935 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9937 2019-04-25 Ali Tamur <tamur@google.com>
9939 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9940 (read_attribute_value): Likewise.
9941 (dwarf2_read_addr_index): Update comment.
9942 (read_str_index): Add DW_FORM_strx.
9943 (dwarf2_string_attr): Likewise.
9944 (dwarf2_const_value_attr): Likewise.
9945 (dump_die_shallow): Likewise.
9946 (dwarf2_fetch_constant_bytes): Likewise.
9947 (skip_form_bytes): Likewise.
9948 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9950 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9954 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9955 OFFSET. Verify if current mapping contains an ELF header.
9956 (linux_find_memory_regions_full): Adjust call to
9959 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9960 Kang Li <kanglictf@gmail.com>
9964 * dwarf2-frame.c (read_initial_length): Be consistent about using
9965 unsigned representation of length.
9966 (decode_frame_entry_1): Likewise. Check for wraparound of
9967 end pointer as well as buffer overflow.
9969 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9971 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9974 2019-04-24 Tom Tromey <tromey@adacore.com>
9976 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9980 * s12z-tdep.c (s12z_unwind_pc): Delete.
9981 (s12z_unwind_sp): Delete.
9982 (s12z_gdbarch_init): Don't register deleted functions with
9985 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9987 * rl78-tdep.c (rl78_unwind_sp): Delete.
9988 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9992 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9993 (xstormy16_unwind_pc): Delete.
9994 (xstormy16_dummy_id): Delete.
9995 (xstormy16_gdbarch_init): Don't register deleted functions with
9998 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10000 * vax-tdep.c (vax_unwind_pc): Delete.
10001 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10005 * v850-tdep.c (v850_unwind_sp): Delete.
10006 (v850_unwind_pc): Delete.
10007 (v850_dummy_id): Delete.
10008 (v850_gdbarch_init): Don't register deleted functions with
10011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10013 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10014 (tilegx_unwind_pc): Delete.
10015 (tilegx_unwind_dummy_id): Delete.
10016 (tilegx_gdbarch_init): Don't register deleted functions with
10019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10021 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10022 (tic6x_dummy_id): Delete.
10023 (tic6x_gdbarch_init): Don't register deleted functions with
10026 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10028 * sparc-tdep.c (sparc_unwind_pc): Delete.
10029 (sparc32_gdbarch_init): Don't register deleted function with
10032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10034 * sh-tdep.c (sh_unwind_sp): Delete.
10035 (sh_unwind_pc): Delete.
10036 (sh_dummy_id): Delete.
10037 (sh_gdbarch_init): Don't register deleted functions with
10040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10042 * score-tdep.c (score_unwind_sp): Delete.
10043 (score_unwind_pc): Delete.
10044 (score_dummy_id): Delete.
10045 (score_gdbarch_init): Don't register deleted functions with
10048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10050 * rx-tdep.c (rx_unwind_pc): Delete.
10051 (rx_unwind_sp): Delete.
10052 (rx_dummy_id): Delete.
10053 (rx_gdbarch_init): Don't register deleted functions with
10054 gdbarch. Update comment.
10056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10058 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10059 (rs6000_dummy_id): Delete.
10060 (rs6000_gdbarch_init): Don't register deleted functions with
10063 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10065 * or1k-tdep.c (or1k_dummy_id): Delete.
10066 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10070 * nios2-tdep.c (nios2_dummy_id): Delete.
10071 (nios2_unwind_sp): Delete.
10072 (nios2_gdbarch_init): Don't register deleted functions with
10075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10077 * nds32-tdep.c (nds32_dummy_id): Delete.
10078 (nds32_unwind_pc): Delete.
10079 (nds32_unwind_sp): Delete.
10080 (nds32_gdbarch_init): Don't register deleted functions with
10083 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10085 * msp430-tdep.c (msp430_unwind_pc): Delete.
10086 (msp430_unwind_sp): Delete.
10087 (msp430_dummy_id): Delete.
10088 (msp430_gdbarch_init): Don't register deleted functions with
10091 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10093 * moxie-tdep.c (moxie_unwind_sp): Delete.
10094 (moxie_unwind_pc): Delete.
10095 (moxie_dummy_id): Delete.
10096 (moxie_gdbarch_init): Don't register deleted functions with
10099 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10101 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10102 (mn10300_unwind_pc): Delete.
10103 (mn10300_unwind_sp): Delete.
10104 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10106 (mn10300_frame_unwind_init): Don't register deleted functions with
10109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10111 * mep-tdep.c (mep_unwind_pc): Delete.
10112 (mep_unwind_sp): Delete.
10113 (mep_dummy_id): Delete.
10114 (mep_gdbarch_init): Don't register deleted functions with
10117 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10119 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10120 (m68hc11_unwind_sp): Delete.
10121 (m68hc11_gdbarch_init): Don't register deleted functions with
10124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10126 * m32r-tdep.c (m32r_unwind_sp): Delete.
10127 (m32r_unwind_pc): Delete.
10128 (m32r_dummy_id): Delete.
10129 (m32r_gdbarch_init): Don't register deleted functions with
10132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10134 * m32c-tdep.c (m32c_unwind_pc): Delete.
10135 (m32c_unwind_sp): Delete.
10136 (m32c_dummy_id): Delete.
10137 (m32c_gdbarch_init): Don't register deleted functions with
10140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10142 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10143 (lm32_unwind_pc): Delete.
10144 (lm32_dummy_id): Delete.
10145 (lm32_gdbarch_init): Don't register deleted functions with
10148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10150 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10151 (iq2000_unwind_pc): Delete.
10152 (iq2000_dummy_id): Delete.
10153 (iq2000_gdbarch_init): Don't register deleted functions with
10156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10158 * nds32-tdep.c (nds32_type_align): Delete.
10159 (nds32_push_dummy_call): Use type_align instead.
10161 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10163 * arm-tdep.c (arm_type_align): Only handle vector override case.
10164 (arm_push_dummy_call): Use type_align.
10165 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10169 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10171 (pass_on_stack): Use type_align.
10172 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10175 2019-04-23 Tom Tromey <tromey@adacore.com>
10177 * dwarf2read.c (line_header::file_name_at): Remove unused
10180 2019-04-23 Tom de Vries <tdevries@suse.de>
10183 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10187 2019-03-27 Ali Tamur <tamur@google.com>
10189 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10190 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10191 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10192 (dwarf_expr_context::get_addr_index): Likewise
10193 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10194 (symbol_needs_eval_context::get_addr_index): Likewise
10195 (disassemble_dwarf_expression): Add DW_OP_addrx
10196 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10197 (read_cutu_die_from_dwo): Update comment
10198 (skip_one_die): Add DW_FORM_addrx
10199 (read_attribute_value): Likewise
10200 (var_decode_location): Add DW_OP_addrx
10201 (dwarf2_const_value_attr): Add DW_FORM_addrx
10202 (dump_die_shallow): Likewise
10203 (dwarf2_fetch_constant_bytes): Likewise
10204 (decode_locdesc): Add DW_OP_addrx
10205 (skip_form_bytes): Add DW_FORM_addrx
10207 2019-04-22 Ali Tamur <tamur@google.com>
10209 * MAINTAINERS (Write After Approval): Add self.
10211 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10213 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10214 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10215 (open_symbol_file_object): Likewise.
10216 (svr4_default_sos): Add info parameter.
10217 (svr4_read_so_list): Likewise.
10218 (svr4_current_sos_direct): Adjust functions calls to pass down
10220 (svr4_current_sos_1): Add info parameter.
10221 (svr4_current_sos): Call get_svr4_info, pass info down to
10222 svr4_current_sos_1.
10223 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10225 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10227 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10229 (probes_table_remove_objfile_probes): Likewise.
10230 (register_solib_event_probe): Add info parameter.
10231 (solist_update_incremental): Pass info parameter down to
10233 (disable_probes_interface): Add info parameter.
10234 (svr4_handle_solib_event): Pass current_program_space to
10235 get_svr4_info. Adjust disable_probes_interface cleanup.
10236 (svr4_create_probe_breakpoints): Add info parameter, pass it
10237 down to register_solib_event_probe.
10238 (svr4_create_solib_event_breakpoints): Add info parameter,
10239 pass it down to svr4_create_probe_breakpoints.
10240 (enable_break): Pass info down to
10241 svr4_create_solib_event_breakpoints.
10242 (svr4_solib_create_inferior_hook): Pass current_program_space to
10244 (svr4_clear_solib): Likewise.
10246 2019-04-22 Pedro Alves <palves@redhat.com>
10248 * solib-svr4.c (svr4_free_objfile_observer): New.
10249 (probe_and_action::objfile): New field.
10250 (probes_table_htab_remove_objfile_probes)
10251 (probes_table_remove_objfile_probes): New functions.
10252 (register_solib_event_probe): Add 'objfile' parameter. Store it
10253 in the new probe_and_action. Don't store the probe in 'lookup'.
10254 (svr4_create_probe_breakpoints): Pass objfile to
10255 register_solib_event_probe.
10256 (_initialize_svr4_solib): Register a free_objfile observer.
10258 2019-04-19 Tom Tromey <tom@tromey.com>
10260 * common/queue.h: Remove.
10262 2019-04-19 Tom Tromey <tom@tromey.com>
10264 * event-loop.c: Don't include "common/queue.h".
10266 2019-04-19 Tom Tromey <tom@tromey.com>
10268 * remote.c (remote_target): Use delete.
10269 * remote-notif.h: Include <list>, not "common/queue.h".
10270 (notif_client_p): Remove typedef.
10271 (remote_notif_state): Add constructor, destructor, initializer.
10272 <notif_queue>: Now a std::list.
10273 (remote_notif_state_xfree): Don't declare.
10274 * remote-notif.c (remote_notif_process, handle_notification)
10275 (remote_notif_state_allocate): Update.
10276 (~remote_notif_state): Rename from remote_notif_state_xfree.
10278 2019-04-19 Tom Tromey <tom@tromey.com>
10280 * symfile.c (reread_symbols): Update.
10281 * objfiles.c (objfile_register_static_link)
10282 (objfile_lookup_static_link): Update
10283 (~objfile) Don't delete static_links.
10284 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10286 2019-04-19 Tom Tromey <tom@tromey.com>
10288 * type-stack.h (struct type_stack) <insert>: Constify string.
10289 * type-stack.c (type_stack::insert): Constify string.
10290 * gdbtypes.h (lookup_template_type): Update.
10291 (address_space_name_to_int): Update.
10292 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10294 (lookup_template_type): Make name const.
10295 * c-exp.y: Update rules.
10296 (lex_one_token, classify_name, classify_inner_name)
10297 (c_print_token): Update.
10298 * p-exp.y: Update rules.
10300 * f-exp.y: Update rules.
10302 * d-exp.y: Update rules.
10303 (lex_one_token, classify_name, classify_inner_name): Update.
10304 * parse.c (write_dollar_variable, copy_name): Return std::string.
10305 * parser-defs.h (copy_name): Change return type.
10306 * m2-exp.y: Update rules.
10308 * go-exp.y (lex_one_token): Update.
10310 (classify_unsafe_function, classify_packaged_name)
10311 (classify_name, yylex): Update.
10313 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10315 * configure.ac: add --enable-source-highlight switch.
10316 * configure: Regenerate.
10317 * top.c (print_gdb_version): plumb --enable-source-highlight
10318 status to "show configuration".
10320 2019-04-19 Tom Tromey <tromey@adacore.com>
10322 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10324 (empty_record, ada_template_to_fixed_record_type_1)
10325 (template_to_static_fixed_type)
10326 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10327 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10328 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10331 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10334 * source.c (print_source_lines_base): Advance "iter" when a
10335 control character is seen.
10337 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10339 * inferior.h (struct infcall_suspend_state_deleter):
10340 Catch exception in destructor to avoid crash.
10342 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10344 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10345 close to the add_com "shell".
10347 2019-04-18 Tom Tromey <tromey@adacore.com>
10349 * process-stratum-target.h (class process_stratum_target)
10350 <stratum>: Add "final".
10352 2019-04-17 Tom Tromey <tromey@adacore.com>
10354 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10355 against nullptr before use.
10357 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10359 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10361 2019-04-17 Jim Wilson <jimw@sifive.com>
10362 Andrew Burgess <andrew.burgess@embecosm.com>
10364 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10365 code read might fail, assume 4-byte breakpoint in that case.
10367 2019-04-15 Leszek Swirski <leszeks@google.com>
10369 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10370 rather than a hand-rolled POD check when checking for forced MEMORY
10373 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10375 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10376 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10378 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10379 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10380 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10383 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10385 * aarch64-linux-nat.c
10386 (aarch64_linux_nat_target::thread_architecture): Add override.
10387 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10390 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10392 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10394 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10396 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10397 target types of size 96-bits, add some additional comments, and
10398 check that the builtin type we found was the correct size.
10400 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10402 * utils.c (prompt_for_continue): Don't restore the styling at the
10403 end, as applied_style has the wrong value. This fixes styling in
10404 long lists of file names that are interrupted by the "Continue?"
10407 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10409 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10410 * c-lang.c (c_language_defn): Likewise.
10411 (cplus_language_defn): Likewise.
10412 (asm_language_defn): Likewise.
10413 (minimal_language_defn): Likewise.
10414 * d-lang.c (d_language_defn): Likewise.
10415 * f-lang.c (f_language_defn): Likewise.
10416 * go-lang.c (go_language_defn): Likewise.
10417 * language.c (unknown_language_defn): Likewise.
10418 (auto_language_defn): Likewise.
10419 * language.h (struct language_defn): Remove la_magic field.
10420 (LANG_MAGIC): Delete.
10421 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10422 * objc-lang.c (objc_language_defn): Likewise.
10423 * opencl-lang.c (opencl_language_defn): Likewise.
10424 * p-lang.c (pascal_language_defn): Likewise.
10425 * rust-lang.c (rust_language_defn): Likewise.
10427 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10429 * riscv-tdep.c (riscv_type_align): New function.
10430 (riscv_type_alignment): Delete.
10431 (riscv_arg_location): Use 'type_align'.
10432 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10434 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10436 * gdbtypes.c (type_align): A struct with no non-static fields also
10437 has alignment of 1.
10439 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10441 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10443 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10445 (riscv_struct_info::analyse): New implementation using new
10446 analyse_inner member function.
10447 (riscv_struct_info::field_offset): New member function.
10448 (riscv_struct_info::m_offsets): New member variable.
10449 (riscv_struct_info::analyse_inner): New private member function,
10450 takes the old implementation of riscv_struct_info::analyse but
10451 extended to track field offsets.
10452 (riscv_call_arg_struct): Update the struct folding special cases
10453 to handle cases where empty C++ structs, which are non-zero
10455 (riscv_arg_location): Initialise the length of each location, a
10456 non-zero length now indicates the location is in use.
10457 (riscv_push_dummy_call): Allow for the first location having a
10458 non-zero offset when setting up arguments.
10459 (riscv_return_value): Likewise, but for return values.
10461 2019-04-11 Tom Tromey <tromey@adacore.com>
10463 * utils.c (internal_vproblem): Make "msg" const.
10465 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10467 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10468 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10469 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10470 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10472 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10474 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10476 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10477 of amd64_collect_native_gregset.
10478 (amd64_linux_nat_target::store_registers): Likewise.
10480 2019-04-10 Tom Tromey <tom@tromey.com>
10482 * symtab.c (lookup_global_symbol_from_objfile)
10483 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10484 * objfiles.h (class separate_debug_iterator): New.
10485 (class separate_debug_range): New.
10486 (struct objfile) <separate_debug_objfiles>: New method.
10487 (objfile_separate_debug_iterate): Don't declare.
10488 * objfiles.c (separate_debug_iterator::operator++): Rename from
10489 objfile_separate_debug_iterate.
10490 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10492 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10495 2019-04-10 Tom Tromey <tom@tromey.com>
10497 * symfile.c (reread_symbols): Remove old comment.
10498 * objfiles.c (free_all_objfiles): Fix a typo.
10500 2019-04-10 Tom Tromey <tom@tromey.com>
10502 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10503 * minsyms.c (lookup_minimal_symbol): Use foreach.
10504 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10505 (lookup_minimal_symbol_solib_trampoline): Likewise.
10506 * symfile.c (reread_symbols): Use foreach.
10508 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10509 Tom Tromey <tromey@adacore.com>
10512 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10513 (rust_lex_int_test): Change "value" to be LONGEST.
10514 (rust_lex_tests): Add test for long integer literal.
10516 2019-04-09 Tom Tromey <tromey@adacore.com>
10518 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10520 (extended_remote_target::attach): Update.
10521 (remote_target::remote_notice_new_inferior): Update.
10522 (remote_target::add_current_inferior_and_thread): Update.
10523 * inferior.c (exit_inferior_1): Use "false".
10524 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10526 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10528 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10529 the "start" command.
10531 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10533 * python/py-inferior.c (infpy_thread_from_thread_handle):
10534 Adjust comments to reflect renaming of thread_from_thread_handle
10535 to thread_from_handle. Adjust keywords. Fix type error message.
10536 (inferior_object_methods): Add thread_from_handle. Retain
10537 thread_from_thread_handle, but mark it as deprecated.
10539 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10541 * gdbthread.h (find_thread_by_handle): Revise declaration.
10542 * thread.c (find_thread_by_handle): Likewise. Adjust
10543 implementation too.
10544 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10545 support for buffer objects as handles.
10547 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10549 * python/py-infthread.c (thpy_thread_handle): New function.
10550 (thread_object_methods): Register thpy_thread_handle.
10552 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10554 * gdbthread.h (thread_to_thread_handle): Declare.
10555 * thread.c (gdbtypes.h): Include.
10556 (thread_to_thread_handle): New function.
10558 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10559 (target_thread_info_to_thread_handle): Declare.
10560 * target.c (target_thread_info_to_thread_handle): New function.
10561 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10562 * target-delegates.c: Regenerate.
10564 * linux-thread-db.c (class thread_db_target): Add method
10565 thread_info_to_thread_handle.
10566 (thread_db_target::thread_info_to_thread_handle): Define.
10567 * remote.c (class remote_target): Add new method
10568 thread_info_to_thread_handle.
10569 (remote_target::thread_info_to_thread_handle): Define.
10571 2019-04-08 Pedro Alves <palves@redhat.com>
10573 * common/common-exceptions.c (throw_exception): Don't create
10574 named object to throw; throw directly.
10575 (throw_it): Likewise. Don't initialize gdb_exception::message
10576 here, with new; pass FMT and AP to the ctor instead.
10577 * common/common-exceptions.h: Include <string>.
10578 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10579 const char *, va_list)): New ctor. Use std::make_shared.
10580 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10582 (gdb_exception_error::gdb_exception_error(enum errors, const char
10584 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10586 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10588 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10589 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10592 2019-04-08 Tom Tromey <tom@tromey.com>
10594 * valops.c (value_rtti_indirect_type): Replace throw_exception
10596 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10598 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10600 * target.c (target_translate_tls_address): Replace throw_exception
10602 * stack.c (frame_apply_command_count): Replace throw_exception
10604 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10606 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10608 * rs6000-tdep.c (rs6000_frame_cache)
10609 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10610 * remote.c: Replace throw_exception with throw.
10611 * record-full.c (record_full_message, record_full_wait_1)
10612 (record_full_restore): Replace throw_exception with throw.
10614 (get_thread_current_frame_id, record_btrace_start_replaying)
10615 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10616 (cmd_record_btrace_start): Replace throw_exception with throw.
10617 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10619 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10620 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10622 (find_linespec_symbols): Replace throw_exception with throw.
10623 * infrun.c (displaced_step_prepare, resume): Replace
10624 throw_exception with throw.
10625 * infcmd.c (post_create_inferior): Replace throw_exception with
10627 * inf-loop.c (inferior_event_handler): Replace throw_exception
10629 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10630 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10631 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10632 (get_prev_frame_always, get_frame_pc_if_available)
10633 (get_frame_address_in_block_if_available, get_frame_language):
10634 Replace throw_exception with throw.
10635 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10636 throw_exception with throw.
10637 * eval.c (fetch_subexp_value, evaluate_var_value)
10638 (evaluate_funcall, evaluate_subexp_standard): Replace
10639 throw_exception with throw.
10640 * dwarf2loc.c (call_site_find_chain)
10641 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10642 Replace throw_exception with throw.
10643 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10645 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10647 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10648 * completer.c (complete_line_internal): Replace throw_exception
10650 * compile/compile-object-run.c (compile_object_run): Replace
10651 throw_exception with throw.
10652 * cli/cli-script.c (process_next_line): Replace throw_exception
10654 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10655 (btrace_enable, btrace_maint_update_pt_packets): Replace
10656 throw_exception with throw.
10657 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10658 throw_exception with throw.
10659 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10660 throw_exception with throw.
10661 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10662 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10663 * aarch64-tdep.c (aarch64_make_prologue_cache)
10664 (aarch64_make_stub_cache): Replace throw_exception with throw.
10666 2019-04-08 Tom Tromey <tom@tromey.com>
10668 * common/common-exceptions.c (throw_exception): Rename from
10669 throw_exception_cxx. Remove old copy. Make argument const.
10670 (throw_it): Create and throw exception objects directly.
10671 * common/common-exceptions.h (throw_exception): Make argument
10673 (struct gdb_exception_error): Add constructor.
10674 (struct gdb_exception_quit): Add constructor.
10676 2019-04-08 Tom Tromey <tom@tromey.com>
10678 * common/common-exceptions.h (exception_rethrow): Don't declare.
10679 (TRY_SJLJ): Update comment.
10680 (TRY, CATCH, END_CATCH): Remove.
10681 * common/common-exceptions.c (exception_rethrow): Remove.
10683 2019-04-08 Tom Tromey <tom@tromey.com>
10685 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10687 (gdb_exception_error): Rename from
10688 gdb_exception_RETURN_MASK_ERROR.
10689 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10690 (gdb_quit_bad_alloc): Update.
10691 * aarch64-tdep.c: Update.
10692 * ada-lang.c: Update.
10693 * ada-typeprint.c: Update.
10694 * ada-valprint.c: Update.
10695 * amd64-tdep.c: Update.
10696 * arch-utils.c: Update.
10697 * break-catch-throw.c: Update.
10698 * breakpoint.c: Update.
10699 * btrace.c: Update.
10700 * c-varobj.c: Update.
10701 * cli/cli-cmds.c: Update.
10702 * cli/cli-interp.c: Update.
10703 * cli/cli-script.c: Update.
10704 * common/common-exceptions.c: Update.
10705 * common/new-op.c: Update.
10706 * common/selftest.c: Update.
10707 * compile/compile-c-symbols.c: Update.
10708 * compile/compile-cplus-symbols.c: Update.
10709 * compile/compile-object-load.c: Update.
10710 * compile/compile-object-run.c: Update.
10711 * completer.c: Update.
10712 * corelow.c: Update.
10713 * cp-abi.c: Update.
10714 * cp-support.c: Update.
10715 * cp-valprint.c: Update.
10716 * darwin-nat.c: Update.
10717 * disasm-selftests.c: Update.
10718 * dtrace-probe.c: Update.
10719 * dwarf-index-cache.c: Update.
10720 * dwarf-index-write.c: Update.
10721 * dwarf2-frame-tailcall.c: Update.
10722 * dwarf2-frame.c: Update.
10723 * dwarf2loc.c: Update.
10724 * dwarf2read.c: Update.
10726 * event-loop.c: Update.
10727 * event-top.c: Update.
10729 * f-valprint.c: Update.
10730 * fbsd-tdep.c: Update.
10731 * frame-unwind.c: Update.
10733 * gdbtypes.c: Update.
10734 * gnu-v3-abi.c: Update.
10735 * guile/guile-internal.h: Update.
10736 * guile/scm-block.c: Update.
10737 * guile/scm-breakpoint.c: Update.
10738 * guile/scm-cmd.c: Update.
10739 * guile/scm-disasm.c: Update.
10740 * guile/scm-frame.c: Update.
10741 * guile/scm-lazy-string.c: Update.
10742 * guile/scm-math.c: Update.
10743 * guile/scm-param.c: Update.
10744 * guile/scm-ports.c: Update.
10745 * guile/scm-pretty-print.c: Update.
10746 * guile/scm-symbol.c: Update.
10747 * guile/scm-symtab.c: Update.
10748 * guile/scm-type.c: Update.
10749 * guile/scm-value.c: Update.
10750 * i386-linux-tdep.c: Update.
10751 * i386-tdep.c: Update.
10752 * inf-loop.c: Update.
10753 * infcall.c: Update.
10754 * infcmd.c: Update.
10755 * infrun.c: Update.
10757 * language.c: Update.
10758 * linespec.c: Update.
10759 * linux-fork.c: Update.
10760 * linux-nat.c: Update.
10761 * linux-tdep.c: Update.
10762 * linux-thread-db.c: Update.
10764 * mi/mi-cmd-break.c: Update.
10765 * mi/mi-cmd-stack.c: Update.
10766 * mi/mi-interp.c: Update.
10767 * mi/mi-main.c: Update.
10768 * objc-lang.c: Update.
10769 * p-valprint.c: Update.
10771 * ppc-linux-tdep.c: Update.
10772 * printcmd.c: Update.
10773 * python/py-arch.c: Update.
10774 * python/py-breakpoint.c: Update.
10775 * python/py-cmd.c: Update.
10776 * python/py-finishbreakpoint.c: Update.
10777 * python/py-frame.c: Update.
10778 * python/py-framefilter.c: Update.
10779 * python/py-gdb-readline.c: Update.
10780 * python/py-inferior.c: Update.
10781 * python/py-infthread.c: Update.
10782 * python/py-lazy-string.c: Update.
10783 * python/py-linetable.c: Update.
10784 * python/py-objfile.c: Update.
10785 * python/py-param.c: Update.
10786 * python/py-prettyprint.c: Update.
10787 * python/py-progspace.c: Update.
10788 * python/py-record-btrace.c: Update.
10789 * python/py-record.c: Update.
10790 * python/py-symbol.c: Update.
10791 * python/py-type.c: Update.
10792 * python/py-unwind.c: Update.
10793 * python/py-utils.c: Update.
10794 * python/py-value.c: Update.
10795 * python/python.c: Update.
10796 * record-btrace.c: Update.
10797 * record-full.c: Update.
10798 * remote-fileio.c: Update.
10799 * remote.c: Update.
10800 * riscv-tdep.c: Update.
10801 * rs6000-aix-tdep.c: Update.
10802 * rs6000-tdep.c: Update.
10803 * rust-exp.y: Update.
10804 * rust-lang.c: Update.
10805 * s390-tdep.c: Update.
10806 * selftest-arch.c: Update.
10807 * solib-dsbt.c: Update.
10808 * solib-frv.c: Update.
10809 * solib-spu.c: Update.
10810 * solib-svr4.c: Update.
10812 * sparc64-linux-tdep.c: Update.
10814 * symfile-mem.c: Update.
10815 * symmisc.c: Update.
10816 * target.c: Update.
10817 * thread.c: Update.
10819 * tracefile-tfile.c: Update.
10820 * tui/tui.c: Update.
10821 * typeprint.c: Update.
10822 * unittests/cli-utils-selftests.c: Update.
10823 * unittests/parse-connection-spec-selftests.c: Update.
10824 * valops.c: Update.
10825 * valprint.c: Update.
10827 * varobj.c: Update.
10828 * windows-nat.c: Update.
10829 * x86-linux-nat.c: Update.
10830 * xml-support.c: Update.
10832 2019-04-08 Tom Tromey <tom@tromey.com>
10834 * xml-support.c: Use C++ exception handling.
10835 * x86-linux-nat.c: Use C++ exception handling.
10836 * windows-nat.c: Use C++ exception handling.
10837 * varobj.c: Use C++ exception handling.
10838 * value.c: Use C++ exception handling.
10839 * valprint.c: Use C++ exception handling.
10840 * valops.c: Use C++ exception handling.
10841 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10843 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10844 * typeprint.c: Use C++ exception handling.
10845 * tui/tui.c: Use C++ exception handling.
10846 * tracefile-tfile.c: Use C++ exception handling.
10847 * top.c: Use C++ exception handling.
10848 * thread.c: Use C++ exception handling.
10849 * target.c: Use C++ exception handling.
10850 * symmisc.c: Use C++ exception handling.
10851 * symfile-mem.c: Use C++ exception handling.
10852 * stack.c: Use C++ exception handling.
10853 * sparc64-linux-tdep.c: Use C++ exception handling.
10854 * solib.c: Use C++ exception handling.
10855 * solib-svr4.c: Use C++ exception handling.
10856 * solib-spu.c: Use C++ exception handling.
10857 * solib-frv.c: Use C++ exception handling.
10858 * solib-dsbt.c: Use C++ exception handling.
10859 * selftest-arch.c: Use C++ exception handling.
10860 * s390-tdep.c: Use C++ exception handling.
10861 * rust-lang.c: Use C++ exception handling.
10862 * rust-exp.y: Use C++ exception handling.
10863 * rs6000-tdep.c: Use C++ exception handling.
10864 * rs6000-aix-tdep.c: Use C++ exception handling.
10865 * riscv-tdep.c: Use C++ exception handling.
10866 * remote.c: Use C++ exception handling.
10867 * remote-fileio.c: Use C++ exception handling.
10868 * record-full.c: Use C++ exception handling.
10869 * record-btrace.c: Use C++ exception handling.
10870 * python/python.c: Use C++ exception handling.
10871 * python/py-value.c: Use C++ exception handling.
10872 * python/py-utils.c: Use C++ exception handling.
10873 * python/py-unwind.c: Use C++ exception handling.
10874 * python/py-type.c: Use C++ exception handling.
10875 * python/py-symbol.c: Use C++ exception handling.
10876 * python/py-record.c: Use C++ exception handling.
10877 * python/py-record-btrace.c: Use C++ exception handling.
10878 * python/py-progspace.c: Use C++ exception handling.
10879 * python/py-prettyprint.c: Use C++ exception handling.
10880 * python/py-param.c: Use C++ exception handling.
10881 * python/py-objfile.c: Use C++ exception handling.
10882 * python/py-linetable.c: Use C++ exception handling.
10883 * python/py-lazy-string.c: Use C++ exception handling.
10884 * python/py-infthread.c: Use C++ exception handling.
10885 * python/py-inferior.c: Use C++ exception handling.
10886 * python/py-gdb-readline.c: Use C++ exception handling.
10887 * python/py-framefilter.c: Use C++ exception handling.
10888 * python/py-frame.c: Use C++ exception handling.
10889 * python/py-finishbreakpoint.c: Use C++ exception handling.
10890 * python/py-cmd.c: Use C++ exception handling.
10891 * python/py-breakpoint.c: Use C++ exception handling.
10892 * python/py-arch.c: Use C++ exception handling.
10893 * printcmd.c: Use C++ exception handling.
10894 * ppc-linux-tdep.c: Use C++ exception handling.
10895 * parse.c: Use C++ exception handling.
10896 * p-valprint.c: Use C++ exception handling.
10897 * objc-lang.c: Use C++ exception handling.
10898 * mi/mi-main.c: Use C++ exception handling.
10899 * mi/mi-interp.c: Use C++ exception handling.
10900 * mi/mi-cmd-stack.c: Use C++ exception handling.
10901 * mi/mi-cmd-break.c: Use C++ exception handling.
10902 * main.c: Use C++ exception handling.
10903 * linux-thread-db.c: Use C++ exception handling.
10904 * linux-tdep.c: Use C++ exception handling.
10905 * linux-nat.c: Use C++ exception handling.
10906 * linux-fork.c: Use C++ exception handling.
10907 * linespec.c: Use C++ exception handling.
10908 * language.c: Use C++ exception handling.
10909 * jit.c: Use C++ exception handling.
10910 * infrun.c: Use C++ exception handling.
10911 * infcmd.c: Use C++ exception handling.
10912 * infcall.c: Use C++ exception handling.
10913 * inf-loop.c: Use C++ exception handling.
10914 * i386-tdep.c: Use C++ exception handling.
10915 * i386-linux-tdep.c: Use C++ exception handling.
10916 * guile/scm-value.c: Use C++ exception handling.
10917 * guile/scm-type.c: Use C++ exception handling.
10918 * guile/scm-symtab.c: Use C++ exception handling.
10919 * guile/scm-symbol.c: Use C++ exception handling.
10920 * guile/scm-pretty-print.c: Use C++ exception handling.
10921 * guile/scm-ports.c: Use C++ exception handling.
10922 * guile/scm-param.c: Use C++ exception handling.
10923 * guile/scm-math.c: Use C++ exception handling.
10924 * guile/scm-lazy-string.c: Use C++ exception handling.
10925 * guile/scm-frame.c: Use C++ exception handling.
10926 * guile/scm-disasm.c: Use C++ exception handling.
10927 * guile/scm-cmd.c: Use C++ exception handling.
10928 * guile/scm-breakpoint.c: Use C++ exception handling.
10929 * guile/scm-block.c: Use C++ exception handling.
10930 * guile/guile-internal.h: Use C++ exception handling.
10931 * gnu-v3-abi.c: Use C++ exception handling.
10932 * gdbtypes.c: Use C++ exception handling.
10933 * frame.c: Use C++ exception handling.
10934 * frame-unwind.c: Use C++ exception handling.
10935 * fbsd-tdep.c: Use C++ exception handling.
10936 * f-valprint.c: Use C++ exception handling.
10937 * exec.c: Use C++ exception handling.
10938 * event-top.c: Use C++ exception handling.
10939 * event-loop.c: Use C++ exception handling.
10940 * eval.c: Use C++ exception handling.
10941 * dwarf2read.c: Use C++ exception handling.
10942 * dwarf2loc.c: Use C++ exception handling.
10943 * dwarf2-frame.c: Use C++ exception handling.
10944 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10945 * dwarf-index-write.c: Use C++ exception handling.
10946 * dwarf-index-cache.c: Use C++ exception handling.
10947 * dtrace-probe.c: Use C++ exception handling.
10948 * disasm-selftests.c: Use C++ exception handling.
10949 * darwin-nat.c: Use C++ exception handling.
10950 * cp-valprint.c: Use C++ exception handling.
10951 * cp-support.c: Use C++ exception handling.
10952 * cp-abi.c: Use C++ exception handling.
10953 * corelow.c: Use C++ exception handling.
10954 * completer.c: Use C++ exception handling.
10955 * compile/compile-object-run.c: Use C++ exception handling.
10956 * compile/compile-object-load.c: Use C++ exception handling.
10957 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10958 * compile/compile-c-symbols.c: Use C++ exception handling.
10959 * common/selftest.c: Use C++ exception handling.
10960 * common/new-op.c: Use C++ exception handling.
10961 * cli/cli-script.c: Use C++ exception handling.
10962 * cli/cli-interp.c: Use C++ exception handling.
10963 * cli/cli-cmds.c: Use C++ exception handling.
10964 * c-varobj.c: Use C++ exception handling.
10965 * btrace.c: Use C++ exception handling.
10966 * breakpoint.c: Use C++ exception handling.
10967 * break-catch-throw.c: Use C++ exception handling.
10968 * arch-utils.c: Use C++ exception handling.
10969 * amd64-tdep.c: Use C++ exception handling.
10970 * ada-valprint.c: Use C++ exception handling.
10971 * ada-typeprint.c: Use C++ exception handling.
10972 * ada-lang.c: Use C++ exception handling.
10973 * aarch64-tdep.c: Use C++ exception handling.
10975 2019-04-08 Tom Tromey <tom@tromey.com>
10977 * xml-support.c (gdb_xml_parser::parse): Update.
10978 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10979 * value.c (show_convenience): Update.
10980 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10981 (test_parse_flags_qcs): Update.
10982 * thread.c (thr_try_catch_cmd): Update.
10983 * target.c (target_translate_tls_address): Update.
10984 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10985 (info_frame_command_core, frame_apply_command_count): Update.
10986 * rust-exp.y (rust_lex_exception_test): Update.
10987 * riscv-tdep.c (riscv_print_one_register_info): Update.
10988 * remote.c (remote_target::enable_btrace): Update.
10989 * record-btrace.c (record_btrace_enable_warn): Update.
10990 * python/py-utils.c (gdbpy_convert_exception): Update.
10991 * printcmd.c (do_one_display, print_variable_and_value): Update.
10992 * mi/mi-main.c (mi_print_exception): Update.
10993 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10994 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10995 * linux-nat.c (linux_nat_target::attach): Update.
10996 * linux-fork.c (class scoped_switch_fork_info): Update.
10997 * infrun.c (displaced_step_prepare): Update.
10998 * infcall.c (call_function_by_hand_dummy): Update.
10999 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11000 * gnu-v3-abi.c (print_one_vtable): Update.
11001 * frame.c (get_prev_frame_always): Update.
11002 * f-valprint.c (info_common_command_for_block): Update.
11003 * exec.c (try_open_exec_file): Update.
11004 * exceptions.c (print_exception, exception_print)
11005 (exception_fprintf, exception_print_same): Update.
11006 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11007 * dwarf-index-cache.c (index_cache::store)
11008 (index_cache::lookup_gdb_index): Update.
11009 * darwin-nat.c (maybe_cache_shell): Update.
11010 * cp-valprint.c (cp_print_value_fields): Update.
11011 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11012 (gcc_cplus_symbol_address): Update.
11013 * compile/compile-c-symbols.c (gcc_convert_symbol)
11014 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11015 * common/selftest.c: Update.
11016 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11018 (exception_try_scope_entry, exception_try_scope_exit): Don't
11020 (struct exception_try_scope): Remove.
11021 (TRY): Don't use exception_try_scope.
11022 (struct gdb_exception): Add constructor, operator=.
11023 <what>: New method.
11024 (struct gdb_exception_RETURN_MASK_ALL)
11025 (struct gdb_exception_RETURN_MASK_ERROR)
11026 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11027 (struct gdb_quit_bad_alloc): Update.
11028 * common/common-exceptions.c (exception_none): Change
11030 (struct catcher) <state, exception>: Initialize inline.
11031 <prev>: Remove member.
11032 (current_catcher): Remove.
11033 (catchers): New global.
11034 (exceptions_state_mc_init): Simplify.
11035 (catcher_pop): Remove.
11036 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11037 (try_scope_depth, exception_try_scope_entry)
11038 (exception_try_scope_exit): Remove.
11039 (throw_exception_sjlj): Update.
11040 (exception_messages, exception_messages_size): Remove.
11041 (throw_it): Simplify.
11042 (gdb_exception_sliced_copy): Remove.
11043 (throw_exception_cxx): Update.
11044 * cli/cli-script.c (script_from_file): Update.
11045 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11047 * ada-valprint.c (ada_val_print): Update.
11048 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11049 (create_excep_cond_exprs): Update.
11051 2019-04-08 Tom Tromey <tom@tromey.com>
11053 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11054 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11055 (TRY, CATCH, END_CATCH): Remove some definitions.
11056 * common/common-exceptions.c: Don't use GDB_XCPT.
11057 (catcher_list_size): Remove.
11058 (throw_exception, throw_it): Simplify.
11060 2019-04-05 Tom Tromey <tom@tromey.com>
11062 Revert the header-sorting patch.
11063 * ft32-tdep.c: Revert.
11064 * frv-tdep.c: Revert.
11065 * frv-linux-tdep.c: Revert.
11067 * frame-unwind.c: Revert.
11068 * frame-base.c: Revert.
11069 * fork-child.c: Revert.
11070 * findvar.c: Revert.
11071 * findcmd.c: Revert.
11072 * filesystem.c: Revert.
11073 * filename-seen-cache.h: Revert.
11074 * filename-seen-cache.c: Revert.
11075 * fbsd-tdep.c: Revert.
11076 * fbsd-nat.h: Revert.
11077 * fbsd-nat.c: Revert.
11078 * f-valprint.c: Revert.
11079 * f-typeprint.c: Revert.
11080 * f-lang.c: Revert.
11081 * extension.h: Revert.
11082 * extension.c: Revert.
11083 * extension-priv.h: Revert.
11084 * expprint.c: Revert.
11087 * exceptions.c: Revert.
11088 * event-top.c: Revert.
11089 * event-loop.c: Revert.
11091 * elfread.c: Revert.
11092 * dwarf2read.h: Revert.
11093 * dwarf2read.c: Revert.
11094 * dwarf2loc.c: Revert.
11095 * dwarf2expr.h: Revert.
11096 * dwarf2expr.c: Revert.
11097 * dwarf2-frame.c: Revert.
11098 * dwarf2-frame-tailcall.c: Revert.
11099 * dwarf-index-write.h: Revert.
11100 * dwarf-index-write.c: Revert.
11101 * dwarf-index-common.c: Revert.
11102 * dwarf-index-cache.h: Revert.
11103 * dwarf-index-cache.c: Revert.
11104 * dummy-frame.c: Revert.
11105 * dtrace-probe.c: Revert.
11106 * disasm.h: Revert.
11107 * disasm.c: Revert.
11108 * disasm-selftests.c: Revert.
11109 * dictionary.c: Revert.
11110 * dicos-tdep.c: Revert.
11111 * demangle.c: Revert.
11112 * dcache.h: Revert.
11113 * dcache.c: Revert.
11114 * darwin-nat.h: Revert.
11115 * darwin-nat.c: Revert.
11116 * darwin-nat-info.c: Revert.
11117 * d-valprint.c: Revert.
11118 * d-namespace.c: Revert.
11119 * d-lang.c: Revert.
11121 * csky-tdep.c: Revert.
11122 * csky-linux-tdep.c: Revert.
11123 * cris-tdep.c: Revert.
11124 * cris-linux-tdep.c: Revert.
11125 * cp-valprint.c: Revert.
11126 * cp-support.c: Revert.
11127 * cp-namespace.c: Revert.
11128 * cp-abi.c: Revert.
11129 * corelow.c: Revert.
11130 * corefile.c: Revert.
11131 * continuations.c: Revert.
11132 * completer.h: Revert.
11133 * completer.c: Revert.
11134 * complaints.c: Revert.
11135 * coffread.c: Revert.
11136 * coff-pe-read.c: Revert.
11137 * cli-out.h: Revert.
11138 * cli-out.c: Revert.
11139 * charset.c: Revert.
11140 * c-varobj.c: Revert.
11141 * c-valprint.c: Revert.
11142 * c-typeprint.c: Revert.
11143 * c-lang.c: Revert.
11144 * buildsym.c: Revert.
11145 * buildsym-legacy.c: Revert.
11146 * build-id.h: Revert.
11147 * build-id.c: Revert.
11148 * btrace.c: Revert.
11149 * bsd-uthread.c: Revert.
11150 * breakpoint.h: Revert.
11151 * breakpoint.c: Revert.
11152 * break-catch-throw.c: Revert.
11153 * break-catch-syscall.c: Revert.
11154 * break-catch-sig.c: Revert.
11155 * blockframe.c: Revert.
11157 * bfin-tdep.c: Revert.
11158 * bfin-linux-tdep.c: Revert.
11159 * bfd-target.c: Revert.
11160 * bcache.c: Revert.
11161 * ax-general.c: Revert.
11162 * ax-gdb.h: Revert.
11163 * ax-gdb.c: Revert.
11164 * avr-tdep.c: Revert.
11166 * auto-load.c: Revert.
11167 * arm-wince-tdep.c: Revert.
11168 * arm-tdep.c: Revert.
11169 * arm-symbian-tdep.c: Revert.
11170 * arm-pikeos-tdep.c: Revert.
11171 * arm-obsd-tdep.c: Revert.
11172 * arm-nbsd-tdep.c: Revert.
11173 * arm-nbsd-nat.c: Revert.
11174 * arm-linux-tdep.c: Revert.
11175 * arm-linux-nat.c: Revert.
11176 * arm-fbsd-tdep.c: Revert.
11177 * arm-fbsd-nat.c: Revert.
11178 * arm-bsd-tdep.c: Revert.
11179 * arch-utils.c: Revert.
11180 * arc-tdep.c: Revert.
11181 * arc-newlib-tdep.c: Revert.
11182 * annotate.h: Revert.
11183 * annotate.c: Revert.
11184 * amd64-windows-tdep.c: Revert.
11185 * amd64-windows-nat.c: Revert.
11186 * amd64-tdep.c: Revert.
11187 * amd64-sol2-tdep.c: Revert.
11188 * amd64-obsd-tdep.c: Revert.
11189 * amd64-obsd-nat.c: Revert.
11190 * amd64-nbsd-tdep.c: Revert.
11191 * amd64-nbsd-nat.c: Revert.
11192 * amd64-nat.c: Revert.
11193 * amd64-linux-tdep.c: Revert.
11194 * amd64-linux-nat.c: Revert.
11195 * amd64-fbsd-tdep.c: Revert.
11196 * amd64-fbsd-nat.c: Revert.
11197 * amd64-dicos-tdep.c: Revert.
11198 * amd64-darwin-tdep.c: Revert.
11199 * amd64-bsd-nat.c: Revert.
11200 * alpha-tdep.c: Revert.
11201 * alpha-obsd-tdep.c: Revert.
11202 * alpha-nbsd-tdep.c: Revert.
11203 * alpha-mdebug-tdep.c: Revert.
11204 * alpha-linux-tdep.c: Revert.
11205 * alpha-linux-nat.c: Revert.
11206 * alpha-bsd-tdep.c: Revert.
11207 * alpha-bsd-nat.c: Revert.
11208 * aix-thread.c: Revert.
11210 * addrmap.c: Revert.
11211 * ada-varobj.c: Revert.
11212 * ada-valprint.c: Revert.
11213 * ada-typeprint.c: Revert.
11214 * ada-tasks.c: Revert.
11215 * ada-lang.c: Revert.
11216 * aarch64-tdep.c: Revert.
11217 * aarch64-ravenscar-thread.c: Revert.
11218 * aarch64-newlib-tdep.c: Revert.
11219 * aarch64-linux-tdep.c: Revert.
11220 * aarch64-linux-nat.c: Revert.
11221 * aarch64-fbsd-tdep.c: Revert.
11222 * aarch64-fbsd-nat.c: Revert.
11223 * aarch32-linux-nat.c: Revert.
11225 2019-04-05 Tom Tromey <tom@tromey.com>
11227 * ft32-tdep.c: Sort headers.
11228 * frv-tdep.c: Sort headers.
11229 * frv-linux-tdep.c: Sort headers.
11230 * frame.c: Sort headers.
11231 * frame-unwind.c: Sort headers.
11232 * frame-base.c: Sort headers.
11233 * fork-child.c: Sort headers.
11234 * findvar.c: Sort headers.
11235 * findcmd.c: Sort headers.
11236 * filesystem.c: Sort headers.
11237 * filename-seen-cache.h: Sort headers.
11238 * filename-seen-cache.c: Sort headers.
11239 * fbsd-tdep.c: Sort headers.
11240 * fbsd-nat.h: Sort headers.
11241 * fbsd-nat.c: Sort headers.
11242 * f-valprint.c: Sort headers.
11243 * f-typeprint.c: Sort headers.
11244 * f-lang.c: Sort headers.
11245 * extension.h: Sort headers.
11246 * extension.c: Sort headers.
11247 * extension-priv.h: Sort headers.
11248 * expprint.c: Sort headers.
11249 * exec.h: Sort headers.
11250 * exec.c: Sort headers.
11251 * exceptions.c: Sort headers.
11252 * event-top.c: Sort headers.
11253 * event-loop.c: Sort headers.
11254 * eval.c: Sort headers.
11255 * elfread.c: Sort headers.
11256 * dwarf2read.h: Sort headers.
11257 * dwarf2read.c: Sort headers.
11258 * dwarf2loc.c: Sort headers.
11259 * dwarf2expr.h: Sort headers.
11260 * dwarf2expr.c: Sort headers.
11261 * dwarf2-frame.c: Sort headers.
11262 * dwarf2-frame-tailcall.c: Sort headers.
11263 * dwarf-index-write.h: Sort headers.
11264 * dwarf-index-write.c: Sort headers.
11265 * dwarf-index-common.c: Sort headers.
11266 * dwarf-index-cache.h: Sort headers.
11267 * dwarf-index-cache.c: Sort headers.
11268 * dummy-frame.c: Sort headers.
11269 * dtrace-probe.c: Sort headers.
11270 * disasm.h: Sort headers.
11271 * disasm.c: Sort headers.
11272 * disasm-selftests.c: Sort headers.
11273 * dictionary.c: Sort headers.
11274 * dicos-tdep.c: Sort headers.
11275 * demangle.c: Sort headers.
11276 * dcache.h: Sort headers.
11277 * dcache.c: Sort headers.
11278 * darwin-nat.h: Sort headers.
11279 * darwin-nat.c: Sort headers.
11280 * darwin-nat-info.c: Sort headers.
11281 * d-valprint.c: Sort headers.
11282 * d-namespace.c: Sort headers.
11283 * d-lang.c: Sort headers.
11284 * ctf.c: Sort headers.
11285 * csky-tdep.c: Sort headers.
11286 * csky-linux-tdep.c: Sort headers.
11287 * cris-tdep.c: Sort headers.
11288 * cris-linux-tdep.c: Sort headers.
11289 * cp-valprint.c: Sort headers.
11290 * cp-support.c: Sort headers.
11291 * cp-namespace.c: Sort headers.
11292 * cp-abi.c: Sort headers.
11293 * corelow.c: Sort headers.
11294 * corefile.c: Sort headers.
11295 * continuations.c: Sort headers.
11296 * completer.h: Sort headers.
11297 * completer.c: Sort headers.
11298 * complaints.c: Sort headers.
11299 * coffread.c: Sort headers.
11300 * coff-pe-read.c: Sort headers.
11301 * cli-out.h: Sort headers.
11302 * cli-out.c: Sort headers.
11303 * charset.c: Sort headers.
11304 * c-varobj.c: Sort headers.
11305 * c-valprint.c: Sort headers.
11306 * c-typeprint.c: Sort headers.
11307 * c-lang.c: Sort headers.
11308 * buildsym.c: Sort headers.
11309 * buildsym-legacy.c: Sort headers.
11310 * build-id.h: Sort headers.
11311 * build-id.c: Sort headers.
11312 * btrace.c: Sort headers.
11313 * bsd-uthread.c: Sort headers.
11314 * breakpoint.h: Sort headers.
11315 * breakpoint.c: Sort headers.
11316 * break-catch-throw.c: Sort headers.
11317 * break-catch-syscall.c: Sort headers.
11318 * break-catch-sig.c: Sort headers.
11319 * blockframe.c: Sort headers.
11320 * block.c: Sort headers.
11321 * bfin-tdep.c: Sort headers.
11322 * bfin-linux-tdep.c: Sort headers.
11323 * bfd-target.c: Sort headers.
11324 * bcache.c: Sort headers.
11325 * ax-general.c: Sort headers.
11326 * ax-gdb.h: Sort headers.
11327 * ax-gdb.c: Sort headers.
11328 * avr-tdep.c: Sort headers.
11329 * auxv.c: Sort headers.
11330 * auto-load.c: Sort headers.
11331 * arm-wince-tdep.c: Sort headers.
11332 * arm-tdep.c: Sort headers.
11333 * arm-symbian-tdep.c: Sort headers.
11334 * arm-pikeos-tdep.c: Sort headers.
11335 * arm-obsd-tdep.c: Sort headers.
11336 * arm-nbsd-tdep.c: Sort headers.
11337 * arm-nbsd-nat.c: Sort headers.
11338 * arm-linux-tdep.c: Sort headers.
11339 * arm-linux-nat.c: Sort headers.
11340 * arm-fbsd-tdep.c: Sort headers.
11341 * arm-fbsd-nat.c: Sort headers.
11342 * arm-bsd-tdep.c: Sort headers.
11343 * arch-utils.c: Sort headers.
11344 * arc-tdep.c: Sort headers.
11345 * arc-newlib-tdep.c: Sort headers.
11346 * annotate.h: Sort headers.
11347 * annotate.c: Sort headers.
11348 * amd64-windows-tdep.c: Sort headers.
11349 * amd64-windows-nat.c: Sort headers.
11350 * amd64-tdep.c: Sort headers.
11351 * amd64-sol2-tdep.c: Sort headers.
11352 * amd64-obsd-tdep.c: Sort headers.
11353 * amd64-obsd-nat.c: Sort headers.
11354 * amd64-nbsd-tdep.c: Sort headers.
11355 * amd64-nbsd-nat.c: Sort headers.
11356 * amd64-nat.c: Sort headers.
11357 * amd64-linux-tdep.c: Sort headers.
11358 * amd64-linux-nat.c: Sort headers.
11359 * amd64-fbsd-tdep.c: Sort headers.
11360 * amd64-fbsd-nat.c: Sort headers.
11361 * amd64-dicos-tdep.c: Sort headers.
11362 * amd64-darwin-tdep.c: Sort headers.
11363 * amd64-bsd-nat.c: Sort headers.
11364 * alpha-tdep.c: Sort headers.
11365 * alpha-obsd-tdep.c: Sort headers.
11366 * alpha-nbsd-tdep.c: Sort headers.
11367 * alpha-mdebug-tdep.c: Sort headers.
11368 * alpha-linux-tdep.c: Sort headers.
11369 * alpha-linux-nat.c: Sort headers.
11370 * alpha-bsd-tdep.c: Sort headers.
11371 * alpha-bsd-nat.c: Sort headers.
11372 * aix-thread.c: Sort headers.
11373 * agent.c: Sort headers.
11374 * addrmap.c: Sort headers.
11375 * ada-varobj.c: Sort headers.
11376 * ada-valprint.c: Sort headers.
11377 * ada-typeprint.c: Sort headers.
11378 * ada-tasks.c: Sort headers.
11379 * ada-lang.c: Sort headers.
11380 * aarch64-tdep.c: Sort headers.
11381 * aarch64-ravenscar-thread.c: Sort headers.
11382 * aarch64-newlib-tdep.c: Sort headers.
11383 * aarch64-linux-tdep.c: Sort headers.
11384 * aarch64-linux-nat.c: Sort headers.
11385 * aarch64-fbsd-tdep.c: Sort headers.
11386 * aarch64-fbsd-nat.c: Sort headers.
11387 * aarch32-linux-nat.c: Sort headers.
11389 2019-04-04 Tom Tromey <tom@tromey.com>
11391 * varobj.c (varobj_create): Update.
11392 * rust-exp.y (struct rust_parser) <update_innermost_block,
11393 lookup_symbol>: New methods.
11394 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11396 (rust_parser::rust_lookup_type)
11397 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11398 * printcmd.c (display_command, do_one_display): Update.
11399 * parser-defs.h (struct parser_state) <parser_state>: Add
11400 "tracker" parameter.
11401 (block_tracker): New member.
11402 (class innermost_block_tracker) <innermost_block_tracker>: Add
11404 <reset>: Remove method.
11405 (innermost_block): Don't declare.
11406 (null_post_parser): Update.
11407 * parse.c (innermost_block): Remove global.
11408 (write_dollar_variable): Update.
11409 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11410 Remove "tracker_types" parameter.
11411 (parse_expression): Add "tracker" parameter.
11412 (parse_expression_for_completion): Update.
11413 (null_post_parser): Add "tracker" parameter.
11414 * p-exp.y: Update rules.
11415 * m2-exp.y: Update rules.
11416 * language.h (struct language_defn) <la_post_parser>: Add
11417 "tracker" parameter.
11418 * go-exp.y: Update rules.
11419 * f-exp.y: Update rules.
11420 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11422 * d-exp.y: Update rules.
11423 * c-exp.y: Update rules.
11424 * breakpoint.c (set_breakpoint_condition): Create an
11425 innermost_block_tracker.
11426 (watch_command_1): Likewise.
11427 * ada-lang.c (resolve): Add "tracker" parameter.
11428 (resolve_subexp): Likewise.
11429 * ada-exp.y (write_var_from_sym): Update.
11431 2019-04-04 Tom Tromey <tom@tromey.com>
11433 * type-stack.h: New file.
11434 * type-stack.c: New file.
11435 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11437 (insert_into_type_stack, insert_type, push_type, push_type_int)
11438 (insert_type_address_space, pop_type, pop_type_int)
11439 (pop_typelist, pop_type_stack, append_type_stack)
11440 (push_type_stack, get_type_stack, push_typelist)
11441 (follow_type_instance_flags, follow_types): Don't declare.
11442 * parse.c (type_stack): Remove global.
11443 (parse_exp_in_context): Update.
11444 (insert_into_type_stack, insert_type, push_type, push_type_int)
11445 (insert_type_address_space, pop_type, pop_type_int)
11446 (pop_typelist, pop_type_stack, append_type_stack)
11447 (push_type_stack, get_type_stack, push_typelist)
11448 (follow_type_instance_flags, follow_types): Remove (moved to
11450 * f-exp.y (type_stack): New global.
11452 (push_kind_type, f_parse): Update.
11453 * d-exp.y (type_stack): New global.
11456 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11458 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11459 (HFILES_NO_SRCDIR): Add type-stack.h.
11461 2019-04-04 Tom Tromey <tom@tromey.com>
11463 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11464 (rust_parser::convert_ast_to_expression, rust_parse)
11465 (rust_lex_test_completion, rust_lex_tests): Update.
11466 * parser-defs.h (struct expr_completion_state): New.
11467 (struct parser_state) <parser_state>: Add completion parameter.
11468 <mark_struct_expression, mark_completion_tag>: New methods.
11469 <parse_completion, m_completion_state>: New members.
11470 (prefixify_expression, null_post_parser): Update.
11471 (mark_struct_expression, mark_completion_tag): Don't declare.
11472 * parse.c (parse_completion, expout_last_struct)
11473 (expout_tag_completion_type, expout_completion_name): Remove
11475 (parser_state::mark_struct_expression)
11476 (parser_state::mark_completion_tag): Now methods.
11477 (prefixify_expression): Add last_struct parameter.
11478 (prefixify_subexp): Likewise.
11479 (parse_exp_1): Update.
11480 (parse_exp_in_context): Add cstate parameter. Update.
11481 (parse_expression_for_completion): Create an
11482 expr_completion_state.
11483 (null_post_parser): Add "completion" parameter.
11484 * p-exp.y: Update rules.
11486 * language.h (struct language_defn) <la_post_parser>: Add
11487 "completing" parameter.
11488 * go-exp.y: Update rules.
11489 (lex_one_token): Update.
11490 * expression.h (parse_completion): Don't declare.
11491 * d-exp.y: Update rules.
11492 (lex_one_token): Update rules.
11493 * c-exp.y: Update rules.
11494 (lex_one_token): Update.
11495 * ada-lang.c (resolve): Add "parse_completion" parameter.
11496 (resolve_subexp): Likewise.
11497 (ada_resolve_function): Likewise.
11499 2019-04-04 Tom Tromey <tom@tromey.com>
11501 * parser-defs.h (struct parser_state) <start_arglist,
11502 end_arglist>: New methods.
11503 <arglist_len, m_funcall_chain>: New members.
11504 (arglist_len, start_arglist, end_arglist): Don't declare.
11505 * parse.c (arglist_len, funcall_chain): Remove global.
11506 (start_arglist, end_arglist): Remove functions.
11507 (parse_exp_in_context): Update.
11508 * p-exp.y: Update rules.
11509 * m2-exp.y: Update rules.
11510 * go-exp.y: Update rules.
11511 * f-exp.y: Update rules.
11512 * d-exp.y: Update rules.
11513 * c-exp.y: Update rules.
11515 2019-04-04 Tom Tromey <tom@tromey.com>
11517 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11518 lex_operator, push_back>: New methods.
11520 (rust_parser::lex_hex, lex_escape): Rename and update.
11521 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11522 (rust_parser::lex_operator): Rename and update.
11523 (rust_parser::lex_number, rustyylex, rustyyerror)
11524 (rust_lex_test_init, rust_lex_test_sequence)
11525 (rust_lex_test_push_back, rust_lex_tests): Update.
11526 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11528 <lexptr, prev_lexptr>: New members.
11529 (lexptr, prev_lexptr): Don't declare.
11530 * parse.c (lexptr, prev_lexptr): Remove globals.
11531 (parse_exp_in_context): Update.
11532 * p-exp.y (yylex, yyerror): Update.
11533 * m2-exp.y (parse_number, yylex, yyerror): Update.
11534 * go-exp.y (lex_one_token, yyerror): Update.
11535 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11536 * d-exp.y (lex_one_token, yyerror): Update.
11537 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11538 (lex_one_token, yyerror): Update.
11539 * ada-lex.l (YY_INPUT): Update.
11540 (rewind_to_char): Update.
11541 * ada-exp.y (yyerror): Update.
11543 2019-04-04 Tom Tromey <tom@tromey.com>
11545 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11546 * parser-defs.h (struct parser_state) <parser_state>: Add new
11548 <comma_terminates>: New member.
11549 (comma_terminates): Don't declare global.
11550 * parse.c (comma_terminates): Remove global.
11551 (parse_exp_in_context): Update.
11552 * p-exp.y (yylex): Update.
11553 * m2-exp.y (yylex): Update.
11554 * go-exp.y (lex_one_token): Update.
11555 * f-exp.y (yylex): Update.
11556 * d-exp.y (lex_one_token): Update.
11557 * c-exp.y (lex_one_token): Update.
11558 * ada-lex.l: Update.
11560 2019-04-04 Tom Tromey <tom@tromey.com>
11562 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11563 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11564 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11565 * parser-defs.h (paren_depth): Don't declare.
11566 * parse.c (paren_depth): Remove global.
11567 (parse_exp_in_context): Update.
11568 * p-exp.y (paren_depth): New global.
11569 (pascal_parse): Initialize it.
11570 * m2-exp.y (paren_depth): New global.
11571 (m2_parse): Initialize it.
11572 * go-exp.y (paren_depth): New global.
11573 (go_parse): Initialize it.
11574 * f-exp.y (paren_depth): New global.
11575 (f_parse): Initialize it.
11576 * d-exp.y (paren_depth): New global.
11577 (d_parse): Initialize it.
11578 * c-exp.y (paren_depth): New global.
11579 (c_parse): Initialize it.
11580 * ada-lex.l (paren_depth): New global.
11581 (lexer_init): Initialize it.
11583 2019-04-04 Tom Tromey <tom@tromey.com>
11585 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11586 (rust_parser::convert_ast_to_type)
11587 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11588 * parser-defs.h (struct parser_state) <parser_state>: Add
11589 parameters. Initialize new members.
11590 <expression_context_block, expression_context_pc>: New members.
11591 * parse.c (expression_context_block, expression_context_pc):
11593 (parse_exp_in_context): Update.
11594 * p-exp.y: Update all rules.
11596 * m2-exp.y: Update all rules.
11598 * go-exp.y (yylex): Update.
11599 * f-exp.y (yylex): Update.
11600 * d-exp.y: Update all rules.
11602 * c-exp.y: Update all rules.
11603 (lex_one_token, classify_name, yylex, c_parse): Update.
11604 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11606 2019-04-04 Tom Tromey <tom@tromey.com>
11608 * gdbarch.h, gdbarch.c: Rebuild.
11609 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11611 (struct stap_parse_info): Replace "parser_state" with
11613 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11614 (parser_state): New class.
11615 * parse.c (expr_builder): Rename.
11616 (expr_builder::release): Rename.
11617 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11618 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11619 (write_exp_elt_longcst, write_exp_elt_floatcst)
11620 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11621 (write_exp_string_vector, write_exp_bitstring)
11622 (write_exp_msymbol, mark_struct_expression)
11623 (write_dollar_variable)
11624 (insert_type_address_space, increase_expout_size): Replace
11625 "parser_state" with "expr_builder".
11626 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11627 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11628 "parser_state" with "expr_builder".
11630 2019-04-04 Tom Tromey <tom@tromey.com>
11632 * rust-exp.y: Replace "parse_language" with method call.
11634 (yylex): Replace "parse_language" with method call.
11636 (yylex): Replace "parse_language" with method call.
11637 * go-exp.y (classify_name): Replace "parse_language" with method
11639 * f-exp.y (yylex): Replace "parse_language" with method call.
11640 * d-exp.y (lex_one_token): Replace "parse_language" with method
11643 (lex_one_token, classify_name, yylex): Replace "parse_language"
11645 * ada-exp.y (find_primitive_type, type_char)
11646 (type_system_address): Replace "parse_language" with method call.
11648 2019-04-04 Tom Tromey <tom@tromey.com>
11650 * rust-exp.y: Replace "parse_gdbarch" with method call.
11651 * parse.c (write_dollar_variable, insert_type_address_space):
11652 Replace "parse_gdbarch" with method call.
11653 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11655 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11657 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11658 "parse_gdbarch" with method call.
11659 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11661 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11662 "parse_gdbarch" with method call.
11663 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11664 "parse_gdbarch" with method call.
11665 * c-exp.y (parse_type, parse_number, classify_name): Replace
11666 "parse_gdbarch" with method call.
11667 * ada-lex.l: Replace "parse_gdbarch" with method call.
11668 * ada-exp.y (parse_type, find_primitive_type, type_char)
11669 (type_system_address): Replace "parse_gdbarch" with method call.
11671 2019-04-04 Tom Tromey <tom@tromey.com>
11673 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11674 * stap-probe.c (stap_parse_argument): Update.
11675 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11676 initial_size parameter.
11677 * rust-exp.y (rust_lex_tests): Update.
11678 * parse.c (parser_state): Update.
11679 (parse_exp_in_context): Update.
11680 * parser-defs.h (struct parser_state) <parser_state>: Remove
11681 "initial_size" parameter.
11683 2019-04-04 Tom Tromey <tom@tromey.com>
11685 * parser-defs.h (increase_expout_size): Don't declare.
11686 * parse.c (increase_expout_size): Now static.
11688 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11690 * gnu-nat.c (gnu_nat_target::wait): Fix
11691 target_waitstatus_to_string call.
11693 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11695 * eval.c (evaluate_subexp_standard): Handle internal functions
11696 during Fortran function call handling.
11698 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11700 * NEWS: Mention new internal functions.
11701 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11702 (read_base_type): Use dwarf2_init_complex_target_type.
11703 * value.c (creal_internal_fn): New function.
11704 (cimag_internal_fn): New function.
11705 (_initialize_values): Register new internal functions.
11707 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11709 * infrun.c (stop_all_threads): If debug_infrun, always
11710 trace the wait status after wait_one, using
11711 target_waitstatus_to_string and target_pid_to_str.
11712 (handle_inferior_event): Replace various trace of
11713 wait status kind by a single trace.
11714 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11715 wait status kind image by target_waitstatus_to_string.
11716 * target/waitstatus.c (target_waitstatus_to_string): Fix
11719 2019-04-01 Tom Tromey <tromey@adacore.com>
11722 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11724 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11725 Pedro Alves <palves@redhat.com>
11727 * top.c (quit_force): Call 'finalize_values'.
11728 * value.c (finalize_values): New function.
11729 * value.h (finalize_values): Declare.
11731 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11733 * NEWS: Announce $_gdb_major and $_gdb_minor.
11735 * top.c (init_gdb_version_vars): New function.
11736 (gdb_init): Call init_gdb_version_vars.
11738 2019-03-29 Tom Tromey <tromey@adacore.com>
11740 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11741 help text. Remove dead code.
11743 2019-03-29 Keith Seitz <keiths@redhat.com>
11745 From Siddhesh Poyarekar:
11746 * f-lang.h (f77_get_upperbound): Return LONGEST.
11747 (f77_get_lowerbound): Likewise.
11748 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11749 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11751 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11752 plongest to format print it.
11753 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11754 (f77_get_upperbound): Likewise.
11755 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11756 LOWER_BOUND to LONGEST.
11757 (f77_create_arrayprint_offset_tbl): Likewise.
11759 2019-03-29 Keith Seitz <keiths@redhat.com>
11761 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11762 %s/pulongest for TYPE_LENGTH instead of %d in format
11764 * ada-typerint.c (ada_print_type): Likewise.
11765 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11766 * compile/compile-c-support.c (generate_register_struct): Likewise.
11767 * gdbtypes.c (recursive_dump_type): Likewise.
11768 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11769 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11770 instead of %d in format strings.
11771 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11772 to std::min to ULONGEST.
11773 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11774 instead of %d in format strings.
11775 * tracepoint.c (info_scope_command): Likewise.
11776 * typeprint.c (print_offset_data::update)
11777 (print_offset_data::finish): Likewise.
11778 * xtensa-tdep.c (xtensa_store_return_value)
11779 (xtensa_push_dummy_call): Likewise.
11781 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11783 * windows-nat.c (display_selector): Fixed format specifications
11786 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11788 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11790 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11792 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11793 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11794 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11795 (nios2_linux_init_abi): Install it.
11797 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11799 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11801 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11803 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11805 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11806 Tom Tromey <tromey@adacore.com>
11808 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11810 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11812 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11813 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11814 method to compute the bounds of range types. Also print "[evaluated]"
11815 if the bounds' values come from a dynamic evaluation.
11817 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11819 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11820 whitespace when pretty printing is on.
11822 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11824 * ppc-linux-nat.c: Add include.
11826 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11828 * NEWS: Mention AArch64 Pointer Authentication.
11830 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11832 * arm-linux-nat.c: Add include.
11834 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11836 * source-cache.c (source_cache::get_source_lines): Re-read
11837 fullname after calling open_source_file.
11839 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11841 * NEWS: Mention TLS support for FreeBSD.
11843 2019-03-25 Tom Tromey <tromey@adacore.com>
11845 * minsyms.c (BUNCH_SIZE): Update comment.
11846 (~minimal_symbol_reader): Remove old comment.
11847 (compact_minimal_symbols): Update comment.
11848 (minimal_symbol_reader::install): Remove old comment. Update
11851 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11853 * s390-linux-nat.c: Add include.
11855 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11857 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11858 Call linux_get_hwcap.
11859 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11861 (aarch64_linux_get_hwcap): Remove function.
11862 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11864 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11866 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11867 * linux-tdep.c (linux_get_hwcap): Add function.
11868 (linux_get_hwcap2): Likewise.
11869 * linux-tdep.h (linux_get_hwcap): Add declaration.
11870 (linux_get_hwcap2): Likewise.
11871 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11872 (ppc_linux_get_hwcap2): Likewise.
11873 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11875 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11876 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11877 (ppc_linux_nat_target::read_description): Likewise.
11878 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11879 * s390-linux-nat.c: Likewise.
11880 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11882 2019-03-24 Tom Tromey <tom@tromey.com>
11884 * ada-lang.c (standard_lookup): Simplify initialization.
11885 (ada_lookup_symbol_nonlocal): Simplify return.
11886 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11887 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11888 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11889 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11891 * solib.c (solib_global_lookup): Simplify.
11892 * symtab.c (null_block_symbol): Remove.
11893 (symbol_cache_lookup): Simplify returns.
11894 (lookup_language_this): Simplify returns.
11895 (lookup_symbol_aux): Simplify return.
11896 (lookup_local_symbol): Simplify returns.
11897 (lookup_global_symbol_from_objfile): Simplify return.
11898 (lookup_symbol_in_objfile_symtabs)
11899 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11900 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11901 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11902 * cp-namespace.c (cp_lookup_bare_symbol)
11903 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11904 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11905 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11906 (cp_lookup_symbol_via_imports): Simplify initialization.
11907 (find_symbol_in_baseclass): Likewise.
11908 * symtab.h (null_block_symbol): Remove.
11909 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11910 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11911 (d_lookup_symbol_module): Likewise.
11912 (find_symbol_in_baseclass): Simplify initialization.
11914 2019-03-24 Tom Tromey <tom@tromey.com>
11916 * expression.h: Don't include symtab.h.
11917 (struct block): Forward declare.
11919 2019-03-24 Tom Tromey <tom@tromey.com>
11921 * c-exp.y (typebase): Remove casts.
11922 * gdbtypes.c (lookup_unsigned_typename, )
11923 (lookup_signed_typename): Remove cast.
11924 * eval.c (parse_to_comma_and_eval): Remove cast.
11925 * parse.c (write_dollar_variable): Remove cast.
11926 * block.h (struct block) <superblock>: Now const.
11927 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11928 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11929 (map_block): Make "block" const.
11930 * symfile.h (struct quick_symbol_functions)
11931 <map_matching_symbols>: Constify block argument to "callback".
11932 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11934 (find_pc_sect_compunit_symtab): Make "b" const.
11935 (find_symbol_at_address): Likewise.
11936 (search_symbols): Likewise.
11937 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11938 (dw2_debug_names_lookup_symbol): Likewise.
11939 (dw2_map_matching_symbols): Update.
11940 * p-valprint.c (pascal_val_print): Remove "block".
11941 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11942 (aux_add_nonlocal_symbols): Make "block" const.
11943 (resolve_subexp): Remove cast.
11944 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11946 (iterate_over_file_blocks): Likewise.
11947 * f-exp.y (%union) <bval>: Remove.
11948 * coffread.c (patch_opaque_types): Make "b" const.
11949 * spu-tdep.c (spu_catch_start): Make "block" const.
11950 * c-valprint.c (print_unpacked_pointer): Remove "block".
11951 * symmisc.c (dump_symtab_1): Make "b" const.
11952 (block_depth): Make "block" const.
11953 * d-exp.y (%union) <bval>: Remove.
11954 * cp-support.h (cp_lookup_rtti_type): Update.
11955 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11956 * psymtab.c (psym_lookup_symbol): Make "block" const.
11957 (maintenance_check_psymtabs): Make "b" const.
11958 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11959 (enumerate_locals, enumerate_args): Update.
11960 * python/py-symtab.c (stpy_global_block): Make "block" const.
11961 (stpy_static_block): Likewise.
11962 * inline-frame.c (block_starting_point_at): Make "new_block"
11964 * block.c (find_block_in_blockvector): Make return type const.
11965 (blockvector_for_pc_sect): Make "b" const.
11966 (find_block_in_blockvector): Make "b" const.
11968 2019-03-23 Tom Tromey <tom@tromey.com>
11970 * varobj.c (varobj_create): Update.
11971 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11972 * printcmd.c (display_command, do_one_display): Don't reset
11974 * parser-defs.h (enum innermost_block_tracker_type): Move to
11976 (innermost_block): Update comment.
11977 * parse.c (parse_exp_1): Add tracker_types parameter.
11978 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11979 tracker_types parameter. Reset innermost_block.
11980 (parse_exp_in_context): Remove.
11981 (parse_expression_for_completion): Update.
11982 * objfiles.c (~objfile): Don't reset expression_context_block or
11984 * expression.h (enum innermost_block_tracker_type): Move from
11986 (parse_exp_1): Add tracker_types parameter.
11987 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11988 reset innermost_block.
11990 2019-03-23 Tom Tromey <tom@tromey.com>
11992 * objfiles.h: Include bcache.h.
11994 2019-03-23 Tom Tromey <tom@tromey.com>
11996 * linespec.c (get_current_search_block): Use
11997 scoped_restore_current_language.
11998 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12001 Jiong Wang <jiong.wang@arm.com>
12003 * aarch64-linux-tdep.c
12004 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12006 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12008 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12009 Jiong Wang <jiong.wang@arm.com>
12011 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12013 (aarch64_analyze_prologue_test): Add PACIASP test.
12014 (aarch64_prologue_prev_register): Unmask PC value.
12016 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12017 Jiong Wang <jiong.wang@arm.com>
12019 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12020 (aarch64_dwarf2_prev_register): Unmask PC value.
12021 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12022 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12023 DW_CFA_AARCH64_negate_ra_state.
12024 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12026 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12027 Jiong Wang <jiong.wang@arm.com>
12029 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12031 (aarch64_pseudo_register_name): Likewise.
12032 (aarch64_pseudo_register_type): Likewise.
12033 (aarch64_pseudo_register_reggroup_p): Likewise.
12034 (aarch64_gdbarch_init): Add pauth registers.
12035 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12036 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12037 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12038 (struct gdbarch_tdep): Add regnum for ra_state.
12040 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12041 Jiong Wang <jiong.wang@arm.com>
12043 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12045 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12046 Jiong Wang <jiong.wang@arm.com>
12048 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12050 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12051 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12052 (aarch64_gdbarch_init): Add puth registers.
12053 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12054 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12055 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12057 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12058 Jiong Wang <jiong.wang@arm.com>
12060 * aarch64-linux-nat.c
12061 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12062 * aarch64-linux-tdep.c
12063 (aarch64_linux_core_read_description): Likewise.
12064 (aarch64_linux_get_hwcap): New function.
12065 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12066 (aarch64_linux_get_hwcap): New declaration.
12068 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12069 Jiong Wang <jiong.wang@arm.com>
12071 * aarch64-linux-nat.c
12072 (aarch64_linux_nat_target::read_description): Add pauth param.
12073 * aarch64-linux-tdep.c
12074 (aarch64_linux_core_read_description): Likewise.
12075 * aarch64-tdep.c (struct target_desc): Add in pauth.
12076 (aarch64_read_description): Add pauth param.
12077 (aarch64_gdbarch_init): Likewise.
12078 * aarch64-tdep.h (aarch64_read_description): Likewise.
12079 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12080 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12081 * features/Makefile: Add new files.
12082 * features/aarch64-pauth.c: New file.
12083 * features/aarch64-pauth.xml: New file.
12085 2019-03-20 Tom Tromey <tromey@adacore.com>
12087 * infrun.c (handle_inferior_event): Rename from
12088 handle_inferior_event_1. Create a scoped_value_mark.
12089 (handle_inferior_event): Remove.
12091 2019-03-19 Tom Tromey <tromey@adacore.com>
12093 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12094 * infrun.h (print_stop_event): Add "displays" parameter.
12095 * infrun.c (print_stop_event): Add "displays" parameter.
12097 2019-03-19 Pedro Alves <palves@redhat.com>
12099 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12100 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12101 to -1. Fix TABs vs spaces.
12102 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12103 * tui/tui-out.h (tui_ui_out) Add intro comments.
12104 <m_line, m_start_of_line>: In-class initialize, and add describing
12107 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12109 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12111 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12113 2019-03-18 Pedro Alves <palves@redhat.com>
12114 Eli Zaretskii <eliz@gnu.org>
12116 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12117 m_line and m_start_of_line.
12119 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12121 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12122 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12123 it returns a newline. This fixes a regression in TU mode, whereby
12124 the next line is output on the same screen line as the user input.
12126 2019-03-18 Tom Tromey <tromey@adacore.com>
12128 * minsyms.c (minimal_symbol_reader::install): Remove call to
12131 2019-03-18 Pedro Alves <palves@redhat.com>
12133 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12135 (apply_style): New, factored out from ...
12136 (apply_ansi_escape): ... this. Handle reverse video mode.
12137 (tui_set_reverse_mode): New function.
12138 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12139 * tui/tui-winsource.c (tui_show_source_line): Use
12140 tui_set_reverse_mode instead of setting A_STANDOUT.
12141 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12142 New setter methods.
12144 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12146 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12149 2019-03-18 Tom Tromey <tromey@adacore.com>
12151 * ada-lang.c (empty_array): Add "high" parameter.
12152 (ada_evaluate_subexp): Update.
12154 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12156 * unittests/string_view-selftests.c: Define
12157 _initialize_string_view_selftests unconditionally.
12159 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12162 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12164 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12167 * windows-nat.c (display_selector): Fix format specifiers.
12169 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12171 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12172 tui_refill_source_window instead of tui_refresh_win, to update the
12173 current execution line. This fixes redisplay of the current line
12174 when stepping through the code with "next" or "step".
12176 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12178 * source-cache.c (source_cache::get_source_lines): Call
12179 find_source_lines to initialize s->nlines. This fixes vertical
12180 scrolling of TUI source window when the DOWN arrow is pressed.
12182 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12184 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12185 linux-thread-db.c (_initialize_thread_db): Likewise.
12187 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12189 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12190 wclrtoeol in tui_show_source_line". This reverts changes made in
12191 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12193 2019-03-15 Tom Tromey <tom@tromey.com>
12195 * symtab.h (struct minimal_symbol): Derive from
12196 general_symbol_info.
12197 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12198 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12199 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12200 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12201 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12202 (MSYMBOL_SEARCH_NAME): Update.
12203 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12204 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12205 * minsyms.c (minimal_symbol_reader::record_full): Update.
12207 2019-03-15 Tom Tromey <tom@tromey.com>
12209 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12211 2019-03-15 Tom Tromey <tom@tromey.com>
12213 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12214 unique_xmalloc_ptr.
12215 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12217 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12218 (build_minimal_symbol_hash_tables)
12219 (minimal_symbol_reader::install): Update.
12221 2019-03-15 Tom Tromey <tom@tromey.com>
12223 * symtab.c (create_demangled_names_hash): Update.
12224 (symbol_set_names): Update.
12225 * objfiles.h (struct objfile_per_bfd_storage)
12226 <demangled_names_hash>: Now an htab_up.
12227 * objfiles.c (objfile_per_bfd_storage): Simplify.
12229 2019-03-15 Tom Tromey <tom@tromey.com>
12231 * objfiles.h (struct objfile_per_bfd_storage): Declare
12233 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12235 (get_objfile_bfd_data): Use new. Don't initialize
12237 (free_objfile_per_bfd_storage): Remove.
12238 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12240 2019-03-15 Tom Tromey <tom@tromey.com>
12242 * symfile.c (reread_symbols): Update.
12243 * objfiles.c (objfile::objfile): Update.
12244 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12245 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12247 (minimal_symbol_reader::install): Update.
12248 (terminate_minimal_symbol_table): Remove.
12249 * jit.c (jit_object_close_impl): Update.
12251 2019-03-15 Tom Tromey <tom@tromey.com>
12253 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12256 2019-03-15 Tom Tromey <tom@tromey.com>
12258 * objfiles.h (struct objfile_per_bfd_storage)
12259 <demangled_hash_languages>: Now a bitset.
12260 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12261 (lookup_minimal_symbol): Update.
12263 2019-03-15 Tom Tromey <tom@tromey.com>
12265 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12266 Don't return the symbol.
12267 * coffread.c (record_minimal_symbol): Use record_full.
12269 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12271 The MS-Windows port of ncurses fails to switch to a color pair if
12272 one or both of the colors are the implicit default colors. This
12273 change records the default colors when TUI is initialized, and
12274 then specifies them explicitly when a color pair uses the default
12275 colors. This allows color styling in TUI mode on MS-Windows.
12277 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12279 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12280 colors in ncurses_norm_attr.
12281 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12282 "none", replace it with the default color recorded in
12285 2019-03-14 Tom Tromey <tromey@adacore.com>
12287 * source-cache.h (class source_cache) <get_source_lines>: Return
12289 * source-cache.c (source_cache::extract_lines): Handle case where
12290 first_pos==npos. Return std::string.
12291 (source_cache::get_source_lines): Update.
12293 2019-03-14 Tom Tromey <tromey@adacore.com>
12295 * NEWS: Add item for "style sources" commands.
12296 * source-cache.c (source_cache::get_source_lines): Check
12298 * cli/cli-style.c (source_styling): New global.
12299 (_initialize_cli_style): Add "style sources" commands.
12300 (show_style_sources): New function.
12301 * cli/cli-style.h (source_styling): Declare.
12303 2019-03-14 Pedro Alves <palves@redhat.com>
12304 Tom Tromey <tromey@adacore.com>
12306 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12307 * tui/tui-winsource.c (tui_refill_source_window): New function,
12309 (tui_horizontal_source_scroll): ... here. Move some logic.
12310 * cli/cli-style.c (set_style_enabled): Notify new observable.
12311 * tui/tui-hooks.c (tui_redisplay_source): New function.
12312 (tui_attach_detach_observers): Attach or detach
12313 tui_redisplay_source.
12314 * observable.h (source_styling_changed): New observable.
12315 * observable.c: Define source_styling_changed observable.
12317 2019-03-13 Tom Tromey <tromey@adacore.com>
12319 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12320 (i386_gnu_nat_target::store_registers): Update.
12321 * target-debug.h (target_debug_print_std_string): New macro.
12322 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12323 * windows-tdep.c (display_one_tib): Update.
12324 * tui/tui-stack.c (tui_make_status_line): Update.
12325 * top.c (print_inferior_quit_action): Update.
12326 * thread.c (thr_try_catch_cmd): Update.
12327 (add_thread_with_info): Update.
12328 (thread_target_id_str): Update.
12329 (thr_try_catch_cmd): Update.
12330 (thread_command): Update.
12331 (thread_find_command): Update.
12332 * record-btrace.c (record_btrace_target::info_record)
12333 (record_btrace_resume_thread, record_btrace_target::resume)
12334 (record_btrace_cancel_resume, record_btrace_step_thread)
12335 (record_btrace_target::wait, record_btrace_target::wait)
12336 (record_btrace_target::wait, record_btrace_target::stop): Update.
12337 * progspace.c (print_program_space): Update.
12338 * process-stratum-target.c
12339 (process_stratum_target::thread_address_space): Update.
12340 * linux-fork.c (linux_fork_mourn_inferior)
12341 (detach_checkpoint_command, info_checkpoints_command)
12342 (linux_fork_context): Update.
12343 (linux_fork_detach): Update.
12344 (class scoped_switch_fork_info): Update.
12345 (delete_checkpoint_command): Update.
12346 * infrun.c (follow_fork_inferior): Update.
12347 (follow_fork_inferior): Update.
12348 (proceed_after_vfork_done): Update.
12349 (handle_vfork_child_exec_or_exit): Update.
12350 (follow_exec): Update.
12351 (displaced_step_prepare_throw): Update.
12352 (displaced_step_restore): Update.
12353 (start_step_over): Update.
12354 (resume_1): Update.
12355 (clear_proceed_status_thread): Update.
12357 (print_target_wait_results): Update.
12358 (do_target_wait): Update.
12359 (context_switch): Update.
12360 (stop_all_threads): Update.
12361 (restart_threads): Update.
12362 (finish_step_over): Update.
12363 (handle_signal_stop): Update.
12364 (switch_back_to_stepped_thread): Update.
12365 (keep_going_pass_signal): Update.
12366 (print_exited_reason): Update.
12367 (normal_stop): Update.
12368 * inferior.c (inferior_pid_to_str): Change return type.
12369 (print_selected_inferior): Update.
12370 (add_inferior): Update.
12371 (detach_inferior): Update.
12372 * dummy-frame.c (fprint_dummy_frames): Update.
12373 * dcache.c (dcache_info_1): Update.
12374 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12375 (btrace_fetch, btrace_clear): Update.
12376 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12377 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12379 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12380 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12381 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12382 * gdbarch.c, gdbarch.h: Rebuild.
12383 * gdbarch.sh (core_pid_to_str): Change return type.
12384 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12386 (windows_nat_target::pid_to_str): Change return type.
12387 (windows_delete_thread): Update.
12388 (windows_nat_target::attach): Update.
12389 (windows_nat_target::files_info): Update.
12390 * target-delegates.c: Rebuild.
12391 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12393 (sol_thread_target::pid_to_str): Change return type.
12394 * remote.c (class remote_target) <pid_to_str>: Change return
12396 (remote_target::pid_to_str): Change return type.
12397 (extended_remote_target::attach, remote_target::remote_stop_ns)
12398 (remote_target::remote_notif_remove_queued_reply)
12399 (remote_target::push_stop_reply, remote_target::disable_btrace):
12401 (extended_remote_target::attach): Update.
12402 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12404 (gdbsim_target::pid_to_str): Change return type.
12405 * ravenscar-thread.c (struct ravenscar_thread_target)
12406 <pid_to_str>: Change return type.
12407 (ravenscar_thread_target::pid_to_str): Change return type.
12408 * procfs.c (class procfs_target) <pid_to_str>: Change return
12410 (procfs_target::pid_to_str): Change return type.
12411 (procfs_target::attach): Update.
12412 (procfs_target::detach): Update.
12413 (procfs_target::fetch_registers): Update.
12414 (procfs_target::store_registers): Update.
12415 (procfs_target::wait): Update.
12416 (procfs_target::files_info): Update.
12417 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12418 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12420 (nto_procfs_target::pid_to_str): Change return type.
12421 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12422 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12424 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12425 (exit_lwp): Update.
12426 (attach_proc_task_lwp_callback, get_detach_signal)
12427 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12428 (linux_nat_target::resume, wait_lwp, stop_callback)
12429 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12430 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12431 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12432 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12433 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12435 (inf_ptrace_target::attach): Update.
12436 (inf_ptrace_target::files_info): Update.
12437 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12439 (go32_nat_target::pid_to_str): Change return type.
12440 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12441 (gnu_nat_target::wait): Update.
12442 (gnu_nat_target::wait): Update.
12443 (gnu_nat_target::resume): Update.
12444 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12445 (fbsd_nat_target::wait): Update.
12446 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12448 (darwin_nat_target::attach): Update.
12449 * corelow.c (class core_target) <pid_to_str>: Change return type.
12450 (core_target::pid_to_str): Change return type.
12451 * target.c (normal_pid_to_str): Change return type.
12452 (default_pid_to_str): Likewise.
12453 (target_pid_to_str): Change return type.
12454 (target_translate_tls_address): Update.
12455 (target_announce_detach): Update.
12456 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12458 (bsd_uthread_target::pid_to_str): Change return type.
12459 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12461 (bsd_kvm_target::pid_to_str): Change return type.
12462 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12464 (aix_thread_target::pid_to_str): Change return type.
12465 * target.h (struct target_ops) <pid_to_str>: Change return type.
12466 (target_pid_to_str, normal_pid_to_str): Likewise.
12467 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12469 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12471 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12473 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12475 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12477 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12480 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12482 * NEWS: Mention that the new default MI version is 3. Mention
12483 changes to the output of commands and events that deal with
12484 multi-location breakpoints.
12485 * breakpoint.c: Include "mi/mi-out.h".
12486 (print_one_breakpoint): Change output syntax if using MI version
12488 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12490 (mi_multi_location_breakpoint_output_fixed): New.
12491 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12492 (mi_cmd_fix_multi_location_breakpoint_output): New.
12493 (mi_multi_location_breakpoint_output_fixed): New.
12494 * mi/mi-cmds.c (mi_cmds): Register command
12495 -fix-multi-location-breakpoint-output.
12496 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12499 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12501 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12502 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12503 instantiate mi_ui_out based on interpreter name.
12504 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12505 * mi/mi-main.c (mi_load_progress): Likewise.
12507 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12509 * NEWS: Combine separate "New targets" sections for 8.3.
12511 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12513 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12514 (ppcfbsd_init_abi): Install gdbarch
12515 "fetch_tls_load_module_address" and "get_thread_local_address"
12518 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12520 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12521 (riscv_fbsd_init_abi): Install gdbarch
12522 "fetch_tls_load_module_address" and "get_thread_local_address"
12525 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12527 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12528 (i386fbsd_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 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12535 (amd64fbsd_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 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12542 (struct fbsd_pspace_data): New type.
12543 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12544 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12545 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12546 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12547 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12549 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12551 * gdbtypes.c (lookup_struct_elt): New function.
12552 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12553 * gdbtypes.h (struct struct_elt): New type.
12554 (lookup_struct_elt): New prototype.
12556 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12558 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12559 remove disabled code block.
12561 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12563 * gdbarch.sh (get_thread_local_address): New method.
12564 * gdbarch.h, gdbarch.c: Regenerate.
12565 * target.c (target_translate_tls_address): Use
12566 gdbarch_get_thread_local_address if present instead of
12567 target::get_thread_local_address.
12569 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12571 * target.h (target::get_thread_local_address): Update comment.
12573 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12575 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12576 objfile->separate_debug_objfile_backlink if not NULL.
12578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12580 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12581 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12582 (amd64bsd_store_inferior_registers): Likewise.
12583 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12584 Enable segment base registers.
12585 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12586 PT_GETFSBASE and PT_GETGSBASE.
12587 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12589 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12590 segment base registers.
12591 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12593 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12595 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12596 Update calls to i386_target_description to add 'segments'
12598 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12599 add segment base registers.
12600 * arch/i386.c (i386_create_target_description): Add 'segments'
12601 parameter to enable segment base registers.
12602 * arch/i386.h (i386_create_target_description): Likewise.
12603 * features/i386/32bit-segments.xml: New file.
12604 * features/i386/32bit-segments.c: Generate.
12605 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12606 call to i386_target_description to add 'segments' parameter.
12607 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12608 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12609 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12610 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12611 if feature is present.
12612 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12613 Add 'segments' parameter to call to i386_target_description.
12614 (i386_target_description): Add 'segments' parameter to enable
12615 segment base registers.
12616 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12617 to call to i386_target_description.
12618 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12619 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12620 Define I386_NUM_REGS.
12621 (i386_target_description): Add 'segments' parameter to enable
12622 segment base registers.
12624 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12627 * source-cache.c: #undef open and close, to avoid unresolved
12628 externals during linking.
12630 2019-03-12 Tom Tromey <tromey@adacore.com>
12632 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12633 const. Add initializers.
12634 (_initialize_remote): Don't initialize ptid globals.
12636 2019-03-12 Pedro Alves <palves@redhat.com>
12638 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12640 2019-03-12 Pedro Alves <palves@redhat.com>
12642 * cp-name-parser.y (main): Remove unused 'len' variable.
12644 2019-03-12 Tom Tromey <tromey@adacore.com>
12646 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12647 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12649 2019-03-12 Tom Tromey <tromey@adacore.com>
12651 * linux-nat.c (iterate_over_lwps): Update.
12652 (stop_callback): Remove parameter.
12653 (stop_wait_callback, detach_callback, resume_set_callback)
12654 (select_singlestep_lwp_callback, set_ignore_sigint)
12655 (status_callback, resumed_callback, resume_clear_callback)
12656 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12658 (linux_nat_target::detach, linux_nat_target::resume)
12659 (linux_stop_and_wait_all_lwps, select_event_lwp)
12660 (linux_nat_filter_event, linux_nat_wait_1)
12661 (linux_nat_target::kill, linux_nat_target::stop)
12662 (linux_nat_target::stop): Update.
12663 (linux_nat_resume_callback): Change type.
12664 (resume_stopped_resumed_lwps, count_events_callback)
12665 (select_event_lwp_callback): Likewise.
12666 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12667 * arm-linux-nat.c (struct update_registers_data): Remove.
12668 (update_registers_callback): Change type.
12669 (arm_linux_insert_hw_breakpoint1): Update.
12670 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12672 (x86_linux_dr_set_addr): Update.
12673 (x86_linux_dr_set_control): Update.
12674 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12675 (iterate_over_lwps): Use gdb::function_view.
12676 * nat/aarch64-linux-hw-point.c (struct
12677 aarch64_dr_update_callback_param): Remove.
12678 (debug_reg_change_callback): Change type.
12679 (aarch64_notify_debug_reg_change): Update.
12680 * s390-linux-nat.c (s390_refresh_per_info): Update.
12682 2019-03-11 Tom Tromey <tromey@adacore.com>
12684 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12685 redundant assignment to "this_cu".
12687 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12689 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12691 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12693 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12695 (rank_one_type): ... this.
12697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12699 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12701 (rank_one_type): ... this.
12703 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12705 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12707 (rank_one_type): ... this.
12709 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12711 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12713 (rank_one_type): ... this.
12715 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12717 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12719 (rank_one_type): ... this.
12721 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12723 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12725 (rank_one_type): ... this.
12727 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12729 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12731 (rank_one_type): ... this.
12733 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12735 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12737 (rank_one_type): ... this.
12739 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12741 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12743 (rank_one_type): ... this.
12745 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12747 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12749 (rank_one_type): ... this.
12751 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12753 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12755 (rank_one_type): ... this.
12757 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12759 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12761 (rank_one_type): ... this.
12763 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12765 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12766 inferior-events' shows the example events.
12768 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12770 Support styling on native MS-Windows console
12773 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12774 on MS-Windows if $TERM is not defined.
12776 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12778 * posix-hdep.c (gdb_console_fputs):
12779 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12781 * ui-file.h (gdb_console_fputs): Add prototype.
12783 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12784 back to fputs only if the former returns zero.
12786 2019-03-07 Tom Tromey <tom@tromey.com>
12788 * symmisc.c (print_symbol_bcache_statistics): Update.
12789 (print_objfile_statistics): Update.
12790 * symfile.c (allocate_symtab): Update.
12791 * stabsread.c: Don't include bcache.h.
12792 * psymtab.h (struct psymbol_bcache): Don't declare.
12793 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12794 (psymbol_bcache_init, psymbol_bcache_free)
12795 (psymbol_bcache_get_bcache): Don't declare.
12796 * psymtab.c (struct psymbol_bcache): Remove.
12797 (psymtab_storage::psymtab_storage): Update.
12798 (psymtab_storage::~psymtab_storage): Update.
12799 (psymbol_bcache_init, psymbol_bcache_free)
12800 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12801 (add_psymbol_to_bcache): Update.
12802 (allocate_psymtab): Update.
12803 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12804 macro_cache>: No longer pointers.
12805 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12806 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12807 * macrotab.c (macro_bcache): Update.
12808 * macroexp.c: Don't include bcache.h.
12809 * gdbtypes.c (check_types_worklist): Update.
12810 (types_deeply_equal): Remove TRY/CATCH. Update.
12811 * elfread.c (elf_symtab_read): Update.
12812 * dwarf2read.c: Don't include bcache.h.
12813 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12814 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12815 (print_bcache_statistics, bcache_memory_used): Don't declare.
12816 (struct bcache): Move from bcache.c. Add constructor, destructor,
12817 methods. Rename all data members.
12818 * bcache.c (struct bcache): Move to bcache.h.
12819 (bcache::expand_hash_table): Rename from expand_hash_table.
12821 (bcache::insert): Rename from bcache_full.
12822 (bcache::compare): Rename from bcache_compare.
12823 (bcache_xmalloc): Remove.
12824 (bcache::~bcache): Rename from bcache_xfree.
12825 (bcache::print_statistics): Rename from print_bcache_statistics.
12826 (bcache::memory_used): Rename from bcache_memory_used.
12828 2019-03-07 Pedro Alves <palves@redhat.com>
12830 * infrun.c (normal_stop): Also check for
12831 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12833 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12835 * f-lang.c (value_from_host_double): Moved to...
12836 * value.c (value_from_host_double): ...here.
12837 * value.h (value_from_host_double): Declare.
12838 * guile/scm-math.c (vlscm_convert_typed_number): Use
12839 value_from_host_double.
12840 (vlscm_convert_number): Likewise.
12841 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12842 * python/py-value.c (convert_value_from_python): Likewise.
12844 2019-03-06 Tom Tromey <tom@tromey.com>
12846 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12848 2019-03-06 Tom Tromey <tom@tromey.com>
12850 * utils.h (free_current_contents): Don't declare.
12851 * utils.c (free_current_contents): Remove.
12853 2019-03-06 Tom Tromey <tom@tromey.com>
12855 * top.c (quit_force): Update.
12856 * main.c (captured_command_loop): Update.
12857 * common/new-op.c (operator new): Update.
12858 * common/common-exceptions.c (struct catcher)
12859 <save_cleanup_chain>: Remove member.
12860 (exceptions_state_mc_init): Update.
12861 (exception_try_scope_entry): Return nullptr.
12862 (exception_try_scope_exit, exception_rethrow)
12863 (throw_exception_sjlj, throw_exception_cxx): Update.
12864 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12865 (all_cleanups, do_cleanups, discard_cleanups)
12866 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12867 (restore_cleanups, restore_final_cleanups): Don't declare.
12868 (do_final_cleanups): Remove parameter.
12869 * common/cleanups.c (cleanup_chain, make_cleanup)
12870 (make_cleanup_dtor, all_cleanups, do_cleanups)
12871 (discard_my_cleanups, discard_cleanups)
12872 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12873 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12874 (null_cleanup): Remove.
12875 (do_final_cleanups): Remove parameter.
12877 2019-03-06 Tom Tromey <tom@tromey.com>
12879 * remote.c (remote_target::remote_parse_stop_reply): Use
12880 unique_xmalloc_ptr.
12882 2019-03-06 Tom Tromey <tom@tromey.com>
12884 * stabsread.c (struct stabs_field_info): Rename from field_info.
12885 <list, fnlist>: Add initializers.
12886 <obstack>: New member.
12887 (read_member_functions, read_struct_fields, read_baseclasses):
12888 Allocate on obstack. Don't use cleanups.
12889 (read_one_struct_field, read_member_functions, read_struct_fields)
12890 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12891 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12892 (read_struct_type): Update.
12894 2019-03-06 Tom Tromey <tom@tromey.com>
12896 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12897 * common/filestuff.h (make_cleanup_close): Don't declare.
12898 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12901 2019-03-06 Tom Tromey <tom@tromey.com>
12903 * solib-aix.c: Use make_scope_exit.
12905 2019-03-06 Tom Tromey <tom@tromey.com>
12907 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12908 Use make_scope_exit.
12910 2019-03-06 Tom Tromey <tom@tromey.com>
12912 * solib-svr4.c (disable_probes_interface): Remove parameter.
12913 (svr4_handle_solib_event): Use make_scope_exit.
12915 2019-03-06 Tom Tromey <tom@tromey.com>
12917 * remote.c (struct stop_reply_deleter): Remove.
12918 (stop_reply_up): Update.
12919 (struct stop_reply): Derive from notif_event. Don't typedef.
12920 <regcache>: Now a std::vector.
12921 (stop_reply_xfree): Remove.
12922 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12923 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12924 (remote_target::discard_pending_stop_replies): Use delete.
12925 (remote_target::remote_parse_stop_reply): Update.
12926 (remote_target::process_stop_reply): Update.
12927 * remote-notif.h (struct notif_event): Add virtual destructor.
12928 Remove "dtr" member.
12929 (struct notif_client) <alloc_event>: Return a unique_ptr.
12930 (notif_event_xfree): Don't declare.
12931 (notif_event_up): New typedef.
12932 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12933 (notif_event_xfree, do_notif_event_xfree): Remove.
12934 (remote_notif_state_xfree): Update.
12936 2019-03-06 Tom Tromey <tom@tromey.com>
12938 * infrun.c (displaced_step_clear_cleanup): Now a
12939 forward_scope_exit type.
12940 (displaced_step_prepare_throw): Update.
12941 (displaced_step_fixup): Update.
12943 2019-03-06 Tom Tromey <tom@tromey.com>
12945 * inferior.h (class inferior): Update comment.
12946 * gdbthread.h (class thread_info): Update comment.
12948 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12949 Tom Tromey <tom@tromey.com>
12951 * stabsread.h (struct stab_section_list): Remove.
12952 (coffstab_build_psymtabs): Update.
12953 * dbxread.c (symbuf_sections): Now a std::vector.
12954 (sect_idx): New global.
12955 (fill_symbuf): Update.
12956 (coffstab_build_psymtabs): Change type of stabsects parameter.
12958 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12960 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12961 (coff_locate_sections): Update.
12962 (coff_symfile_read): Remove cleanups. Update.
12963 (init_stringtab): Add storage parameter.
12964 (free_stringtab, free_stringtab_cleanup): Remove.
12965 (init_lineno): Add storage parameter.
12966 (free_linetab, free_linetab_cleanup): Remove.
12968 2019-03-06 Pedro Alves <palves@redhat.com>
12970 * linux-fork.c (fork_info::clobber_regs): Delete.
12971 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12972 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12974 (scoped_switch_fork_info::scoped_switch_fork_info)
12975 (checkpoint_command, linux_fork_context): Adjust
12976 fork_save_infrun_state calls.
12978 2019-03-06 Pedro Alves <palves@redhat.com>
12980 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12981 (inf_has_multiple_threads): Return 'bool' and rewrite using
12982 inferior_info::threads().
12984 2019-03-06 Pedro Alves <palves@redhat.com>
12986 * linux-fork.c: Include <list>.
12987 (fork_list): Now a std::list instance.
12988 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12989 (forks_exist_p, find_last_fork): Adjust.
12990 (new_fork): Delete.
12992 (add_fork): Adjust.
12993 (free_fork): Delete, folded into fork_info::~fork_info().
12994 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12996 (init_fork_list): Delete.
12997 (linux_fork_killall, linux_fork_mourn_inferior)
12998 (linux_fork_detach, info_checkpoints_command): Adjust.
12999 (_initialize_linux_fork): No longer call init_fork_list.
13001 2019-03-06 Pedro Alves <palves@redhat.com>
13003 * linux-fork.c (new_fork): New, split out of ...
13004 (add_fork): ... this. Return void. Move "first fork" special
13005 case from here, to ...
13006 (checkpoint_command): ... here.
13007 * linux-linux.h (add_fork): Return void.
13009 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13011 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13013 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13014 Chris January <chris.january@arm.com>
13015 David Lecomber <david.lecomber@arm.com>
13017 * f-exp.y: New token, UNOP_INTRINSIC.
13018 (exp): New pattern using UNOP_INTRINSIC token.
13019 (f77_keywords): Add 'abs' keyword.
13020 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13021 (value_from_host_double): New function.
13022 (evaluate_subexp_f): Support UNOP_ABS.
13024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13026 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13029 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13031 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13032 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13033 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13035 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13037 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13039 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13040 Chris January <chris.january@arm.com>
13042 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13043 * f-exp.y: Define 'KIND' token.
13044 (exp): New pattern for KIND expressions.
13045 (ptype): Handle types with a kind extension.
13046 (direct_abs_decl): Extend to spot kind extensions.
13047 (f77_keywords): Add 'kind' to the list.
13048 (push_kind_type): New function.
13049 (convert_to_kind_type): New function.
13050 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13051 * parse.c (operator_length_standard): Likewise.
13052 * parser-defs.h (enum type_pieces): Add tp_kind.
13053 * std-operator.def: Add UNOP_KIND.
13055 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13057 * f-exp.y (f_parse): Set yydebug.
13059 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13061 * f-lang.c (evaluate_subexp_f): New function.
13062 (exp_descriptor_f): New global.
13063 (f_language_defn): Use exp_descriptor_f instead of
13064 exp_descriptor_standard.
13066 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13068 * f-exp.y (struct token): Add comments.
13069 (dot_ops): Remove uppercase versions and the end marker.
13070 (f77_keywords): Likewise.
13071 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13072 entries in the dot_ops array are case insensitive, and use
13073 strncasecmp to compare strings. Also some whitespace cleanup in
13074 this area. Similar for the f77_keywords array, except entries in
13075 this list might be case sensitive.
13077 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13079 * f-exp.y (struct f77_boolean_val): Add comments.
13080 (boolean_values): Remove uppercase versions, and end marker.
13081 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13082 and use strncasecmp to achieve case insensitivity. Additionally,
13083 perform whitespace cleanup around this code.
13085 2019-03-06 Tom Tromey <tromey@adacore.com>
13087 * remote-sim.c (gdbsim_target_open): Use result of
13090 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13091 Dirk Schubert <dirk.schubert@arm.com>
13092 Chris January <chris.january@arm.com>
13094 * eval.c (evaluate_subexp_standard): Call Fortran argument
13096 * f-lang.c (struct value): A value which can be passed into a
13097 Fortran function call.
13098 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13100 (struct type): Value ready for a Fortran function call.
13101 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13103 * f-lang.h (fortran_argument_convert): Declaration.
13104 (fortran_preserve_arg_pointer): Declaration.
13105 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13107 2019-03-05 Tom Tromey <tromey@adacore.com>
13109 * python/py-prettyprint.c (print_string_repr): Remove #if.
13110 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13112 2019-03-05 Tom Tromey <tromey@adacore.com>
13114 * target.c (the_dummy_target): Move later. Change type to
13116 (initialize_targets): Don't initialize the_dummy_target.
13118 2019-03-05 Tom Tromey <tromey@adacore.com>
13120 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13121 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13123 2019-03-05 Tom Tromey <tromey@adacore.com>
13125 * windows-nat.c (windows_nat_target::attach)
13126 (windows_nat_target::detach): Don't call gdb_flush.
13127 * valprint.c (generic_val_print, val_print, val_print_string):
13128 Don't call gdb_flush.
13129 * utils.c (defaulted_query): Don't call gdb_flush.
13130 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13131 * target.c (target_announce_detach): Don't call gdb_flush.
13132 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13133 * remote.c (extended_remote_target::attach): Don't call
13135 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13136 * printcmd.c (do_examine): Don't call gdb_flush.
13137 (info_display_command): Don't call gdb_flush.
13138 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13139 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13140 * memattr.c (info_mem_command): Don't call gdb_flush.
13141 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13142 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13143 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13144 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13145 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13146 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13147 (gnu_nat_target::detach): Don't call gdb_flush.
13148 * f-valprint.c (f_val_print): Don't call gdb_flush.
13149 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13150 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13151 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13153 * c-valprint.c (c_val_print): Don't call gdb_flush.
13154 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13156 2019-03-05 Tom Tromey <tromey@adacore.com>
13158 * varobj.c (update_dynamic_varobj_children): Update.
13159 (install_default_visualizer): Use reset, not release.
13160 * value.c (set_internalvar): Update.
13161 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13162 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13163 ATTRIBUTE_UNUSED_RESULT.
13165 2019-03-05 Tom Tromey <tromey@adacore.com>
13167 * remote.c (class scoped_remote_fd) <release>: Add
13168 ATTRIBUTE_UNUSED_RESULT.
13170 2019-03-05 Tom Tromey <tromey@adacore.com>
13172 * macroexp.c (struct macro_buffer) <release>: Add
13173 ATTRIBUTE_UNUSED_RESULT.
13175 2019-03-05 Tom Tromey <tromey@adacore.com>
13177 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13178 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13179 ATTRIBUTE_UNUSED_RESULT.
13181 2019-03-05 Tom Tromey <tromey@adacore.com>
13183 * common/scoped_fd.h (class scoped_fd) <release>: Add
13184 ATTRIBUTE_UNUSED_RESULT.
13186 2019-03-05 Tom Tromey <tromey@adacore.com>
13188 * parser-defs.h (struct parser_state) <release>: Add
13189 ATTRIBUTE_UNUSED_RESULT.
13191 2019-03-05 Tom Tromey <tromey@adacore.com>
13193 * utils.h (class gdb_argv) <release>: Add
13194 ATTRIBUTE_UNUSED_RESULT.
13195 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13197 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13199 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13200 for-loop range, to avoid compiler warnings.
13202 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13203 avoid compiler warnings about unused variables.
13205 * NEWS: Mention end of support for native debugging on MS-Windows
13209 * common/netstuff.c:
13210 * gdbserver/gdbreplay.c
13211 * gdbserver/remote-utils.c:
13213 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13214 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13215 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13216 'getaddrinfo' and 'freeaddrinfo' were not available before
13217 Windows XP, and mingw.org's MinGW headers by default define
13218 _WIN32_WINNT to 0x500.
13220 2019-03-01 Gary Benson <gbenson@redhat.com>
13222 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13224 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13225 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13228 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13229 set_sigint_trap, clear_sigint_trap.
13231 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13233 * target.c (target_detach): Clear the regcache and the
13236 2019-02-27 Pedro Alves <palves@redhat.com>
13238 * utils.c (set_screen_size): When we cap the height/width sizes,
13239 tweak the corresponding command variable to show "unlimited":
13241 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13242 Pedro Alves <palves@redhat.com>
13244 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13245 before calling rl_set_screen_size.
13247 2019-02-27 Tom Tromey <tromey@adacore.com>
13249 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13251 * python/py-value.c: Remove Python 2.4 workaround.
13252 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13254 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13255 Python 2.4 workaround.
13256 * python/python-internal.h: Remove Python 2.4 comment.
13257 (Py_ssize_t): Don't define.
13258 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13259 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13260 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13261 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13262 * python/python.c (do_start_initialization): Remove Python 2.4
13264 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13265 (print_children): Remove Python 2.4 workaround.
13266 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13268 (CHARBUFFERPROC_NAME): Remove.
13269 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13270 Python 2.4 workaround.
13272 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13274 * NEWS: Note minimum Python version.
13276 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13278 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13279 code from these functions. Remove corresponding ifdefs. Use
13280 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13281 Remove gotos and target of gotos.
13282 (infpy_search_memory): Likewise.
13284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13286 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13287 (hppa_gdbarch_init): Don't register deleted functions with
13290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13292 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13293 (h8300_unwind_sp): Delete.
13294 (h8300_dummy_id): Delete.
13295 (h8300_gdbarch_init): Don't register deleted functions with
13298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13300 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13301 (ft32_unwind_pc): Delete.
13302 (ft32_unwind_sp): Delete.
13303 (ft32_gdbarch_init): Don't register deleted functions with
13306 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13308 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13309 (frv_unwind_pc): Delete.
13310 (frv_unwind_sp): Delete.
13311 (frv_gdbarch_init): Don't register deleted functions with
13314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13316 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13317 (riscv_unwind_pc): Delete.
13318 (riscv_unwind_sp): Delete.
13319 (riscv_gdbarch_init): Don't register deleted functions with
13322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13324 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13325 (csky_unwind_pc): Delete.
13326 (csky_unwind_sp): Delete.
13327 (csky_gdbarch_init): Don't register deleted functions with
13330 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13332 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13333 (cris_unwind_pc): Delete.
13334 (cris_unwind_sp): Delete.
13335 (cris_gdbarch_init): Don't register deleted functions with
13338 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13340 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13341 (bfin_unwind_pc): Delete.
13342 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13344 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13346 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13347 (arm_unwind_pc): Delete.
13348 (arm_unwind_sp): Delete.
13349 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13351 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13353 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13354 (arc_unwind_pc): Delete.
13355 (arc_unwind_sp): Delete.
13356 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13358 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13360 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13361 (alpha_unwind_pc): Delete.
13362 (alpha_gdbarch_init): Don't register deleted functions with
13365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13367 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13368 (aarch64_unwind_pc): Delete.
13369 (aarch64_unwind_sp): Delete.
13370 (aarch64_gdbarch_init): Don't register deleted functions with
13373 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13375 * gdbtypes.c (type_align): Don't consider static members when
13376 computing structure alignment.
13378 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13380 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13381 return 0 for other types.
13382 * arch-utils.c (default_type_align): Always return 0.
13383 * gdbarch.h: Regenerate.
13384 * gdbarch.sh (type_align): Extend comment.
13385 * gdbtypes.c (type_align): Add additional comments, always call
13386 gdbarch_type_align before applying the default rules.
13387 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13388 generic code will then apply a suitable default.
13389 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13390 types, return 0 for other types.
13392 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13394 * NEWS: Create a new section for the next release branch.
13395 Rename the section of the current branch, now that it has
13398 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13400 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13401 * version.in: Bump version to 8.3.50.DATE-git.
13403 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13405 * aix-thread.c (ptid_cmp): Remove unused variable.
13406 (get_signaled_thread): Likewise.
13407 (store_regs_user_thread): Likewise.
13408 (store_regs_kernel_thread): Likewise.
13409 (fetch_regs_kernel_thread): Remove shadowed variable.
13411 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13413 * features/riscv/32bit-cpu.xml: Add register numbers.
13414 * features/riscv/32bit-fpu.c: Regenerate.
13415 * features/riscv/32bit-fpu.xml: Add register numbers.
13416 * features/riscv/64bit-cpu.xml: Add register numbers.
13417 * features/riscv/64bit-fpu.c: Regenerate.
13418 * features/riscv/64bit-fpu.xml: Add register numbers.
13420 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13422 * NEWS: Mention two argument form of gdb.Value constructor.
13423 * python/py-value.c (convert_buffer_and_type_to_value): New
13425 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13426 Add support for handling an optional second argument. Call
13427 convert_buffer_and_type_to_value as appropriate.
13428 * python/python-internal.h (Py_buffer_deleter): New struct.
13429 (Py_buffer_up): New typedef.
13431 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13433 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13434 instead of releasing ownership.
13436 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13438 * dwarf2read.c (open_and_init_dwp_file): Call
13439 elf_numsections instead of bfd_count_sections to initialize
13440 dwp_file->num_sections.
13442 2019-02-25 Tom Tromey <tromey@adacore.com>
13444 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13446 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13448 * gcore.in: Add '--readnever' option when invoking GDB.
13450 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13452 * MAINTAINERS: Update my email address.
13454 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13456 * build-id.c (build_id_to_debug_bfd_1): New function.
13457 (build_id_to_debug_bfd): Look for separate debug file in
13460 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13462 * gdbarch.sh: Update the copyright year range that is placed into
13465 2019-02-22 Keith Seitz <keiths@redhat.com>
13468 * linespec.c (create_sals_line_offset): Search for the default
13469 symtab's filename instead of its fullname.
13471 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13473 * NEWS: Update style defaults.
13475 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13477 * main.c (captured_main_1): Disable styling in batch mode.
13479 2019-02-20 Tom Tromey <tom@tromey.com>
13481 * symtab.c (symtab_symbol_info): Fix typos.
13483 2019-02-20 Tom Tromey <tromey@adacore.com>
13485 * findcmd.c (_initialize_mem_search): Use upper case for
13486 metasyntactic variables.
13488 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13490 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13491 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13493 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13495 * top.h (source_file_name): Change to std::string.
13496 * top.c (source_file_name): Likewise.
13497 (command_line_input): Adjust.
13498 * cli/cli-script.c (script_from_file): Adjust.
13500 2019-02-19 Tom Tromey <tromey@adacore.com>
13502 * ravenscar-thread.c
13503 (ravenscar_thread_target::update_thread_list): Don't call
13504 ada_build_task_list.
13505 * ada-lang.h (ada_build_task_list): Don't declare.
13506 * ada-tasks.c (struct ada_tasks_inferior_data)
13507 <task_list_valid_p>: Now bool.
13508 (read_known_tasks, ada_task_list_changed)
13509 (ada_tasks_invalidate_inferior_data): Update.
13510 (read_known_tasks_array): Return bool.
13511 (read_known_tasks_list): Likewise.
13512 (read_known_tasks): Return void.
13513 (ada_build_task_list): Now static.
13515 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13517 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13518 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13520 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13522 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13523 variant for ada_tasks_pspace_data_handle and
13524 ada_tasks_inferior_data_handle.
13525 (ada_tasks_pspace_data_cleanup): New function.
13526 (ada_tasks_inferior_data_cleanup): New function.
13528 2019-02-17 Tom Tromey <tom@tromey.com>
13530 * macrotab.h (macro_source_fullname): Return a std::string.
13531 * macrotab.c (macro_include, check_for_redefinition)
13532 (macro_undef, macro_lookup_definition, foreach_macro)
13533 (foreach_macro_in_scope): Update.
13534 (macro_source_fullname): Return a std::string.
13535 * macrocmd.c (show_pp_source_pos): Update.
13537 2019-02-17 Tom Tromey <tom@tromey.com>
13539 * macrocmd.c (show_pp_source_pos): Style the file names.
13541 2019-02-17 Tom Tromey <tom@tromey.com>
13544 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13546 2019-02-17 Tom Tromey <tom@tromey.com>
13548 * ada-lang.c (user_select_syms): Use filtered printing.
13549 * utils.c (wrap_style): New global.
13550 (desired_style): Remove.
13551 (emit_style_escape): Add stream parameter.
13552 (set_output_style, reset_terminal_style, prompt_for_continue):
13554 (flush_wrap_buffer): Only flush gdb_stdout.
13555 (wrap_here): Set wrap_style.
13556 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13557 treat escape sequences as a character. Change when wrap buffer is
13559 (fputs_styled): Do not set the output style when the default is
13561 * ui-style.h (struct ui_file_style) <is_default>: New method.
13562 * source.c (print_source_lines_base): Emit escape sequences in one
13565 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13567 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13568 integers and enumeration types.
13570 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13572 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13573 instead of lookup_symbol_in_language
13574 (do_exact_match): New function.
13575 (ada_get_symbol_name_matcher): Return do_exact_match when
13576 doing a verbatim match.
13578 2019-02-15 Tom Tromey <tromey@adacore.com>
13580 * ravenscar-thread.c (ravenscar_thread_target::resume)
13581 (ravenscar_thread_target::wait): Special case wildcard requests.
13583 2019-02-15 Tom Tromey <tromey@adacore.com>
13585 * ravenscar-thread.c (base_ptid): Remove.
13586 (struct ravenscar_thread_target) <close>: New method.
13587 <m_base_ptid>: New member.
13588 <update_inferior_ptid, active_task, task_is_currently_active,
13589 runtime_initialized>: Declare methods.
13590 <ravenscar_thread_target>: Add constructor.
13591 (ravenscar_thread_target::task_is_currently_active)
13592 (ravenscar_thread_target::update_inferior_ptid)
13593 (ravenscar_runtime_initialized): Rename. Now methods.
13594 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13595 (ravenscar_thread_target::update_thread_list): Update.
13596 (ravenscar_thread_target::active_task): Now method.
13597 (ravenscar_thread_target::store_registers)
13598 (ravenscar_thread_target::prepare_to_store)
13599 (ravenscar_thread_target::prepare_to_store)
13600 (ravenscar_thread_target::mourn_inferior): Update.
13601 (ravenscar_inferior_created): Use "new" to create target.
13602 (ravenscar_thread_target::get_ada_task_ptid): Update.
13603 (_initialize_ravenscar): Don't initialize base_ptid.
13604 (ravenscar_ops): Remove global.
13606 2019-02-15 Tom Tromey <tromey@adacore.com>
13608 * target.h (push_target): Declare new overload.
13609 * target.c (push_target): New overload, taking an rvalue reference.
13610 * remote.c (remote_target::open_1): Use push_target overload.
13611 * corelow.c (core_target_open): Use push_target overload.
13613 2019-02-15 Tom Tromey <tromey@adacore.com>
13615 * ravenscar-thread.c (is_ravenscar_task)
13616 (ravenscar_task_is_currently_active): Return bool.
13617 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13618 (_initialize_ravenscar): Remove "(void)".
13619 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13622 2019-02-15 Tom Tromey <tromey@adacore.com>
13624 * ravenscar-thread.c (ravenscar_runtime_initializer)
13625 (has_ravenscar_runtime, get_running_thread_id)
13626 (ravenscar_thread_target::resume): Fix indentation.
13628 2019-02-15 Tom Tromey <tromey@adacore.com>
13630 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13631 from ravenscar_arch_ops.
13632 (sparc_ravenscar_ops::fetch_registers)
13633 (sparc_ravenscar_ops::store_registers): Now methods.
13634 (sparc_ravenscar_prepare_to_store): Remove.
13635 (sparc_ravenscar_ops): Redefine.
13636 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13637 methods and destructor. Remove members.
13638 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13639 (ravenscar_thread_target::store_registers)
13640 (ravenscar_thread_target::prepare_to_store): Update.
13641 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13643 (struct ppc_ravenscar_powerpc_ops): Derive from
13644 ravenscar_arch_ops.
13645 (ppc_ravenscar_powerpc_ops::fetch_registers)
13646 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13647 (ppc_ravenscar_powerpc_ops): Redefine.
13648 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13649 (ppc_ravenscar_e500_ops::fetch_registers)
13650 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13651 (ppc_ravenscar_e500_ops): Redefine.
13652 * aarch64-ravenscar-thread.c
13653 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13654 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13655 (aarch64_ravenscar_fetch_registers)
13656 (aarch64_ravenscar_store_registers): Now methods.
13657 (aarch64_ravenscar_ops): Redefine.
13659 2019-02-15 Tom Tromey <tromey@adacore.com>
13661 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13662 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13663 (ravenscar_thread_target::stopped_by_watchpoint)
13664 (ravenscar_thread_target::stopped_data_address)
13665 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13667 2019-02-15 Tom Tromey <tromey@adacore.com>
13669 * ravenscar-thread.c: Fix some typos.
13671 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13672 Tom Tromey <tromey@adacore.com>
13674 * ada-lang.c (ada_exception_sal): Change addr_string to a
13676 (create_ada_exception_catchpoint): Update.
13678 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13679 Tom Tromey <tromey@adacore.com>
13681 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13682 (bp_location_ops): Remove.
13683 (base_breakpoint_allocate_location): Update.
13684 (free_bp_location): Update.
13685 * ada-lang.c (class ada_catchpoint_location)
13686 <ada_catchpoint_location>: Remove ops parameter.
13687 (ada_catchpoint_location_dtor): Remove.
13688 (ada_catchpoint_location_ops): Remove.
13689 (allocate_location_exception): Update.
13690 * breakpoint.h (struct bp_location_ops): Remove.
13691 (class bp_location) <bp_location>: Remove bp_location_ops
13693 <~bp_location>: Add destructor.
13696 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13697 Pedro Alves <palves@redhat.com>
13699 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13702 2019-02-14 David Michael <fedora.dm0@gmail.com>
13703 Samuel Thibault <samuel.thibault@gnu.org>
13704 Thomas Schwinge <thomas@codesourcery.com>
13706 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13707 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13709 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13711 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13712 (check_empty): Use "const char *".
13714 * gnu-nat.c (gnu_nat_target::detach): Instead of
13715 'detach_inferior (pid)' call
13716 'detach_inferior (find_inferior_pid (pid))'.
13718 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13719 'nat/fork-inferior.o'.
13720 * gnu-nat.c: #include "nat/fork-inferior.h".
13722 * gnu-nat.c (gnu_nat_target::detach): Instead of
13723 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13724 * gnu-nat.h: #include "inf-child.h".
13725 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13726 'i386_gnu_nat_target::fetch_registers'.
13727 (gnu_store_registers): Rename/move to
13728 'i386_gnu_nat_target::store_registers'.
13730 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13731 * gnu-nat.h (mach_thread_info): New function.
13732 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13734 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13736 2019-02-14 Frederic Konrad <konrad@adacore.com>
13738 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13740 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13742 * windows-nat.c (windows_add_thread): Add new parameter
13743 "main_thread_p" with default value set to false. Update
13744 function documentation as well as all callers.
13745 (windows_delete_thread): Likewise.
13746 (fake_create_process): Update call to windows_add_thread.
13747 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13748 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13749 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13750 call to windows_delete_thread.
13752 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13754 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13756 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13758 * symfile.c (find_separate_debug_file): Use canonical path of
13759 sysroot with child_path instead of gdb_sysroot if it is valid.
13761 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13763 * symfile.c (find_separate_debug_file): Use child_path to
13764 determine if an object file is under a sysroot.
13766 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13768 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13769 unittests/child-path-selftests.c.
13770 * common/pathstuff.c (child_path): New function.
13771 * common/pathstuff.h (child_path): New prototype.
13772 * unittests/child-path-selftests.c: New file.
13774 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13776 * symfile.c (find_separate_debug_file): Look for separate debug
13777 files in debug directories under the sysroot.
13779 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13781 * symtab.h (struct minimal_symbol data_p): New const method.
13782 (struct minimal_symbol text_p): Likewise.
13783 * symtab.c (output_source_filename): Use file name style
13784 to print file name.
13785 (print_symbol_info): Likewise.
13786 (print_msymbol_info): Use address style to print addresses.
13787 Use function name style to print executable text symbols.
13788 (expand_symtab_containing_pc): Use data_p.
13789 (find_pc_sect_compunit_symtab): Likewise.
13791 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13793 * breakpoint.c (describe_other_breakpoints): Use address style
13794 to print addresses.
13795 (say_where): Likewise.
13797 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13799 * ada-typeprint.c (print_func_type): Print function name
13800 style to print function name.
13801 * c-typeprint.c (c_print_type_1): Likewise.
13803 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13805 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13808 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13810 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13813 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13815 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13816 TYPE_CODE_REF types.
13818 2019-02-08 Jim Wilson <jimw@sifive.com>
13820 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13821 (riscv_linux_fregset): New.
13822 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13824 2019-02-07 Tom Tromey <tom@tromey.com>
13826 * thread.c (thread_cancel_execution_command): Update.
13827 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13829 (struct thread_fsm_ops): Remove.
13830 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13831 (thread_fsm_should_stop, thread_fsm_return_value)
13832 (thread_fsm_set_finished, thread_fsm_finished_p)
13833 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13835 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13836 * infrun.c (clear_proceed_status_thread)
13837 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13838 (print_stop_event): Update.
13839 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13841 (step_command_fsm_ops): Remove.
13842 (new_step_command_fsm): Remove.
13844 (step_command_fsm::should_stop): Rename from
13845 step_command_fsm_should_stop.
13846 (step_command_fsm::clean_up): Rename from
13847 step_command_fsm_clean_up.
13848 (step_command_fsm::do_async_reply_reason): Rename from
13849 step_command_fsm_async_reply_reason.
13850 (struct until_next_fsm): Inherit from thread_fsm. Add
13852 (until_next_fsm_ops): Remove.
13853 (new_until_next_fsm): Remove.
13854 (until_next_fsm::should_stop): Rename from
13855 until_next_fsm_should_stop.
13856 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13857 (until_next_fsm::do_async_reply_reason): Rename from
13858 until_next_fsm_async_reply_reason.
13859 (struct finish_command_fsm): Inherit from thread_fsm. Add
13860 constructor. Change type of breakpoint.
13861 (finish_command_fsm_ops): Remove.
13862 (new_finish_command_fsm): Remove.
13863 (finish_command_fsm::should_stop): Rename from
13864 finish_command_fsm_should_stop.
13865 (finish_command_fsm::clean_up): Rename from
13866 finish_command_fsm_clean_up.
13867 (finish_command_fsm::return_value): Rename from
13868 finish_command_fsm_return_value.
13869 (finish_command_fsm::do_async_reply_reason): Rename from
13870 finish_command_fsm_async_reply_reason.
13871 (finish_command): Update.
13872 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13874 (call_thread_fsm_ops): Remove.
13875 (call_thread_fsm::call_thread_fsm): Rename from
13876 new_call_thread_fsm.
13877 (call_thread_fsm::should_stop): Rename from
13878 call_thread_fsm_should_stop.
13879 (call_thread_fsm::should_notify_stop): Rename from
13880 call_thread_fsm_should_notify_stop.
13881 (run_inferior_call, call_function_by_hand_dummy): Update.
13882 * cli/cli-interp.c (should_print_stop_to_console): Update.
13883 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13884 Add constructor. Change type of location_breakpoint,
13886 (until_break_fsm_ops): Remove.
13887 (new_until_break_fsm): Remove.
13888 (until_break_fsm::should_stop): Rename from
13889 until_break_fsm_should_stop.
13890 (until_break_fsm::clean_up): Rename from
13891 until_break_fsm_clean_up.
13892 (until_break_fsm::do_async_reply_reason): Rename from
13893 until_break_fsm_async_reply_reason.
13894 (until_break_command): Update.
13895 * thread-fsm.c: Remove.
13896 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13898 2019-02-07 Tom Tromey <tom@tromey.com>
13900 * yy-remap.h: Add include guard.
13901 * xtensa-tdep.h: Add include guard.
13902 * xcoffread.h: Rename include guard.
13903 * varobj-iter.h: Add include guard.
13904 * tui/tui.h: Rename include guard.
13905 * tui/tui-winsource.h: Rename include guard.
13906 * tui/tui-wingeneral.h: Rename include guard.
13907 * tui/tui-windata.h: Rename include guard.
13908 * tui/tui-win.h: Rename include guard.
13909 * tui/tui-stack.h: Rename include guard.
13910 * tui/tui-source.h: Rename include guard.
13911 * tui/tui-regs.h: Rename include guard.
13912 * tui/tui-out.h: Rename include guard.
13913 * tui/tui-layout.h: Rename include guard.
13914 * tui/tui-io.h: Rename include guard.
13915 * tui/tui-hooks.h: Rename include guard.
13916 * tui/tui-file.h: Rename include guard.
13917 * tui/tui-disasm.h: Rename include guard.
13918 * tui/tui-data.h: Rename include guard.
13919 * tui/tui-command.h: Rename include guard.
13920 * tic6x-tdep.h: Add include guard.
13921 * target/waitstatus.h: Rename include guard.
13922 * target/wait.h: Rename include guard.
13923 * target/target.h: Rename include guard.
13924 * target/resume.h: Rename include guard.
13925 * target-float.h: Rename include guard.
13926 * stabsread.h: Add include guard.
13927 * rs6000-tdep.h: Add include guard.
13928 * riscv-fbsd-tdep.h: Add include guard.
13929 * regformats/regdef.h: Rename include guard.
13930 * record.h: Rename include guard.
13931 * python/python.h: Rename include guard.
13932 * python/python-internal.h: Rename include guard.
13933 * python/py-stopevent.h: Rename include guard.
13934 * python/py-ref.h: Rename include guard.
13935 * python/py-record.h: Rename include guard.
13936 * python/py-record-full.h: Rename include guard.
13937 * python/py-record-btrace.h: Rename include guard.
13938 * python/py-instruction.h: Rename include guard.
13939 * python/py-events.h: Rename include guard.
13940 * python/py-event.h: Rename include guard.
13941 * procfs.h: Add include guard.
13942 * proc-utils.h: Add include guard.
13943 * p-lang.h: Add include guard.
13944 * or1k-tdep.h: Rename include guard.
13945 * observable.h: Rename include guard.
13946 * nto-tdep.h: Rename include guard.
13947 * nat/x86-linux.h: Rename include guard.
13948 * nat/x86-linux-dregs.h: Rename include guard.
13949 * nat/x86-gcc-cpuid.h: Add include guard.
13950 * nat/x86-dregs.h: Rename include guard.
13951 * nat/x86-cpuid.h: Rename include guard.
13952 * nat/ppc-linux.h: Rename include guard.
13953 * nat/mips-linux-watch.h: Rename include guard.
13954 * nat/linux-waitpid.h: Rename include guard.
13955 * nat/linux-ptrace.h: Rename include guard.
13956 * nat/linux-procfs.h: Rename include guard.
13957 * nat/linux-osdata.h: Rename include guard.
13958 * nat/linux-nat.h: Rename include guard.
13959 * nat/linux-namespaces.h: Rename include guard.
13960 * nat/linux-btrace.h: Rename include guard.
13961 * nat/glibc_thread_db.h: Rename include guard.
13962 * nat/gdb_thread_db.h: Rename include guard.
13963 * nat/gdb_ptrace.h: Rename include guard.
13964 * nat/fork-inferior.h: Rename include guard.
13965 * nat/amd64-linux-siginfo.h: Rename include guard.
13966 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13967 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13968 * nat/aarch64-linux.h: Rename include guard.
13969 * nat/aarch64-linux-hw-point.h: Rename include guard.
13970 * mn10300-tdep.h: Add include guard.
13971 * mips-linux-tdep.h: Add include guard.
13972 * mi/mi-parse.h: Rename include guard.
13973 * mi/mi-out.h: Rename include guard.
13974 * mi/mi-main.h: Rename include guard.
13975 * mi/mi-interp.h: Rename include guard.
13976 * mi/mi-getopt.h: Rename include guard.
13977 * mi/mi-console.h: Rename include guard.
13978 * mi/mi-common.h: Rename include guard.
13979 * mi/mi-cmds.h: Rename include guard.
13980 * mi/mi-cmd-break.h: Rename include guard.
13981 * m2-lang.h: Add include guard.
13982 * location.h: Rename include guard.
13983 * linux-record.h: Rename include guard.
13984 * linux-nat.h: Add include guard.
13985 * linux-fork.h: Add include guard.
13986 * i386-darwin-tdep.h: Rename include guard.
13987 * hppa-linux-offsets.h: Add include guard.
13988 * guile/guile.h: Rename include guard.
13989 * guile/guile-internal.h: Rename include guard.
13990 * gnu-nat.h: Rename include guard.
13991 * gdb-stabs.h: Rename include guard.
13992 * frv-tdep.h: Add include guard.
13993 * f-lang.h: Add include guard.
13994 * event-loop.h: Add include guard.
13995 * darwin-nat.h: Rename include guard.
13996 * cp-abi.h: Rename include guard.
13997 * config/sparc/nm-sol2.h: Rename include guard.
13998 * config/nm-nto.h: Rename include guard.
13999 * config/nm-linux.h: Add include guard.
14000 * config/i386/nm-i386gnu.h: Rename include guard.
14001 * config/djgpp/nl_types.h: Rename include guard.
14002 * config/djgpp/langinfo.h: Rename include guard.
14003 * compile/gcc-cp-plugin.h: Add include guard.
14004 * compile/gcc-c-plugin.h: Add include guard.
14005 * compile/compile.h: Rename include guard.
14006 * compile/compile-object-run.h: Rename include guard.
14007 * compile/compile-object-load.h: Rename include guard.
14008 * compile/compile-internal.h: Rename include guard.
14009 * compile/compile-cplus.h: Rename include guard.
14010 * compile/compile-c.h: Rename include guard.
14011 * common/xml-utils.h: Rename include guard.
14012 * common/x86-xstate.h: Rename include guard.
14013 * common/version.h: Rename include guard.
14014 * common/vec.h: Rename include guard.
14015 * common/tdesc.h: Rename include guard.
14016 * common/selftest.h: Rename include guard.
14017 * common/scoped_restore.h: Rename include guard.
14018 * common/scoped_mmap.h: Rename include guard.
14019 * common/scoped_fd.h: Rename include guard.
14020 * common/safe-iterator.h: Rename include guard.
14021 * common/run-time-clock.h: Rename include guard.
14022 * common/refcounted-object.h: Rename include guard.
14023 * common/queue.h: Rename include guard.
14024 * common/ptid.h: Rename include guard.
14025 * common/print-utils.h: Rename include guard.
14026 * common/preprocessor.h: Rename include guard.
14027 * common/pathstuff.h: Rename include guard.
14028 * common/observable.h: Rename include guard.
14029 * common/netstuff.h: Rename include guard.
14030 * common/job-control.h: Rename include guard.
14031 * common/host-defs.h: Rename include guard.
14032 * common/gdb_wait.h: Rename include guard.
14033 * common/gdb_vecs.h: Rename include guard.
14034 * common/gdb_unlinker.h: Rename include guard.
14035 * common/gdb_unique_ptr.h: Rename include guard.
14036 * common/gdb_tilde_expand.h: Rename include guard.
14037 * common/gdb_sys_time.h: Rename include guard.
14038 * common/gdb_string_view.h: Rename include guard.
14039 * common/gdb_splay_tree.h: Rename include guard.
14040 * common/gdb_setjmp.h: Rename include guard.
14041 * common/gdb_ref_ptr.h: Rename include guard.
14042 * common/gdb_optional.h: Rename include guard.
14043 * common/gdb_locale.h: Rename include guard.
14044 * common/gdb_assert.h: Rename include guard.
14045 * common/filtered-iterator.h: Rename include guard.
14046 * common/filestuff.h: Rename include guard.
14047 * common/fileio.h: Rename include guard.
14048 * common/environ.h: Rename include guard.
14049 * common/common-utils.h: Rename include guard.
14050 * common/common-types.h: Rename include guard.
14051 * common/common-regcache.h: Rename include guard.
14052 * common/common-inferior.h: Rename include guard.
14053 * common/common-gdbthread.h: Rename include guard.
14054 * common/common-exceptions.h: Rename include guard.
14055 * common/common-defs.h: Rename include guard.
14056 * common/common-debug.h: Rename include guard.
14057 * common/cleanups.h: Rename include guard.
14058 * common/buffer.h: Rename include guard.
14059 * common/btrace-common.h: Rename include guard.
14060 * common/break-common.h: Rename include guard.
14061 * cli/cli-utils.h: Rename include guard.
14062 * cli/cli-style.h: Rename include guard.
14063 * cli/cli-setshow.h: Rename include guard.
14064 * cli/cli-script.h: Rename include guard.
14065 * cli/cli-interp.h: Rename include guard.
14066 * cli/cli-decode.h: Rename include guard.
14067 * cli/cli-cmds.h: Rename include guard.
14068 * charset-list.h: Add include guard.
14069 * buildsym-legacy.h: Rename include guard.
14070 * bfin-tdep.h: Add include guard.
14071 * ax.h: Rename include guard.
14072 * arm-linux-tdep.h: Add include guard.
14073 * arm-fbsd-tdep.h: Add include guard.
14074 * arch/xtensa.h: Rename include guard.
14075 * arch/tic6x.h: Add include guard.
14076 * arch/i386.h: Add include guard.
14077 * arch/arm.h: Rename include guard.
14078 * arch/arm-linux.h: Rename include guard.
14079 * arch/arm-get-next-pcs.h: Rename include guard.
14080 * arch/amd64.h: Add include guard.
14081 * arch/aarch64-insn.h: Rename include guard.
14082 * arch-utils.h: Rename include guard.
14083 * annotate.h: Add include guard.
14084 * amd64-darwin-tdep.h: Rename include guard.
14085 * aarch64-linux-tdep.h: Add include guard.
14086 * aarch64-fbsd-tdep.h: Add include guard.
14087 * aarch32-linux-nat.h: Add include guard.
14089 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14091 * macrotab.c (macro_define_internal): New function that
14092 factorizes macro_define_object_internal and macro_define_function
14094 (macro_define_object_internal): Use macro_define_internal.
14095 (macro_define_function): Likewise.
14097 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14099 * macrocmd.c (extract_identifier): Return
14100 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14103 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14105 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14107 2019-02-05 Tom Tromey <tom@tromey.com>
14109 * target.c (target_stack::unpush): Move assertion earlier.
14111 2019-01-30 Tom Tromey <tom@tromey.com>
14114 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14115 (gdbpy_parse_and_eval): Likewise.
14116 * python/python-internal.h (gdbpy_allow_threads): New class.
14118 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14120 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14121 (aarch64_fbsd_fpregmap): Move earlier.
14122 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14123 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14124 instead of individual calls to trad_frame_set_reg_addr.
14125 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14127 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14128 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14129 instead of individual calls to trad_frame_set_reg_addr.
14131 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14133 * CONTRIBUTE: Replace contribution list with wiki link.
14135 2019-01-25 Tom Tromey <tom@tromey.com>
14137 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14139 2019-01-25 Tom Tromey <tom@tromey.com>
14141 * xtensa-linux-nat.c: Fix common/ includes.
14142 * xml-support.h: Fix common/ includes.
14143 * xml-support.c: Fix common/ includes.
14144 * x86-linux-nat.c: Fix common/ includes.
14145 * windows-nat.c: Fix common/ includes.
14146 * varobj.h: Fix common/ includes.
14147 * varobj.c: Fix common/ includes.
14148 * value.c: Fix common/ includes.
14149 * valops.c: Fix common/ includes.
14150 * utils.c: Fix common/ includes.
14151 * unittests/xml-utils-selftests.c: Fix common/ includes.
14152 * unittests/utils-selftests.c: Fix common/ includes.
14153 * unittests/unpack-selftests.c: Fix common/ includes.
14154 * unittests/tracepoint-selftests.c: Fix common/ includes.
14155 * unittests/style-selftests.c: Fix common/ includes.
14156 * unittests/string_view-selftests.c: Fix common/ includes.
14157 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14158 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14159 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14160 * unittests/rsp-low-selftests.c: Fix common/ includes.
14161 * unittests/parse-connection-spec-selftests.c: Fix common/
14163 * unittests/optional-selftests.c: Fix common/ includes.
14164 * unittests/offset-type-selftests.c: Fix common/ includes.
14165 * unittests/observable-selftests.c: Fix common/ includes.
14166 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14167 * unittests/memrange-selftests.c: Fix common/ includes.
14168 * unittests/memory-map-selftests.c: Fix common/ includes.
14169 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14170 * unittests/function-view-selftests.c: Fix common/ includes.
14171 * unittests/environ-selftests.c: Fix common/ includes.
14172 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14173 * unittests/common-utils-selftests.c: Fix common/ includes.
14174 * unittests/cli-utils-selftests.c: Fix common/ includes.
14175 * unittests/array-view-selftests.c: Fix common/ includes.
14176 * ui-file.c: Fix common/ includes.
14177 * tui/tui-io.c: Fix common/ includes.
14178 * tracepoint.h: Fix common/ includes.
14179 * tracepoint.c: Fix common/ includes.
14180 * tracefile-tfile.c: Fix common/ includes.
14181 * top.h: Fix common/ includes.
14182 * top.c: Fix common/ includes.
14183 * thread.c: Fix common/ includes.
14184 * target/waitstatus.h: Fix common/ includes.
14185 * target/waitstatus.c: Fix common/ includes.
14186 * target.h: Fix common/ includes.
14187 * target.c: Fix common/ includes.
14188 * target-memory.c: Fix common/ includes.
14189 * target-descriptions.c: Fix common/ includes.
14190 * symtab.h: Fix common/ includes.
14191 * symfile.c: Fix common/ includes.
14192 * stap-probe.c: Fix common/ includes.
14193 * spu-linux-nat.c: Fix common/ includes.
14194 * sparc-nat.c: Fix common/ includes.
14195 * source.c: Fix common/ includes.
14196 * solib.c: Fix common/ includes.
14197 * solib-target.c: Fix common/ includes.
14198 * ser-unix.c: Fix common/ includes.
14199 * ser-tcp.c: Fix common/ includes.
14200 * ser-pipe.c: Fix common/ includes.
14201 * ser-base.c: Fix common/ includes.
14202 * selftest-arch.c: Fix common/ includes.
14203 * s12z-tdep.c: Fix common/ includes.
14204 * rust-exp.y: Fix common/ includes.
14205 * rs6000-aix-tdep.c: Fix common/ includes.
14206 * riscv-tdep.c: Fix common/ includes.
14207 * remote.c: Fix common/ includes.
14208 * remote-notif.h: Fix common/ includes.
14209 * remote-fileio.h: Fix common/ includes.
14210 * remote-fileio.c: Fix common/ includes.
14211 * regcache.h: Fix common/ includes.
14212 * regcache.c: Fix common/ includes.
14213 * record-btrace.c: Fix common/ includes.
14214 * python/python.c: Fix common/ includes.
14215 * python/py-type.c: Fix common/ includes.
14216 * python/py-inferior.c: Fix common/ includes.
14217 * progspace.h: Fix common/ includes.
14218 * producer.c: Fix common/ includes.
14219 * procfs.c: Fix common/ includes.
14220 * proc-api.c: Fix common/ includes.
14221 * printcmd.c: Fix common/ includes.
14222 * ppc-linux-nat.c: Fix common/ includes.
14223 * parser-defs.h: Fix common/ includes.
14224 * osdata.c: Fix common/ includes.
14225 * obsd-nat.c: Fix common/ includes.
14226 * nat/x86-linux.c: Fix common/ includes.
14227 * nat/x86-linux-dregs.c: Fix common/ includes.
14228 * nat/x86-dregs.h: Fix common/ includes.
14229 * nat/x86-dregs.c: Fix common/ includes.
14230 * nat/ppc-linux.c: Fix common/ includes.
14231 * nat/mips-linux-watch.h: Fix common/ includes.
14232 * nat/mips-linux-watch.c: Fix common/ includes.
14233 * nat/linux-waitpid.c: Fix common/ includes.
14234 * nat/linux-ptrace.h: Fix common/ includes.
14235 * nat/linux-ptrace.c: Fix common/ includes.
14236 * nat/linux-procfs.c: Fix common/ includes.
14237 * nat/linux-personality.c: Fix common/ includes.
14238 * nat/linux-osdata.c: Fix common/ includes.
14239 * nat/linux-namespaces.c: Fix common/ includes.
14240 * nat/linux-btrace.h: Fix common/ includes.
14241 * nat/linux-btrace.c: Fix common/ includes.
14242 * nat/fork-inferior.c: Fix common/ includes.
14243 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14244 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14245 * nat/aarch64-linux.c: Fix common/ includes.
14246 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14247 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14248 * namespace.h: Fix common/ includes.
14249 * mips-linux-tdep.c: Fix common/ includes.
14250 * minsyms.c: Fix common/ includes.
14251 * mi/mi-parse.h: Fix common/ includes.
14252 * mi/mi-main.c: Fix common/ includes.
14253 * mi/mi-cmd-env.c: Fix common/ includes.
14254 * memrange.h: Fix common/ includes.
14255 * memattr.c: Fix common/ includes.
14256 * maint.h: Fix common/ includes.
14257 * maint.c: Fix common/ includes.
14258 * main.c: Fix common/ includes.
14259 * machoread.c: Fix common/ includes.
14260 * location.c: Fix common/ includes.
14261 * linux-thread-db.c: Fix common/ includes.
14262 * linux-nat.c: Fix common/ includes.
14263 * linux-fork.c: Fix common/ includes.
14264 * inline-frame.c: Fix common/ includes.
14265 * infrun.c: Fix common/ includes.
14266 * inflow.c: Fix common/ includes.
14267 * inferior.h: Fix common/ includes.
14268 * inferior.c: Fix common/ includes.
14269 * infcmd.c: Fix common/ includes.
14270 * inf-ptrace.c: Fix common/ includes.
14271 * inf-child.c: Fix common/ includes.
14272 * ia64-linux-nat.c: Fix common/ includes.
14273 * i387-tdep.c: Fix common/ includes.
14274 * i386-tdep.c: Fix common/ includes.
14275 * i386-linux-tdep.c: Fix common/ includes.
14276 * i386-linux-nat.c: Fix common/ includes.
14277 * i386-go32-tdep.c: Fix common/ includes.
14278 * i386-fbsd-tdep.c: Fix common/ includes.
14279 * i386-fbsd-nat.c: Fix common/ includes.
14280 * guile/scm-type.c: Fix common/ includes.
14281 * guile/guile.c: Fix common/ includes.
14282 * go32-nat.c: Fix common/ includes.
14283 * gnu-nat.c: Fix common/ includes.
14284 * gdbthread.h: Fix common/ includes.
14285 * gdbarch-selftests.c: Fix common/ includes.
14286 * gdb_usleep.c: Fix common/ includes.
14287 * gdb_select.h: Fix common/ includes.
14288 * gdb_bfd.c: Fix common/ includes.
14289 * gcore.c: Fix common/ includes.
14290 * fork-child.c: Fix common/ includes.
14291 * findvar.c: Fix common/ includes.
14292 * fbsd-nat.c: Fix common/ includes.
14293 * event-top.c: Fix common/ includes.
14294 * event-loop.c: Fix common/ includes.
14295 * dwarf2read.c: Fix common/ includes.
14296 * dwarf2loc.c: Fix common/ includes.
14297 * dwarf2-frame.c: Fix common/ includes.
14298 * dwarf-index-cache.c: Fix common/ includes.
14299 * dtrace-probe.c: Fix common/ includes.
14300 * disasm-selftests.c: Fix common/ includes.
14301 * defs.h: Fix common/ includes.
14302 * csky-tdep.c: Fix common/ includes.
14303 * cp-valprint.c: Fix common/ includes.
14304 * cp-support.h: Fix common/ includes.
14305 * cp-support.c: Fix common/ includes.
14306 * corelow.c: Fix common/ includes.
14307 * completer.h: Fix common/ includes.
14308 * completer.c: Fix common/ includes.
14309 * compile/compile.c: Fix common/ includes.
14310 * compile/compile-loc2c.c: Fix common/ includes.
14311 * compile/compile-cplus-types.c: Fix common/ includes.
14312 * compile/compile-cplus-symbols.c: Fix common/ includes.
14313 * command.h: Fix common/ includes.
14314 * cli/cli-dump.c: Fix common/ includes.
14315 * cli/cli-cmds.c: Fix common/ includes.
14316 * charset.c: Fix common/ includes.
14317 * build-id.c: Fix common/ includes.
14318 * btrace.h: Fix common/ includes.
14319 * btrace.c: Fix common/ includes.
14320 * breakpoint.h: Fix common/ includes.
14321 * breakpoint.c: Fix common/ includes.
14323 (enum agent_op): Fix common/ includes.
14324 * ax-general.c (struct aop_map): Fix common/ includes.
14325 * ax-gdb.c: Fix common/ includes.
14326 * auxv.c: Fix common/ includes.
14327 * auto-load.c: Fix common/ includes.
14328 * arm-tdep.c: Fix common/ includes.
14329 * arch/riscv.c: Fix common/ includes.
14330 * arch/ppc-linux-common.c: Fix common/ includes.
14331 * arch/i386.c: Fix common/ includes.
14332 * arch/arm.c: Fix common/ includes.
14333 * arch/arm-linux.c: Fix common/ includes.
14334 * arch/arm-get-next-pcs.c: Fix common/ includes.
14335 * arch/amd64.c: Fix common/ includes.
14336 * arch/aarch64.c: Fix common/ includes.
14337 * arch/aarch64-insn.c: Fix common/ includes.
14338 * arch-utils.c: Fix common/ includes.
14339 * amd64-windows-tdep.c: Fix common/ includes.
14340 * amd64-tdep.c: Fix common/ includes.
14341 * amd64-sol2-tdep.c: Fix common/ includes.
14342 * amd64-obsd-tdep.c: Fix common/ includes.
14343 * amd64-nbsd-tdep.c: Fix common/ includes.
14344 * amd64-linux-tdep.c: Fix common/ includes.
14345 * amd64-linux-nat.c: Fix common/ includes.
14346 * amd64-fbsd-tdep.c: Fix common/ includes.
14347 * amd64-fbsd-nat.c: Fix common/ includes.
14348 * amd64-dicos-tdep.c: Fix common/ includes.
14349 * amd64-darwin-tdep.c: Fix common/ includes.
14350 * agent.c: Fix common/ includes.
14351 * ada-lang.h: Fix common/ includes.
14352 * ada-lang.c: Fix common/ includes.
14353 * aarch64-tdep.c: Fix common/ includes.
14355 2019-01-25 Tom Tromey <tom@tromey.com>
14357 * common/create-version.sh: Use common/version.h.
14359 2019-01-24 Pedro Alves <palves@redhat.com>
14361 * infrun.c (signal_stop, signal_print, signal_program)
14362 (signal_catch, signal_pass): Now arrays instead of pointers.
14363 (update_signals_program_target, do_target_resume)
14364 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14365 * linux-nat.c (linux_nat_target::pass_signals)
14366 (linux_nat_target::create_inferior, linux_nat_target::attach):
14368 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14369 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14370 * procfs.c (procfs_target::pass_signals): Adjust.
14371 * record-full.c (record_full_target::resume): Adjust.
14372 * remote.c (remote_target::pass_signals)
14373 (remote_target::program_signals): Adjust.
14374 * target-debug.h (target_debug_print_signals): Now takes a
14375 gdb::array_view as parameter. Adjust.
14376 * target.h (target_ops) <pass_signals, program_signals>: Replace
14377 pointer and length parameters with gdb::array_view.
14378 (target_pass_signals, target_program_signals): Likewise.
14379 * target-delegates.c: Regenerate.
14381 2019-01-24 Pedro Alves <palves@redhat.com>
14383 * common/forward-scope-exit.h
14384 (forward_scope_exit::forward_scope_exit): Pass arguments to
14385 m_bind_function directly, instead of creating a std::bind and
14388 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14390 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14391 for static members.
14392 (pass_in_v_vfp_candidate): Likewise.
14394 2019-01-23 Tom Tromey <tom@tromey.com>
14395 Pedro Alves <palves@redhat.com>
14397 * regcache.c (class regcache_invalidator): Remove.
14398 (regcache::raw_write): Use make_scope_exit.
14400 2019-01-23 Tom Tromey <tom@tromey.com>
14402 * ui-out.h (class ui_out_emit_type): Update comment.
14404 2019-01-23 Tom Tromey <tom@tromey.com>
14406 * infrun.c (fetch_inferior_event): Update comment.
14408 2019-01-23 Tom Tromey <tom@tromey.com>
14409 Pedro Alves <palves@redhat.com>
14411 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14413 (fetch_inferior_event): Use SCOPE_EXIT.
14416 2019-01-23 Tom Tromey <tom@tromey.com>
14417 Pedro Alves <palves@redhat.com>
14419 * infrun.c (disable_thread_events): Delete.
14420 (stop_all_threads): Use SCOPE_EXIT.
14422 2019-01-23 Tom Tromey <tom@tromey.com>
14423 Pedro Alves <palves@redhat.com>
14425 * symfile.c: Include forward-scope-exit.h.
14426 (clear_symtab_users_cleanup): Replace forward declaration with
14427 a FORWARD_SCOPE_EXIT.
14428 (syms_from_objfile_1): Use the forward_scope_exit and
14429 gdb::optional instead of cleanup_function.
14430 (reread_symbols): Use the forward_scope_exit instead of
14432 (clear_symtab_users_cleanup): Remove function.
14434 2019-01-23 Tom Tromey <tom@tromey.com>
14435 Pedro Alves <palves@redhat.com>
14437 * linux-nat.c: Include scope-exit.h.
14438 (cleanup_target_stop): Remove.
14439 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14442 2019-01-23 Tom Tromey <tom@tromey.com>
14443 Pedro Alves <palves@redhat.com>
14445 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14446 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14448 2019-01-23 Tom Tromey <tom@tromey.com>
14449 Andrew Burgess <andrew.burgess@embecosm.com>
14450 Pedro Alves <palves@redhat.com>
14452 * infrun.c (fetch_inferior_event): Use scope_exit.
14453 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14454 * top.c (execute_command): Use scope_exit.
14455 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14456 * utils.c (do_bpstat_clear_actions_cleanup)
14457 (make_bpstat_clear_actions_cleanup): Remove.
14459 2019-01-23 Tom Tromey <tom@tromey.com>
14460 Pedro Alves <palves@redhat.com>
14462 * infrun.c: Include "common/scope-exit.h"
14463 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14464 (wait_for_inferior): Use SCOPE_EXIT.
14465 (fetch_inferior_event): Use scope_exit.
14467 2019-01-23 Tom Tromey <tom@tromey.com>
14468 Pedro Alves <palves@redhat.com>
14470 * breakpoint.c (create_breakpoint): Remove cleanup.
14472 2019-01-23 Tom Tromey <tom@tromey.com>
14473 Andrew Burgess <andrew.burgess@embecosm.com>
14474 Pedro Alves <palves@redhat.com>
14476 2019-01-23 Pedro Alves <palves@redhat.com>
14478 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14480 2019-01-23 Pedro Alves <palves@redhat.com>
14481 Andrew Burgess <andrew.burgess@embecosm.com>
14483 * gdbthread.h: Include "common/forward-scope-exit.h".
14484 (scoped_finish_thread_state): Redefine custom class in terms of
14485 forward_scope_exit.
14487 2019-01-23 Pedro Alves <palves@redhat.com>
14488 Andrew Burgess <andrew.burgess@embecosm.com>
14490 * common/forward-scope-exit.h: New file.
14492 2019-01-23 Pedro Alves <palves@redhat.com>
14493 Andrew Burgess <andrew.burgess@embecosm.com>
14494 Tom Tromey <tom@tromey.com>
14496 * common/scope-exit.h: New file.
14498 2019-01-23 Pedro Alves <palves@redhat.com>
14500 * common/preprocessor.h (ESC): Rename to ...
14501 (ESC_PARENS): ... this.
14502 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14503 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14505 2019-01-23 Tom Tromey <tom@tromey.com>
14507 * language.h (class scoped_switch_to_sym_language_if_auto):
14508 Initialize m_lang in both cases.
14510 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14512 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14515 2019-01-22 Tom Tromey <tom@tromey.com>
14517 * corelow.c: Do not include sys/file.h.
14519 2019-01-22 Tom Tromey <tom@tromey.com>
14521 * tui/tui-wingeneral.h: Include gdb_curses.h.
14523 2019-01-22 Tom Tromey <tom@tromey.com>
14525 * source-cache.h (class source_cache) <get_source_lines,
14526 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14528 2019-01-22 Tom Tromey <tom@tromey.com>
14530 * remote-fileio.h (struct remote_target): Declare.
14532 2019-01-22 Tom Tromey <tom@tromey.com>
14534 * python/py-arch.c: Do not include py-ref.h.
14535 * python/py-bpevent.c: Do not include py-ref.h.
14536 * python/py-cmd.c: Do not include py-ref.h.
14537 * python/py-continueevent.c: Do not include py-ref.h.
14538 * python/py-event.h: Do not include py-ref.h.
14539 * python/py-evtregistry.c: Do not include py-ref.h.
14540 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14541 * python/py-frame.c: Do not include py-ref.h.
14542 * python/py-framefilter.c: Do not include py-ref.h.
14543 * python/py-function.c: Do not include py-ref.h.
14544 * python/py-infevents.c: Do not include py-ref.h.
14545 * python/py-linetable.c: Do not include py-ref.h.
14546 * python/py-objfile.c: Do not include py-ref.h.
14547 * python/py-param.c: Do not include py-ref.h.
14548 * python/py-prettyprint.c: Do not include py-ref.h.
14549 * python/py-progspace.c: Do not include py-ref.h.
14550 * python/py-symbol.c: Do not include py-ref.h.
14551 * python/py-symtab.c: Do not include py-ref.h.
14552 * python/py-type.c: Do not include py-ref.h.
14553 * python/py-unwind.c: Do not include py-ref.h.
14554 * python/py-utils.c: Do not include py-ref.h.
14555 * python/py-value.c: Do not include py-ref.h.
14556 * python/py-varobj.c: Do not include py-ref.h.
14557 * python/py-xmethods.c: Do not include py-ref.h.
14558 * python/python.c: Do not include py-ref.h.
14559 * varobj.c: Do not include py-ref.h.
14561 2019-01-22 Tom Tromey <tom@tromey.com>
14563 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14564 keyword for bcache.
14566 2019-01-22 Tom Tromey <tom@tromey.com>
14568 * compile/compile-cplus-types.c: Remove a comment by #include.
14570 2019-01-22 Tom Tromey <tom@tromey.com>
14572 * compile/gcc-c-plugin.h: Include compile-internal.h.
14574 2019-01-22 Tom Tromey <tom@tromey.com>
14576 * stabsread.c (EXTERN): Do not define.
14577 (symnum, next_symbol_text_func, processing_gcc_compilation)
14578 (within_function, global_sym_chain, global_stabs)
14579 (previous_stab_code, this_object_header_files)
14580 (n_this_object_header_files)
14581 (n_allocated_this_object_header_files): Define.
14582 * stabsread.h (EXTERN): Never define. Use "extern".
14584 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14586 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14589 2019-01-21 Tom Tromey <tom@tromey.com>
14591 * ui-out.c: Fix includes.
14592 * tui/tui-source.c: Fix includes.
14593 * target.c: Fix includes.
14594 * remote.c: Fix includes.
14595 * regcache.c: Fix includes.
14596 * python/py-block.c: Fix includes.
14597 * printcmd.c: Fix includes.
14598 * or1k-tdep.c: Fix includes.
14599 * mi/mi-main.c: Fix includes.
14600 * m32r-tdep.c: Fix includes.
14601 * csky-tdep.c: Fix includes.
14602 * compile/compile-cplus-types.c: Fix includes.
14603 * cli/cli-interp.c: Fix includes.
14605 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14607 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14610 2019-01-16 Tom Tromey <tom@tromey.com>
14612 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14614 (struct objfile) <msymbols_range>: Move from top level.
14615 <msymbols>: New method.
14616 (class objfile_msymbols): Remove.
14617 * symtab.c (default_collect_symbol_completion_matches_break_on):
14619 * symmisc.c (dump_msymbols): Update.
14620 * stabsread.c (scan_file_globals): Update.
14621 * objc-lang.c (info_selectors_command, info_classes_command)
14622 (find_methods): Update.
14623 * minsyms.c (find_solib_trampoline_target): Update.
14624 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14625 * coffread.c (coff_symfile_read): Update.
14626 * ada-lang.c (ada_lookup_simple_minsym)
14627 (ada_collect_symbol_completion_matches): Update.
14629 2019-01-16 Tom Tromey <tom@tromey.com>
14631 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14632 type. Remove no-argument constructor.
14633 <iterator::operator++>: Simplify.
14635 <end>: Use minimal_symbol_count.
14637 2019-01-16 Tom Tromey <tom@tromey.com>
14639 * objfiles.h (struct objfile) <psymtabs>: New method.
14640 (class objfile_psymtabs): Remove.
14641 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14643 <range>: New method.
14644 (require_partial_symbols): Change return type.
14645 * psymtab.c (require_partial_symbols)
14646 (psym_expand_symtabs_matching): Update.
14647 * mdebugread.c (parse_partial_symbols): Update.
14648 * dbxread.c (dbx_end_psymtab): Update.
14650 2019-01-15 Tom Tromey <tom@tromey.com>
14652 * symtab.c (lookup_objfile_from_block)
14653 (lookup_symbol_in_objfile_symtabs)
14654 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14655 (find_line_symtab, info_sources_command)
14656 (default_collect_symbol_completion_matches_break_on)
14657 (make_source_files_completion_list): Update.
14658 * symmisc.c (print_objfile_statistics, dump_objfile)
14659 (maintenance_print_symbols, maintenance_info_symtabs)
14660 (maintenance_check_symtabs, maintenance_info_line_tables):
14662 * source.c (select_source_symtab)
14663 (forget_cached_source_info_for_objfile): Update.
14664 * objfiles.h (class objfile_compunits): Remove.
14665 (struct objfile) <compunits_range>: New typedef.
14666 (compunits): New method.
14667 * objfiles.c (objfile_relocate1): Update.
14668 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14669 * maint.c (count_symtabs_and_blocks): Update.
14670 * linespec.c (iterate_over_all_matching_symtabs): Update.
14671 * cp-support.c (add_symbol_overload_list_qualified): Update.
14672 * coffread.c (coff_symtab_read): Update.
14673 * ada-lang.c (add_nonlocal_symbols)
14674 (ada_collect_symbol_completion_matches)
14675 (ada_add_global_exceptions): Update.
14677 2019-01-15 Tom Tromey <tom@tromey.com>
14679 * progspace.h (program_space) <objfiles_safe_range>: New
14681 <objfiles_safe>: New method.
14682 * objfiles.h (class all_objfiles_safe): Remove.
14683 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14684 * jit.c (jit_inferior_exit_hook): Update.
14686 2019-01-17 Tom Tromey <tom@tromey.com>
14688 * progspace.h (program_space) <objfiles_range>: New typedef.
14689 <objfiles>: New method.
14690 <objfiles_head>: Rename from objfiles.
14691 (object_files): Update.
14692 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14693 * guile/scm-pretty-print.c
14694 (ppscm_find_pretty_printer_from_objfiles): Update.
14695 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14696 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14698 * python/py-progspace.c (pspy_get_objfiles): Update.
14699 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14701 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14702 (objfpy_lookup_objfile_by_build_id): Update.
14703 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14704 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14706 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14707 (expand_symtab_containing_pc, lookup_objfile_from_block)
14708 (lookup_static_symbol, basic_lookup_transparent_type)
14709 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14710 (find_line_symtab, info_sources_command)
14711 (default_collect_symbol_completion_matches_break_on)
14712 (make_source_files_completion_list, find_main_name): Update.
14713 * symmisc.c (print_symbol_bcache_statistics)
14714 (print_objfile_statistics, maintenance_print_symbols)
14715 (maintenance_print_msymbols, maintenance_print_objfiles)
14716 (maintenance_info_symtabs, maintenance_check_symtabs)
14717 (maintenance_expand_symtabs, maintenance_info_line_tables):
14719 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14720 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14721 (map_overlay_command, unmap_overlay_command)
14722 (simple_overlay_update, expand_symtabs_matching)
14723 (map_symbol_filenames): Update.
14724 * symfile-debug.c (set_debug_symfile): Update.
14725 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14727 * source.c (select_source_symtab, forget_cached_source_info):
14729 * solib.c (solib_read_symbols): Update.
14730 * solib-spu.c (append_ocl_sos): Update.
14731 * psymtab.c (maintenance_print_psymbols)
14732 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14733 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14734 * printcmd.c (info_symbol_command): Update.
14735 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14737 * objfiles.h (class all_objfiles): Remove.
14738 * objfiles.c (have_partial_symbols, have_full_symbols)
14739 (have_minimal_symbols, qsort_cmp, update_section_map)
14740 (shared_objfile_contains_address_p)
14741 (default_iterate_over_objfiles_in_search_order): Update.
14742 * objc-lang.c (info_selectors_command, info_classes_command)
14743 (find_methods): Update.
14744 * minsyms.c (find_solib_trampoline_target): Update.
14745 * maint.c (maintenance_info_sections)
14746 (maintenance_translate_address, count_symtabs_and_blocks):
14748 * main.c (captured_main_1): Update.
14749 * linux-thread-db.c (try_thread_db_load_from_pdir)
14750 (has_libpthread): Update.
14751 * linespec.c (iterate_over_all_matching_symtabs)
14752 (search_minsyms_for_name): Update.
14753 * jit.c (jit_find_objf_with_entry_addr): Update.
14754 * hppa-tdep.c (find_unwind_entry)
14755 (hppa_lookup_stub_minimal_symbol): Update.
14756 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14758 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14759 (elf_gnu_ifunc_resolve_by_got): Update.
14760 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14761 * dwarf-index-write.c (save_gdb_index_command): Update.
14762 * cp-support.c (add_symbol_overload_list_qualified): Update.
14763 * breakpoint.c (create_overlay_event_breakpoint)
14764 (create_longjmp_master_breakpoint)
14765 (create_std_terminate_master_breakpoint)
14766 (create_exception_master_breakpoint): Update.
14767 * blockframe.c (find_pc_partial_function): Update.
14768 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14769 (ada_collect_symbol_completion_matches)
14770 (ada_add_global_exceptions): Update.
14772 2019-01-17 Tom Tromey <tom@tromey.com>
14774 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14776 (solib_target_parse_libraries): Change return type.
14777 (library_list_start_segment, library_list_start_section)
14778 (library_list_end_library, library_list_start_library); Update.
14779 (solib_target_free_library_list): Remove.
14780 (solib_target_parse_libraries): Remove cleanup. Change return
14782 (solib_target_current_sos): Update.
14784 2019-01-17 Tom Tromey <tromey@bapiya>
14786 * valprint.c: Replace "the the" with "the".
14787 * symtab.c: Replace "the the" with "the".
14788 * solib.c: Replace "the the" with "the".
14789 * solib-dsbt.c: Replace "the the" with "the".
14790 * linespec.c: Replace "the the" with "the".
14791 * dwarf2loc.h: Replace "the the" with "the".
14792 * amd64-windows-tdep.c: Replace "the the" with "the".
14793 * aarch64-tdep.c: Replace "the the" with "the".
14795 2019-01-16 Keith Seitz <keiths@redhat.com>
14798 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14799 <builder>: Rename to ..
14800 <m_builder>: ... this and make private.
14801 (dwarf2_cu::get_builder): New method. Change all users of
14802 `builder' to use this method.
14803 (dwarf2_start_symtab): Move to ...
14804 (dwarf2_cu::start_symtab): ... here. Update all callers
14805 (setup_type_unit_groups): Move to ...
14806 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14808 (dwarf2_cu::reset_builder): New method.
14809 (process_full_compunit, process_full_type_unit): Use
14810 dwarf2_cu::reset_builder.
14811 (follow_die_offset): Record the ancestor CU if it is different
14812 from the followed DIE's CU.
14813 (follow_die_sig_1): Likewise.
14815 2019-01-15 Tom Tromey <tom@tromey.com>
14817 * remote.c (class remote_state) <buf>: Now a char_vector.
14818 <buf_size>: Remove.
14819 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14821 (remote_target::getpkt_or_notif_sane_1)
14822 (remote_target::getpkt_sane)
14823 (remote_target::getpkt_or_notif_sane): Likewise.
14824 (class remote_target) <putpkt>: New overload.
14825 (remote_target::read_frame): Change type of "buf_p". Remove
14826 sizeof_p parameter.
14827 (packet_ok): New overload.
14828 (packet_check_result): New overload.
14831 2019-01-14 Tom Tromey <tom@tromey.com>
14833 * remote-notif.c (handle_notification, remote_notif_ack)
14834 (remote_notif_parse): Make "buf" const.
14835 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14837 (remote_notif_parse, remote_notif_ack, handle_notification):
14839 * remote.c (remote_notif_stop_parse): Make "buf" const.
14840 (remote_target::remote_parse_stop_reply): Make "buf" const.
14841 (remote_notif_stop_ack): Make "buf" const.
14843 2019-01-14 Tom Tromey <tom@tromey.com>
14845 * remote.c (remote_console_output): Make parameter const.
14847 2019-01-14 Tom Tromey <tom@tromey.com>
14849 * target-debug.h (target_debug_print_signals): Constify.
14850 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14851 * procfs.c (procfs_target::pass_signals): Update.
14852 * linux-nat.c (linux_nat_target::pass_signals): Update.
14853 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14854 * target-delegates.c: Rebuild.
14855 * remote.c (remote_target::program_signals): Update.
14856 (remote_target::pass_signals): Update.
14857 * target.c (target_pass_signals): Constify argument.
14858 (target_program_signals): Likewise.
14859 * target.h (struct target_ops) <pass_signals, program_signals>:
14861 (target_pass_signals, target_program_signals): Constify argument.
14863 2019-01-14 Tom Tromey <tom@tromey.com>
14866 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14868 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14870 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14872 * rs6000-tdep.c: Include reggroups.h.
14873 (IS_V_ALIAS_PSEUDOREG): Define.
14874 (rs6000_register_name): Return names for the "vX" aliases.
14875 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14876 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14877 aliases. Call default_register_reggroup_p for all other
14879 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14881 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14882 Handle "vX" aliases.
14883 (v_alias_pseudo_register_collect): New function.
14884 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14885 (rs6000_gdbarch_init): Initialize "vX" aliases as
14886 pseudo-registers. Restore registration of
14887 rs6000_pseudo_register_reggroup_p with
14888 set_tdesc_pseudo_register_reggroup_p.
14890 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14892 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14893 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14894 set_gdbarch_num_pseudo_regs.
14896 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14898 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14899 Remove arg prefixname, add do_set and do_show.
14900 Add member functions set_list and show_list.
14901 * cli/cli-style.c (class cli_style_option): Update accordingly.
14902 (style_set_list): Move to file scope.
14903 (style_show_list): Likewise.
14904 (set_style): Call help_list.
14905 (show_style): Call cmd_show_list.
14906 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14907 Update to use the new macro.
14909 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14911 * ada-lang.c (_initialize_ada_language): Expand the help text
14912 for the "catch exception" command.
14914 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14916 * symtab.c (matching_obj_sections): Initialize obj,
14917 declare it closer to its usage.
14919 2019-01-10 Tom Tromey <tom@tromey.com>
14921 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14922 (basic_inf_threads_range): Remove.
14923 (inf_threads_range, inf_non_exited_threads_range)
14924 (safe_inf_threads_range): Use next_adapter.
14926 2019-01-10 Keith Seitz <keiths@redhat.com>
14930 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14931 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14933 2019-01-10 Keith Seitz <keiths@redhat.com>
14937 * dictionary.c (pending_to_vector): Remove.
14938 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14939 Remove _1 suffix, replacing functions of the same name. Update
14941 (dict_create_hashed, dict_create_hashed_expandable)
14942 (dict_create_linear, dict_create_linear_expandable, dict_free)
14943 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14944 Make functions static.
14946 2019-01-10 Keith Seitz <keiths@redhat.com>
14950 * dictionary.h (struct dictionary): Replace declaration with
14952 (dict_create_hashed, dict_create_hashed_expandable)
14953 (dict_create_linear, dict_create_linear_expandable)
14954 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14955 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14956 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14957 taking multidictionary argument.
14958 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14959 * block.h (struct block) <dict>: Change to multidictionary
14960 and rename `multidict'.
14961 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14962 symmisc.c: Update all dictionary references to multidictionary.
14964 2019-01-10 Keith Seitz <keiths@redhat.com>
14968 * dictionary.c: Include unordered_map.
14969 (pending_to_vector): New function.
14970 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14971 Rewrite the non-"_1" functions to take vector instead
14973 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14974 "new" _1 versions of the same name.
14975 (multidictionary): Define.
14976 (std::hash<enum language): New definition.
14977 (collate_pending_symbols_by_language, mdict_create_hashed)
14978 (mdict_create_hashed_expandable, mdict_create_linear)
14979 (mdict_create_linear_expandable, mdict_free)
14980 (find_language_dictionary, create_new_language_dictionary)
14981 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14982 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14983 (mdict_size, mdict_empty): New functions.
14984 * dictionary.h (mdict_iterator): Define.
14986 2019-01-10 Pedro Alves <palves@redhat.com>
14988 * breakpoint.c (read_uploaded_action)
14989 (create_tracepoint_from_upload): Adjust to use
14990 gdb::unique_xmalloc_ptr.
14991 * ctf.c (ctf_write_uploaded_tp):
14992 (SET_ARRAY_FIELD): Use emplace_back.
14993 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14994 * tracefile-tfile.c (tfile_write_uploaded_tp):
14995 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14996 gdb::unique_xmalloc_ptr.
14997 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14998 at_string, cond_string, cmd_strings>: Replace char pointers
14999 with gdb::unique_xmalloc_ptr.
15001 2019-01-10 Pedro Alves <palves@redhat.com>
15003 * solib-target.c (library_list_start_library): Don't xstrdup name.
15005 2019-01-10 Pedro Alves <palves@redhat.com>
15007 * mdebugread.c (parse_partial_symbols): Use
15008 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15010 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15012 * linux-fork.c (scoped_switch_fork_info)
15013 <~scoped_switch_fork_info>: Fix incorrect variable name.
15015 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15017 * linux-fork.c (scoped_switch_fork_info)
15018 <scoped_switch_fork_info>: Make explicit.
15019 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15021 2019-01-10 Tom Tromey <tom@tromey.com>
15023 * objfiles.h (objfile::reset_psymtabs): Update.
15024 * objfiles.c (objfile::objfile): Update.
15025 * psymtab.h (psymtab_storage::obstack): Update.
15026 (psymtab_storage::m_obstack): Use gdb::optional.
15027 (class psymtab_storage): Update comment. Remove objfile
15029 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15031 2019-01-10 Tom Tromey <tom@tromey.com>
15033 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15034 <free_psymtabs>: Now private.
15035 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15036 (allocate_psymtab): Use new method.
15038 2019-01-10 Tom Tromey <tom@tromey.com>
15040 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15041 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15042 * mdebugread.c (parse_partial_symbols): Use
15043 allocate_dependencies.
15044 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15045 allocate_dependencies.
15046 (process_psymtab_comp_unit_reader)
15047 (build_type_psymtab_dependencies): Likewise.
15048 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15050 2019-01-10 Tom Tromey <tom@tromey.com>
15052 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15053 PSYMBOL_SET_LANGUAGE.
15054 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15056 2019-01-10 Tom Tromey <tom@tromey.com>
15058 * psymtab.h (psymtab_storage::obstack): New method.
15059 <m_obstack>: Rename from obstack; now private.
15060 * psymtab.c (psymtab_storage): Update.
15061 * dwarf2read.c (create_addrmap_from_index)
15062 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15065 2019-01-10 Tom Tromey <tom@tromey.com>
15067 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15068 * objfiles.h (objfile::reset_psymtabs): New method.
15070 2019-01-10 Tom Tromey <tom@tromey.com>
15072 * symmisc.c (print_symbol_bcache_statistics): Update.
15073 (print_objfile_statistics): Update.
15074 * symfile.c (reread_symbols): Update.
15075 * psymtab.h (class psymtab_storage): New.
15076 * psymtab.c (psymtab_storage): New constructor.
15077 (~psymtab_storage): New destructor.
15078 (require_partial_symbols): Update.
15079 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15080 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15081 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15082 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15083 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15084 (start_psymtab_common, end_psymtab_common)
15085 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15086 (allocate_psymtab): Update.
15087 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15089 (dump_psymtab_addrmap, maintenance_print_psymbols)
15090 (maintenance_check_psymtabs): Update.
15091 (class objfile_psymtabs): Move to objfiles.h.
15092 * psympriv.h (discard_psymtab): Now inline.
15093 (psymtab_discarder::psymtab_discarder): Update.
15094 (psymtab_discarder::~psymtab_discarder): Update.
15095 (ALL_OBJFILE_PSYMTABS): Rewrite.
15096 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15097 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15099 <partial_symtabs>: New field.
15100 (class objfile_psymtabs): Move from psymtab.h. Update.
15101 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15103 (objfile::~objfile): Don't destroy psymbol_cache.
15104 * mdebugread.c (parse_partial_symbols): Update.
15105 * dwarf2read.c (create_addrmap_from_index)
15106 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15107 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15108 (add_partial_subprogram, dwarf2_ranges_read): Update.
15109 * dwarf-index-write.c (write_address_map)
15110 (write_one_signatured_type, recursively_write_psymbols)
15111 (class debug_names, class debug_names, write_psymtabs_to_index):
15114 2019-01-10 Tom Tromey <tom@tromey.com>
15116 * symtab.h (SYMBOL_SET_NAMES): Update.
15117 (symbol_set_names): Update.
15118 (MSYMBOL_SET_NAMES): Update.
15119 * symtab.c (symbol_set_names): Change argument to be an
15120 objfile_per_bfd_storage.
15121 * psymtab.c (add_psymbol_to_bcache): Update.
15122 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15124 2019-01-10 Tom Tromey <tom@tromey.com>
15126 * symtab.c (create_demangled_names_hash): Change argument to be an
15127 objfile_per_bfd_storage.
15128 (symbol_set_names): Update.
15130 2019-01-10 Tom Tromey <tom@tromey.com>
15132 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15134 * psymtab.c (init_psymbol_list): Do nothing if already called.
15135 * psympriv.h (init_psymbol_list): Add comment.
15136 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15138 * dbxread.c (dbx_symfile_read): Unconditionally call
15141 2019-01-10 Tom Tromey <tom@tromey.com>
15143 * xcoffread.c (scan_xcoff_symtab): Update.
15144 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15146 * mdebugread.c (parse_partial_symbols)
15147 (handle_psymbol_enumerators): Update.
15148 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15149 * dbxread.c (read_dbx_symtab): Update.
15150 * psympriv.h (psymbol_placement): New enum.
15151 (add_psymbol_to_list): Update.
15153 2019-01-10 Tom Tromey <tom@tromey.com>
15155 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15156 static_psymbols parameters.
15157 (scan_xcoff_symtab): Update.
15158 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15159 static_psymbols parameters.
15160 * psympriv.h (start_psymtab_common): Update.
15161 * mdebugread.c (parse_partial_symbols): Update.
15162 * dwarf2read.c (create_partial_symtab): Update.
15163 * dbxread.c (read_dbx_symtab): Update.
15164 (start_psymtab): Remove global_psymbols and static_psymbols
15167 2019-01-10 Tom Tromey <tom@tromey.com>
15169 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15170 * psymtab.c (allocate_psymtab): Add comment.
15171 * psympriv.h (allocate_psymtab): Add comment.
15172 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15174 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15176 2019-01-10 Tom Tromey <tom@tromey.com>
15178 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15180 * mipsread.c: Include mdebugread.h.
15181 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15183 * elfread.c: Include mdebugread.h.
15185 2019-01-09 Tom Tromey <tom@tromey.com>
15187 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15188 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15189 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15190 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15191 (psym_lookup_symbol, psym_find_last_source_symtab)
15192 (psym_forget_cached_source_info, psym_print_stats)
15193 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15194 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15195 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15196 (psym_find_compunit_symtab_by_address)
15197 (maintenance_print_psymbols, maintenance_info_psymtabs)
15198 (maintenance_check_psymtabs): Use ranged for.
15199 * psymtab.h (class objfile_psymtabs): New.
15200 (require_partial_symbols): Return objfile_psymtabs.
15201 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15203 2019-01-09 Tom Tromey <tom@tromey.com>
15205 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15206 (find_pc_mapped_section, list_overlays_command)
15207 (map_overlay_command, unmap_overlay_command)
15208 (simple_overlay_update): Use all_objfiles.
15209 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15210 * printcmd.c (info_symbol_command): Use all_objfiles.
15211 * objfiles.h (ALL_OBJSECTIONS): Remove.
15212 * maint.c (maintenance_translate_address): Use all_objfiles.
15213 * gcore.c (gcore_create_callback): Use all_objfiles.
15214 (objfile_find_memory_regions): Likewise.
15216 2019-01-09 Tom Tromey <tom@tromey.com>
15218 * symtab.c (find_line_symtab, info_sources_command)
15219 (make_source_files_completion_list): Use objfile_compunits.
15220 * source.c (select_source_symtab): Use objfile_compunits.
15221 * objfiles.h (struct objfile): Update comment.
15222 (ALL_OBJFILES): Remove.
15223 (ALL_FILETABS): Remove.
15224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15227 2019-01-09 Tom Tromey <tom@tromey.com>
15229 * symmisc.c (print_objfile_statistics, dump_objfile)
15230 (maintenance_print_symbols): Use compunit_filetabs.
15231 * source.c (forget_cached_source_info_for_objfile): Use
15233 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15234 (ALL_FILETABS): Use compunit_filetabs.
15235 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15236 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15238 2019-01-09 Tom Tromey <tom@tromey.com>
15240 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15241 (compunit_filetabs): New.
15242 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15244 (info_sources_command, make_source_files_completion_list): Remove
15246 * symmisc.c (print_objfile_statistics, dump_objfile)
15247 (maintenance_print_symbols): Remove declaration.
15248 (maintenance_info_symtabs): Use compunit_filetabs.
15249 (maintenance_info_line_tables): Likewise.
15250 * source.c (select_source_symtab): Change local variable name.
15251 (forget_cached_source_info_for_objfile): Remove declaration.
15252 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15253 * objfiles.c (objfile_relocate1): Remove declaration.
15254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15256 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15257 * coffread.c (coff_symtab_read): Remove declaration.
15258 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15261 2019-01-09 Tom Tromey <tom@tromey.com>
15263 * symtab.c (lookup_objfile_from_block)
15264 (find_pc_sect_compunit_symtab, search_symbols)
15265 (default_collect_symbol_completion_matches_break_on): Use
15267 * objfiles.h (ALL_COMPUNITS): Remove.
15268 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15269 * cp-support.c (add_symbol_overload_list_qualified): Use
15271 * ada-lang.c (ada_collect_symbol_completion_matches)
15272 (ada_add_global_exceptions): Use objfile_compunits.
15274 2019-01-09 Tom Tromey <tom@tromey.com>
15276 * source.c (select_source_symtab)
15277 (forget_cached_source_info_for_objfile): Remove declaration.
15278 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15280 * maint.c (count_symtabs_and_blocks): Remove declaration.
15281 * cp-support.c (add_symbol_overload_list_qualified): Remove
15283 * coffread.c (coff_symtab_read): Remove declaration.
15284 * symtab.c (lookup_symbol_in_objfile_symtabs)
15285 (basic_lookup_transparent_type_1): Use objfile_compunits.
15286 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15287 (info_sources_command, search_symbols)
15288 (default_collect_symbol_completion_matches_break_on)
15289 (make_source_files_completion_list): Remove declaration.
15290 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15291 (ada_collect_symbol_completion_matches)
15292 (ada_add_global_exceptions): Remove declaration.
15293 * linespec.c (iterate_over_all_matching_symtabs): Use
15295 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15296 (class objfile_compunits): New.
15297 (ALL_COMPUNITS): Use objfile_compunits.
15298 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15299 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15301 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15303 2019-01-09 Tom Tromey <tom@tromey.com>
15305 * symtab.c (search_symbols)
15306 (default_collect_symbol_completion_matches_break_on): Use
15308 * ada-lang.c (ada_lookup_simple_minsym)
15309 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15310 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15311 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15313 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15314 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15315 * objc-lang.c (find_methods): Use objfile_msymbols.
15316 (info_selectors_command, info_classes_command): Likewise.
15317 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15318 * objfiles.h (class objfile_msymbols): New.
15319 (ALL_OBJFILE_MSYMBOLS): Remove.
15320 (ALL_MSYMBOLS): Remove.
15322 2019-01-09 Tom Tromey <tom@tromey.com>
15324 * common/next-iterator.h (next_adapter): Add Iterator template
15326 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15327 (class all_objfiles_safe): New.
15328 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15329 * objfiles.c (put_objfile_before): Update comment.
15330 (add_separate_debug_objfile): Likewise.
15331 (free_all_objfiles): Use all_objfiles_safe.
15332 (objfile_purge_solibs): Likewise.
15334 2019-01-09 Tom Tromey <tom@tromey.com>
15336 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15337 (expand_symtab_containing_pc, lookup_static_symbol)
15338 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15339 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15341 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15342 * breakpoint.c (create_overlay_event_breakpoint)
15343 (create_longjmp_master_breakpoint)
15344 (create_std_terminate_master_breakpoint)
15345 (create_exception_master_breakpoint): Use all_objfiles.
15346 * linux-thread-db.c (try_thread_db_load_from_pdir)
15347 (has_libpthread): Use all_objfiles.
15348 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15349 * linespec.c (iterate_over_all_matching_symtabs)
15350 (search_minsyms_for_name): Use all_objfiles.
15351 * maint.c (maintenance_info_sections): Use all_objfiles.
15352 * main.c (captured_main_1): Use all_objfiles.
15353 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15354 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15355 * guile/scm-pretty-print.c
15356 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15357 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15358 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15359 (maintenance_print_msymbols): Use all_objfiles.
15360 * source.c (select_source_symtab): Use all_objfiles.
15361 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15362 * symfile.c (remove_symbol_file_command)
15363 (expand_symtabs_matching, map_symbol_filenames): Use
15365 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15367 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15368 * objc-lang.c (find_methods): Use all_objfiles.
15369 * objfiles.c (have_partial_symbols, have_full_symbols)
15370 (have_minimal_symbols, qsort_cmp)
15371 (default_iterate_over_objfiles_in_search_order): Use
15373 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15374 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15375 (maintenance_check_psymtabs): Use all_objfiles.
15376 (ALL_PSYMTABS): Remove.
15377 * compile/compile-object-run.c (do_module_cleanup): Use
15379 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15380 * cp-support.c (add_symbol_overload_list_qualified): Use
15382 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15384 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15385 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15387 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15388 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15389 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15391 * solib.c (solib_read_symbols): Use all_objfiles
15393 2019-01-09 Tom Tromey <tom@tromey.com>
15395 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15396 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15398 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15399 * symmisc.c (print_symbol_bcache_statistics)
15400 (print_objfile_statistics, maintenance_print_objfiles)
15401 (maintenance_info_symtabs, maintenance_check_symtabs)
15402 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15404 * source.c (forget_cached_source_info): Use all_objfiles.
15405 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15406 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15407 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15408 * objfiles.c (update_section_map): Use all_objfiles.
15409 (shared_objfile_contains_address_p): Likewise.
15410 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15411 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15413 2019-01-09 Tom Tromey <tom@tromey.com>
15415 * common/next-iterator.h: New file.
15416 * objfiles.h (class all_objfiles): New.
15417 (struct objfile_iterator): New.
15419 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15421 * NEWS: Move the description of the changed "frame", "select-frame",
15422 and "info frame" commands to the Changed commands section.
15424 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15426 * gdbtypes.c (check_stub_method_group): Remove handling of old
15428 * linespec.c (find_methods): Likewise.
15429 * stabsread.c (read_member_functions): Likewise.
15430 * valops.c (search_struct_method): Likewise.
15431 (value_struct_elt_for_reference): Likewise.
15432 * NEWS: Mention this change.
15434 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15436 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15437 print_source_lines.
15438 * source.c (print_source_lines_base): Update line number check.
15439 (print_source_lines): New function.
15440 (source_lines_range::source_lines_range): New function.
15441 * source.h (class source_lines_range): New class.
15442 (print_source_lines): New declaration.
15444 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15446 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15448 2019-01-08 Tom Tromey <tom@tromey.com>
15449 Simon Marchi <simon.marchi@ericsson.com>
15452 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15453 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15454 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15455 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15456 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15457 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15459 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15461 * source.c (select_source_symtab): Move header comment to
15462 declaration in source.h.
15463 (forget_cached_source_info_for_objfile): Likewise.
15464 (forget_cached_source_info): Likewise.
15465 (identify_source_line): Likewise.
15466 * source.h (identify_source_line): Move declaration from symtab.h
15467 and add comment from source.c
15468 (print_source_lines): Likewise.
15469 (forget_cached_source_info_for_objfile): Likewise.
15470 (forget_cached_source_info): Likewise.
15471 (select_source_symtab): Likewise.
15472 (enum print_source_lines_flag): Move definition from symtab.h.
15473 * symtab.h (identify_source_line): Move declaration to source.h.
15474 (print_source_lines): Likewise.
15475 (forget_cached_source_info_for_objfile): Likewise.
15476 (forget_cached_source_info): Likewise.
15477 (select_source_symtab): Likewise.
15478 (enum print_source_lines_flag): Move definition to source.h.
15479 * tui/tui-hooks.c: Add 'source.h' include.
15481 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15483 * source.c (print_source_lines_base): Handle requests to print
15484 reverse line number sequences, and guard against empty lines
15487 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15489 * source.c (print_source_lines_base): Fix skip of '\r' if next
15492 2019-01-06 Tom Tromey <tom@tromey.com>
15494 * c-exp.y (struct c_parse_state) <macro_original_text,
15495 expansion_obstack>: New member.
15496 (macro_original_text, expansion_obstack): Remove globals.
15497 (scan_macro_expansion, scanning_macro_expansion)
15498 (finished_macro_expansion): Update.
15499 (scan_macro_cleanup): Remove.
15500 (yylex, c_parse): Update.
15502 2019-01-06 Tom Tromey <tom@tromey.com>
15504 * c-exp.y (struct c_parse_state) <strings>: New member.
15505 (operator_stoken): Update.
15507 2019-01-06 Tom Tromey <tom@tromey.com>
15509 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15510 (union type_stack_elt) <typelist_val>: Now a pointer to
15512 (type_stack_cleanup): Don't declare.
15513 (push_typelist): Update.
15514 * parse.c (pop_typelist): Return a std::vector.
15515 (push_typelist): Take a std::vector.
15516 (follow_types): Update. Do not free args.
15517 (type_stack_cleanup): Remove.
15518 * c-exp.y (struct c_parse_state): New.
15519 (cpstate): New global.
15520 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15521 (nonempty_typelist): Update.
15522 (func_mod): Create a new vector.
15523 (c_parse): Create a c_parse_state.
15524 (check_parameter_typelist): Do not delete params.
15525 (function_method): Update. Do not delete type_list.
15527 2019-01-06 Tom Tromey <tom@tromey.com>
15530 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15532 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15533 (print_return_value): Likewise.
15535 2019-01-05 Tom Tromey <tom@tromey.com>
15537 * contrib/cleanup_check.py: Remove.
15538 * contrib/gcc-with-excheck: Remove.
15539 * contrib/exsummary.py: Remove.
15540 * contrib/excheck.py: Remove.
15542 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15544 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15545 NULL. Initialize tpprev to NULL instead of assigning it
15546 to NULL on the next statement.
15547 * windows-nat.c (windows_delete_thread): Remove check for
15548 main_thread_id before printing thread exit notifications.
15549 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15550 Remove thread ID check against main_thread_id.
15551 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15552 windows_delete_thread.
15553 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15555 2019-01-04 Tom Tromey <tom@tromey.com>
15557 * compile/compile.c (_initialize_compile): Use upper case for
15558 metasyntactic variables.
15559 * symmisc.c (_initialize_symmisc): Use upper case for
15560 metasyntactic variables.
15561 * psymtab.c (_initialize_psymtab): Use upper case for
15562 metasyntactic variables.
15563 * demangle.c (demangle_command): Use upper case for metasyntactic
15565 (_initialize_demangler): Likewise.
15566 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15569 2019-01-03 Tom Tromey <tom@tromey.com>
15571 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15573 2019-01-03 Tom Tromey <tom@tromey.com>
15575 * python/py-symtab.c (salpy_str): Update.
15576 (struct salpy_sal_object) <symtab>: Now a PyObject.
15577 (salpy_dealloc): Update.
15578 (del_objfile_sal): Use gdbpy_ref.
15580 2019-01-03 Tom Tromey <tom@tromey.com>
15582 * python/py-type.c (convert_field): Use new_reference. Return
15584 (make_fielditem): Return gdbpy_ref.
15585 (typy_fields): Update.
15586 (typy_getitem): Update.
15587 (field_name): Return gdbpy_ref. Use new_reference.
15588 (typy_iterator_iternext): Update.
15590 2019-01-03 Tom Tromey <tom@tromey.com>
15592 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15594 2019-01-03 Tom Tromey <tom@tromey.com>
15596 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15597 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15598 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15599 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15600 (pspy_set_type_printers): Likewise.
15601 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15602 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15603 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15604 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15605 (objfpy_set_type_printers): Likewise.
15607 2019-01-03 Tom Tromey <tom@tromey.com>
15609 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15610 (gdbpy_print_stack): Use gdbpy_err_fetch.
15611 * python/python-internal.h (class gdbpy_err_fetch): New class.
15612 (class gdbpy_enter) <m_error_type, m_error_value,
15613 m_error_traceback>: Remove.
15614 <m_error>: New member.
15615 (gdbpy_exception_to_string): Don't declare.
15616 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15617 * python/py-value.c (convert_value_from_python): Use
15619 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15620 gdbpy_exception_to_string.
15621 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15622 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15625 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15627 * linux-nat.c (delete_lwp_cleanup): Delete.
15628 (struct lwp_deleter): New struct.
15629 (lwp_info_up): New typedef.
15630 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15633 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15635 * linux-fork.c (class scoped_switch_fork_info): New class.
15636 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15638 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15640 * valops.c (find_overload_match): Remove use of null_cleanup, and
15641 calls to do_cleanups.
15643 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15645 * compile/compile-cplus-types.c
15646 (compile_cplus_instance::decl_name): Handle changes to
15648 * cp-support.c (cp_func_name): Update header comment, update
15650 * cp-support.h (cp_func_name): Update return type in declaration.
15651 * valops.c (find_overload_match): Move temp_func local to top
15652 level of function and change its type. Use temp_func to hold and
15653 delete temporary string obtained from cp_func_name.
15655 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15657 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15658 gdb::char_vector, remove cleanup, and update uses of `msg`.
15660 2019-01-03 Jim Wilson <jimw@sifive.com>
15662 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15664 2019-01-02 Tom Tromey <tom@tromey.com>
15666 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15667 (tdesc_parse_xml): Remove cleanups.
15668 * target-descriptions.h (make_cleanup_free_target_description):
15670 (target_desc_deleter): New struct.
15671 (target_desc_up): New typedef.
15672 * target-descriptions.c (target_desc_deleter::operator()): Rename
15673 from free_target_description.
15674 (make_cleanup_free_target_description): Remove.
15676 2019-01-02 Tom Tromey <tom@tromey.com>
15678 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15679 constructor, destructor.
15680 (linespec_parser): Remove typedef.
15681 (~linespec_parser): Rename from linespec_parser_delete.
15682 (linespec_lex_to_end, linespec_complete_label)
15683 (linespec_complete): Update.
15684 (decode_line_full): Remove cleanups.
15685 (decode_line_1): Update.
15687 2019-01-02 Tom Tromey <tom@tromey.com>
15689 * python/python-internal.h (inferior_to_inferior_object): Change
15691 * python/py-exitedevent.c (create_exited_event_object): Update.
15692 * python/py-inferior.c (inferior_to_inferior_object): Return
15694 (python_new_inferior, python_inferior_deleted)
15695 (thread_to_thread_object, delete_thread_object)
15696 (build_inferior_list, gdbpy_selected_inferior): Update.
15697 * python/py-infthread.c (create_thread_object): Update. Also fail
15698 if inferior_to_inferior_object fails.
15700 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15702 * inferior.h (class inferior) <displaced_step_state>: New field.
15703 * infrun.h (struct displaced_step_state): Move here from
15704 infrun.c. Initialize fields, add constructor.
15705 <inf>: Remove field.
15706 <reset>: New method.
15707 * infrun.c (struct displaced_step_inferior_state): Move to
15709 (displaced_step_inferior_states): Remove.
15710 (get_displaced_stepping_state): Adust.
15711 (displaced_step_in_progress_any_inferior): Adjust.
15712 (displaced_step_in_progress_thread): Adjust.
15713 (displaced_step_in_progress): Adjust.
15714 (add_displaced_stepping_state): Remove.
15715 (get_displaced_step_closure_by_addr): Adjust.
15716 (remove_displaced_stepping_state): Remove.
15717 (infrun_inferior_exit): Call displaced_step_state.reset.
15718 (use_displaced_stepping): Don't check for NULL.
15719 (displaced_step_prepare_throw): Call
15720 get_displaced_stepping_state.
15721 (displaced_step_fixup): Don't check for NULL.
15722 (prepare_for_detach): Don't check for NULL.
15724 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15726 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15727 in case of call that did not complete.
15729 2019-01-02 Andrey Utkin <autkin@undo.io>
15731 * symfile.c (find_separate_debug_file): Fix search of debug files for
15734 2019-01-02 Tom Tromey <tom@tromey.com>
15736 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15738 * python/py-frame.c (frapy_older): Remove cast.
15739 (frapy_newer): Likewise.
15740 * python/py-breakpoint.c (local_setattro): Remove cast.
15741 * python/py-arch.c (archpy_name): Remove local variable.
15742 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15744 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15746 * unittests/basic_string_view/element_access/char/empty.cc:
15747 Fix year range in copyright header.
15749 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15751 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15753 <operator==>: Update with for removed field.
15755 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15756 <isa_features>: ...this.
15757 <abi_features>: New field.
15758 (riscv_isa_flen): Update comment.
15759 (riscv_abi_xlen): New declaration.
15760 (riscv_abi_flen): New declaration.
15761 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15763 (riscv_abi_xlen): New function.
15764 (riscv_isa_flen): Update to get answer from isa_features.
15765 (riscv_abi_flen): New function.
15766 (riscv_has_fp_abi): Update to get answer from abi_features.
15767 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15769 (riscv_call_info) <xlen, flen>: Update comment.
15770 (riscv_call_arg_struct): Remove invalid assertions
15771 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15773 (riscv_gdbarch_init): Gather isa features and abi features
15774 separately, ensure both match on the gdbarch when reusing an old
15775 gdbarch. Relax an error check to allow 32-bit abi float to run on
15776 a target with 64-bit float hardware.
15778 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15780 * source.c (search_command_helper): Stop reverse search
15781 when line 1 has been searched.
15783 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15785 * record-full.c (record_full_base_target::close): Rewrite
15786 record_full_core_buf_list free logic.
15788 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15790 * break-catch-syscall.c (print_one_catch_syscall): xfree
15793 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15795 * top.c (print_gdb_version): Update Copyright year in version
15798 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15800 Update copyright year range in all GDB files.
15802 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15804 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15806 For older changes see ChangeLog-2018.
15812 version-control: never