1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
5 (save_original_signals_state, restore_original_signals_state): Use
7 * linux-nat.c (block_child_signals, restore_child_signals_mask)
8 (_initialize_linux_nat): Use gdb_sigmask.
9 * guile/guile.c (_initialize_guile): Use block_signals.
10 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
11 * gdbsupport/gdb-sigmask.h: New file.
12 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
13 * cp-support.c (gdb_demangle): Use gdb_sigmask.
14 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
16 * configure, config.in: Rebuild.
17 * gdbsupport/block-signals.h: New file.
19 2019-11-26 Tom Tromey <tom@tromey.com>
21 * acinclude.m4: Include ax_pthread.m4.
22 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
23 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
24 (CLIBS): Use PTHREAD_LIBS.
25 (aclocal_m4_deps): Add ax_pthread.m4.
26 * config.in, configure: Rebuild.
27 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
29 2019-11-26 Tom Tromey <tom@tromey.com>
31 * symtab.h (struct minimal_symbol) <name_set>: New member.
32 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
33 Don't call symbol_set_names.
34 (minimal_symbol_reader::install): Call symbol_set_names.
36 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
38 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
39 restore_active_ext_lang, as GIL is needed for (indirectly)
40 called PyOS_InterruptOccurred.
42 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
44 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
47 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
49 * remote-sim.c (simulator_command): Make static, remove
52 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
54 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
56 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
57 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
59 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
61 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
63 * unittests/basic_string_view/element_access/char/1.cc (test01):
66 * unittests/basic_string_view/element_access/char/empty.cc (main):
68 * unittests/basic_string_view/element_access/char/front_back.cc
71 * unittests/basic_string_view/inserters/char/2.cc (test05):
74 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
77 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
80 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
82 * unittests/basic_string_view/operations/compare/char/1.cc
85 * unittests/basic_string_view/operations/compare/char/13650.cc
87 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
90 * unittests/basic_string_view/operations/data/char/1.cc (test01):
93 * unittests/basic_string_view/operations/find/char/1.cc (test01):
96 * unittests/basic_string_view/operations/find/char/2.cc (test02):
99 * unittests/basic_string_view/operations/find/char/3.cc (test03):
102 * unittests/basic_string_view/operations/find/char/4.cc (main):
104 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
107 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
110 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
113 * unittests/basic_string_view/operations/substr/char/1.cc
116 * unittests/basic_string_view/operators/char/2.cc (main):
118 * unittests/optional/assignment/1.cc (test): Likewise.
119 * unittests/optional/assignment/2.cc (test): Likewise.
120 * unittests/optional/assignment/3.cc (test): Likewise.
121 * unittests/optional/assignment/4.cc (test): Likewise.
122 * unittests/optional/assignment/5.cc (test): Likewise.
123 * unittests/optional/assignment/6.cc (test): Likewise.
124 * unittests/optional/assignment/7.cc (test): Likewise.
125 * unittests/optional/cons/copy.cc (test): Likewise.
126 * unittests/optional/cons/default.cc (test): Likewise.
127 * unittests/optional/cons/move.cc (test): Likewise.
128 * unittests/optional/cons/value.cc (test): Likewise.
129 * unittests/optional/in_place.cc (test): Likewise.
130 * unittests/optional/observers/1.cc (test): Likewise.
131 * unittests/optional/observers/2.cc (test): Likewise.
133 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
135 * tui-win.h (tui_set_var_cmd): Remove.
136 * tui-win.c (tui_set_var_cmd): Make static.
138 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
140 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
141 rbreak_command_wrapper): Remove.
142 * symtab.c (rbreak_command_wrapper): Remove.
144 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
146 * inferior.h (info_terminal_command): Remove declaration.
147 * inflow.c (info_terminal_command): Make static.
149 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
151 * inferior.c (exit_inferior_silent): Remove.
153 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
155 * dictionary.c (dict_empty, mdict_empty): Remove.
156 * dictionary.c (mdict_empty): Remove.
158 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
160 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
161 (arc_insn_get_memory_offset): Likewise.
162 (arc_insn_dump): Likewise.
163 * cp-support.c (test_cp_symbol_name_matches): Likewise.
164 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
165 * dictionary.c (dict_iterator_next): Likewise.
166 (dict_iter_match_first): Likewise.
167 (dict_iter_match_next): Likewise.
168 * f-lang.c (evaluate_subexp_f): Likewise.
169 * hppa-tdep.c (hppa_read_pc): Likewise.
170 * i386-tdep.c (i386_floatformat_for_type): Likewise.
171 * parse.c (write_exp_elt_msym): Likewise.
172 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
173 * remote.c (remote_packet_size): Likewise.
174 (remote_notif_stop_parse): Likewise.
175 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
176 * s12z-tdep.c (s12z_disassemble_info): Likewise.
177 * source.c (prepare_path_for_appending): Likewise.
178 * sparc64-linux-tdep.c
179 (sparc64_linux_handle_segmentation_fault); Likewise.
180 * stack.c (frame_selection_by_function_completer): Likewise.
182 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
184 * completer.c (set_gdb_completion_word_break_characters):
187 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
189 * dwarf-index-write.c: Include dwarf-index-write.h.
190 * mi/mi-interp.c: Include mi/mi-interp.h.
192 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
194 * aarch32-tdep.c: Include aarch32-tdep.h.
195 * aarch32-tdep.h: Forward-declare struct target_desc.
197 2019-11-26 Christian Biesinger <cbiesinger@google.com>
199 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
201 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
202 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
204 2019-11-25 Tom de Vries <tdevries@suse.de>
206 * contrib/words.sh: Add -c option.
208 2019-11-25 Christian Biesinger <cbiesinger@google.com>
210 * solib.c (solib_find_1): Change int to bool.
211 (exec_file_find): Change int to bool.
212 (solib_find): Change int to bool.
213 (solib_read_symbols): Change int to bool.
214 (solib_used): Change int to bool.
215 (solib_add): Change int to bool.
216 (info_sharedlibrary_command): Change int to bool.
217 (solib_contains_address_p): Change int to bool.
218 (solib_keep_data_in_core): Change int to bool.
219 (in_solib_dynsym_resolve_code): Change int to bool.
220 (reload_shared_libraries_1): Change int to bool.
221 (gdb_sysroot_changed): Change int to bool.
222 * solib.h (solib_read_symbols): Change int to bool.
223 (solib_contains_address_p): Change int to bool.
224 (solib_keep_data_in_core): Change int to bool.
225 (in_solib_dynsym_resolve_code): Change int to bool.
226 (libpthread_name_p): Change int to bool.
228 2019-11-25 Luis Machado <luis.machado@linaro.org>
230 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
231 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
232 (remote_packet_max_chars): New static global.
233 (show_remote_packet_max_chars): New function.
234 (remote_target::putpkt_binary): Adjust to use new
235 remote_packet_max_chars option.
236 (remote_target::getpkt_or_notif_sane_1): Likewise.
237 (_initialize_remote): Register new remote-packet-max-chars option.
239 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
241 * m68k-linux-nat.c: Include gdbarch.h.
243 2019-11-24 Tom Tromey <tom@tromey.com>
245 * symfile.c (read_symbols): Update.
246 * psymtab.c (require_partial_symbols): Change type of "verbose" to
248 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
249 (psym_lookup_symbol, psym_find_last_source_symtab)
250 (psym_forget_cached_source_info, psym_print_stats)
251 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
252 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
253 (psym_map_matching_symbols, psym_expand_symtabs_matching)
254 (psym_find_compunit_symtab_by_address)
255 (maintenance_print_psymbols, maintenance_info_psymtabs)
256 (maintenance_check_psymtabs): Update.
257 * psymtab.h (require_partial_symbols): Change type of "verbose" to
260 2019-11-22 Tom Tromey <tom@tromey.com>
262 * observable.h: Update comments.
264 2019-11-22 Tom Tromey <tromey@adacore.com>
266 * ada-tasks.c (ada_task_is_alive): Make parameter const.
267 (print_ada_task_info): Don't try to fetch thread id if task is not
270 2019-11-22 Christian Biesinger <cbiesinger@google.com>
273 * ada-lang.c (sort_choices): Update.
274 (ada_print_symbol_signature): Update.
275 (resolve_subexp): Update.
276 (ada_parse_renaming): Update.
277 (ada_read_renaming_var_value): Update.
278 (lesseq_defined_than): Update.
279 (remove_extra_symbols): Update.
280 (remove_irrelevant_renamings): Update.
281 (ada_add_block_symbols): Update.
282 (ada_collect_symbol_completion_matches): Update.
283 (ada_is_renaming_symbol): Update.
284 (aggregate_assign_from_choices): Update.
285 (ada_evaluate_subexp): Update.
286 (ada_has_this_exception_support): Update.
287 (ada_is_non_standard_exception_sym): Update.
288 (ada_add_exceptions_from_frame): Update.
289 (ada_add_global_exceptions): Update.
290 (ada_print_subexp): Update.
291 * ax-gdb.c (gen_var_ref): Update.
292 (gen_maybe_namespace_elt): Update.
293 (gen_expr_for_cast): Update.
296 * blockframe.c (find_pc_partial_function): Update.
297 * breakpoint.c (print_breakpoint_location): Update.
298 (update_static_tracepoint): Update.
299 * btrace.c (ftrace_print_function_name): Update.
300 (ftrace_function_switched): Update.
301 * buildsym.c (find_symbol_in_list): Update.
303 * c-typeprint.c (c_print_typedef): Update.
304 (c_type_print_template_args): Update.
305 * cli/cli-cmds.c (edit_command): Update.
306 (list_command): Update.
307 (print_sal_location): Update.
308 * coffread.c (patch_opaque_types): Update.
309 (process_coff_symbol): Update.
310 (coff_read_enum_type): Update.
311 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
312 (convert_one_symbol): Update.
313 (hash_symname): Update.
314 (eq_symname): Update.
315 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
316 * compile/compile-cplus-types.c (debug_print_scope): Update.
317 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
318 * compile/compile-object-load.c (get_out_value_type): Update.
319 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
320 (search_symbol_list): Update.
321 (cp_lookup_symbol_imports_or_template): Update.
322 * cp-support.c (overload_list_add_symbol): Update.
323 * ctfread.c (psymtab_to_symtab): Update.
324 * dbxread.c (cp_set_block_scope): Update.
325 * dictionary.c (iter_match_first_hashed): Update.
326 (iter_match_next_hashed): Update.
327 (insert_symbol_hashed): Update.
328 (iter_match_next_linear): Update.
329 * dictionary.h: Update.
330 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
331 (locexpr_describe_location_piece): Update.
332 (locexpr_describe_location_1): Update.
333 (locexpr_generate_c_location): Update.
334 (loclist_describe_location): Update.
335 (loclist_generate_c_location): Update.
336 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
337 (read_func_scope): Update.
338 (process_enumeration_scope): Update.
339 (new_symbol): Update.
340 (dwarf2_const_value): Update.
341 (dwarf2_symbol_mark_computed): Update.
342 * eval.c (evaluate_funcall): Update.
343 (evaluate_subexp_standard): Update.
344 * expprint.c (print_subexp_standard): Update.
345 (dump_subexp_body_standard): Update.
346 * f-valprint.c (info_common_command_for_block): Update.
347 * findvar.c (get_hosting_frame): Update.
348 (default_read_var_value): Update.
349 * go-lang.c (go_symbol_package_name): Update.
350 * guile/scm-block.c (bkscm_print_block_smob): Update.
351 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
352 (gdbscm_symbol_name): Update.
353 (gdbscm_symbol_linkage_name): Update.
354 (gdbscm_symbol_print_name): Update.
355 * infcall.c (get_function_name): Update.
356 * infcmd.c (jump_command): Update.
357 (finish_command): Update.
358 * infrun.c (insert_exception_resume_breakpoint): Update.
359 * linespec.c (canonicalize_linespec): Update.
360 (create_sals_line_offset): Update.
361 (convert_linespec_to_sals): Update.
362 (complete_label): Update.
363 (find_label_symbols_in_block): Update.
364 * m2-typeprint.c (m2_print_typedef): Update.
365 * mdebugread.c (mdebug_reg_to_regnum): Update.
366 (parse_symbol): Update.
367 (mylookup_symbol): Update.
368 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
369 (list_args_or_locals): Update.
370 * objc-lang.c (compare_selectors): Update.
371 (info_selectors_command): Update.
372 (compare_classes): Update.
373 (info_classes_command): Update.
375 * p-typeprint.c (pascal_print_typedef): Update.
376 * printcmd.c (build_address_symbolic): Update.
377 (info_address_command): Update.
378 (print_variable_and_value): Update.
379 * python/py-framefilter.c (extract_sym): Update.
380 (py_print_single_arg): Update.
381 * python/py-symbol.c (sympy_str): Update.
382 (sympy_get_name): Update.
383 (sympy_get_linkage_name): Update.
384 * python/python.c (gdbpy_rbreak): Update.
385 * record-btrace.c (btrace_get_bfun_name): Update.
386 (btrace_call_history): Update.
387 * rust-lang.c (rust_print_typedef): Update.
388 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
389 * stabsread.c (stab_reg_to_regnum): Update.
390 (define_symbol): Update.
391 (read_enum_type): Update.
392 (common_block_end): Update.
393 (cleanup_undefined_types_1): Update.
394 (scan_file_globals): Update.
395 * stack.c (print_frame_arg): Update.
396 (print_frame_args): Update.
397 (find_frame_funname): Update.
398 (info_frame_command_core): Update.
399 (iterate_over_block_locals): Update.
400 (print_block_frame_labels): Update.
401 (do_print_variable_and_value): Update.
402 (iterate_over_block_arg_vars): Update.
403 (return_command): Update.
404 * symmisc.c (dump_symtab_1): Update.
405 (print_symbol): Update.
406 * symtab.c (eq_symbol_entry): Update.
407 (symbol_cache_dump): Update.
408 (lookup_language_this): Update.
409 (find_pc_sect_line): Update.
410 (skip_prologue_sal): Update.
411 (symbol_search::compare_search_syms): Update.
412 (treg_matches_sym_type_name): Update.
413 (search_symbols): Update.
414 (print_symbol_info): Update.
415 (rbreak_command): Update.
416 (completion_list_add_symbol): Update.
417 (find_gnu_ifunc): Update.
418 (get_symbol_address): Update.
419 (search_module_symbols): Update.
420 (info_module_subcommand): Update.
421 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
422 (SYMBOL_LINKAGE_NAME): Remove.
423 (SYMBOL_DEMANGLED_NAME): Remove.
424 (SYMBOL_PRINT_NAME): Remove.
425 (SYMBOL_SEARCH_NAME): Remove.
426 * tracepoint.c (set_traceframe_context): Update.
427 (validate_actionline): Update.
428 (collection_list::collect_symbol): Update.
429 (encode_actions_1): Update.
430 (info_scope_command): Update.
431 (print_one_static_tracepoint_marker): Update.
432 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
433 * valops.c (address_of_variable): Update.
434 (find_overload_match): Update.
435 (find_oload_champ): Update.
437 2019-11-22 Christian Biesinger <cbiesinger@google.com>
439 * ada-lang.c (ada_lookup_simple_minsym): Update.
440 (ada_collect_symbol_completion_matches): Update.
441 * ada-tasks.c (read_atcb): Update.
442 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
443 (amd64_windows_skip_trampoline_code): Update.
444 * arm-tdep.c (skip_prologue_function): Update.
445 (arm_skip_stack_protector): Update.
446 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
447 (arm_wince_skip_main_prologue): Update.
448 * ax-gdb.c (gen_expr): Update.
449 * block.c (call_site_for_pc): Update.
450 * blockframe.c (find_pc_partial_function): Update.
451 * breakpoint.c (set_breakpoint_location_function): Update.
452 * btrace.c (ftrace_print_function_name): Update.
453 (ftrace_function_switched): Update.
454 * c-valprint.c (print_unpacked_pointer): Update.
455 * coffread.c (coff_symfile_read): Update.
456 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
457 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
458 * dwarf-index-write.c (write_psymbols): Update.
459 * dwarf2loc.c (call_site_to_target_addr): Update.
460 (func_verify_no_selftailcall): Update.
461 (tailcall_dump): Update.
462 (call_site_find_chain_1): Update.
463 (dwarf_expr_reg_to_entry_parameter): Update.
464 * elfread.c (elf_gnu_ifunc_record_cache): Update.
465 * eval.c (evaluate_funcall): Update.
466 (evaluate_subexp_standard): Update.
467 (evaluate_subexp_for_sizeof): Update.
468 * expprint.c (print_subexp_standard): Update.
469 (dump_subexp_body_standard): Update.
470 * frame.c (get_prev_frame_always_1): Update.
471 * frv-tdep.c (frv_skip_main_prologue): Update.
472 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
473 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
474 (gnuv3_get_typename_from_type_info): Update.
475 (gnuv3_skip_trampoline): Update.
476 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
477 * i386-tdep.c (i386_skip_main_prologue): Update.
478 (i386_pe_skip_trampoline_code): Update.
479 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
480 * infcall.c (get_function_name): Update.
481 * linespec.c (minsym_found): Update.
482 * linux-fork.c (info_checkpoints_command): Update.
483 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
484 (m32c_m16c_pointer_to_address): Update.
485 * maint.c (maintenance_translate_address): Update.
486 * minsyms.c (add_minsym_to_hash_table): Update.
487 (add_minsym_to_demangled_hash_table): Update.
488 (lookup_minimal_symbol_mangled): Update.
489 (lookup_minimal_symbol_demangled): Update.
490 (lookup_minimal_symbol_linkage): Update.
491 (lookup_minimal_symbol_text): Update.
492 (lookup_minimal_symbol_by_pc_name): Update.
493 (minimal_symbol_is_less_than): Update.
494 (compact_minimal_symbols): Update.
495 (build_minimal_symbol_hash_tables): Update.
496 (find_solib_trampoline_target): Update.
497 * mips-tdep.c (mips_stub_frame_sniffer): Update.
498 (mips_skip_pic_trampoline_code): Update.
499 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
500 * objc-lang.c (info_selectors_command): Update.
501 (info_classes_command): Update.
502 (find_methods): Update.
504 * p-valprint.c (pascal_val_print): Update.
505 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
506 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
507 * printcmd.c (build_address_symbolic): Update.
508 (info_symbol_command): Update.
509 * psymtab.c (psymbol_name_matches): Update.
510 (match_partial_symbol): Update.
511 (lookup_partial_symbol): Update.
512 (print_partial_symbols): Update.
513 (sort_pst_symbols): Update.
514 (maintenance_check_psymtabs): Update.
515 * python/py-framefilter.c (py_print_frame): Update.
516 * python/python.c (gdbpy_rbreak): Update.
517 * record-btrace.c (btrace_get_bfun_name): Update.
518 (btrace_call_history): Update.
519 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
520 (rs6000_skip_trampoline_code): Update.
521 * sol-thread.c (info_cb): Update.
522 * stabsread.c (scan_file_globals): Update.
523 * stack.c (find_frame_funname): Update.
524 (info_frame_command_core): Update.
525 * symmisc.c (dump_msymbols): Update.
526 * symtab.c (symbol_natural_name): Rename to..,
527 (general_symbol_info::natural_name): ...this.
528 (symbol_demangled_name): Rename to...
529 (general_symbol_info::demangled_name): ...this.
530 (symbol_search_name): Rename to...
531 (general_symbol_info::search_name): ...this.
532 (symbol_matches_search_name): Update.
533 (find_pc_sect_line): Update.
534 (skip_prologue_sal): Update.
535 (search_symbols): Update.
536 (print_msymbol_info): Update.
537 (rbreak_command): Update.
538 (completion_list_add_msymbol): Update.
539 (completion_list_objc_symbol): Update.
540 (get_msymbol_address): Update.
541 * symtab.h (struct general_symbol_info): Add member functions
542 natural_name (), linkage_name (), print_name (), demangled_name (),
544 (SYMBOL_NATURAL_NAME): Update.
545 (symbol_natural_name): Move to a member function on general_symbol_info.
546 (SYMBOL_DEMANGLED_NAME): Update.
547 (symbol_demangled_name): Move to a member function on
549 (SYMBOL_SEARCH_NAME): Update.
550 (symbol_search_name): Move to a member function on general_symbol_info.
551 (MSYMBOL_NATURAL_NAME): Remove.
552 (MSYMBOL_LINKAGE_NAME): Remove.
553 (MSYMBOL_PRINT_NAME): Remove.
554 (MSYMBOL_DEMANGLED_NAME): Remove.
555 (MSYMBOL_SEARCH_NAME): Remove.
556 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
558 2019-11-22 Christian Biesinger <cbiesinger@google.com>
560 * symtab.c (create_demangled_names_hash): Use per_bfd->
561 minimal_symbol_count for computing the initial size, if greater
562 than our default size.
564 2019-11-22 Tom de Vries <tdevries@suse.de>
566 * contrib/words.sh: Improve words extraction.
568 2019-11-22 Tom de Vries <tdevries@suse.de>
570 * contrib/words.sh: Combine sed invocations.
572 2019-11-21 Christian Biesinger <cbiesinger@google.com>
574 * Makefile.in: Update.
575 * demangle.c: Rename to...
576 * gdb-demangle.c: ..this.
577 (is_cplus_marker): Change return type to bool.
578 (_initialize_demangler): Rename to...
579 (_initialize_gdb_demangle): ...this.
580 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
581 * symtab.h (demangle): Remove declaration; instead include
584 2019-11-21 Tom Tromey <tromey@adacore.com>
586 * gdbsupport/format.c (format_pieces): Parse %I64d.
587 * unittests/format_pieces-selftests.c (test_windows_formats): New
589 (run_tests): Call it.
591 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
593 Byte reverse display of variables with DW_END_big, DW_END_little
594 (DW_AT_endianity) dwarf attributes if different than the native
596 * ada-lang.c (ada_value_binop):
597 Use type_byte_order instead of gdbarch_byte_order.
598 * ada-valprint.c (printstr):
599 (ada_val_print_string):
600 * ada-lang.c (value_pointer):
602 Use type_byte_order instead of gdbarch_byte_order.
603 * c-lang.c (c_get_string):
604 Use type_byte_order instead of gdbarch_byte_order.
605 * c-valprint.c (c_val_print_array):
606 Use type_byte_order instead of gdbarch_byte_order.
607 * cp-valprint.c (cp_print_class_member):
608 Use type_byte_order instead of gdbarch_byte_order.
609 * dwarf2loc.c (rw_pieced_value):
610 Use type_byte_order instead of gdbarch_byte_order.
611 * dwarf2read.c (read_base_type): Handle DW_END_big,
613 * f-lang.c (f_get_encoding):
614 Use type_byte_order instead of gdbarch_byte_order.
615 * findvar.c (default_read_var_value):
616 Use type_byte_order instead of gdbarch_byte_order.
617 * gdbtypes.c (check_types_equal):
618 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
619 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
620 and TYPE_ENDIANITY_LITTLE if set.
621 (type_byte_order): new function.
622 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
623 (struct main_type) <flag_endianity_not_default>:
625 (type_byte_order): New function.
626 * infcmd.c (default_print_one_register_info):
627 Use type_byte_order instead of gdbarch_byte_order.
628 * p-lang.c (pascal_printstr):
629 Use type_byte_order instead of gdbarch_byte_order.
630 * p-valprint.c (pascal_val_print):
631 Use type_byte_order instead of gdbarch_byte_order.
632 * printcmd.c (print_scalar_formatted):
633 Use type_byte_order instead of gdbarch_byte_order.
634 * solib-darwin.c (darwin_current_sos):
635 Use type_byte_order instead of gdbarch_byte_order.
636 * solib-svr4.c (solib_svr4_r_ldsomap):
637 Use type_byte_order instead of gdbarch_byte_order.
638 * stap-probe.c (stap_modify_semaphore):
639 Use type_byte_order instead of gdbarch_byte_order.
640 * target-float.c (target_float_same_format_p):
641 Use type_byte_order instead of gdbarch_byte_order.
642 * valarith.c (scalar_binop):
644 Use type_byte_order instead of gdbarch_byte_order.
645 * valops.c (value_cast):
646 Use type_byte_order instead of gdbarch_byte_order.
647 * valprint.c (generic_emit_char):
650 Use type_byte_order instead of gdbarch_byte_order.
651 * value.c (unpack_long):
652 (unpack_bits_as_long):
653 (unpack_value_bitfield):
656 (pack_unsigned_long):
657 Use type_byte_order instead of gdbarch_byte_order.
658 * findvar.c (unsigned_pointer_to_address):
659 (signed_pointer_to_address):
660 (unsigned_address_to_pointer):
661 (address_to_signed_pointer):
662 (default_read_var_value):
663 (default_value_from_register):
664 Use type_byte_order instead of gdbarch_byte_order.
665 * gnu-v3-abi.c (gnuv3_make_method_ptr):
666 Use type_byte_order instead of gdbarch_byte_order.
667 * riscv-tdep.c (riscv_print_one_register_info):
668 Use type_byte_order instead of gdbarch_byte_order.
670 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
672 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
673 (current_ui_gdb_stdin_ptr): Likewise.
674 (current_ui_gdb_stderr_ptr): Likewise.
675 (current_ui_gdb_stdlog_ptr): Likewise.
676 (current_ui_current_uiout_ptr): Likewise.
677 (gen_ret_current_ui_field_ptr): Remove.
679 2019-11-21 Tom de Vries <tdevries@suse.de>
682 * cli/cli-script.c (execute_control_command): Only switch to
683 INTERP_CONSOLE's ui_out when INTERP_MI is active.
685 2019-11-19 Tom Tromey <tom@tromey.com>
687 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
688 Now static. Change type of "name".
689 (tui_set_win_height_command): Don't copy "arg".
690 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
691 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
693 2019-11-19 Ali Tamur <tamur@google.com>
695 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
696 "if (attr != nullptr)".
697 (dwarf2_find_base_address): Likewise.
698 (dwarf2_build_include_psymtabs): Likewise.
699 (read_cutu_die_from_dwo): Likewise.
700 (read_func_scope): Likewise.
701 (read_call_site_scope): Likewise.
702 (dwarf2_get_pc_bounds): Likewise.
703 (dwarf2_record_block_ranges): Likewise.
704 (dwarf2_add_field): Likewise.
705 (dwarf2_add_member_fn): Likewise.
706 (read_structure_type): Likewise.
707 (read_enumeration_type): Likewise.
708 (read_array_type): Likewise.
709 (read_array_order): Likewise.
710 (read_set_type): Likewise.
711 (read_common_block): Likewise.
712 (read_tag_reference_type): Likewise.
713 (read_tag_string_type): Likewise.
714 (read_subroutine_type): Likewise.
715 (read_base_type): Likewise.
716 (read_subrange_type): Likewise.
717 (new_symbol): Likewise.
718 (prepare_one_comp_unit): Likewise.
720 2019-11-19 Tom Tromey <tromey@adacore.com>
722 * windows-nat.c (windows_nat_target::attach): Include GetLastError
723 result in error when DebugActiveProcess fails.
725 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
726 Pedro Alves <palves@redhat.com>
728 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
729 * target.c (target_stack::push): Call 'unpush' if there's a
730 target on top of the stack.
732 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
734 * python/py-block.c (blpy_dealloc): Call tp_free.
735 (blpy_block_syms_dealloc): Likewise.
736 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
737 * python/py-inferior.c (infpy_dealloc): Likewise.
738 * python/py-lazy-string.c (stpy_dealloc): Likewise.
739 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
740 * python/py-symbol.c (sympy_dealloc): Likewise.
741 * python/py-symtab.c (stpy_dealloc): Likewise.
742 * python/py-type.c (typy_iterator_dealloc): Likewise.
744 2019-11-18 Christian Biesinger <cbiesinger@google.com>
746 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
747 constructor instead of using a class initializer.
749 2019-11-15 Christian Biesinger <cbiesinger@google.com>
751 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
752 * configure: Regenerate.
753 * configure.ac: Don't source common.host.
754 * gdbsupport/common.host: Remove.
755 * gdbsupport/mingw-strerror.c: Remove.
756 * gdbsupport/posix-strerror.c: Rename to...
757 * gdbsupport/safe-strerror.c: ...this.
759 2019-11-15 Christian Biesinger <cbiesinger@google.com>
761 * maint.c (scoped_command_stats::print_time): Use localtime_r
762 instead of localtime (provided through gnulib if necessary).
763 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
766 2019-11-15 Christian Biesinger <cbiesinger@google.com>
768 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
769 avoid compile errors.
771 2019-11-15 Christian Biesinger <cbiesinger@google.com>
773 * config.in: Regenerate.
774 * configure: Regenerate.
775 * gdbsupport/common.m4: No longer check for strerror_r.
776 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
777 POSIX version of strerror_r, now that gnulib provides it if
780 2019-11-14 Christian Biesinger <cbiesinger@google.com>
782 * README (`configure' options): Update.
784 2019-11-14 Tom Tromey <tromey@adacore.com>
786 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
787 expected type for the RHS if the LHS is a convenience variable.
789 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
791 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
792 Provide explicit default and copy constructor.
794 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
796 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
797 only call Py_INCREF (newbp) in the bppy_pending_object case.
799 2019-11-13 Tom Tromey <tromey@adacore.com>
802 * psympriv.h (partial_symbol): Remove static assert.
803 * symtab.h (general_symbol_info, symbol): Remove static assert.
805 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
807 * gdbsupport/format.c (format_pieces::format_pieces): Support
808 printf 'z' size modifier.
809 * gdbsupport/format.h (enum argclass): Add size_t_arg.
810 * printcmd.c (ui_printf): Handle size_t_arg.
811 * ui-out.c (ui_out::vmessage): Likewise.
812 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
814 (run_tests): Call test_format_int_sizes.
816 2019-11-12 Christian Biesinger <cbiesinger@google.com>
818 * ada-exp.y (write_ambiguous_var): Update.
819 * buildsym.c (add_symbol_to_list): Update.
820 * dwarf2read.c (read_variable): Update.
821 (new_symbol): Update.
822 * jit.c (finalize_symtab): Update.
823 * language.c (language_alloc_type_symbol): Update.
824 * symtab.c (fixup_symbol_section): Update.
825 (initialize_objfile_symbol_1): Move code to...
826 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
827 (allocate_symbol): Update.
828 (allocate_template_symbol): Update.
829 (get_symbol_address): Update.
830 * symtab.h (struct symbol): Inherit from general_symbol_info instead
831 of having as a field, and add a constructor.
832 (SYMBOL_VALUE): Update.
833 (SYMBOL_VALUE_ADDRESS): Update.
834 (SET_SYMBOL_VALUE_ADDRESS): Update.
835 (SYMBOL_VALUE_BYTES): Update.
836 (SYMBOL_VALUE_COMMON_BLOCK): Update.
837 (SYMBOL_BLOCK_VALUE): Update.
838 (SYMBOL_VALUE_CHAIN): Update.
839 (SYMBOL_LANGUAGE): Update.
840 (SYMBOL_SECTION): Update.
841 (SYMBOL_OBJ_SECTION): Update.
842 (SYMBOL_SET_LANGUAGE): Update.
843 (SYMBOL_SET_LINKAGE_NAME): Update.
844 (SYMBOL_SET_NAMES): Update.
845 (SYMBOL_NATURAL_NAME): Update.
846 (SYMBOL_LINKAGE_NAME): Update.
847 (SYMBOL_DEMANGLED_NAME): Update.
848 (SYMBOL_SEARCH_NAME): Update.
849 (SYMBOL_MATCHES_SEARCH_NAME): Update.
850 (struct symbol): Update.
851 (struct template_symbol): Update.
852 (struct rust_vtable_symbol): Update.
853 * xcoffread.c (SYMBOL_DUP): Update.
855 2019-11-12 Tom Tromey <tom@tromey.com>
857 * tui/tui-layout.c (show_layout): Set current_layout.
858 (show_source_disasm_command, show_data)
859 (show_source_or_disasm_and_command): Don't set current_layout.
861 2019-11-12 Tom Tromey <tom@tromey.com>
863 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
865 2019-11-12 Tom Tromey <tom@tromey.com>
867 * tui/tui-win.c (resize_message): New global.
868 (show_tui_resize_message): New function.
869 (tui_async_resize_screen): Print message if requested.
870 (_initialize_tui_win): Add tui-resize-message setting.
871 * NEWS: Add entry for new commands.
873 2019-11-11 Tom Tromey <tom@tromey.com>
875 * tui/tui.c (tui_initialize_readline): Add new bindable readline
878 2019-11-11 Christian Biesinger <cbiesinger@google.com>
880 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
882 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
884 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
886 * python/python-internal.h (gdbpy_lookup_static_symbols):
887 Declare new function.
888 * python/python.c (python_GdbMethods): Add
889 gdb.lookup_static_symbols method.
890 * NEWS: Mention gdb.lookup_static_symbols.
892 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
894 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
895 static block of current object file first. Also fix typo in
898 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
900 * stack.c (set_last_displayed_sal): Delete.
901 (last_displayed_sal_valid): Delete.
902 (last_displayed_pspace): Delete.
903 (last_displayed_addr): Delete.
904 (last_displayed_symtab): Delete.
905 (last_displayed_line): Delete.
906 (class last_displayed_symtab_info_type): New.
907 (last_displayed_symtab_info): New static global variable.
908 (print_frame_info): Call methods on last_displayed_symtab_info.
909 (clear_last_displayed_sal): Update header comment, and make use of
910 last_displayed_symtab_info.
911 (last_displayed_sal_is_valid): Likewise.
912 (get_last_displayed_pspace): Likewise.
913 (get_last_displayed_addr): Likewise.
914 (get_last_displayed_symtab): Likewise.
915 (get_last_displayed_line): Likewise.
916 (get_last_displayed_sal): Likewise.
917 * stack.h (clear_last_displayed_sal): Update header comment.
918 (last_displayed_sal_is_valid): Likewise.
919 (get_last_displayed_pspace): Likewise.
920 (get_last_displayed_addr): Likewise.
921 (get_last_displayed_symtab): Likewise.
922 (get_last_displayed_line): Likewise.
923 (get_last_displayed_sal): Likewise.
925 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
927 * stack.c (frame_show_address): Convert return type to bool.
928 * stack.h (frame_show_address): Likewise, and update header
931 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
933 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
934 * unittests/vec-utils-selftests.c: New file.
935 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
937 2019-11-10 Tom Tromey <tom@tromey.com>
939 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
940 (tui_highlight_win): Likewise.
941 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
942 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
943 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
944 Don't set can_highlight.
946 2019-11-10 Tom Tromey <tom@tromey.com>
948 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
949 Remove unused declaration.
951 2019-11-08 Tom Tromey <tromey@adacore.com>
953 * top.c (read_command_file): Update.
954 (command_line_input): Make return type const.
955 * python/py-gdb-readline.c: Update.
956 * linespec.c (decode_line_2): Update.
957 * defs.h (command_line_input): Make return type const.
958 * cli/cli-script.c (read_next_line): Make return type const.
959 * ada-lang.c (get_selections): Update.
961 2019-11-06 Christian Biesinger <cbiesinger@google.com>
963 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
964 * mi/mi-main.c (output_cores): Likewise.
965 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
966 (linux_xfer_osdata_modules): Likewise.
967 * remote.c (register_remote_support_xml): Likewise.
968 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
969 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
971 2019-11-06 Tom Tromey <tom@tromey.com>
973 * tui/tui-interp.c: Don't include readline.h.
974 * tui/tui-hooks.c: Don't include readline.h.
975 * symmisc.c: Include tilde.h, not readline.h.
976 * symfile.c: Include tilde.h, not readline.h.
977 * source.c: Include tilde.h, not readline.h.
978 * solib.c: Include tilde.h, not readline.h.
979 * psymtab.c: Include tilde.h, not readline.h.
980 * exec.c: Include tilde.h, not readline.h.
981 * corelow.c: Include tilde.h, not readline.h.
982 * cli/cli-dump.c: Include tilde.h, not readline.h.
983 * cli/cli-cmds.c: Don't include readline.h.
985 2019-11-05 Tom Tromey <tom@tromey.com>
987 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
988 (tui_disassemble): Set addr_size.
989 (tui_disasm_window::set_contents): Use addr_size.
991 2019-11-05 Tom Tromey <tom@tromey.com>
993 * rust-lang.c (rust_language_defn): Update.
994 * python/py-value.c (valpy_string): Call c_get_string.
995 * p-lang.c (pascal_language_defn): Update.
996 * opencl-lang.c (opencl_language_defn): Update.
997 * objc-lang.c (objc_language_defn): Update.
998 * m2-lang.c (m2_language_defn): Update.
999 * language.c (unknown_language_defn, auto_language_defn): Update.
1000 (default_get_string): Remove.
1001 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1002 * go-lang.c (go_language_defn): Update.
1003 * f-lang.c (f_language_defn): Update.
1004 * d-lang.c (d_language_defn): Update.
1005 * c-lang.c (c_language_defn, cplus_language_defn)
1006 (asm_language_defn, minimal_language_defn): Update.
1007 * ada-lang.c (ada_language_defn): Update.
1008 * language.h (struct language_defn) <la_get_string>: Remove.
1009 (LA_GET_STRING): Remove.
1010 (default_get_string): Don't declare.
1012 2019-11-05 Tom Tromey <tom@tromey.com>
1014 * tui/tui-source.h (struct tui_source_window): Inline
1015 constructor. Remove destructor.
1016 <style_changed, m_observable>: Move to superclass.
1017 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1018 (struct tui_source_window_base): Move private members to end.
1019 <style_changed, m_observable>: Move from tui_source_window.
1020 * tui/tui-winsource.c (tui_copy_source_line): Move from
1021 tui-source.c. Rename from copy_source_line. Add special handling
1022 for negative line number.
1023 (tui_source_window_base::style_changed): Move from
1025 (tui_source_window_base): Register observer.
1026 (~tui_source_window_base): New.
1027 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1029 (tui_source_window::set_contents): Use tui_copy_source_line.
1030 (tui_source_window::tui_source_window): Move to tui-source.h.
1031 (tui_source_window::~tui_source_window): Remove.
1032 (tui_source_window::style_changed): Move to superclass.
1033 * tui/tui-disasm.c (tui_disassemble): Create string file with
1034 styling, when possible. Add "addr_size" parameter.
1035 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1036 Don't compute maximum size.
1037 (len_without_escapes): New function
1039 2019-11-05 Tom Tromey <tom@tromey.com>
1041 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1043 * tui/tui-winsource.c (tui_show_source_line): Update.
1044 * tui/tui-source.c (tui_source_window::set_contents): Update.
1045 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1047 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1049 * symtab.h (gdb_static_assert): Put && operator at the beginning
1050 of the line instead of the end.
1052 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1054 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1055 and sizeof (symbol).
1056 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1058 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1060 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1061 * configure.host: Mark *-*-solaris2.10* obsolete.
1062 * configure.tgt: Mark Solaris < 11 obsolete.
1063 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1064 Update target triplet.
1066 2019-11-01 Tom Tromey <tromey@adacore.com>
1068 * utils.c (print_sys_errmsg): Simplify.
1070 2019-11-01 Tom Tromey <tromey@adacore.com>
1072 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1074 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1076 * configure: Regenerate.
1077 * configure.ac: Remove check for strerror_r.
1078 * gdbsupport/common.m4: Check for strerror_r.
1080 2019-11-01 Luis Machado <luis.machado@linaro.org>
1084 * arm-tdep.c (arm_per_objfile): Rename to ...
1085 (arm_per_bfd): ... this.
1086 (arm_objfile_data_key): Rename to ...
1087 (arm_bfd_data_key): ... this.
1088 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1090 (arm_record_special_symbol): Likewise.
1092 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1094 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1096 * c-typeprint.c (c_print_typedef): Likewise.
1097 * f-typeprint.c (f_print_typedef): Likewise.
1098 * m2-typeprint.c (m2_print_typedef): Likewise.
1099 * p-typeprint.c (pascal_print_typedef): Likewise.
1100 * rust-lang.c (rust_print_typedef): Likewise.
1101 * symtab.c (print_symbol_info): Print a newline after calling
1104 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1106 * symtab.c (info_module_cmdlist): New variable.
1107 (info_module_command): New function.
1108 (search_module_symbols): New function.
1109 (info_module_subcommand): New function.
1110 (struct info_modules_var_func_options): New struct.
1111 (info_modules_var_func_options_defs): New variable.
1112 (make_info_modules_var_func_options_def_group): New function.
1113 (info_module_functions_command): New function.
1114 (info_module_variables_command): New function.
1115 (info_module_var_func_command_completer): New function.
1116 (_initialize_symtab): Register new 'info module functions' and
1117 'info module variables' commands.
1118 * symtab.h (typedef symbol_search_in_module): New typedef.
1119 (search_module_symbols): Declare new function.
1120 * NEWS: Mention new commands.
1122 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1124 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1125 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1126 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1128 (scan_partial_symbols): Only create partial module symbols for non
1130 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1132 * symtab.c (search_domain_name): Likewise.
1133 (search_symbols): Likewise.
1134 (print_symbol_info): Likewise.
1135 (symtab_symbol_info): Likewise.
1136 (info_modules_command): New function.
1137 (_initialize_symtab): Register 'info modules' command.
1138 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1139 * NEWS: Mention new 'info modules' command.
1141 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1143 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1144 and $_gdb_maint_setting_str.
1146 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1148 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1149 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1150 (str_value_from_setting, gdb_setting_str_internal_fn)
1151 (gdb_maint_setting_str_internal_fn): New functions.
1152 (_initialize_cli_cmds): Define the new convenience functions.
1153 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1154 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1156 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1158 * agent.c (set_can_use_agent): When the setting is turned on,
1159 look up agent symbols if we don't have them yet.
1160 (agent_new_objfile): Don't look up agent symbols when the agent
1163 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1165 * config.in: Regenerate.
1167 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1169 * configure: Regenerate.
1170 * configure.ac: Check for strerror_r.
1171 * gdbsupport/common-utils.h (safe_strerror): Change return value
1172 to const char * and document that this function is now threadsafe.
1173 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1174 thread_local and call strerror_r, if available.
1175 * utils.c (perror_string): Update.
1176 (print_sys_errmsg): Update.
1178 2019-10-31 Luis Machado <luis.machado@linaro.org>
1180 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1182 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1183 objfile to fetch per-bfd data.
1184 (arm_find_exidx_entry): Likewise.
1186 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1188 * gdbsupport/agent.c (debug_agent): Change type to bool.
1189 (use_agent): Likewise.
1190 (all_agent_symbols_look_up): Likewise.
1191 (agent_loaded_p): Change return value to bool.
1192 (agent_look_up_symbols): Update.
1193 (agent_capability_check): Change return value to bool.
1194 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1195 (debug_agent): Change type to bool.
1196 (use_agent): Likewise.
1197 (agent_capability_check): Change return value to bool.
1199 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1201 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1202 (build_minimal_symbol_hash_tables): Code to clear the table moved
1203 to clear_minimal_symbol_hash_tables.
1204 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1207 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1209 * infcmd.c: Remove includes.
1210 * infrun.c: Remove includes.
1212 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1214 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1215 (grow_vect): Remove declaration.
1216 (ada_type_of_array): Remove declaration.
1217 (ada_update_initial_language): Remove declaration.
1218 (ada_fold_name): Remove declaration.
1219 (ada_fill_in_ada_prototype): Remove declaration.
1220 (user_select_syms): Remove declaration.
1221 (get_selections): Remove declaration.
1222 (ada_tag_type): Remove declaration.
1223 (ada_value_tag): Remove declaration.
1224 (ada_is_others_clause): Remove declaration.
1225 (ada_in_variant): Remove declaration.
1226 (ada_value_struct_elt): Remove declaration.
1227 (ada_attribute_name): Remove declaration.
1228 (ada_system_address_type): Remove declaration.
1229 * ada-lang.c (ada_watch_location_expression): Make static.
1230 (GROW_VECT): Move here from ada-lang.h.
1231 (grow_vect): Make static.
1232 (ada_update_initial_language): Make static.
1233 (ada_fold_name): Make static.
1234 (ada_type_of_array): Make static.
1235 (encoded_ordered_before): Move up.
1236 (sort_choices): Move up.
1237 (print_signatures): Move up.
1238 (ada_print_symbol_signature): Move up.
1239 (get_selections): Move up and make static.
1240 (user_select_syms): Move up and make static.
1241 (ada_value_struct_elt): Move up and make static.
1242 (ada_tag_type): Make static.
1243 (ada_value_tag): Make static.
1244 (ada_is_others_clause): Make static.
1245 (ada_in_variant): Make static.
1246 (ada_attribute_name): Make static.
1248 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1250 * ada-lang.c: Remove includes.
1251 * ada-typeprint.c: Remove includes.
1252 * ada-valprint.c: Remove includes.
1254 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1256 * addrmap.c: Add static assertions of type size, moved from
1257 _initialize_addrmap.
1258 (_initialize_addrmap): Remove.
1260 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1262 * coffread.c (record_minimal_symbol): Update.
1263 (process_coff_symbol): Update.
1264 * dbxread.c (read_dbx_symtab): Update.
1265 * dwarf2read.c (add_partial_symbol): Update.
1266 (fixup_go_packaging): Update.
1267 (load_partial_dies): Update.
1268 (new_symbol): Update.
1269 * elfread.c (record_minimal_symbol): Change signature to use
1270 gdb::string_view instead of name+len.
1271 (elf_symtab_read): Update.
1272 (elf_rel_plt_read): Update.
1273 * mdebugread.c (parse_partial_symbols): Update.
1274 (handle_psymbol_enumerators): Update.
1275 (new_symbol): Update.
1276 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1277 to use gdb::string_view instead of name+len.
1278 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1279 * psympriv.h (add_psymbol_to_list): Likewise.
1280 * psymtab.c (add_psymbol_to_bcache): Likewise.
1281 (add_psymbol_to_list): Likewise.
1282 * stabsread.c (define_symbol): Update.
1283 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1284 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1285 (symbol_set_names): Likewise.
1286 * xcoffread.c (scan_xcoff_symtab): Update.
1288 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1290 * symtab.h (symbol_set_names): Document that copy_name must be
1291 set to true for non-nullterminated strings.
1292 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1293 linkage_name if the entry was not found and we need to demangle.
1295 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1297 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1298 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1299 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1300 * gdbsupport/gdb_binary_search.h: New file.
1302 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1304 * NEWS: Mention new --with-system-gdbinit-dir option.
1305 * config.in: Regenerate.
1306 * configure: Regenerate.
1307 * configure.ac: Add new option --with-system-gdbinit-dir.
1308 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1309 for a ".gdb" suffix.
1310 * main.c (get_init_files): Change system_gdbinit argument to
1311 a vector and return the files in SYSTEM_GDBINIT_DIR in
1312 addition to SYSTEM_GDBINIT.
1313 (captured_main_1): Update.
1314 (print_gdb_help): Update.
1315 * top.c (print_gdb_configuration): Also print the value of
1318 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1320 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1321 that takes gdb::string_view arguments.
1323 2019-10-26 Tom de Vries <tdevries@suse.de>
1325 * aarch64-linux-tdep.c: Fix typos in comments.
1326 * aarch64-tdep.c: Same.
1328 * amd64-nat.c: Same.
1330 * arch/aarch64-insn.c: Same.
1332 * breakpoint.h: Same.
1335 * cli/cli-decode.c: Same.
1336 * cli/cli-script.c: Same.
1337 * cli/cli-utils.h: Same.
1338 * coff-pe-read.c: Same.
1340 * compile/compile-cplus-symbols.c: Same.
1341 * compile/compile-object-run.c: Same.
1342 * completer.c: Same.
1344 * cp-support.c: Same.
1346 * dwarf-index-write.c: Same.
1347 * dwarf2-frame.c: Same.
1348 * dwarf2-frame.h: Same.
1350 * frame-base.h: Same.
1355 * guile/scm-objfile.c: Same.
1356 * i386-tdep.c: Same.
1357 * i386-tdep.h: Same.
1360 * linux-nat.c: Same.
1361 * m68k-tdep.c: Same.
1364 * mi/mi-cmd-disas.c: Same.
1365 * mi/mi-getopt.h: Same.
1366 * mi/mi-main.c: Same.
1368 * nat/aarch64-sve-linux-sigcontext.h: Same.
1370 * ppc-linux-nat.c: Same.
1371 * ppc-linux-tdep.c: Same.
1373 * progspace.h: Same.
1374 * prologue-value.h: Same.
1375 * python/py-evtregistry.c: Same.
1376 * python/py-instruction.h: Same.
1377 * record-btrace.c: Same.
1378 * record-full.c: Same.
1380 * rs6000-tdep.c: Same.
1382 * sol-thread.c: Same.
1383 * sparc-sol2-tdep.c: Same.
1384 * sparc64-tdep.c: Same.
1385 * stabsread.c: Same.
1389 * tracepoint.c: Same.
1390 * tui/tui-data.h: Same.
1391 * tui/tui-io.c: Same.
1392 * tui/tui-win.c: Same.
1394 * unittests/rsp-low-selftests.c: Same.
1395 * user-regs.h: Same.
1406 * xtensa-tdep.c: Same.
1408 2019-10-25 Ali Tamur <tamur@google.com>
1410 * charset.c (find_charset_names): Reflect API change.
1412 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1414 * symtab.c (struct demangled_name_entry): Change demangled name
1415 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1416 part of the struct anymore.
1417 (symbol_set_names): No longer obstack allocate + copy the demangled
1418 name, just store the allocated name from bfd.
1420 2019-10-25 Tom Tromey <tromey@adacore.com>
1422 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1423 (bsearch_cie_cmp, add_cie): Remove.
1424 (find_cie): Reimplement.
1425 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1426 (dwarf2_build_frame_info): Update.
1428 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1431 * symfile.c (reread_symbols): Call forget_cached_source_info to
1432 clear the stale source cache.
1434 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1436 * configure: Regenerate.
1437 * configure.ac: Remove code that sets python_has_threads.
1439 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1441 * config.in: Regenerate.
1442 * configure: Regenerate.
1443 * configure.ac: Remove the code that uses sed to get the python
1444 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1446 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1448 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1451 2019-10-23 Tom Tromey <tom@tromey.com>
1453 * arc-tdep.c: Remove ".." from include.
1454 * frv-tdep.c: Remove ".." from include.
1455 * lm32-tdep.c: Remove ".." from include.
1456 * microblaze-tdep.c: Remove ".." from include.
1457 * or1k-tdep.h: Remove ".." from include.
1458 * s12z-tdep.c: Remove ".." from include.
1459 * Makefile.in (OPCODES_CFLAGS): Add comment.
1460 (TOP_CFLAGS): New variable.
1461 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1463 2019-10-23 Tom Tromey <tom@tromey.com>
1465 * Makefile.in (READLINE_DIR): Update.
1467 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1469 * infcall.c (call_function_by_hand_dummy): Fix the function
1470 comment. And extract out a code section into...
1471 (reserve_stack_space): ...this new function.
1473 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1475 * infcall.c (value_arg_coerce): Remove an unused parameter.
1476 (call_function_by_hand_dummy): Update the call to
1479 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1481 * infcall.c (call_function_by_hand_dummy): Refactor.
1483 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1485 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1487 2019-10-23 Tom Tromey <tom@tromey.com>
1489 * configure: Rebuild.
1490 * configure.ac: Don't check for sigprocmask.
1491 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1493 2019-10-23 Tom Tromey <tom@tromey.com>
1495 * configure: Rebuild.
1496 * acinclude.m4: Use m4_include, not sinclude.
1498 2019-10-23 Tom de Vries <tdevries@suse.de>
1500 PR breakpoints/24687
1501 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1503 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1505 * symtab.c (struct demangled_name_entry) <language>: Change from
1506 bitfield to regular variable.
1508 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1510 * symtab.c (struct demangled_name_entry): Add a constructor.
1511 (free_demangled_name_entry): New function to call the destructor
1512 for demangled_name_entry.
1513 (create_demangled_names_hash): Pass free_demangled_name_entry to
1515 (symbol_set_names): Call placement new for demangled_name_entry.
1516 * utils.c: No longer include xxhash.h here, now that fast_hash
1517 is inlined in the header.
1518 * utils.h: Instead, include it here.
1520 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1522 * Makefile.in: Link with libxxhash.
1523 * config.in: Regenerate.
1524 * configure: Regenerate.
1525 * configure.ac: Search for libxxhash.
1526 * utils.c (fast_hash): Use xxhash if present.
1528 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1530 * utils.h (fast_hash): New function.
1531 * symtab.c (hash_demangled_name_entry): Call new function
1534 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1536 * symtab.c (struct demangled_name_entry): Change type of mangled
1537 to gdb::string_view. Also adds a constructor that takes the
1539 (hash_demangled_name_entry): Update.
1540 (eq_demangled_name_entry): Update.
1541 (free_demangled_name_entry): New function to call the destructor
1542 now that this is not a POD anymore.
1543 (create_demangled_names_hash): Pass free_demangled_name_entry to
1545 (symbol_set_names): Update.
1547 2019-10-21 Ali Tamur <tamu@google.com>
1549 * dwarf2read.c (dir_index): Change type.
1550 (file_name_index): Likewise.
1551 (line_header::include_dir_at): Change comment and implementation on
1552 whether it is DWARF 5.
1553 (line_header::is_valid_file_index): New function.
1554 (line_header::file_name_at): Change comment and implementation on
1555 whether it is DWARF 5.
1556 (line_header::file_names): Change to private field renamed as
1557 m_file_names and introduce a new accessor method.
1558 (line_header::file_names_size): New method.
1559 (line_header::include_dirs): Change to private field and rename as
1561 (dw2_get_file_names_reader): Define local var at a smaller scope and
1563 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1564 (process_structure_scope): Likewise.
1565 (line_header::add_include_dir): Change message and reflect renaming.
1566 (line_header::add_file_name): Likewise.
1567 (read_formatted_entries): Handle DW_FORM_data16.
1568 (dwarf_decode_line_header): Fix line header length calculation.
1569 (psymtab_include_file_name): Change comment and API.
1570 (lnp_state_machine::m_file): Update comment and reflect type change.
1571 (lnp_state_machine::record_line): Reflect type change.
1572 (dwarf_decode_lines): Reflect API change.
1573 (file_file_name): Likewise.
1574 (file_full_name): Likewise.
1576 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1578 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1580 2019-10-21 Tom Tromey <tom@tromey.com>
1582 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1584 2019-10-21 Tom Tromey <tom@tromey.com>
1586 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1587 NM_H. Use AC_CONFIG_LINKS.
1588 * configure: Rebuild.
1589 * Makefile.in (NM_H): New variable.
1590 (generated_files): Add NM_H. Remove gcore.
1591 (nm.h, stamp-nmh): New targets.
1593 2019-10-20 Tom Tromey <tom@tromey.com>
1595 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1596 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1598 (put_objfile_before): Now static.
1600 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1602 * gdbsupport/common-utils.h (startswith): Change return type to
1605 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1607 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1608 * breakpoint.c (bp_locations_compare): Rename to...
1609 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1610 (update_global_location_list): Use std::sort instead of qsort.
1611 * buildsym.c (compare_line_numbers): Rename to...
1612 (lte_is_less_than): ...this, and change to std::sort semantics.
1613 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1615 * disasm.c (compare_lines): Rename to...
1616 (line_is_less_than): ...this, and change to std::sort semantics.
1617 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1619 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1620 (fde_is_less_than): ...this, and change to std::sort semantics.
1621 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1622 * mdebugread.c (compare_blocks):
1623 (block_is_less_than): ...this, and change to std::sort semantics.
1624 (sort_blocks): Call std::sort instead of qsort.
1625 * objfiles.c (qsort_cmp): Rename to...
1626 (sort_cmp): ...this, and change to std::sort semantics.
1627 (update_section_map): Call std::sort instead of qsort.
1628 * remote.c (compare_pnums): Remove.
1629 (map_regcache_remote_table): Call std::sort instead of qsort.
1630 * utils.c (compare_positive_ints): Remove.
1631 * utils.h (compare_positive_ints): Remove.
1632 * xcoffread.c (compare_lte): Remove.
1633 (arrange_linetable): Call std::sort instead of qsort.
1635 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1637 * symfile.c (init_entry_point_info): Fix typo.
1638 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1640 2019-10-18 Tom de Vries <tdevries@suse.de>
1642 * aarch64-tdep.c: Fix typos in comments.
1644 * ada-tasks.c: Same.
1645 * alpha-tdep.c: Same.
1646 * alpha-tdep.h: Same.
1647 * amd64-nat.c: Same.
1648 * amd64-windows-tdep.c: Same.
1651 * arch-utils.c: Same.
1652 * arm-nbsd-tdep.c: Same.
1655 * blockframe.c: Same.
1658 * coff-pe-read.c: Same.
1660 * cris-tdep.c: Same.
1661 * darwin-nat.c: Same.
1665 * dtrace-probe.c: Same.
1666 * dwarf-index-write.c: Same.
1667 * dwarf2-frame-tailcall.c: Same.
1668 * dwarf2-frame.c: Same.
1669 * dwarf2read.c: Same.
1671 * exceptions.c: Same.
1672 * fbsd-tdep.c: Same.
1676 * gnu-v3-abi.c: Same.
1678 * h8300-tdep.c: Same.
1679 * hppa-tdep.c: Same.
1680 * i386-linux-tdep.c: Same.
1681 * i386-tdep.c: Same.
1682 * ia64-libunwind-tdep.c: Same.
1683 * ia64-tdep.c: Same.
1687 * linux-nat.c: Same.
1688 * linux-thread-db.c: Same.
1689 * machoread.c: Same.
1690 * mdebugread.c: Same.
1692 * mn10300-tdep.c: Same.
1693 * namespace.c: Same.
1695 * opencl-lang.c: Same.
1696 * or1k-tdep.c: Same.
1698 * ppc-linux-nat.c: Same.
1699 * ppc-linux-tdep.c: Same.
1700 * ppc-sysv-tdep.c: Same.
1703 * record-btrace.c: Same.
1704 * record-full.c: Same.
1705 * remote-fileio.c: Same.
1707 * rs6000-tdep.c: Same.
1708 * s12z-tdep.c: Same.
1709 * score-tdep.c: Same.
1713 * sol-thread.c: Same.
1714 * solib-svr4.c: Same.
1717 * sparc-nat.c: Same.
1718 * sparc-sol2-tdep.c: Same.
1719 * sparc-tdep.c: Same.
1720 * sparc64-tdep.c: Same.
1721 * stabsread.c: Same.
1725 * target-descriptions.c: Same.
1726 * target-float.c: Same.
1733 * windows-nat.c: Same.
1734 * xcoffread.c: Same.
1735 * xstormy16-tdep.c: Same.
1736 * xtensa-tdep.c: Same.
1738 2019-10-17 Tom Tromey <tromey@adacore.com>
1740 * configure: Rebuild.
1741 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1742 in AC_CONFIG_FILES invocation.
1743 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1744 new-style config.status invocation.
1746 2019-10-17 Tom de Vries <tdevries@suse.de>
1748 * arm-nbsd-nat.c: Fix typos in comments.
1750 * darwin-nat-info.c: Same.
1751 * dwarf2read.c: Same.
1753 * event-top.c: Same.
1756 * hppa-tdep.c: Same.
1757 * i386-tdep.c: Same.
1760 * mdebugread.c: Same.
1761 * moxie-tdep.c: Same.
1762 * nto-procfs.c: Same.
1764 * ppc-linux-tdep.c: Same.
1766 * riscv-tdep.c: Same.
1767 * s390-tdep.c: Same.
1769 * sparc-linux-tdep.c: Same.
1770 * sparc-nat.c: Same.
1772 * target-descriptions.c: Same.
1776 2019-10-16 Tom Tromey <tom@tromey.com>
1778 * objfiles.h (struct objfile) <original_name>: Now const.
1780 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1782 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1783 pass on to sigsetjmp's second argument.
1784 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1786 2019-10-16 Keith Seitz <keiths@redhat.com>
1789 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1790 sections whose size is greater than the file size.
1792 2019-10-16 Jim Wilson <jimw@sifive.com>
1794 * riscv-tdep.c (riscv_gcc_target_options): New.
1795 (riscv_gnu_triplet_regexp): New.
1796 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1797 set_gdbarch_gnu_triplet_regexp.
1799 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1801 * Makefile.in: Add xml-builtin.h.
1802 * features/feature_to_c.sh: Add an include for xml-builtin.h
1803 to ensure that the compiler checks that the types match.
1804 * xml-builtin.h: New file.
1805 * xml-support.c (fetch_xml_builtin): Add missing const.
1806 * xml-support.h: Remove declaration of xml_builtins.
1808 2019-10-16 Tom de Vries <tdevries@suse.de>
1811 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1812 (amd64_classify_aggregate): ... here.
1813 (amd64_classify_aggregate_field): Handled fiels of nested structs
1816 2019-10-16 Tom de Vries <tdevries@suse.de>
1819 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1820 that handles 'theclass'.
1822 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1824 * linespec.c (decode_digits_ordinary): Update comment.
1825 * make-target-delegates: No longer need to handle VEC case.
1826 * memrange.c (normalize_mem_ranges): Update comment.
1827 * namespace.c (add_using_directive): Update comment.
1828 * objc-lang.c (uniquify_strings): Update comment.
1829 * ppc-linux-nat.c (struct thread_points): Update comment.
1830 * probe.h (find_probes_in_objfile): Update comment.
1831 * target.h (enum flash_preserve_mode): Update comment.
1832 * varobj.c (varobj_restrict_range): Update comment.
1833 * varobj.h (varobj_list_children): Update comment.
1835 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1837 * Makefile.in: Remove references to vec.h and vec.c.
1838 * aarch64-tdep.c: No longer include vec.h.
1839 * ada-lang.c: Likewise.
1840 * ada-lang.h: Likewise.
1841 * arm-tdep.c: Likewise.
1843 * breakpoint.h: Likewise.
1844 * charset.c: Likewise.
1845 * cp-support.h: Likewise.
1846 * dtrace-probe.c: Likewise.
1847 * dwarf2read.c: Likewise.
1848 * extension.h: Likewise.
1849 * gdb_bfd.c: Likewise.
1850 * gdbsupport/gdb_vecs.h: Likewise.
1851 * gdbsupport/vec.c: Remove.
1852 * gdbsupport/vec.h: Remove.
1853 * gdbthread.h: Likewise.
1854 * guile/scm-type.c: Likewise.
1855 * inline-frame.c: Likewise.
1856 * machoread.c: Likewise.
1857 * memattr.c: Likewise.
1858 * memrange.h: Likewise.
1859 * namespace.h: Likewise.
1860 * nat/linux-btrace.h: Likewise.
1861 * osdata.c: Likewise.
1862 * parser-defs.h: Likewise.
1863 * progspace.h: Likewise.
1864 * python/py-type.c: Likewise.
1865 * record-btrace.c: Likewise.
1866 * rust-exp.y: Likewise.
1867 * solib-target.c: Likewise.
1868 * stap-probe.c: Likewise.
1869 * target-descriptions.c: Likewise.
1870 * target-memory.c: Likewise.
1871 * target.h: Likewise.
1872 * varobj.c: Likewise.
1873 * varobj.h: Likewise.
1874 * xml-support.h: Likewise.
1876 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1878 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1879 Update for new std::vector based implementation.
1880 (process_psymtab_comp_unit_reader): Likewise.
1881 (scan_partial_symbols): Likewise.
1882 (recursively_compute_inclusions): Likewise.
1883 (compute_compunit_symtab_includes): Likewise.
1884 (process_imported_unit_die): Likewise.
1885 (queue_and_load_dwo_tu): Likewise.
1886 (follow_die_sig_1): Likewise.
1887 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1888 (typedef dwarf2_per_cu_ptr): Remove.
1889 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1891 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1892 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1893 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1894 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1897 2019-10-15 Tom Tromey <tromey@adacore.com>
1899 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1902 2019-10-15 Tom Tromey <tromey@adacore.com>
1904 * windows-nat.c (windows_nat_target::fetch_registers)
1905 (windows_nat_target::store_registers): Rename "pid" to "tid".
1907 2019-10-15 Tom Tromey <tromey@adacore.com>
1909 * gdbarch.h, gdbarch.c: Rebuild.
1910 * gdbarch.sh (gcc_target_options): Change return type to
1912 * compile/compile.c (get_args): Update.
1913 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1914 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1916 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1918 * arch-utils.c (default_gcc_target_options): Return std::string.
1919 * arch-utils.h (default_gcc_target_options): Return std::string.
1920 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1922 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1924 * breakpoint.c (breakpoint_chain): Make static.
1925 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1926 of accessing breakpoint_chain.
1928 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1930 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1931 to a gdb::function_view and return value to bool.
1932 * breakpoint.h (iterate_over_breakpoints): Likewise.
1933 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1934 (pop_dummy_frame): Update.
1935 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1936 (gdbscm_breakpoints): Update.
1937 * python/py-breakpoint.c (build_bp_list): Update.
1938 (gdbpy_breakpoints): Update.
1939 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1941 (bpfinishpy_handle_stop): Update.
1942 (bpfinishpy_handle_exit): Update.
1943 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1944 (svr4_update_solib_event_breakpoints): Update.
1946 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1948 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1949 when unwrapping single-field structs.
1951 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1953 * dwarf2read.c: Remove includes.
1955 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1957 * ui-out.c (ui_out::call_do_message): Silence
1958 -Wformat-nonliteral warning.
1960 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1962 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1963 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1964 include: readline/tilde.h.
1966 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1968 * remote.c (remote_target::get_trace_status): Remove declaration of
1969 trace_regblock_size.
1971 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1973 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1974 (show_user): Remove declaration of cmdlist.
1975 * cli/cli-cmds.h (max_user_call_depth): Declare.
1976 * cli/cli-script.c (execute_user_command): Remove declaration
1977 of max_user_call_depth.
1979 2019-10-11 Jim Wilson <jimw@sifive.com>
1981 * gdbsupport/print-utils.h (pulongest): Fix comment.
1982 (plongest): Likewise.
1983 (phex): Add missing comment, mention leading zeros.
1984 (phex_nz): Add mention of no leading zeros to comment.
1986 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1987 plongest instead of unsigned long long cast.
1989 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1991 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1992 for external_editor_command and gdbtk_test.
1994 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1996 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1997 * varobj.c (varobjdebug): Move comment to...
1998 * varobj.h (varobjdebug): ...here, and declare.
2000 2019-10-09 Tom Tromey <tom@tromey.com>
2002 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2005 2019-10-09 Tom Tromey <tom@tromey.com>
2007 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2008 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2009 * tui/tui-command.c (tui_cmd_window::resize)
2010 (tui_refresh_cmd_win): Update.
2011 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2012 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2013 * tui/tui-data.c (~tui_gen_win_info): Remove.
2014 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2015 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2016 (tui_redisplay_readline, tui_mld_flush)
2017 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2018 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2019 (tui_data_window::erase_data_content)
2020 (tui_data_item_window::rerender)
2021 (tui_data_item_window::refresh_window): Update.
2022 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2023 (box_win, tui_gen_win_info::make_window)
2024 (tui_gen_win_info::make_visible): Update.
2025 (tui_delete_win): Remove.
2026 * tui/tui-winsource.c
2027 (tui_source_window_base::do_erase_source_content): Update.
2028 (tui_show_source_line, tui_source_window_base::update_tab_width)
2029 (tui_source_window_base::update_exec_info): Update.
2030 * tui/tui-data.h (struct curses_deleter): New.
2031 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2032 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2034 2019-10-09 Tom Tromey <tom@tromey.com>
2036 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2038 2019-10-09 Tom Tromey <tom@tromey.com>
2040 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2041 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2043 2019-10-09 Tom Tromey <tom@tromey.com>
2045 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2046 window height directly.
2047 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2049 * tui/tui-layout.c (tui_default_win_height): Remove.
2050 (tui_default_win_viewport_height): Remove.
2052 2019-10-09 Tom Tromey <tom@tromey.com>
2054 * tui/tui.h: Remove comments.
2056 2019-10-09 Tom de Vries <tdevries@suse.de>
2058 * python/lib/gdb/printer/bound_registers.py: Use
2059 '^builtin_type_bound128' as regexp argument for
2060 add_builtin_pretty_printer.
2062 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2064 * guile/guile.c (guile_extension_script_ops): Remove forward
2065 declaration and mark as static.
2066 (guile_script_ops): Likewise.
2067 (extension_language_guile): Move further down in the file so
2068 it can reference the definitions for guile_{extension_,}script_ops.
2070 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2072 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2073 except SORTL, DFLTCC, and KDSA.
2075 2019-10-08 Tom Tromey <tromey@adacore.com>
2077 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2078 (struct safe_symbol_file_add_args): Remove.
2080 2019-10-08 Tom Tromey <tromey@adacore.com>
2082 * windows-nat.c: Don't include buildsym-legacy.h.
2084 2019-10-08 Tom Tromey <tromey@adacore.com>
2086 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2088 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2090 * gdbtypes.c (overload_debug): Move comment to header.
2091 * gdbtypes.h (overload_debug): Declare.
2092 * valops.c: Remove declaration of overload_debug, instead
2095 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2097 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2099 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2101 * language.h (lang_frame_mismatch_warn): ... here. Also add
2103 * top.c (lang_frame_mismatch_warn): Remove declaration.
2104 (check_frame_language_change): Pass lang_frame_mismatch_warn
2107 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2109 * c-lang.h (vtbl_ptr_name): Declare.
2110 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2112 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2114 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2116 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2119 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2121 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2122 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2123 * ctfread.c: New file.
2124 * ctfread.h: New file.
2125 * elfread.c: Include ctfread.h.
2126 (struct elfinfo text_p): New member ctfsect.
2127 (elf_locate_sections): Mark CTF section.
2128 (elf_symfile_read): Call elfctf_build_psymtabs.
2129 * Makefile.in (LIBCTF): Add.
2132 (DIST): Add ctfread.c.
2134 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2136 * ctfread.c (struct nextfield): Renamed to ...
2137 (struct ctf_nextfield): ... this.
2138 (struct field_info): Renamed to ...
2139 (strut ctf_field_info): ... this.
2140 (attach_fields_to_type): Update for renamed structures.
2141 (ctf_add_member_cb): Likewise.
2142 (ctf_add_enum_member_cb): Likewise.
2143 (process_struct_members): Likewise.
2144 (process_enum_type): Likewise.
2146 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2148 * tracectf.h: Rename, was ctf.h.
2149 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2150 * tracefile.c: Likewise.
2151 * tracepoint.c: Remove unused include ctf.h.
2152 * mi/mi-main.c: Likewise.
2153 * Makefile.in Replace ctf.c with tracectf.c.
2155 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2157 * version.in: Change version number to "9.0.50.DATE-git".
2159 2019-10-03 Tom Tromey <tom@tromey.com>
2162 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2164 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2166 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2167 cp_search_name_hash.
2168 * NEWS: Add entry about nested function support.
2170 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2171 Andrew Burgess <andrew.burgess@embecosm.com>
2173 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2174 for nested static variables when searchin VAR_DOMAIN.
2175 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2176 global scope, update comment.
2177 (add_partial_subprogram): Call add_partial_subprogram recursively
2178 for nested subroutines when processinng Fortran.
2179 (load_partial_dies): Process the child entities of a subprogram
2180 when processing Fortran.
2181 (partial_die_parent_scope): Handle building scope
2182 for Fortran nested functions.
2183 (process_die): Record that nested functions have a scope.
2184 (new_symbol): Always record Fortran subprograms on the global
2186 (determine_prefix): How to build the prefix for Fortran
2189 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2191 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2192 have just sent the thread a SIGSTOP and are waiting for it to
2195 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2197 * btrace.c (btrace_add_pc): Remove whitespace before the template
2198 parameter in 'std::vector <...>'.
2199 (parse_xml_btrace_block): Likewise.
2200 (btrace_maint_decode_pt): Likewise.
2201 (btrace_maint_update_packets): Likewise.
2202 (btrace_maint_print_packets): Likewise.
2203 * btrace.h (struct btrace_maint_info): Likewise.
2204 * dwarf2read.c (struct type_unit_group): Likewise.
2205 (build_type_psymtabs_reader): Likewise.
2206 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2207 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2208 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2210 2019-10-03 Tom de Vries <tdevries@suse.de>
2212 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2213 the first line of the help text for set/show style metadata.
2215 2019-10-02 Tom Tromey <tromey@adacore.com>
2217 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2218 * gdbsupport/common-inferior.c: New file.
2219 * infcmd.c (startup_with_shell): Don't define.
2220 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2221 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2222 * inferior.h (startup_with_shell): Don't declare.
2224 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2226 * gdbsupport/gdb_assert.h: Include errors.h.
2227 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2229 2019-10-02 Tom Tromey <tromey@adacore.com>
2231 * NEWS: Add $_ada_exception entry.
2232 * ada-lang.c (struct ada_catchpoint): Add constructor.
2233 <m_kind>: New member.
2234 (allocate_location_exception, re_set_exception): Remove
2236 (should_stop_exception): Compute $_ada_exception.
2237 (check_status_exception, print_it_exception)
2238 (print_one_exception, print_mention_exception): Remove
2240 (allocate_location_catch_exception, re_set_catch_exception)
2241 (check_status_exception, print_it_catch_exception)
2242 (print_one_catch_exception, print_mention_catch_exception)
2243 (print_recreate_catch_exception)
2244 (allocate_location_catch_exception_unhandled)
2245 (re_set_catch_exception_unhandled)
2246 (check_status_exception, print_it_catch_exception_unhandled)
2247 (print_one_catch_exception_unhandled)
2248 (print_mention_catch_exception_unhandled)
2249 (print_recreate_catch_exception_unhandled)
2250 (allocate_location_catch_assert, re_set_catch_assert)
2251 (check_status_assert, print_it_catch_assert)
2252 (print_one_catch_assert, print_mention_catch_assert)
2253 (print_recreate_catch_assert)
2254 (allocate_location_catch_handlers, re_set_catch_handlers)
2255 (check_status_handlers, print_it_catch_handlers)
2256 (print_one_catch_handlers, print_mention_catch_handlers)
2257 (print_recreate_catch_handlers): Remove.
2258 (create_ada_exception_catchpoint): Update.
2259 (initialize_ada_catchpoint_ops): Update.
2261 2019-10-02 Tom Tromey <tromey@adacore.com>
2263 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2264 (create_excep_cond_exprs): Simplify exception string computation.
2265 (ada_exception_catchpoint_cond_string): Likewise.
2267 2019-10-02 Tom Tromey <tromey@adacore.com>
2269 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2270 * ada-lang.c (lesseq_defined_than): Handle
2272 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2274 (dwarf2_has_info): Likewise.
2275 (new_symbol): Set maybe_copied on symbol when
2277 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2279 <can_copy>: New member.
2280 * elfread.c (record_minimal_symbol): Set maybe_copied
2281 on symbol when appropriate.
2282 (elf_symfile_read): Update call to dwarf2_has_info.
2283 * minsyms.c (lookup_minimal_symbol_linkage): New
2285 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2286 * symtab.c (get_symbol_address, get_msymbol_address):
2288 * symtab.h (get_symbol_address, get_msymbol_address):
2290 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2292 (struct symbol, struct minimal_symbol) <maybe_copied>:
2295 2019-10-02 Tom Tromey <tromey@adacore.com>
2297 * source.c (struct current_source_location): New.
2298 (current_source_key): New global.
2299 (current_source_symtab, current_source_line)
2300 (current_source_pspace): Remove.
2301 (get_source_location): New function.
2302 (get_current_source_symtab_and_line)
2303 (set_default_source_symtab_and_line)
2304 (set_current_source_symtab_and_line)
2305 (clear_current_source_symtab_and_line, select_source_symtab)
2306 (info_source_command, print_source_lines_base)
2307 (info_line_command, search_command_helper, _initialize_source):
2310 2019-10-02 Tom Tromey <tromey@adacore.com>
2312 * source.c (select_source_symtab): Don't call
2313 decode_line_with_current_source.
2315 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2317 * symtab.c (lookup_global_symbol): Search global block.
2319 2019-10-02 Tom Tromey <tromey@adacore.com>
2321 * coffread.c (process_coff_symbol): Update.
2322 * dwarf2read.c (var_decode_location, new_symbol): Update.
2323 * mdebugread.c (parse_symbol): Update.
2324 * objfiles.c (relocate_one_symbol): Update.
2325 * stabsread.c (define_symbol, fix_common_block)
2326 (scan_file_globals): Update.
2327 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2328 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2329 * xcoffread.c (process_xcoff_symbol): Update.
2331 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2333 * MAINTAINERS: Update my email address.
2335 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2337 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2339 (build_type_psymtabs_reader): Update for std::vector.
2340 (build_type_psymtab_dependencies): Likewise.
2341 * dwarf2read.h: Remove use of DEF_VEC_P.
2342 (typedef sig_type_ptr): Delete.
2344 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2346 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2348 (btrace_maint_decode_pt): Likewise, and move allocation of the
2349 vector outside of the loop.
2350 (btrace_maint_update_packets): Update to handle change from VEC to
2352 (btrace_maint_print_packets): Likewise.
2353 (maint_info_btrace_cmd): Likewise.
2354 * btrace.h: Remove use of DEF_VEC_O.
2355 (typedef btrace_pt_packet_s): Delete.
2356 (struct btrace_maint_info) <packets>: Change fromm VEC to
2358 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2360 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2362 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2363 make accesses into the vector constant references.
2364 (btrace_add_pc): Update for std::vector.
2365 (btrace_stitch_bts): Likewise.
2366 (parse_xml_btrace_block): Likewise.
2367 (btrace_maint_update_packets): Likewise.
2368 (btrace_maint_print_packets): Likewise.
2369 (maint_info_btrace_cmd): Likewise.
2370 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2372 (btrace_data::empty): Likewise.
2373 (btrace_data_append): Likewise.
2374 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2375 (typedef btrace_block_s): Delete.
2376 (struct btrace_block): Add constructor.
2377 (struct btrace_data_bts) <blocks>: Change to std::vector.
2378 * nat/linux-btrace.c (perf_event_read_bts): Update for
2380 (linux_read_bts): Likewise.
2382 2019-10-01 Tom Tromey <tom@tromey.com>
2384 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2386 2019-10-01 Tom Tromey <tom@tromey.com>
2388 * stack.c (print_frame, info_frame_command_core): Use
2390 * linux-thread-db.c (try_thread_db_load_1)
2391 (try_thread_db_load_from_pdir_1): Use styled_string.
2392 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2393 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2394 (maybe_print_unsupported_script_warning)
2395 (maybe_print_script_not_found_warning): Use styled_string.
2396 * ada-lang.c (user_select_syms): Use styled_string.
2398 2019-10-01 Tom Tromey <tom@tromey.com>
2400 * p-lang.c (pascal_printstr): Use metadata style.
2401 * value.c (show_convenience): Use metadata style.
2402 * valprint.c (valprint_check_validity, val_print_optimized_out)
2403 (val_print_not_saved, val_print_unavailable)
2404 (val_print_invalid_address, generic_val_print, val_print)
2405 (value_check_printable, val_print_array_elements): Use metadata
2407 * ui-out.h (class ui_out) <field_fmt>: New overload.
2408 <do_field_fmt>: Add style parameter.
2409 * ui-out.c (ui_out::field_fmt): New overload.
2410 * typeprint.c (type_print_unknown_return_type)
2411 (val_print_not_allocated, val_print_not_associated): Use metadata
2413 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2415 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2416 * tracepoint.c (tvariables_info_1): Use metadata style.
2417 * stack.c (print_frame_arg, print_frame_info, print_frame)
2418 (info_frame_command_core): Use metadata style.
2419 * skip.c (info_skip_command): Use metadata style.
2420 * rust-lang.c (rust_print_enum): Use metadata style.
2421 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2423 * python/py-framefilter.c (py_print_single_arg): Use metadata
2425 * printcmd.c (do_one_display, print_variable_and_value): Use
2427 * p-valprint.c (pascal_val_print)
2428 (pascal_object_print_value_fields): Use metadata style.
2429 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2430 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2432 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2433 * m2-valprint.c (m2_print_long_set): Use metadata style.
2434 * m2-typeprint.c (m2_print_type): Use metadata style.
2435 * infcmd.c (print_return_value_1): Use metadata style.
2436 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2437 * f-valprint.c (info_common_command_for_block): Use metadata
2439 * f-typeprint.c (f_type_print_base): Use metadata style.
2440 * expprint.c (print_subexp_standard): Use metadata style.
2441 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2442 * cli/cli-style.h (class cli_style_option): Add constructor.
2443 (metadata_style): Declare.
2444 * cli/cli-style.c (metadata_style): New global.
2445 (_initialize_cli_style): Register metadata style.
2446 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2448 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2449 * c-typeprint.c (c_type_print_base_struct_union)
2450 (c_type_print_base_1): Use metadata style.
2451 * breakpoint.c (watchpoint_value_print)
2452 (print_one_breakpoint_location): Use metadata style.
2453 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2455 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2457 * ada-valprint.c (val_print_packed_array_elements, printstr)
2458 (print_field_values, ada_val_print_ref, ada_val_print): Use
2460 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2462 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2464 * ada-lang.c (user_select_syms): Use metadata style.
2466 2019-10-01 Tom Tromey <tom@tromey.com>
2468 * cli/cli-cmds.c (pwd_command): Style output.
2470 2019-10-01 Pedro Alves <palves@redhat.com>
2471 Tom Tromey <tom@tromey.com>
2473 * symtab.c (print_symbol_info): Use %ps.
2474 (print_msymbol_info): Use %ps.
2475 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2476 * printcmd.c (print_variable_and_value): Use %ps.
2477 * macrocmd.c (show_pp_source_pos): Use %ps.
2478 * infrun.c (print_exited_reason): Use ui_out::message.
2479 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2480 (describe_other_breakpoints): Use ui_out::message and new
2482 (say_where): Use new formats.
2483 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2486 2019-10-01 Pedro Alves <palves@redhat.com>
2487 Tom Tromey <tom@tromey.com>
2489 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2490 (test_gdb_formats): New function.
2491 (run_tests): Call it.
2492 (test_format_specifier): Update.
2493 * utils.h (fputs_filtered): Update comment.
2494 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2495 (fputs_styled_unfiltered): Declare.
2496 * utils.c (fputs_styled_unfiltered): New function.
2497 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2498 (vfprintf_filtered): Update.
2499 (vfprintf_unfiltered, vprintf_filtered): Update.
2500 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2501 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2502 disallow_ui_out_field>: New constants.
2503 (enum class field_kind): New.
2504 (struct base_field_s, struct signed_field_s): New.
2505 (signed_field): New function.
2506 (struct string_field_s): New.
2507 (string_field): New function.
2508 (struct styled_string_s): New.
2509 (styled_string): New function.
2510 (class ui_out) <message>: Add comment.
2511 <vmessage, call_do_message>: New methods.
2512 <do_message>: Add style parameter.
2513 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2515 (ui_out::message): Rewrite.
2516 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2518 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2519 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2520 gdb_extensions parameter.
2521 (class format_piece): Add parameter to constructor.
2522 (n_int_args): New field.
2523 * gdbsupport/format.c (format_pieces::format_pieces): Add
2524 gdb_extensions parameter. Handle '*'.
2525 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2526 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2527 vfprintf_styled_no_gdbfmt.
2528 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2529 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2531 * ui-style.h (struct ui_file_style) <ptr>: New method.
2533 2019-10-01 Tom Tromey <tom@tromey.com>
2535 * unittests/format_pieces-selftests.c: Update. Add final format.
2536 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2537 empty literal pieces.
2539 2019-10-01 Tom Tromey <tom@tromey.com>
2541 * ui-out.h (enum class ui_out_style_kind): Remove.
2542 (class ui_out) <field_string, field_stsream, do_field_string>:
2543 Change type of "style".
2544 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2545 (ui_out::field_string): Update.
2546 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2548 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2549 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2550 * stack.c (print_frame_arg, print_frame_info, print_frame):
2552 * source.c (print_source_lines_base): Update.
2553 * solib.c (info_sharedlibrary_command): Update.
2554 * skip.c (info_skip_command): Update.
2555 * record-btrace.c (btrace_call_history_src_line)
2556 (btrace_call_history): Update.
2557 * python/py-framefilter.c (py_print_frame): Update.
2558 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2560 * mi/mi-out.c (mi_ui_out::do_table_header)
2561 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2562 (mi_ui_out::do_field_string): Update.
2563 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2565 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2567 * cli-out.c (cli_ui_out::do_table_header)
2568 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2569 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2570 (cli_ui_out::do_field_fmt): Update.
2571 * breakpoint.c (print_breakpoint_location): Update.
2572 (update_static_tracepoint): Update.
2574 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2576 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2577 conversion of gdb_datadir.
2578 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2579 remove not needed c_str ().
2581 2019-09-30 Ali Tamur <tamur@google.com>
2583 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2584 (dwarf2_string_attr): Likewise.
2586 2019-09-30 Ali Tamur <tamur@google.com>
2588 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2589 (process_full_type_unit): Likewise.
2590 (dump_die_shallow): Likewise.
2591 (cu_debug_loc_section): Likewise.
2593 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2595 * minsyms.c (compare_minimal_symbols): Rename to...
2596 (minimal_symbol_is_less_than): ...this, and adjust to STL
2597 conventions (return bool, take arguments as references)
2598 (minimal_symbol_reader::install): Call std::sort instead
2601 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2603 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2605 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2606 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2608 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2610 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2611 * psympriv.h (add_psymbol_to_list): Move comment here and update
2614 2019-09-29 Tom de Vries <tdevries@suse.de>
2616 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2617 Use $tmpdir/$(basename "$output_file").dwz instead of
2618 "${output_file}.dwz".
2620 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2623 * hppa-linux-nat.c: Include gdbarch.h.
2625 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2627 * blockframe.c (find_pc_partial_function): Change return type to bool.
2628 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2629 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2630 (stub_gnu_ifunc_resolve_name): Likewise.
2631 * symtab.c (compare_filenames_for_search): Likewise.
2632 (compare_glob_filenames_for_search): Likewise.
2633 (matching_obj_sections): Likewise.
2634 (symbol_matches_domain): Likewise.
2635 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2636 (find_line_pc): Change return type to bool.
2637 (find_line_pc_range): Likewise.
2638 (producer_is_realview): Likewise.
2639 * symtab.h (symbol_matches_domain): Likewise.
2640 (find_pc_partial_function): Likewise.
2641 (find_pc_line_pc_range): Likewise.
2642 (in_gnu_ifunc_stub): Likewise.
2643 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2644 (find_line_pc): Likewise.
2645 (find_line_pc_range): Likewise.
2646 (matching_obj_sections): Likewise.
2647 (find_line_symtab): Change out parameter to bool.
2648 (producer_is_realview): Change return type to bool.
2649 (compare_filenames_for_search): Likewise.
2650 (compare_glob_filenames_for_search): Likewise.
2652 2019-09-26 Tom Tromey <tom@tromey.com>
2654 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2655 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2656 * gdb_usleep.h: Remove.
2657 * gdb_usleep.c: Remove.
2658 * utils.c: Don't include gdb_usleep.h.
2660 2019-09-26 Tom Tromey <tromey@adacore.com>
2662 * python/py-type.c (type_to_type_object): Call check_typedef
2665 2019-09-26 Tom Tromey <tom@tromey.com>
2667 * utils.h (initialize_utils): Don't declare.
2668 * top.c (gdb_init): Don't call initialize_utils.
2669 * utils.c (initialize_utils): Remove. Move contents...
2670 (_initialize_utils): ... here.
2672 2019-09-25 Tom Tromey <tom@tromey.com>
2674 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2675 * utils.h (make_hex_string): Don't declare.
2676 * utils.c (make_hex_string): Remove.
2678 2019-09-24 Tom de Vries <tdevries@suse.de>
2681 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2682 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2684 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2686 * NEWS: Mention new simulator port for PRU.
2688 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2690 * ada-exp.y (write_object_remaining): Update.
2691 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2692 and eliminate the static buffer.
2693 (ada_decode_symbol): Update.
2694 (ada_la_decode): Update.
2695 (ada_sniff_from_mangled_name): Update.
2696 (is_valid_name_for_wild_match): Update.
2697 (ada_lookup_name_info::matches): Update and simplify.
2698 (name_matches_regex): Update.
2699 (ada_add_global_exceptions): Update.
2700 * ada-lang.h (ada_decode): Update signature.
2701 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2702 * dwarf-index-write.c (debug_names::insert): Update.
2704 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2706 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2709 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2711 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2712 Change "nonzero" to "true" in documentation.
2714 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2716 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2717 (_initialize_darwin_solib): Don't set
2718 darwin_so_ops.lookup_lib_global_symbol.
2719 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2720 set_gdbarch_iterate_over_objfiles_in_search_order.
2721 (elf_lookup_lib_symbol): Rename to...
2722 (svr4_iterate_over_objfiles_in_search_order): this, and update
2723 to iterate semantics.
2724 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2725 * solib.c (solib_global_lookup): Remove.
2726 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2727 (solib_global_lookup): Remove.
2728 * symtab.c (lookup_global_or_static_symbol): Remove call to
2729 solib_global_lookup.
2731 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2733 * NEWS: Move entries about default MI version now being
2734 version 3, and about the GDB/MI fix for multi-location
2735 breakpoints to the "since GDB 8.3" section.
2737 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2741 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2743 * NEWS: Mention that Cell/B.E. debugging support was removed.
2744 * MAINTAINERS: Remove spu target.
2746 * config/djgpp/fnchange.lst: Remove entries for removed files.
2748 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2749 spu-multiarch.o, and spu-tdep.o.
2750 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2751 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2752 spu-multiarch.c, and spu-tdep.c.
2753 * spu-linux-nat.c: Remove file.
2754 * spu-multiarch.c: Remove file.
2755 * spu-tdep.c: Remove file.
2756 * spu-tdep.h: Remove file.
2757 * solib-spu.c: Remove file.
2758 * solib-spu.h: Remove file.
2760 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2761 * configure.nat (spu-linux): Remove.
2762 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2763 solib-multiarch.o from gdb_target_obs.
2766 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2768 (ppc_linux_no_features): Update.
2769 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2771 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2772 (tdesc_powerpc_cell64l): Likewise.
2773 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2774 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2776 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2777 Do not include "features/rs6000/powerpc-cell32l.c" or
2778 "features/rs6000/powerpc-cell64l.c".
2779 (ppc_linux_spu_section): Remove.
2780 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2781 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2782 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2783 (ppc_linux_spe_context_lookup): Remove.
2784 (ppc_linux_spe_context_inferior_created): Remove.
2785 (ppc_linux_spe_context_solib_loaded): Remove.
2786 (ppc_linux_spe_context_solib_unloaded): Remove.
2787 (ppc_linux_spe_context): Remove.
2788 (struct ppu2spu_cache): Remove.
2789 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2790 (struct ppu2spu_data): Remove.
2791 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2792 ppu2spu_unwind): Remove.
2793 (ppc_linux_init_abi): Remove Cell/B.E. support.
2794 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2796 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2797 (rs6000/powerpc-cell64l-expedite): Likewise
2798 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2799 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2800 rs6000/powerpc-cell64l.xml.
2801 * features/rs6000/powerpc-cell32l.xml: Remove.
2802 * features/rs6000/powerpc-cell64l.xml: Likewise.
2803 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2804 * features/rs6000/powerpc-cell64l.c: Likewise.
2805 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2806 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2807 * regformats/reg-spu.dat: Remove.
2809 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2810 * corelow.c (struct spuid_list): Remove.
2811 (add_to_spuid_list): Remove.
2812 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2813 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2814 (remote_protocol_features): Remove associated entries.
2815 (_initialize_remote): No longer initialize them.
2816 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2817 * linux-nat.c (SPUFS_MAGIC): Remove.
2818 (linux_proc_xfer_spu): Remove.
2819 (spu_enumerate_spu_ids): Remove.
2820 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2821 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2822 (linux_make_corefile_notes): No longer call it.
2824 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2825 (cooked_write_test): Likewise.
2827 2019-09-20 Tom Tromey <tom@tromey.com>
2829 * NEWS: Mention case-sensitivity of TUI commands.
2830 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2831 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2832 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2834 2019-09-20 Tom Tromey <tom@tromey.com>
2836 * tui/tui-source.c (tui_source_window::set_contents): Use
2837 make_unique_xstrdup.
2838 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2839 make_unique_xstrdup.
2841 2019-09-20 Tom Tromey <tom@tromey.com>
2843 * tui/tui-data.c: Remove separator comments.
2844 * tui/tui-layout.c: Remove separator comments.
2845 * tui/tui-win.c: Remove separator comments.
2846 * tui/tui-wingeneral.c: Remove separator comments.
2848 2019-09-20 Tom Tromey <tom@tromey.com>
2850 * tui/tui.h (strcat_to_buf): Don't declare.
2851 * tui/tui.c (strcat_to_buf): Remove.
2853 2019-09-20 Tom Tromey <tom@tromey.com>
2855 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2857 * tui/tui-source.c (tui_source_window::set_contents)
2858 (tui_source_window::location_matches_p)
2859 (tui_source_window::maybe_update): Update.
2861 2019-09-20 Tom Tromey <tom@tromey.com>
2863 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2865 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2867 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2868 (tui_data_window::line_from_reg_element_no)
2869 (tui_data_window::first_reg_element_no_inline)
2870 (tui_data_window::show_registers)
2871 (tui_data_window::show_register_group)
2872 (tui_data_window::display_registers_from)
2873 (tui_data_window::display_registers_from_line)
2874 (tui_data_window::first_data_item_displayed)
2875 (tui_data_window::delete_data_content_windows)
2876 (tui_data_window::erase_data_content)
2877 (tui_data_window::do_scroll_vertical)
2878 (tui_data_window::refresh_window)
2879 (tui_data_window::check_register_values): Update.
2881 2019-09-20 Tom Tromey <tom@tromey.com>
2883 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2884 (struct tui_locator_window) <full_name, proc_name>: Now
2886 * tui/tui-stack.c (tui_locator_window::make_status_line)
2887 (tui_locator_window::set_locator_fullname)
2888 (tui_locator_window::set_locator_info): Update.
2889 * tui/tui-source.c (tui_source_window::set_contents)
2890 (tui_source_window::showing_source_p): Update.
2892 2019-09-20 Tom Tromey <tom@tromey.com>
2894 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2895 Don't call tui_locator_win_info_ptr.
2897 2019-09-20 Tom Tromey <tom@tromey.com>
2899 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2901 2019-09-20 Tom Tromey <tom@tromey.com>
2903 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2905 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2906 * tui/tui-layout.c (show_source_disasm_command, show_data)
2907 (show_source_or_disasm_and_command): Use 1 as height for locator.
2909 2019-09-20 Tom Tromey <tom@tromey.com>
2911 * tui/tui.c (tui_enable): Update.
2912 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2914 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2916 * tui/tui-data.c (win_resized): Now bool.
2917 (tui_win_resized): Return bool.
2918 (tui_set_win_resized_to): Accept a bool.
2920 2019-09-20 Tom Tromey <tom@tromey.com>
2922 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2923 Change type of "refresh_values_only".
2924 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2925 type of "refresh_values_only".
2927 2019-09-20 Tom Tromey <tom@tromey.com>
2929 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2931 (tui_disassemble): Add "pos" parameter.
2932 (tui_disasm_window::set_contents): Simplify.
2934 2019-09-20 Tom Tromey <tom@tromey.com>
2936 * tui/tui-winsource.h (struct tui_source_window_base)
2937 <show_source_content>: Now private.
2938 * tui/tui-winsource.c
2939 (tui_source_window_base::show_source_content): Don't handle empty
2942 2019-09-20 Tom Tromey <tom@tromey.com>
2944 * tui/tui-layout.c (show_source_disasm_command)
2945 (show_source_or_disasm_and_command): Don't call
2946 show_source_content.
2948 2019-09-20 Tom Tromey <tom@tromey.com>
2950 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2952 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2953 from tui_make_status_line.
2954 (tui_locator_window::rerender): Update.
2956 2019-09-20 Tom Tromey <tom@tromey.com>
2958 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2959 (tui_locator_window::rerender): Update.
2961 2019-09-20 Tom Tromey <tom@tromey.com>
2963 * tui/tui-winsource.h (struct tui_source_window_base)
2964 <~tui_source_window_base>: Don't declare.
2966 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2967 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2969 * tui/tui-source.c (tui_source_window::set_contents): Update.
2970 (tui_source_window::location_matches_p)
2971 (tui_source_window::maybe_update): Update.
2973 2019-09-20 Tom Tromey <tom@tromey.com>
2975 * tui/tui-winsource.h (~tui_source_element): Remove.
2976 (tui_source_element): Update.
2977 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2978 * tui/tui-winsource.c (tui_show_source_line): Update.
2979 * tui/tui-source.c (tui_source_window::set_contents): Update.
2980 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2982 2019-09-20 Tom Tromey <tom@tromey.com>
2984 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2986 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2987 tui_clear_source_windows_detail.
2988 * tui/tui-winsource.h (struct tui_source_window_base)
2989 <clear_detail>: Don't declare.
2990 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2992 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2994 2019-09-20 Tom Tromey <tromey@adacore.com>
2997 * block.c (contained_in): Fix final return value.
2999 2019-09-20 Alan Modra <amodra@gmail.com>
3001 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3002 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3003 (read_indirect_string_from_dwz): Use bfd accessor.
3004 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3005 * machoread.c (macho_symfile_read_all_oso): Likewise.
3006 * solib.c (solib_bfd_open): Likewise.
3008 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3010 * eval.c: Move declaration of overload_resolution to...
3013 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3015 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3016 * arm-linux-tdep.c: Likewise.
3017 * arm-nbsd-nat.c: Likewise.
3018 * arm-tdep.h: Declare arm_apcs_32.
3019 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3021 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3023 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3024 * dwarf2read.h: Declare dwarf_always_disassemble.
3026 2019-09-19 Tom de Vries <tdevries@suse.de>
3029 * source-cache.c (source_cache::ensure): Catch exception thrown during
3030 construction of the highlighter.
3032 2019-09-18 Alan Modra <amodra@gmail.com>
3034 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3035 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3036 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3037 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3038 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3039 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3040 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3041 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3042 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3043 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3044 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3045 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3046 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3047 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3048 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3049 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3050 * mi/mi-interp.c: Update throughout for bfd section macro and
3052 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3053 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3055 2019-09-18 Tom Tromey <tom@tromey.com>
3058 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3060 (tui_enable): Do not call rl_initialize.
3062 2019-09-18 Christian Groessler <chris@groessler.org>
3064 * alpha-linux-nat.c: Include gdbarch.h.
3066 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3068 * ui-file.c: Include cli/cli-style.h.
3069 (term_cli_styling): Remove cli_styling declaration.
3071 2019-09-18 Alan Modra <amodra@gmail.com>
3073 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3074 to bfd_asymbol_section.
3076 2019-09-18 Alan Modra <amodra@gmail.com>
3078 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3079 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3080 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3082 2019-09-18 Alan Modra <amodra@gmail.com>
3084 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3085 * spu-linux-nat.c (spu_bfd_open): Likewise.
3087 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3089 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3090 to bool to match definition in dwarf2read.c.
3092 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3094 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3095 (print_signatures): Likewise.
3096 (trust_pad_over_xvs): Likewise.
3097 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3098 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3099 * arm-linux-nat.c (arm_apcs_32): Likewise.
3100 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3101 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3102 * arm-tdep.c (arm_debug): Likewise.
3103 (arm_apcs_32): Likewise.
3104 * auto-load.c (debug_auto_load): Likewise.
3105 (auto_load_gdb_scripts): Likewise.
3106 (global_auto_load): Likewise.
3107 (auto_load_local_gdbinit): Likewise.
3108 (auto_load_local_gdbinit_loaded): Likewise.
3109 * auto-load.h (global_auto_load): Likewise.
3110 (auto_load_local_gdbinit): Likewise.
3111 (auto_load_local_gdbinit_loaded): Likewise.
3112 * breakpoint.c (disconnected_dprintf): Likewise.
3113 (breakpoint_proceeded): Likewise.
3114 (automatic_hardware_breakpoints): Likewise.
3115 (always_inserted_mode): Likewise.
3116 (target_exact_watchpoints): Likewise.
3117 (_initialize_breakpoint): Update.
3118 * breakpoint.h (target_exact_watchpoints): Change to bool.
3119 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3120 * cli/cli-cmds.c (trace_commands): Likewise.
3121 * cli/cli-cmds.h (trace_commands): Likewise.
3122 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3124 * cli/cli-logging.c (logging_overwrite): Change to bool.
3125 (logging_redirect): Likewise.
3126 (debug_redirect): Likewise.
3127 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3128 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3130 <boolean_option_def>: Update.
3131 (struct flag_option_def): Change default type of Context to bool
3133 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3134 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3135 (get_setshow_command_value_string): Likewise.
3136 * cli/cli-style.c (cli_styling): Change to bool.
3137 (source_styling): Likewise.
3138 * cli/cli-style.h (source_styling): Likewise.
3139 (cli_styling): Likewise.
3140 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3142 * command.h (var_types): Update comment.
3143 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3144 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3146 (debug_compile_cplus_scopes): Likewise.
3147 * compile/compile-internal.h (compile_debug): Likewise.
3148 * compile/compile.c (compile_debug): Likewise.
3149 (struct compile_options) <raw>: Likewise.
3150 * cp-support.c (catch_demangler_crashes): Likewise.
3151 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3152 (usr_cmd_cris_dwarf2_cfi): Likewise.
3153 * csky-tdep.c (csky_debug): Likewise.
3154 * darwin-nat.c (enable_mach_exceptions): Likewise.
3155 * dcache.c (dcache_enabled_p): Likewise.
3156 * defs.h (info_verbose): Likewise.
3157 * demangle.c (demangle): Likewise.
3158 (asm_demangle): Likewise.
3159 * dwarf-index-cache.c (debug_index_cache): Likewise.
3160 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3161 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3162 * dwarf2read.c (check_physname): Likewise.
3163 (use_deprecated_index_sections): Likewise.
3164 (dwarf_always_disassemble): Likewise.
3165 * eval.c (overload_resolution): Likewise.
3166 * event-top.c (set_editing_cmd_var): Likewise.
3167 (exec_done_display_p): Likewise.
3168 * event-top.h (set_editing_cmd_var): Likewise.
3169 (exec_done_display_p): Likewise.
3170 * exec.c (write_files): Likewise.
3171 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3172 (debug_fbsd_nat): Likewise.
3173 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3175 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3176 <backtrace_past_entry> Likewise.
3177 * gdb-demangle.h (demangle): Likewise.
3178 (asm_demangle): Likewise.
3179 * gdb_bfd.c (bfd_sharing): Likewise.
3180 * gdbcore.h (write_files): Likewise.
3181 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3182 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3183 * gdbthread.h (print_thread_events): Likewise.
3184 * gdbtypes.c (opaque_type_resolution): Likewise.
3185 (strict_type_checking): Likewise.
3186 * gnu-nat.c (gnu_debug_flag): Likewise.
3187 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3188 * guile/scm-param.c (pascm_variable): Add boolval.
3189 (add_setshow_generic): Update.
3190 (pascm_param_value): Update.
3191 (pascm_set_param_value_x): Update.
3192 * hppa-tdep.c (hppa_debug): Change to bool..
3193 * infcall.c (may_call_functions_p): Likewise.
3194 (coerce_float_to_double_p): Likewise.
3195 (unwind_on_signal_p): Likewise.
3196 (unwind_on_terminating_exception_p): Likewise.
3197 * infcmd.c (startup_with_shell): Likewise.
3198 * inferior.c (print_inferior_events): Likewise.
3199 * inferior.h (startup_with_shell): Likewise.
3200 (print_inferior_events): Likewise.
3201 * infrun.c (step_stop_if_no_debug): Likewise.
3202 (detach_fork): Likewise.
3203 (debug_displaced): Likewise.
3204 (disable_randomization): Likewise.
3205 (non_stop): Likewise.
3206 (non_stop_1): Likewise.
3207 (observer_mode): Likewise.
3208 (observer_mode_1): Likewise.
3209 (set_observer_mode): Update.
3210 (sched_multi): Change to bool.
3211 * infrun.h (debug_displaced): Likewise.
3212 (sched_multi): Likewise.
3213 (step_stop_if_no_debug): Likewise.
3214 (non_stop): Likewise.
3215 (disable_randomization): Likewise.
3216 * linux-tdep.c (use_coredump_filter): Likewise.
3217 (dump_excluded_mappings): Likewise.
3218 * linux-thread-db.c (auto_load_thread_db): Likewise.
3219 (check_thread_db_on_load): Likewise.
3220 * main.c (captured_main_1): Update.
3221 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3222 xx2_opt, boolean_opt>: Change to bool.
3223 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3224 * maint.c (maintenance_profile_p): Likewise.
3225 (per_command_time): Likewise.
3226 (per_command_space): Likewise.
3227 (per_command_symtab): Likewise.
3228 * memattr.c (inaccessible_by_default): Likewise.
3229 * mi/mi-main.c (mi_async): Likewise.
3230 (mi_async_1): Likewise.
3231 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3232 * nat/fork-inferior.h (startup_with_shell): Likewise.
3233 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3234 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3235 * nios2-tdep.c (nios2_debug): Likewise.
3236 * or1k-tdep.c (or1k_debug): Likewise.
3237 * parse.c (parser_debug): Likewise.
3238 * parser-defs.h (parser_debug): Likewise.
3239 * printcmd.c (print_symbol_filename): Likewise.
3240 * proc-api.c (procfs_trace): Likewise.
3241 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3242 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3243 (set_parameter_value): Update.
3244 (add_setshow_generic): Update.
3245 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3247 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3249 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3250 * record-btrace.c (record_btrace_target::store_registers): Update.
3251 * record-full.c (record_full_memory_query): Change to bool.
3252 (record_full_stop_at_limit): Likewise.
3253 * record-full.h (record_full_memory_query): Likewise.
3254 * remote-notif.c (notif_debug): Likewise.
3255 * remote-notif.h (notif_debug): Likewise.
3256 * remote.c (use_range_stepping): Likewise.
3257 (interrupt_on_connect): Likewise.
3258 (remote_break): Likewise.
3259 * ser-tcp.c (tcp_auto_retry): Likewise.
3260 * ser-unix.c (serial_hwflow): Likewise.
3261 * skip.c (debug_skip): Likewise.
3262 * solib-aix.c (solib_aix_debug): Likewise.
3263 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3264 (spu_auto_flush_cache_p): Likewise.
3265 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3267 (struct info_print_options) <quiet>: Likewise.
3268 * symfile-debug.c (debug_symfile): Likewise.
3269 * symfile.c (auto_solib_add): Likewise.
3270 (separate_debug_file_debug): Likewise.
3271 * symfile.h (auto_solib_add): Likewise.
3272 (separate_debug_file_debug): Likewise.
3273 * symtab.c (basenames_may_differ): Likewise.
3274 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3275 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3276 (struct info_types_options) <quiet>: Likewise.
3277 * symtab.h (demangle): Likewise.
3278 (basenames_may_differ): Likewise.
3279 * target-dcache.c (stack_cache_enabled_1): Likewise.
3280 (code_cache_enabled_1): Likewise.
3281 * target.c (trust_readonly): Likewise.
3282 (may_write_registers): Likewise.
3283 (may_write_memory): Likewise.
3284 (may_insert_breakpoints): Likewise.
3285 (may_insert_tracepoints): Likewise.
3286 (may_insert_fast_tracepoints): Likewise.
3287 (may_stop): Likewise.
3288 (auto_connect_native_target): Likewise.
3289 (target_stop_and_wait): Update.
3290 (target_async_permitted): Change to bool.
3291 (target_async_permitted_1): Likewise.
3292 (may_write_registers_1): Likewise.
3293 (may_write_memory_1): Likewise.
3294 (may_insert_breakpoints_1): Likewise.
3295 (may_insert_tracepoints_1): Likewise.
3296 (may_insert_fast_tracepoints_1): Likewise.
3297 (may_stop_1): Likewise.
3298 * target.h (target_async_permitted): Likewise.
3299 (may_write_registers): Likewise.
3300 (may_write_memory): Likewise.
3301 (may_insert_breakpoints): Likewise.
3302 (may_insert_tracepoints): Likewise.
3303 (may_insert_fast_tracepoints): Likewise.
3304 (may_stop): Likewise.
3305 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3306 (make_thread_apply_all_options_def_group): Change argument from int*
3308 (thread_apply_all_command): Update.
3309 (print_thread_events): Change to bool.
3310 * top.c (confirm): Likewise.
3311 (command_editing_p): Likewise.
3312 (history_expansion_p): Likewise.
3313 (write_history_p): Likewise.
3314 (info_verbose): Likewise.
3315 * top.h (confirm): Likewise.
3316 (history_expansion_p): Likewise.
3317 * tracepoint.c (disconnected_tracing): Likewise.
3318 (circular_trace_buffer): Likewise.
3319 * typeprint.c (print_methods): Likewise.
3320 (print_typedefs): Likewise.
3321 * utils.c (debug_timestamp): Likewise.
3322 (sevenbit_strings): Likewise.
3323 (pagination_enabled): Likewise.
3324 * utils.h (sevenbit_strings): Likewise.
3325 (pagination_enabled): Likewise.
3326 * valops.c (overload_resolution): Likewise.
3327 * valprint.h (struct value_print_options) <prettyformat_arrays,
3328 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3329 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3330 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3332 * windows-nat.c (new_console): Likewise.
3333 (cygwin_exceptions): Likewise.
3334 (new_group): Likewise.
3335 (debug_exec): Likewise.
3336 (debug_events): Likewise.
3337 (debug_memory): Likewise.
3338 (debug_exceptions): Likewise.
3339 (useshell): Likewise.
3340 * windows-tdep.c (maint_display_all_tib): Likewise.
3341 * xml-support.c (debug_xml): Likewise.
3343 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3345 * source.c (prepare_path_for_appending): New function.
3346 (openp): Make use of new function.
3347 (find_and_open_source): Search for the compilation directory and
3348 source file as a relative path beneath the directory search path.
3350 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3352 * source-cache.c (source_cache::get_line_charpos): Catch
3353 exceptions and return false, this matches the behaviour documented
3356 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3358 * ada-tasks.c (info_task): Remove quoting of the task's name.
3360 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3362 * symfile.c (auto_solib_add): Replace comment with a reference
3365 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3367 * NEWS: Mention that gdb can now be compiled with Python 3
3370 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3372 * maint.c (maint_print_section_data::maint_print_section_data):
3373 Force use of 'float log10 (float)' by casting the argument to
3376 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3378 * maint.c: Add 'cmath' include.
3379 (struct maint_print_section_data): New structure.
3380 (print_section_index): New function.
3381 (print_bfd_section_info): Add header comment, small whitespace
3382 cleanup, and update to call new print_section_index function.
3383 (print_objfile_section_info): Likewise.
3384 (maint_obj_section_from_bfd_section): New function.
3385 (print_bfd_section_info_maybe_relocated): New function.
3386 (maintenance_info_sections): Add header comment, always use
3387 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3389 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3391 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3392 inner scope, add check that the objfile has psymtabs before
3393 checking psymtabs_addrmap.
3394 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3396 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3398 * NEWS: Announce that Ada task names are now shown at more places,
3399 and between quotes (except in info task output).
3400 * gdb/ada-tasks.c (task_to_str): New function.
3401 (display_current_task_id): Call task_to_str.
3402 (task_command_1): Likewise.
3403 (print_ada_task_info): In non-mi mode, Properly align headers and data
3404 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3406 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3408 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3409 prstatus.pr_lwp.pr_info instead of making it up.
3411 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3413 * auto-load.c (auto_load_expand_dir_vars): Update.
3414 * defs.h (gdb_datadir): Change to std::string.
3415 (python_libdir): Likewise.
3416 (relocate_gdb_directory): Change return type to std::string.
3417 * guile/guile.c (gdbscm_data_directory): Update.
3418 (initialize_scheme_side): Update.
3419 * jit.c (jit_reader_dir): Change to std::string.
3420 (jit_reader_load_command): Update.
3421 * main.c (gdb_datadir): Change to std::string.
3422 (python_libdir): Likewise.
3423 (set_gdb_data_directory): Update.
3424 (relocate_path): Change to return std::string.
3425 (relocate_gdb_directory): Change to return std::string.
3426 (relocate_gdbinit_path_maybe_in_datadir): Update.
3427 (captured_main_1): Update.
3428 * python/python.c (do_start_initialization): Update.
3429 * top.c (show_gdb_datadir): Update.
3430 * xml-syscall.c (xml_init_syscalls_info): Update.
3431 (init_syscalls_info): Update.
3433 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3435 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3436 out of get_init_files.
3437 (get_init_files): Update.
3439 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3441 * main.c (get_init_files): Change to use std::string.
3442 (captured_main_1): Update.
3443 (print_gdb_help): Update.
3445 2019-09-11 Ali Tamur <tamur@google.com>
3447 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3450 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3452 * dbxread.c (read_dbx_symtab): Update.
3453 * dwarf2read.c (load_partial_dies): Update.
3454 * mdebugread.c (parse_partial_symbols): Update.
3455 (handle_psymbol_enumerators): Update.
3456 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3457 * psymtab.c (add_psymbol_to_bcache): Likewise.
3458 (add_psymbol_to_list): Likewise.
3459 * symtab.c (symbol_set_names): Likewise.
3460 * symtab.h (symbol_set_names): Likewise.
3461 * xcoffread.c (scan_xcoff_symtab): Update.
3463 2019-09-11 Tom Tromey <tom@tromey.com>
3465 * symfile-mem.c (symbol_file_add_from_memory): Use
3467 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3468 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3470 2019-09-10 Tom Tromey <tromey@adacore.com>
3472 * dwarf-index-write.c (write_psymbols): Extend error message.
3473 (debug_names::insert): Add Ada code.
3474 (debug_names::write_psymbols): Remove Ada check.
3475 (debug_names) <m_string_obstack>: New member.
3476 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3477 (gdb_index_symbol_name_matcher::matches): Remove.
3478 (mapped_index_base::find_name_components_bounds): Add "lang"
3480 (mapped_index_base::build_name_components): Also split names
3481 according to Ada syntax.
3482 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3483 type of "match_callback".
3484 (check_match, check_find_bounds_finds)
3485 (dw2_expand_symtabs_matching): Update.
3486 (dw2_debug_names_iterator): Add new constructor.
3487 (dw2_debug_names_map_matching_symbols): New function.
3488 (dw2_debug_names_expand_symtabs_matching): Update.
3489 (dwarf2_debug_names_functions): Use
3490 dw2_debug_names_map_matching_symbols.
3492 2019-09-10 Tom Tromey <tromey@adacore.com>
3494 * dwarf2read.c (dw2_get_file_names_reader): Add the
3495 CU's file name to the results.
3497 2019-09-10 Tom Tromey <tromey@adacore.com>
3499 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3500 map_matching_symbols. Update.
3501 * dwarf2read.c (dw2_map_matching_symbols): Update.
3502 * psymtab.c (match_partial_symbol): Change type; update.
3503 (psym_map_matching_symbols): Likewise.
3504 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3506 * symfile.h (struct quick_symbol_functions)
3507 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3510 2019-09-10 Tom Tromey <tromey@adacore.com>
3512 * psymtab.c (map_block): Remove.
3513 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3514 * symtab.c (iterate_over_symbols_terminated): New function.
3515 * symtab.c (iterate_over_symbols_terminated): Declare.
3517 2019-09-10 Tom Tromey <tromey@adacore.com>
3519 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3520 * language.h (struct language_defn) <la_iterate_over_symbols>:
3522 * symtab.c (iterate_over_symbols): Return bool.
3523 * symtab.h (iterate_over_symbols): Return bool.
3525 2019-09-10 Tom Tromey <tromey@adacore.com>
3527 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3528 (add_nonlocal_symbols): Update.
3529 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3530 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3531 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3532 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3533 Change type of "callback". Remove "data".
3536 2019-09-09 Ali Tamur <tamur@google.com>
3538 * dwarf2read.c (comp_unit_head): Update comment.
3539 (dwarf2_dwo_name): New function declaration.
3540 (dwarf_unit_type_name): New function declaration.
3541 (read_comp_unit_head): Add support for new compilation units,
3542 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3543 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3544 (currently named as "signature") in their header. Also clarify error
3546 (lookup_dwo_id): New function. Returns the dwo id of the given
3548 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3549 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3551 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3552 (dwarf2_dwo_name): Get the dwo name if present.
3553 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3556 2019-09-09 Tom Tromey <tom@tromey.com>
3558 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3560 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3562 * python/python.c (do_start_initialization): Make progname_copy static,
3563 to avoid a leak report.
3565 2019-09-08 Tom Tromey <tom@tromey.com>
3567 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3569 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3571 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3572 Change type to gdb::optional<block_enum>.
3573 (dw2_symtab_iter_init): Change block_index parameter type
3574 to gdb::optional<block_enum>.
3575 (dw2_lookup_symbol): Change block_index parameter
3576 type to block_enum.c
3577 (dw2_debug_names_lookup_symbol): Likewise.
3578 * psymtab.c (psym_lookup_symbol): Likewise.
3579 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3580 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3583 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3585 * defs.h (relocate_gdb_directory): Change int to bool in
3586 signature and rename flag to relocatable.
3587 * main.c (relocate_path): Likewise.
3588 (relocate_gdb_directory): Likewise.
3590 2019-09-06 Alan Modra <amodra@gmail.com>
3592 * coffread.c (coff_symfile_read): Constify filename variable.
3593 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3594 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3595 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3596 * solib.c (reload_shared_libraries_1): Likewise.
3597 * symfile.c (reread_symbols): Likewise.
3598 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3599 * solib-darwin.c (darwin_bfd_open): Likewise.
3600 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3602 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3604 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3605 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3607 2019-09-03 Tom Tromey <tromey@adacore.com>
3609 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3611 (has_negatives): Unbias a range type bound.
3612 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3613 * gdbtypes.c (operator==): Handle new field.
3614 (create_range_type): Add "bias" parameter.
3615 (create_static_range_type, resolve_dynamic_range): Update.
3616 * gdbtypes.h (struct range_bounds) <bias>: New member.
3617 (create_range_type): Add bias parameter.
3618 * printcmd.c (print_scalar_formatted): Unbias range types.
3619 * value.c (unpack_long): Unbias range types.
3620 (pack_long): Bias range types.
3622 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3624 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3627 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3629 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3630 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3631 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3632 (compile_probe_arg): Likewise.
3633 * probe.h (get_argument_count): Likewise.
3634 * solib-svr4.c (solib_event_probe_action): Likewise.
3635 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3637 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3639 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3641 (svr4_create_solib_event_breakpoints): ...from here.
3643 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3645 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3646 suffix from warning message.
3648 2019-08-30 Tom Tromey <tom@tromey.com>
3650 * tui/tui-winsource.h (struct tui_source_window_base)
3651 <refresh_all>: Don't declare.
3652 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3654 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3655 tui_show_locator_content.
3656 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3658 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3659 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3662 2019-08-30 Tom Tromey <tom@tromey.com>
3664 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3666 2019-08-30 Tom Tromey <tom@tromey.com>
3668 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3669 Remove unnecessary forward declarations.
3671 2019-08-30 Tom Tromey <tom@tromey.com>
3673 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3675 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3676 tui_show_locator_content.
3678 2019-08-30 Tom Tromey <tom@tromey.com>
3680 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3681 (tui_locator_window::rerender): Rewrite using body of previous
3682 tui_show_locator_content.
3684 2019-08-30 Tom Tromey <tom@tromey.com>
3686 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3687 set_locator_fullname>: New methods.
3688 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3689 Rename from tui_set_locator_fullname.
3690 (tui_locator_window::set_locator_info): Rename from
3691 tui_set_locator_info. Return bool.
3692 (tui_update_locator_fullname, tui_show_frame_info): Update.
3694 2019-08-30 Tom Tromey <tom@tromey.com>
3696 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3698 2019-08-30 Tom Tromey <tom@tromey.com>
3700 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3703 2019-08-30 Tom Tromey <tom@tromey.com>
3705 * tui/tui-wingeneral.c (box_win): Assume win_info and
3706 win_info->handle cannot be NULL.
3708 2019-08-30 Tom Tromey <tom@tromey.com>
3710 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3711 refresh_window>: Declare.
3712 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3714 (tui_data_item_window::rerender): Rename from
3715 tui_display_register.
3716 (tui_data_item_window::refresh_window): New method.
3717 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3720 2019-08-30 Tom Tromey <tom@tromey.com>
3722 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3723 regs_column_count, current_group>: Move later. Now private.
3724 <get_current_group>: New method.
3725 * tui/tui-regs.c (tui_reg_command): Update.
3726 * tui/tui-layout.c (tui_set_layout): Update.
3728 2019-08-30 Tom Tromey <tom@tromey.com>
3730 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3731 (tui_data_window::rerender): Don't call
3732 check_and_display_highlight_if_needed.
3733 (tui_data_window::refresh_all): Remove call to
3736 2019-08-30 Tom Tromey <tom@tromey.com>
3738 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3739 (tui_data_window::display_registers_from)
3740 (tui_data_window::display_reg_element_at_line)
3741 (tui_data_window::display_registers_from_line): Remove checks of
3744 2019-08-30 Tom Tromey <tom@tromey.com>
3746 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3748 * tui/tui-regs.c (tui_data_window::show_registers): Call
3750 (tui_data_window::rerender): Rename from display_all_data.
3751 (tui_data_window::rerender): Remove old implementation.
3753 2019-08-30 Tom Tromey <tom@tromey.com>
3755 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3757 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3759 2019-08-29 Bernhard Wodok <barto@gmx.net>
3760 Sergio Durigan Junior <sergiodj@redhat.com>
3763 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3765 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3767 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3768 when searching for types.
3770 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3772 * f-lang.c (f_language_defn): Use f_print_typedef.
3773 * f-lang.h (f_print_typedef): Declare.
3774 * f-typeprint.c (f_print_typedef): Define.
3776 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3778 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3780 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3782 * cli/cli-utils.c (info_print_options_defs): Delete.
3783 (make_info_print_options_def_group): Delete.
3784 (extract_info_print_options): Delete.
3785 (info_print_command_completer): Delete.
3786 (info_print_args_help): Add extra parameter, and optionally
3787 include text about -n flag.
3788 * cli/cli-utils.h (struct info_print_options): Delete.
3789 (extract_info_print_options): Delete declaration.
3790 (info_print_command_completer): Delete declaration.
3791 (info_print_args_help): Add extra parameter, extend header
3793 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3795 * stack.c (struct info_print_options): New type.
3796 (info_print_options_defs): New file scoped variable.
3797 (make_info_print_options_def_group): New static function.
3798 (info_print_command_completer): New static function.
3799 (info_locals_command): Update to use new local functions.
3800 (info_args_command): Likewise.
3801 (_initialize_stack): Add extra parameter to calls to
3802 info_print_args_help.
3803 * symtab.c (search_symbols): Add extra parameter, use this to
3804 possibly excluse non-debug symbols.
3805 (symtab_symbol_info): Add extra parameter, which is passed on to
3807 (struct info_print_options): New type.
3808 (info_print_options_defs): New file scoped variable.
3809 (make_info_print_options_def_group): New static function.
3810 (info_print_command_completer): New static function.
3811 (info_variables_command): Update to use local functions, and pass
3812 extra parameter through to symtab_symbol_info.
3813 (info_functions_command): Likewise.
3814 (info_types_command): Pass additional argument through to
3816 (rbreak_command): Pass extra argument to search_symbols.
3817 (_initialize_symtab): Add extra arguments for calls to
3818 info_print_args_help, and update help text for 'info variables',
3819 'whereis', and 'info functions' commands.
3820 * symtab.h (search_symbols): Add extra argument to declaration.
3821 * NEWS: Mention new flags.
3823 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3825 * symtab.c (lookup_static_symbol): Call the new function (and move
3826 it down to be next to lookup_global_symbol).
3827 (struct global_sym_lookup_data): Add block_enum member and rename to...
3828 (struct global_or_static_sym_lookup_data): ...this.
3829 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3830 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3831 (lookup_symbol_global_or_static_iterator_cb): ...this.
3832 (lookup_global_or_static_symbol): New function.
3833 (lookup_global_symbol): Call new function.
3835 2019-08-26 Tom de Vries <tdevries@suse.de>
3838 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3839 when pc_probe.prob == NULL.
3841 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3843 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3844 variable symbol_linkage to symbol_linkage_.
3846 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3848 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3849 represent whether the symbol is static, dynamic, or we don't
3852 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3854 * gdb/rx-tdep.c (rx_register_names): New.
3855 (rx_register_name): Delete.
3856 (rx_psw_type): Delete.
3857 (rx_fpsw_type): Delete.
3858 (rx_register_type): Delete.
3859 (rx_gdbarch_init): Convert target-descriptions.
3860 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3861 * gdb/features/Makefile: Add rx.xml.
3862 * gdb/features/rx.xml: New.
3863 * gdb/features/rx.c: Generated.
3864 * gdb/NEWS: Mention target description support.
3866 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3868 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3871 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3873 * configure.ac: Don't check for 'dlfcn.h' (moved to
3874 gdbsupport/common.m4).
3875 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3877 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3878 * compile/compile-c-support.c: Include
3879 'gdbsupport/gdb-dlfcn.h'.
3880 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3881 * gdb-dlfcn.c: Move to...
3882 * gdbsupport/gdb-dlfcn.c: ... here.
3883 * gdb-dlfcn.h: Move to...
3884 * gdbsupport/gdb-dlfcn.h: ... here.
3886 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3888 * nios2-tdep.c (struct reg_value): Improve comments. Make
3889 the offset field signed.
3891 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3893 * python/lib/gdb/__init__.py (_execute_file): New function.
3894 * python/python.c (python_run_simple_file): Call gdb._execute_file
3897 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3899 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3900 all uses as this was never set to anything but a zero value.
3902 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3904 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3906 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3908 * tui/tui-data.h (tui_gen_win_info): Add an =default
3909 move constructor, required by some GCC versions.
3911 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3913 * go32-nat.c (go32_sysinfo): Add hygon_p.
3915 2019-08-20 Tom Tromey <tom@tromey.com>
3917 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3918 line_from_reg_element_no, first_reg_element_no_inline,
3919 display_all_data, delete_data_content_windows,
3920 erase_data_content>: Now private.
3922 2019-08-20 Tom Tromey <tom@tromey.com>
3924 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3925 (tui_unhighlight_win, tui_highlight_win)
3926 (tui_win_info::make_window): Update.
3927 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3929 2019-08-20 Tom Tromey <tom@tromey.com>
3931 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3932 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3933 (MAX_PID_WIDTH): Move to tui-stack.c.
3934 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3935 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3936 (MAX_PID_WIDTH): Move from tui-data.h.
3938 2019-08-20 Tom Tromey <tom@tromey.com>
3940 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3941 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3943 (tui_gen_win_info::make_window): Rename from tui_make_window.
3944 (tui_win_info::make_window): New method.
3945 (tui_gen_win_info::make_visible): Update.
3946 * tui/tui-source.c (tui_source_window::set_contents): Update.
3947 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3948 (tui_data_window::display_registers_from): Update.
3949 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3950 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3954 (struct tui_win_info) <make_window>: Declare.
3955 <can_box>: Now virtual.
3956 <title>: New member.
3957 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3958 * tui/tui-command.c (tui_cmd_window::resize): Update.
3960 2019-08-20 Tom Tromey <tom@tromey.com>
3962 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3963 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3964 (tui_data_window::check_register_values): Update.
3966 2019-08-20 Tom Tromey <tom@tromey.com>
3968 * tui/tui-regs.h (struct tui_data_window): Use
3969 DISABLE_COPY_AND_ASSIGN.
3970 <regs_content>: Change type, removing unique_ptr.
3971 <tui_data_window>: Add move constructor.
3972 * tui/tui-regs.c (tui_data_window::show_registers)
3973 (tui_data_window::show_register_group)
3974 (tui_data_window::display_registers_from)
3975 (tui_data_window::display_registers_from)
3976 (tui_data_window::first_data_item_displayed)
3977 (tui_data_window::delete_data_content_windows)
3978 (tui_data_window::rerender, tui_data_window::refresh_window)
3979 (tui_data_window::check_register_values): Update.
3981 2019-08-20 Tom Tromey <tom@tromey.com>
3983 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3984 show_register_group>: Declare.
3985 (tui_show_register_group): Don't declare.
3986 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3988 (tui_data_window::show_register_group): Rename from
3989 tui_show_register_group.
3990 (tui_data_window::check_register_values, tui_reg_command):
3992 * tui/tui-layout.c (tui_set_layout): Update.
3994 2019-08-20 Tom Tromey <tom@tromey.com>
3996 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3998 (tui_check_register_values): Don't declare.
3999 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4000 from tui_check_register_values.
4001 * tui/tui-hooks.c (tui_register_changed): Update.
4003 2019-08-20 Tom Tromey <tom@tromey.com>
4005 * tui/tui-regs.c (tui_reg_layout): Move later.
4006 (tui_show_registers): Don't enable TUI mode or change layout.
4008 2019-08-20 Tom Tromey <tom@tromey.com>
4010 * tui/tui-regs.h (struct tui_data_item_window)
4011 <~tui_data_item_window>: Remove.
4012 <content>: Now a unique_xmalloc_ptr.
4013 * tui/tui-regs.c (tui_register_format): Return a
4015 (tui_get_register): Update.
4016 (~tui_data_item_window): Remove.
4017 (tui_data_window::display_registers_from, tui_display_register):
4019 * tui/tui-io.h (tui_expand_tabs): Update.
4020 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4021 Remove "col" parameter.
4023 2019-08-20 Tom Tromey <tom@tromey.com>
4025 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4027 * tui/tui-regs.c (~tui_data_item_window): Update.
4029 2019-08-20 Tom Tromey <tom@tromey.com>
4031 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4034 2019-08-20 Tom Tromey <tom@tromey.com>
4036 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4038 2019-08-20 Tom Tromey <tom@tromey.com>
4040 * tui/tui-source.h (struct tui_source_window): Update.
4041 * tui/tui-regs.c (tui_show_registers): Update.
4042 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4043 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4044 (NO_REGS_STRING): Remove defines.
4046 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4048 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4049 unnecessary thread walk if remote doesn't support the packet.
4051 2019-08-19 Tom Tromey <tromey@adacore.com>
4053 * python/py-value.c (value_has_field): Fix indentation.
4055 2019-08-19 Tom Tromey <tromey@adacore.com>
4057 * printcmd.c (do_one_display, info_display_command): Update.
4058 * block.h (contained_in): Return bool. Add allow_nested
4060 * block.c (contained_in): Return bool. Add allow_nested
4063 2019-08-19 Tom Tromey <tom@tromey.com>
4065 * configure: Rebuild.
4066 * configure.ac: Disallow the combination of -static-libstdc++ and
4068 * source-cache.c (get_language_name): Handle rust.
4069 (source_cache::get_source_lines): Ignore highlighting exceptions.
4071 2019-08-16 Tom Tromey <tom@tromey.com>
4073 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4074 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4075 (struct tui_source_window_base) <make_visible, refresh_window,
4076 resize>: Remove methods.
4077 <execution_info>: Remove field.
4078 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4079 (tui_show_source_line, tui_source_window_base)
4080 (~tui_source_window_base): Update.
4081 (tui_source_window_base::resize)
4082 (tui_source_window_base::make_visible)
4083 (tui_source_window_base::refresh_window): Remove.
4084 (tui_source_window_base::update_exec_info): Update.
4085 * tui/tui-source.c (tui_source_window::set_contents): Update.
4086 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4088 2019-08-16 Tom Tromey <tom@tromey.com>
4090 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4091 deprecated_query_hook.
4093 2019-08-16 Tom Tromey <tom@tromey.com>
4095 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4096 (tui_update_source_windows_with_line): Update.
4097 * tui/tui-source.h (struct tui_source_window)
4098 <show_symtab_source>: Declare.
4099 (tui_show_symtab_source): Don't declare.
4100 * tui/tui-source.c (tui_show_symtab_source): Rename from
4101 tui_show_symtab_source.
4103 2019-08-16 Tom Tromey <tom@tromey.com>
4105 * tui/tui-winsource.h (struct tui_source_window_base)
4106 <set_contents>: Declare.
4107 * tui/tui-winsource.c
4108 (tui_source_window_base::update_source_window_as_is): Update.
4109 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4111 (tui_set_source_content): Don't declare.
4112 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4113 tui_set_source_content.
4114 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4116 (tui_set_disassem_content): Don't declare.
4117 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4118 tui_set_disassem_content.
4120 2019-08-16 Tom Tromey <tom@tromey.com>
4122 * tui/tui-winsource.h (struct tui_source_window_base)
4123 <update_breakpoint_info>: Declare.
4124 (tui_update_breakpoint_info): Don't declare.
4125 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4126 (tui_update_all_breakpoint_info): Update.
4127 (tui_source_window_base::update_breakpoint_info): Rename from
4128 tui_update_breakpoint_info.
4129 (tui_source_window_base::update_exec_info): Update.
4131 2019-08-16 Tom Tromey <tom@tromey.com>
4133 * tui/tui-winsource.h (struct tui_source_window_base)
4134 <update_source_window>: Declare.
4135 (tui_update_source_window): Don't declare.
4136 * tui/tui-winsource.c
4137 (tui_source_window_base::update_source_window): Rename from
4138 tui_update_source_window.
4139 (tui_source_window_base::rerender): Update.
4140 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4141 * tui/tui-disasm.c (tui_show_disassem)
4142 (tui_show_disassem_and_update_source)
4143 (tui_disasm_window::maybe_update): Update.
4145 2019-08-16 Tom Tromey <tom@tromey.com>
4147 * tui/tui-winsource.h (struct tui_source_window_base)
4148 <update_source_window_as_is>: Declare.
4149 (tui_update_source_window_as_is): Don't declare.
4150 * tui/tui-winsource.c (tui_update_source_window): Update
4151 (tui_source_window_base::update_source_window_as_is): Rename from
4152 tui_update_source_window_as_is.
4153 (tui_source_window_base::refill): Update.
4154 * tui/tui-source.c (tui_show_symtab_source): Update.
4155 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4158 2019-08-16 Tom Tromey <tom@tromey.com>
4160 * tui/tui-winsource.h (tui_update_source_window)
4161 (tui_update_source_window_as_is): Remove "noerror" parameter.
4162 * tui/tui-winsource.c (tui_update_source_window)
4163 (tui_update_source_window_as_is): Remove "noerror" parameter.
4164 (tui_update_source_windows_with_addr)
4165 (tui_update_source_windows_with_line)
4166 (tui_source_window_base::rerender)
4167 (tui_source_window_base::refill): Update.
4168 * tui/tui-source.h (tui_set_source_content)
4169 (tui_show_symtab_source): Remove "noerror" parameter.
4170 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4172 (tui_show_symtab_source): Likewise.
4173 (tui_source_window::maybe_update): Update.
4174 * tui/tui-disasm.c (tui_show_disassem)
4175 (tui_show_disassem_and_update_source)
4176 (tui_disasm_window::do_scroll_vertical)
4177 (tui_disasm_window::maybe_update): Update.
4179 2019-08-16 Tom Tromey <tom@tromey.com>
4181 * tui/tui.c (tui_is_window_visible): Update.
4182 * tui/tui-wingeneral.c (tui_make_window)
4183 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4184 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4185 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4186 (tui_set_win_height_command, parse_scrolling_args): Update.
4187 * tui/tui-source.c (tui_source_window::style_changed): Update.
4188 * tui/tui-regs.c (tui_show_registers)
4189 (tui_data_window::first_data_item_displayed)
4190 (tui_data_window::delete_data_content_windows)
4191 (tui_check_register_values, tui_reg_command): Update.
4192 * tui/tui-disasm.c (tui_show_disassem): Update.
4193 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4195 <is_visible>: Remove field.
4196 * tui/tui-data.c (tui_next_win, tui_prev_win)
4197 (tui_delete_invisible_windows): Update.
4199 2019-08-16 Tom Tromey <tom@tromey.com>
4201 * tui/tui-winsource.h (struct tui_source_window_base)
4202 <m_has_locator>: Remove.
4203 * tui/tui-layout.c (show_source_disasm_command, show_data)
4204 (show_source_or_disasm_and_command): Update.
4206 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4208 * NEWS (Other MI changes): New subsection.
4209 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4210 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4211 * arch-utils.c (default_get_pc_address_flags): New function.
4212 * arch-utils.h (default_get_pc_address_flags): New declaration.
4213 * gdbarch.sh: Add get_pc_address_flags.
4214 * gdbarch.c: Regenerate.
4215 * gdbarch.h: Likewise.
4216 * stack.c (print_pc): New function.
4217 (print_frame_info) (print_frame): Call print_pc.
4219 2019-08-16 Tom de Vries <tdevries@suse.de>
4221 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4222 print_objfile_section_info.
4224 2019-08-15 Tom Tromey <tom@tromey.com>
4226 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4227 calling update_cmdwin_start_line.
4228 * tui/tui-winsource.h (struct tui_source_window_base)
4229 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4230 <rerender>: Declare.
4231 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4233 (tui_source_window_base::set_new_height): Remove.
4234 (tui_source_window_base::rerender): Rename from
4235 do_make_visible_with_new_height.
4236 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4238 (tui_win_info::make_invisible_and_set_new_height)
4239 (tui_win_info::make_visible_with_new_height): Remove.
4240 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4242 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4243 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4244 do_make_visible_with_new_height>: Don't declare.
4245 <rerender>: Declare.
4246 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4248 (tui_data_window::do_make_visible_with_new_height): Remove.
4249 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4250 call tui_show_locator_content.
4251 (tui_gen_win_info::resize): Call rerender.
4252 (show_source_or_disasm_and_command): Don't call
4253 tui_show_locator_content.
4254 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4256 (struct tui_win_info) <rerender>: Declare.
4257 <set_new_height, make_invisible_and_set_new_height,
4258 make_visible_with_new_height>: Don't declare.
4259 * tui/tui-data.c (tui_win_list::rerender): New method.
4260 * tui/tui-command.h (struct tui_cmd_window)
4261 <do_make_visible_with_new_height>: Don't declare.
4263 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4265 2019-08-15 Tom Tromey <tromey@adacore.com>
4267 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4268 * ada-lang.c (ada_enum_name): Likewise.
4270 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4272 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4274 (GdbOutputErrorFile): Likewise.
4275 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4277 (execute_unwinders): Rename to have a leading underscore.
4278 (auto_load_packages): Likewise.
4279 (global scope): Adjust call to auto_load_packages accordingly.
4280 (GdbSetPythonDirectory): Likewise.
4281 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4282 instead of execute_unwinders.
4284 2019-08-15 Tom Tromey <tom@tromey.com>
4286 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4287 (show_data): Don't change window visibility.
4288 (tui_gen_win_info::resize): Remove special case for command
4289 window. Use wresize, when available.
4290 (show_source_or_disasm_and_command): Don't change window
4292 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4293 <make_visible>: New method.
4294 * tui/tui-command.c (tui_cmd_window::resize): New method.
4296 2019-08-15 Tom Tromey <tom@tromey.com>
4298 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4299 (struct tui_source_windows): New.
4300 * tui/tui-winsource.c (tui_display_main): Update.
4301 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4302 (new_height_ok, parse_scrolling_args): Update.
4303 * tui/tui-layout.c (show_layout, show_data): Update.
4304 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4305 (tui_add_to_source_windows): Don't declare.
4306 * tui/tui-data.c (source_windows, tui_source_windows)
4307 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4309 2019-08-15 Tom Tromey <tom@tromey.com>
4311 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4313 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4314 * tui/tui-layout.c (show_source_disasm_command, show_data):
4316 (tui_gen_win_info::resize): Rename.
4317 (show_source_or_disasm_and_command): Update.
4318 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4321 2019-08-15 Tom Tromey <tom@tromey.com>
4323 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4324 * tui/tui-interp.c (tui_interp::init): Don't call
4325 tui_initialize_static_data.
4326 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4328 2019-08-15 Tom Tromey <tom@tromey.com>
4330 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4331 examine tui_win_list.
4333 2019-08-15 Tom Tromey <tom@tromey.com>
4335 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4336 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4337 tui_clear_source_content.
4338 (tui_clear_source_content): Remove.
4339 (tui_source_window_base::do_erase_source_content): Hoist call to
4341 * tui/tui-stack.c (tui_show_frame_info): Don't call
4342 tui_clear_source_content.
4344 2019-08-15 Tom Tromey <tom@tromey.com>
4346 * tui/tui-winsource.h (struct tui_source_window_base)
4347 <do_erase_source_content>: New method.
4348 <erase_source_content>: New method.
4349 (tui_erase_source_content): Don't declare.
4350 * tui/tui-winsource.c (tui_clear_source_content): Update.
4351 (tui_source_window_base::do_erase_source_content): Rename from
4352 tui_erase_source_content.
4353 (tui_source_window_base::show_source_content): Update.
4354 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4355 * tui/tui-source.h (struct tui_source_window)
4356 <erase_source_content>: New method.
4357 * tui/tui-disasm.h (struct tui_disasm_window)
4358 <erase_source_content>: New method.
4360 2019-08-15 Tom Tromey <tom@tromey.com>
4362 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4363 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4365 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4366 * tui/tui-source.c (tui_set_source_content): Update.
4367 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4369 2019-08-15 Tom Tromey <tom@tromey.com>
4371 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4372 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4374 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4376 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4378 (tui_source_window::maybe_update): Update.
4380 2019-08-15 Tom Tromey <tom@tromey.com>
4382 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4383 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4385 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4387 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4389 (tui_disasm_window::maybe_update): Update.
4391 2019-08-15 Tom Tromey <tom@tromey.com>
4393 * tui/tui-winsource.h (struct tui_source_window_base)
4394 <maybe_update>: Declare.
4395 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4397 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4399 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4400 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4402 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4404 2019-08-15 Tom Tromey <tom@tromey.com>
4406 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4408 2019-08-15 Tom Tromey <tom@tromey.com>
4410 * tui/tui-wingeneral.c: Include tui-stack.h.
4411 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4412 (struct tui_locator_window): Move from tui-data.h.
4413 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4414 (tui_initialize_static_data): Move from tui-data.c.
4415 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4416 (struct tui_locator_window): Move to tui-stack.c.
4417 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4418 (tui_initialize_static_data): Move to tui-stack.c.
4420 2019-08-15 Tom Tromey <tom@tromey.com>
4422 * tui/tui-layout.c (show_source_disasm_command)
4423 (show_source_or_disasm_and_command): Use make_visible method, not
4425 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4428 2019-08-15 Tom Tromey <tom@tromey.com>
4430 * tui/tui-wingeneral.h (tui_make_window): Update.
4431 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4433 (tui_gen_win_info::make_visible): Update.
4434 * tui/tui-regs.c (tui_data_window::display_registers_from):
4436 * tui/tui-layout.c (show_source_disasm_command)
4437 (show_source_or_disasm_and_command): Update.
4438 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4439 (enum tui_box): Remove.
4440 (struct tui_win_info) <can_box>: New method.
4441 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4444 2019-08-15 Tom de Vries <tdevries@suse.de>
4446 * linux-nat-trad.c: Include gdbarch.h.
4448 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4450 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4453 2019-08-14 Tom Tromey <tromey@adacore.com>
4455 * darwin-nat.c: Include gdbarch.h.
4456 * darwin-nat-info.c: Include gdbarch.h.
4458 2019-08-13 Tom Tromey <tom@tromey.com>
4460 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4462 * tui/tui-data.c (tui_initialize_static_data): Update.
4464 2019-08-13 Tom Tromey <tom@tromey.com>
4466 * tui/tui-winsource.h (struct tui_exec_info_window)
4467 <~tui_exec_info_window, maybe_allocate_content, get_content,
4469 (struct tui_source_window_base) <set_exec_info_content,
4470 show_exec_info_content>: Don't declare.
4471 * tui/tui-winsource.c
4472 (tui_exec_info_window::maybe_allocate_content): Remove.
4473 (tui_source_window_base::update_exec_info): Rename from
4474 set_exec_info_content.
4475 (tui_source_window_base::show_exec_info_content)
4476 (tui_source_window_base::update_exec_info): Remove.
4478 2019-08-13 Tom Tromey <tom@tromey.com>
4480 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4482 * tui/tui-winsource.c (tui_update_source_window_as_is)
4483 (tui_update_source_windows_with_addr, tui_erase_source_content):
4485 (tui_clear_exec_info_content): Remove.
4487 2019-08-13 Tom Tromey <tom@tromey.com>
4489 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4491 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4492 call tui_erase_exec_info_content.
4493 (tui_clear_exec_info_content): Rename from
4494 tui_erase_exec_info_content.
4495 (tui_clear_exec_info_content): Delete.
4497 2019-08-13 Tom Tromey <tom@tromey.com>
4499 * tui/tui-winsource.h (struct tui_source_window_base)
4500 <show_exec_info_content>: Declare.
4501 (tui_show_exec_info_content): Don't declare.
4502 * tui/tui-winsource.c
4503 (tui_source_window_base::show_exec_info_content): Rename from
4504 tui_show_exec_info_content.
4505 (tui_source_window_base::update_exec_info): Update.
4507 2019-08-13 Tom Tromey <tom@tromey.com>
4509 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4510 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4511 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4512 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4513 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4514 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4517 2019-08-13 Tom Tromey <tom@tromey.com>
4519 * tui/tui-winsource.h (struct tui_source_window_base)
4520 <update_exec_info>: Declare.
4521 (tui_update_exec_info): Don't declare.
4522 * tui/tui-winsource.c (tui_update_source_window_as_is)
4523 (tui_source_window_base::refresh_all)
4524 (tui_update_all_breakpoint_info): Update.
4525 (tui_source_window_base::update_exec_info): Rename from
4526 tui_update_exec_info.
4527 * tui/tui-stack.c (tui_show_frame_info): Update.
4529 2019-08-13 Tom Tromey <tom@tromey.com>
4531 * tui/tui-winsource.h (struct tui_source_window_base)
4532 <set_exec_info_content>: Declare.
4533 (tui_set_exec_info_content): Don't declare.
4534 * tui/tui-winsource.c
4535 (tui_source_window_base::set_exec_info_content): Rename from
4536 tui_set_exec_info_content.
4537 (tui_update_exec_info): Update.
4539 2019-08-13 Tom Tromey <tom@tromey.com>
4541 * tui/tui-winsource.h (struct tui_source_window_base)
4542 <show_source_content>: Declare.
4543 (tui_show_source_content): Don't declare.
4544 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4545 (tui_source_window_base::show_source_content): Rename from
4546 tui_show_source_content.
4547 (tui_source_window_base::refresh_all): Update.
4548 * tui/tui-layout.c (show_source_disasm_command)
4549 (show_source_or_disasm_and_command): Update.
4551 2019-08-13 Tom Tromey <tom@tromey.com>
4553 * tui/tui-winsource.c (tui_erase_source_content)
4554 (tui_show_source_content, tui_source_window_base::refresh_all):
4556 * tui/tui-wingeneral.h
4557 (tui_check_and_display_highlight_if_needed): Don't declare.
4558 * tui/tui-wingeneral.c
4559 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4560 check_and_display_highlight_if_needed.
4561 * tui/tui-win.c (tui_rehighlight_all)
4562 (tui_win_info::make_visible_with_new_height): Update.
4563 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4564 (tui_data_window::erase_data_content)
4565 (tui_data_window::display_all_data): Update.
4566 * tui/tui-data.h (struct tui_win_info)
4567 <check_and_display_highlight_if_needed>: Declare.
4569 2019-08-13 Tom Tromey <tom@tromey.com>
4571 * tui/tui-win.c (tui_resize_all): Call
4572 tui_delete_invisible_windows.
4573 * tui/tui-layout.c (show_layout): Call
4574 tui_delete_invisible_windows.
4575 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4576 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4578 2019-08-13 Tom Tromey <tom@tromey.com>
4580 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4581 tui_add_win_to_layout.
4583 2019-08-13 Tom Tromey <tom@tromey.com>
4585 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4586 * tui/tui-layout.c (tui_default_win_height): Now static.
4588 2019-08-13 Tom Tromey <tom@tromey.com>
4590 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4592 (show_source_disasm_command, show_source_or_disasm_and_command):
4593 Don't check current layout.
4595 2019-08-13 Tom Tromey <tom@tromey.com>
4597 * tui/tui-wingeneral.c (make_all_visible): Remove.
4598 (tui_make_all_invisible): Simplify.
4599 * tui/tui-layout.c (tui_make_all_invisible): Move from
4600 tui-wingeneral.c; simplify.
4601 (show_layout): Hoist call to tui_make_all_invisible.
4602 (show_data): Don't call tui_make_all_invisible.
4604 2019-08-13 Tom Tromey <tom@tromey.com>
4606 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4607 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4609 2019-08-13 Tom Tromey <tom@tromey.com>
4611 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4613 (show_source_disasm_command, show_data)
4614 (show_source_or_disasm_and_command): Don't use
4615 tui_set_current_layout_to.
4616 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4617 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4619 (tui_set_current_layout_to): Remove.
4621 2019-08-13 Tom Tromey <tom@tromey.com>
4623 * tui/tui-layout.c (tui_set_layout): Update.
4624 * tui/tui-data.h (struct tui_layout_def): Remove.
4625 (tui_layout_def): Don't declare.
4626 * tui/tui-data.c (layout_def): Remove.
4627 (tui_layout_def): Remove.
4629 2019-08-13 Tom Tromey <tom@tromey.com>
4631 * tui/tui-winsource.h (struct tui_source_window_base)
4632 <clear_detail>: No longer "override".
4633 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4634 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4635 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4636 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4638 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4640 2019-08-13 Tom Tromey <tromey@adacore.com>
4642 * tracepoint.c: Don't include readline.h or history.h.
4644 2019-08-12 Tom Tromey <tom@tromey.com>
4646 * configure: Rebuild.
4647 * configure.ac: Check for readline 7.
4648 * NEWS: Mention readline 7 requirement.
4651 2019-08-12 Tom Tromey <tom@tromey.com>
4653 * mingw-hdep.c (gdb_select): Remove readline hack.
4655 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4657 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4658 when the function fails.
4660 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4662 * s390-tdep.c (s390_type_align): New function.
4663 (s390_gdbarch_init): Set it as type_align gdbarch method.
4665 2019-08-09 Tom de Vries <tdevries@suse.de>
4668 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4669 pc_low with relocation offset.
4671 2019-08-07 Tom Tromey <tromey@adacore.com>
4673 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4674 (print_frame_args): Update.
4675 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4677 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4678 * frame.h (struct frame_arg): Add initializers.
4679 <error>: Now a unique_xmalloc_ptr.
4681 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4683 * NEWS: Expand the Pointer Authentication entry.
4684 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4685 (aarch64_frame_unmask_lr): ... to this.
4686 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4687 Call aarch64_frame_unmask_lr.
4688 * frame.c (struct frame_info): Add "masked" variable.
4689 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4690 (fprint_frame): Check for masked pc.
4691 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4693 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4694 * stack.c (print_frame): Check for masked pc.
4696 2019-08-06 Tom Tromey <tom@tromey.com>
4698 * stabsread.c (patch_block_stabs, read_one_struct_field)
4699 (read_enum_type): Use obstack_strndup.
4700 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4701 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4702 * dwarf2read.c (guess_full_die_structure_name)
4703 (anonymous_struct_prefix): Use obstack_strndup.
4704 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4705 * c-exp.y (yylex): Use obstack_strndup.
4706 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4707 (write_var_or_type): Use obstack_strndup.
4709 2019-08-06 Tom Tromey <tom@tromey.com>
4711 * symfile.c (reread_symbols): Use obstack_strdup.
4712 * stabsread.c (read_type): Use obstack_strdup.
4713 * gdb_obstack.h (obstack_strdup): New overload.
4714 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4715 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4716 (dwarf2_canonicalize_name): Use obstack_strdup.
4717 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4718 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4721 2019-08-06 Tom Tromey <tom@tromey.com>
4723 * gdb_obstack.h (obstack_strdup): Define.
4724 * gdb_obstack.c (obstack_strdup): Don't define.
4726 2019-08-06 Tom Tromey <tom@tromey.com>
4728 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4730 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4732 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4733 * stabsread.c (common_block_start): Use obstack_strdup.
4734 * objfiles.c (set_objfile_main_name, objfile): Use
4736 * namespace.c (add_using_directive): Use obstack_strdup.
4737 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4738 * jit.c (finalize_symtab): Use obstack_strdup.
4739 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4740 (guess_partial_die_structure_name, partial_die_info::fixup)
4741 (dwarf2_name): Use obstack_strdup.
4742 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4744 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4745 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4747 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4749 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4751 * unittests/help-doc-selftests.c: New file.
4752 * Makefile.in: Add the new file.
4754 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4756 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4757 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4758 the full first line, except when FOR_VALUE_PREFIX. In this case,
4759 the trailing '.' is not output, and the first character is uppercased.
4760 (print_help_for_command): Update call to print_doc_line.
4761 (print_doc_of_command): Likewise.
4762 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4763 * cli/cli-option.c (append_indented_doc): Do not append newline.
4764 (build_help_option): Append newline after first appended_indented_doc
4765 only if a second call is done.
4766 (build_help): Append 2 new lines before each option, except the first
4768 * compile/compile.c (_initialize_compile): Add new lines after
4769 %OPTIONS%, when not at the end of the help.
4770 Change help doc or code
4771 producing the help doc to respect the invariants.
4772 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4773 Also removed the new line after 'Options:', as all other commands
4774 do not put an empty line between 'Options:' and the first option.
4775 * printcmd.c (_initialize_printcmd): Likewise.
4776 * stack.c (_initialize_stack): Likewise.
4777 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4778 incorrectly telling COMMAND is optional.
4779 * ada-lang.c (_initialize_ada_language): Change help doc or code
4780 producing the help doc to respect the invariants.
4781 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4782 * breakpoint.c (_initialize_breakpoint): Likewise.
4783 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4784 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4785 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4786 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4787 _initialize_cli_style): Likewise.
4788 * corelow.c (core_target_info): Likewise.
4789 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4790 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4791 * filesystem.c (_initialize_filesystem): Likewise.
4792 * frame.c (_initialize_frame): Likewise.
4793 * gnu-nat.c (add_task_commands): Likewise.
4794 * infcall.c (_initialize_infcall): Likewise.
4795 * infcmd.c (_initialize_infcmd): Likewise.
4796 * interps.c (_initialize_interpreter): Likewise.
4797 * language.c (_initialize_language): Likewise.
4798 * linux-fork.c (_initialize_linux_fork): Likewise.
4799 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4800 * maint.c (_initialize_maint_cmds): Likewise.
4801 * memattr.c (_initialize_mem): Likewise.
4802 * printcmd.c (_initialize_printcmd): Likewise.
4803 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4805 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4806 * record-btrace.c (_initialize_record_btrace): Likewise.
4807 * record-full.c (_initialize_record_full): Likewise.
4808 * record.c (_initialize_record): Likewise.
4809 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4810 * regcache.c (_initialize_regcache): Likewise.
4811 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4812 _initialize_remote): Likewise.
4813 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4814 * serial.c (_initialize_serial): Likewise.
4815 * skip.c (_initialize_step_skip): Likewise.
4816 * source.c (_initialize_source): Likewise.
4817 * stack.c (_initialize_stack): Likewise.
4818 * symfile.c (_initialize_symfile): Likewise.
4819 * symtab.c (_initialize_symtab): Likewise.
4820 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4821 * top.c (init_main): Likewise.
4822 * tracefile-tfile.c (tfile_target_info): Likewise.
4823 * tracepoint.c (_initialize_tracepoint): Likewise.
4824 * tui/tui-win.c (_initialize_tui_win): Likewise.
4825 * utils.c (add_internal_problem_command): Likewise.
4826 * valprint.c (value_print_option_defs): Likewise.
4828 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4831 * configure.ac: Drop enable-libmcheck support.
4832 * configure, config.in: Rebuild.
4833 * libmcheck.m4: Remove.
4834 * acinclude.m4: Don't include it.
4835 * Makefile.in: Don't distribute it.
4836 * top.c (print_gdb_configuration): Don't mention it.
4838 2019-08-06 Tom Tromey <tom@tromey.com>
4840 * utils.c (set_output_style): Sometimes pass stream to
4842 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4843 * record-btrace.c (btrace_insn_history): Update.
4844 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4846 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4847 Update initializers.
4848 <m_uiout>: New field.
4850 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4851 Remove "uiout" parameter.
4852 (dump_insns): Update.
4853 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4854 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4856 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4858 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4859 (error_in_psymtab_expansion): Likewise.
4860 (lookup_symbol_via_quick_fns): Likewise.
4861 (basic_lookup_transparent_type_quick): Likewise.
4862 (basic_lookup_transparent_type_1): Likewise.
4864 2019-08-06 Tom Tromey <tromey@adacore.com>
4866 * source.c (last_source_error): Now bool.
4867 (print_source_lines_base): Make "noprint" bool. Only open
4868 source file when last_source_visited changes.
4870 2019-08-06 Tom Tromey <tromey@adacore.com>
4872 * annotate.c (annotate_source_line): Use g_source_cache.
4873 * source-cache.c (source_cache::get_plain_source_lines): Change
4874 parameters. Populate m_offset_cache.
4875 (source_cache::ensure): New method.
4876 (source_cache::get_line_charpos): New method.
4877 (extract_lines): Move lower. Change parameters.
4878 (source_cache::get_source_lines): Move lower.
4879 * source-cache.h (class source_cache): Update comment.
4880 <get_line_charpos>: New method.
4881 <get_source_lines>: Update comment.
4882 <clear>: Clear m_offset_cache.
4883 <get_plain_source_lines>: Change parameters.
4884 <ensure>: New method
4885 <m_offset_cache>: New member.
4886 * source.c (forget_cached_source_info_for_objfile): Update.
4887 (info_source_command): Use g_source_cache.
4888 (find_source_lines, open_source_file_with_line_charpos): Remove.
4889 (print_source_lines_base, search_command_helper): Use g_source_cache.
4890 * source.h (open_source_file_with_line_charpos): Don't declare.
4891 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4892 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4895 2019-08-06 Tom Tromey <tromey@adacore.com>
4897 * source-cache.c (source_cache::get_plain_source_lines):
4898 Remove "first_line" and "last_line" parameters.
4899 (source_cache::get_source_lines): Cache plain text.
4900 * source-cache.h (class source_cache)
4901 <get_plain_source_lines>: Update.
4903 2019-08-06 Tom Tromey <tromey@adacore.com>
4905 * source-cache.c (extract_lines): No longer a method.
4906 Changed type of parameter. Include final newline.
4907 (selftests::extract_lines_test): New function.
4908 (_initialize_source_cache): Likewise.
4909 * source-cache.h (class source_cache)
4910 <extract_lines>: Don't declare.
4912 2019-08-06 Tom Tromey <tromey@adacore.com>
4914 * breakpoint.c (init_breakpoint_sal): Update.
4915 (breakpoint): Update.
4916 * breakpoint.h (struct breakpoint) <filter>: Now a
4919 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4921 * NEWS: Mention dictionary access on blocks.
4922 * python/py-block.c (blpy_getitem): New function.
4923 (block_object_as_mapping): New struct.
4924 (block_object_type): Use new struct for tp_as_mapping field.
4926 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4928 * objfiles.h (objfile): Add a comment describing partial symbols.
4930 2019-08-05 Tom Tromey <tromey@adacore.com>
4932 * compile/compile.c (_initialize_compile): Use _(), not N_().
4933 * thread.c (_initialize_thread): Use _(), not N_().
4934 * stack.c (_initialize_stack): Use _(), not N_().
4935 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4937 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4939 * dwarf2read.c (struct dw2_symtab_iterator):
4940 <want_specific_block>: Remove.
4941 <block_index>: Change type to gdb::optional.
4942 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4943 change type of BLOCK_INDEX parameter to gdb::optional.
4944 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4945 (dw2_lookup_symbol): Don't pass argument for
4946 WANT_SPECIFIC_BLOCK.
4947 (dw2_expand_symtabs_for_function): Don't pass argument for
4948 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4949 (class dw2_debug_names_iterator)
4950 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4951 parameter, change BLOCK_INDEX type to gdb::optional.
4952 <m_want_specific_block>: Remove.
4953 <m_block_index>: Change type to gdb::optional.
4954 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4955 gdb::optional. Re-write in function of gdb::optional.
4956 (dw2_debug_names_lookup_symbol): Don't pass argument for
4957 WANT_SPECIFIC_BLOCK.
4958 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4959 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4962 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4964 * NEWS: Mention changes to "info sources" command.
4966 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4968 * symtab.c (filename_partial_match_opts): New struct type.
4969 (struct output_source_filename_data): New members
4970 regexp, c_regexp, partial_match.
4971 (output_source_filename): Use new members to decide to print file.
4972 (info_sources_option_defs): New variable.
4973 (make_info_sources_options_def_group, print_info_sources_header,
4974 info_sources_command_completer):
4976 (info_sources_command): Read new optional arguments.
4977 (_initialize_symtab): Update info sources help.
4979 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4981 * ada-lang.c (exception_support_info_v0): Renamed from...
4982 (default_exception_support_info): ... this. Create new
4984 (ada_has_this_exception_support): Look up catch_handlers_sym.
4985 (ada_exception_support_info_sniffer): Try v0 after default.
4987 2019-08-01 Tom Tromey <tromey@adacore.com>
4989 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4992 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4994 * s12z-tdep.c: Fix include path for s12z-opc.h.
4996 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4998 * NEWS: Require GNU make 3.82.
5000 2019-07-16 Tom Tromey <tom@tromey.com>
5002 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5005 2019-07-30 Tom Tromey <tromey@adacore.com>
5007 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5009 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5011 * printcmd.c (print_address_symbolic): Print negative offsets.
5012 (build_address_symbolic): Force signed arithmetic when computing
5015 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5017 PR/24474: Add a function to lookup static variables.
5018 * NEWS: Mention this new function.
5019 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5020 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5021 * python/python.c (python_GdbMethods): Add new function.
5023 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5025 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5026 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5027 (objfpy_lookup_static_symbol): New function.
5028 (objfile_object_methods): Add new functions.
5030 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5032 * NEWS: Mention 'set|show print frame-info'. Mention new
5033 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5034 backtrace argument. Mention that python frame filtering code
5035 is now consistent with what 'backtrace' command prints.
5037 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5039 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5041 (print_frame_info_auto, print_frame_info_source_line,
5042 print_frame_info_location, print_frame_info_source_and_location,
5043 print_frame_info_location_and_address, print_frame_info_short_location):
5045 (struct frame_print_options): New member print_frame_info.
5046 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5047 * stack.h (get_user_print_what_frame_info): New declaration.
5048 (frame_show_address): New declaration.
5049 * stack.c (print_frame_arguments_choices): New value 'presence'.
5050 (print_frame_info_auto, print_frame_info_source_line,
5051 print_frame_info_location, print_frame_info_source_and_location,
5052 print_frame_info_location_and_address, print_frame_info_short_location,
5053 print_frame_info_choices, print_frame_info_print_what): New definitions.
5054 (print_frame_args): Only print dots for args if print frame-arguments
5056 (frame_print_option_defs): New element for "frame-info".
5057 (get_user_print_what_frame_info): New function.
5058 (frame_show_address): Make non static. Move comment to stack.h.
5059 (print_frame_info_to_print_what): New function.
5060 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5061 to decide what to print.
5062 (backtrace_command_1): Handle the new print_frame_arguments_presence
5064 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5065 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5066 (py_print_frame): In non-mi mode, use LOCATION as default for
5067 print_what, similarly to frame information printed directly by
5068 backtrace command. Handle frame-info user option in non MI mode.
5070 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5072 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5073 Add case for debugging 32-bit target on 64-bit host. Revise
5076 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5078 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5079 instead of find_function_entry_range_from_pc.
5081 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5083 * stack.c (find_frame_funname): Remove code which preferred
5084 minsym over symtab sym in "certain pathological cases".
5086 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5087 parameter. Change type of "do_demangle" to bool.
5088 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5089 Pass suitable "prefer_sym_over_minsym" flag to
5090 build_address_symbolic(). Don't output "+" for negative offsets.
5091 * printcmd.c (print_address_symbolic): Update invocation of
5092 build_address_symbolic to include a "prefer_sym_over_minsym"
5094 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5095 Restrict cases in which use of minimal symbol is preferred to that
5096 of a found symbol. Update comments.
5098 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5099 for entry pc when entry pc is out of range for that FDE.
5101 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5104 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5107 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5109 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5110 this function's Python signature.
5113 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5115 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5116 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5117 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5118 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5119 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5122 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5124 * h8300-tdep.c (h8300_register_name_common): New.
5125 h8300_register_name): Use h8300_register_name_common.
5126 (h8300s_register_name): Likewise.
5127 (h8300sx_register_name): Likewise.
5128 (h8300h_register_nam): New.
5129 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5132 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5134 * arm-tdep.c (arm_skip_cmse_entry): New function.
5135 (arm_is_sgstubs_section): New function.
5136 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5138 2019-07-22 Tom Tromey <tom@tromey.com>
5140 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5143 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5145 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5148 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5150 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5151 so that GDB doesn't match any msymbols when searching in the
5153 (print_symbol_info): Print using typedef_print or type_print based
5154 on the type of the symbol. Add updated FIXME comment moved from...
5155 (_initialize_symtab): ... move and update FIXME comment to above.
5157 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5159 * NEWS: Mention adding -q option to "info types".
5160 * symtab.c (struct info_types_options): New struct.
5161 (info_types_options_defs): New variable.
5162 (make_info_types_options_def_group): New function.
5163 (info_types_command): Use gdb::option framework to parse options.
5164 (info_types_command_completer): New function.
5165 (_initialize_symtab): Extend the help text on "info types" and
5166 register command completer.
5168 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5170 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5171 (lookup_symbol_in_objfile): Change int to block_enum and add a
5172 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5174 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5176 * MAINTAINERS (Write After Approval): Add self.
5178 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5180 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5181 instruction to the dummy code region.
5183 2019-07-19 Tom Tromey <tromey@adacore.com>
5185 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5186 (ARGSUSED, PARAMS, __func__): Remove rules.
5188 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5190 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5191 * features/arm/arm-with-iwmmxt.c: Remove.
5192 * features/arm/arm-with-iwmmxt.xml: Remove.
5193 * features/arm/arm-with-m-fpa-layout.c: Remove.
5194 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5195 * features/arm/arm-with-m-vfp-d16.c: Remove.
5196 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5197 * features/arm/arm-with-m.c: Remove.
5198 * features/arm/arm-with-m.xml: Remove.
5199 * features/arm/arm-with-neon.c: Remove.
5200 * features/arm/arm-with-neon.xml: Remove.
5201 * features/arm/arm-with-vfpv2.c: Remove.
5202 * features/arm/arm-with-vfpv2.xml: Remove.
5203 * features/arm/arm-with-vfpv3.c: Remove.
5204 * features/arm/arm-with-vfpv3.xml: Remove.
5206 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5208 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5210 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5212 * arch/aarch32.c (aarch32_create_target_description): Create
5213 target descriptions using features.
5214 * arch/arm.c (arm_create_target_description)
5215 (arm_create_mprofile_target_description): Likewise.
5216 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5218 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5220 * Makefile.in: Add new files.
5221 * aarch32-tdep.c: New file.
5222 * aarch32-tdep.h: New file.
5223 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5224 Call aarch32_read_description.
5225 * arch/aarch32.c: New file.
5226 * arch/aarch32.h: New file.
5227 * arch/arm.c (arm_create_target_description)
5228 (arm_create_mprofile_target_description): New function.
5229 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5230 (arm_create_target_description)
5231 (arm_create_mprofile_target_description): New declaration.
5232 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5233 read_description functions.
5234 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5236 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5237 * arm-tdep.c (tdesc_arm_list): New variable.
5238 (arm_register_g_packet_guesses): Call create description functions.
5239 (arm_read_description) (arm_read_mprofile_description): New
5241 * arm-tdep.h (arm_read_description)
5242 (arm_read_mprofile_description): Add declaration.
5243 * configure.tgt: Add new files.
5245 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5247 * top.c (new_ui_command): Open specified terminal just once.
5249 2019-07-18 Tom Tromey <tromey@adacore.com>
5251 * symtab.c (main_name): Constify return type.
5252 * symfile.c (set_initial_language): Update.
5253 * symtab.h (main_name): Constify return type.
5255 2019-07-17 Tom Tromey <tom@tromey.com>
5257 * tui/tui-winsource.c (tui_update_source_window)
5258 (tui_update_source_window_as_is)
5259 (tui_update_source_windows_with_line): Remove return.
5260 * tui/tui-disasm.c (tui_show_disassem)
5261 (tui_show_disassem_and_update_source): Remove return.
5262 * tui/tui.c (tui_reset): Remove return.
5263 * tui/tui-wingeneral.c
5264 (tui_check_and_display_highlight_if_needed): Remove return.
5266 2019-07-17 Tom Tromey <tom@tromey.com>
5268 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5270 2019-07-17 Tom Tromey <tom@tromey.com>
5272 * tui/tui-winsource.h (struct tui_exec_info_window)
5273 (struct tui_source_window_base): Move from tui-data.h.
5274 * tui/tui-winsource.c: Move many method definitions from
5275 elsewhere. Remove "structuring" comments.
5276 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5277 (tui_source_window_base::refresh_window): Move to
5279 * tui/tui-win.c (tui_source_window_base::refresh_all)
5280 (tui_source_window_base::update_tab_width)
5281 (tui_source_window_base::set_new_height)
5282 (tui_source_window_base::do_make_visible_with_new_height): Move to
5284 * tui/tui-source.h: Update.
5285 * tui/tui-source.c (tui_source_window_base::reset): Move to
5287 * tui/tui-disasm.h: Update.
5288 * tui/tui-data.h (struct tui_exec_info_window): Move to
5290 (struct tui_source_window_base): Likewise.
5291 * tui/tui-data.c (tui_source_window_base::clear_detail)
5292 (tui_source_window_base, ~tui_source_window_base): Move to
5295 2019-07-17 Tom Tromey <tom@tromey.com>
5297 * tui/tui-win.c (tui_resize_all)
5298 (tui_source_window_base::update_tab_width)
5299 (tui_adjust_win_heights): Update.
5300 (tui_win_info::make_invisible_and_set_new_height): Rename from
5301 make_invisible_and_set_new_height.
5302 * tui/tui-data.h (struct tui_win_info)
5303 <make_invisible_and_set_new_height>: New method.
5305 2019-07-17 Tom Tromey <tom@tromey.com>
5307 * tui/tui.c: Update.
5308 * tui/tui-source.h (struct tui_source_window): Move from
5310 * tui/tui-layout.c: Update.
5311 * tui/tui-disasm.c: Update.
5312 * tui/tui-data.h (struct tui_source_window): Move to
5315 2019-07-17 Tom Tromey <tom@tromey.com>
5317 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5319 * tui/tui-data.h (struct tui_disasm_window): Move to
5322 2019-07-17 Tom Tromey <tom@tromey.com>
5324 * tui/tui-regs.h (struct tui_data_item_window): Move from
5326 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5327 * tui/tui-data.h (struct tui_data_item_window): Move to
5329 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5331 2019-07-17 Tom Tromey <tom@tromey.com>
5333 * tui/tui.c: Update.
5334 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5335 (tui_cmd_window::max_height): Move to tui-command.c.
5336 * tui/tui-layout.c: Update.
5337 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5338 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5340 * tui/tui-command.h (struct tui_cmd_window): Move from
5342 * tui/tui-command.c: Remove "structuring" comments.
5343 (tui_cmd_window::clear_detail)
5344 (tui_cmd_window::do_make_visible_with_new_height)
5345 (tui_cmd_window::max_height): Move from elsewhere.
5347 2019-07-17 Tom Tromey <tom@tromey.com>
5349 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5351 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5352 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5354 2019-07-17 Tom Tromey <tom@tromey.com>
5356 * tui/tui.c: Update.
5357 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5359 * tui/tui-windata.h: Remove file.
5360 * tui/tui-windata.c: Remove file.
5361 * tui/tui-win.c (tui_data_window::set_new_height)
5362 (tui_data_window::do_make_visible_with_new_height): Move to
5364 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5365 * tui/tui-regs.c: Remove "structuring" comments.
5366 (tui_data_window::first_data_item_displayed)
5367 (tui_data_window::delete_data_content_windows)
5368 (tui_data_window::erase_data_content)
5369 (tui_data_window::display_all_data)
5370 (tui_data_window::refresh_all)
5371 (tui_data_window::do_scroll_vertical)
5372 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5373 (tui_data_window::do_make_visible_with_new_height)
5374 (tui_data_window::refresh_window): Move from elsewhere.
5375 (_initialize_tui_regs): Move to end of file.
5376 * tui/tui-layout.c: Update.
5377 * tui/tui-hooks.c: Update.
5378 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5379 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5381 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5383 2019-07-17 Tom Tromey <tom@tromey.com>
5385 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5388 2019-07-17 Tom Tromey <tom@tromey.com>
5390 * tui/tui-win.c (tui_source_window_base::set_new_height)
5391 (tui_source_window_base::do_make_visible_with_new_height): Use
5392 m_has_locator field directly.
5393 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5395 (struct tui_source_window_base) <has_locator>: Likewise.
5397 2019-07-17 Tom Tromey <tom@tromey.com>
5399 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5401 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5403 * tui/tui-win.c (tui_source_window_base::set_new_height)
5404 (tui_source_window_base::set_new_height)
5405 (make_invisible_and_set_new_height)
5406 (tui_source_window_base::do_make_visible_with_new_height)
5407 (tui_source_window_base::do_make_visible_with_new_height):
5409 * tui/tui-layout.c (show_source_disasm_command, show_data)
5410 (show_source_or_disasm_and_command): Update.
5411 * tui/tui-layout.c (show_layout): Update.
5413 2019-07-17 Tom Tromey <tom@tromey.com>
5415 * tui/tui-layout.c (make_data_window): Remove.
5416 (show_data): Unify creation and re-initialization cases.
5418 2019-07-17 Tom Tromey <tom@tromey.com>
5420 * tui/tui-layout.c (make_source_window, make_disasm_window):
5422 (show_data): Unify creation and re-initialization cases.
5424 2019-07-17 Tom Tromey <tom@tromey.com>
5426 * tui/tui-layout.c (make_command_window): Remove.
5427 (show_source_disasm_command, show_source_or_disasm_and_command):
5428 Unify creation and re-initialization cases.
5430 2019-07-17 Tom Tromey <tom@tromey.com>
5432 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5433 creation and re-initialization cases.
5435 2019-07-17 Tom Tromey <tom@tromey.com>
5437 * tui/tui-regs.c (tui_get_register): Return void.
5439 2019-07-17 Tom Tromey <tom@tromey.com>
5441 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5444 2019-07-17 Tom Tromey <tom@tromey.com>
5446 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5449 2019-07-17 Tom Tromey <tom@tromey.com>
5451 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5452 * tui/tui-regs.c (tui_reg_layout): New function.
5453 (tui_show_registers, tui_reg_command): Use it.
5454 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5455 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5457 (tui_layout_command): Remove.
5459 2019-07-17 Tom Tromey <tom@tromey.com>
5461 * tui/tui-layout.h (tui/tui-layout): Return void.
5462 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5464 2019-07-17 Tom Tromey <tom@tromey.com>
5466 * tui/tui-layout.c (show_source_disasm_command, show_data):
5468 (reset_locator): Remove.
5469 (show_source_or_disasm_and_command): Update.
5471 2019-07-17 Tom Tromey <tom@tromey.com>
5473 * tui/tui-source.c (tui_source_window_base::reset): Remove
5475 * tui/tui-layout.c (make_command_window, make_source_window)
5476 (make_disasm_window, make_data_window)
5477 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5478 (reset_locator, show_source_or_disasm_and_command): Update.
5479 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5481 (struct tui_source_window_base) <reset>: Likewise.
5483 2019-07-17 Tom Tromey <tom@tromey.com>
5485 * tui/tui-layout.c (show_source_disasm_command): Use
5487 (reset_locator): New function.
5488 (init_and_make_win): Remove.
5489 (show_source_or_disasm_and_command): Use reset_locator.
5491 2019-07-17 Tom Tromey <tom@tromey.com>
5493 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5495 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5497 * tui/tui-source.c (tui_source_window_base::reset): New method.
5498 * tui/tui-layout.c (make_command_window): Don't call
5500 (make_source_window, make_disasm_window): Don't call
5501 make_source_or_disasm_window.
5502 (make_data_window): Don't call init_and_make_win. Change calling
5504 (show_source_disasm_command, show_data): Simplify.
5505 (make_source_or_disasm_window): Remove.
5506 (show_source_or_disasm_and_command): Simplify.
5507 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5508 (struct tui_source_window_base) <reset>: Likewise.
5509 <execution_info>: Remove initializer.
5510 * tui/tui-data.c (tui_source_window_base): Initialize
5513 2019-07-17 Tom Tromey <tom@tromey.com>
5515 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5518 2019-07-17 Tom Tromey <tom@tromey.com>
5520 * tui/tui.c (tui_rl_other_window): Update.
5521 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5522 superclass method first. Always iterate over regs_content.
5523 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5525 * tui/tui-win.c (tui_set_focus_command): Update.
5527 2019-07-17 Tom Tromey <tom@tromey.com>
5529 * tui/tui-win.c (tui_set_focus_command): Rename from
5530 tui_set_focus. Call tui_enable.
5531 (tui_set_focus_command): Remove.
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5535 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5537 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5539 (tui_data_window::refresh_window): Call refresh_window on data
5540 items. Always call superclass refresh_window.
5541 (tui_win_info::refresh): Remove.
5542 (tui_source_window_base::refresh_window): Update.
5543 (tui_refresh_all): Update.
5544 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5546 (show_source_or_disasm_and_command): Likewise.
5547 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5548 (struct tui_source_window_base) <refresh>: Likewise.
5550 2019-07-17 Tom Tromey <tom@tromey.com>
5552 * tui/tui-winsource.c (tui_clear_source_content)
5553 (tui_show_source_content): Update.
5554 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5555 whether content is empty.
5556 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5559 2019-07-17 Tom Tromey <tom@tromey.com>
5561 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5563 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5564 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5566 2019-07-17 Tom Tromey <tom@tromey.com>
5568 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5569 (struct tui_data_item_window): Update.
5571 2019-07-17 Tom Tromey <tom@tromey.com>
5573 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5574 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5579 * tui/tui-winsource.h (tui_erase_source_content)
5580 (tui_clear_source_content): Remove "display_prompt" parameter.
5581 * tui/tui-winsource.c (tui_update_source_window_as_is)
5582 (tui_update_source_windows_with_addr): Update.
5583 (tui_clear_source_content): Remove "display_prompt" parameter.
5584 (tui_erase_source_content): Likewise. Simplify.
5585 (tui_show_source_content): Update.
5586 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5587 * tui/tui-stack.c (tui_show_frame_info): Update.
5588 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5591 2019-07-17 Tom Tromey <tom@tromey.com>
5593 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5594 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5596 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5599 2019-07-17 Tom Tromey <tom@tromey.com>
5601 * tui/tui-winsource.c (tui_clear_source_content)
5602 (tui_show_source_content, tui_show_exec_info_content)
5603 (tui_clear_exec_info_content): Update.
5604 * tui/tui-stack.c (tui_show_locator_content): Update.
5605 (tui_show_frame_info): Update.
5606 * tui/tui-source.h (tui_source_window): Don't declare.
5607 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5608 from tui_source_is_displayed.
5609 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5611 (struct tui_source_window_base) <content_in_use>: New field. Now
5613 (struct tui_source_window) <showing_source_p>: New method.
5614 (TUI_SRC_WIN): Change cast.
5615 * tui/tui-data.c (tui_initialize_static_data): Update.
5617 2019-07-17 Tom Tromey <tom@tromey.com>
5619 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5621 * tui/tui-source.c (tui_source_window::location_matches_p): New
5623 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5625 * tui/tui-data.h (struct tui_source_window_base)
5626 <location_matches_p>: New method.
5627 (struct tui_source_window, struct tui_disasm_window)
5628 <location_matches_p>: Likewise.
5630 2019-07-17 Tom Tromey <tom@tromey.com>
5632 * tui/tui-win.c (tui_set_win_height_command): Rename from
5634 (tui_set_win_height_command): Remove.
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5638 * tui/tui-source.c (tui_source_window): New constructor. Add
5640 (~tui_source_window): New destructor.
5641 (tui_source_window::style_changed): New method.
5642 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5643 (tui_attach_detach_observers): Update.
5644 * tui/tui-data.h (struct tui_source_window): Make constructor not
5645 inline. Add destructor.
5646 (struct tui_source_window) <style_changed>: New method.
5647 <m_observable>: New member.
5649 2019-07-17 Tom Tromey <tom@tromey.com>
5651 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5652 * tui/tui-win.c (tui_resize_all): Fix typo.
5654 2019-07-17 Tom Tromey <tom@tromey.com>
5656 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5657 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5658 (tui_refresh_all): Remove "list" parameter. Use foreach.
5659 * tui/tui-win.c (window_name_completer): Use foreach.
5660 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5661 (update_tab_width): Likewise.
5662 * tui/tui-layout.c (show_layout): Update.
5663 * tui/tui-data.h (class tui_window_iterator): New.
5664 (struct all_tui_windows): New.
5665 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5667 2019-07-17 Tom Tromey <tom@tromey.com>
5669 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5670 parameter. Don't reference globals.
5671 (tui_reg_command): Update.
5673 2019-07-17 Tom Tromey <tom@tromey.com>
5675 * tui/tui-regs.c (tui_show_registers): Simplify.
5677 2019-07-17 Tom Tromey <tom@tromey.com>
5679 * tui/tui-regs.c (tui_show_registers): Update.
5680 (tui_show_register_group): Add win_info parameter.
5682 2019-07-17 Tom Tromey <tom@tromey.com>
5684 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5685 Rename from tui_display_reg_element_at_line.
5686 (tui_data_window::display_registers_from_line): Update.
5687 * tui/tui-data.h (struct tui_data_window)
5688 <display_reg_element_at_line>: New method.
5690 2019-07-17 Tom Tromey <tom@tromey.com>
5692 * tui/tui-regs.h (tui_display_registers_from)
5693 (tui_display_registers_from_line): Don't declare.
5694 * tui/tui-windata.c (tui_data_window::display_all_data)
5695 (tui_data_window::refresh_all)
5696 (tui_data_window::do_scroll_vertical): Update.
5697 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5698 from tui_display_registers_from.
5699 (tui_display_reg_element_at_line): Update.
5700 (tui_data_window::display_registers_from_line): Rename from
5701 tui_display_registers_from_line.
5702 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5703 display_registers_from_line>: New methods.
5705 2019-07-17 Tom Tromey <tom@tromey.com>
5707 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5708 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5709 from tui_erase_data_content.
5710 (tui_data_window::display_all_data)
5711 (tui_data_window::refresh_all)
5712 (tui_data_window::do_scroll_vertical): Update.
5713 * tui/tui-regs.c (tui_show_registers): Update.
5714 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5717 2019-07-17 Tom Tromey <tom@tromey.com>
5719 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5722 (tui_data_window::delete_data_content_windows): Rename from
5723 tui_delete_data_content_windows.
5724 (tui_data_window::display_all_data)
5725 (tui_data_window::do_scroll_vertical): Update.
5726 * tui/tui-data.h (struct tui_data_window)
5727 <delete_data_content_windows>: New method.
5729 2019-07-17 Tom Tromey <tom@tromey.com>
5731 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5732 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5734 2019-07-17 Tom Tromey <tom@tromey.com>
5736 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5737 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5738 from tui_display_all_data.
5740 (tui_data_window::do_make_visible_with_new_height): Update.
5741 * tui/tui-regs.c (tui_show_registers): Update.
5742 * tui/tui-layout.c (tui_set_layout): Update.
5743 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5746 2019-07-17 Tom Tromey <tom@tromey.com>
5748 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5749 * tui/tui-windata.c (tui_display_data_from): Remove.
5750 (tui_data_window::refresh_all): Update.
5752 2019-07-17 Tom Tromey <tom@tromey.com>
5754 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5755 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5756 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5757 tui_display_registers_from_line.
5758 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5759 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5760 "force_display" parameter.
5762 2019-07-17 Tom Tromey <tom@tromey.com>
5764 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5766 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5767 Rename from tui_first_reg_element_no_inline.
5768 (tui_display_reg_element_at_line)
5769 (tui_display_registers_from_line): Update.
5770 * tui/tui-data.h (struct tui_data_window)
5771 <first_reg_element_no_inline>: New method.
5773 2019-07-17 Tom Tromey <tom@tromey.com>
5775 * tui/tui-windata.c (tui_display_data_from)
5776 (tui_data_window::do_scroll_vertical): Update.
5777 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5778 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5779 Rename from tui_line_from_reg_element_no.
5780 (tui_display_registers_from_line): Update.
5781 * tui/tui-data.h (struct tui_data_window)
5782 <line_from_reg_element_no>: New method.
5784 2019-07-17 Tom Tromey <tom@tromey.com>
5786 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5787 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5788 tui_last_regs_line_no.
5789 (tui_display_reg_element_at_line)
5790 (tui_display_registers_from_line): Update.
5791 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5794 2019-07-17 Tom Tromey <tom@tromey.com>
5797 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5798 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5799 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5800 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5801 (tui_update_breakpoint_info): Likewise.
5802 * tui/tui-hooks.c (tui_event_create_breakpoint)
5803 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5806 2019-07-17 Tom Tromey <tom@tromey.com>
5808 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5810 2019-07-17 Tom Tromey <tom@tromey.com>
5812 * tui/tui-winsource.c (tui_update_source_window_as_is)
5813 (tui_update_source_windows_with_addr): Update.
5814 * tui/tui-source.h (tui_set_source_content)
5815 (tui_show_symtab_source): Add "win_info" parameter.
5816 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5818 (tui_show_symtab_source): Likewise.
5820 2019-07-17 Tom Tromey <tom@tromey.com>
5822 * tui/tui-wingeneral.c
5823 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5825 2019-07-17 Tom Tromey <tom@tromey.com>
5827 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5828 (struct tui_cmd_window) <can_scroll>: New method.
5829 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5832 2019-07-17 Tom Tromey <tromey@adacore.com>
5834 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5835 do_field_signed>: Rename. Change type of "value".
5836 * ui-out.c (ui_out::field_signed): Rename from field_int.
5837 Change type of "value".
5838 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5840 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5841 do_field_int. Change type of "value".
5842 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5843 do_field_int. Change type of "value".
5844 * tracepoint.c (trace_status_mi, tfind_1)
5845 (print_one_static_tracepoint_marker): Update.
5846 * thread.c (print_thread_info_1, print_selected_thread_frame):
5848 * stack.c (print_frame, print_frame_info): Update.
5849 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5851 * source.c (print_source_lines_base): Update.
5852 * skip.c (info_skip_command): Update.
5853 * record-btrace.c (btrace_ui_out_decode_error)
5854 (btrace_call_history_src_line): Update.
5855 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5857 * progspace.c (print_program_space): Update.
5858 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5859 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5860 do_field_int. Change type of "value".
5861 * mi/mi-out.c (mi_ui_out::do_table_begin)
5862 (mi_ui_out::do_table_header): Update.
5863 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5865 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5866 (mi_cmd_data_list_changed_registers, output_register)
5867 (mi_cmd_data_read_memory, mi_load_progress)
5868 (mi_cmd_trace_frame_collected): Update.
5869 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5871 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5872 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5873 (mi_cmd_var_list_children, varobj_update_one): Update.
5874 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5875 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5876 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5877 * inferior.c (print_inferior): Update.
5878 * gdb_bfd.c (print_one_bfd): Update.
5879 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5881 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5882 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5883 do_field_int. Change type of "value".
5884 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5885 do_field_int. Change type of "value".
5886 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5887 (print_one_breakpoint_location, print_it_catch_fork)
5888 (print_one_catch_fork, print_it_catch_vfork)
5889 (print_one_catch_vfork, print_it_catch_solib)
5890 (print_it_catch_exec, print_it_ranged_breakpoint)
5891 (print_mention_watchpoint, print_mention_masked_watchpoint)
5892 (bkpt_print_it, update_static_tracepoint): Update.
5893 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5894 * break-catch-syscall.c (print_it_catch_syscall): Update.
5895 * ada-tasks.c (print_ada_task_info): Update.
5896 * ada-lang.c (print_it_exception, print_mention_exception):
5899 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5901 PR breakpoints/24541
5902 * gdbarch.c: Regenerate.
5903 * gdbarch.h: Regenerate.
5904 * gdbarch.sh: Adjust return type and parameter types for
5905 'stap_adjust_register'.
5906 (i386_stap_adjust_register): Adjust signature and return new
5908 * stap-probe.c (stap_parse_register_operand): Adjust use of
5909 'gdbarch_stap_adjust_register'.
5911 2019-07-17 Tom Tromey <tromey@adacore.com>
5913 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5915 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5917 (struct s390_process_info): Add initializers.
5918 (s390_add_process): Use new.
5919 (s390_linux_nat_target::low_forget_process): Use delete.
5920 (s390_linux_nat_target::low_new_fork)
5921 (s390_linux_nat_target::stopped_by_watchpoint)
5922 (s390_linux_nat_target::low_prepare_to_resume)
5923 (s390_linux_nat_target::insert_watchpoint)
5924 (s390_linux_nat_target::insert_hw_breakpoint)
5925 (s390_linux_nat_target::remove_watchpoint)
5926 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5928 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5930 * aarch64-fbsd-nat.c: Include regcache.h.
5931 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5933 (aarch64_fbsd_nat_target::fetch_registers)
5934 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5936 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5938 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5940 * fbsd-nat.c: Include gdbarch.h.
5942 2019-07-15 Tom Tromey <tromey@adacore.com>
5944 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5946 2019-07-15 Tom Tromey <tromey@adacore.com>
5948 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5949 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5950 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5951 * cli-out.c (cli_ui_out::do_field_int): New method.
5952 * ui-out.c (ui_out::field_unsigned): New method.
5953 * symfile.c (generic_load): Use field_unsigned.
5954 (print_transfer_performance): Likewise.
5955 * record-btrace.c (ui_out_field_uint): Remove.
5956 (btrace_call_history_insn_range, btrace_call_history): Use
5958 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5960 * ui-out.h (class ui_out) <field_unsigned>: New method.
5961 <do_field_unsigned>: Likewise.
5963 2019-07-15 Tom Tromey <tromey@adacore.com>
5965 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5966 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5967 * target.c (flash_erase_command): Use field_string.
5968 * infrun.c (print_signal_received_reason): Use field_string.
5969 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5970 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5972 * ada-tasks.c (print_ada_task_info): Use field_string.
5974 2019-07-15 Tom Tromey <tromey@adacore.com>
5976 * target.c (flash_erase_command): Use field_core_addr.
5977 * symfile.c (generic_load): Use field_core_addr.
5978 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5979 Use field_core_addr.
5980 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5983 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5985 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5986 value if its desired type is smaller than a CORE_ADDR and signed.
5988 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5990 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5991 of changes to field names, and use new is_reference field to
5992 decide if a property is a reference or not.
5993 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5995 (struct dwarf2_property_baton): Update header comment, rename
5996 'referenced_type' to 'property_type' and update comments.
5997 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5998 default property type, store in property baton, update to take
5999 accound of renamed field.
6000 (read_func_scope): Update call to attr_to_dynamic_prop.
6001 (read_array_type): Likewise.
6002 (dwarf2_per_cu_addr_sized_int_type): New function.
6003 (read_subrange_index_type): Move type finding code to
6004 dwarf2_per_cu_addr_sized_int_type.
6005 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6006 (dwarf2_per_cu_addr_type): New function.
6007 (set_die_type): Update calls to attr_to_dynamic_prop.
6009 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6011 * dwarf2read.c (read_subrange_index_type): New function.
6012 (read_subrange_type): Move code into new function and call it.
6013 * gdbtypes.c (create_range_type): Add some asserts.
6015 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6017 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6018 update return statements.
6019 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6020 declaration, and update comment to match.
6021 * gdbtypes.c (resolve_dynamic_array): Update call to
6022 dwarf2_evaluate_property to match new return type.
6024 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6026 * valarith.c (value_subscripted_rvalue): Change lowerbound
6027 parameter type from int to LONGEST.
6028 * value.h (value_subscripted_rvalue): Likewise in declaration.
6030 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6032 * cli/cli-utils.c (info_print_command_completer): New function.
6033 * cli/cli-utils.h: Add 'completer.h' include, and forward
6034 declaration for 'struct cmd_list_element'.
6035 (info_print_command_completer): Declare.
6036 * stack.c (_initialize_stack): Add completer for 'info locals' and
6038 * symtab.c (_initialize_symtab): Add completer for 'info
6039 variables' and 'info functions'.
6040 * NEWS: Mention completion for additional info commands.
6042 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6044 * cli/cli-utils.c (extract_info_print_args): Delete.
6045 (extract_arg_maybe_quoted): Delete.
6046 (info_print_options_defs): New variable.
6047 (make_info_print_options_def_group): New function.
6048 (extract_info_print_options): Define new function.
6049 * cli/cli-utils.h (extract_info_print_args): Delete.
6050 (struct info_print_options): New structure.
6051 (extract_info_print_options): Declare new function.
6052 * stack.c (info_locals_command): Update to use new
6053 extract_info_print_options, also add a header comment.
6054 (info_args_command): Likewise.
6055 * symtab.c (info_variables_command): Likewise.
6056 (info_functions_command): Likewise.
6058 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6060 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6061 to extract string arguments.
6062 * common/common-utils.c (extract_string_maybe_quoted): New function.
6063 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6065 2019-07-11 Tom Tromey <tromey@adacore.com>
6067 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6068 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6069 * top.h (gdbinit): Don't declare.
6070 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6072 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6073 * top.c (gdb_init): Don't call init_cli_cmds.
6075 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6077 2019-07-11 Tom Tromey <tromey@adacore.com>
6079 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6080 after it has been moved.
6082 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6084 * valops.c (value_must_coerce_to_target): Change return type to
6086 * value.h (value_must_coerce_to_target): Likewise.
6088 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6090 * breakpoint.c (is_hardware_watchpoint): Remove
6091 forward-declaration.
6092 (is_masked_watchpoint): Change return type to bool.
6093 (is_tracepoint): Likewise.
6094 (is_breakpoint): Likewise.
6095 (is_hardware_watchpoint): Likewise.
6096 (is_watchpoint): Likewise.
6097 (is_no_memory_software_watchpoint): Likewise.
6098 (is_catchpoint): Likewise.
6099 (breakpoint_1): Make FILTER parameter's return type bool.
6100 is_masked_watchpoint): Change return type to bool.
6101 (save_breakpoints): Make FILTER parameter's return type bool.
6102 * breakpoint.h (is_breakpoint): Change return type to bool.
6103 (is_watchpoint): Likewise.
6104 (is_catchpoint): Likewise.
6105 (is_tracepoint): Likewise.
6107 2019-07-10 Tom Tromey <tom@tromey.com>
6109 * defs.h: Don't include gdbarch.h.
6110 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6111 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6112 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6113 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6114 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6115 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6116 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6117 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6118 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6119 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6120 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6121 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6122 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6123 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6124 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6125 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6126 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6127 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6128 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6129 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6130 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6131 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6132 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6133 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6134 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6135 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6136 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6138 2019-07-10 Tom Tromey <tromey@adacore.com>
6140 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6141 * breakpoint.c (init_ada_exception_breakpoint): Register as
6143 (print_one_breakpoint_location, print_one_breakpoint): Use
6144 is_ada_exception_catchpoint.
6145 * ada-lang.c (class ada_catchpoint_location): Pass
6146 bp_loc_software_breakpoint to bp_location constructor.
6147 (is_ada_exception_catchpoint): New function.
6149 2019-07-10 Tom Tromey <tromey@adacore.com>
6151 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6153 (struct arm_exidx_entry): New method operator<.
6154 (struct arm_exidx_data) <section_maps>: Change type.
6155 (arm_exidx_data_free): Remove.
6156 (arm_exidx_data_key): Change type. Move lower.
6157 (arm_exidx_new_objfile): Update.
6158 (arm_compare_exidx_entries): Remove.
6159 (arm_find_exidx_entry, _initialize_arm_tdep)
6161 2019-07-10 Tom Tromey <tromey@adacore.com>
6163 * solib-spu.c (ocl_program_data_key): Change type.
6164 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6167 2019-07-10 Tom Tromey <tromey@adacore.com>
6169 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6170 (struct solib_aix_inferior_data) <library_list>: Change type.
6171 (solib_aix_inferior_data_handle): Change type.
6172 (get_solib_aix_inferior_data): Update.
6173 (solib_aix_free_library_list): Remove.
6174 (library_list_start_library): Update.
6175 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6177 (solib_aix_get_library_list)
6178 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6179 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6181 2019-07-10 Tom Tromey <tromey@adacore.com>
6183 * solib-dsbt.c (struct dsbt_info): Add initializers.
6184 (solib_dsbt_pspace_data): Change type.
6185 (dsbt_pspace_data_cleanup): Remove.
6186 (get_dsbt_info, _initialize_dsbt_solib): Update.
6188 2019-07-10 Tom Tromey <tromey@adacore.com>
6190 * spu-tdep.c (spu_overlay_data): Change type.
6191 (spu_get_overlay_table, spu_overlay_new_objfile)
6192 (_initialize_spu_tdep): Update.
6194 2019-07-10 Tom Tromey <tromey@adacore.com>
6196 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6198 (dbx_objfile_data_key): Change type and declare later.
6199 (DBX_SYMFILE_INFO): Rewrite.
6200 * dbxread.c (dbx_objfile_data_key): Change type.
6201 (dbx_symfile_init): Update.
6202 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6203 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6204 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6206 2019-07-10 Tom Tromey <tromey@adacore.com>
6208 * jit.c (jit_program_space_key): Change type. Move lower.
6209 (get_jit_program_space_data): Update.
6210 (jit_program_space_data_cleanup): Remove.
6211 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6213 (struct jit_program_space_data): Add initializers.
6215 2019-07-10 Tom Tromey <tromey@adacore.com>
6217 * solib-darwin.c (struct darwin_info): Add initializers.
6218 (solib_darwin_pspace_data): Change type.
6219 (darwin_pspace_data_cleanup): Remove.
6220 (get_darwin_info, _initialize_darwin_solib): Update.
6222 2019-07-10 Tom Tromey <tromey@adacore.com>
6224 * remote-sim.c (struct sim_inferior_data): Add initializers,
6225 constructor, and destructor.
6226 (sim_inferior_data_key): Change type. Move lower.
6227 (check_for_duplicate_sim_descriptor): Update.
6228 (get_sim_inferior_data): Use new. Update.
6229 (~sim_inferior_data_cleanup): Rename from
6230 sim_inferior_data_cleanup. Simplify.
6231 (gdbsim_close_inferior, simulator_command)
6232 (sim_command_completer, _initialize_remote_sim): Update.
6233 (next_pid, INITIAL_PID): Move earlier.
6235 2019-07-10 Tom Tromey <tromey@adacore.com>
6237 * python/python-internal.h (create_thread_object): Return
6239 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6240 * python/py-inferior.c (struct threadlist_entry): Add
6242 <thread_obj>: Now a gdbpy_ref.
6243 (thread_to_thread_object): Update.
6244 (add_thread_object): Use new.
6245 (delete_thread_object): Use delete.
6246 (infpy_threads): Update.
6247 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6250 2019-07-10 Tom Tromey <tromey@adacore.com>
6252 * valops.c (value_cast): Specialize error message for Ada.
6254 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6256 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6258 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6260 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6261 bpstat_should_step): Return bool, adjust comments.
6262 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6263 bpstat_should_step): Likewise.
6265 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6267 * features/Makefile: Use feature target descriptions for Arm.
6268 * features/arm/arm-core.c: Generate new file.
6269 * features/arm/arm-fpa.c: Likewise.
6270 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6271 * features/arm/arm-m-profile.c: Likewise.
6272 * features/arm/arm-vfpv2.c: Likewise.
6273 * features/arm/arm-vfpv3.c: Likewise.
6274 * features/arm/xscale-iwmmxt.c: Likewise.
6275 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6277 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6279 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6282 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6284 * features/aarch64-pauth.c: Regenerate.
6286 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6288 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6290 (bpstat_what): Use false instead of 0.
6292 2019-07-09 Pedro Alves <palves@redhat.com>
6294 * break-catch-throw.c (is_exception_catchpoint): New.
6295 * breakpoint.c (print_one_breakpoint_location): New parameter
6296 'raw_loc'. Handle it. Use
6297 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6298 looking at the breakpoint's type.
6299 (print_one_breakpoint): If handling "maint info breakpoints", also
6300 print locations of exception catchpoints.
6301 * breakpoint.h (is_exception_catchpoint): Declare.
6303 2019-07-09 Pedro Alves <palves@redhat.com>
6305 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6307 (allocate_location_exception_catchpoint): New.
6308 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6309 (initialize_throw_catchpoint_ops): Install
6310 allocate_location_exception_catchpoint as allocate_location
6312 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6313 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6315 (breakpoint_address_is_meaningful): Delete.
6316 (bl_address_is_meaningful): New.
6317 (breakpoint_locations_match): Adjust comment.
6318 (bp_location_from_bp_type): New, factored out of...
6319 (bp_location::bp_location(breakpoint *)): ... this.
6320 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6322 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6323 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6324 breakpoint_address_is_meaningful.
6325 (bp_locations_compare): Adjust comment.
6326 (update_global_location_list): Use bl_address_is_meaningful
6327 instead of breakpoint_address_is_meaningful.
6328 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6330 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6331 * python/py-breakpoint.c (bppy_get_location): No longer check
6332 whether location is null.
6334 2019-07-09 Pedro Alves <palves@redhat.com>
6337 * breakpoint.c (print_one_breakpoint_location): Remove
6338 single-location assert.
6340 2019-07-09 Tom Tromey <tom@tromey.com>
6342 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6343 * configure: Rebuild.
6344 * configure.ac: Change common to gdbsupport.
6345 * gdbsupport: Rename from common.
6346 * acinclude.m4: Change common to gdbsupport.
6347 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6348 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6350 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6351 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6352 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6353 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6354 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6355 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6356 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6357 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6358 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6359 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6360 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6361 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6362 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6363 coff-pe-read.c, command.h, compile/compile-c-support.c,
6364 compile/compile-c.h, compile/compile-cplus-symbols.c,
6365 compile/compile-cplus-types.c, compile/compile-cplus.h,
6366 compile/compile-loc2c.c, compile/compile.c, completer.c,
6367 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6368 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6369 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6370 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6371 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6372 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6373 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6374 features/aarch64-core.c, features/aarch64-fpu.c,
6375 features/aarch64-pauth.c, features/aarch64-sve.c,
6376 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6377 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6378 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6379 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6380 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6381 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6382 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6383 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6384 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6385 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6386 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6387 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6388 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6389 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6390 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6391 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6392 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6393 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6394 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6395 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6396 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6397 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6398 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6399 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6400 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6401 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6402 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6403 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6404 minsyms.c, mips-linux-tdep.c, namespace.h,
6405 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6406 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6407 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6408 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6409 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6410 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6411 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6412 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6413 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6414 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6415 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6416 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6417 procfs.c, producer.c, progspace.h, psymtab.h,
6418 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6419 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6420 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6421 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6422 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6423 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6424 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6425 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6426 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6427 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6428 target-memory.c, target.c, target.h, target/waitstatus.c,
6429 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6430 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6431 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6432 unittests/array-view-selftests.c,
6433 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6434 unittests/common-utils-selftests.c,
6435 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6436 unittests/format_pieces-selftests.c,
6437 unittests/function-view-selftests.c,
6438 unittests/lookup_name_info-selftests.c,
6439 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6440 unittests/mkdir-recursive-selftests.c,
6441 unittests/observable-selftests.c,
6442 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6443 unittests/parse-connection-spec-selftests.c,
6444 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6445 unittests/scoped_fd-selftests.c,
6446 unittests/scoped_mmap-selftests.c,
6447 unittests/scoped_restore-selftests.c,
6448 unittests/string_view-selftests.c, unittests/style-selftests.c,
6449 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6450 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6451 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6452 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6453 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6454 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6456 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6458 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6460 (decode_digits_ordinary): Set explicit_line field in sal.
6461 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6462 symtab_and_line that was set on an explicit line number in
6463 assembler code. Do always update the recorded symtab and line if
6464 we do skip the prologue.
6466 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6468 * breakpoint.c (set_breakpoint_location_function): Remove
6469 explicit_loc parameter.
6470 (momentary_breakpoint_from_master): Update call to
6471 set_breakpoint_location_function.
6472 (add_location_to_breakpoint): Likewise.
6474 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6476 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6477 required features based on default bfd type when no specific bfd
6480 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6482 * NEWS: Mention that GDB printf and eval commands can now print
6483 C-style and Ada-style convenience var strings without
6484 calling the inferior.
6485 * printcmd.c (printf_c_string): Locally print GDB internal var
6486 instead of transiting via the inferior.
6487 (printf_wide_c_string): Likewise.
6489 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6491 PR breakpoints/25011
6492 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6494 2019-07-04 Tom Tromey <tom@tromey.com>
6497 * tui/tui-winsource.c (tui_clear_source_content): Update.
6498 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6499 (tui_update_breakpoint_info): Update.
6500 (tui_set_exec_info_content): Update.
6501 * tui/tui-source.c (tui_set_source_content_nil): Update.
6502 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6504 * tui/tui-data.h (enum tui_bp_flag): New.
6505 (tui_bp_flags): New enum flags type.
6506 (struct tui_source_element) <break_mode>: Change type. Rename
6508 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6509 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6511 * tui/tui-winsource.h: Fix comment.
6513 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6515 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6516 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6517 (store_fpregs_to_thread)
6518 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6519 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6520 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6521 (IWMMXT_REGS_SIZE): Add define.
6522 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6523 (fetch_vfp_regs, store_vfp_regs)
6524 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6525 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6527 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6529 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6531 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6532 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6533 (ARM_INT_REGISTER_SIZE): ...to this.
6534 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6535 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6536 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6537 (arm_linux_collect_gregset, supply_nwfpe_register)
6538 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6540 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6541 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6542 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6543 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6544 (arm_return_in_memory, arm_store_return_value)
6545 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6546 (arm_record_ld_st_multiple): Likewise.
6547 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6548 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6550 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6552 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6553 AARCH64_DISPLACED_MODIFIED_INSNS.
6554 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6555 (aarch64_displaced_step_copy_insn): Likewise.
6556 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6557 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6558 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6559 ARM_DISPLACED_MODIFIED_INSNS.
6560 * arm-tdep.c (arm_gdbarch_init): Likewise.
6561 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6562 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6563 (struct arm_displaced_step_closure): Use
6564 ARM_DISPLACED_MODIFIED_INSNS.
6566 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6568 * features/Makefile: Remove unused xml files.
6569 * features/aarch64.xml: Remove.
6570 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6571 * features/i386/amd64-avx-avx512.xml: Remove.
6572 * features/i386/amd64-avx-linux.xml: Remove.
6573 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6574 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6575 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6576 * features/i386/amd64-avx-mpx.xml: Remove.
6577 * features/i386/amd64-avx.xml: Remove.
6578 * features/i386/amd64-linux.xml: Remove.
6579 * features/i386/amd64-mpx-linux.xml: Remove.
6580 * features/i386/amd64-mpx.xml: Remove.
6581 * features/i386/amd64.xml: Remove.
6582 * features/i386/i386-avx-avx512-linux.xml: Remove.
6583 * features/i386/i386-avx-avx512.xml: Remove.
6584 * features/i386/i386-avx-linux.xml: Remove.
6585 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6586 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6587 * features/i386/i386-avx-mpx-linux.xml: Remove.
6588 * features/i386/i386-avx-mpx.xml: Remove.
6589 * features/i386/i386-avx.xml: Remove.
6590 * features/i386/i386-linux.xml: Remove.
6591 * features/i386/i386-mmx-linux.xml: Remove.
6592 * features/i386/i386-mmx.xml: Remove.
6593 * features/i386/i386-mpx-linux.xml: Remove.
6594 * features/i386/i386-mpx.xml: Remove.
6595 * features/i386/i386.xml: Remove.
6596 * features/i386/x32-avx-avx512-linux.xml: Remove.
6597 * features/i386/x32-avx-linux.xml: Remove.
6598 * features/i386/x32-linux.xml: Remove.
6600 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6602 * regformats/aarch64.dat: Remove.
6603 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6604 * regformats/i386/amd64-avx-linux.dat: Remove.
6605 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6606 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6607 * regformats/i386/amd64-linux.dat: Remove.
6608 * regformats/i386/amd64-mpx-linux.dat: Remove.
6609 * regformats/i386/amd64.dat: Remove.
6610 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6611 * regformats/i386/i386-avx-linux.dat: Remove.
6612 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6613 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6614 * regformats/i386/i386-linux.dat: Remove.
6615 * regformats/i386/i386-mmx-linux.dat: Remove.
6616 * regformats/i386/i386-mpx-linux.dat: Remove.
6617 * regformats/i386/i386.dat: Remove.
6618 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6619 * regformats/i386/x32-avx-linux.dat: Remove.
6620 * regformats/i386/x32-linux.dat: Remove.
6622 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6624 * aarch64-tdep.c: Remove xml self tests.
6625 * amd64-linux-tdep.c: Likewise.
6626 * amd64-tdep.c: Likewise.
6627 * i386-linux-tdep.c: Likewise.
6628 * i386-tdep.c: Likewise.
6630 2019-07-03 Pedro Alves <palves@redhat.com>
6633 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6634 (pipe_cmd_option_defs): New.
6635 (make_pipe_cmd_options_def_group): New.
6636 (pipe_command): Use gdb::option::process_options.
6637 (pipe_command_completer): New function.
6638 (_initialize_cli_cmds): Install completer for "pipe" command.
6640 2019-07-03 Pedro Alves <palves@redhat.com>
6642 * cli/cli-option.c (union option_value) <string>: New field.
6643 (struct option_def_and_value): Add ctor, move ctor, dtor and
6644 use DISABLE_COPY_AND_ASSIGN.
6645 (option_def_and_value::clear_value): New.
6646 (parse_option, save_option_value_in_ctx, get_val_type_str)
6647 (add_setshow_cmds_for_options): Handle var_string.
6648 * cli-option.h (union option_def::var_address) <string>: New
6650 (struct string_option_def): New.
6651 * maint-test-options.c (struct test_options_opts): Add default
6652 ctor and use DISABLE_COPY_AND_ASSIGN.
6653 <string_opt>: New field.
6654 (test_options_opts::~test_options_opts): New.
6655 (test_options_opts::dump): Also dump "-string".
6656 (test_options_option_defs): Install "string.
6658 2019-07-03 Pedro Alves <palves@redhat.com>
6660 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6661 option_value with a null enumeration.
6662 (complete_options): Save the option values in the context.
6663 (save_option_value_in_ctx): New, factored out from ...
6664 (process_options): ... here.
6665 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6667 * maint-test-options.c (test_options_opts::dump): New, factored
6669 (maintenance_test_options_command_mode): ... here.
6670 (maintenance_test_options_command_completion_result): Delete.
6671 (maintenance_test_options_command_completion_text): Update
6673 (maintenance_show_test_options_completion_result): Change
6674 prototype. Just print
6675 maintenance_test_options_command_completion_text.
6676 (save_completion_result): New.
6677 (maintenance_test_options_completer_mode): Pass options context to
6678 complete_options, and then save a dump.
6679 (_initialize_maint_test_options): Use add_cmd to install "maint
6680 show test-options-completion-result".
6682 2019-07-03 Pedro Alves <palves@redhat.com>
6684 * NEWS (New commands): Mention "with" and "maint with".
6685 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6686 (with_command, with_command_completer): New.
6687 (pipe_command): Adjust to new repeat_previous
6689 (_initialize_cli_cmds): Install the "with" command and its "w"
6691 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6693 * cli/cli-setshow.c (parse_cli_var_uinteger)
6694 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6695 argument strings for all var_types.
6696 (get_setshow_command_value_string): New, factored out from ...
6697 (do_show_command): ... this.
6698 * cli/cli-setshow.h: Include <string>.
6699 (get_setshow_command_value_string): Declare.
6700 * command.h (repeat_previous): Now returns const char *. Adjust
6702 * maint.c: Include "cli/cli-cmds.h".
6703 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6704 (_initialize_maint_cmds): Register the "maintenance with" command.
6705 * top.c (repeat_previous): Move bits from pipe_command here:
6706 Return the saved command line, if any; error out if there's no
6707 command to relaunch.
6709 2019-07-03 Pedro Alves <palves@redhat.com>
6711 * NEWS (New commands): Mention "maint set/show test-settings"
6712 instead of "maint test-settings".
6713 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6714 (maintenance_test_settings_set_list): Rename to ...
6715 (maintenance_set_test_settings_list): ... this.
6716 (maintenance_test_settings_show_list): Rename to ...
6717 (maintenance_show_test_settings_list): ... this.
6718 (maintenance_test_settings_cmd): Delete.
6719 (maintenance_test_settings_set_cmd): ...
6720 (maintenance_set_test_settings_cmd): ... this.
6721 (maintenance_test_settings_show_cmd): ...
6722 (maintenance_show_test_settings_cmd): ... this.
6723 (maintenance_test_settings_show_value_cmd):
6724 (maintenance_show_test_settings_value_cmd): ... this.
6725 (_initialize_maint_test_settings): No longer install the "maint
6726 test-settings" prefix command. Rename "maint test-settings set"
6727 to "maint set test-settings", and "maint test-settings show" to
6728 "maint show test-settings". Adjust all subcommands.
6730 2019-07-03 Pedro Alves <palves@redhat.com>
6732 * maint-test-settings.c: Fix file's intro comment. Replace all
6733 references to "test-options" with references to "test-settings",
6736 2019-07-03 Pedro Alves <palves@redhat.com>
6738 * maint-test-settings.c (maintenance_test_settings_xxx)
6739 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6741 (maintenance_test_settings_enums): Use them.
6742 (maintenance_test_settings_enum): Default to
6743 maintenance_test_settings_xxx.
6744 (_initialize_maint_test_settings): Initialize
6745 MAINTENANCE_TEST_SETTINGS_FILENAME.
6747 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6749 * breakpoint.h (remove_breakpoints_inf): Change return type to
6750 void, move function documentation here.
6751 * breakpoint.c (remove_breakpoints_inf): Change return type to
6752 void, move function documentation to header.
6754 2019-07-02 Pedro Alves <palves@redhat.com>
6756 * NEWS (Completion improvements): Mention "info threads".
6757 * thread.c (struct info_threads_opts, info_threads_option_defs)
6758 (make_info_threads_options_def_group): New.
6759 (info_threads_command): Use gdb::option::process_options.
6760 (info_threads_command_completer): New.
6761 (_initialize_thread): Use gdb::option::build_help to build the
6762 help text for "info threads".
6764 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6766 * defs.h (generic_load): Move from here...
6767 * symfile.h (generic_load): ... to here. Rename name parameter
6769 * symfile.c (generic_load): Add comment.
6771 2019-07-01 Tom Tromey <tromey@adacore.com>
6774 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6775 declaration of without_params. Fix formatting.
6777 2019-07-01 Tom Tromey <tromey@adacore.com>
6779 * ada-exp.y (find_primitive_type): Update.
6780 * ada-lang.h (ada_lookup_symbol): Update.
6781 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6783 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6785 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6787 PR breakpoints/24541
6788 * gdbarch.c: Regenerate.
6789 * gdbarch.h: Regenerate.
6790 * gdbarch.sh: Add 'stap_adjust_register'.
6791 * i386-tdep.c: Include '<unordered_set>'.
6792 (i386_stap_adjust_register): New function.
6793 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6794 * stap-probe.c (stap_parse_register_operand): Call
6795 'gdbarch_stap_adjust_register'.
6797 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6800 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6801 * python/python.c (do_start_initialization): Use 'xmalloc'
6802 instead of 'PyMem_Malloc'.
6804 2019-06-28 Tom Tromey <tromey@adacore.com>
6806 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6809 2019-06-27 Tom Tromey <tromey@adacore.com>
6811 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6813 (arm_find_mapping_symbol, arm_record_special_symbol)
6814 (_initialize_arm_tdep): Update.
6815 (arm_objfile_data_free): Remove.
6817 2019-06-27 Tom Tromey <tromey@adacore.com>
6819 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6820 to cp_print_static_field.
6822 2019-06-26 Tom Tromey <tromey@adacore.com>
6824 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6825 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6828 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6830 * features/aarch64-core.c (create_feature_aarch64_core):
6832 * features/aarch64-core.xml: Add cpsr flags.
6834 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6836 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6837 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6839 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6841 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6843 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6845 (arm_record_special_symbol): Don't insert new symbol in sorted
6846 position, push it at the end.
6848 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6850 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6851 (arm_mapping_symbol_s): Remove.
6852 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6853 (arm_mapping_symbol_vec): New typedef.
6854 (struct arm_per_objfile): Add constructor.
6855 <section_maps>: Change type to
6856 std::unique_ptr<arm_mapping_symbol_vec[]>.
6857 (arm_compare_mapping_symbols): Remove.
6858 (arm_find_mapping_symbol): Adjust to section_maps type change.
6859 (arm_objfile_data_free): Call delete on arm_per_objfile.
6860 (arm_record_special_symbol): Adjust to section_maps type change.
6861 Allocate arm_per_objfile with new.
6863 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6865 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6866 with the command prefix.
6868 2019-06-25 Tom Tromey <tom@tromey.com>
6870 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6871 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6873 2019-06-25 Tom Tromey <tom@tromey.com>
6875 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6877 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6880 2019-06-25 Tom Tromey <tom@tromey.com>
6882 * tui/tui-winsource.c
6883 (tui_source_window_base::set_is_exec_point_at): Add check against
6886 2019-06-25 Tom Tromey <tom@tromey.com>
6888 * tui/tui-source.c (tui_set_source_content): Don't check before
6890 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6892 2019-06-25 Tom Tromey <tom@tromey.com>
6894 * tui/tui-winsource.h (tui_update_source_window_as_is)
6895 (tui_alloc_source_buffer, tui_line_is_displayed)
6896 (tui_addr_is_displayed): Change type of win_info.
6897 * tui/tui-winsource.c (tui_update_source_window_as_is)
6898 (tui_clear_source_content, tui_show_source_line)
6899 (tui_show_source_content, tui_source_window_base::refill)
6900 (tui_source_window_base::set_is_exec_point_at)
6901 (tui_source_window_base::set_is_exec_point_at)
6902 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6903 (tui_alloc_source_buffer, tui_line_is_displayed)
6904 (tui_addr_is_displayed): Change type of win_info. Update.
6905 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6906 (tui_source_window_base::do_make_visible_with_new_height):
6908 * tui/tui-source.c (tui_set_source_content)
6909 (tui_set_source_content_nil)
6910 (tui_source_window::do_scroll_vertical): Update.
6911 * tui/tui-layout.c (show_layout): Update.
6912 * tui/tui-disasm.c (tui_set_disassem_content)
6913 (tui_disasm_window::do_scroll_vertical): Update.
6914 * tui/tui-data.h (tui_win_content): Remove.
6915 (struct tui_gen_win_info) <content, content_size>: Remove.
6916 (struct tui_source_element): Add initializers and destructor.
6917 (union tui_which_element, struct tui_win_element): Remove.
6918 (struct tui_source_window_base) <content>: New field.
6919 (struct tui_data_window): Remove destructor.
6920 (tui_alloc_content, tui_free_win_content)
6921 (tui_free_all_source_wins_content): Don't declare.
6922 * tui/tui-data.c (tui_initialize_static_data): Update.
6923 (init_content_element, tui_alloc_content): Remove.
6924 (~tui_gen_win_info): Update.
6925 (~tui_data_window, tui_free_all_source_wins_content)
6926 (tui_free_win_content, free_content, free_content_elements):
6929 2019-06-25 Tom Tromey <tom@tromey.com>
6931 * tui/tui-winsource.h (tui_clear_source_content)
6932 (tui_erase_source_content, tui_show_source_content): Change type
6934 * tui/tui-winsource.c (tui_clear_source_content)
6935 (tui_erase_source_content, tui_show_source_content): Change type
6937 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6938 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6940 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6942 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6944 2019-06-25 Tom Tromey <tom@tromey.com>
6946 * tui/tui-winsource.c (tui_clear_source_content)
6947 (tui_source_window_base::set_is_exec_point_at): Update.
6948 * tui/tui-source.c (tui_set_source_content_nil): Update.
6949 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6951 * tui/tui-data.c (init_content_element): Update.
6953 2019-06-25 Tom Tromey <tom@tromey.com>
6955 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6956 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6957 * tui/tui-layout.c (init_and_make_win): Update.
6958 * tui/tui.h (enum tui_win_type): Update.
6959 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6960 tui_win_is_auxillary.
6961 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6962 tui_win_is_auxillary.
6964 2019-06-25 Tom Tromey <tom@tromey.com>
6966 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6967 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6968 (tui_delete_data_content_windows, tui_display_all_data)
6969 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6971 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6972 * tui/tui-regs.c (tui_last_regs_line_no)
6973 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6974 (tui_show_registers): Update.
6975 (tui_show_register_group): Return void. Update.
6976 (tui_display_registers_from, tui_display_reg_element_at_line)
6977 (tui_display_registers_from_line, tui_check_register_values):
6979 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6981 (struct tui_data_window) <regs_content>: Now a std::vector.
6982 <regs_content_count>: Remove.
6983 (tui_add_content_elements, tui_free_data_content): Don't declare.
6984 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6985 (init_content_element): Remove DATA_WIN case. Add assert.
6986 (tui_add_content_elements): Remove.
6987 (tui_data_window): Update.
6988 (tui_free_data_content): Remove.
6989 (free_content_elements): Remove DATA_WIN case.
6991 2019-06-25 Tom Tromey <tom@tromey.com>
6993 * tui/tui-data.c (tui_data_item_window): Update.
6994 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6995 * tui/tui-windata.c (tui_display_all_data)
6996 (tui_display_data_from_line): Update.
6997 (tui_check_data_values): Remove.
6998 * tui/tui-regs.c (tui_show_register_group)
6999 (tui_display_reg_element_at_line): Update.
7000 * tui/tui-hooks.c (tui_register_changed)
7001 (tui_refresh_frame_and_register_information): Call
7002 tui_check_register_values.
7003 * tui/tui-data.h (struct tui_data_window) <data_content,
7004 data_content_count, data_type>: Remove.
7005 (enum tui_data_type): Remove.
7007 * tui/tui-data.c (tui_data_window::clear_detail)
7008 (~tui_data_window): Update.
7010 2019-06-25 Tom Tromey <tom@tromey.com>
7012 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7014 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7015 Rename from tui_first_data_item_displayed. Update.
7016 (tui_data_window::refresh_all)
7017 (tui_data_window::do_scroll_vertical): Update.
7018 * tui/tui-data.h (struct tui_data_window)
7019 <first_data_item_displayed>: Declare new method.
7021 2019-06-25 Tom Tromey <tom@tromey.com>
7023 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7024 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7026 (tui_initialize_static_data): ...here.
7028 2019-06-25 Tom Tromey <tom@tromey.com>
7030 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7031 (tui_display_registers_from, tui_check_register_values): Update.
7032 (tui_display_register): Remove win_info parameter; update.
7033 (tui_get_register): Change type of parameters.
7034 * tui/tui-data.h (struct tui_data_element): Remove.
7035 (union tui_which_element) <data>: Remove.
7036 <data_window>: Change type.
7037 (struct tui_data_item_window): New.
7038 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7040 (~tui_data_item_window): New destructor.
7041 (free_content_elements): Remove DATA_ITEM_WIN case.
7043 2019-06-25 Tom Tromey <tom@tromey.com>
7045 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7048 2019-06-25 Tom Tromey <tom@tromey.com>
7050 * tui/tui-data.h (struct tui_command_element): Remove.
7051 (union tui_which_element) <command>: Remove.
7052 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7054 (free_content_elements): Remove CMD_WIN case.
7056 2019-06-25 Tom Tromey <tom@tromey.com>
7058 * tui/tui-layout.c (tui_set_layout): Update.
7059 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7060 * tui/tui-data.c (layout_def): Update.
7062 2019-06-25 Tom Tromey <tom@tromey.com>
7064 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7065 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7066 (tui_source_window_base::set_new_height): Update.
7067 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7069 (tui_set_locator_fullname, tui_set_locator_info)
7070 (tui_show_frame_info): Update.
7071 * tui/tui-source.c (tui_set_source_content)
7072 (tui_source_is_displayed): Update.
7073 * tui/tui-layout.c (show_source_disasm_command, show_data)
7074 (show_source_or_disasm_and_command): Update.
7075 * tui/tui-disasm.c (tui_set_disassem_content)
7076 (tui_get_begin_asm_address): Update.
7077 * tui/tui-data.h (struct tui_locator_element): Remove.
7078 (union tui_which_element) <locator>: Remove.
7079 (struct tui_locator_window): New.
7080 (tui_locator_win_info_ptr): Change return type.
7081 * tui/tui-data.c (_locator): Change type.
7082 (tui_locator_win_info_ptr): Change return type.
7083 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7084 (tui_alloc_content): Add assert.
7086 2019-06-25 Tom Tromey <tom@tromey.com>
7088 * tui/tui-winsource.c
7089 (tui_exec_info_window::maybe_allocate_content): New method.
7090 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7091 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7092 (make_source_or_disasm_window): Add cast.
7093 * tui/tui-data.h (union tui_which_element) <simple_string>:
7095 (struct tui_source_info): New.
7096 (struct tui_source_window_base) <execution_info>: Change type.
7097 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7098 case, and add assert.
7099 (tui_alloc_content): Add assert.
7101 2019-06-25 Tom Tromey <tom@tromey.com>
7103 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7104 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7105 * tui/tui-data.c (tui_alloc_win_info): Remove.
7107 2019-06-25 Tom Tromey <tom@tromey.com>
7109 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7110 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7113 2019-06-25 Tom Tromey <tom@tromey.com>
7115 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7116 make_visible_with_new_height method.
7117 (tui_win_info::make_visible_with_new_height): New method.
7118 (tui_source_window_base::do_make_visible_with_new_height)
7119 (tui_data_window::do_make_visible_with_new_height)
7120 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7121 (make_visible_with_new_height): Remove.
7122 (tui_resize_all, tui_adjust_win_heights): Use
7123 make_visible_with_new_height method.
7124 * tui/tui-data.h (struct tui_win_info)
7125 <do_make_visible_with_new_height, make_visible_with_new_height>:
7127 (struct tui_source_window_base, struct tui_data_window)
7128 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7131 2019-06-25 Tom Tromey <tom@tromey.com>
7133 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7135 (update_tab_width): Call update_tab_width method.
7136 * tui/tui-data.h (struct tui_win_info)
7137 (struct tui_source_window_base) <update_tab_width>: New methods.
7139 2019-06-25 Tom Tromey <tom@tromey.com>
7141 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7143 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7145 (tui_gen_win_info::make_visible): Update.
7146 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7148 * tui/tui-data.h (enum tui_box): New enum.
7149 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7151 2019-06-25 Tom Tromey <tom@tromey.com>
7153 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7154 init_and_make_win for EXEC_INFO_WIN.
7155 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7157 (struct tui_win_info) <~tui_win_info>: Inline.
7158 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7160 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7161 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7163 (tui_initialize_static_data): Update.
7164 (~tui_gen_win_info): Handle more cleanup here.
7165 (~tui_source_window_base): Delete "execution_info".
7166 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7168 2019-06-25 Tom Tromey <tom@tromey.com>
7170 * tui/tui-layout.c (make_command_window): Don't set
7172 (show_source_disasm_command): Call the reset method.
7173 (show_data): Don't set can_highlight. Call the reset method.
7174 (tui_gen_win_info::reset): Rename from init_gen_win_info
7175 (init_and_make_win): Simplify. Return tui_gen_win_info.
7176 (show_source_or_disasm_and_command): Call the reset method.
7177 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7178 (struct tui_cmd_window): Set can_highlight.
7180 2019-06-25 Tom Tromey <tom@tromey.com>
7182 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7184 (tui_make_visible, tui_make_invisible): Rewrite.
7185 (tui_win_info::make_visible): Remove.
7186 (tui_source_window_base::make_visible): Update.
7187 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7188 method. Moved from...
7189 (struct tui_win_info) <make_visible>: ...here.
7191 2019-06-25 Tom Tromey <tom@tromey.com>
7193 * tui/tui-winsource.c
7194 (tui_source_window_base::do_scroll_horizontal): Remove direction
7196 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7197 direction parameter.
7198 * tui/tui-win.c (tui_win_info::forward_scroll)
7199 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7200 (tui_win_info::right_scroll): Update.
7201 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7202 direction parameter.
7203 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7204 direction parameter.
7205 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7206 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7207 Remove direction parameter.
7208 (struct tui_source_window_base, struct tui_source_window)
7209 (struct tui_disasm_window, struct tui_data_window)
7210 (struct tui_cmd_window): Update.
7212 2019-06-25 Tom Tromey <tom@tromey.com>
7214 * tui/tui-winsource.h (tui_set_exec_info_content)
7215 (tui_show_exec_info_content, tui_erase_exec_info_content)
7216 (tui_clear_exec_info_content, tui_update_exec_info): Change
7217 argument to tui_source_window_base.
7218 * tui/tui-winsource.c (tui_set_exec_info_content)
7219 (tui_show_exec_info_content, tui_erase_exec_info_content)
7220 (tui_clear_exec_info_content, tui_update_exec_info): Change
7221 argument to tui_source_window_base.
7223 2019-06-25 Tom Tromey <tom@tromey.com>
7225 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7226 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7228 2019-06-25 Tom Tromey <tom@tromey.com>
7230 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7233 2019-06-25 Tom Tromey <tom@tromey.com>
7235 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7237 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7239 * tui/tui-source.c (tui_set_source_content): Update.
7240 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7244 * tui/tui-win.c (window_name_completer, tui_set_focus)
7245 (tui_all_windows_info): Use name method.
7246 * tui/tui-data.h (struct tui_gen_win_info)
7247 (struct tui_source_window, struct tui_disasm_window)
7248 (struct tui_data_window, struct tui_cmd_window) <name>: New
7250 (tui_win_name): Don't declare.
7251 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7252 (tui_win_name): Remove.
7254 2019-06-25 Tom Tromey <tom@tromey.com>
7256 * tui/tui-winsource.h (tui_update_source_window)
7257 (tui_update_source_window_as_is): Change parameter type.
7258 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7259 to be a tui_source_window_base.
7260 (tui_update_source_window_as_is): Likewise.
7261 * tui/tui-win.c (make_visible_with_new_height): Update.
7263 2019-06-25 Tom Tromey <tom@tromey.com>
7265 * tui/tui-winsource.c (tui_erase_source_content)
7266 (tui_show_source_content, tui_show_exec_info_content)
7267 (tui_erase_exec_info_content): Use refresh_window method.
7268 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7269 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7270 from tui_refresh_win.
7271 (tui_data_window::refresh_window): New method.
7272 (tui_win_info::refresh, tui_source_window_base::refresh)
7273 (tui_refresh_all): Use refresh_window method.
7274 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7276 * tui/tui-regs.c (tui_display_register): Call refresh_window
7278 * tui/tui-layout.c (show_source_disasm_command)
7279 (show_source_or_disasm_and_command): Call refresh_window method.
7280 * tui/tui-data.h (struct tui_gen_win_info)
7281 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7284 2019-06-25 Tom Tromey <tom@tromey.com>
7286 * tui/tui.c (tui_rl_other_window, tui_enable)
7287 (tui_is_window_visible, tui_get_command_dimension): Update.
7288 * tui/tui-winsource.c (tui_update_source_window_as_is)
7289 (tui_clear_source_content, tui_erase_source_content)
7290 (tui_show_source_line, tui_source_window_base::refill)
7291 (tui_source_window_base::do_scroll_horizontal)
7292 (tui_source_window_base::set_is_exec_point_at)
7293 (tui_update_breakpoint_info, tui_set_exec_info_content)
7294 (tui_alloc_source_buffer, tui_line_is_displayed)
7295 (tui_addr_is_displayed): Update.
7296 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7297 (tui_check_and_display_highlight_if_needed)
7298 (tui_win_info::make_visible, tui_win_info::refresh)
7299 (tui_refresh_all): Update.
7300 * tui/tui-windata.c (tui_first_data_item_displayed)
7301 (tui_delete_data_content_windows, tui_erase_data_content)
7302 (tui_display_all_data, tui_data_window::refresh_all)
7303 (tui_check_data_values): Update.
7304 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7305 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7306 (tui_win_info::backward_scroll, tui_refresh_all_win)
7307 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7308 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7309 (tui_source_window_base::set_new_height)
7310 (tui_data_window::set_new_height)
7311 (make_invisible_and_set_new_height)
7312 (make_visible_with_new_height, new_height_ok)
7313 (parse_scrolling_args): Update.
7314 * tui/tui-stack.c (tui_show_frame_info): Update.
7315 * tui/tui-source.c (tui_set_source_content)
7316 (tui_set_source_content_nil, tui_source_is_displayed)
7317 (tui_source_window::do_scroll_vertical): Update.
7318 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7319 (tui_display_registers_from, tui_display_reg_element_at_line)
7320 (tui_check_register_values, tui_reg_command): Update.
7321 * tui/tui-layout.c (tui_default_win_height)
7322 (show_source_disasm_command, show_data, init_and_make_win)
7323 (show_source_or_disasm_and_command): Update.
7324 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7325 (tui_redisplay_readline, tui_mld_flush)
7326 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7328 * tui/tui-disasm.c (tui_set_disassem_content)
7329 (tui_disasm_window::do_scroll_vertical): Update.
7330 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7332 (struct tui_win_info): Derive from tui_gen_win_info.
7333 <~tui_win_info>: Mark as override.
7334 <generic>: Remove member.
7335 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7336 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7337 (~tui_data_window, ~tui_win_info)
7338 (tui_free_all_source_wins_content): Update.
7339 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7341 2019-06-25 Tom Tromey <tom@tromey.com>
7343 * tui/tui-layout.c (init_and_make_win): Use new.
7344 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7345 destructor, initializers.
7346 (tui_alloc_generic_win_info): Don't declare.
7347 * tui/tui-data.c (_locator): Add argument to constructor.
7348 (source_win, disasm_win): New globals.
7349 (exec_info): Remove.
7350 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7352 (tui_alloc_generic_win_info): Remove.
7353 (init_content_element): Use new.
7354 (tui_win_info::tui_win_info): Update.
7355 (free_content_elements) <case DATA_WIN>: Use delete.
7357 2019-06-25 Tom Tromey <tom@tromey.com>
7359 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7360 * tui/tui-windata.c (tui_first_data_item_displayed)
7361 (tui_delete_data_content_windows): Update.
7362 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7363 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7364 (tui_display_registers_from, tui_check_register_values): Update.
7365 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7367 * tui/tui-data.c (init_content_element): Update. Allocate the new
7369 (tui_free_data_content): Update.
7370 (free_content_elements) <case DATA_WIN>: Free the window.
7372 2019-06-25 Tom Tromey <tom@tromey.com>
7374 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7376 * tui/tui-layout.c (make_command_window)
7377 (show_source_disasm_command, show_data, init_and_make_win)
7378 (show_source_or_disasm_and_command): Update.
7379 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7381 <can_highight, is_highlighted>: Now bool.
7382 (tui_set_win_highlight): Don't declare.
7383 * tui/tui-data.c (tui_set_win_highlight): Remove.
7385 2019-06-25 Tom Tromey <tom@tromey.com>
7387 * tui/tui-wingeneral.c (make_visible): Remove check of window
7390 2019-06-25 Tom Tromey <tom@tromey.com>
7392 * tui/tui-win.c (tui_win_info::max_height)
7393 (tui_cmd_window::max_height): New methods.
7394 (new_height_ok): Call max_height.
7395 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7396 <max_height>: New method.
7398 2019-06-25 Tom Tromey <tom@tromey.com>
7400 * tui/tui-win.c (tui_source_window_base::set_new_height)
7401 (tui_data_window::set_new_height): New methods.
7402 (make_invisible_and_set_new_height): Call set_new_height method.
7403 * tui/tui-data.h (struct tui_win_info)
7404 (struct tui_source_window_base, struct tui_data_window)
7405 <set_new_height>: New method.
7407 2019-06-25 Tom Tromey <tom@tromey.com>
7409 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7410 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7411 tui_refresh_data_win.
7412 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7414 (tui_refresh_all_win): Call the refresh_all method.
7415 (tui_set_focus): Likewise.
7416 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7417 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7420 2019-06-25 Tom Tromey <tom@tromey.com>
7422 * tui/tui-winsource.h (tui_refill_source_window)
7423 (tui_set_is_exec_point_at): Don't declare.
7424 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7425 (tui_source_window_base::refill): Rename from
7426 tui_refill_source_window.
7427 (tui_source_window_base::do_scroll_horizontal): Update.
7428 (tui_source_window_base::set_is_exec_point_at): Rename from
7429 tui_set_is_exec_point_at.
7430 (tui_update_all_breakpoint_info): Update.
7431 * tui/tui-stack.c (tui_show_frame_info): Update.
7432 * tui/tui-layout.c (show_data): Add cast.
7433 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7434 * tui/tui-data.h (struct tui_source_window_base) <refill,
7435 set_is_exec_point_at>: New methods.
7436 (tui_source_windows, tui_add_to_source_windows): Update types.
7437 (tui_add_to_source_windows): Remove redundant declaration.
7438 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7439 (tui_source_windows): Change return type.
7440 (tui_clear_source_windows_detail): Update.
7441 (tui_add_to_source_windows): Change type of parameter.
7442 (tui_free_all_source_wins_content): Update.
7444 2019-06-25 Tom Tromey <tom@tromey.com>
7446 * tui/tui-wingeneral.c (tui_win_info::refresh)
7447 (tui_source_window_base::refresh): New methods.
7448 (tui_refresh_all): Call the refresh method.
7449 * tui/tui-data.h (struct tui_win_info)
7450 (struct tui_source_window_base) <refresh>: New method.
7452 2019-06-25 Tom Tromey <tom@tromey.com>
7454 * tui/tui.h (tui_is_window_visible): Return bool.
7455 * tui/tui.c (tui_is_window_visible): Return bool.
7456 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7457 (tui_make_visible, tui_make_invisible)
7458 (tui_win_info::make_visible)
7459 (tui_source_window_base::make_visible, make_all_visible)
7460 (tui_make_all_visible, tui_make_all_invisible): Update.
7461 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7462 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7464 (struct tui_win_info, struct tui_source_window_base)
7465 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7466 * tui/tui-data.c (tui_init_generic_part): Update.
7468 2019-06-25 Tom Tromey <tom@tromey.com>
7470 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7471 (tui_source_window_base::make_visible): New methods.
7472 (make_all_visible): Make method call.
7473 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7474 (struct tui_source_window_base, struct tui_cmd_window): Override
7476 (tui_win_is_source_type): Don't declare.
7477 * tui/tui-data.c (tui_win_is_source_type): Remove.
7479 2019-06-25 Tom Tromey <tom@tromey.com>
7481 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7484 2019-06-25 Tom Tromey <tom@tromey.com>
7486 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7487 Inline constructor. Add initializers for members.
7488 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7489 constructors; now inline in class.
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7493 * tui/tui-regs.c (tui_show_registers): Update.
7494 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7496 * tui/tui-data.c (tui_data_window::clear_detail)
7497 (tui_data_window): Update.
7499 2019-06-25 Tom Tromey <tom@tromey.com>
7501 * tui/tui-windata.c (tui_display_all_data)
7502 (tui_display_data_from_line, tui_display_data_from)
7503 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7505 * tui/tui-regs.c (tui_last_regs_line_no)
7506 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7507 (tui_show_registers, tui_show_register_group)
7508 (tui_display_registers_from, tui_display_reg_element_at_line)
7509 (tui_display_registers_from_line, tui_check_register_values)
7510 (tui_reg_next, tui_reg_prev): Update.
7511 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7512 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7514 (struct tui_win_info) <detail>: Remove. Add new fields from
7516 (TUI_DATA_WIN): Add cast.
7517 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7518 (~tui_data_window): Simplify.
7520 2019-06-25 Tom Tromey <tom@tromey.com>
7522 * tui/tui-layout.c (show_source_disasm_command)
7523 (show_source_or_disasm_and_command): Update.
7524 * tui/tui-io.c (update_cmdwin_start_line)
7525 (tui_redisplay_readline): Update.
7526 * tui/tui-data.h (struct tui_command_info): Remove.
7527 (struct tui_win_info) <detail>: Remove command_info member.
7528 (struct tui_data_window) <start_line>: New member, from
7530 (TUI_CMD_WIN): Add casts.
7532 2019-06-25 Tom Tromey <tom@tromey.com>
7534 * tui/tui-winsource.c (tui_update_source_window)
7535 (tui_refill_source_window)
7536 (tui_source_window_base::do_scroll_horizontal)
7537 (tui_update_breakpoint_info, tui_set_exec_info_content)
7538 (tui_show_exec_info_content, tui_erase_exec_info_content)
7539 (tui_clear_exec_info_content): Update.
7540 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7542 * tui/tui-win.c (make_invisible_and_set_new_height)
7543 (make_visible_with_new_height): Update.
7544 * tui/tui-source.c (tui_set_source_content)
7545 (tui_show_symtab_source): Update.
7546 * tui/tui-layout.c (extract_display_start_addr)
7547 (show_source_disasm_command, show_data)
7548 (make_source_or_disasm_window)
7549 (show_source_or_disasm_and_command): Update.
7550 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7551 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7553 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7554 to tui_source_window_base.
7555 (struct tui_win_info) <detail>: Remove source_info member.
7556 (struct tui_source_window_base) <has_locator>: Inline.
7557 Move contents from tui_source_info; rename has_locator member to
7559 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7560 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7562 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7564 (tui_free_all_source_wins_content): Cast to
7565 tui_source_window_base.
7567 2019-06-25 Tom Tromey <tom@tromey.com>
7569 * tui/tui-win.c (make_invisible_and_set_new_height)
7570 (make_visible_with_new_height): Call has_locator method.
7571 * tui/tui-layout.c (show_source_disasm_command, show_data)
7572 (show_source_or_disasm_and_command): Update for bool change.
7573 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7574 (tui_win_info) <has_locator>: New method.
7575 (struct tui_source_window_base) <has_locator>: New method.
7576 (tui_win_has_locator): Don't declare.
7577 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7578 from tui_win_has_locator.
7579 (tui_source_window_base): Use false, not FALSE.
7581 2019-06-25 Tom Tromey <tom@tromey.com>
7583 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7584 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7585 clear_detail method directly.
7586 (tui_clear_win_detail): Remove.
7588 2019-06-25 Tom Tromey <tom@tromey.com>
7590 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7591 "this", not TUI_DISASM_WIN.
7593 2019-06-25 Tom Tromey <tom@tromey.com>
7595 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7597 * tui/tui-winsource.c
7598 (tui_source_window_base::do_scroll_horizontal): Rename from
7599 tui_horizontal_source_scroll.
7600 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7601 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7602 from tui_vertical_data_scroll.
7603 * tui/tui-win.h (tui_scroll): Don't declare.
7604 * tui/tui-win.c (tui_win_info::forward_scroll)
7605 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7606 (tui_win_info::right_scroll): Rename and update.
7607 (tui_scroll_forward_command, tui_scroll_backward_command)
7608 (tui_scroll_left_command, tui_scroll_right_command): Update.
7609 (tui_scroll): Remove.
7610 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7611 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7612 from tui_vertical_source_scroll.
7613 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7614 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7615 from tui_vertical_disassem_scroll.
7616 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7617 do_scroll_horizontal>: New methods.
7618 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7620 (struct tui_source_window_base): Add do_scroll_horizontal.
7621 (struct tui_source_window, struct tui_disasm_window): Add
7623 (struct tui_data_window, struct tui_cmd_window): Add
7624 do_scroll_horizontal and do_scroll_vertical.
7625 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7629 * tui/tui-data.h (struct tui_source_window_base): New struct.
7630 (struct tui_source_window): Derive from tui_source_window_base.
7631 (struct tui_disasm_window): New struct.
7632 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7633 from tui_source_window::clear_detail.
7634 (tui_source_window_base): Rename from tui_source_window.
7635 (~tui_source_window_base): Rename from ~tui_source_window.
7636 (tui_alloc_win_info): Create a tui_disasm_window.
7638 2019-06-25 Tom Tromey <tom@tromey.com>
7640 * tui/tui-data.h (struct tui_source_window)
7641 (struct tui_data_window): Declare destructors.
7642 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7644 (tui_win_info): Simplify.
7646 2019-06-25 Tom Tromey <tom@tromey.com>
7648 * tui/tui-winsource.c (tui_display_main)
7649 (tui_update_source_windows_with_addr)
7650 (tui_update_all_breakpoint_info): Update.
7651 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7652 (new_height_ok, parse_scrolling_args): Update.
7653 * tui/tui-stack.c (tui_show_frame_info): Update.
7654 * tui/tui-data.h (struct tui_list): Remove.
7655 (tui_source_windows): Return a reference to a std::vector.
7656 * tui/tui-data.c (source_windows): Now a std::vector.
7657 (tui_source_windows): Change return type.
7658 (tui_clear_source_windows): Rewrite.
7659 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7660 (tui_free_all_source_wins_content): Rewrite.
7662 2019-06-25 Tom Tromey <tom@tromey.com>
7664 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7665 (struct tui_data_window, struct tui_cmd_window): Declare
7666 clear_detail method.
7667 * tui/tui-data.c (tui_source_window::clear_detail)
7668 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7670 (tui_clear_win_detail): Simplify.
7672 2019-06-25 Tom Tromey <tom@tromey.com>
7674 * tui/tui-layout.c (make_source_window, make_disasm_window)
7675 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7676 Return the new window.
7677 (show_source_disasm_command, show_data)
7678 (show_source_or_disasm_and_command): Update.
7680 2019-06-25 Tom Tromey <tom@tromey.com>
7682 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7683 parameter. Return the new window.
7684 (show_source_disasm_command): Update and remove NULL check.
7685 (show_source_or_disasm_and_command): Update.
7687 2019-06-25 Tom Tromey <tom@tromey.com>
7689 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7691 2019-06-25 Tom Tromey <tom@tromey.com>
7693 * tui/tui-data.h (struct tui_win_info): Make constructor
7694 protected. Make destructor virtual. Add initializers.
7695 (tui_source_window, tui_data_window, tui_cmd_window): New
7697 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7698 constructor. Add "type" parameter.
7699 (tui_source_window, tui_data_window, tui_cmd_window): New
7701 (tui_alloc_win_info): Instantiate the appropriate subclass.
7703 2019-06-25 Tom Tromey <tom@tromey.com>
7705 * tui/tui-win.c (tui_resize_all): Use delete.
7706 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7708 (tui_free_window): Don't declare.
7709 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7712 2019-06-25 Tom Tromey <tom@tromey.com>
7714 * tui/tui-data.h (struct tui_win_info): Add constructor.
7715 * tui/tui-data.c (tui_alloc_win_info): Use new.
7716 (tui_free_window): Use delete.
7718 2019-06-22 Tom Tromey <tom@tromey.com>
7720 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7722 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7724 2019-06-22 Tom Tromey <tom@tromey.com>
7726 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7728 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7730 2019-06-22 Tom de Vries <tdevries@suse.de>
7732 * dwarf2read.c (create_addrmap_from_aranges)
7733 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7736 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7738 * dwarf2read.h (dwarf2_section_info_def): Remove.
7739 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7740 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7741 std::vector<dwarf2_section_info>.
7742 (struct dwo_file) <~dwo_file>: Remove.
7743 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7745 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7746 (dwarf2_read_debug_names): Likewise.
7747 (create_debug_types_hash_table): Change parameter type to
7748 array_view, adjust code accordingly.
7749 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7750 (partial_die_info::fixup): Likewise.
7751 (determine_prefix): Likewise.
7752 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7754 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7756 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7758 <~dwo_file>: Remove call to gdb_bfd_unref.
7759 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7760 gdb_bfd_ref_ptr::get.
7762 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7764 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7766 * dwarf2read.c (struct dwo_file): Initialize fields.
7768 (free_dwo_file): Remove, move content to ~dwo_file.
7769 (struct dwo_file_deleter): Remove.
7770 (dwo_file_up>: Remove custom deleter.
7771 (free_dwo_files): Remove.
7772 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7774 (process_skeletonless_type_units): Call unique_ptr::get.
7775 (allocate_dwo_file_hash_table): Add deleter to created hash
7776 table. Change return type to htab_up.
7777 (lookup_dwo_file_slot): Don't memset dwo_file, call
7779 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7780 (create_dwo_unit_in_dwp_v2): Likewise.
7781 (open_and_init_dwo_file): Likewise.
7782 (free_dwo_file_from_slot): Remove.
7784 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7786 * dwarf2read.h (struct dwarf2_section_info) <readin,
7787 is_virtual>: Change type to bool.
7788 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7791 2019-06-19 Tom Tromey <tom@tromey.com>
7793 * tui/tui-data.h (tui_init_content_element): Don't declare.
7795 2019-06-19 Tom Tromey <tom@tromey.com>
7797 * tui/tui-data.h (tui_init_win_info): Don't declare.
7799 2019-06-19 Tom de Vries <tdevries@suse.de>
7801 * dwarf2read.h (abstract_to_concrete): Change type to
7802 std::unordered_map<sect_offset, std::vector<sect_offset>,
7803 gdb::hash_enum<sect_offset>>.
7805 2019-06-19 Tom Tromey <tromey@adacore.com>
7807 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7808 EVAL_AVOID_SIDE_EFFECTS specially.
7810 2019-06-19 Tom Tromey <tromey@adacore.com>
7812 * source-cache.c (highlighter): New global.
7813 (source_cache::get_source_lines): Create a highlighter on demand.
7815 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7817 * defs.h (deprecated_interactive_hook): Delete declaration.
7818 * interps.c (clear_interpreter_hooks): Remove use of
7819 deprecated_interactive_hook.
7820 * top.c (deprecated_interactive_hook): Delete definition.
7821 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7823 2019-06-18 Tom de Vries <tdevries@suse.de>
7826 * dwarf2read.h (abstract_to_concrete): Change type from
7827 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7828 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7829 * dwarf2read.c (read_variable): Update.
7830 (dwarf2_fetch_die_loc_sect_off): Update.
7832 2019-06-17 Tom de Vries <tdevries@suse.de>
7835 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7836 accessing parent[parent_len - 1].
7838 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7841 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7842 call dtrace_process_dof with NULL dof.
7844 2019-06-16 Tom de Vries <tdevries@suse.de>
7847 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7849 2019-06-16 Tom Tromey <tom@tromey.com>
7851 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7852 (make_all_visible): Use address of member.
7854 2019-06-16 Tom Tromey <tom@tromey.com>
7856 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7857 (tui_free_window, free_content, free_content_elements): Remove
7859 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7861 * tui/tui-regs.c (tui_show_register_group)
7862 (tui_display_registers_from, tui_display_reg_element_at_line):
7863 Remove unnecessary cast.
7865 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7867 * linux-nat.c (normal_mask): Delete.
7868 (_initialize_linux_nat): Don't initialise normal_mask.
7870 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7873 * dwarf-index-write.h (write_psymtabs_to_index): Add
7874 dwz_basename parameter.
7875 * dwarf-index-write.c (write_gdbindex): Move file writing to
7876 write_gdbindex_1. Change return type void.
7877 (assert_file_size): Move up, remove filename parameter.
7878 (write_gdbindex_1): New function.
7879 (write_debug_names): Change return type to void, call
7881 (struct index_wip_file): New struct.
7882 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7883 file logic to index_wip_file. Write index for dwz file if
7885 (save_gdb_index_command): Pass basename of dwz file, if present.
7886 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7887 build-id of dwz file, if present.
7888 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7889 (dwarf2_get_dwz_file): Likewise.
7890 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7891 (dwarf2_get_dwz_file): Likewise.
7893 2019-06-16 Tom Tromey <tom@tromey.com>
7895 * coffread.c (process_coff_symbol): Use xstrdup.
7896 * value.c (create_internalvar): Use xstrdup.
7898 2019-06-16 Tom Tromey <tom@tromey.com>
7900 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7901 * breakpoint.c (stopin_command, stopat_command)
7902 (until_break_command, decode_location_default): Remove unnecessary
7904 * utils.c (subset_compare): Remove unnecessary cast.
7905 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7907 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7909 * infcmd.c (path_command): Remove unnecessary cast.
7910 * coffread.c (decode_type): Remove unnecessary cast.
7911 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7912 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7913 * tui/tui-stack.c (tui_show_locator_content)
7914 (tui_show_frame_info): Remove unnecessary cast.
7915 * tui/tui-win.c (tui_scroll_forward_command)
7916 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7917 (parse_scrolling_args): Remove unnecessary cast.
7918 * tui/tui-data.c (init_win_info, tui_del_window)
7919 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7920 (free_content_elements): Remove unnecessary cast.
7921 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7923 * tui/tui-source.c (tui_set_source_content)
7924 (tui_vertical_source_scroll): Remove unnecessary cast.
7925 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7927 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7928 * tui/tui-regs.c (tui_display_registers_from)
7929 (tui_display_register): Remove unnecessary cast.
7930 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7931 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7932 (make_visible): Remove unnecessary cast.
7933 * tui/tui-winsource.c (tui_erase_source_content)
7934 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7936 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7937 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7938 * stabsread.c (read_type, read_array_type, read_range_type):
7939 Remove unnecessary cast.
7940 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7941 (parse_symbol, parse_type, upgrade_type, parse_external)
7942 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7944 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7946 2019-06-16 Tom Tromey <tom@tromey.com>
7948 * tui/tui-data.c (tui_alloc_generic_win_info)
7949 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7952 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7953 Andrew Burgess <andrew.burgess@embecosm.com>
7955 * f-typeprint.c (f_print_type): Don't return early for not
7956 associated or not allocated types.
7957 (f_type_print_varspec_suffix): Add print_rank parameter and print
7958 ranks of array types in case they dangling.
7959 (f_type_print_base): Add print_rank parameter.
7961 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7963 * NEWS: Mention new MI commands.
7964 * break-catch-throw.c (enum exception_event_kind): Move to
7966 (print_mention_exception_catchpoint): Output text as a single
7968 (catch_exception_command_1): Rename to...
7969 (catch_exception_event): ...this, make non-static, update header
7970 command, and change some parameter types.
7971 (catch_catch_command): Update for changes to
7972 catch_exception_command_1.
7973 (catch_throw_command): Likewise.
7974 (catch_rethrow_command): Likewise.
7975 * breakpoint.c (enum exception_event_kind): Delete.
7976 * breakpoint.h (enum exception_event_kind): Moved here from
7977 break-catch-throw.c.
7978 (catch_exception_event): Declare.
7979 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7980 (mi_cmd_catch_throw): New function.
7981 (mi_cmd_catch_rethrow): New function.
7982 (mi_cmd_catch_catch): New function.
7983 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7984 'catch-catch' entries.
7985 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7986 (mi_cmd_catch_rethrow): Declare.
7987 (mi_cmd_catch_catch): Declare.
7989 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7991 * annotate.c (annotate_source_line): Change return type to void,
7992 update implementation to match.
7993 * annotate.h (annotate_source_line): Change return type to void,
7994 update header comment.
7995 * stack.c (print_frame_info): Don't change what frame information
7996 is printed based on whether annotations are on or not.
7998 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8000 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8001 (annotate_source): Make static.
8002 (annotate_source_line): Moved from source.c and renamed from
8003 identify_source_line. Update the return type.
8004 * annotate.h (annotate_source): Delete declaration.
8005 (annotate_source_line): Declaration moved from source.h, and
8006 renamed from identify_source_line. Return type updated.
8007 * source.c (identify_source_line): Moved to annotate.c and renamed
8008 to annotate_source_line.
8009 (info_line_command): Remove check of annotation_level.
8010 * source.h (identify_source_line): Move declaration to annotate.h
8011 and rename to annotate_source_line.
8012 * stack.c: Add 'annotate.h' include.
8013 (print_frame_info): Remove check of annotation_level before
8014 calling annotate_source_line.
8016 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8018 * source-cache.c (source_cache::get_plain_source_lines): Use
8019 open_source_file_with_line_charpos instead of just
8020 open_source_file, remove call to find_source_lines.
8021 (source_cache::get_source_lines): Likewise.
8022 * source.c (find_source_lines): Make static.
8023 (get_filename_and_charpos): Renamed into...
8024 (open_source_file_with_line_charpos): ..this along with changes to
8025 return a scoped_fd, and some other minor clean ups.
8026 (identify_source_line): Use open_source_file_with_line_charpos.
8027 (search_command_helper): Use open_source_file_with_line_charpos
8028 instead of just open_source_file, remove call to
8030 * source.h (open_source_file_with_line_charpos): Declare new
8032 (find_source_lines): Delete declaration.
8034 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8036 * source.c (get_filename_and_charpos): Remove fullname
8038 (identify_source_line): Update call to get_filename_and_charpos.
8040 2019-06-14 Tom Tromey <tromey@adacore.com>
8043 * ui-style.h (skip_ansi_escape): Update comment.
8044 * ui-file.h (class no_terminal_escape_file): New class.
8045 * ui-file.c (no_terminal_escape_file::write)
8046 (no_terminal_escape_file::puts): New methods.
8047 * cli/cli-logging.c (handle_redirections): Use
8048 no_terminal_escape_file.
8050 2019-06-14 Tom Tromey <tromey@adacore.com>
8052 * NEWS: Move convenience variable news above Python news.
8054 2019-06-14 Tom Tromey <tom@tromey.com>
8056 * gnulib: Move directory to top-level.
8057 * configure.ac: Don't configure gnulib.
8058 * configure: Rebuild.
8059 * common/common-defs.h: Use new path to gnulib.
8060 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8062 (INCGNU): Look in new gnulib location.
8063 (HFILES_NO_SRCDIR): Remove gnulib files.
8064 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8065 (generated_files): Remove GNULIB_H.
8066 ($(LIBGNU), all-lib): Remove targets.
8067 (distclean): Don't mention GNULIB_BUILDDIR.
8068 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8070 2019-06-14 Tom Tromey <tromey@adacore.com>
8072 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8073 Warn if symbol file does not provide any symbols.
8075 2019-06-14 Tom Tromey <tromey@adacore.com>
8077 * source.c (find_and_open_source): Respect basenames_may_differ.
8079 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8081 * annotate.c (annotate_breakpoints_invalid): Make use of
8082 scoped_restore_terminal_state.
8083 (annotate_frames_invalid): Likewise.
8085 2019-06-14 Tom Tromey <tromey@adacore.com>
8087 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8088 allow assignment to an internalvar.
8090 2019-06-14 Tom Tromey <tromey@adacore.com>
8092 * ada-lex.l: Allow "_" in attribute names.
8094 2019-06-14 Tom Tromey <tromey@adacore.com>
8097 * regcache.c (registers_changed): Don't call alloca.
8098 * top.c (execute_command): Don't call alloca.
8100 2019-06-13 Pedro Alves <palves@redhat.com>
8102 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8103 'expression'. When parsing an expression, error out if there's
8104 junk after "unlimited".
8105 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8106 (do_set_command): Adjust calls to is_unlimited_literal.
8108 2019-06-13 Pedro Alves <palves@redhat.com>
8110 * compile/compile.c (make_compile_options_def_group): Add braces
8111 around array_view initializer.
8112 * thread.c (make_thread_apply_all_options_def_group)
8113 (make_thread_apply_all_options_def_group): Likewise.
8115 2019-06-13 Pedro Alves <palves@redhat.com>
8117 * NEWS (New commands): Mention "maint test-options
8118 require-delimiter", "maint test-options unknown-is-error", "maint
8119 test-options unknown-is-operand" and "maint show
8120 test-options-completion-result".
8121 (New command options, command completion): New section.
8122 (Completion improvements): New section.
8123 Mention that you can abbreviate "unlimited".
8125 2019-06-13 Pedro Alves <palves@redhat.com>
8127 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8128 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8129 * unittests/cli-utils-selftests.c (test_parse_flags)
8130 (test_parse_flags_qcs): Delete.
8131 (test_cli_utils): Don't call deleted functions.
8133 2019-06-13 Pedro Alves <palves@redhat.com>
8135 * thread.c: Include "cli/cli-option.h".
8136 (tp_array_compar_ascending): Global.
8137 (tp_array_compar): Delete function.
8138 (tp_array_compar_ascending, tp_array_compar_descending): New
8140 (ascending_option_def, qcs_flag_option_def)
8141 (thr_qcs_flags_option_defs)
8142 (make_thread_apply_all_options_def_group)
8143 (make_thread_apply_options_def_group): New.
8144 (thread_apply_all_command): Use gdb::option::process_options.
8145 (thread_apply_command_completer)
8146 (thread_apply_all_command_completer): New.
8147 (thread_apply_command): Use gdb::option::process_options.
8148 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8149 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8150 to generate help text of "thread apply". Adjust "taas"'s help.
8151 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8152 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8154 2019-06-13 Pedro Alves <palves@redhat.com>
8156 * thread.c (thread_apply_command): Check for invalid TID with
8157 isdigit instead of !isalpha.
8159 2019-06-13 Pedro Alves <palves@redhat.com>
8161 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8162 (validate_flags_qcs): New.
8163 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8164 (validate_flags_qcs): Declare.
8165 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8166 (make_frame_apply_options_def_group): New.
8167 (frame_apply_command_count): Process options with
8168 gdb::option::process_options.
8169 (frame_apply_completer): New.
8170 (frame_apply_level_completer, frame_apply_all_completer)
8171 (frame_apply_completer): New.
8172 (_initialize_stack): Update help of "frame apply", "frame apply
8173 level", "frame apply all" and "faas" to mention supported options
8174 and install command completers.
8175 * stack.h (frame_apply_all_completer): Declare.
8176 * thread.c: Include "stack.h".
8177 (tfaas_command): Add "--".
8178 (_initialize_thread): Update help "tfaas" to mention supported
8179 options and install command completer.
8181 2019-06-13 Pedro Alves <palves@redhat.com>
8183 * completer.c (complete_nested_command_line): New.
8184 (gdb_completion_word_break_characters_throw): Add assertion.
8185 * completer.h (complete_nested_command_line): Declare.
8187 2019-06-13 Pedro Alves <palves@redhat.com>
8189 * stack.c (parse_backtrace_qualifiers): New.
8190 (backtrace_command): Use it.
8191 (backtrace_command_completer): Complete on qualifiers.
8193 2019-06-13 Pedro Alves <palves@redhat.com>
8195 * frame.c: Include "cli/cli-option.h.
8196 (user_set_backtrace_options): New.
8197 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8199 (get_prev_frame): Adjust.
8200 (boolean_option_def, uinteger_option_def)
8201 (set_backtrace_option_defs): New.
8202 (_initialize_frame): Adjust and use
8203 gdb::option::add_setshow_cmds_for_options to install "set
8204 backtrace past-main" and "set backtrace past-entry".
8205 * frame.h: Include "cli/cli-option.h".
8206 (struct frame_print_options): Forward declare.
8207 (print_frame_arguments_all, print_frame_arguments_scalars)
8208 (print_frame_arguments_none): Declare.
8209 (print_entry_values): Delete declaration.
8210 (struct frame_print_options, user_frame_print_options): New.
8211 (struct set_backtrace_options): New.
8212 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8213 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8214 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8215 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8216 (list_args_or_locals): Add frame_print_options parameter.
8217 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8218 * python/py-framefilter.c (enumerate_args): Pass down
8219 USER_FRAME_PRINT_OPTIONS.
8220 * stack.c: Include "cli/cli-option.h".
8221 (print_frame_arguments_all, print_frame_arguments_scalars)
8222 (print_frame_arguments_none): Declare.
8223 (print_raw_frame_arguments, print_entry_values): Delete.
8224 (user_frame_print_options): New.
8225 (boolean_option_def, enum_option_def, frame_print_option_defs):
8227 (struct backtrace_cmd_options): New.
8228 (bt_flag_option_def): New.
8229 (backtrace_command_option_defs): New.
8230 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8231 (print_frame_arg, read_frame_arg, print_frame_args)
8232 (print_frame_info, print_frame): Add frame_print_options parameter
8234 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8235 (backtrace_command_1): Add frame_print_options and
8236 backtrace_cmd_options parameters and use them.
8237 (make_backtrace_options_def_group): New.
8238 (backtrace_command): Process command options with
8239 gdb::option::process_options.
8240 (backtrace_command_completer): New.
8241 (_initialize_stack): Extend "backtrace"'s help to mention
8242 supported options. Install completer for "backtrace".
8243 Install some settings commands with add_setshow_cmds_for_options.
8245 2019-06-13 Pedro Alves <palves@redhat.com>
8247 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8248 and that "set/show print raw frame-arguments" are now deprecated.
8250 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8252 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8253 * stack.c (_initialize_stack): Install "set/show print
8254 raw-frame-arguments", and deprecate "set/show print raw
8256 * valprint.c (_initialize_valprint): Deprecate "set/show print
8259 2019-06-13 Pedro Alves <palves@redhat.com>
8261 * compile/compile.c (struct compile_options): New.
8262 (compile_flag_option_def, compile_command_option_defs)
8263 (make_compile_options_def_group): New.
8264 (compile_file_command): Handle options with
8265 gdb::option::process_options.
8266 (compile_file_command_completer): New function.
8267 (compile_code_command): Handle options with
8268 gdb::option::process_options.
8269 (compile_code_command_completer): New function.
8270 (_initialize_compiler): Install completers for "compile code" and
8271 "compile file". Mention available options in "compile code" and
8272 "compile code"'s help.
8273 * completer.c (advance_to_completion_word): New, factored out from
8275 (advance_to_expression_complete_word_point): ... this.
8276 (advance_to_filename_complete_word_point): New.
8277 * completer.h (advance_to_filename_complete_word_point): New
8280 2019-06-13 Pedro Alves <palves@redhat.com>
8282 * compile/compile.c: Include "cli/cli-option.h".
8283 (compile_print_value): Scope data pointer is now a
8284 value_print_options pointer; adjust.
8285 (compile_print_command): Process options. Scope data pointer is
8286 now a value_print_options pointer; adjust.
8287 (_initialize_compile): Update "compile print"'s help to include
8288 supported options. Install a completer for "compile print".
8289 * cp-valprint.c (show_vtblprint, show_objectprint)
8290 (show_static_field_print): Delete.
8291 (_initialize_cp_valprint): Don't install "set print
8292 static-members", "set print vtbl", "set print object" here.
8293 * printcmd.c: Include "cli/cli-option.h" and
8294 "common/gdb_optional.h".
8295 (print_command_parse_format): Rework to fill in a
8296 value_print_options instead of a format_data.
8297 (print_value): Change parameter type from format_data pointer to
8298 value_print_options reference. Adjust.
8299 (print_command_1): Process options. Adjust to pass down a
8300 value_print_options.
8301 (print_command_completer): New.
8302 (_initialize_printcmd): Install print_command_completer as
8303 handle_brkchars completer for the "print" command. Update
8304 "print"'s help to include supported options.
8305 * valprint.c: Include "cli/cli-option.h".
8306 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8307 here from cp-valprint.c.
8308 (boolean_option_def, uinteger_option_def)
8309 (value_print_option_defs, make_value_print_options_def_group):
8310 New. Use gdb::option::add_setshow_cmds_for_options to install
8311 "set print elements", "set print null-stop", "set print repeats",
8312 "set print pretty", "set print union", "set print array", "set
8313 print address", "set print symbol", "set print array-indexes".
8314 * valprint.h: Include <string> and "cli/cli-option.h".
8315 (make_value_print_options_def_group): Declare.
8316 (print_value): Change parameter type from format_data pointer to
8317 value_print_options reference.
8318 (print_command_completer): Declare.
8320 2019-06-13 Pedro Alves <palves@redhat.com>
8322 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8323 (COMMON_SFILES): Add maint-test-settings.c.
8324 * cli/cli-decode.c (boolean_enums): New global, factored out from
8326 (add_setshow_boolean_cmd): ... here.
8327 * cli/cli-decode.h (boolean_enums): Declare.
8328 * cli/cli-option.c: New file.
8329 * cli/cli-option.h: New file.
8330 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8331 factored out from ...
8332 (parse_cli_boolean_value(const char *)): ... this.
8333 (is_unlimited_literal): Change parameter type to pointer to
8334 pointer. Adjust and advance ARG pointer.
8335 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8336 (parse_cli_var_enum): New, factored out from ...
8337 (do_set_command): ... this. Adjust.
8338 * cli/cli-setshow.h (parse_cli_boolean_value)
8339 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8340 (parse_cli_var_enum): Declare.
8341 * cli/cli-utils.c: Include "cli/cli-option.h".
8342 (get_ulongest): New.
8343 * cli/cli-utils.h (get_ulongest): Declare.
8344 (check_for_argument): New overloads.
8345 * maint-test-options.c: New file.
8347 2019-06-13 Pedro Alves <palves@redhat.com>
8349 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8350 parse a range if "-" is at the end of the string.
8352 2019-06-13 Pedro Alves <palves@redhat.com>
8354 * cli/cli-setshow.c (parse_auto_binary_operation)
8355 (parse_cli_boolean_value): Don't allow "o".
8357 2019-06-13 Pedro Alves <palves@redhat.com>
8359 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8360 * NEWS: Mention maint test-settings KIND.
8361 * maint-test-settings.c: New file.
8363 2019-06-13 Pedro Alves <palves@redhat.com>
8365 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8367 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8370 2019-06-13 Pedro Alves <palves@redhat.com>
8372 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8375 2019-06-13 Pedro Alves <palves@redhat.com>
8377 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8379 2019-06-13 Pedro Alves <palves@redhat.com>
8381 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8382 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8384 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8385 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8387 (check_for_argument): Skip spaces after argument.
8389 2019-06-13 Pedro Alves <palves@redhat.com>
8391 * thread.c (thread_apply_command): Adjust TID parsing.
8392 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8393 detected before end of string.
8394 (tid_is_in_list): Error out if LIST is invalid.
8396 2019-06-13 Pedro Alves <palves@redhat.com>
8398 * completer.c (complete_line_internal_1): Rewind completion word
8400 (completion_tracker::advance_custom_word_point_by): Change
8401 parameter type to int.
8402 * completer.h (completion_tracker::advance_custom_word_point_by):
8405 2019-06-13 Pedro Alves <palves@redhat.com>
8407 * completer.c (advance_to_completion_word): Handle delimiters.
8409 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8411 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8413 2019-06-11 Tom Tromey <tom@tromey.com>
8415 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8416 (xmalloc_failed): Move to alloc.c.
8417 * alloc.c: New file.
8418 * Makefile.in (COMMON_SFILES): Add alloc.c.
8420 2019-06-11 Tom Tromey <tom@tromey.com>
8422 * nat/linux-waitpid.c: Don't include server.h.
8423 (linux_debug): Remove.
8424 (my_waitpid): Update.
8426 2019-06-11 Tom Tromey <tromey@adacore.com>
8428 * infcall.c (_initialize_infcall): Remove trailing newline from
8430 * user-regs.c (_initialize_user_regs): Remove trailing newline
8432 * typeprint.c (_initialize_typeprint): Remove trailing newline
8434 * reverse.c (_initialize_reverse): Remove trailing newlines from
8436 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8438 * language.c (add_set_language_command): Remove trailing newline
8440 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8442 * disasm.c (_initialize_disasm): Remove trailing newline from
8444 * top.c (init_main): Remove trailing newline from help.
8445 * interps.c (_initialize_interpreter): Remove trailing newline
8447 * btrace.c (_initialize_btrace): Remove trailing newlines from
8449 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8451 * python/python.c (_initialize_python): Remove trailing newline
8453 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8455 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8456 from help. Reformat some text.
8457 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8459 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8462 2019-06-11 Tom Tromey <tromey@adacore.com>
8464 * darwin-nat.c (darwin_decode_exception_message)
8465 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8467 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8469 * valops.c (value_slice): Check for not allocated or not
8472 2019-06-10 Tom de Vries <tdevries@suse.de>
8475 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8476 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8479 2019-06-10 Tom de Vries <tdevries@suse.de>
8482 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8483 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8485 2019-06-10 Tom de Vries <tdevries@suse.de>
8488 * symtab.c (struct demangled_name_entry): Add language field.
8489 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8490 static minimal symbol". Set and use language field.
8492 2019-06-10 Tom Tromey <tromey@adacore.com>
8494 * ada-lang.c (_initialize_ada_language): Update help text.
8496 2019-06-10 Tom Tromey <tromey@adacore.com>
8498 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8500 * guile/guile.c (handle_boot_error): Don't end warning with a
8502 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8503 warning with a newline.
8504 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8506 (s12z_frame_cache): Likewise.
8507 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8509 * solib-svr4.c (disable_probes_interface): Don't end warning with
8511 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8513 * python/python.c (do_finish_initialization): Don't end warning
8516 2019-06-10 Tom Tromey <tom@tromey.com>
8518 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8519 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8522 2019-06-10 Tom Tromey <tromey@adacore.com>
8524 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8526 (elf_new_init): Don't call stabsread_new_init.
8527 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8528 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8529 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8531 2019-06-10 Tom de Vries <tdevries@suse.de>
8535 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8537 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8539 * source.c (find_and_open_source): Also rewrite relative file
8542 2019-04-26 Amos Bird <amosbird@gmail.com>
8544 * annotate.c (annotate_thread_exited): Add "thread-exited"
8547 2019-06-06 Tom Tromey <tromey@adacore.com>
8549 * maint.h (class scoped_command_stats): Use
8550 DISABLE_COPY_AND_ASSIGN.
8551 <print_time>: New method.
8552 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8554 (scoped_command_stats::print_time): New method.
8556 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8558 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8559 instructions of lengths 6 or 8 bytes.
8561 2019-06-04 Pedro Alves <palves@redhat.com>
8563 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8565 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8566 * breakpoint.c (condition_completer): Likewise.
8567 * cli/cli-dump.c (scan_expression): Likewise.
8568 * common/filestuff.c (mkdir_recursive): Likewise.
8569 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8570 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8571 (gdb_abspath): Likewise.
8572 * compile/compile-cplus-types.c
8573 (compile_cplus_instance::decl_name): Likewise.
8574 * completer.c (complete_explicit_location):
8575 (signal_completer, reg_or_group_completer_1): Likewise.
8576 * cp-support.c (cp_remove_params_if_any): Likewise.
8577 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8578 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8579 * infcmd.c (strip_bg_char): Likewise.
8580 * linespec.c (copy_token_string): Likewise.
8581 * mi/mi-main.c (output_cores): Likewise.
8582 * psymtab.c (psymtab_search_name):
8583 * symfile.c (test_set_ext_lang_command): Likewise.
8584 * target.c (target_fileio_read_stralloc): Likewise.
8585 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8586 * value.c (complete_internalvar): Likewise.
8588 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8590 Add objfile property to gdb.Type.
8591 * NEWS: Mention Python API addition.
8592 * python/py-type.c (typy_get_objfile): New method.
8594 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8596 * NEWS: Mention the new set|show style [title|highlight].
8597 Mention changes to "show style", "help" and "apropos".
8599 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8601 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8602 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8603 instead of print_help_for_command.
8604 (print_doc_of_command): New function.
8605 (help_list): Add 'apropos -v word' suggestion.
8606 (print_help_for_command): Style the command name using title style.
8607 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8608 (_initialize_cli_cmds): Describe -v in apropos_command help.
8610 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8612 * cli/cli-style.h (cli_style_option): Add name in constructor,
8613 add m_name class member, add constructor with intensity,
8614 add name class function.
8615 (cli_style_option::add_setshow_commands): Remove name argument.
8616 (highlight_style, title_style): New styles.
8617 * cli/cli-style.c (do_show): New function that shows a style
8618 characteristic styling the style name with itself.
8619 (set_style_name): New function.
8620 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8621 Update all callers according to the changes in cli/cli-style.h.
8622 * utils.h (fputs_highlighted): New function.
8623 * utils.c (fputs_highlighted): Likewise.
8625 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8627 * NEWS: Mention new pipe command and new convenience variables.
8629 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8631 * cli/cli-cmds.c (pipe_command): New function.
8632 (_initialize_cli_cmds): Call add_com for pipe_command.
8633 Define | as an alias for pipe.
8634 (exit_status_set_internal_vars): New function.
8635 (shell_escape): Call exit_status_set_internal_vars.
8636 cli/cli-decode.c (find_command_name_length): Recognize | as
8637 a single character command.
8639 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8641 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8642 top.c (execute_command_to_ui_file): New function, mostly a copy
8643 of execute_command_to_string.
8644 (execute_command_to_string): Implement by calling
8645 execute_command_to_ui_file.
8647 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8649 * top.h (saved_command_line): Remove declaration.
8650 * top.c (previous_saved_command_line, previous_repeat_arguments):
8652 (saved_command_line): Make static, define together with other
8654 (dont_repeat): Clear repeat_arguments.
8655 (repeat_previous, get_saved_command_line, save_command_line):
8657 (gdb_init): Initialize saved_command_line
8658 and previous_saved_command_line.
8659 * main.c (captured_main_1): Remove saved_command_line initialization.
8660 * event-top.c (handle_line_of_input): Update to use
8661 the new 'repeat' related functions instead of direct access to
8663 * command.h (repeat_previous, get_saved_command_line,
8664 save_command_line): New declarations.
8665 (dont_repeat): Add comment.
8667 2019-05-30 Tom Tromey <tromey@adacore.com>
8669 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8671 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8673 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8676 * completer.c (complete): Initialize variable word.
8678 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8680 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8681 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8682 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8683 'body' is NULL to the outter 'if', protecting the '!is_define'
8686 2019-05-29 Tom Tromey <tromey@adacore.com>
8688 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8689 (dwarf_unknown): New function.
8690 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8691 (dwarf_type_encoding_name): Use dwarf_unknown.
8693 2019-05-29 Tom Tromey <tromey@adacore.com>
8696 * cp-valprint.c (cp_print_value_fields): Call
8697 cp_print_static_field inside "try".
8699 2019-05-29 Tom Tromey <tromey@adacore.com>
8701 * inflow.c (struct terminal_info): Add default operator=.
8702 * configure: Rebuild.
8703 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8704 -Wdeprecated-copy-dtor, -Wredundant-move.
8706 2019-05-29 Tom Tromey <tromey@adacore.com>
8709 * infcmd.c (print_return_value_1): Handle finish_print
8711 (show_print_finish): New function.
8712 (_initialize_infcmd): Add "set/show print finish" commands.
8713 * valprint.c (user_print_options): Initialize new member.
8714 * valprint.h (struct value_print_options) <finish_print>: New
8717 2019-05-28 Tom Tromey <tromey@adacore.com>
8719 * ada-lang.c (ada_remove_Xbn_suffix)
8720 (find_old_style_renaming_symbol)
8721 (parse_old_style_renaming): Remove.
8722 (ada_find_renaming_symbol): Don't call
8723 find_old_style_renaming_symbol.
8724 (ada_is_renaming_symbol): Rename from
8725 ada_find_renaming_symbol. Remove "block" parameter. Return
8727 (ada_read_var_value): Update and simplify.
8728 * ada-exp.y (write_var_or_type): Remove old code.
8730 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8733 * event-top.c: Remove include comment.
8734 * inflow.c (class scoped_ignore_sigttou): Move from here...
8735 * inflow.h (class scoped_ignore_sigttou): ...to here.
8736 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8737 * top.c: Remove include comment.
8739 2019-05-27 Tom Tromey <tom@tromey.com>
8743 2019-05-22 Tom Tromey <tromey@adacore.com>
8745 * target.c (target_follow_exec): Constify parameter.
8746 * target-delegates.c: Rebuild.
8747 * remote.c (remote_target::follow_exec): Constify parameter.
8748 * infrun.c (follow_exec): Constify parameter.
8749 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8750 (target_follow_exec): Likewise.
8752 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8754 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8755 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8757 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8759 * NEWS: Add debugredirect and testsuite sections.
8761 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8763 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8764 target descriptions using exclusively floating point register name
8767 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8770 * f-lang.c (build_fortran_types): Handle the case where
8771 gdbarch_floatformat_for_type returns a nullptr.
8773 2019-05-21 Tom de Vries <tdevries@suse.de>
8776 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8778 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8781 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8783 * i386-tdep.c (i386_floatformat_for_type): Use
8784 floatformats_ia64_quad for the 16-byte floating point component
8785 within a fortran 32-byte complex number.
8787 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8789 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8790 delete default constructor.
8791 (find_partial_die): Update to return const struct.
8792 (partial_die_parent_scope): Move variable declaration into scope
8793 of its use and change its type to auto.
8794 (guess_partial_die_structure_name): Likewise.
8795 (partial_die_info::fixup): Likewise.
8797 2019-05-17 Tom Tromey <tromey@adacore.com>
8799 * source.c (find_and_open_source): Remove cast.
8801 2019-05-17 Tom Tromey <tromey@adacore.com>
8803 * annotate.c (annotate_source): Make "filename" const.
8804 * annotate.h (annotate_source): Use const.
8806 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8808 * disasm.c (set_disassembler_options): Send errors to stderr.
8810 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8812 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8813 (cli_interp_base::set_logging): Check debug_redirect.
8814 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8815 * cli/cli-logging.c (debug_redirect): Add static variable.
8816 (pop_output_files): Add default param.
8817 (handle_redirections): Print debug setting.
8818 (show_logging_command): Likewise.
8819 (_initialize_cli_logging): Add debugredirect command.
8820 * interps.c (current_interp_set_logging): Add debug_redirect
8822 * interps.h (set_logging): Add debug_redirect parameter.
8823 (current_interp_set_logging): Likewise.
8824 * mi/mi-common.h: Likewise.
8825 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8827 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8828 Tom Tromey <tromey@adacore.com>
8830 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8832 * cli/cli-interp.h (make_logging_output): Remove declaration.
8833 * cli/cli-logging.c (make_logging_output): Remove function.
8834 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8836 * ui-file.c (tee_file::tee_file): Remove bools.
8837 (tee_file::~tee_file): Remove deletes.
8838 * ui-file.h (tee_file): Remove bools.
8840 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8842 * mi/mi-cmds.h (mi_cmd_complete): New function.
8843 * mi/mi-main.c (mi_cmd_complete): Likewise.
8844 * mi/mi-cmds.c: Define new MI command -complete.
8845 * NEWS: Mention new -complete command.
8847 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8849 * completer.h (complete): New function.
8850 * completer.c (complete): Likewise.
8851 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8852 function defined in completer.h.
8854 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8856 * MAINTAINERS (Write After Approval): Add myself.
8858 2019-05-17 Tom de Vries <tdevries@suse.de>
8861 * dwarf2read.c (struct cu_partial_die_info): New struct.
8862 (find_partial_die): Return cu_partial_die_info.
8863 (partial_die_parent_scope, guess_partial_die_structure_name)
8864 (partial_die_info::fixup): Handle new return type of find_partial_die.
8866 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8868 PR breakpoints/24541
8869 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8870 "std::string", simplifying the algorithm.
8872 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8874 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8875 (stap_static_probe_ops::get_probes): Likewise.
8877 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8879 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8880 '-')" and "else if".
8881 (stap_parse_single_operand): Join checks for
8882 "gdbarch_stap_parse_special_token_p" and
8883 "gdbarch_stap_parse_special_token" in the same "if" statement.
8884 Invert check when verifying for operation on register
8887 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8889 * stap-probe.c (stap_get_opcode): Update comment.
8890 (stap_get_expected_argument_type): Likewise.
8891 (handle_stap_probe): Likewise.
8893 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8896 return type to 'bool'. Adjust comment. Use 'bool' when
8898 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8899 * stap-probe.c (stap_parse_argument_1): Likewise.
8900 (stap_is_operator): Likewise.
8901 (stap_is_generic_prefix): Likewise.
8902 (stap_is_register_prefix): Likewise.
8903 (stap_is_register_indirection_prefix): Likewise.
8904 (stap_is_integer_prefix): Likewise.
8905 (stap_generic_check_suffix): Likewise.
8906 (stap_check_integer_suffix): Likewise.
8907 (stap_check_register_suffix): Likewise.
8908 (stap_check_register_indirection_suffix): Likewise.
8909 (stap_parse_register_operand): Likewise.
8910 (stap_parse_single_operand): Likewise.
8911 (stap_parse_argument_1): Likewise.
8912 (stap_probe::get_argument_count): Likewise.
8913 (stap_is_operator): Likewise.
8915 2019-05-16 Tom Tromey <tromey@adacore.com>
8917 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8920 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8922 * linux-thread-db.c (try_thread_db_load_1): Change return type
8924 (try_thread_db_load): Likewise.
8925 (try_thread_db_load_from_pdir_1): Likewise.
8926 (try_thread_db_load_from_pdir): Likewise.
8927 (try_thread_db_load_from_sdir): Likewise.
8928 (try_thread_db_load_from_dir): Likewise.
8929 (thread_db_load_search): Likewise.
8930 (has_libpthread): Likewise.
8931 (thread_db_load): Likewise.
8933 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8935 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8936 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8937 NULL, and complain/return if that's the case.
8939 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8941 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8942 (advance, posn, abstract_read_memory): New functions.
8943 [struct mem_read_abstraction]: New struct.
8944 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8946 2019-05-14 Tom Tromey <tromey@adacore.com>
8948 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8949 value is not lval_memory.
8951 2019-05-14 Tom Tromey <tromey@adacore.com>
8953 * solib.c (info_sharedlibrary_command): Style the file name.
8955 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8957 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8958 (aarch64_vnv_type): Likewise.
8959 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8960 * common/tdesc.c: Likewise.
8961 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8962 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8963 * features/aarch64-fpu.xml: Add ieee half view.
8964 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8965 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8966 * gdbtypes.h (struct builtin_type): Likewise.
8967 (struct objfile_type): Likewise.
8969 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8971 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8973 * location.h (string_to_event_location): Likewise.
8975 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8979 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8981 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8982 New variable declaration.
8983 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8985 (print_one_breakpoint): Use ui_out::test_flags and new global
8986 variable to compute use_fixed_output.
8987 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8989 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8990 (mi_multi_location_breakpoint_output_fixed): Remove.
8991 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8993 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8994 fix_multi_location_breakpoint_output flag if version >= 3.
8995 * ui-out.h (enum ui_out_flag)
8996 <fix_multi_location_breakpoint_output>: New enumerator.
8998 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9000 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9002 2019-05-10 Tom Tromey <tromey@adacore.com>
9004 * ada-lang.c (catch_ada_completer): New function.
9005 (_initialize_ada_language): Use it.
9007 2019-05-10 Tom Tromey <tromey@adacore.com>
9009 * thread.c (print_thread_info): Make "requested_threads" const.
9010 * gdbthread.h (print_thread_info): Make "requested_threads"
9012 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9013 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9015 2019-05-08 Tom Tromey <tom@tromey.com>
9017 * gdbtypes.c (objfile_type_data): Change type.
9018 (objfile_type, _initialize_gdbtypes): Update.
9020 2019-05-08 Tom Tromey <tom@tromey.com>
9022 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9023 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9024 (_initialize_dwarf2_frame): Update.
9026 2019-05-08 Tom Tromey <tom@tromey.com>
9028 * objc-lang.c (objc_objfile_data): Change type.
9029 (find_methods): Update.
9030 (_initialize_objc_lang): Remove.
9032 2019-05-08 Tom Tromey <tom@tromey.com>
9034 * stabsread.c (rs6000_builtin_type_data): Change type.
9035 (rs6000_builtin_type, _initialize_stabsread): Update.
9037 2019-05-08 Tom Tromey <tom@tromey.com>
9039 * mips-tdep.c (mips_pdr_data): Remove.
9040 (_initialize_mips_tdep): Update.
9042 2019-05-08 Tom Tromey <tom@tromey.com>
9044 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9045 (hppa_init_objfile_priv_data, read_unwind_info)
9046 (find_unwind_entry, _initialize_hppa_tdep): Update.
9048 2019-05-08 Tom Tromey <tom@tromey.com>
9050 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9051 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9053 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9055 2019-05-08 Tom Tromey <tom@tromey.com>
9057 * mdebugread.c (basic_type_data): Change type.
9058 (basic_type, _initialize_mdebugread): Update.
9060 2019-05-08 Tom Tromey <tom@tromey.com>
9062 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9064 2019-05-08 Tom Tromey <tom@tromey.com>
9066 * nto-tdep.c (nto_inferior_data_reg): Change type.
9067 (nto_inferior_data): Update.
9068 (nto_inferior_data_cleanup, nto_new_inferior_data)
9069 (_initialize_nto_tdep): Remove.
9070 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9072 2019-05-08 Tom Tromey <tom@tromey.com>
9074 * ada-lang.c (struct ada_inferior_data): Add initializers.
9075 (ada_inferior_data): Change type.
9076 (ada_inferior_data_cleanup): Remove.
9077 (get_ada_inferior_data, ada_inferior_exit)
9078 (struct ada_pspace_data): Add initializers, destructor.
9079 (ada_pspace_data_handle): Change type.
9080 (get_ada_pspace_data): Update.
9081 (ada_pspace_data_cleanup): Remove.
9083 2019-05-08 Tom Tromey <tom@tromey.com>
9085 * coffread.c (struct coff_symfile_info): Add initializers.
9086 (coff_objfile_data_key): Move lower. Change type.
9087 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9089 (coff_free_info): Remove.
9091 2019-05-08 Tom Tromey <tom@tromey.com>
9093 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9094 (fbsd_pspace_data_handle): Move lower. Change type.
9095 (get_fbsd_pspace_data): Update.
9096 (fbsd_pspace_data_cleanup): Remove.
9097 (_initialize_fbsd_tdep): Update.
9099 2019-05-08 Tom Tromey <tom@tromey.com>
9101 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9102 (get_ada_tasks_pspace_data): Update.
9103 (ada_tasks_pspace_data_cleanup): Remove.
9104 (_initialize_tasks): Update.
9105 (ada_tasks_inferior_data_handle): Change type.
9106 (get_ada_tasks_inferior_data): Update.
9107 (ada_tasks_inferior_data_cleanup): Remove.
9108 (struct ada_tasks_pspace_data): Add initializers.
9110 2019-05-08 Tom Tromey <tom@tromey.com>
9112 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9113 * symfile-debug.c (debug_sym_get_probes): Change type.
9114 * stap-probe.c (handle_stap_probe):
9115 (stap_static_probe_ops::get_probes): Change type.
9116 * probe.h (class static_probe_ops) <get_probes>: Change type.
9117 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9118 (parse_probes_in_pspace): Update.
9119 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9121 (any_static_probe_ops::get_probes): Change type.
9122 * elfread.c (elfread_data): New typedef.
9123 (probe_key): Change type.
9124 (elf_get_probes): Likewise. Update.
9125 (probe_key_free): Remove.
9126 (_initialize_elfread): Update.
9127 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9129 (dtrace_process_dof_probe, dtrace_process_dof)
9130 (dtrace_static_probe_ops::get_probe): Change type.
9132 2019-05-08 Tom Tromey <tom@tromey.com>
9134 * xcoffread.c (struct xcoff_symfile_info): Rename from
9135 coff_symfile_info. Add initializers.
9136 (xcoff_objfile_data_key): Move lower. Change type.
9137 (XCOFF_DATA): Rewrite.
9138 (xcoff_free_info): Remove.
9139 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9140 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9141 (xcoff_initial_scan): Update.
9143 2019-05-08 Tom Tromey <tom@tromey.com>
9145 * solib-svr4.c (struct svr4_info): Add initializers and
9147 <probes_table>: Now an htab_up.
9148 (solib_svr4_pspace_data): Change type.
9149 (free_probes_table): Simplify.
9150 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9151 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9152 (probes_table_remove_objfile_probes, register_solib_event_probe)
9153 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9154 (_initialize_svr4_solib): Update.
9156 2019-05-08 Tom Tromey <tom@tromey.com>
9158 * remote.c (remote_pspace_data): Change type.
9159 (remote_pspace_data_cleanup): Remove.
9160 (get_remote_exec_file, set_pspace_remote_exec_file)
9161 (_initialize_remote): Update.
9163 2019-05-08 Tom Tromey <tom@tromey.com>
9165 * breakpoint.c (breakpoint_objfile_key): Change type.
9166 (get_breakpoint_objfile_data): Update.
9167 (free_breakpoint_objfile_data): Remove.
9168 (_initialize_breakpoint): Update.
9170 2019-05-08 Tom Tromey <tom@tromey.com>
9172 * linux-tdep.c (struct linux_info): Add initializers.
9173 (linux_inferior_data): Move. Change type.
9174 (invalidate_linux_cache_inf): Update.
9175 (linux_inferior_data_cleanup): Remove.
9176 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9178 2019-05-08 Tom Tromey <tom@tromey.com>
9180 * auxv.c (auxv_inferior_data): Move. Change type.
9181 (auxv_inferior_data_cleanup): Remove.
9182 (invalidate_auxv_cache_inf): Rewrite.
9183 (get_auxv_inferior_data, _initialize_auxv): Update.
9185 2019-05-08 Tom Tromey <tom@tromey.com>
9187 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9188 (symfile_debug_objfile_data_key): Change type.
9189 (symfile_debug_installed, debug_qf_has_symbols)
9190 (debug_qf_find_last_source_symtab)
9191 (debug_qf_forget_cached_source_info)
9192 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9193 (debug_qf_print_stats, debug_qf_dump)
9194 (debug_qf_expand_symtabs_for_function)
9195 (debug_qf_expand_all_symtabs)
9196 (debug_qf_expand_symtabs_with_fullname)
9197 (debug_qf_map_matching_symbols)
9198 (debug_qf_expand_symtabs_matching)
9199 (debug_qf_find_pc_sect_compunit_symtab)
9200 (debug_qf_map_symbol_filenames)
9201 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9202 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9203 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9204 (debug_sym_read_linetable, debug_sym_relocate): Update.
9205 (symfile_debug_free_objfile): Remove.
9206 (install_symfile_debug_logging, _initialize_symfile_debug):
9209 2019-05-08 Tom Tromey <tom@tromey.com>
9211 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9212 allocate_on_obstack.
9213 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9214 (get_dwarf2_per_objfile): Update.
9215 (set_dwarf2_per_objfile): Remove.
9216 (dwarf2_has_info, dwarf2_get_section_info): Update.
9217 (dwarf2_free_objfile): Remove.
9218 (_initialize_dwarf2_read): Update.
9220 2019-05-08 Tom Tromey <tom@tromey.com>
9222 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9224 <unsupported_script_warning_printed,
9225 script_not_found_warning_printed>: Now bool.
9226 (auto_load_pspace_data): Change type.
9227 (~auto_load_pspace_info): Rename from
9228 auto_load_pspace_data_cleanup.
9229 (get_auto_load_pspace_data, init_loaded_scripts_info)
9230 (clear_section_scripts, maybe_print_unsupported_script_warning)
9231 (maybe_print_script_not_found_warning, _initialize_auto_load):
9234 2019-05-08 Tom Tromey <tom@tromey.com>
9236 * objfiles.c (objfile_pspace_info): Add destructor and
9238 (objfiles_pspace_data): Change type.
9239 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9240 (get_objfile_pspace_data): Update.
9241 (objfiles_bfd_data): Change type.
9242 (get_objfile_bfd_data): Update.
9243 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9245 2019-05-08 Tom Tromey <tom@tromey.com>
9247 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9249 (get_catch_syscall_inferior_data): Update.
9250 (catch_syscall_inferior_data_cleanup): Remove.
9251 (_initialize_break_catch_syscall): Update.
9253 2019-05-08 Tom Tromey <tom@tromey.com>
9255 * inflow.c (struct terminal_info): Add destructor and
9257 (inflow_inferior_data): Change type.
9258 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9259 (get_inflow_inferior_data, inflow_inferior_exit)
9260 (swap_terminal_info, _initialize_inflow): Update.
9262 2019-05-08 Tom Tromey <tom@tromey.com>
9264 * target-dcache.c (target_dcache_cleanup): Remove.
9265 (target_dcache_aspace_key): Change type.
9266 (target_dcache_init_p, target_dcache_invalidate)
9267 (target_dcache_get, target_dcache_get_or_init)
9268 (_initialize_target_dcache): Update.
9269 * dcache.h (struct dcache_deleter): New.
9271 2019-05-08 Tom Tromey <tom@tromey.com>
9273 * symtab.c (struct symbol_cache): Add destructor and
9275 (symbol_cache_key): Move. Change type.
9276 (make_symbol_cache, free_symbol_cache): Remove.
9277 (get_symbol_cache): Update.
9278 (symbol_cache_cleanup): Remove.
9279 (ALL_PSPACES, symbol_cache_flush)
9280 (maintenance_print_symbol_cache)
9281 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9284 2019-05-08 Tom Tromey <tom@tromey.com>
9286 * symtab.c (struct main_info): Add destructor and initializers.
9287 (main_progspace_key): Move. Change type.
9288 (get_main_info): Update.
9289 (main_info_cleanup): Remove.
9290 (_initialize_symtab): Update.
9292 2019-05-08 Tom Tromey <tom@tromey.com>
9294 * registry.h (DECLARE_REGISTRY): Define the _key class.
9296 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9298 * NEWS: Merge two 'New commands' sections.
9300 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9302 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9303 parameter and use Ada language definition instead.
9304 (ada_val_print_ptr): Remove unused language parameter.
9305 (ada_val_print_num): Remove language parameter and use Ada language
9307 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9309 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9310 parameter and use Ada language definition instead.
9311 (ada_val_print_1): Update all ada_val_print_xxx calls.
9312 Remove language parameter.
9313 (ada_val_print): Update ada_val_print_1 call.
9315 2019-05-08 Tom Tromey <tromey@adacore.com>
9317 * remote.c (remote_hw_watchpoint_limit)
9318 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9321 2019-05-08 Tom Tromey <tromey@adacore.com>
9323 * maint.c (_initialize_maint_cmds): Move initialization code to
9325 (watchdog, show_watchdog): Move to remote.c.
9326 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9328 (_initialize_remote): Move initialization code from maint.c.
9329 * defs.h (watchdog): Don't declare.
9331 2019-05-08 Tom Tromey <tromey@adacore.com>
9333 * tui/tui-interp.c: Include main.h.
9334 * interps.c: Include main.h.
9335 * main.h (interpreter_p): Declare.
9336 * defs.h (interpreter_p): Don't declare.
9338 2019-05-08 Tom Tromey <tromey@adacore.com>
9340 * dwarf2loc.c: Include dwarf2read.h.
9341 * defs.h (read_unsigned_leb128): Don't declare.
9342 * dwarf2read.h (read_unsigned_leb128): Declare.
9344 2019-05-08 Tom Tromey <tromey@adacore.com>
9346 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9349 2019-05-08 Tom Tromey <tromey@adacore.com>
9351 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9352 when no wrap column is set.
9354 2019-05-08 Tom Tromey <tromey@adacore.com>
9356 * c-lang.c (c_get_string): Handle non-C-style arrays.
9358 2019-05-08 Tom Tromey <tromey@adacore.com>
9360 * typeprint.c (print_offset_data::update): Print the bit offset,
9361 not the number of bits remaining.
9363 2019-05-08 Tom Tromey <tromey@adacore.com>
9365 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9366 padding at end of comment.
9368 2019-05-08 Tom Tromey <tromey@adacore.com>
9370 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9373 2019-05-06 Tom Tromey <tom@tromey.com>
9375 * common/scoped_mmap.c: Include common-defs.h.
9376 * common/scoped_mmap.h: Don't include config.h.
9378 2019-05-04 Tom Tromey <tom@tromey.com>
9380 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9381 (struct aarch64_call_info): Add initializers.
9382 <si>: Now a std::vector.
9383 (pass_on_stack, aarch64_push_dummy_call): Update.
9385 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9386 Tom Tromey <tom@tromey.com>
9388 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9389 (ppc_threads): Now a std::vector. Now static.
9390 (hwdebug_find_thread_points_by_tid)
9391 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9394 2019-05-04 Tom Tromey <tom@tromey.com>
9396 * arc-tdep.c (arc_tdesc_init): Return bool.
9398 2019-05-04 Tom Tromey <tom@tromey.com>
9400 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9401 Use gdb_assert_not_reached.
9403 2019-05-04 Tom Tromey <tom@tromey.com>
9405 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9408 2019-05-04 Tom Tromey <tom@tromey.com>
9410 * arc-tdep.c (arc_tdesc_init): Use bool.
9412 2019-05-04 Tom Tromey <tom@tromey.com>
9414 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9416 2019-05-04 Tom Tromey <tom@tromey.com>
9418 * cli/cli-cmds.c (valid_command_p): Return bool.
9420 2019-05-04 Tom Tromey <tom@tromey.com>
9422 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9423 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9425 2019-05-04 Raul Tambre <raul@tambre.ee>
9427 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9428 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9429 operator for comparison.
9431 2019-05-04 Tom Tromey <tom@tromey.com>
9433 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9434 (lookup_partial_symbol, print_partial_symbols)
9435 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9436 (psymbol_compare): Update.
9437 (add_psymbol_to_bcache): Clear the entire psymbol.
9438 (maintenance_check_psymtabs): Update.
9439 * psympriv.h (struct partial_symbol): Don't derive from
9440 general_symbol_info.
9441 <obj_section, unrelocated_address, address,
9442 set_unrelocated_address>: Update.
9443 <ginfo>: New member.
9444 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9445 (debug_names::write_psymbols): Update.
9447 2019-05-04 Tom de Vries <tdevries@suse.de>
9449 * contrib/cc-with-tweaks.sh: Support -n arg.
9451 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9453 * corelow.c (core_target::detach): Ensure frame cache and
9454 register caches are cleared.
9455 inferior.c (exit_inferior_1): Likewise.
9457 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9458 Tom Tromey <tom@tromey.com>
9460 * dictionary.c (collate_pending_symbols_by_language): Remove
9461 "struct" from foreach.
9462 * symtab.c (lookup_global_symbol_from_objfile)
9463 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9465 * ser-tcp.c (net_open): Remove "struct" from foreach.
9466 * objfiles.c (objfile_relocate, objfile_rebase)
9467 (objfile_has_symbols): Remove "struct" from foreach.
9468 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9470 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9472 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9473 "struct" from foreach.
9474 * ada-lang.c (create_excep_cond_exprs)
9475 (ada_exception_catchpoint_cond_string): Remove "struct" from
9478 2019-05-03 Tom Tromey <tromey@adacore.com>
9480 * ada-exp.y (convert_char_literal): Check suffix of each
9483 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9486 * ada-exp.y (yywrap): Don't define.
9487 * ada-lex.l (%option): Add noyywrap
9490 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9492 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9493 _WIN32_WINNT to the XP level, unless already defined to a higher
9496 * unittests/parse-connection-spec-selftests.c:
9498 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9501 * symfile.c (find_separate_debug_file): Remove colon from the
9502 drive spec of DOS/Windows file names of the target, so that the
9503 file name produced from DEBUGDIR and the target's directory will
9504 be valid on DOS/Windows systems.
9506 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9508 * rust-lang.c (val_print_struct): Handle printing structures
9511 2019-05-02 Tom Tromey <tromey@adacore.com>
9513 * valarith.c (_initialize_valarith): Remove.
9515 2019-05-01 Tom Tromey <tromey@adacore.com>
9517 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9520 2019-05-01 Tom Tromey <tromey@adacore.com>
9522 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9523 for big-endian copies.
9525 2019-04-30 Ali Tamur <tamur@google.com>
9526 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9527 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9528 (read_3_bytes): New function.
9530 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9532 * windows-nat.c (main_thread_id): Delete.
9533 (handle_output_debug_string): Replace main_thread_id by
9534 current_event.dwThreadId.
9535 (fake_create_process): Likewise.
9536 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9537 Do not set main_thread_id.
9538 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9539 current_event.dwThreadId.
9540 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9542 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9544 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9545 Use current_event.dwThreadId instead of main_thread_id.
9547 2019-04-30 Tom Tromey <tromey@adacore.com>
9549 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9550 (create_excep_cond_exprs): Iterate over program spaces.
9551 (ada_exception_catchpoint_cond_string): Examine all minimal
9552 symbols for exception types.
9554 2019-04-30 Tom Tromey <tromey@adacore.com>
9557 * dwarf2read.c (process_structure_scope): Handle case where type
9558 has template parameters but no symbol was created.
9560 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9561 Chris January <chris.january@arm.com>
9563 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9565 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9567 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9569 * f-typeprint.c (f_print_type): Update rules for printing
9571 (f_type_print_varspec_suffix): Likewise.
9573 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9574 Chris January <chris.january@arm.com>
9576 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9579 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9581 * f-lang.c (build_fortran_types): Change name of void type to
9583 * f-typeprint.c (f_type_print_base): Print the name of the void
9584 type, rather than a fixed string.
9585 * f-valprint.c (f_decorations): Use lower case void string.
9587 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9588 Chris January <chris.january@arm.com>
9590 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9593 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9594 Chris January <chris.january@arm.com>
9595 David Lecomber <david.lecomber@arm.com>
9597 * f-exp.y (BINOP_INTRINSIC): New token.
9598 (exp): New parser rule handling BINOP_INTRINSIC.
9599 (f77_keywords): Add new builtin procedures.
9600 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9601 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9602 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9603 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9604 (print_unop_subexp_f): New function.
9605 (print_binop_subexp_f): New function.
9606 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9607 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9608 (dump_subexp_body_f): Likewise.
9609 (operator_check_f): Likewise.
9610 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9611 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9613 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9615 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9617 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9618 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9619 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9620 (operator_length_f): New fuction.
9621 (print_subexp_f): New function.
9622 (op_name_f): New function.
9623 (dump_subexp_body_f): New function.
9624 (operator_check_f): New function.
9625 (exp_descriptor_f): Replace standard expression handling functions
9627 * gdb/fortran-operator.def: New file.
9628 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9629 * gdb/std-operator.def: Remove UNOP_KIND.
9631 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9633 * std-operator.def: Remove unbalanced, stray double quote
9636 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9637 Chris January <chris.january@arm.com>
9638 Daniel Everett <daniel.everett@arm.com>
9639 Nick Forrington <nick.forrington@arm.com>
9640 Richard Bunt <richard.bunt@arm.com>
9642 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9643 of depth when printing anonymous structs or unions.
9644 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9645 Don't print either the top-level value, or the children if the
9646 max-depth is exceeded.
9647 (ppscm_print_children): When printing the key of a map, allow one
9648 extra level of depth.
9649 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9650 print either the top-level value, or the children if the max-depth
9652 (print_children): When printing the key of a map, allow one extra
9654 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9655 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9656 (user_print_options): Initialise max_depth field.
9657 (val_print_scalar_or_string_type_p): New function.
9658 (val_print): Check to see if the max depth has been reached.
9659 (val_print_check_max_depth): Define new function.
9660 (show_print_max_depth): New function.
9661 (_initialize_valprint): Add 'print max-depth' option.
9662 * valprint.h (struct value_print_options) <max_depth>: New field.
9663 (val_print_check_max_depth): Declare new function.
9664 * NEWS: Document new feature.
9666 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9668 * ada-lang.c (ada_language_defn): Initialise new field.
9669 * c-lang.c (c_is_string_type_p): New function.
9670 (c_language_defn): Initialise new field.
9671 (cplus_language_defn): Initialise new field.
9672 (asm_language_defn): Initialise new field.
9673 (minimal_language_defn): Initialise new field.
9674 * c-lang.h (c_is_string_type_p): Declare new function.
9675 * d-lang.c (d_language_defn): Initialise new field.
9676 * f-lang.c (f_is_string_type_p): New function.
9677 (f_language_defn): Initialise new field.
9678 * go-lang.c (go_is_string_type_p): New function.
9679 (go_language_defn): Initialise new field.
9680 * language.c (default_is_string_type_p): New function.
9681 (unknown_language_defn): Initialise new field.
9682 (auto_language_defn): Initialise new field.
9683 * language.h (struct language_defn) <la_is_string_type_p>: New
9685 (default_is_string_type_p): Declare new function.
9686 * m2-lang.c (m2_language_defn): Initialise new field.
9687 * objc-lang.c (objc_language_defn): Initialise new field.
9688 * opencl-lang.c (opencl_language_defn): Initialise new field.
9689 * p-lang.c (pascal_is_string_type_p): New function.
9690 (pascal_language_defn): Initialise new field.
9691 * rust-lang.c (rust_is_string_type_p): New function.
9692 (rust_language_defn): Initialise new field.
9694 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9696 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9698 * ada-lang.c (ada_language_defn): Initialise new field.
9699 * c-lang.c (c_language_defn): Likewise.
9700 (cplus_language_defn): Likewise.
9701 (asm_language_defn): Likewise.
9702 (minimal_language_defn): Likewise.
9703 * d-lang.c (d_language_defn): Likewise.
9704 * f-lang.c (f_language_defn): Likewise.
9705 * go-lang.c (go_language_defn): Likewise.
9706 * language.c (unknown_language_defn): Likewise.
9707 (auto_language_defn): Likewise.
9708 * m2-lang.c (m2_language_defn): Likewise.
9709 * objc-lang.c (objc_language_defn): Likewise.
9710 * opencl-lang.c (opencl_language_defn): Likewise.
9711 * p-lang.c (pascal_language_defn): Likewise.
9712 * rust-lang.c (rust_language_defn): Likewise.
9714 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9716 * ada-lang.c (ada_is_character_type): Change return type to bool.
9717 (ada_is_string_type): Likewise.
9718 * ada-lang.h (ada_is_character_type): Update declaration
9719 (ada_is_string_type): Likewise.
9721 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9723 Support style in 'frame|thread apply'
9725 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9726 * record.c (record_start, record_stop): Update callers of
9727 execute_command_to_string with false.
9728 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9729 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9731 (class string_file): New constructor with term_out parameter.
9732 Override methods term_out and can_emit_style_escape. New member
9734 (class stdio_file): Override can_emit_style_escape.
9735 (class tee_file): Override term_out and can_emit_style_escape.
9736 * utils.h (can_emit_style_escape): Remove.
9737 * utils.c (can_emit_style_escape): Likewise.
9738 Update all callers of can_emit_style_escape (SOMESTREAM) to
9739 SOMESTREAM->can_emit_style_escape.
9740 * source-cache.c (source_cache::get_source_lines): Likewise.
9741 * stack.c (frame_apply_command_count): Call execute_command_to_string
9742 passing the term_out characteristic of the current gdb_stdout.
9743 * thread.c (thr_try_catch_cmd): Likewise.
9744 * top.c (execute_command_to_string): pass term_out parameter
9745 to construct the string_file for the command output.
9746 * ui-file.c (term_cli_styling): New function (most code moved
9747 from utils.c can_emit_style_escape).
9748 (string_file::string_file, string_file::can_emit_style_escape,
9749 stdio_file::can_emit_style_escape, tee_file::term_out,
9750 tee_file::can_emit_style_escape): New functions.
9752 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9754 * NEWS: Mention the new set|show may-call-functions.
9755 * infcall.c (may_call_functions_p): New variable.
9756 (show_may_call_functions_p): New function.
9757 (call_function_by_hand_dummy): Throws an error if not
9759 (_initialize_infcall): Call add_setshow_boolean_cmd for
9762 2019-04-25 Keith Seitz <keiths@redhat.com>
9765 * cp-support.c (inspect_type): Don't attempt substitutions
9766 of symbol with the same name.
9768 2019-04-25 Tom Tromey <tromey@adacore.com>
9771 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9774 2019-04-25 Tom Tromey <tromey@adacore.com>
9776 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9778 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9779 (gdb_xml_parser::parse): Use std::move.
9780 * python/python-internal.h (gdbpy_convert_exception): Take a const
9782 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9784 * python/py-utils.c (gdbpy_convert_exception): Take a const
9786 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9788 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9790 * mi/mi-main.c (mi_print_exception): Take a const reference.
9791 * main.c (handle_command_errors): Take a const reference.
9792 * linespec.c (parse_linespec): Use std::move.
9793 * infcall.c (run_inferior_call): Use std::move.
9794 (call_function_by_hand_dummy): Use std::move.
9795 * exec.c (try_open_exec_file): Use std::move.
9796 * exceptions.h (exception_print, exception_fprintf)
9797 (exception_print_same): Update.
9798 * exceptions.c (print_exception, exception_print)
9799 (exception_fprintf, exception_print_same): Change parameters to
9801 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9802 * common/new-op.c: Use std::move.
9803 * common/common-exceptions.h (struct gdb_exception): Add move
9805 (struct gdb_exception_error, struct gdb_exception_quit, struct
9806 gdb_quit_bad_alloc): Change constructor to move constructor.
9807 (throw_exception): Change parameter to rvalue reference.
9808 * common/common-exceptions.c (throw_exception): Take rvalue
9810 * cli/cli-interp.c (safe_execute_command): Use std::move.
9811 * breakpoint.c (insert_bp_location, location_to_sals): Use
9814 2019-04-25 Tom Tromey <tromey@adacore.com>
9816 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9817 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9818 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9819 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9820 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9821 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9822 guile/scm-value.c: Use unpack.
9823 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9824 gdbscm_gdb_exception.
9825 (gdbscm_throw_gdb_exception): Likewise.
9826 (struct gdbscm_gdb_exception): New.
9827 (unpack): New function.
9828 (gdbscm_wrap): Use unpack.
9830 2019-04-25 Tom Tromey <tromey@adacore.com>
9832 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9833 (gdb_rl_callback_handler): Use std::move.
9834 * common/common-exceptions.h (struct gdb_exception): Add move
9835 assignment operator.
9836 (throw_exception_sjlj): Change "exception" to const reference.
9837 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9838 (throw_exception_sjlj): Change "exception" to const reference.
9840 2019-04-25 Tom Tromey <tromey@adacore.com>
9842 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9843 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9844 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9846 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9848 * mi/mi-interp.c (mi_interp::exec): Update.
9849 * linespec.c (parse_linespec): Update.
9850 * infcall.c (run_inferior_call): Update.
9851 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9852 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9853 (gdbscm_lookup_global_symbol): Update.
9854 * guile/scm-param.c (gdbscm_parameter_value): Update.
9855 * guile/scm-frame.c (gdbscm_frame_read_register)
9856 (gdbscm_frame_read_var): Update.
9857 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9858 * exec.c (try_open_exec_file): Update.
9859 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9860 (gdb_rl_callback_handler): Update.
9861 * common/common-exceptions.h (exception_none): Don't declare.
9862 * common/common-exceptions.c (exception_none): Don't define.
9863 (struct catcher) <exception>: Update.
9864 * cli/cli-interp.c (safe_execute_command): Update.
9865 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9867 2019-04-25 Ali Tamur <tamur@google.com>
9869 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9870 (read_attribute_value): Likewise.
9871 (dwarf2_read_addr_index): Update comment.
9872 (read_str_index): Add DW_FORM_strx.
9873 (dwarf2_string_attr): Likewise.
9874 (dwarf2_const_value_attr): Likewise.
9875 (dump_die_shallow): Likewise.
9876 (dwarf2_fetch_constant_bytes): Likewise.
9877 (skip_form_bytes): Likewise.
9878 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9880 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9884 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9885 OFFSET. Verify if current mapping contains an ELF header.
9886 (linux_find_memory_regions_full): Adjust call to
9889 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9890 Kang Li <kanglictf@gmail.com>
9894 * dwarf2-frame.c (read_initial_length): Be consistent about using
9895 unsigned representation of length.
9896 (decode_frame_entry_1): Likewise. Check for wraparound of
9897 end pointer as well as buffer overflow.
9899 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9901 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9904 2019-04-24 Tom Tromey <tromey@adacore.com>
9906 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9908 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9910 * s12z-tdep.c (s12z_unwind_pc): Delete.
9911 (s12z_unwind_sp): Delete.
9912 (s12z_gdbarch_init): Don't register deleted functions with
9915 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9917 * rl78-tdep.c (rl78_unwind_sp): Delete.
9918 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9920 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9922 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9923 (xstormy16_unwind_pc): Delete.
9924 (xstormy16_dummy_id): Delete.
9925 (xstormy16_gdbarch_init): Don't register deleted functions with
9928 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9930 * vax-tdep.c (vax_unwind_pc): Delete.
9931 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9933 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9935 * v850-tdep.c (v850_unwind_sp): Delete.
9936 (v850_unwind_pc): Delete.
9937 (v850_dummy_id): Delete.
9938 (v850_gdbarch_init): Don't register deleted functions with
9941 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9943 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9944 (tilegx_unwind_pc): Delete.
9945 (tilegx_unwind_dummy_id): Delete.
9946 (tilegx_gdbarch_init): Don't register deleted functions with
9949 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9951 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9952 (tic6x_dummy_id): Delete.
9953 (tic6x_gdbarch_init): Don't register deleted functions with
9956 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9958 * sparc-tdep.c (sparc_unwind_pc): Delete.
9959 (sparc32_gdbarch_init): Don't register deleted function with
9962 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9964 * sh-tdep.c (sh_unwind_sp): Delete.
9965 (sh_unwind_pc): Delete.
9966 (sh_dummy_id): Delete.
9967 (sh_gdbarch_init): Don't register deleted functions with
9970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9972 * score-tdep.c (score_unwind_sp): Delete.
9973 (score_unwind_pc): Delete.
9974 (score_dummy_id): Delete.
9975 (score_gdbarch_init): Don't register deleted functions with
9978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9980 * rx-tdep.c (rx_unwind_pc): Delete.
9981 (rx_unwind_sp): Delete.
9982 (rx_dummy_id): Delete.
9983 (rx_gdbarch_init): Don't register deleted functions with
9984 gdbarch. Update comment.
9986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9988 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9989 (rs6000_dummy_id): Delete.
9990 (rs6000_gdbarch_init): Don't register deleted functions with
9993 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9995 * or1k-tdep.c (or1k_dummy_id): Delete.
9996 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9998 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10000 * nios2-tdep.c (nios2_dummy_id): Delete.
10001 (nios2_unwind_sp): Delete.
10002 (nios2_gdbarch_init): Don't register deleted functions with
10005 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10007 * nds32-tdep.c (nds32_dummy_id): Delete.
10008 (nds32_unwind_pc): Delete.
10009 (nds32_unwind_sp): Delete.
10010 (nds32_gdbarch_init): Don't register deleted functions with
10013 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10015 * msp430-tdep.c (msp430_unwind_pc): Delete.
10016 (msp430_unwind_sp): Delete.
10017 (msp430_dummy_id): Delete.
10018 (msp430_gdbarch_init): Don't register deleted functions with
10021 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10023 * moxie-tdep.c (moxie_unwind_sp): Delete.
10024 (moxie_unwind_pc): Delete.
10025 (moxie_dummy_id): Delete.
10026 (moxie_gdbarch_init): Don't register deleted functions with
10029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10031 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10032 (mn10300_unwind_pc): Delete.
10033 (mn10300_unwind_sp): Delete.
10034 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10036 (mn10300_frame_unwind_init): Don't register deleted functions with
10039 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041 * mep-tdep.c (mep_unwind_pc): Delete.
10042 (mep_unwind_sp): Delete.
10043 (mep_dummy_id): Delete.
10044 (mep_gdbarch_init): Don't register deleted functions with
10047 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10049 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10050 (m68hc11_unwind_sp): Delete.
10051 (m68hc11_gdbarch_init): Don't register deleted functions with
10054 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10056 * m32r-tdep.c (m32r_unwind_sp): Delete.
10057 (m32r_unwind_pc): Delete.
10058 (m32r_dummy_id): Delete.
10059 (m32r_gdbarch_init): Don't register deleted functions with
10062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10064 * m32c-tdep.c (m32c_unwind_pc): Delete.
10065 (m32c_unwind_sp): Delete.
10066 (m32c_dummy_id): Delete.
10067 (m32c_gdbarch_init): Don't register deleted functions with
10070 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10072 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10073 (lm32_unwind_pc): Delete.
10074 (lm32_dummy_id): Delete.
10075 (lm32_gdbarch_init): Don't register deleted functions with
10078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10080 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10081 (iq2000_unwind_pc): Delete.
10082 (iq2000_dummy_id): Delete.
10083 (iq2000_gdbarch_init): Don't register deleted functions with
10086 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10088 * nds32-tdep.c (nds32_type_align): Delete.
10089 (nds32_push_dummy_call): Use type_align instead.
10091 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10093 * arm-tdep.c (arm_type_align): Only handle vector override case.
10094 (arm_push_dummy_call): Use type_align.
10095 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10097 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10099 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10101 (pass_on_stack): Use type_align.
10102 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10105 2019-04-23 Tom Tromey <tromey@adacore.com>
10107 * dwarf2read.c (line_header::file_name_at): Remove unused
10110 2019-04-23 Tom de Vries <tdevries@suse.de>
10113 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10117 2019-03-27 Ali Tamur <tamur@google.com>
10119 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10120 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10121 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10122 (dwarf_expr_context::get_addr_index): Likewise
10123 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10124 (symbol_needs_eval_context::get_addr_index): Likewise
10125 (disassemble_dwarf_expression): Add DW_OP_addrx
10126 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10127 (read_cutu_die_from_dwo): Update comment
10128 (skip_one_die): Add DW_FORM_addrx
10129 (read_attribute_value): Likewise
10130 (var_decode_location): Add DW_OP_addrx
10131 (dwarf2_const_value_attr): Add DW_FORM_addrx
10132 (dump_die_shallow): Likewise
10133 (dwarf2_fetch_constant_bytes): Likewise
10134 (decode_locdesc): Add DW_OP_addrx
10135 (skip_form_bytes): Add DW_FORM_addrx
10137 2019-04-22 Ali Tamur <tamur@google.com>
10139 * MAINTAINERS (Write After Approval): Add self.
10141 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10143 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10144 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10145 (open_symbol_file_object): Likewise.
10146 (svr4_default_sos): Add info parameter.
10147 (svr4_read_so_list): Likewise.
10148 (svr4_current_sos_direct): Adjust functions calls to pass down
10150 (svr4_current_sos_1): Add info parameter.
10151 (svr4_current_sos): Call get_svr4_info, pass info down to
10152 svr4_current_sos_1.
10153 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10155 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10157 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10159 (probes_table_remove_objfile_probes): Likewise.
10160 (register_solib_event_probe): Add info parameter.
10161 (solist_update_incremental): Pass info parameter down to
10163 (disable_probes_interface): Add info parameter.
10164 (svr4_handle_solib_event): Pass current_program_space to
10165 get_svr4_info. Adjust disable_probes_interface cleanup.
10166 (svr4_create_probe_breakpoints): Add info parameter, pass it
10167 down to register_solib_event_probe.
10168 (svr4_create_solib_event_breakpoints): Add info parameter,
10169 pass it down to svr4_create_probe_breakpoints.
10170 (enable_break): Pass info down to
10171 svr4_create_solib_event_breakpoints.
10172 (svr4_solib_create_inferior_hook): Pass current_program_space to
10174 (svr4_clear_solib): Likewise.
10176 2019-04-22 Pedro Alves <palves@redhat.com>
10178 * solib-svr4.c (svr4_free_objfile_observer): New.
10179 (probe_and_action::objfile): New field.
10180 (probes_table_htab_remove_objfile_probes)
10181 (probes_table_remove_objfile_probes): New functions.
10182 (register_solib_event_probe): Add 'objfile' parameter. Store it
10183 in the new probe_and_action. Don't store the probe in 'lookup'.
10184 (svr4_create_probe_breakpoints): Pass objfile to
10185 register_solib_event_probe.
10186 (_initialize_svr4_solib): Register a free_objfile observer.
10188 2019-04-19 Tom Tromey <tom@tromey.com>
10190 * common/queue.h: Remove.
10192 2019-04-19 Tom Tromey <tom@tromey.com>
10194 * event-loop.c: Don't include "common/queue.h".
10196 2019-04-19 Tom Tromey <tom@tromey.com>
10198 * remote.c (remote_target): Use delete.
10199 * remote-notif.h: Include <list>, not "common/queue.h".
10200 (notif_client_p): Remove typedef.
10201 (remote_notif_state): Add constructor, destructor, initializer.
10202 <notif_queue>: Now a std::list.
10203 (remote_notif_state_xfree): Don't declare.
10204 * remote-notif.c (remote_notif_process, handle_notification)
10205 (remote_notif_state_allocate): Update.
10206 (~remote_notif_state): Rename from remote_notif_state_xfree.
10208 2019-04-19 Tom Tromey <tom@tromey.com>
10210 * symfile.c (reread_symbols): Update.
10211 * objfiles.c (objfile_register_static_link)
10212 (objfile_lookup_static_link): Update
10213 (~objfile) Don't delete static_links.
10214 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10216 2019-04-19 Tom Tromey <tom@tromey.com>
10218 * type-stack.h (struct type_stack) <insert>: Constify string.
10219 * type-stack.c (type_stack::insert): Constify string.
10220 * gdbtypes.h (lookup_template_type): Update.
10221 (address_space_name_to_int): Update.
10222 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10224 (lookup_template_type): Make name const.
10225 * c-exp.y: Update rules.
10226 (lex_one_token, classify_name, classify_inner_name)
10227 (c_print_token): Update.
10228 * p-exp.y: Update rules.
10230 * f-exp.y: Update rules.
10232 * d-exp.y: Update rules.
10233 (lex_one_token, classify_name, classify_inner_name): Update.
10234 * parse.c (write_dollar_variable, copy_name): Return std::string.
10235 * parser-defs.h (copy_name): Change return type.
10236 * m2-exp.y: Update rules.
10238 * go-exp.y (lex_one_token): Update.
10240 (classify_unsafe_function, classify_packaged_name)
10241 (classify_name, yylex): Update.
10243 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10245 * configure.ac: add --enable-source-highlight switch.
10246 * configure: Regenerate.
10247 * top.c (print_gdb_version): plumb --enable-source-highlight
10248 status to "show configuration".
10250 2019-04-19 Tom Tromey <tromey@adacore.com>
10252 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10254 (empty_record, ada_template_to_fixed_record_type_1)
10255 (template_to_static_fixed_type)
10256 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10257 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10258 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10261 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10264 * source.c (print_source_lines_base): Advance "iter" when a
10265 control character is seen.
10267 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10269 * inferior.h (struct infcall_suspend_state_deleter):
10270 Catch exception in destructor to avoid crash.
10272 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10275 close to the add_com "shell".
10277 2019-04-18 Tom Tromey <tromey@adacore.com>
10279 * process-stratum-target.h (class process_stratum_target)
10280 <stratum>: Add "final".
10282 2019-04-17 Tom Tromey <tromey@adacore.com>
10284 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10285 against nullptr before use.
10287 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10289 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10291 2019-04-17 Jim Wilson <jimw@sifive.com>
10292 Andrew Burgess <andrew.burgess@embecosm.com>
10294 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10295 code read might fail, assume 4-byte breakpoint in that case.
10297 2019-04-15 Leszek Swirski <leszeks@google.com>
10299 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10300 rather than a hand-rolled POD check when checking for forced MEMORY
10303 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10305 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10306 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10308 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10309 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10310 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10313 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10315 * aarch64-linux-nat.c
10316 (aarch64_linux_nat_target::thread_architecture): Add override.
10317 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10320 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10322 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10324 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10326 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10327 target types of size 96-bits, add some additional comments, and
10328 check that the builtin type we found was the correct size.
10330 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10332 * utils.c (prompt_for_continue): Don't restore the styling at the
10333 end, as applied_style has the wrong value. This fixes styling in
10334 long lists of file names that are interrupted by the "Continue?"
10337 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10339 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10340 * c-lang.c (c_language_defn): Likewise.
10341 (cplus_language_defn): Likewise.
10342 (asm_language_defn): Likewise.
10343 (minimal_language_defn): Likewise.
10344 * d-lang.c (d_language_defn): Likewise.
10345 * f-lang.c (f_language_defn): Likewise.
10346 * go-lang.c (go_language_defn): Likewise.
10347 * language.c (unknown_language_defn): Likewise.
10348 (auto_language_defn): Likewise.
10349 * language.h (struct language_defn): Remove la_magic field.
10350 (LANG_MAGIC): Delete.
10351 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10352 * objc-lang.c (objc_language_defn): Likewise.
10353 * opencl-lang.c (opencl_language_defn): Likewise.
10354 * p-lang.c (pascal_language_defn): Likewise.
10355 * rust-lang.c (rust_language_defn): Likewise.
10357 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10359 * riscv-tdep.c (riscv_type_align): New function.
10360 (riscv_type_alignment): Delete.
10361 (riscv_arg_location): Use 'type_align'.
10362 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10364 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10366 * gdbtypes.c (type_align): A struct with no non-static fields also
10367 has alignment of 1.
10369 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10371 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10373 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10375 (riscv_struct_info::analyse): New implementation using new
10376 analyse_inner member function.
10377 (riscv_struct_info::field_offset): New member function.
10378 (riscv_struct_info::m_offsets): New member variable.
10379 (riscv_struct_info::analyse_inner): New private member function,
10380 takes the old implementation of riscv_struct_info::analyse but
10381 extended to track field offsets.
10382 (riscv_call_arg_struct): Update the struct folding special cases
10383 to handle cases where empty C++ structs, which are non-zero
10385 (riscv_arg_location): Initialise the length of each location, a
10386 non-zero length now indicates the location is in use.
10387 (riscv_push_dummy_call): Allow for the first location having a
10388 non-zero offset when setting up arguments.
10389 (riscv_return_value): Likewise, but for return values.
10391 2019-04-11 Tom Tromey <tromey@adacore.com>
10393 * utils.c (internal_vproblem): Make "msg" const.
10395 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10397 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10398 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10399 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10400 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10402 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10404 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10406 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10407 of amd64_collect_native_gregset.
10408 (amd64_linux_nat_target::store_registers): Likewise.
10410 2019-04-10 Tom Tromey <tom@tromey.com>
10412 * symtab.c (lookup_global_symbol_from_objfile)
10413 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10414 * objfiles.h (class separate_debug_iterator): New.
10415 (class separate_debug_range): New.
10416 (struct objfile) <separate_debug_objfiles>: New method.
10417 (objfile_separate_debug_iterate): Don't declare.
10418 * objfiles.c (separate_debug_iterator::operator++): Rename from
10419 objfile_separate_debug_iterate.
10420 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10422 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10425 2019-04-10 Tom Tromey <tom@tromey.com>
10427 * symfile.c (reread_symbols): Remove old comment.
10428 * objfiles.c (free_all_objfiles): Fix a typo.
10430 2019-04-10 Tom Tromey <tom@tromey.com>
10432 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10433 * minsyms.c (lookup_minimal_symbol): Use foreach.
10434 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10435 (lookup_minimal_symbol_solib_trampoline): Likewise.
10436 * symfile.c (reread_symbols): Use foreach.
10438 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10439 Tom Tromey <tromey@adacore.com>
10442 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10443 (rust_lex_int_test): Change "value" to be LONGEST.
10444 (rust_lex_tests): Add test for long integer literal.
10446 2019-04-09 Tom Tromey <tromey@adacore.com>
10448 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10450 (extended_remote_target::attach): Update.
10451 (remote_target::remote_notice_new_inferior): Update.
10452 (remote_target::add_current_inferior_and_thread): Update.
10453 * inferior.c (exit_inferior_1): Use "false".
10454 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10456 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10458 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10459 the "start" command.
10461 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10463 * python/py-inferior.c (infpy_thread_from_thread_handle):
10464 Adjust comments to reflect renaming of thread_from_thread_handle
10465 to thread_from_handle. Adjust keywords. Fix type error message.
10466 (inferior_object_methods): Add thread_from_handle. Retain
10467 thread_from_thread_handle, but mark it as deprecated.
10469 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10471 * gdbthread.h (find_thread_by_handle): Revise declaration.
10472 * thread.c (find_thread_by_handle): Likewise. Adjust
10473 implementation too.
10474 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10475 support for buffer objects as handles.
10477 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10479 * python/py-infthread.c (thpy_thread_handle): New function.
10480 (thread_object_methods): Register thpy_thread_handle.
10482 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10484 * gdbthread.h (thread_to_thread_handle): Declare.
10485 * thread.c (gdbtypes.h): Include.
10486 (thread_to_thread_handle): New function.
10488 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10489 (target_thread_info_to_thread_handle): Declare.
10490 * target.c (target_thread_info_to_thread_handle): New function.
10491 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10492 * target-delegates.c: Regenerate.
10494 * linux-thread-db.c (class thread_db_target): Add method
10495 thread_info_to_thread_handle.
10496 (thread_db_target::thread_info_to_thread_handle): Define.
10497 * remote.c (class remote_target): Add new method
10498 thread_info_to_thread_handle.
10499 (remote_target::thread_info_to_thread_handle): Define.
10501 2019-04-08 Pedro Alves <palves@redhat.com>
10503 * common/common-exceptions.c (throw_exception): Don't create
10504 named object to throw; throw directly.
10505 (throw_it): Likewise. Don't initialize gdb_exception::message
10506 here, with new; pass FMT and AP to the ctor instead.
10507 * common/common-exceptions.h: Include <string>.
10508 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10509 const char *, va_list)): New ctor. Use std::make_shared.
10510 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10512 (gdb_exception_error::gdb_exception_error(enum errors, const char
10514 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10516 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10518 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10519 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10522 2019-04-08 Tom Tromey <tom@tromey.com>
10524 * valops.c (value_rtti_indirect_type): Replace throw_exception
10526 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10528 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10530 * target.c (target_translate_tls_address): Replace throw_exception
10532 * stack.c (frame_apply_command_count): Replace throw_exception
10534 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10536 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10538 * rs6000-tdep.c (rs6000_frame_cache)
10539 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10540 * remote.c: Replace throw_exception with throw.
10541 * record-full.c (record_full_message, record_full_wait_1)
10542 (record_full_restore): Replace throw_exception with throw.
10544 (get_thread_current_frame_id, record_btrace_start_replaying)
10545 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10546 (cmd_record_btrace_start): Replace throw_exception with throw.
10547 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10549 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10550 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10552 (find_linespec_symbols): Replace throw_exception with throw.
10553 * infrun.c (displaced_step_prepare, resume): Replace
10554 throw_exception with throw.
10555 * infcmd.c (post_create_inferior): Replace throw_exception with
10557 * inf-loop.c (inferior_event_handler): Replace throw_exception
10559 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10560 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10561 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10562 (get_prev_frame_always, get_frame_pc_if_available)
10563 (get_frame_address_in_block_if_available, get_frame_language):
10564 Replace throw_exception with throw.
10565 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10566 throw_exception with throw.
10567 * eval.c (fetch_subexp_value, evaluate_var_value)
10568 (evaluate_funcall, evaluate_subexp_standard): Replace
10569 throw_exception with throw.
10570 * dwarf2loc.c (call_site_find_chain)
10571 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10572 Replace throw_exception with throw.
10573 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10575 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10577 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10578 * completer.c (complete_line_internal): Replace throw_exception
10580 * compile/compile-object-run.c (compile_object_run): Replace
10581 throw_exception with throw.
10582 * cli/cli-script.c (process_next_line): Replace throw_exception
10584 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10585 (btrace_enable, btrace_maint_update_pt_packets): Replace
10586 throw_exception with throw.
10587 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10588 throw_exception with throw.
10589 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10590 throw_exception with throw.
10591 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10592 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10593 * aarch64-tdep.c (aarch64_make_prologue_cache)
10594 (aarch64_make_stub_cache): Replace throw_exception with throw.
10596 2019-04-08 Tom Tromey <tom@tromey.com>
10598 * common/common-exceptions.c (throw_exception): Rename from
10599 throw_exception_cxx. Remove old copy. Make argument const.
10600 (throw_it): Create and throw exception objects directly.
10601 * common/common-exceptions.h (throw_exception): Make argument
10603 (struct gdb_exception_error): Add constructor.
10604 (struct gdb_exception_quit): Add constructor.
10606 2019-04-08 Tom Tromey <tom@tromey.com>
10608 * common/common-exceptions.h (exception_rethrow): Don't declare.
10609 (TRY_SJLJ): Update comment.
10610 (TRY, CATCH, END_CATCH): Remove.
10611 * common/common-exceptions.c (exception_rethrow): Remove.
10613 2019-04-08 Tom Tromey <tom@tromey.com>
10615 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10617 (gdb_exception_error): Rename from
10618 gdb_exception_RETURN_MASK_ERROR.
10619 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10620 (gdb_quit_bad_alloc): Update.
10621 * aarch64-tdep.c: Update.
10622 * ada-lang.c: Update.
10623 * ada-typeprint.c: Update.
10624 * ada-valprint.c: Update.
10625 * amd64-tdep.c: Update.
10626 * arch-utils.c: Update.
10627 * break-catch-throw.c: Update.
10628 * breakpoint.c: Update.
10629 * btrace.c: Update.
10630 * c-varobj.c: Update.
10631 * cli/cli-cmds.c: Update.
10632 * cli/cli-interp.c: Update.
10633 * cli/cli-script.c: Update.
10634 * common/common-exceptions.c: Update.
10635 * common/new-op.c: Update.
10636 * common/selftest.c: Update.
10637 * compile/compile-c-symbols.c: Update.
10638 * compile/compile-cplus-symbols.c: Update.
10639 * compile/compile-object-load.c: Update.
10640 * compile/compile-object-run.c: Update.
10641 * completer.c: Update.
10642 * corelow.c: Update.
10643 * cp-abi.c: Update.
10644 * cp-support.c: Update.
10645 * cp-valprint.c: Update.
10646 * darwin-nat.c: Update.
10647 * disasm-selftests.c: Update.
10648 * dtrace-probe.c: Update.
10649 * dwarf-index-cache.c: Update.
10650 * dwarf-index-write.c: Update.
10651 * dwarf2-frame-tailcall.c: Update.
10652 * dwarf2-frame.c: Update.
10653 * dwarf2loc.c: Update.
10654 * dwarf2read.c: Update.
10656 * event-loop.c: Update.
10657 * event-top.c: Update.
10659 * f-valprint.c: Update.
10660 * fbsd-tdep.c: Update.
10661 * frame-unwind.c: Update.
10663 * gdbtypes.c: Update.
10664 * gnu-v3-abi.c: Update.
10665 * guile/guile-internal.h: Update.
10666 * guile/scm-block.c: Update.
10667 * guile/scm-breakpoint.c: Update.
10668 * guile/scm-cmd.c: Update.
10669 * guile/scm-disasm.c: Update.
10670 * guile/scm-frame.c: Update.
10671 * guile/scm-lazy-string.c: Update.
10672 * guile/scm-math.c: Update.
10673 * guile/scm-param.c: Update.
10674 * guile/scm-ports.c: Update.
10675 * guile/scm-pretty-print.c: Update.
10676 * guile/scm-symbol.c: Update.
10677 * guile/scm-symtab.c: Update.
10678 * guile/scm-type.c: Update.
10679 * guile/scm-value.c: Update.
10680 * i386-linux-tdep.c: Update.
10681 * i386-tdep.c: Update.
10682 * inf-loop.c: Update.
10683 * infcall.c: Update.
10684 * infcmd.c: Update.
10685 * infrun.c: Update.
10687 * language.c: Update.
10688 * linespec.c: Update.
10689 * linux-fork.c: Update.
10690 * linux-nat.c: Update.
10691 * linux-tdep.c: Update.
10692 * linux-thread-db.c: Update.
10694 * mi/mi-cmd-break.c: Update.
10695 * mi/mi-cmd-stack.c: Update.
10696 * mi/mi-interp.c: Update.
10697 * mi/mi-main.c: Update.
10698 * objc-lang.c: Update.
10699 * p-valprint.c: Update.
10701 * ppc-linux-tdep.c: Update.
10702 * printcmd.c: Update.
10703 * python/py-arch.c: Update.
10704 * python/py-breakpoint.c: Update.
10705 * python/py-cmd.c: Update.
10706 * python/py-finishbreakpoint.c: Update.
10707 * python/py-frame.c: Update.
10708 * python/py-framefilter.c: Update.
10709 * python/py-gdb-readline.c: Update.
10710 * python/py-inferior.c: Update.
10711 * python/py-infthread.c: Update.
10712 * python/py-lazy-string.c: Update.
10713 * python/py-linetable.c: Update.
10714 * python/py-objfile.c: Update.
10715 * python/py-param.c: Update.
10716 * python/py-prettyprint.c: Update.
10717 * python/py-progspace.c: Update.
10718 * python/py-record-btrace.c: Update.
10719 * python/py-record.c: Update.
10720 * python/py-symbol.c: Update.
10721 * python/py-type.c: Update.
10722 * python/py-unwind.c: Update.
10723 * python/py-utils.c: Update.
10724 * python/py-value.c: Update.
10725 * python/python.c: Update.
10726 * record-btrace.c: Update.
10727 * record-full.c: Update.
10728 * remote-fileio.c: Update.
10729 * remote.c: Update.
10730 * riscv-tdep.c: Update.
10731 * rs6000-aix-tdep.c: Update.
10732 * rs6000-tdep.c: Update.
10733 * rust-exp.y: Update.
10734 * rust-lang.c: Update.
10735 * s390-tdep.c: Update.
10736 * selftest-arch.c: Update.
10737 * solib-dsbt.c: Update.
10738 * solib-frv.c: Update.
10739 * solib-spu.c: Update.
10740 * solib-svr4.c: Update.
10742 * sparc64-linux-tdep.c: Update.
10744 * symfile-mem.c: Update.
10745 * symmisc.c: Update.
10746 * target.c: Update.
10747 * thread.c: Update.
10749 * tracefile-tfile.c: Update.
10750 * tui/tui.c: Update.
10751 * typeprint.c: Update.
10752 * unittests/cli-utils-selftests.c: Update.
10753 * unittests/parse-connection-spec-selftests.c: Update.
10754 * valops.c: Update.
10755 * valprint.c: Update.
10757 * varobj.c: Update.
10758 * windows-nat.c: Update.
10759 * x86-linux-nat.c: Update.
10760 * xml-support.c: Update.
10762 2019-04-08 Tom Tromey <tom@tromey.com>
10764 * xml-support.c: Use C++ exception handling.
10765 * x86-linux-nat.c: Use C++ exception handling.
10766 * windows-nat.c: Use C++ exception handling.
10767 * varobj.c: Use C++ exception handling.
10768 * value.c: Use C++ exception handling.
10769 * valprint.c: Use C++ exception handling.
10770 * valops.c: Use C++ exception handling.
10771 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10773 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10774 * typeprint.c: Use C++ exception handling.
10775 * tui/tui.c: Use C++ exception handling.
10776 * tracefile-tfile.c: Use C++ exception handling.
10777 * top.c: Use C++ exception handling.
10778 * thread.c: Use C++ exception handling.
10779 * target.c: Use C++ exception handling.
10780 * symmisc.c: Use C++ exception handling.
10781 * symfile-mem.c: Use C++ exception handling.
10782 * stack.c: Use C++ exception handling.
10783 * sparc64-linux-tdep.c: Use C++ exception handling.
10784 * solib.c: Use C++ exception handling.
10785 * solib-svr4.c: Use C++ exception handling.
10786 * solib-spu.c: Use C++ exception handling.
10787 * solib-frv.c: Use C++ exception handling.
10788 * solib-dsbt.c: Use C++ exception handling.
10789 * selftest-arch.c: Use C++ exception handling.
10790 * s390-tdep.c: Use C++ exception handling.
10791 * rust-lang.c: Use C++ exception handling.
10792 * rust-exp.y: Use C++ exception handling.
10793 * rs6000-tdep.c: Use C++ exception handling.
10794 * rs6000-aix-tdep.c: Use C++ exception handling.
10795 * riscv-tdep.c: Use C++ exception handling.
10796 * remote.c: Use C++ exception handling.
10797 * remote-fileio.c: Use C++ exception handling.
10798 * record-full.c: Use C++ exception handling.
10799 * record-btrace.c: Use C++ exception handling.
10800 * python/python.c: Use C++ exception handling.
10801 * python/py-value.c: Use C++ exception handling.
10802 * python/py-utils.c: Use C++ exception handling.
10803 * python/py-unwind.c: Use C++ exception handling.
10804 * python/py-type.c: Use C++ exception handling.
10805 * python/py-symbol.c: Use C++ exception handling.
10806 * python/py-record.c: Use C++ exception handling.
10807 * python/py-record-btrace.c: Use C++ exception handling.
10808 * python/py-progspace.c: Use C++ exception handling.
10809 * python/py-prettyprint.c: Use C++ exception handling.
10810 * python/py-param.c: Use C++ exception handling.
10811 * python/py-objfile.c: Use C++ exception handling.
10812 * python/py-linetable.c: Use C++ exception handling.
10813 * python/py-lazy-string.c: Use C++ exception handling.
10814 * python/py-infthread.c: Use C++ exception handling.
10815 * python/py-inferior.c: Use C++ exception handling.
10816 * python/py-gdb-readline.c: Use C++ exception handling.
10817 * python/py-framefilter.c: Use C++ exception handling.
10818 * python/py-frame.c: Use C++ exception handling.
10819 * python/py-finishbreakpoint.c: Use C++ exception handling.
10820 * python/py-cmd.c: Use C++ exception handling.
10821 * python/py-breakpoint.c: Use C++ exception handling.
10822 * python/py-arch.c: Use C++ exception handling.
10823 * printcmd.c: Use C++ exception handling.
10824 * ppc-linux-tdep.c: Use C++ exception handling.
10825 * parse.c: Use C++ exception handling.
10826 * p-valprint.c: Use C++ exception handling.
10827 * objc-lang.c: Use C++ exception handling.
10828 * mi/mi-main.c: Use C++ exception handling.
10829 * mi/mi-interp.c: Use C++ exception handling.
10830 * mi/mi-cmd-stack.c: Use C++ exception handling.
10831 * mi/mi-cmd-break.c: Use C++ exception handling.
10832 * main.c: Use C++ exception handling.
10833 * linux-thread-db.c: Use C++ exception handling.
10834 * linux-tdep.c: Use C++ exception handling.
10835 * linux-nat.c: Use C++ exception handling.
10836 * linux-fork.c: Use C++ exception handling.
10837 * linespec.c: Use C++ exception handling.
10838 * language.c: Use C++ exception handling.
10839 * jit.c: Use C++ exception handling.
10840 * infrun.c: Use C++ exception handling.
10841 * infcmd.c: Use C++ exception handling.
10842 * infcall.c: Use C++ exception handling.
10843 * inf-loop.c: Use C++ exception handling.
10844 * i386-tdep.c: Use C++ exception handling.
10845 * i386-linux-tdep.c: Use C++ exception handling.
10846 * guile/scm-value.c: Use C++ exception handling.
10847 * guile/scm-type.c: Use C++ exception handling.
10848 * guile/scm-symtab.c: Use C++ exception handling.
10849 * guile/scm-symbol.c: Use C++ exception handling.
10850 * guile/scm-pretty-print.c: Use C++ exception handling.
10851 * guile/scm-ports.c: Use C++ exception handling.
10852 * guile/scm-param.c: Use C++ exception handling.
10853 * guile/scm-math.c: Use C++ exception handling.
10854 * guile/scm-lazy-string.c: Use C++ exception handling.
10855 * guile/scm-frame.c: Use C++ exception handling.
10856 * guile/scm-disasm.c: Use C++ exception handling.
10857 * guile/scm-cmd.c: Use C++ exception handling.
10858 * guile/scm-breakpoint.c: Use C++ exception handling.
10859 * guile/scm-block.c: Use C++ exception handling.
10860 * guile/guile-internal.h: Use C++ exception handling.
10861 * gnu-v3-abi.c: Use C++ exception handling.
10862 * gdbtypes.c: Use C++ exception handling.
10863 * frame.c: Use C++ exception handling.
10864 * frame-unwind.c: Use C++ exception handling.
10865 * fbsd-tdep.c: Use C++ exception handling.
10866 * f-valprint.c: Use C++ exception handling.
10867 * exec.c: Use C++ exception handling.
10868 * event-top.c: Use C++ exception handling.
10869 * event-loop.c: Use C++ exception handling.
10870 * eval.c: Use C++ exception handling.
10871 * dwarf2read.c: Use C++ exception handling.
10872 * dwarf2loc.c: Use C++ exception handling.
10873 * dwarf2-frame.c: Use C++ exception handling.
10874 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10875 * dwarf-index-write.c: Use C++ exception handling.
10876 * dwarf-index-cache.c: Use C++ exception handling.
10877 * dtrace-probe.c: Use C++ exception handling.
10878 * disasm-selftests.c: Use C++ exception handling.
10879 * darwin-nat.c: Use C++ exception handling.
10880 * cp-valprint.c: Use C++ exception handling.
10881 * cp-support.c: Use C++ exception handling.
10882 * cp-abi.c: Use C++ exception handling.
10883 * corelow.c: Use C++ exception handling.
10884 * completer.c: Use C++ exception handling.
10885 * compile/compile-object-run.c: Use C++ exception handling.
10886 * compile/compile-object-load.c: Use C++ exception handling.
10887 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10888 * compile/compile-c-symbols.c: Use C++ exception handling.
10889 * common/selftest.c: Use C++ exception handling.
10890 * common/new-op.c: Use C++ exception handling.
10891 * cli/cli-script.c: Use C++ exception handling.
10892 * cli/cli-interp.c: Use C++ exception handling.
10893 * cli/cli-cmds.c: Use C++ exception handling.
10894 * c-varobj.c: Use C++ exception handling.
10895 * btrace.c: Use C++ exception handling.
10896 * breakpoint.c: Use C++ exception handling.
10897 * break-catch-throw.c: Use C++ exception handling.
10898 * arch-utils.c: Use C++ exception handling.
10899 * amd64-tdep.c: Use C++ exception handling.
10900 * ada-valprint.c: Use C++ exception handling.
10901 * ada-typeprint.c: Use C++ exception handling.
10902 * ada-lang.c: Use C++ exception handling.
10903 * aarch64-tdep.c: Use C++ exception handling.
10905 2019-04-08 Tom Tromey <tom@tromey.com>
10907 * xml-support.c (gdb_xml_parser::parse): Update.
10908 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10909 * value.c (show_convenience): Update.
10910 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10911 (test_parse_flags_qcs): Update.
10912 * thread.c (thr_try_catch_cmd): Update.
10913 * target.c (target_translate_tls_address): Update.
10914 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10915 (info_frame_command_core, frame_apply_command_count): Update.
10916 * rust-exp.y (rust_lex_exception_test): Update.
10917 * riscv-tdep.c (riscv_print_one_register_info): Update.
10918 * remote.c (remote_target::enable_btrace): Update.
10919 * record-btrace.c (record_btrace_enable_warn): Update.
10920 * python/py-utils.c (gdbpy_convert_exception): Update.
10921 * printcmd.c (do_one_display, print_variable_and_value): Update.
10922 * mi/mi-main.c (mi_print_exception): Update.
10923 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10924 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10925 * linux-nat.c (linux_nat_target::attach): Update.
10926 * linux-fork.c (class scoped_switch_fork_info): Update.
10927 * infrun.c (displaced_step_prepare): Update.
10928 * infcall.c (call_function_by_hand_dummy): Update.
10929 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10930 * gnu-v3-abi.c (print_one_vtable): Update.
10931 * frame.c (get_prev_frame_always): Update.
10932 * f-valprint.c (info_common_command_for_block): Update.
10933 * exec.c (try_open_exec_file): Update.
10934 * exceptions.c (print_exception, exception_print)
10935 (exception_fprintf, exception_print_same): Update.
10936 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10937 * dwarf-index-cache.c (index_cache::store)
10938 (index_cache::lookup_gdb_index): Update.
10939 * darwin-nat.c (maybe_cache_shell): Update.
10940 * cp-valprint.c (cp_print_value_fields): Update.
10941 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10942 (gcc_cplus_symbol_address): Update.
10943 * compile/compile-c-symbols.c (gcc_convert_symbol)
10944 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10945 * common/selftest.c: Update.
10946 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10948 (exception_try_scope_entry, exception_try_scope_exit): Don't
10950 (struct exception_try_scope): Remove.
10951 (TRY): Don't use exception_try_scope.
10952 (struct gdb_exception): Add constructor, operator=.
10953 <what>: New method.
10954 (struct gdb_exception_RETURN_MASK_ALL)
10955 (struct gdb_exception_RETURN_MASK_ERROR)
10956 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10957 (struct gdb_quit_bad_alloc): Update.
10958 * common/common-exceptions.c (exception_none): Change
10960 (struct catcher) <state, exception>: Initialize inline.
10961 <prev>: Remove member.
10962 (current_catcher): Remove.
10963 (catchers): New global.
10964 (exceptions_state_mc_init): Simplify.
10965 (catcher_pop): Remove.
10966 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10967 (try_scope_depth, exception_try_scope_entry)
10968 (exception_try_scope_exit): Remove.
10969 (throw_exception_sjlj): Update.
10970 (exception_messages, exception_messages_size): Remove.
10971 (throw_it): Simplify.
10972 (gdb_exception_sliced_copy): Remove.
10973 (throw_exception_cxx): Update.
10974 * cli/cli-script.c (script_from_file): Update.
10975 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10977 * ada-valprint.c (ada_val_print): Update.
10978 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10979 (create_excep_cond_exprs): Update.
10981 2019-04-08 Tom Tromey <tom@tromey.com>
10983 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10984 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10985 (TRY, CATCH, END_CATCH): Remove some definitions.
10986 * common/common-exceptions.c: Don't use GDB_XCPT.
10987 (catcher_list_size): Remove.
10988 (throw_exception, throw_it): Simplify.
10990 2019-04-05 Tom Tromey <tom@tromey.com>
10992 Revert the header-sorting patch.
10993 * ft32-tdep.c: Revert.
10994 * frv-tdep.c: Revert.
10995 * frv-linux-tdep.c: Revert.
10997 * frame-unwind.c: Revert.
10998 * frame-base.c: Revert.
10999 * fork-child.c: Revert.
11000 * findvar.c: Revert.
11001 * findcmd.c: Revert.
11002 * filesystem.c: Revert.
11003 * filename-seen-cache.h: Revert.
11004 * filename-seen-cache.c: Revert.
11005 * fbsd-tdep.c: Revert.
11006 * fbsd-nat.h: Revert.
11007 * fbsd-nat.c: Revert.
11008 * f-valprint.c: Revert.
11009 * f-typeprint.c: Revert.
11010 * f-lang.c: Revert.
11011 * extension.h: Revert.
11012 * extension.c: Revert.
11013 * extension-priv.h: Revert.
11014 * expprint.c: Revert.
11017 * exceptions.c: Revert.
11018 * event-top.c: Revert.
11019 * event-loop.c: Revert.
11021 * elfread.c: Revert.
11022 * dwarf2read.h: Revert.
11023 * dwarf2read.c: Revert.
11024 * dwarf2loc.c: Revert.
11025 * dwarf2expr.h: Revert.
11026 * dwarf2expr.c: Revert.
11027 * dwarf2-frame.c: Revert.
11028 * dwarf2-frame-tailcall.c: Revert.
11029 * dwarf-index-write.h: Revert.
11030 * dwarf-index-write.c: Revert.
11031 * dwarf-index-common.c: Revert.
11032 * dwarf-index-cache.h: Revert.
11033 * dwarf-index-cache.c: Revert.
11034 * dummy-frame.c: Revert.
11035 * dtrace-probe.c: Revert.
11036 * disasm.h: Revert.
11037 * disasm.c: Revert.
11038 * disasm-selftests.c: Revert.
11039 * dictionary.c: Revert.
11040 * dicos-tdep.c: Revert.
11041 * demangle.c: Revert.
11042 * dcache.h: Revert.
11043 * dcache.c: Revert.
11044 * darwin-nat.h: Revert.
11045 * darwin-nat.c: Revert.
11046 * darwin-nat-info.c: Revert.
11047 * d-valprint.c: Revert.
11048 * d-namespace.c: Revert.
11049 * d-lang.c: Revert.
11051 * csky-tdep.c: Revert.
11052 * csky-linux-tdep.c: Revert.
11053 * cris-tdep.c: Revert.
11054 * cris-linux-tdep.c: Revert.
11055 * cp-valprint.c: Revert.
11056 * cp-support.c: Revert.
11057 * cp-namespace.c: Revert.
11058 * cp-abi.c: Revert.
11059 * corelow.c: Revert.
11060 * corefile.c: Revert.
11061 * continuations.c: Revert.
11062 * completer.h: Revert.
11063 * completer.c: Revert.
11064 * complaints.c: Revert.
11065 * coffread.c: Revert.
11066 * coff-pe-read.c: Revert.
11067 * cli-out.h: Revert.
11068 * cli-out.c: Revert.
11069 * charset.c: Revert.
11070 * c-varobj.c: Revert.
11071 * c-valprint.c: Revert.
11072 * c-typeprint.c: Revert.
11073 * c-lang.c: Revert.
11074 * buildsym.c: Revert.
11075 * buildsym-legacy.c: Revert.
11076 * build-id.h: Revert.
11077 * build-id.c: Revert.
11078 * btrace.c: Revert.
11079 * bsd-uthread.c: Revert.
11080 * breakpoint.h: Revert.
11081 * breakpoint.c: Revert.
11082 * break-catch-throw.c: Revert.
11083 * break-catch-syscall.c: Revert.
11084 * break-catch-sig.c: Revert.
11085 * blockframe.c: Revert.
11087 * bfin-tdep.c: Revert.
11088 * bfin-linux-tdep.c: Revert.
11089 * bfd-target.c: Revert.
11090 * bcache.c: Revert.
11091 * ax-general.c: Revert.
11092 * ax-gdb.h: Revert.
11093 * ax-gdb.c: Revert.
11094 * avr-tdep.c: Revert.
11096 * auto-load.c: Revert.
11097 * arm-wince-tdep.c: Revert.
11098 * arm-tdep.c: Revert.
11099 * arm-symbian-tdep.c: Revert.
11100 * arm-pikeos-tdep.c: Revert.
11101 * arm-obsd-tdep.c: Revert.
11102 * arm-nbsd-tdep.c: Revert.
11103 * arm-nbsd-nat.c: Revert.
11104 * arm-linux-tdep.c: Revert.
11105 * arm-linux-nat.c: Revert.
11106 * arm-fbsd-tdep.c: Revert.
11107 * arm-fbsd-nat.c: Revert.
11108 * arm-bsd-tdep.c: Revert.
11109 * arch-utils.c: Revert.
11110 * arc-tdep.c: Revert.
11111 * arc-newlib-tdep.c: Revert.
11112 * annotate.h: Revert.
11113 * annotate.c: Revert.
11114 * amd64-windows-tdep.c: Revert.
11115 * amd64-windows-nat.c: Revert.
11116 * amd64-tdep.c: Revert.
11117 * amd64-sol2-tdep.c: Revert.
11118 * amd64-obsd-tdep.c: Revert.
11119 * amd64-obsd-nat.c: Revert.
11120 * amd64-nbsd-tdep.c: Revert.
11121 * amd64-nbsd-nat.c: Revert.
11122 * amd64-nat.c: Revert.
11123 * amd64-linux-tdep.c: Revert.
11124 * amd64-linux-nat.c: Revert.
11125 * amd64-fbsd-tdep.c: Revert.
11126 * amd64-fbsd-nat.c: Revert.
11127 * amd64-dicos-tdep.c: Revert.
11128 * amd64-darwin-tdep.c: Revert.
11129 * amd64-bsd-nat.c: Revert.
11130 * alpha-tdep.c: Revert.
11131 * alpha-obsd-tdep.c: Revert.
11132 * alpha-nbsd-tdep.c: Revert.
11133 * alpha-mdebug-tdep.c: Revert.
11134 * alpha-linux-tdep.c: Revert.
11135 * alpha-linux-nat.c: Revert.
11136 * alpha-bsd-tdep.c: Revert.
11137 * alpha-bsd-nat.c: Revert.
11138 * aix-thread.c: Revert.
11140 * addrmap.c: Revert.
11141 * ada-varobj.c: Revert.
11142 * ada-valprint.c: Revert.
11143 * ada-typeprint.c: Revert.
11144 * ada-tasks.c: Revert.
11145 * ada-lang.c: Revert.
11146 * aarch64-tdep.c: Revert.
11147 * aarch64-ravenscar-thread.c: Revert.
11148 * aarch64-newlib-tdep.c: Revert.
11149 * aarch64-linux-tdep.c: Revert.
11150 * aarch64-linux-nat.c: Revert.
11151 * aarch64-fbsd-tdep.c: Revert.
11152 * aarch64-fbsd-nat.c: Revert.
11153 * aarch32-linux-nat.c: Revert.
11155 2019-04-05 Tom Tromey <tom@tromey.com>
11157 * ft32-tdep.c: Sort headers.
11158 * frv-tdep.c: Sort headers.
11159 * frv-linux-tdep.c: Sort headers.
11160 * frame.c: Sort headers.
11161 * frame-unwind.c: Sort headers.
11162 * frame-base.c: Sort headers.
11163 * fork-child.c: Sort headers.
11164 * findvar.c: Sort headers.
11165 * findcmd.c: Sort headers.
11166 * filesystem.c: Sort headers.
11167 * filename-seen-cache.h: Sort headers.
11168 * filename-seen-cache.c: Sort headers.
11169 * fbsd-tdep.c: Sort headers.
11170 * fbsd-nat.h: Sort headers.
11171 * fbsd-nat.c: Sort headers.
11172 * f-valprint.c: Sort headers.
11173 * f-typeprint.c: Sort headers.
11174 * f-lang.c: Sort headers.
11175 * extension.h: Sort headers.
11176 * extension.c: Sort headers.
11177 * extension-priv.h: Sort headers.
11178 * expprint.c: Sort headers.
11179 * exec.h: Sort headers.
11180 * exec.c: Sort headers.
11181 * exceptions.c: Sort headers.
11182 * event-top.c: Sort headers.
11183 * event-loop.c: Sort headers.
11184 * eval.c: Sort headers.
11185 * elfread.c: Sort headers.
11186 * dwarf2read.h: Sort headers.
11187 * dwarf2read.c: Sort headers.
11188 * dwarf2loc.c: Sort headers.
11189 * dwarf2expr.h: Sort headers.
11190 * dwarf2expr.c: Sort headers.
11191 * dwarf2-frame.c: Sort headers.
11192 * dwarf2-frame-tailcall.c: Sort headers.
11193 * dwarf-index-write.h: Sort headers.
11194 * dwarf-index-write.c: Sort headers.
11195 * dwarf-index-common.c: Sort headers.
11196 * dwarf-index-cache.h: Sort headers.
11197 * dwarf-index-cache.c: Sort headers.
11198 * dummy-frame.c: Sort headers.
11199 * dtrace-probe.c: Sort headers.
11200 * disasm.h: Sort headers.
11201 * disasm.c: Sort headers.
11202 * disasm-selftests.c: Sort headers.
11203 * dictionary.c: Sort headers.
11204 * dicos-tdep.c: Sort headers.
11205 * demangle.c: Sort headers.
11206 * dcache.h: Sort headers.
11207 * dcache.c: Sort headers.
11208 * darwin-nat.h: Sort headers.
11209 * darwin-nat.c: Sort headers.
11210 * darwin-nat-info.c: Sort headers.
11211 * d-valprint.c: Sort headers.
11212 * d-namespace.c: Sort headers.
11213 * d-lang.c: Sort headers.
11214 * ctf.c: Sort headers.
11215 * csky-tdep.c: Sort headers.
11216 * csky-linux-tdep.c: Sort headers.
11217 * cris-tdep.c: Sort headers.
11218 * cris-linux-tdep.c: Sort headers.
11219 * cp-valprint.c: Sort headers.
11220 * cp-support.c: Sort headers.
11221 * cp-namespace.c: Sort headers.
11222 * cp-abi.c: Sort headers.
11223 * corelow.c: Sort headers.
11224 * corefile.c: Sort headers.
11225 * continuations.c: Sort headers.
11226 * completer.h: Sort headers.
11227 * completer.c: Sort headers.
11228 * complaints.c: Sort headers.
11229 * coffread.c: Sort headers.
11230 * coff-pe-read.c: Sort headers.
11231 * cli-out.h: Sort headers.
11232 * cli-out.c: Sort headers.
11233 * charset.c: Sort headers.
11234 * c-varobj.c: Sort headers.
11235 * c-valprint.c: Sort headers.
11236 * c-typeprint.c: Sort headers.
11237 * c-lang.c: Sort headers.
11238 * buildsym.c: Sort headers.
11239 * buildsym-legacy.c: Sort headers.
11240 * build-id.h: Sort headers.
11241 * build-id.c: Sort headers.
11242 * btrace.c: Sort headers.
11243 * bsd-uthread.c: Sort headers.
11244 * breakpoint.h: Sort headers.
11245 * breakpoint.c: Sort headers.
11246 * break-catch-throw.c: Sort headers.
11247 * break-catch-syscall.c: Sort headers.
11248 * break-catch-sig.c: Sort headers.
11249 * blockframe.c: Sort headers.
11250 * block.c: Sort headers.
11251 * bfin-tdep.c: Sort headers.
11252 * bfin-linux-tdep.c: Sort headers.
11253 * bfd-target.c: Sort headers.
11254 * bcache.c: Sort headers.
11255 * ax-general.c: Sort headers.
11256 * ax-gdb.h: Sort headers.
11257 * ax-gdb.c: Sort headers.
11258 * avr-tdep.c: Sort headers.
11259 * auxv.c: Sort headers.
11260 * auto-load.c: Sort headers.
11261 * arm-wince-tdep.c: Sort headers.
11262 * arm-tdep.c: Sort headers.
11263 * arm-symbian-tdep.c: Sort headers.
11264 * arm-pikeos-tdep.c: Sort headers.
11265 * arm-obsd-tdep.c: Sort headers.
11266 * arm-nbsd-tdep.c: Sort headers.
11267 * arm-nbsd-nat.c: Sort headers.
11268 * arm-linux-tdep.c: Sort headers.
11269 * arm-linux-nat.c: Sort headers.
11270 * arm-fbsd-tdep.c: Sort headers.
11271 * arm-fbsd-nat.c: Sort headers.
11272 * arm-bsd-tdep.c: Sort headers.
11273 * arch-utils.c: Sort headers.
11274 * arc-tdep.c: Sort headers.
11275 * arc-newlib-tdep.c: Sort headers.
11276 * annotate.h: Sort headers.
11277 * annotate.c: Sort headers.
11278 * amd64-windows-tdep.c: Sort headers.
11279 * amd64-windows-nat.c: Sort headers.
11280 * amd64-tdep.c: Sort headers.
11281 * amd64-sol2-tdep.c: Sort headers.
11282 * amd64-obsd-tdep.c: Sort headers.
11283 * amd64-obsd-nat.c: Sort headers.
11284 * amd64-nbsd-tdep.c: Sort headers.
11285 * amd64-nbsd-nat.c: Sort headers.
11286 * amd64-nat.c: Sort headers.
11287 * amd64-linux-tdep.c: Sort headers.
11288 * amd64-linux-nat.c: Sort headers.
11289 * amd64-fbsd-tdep.c: Sort headers.
11290 * amd64-fbsd-nat.c: Sort headers.
11291 * amd64-dicos-tdep.c: Sort headers.
11292 * amd64-darwin-tdep.c: Sort headers.
11293 * amd64-bsd-nat.c: Sort headers.
11294 * alpha-tdep.c: Sort headers.
11295 * alpha-obsd-tdep.c: Sort headers.
11296 * alpha-nbsd-tdep.c: Sort headers.
11297 * alpha-mdebug-tdep.c: Sort headers.
11298 * alpha-linux-tdep.c: Sort headers.
11299 * alpha-linux-nat.c: Sort headers.
11300 * alpha-bsd-tdep.c: Sort headers.
11301 * alpha-bsd-nat.c: Sort headers.
11302 * aix-thread.c: Sort headers.
11303 * agent.c: Sort headers.
11304 * addrmap.c: Sort headers.
11305 * ada-varobj.c: Sort headers.
11306 * ada-valprint.c: Sort headers.
11307 * ada-typeprint.c: Sort headers.
11308 * ada-tasks.c: Sort headers.
11309 * ada-lang.c: Sort headers.
11310 * aarch64-tdep.c: Sort headers.
11311 * aarch64-ravenscar-thread.c: Sort headers.
11312 * aarch64-newlib-tdep.c: Sort headers.
11313 * aarch64-linux-tdep.c: Sort headers.
11314 * aarch64-linux-nat.c: Sort headers.
11315 * aarch64-fbsd-tdep.c: Sort headers.
11316 * aarch64-fbsd-nat.c: Sort headers.
11317 * aarch32-linux-nat.c: Sort headers.
11319 2019-04-04 Tom Tromey <tom@tromey.com>
11321 * varobj.c (varobj_create): Update.
11322 * rust-exp.y (struct rust_parser) <update_innermost_block,
11323 lookup_symbol>: New methods.
11324 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11326 (rust_parser::rust_lookup_type)
11327 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11328 * printcmd.c (display_command, do_one_display): Update.
11329 * parser-defs.h (struct parser_state) <parser_state>: Add
11330 "tracker" parameter.
11331 (block_tracker): New member.
11332 (class innermost_block_tracker) <innermost_block_tracker>: Add
11334 <reset>: Remove method.
11335 (innermost_block): Don't declare.
11336 (null_post_parser): Update.
11337 * parse.c (innermost_block): Remove global.
11338 (write_dollar_variable): Update.
11339 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11340 Remove "tracker_types" parameter.
11341 (parse_expression): Add "tracker" parameter.
11342 (parse_expression_for_completion): Update.
11343 (null_post_parser): Add "tracker" parameter.
11344 * p-exp.y: Update rules.
11345 * m2-exp.y: Update rules.
11346 * language.h (struct language_defn) <la_post_parser>: Add
11347 "tracker" parameter.
11348 * go-exp.y: Update rules.
11349 * f-exp.y: Update rules.
11350 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11352 * d-exp.y: Update rules.
11353 * c-exp.y: Update rules.
11354 * breakpoint.c (set_breakpoint_condition): Create an
11355 innermost_block_tracker.
11356 (watch_command_1): Likewise.
11357 * ada-lang.c (resolve): Add "tracker" parameter.
11358 (resolve_subexp): Likewise.
11359 * ada-exp.y (write_var_from_sym): Update.
11361 2019-04-04 Tom Tromey <tom@tromey.com>
11363 * type-stack.h: New file.
11364 * type-stack.c: New file.
11365 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11367 (insert_into_type_stack, insert_type, push_type, push_type_int)
11368 (insert_type_address_space, pop_type, pop_type_int)
11369 (pop_typelist, pop_type_stack, append_type_stack)
11370 (push_type_stack, get_type_stack, push_typelist)
11371 (follow_type_instance_flags, follow_types): Don't declare.
11372 * parse.c (type_stack): Remove global.
11373 (parse_exp_in_context): Update.
11374 (insert_into_type_stack, insert_type, push_type, push_type_int)
11375 (insert_type_address_space, pop_type, pop_type_int)
11376 (pop_typelist, pop_type_stack, append_type_stack)
11377 (push_type_stack, get_type_stack, push_typelist)
11378 (follow_type_instance_flags, follow_types): Remove (moved to
11380 * f-exp.y (type_stack): New global.
11382 (push_kind_type, f_parse): Update.
11383 * d-exp.y (type_stack): New global.
11386 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11388 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11389 (HFILES_NO_SRCDIR): Add type-stack.h.
11391 2019-04-04 Tom Tromey <tom@tromey.com>
11393 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11394 (rust_parser::convert_ast_to_expression, rust_parse)
11395 (rust_lex_test_completion, rust_lex_tests): Update.
11396 * parser-defs.h (struct expr_completion_state): New.
11397 (struct parser_state) <parser_state>: Add completion parameter.
11398 <mark_struct_expression, mark_completion_tag>: New methods.
11399 <parse_completion, m_completion_state>: New members.
11400 (prefixify_expression, null_post_parser): Update.
11401 (mark_struct_expression, mark_completion_tag): Don't declare.
11402 * parse.c (parse_completion, expout_last_struct)
11403 (expout_tag_completion_type, expout_completion_name): Remove
11405 (parser_state::mark_struct_expression)
11406 (parser_state::mark_completion_tag): Now methods.
11407 (prefixify_expression): Add last_struct parameter.
11408 (prefixify_subexp): Likewise.
11409 (parse_exp_1): Update.
11410 (parse_exp_in_context): Add cstate parameter. Update.
11411 (parse_expression_for_completion): Create an
11412 expr_completion_state.
11413 (null_post_parser): Add "completion" parameter.
11414 * p-exp.y: Update rules.
11416 * language.h (struct language_defn) <la_post_parser>: Add
11417 "completing" parameter.
11418 * go-exp.y: Update rules.
11419 (lex_one_token): Update.
11420 * expression.h (parse_completion): Don't declare.
11421 * d-exp.y: Update rules.
11422 (lex_one_token): Update rules.
11423 * c-exp.y: Update rules.
11424 (lex_one_token): Update.
11425 * ada-lang.c (resolve): Add "parse_completion" parameter.
11426 (resolve_subexp): Likewise.
11427 (ada_resolve_function): Likewise.
11429 2019-04-04 Tom Tromey <tom@tromey.com>
11431 * parser-defs.h (struct parser_state) <start_arglist,
11432 end_arglist>: New methods.
11433 <arglist_len, m_funcall_chain>: New members.
11434 (arglist_len, start_arglist, end_arglist): Don't declare.
11435 * parse.c (arglist_len, funcall_chain): Remove global.
11436 (start_arglist, end_arglist): Remove functions.
11437 (parse_exp_in_context): Update.
11438 * p-exp.y: Update rules.
11439 * m2-exp.y: Update rules.
11440 * go-exp.y: Update rules.
11441 * f-exp.y: Update rules.
11442 * d-exp.y: Update rules.
11443 * c-exp.y: Update rules.
11445 2019-04-04 Tom Tromey <tom@tromey.com>
11447 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11448 lex_operator, push_back>: New methods.
11450 (rust_parser::lex_hex, lex_escape): Rename and update.
11451 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11452 (rust_parser::lex_operator): Rename and update.
11453 (rust_parser::lex_number, rustyylex, rustyyerror)
11454 (rust_lex_test_init, rust_lex_test_sequence)
11455 (rust_lex_test_push_back, rust_lex_tests): Update.
11456 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11458 <lexptr, prev_lexptr>: New members.
11459 (lexptr, prev_lexptr): Don't declare.
11460 * parse.c (lexptr, prev_lexptr): Remove globals.
11461 (parse_exp_in_context): Update.
11462 * p-exp.y (yylex, yyerror): Update.
11463 * m2-exp.y (parse_number, yylex, yyerror): Update.
11464 * go-exp.y (lex_one_token, yyerror): Update.
11465 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11466 * d-exp.y (lex_one_token, yyerror): Update.
11467 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11468 (lex_one_token, yyerror): Update.
11469 * ada-lex.l (YY_INPUT): Update.
11470 (rewind_to_char): Update.
11471 * ada-exp.y (yyerror): Update.
11473 2019-04-04 Tom Tromey <tom@tromey.com>
11475 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11476 * parser-defs.h (struct parser_state) <parser_state>: Add new
11478 <comma_terminates>: New member.
11479 (comma_terminates): Don't declare global.
11480 * parse.c (comma_terminates): Remove global.
11481 (parse_exp_in_context): Update.
11482 * p-exp.y (yylex): Update.
11483 * m2-exp.y (yylex): Update.
11484 * go-exp.y (lex_one_token): Update.
11485 * f-exp.y (yylex): Update.
11486 * d-exp.y (lex_one_token): Update.
11487 * c-exp.y (lex_one_token): Update.
11488 * ada-lex.l: Update.
11490 2019-04-04 Tom Tromey <tom@tromey.com>
11492 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11493 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11494 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11495 * parser-defs.h (paren_depth): Don't declare.
11496 * parse.c (paren_depth): Remove global.
11497 (parse_exp_in_context): Update.
11498 * p-exp.y (paren_depth): New global.
11499 (pascal_parse): Initialize it.
11500 * m2-exp.y (paren_depth): New global.
11501 (m2_parse): Initialize it.
11502 * go-exp.y (paren_depth): New global.
11503 (go_parse): Initialize it.
11504 * f-exp.y (paren_depth): New global.
11505 (f_parse): Initialize it.
11506 * d-exp.y (paren_depth): New global.
11507 (d_parse): Initialize it.
11508 * c-exp.y (paren_depth): New global.
11509 (c_parse): Initialize it.
11510 * ada-lex.l (paren_depth): New global.
11511 (lexer_init): Initialize it.
11513 2019-04-04 Tom Tromey <tom@tromey.com>
11515 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11516 (rust_parser::convert_ast_to_type)
11517 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11518 * parser-defs.h (struct parser_state) <parser_state>: Add
11519 parameters. Initialize new members.
11520 <expression_context_block, expression_context_pc>: New members.
11521 * parse.c (expression_context_block, expression_context_pc):
11523 (parse_exp_in_context): Update.
11524 * p-exp.y: Update all rules.
11526 * m2-exp.y: Update all rules.
11528 * go-exp.y (yylex): Update.
11529 * f-exp.y (yylex): Update.
11530 * d-exp.y: Update all rules.
11532 * c-exp.y: Update all rules.
11533 (lex_one_token, classify_name, yylex, c_parse): Update.
11534 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11536 2019-04-04 Tom Tromey <tom@tromey.com>
11538 * gdbarch.h, gdbarch.c: Rebuild.
11539 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11541 (struct stap_parse_info): Replace "parser_state" with
11543 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11544 (parser_state): New class.
11545 * parse.c (expr_builder): Rename.
11546 (expr_builder::release): Rename.
11547 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11548 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11549 (write_exp_elt_longcst, write_exp_elt_floatcst)
11550 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11551 (write_exp_string_vector, write_exp_bitstring)
11552 (write_exp_msymbol, mark_struct_expression)
11553 (write_dollar_variable)
11554 (insert_type_address_space, increase_expout_size): Replace
11555 "parser_state" with "expr_builder".
11556 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11557 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11558 "parser_state" with "expr_builder".
11560 2019-04-04 Tom Tromey <tom@tromey.com>
11562 * rust-exp.y: Replace "parse_language" with method call.
11564 (yylex): Replace "parse_language" with method call.
11566 (yylex): Replace "parse_language" with method call.
11567 * go-exp.y (classify_name): Replace "parse_language" with method
11569 * f-exp.y (yylex): Replace "parse_language" with method call.
11570 * d-exp.y (lex_one_token): Replace "parse_language" with method
11573 (lex_one_token, classify_name, yylex): Replace "parse_language"
11575 * ada-exp.y (find_primitive_type, type_char)
11576 (type_system_address): Replace "parse_language" with method call.
11578 2019-04-04 Tom Tromey <tom@tromey.com>
11580 * rust-exp.y: Replace "parse_gdbarch" with method call.
11581 * parse.c (write_dollar_variable, insert_type_address_space):
11582 Replace "parse_gdbarch" with method call.
11583 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11585 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11587 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11588 "parse_gdbarch" with method call.
11589 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11591 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11592 "parse_gdbarch" with method call.
11593 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11594 "parse_gdbarch" with method call.
11595 * c-exp.y (parse_type, parse_number, classify_name): Replace
11596 "parse_gdbarch" with method call.
11597 * ada-lex.l: Replace "parse_gdbarch" with method call.
11598 * ada-exp.y (parse_type, find_primitive_type, type_char)
11599 (type_system_address): Replace "parse_gdbarch" with method call.
11601 2019-04-04 Tom Tromey <tom@tromey.com>
11603 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11604 * stap-probe.c (stap_parse_argument): Update.
11605 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11606 initial_size parameter.
11607 * rust-exp.y (rust_lex_tests): Update.
11608 * parse.c (parser_state): Update.
11609 (parse_exp_in_context): Update.
11610 * parser-defs.h (struct parser_state) <parser_state>: Remove
11611 "initial_size" parameter.
11613 2019-04-04 Tom Tromey <tom@tromey.com>
11615 * parser-defs.h (increase_expout_size): Don't declare.
11616 * parse.c (increase_expout_size): Now static.
11618 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11620 * gnu-nat.c (gnu_nat_target::wait): Fix
11621 target_waitstatus_to_string call.
11623 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11625 * eval.c (evaluate_subexp_standard): Handle internal functions
11626 during Fortran function call handling.
11628 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11630 * NEWS: Mention new internal functions.
11631 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11632 (read_base_type): Use dwarf2_init_complex_target_type.
11633 * value.c (creal_internal_fn): New function.
11634 (cimag_internal_fn): New function.
11635 (_initialize_values): Register new internal functions.
11637 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11639 * infrun.c (stop_all_threads): If debug_infrun, always
11640 trace the wait status after wait_one, using
11641 target_waitstatus_to_string and target_pid_to_str.
11642 (handle_inferior_event): Replace various trace of
11643 wait status kind by a single trace.
11644 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11645 wait status kind image by target_waitstatus_to_string.
11646 * target/waitstatus.c (target_waitstatus_to_string): Fix
11649 2019-04-01 Tom Tromey <tromey@adacore.com>
11652 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11654 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11655 Pedro Alves <palves@redhat.com>
11657 * top.c (quit_force): Call 'finalize_values'.
11658 * value.c (finalize_values): New function.
11659 * value.h (finalize_values): Declare.
11661 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11663 * NEWS: Announce $_gdb_major and $_gdb_minor.
11665 * top.c (init_gdb_version_vars): New function.
11666 (gdb_init): Call init_gdb_version_vars.
11668 2019-03-29 Tom Tromey <tromey@adacore.com>
11670 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11671 help text. Remove dead code.
11673 2019-03-29 Keith Seitz <keiths@redhat.com>
11675 From Siddhesh Poyarekar:
11676 * f-lang.h (f77_get_upperbound): Return LONGEST.
11677 (f77_get_lowerbound): Likewise.
11678 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11679 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11681 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11682 plongest to format print it.
11683 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11684 (f77_get_upperbound): Likewise.
11685 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11686 LOWER_BOUND to LONGEST.
11687 (f77_create_arrayprint_offset_tbl): Likewise.
11689 2019-03-29 Keith Seitz <keiths@redhat.com>
11691 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11692 %s/pulongest for TYPE_LENGTH instead of %d in format
11694 * ada-typerint.c (ada_print_type): Likewise.
11695 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11696 * compile/compile-c-support.c (generate_register_struct): Likewise.
11697 * gdbtypes.c (recursive_dump_type): Likewise.
11698 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11699 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11700 instead of %d in format strings.
11701 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11702 to std::min to ULONGEST.
11703 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11704 instead of %d in format strings.
11705 * tracepoint.c (info_scope_command): Likewise.
11706 * typeprint.c (print_offset_data::update)
11707 (print_offset_data::finish): Likewise.
11708 * xtensa-tdep.c (xtensa_store_return_value)
11709 (xtensa_push_dummy_call): Likewise.
11711 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11713 * windows-nat.c (display_selector): Fixed format specifications
11716 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11718 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11720 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11722 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11723 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11724 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11725 (nios2_linux_init_abi): Install it.
11727 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11729 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11731 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11733 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11735 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11736 Tom Tromey <tromey@adacore.com>
11738 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11740 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11742 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11743 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11744 method to compute the bounds of range types. Also print "[evaluated]"
11745 if the bounds' values come from a dynamic evaluation.
11747 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11749 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11750 whitespace when pretty printing is on.
11752 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11754 * ppc-linux-nat.c: Add include.
11756 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11758 * NEWS: Mention AArch64 Pointer Authentication.
11760 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11762 * arm-linux-nat.c: Add include.
11764 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11766 * source-cache.c (source_cache::get_source_lines): Re-read
11767 fullname after calling open_source_file.
11769 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11771 * NEWS: Mention TLS support for FreeBSD.
11773 2019-03-25 Tom Tromey <tromey@adacore.com>
11775 * minsyms.c (BUNCH_SIZE): Update comment.
11776 (~minimal_symbol_reader): Remove old comment.
11777 (compact_minimal_symbols): Update comment.
11778 (minimal_symbol_reader::install): Remove old comment. Update
11781 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11783 * s390-linux-nat.c: Add include.
11785 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11787 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11788 Call linux_get_hwcap.
11789 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11791 (aarch64_linux_get_hwcap): Remove function.
11792 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11794 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11796 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11797 * linux-tdep.c (linux_get_hwcap): Add function.
11798 (linux_get_hwcap2): Likewise.
11799 * linux-tdep.h (linux_get_hwcap): Add declaration.
11800 (linux_get_hwcap2): Likewise.
11801 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11802 (ppc_linux_get_hwcap2): Likewise.
11803 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11805 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11806 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11807 (ppc_linux_nat_target::read_description): Likewise.
11808 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11809 * s390-linux-nat.c: Likewise.
11810 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11812 2019-03-24 Tom Tromey <tom@tromey.com>
11814 * ada-lang.c (standard_lookup): Simplify initialization.
11815 (ada_lookup_symbol_nonlocal): Simplify return.
11816 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11817 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11818 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11819 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11821 * solib.c (solib_global_lookup): Simplify.
11822 * symtab.c (null_block_symbol): Remove.
11823 (symbol_cache_lookup): Simplify returns.
11824 (lookup_language_this): Simplify returns.
11825 (lookup_symbol_aux): Simplify return.
11826 (lookup_local_symbol): Simplify returns.
11827 (lookup_global_symbol_from_objfile): Simplify return.
11828 (lookup_symbol_in_objfile_symtabs)
11829 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11830 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11831 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11832 * cp-namespace.c (cp_lookup_bare_symbol)
11833 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11834 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11835 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11836 (cp_lookup_symbol_via_imports): Simplify initialization.
11837 (find_symbol_in_baseclass): Likewise.
11838 * symtab.h (null_block_symbol): Remove.
11839 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11840 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11841 (d_lookup_symbol_module): Likewise.
11842 (find_symbol_in_baseclass): Simplify initialization.
11844 2019-03-24 Tom Tromey <tom@tromey.com>
11846 * expression.h: Don't include symtab.h.
11847 (struct block): Forward declare.
11849 2019-03-24 Tom Tromey <tom@tromey.com>
11851 * c-exp.y (typebase): Remove casts.
11852 * gdbtypes.c (lookup_unsigned_typename, )
11853 (lookup_signed_typename): Remove cast.
11854 * eval.c (parse_to_comma_and_eval): Remove cast.
11855 * parse.c (write_dollar_variable): Remove cast.
11856 * block.h (struct block) <superblock>: Now const.
11857 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11858 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11859 (map_block): Make "block" const.
11860 * symfile.h (struct quick_symbol_functions)
11861 <map_matching_symbols>: Constify block argument to "callback".
11862 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11864 (find_pc_sect_compunit_symtab): Make "b" const.
11865 (find_symbol_at_address): Likewise.
11866 (search_symbols): Likewise.
11867 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11868 (dw2_debug_names_lookup_symbol): Likewise.
11869 (dw2_map_matching_symbols): Update.
11870 * p-valprint.c (pascal_val_print): Remove "block".
11871 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11872 (aux_add_nonlocal_symbols): Make "block" const.
11873 (resolve_subexp): Remove cast.
11874 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11876 (iterate_over_file_blocks): Likewise.
11877 * f-exp.y (%union) <bval>: Remove.
11878 * coffread.c (patch_opaque_types): Make "b" const.
11879 * spu-tdep.c (spu_catch_start): Make "block" const.
11880 * c-valprint.c (print_unpacked_pointer): Remove "block".
11881 * symmisc.c (dump_symtab_1): Make "b" const.
11882 (block_depth): Make "block" const.
11883 * d-exp.y (%union) <bval>: Remove.
11884 * cp-support.h (cp_lookup_rtti_type): Update.
11885 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11886 * psymtab.c (psym_lookup_symbol): Make "block" const.
11887 (maintenance_check_psymtabs): Make "b" const.
11888 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11889 (enumerate_locals, enumerate_args): Update.
11890 * python/py-symtab.c (stpy_global_block): Make "block" const.
11891 (stpy_static_block): Likewise.
11892 * inline-frame.c (block_starting_point_at): Make "new_block"
11894 * block.c (find_block_in_blockvector): Make return type const.
11895 (blockvector_for_pc_sect): Make "b" const.
11896 (find_block_in_blockvector): Make "b" const.
11898 2019-03-23 Tom Tromey <tom@tromey.com>
11900 * varobj.c (varobj_create): Update.
11901 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11902 * printcmd.c (display_command, do_one_display): Don't reset
11904 * parser-defs.h (enum innermost_block_tracker_type): Move to
11906 (innermost_block): Update comment.
11907 * parse.c (parse_exp_1): Add tracker_types parameter.
11908 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11909 tracker_types parameter. Reset innermost_block.
11910 (parse_exp_in_context): Remove.
11911 (parse_expression_for_completion): Update.
11912 * objfiles.c (~objfile): Don't reset expression_context_block or
11914 * expression.h (enum innermost_block_tracker_type): Move from
11916 (parse_exp_1): Add tracker_types parameter.
11917 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11918 reset innermost_block.
11920 2019-03-23 Tom Tromey <tom@tromey.com>
11922 * objfiles.h: Include bcache.h.
11924 2019-03-23 Tom Tromey <tom@tromey.com>
11926 * linespec.c (get_current_search_block): Use
11927 scoped_restore_current_language.
11928 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11930 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11931 Jiong Wang <jiong.wang@arm.com>
11933 * aarch64-linux-tdep.c
11934 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11936 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11938 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11939 Jiong Wang <jiong.wang@arm.com>
11941 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11943 (aarch64_analyze_prologue_test): Add PACIASP test.
11944 (aarch64_prologue_prev_register): Unmask PC value.
11946 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11947 Jiong Wang <jiong.wang@arm.com>
11949 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11950 (aarch64_dwarf2_prev_register): Unmask PC value.
11951 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11952 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11953 DW_CFA_AARCH64_negate_ra_state.
11954 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11956 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11957 Jiong Wang <jiong.wang@arm.com>
11959 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11961 (aarch64_pseudo_register_name): Likewise.
11962 (aarch64_pseudo_register_type): Likewise.
11963 (aarch64_pseudo_register_reggroup_p): Likewise.
11964 (aarch64_gdbarch_init): Add pauth registers.
11965 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11966 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11967 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11968 (struct gdbarch_tdep): Add regnum for ra_state.
11970 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11971 Jiong Wang <jiong.wang@arm.com>
11973 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11975 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11976 Jiong Wang <jiong.wang@arm.com>
11978 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11980 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11981 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11982 (aarch64_gdbarch_init): Add puth registers.
11983 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11984 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11985 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11987 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11988 Jiong Wang <jiong.wang@arm.com>
11990 * aarch64-linux-nat.c
11991 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11992 * aarch64-linux-tdep.c
11993 (aarch64_linux_core_read_description): Likewise.
11994 (aarch64_linux_get_hwcap): New function.
11995 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11996 (aarch64_linux_get_hwcap): New declaration.
11998 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11999 Jiong Wang <jiong.wang@arm.com>
12001 * aarch64-linux-nat.c
12002 (aarch64_linux_nat_target::read_description): Add pauth param.
12003 * aarch64-linux-tdep.c
12004 (aarch64_linux_core_read_description): Likewise.
12005 * aarch64-tdep.c (struct target_desc): Add in pauth.
12006 (aarch64_read_description): Add pauth param.
12007 (aarch64_gdbarch_init): Likewise.
12008 * aarch64-tdep.h (aarch64_read_description): Likewise.
12009 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12010 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12011 * features/Makefile: Add new files.
12012 * features/aarch64-pauth.c: New file.
12013 * features/aarch64-pauth.xml: New file.
12015 2019-03-20 Tom Tromey <tromey@adacore.com>
12017 * infrun.c (handle_inferior_event): Rename from
12018 handle_inferior_event_1. Create a scoped_value_mark.
12019 (handle_inferior_event): Remove.
12021 2019-03-19 Tom Tromey <tromey@adacore.com>
12023 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12024 * infrun.h (print_stop_event): Add "displays" parameter.
12025 * infrun.c (print_stop_event): Add "displays" parameter.
12027 2019-03-19 Pedro Alves <palves@redhat.com>
12029 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12030 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12031 to -1. Fix TABs vs spaces.
12032 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12033 * tui/tui-out.h (tui_ui_out) Add intro comments.
12034 <m_line, m_start_of_line>: In-class initialize, and add describing
12037 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12039 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12041 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12043 2019-03-18 Pedro Alves <palves@redhat.com>
12044 Eli Zaretskii <eliz@gnu.org>
12046 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12047 m_line and m_start_of_line.
12049 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12051 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12052 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12053 it returns a newline. This fixes a regression in TU mode, whereby
12054 the next line is output on the same screen line as the user input.
12056 2019-03-18 Tom Tromey <tromey@adacore.com>
12058 * minsyms.c (minimal_symbol_reader::install): Remove call to
12061 2019-03-18 Pedro Alves <palves@redhat.com>
12063 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12065 (apply_style): New, factored out from ...
12066 (apply_ansi_escape): ... this. Handle reverse video mode.
12067 (tui_set_reverse_mode): New function.
12068 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12069 * tui/tui-winsource.c (tui_show_source_line): Use
12070 tui_set_reverse_mode instead of setting A_STANDOUT.
12071 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12072 New setter methods.
12074 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12076 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12079 2019-03-18 Tom Tromey <tromey@adacore.com>
12081 * ada-lang.c (empty_array): Add "high" parameter.
12082 (ada_evaluate_subexp): Update.
12084 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12086 * unittests/string_view-selftests.c: Define
12087 _initialize_string_view_selftests unconditionally.
12089 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12092 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12094 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12097 * windows-nat.c (display_selector): Fix format specifiers.
12099 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12101 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12102 tui_refill_source_window instead of tui_refresh_win, to update the
12103 current execution line. This fixes redisplay of the current line
12104 when stepping through the code with "next" or "step".
12106 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12108 * source-cache.c (source_cache::get_source_lines): Call
12109 find_source_lines to initialize s->nlines. This fixes vertical
12110 scrolling of TUI source window when the DOWN arrow is pressed.
12112 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12114 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12115 linux-thread-db.c (_initialize_thread_db): Likewise.
12117 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12119 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12120 wclrtoeol in tui_show_source_line". This reverts changes made in
12121 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12123 2019-03-15 Tom Tromey <tom@tromey.com>
12125 * symtab.h (struct minimal_symbol): Derive from
12126 general_symbol_info.
12127 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12128 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12129 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12130 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12131 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12132 (MSYMBOL_SEARCH_NAME): Update.
12133 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12134 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12135 * minsyms.c (minimal_symbol_reader::record_full): Update.
12137 2019-03-15 Tom Tromey <tom@tromey.com>
12139 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12141 2019-03-15 Tom Tromey <tom@tromey.com>
12143 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12144 unique_xmalloc_ptr.
12145 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12147 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12148 (build_minimal_symbol_hash_tables)
12149 (minimal_symbol_reader::install): Update.
12151 2019-03-15 Tom Tromey <tom@tromey.com>
12153 * symtab.c (create_demangled_names_hash): Update.
12154 (symbol_set_names): Update.
12155 * objfiles.h (struct objfile_per_bfd_storage)
12156 <demangled_names_hash>: Now an htab_up.
12157 * objfiles.c (objfile_per_bfd_storage): Simplify.
12159 2019-03-15 Tom Tromey <tom@tromey.com>
12161 * objfiles.h (struct objfile_per_bfd_storage): Declare
12163 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12165 (get_objfile_bfd_data): Use new. Don't initialize
12167 (free_objfile_per_bfd_storage): Remove.
12168 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12170 2019-03-15 Tom Tromey <tom@tromey.com>
12172 * symfile.c (reread_symbols): Update.
12173 * objfiles.c (objfile::objfile): Update.
12174 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12175 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12177 (minimal_symbol_reader::install): Update.
12178 (terminate_minimal_symbol_table): Remove.
12179 * jit.c (jit_object_close_impl): Update.
12181 2019-03-15 Tom Tromey <tom@tromey.com>
12183 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12186 2019-03-15 Tom Tromey <tom@tromey.com>
12188 * objfiles.h (struct objfile_per_bfd_storage)
12189 <demangled_hash_languages>: Now a bitset.
12190 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12191 (lookup_minimal_symbol): Update.
12193 2019-03-15 Tom Tromey <tom@tromey.com>
12195 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12196 Don't return the symbol.
12197 * coffread.c (record_minimal_symbol): Use record_full.
12199 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12201 The MS-Windows port of ncurses fails to switch to a color pair if
12202 one or both of the colors are the implicit default colors. This
12203 change records the default colors when TUI is initialized, and
12204 then specifies them explicitly when a color pair uses the default
12205 colors. This allows color styling in TUI mode on MS-Windows.
12207 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12209 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12210 colors in ncurses_norm_attr.
12211 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12212 "none", replace it with the default color recorded in
12215 2019-03-14 Tom Tromey <tromey@adacore.com>
12217 * source-cache.h (class source_cache) <get_source_lines>: Return
12219 * source-cache.c (source_cache::extract_lines): Handle case where
12220 first_pos==npos. Return std::string.
12221 (source_cache::get_source_lines): Update.
12223 2019-03-14 Tom Tromey <tromey@adacore.com>
12225 * NEWS: Add item for "style sources" commands.
12226 * source-cache.c (source_cache::get_source_lines): Check
12228 * cli/cli-style.c (source_styling): New global.
12229 (_initialize_cli_style): Add "style sources" commands.
12230 (show_style_sources): New function.
12231 * cli/cli-style.h (source_styling): Declare.
12233 2019-03-14 Pedro Alves <palves@redhat.com>
12234 Tom Tromey <tromey@adacore.com>
12236 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12237 * tui/tui-winsource.c (tui_refill_source_window): New function,
12239 (tui_horizontal_source_scroll): ... here. Move some logic.
12240 * cli/cli-style.c (set_style_enabled): Notify new observable.
12241 * tui/tui-hooks.c (tui_redisplay_source): New function.
12242 (tui_attach_detach_observers): Attach or detach
12243 tui_redisplay_source.
12244 * observable.h (source_styling_changed): New observable.
12245 * observable.c: Define source_styling_changed observable.
12247 2019-03-13 Tom Tromey <tromey@adacore.com>
12249 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12250 (i386_gnu_nat_target::store_registers): Update.
12251 * target-debug.h (target_debug_print_std_string): New macro.
12252 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12253 * windows-tdep.c (display_one_tib): Update.
12254 * tui/tui-stack.c (tui_make_status_line): Update.
12255 * top.c (print_inferior_quit_action): Update.
12256 * thread.c (thr_try_catch_cmd): Update.
12257 (add_thread_with_info): Update.
12258 (thread_target_id_str): Update.
12259 (thr_try_catch_cmd): Update.
12260 (thread_command): Update.
12261 (thread_find_command): Update.
12262 * record-btrace.c (record_btrace_target::info_record)
12263 (record_btrace_resume_thread, record_btrace_target::resume)
12264 (record_btrace_cancel_resume, record_btrace_step_thread)
12265 (record_btrace_target::wait, record_btrace_target::wait)
12266 (record_btrace_target::wait, record_btrace_target::stop): Update.
12267 * progspace.c (print_program_space): Update.
12268 * process-stratum-target.c
12269 (process_stratum_target::thread_address_space): Update.
12270 * linux-fork.c (linux_fork_mourn_inferior)
12271 (detach_checkpoint_command, info_checkpoints_command)
12272 (linux_fork_context): Update.
12273 (linux_fork_detach): Update.
12274 (class scoped_switch_fork_info): Update.
12275 (delete_checkpoint_command): Update.
12276 * infrun.c (follow_fork_inferior): Update.
12277 (follow_fork_inferior): Update.
12278 (proceed_after_vfork_done): Update.
12279 (handle_vfork_child_exec_or_exit): Update.
12280 (follow_exec): Update.
12281 (displaced_step_prepare_throw): Update.
12282 (displaced_step_restore): Update.
12283 (start_step_over): Update.
12284 (resume_1): Update.
12285 (clear_proceed_status_thread): Update.
12287 (print_target_wait_results): Update.
12288 (do_target_wait): Update.
12289 (context_switch): Update.
12290 (stop_all_threads): Update.
12291 (restart_threads): Update.
12292 (finish_step_over): Update.
12293 (handle_signal_stop): Update.
12294 (switch_back_to_stepped_thread): Update.
12295 (keep_going_pass_signal): Update.
12296 (print_exited_reason): Update.
12297 (normal_stop): Update.
12298 * inferior.c (inferior_pid_to_str): Change return type.
12299 (print_selected_inferior): Update.
12300 (add_inferior): Update.
12301 (detach_inferior): Update.
12302 * dummy-frame.c (fprint_dummy_frames): Update.
12303 * dcache.c (dcache_info_1): Update.
12304 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12305 (btrace_fetch, btrace_clear): Update.
12306 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12307 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12309 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12310 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12311 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12312 * gdbarch.c, gdbarch.h: Rebuild.
12313 * gdbarch.sh (core_pid_to_str): Change return type.
12314 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12316 (windows_nat_target::pid_to_str): Change return type.
12317 (windows_delete_thread): Update.
12318 (windows_nat_target::attach): Update.
12319 (windows_nat_target::files_info): Update.
12320 * target-delegates.c: Rebuild.
12321 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12323 (sol_thread_target::pid_to_str): Change return type.
12324 * remote.c (class remote_target) <pid_to_str>: Change return
12326 (remote_target::pid_to_str): Change return type.
12327 (extended_remote_target::attach, remote_target::remote_stop_ns)
12328 (remote_target::remote_notif_remove_queued_reply)
12329 (remote_target::push_stop_reply, remote_target::disable_btrace):
12331 (extended_remote_target::attach): Update.
12332 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12334 (gdbsim_target::pid_to_str): Change return type.
12335 * ravenscar-thread.c (struct ravenscar_thread_target)
12336 <pid_to_str>: Change return type.
12337 (ravenscar_thread_target::pid_to_str): Change return type.
12338 * procfs.c (class procfs_target) <pid_to_str>: Change return
12340 (procfs_target::pid_to_str): Change return type.
12341 (procfs_target::attach): Update.
12342 (procfs_target::detach): Update.
12343 (procfs_target::fetch_registers): Update.
12344 (procfs_target::store_registers): Update.
12345 (procfs_target::wait): Update.
12346 (procfs_target::files_info): Update.
12347 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12348 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12350 (nto_procfs_target::pid_to_str): Change return type.
12351 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12352 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12354 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12355 (exit_lwp): Update.
12356 (attach_proc_task_lwp_callback, get_detach_signal)
12357 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12358 (linux_nat_target::resume, wait_lwp, stop_callback)
12359 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12360 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12361 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12362 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12363 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12365 (inf_ptrace_target::attach): Update.
12366 (inf_ptrace_target::files_info): Update.
12367 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12369 (go32_nat_target::pid_to_str): Change return type.
12370 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12371 (gnu_nat_target::wait): Update.
12372 (gnu_nat_target::wait): Update.
12373 (gnu_nat_target::resume): Update.
12374 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12375 (fbsd_nat_target::wait): Update.
12376 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12378 (darwin_nat_target::attach): Update.
12379 * corelow.c (class core_target) <pid_to_str>: Change return type.
12380 (core_target::pid_to_str): Change return type.
12381 * target.c (normal_pid_to_str): Change return type.
12382 (default_pid_to_str): Likewise.
12383 (target_pid_to_str): Change return type.
12384 (target_translate_tls_address): Update.
12385 (target_announce_detach): Update.
12386 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12388 (bsd_uthread_target::pid_to_str): Change return type.
12389 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12391 (bsd_kvm_target::pid_to_str): Change return type.
12392 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12394 (aix_thread_target::pid_to_str): Change return type.
12395 * target.h (struct target_ops) <pid_to_str>: Change return type.
12396 (target_pid_to_str, normal_pid_to_str): Likewise.
12397 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12399 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12401 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12403 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12405 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12407 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12410 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12412 * NEWS: Mention that the new default MI version is 3. Mention
12413 changes to the output of commands and events that deal with
12414 multi-location breakpoints.
12415 * breakpoint.c: Include "mi/mi-out.h".
12416 (print_one_breakpoint): Change output syntax if using MI version
12418 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12420 (mi_multi_location_breakpoint_output_fixed): New.
12421 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12422 (mi_cmd_fix_multi_location_breakpoint_output): New.
12423 (mi_multi_location_breakpoint_output_fixed): New.
12424 * mi/mi-cmds.c (mi_cmds): Register command
12425 -fix-multi-location-breakpoint-output.
12426 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12429 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12431 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12432 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12433 instantiate mi_ui_out based on interpreter name.
12434 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12435 * mi/mi-main.c (mi_load_progress): Likewise.
12437 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12439 * NEWS: Combine separate "New targets" sections for 8.3.
12441 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12443 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12444 (ppcfbsd_init_abi): Install gdbarch
12445 "fetch_tls_load_module_address" and "get_thread_local_address"
12448 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12450 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12451 (riscv_fbsd_init_abi): Install gdbarch
12452 "fetch_tls_load_module_address" and "get_thread_local_address"
12455 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12457 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12458 (i386fbsd_init_abi): Install gdbarch
12459 "fetch_tls_load_module_address" and "get_thread_local_address"
12462 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12464 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12465 (amd64fbsd_init_abi): Install gdbarch
12466 "fetch_tls_load_module_address" and "get_thread_local_address"
12469 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12471 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12472 (struct fbsd_pspace_data): New type.
12473 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12474 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12475 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12476 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12477 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12479 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12481 * gdbtypes.c (lookup_struct_elt): New function.
12482 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12483 * gdbtypes.h (struct struct_elt): New type.
12484 (lookup_struct_elt): New prototype.
12486 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12488 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12489 remove disabled code block.
12491 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12493 * gdbarch.sh (get_thread_local_address): New method.
12494 * gdbarch.h, gdbarch.c: Regenerate.
12495 * target.c (target_translate_tls_address): Use
12496 gdbarch_get_thread_local_address if present instead of
12497 target::get_thread_local_address.
12499 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12501 * target.h (target::get_thread_local_address): Update comment.
12503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12505 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12506 objfile->separate_debug_objfile_backlink if not NULL.
12508 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12510 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12511 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12512 (amd64bsd_store_inferior_registers): Likewise.
12513 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12514 Enable segment base registers.
12515 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12516 PT_GETFSBASE and PT_GETGSBASE.
12517 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12519 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12520 segment base registers.
12521 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12523 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12525 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12526 Update calls to i386_target_description to add 'segments'
12528 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12529 add segment base registers.
12530 * arch/i386.c (i386_create_target_description): Add 'segments'
12531 parameter to enable segment base registers.
12532 * arch/i386.h (i386_create_target_description): Likewise.
12533 * features/i386/32bit-segments.xml: New file.
12534 * features/i386/32bit-segments.c: Generate.
12535 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12536 call to i386_target_description to add 'segments' parameter.
12537 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12538 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12539 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12540 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12541 if feature is present.
12542 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12543 Add 'segments' parameter to call to i386_target_description.
12544 (i386_target_description): Add 'segments' parameter to enable
12545 segment base registers.
12546 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12547 to call to i386_target_description.
12548 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12549 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12550 Define I386_NUM_REGS.
12551 (i386_target_description): Add 'segments' parameter to enable
12552 segment base registers.
12554 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12557 * source-cache.c: #undef open and close, to avoid unresolved
12558 externals during linking.
12560 2019-03-12 Tom Tromey <tromey@adacore.com>
12562 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12563 const. Add initializers.
12564 (_initialize_remote): Don't initialize ptid globals.
12566 2019-03-12 Pedro Alves <palves@redhat.com>
12568 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12570 2019-03-12 Pedro Alves <palves@redhat.com>
12572 * cp-name-parser.y (main): Remove unused 'len' variable.
12574 2019-03-12 Tom Tromey <tromey@adacore.com>
12576 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12577 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12579 2019-03-12 Tom Tromey <tromey@adacore.com>
12581 * linux-nat.c (iterate_over_lwps): Update.
12582 (stop_callback): Remove parameter.
12583 (stop_wait_callback, detach_callback, resume_set_callback)
12584 (select_singlestep_lwp_callback, set_ignore_sigint)
12585 (status_callback, resumed_callback, resume_clear_callback)
12586 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12588 (linux_nat_target::detach, linux_nat_target::resume)
12589 (linux_stop_and_wait_all_lwps, select_event_lwp)
12590 (linux_nat_filter_event, linux_nat_wait_1)
12591 (linux_nat_target::kill, linux_nat_target::stop)
12592 (linux_nat_target::stop): Update.
12593 (linux_nat_resume_callback): Change type.
12594 (resume_stopped_resumed_lwps, count_events_callback)
12595 (select_event_lwp_callback): Likewise.
12596 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12597 * arm-linux-nat.c (struct update_registers_data): Remove.
12598 (update_registers_callback): Change type.
12599 (arm_linux_insert_hw_breakpoint1): Update.
12600 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12602 (x86_linux_dr_set_addr): Update.
12603 (x86_linux_dr_set_control): Update.
12604 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12605 (iterate_over_lwps): Use gdb::function_view.
12606 * nat/aarch64-linux-hw-point.c (struct
12607 aarch64_dr_update_callback_param): Remove.
12608 (debug_reg_change_callback): Change type.
12609 (aarch64_notify_debug_reg_change): Update.
12610 * s390-linux-nat.c (s390_refresh_per_info): Update.
12612 2019-03-11 Tom Tromey <tromey@adacore.com>
12614 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12615 redundant assignment to "this_cu".
12617 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12619 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12621 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12623 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12625 (rank_one_type): ... this.
12627 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12629 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12631 (rank_one_type): ... this.
12633 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12635 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12637 (rank_one_type): ... this.
12639 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12641 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12643 (rank_one_type): ... this.
12645 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12647 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12649 (rank_one_type): ... this.
12651 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12653 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12655 (rank_one_type): ... this.
12657 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12659 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12661 (rank_one_type): ... this.
12663 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12665 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12667 (rank_one_type): ... this.
12669 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12671 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12673 (rank_one_type): ... this.
12675 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12677 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12679 (rank_one_type): ... this.
12681 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12683 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12685 (rank_one_type): ... this.
12687 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12689 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12691 (rank_one_type): ... this.
12693 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12695 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12696 inferior-events' shows the example events.
12698 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12700 Support styling on native MS-Windows console
12703 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12704 on MS-Windows if $TERM is not defined.
12706 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12708 * posix-hdep.c (gdb_console_fputs):
12709 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12711 * ui-file.h (gdb_console_fputs): Add prototype.
12713 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12714 back to fputs only if the former returns zero.
12716 2019-03-07 Tom Tromey <tom@tromey.com>
12718 * symmisc.c (print_symbol_bcache_statistics): Update.
12719 (print_objfile_statistics): Update.
12720 * symfile.c (allocate_symtab): Update.
12721 * stabsread.c: Don't include bcache.h.
12722 * psymtab.h (struct psymbol_bcache): Don't declare.
12723 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12724 (psymbol_bcache_init, psymbol_bcache_free)
12725 (psymbol_bcache_get_bcache): Don't declare.
12726 * psymtab.c (struct psymbol_bcache): Remove.
12727 (psymtab_storage::psymtab_storage): Update.
12728 (psymtab_storage::~psymtab_storage): Update.
12729 (psymbol_bcache_init, psymbol_bcache_free)
12730 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12731 (add_psymbol_to_bcache): Update.
12732 (allocate_psymtab): Update.
12733 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12734 macro_cache>: No longer pointers.
12735 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12736 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12737 * macrotab.c (macro_bcache): Update.
12738 * macroexp.c: Don't include bcache.h.
12739 * gdbtypes.c (check_types_worklist): Update.
12740 (types_deeply_equal): Remove TRY/CATCH. Update.
12741 * elfread.c (elf_symtab_read): Update.
12742 * dwarf2read.c: Don't include bcache.h.
12743 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12744 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12745 (print_bcache_statistics, bcache_memory_used): Don't declare.
12746 (struct bcache): Move from bcache.c. Add constructor, destructor,
12747 methods. Rename all data members.
12748 * bcache.c (struct bcache): Move to bcache.h.
12749 (bcache::expand_hash_table): Rename from expand_hash_table.
12751 (bcache::insert): Rename from bcache_full.
12752 (bcache::compare): Rename from bcache_compare.
12753 (bcache_xmalloc): Remove.
12754 (bcache::~bcache): Rename from bcache_xfree.
12755 (bcache::print_statistics): Rename from print_bcache_statistics.
12756 (bcache::memory_used): Rename from bcache_memory_used.
12758 2019-03-07 Pedro Alves <palves@redhat.com>
12760 * infrun.c (normal_stop): Also check for
12761 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12763 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12765 * f-lang.c (value_from_host_double): Moved to...
12766 * value.c (value_from_host_double): ...here.
12767 * value.h (value_from_host_double): Declare.
12768 * guile/scm-math.c (vlscm_convert_typed_number): Use
12769 value_from_host_double.
12770 (vlscm_convert_number): Likewise.
12771 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12772 * python/py-value.c (convert_value_from_python): Likewise.
12774 2019-03-06 Tom Tromey <tom@tromey.com>
12776 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12778 2019-03-06 Tom Tromey <tom@tromey.com>
12780 * utils.h (free_current_contents): Don't declare.
12781 * utils.c (free_current_contents): Remove.
12783 2019-03-06 Tom Tromey <tom@tromey.com>
12785 * top.c (quit_force): Update.
12786 * main.c (captured_command_loop): Update.
12787 * common/new-op.c (operator new): Update.
12788 * common/common-exceptions.c (struct catcher)
12789 <save_cleanup_chain>: Remove member.
12790 (exceptions_state_mc_init): Update.
12791 (exception_try_scope_entry): Return nullptr.
12792 (exception_try_scope_exit, exception_rethrow)
12793 (throw_exception_sjlj, throw_exception_cxx): Update.
12794 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12795 (all_cleanups, do_cleanups, discard_cleanups)
12796 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12797 (restore_cleanups, restore_final_cleanups): Don't declare.
12798 (do_final_cleanups): Remove parameter.
12799 * common/cleanups.c (cleanup_chain, make_cleanup)
12800 (make_cleanup_dtor, all_cleanups, do_cleanups)
12801 (discard_my_cleanups, discard_cleanups)
12802 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12803 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12804 (null_cleanup): Remove.
12805 (do_final_cleanups): Remove parameter.
12807 2019-03-06 Tom Tromey <tom@tromey.com>
12809 * remote.c (remote_target::remote_parse_stop_reply): Use
12810 unique_xmalloc_ptr.
12812 2019-03-06 Tom Tromey <tom@tromey.com>
12814 * stabsread.c (struct stabs_field_info): Rename from field_info.
12815 <list, fnlist>: Add initializers.
12816 <obstack>: New member.
12817 (read_member_functions, read_struct_fields, read_baseclasses):
12818 Allocate on obstack. Don't use cleanups.
12819 (read_one_struct_field, read_member_functions, read_struct_fields)
12820 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12821 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12822 (read_struct_type): Update.
12824 2019-03-06 Tom Tromey <tom@tromey.com>
12826 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12827 * common/filestuff.h (make_cleanup_close): Don't declare.
12828 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12831 2019-03-06 Tom Tromey <tom@tromey.com>
12833 * solib-aix.c: Use make_scope_exit.
12835 2019-03-06 Tom Tromey <tom@tromey.com>
12837 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12838 Use make_scope_exit.
12840 2019-03-06 Tom Tromey <tom@tromey.com>
12842 * solib-svr4.c (disable_probes_interface): Remove parameter.
12843 (svr4_handle_solib_event): Use make_scope_exit.
12845 2019-03-06 Tom Tromey <tom@tromey.com>
12847 * remote.c (struct stop_reply_deleter): Remove.
12848 (stop_reply_up): Update.
12849 (struct stop_reply): Derive from notif_event. Don't typedef.
12850 <regcache>: Now a std::vector.
12851 (stop_reply_xfree): Remove.
12852 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12853 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12854 (remote_target::discard_pending_stop_replies): Use delete.
12855 (remote_target::remote_parse_stop_reply): Update.
12856 (remote_target::process_stop_reply): Update.
12857 * remote-notif.h (struct notif_event): Add virtual destructor.
12858 Remove "dtr" member.
12859 (struct notif_client) <alloc_event>: Return a unique_ptr.
12860 (notif_event_xfree): Don't declare.
12861 (notif_event_up): New typedef.
12862 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12863 (notif_event_xfree, do_notif_event_xfree): Remove.
12864 (remote_notif_state_xfree): Update.
12866 2019-03-06 Tom Tromey <tom@tromey.com>
12868 * infrun.c (displaced_step_clear_cleanup): Now a
12869 forward_scope_exit type.
12870 (displaced_step_prepare_throw): Update.
12871 (displaced_step_fixup): Update.
12873 2019-03-06 Tom Tromey <tom@tromey.com>
12875 * inferior.h (class inferior): Update comment.
12876 * gdbthread.h (class thread_info): Update comment.
12878 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12879 Tom Tromey <tom@tromey.com>
12881 * stabsread.h (struct stab_section_list): Remove.
12882 (coffstab_build_psymtabs): Update.
12883 * dbxread.c (symbuf_sections): Now a std::vector.
12884 (sect_idx): New global.
12885 (fill_symbuf): Update.
12886 (coffstab_build_psymtabs): Change type of stabsects parameter.
12888 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12890 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12891 (coff_locate_sections): Update.
12892 (coff_symfile_read): Remove cleanups. Update.
12893 (init_stringtab): Add storage parameter.
12894 (free_stringtab, free_stringtab_cleanup): Remove.
12895 (init_lineno): Add storage parameter.
12896 (free_linetab, free_linetab_cleanup): Remove.
12898 2019-03-06 Pedro Alves <palves@redhat.com>
12900 * linux-fork.c (fork_info::clobber_regs): Delete.
12901 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12902 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12904 (scoped_switch_fork_info::scoped_switch_fork_info)
12905 (checkpoint_command, linux_fork_context): Adjust
12906 fork_save_infrun_state calls.
12908 2019-03-06 Pedro Alves <palves@redhat.com>
12910 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12911 (inf_has_multiple_threads): Return 'bool' and rewrite using
12912 inferior_info::threads().
12914 2019-03-06 Pedro Alves <palves@redhat.com>
12916 * linux-fork.c: Include <list>.
12917 (fork_list): Now a std::list instance.
12918 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12919 (forks_exist_p, find_last_fork): Adjust.
12920 (new_fork): Delete.
12922 (add_fork): Adjust.
12923 (free_fork): Delete, folded into fork_info::~fork_info().
12924 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12926 (init_fork_list): Delete.
12927 (linux_fork_killall, linux_fork_mourn_inferior)
12928 (linux_fork_detach, info_checkpoints_command): Adjust.
12929 (_initialize_linux_fork): No longer call init_fork_list.
12931 2019-03-06 Pedro Alves <palves@redhat.com>
12933 * linux-fork.c (new_fork): New, split out of ...
12934 (add_fork): ... this. Return void. Move "first fork" special
12935 case from here, to ...
12936 (checkpoint_command): ... here.
12937 * linux-linux.h (add_fork): Return void.
12939 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12941 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12943 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12944 Chris January <chris.january@arm.com>
12945 David Lecomber <david.lecomber@arm.com>
12947 * f-exp.y: New token, UNOP_INTRINSIC.
12948 (exp): New pattern using UNOP_INTRINSIC token.
12949 (f77_keywords): Add 'abs' keyword.
12950 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12951 (value_from_host_double): New function.
12952 (evaluate_subexp_f): Support UNOP_ABS.
12954 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12956 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12959 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12961 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12962 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12963 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12965 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12967 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12969 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12970 Chris January <chris.january@arm.com>
12972 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12973 * f-exp.y: Define 'KIND' token.
12974 (exp): New pattern for KIND expressions.
12975 (ptype): Handle types with a kind extension.
12976 (direct_abs_decl): Extend to spot kind extensions.
12977 (f77_keywords): Add 'kind' to the list.
12978 (push_kind_type): New function.
12979 (convert_to_kind_type): New function.
12980 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12981 * parse.c (operator_length_standard): Likewise.
12982 * parser-defs.h (enum type_pieces): Add tp_kind.
12983 * std-operator.def: Add UNOP_KIND.
12985 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12987 * f-exp.y (f_parse): Set yydebug.
12989 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12991 * f-lang.c (evaluate_subexp_f): New function.
12992 (exp_descriptor_f): New global.
12993 (f_language_defn): Use exp_descriptor_f instead of
12994 exp_descriptor_standard.
12996 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12998 * f-exp.y (struct token): Add comments.
12999 (dot_ops): Remove uppercase versions and the end marker.
13000 (f77_keywords): Likewise.
13001 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13002 entries in the dot_ops array are case insensitive, and use
13003 strncasecmp to compare strings. Also some whitespace cleanup in
13004 this area. Similar for the f77_keywords array, except entries in
13005 this list might be case sensitive.
13007 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13009 * f-exp.y (struct f77_boolean_val): Add comments.
13010 (boolean_values): Remove uppercase versions, and end marker.
13011 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13012 and use strncasecmp to achieve case insensitivity. Additionally,
13013 perform whitespace cleanup around this code.
13015 2019-03-06 Tom Tromey <tromey@adacore.com>
13017 * remote-sim.c (gdbsim_target_open): Use result of
13020 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13021 Dirk Schubert <dirk.schubert@arm.com>
13022 Chris January <chris.january@arm.com>
13024 * eval.c (evaluate_subexp_standard): Call Fortran argument
13026 * f-lang.c (struct value): A value which can be passed into a
13027 Fortran function call.
13028 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13030 (struct type): Value ready for a Fortran function call.
13031 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13033 * f-lang.h (fortran_argument_convert): Declaration.
13034 (fortran_preserve_arg_pointer): Declaration.
13035 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13037 2019-03-05 Tom Tromey <tromey@adacore.com>
13039 * python/py-prettyprint.c (print_string_repr): Remove #if.
13040 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13042 2019-03-05 Tom Tromey <tromey@adacore.com>
13044 * target.c (the_dummy_target): Move later. Change type to
13046 (initialize_targets): Don't initialize the_dummy_target.
13048 2019-03-05 Tom Tromey <tromey@adacore.com>
13050 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13051 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13053 2019-03-05 Tom Tromey <tromey@adacore.com>
13055 * windows-nat.c (windows_nat_target::attach)
13056 (windows_nat_target::detach): Don't call gdb_flush.
13057 * valprint.c (generic_val_print, val_print, val_print_string):
13058 Don't call gdb_flush.
13059 * utils.c (defaulted_query): Don't call gdb_flush.
13060 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13061 * target.c (target_announce_detach): Don't call gdb_flush.
13062 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13063 * remote.c (extended_remote_target::attach): Don't call
13065 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13066 * printcmd.c (do_examine): Don't call gdb_flush.
13067 (info_display_command): Don't call gdb_flush.
13068 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13069 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13070 * memattr.c (info_mem_command): Don't call gdb_flush.
13071 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13072 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13073 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13074 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13075 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13076 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13077 (gnu_nat_target::detach): Don't call gdb_flush.
13078 * f-valprint.c (f_val_print): Don't call gdb_flush.
13079 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13080 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13081 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13083 * c-valprint.c (c_val_print): Don't call gdb_flush.
13084 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13086 2019-03-05 Tom Tromey <tromey@adacore.com>
13088 * varobj.c (update_dynamic_varobj_children): Update.
13089 (install_default_visualizer): Use reset, not release.
13090 * value.c (set_internalvar): Update.
13091 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13092 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13093 ATTRIBUTE_UNUSED_RESULT.
13095 2019-03-05 Tom Tromey <tromey@adacore.com>
13097 * remote.c (class scoped_remote_fd) <release>: Add
13098 ATTRIBUTE_UNUSED_RESULT.
13100 2019-03-05 Tom Tromey <tromey@adacore.com>
13102 * macroexp.c (struct macro_buffer) <release>: Add
13103 ATTRIBUTE_UNUSED_RESULT.
13105 2019-03-05 Tom Tromey <tromey@adacore.com>
13107 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13108 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13109 ATTRIBUTE_UNUSED_RESULT.
13111 2019-03-05 Tom Tromey <tromey@adacore.com>
13113 * common/scoped_fd.h (class scoped_fd) <release>: Add
13114 ATTRIBUTE_UNUSED_RESULT.
13116 2019-03-05 Tom Tromey <tromey@adacore.com>
13118 * parser-defs.h (struct parser_state) <release>: Add
13119 ATTRIBUTE_UNUSED_RESULT.
13121 2019-03-05 Tom Tromey <tromey@adacore.com>
13123 * utils.h (class gdb_argv) <release>: Add
13124 ATTRIBUTE_UNUSED_RESULT.
13125 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13127 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13129 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13130 for-loop range, to avoid compiler warnings.
13132 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13133 avoid compiler warnings about unused variables.
13135 * NEWS: Mention end of support for native debugging on MS-Windows
13139 * common/netstuff.c:
13140 * gdbserver/gdbreplay.c
13141 * gdbserver/remote-utils.c:
13143 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13144 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13145 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13146 'getaddrinfo' and 'freeaddrinfo' were not available before
13147 Windows XP, and mingw.org's MinGW headers by default define
13148 _WIN32_WINNT to 0x500.
13150 2019-03-01 Gary Benson <gbenson@redhat.com>
13152 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13154 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13155 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13158 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13159 set_sigint_trap, clear_sigint_trap.
13161 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13163 * target.c (target_detach): Clear the regcache and the
13166 2019-02-27 Pedro Alves <palves@redhat.com>
13168 * utils.c (set_screen_size): When we cap the height/width sizes,
13169 tweak the corresponding command variable to show "unlimited":
13171 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13172 Pedro Alves <palves@redhat.com>
13174 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13175 before calling rl_set_screen_size.
13177 2019-02-27 Tom Tromey <tromey@adacore.com>
13179 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13181 * python/py-value.c: Remove Python 2.4 workaround.
13182 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13184 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13185 Python 2.4 workaround.
13186 * python/python-internal.h: Remove Python 2.4 comment.
13187 (Py_ssize_t): Don't define.
13188 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13189 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13190 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13191 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13192 * python/python.c (do_start_initialization): Remove Python 2.4
13194 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13195 (print_children): Remove Python 2.4 workaround.
13196 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13198 (CHARBUFFERPROC_NAME): Remove.
13199 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13200 Python 2.4 workaround.
13202 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13204 * NEWS: Note minimum Python version.
13206 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13208 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13209 code from these functions. Remove corresponding ifdefs. Use
13210 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13211 Remove gotos and target of gotos.
13212 (infpy_search_memory): Likewise.
13214 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13216 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13217 (hppa_gdbarch_init): Don't register deleted functions with
13220 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13222 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13223 (h8300_unwind_sp): Delete.
13224 (h8300_dummy_id): Delete.
13225 (h8300_gdbarch_init): Don't register deleted functions with
13228 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13230 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13231 (ft32_unwind_pc): Delete.
13232 (ft32_unwind_sp): Delete.
13233 (ft32_gdbarch_init): Don't register deleted functions with
13236 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13238 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13239 (frv_unwind_pc): Delete.
13240 (frv_unwind_sp): Delete.
13241 (frv_gdbarch_init): Don't register deleted functions with
13244 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13246 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13247 (riscv_unwind_pc): Delete.
13248 (riscv_unwind_sp): Delete.
13249 (riscv_gdbarch_init): Don't register deleted functions with
13252 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13254 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13255 (csky_unwind_pc): Delete.
13256 (csky_unwind_sp): Delete.
13257 (csky_gdbarch_init): Don't register deleted functions with
13260 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13262 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13263 (cris_unwind_pc): Delete.
13264 (cris_unwind_sp): Delete.
13265 (cris_gdbarch_init): Don't register deleted functions with
13268 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13270 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13271 (bfin_unwind_pc): Delete.
13272 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13274 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13276 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13277 (arm_unwind_pc): Delete.
13278 (arm_unwind_sp): Delete.
13279 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13281 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13283 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13284 (arc_unwind_pc): Delete.
13285 (arc_unwind_sp): Delete.
13286 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13288 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13290 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13291 (alpha_unwind_pc): Delete.
13292 (alpha_gdbarch_init): Don't register deleted functions with
13295 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13297 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13298 (aarch64_unwind_pc): Delete.
13299 (aarch64_unwind_sp): Delete.
13300 (aarch64_gdbarch_init): Don't register deleted functions with
13303 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13305 * gdbtypes.c (type_align): Don't consider static members when
13306 computing structure alignment.
13308 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13310 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13311 return 0 for other types.
13312 * arch-utils.c (default_type_align): Always return 0.
13313 * gdbarch.h: Regenerate.
13314 * gdbarch.sh (type_align): Extend comment.
13315 * gdbtypes.c (type_align): Add additional comments, always call
13316 gdbarch_type_align before applying the default rules.
13317 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13318 generic code will then apply a suitable default.
13319 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13320 types, return 0 for other types.
13322 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13324 * NEWS: Create a new section for the next release branch.
13325 Rename the section of the current branch, now that it has
13328 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13330 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13331 * version.in: Bump version to 8.3.50.DATE-git.
13333 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13335 * aix-thread.c (ptid_cmp): Remove unused variable.
13336 (get_signaled_thread): Likewise.
13337 (store_regs_user_thread): Likewise.
13338 (store_regs_kernel_thread): Likewise.
13339 (fetch_regs_kernel_thread): Remove shadowed variable.
13341 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13343 * features/riscv/32bit-cpu.xml: Add register numbers.
13344 * features/riscv/32bit-fpu.c: Regenerate.
13345 * features/riscv/32bit-fpu.xml: Add register numbers.
13346 * features/riscv/64bit-cpu.xml: Add register numbers.
13347 * features/riscv/64bit-fpu.c: Regenerate.
13348 * features/riscv/64bit-fpu.xml: Add register numbers.
13350 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13352 * NEWS: Mention two argument form of gdb.Value constructor.
13353 * python/py-value.c (convert_buffer_and_type_to_value): New
13355 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13356 Add support for handling an optional second argument. Call
13357 convert_buffer_and_type_to_value as appropriate.
13358 * python/python-internal.h (Py_buffer_deleter): New struct.
13359 (Py_buffer_up): New typedef.
13361 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13363 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13364 instead of releasing ownership.
13366 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13368 * dwarf2read.c (open_and_init_dwp_file): Call
13369 elf_numsections instead of bfd_count_sections to initialize
13370 dwp_file->num_sections.
13372 2019-02-25 Tom Tromey <tromey@adacore.com>
13374 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13376 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13378 * gcore.in: Add '--readnever' option when invoking GDB.
13380 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13382 * MAINTAINERS: Update my email address.
13384 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13386 * build-id.c (build_id_to_debug_bfd_1): New function.
13387 (build_id_to_debug_bfd): Look for separate debug file in
13390 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13392 * gdbarch.sh: Update the copyright year range that is placed into
13395 2019-02-22 Keith Seitz <keiths@redhat.com>
13398 * linespec.c (create_sals_line_offset): Search for the default
13399 symtab's filename instead of its fullname.
13401 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13403 * NEWS: Update style defaults.
13405 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13407 * main.c (captured_main_1): Disable styling in batch mode.
13409 2019-02-20 Tom Tromey <tom@tromey.com>
13411 * symtab.c (symtab_symbol_info): Fix typos.
13413 2019-02-20 Tom Tromey <tromey@adacore.com>
13415 * findcmd.c (_initialize_mem_search): Use upper case for
13416 metasyntactic variables.
13418 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13420 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13421 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13423 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13425 * top.h (source_file_name): Change to std::string.
13426 * top.c (source_file_name): Likewise.
13427 (command_line_input): Adjust.
13428 * cli/cli-script.c (script_from_file): Adjust.
13430 2019-02-19 Tom Tromey <tromey@adacore.com>
13432 * ravenscar-thread.c
13433 (ravenscar_thread_target::update_thread_list): Don't call
13434 ada_build_task_list.
13435 * ada-lang.h (ada_build_task_list): Don't declare.
13436 * ada-tasks.c (struct ada_tasks_inferior_data)
13437 <task_list_valid_p>: Now bool.
13438 (read_known_tasks, ada_task_list_changed)
13439 (ada_tasks_invalidate_inferior_data): Update.
13440 (read_known_tasks_array): Return bool.
13441 (read_known_tasks_list): Likewise.
13442 (read_known_tasks): Return void.
13443 (ada_build_task_list): Now static.
13445 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13447 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13448 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13450 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13452 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13453 variant for ada_tasks_pspace_data_handle and
13454 ada_tasks_inferior_data_handle.
13455 (ada_tasks_pspace_data_cleanup): New function.
13456 (ada_tasks_inferior_data_cleanup): New function.
13458 2019-02-17 Tom Tromey <tom@tromey.com>
13460 * macrotab.h (macro_source_fullname): Return a std::string.
13461 * macrotab.c (macro_include, check_for_redefinition)
13462 (macro_undef, macro_lookup_definition, foreach_macro)
13463 (foreach_macro_in_scope): Update.
13464 (macro_source_fullname): Return a std::string.
13465 * macrocmd.c (show_pp_source_pos): Update.
13467 2019-02-17 Tom Tromey <tom@tromey.com>
13469 * macrocmd.c (show_pp_source_pos): Style the file names.
13471 2019-02-17 Tom Tromey <tom@tromey.com>
13474 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13476 2019-02-17 Tom Tromey <tom@tromey.com>
13478 * ada-lang.c (user_select_syms): Use filtered printing.
13479 * utils.c (wrap_style): New global.
13480 (desired_style): Remove.
13481 (emit_style_escape): Add stream parameter.
13482 (set_output_style, reset_terminal_style, prompt_for_continue):
13484 (flush_wrap_buffer): Only flush gdb_stdout.
13485 (wrap_here): Set wrap_style.
13486 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13487 treat escape sequences as a character. Change when wrap buffer is
13489 (fputs_styled): Do not set the output style when the default is
13491 * ui-style.h (struct ui_file_style) <is_default>: New method.
13492 * source.c (print_source_lines_base): Emit escape sequences in one
13495 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13497 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13498 integers and enumeration types.
13500 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13502 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13503 instead of lookup_symbol_in_language
13504 (do_exact_match): New function.
13505 (ada_get_symbol_name_matcher): Return do_exact_match when
13506 doing a verbatim match.
13508 2019-02-15 Tom Tromey <tromey@adacore.com>
13510 * ravenscar-thread.c (ravenscar_thread_target::resume)
13511 (ravenscar_thread_target::wait): Special case wildcard requests.
13513 2019-02-15 Tom Tromey <tromey@adacore.com>
13515 * ravenscar-thread.c (base_ptid): Remove.
13516 (struct ravenscar_thread_target) <close>: New method.
13517 <m_base_ptid>: New member.
13518 <update_inferior_ptid, active_task, task_is_currently_active,
13519 runtime_initialized>: Declare methods.
13520 <ravenscar_thread_target>: Add constructor.
13521 (ravenscar_thread_target::task_is_currently_active)
13522 (ravenscar_thread_target::update_inferior_ptid)
13523 (ravenscar_runtime_initialized): Rename. Now methods.
13524 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13525 (ravenscar_thread_target::update_thread_list): Update.
13526 (ravenscar_thread_target::active_task): Now method.
13527 (ravenscar_thread_target::store_registers)
13528 (ravenscar_thread_target::prepare_to_store)
13529 (ravenscar_thread_target::prepare_to_store)
13530 (ravenscar_thread_target::mourn_inferior): Update.
13531 (ravenscar_inferior_created): Use "new" to create target.
13532 (ravenscar_thread_target::get_ada_task_ptid): Update.
13533 (_initialize_ravenscar): Don't initialize base_ptid.
13534 (ravenscar_ops): Remove global.
13536 2019-02-15 Tom Tromey <tromey@adacore.com>
13538 * target.h (push_target): Declare new overload.
13539 * target.c (push_target): New overload, taking an rvalue reference.
13540 * remote.c (remote_target::open_1): Use push_target overload.
13541 * corelow.c (core_target_open): Use push_target overload.
13543 2019-02-15 Tom Tromey <tromey@adacore.com>
13545 * ravenscar-thread.c (is_ravenscar_task)
13546 (ravenscar_task_is_currently_active): Return bool.
13547 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13548 (_initialize_ravenscar): Remove "(void)".
13549 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13552 2019-02-15 Tom Tromey <tromey@adacore.com>
13554 * ravenscar-thread.c (ravenscar_runtime_initializer)
13555 (has_ravenscar_runtime, get_running_thread_id)
13556 (ravenscar_thread_target::resume): Fix indentation.
13558 2019-02-15 Tom Tromey <tromey@adacore.com>
13560 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13561 from ravenscar_arch_ops.
13562 (sparc_ravenscar_ops::fetch_registers)
13563 (sparc_ravenscar_ops::store_registers): Now methods.
13564 (sparc_ravenscar_prepare_to_store): Remove.
13565 (sparc_ravenscar_ops): Redefine.
13566 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13567 methods and destructor. Remove members.
13568 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13569 (ravenscar_thread_target::store_registers)
13570 (ravenscar_thread_target::prepare_to_store): Update.
13571 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13573 (struct ppc_ravenscar_powerpc_ops): Derive from
13574 ravenscar_arch_ops.
13575 (ppc_ravenscar_powerpc_ops::fetch_registers)
13576 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13577 (ppc_ravenscar_powerpc_ops): Redefine.
13578 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13579 (ppc_ravenscar_e500_ops::fetch_registers)
13580 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13581 (ppc_ravenscar_e500_ops): Redefine.
13582 * aarch64-ravenscar-thread.c
13583 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13584 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13585 (aarch64_ravenscar_fetch_registers)
13586 (aarch64_ravenscar_store_registers): Now methods.
13587 (aarch64_ravenscar_ops): Redefine.
13589 2019-02-15 Tom Tromey <tromey@adacore.com>
13591 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13592 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13593 (ravenscar_thread_target::stopped_by_watchpoint)
13594 (ravenscar_thread_target::stopped_data_address)
13595 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13597 2019-02-15 Tom Tromey <tromey@adacore.com>
13599 * ravenscar-thread.c: Fix some typos.
13601 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13602 Tom Tromey <tromey@adacore.com>
13604 * ada-lang.c (ada_exception_sal): Change addr_string to a
13606 (create_ada_exception_catchpoint): Update.
13608 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13609 Tom Tromey <tromey@adacore.com>
13611 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13612 (bp_location_ops): Remove.
13613 (base_breakpoint_allocate_location): Update.
13614 (free_bp_location): Update.
13615 * ada-lang.c (class ada_catchpoint_location)
13616 <ada_catchpoint_location>: Remove ops parameter.
13617 (ada_catchpoint_location_dtor): Remove.
13618 (ada_catchpoint_location_ops): Remove.
13619 (allocate_location_exception): Update.
13620 * breakpoint.h (struct bp_location_ops): Remove.
13621 (class bp_location) <bp_location>: Remove bp_location_ops
13623 <~bp_location>: Add destructor.
13626 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13627 Pedro Alves <palves@redhat.com>
13629 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13632 2019-02-14 David Michael <fedora.dm0@gmail.com>
13633 Samuel Thibault <samuel.thibault@gnu.org>
13634 Thomas Schwinge <thomas@codesourcery.com>
13636 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13637 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13639 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13641 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13642 (check_empty): Use "const char *".
13644 * gnu-nat.c (gnu_nat_target::detach): Instead of
13645 'detach_inferior (pid)' call
13646 'detach_inferior (find_inferior_pid (pid))'.
13648 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13649 'nat/fork-inferior.o'.
13650 * gnu-nat.c: #include "nat/fork-inferior.h".
13652 * gnu-nat.c (gnu_nat_target::detach): Instead of
13653 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13654 * gnu-nat.h: #include "inf-child.h".
13655 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13656 'i386_gnu_nat_target::fetch_registers'.
13657 (gnu_store_registers): Rename/move to
13658 'i386_gnu_nat_target::store_registers'.
13660 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13661 * gnu-nat.h (mach_thread_info): New function.
13662 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13664 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13666 2019-02-14 Frederic Konrad <konrad@adacore.com>
13668 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13670 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13672 * windows-nat.c (windows_add_thread): Add new parameter
13673 "main_thread_p" with default value set to false. Update
13674 function documentation as well as all callers.
13675 (windows_delete_thread): Likewise.
13676 (fake_create_process): Update call to windows_add_thread.
13677 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13678 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13679 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13680 call to windows_delete_thread.
13682 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13684 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13686 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13688 * symfile.c (find_separate_debug_file): Use canonical path of
13689 sysroot with child_path instead of gdb_sysroot if it is valid.
13691 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13693 * symfile.c (find_separate_debug_file): Use child_path to
13694 determine if an object file is under a sysroot.
13696 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13699 unittests/child-path-selftests.c.
13700 * common/pathstuff.c (child_path): New function.
13701 * common/pathstuff.h (child_path): New prototype.
13702 * unittests/child-path-selftests.c: New file.
13704 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13706 * symfile.c (find_separate_debug_file): Look for separate debug
13707 files in debug directories under the sysroot.
13709 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13711 * symtab.h (struct minimal_symbol data_p): New const method.
13712 (struct minimal_symbol text_p): Likewise.
13713 * symtab.c (output_source_filename): Use file name style
13714 to print file name.
13715 (print_symbol_info): Likewise.
13716 (print_msymbol_info): Use address style to print addresses.
13717 Use function name style to print executable text symbols.
13718 (expand_symtab_containing_pc): Use data_p.
13719 (find_pc_sect_compunit_symtab): Likewise.
13721 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13723 * breakpoint.c (describe_other_breakpoints): Use address style
13724 to print addresses.
13725 (say_where): Likewise.
13727 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13729 * ada-typeprint.c (print_func_type): Print function name
13730 style to print function name.
13731 * c-typeprint.c (c_print_type_1): Likewise.
13733 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13735 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13738 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13740 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13743 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13745 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13746 TYPE_CODE_REF types.
13748 2019-02-08 Jim Wilson <jimw@sifive.com>
13750 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13751 (riscv_linux_fregset): New.
13752 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13754 2019-02-07 Tom Tromey <tom@tromey.com>
13756 * thread.c (thread_cancel_execution_command): Update.
13757 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13759 (struct thread_fsm_ops): Remove.
13760 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13761 (thread_fsm_should_stop, thread_fsm_return_value)
13762 (thread_fsm_set_finished, thread_fsm_finished_p)
13763 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13765 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13766 * infrun.c (clear_proceed_status_thread)
13767 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13768 (print_stop_event): Update.
13769 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13771 (step_command_fsm_ops): Remove.
13772 (new_step_command_fsm): Remove.
13774 (step_command_fsm::should_stop): Rename from
13775 step_command_fsm_should_stop.
13776 (step_command_fsm::clean_up): Rename from
13777 step_command_fsm_clean_up.
13778 (step_command_fsm::do_async_reply_reason): Rename from
13779 step_command_fsm_async_reply_reason.
13780 (struct until_next_fsm): Inherit from thread_fsm. Add
13782 (until_next_fsm_ops): Remove.
13783 (new_until_next_fsm): Remove.
13784 (until_next_fsm::should_stop): Rename from
13785 until_next_fsm_should_stop.
13786 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13787 (until_next_fsm::do_async_reply_reason): Rename from
13788 until_next_fsm_async_reply_reason.
13789 (struct finish_command_fsm): Inherit from thread_fsm. Add
13790 constructor. Change type of breakpoint.
13791 (finish_command_fsm_ops): Remove.
13792 (new_finish_command_fsm): Remove.
13793 (finish_command_fsm::should_stop): Rename from
13794 finish_command_fsm_should_stop.
13795 (finish_command_fsm::clean_up): Rename from
13796 finish_command_fsm_clean_up.
13797 (finish_command_fsm::return_value): Rename from
13798 finish_command_fsm_return_value.
13799 (finish_command_fsm::do_async_reply_reason): Rename from
13800 finish_command_fsm_async_reply_reason.
13801 (finish_command): Update.
13802 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13804 (call_thread_fsm_ops): Remove.
13805 (call_thread_fsm::call_thread_fsm): Rename from
13806 new_call_thread_fsm.
13807 (call_thread_fsm::should_stop): Rename from
13808 call_thread_fsm_should_stop.
13809 (call_thread_fsm::should_notify_stop): Rename from
13810 call_thread_fsm_should_notify_stop.
13811 (run_inferior_call, call_function_by_hand_dummy): Update.
13812 * cli/cli-interp.c (should_print_stop_to_console): Update.
13813 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13814 Add constructor. Change type of location_breakpoint,
13816 (until_break_fsm_ops): Remove.
13817 (new_until_break_fsm): Remove.
13818 (until_break_fsm::should_stop): Rename from
13819 until_break_fsm_should_stop.
13820 (until_break_fsm::clean_up): Rename from
13821 until_break_fsm_clean_up.
13822 (until_break_fsm::do_async_reply_reason): Rename from
13823 until_break_fsm_async_reply_reason.
13824 (until_break_command): Update.
13825 * thread-fsm.c: Remove.
13826 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13828 2019-02-07 Tom Tromey <tom@tromey.com>
13830 * yy-remap.h: Add include guard.
13831 * xtensa-tdep.h: Add include guard.
13832 * xcoffread.h: Rename include guard.
13833 * varobj-iter.h: Add include guard.
13834 * tui/tui.h: Rename include guard.
13835 * tui/tui-winsource.h: Rename include guard.
13836 * tui/tui-wingeneral.h: Rename include guard.
13837 * tui/tui-windata.h: Rename include guard.
13838 * tui/tui-win.h: Rename include guard.
13839 * tui/tui-stack.h: Rename include guard.
13840 * tui/tui-source.h: Rename include guard.
13841 * tui/tui-regs.h: Rename include guard.
13842 * tui/tui-out.h: Rename include guard.
13843 * tui/tui-layout.h: Rename include guard.
13844 * tui/tui-io.h: Rename include guard.
13845 * tui/tui-hooks.h: Rename include guard.
13846 * tui/tui-file.h: Rename include guard.
13847 * tui/tui-disasm.h: Rename include guard.
13848 * tui/tui-data.h: Rename include guard.
13849 * tui/tui-command.h: Rename include guard.
13850 * tic6x-tdep.h: Add include guard.
13851 * target/waitstatus.h: Rename include guard.
13852 * target/wait.h: Rename include guard.
13853 * target/target.h: Rename include guard.
13854 * target/resume.h: Rename include guard.
13855 * target-float.h: Rename include guard.
13856 * stabsread.h: Add include guard.
13857 * rs6000-tdep.h: Add include guard.
13858 * riscv-fbsd-tdep.h: Add include guard.
13859 * regformats/regdef.h: Rename include guard.
13860 * record.h: Rename include guard.
13861 * python/python.h: Rename include guard.
13862 * python/python-internal.h: Rename include guard.
13863 * python/py-stopevent.h: Rename include guard.
13864 * python/py-ref.h: Rename include guard.
13865 * python/py-record.h: Rename include guard.
13866 * python/py-record-full.h: Rename include guard.
13867 * python/py-record-btrace.h: Rename include guard.
13868 * python/py-instruction.h: Rename include guard.
13869 * python/py-events.h: Rename include guard.
13870 * python/py-event.h: Rename include guard.
13871 * procfs.h: Add include guard.
13872 * proc-utils.h: Add include guard.
13873 * p-lang.h: Add include guard.
13874 * or1k-tdep.h: Rename include guard.
13875 * observable.h: Rename include guard.
13876 * nto-tdep.h: Rename include guard.
13877 * nat/x86-linux.h: Rename include guard.
13878 * nat/x86-linux-dregs.h: Rename include guard.
13879 * nat/x86-gcc-cpuid.h: Add include guard.
13880 * nat/x86-dregs.h: Rename include guard.
13881 * nat/x86-cpuid.h: Rename include guard.
13882 * nat/ppc-linux.h: Rename include guard.
13883 * nat/mips-linux-watch.h: Rename include guard.
13884 * nat/linux-waitpid.h: Rename include guard.
13885 * nat/linux-ptrace.h: Rename include guard.
13886 * nat/linux-procfs.h: Rename include guard.
13887 * nat/linux-osdata.h: Rename include guard.
13888 * nat/linux-nat.h: Rename include guard.
13889 * nat/linux-namespaces.h: Rename include guard.
13890 * nat/linux-btrace.h: Rename include guard.
13891 * nat/glibc_thread_db.h: Rename include guard.
13892 * nat/gdb_thread_db.h: Rename include guard.
13893 * nat/gdb_ptrace.h: Rename include guard.
13894 * nat/fork-inferior.h: Rename include guard.
13895 * nat/amd64-linux-siginfo.h: Rename include guard.
13896 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13897 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13898 * nat/aarch64-linux.h: Rename include guard.
13899 * nat/aarch64-linux-hw-point.h: Rename include guard.
13900 * mn10300-tdep.h: Add include guard.
13901 * mips-linux-tdep.h: Add include guard.
13902 * mi/mi-parse.h: Rename include guard.
13903 * mi/mi-out.h: Rename include guard.
13904 * mi/mi-main.h: Rename include guard.
13905 * mi/mi-interp.h: Rename include guard.
13906 * mi/mi-getopt.h: Rename include guard.
13907 * mi/mi-console.h: Rename include guard.
13908 * mi/mi-common.h: Rename include guard.
13909 * mi/mi-cmds.h: Rename include guard.
13910 * mi/mi-cmd-break.h: Rename include guard.
13911 * m2-lang.h: Add include guard.
13912 * location.h: Rename include guard.
13913 * linux-record.h: Rename include guard.
13914 * linux-nat.h: Add include guard.
13915 * linux-fork.h: Add include guard.
13916 * i386-darwin-tdep.h: Rename include guard.
13917 * hppa-linux-offsets.h: Add include guard.
13918 * guile/guile.h: Rename include guard.
13919 * guile/guile-internal.h: Rename include guard.
13920 * gnu-nat.h: Rename include guard.
13921 * gdb-stabs.h: Rename include guard.
13922 * frv-tdep.h: Add include guard.
13923 * f-lang.h: Add include guard.
13924 * event-loop.h: Add include guard.
13925 * darwin-nat.h: Rename include guard.
13926 * cp-abi.h: Rename include guard.
13927 * config/sparc/nm-sol2.h: Rename include guard.
13928 * config/nm-nto.h: Rename include guard.
13929 * config/nm-linux.h: Add include guard.
13930 * config/i386/nm-i386gnu.h: Rename include guard.
13931 * config/djgpp/nl_types.h: Rename include guard.
13932 * config/djgpp/langinfo.h: Rename include guard.
13933 * compile/gcc-cp-plugin.h: Add include guard.
13934 * compile/gcc-c-plugin.h: Add include guard.
13935 * compile/compile.h: Rename include guard.
13936 * compile/compile-object-run.h: Rename include guard.
13937 * compile/compile-object-load.h: Rename include guard.
13938 * compile/compile-internal.h: Rename include guard.
13939 * compile/compile-cplus.h: Rename include guard.
13940 * compile/compile-c.h: Rename include guard.
13941 * common/xml-utils.h: Rename include guard.
13942 * common/x86-xstate.h: Rename include guard.
13943 * common/version.h: Rename include guard.
13944 * common/vec.h: Rename include guard.
13945 * common/tdesc.h: Rename include guard.
13946 * common/selftest.h: Rename include guard.
13947 * common/scoped_restore.h: Rename include guard.
13948 * common/scoped_mmap.h: Rename include guard.
13949 * common/scoped_fd.h: Rename include guard.
13950 * common/safe-iterator.h: Rename include guard.
13951 * common/run-time-clock.h: Rename include guard.
13952 * common/refcounted-object.h: Rename include guard.
13953 * common/queue.h: Rename include guard.
13954 * common/ptid.h: Rename include guard.
13955 * common/print-utils.h: Rename include guard.
13956 * common/preprocessor.h: Rename include guard.
13957 * common/pathstuff.h: Rename include guard.
13958 * common/observable.h: Rename include guard.
13959 * common/netstuff.h: Rename include guard.
13960 * common/job-control.h: Rename include guard.
13961 * common/host-defs.h: Rename include guard.
13962 * common/gdb_wait.h: Rename include guard.
13963 * common/gdb_vecs.h: Rename include guard.
13964 * common/gdb_unlinker.h: Rename include guard.
13965 * common/gdb_unique_ptr.h: Rename include guard.
13966 * common/gdb_tilde_expand.h: Rename include guard.
13967 * common/gdb_sys_time.h: Rename include guard.
13968 * common/gdb_string_view.h: Rename include guard.
13969 * common/gdb_splay_tree.h: Rename include guard.
13970 * common/gdb_setjmp.h: Rename include guard.
13971 * common/gdb_ref_ptr.h: Rename include guard.
13972 * common/gdb_optional.h: Rename include guard.
13973 * common/gdb_locale.h: Rename include guard.
13974 * common/gdb_assert.h: Rename include guard.
13975 * common/filtered-iterator.h: Rename include guard.
13976 * common/filestuff.h: Rename include guard.
13977 * common/fileio.h: Rename include guard.
13978 * common/environ.h: Rename include guard.
13979 * common/common-utils.h: Rename include guard.
13980 * common/common-types.h: Rename include guard.
13981 * common/common-regcache.h: Rename include guard.
13982 * common/common-inferior.h: Rename include guard.
13983 * common/common-gdbthread.h: Rename include guard.
13984 * common/common-exceptions.h: Rename include guard.
13985 * common/common-defs.h: Rename include guard.
13986 * common/common-debug.h: Rename include guard.
13987 * common/cleanups.h: Rename include guard.
13988 * common/buffer.h: Rename include guard.
13989 * common/btrace-common.h: Rename include guard.
13990 * common/break-common.h: Rename include guard.
13991 * cli/cli-utils.h: Rename include guard.
13992 * cli/cli-style.h: Rename include guard.
13993 * cli/cli-setshow.h: Rename include guard.
13994 * cli/cli-script.h: Rename include guard.
13995 * cli/cli-interp.h: Rename include guard.
13996 * cli/cli-decode.h: Rename include guard.
13997 * cli/cli-cmds.h: Rename include guard.
13998 * charset-list.h: Add include guard.
13999 * buildsym-legacy.h: Rename include guard.
14000 * bfin-tdep.h: Add include guard.
14001 * ax.h: Rename include guard.
14002 * arm-linux-tdep.h: Add include guard.
14003 * arm-fbsd-tdep.h: Add include guard.
14004 * arch/xtensa.h: Rename include guard.
14005 * arch/tic6x.h: Add include guard.
14006 * arch/i386.h: Add include guard.
14007 * arch/arm.h: Rename include guard.
14008 * arch/arm-linux.h: Rename include guard.
14009 * arch/arm-get-next-pcs.h: Rename include guard.
14010 * arch/amd64.h: Add include guard.
14011 * arch/aarch64-insn.h: Rename include guard.
14012 * arch-utils.h: Rename include guard.
14013 * annotate.h: Add include guard.
14014 * amd64-darwin-tdep.h: Rename include guard.
14015 * aarch64-linux-tdep.h: Add include guard.
14016 * aarch64-fbsd-tdep.h: Add include guard.
14017 * aarch32-linux-nat.h: Add include guard.
14019 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14021 * macrotab.c (macro_define_internal): New function that
14022 factorizes macro_define_object_internal and macro_define_function
14024 (macro_define_object_internal): Use macro_define_internal.
14025 (macro_define_function): Likewise.
14027 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14029 * macrocmd.c (extract_identifier): Return
14030 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14033 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14035 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14037 2019-02-05 Tom Tromey <tom@tromey.com>
14039 * target.c (target_stack::unpush): Move assertion earlier.
14041 2019-01-30 Tom Tromey <tom@tromey.com>
14044 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14045 (gdbpy_parse_and_eval): Likewise.
14046 * python/python-internal.h (gdbpy_allow_threads): New class.
14048 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14050 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14051 (aarch64_fbsd_fpregmap): Move earlier.
14052 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14053 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14054 instead of individual calls to trad_frame_set_reg_addr.
14055 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14057 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14058 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14059 instead of individual calls to trad_frame_set_reg_addr.
14061 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14063 * CONTRIBUTE: Replace contribution list with wiki link.
14065 2019-01-25 Tom Tromey <tom@tromey.com>
14067 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14069 2019-01-25 Tom Tromey <tom@tromey.com>
14071 * xtensa-linux-nat.c: Fix common/ includes.
14072 * xml-support.h: Fix common/ includes.
14073 * xml-support.c: Fix common/ includes.
14074 * x86-linux-nat.c: Fix common/ includes.
14075 * windows-nat.c: Fix common/ includes.
14076 * varobj.h: Fix common/ includes.
14077 * varobj.c: Fix common/ includes.
14078 * value.c: Fix common/ includes.
14079 * valops.c: Fix common/ includes.
14080 * utils.c: Fix common/ includes.
14081 * unittests/xml-utils-selftests.c: Fix common/ includes.
14082 * unittests/utils-selftests.c: Fix common/ includes.
14083 * unittests/unpack-selftests.c: Fix common/ includes.
14084 * unittests/tracepoint-selftests.c: Fix common/ includes.
14085 * unittests/style-selftests.c: Fix common/ includes.
14086 * unittests/string_view-selftests.c: Fix common/ includes.
14087 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14088 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14089 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14090 * unittests/rsp-low-selftests.c: Fix common/ includes.
14091 * unittests/parse-connection-spec-selftests.c: Fix common/
14093 * unittests/optional-selftests.c: Fix common/ includes.
14094 * unittests/offset-type-selftests.c: Fix common/ includes.
14095 * unittests/observable-selftests.c: Fix common/ includes.
14096 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14097 * unittests/memrange-selftests.c: Fix common/ includes.
14098 * unittests/memory-map-selftests.c: Fix common/ includes.
14099 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14100 * unittests/function-view-selftests.c: Fix common/ includes.
14101 * unittests/environ-selftests.c: Fix common/ includes.
14102 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14103 * unittests/common-utils-selftests.c: Fix common/ includes.
14104 * unittests/cli-utils-selftests.c: Fix common/ includes.
14105 * unittests/array-view-selftests.c: Fix common/ includes.
14106 * ui-file.c: Fix common/ includes.
14107 * tui/tui-io.c: Fix common/ includes.
14108 * tracepoint.h: Fix common/ includes.
14109 * tracepoint.c: Fix common/ includes.
14110 * tracefile-tfile.c: Fix common/ includes.
14111 * top.h: Fix common/ includes.
14112 * top.c: Fix common/ includes.
14113 * thread.c: Fix common/ includes.
14114 * target/waitstatus.h: Fix common/ includes.
14115 * target/waitstatus.c: Fix common/ includes.
14116 * target.h: Fix common/ includes.
14117 * target.c: Fix common/ includes.
14118 * target-memory.c: Fix common/ includes.
14119 * target-descriptions.c: Fix common/ includes.
14120 * symtab.h: Fix common/ includes.
14121 * symfile.c: Fix common/ includes.
14122 * stap-probe.c: Fix common/ includes.
14123 * spu-linux-nat.c: Fix common/ includes.
14124 * sparc-nat.c: Fix common/ includes.
14125 * source.c: Fix common/ includes.
14126 * solib.c: Fix common/ includes.
14127 * solib-target.c: Fix common/ includes.
14128 * ser-unix.c: Fix common/ includes.
14129 * ser-tcp.c: Fix common/ includes.
14130 * ser-pipe.c: Fix common/ includes.
14131 * ser-base.c: Fix common/ includes.
14132 * selftest-arch.c: Fix common/ includes.
14133 * s12z-tdep.c: Fix common/ includes.
14134 * rust-exp.y: Fix common/ includes.
14135 * rs6000-aix-tdep.c: Fix common/ includes.
14136 * riscv-tdep.c: Fix common/ includes.
14137 * remote.c: Fix common/ includes.
14138 * remote-notif.h: Fix common/ includes.
14139 * remote-fileio.h: Fix common/ includes.
14140 * remote-fileio.c: Fix common/ includes.
14141 * regcache.h: Fix common/ includes.
14142 * regcache.c: Fix common/ includes.
14143 * record-btrace.c: Fix common/ includes.
14144 * python/python.c: Fix common/ includes.
14145 * python/py-type.c: Fix common/ includes.
14146 * python/py-inferior.c: Fix common/ includes.
14147 * progspace.h: Fix common/ includes.
14148 * producer.c: Fix common/ includes.
14149 * procfs.c: Fix common/ includes.
14150 * proc-api.c: Fix common/ includes.
14151 * printcmd.c: Fix common/ includes.
14152 * ppc-linux-nat.c: Fix common/ includes.
14153 * parser-defs.h: Fix common/ includes.
14154 * osdata.c: Fix common/ includes.
14155 * obsd-nat.c: Fix common/ includes.
14156 * nat/x86-linux.c: Fix common/ includes.
14157 * nat/x86-linux-dregs.c: Fix common/ includes.
14158 * nat/x86-dregs.h: Fix common/ includes.
14159 * nat/x86-dregs.c: Fix common/ includes.
14160 * nat/ppc-linux.c: Fix common/ includes.
14161 * nat/mips-linux-watch.h: Fix common/ includes.
14162 * nat/mips-linux-watch.c: Fix common/ includes.
14163 * nat/linux-waitpid.c: Fix common/ includes.
14164 * nat/linux-ptrace.h: Fix common/ includes.
14165 * nat/linux-ptrace.c: Fix common/ includes.
14166 * nat/linux-procfs.c: Fix common/ includes.
14167 * nat/linux-personality.c: Fix common/ includes.
14168 * nat/linux-osdata.c: Fix common/ includes.
14169 * nat/linux-namespaces.c: Fix common/ includes.
14170 * nat/linux-btrace.h: Fix common/ includes.
14171 * nat/linux-btrace.c: Fix common/ includes.
14172 * nat/fork-inferior.c: Fix common/ includes.
14173 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14174 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14175 * nat/aarch64-linux.c: Fix common/ includes.
14176 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14177 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14178 * namespace.h: Fix common/ includes.
14179 * mips-linux-tdep.c: Fix common/ includes.
14180 * minsyms.c: Fix common/ includes.
14181 * mi/mi-parse.h: Fix common/ includes.
14182 * mi/mi-main.c: Fix common/ includes.
14183 * mi/mi-cmd-env.c: Fix common/ includes.
14184 * memrange.h: Fix common/ includes.
14185 * memattr.c: Fix common/ includes.
14186 * maint.h: Fix common/ includes.
14187 * maint.c: Fix common/ includes.
14188 * main.c: Fix common/ includes.
14189 * machoread.c: Fix common/ includes.
14190 * location.c: Fix common/ includes.
14191 * linux-thread-db.c: Fix common/ includes.
14192 * linux-nat.c: Fix common/ includes.
14193 * linux-fork.c: Fix common/ includes.
14194 * inline-frame.c: Fix common/ includes.
14195 * infrun.c: Fix common/ includes.
14196 * inflow.c: Fix common/ includes.
14197 * inferior.h: Fix common/ includes.
14198 * inferior.c: Fix common/ includes.
14199 * infcmd.c: Fix common/ includes.
14200 * inf-ptrace.c: Fix common/ includes.
14201 * inf-child.c: Fix common/ includes.
14202 * ia64-linux-nat.c: Fix common/ includes.
14203 * i387-tdep.c: Fix common/ includes.
14204 * i386-tdep.c: Fix common/ includes.
14205 * i386-linux-tdep.c: Fix common/ includes.
14206 * i386-linux-nat.c: Fix common/ includes.
14207 * i386-go32-tdep.c: Fix common/ includes.
14208 * i386-fbsd-tdep.c: Fix common/ includes.
14209 * i386-fbsd-nat.c: Fix common/ includes.
14210 * guile/scm-type.c: Fix common/ includes.
14211 * guile/guile.c: Fix common/ includes.
14212 * go32-nat.c: Fix common/ includes.
14213 * gnu-nat.c: Fix common/ includes.
14214 * gdbthread.h: Fix common/ includes.
14215 * gdbarch-selftests.c: Fix common/ includes.
14216 * gdb_usleep.c: Fix common/ includes.
14217 * gdb_select.h: Fix common/ includes.
14218 * gdb_bfd.c: Fix common/ includes.
14219 * gcore.c: Fix common/ includes.
14220 * fork-child.c: Fix common/ includes.
14221 * findvar.c: Fix common/ includes.
14222 * fbsd-nat.c: Fix common/ includes.
14223 * event-top.c: Fix common/ includes.
14224 * event-loop.c: Fix common/ includes.
14225 * dwarf2read.c: Fix common/ includes.
14226 * dwarf2loc.c: Fix common/ includes.
14227 * dwarf2-frame.c: Fix common/ includes.
14228 * dwarf-index-cache.c: Fix common/ includes.
14229 * dtrace-probe.c: Fix common/ includes.
14230 * disasm-selftests.c: Fix common/ includes.
14231 * defs.h: Fix common/ includes.
14232 * csky-tdep.c: Fix common/ includes.
14233 * cp-valprint.c: Fix common/ includes.
14234 * cp-support.h: Fix common/ includes.
14235 * cp-support.c: Fix common/ includes.
14236 * corelow.c: Fix common/ includes.
14237 * completer.h: Fix common/ includes.
14238 * completer.c: Fix common/ includes.
14239 * compile/compile.c: Fix common/ includes.
14240 * compile/compile-loc2c.c: Fix common/ includes.
14241 * compile/compile-cplus-types.c: Fix common/ includes.
14242 * compile/compile-cplus-symbols.c: Fix common/ includes.
14243 * command.h: Fix common/ includes.
14244 * cli/cli-dump.c: Fix common/ includes.
14245 * cli/cli-cmds.c: Fix common/ includes.
14246 * charset.c: Fix common/ includes.
14247 * build-id.c: Fix common/ includes.
14248 * btrace.h: Fix common/ includes.
14249 * btrace.c: Fix common/ includes.
14250 * breakpoint.h: Fix common/ includes.
14251 * breakpoint.c: Fix common/ includes.
14253 (enum agent_op): Fix common/ includes.
14254 * ax-general.c (struct aop_map): Fix common/ includes.
14255 * ax-gdb.c: Fix common/ includes.
14256 * auxv.c: Fix common/ includes.
14257 * auto-load.c: Fix common/ includes.
14258 * arm-tdep.c: Fix common/ includes.
14259 * arch/riscv.c: Fix common/ includes.
14260 * arch/ppc-linux-common.c: Fix common/ includes.
14261 * arch/i386.c: Fix common/ includes.
14262 * arch/arm.c: Fix common/ includes.
14263 * arch/arm-linux.c: Fix common/ includes.
14264 * arch/arm-get-next-pcs.c: Fix common/ includes.
14265 * arch/amd64.c: Fix common/ includes.
14266 * arch/aarch64.c: Fix common/ includes.
14267 * arch/aarch64-insn.c: Fix common/ includes.
14268 * arch-utils.c: Fix common/ includes.
14269 * amd64-windows-tdep.c: Fix common/ includes.
14270 * amd64-tdep.c: Fix common/ includes.
14271 * amd64-sol2-tdep.c: Fix common/ includes.
14272 * amd64-obsd-tdep.c: Fix common/ includes.
14273 * amd64-nbsd-tdep.c: Fix common/ includes.
14274 * amd64-linux-tdep.c: Fix common/ includes.
14275 * amd64-linux-nat.c: Fix common/ includes.
14276 * amd64-fbsd-tdep.c: Fix common/ includes.
14277 * amd64-fbsd-nat.c: Fix common/ includes.
14278 * amd64-dicos-tdep.c: Fix common/ includes.
14279 * amd64-darwin-tdep.c: Fix common/ includes.
14280 * agent.c: Fix common/ includes.
14281 * ada-lang.h: Fix common/ includes.
14282 * ada-lang.c: Fix common/ includes.
14283 * aarch64-tdep.c: Fix common/ includes.
14285 2019-01-25 Tom Tromey <tom@tromey.com>
14287 * common/create-version.sh: Use common/version.h.
14289 2019-01-24 Pedro Alves <palves@redhat.com>
14291 * infrun.c (signal_stop, signal_print, signal_program)
14292 (signal_catch, signal_pass): Now arrays instead of pointers.
14293 (update_signals_program_target, do_target_resume)
14294 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14295 * linux-nat.c (linux_nat_target::pass_signals)
14296 (linux_nat_target::create_inferior, linux_nat_target::attach):
14298 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14299 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14300 * procfs.c (procfs_target::pass_signals): Adjust.
14301 * record-full.c (record_full_target::resume): Adjust.
14302 * remote.c (remote_target::pass_signals)
14303 (remote_target::program_signals): Adjust.
14304 * target-debug.h (target_debug_print_signals): Now takes a
14305 gdb::array_view as parameter. Adjust.
14306 * target.h (target_ops) <pass_signals, program_signals>: Replace
14307 pointer and length parameters with gdb::array_view.
14308 (target_pass_signals, target_program_signals): Likewise.
14309 * target-delegates.c: Regenerate.
14311 2019-01-24 Pedro Alves <palves@redhat.com>
14313 * common/forward-scope-exit.h
14314 (forward_scope_exit::forward_scope_exit): Pass arguments to
14315 m_bind_function directly, instead of creating a std::bind and
14318 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14320 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14321 for static members.
14322 (pass_in_v_vfp_candidate): Likewise.
14324 2019-01-23 Tom Tromey <tom@tromey.com>
14325 Pedro Alves <palves@redhat.com>
14327 * regcache.c (class regcache_invalidator): Remove.
14328 (regcache::raw_write): Use make_scope_exit.
14330 2019-01-23 Tom Tromey <tom@tromey.com>
14332 * ui-out.h (class ui_out_emit_type): Update comment.
14334 2019-01-23 Tom Tromey <tom@tromey.com>
14336 * infrun.c (fetch_inferior_event): Update comment.
14338 2019-01-23 Tom Tromey <tom@tromey.com>
14339 Pedro Alves <palves@redhat.com>
14341 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14343 (fetch_inferior_event): Use SCOPE_EXIT.
14346 2019-01-23 Tom Tromey <tom@tromey.com>
14347 Pedro Alves <palves@redhat.com>
14349 * infrun.c (disable_thread_events): Delete.
14350 (stop_all_threads): Use SCOPE_EXIT.
14352 2019-01-23 Tom Tromey <tom@tromey.com>
14353 Pedro Alves <palves@redhat.com>
14355 * symfile.c: Include forward-scope-exit.h.
14356 (clear_symtab_users_cleanup): Replace forward declaration with
14357 a FORWARD_SCOPE_EXIT.
14358 (syms_from_objfile_1): Use the forward_scope_exit and
14359 gdb::optional instead of cleanup_function.
14360 (reread_symbols): Use the forward_scope_exit instead of
14362 (clear_symtab_users_cleanup): Remove function.
14364 2019-01-23 Tom Tromey <tom@tromey.com>
14365 Pedro Alves <palves@redhat.com>
14367 * linux-nat.c: Include scope-exit.h.
14368 (cleanup_target_stop): Remove.
14369 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14372 2019-01-23 Tom Tromey <tom@tromey.com>
14373 Pedro Alves <palves@redhat.com>
14375 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14376 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14378 2019-01-23 Tom Tromey <tom@tromey.com>
14379 Andrew Burgess <andrew.burgess@embecosm.com>
14380 Pedro Alves <palves@redhat.com>
14382 * infrun.c (fetch_inferior_event): Use scope_exit.
14383 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14384 * top.c (execute_command): Use scope_exit.
14385 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14386 * utils.c (do_bpstat_clear_actions_cleanup)
14387 (make_bpstat_clear_actions_cleanup): Remove.
14389 2019-01-23 Tom Tromey <tom@tromey.com>
14390 Pedro Alves <palves@redhat.com>
14392 * infrun.c: Include "common/scope-exit.h"
14393 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14394 (wait_for_inferior): Use SCOPE_EXIT.
14395 (fetch_inferior_event): Use scope_exit.
14397 2019-01-23 Tom Tromey <tom@tromey.com>
14398 Pedro Alves <palves@redhat.com>
14400 * breakpoint.c (create_breakpoint): Remove cleanup.
14402 2019-01-23 Tom Tromey <tom@tromey.com>
14403 Andrew Burgess <andrew.burgess@embecosm.com>
14404 Pedro Alves <palves@redhat.com>
14406 2019-01-23 Pedro Alves <palves@redhat.com>
14408 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14410 2019-01-23 Pedro Alves <palves@redhat.com>
14411 Andrew Burgess <andrew.burgess@embecosm.com>
14413 * gdbthread.h: Include "common/forward-scope-exit.h".
14414 (scoped_finish_thread_state): Redefine custom class in terms of
14415 forward_scope_exit.
14417 2019-01-23 Pedro Alves <palves@redhat.com>
14418 Andrew Burgess <andrew.burgess@embecosm.com>
14420 * common/forward-scope-exit.h: New file.
14422 2019-01-23 Pedro Alves <palves@redhat.com>
14423 Andrew Burgess <andrew.burgess@embecosm.com>
14424 Tom Tromey <tom@tromey.com>
14426 * common/scope-exit.h: New file.
14428 2019-01-23 Pedro Alves <palves@redhat.com>
14430 * common/preprocessor.h (ESC): Rename to ...
14431 (ESC_PARENS): ... this.
14432 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14433 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14435 2019-01-23 Tom Tromey <tom@tromey.com>
14437 * language.h (class scoped_switch_to_sym_language_if_auto):
14438 Initialize m_lang in both cases.
14440 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14442 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14445 2019-01-22 Tom Tromey <tom@tromey.com>
14447 * corelow.c: Do not include sys/file.h.
14449 2019-01-22 Tom Tromey <tom@tromey.com>
14451 * tui/tui-wingeneral.h: Include gdb_curses.h.
14453 2019-01-22 Tom Tromey <tom@tromey.com>
14455 * source-cache.h (class source_cache) <get_source_lines,
14456 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14458 2019-01-22 Tom Tromey <tom@tromey.com>
14460 * remote-fileio.h (struct remote_target): Declare.
14462 2019-01-22 Tom Tromey <tom@tromey.com>
14464 * python/py-arch.c: Do not include py-ref.h.
14465 * python/py-bpevent.c: Do not include py-ref.h.
14466 * python/py-cmd.c: Do not include py-ref.h.
14467 * python/py-continueevent.c: Do not include py-ref.h.
14468 * python/py-event.h: Do not include py-ref.h.
14469 * python/py-evtregistry.c: Do not include py-ref.h.
14470 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14471 * python/py-frame.c: Do not include py-ref.h.
14472 * python/py-framefilter.c: Do not include py-ref.h.
14473 * python/py-function.c: Do not include py-ref.h.
14474 * python/py-infevents.c: Do not include py-ref.h.
14475 * python/py-linetable.c: Do not include py-ref.h.
14476 * python/py-objfile.c: Do not include py-ref.h.
14477 * python/py-param.c: Do not include py-ref.h.
14478 * python/py-prettyprint.c: Do not include py-ref.h.
14479 * python/py-progspace.c: Do not include py-ref.h.
14480 * python/py-symbol.c: Do not include py-ref.h.
14481 * python/py-symtab.c: Do not include py-ref.h.
14482 * python/py-type.c: Do not include py-ref.h.
14483 * python/py-unwind.c: Do not include py-ref.h.
14484 * python/py-utils.c: Do not include py-ref.h.
14485 * python/py-value.c: Do not include py-ref.h.
14486 * python/py-varobj.c: Do not include py-ref.h.
14487 * python/py-xmethods.c: Do not include py-ref.h.
14488 * python/python.c: Do not include py-ref.h.
14489 * varobj.c: Do not include py-ref.h.
14491 2019-01-22 Tom Tromey <tom@tromey.com>
14493 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14494 keyword for bcache.
14496 2019-01-22 Tom Tromey <tom@tromey.com>
14498 * compile/compile-cplus-types.c: Remove a comment by #include.
14500 2019-01-22 Tom Tromey <tom@tromey.com>
14502 * compile/gcc-c-plugin.h: Include compile-internal.h.
14504 2019-01-22 Tom Tromey <tom@tromey.com>
14506 * stabsread.c (EXTERN): Do not define.
14507 (symnum, next_symbol_text_func, processing_gcc_compilation)
14508 (within_function, global_sym_chain, global_stabs)
14509 (previous_stab_code, this_object_header_files)
14510 (n_this_object_header_files)
14511 (n_allocated_this_object_header_files): Define.
14512 * stabsread.h (EXTERN): Never define. Use "extern".
14514 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14516 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14519 2019-01-21 Tom Tromey <tom@tromey.com>
14521 * ui-out.c: Fix includes.
14522 * tui/tui-source.c: Fix includes.
14523 * target.c: Fix includes.
14524 * remote.c: Fix includes.
14525 * regcache.c: Fix includes.
14526 * python/py-block.c: Fix includes.
14527 * printcmd.c: Fix includes.
14528 * or1k-tdep.c: Fix includes.
14529 * mi/mi-main.c: Fix includes.
14530 * m32r-tdep.c: Fix includes.
14531 * csky-tdep.c: Fix includes.
14532 * compile/compile-cplus-types.c: Fix includes.
14533 * cli/cli-interp.c: Fix includes.
14535 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14537 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14540 2019-01-16 Tom Tromey <tom@tromey.com>
14542 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14544 (struct objfile) <msymbols_range>: Move from top level.
14545 <msymbols>: New method.
14546 (class objfile_msymbols): Remove.
14547 * symtab.c (default_collect_symbol_completion_matches_break_on):
14549 * symmisc.c (dump_msymbols): Update.
14550 * stabsread.c (scan_file_globals): Update.
14551 * objc-lang.c (info_selectors_command, info_classes_command)
14552 (find_methods): Update.
14553 * minsyms.c (find_solib_trampoline_target): Update.
14554 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14555 * coffread.c (coff_symfile_read): Update.
14556 * ada-lang.c (ada_lookup_simple_minsym)
14557 (ada_collect_symbol_completion_matches): Update.
14559 2019-01-16 Tom Tromey <tom@tromey.com>
14561 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14562 type. Remove no-argument constructor.
14563 <iterator::operator++>: Simplify.
14565 <end>: Use minimal_symbol_count.
14567 2019-01-16 Tom Tromey <tom@tromey.com>
14569 * objfiles.h (struct objfile) <psymtabs>: New method.
14570 (class objfile_psymtabs): Remove.
14571 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14573 <range>: New method.
14574 (require_partial_symbols): Change return type.
14575 * psymtab.c (require_partial_symbols)
14576 (psym_expand_symtabs_matching): Update.
14577 * mdebugread.c (parse_partial_symbols): Update.
14578 * dbxread.c (dbx_end_psymtab): Update.
14580 2019-01-15 Tom Tromey <tom@tromey.com>
14582 * symtab.c (lookup_objfile_from_block)
14583 (lookup_symbol_in_objfile_symtabs)
14584 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14585 (find_line_symtab, info_sources_command)
14586 (default_collect_symbol_completion_matches_break_on)
14587 (make_source_files_completion_list): Update.
14588 * symmisc.c (print_objfile_statistics, dump_objfile)
14589 (maintenance_print_symbols, maintenance_info_symtabs)
14590 (maintenance_check_symtabs, maintenance_info_line_tables):
14592 * source.c (select_source_symtab)
14593 (forget_cached_source_info_for_objfile): Update.
14594 * objfiles.h (class objfile_compunits): Remove.
14595 (struct objfile) <compunits_range>: New typedef.
14596 (compunits): New method.
14597 * objfiles.c (objfile_relocate1): Update.
14598 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14599 * maint.c (count_symtabs_and_blocks): Update.
14600 * linespec.c (iterate_over_all_matching_symtabs): Update.
14601 * cp-support.c (add_symbol_overload_list_qualified): Update.
14602 * coffread.c (coff_symtab_read): Update.
14603 * ada-lang.c (add_nonlocal_symbols)
14604 (ada_collect_symbol_completion_matches)
14605 (ada_add_global_exceptions): Update.
14607 2019-01-15 Tom Tromey <tom@tromey.com>
14609 * progspace.h (program_space) <objfiles_safe_range>: New
14611 <objfiles_safe>: New method.
14612 * objfiles.h (class all_objfiles_safe): Remove.
14613 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14614 * jit.c (jit_inferior_exit_hook): Update.
14616 2019-01-17 Tom Tromey <tom@tromey.com>
14618 * progspace.h (program_space) <objfiles_range>: New typedef.
14619 <objfiles>: New method.
14620 <objfiles_head>: Rename from objfiles.
14621 (object_files): Update.
14622 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14623 * guile/scm-pretty-print.c
14624 (ppscm_find_pretty_printer_from_objfiles): Update.
14625 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14626 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14628 * python/py-progspace.c (pspy_get_objfiles): Update.
14629 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14631 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14632 (objfpy_lookup_objfile_by_build_id): Update.
14633 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14634 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14636 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14637 (expand_symtab_containing_pc, lookup_objfile_from_block)
14638 (lookup_static_symbol, basic_lookup_transparent_type)
14639 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14640 (find_line_symtab, info_sources_command)
14641 (default_collect_symbol_completion_matches_break_on)
14642 (make_source_files_completion_list, find_main_name): Update.
14643 * symmisc.c (print_symbol_bcache_statistics)
14644 (print_objfile_statistics, maintenance_print_symbols)
14645 (maintenance_print_msymbols, maintenance_print_objfiles)
14646 (maintenance_info_symtabs, maintenance_check_symtabs)
14647 (maintenance_expand_symtabs, maintenance_info_line_tables):
14649 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14650 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14651 (map_overlay_command, unmap_overlay_command)
14652 (simple_overlay_update, expand_symtabs_matching)
14653 (map_symbol_filenames): Update.
14654 * symfile-debug.c (set_debug_symfile): Update.
14655 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14657 * source.c (select_source_symtab, forget_cached_source_info):
14659 * solib.c (solib_read_symbols): Update.
14660 * solib-spu.c (append_ocl_sos): Update.
14661 * psymtab.c (maintenance_print_psymbols)
14662 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14663 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14664 * printcmd.c (info_symbol_command): Update.
14665 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14667 * objfiles.h (class all_objfiles): Remove.
14668 * objfiles.c (have_partial_symbols, have_full_symbols)
14669 (have_minimal_symbols, qsort_cmp, update_section_map)
14670 (shared_objfile_contains_address_p)
14671 (default_iterate_over_objfiles_in_search_order): Update.
14672 * objc-lang.c (info_selectors_command, info_classes_command)
14673 (find_methods): Update.
14674 * minsyms.c (find_solib_trampoline_target): Update.
14675 * maint.c (maintenance_info_sections)
14676 (maintenance_translate_address, count_symtabs_and_blocks):
14678 * main.c (captured_main_1): Update.
14679 * linux-thread-db.c (try_thread_db_load_from_pdir)
14680 (has_libpthread): Update.
14681 * linespec.c (iterate_over_all_matching_symtabs)
14682 (search_minsyms_for_name): Update.
14683 * jit.c (jit_find_objf_with_entry_addr): Update.
14684 * hppa-tdep.c (find_unwind_entry)
14685 (hppa_lookup_stub_minimal_symbol): Update.
14686 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14688 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14689 (elf_gnu_ifunc_resolve_by_got): Update.
14690 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14691 * dwarf-index-write.c (save_gdb_index_command): Update.
14692 * cp-support.c (add_symbol_overload_list_qualified): Update.
14693 * breakpoint.c (create_overlay_event_breakpoint)
14694 (create_longjmp_master_breakpoint)
14695 (create_std_terminate_master_breakpoint)
14696 (create_exception_master_breakpoint): Update.
14697 * blockframe.c (find_pc_partial_function): Update.
14698 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14699 (ada_collect_symbol_completion_matches)
14700 (ada_add_global_exceptions): Update.
14702 2019-01-17 Tom Tromey <tom@tromey.com>
14704 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14706 (solib_target_parse_libraries): Change return type.
14707 (library_list_start_segment, library_list_start_section)
14708 (library_list_end_library, library_list_start_library); Update.
14709 (solib_target_free_library_list): Remove.
14710 (solib_target_parse_libraries): Remove cleanup. Change return
14712 (solib_target_current_sos): Update.
14714 2019-01-17 Tom Tromey <tromey@bapiya>
14716 * valprint.c: Replace "the the" with "the".
14717 * symtab.c: Replace "the the" with "the".
14718 * solib.c: Replace "the the" with "the".
14719 * solib-dsbt.c: Replace "the the" with "the".
14720 * linespec.c: Replace "the the" with "the".
14721 * dwarf2loc.h: Replace "the the" with "the".
14722 * amd64-windows-tdep.c: Replace "the the" with "the".
14723 * aarch64-tdep.c: Replace "the the" with "the".
14725 2019-01-16 Keith Seitz <keiths@redhat.com>
14728 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14729 <builder>: Rename to ..
14730 <m_builder>: ... this and make private.
14731 (dwarf2_cu::get_builder): New method. Change all users of
14732 `builder' to use this method.
14733 (dwarf2_start_symtab): Move to ...
14734 (dwarf2_cu::start_symtab): ... here. Update all callers
14735 (setup_type_unit_groups): Move to ...
14736 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14738 (dwarf2_cu::reset_builder): New method.
14739 (process_full_compunit, process_full_type_unit): Use
14740 dwarf2_cu::reset_builder.
14741 (follow_die_offset): Record the ancestor CU if it is different
14742 from the followed DIE's CU.
14743 (follow_die_sig_1): Likewise.
14745 2019-01-15 Tom Tromey <tom@tromey.com>
14747 * remote.c (class remote_state) <buf>: Now a char_vector.
14748 <buf_size>: Remove.
14749 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14751 (remote_target::getpkt_or_notif_sane_1)
14752 (remote_target::getpkt_sane)
14753 (remote_target::getpkt_or_notif_sane): Likewise.
14754 (class remote_target) <putpkt>: New overload.
14755 (remote_target::read_frame): Change type of "buf_p". Remove
14756 sizeof_p parameter.
14757 (packet_ok): New overload.
14758 (packet_check_result): New overload.
14761 2019-01-14 Tom Tromey <tom@tromey.com>
14763 * remote-notif.c (handle_notification, remote_notif_ack)
14764 (remote_notif_parse): Make "buf" const.
14765 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14767 (remote_notif_parse, remote_notif_ack, handle_notification):
14769 * remote.c (remote_notif_stop_parse): Make "buf" const.
14770 (remote_target::remote_parse_stop_reply): Make "buf" const.
14771 (remote_notif_stop_ack): Make "buf" const.
14773 2019-01-14 Tom Tromey <tom@tromey.com>
14775 * remote.c (remote_console_output): Make parameter const.
14777 2019-01-14 Tom Tromey <tom@tromey.com>
14779 * target-debug.h (target_debug_print_signals): Constify.
14780 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14781 * procfs.c (procfs_target::pass_signals): Update.
14782 * linux-nat.c (linux_nat_target::pass_signals): Update.
14783 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14784 * target-delegates.c: Rebuild.
14785 * remote.c (remote_target::program_signals): Update.
14786 (remote_target::pass_signals): Update.
14787 * target.c (target_pass_signals): Constify argument.
14788 (target_program_signals): Likewise.
14789 * target.h (struct target_ops) <pass_signals, program_signals>:
14791 (target_pass_signals, target_program_signals): Constify argument.
14793 2019-01-14 Tom Tromey <tom@tromey.com>
14796 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14798 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14800 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14802 * rs6000-tdep.c: Include reggroups.h.
14803 (IS_V_ALIAS_PSEUDOREG): Define.
14804 (rs6000_register_name): Return names for the "vX" aliases.
14805 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14806 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14807 aliases. Call default_register_reggroup_p for all other
14809 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14811 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14812 Handle "vX" aliases.
14813 (v_alias_pseudo_register_collect): New function.
14814 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14815 (rs6000_gdbarch_init): Initialize "vX" aliases as
14816 pseudo-registers. Restore registration of
14817 rs6000_pseudo_register_reggroup_p with
14818 set_tdesc_pseudo_register_reggroup_p.
14820 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14822 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14823 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14824 set_gdbarch_num_pseudo_regs.
14826 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14828 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14829 Remove arg prefixname, add do_set and do_show.
14830 Add member functions set_list and show_list.
14831 * cli/cli-style.c (class cli_style_option): Update accordingly.
14832 (style_set_list): Move to file scope.
14833 (style_show_list): Likewise.
14834 (set_style): Call help_list.
14835 (show_style): Call cmd_show_list.
14836 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14837 Update to use the new macro.
14839 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14841 * ada-lang.c (_initialize_ada_language): Expand the help text
14842 for the "catch exception" command.
14844 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14846 * symtab.c (matching_obj_sections): Initialize obj,
14847 declare it closer to its usage.
14849 2019-01-10 Tom Tromey <tom@tromey.com>
14851 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14852 (basic_inf_threads_range): Remove.
14853 (inf_threads_range, inf_non_exited_threads_range)
14854 (safe_inf_threads_range): Use next_adapter.
14856 2019-01-10 Keith Seitz <keiths@redhat.com>
14860 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14861 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14863 2019-01-10 Keith Seitz <keiths@redhat.com>
14867 * dictionary.c (pending_to_vector): Remove.
14868 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14869 Remove _1 suffix, replacing functions of the same name. Update
14871 (dict_create_hashed, dict_create_hashed_expandable)
14872 (dict_create_linear, dict_create_linear_expandable, dict_free)
14873 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14874 Make functions static.
14876 2019-01-10 Keith Seitz <keiths@redhat.com>
14880 * dictionary.h (struct dictionary): Replace declaration with
14882 (dict_create_hashed, dict_create_hashed_expandable)
14883 (dict_create_linear, dict_create_linear_expandable)
14884 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14885 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14886 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14887 taking multidictionary argument.
14888 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14889 * block.h (struct block) <dict>: Change to multidictionary
14890 and rename `multidict'.
14891 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14892 symmisc.c: Update all dictionary references to multidictionary.
14894 2019-01-10 Keith Seitz <keiths@redhat.com>
14898 * dictionary.c: Include unordered_map.
14899 (pending_to_vector): New function.
14900 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14901 Rewrite the non-"_1" functions to take vector instead
14903 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14904 "new" _1 versions of the same name.
14905 (multidictionary): Define.
14906 (std::hash<enum language): New definition.
14907 (collate_pending_symbols_by_language, mdict_create_hashed)
14908 (mdict_create_hashed_expandable, mdict_create_linear)
14909 (mdict_create_linear_expandable, mdict_free)
14910 (find_language_dictionary, create_new_language_dictionary)
14911 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14912 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14913 (mdict_size, mdict_empty): New functions.
14914 * dictionary.h (mdict_iterator): Define.
14916 2019-01-10 Pedro Alves <palves@redhat.com>
14918 * breakpoint.c (read_uploaded_action)
14919 (create_tracepoint_from_upload): Adjust to use
14920 gdb::unique_xmalloc_ptr.
14921 * ctf.c (ctf_write_uploaded_tp):
14922 (SET_ARRAY_FIELD): Use emplace_back.
14923 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14924 * tracefile-tfile.c (tfile_write_uploaded_tp):
14925 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14926 gdb::unique_xmalloc_ptr.
14927 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14928 at_string, cond_string, cmd_strings>: Replace char pointers
14929 with gdb::unique_xmalloc_ptr.
14931 2019-01-10 Pedro Alves <palves@redhat.com>
14933 * solib-target.c (library_list_start_library): Don't xstrdup name.
14935 2019-01-10 Pedro Alves <palves@redhat.com>
14937 * mdebugread.c (parse_partial_symbols): Use
14938 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14940 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14942 * linux-fork.c (scoped_switch_fork_info)
14943 <~scoped_switch_fork_info>: Fix incorrect variable name.
14945 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14947 * linux-fork.c (scoped_switch_fork_info)
14948 <scoped_switch_fork_info>: Make explicit.
14949 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14951 2019-01-10 Tom Tromey <tom@tromey.com>
14953 * objfiles.h (objfile::reset_psymtabs): Update.
14954 * objfiles.c (objfile::objfile): Update.
14955 * psymtab.h (psymtab_storage::obstack): Update.
14956 (psymtab_storage::m_obstack): Use gdb::optional.
14957 (class psymtab_storage): Update comment. Remove objfile
14959 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14961 2019-01-10 Tom Tromey <tom@tromey.com>
14963 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14964 <free_psymtabs>: Now private.
14965 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14966 (allocate_psymtab): Use new method.
14968 2019-01-10 Tom Tromey <tom@tromey.com>
14970 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14971 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14972 * mdebugread.c (parse_partial_symbols): Use
14973 allocate_dependencies.
14974 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14975 allocate_dependencies.
14976 (process_psymtab_comp_unit_reader)
14977 (build_type_psymtab_dependencies): Likewise.
14978 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14980 2019-01-10 Tom Tromey <tom@tromey.com>
14982 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14983 PSYMBOL_SET_LANGUAGE.
14984 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14986 2019-01-10 Tom Tromey <tom@tromey.com>
14988 * psymtab.h (psymtab_storage::obstack): New method.
14989 <m_obstack>: Rename from obstack; now private.
14990 * psymtab.c (psymtab_storage): Update.
14991 * dwarf2read.c (create_addrmap_from_index)
14992 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14995 2019-01-10 Tom Tromey <tom@tromey.com>
14997 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14998 * objfiles.h (objfile::reset_psymtabs): New method.
15000 2019-01-10 Tom Tromey <tom@tromey.com>
15002 * symmisc.c (print_symbol_bcache_statistics): Update.
15003 (print_objfile_statistics): Update.
15004 * symfile.c (reread_symbols): Update.
15005 * psymtab.h (class psymtab_storage): New.
15006 * psymtab.c (psymtab_storage): New constructor.
15007 (~psymtab_storage): New destructor.
15008 (require_partial_symbols): Update.
15009 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15010 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15011 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15012 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15013 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15014 (start_psymtab_common, end_psymtab_common)
15015 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15016 (allocate_psymtab): Update.
15017 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15019 (dump_psymtab_addrmap, maintenance_print_psymbols)
15020 (maintenance_check_psymtabs): Update.
15021 (class objfile_psymtabs): Move to objfiles.h.
15022 * psympriv.h (discard_psymtab): Now inline.
15023 (psymtab_discarder::psymtab_discarder): Update.
15024 (psymtab_discarder::~psymtab_discarder): Update.
15025 (ALL_OBJFILE_PSYMTABS): Rewrite.
15026 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15027 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15029 <partial_symtabs>: New field.
15030 (class objfile_psymtabs): Move from psymtab.h. Update.
15031 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15033 (objfile::~objfile): Don't destroy psymbol_cache.
15034 * mdebugread.c (parse_partial_symbols): Update.
15035 * dwarf2read.c (create_addrmap_from_index)
15036 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15037 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15038 (add_partial_subprogram, dwarf2_ranges_read): Update.
15039 * dwarf-index-write.c (write_address_map)
15040 (write_one_signatured_type, recursively_write_psymbols)
15041 (class debug_names, class debug_names, write_psymtabs_to_index):
15044 2019-01-10 Tom Tromey <tom@tromey.com>
15046 * symtab.h (SYMBOL_SET_NAMES): Update.
15047 (symbol_set_names): Update.
15048 (MSYMBOL_SET_NAMES): Update.
15049 * symtab.c (symbol_set_names): Change argument to be an
15050 objfile_per_bfd_storage.
15051 * psymtab.c (add_psymbol_to_bcache): Update.
15052 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15054 2019-01-10 Tom Tromey <tom@tromey.com>
15056 * symtab.c (create_demangled_names_hash): Change argument to be an
15057 objfile_per_bfd_storage.
15058 (symbol_set_names): Update.
15060 2019-01-10 Tom Tromey <tom@tromey.com>
15062 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15064 * psymtab.c (init_psymbol_list): Do nothing if already called.
15065 * psympriv.h (init_psymbol_list): Add comment.
15066 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15068 * dbxread.c (dbx_symfile_read): Unconditionally call
15071 2019-01-10 Tom Tromey <tom@tromey.com>
15073 * xcoffread.c (scan_xcoff_symtab): Update.
15074 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15076 * mdebugread.c (parse_partial_symbols)
15077 (handle_psymbol_enumerators): Update.
15078 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15079 * dbxread.c (read_dbx_symtab): Update.
15080 * psympriv.h (psymbol_placement): New enum.
15081 (add_psymbol_to_list): Update.
15083 2019-01-10 Tom Tromey <tom@tromey.com>
15085 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15086 static_psymbols parameters.
15087 (scan_xcoff_symtab): Update.
15088 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15089 static_psymbols parameters.
15090 * psympriv.h (start_psymtab_common): Update.
15091 * mdebugread.c (parse_partial_symbols): Update.
15092 * dwarf2read.c (create_partial_symtab): Update.
15093 * dbxread.c (read_dbx_symtab): Update.
15094 (start_psymtab): Remove global_psymbols and static_psymbols
15097 2019-01-10 Tom Tromey <tom@tromey.com>
15099 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15100 * psymtab.c (allocate_psymtab): Add comment.
15101 * psympriv.h (allocate_psymtab): Add comment.
15102 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15104 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15106 2019-01-10 Tom Tromey <tom@tromey.com>
15108 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15110 * mipsread.c: Include mdebugread.h.
15111 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15113 * elfread.c: Include mdebugread.h.
15115 2019-01-09 Tom Tromey <tom@tromey.com>
15117 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15118 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15119 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15120 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15121 (psym_lookup_symbol, psym_find_last_source_symtab)
15122 (psym_forget_cached_source_info, psym_print_stats)
15123 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15124 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15125 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15126 (psym_find_compunit_symtab_by_address)
15127 (maintenance_print_psymbols, maintenance_info_psymtabs)
15128 (maintenance_check_psymtabs): Use ranged for.
15129 * psymtab.h (class objfile_psymtabs): New.
15130 (require_partial_symbols): Return objfile_psymtabs.
15131 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15133 2019-01-09 Tom Tromey <tom@tromey.com>
15135 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15136 (find_pc_mapped_section, list_overlays_command)
15137 (map_overlay_command, unmap_overlay_command)
15138 (simple_overlay_update): Use all_objfiles.
15139 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15140 * printcmd.c (info_symbol_command): Use all_objfiles.
15141 * objfiles.h (ALL_OBJSECTIONS): Remove.
15142 * maint.c (maintenance_translate_address): Use all_objfiles.
15143 * gcore.c (gcore_create_callback): Use all_objfiles.
15144 (objfile_find_memory_regions): Likewise.
15146 2019-01-09 Tom Tromey <tom@tromey.com>
15148 * symtab.c (find_line_symtab, info_sources_command)
15149 (make_source_files_completion_list): Use objfile_compunits.
15150 * source.c (select_source_symtab): Use objfile_compunits.
15151 * objfiles.h (struct objfile): Update comment.
15152 (ALL_OBJFILES): Remove.
15153 (ALL_FILETABS): Remove.
15154 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15157 2019-01-09 Tom Tromey <tom@tromey.com>
15159 * symmisc.c (print_objfile_statistics, dump_objfile)
15160 (maintenance_print_symbols): Use compunit_filetabs.
15161 * source.c (forget_cached_source_info_for_objfile): Use
15163 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15164 (ALL_FILETABS): Use compunit_filetabs.
15165 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15166 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15168 2019-01-09 Tom Tromey <tom@tromey.com>
15170 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15171 (compunit_filetabs): New.
15172 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15174 (info_sources_command, make_source_files_completion_list): Remove
15176 * symmisc.c (print_objfile_statistics, dump_objfile)
15177 (maintenance_print_symbols): Remove declaration.
15178 (maintenance_info_symtabs): Use compunit_filetabs.
15179 (maintenance_info_line_tables): Likewise.
15180 * source.c (select_source_symtab): Change local variable name.
15181 (forget_cached_source_info_for_objfile): Remove declaration.
15182 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15183 * objfiles.c (objfile_relocate1): Remove declaration.
15184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15186 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15187 * coffread.c (coff_symtab_read): Remove declaration.
15188 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15191 2019-01-09 Tom Tromey <tom@tromey.com>
15193 * symtab.c (lookup_objfile_from_block)
15194 (find_pc_sect_compunit_symtab, search_symbols)
15195 (default_collect_symbol_completion_matches_break_on): Use
15197 * objfiles.h (ALL_COMPUNITS): Remove.
15198 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15199 * cp-support.c (add_symbol_overload_list_qualified): Use
15201 * ada-lang.c (ada_collect_symbol_completion_matches)
15202 (ada_add_global_exceptions): Use objfile_compunits.
15204 2019-01-09 Tom Tromey <tom@tromey.com>
15206 * source.c (select_source_symtab)
15207 (forget_cached_source_info_for_objfile): Remove declaration.
15208 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15210 * maint.c (count_symtabs_and_blocks): Remove declaration.
15211 * cp-support.c (add_symbol_overload_list_qualified): Remove
15213 * coffread.c (coff_symtab_read): Remove declaration.
15214 * symtab.c (lookup_symbol_in_objfile_symtabs)
15215 (basic_lookup_transparent_type_1): Use objfile_compunits.
15216 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15217 (info_sources_command, search_symbols)
15218 (default_collect_symbol_completion_matches_break_on)
15219 (make_source_files_completion_list): Remove declaration.
15220 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15221 (ada_collect_symbol_completion_matches)
15222 (ada_add_global_exceptions): Remove declaration.
15223 * linespec.c (iterate_over_all_matching_symtabs): Use
15225 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15226 (class objfile_compunits): New.
15227 (ALL_COMPUNITS): Use objfile_compunits.
15228 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15229 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15231 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15233 2019-01-09 Tom Tromey <tom@tromey.com>
15235 * symtab.c (search_symbols)
15236 (default_collect_symbol_completion_matches_break_on): Use
15238 * ada-lang.c (ada_lookup_simple_minsym)
15239 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15240 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15241 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15243 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15244 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15245 * objc-lang.c (find_methods): Use objfile_msymbols.
15246 (info_selectors_command, info_classes_command): Likewise.
15247 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15248 * objfiles.h (class objfile_msymbols): New.
15249 (ALL_OBJFILE_MSYMBOLS): Remove.
15250 (ALL_MSYMBOLS): Remove.
15252 2019-01-09 Tom Tromey <tom@tromey.com>
15254 * common/next-iterator.h (next_adapter): Add Iterator template
15256 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15257 (class all_objfiles_safe): New.
15258 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15259 * objfiles.c (put_objfile_before): Update comment.
15260 (add_separate_debug_objfile): Likewise.
15261 (free_all_objfiles): Use all_objfiles_safe.
15262 (objfile_purge_solibs): Likewise.
15264 2019-01-09 Tom Tromey <tom@tromey.com>
15266 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15267 (expand_symtab_containing_pc, lookup_static_symbol)
15268 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15269 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15271 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15272 * breakpoint.c (create_overlay_event_breakpoint)
15273 (create_longjmp_master_breakpoint)
15274 (create_std_terminate_master_breakpoint)
15275 (create_exception_master_breakpoint): Use all_objfiles.
15276 * linux-thread-db.c (try_thread_db_load_from_pdir)
15277 (has_libpthread): Use all_objfiles.
15278 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15279 * linespec.c (iterate_over_all_matching_symtabs)
15280 (search_minsyms_for_name): Use all_objfiles.
15281 * maint.c (maintenance_info_sections): Use all_objfiles.
15282 * main.c (captured_main_1): Use all_objfiles.
15283 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15284 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15285 * guile/scm-pretty-print.c
15286 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15287 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15288 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15289 (maintenance_print_msymbols): Use all_objfiles.
15290 * source.c (select_source_symtab): Use all_objfiles.
15291 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15292 * symfile.c (remove_symbol_file_command)
15293 (expand_symtabs_matching, map_symbol_filenames): Use
15295 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15297 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15298 * objc-lang.c (find_methods): Use all_objfiles.
15299 * objfiles.c (have_partial_symbols, have_full_symbols)
15300 (have_minimal_symbols, qsort_cmp)
15301 (default_iterate_over_objfiles_in_search_order): Use
15303 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15304 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15305 (maintenance_check_psymtabs): Use all_objfiles.
15306 (ALL_PSYMTABS): Remove.
15307 * compile/compile-object-run.c (do_module_cleanup): Use
15309 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15310 * cp-support.c (add_symbol_overload_list_qualified): Use
15312 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15314 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15315 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15317 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15318 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15319 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15321 * solib.c (solib_read_symbols): Use all_objfiles
15323 2019-01-09 Tom Tromey <tom@tromey.com>
15325 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15326 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15328 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15329 * symmisc.c (print_symbol_bcache_statistics)
15330 (print_objfile_statistics, maintenance_print_objfiles)
15331 (maintenance_info_symtabs, maintenance_check_symtabs)
15332 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15334 * source.c (forget_cached_source_info): Use all_objfiles.
15335 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15336 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15337 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15338 * objfiles.c (update_section_map): Use all_objfiles.
15339 (shared_objfile_contains_address_p): Likewise.
15340 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15341 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15343 2019-01-09 Tom Tromey <tom@tromey.com>
15345 * common/next-iterator.h: New file.
15346 * objfiles.h (class all_objfiles): New.
15347 (struct objfile_iterator): New.
15349 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15351 * NEWS: Move the description of the changed "frame", "select-frame",
15352 and "info frame" commands to the Changed commands section.
15354 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15356 * gdbtypes.c (check_stub_method_group): Remove handling of old
15358 * linespec.c (find_methods): Likewise.
15359 * stabsread.c (read_member_functions): Likewise.
15360 * valops.c (search_struct_method): Likewise.
15361 (value_struct_elt_for_reference): Likewise.
15362 * NEWS: Mention this change.
15364 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15366 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15367 print_source_lines.
15368 * source.c (print_source_lines_base): Update line number check.
15369 (print_source_lines): New function.
15370 (source_lines_range::source_lines_range): New function.
15371 * source.h (class source_lines_range): New class.
15372 (print_source_lines): New declaration.
15374 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15376 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15378 2019-01-08 Tom Tromey <tom@tromey.com>
15379 Simon Marchi <simon.marchi@ericsson.com>
15382 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15383 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15384 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15385 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15386 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15387 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15389 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15391 * source.c (select_source_symtab): Move header comment to
15392 declaration in source.h.
15393 (forget_cached_source_info_for_objfile): Likewise.
15394 (forget_cached_source_info): Likewise.
15395 (identify_source_line): Likewise.
15396 * source.h (identify_source_line): Move declaration from symtab.h
15397 and add comment from source.c
15398 (print_source_lines): Likewise.
15399 (forget_cached_source_info_for_objfile): Likewise.
15400 (forget_cached_source_info): Likewise.
15401 (select_source_symtab): Likewise.
15402 (enum print_source_lines_flag): Move definition from symtab.h.
15403 * symtab.h (identify_source_line): Move declaration to source.h.
15404 (print_source_lines): Likewise.
15405 (forget_cached_source_info_for_objfile): Likewise.
15406 (forget_cached_source_info): Likewise.
15407 (select_source_symtab): Likewise.
15408 (enum print_source_lines_flag): Move definition to source.h.
15409 * tui/tui-hooks.c: Add 'source.h' include.
15411 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15413 * source.c (print_source_lines_base): Handle requests to print
15414 reverse line number sequences, and guard against empty lines
15417 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15419 * source.c (print_source_lines_base): Fix skip of '\r' if next
15422 2019-01-06 Tom Tromey <tom@tromey.com>
15424 * c-exp.y (struct c_parse_state) <macro_original_text,
15425 expansion_obstack>: New member.
15426 (macro_original_text, expansion_obstack): Remove globals.
15427 (scan_macro_expansion, scanning_macro_expansion)
15428 (finished_macro_expansion): Update.
15429 (scan_macro_cleanup): Remove.
15430 (yylex, c_parse): Update.
15432 2019-01-06 Tom Tromey <tom@tromey.com>
15434 * c-exp.y (struct c_parse_state) <strings>: New member.
15435 (operator_stoken): Update.
15437 2019-01-06 Tom Tromey <tom@tromey.com>
15439 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15440 (union type_stack_elt) <typelist_val>: Now a pointer to
15442 (type_stack_cleanup): Don't declare.
15443 (push_typelist): Update.
15444 * parse.c (pop_typelist): Return a std::vector.
15445 (push_typelist): Take a std::vector.
15446 (follow_types): Update. Do not free args.
15447 (type_stack_cleanup): Remove.
15448 * c-exp.y (struct c_parse_state): New.
15449 (cpstate): New global.
15450 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15451 (nonempty_typelist): Update.
15452 (func_mod): Create a new vector.
15453 (c_parse): Create a c_parse_state.
15454 (check_parameter_typelist): Do not delete params.
15455 (function_method): Update. Do not delete type_list.
15457 2019-01-06 Tom Tromey <tom@tromey.com>
15460 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15462 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15463 (print_return_value): Likewise.
15465 2019-01-05 Tom Tromey <tom@tromey.com>
15467 * contrib/cleanup_check.py: Remove.
15468 * contrib/gcc-with-excheck: Remove.
15469 * contrib/exsummary.py: Remove.
15470 * contrib/excheck.py: Remove.
15472 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15474 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15475 NULL. Initialize tpprev to NULL instead of assigning it
15476 to NULL on the next statement.
15477 * windows-nat.c (windows_delete_thread): Remove check for
15478 main_thread_id before printing thread exit notifications.
15479 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15480 Remove thread ID check against main_thread_id.
15481 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15482 windows_delete_thread.
15483 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15485 2019-01-04 Tom Tromey <tom@tromey.com>
15487 * compile/compile.c (_initialize_compile): Use upper case for
15488 metasyntactic variables.
15489 * symmisc.c (_initialize_symmisc): Use upper case for
15490 metasyntactic variables.
15491 * psymtab.c (_initialize_psymtab): Use upper case for
15492 metasyntactic variables.
15493 * demangle.c (demangle_command): Use upper case for metasyntactic
15495 (_initialize_demangler): Likewise.
15496 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15499 2019-01-03 Tom Tromey <tom@tromey.com>
15501 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15503 2019-01-03 Tom Tromey <tom@tromey.com>
15505 * python/py-symtab.c (salpy_str): Update.
15506 (struct salpy_sal_object) <symtab>: Now a PyObject.
15507 (salpy_dealloc): Update.
15508 (del_objfile_sal): Use gdbpy_ref.
15510 2019-01-03 Tom Tromey <tom@tromey.com>
15512 * python/py-type.c (convert_field): Use new_reference. Return
15514 (make_fielditem): Return gdbpy_ref.
15515 (typy_fields): Update.
15516 (typy_getitem): Update.
15517 (field_name): Return gdbpy_ref. Use new_reference.
15518 (typy_iterator_iternext): Update.
15520 2019-01-03 Tom Tromey <tom@tromey.com>
15522 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15524 2019-01-03 Tom Tromey <tom@tromey.com>
15526 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15527 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15528 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15529 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15530 (pspy_set_type_printers): Likewise.
15531 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15532 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15533 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15534 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15535 (objfpy_set_type_printers): Likewise.
15537 2019-01-03 Tom Tromey <tom@tromey.com>
15539 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15540 (gdbpy_print_stack): Use gdbpy_err_fetch.
15541 * python/python-internal.h (class gdbpy_err_fetch): New class.
15542 (class gdbpy_enter) <m_error_type, m_error_value,
15543 m_error_traceback>: Remove.
15544 <m_error>: New member.
15545 (gdbpy_exception_to_string): Don't declare.
15546 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15547 * python/py-value.c (convert_value_from_python): Use
15549 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15550 gdbpy_exception_to_string.
15551 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15552 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15555 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15557 * linux-nat.c (delete_lwp_cleanup): Delete.
15558 (struct lwp_deleter): New struct.
15559 (lwp_info_up): New typedef.
15560 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15563 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15565 * linux-fork.c (class scoped_switch_fork_info): New class.
15566 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15568 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15570 * valops.c (find_overload_match): Remove use of null_cleanup, and
15571 calls to do_cleanups.
15573 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15575 * compile/compile-cplus-types.c
15576 (compile_cplus_instance::decl_name): Handle changes to
15578 * cp-support.c (cp_func_name): Update header comment, update
15580 * cp-support.h (cp_func_name): Update return type in declaration.
15581 * valops.c (find_overload_match): Move temp_func local to top
15582 level of function and change its type. Use temp_func to hold and
15583 delete temporary string obtained from cp_func_name.
15585 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15587 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15588 gdb::char_vector, remove cleanup, and update uses of `msg`.
15590 2019-01-03 Jim Wilson <jimw@sifive.com>
15592 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15594 2019-01-02 Tom Tromey <tom@tromey.com>
15596 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15597 (tdesc_parse_xml): Remove cleanups.
15598 * target-descriptions.h (make_cleanup_free_target_description):
15600 (target_desc_deleter): New struct.
15601 (target_desc_up): New typedef.
15602 * target-descriptions.c (target_desc_deleter::operator()): Rename
15603 from free_target_description.
15604 (make_cleanup_free_target_description): Remove.
15606 2019-01-02 Tom Tromey <tom@tromey.com>
15608 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15609 constructor, destructor.
15610 (linespec_parser): Remove typedef.
15611 (~linespec_parser): Rename from linespec_parser_delete.
15612 (linespec_lex_to_end, linespec_complete_label)
15613 (linespec_complete): Update.
15614 (decode_line_full): Remove cleanups.
15615 (decode_line_1): Update.
15617 2019-01-02 Tom Tromey <tom@tromey.com>
15619 * python/python-internal.h (inferior_to_inferior_object): Change
15621 * python/py-exitedevent.c (create_exited_event_object): Update.
15622 * python/py-inferior.c (inferior_to_inferior_object): Return
15624 (python_new_inferior, python_inferior_deleted)
15625 (thread_to_thread_object, delete_thread_object)
15626 (build_inferior_list, gdbpy_selected_inferior): Update.
15627 * python/py-infthread.c (create_thread_object): Update. Also fail
15628 if inferior_to_inferior_object fails.
15630 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15632 * inferior.h (class inferior) <displaced_step_state>: New field.
15633 * infrun.h (struct displaced_step_state): Move here from
15634 infrun.c. Initialize fields, add constructor.
15635 <inf>: Remove field.
15636 <reset>: New method.
15637 * infrun.c (struct displaced_step_inferior_state): Move to
15639 (displaced_step_inferior_states): Remove.
15640 (get_displaced_stepping_state): Adust.
15641 (displaced_step_in_progress_any_inferior): Adjust.
15642 (displaced_step_in_progress_thread): Adjust.
15643 (displaced_step_in_progress): Adjust.
15644 (add_displaced_stepping_state): Remove.
15645 (get_displaced_step_closure_by_addr): Adjust.
15646 (remove_displaced_stepping_state): Remove.
15647 (infrun_inferior_exit): Call displaced_step_state.reset.
15648 (use_displaced_stepping): Don't check for NULL.
15649 (displaced_step_prepare_throw): Call
15650 get_displaced_stepping_state.
15651 (displaced_step_fixup): Don't check for NULL.
15652 (prepare_for_detach): Don't check for NULL.
15654 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15656 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15657 in case of call that did not complete.
15659 2019-01-02 Andrey Utkin <autkin@undo.io>
15661 * symfile.c (find_separate_debug_file): Fix search of debug files for
15664 2019-01-02 Tom Tromey <tom@tromey.com>
15666 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15668 * python/py-frame.c (frapy_older): Remove cast.
15669 (frapy_newer): Likewise.
15670 * python/py-breakpoint.c (local_setattro): Remove cast.
15671 * python/py-arch.c (archpy_name): Remove local variable.
15672 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15674 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15676 * unittests/basic_string_view/element_access/char/empty.cc:
15677 Fix year range in copyright header.
15679 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15681 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15683 <operator==>: Update with for removed field.
15685 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15686 <isa_features>: ...this.
15687 <abi_features>: New field.
15688 (riscv_isa_flen): Update comment.
15689 (riscv_abi_xlen): New declaration.
15690 (riscv_abi_flen): New declaration.
15691 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15693 (riscv_abi_xlen): New function.
15694 (riscv_isa_flen): Update to get answer from isa_features.
15695 (riscv_abi_flen): New function.
15696 (riscv_has_fp_abi): Update to get answer from abi_features.
15697 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15699 (riscv_call_info) <xlen, flen>: Update comment.
15700 (riscv_call_arg_struct): Remove invalid assertions
15701 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15703 (riscv_gdbarch_init): Gather isa features and abi features
15704 separately, ensure both match on the gdbarch when reusing an old
15705 gdbarch. Relax an error check to allow 32-bit abi float to run on
15706 a target with 64-bit float hardware.
15708 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15710 * source.c (search_command_helper): Stop reverse search
15711 when line 1 has been searched.
15713 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15715 * record-full.c (record_full_base_target::close): Rewrite
15716 record_full_core_buf_list free logic.
15718 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15720 * break-catch-syscall.c (print_one_catch_syscall): xfree
15723 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15725 * top.c (print_gdb_version): Update Copyright year in version
15728 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15730 Update copyright year range in all GDB files.
15732 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15734 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15736 For older changes see ChangeLog-2018.
15742 version-control: never