1 2019-11-28 Tom Tromey <tom@tromey.com>
3 * value.c (creal_internal_fn): Fix comment.
5 2019-11-28 Tom Tromey <tom@tromey.com>
7 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
8 flag_bound_evaluated>: Now unsigned.
10 2019-11-28 Tom Tromey <tom@tromey.com>
12 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
15 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
17 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
19 * jit.c (jit_unregister_code): Add debug print to match
22 2019-11-27 Christian Biesinger <cbiesinger@google.com>
24 * NEWS: Mention the new multithreaded symbol loading.
26 2019-11-27 Christian Biesinger <cbiesinger@google.com>
28 * maint.c (n_worker_threads): Default to 0.
29 (worker_threads_disabled): New function.
30 * maint.h (worker_threads_disabled): New function.
31 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
32 here if worker_threads_disabled () is true.
33 (minimal_symbol_reader::install): Skip all threading if
34 worker_threads_disabled () is true.
36 2019-11-27 Christian Biesinger <cbiesinger@google.com>
38 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
39 hash code if possible.
40 (add_minsym_to_demangled_hash_table): Likewise.
41 (minimal_symbol_reader::install): Compute the hash codes for msymbol
42 on the background thread.
43 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
46 2019-11-27 Christian Biesinger <cbiesinger@google.com>
48 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
49 of the mangled name on the background thread.
50 * symtab.c (symbol_set_names): Allow passing in the hash of the
52 * symtab.h (symbol_set_names): Likewise.
54 2019-11-27 Kevin Buettner <kevinb@redhat.com>
56 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
57 physnames are computed for inherited DIEs.
59 2019-11-27 Tom Tromey <tromey@adacore.com>
61 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
63 * cp-support.c: Remove unnecessary backslashes.
65 2019-11-27 Christian Biesinger <cbiesinger@google.com>
67 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
68 with sym->set_linkage_name.
69 * coffread.c (coff_read_enum_type): Likewise.
70 * mdebugread.c (parse_symbol): Likewise.
71 * stabsread.c (patch_block_stabs): Likewise.
72 (define_symbol): Likewise.
73 (read_enum_type): Likewise.
74 (common_block_end): Likewise.
75 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
77 (SYMBOL_SET_LINKAGE_NAME): Remove.
78 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
79 with sym->set_linkage_name.
81 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
83 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
84 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
85 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
86 * NEWS: Mention new MI command.
88 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
90 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
91 '-symbol-info-types', and '-symbol-info-variables'.
92 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
93 (mi_cmd_symbol_info_types): Declare.
94 (mi_cmd_symbol_info_variables): Declare.
95 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
96 (output_debug_symbol): New function.
97 (output_nondebug_symbol): New function.
98 (mi_symbol_info): New function.
99 (mi_info_functions_or_variables): New function.
100 (mi_cmd_symbol_info_functions): New function.
101 (mi_cmd_symbol_info_types): New function.
102 (mi_cmd_symbol_info_variables): New function.
103 * NEWS: Mention new commands.
105 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
107 * symtab.c (symbol_to_info_string): New function, most content
108 moved from print_symbol_info, but updated to return a std::string.
109 (print_symbol_info): Update to use symbol_to_info_string and print
111 * symtab.h (symbol_to_info_string): Declare new function.
113 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
115 * python/python.c (gdbpy_rbreak): Convert to using
116 global_symbol_searcher.
117 * symtab.c (file_matches): Convert return type to bool, change
118 file list to std::vector, update header comment.
119 (search_symbols): Rename to...
120 (global_symbol_searcher::search): ...this and update now its
121 a member function of global_symbol_searcher. Take account of the
122 changes to file_matches.
123 (symtab_symbol_info): Convert to using global_symbol_searcher.
124 (rbreak_command): Likewise.
125 (search_module_symbols): Likewise.
126 * symtab.h (enum symbol_search): Update comment.
127 (search_symbols): Remove declaration.
128 (class global_symbol_searcher): New class.
130 2019-11-26 Tom Tromey <tromey@adacore.com>
132 * cp-support.c (_initialize_cp_support): Conditionally initialize
133 gdb_demangle_attempt_core_dump.
135 2019-11-26 Tom Tromey <tom@tromey.com>
137 * python/py-function.c (fnpy_init): Update.
138 * value.h (add_internal_function): Adjust declaration.
139 * value.c (function_destroyer): Remove.
140 (do_add_internal_function): Don't set destroyer or copy name.
141 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
143 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
144 (cmdpy_init): Set name_allocated.
145 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
147 (~cmd_list_element): Free "name" if needed.
149 2019-11-26 Tom Tromey <tom@tromey.com>
151 * value.h (add_internal_function): Add new overload. Move
152 documentation from value.h.
153 * value.c (do_add_internal_function): New function.
154 (add_internal_function): Use it. Add new overload.
155 (function_destroyer): Don't free doc.
156 * python/py-function.c (fnpy_init): Update.
158 2019-11-26 Tom Tromey <tom@tromey.com>
160 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
161 (cmdpy_init): Set "doc_allocated".
163 2019-11-26 Tom Tromey <tom@tromey.com>
165 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
166 name of worker thread.
167 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
169 * configure, config.in: Rebuild.
171 2019-11-26 Tom Tromey <tom@tromey.com>
173 * python/python.c (class gdbpy_gil): New.
174 (struct gdbpy_event): Add constructor, destructor, operator().
175 (gdbpy_post_event): Use run_on_main_thread.
176 (gdbpy_initialize_events): Remove.
177 (do_start_initialization): Update.
179 2019-11-26 Tom Tromey <tom@tromey.com>
182 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
183 commands. Call update_thread_pool_size.
184 (update_thread_pool_size, maintenance_set_worker_threads): New
186 (n_worker_threads): New global.
188 2019-11-26 Christian Biesinger <cbiesinger@google.com>
189 Tom Tromey <tom@tromey.com>
191 * minsyms.c (minimal_symbol_reader::install): Use
193 * gdbsupport/parallel-for.h: New file.
194 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
196 2019-11-26 Christian Biesinger <cbiesinger@google.com>
197 Tom Tromey <tom@tromey.com>
199 * gdbsupport/thread-pool.h: New file.
200 * gdbsupport/thread-pool.c: New file.
201 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
202 (HFILES_NO_SRCDIR): Add thread-pool.h.
204 2019-11-26 Tom Tromey <tom@tromey.com>
206 * event-top.h (thread_local_segv_handler): Declare.
207 * event-top.c (thread_local_segv_handler): New global.
208 (install_handle_sigsegv, handle_sigsegv): New functions.
209 (async_init_signals): Install SIGSEGV handler.
210 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
212 (report_failed_demangle): New function.
213 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
214 handler-setting code, instead use segv_handler. Run warning code
217 2019-11-26 Tom Tromey <tom@tromey.com>
219 * run-on-main-thread.c: New file.
220 * run-on-main-thread.h: New file.
221 * unittests/main-thread-selftests.c: New file.
222 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
223 main-thread-selftests.c.
224 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
225 (COMMON_SFILES): Add run-on-main-thread.c.
227 2019-11-26 Tom Tromey <tom@tromey.com>
229 * main.c (setup_alternate_signal_stack): Remove.
230 (captured_main_1): Use gdb::alternate_signal_stack.
231 * gdbsupport/alt-stack.h: New file.
233 2019-11-26 Tom Tromey <tom@tromey.com>
235 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
237 (save_original_signals_state, restore_original_signals_state): Use
239 * linux-nat.c (block_child_signals, restore_child_signals_mask)
240 (_initialize_linux_nat): Use gdb_sigmask.
241 * guile/guile.c (_initialize_guile): Use block_signals.
242 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
243 * gdbsupport/gdb-sigmask.h: New file.
244 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
245 * cp-support.c (gdb_demangle): Use gdb_sigmask.
246 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
248 * configure, config.in: Rebuild.
249 * gdbsupport/block-signals.h: New file.
251 2019-11-26 Tom Tromey <tom@tromey.com>
253 * acinclude.m4: Include ax_pthread.m4.
254 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
255 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
256 (CLIBS): Use PTHREAD_LIBS.
257 (aclocal_m4_deps): Add ax_pthread.m4.
258 * config.in, configure: Rebuild.
259 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
261 2019-11-26 Tom Tromey <tom@tromey.com>
263 * symtab.h (struct minimal_symbol) <name_set>: New member.
264 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
265 Don't call symbol_set_names.
266 (minimal_symbol_reader::install): Call symbol_set_names.
268 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
270 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
271 restore_active_ext_lang, as GIL is needed for (indirectly)
272 called PyOS_InterruptOccurred.
274 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
276 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
279 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
281 * remote-sim.c (simulator_command): Make static, remove
284 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
286 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
288 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
289 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
291 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
293 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
295 * unittests/basic_string_view/element_access/char/1.cc (test01):
298 * unittests/basic_string_view/element_access/char/empty.cc (main):
300 * unittests/basic_string_view/element_access/char/front_back.cc
303 * unittests/basic_string_view/inserters/char/2.cc (test05):
306 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
309 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
312 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
314 * unittests/basic_string_view/operations/compare/char/1.cc
317 * unittests/basic_string_view/operations/compare/char/13650.cc
319 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
322 * unittests/basic_string_view/operations/data/char/1.cc (test01):
325 * unittests/basic_string_view/operations/find/char/1.cc (test01):
328 * unittests/basic_string_view/operations/find/char/2.cc (test02):
331 * unittests/basic_string_view/operations/find/char/3.cc (test03):
334 * unittests/basic_string_view/operations/find/char/4.cc (main):
336 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
339 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
342 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
345 * unittests/basic_string_view/operations/substr/char/1.cc
348 * unittests/basic_string_view/operators/char/2.cc (main):
350 * unittests/optional/assignment/1.cc (test): Likewise.
351 * unittests/optional/assignment/2.cc (test): Likewise.
352 * unittests/optional/assignment/3.cc (test): Likewise.
353 * unittests/optional/assignment/4.cc (test): Likewise.
354 * unittests/optional/assignment/5.cc (test): Likewise.
355 * unittests/optional/assignment/6.cc (test): Likewise.
356 * unittests/optional/assignment/7.cc (test): Likewise.
357 * unittests/optional/cons/copy.cc (test): Likewise.
358 * unittests/optional/cons/default.cc (test): Likewise.
359 * unittests/optional/cons/move.cc (test): Likewise.
360 * unittests/optional/cons/value.cc (test): Likewise.
361 * unittests/optional/in_place.cc (test): Likewise.
362 * unittests/optional/observers/1.cc (test): Likewise.
363 * unittests/optional/observers/2.cc (test): Likewise.
365 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
367 * tui-win.h (tui_set_var_cmd): Remove.
368 * tui-win.c (tui_set_var_cmd): Make static.
370 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
372 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
373 rbreak_command_wrapper): Remove.
374 * symtab.c (rbreak_command_wrapper): Remove.
376 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
378 * inferior.h (info_terminal_command): Remove declaration.
379 * inflow.c (info_terminal_command): Make static.
381 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
383 * inferior.c (exit_inferior_silent): Remove.
385 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
387 * dictionary.c (dict_empty, mdict_empty): Remove.
388 * dictionary.c (mdict_empty): Remove.
390 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
392 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
393 (arc_insn_get_memory_offset): Likewise.
394 (arc_insn_dump): Likewise.
395 * cp-support.c (test_cp_symbol_name_matches): Likewise.
396 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
397 * dictionary.c (dict_iterator_next): Likewise.
398 (dict_iter_match_first): Likewise.
399 (dict_iter_match_next): Likewise.
400 * f-lang.c (evaluate_subexp_f): Likewise.
401 * hppa-tdep.c (hppa_read_pc): Likewise.
402 * i386-tdep.c (i386_floatformat_for_type): Likewise.
403 * parse.c (write_exp_elt_msym): Likewise.
404 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
405 * remote.c (remote_packet_size): Likewise.
406 (remote_notif_stop_parse): Likewise.
407 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
408 * s12z-tdep.c (s12z_disassemble_info): Likewise.
409 * source.c (prepare_path_for_appending): Likewise.
410 * sparc64-linux-tdep.c
411 (sparc64_linux_handle_segmentation_fault); Likewise.
412 * stack.c (frame_selection_by_function_completer): Likewise.
414 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
416 * completer.c (set_gdb_completion_word_break_characters):
419 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
421 * dwarf-index-write.c: Include dwarf-index-write.h.
422 * mi/mi-interp.c: Include mi/mi-interp.h.
424 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
426 * aarch32-tdep.c: Include aarch32-tdep.h.
427 * aarch32-tdep.h: Forward-declare struct target_desc.
429 2019-11-26 Christian Biesinger <cbiesinger@google.com>
431 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
433 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
434 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
436 2019-11-25 Tom de Vries <tdevries@suse.de>
438 * contrib/words.sh: Add -c option.
440 2019-11-25 Christian Biesinger <cbiesinger@google.com>
442 * solib.c (solib_find_1): Change int to bool.
443 (exec_file_find): Change int to bool.
444 (solib_find): Change int to bool.
445 (solib_read_symbols): Change int to bool.
446 (solib_used): Change int to bool.
447 (solib_add): Change int to bool.
448 (info_sharedlibrary_command): Change int to bool.
449 (solib_contains_address_p): Change int to bool.
450 (solib_keep_data_in_core): Change int to bool.
451 (in_solib_dynsym_resolve_code): Change int to bool.
452 (reload_shared_libraries_1): Change int to bool.
453 (gdb_sysroot_changed): Change int to bool.
454 * solib.h (solib_read_symbols): Change int to bool.
455 (solib_contains_address_p): Change int to bool.
456 (solib_keep_data_in_core): Change int to bool.
457 (in_solib_dynsym_resolve_code): Change int to bool.
458 (libpthread_name_p): Change int to bool.
460 2019-11-25 Luis Machado <luis.machado@linaro.org>
462 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
463 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
464 (remote_packet_max_chars): New static global.
465 (show_remote_packet_max_chars): New function.
466 (remote_target::putpkt_binary): Adjust to use new
467 remote_packet_max_chars option.
468 (remote_target::getpkt_or_notif_sane_1): Likewise.
469 (_initialize_remote): Register new remote-packet-max-chars option.
471 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
473 * m68k-linux-nat.c: Include gdbarch.h.
475 2019-11-24 Tom Tromey <tom@tromey.com>
477 * symfile.c (read_symbols): Update.
478 * psymtab.c (require_partial_symbols): Change type of "verbose" to
480 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
481 (psym_lookup_symbol, psym_find_last_source_symtab)
482 (psym_forget_cached_source_info, psym_print_stats)
483 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
484 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
485 (psym_map_matching_symbols, psym_expand_symtabs_matching)
486 (psym_find_compunit_symtab_by_address)
487 (maintenance_print_psymbols, maintenance_info_psymtabs)
488 (maintenance_check_psymtabs): Update.
489 * psymtab.h (require_partial_symbols): Change type of "verbose" to
492 2019-11-22 Tom Tromey <tom@tromey.com>
494 * observable.h: Update comments.
496 2019-11-22 Tom Tromey <tromey@adacore.com>
498 * ada-tasks.c (ada_task_is_alive): Make parameter const.
499 (print_ada_task_info): Don't try to fetch thread id if task is not
502 2019-11-22 Christian Biesinger <cbiesinger@google.com>
505 * ada-lang.c (sort_choices): Update.
506 (ada_print_symbol_signature): Update.
507 (resolve_subexp): Update.
508 (ada_parse_renaming): Update.
509 (ada_read_renaming_var_value): Update.
510 (lesseq_defined_than): Update.
511 (remove_extra_symbols): Update.
512 (remove_irrelevant_renamings): Update.
513 (ada_add_block_symbols): Update.
514 (ada_collect_symbol_completion_matches): Update.
515 (ada_is_renaming_symbol): Update.
516 (aggregate_assign_from_choices): Update.
517 (ada_evaluate_subexp): Update.
518 (ada_has_this_exception_support): Update.
519 (ada_is_non_standard_exception_sym): Update.
520 (ada_add_exceptions_from_frame): Update.
521 (ada_add_global_exceptions): Update.
522 (ada_print_subexp): Update.
523 * ax-gdb.c (gen_var_ref): Update.
524 (gen_maybe_namespace_elt): Update.
525 (gen_expr_for_cast): Update.
528 * blockframe.c (find_pc_partial_function): Update.
529 * breakpoint.c (print_breakpoint_location): Update.
530 (update_static_tracepoint): Update.
531 * btrace.c (ftrace_print_function_name): Update.
532 (ftrace_function_switched): Update.
533 * buildsym.c (find_symbol_in_list): Update.
535 * c-typeprint.c (c_print_typedef): Update.
536 (c_type_print_template_args): Update.
537 * cli/cli-cmds.c (edit_command): Update.
538 (list_command): Update.
539 (print_sal_location): Update.
540 * coffread.c (patch_opaque_types): Update.
541 (process_coff_symbol): Update.
542 (coff_read_enum_type): Update.
543 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
544 (convert_one_symbol): Update.
545 (hash_symname): Update.
546 (eq_symname): Update.
547 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
548 * compile/compile-cplus-types.c (debug_print_scope): Update.
549 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
550 * compile/compile-object-load.c (get_out_value_type): Update.
551 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
552 (search_symbol_list): Update.
553 (cp_lookup_symbol_imports_or_template): Update.
554 * cp-support.c (overload_list_add_symbol): Update.
555 * ctfread.c (psymtab_to_symtab): Update.
556 * dbxread.c (cp_set_block_scope): Update.
557 * dictionary.c (iter_match_first_hashed): Update.
558 (iter_match_next_hashed): Update.
559 (insert_symbol_hashed): Update.
560 (iter_match_next_linear): Update.
561 * dictionary.h: Update.
562 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
563 (locexpr_describe_location_piece): Update.
564 (locexpr_describe_location_1): Update.
565 (locexpr_generate_c_location): Update.
566 (loclist_describe_location): Update.
567 (loclist_generate_c_location): Update.
568 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
569 (read_func_scope): Update.
570 (process_enumeration_scope): Update.
571 (new_symbol): Update.
572 (dwarf2_const_value): Update.
573 (dwarf2_symbol_mark_computed): Update.
574 * eval.c (evaluate_funcall): Update.
575 (evaluate_subexp_standard): Update.
576 * expprint.c (print_subexp_standard): Update.
577 (dump_subexp_body_standard): Update.
578 * f-valprint.c (info_common_command_for_block): Update.
579 * findvar.c (get_hosting_frame): Update.
580 (default_read_var_value): Update.
581 * go-lang.c (go_symbol_package_name): Update.
582 * guile/scm-block.c (bkscm_print_block_smob): Update.
583 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
584 (gdbscm_symbol_name): Update.
585 (gdbscm_symbol_linkage_name): Update.
586 (gdbscm_symbol_print_name): Update.
587 * infcall.c (get_function_name): Update.
588 * infcmd.c (jump_command): Update.
589 (finish_command): Update.
590 * infrun.c (insert_exception_resume_breakpoint): Update.
591 * linespec.c (canonicalize_linespec): Update.
592 (create_sals_line_offset): Update.
593 (convert_linespec_to_sals): Update.
594 (complete_label): Update.
595 (find_label_symbols_in_block): Update.
596 * m2-typeprint.c (m2_print_typedef): Update.
597 * mdebugread.c (mdebug_reg_to_regnum): Update.
598 (parse_symbol): Update.
599 (mylookup_symbol): Update.
600 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
601 (list_args_or_locals): Update.
602 * objc-lang.c (compare_selectors): Update.
603 (info_selectors_command): Update.
604 (compare_classes): Update.
605 (info_classes_command): Update.
607 * p-typeprint.c (pascal_print_typedef): Update.
608 * printcmd.c (build_address_symbolic): Update.
609 (info_address_command): Update.
610 (print_variable_and_value): Update.
611 * python/py-framefilter.c (extract_sym): Update.
612 (py_print_single_arg): Update.
613 * python/py-symbol.c (sympy_str): Update.
614 (sympy_get_name): Update.
615 (sympy_get_linkage_name): Update.
616 * python/python.c (gdbpy_rbreak): Update.
617 * record-btrace.c (btrace_get_bfun_name): Update.
618 (btrace_call_history): Update.
619 * rust-lang.c (rust_print_typedef): Update.
620 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
621 * stabsread.c (stab_reg_to_regnum): Update.
622 (define_symbol): Update.
623 (read_enum_type): Update.
624 (common_block_end): Update.
625 (cleanup_undefined_types_1): Update.
626 (scan_file_globals): Update.
627 * stack.c (print_frame_arg): Update.
628 (print_frame_args): Update.
629 (find_frame_funname): Update.
630 (info_frame_command_core): Update.
631 (iterate_over_block_locals): Update.
632 (print_block_frame_labels): Update.
633 (do_print_variable_and_value): Update.
634 (iterate_over_block_arg_vars): Update.
635 (return_command): Update.
636 * symmisc.c (dump_symtab_1): Update.
637 (print_symbol): Update.
638 * symtab.c (eq_symbol_entry): Update.
639 (symbol_cache_dump): Update.
640 (lookup_language_this): Update.
641 (find_pc_sect_line): Update.
642 (skip_prologue_sal): Update.
643 (symbol_search::compare_search_syms): Update.
644 (treg_matches_sym_type_name): Update.
645 (search_symbols): Update.
646 (print_symbol_info): Update.
647 (rbreak_command): Update.
648 (completion_list_add_symbol): Update.
649 (find_gnu_ifunc): Update.
650 (get_symbol_address): Update.
651 (search_module_symbols): Update.
652 (info_module_subcommand): Update.
653 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
654 (SYMBOL_LINKAGE_NAME): Remove.
655 (SYMBOL_DEMANGLED_NAME): Remove.
656 (SYMBOL_PRINT_NAME): Remove.
657 (SYMBOL_SEARCH_NAME): Remove.
658 * tracepoint.c (set_traceframe_context): Update.
659 (validate_actionline): Update.
660 (collection_list::collect_symbol): Update.
661 (encode_actions_1): Update.
662 (info_scope_command): Update.
663 (print_one_static_tracepoint_marker): Update.
664 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
665 * valops.c (address_of_variable): Update.
666 (find_overload_match): Update.
667 (find_oload_champ): Update.
669 2019-11-22 Christian Biesinger <cbiesinger@google.com>
671 * ada-lang.c (ada_lookup_simple_minsym): Update.
672 (ada_collect_symbol_completion_matches): Update.
673 * ada-tasks.c (read_atcb): Update.
674 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
675 (amd64_windows_skip_trampoline_code): Update.
676 * arm-tdep.c (skip_prologue_function): Update.
677 (arm_skip_stack_protector): Update.
678 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
679 (arm_wince_skip_main_prologue): Update.
680 * ax-gdb.c (gen_expr): Update.
681 * block.c (call_site_for_pc): Update.
682 * blockframe.c (find_pc_partial_function): Update.
683 * breakpoint.c (set_breakpoint_location_function): Update.
684 * btrace.c (ftrace_print_function_name): Update.
685 (ftrace_function_switched): Update.
686 * c-valprint.c (print_unpacked_pointer): Update.
687 * coffread.c (coff_symfile_read): Update.
688 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
689 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
690 * dwarf-index-write.c (write_psymbols): Update.
691 * dwarf2loc.c (call_site_to_target_addr): Update.
692 (func_verify_no_selftailcall): Update.
693 (tailcall_dump): Update.
694 (call_site_find_chain_1): Update.
695 (dwarf_expr_reg_to_entry_parameter): Update.
696 * elfread.c (elf_gnu_ifunc_record_cache): Update.
697 * eval.c (evaluate_funcall): Update.
698 (evaluate_subexp_standard): Update.
699 (evaluate_subexp_for_sizeof): Update.
700 * expprint.c (print_subexp_standard): Update.
701 (dump_subexp_body_standard): Update.
702 * frame.c (get_prev_frame_always_1): Update.
703 * frv-tdep.c (frv_skip_main_prologue): Update.
704 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
705 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
706 (gnuv3_get_typename_from_type_info): Update.
707 (gnuv3_skip_trampoline): Update.
708 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
709 * i386-tdep.c (i386_skip_main_prologue): Update.
710 (i386_pe_skip_trampoline_code): Update.
711 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
712 * infcall.c (get_function_name): Update.
713 * linespec.c (minsym_found): Update.
714 * linux-fork.c (info_checkpoints_command): Update.
715 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
716 (m32c_m16c_pointer_to_address): Update.
717 * maint.c (maintenance_translate_address): Update.
718 * minsyms.c (add_minsym_to_hash_table): Update.
719 (add_minsym_to_demangled_hash_table): Update.
720 (lookup_minimal_symbol_mangled): Update.
721 (lookup_minimal_symbol_demangled): Update.
722 (lookup_minimal_symbol_linkage): Update.
723 (lookup_minimal_symbol_text): Update.
724 (lookup_minimal_symbol_by_pc_name): Update.
725 (minimal_symbol_is_less_than): Update.
726 (compact_minimal_symbols): Update.
727 (build_minimal_symbol_hash_tables): Update.
728 (find_solib_trampoline_target): Update.
729 * mips-tdep.c (mips_stub_frame_sniffer): Update.
730 (mips_skip_pic_trampoline_code): Update.
731 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
732 * objc-lang.c (info_selectors_command): Update.
733 (info_classes_command): Update.
734 (find_methods): Update.
736 * p-valprint.c (pascal_val_print): Update.
737 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
738 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
739 * printcmd.c (build_address_symbolic): Update.
740 (info_symbol_command): Update.
741 * psymtab.c (psymbol_name_matches): Update.
742 (match_partial_symbol): Update.
743 (lookup_partial_symbol): Update.
744 (print_partial_symbols): Update.
745 (sort_pst_symbols): Update.
746 (maintenance_check_psymtabs): Update.
747 * python/py-framefilter.c (py_print_frame): Update.
748 * python/python.c (gdbpy_rbreak): Update.
749 * record-btrace.c (btrace_get_bfun_name): Update.
750 (btrace_call_history): Update.
751 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
752 (rs6000_skip_trampoline_code): Update.
753 * sol-thread.c (info_cb): Update.
754 * stabsread.c (scan_file_globals): Update.
755 * stack.c (find_frame_funname): Update.
756 (info_frame_command_core): Update.
757 * symmisc.c (dump_msymbols): Update.
758 * symtab.c (symbol_natural_name): Rename to..,
759 (general_symbol_info::natural_name): ...this.
760 (symbol_demangled_name): Rename to...
761 (general_symbol_info::demangled_name): ...this.
762 (symbol_search_name): Rename to...
763 (general_symbol_info::search_name): ...this.
764 (symbol_matches_search_name): Update.
765 (find_pc_sect_line): Update.
766 (skip_prologue_sal): Update.
767 (search_symbols): Update.
768 (print_msymbol_info): Update.
769 (rbreak_command): Update.
770 (completion_list_add_msymbol): Update.
771 (completion_list_objc_symbol): Update.
772 (get_msymbol_address): Update.
773 * symtab.h (struct general_symbol_info): Add member functions
774 natural_name (), linkage_name (), print_name (), demangled_name (),
776 (SYMBOL_NATURAL_NAME): Update.
777 (symbol_natural_name): Move to a member function on general_symbol_info.
778 (SYMBOL_DEMANGLED_NAME): Update.
779 (symbol_demangled_name): Move to a member function on
781 (SYMBOL_SEARCH_NAME): Update.
782 (symbol_search_name): Move to a member function on general_symbol_info.
783 (MSYMBOL_NATURAL_NAME): Remove.
784 (MSYMBOL_LINKAGE_NAME): Remove.
785 (MSYMBOL_PRINT_NAME): Remove.
786 (MSYMBOL_DEMANGLED_NAME): Remove.
787 (MSYMBOL_SEARCH_NAME): Remove.
788 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
790 2019-11-22 Christian Biesinger <cbiesinger@google.com>
792 * symtab.c (create_demangled_names_hash): Use per_bfd->
793 minimal_symbol_count for computing the initial size, if greater
794 than our default size.
796 2019-11-22 Tom de Vries <tdevries@suse.de>
798 * contrib/words.sh: Improve words extraction.
800 2019-11-22 Tom de Vries <tdevries@suse.de>
802 * contrib/words.sh: Combine sed invocations.
804 2019-11-21 Christian Biesinger <cbiesinger@google.com>
806 * Makefile.in: Update.
807 * demangle.c: Rename to...
808 * gdb-demangle.c: ..this.
809 (is_cplus_marker): Change return type to bool.
810 (_initialize_demangler): Rename to...
811 (_initialize_gdb_demangle): ...this.
812 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
813 * symtab.h (demangle): Remove declaration; instead include
816 2019-11-21 Tom Tromey <tromey@adacore.com>
818 * gdbsupport/format.c (format_pieces): Parse %I64d.
819 * unittests/format_pieces-selftests.c (test_windows_formats): New
821 (run_tests): Call it.
823 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
825 Byte reverse display of variables with DW_END_big, DW_END_little
826 (DW_AT_endianity) dwarf attributes if different than the native
828 * ada-lang.c (ada_value_binop):
829 Use type_byte_order instead of gdbarch_byte_order.
830 * ada-valprint.c (printstr):
831 (ada_val_print_string):
832 * ada-lang.c (value_pointer):
834 Use type_byte_order instead of gdbarch_byte_order.
835 * c-lang.c (c_get_string):
836 Use type_byte_order instead of gdbarch_byte_order.
837 * c-valprint.c (c_val_print_array):
838 Use type_byte_order instead of gdbarch_byte_order.
839 * cp-valprint.c (cp_print_class_member):
840 Use type_byte_order instead of gdbarch_byte_order.
841 * dwarf2loc.c (rw_pieced_value):
842 Use type_byte_order instead of gdbarch_byte_order.
843 * dwarf2read.c (read_base_type): Handle DW_END_big,
845 * f-lang.c (f_get_encoding):
846 Use type_byte_order instead of gdbarch_byte_order.
847 * findvar.c (default_read_var_value):
848 Use type_byte_order instead of gdbarch_byte_order.
849 * gdbtypes.c (check_types_equal):
850 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
851 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
852 and TYPE_ENDIANITY_LITTLE if set.
853 (type_byte_order): new function.
854 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
855 (struct main_type) <flag_endianity_not_default>:
857 (type_byte_order): New function.
858 * infcmd.c (default_print_one_register_info):
859 Use type_byte_order instead of gdbarch_byte_order.
860 * p-lang.c (pascal_printstr):
861 Use type_byte_order instead of gdbarch_byte_order.
862 * p-valprint.c (pascal_val_print):
863 Use type_byte_order instead of gdbarch_byte_order.
864 * printcmd.c (print_scalar_formatted):
865 Use type_byte_order instead of gdbarch_byte_order.
866 * solib-darwin.c (darwin_current_sos):
867 Use type_byte_order instead of gdbarch_byte_order.
868 * solib-svr4.c (solib_svr4_r_ldsomap):
869 Use type_byte_order instead of gdbarch_byte_order.
870 * stap-probe.c (stap_modify_semaphore):
871 Use type_byte_order instead of gdbarch_byte_order.
872 * target-float.c (target_float_same_format_p):
873 Use type_byte_order instead of gdbarch_byte_order.
874 * valarith.c (scalar_binop):
876 Use type_byte_order instead of gdbarch_byte_order.
877 * valops.c (value_cast):
878 Use type_byte_order instead of gdbarch_byte_order.
879 * valprint.c (generic_emit_char):
882 Use type_byte_order instead of gdbarch_byte_order.
883 * value.c (unpack_long):
884 (unpack_bits_as_long):
885 (unpack_value_bitfield):
888 (pack_unsigned_long):
889 Use type_byte_order instead of gdbarch_byte_order.
890 * findvar.c (unsigned_pointer_to_address):
891 (signed_pointer_to_address):
892 (unsigned_address_to_pointer):
893 (address_to_signed_pointer):
894 (default_read_var_value):
895 (default_value_from_register):
896 Use type_byte_order instead of gdbarch_byte_order.
897 * gnu-v3-abi.c (gnuv3_make_method_ptr):
898 Use type_byte_order instead of gdbarch_byte_order.
899 * riscv-tdep.c (riscv_print_one_register_info):
900 Use type_byte_order instead of gdbarch_byte_order.
902 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
904 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
905 (current_ui_gdb_stdin_ptr): Likewise.
906 (current_ui_gdb_stderr_ptr): Likewise.
907 (current_ui_gdb_stdlog_ptr): Likewise.
908 (current_ui_current_uiout_ptr): Likewise.
909 (gen_ret_current_ui_field_ptr): Remove.
911 2019-11-21 Tom de Vries <tdevries@suse.de>
914 * cli/cli-script.c (execute_control_command): Only switch to
915 INTERP_CONSOLE's ui_out when INTERP_MI is active.
917 2019-11-19 Tom Tromey <tom@tromey.com>
919 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
920 Now static. Change type of "name".
921 (tui_set_win_height_command): Don't copy "arg".
922 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
923 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
925 2019-11-19 Ali Tamur <tamur@google.com>
927 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
928 "if (attr != nullptr)".
929 (dwarf2_find_base_address): Likewise.
930 (dwarf2_build_include_psymtabs): Likewise.
931 (read_cutu_die_from_dwo): Likewise.
932 (read_func_scope): Likewise.
933 (read_call_site_scope): Likewise.
934 (dwarf2_get_pc_bounds): Likewise.
935 (dwarf2_record_block_ranges): Likewise.
936 (dwarf2_add_field): Likewise.
937 (dwarf2_add_member_fn): Likewise.
938 (read_structure_type): Likewise.
939 (read_enumeration_type): Likewise.
940 (read_array_type): Likewise.
941 (read_array_order): Likewise.
942 (read_set_type): Likewise.
943 (read_common_block): Likewise.
944 (read_tag_reference_type): Likewise.
945 (read_tag_string_type): Likewise.
946 (read_subroutine_type): Likewise.
947 (read_base_type): Likewise.
948 (read_subrange_type): Likewise.
949 (new_symbol): Likewise.
950 (prepare_one_comp_unit): Likewise.
952 2019-11-19 Tom Tromey <tromey@adacore.com>
954 * windows-nat.c (windows_nat_target::attach): Include GetLastError
955 result in error when DebugActiveProcess fails.
957 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
958 Pedro Alves <palves@redhat.com>
960 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
961 * target.c (target_stack::push): Call 'unpush' if there's a
962 target on top of the stack.
964 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
966 * python/py-block.c (blpy_dealloc): Call tp_free.
967 (blpy_block_syms_dealloc): Likewise.
968 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
969 * python/py-inferior.c (infpy_dealloc): Likewise.
970 * python/py-lazy-string.c (stpy_dealloc): Likewise.
971 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
972 * python/py-symbol.c (sympy_dealloc): Likewise.
973 * python/py-symtab.c (stpy_dealloc): Likewise.
974 * python/py-type.c (typy_iterator_dealloc): Likewise.
976 2019-11-18 Christian Biesinger <cbiesinger@google.com>
978 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
979 constructor instead of using a class initializer.
981 2019-11-15 Christian Biesinger <cbiesinger@google.com>
983 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
984 * configure: Regenerate.
985 * configure.ac: Don't source common.host.
986 * gdbsupport/common.host: Remove.
987 * gdbsupport/mingw-strerror.c: Remove.
988 * gdbsupport/posix-strerror.c: Rename to...
989 * gdbsupport/safe-strerror.c: ...this.
991 2019-11-15 Christian Biesinger <cbiesinger@google.com>
993 * maint.c (scoped_command_stats::print_time): Use localtime_r
994 instead of localtime (provided through gnulib if necessary).
995 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
998 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1000 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1001 avoid compile errors.
1003 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1005 * config.in: Regenerate.
1006 * configure: Regenerate.
1007 * gdbsupport/common.m4: No longer check for strerror_r.
1008 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1009 POSIX version of strerror_r, now that gnulib provides it if
1012 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1014 * README (`configure' options): Update.
1016 2019-11-14 Tom Tromey <tromey@adacore.com>
1018 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1019 expected type for the RHS if the LHS is a convenience variable.
1021 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1023 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1024 Provide explicit default and copy constructor.
1026 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1028 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1029 only call Py_INCREF (newbp) in the bppy_pending_object case.
1031 2019-11-13 Tom Tromey <tromey@adacore.com>
1034 * psympriv.h (partial_symbol): Remove static assert.
1035 * symtab.h (general_symbol_info, symbol): Remove static assert.
1037 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1039 * gdbsupport/format.c (format_pieces::format_pieces): Support
1040 printf 'z' size modifier.
1041 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1042 * printcmd.c (ui_printf): Handle size_t_arg.
1043 * ui-out.c (ui_out::vmessage): Likewise.
1044 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1046 (run_tests): Call test_format_int_sizes.
1048 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1050 * ada-exp.y (write_ambiguous_var): Update.
1051 * buildsym.c (add_symbol_to_list): Update.
1052 * dwarf2read.c (read_variable): Update.
1053 (new_symbol): Update.
1054 * jit.c (finalize_symtab): Update.
1055 * language.c (language_alloc_type_symbol): Update.
1056 * symtab.c (fixup_symbol_section): Update.
1057 (initialize_objfile_symbol_1): Move code to...
1058 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1059 (allocate_symbol): Update.
1060 (allocate_template_symbol): Update.
1061 (get_symbol_address): Update.
1062 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1063 of having as a field, and add a constructor.
1064 (SYMBOL_VALUE): Update.
1065 (SYMBOL_VALUE_ADDRESS): Update.
1066 (SET_SYMBOL_VALUE_ADDRESS): Update.
1067 (SYMBOL_VALUE_BYTES): Update.
1068 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1069 (SYMBOL_BLOCK_VALUE): Update.
1070 (SYMBOL_VALUE_CHAIN): Update.
1071 (SYMBOL_LANGUAGE): Update.
1072 (SYMBOL_SECTION): Update.
1073 (SYMBOL_OBJ_SECTION): Update.
1074 (SYMBOL_SET_LANGUAGE): Update.
1075 (SYMBOL_SET_LINKAGE_NAME): Update.
1076 (SYMBOL_SET_NAMES): Update.
1077 (SYMBOL_NATURAL_NAME): Update.
1078 (SYMBOL_LINKAGE_NAME): Update.
1079 (SYMBOL_DEMANGLED_NAME): Update.
1080 (SYMBOL_SEARCH_NAME): Update.
1081 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1082 (struct symbol): Update.
1083 (struct template_symbol): Update.
1084 (struct rust_vtable_symbol): Update.
1085 * xcoffread.c (SYMBOL_DUP): Update.
1087 2019-11-12 Tom Tromey <tom@tromey.com>
1089 * tui/tui-layout.c (show_layout): Set current_layout.
1090 (show_source_disasm_command, show_data)
1091 (show_source_or_disasm_and_command): Don't set current_layout.
1093 2019-11-12 Tom Tromey <tom@tromey.com>
1095 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1097 2019-11-12 Tom Tromey <tom@tromey.com>
1099 * tui/tui-win.c (resize_message): New global.
1100 (show_tui_resize_message): New function.
1101 (tui_async_resize_screen): Print message if requested.
1102 (_initialize_tui_win): Add tui-resize-message setting.
1103 * NEWS: Add entry for new commands.
1105 2019-11-11 Tom Tromey <tom@tromey.com>
1107 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1110 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1112 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1114 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1116 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1118 * python/python-internal.h (gdbpy_lookup_static_symbols):
1119 Declare new function.
1120 * python/python.c (python_GdbMethods): Add
1121 gdb.lookup_static_symbols method.
1122 * NEWS: Mention gdb.lookup_static_symbols.
1124 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1126 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1127 static block of current object file first. Also fix typo in
1130 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * stack.c (set_last_displayed_sal): Delete.
1133 (last_displayed_sal_valid): Delete.
1134 (last_displayed_pspace): Delete.
1135 (last_displayed_addr): Delete.
1136 (last_displayed_symtab): Delete.
1137 (last_displayed_line): Delete.
1138 (class last_displayed_symtab_info_type): New.
1139 (last_displayed_symtab_info): New static global variable.
1140 (print_frame_info): Call methods on last_displayed_symtab_info.
1141 (clear_last_displayed_sal): Update header comment, and make use of
1142 last_displayed_symtab_info.
1143 (last_displayed_sal_is_valid): Likewise.
1144 (get_last_displayed_pspace): Likewise.
1145 (get_last_displayed_addr): Likewise.
1146 (get_last_displayed_symtab): Likewise.
1147 (get_last_displayed_line): Likewise.
1148 (get_last_displayed_sal): Likewise.
1149 * stack.h (clear_last_displayed_sal): Update header comment.
1150 (last_displayed_sal_is_valid): Likewise.
1151 (get_last_displayed_pspace): Likewise.
1152 (get_last_displayed_addr): Likewise.
1153 (get_last_displayed_symtab): Likewise.
1154 (get_last_displayed_line): Likewise.
1155 (get_last_displayed_sal): Likewise.
1157 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1159 * stack.c (frame_show_address): Convert return type to bool.
1160 * stack.h (frame_show_address): Likewise, and update header
1163 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1166 * unittests/vec-utils-selftests.c: New file.
1167 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1169 2019-11-10 Tom Tromey <tom@tromey.com>
1171 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1172 (tui_highlight_win): Likewise.
1173 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1174 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1175 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1176 Don't set can_highlight.
1178 2019-11-10 Tom Tromey <tom@tromey.com>
1180 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1181 Remove unused declaration.
1183 2019-11-08 Tom Tromey <tromey@adacore.com>
1185 * top.c (read_command_file): Update.
1186 (command_line_input): Make return type const.
1187 * python/py-gdb-readline.c: Update.
1188 * linespec.c (decode_line_2): Update.
1189 * defs.h (command_line_input): Make return type const.
1190 * cli/cli-script.c (read_next_line): Make return type const.
1191 * ada-lang.c (get_selections): Update.
1193 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1195 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1196 * mi/mi-main.c (output_cores): Likewise.
1197 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1198 (linux_xfer_osdata_modules): Likewise.
1199 * remote.c (register_remote_support_xml): Likewise.
1200 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1201 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1203 2019-11-06 Tom Tromey <tom@tromey.com>
1205 * tui/tui-interp.c: Don't include readline.h.
1206 * tui/tui-hooks.c: Don't include readline.h.
1207 * symmisc.c: Include tilde.h, not readline.h.
1208 * symfile.c: Include tilde.h, not readline.h.
1209 * source.c: Include tilde.h, not readline.h.
1210 * solib.c: Include tilde.h, not readline.h.
1211 * psymtab.c: Include tilde.h, not readline.h.
1212 * exec.c: Include tilde.h, not readline.h.
1213 * corelow.c: Include tilde.h, not readline.h.
1214 * cli/cli-dump.c: Include tilde.h, not readline.h.
1215 * cli/cli-cmds.c: Don't include readline.h.
1217 2019-11-05 Tom Tromey <tom@tromey.com>
1219 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1220 (tui_disassemble): Set addr_size.
1221 (tui_disasm_window::set_contents): Use addr_size.
1223 2019-11-05 Tom Tromey <tom@tromey.com>
1225 * rust-lang.c (rust_language_defn): Update.
1226 * python/py-value.c (valpy_string): Call c_get_string.
1227 * p-lang.c (pascal_language_defn): Update.
1228 * opencl-lang.c (opencl_language_defn): Update.
1229 * objc-lang.c (objc_language_defn): Update.
1230 * m2-lang.c (m2_language_defn): Update.
1231 * language.c (unknown_language_defn, auto_language_defn): Update.
1232 (default_get_string): Remove.
1233 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1234 * go-lang.c (go_language_defn): Update.
1235 * f-lang.c (f_language_defn): Update.
1236 * d-lang.c (d_language_defn): Update.
1237 * c-lang.c (c_language_defn, cplus_language_defn)
1238 (asm_language_defn, minimal_language_defn): Update.
1239 * ada-lang.c (ada_language_defn): Update.
1240 * language.h (struct language_defn) <la_get_string>: Remove.
1241 (LA_GET_STRING): Remove.
1242 (default_get_string): Don't declare.
1244 2019-11-05 Tom Tromey <tom@tromey.com>
1246 * tui/tui-source.h (struct tui_source_window): Inline
1247 constructor. Remove destructor.
1248 <style_changed, m_observable>: Move to superclass.
1249 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1250 (struct tui_source_window_base): Move private members to end.
1251 <style_changed, m_observable>: Move from tui_source_window.
1252 * tui/tui-winsource.c (tui_copy_source_line): Move from
1253 tui-source.c. Rename from copy_source_line. Add special handling
1254 for negative line number.
1255 (tui_source_window_base::style_changed): Move from
1257 (tui_source_window_base): Register observer.
1258 (~tui_source_window_base): New.
1259 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1261 (tui_source_window::set_contents): Use tui_copy_source_line.
1262 (tui_source_window::tui_source_window): Move to tui-source.h.
1263 (tui_source_window::~tui_source_window): Remove.
1264 (tui_source_window::style_changed): Move to superclass.
1265 * tui/tui-disasm.c (tui_disassemble): Create string file with
1266 styling, when possible. Add "addr_size" parameter.
1267 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1268 Don't compute maximum size.
1269 (len_without_escapes): New function
1271 2019-11-05 Tom Tromey <tom@tromey.com>
1273 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1275 * tui/tui-winsource.c (tui_show_source_line): Update.
1276 * tui/tui-source.c (tui_source_window::set_contents): Update.
1277 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1279 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1281 * symtab.h (gdb_static_assert): Put && operator at the beginning
1282 of the line instead of the end.
1284 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1286 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1287 and sizeof (symbol).
1288 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1290 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1292 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1293 * configure.host: Mark *-*-solaris2.10* obsolete.
1294 * configure.tgt: Mark Solaris < 11 obsolete.
1295 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1296 Update target triplet.
1298 2019-11-01 Tom Tromey <tromey@adacore.com>
1300 * utils.c (print_sys_errmsg): Simplify.
1302 2019-11-01 Tom Tromey <tromey@adacore.com>
1304 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1306 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1308 * configure: Regenerate.
1309 * configure.ac: Remove check for strerror_r.
1310 * gdbsupport/common.m4: Check for strerror_r.
1312 2019-11-01 Luis Machado <luis.machado@linaro.org>
1316 * arm-tdep.c (arm_per_objfile): Rename to ...
1317 (arm_per_bfd): ... this.
1318 (arm_objfile_data_key): Rename to ...
1319 (arm_bfd_data_key): ... this.
1320 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1322 (arm_record_special_symbol): Likewise.
1324 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1326 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1328 * c-typeprint.c (c_print_typedef): Likewise.
1329 * f-typeprint.c (f_print_typedef): Likewise.
1330 * m2-typeprint.c (m2_print_typedef): Likewise.
1331 * p-typeprint.c (pascal_print_typedef): Likewise.
1332 * rust-lang.c (rust_print_typedef): Likewise.
1333 * symtab.c (print_symbol_info): Print a newline after calling
1336 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1338 * symtab.c (info_module_cmdlist): New variable.
1339 (info_module_command): New function.
1340 (search_module_symbols): New function.
1341 (info_module_subcommand): New function.
1342 (struct info_modules_var_func_options): New struct.
1343 (info_modules_var_func_options_defs): New variable.
1344 (make_info_modules_var_func_options_def_group): New function.
1345 (info_module_functions_command): New function.
1346 (info_module_variables_command): New function.
1347 (info_module_var_func_command_completer): New function.
1348 (_initialize_symtab): Register new 'info module functions' and
1349 'info module variables' commands.
1350 * symtab.h (typedef symbol_search_in_module): New typedef.
1351 (search_module_symbols): Declare new function.
1352 * NEWS: Mention new commands.
1354 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1356 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1357 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1358 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1360 (scan_partial_symbols): Only create partial module symbols for non
1362 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1364 * symtab.c (search_domain_name): Likewise.
1365 (search_symbols): Likewise.
1366 (print_symbol_info): Likewise.
1367 (symtab_symbol_info): Likewise.
1368 (info_modules_command): New function.
1369 (_initialize_symtab): Register 'info modules' command.
1370 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1371 * NEWS: Mention new 'info modules' command.
1373 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1375 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1376 and $_gdb_maint_setting_str.
1378 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1380 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1381 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1382 (str_value_from_setting, gdb_setting_str_internal_fn)
1383 (gdb_maint_setting_str_internal_fn): New functions.
1384 (_initialize_cli_cmds): Define the new convenience functions.
1385 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1386 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1388 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1390 * agent.c (set_can_use_agent): When the setting is turned on,
1391 look up agent symbols if we don't have them yet.
1392 (agent_new_objfile): Don't look up agent symbols when the agent
1395 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1397 * config.in: Regenerate.
1399 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1401 * configure: Regenerate.
1402 * configure.ac: Check for strerror_r.
1403 * gdbsupport/common-utils.h (safe_strerror): Change return value
1404 to const char * and document that this function is now threadsafe.
1405 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1406 thread_local and call strerror_r, if available.
1407 * utils.c (perror_string): Update.
1408 (print_sys_errmsg): Update.
1410 2019-10-31 Luis Machado <luis.machado@linaro.org>
1412 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1414 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1415 objfile to fetch per-bfd data.
1416 (arm_find_exidx_entry): Likewise.
1418 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1420 * gdbsupport/agent.c (debug_agent): Change type to bool.
1421 (use_agent): Likewise.
1422 (all_agent_symbols_look_up): Likewise.
1423 (agent_loaded_p): Change return value to bool.
1424 (agent_look_up_symbols): Update.
1425 (agent_capability_check): Change return value to bool.
1426 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1427 (debug_agent): Change type to bool.
1428 (use_agent): Likewise.
1429 (agent_capability_check): Change return value to bool.
1431 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1433 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1434 (build_minimal_symbol_hash_tables): Code to clear the table moved
1435 to clear_minimal_symbol_hash_tables.
1436 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1439 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1441 * infcmd.c: Remove includes.
1442 * infrun.c: Remove includes.
1444 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1446 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1447 (grow_vect): Remove declaration.
1448 (ada_type_of_array): Remove declaration.
1449 (ada_update_initial_language): Remove declaration.
1450 (ada_fold_name): Remove declaration.
1451 (ada_fill_in_ada_prototype): Remove declaration.
1452 (user_select_syms): Remove declaration.
1453 (get_selections): Remove declaration.
1454 (ada_tag_type): Remove declaration.
1455 (ada_value_tag): Remove declaration.
1456 (ada_is_others_clause): Remove declaration.
1457 (ada_in_variant): Remove declaration.
1458 (ada_value_struct_elt): Remove declaration.
1459 (ada_attribute_name): Remove declaration.
1460 (ada_system_address_type): Remove declaration.
1461 * ada-lang.c (ada_watch_location_expression): Make static.
1462 (GROW_VECT): Move here from ada-lang.h.
1463 (grow_vect): Make static.
1464 (ada_update_initial_language): Make static.
1465 (ada_fold_name): Make static.
1466 (ada_type_of_array): Make static.
1467 (encoded_ordered_before): Move up.
1468 (sort_choices): Move up.
1469 (print_signatures): Move up.
1470 (ada_print_symbol_signature): Move up.
1471 (get_selections): Move up and make static.
1472 (user_select_syms): Move up and make static.
1473 (ada_value_struct_elt): Move up and make static.
1474 (ada_tag_type): Make static.
1475 (ada_value_tag): Make static.
1476 (ada_is_others_clause): Make static.
1477 (ada_in_variant): Make static.
1478 (ada_attribute_name): Make static.
1480 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1482 * ada-lang.c: Remove includes.
1483 * ada-typeprint.c: Remove includes.
1484 * ada-valprint.c: Remove includes.
1486 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1488 * addrmap.c: Add static assertions of type size, moved from
1489 _initialize_addrmap.
1490 (_initialize_addrmap): Remove.
1492 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1494 * coffread.c (record_minimal_symbol): Update.
1495 (process_coff_symbol): Update.
1496 * dbxread.c (read_dbx_symtab): Update.
1497 * dwarf2read.c (add_partial_symbol): Update.
1498 (fixup_go_packaging): Update.
1499 (load_partial_dies): Update.
1500 (new_symbol): Update.
1501 * elfread.c (record_minimal_symbol): Change signature to use
1502 gdb::string_view instead of name+len.
1503 (elf_symtab_read): Update.
1504 (elf_rel_plt_read): Update.
1505 * mdebugread.c (parse_partial_symbols): Update.
1506 (handle_psymbol_enumerators): Update.
1507 (new_symbol): Update.
1508 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1509 to use gdb::string_view instead of name+len.
1510 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1511 * psympriv.h (add_psymbol_to_list): Likewise.
1512 * psymtab.c (add_psymbol_to_bcache): Likewise.
1513 (add_psymbol_to_list): Likewise.
1514 * stabsread.c (define_symbol): Update.
1515 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1516 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1517 (symbol_set_names): Likewise.
1518 * xcoffread.c (scan_xcoff_symtab): Update.
1520 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1522 * symtab.h (symbol_set_names): Document that copy_name must be
1523 set to true for non-nullterminated strings.
1524 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1525 linkage_name if the entry was not found and we need to demangle.
1527 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1529 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1530 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1531 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1532 * gdbsupport/gdb_binary_search.h: New file.
1534 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1536 * NEWS: Mention new --with-system-gdbinit-dir option.
1537 * config.in: Regenerate.
1538 * configure: Regenerate.
1539 * configure.ac: Add new option --with-system-gdbinit-dir.
1540 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1541 for a ".gdb" suffix.
1542 * main.c (get_init_files): Change system_gdbinit argument to
1543 a vector and return the files in SYSTEM_GDBINIT_DIR in
1544 addition to SYSTEM_GDBINIT.
1545 (captured_main_1): Update.
1546 (print_gdb_help): Update.
1547 * top.c (print_gdb_configuration): Also print the value of
1550 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1552 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1553 that takes gdb::string_view arguments.
1555 2019-10-26 Tom de Vries <tdevries@suse.de>
1557 * aarch64-linux-tdep.c: Fix typos in comments.
1558 * aarch64-tdep.c: Same.
1560 * amd64-nat.c: Same.
1562 * arch/aarch64-insn.c: Same.
1564 * breakpoint.h: Same.
1567 * cli/cli-decode.c: Same.
1568 * cli/cli-script.c: Same.
1569 * cli/cli-utils.h: Same.
1570 * coff-pe-read.c: Same.
1572 * compile/compile-cplus-symbols.c: Same.
1573 * compile/compile-object-run.c: Same.
1574 * completer.c: Same.
1576 * cp-support.c: Same.
1578 * dwarf-index-write.c: Same.
1579 * dwarf2-frame.c: Same.
1580 * dwarf2-frame.h: Same.
1582 * frame-base.h: Same.
1587 * guile/scm-objfile.c: Same.
1588 * i386-tdep.c: Same.
1589 * i386-tdep.h: Same.
1592 * linux-nat.c: Same.
1593 * m68k-tdep.c: Same.
1596 * mi/mi-cmd-disas.c: Same.
1597 * mi/mi-getopt.h: Same.
1598 * mi/mi-main.c: Same.
1600 * nat/aarch64-sve-linux-sigcontext.h: Same.
1602 * ppc-linux-nat.c: Same.
1603 * ppc-linux-tdep.c: Same.
1605 * progspace.h: Same.
1606 * prologue-value.h: Same.
1607 * python/py-evtregistry.c: Same.
1608 * python/py-instruction.h: Same.
1609 * record-btrace.c: Same.
1610 * record-full.c: Same.
1612 * rs6000-tdep.c: Same.
1614 * sol-thread.c: Same.
1615 * sparc-sol2-tdep.c: Same.
1616 * sparc64-tdep.c: Same.
1617 * stabsread.c: Same.
1621 * tracepoint.c: Same.
1622 * tui/tui-data.h: Same.
1623 * tui/tui-io.c: Same.
1624 * tui/tui-win.c: Same.
1626 * unittests/rsp-low-selftests.c: Same.
1627 * user-regs.h: Same.
1638 * xtensa-tdep.c: Same.
1640 2019-10-25 Ali Tamur <tamur@google.com>
1642 * charset.c (find_charset_names): Reflect API change.
1644 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1646 * symtab.c (struct demangled_name_entry): Change demangled name
1647 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1648 part of the struct anymore.
1649 (symbol_set_names): No longer obstack allocate + copy the demangled
1650 name, just store the allocated name from bfd.
1652 2019-10-25 Tom Tromey <tromey@adacore.com>
1654 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1655 (bsearch_cie_cmp, add_cie): Remove.
1656 (find_cie): Reimplement.
1657 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1658 (dwarf2_build_frame_info): Update.
1660 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1663 * symfile.c (reread_symbols): Call forget_cached_source_info to
1664 clear the stale source cache.
1666 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1668 * configure: Regenerate.
1669 * configure.ac: Remove code that sets python_has_threads.
1671 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1673 * config.in: Regenerate.
1674 * configure: Regenerate.
1675 * configure.ac: Remove the code that uses sed to get the python
1676 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1678 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1680 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1683 2019-10-23 Tom Tromey <tom@tromey.com>
1685 * arc-tdep.c: Remove ".." from include.
1686 * frv-tdep.c: Remove ".." from include.
1687 * lm32-tdep.c: Remove ".." from include.
1688 * microblaze-tdep.c: Remove ".." from include.
1689 * or1k-tdep.h: Remove ".." from include.
1690 * s12z-tdep.c: Remove ".." from include.
1691 * Makefile.in (OPCODES_CFLAGS): Add comment.
1692 (TOP_CFLAGS): New variable.
1693 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1695 2019-10-23 Tom Tromey <tom@tromey.com>
1697 * Makefile.in (READLINE_DIR): Update.
1699 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1701 * infcall.c (call_function_by_hand_dummy): Fix the function
1702 comment. And extract out a code section into...
1703 (reserve_stack_space): ...this new function.
1705 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1707 * infcall.c (value_arg_coerce): Remove an unused parameter.
1708 (call_function_by_hand_dummy): Update the call to
1711 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1713 * infcall.c (call_function_by_hand_dummy): Refactor.
1715 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1717 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1719 2019-10-23 Tom Tromey <tom@tromey.com>
1721 * configure: Rebuild.
1722 * configure.ac: Don't check for sigprocmask.
1723 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1725 2019-10-23 Tom Tromey <tom@tromey.com>
1727 * configure: Rebuild.
1728 * acinclude.m4: Use m4_include, not sinclude.
1730 2019-10-23 Tom de Vries <tdevries@suse.de>
1732 PR breakpoints/24687
1733 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1735 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1737 * symtab.c (struct demangled_name_entry) <language>: Change from
1738 bitfield to regular variable.
1740 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1742 * symtab.c (struct demangled_name_entry): Add a constructor.
1743 (free_demangled_name_entry): New function to call the destructor
1744 for demangled_name_entry.
1745 (create_demangled_names_hash): Pass free_demangled_name_entry to
1747 (symbol_set_names): Call placement new for demangled_name_entry.
1748 * utils.c: No longer include xxhash.h here, now that fast_hash
1749 is inlined in the header.
1750 * utils.h: Instead, include it here.
1752 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1754 * Makefile.in: Link with libxxhash.
1755 * config.in: Regenerate.
1756 * configure: Regenerate.
1757 * configure.ac: Search for libxxhash.
1758 * utils.c (fast_hash): Use xxhash if present.
1760 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1762 * utils.h (fast_hash): New function.
1763 * symtab.c (hash_demangled_name_entry): Call new function
1766 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1768 * symtab.c (struct demangled_name_entry): Change type of mangled
1769 to gdb::string_view. Also adds a constructor that takes the
1771 (hash_demangled_name_entry): Update.
1772 (eq_demangled_name_entry): Update.
1773 (free_demangled_name_entry): New function to call the destructor
1774 now that this is not a POD anymore.
1775 (create_demangled_names_hash): Pass free_demangled_name_entry to
1777 (symbol_set_names): Update.
1779 2019-10-21 Ali Tamur <tamu@google.com>
1781 * dwarf2read.c (dir_index): Change type.
1782 (file_name_index): Likewise.
1783 (line_header::include_dir_at): Change comment and implementation on
1784 whether it is DWARF 5.
1785 (line_header::is_valid_file_index): New function.
1786 (line_header::file_name_at): Change comment and implementation on
1787 whether it is DWARF 5.
1788 (line_header::file_names): Change to private field renamed as
1789 m_file_names and introduce a new accessor method.
1790 (line_header::file_names_size): New method.
1791 (line_header::include_dirs): Change to private field and rename as
1793 (dw2_get_file_names_reader): Define local var at a smaller scope and
1795 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1796 (process_structure_scope): Likewise.
1797 (line_header::add_include_dir): Change message and reflect renaming.
1798 (line_header::add_file_name): Likewise.
1799 (read_formatted_entries): Handle DW_FORM_data16.
1800 (dwarf_decode_line_header): Fix line header length calculation.
1801 (psymtab_include_file_name): Change comment and API.
1802 (lnp_state_machine::m_file): Update comment and reflect type change.
1803 (lnp_state_machine::record_line): Reflect type change.
1804 (dwarf_decode_lines): Reflect API change.
1805 (file_file_name): Likewise.
1806 (file_full_name): Likewise.
1808 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1810 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1812 2019-10-21 Tom Tromey <tom@tromey.com>
1814 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1816 2019-10-21 Tom Tromey <tom@tromey.com>
1818 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1819 NM_H. Use AC_CONFIG_LINKS.
1820 * configure: Rebuild.
1821 * Makefile.in (NM_H): New variable.
1822 (generated_files): Add NM_H. Remove gcore.
1823 (nm.h, stamp-nmh): New targets.
1825 2019-10-20 Tom Tromey <tom@tromey.com>
1827 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1828 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1830 (put_objfile_before): Now static.
1832 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1834 * gdbsupport/common-utils.h (startswith): Change return type to
1837 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1839 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1840 * breakpoint.c (bp_locations_compare): Rename to...
1841 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1842 (update_global_location_list): Use std::sort instead of qsort.
1843 * buildsym.c (compare_line_numbers): Rename to...
1844 (lte_is_less_than): ...this, and change to std::sort semantics.
1845 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1847 * disasm.c (compare_lines): Rename to...
1848 (line_is_less_than): ...this, and change to std::sort semantics.
1849 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1851 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1852 (fde_is_less_than): ...this, and change to std::sort semantics.
1853 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1854 * mdebugread.c (compare_blocks):
1855 (block_is_less_than): ...this, and change to std::sort semantics.
1856 (sort_blocks): Call std::sort instead of qsort.
1857 * objfiles.c (qsort_cmp): Rename to...
1858 (sort_cmp): ...this, and change to std::sort semantics.
1859 (update_section_map): Call std::sort instead of qsort.
1860 * remote.c (compare_pnums): Remove.
1861 (map_regcache_remote_table): Call std::sort instead of qsort.
1862 * utils.c (compare_positive_ints): Remove.
1863 * utils.h (compare_positive_ints): Remove.
1864 * xcoffread.c (compare_lte): Remove.
1865 (arrange_linetable): Call std::sort instead of qsort.
1867 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1869 * symfile.c (init_entry_point_info): Fix typo.
1870 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1872 2019-10-18 Tom de Vries <tdevries@suse.de>
1874 * aarch64-tdep.c: Fix typos in comments.
1876 * ada-tasks.c: Same.
1877 * alpha-tdep.c: Same.
1878 * alpha-tdep.h: Same.
1879 * amd64-nat.c: Same.
1880 * amd64-windows-tdep.c: Same.
1883 * arch-utils.c: Same.
1884 * arm-nbsd-tdep.c: Same.
1887 * blockframe.c: Same.
1890 * coff-pe-read.c: Same.
1892 * cris-tdep.c: Same.
1893 * darwin-nat.c: Same.
1897 * dtrace-probe.c: Same.
1898 * dwarf-index-write.c: Same.
1899 * dwarf2-frame-tailcall.c: Same.
1900 * dwarf2-frame.c: Same.
1901 * dwarf2read.c: Same.
1903 * exceptions.c: Same.
1904 * fbsd-tdep.c: Same.
1908 * gnu-v3-abi.c: Same.
1910 * h8300-tdep.c: Same.
1911 * hppa-tdep.c: Same.
1912 * i386-linux-tdep.c: Same.
1913 * i386-tdep.c: Same.
1914 * ia64-libunwind-tdep.c: Same.
1915 * ia64-tdep.c: Same.
1919 * linux-nat.c: Same.
1920 * linux-thread-db.c: Same.
1921 * machoread.c: Same.
1922 * mdebugread.c: Same.
1924 * mn10300-tdep.c: Same.
1925 * namespace.c: Same.
1927 * opencl-lang.c: Same.
1928 * or1k-tdep.c: Same.
1930 * ppc-linux-nat.c: Same.
1931 * ppc-linux-tdep.c: Same.
1932 * ppc-sysv-tdep.c: Same.
1935 * record-btrace.c: Same.
1936 * record-full.c: Same.
1937 * remote-fileio.c: Same.
1939 * rs6000-tdep.c: Same.
1940 * s12z-tdep.c: Same.
1941 * score-tdep.c: Same.
1945 * sol-thread.c: Same.
1946 * solib-svr4.c: Same.
1949 * sparc-nat.c: Same.
1950 * sparc-sol2-tdep.c: Same.
1951 * sparc-tdep.c: Same.
1952 * sparc64-tdep.c: Same.
1953 * stabsread.c: Same.
1957 * target-descriptions.c: Same.
1958 * target-float.c: Same.
1965 * windows-nat.c: Same.
1966 * xcoffread.c: Same.
1967 * xstormy16-tdep.c: Same.
1968 * xtensa-tdep.c: Same.
1970 2019-10-17 Tom Tromey <tromey@adacore.com>
1972 * configure: Rebuild.
1973 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1974 in AC_CONFIG_FILES invocation.
1975 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1976 new-style config.status invocation.
1978 2019-10-17 Tom de Vries <tdevries@suse.de>
1980 * arm-nbsd-nat.c: Fix typos in comments.
1982 * darwin-nat-info.c: Same.
1983 * dwarf2read.c: Same.
1985 * event-top.c: Same.
1988 * hppa-tdep.c: Same.
1989 * i386-tdep.c: Same.
1992 * mdebugread.c: Same.
1993 * moxie-tdep.c: Same.
1994 * nto-procfs.c: Same.
1996 * ppc-linux-tdep.c: Same.
1998 * riscv-tdep.c: Same.
1999 * s390-tdep.c: Same.
2001 * sparc-linux-tdep.c: Same.
2002 * sparc-nat.c: Same.
2004 * target-descriptions.c: Same.
2008 2019-10-16 Tom Tromey <tom@tromey.com>
2010 * objfiles.h (struct objfile) <original_name>: Now const.
2012 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2014 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2015 pass on to sigsetjmp's second argument.
2016 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2018 2019-10-16 Keith Seitz <keiths@redhat.com>
2021 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2022 sections whose size is greater than the file size.
2024 2019-10-16 Jim Wilson <jimw@sifive.com>
2026 * riscv-tdep.c (riscv_gcc_target_options): New.
2027 (riscv_gnu_triplet_regexp): New.
2028 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2029 set_gdbarch_gnu_triplet_regexp.
2031 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2033 * Makefile.in: Add xml-builtin.h.
2034 * features/feature_to_c.sh: Add an include for xml-builtin.h
2035 to ensure that the compiler checks that the types match.
2036 * xml-builtin.h: New file.
2037 * xml-support.c (fetch_xml_builtin): Add missing const.
2038 * xml-support.h: Remove declaration of xml_builtins.
2040 2019-10-16 Tom de Vries <tdevries@suse.de>
2043 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2044 (amd64_classify_aggregate): ... here.
2045 (amd64_classify_aggregate_field): Handled fiels of nested structs
2048 2019-10-16 Tom de Vries <tdevries@suse.de>
2051 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2052 that handles 'theclass'.
2054 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2056 * linespec.c (decode_digits_ordinary): Update comment.
2057 * make-target-delegates: No longer need to handle VEC case.
2058 * memrange.c (normalize_mem_ranges): Update comment.
2059 * namespace.c (add_using_directive): Update comment.
2060 * objc-lang.c (uniquify_strings): Update comment.
2061 * ppc-linux-nat.c (struct thread_points): Update comment.
2062 * probe.h (find_probes_in_objfile): Update comment.
2063 * target.h (enum flash_preserve_mode): Update comment.
2064 * varobj.c (varobj_restrict_range): Update comment.
2065 * varobj.h (varobj_list_children): Update comment.
2067 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2069 * Makefile.in: Remove references to vec.h and vec.c.
2070 * aarch64-tdep.c: No longer include vec.h.
2071 * ada-lang.c: Likewise.
2072 * ada-lang.h: Likewise.
2073 * arm-tdep.c: Likewise.
2075 * breakpoint.h: Likewise.
2076 * charset.c: Likewise.
2077 * cp-support.h: Likewise.
2078 * dtrace-probe.c: Likewise.
2079 * dwarf2read.c: Likewise.
2080 * extension.h: Likewise.
2081 * gdb_bfd.c: Likewise.
2082 * gdbsupport/gdb_vecs.h: Likewise.
2083 * gdbsupport/vec.c: Remove.
2084 * gdbsupport/vec.h: Remove.
2085 * gdbthread.h: Likewise.
2086 * guile/scm-type.c: Likewise.
2087 * inline-frame.c: Likewise.
2088 * machoread.c: Likewise.
2089 * memattr.c: Likewise.
2090 * memrange.h: Likewise.
2091 * namespace.h: Likewise.
2092 * nat/linux-btrace.h: Likewise.
2093 * osdata.c: Likewise.
2094 * parser-defs.h: Likewise.
2095 * progspace.h: Likewise.
2096 * python/py-type.c: Likewise.
2097 * record-btrace.c: Likewise.
2098 * rust-exp.y: Likewise.
2099 * solib-target.c: Likewise.
2100 * stap-probe.c: Likewise.
2101 * target-descriptions.c: Likewise.
2102 * target-memory.c: Likewise.
2103 * target.h: Likewise.
2104 * varobj.c: Likewise.
2105 * varobj.h: Likewise.
2106 * xml-support.h: Likewise.
2108 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2110 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2111 Update for new std::vector based implementation.
2112 (process_psymtab_comp_unit_reader): Likewise.
2113 (scan_partial_symbols): Likewise.
2114 (recursively_compute_inclusions): Likewise.
2115 (compute_compunit_symtab_includes): Likewise.
2116 (process_imported_unit_die): Likewise.
2117 (queue_and_load_dwo_tu): Likewise.
2118 (follow_die_sig_1): Likewise.
2119 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2120 (typedef dwarf2_per_cu_ptr): Remove.
2121 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2123 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2124 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2125 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2126 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2129 2019-10-15 Tom Tromey <tromey@adacore.com>
2131 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2134 2019-10-15 Tom Tromey <tromey@adacore.com>
2136 * windows-nat.c (windows_nat_target::fetch_registers)
2137 (windows_nat_target::store_registers): Rename "pid" to "tid".
2139 2019-10-15 Tom Tromey <tromey@adacore.com>
2141 * gdbarch.h, gdbarch.c: Rebuild.
2142 * gdbarch.sh (gcc_target_options): Change return type to
2144 * compile/compile.c (get_args): Update.
2145 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2146 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2148 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2150 * arch-utils.c (default_gcc_target_options): Return std::string.
2151 * arch-utils.h (default_gcc_target_options): Return std::string.
2152 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2154 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2156 * breakpoint.c (breakpoint_chain): Make static.
2157 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2158 of accessing breakpoint_chain.
2160 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2162 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2163 to a gdb::function_view and return value to bool.
2164 * breakpoint.h (iterate_over_breakpoints): Likewise.
2165 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2166 (pop_dummy_frame): Update.
2167 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2168 (gdbscm_breakpoints): Update.
2169 * python/py-breakpoint.c (build_bp_list): Update.
2170 (gdbpy_breakpoints): Update.
2171 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2173 (bpfinishpy_handle_stop): Update.
2174 (bpfinishpy_handle_exit): Update.
2175 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2176 (svr4_update_solib_event_breakpoints): Update.
2178 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2180 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2181 when unwrapping single-field structs.
2183 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2185 * dwarf2read.c: Remove includes.
2187 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2189 * ui-out.c (ui_out::call_do_message): Silence
2190 -Wformat-nonliteral warning.
2192 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2194 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2195 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2196 include: readline/tilde.h.
2198 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2200 * remote.c (remote_target::get_trace_status): Remove declaration of
2201 trace_regblock_size.
2203 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2205 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2206 (show_user): Remove declaration of cmdlist.
2207 * cli/cli-cmds.h (max_user_call_depth): Declare.
2208 * cli/cli-script.c (execute_user_command): Remove declaration
2209 of max_user_call_depth.
2211 2019-10-11 Jim Wilson <jimw@sifive.com>
2213 * gdbsupport/print-utils.h (pulongest): Fix comment.
2214 (plongest): Likewise.
2215 (phex): Add missing comment, mention leading zeros.
2216 (phex_nz): Add mention of no leading zeros to comment.
2218 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2219 plongest instead of unsigned long long cast.
2221 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2223 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2224 for external_editor_command and gdbtk_test.
2226 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2228 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2229 * varobj.c (varobjdebug): Move comment to...
2230 * varobj.h (varobjdebug): ...here, and declare.
2232 2019-10-09 Tom Tromey <tom@tromey.com>
2234 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2237 2019-10-09 Tom Tromey <tom@tromey.com>
2239 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2240 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2241 * tui/tui-command.c (tui_cmd_window::resize)
2242 (tui_refresh_cmd_win): Update.
2243 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2244 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2245 * tui/tui-data.c (~tui_gen_win_info): Remove.
2246 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2247 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2248 (tui_redisplay_readline, tui_mld_flush)
2249 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2250 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2251 (tui_data_window::erase_data_content)
2252 (tui_data_item_window::rerender)
2253 (tui_data_item_window::refresh_window): Update.
2254 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2255 (box_win, tui_gen_win_info::make_window)
2256 (tui_gen_win_info::make_visible): Update.
2257 (tui_delete_win): Remove.
2258 * tui/tui-winsource.c
2259 (tui_source_window_base::do_erase_source_content): Update.
2260 (tui_show_source_line, tui_source_window_base::update_tab_width)
2261 (tui_source_window_base::update_exec_info): Update.
2262 * tui/tui-data.h (struct curses_deleter): New.
2263 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2264 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2266 2019-10-09 Tom Tromey <tom@tromey.com>
2268 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2270 2019-10-09 Tom Tromey <tom@tromey.com>
2272 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2273 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2275 2019-10-09 Tom Tromey <tom@tromey.com>
2277 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2278 window height directly.
2279 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2281 * tui/tui-layout.c (tui_default_win_height): Remove.
2282 (tui_default_win_viewport_height): Remove.
2284 2019-10-09 Tom Tromey <tom@tromey.com>
2286 * tui/tui.h: Remove comments.
2288 2019-10-09 Tom de Vries <tdevries@suse.de>
2290 * python/lib/gdb/printer/bound_registers.py: Use
2291 '^builtin_type_bound128' as regexp argument for
2292 add_builtin_pretty_printer.
2294 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2296 * guile/guile.c (guile_extension_script_ops): Remove forward
2297 declaration and mark as static.
2298 (guile_script_ops): Likewise.
2299 (extension_language_guile): Move further down in the file so
2300 it can reference the definitions for guile_{extension_,}script_ops.
2302 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2304 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2305 except SORTL, DFLTCC, and KDSA.
2307 2019-10-08 Tom Tromey <tromey@adacore.com>
2309 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2310 (struct safe_symbol_file_add_args): Remove.
2312 2019-10-08 Tom Tromey <tromey@adacore.com>
2314 * windows-nat.c: Don't include buildsym-legacy.h.
2316 2019-10-08 Tom Tromey <tromey@adacore.com>
2318 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2320 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2322 * gdbtypes.c (overload_debug): Move comment to header.
2323 * gdbtypes.h (overload_debug): Declare.
2324 * valops.c: Remove declaration of overload_debug, instead
2327 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2329 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2331 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2333 * language.h (lang_frame_mismatch_warn): ... here. Also add
2335 * top.c (lang_frame_mismatch_warn): Remove declaration.
2336 (check_frame_language_change): Pass lang_frame_mismatch_warn
2339 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2341 * c-lang.h (vtbl_ptr_name): Declare.
2342 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2344 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2346 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2348 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2351 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2353 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2354 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2355 * ctfread.c: New file.
2356 * ctfread.h: New file.
2357 * elfread.c: Include ctfread.h.
2358 (struct elfinfo text_p): New member ctfsect.
2359 (elf_locate_sections): Mark CTF section.
2360 (elf_symfile_read): Call elfctf_build_psymtabs.
2361 * Makefile.in (LIBCTF): Add.
2364 (DIST): Add ctfread.c.
2366 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2368 * ctfread.c (struct nextfield): Renamed to ...
2369 (struct ctf_nextfield): ... this.
2370 (struct field_info): Renamed to ...
2371 (strut ctf_field_info): ... this.
2372 (attach_fields_to_type): Update for renamed structures.
2373 (ctf_add_member_cb): Likewise.
2374 (ctf_add_enum_member_cb): Likewise.
2375 (process_struct_members): Likewise.
2376 (process_enum_type): Likewise.
2378 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2380 * tracectf.h: Rename, was ctf.h.
2381 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2382 * tracefile.c: Likewise.
2383 * tracepoint.c: Remove unused include ctf.h.
2384 * mi/mi-main.c: Likewise.
2385 * Makefile.in Replace ctf.c with tracectf.c.
2387 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2389 * version.in: Change version number to "9.0.50.DATE-git".
2391 2019-10-03 Tom Tromey <tom@tromey.com>
2394 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2396 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2398 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2399 cp_search_name_hash.
2400 * NEWS: Add entry about nested function support.
2402 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2403 Andrew Burgess <andrew.burgess@embecosm.com>
2405 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2406 for nested static variables when searchin VAR_DOMAIN.
2407 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2408 global scope, update comment.
2409 (add_partial_subprogram): Call add_partial_subprogram recursively
2410 for nested subroutines when processinng Fortran.
2411 (load_partial_dies): Process the child entities of a subprogram
2412 when processing Fortran.
2413 (partial_die_parent_scope): Handle building scope
2414 for Fortran nested functions.
2415 (process_die): Record that nested functions have a scope.
2416 (new_symbol): Always record Fortran subprograms on the global
2418 (determine_prefix): How to build the prefix for Fortran
2421 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2423 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2424 have just sent the thread a SIGSTOP and are waiting for it to
2427 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2429 * btrace.c (btrace_add_pc): Remove whitespace before the template
2430 parameter in 'std::vector <...>'.
2431 (parse_xml_btrace_block): Likewise.
2432 (btrace_maint_decode_pt): Likewise.
2433 (btrace_maint_update_packets): Likewise.
2434 (btrace_maint_print_packets): Likewise.
2435 * btrace.h (struct btrace_maint_info): Likewise.
2436 * dwarf2read.c (struct type_unit_group): Likewise.
2437 (build_type_psymtabs_reader): Likewise.
2438 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2439 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2440 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2442 2019-10-03 Tom de Vries <tdevries@suse.de>
2444 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2445 the first line of the help text for set/show style metadata.
2447 2019-10-02 Tom Tromey <tromey@adacore.com>
2449 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2450 * gdbsupport/common-inferior.c: New file.
2451 * infcmd.c (startup_with_shell): Don't define.
2452 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2453 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2454 * inferior.h (startup_with_shell): Don't declare.
2456 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2458 * gdbsupport/gdb_assert.h: Include errors.h.
2459 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2461 2019-10-02 Tom Tromey <tromey@adacore.com>
2463 * NEWS: Add $_ada_exception entry.
2464 * ada-lang.c (struct ada_catchpoint): Add constructor.
2465 <m_kind>: New member.
2466 (allocate_location_exception, re_set_exception): Remove
2468 (should_stop_exception): Compute $_ada_exception.
2469 (check_status_exception, print_it_exception)
2470 (print_one_exception, print_mention_exception): Remove
2472 (allocate_location_catch_exception, re_set_catch_exception)
2473 (check_status_exception, print_it_catch_exception)
2474 (print_one_catch_exception, print_mention_catch_exception)
2475 (print_recreate_catch_exception)
2476 (allocate_location_catch_exception_unhandled)
2477 (re_set_catch_exception_unhandled)
2478 (check_status_exception, print_it_catch_exception_unhandled)
2479 (print_one_catch_exception_unhandled)
2480 (print_mention_catch_exception_unhandled)
2481 (print_recreate_catch_exception_unhandled)
2482 (allocate_location_catch_assert, re_set_catch_assert)
2483 (check_status_assert, print_it_catch_assert)
2484 (print_one_catch_assert, print_mention_catch_assert)
2485 (print_recreate_catch_assert)
2486 (allocate_location_catch_handlers, re_set_catch_handlers)
2487 (check_status_handlers, print_it_catch_handlers)
2488 (print_one_catch_handlers, print_mention_catch_handlers)
2489 (print_recreate_catch_handlers): Remove.
2490 (create_ada_exception_catchpoint): Update.
2491 (initialize_ada_catchpoint_ops): Update.
2493 2019-10-02 Tom Tromey <tromey@adacore.com>
2495 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2496 (create_excep_cond_exprs): Simplify exception string computation.
2497 (ada_exception_catchpoint_cond_string): Likewise.
2499 2019-10-02 Tom Tromey <tromey@adacore.com>
2501 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2502 * ada-lang.c (lesseq_defined_than): Handle
2504 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2506 (dwarf2_has_info): Likewise.
2507 (new_symbol): Set maybe_copied on symbol when
2509 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2511 <can_copy>: New member.
2512 * elfread.c (record_minimal_symbol): Set maybe_copied
2513 on symbol when appropriate.
2514 (elf_symfile_read): Update call to dwarf2_has_info.
2515 * minsyms.c (lookup_minimal_symbol_linkage): New
2517 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2518 * symtab.c (get_symbol_address, get_msymbol_address):
2520 * symtab.h (get_symbol_address, get_msymbol_address):
2522 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2524 (struct symbol, struct minimal_symbol) <maybe_copied>:
2527 2019-10-02 Tom Tromey <tromey@adacore.com>
2529 * source.c (struct current_source_location): New.
2530 (current_source_key): New global.
2531 (current_source_symtab, current_source_line)
2532 (current_source_pspace): Remove.
2533 (get_source_location): New function.
2534 (get_current_source_symtab_and_line)
2535 (set_default_source_symtab_and_line)
2536 (set_current_source_symtab_and_line)
2537 (clear_current_source_symtab_and_line, select_source_symtab)
2538 (info_source_command, print_source_lines_base)
2539 (info_line_command, search_command_helper, _initialize_source):
2542 2019-10-02 Tom Tromey <tromey@adacore.com>
2544 * source.c (select_source_symtab): Don't call
2545 decode_line_with_current_source.
2547 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2549 * symtab.c (lookup_global_symbol): Search global block.
2551 2019-10-02 Tom Tromey <tromey@adacore.com>
2553 * coffread.c (process_coff_symbol): Update.
2554 * dwarf2read.c (var_decode_location, new_symbol): Update.
2555 * mdebugread.c (parse_symbol): Update.
2556 * objfiles.c (relocate_one_symbol): Update.
2557 * stabsread.c (define_symbol, fix_common_block)
2558 (scan_file_globals): Update.
2559 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2560 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2561 * xcoffread.c (process_xcoff_symbol): Update.
2563 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2565 * MAINTAINERS: Update my email address.
2567 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2569 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2571 (build_type_psymtabs_reader): Update for std::vector.
2572 (build_type_psymtab_dependencies): Likewise.
2573 * dwarf2read.h: Remove use of DEF_VEC_P.
2574 (typedef sig_type_ptr): Delete.
2576 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2578 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2580 (btrace_maint_decode_pt): Likewise, and move allocation of the
2581 vector outside of the loop.
2582 (btrace_maint_update_packets): Update to handle change from VEC to
2584 (btrace_maint_print_packets): Likewise.
2585 (maint_info_btrace_cmd): Likewise.
2586 * btrace.h: Remove use of DEF_VEC_O.
2587 (typedef btrace_pt_packet_s): Delete.
2588 (struct btrace_maint_info) <packets>: Change fromm VEC to
2590 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2592 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2594 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2595 make accesses into the vector constant references.
2596 (btrace_add_pc): Update for std::vector.
2597 (btrace_stitch_bts): Likewise.
2598 (parse_xml_btrace_block): Likewise.
2599 (btrace_maint_update_packets): Likewise.
2600 (btrace_maint_print_packets): Likewise.
2601 (maint_info_btrace_cmd): Likewise.
2602 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2604 (btrace_data::empty): Likewise.
2605 (btrace_data_append): Likewise.
2606 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2607 (typedef btrace_block_s): Delete.
2608 (struct btrace_block): Add constructor.
2609 (struct btrace_data_bts) <blocks>: Change to std::vector.
2610 * nat/linux-btrace.c (perf_event_read_bts): Update for
2612 (linux_read_bts): Likewise.
2614 2019-10-01 Tom Tromey <tom@tromey.com>
2616 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2618 2019-10-01 Tom Tromey <tom@tromey.com>
2620 * stack.c (print_frame, info_frame_command_core): Use
2622 * linux-thread-db.c (try_thread_db_load_1)
2623 (try_thread_db_load_from_pdir_1): Use styled_string.
2624 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2625 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2626 (maybe_print_unsupported_script_warning)
2627 (maybe_print_script_not_found_warning): Use styled_string.
2628 * ada-lang.c (user_select_syms): Use styled_string.
2630 2019-10-01 Tom Tromey <tom@tromey.com>
2632 * p-lang.c (pascal_printstr): Use metadata style.
2633 * value.c (show_convenience): Use metadata style.
2634 * valprint.c (valprint_check_validity, val_print_optimized_out)
2635 (val_print_not_saved, val_print_unavailable)
2636 (val_print_invalid_address, generic_val_print, val_print)
2637 (value_check_printable, val_print_array_elements): Use metadata
2639 * ui-out.h (class ui_out) <field_fmt>: New overload.
2640 <do_field_fmt>: Add style parameter.
2641 * ui-out.c (ui_out::field_fmt): New overload.
2642 * typeprint.c (type_print_unknown_return_type)
2643 (val_print_not_allocated, val_print_not_associated): Use metadata
2645 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2647 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2648 * tracepoint.c (tvariables_info_1): Use metadata style.
2649 * stack.c (print_frame_arg, print_frame_info, print_frame)
2650 (info_frame_command_core): Use metadata style.
2651 * skip.c (info_skip_command): Use metadata style.
2652 * rust-lang.c (rust_print_enum): Use metadata style.
2653 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2655 * python/py-framefilter.c (py_print_single_arg): Use metadata
2657 * printcmd.c (do_one_display, print_variable_and_value): Use
2659 * p-valprint.c (pascal_val_print)
2660 (pascal_object_print_value_fields): Use metadata style.
2661 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2662 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2664 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2665 * m2-valprint.c (m2_print_long_set): Use metadata style.
2666 * m2-typeprint.c (m2_print_type): Use metadata style.
2667 * infcmd.c (print_return_value_1): Use metadata style.
2668 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2669 * f-valprint.c (info_common_command_for_block): Use metadata
2671 * f-typeprint.c (f_type_print_base): Use metadata style.
2672 * expprint.c (print_subexp_standard): Use metadata style.
2673 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2674 * cli/cli-style.h (class cli_style_option): Add constructor.
2675 (metadata_style): Declare.
2676 * cli/cli-style.c (metadata_style): New global.
2677 (_initialize_cli_style): Register metadata style.
2678 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2680 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2681 * c-typeprint.c (c_type_print_base_struct_union)
2682 (c_type_print_base_1): Use metadata style.
2683 * breakpoint.c (watchpoint_value_print)
2684 (print_one_breakpoint_location): Use metadata style.
2685 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2687 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2689 * ada-valprint.c (val_print_packed_array_elements, printstr)
2690 (print_field_values, ada_val_print_ref, ada_val_print): Use
2692 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2694 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2696 * ada-lang.c (user_select_syms): Use metadata style.
2698 2019-10-01 Tom Tromey <tom@tromey.com>
2700 * cli/cli-cmds.c (pwd_command): Style output.
2702 2019-10-01 Pedro Alves <palves@redhat.com>
2703 Tom Tromey <tom@tromey.com>
2705 * symtab.c (print_symbol_info): Use %ps.
2706 (print_msymbol_info): Use %ps.
2707 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2708 * printcmd.c (print_variable_and_value): Use %ps.
2709 * macrocmd.c (show_pp_source_pos): Use %ps.
2710 * infrun.c (print_exited_reason): Use ui_out::message.
2711 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2712 (describe_other_breakpoints): Use ui_out::message and new
2714 (say_where): Use new formats.
2715 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2718 2019-10-01 Pedro Alves <palves@redhat.com>
2719 Tom Tromey <tom@tromey.com>
2721 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2722 (test_gdb_formats): New function.
2723 (run_tests): Call it.
2724 (test_format_specifier): Update.
2725 * utils.h (fputs_filtered): Update comment.
2726 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2727 (fputs_styled_unfiltered): Declare.
2728 * utils.c (fputs_styled_unfiltered): New function.
2729 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2730 (vfprintf_filtered): Update.
2731 (vfprintf_unfiltered, vprintf_filtered): Update.
2732 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2733 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2734 disallow_ui_out_field>: New constants.
2735 (enum class field_kind): New.
2736 (struct base_field_s, struct signed_field_s): New.
2737 (signed_field): New function.
2738 (struct string_field_s): New.
2739 (string_field): New function.
2740 (struct styled_string_s): New.
2741 (styled_string): New function.
2742 (class ui_out) <message>: Add comment.
2743 <vmessage, call_do_message>: New methods.
2744 <do_message>: Add style parameter.
2745 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2747 (ui_out::message): Rewrite.
2748 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2750 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2751 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2752 gdb_extensions parameter.
2753 (class format_piece): Add parameter to constructor.
2754 (n_int_args): New field.
2755 * gdbsupport/format.c (format_pieces::format_pieces): Add
2756 gdb_extensions parameter. Handle '*'.
2757 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2758 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2759 vfprintf_styled_no_gdbfmt.
2760 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2761 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2763 * ui-style.h (struct ui_file_style) <ptr>: New method.
2765 2019-10-01 Tom Tromey <tom@tromey.com>
2767 * unittests/format_pieces-selftests.c: Update. Add final format.
2768 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2769 empty literal pieces.
2771 2019-10-01 Tom Tromey <tom@tromey.com>
2773 * ui-out.h (enum class ui_out_style_kind): Remove.
2774 (class ui_out) <field_string, field_stsream, do_field_string>:
2775 Change type of "style".
2776 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2777 (ui_out::field_string): Update.
2778 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2780 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2781 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2782 * stack.c (print_frame_arg, print_frame_info, print_frame):
2784 * source.c (print_source_lines_base): Update.
2785 * solib.c (info_sharedlibrary_command): Update.
2786 * skip.c (info_skip_command): Update.
2787 * record-btrace.c (btrace_call_history_src_line)
2788 (btrace_call_history): Update.
2789 * python/py-framefilter.c (py_print_frame): Update.
2790 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2792 * mi/mi-out.c (mi_ui_out::do_table_header)
2793 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2794 (mi_ui_out::do_field_string): Update.
2795 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2797 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2799 * cli-out.c (cli_ui_out::do_table_header)
2800 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2801 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2802 (cli_ui_out::do_field_fmt): Update.
2803 * breakpoint.c (print_breakpoint_location): Update.
2804 (update_static_tracepoint): Update.
2806 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2808 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2809 conversion of gdb_datadir.
2810 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2811 remove not needed c_str ().
2813 2019-09-30 Ali Tamur <tamur@google.com>
2815 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2816 (dwarf2_string_attr): Likewise.
2818 2019-09-30 Ali Tamur <tamur@google.com>
2820 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2821 (process_full_type_unit): Likewise.
2822 (dump_die_shallow): Likewise.
2823 (cu_debug_loc_section): Likewise.
2825 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2827 * minsyms.c (compare_minimal_symbols): Rename to...
2828 (minimal_symbol_is_less_than): ...this, and adjust to STL
2829 conventions (return bool, take arguments as references)
2830 (minimal_symbol_reader::install): Call std::sort instead
2833 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2835 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2837 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2838 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2840 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2842 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2843 * psympriv.h (add_psymbol_to_list): Move comment here and update
2846 2019-09-29 Tom de Vries <tdevries@suse.de>
2848 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2849 Use $tmpdir/$(basename "$output_file").dwz instead of
2850 "${output_file}.dwz".
2852 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2855 * hppa-linux-nat.c: Include gdbarch.h.
2857 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2859 * blockframe.c (find_pc_partial_function): Change return type to bool.
2860 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2861 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2862 (stub_gnu_ifunc_resolve_name): Likewise.
2863 * symtab.c (compare_filenames_for_search): Likewise.
2864 (compare_glob_filenames_for_search): Likewise.
2865 (matching_obj_sections): Likewise.
2866 (symbol_matches_domain): Likewise.
2867 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2868 (find_line_pc): Change return type to bool.
2869 (find_line_pc_range): Likewise.
2870 (producer_is_realview): Likewise.
2871 * symtab.h (symbol_matches_domain): Likewise.
2872 (find_pc_partial_function): Likewise.
2873 (find_pc_line_pc_range): Likewise.
2874 (in_gnu_ifunc_stub): Likewise.
2875 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2876 (find_line_pc): Likewise.
2877 (find_line_pc_range): Likewise.
2878 (matching_obj_sections): Likewise.
2879 (find_line_symtab): Change out parameter to bool.
2880 (producer_is_realview): Change return type to bool.
2881 (compare_filenames_for_search): Likewise.
2882 (compare_glob_filenames_for_search): Likewise.
2884 2019-09-26 Tom Tromey <tom@tromey.com>
2886 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2887 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2888 * gdb_usleep.h: Remove.
2889 * gdb_usleep.c: Remove.
2890 * utils.c: Don't include gdb_usleep.h.
2892 2019-09-26 Tom Tromey <tromey@adacore.com>
2894 * python/py-type.c (type_to_type_object): Call check_typedef
2897 2019-09-26 Tom Tromey <tom@tromey.com>
2899 * utils.h (initialize_utils): Don't declare.
2900 * top.c (gdb_init): Don't call initialize_utils.
2901 * utils.c (initialize_utils): Remove. Move contents...
2902 (_initialize_utils): ... here.
2904 2019-09-25 Tom Tromey <tom@tromey.com>
2906 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2907 * utils.h (make_hex_string): Don't declare.
2908 * utils.c (make_hex_string): Remove.
2910 2019-09-24 Tom de Vries <tdevries@suse.de>
2913 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2914 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2916 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2918 * NEWS: Mention new simulator port for PRU.
2920 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2922 * ada-exp.y (write_object_remaining): Update.
2923 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2924 and eliminate the static buffer.
2925 (ada_decode_symbol): Update.
2926 (ada_la_decode): Update.
2927 (ada_sniff_from_mangled_name): Update.
2928 (is_valid_name_for_wild_match): Update.
2929 (ada_lookup_name_info::matches): Update and simplify.
2930 (name_matches_regex): Update.
2931 (ada_add_global_exceptions): Update.
2932 * ada-lang.h (ada_decode): Update signature.
2933 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2934 * dwarf-index-write.c (debug_names::insert): Update.
2936 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2938 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2941 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2943 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2944 Change "nonzero" to "true" in documentation.
2946 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2948 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2949 (_initialize_darwin_solib): Don't set
2950 darwin_so_ops.lookup_lib_global_symbol.
2951 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2952 set_gdbarch_iterate_over_objfiles_in_search_order.
2953 (elf_lookup_lib_symbol): Rename to...
2954 (svr4_iterate_over_objfiles_in_search_order): this, and update
2955 to iterate semantics.
2956 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2957 * solib.c (solib_global_lookup): Remove.
2958 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2959 (solib_global_lookup): Remove.
2960 * symtab.c (lookup_global_or_static_symbol): Remove call to
2961 solib_global_lookup.
2963 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2965 * NEWS: Move entries about default MI version now being
2966 version 3, and about the GDB/MI fix for multi-location
2967 breakpoints to the "since GDB 8.3" section.
2969 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2973 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2975 * NEWS: Mention that Cell/B.E. debugging support was removed.
2976 * MAINTAINERS: Remove spu target.
2978 * config/djgpp/fnchange.lst: Remove entries for removed files.
2980 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2981 spu-multiarch.o, and spu-tdep.o.
2982 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2983 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2984 spu-multiarch.c, and spu-tdep.c.
2985 * spu-linux-nat.c: Remove file.
2986 * spu-multiarch.c: Remove file.
2987 * spu-tdep.c: Remove file.
2988 * spu-tdep.h: Remove file.
2989 * solib-spu.c: Remove file.
2990 * solib-spu.h: Remove file.
2992 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2993 * configure.nat (spu-linux): Remove.
2994 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2995 solib-multiarch.o from gdb_target_obs.
2998 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3000 (ppc_linux_no_features): Update.
3001 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3003 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3004 (tdesc_powerpc_cell64l): Likewise.
3005 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3006 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3008 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3009 Do not include "features/rs6000/powerpc-cell32l.c" or
3010 "features/rs6000/powerpc-cell64l.c".
3011 (ppc_linux_spu_section): Remove.
3012 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3013 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3014 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3015 (ppc_linux_spe_context_lookup): Remove.
3016 (ppc_linux_spe_context_inferior_created): Remove.
3017 (ppc_linux_spe_context_solib_loaded): Remove.
3018 (ppc_linux_spe_context_solib_unloaded): Remove.
3019 (ppc_linux_spe_context): Remove.
3020 (struct ppu2spu_cache): Remove.
3021 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3022 (struct ppu2spu_data): Remove.
3023 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3024 ppu2spu_unwind): Remove.
3025 (ppc_linux_init_abi): Remove Cell/B.E. support.
3026 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3028 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3029 (rs6000/powerpc-cell64l-expedite): Likewise
3030 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3031 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3032 rs6000/powerpc-cell64l.xml.
3033 * features/rs6000/powerpc-cell32l.xml: Remove.
3034 * features/rs6000/powerpc-cell64l.xml: Likewise.
3035 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3036 * features/rs6000/powerpc-cell64l.c: Likewise.
3037 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3038 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3039 * regformats/reg-spu.dat: Remove.
3041 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3042 * corelow.c (struct spuid_list): Remove.
3043 (add_to_spuid_list): Remove.
3044 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3045 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3046 (remote_protocol_features): Remove associated entries.
3047 (_initialize_remote): No longer initialize them.
3048 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3049 * linux-nat.c (SPUFS_MAGIC): Remove.
3050 (linux_proc_xfer_spu): Remove.
3051 (spu_enumerate_spu_ids): Remove.
3052 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3053 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3054 (linux_make_corefile_notes): No longer call it.
3056 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3057 (cooked_write_test): Likewise.
3059 2019-09-20 Tom Tromey <tom@tromey.com>
3061 * NEWS: Mention case-sensitivity of TUI commands.
3062 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3063 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3064 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3066 2019-09-20 Tom Tromey <tom@tromey.com>
3068 * tui/tui-source.c (tui_source_window::set_contents): Use
3069 make_unique_xstrdup.
3070 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3071 make_unique_xstrdup.
3073 2019-09-20 Tom Tromey <tom@tromey.com>
3075 * tui/tui-data.c: Remove separator comments.
3076 * tui/tui-layout.c: Remove separator comments.
3077 * tui/tui-win.c: Remove separator comments.
3078 * tui/tui-wingeneral.c: Remove separator comments.
3080 2019-09-20 Tom Tromey <tom@tromey.com>
3082 * tui/tui.h (strcat_to_buf): Don't declare.
3083 * tui/tui.c (strcat_to_buf): Remove.
3085 2019-09-20 Tom Tromey <tom@tromey.com>
3087 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3089 * tui/tui-source.c (tui_source_window::set_contents)
3090 (tui_source_window::location_matches_p)
3091 (tui_source_window::maybe_update): Update.
3093 2019-09-20 Tom Tromey <tom@tromey.com>
3095 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3097 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3099 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3100 (tui_data_window::line_from_reg_element_no)
3101 (tui_data_window::first_reg_element_no_inline)
3102 (tui_data_window::show_registers)
3103 (tui_data_window::show_register_group)
3104 (tui_data_window::display_registers_from)
3105 (tui_data_window::display_registers_from_line)
3106 (tui_data_window::first_data_item_displayed)
3107 (tui_data_window::delete_data_content_windows)
3108 (tui_data_window::erase_data_content)
3109 (tui_data_window::do_scroll_vertical)
3110 (tui_data_window::refresh_window)
3111 (tui_data_window::check_register_values): Update.
3113 2019-09-20 Tom Tromey <tom@tromey.com>
3115 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3116 (struct tui_locator_window) <full_name, proc_name>: Now
3118 * tui/tui-stack.c (tui_locator_window::make_status_line)
3119 (tui_locator_window::set_locator_fullname)
3120 (tui_locator_window::set_locator_info): Update.
3121 * tui/tui-source.c (tui_source_window::set_contents)
3122 (tui_source_window::showing_source_p): Update.
3124 2019-09-20 Tom Tromey <tom@tromey.com>
3126 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3127 Don't call tui_locator_win_info_ptr.
3129 2019-09-20 Tom Tromey <tom@tromey.com>
3131 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3133 2019-09-20 Tom Tromey <tom@tromey.com>
3135 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3137 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3138 * tui/tui-layout.c (show_source_disasm_command, show_data)
3139 (show_source_or_disasm_and_command): Use 1 as height for locator.
3141 2019-09-20 Tom Tromey <tom@tromey.com>
3143 * tui/tui.c (tui_enable): Update.
3144 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3146 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3148 * tui/tui-data.c (win_resized): Now bool.
3149 (tui_win_resized): Return bool.
3150 (tui_set_win_resized_to): Accept a bool.
3152 2019-09-20 Tom Tromey <tom@tromey.com>
3154 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3155 Change type of "refresh_values_only".
3156 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3157 type of "refresh_values_only".
3159 2019-09-20 Tom Tromey <tom@tromey.com>
3161 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3163 (tui_disassemble): Add "pos" parameter.
3164 (tui_disasm_window::set_contents): Simplify.
3166 2019-09-20 Tom Tromey <tom@tromey.com>
3168 * tui/tui-winsource.h (struct tui_source_window_base)
3169 <show_source_content>: Now private.
3170 * tui/tui-winsource.c
3171 (tui_source_window_base::show_source_content): Don't handle empty
3174 2019-09-20 Tom Tromey <tom@tromey.com>
3176 * tui/tui-layout.c (show_source_disasm_command)
3177 (show_source_or_disasm_and_command): Don't call
3178 show_source_content.
3180 2019-09-20 Tom Tromey <tom@tromey.com>
3182 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3184 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3185 from tui_make_status_line.
3186 (tui_locator_window::rerender): Update.
3188 2019-09-20 Tom Tromey <tom@tromey.com>
3190 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3191 (tui_locator_window::rerender): Update.
3193 2019-09-20 Tom Tromey <tom@tromey.com>
3195 * tui/tui-winsource.h (struct tui_source_window_base)
3196 <~tui_source_window_base>: Don't declare.
3198 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3199 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3201 * tui/tui-source.c (tui_source_window::set_contents): Update.
3202 (tui_source_window::location_matches_p)
3203 (tui_source_window::maybe_update): Update.
3205 2019-09-20 Tom Tromey <tom@tromey.com>
3207 * tui/tui-winsource.h (~tui_source_element): Remove.
3208 (tui_source_element): Update.
3209 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3210 * tui/tui-winsource.c (tui_show_source_line): Update.
3211 * tui/tui-source.c (tui_source_window::set_contents): Update.
3212 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3214 2019-09-20 Tom Tromey <tom@tromey.com>
3216 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3218 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3219 tui_clear_source_windows_detail.
3220 * tui/tui-winsource.h (struct tui_source_window_base)
3221 <clear_detail>: Don't declare.
3222 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3224 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3226 2019-09-20 Tom Tromey <tromey@adacore.com>
3229 * block.c (contained_in): Fix final return value.
3231 2019-09-20 Alan Modra <amodra@gmail.com>
3233 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3234 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3235 (read_indirect_string_from_dwz): Use bfd accessor.
3236 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3237 * machoread.c (macho_symfile_read_all_oso): Likewise.
3238 * solib.c (solib_bfd_open): Likewise.
3240 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3242 * eval.c: Move declaration of overload_resolution to...
3245 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3247 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3248 * arm-linux-tdep.c: Likewise.
3249 * arm-nbsd-nat.c: Likewise.
3250 * arm-tdep.h: Declare arm_apcs_32.
3251 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3253 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3255 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3256 * dwarf2read.h: Declare dwarf_always_disassemble.
3258 2019-09-19 Tom de Vries <tdevries@suse.de>
3261 * source-cache.c (source_cache::ensure): Catch exception thrown during
3262 construction of the highlighter.
3264 2019-09-18 Alan Modra <amodra@gmail.com>
3266 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3267 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3268 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3269 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3270 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3271 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3272 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3273 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3274 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3275 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3276 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3277 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3278 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3279 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3280 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3281 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3282 * mi/mi-interp.c: Update throughout for bfd section macro and
3284 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3285 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3287 2019-09-18 Tom Tromey <tom@tromey.com>
3290 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3292 (tui_enable): Do not call rl_initialize.
3294 2019-09-18 Christian Groessler <chris@groessler.org>
3296 * alpha-linux-nat.c: Include gdbarch.h.
3298 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3300 * ui-file.c: Include cli/cli-style.h.
3301 (term_cli_styling): Remove cli_styling declaration.
3303 2019-09-18 Alan Modra <amodra@gmail.com>
3305 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3306 to bfd_asymbol_section.
3308 2019-09-18 Alan Modra <amodra@gmail.com>
3310 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3311 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3312 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3314 2019-09-18 Alan Modra <amodra@gmail.com>
3316 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3317 * spu-linux-nat.c (spu_bfd_open): Likewise.
3319 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3321 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3322 to bool to match definition in dwarf2read.c.
3324 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3326 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3327 (print_signatures): Likewise.
3328 (trust_pad_over_xvs): Likewise.
3329 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3330 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3331 * arm-linux-nat.c (arm_apcs_32): Likewise.
3332 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3333 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3334 * arm-tdep.c (arm_debug): Likewise.
3335 (arm_apcs_32): Likewise.
3336 * auto-load.c (debug_auto_load): Likewise.
3337 (auto_load_gdb_scripts): Likewise.
3338 (global_auto_load): Likewise.
3339 (auto_load_local_gdbinit): Likewise.
3340 (auto_load_local_gdbinit_loaded): Likewise.
3341 * auto-load.h (global_auto_load): Likewise.
3342 (auto_load_local_gdbinit): Likewise.
3343 (auto_load_local_gdbinit_loaded): Likewise.
3344 * breakpoint.c (disconnected_dprintf): Likewise.
3345 (breakpoint_proceeded): Likewise.
3346 (automatic_hardware_breakpoints): Likewise.
3347 (always_inserted_mode): Likewise.
3348 (target_exact_watchpoints): Likewise.
3349 (_initialize_breakpoint): Update.
3350 * breakpoint.h (target_exact_watchpoints): Change to bool.
3351 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3352 * cli/cli-cmds.c (trace_commands): Likewise.
3353 * cli/cli-cmds.h (trace_commands): Likewise.
3354 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3356 * cli/cli-logging.c (logging_overwrite): Change to bool.
3357 (logging_redirect): Likewise.
3358 (debug_redirect): Likewise.
3359 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3360 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3362 <boolean_option_def>: Update.
3363 (struct flag_option_def): Change default type of Context to bool
3365 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3366 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3367 (get_setshow_command_value_string): Likewise.
3368 * cli/cli-style.c (cli_styling): Change to bool.
3369 (source_styling): Likewise.
3370 * cli/cli-style.h (source_styling): Likewise.
3371 (cli_styling): Likewise.
3372 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3374 * command.h (var_types): Update comment.
3375 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3376 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3378 (debug_compile_cplus_scopes): Likewise.
3379 * compile/compile-internal.h (compile_debug): Likewise.
3380 * compile/compile.c (compile_debug): Likewise.
3381 (struct compile_options) <raw>: Likewise.
3382 * cp-support.c (catch_demangler_crashes): Likewise.
3383 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3384 (usr_cmd_cris_dwarf2_cfi): Likewise.
3385 * csky-tdep.c (csky_debug): Likewise.
3386 * darwin-nat.c (enable_mach_exceptions): Likewise.
3387 * dcache.c (dcache_enabled_p): Likewise.
3388 * defs.h (info_verbose): Likewise.
3389 * demangle.c (demangle): Likewise.
3390 (asm_demangle): Likewise.
3391 * dwarf-index-cache.c (debug_index_cache): Likewise.
3392 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3393 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3394 * dwarf2read.c (check_physname): Likewise.
3395 (use_deprecated_index_sections): Likewise.
3396 (dwarf_always_disassemble): Likewise.
3397 * eval.c (overload_resolution): Likewise.
3398 * event-top.c (set_editing_cmd_var): Likewise.
3399 (exec_done_display_p): Likewise.
3400 * event-top.h (set_editing_cmd_var): Likewise.
3401 (exec_done_display_p): Likewise.
3402 * exec.c (write_files): Likewise.
3403 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3404 (debug_fbsd_nat): Likewise.
3405 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3407 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3408 <backtrace_past_entry> Likewise.
3409 * gdb-demangle.h (demangle): Likewise.
3410 (asm_demangle): Likewise.
3411 * gdb_bfd.c (bfd_sharing): Likewise.
3412 * gdbcore.h (write_files): Likewise.
3413 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3414 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3415 * gdbthread.h (print_thread_events): Likewise.
3416 * gdbtypes.c (opaque_type_resolution): Likewise.
3417 (strict_type_checking): Likewise.
3418 * gnu-nat.c (gnu_debug_flag): Likewise.
3419 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3420 * guile/scm-param.c (pascm_variable): Add boolval.
3421 (add_setshow_generic): Update.
3422 (pascm_param_value): Update.
3423 (pascm_set_param_value_x): Update.
3424 * hppa-tdep.c (hppa_debug): Change to bool..
3425 * infcall.c (may_call_functions_p): Likewise.
3426 (coerce_float_to_double_p): Likewise.
3427 (unwind_on_signal_p): Likewise.
3428 (unwind_on_terminating_exception_p): Likewise.
3429 * infcmd.c (startup_with_shell): Likewise.
3430 * inferior.c (print_inferior_events): Likewise.
3431 * inferior.h (startup_with_shell): Likewise.
3432 (print_inferior_events): Likewise.
3433 * infrun.c (step_stop_if_no_debug): Likewise.
3434 (detach_fork): Likewise.
3435 (debug_displaced): Likewise.
3436 (disable_randomization): Likewise.
3437 (non_stop): Likewise.
3438 (non_stop_1): Likewise.
3439 (observer_mode): Likewise.
3440 (observer_mode_1): Likewise.
3441 (set_observer_mode): Update.
3442 (sched_multi): Change to bool.
3443 * infrun.h (debug_displaced): Likewise.
3444 (sched_multi): Likewise.
3445 (step_stop_if_no_debug): Likewise.
3446 (non_stop): Likewise.
3447 (disable_randomization): Likewise.
3448 * linux-tdep.c (use_coredump_filter): Likewise.
3449 (dump_excluded_mappings): Likewise.
3450 * linux-thread-db.c (auto_load_thread_db): Likewise.
3451 (check_thread_db_on_load): Likewise.
3452 * main.c (captured_main_1): Update.
3453 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3454 xx2_opt, boolean_opt>: Change to bool.
3455 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3456 * maint.c (maintenance_profile_p): Likewise.
3457 (per_command_time): Likewise.
3458 (per_command_space): Likewise.
3459 (per_command_symtab): Likewise.
3460 * memattr.c (inaccessible_by_default): Likewise.
3461 * mi/mi-main.c (mi_async): Likewise.
3462 (mi_async_1): Likewise.
3463 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3464 * nat/fork-inferior.h (startup_with_shell): Likewise.
3465 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3466 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3467 * nios2-tdep.c (nios2_debug): Likewise.
3468 * or1k-tdep.c (or1k_debug): Likewise.
3469 * parse.c (parser_debug): Likewise.
3470 * parser-defs.h (parser_debug): Likewise.
3471 * printcmd.c (print_symbol_filename): Likewise.
3472 * proc-api.c (procfs_trace): Likewise.
3473 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3474 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3475 (set_parameter_value): Update.
3476 (add_setshow_generic): Update.
3477 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3479 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3481 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3482 * record-btrace.c (record_btrace_target::store_registers): Update.
3483 * record-full.c (record_full_memory_query): Change to bool.
3484 (record_full_stop_at_limit): Likewise.
3485 * record-full.h (record_full_memory_query): Likewise.
3486 * remote-notif.c (notif_debug): Likewise.
3487 * remote-notif.h (notif_debug): Likewise.
3488 * remote.c (use_range_stepping): Likewise.
3489 (interrupt_on_connect): Likewise.
3490 (remote_break): Likewise.
3491 * ser-tcp.c (tcp_auto_retry): Likewise.
3492 * ser-unix.c (serial_hwflow): Likewise.
3493 * skip.c (debug_skip): Likewise.
3494 * solib-aix.c (solib_aix_debug): Likewise.
3495 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3496 (spu_auto_flush_cache_p): Likewise.
3497 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3499 (struct info_print_options) <quiet>: Likewise.
3500 * symfile-debug.c (debug_symfile): Likewise.
3501 * symfile.c (auto_solib_add): Likewise.
3502 (separate_debug_file_debug): Likewise.
3503 * symfile.h (auto_solib_add): Likewise.
3504 (separate_debug_file_debug): Likewise.
3505 * symtab.c (basenames_may_differ): Likewise.
3506 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3507 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3508 (struct info_types_options) <quiet>: Likewise.
3509 * symtab.h (demangle): Likewise.
3510 (basenames_may_differ): Likewise.
3511 * target-dcache.c (stack_cache_enabled_1): Likewise.
3512 (code_cache_enabled_1): Likewise.
3513 * target.c (trust_readonly): Likewise.
3514 (may_write_registers): Likewise.
3515 (may_write_memory): Likewise.
3516 (may_insert_breakpoints): Likewise.
3517 (may_insert_tracepoints): Likewise.
3518 (may_insert_fast_tracepoints): Likewise.
3519 (may_stop): Likewise.
3520 (auto_connect_native_target): Likewise.
3521 (target_stop_and_wait): Update.
3522 (target_async_permitted): Change to bool.
3523 (target_async_permitted_1): Likewise.
3524 (may_write_registers_1): Likewise.
3525 (may_write_memory_1): Likewise.
3526 (may_insert_breakpoints_1): Likewise.
3527 (may_insert_tracepoints_1): Likewise.
3528 (may_insert_fast_tracepoints_1): Likewise.
3529 (may_stop_1): Likewise.
3530 * target.h (target_async_permitted): Likewise.
3531 (may_write_registers): Likewise.
3532 (may_write_memory): Likewise.
3533 (may_insert_breakpoints): Likewise.
3534 (may_insert_tracepoints): Likewise.
3535 (may_insert_fast_tracepoints): Likewise.
3536 (may_stop): Likewise.
3537 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3538 (make_thread_apply_all_options_def_group): Change argument from int*
3540 (thread_apply_all_command): Update.
3541 (print_thread_events): Change to bool.
3542 * top.c (confirm): Likewise.
3543 (command_editing_p): Likewise.
3544 (history_expansion_p): Likewise.
3545 (write_history_p): Likewise.
3546 (info_verbose): Likewise.
3547 * top.h (confirm): Likewise.
3548 (history_expansion_p): Likewise.
3549 * tracepoint.c (disconnected_tracing): Likewise.
3550 (circular_trace_buffer): Likewise.
3551 * typeprint.c (print_methods): Likewise.
3552 (print_typedefs): Likewise.
3553 * utils.c (debug_timestamp): Likewise.
3554 (sevenbit_strings): Likewise.
3555 (pagination_enabled): Likewise.
3556 * utils.h (sevenbit_strings): Likewise.
3557 (pagination_enabled): Likewise.
3558 * valops.c (overload_resolution): Likewise.
3559 * valprint.h (struct value_print_options) <prettyformat_arrays,
3560 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3561 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3562 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3564 * windows-nat.c (new_console): Likewise.
3565 (cygwin_exceptions): Likewise.
3566 (new_group): Likewise.
3567 (debug_exec): Likewise.
3568 (debug_events): Likewise.
3569 (debug_memory): Likewise.
3570 (debug_exceptions): Likewise.
3571 (useshell): Likewise.
3572 * windows-tdep.c (maint_display_all_tib): Likewise.
3573 * xml-support.c (debug_xml): Likewise.
3575 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3577 * source.c (prepare_path_for_appending): New function.
3578 (openp): Make use of new function.
3579 (find_and_open_source): Search for the compilation directory and
3580 source file as a relative path beneath the directory search path.
3582 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3584 * source-cache.c (source_cache::get_line_charpos): Catch
3585 exceptions and return false, this matches the behaviour documented
3588 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3590 * ada-tasks.c (info_task): Remove quoting of the task's name.
3592 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3594 * symfile.c (auto_solib_add): Replace comment with a reference
3597 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3599 * NEWS: Mention that gdb can now be compiled with Python 3
3602 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3604 * maint.c (maint_print_section_data::maint_print_section_data):
3605 Force use of 'float log10 (float)' by casting the argument to
3608 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3610 * maint.c: Add 'cmath' include.
3611 (struct maint_print_section_data): New structure.
3612 (print_section_index): New function.
3613 (print_bfd_section_info): Add header comment, small whitespace
3614 cleanup, and update to call new print_section_index function.
3615 (print_objfile_section_info): Likewise.
3616 (maint_obj_section_from_bfd_section): New function.
3617 (print_bfd_section_info_maybe_relocated): New function.
3618 (maintenance_info_sections): Add header comment, always use
3619 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3621 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3623 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3624 inner scope, add check that the objfile has psymtabs before
3625 checking psymtabs_addrmap.
3626 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3628 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3630 * NEWS: Announce that Ada task names are now shown at more places,
3631 and between quotes (except in info task output).
3632 * gdb/ada-tasks.c (task_to_str): New function.
3633 (display_current_task_id): Call task_to_str.
3634 (task_command_1): Likewise.
3635 (print_ada_task_info): In non-mi mode, Properly align headers and data
3636 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3638 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3640 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3641 prstatus.pr_lwp.pr_info instead of making it up.
3643 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3645 * auto-load.c (auto_load_expand_dir_vars): Update.
3646 * defs.h (gdb_datadir): Change to std::string.
3647 (python_libdir): Likewise.
3648 (relocate_gdb_directory): Change return type to std::string.
3649 * guile/guile.c (gdbscm_data_directory): Update.
3650 (initialize_scheme_side): Update.
3651 * jit.c (jit_reader_dir): Change to std::string.
3652 (jit_reader_load_command): Update.
3653 * main.c (gdb_datadir): Change to std::string.
3654 (python_libdir): Likewise.
3655 (set_gdb_data_directory): Update.
3656 (relocate_path): Change to return std::string.
3657 (relocate_gdb_directory): Change to return std::string.
3658 (relocate_gdbinit_path_maybe_in_datadir): Update.
3659 (captured_main_1): Update.
3660 * python/python.c (do_start_initialization): Update.
3661 * top.c (show_gdb_datadir): Update.
3662 * xml-syscall.c (xml_init_syscalls_info): Update.
3663 (init_syscalls_info): Update.
3665 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3667 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3668 out of get_init_files.
3669 (get_init_files): Update.
3671 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3673 * main.c (get_init_files): Change to use std::string.
3674 (captured_main_1): Update.
3675 (print_gdb_help): Update.
3677 2019-09-11 Ali Tamur <tamur@google.com>
3679 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3682 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3684 * dbxread.c (read_dbx_symtab): Update.
3685 * dwarf2read.c (load_partial_dies): Update.
3686 * mdebugread.c (parse_partial_symbols): Update.
3687 (handle_psymbol_enumerators): Update.
3688 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3689 * psymtab.c (add_psymbol_to_bcache): Likewise.
3690 (add_psymbol_to_list): Likewise.
3691 * symtab.c (symbol_set_names): Likewise.
3692 * symtab.h (symbol_set_names): Likewise.
3693 * xcoffread.c (scan_xcoff_symtab): Update.
3695 2019-09-11 Tom Tromey <tom@tromey.com>
3697 * symfile-mem.c (symbol_file_add_from_memory): Use
3699 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3700 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3702 2019-09-10 Tom Tromey <tromey@adacore.com>
3704 * dwarf-index-write.c (write_psymbols): Extend error message.
3705 (debug_names::insert): Add Ada code.
3706 (debug_names::write_psymbols): Remove Ada check.
3707 (debug_names) <m_string_obstack>: New member.
3708 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3709 (gdb_index_symbol_name_matcher::matches): Remove.
3710 (mapped_index_base::find_name_components_bounds): Add "lang"
3712 (mapped_index_base::build_name_components): Also split names
3713 according to Ada syntax.
3714 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3715 type of "match_callback".
3716 (check_match, check_find_bounds_finds)
3717 (dw2_expand_symtabs_matching): Update.
3718 (dw2_debug_names_iterator): Add new constructor.
3719 (dw2_debug_names_map_matching_symbols): New function.
3720 (dw2_debug_names_expand_symtabs_matching): Update.
3721 (dwarf2_debug_names_functions): Use
3722 dw2_debug_names_map_matching_symbols.
3724 2019-09-10 Tom Tromey <tromey@adacore.com>
3726 * dwarf2read.c (dw2_get_file_names_reader): Add the
3727 CU's file name to the results.
3729 2019-09-10 Tom Tromey <tromey@adacore.com>
3731 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3732 map_matching_symbols. Update.
3733 * dwarf2read.c (dw2_map_matching_symbols): Update.
3734 * psymtab.c (match_partial_symbol): Change type; update.
3735 (psym_map_matching_symbols): Likewise.
3736 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3738 * symfile.h (struct quick_symbol_functions)
3739 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3742 2019-09-10 Tom Tromey <tromey@adacore.com>
3744 * psymtab.c (map_block): Remove.
3745 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3746 * symtab.c (iterate_over_symbols_terminated): New function.
3747 * symtab.c (iterate_over_symbols_terminated): Declare.
3749 2019-09-10 Tom Tromey <tromey@adacore.com>
3751 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3752 * language.h (struct language_defn) <la_iterate_over_symbols>:
3754 * symtab.c (iterate_over_symbols): Return bool.
3755 * symtab.h (iterate_over_symbols): Return bool.
3757 2019-09-10 Tom Tromey <tromey@adacore.com>
3759 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3760 (add_nonlocal_symbols): Update.
3761 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3762 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3763 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3764 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3765 Change type of "callback". Remove "data".
3768 2019-09-09 Ali Tamur <tamur@google.com>
3770 * dwarf2read.c (comp_unit_head): Update comment.
3771 (dwarf2_dwo_name): New function declaration.
3772 (dwarf_unit_type_name): New function declaration.
3773 (read_comp_unit_head): Add support for new compilation units,
3774 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3775 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3776 (currently named as "signature") in their header. Also clarify error
3778 (lookup_dwo_id): New function. Returns the dwo id of the given
3780 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3781 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3783 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3784 (dwarf2_dwo_name): Get the dwo name if present.
3785 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3788 2019-09-09 Tom Tromey <tom@tromey.com>
3790 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3792 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3794 * python/python.c (do_start_initialization): Make progname_copy static,
3795 to avoid a leak report.
3797 2019-09-08 Tom Tromey <tom@tromey.com>
3799 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3801 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3803 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3804 Change type to gdb::optional<block_enum>.
3805 (dw2_symtab_iter_init): Change block_index parameter type
3806 to gdb::optional<block_enum>.
3807 (dw2_lookup_symbol): Change block_index parameter
3808 type to block_enum.c
3809 (dw2_debug_names_lookup_symbol): Likewise.
3810 * psymtab.c (psym_lookup_symbol): Likewise.
3811 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3812 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3815 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3817 * defs.h (relocate_gdb_directory): Change int to bool in
3818 signature and rename flag to relocatable.
3819 * main.c (relocate_path): Likewise.
3820 (relocate_gdb_directory): Likewise.
3822 2019-09-06 Alan Modra <amodra@gmail.com>
3824 * coffread.c (coff_symfile_read): Constify filename variable.
3825 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3826 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3827 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3828 * solib.c (reload_shared_libraries_1): Likewise.
3829 * symfile.c (reread_symbols): Likewise.
3830 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3831 * solib-darwin.c (darwin_bfd_open): Likewise.
3832 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3834 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3836 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3837 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3839 2019-09-03 Tom Tromey <tromey@adacore.com>
3841 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3843 (has_negatives): Unbias a range type bound.
3844 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3845 * gdbtypes.c (operator==): Handle new field.
3846 (create_range_type): Add "bias" parameter.
3847 (create_static_range_type, resolve_dynamic_range): Update.
3848 * gdbtypes.h (struct range_bounds) <bias>: New member.
3849 (create_range_type): Add bias parameter.
3850 * printcmd.c (print_scalar_formatted): Unbias range types.
3851 * value.c (unpack_long): Unbias range types.
3852 (pack_long): Bias range types.
3854 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3856 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3859 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3861 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3862 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3863 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3864 (compile_probe_arg): Likewise.
3865 * probe.h (get_argument_count): Likewise.
3866 * solib-svr4.c (solib_event_probe_action): Likewise.
3867 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3869 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3871 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3873 (svr4_create_solib_event_breakpoints): ...from here.
3875 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3877 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3878 suffix from warning message.
3880 2019-08-30 Tom Tromey <tom@tromey.com>
3882 * tui/tui-winsource.h (struct tui_source_window_base)
3883 <refresh_all>: Don't declare.
3884 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3886 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3887 tui_show_locator_content.
3888 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3890 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3891 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3894 2019-08-30 Tom Tromey <tom@tromey.com>
3896 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3898 2019-08-30 Tom Tromey <tom@tromey.com>
3900 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3901 Remove unnecessary forward declarations.
3903 2019-08-30 Tom Tromey <tom@tromey.com>
3905 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3907 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3908 tui_show_locator_content.
3910 2019-08-30 Tom Tromey <tom@tromey.com>
3912 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3913 (tui_locator_window::rerender): Rewrite using body of previous
3914 tui_show_locator_content.
3916 2019-08-30 Tom Tromey <tom@tromey.com>
3918 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3919 set_locator_fullname>: New methods.
3920 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3921 Rename from tui_set_locator_fullname.
3922 (tui_locator_window::set_locator_info): Rename from
3923 tui_set_locator_info. Return bool.
3924 (tui_update_locator_fullname, tui_show_frame_info): Update.
3926 2019-08-30 Tom Tromey <tom@tromey.com>
3928 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3930 2019-08-30 Tom Tromey <tom@tromey.com>
3932 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3935 2019-08-30 Tom Tromey <tom@tromey.com>
3937 * tui/tui-wingeneral.c (box_win): Assume win_info and
3938 win_info->handle cannot be NULL.
3940 2019-08-30 Tom Tromey <tom@tromey.com>
3942 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3943 refresh_window>: Declare.
3944 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3946 (tui_data_item_window::rerender): Rename from
3947 tui_display_register.
3948 (tui_data_item_window::refresh_window): New method.
3949 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3952 2019-08-30 Tom Tromey <tom@tromey.com>
3954 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3955 regs_column_count, current_group>: Move later. Now private.
3956 <get_current_group>: New method.
3957 * tui/tui-regs.c (tui_reg_command): Update.
3958 * tui/tui-layout.c (tui_set_layout): Update.
3960 2019-08-30 Tom Tromey <tom@tromey.com>
3962 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3963 (tui_data_window::rerender): Don't call
3964 check_and_display_highlight_if_needed.
3965 (tui_data_window::refresh_all): Remove call to
3968 2019-08-30 Tom Tromey <tom@tromey.com>
3970 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3971 (tui_data_window::display_registers_from)
3972 (tui_data_window::display_reg_element_at_line)
3973 (tui_data_window::display_registers_from_line): Remove checks of
3976 2019-08-30 Tom Tromey <tom@tromey.com>
3978 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3980 * tui/tui-regs.c (tui_data_window::show_registers): Call
3982 (tui_data_window::rerender): Rename from display_all_data.
3983 (tui_data_window::rerender): Remove old implementation.
3985 2019-08-30 Tom Tromey <tom@tromey.com>
3987 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3989 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3991 2019-08-29 Bernhard Wodok <barto@gmx.net>
3992 Sergio Durigan Junior <sergiodj@redhat.com>
3995 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3997 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3999 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4000 when searching for types.
4002 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4004 * f-lang.c (f_language_defn): Use f_print_typedef.
4005 * f-lang.h (f_print_typedef): Declare.
4006 * f-typeprint.c (f_print_typedef): Define.
4008 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4010 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4012 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4014 * cli/cli-utils.c (info_print_options_defs): Delete.
4015 (make_info_print_options_def_group): Delete.
4016 (extract_info_print_options): Delete.
4017 (info_print_command_completer): Delete.
4018 (info_print_args_help): Add extra parameter, and optionally
4019 include text about -n flag.
4020 * cli/cli-utils.h (struct info_print_options): Delete.
4021 (extract_info_print_options): Delete declaration.
4022 (info_print_command_completer): Delete declaration.
4023 (info_print_args_help): Add extra parameter, extend header
4025 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4027 * stack.c (struct info_print_options): New type.
4028 (info_print_options_defs): New file scoped variable.
4029 (make_info_print_options_def_group): New static function.
4030 (info_print_command_completer): New static function.
4031 (info_locals_command): Update to use new local functions.
4032 (info_args_command): Likewise.
4033 (_initialize_stack): Add extra parameter to calls to
4034 info_print_args_help.
4035 * symtab.c (search_symbols): Add extra parameter, use this to
4036 possibly excluse non-debug symbols.
4037 (symtab_symbol_info): Add extra parameter, which is passed on to
4039 (struct info_print_options): New type.
4040 (info_print_options_defs): New file scoped variable.
4041 (make_info_print_options_def_group): New static function.
4042 (info_print_command_completer): New static function.
4043 (info_variables_command): Update to use local functions, and pass
4044 extra parameter through to symtab_symbol_info.
4045 (info_functions_command): Likewise.
4046 (info_types_command): Pass additional argument through to
4048 (rbreak_command): Pass extra argument to search_symbols.
4049 (_initialize_symtab): Add extra arguments for calls to
4050 info_print_args_help, and update help text for 'info variables',
4051 'whereis', and 'info functions' commands.
4052 * symtab.h (search_symbols): Add extra argument to declaration.
4053 * NEWS: Mention new flags.
4055 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4057 * symtab.c (lookup_static_symbol): Call the new function (and move
4058 it down to be next to lookup_global_symbol).
4059 (struct global_sym_lookup_data): Add block_enum member and rename to...
4060 (struct global_or_static_sym_lookup_data): ...this.
4061 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4062 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4063 (lookup_symbol_global_or_static_iterator_cb): ...this.
4064 (lookup_global_or_static_symbol): New function.
4065 (lookup_global_symbol): Call new function.
4067 2019-08-26 Tom de Vries <tdevries@suse.de>
4070 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4071 when pc_probe.prob == NULL.
4073 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4075 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4076 variable symbol_linkage to symbol_linkage_.
4078 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4080 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4081 represent whether the symbol is static, dynamic, or we don't
4084 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4086 * gdb/rx-tdep.c (rx_register_names): New.
4087 (rx_register_name): Delete.
4088 (rx_psw_type): Delete.
4089 (rx_fpsw_type): Delete.
4090 (rx_register_type): Delete.
4091 (rx_gdbarch_init): Convert target-descriptions.
4092 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4093 * gdb/features/Makefile: Add rx.xml.
4094 * gdb/features/rx.xml: New.
4095 * gdb/features/rx.c: Generated.
4096 * gdb/NEWS: Mention target description support.
4098 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4100 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4103 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4105 * configure.ac: Don't check for 'dlfcn.h' (moved to
4106 gdbsupport/common.m4).
4107 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4109 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4110 * compile/compile-c-support.c: Include
4111 'gdbsupport/gdb-dlfcn.h'.
4112 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4113 * gdb-dlfcn.c: Move to...
4114 * gdbsupport/gdb-dlfcn.c: ... here.
4115 * gdb-dlfcn.h: Move to...
4116 * gdbsupport/gdb-dlfcn.h: ... here.
4118 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4120 * nios2-tdep.c (struct reg_value): Improve comments. Make
4121 the offset field signed.
4123 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4125 * python/lib/gdb/__init__.py (_execute_file): New function.
4126 * python/python.c (python_run_simple_file): Call gdb._execute_file
4129 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4131 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4132 all uses as this was never set to anything but a zero value.
4134 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4136 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4138 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4140 * tui/tui-data.h (tui_gen_win_info): Add an =default
4141 move constructor, required by some GCC versions.
4143 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4145 * go32-nat.c (go32_sysinfo): Add hygon_p.
4147 2019-08-20 Tom Tromey <tom@tromey.com>
4149 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4150 line_from_reg_element_no, first_reg_element_no_inline,
4151 display_all_data, delete_data_content_windows,
4152 erase_data_content>: Now private.
4154 2019-08-20 Tom Tromey <tom@tromey.com>
4156 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4157 (tui_unhighlight_win, tui_highlight_win)
4158 (tui_win_info::make_window): Update.
4159 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4161 2019-08-20 Tom Tromey <tom@tromey.com>
4163 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4164 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4165 (MAX_PID_WIDTH): Move to tui-stack.c.
4166 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4167 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4168 (MAX_PID_WIDTH): Move from tui-data.h.
4170 2019-08-20 Tom Tromey <tom@tromey.com>
4172 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4173 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4175 (tui_gen_win_info::make_window): Rename from tui_make_window.
4176 (tui_win_info::make_window): New method.
4177 (tui_gen_win_info::make_visible): Update.
4178 * tui/tui-source.c (tui_source_window::set_contents): Update.
4179 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4180 (tui_data_window::display_registers_from): Update.
4181 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4182 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4186 (struct tui_win_info) <make_window>: Declare.
4187 <can_box>: Now virtual.
4188 <title>: New member.
4189 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4190 * tui/tui-command.c (tui_cmd_window::resize): Update.
4192 2019-08-20 Tom Tromey <tom@tromey.com>
4194 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4195 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4196 (tui_data_window::check_register_values): Update.
4198 2019-08-20 Tom Tromey <tom@tromey.com>
4200 * tui/tui-regs.h (struct tui_data_window): Use
4201 DISABLE_COPY_AND_ASSIGN.
4202 <regs_content>: Change type, removing unique_ptr.
4203 <tui_data_window>: Add move constructor.
4204 * tui/tui-regs.c (tui_data_window::show_registers)
4205 (tui_data_window::show_register_group)
4206 (tui_data_window::display_registers_from)
4207 (tui_data_window::display_registers_from)
4208 (tui_data_window::first_data_item_displayed)
4209 (tui_data_window::delete_data_content_windows)
4210 (tui_data_window::rerender, tui_data_window::refresh_window)
4211 (tui_data_window::check_register_values): Update.
4213 2019-08-20 Tom Tromey <tom@tromey.com>
4215 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4216 show_register_group>: Declare.
4217 (tui_show_register_group): Don't declare.
4218 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4220 (tui_data_window::show_register_group): Rename from
4221 tui_show_register_group.
4222 (tui_data_window::check_register_values, tui_reg_command):
4224 * tui/tui-layout.c (tui_set_layout): Update.
4226 2019-08-20 Tom Tromey <tom@tromey.com>
4228 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4230 (tui_check_register_values): Don't declare.
4231 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4232 from tui_check_register_values.
4233 * tui/tui-hooks.c (tui_register_changed): Update.
4235 2019-08-20 Tom Tromey <tom@tromey.com>
4237 * tui/tui-regs.c (tui_reg_layout): Move later.
4238 (tui_show_registers): Don't enable TUI mode or change layout.
4240 2019-08-20 Tom Tromey <tom@tromey.com>
4242 * tui/tui-regs.h (struct tui_data_item_window)
4243 <~tui_data_item_window>: Remove.
4244 <content>: Now a unique_xmalloc_ptr.
4245 * tui/tui-regs.c (tui_register_format): Return a
4247 (tui_get_register): Update.
4248 (~tui_data_item_window): Remove.
4249 (tui_data_window::display_registers_from, tui_display_register):
4251 * tui/tui-io.h (tui_expand_tabs): Update.
4252 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4253 Remove "col" parameter.
4255 2019-08-20 Tom Tromey <tom@tromey.com>
4257 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4259 * tui/tui-regs.c (~tui_data_item_window): Update.
4261 2019-08-20 Tom Tromey <tom@tromey.com>
4263 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4266 2019-08-20 Tom Tromey <tom@tromey.com>
4268 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4270 2019-08-20 Tom Tromey <tom@tromey.com>
4272 * tui/tui-source.h (struct tui_source_window): Update.
4273 * tui/tui-regs.c (tui_show_registers): Update.
4274 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4275 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4276 (NO_REGS_STRING): Remove defines.
4278 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4280 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4281 unnecessary thread walk if remote doesn't support the packet.
4283 2019-08-19 Tom Tromey <tromey@adacore.com>
4285 * python/py-value.c (value_has_field): Fix indentation.
4287 2019-08-19 Tom Tromey <tromey@adacore.com>
4289 * printcmd.c (do_one_display, info_display_command): Update.
4290 * block.h (contained_in): Return bool. Add allow_nested
4292 * block.c (contained_in): Return bool. Add allow_nested
4295 2019-08-19 Tom Tromey <tom@tromey.com>
4297 * configure: Rebuild.
4298 * configure.ac: Disallow the combination of -static-libstdc++ and
4300 * source-cache.c (get_language_name): Handle rust.
4301 (source_cache::get_source_lines): Ignore highlighting exceptions.
4303 2019-08-16 Tom Tromey <tom@tromey.com>
4305 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4306 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4307 (struct tui_source_window_base) <make_visible, refresh_window,
4308 resize>: Remove methods.
4309 <execution_info>: Remove field.
4310 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4311 (tui_show_source_line, tui_source_window_base)
4312 (~tui_source_window_base): Update.
4313 (tui_source_window_base::resize)
4314 (tui_source_window_base::make_visible)
4315 (tui_source_window_base::refresh_window): Remove.
4316 (tui_source_window_base::update_exec_info): Update.
4317 * tui/tui-source.c (tui_source_window::set_contents): Update.
4318 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4320 2019-08-16 Tom Tromey <tom@tromey.com>
4322 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4323 deprecated_query_hook.
4325 2019-08-16 Tom Tromey <tom@tromey.com>
4327 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4328 (tui_update_source_windows_with_line): Update.
4329 * tui/tui-source.h (struct tui_source_window)
4330 <show_symtab_source>: Declare.
4331 (tui_show_symtab_source): Don't declare.
4332 * tui/tui-source.c (tui_show_symtab_source): Rename from
4333 tui_show_symtab_source.
4335 2019-08-16 Tom Tromey <tom@tromey.com>
4337 * tui/tui-winsource.h (struct tui_source_window_base)
4338 <set_contents>: Declare.
4339 * tui/tui-winsource.c
4340 (tui_source_window_base::update_source_window_as_is): Update.
4341 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4343 (tui_set_source_content): Don't declare.
4344 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4345 tui_set_source_content.
4346 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4348 (tui_set_disassem_content): Don't declare.
4349 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4350 tui_set_disassem_content.
4352 2019-08-16 Tom Tromey <tom@tromey.com>
4354 * tui/tui-winsource.h (struct tui_source_window_base)
4355 <update_breakpoint_info>: Declare.
4356 (tui_update_breakpoint_info): Don't declare.
4357 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4358 (tui_update_all_breakpoint_info): Update.
4359 (tui_source_window_base::update_breakpoint_info): Rename from
4360 tui_update_breakpoint_info.
4361 (tui_source_window_base::update_exec_info): Update.
4363 2019-08-16 Tom Tromey <tom@tromey.com>
4365 * tui/tui-winsource.h (struct tui_source_window_base)
4366 <update_source_window>: Declare.
4367 (tui_update_source_window): Don't declare.
4368 * tui/tui-winsource.c
4369 (tui_source_window_base::update_source_window): Rename from
4370 tui_update_source_window.
4371 (tui_source_window_base::rerender): Update.
4372 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4373 * tui/tui-disasm.c (tui_show_disassem)
4374 (tui_show_disassem_and_update_source)
4375 (tui_disasm_window::maybe_update): Update.
4377 2019-08-16 Tom Tromey <tom@tromey.com>
4379 * tui/tui-winsource.h (struct tui_source_window_base)
4380 <update_source_window_as_is>: Declare.
4381 (tui_update_source_window_as_is): Don't declare.
4382 * tui/tui-winsource.c (tui_update_source_window): Update
4383 (tui_source_window_base::update_source_window_as_is): Rename from
4384 tui_update_source_window_as_is.
4385 (tui_source_window_base::refill): Update.
4386 * tui/tui-source.c (tui_show_symtab_source): Update.
4387 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4390 2019-08-16 Tom Tromey <tom@tromey.com>
4392 * tui/tui-winsource.h (tui_update_source_window)
4393 (tui_update_source_window_as_is): Remove "noerror" parameter.
4394 * tui/tui-winsource.c (tui_update_source_window)
4395 (tui_update_source_window_as_is): Remove "noerror" parameter.
4396 (tui_update_source_windows_with_addr)
4397 (tui_update_source_windows_with_line)
4398 (tui_source_window_base::rerender)
4399 (tui_source_window_base::refill): Update.
4400 * tui/tui-source.h (tui_set_source_content)
4401 (tui_show_symtab_source): Remove "noerror" parameter.
4402 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4404 (tui_show_symtab_source): Likewise.
4405 (tui_source_window::maybe_update): Update.
4406 * tui/tui-disasm.c (tui_show_disassem)
4407 (tui_show_disassem_and_update_source)
4408 (tui_disasm_window::do_scroll_vertical)
4409 (tui_disasm_window::maybe_update): Update.
4411 2019-08-16 Tom Tromey <tom@tromey.com>
4413 * tui/tui.c (tui_is_window_visible): Update.
4414 * tui/tui-wingeneral.c (tui_make_window)
4415 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4416 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4417 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4418 (tui_set_win_height_command, parse_scrolling_args): Update.
4419 * tui/tui-source.c (tui_source_window::style_changed): Update.
4420 * tui/tui-regs.c (tui_show_registers)
4421 (tui_data_window::first_data_item_displayed)
4422 (tui_data_window::delete_data_content_windows)
4423 (tui_check_register_values, tui_reg_command): Update.
4424 * tui/tui-disasm.c (tui_show_disassem): Update.
4425 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4427 <is_visible>: Remove field.
4428 * tui/tui-data.c (tui_next_win, tui_prev_win)
4429 (tui_delete_invisible_windows): Update.
4431 2019-08-16 Tom Tromey <tom@tromey.com>
4433 * tui/tui-winsource.h (struct tui_source_window_base)
4434 <m_has_locator>: Remove.
4435 * tui/tui-layout.c (show_source_disasm_command, show_data)
4436 (show_source_or_disasm_and_command): Update.
4438 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4440 * NEWS (Other MI changes): New subsection.
4441 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4442 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4443 * arch-utils.c (default_get_pc_address_flags): New function.
4444 * arch-utils.h (default_get_pc_address_flags): New declaration.
4445 * gdbarch.sh: Add get_pc_address_flags.
4446 * gdbarch.c: Regenerate.
4447 * gdbarch.h: Likewise.
4448 * stack.c (print_pc): New function.
4449 (print_frame_info) (print_frame): Call print_pc.
4451 2019-08-16 Tom de Vries <tdevries@suse.de>
4453 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4454 print_objfile_section_info.
4456 2019-08-15 Tom Tromey <tom@tromey.com>
4458 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4459 calling update_cmdwin_start_line.
4460 * tui/tui-winsource.h (struct tui_source_window_base)
4461 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4462 <rerender>: Declare.
4463 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4465 (tui_source_window_base::set_new_height): Remove.
4466 (tui_source_window_base::rerender): Rename from
4467 do_make_visible_with_new_height.
4468 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4470 (tui_win_info::make_invisible_and_set_new_height)
4471 (tui_win_info::make_visible_with_new_height): Remove.
4472 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4474 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4475 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4476 do_make_visible_with_new_height>: Don't declare.
4477 <rerender>: Declare.
4478 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4480 (tui_data_window::do_make_visible_with_new_height): Remove.
4481 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4482 call tui_show_locator_content.
4483 (tui_gen_win_info::resize): Call rerender.
4484 (show_source_or_disasm_and_command): Don't call
4485 tui_show_locator_content.
4486 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4488 (struct tui_win_info) <rerender>: Declare.
4489 <set_new_height, make_invisible_and_set_new_height,
4490 make_visible_with_new_height>: Don't declare.
4491 * tui/tui-data.c (tui_win_list::rerender): New method.
4492 * tui/tui-command.h (struct tui_cmd_window)
4493 <do_make_visible_with_new_height>: Don't declare.
4495 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4497 2019-08-15 Tom Tromey <tromey@adacore.com>
4499 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4500 * ada-lang.c (ada_enum_name): Likewise.
4502 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4504 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4506 (GdbOutputErrorFile): Likewise.
4507 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4509 (execute_unwinders): Rename to have a leading underscore.
4510 (auto_load_packages): Likewise.
4511 (global scope): Adjust call to auto_load_packages accordingly.
4512 (GdbSetPythonDirectory): Likewise.
4513 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4514 instead of execute_unwinders.
4516 2019-08-15 Tom Tromey <tom@tromey.com>
4518 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4519 (show_data): Don't change window visibility.
4520 (tui_gen_win_info::resize): Remove special case for command
4521 window. Use wresize, when available.
4522 (show_source_or_disasm_and_command): Don't change window
4524 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4525 <make_visible>: New method.
4526 * tui/tui-command.c (tui_cmd_window::resize): New method.
4528 2019-08-15 Tom Tromey <tom@tromey.com>
4530 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4531 (struct tui_source_windows): New.
4532 * tui/tui-winsource.c (tui_display_main): Update.
4533 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4534 (new_height_ok, parse_scrolling_args): Update.
4535 * tui/tui-layout.c (show_layout, show_data): Update.
4536 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4537 (tui_add_to_source_windows): Don't declare.
4538 * tui/tui-data.c (source_windows, tui_source_windows)
4539 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4541 2019-08-15 Tom Tromey <tom@tromey.com>
4543 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4545 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4546 * tui/tui-layout.c (show_source_disasm_command, show_data):
4548 (tui_gen_win_info::resize): Rename.
4549 (show_source_or_disasm_and_command): Update.
4550 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4553 2019-08-15 Tom Tromey <tom@tromey.com>
4555 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4556 * tui/tui-interp.c (tui_interp::init): Don't call
4557 tui_initialize_static_data.
4558 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4560 2019-08-15 Tom Tromey <tom@tromey.com>
4562 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4563 examine tui_win_list.
4565 2019-08-15 Tom Tromey <tom@tromey.com>
4567 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4568 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4569 tui_clear_source_content.
4570 (tui_clear_source_content): Remove.
4571 (tui_source_window_base::do_erase_source_content): Hoist call to
4573 * tui/tui-stack.c (tui_show_frame_info): Don't call
4574 tui_clear_source_content.
4576 2019-08-15 Tom Tromey <tom@tromey.com>
4578 * tui/tui-winsource.h (struct tui_source_window_base)
4579 <do_erase_source_content>: New method.
4580 <erase_source_content>: New method.
4581 (tui_erase_source_content): Don't declare.
4582 * tui/tui-winsource.c (tui_clear_source_content): Update.
4583 (tui_source_window_base::do_erase_source_content): Rename from
4584 tui_erase_source_content.
4585 (tui_source_window_base::show_source_content): Update.
4586 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4587 * tui/tui-source.h (struct tui_source_window)
4588 <erase_source_content>: New method.
4589 * tui/tui-disasm.h (struct tui_disasm_window)
4590 <erase_source_content>: New method.
4592 2019-08-15 Tom Tromey <tom@tromey.com>
4594 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4595 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4597 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4598 * tui/tui-source.c (tui_set_source_content): Update.
4599 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4601 2019-08-15 Tom Tromey <tom@tromey.com>
4603 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4604 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4606 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4608 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4610 (tui_source_window::maybe_update): Update.
4612 2019-08-15 Tom Tromey <tom@tromey.com>
4614 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4615 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4617 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4619 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4621 (tui_disasm_window::maybe_update): Update.
4623 2019-08-15 Tom Tromey <tom@tromey.com>
4625 * tui/tui-winsource.h (struct tui_source_window_base)
4626 <maybe_update>: Declare.
4627 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4629 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4631 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4632 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4634 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4636 2019-08-15 Tom Tromey <tom@tromey.com>
4638 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4640 2019-08-15 Tom Tromey <tom@tromey.com>
4642 * tui/tui-wingeneral.c: Include tui-stack.h.
4643 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4644 (struct tui_locator_window): Move from tui-data.h.
4645 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4646 (tui_initialize_static_data): Move from tui-data.c.
4647 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4648 (struct tui_locator_window): Move to tui-stack.c.
4649 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4650 (tui_initialize_static_data): Move to tui-stack.c.
4652 2019-08-15 Tom Tromey <tom@tromey.com>
4654 * tui/tui-layout.c (show_source_disasm_command)
4655 (show_source_or_disasm_and_command): Use make_visible method, not
4657 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4660 2019-08-15 Tom Tromey <tom@tromey.com>
4662 * tui/tui-wingeneral.h (tui_make_window): Update.
4663 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4665 (tui_gen_win_info::make_visible): Update.
4666 * tui/tui-regs.c (tui_data_window::display_registers_from):
4668 * tui/tui-layout.c (show_source_disasm_command)
4669 (show_source_or_disasm_and_command): Update.
4670 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4671 (enum tui_box): Remove.
4672 (struct tui_win_info) <can_box>: New method.
4673 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4676 2019-08-15 Tom de Vries <tdevries@suse.de>
4678 * linux-nat-trad.c: Include gdbarch.h.
4680 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4682 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4685 2019-08-14 Tom Tromey <tromey@adacore.com>
4687 * darwin-nat.c: Include gdbarch.h.
4688 * darwin-nat-info.c: Include gdbarch.h.
4690 2019-08-13 Tom Tromey <tom@tromey.com>
4692 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4694 * tui/tui-data.c (tui_initialize_static_data): Update.
4696 2019-08-13 Tom Tromey <tom@tromey.com>
4698 * tui/tui-winsource.h (struct tui_exec_info_window)
4699 <~tui_exec_info_window, maybe_allocate_content, get_content,
4701 (struct tui_source_window_base) <set_exec_info_content,
4702 show_exec_info_content>: Don't declare.
4703 * tui/tui-winsource.c
4704 (tui_exec_info_window::maybe_allocate_content): Remove.
4705 (tui_source_window_base::update_exec_info): Rename from
4706 set_exec_info_content.
4707 (tui_source_window_base::show_exec_info_content)
4708 (tui_source_window_base::update_exec_info): Remove.
4710 2019-08-13 Tom Tromey <tom@tromey.com>
4712 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4714 * tui/tui-winsource.c (tui_update_source_window_as_is)
4715 (tui_update_source_windows_with_addr, tui_erase_source_content):
4717 (tui_clear_exec_info_content): Remove.
4719 2019-08-13 Tom Tromey <tom@tromey.com>
4721 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4723 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4724 call tui_erase_exec_info_content.
4725 (tui_clear_exec_info_content): Rename from
4726 tui_erase_exec_info_content.
4727 (tui_clear_exec_info_content): Delete.
4729 2019-08-13 Tom Tromey <tom@tromey.com>
4731 * tui/tui-winsource.h (struct tui_source_window_base)
4732 <show_exec_info_content>: Declare.
4733 (tui_show_exec_info_content): Don't declare.
4734 * tui/tui-winsource.c
4735 (tui_source_window_base::show_exec_info_content): Rename from
4736 tui_show_exec_info_content.
4737 (tui_source_window_base::update_exec_info): Update.
4739 2019-08-13 Tom Tromey <tom@tromey.com>
4741 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4742 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4743 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4744 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4745 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4746 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4749 2019-08-13 Tom Tromey <tom@tromey.com>
4751 * tui/tui-winsource.h (struct tui_source_window_base)
4752 <update_exec_info>: Declare.
4753 (tui_update_exec_info): Don't declare.
4754 * tui/tui-winsource.c (tui_update_source_window_as_is)
4755 (tui_source_window_base::refresh_all)
4756 (tui_update_all_breakpoint_info): Update.
4757 (tui_source_window_base::update_exec_info): Rename from
4758 tui_update_exec_info.
4759 * tui/tui-stack.c (tui_show_frame_info): Update.
4761 2019-08-13 Tom Tromey <tom@tromey.com>
4763 * tui/tui-winsource.h (struct tui_source_window_base)
4764 <set_exec_info_content>: Declare.
4765 (tui_set_exec_info_content): Don't declare.
4766 * tui/tui-winsource.c
4767 (tui_source_window_base::set_exec_info_content): Rename from
4768 tui_set_exec_info_content.
4769 (tui_update_exec_info): Update.
4771 2019-08-13 Tom Tromey <tom@tromey.com>
4773 * tui/tui-winsource.h (struct tui_source_window_base)
4774 <show_source_content>: Declare.
4775 (tui_show_source_content): Don't declare.
4776 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4777 (tui_source_window_base::show_source_content): Rename from
4778 tui_show_source_content.
4779 (tui_source_window_base::refresh_all): Update.
4780 * tui/tui-layout.c (show_source_disasm_command)
4781 (show_source_or_disasm_and_command): Update.
4783 2019-08-13 Tom Tromey <tom@tromey.com>
4785 * tui/tui-winsource.c (tui_erase_source_content)
4786 (tui_show_source_content, tui_source_window_base::refresh_all):
4788 * tui/tui-wingeneral.h
4789 (tui_check_and_display_highlight_if_needed): Don't declare.
4790 * tui/tui-wingeneral.c
4791 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4792 check_and_display_highlight_if_needed.
4793 * tui/tui-win.c (tui_rehighlight_all)
4794 (tui_win_info::make_visible_with_new_height): Update.
4795 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4796 (tui_data_window::erase_data_content)
4797 (tui_data_window::display_all_data): Update.
4798 * tui/tui-data.h (struct tui_win_info)
4799 <check_and_display_highlight_if_needed>: Declare.
4801 2019-08-13 Tom Tromey <tom@tromey.com>
4803 * tui/tui-win.c (tui_resize_all): Call
4804 tui_delete_invisible_windows.
4805 * tui/tui-layout.c (show_layout): Call
4806 tui_delete_invisible_windows.
4807 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4808 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4810 2019-08-13 Tom Tromey <tom@tromey.com>
4812 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4813 tui_add_win_to_layout.
4815 2019-08-13 Tom Tromey <tom@tromey.com>
4817 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4818 * tui/tui-layout.c (tui_default_win_height): Now static.
4820 2019-08-13 Tom Tromey <tom@tromey.com>
4822 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4824 (show_source_disasm_command, show_source_or_disasm_and_command):
4825 Don't check current layout.
4827 2019-08-13 Tom Tromey <tom@tromey.com>
4829 * tui/tui-wingeneral.c (make_all_visible): Remove.
4830 (tui_make_all_invisible): Simplify.
4831 * tui/tui-layout.c (tui_make_all_invisible): Move from
4832 tui-wingeneral.c; simplify.
4833 (show_layout): Hoist call to tui_make_all_invisible.
4834 (show_data): Don't call tui_make_all_invisible.
4836 2019-08-13 Tom Tromey <tom@tromey.com>
4838 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4839 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4841 2019-08-13 Tom Tromey <tom@tromey.com>
4843 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4845 (show_source_disasm_command, show_data)
4846 (show_source_or_disasm_and_command): Don't use
4847 tui_set_current_layout_to.
4848 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4849 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4851 (tui_set_current_layout_to): Remove.
4853 2019-08-13 Tom Tromey <tom@tromey.com>
4855 * tui/tui-layout.c (tui_set_layout): Update.
4856 * tui/tui-data.h (struct tui_layout_def): Remove.
4857 (tui_layout_def): Don't declare.
4858 * tui/tui-data.c (layout_def): Remove.
4859 (tui_layout_def): Remove.
4861 2019-08-13 Tom Tromey <tom@tromey.com>
4863 * tui/tui-winsource.h (struct tui_source_window_base)
4864 <clear_detail>: No longer "override".
4865 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4866 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4867 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4868 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4870 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4872 2019-08-13 Tom Tromey <tromey@adacore.com>
4874 * tracepoint.c: Don't include readline.h or history.h.
4876 2019-08-12 Tom Tromey <tom@tromey.com>
4878 * configure: Rebuild.
4879 * configure.ac: Check for readline 7.
4880 * NEWS: Mention readline 7 requirement.
4883 2019-08-12 Tom Tromey <tom@tromey.com>
4885 * mingw-hdep.c (gdb_select): Remove readline hack.
4887 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4889 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4890 when the function fails.
4892 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4894 * s390-tdep.c (s390_type_align): New function.
4895 (s390_gdbarch_init): Set it as type_align gdbarch method.
4897 2019-08-09 Tom de Vries <tdevries@suse.de>
4900 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4901 pc_low with relocation offset.
4903 2019-08-07 Tom Tromey <tromey@adacore.com>
4905 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4906 (print_frame_args): Update.
4907 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4909 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4910 * frame.h (struct frame_arg): Add initializers.
4911 <error>: Now a unique_xmalloc_ptr.
4913 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4915 * NEWS: Expand the Pointer Authentication entry.
4916 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4917 (aarch64_frame_unmask_lr): ... to this.
4918 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4919 Call aarch64_frame_unmask_lr.
4920 * frame.c (struct frame_info): Add "masked" variable.
4921 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4922 (fprint_frame): Check for masked pc.
4923 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4925 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4926 * stack.c (print_frame): Check for masked pc.
4928 2019-08-06 Tom Tromey <tom@tromey.com>
4930 * stabsread.c (patch_block_stabs, read_one_struct_field)
4931 (read_enum_type): Use obstack_strndup.
4932 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4933 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4934 * dwarf2read.c (guess_full_die_structure_name)
4935 (anonymous_struct_prefix): Use obstack_strndup.
4936 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4937 * c-exp.y (yylex): Use obstack_strndup.
4938 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4939 (write_var_or_type): Use obstack_strndup.
4941 2019-08-06 Tom Tromey <tom@tromey.com>
4943 * symfile.c (reread_symbols): Use obstack_strdup.
4944 * stabsread.c (read_type): Use obstack_strdup.
4945 * gdb_obstack.h (obstack_strdup): New overload.
4946 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4947 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4948 (dwarf2_canonicalize_name): Use obstack_strdup.
4949 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4950 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4953 2019-08-06 Tom Tromey <tom@tromey.com>
4955 * gdb_obstack.h (obstack_strdup): Define.
4956 * gdb_obstack.c (obstack_strdup): Don't define.
4958 2019-08-06 Tom Tromey <tom@tromey.com>
4960 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4962 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4964 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4965 * stabsread.c (common_block_start): Use obstack_strdup.
4966 * objfiles.c (set_objfile_main_name, objfile): Use
4968 * namespace.c (add_using_directive): Use obstack_strdup.
4969 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4970 * jit.c (finalize_symtab): Use obstack_strdup.
4971 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4972 (guess_partial_die_structure_name, partial_die_info::fixup)
4973 (dwarf2_name): Use obstack_strdup.
4974 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4976 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4977 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4979 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4981 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4983 * unittests/help-doc-selftests.c: New file.
4984 * Makefile.in: Add the new file.
4986 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4988 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4989 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4990 the full first line, except when FOR_VALUE_PREFIX. In this case,
4991 the trailing '.' is not output, and the first character is uppercased.
4992 (print_help_for_command): Update call to print_doc_line.
4993 (print_doc_of_command): Likewise.
4994 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4995 * cli/cli-option.c (append_indented_doc): Do not append newline.
4996 (build_help_option): Append newline after first appended_indented_doc
4997 only if a second call is done.
4998 (build_help): Append 2 new lines before each option, except the first
5000 * compile/compile.c (_initialize_compile): Add new lines after
5001 %OPTIONS%, when not at the end of the help.
5002 Change help doc or code
5003 producing the help doc to respect the invariants.
5004 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5005 Also removed the new line after 'Options:', as all other commands
5006 do not put an empty line between 'Options:' and the first option.
5007 * printcmd.c (_initialize_printcmd): Likewise.
5008 * stack.c (_initialize_stack): Likewise.
5009 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5010 incorrectly telling COMMAND is optional.
5011 * ada-lang.c (_initialize_ada_language): Change help doc or code
5012 producing the help doc to respect the invariants.
5013 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5014 * breakpoint.c (_initialize_breakpoint): Likewise.
5015 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5016 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5017 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5018 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5019 _initialize_cli_style): Likewise.
5020 * corelow.c (core_target_info): Likewise.
5021 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5022 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5023 * filesystem.c (_initialize_filesystem): Likewise.
5024 * frame.c (_initialize_frame): Likewise.
5025 * gnu-nat.c (add_task_commands): Likewise.
5026 * infcall.c (_initialize_infcall): Likewise.
5027 * infcmd.c (_initialize_infcmd): Likewise.
5028 * interps.c (_initialize_interpreter): Likewise.
5029 * language.c (_initialize_language): Likewise.
5030 * linux-fork.c (_initialize_linux_fork): Likewise.
5031 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5032 * maint.c (_initialize_maint_cmds): Likewise.
5033 * memattr.c (_initialize_mem): Likewise.
5034 * printcmd.c (_initialize_printcmd): Likewise.
5035 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5037 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5038 * record-btrace.c (_initialize_record_btrace): Likewise.
5039 * record-full.c (_initialize_record_full): Likewise.
5040 * record.c (_initialize_record): Likewise.
5041 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5042 * regcache.c (_initialize_regcache): Likewise.
5043 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5044 _initialize_remote): Likewise.
5045 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5046 * serial.c (_initialize_serial): Likewise.
5047 * skip.c (_initialize_step_skip): Likewise.
5048 * source.c (_initialize_source): Likewise.
5049 * stack.c (_initialize_stack): Likewise.
5050 * symfile.c (_initialize_symfile): Likewise.
5051 * symtab.c (_initialize_symtab): Likewise.
5052 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5053 * top.c (init_main): Likewise.
5054 * tracefile-tfile.c (tfile_target_info): Likewise.
5055 * tracepoint.c (_initialize_tracepoint): Likewise.
5056 * tui/tui-win.c (_initialize_tui_win): Likewise.
5057 * utils.c (add_internal_problem_command): Likewise.
5058 * valprint.c (value_print_option_defs): Likewise.
5060 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5063 * configure.ac: Drop enable-libmcheck support.
5064 * configure, config.in: Rebuild.
5065 * libmcheck.m4: Remove.
5066 * acinclude.m4: Don't include it.
5067 * Makefile.in: Don't distribute it.
5068 * top.c (print_gdb_configuration): Don't mention it.
5070 2019-08-06 Tom Tromey <tom@tromey.com>
5072 * utils.c (set_output_style): Sometimes pass stream to
5074 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5075 * record-btrace.c (btrace_insn_history): Update.
5076 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5078 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5079 Update initializers.
5080 <m_uiout>: New field.
5082 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5083 Remove "uiout" parameter.
5084 (dump_insns): Update.
5085 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5086 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5088 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5090 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5091 (error_in_psymtab_expansion): Likewise.
5092 (lookup_symbol_via_quick_fns): Likewise.
5093 (basic_lookup_transparent_type_quick): Likewise.
5094 (basic_lookup_transparent_type_1): Likewise.
5096 2019-08-06 Tom Tromey <tromey@adacore.com>
5098 * source.c (last_source_error): Now bool.
5099 (print_source_lines_base): Make "noprint" bool. Only open
5100 source file when last_source_visited changes.
5102 2019-08-06 Tom Tromey <tromey@adacore.com>
5104 * annotate.c (annotate_source_line): Use g_source_cache.
5105 * source-cache.c (source_cache::get_plain_source_lines): Change
5106 parameters. Populate m_offset_cache.
5107 (source_cache::ensure): New method.
5108 (source_cache::get_line_charpos): New method.
5109 (extract_lines): Move lower. Change parameters.
5110 (source_cache::get_source_lines): Move lower.
5111 * source-cache.h (class source_cache): Update comment.
5112 <get_line_charpos>: New method.
5113 <get_source_lines>: Update comment.
5114 <clear>: Clear m_offset_cache.
5115 <get_plain_source_lines>: Change parameters.
5116 <ensure>: New method
5117 <m_offset_cache>: New member.
5118 * source.c (forget_cached_source_info_for_objfile): Update.
5119 (info_source_command): Use g_source_cache.
5120 (find_source_lines, open_source_file_with_line_charpos): Remove.
5121 (print_source_lines_base, search_command_helper): Use g_source_cache.
5122 * source.h (open_source_file_with_line_charpos): Don't declare.
5123 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5124 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5127 2019-08-06 Tom Tromey <tromey@adacore.com>
5129 * source-cache.c (source_cache::get_plain_source_lines):
5130 Remove "first_line" and "last_line" parameters.
5131 (source_cache::get_source_lines): Cache plain text.
5132 * source-cache.h (class source_cache)
5133 <get_plain_source_lines>: Update.
5135 2019-08-06 Tom Tromey <tromey@adacore.com>
5137 * source-cache.c (extract_lines): No longer a method.
5138 Changed type of parameter. Include final newline.
5139 (selftests::extract_lines_test): New function.
5140 (_initialize_source_cache): Likewise.
5141 * source-cache.h (class source_cache)
5142 <extract_lines>: Don't declare.
5144 2019-08-06 Tom Tromey <tromey@adacore.com>
5146 * breakpoint.c (init_breakpoint_sal): Update.
5147 (breakpoint): Update.
5148 * breakpoint.h (struct breakpoint) <filter>: Now a
5151 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5153 * NEWS: Mention dictionary access on blocks.
5154 * python/py-block.c (blpy_getitem): New function.
5155 (block_object_as_mapping): New struct.
5156 (block_object_type): Use new struct for tp_as_mapping field.
5158 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5160 * objfiles.h (objfile): Add a comment describing partial symbols.
5162 2019-08-05 Tom Tromey <tromey@adacore.com>
5164 * compile/compile.c (_initialize_compile): Use _(), not N_().
5165 * thread.c (_initialize_thread): Use _(), not N_().
5166 * stack.c (_initialize_stack): Use _(), not N_().
5167 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5169 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5171 * dwarf2read.c (struct dw2_symtab_iterator):
5172 <want_specific_block>: Remove.
5173 <block_index>: Change type to gdb::optional.
5174 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5175 change type of BLOCK_INDEX parameter to gdb::optional.
5176 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5177 (dw2_lookup_symbol): Don't pass argument for
5178 WANT_SPECIFIC_BLOCK.
5179 (dw2_expand_symtabs_for_function): Don't pass argument for
5180 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5181 (class dw2_debug_names_iterator)
5182 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5183 parameter, change BLOCK_INDEX type to gdb::optional.
5184 <m_want_specific_block>: Remove.
5185 <m_block_index>: Change type to gdb::optional.
5186 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5187 gdb::optional. Re-write in function of gdb::optional.
5188 (dw2_debug_names_lookup_symbol): Don't pass argument for
5189 WANT_SPECIFIC_BLOCK.
5190 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5191 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5194 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5196 * NEWS: Mention changes to "info sources" command.
5198 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5200 * symtab.c (filename_partial_match_opts): New struct type.
5201 (struct output_source_filename_data): New members
5202 regexp, c_regexp, partial_match.
5203 (output_source_filename): Use new members to decide to print file.
5204 (info_sources_option_defs): New variable.
5205 (make_info_sources_options_def_group, print_info_sources_header,
5206 info_sources_command_completer):
5208 (info_sources_command): Read new optional arguments.
5209 (_initialize_symtab): Update info sources help.
5211 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5213 * ada-lang.c (exception_support_info_v0): Renamed from...
5214 (default_exception_support_info): ... this. Create new
5216 (ada_has_this_exception_support): Look up catch_handlers_sym.
5217 (ada_exception_support_info_sniffer): Try v0 after default.
5219 2019-08-01 Tom Tromey <tromey@adacore.com>
5221 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5224 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5226 * s12z-tdep.c: Fix include path for s12z-opc.h.
5228 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5230 * NEWS: Require GNU make 3.82.
5232 2019-07-16 Tom Tromey <tom@tromey.com>
5234 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5237 2019-07-30 Tom Tromey <tromey@adacore.com>
5239 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5241 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5243 * printcmd.c (print_address_symbolic): Print negative offsets.
5244 (build_address_symbolic): Force signed arithmetic when computing
5247 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5249 PR/24474: Add a function to lookup static variables.
5250 * NEWS: Mention this new function.
5251 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5252 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5253 * python/python.c (python_GdbMethods): Add new function.
5255 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5257 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5258 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5259 (objfpy_lookup_static_symbol): New function.
5260 (objfile_object_methods): Add new functions.
5262 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5264 * NEWS: Mention 'set|show print frame-info'. Mention new
5265 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5266 backtrace argument. Mention that python frame filtering code
5267 is now consistent with what 'backtrace' command prints.
5269 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5271 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5273 (print_frame_info_auto, print_frame_info_source_line,
5274 print_frame_info_location, print_frame_info_source_and_location,
5275 print_frame_info_location_and_address, print_frame_info_short_location):
5277 (struct frame_print_options): New member print_frame_info.
5278 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5279 * stack.h (get_user_print_what_frame_info): New declaration.
5280 (frame_show_address): New declaration.
5281 * stack.c (print_frame_arguments_choices): New value 'presence'.
5282 (print_frame_info_auto, print_frame_info_source_line,
5283 print_frame_info_location, print_frame_info_source_and_location,
5284 print_frame_info_location_and_address, print_frame_info_short_location,
5285 print_frame_info_choices, print_frame_info_print_what): New definitions.
5286 (print_frame_args): Only print dots for args if print frame-arguments
5288 (frame_print_option_defs): New element for "frame-info".
5289 (get_user_print_what_frame_info): New function.
5290 (frame_show_address): Make non static. Move comment to stack.h.
5291 (print_frame_info_to_print_what): New function.
5292 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5293 to decide what to print.
5294 (backtrace_command_1): Handle the new print_frame_arguments_presence
5296 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5297 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5298 (py_print_frame): In non-mi mode, use LOCATION as default for
5299 print_what, similarly to frame information printed directly by
5300 backtrace command. Handle frame-info user option in non MI mode.
5302 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5304 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5305 Add case for debugging 32-bit target on 64-bit host. Revise
5308 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5310 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5311 instead of find_function_entry_range_from_pc.
5313 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5315 * stack.c (find_frame_funname): Remove code which preferred
5316 minsym over symtab sym in "certain pathological cases".
5318 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5319 parameter. Change type of "do_demangle" to bool.
5320 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5321 Pass suitable "prefer_sym_over_minsym" flag to
5322 build_address_symbolic(). Don't output "+" for negative offsets.
5323 * printcmd.c (print_address_symbolic): Update invocation of
5324 build_address_symbolic to include a "prefer_sym_over_minsym"
5326 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5327 Restrict cases in which use of minimal symbol is preferred to that
5328 of a found symbol. Update comments.
5330 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5331 for entry pc when entry pc is out of range for that FDE.
5333 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5336 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5339 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5341 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5342 this function's Python signature.
5345 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5347 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5348 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5349 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5350 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5351 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5354 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5356 * h8300-tdep.c (h8300_register_name_common): New.
5357 h8300_register_name): Use h8300_register_name_common.
5358 (h8300s_register_name): Likewise.
5359 (h8300sx_register_name): Likewise.
5360 (h8300h_register_nam): New.
5361 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5364 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5366 * arm-tdep.c (arm_skip_cmse_entry): New function.
5367 (arm_is_sgstubs_section): New function.
5368 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5370 2019-07-22 Tom Tromey <tom@tromey.com>
5372 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5375 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5377 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5380 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5382 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5383 so that GDB doesn't match any msymbols when searching in the
5385 (print_symbol_info): Print using typedef_print or type_print based
5386 on the type of the symbol. Add updated FIXME comment moved from...
5387 (_initialize_symtab): ... move and update FIXME comment to above.
5389 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5391 * NEWS: Mention adding -q option to "info types".
5392 * symtab.c (struct info_types_options): New struct.
5393 (info_types_options_defs): New variable.
5394 (make_info_types_options_def_group): New function.
5395 (info_types_command): Use gdb::option framework to parse options.
5396 (info_types_command_completer): New function.
5397 (_initialize_symtab): Extend the help text on "info types" and
5398 register command completer.
5400 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5402 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5403 (lookup_symbol_in_objfile): Change int to block_enum and add a
5404 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5406 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5408 * MAINTAINERS (Write After Approval): Add self.
5410 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5412 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5413 instruction to the dummy code region.
5415 2019-07-19 Tom Tromey <tromey@adacore.com>
5417 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5418 (ARGSUSED, PARAMS, __func__): Remove rules.
5420 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5422 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5423 * features/arm/arm-with-iwmmxt.c: Remove.
5424 * features/arm/arm-with-iwmmxt.xml: Remove.
5425 * features/arm/arm-with-m-fpa-layout.c: Remove.
5426 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5427 * features/arm/arm-with-m-vfp-d16.c: Remove.
5428 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5429 * features/arm/arm-with-m.c: Remove.
5430 * features/arm/arm-with-m.xml: Remove.
5431 * features/arm/arm-with-neon.c: Remove.
5432 * features/arm/arm-with-neon.xml: Remove.
5433 * features/arm/arm-with-vfpv2.c: Remove.
5434 * features/arm/arm-with-vfpv2.xml: Remove.
5435 * features/arm/arm-with-vfpv3.c: Remove.
5436 * features/arm/arm-with-vfpv3.xml: Remove.
5438 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5440 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5442 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5444 * arch/aarch32.c (aarch32_create_target_description): Create
5445 target descriptions using features.
5446 * arch/arm.c (arm_create_target_description)
5447 (arm_create_mprofile_target_description): Likewise.
5448 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5450 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5452 * Makefile.in: Add new files.
5453 * aarch32-tdep.c: New file.
5454 * aarch32-tdep.h: New file.
5455 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5456 Call aarch32_read_description.
5457 * arch/aarch32.c: New file.
5458 * arch/aarch32.h: New file.
5459 * arch/arm.c (arm_create_target_description)
5460 (arm_create_mprofile_target_description): New function.
5461 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5462 (arm_create_target_description)
5463 (arm_create_mprofile_target_description): New declaration.
5464 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5465 read_description functions.
5466 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5468 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5469 * arm-tdep.c (tdesc_arm_list): New variable.
5470 (arm_register_g_packet_guesses): Call create description functions.
5471 (arm_read_description) (arm_read_mprofile_description): New
5473 * arm-tdep.h (arm_read_description)
5474 (arm_read_mprofile_description): Add declaration.
5475 * configure.tgt: Add new files.
5477 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5479 * top.c (new_ui_command): Open specified terminal just once.
5481 2019-07-18 Tom Tromey <tromey@adacore.com>
5483 * symtab.c (main_name): Constify return type.
5484 * symfile.c (set_initial_language): Update.
5485 * symtab.h (main_name): Constify return type.
5487 2019-07-17 Tom Tromey <tom@tromey.com>
5489 * tui/tui-winsource.c (tui_update_source_window)
5490 (tui_update_source_window_as_is)
5491 (tui_update_source_windows_with_line): Remove return.
5492 * tui/tui-disasm.c (tui_show_disassem)
5493 (tui_show_disassem_and_update_source): Remove return.
5494 * tui/tui.c (tui_reset): Remove return.
5495 * tui/tui-wingeneral.c
5496 (tui_check_and_display_highlight_if_needed): Remove return.
5498 2019-07-17 Tom Tromey <tom@tromey.com>
5500 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5502 2019-07-17 Tom Tromey <tom@tromey.com>
5504 * tui/tui-winsource.h (struct tui_exec_info_window)
5505 (struct tui_source_window_base): Move from tui-data.h.
5506 * tui/tui-winsource.c: Move many method definitions from
5507 elsewhere. Remove "structuring" comments.
5508 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5509 (tui_source_window_base::refresh_window): Move to
5511 * tui/tui-win.c (tui_source_window_base::refresh_all)
5512 (tui_source_window_base::update_tab_width)
5513 (tui_source_window_base::set_new_height)
5514 (tui_source_window_base::do_make_visible_with_new_height): Move to
5516 * tui/tui-source.h: Update.
5517 * tui/tui-source.c (tui_source_window_base::reset): Move to
5519 * tui/tui-disasm.h: Update.
5520 * tui/tui-data.h (struct tui_exec_info_window): Move to
5522 (struct tui_source_window_base): Likewise.
5523 * tui/tui-data.c (tui_source_window_base::clear_detail)
5524 (tui_source_window_base, ~tui_source_window_base): Move to
5527 2019-07-17 Tom Tromey <tom@tromey.com>
5529 * tui/tui-win.c (tui_resize_all)
5530 (tui_source_window_base::update_tab_width)
5531 (tui_adjust_win_heights): Update.
5532 (tui_win_info::make_invisible_and_set_new_height): Rename from
5533 make_invisible_and_set_new_height.
5534 * tui/tui-data.h (struct tui_win_info)
5535 <make_invisible_and_set_new_height>: New method.
5537 2019-07-17 Tom Tromey <tom@tromey.com>
5539 * tui/tui.c: Update.
5540 * tui/tui-source.h (struct tui_source_window): Move from
5542 * tui/tui-layout.c: Update.
5543 * tui/tui-disasm.c: Update.
5544 * tui/tui-data.h (struct tui_source_window): Move to
5547 2019-07-17 Tom Tromey <tom@tromey.com>
5549 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5551 * tui/tui-data.h (struct tui_disasm_window): Move to
5554 2019-07-17 Tom Tromey <tom@tromey.com>
5556 * tui/tui-regs.h (struct tui_data_item_window): Move from
5558 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5559 * tui/tui-data.h (struct tui_data_item_window): Move to
5561 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5563 2019-07-17 Tom Tromey <tom@tromey.com>
5565 * tui/tui.c: Update.
5566 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5567 (tui_cmd_window::max_height): Move to tui-command.c.
5568 * tui/tui-layout.c: Update.
5569 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5570 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5572 * tui/tui-command.h (struct tui_cmd_window): Move from
5574 * tui/tui-command.c: Remove "structuring" comments.
5575 (tui_cmd_window::clear_detail)
5576 (tui_cmd_window::do_make_visible_with_new_height)
5577 (tui_cmd_window::max_height): Move from elsewhere.
5579 2019-07-17 Tom Tromey <tom@tromey.com>
5581 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5583 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5584 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5586 2019-07-17 Tom Tromey <tom@tromey.com>
5588 * tui/tui.c: Update.
5589 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5591 * tui/tui-windata.h: Remove file.
5592 * tui/tui-windata.c: Remove file.
5593 * tui/tui-win.c (tui_data_window::set_new_height)
5594 (tui_data_window::do_make_visible_with_new_height): Move to
5596 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5597 * tui/tui-regs.c: Remove "structuring" comments.
5598 (tui_data_window::first_data_item_displayed)
5599 (tui_data_window::delete_data_content_windows)
5600 (tui_data_window::erase_data_content)
5601 (tui_data_window::display_all_data)
5602 (tui_data_window::refresh_all)
5603 (tui_data_window::do_scroll_vertical)
5604 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5605 (tui_data_window::do_make_visible_with_new_height)
5606 (tui_data_window::refresh_window): Move from elsewhere.
5607 (_initialize_tui_regs): Move to end of file.
5608 * tui/tui-layout.c: Update.
5609 * tui/tui-hooks.c: Update.
5610 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5611 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5613 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5615 2019-07-17 Tom Tromey <tom@tromey.com>
5617 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5620 2019-07-17 Tom Tromey <tom@tromey.com>
5622 * tui/tui-win.c (tui_source_window_base::set_new_height)
5623 (tui_source_window_base::do_make_visible_with_new_height): Use
5624 m_has_locator field directly.
5625 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5627 (struct tui_source_window_base) <has_locator>: Likewise.
5629 2019-07-17 Tom Tromey <tom@tromey.com>
5631 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5633 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5635 * tui/tui-win.c (tui_source_window_base::set_new_height)
5636 (tui_source_window_base::set_new_height)
5637 (make_invisible_and_set_new_height)
5638 (tui_source_window_base::do_make_visible_with_new_height)
5639 (tui_source_window_base::do_make_visible_with_new_height):
5641 * tui/tui-layout.c (show_source_disasm_command, show_data)
5642 (show_source_or_disasm_and_command): Update.
5643 * tui/tui-layout.c (show_layout): Update.
5645 2019-07-17 Tom Tromey <tom@tromey.com>
5647 * tui/tui-layout.c (make_data_window): Remove.
5648 (show_data): Unify creation and re-initialization cases.
5650 2019-07-17 Tom Tromey <tom@tromey.com>
5652 * tui/tui-layout.c (make_source_window, make_disasm_window):
5654 (show_data): Unify creation and re-initialization cases.
5656 2019-07-17 Tom Tromey <tom@tromey.com>
5658 * tui/tui-layout.c (make_command_window): Remove.
5659 (show_source_disasm_command, show_source_or_disasm_and_command):
5660 Unify creation and re-initialization cases.
5662 2019-07-17 Tom Tromey <tom@tromey.com>
5664 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5665 creation and re-initialization cases.
5667 2019-07-17 Tom Tromey <tom@tromey.com>
5669 * tui/tui-regs.c (tui_get_register): Return void.
5671 2019-07-17 Tom Tromey <tom@tromey.com>
5673 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5676 2019-07-17 Tom Tromey <tom@tromey.com>
5678 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5681 2019-07-17 Tom Tromey <tom@tromey.com>
5683 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5684 * tui/tui-regs.c (tui_reg_layout): New function.
5685 (tui_show_registers, tui_reg_command): Use it.
5686 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5687 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5689 (tui_layout_command): Remove.
5691 2019-07-17 Tom Tromey <tom@tromey.com>
5693 * tui/tui-layout.h (tui/tui-layout): Return void.
5694 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5696 2019-07-17 Tom Tromey <tom@tromey.com>
5698 * tui/tui-layout.c (show_source_disasm_command, show_data):
5700 (reset_locator): Remove.
5701 (show_source_or_disasm_and_command): Update.
5703 2019-07-17 Tom Tromey <tom@tromey.com>
5705 * tui/tui-source.c (tui_source_window_base::reset): Remove
5707 * tui/tui-layout.c (make_command_window, make_source_window)
5708 (make_disasm_window, make_data_window)
5709 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5710 (reset_locator, show_source_or_disasm_and_command): Update.
5711 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5713 (struct tui_source_window_base) <reset>: Likewise.
5715 2019-07-17 Tom Tromey <tom@tromey.com>
5717 * tui/tui-layout.c (show_source_disasm_command): Use
5719 (reset_locator): New function.
5720 (init_and_make_win): Remove.
5721 (show_source_or_disasm_and_command): Use reset_locator.
5723 2019-07-17 Tom Tromey <tom@tromey.com>
5725 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5727 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5729 * tui/tui-source.c (tui_source_window_base::reset): New method.
5730 * tui/tui-layout.c (make_command_window): Don't call
5732 (make_source_window, make_disasm_window): Don't call
5733 make_source_or_disasm_window.
5734 (make_data_window): Don't call init_and_make_win. Change calling
5736 (show_source_disasm_command, show_data): Simplify.
5737 (make_source_or_disasm_window): Remove.
5738 (show_source_or_disasm_and_command): Simplify.
5739 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5740 (struct tui_source_window_base) <reset>: Likewise.
5741 <execution_info>: Remove initializer.
5742 * tui/tui-data.c (tui_source_window_base): Initialize
5745 2019-07-17 Tom Tromey <tom@tromey.com>
5747 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5750 2019-07-17 Tom Tromey <tom@tromey.com>
5752 * tui/tui.c (tui_rl_other_window): Update.
5753 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5754 superclass method first. Always iterate over regs_content.
5755 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5757 * tui/tui-win.c (tui_set_focus_command): Update.
5759 2019-07-17 Tom Tromey <tom@tromey.com>
5761 * tui/tui-win.c (tui_set_focus_command): Rename from
5762 tui_set_focus. Call tui_enable.
5763 (tui_set_focus_command): Remove.
5765 2019-07-17 Tom Tromey <tom@tromey.com>
5767 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5769 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5771 (tui_data_window::refresh_window): Call refresh_window on data
5772 items. Always call superclass refresh_window.
5773 (tui_win_info::refresh): Remove.
5774 (tui_source_window_base::refresh_window): Update.
5775 (tui_refresh_all): Update.
5776 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5778 (show_source_or_disasm_and_command): Likewise.
5779 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5780 (struct tui_source_window_base) <refresh>: Likewise.
5782 2019-07-17 Tom Tromey <tom@tromey.com>
5784 * tui/tui-winsource.c (tui_clear_source_content)
5785 (tui_show_source_content): Update.
5786 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5787 whether content is empty.
5788 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5791 2019-07-17 Tom Tromey <tom@tromey.com>
5793 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5795 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5796 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5798 2019-07-17 Tom Tromey <tom@tromey.com>
5800 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5801 (struct tui_data_item_window): Update.
5803 2019-07-17 Tom Tromey <tom@tromey.com>
5805 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5806 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5809 2019-07-17 Tom Tromey <tom@tromey.com>
5811 * tui/tui-winsource.h (tui_erase_source_content)
5812 (tui_clear_source_content): Remove "display_prompt" parameter.
5813 * tui/tui-winsource.c (tui_update_source_window_as_is)
5814 (tui_update_source_windows_with_addr): Update.
5815 (tui_clear_source_content): Remove "display_prompt" parameter.
5816 (tui_erase_source_content): Likewise. Simplify.
5817 (tui_show_source_content): Update.
5818 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5819 * tui/tui-stack.c (tui_show_frame_info): Update.
5820 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5823 2019-07-17 Tom Tromey <tom@tromey.com>
5825 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5826 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5828 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5831 2019-07-17 Tom Tromey <tom@tromey.com>
5833 * tui/tui-winsource.c (tui_clear_source_content)
5834 (tui_show_source_content, tui_show_exec_info_content)
5835 (tui_clear_exec_info_content): Update.
5836 * tui/tui-stack.c (tui_show_locator_content): Update.
5837 (tui_show_frame_info): Update.
5838 * tui/tui-source.h (tui_source_window): Don't declare.
5839 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5840 from tui_source_is_displayed.
5841 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5843 (struct tui_source_window_base) <content_in_use>: New field. Now
5845 (struct tui_source_window) <showing_source_p>: New method.
5846 (TUI_SRC_WIN): Change cast.
5847 * tui/tui-data.c (tui_initialize_static_data): Update.
5849 2019-07-17 Tom Tromey <tom@tromey.com>
5851 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5853 * tui/tui-source.c (tui_source_window::location_matches_p): New
5855 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5857 * tui/tui-data.h (struct tui_source_window_base)
5858 <location_matches_p>: New method.
5859 (struct tui_source_window, struct tui_disasm_window)
5860 <location_matches_p>: Likewise.
5862 2019-07-17 Tom Tromey <tom@tromey.com>
5864 * tui/tui-win.c (tui_set_win_height_command): Rename from
5866 (tui_set_win_height_command): Remove.
5868 2019-07-17 Tom Tromey <tom@tromey.com>
5870 * tui/tui-source.c (tui_source_window): New constructor. Add
5872 (~tui_source_window): New destructor.
5873 (tui_source_window::style_changed): New method.
5874 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5875 (tui_attach_detach_observers): Update.
5876 * tui/tui-data.h (struct tui_source_window): Make constructor not
5877 inline. Add destructor.
5878 (struct tui_source_window) <style_changed>: New method.
5879 <m_observable>: New member.
5881 2019-07-17 Tom Tromey <tom@tromey.com>
5883 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5884 * tui/tui-win.c (tui_resize_all): Fix typo.
5886 2019-07-17 Tom Tromey <tom@tromey.com>
5888 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5889 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5890 (tui_refresh_all): Remove "list" parameter. Use foreach.
5891 * tui/tui-win.c (window_name_completer): Use foreach.
5892 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5893 (update_tab_width): Likewise.
5894 * tui/tui-layout.c (show_layout): Update.
5895 * tui/tui-data.h (class tui_window_iterator): New.
5896 (struct all_tui_windows): New.
5897 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5899 2019-07-17 Tom Tromey <tom@tromey.com>
5901 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5902 parameter. Don't reference globals.
5903 (tui_reg_command): Update.
5905 2019-07-17 Tom Tromey <tom@tromey.com>
5907 * tui/tui-regs.c (tui_show_registers): Simplify.
5909 2019-07-17 Tom Tromey <tom@tromey.com>
5911 * tui/tui-regs.c (tui_show_registers): Update.
5912 (tui_show_register_group): Add win_info parameter.
5914 2019-07-17 Tom Tromey <tom@tromey.com>
5916 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5917 Rename from tui_display_reg_element_at_line.
5918 (tui_data_window::display_registers_from_line): Update.
5919 * tui/tui-data.h (struct tui_data_window)
5920 <display_reg_element_at_line>: New method.
5922 2019-07-17 Tom Tromey <tom@tromey.com>
5924 * tui/tui-regs.h (tui_display_registers_from)
5925 (tui_display_registers_from_line): Don't declare.
5926 * tui/tui-windata.c (tui_data_window::display_all_data)
5927 (tui_data_window::refresh_all)
5928 (tui_data_window::do_scroll_vertical): Update.
5929 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5930 from tui_display_registers_from.
5931 (tui_display_reg_element_at_line): Update.
5932 (tui_data_window::display_registers_from_line): Rename from
5933 tui_display_registers_from_line.
5934 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5935 display_registers_from_line>: New methods.
5937 2019-07-17 Tom Tromey <tom@tromey.com>
5939 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5940 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5941 from tui_erase_data_content.
5942 (tui_data_window::display_all_data)
5943 (tui_data_window::refresh_all)
5944 (tui_data_window::do_scroll_vertical): Update.
5945 * tui/tui-regs.c (tui_show_registers): Update.
5946 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5949 2019-07-17 Tom Tromey <tom@tromey.com>
5951 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5954 (tui_data_window::delete_data_content_windows): Rename from
5955 tui_delete_data_content_windows.
5956 (tui_data_window::display_all_data)
5957 (tui_data_window::do_scroll_vertical): Update.
5958 * tui/tui-data.h (struct tui_data_window)
5959 <delete_data_content_windows>: New method.
5961 2019-07-17 Tom Tromey <tom@tromey.com>
5963 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5964 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5966 2019-07-17 Tom Tromey <tom@tromey.com>
5968 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5969 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5970 from tui_display_all_data.
5972 (tui_data_window::do_make_visible_with_new_height): Update.
5973 * tui/tui-regs.c (tui_show_registers): Update.
5974 * tui/tui-layout.c (tui_set_layout): Update.
5975 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5978 2019-07-17 Tom Tromey <tom@tromey.com>
5980 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5981 * tui/tui-windata.c (tui_display_data_from): Remove.
5982 (tui_data_window::refresh_all): Update.
5984 2019-07-17 Tom Tromey <tom@tromey.com>
5986 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5987 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5988 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5989 tui_display_registers_from_line.
5990 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5991 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5992 "force_display" parameter.
5994 2019-07-17 Tom Tromey <tom@tromey.com>
5996 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5998 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5999 Rename from tui_first_reg_element_no_inline.
6000 (tui_display_reg_element_at_line)
6001 (tui_display_registers_from_line): Update.
6002 * tui/tui-data.h (struct tui_data_window)
6003 <first_reg_element_no_inline>: New method.
6005 2019-07-17 Tom Tromey <tom@tromey.com>
6007 * tui/tui-windata.c (tui_display_data_from)
6008 (tui_data_window::do_scroll_vertical): Update.
6009 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6010 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6011 Rename from tui_line_from_reg_element_no.
6012 (tui_display_registers_from_line): Update.
6013 * tui/tui-data.h (struct tui_data_window)
6014 <line_from_reg_element_no>: New method.
6016 2019-07-17 Tom Tromey <tom@tromey.com>
6018 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6019 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6020 tui_last_regs_line_no.
6021 (tui_display_reg_element_at_line)
6022 (tui_display_registers_from_line): Update.
6023 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6026 2019-07-17 Tom Tromey <tom@tromey.com>
6029 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6030 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6031 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6032 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6033 (tui_update_breakpoint_info): Likewise.
6034 * tui/tui-hooks.c (tui_event_create_breakpoint)
6035 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6038 2019-07-17 Tom Tromey <tom@tromey.com>
6040 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6042 2019-07-17 Tom Tromey <tom@tromey.com>
6044 * tui/tui-winsource.c (tui_update_source_window_as_is)
6045 (tui_update_source_windows_with_addr): Update.
6046 * tui/tui-source.h (tui_set_source_content)
6047 (tui_show_symtab_source): Add "win_info" parameter.
6048 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6050 (tui_show_symtab_source): Likewise.
6052 2019-07-17 Tom Tromey <tom@tromey.com>
6054 * tui/tui-wingeneral.c
6055 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6057 2019-07-17 Tom Tromey <tom@tromey.com>
6059 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6060 (struct tui_cmd_window) <can_scroll>: New method.
6061 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6064 2019-07-17 Tom Tromey <tromey@adacore.com>
6066 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6067 do_field_signed>: Rename. Change type of "value".
6068 * ui-out.c (ui_out::field_signed): Rename from field_int.
6069 Change type of "value".
6070 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6072 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6073 do_field_int. Change type of "value".
6074 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6075 do_field_int. Change type of "value".
6076 * tracepoint.c (trace_status_mi, tfind_1)
6077 (print_one_static_tracepoint_marker): Update.
6078 * thread.c (print_thread_info_1, print_selected_thread_frame):
6080 * stack.c (print_frame, print_frame_info): Update.
6081 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6083 * source.c (print_source_lines_base): Update.
6084 * skip.c (info_skip_command): Update.
6085 * record-btrace.c (btrace_ui_out_decode_error)
6086 (btrace_call_history_src_line): Update.
6087 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6089 * progspace.c (print_program_space): Update.
6090 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6091 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6092 do_field_int. Change type of "value".
6093 * mi/mi-out.c (mi_ui_out::do_table_begin)
6094 (mi_ui_out::do_table_header): Update.
6095 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6097 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6098 (mi_cmd_data_list_changed_registers, output_register)
6099 (mi_cmd_data_read_memory, mi_load_progress)
6100 (mi_cmd_trace_frame_collected): Update.
6101 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6103 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6104 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6105 (mi_cmd_var_list_children, varobj_update_one): Update.
6106 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6107 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6109 * inferior.c (print_inferior): Update.
6110 * gdb_bfd.c (print_one_bfd): Update.
6111 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6113 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6114 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6115 do_field_int. Change type of "value".
6116 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6117 do_field_int. Change type of "value".
6118 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6119 (print_one_breakpoint_location, print_it_catch_fork)
6120 (print_one_catch_fork, print_it_catch_vfork)
6121 (print_one_catch_vfork, print_it_catch_solib)
6122 (print_it_catch_exec, print_it_ranged_breakpoint)
6123 (print_mention_watchpoint, print_mention_masked_watchpoint)
6124 (bkpt_print_it, update_static_tracepoint): Update.
6125 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6126 * break-catch-syscall.c (print_it_catch_syscall): Update.
6127 * ada-tasks.c (print_ada_task_info): Update.
6128 * ada-lang.c (print_it_exception, print_mention_exception):
6131 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6133 PR breakpoints/24541
6134 * gdbarch.c: Regenerate.
6135 * gdbarch.h: Regenerate.
6136 * gdbarch.sh: Adjust return type and parameter types for
6137 'stap_adjust_register'.
6138 (i386_stap_adjust_register): Adjust signature and return new
6140 * stap-probe.c (stap_parse_register_operand): Adjust use of
6141 'gdbarch_stap_adjust_register'.
6143 2019-07-17 Tom Tromey <tromey@adacore.com>
6145 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6147 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6149 (struct s390_process_info): Add initializers.
6150 (s390_add_process): Use new.
6151 (s390_linux_nat_target::low_forget_process): Use delete.
6152 (s390_linux_nat_target::low_new_fork)
6153 (s390_linux_nat_target::stopped_by_watchpoint)
6154 (s390_linux_nat_target::low_prepare_to_resume)
6155 (s390_linux_nat_target::insert_watchpoint)
6156 (s390_linux_nat_target::insert_hw_breakpoint)
6157 (s390_linux_nat_target::remove_watchpoint)
6158 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6160 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6162 * aarch64-fbsd-nat.c: Include regcache.h.
6163 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6165 (aarch64_fbsd_nat_target::fetch_registers)
6166 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6168 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6170 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6172 * fbsd-nat.c: Include gdbarch.h.
6174 2019-07-15 Tom Tromey <tromey@adacore.com>
6176 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6178 2019-07-15 Tom Tromey <tromey@adacore.com>
6180 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6181 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6182 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6183 * cli-out.c (cli_ui_out::do_field_int): New method.
6184 * ui-out.c (ui_out::field_unsigned): New method.
6185 * symfile.c (generic_load): Use field_unsigned.
6186 (print_transfer_performance): Likewise.
6187 * record-btrace.c (ui_out_field_uint): Remove.
6188 (btrace_call_history_insn_range, btrace_call_history): Use
6190 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6192 * ui-out.h (class ui_out) <field_unsigned>: New method.
6193 <do_field_unsigned>: Likewise.
6195 2019-07-15 Tom Tromey <tromey@adacore.com>
6197 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6198 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6199 * target.c (flash_erase_command): Use field_string.
6200 * infrun.c (print_signal_received_reason): Use field_string.
6201 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6202 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6204 * ada-tasks.c (print_ada_task_info): Use field_string.
6206 2019-07-15 Tom Tromey <tromey@adacore.com>
6208 * target.c (flash_erase_command): Use field_core_addr.
6209 * symfile.c (generic_load): Use field_core_addr.
6210 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6211 Use field_core_addr.
6212 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6215 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6217 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6218 value if its desired type is smaller than a CORE_ADDR and signed.
6220 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6222 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6223 of changes to field names, and use new is_reference field to
6224 decide if a property is a reference or not.
6225 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6227 (struct dwarf2_property_baton): Update header comment, rename
6228 'referenced_type' to 'property_type' and update comments.
6229 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6230 default property type, store in property baton, update to take
6231 accound of renamed field.
6232 (read_func_scope): Update call to attr_to_dynamic_prop.
6233 (read_array_type): Likewise.
6234 (dwarf2_per_cu_addr_sized_int_type): New function.
6235 (read_subrange_index_type): Move type finding code to
6236 dwarf2_per_cu_addr_sized_int_type.
6237 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6238 (dwarf2_per_cu_addr_type): New function.
6239 (set_die_type): Update calls to attr_to_dynamic_prop.
6241 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6243 * dwarf2read.c (read_subrange_index_type): New function.
6244 (read_subrange_type): Move code into new function and call it.
6245 * gdbtypes.c (create_range_type): Add some asserts.
6247 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6249 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6250 update return statements.
6251 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6252 declaration, and update comment to match.
6253 * gdbtypes.c (resolve_dynamic_array): Update call to
6254 dwarf2_evaluate_property to match new return type.
6256 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6258 * valarith.c (value_subscripted_rvalue): Change lowerbound
6259 parameter type from int to LONGEST.
6260 * value.h (value_subscripted_rvalue): Likewise in declaration.
6262 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6264 * cli/cli-utils.c (info_print_command_completer): New function.
6265 * cli/cli-utils.h: Add 'completer.h' include, and forward
6266 declaration for 'struct cmd_list_element'.
6267 (info_print_command_completer): Declare.
6268 * stack.c (_initialize_stack): Add completer for 'info locals' and
6270 * symtab.c (_initialize_symtab): Add completer for 'info
6271 variables' and 'info functions'.
6272 * NEWS: Mention completion for additional info commands.
6274 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6276 * cli/cli-utils.c (extract_info_print_args): Delete.
6277 (extract_arg_maybe_quoted): Delete.
6278 (info_print_options_defs): New variable.
6279 (make_info_print_options_def_group): New function.
6280 (extract_info_print_options): Define new function.
6281 * cli/cli-utils.h (extract_info_print_args): Delete.
6282 (struct info_print_options): New structure.
6283 (extract_info_print_options): Declare new function.
6284 * stack.c (info_locals_command): Update to use new
6285 extract_info_print_options, also add a header comment.
6286 (info_args_command): Likewise.
6287 * symtab.c (info_variables_command): Likewise.
6288 (info_functions_command): Likewise.
6290 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6292 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6293 to extract string arguments.
6294 * common/common-utils.c (extract_string_maybe_quoted): New function.
6295 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6297 2019-07-11 Tom Tromey <tromey@adacore.com>
6299 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6300 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6301 * top.h (gdbinit): Don't declare.
6302 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6304 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6305 * top.c (gdb_init): Don't call init_cli_cmds.
6307 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6309 2019-07-11 Tom Tromey <tromey@adacore.com>
6311 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6312 after it has been moved.
6314 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6316 * valops.c (value_must_coerce_to_target): Change return type to
6318 * value.h (value_must_coerce_to_target): Likewise.
6320 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6322 * breakpoint.c (is_hardware_watchpoint): Remove
6323 forward-declaration.
6324 (is_masked_watchpoint): Change return type to bool.
6325 (is_tracepoint): Likewise.
6326 (is_breakpoint): Likewise.
6327 (is_hardware_watchpoint): Likewise.
6328 (is_watchpoint): Likewise.
6329 (is_no_memory_software_watchpoint): Likewise.
6330 (is_catchpoint): Likewise.
6331 (breakpoint_1): Make FILTER parameter's return type bool.
6332 is_masked_watchpoint): Change return type to bool.
6333 (save_breakpoints): Make FILTER parameter's return type bool.
6334 * breakpoint.h (is_breakpoint): Change return type to bool.
6335 (is_watchpoint): Likewise.
6336 (is_catchpoint): Likewise.
6337 (is_tracepoint): Likewise.
6339 2019-07-10 Tom Tromey <tom@tromey.com>
6341 * defs.h: Don't include gdbarch.h.
6342 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6343 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6344 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6345 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6346 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6347 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6348 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6349 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6350 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6351 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6352 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6353 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6354 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6355 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6356 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6357 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6358 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6359 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6360 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6361 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6362 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6363 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6364 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6365 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6366 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6367 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6368 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6370 2019-07-10 Tom Tromey <tromey@adacore.com>
6372 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6373 * breakpoint.c (init_ada_exception_breakpoint): Register as
6375 (print_one_breakpoint_location, print_one_breakpoint): Use
6376 is_ada_exception_catchpoint.
6377 * ada-lang.c (class ada_catchpoint_location): Pass
6378 bp_loc_software_breakpoint to bp_location constructor.
6379 (is_ada_exception_catchpoint): New function.
6381 2019-07-10 Tom Tromey <tromey@adacore.com>
6383 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6385 (struct arm_exidx_entry): New method operator<.
6386 (struct arm_exidx_data) <section_maps>: Change type.
6387 (arm_exidx_data_free): Remove.
6388 (arm_exidx_data_key): Change type. Move lower.
6389 (arm_exidx_new_objfile): Update.
6390 (arm_compare_exidx_entries): Remove.
6391 (arm_find_exidx_entry, _initialize_arm_tdep)
6393 2019-07-10 Tom Tromey <tromey@adacore.com>
6395 * solib-spu.c (ocl_program_data_key): Change type.
6396 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6399 2019-07-10 Tom Tromey <tromey@adacore.com>
6401 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6402 (struct solib_aix_inferior_data) <library_list>: Change type.
6403 (solib_aix_inferior_data_handle): Change type.
6404 (get_solib_aix_inferior_data): Update.
6405 (solib_aix_free_library_list): Remove.
6406 (library_list_start_library): Update.
6407 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6409 (solib_aix_get_library_list)
6410 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6411 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6413 2019-07-10 Tom Tromey <tromey@adacore.com>
6415 * solib-dsbt.c (struct dsbt_info): Add initializers.
6416 (solib_dsbt_pspace_data): Change type.
6417 (dsbt_pspace_data_cleanup): Remove.
6418 (get_dsbt_info, _initialize_dsbt_solib): Update.
6420 2019-07-10 Tom Tromey <tromey@adacore.com>
6422 * spu-tdep.c (spu_overlay_data): Change type.
6423 (spu_get_overlay_table, spu_overlay_new_objfile)
6424 (_initialize_spu_tdep): Update.
6426 2019-07-10 Tom Tromey <tromey@adacore.com>
6428 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6430 (dbx_objfile_data_key): Change type and declare later.
6431 (DBX_SYMFILE_INFO): Rewrite.
6432 * dbxread.c (dbx_objfile_data_key): Change type.
6433 (dbx_symfile_init): Update.
6434 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6435 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6436 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6438 2019-07-10 Tom Tromey <tromey@adacore.com>
6440 * jit.c (jit_program_space_key): Change type. Move lower.
6441 (get_jit_program_space_data): Update.
6442 (jit_program_space_data_cleanup): Remove.
6443 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6445 (struct jit_program_space_data): Add initializers.
6447 2019-07-10 Tom Tromey <tromey@adacore.com>
6449 * solib-darwin.c (struct darwin_info): Add initializers.
6450 (solib_darwin_pspace_data): Change type.
6451 (darwin_pspace_data_cleanup): Remove.
6452 (get_darwin_info, _initialize_darwin_solib): Update.
6454 2019-07-10 Tom Tromey <tromey@adacore.com>
6456 * remote-sim.c (struct sim_inferior_data): Add initializers,
6457 constructor, and destructor.
6458 (sim_inferior_data_key): Change type. Move lower.
6459 (check_for_duplicate_sim_descriptor): Update.
6460 (get_sim_inferior_data): Use new. Update.
6461 (~sim_inferior_data_cleanup): Rename from
6462 sim_inferior_data_cleanup. Simplify.
6463 (gdbsim_close_inferior, simulator_command)
6464 (sim_command_completer, _initialize_remote_sim): Update.
6465 (next_pid, INITIAL_PID): Move earlier.
6467 2019-07-10 Tom Tromey <tromey@adacore.com>
6469 * python/python-internal.h (create_thread_object): Return
6471 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6472 * python/py-inferior.c (struct threadlist_entry): Add
6474 <thread_obj>: Now a gdbpy_ref.
6475 (thread_to_thread_object): Update.
6476 (add_thread_object): Use new.
6477 (delete_thread_object): Use delete.
6478 (infpy_threads): Update.
6479 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6482 2019-07-10 Tom Tromey <tromey@adacore.com>
6484 * valops.c (value_cast): Specialize error message for Ada.
6486 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6488 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6490 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6492 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6493 bpstat_should_step): Return bool, adjust comments.
6494 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6495 bpstat_should_step): Likewise.
6497 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6499 * features/Makefile: Use feature target descriptions for Arm.
6500 * features/arm/arm-core.c: Generate new file.
6501 * features/arm/arm-fpa.c: Likewise.
6502 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6503 * features/arm/arm-m-profile.c: Likewise.
6504 * features/arm/arm-vfpv2.c: Likewise.
6505 * features/arm/arm-vfpv3.c: Likewise.
6506 * features/arm/xscale-iwmmxt.c: Likewise.
6507 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6509 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6511 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6514 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6516 * features/aarch64-pauth.c: Regenerate.
6518 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6520 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6522 (bpstat_what): Use false instead of 0.
6524 2019-07-09 Pedro Alves <palves@redhat.com>
6526 * break-catch-throw.c (is_exception_catchpoint): New.
6527 * breakpoint.c (print_one_breakpoint_location): New parameter
6528 'raw_loc'. Handle it. Use
6529 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6530 looking at the breakpoint's type.
6531 (print_one_breakpoint): If handling "maint info breakpoints", also
6532 print locations of exception catchpoints.
6533 * breakpoint.h (is_exception_catchpoint): Declare.
6535 2019-07-09 Pedro Alves <palves@redhat.com>
6537 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6539 (allocate_location_exception_catchpoint): New.
6540 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6541 (initialize_throw_catchpoint_ops): Install
6542 allocate_location_exception_catchpoint as allocate_location
6544 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6545 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6547 (breakpoint_address_is_meaningful): Delete.
6548 (bl_address_is_meaningful): New.
6549 (breakpoint_locations_match): Adjust comment.
6550 (bp_location_from_bp_type): New, factored out of...
6551 (bp_location::bp_location(breakpoint *)): ... this.
6552 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6554 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6555 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6556 breakpoint_address_is_meaningful.
6557 (bp_locations_compare): Adjust comment.
6558 (update_global_location_list): Use bl_address_is_meaningful
6559 instead of breakpoint_address_is_meaningful.
6560 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6562 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6563 * python/py-breakpoint.c (bppy_get_location): No longer check
6564 whether location is null.
6566 2019-07-09 Pedro Alves <palves@redhat.com>
6569 * breakpoint.c (print_one_breakpoint_location): Remove
6570 single-location assert.
6572 2019-07-09 Tom Tromey <tom@tromey.com>
6574 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6575 * configure: Rebuild.
6576 * configure.ac: Change common to gdbsupport.
6577 * gdbsupport: Rename from common.
6578 * acinclude.m4: Change common to gdbsupport.
6579 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6580 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6582 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6583 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6584 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6585 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6586 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6587 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6588 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6589 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6590 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6591 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6592 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6593 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6594 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6595 coff-pe-read.c, command.h, compile/compile-c-support.c,
6596 compile/compile-c.h, compile/compile-cplus-symbols.c,
6597 compile/compile-cplus-types.c, compile/compile-cplus.h,
6598 compile/compile-loc2c.c, compile/compile.c, completer.c,
6599 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6600 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6601 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6602 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6603 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6604 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6605 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6606 features/aarch64-core.c, features/aarch64-fpu.c,
6607 features/aarch64-pauth.c, features/aarch64-sve.c,
6608 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6609 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6610 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6611 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6612 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6613 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6614 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6615 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6616 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6617 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6618 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6619 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6620 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6621 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6622 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6623 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6624 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6625 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6626 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6627 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6628 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6629 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6630 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6631 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6632 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6633 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6634 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6635 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6636 minsyms.c, mips-linux-tdep.c, namespace.h,
6637 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6638 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6639 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6640 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6641 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6642 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6643 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6644 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6645 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6646 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6647 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6648 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6649 procfs.c, producer.c, progspace.h, psymtab.h,
6650 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6651 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6652 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6653 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6654 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6655 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6656 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6657 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6658 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6659 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6660 target-memory.c, target.c, target.h, target/waitstatus.c,
6661 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6662 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6663 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6664 unittests/array-view-selftests.c,
6665 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6666 unittests/common-utils-selftests.c,
6667 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6668 unittests/format_pieces-selftests.c,
6669 unittests/function-view-selftests.c,
6670 unittests/lookup_name_info-selftests.c,
6671 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6672 unittests/mkdir-recursive-selftests.c,
6673 unittests/observable-selftests.c,
6674 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6675 unittests/parse-connection-spec-selftests.c,
6676 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6677 unittests/scoped_fd-selftests.c,
6678 unittests/scoped_mmap-selftests.c,
6679 unittests/scoped_restore-selftests.c,
6680 unittests/string_view-selftests.c, unittests/style-selftests.c,
6681 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6682 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6683 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6684 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6685 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6686 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6688 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6690 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6692 (decode_digits_ordinary): Set explicit_line field in sal.
6693 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6694 symtab_and_line that was set on an explicit line number in
6695 assembler code. Do always update the recorded symtab and line if
6696 we do skip the prologue.
6698 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6700 * breakpoint.c (set_breakpoint_location_function): Remove
6701 explicit_loc parameter.
6702 (momentary_breakpoint_from_master): Update call to
6703 set_breakpoint_location_function.
6704 (add_location_to_breakpoint): Likewise.
6706 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6708 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6709 required features based on default bfd type when no specific bfd
6712 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6714 * NEWS: Mention that GDB printf and eval commands can now print
6715 C-style and Ada-style convenience var strings without
6716 calling the inferior.
6717 * printcmd.c (printf_c_string): Locally print GDB internal var
6718 instead of transiting via the inferior.
6719 (printf_wide_c_string): Likewise.
6721 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6723 PR breakpoints/25011
6724 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6726 2019-07-04 Tom Tromey <tom@tromey.com>
6729 * tui/tui-winsource.c (tui_clear_source_content): Update.
6730 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6731 (tui_update_breakpoint_info): Update.
6732 (tui_set_exec_info_content): Update.
6733 * tui/tui-source.c (tui_set_source_content_nil): Update.
6734 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6736 * tui/tui-data.h (enum tui_bp_flag): New.
6737 (tui_bp_flags): New enum flags type.
6738 (struct tui_source_element) <break_mode>: Change type. Rename
6740 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6741 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6743 * tui/tui-winsource.h: Fix comment.
6745 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6747 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6748 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6749 (store_fpregs_to_thread)
6750 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6751 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6752 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6753 (IWMMXT_REGS_SIZE): Add define.
6754 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6755 (fetch_vfp_regs, store_vfp_regs)
6756 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6757 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6759 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6761 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6763 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6764 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6765 (ARM_INT_REGISTER_SIZE): ...to this.
6766 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6767 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6768 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6769 (arm_linux_collect_gregset, supply_nwfpe_register)
6770 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6772 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6773 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6774 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6775 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6776 (arm_return_in_memory, arm_store_return_value)
6777 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6778 (arm_record_ld_st_multiple): Likewise.
6779 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6780 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6782 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6784 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6785 AARCH64_DISPLACED_MODIFIED_INSNS.
6786 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6787 (aarch64_displaced_step_copy_insn): Likewise.
6788 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6789 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6790 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6791 ARM_DISPLACED_MODIFIED_INSNS.
6792 * arm-tdep.c (arm_gdbarch_init): Likewise.
6793 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6794 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6795 (struct arm_displaced_step_closure): Use
6796 ARM_DISPLACED_MODIFIED_INSNS.
6798 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6800 * features/Makefile: Remove unused xml files.
6801 * features/aarch64.xml: Remove.
6802 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6803 * features/i386/amd64-avx-avx512.xml: Remove.
6804 * features/i386/amd64-avx-linux.xml: Remove.
6805 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6806 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6807 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6808 * features/i386/amd64-avx-mpx.xml: Remove.
6809 * features/i386/amd64-avx.xml: Remove.
6810 * features/i386/amd64-linux.xml: Remove.
6811 * features/i386/amd64-mpx-linux.xml: Remove.
6812 * features/i386/amd64-mpx.xml: Remove.
6813 * features/i386/amd64.xml: Remove.
6814 * features/i386/i386-avx-avx512-linux.xml: Remove.
6815 * features/i386/i386-avx-avx512.xml: Remove.
6816 * features/i386/i386-avx-linux.xml: Remove.
6817 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6818 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6819 * features/i386/i386-avx-mpx-linux.xml: Remove.
6820 * features/i386/i386-avx-mpx.xml: Remove.
6821 * features/i386/i386-avx.xml: Remove.
6822 * features/i386/i386-linux.xml: Remove.
6823 * features/i386/i386-mmx-linux.xml: Remove.
6824 * features/i386/i386-mmx.xml: Remove.
6825 * features/i386/i386-mpx-linux.xml: Remove.
6826 * features/i386/i386-mpx.xml: Remove.
6827 * features/i386/i386.xml: Remove.
6828 * features/i386/x32-avx-avx512-linux.xml: Remove.
6829 * features/i386/x32-avx-linux.xml: Remove.
6830 * features/i386/x32-linux.xml: Remove.
6832 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6834 * regformats/aarch64.dat: Remove.
6835 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6836 * regformats/i386/amd64-avx-linux.dat: Remove.
6837 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6838 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6839 * regformats/i386/amd64-linux.dat: Remove.
6840 * regformats/i386/amd64-mpx-linux.dat: Remove.
6841 * regformats/i386/amd64.dat: Remove.
6842 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6843 * regformats/i386/i386-avx-linux.dat: Remove.
6844 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6845 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6846 * regformats/i386/i386-linux.dat: Remove.
6847 * regformats/i386/i386-mmx-linux.dat: Remove.
6848 * regformats/i386/i386-mpx-linux.dat: Remove.
6849 * regformats/i386/i386.dat: Remove.
6850 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6851 * regformats/i386/x32-avx-linux.dat: Remove.
6852 * regformats/i386/x32-linux.dat: Remove.
6854 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6856 * aarch64-tdep.c: Remove xml self tests.
6857 * amd64-linux-tdep.c: Likewise.
6858 * amd64-tdep.c: Likewise.
6859 * i386-linux-tdep.c: Likewise.
6860 * i386-tdep.c: Likewise.
6862 2019-07-03 Pedro Alves <palves@redhat.com>
6865 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6866 (pipe_cmd_option_defs): New.
6867 (make_pipe_cmd_options_def_group): New.
6868 (pipe_command): Use gdb::option::process_options.
6869 (pipe_command_completer): New function.
6870 (_initialize_cli_cmds): Install completer for "pipe" command.
6872 2019-07-03 Pedro Alves <palves@redhat.com>
6874 * cli/cli-option.c (union option_value) <string>: New field.
6875 (struct option_def_and_value): Add ctor, move ctor, dtor and
6876 use DISABLE_COPY_AND_ASSIGN.
6877 (option_def_and_value::clear_value): New.
6878 (parse_option, save_option_value_in_ctx, get_val_type_str)
6879 (add_setshow_cmds_for_options): Handle var_string.
6880 * cli-option.h (union option_def::var_address) <string>: New
6882 (struct string_option_def): New.
6883 * maint-test-options.c (struct test_options_opts): Add default
6884 ctor and use DISABLE_COPY_AND_ASSIGN.
6885 <string_opt>: New field.
6886 (test_options_opts::~test_options_opts): New.
6887 (test_options_opts::dump): Also dump "-string".
6888 (test_options_option_defs): Install "string.
6890 2019-07-03 Pedro Alves <palves@redhat.com>
6892 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6893 option_value with a null enumeration.
6894 (complete_options): Save the option values in the context.
6895 (save_option_value_in_ctx): New, factored out from ...
6896 (process_options): ... here.
6897 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6899 * maint-test-options.c (test_options_opts::dump): New, factored
6901 (maintenance_test_options_command_mode): ... here.
6902 (maintenance_test_options_command_completion_result): Delete.
6903 (maintenance_test_options_command_completion_text): Update
6905 (maintenance_show_test_options_completion_result): Change
6906 prototype. Just print
6907 maintenance_test_options_command_completion_text.
6908 (save_completion_result): New.
6909 (maintenance_test_options_completer_mode): Pass options context to
6910 complete_options, and then save a dump.
6911 (_initialize_maint_test_options): Use add_cmd to install "maint
6912 show test-options-completion-result".
6914 2019-07-03 Pedro Alves <palves@redhat.com>
6916 * NEWS (New commands): Mention "with" and "maint with".
6917 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6918 (with_command, with_command_completer): New.
6919 (pipe_command): Adjust to new repeat_previous
6921 (_initialize_cli_cmds): Install the "with" command and its "w"
6923 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6925 * cli/cli-setshow.c (parse_cli_var_uinteger)
6926 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6927 argument strings for all var_types.
6928 (get_setshow_command_value_string): New, factored out from ...
6929 (do_show_command): ... this.
6930 * cli/cli-setshow.h: Include <string>.
6931 (get_setshow_command_value_string): Declare.
6932 * command.h (repeat_previous): Now returns const char *. Adjust
6934 * maint.c: Include "cli/cli-cmds.h".
6935 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6936 (_initialize_maint_cmds): Register the "maintenance with" command.
6937 * top.c (repeat_previous): Move bits from pipe_command here:
6938 Return the saved command line, if any; error out if there's no
6939 command to relaunch.
6941 2019-07-03 Pedro Alves <palves@redhat.com>
6943 * NEWS (New commands): Mention "maint set/show test-settings"
6944 instead of "maint test-settings".
6945 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6946 (maintenance_test_settings_set_list): Rename to ...
6947 (maintenance_set_test_settings_list): ... this.
6948 (maintenance_test_settings_show_list): Rename to ...
6949 (maintenance_show_test_settings_list): ... this.
6950 (maintenance_test_settings_cmd): Delete.
6951 (maintenance_test_settings_set_cmd): ...
6952 (maintenance_set_test_settings_cmd): ... this.
6953 (maintenance_test_settings_show_cmd): ...
6954 (maintenance_show_test_settings_cmd): ... this.
6955 (maintenance_test_settings_show_value_cmd):
6956 (maintenance_show_test_settings_value_cmd): ... this.
6957 (_initialize_maint_test_settings): No longer install the "maint
6958 test-settings" prefix command. Rename "maint test-settings set"
6959 to "maint set test-settings", and "maint test-settings show" to
6960 "maint show test-settings". Adjust all subcommands.
6962 2019-07-03 Pedro Alves <palves@redhat.com>
6964 * maint-test-settings.c: Fix file's intro comment. Replace all
6965 references to "test-options" with references to "test-settings",
6968 2019-07-03 Pedro Alves <palves@redhat.com>
6970 * maint-test-settings.c (maintenance_test_settings_xxx)
6971 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6973 (maintenance_test_settings_enums): Use them.
6974 (maintenance_test_settings_enum): Default to
6975 maintenance_test_settings_xxx.
6976 (_initialize_maint_test_settings): Initialize
6977 MAINTENANCE_TEST_SETTINGS_FILENAME.
6979 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6981 * breakpoint.h (remove_breakpoints_inf): Change return type to
6982 void, move function documentation here.
6983 * breakpoint.c (remove_breakpoints_inf): Change return type to
6984 void, move function documentation to header.
6986 2019-07-02 Pedro Alves <palves@redhat.com>
6988 * NEWS (Completion improvements): Mention "info threads".
6989 * thread.c (struct info_threads_opts, info_threads_option_defs)
6990 (make_info_threads_options_def_group): New.
6991 (info_threads_command): Use gdb::option::process_options.
6992 (info_threads_command_completer): New.
6993 (_initialize_thread): Use gdb::option::build_help to build the
6994 help text for "info threads".
6996 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6998 * defs.h (generic_load): Move from here...
6999 * symfile.h (generic_load): ... to here. Rename name parameter
7001 * symfile.c (generic_load): Add comment.
7003 2019-07-01 Tom Tromey <tromey@adacore.com>
7006 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7007 declaration of without_params. Fix formatting.
7009 2019-07-01 Tom Tromey <tromey@adacore.com>
7011 * ada-exp.y (find_primitive_type): Update.
7012 * ada-lang.h (ada_lookup_symbol): Update.
7013 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7015 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7017 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7019 PR breakpoints/24541
7020 * gdbarch.c: Regenerate.
7021 * gdbarch.h: Regenerate.
7022 * gdbarch.sh: Add 'stap_adjust_register'.
7023 * i386-tdep.c: Include '<unordered_set>'.
7024 (i386_stap_adjust_register): New function.
7025 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7026 * stap-probe.c (stap_parse_register_operand): Call
7027 'gdbarch_stap_adjust_register'.
7029 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7032 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7033 * python/python.c (do_start_initialization): Use 'xmalloc'
7034 instead of 'PyMem_Malloc'.
7036 2019-06-28 Tom Tromey <tromey@adacore.com>
7038 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7041 2019-06-27 Tom Tromey <tromey@adacore.com>
7043 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7045 (arm_find_mapping_symbol, arm_record_special_symbol)
7046 (_initialize_arm_tdep): Update.
7047 (arm_objfile_data_free): Remove.
7049 2019-06-27 Tom Tromey <tromey@adacore.com>
7051 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7052 to cp_print_static_field.
7054 2019-06-26 Tom Tromey <tromey@adacore.com>
7056 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7057 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7060 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7062 * features/aarch64-core.c (create_feature_aarch64_core):
7064 * features/aarch64-core.xml: Add cpsr flags.
7066 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7068 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7069 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7071 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7073 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7075 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7077 (arm_record_special_symbol): Don't insert new symbol in sorted
7078 position, push it at the end.
7080 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7082 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7083 (arm_mapping_symbol_s): Remove.
7084 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7085 (arm_mapping_symbol_vec): New typedef.
7086 (struct arm_per_objfile): Add constructor.
7087 <section_maps>: Change type to
7088 std::unique_ptr<arm_mapping_symbol_vec[]>.
7089 (arm_compare_mapping_symbols): Remove.
7090 (arm_find_mapping_symbol): Adjust to section_maps type change.
7091 (arm_objfile_data_free): Call delete on arm_per_objfile.
7092 (arm_record_special_symbol): Adjust to section_maps type change.
7093 Allocate arm_per_objfile with new.
7095 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7097 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7098 with the command prefix.
7100 2019-06-25 Tom Tromey <tom@tromey.com>
7102 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7103 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7107 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7109 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7112 2019-06-25 Tom Tromey <tom@tromey.com>
7114 * tui/tui-winsource.c
7115 (tui_source_window_base::set_is_exec_point_at): Add check against
7118 2019-06-25 Tom Tromey <tom@tromey.com>
7120 * tui/tui-source.c (tui_set_source_content): Don't check before
7122 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7124 2019-06-25 Tom Tromey <tom@tromey.com>
7126 * tui/tui-winsource.h (tui_update_source_window_as_is)
7127 (tui_alloc_source_buffer, tui_line_is_displayed)
7128 (tui_addr_is_displayed): Change type of win_info.
7129 * tui/tui-winsource.c (tui_update_source_window_as_is)
7130 (tui_clear_source_content, tui_show_source_line)
7131 (tui_show_source_content, tui_source_window_base::refill)
7132 (tui_source_window_base::set_is_exec_point_at)
7133 (tui_source_window_base::set_is_exec_point_at)
7134 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7135 (tui_alloc_source_buffer, tui_line_is_displayed)
7136 (tui_addr_is_displayed): Change type of win_info. Update.
7137 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7138 (tui_source_window_base::do_make_visible_with_new_height):
7140 * tui/tui-source.c (tui_set_source_content)
7141 (tui_set_source_content_nil)
7142 (tui_source_window::do_scroll_vertical): Update.
7143 * tui/tui-layout.c (show_layout): Update.
7144 * tui/tui-disasm.c (tui_set_disassem_content)
7145 (tui_disasm_window::do_scroll_vertical): Update.
7146 * tui/tui-data.h (tui_win_content): Remove.
7147 (struct tui_gen_win_info) <content, content_size>: Remove.
7148 (struct tui_source_element): Add initializers and destructor.
7149 (union tui_which_element, struct tui_win_element): Remove.
7150 (struct tui_source_window_base) <content>: New field.
7151 (struct tui_data_window): Remove destructor.
7152 (tui_alloc_content, tui_free_win_content)
7153 (tui_free_all_source_wins_content): Don't declare.
7154 * tui/tui-data.c (tui_initialize_static_data): Update.
7155 (init_content_element, tui_alloc_content): Remove.
7156 (~tui_gen_win_info): Update.
7157 (~tui_data_window, tui_free_all_source_wins_content)
7158 (tui_free_win_content, free_content, free_content_elements):
7161 2019-06-25 Tom Tromey <tom@tromey.com>
7163 * tui/tui-winsource.h (tui_clear_source_content)
7164 (tui_erase_source_content, tui_show_source_content): Change type
7166 * tui/tui-winsource.c (tui_clear_source_content)
7167 (tui_erase_source_content, tui_show_source_content): Change type
7169 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7170 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7172 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7174 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7176 2019-06-25 Tom Tromey <tom@tromey.com>
7178 * tui/tui-winsource.c (tui_clear_source_content)
7179 (tui_source_window_base::set_is_exec_point_at): Update.
7180 * tui/tui-source.c (tui_set_source_content_nil): Update.
7181 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7183 * tui/tui-data.c (init_content_element): Update.
7185 2019-06-25 Tom Tromey <tom@tromey.com>
7187 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7188 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7189 * tui/tui-layout.c (init_and_make_win): Update.
7190 * tui/tui.h (enum tui_win_type): Update.
7191 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7192 tui_win_is_auxillary.
7193 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7194 tui_win_is_auxillary.
7196 2019-06-25 Tom Tromey <tom@tromey.com>
7198 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7199 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7200 (tui_delete_data_content_windows, tui_display_all_data)
7201 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7203 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7204 * tui/tui-regs.c (tui_last_regs_line_no)
7205 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7206 (tui_show_registers): Update.
7207 (tui_show_register_group): Return void. Update.
7208 (tui_display_registers_from, tui_display_reg_element_at_line)
7209 (tui_display_registers_from_line, tui_check_register_values):
7211 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7213 (struct tui_data_window) <regs_content>: Now a std::vector.
7214 <regs_content_count>: Remove.
7215 (tui_add_content_elements, tui_free_data_content): Don't declare.
7216 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7217 (init_content_element): Remove DATA_WIN case. Add assert.
7218 (tui_add_content_elements): Remove.
7219 (tui_data_window): Update.
7220 (tui_free_data_content): Remove.
7221 (free_content_elements): Remove DATA_WIN case.
7223 2019-06-25 Tom Tromey <tom@tromey.com>
7225 * tui/tui-data.c (tui_data_item_window): Update.
7226 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7227 * tui/tui-windata.c (tui_display_all_data)
7228 (tui_display_data_from_line): Update.
7229 (tui_check_data_values): Remove.
7230 * tui/tui-regs.c (tui_show_register_group)
7231 (tui_display_reg_element_at_line): Update.
7232 * tui/tui-hooks.c (tui_register_changed)
7233 (tui_refresh_frame_and_register_information): Call
7234 tui_check_register_values.
7235 * tui/tui-data.h (struct tui_data_window) <data_content,
7236 data_content_count, data_type>: Remove.
7237 (enum tui_data_type): Remove.
7239 * tui/tui-data.c (tui_data_window::clear_detail)
7240 (~tui_data_window): Update.
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7244 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7246 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7247 Rename from tui_first_data_item_displayed. Update.
7248 (tui_data_window::refresh_all)
7249 (tui_data_window::do_scroll_vertical): Update.
7250 * tui/tui-data.h (struct tui_data_window)
7251 <first_data_item_displayed>: Declare new method.
7253 2019-06-25 Tom Tromey <tom@tromey.com>
7255 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7256 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7258 (tui_initialize_static_data): ...here.
7260 2019-06-25 Tom Tromey <tom@tromey.com>
7262 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7263 (tui_display_registers_from, tui_check_register_values): Update.
7264 (tui_display_register): Remove win_info parameter; update.
7265 (tui_get_register): Change type of parameters.
7266 * tui/tui-data.h (struct tui_data_element): Remove.
7267 (union tui_which_element) <data>: Remove.
7268 <data_window>: Change type.
7269 (struct tui_data_item_window): New.
7270 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7272 (~tui_data_item_window): New destructor.
7273 (free_content_elements): Remove DATA_ITEM_WIN case.
7275 2019-06-25 Tom Tromey <tom@tromey.com>
7277 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7280 2019-06-25 Tom Tromey <tom@tromey.com>
7282 * tui/tui-data.h (struct tui_command_element): Remove.
7283 (union tui_which_element) <command>: Remove.
7284 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7286 (free_content_elements): Remove CMD_WIN case.
7288 2019-06-25 Tom Tromey <tom@tromey.com>
7290 * tui/tui-layout.c (tui_set_layout): Update.
7291 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7292 * tui/tui-data.c (layout_def): Update.
7294 2019-06-25 Tom Tromey <tom@tromey.com>
7296 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7297 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7298 (tui_source_window_base::set_new_height): Update.
7299 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7301 (tui_set_locator_fullname, tui_set_locator_info)
7302 (tui_show_frame_info): Update.
7303 * tui/tui-source.c (tui_set_source_content)
7304 (tui_source_is_displayed): Update.
7305 * tui/tui-layout.c (show_source_disasm_command, show_data)
7306 (show_source_or_disasm_and_command): Update.
7307 * tui/tui-disasm.c (tui_set_disassem_content)
7308 (tui_get_begin_asm_address): Update.
7309 * tui/tui-data.h (struct tui_locator_element): Remove.
7310 (union tui_which_element) <locator>: Remove.
7311 (struct tui_locator_window): New.
7312 (tui_locator_win_info_ptr): Change return type.
7313 * tui/tui-data.c (_locator): Change type.
7314 (tui_locator_win_info_ptr): Change return type.
7315 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7316 (tui_alloc_content): Add assert.
7318 2019-06-25 Tom Tromey <tom@tromey.com>
7320 * tui/tui-winsource.c
7321 (tui_exec_info_window::maybe_allocate_content): New method.
7322 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7323 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7324 (make_source_or_disasm_window): Add cast.
7325 * tui/tui-data.h (union tui_which_element) <simple_string>:
7327 (struct tui_source_info): New.
7328 (struct tui_source_window_base) <execution_info>: Change type.
7329 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7330 case, and add assert.
7331 (tui_alloc_content): Add assert.
7333 2019-06-25 Tom Tromey <tom@tromey.com>
7335 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7336 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7337 * tui/tui-data.c (tui_alloc_win_info): Remove.
7339 2019-06-25 Tom Tromey <tom@tromey.com>
7341 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7342 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7345 2019-06-25 Tom Tromey <tom@tromey.com>
7347 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7348 make_visible_with_new_height method.
7349 (tui_win_info::make_visible_with_new_height): New method.
7350 (tui_source_window_base::do_make_visible_with_new_height)
7351 (tui_data_window::do_make_visible_with_new_height)
7352 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7353 (make_visible_with_new_height): Remove.
7354 (tui_resize_all, tui_adjust_win_heights): Use
7355 make_visible_with_new_height method.
7356 * tui/tui-data.h (struct tui_win_info)
7357 <do_make_visible_with_new_height, make_visible_with_new_height>:
7359 (struct tui_source_window_base, struct tui_data_window)
7360 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7363 2019-06-25 Tom Tromey <tom@tromey.com>
7365 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7367 (update_tab_width): Call update_tab_width method.
7368 * tui/tui-data.h (struct tui_win_info)
7369 (struct tui_source_window_base) <update_tab_width>: New methods.
7371 2019-06-25 Tom Tromey <tom@tromey.com>
7373 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7375 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7377 (tui_gen_win_info::make_visible): Update.
7378 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7380 * tui/tui-data.h (enum tui_box): New enum.
7381 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7383 2019-06-25 Tom Tromey <tom@tromey.com>
7385 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7386 init_and_make_win for EXEC_INFO_WIN.
7387 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7389 (struct tui_win_info) <~tui_win_info>: Inline.
7390 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7392 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7393 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7395 (tui_initialize_static_data): Update.
7396 (~tui_gen_win_info): Handle more cleanup here.
7397 (~tui_source_window_base): Delete "execution_info".
7398 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7400 2019-06-25 Tom Tromey <tom@tromey.com>
7402 * tui/tui-layout.c (make_command_window): Don't set
7404 (show_source_disasm_command): Call the reset method.
7405 (show_data): Don't set can_highlight. Call the reset method.
7406 (tui_gen_win_info::reset): Rename from init_gen_win_info
7407 (init_and_make_win): Simplify. Return tui_gen_win_info.
7408 (show_source_or_disasm_and_command): Call the reset method.
7409 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7410 (struct tui_cmd_window): Set can_highlight.
7412 2019-06-25 Tom Tromey <tom@tromey.com>
7414 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7416 (tui_make_visible, tui_make_invisible): Rewrite.
7417 (tui_win_info::make_visible): Remove.
7418 (tui_source_window_base::make_visible): Update.
7419 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7420 method. Moved from...
7421 (struct tui_win_info) <make_visible>: ...here.
7423 2019-06-25 Tom Tromey <tom@tromey.com>
7425 * tui/tui-winsource.c
7426 (tui_source_window_base::do_scroll_horizontal): Remove direction
7428 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7429 direction parameter.
7430 * tui/tui-win.c (tui_win_info::forward_scroll)
7431 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7432 (tui_win_info::right_scroll): Update.
7433 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7434 direction parameter.
7435 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7436 direction parameter.
7437 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7438 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7439 Remove direction parameter.
7440 (struct tui_source_window_base, struct tui_source_window)
7441 (struct tui_disasm_window, struct tui_data_window)
7442 (struct tui_cmd_window): Update.
7444 2019-06-25 Tom Tromey <tom@tromey.com>
7446 * tui/tui-winsource.h (tui_set_exec_info_content)
7447 (tui_show_exec_info_content, tui_erase_exec_info_content)
7448 (tui_clear_exec_info_content, tui_update_exec_info): Change
7449 argument to tui_source_window_base.
7450 * tui/tui-winsource.c (tui_set_exec_info_content)
7451 (tui_show_exec_info_content, tui_erase_exec_info_content)
7452 (tui_clear_exec_info_content, tui_update_exec_info): Change
7453 argument to tui_source_window_base.
7455 2019-06-25 Tom Tromey <tom@tromey.com>
7457 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7458 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7462 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7465 2019-06-25 Tom Tromey <tom@tromey.com>
7467 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7469 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7471 * tui/tui-source.c (tui_set_source_content): Update.
7472 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7474 2019-06-25 Tom Tromey <tom@tromey.com>
7476 * tui/tui-win.c (window_name_completer, tui_set_focus)
7477 (tui_all_windows_info): Use name method.
7478 * tui/tui-data.h (struct tui_gen_win_info)
7479 (struct tui_source_window, struct tui_disasm_window)
7480 (struct tui_data_window, struct tui_cmd_window) <name>: New
7482 (tui_win_name): Don't declare.
7483 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7484 (tui_win_name): Remove.
7486 2019-06-25 Tom Tromey <tom@tromey.com>
7488 * tui/tui-winsource.h (tui_update_source_window)
7489 (tui_update_source_window_as_is): Change parameter type.
7490 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7491 to be a tui_source_window_base.
7492 (tui_update_source_window_as_is): Likewise.
7493 * tui/tui-win.c (make_visible_with_new_height): Update.
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7497 * tui/tui-winsource.c (tui_erase_source_content)
7498 (tui_show_source_content, tui_show_exec_info_content)
7499 (tui_erase_exec_info_content): Use refresh_window method.
7500 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7501 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7502 from tui_refresh_win.
7503 (tui_data_window::refresh_window): New method.
7504 (tui_win_info::refresh, tui_source_window_base::refresh)
7505 (tui_refresh_all): Use refresh_window method.
7506 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7508 * tui/tui-regs.c (tui_display_register): Call refresh_window
7510 * tui/tui-layout.c (show_source_disasm_command)
7511 (show_source_or_disasm_and_command): Call refresh_window method.
7512 * tui/tui-data.h (struct tui_gen_win_info)
7513 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7516 2019-06-25 Tom Tromey <tom@tromey.com>
7518 * tui/tui.c (tui_rl_other_window, tui_enable)
7519 (tui_is_window_visible, tui_get_command_dimension): Update.
7520 * tui/tui-winsource.c (tui_update_source_window_as_is)
7521 (tui_clear_source_content, tui_erase_source_content)
7522 (tui_show_source_line, tui_source_window_base::refill)
7523 (tui_source_window_base::do_scroll_horizontal)
7524 (tui_source_window_base::set_is_exec_point_at)
7525 (tui_update_breakpoint_info, tui_set_exec_info_content)
7526 (tui_alloc_source_buffer, tui_line_is_displayed)
7527 (tui_addr_is_displayed): Update.
7528 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7529 (tui_check_and_display_highlight_if_needed)
7530 (tui_win_info::make_visible, tui_win_info::refresh)
7531 (tui_refresh_all): Update.
7532 * tui/tui-windata.c (tui_first_data_item_displayed)
7533 (tui_delete_data_content_windows, tui_erase_data_content)
7534 (tui_display_all_data, tui_data_window::refresh_all)
7535 (tui_check_data_values): Update.
7536 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7537 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7538 (tui_win_info::backward_scroll, tui_refresh_all_win)
7539 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7540 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7541 (tui_source_window_base::set_new_height)
7542 (tui_data_window::set_new_height)
7543 (make_invisible_and_set_new_height)
7544 (make_visible_with_new_height, new_height_ok)
7545 (parse_scrolling_args): Update.
7546 * tui/tui-stack.c (tui_show_frame_info): Update.
7547 * tui/tui-source.c (tui_set_source_content)
7548 (tui_set_source_content_nil, tui_source_is_displayed)
7549 (tui_source_window::do_scroll_vertical): Update.
7550 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7551 (tui_display_registers_from, tui_display_reg_element_at_line)
7552 (tui_check_register_values, tui_reg_command): Update.
7553 * tui/tui-layout.c (tui_default_win_height)
7554 (show_source_disasm_command, show_data, init_and_make_win)
7555 (show_source_or_disasm_and_command): Update.
7556 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7557 (tui_redisplay_readline, tui_mld_flush)
7558 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7560 * tui/tui-disasm.c (tui_set_disassem_content)
7561 (tui_disasm_window::do_scroll_vertical): Update.
7562 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7564 (struct tui_win_info): Derive from tui_gen_win_info.
7565 <~tui_win_info>: Mark as override.
7566 <generic>: Remove member.
7567 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7568 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7569 (~tui_data_window, ~tui_win_info)
7570 (tui_free_all_source_wins_content): Update.
7571 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7573 2019-06-25 Tom Tromey <tom@tromey.com>
7575 * tui/tui-layout.c (init_and_make_win): Use new.
7576 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7577 destructor, initializers.
7578 (tui_alloc_generic_win_info): Don't declare.
7579 * tui/tui-data.c (_locator): Add argument to constructor.
7580 (source_win, disasm_win): New globals.
7581 (exec_info): Remove.
7582 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7584 (tui_alloc_generic_win_info): Remove.
7585 (init_content_element): Use new.
7586 (tui_win_info::tui_win_info): Update.
7587 (free_content_elements) <case DATA_WIN>: Use delete.
7589 2019-06-25 Tom Tromey <tom@tromey.com>
7591 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7592 * tui/tui-windata.c (tui_first_data_item_displayed)
7593 (tui_delete_data_content_windows): Update.
7594 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7595 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7596 (tui_display_registers_from, tui_check_register_values): Update.
7597 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7599 * tui/tui-data.c (init_content_element): Update. Allocate the new
7601 (tui_free_data_content): Update.
7602 (free_content_elements) <case DATA_WIN>: Free the window.
7604 2019-06-25 Tom Tromey <tom@tromey.com>
7606 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7608 * tui/tui-layout.c (make_command_window)
7609 (show_source_disasm_command, show_data, init_and_make_win)
7610 (show_source_or_disasm_and_command): Update.
7611 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7613 <can_highight, is_highlighted>: Now bool.
7614 (tui_set_win_highlight): Don't declare.
7615 * tui/tui-data.c (tui_set_win_highlight): Remove.
7617 2019-06-25 Tom Tromey <tom@tromey.com>
7619 * tui/tui-wingeneral.c (make_visible): Remove check of window
7622 2019-06-25 Tom Tromey <tom@tromey.com>
7624 * tui/tui-win.c (tui_win_info::max_height)
7625 (tui_cmd_window::max_height): New methods.
7626 (new_height_ok): Call max_height.
7627 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7628 <max_height>: New method.
7630 2019-06-25 Tom Tromey <tom@tromey.com>
7632 * tui/tui-win.c (tui_source_window_base::set_new_height)
7633 (tui_data_window::set_new_height): New methods.
7634 (make_invisible_and_set_new_height): Call set_new_height method.
7635 * tui/tui-data.h (struct tui_win_info)
7636 (struct tui_source_window_base, struct tui_data_window)
7637 <set_new_height>: New method.
7639 2019-06-25 Tom Tromey <tom@tromey.com>
7641 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7642 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7643 tui_refresh_data_win.
7644 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7646 (tui_refresh_all_win): Call the refresh_all method.
7647 (tui_set_focus): Likewise.
7648 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7649 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7652 2019-06-25 Tom Tromey <tom@tromey.com>
7654 * tui/tui-winsource.h (tui_refill_source_window)
7655 (tui_set_is_exec_point_at): Don't declare.
7656 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7657 (tui_source_window_base::refill): Rename from
7658 tui_refill_source_window.
7659 (tui_source_window_base::do_scroll_horizontal): Update.
7660 (tui_source_window_base::set_is_exec_point_at): Rename from
7661 tui_set_is_exec_point_at.
7662 (tui_update_all_breakpoint_info): Update.
7663 * tui/tui-stack.c (tui_show_frame_info): Update.
7664 * tui/tui-layout.c (show_data): Add cast.
7665 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7666 * tui/tui-data.h (struct tui_source_window_base) <refill,
7667 set_is_exec_point_at>: New methods.
7668 (tui_source_windows, tui_add_to_source_windows): Update types.
7669 (tui_add_to_source_windows): Remove redundant declaration.
7670 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7671 (tui_source_windows): Change return type.
7672 (tui_clear_source_windows_detail): Update.
7673 (tui_add_to_source_windows): Change type of parameter.
7674 (tui_free_all_source_wins_content): Update.
7676 2019-06-25 Tom Tromey <tom@tromey.com>
7678 * tui/tui-wingeneral.c (tui_win_info::refresh)
7679 (tui_source_window_base::refresh): New methods.
7680 (tui_refresh_all): Call the refresh method.
7681 * tui/tui-data.h (struct tui_win_info)
7682 (struct tui_source_window_base) <refresh>: New method.
7684 2019-06-25 Tom Tromey <tom@tromey.com>
7686 * tui/tui.h (tui_is_window_visible): Return bool.
7687 * tui/tui.c (tui_is_window_visible): Return bool.
7688 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7689 (tui_make_visible, tui_make_invisible)
7690 (tui_win_info::make_visible)
7691 (tui_source_window_base::make_visible, make_all_visible)
7692 (tui_make_all_visible, tui_make_all_invisible): Update.
7693 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7694 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7696 (struct tui_win_info, struct tui_source_window_base)
7697 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7698 * tui/tui-data.c (tui_init_generic_part): Update.
7700 2019-06-25 Tom Tromey <tom@tromey.com>
7702 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7703 (tui_source_window_base::make_visible): New methods.
7704 (make_all_visible): Make method call.
7705 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7706 (struct tui_source_window_base, struct tui_cmd_window): Override
7708 (tui_win_is_source_type): Don't declare.
7709 * tui/tui-data.c (tui_win_is_source_type): Remove.
7711 2019-06-25 Tom Tromey <tom@tromey.com>
7713 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7716 2019-06-25 Tom Tromey <tom@tromey.com>
7718 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7719 Inline constructor. Add initializers for members.
7720 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7721 constructors; now inline in class.
7723 2019-06-25 Tom Tromey <tom@tromey.com>
7725 * tui/tui-regs.c (tui_show_registers): Update.
7726 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7728 * tui/tui-data.c (tui_data_window::clear_detail)
7729 (tui_data_window): Update.
7731 2019-06-25 Tom Tromey <tom@tromey.com>
7733 * tui/tui-windata.c (tui_display_all_data)
7734 (tui_display_data_from_line, tui_display_data_from)
7735 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7737 * tui/tui-regs.c (tui_last_regs_line_no)
7738 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7739 (tui_show_registers, tui_show_register_group)
7740 (tui_display_registers_from, tui_display_reg_element_at_line)
7741 (tui_display_registers_from_line, tui_check_register_values)
7742 (tui_reg_next, tui_reg_prev): Update.
7743 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7744 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7746 (struct tui_win_info) <detail>: Remove. Add new fields from
7748 (TUI_DATA_WIN): Add cast.
7749 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7750 (~tui_data_window): Simplify.
7752 2019-06-25 Tom Tromey <tom@tromey.com>
7754 * tui/tui-layout.c (show_source_disasm_command)
7755 (show_source_or_disasm_and_command): Update.
7756 * tui/tui-io.c (update_cmdwin_start_line)
7757 (tui_redisplay_readline): Update.
7758 * tui/tui-data.h (struct tui_command_info): Remove.
7759 (struct tui_win_info) <detail>: Remove command_info member.
7760 (struct tui_data_window) <start_line>: New member, from
7762 (TUI_CMD_WIN): Add casts.
7764 2019-06-25 Tom Tromey <tom@tromey.com>
7766 * tui/tui-winsource.c (tui_update_source_window)
7767 (tui_refill_source_window)
7768 (tui_source_window_base::do_scroll_horizontal)
7769 (tui_update_breakpoint_info, tui_set_exec_info_content)
7770 (tui_show_exec_info_content, tui_erase_exec_info_content)
7771 (tui_clear_exec_info_content): Update.
7772 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7774 * tui/tui-win.c (make_invisible_and_set_new_height)
7775 (make_visible_with_new_height): Update.
7776 * tui/tui-source.c (tui_set_source_content)
7777 (tui_show_symtab_source): Update.
7778 * tui/tui-layout.c (extract_display_start_addr)
7779 (show_source_disasm_command, show_data)
7780 (make_source_or_disasm_window)
7781 (show_source_or_disasm_and_command): Update.
7782 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7783 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7785 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7786 to tui_source_window_base.
7787 (struct tui_win_info) <detail>: Remove source_info member.
7788 (struct tui_source_window_base) <has_locator>: Inline.
7789 Move contents from tui_source_info; rename has_locator member to
7791 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7792 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7794 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7796 (tui_free_all_source_wins_content): Cast to
7797 tui_source_window_base.
7799 2019-06-25 Tom Tromey <tom@tromey.com>
7801 * tui/tui-win.c (make_invisible_and_set_new_height)
7802 (make_visible_with_new_height): Call has_locator method.
7803 * tui/tui-layout.c (show_source_disasm_command, show_data)
7804 (show_source_or_disasm_and_command): Update for bool change.
7805 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7806 (tui_win_info) <has_locator>: New method.
7807 (struct tui_source_window_base) <has_locator>: New method.
7808 (tui_win_has_locator): Don't declare.
7809 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7810 from tui_win_has_locator.
7811 (tui_source_window_base): Use false, not FALSE.
7813 2019-06-25 Tom Tromey <tom@tromey.com>
7815 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7816 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7817 clear_detail method directly.
7818 (tui_clear_win_detail): Remove.
7820 2019-06-25 Tom Tromey <tom@tromey.com>
7822 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7823 "this", not TUI_DISASM_WIN.
7825 2019-06-25 Tom Tromey <tom@tromey.com>
7827 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7829 * tui/tui-winsource.c
7830 (tui_source_window_base::do_scroll_horizontal): Rename from
7831 tui_horizontal_source_scroll.
7832 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7833 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7834 from tui_vertical_data_scroll.
7835 * tui/tui-win.h (tui_scroll): Don't declare.
7836 * tui/tui-win.c (tui_win_info::forward_scroll)
7837 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7838 (tui_win_info::right_scroll): Rename and update.
7839 (tui_scroll_forward_command, tui_scroll_backward_command)
7840 (tui_scroll_left_command, tui_scroll_right_command): Update.
7841 (tui_scroll): Remove.
7842 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7843 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7844 from tui_vertical_source_scroll.
7845 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7846 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7847 from tui_vertical_disassem_scroll.
7848 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7849 do_scroll_horizontal>: New methods.
7850 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7852 (struct tui_source_window_base): Add do_scroll_horizontal.
7853 (struct tui_source_window, struct tui_disasm_window): Add
7855 (struct tui_data_window, struct tui_cmd_window): Add
7856 do_scroll_horizontal and do_scroll_vertical.
7857 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7859 2019-06-25 Tom Tromey <tom@tromey.com>
7861 * tui/tui-data.h (struct tui_source_window_base): New struct.
7862 (struct tui_source_window): Derive from tui_source_window_base.
7863 (struct tui_disasm_window): New struct.
7864 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7865 from tui_source_window::clear_detail.
7866 (tui_source_window_base): Rename from tui_source_window.
7867 (~tui_source_window_base): Rename from ~tui_source_window.
7868 (tui_alloc_win_info): Create a tui_disasm_window.
7870 2019-06-25 Tom Tromey <tom@tromey.com>
7872 * tui/tui-data.h (struct tui_source_window)
7873 (struct tui_data_window): Declare destructors.
7874 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7876 (tui_win_info): Simplify.
7878 2019-06-25 Tom Tromey <tom@tromey.com>
7880 * tui/tui-winsource.c (tui_display_main)
7881 (tui_update_source_windows_with_addr)
7882 (tui_update_all_breakpoint_info): Update.
7883 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7884 (new_height_ok, parse_scrolling_args): Update.
7885 * tui/tui-stack.c (tui_show_frame_info): Update.
7886 * tui/tui-data.h (struct tui_list): Remove.
7887 (tui_source_windows): Return a reference to a std::vector.
7888 * tui/tui-data.c (source_windows): Now a std::vector.
7889 (tui_source_windows): Change return type.
7890 (tui_clear_source_windows): Rewrite.
7891 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7892 (tui_free_all_source_wins_content): Rewrite.
7894 2019-06-25 Tom Tromey <tom@tromey.com>
7896 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7897 (struct tui_data_window, struct tui_cmd_window): Declare
7898 clear_detail method.
7899 * tui/tui-data.c (tui_source_window::clear_detail)
7900 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7902 (tui_clear_win_detail): Simplify.
7904 2019-06-25 Tom Tromey <tom@tromey.com>
7906 * tui/tui-layout.c (make_source_window, make_disasm_window)
7907 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7908 Return the new window.
7909 (show_source_disasm_command, show_data)
7910 (show_source_or_disasm_and_command): Update.
7912 2019-06-25 Tom Tromey <tom@tromey.com>
7914 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7915 parameter. Return the new window.
7916 (show_source_disasm_command): Update and remove NULL check.
7917 (show_source_or_disasm_and_command): Update.
7919 2019-06-25 Tom Tromey <tom@tromey.com>
7921 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7923 2019-06-25 Tom Tromey <tom@tromey.com>
7925 * tui/tui-data.h (struct tui_win_info): Make constructor
7926 protected. Make destructor virtual. Add initializers.
7927 (tui_source_window, tui_data_window, tui_cmd_window): New
7929 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7930 constructor. Add "type" parameter.
7931 (tui_source_window, tui_data_window, tui_cmd_window): New
7933 (tui_alloc_win_info): Instantiate the appropriate subclass.
7935 2019-06-25 Tom Tromey <tom@tromey.com>
7937 * tui/tui-win.c (tui_resize_all): Use delete.
7938 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7940 (tui_free_window): Don't declare.
7941 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7944 2019-06-25 Tom Tromey <tom@tromey.com>
7946 * tui/tui-data.h (struct tui_win_info): Add constructor.
7947 * tui/tui-data.c (tui_alloc_win_info): Use new.
7948 (tui_free_window): Use delete.
7950 2019-06-22 Tom Tromey <tom@tromey.com>
7952 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7954 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7956 2019-06-22 Tom Tromey <tom@tromey.com>
7958 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7960 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7962 2019-06-22 Tom de Vries <tdevries@suse.de>
7964 * dwarf2read.c (create_addrmap_from_aranges)
7965 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7968 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7970 * dwarf2read.h (dwarf2_section_info_def): Remove.
7971 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7972 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7973 std::vector<dwarf2_section_info>.
7974 (struct dwo_file) <~dwo_file>: Remove.
7975 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7977 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7978 (dwarf2_read_debug_names): Likewise.
7979 (create_debug_types_hash_table): Change parameter type to
7980 array_view, adjust code accordingly.
7981 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7982 (partial_die_info::fixup): Likewise.
7983 (determine_prefix): Likewise.
7984 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7986 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7988 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7990 <~dwo_file>: Remove call to gdb_bfd_unref.
7991 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7992 gdb_bfd_ref_ptr::get.
7994 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7996 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7998 * dwarf2read.c (struct dwo_file): Initialize fields.
8000 (free_dwo_file): Remove, move content to ~dwo_file.
8001 (struct dwo_file_deleter): Remove.
8002 (dwo_file_up>: Remove custom deleter.
8003 (free_dwo_files): Remove.
8004 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8006 (process_skeletonless_type_units): Call unique_ptr::get.
8007 (allocate_dwo_file_hash_table): Add deleter to created hash
8008 table. Change return type to htab_up.
8009 (lookup_dwo_file_slot): Don't memset dwo_file, call
8011 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8012 (create_dwo_unit_in_dwp_v2): Likewise.
8013 (open_and_init_dwo_file): Likewise.
8014 (free_dwo_file_from_slot): Remove.
8016 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8018 * dwarf2read.h (struct dwarf2_section_info) <readin,
8019 is_virtual>: Change type to bool.
8020 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8023 2019-06-19 Tom Tromey <tom@tromey.com>
8025 * tui/tui-data.h (tui_init_content_element): Don't declare.
8027 2019-06-19 Tom Tromey <tom@tromey.com>
8029 * tui/tui-data.h (tui_init_win_info): Don't declare.
8031 2019-06-19 Tom de Vries <tdevries@suse.de>
8033 * dwarf2read.h (abstract_to_concrete): Change type to
8034 std::unordered_map<sect_offset, std::vector<sect_offset>,
8035 gdb::hash_enum<sect_offset>>.
8037 2019-06-19 Tom Tromey <tromey@adacore.com>
8039 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8040 EVAL_AVOID_SIDE_EFFECTS specially.
8042 2019-06-19 Tom Tromey <tromey@adacore.com>
8044 * source-cache.c (highlighter): New global.
8045 (source_cache::get_source_lines): Create a highlighter on demand.
8047 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8049 * defs.h (deprecated_interactive_hook): Delete declaration.
8050 * interps.c (clear_interpreter_hooks): Remove use of
8051 deprecated_interactive_hook.
8052 * top.c (deprecated_interactive_hook): Delete definition.
8053 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8055 2019-06-18 Tom de Vries <tdevries@suse.de>
8058 * dwarf2read.h (abstract_to_concrete): Change type from
8059 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8060 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8061 * dwarf2read.c (read_variable): Update.
8062 (dwarf2_fetch_die_loc_sect_off): Update.
8064 2019-06-17 Tom de Vries <tdevries@suse.de>
8067 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8068 accessing parent[parent_len - 1].
8070 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8073 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8074 call dtrace_process_dof with NULL dof.
8076 2019-06-16 Tom de Vries <tdevries@suse.de>
8079 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8081 2019-06-16 Tom Tromey <tom@tromey.com>
8083 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8084 (make_all_visible): Use address of member.
8086 2019-06-16 Tom Tromey <tom@tromey.com>
8088 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8089 (tui_free_window, free_content, free_content_elements): Remove
8091 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8093 * tui/tui-regs.c (tui_show_register_group)
8094 (tui_display_registers_from, tui_display_reg_element_at_line):
8095 Remove unnecessary cast.
8097 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8099 * linux-nat.c (normal_mask): Delete.
8100 (_initialize_linux_nat): Don't initialise normal_mask.
8102 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8105 * dwarf-index-write.h (write_psymtabs_to_index): Add
8106 dwz_basename parameter.
8107 * dwarf-index-write.c (write_gdbindex): Move file writing to
8108 write_gdbindex_1. Change return type void.
8109 (assert_file_size): Move up, remove filename parameter.
8110 (write_gdbindex_1): New function.
8111 (write_debug_names): Change return type to void, call
8113 (struct index_wip_file): New struct.
8114 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8115 file logic to index_wip_file. Write index for dwz file if
8117 (save_gdb_index_command): Pass basename of dwz file, if present.
8118 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8119 build-id of dwz file, if present.
8120 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8121 (dwarf2_get_dwz_file): Likewise.
8122 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8123 (dwarf2_get_dwz_file): Likewise.
8125 2019-06-16 Tom Tromey <tom@tromey.com>
8127 * coffread.c (process_coff_symbol): Use xstrdup.
8128 * value.c (create_internalvar): Use xstrdup.
8130 2019-06-16 Tom Tromey <tom@tromey.com>
8132 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8133 * breakpoint.c (stopin_command, stopat_command)
8134 (until_break_command, decode_location_default): Remove unnecessary
8136 * utils.c (subset_compare): Remove unnecessary cast.
8137 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8139 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8141 * infcmd.c (path_command): Remove unnecessary cast.
8142 * coffread.c (decode_type): Remove unnecessary cast.
8143 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8144 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8145 * tui/tui-stack.c (tui_show_locator_content)
8146 (tui_show_frame_info): Remove unnecessary cast.
8147 * tui/tui-win.c (tui_scroll_forward_command)
8148 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8149 (parse_scrolling_args): Remove unnecessary cast.
8150 * tui/tui-data.c (init_win_info, tui_del_window)
8151 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8152 (free_content_elements): Remove unnecessary cast.
8153 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8155 * tui/tui-source.c (tui_set_source_content)
8156 (tui_vertical_source_scroll): Remove unnecessary cast.
8157 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8159 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8160 * tui/tui-regs.c (tui_display_registers_from)
8161 (tui_display_register): Remove unnecessary cast.
8162 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8163 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8164 (make_visible): Remove unnecessary cast.
8165 * tui/tui-winsource.c (tui_erase_source_content)
8166 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8168 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8169 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8170 * stabsread.c (read_type, read_array_type, read_range_type):
8171 Remove unnecessary cast.
8172 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8173 (parse_symbol, parse_type, upgrade_type, parse_external)
8174 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8176 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8178 2019-06-16 Tom Tromey <tom@tromey.com>
8180 * tui/tui-data.c (tui_alloc_generic_win_info)
8181 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8184 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8185 Andrew Burgess <andrew.burgess@embecosm.com>
8187 * f-typeprint.c (f_print_type): Don't return early for not
8188 associated or not allocated types.
8189 (f_type_print_varspec_suffix): Add print_rank parameter and print
8190 ranks of array types in case they dangling.
8191 (f_type_print_base): Add print_rank parameter.
8193 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8195 * NEWS: Mention new MI commands.
8196 * break-catch-throw.c (enum exception_event_kind): Move to
8198 (print_mention_exception_catchpoint): Output text as a single
8200 (catch_exception_command_1): Rename to...
8201 (catch_exception_event): ...this, make non-static, update header
8202 command, and change some parameter types.
8203 (catch_catch_command): Update for changes to
8204 catch_exception_command_1.
8205 (catch_throw_command): Likewise.
8206 (catch_rethrow_command): Likewise.
8207 * breakpoint.c (enum exception_event_kind): Delete.
8208 * breakpoint.h (enum exception_event_kind): Moved here from
8209 break-catch-throw.c.
8210 (catch_exception_event): Declare.
8211 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8212 (mi_cmd_catch_throw): New function.
8213 (mi_cmd_catch_rethrow): New function.
8214 (mi_cmd_catch_catch): New function.
8215 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8216 'catch-catch' entries.
8217 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8218 (mi_cmd_catch_rethrow): Declare.
8219 (mi_cmd_catch_catch): Declare.
8221 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8223 * annotate.c (annotate_source_line): Change return type to void,
8224 update implementation to match.
8225 * annotate.h (annotate_source_line): Change return type to void,
8226 update header comment.
8227 * stack.c (print_frame_info): Don't change what frame information
8228 is printed based on whether annotations are on or not.
8230 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8232 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8233 (annotate_source): Make static.
8234 (annotate_source_line): Moved from source.c and renamed from
8235 identify_source_line. Update the return type.
8236 * annotate.h (annotate_source): Delete declaration.
8237 (annotate_source_line): Declaration moved from source.h, and
8238 renamed from identify_source_line. Return type updated.
8239 * source.c (identify_source_line): Moved to annotate.c and renamed
8240 to annotate_source_line.
8241 (info_line_command): Remove check of annotation_level.
8242 * source.h (identify_source_line): Move declaration to annotate.h
8243 and rename to annotate_source_line.
8244 * stack.c: Add 'annotate.h' include.
8245 (print_frame_info): Remove check of annotation_level before
8246 calling annotate_source_line.
8248 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8250 * source-cache.c (source_cache::get_plain_source_lines): Use
8251 open_source_file_with_line_charpos instead of just
8252 open_source_file, remove call to find_source_lines.
8253 (source_cache::get_source_lines): Likewise.
8254 * source.c (find_source_lines): Make static.
8255 (get_filename_and_charpos): Renamed into...
8256 (open_source_file_with_line_charpos): ..this along with changes to
8257 return a scoped_fd, and some other minor clean ups.
8258 (identify_source_line): Use open_source_file_with_line_charpos.
8259 (search_command_helper): Use open_source_file_with_line_charpos
8260 instead of just open_source_file, remove call to
8262 * source.h (open_source_file_with_line_charpos): Declare new
8264 (find_source_lines): Delete declaration.
8266 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8268 * source.c (get_filename_and_charpos): Remove fullname
8270 (identify_source_line): Update call to get_filename_and_charpos.
8272 2019-06-14 Tom Tromey <tromey@adacore.com>
8275 * ui-style.h (skip_ansi_escape): Update comment.
8276 * ui-file.h (class no_terminal_escape_file): New class.
8277 * ui-file.c (no_terminal_escape_file::write)
8278 (no_terminal_escape_file::puts): New methods.
8279 * cli/cli-logging.c (handle_redirections): Use
8280 no_terminal_escape_file.
8282 2019-06-14 Tom Tromey <tromey@adacore.com>
8284 * NEWS: Move convenience variable news above Python news.
8286 2019-06-14 Tom Tromey <tom@tromey.com>
8288 * gnulib: Move directory to top-level.
8289 * configure.ac: Don't configure gnulib.
8290 * configure: Rebuild.
8291 * common/common-defs.h: Use new path to gnulib.
8292 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8294 (INCGNU): Look in new gnulib location.
8295 (HFILES_NO_SRCDIR): Remove gnulib files.
8296 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8297 (generated_files): Remove GNULIB_H.
8298 ($(LIBGNU), all-lib): Remove targets.
8299 (distclean): Don't mention GNULIB_BUILDDIR.
8300 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8302 2019-06-14 Tom Tromey <tromey@adacore.com>
8304 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8305 Warn if symbol file does not provide any symbols.
8307 2019-06-14 Tom Tromey <tromey@adacore.com>
8309 * source.c (find_and_open_source): Respect basenames_may_differ.
8311 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8313 * annotate.c (annotate_breakpoints_invalid): Make use of
8314 scoped_restore_terminal_state.
8315 (annotate_frames_invalid): Likewise.
8317 2019-06-14 Tom Tromey <tromey@adacore.com>
8319 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8320 allow assignment to an internalvar.
8322 2019-06-14 Tom Tromey <tromey@adacore.com>
8324 * ada-lex.l: Allow "_" in attribute names.
8326 2019-06-14 Tom Tromey <tromey@adacore.com>
8329 * regcache.c (registers_changed): Don't call alloca.
8330 * top.c (execute_command): Don't call alloca.
8332 2019-06-13 Pedro Alves <palves@redhat.com>
8334 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8335 'expression'. When parsing an expression, error out if there's
8336 junk after "unlimited".
8337 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8338 (do_set_command): Adjust calls to is_unlimited_literal.
8340 2019-06-13 Pedro Alves <palves@redhat.com>
8342 * compile/compile.c (make_compile_options_def_group): Add braces
8343 around array_view initializer.
8344 * thread.c (make_thread_apply_all_options_def_group)
8345 (make_thread_apply_all_options_def_group): Likewise.
8347 2019-06-13 Pedro Alves <palves@redhat.com>
8349 * NEWS (New commands): Mention "maint test-options
8350 require-delimiter", "maint test-options unknown-is-error", "maint
8351 test-options unknown-is-operand" and "maint show
8352 test-options-completion-result".
8353 (New command options, command completion): New section.
8354 (Completion improvements): New section.
8355 Mention that you can abbreviate "unlimited".
8357 2019-06-13 Pedro Alves <palves@redhat.com>
8359 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8360 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8361 * unittests/cli-utils-selftests.c (test_parse_flags)
8362 (test_parse_flags_qcs): Delete.
8363 (test_cli_utils): Don't call deleted functions.
8365 2019-06-13 Pedro Alves <palves@redhat.com>
8367 * thread.c: Include "cli/cli-option.h".
8368 (tp_array_compar_ascending): Global.
8369 (tp_array_compar): Delete function.
8370 (tp_array_compar_ascending, tp_array_compar_descending): New
8372 (ascending_option_def, qcs_flag_option_def)
8373 (thr_qcs_flags_option_defs)
8374 (make_thread_apply_all_options_def_group)
8375 (make_thread_apply_options_def_group): New.
8376 (thread_apply_all_command): Use gdb::option::process_options.
8377 (thread_apply_command_completer)
8378 (thread_apply_all_command_completer): New.
8379 (thread_apply_command): Use gdb::option::process_options.
8380 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8381 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8382 to generate help text of "thread apply". Adjust "taas"'s help.
8383 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8384 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8386 2019-06-13 Pedro Alves <palves@redhat.com>
8388 * thread.c (thread_apply_command): Check for invalid TID with
8389 isdigit instead of !isalpha.
8391 2019-06-13 Pedro Alves <palves@redhat.com>
8393 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8394 (validate_flags_qcs): New.
8395 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8396 (validate_flags_qcs): Declare.
8397 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8398 (make_frame_apply_options_def_group): New.
8399 (frame_apply_command_count): Process options with
8400 gdb::option::process_options.
8401 (frame_apply_completer): New.
8402 (frame_apply_level_completer, frame_apply_all_completer)
8403 (frame_apply_completer): New.
8404 (_initialize_stack): Update help of "frame apply", "frame apply
8405 level", "frame apply all" and "faas" to mention supported options
8406 and install command completers.
8407 * stack.h (frame_apply_all_completer): Declare.
8408 * thread.c: Include "stack.h".
8409 (tfaas_command): Add "--".
8410 (_initialize_thread): Update help "tfaas" to mention supported
8411 options and install command completer.
8413 2019-06-13 Pedro Alves <palves@redhat.com>
8415 * completer.c (complete_nested_command_line): New.
8416 (gdb_completion_word_break_characters_throw): Add assertion.
8417 * completer.h (complete_nested_command_line): Declare.
8419 2019-06-13 Pedro Alves <palves@redhat.com>
8421 * stack.c (parse_backtrace_qualifiers): New.
8422 (backtrace_command): Use it.
8423 (backtrace_command_completer): Complete on qualifiers.
8425 2019-06-13 Pedro Alves <palves@redhat.com>
8427 * frame.c: Include "cli/cli-option.h.
8428 (user_set_backtrace_options): New.
8429 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8431 (get_prev_frame): Adjust.
8432 (boolean_option_def, uinteger_option_def)
8433 (set_backtrace_option_defs): New.
8434 (_initialize_frame): Adjust and use
8435 gdb::option::add_setshow_cmds_for_options to install "set
8436 backtrace past-main" and "set backtrace past-entry".
8437 * frame.h: Include "cli/cli-option.h".
8438 (struct frame_print_options): Forward declare.
8439 (print_frame_arguments_all, print_frame_arguments_scalars)
8440 (print_frame_arguments_none): Declare.
8441 (print_entry_values): Delete declaration.
8442 (struct frame_print_options, user_frame_print_options): New.
8443 (struct set_backtrace_options): New.
8444 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8445 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8446 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8447 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8448 (list_args_or_locals): Add frame_print_options parameter.
8449 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8450 * python/py-framefilter.c (enumerate_args): Pass down
8451 USER_FRAME_PRINT_OPTIONS.
8452 * stack.c: Include "cli/cli-option.h".
8453 (print_frame_arguments_all, print_frame_arguments_scalars)
8454 (print_frame_arguments_none): Declare.
8455 (print_raw_frame_arguments, print_entry_values): Delete.
8456 (user_frame_print_options): New.
8457 (boolean_option_def, enum_option_def, frame_print_option_defs):
8459 (struct backtrace_cmd_options): New.
8460 (bt_flag_option_def): New.
8461 (backtrace_command_option_defs): New.
8462 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8463 (print_frame_arg, read_frame_arg, print_frame_args)
8464 (print_frame_info, print_frame): Add frame_print_options parameter
8466 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8467 (backtrace_command_1): Add frame_print_options and
8468 backtrace_cmd_options parameters and use them.
8469 (make_backtrace_options_def_group): New.
8470 (backtrace_command): Process command options with
8471 gdb::option::process_options.
8472 (backtrace_command_completer): New.
8473 (_initialize_stack): Extend "backtrace"'s help to mention
8474 supported options. Install completer for "backtrace".
8475 Install some settings commands with add_setshow_cmds_for_options.
8477 2019-06-13 Pedro Alves <palves@redhat.com>
8479 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8480 and that "set/show print raw frame-arguments" are now deprecated.
8482 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8484 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8485 * stack.c (_initialize_stack): Install "set/show print
8486 raw-frame-arguments", and deprecate "set/show print raw
8488 * valprint.c (_initialize_valprint): Deprecate "set/show print
8491 2019-06-13 Pedro Alves <palves@redhat.com>
8493 * compile/compile.c (struct compile_options): New.
8494 (compile_flag_option_def, compile_command_option_defs)
8495 (make_compile_options_def_group): New.
8496 (compile_file_command): Handle options with
8497 gdb::option::process_options.
8498 (compile_file_command_completer): New function.
8499 (compile_code_command): Handle options with
8500 gdb::option::process_options.
8501 (compile_code_command_completer): New function.
8502 (_initialize_compiler): Install completers for "compile code" and
8503 "compile file". Mention available options in "compile code" and
8504 "compile code"'s help.
8505 * completer.c (advance_to_completion_word): New, factored out from
8507 (advance_to_expression_complete_word_point): ... this.
8508 (advance_to_filename_complete_word_point): New.
8509 * completer.h (advance_to_filename_complete_word_point): New
8512 2019-06-13 Pedro Alves <palves@redhat.com>
8514 * compile/compile.c: Include "cli/cli-option.h".
8515 (compile_print_value): Scope data pointer is now a
8516 value_print_options pointer; adjust.
8517 (compile_print_command): Process options. Scope data pointer is
8518 now a value_print_options pointer; adjust.
8519 (_initialize_compile): Update "compile print"'s help to include
8520 supported options. Install a completer for "compile print".
8521 * cp-valprint.c (show_vtblprint, show_objectprint)
8522 (show_static_field_print): Delete.
8523 (_initialize_cp_valprint): Don't install "set print
8524 static-members", "set print vtbl", "set print object" here.
8525 * printcmd.c: Include "cli/cli-option.h" and
8526 "common/gdb_optional.h".
8527 (print_command_parse_format): Rework to fill in a
8528 value_print_options instead of a format_data.
8529 (print_value): Change parameter type from format_data pointer to
8530 value_print_options reference. Adjust.
8531 (print_command_1): Process options. Adjust to pass down a
8532 value_print_options.
8533 (print_command_completer): New.
8534 (_initialize_printcmd): Install print_command_completer as
8535 handle_brkchars completer for the "print" command. Update
8536 "print"'s help to include supported options.
8537 * valprint.c: Include "cli/cli-option.h".
8538 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8539 here from cp-valprint.c.
8540 (boolean_option_def, uinteger_option_def)
8541 (value_print_option_defs, make_value_print_options_def_group):
8542 New. Use gdb::option::add_setshow_cmds_for_options to install
8543 "set print elements", "set print null-stop", "set print repeats",
8544 "set print pretty", "set print union", "set print array", "set
8545 print address", "set print symbol", "set print array-indexes".
8546 * valprint.h: Include <string> and "cli/cli-option.h".
8547 (make_value_print_options_def_group): Declare.
8548 (print_value): Change parameter type from format_data pointer to
8549 value_print_options reference.
8550 (print_command_completer): Declare.
8552 2019-06-13 Pedro Alves <palves@redhat.com>
8554 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8555 (COMMON_SFILES): Add maint-test-settings.c.
8556 * cli/cli-decode.c (boolean_enums): New global, factored out from
8558 (add_setshow_boolean_cmd): ... here.
8559 * cli/cli-decode.h (boolean_enums): Declare.
8560 * cli/cli-option.c: New file.
8561 * cli/cli-option.h: New file.
8562 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8563 factored out from ...
8564 (parse_cli_boolean_value(const char *)): ... this.
8565 (is_unlimited_literal): Change parameter type to pointer to
8566 pointer. Adjust and advance ARG pointer.
8567 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8568 (parse_cli_var_enum): New, factored out from ...
8569 (do_set_command): ... this. Adjust.
8570 * cli/cli-setshow.h (parse_cli_boolean_value)
8571 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8572 (parse_cli_var_enum): Declare.
8573 * cli/cli-utils.c: Include "cli/cli-option.h".
8574 (get_ulongest): New.
8575 * cli/cli-utils.h (get_ulongest): Declare.
8576 (check_for_argument): New overloads.
8577 * maint-test-options.c: New file.
8579 2019-06-13 Pedro Alves <palves@redhat.com>
8581 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8582 parse a range if "-" is at the end of the string.
8584 2019-06-13 Pedro Alves <palves@redhat.com>
8586 * cli/cli-setshow.c (parse_auto_binary_operation)
8587 (parse_cli_boolean_value): Don't allow "o".
8589 2019-06-13 Pedro Alves <palves@redhat.com>
8591 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8592 * NEWS: Mention maint test-settings KIND.
8593 * maint-test-settings.c: New file.
8595 2019-06-13 Pedro Alves <palves@redhat.com>
8597 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8599 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8602 2019-06-13 Pedro Alves <palves@redhat.com>
8604 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8607 2019-06-13 Pedro Alves <palves@redhat.com>
8609 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8611 2019-06-13 Pedro Alves <palves@redhat.com>
8613 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8614 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8616 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8617 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8619 (check_for_argument): Skip spaces after argument.
8621 2019-06-13 Pedro Alves <palves@redhat.com>
8623 * thread.c (thread_apply_command): Adjust TID parsing.
8624 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8625 detected before end of string.
8626 (tid_is_in_list): Error out if LIST is invalid.
8628 2019-06-13 Pedro Alves <palves@redhat.com>
8630 * completer.c (complete_line_internal_1): Rewind completion word
8632 (completion_tracker::advance_custom_word_point_by): Change
8633 parameter type to int.
8634 * completer.h (completion_tracker::advance_custom_word_point_by):
8637 2019-06-13 Pedro Alves <palves@redhat.com>
8639 * completer.c (advance_to_completion_word): Handle delimiters.
8641 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8643 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8645 2019-06-11 Tom Tromey <tom@tromey.com>
8647 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8648 (xmalloc_failed): Move to alloc.c.
8649 * alloc.c: New file.
8650 * Makefile.in (COMMON_SFILES): Add alloc.c.
8652 2019-06-11 Tom Tromey <tom@tromey.com>
8654 * nat/linux-waitpid.c: Don't include server.h.
8655 (linux_debug): Remove.
8656 (my_waitpid): Update.
8658 2019-06-11 Tom Tromey <tromey@adacore.com>
8660 * infcall.c (_initialize_infcall): Remove trailing newline from
8662 * user-regs.c (_initialize_user_regs): Remove trailing newline
8664 * typeprint.c (_initialize_typeprint): Remove trailing newline
8666 * reverse.c (_initialize_reverse): Remove trailing newlines from
8668 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8670 * language.c (add_set_language_command): Remove trailing newline
8672 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8674 * disasm.c (_initialize_disasm): Remove trailing newline from
8676 * top.c (init_main): Remove trailing newline from help.
8677 * interps.c (_initialize_interpreter): Remove trailing newline
8679 * btrace.c (_initialize_btrace): Remove trailing newlines from
8681 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8683 * python/python.c (_initialize_python): Remove trailing newline
8685 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8687 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8688 from help. Reformat some text.
8689 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8691 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8694 2019-06-11 Tom Tromey <tromey@adacore.com>
8696 * darwin-nat.c (darwin_decode_exception_message)
8697 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8699 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8701 * valops.c (value_slice): Check for not allocated or not
8704 2019-06-10 Tom de Vries <tdevries@suse.de>
8707 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8708 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8711 2019-06-10 Tom de Vries <tdevries@suse.de>
8714 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8715 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8717 2019-06-10 Tom de Vries <tdevries@suse.de>
8720 * symtab.c (struct demangled_name_entry): Add language field.
8721 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8722 static minimal symbol". Set and use language field.
8724 2019-06-10 Tom Tromey <tromey@adacore.com>
8726 * ada-lang.c (_initialize_ada_language): Update help text.
8728 2019-06-10 Tom Tromey <tromey@adacore.com>
8730 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8732 * guile/guile.c (handle_boot_error): Don't end warning with a
8734 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8735 warning with a newline.
8736 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8738 (s12z_frame_cache): Likewise.
8739 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8741 * solib-svr4.c (disable_probes_interface): Don't end warning with
8743 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8745 * python/python.c (do_finish_initialization): Don't end warning
8748 2019-06-10 Tom Tromey <tom@tromey.com>
8750 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8751 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8754 2019-06-10 Tom Tromey <tromey@adacore.com>
8756 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8758 (elf_new_init): Don't call stabsread_new_init.
8759 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8760 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8761 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8763 2019-06-10 Tom de Vries <tdevries@suse.de>
8767 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8769 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8771 * source.c (find_and_open_source): Also rewrite relative file
8774 2019-04-26 Amos Bird <amosbird@gmail.com>
8776 * annotate.c (annotate_thread_exited): Add "thread-exited"
8779 2019-06-06 Tom Tromey <tromey@adacore.com>
8781 * maint.h (class scoped_command_stats): Use
8782 DISABLE_COPY_AND_ASSIGN.
8783 <print_time>: New method.
8784 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8786 (scoped_command_stats::print_time): New method.
8788 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8790 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8791 instructions of lengths 6 or 8 bytes.
8793 2019-06-04 Pedro Alves <palves@redhat.com>
8795 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8797 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8798 * breakpoint.c (condition_completer): Likewise.
8799 * cli/cli-dump.c (scan_expression): Likewise.
8800 * common/filestuff.c (mkdir_recursive): Likewise.
8801 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8802 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8803 (gdb_abspath): Likewise.
8804 * compile/compile-cplus-types.c
8805 (compile_cplus_instance::decl_name): Likewise.
8806 * completer.c (complete_explicit_location):
8807 (signal_completer, reg_or_group_completer_1): Likewise.
8808 * cp-support.c (cp_remove_params_if_any): Likewise.
8809 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8810 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8811 * infcmd.c (strip_bg_char): Likewise.
8812 * linespec.c (copy_token_string): Likewise.
8813 * mi/mi-main.c (output_cores): Likewise.
8814 * psymtab.c (psymtab_search_name):
8815 * symfile.c (test_set_ext_lang_command): Likewise.
8816 * target.c (target_fileio_read_stralloc): Likewise.
8817 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8818 * value.c (complete_internalvar): Likewise.
8820 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8822 Add objfile property to gdb.Type.
8823 * NEWS: Mention Python API addition.
8824 * python/py-type.c (typy_get_objfile): New method.
8826 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8828 * NEWS: Mention the new set|show style [title|highlight].
8829 Mention changes to "show style", "help" and "apropos".
8831 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8833 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8834 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8835 instead of print_help_for_command.
8836 (print_doc_of_command): New function.
8837 (help_list): Add 'apropos -v word' suggestion.
8838 (print_help_for_command): Style the command name using title style.
8839 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8840 (_initialize_cli_cmds): Describe -v in apropos_command help.
8842 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8844 * cli/cli-style.h (cli_style_option): Add name in constructor,
8845 add m_name class member, add constructor with intensity,
8846 add name class function.
8847 (cli_style_option::add_setshow_commands): Remove name argument.
8848 (highlight_style, title_style): New styles.
8849 * cli/cli-style.c (do_show): New function that shows a style
8850 characteristic styling the style name with itself.
8851 (set_style_name): New function.
8852 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8853 Update all callers according to the changes in cli/cli-style.h.
8854 * utils.h (fputs_highlighted): New function.
8855 * utils.c (fputs_highlighted): Likewise.
8857 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8859 * NEWS: Mention new pipe command and new convenience variables.
8861 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8863 * cli/cli-cmds.c (pipe_command): New function.
8864 (_initialize_cli_cmds): Call add_com for pipe_command.
8865 Define | as an alias for pipe.
8866 (exit_status_set_internal_vars): New function.
8867 (shell_escape): Call exit_status_set_internal_vars.
8868 cli/cli-decode.c (find_command_name_length): Recognize | as
8869 a single character command.
8871 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8873 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8874 top.c (execute_command_to_ui_file): New function, mostly a copy
8875 of execute_command_to_string.
8876 (execute_command_to_string): Implement by calling
8877 execute_command_to_ui_file.
8879 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8881 * top.h (saved_command_line): Remove declaration.
8882 * top.c (previous_saved_command_line, previous_repeat_arguments):
8884 (saved_command_line): Make static, define together with other
8886 (dont_repeat): Clear repeat_arguments.
8887 (repeat_previous, get_saved_command_line, save_command_line):
8889 (gdb_init): Initialize saved_command_line
8890 and previous_saved_command_line.
8891 * main.c (captured_main_1): Remove saved_command_line initialization.
8892 * event-top.c (handle_line_of_input): Update to use
8893 the new 'repeat' related functions instead of direct access to
8895 * command.h (repeat_previous, get_saved_command_line,
8896 save_command_line): New declarations.
8897 (dont_repeat): Add comment.
8899 2019-05-30 Tom Tromey <tromey@adacore.com>
8901 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8903 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8905 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8908 * completer.c (complete): Initialize variable word.
8910 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8912 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8913 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8914 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8915 'body' is NULL to the outter 'if', protecting the '!is_define'
8918 2019-05-29 Tom Tromey <tromey@adacore.com>
8920 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8921 (dwarf_unknown): New function.
8922 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8923 (dwarf_type_encoding_name): Use dwarf_unknown.
8925 2019-05-29 Tom Tromey <tromey@adacore.com>
8928 * cp-valprint.c (cp_print_value_fields): Call
8929 cp_print_static_field inside "try".
8931 2019-05-29 Tom Tromey <tromey@adacore.com>
8933 * inflow.c (struct terminal_info): Add default operator=.
8934 * configure: Rebuild.
8935 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8936 -Wdeprecated-copy-dtor, -Wredundant-move.
8938 2019-05-29 Tom Tromey <tromey@adacore.com>
8941 * infcmd.c (print_return_value_1): Handle finish_print
8943 (show_print_finish): New function.
8944 (_initialize_infcmd): Add "set/show print finish" commands.
8945 * valprint.c (user_print_options): Initialize new member.
8946 * valprint.h (struct value_print_options) <finish_print>: New
8949 2019-05-28 Tom Tromey <tromey@adacore.com>
8951 * ada-lang.c (ada_remove_Xbn_suffix)
8952 (find_old_style_renaming_symbol)
8953 (parse_old_style_renaming): Remove.
8954 (ada_find_renaming_symbol): Don't call
8955 find_old_style_renaming_symbol.
8956 (ada_is_renaming_symbol): Rename from
8957 ada_find_renaming_symbol. Remove "block" parameter. Return
8959 (ada_read_var_value): Update and simplify.
8960 * ada-exp.y (write_var_or_type): Remove old code.
8962 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8965 * event-top.c: Remove include comment.
8966 * inflow.c (class scoped_ignore_sigttou): Move from here...
8967 * inflow.h (class scoped_ignore_sigttou): ...to here.
8968 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8969 * top.c: Remove include comment.
8971 2019-05-27 Tom Tromey <tom@tromey.com>
8975 2019-05-22 Tom Tromey <tromey@adacore.com>
8977 * target.c (target_follow_exec): Constify parameter.
8978 * target-delegates.c: Rebuild.
8979 * remote.c (remote_target::follow_exec): Constify parameter.
8980 * infrun.c (follow_exec): Constify parameter.
8981 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8982 (target_follow_exec): Likewise.
8984 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8986 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8987 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8989 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8991 * NEWS: Add debugredirect and testsuite sections.
8993 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8995 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8996 target descriptions using exclusively floating point register name
8999 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9002 * f-lang.c (build_fortran_types): Handle the case where
9003 gdbarch_floatformat_for_type returns a nullptr.
9005 2019-05-21 Tom de Vries <tdevries@suse.de>
9008 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9010 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9013 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9015 * i386-tdep.c (i386_floatformat_for_type): Use
9016 floatformats_ia64_quad for the 16-byte floating point component
9017 within a fortran 32-byte complex number.
9019 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9021 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9022 delete default constructor.
9023 (find_partial_die): Update to return const struct.
9024 (partial_die_parent_scope): Move variable declaration into scope
9025 of its use and change its type to auto.
9026 (guess_partial_die_structure_name): Likewise.
9027 (partial_die_info::fixup): Likewise.
9029 2019-05-17 Tom Tromey <tromey@adacore.com>
9031 * source.c (find_and_open_source): Remove cast.
9033 2019-05-17 Tom Tromey <tromey@adacore.com>
9035 * annotate.c (annotate_source): Make "filename" const.
9036 * annotate.h (annotate_source): Use const.
9038 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9040 * disasm.c (set_disassembler_options): Send errors to stderr.
9042 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9044 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9045 (cli_interp_base::set_logging): Check debug_redirect.
9046 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9047 * cli/cli-logging.c (debug_redirect): Add static variable.
9048 (pop_output_files): Add default param.
9049 (handle_redirections): Print debug setting.
9050 (show_logging_command): Likewise.
9051 (_initialize_cli_logging): Add debugredirect command.
9052 * interps.c (current_interp_set_logging): Add debug_redirect
9054 * interps.h (set_logging): Add debug_redirect parameter.
9055 (current_interp_set_logging): Likewise.
9056 * mi/mi-common.h: Likewise.
9057 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9059 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9060 Tom Tromey <tromey@adacore.com>
9062 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9064 * cli/cli-interp.h (make_logging_output): Remove declaration.
9065 * cli/cli-logging.c (make_logging_output): Remove function.
9066 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9068 * ui-file.c (tee_file::tee_file): Remove bools.
9069 (tee_file::~tee_file): Remove deletes.
9070 * ui-file.h (tee_file): Remove bools.
9072 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9074 * mi/mi-cmds.h (mi_cmd_complete): New function.
9075 * mi/mi-main.c (mi_cmd_complete): Likewise.
9076 * mi/mi-cmds.c: Define new MI command -complete.
9077 * NEWS: Mention new -complete command.
9079 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9081 * completer.h (complete): New function.
9082 * completer.c (complete): Likewise.
9083 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9084 function defined in completer.h.
9086 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9088 * MAINTAINERS (Write After Approval): Add myself.
9090 2019-05-17 Tom de Vries <tdevries@suse.de>
9093 * dwarf2read.c (struct cu_partial_die_info): New struct.
9094 (find_partial_die): Return cu_partial_die_info.
9095 (partial_die_parent_scope, guess_partial_die_structure_name)
9096 (partial_die_info::fixup): Handle new return type of find_partial_die.
9098 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9100 PR breakpoints/24541
9101 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9102 "std::string", simplifying the algorithm.
9104 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9106 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9107 (stap_static_probe_ops::get_probes): Likewise.
9109 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9111 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9112 '-')" and "else if".
9113 (stap_parse_single_operand): Join checks for
9114 "gdbarch_stap_parse_special_token_p" and
9115 "gdbarch_stap_parse_special_token" in the same "if" statement.
9116 Invert check when verifying for operation on register
9119 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9121 * stap-probe.c (stap_get_opcode): Update comment.
9122 (stap_get_expected_argument_type): Likewise.
9123 (handle_stap_probe): Likewise.
9125 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9127 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9128 return type to 'bool'. Adjust comment. Use 'bool' when
9130 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9131 * stap-probe.c (stap_parse_argument_1): Likewise.
9132 (stap_is_operator): Likewise.
9133 (stap_is_generic_prefix): Likewise.
9134 (stap_is_register_prefix): Likewise.
9135 (stap_is_register_indirection_prefix): Likewise.
9136 (stap_is_integer_prefix): Likewise.
9137 (stap_generic_check_suffix): Likewise.
9138 (stap_check_integer_suffix): Likewise.
9139 (stap_check_register_suffix): Likewise.
9140 (stap_check_register_indirection_suffix): Likewise.
9141 (stap_parse_register_operand): Likewise.
9142 (stap_parse_single_operand): Likewise.
9143 (stap_parse_argument_1): Likewise.
9144 (stap_probe::get_argument_count): Likewise.
9145 (stap_is_operator): Likewise.
9147 2019-05-16 Tom Tromey <tromey@adacore.com>
9149 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9152 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9154 * linux-thread-db.c (try_thread_db_load_1): Change return type
9156 (try_thread_db_load): Likewise.
9157 (try_thread_db_load_from_pdir_1): Likewise.
9158 (try_thread_db_load_from_pdir): Likewise.
9159 (try_thread_db_load_from_sdir): Likewise.
9160 (try_thread_db_load_from_dir): Likewise.
9161 (thread_db_load_search): Likewise.
9162 (has_libpthread): Likewise.
9163 (thread_db_load): Likewise.
9165 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9167 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9168 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9169 NULL, and complain/return if that's the case.
9171 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9173 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9174 (advance, posn, abstract_read_memory): New functions.
9175 [struct mem_read_abstraction]: New struct.
9176 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9178 2019-05-14 Tom Tromey <tromey@adacore.com>
9180 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9181 value is not lval_memory.
9183 2019-05-14 Tom Tromey <tromey@adacore.com>
9185 * solib.c (info_sharedlibrary_command): Style the file name.
9187 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9189 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9190 (aarch64_vnv_type): Likewise.
9191 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9192 * common/tdesc.c: Likewise.
9193 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9194 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9195 * features/aarch64-fpu.xml: Add ieee half view.
9196 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9197 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9198 * gdbtypes.h (struct builtin_type): Likewise.
9199 (struct objfile_type): Likewise.
9201 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9203 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9205 * location.h (string_to_event_location): Likewise.
9207 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9211 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9213 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9214 New variable declaration.
9215 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9217 (print_one_breakpoint): Use ui_out::test_flags and new global
9218 variable to compute use_fixed_output.
9219 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9221 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9222 (mi_multi_location_breakpoint_output_fixed): Remove.
9223 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9225 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9226 fix_multi_location_breakpoint_output flag if version >= 3.
9227 * ui-out.h (enum ui_out_flag)
9228 <fix_multi_location_breakpoint_output>: New enumerator.
9230 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9232 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9234 2019-05-10 Tom Tromey <tromey@adacore.com>
9236 * ada-lang.c (catch_ada_completer): New function.
9237 (_initialize_ada_language): Use it.
9239 2019-05-10 Tom Tromey <tromey@adacore.com>
9241 * thread.c (print_thread_info): Make "requested_threads" const.
9242 * gdbthread.h (print_thread_info): Make "requested_threads"
9244 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9245 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9247 2019-05-08 Tom Tromey <tom@tromey.com>
9249 * gdbtypes.c (objfile_type_data): Change type.
9250 (objfile_type, _initialize_gdbtypes): Update.
9252 2019-05-08 Tom Tromey <tom@tromey.com>
9254 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9255 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9256 (_initialize_dwarf2_frame): Update.
9258 2019-05-08 Tom Tromey <tom@tromey.com>
9260 * objc-lang.c (objc_objfile_data): Change type.
9261 (find_methods): Update.
9262 (_initialize_objc_lang): Remove.
9264 2019-05-08 Tom Tromey <tom@tromey.com>
9266 * stabsread.c (rs6000_builtin_type_data): Change type.
9267 (rs6000_builtin_type, _initialize_stabsread): Update.
9269 2019-05-08 Tom Tromey <tom@tromey.com>
9271 * mips-tdep.c (mips_pdr_data): Remove.
9272 (_initialize_mips_tdep): Update.
9274 2019-05-08 Tom Tromey <tom@tromey.com>
9276 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9277 (hppa_init_objfile_priv_data, read_unwind_info)
9278 (find_unwind_entry, _initialize_hppa_tdep): Update.
9280 2019-05-08 Tom Tromey <tom@tromey.com>
9282 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9283 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9285 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9287 2019-05-08 Tom Tromey <tom@tromey.com>
9289 * mdebugread.c (basic_type_data): Change type.
9290 (basic_type, _initialize_mdebugread): Update.
9292 2019-05-08 Tom Tromey <tom@tromey.com>
9294 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9296 2019-05-08 Tom Tromey <tom@tromey.com>
9298 * nto-tdep.c (nto_inferior_data_reg): Change type.
9299 (nto_inferior_data): Update.
9300 (nto_inferior_data_cleanup, nto_new_inferior_data)
9301 (_initialize_nto_tdep): Remove.
9302 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9304 2019-05-08 Tom Tromey <tom@tromey.com>
9306 * ada-lang.c (struct ada_inferior_data): Add initializers.
9307 (ada_inferior_data): Change type.
9308 (ada_inferior_data_cleanup): Remove.
9309 (get_ada_inferior_data, ada_inferior_exit)
9310 (struct ada_pspace_data): Add initializers, destructor.
9311 (ada_pspace_data_handle): Change type.
9312 (get_ada_pspace_data): Update.
9313 (ada_pspace_data_cleanup): Remove.
9315 2019-05-08 Tom Tromey <tom@tromey.com>
9317 * coffread.c (struct coff_symfile_info): Add initializers.
9318 (coff_objfile_data_key): Move lower. Change type.
9319 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9321 (coff_free_info): Remove.
9323 2019-05-08 Tom Tromey <tom@tromey.com>
9325 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9326 (fbsd_pspace_data_handle): Move lower. Change type.
9327 (get_fbsd_pspace_data): Update.
9328 (fbsd_pspace_data_cleanup): Remove.
9329 (_initialize_fbsd_tdep): Update.
9331 2019-05-08 Tom Tromey <tom@tromey.com>
9333 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9334 (get_ada_tasks_pspace_data): Update.
9335 (ada_tasks_pspace_data_cleanup): Remove.
9336 (_initialize_tasks): Update.
9337 (ada_tasks_inferior_data_handle): Change type.
9338 (get_ada_tasks_inferior_data): Update.
9339 (ada_tasks_inferior_data_cleanup): Remove.
9340 (struct ada_tasks_pspace_data): Add initializers.
9342 2019-05-08 Tom Tromey <tom@tromey.com>
9344 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9345 * symfile-debug.c (debug_sym_get_probes): Change type.
9346 * stap-probe.c (handle_stap_probe):
9347 (stap_static_probe_ops::get_probes): Change type.
9348 * probe.h (class static_probe_ops) <get_probes>: Change type.
9349 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9350 (parse_probes_in_pspace): Update.
9351 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9353 (any_static_probe_ops::get_probes): Change type.
9354 * elfread.c (elfread_data): New typedef.
9355 (probe_key): Change type.
9356 (elf_get_probes): Likewise. Update.
9357 (probe_key_free): Remove.
9358 (_initialize_elfread): Update.
9359 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9361 (dtrace_process_dof_probe, dtrace_process_dof)
9362 (dtrace_static_probe_ops::get_probe): Change type.
9364 2019-05-08 Tom Tromey <tom@tromey.com>
9366 * xcoffread.c (struct xcoff_symfile_info): Rename from
9367 coff_symfile_info. Add initializers.
9368 (xcoff_objfile_data_key): Move lower. Change type.
9369 (XCOFF_DATA): Rewrite.
9370 (xcoff_free_info): Remove.
9371 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9372 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9373 (xcoff_initial_scan): Update.
9375 2019-05-08 Tom Tromey <tom@tromey.com>
9377 * solib-svr4.c (struct svr4_info): Add initializers and
9379 <probes_table>: Now an htab_up.
9380 (solib_svr4_pspace_data): Change type.
9381 (free_probes_table): Simplify.
9382 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9383 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9384 (probes_table_remove_objfile_probes, register_solib_event_probe)
9385 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9386 (_initialize_svr4_solib): Update.
9388 2019-05-08 Tom Tromey <tom@tromey.com>
9390 * remote.c (remote_pspace_data): Change type.
9391 (remote_pspace_data_cleanup): Remove.
9392 (get_remote_exec_file, set_pspace_remote_exec_file)
9393 (_initialize_remote): Update.
9395 2019-05-08 Tom Tromey <tom@tromey.com>
9397 * breakpoint.c (breakpoint_objfile_key): Change type.
9398 (get_breakpoint_objfile_data): Update.
9399 (free_breakpoint_objfile_data): Remove.
9400 (_initialize_breakpoint): Update.
9402 2019-05-08 Tom Tromey <tom@tromey.com>
9404 * linux-tdep.c (struct linux_info): Add initializers.
9405 (linux_inferior_data): Move. Change type.
9406 (invalidate_linux_cache_inf): Update.
9407 (linux_inferior_data_cleanup): Remove.
9408 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9410 2019-05-08 Tom Tromey <tom@tromey.com>
9412 * auxv.c (auxv_inferior_data): Move. Change type.
9413 (auxv_inferior_data_cleanup): Remove.
9414 (invalidate_auxv_cache_inf): Rewrite.
9415 (get_auxv_inferior_data, _initialize_auxv): Update.
9417 2019-05-08 Tom Tromey <tom@tromey.com>
9419 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9420 (symfile_debug_objfile_data_key): Change type.
9421 (symfile_debug_installed, debug_qf_has_symbols)
9422 (debug_qf_find_last_source_symtab)
9423 (debug_qf_forget_cached_source_info)
9424 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9425 (debug_qf_print_stats, debug_qf_dump)
9426 (debug_qf_expand_symtabs_for_function)
9427 (debug_qf_expand_all_symtabs)
9428 (debug_qf_expand_symtabs_with_fullname)
9429 (debug_qf_map_matching_symbols)
9430 (debug_qf_expand_symtabs_matching)
9431 (debug_qf_find_pc_sect_compunit_symtab)
9432 (debug_qf_map_symbol_filenames)
9433 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9434 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9435 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9436 (debug_sym_read_linetable, debug_sym_relocate): Update.
9437 (symfile_debug_free_objfile): Remove.
9438 (install_symfile_debug_logging, _initialize_symfile_debug):
9441 2019-05-08 Tom Tromey <tom@tromey.com>
9443 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9444 allocate_on_obstack.
9445 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9446 (get_dwarf2_per_objfile): Update.
9447 (set_dwarf2_per_objfile): Remove.
9448 (dwarf2_has_info, dwarf2_get_section_info): Update.
9449 (dwarf2_free_objfile): Remove.
9450 (_initialize_dwarf2_read): Update.
9452 2019-05-08 Tom Tromey <tom@tromey.com>
9454 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9456 <unsupported_script_warning_printed,
9457 script_not_found_warning_printed>: Now bool.
9458 (auto_load_pspace_data): Change type.
9459 (~auto_load_pspace_info): Rename from
9460 auto_load_pspace_data_cleanup.
9461 (get_auto_load_pspace_data, init_loaded_scripts_info)
9462 (clear_section_scripts, maybe_print_unsupported_script_warning)
9463 (maybe_print_script_not_found_warning, _initialize_auto_load):
9466 2019-05-08 Tom Tromey <tom@tromey.com>
9468 * objfiles.c (objfile_pspace_info): Add destructor and
9470 (objfiles_pspace_data): Change type.
9471 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9472 (get_objfile_pspace_data): Update.
9473 (objfiles_bfd_data): Change type.
9474 (get_objfile_bfd_data): Update.
9475 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9477 2019-05-08 Tom Tromey <tom@tromey.com>
9479 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9481 (get_catch_syscall_inferior_data): Update.
9482 (catch_syscall_inferior_data_cleanup): Remove.
9483 (_initialize_break_catch_syscall): Update.
9485 2019-05-08 Tom Tromey <tom@tromey.com>
9487 * inflow.c (struct terminal_info): Add destructor and
9489 (inflow_inferior_data): Change type.
9490 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9491 (get_inflow_inferior_data, inflow_inferior_exit)
9492 (swap_terminal_info, _initialize_inflow): Update.
9494 2019-05-08 Tom Tromey <tom@tromey.com>
9496 * target-dcache.c (target_dcache_cleanup): Remove.
9497 (target_dcache_aspace_key): Change type.
9498 (target_dcache_init_p, target_dcache_invalidate)
9499 (target_dcache_get, target_dcache_get_or_init)
9500 (_initialize_target_dcache): Update.
9501 * dcache.h (struct dcache_deleter): New.
9503 2019-05-08 Tom Tromey <tom@tromey.com>
9505 * symtab.c (struct symbol_cache): Add destructor and
9507 (symbol_cache_key): Move. Change type.
9508 (make_symbol_cache, free_symbol_cache): Remove.
9509 (get_symbol_cache): Update.
9510 (symbol_cache_cleanup): Remove.
9511 (ALL_PSPACES, symbol_cache_flush)
9512 (maintenance_print_symbol_cache)
9513 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9516 2019-05-08 Tom Tromey <tom@tromey.com>
9518 * symtab.c (struct main_info): Add destructor and initializers.
9519 (main_progspace_key): Move. Change type.
9520 (get_main_info): Update.
9521 (main_info_cleanup): Remove.
9522 (_initialize_symtab): Update.
9524 2019-05-08 Tom Tromey <tom@tromey.com>
9526 * registry.h (DECLARE_REGISTRY): Define the _key class.
9528 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9530 * NEWS: Merge two 'New commands' sections.
9532 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9534 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9535 parameter and use Ada language definition instead.
9536 (ada_val_print_ptr): Remove unused language parameter.
9537 (ada_val_print_num): Remove language parameter and use Ada language
9539 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9541 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9542 parameter and use Ada language definition instead.
9543 (ada_val_print_1): Update all ada_val_print_xxx calls.
9544 Remove language parameter.
9545 (ada_val_print): Update ada_val_print_1 call.
9547 2019-05-08 Tom Tromey <tromey@adacore.com>
9549 * remote.c (remote_hw_watchpoint_limit)
9550 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9553 2019-05-08 Tom Tromey <tromey@adacore.com>
9555 * maint.c (_initialize_maint_cmds): Move initialization code to
9557 (watchdog, show_watchdog): Move to remote.c.
9558 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9560 (_initialize_remote): Move initialization code from maint.c.
9561 * defs.h (watchdog): Don't declare.
9563 2019-05-08 Tom Tromey <tromey@adacore.com>
9565 * tui/tui-interp.c: Include main.h.
9566 * interps.c: Include main.h.
9567 * main.h (interpreter_p): Declare.
9568 * defs.h (interpreter_p): Don't declare.
9570 2019-05-08 Tom Tromey <tromey@adacore.com>
9572 * dwarf2loc.c: Include dwarf2read.h.
9573 * defs.h (read_unsigned_leb128): Don't declare.
9574 * dwarf2read.h (read_unsigned_leb128): Declare.
9576 2019-05-08 Tom Tromey <tromey@adacore.com>
9578 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9581 2019-05-08 Tom Tromey <tromey@adacore.com>
9583 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9584 when no wrap column is set.
9586 2019-05-08 Tom Tromey <tromey@adacore.com>
9588 * c-lang.c (c_get_string): Handle non-C-style arrays.
9590 2019-05-08 Tom Tromey <tromey@adacore.com>
9592 * typeprint.c (print_offset_data::update): Print the bit offset,
9593 not the number of bits remaining.
9595 2019-05-08 Tom Tromey <tromey@adacore.com>
9597 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9598 padding at end of comment.
9600 2019-05-08 Tom Tromey <tromey@adacore.com>
9602 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9605 2019-05-06 Tom Tromey <tom@tromey.com>
9607 * common/scoped_mmap.c: Include common-defs.h.
9608 * common/scoped_mmap.h: Don't include config.h.
9610 2019-05-04 Tom Tromey <tom@tromey.com>
9612 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9613 (struct aarch64_call_info): Add initializers.
9614 <si>: Now a std::vector.
9615 (pass_on_stack, aarch64_push_dummy_call): Update.
9617 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9618 Tom Tromey <tom@tromey.com>
9620 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9621 (ppc_threads): Now a std::vector. Now static.
9622 (hwdebug_find_thread_points_by_tid)
9623 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9626 2019-05-04 Tom Tromey <tom@tromey.com>
9628 * arc-tdep.c (arc_tdesc_init): Return bool.
9630 2019-05-04 Tom Tromey <tom@tromey.com>
9632 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9633 Use gdb_assert_not_reached.
9635 2019-05-04 Tom Tromey <tom@tromey.com>
9637 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9640 2019-05-04 Tom Tromey <tom@tromey.com>
9642 * arc-tdep.c (arc_tdesc_init): Use bool.
9644 2019-05-04 Tom Tromey <tom@tromey.com>
9646 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9648 2019-05-04 Tom Tromey <tom@tromey.com>
9650 * cli/cli-cmds.c (valid_command_p): Return bool.
9652 2019-05-04 Tom Tromey <tom@tromey.com>
9654 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9655 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9657 2019-05-04 Raul Tambre <raul@tambre.ee>
9659 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9660 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9661 operator for comparison.
9663 2019-05-04 Tom Tromey <tom@tromey.com>
9665 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9666 (lookup_partial_symbol, print_partial_symbols)
9667 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9668 (psymbol_compare): Update.
9669 (add_psymbol_to_bcache): Clear the entire psymbol.
9670 (maintenance_check_psymtabs): Update.
9671 * psympriv.h (struct partial_symbol): Don't derive from
9672 general_symbol_info.
9673 <obj_section, unrelocated_address, address,
9674 set_unrelocated_address>: Update.
9675 <ginfo>: New member.
9676 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9677 (debug_names::write_psymbols): Update.
9679 2019-05-04 Tom de Vries <tdevries@suse.de>
9681 * contrib/cc-with-tweaks.sh: Support -n arg.
9683 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9685 * corelow.c (core_target::detach): Ensure frame cache and
9686 register caches are cleared.
9687 inferior.c (exit_inferior_1): Likewise.
9689 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9690 Tom Tromey <tom@tromey.com>
9692 * dictionary.c (collate_pending_symbols_by_language): Remove
9693 "struct" from foreach.
9694 * symtab.c (lookup_global_symbol_from_objfile)
9695 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9697 * ser-tcp.c (net_open): Remove "struct" from foreach.
9698 * objfiles.c (objfile_relocate, objfile_rebase)
9699 (objfile_has_symbols): Remove "struct" from foreach.
9700 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9702 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9704 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9705 "struct" from foreach.
9706 * ada-lang.c (create_excep_cond_exprs)
9707 (ada_exception_catchpoint_cond_string): Remove "struct" from
9710 2019-05-03 Tom Tromey <tromey@adacore.com>
9712 * ada-exp.y (convert_char_literal): Check suffix of each
9715 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9718 * ada-exp.y (yywrap): Don't define.
9719 * ada-lex.l (%option): Add noyywrap
9722 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9724 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9725 _WIN32_WINNT to the XP level, unless already defined to a higher
9728 * unittests/parse-connection-spec-selftests.c:
9730 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9733 * symfile.c (find_separate_debug_file): Remove colon from the
9734 drive spec of DOS/Windows file names of the target, so that the
9735 file name produced from DEBUGDIR and the target's directory will
9736 be valid on DOS/Windows systems.
9738 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9740 * rust-lang.c (val_print_struct): Handle printing structures
9743 2019-05-02 Tom Tromey <tromey@adacore.com>
9745 * valarith.c (_initialize_valarith): Remove.
9747 2019-05-01 Tom Tromey <tromey@adacore.com>
9749 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9752 2019-05-01 Tom Tromey <tromey@adacore.com>
9754 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9755 for big-endian copies.
9757 2019-04-30 Ali Tamur <tamur@google.com>
9758 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9759 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9760 (read_3_bytes): New function.
9762 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9764 * windows-nat.c (main_thread_id): Delete.
9765 (handle_output_debug_string): Replace main_thread_id by
9766 current_event.dwThreadId.
9767 (fake_create_process): Likewise.
9768 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9769 Do not set main_thread_id.
9770 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9771 current_event.dwThreadId.
9772 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9774 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9776 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9777 Use current_event.dwThreadId instead of main_thread_id.
9779 2019-04-30 Tom Tromey <tromey@adacore.com>
9781 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9782 (create_excep_cond_exprs): Iterate over program spaces.
9783 (ada_exception_catchpoint_cond_string): Examine all minimal
9784 symbols for exception types.
9786 2019-04-30 Tom Tromey <tromey@adacore.com>
9789 * dwarf2read.c (process_structure_scope): Handle case where type
9790 has template parameters but no symbol was created.
9792 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9793 Chris January <chris.january@arm.com>
9795 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9797 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9799 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9801 * f-typeprint.c (f_print_type): Update rules for printing
9803 (f_type_print_varspec_suffix): Likewise.
9805 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9806 Chris January <chris.january@arm.com>
9808 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9811 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9813 * f-lang.c (build_fortran_types): Change name of void type to
9815 * f-typeprint.c (f_type_print_base): Print the name of the void
9816 type, rather than a fixed string.
9817 * f-valprint.c (f_decorations): Use lower case void string.
9819 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9820 Chris January <chris.january@arm.com>
9822 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9825 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9826 Chris January <chris.january@arm.com>
9827 David Lecomber <david.lecomber@arm.com>
9829 * f-exp.y (BINOP_INTRINSIC): New token.
9830 (exp): New parser rule handling BINOP_INTRINSIC.
9831 (f77_keywords): Add new builtin procedures.
9832 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9833 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9834 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9835 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9836 (print_unop_subexp_f): New function.
9837 (print_binop_subexp_f): New function.
9838 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9839 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9840 (dump_subexp_body_f): Likewise.
9841 (operator_check_f): Likewise.
9842 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9843 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9845 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9847 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9849 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9850 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9851 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9852 (operator_length_f): New fuction.
9853 (print_subexp_f): New function.
9854 (op_name_f): New function.
9855 (dump_subexp_body_f): New function.
9856 (operator_check_f): New function.
9857 (exp_descriptor_f): Replace standard expression handling functions
9859 * gdb/fortran-operator.def: New file.
9860 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9861 * gdb/std-operator.def: Remove UNOP_KIND.
9863 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9865 * std-operator.def: Remove unbalanced, stray double quote
9868 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9869 Chris January <chris.january@arm.com>
9870 Daniel Everett <daniel.everett@arm.com>
9871 Nick Forrington <nick.forrington@arm.com>
9872 Richard Bunt <richard.bunt@arm.com>
9874 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9875 of depth when printing anonymous structs or unions.
9876 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9877 Don't print either the top-level value, or the children if the
9878 max-depth is exceeded.
9879 (ppscm_print_children): When printing the key of a map, allow one
9880 extra level of depth.
9881 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9882 print either the top-level value, or the children if the max-depth
9884 (print_children): When printing the key of a map, allow one extra
9886 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9887 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9888 (user_print_options): Initialise max_depth field.
9889 (val_print_scalar_or_string_type_p): New function.
9890 (val_print): Check to see if the max depth has been reached.
9891 (val_print_check_max_depth): Define new function.
9892 (show_print_max_depth): New function.
9893 (_initialize_valprint): Add 'print max-depth' option.
9894 * valprint.h (struct value_print_options) <max_depth>: New field.
9895 (val_print_check_max_depth): Declare new function.
9896 * NEWS: Document new feature.
9898 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9900 * ada-lang.c (ada_language_defn): Initialise new field.
9901 * c-lang.c (c_is_string_type_p): New function.
9902 (c_language_defn): Initialise new field.
9903 (cplus_language_defn): Initialise new field.
9904 (asm_language_defn): Initialise new field.
9905 (minimal_language_defn): Initialise new field.
9906 * c-lang.h (c_is_string_type_p): Declare new function.
9907 * d-lang.c (d_language_defn): Initialise new field.
9908 * f-lang.c (f_is_string_type_p): New function.
9909 (f_language_defn): Initialise new field.
9910 * go-lang.c (go_is_string_type_p): New function.
9911 (go_language_defn): Initialise new field.
9912 * language.c (default_is_string_type_p): New function.
9913 (unknown_language_defn): Initialise new field.
9914 (auto_language_defn): Initialise new field.
9915 * language.h (struct language_defn) <la_is_string_type_p>: New
9917 (default_is_string_type_p): Declare new function.
9918 * m2-lang.c (m2_language_defn): Initialise new field.
9919 * objc-lang.c (objc_language_defn): Initialise new field.
9920 * opencl-lang.c (opencl_language_defn): Initialise new field.
9921 * p-lang.c (pascal_is_string_type_p): New function.
9922 (pascal_language_defn): Initialise new field.
9923 * rust-lang.c (rust_is_string_type_p): New function.
9924 (rust_language_defn): Initialise new field.
9926 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9928 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9930 * ada-lang.c (ada_language_defn): Initialise new field.
9931 * c-lang.c (c_language_defn): Likewise.
9932 (cplus_language_defn): Likewise.
9933 (asm_language_defn): Likewise.
9934 (minimal_language_defn): Likewise.
9935 * d-lang.c (d_language_defn): Likewise.
9936 * f-lang.c (f_language_defn): Likewise.
9937 * go-lang.c (go_language_defn): Likewise.
9938 * language.c (unknown_language_defn): Likewise.
9939 (auto_language_defn): Likewise.
9940 * m2-lang.c (m2_language_defn): Likewise.
9941 * objc-lang.c (objc_language_defn): Likewise.
9942 * opencl-lang.c (opencl_language_defn): Likewise.
9943 * p-lang.c (pascal_language_defn): Likewise.
9944 * rust-lang.c (rust_language_defn): Likewise.
9946 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9948 * ada-lang.c (ada_is_character_type): Change return type to bool.
9949 (ada_is_string_type): Likewise.
9950 * ada-lang.h (ada_is_character_type): Update declaration
9951 (ada_is_string_type): Likewise.
9953 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9955 Support style in 'frame|thread apply'
9957 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9958 * record.c (record_start, record_stop): Update callers of
9959 execute_command_to_string with false.
9960 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9961 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9963 (class string_file): New constructor with term_out parameter.
9964 Override methods term_out and can_emit_style_escape. New member
9966 (class stdio_file): Override can_emit_style_escape.
9967 (class tee_file): Override term_out and can_emit_style_escape.
9968 * utils.h (can_emit_style_escape): Remove.
9969 * utils.c (can_emit_style_escape): Likewise.
9970 Update all callers of can_emit_style_escape (SOMESTREAM) to
9971 SOMESTREAM->can_emit_style_escape.
9972 * source-cache.c (source_cache::get_source_lines): Likewise.
9973 * stack.c (frame_apply_command_count): Call execute_command_to_string
9974 passing the term_out characteristic of the current gdb_stdout.
9975 * thread.c (thr_try_catch_cmd): Likewise.
9976 * top.c (execute_command_to_string): pass term_out parameter
9977 to construct the string_file for the command output.
9978 * ui-file.c (term_cli_styling): New function (most code moved
9979 from utils.c can_emit_style_escape).
9980 (string_file::string_file, string_file::can_emit_style_escape,
9981 stdio_file::can_emit_style_escape, tee_file::term_out,
9982 tee_file::can_emit_style_escape): New functions.
9984 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9986 * NEWS: Mention the new set|show may-call-functions.
9987 * infcall.c (may_call_functions_p): New variable.
9988 (show_may_call_functions_p): New function.
9989 (call_function_by_hand_dummy): Throws an error if not
9991 (_initialize_infcall): Call add_setshow_boolean_cmd for
9994 2019-04-25 Keith Seitz <keiths@redhat.com>
9997 * cp-support.c (inspect_type): Don't attempt substitutions
9998 of symbol with the same name.
10000 2019-04-25 Tom Tromey <tromey@adacore.com>
10003 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10006 2019-04-25 Tom Tromey <tromey@adacore.com>
10008 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10010 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10011 (gdb_xml_parser::parse): Use std::move.
10012 * python/python-internal.h (gdbpy_convert_exception): Take a const
10014 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10016 * python/py-utils.c (gdbpy_convert_exception): Take a const
10018 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10020 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10022 * mi/mi-main.c (mi_print_exception): Take a const reference.
10023 * main.c (handle_command_errors): Take a const reference.
10024 * linespec.c (parse_linespec): Use std::move.
10025 * infcall.c (run_inferior_call): Use std::move.
10026 (call_function_by_hand_dummy): Use std::move.
10027 * exec.c (try_open_exec_file): Use std::move.
10028 * exceptions.h (exception_print, exception_fprintf)
10029 (exception_print_same): Update.
10030 * exceptions.c (print_exception, exception_print)
10031 (exception_fprintf, exception_print_same): Change parameters to
10033 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10034 * common/new-op.c: Use std::move.
10035 * common/common-exceptions.h (struct gdb_exception): Add move
10037 (struct gdb_exception_error, struct gdb_exception_quit, struct
10038 gdb_quit_bad_alloc): Change constructor to move constructor.
10039 (throw_exception): Change parameter to rvalue reference.
10040 * common/common-exceptions.c (throw_exception): Take rvalue
10042 * cli/cli-interp.c (safe_execute_command): Use std::move.
10043 * breakpoint.c (insert_bp_location, location_to_sals): Use
10046 2019-04-25 Tom Tromey <tromey@adacore.com>
10048 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10049 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10050 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10051 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10052 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10053 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10054 guile/scm-value.c: Use unpack.
10055 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10056 gdbscm_gdb_exception.
10057 (gdbscm_throw_gdb_exception): Likewise.
10058 (struct gdbscm_gdb_exception): New.
10059 (unpack): New function.
10060 (gdbscm_wrap): Use unpack.
10062 2019-04-25 Tom Tromey <tromey@adacore.com>
10064 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10065 (gdb_rl_callback_handler): Use std::move.
10066 * common/common-exceptions.h (struct gdb_exception): Add move
10067 assignment operator.
10068 (throw_exception_sjlj): Change "exception" to const reference.
10069 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10070 (throw_exception_sjlj): Change "exception" to const reference.
10072 2019-04-25 Tom Tromey <tromey@adacore.com>
10074 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10075 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10076 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10078 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10080 * mi/mi-interp.c (mi_interp::exec): Update.
10081 * linespec.c (parse_linespec): Update.
10082 * infcall.c (run_inferior_call): Update.
10083 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10084 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10085 (gdbscm_lookup_global_symbol): Update.
10086 * guile/scm-param.c (gdbscm_parameter_value): Update.
10087 * guile/scm-frame.c (gdbscm_frame_read_register)
10088 (gdbscm_frame_read_var): Update.
10089 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10090 * exec.c (try_open_exec_file): Update.
10091 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10092 (gdb_rl_callback_handler): Update.
10093 * common/common-exceptions.h (exception_none): Don't declare.
10094 * common/common-exceptions.c (exception_none): Don't define.
10095 (struct catcher) <exception>: Update.
10096 * cli/cli-interp.c (safe_execute_command): Update.
10097 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10099 2019-04-25 Ali Tamur <tamur@google.com>
10101 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10102 (read_attribute_value): Likewise.
10103 (dwarf2_read_addr_index): Update comment.
10104 (read_str_index): Add DW_FORM_strx.
10105 (dwarf2_string_attr): Likewise.
10106 (dwarf2_const_value_attr): Likewise.
10107 (dump_die_shallow): Likewise.
10108 (dwarf2_fetch_constant_bytes): Likewise.
10109 (skip_form_bytes): Likewise.
10110 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10112 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10116 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10117 OFFSET. Verify if current mapping contains an ELF header.
10118 (linux_find_memory_regions_full): Adjust call to
10121 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10122 Kang Li <kanglictf@gmail.com>
10126 * dwarf2-frame.c (read_initial_length): Be consistent about using
10127 unsigned representation of length.
10128 (decode_frame_entry_1): Likewise. Check for wraparound of
10129 end pointer as well as buffer overflow.
10131 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10133 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10136 2019-04-24 Tom Tromey <tromey@adacore.com>
10138 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10142 * s12z-tdep.c (s12z_unwind_pc): Delete.
10143 (s12z_unwind_sp): Delete.
10144 (s12z_gdbarch_init): Don't register deleted functions with
10147 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10149 * rl78-tdep.c (rl78_unwind_sp): Delete.
10150 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10152 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10154 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10155 (xstormy16_unwind_pc): Delete.
10156 (xstormy16_dummy_id): Delete.
10157 (xstormy16_gdbarch_init): Don't register deleted functions with
10160 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10162 * vax-tdep.c (vax_unwind_pc): Delete.
10163 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10165 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10167 * v850-tdep.c (v850_unwind_sp): Delete.
10168 (v850_unwind_pc): Delete.
10169 (v850_dummy_id): Delete.
10170 (v850_gdbarch_init): Don't register deleted functions with
10173 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10175 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10176 (tilegx_unwind_pc): Delete.
10177 (tilegx_unwind_dummy_id): Delete.
10178 (tilegx_gdbarch_init): Don't register deleted functions with
10181 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10183 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10184 (tic6x_dummy_id): Delete.
10185 (tic6x_gdbarch_init): Don't register deleted functions with
10188 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10190 * sparc-tdep.c (sparc_unwind_pc): Delete.
10191 (sparc32_gdbarch_init): Don't register deleted function with
10194 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10196 * sh-tdep.c (sh_unwind_sp): Delete.
10197 (sh_unwind_pc): Delete.
10198 (sh_dummy_id): Delete.
10199 (sh_gdbarch_init): Don't register deleted functions with
10202 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10204 * score-tdep.c (score_unwind_sp): Delete.
10205 (score_unwind_pc): Delete.
10206 (score_dummy_id): Delete.
10207 (score_gdbarch_init): Don't register deleted functions with
10210 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10212 * rx-tdep.c (rx_unwind_pc): Delete.
10213 (rx_unwind_sp): Delete.
10214 (rx_dummy_id): Delete.
10215 (rx_gdbarch_init): Don't register deleted functions with
10216 gdbarch. Update comment.
10218 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10220 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10221 (rs6000_dummy_id): Delete.
10222 (rs6000_gdbarch_init): Don't register deleted functions with
10225 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10227 * or1k-tdep.c (or1k_dummy_id): Delete.
10228 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10232 * nios2-tdep.c (nios2_dummy_id): Delete.
10233 (nios2_unwind_sp): Delete.
10234 (nios2_gdbarch_init): Don't register deleted functions with
10237 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10239 * nds32-tdep.c (nds32_dummy_id): Delete.
10240 (nds32_unwind_pc): Delete.
10241 (nds32_unwind_sp): Delete.
10242 (nds32_gdbarch_init): Don't register deleted functions with
10245 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10247 * msp430-tdep.c (msp430_unwind_pc): Delete.
10248 (msp430_unwind_sp): Delete.
10249 (msp430_dummy_id): Delete.
10250 (msp430_gdbarch_init): Don't register deleted functions with
10253 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10255 * moxie-tdep.c (moxie_unwind_sp): Delete.
10256 (moxie_unwind_pc): Delete.
10257 (moxie_dummy_id): Delete.
10258 (moxie_gdbarch_init): Don't register deleted functions with
10261 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10263 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10264 (mn10300_unwind_pc): Delete.
10265 (mn10300_unwind_sp): Delete.
10266 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10268 (mn10300_frame_unwind_init): Don't register deleted functions with
10271 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10273 * mep-tdep.c (mep_unwind_pc): Delete.
10274 (mep_unwind_sp): Delete.
10275 (mep_dummy_id): Delete.
10276 (mep_gdbarch_init): Don't register deleted functions with
10279 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10281 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10282 (m68hc11_unwind_sp): Delete.
10283 (m68hc11_gdbarch_init): Don't register deleted functions with
10286 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10288 * m32r-tdep.c (m32r_unwind_sp): Delete.
10289 (m32r_unwind_pc): Delete.
10290 (m32r_dummy_id): Delete.
10291 (m32r_gdbarch_init): Don't register deleted functions with
10294 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10296 * m32c-tdep.c (m32c_unwind_pc): Delete.
10297 (m32c_unwind_sp): Delete.
10298 (m32c_dummy_id): Delete.
10299 (m32c_gdbarch_init): Don't register deleted functions with
10302 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10304 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10305 (lm32_unwind_pc): Delete.
10306 (lm32_dummy_id): Delete.
10307 (lm32_gdbarch_init): Don't register deleted functions with
10310 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10312 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10313 (iq2000_unwind_pc): Delete.
10314 (iq2000_dummy_id): Delete.
10315 (iq2000_gdbarch_init): Don't register deleted functions with
10318 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10320 * nds32-tdep.c (nds32_type_align): Delete.
10321 (nds32_push_dummy_call): Use type_align instead.
10323 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10325 * arm-tdep.c (arm_type_align): Only handle vector override case.
10326 (arm_push_dummy_call): Use type_align.
10327 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10329 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10331 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10333 (pass_on_stack): Use type_align.
10334 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10337 2019-04-23 Tom Tromey <tromey@adacore.com>
10339 * dwarf2read.c (line_header::file_name_at): Remove unused
10342 2019-04-23 Tom de Vries <tdevries@suse.de>
10345 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10349 2019-03-27 Ali Tamur <tamur@google.com>
10351 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10352 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10353 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10354 (dwarf_expr_context::get_addr_index): Likewise
10355 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10356 (symbol_needs_eval_context::get_addr_index): Likewise
10357 (disassemble_dwarf_expression): Add DW_OP_addrx
10358 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10359 (read_cutu_die_from_dwo): Update comment
10360 (skip_one_die): Add DW_FORM_addrx
10361 (read_attribute_value): Likewise
10362 (var_decode_location): Add DW_OP_addrx
10363 (dwarf2_const_value_attr): Add DW_FORM_addrx
10364 (dump_die_shallow): Likewise
10365 (dwarf2_fetch_constant_bytes): Likewise
10366 (decode_locdesc): Add DW_OP_addrx
10367 (skip_form_bytes): Add DW_FORM_addrx
10369 2019-04-22 Ali Tamur <tamur@google.com>
10371 * MAINTAINERS (Write After Approval): Add self.
10373 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10375 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10376 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10377 (open_symbol_file_object): Likewise.
10378 (svr4_default_sos): Add info parameter.
10379 (svr4_read_so_list): Likewise.
10380 (svr4_current_sos_direct): Adjust functions calls to pass down
10382 (svr4_current_sos_1): Add info parameter.
10383 (svr4_current_sos): Call get_svr4_info, pass info down to
10384 svr4_current_sos_1.
10385 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10387 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10389 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10391 (probes_table_remove_objfile_probes): Likewise.
10392 (register_solib_event_probe): Add info parameter.
10393 (solist_update_incremental): Pass info parameter down to
10395 (disable_probes_interface): Add info parameter.
10396 (svr4_handle_solib_event): Pass current_program_space to
10397 get_svr4_info. Adjust disable_probes_interface cleanup.
10398 (svr4_create_probe_breakpoints): Add info parameter, pass it
10399 down to register_solib_event_probe.
10400 (svr4_create_solib_event_breakpoints): Add info parameter,
10401 pass it down to svr4_create_probe_breakpoints.
10402 (enable_break): Pass info down to
10403 svr4_create_solib_event_breakpoints.
10404 (svr4_solib_create_inferior_hook): Pass current_program_space to
10406 (svr4_clear_solib): Likewise.
10408 2019-04-22 Pedro Alves <palves@redhat.com>
10410 * solib-svr4.c (svr4_free_objfile_observer): New.
10411 (probe_and_action::objfile): New field.
10412 (probes_table_htab_remove_objfile_probes)
10413 (probes_table_remove_objfile_probes): New functions.
10414 (register_solib_event_probe): Add 'objfile' parameter. Store it
10415 in the new probe_and_action. Don't store the probe in 'lookup'.
10416 (svr4_create_probe_breakpoints): Pass objfile to
10417 register_solib_event_probe.
10418 (_initialize_svr4_solib): Register a free_objfile observer.
10420 2019-04-19 Tom Tromey <tom@tromey.com>
10422 * common/queue.h: Remove.
10424 2019-04-19 Tom Tromey <tom@tromey.com>
10426 * event-loop.c: Don't include "common/queue.h".
10428 2019-04-19 Tom Tromey <tom@tromey.com>
10430 * remote.c (remote_target): Use delete.
10431 * remote-notif.h: Include <list>, not "common/queue.h".
10432 (notif_client_p): Remove typedef.
10433 (remote_notif_state): Add constructor, destructor, initializer.
10434 <notif_queue>: Now a std::list.
10435 (remote_notif_state_xfree): Don't declare.
10436 * remote-notif.c (remote_notif_process, handle_notification)
10437 (remote_notif_state_allocate): Update.
10438 (~remote_notif_state): Rename from remote_notif_state_xfree.
10440 2019-04-19 Tom Tromey <tom@tromey.com>
10442 * symfile.c (reread_symbols): Update.
10443 * objfiles.c (objfile_register_static_link)
10444 (objfile_lookup_static_link): Update
10445 (~objfile) Don't delete static_links.
10446 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10448 2019-04-19 Tom Tromey <tom@tromey.com>
10450 * type-stack.h (struct type_stack) <insert>: Constify string.
10451 * type-stack.c (type_stack::insert): Constify string.
10452 * gdbtypes.h (lookup_template_type): Update.
10453 (address_space_name_to_int): Update.
10454 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10456 (lookup_template_type): Make name const.
10457 * c-exp.y: Update rules.
10458 (lex_one_token, classify_name, classify_inner_name)
10459 (c_print_token): Update.
10460 * p-exp.y: Update rules.
10462 * f-exp.y: Update rules.
10464 * d-exp.y: Update rules.
10465 (lex_one_token, classify_name, classify_inner_name): Update.
10466 * parse.c (write_dollar_variable, copy_name): Return std::string.
10467 * parser-defs.h (copy_name): Change return type.
10468 * m2-exp.y: Update rules.
10470 * go-exp.y (lex_one_token): Update.
10472 (classify_unsafe_function, classify_packaged_name)
10473 (classify_name, yylex): Update.
10475 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10477 * configure.ac: add --enable-source-highlight switch.
10478 * configure: Regenerate.
10479 * top.c (print_gdb_version): plumb --enable-source-highlight
10480 status to "show configuration".
10482 2019-04-19 Tom Tromey <tromey@adacore.com>
10484 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10486 (empty_record, ada_template_to_fixed_record_type_1)
10487 (template_to_static_fixed_type)
10488 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10489 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10490 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10493 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10496 * source.c (print_source_lines_base): Advance "iter" when a
10497 control character is seen.
10499 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10501 * inferior.h (struct infcall_suspend_state_deleter):
10502 Catch exception in destructor to avoid crash.
10504 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10506 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10507 close to the add_com "shell".
10509 2019-04-18 Tom Tromey <tromey@adacore.com>
10511 * process-stratum-target.h (class process_stratum_target)
10512 <stratum>: Add "final".
10514 2019-04-17 Tom Tromey <tromey@adacore.com>
10516 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10517 against nullptr before use.
10519 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10521 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10523 2019-04-17 Jim Wilson <jimw@sifive.com>
10524 Andrew Burgess <andrew.burgess@embecosm.com>
10526 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10527 code read might fail, assume 4-byte breakpoint in that case.
10529 2019-04-15 Leszek Swirski <leszeks@google.com>
10531 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10532 rather than a hand-rolled POD check when checking for forced MEMORY
10535 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10537 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10538 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10540 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10541 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10542 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10545 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10547 * aarch64-linux-nat.c
10548 (aarch64_linux_nat_target::thread_architecture): Add override.
10549 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10552 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10554 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10556 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10558 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10559 target types of size 96-bits, add some additional comments, and
10560 check that the builtin type we found was the correct size.
10562 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10564 * utils.c (prompt_for_continue): Don't restore the styling at the
10565 end, as applied_style has the wrong value. This fixes styling in
10566 long lists of file names that are interrupted by the "Continue?"
10569 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10571 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10572 * c-lang.c (c_language_defn): Likewise.
10573 (cplus_language_defn): Likewise.
10574 (asm_language_defn): Likewise.
10575 (minimal_language_defn): Likewise.
10576 * d-lang.c (d_language_defn): Likewise.
10577 * f-lang.c (f_language_defn): Likewise.
10578 * go-lang.c (go_language_defn): Likewise.
10579 * language.c (unknown_language_defn): Likewise.
10580 (auto_language_defn): Likewise.
10581 * language.h (struct language_defn): Remove la_magic field.
10582 (LANG_MAGIC): Delete.
10583 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10584 * objc-lang.c (objc_language_defn): Likewise.
10585 * opencl-lang.c (opencl_language_defn): Likewise.
10586 * p-lang.c (pascal_language_defn): Likewise.
10587 * rust-lang.c (rust_language_defn): Likewise.
10589 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10591 * riscv-tdep.c (riscv_type_align): New function.
10592 (riscv_type_alignment): Delete.
10593 (riscv_arg_location): Use 'type_align'.
10594 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10596 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10598 * gdbtypes.c (type_align): A struct with no non-static fields also
10599 has alignment of 1.
10601 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10603 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10605 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10607 (riscv_struct_info::analyse): New implementation using new
10608 analyse_inner member function.
10609 (riscv_struct_info::field_offset): New member function.
10610 (riscv_struct_info::m_offsets): New member variable.
10611 (riscv_struct_info::analyse_inner): New private member function,
10612 takes the old implementation of riscv_struct_info::analyse but
10613 extended to track field offsets.
10614 (riscv_call_arg_struct): Update the struct folding special cases
10615 to handle cases where empty C++ structs, which are non-zero
10617 (riscv_arg_location): Initialise the length of each location, a
10618 non-zero length now indicates the location is in use.
10619 (riscv_push_dummy_call): Allow for the first location having a
10620 non-zero offset when setting up arguments.
10621 (riscv_return_value): Likewise, but for return values.
10623 2019-04-11 Tom Tromey <tromey@adacore.com>
10625 * utils.c (internal_vproblem): Make "msg" const.
10627 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10629 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10630 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10631 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10632 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10634 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10636 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10638 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10639 of amd64_collect_native_gregset.
10640 (amd64_linux_nat_target::store_registers): Likewise.
10642 2019-04-10 Tom Tromey <tom@tromey.com>
10644 * symtab.c (lookup_global_symbol_from_objfile)
10645 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10646 * objfiles.h (class separate_debug_iterator): New.
10647 (class separate_debug_range): New.
10648 (struct objfile) <separate_debug_objfiles>: New method.
10649 (objfile_separate_debug_iterate): Don't declare.
10650 * objfiles.c (separate_debug_iterator::operator++): Rename from
10651 objfile_separate_debug_iterate.
10652 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10654 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10657 2019-04-10 Tom Tromey <tom@tromey.com>
10659 * symfile.c (reread_symbols): Remove old comment.
10660 * objfiles.c (free_all_objfiles): Fix a typo.
10662 2019-04-10 Tom Tromey <tom@tromey.com>
10664 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10665 * minsyms.c (lookup_minimal_symbol): Use foreach.
10666 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10667 (lookup_minimal_symbol_solib_trampoline): Likewise.
10668 * symfile.c (reread_symbols): Use foreach.
10670 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10671 Tom Tromey <tromey@adacore.com>
10674 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10675 (rust_lex_int_test): Change "value" to be LONGEST.
10676 (rust_lex_tests): Add test for long integer literal.
10678 2019-04-09 Tom Tromey <tromey@adacore.com>
10680 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10682 (extended_remote_target::attach): Update.
10683 (remote_target::remote_notice_new_inferior): Update.
10684 (remote_target::add_current_inferior_and_thread): Update.
10685 * inferior.c (exit_inferior_1): Use "false".
10686 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10688 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10690 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10691 the "start" command.
10693 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10695 * python/py-inferior.c (infpy_thread_from_thread_handle):
10696 Adjust comments to reflect renaming of thread_from_thread_handle
10697 to thread_from_handle. Adjust keywords. Fix type error message.
10698 (inferior_object_methods): Add thread_from_handle. Retain
10699 thread_from_thread_handle, but mark it as deprecated.
10701 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10703 * gdbthread.h (find_thread_by_handle): Revise declaration.
10704 * thread.c (find_thread_by_handle): Likewise. Adjust
10705 implementation too.
10706 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10707 support for buffer objects as handles.
10709 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10711 * python/py-infthread.c (thpy_thread_handle): New function.
10712 (thread_object_methods): Register thpy_thread_handle.
10714 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10716 * gdbthread.h (thread_to_thread_handle): Declare.
10717 * thread.c (gdbtypes.h): Include.
10718 (thread_to_thread_handle): New function.
10720 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10721 (target_thread_info_to_thread_handle): Declare.
10722 * target.c (target_thread_info_to_thread_handle): New function.
10723 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10724 * target-delegates.c: Regenerate.
10726 * linux-thread-db.c (class thread_db_target): Add method
10727 thread_info_to_thread_handle.
10728 (thread_db_target::thread_info_to_thread_handle): Define.
10729 * remote.c (class remote_target): Add new method
10730 thread_info_to_thread_handle.
10731 (remote_target::thread_info_to_thread_handle): Define.
10733 2019-04-08 Pedro Alves <palves@redhat.com>
10735 * common/common-exceptions.c (throw_exception): Don't create
10736 named object to throw; throw directly.
10737 (throw_it): Likewise. Don't initialize gdb_exception::message
10738 here, with new; pass FMT and AP to the ctor instead.
10739 * common/common-exceptions.h: Include <string>.
10740 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10741 const char *, va_list)): New ctor. Use std::make_shared.
10742 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10744 (gdb_exception_error::gdb_exception_error(enum errors, const char
10746 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10748 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10750 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10751 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10754 2019-04-08 Tom Tromey <tom@tromey.com>
10756 * valops.c (value_rtti_indirect_type): Replace throw_exception
10758 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10760 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10762 * target.c (target_translate_tls_address): Replace throw_exception
10764 * stack.c (frame_apply_command_count): Replace throw_exception
10766 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10768 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10770 * rs6000-tdep.c (rs6000_frame_cache)
10771 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10772 * remote.c: Replace throw_exception with throw.
10773 * record-full.c (record_full_message, record_full_wait_1)
10774 (record_full_restore): Replace throw_exception with throw.
10776 (get_thread_current_frame_id, record_btrace_start_replaying)
10777 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10778 (cmd_record_btrace_start): Replace throw_exception with throw.
10779 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10781 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10782 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10784 (find_linespec_symbols): Replace throw_exception with throw.
10785 * infrun.c (displaced_step_prepare, resume): Replace
10786 throw_exception with throw.
10787 * infcmd.c (post_create_inferior): Replace throw_exception with
10789 * inf-loop.c (inferior_event_handler): Replace throw_exception
10791 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10792 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10793 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10794 (get_prev_frame_always, get_frame_pc_if_available)
10795 (get_frame_address_in_block_if_available, get_frame_language):
10796 Replace throw_exception with throw.
10797 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10798 throw_exception with throw.
10799 * eval.c (fetch_subexp_value, evaluate_var_value)
10800 (evaluate_funcall, evaluate_subexp_standard): Replace
10801 throw_exception with throw.
10802 * dwarf2loc.c (call_site_find_chain)
10803 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10804 Replace throw_exception with throw.
10805 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10807 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10809 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10810 * completer.c (complete_line_internal): Replace throw_exception
10812 * compile/compile-object-run.c (compile_object_run): Replace
10813 throw_exception with throw.
10814 * cli/cli-script.c (process_next_line): Replace throw_exception
10816 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10817 (btrace_enable, btrace_maint_update_pt_packets): Replace
10818 throw_exception with throw.
10819 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10820 throw_exception with throw.
10821 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10822 throw_exception with throw.
10823 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10824 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10825 * aarch64-tdep.c (aarch64_make_prologue_cache)
10826 (aarch64_make_stub_cache): Replace throw_exception with throw.
10828 2019-04-08 Tom Tromey <tom@tromey.com>
10830 * common/common-exceptions.c (throw_exception): Rename from
10831 throw_exception_cxx. Remove old copy. Make argument const.
10832 (throw_it): Create and throw exception objects directly.
10833 * common/common-exceptions.h (throw_exception): Make argument
10835 (struct gdb_exception_error): Add constructor.
10836 (struct gdb_exception_quit): Add constructor.
10838 2019-04-08 Tom Tromey <tom@tromey.com>
10840 * common/common-exceptions.h (exception_rethrow): Don't declare.
10841 (TRY_SJLJ): Update comment.
10842 (TRY, CATCH, END_CATCH): Remove.
10843 * common/common-exceptions.c (exception_rethrow): Remove.
10845 2019-04-08 Tom Tromey <tom@tromey.com>
10847 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10849 (gdb_exception_error): Rename from
10850 gdb_exception_RETURN_MASK_ERROR.
10851 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10852 (gdb_quit_bad_alloc): Update.
10853 * aarch64-tdep.c: Update.
10854 * ada-lang.c: Update.
10855 * ada-typeprint.c: Update.
10856 * ada-valprint.c: Update.
10857 * amd64-tdep.c: Update.
10858 * arch-utils.c: Update.
10859 * break-catch-throw.c: Update.
10860 * breakpoint.c: Update.
10861 * btrace.c: Update.
10862 * c-varobj.c: Update.
10863 * cli/cli-cmds.c: Update.
10864 * cli/cli-interp.c: Update.
10865 * cli/cli-script.c: Update.
10866 * common/common-exceptions.c: Update.
10867 * common/new-op.c: Update.
10868 * common/selftest.c: Update.
10869 * compile/compile-c-symbols.c: Update.
10870 * compile/compile-cplus-symbols.c: Update.
10871 * compile/compile-object-load.c: Update.
10872 * compile/compile-object-run.c: Update.
10873 * completer.c: Update.
10874 * corelow.c: Update.
10875 * cp-abi.c: Update.
10876 * cp-support.c: Update.
10877 * cp-valprint.c: Update.
10878 * darwin-nat.c: Update.
10879 * disasm-selftests.c: Update.
10880 * dtrace-probe.c: Update.
10881 * dwarf-index-cache.c: Update.
10882 * dwarf-index-write.c: Update.
10883 * dwarf2-frame-tailcall.c: Update.
10884 * dwarf2-frame.c: Update.
10885 * dwarf2loc.c: Update.
10886 * dwarf2read.c: Update.
10888 * event-loop.c: Update.
10889 * event-top.c: Update.
10891 * f-valprint.c: Update.
10892 * fbsd-tdep.c: Update.
10893 * frame-unwind.c: Update.
10895 * gdbtypes.c: Update.
10896 * gnu-v3-abi.c: Update.
10897 * guile/guile-internal.h: Update.
10898 * guile/scm-block.c: Update.
10899 * guile/scm-breakpoint.c: Update.
10900 * guile/scm-cmd.c: Update.
10901 * guile/scm-disasm.c: Update.
10902 * guile/scm-frame.c: Update.
10903 * guile/scm-lazy-string.c: Update.
10904 * guile/scm-math.c: Update.
10905 * guile/scm-param.c: Update.
10906 * guile/scm-ports.c: Update.
10907 * guile/scm-pretty-print.c: Update.
10908 * guile/scm-symbol.c: Update.
10909 * guile/scm-symtab.c: Update.
10910 * guile/scm-type.c: Update.
10911 * guile/scm-value.c: Update.
10912 * i386-linux-tdep.c: Update.
10913 * i386-tdep.c: Update.
10914 * inf-loop.c: Update.
10915 * infcall.c: Update.
10916 * infcmd.c: Update.
10917 * infrun.c: Update.
10919 * language.c: Update.
10920 * linespec.c: Update.
10921 * linux-fork.c: Update.
10922 * linux-nat.c: Update.
10923 * linux-tdep.c: Update.
10924 * linux-thread-db.c: Update.
10926 * mi/mi-cmd-break.c: Update.
10927 * mi/mi-cmd-stack.c: Update.
10928 * mi/mi-interp.c: Update.
10929 * mi/mi-main.c: Update.
10930 * objc-lang.c: Update.
10931 * p-valprint.c: Update.
10933 * ppc-linux-tdep.c: Update.
10934 * printcmd.c: Update.
10935 * python/py-arch.c: Update.
10936 * python/py-breakpoint.c: Update.
10937 * python/py-cmd.c: Update.
10938 * python/py-finishbreakpoint.c: Update.
10939 * python/py-frame.c: Update.
10940 * python/py-framefilter.c: Update.
10941 * python/py-gdb-readline.c: Update.
10942 * python/py-inferior.c: Update.
10943 * python/py-infthread.c: Update.
10944 * python/py-lazy-string.c: Update.
10945 * python/py-linetable.c: Update.
10946 * python/py-objfile.c: Update.
10947 * python/py-param.c: Update.
10948 * python/py-prettyprint.c: Update.
10949 * python/py-progspace.c: Update.
10950 * python/py-record-btrace.c: Update.
10951 * python/py-record.c: Update.
10952 * python/py-symbol.c: Update.
10953 * python/py-type.c: Update.
10954 * python/py-unwind.c: Update.
10955 * python/py-utils.c: Update.
10956 * python/py-value.c: Update.
10957 * python/python.c: Update.
10958 * record-btrace.c: Update.
10959 * record-full.c: Update.
10960 * remote-fileio.c: Update.
10961 * remote.c: Update.
10962 * riscv-tdep.c: Update.
10963 * rs6000-aix-tdep.c: Update.
10964 * rs6000-tdep.c: Update.
10965 * rust-exp.y: Update.
10966 * rust-lang.c: Update.
10967 * s390-tdep.c: Update.
10968 * selftest-arch.c: Update.
10969 * solib-dsbt.c: Update.
10970 * solib-frv.c: Update.
10971 * solib-spu.c: Update.
10972 * solib-svr4.c: Update.
10974 * sparc64-linux-tdep.c: Update.
10976 * symfile-mem.c: Update.
10977 * symmisc.c: Update.
10978 * target.c: Update.
10979 * thread.c: Update.
10981 * tracefile-tfile.c: Update.
10982 * tui/tui.c: Update.
10983 * typeprint.c: Update.
10984 * unittests/cli-utils-selftests.c: Update.
10985 * unittests/parse-connection-spec-selftests.c: Update.
10986 * valops.c: Update.
10987 * valprint.c: Update.
10989 * varobj.c: Update.
10990 * windows-nat.c: Update.
10991 * x86-linux-nat.c: Update.
10992 * xml-support.c: Update.
10994 2019-04-08 Tom Tromey <tom@tromey.com>
10996 * xml-support.c: Use C++ exception handling.
10997 * x86-linux-nat.c: Use C++ exception handling.
10998 * windows-nat.c: Use C++ exception handling.
10999 * varobj.c: Use C++ exception handling.
11000 * value.c: Use C++ exception handling.
11001 * valprint.c: Use C++ exception handling.
11002 * valops.c: Use C++ exception handling.
11003 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11005 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11006 * typeprint.c: Use C++ exception handling.
11007 * tui/tui.c: Use C++ exception handling.
11008 * tracefile-tfile.c: Use C++ exception handling.
11009 * top.c: Use C++ exception handling.
11010 * thread.c: Use C++ exception handling.
11011 * target.c: Use C++ exception handling.
11012 * symmisc.c: Use C++ exception handling.
11013 * symfile-mem.c: Use C++ exception handling.
11014 * stack.c: Use C++ exception handling.
11015 * sparc64-linux-tdep.c: Use C++ exception handling.
11016 * solib.c: Use C++ exception handling.
11017 * solib-svr4.c: Use C++ exception handling.
11018 * solib-spu.c: Use C++ exception handling.
11019 * solib-frv.c: Use C++ exception handling.
11020 * solib-dsbt.c: Use C++ exception handling.
11021 * selftest-arch.c: Use C++ exception handling.
11022 * s390-tdep.c: Use C++ exception handling.
11023 * rust-lang.c: Use C++ exception handling.
11024 * rust-exp.y: Use C++ exception handling.
11025 * rs6000-tdep.c: Use C++ exception handling.
11026 * rs6000-aix-tdep.c: Use C++ exception handling.
11027 * riscv-tdep.c: Use C++ exception handling.
11028 * remote.c: Use C++ exception handling.
11029 * remote-fileio.c: Use C++ exception handling.
11030 * record-full.c: Use C++ exception handling.
11031 * record-btrace.c: Use C++ exception handling.
11032 * python/python.c: Use C++ exception handling.
11033 * python/py-value.c: Use C++ exception handling.
11034 * python/py-utils.c: Use C++ exception handling.
11035 * python/py-unwind.c: Use C++ exception handling.
11036 * python/py-type.c: Use C++ exception handling.
11037 * python/py-symbol.c: Use C++ exception handling.
11038 * python/py-record.c: Use C++ exception handling.
11039 * python/py-record-btrace.c: Use C++ exception handling.
11040 * python/py-progspace.c: Use C++ exception handling.
11041 * python/py-prettyprint.c: Use C++ exception handling.
11042 * python/py-param.c: Use C++ exception handling.
11043 * python/py-objfile.c: Use C++ exception handling.
11044 * python/py-linetable.c: Use C++ exception handling.
11045 * python/py-lazy-string.c: Use C++ exception handling.
11046 * python/py-infthread.c: Use C++ exception handling.
11047 * python/py-inferior.c: Use C++ exception handling.
11048 * python/py-gdb-readline.c: Use C++ exception handling.
11049 * python/py-framefilter.c: Use C++ exception handling.
11050 * python/py-frame.c: Use C++ exception handling.
11051 * python/py-finishbreakpoint.c: Use C++ exception handling.
11052 * python/py-cmd.c: Use C++ exception handling.
11053 * python/py-breakpoint.c: Use C++ exception handling.
11054 * python/py-arch.c: Use C++ exception handling.
11055 * printcmd.c: Use C++ exception handling.
11056 * ppc-linux-tdep.c: Use C++ exception handling.
11057 * parse.c: Use C++ exception handling.
11058 * p-valprint.c: Use C++ exception handling.
11059 * objc-lang.c: Use C++ exception handling.
11060 * mi/mi-main.c: Use C++ exception handling.
11061 * mi/mi-interp.c: Use C++ exception handling.
11062 * mi/mi-cmd-stack.c: Use C++ exception handling.
11063 * mi/mi-cmd-break.c: Use C++ exception handling.
11064 * main.c: Use C++ exception handling.
11065 * linux-thread-db.c: Use C++ exception handling.
11066 * linux-tdep.c: Use C++ exception handling.
11067 * linux-nat.c: Use C++ exception handling.
11068 * linux-fork.c: Use C++ exception handling.
11069 * linespec.c: Use C++ exception handling.
11070 * language.c: Use C++ exception handling.
11071 * jit.c: Use C++ exception handling.
11072 * infrun.c: Use C++ exception handling.
11073 * infcmd.c: Use C++ exception handling.
11074 * infcall.c: Use C++ exception handling.
11075 * inf-loop.c: Use C++ exception handling.
11076 * i386-tdep.c: Use C++ exception handling.
11077 * i386-linux-tdep.c: Use C++ exception handling.
11078 * guile/scm-value.c: Use C++ exception handling.
11079 * guile/scm-type.c: Use C++ exception handling.
11080 * guile/scm-symtab.c: Use C++ exception handling.
11081 * guile/scm-symbol.c: Use C++ exception handling.
11082 * guile/scm-pretty-print.c: Use C++ exception handling.
11083 * guile/scm-ports.c: Use C++ exception handling.
11084 * guile/scm-param.c: Use C++ exception handling.
11085 * guile/scm-math.c: Use C++ exception handling.
11086 * guile/scm-lazy-string.c: Use C++ exception handling.
11087 * guile/scm-frame.c: Use C++ exception handling.
11088 * guile/scm-disasm.c: Use C++ exception handling.
11089 * guile/scm-cmd.c: Use C++ exception handling.
11090 * guile/scm-breakpoint.c: Use C++ exception handling.
11091 * guile/scm-block.c: Use C++ exception handling.
11092 * guile/guile-internal.h: Use C++ exception handling.
11093 * gnu-v3-abi.c: Use C++ exception handling.
11094 * gdbtypes.c: Use C++ exception handling.
11095 * frame.c: Use C++ exception handling.
11096 * frame-unwind.c: Use C++ exception handling.
11097 * fbsd-tdep.c: Use C++ exception handling.
11098 * f-valprint.c: Use C++ exception handling.
11099 * exec.c: Use C++ exception handling.
11100 * event-top.c: Use C++ exception handling.
11101 * event-loop.c: Use C++ exception handling.
11102 * eval.c: Use C++ exception handling.
11103 * dwarf2read.c: Use C++ exception handling.
11104 * dwarf2loc.c: Use C++ exception handling.
11105 * dwarf2-frame.c: Use C++ exception handling.
11106 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11107 * dwarf-index-write.c: Use C++ exception handling.
11108 * dwarf-index-cache.c: Use C++ exception handling.
11109 * dtrace-probe.c: Use C++ exception handling.
11110 * disasm-selftests.c: Use C++ exception handling.
11111 * darwin-nat.c: Use C++ exception handling.
11112 * cp-valprint.c: Use C++ exception handling.
11113 * cp-support.c: Use C++ exception handling.
11114 * cp-abi.c: Use C++ exception handling.
11115 * corelow.c: Use C++ exception handling.
11116 * completer.c: Use C++ exception handling.
11117 * compile/compile-object-run.c: Use C++ exception handling.
11118 * compile/compile-object-load.c: Use C++ exception handling.
11119 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11120 * compile/compile-c-symbols.c: Use C++ exception handling.
11121 * common/selftest.c: Use C++ exception handling.
11122 * common/new-op.c: Use C++ exception handling.
11123 * cli/cli-script.c: Use C++ exception handling.
11124 * cli/cli-interp.c: Use C++ exception handling.
11125 * cli/cli-cmds.c: Use C++ exception handling.
11126 * c-varobj.c: Use C++ exception handling.
11127 * btrace.c: Use C++ exception handling.
11128 * breakpoint.c: Use C++ exception handling.
11129 * break-catch-throw.c: Use C++ exception handling.
11130 * arch-utils.c: Use C++ exception handling.
11131 * amd64-tdep.c: Use C++ exception handling.
11132 * ada-valprint.c: Use C++ exception handling.
11133 * ada-typeprint.c: Use C++ exception handling.
11134 * ada-lang.c: Use C++ exception handling.
11135 * aarch64-tdep.c: Use C++ exception handling.
11137 2019-04-08 Tom Tromey <tom@tromey.com>
11139 * xml-support.c (gdb_xml_parser::parse): Update.
11140 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11141 * value.c (show_convenience): Update.
11142 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11143 (test_parse_flags_qcs): Update.
11144 * thread.c (thr_try_catch_cmd): Update.
11145 * target.c (target_translate_tls_address): Update.
11146 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11147 (info_frame_command_core, frame_apply_command_count): Update.
11148 * rust-exp.y (rust_lex_exception_test): Update.
11149 * riscv-tdep.c (riscv_print_one_register_info): Update.
11150 * remote.c (remote_target::enable_btrace): Update.
11151 * record-btrace.c (record_btrace_enable_warn): Update.
11152 * python/py-utils.c (gdbpy_convert_exception): Update.
11153 * printcmd.c (do_one_display, print_variable_and_value): Update.
11154 * mi/mi-main.c (mi_print_exception): Update.
11155 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11156 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11157 * linux-nat.c (linux_nat_target::attach): Update.
11158 * linux-fork.c (class scoped_switch_fork_info): Update.
11159 * infrun.c (displaced_step_prepare): Update.
11160 * infcall.c (call_function_by_hand_dummy): Update.
11161 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11162 * gnu-v3-abi.c (print_one_vtable): Update.
11163 * frame.c (get_prev_frame_always): Update.
11164 * f-valprint.c (info_common_command_for_block): Update.
11165 * exec.c (try_open_exec_file): Update.
11166 * exceptions.c (print_exception, exception_print)
11167 (exception_fprintf, exception_print_same): Update.
11168 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11169 * dwarf-index-cache.c (index_cache::store)
11170 (index_cache::lookup_gdb_index): Update.
11171 * darwin-nat.c (maybe_cache_shell): Update.
11172 * cp-valprint.c (cp_print_value_fields): Update.
11173 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11174 (gcc_cplus_symbol_address): Update.
11175 * compile/compile-c-symbols.c (gcc_convert_symbol)
11176 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11177 * common/selftest.c: Update.
11178 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11180 (exception_try_scope_entry, exception_try_scope_exit): Don't
11182 (struct exception_try_scope): Remove.
11183 (TRY): Don't use exception_try_scope.
11184 (struct gdb_exception): Add constructor, operator=.
11185 <what>: New method.
11186 (struct gdb_exception_RETURN_MASK_ALL)
11187 (struct gdb_exception_RETURN_MASK_ERROR)
11188 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11189 (struct gdb_quit_bad_alloc): Update.
11190 * common/common-exceptions.c (exception_none): Change
11192 (struct catcher) <state, exception>: Initialize inline.
11193 <prev>: Remove member.
11194 (current_catcher): Remove.
11195 (catchers): New global.
11196 (exceptions_state_mc_init): Simplify.
11197 (catcher_pop): Remove.
11198 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11199 (try_scope_depth, exception_try_scope_entry)
11200 (exception_try_scope_exit): Remove.
11201 (throw_exception_sjlj): Update.
11202 (exception_messages, exception_messages_size): Remove.
11203 (throw_it): Simplify.
11204 (gdb_exception_sliced_copy): Remove.
11205 (throw_exception_cxx): Update.
11206 * cli/cli-script.c (script_from_file): Update.
11207 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11209 * ada-valprint.c (ada_val_print): Update.
11210 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11211 (create_excep_cond_exprs): Update.
11213 2019-04-08 Tom Tromey <tom@tromey.com>
11215 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11216 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11217 (TRY, CATCH, END_CATCH): Remove some definitions.
11218 * common/common-exceptions.c: Don't use GDB_XCPT.
11219 (catcher_list_size): Remove.
11220 (throw_exception, throw_it): Simplify.
11222 2019-04-05 Tom Tromey <tom@tromey.com>
11224 Revert the header-sorting patch.
11225 * ft32-tdep.c: Revert.
11226 * frv-tdep.c: Revert.
11227 * frv-linux-tdep.c: Revert.
11229 * frame-unwind.c: Revert.
11230 * frame-base.c: Revert.
11231 * fork-child.c: Revert.
11232 * findvar.c: Revert.
11233 * findcmd.c: Revert.
11234 * filesystem.c: Revert.
11235 * filename-seen-cache.h: Revert.
11236 * filename-seen-cache.c: Revert.
11237 * fbsd-tdep.c: Revert.
11238 * fbsd-nat.h: Revert.
11239 * fbsd-nat.c: Revert.
11240 * f-valprint.c: Revert.
11241 * f-typeprint.c: Revert.
11242 * f-lang.c: Revert.
11243 * extension.h: Revert.
11244 * extension.c: Revert.
11245 * extension-priv.h: Revert.
11246 * expprint.c: Revert.
11249 * exceptions.c: Revert.
11250 * event-top.c: Revert.
11251 * event-loop.c: Revert.
11253 * elfread.c: Revert.
11254 * dwarf2read.h: Revert.
11255 * dwarf2read.c: Revert.
11256 * dwarf2loc.c: Revert.
11257 * dwarf2expr.h: Revert.
11258 * dwarf2expr.c: Revert.
11259 * dwarf2-frame.c: Revert.
11260 * dwarf2-frame-tailcall.c: Revert.
11261 * dwarf-index-write.h: Revert.
11262 * dwarf-index-write.c: Revert.
11263 * dwarf-index-common.c: Revert.
11264 * dwarf-index-cache.h: Revert.
11265 * dwarf-index-cache.c: Revert.
11266 * dummy-frame.c: Revert.
11267 * dtrace-probe.c: Revert.
11268 * disasm.h: Revert.
11269 * disasm.c: Revert.
11270 * disasm-selftests.c: Revert.
11271 * dictionary.c: Revert.
11272 * dicos-tdep.c: Revert.
11273 * demangle.c: Revert.
11274 * dcache.h: Revert.
11275 * dcache.c: Revert.
11276 * darwin-nat.h: Revert.
11277 * darwin-nat.c: Revert.
11278 * darwin-nat-info.c: Revert.
11279 * d-valprint.c: Revert.
11280 * d-namespace.c: Revert.
11281 * d-lang.c: Revert.
11283 * csky-tdep.c: Revert.
11284 * csky-linux-tdep.c: Revert.
11285 * cris-tdep.c: Revert.
11286 * cris-linux-tdep.c: Revert.
11287 * cp-valprint.c: Revert.
11288 * cp-support.c: Revert.
11289 * cp-namespace.c: Revert.
11290 * cp-abi.c: Revert.
11291 * corelow.c: Revert.
11292 * corefile.c: Revert.
11293 * continuations.c: Revert.
11294 * completer.h: Revert.
11295 * completer.c: Revert.
11296 * complaints.c: Revert.
11297 * coffread.c: Revert.
11298 * coff-pe-read.c: Revert.
11299 * cli-out.h: Revert.
11300 * cli-out.c: Revert.
11301 * charset.c: Revert.
11302 * c-varobj.c: Revert.
11303 * c-valprint.c: Revert.
11304 * c-typeprint.c: Revert.
11305 * c-lang.c: Revert.
11306 * buildsym.c: Revert.
11307 * buildsym-legacy.c: Revert.
11308 * build-id.h: Revert.
11309 * build-id.c: Revert.
11310 * btrace.c: Revert.
11311 * bsd-uthread.c: Revert.
11312 * breakpoint.h: Revert.
11313 * breakpoint.c: Revert.
11314 * break-catch-throw.c: Revert.
11315 * break-catch-syscall.c: Revert.
11316 * break-catch-sig.c: Revert.
11317 * blockframe.c: Revert.
11319 * bfin-tdep.c: Revert.
11320 * bfin-linux-tdep.c: Revert.
11321 * bfd-target.c: Revert.
11322 * bcache.c: Revert.
11323 * ax-general.c: Revert.
11324 * ax-gdb.h: Revert.
11325 * ax-gdb.c: Revert.
11326 * avr-tdep.c: Revert.
11328 * auto-load.c: Revert.
11329 * arm-wince-tdep.c: Revert.
11330 * arm-tdep.c: Revert.
11331 * arm-symbian-tdep.c: Revert.
11332 * arm-pikeos-tdep.c: Revert.
11333 * arm-obsd-tdep.c: Revert.
11334 * arm-nbsd-tdep.c: Revert.
11335 * arm-nbsd-nat.c: Revert.
11336 * arm-linux-tdep.c: Revert.
11337 * arm-linux-nat.c: Revert.
11338 * arm-fbsd-tdep.c: Revert.
11339 * arm-fbsd-nat.c: Revert.
11340 * arm-bsd-tdep.c: Revert.
11341 * arch-utils.c: Revert.
11342 * arc-tdep.c: Revert.
11343 * arc-newlib-tdep.c: Revert.
11344 * annotate.h: Revert.
11345 * annotate.c: Revert.
11346 * amd64-windows-tdep.c: Revert.
11347 * amd64-windows-nat.c: Revert.
11348 * amd64-tdep.c: Revert.
11349 * amd64-sol2-tdep.c: Revert.
11350 * amd64-obsd-tdep.c: Revert.
11351 * amd64-obsd-nat.c: Revert.
11352 * amd64-nbsd-tdep.c: Revert.
11353 * amd64-nbsd-nat.c: Revert.
11354 * amd64-nat.c: Revert.
11355 * amd64-linux-tdep.c: Revert.
11356 * amd64-linux-nat.c: Revert.
11357 * amd64-fbsd-tdep.c: Revert.
11358 * amd64-fbsd-nat.c: Revert.
11359 * amd64-dicos-tdep.c: Revert.
11360 * amd64-darwin-tdep.c: Revert.
11361 * amd64-bsd-nat.c: Revert.
11362 * alpha-tdep.c: Revert.
11363 * alpha-obsd-tdep.c: Revert.
11364 * alpha-nbsd-tdep.c: Revert.
11365 * alpha-mdebug-tdep.c: Revert.
11366 * alpha-linux-tdep.c: Revert.
11367 * alpha-linux-nat.c: Revert.
11368 * alpha-bsd-tdep.c: Revert.
11369 * alpha-bsd-nat.c: Revert.
11370 * aix-thread.c: Revert.
11372 * addrmap.c: Revert.
11373 * ada-varobj.c: Revert.
11374 * ada-valprint.c: Revert.
11375 * ada-typeprint.c: Revert.
11376 * ada-tasks.c: Revert.
11377 * ada-lang.c: Revert.
11378 * aarch64-tdep.c: Revert.
11379 * aarch64-ravenscar-thread.c: Revert.
11380 * aarch64-newlib-tdep.c: Revert.
11381 * aarch64-linux-tdep.c: Revert.
11382 * aarch64-linux-nat.c: Revert.
11383 * aarch64-fbsd-tdep.c: Revert.
11384 * aarch64-fbsd-nat.c: Revert.
11385 * aarch32-linux-nat.c: Revert.
11387 2019-04-05 Tom Tromey <tom@tromey.com>
11389 * ft32-tdep.c: Sort headers.
11390 * frv-tdep.c: Sort headers.
11391 * frv-linux-tdep.c: Sort headers.
11392 * frame.c: Sort headers.
11393 * frame-unwind.c: Sort headers.
11394 * frame-base.c: Sort headers.
11395 * fork-child.c: Sort headers.
11396 * findvar.c: Sort headers.
11397 * findcmd.c: Sort headers.
11398 * filesystem.c: Sort headers.
11399 * filename-seen-cache.h: Sort headers.
11400 * filename-seen-cache.c: Sort headers.
11401 * fbsd-tdep.c: Sort headers.
11402 * fbsd-nat.h: Sort headers.
11403 * fbsd-nat.c: Sort headers.
11404 * f-valprint.c: Sort headers.
11405 * f-typeprint.c: Sort headers.
11406 * f-lang.c: Sort headers.
11407 * extension.h: Sort headers.
11408 * extension.c: Sort headers.
11409 * extension-priv.h: Sort headers.
11410 * expprint.c: Sort headers.
11411 * exec.h: Sort headers.
11412 * exec.c: Sort headers.
11413 * exceptions.c: Sort headers.
11414 * event-top.c: Sort headers.
11415 * event-loop.c: Sort headers.
11416 * eval.c: Sort headers.
11417 * elfread.c: Sort headers.
11418 * dwarf2read.h: Sort headers.
11419 * dwarf2read.c: Sort headers.
11420 * dwarf2loc.c: Sort headers.
11421 * dwarf2expr.h: Sort headers.
11422 * dwarf2expr.c: Sort headers.
11423 * dwarf2-frame.c: Sort headers.
11424 * dwarf2-frame-tailcall.c: Sort headers.
11425 * dwarf-index-write.h: Sort headers.
11426 * dwarf-index-write.c: Sort headers.
11427 * dwarf-index-common.c: Sort headers.
11428 * dwarf-index-cache.h: Sort headers.
11429 * dwarf-index-cache.c: Sort headers.
11430 * dummy-frame.c: Sort headers.
11431 * dtrace-probe.c: Sort headers.
11432 * disasm.h: Sort headers.
11433 * disasm.c: Sort headers.
11434 * disasm-selftests.c: Sort headers.
11435 * dictionary.c: Sort headers.
11436 * dicos-tdep.c: Sort headers.
11437 * demangle.c: Sort headers.
11438 * dcache.h: Sort headers.
11439 * dcache.c: Sort headers.
11440 * darwin-nat.h: Sort headers.
11441 * darwin-nat.c: Sort headers.
11442 * darwin-nat-info.c: Sort headers.
11443 * d-valprint.c: Sort headers.
11444 * d-namespace.c: Sort headers.
11445 * d-lang.c: Sort headers.
11446 * ctf.c: Sort headers.
11447 * csky-tdep.c: Sort headers.
11448 * csky-linux-tdep.c: Sort headers.
11449 * cris-tdep.c: Sort headers.
11450 * cris-linux-tdep.c: Sort headers.
11451 * cp-valprint.c: Sort headers.
11452 * cp-support.c: Sort headers.
11453 * cp-namespace.c: Sort headers.
11454 * cp-abi.c: Sort headers.
11455 * corelow.c: Sort headers.
11456 * corefile.c: Sort headers.
11457 * continuations.c: Sort headers.
11458 * completer.h: Sort headers.
11459 * completer.c: Sort headers.
11460 * complaints.c: Sort headers.
11461 * coffread.c: Sort headers.
11462 * coff-pe-read.c: Sort headers.
11463 * cli-out.h: Sort headers.
11464 * cli-out.c: Sort headers.
11465 * charset.c: Sort headers.
11466 * c-varobj.c: Sort headers.
11467 * c-valprint.c: Sort headers.
11468 * c-typeprint.c: Sort headers.
11469 * c-lang.c: Sort headers.
11470 * buildsym.c: Sort headers.
11471 * buildsym-legacy.c: Sort headers.
11472 * build-id.h: Sort headers.
11473 * build-id.c: Sort headers.
11474 * btrace.c: Sort headers.
11475 * bsd-uthread.c: Sort headers.
11476 * breakpoint.h: Sort headers.
11477 * breakpoint.c: Sort headers.
11478 * break-catch-throw.c: Sort headers.
11479 * break-catch-syscall.c: Sort headers.
11480 * break-catch-sig.c: Sort headers.
11481 * blockframe.c: Sort headers.
11482 * block.c: Sort headers.
11483 * bfin-tdep.c: Sort headers.
11484 * bfin-linux-tdep.c: Sort headers.
11485 * bfd-target.c: Sort headers.
11486 * bcache.c: Sort headers.
11487 * ax-general.c: Sort headers.
11488 * ax-gdb.h: Sort headers.
11489 * ax-gdb.c: Sort headers.
11490 * avr-tdep.c: Sort headers.
11491 * auxv.c: Sort headers.
11492 * auto-load.c: Sort headers.
11493 * arm-wince-tdep.c: Sort headers.
11494 * arm-tdep.c: Sort headers.
11495 * arm-symbian-tdep.c: Sort headers.
11496 * arm-pikeos-tdep.c: Sort headers.
11497 * arm-obsd-tdep.c: Sort headers.
11498 * arm-nbsd-tdep.c: Sort headers.
11499 * arm-nbsd-nat.c: Sort headers.
11500 * arm-linux-tdep.c: Sort headers.
11501 * arm-linux-nat.c: Sort headers.
11502 * arm-fbsd-tdep.c: Sort headers.
11503 * arm-fbsd-nat.c: Sort headers.
11504 * arm-bsd-tdep.c: Sort headers.
11505 * arch-utils.c: Sort headers.
11506 * arc-tdep.c: Sort headers.
11507 * arc-newlib-tdep.c: Sort headers.
11508 * annotate.h: Sort headers.
11509 * annotate.c: Sort headers.
11510 * amd64-windows-tdep.c: Sort headers.
11511 * amd64-windows-nat.c: Sort headers.
11512 * amd64-tdep.c: Sort headers.
11513 * amd64-sol2-tdep.c: Sort headers.
11514 * amd64-obsd-tdep.c: Sort headers.
11515 * amd64-obsd-nat.c: Sort headers.
11516 * amd64-nbsd-tdep.c: Sort headers.
11517 * amd64-nbsd-nat.c: Sort headers.
11518 * amd64-nat.c: Sort headers.
11519 * amd64-linux-tdep.c: Sort headers.
11520 * amd64-linux-nat.c: Sort headers.
11521 * amd64-fbsd-tdep.c: Sort headers.
11522 * amd64-fbsd-nat.c: Sort headers.
11523 * amd64-dicos-tdep.c: Sort headers.
11524 * amd64-darwin-tdep.c: Sort headers.
11525 * amd64-bsd-nat.c: Sort headers.
11526 * alpha-tdep.c: Sort headers.
11527 * alpha-obsd-tdep.c: Sort headers.
11528 * alpha-nbsd-tdep.c: Sort headers.
11529 * alpha-mdebug-tdep.c: Sort headers.
11530 * alpha-linux-tdep.c: Sort headers.
11531 * alpha-linux-nat.c: Sort headers.
11532 * alpha-bsd-tdep.c: Sort headers.
11533 * alpha-bsd-nat.c: Sort headers.
11534 * aix-thread.c: Sort headers.
11535 * agent.c: Sort headers.
11536 * addrmap.c: Sort headers.
11537 * ada-varobj.c: Sort headers.
11538 * ada-valprint.c: Sort headers.
11539 * ada-typeprint.c: Sort headers.
11540 * ada-tasks.c: Sort headers.
11541 * ada-lang.c: Sort headers.
11542 * aarch64-tdep.c: Sort headers.
11543 * aarch64-ravenscar-thread.c: Sort headers.
11544 * aarch64-newlib-tdep.c: Sort headers.
11545 * aarch64-linux-tdep.c: Sort headers.
11546 * aarch64-linux-nat.c: Sort headers.
11547 * aarch64-fbsd-tdep.c: Sort headers.
11548 * aarch64-fbsd-nat.c: Sort headers.
11549 * aarch32-linux-nat.c: Sort headers.
11551 2019-04-04 Tom Tromey <tom@tromey.com>
11553 * varobj.c (varobj_create): Update.
11554 * rust-exp.y (struct rust_parser) <update_innermost_block,
11555 lookup_symbol>: New methods.
11556 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11558 (rust_parser::rust_lookup_type)
11559 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11560 * printcmd.c (display_command, do_one_display): Update.
11561 * parser-defs.h (struct parser_state) <parser_state>: Add
11562 "tracker" parameter.
11563 (block_tracker): New member.
11564 (class innermost_block_tracker) <innermost_block_tracker>: Add
11566 <reset>: Remove method.
11567 (innermost_block): Don't declare.
11568 (null_post_parser): Update.
11569 * parse.c (innermost_block): Remove global.
11570 (write_dollar_variable): Update.
11571 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11572 Remove "tracker_types" parameter.
11573 (parse_expression): Add "tracker" parameter.
11574 (parse_expression_for_completion): Update.
11575 (null_post_parser): Add "tracker" parameter.
11576 * p-exp.y: Update rules.
11577 * m2-exp.y: Update rules.
11578 * language.h (struct language_defn) <la_post_parser>: Add
11579 "tracker" parameter.
11580 * go-exp.y: Update rules.
11581 * f-exp.y: Update rules.
11582 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11584 * d-exp.y: Update rules.
11585 * c-exp.y: Update rules.
11586 * breakpoint.c (set_breakpoint_condition): Create an
11587 innermost_block_tracker.
11588 (watch_command_1): Likewise.
11589 * ada-lang.c (resolve): Add "tracker" parameter.
11590 (resolve_subexp): Likewise.
11591 * ada-exp.y (write_var_from_sym): Update.
11593 2019-04-04 Tom Tromey <tom@tromey.com>
11595 * type-stack.h: New file.
11596 * type-stack.c: New file.
11597 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11599 (insert_into_type_stack, insert_type, push_type, push_type_int)
11600 (insert_type_address_space, pop_type, pop_type_int)
11601 (pop_typelist, pop_type_stack, append_type_stack)
11602 (push_type_stack, get_type_stack, push_typelist)
11603 (follow_type_instance_flags, follow_types): Don't declare.
11604 * parse.c (type_stack): Remove global.
11605 (parse_exp_in_context): Update.
11606 (insert_into_type_stack, insert_type, push_type, push_type_int)
11607 (insert_type_address_space, pop_type, pop_type_int)
11608 (pop_typelist, pop_type_stack, append_type_stack)
11609 (push_type_stack, get_type_stack, push_typelist)
11610 (follow_type_instance_flags, follow_types): Remove (moved to
11612 * f-exp.y (type_stack): New global.
11614 (push_kind_type, f_parse): Update.
11615 * d-exp.y (type_stack): New global.
11618 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11620 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11621 (HFILES_NO_SRCDIR): Add type-stack.h.
11623 2019-04-04 Tom Tromey <tom@tromey.com>
11625 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11626 (rust_parser::convert_ast_to_expression, rust_parse)
11627 (rust_lex_test_completion, rust_lex_tests): Update.
11628 * parser-defs.h (struct expr_completion_state): New.
11629 (struct parser_state) <parser_state>: Add completion parameter.
11630 <mark_struct_expression, mark_completion_tag>: New methods.
11631 <parse_completion, m_completion_state>: New members.
11632 (prefixify_expression, null_post_parser): Update.
11633 (mark_struct_expression, mark_completion_tag): Don't declare.
11634 * parse.c (parse_completion, expout_last_struct)
11635 (expout_tag_completion_type, expout_completion_name): Remove
11637 (parser_state::mark_struct_expression)
11638 (parser_state::mark_completion_tag): Now methods.
11639 (prefixify_expression): Add last_struct parameter.
11640 (prefixify_subexp): Likewise.
11641 (parse_exp_1): Update.
11642 (parse_exp_in_context): Add cstate parameter. Update.
11643 (parse_expression_for_completion): Create an
11644 expr_completion_state.
11645 (null_post_parser): Add "completion" parameter.
11646 * p-exp.y: Update rules.
11648 * language.h (struct language_defn) <la_post_parser>: Add
11649 "completing" parameter.
11650 * go-exp.y: Update rules.
11651 (lex_one_token): Update.
11652 * expression.h (parse_completion): Don't declare.
11653 * d-exp.y: Update rules.
11654 (lex_one_token): Update rules.
11655 * c-exp.y: Update rules.
11656 (lex_one_token): Update.
11657 * ada-lang.c (resolve): Add "parse_completion" parameter.
11658 (resolve_subexp): Likewise.
11659 (ada_resolve_function): Likewise.
11661 2019-04-04 Tom Tromey <tom@tromey.com>
11663 * parser-defs.h (struct parser_state) <start_arglist,
11664 end_arglist>: New methods.
11665 <arglist_len, m_funcall_chain>: New members.
11666 (arglist_len, start_arglist, end_arglist): Don't declare.
11667 * parse.c (arglist_len, funcall_chain): Remove global.
11668 (start_arglist, end_arglist): Remove functions.
11669 (parse_exp_in_context): Update.
11670 * p-exp.y: Update rules.
11671 * m2-exp.y: Update rules.
11672 * go-exp.y: Update rules.
11673 * f-exp.y: Update rules.
11674 * d-exp.y: Update rules.
11675 * c-exp.y: Update rules.
11677 2019-04-04 Tom Tromey <tom@tromey.com>
11679 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11680 lex_operator, push_back>: New methods.
11682 (rust_parser::lex_hex, lex_escape): Rename and update.
11683 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11684 (rust_parser::lex_operator): Rename and update.
11685 (rust_parser::lex_number, rustyylex, rustyyerror)
11686 (rust_lex_test_init, rust_lex_test_sequence)
11687 (rust_lex_test_push_back, rust_lex_tests): Update.
11688 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11690 <lexptr, prev_lexptr>: New members.
11691 (lexptr, prev_lexptr): Don't declare.
11692 * parse.c (lexptr, prev_lexptr): Remove globals.
11693 (parse_exp_in_context): Update.
11694 * p-exp.y (yylex, yyerror): Update.
11695 * m2-exp.y (parse_number, yylex, yyerror): Update.
11696 * go-exp.y (lex_one_token, yyerror): Update.
11697 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11698 * d-exp.y (lex_one_token, yyerror): Update.
11699 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11700 (lex_one_token, yyerror): Update.
11701 * ada-lex.l (YY_INPUT): Update.
11702 (rewind_to_char): Update.
11703 * ada-exp.y (yyerror): Update.
11705 2019-04-04 Tom Tromey <tom@tromey.com>
11707 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11708 * parser-defs.h (struct parser_state) <parser_state>: Add new
11710 <comma_terminates>: New member.
11711 (comma_terminates): Don't declare global.
11712 * parse.c (comma_terminates): Remove global.
11713 (parse_exp_in_context): Update.
11714 * p-exp.y (yylex): Update.
11715 * m2-exp.y (yylex): Update.
11716 * go-exp.y (lex_one_token): Update.
11717 * f-exp.y (yylex): Update.
11718 * d-exp.y (lex_one_token): Update.
11719 * c-exp.y (lex_one_token): Update.
11720 * ada-lex.l: Update.
11722 2019-04-04 Tom Tromey <tom@tromey.com>
11724 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11725 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11726 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11727 * parser-defs.h (paren_depth): Don't declare.
11728 * parse.c (paren_depth): Remove global.
11729 (parse_exp_in_context): Update.
11730 * p-exp.y (paren_depth): New global.
11731 (pascal_parse): Initialize it.
11732 * m2-exp.y (paren_depth): New global.
11733 (m2_parse): Initialize it.
11734 * go-exp.y (paren_depth): New global.
11735 (go_parse): Initialize it.
11736 * f-exp.y (paren_depth): New global.
11737 (f_parse): Initialize it.
11738 * d-exp.y (paren_depth): New global.
11739 (d_parse): Initialize it.
11740 * c-exp.y (paren_depth): New global.
11741 (c_parse): Initialize it.
11742 * ada-lex.l (paren_depth): New global.
11743 (lexer_init): Initialize it.
11745 2019-04-04 Tom Tromey <tom@tromey.com>
11747 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11748 (rust_parser::convert_ast_to_type)
11749 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11750 * parser-defs.h (struct parser_state) <parser_state>: Add
11751 parameters. Initialize new members.
11752 <expression_context_block, expression_context_pc>: New members.
11753 * parse.c (expression_context_block, expression_context_pc):
11755 (parse_exp_in_context): Update.
11756 * p-exp.y: Update all rules.
11758 * m2-exp.y: Update all rules.
11760 * go-exp.y (yylex): Update.
11761 * f-exp.y (yylex): Update.
11762 * d-exp.y: Update all rules.
11764 * c-exp.y: Update all rules.
11765 (lex_one_token, classify_name, yylex, c_parse): Update.
11766 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11768 2019-04-04 Tom Tromey <tom@tromey.com>
11770 * gdbarch.h, gdbarch.c: Rebuild.
11771 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11773 (struct stap_parse_info): Replace "parser_state" with
11775 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11776 (parser_state): New class.
11777 * parse.c (expr_builder): Rename.
11778 (expr_builder::release): Rename.
11779 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11780 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11781 (write_exp_elt_longcst, write_exp_elt_floatcst)
11782 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11783 (write_exp_string_vector, write_exp_bitstring)
11784 (write_exp_msymbol, mark_struct_expression)
11785 (write_dollar_variable)
11786 (insert_type_address_space, increase_expout_size): Replace
11787 "parser_state" with "expr_builder".
11788 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11789 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11790 "parser_state" with "expr_builder".
11792 2019-04-04 Tom Tromey <tom@tromey.com>
11794 * rust-exp.y: Replace "parse_language" with method call.
11796 (yylex): Replace "parse_language" with method call.
11798 (yylex): Replace "parse_language" with method call.
11799 * go-exp.y (classify_name): Replace "parse_language" with method
11801 * f-exp.y (yylex): Replace "parse_language" with method call.
11802 * d-exp.y (lex_one_token): Replace "parse_language" with method
11805 (lex_one_token, classify_name, yylex): Replace "parse_language"
11807 * ada-exp.y (find_primitive_type, type_char)
11808 (type_system_address): Replace "parse_language" with method call.
11810 2019-04-04 Tom Tromey <tom@tromey.com>
11812 * rust-exp.y: Replace "parse_gdbarch" with method call.
11813 * parse.c (write_dollar_variable, insert_type_address_space):
11814 Replace "parse_gdbarch" with method call.
11815 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11817 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11819 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11820 "parse_gdbarch" with method call.
11821 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11823 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11824 "parse_gdbarch" with method call.
11825 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11826 "parse_gdbarch" with method call.
11827 * c-exp.y (parse_type, parse_number, classify_name): Replace
11828 "parse_gdbarch" with method call.
11829 * ada-lex.l: Replace "parse_gdbarch" with method call.
11830 * ada-exp.y (parse_type, find_primitive_type, type_char)
11831 (type_system_address): Replace "parse_gdbarch" with method call.
11833 2019-04-04 Tom Tromey <tom@tromey.com>
11835 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11836 * stap-probe.c (stap_parse_argument): Update.
11837 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11838 initial_size parameter.
11839 * rust-exp.y (rust_lex_tests): Update.
11840 * parse.c (parser_state): Update.
11841 (parse_exp_in_context): Update.
11842 * parser-defs.h (struct parser_state) <parser_state>: Remove
11843 "initial_size" parameter.
11845 2019-04-04 Tom Tromey <tom@tromey.com>
11847 * parser-defs.h (increase_expout_size): Don't declare.
11848 * parse.c (increase_expout_size): Now static.
11850 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11852 * gnu-nat.c (gnu_nat_target::wait): Fix
11853 target_waitstatus_to_string call.
11855 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11857 * eval.c (evaluate_subexp_standard): Handle internal functions
11858 during Fortran function call handling.
11860 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11862 * NEWS: Mention new internal functions.
11863 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11864 (read_base_type): Use dwarf2_init_complex_target_type.
11865 * value.c (creal_internal_fn): New function.
11866 (cimag_internal_fn): New function.
11867 (_initialize_values): Register new internal functions.
11869 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11871 * infrun.c (stop_all_threads): If debug_infrun, always
11872 trace the wait status after wait_one, using
11873 target_waitstatus_to_string and target_pid_to_str.
11874 (handle_inferior_event): Replace various trace of
11875 wait status kind by a single trace.
11876 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11877 wait status kind image by target_waitstatus_to_string.
11878 * target/waitstatus.c (target_waitstatus_to_string): Fix
11881 2019-04-01 Tom Tromey <tromey@adacore.com>
11884 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11886 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11887 Pedro Alves <palves@redhat.com>
11889 * top.c (quit_force): Call 'finalize_values'.
11890 * value.c (finalize_values): New function.
11891 * value.h (finalize_values): Declare.
11893 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11895 * NEWS: Announce $_gdb_major and $_gdb_minor.
11897 * top.c (init_gdb_version_vars): New function.
11898 (gdb_init): Call init_gdb_version_vars.
11900 2019-03-29 Tom Tromey <tromey@adacore.com>
11902 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11903 help text. Remove dead code.
11905 2019-03-29 Keith Seitz <keiths@redhat.com>
11907 From Siddhesh Poyarekar:
11908 * f-lang.h (f77_get_upperbound): Return LONGEST.
11909 (f77_get_lowerbound): Likewise.
11910 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11911 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11913 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11914 plongest to format print it.
11915 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11916 (f77_get_upperbound): Likewise.
11917 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11918 LOWER_BOUND to LONGEST.
11919 (f77_create_arrayprint_offset_tbl): Likewise.
11921 2019-03-29 Keith Seitz <keiths@redhat.com>
11923 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11924 %s/pulongest for TYPE_LENGTH instead of %d in format
11926 * ada-typerint.c (ada_print_type): Likewise.
11927 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11928 * compile/compile-c-support.c (generate_register_struct): Likewise.
11929 * gdbtypes.c (recursive_dump_type): Likewise.
11930 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11931 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11932 instead of %d in format strings.
11933 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11934 to std::min to ULONGEST.
11935 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11936 instead of %d in format strings.
11937 * tracepoint.c (info_scope_command): Likewise.
11938 * typeprint.c (print_offset_data::update)
11939 (print_offset_data::finish): Likewise.
11940 * xtensa-tdep.c (xtensa_store_return_value)
11941 (xtensa_push_dummy_call): Likewise.
11943 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11945 * windows-nat.c (display_selector): Fixed format specifications
11948 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11950 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11952 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11954 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11955 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11956 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11957 (nios2_linux_init_abi): Install it.
11959 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11961 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11963 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11965 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11967 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11968 Tom Tromey <tromey@adacore.com>
11970 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11972 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11974 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11975 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11976 method to compute the bounds of range types. Also print "[evaluated]"
11977 if the bounds' values come from a dynamic evaluation.
11979 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11981 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11982 whitespace when pretty printing is on.
11984 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11986 * ppc-linux-nat.c: Add include.
11988 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11990 * NEWS: Mention AArch64 Pointer Authentication.
11992 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11994 * arm-linux-nat.c: Add include.
11996 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11998 * source-cache.c (source_cache::get_source_lines): Re-read
11999 fullname after calling open_source_file.
12001 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12003 * NEWS: Mention TLS support for FreeBSD.
12005 2019-03-25 Tom Tromey <tromey@adacore.com>
12007 * minsyms.c (BUNCH_SIZE): Update comment.
12008 (~minimal_symbol_reader): Remove old comment.
12009 (compact_minimal_symbols): Update comment.
12010 (minimal_symbol_reader::install): Remove old comment. Update
12013 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12015 * s390-linux-nat.c: Add include.
12017 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12019 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12020 Call linux_get_hwcap.
12021 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12023 (aarch64_linux_get_hwcap): Remove function.
12024 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12026 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12028 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12029 * linux-tdep.c (linux_get_hwcap): Add function.
12030 (linux_get_hwcap2): Likewise.
12031 * linux-tdep.h (linux_get_hwcap): Add declaration.
12032 (linux_get_hwcap2): Likewise.
12033 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12034 (ppc_linux_get_hwcap2): Likewise.
12035 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12037 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12038 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12039 (ppc_linux_nat_target::read_description): Likewise.
12040 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12041 * s390-linux-nat.c: Likewise.
12042 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12044 2019-03-24 Tom Tromey <tom@tromey.com>
12046 * ada-lang.c (standard_lookup): Simplify initialization.
12047 (ada_lookup_symbol_nonlocal): Simplify return.
12048 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12049 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12050 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12051 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12053 * solib.c (solib_global_lookup): Simplify.
12054 * symtab.c (null_block_symbol): Remove.
12055 (symbol_cache_lookup): Simplify returns.
12056 (lookup_language_this): Simplify returns.
12057 (lookup_symbol_aux): Simplify return.
12058 (lookup_local_symbol): Simplify returns.
12059 (lookup_global_symbol_from_objfile): Simplify return.
12060 (lookup_symbol_in_objfile_symtabs)
12061 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12062 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12063 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12064 * cp-namespace.c (cp_lookup_bare_symbol)
12065 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12066 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12067 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12068 (cp_lookup_symbol_via_imports): Simplify initialization.
12069 (find_symbol_in_baseclass): Likewise.
12070 * symtab.h (null_block_symbol): Remove.
12071 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12072 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12073 (d_lookup_symbol_module): Likewise.
12074 (find_symbol_in_baseclass): Simplify initialization.
12076 2019-03-24 Tom Tromey <tom@tromey.com>
12078 * expression.h: Don't include symtab.h.
12079 (struct block): Forward declare.
12081 2019-03-24 Tom Tromey <tom@tromey.com>
12083 * c-exp.y (typebase): Remove casts.
12084 * gdbtypes.c (lookup_unsigned_typename, )
12085 (lookup_signed_typename): Remove cast.
12086 * eval.c (parse_to_comma_and_eval): Remove cast.
12087 * parse.c (write_dollar_variable): Remove cast.
12088 * block.h (struct block) <superblock>: Now const.
12089 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12090 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12091 (map_block): Make "block" const.
12092 * symfile.h (struct quick_symbol_functions)
12093 <map_matching_symbols>: Constify block argument to "callback".
12094 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12096 (find_pc_sect_compunit_symtab): Make "b" const.
12097 (find_symbol_at_address): Likewise.
12098 (search_symbols): Likewise.
12099 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12100 (dw2_debug_names_lookup_symbol): Likewise.
12101 (dw2_map_matching_symbols): Update.
12102 * p-valprint.c (pascal_val_print): Remove "block".
12103 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12104 (aux_add_nonlocal_symbols): Make "block" const.
12105 (resolve_subexp): Remove cast.
12106 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12108 (iterate_over_file_blocks): Likewise.
12109 * f-exp.y (%union) <bval>: Remove.
12110 * coffread.c (patch_opaque_types): Make "b" const.
12111 * spu-tdep.c (spu_catch_start): Make "block" const.
12112 * c-valprint.c (print_unpacked_pointer): Remove "block".
12113 * symmisc.c (dump_symtab_1): Make "b" const.
12114 (block_depth): Make "block" const.
12115 * d-exp.y (%union) <bval>: Remove.
12116 * cp-support.h (cp_lookup_rtti_type): Update.
12117 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12118 * psymtab.c (psym_lookup_symbol): Make "block" const.
12119 (maintenance_check_psymtabs): Make "b" const.
12120 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12121 (enumerate_locals, enumerate_args): Update.
12122 * python/py-symtab.c (stpy_global_block): Make "block" const.
12123 (stpy_static_block): Likewise.
12124 * inline-frame.c (block_starting_point_at): Make "new_block"
12126 * block.c (find_block_in_blockvector): Make return type const.
12127 (blockvector_for_pc_sect): Make "b" const.
12128 (find_block_in_blockvector): Make "b" const.
12130 2019-03-23 Tom Tromey <tom@tromey.com>
12132 * varobj.c (varobj_create): Update.
12133 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12134 * printcmd.c (display_command, do_one_display): Don't reset
12136 * parser-defs.h (enum innermost_block_tracker_type): Move to
12138 (innermost_block): Update comment.
12139 * parse.c (parse_exp_1): Add tracker_types parameter.
12140 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12141 tracker_types parameter. Reset innermost_block.
12142 (parse_exp_in_context): Remove.
12143 (parse_expression_for_completion): Update.
12144 * objfiles.c (~objfile): Don't reset expression_context_block or
12146 * expression.h (enum innermost_block_tracker_type): Move from
12148 (parse_exp_1): Add tracker_types parameter.
12149 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12150 reset innermost_block.
12152 2019-03-23 Tom Tromey <tom@tromey.com>
12154 * objfiles.h: Include bcache.h.
12156 2019-03-23 Tom Tromey <tom@tromey.com>
12158 * linespec.c (get_current_search_block): Use
12159 scoped_restore_current_language.
12160 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12162 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12163 Jiong Wang <jiong.wang@arm.com>
12165 * aarch64-linux-tdep.c
12166 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12168 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12170 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12171 Jiong Wang <jiong.wang@arm.com>
12173 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12175 (aarch64_analyze_prologue_test): Add PACIASP test.
12176 (aarch64_prologue_prev_register): Unmask PC value.
12178 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12179 Jiong Wang <jiong.wang@arm.com>
12181 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12182 (aarch64_dwarf2_prev_register): Unmask PC value.
12183 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12184 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12185 DW_CFA_AARCH64_negate_ra_state.
12186 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12188 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12189 Jiong Wang <jiong.wang@arm.com>
12191 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12193 (aarch64_pseudo_register_name): Likewise.
12194 (aarch64_pseudo_register_type): Likewise.
12195 (aarch64_pseudo_register_reggroup_p): Likewise.
12196 (aarch64_gdbarch_init): Add pauth registers.
12197 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12198 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12199 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12200 (struct gdbarch_tdep): Add regnum for ra_state.
12202 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12203 Jiong Wang <jiong.wang@arm.com>
12205 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12207 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12208 Jiong Wang <jiong.wang@arm.com>
12210 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12212 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12213 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12214 (aarch64_gdbarch_init): Add puth registers.
12215 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12216 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12217 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12219 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12220 Jiong Wang <jiong.wang@arm.com>
12222 * aarch64-linux-nat.c
12223 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12224 * aarch64-linux-tdep.c
12225 (aarch64_linux_core_read_description): Likewise.
12226 (aarch64_linux_get_hwcap): New function.
12227 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12228 (aarch64_linux_get_hwcap): New declaration.
12230 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12231 Jiong Wang <jiong.wang@arm.com>
12233 * aarch64-linux-nat.c
12234 (aarch64_linux_nat_target::read_description): Add pauth param.
12235 * aarch64-linux-tdep.c
12236 (aarch64_linux_core_read_description): Likewise.
12237 * aarch64-tdep.c (struct target_desc): Add in pauth.
12238 (aarch64_read_description): Add pauth param.
12239 (aarch64_gdbarch_init): Likewise.
12240 * aarch64-tdep.h (aarch64_read_description): Likewise.
12241 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12242 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12243 * features/Makefile: Add new files.
12244 * features/aarch64-pauth.c: New file.
12245 * features/aarch64-pauth.xml: New file.
12247 2019-03-20 Tom Tromey <tromey@adacore.com>
12249 * infrun.c (handle_inferior_event): Rename from
12250 handle_inferior_event_1. Create a scoped_value_mark.
12251 (handle_inferior_event): Remove.
12253 2019-03-19 Tom Tromey <tromey@adacore.com>
12255 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12256 * infrun.h (print_stop_event): Add "displays" parameter.
12257 * infrun.c (print_stop_event): Add "displays" parameter.
12259 2019-03-19 Pedro Alves <palves@redhat.com>
12261 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12262 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12263 to -1. Fix TABs vs spaces.
12264 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12265 * tui/tui-out.h (tui_ui_out) Add intro comments.
12266 <m_line, m_start_of_line>: In-class initialize, and add describing
12269 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12271 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12273 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12275 2019-03-18 Pedro Alves <palves@redhat.com>
12276 Eli Zaretskii <eliz@gnu.org>
12278 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12279 m_line and m_start_of_line.
12281 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12283 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12284 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12285 it returns a newline. This fixes a regression in TU mode, whereby
12286 the next line is output on the same screen line as the user input.
12288 2019-03-18 Tom Tromey <tromey@adacore.com>
12290 * minsyms.c (minimal_symbol_reader::install): Remove call to
12293 2019-03-18 Pedro Alves <palves@redhat.com>
12295 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12297 (apply_style): New, factored out from ...
12298 (apply_ansi_escape): ... this. Handle reverse video mode.
12299 (tui_set_reverse_mode): New function.
12300 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12301 * tui/tui-winsource.c (tui_show_source_line): Use
12302 tui_set_reverse_mode instead of setting A_STANDOUT.
12303 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12304 New setter methods.
12306 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12308 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12311 2019-03-18 Tom Tromey <tromey@adacore.com>
12313 * ada-lang.c (empty_array): Add "high" parameter.
12314 (ada_evaluate_subexp): Update.
12316 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12318 * unittests/string_view-selftests.c: Define
12319 _initialize_string_view_selftests unconditionally.
12321 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12324 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12326 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12329 * windows-nat.c (display_selector): Fix format specifiers.
12331 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12333 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12334 tui_refill_source_window instead of tui_refresh_win, to update the
12335 current execution line. This fixes redisplay of the current line
12336 when stepping through the code with "next" or "step".
12338 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12340 * source-cache.c (source_cache::get_source_lines): Call
12341 find_source_lines to initialize s->nlines. This fixes vertical
12342 scrolling of TUI source window when the DOWN arrow is pressed.
12344 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12346 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12347 linux-thread-db.c (_initialize_thread_db): Likewise.
12349 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12351 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12352 wclrtoeol in tui_show_source_line". This reverts changes made in
12353 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12355 2019-03-15 Tom Tromey <tom@tromey.com>
12357 * symtab.h (struct minimal_symbol): Derive from
12358 general_symbol_info.
12359 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12360 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12361 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12362 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12363 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12364 (MSYMBOL_SEARCH_NAME): Update.
12365 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12366 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12367 * minsyms.c (minimal_symbol_reader::record_full): Update.
12369 2019-03-15 Tom Tromey <tom@tromey.com>
12371 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12373 2019-03-15 Tom Tromey <tom@tromey.com>
12375 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12376 unique_xmalloc_ptr.
12377 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12379 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12380 (build_minimal_symbol_hash_tables)
12381 (minimal_symbol_reader::install): Update.
12383 2019-03-15 Tom Tromey <tom@tromey.com>
12385 * symtab.c (create_demangled_names_hash): Update.
12386 (symbol_set_names): Update.
12387 * objfiles.h (struct objfile_per_bfd_storage)
12388 <demangled_names_hash>: Now an htab_up.
12389 * objfiles.c (objfile_per_bfd_storage): Simplify.
12391 2019-03-15 Tom Tromey <tom@tromey.com>
12393 * objfiles.h (struct objfile_per_bfd_storage): Declare
12395 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12397 (get_objfile_bfd_data): Use new. Don't initialize
12399 (free_objfile_per_bfd_storage): Remove.
12400 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12402 2019-03-15 Tom Tromey <tom@tromey.com>
12404 * symfile.c (reread_symbols): Update.
12405 * objfiles.c (objfile::objfile): Update.
12406 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12407 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12409 (minimal_symbol_reader::install): Update.
12410 (terminate_minimal_symbol_table): Remove.
12411 * jit.c (jit_object_close_impl): Update.
12413 2019-03-15 Tom Tromey <tom@tromey.com>
12415 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12418 2019-03-15 Tom Tromey <tom@tromey.com>
12420 * objfiles.h (struct objfile_per_bfd_storage)
12421 <demangled_hash_languages>: Now a bitset.
12422 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12423 (lookup_minimal_symbol): Update.
12425 2019-03-15 Tom Tromey <tom@tromey.com>
12427 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12428 Don't return the symbol.
12429 * coffread.c (record_minimal_symbol): Use record_full.
12431 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12433 The MS-Windows port of ncurses fails to switch to a color pair if
12434 one or both of the colors are the implicit default colors. This
12435 change records the default colors when TUI is initialized, and
12436 then specifies them explicitly when a color pair uses the default
12437 colors. This allows color styling in TUI mode on MS-Windows.
12439 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12441 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12442 colors in ncurses_norm_attr.
12443 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12444 "none", replace it with the default color recorded in
12447 2019-03-14 Tom Tromey <tromey@adacore.com>
12449 * source-cache.h (class source_cache) <get_source_lines>: Return
12451 * source-cache.c (source_cache::extract_lines): Handle case where
12452 first_pos==npos. Return std::string.
12453 (source_cache::get_source_lines): Update.
12455 2019-03-14 Tom Tromey <tromey@adacore.com>
12457 * NEWS: Add item for "style sources" commands.
12458 * source-cache.c (source_cache::get_source_lines): Check
12460 * cli/cli-style.c (source_styling): New global.
12461 (_initialize_cli_style): Add "style sources" commands.
12462 (show_style_sources): New function.
12463 * cli/cli-style.h (source_styling): Declare.
12465 2019-03-14 Pedro Alves <palves@redhat.com>
12466 Tom Tromey <tromey@adacore.com>
12468 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12469 * tui/tui-winsource.c (tui_refill_source_window): New function,
12471 (tui_horizontal_source_scroll): ... here. Move some logic.
12472 * cli/cli-style.c (set_style_enabled): Notify new observable.
12473 * tui/tui-hooks.c (tui_redisplay_source): New function.
12474 (tui_attach_detach_observers): Attach or detach
12475 tui_redisplay_source.
12476 * observable.h (source_styling_changed): New observable.
12477 * observable.c: Define source_styling_changed observable.
12479 2019-03-13 Tom Tromey <tromey@adacore.com>
12481 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12482 (i386_gnu_nat_target::store_registers): Update.
12483 * target-debug.h (target_debug_print_std_string): New macro.
12484 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12485 * windows-tdep.c (display_one_tib): Update.
12486 * tui/tui-stack.c (tui_make_status_line): Update.
12487 * top.c (print_inferior_quit_action): Update.
12488 * thread.c (thr_try_catch_cmd): Update.
12489 (add_thread_with_info): Update.
12490 (thread_target_id_str): Update.
12491 (thr_try_catch_cmd): Update.
12492 (thread_command): Update.
12493 (thread_find_command): Update.
12494 * record-btrace.c (record_btrace_target::info_record)
12495 (record_btrace_resume_thread, record_btrace_target::resume)
12496 (record_btrace_cancel_resume, record_btrace_step_thread)
12497 (record_btrace_target::wait, record_btrace_target::wait)
12498 (record_btrace_target::wait, record_btrace_target::stop): Update.
12499 * progspace.c (print_program_space): Update.
12500 * process-stratum-target.c
12501 (process_stratum_target::thread_address_space): Update.
12502 * linux-fork.c (linux_fork_mourn_inferior)
12503 (detach_checkpoint_command, info_checkpoints_command)
12504 (linux_fork_context): Update.
12505 (linux_fork_detach): Update.
12506 (class scoped_switch_fork_info): Update.
12507 (delete_checkpoint_command): Update.
12508 * infrun.c (follow_fork_inferior): Update.
12509 (follow_fork_inferior): Update.
12510 (proceed_after_vfork_done): Update.
12511 (handle_vfork_child_exec_or_exit): Update.
12512 (follow_exec): Update.
12513 (displaced_step_prepare_throw): Update.
12514 (displaced_step_restore): Update.
12515 (start_step_over): Update.
12516 (resume_1): Update.
12517 (clear_proceed_status_thread): Update.
12519 (print_target_wait_results): Update.
12520 (do_target_wait): Update.
12521 (context_switch): Update.
12522 (stop_all_threads): Update.
12523 (restart_threads): Update.
12524 (finish_step_over): Update.
12525 (handle_signal_stop): Update.
12526 (switch_back_to_stepped_thread): Update.
12527 (keep_going_pass_signal): Update.
12528 (print_exited_reason): Update.
12529 (normal_stop): Update.
12530 * inferior.c (inferior_pid_to_str): Change return type.
12531 (print_selected_inferior): Update.
12532 (add_inferior): Update.
12533 (detach_inferior): Update.
12534 * dummy-frame.c (fprint_dummy_frames): Update.
12535 * dcache.c (dcache_info_1): Update.
12536 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12537 (btrace_fetch, btrace_clear): Update.
12538 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12539 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12541 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12542 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12543 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12544 * gdbarch.c, gdbarch.h: Rebuild.
12545 * gdbarch.sh (core_pid_to_str): Change return type.
12546 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12548 (windows_nat_target::pid_to_str): Change return type.
12549 (windows_delete_thread): Update.
12550 (windows_nat_target::attach): Update.
12551 (windows_nat_target::files_info): Update.
12552 * target-delegates.c: Rebuild.
12553 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12555 (sol_thread_target::pid_to_str): Change return type.
12556 * remote.c (class remote_target) <pid_to_str>: Change return
12558 (remote_target::pid_to_str): Change return type.
12559 (extended_remote_target::attach, remote_target::remote_stop_ns)
12560 (remote_target::remote_notif_remove_queued_reply)
12561 (remote_target::push_stop_reply, remote_target::disable_btrace):
12563 (extended_remote_target::attach): Update.
12564 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12566 (gdbsim_target::pid_to_str): Change return type.
12567 * ravenscar-thread.c (struct ravenscar_thread_target)
12568 <pid_to_str>: Change return type.
12569 (ravenscar_thread_target::pid_to_str): Change return type.
12570 * procfs.c (class procfs_target) <pid_to_str>: Change return
12572 (procfs_target::pid_to_str): Change return type.
12573 (procfs_target::attach): Update.
12574 (procfs_target::detach): Update.
12575 (procfs_target::fetch_registers): Update.
12576 (procfs_target::store_registers): Update.
12577 (procfs_target::wait): Update.
12578 (procfs_target::files_info): Update.
12579 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12580 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12582 (nto_procfs_target::pid_to_str): Change return type.
12583 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12584 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12586 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12587 (exit_lwp): Update.
12588 (attach_proc_task_lwp_callback, get_detach_signal)
12589 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12590 (linux_nat_target::resume, wait_lwp, stop_callback)
12591 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12592 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12593 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12594 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12595 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12597 (inf_ptrace_target::attach): Update.
12598 (inf_ptrace_target::files_info): Update.
12599 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12601 (go32_nat_target::pid_to_str): Change return type.
12602 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12603 (gnu_nat_target::wait): Update.
12604 (gnu_nat_target::wait): Update.
12605 (gnu_nat_target::resume): Update.
12606 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12607 (fbsd_nat_target::wait): Update.
12608 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12610 (darwin_nat_target::attach): Update.
12611 * corelow.c (class core_target) <pid_to_str>: Change return type.
12612 (core_target::pid_to_str): Change return type.
12613 * target.c (normal_pid_to_str): Change return type.
12614 (default_pid_to_str): Likewise.
12615 (target_pid_to_str): Change return type.
12616 (target_translate_tls_address): Update.
12617 (target_announce_detach): Update.
12618 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12620 (bsd_uthread_target::pid_to_str): Change return type.
12621 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12623 (bsd_kvm_target::pid_to_str): Change return type.
12624 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12626 (aix_thread_target::pid_to_str): Change return type.
12627 * target.h (struct target_ops) <pid_to_str>: Change return type.
12628 (target_pid_to_str, normal_pid_to_str): Likewise.
12629 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12631 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12633 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12635 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12637 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12639 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12642 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12644 * NEWS: Mention that the new default MI version is 3. Mention
12645 changes to the output of commands and events that deal with
12646 multi-location breakpoints.
12647 * breakpoint.c: Include "mi/mi-out.h".
12648 (print_one_breakpoint): Change output syntax if using MI version
12650 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12652 (mi_multi_location_breakpoint_output_fixed): New.
12653 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12654 (mi_cmd_fix_multi_location_breakpoint_output): New.
12655 (mi_multi_location_breakpoint_output_fixed): New.
12656 * mi/mi-cmds.c (mi_cmds): Register command
12657 -fix-multi-location-breakpoint-output.
12658 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12661 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12663 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12664 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12665 instantiate mi_ui_out based on interpreter name.
12666 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12667 * mi/mi-main.c (mi_load_progress): Likewise.
12669 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12671 * NEWS: Combine separate "New targets" sections for 8.3.
12673 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12675 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12676 (ppcfbsd_init_abi): Install gdbarch
12677 "fetch_tls_load_module_address" and "get_thread_local_address"
12680 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12682 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12683 (riscv_fbsd_init_abi): Install gdbarch
12684 "fetch_tls_load_module_address" and "get_thread_local_address"
12687 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12689 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12690 (i386fbsd_init_abi): Install gdbarch
12691 "fetch_tls_load_module_address" and "get_thread_local_address"
12694 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12696 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12697 (amd64fbsd_init_abi): Install gdbarch
12698 "fetch_tls_load_module_address" and "get_thread_local_address"
12701 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12703 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12704 (struct fbsd_pspace_data): New type.
12705 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12706 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12707 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12708 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12709 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12711 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12713 * gdbtypes.c (lookup_struct_elt): New function.
12714 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12715 * gdbtypes.h (struct struct_elt): New type.
12716 (lookup_struct_elt): New prototype.
12718 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12720 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12721 remove disabled code block.
12723 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12725 * gdbarch.sh (get_thread_local_address): New method.
12726 * gdbarch.h, gdbarch.c: Regenerate.
12727 * target.c (target_translate_tls_address): Use
12728 gdbarch_get_thread_local_address if present instead of
12729 target::get_thread_local_address.
12731 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12733 * target.h (target::get_thread_local_address): Update comment.
12735 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12737 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12738 objfile->separate_debug_objfile_backlink if not NULL.
12740 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12742 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12743 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12744 (amd64bsd_store_inferior_registers): Likewise.
12745 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12746 Enable segment base registers.
12747 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12748 PT_GETFSBASE and PT_GETGSBASE.
12749 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12751 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12752 segment base registers.
12753 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12755 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12757 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12758 Update calls to i386_target_description to add 'segments'
12760 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12761 add segment base registers.
12762 * arch/i386.c (i386_create_target_description): Add 'segments'
12763 parameter to enable segment base registers.
12764 * arch/i386.h (i386_create_target_description): Likewise.
12765 * features/i386/32bit-segments.xml: New file.
12766 * features/i386/32bit-segments.c: Generate.
12767 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12768 call to i386_target_description to add 'segments' parameter.
12769 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12770 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12771 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12772 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12773 if feature is present.
12774 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12775 Add 'segments' parameter to call to i386_target_description.
12776 (i386_target_description): Add 'segments' parameter to enable
12777 segment base registers.
12778 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12779 to call to i386_target_description.
12780 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12781 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12782 Define I386_NUM_REGS.
12783 (i386_target_description): Add 'segments' parameter to enable
12784 segment base registers.
12786 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12789 * source-cache.c: #undef open and close, to avoid unresolved
12790 externals during linking.
12792 2019-03-12 Tom Tromey <tromey@adacore.com>
12794 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12795 const. Add initializers.
12796 (_initialize_remote): Don't initialize ptid globals.
12798 2019-03-12 Pedro Alves <palves@redhat.com>
12800 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12802 2019-03-12 Pedro Alves <palves@redhat.com>
12804 * cp-name-parser.y (main): Remove unused 'len' variable.
12806 2019-03-12 Tom Tromey <tromey@adacore.com>
12808 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12809 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12811 2019-03-12 Tom Tromey <tromey@adacore.com>
12813 * linux-nat.c (iterate_over_lwps): Update.
12814 (stop_callback): Remove parameter.
12815 (stop_wait_callback, detach_callback, resume_set_callback)
12816 (select_singlestep_lwp_callback, set_ignore_sigint)
12817 (status_callback, resumed_callback, resume_clear_callback)
12818 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12820 (linux_nat_target::detach, linux_nat_target::resume)
12821 (linux_stop_and_wait_all_lwps, select_event_lwp)
12822 (linux_nat_filter_event, linux_nat_wait_1)
12823 (linux_nat_target::kill, linux_nat_target::stop)
12824 (linux_nat_target::stop): Update.
12825 (linux_nat_resume_callback): Change type.
12826 (resume_stopped_resumed_lwps, count_events_callback)
12827 (select_event_lwp_callback): Likewise.
12828 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12829 * arm-linux-nat.c (struct update_registers_data): Remove.
12830 (update_registers_callback): Change type.
12831 (arm_linux_insert_hw_breakpoint1): Update.
12832 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12834 (x86_linux_dr_set_addr): Update.
12835 (x86_linux_dr_set_control): Update.
12836 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12837 (iterate_over_lwps): Use gdb::function_view.
12838 * nat/aarch64-linux-hw-point.c (struct
12839 aarch64_dr_update_callback_param): Remove.
12840 (debug_reg_change_callback): Change type.
12841 (aarch64_notify_debug_reg_change): Update.
12842 * s390-linux-nat.c (s390_refresh_per_info): Update.
12844 2019-03-11 Tom Tromey <tromey@adacore.com>
12846 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12847 redundant assignment to "this_cu".
12849 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12851 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12853 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12855 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12857 (rank_one_type): ... this.
12859 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12861 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12863 (rank_one_type): ... this.
12865 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12867 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12869 (rank_one_type): ... this.
12871 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12873 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12875 (rank_one_type): ... this.
12877 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12879 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12881 (rank_one_type): ... this.
12883 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12885 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12887 (rank_one_type): ... this.
12889 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12891 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12893 (rank_one_type): ... this.
12895 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12897 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12899 (rank_one_type): ... this.
12901 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12903 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12905 (rank_one_type): ... this.
12907 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12909 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12911 (rank_one_type): ... this.
12913 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12915 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12917 (rank_one_type): ... this.
12919 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12921 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12923 (rank_one_type): ... this.
12925 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12927 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12928 inferior-events' shows the example events.
12930 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12932 Support styling on native MS-Windows console
12935 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12936 on MS-Windows if $TERM is not defined.
12938 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12940 * posix-hdep.c (gdb_console_fputs):
12941 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12943 * ui-file.h (gdb_console_fputs): Add prototype.
12945 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12946 back to fputs only if the former returns zero.
12948 2019-03-07 Tom Tromey <tom@tromey.com>
12950 * symmisc.c (print_symbol_bcache_statistics): Update.
12951 (print_objfile_statistics): Update.
12952 * symfile.c (allocate_symtab): Update.
12953 * stabsread.c: Don't include bcache.h.
12954 * psymtab.h (struct psymbol_bcache): Don't declare.
12955 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12956 (psymbol_bcache_init, psymbol_bcache_free)
12957 (psymbol_bcache_get_bcache): Don't declare.
12958 * psymtab.c (struct psymbol_bcache): Remove.
12959 (psymtab_storage::psymtab_storage): Update.
12960 (psymtab_storage::~psymtab_storage): Update.
12961 (psymbol_bcache_init, psymbol_bcache_free)
12962 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12963 (add_psymbol_to_bcache): Update.
12964 (allocate_psymtab): Update.
12965 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12966 macro_cache>: No longer pointers.
12967 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12968 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12969 * macrotab.c (macro_bcache): Update.
12970 * macroexp.c: Don't include bcache.h.
12971 * gdbtypes.c (check_types_worklist): Update.
12972 (types_deeply_equal): Remove TRY/CATCH. Update.
12973 * elfread.c (elf_symtab_read): Update.
12974 * dwarf2read.c: Don't include bcache.h.
12975 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12976 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12977 (print_bcache_statistics, bcache_memory_used): Don't declare.
12978 (struct bcache): Move from bcache.c. Add constructor, destructor,
12979 methods. Rename all data members.
12980 * bcache.c (struct bcache): Move to bcache.h.
12981 (bcache::expand_hash_table): Rename from expand_hash_table.
12983 (bcache::insert): Rename from bcache_full.
12984 (bcache::compare): Rename from bcache_compare.
12985 (bcache_xmalloc): Remove.
12986 (bcache::~bcache): Rename from bcache_xfree.
12987 (bcache::print_statistics): Rename from print_bcache_statistics.
12988 (bcache::memory_used): Rename from bcache_memory_used.
12990 2019-03-07 Pedro Alves <palves@redhat.com>
12992 * infrun.c (normal_stop): Also check for
12993 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12995 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12997 * f-lang.c (value_from_host_double): Moved to...
12998 * value.c (value_from_host_double): ...here.
12999 * value.h (value_from_host_double): Declare.
13000 * guile/scm-math.c (vlscm_convert_typed_number): Use
13001 value_from_host_double.
13002 (vlscm_convert_number): Likewise.
13003 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13004 * python/py-value.c (convert_value_from_python): Likewise.
13006 2019-03-06 Tom Tromey <tom@tromey.com>
13008 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13010 2019-03-06 Tom Tromey <tom@tromey.com>
13012 * utils.h (free_current_contents): Don't declare.
13013 * utils.c (free_current_contents): Remove.
13015 2019-03-06 Tom Tromey <tom@tromey.com>
13017 * top.c (quit_force): Update.
13018 * main.c (captured_command_loop): Update.
13019 * common/new-op.c (operator new): Update.
13020 * common/common-exceptions.c (struct catcher)
13021 <save_cleanup_chain>: Remove member.
13022 (exceptions_state_mc_init): Update.
13023 (exception_try_scope_entry): Return nullptr.
13024 (exception_try_scope_exit, exception_rethrow)
13025 (throw_exception_sjlj, throw_exception_cxx): Update.
13026 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13027 (all_cleanups, do_cleanups, discard_cleanups)
13028 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13029 (restore_cleanups, restore_final_cleanups): Don't declare.
13030 (do_final_cleanups): Remove parameter.
13031 * common/cleanups.c (cleanup_chain, make_cleanup)
13032 (make_cleanup_dtor, all_cleanups, do_cleanups)
13033 (discard_my_cleanups, discard_cleanups)
13034 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13035 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13036 (null_cleanup): Remove.
13037 (do_final_cleanups): Remove parameter.
13039 2019-03-06 Tom Tromey <tom@tromey.com>
13041 * remote.c (remote_target::remote_parse_stop_reply): Use
13042 unique_xmalloc_ptr.
13044 2019-03-06 Tom Tromey <tom@tromey.com>
13046 * stabsread.c (struct stabs_field_info): Rename from field_info.
13047 <list, fnlist>: Add initializers.
13048 <obstack>: New member.
13049 (read_member_functions, read_struct_fields, read_baseclasses):
13050 Allocate on obstack. Don't use cleanups.
13051 (read_one_struct_field, read_member_functions, read_struct_fields)
13052 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13053 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13054 (read_struct_type): Update.
13056 2019-03-06 Tom Tromey <tom@tromey.com>
13058 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13059 * common/filestuff.h (make_cleanup_close): Don't declare.
13060 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13063 2019-03-06 Tom Tromey <tom@tromey.com>
13065 * solib-aix.c: Use make_scope_exit.
13067 2019-03-06 Tom Tromey <tom@tromey.com>
13069 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13070 Use make_scope_exit.
13072 2019-03-06 Tom Tromey <tom@tromey.com>
13074 * solib-svr4.c (disable_probes_interface): Remove parameter.
13075 (svr4_handle_solib_event): Use make_scope_exit.
13077 2019-03-06 Tom Tromey <tom@tromey.com>
13079 * remote.c (struct stop_reply_deleter): Remove.
13080 (stop_reply_up): Update.
13081 (struct stop_reply): Derive from notif_event. Don't typedef.
13082 <regcache>: Now a std::vector.
13083 (stop_reply_xfree): Remove.
13084 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13085 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13086 (remote_target::discard_pending_stop_replies): Use delete.
13087 (remote_target::remote_parse_stop_reply): Update.
13088 (remote_target::process_stop_reply): Update.
13089 * remote-notif.h (struct notif_event): Add virtual destructor.
13090 Remove "dtr" member.
13091 (struct notif_client) <alloc_event>: Return a unique_ptr.
13092 (notif_event_xfree): Don't declare.
13093 (notif_event_up): New typedef.
13094 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13095 (notif_event_xfree, do_notif_event_xfree): Remove.
13096 (remote_notif_state_xfree): Update.
13098 2019-03-06 Tom Tromey <tom@tromey.com>
13100 * infrun.c (displaced_step_clear_cleanup): Now a
13101 forward_scope_exit type.
13102 (displaced_step_prepare_throw): Update.
13103 (displaced_step_fixup): Update.
13105 2019-03-06 Tom Tromey <tom@tromey.com>
13107 * inferior.h (class inferior): Update comment.
13108 * gdbthread.h (class thread_info): Update comment.
13110 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13111 Tom Tromey <tom@tromey.com>
13113 * stabsread.h (struct stab_section_list): Remove.
13114 (coffstab_build_psymtabs): Update.
13115 * dbxread.c (symbuf_sections): Now a std::vector.
13116 (sect_idx): New global.
13117 (fill_symbuf): Update.
13118 (coffstab_build_psymtabs): Change type of stabsects parameter.
13120 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13122 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13123 (coff_locate_sections): Update.
13124 (coff_symfile_read): Remove cleanups. Update.
13125 (init_stringtab): Add storage parameter.
13126 (free_stringtab, free_stringtab_cleanup): Remove.
13127 (init_lineno): Add storage parameter.
13128 (free_linetab, free_linetab_cleanup): Remove.
13130 2019-03-06 Pedro Alves <palves@redhat.com>
13132 * linux-fork.c (fork_info::clobber_regs): Delete.
13133 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13134 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13136 (scoped_switch_fork_info::scoped_switch_fork_info)
13137 (checkpoint_command, linux_fork_context): Adjust
13138 fork_save_infrun_state calls.
13140 2019-03-06 Pedro Alves <palves@redhat.com>
13142 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13143 (inf_has_multiple_threads): Return 'bool' and rewrite using
13144 inferior_info::threads().
13146 2019-03-06 Pedro Alves <palves@redhat.com>
13148 * linux-fork.c: Include <list>.
13149 (fork_list): Now a std::list instance.
13150 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13151 (forks_exist_p, find_last_fork): Adjust.
13152 (new_fork): Delete.
13154 (add_fork): Adjust.
13155 (free_fork): Delete, folded into fork_info::~fork_info().
13156 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13158 (init_fork_list): Delete.
13159 (linux_fork_killall, linux_fork_mourn_inferior)
13160 (linux_fork_detach, info_checkpoints_command): Adjust.
13161 (_initialize_linux_fork): No longer call init_fork_list.
13163 2019-03-06 Pedro Alves <palves@redhat.com>
13165 * linux-fork.c (new_fork): New, split out of ...
13166 (add_fork): ... this. Return void. Move "first fork" special
13167 case from here, to ...
13168 (checkpoint_command): ... here.
13169 * linux-linux.h (add_fork): Return void.
13171 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13173 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13175 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13176 Chris January <chris.january@arm.com>
13177 David Lecomber <david.lecomber@arm.com>
13179 * f-exp.y: New token, UNOP_INTRINSIC.
13180 (exp): New pattern using UNOP_INTRINSIC token.
13181 (f77_keywords): Add 'abs' keyword.
13182 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13183 (value_from_host_double): New function.
13184 (evaluate_subexp_f): Support UNOP_ABS.
13186 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13188 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13191 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13193 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13194 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13195 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13197 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13199 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13201 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13202 Chris January <chris.january@arm.com>
13204 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13205 * f-exp.y: Define 'KIND' token.
13206 (exp): New pattern for KIND expressions.
13207 (ptype): Handle types with a kind extension.
13208 (direct_abs_decl): Extend to spot kind extensions.
13209 (f77_keywords): Add 'kind' to the list.
13210 (push_kind_type): New function.
13211 (convert_to_kind_type): New function.
13212 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13213 * parse.c (operator_length_standard): Likewise.
13214 * parser-defs.h (enum type_pieces): Add tp_kind.
13215 * std-operator.def: Add UNOP_KIND.
13217 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13219 * f-exp.y (f_parse): Set yydebug.
13221 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13223 * f-lang.c (evaluate_subexp_f): New function.
13224 (exp_descriptor_f): New global.
13225 (f_language_defn): Use exp_descriptor_f instead of
13226 exp_descriptor_standard.
13228 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13230 * f-exp.y (struct token): Add comments.
13231 (dot_ops): Remove uppercase versions and the end marker.
13232 (f77_keywords): Likewise.
13233 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13234 entries in the dot_ops array are case insensitive, and use
13235 strncasecmp to compare strings. Also some whitespace cleanup in
13236 this area. Similar for the f77_keywords array, except entries in
13237 this list might be case sensitive.
13239 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13241 * f-exp.y (struct f77_boolean_val): Add comments.
13242 (boolean_values): Remove uppercase versions, and end marker.
13243 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13244 and use strncasecmp to achieve case insensitivity. Additionally,
13245 perform whitespace cleanup around this code.
13247 2019-03-06 Tom Tromey <tromey@adacore.com>
13249 * remote-sim.c (gdbsim_target_open): Use result of
13252 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13253 Dirk Schubert <dirk.schubert@arm.com>
13254 Chris January <chris.january@arm.com>
13256 * eval.c (evaluate_subexp_standard): Call Fortran argument
13258 * f-lang.c (struct value): A value which can be passed into a
13259 Fortran function call.
13260 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13262 (struct type): Value ready for a Fortran function call.
13263 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13265 * f-lang.h (fortran_argument_convert): Declaration.
13266 (fortran_preserve_arg_pointer): Declaration.
13267 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13269 2019-03-05 Tom Tromey <tromey@adacore.com>
13271 * python/py-prettyprint.c (print_string_repr): Remove #if.
13272 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13274 2019-03-05 Tom Tromey <tromey@adacore.com>
13276 * target.c (the_dummy_target): Move later. Change type to
13278 (initialize_targets): Don't initialize the_dummy_target.
13280 2019-03-05 Tom Tromey <tromey@adacore.com>
13282 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13283 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13285 2019-03-05 Tom Tromey <tromey@adacore.com>
13287 * windows-nat.c (windows_nat_target::attach)
13288 (windows_nat_target::detach): Don't call gdb_flush.
13289 * valprint.c (generic_val_print, val_print, val_print_string):
13290 Don't call gdb_flush.
13291 * utils.c (defaulted_query): Don't call gdb_flush.
13292 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13293 * target.c (target_announce_detach): Don't call gdb_flush.
13294 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13295 * remote.c (extended_remote_target::attach): Don't call
13297 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13298 * printcmd.c (do_examine): Don't call gdb_flush.
13299 (info_display_command): Don't call gdb_flush.
13300 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13301 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13302 * memattr.c (info_mem_command): Don't call gdb_flush.
13303 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13304 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13305 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13306 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13307 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13308 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13309 (gnu_nat_target::detach): Don't call gdb_flush.
13310 * f-valprint.c (f_val_print): Don't call gdb_flush.
13311 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13312 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13313 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13315 * c-valprint.c (c_val_print): Don't call gdb_flush.
13316 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13318 2019-03-05 Tom Tromey <tromey@adacore.com>
13320 * varobj.c (update_dynamic_varobj_children): Update.
13321 (install_default_visualizer): Use reset, not release.
13322 * value.c (set_internalvar): Update.
13323 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13324 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13325 ATTRIBUTE_UNUSED_RESULT.
13327 2019-03-05 Tom Tromey <tromey@adacore.com>
13329 * remote.c (class scoped_remote_fd) <release>: Add
13330 ATTRIBUTE_UNUSED_RESULT.
13332 2019-03-05 Tom Tromey <tromey@adacore.com>
13334 * macroexp.c (struct macro_buffer) <release>: Add
13335 ATTRIBUTE_UNUSED_RESULT.
13337 2019-03-05 Tom Tromey <tromey@adacore.com>
13339 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13340 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13341 ATTRIBUTE_UNUSED_RESULT.
13343 2019-03-05 Tom Tromey <tromey@adacore.com>
13345 * common/scoped_fd.h (class scoped_fd) <release>: Add
13346 ATTRIBUTE_UNUSED_RESULT.
13348 2019-03-05 Tom Tromey <tromey@adacore.com>
13350 * parser-defs.h (struct parser_state) <release>: Add
13351 ATTRIBUTE_UNUSED_RESULT.
13353 2019-03-05 Tom Tromey <tromey@adacore.com>
13355 * utils.h (class gdb_argv) <release>: Add
13356 ATTRIBUTE_UNUSED_RESULT.
13357 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13359 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13361 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13362 for-loop range, to avoid compiler warnings.
13364 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13365 avoid compiler warnings about unused variables.
13367 * NEWS: Mention end of support for native debugging on MS-Windows
13371 * common/netstuff.c:
13372 * gdbserver/gdbreplay.c
13373 * gdbserver/remote-utils.c:
13375 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13376 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13377 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13378 'getaddrinfo' and 'freeaddrinfo' were not available before
13379 Windows XP, and mingw.org's MinGW headers by default define
13380 _WIN32_WINNT to 0x500.
13382 2019-03-01 Gary Benson <gbenson@redhat.com>
13384 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13386 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13387 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13390 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13391 set_sigint_trap, clear_sigint_trap.
13393 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13395 * target.c (target_detach): Clear the regcache and the
13398 2019-02-27 Pedro Alves <palves@redhat.com>
13400 * utils.c (set_screen_size): When we cap the height/width sizes,
13401 tweak the corresponding command variable to show "unlimited":
13403 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13404 Pedro Alves <palves@redhat.com>
13406 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13407 before calling rl_set_screen_size.
13409 2019-02-27 Tom Tromey <tromey@adacore.com>
13411 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13413 * python/py-value.c: Remove Python 2.4 workaround.
13414 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13416 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13417 Python 2.4 workaround.
13418 * python/python-internal.h: Remove Python 2.4 comment.
13419 (Py_ssize_t): Don't define.
13420 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13421 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13422 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13423 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13424 * python/python.c (do_start_initialization): Remove Python 2.4
13426 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13427 (print_children): Remove Python 2.4 workaround.
13428 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13430 (CHARBUFFERPROC_NAME): Remove.
13431 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13432 Python 2.4 workaround.
13434 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13436 * NEWS: Note minimum Python version.
13438 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13440 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13441 code from these functions. Remove corresponding ifdefs. Use
13442 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13443 Remove gotos and target of gotos.
13444 (infpy_search_memory): Likewise.
13446 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13448 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13449 (hppa_gdbarch_init): Don't register deleted functions with
13452 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13454 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13455 (h8300_unwind_sp): Delete.
13456 (h8300_dummy_id): Delete.
13457 (h8300_gdbarch_init): Don't register deleted functions with
13460 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13462 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13463 (ft32_unwind_pc): Delete.
13464 (ft32_unwind_sp): Delete.
13465 (ft32_gdbarch_init): Don't register deleted functions with
13468 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13470 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13471 (frv_unwind_pc): Delete.
13472 (frv_unwind_sp): Delete.
13473 (frv_gdbarch_init): Don't register deleted functions with
13476 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13478 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13479 (riscv_unwind_pc): Delete.
13480 (riscv_unwind_sp): Delete.
13481 (riscv_gdbarch_init): Don't register deleted functions with
13484 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13486 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13487 (csky_unwind_pc): Delete.
13488 (csky_unwind_sp): Delete.
13489 (csky_gdbarch_init): Don't register deleted functions with
13492 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13494 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13495 (cris_unwind_pc): Delete.
13496 (cris_unwind_sp): Delete.
13497 (cris_gdbarch_init): Don't register deleted functions with
13500 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13502 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13503 (bfin_unwind_pc): Delete.
13504 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13506 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13508 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13509 (arm_unwind_pc): Delete.
13510 (arm_unwind_sp): Delete.
13511 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13513 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13515 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13516 (arc_unwind_pc): Delete.
13517 (arc_unwind_sp): Delete.
13518 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13520 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13522 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13523 (alpha_unwind_pc): Delete.
13524 (alpha_gdbarch_init): Don't register deleted functions with
13527 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13529 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13530 (aarch64_unwind_pc): Delete.
13531 (aarch64_unwind_sp): Delete.
13532 (aarch64_gdbarch_init): Don't register deleted functions with
13535 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13537 * gdbtypes.c (type_align): Don't consider static members when
13538 computing structure alignment.
13540 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13542 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13543 return 0 for other types.
13544 * arch-utils.c (default_type_align): Always return 0.
13545 * gdbarch.h: Regenerate.
13546 * gdbarch.sh (type_align): Extend comment.
13547 * gdbtypes.c (type_align): Add additional comments, always call
13548 gdbarch_type_align before applying the default rules.
13549 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13550 generic code will then apply a suitable default.
13551 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13552 types, return 0 for other types.
13554 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13556 * NEWS: Create a new section for the next release branch.
13557 Rename the section of the current branch, now that it has
13560 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13562 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13563 * version.in: Bump version to 8.3.50.DATE-git.
13565 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13567 * aix-thread.c (ptid_cmp): Remove unused variable.
13568 (get_signaled_thread): Likewise.
13569 (store_regs_user_thread): Likewise.
13570 (store_regs_kernel_thread): Likewise.
13571 (fetch_regs_kernel_thread): Remove shadowed variable.
13573 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13575 * features/riscv/32bit-cpu.xml: Add register numbers.
13576 * features/riscv/32bit-fpu.c: Regenerate.
13577 * features/riscv/32bit-fpu.xml: Add register numbers.
13578 * features/riscv/64bit-cpu.xml: Add register numbers.
13579 * features/riscv/64bit-fpu.c: Regenerate.
13580 * features/riscv/64bit-fpu.xml: Add register numbers.
13582 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13584 * NEWS: Mention two argument form of gdb.Value constructor.
13585 * python/py-value.c (convert_buffer_and_type_to_value): New
13587 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13588 Add support for handling an optional second argument. Call
13589 convert_buffer_and_type_to_value as appropriate.
13590 * python/python-internal.h (Py_buffer_deleter): New struct.
13591 (Py_buffer_up): New typedef.
13593 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13595 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13596 instead of releasing ownership.
13598 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13600 * dwarf2read.c (open_and_init_dwp_file): Call
13601 elf_numsections instead of bfd_count_sections to initialize
13602 dwp_file->num_sections.
13604 2019-02-25 Tom Tromey <tromey@adacore.com>
13606 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13608 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13610 * gcore.in: Add '--readnever' option when invoking GDB.
13612 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13614 * MAINTAINERS: Update my email address.
13616 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13618 * build-id.c (build_id_to_debug_bfd_1): New function.
13619 (build_id_to_debug_bfd): Look for separate debug file in
13622 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13624 * gdbarch.sh: Update the copyright year range that is placed into
13627 2019-02-22 Keith Seitz <keiths@redhat.com>
13630 * linespec.c (create_sals_line_offset): Search for the default
13631 symtab's filename instead of its fullname.
13633 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13635 * NEWS: Update style defaults.
13637 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13639 * main.c (captured_main_1): Disable styling in batch mode.
13641 2019-02-20 Tom Tromey <tom@tromey.com>
13643 * symtab.c (symtab_symbol_info): Fix typos.
13645 2019-02-20 Tom Tromey <tromey@adacore.com>
13647 * findcmd.c (_initialize_mem_search): Use upper case for
13648 metasyntactic variables.
13650 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13652 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13653 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13655 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13657 * top.h (source_file_name): Change to std::string.
13658 * top.c (source_file_name): Likewise.
13659 (command_line_input): Adjust.
13660 * cli/cli-script.c (script_from_file): Adjust.
13662 2019-02-19 Tom Tromey <tromey@adacore.com>
13664 * ravenscar-thread.c
13665 (ravenscar_thread_target::update_thread_list): Don't call
13666 ada_build_task_list.
13667 * ada-lang.h (ada_build_task_list): Don't declare.
13668 * ada-tasks.c (struct ada_tasks_inferior_data)
13669 <task_list_valid_p>: Now bool.
13670 (read_known_tasks, ada_task_list_changed)
13671 (ada_tasks_invalidate_inferior_data): Update.
13672 (read_known_tasks_array): Return bool.
13673 (read_known_tasks_list): Likewise.
13674 (read_known_tasks): Return void.
13675 (ada_build_task_list): Now static.
13677 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13679 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13680 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13682 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13684 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13685 variant for ada_tasks_pspace_data_handle and
13686 ada_tasks_inferior_data_handle.
13687 (ada_tasks_pspace_data_cleanup): New function.
13688 (ada_tasks_inferior_data_cleanup): New function.
13690 2019-02-17 Tom Tromey <tom@tromey.com>
13692 * macrotab.h (macro_source_fullname): Return a std::string.
13693 * macrotab.c (macro_include, check_for_redefinition)
13694 (macro_undef, macro_lookup_definition, foreach_macro)
13695 (foreach_macro_in_scope): Update.
13696 (macro_source_fullname): Return a std::string.
13697 * macrocmd.c (show_pp_source_pos): Update.
13699 2019-02-17 Tom Tromey <tom@tromey.com>
13701 * macrocmd.c (show_pp_source_pos): Style the file names.
13703 2019-02-17 Tom Tromey <tom@tromey.com>
13706 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13708 2019-02-17 Tom Tromey <tom@tromey.com>
13710 * ada-lang.c (user_select_syms): Use filtered printing.
13711 * utils.c (wrap_style): New global.
13712 (desired_style): Remove.
13713 (emit_style_escape): Add stream parameter.
13714 (set_output_style, reset_terminal_style, prompt_for_continue):
13716 (flush_wrap_buffer): Only flush gdb_stdout.
13717 (wrap_here): Set wrap_style.
13718 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13719 treat escape sequences as a character. Change when wrap buffer is
13721 (fputs_styled): Do not set the output style when the default is
13723 * ui-style.h (struct ui_file_style) <is_default>: New method.
13724 * source.c (print_source_lines_base): Emit escape sequences in one
13727 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13729 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13730 integers and enumeration types.
13732 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13734 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13735 instead of lookup_symbol_in_language
13736 (do_exact_match): New function.
13737 (ada_get_symbol_name_matcher): Return do_exact_match when
13738 doing a verbatim match.
13740 2019-02-15 Tom Tromey <tromey@adacore.com>
13742 * ravenscar-thread.c (ravenscar_thread_target::resume)
13743 (ravenscar_thread_target::wait): Special case wildcard requests.
13745 2019-02-15 Tom Tromey <tromey@adacore.com>
13747 * ravenscar-thread.c (base_ptid): Remove.
13748 (struct ravenscar_thread_target) <close>: New method.
13749 <m_base_ptid>: New member.
13750 <update_inferior_ptid, active_task, task_is_currently_active,
13751 runtime_initialized>: Declare methods.
13752 <ravenscar_thread_target>: Add constructor.
13753 (ravenscar_thread_target::task_is_currently_active)
13754 (ravenscar_thread_target::update_inferior_ptid)
13755 (ravenscar_runtime_initialized): Rename. Now methods.
13756 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13757 (ravenscar_thread_target::update_thread_list): Update.
13758 (ravenscar_thread_target::active_task): Now method.
13759 (ravenscar_thread_target::store_registers)
13760 (ravenscar_thread_target::prepare_to_store)
13761 (ravenscar_thread_target::prepare_to_store)
13762 (ravenscar_thread_target::mourn_inferior): Update.
13763 (ravenscar_inferior_created): Use "new" to create target.
13764 (ravenscar_thread_target::get_ada_task_ptid): Update.
13765 (_initialize_ravenscar): Don't initialize base_ptid.
13766 (ravenscar_ops): Remove global.
13768 2019-02-15 Tom Tromey <tromey@adacore.com>
13770 * target.h (push_target): Declare new overload.
13771 * target.c (push_target): New overload, taking an rvalue reference.
13772 * remote.c (remote_target::open_1): Use push_target overload.
13773 * corelow.c (core_target_open): Use push_target overload.
13775 2019-02-15 Tom Tromey <tromey@adacore.com>
13777 * ravenscar-thread.c (is_ravenscar_task)
13778 (ravenscar_task_is_currently_active): Return bool.
13779 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13780 (_initialize_ravenscar): Remove "(void)".
13781 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13784 2019-02-15 Tom Tromey <tromey@adacore.com>
13786 * ravenscar-thread.c (ravenscar_runtime_initializer)
13787 (has_ravenscar_runtime, get_running_thread_id)
13788 (ravenscar_thread_target::resume): Fix indentation.
13790 2019-02-15 Tom Tromey <tromey@adacore.com>
13792 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13793 from ravenscar_arch_ops.
13794 (sparc_ravenscar_ops::fetch_registers)
13795 (sparc_ravenscar_ops::store_registers): Now methods.
13796 (sparc_ravenscar_prepare_to_store): Remove.
13797 (sparc_ravenscar_ops): Redefine.
13798 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13799 methods and destructor. Remove members.
13800 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13801 (ravenscar_thread_target::store_registers)
13802 (ravenscar_thread_target::prepare_to_store): Update.
13803 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13805 (struct ppc_ravenscar_powerpc_ops): Derive from
13806 ravenscar_arch_ops.
13807 (ppc_ravenscar_powerpc_ops::fetch_registers)
13808 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13809 (ppc_ravenscar_powerpc_ops): Redefine.
13810 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13811 (ppc_ravenscar_e500_ops::fetch_registers)
13812 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13813 (ppc_ravenscar_e500_ops): Redefine.
13814 * aarch64-ravenscar-thread.c
13815 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13816 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13817 (aarch64_ravenscar_fetch_registers)
13818 (aarch64_ravenscar_store_registers): Now methods.
13819 (aarch64_ravenscar_ops): Redefine.
13821 2019-02-15 Tom Tromey <tromey@adacore.com>
13823 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13824 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13825 (ravenscar_thread_target::stopped_by_watchpoint)
13826 (ravenscar_thread_target::stopped_data_address)
13827 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13829 2019-02-15 Tom Tromey <tromey@adacore.com>
13831 * ravenscar-thread.c: Fix some typos.
13833 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13834 Tom Tromey <tromey@adacore.com>
13836 * ada-lang.c (ada_exception_sal): Change addr_string to a
13838 (create_ada_exception_catchpoint): Update.
13840 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13841 Tom Tromey <tromey@adacore.com>
13843 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13844 (bp_location_ops): Remove.
13845 (base_breakpoint_allocate_location): Update.
13846 (free_bp_location): Update.
13847 * ada-lang.c (class ada_catchpoint_location)
13848 <ada_catchpoint_location>: Remove ops parameter.
13849 (ada_catchpoint_location_dtor): Remove.
13850 (ada_catchpoint_location_ops): Remove.
13851 (allocate_location_exception): Update.
13852 * breakpoint.h (struct bp_location_ops): Remove.
13853 (class bp_location) <bp_location>: Remove bp_location_ops
13855 <~bp_location>: Add destructor.
13858 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13859 Pedro Alves <palves@redhat.com>
13861 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13864 2019-02-14 David Michael <fedora.dm0@gmail.com>
13865 Samuel Thibault <samuel.thibault@gnu.org>
13866 Thomas Schwinge <thomas@codesourcery.com>
13868 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13869 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13871 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13873 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13874 (check_empty): Use "const char *".
13876 * gnu-nat.c (gnu_nat_target::detach): Instead of
13877 'detach_inferior (pid)' call
13878 'detach_inferior (find_inferior_pid (pid))'.
13880 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13881 'nat/fork-inferior.o'.
13882 * gnu-nat.c: #include "nat/fork-inferior.h".
13884 * gnu-nat.c (gnu_nat_target::detach): Instead of
13885 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13886 * gnu-nat.h: #include "inf-child.h".
13887 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13888 'i386_gnu_nat_target::fetch_registers'.
13889 (gnu_store_registers): Rename/move to
13890 'i386_gnu_nat_target::store_registers'.
13892 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13893 * gnu-nat.h (mach_thread_info): New function.
13894 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13896 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13898 2019-02-14 Frederic Konrad <konrad@adacore.com>
13900 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13902 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13904 * windows-nat.c (windows_add_thread): Add new parameter
13905 "main_thread_p" with default value set to false. Update
13906 function documentation as well as all callers.
13907 (windows_delete_thread): Likewise.
13908 (fake_create_process): Update call to windows_add_thread.
13909 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13910 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13911 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13912 call to windows_delete_thread.
13914 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13916 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13918 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13920 * symfile.c (find_separate_debug_file): Use canonical path of
13921 sysroot with child_path instead of gdb_sysroot if it is valid.
13923 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13925 * symfile.c (find_separate_debug_file): Use child_path to
13926 determine if an object file is under a sysroot.
13928 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13930 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13931 unittests/child-path-selftests.c.
13932 * common/pathstuff.c (child_path): New function.
13933 * common/pathstuff.h (child_path): New prototype.
13934 * unittests/child-path-selftests.c: New file.
13936 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13938 * symfile.c (find_separate_debug_file): Look for separate debug
13939 files in debug directories under the sysroot.
13941 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13943 * symtab.h (struct minimal_symbol data_p): New const method.
13944 (struct minimal_symbol text_p): Likewise.
13945 * symtab.c (output_source_filename): Use file name style
13946 to print file name.
13947 (print_symbol_info): Likewise.
13948 (print_msymbol_info): Use address style to print addresses.
13949 Use function name style to print executable text symbols.
13950 (expand_symtab_containing_pc): Use data_p.
13951 (find_pc_sect_compunit_symtab): Likewise.
13953 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13955 * breakpoint.c (describe_other_breakpoints): Use address style
13956 to print addresses.
13957 (say_where): Likewise.
13959 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13961 * ada-typeprint.c (print_func_type): Print function name
13962 style to print function name.
13963 * c-typeprint.c (c_print_type_1): Likewise.
13965 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13967 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13970 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13972 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13975 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13977 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13978 TYPE_CODE_REF types.
13980 2019-02-08 Jim Wilson <jimw@sifive.com>
13982 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13983 (riscv_linux_fregset): New.
13984 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13986 2019-02-07 Tom Tromey <tom@tromey.com>
13988 * thread.c (thread_cancel_execution_command): Update.
13989 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13991 (struct thread_fsm_ops): Remove.
13992 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13993 (thread_fsm_should_stop, thread_fsm_return_value)
13994 (thread_fsm_set_finished, thread_fsm_finished_p)
13995 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13997 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13998 * infrun.c (clear_proceed_status_thread)
13999 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14000 (print_stop_event): Update.
14001 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14003 (step_command_fsm_ops): Remove.
14004 (new_step_command_fsm): Remove.
14006 (step_command_fsm::should_stop): Rename from
14007 step_command_fsm_should_stop.
14008 (step_command_fsm::clean_up): Rename from
14009 step_command_fsm_clean_up.
14010 (step_command_fsm::do_async_reply_reason): Rename from
14011 step_command_fsm_async_reply_reason.
14012 (struct until_next_fsm): Inherit from thread_fsm. Add
14014 (until_next_fsm_ops): Remove.
14015 (new_until_next_fsm): Remove.
14016 (until_next_fsm::should_stop): Rename from
14017 until_next_fsm_should_stop.
14018 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14019 (until_next_fsm::do_async_reply_reason): Rename from
14020 until_next_fsm_async_reply_reason.
14021 (struct finish_command_fsm): Inherit from thread_fsm. Add
14022 constructor. Change type of breakpoint.
14023 (finish_command_fsm_ops): Remove.
14024 (new_finish_command_fsm): Remove.
14025 (finish_command_fsm::should_stop): Rename from
14026 finish_command_fsm_should_stop.
14027 (finish_command_fsm::clean_up): Rename from
14028 finish_command_fsm_clean_up.
14029 (finish_command_fsm::return_value): Rename from
14030 finish_command_fsm_return_value.
14031 (finish_command_fsm::do_async_reply_reason): Rename from
14032 finish_command_fsm_async_reply_reason.
14033 (finish_command): Update.
14034 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14036 (call_thread_fsm_ops): Remove.
14037 (call_thread_fsm::call_thread_fsm): Rename from
14038 new_call_thread_fsm.
14039 (call_thread_fsm::should_stop): Rename from
14040 call_thread_fsm_should_stop.
14041 (call_thread_fsm::should_notify_stop): Rename from
14042 call_thread_fsm_should_notify_stop.
14043 (run_inferior_call, call_function_by_hand_dummy): Update.
14044 * cli/cli-interp.c (should_print_stop_to_console): Update.
14045 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14046 Add constructor. Change type of location_breakpoint,
14048 (until_break_fsm_ops): Remove.
14049 (new_until_break_fsm): Remove.
14050 (until_break_fsm::should_stop): Rename from
14051 until_break_fsm_should_stop.
14052 (until_break_fsm::clean_up): Rename from
14053 until_break_fsm_clean_up.
14054 (until_break_fsm::do_async_reply_reason): Rename from
14055 until_break_fsm_async_reply_reason.
14056 (until_break_command): Update.
14057 * thread-fsm.c: Remove.
14058 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14060 2019-02-07 Tom Tromey <tom@tromey.com>
14062 * yy-remap.h: Add include guard.
14063 * xtensa-tdep.h: Add include guard.
14064 * xcoffread.h: Rename include guard.
14065 * varobj-iter.h: Add include guard.
14066 * tui/tui.h: Rename include guard.
14067 * tui/tui-winsource.h: Rename include guard.
14068 * tui/tui-wingeneral.h: Rename include guard.
14069 * tui/tui-windata.h: Rename include guard.
14070 * tui/tui-win.h: Rename include guard.
14071 * tui/tui-stack.h: Rename include guard.
14072 * tui/tui-source.h: Rename include guard.
14073 * tui/tui-regs.h: Rename include guard.
14074 * tui/tui-out.h: Rename include guard.
14075 * tui/tui-layout.h: Rename include guard.
14076 * tui/tui-io.h: Rename include guard.
14077 * tui/tui-hooks.h: Rename include guard.
14078 * tui/tui-file.h: Rename include guard.
14079 * tui/tui-disasm.h: Rename include guard.
14080 * tui/tui-data.h: Rename include guard.
14081 * tui/tui-command.h: Rename include guard.
14082 * tic6x-tdep.h: Add include guard.
14083 * target/waitstatus.h: Rename include guard.
14084 * target/wait.h: Rename include guard.
14085 * target/target.h: Rename include guard.
14086 * target/resume.h: Rename include guard.
14087 * target-float.h: Rename include guard.
14088 * stabsread.h: Add include guard.
14089 * rs6000-tdep.h: Add include guard.
14090 * riscv-fbsd-tdep.h: Add include guard.
14091 * regformats/regdef.h: Rename include guard.
14092 * record.h: Rename include guard.
14093 * python/python.h: Rename include guard.
14094 * python/python-internal.h: Rename include guard.
14095 * python/py-stopevent.h: Rename include guard.
14096 * python/py-ref.h: Rename include guard.
14097 * python/py-record.h: Rename include guard.
14098 * python/py-record-full.h: Rename include guard.
14099 * python/py-record-btrace.h: Rename include guard.
14100 * python/py-instruction.h: Rename include guard.
14101 * python/py-events.h: Rename include guard.
14102 * python/py-event.h: Rename include guard.
14103 * procfs.h: Add include guard.
14104 * proc-utils.h: Add include guard.
14105 * p-lang.h: Add include guard.
14106 * or1k-tdep.h: Rename include guard.
14107 * observable.h: Rename include guard.
14108 * nto-tdep.h: Rename include guard.
14109 * nat/x86-linux.h: Rename include guard.
14110 * nat/x86-linux-dregs.h: Rename include guard.
14111 * nat/x86-gcc-cpuid.h: Add include guard.
14112 * nat/x86-dregs.h: Rename include guard.
14113 * nat/x86-cpuid.h: Rename include guard.
14114 * nat/ppc-linux.h: Rename include guard.
14115 * nat/mips-linux-watch.h: Rename include guard.
14116 * nat/linux-waitpid.h: Rename include guard.
14117 * nat/linux-ptrace.h: Rename include guard.
14118 * nat/linux-procfs.h: Rename include guard.
14119 * nat/linux-osdata.h: Rename include guard.
14120 * nat/linux-nat.h: Rename include guard.
14121 * nat/linux-namespaces.h: Rename include guard.
14122 * nat/linux-btrace.h: Rename include guard.
14123 * nat/glibc_thread_db.h: Rename include guard.
14124 * nat/gdb_thread_db.h: Rename include guard.
14125 * nat/gdb_ptrace.h: Rename include guard.
14126 * nat/fork-inferior.h: Rename include guard.
14127 * nat/amd64-linux-siginfo.h: Rename include guard.
14128 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14129 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14130 * nat/aarch64-linux.h: Rename include guard.
14131 * nat/aarch64-linux-hw-point.h: Rename include guard.
14132 * mn10300-tdep.h: Add include guard.
14133 * mips-linux-tdep.h: Add include guard.
14134 * mi/mi-parse.h: Rename include guard.
14135 * mi/mi-out.h: Rename include guard.
14136 * mi/mi-main.h: Rename include guard.
14137 * mi/mi-interp.h: Rename include guard.
14138 * mi/mi-getopt.h: Rename include guard.
14139 * mi/mi-console.h: Rename include guard.
14140 * mi/mi-common.h: Rename include guard.
14141 * mi/mi-cmds.h: Rename include guard.
14142 * mi/mi-cmd-break.h: Rename include guard.
14143 * m2-lang.h: Add include guard.
14144 * location.h: Rename include guard.
14145 * linux-record.h: Rename include guard.
14146 * linux-nat.h: Add include guard.
14147 * linux-fork.h: Add include guard.
14148 * i386-darwin-tdep.h: Rename include guard.
14149 * hppa-linux-offsets.h: Add include guard.
14150 * guile/guile.h: Rename include guard.
14151 * guile/guile-internal.h: Rename include guard.
14152 * gnu-nat.h: Rename include guard.
14153 * gdb-stabs.h: Rename include guard.
14154 * frv-tdep.h: Add include guard.
14155 * f-lang.h: Add include guard.
14156 * event-loop.h: Add include guard.
14157 * darwin-nat.h: Rename include guard.
14158 * cp-abi.h: Rename include guard.
14159 * config/sparc/nm-sol2.h: Rename include guard.
14160 * config/nm-nto.h: Rename include guard.
14161 * config/nm-linux.h: Add include guard.
14162 * config/i386/nm-i386gnu.h: Rename include guard.
14163 * config/djgpp/nl_types.h: Rename include guard.
14164 * config/djgpp/langinfo.h: Rename include guard.
14165 * compile/gcc-cp-plugin.h: Add include guard.
14166 * compile/gcc-c-plugin.h: Add include guard.
14167 * compile/compile.h: Rename include guard.
14168 * compile/compile-object-run.h: Rename include guard.
14169 * compile/compile-object-load.h: Rename include guard.
14170 * compile/compile-internal.h: Rename include guard.
14171 * compile/compile-cplus.h: Rename include guard.
14172 * compile/compile-c.h: Rename include guard.
14173 * common/xml-utils.h: Rename include guard.
14174 * common/x86-xstate.h: Rename include guard.
14175 * common/version.h: Rename include guard.
14176 * common/vec.h: Rename include guard.
14177 * common/tdesc.h: Rename include guard.
14178 * common/selftest.h: Rename include guard.
14179 * common/scoped_restore.h: Rename include guard.
14180 * common/scoped_mmap.h: Rename include guard.
14181 * common/scoped_fd.h: Rename include guard.
14182 * common/safe-iterator.h: Rename include guard.
14183 * common/run-time-clock.h: Rename include guard.
14184 * common/refcounted-object.h: Rename include guard.
14185 * common/queue.h: Rename include guard.
14186 * common/ptid.h: Rename include guard.
14187 * common/print-utils.h: Rename include guard.
14188 * common/preprocessor.h: Rename include guard.
14189 * common/pathstuff.h: Rename include guard.
14190 * common/observable.h: Rename include guard.
14191 * common/netstuff.h: Rename include guard.
14192 * common/job-control.h: Rename include guard.
14193 * common/host-defs.h: Rename include guard.
14194 * common/gdb_wait.h: Rename include guard.
14195 * common/gdb_vecs.h: Rename include guard.
14196 * common/gdb_unlinker.h: Rename include guard.
14197 * common/gdb_unique_ptr.h: Rename include guard.
14198 * common/gdb_tilde_expand.h: Rename include guard.
14199 * common/gdb_sys_time.h: Rename include guard.
14200 * common/gdb_string_view.h: Rename include guard.
14201 * common/gdb_splay_tree.h: Rename include guard.
14202 * common/gdb_setjmp.h: Rename include guard.
14203 * common/gdb_ref_ptr.h: Rename include guard.
14204 * common/gdb_optional.h: Rename include guard.
14205 * common/gdb_locale.h: Rename include guard.
14206 * common/gdb_assert.h: Rename include guard.
14207 * common/filtered-iterator.h: Rename include guard.
14208 * common/filestuff.h: Rename include guard.
14209 * common/fileio.h: Rename include guard.
14210 * common/environ.h: Rename include guard.
14211 * common/common-utils.h: Rename include guard.
14212 * common/common-types.h: Rename include guard.
14213 * common/common-regcache.h: Rename include guard.
14214 * common/common-inferior.h: Rename include guard.
14215 * common/common-gdbthread.h: Rename include guard.
14216 * common/common-exceptions.h: Rename include guard.
14217 * common/common-defs.h: Rename include guard.
14218 * common/common-debug.h: Rename include guard.
14219 * common/cleanups.h: Rename include guard.
14220 * common/buffer.h: Rename include guard.
14221 * common/btrace-common.h: Rename include guard.
14222 * common/break-common.h: Rename include guard.
14223 * cli/cli-utils.h: Rename include guard.
14224 * cli/cli-style.h: Rename include guard.
14225 * cli/cli-setshow.h: Rename include guard.
14226 * cli/cli-script.h: Rename include guard.
14227 * cli/cli-interp.h: Rename include guard.
14228 * cli/cli-decode.h: Rename include guard.
14229 * cli/cli-cmds.h: Rename include guard.
14230 * charset-list.h: Add include guard.
14231 * buildsym-legacy.h: Rename include guard.
14232 * bfin-tdep.h: Add include guard.
14233 * ax.h: Rename include guard.
14234 * arm-linux-tdep.h: Add include guard.
14235 * arm-fbsd-tdep.h: Add include guard.
14236 * arch/xtensa.h: Rename include guard.
14237 * arch/tic6x.h: Add include guard.
14238 * arch/i386.h: Add include guard.
14239 * arch/arm.h: Rename include guard.
14240 * arch/arm-linux.h: Rename include guard.
14241 * arch/arm-get-next-pcs.h: Rename include guard.
14242 * arch/amd64.h: Add include guard.
14243 * arch/aarch64-insn.h: Rename include guard.
14244 * arch-utils.h: Rename include guard.
14245 * annotate.h: Add include guard.
14246 * amd64-darwin-tdep.h: Rename include guard.
14247 * aarch64-linux-tdep.h: Add include guard.
14248 * aarch64-fbsd-tdep.h: Add include guard.
14249 * aarch32-linux-nat.h: Add include guard.
14251 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14253 * macrotab.c (macro_define_internal): New function that
14254 factorizes macro_define_object_internal and macro_define_function
14256 (macro_define_object_internal): Use macro_define_internal.
14257 (macro_define_function): Likewise.
14259 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14261 * macrocmd.c (extract_identifier): Return
14262 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14265 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14267 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14269 2019-02-05 Tom Tromey <tom@tromey.com>
14271 * target.c (target_stack::unpush): Move assertion earlier.
14273 2019-01-30 Tom Tromey <tom@tromey.com>
14276 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14277 (gdbpy_parse_and_eval): Likewise.
14278 * python/python-internal.h (gdbpy_allow_threads): New class.
14280 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14282 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14283 (aarch64_fbsd_fpregmap): Move earlier.
14284 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14285 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14286 instead of individual calls to trad_frame_set_reg_addr.
14287 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14289 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14290 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14291 instead of individual calls to trad_frame_set_reg_addr.
14293 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14295 * CONTRIBUTE: Replace contribution list with wiki link.
14297 2019-01-25 Tom Tromey <tom@tromey.com>
14299 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14301 2019-01-25 Tom Tromey <tom@tromey.com>
14303 * xtensa-linux-nat.c: Fix common/ includes.
14304 * xml-support.h: Fix common/ includes.
14305 * xml-support.c: Fix common/ includes.
14306 * x86-linux-nat.c: Fix common/ includes.
14307 * windows-nat.c: Fix common/ includes.
14308 * varobj.h: Fix common/ includes.
14309 * varobj.c: Fix common/ includes.
14310 * value.c: Fix common/ includes.
14311 * valops.c: Fix common/ includes.
14312 * utils.c: Fix common/ includes.
14313 * unittests/xml-utils-selftests.c: Fix common/ includes.
14314 * unittests/utils-selftests.c: Fix common/ includes.
14315 * unittests/unpack-selftests.c: Fix common/ includes.
14316 * unittests/tracepoint-selftests.c: Fix common/ includes.
14317 * unittests/style-selftests.c: Fix common/ includes.
14318 * unittests/string_view-selftests.c: Fix common/ includes.
14319 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14320 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14321 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14322 * unittests/rsp-low-selftests.c: Fix common/ includes.
14323 * unittests/parse-connection-spec-selftests.c: Fix common/
14325 * unittests/optional-selftests.c: Fix common/ includes.
14326 * unittests/offset-type-selftests.c: Fix common/ includes.
14327 * unittests/observable-selftests.c: Fix common/ includes.
14328 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14329 * unittests/memrange-selftests.c: Fix common/ includes.
14330 * unittests/memory-map-selftests.c: Fix common/ includes.
14331 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14332 * unittests/function-view-selftests.c: Fix common/ includes.
14333 * unittests/environ-selftests.c: Fix common/ includes.
14334 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14335 * unittests/common-utils-selftests.c: Fix common/ includes.
14336 * unittests/cli-utils-selftests.c: Fix common/ includes.
14337 * unittests/array-view-selftests.c: Fix common/ includes.
14338 * ui-file.c: Fix common/ includes.
14339 * tui/tui-io.c: Fix common/ includes.
14340 * tracepoint.h: Fix common/ includes.
14341 * tracepoint.c: Fix common/ includes.
14342 * tracefile-tfile.c: Fix common/ includes.
14343 * top.h: Fix common/ includes.
14344 * top.c: Fix common/ includes.
14345 * thread.c: Fix common/ includes.
14346 * target/waitstatus.h: Fix common/ includes.
14347 * target/waitstatus.c: Fix common/ includes.
14348 * target.h: Fix common/ includes.
14349 * target.c: Fix common/ includes.
14350 * target-memory.c: Fix common/ includes.
14351 * target-descriptions.c: Fix common/ includes.
14352 * symtab.h: Fix common/ includes.
14353 * symfile.c: Fix common/ includes.
14354 * stap-probe.c: Fix common/ includes.
14355 * spu-linux-nat.c: Fix common/ includes.
14356 * sparc-nat.c: Fix common/ includes.
14357 * source.c: Fix common/ includes.
14358 * solib.c: Fix common/ includes.
14359 * solib-target.c: Fix common/ includes.
14360 * ser-unix.c: Fix common/ includes.
14361 * ser-tcp.c: Fix common/ includes.
14362 * ser-pipe.c: Fix common/ includes.
14363 * ser-base.c: Fix common/ includes.
14364 * selftest-arch.c: Fix common/ includes.
14365 * s12z-tdep.c: Fix common/ includes.
14366 * rust-exp.y: Fix common/ includes.
14367 * rs6000-aix-tdep.c: Fix common/ includes.
14368 * riscv-tdep.c: Fix common/ includes.
14369 * remote.c: Fix common/ includes.
14370 * remote-notif.h: Fix common/ includes.
14371 * remote-fileio.h: Fix common/ includes.
14372 * remote-fileio.c: Fix common/ includes.
14373 * regcache.h: Fix common/ includes.
14374 * regcache.c: Fix common/ includes.
14375 * record-btrace.c: Fix common/ includes.
14376 * python/python.c: Fix common/ includes.
14377 * python/py-type.c: Fix common/ includes.
14378 * python/py-inferior.c: Fix common/ includes.
14379 * progspace.h: Fix common/ includes.
14380 * producer.c: Fix common/ includes.
14381 * procfs.c: Fix common/ includes.
14382 * proc-api.c: Fix common/ includes.
14383 * printcmd.c: Fix common/ includes.
14384 * ppc-linux-nat.c: Fix common/ includes.
14385 * parser-defs.h: Fix common/ includes.
14386 * osdata.c: Fix common/ includes.
14387 * obsd-nat.c: Fix common/ includes.
14388 * nat/x86-linux.c: Fix common/ includes.
14389 * nat/x86-linux-dregs.c: Fix common/ includes.
14390 * nat/x86-dregs.h: Fix common/ includes.
14391 * nat/x86-dregs.c: Fix common/ includes.
14392 * nat/ppc-linux.c: Fix common/ includes.
14393 * nat/mips-linux-watch.h: Fix common/ includes.
14394 * nat/mips-linux-watch.c: Fix common/ includes.
14395 * nat/linux-waitpid.c: Fix common/ includes.
14396 * nat/linux-ptrace.h: Fix common/ includes.
14397 * nat/linux-ptrace.c: Fix common/ includes.
14398 * nat/linux-procfs.c: Fix common/ includes.
14399 * nat/linux-personality.c: Fix common/ includes.
14400 * nat/linux-osdata.c: Fix common/ includes.
14401 * nat/linux-namespaces.c: Fix common/ includes.
14402 * nat/linux-btrace.h: Fix common/ includes.
14403 * nat/linux-btrace.c: Fix common/ includes.
14404 * nat/fork-inferior.c: Fix common/ includes.
14405 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14406 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14407 * nat/aarch64-linux.c: Fix common/ includes.
14408 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14409 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14410 * namespace.h: Fix common/ includes.
14411 * mips-linux-tdep.c: Fix common/ includes.
14412 * minsyms.c: Fix common/ includes.
14413 * mi/mi-parse.h: Fix common/ includes.
14414 * mi/mi-main.c: Fix common/ includes.
14415 * mi/mi-cmd-env.c: Fix common/ includes.
14416 * memrange.h: Fix common/ includes.
14417 * memattr.c: Fix common/ includes.
14418 * maint.h: Fix common/ includes.
14419 * maint.c: Fix common/ includes.
14420 * main.c: Fix common/ includes.
14421 * machoread.c: Fix common/ includes.
14422 * location.c: Fix common/ includes.
14423 * linux-thread-db.c: Fix common/ includes.
14424 * linux-nat.c: Fix common/ includes.
14425 * linux-fork.c: Fix common/ includes.
14426 * inline-frame.c: Fix common/ includes.
14427 * infrun.c: Fix common/ includes.
14428 * inflow.c: Fix common/ includes.
14429 * inferior.h: Fix common/ includes.
14430 * inferior.c: Fix common/ includes.
14431 * infcmd.c: Fix common/ includes.
14432 * inf-ptrace.c: Fix common/ includes.
14433 * inf-child.c: Fix common/ includes.
14434 * ia64-linux-nat.c: Fix common/ includes.
14435 * i387-tdep.c: Fix common/ includes.
14436 * i386-tdep.c: Fix common/ includes.
14437 * i386-linux-tdep.c: Fix common/ includes.
14438 * i386-linux-nat.c: Fix common/ includes.
14439 * i386-go32-tdep.c: Fix common/ includes.
14440 * i386-fbsd-tdep.c: Fix common/ includes.
14441 * i386-fbsd-nat.c: Fix common/ includes.
14442 * guile/scm-type.c: Fix common/ includes.
14443 * guile/guile.c: Fix common/ includes.
14444 * go32-nat.c: Fix common/ includes.
14445 * gnu-nat.c: Fix common/ includes.
14446 * gdbthread.h: Fix common/ includes.
14447 * gdbarch-selftests.c: Fix common/ includes.
14448 * gdb_usleep.c: Fix common/ includes.
14449 * gdb_select.h: Fix common/ includes.
14450 * gdb_bfd.c: Fix common/ includes.
14451 * gcore.c: Fix common/ includes.
14452 * fork-child.c: Fix common/ includes.
14453 * findvar.c: Fix common/ includes.
14454 * fbsd-nat.c: Fix common/ includes.
14455 * event-top.c: Fix common/ includes.
14456 * event-loop.c: Fix common/ includes.
14457 * dwarf2read.c: Fix common/ includes.
14458 * dwarf2loc.c: Fix common/ includes.
14459 * dwarf2-frame.c: Fix common/ includes.
14460 * dwarf-index-cache.c: Fix common/ includes.
14461 * dtrace-probe.c: Fix common/ includes.
14462 * disasm-selftests.c: Fix common/ includes.
14463 * defs.h: Fix common/ includes.
14464 * csky-tdep.c: Fix common/ includes.
14465 * cp-valprint.c: Fix common/ includes.
14466 * cp-support.h: Fix common/ includes.
14467 * cp-support.c: Fix common/ includes.
14468 * corelow.c: Fix common/ includes.
14469 * completer.h: Fix common/ includes.
14470 * completer.c: Fix common/ includes.
14471 * compile/compile.c: Fix common/ includes.
14472 * compile/compile-loc2c.c: Fix common/ includes.
14473 * compile/compile-cplus-types.c: Fix common/ includes.
14474 * compile/compile-cplus-symbols.c: Fix common/ includes.
14475 * command.h: Fix common/ includes.
14476 * cli/cli-dump.c: Fix common/ includes.
14477 * cli/cli-cmds.c: Fix common/ includes.
14478 * charset.c: Fix common/ includes.
14479 * build-id.c: Fix common/ includes.
14480 * btrace.h: Fix common/ includes.
14481 * btrace.c: Fix common/ includes.
14482 * breakpoint.h: Fix common/ includes.
14483 * breakpoint.c: Fix common/ includes.
14485 (enum agent_op): Fix common/ includes.
14486 * ax-general.c (struct aop_map): Fix common/ includes.
14487 * ax-gdb.c: Fix common/ includes.
14488 * auxv.c: Fix common/ includes.
14489 * auto-load.c: Fix common/ includes.
14490 * arm-tdep.c: Fix common/ includes.
14491 * arch/riscv.c: Fix common/ includes.
14492 * arch/ppc-linux-common.c: Fix common/ includes.
14493 * arch/i386.c: Fix common/ includes.
14494 * arch/arm.c: Fix common/ includes.
14495 * arch/arm-linux.c: Fix common/ includes.
14496 * arch/arm-get-next-pcs.c: Fix common/ includes.
14497 * arch/amd64.c: Fix common/ includes.
14498 * arch/aarch64.c: Fix common/ includes.
14499 * arch/aarch64-insn.c: Fix common/ includes.
14500 * arch-utils.c: Fix common/ includes.
14501 * amd64-windows-tdep.c: Fix common/ includes.
14502 * amd64-tdep.c: Fix common/ includes.
14503 * amd64-sol2-tdep.c: Fix common/ includes.
14504 * amd64-obsd-tdep.c: Fix common/ includes.
14505 * amd64-nbsd-tdep.c: Fix common/ includes.
14506 * amd64-linux-tdep.c: Fix common/ includes.
14507 * amd64-linux-nat.c: Fix common/ includes.
14508 * amd64-fbsd-tdep.c: Fix common/ includes.
14509 * amd64-fbsd-nat.c: Fix common/ includes.
14510 * amd64-dicos-tdep.c: Fix common/ includes.
14511 * amd64-darwin-tdep.c: Fix common/ includes.
14512 * agent.c: Fix common/ includes.
14513 * ada-lang.h: Fix common/ includes.
14514 * ada-lang.c: Fix common/ includes.
14515 * aarch64-tdep.c: Fix common/ includes.
14517 2019-01-25 Tom Tromey <tom@tromey.com>
14519 * common/create-version.sh: Use common/version.h.
14521 2019-01-24 Pedro Alves <palves@redhat.com>
14523 * infrun.c (signal_stop, signal_print, signal_program)
14524 (signal_catch, signal_pass): Now arrays instead of pointers.
14525 (update_signals_program_target, do_target_resume)
14526 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14527 * linux-nat.c (linux_nat_target::pass_signals)
14528 (linux_nat_target::create_inferior, linux_nat_target::attach):
14530 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14531 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14532 * procfs.c (procfs_target::pass_signals): Adjust.
14533 * record-full.c (record_full_target::resume): Adjust.
14534 * remote.c (remote_target::pass_signals)
14535 (remote_target::program_signals): Adjust.
14536 * target-debug.h (target_debug_print_signals): Now takes a
14537 gdb::array_view as parameter. Adjust.
14538 * target.h (target_ops) <pass_signals, program_signals>: Replace
14539 pointer and length parameters with gdb::array_view.
14540 (target_pass_signals, target_program_signals): Likewise.
14541 * target-delegates.c: Regenerate.
14543 2019-01-24 Pedro Alves <palves@redhat.com>
14545 * common/forward-scope-exit.h
14546 (forward_scope_exit::forward_scope_exit): Pass arguments to
14547 m_bind_function directly, instead of creating a std::bind and
14550 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14552 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14553 for static members.
14554 (pass_in_v_vfp_candidate): Likewise.
14556 2019-01-23 Tom Tromey <tom@tromey.com>
14557 Pedro Alves <palves@redhat.com>
14559 * regcache.c (class regcache_invalidator): Remove.
14560 (regcache::raw_write): Use make_scope_exit.
14562 2019-01-23 Tom Tromey <tom@tromey.com>
14564 * ui-out.h (class ui_out_emit_type): Update comment.
14566 2019-01-23 Tom Tromey <tom@tromey.com>
14568 * infrun.c (fetch_inferior_event): Update comment.
14570 2019-01-23 Tom Tromey <tom@tromey.com>
14571 Pedro Alves <palves@redhat.com>
14573 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14575 (fetch_inferior_event): Use SCOPE_EXIT.
14578 2019-01-23 Tom Tromey <tom@tromey.com>
14579 Pedro Alves <palves@redhat.com>
14581 * infrun.c (disable_thread_events): Delete.
14582 (stop_all_threads): Use SCOPE_EXIT.
14584 2019-01-23 Tom Tromey <tom@tromey.com>
14585 Pedro Alves <palves@redhat.com>
14587 * symfile.c: Include forward-scope-exit.h.
14588 (clear_symtab_users_cleanup): Replace forward declaration with
14589 a FORWARD_SCOPE_EXIT.
14590 (syms_from_objfile_1): Use the forward_scope_exit and
14591 gdb::optional instead of cleanup_function.
14592 (reread_symbols): Use the forward_scope_exit instead of
14594 (clear_symtab_users_cleanup): Remove function.
14596 2019-01-23 Tom Tromey <tom@tromey.com>
14597 Pedro Alves <palves@redhat.com>
14599 * linux-nat.c: Include scope-exit.h.
14600 (cleanup_target_stop): Remove.
14601 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14604 2019-01-23 Tom Tromey <tom@tromey.com>
14605 Pedro Alves <palves@redhat.com>
14607 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14608 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14610 2019-01-23 Tom Tromey <tom@tromey.com>
14611 Andrew Burgess <andrew.burgess@embecosm.com>
14612 Pedro Alves <palves@redhat.com>
14614 * infrun.c (fetch_inferior_event): Use scope_exit.
14615 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14616 * top.c (execute_command): Use scope_exit.
14617 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14618 * utils.c (do_bpstat_clear_actions_cleanup)
14619 (make_bpstat_clear_actions_cleanup): Remove.
14621 2019-01-23 Tom Tromey <tom@tromey.com>
14622 Pedro Alves <palves@redhat.com>
14624 * infrun.c: Include "common/scope-exit.h"
14625 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14626 (wait_for_inferior): Use SCOPE_EXIT.
14627 (fetch_inferior_event): Use scope_exit.
14629 2019-01-23 Tom Tromey <tom@tromey.com>
14630 Pedro Alves <palves@redhat.com>
14632 * breakpoint.c (create_breakpoint): Remove cleanup.
14634 2019-01-23 Tom Tromey <tom@tromey.com>
14635 Andrew Burgess <andrew.burgess@embecosm.com>
14636 Pedro Alves <palves@redhat.com>
14638 2019-01-23 Pedro Alves <palves@redhat.com>
14640 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14642 2019-01-23 Pedro Alves <palves@redhat.com>
14643 Andrew Burgess <andrew.burgess@embecosm.com>
14645 * gdbthread.h: Include "common/forward-scope-exit.h".
14646 (scoped_finish_thread_state): Redefine custom class in terms of
14647 forward_scope_exit.
14649 2019-01-23 Pedro Alves <palves@redhat.com>
14650 Andrew Burgess <andrew.burgess@embecosm.com>
14652 * common/forward-scope-exit.h: New file.
14654 2019-01-23 Pedro Alves <palves@redhat.com>
14655 Andrew Burgess <andrew.burgess@embecosm.com>
14656 Tom Tromey <tom@tromey.com>
14658 * common/scope-exit.h: New file.
14660 2019-01-23 Pedro Alves <palves@redhat.com>
14662 * common/preprocessor.h (ESC): Rename to ...
14663 (ESC_PARENS): ... this.
14664 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14665 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14667 2019-01-23 Tom Tromey <tom@tromey.com>
14669 * language.h (class scoped_switch_to_sym_language_if_auto):
14670 Initialize m_lang in both cases.
14672 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14674 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14677 2019-01-22 Tom Tromey <tom@tromey.com>
14679 * corelow.c: Do not include sys/file.h.
14681 2019-01-22 Tom Tromey <tom@tromey.com>
14683 * tui/tui-wingeneral.h: Include gdb_curses.h.
14685 2019-01-22 Tom Tromey <tom@tromey.com>
14687 * source-cache.h (class source_cache) <get_source_lines,
14688 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14690 2019-01-22 Tom Tromey <tom@tromey.com>
14692 * remote-fileio.h (struct remote_target): Declare.
14694 2019-01-22 Tom Tromey <tom@tromey.com>
14696 * python/py-arch.c: Do not include py-ref.h.
14697 * python/py-bpevent.c: Do not include py-ref.h.
14698 * python/py-cmd.c: Do not include py-ref.h.
14699 * python/py-continueevent.c: Do not include py-ref.h.
14700 * python/py-event.h: Do not include py-ref.h.
14701 * python/py-evtregistry.c: Do not include py-ref.h.
14702 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14703 * python/py-frame.c: Do not include py-ref.h.
14704 * python/py-framefilter.c: Do not include py-ref.h.
14705 * python/py-function.c: Do not include py-ref.h.
14706 * python/py-infevents.c: Do not include py-ref.h.
14707 * python/py-linetable.c: Do not include py-ref.h.
14708 * python/py-objfile.c: Do not include py-ref.h.
14709 * python/py-param.c: Do not include py-ref.h.
14710 * python/py-prettyprint.c: Do not include py-ref.h.
14711 * python/py-progspace.c: Do not include py-ref.h.
14712 * python/py-symbol.c: Do not include py-ref.h.
14713 * python/py-symtab.c: Do not include py-ref.h.
14714 * python/py-type.c: Do not include py-ref.h.
14715 * python/py-unwind.c: Do not include py-ref.h.
14716 * python/py-utils.c: Do not include py-ref.h.
14717 * python/py-value.c: Do not include py-ref.h.
14718 * python/py-varobj.c: Do not include py-ref.h.
14719 * python/py-xmethods.c: Do not include py-ref.h.
14720 * python/python.c: Do not include py-ref.h.
14721 * varobj.c: Do not include py-ref.h.
14723 2019-01-22 Tom Tromey <tom@tromey.com>
14725 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14726 keyword for bcache.
14728 2019-01-22 Tom Tromey <tom@tromey.com>
14730 * compile/compile-cplus-types.c: Remove a comment by #include.
14732 2019-01-22 Tom Tromey <tom@tromey.com>
14734 * compile/gcc-c-plugin.h: Include compile-internal.h.
14736 2019-01-22 Tom Tromey <tom@tromey.com>
14738 * stabsread.c (EXTERN): Do not define.
14739 (symnum, next_symbol_text_func, processing_gcc_compilation)
14740 (within_function, global_sym_chain, global_stabs)
14741 (previous_stab_code, this_object_header_files)
14742 (n_this_object_header_files)
14743 (n_allocated_this_object_header_files): Define.
14744 * stabsread.h (EXTERN): Never define. Use "extern".
14746 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14748 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14751 2019-01-21 Tom Tromey <tom@tromey.com>
14753 * ui-out.c: Fix includes.
14754 * tui/tui-source.c: Fix includes.
14755 * target.c: Fix includes.
14756 * remote.c: Fix includes.
14757 * regcache.c: Fix includes.
14758 * python/py-block.c: Fix includes.
14759 * printcmd.c: Fix includes.
14760 * or1k-tdep.c: Fix includes.
14761 * mi/mi-main.c: Fix includes.
14762 * m32r-tdep.c: Fix includes.
14763 * csky-tdep.c: Fix includes.
14764 * compile/compile-cplus-types.c: Fix includes.
14765 * cli/cli-interp.c: Fix includes.
14767 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14769 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14772 2019-01-16 Tom Tromey <tom@tromey.com>
14774 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14776 (struct objfile) <msymbols_range>: Move from top level.
14777 <msymbols>: New method.
14778 (class objfile_msymbols): Remove.
14779 * symtab.c (default_collect_symbol_completion_matches_break_on):
14781 * symmisc.c (dump_msymbols): Update.
14782 * stabsread.c (scan_file_globals): Update.
14783 * objc-lang.c (info_selectors_command, info_classes_command)
14784 (find_methods): Update.
14785 * minsyms.c (find_solib_trampoline_target): Update.
14786 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14787 * coffread.c (coff_symfile_read): Update.
14788 * ada-lang.c (ada_lookup_simple_minsym)
14789 (ada_collect_symbol_completion_matches): Update.
14791 2019-01-16 Tom Tromey <tom@tromey.com>
14793 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14794 type. Remove no-argument constructor.
14795 <iterator::operator++>: Simplify.
14797 <end>: Use minimal_symbol_count.
14799 2019-01-16 Tom Tromey <tom@tromey.com>
14801 * objfiles.h (struct objfile) <psymtabs>: New method.
14802 (class objfile_psymtabs): Remove.
14803 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14805 <range>: New method.
14806 (require_partial_symbols): Change return type.
14807 * psymtab.c (require_partial_symbols)
14808 (psym_expand_symtabs_matching): Update.
14809 * mdebugread.c (parse_partial_symbols): Update.
14810 * dbxread.c (dbx_end_psymtab): Update.
14812 2019-01-15 Tom Tromey <tom@tromey.com>
14814 * symtab.c (lookup_objfile_from_block)
14815 (lookup_symbol_in_objfile_symtabs)
14816 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14817 (find_line_symtab, info_sources_command)
14818 (default_collect_symbol_completion_matches_break_on)
14819 (make_source_files_completion_list): Update.
14820 * symmisc.c (print_objfile_statistics, dump_objfile)
14821 (maintenance_print_symbols, maintenance_info_symtabs)
14822 (maintenance_check_symtabs, maintenance_info_line_tables):
14824 * source.c (select_source_symtab)
14825 (forget_cached_source_info_for_objfile): Update.
14826 * objfiles.h (class objfile_compunits): Remove.
14827 (struct objfile) <compunits_range>: New typedef.
14828 (compunits): New method.
14829 * objfiles.c (objfile_relocate1): Update.
14830 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14831 * maint.c (count_symtabs_and_blocks): Update.
14832 * linespec.c (iterate_over_all_matching_symtabs): Update.
14833 * cp-support.c (add_symbol_overload_list_qualified): Update.
14834 * coffread.c (coff_symtab_read): Update.
14835 * ada-lang.c (add_nonlocal_symbols)
14836 (ada_collect_symbol_completion_matches)
14837 (ada_add_global_exceptions): Update.
14839 2019-01-15 Tom Tromey <tom@tromey.com>
14841 * progspace.h (program_space) <objfiles_safe_range>: New
14843 <objfiles_safe>: New method.
14844 * objfiles.h (class all_objfiles_safe): Remove.
14845 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14846 * jit.c (jit_inferior_exit_hook): Update.
14848 2019-01-17 Tom Tromey <tom@tromey.com>
14850 * progspace.h (program_space) <objfiles_range>: New typedef.
14851 <objfiles>: New method.
14852 <objfiles_head>: Rename from objfiles.
14853 (object_files): Update.
14854 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14855 * guile/scm-pretty-print.c
14856 (ppscm_find_pretty_printer_from_objfiles): Update.
14857 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14858 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14860 * python/py-progspace.c (pspy_get_objfiles): Update.
14861 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14863 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14864 (objfpy_lookup_objfile_by_build_id): Update.
14865 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14866 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14868 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14869 (expand_symtab_containing_pc, lookup_objfile_from_block)
14870 (lookup_static_symbol, basic_lookup_transparent_type)
14871 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14872 (find_line_symtab, info_sources_command)
14873 (default_collect_symbol_completion_matches_break_on)
14874 (make_source_files_completion_list, find_main_name): Update.
14875 * symmisc.c (print_symbol_bcache_statistics)
14876 (print_objfile_statistics, maintenance_print_symbols)
14877 (maintenance_print_msymbols, maintenance_print_objfiles)
14878 (maintenance_info_symtabs, maintenance_check_symtabs)
14879 (maintenance_expand_symtabs, maintenance_info_line_tables):
14881 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14882 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14883 (map_overlay_command, unmap_overlay_command)
14884 (simple_overlay_update, expand_symtabs_matching)
14885 (map_symbol_filenames): Update.
14886 * symfile-debug.c (set_debug_symfile): Update.
14887 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14889 * source.c (select_source_symtab, forget_cached_source_info):
14891 * solib.c (solib_read_symbols): Update.
14892 * solib-spu.c (append_ocl_sos): Update.
14893 * psymtab.c (maintenance_print_psymbols)
14894 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14895 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14896 * printcmd.c (info_symbol_command): Update.
14897 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14899 * objfiles.h (class all_objfiles): Remove.
14900 * objfiles.c (have_partial_symbols, have_full_symbols)
14901 (have_minimal_symbols, qsort_cmp, update_section_map)
14902 (shared_objfile_contains_address_p)
14903 (default_iterate_over_objfiles_in_search_order): Update.
14904 * objc-lang.c (info_selectors_command, info_classes_command)
14905 (find_methods): Update.
14906 * minsyms.c (find_solib_trampoline_target): Update.
14907 * maint.c (maintenance_info_sections)
14908 (maintenance_translate_address, count_symtabs_and_blocks):
14910 * main.c (captured_main_1): Update.
14911 * linux-thread-db.c (try_thread_db_load_from_pdir)
14912 (has_libpthread): Update.
14913 * linespec.c (iterate_over_all_matching_symtabs)
14914 (search_minsyms_for_name): Update.
14915 * jit.c (jit_find_objf_with_entry_addr): Update.
14916 * hppa-tdep.c (find_unwind_entry)
14917 (hppa_lookup_stub_minimal_symbol): Update.
14918 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14920 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14921 (elf_gnu_ifunc_resolve_by_got): Update.
14922 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14923 * dwarf-index-write.c (save_gdb_index_command): Update.
14924 * cp-support.c (add_symbol_overload_list_qualified): Update.
14925 * breakpoint.c (create_overlay_event_breakpoint)
14926 (create_longjmp_master_breakpoint)
14927 (create_std_terminate_master_breakpoint)
14928 (create_exception_master_breakpoint): Update.
14929 * blockframe.c (find_pc_partial_function): Update.
14930 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14931 (ada_collect_symbol_completion_matches)
14932 (ada_add_global_exceptions): Update.
14934 2019-01-17 Tom Tromey <tom@tromey.com>
14936 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14938 (solib_target_parse_libraries): Change return type.
14939 (library_list_start_segment, library_list_start_section)
14940 (library_list_end_library, library_list_start_library); Update.
14941 (solib_target_free_library_list): Remove.
14942 (solib_target_parse_libraries): Remove cleanup. Change return
14944 (solib_target_current_sos): Update.
14946 2019-01-17 Tom Tromey <tromey@bapiya>
14948 * valprint.c: Replace "the the" with "the".
14949 * symtab.c: Replace "the the" with "the".
14950 * solib.c: Replace "the the" with "the".
14951 * solib-dsbt.c: Replace "the the" with "the".
14952 * linespec.c: Replace "the the" with "the".
14953 * dwarf2loc.h: Replace "the the" with "the".
14954 * amd64-windows-tdep.c: Replace "the the" with "the".
14955 * aarch64-tdep.c: Replace "the the" with "the".
14957 2019-01-16 Keith Seitz <keiths@redhat.com>
14960 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14961 <builder>: Rename to ..
14962 <m_builder>: ... this and make private.
14963 (dwarf2_cu::get_builder): New method. Change all users of
14964 `builder' to use this method.
14965 (dwarf2_start_symtab): Move to ...
14966 (dwarf2_cu::start_symtab): ... here. Update all callers
14967 (setup_type_unit_groups): Move to ...
14968 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14970 (dwarf2_cu::reset_builder): New method.
14971 (process_full_compunit, process_full_type_unit): Use
14972 dwarf2_cu::reset_builder.
14973 (follow_die_offset): Record the ancestor CU if it is different
14974 from the followed DIE's CU.
14975 (follow_die_sig_1): Likewise.
14977 2019-01-15 Tom Tromey <tom@tromey.com>
14979 * remote.c (class remote_state) <buf>: Now a char_vector.
14980 <buf_size>: Remove.
14981 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14983 (remote_target::getpkt_or_notif_sane_1)
14984 (remote_target::getpkt_sane)
14985 (remote_target::getpkt_or_notif_sane): Likewise.
14986 (class remote_target) <putpkt>: New overload.
14987 (remote_target::read_frame): Change type of "buf_p". Remove
14988 sizeof_p parameter.
14989 (packet_ok): New overload.
14990 (packet_check_result): New overload.
14993 2019-01-14 Tom Tromey <tom@tromey.com>
14995 * remote-notif.c (handle_notification, remote_notif_ack)
14996 (remote_notif_parse): Make "buf" const.
14997 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14999 (remote_notif_parse, remote_notif_ack, handle_notification):
15001 * remote.c (remote_notif_stop_parse): Make "buf" const.
15002 (remote_target::remote_parse_stop_reply): Make "buf" const.
15003 (remote_notif_stop_ack): Make "buf" const.
15005 2019-01-14 Tom Tromey <tom@tromey.com>
15007 * remote.c (remote_console_output): Make parameter const.
15009 2019-01-14 Tom Tromey <tom@tromey.com>
15011 * target-debug.h (target_debug_print_signals): Constify.
15012 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15013 * procfs.c (procfs_target::pass_signals): Update.
15014 * linux-nat.c (linux_nat_target::pass_signals): Update.
15015 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15016 * target-delegates.c: Rebuild.
15017 * remote.c (remote_target::program_signals): Update.
15018 (remote_target::pass_signals): Update.
15019 * target.c (target_pass_signals): Constify argument.
15020 (target_program_signals): Likewise.
15021 * target.h (struct target_ops) <pass_signals, program_signals>:
15023 (target_pass_signals, target_program_signals): Constify argument.
15025 2019-01-14 Tom Tromey <tom@tromey.com>
15028 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15030 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15032 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15034 * rs6000-tdep.c: Include reggroups.h.
15035 (IS_V_ALIAS_PSEUDOREG): Define.
15036 (rs6000_register_name): Return names for the "vX" aliases.
15037 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15038 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15039 aliases. Call default_register_reggroup_p for all other
15041 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15043 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15044 Handle "vX" aliases.
15045 (v_alias_pseudo_register_collect): New function.
15046 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15047 (rs6000_gdbarch_init): Initialize "vX" aliases as
15048 pseudo-registers. Restore registration of
15049 rs6000_pseudo_register_reggroup_p with
15050 set_tdesc_pseudo_register_reggroup_p.
15052 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15054 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15055 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15056 set_gdbarch_num_pseudo_regs.
15058 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15060 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15061 Remove arg prefixname, add do_set and do_show.
15062 Add member functions set_list and show_list.
15063 * cli/cli-style.c (class cli_style_option): Update accordingly.
15064 (style_set_list): Move to file scope.
15065 (style_show_list): Likewise.
15066 (set_style): Call help_list.
15067 (show_style): Call cmd_show_list.
15068 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15069 Update to use the new macro.
15071 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15073 * ada-lang.c (_initialize_ada_language): Expand the help text
15074 for the "catch exception" command.
15076 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15078 * symtab.c (matching_obj_sections): Initialize obj,
15079 declare it closer to its usage.
15081 2019-01-10 Tom Tromey <tom@tromey.com>
15083 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15084 (basic_inf_threads_range): Remove.
15085 (inf_threads_range, inf_non_exited_threads_range)
15086 (safe_inf_threads_range): Use next_adapter.
15088 2019-01-10 Keith Seitz <keiths@redhat.com>
15092 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15093 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15095 2019-01-10 Keith Seitz <keiths@redhat.com>
15099 * dictionary.c (pending_to_vector): Remove.
15100 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15101 Remove _1 suffix, replacing functions of the same name. Update
15103 (dict_create_hashed, dict_create_hashed_expandable)
15104 (dict_create_linear, dict_create_linear_expandable, dict_free)
15105 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15106 Make functions static.
15108 2019-01-10 Keith Seitz <keiths@redhat.com>
15112 * dictionary.h (struct dictionary): Replace declaration with
15114 (dict_create_hashed, dict_create_hashed_expandable)
15115 (dict_create_linear, dict_create_linear_expandable)
15116 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15117 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15118 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15119 taking multidictionary argument.
15120 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15121 * block.h (struct block) <dict>: Change to multidictionary
15122 and rename `multidict'.
15123 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15124 symmisc.c: Update all dictionary references to multidictionary.
15126 2019-01-10 Keith Seitz <keiths@redhat.com>
15130 * dictionary.c: Include unordered_map.
15131 (pending_to_vector): New function.
15132 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15133 Rewrite the non-"_1" functions to take vector instead
15135 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15136 "new" _1 versions of the same name.
15137 (multidictionary): Define.
15138 (std::hash<enum language): New definition.
15139 (collate_pending_symbols_by_language, mdict_create_hashed)
15140 (mdict_create_hashed_expandable, mdict_create_linear)
15141 (mdict_create_linear_expandable, mdict_free)
15142 (find_language_dictionary, create_new_language_dictionary)
15143 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15144 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15145 (mdict_size, mdict_empty): New functions.
15146 * dictionary.h (mdict_iterator): Define.
15148 2019-01-10 Pedro Alves <palves@redhat.com>
15150 * breakpoint.c (read_uploaded_action)
15151 (create_tracepoint_from_upload): Adjust to use
15152 gdb::unique_xmalloc_ptr.
15153 * ctf.c (ctf_write_uploaded_tp):
15154 (SET_ARRAY_FIELD): Use emplace_back.
15155 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15156 * tracefile-tfile.c (tfile_write_uploaded_tp):
15157 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15158 gdb::unique_xmalloc_ptr.
15159 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15160 at_string, cond_string, cmd_strings>: Replace char pointers
15161 with gdb::unique_xmalloc_ptr.
15163 2019-01-10 Pedro Alves <palves@redhat.com>
15165 * solib-target.c (library_list_start_library): Don't xstrdup name.
15167 2019-01-10 Pedro Alves <palves@redhat.com>
15169 * mdebugread.c (parse_partial_symbols): Use
15170 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15172 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15174 * linux-fork.c (scoped_switch_fork_info)
15175 <~scoped_switch_fork_info>: Fix incorrect variable name.
15177 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15179 * linux-fork.c (scoped_switch_fork_info)
15180 <scoped_switch_fork_info>: Make explicit.
15181 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15183 2019-01-10 Tom Tromey <tom@tromey.com>
15185 * objfiles.h (objfile::reset_psymtabs): Update.
15186 * objfiles.c (objfile::objfile): Update.
15187 * psymtab.h (psymtab_storage::obstack): Update.
15188 (psymtab_storage::m_obstack): Use gdb::optional.
15189 (class psymtab_storage): Update comment. Remove objfile
15191 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15193 2019-01-10 Tom Tromey <tom@tromey.com>
15195 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15196 <free_psymtabs>: Now private.
15197 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15198 (allocate_psymtab): Use new method.
15200 2019-01-10 Tom Tromey <tom@tromey.com>
15202 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15203 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15204 * mdebugread.c (parse_partial_symbols): Use
15205 allocate_dependencies.
15206 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15207 allocate_dependencies.
15208 (process_psymtab_comp_unit_reader)
15209 (build_type_psymtab_dependencies): Likewise.
15210 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15212 2019-01-10 Tom Tromey <tom@tromey.com>
15214 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15215 PSYMBOL_SET_LANGUAGE.
15216 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15218 2019-01-10 Tom Tromey <tom@tromey.com>
15220 * psymtab.h (psymtab_storage::obstack): New method.
15221 <m_obstack>: Rename from obstack; now private.
15222 * psymtab.c (psymtab_storage): Update.
15223 * dwarf2read.c (create_addrmap_from_index)
15224 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15227 2019-01-10 Tom Tromey <tom@tromey.com>
15229 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15230 * objfiles.h (objfile::reset_psymtabs): New method.
15232 2019-01-10 Tom Tromey <tom@tromey.com>
15234 * symmisc.c (print_symbol_bcache_statistics): Update.
15235 (print_objfile_statistics): Update.
15236 * symfile.c (reread_symbols): Update.
15237 * psymtab.h (class psymtab_storage): New.
15238 * psymtab.c (psymtab_storage): New constructor.
15239 (~psymtab_storage): New destructor.
15240 (require_partial_symbols): Update.
15241 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15242 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15243 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15244 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15245 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15246 (start_psymtab_common, end_psymtab_common)
15247 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15248 (allocate_psymtab): Update.
15249 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15251 (dump_psymtab_addrmap, maintenance_print_psymbols)
15252 (maintenance_check_psymtabs): Update.
15253 (class objfile_psymtabs): Move to objfiles.h.
15254 * psympriv.h (discard_psymtab): Now inline.
15255 (psymtab_discarder::psymtab_discarder): Update.
15256 (psymtab_discarder::~psymtab_discarder): Update.
15257 (ALL_OBJFILE_PSYMTABS): Rewrite.
15258 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15259 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15261 <partial_symtabs>: New field.
15262 (class objfile_psymtabs): Move from psymtab.h. Update.
15263 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15265 (objfile::~objfile): Don't destroy psymbol_cache.
15266 * mdebugread.c (parse_partial_symbols): Update.
15267 * dwarf2read.c (create_addrmap_from_index)
15268 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15269 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15270 (add_partial_subprogram, dwarf2_ranges_read): Update.
15271 * dwarf-index-write.c (write_address_map)
15272 (write_one_signatured_type, recursively_write_psymbols)
15273 (class debug_names, class debug_names, write_psymtabs_to_index):
15276 2019-01-10 Tom Tromey <tom@tromey.com>
15278 * symtab.h (SYMBOL_SET_NAMES): Update.
15279 (symbol_set_names): Update.
15280 (MSYMBOL_SET_NAMES): Update.
15281 * symtab.c (symbol_set_names): Change argument to be an
15282 objfile_per_bfd_storage.
15283 * psymtab.c (add_psymbol_to_bcache): Update.
15284 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15286 2019-01-10 Tom Tromey <tom@tromey.com>
15288 * symtab.c (create_demangled_names_hash): Change argument to be an
15289 objfile_per_bfd_storage.
15290 (symbol_set_names): Update.
15292 2019-01-10 Tom Tromey <tom@tromey.com>
15294 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15296 * psymtab.c (init_psymbol_list): Do nothing if already called.
15297 * psympriv.h (init_psymbol_list): Add comment.
15298 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15300 * dbxread.c (dbx_symfile_read): Unconditionally call
15303 2019-01-10 Tom Tromey <tom@tromey.com>
15305 * xcoffread.c (scan_xcoff_symtab): Update.
15306 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15308 * mdebugread.c (parse_partial_symbols)
15309 (handle_psymbol_enumerators): Update.
15310 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15311 * dbxread.c (read_dbx_symtab): Update.
15312 * psympriv.h (psymbol_placement): New enum.
15313 (add_psymbol_to_list): Update.
15315 2019-01-10 Tom Tromey <tom@tromey.com>
15317 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15318 static_psymbols parameters.
15319 (scan_xcoff_symtab): Update.
15320 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15321 static_psymbols parameters.
15322 * psympriv.h (start_psymtab_common): Update.
15323 * mdebugread.c (parse_partial_symbols): Update.
15324 * dwarf2read.c (create_partial_symtab): Update.
15325 * dbxread.c (read_dbx_symtab): Update.
15326 (start_psymtab): Remove global_psymbols and static_psymbols
15329 2019-01-10 Tom Tromey <tom@tromey.com>
15331 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15332 * psymtab.c (allocate_psymtab): Add comment.
15333 * psympriv.h (allocate_psymtab): Add comment.
15334 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15336 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15338 2019-01-10 Tom Tromey <tom@tromey.com>
15340 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15342 * mipsread.c: Include mdebugread.h.
15343 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15345 * elfread.c: Include mdebugread.h.
15347 2019-01-09 Tom Tromey <tom@tromey.com>
15349 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15350 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15351 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15352 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15353 (psym_lookup_symbol, psym_find_last_source_symtab)
15354 (psym_forget_cached_source_info, psym_print_stats)
15355 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15356 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15357 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15358 (psym_find_compunit_symtab_by_address)
15359 (maintenance_print_psymbols, maintenance_info_psymtabs)
15360 (maintenance_check_psymtabs): Use ranged for.
15361 * psymtab.h (class objfile_psymtabs): New.
15362 (require_partial_symbols): Return objfile_psymtabs.
15363 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15365 2019-01-09 Tom Tromey <tom@tromey.com>
15367 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15368 (find_pc_mapped_section, list_overlays_command)
15369 (map_overlay_command, unmap_overlay_command)
15370 (simple_overlay_update): Use all_objfiles.
15371 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15372 * printcmd.c (info_symbol_command): Use all_objfiles.
15373 * objfiles.h (ALL_OBJSECTIONS): Remove.
15374 * maint.c (maintenance_translate_address): Use all_objfiles.
15375 * gcore.c (gcore_create_callback): Use all_objfiles.
15376 (objfile_find_memory_regions): Likewise.
15378 2019-01-09 Tom Tromey <tom@tromey.com>
15380 * symtab.c (find_line_symtab, info_sources_command)
15381 (make_source_files_completion_list): Use objfile_compunits.
15382 * source.c (select_source_symtab): Use objfile_compunits.
15383 * objfiles.h (struct objfile): Update comment.
15384 (ALL_OBJFILES): Remove.
15385 (ALL_FILETABS): Remove.
15386 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15389 2019-01-09 Tom Tromey <tom@tromey.com>
15391 * symmisc.c (print_objfile_statistics, dump_objfile)
15392 (maintenance_print_symbols): Use compunit_filetabs.
15393 * source.c (forget_cached_source_info_for_objfile): Use
15395 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15396 (ALL_FILETABS): Use compunit_filetabs.
15397 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15398 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15400 2019-01-09 Tom Tromey <tom@tromey.com>
15402 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15403 (compunit_filetabs): New.
15404 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15406 (info_sources_command, make_source_files_completion_list): Remove
15408 * symmisc.c (print_objfile_statistics, dump_objfile)
15409 (maintenance_print_symbols): Remove declaration.
15410 (maintenance_info_symtabs): Use compunit_filetabs.
15411 (maintenance_info_line_tables): Likewise.
15412 * source.c (select_source_symtab): Change local variable name.
15413 (forget_cached_source_info_for_objfile): Remove declaration.
15414 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15415 * objfiles.c (objfile_relocate1): Remove declaration.
15416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15418 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15419 * coffread.c (coff_symtab_read): Remove declaration.
15420 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15423 2019-01-09 Tom Tromey <tom@tromey.com>
15425 * symtab.c (lookup_objfile_from_block)
15426 (find_pc_sect_compunit_symtab, search_symbols)
15427 (default_collect_symbol_completion_matches_break_on): Use
15429 * objfiles.h (ALL_COMPUNITS): Remove.
15430 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15431 * cp-support.c (add_symbol_overload_list_qualified): Use
15433 * ada-lang.c (ada_collect_symbol_completion_matches)
15434 (ada_add_global_exceptions): Use objfile_compunits.
15436 2019-01-09 Tom Tromey <tom@tromey.com>
15438 * source.c (select_source_symtab)
15439 (forget_cached_source_info_for_objfile): Remove declaration.
15440 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15442 * maint.c (count_symtabs_and_blocks): Remove declaration.
15443 * cp-support.c (add_symbol_overload_list_qualified): Remove
15445 * coffread.c (coff_symtab_read): Remove declaration.
15446 * symtab.c (lookup_symbol_in_objfile_symtabs)
15447 (basic_lookup_transparent_type_1): Use objfile_compunits.
15448 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15449 (info_sources_command, search_symbols)
15450 (default_collect_symbol_completion_matches_break_on)
15451 (make_source_files_completion_list): Remove declaration.
15452 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15453 (ada_collect_symbol_completion_matches)
15454 (ada_add_global_exceptions): Remove declaration.
15455 * linespec.c (iterate_over_all_matching_symtabs): Use
15457 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15458 (class objfile_compunits): New.
15459 (ALL_COMPUNITS): Use objfile_compunits.
15460 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15461 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15463 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15465 2019-01-09 Tom Tromey <tom@tromey.com>
15467 * symtab.c (search_symbols)
15468 (default_collect_symbol_completion_matches_break_on): Use
15470 * ada-lang.c (ada_lookup_simple_minsym)
15471 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15472 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15473 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15475 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15476 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15477 * objc-lang.c (find_methods): Use objfile_msymbols.
15478 (info_selectors_command, info_classes_command): Likewise.
15479 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15480 * objfiles.h (class objfile_msymbols): New.
15481 (ALL_OBJFILE_MSYMBOLS): Remove.
15482 (ALL_MSYMBOLS): Remove.
15484 2019-01-09 Tom Tromey <tom@tromey.com>
15486 * common/next-iterator.h (next_adapter): Add Iterator template
15488 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15489 (class all_objfiles_safe): New.
15490 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15491 * objfiles.c (put_objfile_before): Update comment.
15492 (add_separate_debug_objfile): Likewise.
15493 (free_all_objfiles): Use all_objfiles_safe.
15494 (objfile_purge_solibs): Likewise.
15496 2019-01-09 Tom Tromey <tom@tromey.com>
15498 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15499 (expand_symtab_containing_pc, lookup_static_symbol)
15500 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15501 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15503 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15504 * breakpoint.c (create_overlay_event_breakpoint)
15505 (create_longjmp_master_breakpoint)
15506 (create_std_terminate_master_breakpoint)
15507 (create_exception_master_breakpoint): Use all_objfiles.
15508 * linux-thread-db.c (try_thread_db_load_from_pdir)
15509 (has_libpthread): Use all_objfiles.
15510 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15511 * linespec.c (iterate_over_all_matching_symtabs)
15512 (search_minsyms_for_name): Use all_objfiles.
15513 * maint.c (maintenance_info_sections): Use all_objfiles.
15514 * main.c (captured_main_1): Use all_objfiles.
15515 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15516 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15517 * guile/scm-pretty-print.c
15518 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15519 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15520 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15521 (maintenance_print_msymbols): Use all_objfiles.
15522 * source.c (select_source_symtab): Use all_objfiles.
15523 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15524 * symfile.c (remove_symbol_file_command)
15525 (expand_symtabs_matching, map_symbol_filenames): Use
15527 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15529 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15530 * objc-lang.c (find_methods): Use all_objfiles.
15531 * objfiles.c (have_partial_symbols, have_full_symbols)
15532 (have_minimal_symbols, qsort_cmp)
15533 (default_iterate_over_objfiles_in_search_order): Use
15535 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15536 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15537 (maintenance_check_psymtabs): Use all_objfiles.
15538 (ALL_PSYMTABS): Remove.
15539 * compile/compile-object-run.c (do_module_cleanup): Use
15541 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15542 * cp-support.c (add_symbol_overload_list_qualified): Use
15544 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15546 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15547 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15549 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15550 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15551 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15553 * solib.c (solib_read_symbols): Use all_objfiles
15555 2019-01-09 Tom Tromey <tom@tromey.com>
15557 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15558 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15560 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15561 * symmisc.c (print_symbol_bcache_statistics)
15562 (print_objfile_statistics, maintenance_print_objfiles)
15563 (maintenance_info_symtabs, maintenance_check_symtabs)
15564 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15566 * source.c (forget_cached_source_info): Use all_objfiles.
15567 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15568 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15569 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15570 * objfiles.c (update_section_map): Use all_objfiles.
15571 (shared_objfile_contains_address_p): Likewise.
15572 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15573 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15575 2019-01-09 Tom Tromey <tom@tromey.com>
15577 * common/next-iterator.h: New file.
15578 * objfiles.h (class all_objfiles): New.
15579 (struct objfile_iterator): New.
15581 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15583 * NEWS: Move the description of the changed "frame", "select-frame",
15584 and "info frame" commands to the Changed commands section.
15586 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15588 * gdbtypes.c (check_stub_method_group): Remove handling of old
15590 * linespec.c (find_methods): Likewise.
15591 * stabsread.c (read_member_functions): Likewise.
15592 * valops.c (search_struct_method): Likewise.
15593 (value_struct_elt_for_reference): Likewise.
15594 * NEWS: Mention this change.
15596 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15598 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15599 print_source_lines.
15600 * source.c (print_source_lines_base): Update line number check.
15601 (print_source_lines): New function.
15602 (source_lines_range::source_lines_range): New function.
15603 * source.h (class source_lines_range): New class.
15604 (print_source_lines): New declaration.
15606 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15608 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15610 2019-01-08 Tom Tromey <tom@tromey.com>
15611 Simon Marchi <simon.marchi@ericsson.com>
15614 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15615 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15616 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15617 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15618 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15619 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15621 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15623 * source.c (select_source_symtab): Move header comment to
15624 declaration in source.h.
15625 (forget_cached_source_info_for_objfile): Likewise.
15626 (forget_cached_source_info): Likewise.
15627 (identify_source_line): Likewise.
15628 * source.h (identify_source_line): Move declaration from symtab.h
15629 and add comment from source.c
15630 (print_source_lines): Likewise.
15631 (forget_cached_source_info_for_objfile): Likewise.
15632 (forget_cached_source_info): Likewise.
15633 (select_source_symtab): Likewise.
15634 (enum print_source_lines_flag): Move definition from symtab.h.
15635 * symtab.h (identify_source_line): Move declaration to source.h.
15636 (print_source_lines): Likewise.
15637 (forget_cached_source_info_for_objfile): Likewise.
15638 (forget_cached_source_info): Likewise.
15639 (select_source_symtab): Likewise.
15640 (enum print_source_lines_flag): Move definition to source.h.
15641 * tui/tui-hooks.c: Add 'source.h' include.
15643 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15645 * source.c (print_source_lines_base): Handle requests to print
15646 reverse line number sequences, and guard against empty lines
15649 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15651 * source.c (print_source_lines_base): Fix skip of '\r' if next
15654 2019-01-06 Tom Tromey <tom@tromey.com>
15656 * c-exp.y (struct c_parse_state) <macro_original_text,
15657 expansion_obstack>: New member.
15658 (macro_original_text, expansion_obstack): Remove globals.
15659 (scan_macro_expansion, scanning_macro_expansion)
15660 (finished_macro_expansion): Update.
15661 (scan_macro_cleanup): Remove.
15662 (yylex, c_parse): Update.
15664 2019-01-06 Tom Tromey <tom@tromey.com>
15666 * c-exp.y (struct c_parse_state) <strings>: New member.
15667 (operator_stoken): Update.
15669 2019-01-06 Tom Tromey <tom@tromey.com>
15671 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15672 (union type_stack_elt) <typelist_val>: Now a pointer to
15674 (type_stack_cleanup): Don't declare.
15675 (push_typelist): Update.
15676 * parse.c (pop_typelist): Return a std::vector.
15677 (push_typelist): Take a std::vector.
15678 (follow_types): Update. Do not free args.
15679 (type_stack_cleanup): Remove.
15680 * c-exp.y (struct c_parse_state): New.
15681 (cpstate): New global.
15682 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15683 (nonempty_typelist): Update.
15684 (func_mod): Create a new vector.
15685 (c_parse): Create a c_parse_state.
15686 (check_parameter_typelist): Do not delete params.
15687 (function_method): Update. Do not delete type_list.
15689 2019-01-06 Tom Tromey <tom@tromey.com>
15692 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15694 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15695 (print_return_value): Likewise.
15697 2019-01-05 Tom Tromey <tom@tromey.com>
15699 * contrib/cleanup_check.py: Remove.
15700 * contrib/gcc-with-excheck: Remove.
15701 * contrib/exsummary.py: Remove.
15702 * contrib/excheck.py: Remove.
15704 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15706 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15707 NULL. Initialize tpprev to NULL instead of assigning it
15708 to NULL on the next statement.
15709 * windows-nat.c (windows_delete_thread): Remove check for
15710 main_thread_id before printing thread exit notifications.
15711 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15712 Remove thread ID check against main_thread_id.
15713 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15714 windows_delete_thread.
15715 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15717 2019-01-04 Tom Tromey <tom@tromey.com>
15719 * compile/compile.c (_initialize_compile): Use upper case for
15720 metasyntactic variables.
15721 * symmisc.c (_initialize_symmisc): Use upper case for
15722 metasyntactic variables.
15723 * psymtab.c (_initialize_psymtab): Use upper case for
15724 metasyntactic variables.
15725 * demangle.c (demangle_command): Use upper case for metasyntactic
15727 (_initialize_demangler): Likewise.
15728 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15731 2019-01-03 Tom Tromey <tom@tromey.com>
15733 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15735 2019-01-03 Tom Tromey <tom@tromey.com>
15737 * python/py-symtab.c (salpy_str): Update.
15738 (struct salpy_sal_object) <symtab>: Now a PyObject.
15739 (salpy_dealloc): Update.
15740 (del_objfile_sal): Use gdbpy_ref.
15742 2019-01-03 Tom Tromey <tom@tromey.com>
15744 * python/py-type.c (convert_field): Use new_reference. Return
15746 (make_fielditem): Return gdbpy_ref.
15747 (typy_fields): Update.
15748 (typy_getitem): Update.
15749 (field_name): Return gdbpy_ref. Use new_reference.
15750 (typy_iterator_iternext): Update.
15752 2019-01-03 Tom Tromey <tom@tromey.com>
15754 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15756 2019-01-03 Tom Tromey <tom@tromey.com>
15758 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15759 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15760 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15761 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15762 (pspy_set_type_printers): Likewise.
15763 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15764 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15765 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15766 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15767 (objfpy_set_type_printers): Likewise.
15769 2019-01-03 Tom Tromey <tom@tromey.com>
15771 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15772 (gdbpy_print_stack): Use gdbpy_err_fetch.
15773 * python/python-internal.h (class gdbpy_err_fetch): New class.
15774 (class gdbpy_enter) <m_error_type, m_error_value,
15775 m_error_traceback>: Remove.
15776 <m_error>: New member.
15777 (gdbpy_exception_to_string): Don't declare.
15778 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15779 * python/py-value.c (convert_value_from_python): Use
15781 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15782 gdbpy_exception_to_string.
15783 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15784 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15787 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15789 * linux-nat.c (delete_lwp_cleanup): Delete.
15790 (struct lwp_deleter): New struct.
15791 (lwp_info_up): New typedef.
15792 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15795 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15797 * linux-fork.c (class scoped_switch_fork_info): New class.
15798 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15800 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15802 * valops.c (find_overload_match): Remove use of null_cleanup, and
15803 calls to do_cleanups.
15805 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15807 * compile/compile-cplus-types.c
15808 (compile_cplus_instance::decl_name): Handle changes to
15810 * cp-support.c (cp_func_name): Update header comment, update
15812 * cp-support.h (cp_func_name): Update return type in declaration.
15813 * valops.c (find_overload_match): Move temp_func local to top
15814 level of function and change its type. Use temp_func to hold and
15815 delete temporary string obtained from cp_func_name.
15817 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15819 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15820 gdb::char_vector, remove cleanup, and update uses of `msg`.
15822 2019-01-03 Jim Wilson <jimw@sifive.com>
15824 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15826 2019-01-02 Tom Tromey <tom@tromey.com>
15828 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15829 (tdesc_parse_xml): Remove cleanups.
15830 * target-descriptions.h (make_cleanup_free_target_description):
15832 (target_desc_deleter): New struct.
15833 (target_desc_up): New typedef.
15834 * target-descriptions.c (target_desc_deleter::operator()): Rename
15835 from free_target_description.
15836 (make_cleanup_free_target_description): Remove.
15838 2019-01-02 Tom Tromey <tom@tromey.com>
15840 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15841 constructor, destructor.
15842 (linespec_parser): Remove typedef.
15843 (~linespec_parser): Rename from linespec_parser_delete.
15844 (linespec_lex_to_end, linespec_complete_label)
15845 (linespec_complete): Update.
15846 (decode_line_full): Remove cleanups.
15847 (decode_line_1): Update.
15849 2019-01-02 Tom Tromey <tom@tromey.com>
15851 * python/python-internal.h (inferior_to_inferior_object): Change
15853 * python/py-exitedevent.c (create_exited_event_object): Update.
15854 * python/py-inferior.c (inferior_to_inferior_object): Return
15856 (python_new_inferior, python_inferior_deleted)
15857 (thread_to_thread_object, delete_thread_object)
15858 (build_inferior_list, gdbpy_selected_inferior): Update.
15859 * python/py-infthread.c (create_thread_object): Update. Also fail
15860 if inferior_to_inferior_object fails.
15862 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15864 * inferior.h (class inferior) <displaced_step_state>: New field.
15865 * infrun.h (struct displaced_step_state): Move here from
15866 infrun.c. Initialize fields, add constructor.
15867 <inf>: Remove field.
15868 <reset>: New method.
15869 * infrun.c (struct displaced_step_inferior_state): Move to
15871 (displaced_step_inferior_states): Remove.
15872 (get_displaced_stepping_state): Adust.
15873 (displaced_step_in_progress_any_inferior): Adjust.
15874 (displaced_step_in_progress_thread): Adjust.
15875 (displaced_step_in_progress): Adjust.
15876 (add_displaced_stepping_state): Remove.
15877 (get_displaced_step_closure_by_addr): Adjust.
15878 (remove_displaced_stepping_state): Remove.
15879 (infrun_inferior_exit): Call displaced_step_state.reset.
15880 (use_displaced_stepping): Don't check for NULL.
15881 (displaced_step_prepare_throw): Call
15882 get_displaced_stepping_state.
15883 (displaced_step_fixup): Don't check for NULL.
15884 (prepare_for_detach): Don't check for NULL.
15886 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15888 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15889 in case of call that did not complete.
15891 2019-01-02 Andrey Utkin <autkin@undo.io>
15893 * symfile.c (find_separate_debug_file): Fix search of debug files for
15896 2019-01-02 Tom Tromey <tom@tromey.com>
15898 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15900 * python/py-frame.c (frapy_older): Remove cast.
15901 (frapy_newer): Likewise.
15902 * python/py-breakpoint.c (local_setattro): Remove cast.
15903 * python/py-arch.c (archpy_name): Remove local variable.
15904 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15906 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15908 * unittests/basic_string_view/element_access/char/empty.cc:
15909 Fix year range in copyright header.
15911 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15913 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15915 <operator==>: Update with for removed field.
15917 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15918 <isa_features>: ...this.
15919 <abi_features>: New field.
15920 (riscv_isa_flen): Update comment.
15921 (riscv_abi_xlen): New declaration.
15922 (riscv_abi_flen): New declaration.
15923 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15925 (riscv_abi_xlen): New function.
15926 (riscv_isa_flen): Update to get answer from isa_features.
15927 (riscv_abi_flen): New function.
15928 (riscv_has_fp_abi): Update to get answer from abi_features.
15929 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15931 (riscv_call_info) <xlen, flen>: Update comment.
15932 (riscv_call_arg_struct): Remove invalid assertions
15933 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15935 (riscv_gdbarch_init): Gather isa features and abi features
15936 separately, ensure both match on the gdbarch when reusing an old
15937 gdbarch. Relax an error check to allow 32-bit abi float to run on
15938 a target with 64-bit float hardware.
15940 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15942 * source.c (search_command_helper): Stop reverse search
15943 when line 1 has been searched.
15945 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15947 * record-full.c (record_full_base_target::close): Rewrite
15948 record_full_core_buf_list free logic.
15950 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15952 * break-catch-syscall.c (print_one_catch_syscall): xfree
15955 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15957 * top.c (print_gdb_version): Update Copyright year in version
15960 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15962 Update copyright year range in all GDB files.
15964 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15966 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15968 For older changes see ChangeLog-2018.
15974 version-control: never