1 2019-11-26 Tom Tromey <tom@tromey.com>
3 * run-on-main-thread.c: New file.
4 * run-on-main-thread.h: New file.
5 * unittests/main-thread-selftests.c: New file.
6 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7 main-thread-selftests.c.
8 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
9 (COMMON_SFILES): Add run-on-main-thread.c.
11 2019-11-26 Tom Tromey <tom@tromey.com>
13 * main.c (setup_alternate_signal_stack): Remove.
14 (captured_main_1): Use gdb::alternate_signal_stack.
15 * gdbsupport/alt-stack.h: New file.
17 2019-11-26 Tom Tromey <tom@tromey.com>
19 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
21 (save_original_signals_state, restore_original_signals_state): Use
23 * linux-nat.c (block_child_signals, restore_child_signals_mask)
24 (_initialize_linux_nat): Use gdb_sigmask.
25 * guile/guile.c (_initialize_guile): Use block_signals.
26 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
27 * gdbsupport/gdb-sigmask.h: New file.
28 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
29 * cp-support.c (gdb_demangle): Use gdb_sigmask.
30 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
32 * configure, config.in: Rebuild.
33 * gdbsupport/block-signals.h: New file.
35 2019-11-26 Tom Tromey <tom@tromey.com>
37 * acinclude.m4: Include ax_pthread.m4.
38 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
39 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
40 (CLIBS): Use PTHREAD_LIBS.
41 (aclocal_m4_deps): Add ax_pthread.m4.
42 * config.in, configure: Rebuild.
43 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
45 2019-11-26 Tom Tromey <tom@tromey.com>
47 * symtab.h (struct minimal_symbol) <name_set>: New member.
48 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
49 Don't call symbol_set_names.
50 (minimal_symbol_reader::install): Call symbol_set_names.
52 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
54 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
55 restore_active_ext_lang, as GIL is needed for (indirectly)
56 called PyOS_InterruptOccurred.
58 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
60 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
63 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
65 * remote-sim.c (simulator_command): Make static, remove
68 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
70 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
72 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
73 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
75 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
77 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
79 * unittests/basic_string_view/element_access/char/1.cc (test01):
82 * unittests/basic_string_view/element_access/char/empty.cc (main):
84 * unittests/basic_string_view/element_access/char/front_back.cc
87 * unittests/basic_string_view/inserters/char/2.cc (test05):
90 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
93 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
96 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
98 * unittests/basic_string_view/operations/compare/char/1.cc
101 * unittests/basic_string_view/operations/compare/char/13650.cc
103 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
106 * unittests/basic_string_view/operations/data/char/1.cc (test01):
109 * unittests/basic_string_view/operations/find/char/1.cc (test01):
112 * unittests/basic_string_view/operations/find/char/2.cc (test02):
115 * unittests/basic_string_view/operations/find/char/3.cc (test03):
118 * unittests/basic_string_view/operations/find/char/4.cc (main):
120 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
123 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
126 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
129 * unittests/basic_string_view/operations/substr/char/1.cc
132 * unittests/basic_string_view/operators/char/2.cc (main):
134 * unittests/optional/assignment/1.cc (test): Likewise.
135 * unittests/optional/assignment/2.cc (test): Likewise.
136 * unittests/optional/assignment/3.cc (test): Likewise.
137 * unittests/optional/assignment/4.cc (test): Likewise.
138 * unittests/optional/assignment/5.cc (test): Likewise.
139 * unittests/optional/assignment/6.cc (test): Likewise.
140 * unittests/optional/assignment/7.cc (test): Likewise.
141 * unittests/optional/cons/copy.cc (test): Likewise.
142 * unittests/optional/cons/default.cc (test): Likewise.
143 * unittests/optional/cons/move.cc (test): Likewise.
144 * unittests/optional/cons/value.cc (test): Likewise.
145 * unittests/optional/in_place.cc (test): Likewise.
146 * unittests/optional/observers/1.cc (test): Likewise.
147 * unittests/optional/observers/2.cc (test): Likewise.
149 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
151 * tui-win.h (tui_set_var_cmd): Remove.
152 * tui-win.c (tui_set_var_cmd): Make static.
154 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
156 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
157 rbreak_command_wrapper): Remove.
158 * symtab.c (rbreak_command_wrapper): Remove.
160 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
162 * inferior.h (info_terminal_command): Remove declaration.
163 * inflow.c (info_terminal_command): Make static.
165 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
167 * inferior.c (exit_inferior_silent): Remove.
169 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
171 * dictionary.c (dict_empty, mdict_empty): Remove.
172 * dictionary.c (mdict_empty): Remove.
174 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
176 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
177 (arc_insn_get_memory_offset): Likewise.
178 (arc_insn_dump): Likewise.
179 * cp-support.c (test_cp_symbol_name_matches): Likewise.
180 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
181 * dictionary.c (dict_iterator_next): Likewise.
182 (dict_iter_match_first): Likewise.
183 (dict_iter_match_next): Likewise.
184 * f-lang.c (evaluate_subexp_f): Likewise.
185 * hppa-tdep.c (hppa_read_pc): Likewise.
186 * i386-tdep.c (i386_floatformat_for_type): Likewise.
187 * parse.c (write_exp_elt_msym): Likewise.
188 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
189 * remote.c (remote_packet_size): Likewise.
190 (remote_notif_stop_parse): Likewise.
191 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
192 * s12z-tdep.c (s12z_disassemble_info): Likewise.
193 * source.c (prepare_path_for_appending): Likewise.
194 * sparc64-linux-tdep.c
195 (sparc64_linux_handle_segmentation_fault); Likewise.
196 * stack.c (frame_selection_by_function_completer): Likewise.
198 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
200 * completer.c (set_gdb_completion_word_break_characters):
203 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
205 * dwarf-index-write.c: Include dwarf-index-write.h.
206 * mi/mi-interp.c: Include mi/mi-interp.h.
208 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
210 * aarch32-tdep.c: Include aarch32-tdep.h.
211 * aarch32-tdep.h: Forward-declare struct target_desc.
213 2019-11-26 Christian Biesinger <cbiesinger@google.com>
215 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
217 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
218 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
220 2019-11-25 Tom de Vries <tdevries@suse.de>
222 * contrib/words.sh: Add -c option.
224 2019-11-25 Christian Biesinger <cbiesinger@google.com>
226 * solib.c (solib_find_1): Change int to bool.
227 (exec_file_find): Change int to bool.
228 (solib_find): Change int to bool.
229 (solib_read_symbols): Change int to bool.
230 (solib_used): Change int to bool.
231 (solib_add): Change int to bool.
232 (info_sharedlibrary_command): Change int to bool.
233 (solib_contains_address_p): Change int to bool.
234 (solib_keep_data_in_core): Change int to bool.
235 (in_solib_dynsym_resolve_code): Change int to bool.
236 (reload_shared_libraries_1): Change int to bool.
237 (gdb_sysroot_changed): Change int to bool.
238 * solib.h (solib_read_symbols): Change int to bool.
239 (solib_contains_address_p): Change int to bool.
240 (solib_keep_data_in_core): Change int to bool.
241 (in_solib_dynsym_resolve_code): Change int to bool.
242 (libpthread_name_p): Change int to bool.
244 2019-11-25 Luis Machado <luis.machado@linaro.org>
246 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
247 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
248 (remote_packet_max_chars): New static global.
249 (show_remote_packet_max_chars): New function.
250 (remote_target::putpkt_binary): Adjust to use new
251 remote_packet_max_chars option.
252 (remote_target::getpkt_or_notif_sane_1): Likewise.
253 (_initialize_remote): Register new remote-packet-max-chars option.
255 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
257 * m68k-linux-nat.c: Include gdbarch.h.
259 2019-11-24 Tom Tromey <tom@tromey.com>
261 * symfile.c (read_symbols): Update.
262 * psymtab.c (require_partial_symbols): Change type of "verbose" to
264 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
265 (psym_lookup_symbol, psym_find_last_source_symtab)
266 (psym_forget_cached_source_info, psym_print_stats)
267 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
268 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
269 (psym_map_matching_symbols, psym_expand_symtabs_matching)
270 (psym_find_compunit_symtab_by_address)
271 (maintenance_print_psymbols, maintenance_info_psymtabs)
272 (maintenance_check_psymtabs): Update.
273 * psymtab.h (require_partial_symbols): Change type of "verbose" to
276 2019-11-22 Tom Tromey <tom@tromey.com>
278 * observable.h: Update comments.
280 2019-11-22 Tom Tromey <tromey@adacore.com>
282 * ada-tasks.c (ada_task_is_alive): Make parameter const.
283 (print_ada_task_info): Don't try to fetch thread id if task is not
286 2019-11-22 Christian Biesinger <cbiesinger@google.com>
289 * ada-lang.c (sort_choices): Update.
290 (ada_print_symbol_signature): Update.
291 (resolve_subexp): Update.
292 (ada_parse_renaming): Update.
293 (ada_read_renaming_var_value): Update.
294 (lesseq_defined_than): Update.
295 (remove_extra_symbols): Update.
296 (remove_irrelevant_renamings): Update.
297 (ada_add_block_symbols): Update.
298 (ada_collect_symbol_completion_matches): Update.
299 (ada_is_renaming_symbol): Update.
300 (aggregate_assign_from_choices): Update.
301 (ada_evaluate_subexp): Update.
302 (ada_has_this_exception_support): Update.
303 (ada_is_non_standard_exception_sym): Update.
304 (ada_add_exceptions_from_frame): Update.
305 (ada_add_global_exceptions): Update.
306 (ada_print_subexp): Update.
307 * ax-gdb.c (gen_var_ref): Update.
308 (gen_maybe_namespace_elt): Update.
309 (gen_expr_for_cast): Update.
312 * blockframe.c (find_pc_partial_function): Update.
313 * breakpoint.c (print_breakpoint_location): Update.
314 (update_static_tracepoint): Update.
315 * btrace.c (ftrace_print_function_name): Update.
316 (ftrace_function_switched): Update.
317 * buildsym.c (find_symbol_in_list): Update.
319 * c-typeprint.c (c_print_typedef): Update.
320 (c_type_print_template_args): Update.
321 * cli/cli-cmds.c (edit_command): Update.
322 (list_command): Update.
323 (print_sal_location): Update.
324 * coffread.c (patch_opaque_types): Update.
325 (process_coff_symbol): Update.
326 (coff_read_enum_type): Update.
327 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
328 (convert_one_symbol): Update.
329 (hash_symname): Update.
330 (eq_symname): Update.
331 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
332 * compile/compile-cplus-types.c (debug_print_scope): Update.
333 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
334 * compile/compile-object-load.c (get_out_value_type): Update.
335 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
336 (search_symbol_list): Update.
337 (cp_lookup_symbol_imports_or_template): Update.
338 * cp-support.c (overload_list_add_symbol): Update.
339 * ctfread.c (psymtab_to_symtab): Update.
340 * dbxread.c (cp_set_block_scope): Update.
341 * dictionary.c (iter_match_first_hashed): Update.
342 (iter_match_next_hashed): Update.
343 (insert_symbol_hashed): Update.
344 (iter_match_next_linear): Update.
345 * dictionary.h: Update.
346 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
347 (locexpr_describe_location_piece): Update.
348 (locexpr_describe_location_1): Update.
349 (locexpr_generate_c_location): Update.
350 (loclist_describe_location): Update.
351 (loclist_generate_c_location): Update.
352 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
353 (read_func_scope): Update.
354 (process_enumeration_scope): Update.
355 (new_symbol): Update.
356 (dwarf2_const_value): Update.
357 (dwarf2_symbol_mark_computed): Update.
358 * eval.c (evaluate_funcall): Update.
359 (evaluate_subexp_standard): Update.
360 * expprint.c (print_subexp_standard): Update.
361 (dump_subexp_body_standard): Update.
362 * f-valprint.c (info_common_command_for_block): Update.
363 * findvar.c (get_hosting_frame): Update.
364 (default_read_var_value): Update.
365 * go-lang.c (go_symbol_package_name): Update.
366 * guile/scm-block.c (bkscm_print_block_smob): Update.
367 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
368 (gdbscm_symbol_name): Update.
369 (gdbscm_symbol_linkage_name): Update.
370 (gdbscm_symbol_print_name): Update.
371 * infcall.c (get_function_name): Update.
372 * infcmd.c (jump_command): Update.
373 (finish_command): Update.
374 * infrun.c (insert_exception_resume_breakpoint): Update.
375 * linespec.c (canonicalize_linespec): Update.
376 (create_sals_line_offset): Update.
377 (convert_linespec_to_sals): Update.
378 (complete_label): Update.
379 (find_label_symbols_in_block): Update.
380 * m2-typeprint.c (m2_print_typedef): Update.
381 * mdebugread.c (mdebug_reg_to_regnum): Update.
382 (parse_symbol): Update.
383 (mylookup_symbol): Update.
384 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
385 (list_args_or_locals): Update.
386 * objc-lang.c (compare_selectors): Update.
387 (info_selectors_command): Update.
388 (compare_classes): Update.
389 (info_classes_command): Update.
391 * p-typeprint.c (pascal_print_typedef): Update.
392 * printcmd.c (build_address_symbolic): Update.
393 (info_address_command): Update.
394 (print_variable_and_value): Update.
395 * python/py-framefilter.c (extract_sym): Update.
396 (py_print_single_arg): Update.
397 * python/py-symbol.c (sympy_str): Update.
398 (sympy_get_name): Update.
399 (sympy_get_linkage_name): Update.
400 * python/python.c (gdbpy_rbreak): Update.
401 * record-btrace.c (btrace_get_bfun_name): Update.
402 (btrace_call_history): Update.
403 * rust-lang.c (rust_print_typedef): Update.
404 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
405 * stabsread.c (stab_reg_to_regnum): Update.
406 (define_symbol): Update.
407 (read_enum_type): Update.
408 (common_block_end): Update.
409 (cleanup_undefined_types_1): Update.
410 (scan_file_globals): Update.
411 * stack.c (print_frame_arg): Update.
412 (print_frame_args): Update.
413 (find_frame_funname): Update.
414 (info_frame_command_core): Update.
415 (iterate_over_block_locals): Update.
416 (print_block_frame_labels): Update.
417 (do_print_variable_and_value): Update.
418 (iterate_over_block_arg_vars): Update.
419 (return_command): Update.
420 * symmisc.c (dump_symtab_1): Update.
421 (print_symbol): Update.
422 * symtab.c (eq_symbol_entry): Update.
423 (symbol_cache_dump): Update.
424 (lookup_language_this): Update.
425 (find_pc_sect_line): Update.
426 (skip_prologue_sal): Update.
427 (symbol_search::compare_search_syms): Update.
428 (treg_matches_sym_type_name): Update.
429 (search_symbols): Update.
430 (print_symbol_info): Update.
431 (rbreak_command): Update.
432 (completion_list_add_symbol): Update.
433 (find_gnu_ifunc): Update.
434 (get_symbol_address): Update.
435 (search_module_symbols): Update.
436 (info_module_subcommand): Update.
437 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
438 (SYMBOL_LINKAGE_NAME): Remove.
439 (SYMBOL_DEMANGLED_NAME): Remove.
440 (SYMBOL_PRINT_NAME): Remove.
441 (SYMBOL_SEARCH_NAME): Remove.
442 * tracepoint.c (set_traceframe_context): Update.
443 (validate_actionline): Update.
444 (collection_list::collect_symbol): Update.
445 (encode_actions_1): Update.
446 (info_scope_command): Update.
447 (print_one_static_tracepoint_marker): Update.
448 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
449 * valops.c (address_of_variable): Update.
450 (find_overload_match): Update.
451 (find_oload_champ): Update.
453 2019-11-22 Christian Biesinger <cbiesinger@google.com>
455 * ada-lang.c (ada_lookup_simple_minsym): Update.
456 (ada_collect_symbol_completion_matches): Update.
457 * ada-tasks.c (read_atcb): Update.
458 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
459 (amd64_windows_skip_trampoline_code): Update.
460 * arm-tdep.c (skip_prologue_function): Update.
461 (arm_skip_stack_protector): Update.
462 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
463 (arm_wince_skip_main_prologue): Update.
464 * ax-gdb.c (gen_expr): Update.
465 * block.c (call_site_for_pc): Update.
466 * blockframe.c (find_pc_partial_function): Update.
467 * breakpoint.c (set_breakpoint_location_function): Update.
468 * btrace.c (ftrace_print_function_name): Update.
469 (ftrace_function_switched): Update.
470 * c-valprint.c (print_unpacked_pointer): Update.
471 * coffread.c (coff_symfile_read): Update.
472 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
473 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
474 * dwarf-index-write.c (write_psymbols): Update.
475 * dwarf2loc.c (call_site_to_target_addr): Update.
476 (func_verify_no_selftailcall): Update.
477 (tailcall_dump): Update.
478 (call_site_find_chain_1): Update.
479 (dwarf_expr_reg_to_entry_parameter): Update.
480 * elfread.c (elf_gnu_ifunc_record_cache): Update.
481 * eval.c (evaluate_funcall): Update.
482 (evaluate_subexp_standard): Update.
483 (evaluate_subexp_for_sizeof): Update.
484 * expprint.c (print_subexp_standard): Update.
485 (dump_subexp_body_standard): Update.
486 * frame.c (get_prev_frame_always_1): Update.
487 * frv-tdep.c (frv_skip_main_prologue): Update.
488 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
489 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
490 (gnuv3_get_typename_from_type_info): Update.
491 (gnuv3_skip_trampoline): Update.
492 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
493 * i386-tdep.c (i386_skip_main_prologue): Update.
494 (i386_pe_skip_trampoline_code): Update.
495 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
496 * infcall.c (get_function_name): Update.
497 * linespec.c (minsym_found): Update.
498 * linux-fork.c (info_checkpoints_command): Update.
499 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
500 (m32c_m16c_pointer_to_address): Update.
501 * maint.c (maintenance_translate_address): Update.
502 * minsyms.c (add_minsym_to_hash_table): Update.
503 (add_minsym_to_demangled_hash_table): Update.
504 (lookup_minimal_symbol_mangled): Update.
505 (lookup_minimal_symbol_demangled): Update.
506 (lookup_minimal_symbol_linkage): Update.
507 (lookup_minimal_symbol_text): Update.
508 (lookup_minimal_symbol_by_pc_name): Update.
509 (minimal_symbol_is_less_than): Update.
510 (compact_minimal_symbols): Update.
511 (build_minimal_symbol_hash_tables): Update.
512 (find_solib_trampoline_target): Update.
513 * mips-tdep.c (mips_stub_frame_sniffer): Update.
514 (mips_skip_pic_trampoline_code): Update.
515 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
516 * objc-lang.c (info_selectors_command): Update.
517 (info_classes_command): Update.
518 (find_methods): Update.
520 * p-valprint.c (pascal_val_print): Update.
521 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
522 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
523 * printcmd.c (build_address_symbolic): Update.
524 (info_symbol_command): Update.
525 * psymtab.c (psymbol_name_matches): Update.
526 (match_partial_symbol): Update.
527 (lookup_partial_symbol): Update.
528 (print_partial_symbols): Update.
529 (sort_pst_symbols): Update.
530 (maintenance_check_psymtabs): Update.
531 * python/py-framefilter.c (py_print_frame): Update.
532 * python/python.c (gdbpy_rbreak): Update.
533 * record-btrace.c (btrace_get_bfun_name): Update.
534 (btrace_call_history): Update.
535 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
536 (rs6000_skip_trampoline_code): Update.
537 * sol-thread.c (info_cb): Update.
538 * stabsread.c (scan_file_globals): Update.
539 * stack.c (find_frame_funname): Update.
540 (info_frame_command_core): Update.
541 * symmisc.c (dump_msymbols): Update.
542 * symtab.c (symbol_natural_name): Rename to..,
543 (general_symbol_info::natural_name): ...this.
544 (symbol_demangled_name): Rename to...
545 (general_symbol_info::demangled_name): ...this.
546 (symbol_search_name): Rename to...
547 (general_symbol_info::search_name): ...this.
548 (symbol_matches_search_name): Update.
549 (find_pc_sect_line): Update.
550 (skip_prologue_sal): Update.
551 (search_symbols): Update.
552 (print_msymbol_info): Update.
553 (rbreak_command): Update.
554 (completion_list_add_msymbol): Update.
555 (completion_list_objc_symbol): Update.
556 (get_msymbol_address): Update.
557 * symtab.h (struct general_symbol_info): Add member functions
558 natural_name (), linkage_name (), print_name (), demangled_name (),
560 (SYMBOL_NATURAL_NAME): Update.
561 (symbol_natural_name): Move to a member function on general_symbol_info.
562 (SYMBOL_DEMANGLED_NAME): Update.
563 (symbol_demangled_name): Move to a member function on
565 (SYMBOL_SEARCH_NAME): Update.
566 (symbol_search_name): Move to a member function on general_symbol_info.
567 (MSYMBOL_NATURAL_NAME): Remove.
568 (MSYMBOL_LINKAGE_NAME): Remove.
569 (MSYMBOL_PRINT_NAME): Remove.
570 (MSYMBOL_DEMANGLED_NAME): Remove.
571 (MSYMBOL_SEARCH_NAME): Remove.
572 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
574 2019-11-22 Christian Biesinger <cbiesinger@google.com>
576 * symtab.c (create_demangled_names_hash): Use per_bfd->
577 minimal_symbol_count for computing the initial size, if greater
578 than our default size.
580 2019-11-22 Tom de Vries <tdevries@suse.de>
582 * contrib/words.sh: Improve words extraction.
584 2019-11-22 Tom de Vries <tdevries@suse.de>
586 * contrib/words.sh: Combine sed invocations.
588 2019-11-21 Christian Biesinger <cbiesinger@google.com>
590 * Makefile.in: Update.
591 * demangle.c: Rename to...
592 * gdb-demangle.c: ..this.
593 (is_cplus_marker): Change return type to bool.
594 (_initialize_demangler): Rename to...
595 (_initialize_gdb_demangle): ...this.
596 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
597 * symtab.h (demangle): Remove declaration; instead include
600 2019-11-21 Tom Tromey <tromey@adacore.com>
602 * gdbsupport/format.c (format_pieces): Parse %I64d.
603 * unittests/format_pieces-selftests.c (test_windows_formats): New
605 (run_tests): Call it.
607 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
609 Byte reverse display of variables with DW_END_big, DW_END_little
610 (DW_AT_endianity) dwarf attributes if different than the native
612 * ada-lang.c (ada_value_binop):
613 Use type_byte_order instead of gdbarch_byte_order.
614 * ada-valprint.c (printstr):
615 (ada_val_print_string):
616 * ada-lang.c (value_pointer):
618 Use type_byte_order instead of gdbarch_byte_order.
619 * c-lang.c (c_get_string):
620 Use type_byte_order instead of gdbarch_byte_order.
621 * c-valprint.c (c_val_print_array):
622 Use type_byte_order instead of gdbarch_byte_order.
623 * cp-valprint.c (cp_print_class_member):
624 Use type_byte_order instead of gdbarch_byte_order.
625 * dwarf2loc.c (rw_pieced_value):
626 Use type_byte_order instead of gdbarch_byte_order.
627 * dwarf2read.c (read_base_type): Handle DW_END_big,
629 * f-lang.c (f_get_encoding):
630 Use type_byte_order instead of gdbarch_byte_order.
631 * findvar.c (default_read_var_value):
632 Use type_byte_order instead of gdbarch_byte_order.
633 * gdbtypes.c (check_types_equal):
634 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
635 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
636 and TYPE_ENDIANITY_LITTLE if set.
637 (type_byte_order): new function.
638 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
639 (struct main_type) <flag_endianity_not_default>:
641 (type_byte_order): New function.
642 * infcmd.c (default_print_one_register_info):
643 Use type_byte_order instead of gdbarch_byte_order.
644 * p-lang.c (pascal_printstr):
645 Use type_byte_order instead of gdbarch_byte_order.
646 * p-valprint.c (pascal_val_print):
647 Use type_byte_order instead of gdbarch_byte_order.
648 * printcmd.c (print_scalar_formatted):
649 Use type_byte_order instead of gdbarch_byte_order.
650 * solib-darwin.c (darwin_current_sos):
651 Use type_byte_order instead of gdbarch_byte_order.
652 * solib-svr4.c (solib_svr4_r_ldsomap):
653 Use type_byte_order instead of gdbarch_byte_order.
654 * stap-probe.c (stap_modify_semaphore):
655 Use type_byte_order instead of gdbarch_byte_order.
656 * target-float.c (target_float_same_format_p):
657 Use type_byte_order instead of gdbarch_byte_order.
658 * valarith.c (scalar_binop):
660 Use type_byte_order instead of gdbarch_byte_order.
661 * valops.c (value_cast):
662 Use type_byte_order instead of gdbarch_byte_order.
663 * valprint.c (generic_emit_char):
666 Use type_byte_order instead of gdbarch_byte_order.
667 * value.c (unpack_long):
668 (unpack_bits_as_long):
669 (unpack_value_bitfield):
672 (pack_unsigned_long):
673 Use type_byte_order instead of gdbarch_byte_order.
674 * findvar.c (unsigned_pointer_to_address):
675 (signed_pointer_to_address):
676 (unsigned_address_to_pointer):
677 (address_to_signed_pointer):
678 (default_read_var_value):
679 (default_value_from_register):
680 Use type_byte_order instead of gdbarch_byte_order.
681 * gnu-v3-abi.c (gnuv3_make_method_ptr):
682 Use type_byte_order instead of gdbarch_byte_order.
683 * riscv-tdep.c (riscv_print_one_register_info):
684 Use type_byte_order instead of gdbarch_byte_order.
686 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
688 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
689 (current_ui_gdb_stdin_ptr): Likewise.
690 (current_ui_gdb_stderr_ptr): Likewise.
691 (current_ui_gdb_stdlog_ptr): Likewise.
692 (current_ui_current_uiout_ptr): Likewise.
693 (gen_ret_current_ui_field_ptr): Remove.
695 2019-11-21 Tom de Vries <tdevries@suse.de>
698 * cli/cli-script.c (execute_control_command): Only switch to
699 INTERP_CONSOLE's ui_out when INTERP_MI is active.
701 2019-11-19 Tom Tromey <tom@tromey.com>
703 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
704 Now static. Change type of "name".
705 (tui_set_win_height_command): Don't copy "arg".
706 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
707 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
709 2019-11-19 Ali Tamur <tamur@google.com>
711 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
712 "if (attr != nullptr)".
713 (dwarf2_find_base_address): Likewise.
714 (dwarf2_build_include_psymtabs): Likewise.
715 (read_cutu_die_from_dwo): Likewise.
716 (read_func_scope): Likewise.
717 (read_call_site_scope): Likewise.
718 (dwarf2_get_pc_bounds): Likewise.
719 (dwarf2_record_block_ranges): Likewise.
720 (dwarf2_add_field): Likewise.
721 (dwarf2_add_member_fn): Likewise.
722 (read_structure_type): Likewise.
723 (read_enumeration_type): Likewise.
724 (read_array_type): Likewise.
725 (read_array_order): Likewise.
726 (read_set_type): Likewise.
727 (read_common_block): Likewise.
728 (read_tag_reference_type): Likewise.
729 (read_tag_string_type): Likewise.
730 (read_subroutine_type): Likewise.
731 (read_base_type): Likewise.
732 (read_subrange_type): Likewise.
733 (new_symbol): Likewise.
734 (prepare_one_comp_unit): Likewise.
736 2019-11-19 Tom Tromey <tromey@adacore.com>
738 * windows-nat.c (windows_nat_target::attach): Include GetLastError
739 result in error when DebugActiveProcess fails.
741 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
742 Pedro Alves <palves@redhat.com>
744 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
745 * target.c (target_stack::push): Call 'unpush' if there's a
746 target on top of the stack.
748 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
750 * python/py-block.c (blpy_dealloc): Call tp_free.
751 (blpy_block_syms_dealloc): Likewise.
752 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
753 * python/py-inferior.c (infpy_dealloc): Likewise.
754 * python/py-lazy-string.c (stpy_dealloc): Likewise.
755 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
756 * python/py-symbol.c (sympy_dealloc): Likewise.
757 * python/py-symtab.c (stpy_dealloc): Likewise.
758 * python/py-type.c (typy_iterator_dealloc): Likewise.
760 2019-11-18 Christian Biesinger <cbiesinger@google.com>
762 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
763 constructor instead of using a class initializer.
765 2019-11-15 Christian Biesinger <cbiesinger@google.com>
767 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
768 * configure: Regenerate.
769 * configure.ac: Don't source common.host.
770 * gdbsupport/common.host: Remove.
771 * gdbsupport/mingw-strerror.c: Remove.
772 * gdbsupport/posix-strerror.c: Rename to...
773 * gdbsupport/safe-strerror.c: ...this.
775 2019-11-15 Christian Biesinger <cbiesinger@google.com>
777 * maint.c (scoped_command_stats::print_time): Use localtime_r
778 instead of localtime (provided through gnulib if necessary).
779 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
782 2019-11-15 Christian Biesinger <cbiesinger@google.com>
784 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
785 avoid compile errors.
787 2019-11-15 Christian Biesinger <cbiesinger@google.com>
789 * config.in: Regenerate.
790 * configure: Regenerate.
791 * gdbsupport/common.m4: No longer check for strerror_r.
792 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
793 POSIX version of strerror_r, now that gnulib provides it if
796 2019-11-14 Christian Biesinger <cbiesinger@google.com>
798 * README (`configure' options): Update.
800 2019-11-14 Tom Tromey <tromey@adacore.com>
802 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
803 expected type for the RHS if the LHS is a convenience variable.
805 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
807 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
808 Provide explicit default and copy constructor.
810 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
812 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
813 only call Py_INCREF (newbp) in the bppy_pending_object case.
815 2019-11-13 Tom Tromey <tromey@adacore.com>
818 * psympriv.h (partial_symbol): Remove static assert.
819 * symtab.h (general_symbol_info, symbol): Remove static assert.
821 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
823 * gdbsupport/format.c (format_pieces::format_pieces): Support
824 printf 'z' size modifier.
825 * gdbsupport/format.h (enum argclass): Add size_t_arg.
826 * printcmd.c (ui_printf): Handle size_t_arg.
827 * ui-out.c (ui_out::vmessage): Likewise.
828 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
830 (run_tests): Call test_format_int_sizes.
832 2019-11-12 Christian Biesinger <cbiesinger@google.com>
834 * ada-exp.y (write_ambiguous_var): Update.
835 * buildsym.c (add_symbol_to_list): Update.
836 * dwarf2read.c (read_variable): Update.
837 (new_symbol): Update.
838 * jit.c (finalize_symtab): Update.
839 * language.c (language_alloc_type_symbol): Update.
840 * symtab.c (fixup_symbol_section): Update.
841 (initialize_objfile_symbol_1): Move code to...
842 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
843 (allocate_symbol): Update.
844 (allocate_template_symbol): Update.
845 (get_symbol_address): Update.
846 * symtab.h (struct symbol): Inherit from general_symbol_info instead
847 of having as a field, and add a constructor.
848 (SYMBOL_VALUE): Update.
849 (SYMBOL_VALUE_ADDRESS): Update.
850 (SET_SYMBOL_VALUE_ADDRESS): Update.
851 (SYMBOL_VALUE_BYTES): Update.
852 (SYMBOL_VALUE_COMMON_BLOCK): Update.
853 (SYMBOL_BLOCK_VALUE): Update.
854 (SYMBOL_VALUE_CHAIN): Update.
855 (SYMBOL_LANGUAGE): Update.
856 (SYMBOL_SECTION): Update.
857 (SYMBOL_OBJ_SECTION): Update.
858 (SYMBOL_SET_LANGUAGE): Update.
859 (SYMBOL_SET_LINKAGE_NAME): Update.
860 (SYMBOL_SET_NAMES): Update.
861 (SYMBOL_NATURAL_NAME): Update.
862 (SYMBOL_LINKAGE_NAME): Update.
863 (SYMBOL_DEMANGLED_NAME): Update.
864 (SYMBOL_SEARCH_NAME): Update.
865 (SYMBOL_MATCHES_SEARCH_NAME): Update.
866 (struct symbol): Update.
867 (struct template_symbol): Update.
868 (struct rust_vtable_symbol): Update.
869 * xcoffread.c (SYMBOL_DUP): Update.
871 2019-11-12 Tom Tromey <tom@tromey.com>
873 * tui/tui-layout.c (show_layout): Set current_layout.
874 (show_source_disasm_command, show_data)
875 (show_source_or_disasm_and_command): Don't set current_layout.
877 2019-11-12 Tom Tromey <tom@tromey.com>
879 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
881 2019-11-12 Tom Tromey <tom@tromey.com>
883 * tui/tui-win.c (resize_message): New global.
884 (show_tui_resize_message): New function.
885 (tui_async_resize_screen): Print message if requested.
886 (_initialize_tui_win): Add tui-resize-message setting.
887 * NEWS: Add entry for new commands.
889 2019-11-11 Tom Tromey <tom@tromey.com>
891 * tui/tui.c (tui_initialize_readline): Add new bindable readline
894 2019-11-11 Christian Biesinger <cbiesinger@google.com>
896 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
898 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
900 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
902 * python/python-internal.h (gdbpy_lookup_static_symbols):
903 Declare new function.
904 * python/python.c (python_GdbMethods): Add
905 gdb.lookup_static_symbols method.
906 * NEWS: Mention gdb.lookup_static_symbols.
908 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
910 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
911 static block of current object file first. Also fix typo in
914 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
916 * stack.c (set_last_displayed_sal): Delete.
917 (last_displayed_sal_valid): Delete.
918 (last_displayed_pspace): Delete.
919 (last_displayed_addr): Delete.
920 (last_displayed_symtab): Delete.
921 (last_displayed_line): Delete.
922 (class last_displayed_symtab_info_type): New.
923 (last_displayed_symtab_info): New static global variable.
924 (print_frame_info): Call methods on last_displayed_symtab_info.
925 (clear_last_displayed_sal): Update header comment, and make use of
926 last_displayed_symtab_info.
927 (last_displayed_sal_is_valid): Likewise.
928 (get_last_displayed_pspace): Likewise.
929 (get_last_displayed_addr): Likewise.
930 (get_last_displayed_symtab): Likewise.
931 (get_last_displayed_line): Likewise.
932 (get_last_displayed_sal): Likewise.
933 * stack.h (clear_last_displayed_sal): Update header comment.
934 (last_displayed_sal_is_valid): Likewise.
935 (get_last_displayed_pspace): Likewise.
936 (get_last_displayed_addr): Likewise.
937 (get_last_displayed_symtab): Likewise.
938 (get_last_displayed_line): Likewise.
939 (get_last_displayed_sal): Likewise.
941 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
943 * stack.c (frame_show_address): Convert return type to bool.
944 * stack.h (frame_show_address): Likewise, and update header
947 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
950 * unittests/vec-utils-selftests.c: New file.
951 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
953 2019-11-10 Tom Tromey <tom@tromey.com>
955 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
956 (tui_highlight_win): Likewise.
957 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
958 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
959 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
960 Don't set can_highlight.
962 2019-11-10 Tom Tromey <tom@tromey.com>
964 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
965 Remove unused declaration.
967 2019-11-08 Tom Tromey <tromey@adacore.com>
969 * top.c (read_command_file): Update.
970 (command_line_input): Make return type const.
971 * python/py-gdb-readline.c: Update.
972 * linespec.c (decode_line_2): Update.
973 * defs.h (command_line_input): Make return type const.
974 * cli/cli-script.c (read_next_line): Make return type const.
975 * ada-lang.c (get_selections): Update.
977 2019-11-06 Christian Biesinger <cbiesinger@google.com>
979 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
980 * mi/mi-main.c (output_cores): Likewise.
981 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
982 (linux_xfer_osdata_modules): Likewise.
983 * remote.c (register_remote_support_xml): Likewise.
984 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
985 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
987 2019-11-06 Tom Tromey <tom@tromey.com>
989 * tui/tui-interp.c: Don't include readline.h.
990 * tui/tui-hooks.c: Don't include readline.h.
991 * symmisc.c: Include tilde.h, not readline.h.
992 * symfile.c: Include tilde.h, not readline.h.
993 * source.c: Include tilde.h, not readline.h.
994 * solib.c: Include tilde.h, not readline.h.
995 * psymtab.c: Include tilde.h, not readline.h.
996 * exec.c: Include tilde.h, not readline.h.
997 * corelow.c: Include tilde.h, not readline.h.
998 * cli/cli-dump.c: Include tilde.h, not readline.h.
999 * cli/cli-cmds.c: Don't include readline.h.
1001 2019-11-05 Tom Tromey <tom@tromey.com>
1003 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1004 (tui_disassemble): Set addr_size.
1005 (tui_disasm_window::set_contents): Use addr_size.
1007 2019-11-05 Tom Tromey <tom@tromey.com>
1009 * rust-lang.c (rust_language_defn): Update.
1010 * python/py-value.c (valpy_string): Call c_get_string.
1011 * p-lang.c (pascal_language_defn): Update.
1012 * opencl-lang.c (opencl_language_defn): Update.
1013 * objc-lang.c (objc_language_defn): Update.
1014 * m2-lang.c (m2_language_defn): Update.
1015 * language.c (unknown_language_defn, auto_language_defn): Update.
1016 (default_get_string): Remove.
1017 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1018 * go-lang.c (go_language_defn): Update.
1019 * f-lang.c (f_language_defn): Update.
1020 * d-lang.c (d_language_defn): Update.
1021 * c-lang.c (c_language_defn, cplus_language_defn)
1022 (asm_language_defn, minimal_language_defn): Update.
1023 * ada-lang.c (ada_language_defn): Update.
1024 * language.h (struct language_defn) <la_get_string>: Remove.
1025 (LA_GET_STRING): Remove.
1026 (default_get_string): Don't declare.
1028 2019-11-05 Tom Tromey <tom@tromey.com>
1030 * tui/tui-source.h (struct tui_source_window): Inline
1031 constructor. Remove destructor.
1032 <style_changed, m_observable>: Move to superclass.
1033 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1034 (struct tui_source_window_base): Move private members to end.
1035 <style_changed, m_observable>: Move from tui_source_window.
1036 * tui/tui-winsource.c (tui_copy_source_line): Move from
1037 tui-source.c. Rename from copy_source_line. Add special handling
1038 for negative line number.
1039 (tui_source_window_base::style_changed): Move from
1041 (tui_source_window_base): Register observer.
1042 (~tui_source_window_base): New.
1043 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1045 (tui_source_window::set_contents): Use tui_copy_source_line.
1046 (tui_source_window::tui_source_window): Move to tui-source.h.
1047 (tui_source_window::~tui_source_window): Remove.
1048 (tui_source_window::style_changed): Move to superclass.
1049 * tui/tui-disasm.c (tui_disassemble): Create string file with
1050 styling, when possible. Add "addr_size" parameter.
1051 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1052 Don't compute maximum size.
1053 (len_without_escapes): New function
1055 2019-11-05 Tom Tromey <tom@tromey.com>
1057 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1059 * tui/tui-winsource.c (tui_show_source_line): Update.
1060 * tui/tui-source.c (tui_source_window::set_contents): Update.
1061 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1063 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1065 * symtab.h (gdb_static_assert): Put && operator at the beginning
1066 of the line instead of the end.
1068 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1070 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1071 and sizeof (symbol).
1072 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1074 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1076 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1077 * configure.host: Mark *-*-solaris2.10* obsolete.
1078 * configure.tgt: Mark Solaris < 11 obsolete.
1079 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1080 Update target triplet.
1082 2019-11-01 Tom Tromey <tromey@adacore.com>
1084 * utils.c (print_sys_errmsg): Simplify.
1086 2019-11-01 Tom Tromey <tromey@adacore.com>
1088 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1090 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1092 * configure: Regenerate.
1093 * configure.ac: Remove check for strerror_r.
1094 * gdbsupport/common.m4: Check for strerror_r.
1096 2019-11-01 Luis Machado <luis.machado@linaro.org>
1100 * arm-tdep.c (arm_per_objfile): Rename to ...
1101 (arm_per_bfd): ... this.
1102 (arm_objfile_data_key): Rename to ...
1103 (arm_bfd_data_key): ... this.
1104 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1106 (arm_record_special_symbol): Likewise.
1108 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1110 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1112 * c-typeprint.c (c_print_typedef): Likewise.
1113 * f-typeprint.c (f_print_typedef): Likewise.
1114 * m2-typeprint.c (m2_print_typedef): Likewise.
1115 * p-typeprint.c (pascal_print_typedef): Likewise.
1116 * rust-lang.c (rust_print_typedef): Likewise.
1117 * symtab.c (print_symbol_info): Print a newline after calling
1120 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1122 * symtab.c (info_module_cmdlist): New variable.
1123 (info_module_command): New function.
1124 (search_module_symbols): New function.
1125 (info_module_subcommand): New function.
1126 (struct info_modules_var_func_options): New struct.
1127 (info_modules_var_func_options_defs): New variable.
1128 (make_info_modules_var_func_options_def_group): New function.
1129 (info_module_functions_command): New function.
1130 (info_module_variables_command): New function.
1131 (info_module_var_func_command_completer): New function.
1132 (_initialize_symtab): Register new 'info module functions' and
1133 'info module variables' commands.
1134 * symtab.h (typedef symbol_search_in_module): New typedef.
1135 (search_module_symbols): Declare new function.
1136 * NEWS: Mention new commands.
1138 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1140 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1141 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1142 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1144 (scan_partial_symbols): Only create partial module symbols for non
1146 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1148 * symtab.c (search_domain_name): Likewise.
1149 (search_symbols): Likewise.
1150 (print_symbol_info): Likewise.
1151 (symtab_symbol_info): Likewise.
1152 (info_modules_command): New function.
1153 (_initialize_symtab): Register 'info modules' command.
1154 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1155 * NEWS: Mention new 'info modules' command.
1157 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1159 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1160 and $_gdb_maint_setting_str.
1162 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1164 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1165 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1166 (str_value_from_setting, gdb_setting_str_internal_fn)
1167 (gdb_maint_setting_str_internal_fn): New functions.
1168 (_initialize_cli_cmds): Define the new convenience functions.
1169 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1170 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1172 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1174 * agent.c (set_can_use_agent): When the setting is turned on,
1175 look up agent symbols if we don't have them yet.
1176 (agent_new_objfile): Don't look up agent symbols when the agent
1179 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1181 * config.in: Regenerate.
1183 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1185 * configure: Regenerate.
1186 * configure.ac: Check for strerror_r.
1187 * gdbsupport/common-utils.h (safe_strerror): Change return value
1188 to const char * and document that this function is now threadsafe.
1189 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1190 thread_local and call strerror_r, if available.
1191 * utils.c (perror_string): Update.
1192 (print_sys_errmsg): Update.
1194 2019-10-31 Luis Machado <luis.machado@linaro.org>
1196 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1198 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1199 objfile to fetch per-bfd data.
1200 (arm_find_exidx_entry): Likewise.
1202 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1204 * gdbsupport/agent.c (debug_agent): Change type to bool.
1205 (use_agent): Likewise.
1206 (all_agent_symbols_look_up): Likewise.
1207 (agent_loaded_p): Change return value to bool.
1208 (agent_look_up_symbols): Update.
1209 (agent_capability_check): Change return value to bool.
1210 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1211 (debug_agent): Change type to bool.
1212 (use_agent): Likewise.
1213 (agent_capability_check): Change return value to bool.
1215 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1217 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1218 (build_minimal_symbol_hash_tables): Code to clear the table moved
1219 to clear_minimal_symbol_hash_tables.
1220 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1223 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1225 * infcmd.c: Remove includes.
1226 * infrun.c: Remove includes.
1228 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1230 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1231 (grow_vect): Remove declaration.
1232 (ada_type_of_array): Remove declaration.
1233 (ada_update_initial_language): Remove declaration.
1234 (ada_fold_name): Remove declaration.
1235 (ada_fill_in_ada_prototype): Remove declaration.
1236 (user_select_syms): Remove declaration.
1237 (get_selections): Remove declaration.
1238 (ada_tag_type): Remove declaration.
1239 (ada_value_tag): Remove declaration.
1240 (ada_is_others_clause): Remove declaration.
1241 (ada_in_variant): Remove declaration.
1242 (ada_value_struct_elt): Remove declaration.
1243 (ada_attribute_name): Remove declaration.
1244 (ada_system_address_type): Remove declaration.
1245 * ada-lang.c (ada_watch_location_expression): Make static.
1246 (GROW_VECT): Move here from ada-lang.h.
1247 (grow_vect): Make static.
1248 (ada_update_initial_language): Make static.
1249 (ada_fold_name): Make static.
1250 (ada_type_of_array): Make static.
1251 (encoded_ordered_before): Move up.
1252 (sort_choices): Move up.
1253 (print_signatures): Move up.
1254 (ada_print_symbol_signature): Move up.
1255 (get_selections): Move up and make static.
1256 (user_select_syms): Move up and make static.
1257 (ada_value_struct_elt): Move up and make static.
1258 (ada_tag_type): Make static.
1259 (ada_value_tag): Make static.
1260 (ada_is_others_clause): Make static.
1261 (ada_in_variant): Make static.
1262 (ada_attribute_name): Make static.
1264 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1266 * ada-lang.c: Remove includes.
1267 * ada-typeprint.c: Remove includes.
1268 * ada-valprint.c: Remove includes.
1270 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1272 * addrmap.c: Add static assertions of type size, moved from
1273 _initialize_addrmap.
1274 (_initialize_addrmap): Remove.
1276 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1278 * coffread.c (record_minimal_symbol): Update.
1279 (process_coff_symbol): Update.
1280 * dbxread.c (read_dbx_symtab): Update.
1281 * dwarf2read.c (add_partial_symbol): Update.
1282 (fixup_go_packaging): Update.
1283 (load_partial_dies): Update.
1284 (new_symbol): Update.
1285 * elfread.c (record_minimal_symbol): Change signature to use
1286 gdb::string_view instead of name+len.
1287 (elf_symtab_read): Update.
1288 (elf_rel_plt_read): Update.
1289 * mdebugread.c (parse_partial_symbols): Update.
1290 (handle_psymbol_enumerators): Update.
1291 (new_symbol): Update.
1292 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1293 to use gdb::string_view instead of name+len.
1294 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1295 * psympriv.h (add_psymbol_to_list): Likewise.
1296 * psymtab.c (add_psymbol_to_bcache): Likewise.
1297 (add_psymbol_to_list): Likewise.
1298 * stabsread.c (define_symbol): Update.
1299 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1300 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1301 (symbol_set_names): Likewise.
1302 * xcoffread.c (scan_xcoff_symtab): Update.
1304 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1306 * symtab.h (symbol_set_names): Document that copy_name must be
1307 set to true for non-nullterminated strings.
1308 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1309 linkage_name if the entry was not found and we need to demangle.
1311 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1313 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1314 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1315 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1316 * gdbsupport/gdb_binary_search.h: New file.
1318 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1320 * NEWS: Mention new --with-system-gdbinit-dir option.
1321 * config.in: Regenerate.
1322 * configure: Regenerate.
1323 * configure.ac: Add new option --with-system-gdbinit-dir.
1324 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1325 for a ".gdb" suffix.
1326 * main.c (get_init_files): Change system_gdbinit argument to
1327 a vector and return the files in SYSTEM_GDBINIT_DIR in
1328 addition to SYSTEM_GDBINIT.
1329 (captured_main_1): Update.
1330 (print_gdb_help): Update.
1331 * top.c (print_gdb_configuration): Also print the value of
1334 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1336 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1337 that takes gdb::string_view arguments.
1339 2019-10-26 Tom de Vries <tdevries@suse.de>
1341 * aarch64-linux-tdep.c: Fix typos in comments.
1342 * aarch64-tdep.c: Same.
1344 * amd64-nat.c: Same.
1346 * arch/aarch64-insn.c: Same.
1348 * breakpoint.h: Same.
1351 * cli/cli-decode.c: Same.
1352 * cli/cli-script.c: Same.
1353 * cli/cli-utils.h: Same.
1354 * coff-pe-read.c: Same.
1356 * compile/compile-cplus-symbols.c: Same.
1357 * compile/compile-object-run.c: Same.
1358 * completer.c: Same.
1360 * cp-support.c: Same.
1362 * dwarf-index-write.c: Same.
1363 * dwarf2-frame.c: Same.
1364 * dwarf2-frame.h: Same.
1366 * frame-base.h: Same.
1371 * guile/scm-objfile.c: Same.
1372 * i386-tdep.c: Same.
1373 * i386-tdep.h: Same.
1376 * linux-nat.c: Same.
1377 * m68k-tdep.c: Same.
1380 * mi/mi-cmd-disas.c: Same.
1381 * mi/mi-getopt.h: Same.
1382 * mi/mi-main.c: Same.
1384 * nat/aarch64-sve-linux-sigcontext.h: Same.
1386 * ppc-linux-nat.c: Same.
1387 * ppc-linux-tdep.c: Same.
1389 * progspace.h: Same.
1390 * prologue-value.h: Same.
1391 * python/py-evtregistry.c: Same.
1392 * python/py-instruction.h: Same.
1393 * record-btrace.c: Same.
1394 * record-full.c: Same.
1396 * rs6000-tdep.c: Same.
1398 * sol-thread.c: Same.
1399 * sparc-sol2-tdep.c: Same.
1400 * sparc64-tdep.c: Same.
1401 * stabsread.c: Same.
1405 * tracepoint.c: Same.
1406 * tui/tui-data.h: Same.
1407 * tui/tui-io.c: Same.
1408 * tui/tui-win.c: Same.
1410 * unittests/rsp-low-selftests.c: Same.
1411 * user-regs.h: Same.
1422 * xtensa-tdep.c: Same.
1424 2019-10-25 Ali Tamur <tamur@google.com>
1426 * charset.c (find_charset_names): Reflect API change.
1428 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1430 * symtab.c (struct demangled_name_entry): Change demangled name
1431 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1432 part of the struct anymore.
1433 (symbol_set_names): No longer obstack allocate + copy the demangled
1434 name, just store the allocated name from bfd.
1436 2019-10-25 Tom Tromey <tromey@adacore.com>
1438 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1439 (bsearch_cie_cmp, add_cie): Remove.
1440 (find_cie): Reimplement.
1441 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1442 (dwarf2_build_frame_info): Update.
1444 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1447 * symfile.c (reread_symbols): Call forget_cached_source_info to
1448 clear the stale source cache.
1450 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1452 * configure: Regenerate.
1453 * configure.ac: Remove code that sets python_has_threads.
1455 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1457 * config.in: Regenerate.
1458 * configure: Regenerate.
1459 * configure.ac: Remove the code that uses sed to get the python
1460 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1462 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1464 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1467 2019-10-23 Tom Tromey <tom@tromey.com>
1469 * arc-tdep.c: Remove ".." from include.
1470 * frv-tdep.c: Remove ".." from include.
1471 * lm32-tdep.c: Remove ".." from include.
1472 * microblaze-tdep.c: Remove ".." from include.
1473 * or1k-tdep.h: Remove ".." from include.
1474 * s12z-tdep.c: Remove ".." from include.
1475 * Makefile.in (OPCODES_CFLAGS): Add comment.
1476 (TOP_CFLAGS): New variable.
1477 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1479 2019-10-23 Tom Tromey <tom@tromey.com>
1481 * Makefile.in (READLINE_DIR): Update.
1483 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1485 * infcall.c (call_function_by_hand_dummy): Fix the function
1486 comment. And extract out a code section into...
1487 (reserve_stack_space): ...this new function.
1489 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1491 * infcall.c (value_arg_coerce): Remove an unused parameter.
1492 (call_function_by_hand_dummy): Update the call to
1495 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497 * infcall.c (call_function_by_hand_dummy): Refactor.
1499 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1503 2019-10-23 Tom Tromey <tom@tromey.com>
1505 * configure: Rebuild.
1506 * configure.ac: Don't check for sigprocmask.
1507 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1509 2019-10-23 Tom Tromey <tom@tromey.com>
1511 * configure: Rebuild.
1512 * acinclude.m4: Use m4_include, not sinclude.
1514 2019-10-23 Tom de Vries <tdevries@suse.de>
1516 PR breakpoints/24687
1517 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1519 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1521 * symtab.c (struct demangled_name_entry) <language>: Change from
1522 bitfield to regular variable.
1524 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1526 * symtab.c (struct demangled_name_entry): Add a constructor.
1527 (free_demangled_name_entry): New function to call the destructor
1528 for demangled_name_entry.
1529 (create_demangled_names_hash): Pass free_demangled_name_entry to
1531 (symbol_set_names): Call placement new for demangled_name_entry.
1532 * utils.c: No longer include xxhash.h here, now that fast_hash
1533 is inlined in the header.
1534 * utils.h: Instead, include it here.
1536 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1538 * Makefile.in: Link with libxxhash.
1539 * config.in: Regenerate.
1540 * configure: Regenerate.
1541 * configure.ac: Search for libxxhash.
1542 * utils.c (fast_hash): Use xxhash if present.
1544 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1546 * utils.h (fast_hash): New function.
1547 * symtab.c (hash_demangled_name_entry): Call new function
1550 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1552 * symtab.c (struct demangled_name_entry): Change type of mangled
1553 to gdb::string_view. Also adds a constructor that takes the
1555 (hash_demangled_name_entry): Update.
1556 (eq_demangled_name_entry): Update.
1557 (free_demangled_name_entry): New function to call the destructor
1558 now that this is not a POD anymore.
1559 (create_demangled_names_hash): Pass free_demangled_name_entry to
1561 (symbol_set_names): Update.
1563 2019-10-21 Ali Tamur <tamu@google.com>
1565 * dwarf2read.c (dir_index): Change type.
1566 (file_name_index): Likewise.
1567 (line_header::include_dir_at): Change comment and implementation on
1568 whether it is DWARF 5.
1569 (line_header::is_valid_file_index): New function.
1570 (line_header::file_name_at): Change comment and implementation on
1571 whether it is DWARF 5.
1572 (line_header::file_names): Change to private field renamed as
1573 m_file_names and introduce a new accessor method.
1574 (line_header::file_names_size): New method.
1575 (line_header::include_dirs): Change to private field and rename as
1577 (dw2_get_file_names_reader): Define local var at a smaller scope and
1579 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1580 (process_structure_scope): Likewise.
1581 (line_header::add_include_dir): Change message and reflect renaming.
1582 (line_header::add_file_name): Likewise.
1583 (read_formatted_entries): Handle DW_FORM_data16.
1584 (dwarf_decode_line_header): Fix line header length calculation.
1585 (psymtab_include_file_name): Change comment and API.
1586 (lnp_state_machine::m_file): Update comment and reflect type change.
1587 (lnp_state_machine::record_line): Reflect type change.
1588 (dwarf_decode_lines): Reflect API change.
1589 (file_file_name): Likewise.
1590 (file_full_name): Likewise.
1592 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1594 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1596 2019-10-21 Tom Tromey <tom@tromey.com>
1598 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1600 2019-10-21 Tom Tromey <tom@tromey.com>
1602 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1603 NM_H. Use AC_CONFIG_LINKS.
1604 * configure: Rebuild.
1605 * Makefile.in (NM_H): New variable.
1606 (generated_files): Add NM_H. Remove gcore.
1607 (nm.h, stamp-nmh): New targets.
1609 2019-10-20 Tom Tromey <tom@tromey.com>
1611 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1612 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1614 (put_objfile_before): Now static.
1616 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1618 * gdbsupport/common-utils.h (startswith): Change return type to
1621 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1623 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1624 * breakpoint.c (bp_locations_compare): Rename to...
1625 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1626 (update_global_location_list): Use std::sort instead of qsort.
1627 * buildsym.c (compare_line_numbers): Rename to...
1628 (lte_is_less_than): ...this, and change to std::sort semantics.
1629 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1631 * disasm.c (compare_lines): Rename to...
1632 (line_is_less_than): ...this, and change to std::sort semantics.
1633 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1635 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1636 (fde_is_less_than): ...this, and change to std::sort semantics.
1637 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1638 * mdebugread.c (compare_blocks):
1639 (block_is_less_than): ...this, and change to std::sort semantics.
1640 (sort_blocks): Call std::sort instead of qsort.
1641 * objfiles.c (qsort_cmp): Rename to...
1642 (sort_cmp): ...this, and change to std::sort semantics.
1643 (update_section_map): Call std::sort instead of qsort.
1644 * remote.c (compare_pnums): Remove.
1645 (map_regcache_remote_table): Call std::sort instead of qsort.
1646 * utils.c (compare_positive_ints): Remove.
1647 * utils.h (compare_positive_ints): Remove.
1648 * xcoffread.c (compare_lte): Remove.
1649 (arrange_linetable): Call std::sort instead of qsort.
1651 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1653 * symfile.c (init_entry_point_info): Fix typo.
1654 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1656 2019-10-18 Tom de Vries <tdevries@suse.de>
1658 * aarch64-tdep.c: Fix typos in comments.
1660 * ada-tasks.c: Same.
1661 * alpha-tdep.c: Same.
1662 * alpha-tdep.h: Same.
1663 * amd64-nat.c: Same.
1664 * amd64-windows-tdep.c: Same.
1667 * arch-utils.c: Same.
1668 * arm-nbsd-tdep.c: Same.
1671 * blockframe.c: Same.
1674 * coff-pe-read.c: Same.
1676 * cris-tdep.c: Same.
1677 * darwin-nat.c: Same.
1681 * dtrace-probe.c: Same.
1682 * dwarf-index-write.c: Same.
1683 * dwarf2-frame-tailcall.c: Same.
1684 * dwarf2-frame.c: Same.
1685 * dwarf2read.c: Same.
1687 * exceptions.c: Same.
1688 * fbsd-tdep.c: Same.
1692 * gnu-v3-abi.c: Same.
1694 * h8300-tdep.c: Same.
1695 * hppa-tdep.c: Same.
1696 * i386-linux-tdep.c: Same.
1697 * i386-tdep.c: Same.
1698 * ia64-libunwind-tdep.c: Same.
1699 * ia64-tdep.c: Same.
1703 * linux-nat.c: Same.
1704 * linux-thread-db.c: Same.
1705 * machoread.c: Same.
1706 * mdebugread.c: Same.
1708 * mn10300-tdep.c: Same.
1709 * namespace.c: Same.
1711 * opencl-lang.c: Same.
1712 * or1k-tdep.c: Same.
1714 * ppc-linux-nat.c: Same.
1715 * ppc-linux-tdep.c: Same.
1716 * ppc-sysv-tdep.c: Same.
1719 * record-btrace.c: Same.
1720 * record-full.c: Same.
1721 * remote-fileio.c: Same.
1723 * rs6000-tdep.c: Same.
1724 * s12z-tdep.c: Same.
1725 * score-tdep.c: Same.
1729 * sol-thread.c: Same.
1730 * solib-svr4.c: Same.
1733 * sparc-nat.c: Same.
1734 * sparc-sol2-tdep.c: Same.
1735 * sparc-tdep.c: Same.
1736 * sparc64-tdep.c: Same.
1737 * stabsread.c: Same.
1741 * target-descriptions.c: Same.
1742 * target-float.c: Same.
1749 * windows-nat.c: Same.
1750 * xcoffread.c: Same.
1751 * xstormy16-tdep.c: Same.
1752 * xtensa-tdep.c: Same.
1754 2019-10-17 Tom Tromey <tromey@adacore.com>
1756 * configure: Rebuild.
1757 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1758 in AC_CONFIG_FILES invocation.
1759 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1760 new-style config.status invocation.
1762 2019-10-17 Tom de Vries <tdevries@suse.de>
1764 * arm-nbsd-nat.c: Fix typos in comments.
1766 * darwin-nat-info.c: Same.
1767 * dwarf2read.c: Same.
1769 * event-top.c: Same.
1772 * hppa-tdep.c: Same.
1773 * i386-tdep.c: Same.
1776 * mdebugread.c: Same.
1777 * moxie-tdep.c: Same.
1778 * nto-procfs.c: Same.
1780 * ppc-linux-tdep.c: Same.
1782 * riscv-tdep.c: Same.
1783 * s390-tdep.c: Same.
1785 * sparc-linux-tdep.c: Same.
1786 * sparc-nat.c: Same.
1788 * target-descriptions.c: Same.
1792 2019-10-16 Tom Tromey <tom@tromey.com>
1794 * objfiles.h (struct objfile) <original_name>: Now const.
1796 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1798 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1799 pass on to sigsetjmp's second argument.
1800 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1802 2019-10-16 Keith Seitz <keiths@redhat.com>
1805 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1806 sections whose size is greater than the file size.
1808 2019-10-16 Jim Wilson <jimw@sifive.com>
1810 * riscv-tdep.c (riscv_gcc_target_options): New.
1811 (riscv_gnu_triplet_regexp): New.
1812 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1813 set_gdbarch_gnu_triplet_regexp.
1815 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1817 * Makefile.in: Add xml-builtin.h.
1818 * features/feature_to_c.sh: Add an include for xml-builtin.h
1819 to ensure that the compiler checks that the types match.
1820 * xml-builtin.h: New file.
1821 * xml-support.c (fetch_xml_builtin): Add missing const.
1822 * xml-support.h: Remove declaration of xml_builtins.
1824 2019-10-16 Tom de Vries <tdevries@suse.de>
1827 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1828 (amd64_classify_aggregate): ... here.
1829 (amd64_classify_aggregate_field): Handled fiels of nested structs
1832 2019-10-16 Tom de Vries <tdevries@suse.de>
1835 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1836 that handles 'theclass'.
1838 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1840 * linespec.c (decode_digits_ordinary): Update comment.
1841 * make-target-delegates: No longer need to handle VEC case.
1842 * memrange.c (normalize_mem_ranges): Update comment.
1843 * namespace.c (add_using_directive): Update comment.
1844 * objc-lang.c (uniquify_strings): Update comment.
1845 * ppc-linux-nat.c (struct thread_points): Update comment.
1846 * probe.h (find_probes_in_objfile): Update comment.
1847 * target.h (enum flash_preserve_mode): Update comment.
1848 * varobj.c (varobj_restrict_range): Update comment.
1849 * varobj.h (varobj_list_children): Update comment.
1851 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1853 * Makefile.in: Remove references to vec.h and vec.c.
1854 * aarch64-tdep.c: No longer include vec.h.
1855 * ada-lang.c: Likewise.
1856 * ada-lang.h: Likewise.
1857 * arm-tdep.c: Likewise.
1859 * breakpoint.h: Likewise.
1860 * charset.c: Likewise.
1861 * cp-support.h: Likewise.
1862 * dtrace-probe.c: Likewise.
1863 * dwarf2read.c: Likewise.
1864 * extension.h: Likewise.
1865 * gdb_bfd.c: Likewise.
1866 * gdbsupport/gdb_vecs.h: Likewise.
1867 * gdbsupport/vec.c: Remove.
1868 * gdbsupport/vec.h: Remove.
1869 * gdbthread.h: Likewise.
1870 * guile/scm-type.c: Likewise.
1871 * inline-frame.c: Likewise.
1872 * machoread.c: Likewise.
1873 * memattr.c: Likewise.
1874 * memrange.h: Likewise.
1875 * namespace.h: Likewise.
1876 * nat/linux-btrace.h: Likewise.
1877 * osdata.c: Likewise.
1878 * parser-defs.h: Likewise.
1879 * progspace.h: Likewise.
1880 * python/py-type.c: Likewise.
1881 * record-btrace.c: Likewise.
1882 * rust-exp.y: Likewise.
1883 * solib-target.c: Likewise.
1884 * stap-probe.c: Likewise.
1885 * target-descriptions.c: Likewise.
1886 * target-memory.c: Likewise.
1887 * target.h: Likewise.
1888 * varobj.c: Likewise.
1889 * varobj.h: Likewise.
1890 * xml-support.h: Likewise.
1892 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1895 Update for new std::vector based implementation.
1896 (process_psymtab_comp_unit_reader): Likewise.
1897 (scan_partial_symbols): Likewise.
1898 (recursively_compute_inclusions): Likewise.
1899 (compute_compunit_symtab_includes): Likewise.
1900 (process_imported_unit_die): Likewise.
1901 (queue_and_load_dwo_tu): Likewise.
1902 (follow_die_sig_1): Likewise.
1903 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1904 (typedef dwarf2_per_cu_ptr): Remove.
1905 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1907 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1908 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1909 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1910 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1913 2019-10-15 Tom Tromey <tromey@adacore.com>
1915 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1918 2019-10-15 Tom Tromey <tromey@adacore.com>
1920 * windows-nat.c (windows_nat_target::fetch_registers)
1921 (windows_nat_target::store_registers): Rename "pid" to "tid".
1923 2019-10-15 Tom Tromey <tromey@adacore.com>
1925 * gdbarch.h, gdbarch.c: Rebuild.
1926 * gdbarch.sh (gcc_target_options): Change return type to
1928 * compile/compile.c (get_args): Update.
1929 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1930 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1932 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1934 * arch-utils.c (default_gcc_target_options): Return std::string.
1935 * arch-utils.h (default_gcc_target_options): Return std::string.
1936 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1938 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1940 * breakpoint.c (breakpoint_chain): Make static.
1941 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1942 of accessing breakpoint_chain.
1944 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1946 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1947 to a gdb::function_view and return value to bool.
1948 * breakpoint.h (iterate_over_breakpoints): Likewise.
1949 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1950 (pop_dummy_frame): Update.
1951 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1952 (gdbscm_breakpoints): Update.
1953 * python/py-breakpoint.c (build_bp_list): Update.
1954 (gdbpy_breakpoints): Update.
1955 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1957 (bpfinishpy_handle_stop): Update.
1958 (bpfinishpy_handle_exit): Update.
1959 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1960 (svr4_update_solib_event_breakpoints): Update.
1962 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1964 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1965 when unwrapping single-field structs.
1967 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1969 * dwarf2read.c: Remove includes.
1971 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1973 * ui-out.c (ui_out::call_do_message): Silence
1974 -Wformat-nonliteral warning.
1976 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1978 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1979 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1980 include: readline/tilde.h.
1982 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1984 * remote.c (remote_target::get_trace_status): Remove declaration of
1985 trace_regblock_size.
1987 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1989 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1990 (show_user): Remove declaration of cmdlist.
1991 * cli/cli-cmds.h (max_user_call_depth): Declare.
1992 * cli/cli-script.c (execute_user_command): Remove declaration
1993 of max_user_call_depth.
1995 2019-10-11 Jim Wilson <jimw@sifive.com>
1997 * gdbsupport/print-utils.h (pulongest): Fix comment.
1998 (plongest): Likewise.
1999 (phex): Add missing comment, mention leading zeros.
2000 (phex_nz): Add mention of no leading zeros to comment.
2002 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2003 plongest instead of unsigned long long cast.
2005 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2007 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2008 for external_editor_command and gdbtk_test.
2010 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2012 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2013 * varobj.c (varobjdebug): Move comment to...
2014 * varobj.h (varobjdebug): ...here, and declare.
2016 2019-10-09 Tom Tromey <tom@tromey.com>
2018 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2021 2019-10-09 Tom Tromey <tom@tromey.com>
2023 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2024 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2025 * tui/tui-command.c (tui_cmd_window::resize)
2026 (tui_refresh_cmd_win): Update.
2027 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2028 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2029 * tui/tui-data.c (~tui_gen_win_info): Remove.
2030 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2031 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2032 (tui_redisplay_readline, tui_mld_flush)
2033 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2034 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2035 (tui_data_window::erase_data_content)
2036 (tui_data_item_window::rerender)
2037 (tui_data_item_window::refresh_window): Update.
2038 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2039 (box_win, tui_gen_win_info::make_window)
2040 (tui_gen_win_info::make_visible): Update.
2041 (tui_delete_win): Remove.
2042 * tui/tui-winsource.c
2043 (tui_source_window_base::do_erase_source_content): Update.
2044 (tui_show_source_line, tui_source_window_base::update_tab_width)
2045 (tui_source_window_base::update_exec_info): Update.
2046 * tui/tui-data.h (struct curses_deleter): New.
2047 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2048 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2050 2019-10-09 Tom Tromey <tom@tromey.com>
2052 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2054 2019-10-09 Tom Tromey <tom@tromey.com>
2056 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2057 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2059 2019-10-09 Tom Tromey <tom@tromey.com>
2061 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2062 window height directly.
2063 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2065 * tui/tui-layout.c (tui_default_win_height): Remove.
2066 (tui_default_win_viewport_height): Remove.
2068 2019-10-09 Tom Tromey <tom@tromey.com>
2070 * tui/tui.h: Remove comments.
2072 2019-10-09 Tom de Vries <tdevries@suse.de>
2074 * python/lib/gdb/printer/bound_registers.py: Use
2075 '^builtin_type_bound128' as regexp argument for
2076 add_builtin_pretty_printer.
2078 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2080 * guile/guile.c (guile_extension_script_ops): Remove forward
2081 declaration and mark as static.
2082 (guile_script_ops): Likewise.
2083 (extension_language_guile): Move further down in the file so
2084 it can reference the definitions for guile_{extension_,}script_ops.
2086 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2088 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2089 except SORTL, DFLTCC, and KDSA.
2091 2019-10-08 Tom Tromey <tromey@adacore.com>
2093 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2094 (struct safe_symbol_file_add_args): Remove.
2096 2019-10-08 Tom Tromey <tromey@adacore.com>
2098 * windows-nat.c: Don't include buildsym-legacy.h.
2100 2019-10-08 Tom Tromey <tromey@adacore.com>
2102 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2104 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2106 * gdbtypes.c (overload_debug): Move comment to header.
2107 * gdbtypes.h (overload_debug): Declare.
2108 * valops.c: Remove declaration of overload_debug, instead
2111 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2113 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2115 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2117 * language.h (lang_frame_mismatch_warn): ... here. Also add
2119 * top.c (lang_frame_mismatch_warn): Remove declaration.
2120 (check_frame_language_change): Pass lang_frame_mismatch_warn
2123 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2125 * c-lang.h (vtbl_ptr_name): Declare.
2126 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2128 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2130 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2132 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2135 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2137 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2138 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2139 * ctfread.c: New file.
2140 * ctfread.h: New file.
2141 * elfread.c: Include ctfread.h.
2142 (struct elfinfo text_p): New member ctfsect.
2143 (elf_locate_sections): Mark CTF section.
2144 (elf_symfile_read): Call elfctf_build_psymtabs.
2145 * Makefile.in (LIBCTF): Add.
2148 (DIST): Add ctfread.c.
2150 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2152 * ctfread.c (struct nextfield): Renamed to ...
2153 (struct ctf_nextfield): ... this.
2154 (struct field_info): Renamed to ...
2155 (strut ctf_field_info): ... this.
2156 (attach_fields_to_type): Update for renamed structures.
2157 (ctf_add_member_cb): Likewise.
2158 (ctf_add_enum_member_cb): Likewise.
2159 (process_struct_members): Likewise.
2160 (process_enum_type): Likewise.
2162 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2164 * tracectf.h: Rename, was ctf.h.
2165 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2166 * tracefile.c: Likewise.
2167 * tracepoint.c: Remove unused include ctf.h.
2168 * mi/mi-main.c: Likewise.
2169 * Makefile.in Replace ctf.c with tracectf.c.
2171 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2173 * version.in: Change version number to "9.0.50.DATE-git".
2175 2019-10-03 Tom Tromey <tom@tromey.com>
2178 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2180 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2182 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2183 cp_search_name_hash.
2184 * NEWS: Add entry about nested function support.
2186 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2187 Andrew Burgess <andrew.burgess@embecosm.com>
2189 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2190 for nested static variables when searchin VAR_DOMAIN.
2191 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2192 global scope, update comment.
2193 (add_partial_subprogram): Call add_partial_subprogram recursively
2194 for nested subroutines when processinng Fortran.
2195 (load_partial_dies): Process the child entities of a subprogram
2196 when processing Fortran.
2197 (partial_die_parent_scope): Handle building scope
2198 for Fortran nested functions.
2199 (process_die): Record that nested functions have a scope.
2200 (new_symbol): Always record Fortran subprograms on the global
2202 (determine_prefix): How to build the prefix for Fortran
2205 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2207 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2208 have just sent the thread a SIGSTOP and are waiting for it to
2211 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2213 * btrace.c (btrace_add_pc): Remove whitespace before the template
2214 parameter in 'std::vector <...>'.
2215 (parse_xml_btrace_block): Likewise.
2216 (btrace_maint_decode_pt): Likewise.
2217 (btrace_maint_update_packets): Likewise.
2218 (btrace_maint_print_packets): Likewise.
2219 * btrace.h (struct btrace_maint_info): Likewise.
2220 * dwarf2read.c (struct type_unit_group): Likewise.
2221 (build_type_psymtabs_reader): Likewise.
2222 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2223 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2224 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2226 2019-10-03 Tom de Vries <tdevries@suse.de>
2228 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2229 the first line of the help text for set/show style metadata.
2231 2019-10-02 Tom Tromey <tromey@adacore.com>
2233 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2234 * gdbsupport/common-inferior.c: New file.
2235 * infcmd.c (startup_with_shell): Don't define.
2236 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2237 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2238 * inferior.h (startup_with_shell): Don't declare.
2240 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2242 * gdbsupport/gdb_assert.h: Include errors.h.
2243 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2245 2019-10-02 Tom Tromey <tromey@adacore.com>
2247 * NEWS: Add $_ada_exception entry.
2248 * ada-lang.c (struct ada_catchpoint): Add constructor.
2249 <m_kind>: New member.
2250 (allocate_location_exception, re_set_exception): Remove
2252 (should_stop_exception): Compute $_ada_exception.
2253 (check_status_exception, print_it_exception)
2254 (print_one_exception, print_mention_exception): Remove
2256 (allocate_location_catch_exception, re_set_catch_exception)
2257 (check_status_exception, print_it_catch_exception)
2258 (print_one_catch_exception, print_mention_catch_exception)
2259 (print_recreate_catch_exception)
2260 (allocate_location_catch_exception_unhandled)
2261 (re_set_catch_exception_unhandled)
2262 (check_status_exception, print_it_catch_exception_unhandled)
2263 (print_one_catch_exception_unhandled)
2264 (print_mention_catch_exception_unhandled)
2265 (print_recreate_catch_exception_unhandled)
2266 (allocate_location_catch_assert, re_set_catch_assert)
2267 (check_status_assert, print_it_catch_assert)
2268 (print_one_catch_assert, print_mention_catch_assert)
2269 (print_recreate_catch_assert)
2270 (allocate_location_catch_handlers, re_set_catch_handlers)
2271 (check_status_handlers, print_it_catch_handlers)
2272 (print_one_catch_handlers, print_mention_catch_handlers)
2273 (print_recreate_catch_handlers): Remove.
2274 (create_ada_exception_catchpoint): Update.
2275 (initialize_ada_catchpoint_ops): Update.
2277 2019-10-02 Tom Tromey <tromey@adacore.com>
2279 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2280 (create_excep_cond_exprs): Simplify exception string computation.
2281 (ada_exception_catchpoint_cond_string): Likewise.
2283 2019-10-02 Tom Tromey <tromey@adacore.com>
2285 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2286 * ada-lang.c (lesseq_defined_than): Handle
2288 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2290 (dwarf2_has_info): Likewise.
2291 (new_symbol): Set maybe_copied on symbol when
2293 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2295 <can_copy>: New member.
2296 * elfread.c (record_minimal_symbol): Set maybe_copied
2297 on symbol when appropriate.
2298 (elf_symfile_read): Update call to dwarf2_has_info.
2299 * minsyms.c (lookup_minimal_symbol_linkage): New
2301 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2302 * symtab.c (get_symbol_address, get_msymbol_address):
2304 * symtab.h (get_symbol_address, get_msymbol_address):
2306 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2308 (struct symbol, struct minimal_symbol) <maybe_copied>:
2311 2019-10-02 Tom Tromey <tromey@adacore.com>
2313 * source.c (struct current_source_location): New.
2314 (current_source_key): New global.
2315 (current_source_symtab, current_source_line)
2316 (current_source_pspace): Remove.
2317 (get_source_location): New function.
2318 (get_current_source_symtab_and_line)
2319 (set_default_source_symtab_and_line)
2320 (set_current_source_symtab_and_line)
2321 (clear_current_source_symtab_and_line, select_source_symtab)
2322 (info_source_command, print_source_lines_base)
2323 (info_line_command, search_command_helper, _initialize_source):
2326 2019-10-02 Tom Tromey <tromey@adacore.com>
2328 * source.c (select_source_symtab): Don't call
2329 decode_line_with_current_source.
2331 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2333 * symtab.c (lookup_global_symbol): Search global block.
2335 2019-10-02 Tom Tromey <tromey@adacore.com>
2337 * coffread.c (process_coff_symbol): Update.
2338 * dwarf2read.c (var_decode_location, new_symbol): Update.
2339 * mdebugread.c (parse_symbol): Update.
2340 * objfiles.c (relocate_one_symbol): Update.
2341 * stabsread.c (define_symbol, fix_common_block)
2342 (scan_file_globals): Update.
2343 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2344 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2345 * xcoffread.c (process_xcoff_symbol): Update.
2347 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2349 * MAINTAINERS: Update my email address.
2351 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2353 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2355 (build_type_psymtabs_reader): Update for std::vector.
2356 (build_type_psymtab_dependencies): Likewise.
2357 * dwarf2read.h: Remove use of DEF_VEC_P.
2358 (typedef sig_type_ptr): Delete.
2360 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2362 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2364 (btrace_maint_decode_pt): Likewise, and move allocation of the
2365 vector outside of the loop.
2366 (btrace_maint_update_packets): Update to handle change from VEC to
2368 (btrace_maint_print_packets): Likewise.
2369 (maint_info_btrace_cmd): Likewise.
2370 * btrace.h: Remove use of DEF_VEC_O.
2371 (typedef btrace_pt_packet_s): Delete.
2372 (struct btrace_maint_info) <packets>: Change fromm VEC to
2374 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2376 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2378 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2379 make accesses into the vector constant references.
2380 (btrace_add_pc): Update for std::vector.
2381 (btrace_stitch_bts): Likewise.
2382 (parse_xml_btrace_block): Likewise.
2383 (btrace_maint_update_packets): Likewise.
2384 (btrace_maint_print_packets): Likewise.
2385 (maint_info_btrace_cmd): Likewise.
2386 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2388 (btrace_data::empty): Likewise.
2389 (btrace_data_append): Likewise.
2390 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2391 (typedef btrace_block_s): Delete.
2392 (struct btrace_block): Add constructor.
2393 (struct btrace_data_bts) <blocks>: Change to std::vector.
2394 * nat/linux-btrace.c (perf_event_read_bts): Update for
2396 (linux_read_bts): Likewise.
2398 2019-10-01 Tom Tromey <tom@tromey.com>
2400 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2402 2019-10-01 Tom Tromey <tom@tromey.com>
2404 * stack.c (print_frame, info_frame_command_core): Use
2406 * linux-thread-db.c (try_thread_db_load_1)
2407 (try_thread_db_load_from_pdir_1): Use styled_string.
2408 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2409 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2410 (maybe_print_unsupported_script_warning)
2411 (maybe_print_script_not_found_warning): Use styled_string.
2412 * ada-lang.c (user_select_syms): Use styled_string.
2414 2019-10-01 Tom Tromey <tom@tromey.com>
2416 * p-lang.c (pascal_printstr): Use metadata style.
2417 * value.c (show_convenience): Use metadata style.
2418 * valprint.c (valprint_check_validity, val_print_optimized_out)
2419 (val_print_not_saved, val_print_unavailable)
2420 (val_print_invalid_address, generic_val_print, val_print)
2421 (value_check_printable, val_print_array_elements): Use metadata
2423 * ui-out.h (class ui_out) <field_fmt>: New overload.
2424 <do_field_fmt>: Add style parameter.
2425 * ui-out.c (ui_out::field_fmt): New overload.
2426 * typeprint.c (type_print_unknown_return_type)
2427 (val_print_not_allocated, val_print_not_associated): Use metadata
2429 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2431 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2432 * tracepoint.c (tvariables_info_1): Use metadata style.
2433 * stack.c (print_frame_arg, print_frame_info, print_frame)
2434 (info_frame_command_core): Use metadata style.
2435 * skip.c (info_skip_command): Use metadata style.
2436 * rust-lang.c (rust_print_enum): Use metadata style.
2437 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2439 * python/py-framefilter.c (py_print_single_arg): Use metadata
2441 * printcmd.c (do_one_display, print_variable_and_value): Use
2443 * p-valprint.c (pascal_val_print)
2444 (pascal_object_print_value_fields): Use metadata style.
2445 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2446 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2448 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2449 * m2-valprint.c (m2_print_long_set): Use metadata style.
2450 * m2-typeprint.c (m2_print_type): Use metadata style.
2451 * infcmd.c (print_return_value_1): Use metadata style.
2452 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2453 * f-valprint.c (info_common_command_for_block): Use metadata
2455 * f-typeprint.c (f_type_print_base): Use metadata style.
2456 * expprint.c (print_subexp_standard): Use metadata style.
2457 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2458 * cli/cli-style.h (class cli_style_option): Add constructor.
2459 (metadata_style): Declare.
2460 * cli/cli-style.c (metadata_style): New global.
2461 (_initialize_cli_style): Register metadata style.
2462 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2464 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2465 * c-typeprint.c (c_type_print_base_struct_union)
2466 (c_type_print_base_1): Use metadata style.
2467 * breakpoint.c (watchpoint_value_print)
2468 (print_one_breakpoint_location): Use metadata style.
2469 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2471 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2473 * ada-valprint.c (val_print_packed_array_elements, printstr)
2474 (print_field_values, ada_val_print_ref, ada_val_print): Use
2476 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2478 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2480 * ada-lang.c (user_select_syms): Use metadata style.
2482 2019-10-01 Tom Tromey <tom@tromey.com>
2484 * cli/cli-cmds.c (pwd_command): Style output.
2486 2019-10-01 Pedro Alves <palves@redhat.com>
2487 Tom Tromey <tom@tromey.com>
2489 * symtab.c (print_symbol_info): Use %ps.
2490 (print_msymbol_info): Use %ps.
2491 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2492 * printcmd.c (print_variable_and_value): Use %ps.
2493 * macrocmd.c (show_pp_source_pos): Use %ps.
2494 * infrun.c (print_exited_reason): Use ui_out::message.
2495 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2496 (describe_other_breakpoints): Use ui_out::message and new
2498 (say_where): Use new formats.
2499 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2502 2019-10-01 Pedro Alves <palves@redhat.com>
2503 Tom Tromey <tom@tromey.com>
2505 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2506 (test_gdb_formats): New function.
2507 (run_tests): Call it.
2508 (test_format_specifier): Update.
2509 * utils.h (fputs_filtered): Update comment.
2510 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2511 (fputs_styled_unfiltered): Declare.
2512 * utils.c (fputs_styled_unfiltered): New function.
2513 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2514 (vfprintf_filtered): Update.
2515 (vfprintf_unfiltered, vprintf_filtered): Update.
2516 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2517 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2518 disallow_ui_out_field>: New constants.
2519 (enum class field_kind): New.
2520 (struct base_field_s, struct signed_field_s): New.
2521 (signed_field): New function.
2522 (struct string_field_s): New.
2523 (string_field): New function.
2524 (struct styled_string_s): New.
2525 (styled_string): New function.
2526 (class ui_out) <message>: Add comment.
2527 <vmessage, call_do_message>: New methods.
2528 <do_message>: Add style parameter.
2529 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2531 (ui_out::message): Rewrite.
2532 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2534 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2535 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2536 gdb_extensions parameter.
2537 (class format_piece): Add parameter to constructor.
2538 (n_int_args): New field.
2539 * gdbsupport/format.c (format_pieces::format_pieces): Add
2540 gdb_extensions parameter. Handle '*'.
2541 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2542 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2543 vfprintf_styled_no_gdbfmt.
2544 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2545 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2547 * ui-style.h (struct ui_file_style) <ptr>: New method.
2549 2019-10-01 Tom Tromey <tom@tromey.com>
2551 * unittests/format_pieces-selftests.c: Update. Add final format.
2552 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2553 empty literal pieces.
2555 2019-10-01 Tom Tromey <tom@tromey.com>
2557 * ui-out.h (enum class ui_out_style_kind): Remove.
2558 (class ui_out) <field_string, field_stsream, do_field_string>:
2559 Change type of "style".
2560 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2561 (ui_out::field_string): Update.
2562 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2564 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2565 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2566 * stack.c (print_frame_arg, print_frame_info, print_frame):
2568 * source.c (print_source_lines_base): Update.
2569 * solib.c (info_sharedlibrary_command): Update.
2570 * skip.c (info_skip_command): Update.
2571 * record-btrace.c (btrace_call_history_src_line)
2572 (btrace_call_history): Update.
2573 * python/py-framefilter.c (py_print_frame): Update.
2574 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2576 * mi/mi-out.c (mi_ui_out::do_table_header)
2577 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2578 (mi_ui_out::do_field_string): Update.
2579 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2581 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2583 * cli-out.c (cli_ui_out::do_table_header)
2584 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2585 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2586 (cli_ui_out::do_field_fmt): Update.
2587 * breakpoint.c (print_breakpoint_location): Update.
2588 (update_static_tracepoint): Update.
2590 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2592 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2593 conversion of gdb_datadir.
2594 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2595 remove not needed c_str ().
2597 2019-09-30 Ali Tamur <tamur@google.com>
2599 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2600 (dwarf2_string_attr): Likewise.
2602 2019-09-30 Ali Tamur <tamur@google.com>
2604 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2605 (process_full_type_unit): Likewise.
2606 (dump_die_shallow): Likewise.
2607 (cu_debug_loc_section): Likewise.
2609 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2611 * minsyms.c (compare_minimal_symbols): Rename to...
2612 (minimal_symbol_is_less_than): ...this, and adjust to STL
2613 conventions (return bool, take arguments as references)
2614 (minimal_symbol_reader::install): Call std::sort instead
2617 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2619 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2621 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2622 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2624 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2626 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2627 * psympriv.h (add_psymbol_to_list): Move comment here and update
2630 2019-09-29 Tom de Vries <tdevries@suse.de>
2632 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2633 Use $tmpdir/$(basename "$output_file").dwz instead of
2634 "${output_file}.dwz".
2636 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2639 * hppa-linux-nat.c: Include gdbarch.h.
2641 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2643 * blockframe.c (find_pc_partial_function): Change return type to bool.
2644 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2645 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2646 (stub_gnu_ifunc_resolve_name): Likewise.
2647 * symtab.c (compare_filenames_for_search): Likewise.
2648 (compare_glob_filenames_for_search): Likewise.
2649 (matching_obj_sections): Likewise.
2650 (symbol_matches_domain): Likewise.
2651 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2652 (find_line_pc): Change return type to bool.
2653 (find_line_pc_range): Likewise.
2654 (producer_is_realview): Likewise.
2655 * symtab.h (symbol_matches_domain): Likewise.
2656 (find_pc_partial_function): Likewise.
2657 (find_pc_line_pc_range): Likewise.
2658 (in_gnu_ifunc_stub): Likewise.
2659 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2660 (find_line_pc): Likewise.
2661 (find_line_pc_range): Likewise.
2662 (matching_obj_sections): Likewise.
2663 (find_line_symtab): Change out parameter to bool.
2664 (producer_is_realview): Change return type to bool.
2665 (compare_filenames_for_search): Likewise.
2666 (compare_glob_filenames_for_search): Likewise.
2668 2019-09-26 Tom Tromey <tom@tromey.com>
2670 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2671 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2672 * gdb_usleep.h: Remove.
2673 * gdb_usleep.c: Remove.
2674 * utils.c: Don't include gdb_usleep.h.
2676 2019-09-26 Tom Tromey <tromey@adacore.com>
2678 * python/py-type.c (type_to_type_object): Call check_typedef
2681 2019-09-26 Tom Tromey <tom@tromey.com>
2683 * utils.h (initialize_utils): Don't declare.
2684 * top.c (gdb_init): Don't call initialize_utils.
2685 * utils.c (initialize_utils): Remove. Move contents...
2686 (_initialize_utils): ... here.
2688 2019-09-25 Tom Tromey <tom@tromey.com>
2690 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2691 * utils.h (make_hex_string): Don't declare.
2692 * utils.c (make_hex_string): Remove.
2694 2019-09-24 Tom de Vries <tdevries@suse.de>
2697 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2698 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2700 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2702 * NEWS: Mention new simulator port for PRU.
2704 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2706 * ada-exp.y (write_object_remaining): Update.
2707 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2708 and eliminate the static buffer.
2709 (ada_decode_symbol): Update.
2710 (ada_la_decode): Update.
2711 (ada_sniff_from_mangled_name): Update.
2712 (is_valid_name_for_wild_match): Update.
2713 (ada_lookup_name_info::matches): Update and simplify.
2714 (name_matches_regex): Update.
2715 (ada_add_global_exceptions): Update.
2716 * ada-lang.h (ada_decode): Update signature.
2717 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2718 * dwarf-index-write.c (debug_names::insert): Update.
2720 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2722 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2725 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2727 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2728 Change "nonzero" to "true" in documentation.
2730 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2732 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2733 (_initialize_darwin_solib): Don't set
2734 darwin_so_ops.lookup_lib_global_symbol.
2735 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2736 set_gdbarch_iterate_over_objfiles_in_search_order.
2737 (elf_lookup_lib_symbol): Rename to...
2738 (svr4_iterate_over_objfiles_in_search_order): this, and update
2739 to iterate semantics.
2740 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2741 * solib.c (solib_global_lookup): Remove.
2742 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2743 (solib_global_lookup): Remove.
2744 * symtab.c (lookup_global_or_static_symbol): Remove call to
2745 solib_global_lookup.
2747 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2749 * NEWS: Move entries about default MI version now being
2750 version 3, and about the GDB/MI fix for multi-location
2751 breakpoints to the "since GDB 8.3" section.
2753 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2757 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2759 * NEWS: Mention that Cell/B.E. debugging support was removed.
2760 * MAINTAINERS: Remove spu target.
2762 * config/djgpp/fnchange.lst: Remove entries for removed files.
2764 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2765 spu-multiarch.o, and spu-tdep.o.
2766 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2767 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2768 spu-multiarch.c, and spu-tdep.c.
2769 * spu-linux-nat.c: Remove file.
2770 * spu-multiarch.c: Remove file.
2771 * spu-tdep.c: Remove file.
2772 * spu-tdep.h: Remove file.
2773 * solib-spu.c: Remove file.
2774 * solib-spu.h: Remove file.
2776 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2777 * configure.nat (spu-linux): Remove.
2778 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2779 solib-multiarch.o from gdb_target_obs.
2782 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2784 (ppc_linux_no_features): Update.
2785 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2787 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2788 (tdesc_powerpc_cell64l): Likewise.
2789 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2790 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2792 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2793 Do not include "features/rs6000/powerpc-cell32l.c" or
2794 "features/rs6000/powerpc-cell64l.c".
2795 (ppc_linux_spu_section): Remove.
2796 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2797 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2798 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2799 (ppc_linux_spe_context_lookup): Remove.
2800 (ppc_linux_spe_context_inferior_created): Remove.
2801 (ppc_linux_spe_context_solib_loaded): Remove.
2802 (ppc_linux_spe_context_solib_unloaded): Remove.
2803 (ppc_linux_spe_context): Remove.
2804 (struct ppu2spu_cache): Remove.
2805 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2806 (struct ppu2spu_data): Remove.
2807 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2808 ppu2spu_unwind): Remove.
2809 (ppc_linux_init_abi): Remove Cell/B.E. support.
2810 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2812 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2813 (rs6000/powerpc-cell64l-expedite): Likewise
2814 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2815 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2816 rs6000/powerpc-cell64l.xml.
2817 * features/rs6000/powerpc-cell32l.xml: Remove.
2818 * features/rs6000/powerpc-cell64l.xml: Likewise.
2819 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2820 * features/rs6000/powerpc-cell64l.c: Likewise.
2821 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2822 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2823 * regformats/reg-spu.dat: Remove.
2825 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2826 * corelow.c (struct spuid_list): Remove.
2827 (add_to_spuid_list): Remove.
2828 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2829 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2830 (remote_protocol_features): Remove associated entries.
2831 (_initialize_remote): No longer initialize them.
2832 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2833 * linux-nat.c (SPUFS_MAGIC): Remove.
2834 (linux_proc_xfer_spu): Remove.
2835 (spu_enumerate_spu_ids): Remove.
2836 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2837 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2838 (linux_make_corefile_notes): No longer call it.
2840 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2841 (cooked_write_test): Likewise.
2843 2019-09-20 Tom Tromey <tom@tromey.com>
2845 * NEWS: Mention case-sensitivity of TUI commands.
2846 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2847 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2848 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2850 2019-09-20 Tom Tromey <tom@tromey.com>
2852 * tui/tui-source.c (tui_source_window::set_contents): Use
2853 make_unique_xstrdup.
2854 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2855 make_unique_xstrdup.
2857 2019-09-20 Tom Tromey <tom@tromey.com>
2859 * tui/tui-data.c: Remove separator comments.
2860 * tui/tui-layout.c: Remove separator comments.
2861 * tui/tui-win.c: Remove separator comments.
2862 * tui/tui-wingeneral.c: Remove separator comments.
2864 2019-09-20 Tom Tromey <tom@tromey.com>
2866 * tui/tui.h (strcat_to_buf): Don't declare.
2867 * tui/tui.c (strcat_to_buf): Remove.
2869 2019-09-20 Tom Tromey <tom@tromey.com>
2871 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2873 * tui/tui-source.c (tui_source_window::set_contents)
2874 (tui_source_window::location_matches_p)
2875 (tui_source_window::maybe_update): Update.
2877 2019-09-20 Tom Tromey <tom@tromey.com>
2879 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2881 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2883 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2884 (tui_data_window::line_from_reg_element_no)
2885 (tui_data_window::first_reg_element_no_inline)
2886 (tui_data_window::show_registers)
2887 (tui_data_window::show_register_group)
2888 (tui_data_window::display_registers_from)
2889 (tui_data_window::display_registers_from_line)
2890 (tui_data_window::first_data_item_displayed)
2891 (tui_data_window::delete_data_content_windows)
2892 (tui_data_window::erase_data_content)
2893 (tui_data_window::do_scroll_vertical)
2894 (tui_data_window::refresh_window)
2895 (tui_data_window::check_register_values): Update.
2897 2019-09-20 Tom Tromey <tom@tromey.com>
2899 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2900 (struct tui_locator_window) <full_name, proc_name>: Now
2902 * tui/tui-stack.c (tui_locator_window::make_status_line)
2903 (tui_locator_window::set_locator_fullname)
2904 (tui_locator_window::set_locator_info): Update.
2905 * tui/tui-source.c (tui_source_window::set_contents)
2906 (tui_source_window::showing_source_p): Update.
2908 2019-09-20 Tom Tromey <tom@tromey.com>
2910 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2911 Don't call tui_locator_win_info_ptr.
2913 2019-09-20 Tom Tromey <tom@tromey.com>
2915 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2917 2019-09-20 Tom Tromey <tom@tromey.com>
2919 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2921 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2922 * tui/tui-layout.c (show_source_disasm_command, show_data)
2923 (show_source_or_disasm_and_command): Use 1 as height for locator.
2925 2019-09-20 Tom Tromey <tom@tromey.com>
2927 * tui/tui.c (tui_enable): Update.
2928 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2930 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2932 * tui/tui-data.c (win_resized): Now bool.
2933 (tui_win_resized): Return bool.
2934 (tui_set_win_resized_to): Accept a bool.
2936 2019-09-20 Tom Tromey <tom@tromey.com>
2938 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2939 Change type of "refresh_values_only".
2940 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2941 type of "refresh_values_only".
2943 2019-09-20 Tom Tromey <tom@tromey.com>
2945 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2947 (tui_disassemble): Add "pos" parameter.
2948 (tui_disasm_window::set_contents): Simplify.
2950 2019-09-20 Tom Tromey <tom@tromey.com>
2952 * tui/tui-winsource.h (struct tui_source_window_base)
2953 <show_source_content>: Now private.
2954 * tui/tui-winsource.c
2955 (tui_source_window_base::show_source_content): Don't handle empty
2958 2019-09-20 Tom Tromey <tom@tromey.com>
2960 * tui/tui-layout.c (show_source_disasm_command)
2961 (show_source_or_disasm_and_command): Don't call
2962 show_source_content.
2964 2019-09-20 Tom Tromey <tom@tromey.com>
2966 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2968 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2969 from tui_make_status_line.
2970 (tui_locator_window::rerender): Update.
2972 2019-09-20 Tom Tromey <tom@tromey.com>
2974 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2975 (tui_locator_window::rerender): Update.
2977 2019-09-20 Tom Tromey <tom@tromey.com>
2979 * tui/tui-winsource.h (struct tui_source_window_base)
2980 <~tui_source_window_base>: Don't declare.
2982 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2983 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2985 * tui/tui-source.c (tui_source_window::set_contents): Update.
2986 (tui_source_window::location_matches_p)
2987 (tui_source_window::maybe_update): Update.
2989 2019-09-20 Tom Tromey <tom@tromey.com>
2991 * tui/tui-winsource.h (~tui_source_element): Remove.
2992 (tui_source_element): Update.
2993 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2994 * tui/tui-winsource.c (tui_show_source_line): Update.
2995 * tui/tui-source.c (tui_source_window::set_contents): Update.
2996 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2998 2019-09-20 Tom Tromey <tom@tromey.com>
3000 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3002 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3003 tui_clear_source_windows_detail.
3004 * tui/tui-winsource.h (struct tui_source_window_base)
3005 <clear_detail>: Don't declare.
3006 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3008 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3010 2019-09-20 Tom Tromey <tromey@adacore.com>
3013 * block.c (contained_in): Fix final return value.
3015 2019-09-20 Alan Modra <amodra@gmail.com>
3017 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3018 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3019 (read_indirect_string_from_dwz): Use bfd accessor.
3020 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3021 * machoread.c (macho_symfile_read_all_oso): Likewise.
3022 * solib.c (solib_bfd_open): Likewise.
3024 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3026 * eval.c: Move declaration of overload_resolution to...
3029 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3031 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3032 * arm-linux-tdep.c: Likewise.
3033 * arm-nbsd-nat.c: Likewise.
3034 * arm-tdep.h: Declare arm_apcs_32.
3035 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3037 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3039 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3040 * dwarf2read.h: Declare dwarf_always_disassemble.
3042 2019-09-19 Tom de Vries <tdevries@suse.de>
3045 * source-cache.c (source_cache::ensure): Catch exception thrown during
3046 construction of the highlighter.
3048 2019-09-18 Alan Modra <amodra@gmail.com>
3050 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3051 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3052 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3053 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3054 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3055 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3056 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3057 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3058 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3059 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3060 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3061 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3062 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3063 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3064 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3065 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3066 * mi/mi-interp.c: Update throughout for bfd section macro and
3068 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3069 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3071 2019-09-18 Tom Tromey <tom@tromey.com>
3074 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3076 (tui_enable): Do not call rl_initialize.
3078 2019-09-18 Christian Groessler <chris@groessler.org>
3080 * alpha-linux-nat.c: Include gdbarch.h.
3082 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3084 * ui-file.c: Include cli/cli-style.h.
3085 (term_cli_styling): Remove cli_styling declaration.
3087 2019-09-18 Alan Modra <amodra@gmail.com>
3089 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3090 to bfd_asymbol_section.
3092 2019-09-18 Alan Modra <amodra@gmail.com>
3094 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3095 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3096 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3098 2019-09-18 Alan Modra <amodra@gmail.com>
3100 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3101 * spu-linux-nat.c (spu_bfd_open): Likewise.
3103 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3105 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3106 to bool to match definition in dwarf2read.c.
3108 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3110 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3111 (print_signatures): Likewise.
3112 (trust_pad_over_xvs): Likewise.
3113 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3114 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3115 * arm-linux-nat.c (arm_apcs_32): Likewise.
3116 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3117 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3118 * arm-tdep.c (arm_debug): Likewise.
3119 (arm_apcs_32): Likewise.
3120 * auto-load.c (debug_auto_load): Likewise.
3121 (auto_load_gdb_scripts): Likewise.
3122 (global_auto_load): Likewise.
3123 (auto_load_local_gdbinit): Likewise.
3124 (auto_load_local_gdbinit_loaded): Likewise.
3125 * auto-load.h (global_auto_load): Likewise.
3126 (auto_load_local_gdbinit): Likewise.
3127 (auto_load_local_gdbinit_loaded): Likewise.
3128 * breakpoint.c (disconnected_dprintf): Likewise.
3129 (breakpoint_proceeded): Likewise.
3130 (automatic_hardware_breakpoints): Likewise.
3131 (always_inserted_mode): Likewise.
3132 (target_exact_watchpoints): Likewise.
3133 (_initialize_breakpoint): Update.
3134 * breakpoint.h (target_exact_watchpoints): Change to bool.
3135 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3136 * cli/cli-cmds.c (trace_commands): Likewise.
3137 * cli/cli-cmds.h (trace_commands): Likewise.
3138 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3140 * cli/cli-logging.c (logging_overwrite): Change to bool.
3141 (logging_redirect): Likewise.
3142 (debug_redirect): Likewise.
3143 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3144 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3146 <boolean_option_def>: Update.
3147 (struct flag_option_def): Change default type of Context to bool
3149 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3150 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3151 (get_setshow_command_value_string): Likewise.
3152 * cli/cli-style.c (cli_styling): Change to bool.
3153 (source_styling): Likewise.
3154 * cli/cli-style.h (source_styling): Likewise.
3155 (cli_styling): Likewise.
3156 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3158 * command.h (var_types): Update comment.
3159 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3160 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3162 (debug_compile_cplus_scopes): Likewise.
3163 * compile/compile-internal.h (compile_debug): Likewise.
3164 * compile/compile.c (compile_debug): Likewise.
3165 (struct compile_options) <raw>: Likewise.
3166 * cp-support.c (catch_demangler_crashes): Likewise.
3167 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3168 (usr_cmd_cris_dwarf2_cfi): Likewise.
3169 * csky-tdep.c (csky_debug): Likewise.
3170 * darwin-nat.c (enable_mach_exceptions): Likewise.
3171 * dcache.c (dcache_enabled_p): Likewise.
3172 * defs.h (info_verbose): Likewise.
3173 * demangle.c (demangle): Likewise.
3174 (asm_demangle): Likewise.
3175 * dwarf-index-cache.c (debug_index_cache): Likewise.
3176 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3177 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3178 * dwarf2read.c (check_physname): Likewise.
3179 (use_deprecated_index_sections): Likewise.
3180 (dwarf_always_disassemble): Likewise.
3181 * eval.c (overload_resolution): Likewise.
3182 * event-top.c (set_editing_cmd_var): Likewise.
3183 (exec_done_display_p): Likewise.
3184 * event-top.h (set_editing_cmd_var): Likewise.
3185 (exec_done_display_p): Likewise.
3186 * exec.c (write_files): Likewise.
3187 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3188 (debug_fbsd_nat): Likewise.
3189 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3191 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3192 <backtrace_past_entry> Likewise.
3193 * gdb-demangle.h (demangle): Likewise.
3194 (asm_demangle): Likewise.
3195 * gdb_bfd.c (bfd_sharing): Likewise.
3196 * gdbcore.h (write_files): Likewise.
3197 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3198 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3199 * gdbthread.h (print_thread_events): Likewise.
3200 * gdbtypes.c (opaque_type_resolution): Likewise.
3201 (strict_type_checking): Likewise.
3202 * gnu-nat.c (gnu_debug_flag): Likewise.
3203 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3204 * guile/scm-param.c (pascm_variable): Add boolval.
3205 (add_setshow_generic): Update.
3206 (pascm_param_value): Update.
3207 (pascm_set_param_value_x): Update.
3208 * hppa-tdep.c (hppa_debug): Change to bool..
3209 * infcall.c (may_call_functions_p): Likewise.
3210 (coerce_float_to_double_p): Likewise.
3211 (unwind_on_signal_p): Likewise.
3212 (unwind_on_terminating_exception_p): Likewise.
3213 * infcmd.c (startup_with_shell): Likewise.
3214 * inferior.c (print_inferior_events): Likewise.
3215 * inferior.h (startup_with_shell): Likewise.
3216 (print_inferior_events): Likewise.
3217 * infrun.c (step_stop_if_no_debug): Likewise.
3218 (detach_fork): Likewise.
3219 (debug_displaced): Likewise.
3220 (disable_randomization): Likewise.
3221 (non_stop): Likewise.
3222 (non_stop_1): Likewise.
3223 (observer_mode): Likewise.
3224 (observer_mode_1): Likewise.
3225 (set_observer_mode): Update.
3226 (sched_multi): Change to bool.
3227 * infrun.h (debug_displaced): Likewise.
3228 (sched_multi): Likewise.
3229 (step_stop_if_no_debug): Likewise.
3230 (non_stop): Likewise.
3231 (disable_randomization): Likewise.
3232 * linux-tdep.c (use_coredump_filter): Likewise.
3233 (dump_excluded_mappings): Likewise.
3234 * linux-thread-db.c (auto_load_thread_db): Likewise.
3235 (check_thread_db_on_load): Likewise.
3236 * main.c (captured_main_1): Update.
3237 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3238 xx2_opt, boolean_opt>: Change to bool.
3239 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3240 * maint.c (maintenance_profile_p): Likewise.
3241 (per_command_time): Likewise.
3242 (per_command_space): Likewise.
3243 (per_command_symtab): Likewise.
3244 * memattr.c (inaccessible_by_default): Likewise.
3245 * mi/mi-main.c (mi_async): Likewise.
3246 (mi_async_1): Likewise.
3247 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3248 * nat/fork-inferior.h (startup_with_shell): Likewise.
3249 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3250 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3251 * nios2-tdep.c (nios2_debug): Likewise.
3252 * or1k-tdep.c (or1k_debug): Likewise.
3253 * parse.c (parser_debug): Likewise.
3254 * parser-defs.h (parser_debug): Likewise.
3255 * printcmd.c (print_symbol_filename): Likewise.
3256 * proc-api.c (procfs_trace): Likewise.
3257 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3258 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3259 (set_parameter_value): Update.
3260 (add_setshow_generic): Update.
3261 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3263 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3265 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3266 * record-btrace.c (record_btrace_target::store_registers): Update.
3267 * record-full.c (record_full_memory_query): Change to bool.
3268 (record_full_stop_at_limit): Likewise.
3269 * record-full.h (record_full_memory_query): Likewise.
3270 * remote-notif.c (notif_debug): Likewise.
3271 * remote-notif.h (notif_debug): Likewise.
3272 * remote.c (use_range_stepping): Likewise.
3273 (interrupt_on_connect): Likewise.
3274 (remote_break): Likewise.
3275 * ser-tcp.c (tcp_auto_retry): Likewise.
3276 * ser-unix.c (serial_hwflow): Likewise.
3277 * skip.c (debug_skip): Likewise.
3278 * solib-aix.c (solib_aix_debug): Likewise.
3279 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3280 (spu_auto_flush_cache_p): Likewise.
3281 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3283 (struct info_print_options) <quiet>: Likewise.
3284 * symfile-debug.c (debug_symfile): Likewise.
3285 * symfile.c (auto_solib_add): Likewise.
3286 (separate_debug_file_debug): Likewise.
3287 * symfile.h (auto_solib_add): Likewise.
3288 (separate_debug_file_debug): Likewise.
3289 * symtab.c (basenames_may_differ): Likewise.
3290 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3291 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3292 (struct info_types_options) <quiet>: Likewise.
3293 * symtab.h (demangle): Likewise.
3294 (basenames_may_differ): Likewise.
3295 * target-dcache.c (stack_cache_enabled_1): Likewise.
3296 (code_cache_enabled_1): Likewise.
3297 * target.c (trust_readonly): Likewise.
3298 (may_write_registers): Likewise.
3299 (may_write_memory): Likewise.
3300 (may_insert_breakpoints): Likewise.
3301 (may_insert_tracepoints): Likewise.
3302 (may_insert_fast_tracepoints): Likewise.
3303 (may_stop): Likewise.
3304 (auto_connect_native_target): Likewise.
3305 (target_stop_and_wait): Update.
3306 (target_async_permitted): Change to bool.
3307 (target_async_permitted_1): Likewise.
3308 (may_write_registers_1): Likewise.
3309 (may_write_memory_1): Likewise.
3310 (may_insert_breakpoints_1): Likewise.
3311 (may_insert_tracepoints_1): Likewise.
3312 (may_insert_fast_tracepoints_1): Likewise.
3313 (may_stop_1): Likewise.
3314 * target.h (target_async_permitted): Likewise.
3315 (may_write_registers): Likewise.
3316 (may_write_memory): Likewise.
3317 (may_insert_breakpoints): Likewise.
3318 (may_insert_tracepoints): Likewise.
3319 (may_insert_fast_tracepoints): Likewise.
3320 (may_stop): Likewise.
3321 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3322 (make_thread_apply_all_options_def_group): Change argument from int*
3324 (thread_apply_all_command): Update.
3325 (print_thread_events): Change to bool.
3326 * top.c (confirm): Likewise.
3327 (command_editing_p): Likewise.
3328 (history_expansion_p): Likewise.
3329 (write_history_p): Likewise.
3330 (info_verbose): Likewise.
3331 * top.h (confirm): Likewise.
3332 (history_expansion_p): Likewise.
3333 * tracepoint.c (disconnected_tracing): Likewise.
3334 (circular_trace_buffer): Likewise.
3335 * typeprint.c (print_methods): Likewise.
3336 (print_typedefs): Likewise.
3337 * utils.c (debug_timestamp): Likewise.
3338 (sevenbit_strings): Likewise.
3339 (pagination_enabled): Likewise.
3340 * utils.h (sevenbit_strings): Likewise.
3341 (pagination_enabled): Likewise.
3342 * valops.c (overload_resolution): Likewise.
3343 * valprint.h (struct value_print_options) <prettyformat_arrays,
3344 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3345 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3346 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3348 * windows-nat.c (new_console): Likewise.
3349 (cygwin_exceptions): Likewise.
3350 (new_group): Likewise.
3351 (debug_exec): Likewise.
3352 (debug_events): Likewise.
3353 (debug_memory): Likewise.
3354 (debug_exceptions): Likewise.
3355 (useshell): Likewise.
3356 * windows-tdep.c (maint_display_all_tib): Likewise.
3357 * xml-support.c (debug_xml): Likewise.
3359 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3361 * source.c (prepare_path_for_appending): New function.
3362 (openp): Make use of new function.
3363 (find_and_open_source): Search for the compilation directory and
3364 source file as a relative path beneath the directory search path.
3366 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3368 * source-cache.c (source_cache::get_line_charpos): Catch
3369 exceptions and return false, this matches the behaviour documented
3372 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3374 * ada-tasks.c (info_task): Remove quoting of the task's name.
3376 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3378 * symfile.c (auto_solib_add): Replace comment with a reference
3381 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3383 * NEWS: Mention that gdb can now be compiled with Python 3
3386 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3388 * maint.c (maint_print_section_data::maint_print_section_data):
3389 Force use of 'float log10 (float)' by casting the argument to
3392 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3394 * maint.c: Add 'cmath' include.
3395 (struct maint_print_section_data): New structure.
3396 (print_section_index): New function.
3397 (print_bfd_section_info): Add header comment, small whitespace
3398 cleanup, and update to call new print_section_index function.
3399 (print_objfile_section_info): Likewise.
3400 (maint_obj_section_from_bfd_section): New function.
3401 (print_bfd_section_info_maybe_relocated): New function.
3402 (maintenance_info_sections): Add header comment, always use
3403 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3405 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3407 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3408 inner scope, add check that the objfile has psymtabs before
3409 checking psymtabs_addrmap.
3410 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3412 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3414 * NEWS: Announce that Ada task names are now shown at more places,
3415 and between quotes (except in info task output).
3416 * gdb/ada-tasks.c (task_to_str): New function.
3417 (display_current_task_id): Call task_to_str.
3418 (task_command_1): Likewise.
3419 (print_ada_task_info): In non-mi mode, Properly align headers and data
3420 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3422 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3424 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3425 prstatus.pr_lwp.pr_info instead of making it up.
3427 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3429 * auto-load.c (auto_load_expand_dir_vars): Update.
3430 * defs.h (gdb_datadir): Change to std::string.
3431 (python_libdir): Likewise.
3432 (relocate_gdb_directory): Change return type to std::string.
3433 * guile/guile.c (gdbscm_data_directory): Update.
3434 (initialize_scheme_side): Update.
3435 * jit.c (jit_reader_dir): Change to std::string.
3436 (jit_reader_load_command): Update.
3437 * main.c (gdb_datadir): Change to std::string.
3438 (python_libdir): Likewise.
3439 (set_gdb_data_directory): Update.
3440 (relocate_path): Change to return std::string.
3441 (relocate_gdb_directory): Change to return std::string.
3442 (relocate_gdbinit_path_maybe_in_datadir): Update.
3443 (captured_main_1): Update.
3444 * python/python.c (do_start_initialization): Update.
3445 * top.c (show_gdb_datadir): Update.
3446 * xml-syscall.c (xml_init_syscalls_info): Update.
3447 (init_syscalls_info): Update.
3449 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3451 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3452 out of get_init_files.
3453 (get_init_files): Update.
3455 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3457 * main.c (get_init_files): Change to use std::string.
3458 (captured_main_1): Update.
3459 (print_gdb_help): Update.
3461 2019-09-11 Ali Tamur <tamur@google.com>
3463 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3466 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3468 * dbxread.c (read_dbx_symtab): Update.
3469 * dwarf2read.c (load_partial_dies): Update.
3470 * mdebugread.c (parse_partial_symbols): Update.
3471 (handle_psymbol_enumerators): Update.
3472 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3473 * psymtab.c (add_psymbol_to_bcache): Likewise.
3474 (add_psymbol_to_list): Likewise.
3475 * symtab.c (symbol_set_names): Likewise.
3476 * symtab.h (symbol_set_names): Likewise.
3477 * xcoffread.c (scan_xcoff_symtab): Update.
3479 2019-09-11 Tom Tromey <tom@tromey.com>
3481 * symfile-mem.c (symbol_file_add_from_memory): Use
3483 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3484 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3486 2019-09-10 Tom Tromey <tromey@adacore.com>
3488 * dwarf-index-write.c (write_psymbols): Extend error message.
3489 (debug_names::insert): Add Ada code.
3490 (debug_names::write_psymbols): Remove Ada check.
3491 (debug_names) <m_string_obstack>: New member.
3492 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3493 (gdb_index_symbol_name_matcher::matches): Remove.
3494 (mapped_index_base::find_name_components_bounds): Add "lang"
3496 (mapped_index_base::build_name_components): Also split names
3497 according to Ada syntax.
3498 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3499 type of "match_callback".
3500 (check_match, check_find_bounds_finds)
3501 (dw2_expand_symtabs_matching): Update.
3502 (dw2_debug_names_iterator): Add new constructor.
3503 (dw2_debug_names_map_matching_symbols): New function.
3504 (dw2_debug_names_expand_symtabs_matching): Update.
3505 (dwarf2_debug_names_functions): Use
3506 dw2_debug_names_map_matching_symbols.
3508 2019-09-10 Tom Tromey <tromey@adacore.com>
3510 * dwarf2read.c (dw2_get_file_names_reader): Add the
3511 CU's file name to the results.
3513 2019-09-10 Tom Tromey <tromey@adacore.com>
3515 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3516 map_matching_symbols. Update.
3517 * dwarf2read.c (dw2_map_matching_symbols): Update.
3518 * psymtab.c (match_partial_symbol): Change type; update.
3519 (psym_map_matching_symbols): Likewise.
3520 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3522 * symfile.h (struct quick_symbol_functions)
3523 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3526 2019-09-10 Tom Tromey <tromey@adacore.com>
3528 * psymtab.c (map_block): Remove.
3529 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3530 * symtab.c (iterate_over_symbols_terminated): New function.
3531 * symtab.c (iterate_over_symbols_terminated): Declare.
3533 2019-09-10 Tom Tromey <tromey@adacore.com>
3535 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3536 * language.h (struct language_defn) <la_iterate_over_symbols>:
3538 * symtab.c (iterate_over_symbols): Return bool.
3539 * symtab.h (iterate_over_symbols): Return bool.
3541 2019-09-10 Tom Tromey <tromey@adacore.com>
3543 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3544 (add_nonlocal_symbols): Update.
3545 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3546 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3547 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3548 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3549 Change type of "callback". Remove "data".
3552 2019-09-09 Ali Tamur <tamur@google.com>
3554 * dwarf2read.c (comp_unit_head): Update comment.
3555 (dwarf2_dwo_name): New function declaration.
3556 (dwarf_unit_type_name): New function declaration.
3557 (read_comp_unit_head): Add support for new compilation units,
3558 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3559 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3560 (currently named as "signature") in their header. Also clarify error
3562 (lookup_dwo_id): New function. Returns the dwo id of the given
3564 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3565 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3567 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3568 (dwarf2_dwo_name): Get the dwo name if present.
3569 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3572 2019-09-09 Tom Tromey <tom@tromey.com>
3574 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3576 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3578 * python/python.c (do_start_initialization): Make progname_copy static,
3579 to avoid a leak report.
3581 2019-09-08 Tom Tromey <tom@tromey.com>
3583 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3585 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3587 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3588 Change type to gdb::optional<block_enum>.
3589 (dw2_symtab_iter_init): Change block_index parameter type
3590 to gdb::optional<block_enum>.
3591 (dw2_lookup_symbol): Change block_index parameter
3592 type to block_enum.c
3593 (dw2_debug_names_lookup_symbol): Likewise.
3594 * psymtab.c (psym_lookup_symbol): Likewise.
3595 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3596 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3599 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3601 * defs.h (relocate_gdb_directory): Change int to bool in
3602 signature and rename flag to relocatable.
3603 * main.c (relocate_path): Likewise.
3604 (relocate_gdb_directory): Likewise.
3606 2019-09-06 Alan Modra <amodra@gmail.com>
3608 * coffread.c (coff_symfile_read): Constify filename variable.
3609 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3610 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3611 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3612 * solib.c (reload_shared_libraries_1): Likewise.
3613 * symfile.c (reread_symbols): Likewise.
3614 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3615 * solib-darwin.c (darwin_bfd_open): Likewise.
3616 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3618 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3620 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3621 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3623 2019-09-03 Tom Tromey <tromey@adacore.com>
3625 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3627 (has_negatives): Unbias a range type bound.
3628 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3629 * gdbtypes.c (operator==): Handle new field.
3630 (create_range_type): Add "bias" parameter.
3631 (create_static_range_type, resolve_dynamic_range): Update.
3632 * gdbtypes.h (struct range_bounds) <bias>: New member.
3633 (create_range_type): Add bias parameter.
3634 * printcmd.c (print_scalar_formatted): Unbias range types.
3635 * value.c (unpack_long): Unbias range types.
3636 (pack_long): Bias range types.
3638 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3640 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3643 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3645 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3646 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3647 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3648 (compile_probe_arg): Likewise.
3649 * probe.h (get_argument_count): Likewise.
3650 * solib-svr4.c (solib_event_probe_action): Likewise.
3651 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3653 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3655 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3657 (svr4_create_solib_event_breakpoints): ...from here.
3659 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3661 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3662 suffix from warning message.
3664 2019-08-30 Tom Tromey <tom@tromey.com>
3666 * tui/tui-winsource.h (struct tui_source_window_base)
3667 <refresh_all>: Don't declare.
3668 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3670 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3671 tui_show_locator_content.
3672 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3674 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3675 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3678 2019-08-30 Tom Tromey <tom@tromey.com>
3680 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3682 2019-08-30 Tom Tromey <tom@tromey.com>
3684 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3685 Remove unnecessary forward declarations.
3687 2019-08-30 Tom Tromey <tom@tromey.com>
3689 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3691 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3692 tui_show_locator_content.
3694 2019-08-30 Tom Tromey <tom@tromey.com>
3696 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3697 (tui_locator_window::rerender): Rewrite using body of previous
3698 tui_show_locator_content.
3700 2019-08-30 Tom Tromey <tom@tromey.com>
3702 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3703 set_locator_fullname>: New methods.
3704 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3705 Rename from tui_set_locator_fullname.
3706 (tui_locator_window::set_locator_info): Rename from
3707 tui_set_locator_info. Return bool.
3708 (tui_update_locator_fullname, tui_show_frame_info): Update.
3710 2019-08-30 Tom Tromey <tom@tromey.com>
3712 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3714 2019-08-30 Tom Tromey <tom@tromey.com>
3716 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3719 2019-08-30 Tom Tromey <tom@tromey.com>
3721 * tui/tui-wingeneral.c (box_win): Assume win_info and
3722 win_info->handle cannot be NULL.
3724 2019-08-30 Tom Tromey <tom@tromey.com>
3726 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3727 refresh_window>: Declare.
3728 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3730 (tui_data_item_window::rerender): Rename from
3731 tui_display_register.
3732 (tui_data_item_window::refresh_window): New method.
3733 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3736 2019-08-30 Tom Tromey <tom@tromey.com>
3738 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3739 regs_column_count, current_group>: Move later. Now private.
3740 <get_current_group>: New method.
3741 * tui/tui-regs.c (tui_reg_command): Update.
3742 * tui/tui-layout.c (tui_set_layout): Update.
3744 2019-08-30 Tom Tromey <tom@tromey.com>
3746 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3747 (tui_data_window::rerender): Don't call
3748 check_and_display_highlight_if_needed.
3749 (tui_data_window::refresh_all): Remove call to
3752 2019-08-30 Tom Tromey <tom@tromey.com>
3754 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3755 (tui_data_window::display_registers_from)
3756 (tui_data_window::display_reg_element_at_line)
3757 (tui_data_window::display_registers_from_line): Remove checks of
3760 2019-08-30 Tom Tromey <tom@tromey.com>
3762 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3764 * tui/tui-regs.c (tui_data_window::show_registers): Call
3766 (tui_data_window::rerender): Rename from display_all_data.
3767 (tui_data_window::rerender): Remove old implementation.
3769 2019-08-30 Tom Tromey <tom@tromey.com>
3771 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3773 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3775 2019-08-29 Bernhard Wodok <barto@gmx.net>
3776 Sergio Durigan Junior <sergiodj@redhat.com>
3779 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3781 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3783 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3784 when searching for types.
3786 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3788 * f-lang.c (f_language_defn): Use f_print_typedef.
3789 * f-lang.h (f_print_typedef): Declare.
3790 * f-typeprint.c (f_print_typedef): Define.
3792 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3794 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3796 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3798 * cli/cli-utils.c (info_print_options_defs): Delete.
3799 (make_info_print_options_def_group): Delete.
3800 (extract_info_print_options): Delete.
3801 (info_print_command_completer): Delete.
3802 (info_print_args_help): Add extra parameter, and optionally
3803 include text about -n flag.
3804 * cli/cli-utils.h (struct info_print_options): Delete.
3805 (extract_info_print_options): Delete declaration.
3806 (info_print_command_completer): Delete declaration.
3807 (info_print_args_help): Add extra parameter, extend header
3809 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3811 * stack.c (struct info_print_options): New type.
3812 (info_print_options_defs): New file scoped variable.
3813 (make_info_print_options_def_group): New static function.
3814 (info_print_command_completer): New static function.
3815 (info_locals_command): Update to use new local functions.
3816 (info_args_command): Likewise.
3817 (_initialize_stack): Add extra parameter to calls to
3818 info_print_args_help.
3819 * symtab.c (search_symbols): Add extra parameter, use this to
3820 possibly excluse non-debug symbols.
3821 (symtab_symbol_info): Add extra parameter, which is passed on to
3823 (struct info_print_options): New type.
3824 (info_print_options_defs): New file scoped variable.
3825 (make_info_print_options_def_group): New static function.
3826 (info_print_command_completer): New static function.
3827 (info_variables_command): Update to use local functions, and pass
3828 extra parameter through to symtab_symbol_info.
3829 (info_functions_command): Likewise.
3830 (info_types_command): Pass additional argument through to
3832 (rbreak_command): Pass extra argument to search_symbols.
3833 (_initialize_symtab): Add extra arguments for calls to
3834 info_print_args_help, and update help text for 'info variables',
3835 'whereis', and 'info functions' commands.
3836 * symtab.h (search_symbols): Add extra argument to declaration.
3837 * NEWS: Mention new flags.
3839 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3841 * symtab.c (lookup_static_symbol): Call the new function (and move
3842 it down to be next to lookup_global_symbol).
3843 (struct global_sym_lookup_data): Add block_enum member and rename to...
3844 (struct global_or_static_sym_lookup_data): ...this.
3845 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3846 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3847 (lookup_symbol_global_or_static_iterator_cb): ...this.
3848 (lookup_global_or_static_symbol): New function.
3849 (lookup_global_symbol): Call new function.
3851 2019-08-26 Tom de Vries <tdevries@suse.de>
3854 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3855 when pc_probe.prob == NULL.
3857 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3859 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3860 variable symbol_linkage to symbol_linkage_.
3862 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3864 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3865 represent whether the symbol is static, dynamic, or we don't
3868 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3870 * gdb/rx-tdep.c (rx_register_names): New.
3871 (rx_register_name): Delete.
3872 (rx_psw_type): Delete.
3873 (rx_fpsw_type): Delete.
3874 (rx_register_type): Delete.
3875 (rx_gdbarch_init): Convert target-descriptions.
3876 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3877 * gdb/features/Makefile: Add rx.xml.
3878 * gdb/features/rx.xml: New.
3879 * gdb/features/rx.c: Generated.
3880 * gdb/NEWS: Mention target description support.
3882 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3884 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3887 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3889 * configure.ac: Don't check for 'dlfcn.h' (moved to
3890 gdbsupport/common.m4).
3891 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3893 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3894 * compile/compile-c-support.c: Include
3895 'gdbsupport/gdb-dlfcn.h'.
3896 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3897 * gdb-dlfcn.c: Move to...
3898 * gdbsupport/gdb-dlfcn.c: ... here.
3899 * gdb-dlfcn.h: Move to...
3900 * gdbsupport/gdb-dlfcn.h: ... here.
3902 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3904 * nios2-tdep.c (struct reg_value): Improve comments. Make
3905 the offset field signed.
3907 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3909 * python/lib/gdb/__init__.py (_execute_file): New function.
3910 * python/python.c (python_run_simple_file): Call gdb._execute_file
3913 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3915 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3916 all uses as this was never set to anything but a zero value.
3918 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3920 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3922 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3924 * tui/tui-data.h (tui_gen_win_info): Add an =default
3925 move constructor, required by some GCC versions.
3927 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3929 * go32-nat.c (go32_sysinfo): Add hygon_p.
3931 2019-08-20 Tom Tromey <tom@tromey.com>
3933 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3934 line_from_reg_element_no, first_reg_element_no_inline,
3935 display_all_data, delete_data_content_windows,
3936 erase_data_content>: Now private.
3938 2019-08-20 Tom Tromey <tom@tromey.com>
3940 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3941 (tui_unhighlight_win, tui_highlight_win)
3942 (tui_win_info::make_window): Update.
3943 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3945 2019-08-20 Tom Tromey <tom@tromey.com>
3947 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3948 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3949 (MAX_PID_WIDTH): Move to tui-stack.c.
3950 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3951 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3952 (MAX_PID_WIDTH): Move from tui-data.h.
3954 2019-08-20 Tom Tromey <tom@tromey.com>
3956 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3957 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3959 (tui_gen_win_info::make_window): Rename from tui_make_window.
3960 (tui_win_info::make_window): New method.
3961 (tui_gen_win_info::make_visible): Update.
3962 * tui/tui-source.c (tui_source_window::set_contents): Update.
3963 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3964 (tui_data_window::display_registers_from): Update.
3965 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3966 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3970 (struct tui_win_info) <make_window>: Declare.
3971 <can_box>: Now virtual.
3972 <title>: New member.
3973 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3974 * tui/tui-command.c (tui_cmd_window::resize): Update.
3976 2019-08-20 Tom Tromey <tom@tromey.com>
3978 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3979 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3980 (tui_data_window::check_register_values): Update.
3982 2019-08-20 Tom Tromey <tom@tromey.com>
3984 * tui/tui-regs.h (struct tui_data_window): Use
3985 DISABLE_COPY_AND_ASSIGN.
3986 <regs_content>: Change type, removing unique_ptr.
3987 <tui_data_window>: Add move constructor.
3988 * tui/tui-regs.c (tui_data_window::show_registers)
3989 (tui_data_window::show_register_group)
3990 (tui_data_window::display_registers_from)
3991 (tui_data_window::display_registers_from)
3992 (tui_data_window::first_data_item_displayed)
3993 (tui_data_window::delete_data_content_windows)
3994 (tui_data_window::rerender, tui_data_window::refresh_window)
3995 (tui_data_window::check_register_values): Update.
3997 2019-08-20 Tom Tromey <tom@tromey.com>
3999 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4000 show_register_group>: Declare.
4001 (tui_show_register_group): Don't declare.
4002 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4004 (tui_data_window::show_register_group): Rename from
4005 tui_show_register_group.
4006 (tui_data_window::check_register_values, tui_reg_command):
4008 * tui/tui-layout.c (tui_set_layout): Update.
4010 2019-08-20 Tom Tromey <tom@tromey.com>
4012 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4014 (tui_check_register_values): Don't declare.
4015 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4016 from tui_check_register_values.
4017 * tui/tui-hooks.c (tui_register_changed): Update.
4019 2019-08-20 Tom Tromey <tom@tromey.com>
4021 * tui/tui-regs.c (tui_reg_layout): Move later.
4022 (tui_show_registers): Don't enable TUI mode or change layout.
4024 2019-08-20 Tom Tromey <tom@tromey.com>
4026 * tui/tui-regs.h (struct tui_data_item_window)
4027 <~tui_data_item_window>: Remove.
4028 <content>: Now a unique_xmalloc_ptr.
4029 * tui/tui-regs.c (tui_register_format): Return a
4031 (tui_get_register): Update.
4032 (~tui_data_item_window): Remove.
4033 (tui_data_window::display_registers_from, tui_display_register):
4035 * tui/tui-io.h (tui_expand_tabs): Update.
4036 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4037 Remove "col" parameter.
4039 2019-08-20 Tom Tromey <tom@tromey.com>
4041 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4043 * tui/tui-regs.c (~tui_data_item_window): Update.
4045 2019-08-20 Tom Tromey <tom@tromey.com>
4047 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4050 2019-08-20 Tom Tromey <tom@tromey.com>
4052 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4054 2019-08-20 Tom Tromey <tom@tromey.com>
4056 * tui/tui-source.h (struct tui_source_window): Update.
4057 * tui/tui-regs.c (tui_show_registers): Update.
4058 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4059 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4060 (NO_REGS_STRING): Remove defines.
4062 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4064 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4065 unnecessary thread walk if remote doesn't support the packet.
4067 2019-08-19 Tom Tromey <tromey@adacore.com>
4069 * python/py-value.c (value_has_field): Fix indentation.
4071 2019-08-19 Tom Tromey <tromey@adacore.com>
4073 * printcmd.c (do_one_display, info_display_command): Update.
4074 * block.h (contained_in): Return bool. Add allow_nested
4076 * block.c (contained_in): Return bool. Add allow_nested
4079 2019-08-19 Tom Tromey <tom@tromey.com>
4081 * configure: Rebuild.
4082 * configure.ac: Disallow the combination of -static-libstdc++ and
4084 * source-cache.c (get_language_name): Handle rust.
4085 (source_cache::get_source_lines): Ignore highlighting exceptions.
4087 2019-08-16 Tom Tromey <tom@tromey.com>
4089 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4090 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4091 (struct tui_source_window_base) <make_visible, refresh_window,
4092 resize>: Remove methods.
4093 <execution_info>: Remove field.
4094 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4095 (tui_show_source_line, tui_source_window_base)
4096 (~tui_source_window_base): Update.
4097 (tui_source_window_base::resize)
4098 (tui_source_window_base::make_visible)
4099 (tui_source_window_base::refresh_window): Remove.
4100 (tui_source_window_base::update_exec_info): Update.
4101 * tui/tui-source.c (tui_source_window::set_contents): Update.
4102 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4104 2019-08-16 Tom Tromey <tom@tromey.com>
4106 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4107 deprecated_query_hook.
4109 2019-08-16 Tom Tromey <tom@tromey.com>
4111 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4112 (tui_update_source_windows_with_line): Update.
4113 * tui/tui-source.h (struct tui_source_window)
4114 <show_symtab_source>: Declare.
4115 (tui_show_symtab_source): Don't declare.
4116 * tui/tui-source.c (tui_show_symtab_source): Rename from
4117 tui_show_symtab_source.
4119 2019-08-16 Tom Tromey <tom@tromey.com>
4121 * tui/tui-winsource.h (struct tui_source_window_base)
4122 <set_contents>: Declare.
4123 * tui/tui-winsource.c
4124 (tui_source_window_base::update_source_window_as_is): Update.
4125 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4127 (tui_set_source_content): Don't declare.
4128 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4129 tui_set_source_content.
4130 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4132 (tui_set_disassem_content): Don't declare.
4133 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4134 tui_set_disassem_content.
4136 2019-08-16 Tom Tromey <tom@tromey.com>
4138 * tui/tui-winsource.h (struct tui_source_window_base)
4139 <update_breakpoint_info>: Declare.
4140 (tui_update_breakpoint_info): Don't declare.
4141 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4142 (tui_update_all_breakpoint_info): Update.
4143 (tui_source_window_base::update_breakpoint_info): Rename from
4144 tui_update_breakpoint_info.
4145 (tui_source_window_base::update_exec_info): Update.
4147 2019-08-16 Tom Tromey <tom@tromey.com>
4149 * tui/tui-winsource.h (struct tui_source_window_base)
4150 <update_source_window>: Declare.
4151 (tui_update_source_window): Don't declare.
4152 * tui/tui-winsource.c
4153 (tui_source_window_base::update_source_window): Rename from
4154 tui_update_source_window.
4155 (tui_source_window_base::rerender): Update.
4156 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4157 * tui/tui-disasm.c (tui_show_disassem)
4158 (tui_show_disassem_and_update_source)
4159 (tui_disasm_window::maybe_update): Update.
4161 2019-08-16 Tom Tromey <tom@tromey.com>
4163 * tui/tui-winsource.h (struct tui_source_window_base)
4164 <update_source_window_as_is>: Declare.
4165 (tui_update_source_window_as_is): Don't declare.
4166 * tui/tui-winsource.c (tui_update_source_window): Update
4167 (tui_source_window_base::update_source_window_as_is): Rename from
4168 tui_update_source_window_as_is.
4169 (tui_source_window_base::refill): Update.
4170 * tui/tui-source.c (tui_show_symtab_source): Update.
4171 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4174 2019-08-16 Tom Tromey <tom@tromey.com>
4176 * tui/tui-winsource.h (tui_update_source_window)
4177 (tui_update_source_window_as_is): Remove "noerror" parameter.
4178 * tui/tui-winsource.c (tui_update_source_window)
4179 (tui_update_source_window_as_is): Remove "noerror" parameter.
4180 (tui_update_source_windows_with_addr)
4181 (tui_update_source_windows_with_line)
4182 (tui_source_window_base::rerender)
4183 (tui_source_window_base::refill): Update.
4184 * tui/tui-source.h (tui_set_source_content)
4185 (tui_show_symtab_source): Remove "noerror" parameter.
4186 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4188 (tui_show_symtab_source): Likewise.
4189 (tui_source_window::maybe_update): Update.
4190 * tui/tui-disasm.c (tui_show_disassem)
4191 (tui_show_disassem_and_update_source)
4192 (tui_disasm_window::do_scroll_vertical)
4193 (tui_disasm_window::maybe_update): Update.
4195 2019-08-16 Tom Tromey <tom@tromey.com>
4197 * tui/tui.c (tui_is_window_visible): Update.
4198 * tui/tui-wingeneral.c (tui_make_window)
4199 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4200 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4201 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4202 (tui_set_win_height_command, parse_scrolling_args): Update.
4203 * tui/tui-source.c (tui_source_window::style_changed): Update.
4204 * tui/tui-regs.c (tui_show_registers)
4205 (tui_data_window::first_data_item_displayed)
4206 (tui_data_window::delete_data_content_windows)
4207 (tui_check_register_values, tui_reg_command): Update.
4208 * tui/tui-disasm.c (tui_show_disassem): Update.
4209 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4211 <is_visible>: Remove field.
4212 * tui/tui-data.c (tui_next_win, tui_prev_win)
4213 (tui_delete_invisible_windows): Update.
4215 2019-08-16 Tom Tromey <tom@tromey.com>
4217 * tui/tui-winsource.h (struct tui_source_window_base)
4218 <m_has_locator>: Remove.
4219 * tui/tui-layout.c (show_source_disasm_command, show_data)
4220 (show_source_or_disasm_and_command): Update.
4222 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4224 * NEWS (Other MI changes): New subsection.
4225 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4226 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4227 * arch-utils.c (default_get_pc_address_flags): New function.
4228 * arch-utils.h (default_get_pc_address_flags): New declaration.
4229 * gdbarch.sh: Add get_pc_address_flags.
4230 * gdbarch.c: Regenerate.
4231 * gdbarch.h: Likewise.
4232 * stack.c (print_pc): New function.
4233 (print_frame_info) (print_frame): Call print_pc.
4235 2019-08-16 Tom de Vries <tdevries@suse.de>
4237 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4238 print_objfile_section_info.
4240 2019-08-15 Tom Tromey <tom@tromey.com>
4242 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4243 calling update_cmdwin_start_line.
4244 * tui/tui-winsource.h (struct tui_source_window_base)
4245 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4246 <rerender>: Declare.
4247 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4249 (tui_source_window_base::set_new_height): Remove.
4250 (tui_source_window_base::rerender): Rename from
4251 do_make_visible_with_new_height.
4252 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4254 (tui_win_info::make_invisible_and_set_new_height)
4255 (tui_win_info::make_visible_with_new_height): Remove.
4256 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4258 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4259 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4260 do_make_visible_with_new_height>: Don't declare.
4261 <rerender>: Declare.
4262 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4264 (tui_data_window::do_make_visible_with_new_height): Remove.
4265 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4266 call tui_show_locator_content.
4267 (tui_gen_win_info::resize): Call rerender.
4268 (show_source_or_disasm_and_command): Don't call
4269 tui_show_locator_content.
4270 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4272 (struct tui_win_info) <rerender>: Declare.
4273 <set_new_height, make_invisible_and_set_new_height,
4274 make_visible_with_new_height>: Don't declare.
4275 * tui/tui-data.c (tui_win_list::rerender): New method.
4276 * tui/tui-command.h (struct tui_cmd_window)
4277 <do_make_visible_with_new_height>: Don't declare.
4279 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4281 2019-08-15 Tom Tromey <tromey@adacore.com>
4283 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4284 * ada-lang.c (ada_enum_name): Likewise.
4286 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4288 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4290 (GdbOutputErrorFile): Likewise.
4291 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4293 (execute_unwinders): Rename to have a leading underscore.
4294 (auto_load_packages): Likewise.
4295 (global scope): Adjust call to auto_load_packages accordingly.
4296 (GdbSetPythonDirectory): Likewise.
4297 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4298 instead of execute_unwinders.
4300 2019-08-15 Tom Tromey <tom@tromey.com>
4302 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4303 (show_data): Don't change window visibility.
4304 (tui_gen_win_info::resize): Remove special case for command
4305 window. Use wresize, when available.
4306 (show_source_or_disasm_and_command): Don't change window
4308 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4309 <make_visible>: New method.
4310 * tui/tui-command.c (tui_cmd_window::resize): New method.
4312 2019-08-15 Tom Tromey <tom@tromey.com>
4314 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4315 (struct tui_source_windows): New.
4316 * tui/tui-winsource.c (tui_display_main): Update.
4317 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4318 (new_height_ok, parse_scrolling_args): Update.
4319 * tui/tui-layout.c (show_layout, show_data): Update.
4320 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4321 (tui_add_to_source_windows): Don't declare.
4322 * tui/tui-data.c (source_windows, tui_source_windows)
4323 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4325 2019-08-15 Tom Tromey <tom@tromey.com>
4327 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4329 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4330 * tui/tui-layout.c (show_source_disasm_command, show_data):
4332 (tui_gen_win_info::resize): Rename.
4333 (show_source_or_disasm_and_command): Update.
4334 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4337 2019-08-15 Tom Tromey <tom@tromey.com>
4339 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4340 * tui/tui-interp.c (tui_interp::init): Don't call
4341 tui_initialize_static_data.
4342 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4344 2019-08-15 Tom Tromey <tom@tromey.com>
4346 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4347 examine tui_win_list.
4349 2019-08-15 Tom Tromey <tom@tromey.com>
4351 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4352 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4353 tui_clear_source_content.
4354 (tui_clear_source_content): Remove.
4355 (tui_source_window_base::do_erase_source_content): Hoist call to
4357 * tui/tui-stack.c (tui_show_frame_info): Don't call
4358 tui_clear_source_content.
4360 2019-08-15 Tom Tromey <tom@tromey.com>
4362 * tui/tui-winsource.h (struct tui_source_window_base)
4363 <do_erase_source_content>: New method.
4364 <erase_source_content>: New method.
4365 (tui_erase_source_content): Don't declare.
4366 * tui/tui-winsource.c (tui_clear_source_content): Update.
4367 (tui_source_window_base::do_erase_source_content): Rename from
4368 tui_erase_source_content.
4369 (tui_source_window_base::show_source_content): Update.
4370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4371 * tui/tui-source.h (struct tui_source_window)
4372 <erase_source_content>: New method.
4373 * tui/tui-disasm.h (struct tui_disasm_window)
4374 <erase_source_content>: New method.
4376 2019-08-15 Tom Tromey <tom@tromey.com>
4378 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4379 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4381 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4382 * tui/tui-source.c (tui_set_source_content): Update.
4383 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4385 2019-08-15 Tom Tromey <tom@tromey.com>
4387 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4388 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4390 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4392 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4394 (tui_source_window::maybe_update): Update.
4396 2019-08-15 Tom Tromey <tom@tromey.com>
4398 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4399 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4401 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4403 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4405 (tui_disasm_window::maybe_update): Update.
4407 2019-08-15 Tom Tromey <tom@tromey.com>
4409 * tui/tui-winsource.h (struct tui_source_window_base)
4410 <maybe_update>: Declare.
4411 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4413 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4415 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4416 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4418 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4420 2019-08-15 Tom Tromey <tom@tromey.com>
4422 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4424 2019-08-15 Tom Tromey <tom@tromey.com>
4426 * tui/tui-wingeneral.c: Include tui-stack.h.
4427 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4428 (struct tui_locator_window): Move from tui-data.h.
4429 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4430 (tui_initialize_static_data): Move from tui-data.c.
4431 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4432 (struct tui_locator_window): Move to tui-stack.c.
4433 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4434 (tui_initialize_static_data): Move to tui-stack.c.
4436 2019-08-15 Tom Tromey <tom@tromey.com>
4438 * tui/tui-layout.c (show_source_disasm_command)
4439 (show_source_or_disasm_and_command): Use make_visible method, not
4441 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4444 2019-08-15 Tom Tromey <tom@tromey.com>
4446 * tui/tui-wingeneral.h (tui_make_window): Update.
4447 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4449 (tui_gen_win_info::make_visible): Update.
4450 * tui/tui-regs.c (tui_data_window::display_registers_from):
4452 * tui/tui-layout.c (show_source_disasm_command)
4453 (show_source_or_disasm_and_command): Update.
4454 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4455 (enum tui_box): Remove.
4456 (struct tui_win_info) <can_box>: New method.
4457 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4460 2019-08-15 Tom de Vries <tdevries@suse.de>
4462 * linux-nat-trad.c: Include gdbarch.h.
4464 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4466 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4469 2019-08-14 Tom Tromey <tromey@adacore.com>
4471 * darwin-nat.c: Include gdbarch.h.
4472 * darwin-nat-info.c: Include gdbarch.h.
4474 2019-08-13 Tom Tromey <tom@tromey.com>
4476 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4478 * tui/tui-data.c (tui_initialize_static_data): Update.
4480 2019-08-13 Tom Tromey <tom@tromey.com>
4482 * tui/tui-winsource.h (struct tui_exec_info_window)
4483 <~tui_exec_info_window, maybe_allocate_content, get_content,
4485 (struct tui_source_window_base) <set_exec_info_content,
4486 show_exec_info_content>: Don't declare.
4487 * tui/tui-winsource.c
4488 (tui_exec_info_window::maybe_allocate_content): Remove.
4489 (tui_source_window_base::update_exec_info): Rename from
4490 set_exec_info_content.
4491 (tui_source_window_base::show_exec_info_content)
4492 (tui_source_window_base::update_exec_info): Remove.
4494 2019-08-13 Tom Tromey <tom@tromey.com>
4496 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4498 * tui/tui-winsource.c (tui_update_source_window_as_is)
4499 (tui_update_source_windows_with_addr, tui_erase_source_content):
4501 (tui_clear_exec_info_content): Remove.
4503 2019-08-13 Tom Tromey <tom@tromey.com>
4505 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4507 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4508 call tui_erase_exec_info_content.
4509 (tui_clear_exec_info_content): Rename from
4510 tui_erase_exec_info_content.
4511 (tui_clear_exec_info_content): Delete.
4513 2019-08-13 Tom Tromey <tom@tromey.com>
4515 * tui/tui-winsource.h (struct tui_source_window_base)
4516 <show_exec_info_content>: Declare.
4517 (tui_show_exec_info_content): Don't declare.
4518 * tui/tui-winsource.c
4519 (tui_source_window_base::show_exec_info_content): Rename from
4520 tui_show_exec_info_content.
4521 (tui_source_window_base::update_exec_info): Update.
4523 2019-08-13 Tom Tromey <tom@tromey.com>
4525 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4526 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4527 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4528 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4529 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4530 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4533 2019-08-13 Tom Tromey <tom@tromey.com>
4535 * tui/tui-winsource.h (struct tui_source_window_base)
4536 <update_exec_info>: Declare.
4537 (tui_update_exec_info): Don't declare.
4538 * tui/tui-winsource.c (tui_update_source_window_as_is)
4539 (tui_source_window_base::refresh_all)
4540 (tui_update_all_breakpoint_info): Update.
4541 (tui_source_window_base::update_exec_info): Rename from
4542 tui_update_exec_info.
4543 * tui/tui-stack.c (tui_show_frame_info): Update.
4545 2019-08-13 Tom Tromey <tom@tromey.com>
4547 * tui/tui-winsource.h (struct tui_source_window_base)
4548 <set_exec_info_content>: Declare.
4549 (tui_set_exec_info_content): Don't declare.
4550 * tui/tui-winsource.c
4551 (tui_source_window_base::set_exec_info_content): Rename from
4552 tui_set_exec_info_content.
4553 (tui_update_exec_info): Update.
4555 2019-08-13 Tom Tromey <tom@tromey.com>
4557 * tui/tui-winsource.h (struct tui_source_window_base)
4558 <show_source_content>: Declare.
4559 (tui_show_source_content): Don't declare.
4560 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4561 (tui_source_window_base::show_source_content): Rename from
4562 tui_show_source_content.
4563 (tui_source_window_base::refresh_all): Update.
4564 * tui/tui-layout.c (show_source_disasm_command)
4565 (show_source_or_disasm_and_command): Update.
4567 2019-08-13 Tom Tromey <tom@tromey.com>
4569 * tui/tui-winsource.c (tui_erase_source_content)
4570 (tui_show_source_content, tui_source_window_base::refresh_all):
4572 * tui/tui-wingeneral.h
4573 (tui_check_and_display_highlight_if_needed): Don't declare.
4574 * tui/tui-wingeneral.c
4575 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4576 check_and_display_highlight_if_needed.
4577 * tui/tui-win.c (tui_rehighlight_all)
4578 (tui_win_info::make_visible_with_new_height): Update.
4579 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4580 (tui_data_window::erase_data_content)
4581 (tui_data_window::display_all_data): Update.
4582 * tui/tui-data.h (struct tui_win_info)
4583 <check_and_display_highlight_if_needed>: Declare.
4585 2019-08-13 Tom Tromey <tom@tromey.com>
4587 * tui/tui-win.c (tui_resize_all): Call
4588 tui_delete_invisible_windows.
4589 * tui/tui-layout.c (show_layout): Call
4590 tui_delete_invisible_windows.
4591 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4592 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4594 2019-08-13 Tom Tromey <tom@tromey.com>
4596 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4597 tui_add_win_to_layout.
4599 2019-08-13 Tom Tromey <tom@tromey.com>
4601 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4602 * tui/tui-layout.c (tui_default_win_height): Now static.
4604 2019-08-13 Tom Tromey <tom@tromey.com>
4606 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4608 (show_source_disasm_command, show_source_or_disasm_and_command):
4609 Don't check current layout.
4611 2019-08-13 Tom Tromey <tom@tromey.com>
4613 * tui/tui-wingeneral.c (make_all_visible): Remove.
4614 (tui_make_all_invisible): Simplify.
4615 * tui/tui-layout.c (tui_make_all_invisible): Move from
4616 tui-wingeneral.c; simplify.
4617 (show_layout): Hoist call to tui_make_all_invisible.
4618 (show_data): Don't call tui_make_all_invisible.
4620 2019-08-13 Tom Tromey <tom@tromey.com>
4622 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4623 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4625 2019-08-13 Tom Tromey <tom@tromey.com>
4627 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4629 (show_source_disasm_command, show_data)
4630 (show_source_or_disasm_and_command): Don't use
4631 tui_set_current_layout_to.
4632 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4633 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4635 (tui_set_current_layout_to): Remove.
4637 2019-08-13 Tom Tromey <tom@tromey.com>
4639 * tui/tui-layout.c (tui_set_layout): Update.
4640 * tui/tui-data.h (struct tui_layout_def): Remove.
4641 (tui_layout_def): Don't declare.
4642 * tui/tui-data.c (layout_def): Remove.
4643 (tui_layout_def): Remove.
4645 2019-08-13 Tom Tromey <tom@tromey.com>
4647 * tui/tui-winsource.h (struct tui_source_window_base)
4648 <clear_detail>: No longer "override".
4649 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4650 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4651 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4652 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4654 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4656 2019-08-13 Tom Tromey <tromey@adacore.com>
4658 * tracepoint.c: Don't include readline.h or history.h.
4660 2019-08-12 Tom Tromey <tom@tromey.com>
4662 * configure: Rebuild.
4663 * configure.ac: Check for readline 7.
4664 * NEWS: Mention readline 7 requirement.
4667 2019-08-12 Tom Tromey <tom@tromey.com>
4669 * mingw-hdep.c (gdb_select): Remove readline hack.
4671 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4673 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4674 when the function fails.
4676 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4678 * s390-tdep.c (s390_type_align): New function.
4679 (s390_gdbarch_init): Set it as type_align gdbarch method.
4681 2019-08-09 Tom de Vries <tdevries@suse.de>
4684 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4685 pc_low with relocation offset.
4687 2019-08-07 Tom Tromey <tromey@adacore.com>
4689 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4690 (print_frame_args): Update.
4691 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4693 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4694 * frame.h (struct frame_arg): Add initializers.
4695 <error>: Now a unique_xmalloc_ptr.
4697 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4699 * NEWS: Expand the Pointer Authentication entry.
4700 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4701 (aarch64_frame_unmask_lr): ... to this.
4702 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4703 Call aarch64_frame_unmask_lr.
4704 * frame.c (struct frame_info): Add "masked" variable.
4705 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4706 (fprint_frame): Check for masked pc.
4707 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4709 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4710 * stack.c (print_frame): Check for masked pc.
4712 2019-08-06 Tom Tromey <tom@tromey.com>
4714 * stabsread.c (patch_block_stabs, read_one_struct_field)
4715 (read_enum_type): Use obstack_strndup.
4716 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4717 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4718 * dwarf2read.c (guess_full_die_structure_name)
4719 (anonymous_struct_prefix): Use obstack_strndup.
4720 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4721 * c-exp.y (yylex): Use obstack_strndup.
4722 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4723 (write_var_or_type): Use obstack_strndup.
4725 2019-08-06 Tom Tromey <tom@tromey.com>
4727 * symfile.c (reread_symbols): Use obstack_strdup.
4728 * stabsread.c (read_type): Use obstack_strdup.
4729 * gdb_obstack.h (obstack_strdup): New overload.
4730 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4731 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4732 (dwarf2_canonicalize_name): Use obstack_strdup.
4733 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4734 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4737 2019-08-06 Tom Tromey <tom@tromey.com>
4739 * gdb_obstack.h (obstack_strdup): Define.
4740 * gdb_obstack.c (obstack_strdup): Don't define.
4742 2019-08-06 Tom Tromey <tom@tromey.com>
4744 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4746 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4748 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4749 * stabsread.c (common_block_start): Use obstack_strdup.
4750 * objfiles.c (set_objfile_main_name, objfile): Use
4752 * namespace.c (add_using_directive): Use obstack_strdup.
4753 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4754 * jit.c (finalize_symtab): Use obstack_strdup.
4755 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4756 (guess_partial_die_structure_name, partial_die_info::fixup)
4757 (dwarf2_name): Use obstack_strdup.
4758 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4760 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4761 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4763 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4765 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4767 * unittests/help-doc-selftests.c: New file.
4768 * Makefile.in: Add the new file.
4770 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4772 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4773 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4774 the full first line, except when FOR_VALUE_PREFIX. In this case,
4775 the trailing '.' is not output, and the first character is uppercased.
4776 (print_help_for_command): Update call to print_doc_line.
4777 (print_doc_of_command): Likewise.
4778 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4779 * cli/cli-option.c (append_indented_doc): Do not append newline.
4780 (build_help_option): Append newline after first appended_indented_doc
4781 only if a second call is done.
4782 (build_help): Append 2 new lines before each option, except the first
4784 * compile/compile.c (_initialize_compile): Add new lines after
4785 %OPTIONS%, when not at the end of the help.
4786 Change help doc or code
4787 producing the help doc to respect the invariants.
4788 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4789 Also removed the new line after 'Options:', as all other commands
4790 do not put an empty line between 'Options:' and the first option.
4791 * printcmd.c (_initialize_printcmd): Likewise.
4792 * stack.c (_initialize_stack): Likewise.
4793 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4794 incorrectly telling COMMAND is optional.
4795 * ada-lang.c (_initialize_ada_language): Change help doc or code
4796 producing the help doc to respect the invariants.
4797 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4798 * breakpoint.c (_initialize_breakpoint): Likewise.
4799 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4800 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4801 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4802 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4803 _initialize_cli_style): Likewise.
4804 * corelow.c (core_target_info): Likewise.
4805 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4806 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4807 * filesystem.c (_initialize_filesystem): Likewise.
4808 * frame.c (_initialize_frame): Likewise.
4809 * gnu-nat.c (add_task_commands): Likewise.
4810 * infcall.c (_initialize_infcall): Likewise.
4811 * infcmd.c (_initialize_infcmd): Likewise.
4812 * interps.c (_initialize_interpreter): Likewise.
4813 * language.c (_initialize_language): Likewise.
4814 * linux-fork.c (_initialize_linux_fork): Likewise.
4815 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4816 * maint.c (_initialize_maint_cmds): Likewise.
4817 * memattr.c (_initialize_mem): Likewise.
4818 * printcmd.c (_initialize_printcmd): Likewise.
4819 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4821 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4822 * record-btrace.c (_initialize_record_btrace): Likewise.
4823 * record-full.c (_initialize_record_full): Likewise.
4824 * record.c (_initialize_record): Likewise.
4825 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4826 * regcache.c (_initialize_regcache): Likewise.
4827 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4828 _initialize_remote): Likewise.
4829 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4830 * serial.c (_initialize_serial): Likewise.
4831 * skip.c (_initialize_step_skip): Likewise.
4832 * source.c (_initialize_source): Likewise.
4833 * stack.c (_initialize_stack): Likewise.
4834 * symfile.c (_initialize_symfile): Likewise.
4835 * symtab.c (_initialize_symtab): Likewise.
4836 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4837 * top.c (init_main): Likewise.
4838 * tracefile-tfile.c (tfile_target_info): Likewise.
4839 * tracepoint.c (_initialize_tracepoint): Likewise.
4840 * tui/tui-win.c (_initialize_tui_win): Likewise.
4841 * utils.c (add_internal_problem_command): Likewise.
4842 * valprint.c (value_print_option_defs): Likewise.
4844 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4847 * configure.ac: Drop enable-libmcheck support.
4848 * configure, config.in: Rebuild.
4849 * libmcheck.m4: Remove.
4850 * acinclude.m4: Don't include it.
4851 * Makefile.in: Don't distribute it.
4852 * top.c (print_gdb_configuration): Don't mention it.
4854 2019-08-06 Tom Tromey <tom@tromey.com>
4856 * utils.c (set_output_style): Sometimes pass stream to
4858 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4859 * record-btrace.c (btrace_insn_history): Update.
4860 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4862 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4863 Update initializers.
4864 <m_uiout>: New field.
4866 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4867 Remove "uiout" parameter.
4868 (dump_insns): Update.
4869 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4870 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4872 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4874 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4875 (error_in_psymtab_expansion): Likewise.
4876 (lookup_symbol_via_quick_fns): Likewise.
4877 (basic_lookup_transparent_type_quick): Likewise.
4878 (basic_lookup_transparent_type_1): Likewise.
4880 2019-08-06 Tom Tromey <tromey@adacore.com>
4882 * source.c (last_source_error): Now bool.
4883 (print_source_lines_base): Make "noprint" bool. Only open
4884 source file when last_source_visited changes.
4886 2019-08-06 Tom Tromey <tromey@adacore.com>
4888 * annotate.c (annotate_source_line): Use g_source_cache.
4889 * source-cache.c (source_cache::get_plain_source_lines): Change
4890 parameters. Populate m_offset_cache.
4891 (source_cache::ensure): New method.
4892 (source_cache::get_line_charpos): New method.
4893 (extract_lines): Move lower. Change parameters.
4894 (source_cache::get_source_lines): Move lower.
4895 * source-cache.h (class source_cache): Update comment.
4896 <get_line_charpos>: New method.
4897 <get_source_lines>: Update comment.
4898 <clear>: Clear m_offset_cache.
4899 <get_plain_source_lines>: Change parameters.
4900 <ensure>: New method
4901 <m_offset_cache>: New member.
4902 * source.c (forget_cached_source_info_for_objfile): Update.
4903 (info_source_command): Use g_source_cache.
4904 (find_source_lines, open_source_file_with_line_charpos): Remove.
4905 (print_source_lines_base, search_command_helper): Use g_source_cache.
4906 * source.h (open_source_file_with_line_charpos): Don't declare.
4907 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4908 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4911 2019-08-06 Tom Tromey <tromey@adacore.com>
4913 * source-cache.c (source_cache::get_plain_source_lines):
4914 Remove "first_line" and "last_line" parameters.
4915 (source_cache::get_source_lines): Cache plain text.
4916 * source-cache.h (class source_cache)
4917 <get_plain_source_lines>: Update.
4919 2019-08-06 Tom Tromey <tromey@adacore.com>
4921 * source-cache.c (extract_lines): No longer a method.
4922 Changed type of parameter. Include final newline.
4923 (selftests::extract_lines_test): New function.
4924 (_initialize_source_cache): Likewise.
4925 * source-cache.h (class source_cache)
4926 <extract_lines>: Don't declare.
4928 2019-08-06 Tom Tromey <tromey@adacore.com>
4930 * breakpoint.c (init_breakpoint_sal): Update.
4931 (breakpoint): Update.
4932 * breakpoint.h (struct breakpoint) <filter>: Now a
4935 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4937 * NEWS: Mention dictionary access on blocks.
4938 * python/py-block.c (blpy_getitem): New function.
4939 (block_object_as_mapping): New struct.
4940 (block_object_type): Use new struct for tp_as_mapping field.
4942 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4944 * objfiles.h (objfile): Add a comment describing partial symbols.
4946 2019-08-05 Tom Tromey <tromey@adacore.com>
4948 * compile/compile.c (_initialize_compile): Use _(), not N_().
4949 * thread.c (_initialize_thread): Use _(), not N_().
4950 * stack.c (_initialize_stack): Use _(), not N_().
4951 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4953 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4955 * dwarf2read.c (struct dw2_symtab_iterator):
4956 <want_specific_block>: Remove.
4957 <block_index>: Change type to gdb::optional.
4958 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4959 change type of BLOCK_INDEX parameter to gdb::optional.
4960 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4961 (dw2_lookup_symbol): Don't pass argument for
4962 WANT_SPECIFIC_BLOCK.
4963 (dw2_expand_symtabs_for_function): Don't pass argument for
4964 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4965 (class dw2_debug_names_iterator)
4966 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4967 parameter, change BLOCK_INDEX type to gdb::optional.
4968 <m_want_specific_block>: Remove.
4969 <m_block_index>: Change type to gdb::optional.
4970 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4971 gdb::optional. Re-write in function of gdb::optional.
4972 (dw2_debug_names_lookup_symbol): Don't pass argument for
4973 WANT_SPECIFIC_BLOCK.
4974 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4975 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4978 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4980 * NEWS: Mention changes to "info sources" command.
4982 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4984 * symtab.c (filename_partial_match_opts): New struct type.
4985 (struct output_source_filename_data): New members
4986 regexp, c_regexp, partial_match.
4987 (output_source_filename): Use new members to decide to print file.
4988 (info_sources_option_defs): New variable.
4989 (make_info_sources_options_def_group, print_info_sources_header,
4990 info_sources_command_completer):
4992 (info_sources_command): Read new optional arguments.
4993 (_initialize_symtab): Update info sources help.
4995 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4997 * ada-lang.c (exception_support_info_v0): Renamed from...
4998 (default_exception_support_info): ... this. Create new
5000 (ada_has_this_exception_support): Look up catch_handlers_sym.
5001 (ada_exception_support_info_sniffer): Try v0 after default.
5003 2019-08-01 Tom Tromey <tromey@adacore.com>
5005 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5008 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5010 * s12z-tdep.c: Fix include path for s12z-opc.h.
5012 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5014 * NEWS: Require GNU make 3.82.
5016 2019-07-16 Tom Tromey <tom@tromey.com>
5018 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5021 2019-07-30 Tom Tromey <tromey@adacore.com>
5023 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5025 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5027 * printcmd.c (print_address_symbolic): Print negative offsets.
5028 (build_address_symbolic): Force signed arithmetic when computing
5031 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5033 PR/24474: Add a function to lookup static variables.
5034 * NEWS: Mention this new function.
5035 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5036 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5037 * python/python.c (python_GdbMethods): Add new function.
5039 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5041 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5042 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5043 (objfpy_lookup_static_symbol): New function.
5044 (objfile_object_methods): Add new functions.
5046 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5048 * NEWS: Mention 'set|show print frame-info'. Mention new
5049 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5050 backtrace argument. Mention that python frame filtering code
5051 is now consistent with what 'backtrace' command prints.
5053 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5055 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5057 (print_frame_info_auto, print_frame_info_source_line,
5058 print_frame_info_location, print_frame_info_source_and_location,
5059 print_frame_info_location_and_address, print_frame_info_short_location):
5061 (struct frame_print_options): New member print_frame_info.
5062 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5063 * stack.h (get_user_print_what_frame_info): New declaration.
5064 (frame_show_address): New declaration.
5065 * stack.c (print_frame_arguments_choices): New value 'presence'.
5066 (print_frame_info_auto, print_frame_info_source_line,
5067 print_frame_info_location, print_frame_info_source_and_location,
5068 print_frame_info_location_and_address, print_frame_info_short_location,
5069 print_frame_info_choices, print_frame_info_print_what): New definitions.
5070 (print_frame_args): Only print dots for args if print frame-arguments
5072 (frame_print_option_defs): New element for "frame-info".
5073 (get_user_print_what_frame_info): New function.
5074 (frame_show_address): Make non static. Move comment to stack.h.
5075 (print_frame_info_to_print_what): New function.
5076 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5077 to decide what to print.
5078 (backtrace_command_1): Handle the new print_frame_arguments_presence
5080 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5081 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5082 (py_print_frame): In non-mi mode, use LOCATION as default for
5083 print_what, similarly to frame information printed directly by
5084 backtrace command. Handle frame-info user option in non MI mode.
5086 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5088 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5089 Add case for debugging 32-bit target on 64-bit host. Revise
5092 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5094 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5095 instead of find_function_entry_range_from_pc.
5097 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5099 * stack.c (find_frame_funname): Remove code which preferred
5100 minsym over symtab sym in "certain pathological cases".
5102 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5103 parameter. Change type of "do_demangle" to bool.
5104 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5105 Pass suitable "prefer_sym_over_minsym" flag to
5106 build_address_symbolic(). Don't output "+" for negative offsets.
5107 * printcmd.c (print_address_symbolic): Update invocation of
5108 build_address_symbolic to include a "prefer_sym_over_minsym"
5110 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5111 Restrict cases in which use of minimal symbol is preferred to that
5112 of a found symbol. Update comments.
5114 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5115 for entry pc when entry pc is out of range for that FDE.
5117 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5120 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5123 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5125 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5126 this function's Python signature.
5129 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5131 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5132 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5133 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5134 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5135 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5138 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5140 * h8300-tdep.c (h8300_register_name_common): New.
5141 h8300_register_name): Use h8300_register_name_common.
5142 (h8300s_register_name): Likewise.
5143 (h8300sx_register_name): Likewise.
5144 (h8300h_register_nam): New.
5145 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5148 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5150 * arm-tdep.c (arm_skip_cmse_entry): New function.
5151 (arm_is_sgstubs_section): New function.
5152 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5154 2019-07-22 Tom Tromey <tom@tromey.com>
5156 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5159 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5161 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5164 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5166 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5167 so that GDB doesn't match any msymbols when searching in the
5169 (print_symbol_info): Print using typedef_print or type_print based
5170 on the type of the symbol. Add updated FIXME comment moved from...
5171 (_initialize_symtab): ... move and update FIXME comment to above.
5173 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5175 * NEWS: Mention adding -q option to "info types".
5176 * symtab.c (struct info_types_options): New struct.
5177 (info_types_options_defs): New variable.
5178 (make_info_types_options_def_group): New function.
5179 (info_types_command): Use gdb::option framework to parse options.
5180 (info_types_command_completer): New function.
5181 (_initialize_symtab): Extend the help text on "info types" and
5182 register command completer.
5184 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5186 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5187 (lookup_symbol_in_objfile): Change int to block_enum and add a
5188 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5190 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5192 * MAINTAINERS (Write After Approval): Add self.
5194 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5196 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5197 instruction to the dummy code region.
5199 2019-07-19 Tom Tromey <tromey@adacore.com>
5201 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5202 (ARGSUSED, PARAMS, __func__): Remove rules.
5204 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5206 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5207 * features/arm/arm-with-iwmmxt.c: Remove.
5208 * features/arm/arm-with-iwmmxt.xml: Remove.
5209 * features/arm/arm-with-m-fpa-layout.c: Remove.
5210 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5211 * features/arm/arm-with-m-vfp-d16.c: Remove.
5212 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5213 * features/arm/arm-with-m.c: Remove.
5214 * features/arm/arm-with-m.xml: Remove.
5215 * features/arm/arm-with-neon.c: Remove.
5216 * features/arm/arm-with-neon.xml: Remove.
5217 * features/arm/arm-with-vfpv2.c: Remove.
5218 * features/arm/arm-with-vfpv2.xml: Remove.
5219 * features/arm/arm-with-vfpv3.c: Remove.
5220 * features/arm/arm-with-vfpv3.xml: Remove.
5222 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5224 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5226 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5228 * arch/aarch32.c (aarch32_create_target_description): Create
5229 target descriptions using features.
5230 * arch/arm.c (arm_create_target_description)
5231 (arm_create_mprofile_target_description): Likewise.
5232 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5234 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5236 * Makefile.in: Add new files.
5237 * aarch32-tdep.c: New file.
5238 * aarch32-tdep.h: New file.
5239 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5240 Call aarch32_read_description.
5241 * arch/aarch32.c: New file.
5242 * arch/aarch32.h: New file.
5243 * arch/arm.c (arm_create_target_description)
5244 (arm_create_mprofile_target_description): New function.
5245 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5246 (arm_create_target_description)
5247 (arm_create_mprofile_target_description): New declaration.
5248 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5249 read_description functions.
5250 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5252 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5253 * arm-tdep.c (tdesc_arm_list): New variable.
5254 (arm_register_g_packet_guesses): Call create description functions.
5255 (arm_read_description) (arm_read_mprofile_description): New
5257 * arm-tdep.h (arm_read_description)
5258 (arm_read_mprofile_description): Add declaration.
5259 * configure.tgt: Add new files.
5261 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5263 * top.c (new_ui_command): Open specified terminal just once.
5265 2019-07-18 Tom Tromey <tromey@adacore.com>
5267 * symtab.c (main_name): Constify return type.
5268 * symfile.c (set_initial_language): Update.
5269 * symtab.h (main_name): Constify return type.
5271 2019-07-17 Tom Tromey <tom@tromey.com>
5273 * tui/tui-winsource.c (tui_update_source_window)
5274 (tui_update_source_window_as_is)
5275 (tui_update_source_windows_with_line): Remove return.
5276 * tui/tui-disasm.c (tui_show_disassem)
5277 (tui_show_disassem_and_update_source): Remove return.
5278 * tui/tui.c (tui_reset): Remove return.
5279 * tui/tui-wingeneral.c
5280 (tui_check_and_display_highlight_if_needed): Remove return.
5282 2019-07-17 Tom Tromey <tom@tromey.com>
5284 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5286 2019-07-17 Tom Tromey <tom@tromey.com>
5288 * tui/tui-winsource.h (struct tui_exec_info_window)
5289 (struct tui_source_window_base): Move from tui-data.h.
5290 * tui/tui-winsource.c: Move many method definitions from
5291 elsewhere. Remove "structuring" comments.
5292 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5293 (tui_source_window_base::refresh_window): Move to
5295 * tui/tui-win.c (tui_source_window_base::refresh_all)
5296 (tui_source_window_base::update_tab_width)
5297 (tui_source_window_base::set_new_height)
5298 (tui_source_window_base::do_make_visible_with_new_height): Move to
5300 * tui/tui-source.h: Update.
5301 * tui/tui-source.c (tui_source_window_base::reset): Move to
5303 * tui/tui-disasm.h: Update.
5304 * tui/tui-data.h (struct tui_exec_info_window): Move to
5306 (struct tui_source_window_base): Likewise.
5307 * tui/tui-data.c (tui_source_window_base::clear_detail)
5308 (tui_source_window_base, ~tui_source_window_base): Move to
5311 2019-07-17 Tom Tromey <tom@tromey.com>
5313 * tui/tui-win.c (tui_resize_all)
5314 (tui_source_window_base::update_tab_width)
5315 (tui_adjust_win_heights): Update.
5316 (tui_win_info::make_invisible_and_set_new_height): Rename from
5317 make_invisible_and_set_new_height.
5318 * tui/tui-data.h (struct tui_win_info)
5319 <make_invisible_and_set_new_height>: New method.
5321 2019-07-17 Tom Tromey <tom@tromey.com>
5323 * tui/tui.c: Update.
5324 * tui/tui-source.h (struct tui_source_window): Move from
5326 * tui/tui-layout.c: Update.
5327 * tui/tui-disasm.c: Update.
5328 * tui/tui-data.h (struct tui_source_window): Move to
5331 2019-07-17 Tom Tromey <tom@tromey.com>
5333 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5335 * tui/tui-data.h (struct tui_disasm_window): Move to
5338 2019-07-17 Tom Tromey <tom@tromey.com>
5340 * tui/tui-regs.h (struct tui_data_item_window): Move from
5342 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5343 * tui/tui-data.h (struct tui_data_item_window): Move to
5345 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5347 2019-07-17 Tom Tromey <tom@tromey.com>
5349 * tui/tui.c: Update.
5350 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5351 (tui_cmd_window::max_height): Move to tui-command.c.
5352 * tui/tui-layout.c: Update.
5353 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5354 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5356 * tui/tui-command.h (struct tui_cmd_window): Move from
5358 * tui/tui-command.c: Remove "structuring" comments.
5359 (tui_cmd_window::clear_detail)
5360 (tui_cmd_window::do_make_visible_with_new_height)
5361 (tui_cmd_window::max_height): Move from elsewhere.
5363 2019-07-17 Tom Tromey <tom@tromey.com>
5365 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5367 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5368 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5372 * tui/tui.c: Update.
5373 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5375 * tui/tui-windata.h: Remove file.
5376 * tui/tui-windata.c: Remove file.
5377 * tui/tui-win.c (tui_data_window::set_new_height)
5378 (tui_data_window::do_make_visible_with_new_height): Move to
5380 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5381 * tui/tui-regs.c: Remove "structuring" comments.
5382 (tui_data_window::first_data_item_displayed)
5383 (tui_data_window::delete_data_content_windows)
5384 (tui_data_window::erase_data_content)
5385 (tui_data_window::display_all_data)
5386 (tui_data_window::refresh_all)
5387 (tui_data_window::do_scroll_vertical)
5388 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5389 (tui_data_window::do_make_visible_with_new_height)
5390 (tui_data_window::refresh_window): Move from elsewhere.
5391 (_initialize_tui_regs): Move to end of file.
5392 * tui/tui-layout.c: Update.
5393 * tui/tui-hooks.c: Update.
5394 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5395 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5397 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5399 2019-07-17 Tom Tromey <tom@tromey.com>
5401 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5404 2019-07-17 Tom Tromey <tom@tromey.com>
5406 * tui/tui-win.c (tui_source_window_base::set_new_height)
5407 (tui_source_window_base::do_make_visible_with_new_height): Use
5408 m_has_locator field directly.
5409 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5411 (struct tui_source_window_base) <has_locator>: Likewise.
5413 2019-07-17 Tom Tromey <tom@tromey.com>
5415 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5417 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5419 * tui/tui-win.c (tui_source_window_base::set_new_height)
5420 (tui_source_window_base::set_new_height)
5421 (make_invisible_and_set_new_height)
5422 (tui_source_window_base::do_make_visible_with_new_height)
5423 (tui_source_window_base::do_make_visible_with_new_height):
5425 * tui/tui-layout.c (show_source_disasm_command, show_data)
5426 (show_source_or_disasm_and_command): Update.
5427 * tui/tui-layout.c (show_layout): Update.
5429 2019-07-17 Tom Tromey <tom@tromey.com>
5431 * tui/tui-layout.c (make_data_window): Remove.
5432 (show_data): Unify creation and re-initialization cases.
5434 2019-07-17 Tom Tromey <tom@tromey.com>
5436 * tui/tui-layout.c (make_source_window, make_disasm_window):
5438 (show_data): Unify creation and re-initialization cases.
5440 2019-07-17 Tom Tromey <tom@tromey.com>
5442 * tui/tui-layout.c (make_command_window): Remove.
5443 (show_source_disasm_command, show_source_or_disasm_and_command):
5444 Unify creation and re-initialization cases.
5446 2019-07-17 Tom Tromey <tom@tromey.com>
5448 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5449 creation and re-initialization cases.
5451 2019-07-17 Tom Tromey <tom@tromey.com>
5453 * tui/tui-regs.c (tui_get_register): Return void.
5455 2019-07-17 Tom Tromey <tom@tromey.com>
5457 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5460 2019-07-17 Tom Tromey <tom@tromey.com>
5462 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5465 2019-07-17 Tom Tromey <tom@tromey.com>
5467 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5468 * tui/tui-regs.c (tui_reg_layout): New function.
5469 (tui_show_registers, tui_reg_command): Use it.
5470 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5471 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5473 (tui_layout_command): Remove.
5475 2019-07-17 Tom Tromey <tom@tromey.com>
5477 * tui/tui-layout.h (tui/tui-layout): Return void.
5478 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5480 2019-07-17 Tom Tromey <tom@tromey.com>
5482 * tui/tui-layout.c (show_source_disasm_command, show_data):
5484 (reset_locator): Remove.
5485 (show_source_or_disasm_and_command): Update.
5487 2019-07-17 Tom Tromey <tom@tromey.com>
5489 * tui/tui-source.c (tui_source_window_base::reset): Remove
5491 * tui/tui-layout.c (make_command_window, make_source_window)
5492 (make_disasm_window, make_data_window)
5493 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5494 (reset_locator, show_source_or_disasm_and_command): Update.
5495 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5497 (struct tui_source_window_base) <reset>: Likewise.
5499 2019-07-17 Tom Tromey <tom@tromey.com>
5501 * tui/tui-layout.c (show_source_disasm_command): Use
5503 (reset_locator): New function.
5504 (init_and_make_win): Remove.
5505 (show_source_or_disasm_and_command): Use reset_locator.
5507 2019-07-17 Tom Tromey <tom@tromey.com>
5509 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5511 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5513 * tui/tui-source.c (tui_source_window_base::reset): New method.
5514 * tui/tui-layout.c (make_command_window): Don't call
5516 (make_source_window, make_disasm_window): Don't call
5517 make_source_or_disasm_window.
5518 (make_data_window): Don't call init_and_make_win. Change calling
5520 (show_source_disasm_command, show_data): Simplify.
5521 (make_source_or_disasm_window): Remove.
5522 (show_source_or_disasm_and_command): Simplify.
5523 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5524 (struct tui_source_window_base) <reset>: Likewise.
5525 <execution_info>: Remove initializer.
5526 * tui/tui-data.c (tui_source_window_base): Initialize
5529 2019-07-17 Tom Tromey <tom@tromey.com>
5531 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5534 2019-07-17 Tom Tromey <tom@tromey.com>
5536 * tui/tui.c (tui_rl_other_window): Update.
5537 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5538 superclass method first. Always iterate over regs_content.
5539 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5541 * tui/tui-win.c (tui_set_focus_command): Update.
5543 2019-07-17 Tom Tromey <tom@tromey.com>
5545 * tui/tui-win.c (tui_set_focus_command): Rename from
5546 tui_set_focus. Call tui_enable.
5547 (tui_set_focus_command): Remove.
5549 2019-07-17 Tom Tromey <tom@tromey.com>
5551 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5553 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5555 (tui_data_window::refresh_window): Call refresh_window on data
5556 items. Always call superclass refresh_window.
5557 (tui_win_info::refresh): Remove.
5558 (tui_source_window_base::refresh_window): Update.
5559 (tui_refresh_all): Update.
5560 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5562 (show_source_or_disasm_and_command): Likewise.
5563 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5564 (struct tui_source_window_base) <refresh>: Likewise.
5566 2019-07-17 Tom Tromey <tom@tromey.com>
5568 * tui/tui-winsource.c (tui_clear_source_content)
5569 (tui_show_source_content): Update.
5570 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5571 whether content is empty.
5572 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5575 2019-07-17 Tom Tromey <tom@tromey.com>
5577 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5579 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5580 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5582 2019-07-17 Tom Tromey <tom@tromey.com>
5584 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5585 (struct tui_data_item_window): Update.
5587 2019-07-17 Tom Tromey <tom@tromey.com>
5589 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5590 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5593 2019-07-17 Tom Tromey <tom@tromey.com>
5595 * tui/tui-winsource.h (tui_erase_source_content)
5596 (tui_clear_source_content): Remove "display_prompt" parameter.
5597 * tui/tui-winsource.c (tui_update_source_window_as_is)
5598 (tui_update_source_windows_with_addr): Update.
5599 (tui_clear_source_content): Remove "display_prompt" parameter.
5600 (tui_erase_source_content): Likewise. Simplify.
5601 (tui_show_source_content): Update.
5602 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5603 * tui/tui-stack.c (tui_show_frame_info): Update.
5604 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5607 2019-07-17 Tom Tromey <tom@tromey.com>
5609 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5610 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5612 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5615 2019-07-17 Tom Tromey <tom@tromey.com>
5617 * tui/tui-winsource.c (tui_clear_source_content)
5618 (tui_show_source_content, tui_show_exec_info_content)
5619 (tui_clear_exec_info_content): Update.
5620 * tui/tui-stack.c (tui_show_locator_content): Update.
5621 (tui_show_frame_info): Update.
5622 * tui/tui-source.h (tui_source_window): Don't declare.
5623 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5624 from tui_source_is_displayed.
5625 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5627 (struct tui_source_window_base) <content_in_use>: New field. Now
5629 (struct tui_source_window) <showing_source_p>: New method.
5630 (TUI_SRC_WIN): Change cast.
5631 * tui/tui-data.c (tui_initialize_static_data): Update.
5633 2019-07-17 Tom Tromey <tom@tromey.com>
5635 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5637 * tui/tui-source.c (tui_source_window::location_matches_p): New
5639 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5641 * tui/tui-data.h (struct tui_source_window_base)
5642 <location_matches_p>: New method.
5643 (struct tui_source_window, struct tui_disasm_window)
5644 <location_matches_p>: Likewise.
5646 2019-07-17 Tom Tromey <tom@tromey.com>
5648 * tui/tui-win.c (tui_set_win_height_command): Rename from
5650 (tui_set_win_height_command): Remove.
5652 2019-07-17 Tom Tromey <tom@tromey.com>
5654 * tui/tui-source.c (tui_source_window): New constructor. Add
5656 (~tui_source_window): New destructor.
5657 (tui_source_window::style_changed): New method.
5658 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5659 (tui_attach_detach_observers): Update.
5660 * tui/tui-data.h (struct tui_source_window): Make constructor not
5661 inline. Add destructor.
5662 (struct tui_source_window) <style_changed>: New method.
5663 <m_observable>: New member.
5665 2019-07-17 Tom Tromey <tom@tromey.com>
5667 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5668 * tui/tui-win.c (tui_resize_all): Fix typo.
5670 2019-07-17 Tom Tromey <tom@tromey.com>
5672 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5673 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5674 (tui_refresh_all): Remove "list" parameter. Use foreach.
5675 * tui/tui-win.c (window_name_completer): Use foreach.
5676 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5677 (update_tab_width): Likewise.
5678 * tui/tui-layout.c (show_layout): Update.
5679 * tui/tui-data.h (class tui_window_iterator): New.
5680 (struct all_tui_windows): New.
5681 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5683 2019-07-17 Tom Tromey <tom@tromey.com>
5685 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5686 parameter. Don't reference globals.
5687 (tui_reg_command): Update.
5689 2019-07-17 Tom Tromey <tom@tromey.com>
5691 * tui/tui-regs.c (tui_show_registers): Simplify.
5693 2019-07-17 Tom Tromey <tom@tromey.com>
5695 * tui/tui-regs.c (tui_show_registers): Update.
5696 (tui_show_register_group): Add win_info parameter.
5698 2019-07-17 Tom Tromey <tom@tromey.com>
5700 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5701 Rename from tui_display_reg_element_at_line.
5702 (tui_data_window::display_registers_from_line): Update.
5703 * tui/tui-data.h (struct tui_data_window)
5704 <display_reg_element_at_line>: New method.
5706 2019-07-17 Tom Tromey <tom@tromey.com>
5708 * tui/tui-regs.h (tui_display_registers_from)
5709 (tui_display_registers_from_line): Don't declare.
5710 * tui/tui-windata.c (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_data_window::display_registers_from): Rename
5714 from tui_display_registers_from.
5715 (tui_display_reg_element_at_line): Update.
5716 (tui_data_window::display_registers_from_line): Rename from
5717 tui_display_registers_from_line.
5718 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5719 display_registers_from_line>: New methods.
5721 2019-07-17 Tom Tromey <tom@tromey.com>
5723 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5724 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5725 from tui_erase_data_content.
5726 (tui_data_window::display_all_data)
5727 (tui_data_window::refresh_all)
5728 (tui_data_window::do_scroll_vertical): Update.
5729 * tui/tui-regs.c (tui_show_registers): Update.
5730 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5733 2019-07-17 Tom Tromey <tom@tromey.com>
5735 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5738 (tui_data_window::delete_data_content_windows): Rename from
5739 tui_delete_data_content_windows.
5740 (tui_data_window::display_all_data)
5741 (tui_data_window::do_scroll_vertical): Update.
5742 * tui/tui-data.h (struct tui_data_window)
5743 <delete_data_content_windows>: New method.
5745 2019-07-17 Tom Tromey <tom@tromey.com>
5747 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5748 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5750 2019-07-17 Tom Tromey <tom@tromey.com>
5752 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5753 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5754 from tui_display_all_data.
5756 (tui_data_window::do_make_visible_with_new_height): Update.
5757 * tui/tui-regs.c (tui_show_registers): Update.
5758 * tui/tui-layout.c (tui_set_layout): Update.
5759 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5762 2019-07-17 Tom Tromey <tom@tromey.com>
5764 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5765 * tui/tui-windata.c (tui_display_data_from): Remove.
5766 (tui_data_window::refresh_all): Update.
5768 2019-07-17 Tom Tromey <tom@tromey.com>
5770 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5771 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5772 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5773 tui_display_registers_from_line.
5774 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5775 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5776 "force_display" parameter.
5778 2019-07-17 Tom Tromey <tom@tromey.com>
5780 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5782 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5783 Rename from tui_first_reg_element_no_inline.
5784 (tui_display_reg_element_at_line)
5785 (tui_display_registers_from_line): Update.
5786 * tui/tui-data.h (struct tui_data_window)
5787 <first_reg_element_no_inline>: New method.
5789 2019-07-17 Tom Tromey <tom@tromey.com>
5791 * tui/tui-windata.c (tui_display_data_from)
5792 (tui_data_window::do_scroll_vertical): Update.
5793 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5794 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5795 Rename from tui_line_from_reg_element_no.
5796 (tui_display_registers_from_line): Update.
5797 * tui/tui-data.h (struct tui_data_window)
5798 <line_from_reg_element_no>: New method.
5800 2019-07-17 Tom Tromey <tom@tromey.com>
5802 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5803 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5804 tui_last_regs_line_no.
5805 (tui_display_reg_element_at_line)
5806 (tui_display_registers_from_line): Update.
5807 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5810 2019-07-17 Tom Tromey <tom@tromey.com>
5813 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5814 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5815 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5816 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5817 (tui_update_breakpoint_info): Likewise.
5818 * tui/tui-hooks.c (tui_event_create_breakpoint)
5819 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5822 2019-07-17 Tom Tromey <tom@tromey.com>
5824 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5826 2019-07-17 Tom Tromey <tom@tromey.com>
5828 * tui/tui-winsource.c (tui_update_source_window_as_is)
5829 (tui_update_source_windows_with_addr): Update.
5830 * tui/tui-source.h (tui_set_source_content)
5831 (tui_show_symtab_source): Add "win_info" parameter.
5832 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5834 (tui_show_symtab_source): Likewise.
5836 2019-07-17 Tom Tromey <tom@tromey.com>
5838 * tui/tui-wingeneral.c
5839 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5841 2019-07-17 Tom Tromey <tom@tromey.com>
5843 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5844 (struct tui_cmd_window) <can_scroll>: New method.
5845 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5848 2019-07-17 Tom Tromey <tromey@adacore.com>
5850 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5851 do_field_signed>: Rename. Change type of "value".
5852 * ui-out.c (ui_out::field_signed): Rename from field_int.
5853 Change type of "value".
5854 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5856 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5857 do_field_int. Change type of "value".
5858 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5859 do_field_int. Change type of "value".
5860 * tracepoint.c (trace_status_mi, tfind_1)
5861 (print_one_static_tracepoint_marker): Update.
5862 * thread.c (print_thread_info_1, print_selected_thread_frame):
5864 * stack.c (print_frame, print_frame_info): Update.
5865 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5867 * source.c (print_source_lines_base): Update.
5868 * skip.c (info_skip_command): Update.
5869 * record-btrace.c (btrace_ui_out_decode_error)
5870 (btrace_call_history_src_line): Update.
5871 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5873 * progspace.c (print_program_space): Update.
5874 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5875 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5876 do_field_int. Change type of "value".
5877 * mi/mi-out.c (mi_ui_out::do_table_begin)
5878 (mi_ui_out::do_table_header): Update.
5879 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5881 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5882 (mi_cmd_data_list_changed_registers, output_register)
5883 (mi_cmd_data_read_memory, mi_load_progress)
5884 (mi_cmd_trace_frame_collected): Update.
5885 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5887 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5888 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5889 (mi_cmd_var_list_children, varobj_update_one): Update.
5890 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5891 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5892 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5893 * inferior.c (print_inferior): Update.
5894 * gdb_bfd.c (print_one_bfd): Update.
5895 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5897 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5898 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5899 do_field_int. Change type of "value".
5900 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5901 do_field_int. Change type of "value".
5902 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5903 (print_one_breakpoint_location, print_it_catch_fork)
5904 (print_one_catch_fork, print_it_catch_vfork)
5905 (print_one_catch_vfork, print_it_catch_solib)
5906 (print_it_catch_exec, print_it_ranged_breakpoint)
5907 (print_mention_watchpoint, print_mention_masked_watchpoint)
5908 (bkpt_print_it, update_static_tracepoint): Update.
5909 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5910 * break-catch-syscall.c (print_it_catch_syscall): Update.
5911 * ada-tasks.c (print_ada_task_info): Update.
5912 * ada-lang.c (print_it_exception, print_mention_exception):
5915 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5917 PR breakpoints/24541
5918 * gdbarch.c: Regenerate.
5919 * gdbarch.h: Regenerate.
5920 * gdbarch.sh: Adjust return type and parameter types for
5921 'stap_adjust_register'.
5922 (i386_stap_adjust_register): Adjust signature and return new
5924 * stap-probe.c (stap_parse_register_operand): Adjust use of
5925 'gdbarch_stap_adjust_register'.
5927 2019-07-17 Tom Tromey <tromey@adacore.com>
5929 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5931 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5933 (struct s390_process_info): Add initializers.
5934 (s390_add_process): Use new.
5935 (s390_linux_nat_target::low_forget_process): Use delete.
5936 (s390_linux_nat_target::low_new_fork)
5937 (s390_linux_nat_target::stopped_by_watchpoint)
5938 (s390_linux_nat_target::low_prepare_to_resume)
5939 (s390_linux_nat_target::insert_watchpoint)
5940 (s390_linux_nat_target::insert_hw_breakpoint)
5941 (s390_linux_nat_target::remove_watchpoint)
5942 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5944 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5946 * aarch64-fbsd-nat.c: Include regcache.h.
5947 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5949 (aarch64_fbsd_nat_target::fetch_registers)
5950 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5952 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5954 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5956 * fbsd-nat.c: Include gdbarch.h.
5958 2019-07-15 Tom Tromey <tromey@adacore.com>
5960 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5962 2019-07-15 Tom Tromey <tromey@adacore.com>
5964 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5965 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5966 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5967 * cli-out.c (cli_ui_out::do_field_int): New method.
5968 * ui-out.c (ui_out::field_unsigned): New method.
5969 * symfile.c (generic_load): Use field_unsigned.
5970 (print_transfer_performance): Likewise.
5971 * record-btrace.c (ui_out_field_uint): Remove.
5972 (btrace_call_history_insn_range, btrace_call_history): Use
5974 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5976 * ui-out.h (class ui_out) <field_unsigned>: New method.
5977 <do_field_unsigned>: Likewise.
5979 2019-07-15 Tom Tromey <tromey@adacore.com>
5981 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5982 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5983 * target.c (flash_erase_command): Use field_string.
5984 * infrun.c (print_signal_received_reason): Use field_string.
5985 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5986 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5988 * ada-tasks.c (print_ada_task_info): Use field_string.
5990 2019-07-15 Tom Tromey <tromey@adacore.com>
5992 * target.c (flash_erase_command): Use field_core_addr.
5993 * symfile.c (generic_load): Use field_core_addr.
5994 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5995 Use field_core_addr.
5996 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5999 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6001 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6002 value if its desired type is smaller than a CORE_ADDR and signed.
6004 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6006 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6007 of changes to field names, and use new is_reference field to
6008 decide if a property is a reference or not.
6009 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6011 (struct dwarf2_property_baton): Update header comment, rename
6012 'referenced_type' to 'property_type' and update comments.
6013 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6014 default property type, store in property baton, update to take
6015 accound of renamed field.
6016 (read_func_scope): Update call to attr_to_dynamic_prop.
6017 (read_array_type): Likewise.
6018 (dwarf2_per_cu_addr_sized_int_type): New function.
6019 (read_subrange_index_type): Move type finding code to
6020 dwarf2_per_cu_addr_sized_int_type.
6021 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6022 (dwarf2_per_cu_addr_type): New function.
6023 (set_die_type): Update calls to attr_to_dynamic_prop.
6025 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6027 * dwarf2read.c (read_subrange_index_type): New function.
6028 (read_subrange_type): Move code into new function and call it.
6029 * gdbtypes.c (create_range_type): Add some asserts.
6031 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6033 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6034 update return statements.
6035 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6036 declaration, and update comment to match.
6037 * gdbtypes.c (resolve_dynamic_array): Update call to
6038 dwarf2_evaluate_property to match new return type.
6040 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6042 * valarith.c (value_subscripted_rvalue): Change lowerbound
6043 parameter type from int to LONGEST.
6044 * value.h (value_subscripted_rvalue): Likewise in declaration.
6046 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6048 * cli/cli-utils.c (info_print_command_completer): New function.
6049 * cli/cli-utils.h: Add 'completer.h' include, and forward
6050 declaration for 'struct cmd_list_element'.
6051 (info_print_command_completer): Declare.
6052 * stack.c (_initialize_stack): Add completer for 'info locals' and
6054 * symtab.c (_initialize_symtab): Add completer for 'info
6055 variables' and 'info functions'.
6056 * NEWS: Mention completion for additional info commands.
6058 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6060 * cli/cli-utils.c (extract_info_print_args): Delete.
6061 (extract_arg_maybe_quoted): Delete.
6062 (info_print_options_defs): New variable.
6063 (make_info_print_options_def_group): New function.
6064 (extract_info_print_options): Define new function.
6065 * cli/cli-utils.h (extract_info_print_args): Delete.
6066 (struct info_print_options): New structure.
6067 (extract_info_print_options): Declare new function.
6068 * stack.c (info_locals_command): Update to use new
6069 extract_info_print_options, also add a header comment.
6070 (info_args_command): Likewise.
6071 * symtab.c (info_variables_command): Likewise.
6072 (info_functions_command): Likewise.
6074 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6076 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6077 to extract string arguments.
6078 * common/common-utils.c (extract_string_maybe_quoted): New function.
6079 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6081 2019-07-11 Tom Tromey <tromey@adacore.com>
6083 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6084 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6085 * top.h (gdbinit): Don't declare.
6086 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6088 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6089 * top.c (gdb_init): Don't call init_cli_cmds.
6091 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6093 2019-07-11 Tom Tromey <tromey@adacore.com>
6095 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6096 after it has been moved.
6098 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6100 * valops.c (value_must_coerce_to_target): Change return type to
6102 * value.h (value_must_coerce_to_target): Likewise.
6104 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6106 * breakpoint.c (is_hardware_watchpoint): Remove
6107 forward-declaration.
6108 (is_masked_watchpoint): Change return type to bool.
6109 (is_tracepoint): Likewise.
6110 (is_breakpoint): Likewise.
6111 (is_hardware_watchpoint): Likewise.
6112 (is_watchpoint): Likewise.
6113 (is_no_memory_software_watchpoint): Likewise.
6114 (is_catchpoint): Likewise.
6115 (breakpoint_1): Make FILTER parameter's return type bool.
6116 is_masked_watchpoint): Change return type to bool.
6117 (save_breakpoints): Make FILTER parameter's return type bool.
6118 * breakpoint.h (is_breakpoint): Change return type to bool.
6119 (is_watchpoint): Likewise.
6120 (is_catchpoint): Likewise.
6121 (is_tracepoint): Likewise.
6123 2019-07-10 Tom Tromey <tom@tromey.com>
6125 * defs.h: Don't include gdbarch.h.
6126 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6127 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6128 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6129 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6130 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6131 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6132 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6133 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6134 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6135 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6136 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6137 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6138 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6139 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6140 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6141 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6142 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6143 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6144 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6145 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6146 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6147 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6148 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6149 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6150 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6151 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6152 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6154 2019-07-10 Tom Tromey <tromey@adacore.com>
6156 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6157 * breakpoint.c (init_ada_exception_breakpoint): Register as
6159 (print_one_breakpoint_location, print_one_breakpoint): Use
6160 is_ada_exception_catchpoint.
6161 * ada-lang.c (class ada_catchpoint_location): Pass
6162 bp_loc_software_breakpoint to bp_location constructor.
6163 (is_ada_exception_catchpoint): New function.
6165 2019-07-10 Tom Tromey <tromey@adacore.com>
6167 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6169 (struct arm_exidx_entry): New method operator<.
6170 (struct arm_exidx_data) <section_maps>: Change type.
6171 (arm_exidx_data_free): Remove.
6172 (arm_exidx_data_key): Change type. Move lower.
6173 (arm_exidx_new_objfile): Update.
6174 (arm_compare_exidx_entries): Remove.
6175 (arm_find_exidx_entry, _initialize_arm_tdep)
6177 2019-07-10 Tom Tromey <tromey@adacore.com>
6179 * solib-spu.c (ocl_program_data_key): Change type.
6180 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6183 2019-07-10 Tom Tromey <tromey@adacore.com>
6185 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6186 (struct solib_aix_inferior_data) <library_list>: Change type.
6187 (solib_aix_inferior_data_handle): Change type.
6188 (get_solib_aix_inferior_data): Update.
6189 (solib_aix_free_library_list): Remove.
6190 (library_list_start_library): Update.
6191 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6193 (solib_aix_get_library_list)
6194 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6195 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6197 2019-07-10 Tom Tromey <tromey@adacore.com>
6199 * solib-dsbt.c (struct dsbt_info): Add initializers.
6200 (solib_dsbt_pspace_data): Change type.
6201 (dsbt_pspace_data_cleanup): Remove.
6202 (get_dsbt_info, _initialize_dsbt_solib): Update.
6204 2019-07-10 Tom Tromey <tromey@adacore.com>
6206 * spu-tdep.c (spu_overlay_data): Change type.
6207 (spu_get_overlay_table, spu_overlay_new_objfile)
6208 (_initialize_spu_tdep): Update.
6210 2019-07-10 Tom Tromey <tromey@adacore.com>
6212 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6214 (dbx_objfile_data_key): Change type and declare later.
6215 (DBX_SYMFILE_INFO): Rewrite.
6216 * dbxread.c (dbx_objfile_data_key): Change type.
6217 (dbx_symfile_init): Update.
6218 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6219 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6220 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6222 2019-07-10 Tom Tromey <tromey@adacore.com>
6224 * jit.c (jit_program_space_key): Change type. Move lower.
6225 (get_jit_program_space_data): Update.
6226 (jit_program_space_data_cleanup): Remove.
6227 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6229 (struct jit_program_space_data): Add initializers.
6231 2019-07-10 Tom Tromey <tromey@adacore.com>
6233 * solib-darwin.c (struct darwin_info): Add initializers.
6234 (solib_darwin_pspace_data): Change type.
6235 (darwin_pspace_data_cleanup): Remove.
6236 (get_darwin_info, _initialize_darwin_solib): Update.
6238 2019-07-10 Tom Tromey <tromey@adacore.com>
6240 * remote-sim.c (struct sim_inferior_data): Add initializers,
6241 constructor, and destructor.
6242 (sim_inferior_data_key): Change type. Move lower.
6243 (check_for_duplicate_sim_descriptor): Update.
6244 (get_sim_inferior_data): Use new. Update.
6245 (~sim_inferior_data_cleanup): Rename from
6246 sim_inferior_data_cleanup. Simplify.
6247 (gdbsim_close_inferior, simulator_command)
6248 (sim_command_completer, _initialize_remote_sim): Update.
6249 (next_pid, INITIAL_PID): Move earlier.
6251 2019-07-10 Tom Tromey <tromey@adacore.com>
6253 * python/python-internal.h (create_thread_object): Return
6255 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6256 * python/py-inferior.c (struct threadlist_entry): Add
6258 <thread_obj>: Now a gdbpy_ref.
6259 (thread_to_thread_object): Update.
6260 (add_thread_object): Use new.
6261 (delete_thread_object): Use delete.
6262 (infpy_threads): Update.
6263 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6266 2019-07-10 Tom Tromey <tromey@adacore.com>
6268 * valops.c (value_cast): Specialize error message for Ada.
6270 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6272 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6274 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6276 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6277 bpstat_should_step): Return bool, adjust comments.
6278 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6279 bpstat_should_step): Likewise.
6281 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6283 * features/Makefile: Use feature target descriptions for Arm.
6284 * features/arm/arm-core.c: Generate new file.
6285 * features/arm/arm-fpa.c: Likewise.
6286 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6287 * features/arm/arm-m-profile.c: Likewise.
6288 * features/arm/arm-vfpv2.c: Likewise.
6289 * features/arm/arm-vfpv3.c: Likewise.
6290 * features/arm/xscale-iwmmxt.c: Likewise.
6291 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6293 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6295 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6298 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6300 * features/aarch64-pauth.c: Regenerate.
6302 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6304 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6306 (bpstat_what): Use false instead of 0.
6308 2019-07-09 Pedro Alves <palves@redhat.com>
6310 * break-catch-throw.c (is_exception_catchpoint): New.
6311 * breakpoint.c (print_one_breakpoint_location): New parameter
6312 'raw_loc'. Handle it. Use
6313 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6314 looking at the breakpoint's type.
6315 (print_one_breakpoint): If handling "maint info breakpoints", also
6316 print locations of exception catchpoints.
6317 * breakpoint.h (is_exception_catchpoint): Declare.
6319 2019-07-09 Pedro Alves <palves@redhat.com>
6321 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6323 (allocate_location_exception_catchpoint): New.
6324 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6325 (initialize_throw_catchpoint_ops): Install
6326 allocate_location_exception_catchpoint as allocate_location
6328 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6329 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6331 (breakpoint_address_is_meaningful): Delete.
6332 (bl_address_is_meaningful): New.
6333 (breakpoint_locations_match): Adjust comment.
6334 (bp_location_from_bp_type): New, factored out of...
6335 (bp_location::bp_location(breakpoint *)): ... this.
6336 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6338 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6339 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6340 breakpoint_address_is_meaningful.
6341 (bp_locations_compare): Adjust comment.
6342 (update_global_location_list): Use bl_address_is_meaningful
6343 instead of breakpoint_address_is_meaningful.
6344 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6346 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6347 * python/py-breakpoint.c (bppy_get_location): No longer check
6348 whether location is null.
6350 2019-07-09 Pedro Alves <palves@redhat.com>
6353 * breakpoint.c (print_one_breakpoint_location): Remove
6354 single-location assert.
6356 2019-07-09 Tom Tromey <tom@tromey.com>
6358 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6359 * configure: Rebuild.
6360 * configure.ac: Change common to gdbsupport.
6361 * gdbsupport: Rename from common.
6362 * acinclude.m4: Change common to gdbsupport.
6363 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6364 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6366 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6367 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6368 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6369 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6370 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6371 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6372 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6373 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6374 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6375 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6376 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6377 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6378 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6379 coff-pe-read.c, command.h, compile/compile-c-support.c,
6380 compile/compile-c.h, compile/compile-cplus-symbols.c,
6381 compile/compile-cplus-types.c, compile/compile-cplus.h,
6382 compile/compile-loc2c.c, compile/compile.c, completer.c,
6383 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6384 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6385 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6386 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6387 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6388 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6389 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6390 features/aarch64-core.c, features/aarch64-fpu.c,
6391 features/aarch64-pauth.c, features/aarch64-sve.c,
6392 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6393 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6394 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6395 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6396 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6397 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6398 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6399 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6400 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6401 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6402 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6403 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6404 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6405 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6406 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6407 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6408 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6409 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6410 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6411 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6412 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6413 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6414 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6415 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6416 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6417 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6418 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6419 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6420 minsyms.c, mips-linux-tdep.c, namespace.h,
6421 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6422 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6423 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6424 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6425 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6426 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6427 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6428 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6429 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6430 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6431 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6432 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6433 procfs.c, producer.c, progspace.h, psymtab.h,
6434 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6435 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6436 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6437 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6438 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6439 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6440 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6441 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6442 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6443 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6444 target-memory.c, target.c, target.h, target/waitstatus.c,
6445 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6446 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6447 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6448 unittests/array-view-selftests.c,
6449 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6450 unittests/common-utils-selftests.c,
6451 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6452 unittests/format_pieces-selftests.c,
6453 unittests/function-view-selftests.c,
6454 unittests/lookup_name_info-selftests.c,
6455 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6456 unittests/mkdir-recursive-selftests.c,
6457 unittests/observable-selftests.c,
6458 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6459 unittests/parse-connection-spec-selftests.c,
6460 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6461 unittests/scoped_fd-selftests.c,
6462 unittests/scoped_mmap-selftests.c,
6463 unittests/scoped_restore-selftests.c,
6464 unittests/string_view-selftests.c, unittests/style-selftests.c,
6465 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6466 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6467 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6468 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6469 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6470 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6472 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6474 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6476 (decode_digits_ordinary): Set explicit_line field in sal.
6477 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6478 symtab_and_line that was set on an explicit line number in
6479 assembler code. Do always update the recorded symtab and line if
6480 we do skip the prologue.
6482 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6484 * breakpoint.c (set_breakpoint_location_function): Remove
6485 explicit_loc parameter.
6486 (momentary_breakpoint_from_master): Update call to
6487 set_breakpoint_location_function.
6488 (add_location_to_breakpoint): Likewise.
6490 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6492 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6493 required features based on default bfd type when no specific bfd
6496 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6498 * NEWS: Mention that GDB printf and eval commands can now print
6499 C-style and Ada-style convenience var strings without
6500 calling the inferior.
6501 * printcmd.c (printf_c_string): Locally print GDB internal var
6502 instead of transiting via the inferior.
6503 (printf_wide_c_string): Likewise.
6505 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6507 PR breakpoints/25011
6508 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6510 2019-07-04 Tom Tromey <tom@tromey.com>
6513 * tui/tui-winsource.c (tui_clear_source_content): Update.
6514 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6515 (tui_update_breakpoint_info): Update.
6516 (tui_set_exec_info_content): Update.
6517 * tui/tui-source.c (tui_set_source_content_nil): Update.
6518 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6520 * tui/tui-data.h (enum tui_bp_flag): New.
6521 (tui_bp_flags): New enum flags type.
6522 (struct tui_source_element) <break_mode>: Change type. Rename
6524 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6525 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6527 * tui/tui-winsource.h: Fix comment.
6529 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6531 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6532 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6533 (store_fpregs_to_thread)
6534 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6535 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6536 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6537 (IWMMXT_REGS_SIZE): Add define.
6538 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6539 (fetch_vfp_regs, store_vfp_regs)
6540 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6541 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6543 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6545 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6547 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6548 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6549 (ARM_INT_REGISTER_SIZE): ...to this.
6550 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6551 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6552 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6553 (arm_linux_collect_gregset, supply_nwfpe_register)
6554 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6556 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6557 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6558 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6559 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6560 (arm_return_in_memory, arm_store_return_value)
6561 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6562 (arm_record_ld_st_multiple): Likewise.
6563 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6564 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6566 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6568 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6569 AARCH64_DISPLACED_MODIFIED_INSNS.
6570 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6571 (aarch64_displaced_step_copy_insn): Likewise.
6572 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6573 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6574 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6575 ARM_DISPLACED_MODIFIED_INSNS.
6576 * arm-tdep.c (arm_gdbarch_init): Likewise.
6577 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6578 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6579 (struct arm_displaced_step_closure): Use
6580 ARM_DISPLACED_MODIFIED_INSNS.
6582 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6584 * features/Makefile: Remove unused xml files.
6585 * features/aarch64.xml: Remove.
6586 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6587 * features/i386/amd64-avx-avx512.xml: Remove.
6588 * features/i386/amd64-avx-linux.xml: Remove.
6589 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6590 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6591 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6592 * features/i386/amd64-avx-mpx.xml: Remove.
6593 * features/i386/amd64-avx.xml: Remove.
6594 * features/i386/amd64-linux.xml: Remove.
6595 * features/i386/amd64-mpx-linux.xml: Remove.
6596 * features/i386/amd64-mpx.xml: Remove.
6597 * features/i386/amd64.xml: Remove.
6598 * features/i386/i386-avx-avx512-linux.xml: Remove.
6599 * features/i386/i386-avx-avx512.xml: Remove.
6600 * features/i386/i386-avx-linux.xml: Remove.
6601 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6602 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6603 * features/i386/i386-avx-mpx-linux.xml: Remove.
6604 * features/i386/i386-avx-mpx.xml: Remove.
6605 * features/i386/i386-avx.xml: Remove.
6606 * features/i386/i386-linux.xml: Remove.
6607 * features/i386/i386-mmx-linux.xml: Remove.
6608 * features/i386/i386-mmx.xml: Remove.
6609 * features/i386/i386-mpx-linux.xml: Remove.
6610 * features/i386/i386-mpx.xml: Remove.
6611 * features/i386/i386.xml: Remove.
6612 * features/i386/x32-avx-avx512-linux.xml: Remove.
6613 * features/i386/x32-avx-linux.xml: Remove.
6614 * features/i386/x32-linux.xml: Remove.
6616 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6618 * regformats/aarch64.dat: Remove.
6619 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6620 * regformats/i386/amd64-avx-linux.dat: Remove.
6621 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6622 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6623 * regformats/i386/amd64-linux.dat: Remove.
6624 * regformats/i386/amd64-mpx-linux.dat: Remove.
6625 * regformats/i386/amd64.dat: Remove.
6626 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6627 * regformats/i386/i386-avx-linux.dat: Remove.
6628 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6629 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6630 * regformats/i386/i386-linux.dat: Remove.
6631 * regformats/i386/i386-mmx-linux.dat: Remove.
6632 * regformats/i386/i386-mpx-linux.dat: Remove.
6633 * regformats/i386/i386.dat: Remove.
6634 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6635 * regformats/i386/x32-avx-linux.dat: Remove.
6636 * regformats/i386/x32-linux.dat: Remove.
6638 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6640 * aarch64-tdep.c: Remove xml self tests.
6641 * amd64-linux-tdep.c: Likewise.
6642 * amd64-tdep.c: Likewise.
6643 * i386-linux-tdep.c: Likewise.
6644 * i386-tdep.c: Likewise.
6646 2019-07-03 Pedro Alves <palves@redhat.com>
6649 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6650 (pipe_cmd_option_defs): New.
6651 (make_pipe_cmd_options_def_group): New.
6652 (pipe_command): Use gdb::option::process_options.
6653 (pipe_command_completer): New function.
6654 (_initialize_cli_cmds): Install completer for "pipe" command.
6656 2019-07-03 Pedro Alves <palves@redhat.com>
6658 * cli/cli-option.c (union option_value) <string>: New field.
6659 (struct option_def_and_value): Add ctor, move ctor, dtor and
6660 use DISABLE_COPY_AND_ASSIGN.
6661 (option_def_and_value::clear_value): New.
6662 (parse_option, save_option_value_in_ctx, get_val_type_str)
6663 (add_setshow_cmds_for_options): Handle var_string.
6664 * cli-option.h (union option_def::var_address) <string>: New
6666 (struct string_option_def): New.
6667 * maint-test-options.c (struct test_options_opts): Add default
6668 ctor and use DISABLE_COPY_AND_ASSIGN.
6669 <string_opt>: New field.
6670 (test_options_opts::~test_options_opts): New.
6671 (test_options_opts::dump): Also dump "-string".
6672 (test_options_option_defs): Install "string.
6674 2019-07-03 Pedro Alves <palves@redhat.com>
6676 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6677 option_value with a null enumeration.
6678 (complete_options): Save the option values in the context.
6679 (save_option_value_in_ctx): New, factored out from ...
6680 (process_options): ... here.
6681 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6683 * maint-test-options.c (test_options_opts::dump): New, factored
6685 (maintenance_test_options_command_mode): ... here.
6686 (maintenance_test_options_command_completion_result): Delete.
6687 (maintenance_test_options_command_completion_text): Update
6689 (maintenance_show_test_options_completion_result): Change
6690 prototype. Just print
6691 maintenance_test_options_command_completion_text.
6692 (save_completion_result): New.
6693 (maintenance_test_options_completer_mode): Pass options context to
6694 complete_options, and then save a dump.
6695 (_initialize_maint_test_options): Use add_cmd to install "maint
6696 show test-options-completion-result".
6698 2019-07-03 Pedro Alves <palves@redhat.com>
6700 * NEWS (New commands): Mention "with" and "maint with".
6701 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6702 (with_command, with_command_completer): New.
6703 (pipe_command): Adjust to new repeat_previous
6705 (_initialize_cli_cmds): Install the "with" command and its "w"
6707 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6709 * cli/cli-setshow.c (parse_cli_var_uinteger)
6710 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6711 argument strings for all var_types.
6712 (get_setshow_command_value_string): New, factored out from ...
6713 (do_show_command): ... this.
6714 * cli/cli-setshow.h: Include <string>.
6715 (get_setshow_command_value_string): Declare.
6716 * command.h (repeat_previous): Now returns const char *. Adjust
6718 * maint.c: Include "cli/cli-cmds.h".
6719 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6720 (_initialize_maint_cmds): Register the "maintenance with" command.
6721 * top.c (repeat_previous): Move bits from pipe_command here:
6722 Return the saved command line, if any; error out if there's no
6723 command to relaunch.
6725 2019-07-03 Pedro Alves <palves@redhat.com>
6727 * NEWS (New commands): Mention "maint set/show test-settings"
6728 instead of "maint test-settings".
6729 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6730 (maintenance_test_settings_set_list): Rename to ...
6731 (maintenance_set_test_settings_list): ... this.
6732 (maintenance_test_settings_show_list): Rename to ...
6733 (maintenance_show_test_settings_list): ... this.
6734 (maintenance_test_settings_cmd): Delete.
6735 (maintenance_test_settings_set_cmd): ...
6736 (maintenance_set_test_settings_cmd): ... this.
6737 (maintenance_test_settings_show_cmd): ...
6738 (maintenance_show_test_settings_cmd): ... this.
6739 (maintenance_test_settings_show_value_cmd):
6740 (maintenance_show_test_settings_value_cmd): ... this.
6741 (_initialize_maint_test_settings): No longer install the "maint
6742 test-settings" prefix command. Rename "maint test-settings set"
6743 to "maint set test-settings", and "maint test-settings show" to
6744 "maint show test-settings". Adjust all subcommands.
6746 2019-07-03 Pedro Alves <palves@redhat.com>
6748 * maint-test-settings.c: Fix file's intro comment. Replace all
6749 references to "test-options" with references to "test-settings",
6752 2019-07-03 Pedro Alves <palves@redhat.com>
6754 * maint-test-settings.c (maintenance_test_settings_xxx)
6755 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6757 (maintenance_test_settings_enums): Use them.
6758 (maintenance_test_settings_enum): Default to
6759 maintenance_test_settings_xxx.
6760 (_initialize_maint_test_settings): Initialize
6761 MAINTENANCE_TEST_SETTINGS_FILENAME.
6763 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6765 * breakpoint.h (remove_breakpoints_inf): Change return type to
6766 void, move function documentation here.
6767 * breakpoint.c (remove_breakpoints_inf): Change return type to
6768 void, move function documentation to header.
6770 2019-07-02 Pedro Alves <palves@redhat.com>
6772 * NEWS (Completion improvements): Mention "info threads".
6773 * thread.c (struct info_threads_opts, info_threads_option_defs)
6774 (make_info_threads_options_def_group): New.
6775 (info_threads_command): Use gdb::option::process_options.
6776 (info_threads_command_completer): New.
6777 (_initialize_thread): Use gdb::option::build_help to build the
6778 help text for "info threads".
6780 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6782 * defs.h (generic_load): Move from here...
6783 * symfile.h (generic_load): ... to here. Rename name parameter
6785 * symfile.c (generic_load): Add comment.
6787 2019-07-01 Tom Tromey <tromey@adacore.com>
6790 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6791 declaration of without_params. Fix formatting.
6793 2019-07-01 Tom Tromey <tromey@adacore.com>
6795 * ada-exp.y (find_primitive_type): Update.
6796 * ada-lang.h (ada_lookup_symbol): Update.
6797 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6799 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6801 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6803 PR breakpoints/24541
6804 * gdbarch.c: Regenerate.
6805 * gdbarch.h: Regenerate.
6806 * gdbarch.sh: Add 'stap_adjust_register'.
6807 * i386-tdep.c: Include '<unordered_set>'.
6808 (i386_stap_adjust_register): New function.
6809 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6810 * stap-probe.c (stap_parse_register_operand): Call
6811 'gdbarch_stap_adjust_register'.
6813 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6816 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6817 * python/python.c (do_start_initialization): Use 'xmalloc'
6818 instead of 'PyMem_Malloc'.
6820 2019-06-28 Tom Tromey <tromey@adacore.com>
6822 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6825 2019-06-27 Tom Tromey <tromey@adacore.com>
6827 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6829 (arm_find_mapping_symbol, arm_record_special_symbol)
6830 (_initialize_arm_tdep): Update.
6831 (arm_objfile_data_free): Remove.
6833 2019-06-27 Tom Tromey <tromey@adacore.com>
6835 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6836 to cp_print_static_field.
6838 2019-06-26 Tom Tromey <tromey@adacore.com>
6840 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6841 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6844 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6846 * features/aarch64-core.c (create_feature_aarch64_core):
6848 * features/aarch64-core.xml: Add cpsr flags.
6850 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6852 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6853 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6855 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6857 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6859 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6861 (arm_record_special_symbol): Don't insert new symbol in sorted
6862 position, push it at the end.
6864 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6866 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6867 (arm_mapping_symbol_s): Remove.
6868 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6869 (arm_mapping_symbol_vec): New typedef.
6870 (struct arm_per_objfile): Add constructor.
6871 <section_maps>: Change type to
6872 std::unique_ptr<arm_mapping_symbol_vec[]>.
6873 (arm_compare_mapping_symbols): Remove.
6874 (arm_find_mapping_symbol): Adjust to section_maps type change.
6875 (arm_objfile_data_free): Call delete on arm_per_objfile.
6876 (arm_record_special_symbol): Adjust to section_maps type change.
6877 Allocate arm_per_objfile with new.
6879 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6881 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6882 with the command prefix.
6884 2019-06-25 Tom Tromey <tom@tromey.com>
6886 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6887 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6889 2019-06-25 Tom Tromey <tom@tromey.com>
6891 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6893 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6896 2019-06-25 Tom Tromey <tom@tromey.com>
6898 * tui/tui-winsource.c
6899 (tui_source_window_base::set_is_exec_point_at): Add check against
6902 2019-06-25 Tom Tromey <tom@tromey.com>
6904 * tui/tui-source.c (tui_set_source_content): Don't check before
6906 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6908 2019-06-25 Tom Tromey <tom@tromey.com>
6910 * tui/tui-winsource.h (tui_update_source_window_as_is)
6911 (tui_alloc_source_buffer, tui_line_is_displayed)
6912 (tui_addr_is_displayed): Change type of win_info.
6913 * tui/tui-winsource.c (tui_update_source_window_as_is)
6914 (tui_clear_source_content, tui_show_source_line)
6915 (tui_show_source_content, tui_source_window_base::refill)
6916 (tui_source_window_base::set_is_exec_point_at)
6917 (tui_source_window_base::set_is_exec_point_at)
6918 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6919 (tui_alloc_source_buffer, tui_line_is_displayed)
6920 (tui_addr_is_displayed): Change type of win_info. Update.
6921 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6922 (tui_source_window_base::do_make_visible_with_new_height):
6924 * tui/tui-source.c (tui_set_source_content)
6925 (tui_set_source_content_nil)
6926 (tui_source_window::do_scroll_vertical): Update.
6927 * tui/tui-layout.c (show_layout): Update.
6928 * tui/tui-disasm.c (tui_set_disassem_content)
6929 (tui_disasm_window::do_scroll_vertical): Update.
6930 * tui/tui-data.h (tui_win_content): Remove.
6931 (struct tui_gen_win_info) <content, content_size>: Remove.
6932 (struct tui_source_element): Add initializers and destructor.
6933 (union tui_which_element, struct tui_win_element): Remove.
6934 (struct tui_source_window_base) <content>: New field.
6935 (struct tui_data_window): Remove destructor.
6936 (tui_alloc_content, tui_free_win_content)
6937 (tui_free_all_source_wins_content): Don't declare.
6938 * tui/tui-data.c (tui_initialize_static_data): Update.
6939 (init_content_element, tui_alloc_content): Remove.
6940 (~tui_gen_win_info): Update.
6941 (~tui_data_window, tui_free_all_source_wins_content)
6942 (tui_free_win_content, free_content, free_content_elements):
6945 2019-06-25 Tom Tromey <tom@tromey.com>
6947 * tui/tui-winsource.h (tui_clear_source_content)
6948 (tui_erase_source_content, tui_show_source_content): Change type
6950 * tui/tui-winsource.c (tui_clear_source_content)
6951 (tui_erase_source_content, tui_show_source_content): Change type
6953 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6954 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6956 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6958 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6960 2019-06-25 Tom Tromey <tom@tromey.com>
6962 * tui/tui-winsource.c (tui_clear_source_content)
6963 (tui_source_window_base::set_is_exec_point_at): Update.
6964 * tui/tui-source.c (tui_set_source_content_nil): Update.
6965 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6967 * tui/tui-data.c (init_content_element): Update.
6969 2019-06-25 Tom Tromey <tom@tromey.com>
6971 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6972 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6973 * tui/tui-layout.c (init_and_make_win): Update.
6974 * tui/tui.h (enum tui_win_type): Update.
6975 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6976 tui_win_is_auxillary.
6977 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6978 tui_win_is_auxillary.
6980 2019-06-25 Tom Tromey <tom@tromey.com>
6982 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6983 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6984 (tui_delete_data_content_windows, tui_display_all_data)
6985 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6987 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6988 * tui/tui-regs.c (tui_last_regs_line_no)
6989 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6990 (tui_show_registers): Update.
6991 (tui_show_register_group): Return void. Update.
6992 (tui_display_registers_from, tui_display_reg_element_at_line)
6993 (tui_display_registers_from_line, tui_check_register_values):
6995 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6997 (struct tui_data_window) <regs_content>: Now a std::vector.
6998 <regs_content_count>: Remove.
6999 (tui_add_content_elements, tui_free_data_content): Don't declare.
7000 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7001 (init_content_element): Remove DATA_WIN case. Add assert.
7002 (tui_add_content_elements): Remove.
7003 (tui_data_window): Update.
7004 (tui_free_data_content): Remove.
7005 (free_content_elements): Remove DATA_WIN case.
7007 2019-06-25 Tom Tromey <tom@tromey.com>
7009 * tui/tui-data.c (tui_data_item_window): Update.
7010 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7011 * tui/tui-windata.c (tui_display_all_data)
7012 (tui_display_data_from_line): Update.
7013 (tui_check_data_values): Remove.
7014 * tui/tui-regs.c (tui_show_register_group)
7015 (tui_display_reg_element_at_line): Update.
7016 * tui/tui-hooks.c (tui_register_changed)
7017 (tui_refresh_frame_and_register_information): Call
7018 tui_check_register_values.
7019 * tui/tui-data.h (struct tui_data_window) <data_content,
7020 data_content_count, data_type>: Remove.
7021 (enum tui_data_type): Remove.
7023 * tui/tui-data.c (tui_data_window::clear_detail)
7024 (~tui_data_window): Update.
7026 2019-06-25 Tom Tromey <tom@tromey.com>
7028 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7030 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7031 Rename from tui_first_data_item_displayed. Update.
7032 (tui_data_window::refresh_all)
7033 (tui_data_window::do_scroll_vertical): Update.
7034 * tui/tui-data.h (struct tui_data_window)
7035 <first_data_item_displayed>: Declare new method.
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7039 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7040 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7042 (tui_initialize_static_data): ...here.
7044 2019-06-25 Tom Tromey <tom@tromey.com>
7046 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7047 (tui_display_registers_from, tui_check_register_values): Update.
7048 (tui_display_register): Remove win_info parameter; update.
7049 (tui_get_register): Change type of parameters.
7050 * tui/tui-data.h (struct tui_data_element): Remove.
7051 (union tui_which_element) <data>: Remove.
7052 <data_window>: Change type.
7053 (struct tui_data_item_window): New.
7054 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7056 (~tui_data_item_window): New destructor.
7057 (free_content_elements): Remove DATA_ITEM_WIN case.
7059 2019-06-25 Tom Tromey <tom@tromey.com>
7061 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7064 2019-06-25 Tom Tromey <tom@tromey.com>
7066 * tui/tui-data.h (struct tui_command_element): Remove.
7067 (union tui_which_element) <command>: Remove.
7068 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7070 (free_content_elements): Remove CMD_WIN case.
7072 2019-06-25 Tom Tromey <tom@tromey.com>
7074 * tui/tui-layout.c (tui_set_layout): Update.
7075 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7076 * tui/tui-data.c (layout_def): Update.
7078 2019-06-25 Tom Tromey <tom@tromey.com>
7080 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7081 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7082 (tui_source_window_base::set_new_height): Update.
7083 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7085 (tui_set_locator_fullname, tui_set_locator_info)
7086 (tui_show_frame_info): Update.
7087 * tui/tui-source.c (tui_set_source_content)
7088 (tui_source_is_displayed): Update.
7089 * tui/tui-layout.c (show_source_disasm_command, show_data)
7090 (show_source_or_disasm_and_command): Update.
7091 * tui/tui-disasm.c (tui_set_disassem_content)
7092 (tui_get_begin_asm_address): Update.
7093 * tui/tui-data.h (struct tui_locator_element): Remove.
7094 (union tui_which_element) <locator>: Remove.
7095 (struct tui_locator_window): New.
7096 (tui_locator_win_info_ptr): Change return type.
7097 * tui/tui-data.c (_locator): Change type.
7098 (tui_locator_win_info_ptr): Change return type.
7099 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7100 (tui_alloc_content): Add assert.
7102 2019-06-25 Tom Tromey <tom@tromey.com>
7104 * tui/tui-winsource.c
7105 (tui_exec_info_window::maybe_allocate_content): New method.
7106 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7107 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7108 (make_source_or_disasm_window): Add cast.
7109 * tui/tui-data.h (union tui_which_element) <simple_string>:
7111 (struct tui_source_info): New.
7112 (struct tui_source_window_base) <execution_info>: Change type.
7113 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7114 case, and add assert.
7115 (tui_alloc_content): Add assert.
7117 2019-06-25 Tom Tromey <tom@tromey.com>
7119 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7120 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7121 * tui/tui-data.c (tui_alloc_win_info): Remove.
7123 2019-06-25 Tom Tromey <tom@tromey.com>
7125 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7126 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7129 2019-06-25 Tom Tromey <tom@tromey.com>
7131 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7132 make_visible_with_new_height method.
7133 (tui_win_info::make_visible_with_new_height): New method.
7134 (tui_source_window_base::do_make_visible_with_new_height)
7135 (tui_data_window::do_make_visible_with_new_height)
7136 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7137 (make_visible_with_new_height): Remove.
7138 (tui_resize_all, tui_adjust_win_heights): Use
7139 make_visible_with_new_height method.
7140 * tui/tui-data.h (struct tui_win_info)
7141 <do_make_visible_with_new_height, make_visible_with_new_height>:
7143 (struct tui_source_window_base, struct tui_data_window)
7144 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7147 2019-06-25 Tom Tromey <tom@tromey.com>
7149 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7151 (update_tab_width): Call update_tab_width method.
7152 * tui/tui-data.h (struct tui_win_info)
7153 (struct tui_source_window_base) <update_tab_width>: New methods.
7155 2019-06-25 Tom Tromey <tom@tromey.com>
7157 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7159 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7161 (tui_gen_win_info::make_visible): Update.
7162 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7164 * tui/tui-data.h (enum tui_box): New enum.
7165 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7167 2019-06-25 Tom Tromey <tom@tromey.com>
7169 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7170 init_and_make_win for EXEC_INFO_WIN.
7171 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7173 (struct tui_win_info) <~tui_win_info>: Inline.
7174 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7176 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7177 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7179 (tui_initialize_static_data): Update.
7180 (~tui_gen_win_info): Handle more cleanup here.
7181 (~tui_source_window_base): Delete "execution_info".
7182 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7184 2019-06-25 Tom Tromey <tom@tromey.com>
7186 * tui/tui-layout.c (make_command_window): Don't set
7188 (show_source_disasm_command): Call the reset method.
7189 (show_data): Don't set can_highlight. Call the reset method.
7190 (tui_gen_win_info::reset): Rename from init_gen_win_info
7191 (init_and_make_win): Simplify. Return tui_gen_win_info.
7192 (show_source_or_disasm_and_command): Call the reset method.
7193 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7194 (struct tui_cmd_window): Set can_highlight.
7196 2019-06-25 Tom Tromey <tom@tromey.com>
7198 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7200 (tui_make_visible, tui_make_invisible): Rewrite.
7201 (tui_win_info::make_visible): Remove.
7202 (tui_source_window_base::make_visible): Update.
7203 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7204 method. Moved from...
7205 (struct tui_win_info) <make_visible>: ...here.
7207 2019-06-25 Tom Tromey <tom@tromey.com>
7209 * tui/tui-winsource.c
7210 (tui_source_window_base::do_scroll_horizontal): Remove direction
7212 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7213 direction parameter.
7214 * tui/tui-win.c (tui_win_info::forward_scroll)
7215 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7216 (tui_win_info::right_scroll): Update.
7217 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7218 direction parameter.
7219 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7220 direction parameter.
7221 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7222 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7223 Remove direction parameter.
7224 (struct tui_source_window_base, struct tui_source_window)
7225 (struct tui_disasm_window, struct tui_data_window)
7226 (struct tui_cmd_window): Update.
7228 2019-06-25 Tom Tromey <tom@tromey.com>
7230 * tui/tui-winsource.h (tui_set_exec_info_content)
7231 (tui_show_exec_info_content, tui_erase_exec_info_content)
7232 (tui_clear_exec_info_content, tui_update_exec_info): Change
7233 argument to tui_source_window_base.
7234 * tui/tui-winsource.c (tui_set_exec_info_content)
7235 (tui_show_exec_info_content, tui_erase_exec_info_content)
7236 (tui_clear_exec_info_content, tui_update_exec_info): Change
7237 argument to tui_source_window_base.
7239 2019-06-25 Tom Tromey <tom@tromey.com>
7241 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7242 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7244 2019-06-25 Tom Tromey <tom@tromey.com>
7246 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7249 2019-06-25 Tom Tromey <tom@tromey.com>
7251 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7253 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7255 * tui/tui-source.c (tui_set_source_content): Update.
7256 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7258 2019-06-25 Tom Tromey <tom@tromey.com>
7260 * tui/tui-win.c (window_name_completer, tui_set_focus)
7261 (tui_all_windows_info): Use name method.
7262 * tui/tui-data.h (struct tui_gen_win_info)
7263 (struct tui_source_window, struct tui_disasm_window)
7264 (struct tui_data_window, struct tui_cmd_window) <name>: New
7266 (tui_win_name): Don't declare.
7267 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7268 (tui_win_name): Remove.
7270 2019-06-25 Tom Tromey <tom@tromey.com>
7272 * tui/tui-winsource.h (tui_update_source_window)
7273 (tui_update_source_window_as_is): Change parameter type.
7274 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7275 to be a tui_source_window_base.
7276 (tui_update_source_window_as_is): Likewise.
7277 * tui/tui-win.c (make_visible_with_new_height): Update.
7279 2019-06-25 Tom Tromey <tom@tromey.com>
7281 * tui/tui-winsource.c (tui_erase_source_content)
7282 (tui_show_source_content, tui_show_exec_info_content)
7283 (tui_erase_exec_info_content): Use refresh_window method.
7284 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7285 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7286 from tui_refresh_win.
7287 (tui_data_window::refresh_window): New method.
7288 (tui_win_info::refresh, tui_source_window_base::refresh)
7289 (tui_refresh_all): Use refresh_window method.
7290 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7292 * tui/tui-regs.c (tui_display_register): Call refresh_window
7294 * tui/tui-layout.c (show_source_disasm_command)
7295 (show_source_or_disasm_and_command): Call refresh_window method.
7296 * tui/tui-data.h (struct tui_gen_win_info)
7297 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7300 2019-06-25 Tom Tromey <tom@tromey.com>
7302 * tui/tui.c (tui_rl_other_window, tui_enable)
7303 (tui_is_window_visible, tui_get_command_dimension): Update.
7304 * tui/tui-winsource.c (tui_update_source_window_as_is)
7305 (tui_clear_source_content, tui_erase_source_content)
7306 (tui_show_source_line, tui_source_window_base::refill)
7307 (tui_source_window_base::do_scroll_horizontal)
7308 (tui_source_window_base::set_is_exec_point_at)
7309 (tui_update_breakpoint_info, tui_set_exec_info_content)
7310 (tui_alloc_source_buffer, tui_line_is_displayed)
7311 (tui_addr_is_displayed): Update.
7312 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7313 (tui_check_and_display_highlight_if_needed)
7314 (tui_win_info::make_visible, tui_win_info::refresh)
7315 (tui_refresh_all): Update.
7316 * tui/tui-windata.c (tui_first_data_item_displayed)
7317 (tui_delete_data_content_windows, tui_erase_data_content)
7318 (tui_display_all_data, tui_data_window::refresh_all)
7319 (tui_check_data_values): Update.
7320 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7321 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7322 (tui_win_info::backward_scroll, tui_refresh_all_win)
7323 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7324 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7325 (tui_source_window_base::set_new_height)
7326 (tui_data_window::set_new_height)
7327 (make_invisible_and_set_new_height)
7328 (make_visible_with_new_height, new_height_ok)
7329 (parse_scrolling_args): Update.
7330 * tui/tui-stack.c (tui_show_frame_info): Update.
7331 * tui/tui-source.c (tui_set_source_content)
7332 (tui_set_source_content_nil, tui_source_is_displayed)
7333 (tui_source_window::do_scroll_vertical): Update.
7334 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7335 (tui_display_registers_from, tui_display_reg_element_at_line)
7336 (tui_check_register_values, tui_reg_command): Update.
7337 * tui/tui-layout.c (tui_default_win_height)
7338 (show_source_disasm_command, show_data, init_and_make_win)
7339 (show_source_or_disasm_and_command): Update.
7340 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7341 (tui_redisplay_readline, tui_mld_flush)
7342 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7344 * tui/tui-disasm.c (tui_set_disassem_content)
7345 (tui_disasm_window::do_scroll_vertical): Update.
7346 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7348 (struct tui_win_info): Derive from tui_gen_win_info.
7349 <~tui_win_info>: Mark as override.
7350 <generic>: Remove member.
7351 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7352 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7353 (~tui_data_window, ~tui_win_info)
7354 (tui_free_all_source_wins_content): Update.
7355 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7357 2019-06-25 Tom Tromey <tom@tromey.com>
7359 * tui/tui-layout.c (init_and_make_win): Use new.
7360 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7361 destructor, initializers.
7362 (tui_alloc_generic_win_info): Don't declare.
7363 * tui/tui-data.c (_locator): Add argument to constructor.
7364 (source_win, disasm_win): New globals.
7365 (exec_info): Remove.
7366 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7368 (tui_alloc_generic_win_info): Remove.
7369 (init_content_element): Use new.
7370 (tui_win_info::tui_win_info): Update.
7371 (free_content_elements) <case DATA_WIN>: Use delete.
7373 2019-06-25 Tom Tromey <tom@tromey.com>
7375 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7376 * tui/tui-windata.c (tui_first_data_item_displayed)
7377 (tui_delete_data_content_windows): Update.
7378 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7379 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7380 (tui_display_registers_from, tui_check_register_values): Update.
7381 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7383 * tui/tui-data.c (init_content_element): Update. Allocate the new
7385 (tui_free_data_content): Update.
7386 (free_content_elements) <case DATA_WIN>: Free the window.
7388 2019-06-25 Tom Tromey <tom@tromey.com>
7390 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7392 * tui/tui-layout.c (make_command_window)
7393 (show_source_disasm_command, show_data, init_and_make_win)
7394 (show_source_or_disasm_and_command): Update.
7395 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7397 <can_highight, is_highlighted>: Now bool.
7398 (tui_set_win_highlight): Don't declare.
7399 * tui/tui-data.c (tui_set_win_highlight): Remove.
7401 2019-06-25 Tom Tromey <tom@tromey.com>
7403 * tui/tui-wingeneral.c (make_visible): Remove check of window
7406 2019-06-25 Tom Tromey <tom@tromey.com>
7408 * tui/tui-win.c (tui_win_info::max_height)
7409 (tui_cmd_window::max_height): New methods.
7410 (new_height_ok): Call max_height.
7411 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7412 <max_height>: New method.
7414 2019-06-25 Tom Tromey <tom@tromey.com>
7416 * tui/tui-win.c (tui_source_window_base::set_new_height)
7417 (tui_data_window::set_new_height): New methods.
7418 (make_invisible_and_set_new_height): Call set_new_height method.
7419 * tui/tui-data.h (struct tui_win_info)
7420 (struct tui_source_window_base, struct tui_data_window)
7421 <set_new_height>: New method.
7423 2019-06-25 Tom Tromey <tom@tromey.com>
7425 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7426 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7427 tui_refresh_data_win.
7428 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7430 (tui_refresh_all_win): Call the refresh_all method.
7431 (tui_set_focus): Likewise.
7432 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7433 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7436 2019-06-25 Tom Tromey <tom@tromey.com>
7438 * tui/tui-winsource.h (tui_refill_source_window)
7439 (tui_set_is_exec_point_at): Don't declare.
7440 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7441 (tui_source_window_base::refill): Rename from
7442 tui_refill_source_window.
7443 (tui_source_window_base::do_scroll_horizontal): Update.
7444 (tui_source_window_base::set_is_exec_point_at): Rename from
7445 tui_set_is_exec_point_at.
7446 (tui_update_all_breakpoint_info): Update.
7447 * tui/tui-stack.c (tui_show_frame_info): Update.
7448 * tui/tui-layout.c (show_data): Add cast.
7449 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7450 * tui/tui-data.h (struct tui_source_window_base) <refill,
7451 set_is_exec_point_at>: New methods.
7452 (tui_source_windows, tui_add_to_source_windows): Update types.
7453 (tui_add_to_source_windows): Remove redundant declaration.
7454 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7455 (tui_source_windows): Change return type.
7456 (tui_clear_source_windows_detail): Update.
7457 (tui_add_to_source_windows): Change type of parameter.
7458 (tui_free_all_source_wins_content): Update.
7460 2019-06-25 Tom Tromey <tom@tromey.com>
7462 * tui/tui-wingeneral.c (tui_win_info::refresh)
7463 (tui_source_window_base::refresh): New methods.
7464 (tui_refresh_all): Call the refresh method.
7465 * tui/tui-data.h (struct tui_win_info)
7466 (struct tui_source_window_base) <refresh>: New method.
7468 2019-06-25 Tom Tromey <tom@tromey.com>
7470 * tui/tui.h (tui_is_window_visible): Return bool.
7471 * tui/tui.c (tui_is_window_visible): Return bool.
7472 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7473 (tui_make_visible, tui_make_invisible)
7474 (tui_win_info::make_visible)
7475 (tui_source_window_base::make_visible, make_all_visible)
7476 (tui_make_all_visible, tui_make_all_invisible): Update.
7477 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7478 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7480 (struct tui_win_info, struct tui_source_window_base)
7481 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7482 * tui/tui-data.c (tui_init_generic_part): Update.
7484 2019-06-25 Tom Tromey <tom@tromey.com>
7486 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7487 (tui_source_window_base::make_visible): New methods.
7488 (make_all_visible): Make method call.
7489 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7490 (struct tui_source_window_base, struct tui_cmd_window): Override
7492 (tui_win_is_source_type): Don't declare.
7493 * tui/tui-data.c (tui_win_is_source_type): Remove.
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7497 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7500 2019-06-25 Tom Tromey <tom@tromey.com>
7502 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7503 Inline constructor. Add initializers for members.
7504 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7505 constructors; now inline in class.
7507 2019-06-25 Tom Tromey <tom@tromey.com>
7509 * tui/tui-regs.c (tui_show_registers): Update.
7510 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7512 * tui/tui-data.c (tui_data_window::clear_detail)
7513 (tui_data_window): Update.
7515 2019-06-25 Tom Tromey <tom@tromey.com>
7517 * tui/tui-windata.c (tui_display_all_data)
7518 (tui_display_data_from_line, tui_display_data_from)
7519 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7521 * tui/tui-regs.c (tui_last_regs_line_no)
7522 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7523 (tui_show_registers, tui_show_register_group)
7524 (tui_display_registers_from, tui_display_reg_element_at_line)
7525 (tui_display_registers_from_line, tui_check_register_values)
7526 (tui_reg_next, tui_reg_prev): Update.
7527 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7528 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7530 (struct tui_win_info) <detail>: Remove. Add new fields from
7532 (TUI_DATA_WIN): Add cast.
7533 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7534 (~tui_data_window): Simplify.
7536 2019-06-25 Tom Tromey <tom@tromey.com>
7538 * tui/tui-layout.c (show_source_disasm_command)
7539 (show_source_or_disasm_and_command): Update.
7540 * tui/tui-io.c (update_cmdwin_start_line)
7541 (tui_redisplay_readline): Update.
7542 * tui/tui-data.h (struct tui_command_info): Remove.
7543 (struct tui_win_info) <detail>: Remove command_info member.
7544 (struct tui_data_window) <start_line>: New member, from
7546 (TUI_CMD_WIN): Add casts.
7548 2019-06-25 Tom Tromey <tom@tromey.com>
7550 * tui/tui-winsource.c (tui_update_source_window)
7551 (tui_refill_source_window)
7552 (tui_source_window_base::do_scroll_horizontal)
7553 (tui_update_breakpoint_info, tui_set_exec_info_content)
7554 (tui_show_exec_info_content, tui_erase_exec_info_content)
7555 (tui_clear_exec_info_content): Update.
7556 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7558 * tui/tui-win.c (make_invisible_and_set_new_height)
7559 (make_visible_with_new_height): Update.
7560 * tui/tui-source.c (tui_set_source_content)
7561 (tui_show_symtab_source): Update.
7562 * tui/tui-layout.c (extract_display_start_addr)
7563 (show_source_disasm_command, show_data)
7564 (make_source_or_disasm_window)
7565 (show_source_or_disasm_and_command): Update.
7566 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7567 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7569 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7570 to tui_source_window_base.
7571 (struct tui_win_info) <detail>: Remove source_info member.
7572 (struct tui_source_window_base) <has_locator>: Inline.
7573 Move contents from tui_source_info; rename has_locator member to
7575 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7576 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7578 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7580 (tui_free_all_source_wins_content): Cast to
7581 tui_source_window_base.
7583 2019-06-25 Tom Tromey <tom@tromey.com>
7585 * tui/tui-win.c (make_invisible_and_set_new_height)
7586 (make_visible_with_new_height): Call has_locator method.
7587 * tui/tui-layout.c (show_source_disasm_command, show_data)
7588 (show_source_or_disasm_and_command): Update for bool change.
7589 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7590 (tui_win_info) <has_locator>: New method.
7591 (struct tui_source_window_base) <has_locator>: New method.
7592 (tui_win_has_locator): Don't declare.
7593 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7594 from tui_win_has_locator.
7595 (tui_source_window_base): Use false, not FALSE.
7597 2019-06-25 Tom Tromey <tom@tromey.com>
7599 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7600 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7601 clear_detail method directly.
7602 (tui_clear_win_detail): Remove.
7604 2019-06-25 Tom Tromey <tom@tromey.com>
7606 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7607 "this", not TUI_DISASM_WIN.
7609 2019-06-25 Tom Tromey <tom@tromey.com>
7611 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7613 * tui/tui-winsource.c
7614 (tui_source_window_base::do_scroll_horizontal): Rename from
7615 tui_horizontal_source_scroll.
7616 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7617 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7618 from tui_vertical_data_scroll.
7619 * tui/tui-win.h (tui_scroll): Don't declare.
7620 * tui/tui-win.c (tui_win_info::forward_scroll)
7621 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7622 (tui_win_info::right_scroll): Rename and update.
7623 (tui_scroll_forward_command, tui_scroll_backward_command)
7624 (tui_scroll_left_command, tui_scroll_right_command): Update.
7625 (tui_scroll): Remove.
7626 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7627 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7628 from tui_vertical_source_scroll.
7629 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7630 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7631 from tui_vertical_disassem_scroll.
7632 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7633 do_scroll_horizontal>: New methods.
7634 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7636 (struct tui_source_window_base): Add do_scroll_horizontal.
7637 (struct tui_source_window, struct tui_disasm_window): Add
7639 (struct tui_data_window, struct tui_cmd_window): Add
7640 do_scroll_horizontal and do_scroll_vertical.
7641 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7643 2019-06-25 Tom Tromey <tom@tromey.com>
7645 * tui/tui-data.h (struct tui_source_window_base): New struct.
7646 (struct tui_source_window): Derive from tui_source_window_base.
7647 (struct tui_disasm_window): New struct.
7648 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7649 from tui_source_window::clear_detail.
7650 (tui_source_window_base): Rename from tui_source_window.
7651 (~tui_source_window_base): Rename from ~tui_source_window.
7652 (tui_alloc_win_info): Create a tui_disasm_window.
7654 2019-06-25 Tom Tromey <tom@tromey.com>
7656 * tui/tui-data.h (struct tui_source_window)
7657 (struct tui_data_window): Declare destructors.
7658 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7660 (tui_win_info): Simplify.
7662 2019-06-25 Tom Tromey <tom@tromey.com>
7664 * tui/tui-winsource.c (tui_display_main)
7665 (tui_update_source_windows_with_addr)
7666 (tui_update_all_breakpoint_info): Update.
7667 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7668 (new_height_ok, parse_scrolling_args): Update.
7669 * tui/tui-stack.c (tui_show_frame_info): Update.
7670 * tui/tui-data.h (struct tui_list): Remove.
7671 (tui_source_windows): Return a reference to a std::vector.
7672 * tui/tui-data.c (source_windows): Now a std::vector.
7673 (tui_source_windows): Change return type.
7674 (tui_clear_source_windows): Rewrite.
7675 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7676 (tui_free_all_source_wins_content): Rewrite.
7678 2019-06-25 Tom Tromey <tom@tromey.com>
7680 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7681 (struct tui_data_window, struct tui_cmd_window): Declare
7682 clear_detail method.
7683 * tui/tui-data.c (tui_source_window::clear_detail)
7684 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7686 (tui_clear_win_detail): Simplify.
7688 2019-06-25 Tom Tromey <tom@tromey.com>
7690 * tui/tui-layout.c (make_source_window, make_disasm_window)
7691 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7692 Return the new window.
7693 (show_source_disasm_command, show_data)
7694 (show_source_or_disasm_and_command): Update.
7696 2019-06-25 Tom Tromey <tom@tromey.com>
7698 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7699 parameter. Return the new window.
7700 (show_source_disasm_command): Update and remove NULL check.
7701 (show_source_or_disasm_and_command): Update.
7703 2019-06-25 Tom Tromey <tom@tromey.com>
7705 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7707 2019-06-25 Tom Tromey <tom@tromey.com>
7709 * tui/tui-data.h (struct tui_win_info): Make constructor
7710 protected. Make destructor virtual. Add initializers.
7711 (tui_source_window, tui_data_window, tui_cmd_window): New
7713 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7714 constructor. Add "type" parameter.
7715 (tui_source_window, tui_data_window, tui_cmd_window): New
7717 (tui_alloc_win_info): Instantiate the appropriate subclass.
7719 2019-06-25 Tom Tromey <tom@tromey.com>
7721 * tui/tui-win.c (tui_resize_all): Use delete.
7722 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7724 (tui_free_window): Don't declare.
7725 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7728 2019-06-25 Tom Tromey <tom@tromey.com>
7730 * tui/tui-data.h (struct tui_win_info): Add constructor.
7731 * tui/tui-data.c (tui_alloc_win_info): Use new.
7732 (tui_free_window): Use delete.
7734 2019-06-22 Tom Tromey <tom@tromey.com>
7736 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7738 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7740 2019-06-22 Tom Tromey <tom@tromey.com>
7742 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7744 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7746 2019-06-22 Tom de Vries <tdevries@suse.de>
7748 * dwarf2read.c (create_addrmap_from_aranges)
7749 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7752 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7754 * dwarf2read.h (dwarf2_section_info_def): Remove.
7755 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7756 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7757 std::vector<dwarf2_section_info>.
7758 (struct dwo_file) <~dwo_file>: Remove.
7759 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7761 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7762 (dwarf2_read_debug_names): Likewise.
7763 (create_debug_types_hash_table): Change parameter type to
7764 array_view, adjust code accordingly.
7765 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7766 (partial_die_info::fixup): Likewise.
7767 (determine_prefix): Likewise.
7768 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7770 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7772 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7774 <~dwo_file>: Remove call to gdb_bfd_unref.
7775 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7776 gdb_bfd_ref_ptr::get.
7778 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7780 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7782 * dwarf2read.c (struct dwo_file): Initialize fields.
7784 (free_dwo_file): Remove, move content to ~dwo_file.
7785 (struct dwo_file_deleter): Remove.
7786 (dwo_file_up>: Remove custom deleter.
7787 (free_dwo_files): Remove.
7788 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7790 (process_skeletonless_type_units): Call unique_ptr::get.
7791 (allocate_dwo_file_hash_table): Add deleter to created hash
7792 table. Change return type to htab_up.
7793 (lookup_dwo_file_slot): Don't memset dwo_file, call
7795 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7796 (create_dwo_unit_in_dwp_v2): Likewise.
7797 (open_and_init_dwo_file): Likewise.
7798 (free_dwo_file_from_slot): Remove.
7800 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7802 * dwarf2read.h (struct dwarf2_section_info) <readin,
7803 is_virtual>: Change type to bool.
7804 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7807 2019-06-19 Tom Tromey <tom@tromey.com>
7809 * tui/tui-data.h (tui_init_content_element): Don't declare.
7811 2019-06-19 Tom Tromey <tom@tromey.com>
7813 * tui/tui-data.h (tui_init_win_info): Don't declare.
7815 2019-06-19 Tom de Vries <tdevries@suse.de>
7817 * dwarf2read.h (abstract_to_concrete): Change type to
7818 std::unordered_map<sect_offset, std::vector<sect_offset>,
7819 gdb::hash_enum<sect_offset>>.
7821 2019-06-19 Tom Tromey <tromey@adacore.com>
7823 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7824 EVAL_AVOID_SIDE_EFFECTS specially.
7826 2019-06-19 Tom Tromey <tromey@adacore.com>
7828 * source-cache.c (highlighter): New global.
7829 (source_cache::get_source_lines): Create a highlighter on demand.
7831 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7833 * defs.h (deprecated_interactive_hook): Delete declaration.
7834 * interps.c (clear_interpreter_hooks): Remove use of
7835 deprecated_interactive_hook.
7836 * top.c (deprecated_interactive_hook): Delete definition.
7837 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7839 2019-06-18 Tom de Vries <tdevries@suse.de>
7842 * dwarf2read.h (abstract_to_concrete): Change type from
7843 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7844 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7845 * dwarf2read.c (read_variable): Update.
7846 (dwarf2_fetch_die_loc_sect_off): Update.
7848 2019-06-17 Tom de Vries <tdevries@suse.de>
7851 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7852 accessing parent[parent_len - 1].
7854 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7857 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7858 call dtrace_process_dof with NULL dof.
7860 2019-06-16 Tom de Vries <tdevries@suse.de>
7863 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7865 2019-06-16 Tom Tromey <tom@tromey.com>
7867 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7868 (make_all_visible): Use address of member.
7870 2019-06-16 Tom Tromey <tom@tromey.com>
7872 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7873 (tui_free_window, free_content, free_content_elements): Remove
7875 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7877 * tui/tui-regs.c (tui_show_register_group)
7878 (tui_display_registers_from, tui_display_reg_element_at_line):
7879 Remove unnecessary cast.
7881 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7883 * linux-nat.c (normal_mask): Delete.
7884 (_initialize_linux_nat): Don't initialise normal_mask.
7886 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7889 * dwarf-index-write.h (write_psymtabs_to_index): Add
7890 dwz_basename parameter.
7891 * dwarf-index-write.c (write_gdbindex): Move file writing to
7892 write_gdbindex_1. Change return type void.
7893 (assert_file_size): Move up, remove filename parameter.
7894 (write_gdbindex_1): New function.
7895 (write_debug_names): Change return type to void, call
7897 (struct index_wip_file): New struct.
7898 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7899 file logic to index_wip_file. Write index for dwz file if
7901 (save_gdb_index_command): Pass basename of dwz file, if present.
7902 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7903 build-id of dwz file, if present.
7904 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7905 (dwarf2_get_dwz_file): Likewise.
7906 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7907 (dwarf2_get_dwz_file): Likewise.
7909 2019-06-16 Tom Tromey <tom@tromey.com>
7911 * coffread.c (process_coff_symbol): Use xstrdup.
7912 * value.c (create_internalvar): Use xstrdup.
7914 2019-06-16 Tom Tromey <tom@tromey.com>
7916 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7917 * breakpoint.c (stopin_command, stopat_command)
7918 (until_break_command, decode_location_default): Remove unnecessary
7920 * utils.c (subset_compare): Remove unnecessary cast.
7921 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7923 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7925 * infcmd.c (path_command): Remove unnecessary cast.
7926 * coffread.c (decode_type): Remove unnecessary cast.
7927 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7928 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7929 * tui/tui-stack.c (tui_show_locator_content)
7930 (tui_show_frame_info): Remove unnecessary cast.
7931 * tui/tui-win.c (tui_scroll_forward_command)
7932 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7933 (parse_scrolling_args): Remove unnecessary cast.
7934 * tui/tui-data.c (init_win_info, tui_del_window)
7935 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7936 (free_content_elements): Remove unnecessary cast.
7937 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7939 * tui/tui-source.c (tui_set_source_content)
7940 (tui_vertical_source_scroll): Remove unnecessary cast.
7941 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7943 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7944 * tui/tui-regs.c (tui_display_registers_from)
7945 (tui_display_register): Remove unnecessary cast.
7946 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7947 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7948 (make_visible): Remove unnecessary cast.
7949 * tui/tui-winsource.c (tui_erase_source_content)
7950 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7952 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7953 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7954 * stabsread.c (read_type, read_array_type, read_range_type):
7955 Remove unnecessary cast.
7956 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7957 (parse_symbol, parse_type, upgrade_type, parse_external)
7958 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7960 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7962 2019-06-16 Tom Tromey <tom@tromey.com>
7964 * tui/tui-data.c (tui_alloc_generic_win_info)
7965 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7968 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7969 Andrew Burgess <andrew.burgess@embecosm.com>
7971 * f-typeprint.c (f_print_type): Don't return early for not
7972 associated or not allocated types.
7973 (f_type_print_varspec_suffix): Add print_rank parameter and print
7974 ranks of array types in case they dangling.
7975 (f_type_print_base): Add print_rank parameter.
7977 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7979 * NEWS: Mention new MI commands.
7980 * break-catch-throw.c (enum exception_event_kind): Move to
7982 (print_mention_exception_catchpoint): Output text as a single
7984 (catch_exception_command_1): Rename to...
7985 (catch_exception_event): ...this, make non-static, update header
7986 command, and change some parameter types.
7987 (catch_catch_command): Update for changes to
7988 catch_exception_command_1.
7989 (catch_throw_command): Likewise.
7990 (catch_rethrow_command): Likewise.
7991 * breakpoint.c (enum exception_event_kind): Delete.
7992 * breakpoint.h (enum exception_event_kind): Moved here from
7993 break-catch-throw.c.
7994 (catch_exception_event): Declare.
7995 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7996 (mi_cmd_catch_throw): New function.
7997 (mi_cmd_catch_rethrow): New function.
7998 (mi_cmd_catch_catch): New function.
7999 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8000 'catch-catch' entries.
8001 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8002 (mi_cmd_catch_rethrow): Declare.
8003 (mi_cmd_catch_catch): Declare.
8005 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8007 * annotate.c (annotate_source_line): Change return type to void,
8008 update implementation to match.
8009 * annotate.h (annotate_source_line): Change return type to void,
8010 update header comment.
8011 * stack.c (print_frame_info): Don't change what frame information
8012 is printed based on whether annotations are on or not.
8014 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8016 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8017 (annotate_source): Make static.
8018 (annotate_source_line): Moved from source.c and renamed from
8019 identify_source_line. Update the return type.
8020 * annotate.h (annotate_source): Delete declaration.
8021 (annotate_source_line): Declaration moved from source.h, and
8022 renamed from identify_source_line. Return type updated.
8023 * source.c (identify_source_line): Moved to annotate.c and renamed
8024 to annotate_source_line.
8025 (info_line_command): Remove check of annotation_level.
8026 * source.h (identify_source_line): Move declaration to annotate.h
8027 and rename to annotate_source_line.
8028 * stack.c: Add 'annotate.h' include.
8029 (print_frame_info): Remove check of annotation_level before
8030 calling annotate_source_line.
8032 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8034 * source-cache.c (source_cache::get_plain_source_lines): Use
8035 open_source_file_with_line_charpos instead of just
8036 open_source_file, remove call to find_source_lines.
8037 (source_cache::get_source_lines): Likewise.
8038 * source.c (find_source_lines): Make static.
8039 (get_filename_and_charpos): Renamed into...
8040 (open_source_file_with_line_charpos): ..this along with changes to
8041 return a scoped_fd, and some other minor clean ups.
8042 (identify_source_line): Use open_source_file_with_line_charpos.
8043 (search_command_helper): Use open_source_file_with_line_charpos
8044 instead of just open_source_file, remove call to
8046 * source.h (open_source_file_with_line_charpos): Declare new
8048 (find_source_lines): Delete declaration.
8050 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8052 * source.c (get_filename_and_charpos): Remove fullname
8054 (identify_source_line): Update call to get_filename_and_charpos.
8056 2019-06-14 Tom Tromey <tromey@adacore.com>
8059 * ui-style.h (skip_ansi_escape): Update comment.
8060 * ui-file.h (class no_terminal_escape_file): New class.
8061 * ui-file.c (no_terminal_escape_file::write)
8062 (no_terminal_escape_file::puts): New methods.
8063 * cli/cli-logging.c (handle_redirections): Use
8064 no_terminal_escape_file.
8066 2019-06-14 Tom Tromey <tromey@adacore.com>
8068 * NEWS: Move convenience variable news above Python news.
8070 2019-06-14 Tom Tromey <tom@tromey.com>
8072 * gnulib: Move directory to top-level.
8073 * configure.ac: Don't configure gnulib.
8074 * configure: Rebuild.
8075 * common/common-defs.h: Use new path to gnulib.
8076 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8078 (INCGNU): Look in new gnulib location.
8079 (HFILES_NO_SRCDIR): Remove gnulib files.
8080 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8081 (generated_files): Remove GNULIB_H.
8082 ($(LIBGNU), all-lib): Remove targets.
8083 (distclean): Don't mention GNULIB_BUILDDIR.
8084 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8086 2019-06-14 Tom Tromey <tromey@adacore.com>
8088 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8089 Warn if symbol file does not provide any symbols.
8091 2019-06-14 Tom Tromey <tromey@adacore.com>
8093 * source.c (find_and_open_source): Respect basenames_may_differ.
8095 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8097 * annotate.c (annotate_breakpoints_invalid): Make use of
8098 scoped_restore_terminal_state.
8099 (annotate_frames_invalid): Likewise.
8101 2019-06-14 Tom Tromey <tromey@adacore.com>
8103 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8104 allow assignment to an internalvar.
8106 2019-06-14 Tom Tromey <tromey@adacore.com>
8108 * ada-lex.l: Allow "_" in attribute names.
8110 2019-06-14 Tom Tromey <tromey@adacore.com>
8113 * regcache.c (registers_changed): Don't call alloca.
8114 * top.c (execute_command): Don't call alloca.
8116 2019-06-13 Pedro Alves <palves@redhat.com>
8118 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8119 'expression'. When parsing an expression, error out if there's
8120 junk after "unlimited".
8121 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8122 (do_set_command): Adjust calls to is_unlimited_literal.
8124 2019-06-13 Pedro Alves <palves@redhat.com>
8126 * compile/compile.c (make_compile_options_def_group): Add braces
8127 around array_view initializer.
8128 * thread.c (make_thread_apply_all_options_def_group)
8129 (make_thread_apply_all_options_def_group): Likewise.
8131 2019-06-13 Pedro Alves <palves@redhat.com>
8133 * NEWS (New commands): Mention "maint test-options
8134 require-delimiter", "maint test-options unknown-is-error", "maint
8135 test-options unknown-is-operand" and "maint show
8136 test-options-completion-result".
8137 (New command options, command completion): New section.
8138 (Completion improvements): New section.
8139 Mention that you can abbreviate "unlimited".
8141 2019-06-13 Pedro Alves <palves@redhat.com>
8143 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8144 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8145 * unittests/cli-utils-selftests.c (test_parse_flags)
8146 (test_parse_flags_qcs): Delete.
8147 (test_cli_utils): Don't call deleted functions.
8149 2019-06-13 Pedro Alves <palves@redhat.com>
8151 * thread.c: Include "cli/cli-option.h".
8152 (tp_array_compar_ascending): Global.
8153 (tp_array_compar): Delete function.
8154 (tp_array_compar_ascending, tp_array_compar_descending): New
8156 (ascending_option_def, qcs_flag_option_def)
8157 (thr_qcs_flags_option_defs)
8158 (make_thread_apply_all_options_def_group)
8159 (make_thread_apply_options_def_group): New.
8160 (thread_apply_all_command): Use gdb::option::process_options.
8161 (thread_apply_command_completer)
8162 (thread_apply_all_command_completer): New.
8163 (thread_apply_command): Use gdb::option::process_options.
8164 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8165 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8166 to generate help text of "thread apply". Adjust "taas"'s help.
8167 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8168 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8170 2019-06-13 Pedro Alves <palves@redhat.com>
8172 * thread.c (thread_apply_command): Check for invalid TID with
8173 isdigit instead of !isalpha.
8175 2019-06-13 Pedro Alves <palves@redhat.com>
8177 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8178 (validate_flags_qcs): New.
8179 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8180 (validate_flags_qcs): Declare.
8181 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8182 (make_frame_apply_options_def_group): New.
8183 (frame_apply_command_count): Process options with
8184 gdb::option::process_options.
8185 (frame_apply_completer): New.
8186 (frame_apply_level_completer, frame_apply_all_completer)
8187 (frame_apply_completer): New.
8188 (_initialize_stack): Update help of "frame apply", "frame apply
8189 level", "frame apply all" and "faas" to mention supported options
8190 and install command completers.
8191 * stack.h (frame_apply_all_completer): Declare.
8192 * thread.c: Include "stack.h".
8193 (tfaas_command): Add "--".
8194 (_initialize_thread): Update help "tfaas" to mention supported
8195 options and install command completer.
8197 2019-06-13 Pedro Alves <palves@redhat.com>
8199 * completer.c (complete_nested_command_line): New.
8200 (gdb_completion_word_break_characters_throw): Add assertion.
8201 * completer.h (complete_nested_command_line): Declare.
8203 2019-06-13 Pedro Alves <palves@redhat.com>
8205 * stack.c (parse_backtrace_qualifiers): New.
8206 (backtrace_command): Use it.
8207 (backtrace_command_completer): Complete on qualifiers.
8209 2019-06-13 Pedro Alves <palves@redhat.com>
8211 * frame.c: Include "cli/cli-option.h.
8212 (user_set_backtrace_options): New.
8213 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8215 (get_prev_frame): Adjust.
8216 (boolean_option_def, uinteger_option_def)
8217 (set_backtrace_option_defs): New.
8218 (_initialize_frame): Adjust and use
8219 gdb::option::add_setshow_cmds_for_options to install "set
8220 backtrace past-main" and "set backtrace past-entry".
8221 * frame.h: Include "cli/cli-option.h".
8222 (struct frame_print_options): Forward declare.
8223 (print_frame_arguments_all, print_frame_arguments_scalars)
8224 (print_frame_arguments_none): Declare.
8225 (print_entry_values): Delete declaration.
8226 (struct frame_print_options, user_frame_print_options): New.
8227 (struct set_backtrace_options): New.
8228 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8229 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8230 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8231 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8232 (list_args_or_locals): Add frame_print_options parameter.
8233 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8234 * python/py-framefilter.c (enumerate_args): Pass down
8235 USER_FRAME_PRINT_OPTIONS.
8236 * stack.c: Include "cli/cli-option.h".
8237 (print_frame_arguments_all, print_frame_arguments_scalars)
8238 (print_frame_arguments_none): Declare.
8239 (print_raw_frame_arguments, print_entry_values): Delete.
8240 (user_frame_print_options): New.
8241 (boolean_option_def, enum_option_def, frame_print_option_defs):
8243 (struct backtrace_cmd_options): New.
8244 (bt_flag_option_def): New.
8245 (backtrace_command_option_defs): New.
8246 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8247 (print_frame_arg, read_frame_arg, print_frame_args)
8248 (print_frame_info, print_frame): Add frame_print_options parameter
8250 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8251 (backtrace_command_1): Add frame_print_options and
8252 backtrace_cmd_options parameters and use them.
8253 (make_backtrace_options_def_group): New.
8254 (backtrace_command): Process command options with
8255 gdb::option::process_options.
8256 (backtrace_command_completer): New.
8257 (_initialize_stack): Extend "backtrace"'s help to mention
8258 supported options. Install completer for "backtrace".
8259 Install some settings commands with add_setshow_cmds_for_options.
8261 2019-06-13 Pedro Alves <palves@redhat.com>
8263 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8264 and that "set/show print raw frame-arguments" are now deprecated.
8266 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8268 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8269 * stack.c (_initialize_stack): Install "set/show print
8270 raw-frame-arguments", and deprecate "set/show print raw
8272 * valprint.c (_initialize_valprint): Deprecate "set/show print
8275 2019-06-13 Pedro Alves <palves@redhat.com>
8277 * compile/compile.c (struct compile_options): New.
8278 (compile_flag_option_def, compile_command_option_defs)
8279 (make_compile_options_def_group): New.
8280 (compile_file_command): Handle options with
8281 gdb::option::process_options.
8282 (compile_file_command_completer): New function.
8283 (compile_code_command): Handle options with
8284 gdb::option::process_options.
8285 (compile_code_command_completer): New function.
8286 (_initialize_compiler): Install completers for "compile code" and
8287 "compile file". Mention available options in "compile code" and
8288 "compile code"'s help.
8289 * completer.c (advance_to_completion_word): New, factored out from
8291 (advance_to_expression_complete_word_point): ... this.
8292 (advance_to_filename_complete_word_point): New.
8293 * completer.h (advance_to_filename_complete_word_point): New
8296 2019-06-13 Pedro Alves <palves@redhat.com>
8298 * compile/compile.c: Include "cli/cli-option.h".
8299 (compile_print_value): Scope data pointer is now a
8300 value_print_options pointer; adjust.
8301 (compile_print_command): Process options. Scope data pointer is
8302 now a value_print_options pointer; adjust.
8303 (_initialize_compile): Update "compile print"'s help to include
8304 supported options. Install a completer for "compile print".
8305 * cp-valprint.c (show_vtblprint, show_objectprint)
8306 (show_static_field_print): Delete.
8307 (_initialize_cp_valprint): Don't install "set print
8308 static-members", "set print vtbl", "set print object" here.
8309 * printcmd.c: Include "cli/cli-option.h" and
8310 "common/gdb_optional.h".
8311 (print_command_parse_format): Rework to fill in a
8312 value_print_options instead of a format_data.
8313 (print_value): Change parameter type from format_data pointer to
8314 value_print_options reference. Adjust.
8315 (print_command_1): Process options. Adjust to pass down a
8316 value_print_options.
8317 (print_command_completer): New.
8318 (_initialize_printcmd): Install print_command_completer as
8319 handle_brkchars completer for the "print" command. Update
8320 "print"'s help to include supported options.
8321 * valprint.c: Include "cli/cli-option.h".
8322 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8323 here from cp-valprint.c.
8324 (boolean_option_def, uinteger_option_def)
8325 (value_print_option_defs, make_value_print_options_def_group):
8326 New. Use gdb::option::add_setshow_cmds_for_options to install
8327 "set print elements", "set print null-stop", "set print repeats",
8328 "set print pretty", "set print union", "set print array", "set
8329 print address", "set print symbol", "set print array-indexes".
8330 * valprint.h: Include <string> and "cli/cli-option.h".
8331 (make_value_print_options_def_group): Declare.
8332 (print_value): Change parameter type from format_data pointer to
8333 value_print_options reference.
8334 (print_command_completer): Declare.
8336 2019-06-13 Pedro Alves <palves@redhat.com>
8338 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8339 (COMMON_SFILES): Add maint-test-settings.c.
8340 * cli/cli-decode.c (boolean_enums): New global, factored out from
8342 (add_setshow_boolean_cmd): ... here.
8343 * cli/cli-decode.h (boolean_enums): Declare.
8344 * cli/cli-option.c: New file.
8345 * cli/cli-option.h: New file.
8346 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8347 factored out from ...
8348 (parse_cli_boolean_value(const char *)): ... this.
8349 (is_unlimited_literal): Change parameter type to pointer to
8350 pointer. Adjust and advance ARG pointer.
8351 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8352 (parse_cli_var_enum): New, factored out from ...
8353 (do_set_command): ... this. Adjust.
8354 * cli/cli-setshow.h (parse_cli_boolean_value)
8355 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8356 (parse_cli_var_enum): Declare.
8357 * cli/cli-utils.c: Include "cli/cli-option.h".
8358 (get_ulongest): New.
8359 * cli/cli-utils.h (get_ulongest): Declare.
8360 (check_for_argument): New overloads.
8361 * maint-test-options.c: New file.
8363 2019-06-13 Pedro Alves <palves@redhat.com>
8365 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8366 parse a range if "-" is at the end of the string.
8368 2019-06-13 Pedro Alves <palves@redhat.com>
8370 * cli/cli-setshow.c (parse_auto_binary_operation)
8371 (parse_cli_boolean_value): Don't allow "o".
8373 2019-06-13 Pedro Alves <palves@redhat.com>
8375 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8376 * NEWS: Mention maint test-settings KIND.
8377 * maint-test-settings.c: New file.
8379 2019-06-13 Pedro Alves <palves@redhat.com>
8381 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8383 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8386 2019-06-13 Pedro Alves <palves@redhat.com>
8388 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8391 2019-06-13 Pedro Alves <palves@redhat.com>
8393 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8395 2019-06-13 Pedro Alves <palves@redhat.com>
8397 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8398 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8400 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8401 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8403 (check_for_argument): Skip spaces after argument.
8405 2019-06-13 Pedro Alves <palves@redhat.com>
8407 * thread.c (thread_apply_command): Adjust TID parsing.
8408 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8409 detected before end of string.
8410 (tid_is_in_list): Error out if LIST is invalid.
8412 2019-06-13 Pedro Alves <palves@redhat.com>
8414 * completer.c (complete_line_internal_1): Rewind completion word
8416 (completion_tracker::advance_custom_word_point_by): Change
8417 parameter type to int.
8418 * completer.h (completion_tracker::advance_custom_word_point_by):
8421 2019-06-13 Pedro Alves <palves@redhat.com>
8423 * completer.c (advance_to_completion_word): Handle delimiters.
8425 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8427 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8429 2019-06-11 Tom Tromey <tom@tromey.com>
8431 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8432 (xmalloc_failed): Move to alloc.c.
8433 * alloc.c: New file.
8434 * Makefile.in (COMMON_SFILES): Add alloc.c.
8436 2019-06-11 Tom Tromey <tom@tromey.com>
8438 * nat/linux-waitpid.c: Don't include server.h.
8439 (linux_debug): Remove.
8440 (my_waitpid): Update.
8442 2019-06-11 Tom Tromey <tromey@adacore.com>
8444 * infcall.c (_initialize_infcall): Remove trailing newline from
8446 * user-regs.c (_initialize_user_regs): Remove trailing newline
8448 * typeprint.c (_initialize_typeprint): Remove trailing newline
8450 * reverse.c (_initialize_reverse): Remove trailing newlines from
8452 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8454 * language.c (add_set_language_command): Remove trailing newline
8456 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8458 * disasm.c (_initialize_disasm): Remove trailing newline from
8460 * top.c (init_main): Remove trailing newline from help.
8461 * interps.c (_initialize_interpreter): Remove trailing newline
8463 * btrace.c (_initialize_btrace): Remove trailing newlines from
8465 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8467 * python/python.c (_initialize_python): Remove trailing newline
8469 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8471 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8472 from help. Reformat some text.
8473 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8475 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8478 2019-06-11 Tom Tromey <tromey@adacore.com>
8480 * darwin-nat.c (darwin_decode_exception_message)
8481 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8483 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8485 * valops.c (value_slice): Check for not allocated or not
8488 2019-06-10 Tom de Vries <tdevries@suse.de>
8491 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8492 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8495 2019-06-10 Tom de Vries <tdevries@suse.de>
8498 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8499 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8501 2019-06-10 Tom de Vries <tdevries@suse.de>
8504 * symtab.c (struct demangled_name_entry): Add language field.
8505 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8506 static minimal symbol". Set and use language field.
8508 2019-06-10 Tom Tromey <tromey@adacore.com>
8510 * ada-lang.c (_initialize_ada_language): Update help text.
8512 2019-06-10 Tom Tromey <tromey@adacore.com>
8514 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8516 * guile/guile.c (handle_boot_error): Don't end warning with a
8518 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8519 warning with a newline.
8520 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8522 (s12z_frame_cache): Likewise.
8523 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8525 * solib-svr4.c (disable_probes_interface): Don't end warning with
8527 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8529 * python/python.c (do_finish_initialization): Don't end warning
8532 2019-06-10 Tom Tromey <tom@tromey.com>
8534 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8535 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8538 2019-06-10 Tom Tromey <tromey@adacore.com>
8540 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8542 (elf_new_init): Don't call stabsread_new_init.
8543 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8544 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8545 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8547 2019-06-10 Tom de Vries <tdevries@suse.de>
8551 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8553 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8555 * source.c (find_and_open_source): Also rewrite relative file
8558 2019-04-26 Amos Bird <amosbird@gmail.com>
8560 * annotate.c (annotate_thread_exited): Add "thread-exited"
8563 2019-06-06 Tom Tromey <tromey@adacore.com>
8565 * maint.h (class scoped_command_stats): Use
8566 DISABLE_COPY_AND_ASSIGN.
8567 <print_time>: New method.
8568 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8570 (scoped_command_stats::print_time): New method.
8572 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8574 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8575 instructions of lengths 6 or 8 bytes.
8577 2019-06-04 Pedro Alves <palves@redhat.com>
8579 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8581 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8582 * breakpoint.c (condition_completer): Likewise.
8583 * cli/cli-dump.c (scan_expression): Likewise.
8584 * common/filestuff.c (mkdir_recursive): Likewise.
8585 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8586 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8587 (gdb_abspath): Likewise.
8588 * compile/compile-cplus-types.c
8589 (compile_cplus_instance::decl_name): Likewise.
8590 * completer.c (complete_explicit_location):
8591 (signal_completer, reg_or_group_completer_1): Likewise.
8592 * cp-support.c (cp_remove_params_if_any): Likewise.
8593 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8594 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8595 * infcmd.c (strip_bg_char): Likewise.
8596 * linespec.c (copy_token_string): Likewise.
8597 * mi/mi-main.c (output_cores): Likewise.
8598 * psymtab.c (psymtab_search_name):
8599 * symfile.c (test_set_ext_lang_command): Likewise.
8600 * target.c (target_fileio_read_stralloc): Likewise.
8601 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8602 * value.c (complete_internalvar): Likewise.
8604 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8606 Add objfile property to gdb.Type.
8607 * NEWS: Mention Python API addition.
8608 * python/py-type.c (typy_get_objfile): New method.
8610 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8612 * NEWS: Mention the new set|show style [title|highlight].
8613 Mention changes to "show style", "help" and "apropos".
8615 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8617 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8618 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8619 instead of print_help_for_command.
8620 (print_doc_of_command): New function.
8621 (help_list): Add 'apropos -v word' suggestion.
8622 (print_help_for_command): Style the command name using title style.
8623 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8624 (_initialize_cli_cmds): Describe -v in apropos_command help.
8626 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8628 * cli/cli-style.h (cli_style_option): Add name in constructor,
8629 add m_name class member, add constructor with intensity,
8630 add name class function.
8631 (cli_style_option::add_setshow_commands): Remove name argument.
8632 (highlight_style, title_style): New styles.
8633 * cli/cli-style.c (do_show): New function that shows a style
8634 characteristic styling the style name with itself.
8635 (set_style_name): New function.
8636 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8637 Update all callers according to the changes in cli/cli-style.h.
8638 * utils.h (fputs_highlighted): New function.
8639 * utils.c (fputs_highlighted): Likewise.
8641 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8643 * NEWS: Mention new pipe command and new convenience variables.
8645 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8647 * cli/cli-cmds.c (pipe_command): New function.
8648 (_initialize_cli_cmds): Call add_com for pipe_command.
8649 Define | as an alias for pipe.
8650 (exit_status_set_internal_vars): New function.
8651 (shell_escape): Call exit_status_set_internal_vars.
8652 cli/cli-decode.c (find_command_name_length): Recognize | as
8653 a single character command.
8655 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8657 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8658 top.c (execute_command_to_ui_file): New function, mostly a copy
8659 of execute_command_to_string.
8660 (execute_command_to_string): Implement by calling
8661 execute_command_to_ui_file.
8663 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8665 * top.h (saved_command_line): Remove declaration.
8666 * top.c (previous_saved_command_line, previous_repeat_arguments):
8668 (saved_command_line): Make static, define together with other
8670 (dont_repeat): Clear repeat_arguments.
8671 (repeat_previous, get_saved_command_line, save_command_line):
8673 (gdb_init): Initialize saved_command_line
8674 and previous_saved_command_line.
8675 * main.c (captured_main_1): Remove saved_command_line initialization.
8676 * event-top.c (handle_line_of_input): Update to use
8677 the new 'repeat' related functions instead of direct access to
8679 * command.h (repeat_previous, get_saved_command_line,
8680 save_command_line): New declarations.
8681 (dont_repeat): Add comment.
8683 2019-05-30 Tom Tromey <tromey@adacore.com>
8685 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8687 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8689 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8692 * completer.c (complete): Initialize variable word.
8694 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8696 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8697 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8698 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8699 'body' is NULL to the outter 'if', protecting the '!is_define'
8702 2019-05-29 Tom Tromey <tromey@adacore.com>
8704 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8705 (dwarf_unknown): New function.
8706 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8707 (dwarf_type_encoding_name): Use dwarf_unknown.
8709 2019-05-29 Tom Tromey <tromey@adacore.com>
8712 * cp-valprint.c (cp_print_value_fields): Call
8713 cp_print_static_field inside "try".
8715 2019-05-29 Tom Tromey <tromey@adacore.com>
8717 * inflow.c (struct terminal_info): Add default operator=.
8718 * configure: Rebuild.
8719 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8720 -Wdeprecated-copy-dtor, -Wredundant-move.
8722 2019-05-29 Tom Tromey <tromey@adacore.com>
8725 * infcmd.c (print_return_value_1): Handle finish_print
8727 (show_print_finish): New function.
8728 (_initialize_infcmd): Add "set/show print finish" commands.
8729 * valprint.c (user_print_options): Initialize new member.
8730 * valprint.h (struct value_print_options) <finish_print>: New
8733 2019-05-28 Tom Tromey <tromey@adacore.com>
8735 * ada-lang.c (ada_remove_Xbn_suffix)
8736 (find_old_style_renaming_symbol)
8737 (parse_old_style_renaming): Remove.
8738 (ada_find_renaming_symbol): Don't call
8739 find_old_style_renaming_symbol.
8740 (ada_is_renaming_symbol): Rename from
8741 ada_find_renaming_symbol. Remove "block" parameter. Return
8743 (ada_read_var_value): Update and simplify.
8744 * ada-exp.y (write_var_or_type): Remove old code.
8746 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8749 * event-top.c: Remove include comment.
8750 * inflow.c (class scoped_ignore_sigttou): Move from here...
8751 * inflow.h (class scoped_ignore_sigttou): ...to here.
8752 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8753 * top.c: Remove include comment.
8755 2019-05-27 Tom Tromey <tom@tromey.com>
8759 2019-05-22 Tom Tromey <tromey@adacore.com>
8761 * target.c (target_follow_exec): Constify parameter.
8762 * target-delegates.c: Rebuild.
8763 * remote.c (remote_target::follow_exec): Constify parameter.
8764 * infrun.c (follow_exec): Constify parameter.
8765 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8766 (target_follow_exec): Likewise.
8768 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8770 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8771 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8773 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8775 * NEWS: Add debugredirect and testsuite sections.
8777 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8779 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8780 target descriptions using exclusively floating point register name
8783 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8786 * f-lang.c (build_fortran_types): Handle the case where
8787 gdbarch_floatformat_for_type returns a nullptr.
8789 2019-05-21 Tom de Vries <tdevries@suse.de>
8792 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8794 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8797 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8799 * i386-tdep.c (i386_floatformat_for_type): Use
8800 floatformats_ia64_quad for the 16-byte floating point component
8801 within a fortran 32-byte complex number.
8803 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8805 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8806 delete default constructor.
8807 (find_partial_die): Update to return const struct.
8808 (partial_die_parent_scope): Move variable declaration into scope
8809 of its use and change its type to auto.
8810 (guess_partial_die_structure_name): Likewise.
8811 (partial_die_info::fixup): Likewise.
8813 2019-05-17 Tom Tromey <tromey@adacore.com>
8815 * source.c (find_and_open_source): Remove cast.
8817 2019-05-17 Tom Tromey <tromey@adacore.com>
8819 * annotate.c (annotate_source): Make "filename" const.
8820 * annotate.h (annotate_source): Use const.
8822 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8824 * disasm.c (set_disassembler_options): Send errors to stderr.
8826 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8828 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8829 (cli_interp_base::set_logging): Check debug_redirect.
8830 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8831 * cli/cli-logging.c (debug_redirect): Add static variable.
8832 (pop_output_files): Add default param.
8833 (handle_redirections): Print debug setting.
8834 (show_logging_command): Likewise.
8835 (_initialize_cli_logging): Add debugredirect command.
8836 * interps.c (current_interp_set_logging): Add debug_redirect
8838 * interps.h (set_logging): Add debug_redirect parameter.
8839 (current_interp_set_logging): Likewise.
8840 * mi/mi-common.h: Likewise.
8841 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8843 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8844 Tom Tromey <tromey@adacore.com>
8846 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8848 * cli/cli-interp.h (make_logging_output): Remove declaration.
8849 * cli/cli-logging.c (make_logging_output): Remove function.
8850 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8852 * ui-file.c (tee_file::tee_file): Remove bools.
8853 (tee_file::~tee_file): Remove deletes.
8854 * ui-file.h (tee_file): Remove bools.
8856 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8858 * mi/mi-cmds.h (mi_cmd_complete): New function.
8859 * mi/mi-main.c (mi_cmd_complete): Likewise.
8860 * mi/mi-cmds.c: Define new MI command -complete.
8861 * NEWS: Mention new -complete command.
8863 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8865 * completer.h (complete): New function.
8866 * completer.c (complete): Likewise.
8867 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8868 function defined in completer.h.
8870 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8872 * MAINTAINERS (Write After Approval): Add myself.
8874 2019-05-17 Tom de Vries <tdevries@suse.de>
8877 * dwarf2read.c (struct cu_partial_die_info): New struct.
8878 (find_partial_die): Return cu_partial_die_info.
8879 (partial_die_parent_scope, guess_partial_die_structure_name)
8880 (partial_die_info::fixup): Handle new return type of find_partial_die.
8882 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8884 PR breakpoints/24541
8885 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8886 "std::string", simplifying the algorithm.
8888 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8890 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8891 (stap_static_probe_ops::get_probes): Likewise.
8893 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8895 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8896 '-')" and "else if".
8897 (stap_parse_single_operand): Join checks for
8898 "gdbarch_stap_parse_special_token_p" and
8899 "gdbarch_stap_parse_special_token" in the same "if" statement.
8900 Invert check when verifying for operation on register
8903 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8905 * stap-probe.c (stap_get_opcode): Update comment.
8906 (stap_get_expected_argument_type): Likewise.
8907 (handle_stap_probe): Likewise.
8909 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8911 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8912 return type to 'bool'. Adjust comment. Use 'bool' when
8914 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8915 * stap-probe.c (stap_parse_argument_1): Likewise.
8916 (stap_is_operator): Likewise.
8917 (stap_is_generic_prefix): Likewise.
8918 (stap_is_register_prefix): Likewise.
8919 (stap_is_register_indirection_prefix): Likewise.
8920 (stap_is_integer_prefix): Likewise.
8921 (stap_generic_check_suffix): Likewise.
8922 (stap_check_integer_suffix): Likewise.
8923 (stap_check_register_suffix): Likewise.
8924 (stap_check_register_indirection_suffix): Likewise.
8925 (stap_parse_register_operand): Likewise.
8926 (stap_parse_single_operand): Likewise.
8927 (stap_parse_argument_1): Likewise.
8928 (stap_probe::get_argument_count): Likewise.
8929 (stap_is_operator): Likewise.
8931 2019-05-16 Tom Tromey <tromey@adacore.com>
8933 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8936 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8938 * linux-thread-db.c (try_thread_db_load_1): Change return type
8940 (try_thread_db_load): Likewise.
8941 (try_thread_db_load_from_pdir_1): Likewise.
8942 (try_thread_db_load_from_pdir): Likewise.
8943 (try_thread_db_load_from_sdir): Likewise.
8944 (try_thread_db_load_from_dir): Likewise.
8945 (thread_db_load_search): Likewise.
8946 (has_libpthread): Likewise.
8947 (thread_db_load): Likewise.
8949 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8951 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8952 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8953 NULL, and complain/return if that's the case.
8955 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8957 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8958 (advance, posn, abstract_read_memory): New functions.
8959 [struct mem_read_abstraction]: New struct.
8960 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8962 2019-05-14 Tom Tromey <tromey@adacore.com>
8964 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8965 value is not lval_memory.
8967 2019-05-14 Tom Tromey <tromey@adacore.com>
8969 * solib.c (info_sharedlibrary_command): Style the file name.
8971 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8973 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8974 (aarch64_vnv_type): Likewise.
8975 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8976 * common/tdesc.c: Likewise.
8977 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8978 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8979 * features/aarch64-fpu.xml: Add ieee half view.
8980 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8981 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8982 * gdbtypes.h (struct builtin_type): Likewise.
8983 (struct objfile_type): Likewise.
8985 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8987 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8989 * location.h (string_to_event_location): Likewise.
8991 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8995 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8997 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8998 New variable declaration.
8999 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9001 (print_one_breakpoint): Use ui_out::test_flags and new global
9002 variable to compute use_fixed_output.
9003 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9005 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9006 (mi_multi_location_breakpoint_output_fixed): Remove.
9007 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9009 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9010 fix_multi_location_breakpoint_output flag if version >= 3.
9011 * ui-out.h (enum ui_out_flag)
9012 <fix_multi_location_breakpoint_output>: New enumerator.
9014 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9016 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9018 2019-05-10 Tom Tromey <tromey@adacore.com>
9020 * ada-lang.c (catch_ada_completer): New function.
9021 (_initialize_ada_language): Use it.
9023 2019-05-10 Tom Tromey <tromey@adacore.com>
9025 * thread.c (print_thread_info): Make "requested_threads" const.
9026 * gdbthread.h (print_thread_info): Make "requested_threads"
9028 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9029 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9031 2019-05-08 Tom Tromey <tom@tromey.com>
9033 * gdbtypes.c (objfile_type_data): Change type.
9034 (objfile_type, _initialize_gdbtypes): Update.
9036 2019-05-08 Tom Tromey <tom@tromey.com>
9038 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9039 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9040 (_initialize_dwarf2_frame): Update.
9042 2019-05-08 Tom Tromey <tom@tromey.com>
9044 * objc-lang.c (objc_objfile_data): Change type.
9045 (find_methods): Update.
9046 (_initialize_objc_lang): Remove.
9048 2019-05-08 Tom Tromey <tom@tromey.com>
9050 * stabsread.c (rs6000_builtin_type_data): Change type.
9051 (rs6000_builtin_type, _initialize_stabsread): Update.
9053 2019-05-08 Tom Tromey <tom@tromey.com>
9055 * mips-tdep.c (mips_pdr_data): Remove.
9056 (_initialize_mips_tdep): Update.
9058 2019-05-08 Tom Tromey <tom@tromey.com>
9060 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9061 (hppa_init_objfile_priv_data, read_unwind_info)
9062 (find_unwind_entry, _initialize_hppa_tdep): Update.
9064 2019-05-08 Tom Tromey <tom@tromey.com>
9066 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9067 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9069 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9071 2019-05-08 Tom Tromey <tom@tromey.com>
9073 * mdebugread.c (basic_type_data): Change type.
9074 (basic_type, _initialize_mdebugread): Update.
9076 2019-05-08 Tom Tromey <tom@tromey.com>
9078 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9080 2019-05-08 Tom Tromey <tom@tromey.com>
9082 * nto-tdep.c (nto_inferior_data_reg): Change type.
9083 (nto_inferior_data): Update.
9084 (nto_inferior_data_cleanup, nto_new_inferior_data)
9085 (_initialize_nto_tdep): Remove.
9086 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9088 2019-05-08 Tom Tromey <tom@tromey.com>
9090 * ada-lang.c (struct ada_inferior_data): Add initializers.
9091 (ada_inferior_data): Change type.
9092 (ada_inferior_data_cleanup): Remove.
9093 (get_ada_inferior_data, ada_inferior_exit)
9094 (struct ada_pspace_data): Add initializers, destructor.
9095 (ada_pspace_data_handle): Change type.
9096 (get_ada_pspace_data): Update.
9097 (ada_pspace_data_cleanup): Remove.
9099 2019-05-08 Tom Tromey <tom@tromey.com>
9101 * coffread.c (struct coff_symfile_info): Add initializers.
9102 (coff_objfile_data_key): Move lower. Change type.
9103 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9105 (coff_free_info): Remove.
9107 2019-05-08 Tom Tromey <tom@tromey.com>
9109 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9110 (fbsd_pspace_data_handle): Move lower. Change type.
9111 (get_fbsd_pspace_data): Update.
9112 (fbsd_pspace_data_cleanup): Remove.
9113 (_initialize_fbsd_tdep): Update.
9115 2019-05-08 Tom Tromey <tom@tromey.com>
9117 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9118 (get_ada_tasks_pspace_data): Update.
9119 (ada_tasks_pspace_data_cleanup): Remove.
9120 (_initialize_tasks): Update.
9121 (ada_tasks_inferior_data_handle): Change type.
9122 (get_ada_tasks_inferior_data): Update.
9123 (ada_tasks_inferior_data_cleanup): Remove.
9124 (struct ada_tasks_pspace_data): Add initializers.
9126 2019-05-08 Tom Tromey <tom@tromey.com>
9128 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9129 * symfile-debug.c (debug_sym_get_probes): Change type.
9130 * stap-probe.c (handle_stap_probe):
9131 (stap_static_probe_ops::get_probes): Change type.
9132 * probe.h (class static_probe_ops) <get_probes>: Change type.
9133 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9134 (parse_probes_in_pspace): Update.
9135 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9137 (any_static_probe_ops::get_probes): Change type.
9138 * elfread.c (elfread_data): New typedef.
9139 (probe_key): Change type.
9140 (elf_get_probes): Likewise. Update.
9141 (probe_key_free): Remove.
9142 (_initialize_elfread): Update.
9143 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9145 (dtrace_process_dof_probe, dtrace_process_dof)
9146 (dtrace_static_probe_ops::get_probe): Change type.
9148 2019-05-08 Tom Tromey <tom@tromey.com>
9150 * xcoffread.c (struct xcoff_symfile_info): Rename from
9151 coff_symfile_info. Add initializers.
9152 (xcoff_objfile_data_key): Move lower. Change type.
9153 (XCOFF_DATA): Rewrite.
9154 (xcoff_free_info): Remove.
9155 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9156 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9157 (xcoff_initial_scan): Update.
9159 2019-05-08 Tom Tromey <tom@tromey.com>
9161 * solib-svr4.c (struct svr4_info): Add initializers and
9163 <probes_table>: Now an htab_up.
9164 (solib_svr4_pspace_data): Change type.
9165 (free_probes_table): Simplify.
9166 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9167 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9168 (probes_table_remove_objfile_probes, register_solib_event_probe)
9169 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9170 (_initialize_svr4_solib): Update.
9172 2019-05-08 Tom Tromey <tom@tromey.com>
9174 * remote.c (remote_pspace_data): Change type.
9175 (remote_pspace_data_cleanup): Remove.
9176 (get_remote_exec_file, set_pspace_remote_exec_file)
9177 (_initialize_remote): Update.
9179 2019-05-08 Tom Tromey <tom@tromey.com>
9181 * breakpoint.c (breakpoint_objfile_key): Change type.
9182 (get_breakpoint_objfile_data): Update.
9183 (free_breakpoint_objfile_data): Remove.
9184 (_initialize_breakpoint): Update.
9186 2019-05-08 Tom Tromey <tom@tromey.com>
9188 * linux-tdep.c (struct linux_info): Add initializers.
9189 (linux_inferior_data): Move. Change type.
9190 (invalidate_linux_cache_inf): Update.
9191 (linux_inferior_data_cleanup): Remove.
9192 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9194 2019-05-08 Tom Tromey <tom@tromey.com>
9196 * auxv.c (auxv_inferior_data): Move. Change type.
9197 (auxv_inferior_data_cleanup): Remove.
9198 (invalidate_auxv_cache_inf): Rewrite.
9199 (get_auxv_inferior_data, _initialize_auxv): Update.
9201 2019-05-08 Tom Tromey <tom@tromey.com>
9203 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9204 (symfile_debug_objfile_data_key): Change type.
9205 (symfile_debug_installed, debug_qf_has_symbols)
9206 (debug_qf_find_last_source_symtab)
9207 (debug_qf_forget_cached_source_info)
9208 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9209 (debug_qf_print_stats, debug_qf_dump)
9210 (debug_qf_expand_symtabs_for_function)
9211 (debug_qf_expand_all_symtabs)
9212 (debug_qf_expand_symtabs_with_fullname)
9213 (debug_qf_map_matching_symbols)
9214 (debug_qf_expand_symtabs_matching)
9215 (debug_qf_find_pc_sect_compunit_symtab)
9216 (debug_qf_map_symbol_filenames)
9217 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9218 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9219 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9220 (debug_sym_read_linetable, debug_sym_relocate): Update.
9221 (symfile_debug_free_objfile): Remove.
9222 (install_symfile_debug_logging, _initialize_symfile_debug):
9225 2019-05-08 Tom Tromey <tom@tromey.com>
9227 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9228 allocate_on_obstack.
9229 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9230 (get_dwarf2_per_objfile): Update.
9231 (set_dwarf2_per_objfile): Remove.
9232 (dwarf2_has_info, dwarf2_get_section_info): Update.
9233 (dwarf2_free_objfile): Remove.
9234 (_initialize_dwarf2_read): Update.
9236 2019-05-08 Tom Tromey <tom@tromey.com>
9238 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9240 <unsupported_script_warning_printed,
9241 script_not_found_warning_printed>: Now bool.
9242 (auto_load_pspace_data): Change type.
9243 (~auto_load_pspace_info): Rename from
9244 auto_load_pspace_data_cleanup.
9245 (get_auto_load_pspace_data, init_loaded_scripts_info)
9246 (clear_section_scripts, maybe_print_unsupported_script_warning)
9247 (maybe_print_script_not_found_warning, _initialize_auto_load):
9250 2019-05-08 Tom Tromey <tom@tromey.com>
9252 * objfiles.c (objfile_pspace_info): Add destructor and
9254 (objfiles_pspace_data): Change type.
9255 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9256 (get_objfile_pspace_data): Update.
9257 (objfiles_bfd_data): Change type.
9258 (get_objfile_bfd_data): Update.
9259 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9261 2019-05-08 Tom Tromey <tom@tromey.com>
9263 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9265 (get_catch_syscall_inferior_data): Update.
9266 (catch_syscall_inferior_data_cleanup): Remove.
9267 (_initialize_break_catch_syscall): Update.
9269 2019-05-08 Tom Tromey <tom@tromey.com>
9271 * inflow.c (struct terminal_info): Add destructor and
9273 (inflow_inferior_data): Change type.
9274 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9275 (get_inflow_inferior_data, inflow_inferior_exit)
9276 (swap_terminal_info, _initialize_inflow): Update.
9278 2019-05-08 Tom Tromey <tom@tromey.com>
9280 * target-dcache.c (target_dcache_cleanup): Remove.
9281 (target_dcache_aspace_key): Change type.
9282 (target_dcache_init_p, target_dcache_invalidate)
9283 (target_dcache_get, target_dcache_get_or_init)
9284 (_initialize_target_dcache): Update.
9285 * dcache.h (struct dcache_deleter): New.
9287 2019-05-08 Tom Tromey <tom@tromey.com>
9289 * symtab.c (struct symbol_cache): Add destructor and
9291 (symbol_cache_key): Move. Change type.
9292 (make_symbol_cache, free_symbol_cache): Remove.
9293 (get_symbol_cache): Update.
9294 (symbol_cache_cleanup): Remove.
9295 (ALL_PSPACES, symbol_cache_flush)
9296 (maintenance_print_symbol_cache)
9297 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9300 2019-05-08 Tom Tromey <tom@tromey.com>
9302 * symtab.c (struct main_info): Add destructor and initializers.
9303 (main_progspace_key): Move. Change type.
9304 (get_main_info): Update.
9305 (main_info_cleanup): Remove.
9306 (_initialize_symtab): Update.
9308 2019-05-08 Tom Tromey <tom@tromey.com>
9310 * registry.h (DECLARE_REGISTRY): Define the _key class.
9312 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9314 * NEWS: Merge two 'New commands' sections.
9316 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9318 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9319 parameter and use Ada language definition instead.
9320 (ada_val_print_ptr): Remove unused language parameter.
9321 (ada_val_print_num): Remove language parameter and use Ada language
9323 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9325 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9326 parameter and use Ada language definition instead.
9327 (ada_val_print_1): Update all ada_val_print_xxx calls.
9328 Remove language parameter.
9329 (ada_val_print): Update ada_val_print_1 call.
9331 2019-05-08 Tom Tromey <tromey@adacore.com>
9333 * remote.c (remote_hw_watchpoint_limit)
9334 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9337 2019-05-08 Tom Tromey <tromey@adacore.com>
9339 * maint.c (_initialize_maint_cmds): Move initialization code to
9341 (watchdog, show_watchdog): Move to remote.c.
9342 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9344 (_initialize_remote): Move initialization code from maint.c.
9345 * defs.h (watchdog): Don't declare.
9347 2019-05-08 Tom Tromey <tromey@adacore.com>
9349 * tui/tui-interp.c: Include main.h.
9350 * interps.c: Include main.h.
9351 * main.h (interpreter_p): Declare.
9352 * defs.h (interpreter_p): Don't declare.
9354 2019-05-08 Tom Tromey <tromey@adacore.com>
9356 * dwarf2loc.c: Include dwarf2read.h.
9357 * defs.h (read_unsigned_leb128): Don't declare.
9358 * dwarf2read.h (read_unsigned_leb128): Declare.
9360 2019-05-08 Tom Tromey <tromey@adacore.com>
9362 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9365 2019-05-08 Tom Tromey <tromey@adacore.com>
9367 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9368 when no wrap column is set.
9370 2019-05-08 Tom Tromey <tromey@adacore.com>
9372 * c-lang.c (c_get_string): Handle non-C-style arrays.
9374 2019-05-08 Tom Tromey <tromey@adacore.com>
9376 * typeprint.c (print_offset_data::update): Print the bit offset,
9377 not the number of bits remaining.
9379 2019-05-08 Tom Tromey <tromey@adacore.com>
9381 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9382 padding at end of comment.
9384 2019-05-08 Tom Tromey <tromey@adacore.com>
9386 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9389 2019-05-06 Tom Tromey <tom@tromey.com>
9391 * common/scoped_mmap.c: Include common-defs.h.
9392 * common/scoped_mmap.h: Don't include config.h.
9394 2019-05-04 Tom Tromey <tom@tromey.com>
9396 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9397 (struct aarch64_call_info): Add initializers.
9398 <si>: Now a std::vector.
9399 (pass_on_stack, aarch64_push_dummy_call): Update.
9401 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9402 Tom Tromey <tom@tromey.com>
9404 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9405 (ppc_threads): Now a std::vector. Now static.
9406 (hwdebug_find_thread_points_by_tid)
9407 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9410 2019-05-04 Tom Tromey <tom@tromey.com>
9412 * arc-tdep.c (arc_tdesc_init): Return bool.
9414 2019-05-04 Tom Tromey <tom@tromey.com>
9416 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9417 Use gdb_assert_not_reached.
9419 2019-05-04 Tom Tromey <tom@tromey.com>
9421 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9424 2019-05-04 Tom Tromey <tom@tromey.com>
9426 * arc-tdep.c (arc_tdesc_init): Use bool.
9428 2019-05-04 Tom Tromey <tom@tromey.com>
9430 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9432 2019-05-04 Tom Tromey <tom@tromey.com>
9434 * cli/cli-cmds.c (valid_command_p): Return bool.
9436 2019-05-04 Tom Tromey <tom@tromey.com>
9438 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9439 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9441 2019-05-04 Raul Tambre <raul@tambre.ee>
9443 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9444 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9445 operator for comparison.
9447 2019-05-04 Tom Tromey <tom@tromey.com>
9449 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9450 (lookup_partial_symbol, print_partial_symbols)
9451 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9452 (psymbol_compare): Update.
9453 (add_psymbol_to_bcache): Clear the entire psymbol.
9454 (maintenance_check_psymtabs): Update.
9455 * psympriv.h (struct partial_symbol): Don't derive from
9456 general_symbol_info.
9457 <obj_section, unrelocated_address, address,
9458 set_unrelocated_address>: Update.
9459 <ginfo>: New member.
9460 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9461 (debug_names::write_psymbols): Update.
9463 2019-05-04 Tom de Vries <tdevries@suse.de>
9465 * contrib/cc-with-tweaks.sh: Support -n arg.
9467 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9469 * corelow.c (core_target::detach): Ensure frame cache and
9470 register caches are cleared.
9471 inferior.c (exit_inferior_1): Likewise.
9473 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9474 Tom Tromey <tom@tromey.com>
9476 * dictionary.c (collate_pending_symbols_by_language): Remove
9477 "struct" from foreach.
9478 * symtab.c (lookup_global_symbol_from_objfile)
9479 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9481 * ser-tcp.c (net_open): Remove "struct" from foreach.
9482 * objfiles.c (objfile_relocate, objfile_rebase)
9483 (objfile_has_symbols): Remove "struct" from foreach.
9484 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9486 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9488 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9489 "struct" from foreach.
9490 * ada-lang.c (create_excep_cond_exprs)
9491 (ada_exception_catchpoint_cond_string): Remove "struct" from
9494 2019-05-03 Tom Tromey <tromey@adacore.com>
9496 * ada-exp.y (convert_char_literal): Check suffix of each
9499 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9502 * ada-exp.y (yywrap): Don't define.
9503 * ada-lex.l (%option): Add noyywrap
9506 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9508 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9509 _WIN32_WINNT to the XP level, unless already defined to a higher
9512 * unittests/parse-connection-spec-selftests.c:
9514 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9517 * symfile.c (find_separate_debug_file): Remove colon from the
9518 drive spec of DOS/Windows file names of the target, so that the
9519 file name produced from DEBUGDIR and the target's directory will
9520 be valid on DOS/Windows systems.
9522 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9524 * rust-lang.c (val_print_struct): Handle printing structures
9527 2019-05-02 Tom Tromey <tromey@adacore.com>
9529 * valarith.c (_initialize_valarith): Remove.
9531 2019-05-01 Tom Tromey <tromey@adacore.com>
9533 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9536 2019-05-01 Tom Tromey <tromey@adacore.com>
9538 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9539 for big-endian copies.
9541 2019-04-30 Ali Tamur <tamur@google.com>
9542 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9543 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9544 (read_3_bytes): New function.
9546 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9548 * windows-nat.c (main_thread_id): Delete.
9549 (handle_output_debug_string): Replace main_thread_id by
9550 current_event.dwThreadId.
9551 (fake_create_process): Likewise.
9552 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9553 Do not set main_thread_id.
9554 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9555 current_event.dwThreadId.
9556 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9558 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9560 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9561 Use current_event.dwThreadId instead of main_thread_id.
9563 2019-04-30 Tom Tromey <tromey@adacore.com>
9565 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9566 (create_excep_cond_exprs): Iterate over program spaces.
9567 (ada_exception_catchpoint_cond_string): Examine all minimal
9568 symbols for exception types.
9570 2019-04-30 Tom Tromey <tromey@adacore.com>
9573 * dwarf2read.c (process_structure_scope): Handle case where type
9574 has template parameters but no symbol was created.
9576 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9577 Chris January <chris.january@arm.com>
9579 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9581 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9583 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9585 * f-typeprint.c (f_print_type): Update rules for printing
9587 (f_type_print_varspec_suffix): Likewise.
9589 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9590 Chris January <chris.january@arm.com>
9592 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9595 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9597 * f-lang.c (build_fortran_types): Change name of void type to
9599 * f-typeprint.c (f_type_print_base): Print the name of the void
9600 type, rather than a fixed string.
9601 * f-valprint.c (f_decorations): Use lower case void string.
9603 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9604 Chris January <chris.january@arm.com>
9606 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9609 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9610 Chris January <chris.january@arm.com>
9611 David Lecomber <david.lecomber@arm.com>
9613 * f-exp.y (BINOP_INTRINSIC): New token.
9614 (exp): New parser rule handling BINOP_INTRINSIC.
9615 (f77_keywords): Add new builtin procedures.
9616 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9617 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9618 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9619 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9620 (print_unop_subexp_f): New function.
9621 (print_binop_subexp_f): New function.
9622 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9623 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9624 (dump_subexp_body_f): Likewise.
9625 (operator_check_f): Likewise.
9626 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9627 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9629 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9631 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9633 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9634 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9635 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9636 (operator_length_f): New fuction.
9637 (print_subexp_f): New function.
9638 (op_name_f): New function.
9639 (dump_subexp_body_f): New function.
9640 (operator_check_f): New function.
9641 (exp_descriptor_f): Replace standard expression handling functions
9643 * gdb/fortran-operator.def: New file.
9644 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9645 * gdb/std-operator.def: Remove UNOP_KIND.
9647 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9649 * std-operator.def: Remove unbalanced, stray double quote
9652 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9653 Chris January <chris.january@arm.com>
9654 Daniel Everett <daniel.everett@arm.com>
9655 Nick Forrington <nick.forrington@arm.com>
9656 Richard Bunt <richard.bunt@arm.com>
9658 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9659 of depth when printing anonymous structs or unions.
9660 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9661 Don't print either the top-level value, or the children if the
9662 max-depth is exceeded.
9663 (ppscm_print_children): When printing the key of a map, allow one
9664 extra level of depth.
9665 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9666 print either the top-level value, or the children if the max-depth
9668 (print_children): When printing the key of a map, allow one extra
9670 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9671 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9672 (user_print_options): Initialise max_depth field.
9673 (val_print_scalar_or_string_type_p): New function.
9674 (val_print): Check to see if the max depth has been reached.
9675 (val_print_check_max_depth): Define new function.
9676 (show_print_max_depth): New function.
9677 (_initialize_valprint): Add 'print max-depth' option.
9678 * valprint.h (struct value_print_options) <max_depth>: New field.
9679 (val_print_check_max_depth): Declare new function.
9680 * NEWS: Document new feature.
9682 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9684 * ada-lang.c (ada_language_defn): Initialise new field.
9685 * c-lang.c (c_is_string_type_p): New function.
9686 (c_language_defn): Initialise new field.
9687 (cplus_language_defn): Initialise new field.
9688 (asm_language_defn): Initialise new field.
9689 (minimal_language_defn): Initialise new field.
9690 * c-lang.h (c_is_string_type_p): Declare new function.
9691 * d-lang.c (d_language_defn): Initialise new field.
9692 * f-lang.c (f_is_string_type_p): New function.
9693 (f_language_defn): Initialise new field.
9694 * go-lang.c (go_is_string_type_p): New function.
9695 (go_language_defn): Initialise new field.
9696 * language.c (default_is_string_type_p): New function.
9697 (unknown_language_defn): Initialise new field.
9698 (auto_language_defn): Initialise new field.
9699 * language.h (struct language_defn) <la_is_string_type_p>: New
9701 (default_is_string_type_p): Declare new function.
9702 * m2-lang.c (m2_language_defn): Initialise new field.
9703 * objc-lang.c (objc_language_defn): Initialise new field.
9704 * opencl-lang.c (opencl_language_defn): Initialise new field.
9705 * p-lang.c (pascal_is_string_type_p): New function.
9706 (pascal_language_defn): Initialise new field.
9707 * rust-lang.c (rust_is_string_type_p): New function.
9708 (rust_language_defn): Initialise new field.
9710 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9712 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9714 * ada-lang.c (ada_language_defn): Initialise new field.
9715 * c-lang.c (c_language_defn): Likewise.
9716 (cplus_language_defn): Likewise.
9717 (asm_language_defn): Likewise.
9718 (minimal_language_defn): Likewise.
9719 * d-lang.c (d_language_defn): Likewise.
9720 * f-lang.c (f_language_defn): Likewise.
9721 * go-lang.c (go_language_defn): Likewise.
9722 * language.c (unknown_language_defn): Likewise.
9723 (auto_language_defn): Likewise.
9724 * m2-lang.c (m2_language_defn): Likewise.
9725 * objc-lang.c (objc_language_defn): Likewise.
9726 * opencl-lang.c (opencl_language_defn): Likewise.
9727 * p-lang.c (pascal_language_defn): Likewise.
9728 * rust-lang.c (rust_language_defn): Likewise.
9730 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9732 * ada-lang.c (ada_is_character_type): Change return type to bool.
9733 (ada_is_string_type): Likewise.
9734 * ada-lang.h (ada_is_character_type): Update declaration
9735 (ada_is_string_type): Likewise.
9737 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9739 Support style in 'frame|thread apply'
9741 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9742 * record.c (record_start, record_stop): Update callers of
9743 execute_command_to_string with false.
9744 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9745 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9747 (class string_file): New constructor with term_out parameter.
9748 Override methods term_out and can_emit_style_escape. New member
9750 (class stdio_file): Override can_emit_style_escape.
9751 (class tee_file): Override term_out and can_emit_style_escape.
9752 * utils.h (can_emit_style_escape): Remove.
9753 * utils.c (can_emit_style_escape): Likewise.
9754 Update all callers of can_emit_style_escape (SOMESTREAM) to
9755 SOMESTREAM->can_emit_style_escape.
9756 * source-cache.c (source_cache::get_source_lines): Likewise.
9757 * stack.c (frame_apply_command_count): Call execute_command_to_string
9758 passing the term_out characteristic of the current gdb_stdout.
9759 * thread.c (thr_try_catch_cmd): Likewise.
9760 * top.c (execute_command_to_string): pass term_out parameter
9761 to construct the string_file for the command output.
9762 * ui-file.c (term_cli_styling): New function (most code moved
9763 from utils.c can_emit_style_escape).
9764 (string_file::string_file, string_file::can_emit_style_escape,
9765 stdio_file::can_emit_style_escape, tee_file::term_out,
9766 tee_file::can_emit_style_escape): New functions.
9768 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9770 * NEWS: Mention the new set|show may-call-functions.
9771 * infcall.c (may_call_functions_p): New variable.
9772 (show_may_call_functions_p): New function.
9773 (call_function_by_hand_dummy): Throws an error if not
9775 (_initialize_infcall): Call add_setshow_boolean_cmd for
9778 2019-04-25 Keith Seitz <keiths@redhat.com>
9781 * cp-support.c (inspect_type): Don't attempt substitutions
9782 of symbol with the same name.
9784 2019-04-25 Tom Tromey <tromey@adacore.com>
9787 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9790 2019-04-25 Tom Tromey <tromey@adacore.com>
9792 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9794 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9795 (gdb_xml_parser::parse): Use std::move.
9796 * python/python-internal.h (gdbpy_convert_exception): Take a const
9798 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9800 * python/py-utils.c (gdbpy_convert_exception): Take a const
9802 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9804 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9806 * mi/mi-main.c (mi_print_exception): Take a const reference.
9807 * main.c (handle_command_errors): Take a const reference.
9808 * linespec.c (parse_linespec): Use std::move.
9809 * infcall.c (run_inferior_call): Use std::move.
9810 (call_function_by_hand_dummy): Use std::move.
9811 * exec.c (try_open_exec_file): Use std::move.
9812 * exceptions.h (exception_print, exception_fprintf)
9813 (exception_print_same): Update.
9814 * exceptions.c (print_exception, exception_print)
9815 (exception_fprintf, exception_print_same): Change parameters to
9817 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9818 * common/new-op.c: Use std::move.
9819 * common/common-exceptions.h (struct gdb_exception): Add move
9821 (struct gdb_exception_error, struct gdb_exception_quit, struct
9822 gdb_quit_bad_alloc): Change constructor to move constructor.
9823 (throw_exception): Change parameter to rvalue reference.
9824 * common/common-exceptions.c (throw_exception): Take rvalue
9826 * cli/cli-interp.c (safe_execute_command): Use std::move.
9827 * breakpoint.c (insert_bp_location, location_to_sals): Use
9830 2019-04-25 Tom Tromey <tromey@adacore.com>
9832 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9833 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9834 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9835 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9836 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9837 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9838 guile/scm-value.c: Use unpack.
9839 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9840 gdbscm_gdb_exception.
9841 (gdbscm_throw_gdb_exception): Likewise.
9842 (struct gdbscm_gdb_exception): New.
9843 (unpack): New function.
9844 (gdbscm_wrap): Use unpack.
9846 2019-04-25 Tom Tromey <tromey@adacore.com>
9848 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9849 (gdb_rl_callback_handler): Use std::move.
9850 * common/common-exceptions.h (struct gdb_exception): Add move
9851 assignment operator.
9852 (throw_exception_sjlj): Change "exception" to const reference.
9853 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9854 (throw_exception_sjlj): Change "exception" to const reference.
9856 2019-04-25 Tom Tromey <tromey@adacore.com>
9858 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9859 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9860 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9862 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9864 * mi/mi-interp.c (mi_interp::exec): Update.
9865 * linespec.c (parse_linespec): Update.
9866 * infcall.c (run_inferior_call): Update.
9867 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9868 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9869 (gdbscm_lookup_global_symbol): Update.
9870 * guile/scm-param.c (gdbscm_parameter_value): Update.
9871 * guile/scm-frame.c (gdbscm_frame_read_register)
9872 (gdbscm_frame_read_var): Update.
9873 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9874 * exec.c (try_open_exec_file): Update.
9875 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9876 (gdb_rl_callback_handler): Update.
9877 * common/common-exceptions.h (exception_none): Don't declare.
9878 * common/common-exceptions.c (exception_none): Don't define.
9879 (struct catcher) <exception>: Update.
9880 * cli/cli-interp.c (safe_execute_command): Update.
9881 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9883 2019-04-25 Ali Tamur <tamur@google.com>
9885 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9886 (read_attribute_value): Likewise.
9887 (dwarf2_read_addr_index): Update comment.
9888 (read_str_index): Add DW_FORM_strx.
9889 (dwarf2_string_attr): Likewise.
9890 (dwarf2_const_value_attr): Likewise.
9891 (dump_die_shallow): Likewise.
9892 (dwarf2_fetch_constant_bytes): Likewise.
9893 (skip_form_bytes): Likewise.
9894 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9896 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9900 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9901 OFFSET. Verify if current mapping contains an ELF header.
9902 (linux_find_memory_regions_full): Adjust call to
9905 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9906 Kang Li <kanglictf@gmail.com>
9910 * dwarf2-frame.c (read_initial_length): Be consistent about using
9911 unsigned representation of length.
9912 (decode_frame_entry_1): Likewise. Check for wraparound of
9913 end pointer as well as buffer overflow.
9915 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9917 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9920 2019-04-24 Tom Tromey <tromey@adacore.com>
9922 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9924 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9926 * s12z-tdep.c (s12z_unwind_pc): Delete.
9927 (s12z_unwind_sp): Delete.
9928 (s12z_gdbarch_init): Don't register deleted functions with
9931 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9933 * rl78-tdep.c (rl78_unwind_sp): Delete.
9934 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9936 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9938 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9939 (xstormy16_unwind_pc): Delete.
9940 (xstormy16_dummy_id): Delete.
9941 (xstormy16_gdbarch_init): Don't register deleted functions with
9944 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9946 * vax-tdep.c (vax_unwind_pc): Delete.
9947 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9949 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9951 * v850-tdep.c (v850_unwind_sp): Delete.
9952 (v850_unwind_pc): Delete.
9953 (v850_dummy_id): Delete.
9954 (v850_gdbarch_init): Don't register deleted functions with
9957 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9959 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9960 (tilegx_unwind_pc): Delete.
9961 (tilegx_unwind_dummy_id): Delete.
9962 (tilegx_gdbarch_init): Don't register deleted functions with
9965 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9967 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9968 (tic6x_dummy_id): Delete.
9969 (tic6x_gdbarch_init): Don't register deleted functions with
9972 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9974 * sparc-tdep.c (sparc_unwind_pc): Delete.
9975 (sparc32_gdbarch_init): Don't register deleted function with
9978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9980 * sh-tdep.c (sh_unwind_sp): Delete.
9981 (sh_unwind_pc): Delete.
9982 (sh_dummy_id): Delete.
9983 (sh_gdbarch_init): Don't register deleted functions with
9986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9988 * score-tdep.c (score_unwind_sp): Delete.
9989 (score_unwind_pc): Delete.
9990 (score_dummy_id): Delete.
9991 (score_gdbarch_init): Don't register deleted functions with
9994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9996 * rx-tdep.c (rx_unwind_pc): Delete.
9997 (rx_unwind_sp): Delete.
9998 (rx_dummy_id): Delete.
9999 (rx_gdbarch_init): Don't register deleted functions with
10000 gdbarch. Update comment.
10002 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10004 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10005 (rs6000_dummy_id): Delete.
10006 (rs6000_gdbarch_init): Don't register deleted functions with
10009 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10011 * or1k-tdep.c (or1k_dummy_id): Delete.
10012 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10014 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10016 * nios2-tdep.c (nios2_dummy_id): Delete.
10017 (nios2_unwind_sp): Delete.
10018 (nios2_gdbarch_init): Don't register deleted functions with
10021 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10023 * nds32-tdep.c (nds32_dummy_id): Delete.
10024 (nds32_unwind_pc): Delete.
10025 (nds32_unwind_sp): Delete.
10026 (nds32_gdbarch_init): Don't register deleted functions with
10029 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10031 * msp430-tdep.c (msp430_unwind_pc): Delete.
10032 (msp430_unwind_sp): Delete.
10033 (msp430_dummy_id): Delete.
10034 (msp430_gdbarch_init): Don't register deleted functions with
10037 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10039 * moxie-tdep.c (moxie_unwind_sp): Delete.
10040 (moxie_unwind_pc): Delete.
10041 (moxie_dummy_id): Delete.
10042 (moxie_gdbarch_init): Don't register deleted functions with
10045 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10047 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10048 (mn10300_unwind_pc): Delete.
10049 (mn10300_unwind_sp): Delete.
10050 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10052 (mn10300_frame_unwind_init): Don't register deleted functions with
10055 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10057 * mep-tdep.c (mep_unwind_pc): Delete.
10058 (mep_unwind_sp): Delete.
10059 (mep_dummy_id): Delete.
10060 (mep_gdbarch_init): Don't register deleted functions with
10063 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10065 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10066 (m68hc11_unwind_sp): Delete.
10067 (m68hc11_gdbarch_init): Don't register deleted functions with
10070 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10072 * m32r-tdep.c (m32r_unwind_sp): Delete.
10073 (m32r_unwind_pc): Delete.
10074 (m32r_dummy_id): Delete.
10075 (m32r_gdbarch_init): Don't register deleted functions with
10078 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10080 * m32c-tdep.c (m32c_unwind_pc): Delete.
10081 (m32c_unwind_sp): Delete.
10082 (m32c_dummy_id): Delete.
10083 (m32c_gdbarch_init): Don't register deleted functions with
10086 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10088 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10089 (lm32_unwind_pc): Delete.
10090 (lm32_dummy_id): Delete.
10091 (lm32_gdbarch_init): Don't register deleted functions with
10094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10096 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10097 (iq2000_unwind_pc): Delete.
10098 (iq2000_dummy_id): Delete.
10099 (iq2000_gdbarch_init): Don't register deleted functions with
10102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10104 * nds32-tdep.c (nds32_type_align): Delete.
10105 (nds32_push_dummy_call): Use type_align instead.
10107 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10109 * arm-tdep.c (arm_type_align): Only handle vector override case.
10110 (arm_push_dummy_call): Use type_align.
10111 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10113 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10115 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10117 (pass_on_stack): Use type_align.
10118 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10121 2019-04-23 Tom Tromey <tromey@adacore.com>
10123 * dwarf2read.c (line_header::file_name_at): Remove unused
10126 2019-04-23 Tom de Vries <tdevries@suse.de>
10129 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10133 2019-03-27 Ali Tamur <tamur@google.com>
10135 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10136 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10137 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10138 (dwarf_expr_context::get_addr_index): Likewise
10139 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10140 (symbol_needs_eval_context::get_addr_index): Likewise
10141 (disassemble_dwarf_expression): Add DW_OP_addrx
10142 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10143 (read_cutu_die_from_dwo): Update comment
10144 (skip_one_die): Add DW_FORM_addrx
10145 (read_attribute_value): Likewise
10146 (var_decode_location): Add DW_OP_addrx
10147 (dwarf2_const_value_attr): Add DW_FORM_addrx
10148 (dump_die_shallow): Likewise
10149 (dwarf2_fetch_constant_bytes): Likewise
10150 (decode_locdesc): Add DW_OP_addrx
10151 (skip_form_bytes): Add DW_FORM_addrx
10153 2019-04-22 Ali Tamur <tamur@google.com>
10155 * MAINTAINERS (Write After Approval): Add self.
10157 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10159 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10160 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10161 (open_symbol_file_object): Likewise.
10162 (svr4_default_sos): Add info parameter.
10163 (svr4_read_so_list): Likewise.
10164 (svr4_current_sos_direct): Adjust functions calls to pass down
10166 (svr4_current_sos_1): Add info parameter.
10167 (svr4_current_sos): Call get_svr4_info, pass info down to
10168 svr4_current_sos_1.
10169 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10171 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10173 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10175 (probes_table_remove_objfile_probes): Likewise.
10176 (register_solib_event_probe): Add info parameter.
10177 (solist_update_incremental): Pass info parameter down to
10179 (disable_probes_interface): Add info parameter.
10180 (svr4_handle_solib_event): Pass current_program_space to
10181 get_svr4_info. Adjust disable_probes_interface cleanup.
10182 (svr4_create_probe_breakpoints): Add info parameter, pass it
10183 down to register_solib_event_probe.
10184 (svr4_create_solib_event_breakpoints): Add info parameter,
10185 pass it down to svr4_create_probe_breakpoints.
10186 (enable_break): Pass info down to
10187 svr4_create_solib_event_breakpoints.
10188 (svr4_solib_create_inferior_hook): Pass current_program_space to
10190 (svr4_clear_solib): Likewise.
10192 2019-04-22 Pedro Alves <palves@redhat.com>
10194 * solib-svr4.c (svr4_free_objfile_observer): New.
10195 (probe_and_action::objfile): New field.
10196 (probes_table_htab_remove_objfile_probes)
10197 (probes_table_remove_objfile_probes): New functions.
10198 (register_solib_event_probe): Add 'objfile' parameter. Store it
10199 in the new probe_and_action. Don't store the probe in 'lookup'.
10200 (svr4_create_probe_breakpoints): Pass objfile to
10201 register_solib_event_probe.
10202 (_initialize_svr4_solib): Register a free_objfile observer.
10204 2019-04-19 Tom Tromey <tom@tromey.com>
10206 * common/queue.h: Remove.
10208 2019-04-19 Tom Tromey <tom@tromey.com>
10210 * event-loop.c: Don't include "common/queue.h".
10212 2019-04-19 Tom Tromey <tom@tromey.com>
10214 * remote.c (remote_target): Use delete.
10215 * remote-notif.h: Include <list>, not "common/queue.h".
10216 (notif_client_p): Remove typedef.
10217 (remote_notif_state): Add constructor, destructor, initializer.
10218 <notif_queue>: Now a std::list.
10219 (remote_notif_state_xfree): Don't declare.
10220 * remote-notif.c (remote_notif_process, handle_notification)
10221 (remote_notif_state_allocate): Update.
10222 (~remote_notif_state): Rename from remote_notif_state_xfree.
10224 2019-04-19 Tom Tromey <tom@tromey.com>
10226 * symfile.c (reread_symbols): Update.
10227 * objfiles.c (objfile_register_static_link)
10228 (objfile_lookup_static_link): Update
10229 (~objfile) Don't delete static_links.
10230 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10232 2019-04-19 Tom Tromey <tom@tromey.com>
10234 * type-stack.h (struct type_stack) <insert>: Constify string.
10235 * type-stack.c (type_stack::insert): Constify string.
10236 * gdbtypes.h (lookup_template_type): Update.
10237 (address_space_name_to_int): Update.
10238 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10240 (lookup_template_type): Make name const.
10241 * c-exp.y: Update rules.
10242 (lex_one_token, classify_name, classify_inner_name)
10243 (c_print_token): Update.
10244 * p-exp.y: Update rules.
10246 * f-exp.y: Update rules.
10248 * d-exp.y: Update rules.
10249 (lex_one_token, classify_name, classify_inner_name): Update.
10250 * parse.c (write_dollar_variable, copy_name): Return std::string.
10251 * parser-defs.h (copy_name): Change return type.
10252 * m2-exp.y: Update rules.
10254 * go-exp.y (lex_one_token): Update.
10256 (classify_unsafe_function, classify_packaged_name)
10257 (classify_name, yylex): Update.
10259 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10261 * configure.ac: add --enable-source-highlight switch.
10262 * configure: Regenerate.
10263 * top.c (print_gdb_version): plumb --enable-source-highlight
10264 status to "show configuration".
10266 2019-04-19 Tom Tromey <tromey@adacore.com>
10268 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10270 (empty_record, ada_template_to_fixed_record_type_1)
10271 (template_to_static_fixed_type)
10272 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10273 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10274 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10277 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10280 * source.c (print_source_lines_base): Advance "iter" when a
10281 control character is seen.
10283 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10285 * inferior.h (struct infcall_suspend_state_deleter):
10286 Catch exception in destructor to avoid crash.
10288 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10290 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10291 close to the add_com "shell".
10293 2019-04-18 Tom Tromey <tromey@adacore.com>
10295 * process-stratum-target.h (class process_stratum_target)
10296 <stratum>: Add "final".
10298 2019-04-17 Tom Tromey <tromey@adacore.com>
10300 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10301 against nullptr before use.
10303 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10305 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10307 2019-04-17 Jim Wilson <jimw@sifive.com>
10308 Andrew Burgess <andrew.burgess@embecosm.com>
10310 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10311 code read might fail, assume 4-byte breakpoint in that case.
10313 2019-04-15 Leszek Swirski <leszeks@google.com>
10315 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10316 rather than a hand-rolled POD check when checking for forced MEMORY
10319 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10321 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10322 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10324 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10325 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10326 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10329 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10331 * aarch64-linux-nat.c
10332 (aarch64_linux_nat_target::thread_architecture): Add override.
10333 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10336 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10338 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10340 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10342 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10343 target types of size 96-bits, add some additional comments, and
10344 check that the builtin type we found was the correct size.
10346 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10348 * utils.c (prompt_for_continue): Don't restore the styling at the
10349 end, as applied_style has the wrong value. This fixes styling in
10350 long lists of file names that are interrupted by the "Continue?"
10353 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10355 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10356 * c-lang.c (c_language_defn): Likewise.
10357 (cplus_language_defn): Likewise.
10358 (asm_language_defn): Likewise.
10359 (minimal_language_defn): Likewise.
10360 * d-lang.c (d_language_defn): Likewise.
10361 * f-lang.c (f_language_defn): Likewise.
10362 * go-lang.c (go_language_defn): Likewise.
10363 * language.c (unknown_language_defn): Likewise.
10364 (auto_language_defn): Likewise.
10365 * language.h (struct language_defn): Remove la_magic field.
10366 (LANG_MAGIC): Delete.
10367 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10368 * objc-lang.c (objc_language_defn): Likewise.
10369 * opencl-lang.c (opencl_language_defn): Likewise.
10370 * p-lang.c (pascal_language_defn): Likewise.
10371 * rust-lang.c (rust_language_defn): Likewise.
10373 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10375 * riscv-tdep.c (riscv_type_align): New function.
10376 (riscv_type_alignment): Delete.
10377 (riscv_arg_location): Use 'type_align'.
10378 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10380 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10382 * gdbtypes.c (type_align): A struct with no non-static fields also
10383 has alignment of 1.
10385 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10387 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10389 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10391 (riscv_struct_info::analyse): New implementation using new
10392 analyse_inner member function.
10393 (riscv_struct_info::field_offset): New member function.
10394 (riscv_struct_info::m_offsets): New member variable.
10395 (riscv_struct_info::analyse_inner): New private member function,
10396 takes the old implementation of riscv_struct_info::analyse but
10397 extended to track field offsets.
10398 (riscv_call_arg_struct): Update the struct folding special cases
10399 to handle cases where empty C++ structs, which are non-zero
10401 (riscv_arg_location): Initialise the length of each location, a
10402 non-zero length now indicates the location is in use.
10403 (riscv_push_dummy_call): Allow for the first location having a
10404 non-zero offset when setting up arguments.
10405 (riscv_return_value): Likewise, but for return values.
10407 2019-04-11 Tom Tromey <tromey@adacore.com>
10409 * utils.c (internal_vproblem): Make "msg" const.
10411 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10413 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10414 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10415 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10416 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10418 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10420 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10422 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10423 of amd64_collect_native_gregset.
10424 (amd64_linux_nat_target::store_registers): Likewise.
10426 2019-04-10 Tom Tromey <tom@tromey.com>
10428 * symtab.c (lookup_global_symbol_from_objfile)
10429 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10430 * objfiles.h (class separate_debug_iterator): New.
10431 (class separate_debug_range): New.
10432 (struct objfile) <separate_debug_objfiles>: New method.
10433 (objfile_separate_debug_iterate): Don't declare.
10434 * objfiles.c (separate_debug_iterator::operator++): Rename from
10435 objfile_separate_debug_iterate.
10436 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10438 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10441 2019-04-10 Tom Tromey <tom@tromey.com>
10443 * symfile.c (reread_symbols): Remove old comment.
10444 * objfiles.c (free_all_objfiles): Fix a typo.
10446 2019-04-10 Tom Tromey <tom@tromey.com>
10448 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10449 * minsyms.c (lookup_minimal_symbol): Use foreach.
10450 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10451 (lookup_minimal_symbol_solib_trampoline): Likewise.
10452 * symfile.c (reread_symbols): Use foreach.
10454 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10455 Tom Tromey <tromey@adacore.com>
10458 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10459 (rust_lex_int_test): Change "value" to be LONGEST.
10460 (rust_lex_tests): Add test for long integer literal.
10462 2019-04-09 Tom Tromey <tromey@adacore.com>
10464 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10466 (extended_remote_target::attach): Update.
10467 (remote_target::remote_notice_new_inferior): Update.
10468 (remote_target::add_current_inferior_and_thread): Update.
10469 * inferior.c (exit_inferior_1): Use "false".
10470 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10472 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10474 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10475 the "start" command.
10477 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10479 * python/py-inferior.c (infpy_thread_from_thread_handle):
10480 Adjust comments to reflect renaming of thread_from_thread_handle
10481 to thread_from_handle. Adjust keywords. Fix type error message.
10482 (inferior_object_methods): Add thread_from_handle. Retain
10483 thread_from_thread_handle, but mark it as deprecated.
10485 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10487 * gdbthread.h (find_thread_by_handle): Revise declaration.
10488 * thread.c (find_thread_by_handle): Likewise. Adjust
10489 implementation too.
10490 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10491 support for buffer objects as handles.
10493 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10495 * python/py-infthread.c (thpy_thread_handle): New function.
10496 (thread_object_methods): Register thpy_thread_handle.
10498 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10500 * gdbthread.h (thread_to_thread_handle): Declare.
10501 * thread.c (gdbtypes.h): Include.
10502 (thread_to_thread_handle): New function.
10504 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10505 (target_thread_info_to_thread_handle): Declare.
10506 * target.c (target_thread_info_to_thread_handle): New function.
10507 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10508 * target-delegates.c: Regenerate.
10510 * linux-thread-db.c (class thread_db_target): Add method
10511 thread_info_to_thread_handle.
10512 (thread_db_target::thread_info_to_thread_handle): Define.
10513 * remote.c (class remote_target): Add new method
10514 thread_info_to_thread_handle.
10515 (remote_target::thread_info_to_thread_handle): Define.
10517 2019-04-08 Pedro Alves <palves@redhat.com>
10519 * common/common-exceptions.c (throw_exception): Don't create
10520 named object to throw; throw directly.
10521 (throw_it): Likewise. Don't initialize gdb_exception::message
10522 here, with new; pass FMT and AP to the ctor instead.
10523 * common/common-exceptions.h: Include <string>.
10524 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10525 const char *, va_list)): New ctor. Use std::make_shared.
10526 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10528 (gdb_exception_error::gdb_exception_error(enum errors, const char
10530 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10532 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10534 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10535 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10538 2019-04-08 Tom Tromey <tom@tromey.com>
10540 * valops.c (value_rtti_indirect_type): Replace throw_exception
10542 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10544 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10546 * target.c (target_translate_tls_address): Replace throw_exception
10548 * stack.c (frame_apply_command_count): Replace throw_exception
10550 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10552 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10554 * rs6000-tdep.c (rs6000_frame_cache)
10555 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10556 * remote.c: Replace throw_exception with throw.
10557 * record-full.c (record_full_message, record_full_wait_1)
10558 (record_full_restore): Replace throw_exception with throw.
10560 (get_thread_current_frame_id, record_btrace_start_replaying)
10561 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10562 (cmd_record_btrace_start): Replace throw_exception with throw.
10563 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10565 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10566 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10568 (find_linespec_symbols): Replace throw_exception with throw.
10569 * infrun.c (displaced_step_prepare, resume): Replace
10570 throw_exception with throw.
10571 * infcmd.c (post_create_inferior): Replace throw_exception with
10573 * inf-loop.c (inferior_event_handler): Replace throw_exception
10575 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10576 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10577 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10578 (get_prev_frame_always, get_frame_pc_if_available)
10579 (get_frame_address_in_block_if_available, get_frame_language):
10580 Replace throw_exception with throw.
10581 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10582 throw_exception with throw.
10583 * eval.c (fetch_subexp_value, evaluate_var_value)
10584 (evaluate_funcall, evaluate_subexp_standard): Replace
10585 throw_exception with throw.
10586 * dwarf2loc.c (call_site_find_chain)
10587 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10588 Replace throw_exception with throw.
10589 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10591 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10593 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10594 * completer.c (complete_line_internal): Replace throw_exception
10596 * compile/compile-object-run.c (compile_object_run): Replace
10597 throw_exception with throw.
10598 * cli/cli-script.c (process_next_line): Replace throw_exception
10600 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10601 (btrace_enable, btrace_maint_update_pt_packets): Replace
10602 throw_exception with throw.
10603 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10604 throw_exception with throw.
10605 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10606 throw_exception with throw.
10607 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10608 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10609 * aarch64-tdep.c (aarch64_make_prologue_cache)
10610 (aarch64_make_stub_cache): Replace throw_exception with throw.
10612 2019-04-08 Tom Tromey <tom@tromey.com>
10614 * common/common-exceptions.c (throw_exception): Rename from
10615 throw_exception_cxx. Remove old copy. Make argument const.
10616 (throw_it): Create and throw exception objects directly.
10617 * common/common-exceptions.h (throw_exception): Make argument
10619 (struct gdb_exception_error): Add constructor.
10620 (struct gdb_exception_quit): Add constructor.
10622 2019-04-08 Tom Tromey <tom@tromey.com>
10624 * common/common-exceptions.h (exception_rethrow): Don't declare.
10625 (TRY_SJLJ): Update comment.
10626 (TRY, CATCH, END_CATCH): Remove.
10627 * common/common-exceptions.c (exception_rethrow): Remove.
10629 2019-04-08 Tom Tromey <tom@tromey.com>
10631 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10633 (gdb_exception_error): Rename from
10634 gdb_exception_RETURN_MASK_ERROR.
10635 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10636 (gdb_quit_bad_alloc): Update.
10637 * aarch64-tdep.c: Update.
10638 * ada-lang.c: Update.
10639 * ada-typeprint.c: Update.
10640 * ada-valprint.c: Update.
10641 * amd64-tdep.c: Update.
10642 * arch-utils.c: Update.
10643 * break-catch-throw.c: Update.
10644 * breakpoint.c: Update.
10645 * btrace.c: Update.
10646 * c-varobj.c: Update.
10647 * cli/cli-cmds.c: Update.
10648 * cli/cli-interp.c: Update.
10649 * cli/cli-script.c: Update.
10650 * common/common-exceptions.c: Update.
10651 * common/new-op.c: Update.
10652 * common/selftest.c: Update.
10653 * compile/compile-c-symbols.c: Update.
10654 * compile/compile-cplus-symbols.c: Update.
10655 * compile/compile-object-load.c: Update.
10656 * compile/compile-object-run.c: Update.
10657 * completer.c: Update.
10658 * corelow.c: Update.
10659 * cp-abi.c: Update.
10660 * cp-support.c: Update.
10661 * cp-valprint.c: Update.
10662 * darwin-nat.c: Update.
10663 * disasm-selftests.c: Update.
10664 * dtrace-probe.c: Update.
10665 * dwarf-index-cache.c: Update.
10666 * dwarf-index-write.c: Update.
10667 * dwarf2-frame-tailcall.c: Update.
10668 * dwarf2-frame.c: Update.
10669 * dwarf2loc.c: Update.
10670 * dwarf2read.c: Update.
10672 * event-loop.c: Update.
10673 * event-top.c: Update.
10675 * f-valprint.c: Update.
10676 * fbsd-tdep.c: Update.
10677 * frame-unwind.c: Update.
10679 * gdbtypes.c: Update.
10680 * gnu-v3-abi.c: Update.
10681 * guile/guile-internal.h: Update.
10682 * guile/scm-block.c: Update.
10683 * guile/scm-breakpoint.c: Update.
10684 * guile/scm-cmd.c: Update.
10685 * guile/scm-disasm.c: Update.
10686 * guile/scm-frame.c: Update.
10687 * guile/scm-lazy-string.c: Update.
10688 * guile/scm-math.c: Update.
10689 * guile/scm-param.c: Update.
10690 * guile/scm-ports.c: Update.
10691 * guile/scm-pretty-print.c: Update.
10692 * guile/scm-symbol.c: Update.
10693 * guile/scm-symtab.c: Update.
10694 * guile/scm-type.c: Update.
10695 * guile/scm-value.c: Update.
10696 * i386-linux-tdep.c: Update.
10697 * i386-tdep.c: Update.
10698 * inf-loop.c: Update.
10699 * infcall.c: Update.
10700 * infcmd.c: Update.
10701 * infrun.c: Update.
10703 * language.c: Update.
10704 * linespec.c: Update.
10705 * linux-fork.c: Update.
10706 * linux-nat.c: Update.
10707 * linux-tdep.c: Update.
10708 * linux-thread-db.c: Update.
10710 * mi/mi-cmd-break.c: Update.
10711 * mi/mi-cmd-stack.c: Update.
10712 * mi/mi-interp.c: Update.
10713 * mi/mi-main.c: Update.
10714 * objc-lang.c: Update.
10715 * p-valprint.c: Update.
10717 * ppc-linux-tdep.c: Update.
10718 * printcmd.c: Update.
10719 * python/py-arch.c: Update.
10720 * python/py-breakpoint.c: Update.
10721 * python/py-cmd.c: Update.
10722 * python/py-finishbreakpoint.c: Update.
10723 * python/py-frame.c: Update.
10724 * python/py-framefilter.c: Update.
10725 * python/py-gdb-readline.c: Update.
10726 * python/py-inferior.c: Update.
10727 * python/py-infthread.c: Update.
10728 * python/py-lazy-string.c: Update.
10729 * python/py-linetable.c: Update.
10730 * python/py-objfile.c: Update.
10731 * python/py-param.c: Update.
10732 * python/py-prettyprint.c: Update.
10733 * python/py-progspace.c: Update.
10734 * python/py-record-btrace.c: Update.
10735 * python/py-record.c: Update.
10736 * python/py-symbol.c: Update.
10737 * python/py-type.c: Update.
10738 * python/py-unwind.c: Update.
10739 * python/py-utils.c: Update.
10740 * python/py-value.c: Update.
10741 * python/python.c: Update.
10742 * record-btrace.c: Update.
10743 * record-full.c: Update.
10744 * remote-fileio.c: Update.
10745 * remote.c: Update.
10746 * riscv-tdep.c: Update.
10747 * rs6000-aix-tdep.c: Update.
10748 * rs6000-tdep.c: Update.
10749 * rust-exp.y: Update.
10750 * rust-lang.c: Update.
10751 * s390-tdep.c: Update.
10752 * selftest-arch.c: Update.
10753 * solib-dsbt.c: Update.
10754 * solib-frv.c: Update.
10755 * solib-spu.c: Update.
10756 * solib-svr4.c: Update.
10758 * sparc64-linux-tdep.c: Update.
10760 * symfile-mem.c: Update.
10761 * symmisc.c: Update.
10762 * target.c: Update.
10763 * thread.c: Update.
10765 * tracefile-tfile.c: Update.
10766 * tui/tui.c: Update.
10767 * typeprint.c: Update.
10768 * unittests/cli-utils-selftests.c: Update.
10769 * unittests/parse-connection-spec-selftests.c: Update.
10770 * valops.c: Update.
10771 * valprint.c: Update.
10773 * varobj.c: Update.
10774 * windows-nat.c: Update.
10775 * x86-linux-nat.c: Update.
10776 * xml-support.c: Update.
10778 2019-04-08 Tom Tromey <tom@tromey.com>
10780 * xml-support.c: Use C++ exception handling.
10781 * x86-linux-nat.c: Use C++ exception handling.
10782 * windows-nat.c: Use C++ exception handling.
10783 * varobj.c: Use C++ exception handling.
10784 * value.c: Use C++ exception handling.
10785 * valprint.c: Use C++ exception handling.
10786 * valops.c: Use C++ exception handling.
10787 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10789 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10790 * typeprint.c: Use C++ exception handling.
10791 * tui/tui.c: Use C++ exception handling.
10792 * tracefile-tfile.c: Use C++ exception handling.
10793 * top.c: Use C++ exception handling.
10794 * thread.c: Use C++ exception handling.
10795 * target.c: Use C++ exception handling.
10796 * symmisc.c: Use C++ exception handling.
10797 * symfile-mem.c: Use C++ exception handling.
10798 * stack.c: Use C++ exception handling.
10799 * sparc64-linux-tdep.c: Use C++ exception handling.
10800 * solib.c: Use C++ exception handling.
10801 * solib-svr4.c: Use C++ exception handling.
10802 * solib-spu.c: Use C++ exception handling.
10803 * solib-frv.c: Use C++ exception handling.
10804 * solib-dsbt.c: Use C++ exception handling.
10805 * selftest-arch.c: Use C++ exception handling.
10806 * s390-tdep.c: Use C++ exception handling.
10807 * rust-lang.c: Use C++ exception handling.
10808 * rust-exp.y: Use C++ exception handling.
10809 * rs6000-tdep.c: Use C++ exception handling.
10810 * rs6000-aix-tdep.c: Use C++ exception handling.
10811 * riscv-tdep.c: Use C++ exception handling.
10812 * remote.c: Use C++ exception handling.
10813 * remote-fileio.c: Use C++ exception handling.
10814 * record-full.c: Use C++ exception handling.
10815 * record-btrace.c: Use C++ exception handling.
10816 * python/python.c: Use C++ exception handling.
10817 * python/py-value.c: Use C++ exception handling.
10818 * python/py-utils.c: Use C++ exception handling.
10819 * python/py-unwind.c: Use C++ exception handling.
10820 * python/py-type.c: Use C++ exception handling.
10821 * python/py-symbol.c: Use C++ exception handling.
10822 * python/py-record.c: Use C++ exception handling.
10823 * python/py-record-btrace.c: Use C++ exception handling.
10824 * python/py-progspace.c: Use C++ exception handling.
10825 * python/py-prettyprint.c: Use C++ exception handling.
10826 * python/py-param.c: Use C++ exception handling.
10827 * python/py-objfile.c: Use C++ exception handling.
10828 * python/py-linetable.c: Use C++ exception handling.
10829 * python/py-lazy-string.c: Use C++ exception handling.
10830 * python/py-infthread.c: Use C++ exception handling.
10831 * python/py-inferior.c: Use C++ exception handling.
10832 * python/py-gdb-readline.c: Use C++ exception handling.
10833 * python/py-framefilter.c: Use C++ exception handling.
10834 * python/py-frame.c: Use C++ exception handling.
10835 * python/py-finishbreakpoint.c: Use C++ exception handling.
10836 * python/py-cmd.c: Use C++ exception handling.
10837 * python/py-breakpoint.c: Use C++ exception handling.
10838 * python/py-arch.c: Use C++ exception handling.
10839 * printcmd.c: Use C++ exception handling.
10840 * ppc-linux-tdep.c: Use C++ exception handling.
10841 * parse.c: Use C++ exception handling.
10842 * p-valprint.c: Use C++ exception handling.
10843 * objc-lang.c: Use C++ exception handling.
10844 * mi/mi-main.c: Use C++ exception handling.
10845 * mi/mi-interp.c: Use C++ exception handling.
10846 * mi/mi-cmd-stack.c: Use C++ exception handling.
10847 * mi/mi-cmd-break.c: Use C++ exception handling.
10848 * main.c: Use C++ exception handling.
10849 * linux-thread-db.c: Use C++ exception handling.
10850 * linux-tdep.c: Use C++ exception handling.
10851 * linux-nat.c: Use C++ exception handling.
10852 * linux-fork.c: Use C++ exception handling.
10853 * linespec.c: Use C++ exception handling.
10854 * language.c: Use C++ exception handling.
10855 * jit.c: Use C++ exception handling.
10856 * infrun.c: Use C++ exception handling.
10857 * infcmd.c: Use C++ exception handling.
10858 * infcall.c: Use C++ exception handling.
10859 * inf-loop.c: Use C++ exception handling.
10860 * i386-tdep.c: Use C++ exception handling.
10861 * i386-linux-tdep.c: Use C++ exception handling.
10862 * guile/scm-value.c: Use C++ exception handling.
10863 * guile/scm-type.c: Use C++ exception handling.
10864 * guile/scm-symtab.c: Use C++ exception handling.
10865 * guile/scm-symbol.c: Use C++ exception handling.
10866 * guile/scm-pretty-print.c: Use C++ exception handling.
10867 * guile/scm-ports.c: Use C++ exception handling.
10868 * guile/scm-param.c: Use C++ exception handling.
10869 * guile/scm-math.c: Use C++ exception handling.
10870 * guile/scm-lazy-string.c: Use C++ exception handling.
10871 * guile/scm-frame.c: Use C++ exception handling.
10872 * guile/scm-disasm.c: Use C++ exception handling.
10873 * guile/scm-cmd.c: Use C++ exception handling.
10874 * guile/scm-breakpoint.c: Use C++ exception handling.
10875 * guile/scm-block.c: Use C++ exception handling.
10876 * guile/guile-internal.h: Use C++ exception handling.
10877 * gnu-v3-abi.c: Use C++ exception handling.
10878 * gdbtypes.c: Use C++ exception handling.
10879 * frame.c: Use C++ exception handling.
10880 * frame-unwind.c: Use C++ exception handling.
10881 * fbsd-tdep.c: Use C++ exception handling.
10882 * f-valprint.c: Use C++ exception handling.
10883 * exec.c: Use C++ exception handling.
10884 * event-top.c: Use C++ exception handling.
10885 * event-loop.c: Use C++ exception handling.
10886 * eval.c: Use C++ exception handling.
10887 * dwarf2read.c: Use C++ exception handling.
10888 * dwarf2loc.c: Use C++ exception handling.
10889 * dwarf2-frame.c: Use C++ exception handling.
10890 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10891 * dwarf-index-write.c: Use C++ exception handling.
10892 * dwarf-index-cache.c: Use C++ exception handling.
10893 * dtrace-probe.c: Use C++ exception handling.
10894 * disasm-selftests.c: Use C++ exception handling.
10895 * darwin-nat.c: Use C++ exception handling.
10896 * cp-valprint.c: Use C++ exception handling.
10897 * cp-support.c: Use C++ exception handling.
10898 * cp-abi.c: Use C++ exception handling.
10899 * corelow.c: Use C++ exception handling.
10900 * completer.c: Use C++ exception handling.
10901 * compile/compile-object-run.c: Use C++ exception handling.
10902 * compile/compile-object-load.c: Use C++ exception handling.
10903 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10904 * compile/compile-c-symbols.c: Use C++ exception handling.
10905 * common/selftest.c: Use C++ exception handling.
10906 * common/new-op.c: Use C++ exception handling.
10907 * cli/cli-script.c: Use C++ exception handling.
10908 * cli/cli-interp.c: Use C++ exception handling.
10909 * cli/cli-cmds.c: Use C++ exception handling.
10910 * c-varobj.c: Use C++ exception handling.
10911 * btrace.c: Use C++ exception handling.
10912 * breakpoint.c: Use C++ exception handling.
10913 * break-catch-throw.c: Use C++ exception handling.
10914 * arch-utils.c: Use C++ exception handling.
10915 * amd64-tdep.c: Use C++ exception handling.
10916 * ada-valprint.c: Use C++ exception handling.
10917 * ada-typeprint.c: Use C++ exception handling.
10918 * ada-lang.c: Use C++ exception handling.
10919 * aarch64-tdep.c: Use C++ exception handling.
10921 2019-04-08 Tom Tromey <tom@tromey.com>
10923 * xml-support.c (gdb_xml_parser::parse): Update.
10924 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10925 * value.c (show_convenience): Update.
10926 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10927 (test_parse_flags_qcs): Update.
10928 * thread.c (thr_try_catch_cmd): Update.
10929 * target.c (target_translate_tls_address): Update.
10930 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10931 (info_frame_command_core, frame_apply_command_count): Update.
10932 * rust-exp.y (rust_lex_exception_test): Update.
10933 * riscv-tdep.c (riscv_print_one_register_info): Update.
10934 * remote.c (remote_target::enable_btrace): Update.
10935 * record-btrace.c (record_btrace_enable_warn): Update.
10936 * python/py-utils.c (gdbpy_convert_exception): Update.
10937 * printcmd.c (do_one_display, print_variable_and_value): Update.
10938 * mi/mi-main.c (mi_print_exception): Update.
10939 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10940 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10941 * linux-nat.c (linux_nat_target::attach): Update.
10942 * linux-fork.c (class scoped_switch_fork_info): Update.
10943 * infrun.c (displaced_step_prepare): Update.
10944 * infcall.c (call_function_by_hand_dummy): Update.
10945 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10946 * gnu-v3-abi.c (print_one_vtable): Update.
10947 * frame.c (get_prev_frame_always): Update.
10948 * f-valprint.c (info_common_command_for_block): Update.
10949 * exec.c (try_open_exec_file): Update.
10950 * exceptions.c (print_exception, exception_print)
10951 (exception_fprintf, exception_print_same): Update.
10952 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10953 * dwarf-index-cache.c (index_cache::store)
10954 (index_cache::lookup_gdb_index): Update.
10955 * darwin-nat.c (maybe_cache_shell): Update.
10956 * cp-valprint.c (cp_print_value_fields): Update.
10957 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10958 (gcc_cplus_symbol_address): Update.
10959 * compile/compile-c-symbols.c (gcc_convert_symbol)
10960 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10961 * common/selftest.c: Update.
10962 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10964 (exception_try_scope_entry, exception_try_scope_exit): Don't
10966 (struct exception_try_scope): Remove.
10967 (TRY): Don't use exception_try_scope.
10968 (struct gdb_exception): Add constructor, operator=.
10969 <what>: New method.
10970 (struct gdb_exception_RETURN_MASK_ALL)
10971 (struct gdb_exception_RETURN_MASK_ERROR)
10972 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10973 (struct gdb_quit_bad_alloc): Update.
10974 * common/common-exceptions.c (exception_none): Change
10976 (struct catcher) <state, exception>: Initialize inline.
10977 <prev>: Remove member.
10978 (current_catcher): Remove.
10979 (catchers): New global.
10980 (exceptions_state_mc_init): Simplify.
10981 (catcher_pop): Remove.
10982 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10983 (try_scope_depth, exception_try_scope_entry)
10984 (exception_try_scope_exit): Remove.
10985 (throw_exception_sjlj): Update.
10986 (exception_messages, exception_messages_size): Remove.
10987 (throw_it): Simplify.
10988 (gdb_exception_sliced_copy): Remove.
10989 (throw_exception_cxx): Update.
10990 * cli/cli-script.c (script_from_file): Update.
10991 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10993 * ada-valprint.c (ada_val_print): Update.
10994 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10995 (create_excep_cond_exprs): Update.
10997 2019-04-08 Tom Tromey <tom@tromey.com>
10999 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11000 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11001 (TRY, CATCH, END_CATCH): Remove some definitions.
11002 * common/common-exceptions.c: Don't use GDB_XCPT.
11003 (catcher_list_size): Remove.
11004 (throw_exception, throw_it): Simplify.
11006 2019-04-05 Tom Tromey <tom@tromey.com>
11008 Revert the header-sorting patch.
11009 * ft32-tdep.c: Revert.
11010 * frv-tdep.c: Revert.
11011 * frv-linux-tdep.c: Revert.
11013 * frame-unwind.c: Revert.
11014 * frame-base.c: Revert.
11015 * fork-child.c: Revert.
11016 * findvar.c: Revert.
11017 * findcmd.c: Revert.
11018 * filesystem.c: Revert.
11019 * filename-seen-cache.h: Revert.
11020 * filename-seen-cache.c: Revert.
11021 * fbsd-tdep.c: Revert.
11022 * fbsd-nat.h: Revert.
11023 * fbsd-nat.c: Revert.
11024 * f-valprint.c: Revert.
11025 * f-typeprint.c: Revert.
11026 * f-lang.c: Revert.
11027 * extension.h: Revert.
11028 * extension.c: Revert.
11029 * extension-priv.h: Revert.
11030 * expprint.c: Revert.
11033 * exceptions.c: Revert.
11034 * event-top.c: Revert.
11035 * event-loop.c: Revert.
11037 * elfread.c: Revert.
11038 * dwarf2read.h: Revert.
11039 * dwarf2read.c: Revert.
11040 * dwarf2loc.c: Revert.
11041 * dwarf2expr.h: Revert.
11042 * dwarf2expr.c: Revert.
11043 * dwarf2-frame.c: Revert.
11044 * dwarf2-frame-tailcall.c: Revert.
11045 * dwarf-index-write.h: Revert.
11046 * dwarf-index-write.c: Revert.
11047 * dwarf-index-common.c: Revert.
11048 * dwarf-index-cache.h: Revert.
11049 * dwarf-index-cache.c: Revert.
11050 * dummy-frame.c: Revert.
11051 * dtrace-probe.c: Revert.
11052 * disasm.h: Revert.
11053 * disasm.c: Revert.
11054 * disasm-selftests.c: Revert.
11055 * dictionary.c: Revert.
11056 * dicos-tdep.c: Revert.
11057 * demangle.c: Revert.
11058 * dcache.h: Revert.
11059 * dcache.c: Revert.
11060 * darwin-nat.h: Revert.
11061 * darwin-nat.c: Revert.
11062 * darwin-nat-info.c: Revert.
11063 * d-valprint.c: Revert.
11064 * d-namespace.c: Revert.
11065 * d-lang.c: Revert.
11067 * csky-tdep.c: Revert.
11068 * csky-linux-tdep.c: Revert.
11069 * cris-tdep.c: Revert.
11070 * cris-linux-tdep.c: Revert.
11071 * cp-valprint.c: Revert.
11072 * cp-support.c: Revert.
11073 * cp-namespace.c: Revert.
11074 * cp-abi.c: Revert.
11075 * corelow.c: Revert.
11076 * corefile.c: Revert.
11077 * continuations.c: Revert.
11078 * completer.h: Revert.
11079 * completer.c: Revert.
11080 * complaints.c: Revert.
11081 * coffread.c: Revert.
11082 * coff-pe-read.c: Revert.
11083 * cli-out.h: Revert.
11084 * cli-out.c: Revert.
11085 * charset.c: Revert.
11086 * c-varobj.c: Revert.
11087 * c-valprint.c: Revert.
11088 * c-typeprint.c: Revert.
11089 * c-lang.c: Revert.
11090 * buildsym.c: Revert.
11091 * buildsym-legacy.c: Revert.
11092 * build-id.h: Revert.
11093 * build-id.c: Revert.
11094 * btrace.c: Revert.
11095 * bsd-uthread.c: Revert.
11096 * breakpoint.h: Revert.
11097 * breakpoint.c: Revert.
11098 * break-catch-throw.c: Revert.
11099 * break-catch-syscall.c: Revert.
11100 * break-catch-sig.c: Revert.
11101 * blockframe.c: Revert.
11103 * bfin-tdep.c: Revert.
11104 * bfin-linux-tdep.c: Revert.
11105 * bfd-target.c: Revert.
11106 * bcache.c: Revert.
11107 * ax-general.c: Revert.
11108 * ax-gdb.h: Revert.
11109 * ax-gdb.c: Revert.
11110 * avr-tdep.c: Revert.
11112 * auto-load.c: Revert.
11113 * arm-wince-tdep.c: Revert.
11114 * arm-tdep.c: Revert.
11115 * arm-symbian-tdep.c: Revert.
11116 * arm-pikeos-tdep.c: Revert.
11117 * arm-obsd-tdep.c: Revert.
11118 * arm-nbsd-tdep.c: Revert.
11119 * arm-nbsd-nat.c: Revert.
11120 * arm-linux-tdep.c: Revert.
11121 * arm-linux-nat.c: Revert.
11122 * arm-fbsd-tdep.c: Revert.
11123 * arm-fbsd-nat.c: Revert.
11124 * arm-bsd-tdep.c: Revert.
11125 * arch-utils.c: Revert.
11126 * arc-tdep.c: Revert.
11127 * arc-newlib-tdep.c: Revert.
11128 * annotate.h: Revert.
11129 * annotate.c: Revert.
11130 * amd64-windows-tdep.c: Revert.
11131 * amd64-windows-nat.c: Revert.
11132 * amd64-tdep.c: Revert.
11133 * amd64-sol2-tdep.c: Revert.
11134 * amd64-obsd-tdep.c: Revert.
11135 * amd64-obsd-nat.c: Revert.
11136 * amd64-nbsd-tdep.c: Revert.
11137 * amd64-nbsd-nat.c: Revert.
11138 * amd64-nat.c: Revert.
11139 * amd64-linux-tdep.c: Revert.
11140 * amd64-linux-nat.c: Revert.
11141 * amd64-fbsd-tdep.c: Revert.
11142 * amd64-fbsd-nat.c: Revert.
11143 * amd64-dicos-tdep.c: Revert.
11144 * amd64-darwin-tdep.c: Revert.
11145 * amd64-bsd-nat.c: Revert.
11146 * alpha-tdep.c: Revert.
11147 * alpha-obsd-tdep.c: Revert.
11148 * alpha-nbsd-tdep.c: Revert.
11149 * alpha-mdebug-tdep.c: Revert.
11150 * alpha-linux-tdep.c: Revert.
11151 * alpha-linux-nat.c: Revert.
11152 * alpha-bsd-tdep.c: Revert.
11153 * alpha-bsd-nat.c: Revert.
11154 * aix-thread.c: Revert.
11156 * addrmap.c: Revert.
11157 * ada-varobj.c: Revert.
11158 * ada-valprint.c: Revert.
11159 * ada-typeprint.c: Revert.
11160 * ada-tasks.c: Revert.
11161 * ada-lang.c: Revert.
11162 * aarch64-tdep.c: Revert.
11163 * aarch64-ravenscar-thread.c: Revert.
11164 * aarch64-newlib-tdep.c: Revert.
11165 * aarch64-linux-tdep.c: Revert.
11166 * aarch64-linux-nat.c: Revert.
11167 * aarch64-fbsd-tdep.c: Revert.
11168 * aarch64-fbsd-nat.c: Revert.
11169 * aarch32-linux-nat.c: Revert.
11171 2019-04-05 Tom Tromey <tom@tromey.com>
11173 * ft32-tdep.c: Sort headers.
11174 * frv-tdep.c: Sort headers.
11175 * frv-linux-tdep.c: Sort headers.
11176 * frame.c: Sort headers.
11177 * frame-unwind.c: Sort headers.
11178 * frame-base.c: Sort headers.
11179 * fork-child.c: Sort headers.
11180 * findvar.c: Sort headers.
11181 * findcmd.c: Sort headers.
11182 * filesystem.c: Sort headers.
11183 * filename-seen-cache.h: Sort headers.
11184 * filename-seen-cache.c: Sort headers.
11185 * fbsd-tdep.c: Sort headers.
11186 * fbsd-nat.h: Sort headers.
11187 * fbsd-nat.c: Sort headers.
11188 * f-valprint.c: Sort headers.
11189 * f-typeprint.c: Sort headers.
11190 * f-lang.c: Sort headers.
11191 * extension.h: Sort headers.
11192 * extension.c: Sort headers.
11193 * extension-priv.h: Sort headers.
11194 * expprint.c: Sort headers.
11195 * exec.h: Sort headers.
11196 * exec.c: Sort headers.
11197 * exceptions.c: Sort headers.
11198 * event-top.c: Sort headers.
11199 * event-loop.c: Sort headers.
11200 * eval.c: Sort headers.
11201 * elfread.c: Sort headers.
11202 * dwarf2read.h: Sort headers.
11203 * dwarf2read.c: Sort headers.
11204 * dwarf2loc.c: Sort headers.
11205 * dwarf2expr.h: Sort headers.
11206 * dwarf2expr.c: Sort headers.
11207 * dwarf2-frame.c: Sort headers.
11208 * dwarf2-frame-tailcall.c: Sort headers.
11209 * dwarf-index-write.h: Sort headers.
11210 * dwarf-index-write.c: Sort headers.
11211 * dwarf-index-common.c: Sort headers.
11212 * dwarf-index-cache.h: Sort headers.
11213 * dwarf-index-cache.c: Sort headers.
11214 * dummy-frame.c: Sort headers.
11215 * dtrace-probe.c: Sort headers.
11216 * disasm.h: Sort headers.
11217 * disasm.c: Sort headers.
11218 * disasm-selftests.c: Sort headers.
11219 * dictionary.c: Sort headers.
11220 * dicos-tdep.c: Sort headers.
11221 * demangle.c: Sort headers.
11222 * dcache.h: Sort headers.
11223 * dcache.c: Sort headers.
11224 * darwin-nat.h: Sort headers.
11225 * darwin-nat.c: Sort headers.
11226 * darwin-nat-info.c: Sort headers.
11227 * d-valprint.c: Sort headers.
11228 * d-namespace.c: Sort headers.
11229 * d-lang.c: Sort headers.
11230 * ctf.c: Sort headers.
11231 * csky-tdep.c: Sort headers.
11232 * csky-linux-tdep.c: Sort headers.
11233 * cris-tdep.c: Sort headers.
11234 * cris-linux-tdep.c: Sort headers.
11235 * cp-valprint.c: Sort headers.
11236 * cp-support.c: Sort headers.
11237 * cp-namespace.c: Sort headers.
11238 * cp-abi.c: Sort headers.
11239 * corelow.c: Sort headers.
11240 * corefile.c: Sort headers.
11241 * continuations.c: Sort headers.
11242 * completer.h: Sort headers.
11243 * completer.c: Sort headers.
11244 * complaints.c: Sort headers.
11245 * coffread.c: Sort headers.
11246 * coff-pe-read.c: Sort headers.
11247 * cli-out.h: Sort headers.
11248 * cli-out.c: Sort headers.
11249 * charset.c: Sort headers.
11250 * c-varobj.c: Sort headers.
11251 * c-valprint.c: Sort headers.
11252 * c-typeprint.c: Sort headers.
11253 * c-lang.c: Sort headers.
11254 * buildsym.c: Sort headers.
11255 * buildsym-legacy.c: Sort headers.
11256 * build-id.h: Sort headers.
11257 * build-id.c: Sort headers.
11258 * btrace.c: Sort headers.
11259 * bsd-uthread.c: Sort headers.
11260 * breakpoint.h: Sort headers.
11261 * breakpoint.c: Sort headers.
11262 * break-catch-throw.c: Sort headers.
11263 * break-catch-syscall.c: Sort headers.
11264 * break-catch-sig.c: Sort headers.
11265 * blockframe.c: Sort headers.
11266 * block.c: Sort headers.
11267 * bfin-tdep.c: Sort headers.
11268 * bfin-linux-tdep.c: Sort headers.
11269 * bfd-target.c: Sort headers.
11270 * bcache.c: Sort headers.
11271 * ax-general.c: Sort headers.
11272 * ax-gdb.h: Sort headers.
11273 * ax-gdb.c: Sort headers.
11274 * avr-tdep.c: Sort headers.
11275 * auxv.c: Sort headers.
11276 * auto-load.c: Sort headers.
11277 * arm-wince-tdep.c: Sort headers.
11278 * arm-tdep.c: Sort headers.
11279 * arm-symbian-tdep.c: Sort headers.
11280 * arm-pikeos-tdep.c: Sort headers.
11281 * arm-obsd-tdep.c: Sort headers.
11282 * arm-nbsd-tdep.c: Sort headers.
11283 * arm-nbsd-nat.c: Sort headers.
11284 * arm-linux-tdep.c: Sort headers.
11285 * arm-linux-nat.c: Sort headers.
11286 * arm-fbsd-tdep.c: Sort headers.
11287 * arm-fbsd-nat.c: Sort headers.
11288 * arm-bsd-tdep.c: Sort headers.
11289 * arch-utils.c: Sort headers.
11290 * arc-tdep.c: Sort headers.
11291 * arc-newlib-tdep.c: Sort headers.
11292 * annotate.h: Sort headers.
11293 * annotate.c: Sort headers.
11294 * amd64-windows-tdep.c: Sort headers.
11295 * amd64-windows-nat.c: Sort headers.
11296 * amd64-tdep.c: Sort headers.
11297 * amd64-sol2-tdep.c: Sort headers.
11298 * amd64-obsd-tdep.c: Sort headers.
11299 * amd64-obsd-nat.c: Sort headers.
11300 * amd64-nbsd-tdep.c: Sort headers.
11301 * amd64-nbsd-nat.c: Sort headers.
11302 * amd64-nat.c: Sort headers.
11303 * amd64-linux-tdep.c: Sort headers.
11304 * amd64-linux-nat.c: Sort headers.
11305 * amd64-fbsd-tdep.c: Sort headers.
11306 * amd64-fbsd-nat.c: Sort headers.
11307 * amd64-dicos-tdep.c: Sort headers.
11308 * amd64-darwin-tdep.c: Sort headers.
11309 * amd64-bsd-nat.c: Sort headers.
11310 * alpha-tdep.c: Sort headers.
11311 * alpha-obsd-tdep.c: Sort headers.
11312 * alpha-nbsd-tdep.c: Sort headers.
11313 * alpha-mdebug-tdep.c: Sort headers.
11314 * alpha-linux-tdep.c: Sort headers.
11315 * alpha-linux-nat.c: Sort headers.
11316 * alpha-bsd-tdep.c: Sort headers.
11317 * alpha-bsd-nat.c: Sort headers.
11318 * aix-thread.c: Sort headers.
11319 * agent.c: Sort headers.
11320 * addrmap.c: Sort headers.
11321 * ada-varobj.c: Sort headers.
11322 * ada-valprint.c: Sort headers.
11323 * ada-typeprint.c: Sort headers.
11324 * ada-tasks.c: Sort headers.
11325 * ada-lang.c: Sort headers.
11326 * aarch64-tdep.c: Sort headers.
11327 * aarch64-ravenscar-thread.c: Sort headers.
11328 * aarch64-newlib-tdep.c: Sort headers.
11329 * aarch64-linux-tdep.c: Sort headers.
11330 * aarch64-linux-nat.c: Sort headers.
11331 * aarch64-fbsd-tdep.c: Sort headers.
11332 * aarch64-fbsd-nat.c: Sort headers.
11333 * aarch32-linux-nat.c: Sort headers.
11335 2019-04-04 Tom Tromey <tom@tromey.com>
11337 * varobj.c (varobj_create): Update.
11338 * rust-exp.y (struct rust_parser) <update_innermost_block,
11339 lookup_symbol>: New methods.
11340 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11342 (rust_parser::rust_lookup_type)
11343 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11344 * printcmd.c (display_command, do_one_display): Update.
11345 * parser-defs.h (struct parser_state) <parser_state>: Add
11346 "tracker" parameter.
11347 (block_tracker): New member.
11348 (class innermost_block_tracker) <innermost_block_tracker>: Add
11350 <reset>: Remove method.
11351 (innermost_block): Don't declare.
11352 (null_post_parser): Update.
11353 * parse.c (innermost_block): Remove global.
11354 (write_dollar_variable): Update.
11355 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11356 Remove "tracker_types" parameter.
11357 (parse_expression): Add "tracker" parameter.
11358 (parse_expression_for_completion): Update.
11359 (null_post_parser): Add "tracker" parameter.
11360 * p-exp.y: Update rules.
11361 * m2-exp.y: Update rules.
11362 * language.h (struct language_defn) <la_post_parser>: Add
11363 "tracker" parameter.
11364 * go-exp.y: Update rules.
11365 * f-exp.y: Update rules.
11366 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11368 * d-exp.y: Update rules.
11369 * c-exp.y: Update rules.
11370 * breakpoint.c (set_breakpoint_condition): Create an
11371 innermost_block_tracker.
11372 (watch_command_1): Likewise.
11373 * ada-lang.c (resolve): Add "tracker" parameter.
11374 (resolve_subexp): Likewise.
11375 * ada-exp.y (write_var_from_sym): Update.
11377 2019-04-04 Tom Tromey <tom@tromey.com>
11379 * type-stack.h: New file.
11380 * type-stack.c: New file.
11381 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11383 (insert_into_type_stack, insert_type, push_type, push_type_int)
11384 (insert_type_address_space, pop_type, pop_type_int)
11385 (pop_typelist, pop_type_stack, append_type_stack)
11386 (push_type_stack, get_type_stack, push_typelist)
11387 (follow_type_instance_flags, follow_types): Don't declare.
11388 * parse.c (type_stack): Remove global.
11389 (parse_exp_in_context): Update.
11390 (insert_into_type_stack, insert_type, push_type, push_type_int)
11391 (insert_type_address_space, pop_type, pop_type_int)
11392 (pop_typelist, pop_type_stack, append_type_stack)
11393 (push_type_stack, get_type_stack, push_typelist)
11394 (follow_type_instance_flags, follow_types): Remove (moved to
11396 * f-exp.y (type_stack): New global.
11398 (push_kind_type, f_parse): Update.
11399 * d-exp.y (type_stack): New global.
11402 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11404 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11405 (HFILES_NO_SRCDIR): Add type-stack.h.
11407 2019-04-04 Tom Tromey <tom@tromey.com>
11409 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11410 (rust_parser::convert_ast_to_expression, rust_parse)
11411 (rust_lex_test_completion, rust_lex_tests): Update.
11412 * parser-defs.h (struct expr_completion_state): New.
11413 (struct parser_state) <parser_state>: Add completion parameter.
11414 <mark_struct_expression, mark_completion_tag>: New methods.
11415 <parse_completion, m_completion_state>: New members.
11416 (prefixify_expression, null_post_parser): Update.
11417 (mark_struct_expression, mark_completion_tag): Don't declare.
11418 * parse.c (parse_completion, expout_last_struct)
11419 (expout_tag_completion_type, expout_completion_name): Remove
11421 (parser_state::mark_struct_expression)
11422 (parser_state::mark_completion_tag): Now methods.
11423 (prefixify_expression): Add last_struct parameter.
11424 (prefixify_subexp): Likewise.
11425 (parse_exp_1): Update.
11426 (parse_exp_in_context): Add cstate parameter. Update.
11427 (parse_expression_for_completion): Create an
11428 expr_completion_state.
11429 (null_post_parser): Add "completion" parameter.
11430 * p-exp.y: Update rules.
11432 * language.h (struct language_defn) <la_post_parser>: Add
11433 "completing" parameter.
11434 * go-exp.y: Update rules.
11435 (lex_one_token): Update.
11436 * expression.h (parse_completion): Don't declare.
11437 * d-exp.y: Update rules.
11438 (lex_one_token): Update rules.
11439 * c-exp.y: Update rules.
11440 (lex_one_token): Update.
11441 * ada-lang.c (resolve): Add "parse_completion" parameter.
11442 (resolve_subexp): Likewise.
11443 (ada_resolve_function): Likewise.
11445 2019-04-04 Tom Tromey <tom@tromey.com>
11447 * parser-defs.h (struct parser_state) <start_arglist,
11448 end_arglist>: New methods.
11449 <arglist_len, m_funcall_chain>: New members.
11450 (arglist_len, start_arglist, end_arglist): Don't declare.
11451 * parse.c (arglist_len, funcall_chain): Remove global.
11452 (start_arglist, end_arglist): Remove functions.
11453 (parse_exp_in_context): Update.
11454 * p-exp.y: Update rules.
11455 * m2-exp.y: Update rules.
11456 * go-exp.y: Update rules.
11457 * f-exp.y: Update rules.
11458 * d-exp.y: Update rules.
11459 * c-exp.y: Update rules.
11461 2019-04-04 Tom Tromey <tom@tromey.com>
11463 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11464 lex_operator, push_back>: New methods.
11466 (rust_parser::lex_hex, lex_escape): Rename and update.
11467 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11468 (rust_parser::lex_operator): Rename and update.
11469 (rust_parser::lex_number, rustyylex, rustyyerror)
11470 (rust_lex_test_init, rust_lex_test_sequence)
11471 (rust_lex_test_push_back, rust_lex_tests): Update.
11472 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11474 <lexptr, prev_lexptr>: New members.
11475 (lexptr, prev_lexptr): Don't declare.
11476 * parse.c (lexptr, prev_lexptr): Remove globals.
11477 (parse_exp_in_context): Update.
11478 * p-exp.y (yylex, yyerror): Update.
11479 * m2-exp.y (parse_number, yylex, yyerror): Update.
11480 * go-exp.y (lex_one_token, yyerror): Update.
11481 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11482 * d-exp.y (lex_one_token, yyerror): Update.
11483 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11484 (lex_one_token, yyerror): Update.
11485 * ada-lex.l (YY_INPUT): Update.
11486 (rewind_to_char): Update.
11487 * ada-exp.y (yyerror): Update.
11489 2019-04-04 Tom Tromey <tom@tromey.com>
11491 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11492 * parser-defs.h (struct parser_state) <parser_state>: Add new
11494 <comma_terminates>: New member.
11495 (comma_terminates): Don't declare global.
11496 * parse.c (comma_terminates): Remove global.
11497 (parse_exp_in_context): Update.
11498 * p-exp.y (yylex): Update.
11499 * m2-exp.y (yylex): Update.
11500 * go-exp.y (lex_one_token): Update.
11501 * f-exp.y (yylex): Update.
11502 * d-exp.y (lex_one_token): Update.
11503 * c-exp.y (lex_one_token): Update.
11504 * ada-lex.l: Update.
11506 2019-04-04 Tom Tromey <tom@tromey.com>
11508 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11509 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11510 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11511 * parser-defs.h (paren_depth): Don't declare.
11512 * parse.c (paren_depth): Remove global.
11513 (parse_exp_in_context): Update.
11514 * p-exp.y (paren_depth): New global.
11515 (pascal_parse): Initialize it.
11516 * m2-exp.y (paren_depth): New global.
11517 (m2_parse): Initialize it.
11518 * go-exp.y (paren_depth): New global.
11519 (go_parse): Initialize it.
11520 * f-exp.y (paren_depth): New global.
11521 (f_parse): Initialize it.
11522 * d-exp.y (paren_depth): New global.
11523 (d_parse): Initialize it.
11524 * c-exp.y (paren_depth): New global.
11525 (c_parse): Initialize it.
11526 * ada-lex.l (paren_depth): New global.
11527 (lexer_init): Initialize it.
11529 2019-04-04 Tom Tromey <tom@tromey.com>
11531 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11532 (rust_parser::convert_ast_to_type)
11533 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11534 * parser-defs.h (struct parser_state) <parser_state>: Add
11535 parameters. Initialize new members.
11536 <expression_context_block, expression_context_pc>: New members.
11537 * parse.c (expression_context_block, expression_context_pc):
11539 (parse_exp_in_context): Update.
11540 * p-exp.y: Update all rules.
11542 * m2-exp.y: Update all rules.
11544 * go-exp.y (yylex): Update.
11545 * f-exp.y (yylex): Update.
11546 * d-exp.y: Update all rules.
11548 * c-exp.y: Update all rules.
11549 (lex_one_token, classify_name, yylex, c_parse): Update.
11550 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11552 2019-04-04 Tom Tromey <tom@tromey.com>
11554 * gdbarch.h, gdbarch.c: Rebuild.
11555 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11557 (struct stap_parse_info): Replace "parser_state" with
11559 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11560 (parser_state): New class.
11561 * parse.c (expr_builder): Rename.
11562 (expr_builder::release): Rename.
11563 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11564 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11565 (write_exp_elt_longcst, write_exp_elt_floatcst)
11566 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11567 (write_exp_string_vector, write_exp_bitstring)
11568 (write_exp_msymbol, mark_struct_expression)
11569 (write_dollar_variable)
11570 (insert_type_address_space, increase_expout_size): Replace
11571 "parser_state" with "expr_builder".
11572 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11573 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11574 "parser_state" with "expr_builder".
11576 2019-04-04 Tom Tromey <tom@tromey.com>
11578 * rust-exp.y: Replace "parse_language" with method call.
11580 (yylex): Replace "parse_language" with method call.
11582 (yylex): Replace "parse_language" with method call.
11583 * go-exp.y (classify_name): Replace "parse_language" with method
11585 * f-exp.y (yylex): Replace "parse_language" with method call.
11586 * d-exp.y (lex_one_token): Replace "parse_language" with method
11589 (lex_one_token, classify_name, yylex): Replace "parse_language"
11591 * ada-exp.y (find_primitive_type, type_char)
11592 (type_system_address): Replace "parse_language" with method call.
11594 2019-04-04 Tom Tromey <tom@tromey.com>
11596 * rust-exp.y: Replace "parse_gdbarch" with method call.
11597 * parse.c (write_dollar_variable, insert_type_address_space):
11598 Replace "parse_gdbarch" with method call.
11599 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11601 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11603 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11604 "parse_gdbarch" with method call.
11605 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11607 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11608 "parse_gdbarch" with method call.
11609 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11610 "parse_gdbarch" with method call.
11611 * c-exp.y (parse_type, parse_number, classify_name): Replace
11612 "parse_gdbarch" with method call.
11613 * ada-lex.l: Replace "parse_gdbarch" with method call.
11614 * ada-exp.y (parse_type, find_primitive_type, type_char)
11615 (type_system_address): Replace "parse_gdbarch" with method call.
11617 2019-04-04 Tom Tromey <tom@tromey.com>
11619 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11620 * stap-probe.c (stap_parse_argument): Update.
11621 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11622 initial_size parameter.
11623 * rust-exp.y (rust_lex_tests): Update.
11624 * parse.c (parser_state): Update.
11625 (parse_exp_in_context): Update.
11626 * parser-defs.h (struct parser_state) <parser_state>: Remove
11627 "initial_size" parameter.
11629 2019-04-04 Tom Tromey <tom@tromey.com>
11631 * parser-defs.h (increase_expout_size): Don't declare.
11632 * parse.c (increase_expout_size): Now static.
11634 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11636 * gnu-nat.c (gnu_nat_target::wait): Fix
11637 target_waitstatus_to_string call.
11639 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11641 * eval.c (evaluate_subexp_standard): Handle internal functions
11642 during Fortran function call handling.
11644 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11646 * NEWS: Mention new internal functions.
11647 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11648 (read_base_type): Use dwarf2_init_complex_target_type.
11649 * value.c (creal_internal_fn): New function.
11650 (cimag_internal_fn): New function.
11651 (_initialize_values): Register new internal functions.
11653 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11655 * infrun.c (stop_all_threads): If debug_infrun, always
11656 trace the wait status after wait_one, using
11657 target_waitstatus_to_string and target_pid_to_str.
11658 (handle_inferior_event): Replace various trace of
11659 wait status kind by a single trace.
11660 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11661 wait status kind image by target_waitstatus_to_string.
11662 * target/waitstatus.c (target_waitstatus_to_string): Fix
11665 2019-04-01 Tom Tromey <tromey@adacore.com>
11668 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11670 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11671 Pedro Alves <palves@redhat.com>
11673 * top.c (quit_force): Call 'finalize_values'.
11674 * value.c (finalize_values): New function.
11675 * value.h (finalize_values): Declare.
11677 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11679 * NEWS: Announce $_gdb_major and $_gdb_minor.
11681 * top.c (init_gdb_version_vars): New function.
11682 (gdb_init): Call init_gdb_version_vars.
11684 2019-03-29 Tom Tromey <tromey@adacore.com>
11686 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11687 help text. Remove dead code.
11689 2019-03-29 Keith Seitz <keiths@redhat.com>
11691 From Siddhesh Poyarekar:
11692 * f-lang.h (f77_get_upperbound): Return LONGEST.
11693 (f77_get_lowerbound): Likewise.
11694 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11695 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11697 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11698 plongest to format print it.
11699 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11700 (f77_get_upperbound): Likewise.
11701 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11702 LOWER_BOUND to LONGEST.
11703 (f77_create_arrayprint_offset_tbl): Likewise.
11705 2019-03-29 Keith Seitz <keiths@redhat.com>
11707 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11708 %s/pulongest for TYPE_LENGTH instead of %d in format
11710 * ada-typerint.c (ada_print_type): Likewise.
11711 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11712 * compile/compile-c-support.c (generate_register_struct): Likewise.
11713 * gdbtypes.c (recursive_dump_type): Likewise.
11714 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11715 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11716 instead of %d in format strings.
11717 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11718 to std::min to ULONGEST.
11719 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11720 instead of %d in format strings.
11721 * tracepoint.c (info_scope_command): Likewise.
11722 * typeprint.c (print_offset_data::update)
11723 (print_offset_data::finish): Likewise.
11724 * xtensa-tdep.c (xtensa_store_return_value)
11725 (xtensa_push_dummy_call): Likewise.
11727 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11729 * windows-nat.c (display_selector): Fixed format specifications
11732 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11734 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11736 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11738 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11739 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11740 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11741 (nios2_linux_init_abi): Install it.
11743 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11745 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11747 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11749 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11751 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11752 Tom Tromey <tromey@adacore.com>
11754 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11756 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11758 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11759 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11760 method to compute the bounds of range types. Also print "[evaluated]"
11761 if the bounds' values come from a dynamic evaluation.
11763 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11765 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11766 whitespace when pretty printing is on.
11768 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11770 * ppc-linux-nat.c: Add include.
11772 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11774 * NEWS: Mention AArch64 Pointer Authentication.
11776 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11778 * arm-linux-nat.c: Add include.
11780 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11782 * source-cache.c (source_cache::get_source_lines): Re-read
11783 fullname after calling open_source_file.
11785 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11787 * NEWS: Mention TLS support for FreeBSD.
11789 2019-03-25 Tom Tromey <tromey@adacore.com>
11791 * minsyms.c (BUNCH_SIZE): Update comment.
11792 (~minimal_symbol_reader): Remove old comment.
11793 (compact_minimal_symbols): Update comment.
11794 (minimal_symbol_reader::install): Remove old comment. Update
11797 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11799 * s390-linux-nat.c: Add include.
11801 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11803 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11804 Call linux_get_hwcap.
11805 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11807 (aarch64_linux_get_hwcap): Remove function.
11808 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11810 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11812 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11813 * linux-tdep.c (linux_get_hwcap): Add function.
11814 (linux_get_hwcap2): Likewise.
11815 * linux-tdep.h (linux_get_hwcap): Add declaration.
11816 (linux_get_hwcap2): Likewise.
11817 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11818 (ppc_linux_get_hwcap2): Likewise.
11819 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11821 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11822 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11823 (ppc_linux_nat_target::read_description): Likewise.
11824 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11825 * s390-linux-nat.c: Likewise.
11826 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11828 2019-03-24 Tom Tromey <tom@tromey.com>
11830 * ada-lang.c (standard_lookup): Simplify initialization.
11831 (ada_lookup_symbol_nonlocal): Simplify return.
11832 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11833 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11834 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11835 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11837 * solib.c (solib_global_lookup): Simplify.
11838 * symtab.c (null_block_symbol): Remove.
11839 (symbol_cache_lookup): Simplify returns.
11840 (lookup_language_this): Simplify returns.
11841 (lookup_symbol_aux): Simplify return.
11842 (lookup_local_symbol): Simplify returns.
11843 (lookup_global_symbol_from_objfile): Simplify return.
11844 (lookup_symbol_in_objfile_symtabs)
11845 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11846 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11847 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11848 * cp-namespace.c (cp_lookup_bare_symbol)
11849 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11850 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11851 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11852 (cp_lookup_symbol_via_imports): Simplify initialization.
11853 (find_symbol_in_baseclass): Likewise.
11854 * symtab.h (null_block_symbol): Remove.
11855 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11856 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11857 (d_lookup_symbol_module): Likewise.
11858 (find_symbol_in_baseclass): Simplify initialization.
11860 2019-03-24 Tom Tromey <tom@tromey.com>
11862 * expression.h: Don't include symtab.h.
11863 (struct block): Forward declare.
11865 2019-03-24 Tom Tromey <tom@tromey.com>
11867 * c-exp.y (typebase): Remove casts.
11868 * gdbtypes.c (lookup_unsigned_typename, )
11869 (lookup_signed_typename): Remove cast.
11870 * eval.c (parse_to_comma_and_eval): Remove cast.
11871 * parse.c (write_dollar_variable): Remove cast.
11872 * block.h (struct block) <superblock>: Now const.
11873 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11874 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11875 (map_block): Make "block" const.
11876 * symfile.h (struct quick_symbol_functions)
11877 <map_matching_symbols>: Constify block argument to "callback".
11878 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11880 (find_pc_sect_compunit_symtab): Make "b" const.
11881 (find_symbol_at_address): Likewise.
11882 (search_symbols): Likewise.
11883 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11884 (dw2_debug_names_lookup_symbol): Likewise.
11885 (dw2_map_matching_symbols): Update.
11886 * p-valprint.c (pascal_val_print): Remove "block".
11887 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11888 (aux_add_nonlocal_symbols): Make "block" const.
11889 (resolve_subexp): Remove cast.
11890 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11892 (iterate_over_file_blocks): Likewise.
11893 * f-exp.y (%union) <bval>: Remove.
11894 * coffread.c (patch_opaque_types): Make "b" const.
11895 * spu-tdep.c (spu_catch_start): Make "block" const.
11896 * c-valprint.c (print_unpacked_pointer): Remove "block".
11897 * symmisc.c (dump_symtab_1): Make "b" const.
11898 (block_depth): Make "block" const.
11899 * d-exp.y (%union) <bval>: Remove.
11900 * cp-support.h (cp_lookup_rtti_type): Update.
11901 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11902 * psymtab.c (psym_lookup_symbol): Make "block" const.
11903 (maintenance_check_psymtabs): Make "b" const.
11904 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11905 (enumerate_locals, enumerate_args): Update.
11906 * python/py-symtab.c (stpy_global_block): Make "block" const.
11907 (stpy_static_block): Likewise.
11908 * inline-frame.c (block_starting_point_at): Make "new_block"
11910 * block.c (find_block_in_blockvector): Make return type const.
11911 (blockvector_for_pc_sect): Make "b" const.
11912 (find_block_in_blockvector): Make "b" const.
11914 2019-03-23 Tom Tromey <tom@tromey.com>
11916 * varobj.c (varobj_create): Update.
11917 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11918 * printcmd.c (display_command, do_one_display): Don't reset
11920 * parser-defs.h (enum innermost_block_tracker_type): Move to
11922 (innermost_block): Update comment.
11923 * parse.c (parse_exp_1): Add tracker_types parameter.
11924 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11925 tracker_types parameter. Reset innermost_block.
11926 (parse_exp_in_context): Remove.
11927 (parse_expression_for_completion): Update.
11928 * objfiles.c (~objfile): Don't reset expression_context_block or
11930 * expression.h (enum innermost_block_tracker_type): Move from
11932 (parse_exp_1): Add tracker_types parameter.
11933 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11934 reset innermost_block.
11936 2019-03-23 Tom Tromey <tom@tromey.com>
11938 * objfiles.h: Include bcache.h.
11940 2019-03-23 Tom Tromey <tom@tromey.com>
11942 * linespec.c (get_current_search_block): Use
11943 scoped_restore_current_language.
11944 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11946 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11947 Jiong Wang <jiong.wang@arm.com>
11949 * aarch64-linux-tdep.c
11950 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11952 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11954 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11955 Jiong Wang <jiong.wang@arm.com>
11957 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11959 (aarch64_analyze_prologue_test): Add PACIASP test.
11960 (aarch64_prologue_prev_register): Unmask PC value.
11962 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11963 Jiong Wang <jiong.wang@arm.com>
11965 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11966 (aarch64_dwarf2_prev_register): Unmask PC value.
11967 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11968 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11969 DW_CFA_AARCH64_negate_ra_state.
11970 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11972 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11973 Jiong Wang <jiong.wang@arm.com>
11975 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11977 (aarch64_pseudo_register_name): Likewise.
11978 (aarch64_pseudo_register_type): Likewise.
11979 (aarch64_pseudo_register_reggroup_p): Likewise.
11980 (aarch64_gdbarch_init): Add pauth registers.
11981 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11982 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11983 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11984 (struct gdbarch_tdep): Add regnum for ra_state.
11986 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11987 Jiong Wang <jiong.wang@arm.com>
11989 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11991 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11992 Jiong Wang <jiong.wang@arm.com>
11994 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11996 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11997 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11998 (aarch64_gdbarch_init): Add puth registers.
11999 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12000 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12001 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12003 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12004 Jiong Wang <jiong.wang@arm.com>
12006 * aarch64-linux-nat.c
12007 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12008 * aarch64-linux-tdep.c
12009 (aarch64_linux_core_read_description): Likewise.
12010 (aarch64_linux_get_hwcap): New function.
12011 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12012 (aarch64_linux_get_hwcap): New declaration.
12014 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12015 Jiong Wang <jiong.wang@arm.com>
12017 * aarch64-linux-nat.c
12018 (aarch64_linux_nat_target::read_description): Add pauth param.
12019 * aarch64-linux-tdep.c
12020 (aarch64_linux_core_read_description): Likewise.
12021 * aarch64-tdep.c (struct target_desc): Add in pauth.
12022 (aarch64_read_description): Add pauth param.
12023 (aarch64_gdbarch_init): Likewise.
12024 * aarch64-tdep.h (aarch64_read_description): Likewise.
12025 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12026 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12027 * features/Makefile: Add new files.
12028 * features/aarch64-pauth.c: New file.
12029 * features/aarch64-pauth.xml: New file.
12031 2019-03-20 Tom Tromey <tromey@adacore.com>
12033 * infrun.c (handle_inferior_event): Rename from
12034 handle_inferior_event_1. Create a scoped_value_mark.
12035 (handle_inferior_event): Remove.
12037 2019-03-19 Tom Tromey <tromey@adacore.com>
12039 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12040 * infrun.h (print_stop_event): Add "displays" parameter.
12041 * infrun.c (print_stop_event): Add "displays" parameter.
12043 2019-03-19 Pedro Alves <palves@redhat.com>
12045 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12046 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12047 to -1. Fix TABs vs spaces.
12048 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12049 * tui/tui-out.h (tui_ui_out) Add intro comments.
12050 <m_line, m_start_of_line>: In-class initialize, and add describing
12053 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12055 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12057 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12059 2019-03-18 Pedro Alves <palves@redhat.com>
12060 Eli Zaretskii <eliz@gnu.org>
12062 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12063 m_line and m_start_of_line.
12065 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12067 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12068 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12069 it returns a newline. This fixes a regression in TU mode, whereby
12070 the next line is output on the same screen line as the user input.
12072 2019-03-18 Tom Tromey <tromey@adacore.com>
12074 * minsyms.c (minimal_symbol_reader::install): Remove call to
12077 2019-03-18 Pedro Alves <palves@redhat.com>
12079 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12081 (apply_style): New, factored out from ...
12082 (apply_ansi_escape): ... this. Handle reverse video mode.
12083 (tui_set_reverse_mode): New function.
12084 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12085 * tui/tui-winsource.c (tui_show_source_line): Use
12086 tui_set_reverse_mode instead of setting A_STANDOUT.
12087 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12088 New setter methods.
12090 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12092 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12095 2019-03-18 Tom Tromey <tromey@adacore.com>
12097 * ada-lang.c (empty_array): Add "high" parameter.
12098 (ada_evaluate_subexp): Update.
12100 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12102 * unittests/string_view-selftests.c: Define
12103 _initialize_string_view_selftests unconditionally.
12105 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12108 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12110 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12113 * windows-nat.c (display_selector): Fix format specifiers.
12115 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12117 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12118 tui_refill_source_window instead of tui_refresh_win, to update the
12119 current execution line. This fixes redisplay of the current line
12120 when stepping through the code with "next" or "step".
12122 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12124 * source-cache.c (source_cache::get_source_lines): Call
12125 find_source_lines to initialize s->nlines. This fixes vertical
12126 scrolling of TUI source window when the DOWN arrow is pressed.
12128 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12130 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12131 linux-thread-db.c (_initialize_thread_db): Likewise.
12133 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12135 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12136 wclrtoeol in tui_show_source_line". This reverts changes made in
12137 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12139 2019-03-15 Tom Tromey <tom@tromey.com>
12141 * symtab.h (struct minimal_symbol): Derive from
12142 general_symbol_info.
12143 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12144 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12145 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12146 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12147 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12148 (MSYMBOL_SEARCH_NAME): Update.
12149 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12150 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12151 * minsyms.c (minimal_symbol_reader::record_full): Update.
12153 2019-03-15 Tom Tromey <tom@tromey.com>
12155 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12157 2019-03-15 Tom Tromey <tom@tromey.com>
12159 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12160 unique_xmalloc_ptr.
12161 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12163 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12164 (build_minimal_symbol_hash_tables)
12165 (minimal_symbol_reader::install): Update.
12167 2019-03-15 Tom Tromey <tom@tromey.com>
12169 * symtab.c (create_demangled_names_hash): Update.
12170 (symbol_set_names): Update.
12171 * objfiles.h (struct objfile_per_bfd_storage)
12172 <demangled_names_hash>: Now an htab_up.
12173 * objfiles.c (objfile_per_bfd_storage): Simplify.
12175 2019-03-15 Tom Tromey <tom@tromey.com>
12177 * objfiles.h (struct objfile_per_bfd_storage): Declare
12179 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12181 (get_objfile_bfd_data): Use new. Don't initialize
12183 (free_objfile_per_bfd_storage): Remove.
12184 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12186 2019-03-15 Tom Tromey <tom@tromey.com>
12188 * symfile.c (reread_symbols): Update.
12189 * objfiles.c (objfile::objfile): Update.
12190 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12191 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12193 (minimal_symbol_reader::install): Update.
12194 (terminate_minimal_symbol_table): Remove.
12195 * jit.c (jit_object_close_impl): Update.
12197 2019-03-15 Tom Tromey <tom@tromey.com>
12199 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12202 2019-03-15 Tom Tromey <tom@tromey.com>
12204 * objfiles.h (struct objfile_per_bfd_storage)
12205 <demangled_hash_languages>: Now a bitset.
12206 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12207 (lookup_minimal_symbol): Update.
12209 2019-03-15 Tom Tromey <tom@tromey.com>
12211 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12212 Don't return the symbol.
12213 * coffread.c (record_minimal_symbol): Use record_full.
12215 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12217 The MS-Windows port of ncurses fails to switch to a color pair if
12218 one or both of the colors are the implicit default colors. This
12219 change records the default colors when TUI is initialized, and
12220 then specifies them explicitly when a color pair uses the default
12221 colors. This allows color styling in TUI mode on MS-Windows.
12223 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12225 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12226 colors in ncurses_norm_attr.
12227 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12228 "none", replace it with the default color recorded in
12231 2019-03-14 Tom Tromey <tromey@adacore.com>
12233 * source-cache.h (class source_cache) <get_source_lines>: Return
12235 * source-cache.c (source_cache::extract_lines): Handle case where
12236 first_pos==npos. Return std::string.
12237 (source_cache::get_source_lines): Update.
12239 2019-03-14 Tom Tromey <tromey@adacore.com>
12241 * NEWS: Add item for "style sources" commands.
12242 * source-cache.c (source_cache::get_source_lines): Check
12244 * cli/cli-style.c (source_styling): New global.
12245 (_initialize_cli_style): Add "style sources" commands.
12246 (show_style_sources): New function.
12247 * cli/cli-style.h (source_styling): Declare.
12249 2019-03-14 Pedro Alves <palves@redhat.com>
12250 Tom Tromey <tromey@adacore.com>
12252 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12253 * tui/tui-winsource.c (tui_refill_source_window): New function,
12255 (tui_horizontal_source_scroll): ... here. Move some logic.
12256 * cli/cli-style.c (set_style_enabled): Notify new observable.
12257 * tui/tui-hooks.c (tui_redisplay_source): New function.
12258 (tui_attach_detach_observers): Attach or detach
12259 tui_redisplay_source.
12260 * observable.h (source_styling_changed): New observable.
12261 * observable.c: Define source_styling_changed observable.
12263 2019-03-13 Tom Tromey <tromey@adacore.com>
12265 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12266 (i386_gnu_nat_target::store_registers): Update.
12267 * target-debug.h (target_debug_print_std_string): New macro.
12268 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12269 * windows-tdep.c (display_one_tib): Update.
12270 * tui/tui-stack.c (tui_make_status_line): Update.
12271 * top.c (print_inferior_quit_action): Update.
12272 * thread.c (thr_try_catch_cmd): Update.
12273 (add_thread_with_info): Update.
12274 (thread_target_id_str): Update.
12275 (thr_try_catch_cmd): Update.
12276 (thread_command): Update.
12277 (thread_find_command): Update.
12278 * record-btrace.c (record_btrace_target::info_record)
12279 (record_btrace_resume_thread, record_btrace_target::resume)
12280 (record_btrace_cancel_resume, record_btrace_step_thread)
12281 (record_btrace_target::wait, record_btrace_target::wait)
12282 (record_btrace_target::wait, record_btrace_target::stop): Update.
12283 * progspace.c (print_program_space): Update.
12284 * process-stratum-target.c
12285 (process_stratum_target::thread_address_space): Update.
12286 * linux-fork.c (linux_fork_mourn_inferior)
12287 (detach_checkpoint_command, info_checkpoints_command)
12288 (linux_fork_context): Update.
12289 (linux_fork_detach): Update.
12290 (class scoped_switch_fork_info): Update.
12291 (delete_checkpoint_command): Update.
12292 * infrun.c (follow_fork_inferior): Update.
12293 (follow_fork_inferior): Update.
12294 (proceed_after_vfork_done): Update.
12295 (handle_vfork_child_exec_or_exit): Update.
12296 (follow_exec): Update.
12297 (displaced_step_prepare_throw): Update.
12298 (displaced_step_restore): Update.
12299 (start_step_over): Update.
12300 (resume_1): Update.
12301 (clear_proceed_status_thread): Update.
12303 (print_target_wait_results): Update.
12304 (do_target_wait): Update.
12305 (context_switch): Update.
12306 (stop_all_threads): Update.
12307 (restart_threads): Update.
12308 (finish_step_over): Update.
12309 (handle_signal_stop): Update.
12310 (switch_back_to_stepped_thread): Update.
12311 (keep_going_pass_signal): Update.
12312 (print_exited_reason): Update.
12313 (normal_stop): Update.
12314 * inferior.c (inferior_pid_to_str): Change return type.
12315 (print_selected_inferior): Update.
12316 (add_inferior): Update.
12317 (detach_inferior): Update.
12318 * dummy-frame.c (fprint_dummy_frames): Update.
12319 * dcache.c (dcache_info_1): Update.
12320 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12321 (btrace_fetch, btrace_clear): Update.
12322 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12323 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12325 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12326 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12327 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12328 * gdbarch.c, gdbarch.h: Rebuild.
12329 * gdbarch.sh (core_pid_to_str): Change return type.
12330 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12332 (windows_nat_target::pid_to_str): Change return type.
12333 (windows_delete_thread): Update.
12334 (windows_nat_target::attach): Update.
12335 (windows_nat_target::files_info): Update.
12336 * target-delegates.c: Rebuild.
12337 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12339 (sol_thread_target::pid_to_str): Change return type.
12340 * remote.c (class remote_target) <pid_to_str>: Change return
12342 (remote_target::pid_to_str): Change return type.
12343 (extended_remote_target::attach, remote_target::remote_stop_ns)
12344 (remote_target::remote_notif_remove_queued_reply)
12345 (remote_target::push_stop_reply, remote_target::disable_btrace):
12347 (extended_remote_target::attach): Update.
12348 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12350 (gdbsim_target::pid_to_str): Change return type.
12351 * ravenscar-thread.c (struct ravenscar_thread_target)
12352 <pid_to_str>: Change return type.
12353 (ravenscar_thread_target::pid_to_str): Change return type.
12354 * procfs.c (class procfs_target) <pid_to_str>: Change return
12356 (procfs_target::pid_to_str): Change return type.
12357 (procfs_target::attach): Update.
12358 (procfs_target::detach): Update.
12359 (procfs_target::fetch_registers): Update.
12360 (procfs_target::store_registers): Update.
12361 (procfs_target::wait): Update.
12362 (procfs_target::files_info): Update.
12363 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12364 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12366 (nto_procfs_target::pid_to_str): Change return type.
12367 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12368 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12370 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12371 (exit_lwp): Update.
12372 (attach_proc_task_lwp_callback, get_detach_signal)
12373 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12374 (linux_nat_target::resume, wait_lwp, stop_callback)
12375 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12376 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12377 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12378 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12379 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12381 (inf_ptrace_target::attach): Update.
12382 (inf_ptrace_target::files_info): Update.
12383 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12385 (go32_nat_target::pid_to_str): Change return type.
12386 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12387 (gnu_nat_target::wait): Update.
12388 (gnu_nat_target::wait): Update.
12389 (gnu_nat_target::resume): Update.
12390 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12391 (fbsd_nat_target::wait): Update.
12392 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12394 (darwin_nat_target::attach): Update.
12395 * corelow.c (class core_target) <pid_to_str>: Change return type.
12396 (core_target::pid_to_str): Change return type.
12397 * target.c (normal_pid_to_str): Change return type.
12398 (default_pid_to_str): Likewise.
12399 (target_pid_to_str): Change return type.
12400 (target_translate_tls_address): Update.
12401 (target_announce_detach): Update.
12402 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12404 (bsd_uthread_target::pid_to_str): Change return type.
12405 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12407 (bsd_kvm_target::pid_to_str): Change return type.
12408 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12410 (aix_thread_target::pid_to_str): Change return type.
12411 * target.h (struct target_ops) <pid_to_str>: Change return type.
12412 (target_pid_to_str, normal_pid_to_str): Likewise.
12413 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12415 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12417 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12419 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12421 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12423 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12426 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12428 * NEWS: Mention that the new default MI version is 3. Mention
12429 changes to the output of commands and events that deal with
12430 multi-location breakpoints.
12431 * breakpoint.c: Include "mi/mi-out.h".
12432 (print_one_breakpoint): Change output syntax if using MI version
12434 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12436 (mi_multi_location_breakpoint_output_fixed): New.
12437 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12438 (mi_cmd_fix_multi_location_breakpoint_output): New.
12439 (mi_multi_location_breakpoint_output_fixed): New.
12440 * mi/mi-cmds.c (mi_cmds): Register command
12441 -fix-multi-location-breakpoint-output.
12442 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12445 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12447 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12448 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12449 instantiate mi_ui_out based on interpreter name.
12450 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12451 * mi/mi-main.c (mi_load_progress): Likewise.
12453 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12455 * NEWS: Combine separate "New targets" sections for 8.3.
12457 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12459 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12460 (ppcfbsd_init_abi): Install gdbarch
12461 "fetch_tls_load_module_address" and "get_thread_local_address"
12464 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12466 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12467 (riscv_fbsd_init_abi): Install gdbarch
12468 "fetch_tls_load_module_address" and "get_thread_local_address"
12471 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12473 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12474 (i386fbsd_init_abi): Install gdbarch
12475 "fetch_tls_load_module_address" and "get_thread_local_address"
12478 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12480 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12481 (amd64fbsd_init_abi): Install gdbarch
12482 "fetch_tls_load_module_address" and "get_thread_local_address"
12485 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12487 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12488 (struct fbsd_pspace_data): New type.
12489 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12490 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12491 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12492 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12493 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12495 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12497 * gdbtypes.c (lookup_struct_elt): New function.
12498 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12499 * gdbtypes.h (struct struct_elt): New type.
12500 (lookup_struct_elt): New prototype.
12502 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12504 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12505 remove disabled code block.
12507 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12509 * gdbarch.sh (get_thread_local_address): New method.
12510 * gdbarch.h, gdbarch.c: Regenerate.
12511 * target.c (target_translate_tls_address): Use
12512 gdbarch_get_thread_local_address if present instead of
12513 target::get_thread_local_address.
12515 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12517 * target.h (target::get_thread_local_address): Update comment.
12519 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12521 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12522 objfile->separate_debug_objfile_backlink if not NULL.
12524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12526 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12527 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12528 (amd64bsd_store_inferior_registers): Likewise.
12529 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12530 Enable segment base registers.
12531 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12532 PT_GETFSBASE and PT_GETGSBASE.
12533 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12535 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12536 segment base registers.
12537 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12539 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12541 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12542 Update calls to i386_target_description to add 'segments'
12544 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12545 add segment base registers.
12546 * arch/i386.c (i386_create_target_description): Add 'segments'
12547 parameter to enable segment base registers.
12548 * arch/i386.h (i386_create_target_description): Likewise.
12549 * features/i386/32bit-segments.xml: New file.
12550 * features/i386/32bit-segments.c: Generate.
12551 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12552 call to i386_target_description to add 'segments' parameter.
12553 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12554 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12555 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12556 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12557 if feature is present.
12558 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12559 Add 'segments' parameter to call to i386_target_description.
12560 (i386_target_description): Add 'segments' parameter to enable
12561 segment base registers.
12562 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12563 to call to i386_target_description.
12564 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12565 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12566 Define I386_NUM_REGS.
12567 (i386_target_description): Add 'segments' parameter to enable
12568 segment base registers.
12570 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12573 * source-cache.c: #undef open and close, to avoid unresolved
12574 externals during linking.
12576 2019-03-12 Tom Tromey <tromey@adacore.com>
12578 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12579 const. Add initializers.
12580 (_initialize_remote): Don't initialize ptid globals.
12582 2019-03-12 Pedro Alves <palves@redhat.com>
12584 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12586 2019-03-12 Pedro Alves <palves@redhat.com>
12588 * cp-name-parser.y (main): Remove unused 'len' variable.
12590 2019-03-12 Tom Tromey <tromey@adacore.com>
12592 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12593 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12595 2019-03-12 Tom Tromey <tromey@adacore.com>
12597 * linux-nat.c (iterate_over_lwps): Update.
12598 (stop_callback): Remove parameter.
12599 (stop_wait_callback, detach_callback, resume_set_callback)
12600 (select_singlestep_lwp_callback, set_ignore_sigint)
12601 (status_callback, resumed_callback, resume_clear_callback)
12602 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12604 (linux_nat_target::detach, linux_nat_target::resume)
12605 (linux_stop_and_wait_all_lwps, select_event_lwp)
12606 (linux_nat_filter_event, linux_nat_wait_1)
12607 (linux_nat_target::kill, linux_nat_target::stop)
12608 (linux_nat_target::stop): Update.
12609 (linux_nat_resume_callback): Change type.
12610 (resume_stopped_resumed_lwps, count_events_callback)
12611 (select_event_lwp_callback): Likewise.
12612 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12613 * arm-linux-nat.c (struct update_registers_data): Remove.
12614 (update_registers_callback): Change type.
12615 (arm_linux_insert_hw_breakpoint1): Update.
12616 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12618 (x86_linux_dr_set_addr): Update.
12619 (x86_linux_dr_set_control): Update.
12620 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12621 (iterate_over_lwps): Use gdb::function_view.
12622 * nat/aarch64-linux-hw-point.c (struct
12623 aarch64_dr_update_callback_param): Remove.
12624 (debug_reg_change_callback): Change type.
12625 (aarch64_notify_debug_reg_change): Update.
12626 * s390-linux-nat.c (s390_refresh_per_info): Update.
12628 2019-03-11 Tom Tromey <tromey@adacore.com>
12630 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12631 redundant assignment to "this_cu".
12633 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12635 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12637 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12639 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12641 (rank_one_type): ... this.
12643 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12645 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12647 (rank_one_type): ... this.
12649 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12651 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12653 (rank_one_type): ... this.
12655 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12657 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12659 (rank_one_type): ... this.
12661 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12663 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12665 (rank_one_type): ... this.
12667 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12669 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12671 (rank_one_type): ... this.
12673 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12675 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12677 (rank_one_type): ... this.
12679 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12681 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12683 (rank_one_type): ... this.
12685 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12687 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12689 (rank_one_type): ... this.
12691 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12693 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12695 (rank_one_type): ... this.
12697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12699 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12701 (rank_one_type): ... this.
12703 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12705 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12707 (rank_one_type): ... this.
12709 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12711 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12712 inferior-events' shows the example events.
12714 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12716 Support styling on native MS-Windows console
12719 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12720 on MS-Windows if $TERM is not defined.
12722 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12724 * posix-hdep.c (gdb_console_fputs):
12725 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12727 * ui-file.h (gdb_console_fputs): Add prototype.
12729 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12730 back to fputs only if the former returns zero.
12732 2019-03-07 Tom Tromey <tom@tromey.com>
12734 * symmisc.c (print_symbol_bcache_statistics): Update.
12735 (print_objfile_statistics): Update.
12736 * symfile.c (allocate_symtab): Update.
12737 * stabsread.c: Don't include bcache.h.
12738 * psymtab.h (struct psymbol_bcache): Don't declare.
12739 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12740 (psymbol_bcache_init, psymbol_bcache_free)
12741 (psymbol_bcache_get_bcache): Don't declare.
12742 * psymtab.c (struct psymbol_bcache): Remove.
12743 (psymtab_storage::psymtab_storage): Update.
12744 (psymtab_storage::~psymtab_storage): Update.
12745 (psymbol_bcache_init, psymbol_bcache_free)
12746 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12747 (add_psymbol_to_bcache): Update.
12748 (allocate_psymtab): Update.
12749 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12750 macro_cache>: No longer pointers.
12751 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12752 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12753 * macrotab.c (macro_bcache): Update.
12754 * macroexp.c: Don't include bcache.h.
12755 * gdbtypes.c (check_types_worklist): Update.
12756 (types_deeply_equal): Remove TRY/CATCH. Update.
12757 * elfread.c (elf_symtab_read): Update.
12758 * dwarf2read.c: Don't include bcache.h.
12759 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12760 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12761 (print_bcache_statistics, bcache_memory_used): Don't declare.
12762 (struct bcache): Move from bcache.c. Add constructor, destructor,
12763 methods. Rename all data members.
12764 * bcache.c (struct bcache): Move to bcache.h.
12765 (bcache::expand_hash_table): Rename from expand_hash_table.
12767 (bcache::insert): Rename from bcache_full.
12768 (bcache::compare): Rename from bcache_compare.
12769 (bcache_xmalloc): Remove.
12770 (bcache::~bcache): Rename from bcache_xfree.
12771 (bcache::print_statistics): Rename from print_bcache_statistics.
12772 (bcache::memory_used): Rename from bcache_memory_used.
12774 2019-03-07 Pedro Alves <palves@redhat.com>
12776 * infrun.c (normal_stop): Also check for
12777 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12779 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12781 * f-lang.c (value_from_host_double): Moved to...
12782 * value.c (value_from_host_double): ...here.
12783 * value.h (value_from_host_double): Declare.
12784 * guile/scm-math.c (vlscm_convert_typed_number): Use
12785 value_from_host_double.
12786 (vlscm_convert_number): Likewise.
12787 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12788 * python/py-value.c (convert_value_from_python): Likewise.
12790 2019-03-06 Tom Tromey <tom@tromey.com>
12792 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12794 2019-03-06 Tom Tromey <tom@tromey.com>
12796 * utils.h (free_current_contents): Don't declare.
12797 * utils.c (free_current_contents): Remove.
12799 2019-03-06 Tom Tromey <tom@tromey.com>
12801 * top.c (quit_force): Update.
12802 * main.c (captured_command_loop): Update.
12803 * common/new-op.c (operator new): Update.
12804 * common/common-exceptions.c (struct catcher)
12805 <save_cleanup_chain>: Remove member.
12806 (exceptions_state_mc_init): Update.
12807 (exception_try_scope_entry): Return nullptr.
12808 (exception_try_scope_exit, exception_rethrow)
12809 (throw_exception_sjlj, throw_exception_cxx): Update.
12810 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12811 (all_cleanups, do_cleanups, discard_cleanups)
12812 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12813 (restore_cleanups, restore_final_cleanups): Don't declare.
12814 (do_final_cleanups): Remove parameter.
12815 * common/cleanups.c (cleanup_chain, make_cleanup)
12816 (make_cleanup_dtor, all_cleanups, do_cleanups)
12817 (discard_my_cleanups, discard_cleanups)
12818 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12819 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12820 (null_cleanup): Remove.
12821 (do_final_cleanups): Remove parameter.
12823 2019-03-06 Tom Tromey <tom@tromey.com>
12825 * remote.c (remote_target::remote_parse_stop_reply): Use
12826 unique_xmalloc_ptr.
12828 2019-03-06 Tom Tromey <tom@tromey.com>
12830 * stabsread.c (struct stabs_field_info): Rename from field_info.
12831 <list, fnlist>: Add initializers.
12832 <obstack>: New member.
12833 (read_member_functions, read_struct_fields, read_baseclasses):
12834 Allocate on obstack. Don't use cleanups.
12835 (read_one_struct_field, read_member_functions, read_struct_fields)
12836 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12837 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12838 (read_struct_type): Update.
12840 2019-03-06 Tom Tromey <tom@tromey.com>
12842 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12843 * common/filestuff.h (make_cleanup_close): Don't declare.
12844 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12847 2019-03-06 Tom Tromey <tom@tromey.com>
12849 * solib-aix.c: Use make_scope_exit.
12851 2019-03-06 Tom Tromey <tom@tromey.com>
12853 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12854 Use make_scope_exit.
12856 2019-03-06 Tom Tromey <tom@tromey.com>
12858 * solib-svr4.c (disable_probes_interface): Remove parameter.
12859 (svr4_handle_solib_event): Use make_scope_exit.
12861 2019-03-06 Tom Tromey <tom@tromey.com>
12863 * remote.c (struct stop_reply_deleter): Remove.
12864 (stop_reply_up): Update.
12865 (struct stop_reply): Derive from notif_event. Don't typedef.
12866 <regcache>: Now a std::vector.
12867 (stop_reply_xfree): Remove.
12868 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12869 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12870 (remote_target::discard_pending_stop_replies): Use delete.
12871 (remote_target::remote_parse_stop_reply): Update.
12872 (remote_target::process_stop_reply): Update.
12873 * remote-notif.h (struct notif_event): Add virtual destructor.
12874 Remove "dtr" member.
12875 (struct notif_client) <alloc_event>: Return a unique_ptr.
12876 (notif_event_xfree): Don't declare.
12877 (notif_event_up): New typedef.
12878 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12879 (notif_event_xfree, do_notif_event_xfree): Remove.
12880 (remote_notif_state_xfree): Update.
12882 2019-03-06 Tom Tromey <tom@tromey.com>
12884 * infrun.c (displaced_step_clear_cleanup): Now a
12885 forward_scope_exit type.
12886 (displaced_step_prepare_throw): Update.
12887 (displaced_step_fixup): Update.
12889 2019-03-06 Tom Tromey <tom@tromey.com>
12891 * inferior.h (class inferior): Update comment.
12892 * gdbthread.h (class thread_info): Update comment.
12894 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12895 Tom Tromey <tom@tromey.com>
12897 * stabsread.h (struct stab_section_list): Remove.
12898 (coffstab_build_psymtabs): Update.
12899 * dbxread.c (symbuf_sections): Now a std::vector.
12900 (sect_idx): New global.
12901 (fill_symbuf): Update.
12902 (coffstab_build_psymtabs): Change type of stabsects parameter.
12904 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12906 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12907 (coff_locate_sections): Update.
12908 (coff_symfile_read): Remove cleanups. Update.
12909 (init_stringtab): Add storage parameter.
12910 (free_stringtab, free_stringtab_cleanup): Remove.
12911 (init_lineno): Add storage parameter.
12912 (free_linetab, free_linetab_cleanup): Remove.
12914 2019-03-06 Pedro Alves <palves@redhat.com>
12916 * linux-fork.c (fork_info::clobber_regs): Delete.
12917 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12918 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12920 (scoped_switch_fork_info::scoped_switch_fork_info)
12921 (checkpoint_command, linux_fork_context): Adjust
12922 fork_save_infrun_state calls.
12924 2019-03-06 Pedro Alves <palves@redhat.com>
12926 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12927 (inf_has_multiple_threads): Return 'bool' and rewrite using
12928 inferior_info::threads().
12930 2019-03-06 Pedro Alves <palves@redhat.com>
12932 * linux-fork.c: Include <list>.
12933 (fork_list): Now a std::list instance.
12934 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12935 (forks_exist_p, find_last_fork): Adjust.
12936 (new_fork): Delete.
12938 (add_fork): Adjust.
12939 (free_fork): Delete, folded into fork_info::~fork_info().
12940 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12942 (init_fork_list): Delete.
12943 (linux_fork_killall, linux_fork_mourn_inferior)
12944 (linux_fork_detach, info_checkpoints_command): Adjust.
12945 (_initialize_linux_fork): No longer call init_fork_list.
12947 2019-03-06 Pedro Alves <palves@redhat.com>
12949 * linux-fork.c (new_fork): New, split out of ...
12950 (add_fork): ... this. Return void. Move "first fork" special
12951 case from here, to ...
12952 (checkpoint_command): ... here.
12953 * linux-linux.h (add_fork): Return void.
12955 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12957 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12959 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12960 Chris January <chris.january@arm.com>
12961 David Lecomber <david.lecomber@arm.com>
12963 * f-exp.y: New token, UNOP_INTRINSIC.
12964 (exp): New pattern using UNOP_INTRINSIC token.
12965 (f77_keywords): Add 'abs' keyword.
12966 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12967 (value_from_host_double): New function.
12968 (evaluate_subexp_f): Support UNOP_ABS.
12970 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12972 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12975 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12977 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12978 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12979 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12981 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12983 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12985 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12986 Chris January <chris.january@arm.com>
12988 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12989 * f-exp.y: Define 'KIND' token.
12990 (exp): New pattern for KIND expressions.
12991 (ptype): Handle types with a kind extension.
12992 (direct_abs_decl): Extend to spot kind extensions.
12993 (f77_keywords): Add 'kind' to the list.
12994 (push_kind_type): New function.
12995 (convert_to_kind_type): New function.
12996 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12997 * parse.c (operator_length_standard): Likewise.
12998 * parser-defs.h (enum type_pieces): Add tp_kind.
12999 * std-operator.def: Add UNOP_KIND.
13001 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13003 * f-exp.y (f_parse): Set yydebug.
13005 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13007 * f-lang.c (evaluate_subexp_f): New function.
13008 (exp_descriptor_f): New global.
13009 (f_language_defn): Use exp_descriptor_f instead of
13010 exp_descriptor_standard.
13012 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13014 * f-exp.y (struct token): Add comments.
13015 (dot_ops): Remove uppercase versions and the end marker.
13016 (f77_keywords): Likewise.
13017 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13018 entries in the dot_ops array are case insensitive, and use
13019 strncasecmp to compare strings. Also some whitespace cleanup in
13020 this area. Similar for the f77_keywords array, except entries in
13021 this list might be case sensitive.
13023 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13025 * f-exp.y (struct f77_boolean_val): Add comments.
13026 (boolean_values): Remove uppercase versions, and end marker.
13027 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13028 and use strncasecmp to achieve case insensitivity. Additionally,
13029 perform whitespace cleanup around this code.
13031 2019-03-06 Tom Tromey <tromey@adacore.com>
13033 * remote-sim.c (gdbsim_target_open): Use result of
13036 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13037 Dirk Schubert <dirk.schubert@arm.com>
13038 Chris January <chris.january@arm.com>
13040 * eval.c (evaluate_subexp_standard): Call Fortran argument
13042 * f-lang.c (struct value): A value which can be passed into a
13043 Fortran function call.
13044 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13046 (struct type): Value ready for a Fortran function call.
13047 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13049 * f-lang.h (fortran_argument_convert): Declaration.
13050 (fortran_preserve_arg_pointer): Declaration.
13051 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13053 2019-03-05 Tom Tromey <tromey@adacore.com>
13055 * python/py-prettyprint.c (print_string_repr): Remove #if.
13056 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13058 2019-03-05 Tom Tromey <tromey@adacore.com>
13060 * target.c (the_dummy_target): Move later. Change type to
13062 (initialize_targets): Don't initialize the_dummy_target.
13064 2019-03-05 Tom Tromey <tromey@adacore.com>
13066 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13067 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13069 2019-03-05 Tom Tromey <tromey@adacore.com>
13071 * windows-nat.c (windows_nat_target::attach)
13072 (windows_nat_target::detach): Don't call gdb_flush.
13073 * valprint.c (generic_val_print, val_print, val_print_string):
13074 Don't call gdb_flush.
13075 * utils.c (defaulted_query): Don't call gdb_flush.
13076 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13077 * target.c (target_announce_detach): Don't call gdb_flush.
13078 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13079 * remote.c (extended_remote_target::attach): Don't call
13081 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13082 * printcmd.c (do_examine): Don't call gdb_flush.
13083 (info_display_command): Don't call gdb_flush.
13084 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13085 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13086 * memattr.c (info_mem_command): Don't call gdb_flush.
13087 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13088 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13089 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13090 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13091 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13092 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13093 (gnu_nat_target::detach): Don't call gdb_flush.
13094 * f-valprint.c (f_val_print): Don't call gdb_flush.
13095 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13096 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13097 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13099 * c-valprint.c (c_val_print): Don't call gdb_flush.
13100 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13102 2019-03-05 Tom Tromey <tromey@adacore.com>
13104 * varobj.c (update_dynamic_varobj_children): Update.
13105 (install_default_visualizer): Use reset, not release.
13106 * value.c (set_internalvar): Update.
13107 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13108 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13109 ATTRIBUTE_UNUSED_RESULT.
13111 2019-03-05 Tom Tromey <tromey@adacore.com>
13113 * remote.c (class scoped_remote_fd) <release>: Add
13114 ATTRIBUTE_UNUSED_RESULT.
13116 2019-03-05 Tom Tromey <tromey@adacore.com>
13118 * macroexp.c (struct macro_buffer) <release>: Add
13119 ATTRIBUTE_UNUSED_RESULT.
13121 2019-03-05 Tom Tromey <tromey@adacore.com>
13123 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13124 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13125 ATTRIBUTE_UNUSED_RESULT.
13127 2019-03-05 Tom Tromey <tromey@adacore.com>
13129 * common/scoped_fd.h (class scoped_fd) <release>: Add
13130 ATTRIBUTE_UNUSED_RESULT.
13132 2019-03-05 Tom Tromey <tromey@adacore.com>
13134 * parser-defs.h (struct parser_state) <release>: Add
13135 ATTRIBUTE_UNUSED_RESULT.
13137 2019-03-05 Tom Tromey <tromey@adacore.com>
13139 * utils.h (class gdb_argv) <release>: Add
13140 ATTRIBUTE_UNUSED_RESULT.
13141 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13143 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13145 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13146 for-loop range, to avoid compiler warnings.
13148 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13149 avoid compiler warnings about unused variables.
13151 * NEWS: Mention end of support for native debugging on MS-Windows
13155 * common/netstuff.c:
13156 * gdbserver/gdbreplay.c
13157 * gdbserver/remote-utils.c:
13159 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13160 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13161 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13162 'getaddrinfo' and 'freeaddrinfo' were not available before
13163 Windows XP, and mingw.org's MinGW headers by default define
13164 _WIN32_WINNT to 0x500.
13166 2019-03-01 Gary Benson <gbenson@redhat.com>
13168 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13170 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13171 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13174 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13175 set_sigint_trap, clear_sigint_trap.
13177 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13179 * target.c (target_detach): Clear the regcache and the
13182 2019-02-27 Pedro Alves <palves@redhat.com>
13184 * utils.c (set_screen_size): When we cap the height/width sizes,
13185 tweak the corresponding command variable to show "unlimited":
13187 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13188 Pedro Alves <palves@redhat.com>
13190 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13191 before calling rl_set_screen_size.
13193 2019-02-27 Tom Tromey <tromey@adacore.com>
13195 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13197 * python/py-value.c: Remove Python 2.4 workaround.
13198 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13200 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13201 Python 2.4 workaround.
13202 * python/python-internal.h: Remove Python 2.4 comment.
13203 (Py_ssize_t): Don't define.
13204 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13205 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13206 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13207 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13208 * python/python.c (do_start_initialization): Remove Python 2.4
13210 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13211 (print_children): Remove Python 2.4 workaround.
13212 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13214 (CHARBUFFERPROC_NAME): Remove.
13215 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13216 Python 2.4 workaround.
13218 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13220 * NEWS: Note minimum Python version.
13222 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13224 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13225 code from these functions. Remove corresponding ifdefs. Use
13226 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13227 Remove gotos and target of gotos.
13228 (infpy_search_memory): Likewise.
13230 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13232 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13233 (hppa_gdbarch_init): Don't register deleted functions with
13236 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13238 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13239 (h8300_unwind_sp): Delete.
13240 (h8300_dummy_id): Delete.
13241 (h8300_gdbarch_init): Don't register deleted functions with
13244 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13246 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13247 (ft32_unwind_pc): Delete.
13248 (ft32_unwind_sp): Delete.
13249 (ft32_gdbarch_init): Don't register deleted functions with
13252 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13254 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13255 (frv_unwind_pc): Delete.
13256 (frv_unwind_sp): Delete.
13257 (frv_gdbarch_init): Don't register deleted functions with
13260 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13262 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13263 (riscv_unwind_pc): Delete.
13264 (riscv_unwind_sp): Delete.
13265 (riscv_gdbarch_init): Don't register deleted functions with
13268 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13270 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13271 (csky_unwind_pc): Delete.
13272 (csky_unwind_sp): Delete.
13273 (csky_gdbarch_init): Don't register deleted functions with
13276 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13278 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13279 (cris_unwind_pc): Delete.
13280 (cris_unwind_sp): Delete.
13281 (cris_gdbarch_init): Don't register deleted functions with
13284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13286 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13287 (bfin_unwind_pc): Delete.
13288 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13292 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13293 (arm_unwind_pc): Delete.
13294 (arm_unwind_sp): Delete.
13295 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13297 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13299 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13300 (arc_unwind_pc): Delete.
13301 (arc_unwind_sp): Delete.
13302 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13304 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13306 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13307 (alpha_unwind_pc): Delete.
13308 (alpha_gdbarch_init): Don't register deleted functions with
13311 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13313 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13314 (aarch64_unwind_pc): Delete.
13315 (aarch64_unwind_sp): Delete.
13316 (aarch64_gdbarch_init): Don't register deleted functions with
13319 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13321 * gdbtypes.c (type_align): Don't consider static members when
13322 computing structure alignment.
13324 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13326 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13327 return 0 for other types.
13328 * arch-utils.c (default_type_align): Always return 0.
13329 * gdbarch.h: Regenerate.
13330 * gdbarch.sh (type_align): Extend comment.
13331 * gdbtypes.c (type_align): Add additional comments, always call
13332 gdbarch_type_align before applying the default rules.
13333 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13334 generic code will then apply a suitable default.
13335 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13336 types, return 0 for other types.
13338 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13340 * NEWS: Create a new section for the next release branch.
13341 Rename the section of the current branch, now that it has
13344 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13346 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13347 * version.in: Bump version to 8.3.50.DATE-git.
13349 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13351 * aix-thread.c (ptid_cmp): Remove unused variable.
13352 (get_signaled_thread): Likewise.
13353 (store_regs_user_thread): Likewise.
13354 (store_regs_kernel_thread): Likewise.
13355 (fetch_regs_kernel_thread): Remove shadowed variable.
13357 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13359 * features/riscv/32bit-cpu.xml: Add register numbers.
13360 * features/riscv/32bit-fpu.c: Regenerate.
13361 * features/riscv/32bit-fpu.xml: Add register numbers.
13362 * features/riscv/64bit-cpu.xml: Add register numbers.
13363 * features/riscv/64bit-fpu.c: Regenerate.
13364 * features/riscv/64bit-fpu.xml: Add register numbers.
13366 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13368 * NEWS: Mention two argument form of gdb.Value constructor.
13369 * python/py-value.c (convert_buffer_and_type_to_value): New
13371 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13372 Add support for handling an optional second argument. Call
13373 convert_buffer_and_type_to_value as appropriate.
13374 * python/python-internal.h (Py_buffer_deleter): New struct.
13375 (Py_buffer_up): New typedef.
13377 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13379 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13380 instead of releasing ownership.
13382 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13384 * dwarf2read.c (open_and_init_dwp_file): Call
13385 elf_numsections instead of bfd_count_sections to initialize
13386 dwp_file->num_sections.
13388 2019-02-25 Tom Tromey <tromey@adacore.com>
13390 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13392 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13394 * gcore.in: Add '--readnever' option when invoking GDB.
13396 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13398 * MAINTAINERS: Update my email address.
13400 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13402 * build-id.c (build_id_to_debug_bfd_1): New function.
13403 (build_id_to_debug_bfd): Look for separate debug file in
13406 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13408 * gdbarch.sh: Update the copyright year range that is placed into
13411 2019-02-22 Keith Seitz <keiths@redhat.com>
13414 * linespec.c (create_sals_line_offset): Search for the default
13415 symtab's filename instead of its fullname.
13417 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13419 * NEWS: Update style defaults.
13421 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13423 * main.c (captured_main_1): Disable styling in batch mode.
13425 2019-02-20 Tom Tromey <tom@tromey.com>
13427 * symtab.c (symtab_symbol_info): Fix typos.
13429 2019-02-20 Tom Tromey <tromey@adacore.com>
13431 * findcmd.c (_initialize_mem_search): Use upper case for
13432 metasyntactic variables.
13434 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13436 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13437 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13439 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13441 * top.h (source_file_name): Change to std::string.
13442 * top.c (source_file_name): Likewise.
13443 (command_line_input): Adjust.
13444 * cli/cli-script.c (script_from_file): Adjust.
13446 2019-02-19 Tom Tromey <tromey@adacore.com>
13448 * ravenscar-thread.c
13449 (ravenscar_thread_target::update_thread_list): Don't call
13450 ada_build_task_list.
13451 * ada-lang.h (ada_build_task_list): Don't declare.
13452 * ada-tasks.c (struct ada_tasks_inferior_data)
13453 <task_list_valid_p>: Now bool.
13454 (read_known_tasks, ada_task_list_changed)
13455 (ada_tasks_invalidate_inferior_data): Update.
13456 (read_known_tasks_array): Return bool.
13457 (read_known_tasks_list): Likewise.
13458 (read_known_tasks): Return void.
13459 (ada_build_task_list): Now static.
13461 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13463 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13464 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13466 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13468 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13469 variant for ada_tasks_pspace_data_handle and
13470 ada_tasks_inferior_data_handle.
13471 (ada_tasks_pspace_data_cleanup): New function.
13472 (ada_tasks_inferior_data_cleanup): New function.
13474 2019-02-17 Tom Tromey <tom@tromey.com>
13476 * macrotab.h (macro_source_fullname): Return a std::string.
13477 * macrotab.c (macro_include, check_for_redefinition)
13478 (macro_undef, macro_lookup_definition, foreach_macro)
13479 (foreach_macro_in_scope): Update.
13480 (macro_source_fullname): Return a std::string.
13481 * macrocmd.c (show_pp_source_pos): Update.
13483 2019-02-17 Tom Tromey <tom@tromey.com>
13485 * macrocmd.c (show_pp_source_pos): Style the file names.
13487 2019-02-17 Tom Tromey <tom@tromey.com>
13490 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13492 2019-02-17 Tom Tromey <tom@tromey.com>
13494 * ada-lang.c (user_select_syms): Use filtered printing.
13495 * utils.c (wrap_style): New global.
13496 (desired_style): Remove.
13497 (emit_style_escape): Add stream parameter.
13498 (set_output_style, reset_terminal_style, prompt_for_continue):
13500 (flush_wrap_buffer): Only flush gdb_stdout.
13501 (wrap_here): Set wrap_style.
13502 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13503 treat escape sequences as a character. Change when wrap buffer is
13505 (fputs_styled): Do not set the output style when the default is
13507 * ui-style.h (struct ui_file_style) <is_default>: New method.
13508 * source.c (print_source_lines_base): Emit escape sequences in one
13511 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13513 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13514 integers and enumeration types.
13516 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13518 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13519 instead of lookup_symbol_in_language
13520 (do_exact_match): New function.
13521 (ada_get_symbol_name_matcher): Return do_exact_match when
13522 doing a verbatim match.
13524 2019-02-15 Tom Tromey <tromey@adacore.com>
13526 * ravenscar-thread.c (ravenscar_thread_target::resume)
13527 (ravenscar_thread_target::wait): Special case wildcard requests.
13529 2019-02-15 Tom Tromey <tromey@adacore.com>
13531 * ravenscar-thread.c (base_ptid): Remove.
13532 (struct ravenscar_thread_target) <close>: New method.
13533 <m_base_ptid>: New member.
13534 <update_inferior_ptid, active_task, task_is_currently_active,
13535 runtime_initialized>: Declare methods.
13536 <ravenscar_thread_target>: Add constructor.
13537 (ravenscar_thread_target::task_is_currently_active)
13538 (ravenscar_thread_target::update_inferior_ptid)
13539 (ravenscar_runtime_initialized): Rename. Now methods.
13540 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13541 (ravenscar_thread_target::update_thread_list): Update.
13542 (ravenscar_thread_target::active_task): Now method.
13543 (ravenscar_thread_target::store_registers)
13544 (ravenscar_thread_target::prepare_to_store)
13545 (ravenscar_thread_target::prepare_to_store)
13546 (ravenscar_thread_target::mourn_inferior): Update.
13547 (ravenscar_inferior_created): Use "new" to create target.
13548 (ravenscar_thread_target::get_ada_task_ptid): Update.
13549 (_initialize_ravenscar): Don't initialize base_ptid.
13550 (ravenscar_ops): Remove global.
13552 2019-02-15 Tom Tromey <tromey@adacore.com>
13554 * target.h (push_target): Declare new overload.
13555 * target.c (push_target): New overload, taking an rvalue reference.
13556 * remote.c (remote_target::open_1): Use push_target overload.
13557 * corelow.c (core_target_open): Use push_target overload.
13559 2019-02-15 Tom Tromey <tromey@adacore.com>
13561 * ravenscar-thread.c (is_ravenscar_task)
13562 (ravenscar_task_is_currently_active): Return bool.
13563 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13564 (_initialize_ravenscar): Remove "(void)".
13565 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13568 2019-02-15 Tom Tromey <tromey@adacore.com>
13570 * ravenscar-thread.c (ravenscar_runtime_initializer)
13571 (has_ravenscar_runtime, get_running_thread_id)
13572 (ravenscar_thread_target::resume): Fix indentation.
13574 2019-02-15 Tom Tromey <tromey@adacore.com>
13576 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13577 from ravenscar_arch_ops.
13578 (sparc_ravenscar_ops::fetch_registers)
13579 (sparc_ravenscar_ops::store_registers): Now methods.
13580 (sparc_ravenscar_prepare_to_store): Remove.
13581 (sparc_ravenscar_ops): Redefine.
13582 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13583 methods and destructor. Remove members.
13584 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13585 (ravenscar_thread_target::store_registers)
13586 (ravenscar_thread_target::prepare_to_store): Update.
13587 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13589 (struct ppc_ravenscar_powerpc_ops): Derive from
13590 ravenscar_arch_ops.
13591 (ppc_ravenscar_powerpc_ops::fetch_registers)
13592 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13593 (ppc_ravenscar_powerpc_ops): Redefine.
13594 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13595 (ppc_ravenscar_e500_ops::fetch_registers)
13596 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13597 (ppc_ravenscar_e500_ops): Redefine.
13598 * aarch64-ravenscar-thread.c
13599 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13600 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13601 (aarch64_ravenscar_fetch_registers)
13602 (aarch64_ravenscar_store_registers): Now methods.
13603 (aarch64_ravenscar_ops): Redefine.
13605 2019-02-15 Tom Tromey <tromey@adacore.com>
13607 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13608 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13609 (ravenscar_thread_target::stopped_by_watchpoint)
13610 (ravenscar_thread_target::stopped_data_address)
13611 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13613 2019-02-15 Tom Tromey <tromey@adacore.com>
13615 * ravenscar-thread.c: Fix some typos.
13617 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13618 Tom Tromey <tromey@adacore.com>
13620 * ada-lang.c (ada_exception_sal): Change addr_string to a
13622 (create_ada_exception_catchpoint): Update.
13624 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13625 Tom Tromey <tromey@adacore.com>
13627 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13628 (bp_location_ops): Remove.
13629 (base_breakpoint_allocate_location): Update.
13630 (free_bp_location): Update.
13631 * ada-lang.c (class ada_catchpoint_location)
13632 <ada_catchpoint_location>: Remove ops parameter.
13633 (ada_catchpoint_location_dtor): Remove.
13634 (ada_catchpoint_location_ops): Remove.
13635 (allocate_location_exception): Update.
13636 * breakpoint.h (struct bp_location_ops): Remove.
13637 (class bp_location) <bp_location>: Remove bp_location_ops
13639 <~bp_location>: Add destructor.
13642 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13643 Pedro Alves <palves@redhat.com>
13645 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13648 2019-02-14 David Michael <fedora.dm0@gmail.com>
13649 Samuel Thibault <samuel.thibault@gnu.org>
13650 Thomas Schwinge <thomas@codesourcery.com>
13652 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13653 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13655 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13657 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13658 (check_empty): Use "const char *".
13660 * gnu-nat.c (gnu_nat_target::detach): Instead of
13661 'detach_inferior (pid)' call
13662 'detach_inferior (find_inferior_pid (pid))'.
13664 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13665 'nat/fork-inferior.o'.
13666 * gnu-nat.c: #include "nat/fork-inferior.h".
13668 * gnu-nat.c (gnu_nat_target::detach): Instead of
13669 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13670 * gnu-nat.h: #include "inf-child.h".
13671 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13672 'i386_gnu_nat_target::fetch_registers'.
13673 (gnu_store_registers): Rename/move to
13674 'i386_gnu_nat_target::store_registers'.
13676 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13677 * gnu-nat.h (mach_thread_info): New function.
13678 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13680 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13682 2019-02-14 Frederic Konrad <konrad@adacore.com>
13684 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13686 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13688 * windows-nat.c (windows_add_thread): Add new parameter
13689 "main_thread_p" with default value set to false. Update
13690 function documentation as well as all callers.
13691 (windows_delete_thread): Likewise.
13692 (fake_create_process): Update call to windows_add_thread.
13693 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13694 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13695 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13696 call to windows_delete_thread.
13698 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13700 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13702 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13704 * symfile.c (find_separate_debug_file): Use canonical path of
13705 sysroot with child_path instead of gdb_sysroot if it is valid.
13707 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13709 * symfile.c (find_separate_debug_file): Use child_path to
13710 determine if an object file is under a sysroot.
13712 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13714 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13715 unittests/child-path-selftests.c.
13716 * common/pathstuff.c (child_path): New function.
13717 * common/pathstuff.h (child_path): New prototype.
13718 * unittests/child-path-selftests.c: New file.
13720 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13722 * symfile.c (find_separate_debug_file): Look for separate debug
13723 files in debug directories under the sysroot.
13725 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13727 * symtab.h (struct minimal_symbol data_p): New const method.
13728 (struct minimal_symbol text_p): Likewise.
13729 * symtab.c (output_source_filename): Use file name style
13730 to print file name.
13731 (print_symbol_info): Likewise.
13732 (print_msymbol_info): Use address style to print addresses.
13733 Use function name style to print executable text symbols.
13734 (expand_symtab_containing_pc): Use data_p.
13735 (find_pc_sect_compunit_symtab): Likewise.
13737 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13739 * breakpoint.c (describe_other_breakpoints): Use address style
13740 to print addresses.
13741 (say_where): Likewise.
13743 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13745 * ada-typeprint.c (print_func_type): Print function name
13746 style to print function name.
13747 * c-typeprint.c (c_print_type_1): Likewise.
13749 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13751 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13754 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13756 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13759 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13761 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13762 TYPE_CODE_REF types.
13764 2019-02-08 Jim Wilson <jimw@sifive.com>
13766 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13767 (riscv_linux_fregset): New.
13768 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13770 2019-02-07 Tom Tromey <tom@tromey.com>
13772 * thread.c (thread_cancel_execution_command): Update.
13773 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13775 (struct thread_fsm_ops): Remove.
13776 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13777 (thread_fsm_should_stop, thread_fsm_return_value)
13778 (thread_fsm_set_finished, thread_fsm_finished_p)
13779 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13781 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13782 * infrun.c (clear_proceed_status_thread)
13783 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13784 (print_stop_event): Update.
13785 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13787 (step_command_fsm_ops): Remove.
13788 (new_step_command_fsm): Remove.
13790 (step_command_fsm::should_stop): Rename from
13791 step_command_fsm_should_stop.
13792 (step_command_fsm::clean_up): Rename from
13793 step_command_fsm_clean_up.
13794 (step_command_fsm::do_async_reply_reason): Rename from
13795 step_command_fsm_async_reply_reason.
13796 (struct until_next_fsm): Inherit from thread_fsm. Add
13798 (until_next_fsm_ops): Remove.
13799 (new_until_next_fsm): Remove.
13800 (until_next_fsm::should_stop): Rename from
13801 until_next_fsm_should_stop.
13802 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13803 (until_next_fsm::do_async_reply_reason): Rename from
13804 until_next_fsm_async_reply_reason.
13805 (struct finish_command_fsm): Inherit from thread_fsm. Add
13806 constructor. Change type of breakpoint.
13807 (finish_command_fsm_ops): Remove.
13808 (new_finish_command_fsm): Remove.
13809 (finish_command_fsm::should_stop): Rename from
13810 finish_command_fsm_should_stop.
13811 (finish_command_fsm::clean_up): Rename from
13812 finish_command_fsm_clean_up.
13813 (finish_command_fsm::return_value): Rename from
13814 finish_command_fsm_return_value.
13815 (finish_command_fsm::do_async_reply_reason): Rename from
13816 finish_command_fsm_async_reply_reason.
13817 (finish_command): Update.
13818 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13820 (call_thread_fsm_ops): Remove.
13821 (call_thread_fsm::call_thread_fsm): Rename from
13822 new_call_thread_fsm.
13823 (call_thread_fsm::should_stop): Rename from
13824 call_thread_fsm_should_stop.
13825 (call_thread_fsm::should_notify_stop): Rename from
13826 call_thread_fsm_should_notify_stop.
13827 (run_inferior_call, call_function_by_hand_dummy): Update.
13828 * cli/cli-interp.c (should_print_stop_to_console): Update.
13829 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13830 Add constructor. Change type of location_breakpoint,
13832 (until_break_fsm_ops): Remove.
13833 (new_until_break_fsm): Remove.
13834 (until_break_fsm::should_stop): Rename from
13835 until_break_fsm_should_stop.
13836 (until_break_fsm::clean_up): Rename from
13837 until_break_fsm_clean_up.
13838 (until_break_fsm::do_async_reply_reason): Rename from
13839 until_break_fsm_async_reply_reason.
13840 (until_break_command): Update.
13841 * thread-fsm.c: Remove.
13842 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13844 2019-02-07 Tom Tromey <tom@tromey.com>
13846 * yy-remap.h: Add include guard.
13847 * xtensa-tdep.h: Add include guard.
13848 * xcoffread.h: Rename include guard.
13849 * varobj-iter.h: Add include guard.
13850 * tui/tui.h: Rename include guard.
13851 * tui/tui-winsource.h: Rename include guard.
13852 * tui/tui-wingeneral.h: Rename include guard.
13853 * tui/tui-windata.h: Rename include guard.
13854 * tui/tui-win.h: Rename include guard.
13855 * tui/tui-stack.h: Rename include guard.
13856 * tui/tui-source.h: Rename include guard.
13857 * tui/tui-regs.h: Rename include guard.
13858 * tui/tui-out.h: Rename include guard.
13859 * tui/tui-layout.h: Rename include guard.
13860 * tui/tui-io.h: Rename include guard.
13861 * tui/tui-hooks.h: Rename include guard.
13862 * tui/tui-file.h: Rename include guard.
13863 * tui/tui-disasm.h: Rename include guard.
13864 * tui/tui-data.h: Rename include guard.
13865 * tui/tui-command.h: Rename include guard.
13866 * tic6x-tdep.h: Add include guard.
13867 * target/waitstatus.h: Rename include guard.
13868 * target/wait.h: Rename include guard.
13869 * target/target.h: Rename include guard.
13870 * target/resume.h: Rename include guard.
13871 * target-float.h: Rename include guard.
13872 * stabsread.h: Add include guard.
13873 * rs6000-tdep.h: Add include guard.
13874 * riscv-fbsd-tdep.h: Add include guard.
13875 * regformats/regdef.h: Rename include guard.
13876 * record.h: Rename include guard.
13877 * python/python.h: Rename include guard.
13878 * python/python-internal.h: Rename include guard.
13879 * python/py-stopevent.h: Rename include guard.
13880 * python/py-ref.h: Rename include guard.
13881 * python/py-record.h: Rename include guard.
13882 * python/py-record-full.h: Rename include guard.
13883 * python/py-record-btrace.h: Rename include guard.
13884 * python/py-instruction.h: Rename include guard.
13885 * python/py-events.h: Rename include guard.
13886 * python/py-event.h: Rename include guard.
13887 * procfs.h: Add include guard.
13888 * proc-utils.h: Add include guard.
13889 * p-lang.h: Add include guard.
13890 * or1k-tdep.h: Rename include guard.
13891 * observable.h: Rename include guard.
13892 * nto-tdep.h: Rename include guard.
13893 * nat/x86-linux.h: Rename include guard.
13894 * nat/x86-linux-dregs.h: Rename include guard.
13895 * nat/x86-gcc-cpuid.h: Add include guard.
13896 * nat/x86-dregs.h: Rename include guard.
13897 * nat/x86-cpuid.h: Rename include guard.
13898 * nat/ppc-linux.h: Rename include guard.
13899 * nat/mips-linux-watch.h: Rename include guard.
13900 * nat/linux-waitpid.h: Rename include guard.
13901 * nat/linux-ptrace.h: Rename include guard.
13902 * nat/linux-procfs.h: Rename include guard.
13903 * nat/linux-osdata.h: Rename include guard.
13904 * nat/linux-nat.h: Rename include guard.
13905 * nat/linux-namespaces.h: Rename include guard.
13906 * nat/linux-btrace.h: Rename include guard.
13907 * nat/glibc_thread_db.h: Rename include guard.
13908 * nat/gdb_thread_db.h: Rename include guard.
13909 * nat/gdb_ptrace.h: Rename include guard.
13910 * nat/fork-inferior.h: Rename include guard.
13911 * nat/amd64-linux-siginfo.h: Rename include guard.
13912 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13913 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13914 * nat/aarch64-linux.h: Rename include guard.
13915 * nat/aarch64-linux-hw-point.h: Rename include guard.
13916 * mn10300-tdep.h: Add include guard.
13917 * mips-linux-tdep.h: Add include guard.
13918 * mi/mi-parse.h: Rename include guard.
13919 * mi/mi-out.h: Rename include guard.
13920 * mi/mi-main.h: Rename include guard.
13921 * mi/mi-interp.h: Rename include guard.
13922 * mi/mi-getopt.h: Rename include guard.
13923 * mi/mi-console.h: Rename include guard.
13924 * mi/mi-common.h: Rename include guard.
13925 * mi/mi-cmds.h: Rename include guard.
13926 * mi/mi-cmd-break.h: Rename include guard.
13927 * m2-lang.h: Add include guard.
13928 * location.h: Rename include guard.
13929 * linux-record.h: Rename include guard.
13930 * linux-nat.h: Add include guard.
13931 * linux-fork.h: Add include guard.
13932 * i386-darwin-tdep.h: Rename include guard.
13933 * hppa-linux-offsets.h: Add include guard.
13934 * guile/guile.h: Rename include guard.
13935 * guile/guile-internal.h: Rename include guard.
13936 * gnu-nat.h: Rename include guard.
13937 * gdb-stabs.h: Rename include guard.
13938 * frv-tdep.h: Add include guard.
13939 * f-lang.h: Add include guard.
13940 * event-loop.h: Add include guard.
13941 * darwin-nat.h: Rename include guard.
13942 * cp-abi.h: Rename include guard.
13943 * config/sparc/nm-sol2.h: Rename include guard.
13944 * config/nm-nto.h: Rename include guard.
13945 * config/nm-linux.h: Add include guard.
13946 * config/i386/nm-i386gnu.h: Rename include guard.
13947 * config/djgpp/nl_types.h: Rename include guard.
13948 * config/djgpp/langinfo.h: Rename include guard.
13949 * compile/gcc-cp-plugin.h: Add include guard.
13950 * compile/gcc-c-plugin.h: Add include guard.
13951 * compile/compile.h: Rename include guard.
13952 * compile/compile-object-run.h: Rename include guard.
13953 * compile/compile-object-load.h: Rename include guard.
13954 * compile/compile-internal.h: Rename include guard.
13955 * compile/compile-cplus.h: Rename include guard.
13956 * compile/compile-c.h: Rename include guard.
13957 * common/xml-utils.h: Rename include guard.
13958 * common/x86-xstate.h: Rename include guard.
13959 * common/version.h: Rename include guard.
13960 * common/vec.h: Rename include guard.
13961 * common/tdesc.h: Rename include guard.
13962 * common/selftest.h: Rename include guard.
13963 * common/scoped_restore.h: Rename include guard.
13964 * common/scoped_mmap.h: Rename include guard.
13965 * common/scoped_fd.h: Rename include guard.
13966 * common/safe-iterator.h: Rename include guard.
13967 * common/run-time-clock.h: Rename include guard.
13968 * common/refcounted-object.h: Rename include guard.
13969 * common/queue.h: Rename include guard.
13970 * common/ptid.h: Rename include guard.
13971 * common/print-utils.h: Rename include guard.
13972 * common/preprocessor.h: Rename include guard.
13973 * common/pathstuff.h: Rename include guard.
13974 * common/observable.h: Rename include guard.
13975 * common/netstuff.h: Rename include guard.
13976 * common/job-control.h: Rename include guard.
13977 * common/host-defs.h: Rename include guard.
13978 * common/gdb_wait.h: Rename include guard.
13979 * common/gdb_vecs.h: Rename include guard.
13980 * common/gdb_unlinker.h: Rename include guard.
13981 * common/gdb_unique_ptr.h: Rename include guard.
13982 * common/gdb_tilde_expand.h: Rename include guard.
13983 * common/gdb_sys_time.h: Rename include guard.
13984 * common/gdb_string_view.h: Rename include guard.
13985 * common/gdb_splay_tree.h: Rename include guard.
13986 * common/gdb_setjmp.h: Rename include guard.
13987 * common/gdb_ref_ptr.h: Rename include guard.
13988 * common/gdb_optional.h: Rename include guard.
13989 * common/gdb_locale.h: Rename include guard.
13990 * common/gdb_assert.h: Rename include guard.
13991 * common/filtered-iterator.h: Rename include guard.
13992 * common/filestuff.h: Rename include guard.
13993 * common/fileio.h: Rename include guard.
13994 * common/environ.h: Rename include guard.
13995 * common/common-utils.h: Rename include guard.
13996 * common/common-types.h: Rename include guard.
13997 * common/common-regcache.h: Rename include guard.
13998 * common/common-inferior.h: Rename include guard.
13999 * common/common-gdbthread.h: Rename include guard.
14000 * common/common-exceptions.h: Rename include guard.
14001 * common/common-defs.h: Rename include guard.
14002 * common/common-debug.h: Rename include guard.
14003 * common/cleanups.h: Rename include guard.
14004 * common/buffer.h: Rename include guard.
14005 * common/btrace-common.h: Rename include guard.
14006 * common/break-common.h: Rename include guard.
14007 * cli/cli-utils.h: Rename include guard.
14008 * cli/cli-style.h: Rename include guard.
14009 * cli/cli-setshow.h: Rename include guard.
14010 * cli/cli-script.h: Rename include guard.
14011 * cli/cli-interp.h: Rename include guard.
14012 * cli/cli-decode.h: Rename include guard.
14013 * cli/cli-cmds.h: Rename include guard.
14014 * charset-list.h: Add include guard.
14015 * buildsym-legacy.h: Rename include guard.
14016 * bfin-tdep.h: Add include guard.
14017 * ax.h: Rename include guard.
14018 * arm-linux-tdep.h: Add include guard.
14019 * arm-fbsd-tdep.h: Add include guard.
14020 * arch/xtensa.h: Rename include guard.
14021 * arch/tic6x.h: Add include guard.
14022 * arch/i386.h: Add include guard.
14023 * arch/arm.h: Rename include guard.
14024 * arch/arm-linux.h: Rename include guard.
14025 * arch/arm-get-next-pcs.h: Rename include guard.
14026 * arch/amd64.h: Add include guard.
14027 * arch/aarch64-insn.h: Rename include guard.
14028 * arch-utils.h: Rename include guard.
14029 * annotate.h: Add include guard.
14030 * amd64-darwin-tdep.h: Rename include guard.
14031 * aarch64-linux-tdep.h: Add include guard.
14032 * aarch64-fbsd-tdep.h: Add include guard.
14033 * aarch32-linux-nat.h: Add include guard.
14035 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14037 * macrotab.c (macro_define_internal): New function that
14038 factorizes macro_define_object_internal and macro_define_function
14040 (macro_define_object_internal): Use macro_define_internal.
14041 (macro_define_function): Likewise.
14043 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14045 * macrocmd.c (extract_identifier): Return
14046 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14049 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14051 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14053 2019-02-05 Tom Tromey <tom@tromey.com>
14055 * target.c (target_stack::unpush): Move assertion earlier.
14057 2019-01-30 Tom Tromey <tom@tromey.com>
14060 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14061 (gdbpy_parse_and_eval): Likewise.
14062 * python/python-internal.h (gdbpy_allow_threads): New class.
14064 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14066 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14067 (aarch64_fbsd_fpregmap): Move earlier.
14068 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14069 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14070 instead of individual calls to trad_frame_set_reg_addr.
14071 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14073 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14074 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14075 instead of individual calls to trad_frame_set_reg_addr.
14077 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14079 * CONTRIBUTE: Replace contribution list with wiki link.
14081 2019-01-25 Tom Tromey <tom@tromey.com>
14083 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14085 2019-01-25 Tom Tromey <tom@tromey.com>
14087 * xtensa-linux-nat.c: Fix common/ includes.
14088 * xml-support.h: Fix common/ includes.
14089 * xml-support.c: Fix common/ includes.
14090 * x86-linux-nat.c: Fix common/ includes.
14091 * windows-nat.c: Fix common/ includes.
14092 * varobj.h: Fix common/ includes.
14093 * varobj.c: Fix common/ includes.
14094 * value.c: Fix common/ includes.
14095 * valops.c: Fix common/ includes.
14096 * utils.c: Fix common/ includes.
14097 * unittests/xml-utils-selftests.c: Fix common/ includes.
14098 * unittests/utils-selftests.c: Fix common/ includes.
14099 * unittests/unpack-selftests.c: Fix common/ includes.
14100 * unittests/tracepoint-selftests.c: Fix common/ includes.
14101 * unittests/style-selftests.c: Fix common/ includes.
14102 * unittests/string_view-selftests.c: Fix common/ includes.
14103 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14104 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14105 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14106 * unittests/rsp-low-selftests.c: Fix common/ includes.
14107 * unittests/parse-connection-spec-selftests.c: Fix common/
14109 * unittests/optional-selftests.c: Fix common/ includes.
14110 * unittests/offset-type-selftests.c: Fix common/ includes.
14111 * unittests/observable-selftests.c: Fix common/ includes.
14112 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14113 * unittests/memrange-selftests.c: Fix common/ includes.
14114 * unittests/memory-map-selftests.c: Fix common/ includes.
14115 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14116 * unittests/function-view-selftests.c: Fix common/ includes.
14117 * unittests/environ-selftests.c: Fix common/ includes.
14118 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14119 * unittests/common-utils-selftests.c: Fix common/ includes.
14120 * unittests/cli-utils-selftests.c: Fix common/ includes.
14121 * unittests/array-view-selftests.c: Fix common/ includes.
14122 * ui-file.c: Fix common/ includes.
14123 * tui/tui-io.c: Fix common/ includes.
14124 * tracepoint.h: Fix common/ includes.
14125 * tracepoint.c: Fix common/ includes.
14126 * tracefile-tfile.c: Fix common/ includes.
14127 * top.h: Fix common/ includes.
14128 * top.c: Fix common/ includes.
14129 * thread.c: Fix common/ includes.
14130 * target/waitstatus.h: Fix common/ includes.
14131 * target/waitstatus.c: Fix common/ includes.
14132 * target.h: Fix common/ includes.
14133 * target.c: Fix common/ includes.
14134 * target-memory.c: Fix common/ includes.
14135 * target-descriptions.c: Fix common/ includes.
14136 * symtab.h: Fix common/ includes.
14137 * symfile.c: Fix common/ includes.
14138 * stap-probe.c: Fix common/ includes.
14139 * spu-linux-nat.c: Fix common/ includes.
14140 * sparc-nat.c: Fix common/ includes.
14141 * source.c: Fix common/ includes.
14142 * solib.c: Fix common/ includes.
14143 * solib-target.c: Fix common/ includes.
14144 * ser-unix.c: Fix common/ includes.
14145 * ser-tcp.c: Fix common/ includes.
14146 * ser-pipe.c: Fix common/ includes.
14147 * ser-base.c: Fix common/ includes.
14148 * selftest-arch.c: Fix common/ includes.
14149 * s12z-tdep.c: Fix common/ includes.
14150 * rust-exp.y: Fix common/ includes.
14151 * rs6000-aix-tdep.c: Fix common/ includes.
14152 * riscv-tdep.c: Fix common/ includes.
14153 * remote.c: Fix common/ includes.
14154 * remote-notif.h: Fix common/ includes.
14155 * remote-fileio.h: Fix common/ includes.
14156 * remote-fileio.c: Fix common/ includes.
14157 * regcache.h: Fix common/ includes.
14158 * regcache.c: Fix common/ includes.
14159 * record-btrace.c: Fix common/ includes.
14160 * python/python.c: Fix common/ includes.
14161 * python/py-type.c: Fix common/ includes.
14162 * python/py-inferior.c: Fix common/ includes.
14163 * progspace.h: Fix common/ includes.
14164 * producer.c: Fix common/ includes.
14165 * procfs.c: Fix common/ includes.
14166 * proc-api.c: Fix common/ includes.
14167 * printcmd.c: Fix common/ includes.
14168 * ppc-linux-nat.c: Fix common/ includes.
14169 * parser-defs.h: Fix common/ includes.
14170 * osdata.c: Fix common/ includes.
14171 * obsd-nat.c: Fix common/ includes.
14172 * nat/x86-linux.c: Fix common/ includes.
14173 * nat/x86-linux-dregs.c: Fix common/ includes.
14174 * nat/x86-dregs.h: Fix common/ includes.
14175 * nat/x86-dregs.c: Fix common/ includes.
14176 * nat/ppc-linux.c: Fix common/ includes.
14177 * nat/mips-linux-watch.h: Fix common/ includes.
14178 * nat/mips-linux-watch.c: Fix common/ includes.
14179 * nat/linux-waitpid.c: Fix common/ includes.
14180 * nat/linux-ptrace.h: Fix common/ includes.
14181 * nat/linux-ptrace.c: Fix common/ includes.
14182 * nat/linux-procfs.c: Fix common/ includes.
14183 * nat/linux-personality.c: Fix common/ includes.
14184 * nat/linux-osdata.c: Fix common/ includes.
14185 * nat/linux-namespaces.c: Fix common/ includes.
14186 * nat/linux-btrace.h: Fix common/ includes.
14187 * nat/linux-btrace.c: Fix common/ includes.
14188 * nat/fork-inferior.c: Fix common/ includes.
14189 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14190 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14191 * nat/aarch64-linux.c: Fix common/ includes.
14192 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14193 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14194 * namespace.h: Fix common/ includes.
14195 * mips-linux-tdep.c: Fix common/ includes.
14196 * minsyms.c: Fix common/ includes.
14197 * mi/mi-parse.h: Fix common/ includes.
14198 * mi/mi-main.c: Fix common/ includes.
14199 * mi/mi-cmd-env.c: Fix common/ includes.
14200 * memrange.h: Fix common/ includes.
14201 * memattr.c: Fix common/ includes.
14202 * maint.h: Fix common/ includes.
14203 * maint.c: Fix common/ includes.
14204 * main.c: Fix common/ includes.
14205 * machoread.c: Fix common/ includes.
14206 * location.c: Fix common/ includes.
14207 * linux-thread-db.c: Fix common/ includes.
14208 * linux-nat.c: Fix common/ includes.
14209 * linux-fork.c: Fix common/ includes.
14210 * inline-frame.c: Fix common/ includes.
14211 * infrun.c: Fix common/ includes.
14212 * inflow.c: Fix common/ includes.
14213 * inferior.h: Fix common/ includes.
14214 * inferior.c: Fix common/ includes.
14215 * infcmd.c: Fix common/ includes.
14216 * inf-ptrace.c: Fix common/ includes.
14217 * inf-child.c: Fix common/ includes.
14218 * ia64-linux-nat.c: Fix common/ includes.
14219 * i387-tdep.c: Fix common/ includes.
14220 * i386-tdep.c: Fix common/ includes.
14221 * i386-linux-tdep.c: Fix common/ includes.
14222 * i386-linux-nat.c: Fix common/ includes.
14223 * i386-go32-tdep.c: Fix common/ includes.
14224 * i386-fbsd-tdep.c: Fix common/ includes.
14225 * i386-fbsd-nat.c: Fix common/ includes.
14226 * guile/scm-type.c: Fix common/ includes.
14227 * guile/guile.c: Fix common/ includes.
14228 * go32-nat.c: Fix common/ includes.
14229 * gnu-nat.c: Fix common/ includes.
14230 * gdbthread.h: Fix common/ includes.
14231 * gdbarch-selftests.c: Fix common/ includes.
14232 * gdb_usleep.c: Fix common/ includes.
14233 * gdb_select.h: Fix common/ includes.
14234 * gdb_bfd.c: Fix common/ includes.
14235 * gcore.c: Fix common/ includes.
14236 * fork-child.c: Fix common/ includes.
14237 * findvar.c: Fix common/ includes.
14238 * fbsd-nat.c: Fix common/ includes.
14239 * event-top.c: Fix common/ includes.
14240 * event-loop.c: Fix common/ includes.
14241 * dwarf2read.c: Fix common/ includes.
14242 * dwarf2loc.c: Fix common/ includes.
14243 * dwarf2-frame.c: Fix common/ includes.
14244 * dwarf-index-cache.c: Fix common/ includes.
14245 * dtrace-probe.c: Fix common/ includes.
14246 * disasm-selftests.c: Fix common/ includes.
14247 * defs.h: Fix common/ includes.
14248 * csky-tdep.c: Fix common/ includes.
14249 * cp-valprint.c: Fix common/ includes.
14250 * cp-support.h: Fix common/ includes.
14251 * cp-support.c: Fix common/ includes.
14252 * corelow.c: Fix common/ includes.
14253 * completer.h: Fix common/ includes.
14254 * completer.c: Fix common/ includes.
14255 * compile/compile.c: Fix common/ includes.
14256 * compile/compile-loc2c.c: Fix common/ includes.
14257 * compile/compile-cplus-types.c: Fix common/ includes.
14258 * compile/compile-cplus-symbols.c: Fix common/ includes.
14259 * command.h: Fix common/ includes.
14260 * cli/cli-dump.c: Fix common/ includes.
14261 * cli/cli-cmds.c: Fix common/ includes.
14262 * charset.c: Fix common/ includes.
14263 * build-id.c: Fix common/ includes.
14264 * btrace.h: Fix common/ includes.
14265 * btrace.c: Fix common/ includes.
14266 * breakpoint.h: Fix common/ includes.
14267 * breakpoint.c: Fix common/ includes.
14269 (enum agent_op): Fix common/ includes.
14270 * ax-general.c (struct aop_map): Fix common/ includes.
14271 * ax-gdb.c: Fix common/ includes.
14272 * auxv.c: Fix common/ includes.
14273 * auto-load.c: Fix common/ includes.
14274 * arm-tdep.c: Fix common/ includes.
14275 * arch/riscv.c: Fix common/ includes.
14276 * arch/ppc-linux-common.c: Fix common/ includes.
14277 * arch/i386.c: Fix common/ includes.
14278 * arch/arm.c: Fix common/ includes.
14279 * arch/arm-linux.c: Fix common/ includes.
14280 * arch/arm-get-next-pcs.c: Fix common/ includes.
14281 * arch/amd64.c: Fix common/ includes.
14282 * arch/aarch64.c: Fix common/ includes.
14283 * arch/aarch64-insn.c: Fix common/ includes.
14284 * arch-utils.c: Fix common/ includes.
14285 * amd64-windows-tdep.c: Fix common/ includes.
14286 * amd64-tdep.c: Fix common/ includes.
14287 * amd64-sol2-tdep.c: Fix common/ includes.
14288 * amd64-obsd-tdep.c: Fix common/ includes.
14289 * amd64-nbsd-tdep.c: Fix common/ includes.
14290 * amd64-linux-tdep.c: Fix common/ includes.
14291 * amd64-linux-nat.c: Fix common/ includes.
14292 * amd64-fbsd-tdep.c: Fix common/ includes.
14293 * amd64-fbsd-nat.c: Fix common/ includes.
14294 * amd64-dicos-tdep.c: Fix common/ includes.
14295 * amd64-darwin-tdep.c: Fix common/ includes.
14296 * agent.c: Fix common/ includes.
14297 * ada-lang.h: Fix common/ includes.
14298 * ada-lang.c: Fix common/ includes.
14299 * aarch64-tdep.c: Fix common/ includes.
14301 2019-01-25 Tom Tromey <tom@tromey.com>
14303 * common/create-version.sh: Use common/version.h.
14305 2019-01-24 Pedro Alves <palves@redhat.com>
14307 * infrun.c (signal_stop, signal_print, signal_program)
14308 (signal_catch, signal_pass): Now arrays instead of pointers.
14309 (update_signals_program_target, do_target_resume)
14310 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14311 * linux-nat.c (linux_nat_target::pass_signals)
14312 (linux_nat_target::create_inferior, linux_nat_target::attach):
14314 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14315 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14316 * procfs.c (procfs_target::pass_signals): Adjust.
14317 * record-full.c (record_full_target::resume): Adjust.
14318 * remote.c (remote_target::pass_signals)
14319 (remote_target::program_signals): Adjust.
14320 * target-debug.h (target_debug_print_signals): Now takes a
14321 gdb::array_view as parameter. Adjust.
14322 * target.h (target_ops) <pass_signals, program_signals>: Replace
14323 pointer and length parameters with gdb::array_view.
14324 (target_pass_signals, target_program_signals): Likewise.
14325 * target-delegates.c: Regenerate.
14327 2019-01-24 Pedro Alves <palves@redhat.com>
14329 * common/forward-scope-exit.h
14330 (forward_scope_exit::forward_scope_exit): Pass arguments to
14331 m_bind_function directly, instead of creating a std::bind and
14334 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14336 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14337 for static members.
14338 (pass_in_v_vfp_candidate): Likewise.
14340 2019-01-23 Tom Tromey <tom@tromey.com>
14341 Pedro Alves <palves@redhat.com>
14343 * regcache.c (class regcache_invalidator): Remove.
14344 (regcache::raw_write): Use make_scope_exit.
14346 2019-01-23 Tom Tromey <tom@tromey.com>
14348 * ui-out.h (class ui_out_emit_type): Update comment.
14350 2019-01-23 Tom Tromey <tom@tromey.com>
14352 * infrun.c (fetch_inferior_event): Update comment.
14354 2019-01-23 Tom Tromey <tom@tromey.com>
14355 Pedro Alves <palves@redhat.com>
14357 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14359 (fetch_inferior_event): Use SCOPE_EXIT.
14362 2019-01-23 Tom Tromey <tom@tromey.com>
14363 Pedro Alves <palves@redhat.com>
14365 * infrun.c (disable_thread_events): Delete.
14366 (stop_all_threads): Use SCOPE_EXIT.
14368 2019-01-23 Tom Tromey <tom@tromey.com>
14369 Pedro Alves <palves@redhat.com>
14371 * symfile.c: Include forward-scope-exit.h.
14372 (clear_symtab_users_cleanup): Replace forward declaration with
14373 a FORWARD_SCOPE_EXIT.
14374 (syms_from_objfile_1): Use the forward_scope_exit and
14375 gdb::optional instead of cleanup_function.
14376 (reread_symbols): Use the forward_scope_exit instead of
14378 (clear_symtab_users_cleanup): Remove function.
14380 2019-01-23 Tom Tromey <tom@tromey.com>
14381 Pedro Alves <palves@redhat.com>
14383 * linux-nat.c: Include scope-exit.h.
14384 (cleanup_target_stop): Remove.
14385 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14388 2019-01-23 Tom Tromey <tom@tromey.com>
14389 Pedro Alves <palves@redhat.com>
14391 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14392 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14394 2019-01-23 Tom Tromey <tom@tromey.com>
14395 Andrew Burgess <andrew.burgess@embecosm.com>
14396 Pedro Alves <palves@redhat.com>
14398 * infrun.c (fetch_inferior_event): Use scope_exit.
14399 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14400 * top.c (execute_command): Use scope_exit.
14401 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14402 * utils.c (do_bpstat_clear_actions_cleanup)
14403 (make_bpstat_clear_actions_cleanup): Remove.
14405 2019-01-23 Tom Tromey <tom@tromey.com>
14406 Pedro Alves <palves@redhat.com>
14408 * infrun.c: Include "common/scope-exit.h"
14409 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14410 (wait_for_inferior): Use SCOPE_EXIT.
14411 (fetch_inferior_event): Use scope_exit.
14413 2019-01-23 Tom Tromey <tom@tromey.com>
14414 Pedro Alves <palves@redhat.com>
14416 * breakpoint.c (create_breakpoint): Remove cleanup.
14418 2019-01-23 Tom Tromey <tom@tromey.com>
14419 Andrew Burgess <andrew.burgess@embecosm.com>
14420 Pedro Alves <palves@redhat.com>
14422 2019-01-23 Pedro Alves <palves@redhat.com>
14424 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14426 2019-01-23 Pedro Alves <palves@redhat.com>
14427 Andrew Burgess <andrew.burgess@embecosm.com>
14429 * gdbthread.h: Include "common/forward-scope-exit.h".
14430 (scoped_finish_thread_state): Redefine custom class in terms of
14431 forward_scope_exit.
14433 2019-01-23 Pedro Alves <palves@redhat.com>
14434 Andrew Burgess <andrew.burgess@embecosm.com>
14436 * common/forward-scope-exit.h: New file.
14438 2019-01-23 Pedro Alves <palves@redhat.com>
14439 Andrew Burgess <andrew.burgess@embecosm.com>
14440 Tom Tromey <tom@tromey.com>
14442 * common/scope-exit.h: New file.
14444 2019-01-23 Pedro Alves <palves@redhat.com>
14446 * common/preprocessor.h (ESC): Rename to ...
14447 (ESC_PARENS): ... this.
14448 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14449 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14451 2019-01-23 Tom Tromey <tom@tromey.com>
14453 * language.h (class scoped_switch_to_sym_language_if_auto):
14454 Initialize m_lang in both cases.
14456 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14458 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14461 2019-01-22 Tom Tromey <tom@tromey.com>
14463 * corelow.c: Do not include sys/file.h.
14465 2019-01-22 Tom Tromey <tom@tromey.com>
14467 * tui/tui-wingeneral.h: Include gdb_curses.h.
14469 2019-01-22 Tom Tromey <tom@tromey.com>
14471 * source-cache.h (class source_cache) <get_source_lines,
14472 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14474 2019-01-22 Tom Tromey <tom@tromey.com>
14476 * remote-fileio.h (struct remote_target): Declare.
14478 2019-01-22 Tom Tromey <tom@tromey.com>
14480 * python/py-arch.c: Do not include py-ref.h.
14481 * python/py-bpevent.c: Do not include py-ref.h.
14482 * python/py-cmd.c: Do not include py-ref.h.
14483 * python/py-continueevent.c: Do not include py-ref.h.
14484 * python/py-event.h: Do not include py-ref.h.
14485 * python/py-evtregistry.c: Do not include py-ref.h.
14486 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14487 * python/py-frame.c: Do not include py-ref.h.
14488 * python/py-framefilter.c: Do not include py-ref.h.
14489 * python/py-function.c: Do not include py-ref.h.
14490 * python/py-infevents.c: Do not include py-ref.h.
14491 * python/py-linetable.c: Do not include py-ref.h.
14492 * python/py-objfile.c: Do not include py-ref.h.
14493 * python/py-param.c: Do not include py-ref.h.
14494 * python/py-prettyprint.c: Do not include py-ref.h.
14495 * python/py-progspace.c: Do not include py-ref.h.
14496 * python/py-symbol.c: Do not include py-ref.h.
14497 * python/py-symtab.c: Do not include py-ref.h.
14498 * python/py-type.c: Do not include py-ref.h.
14499 * python/py-unwind.c: Do not include py-ref.h.
14500 * python/py-utils.c: Do not include py-ref.h.
14501 * python/py-value.c: Do not include py-ref.h.
14502 * python/py-varobj.c: Do not include py-ref.h.
14503 * python/py-xmethods.c: Do not include py-ref.h.
14504 * python/python.c: Do not include py-ref.h.
14505 * varobj.c: Do not include py-ref.h.
14507 2019-01-22 Tom Tromey <tom@tromey.com>
14509 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14510 keyword for bcache.
14512 2019-01-22 Tom Tromey <tom@tromey.com>
14514 * compile/compile-cplus-types.c: Remove a comment by #include.
14516 2019-01-22 Tom Tromey <tom@tromey.com>
14518 * compile/gcc-c-plugin.h: Include compile-internal.h.
14520 2019-01-22 Tom Tromey <tom@tromey.com>
14522 * stabsread.c (EXTERN): Do not define.
14523 (symnum, next_symbol_text_func, processing_gcc_compilation)
14524 (within_function, global_sym_chain, global_stabs)
14525 (previous_stab_code, this_object_header_files)
14526 (n_this_object_header_files)
14527 (n_allocated_this_object_header_files): Define.
14528 * stabsread.h (EXTERN): Never define. Use "extern".
14530 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14532 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14535 2019-01-21 Tom Tromey <tom@tromey.com>
14537 * ui-out.c: Fix includes.
14538 * tui/tui-source.c: Fix includes.
14539 * target.c: Fix includes.
14540 * remote.c: Fix includes.
14541 * regcache.c: Fix includes.
14542 * python/py-block.c: Fix includes.
14543 * printcmd.c: Fix includes.
14544 * or1k-tdep.c: Fix includes.
14545 * mi/mi-main.c: Fix includes.
14546 * m32r-tdep.c: Fix includes.
14547 * csky-tdep.c: Fix includes.
14548 * compile/compile-cplus-types.c: Fix includes.
14549 * cli/cli-interp.c: Fix includes.
14551 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14553 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14556 2019-01-16 Tom Tromey <tom@tromey.com>
14558 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14560 (struct objfile) <msymbols_range>: Move from top level.
14561 <msymbols>: New method.
14562 (class objfile_msymbols): Remove.
14563 * symtab.c (default_collect_symbol_completion_matches_break_on):
14565 * symmisc.c (dump_msymbols): Update.
14566 * stabsread.c (scan_file_globals): Update.
14567 * objc-lang.c (info_selectors_command, info_classes_command)
14568 (find_methods): Update.
14569 * minsyms.c (find_solib_trampoline_target): Update.
14570 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14571 * coffread.c (coff_symfile_read): Update.
14572 * ada-lang.c (ada_lookup_simple_minsym)
14573 (ada_collect_symbol_completion_matches): Update.
14575 2019-01-16 Tom Tromey <tom@tromey.com>
14577 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14578 type. Remove no-argument constructor.
14579 <iterator::operator++>: Simplify.
14581 <end>: Use minimal_symbol_count.
14583 2019-01-16 Tom Tromey <tom@tromey.com>
14585 * objfiles.h (struct objfile) <psymtabs>: New method.
14586 (class objfile_psymtabs): Remove.
14587 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14589 <range>: New method.
14590 (require_partial_symbols): Change return type.
14591 * psymtab.c (require_partial_symbols)
14592 (psym_expand_symtabs_matching): Update.
14593 * mdebugread.c (parse_partial_symbols): Update.
14594 * dbxread.c (dbx_end_psymtab): Update.
14596 2019-01-15 Tom Tromey <tom@tromey.com>
14598 * symtab.c (lookup_objfile_from_block)
14599 (lookup_symbol_in_objfile_symtabs)
14600 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14601 (find_line_symtab, info_sources_command)
14602 (default_collect_symbol_completion_matches_break_on)
14603 (make_source_files_completion_list): Update.
14604 * symmisc.c (print_objfile_statistics, dump_objfile)
14605 (maintenance_print_symbols, maintenance_info_symtabs)
14606 (maintenance_check_symtabs, maintenance_info_line_tables):
14608 * source.c (select_source_symtab)
14609 (forget_cached_source_info_for_objfile): Update.
14610 * objfiles.h (class objfile_compunits): Remove.
14611 (struct objfile) <compunits_range>: New typedef.
14612 (compunits): New method.
14613 * objfiles.c (objfile_relocate1): Update.
14614 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14615 * maint.c (count_symtabs_and_blocks): Update.
14616 * linespec.c (iterate_over_all_matching_symtabs): Update.
14617 * cp-support.c (add_symbol_overload_list_qualified): Update.
14618 * coffread.c (coff_symtab_read): Update.
14619 * ada-lang.c (add_nonlocal_symbols)
14620 (ada_collect_symbol_completion_matches)
14621 (ada_add_global_exceptions): Update.
14623 2019-01-15 Tom Tromey <tom@tromey.com>
14625 * progspace.h (program_space) <objfiles_safe_range>: New
14627 <objfiles_safe>: New method.
14628 * objfiles.h (class all_objfiles_safe): Remove.
14629 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14630 * jit.c (jit_inferior_exit_hook): Update.
14632 2019-01-17 Tom Tromey <tom@tromey.com>
14634 * progspace.h (program_space) <objfiles_range>: New typedef.
14635 <objfiles>: New method.
14636 <objfiles_head>: Rename from objfiles.
14637 (object_files): Update.
14638 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14639 * guile/scm-pretty-print.c
14640 (ppscm_find_pretty_printer_from_objfiles): Update.
14641 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14642 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14644 * python/py-progspace.c (pspy_get_objfiles): Update.
14645 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14647 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14648 (objfpy_lookup_objfile_by_build_id): Update.
14649 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14650 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14652 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14653 (expand_symtab_containing_pc, lookup_objfile_from_block)
14654 (lookup_static_symbol, basic_lookup_transparent_type)
14655 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14656 (find_line_symtab, info_sources_command)
14657 (default_collect_symbol_completion_matches_break_on)
14658 (make_source_files_completion_list, find_main_name): Update.
14659 * symmisc.c (print_symbol_bcache_statistics)
14660 (print_objfile_statistics, maintenance_print_symbols)
14661 (maintenance_print_msymbols, maintenance_print_objfiles)
14662 (maintenance_info_symtabs, maintenance_check_symtabs)
14663 (maintenance_expand_symtabs, maintenance_info_line_tables):
14665 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14666 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14667 (map_overlay_command, unmap_overlay_command)
14668 (simple_overlay_update, expand_symtabs_matching)
14669 (map_symbol_filenames): Update.
14670 * symfile-debug.c (set_debug_symfile): Update.
14671 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14673 * source.c (select_source_symtab, forget_cached_source_info):
14675 * solib.c (solib_read_symbols): Update.
14676 * solib-spu.c (append_ocl_sos): Update.
14677 * psymtab.c (maintenance_print_psymbols)
14678 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14679 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14680 * printcmd.c (info_symbol_command): Update.
14681 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14683 * objfiles.h (class all_objfiles): Remove.
14684 * objfiles.c (have_partial_symbols, have_full_symbols)
14685 (have_minimal_symbols, qsort_cmp, update_section_map)
14686 (shared_objfile_contains_address_p)
14687 (default_iterate_over_objfiles_in_search_order): Update.
14688 * objc-lang.c (info_selectors_command, info_classes_command)
14689 (find_methods): Update.
14690 * minsyms.c (find_solib_trampoline_target): Update.
14691 * maint.c (maintenance_info_sections)
14692 (maintenance_translate_address, count_symtabs_and_blocks):
14694 * main.c (captured_main_1): Update.
14695 * linux-thread-db.c (try_thread_db_load_from_pdir)
14696 (has_libpthread): Update.
14697 * linespec.c (iterate_over_all_matching_symtabs)
14698 (search_minsyms_for_name): Update.
14699 * jit.c (jit_find_objf_with_entry_addr): Update.
14700 * hppa-tdep.c (find_unwind_entry)
14701 (hppa_lookup_stub_minimal_symbol): Update.
14702 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14704 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14705 (elf_gnu_ifunc_resolve_by_got): Update.
14706 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14707 * dwarf-index-write.c (save_gdb_index_command): Update.
14708 * cp-support.c (add_symbol_overload_list_qualified): Update.
14709 * breakpoint.c (create_overlay_event_breakpoint)
14710 (create_longjmp_master_breakpoint)
14711 (create_std_terminate_master_breakpoint)
14712 (create_exception_master_breakpoint): Update.
14713 * blockframe.c (find_pc_partial_function): Update.
14714 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14715 (ada_collect_symbol_completion_matches)
14716 (ada_add_global_exceptions): Update.
14718 2019-01-17 Tom Tromey <tom@tromey.com>
14720 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14722 (solib_target_parse_libraries): Change return type.
14723 (library_list_start_segment, library_list_start_section)
14724 (library_list_end_library, library_list_start_library); Update.
14725 (solib_target_free_library_list): Remove.
14726 (solib_target_parse_libraries): Remove cleanup. Change return
14728 (solib_target_current_sos): Update.
14730 2019-01-17 Tom Tromey <tromey@bapiya>
14732 * valprint.c: Replace "the the" with "the".
14733 * symtab.c: Replace "the the" with "the".
14734 * solib.c: Replace "the the" with "the".
14735 * solib-dsbt.c: Replace "the the" with "the".
14736 * linespec.c: Replace "the the" with "the".
14737 * dwarf2loc.h: Replace "the the" with "the".
14738 * amd64-windows-tdep.c: Replace "the the" with "the".
14739 * aarch64-tdep.c: Replace "the the" with "the".
14741 2019-01-16 Keith Seitz <keiths@redhat.com>
14744 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14745 <builder>: Rename to ..
14746 <m_builder>: ... this and make private.
14747 (dwarf2_cu::get_builder): New method. Change all users of
14748 `builder' to use this method.
14749 (dwarf2_start_symtab): Move to ...
14750 (dwarf2_cu::start_symtab): ... here. Update all callers
14751 (setup_type_unit_groups): Move to ...
14752 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14754 (dwarf2_cu::reset_builder): New method.
14755 (process_full_compunit, process_full_type_unit): Use
14756 dwarf2_cu::reset_builder.
14757 (follow_die_offset): Record the ancestor CU if it is different
14758 from the followed DIE's CU.
14759 (follow_die_sig_1): Likewise.
14761 2019-01-15 Tom Tromey <tom@tromey.com>
14763 * remote.c (class remote_state) <buf>: Now a char_vector.
14764 <buf_size>: Remove.
14765 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14767 (remote_target::getpkt_or_notif_sane_1)
14768 (remote_target::getpkt_sane)
14769 (remote_target::getpkt_or_notif_sane): Likewise.
14770 (class remote_target) <putpkt>: New overload.
14771 (remote_target::read_frame): Change type of "buf_p". Remove
14772 sizeof_p parameter.
14773 (packet_ok): New overload.
14774 (packet_check_result): New overload.
14777 2019-01-14 Tom Tromey <tom@tromey.com>
14779 * remote-notif.c (handle_notification, remote_notif_ack)
14780 (remote_notif_parse): Make "buf" const.
14781 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14783 (remote_notif_parse, remote_notif_ack, handle_notification):
14785 * remote.c (remote_notif_stop_parse): Make "buf" const.
14786 (remote_target::remote_parse_stop_reply): Make "buf" const.
14787 (remote_notif_stop_ack): Make "buf" const.
14789 2019-01-14 Tom Tromey <tom@tromey.com>
14791 * remote.c (remote_console_output): Make parameter const.
14793 2019-01-14 Tom Tromey <tom@tromey.com>
14795 * target-debug.h (target_debug_print_signals): Constify.
14796 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14797 * procfs.c (procfs_target::pass_signals): Update.
14798 * linux-nat.c (linux_nat_target::pass_signals): Update.
14799 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14800 * target-delegates.c: Rebuild.
14801 * remote.c (remote_target::program_signals): Update.
14802 (remote_target::pass_signals): Update.
14803 * target.c (target_pass_signals): Constify argument.
14804 (target_program_signals): Likewise.
14805 * target.h (struct target_ops) <pass_signals, program_signals>:
14807 (target_pass_signals, target_program_signals): Constify argument.
14809 2019-01-14 Tom Tromey <tom@tromey.com>
14812 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14814 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14816 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14818 * rs6000-tdep.c: Include reggroups.h.
14819 (IS_V_ALIAS_PSEUDOREG): Define.
14820 (rs6000_register_name): Return names for the "vX" aliases.
14821 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14822 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14823 aliases. Call default_register_reggroup_p for all other
14825 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14827 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14828 Handle "vX" aliases.
14829 (v_alias_pseudo_register_collect): New function.
14830 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14831 (rs6000_gdbarch_init): Initialize "vX" aliases as
14832 pseudo-registers. Restore registration of
14833 rs6000_pseudo_register_reggroup_p with
14834 set_tdesc_pseudo_register_reggroup_p.
14836 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14838 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14839 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14840 set_gdbarch_num_pseudo_regs.
14842 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14844 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14845 Remove arg prefixname, add do_set and do_show.
14846 Add member functions set_list and show_list.
14847 * cli/cli-style.c (class cli_style_option): Update accordingly.
14848 (style_set_list): Move to file scope.
14849 (style_show_list): Likewise.
14850 (set_style): Call help_list.
14851 (show_style): Call cmd_show_list.
14852 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14853 Update to use the new macro.
14855 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14857 * ada-lang.c (_initialize_ada_language): Expand the help text
14858 for the "catch exception" command.
14860 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14862 * symtab.c (matching_obj_sections): Initialize obj,
14863 declare it closer to its usage.
14865 2019-01-10 Tom Tromey <tom@tromey.com>
14867 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14868 (basic_inf_threads_range): Remove.
14869 (inf_threads_range, inf_non_exited_threads_range)
14870 (safe_inf_threads_range): Use next_adapter.
14872 2019-01-10 Keith Seitz <keiths@redhat.com>
14876 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14877 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14879 2019-01-10 Keith Seitz <keiths@redhat.com>
14883 * dictionary.c (pending_to_vector): Remove.
14884 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14885 Remove _1 suffix, replacing functions of the same name. Update
14887 (dict_create_hashed, dict_create_hashed_expandable)
14888 (dict_create_linear, dict_create_linear_expandable, dict_free)
14889 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14890 Make functions static.
14892 2019-01-10 Keith Seitz <keiths@redhat.com>
14896 * dictionary.h (struct dictionary): Replace declaration with
14898 (dict_create_hashed, dict_create_hashed_expandable)
14899 (dict_create_linear, dict_create_linear_expandable)
14900 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14901 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14902 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14903 taking multidictionary argument.
14904 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14905 * block.h (struct block) <dict>: Change to multidictionary
14906 and rename `multidict'.
14907 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14908 symmisc.c: Update all dictionary references to multidictionary.
14910 2019-01-10 Keith Seitz <keiths@redhat.com>
14914 * dictionary.c: Include unordered_map.
14915 (pending_to_vector): New function.
14916 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14917 Rewrite the non-"_1" functions to take vector instead
14919 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14920 "new" _1 versions of the same name.
14921 (multidictionary): Define.
14922 (std::hash<enum language): New definition.
14923 (collate_pending_symbols_by_language, mdict_create_hashed)
14924 (mdict_create_hashed_expandable, mdict_create_linear)
14925 (mdict_create_linear_expandable, mdict_free)
14926 (find_language_dictionary, create_new_language_dictionary)
14927 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14928 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14929 (mdict_size, mdict_empty): New functions.
14930 * dictionary.h (mdict_iterator): Define.
14932 2019-01-10 Pedro Alves <palves@redhat.com>
14934 * breakpoint.c (read_uploaded_action)
14935 (create_tracepoint_from_upload): Adjust to use
14936 gdb::unique_xmalloc_ptr.
14937 * ctf.c (ctf_write_uploaded_tp):
14938 (SET_ARRAY_FIELD): Use emplace_back.
14939 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14940 * tracefile-tfile.c (tfile_write_uploaded_tp):
14941 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14942 gdb::unique_xmalloc_ptr.
14943 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14944 at_string, cond_string, cmd_strings>: Replace char pointers
14945 with gdb::unique_xmalloc_ptr.
14947 2019-01-10 Pedro Alves <palves@redhat.com>
14949 * solib-target.c (library_list_start_library): Don't xstrdup name.
14951 2019-01-10 Pedro Alves <palves@redhat.com>
14953 * mdebugread.c (parse_partial_symbols): Use
14954 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14956 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14958 * linux-fork.c (scoped_switch_fork_info)
14959 <~scoped_switch_fork_info>: Fix incorrect variable name.
14961 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14963 * linux-fork.c (scoped_switch_fork_info)
14964 <scoped_switch_fork_info>: Make explicit.
14965 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14967 2019-01-10 Tom Tromey <tom@tromey.com>
14969 * objfiles.h (objfile::reset_psymtabs): Update.
14970 * objfiles.c (objfile::objfile): Update.
14971 * psymtab.h (psymtab_storage::obstack): Update.
14972 (psymtab_storage::m_obstack): Use gdb::optional.
14973 (class psymtab_storage): Update comment. Remove objfile
14975 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14977 2019-01-10 Tom Tromey <tom@tromey.com>
14979 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14980 <free_psymtabs>: Now private.
14981 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14982 (allocate_psymtab): Use new method.
14984 2019-01-10 Tom Tromey <tom@tromey.com>
14986 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14987 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14988 * mdebugread.c (parse_partial_symbols): Use
14989 allocate_dependencies.
14990 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14991 allocate_dependencies.
14992 (process_psymtab_comp_unit_reader)
14993 (build_type_psymtab_dependencies): Likewise.
14994 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14996 2019-01-10 Tom Tromey <tom@tromey.com>
14998 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14999 PSYMBOL_SET_LANGUAGE.
15000 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15002 2019-01-10 Tom Tromey <tom@tromey.com>
15004 * psymtab.h (psymtab_storage::obstack): New method.
15005 <m_obstack>: Rename from obstack; now private.
15006 * psymtab.c (psymtab_storage): Update.
15007 * dwarf2read.c (create_addrmap_from_index)
15008 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15011 2019-01-10 Tom Tromey <tom@tromey.com>
15013 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15014 * objfiles.h (objfile::reset_psymtabs): New method.
15016 2019-01-10 Tom Tromey <tom@tromey.com>
15018 * symmisc.c (print_symbol_bcache_statistics): Update.
15019 (print_objfile_statistics): Update.
15020 * symfile.c (reread_symbols): Update.
15021 * psymtab.h (class psymtab_storage): New.
15022 * psymtab.c (psymtab_storage): New constructor.
15023 (~psymtab_storage): New destructor.
15024 (require_partial_symbols): Update.
15025 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15026 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15027 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15028 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15029 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15030 (start_psymtab_common, end_psymtab_common)
15031 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15032 (allocate_psymtab): Update.
15033 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15035 (dump_psymtab_addrmap, maintenance_print_psymbols)
15036 (maintenance_check_psymtabs): Update.
15037 (class objfile_psymtabs): Move to objfiles.h.
15038 * psympriv.h (discard_psymtab): Now inline.
15039 (psymtab_discarder::psymtab_discarder): Update.
15040 (psymtab_discarder::~psymtab_discarder): Update.
15041 (ALL_OBJFILE_PSYMTABS): Rewrite.
15042 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15043 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15045 <partial_symtabs>: New field.
15046 (class objfile_psymtabs): Move from psymtab.h. Update.
15047 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15049 (objfile::~objfile): Don't destroy psymbol_cache.
15050 * mdebugread.c (parse_partial_symbols): Update.
15051 * dwarf2read.c (create_addrmap_from_index)
15052 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15053 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15054 (add_partial_subprogram, dwarf2_ranges_read): Update.
15055 * dwarf-index-write.c (write_address_map)
15056 (write_one_signatured_type, recursively_write_psymbols)
15057 (class debug_names, class debug_names, write_psymtabs_to_index):
15060 2019-01-10 Tom Tromey <tom@tromey.com>
15062 * symtab.h (SYMBOL_SET_NAMES): Update.
15063 (symbol_set_names): Update.
15064 (MSYMBOL_SET_NAMES): Update.
15065 * symtab.c (symbol_set_names): Change argument to be an
15066 objfile_per_bfd_storage.
15067 * psymtab.c (add_psymbol_to_bcache): Update.
15068 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15070 2019-01-10 Tom Tromey <tom@tromey.com>
15072 * symtab.c (create_demangled_names_hash): Change argument to be an
15073 objfile_per_bfd_storage.
15074 (symbol_set_names): Update.
15076 2019-01-10 Tom Tromey <tom@tromey.com>
15078 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15080 * psymtab.c (init_psymbol_list): Do nothing if already called.
15081 * psympriv.h (init_psymbol_list): Add comment.
15082 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15084 * dbxread.c (dbx_symfile_read): Unconditionally call
15087 2019-01-10 Tom Tromey <tom@tromey.com>
15089 * xcoffread.c (scan_xcoff_symtab): Update.
15090 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15092 * mdebugread.c (parse_partial_symbols)
15093 (handle_psymbol_enumerators): Update.
15094 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15095 * dbxread.c (read_dbx_symtab): Update.
15096 * psympriv.h (psymbol_placement): New enum.
15097 (add_psymbol_to_list): Update.
15099 2019-01-10 Tom Tromey <tom@tromey.com>
15101 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15102 static_psymbols parameters.
15103 (scan_xcoff_symtab): Update.
15104 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15105 static_psymbols parameters.
15106 * psympriv.h (start_psymtab_common): Update.
15107 * mdebugread.c (parse_partial_symbols): Update.
15108 * dwarf2read.c (create_partial_symtab): Update.
15109 * dbxread.c (read_dbx_symtab): Update.
15110 (start_psymtab): Remove global_psymbols and static_psymbols
15113 2019-01-10 Tom Tromey <tom@tromey.com>
15115 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15116 * psymtab.c (allocate_psymtab): Add comment.
15117 * psympriv.h (allocate_psymtab): Add comment.
15118 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15120 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15122 2019-01-10 Tom Tromey <tom@tromey.com>
15124 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15126 * mipsread.c: Include mdebugread.h.
15127 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15129 * elfread.c: Include mdebugread.h.
15131 2019-01-09 Tom Tromey <tom@tromey.com>
15133 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15134 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15135 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15136 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15137 (psym_lookup_symbol, psym_find_last_source_symtab)
15138 (psym_forget_cached_source_info, psym_print_stats)
15139 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15140 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15141 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15142 (psym_find_compunit_symtab_by_address)
15143 (maintenance_print_psymbols, maintenance_info_psymtabs)
15144 (maintenance_check_psymtabs): Use ranged for.
15145 * psymtab.h (class objfile_psymtabs): New.
15146 (require_partial_symbols): Return objfile_psymtabs.
15147 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15149 2019-01-09 Tom Tromey <tom@tromey.com>
15151 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15152 (find_pc_mapped_section, list_overlays_command)
15153 (map_overlay_command, unmap_overlay_command)
15154 (simple_overlay_update): Use all_objfiles.
15155 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15156 * printcmd.c (info_symbol_command): Use all_objfiles.
15157 * objfiles.h (ALL_OBJSECTIONS): Remove.
15158 * maint.c (maintenance_translate_address): Use all_objfiles.
15159 * gcore.c (gcore_create_callback): Use all_objfiles.
15160 (objfile_find_memory_regions): Likewise.
15162 2019-01-09 Tom Tromey <tom@tromey.com>
15164 * symtab.c (find_line_symtab, info_sources_command)
15165 (make_source_files_completion_list): Use objfile_compunits.
15166 * source.c (select_source_symtab): Use objfile_compunits.
15167 * objfiles.h (struct objfile): Update comment.
15168 (ALL_OBJFILES): Remove.
15169 (ALL_FILETABS): Remove.
15170 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15173 2019-01-09 Tom Tromey <tom@tromey.com>
15175 * symmisc.c (print_objfile_statistics, dump_objfile)
15176 (maintenance_print_symbols): Use compunit_filetabs.
15177 * source.c (forget_cached_source_info_for_objfile): Use
15179 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15180 (ALL_FILETABS): Use compunit_filetabs.
15181 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15182 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15184 2019-01-09 Tom Tromey <tom@tromey.com>
15186 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15187 (compunit_filetabs): New.
15188 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15190 (info_sources_command, make_source_files_completion_list): Remove
15192 * symmisc.c (print_objfile_statistics, dump_objfile)
15193 (maintenance_print_symbols): Remove declaration.
15194 (maintenance_info_symtabs): Use compunit_filetabs.
15195 (maintenance_info_line_tables): Likewise.
15196 * source.c (select_source_symtab): Change local variable name.
15197 (forget_cached_source_info_for_objfile): Remove declaration.
15198 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15199 * objfiles.c (objfile_relocate1): Remove declaration.
15200 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15202 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15203 * coffread.c (coff_symtab_read): Remove declaration.
15204 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15207 2019-01-09 Tom Tromey <tom@tromey.com>
15209 * symtab.c (lookup_objfile_from_block)
15210 (find_pc_sect_compunit_symtab, search_symbols)
15211 (default_collect_symbol_completion_matches_break_on): Use
15213 * objfiles.h (ALL_COMPUNITS): Remove.
15214 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15215 * cp-support.c (add_symbol_overload_list_qualified): Use
15217 * ada-lang.c (ada_collect_symbol_completion_matches)
15218 (ada_add_global_exceptions): Use objfile_compunits.
15220 2019-01-09 Tom Tromey <tom@tromey.com>
15222 * source.c (select_source_symtab)
15223 (forget_cached_source_info_for_objfile): Remove declaration.
15224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15226 * maint.c (count_symtabs_and_blocks): Remove declaration.
15227 * cp-support.c (add_symbol_overload_list_qualified): Remove
15229 * coffread.c (coff_symtab_read): Remove declaration.
15230 * symtab.c (lookup_symbol_in_objfile_symtabs)
15231 (basic_lookup_transparent_type_1): Use objfile_compunits.
15232 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15233 (info_sources_command, search_symbols)
15234 (default_collect_symbol_completion_matches_break_on)
15235 (make_source_files_completion_list): Remove declaration.
15236 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15237 (ada_collect_symbol_completion_matches)
15238 (ada_add_global_exceptions): Remove declaration.
15239 * linespec.c (iterate_over_all_matching_symtabs): Use
15241 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15242 (class objfile_compunits): New.
15243 (ALL_COMPUNITS): Use objfile_compunits.
15244 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15245 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15247 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15249 2019-01-09 Tom Tromey <tom@tromey.com>
15251 * symtab.c (search_symbols)
15252 (default_collect_symbol_completion_matches_break_on): Use
15254 * ada-lang.c (ada_lookup_simple_minsym)
15255 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15256 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15257 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15259 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15260 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15261 * objc-lang.c (find_methods): Use objfile_msymbols.
15262 (info_selectors_command, info_classes_command): Likewise.
15263 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15264 * objfiles.h (class objfile_msymbols): New.
15265 (ALL_OBJFILE_MSYMBOLS): Remove.
15266 (ALL_MSYMBOLS): Remove.
15268 2019-01-09 Tom Tromey <tom@tromey.com>
15270 * common/next-iterator.h (next_adapter): Add Iterator template
15272 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15273 (class all_objfiles_safe): New.
15274 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15275 * objfiles.c (put_objfile_before): Update comment.
15276 (add_separate_debug_objfile): Likewise.
15277 (free_all_objfiles): Use all_objfiles_safe.
15278 (objfile_purge_solibs): Likewise.
15280 2019-01-09 Tom Tromey <tom@tromey.com>
15282 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15283 (expand_symtab_containing_pc, lookup_static_symbol)
15284 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15285 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15287 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15288 * breakpoint.c (create_overlay_event_breakpoint)
15289 (create_longjmp_master_breakpoint)
15290 (create_std_terminate_master_breakpoint)
15291 (create_exception_master_breakpoint): Use all_objfiles.
15292 * linux-thread-db.c (try_thread_db_load_from_pdir)
15293 (has_libpthread): Use all_objfiles.
15294 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15295 * linespec.c (iterate_over_all_matching_symtabs)
15296 (search_minsyms_for_name): Use all_objfiles.
15297 * maint.c (maintenance_info_sections): Use all_objfiles.
15298 * main.c (captured_main_1): Use all_objfiles.
15299 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15300 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15301 * guile/scm-pretty-print.c
15302 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15303 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15304 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15305 (maintenance_print_msymbols): Use all_objfiles.
15306 * source.c (select_source_symtab): Use all_objfiles.
15307 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15308 * symfile.c (remove_symbol_file_command)
15309 (expand_symtabs_matching, map_symbol_filenames): Use
15311 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15313 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15314 * objc-lang.c (find_methods): Use all_objfiles.
15315 * objfiles.c (have_partial_symbols, have_full_symbols)
15316 (have_minimal_symbols, qsort_cmp)
15317 (default_iterate_over_objfiles_in_search_order): Use
15319 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15320 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15321 (maintenance_check_psymtabs): Use all_objfiles.
15322 (ALL_PSYMTABS): Remove.
15323 * compile/compile-object-run.c (do_module_cleanup): Use
15325 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15326 * cp-support.c (add_symbol_overload_list_qualified): Use
15328 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15330 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15331 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15333 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15334 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15335 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15337 * solib.c (solib_read_symbols): Use all_objfiles
15339 2019-01-09 Tom Tromey <tom@tromey.com>
15341 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15342 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15344 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15345 * symmisc.c (print_symbol_bcache_statistics)
15346 (print_objfile_statistics, maintenance_print_objfiles)
15347 (maintenance_info_symtabs, maintenance_check_symtabs)
15348 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15350 * source.c (forget_cached_source_info): Use all_objfiles.
15351 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15352 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15353 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15354 * objfiles.c (update_section_map): Use all_objfiles.
15355 (shared_objfile_contains_address_p): Likewise.
15356 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15357 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15359 2019-01-09 Tom Tromey <tom@tromey.com>
15361 * common/next-iterator.h: New file.
15362 * objfiles.h (class all_objfiles): New.
15363 (struct objfile_iterator): New.
15365 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15367 * NEWS: Move the description of the changed "frame", "select-frame",
15368 and "info frame" commands to the Changed commands section.
15370 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15372 * gdbtypes.c (check_stub_method_group): Remove handling of old
15374 * linespec.c (find_methods): Likewise.
15375 * stabsread.c (read_member_functions): Likewise.
15376 * valops.c (search_struct_method): Likewise.
15377 (value_struct_elt_for_reference): Likewise.
15378 * NEWS: Mention this change.
15380 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15382 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15383 print_source_lines.
15384 * source.c (print_source_lines_base): Update line number check.
15385 (print_source_lines): New function.
15386 (source_lines_range::source_lines_range): New function.
15387 * source.h (class source_lines_range): New class.
15388 (print_source_lines): New declaration.
15390 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15392 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15394 2019-01-08 Tom Tromey <tom@tromey.com>
15395 Simon Marchi <simon.marchi@ericsson.com>
15398 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15399 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15400 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15401 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15402 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15403 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15405 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15407 * source.c (select_source_symtab): Move header comment to
15408 declaration in source.h.
15409 (forget_cached_source_info_for_objfile): Likewise.
15410 (forget_cached_source_info): Likewise.
15411 (identify_source_line): Likewise.
15412 * source.h (identify_source_line): Move declaration from symtab.h
15413 and add comment from source.c
15414 (print_source_lines): Likewise.
15415 (forget_cached_source_info_for_objfile): Likewise.
15416 (forget_cached_source_info): Likewise.
15417 (select_source_symtab): Likewise.
15418 (enum print_source_lines_flag): Move definition from symtab.h.
15419 * symtab.h (identify_source_line): Move declaration to source.h.
15420 (print_source_lines): Likewise.
15421 (forget_cached_source_info_for_objfile): Likewise.
15422 (forget_cached_source_info): Likewise.
15423 (select_source_symtab): Likewise.
15424 (enum print_source_lines_flag): Move definition to source.h.
15425 * tui/tui-hooks.c: Add 'source.h' include.
15427 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15429 * source.c (print_source_lines_base): Handle requests to print
15430 reverse line number sequences, and guard against empty lines
15433 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15435 * source.c (print_source_lines_base): Fix skip of '\r' if next
15438 2019-01-06 Tom Tromey <tom@tromey.com>
15440 * c-exp.y (struct c_parse_state) <macro_original_text,
15441 expansion_obstack>: New member.
15442 (macro_original_text, expansion_obstack): Remove globals.
15443 (scan_macro_expansion, scanning_macro_expansion)
15444 (finished_macro_expansion): Update.
15445 (scan_macro_cleanup): Remove.
15446 (yylex, c_parse): Update.
15448 2019-01-06 Tom Tromey <tom@tromey.com>
15450 * c-exp.y (struct c_parse_state) <strings>: New member.
15451 (operator_stoken): Update.
15453 2019-01-06 Tom Tromey <tom@tromey.com>
15455 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15456 (union type_stack_elt) <typelist_val>: Now a pointer to
15458 (type_stack_cleanup): Don't declare.
15459 (push_typelist): Update.
15460 * parse.c (pop_typelist): Return a std::vector.
15461 (push_typelist): Take a std::vector.
15462 (follow_types): Update. Do not free args.
15463 (type_stack_cleanup): Remove.
15464 * c-exp.y (struct c_parse_state): New.
15465 (cpstate): New global.
15466 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15467 (nonempty_typelist): Update.
15468 (func_mod): Create a new vector.
15469 (c_parse): Create a c_parse_state.
15470 (check_parameter_typelist): Do not delete params.
15471 (function_method): Update. Do not delete type_list.
15473 2019-01-06 Tom Tromey <tom@tromey.com>
15476 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15478 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15479 (print_return_value): Likewise.
15481 2019-01-05 Tom Tromey <tom@tromey.com>
15483 * contrib/cleanup_check.py: Remove.
15484 * contrib/gcc-with-excheck: Remove.
15485 * contrib/exsummary.py: Remove.
15486 * contrib/excheck.py: Remove.
15488 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15490 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15491 NULL. Initialize tpprev to NULL instead of assigning it
15492 to NULL on the next statement.
15493 * windows-nat.c (windows_delete_thread): Remove check for
15494 main_thread_id before printing thread exit notifications.
15495 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15496 Remove thread ID check against main_thread_id.
15497 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15498 windows_delete_thread.
15499 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15501 2019-01-04 Tom Tromey <tom@tromey.com>
15503 * compile/compile.c (_initialize_compile): Use upper case for
15504 metasyntactic variables.
15505 * symmisc.c (_initialize_symmisc): Use upper case for
15506 metasyntactic variables.
15507 * psymtab.c (_initialize_psymtab): Use upper case for
15508 metasyntactic variables.
15509 * demangle.c (demangle_command): Use upper case for metasyntactic
15511 (_initialize_demangler): Likewise.
15512 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15515 2019-01-03 Tom Tromey <tom@tromey.com>
15517 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15519 2019-01-03 Tom Tromey <tom@tromey.com>
15521 * python/py-symtab.c (salpy_str): Update.
15522 (struct salpy_sal_object) <symtab>: Now a PyObject.
15523 (salpy_dealloc): Update.
15524 (del_objfile_sal): Use gdbpy_ref.
15526 2019-01-03 Tom Tromey <tom@tromey.com>
15528 * python/py-type.c (convert_field): Use new_reference. Return
15530 (make_fielditem): Return gdbpy_ref.
15531 (typy_fields): Update.
15532 (typy_getitem): Update.
15533 (field_name): Return gdbpy_ref. Use new_reference.
15534 (typy_iterator_iternext): Update.
15536 2019-01-03 Tom Tromey <tom@tromey.com>
15538 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15540 2019-01-03 Tom Tromey <tom@tromey.com>
15542 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15543 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15544 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15545 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15546 (pspy_set_type_printers): Likewise.
15547 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15548 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15549 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15550 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15551 (objfpy_set_type_printers): Likewise.
15553 2019-01-03 Tom Tromey <tom@tromey.com>
15555 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15556 (gdbpy_print_stack): Use gdbpy_err_fetch.
15557 * python/python-internal.h (class gdbpy_err_fetch): New class.
15558 (class gdbpy_enter) <m_error_type, m_error_value,
15559 m_error_traceback>: Remove.
15560 <m_error>: New member.
15561 (gdbpy_exception_to_string): Don't declare.
15562 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15563 * python/py-value.c (convert_value_from_python): Use
15565 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15566 gdbpy_exception_to_string.
15567 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15568 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15571 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15573 * linux-nat.c (delete_lwp_cleanup): Delete.
15574 (struct lwp_deleter): New struct.
15575 (lwp_info_up): New typedef.
15576 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15579 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15581 * linux-fork.c (class scoped_switch_fork_info): New class.
15582 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15584 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15586 * valops.c (find_overload_match): Remove use of null_cleanup, and
15587 calls to do_cleanups.
15589 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15591 * compile/compile-cplus-types.c
15592 (compile_cplus_instance::decl_name): Handle changes to
15594 * cp-support.c (cp_func_name): Update header comment, update
15596 * cp-support.h (cp_func_name): Update return type in declaration.
15597 * valops.c (find_overload_match): Move temp_func local to top
15598 level of function and change its type. Use temp_func to hold and
15599 delete temporary string obtained from cp_func_name.
15601 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15603 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15604 gdb::char_vector, remove cleanup, and update uses of `msg`.
15606 2019-01-03 Jim Wilson <jimw@sifive.com>
15608 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15610 2019-01-02 Tom Tromey <tom@tromey.com>
15612 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15613 (tdesc_parse_xml): Remove cleanups.
15614 * target-descriptions.h (make_cleanup_free_target_description):
15616 (target_desc_deleter): New struct.
15617 (target_desc_up): New typedef.
15618 * target-descriptions.c (target_desc_deleter::operator()): Rename
15619 from free_target_description.
15620 (make_cleanup_free_target_description): Remove.
15622 2019-01-02 Tom Tromey <tom@tromey.com>
15624 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15625 constructor, destructor.
15626 (linespec_parser): Remove typedef.
15627 (~linespec_parser): Rename from linespec_parser_delete.
15628 (linespec_lex_to_end, linespec_complete_label)
15629 (linespec_complete): Update.
15630 (decode_line_full): Remove cleanups.
15631 (decode_line_1): Update.
15633 2019-01-02 Tom Tromey <tom@tromey.com>
15635 * python/python-internal.h (inferior_to_inferior_object): Change
15637 * python/py-exitedevent.c (create_exited_event_object): Update.
15638 * python/py-inferior.c (inferior_to_inferior_object): Return
15640 (python_new_inferior, python_inferior_deleted)
15641 (thread_to_thread_object, delete_thread_object)
15642 (build_inferior_list, gdbpy_selected_inferior): Update.
15643 * python/py-infthread.c (create_thread_object): Update. Also fail
15644 if inferior_to_inferior_object fails.
15646 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15648 * inferior.h (class inferior) <displaced_step_state>: New field.
15649 * infrun.h (struct displaced_step_state): Move here from
15650 infrun.c. Initialize fields, add constructor.
15651 <inf>: Remove field.
15652 <reset>: New method.
15653 * infrun.c (struct displaced_step_inferior_state): Move to
15655 (displaced_step_inferior_states): Remove.
15656 (get_displaced_stepping_state): Adust.
15657 (displaced_step_in_progress_any_inferior): Adjust.
15658 (displaced_step_in_progress_thread): Adjust.
15659 (displaced_step_in_progress): Adjust.
15660 (add_displaced_stepping_state): Remove.
15661 (get_displaced_step_closure_by_addr): Adjust.
15662 (remove_displaced_stepping_state): Remove.
15663 (infrun_inferior_exit): Call displaced_step_state.reset.
15664 (use_displaced_stepping): Don't check for NULL.
15665 (displaced_step_prepare_throw): Call
15666 get_displaced_stepping_state.
15667 (displaced_step_fixup): Don't check for NULL.
15668 (prepare_for_detach): Don't check for NULL.
15670 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15672 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15673 in case of call that did not complete.
15675 2019-01-02 Andrey Utkin <autkin@undo.io>
15677 * symfile.c (find_separate_debug_file): Fix search of debug files for
15680 2019-01-02 Tom Tromey <tom@tromey.com>
15682 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15684 * python/py-frame.c (frapy_older): Remove cast.
15685 (frapy_newer): Likewise.
15686 * python/py-breakpoint.c (local_setattro): Remove cast.
15687 * python/py-arch.c (archpy_name): Remove local variable.
15688 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15690 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15692 * unittests/basic_string_view/element_access/char/empty.cc:
15693 Fix year range in copyright header.
15695 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15697 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15699 <operator==>: Update with for removed field.
15701 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15702 <isa_features>: ...this.
15703 <abi_features>: New field.
15704 (riscv_isa_flen): Update comment.
15705 (riscv_abi_xlen): New declaration.
15706 (riscv_abi_flen): New declaration.
15707 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15709 (riscv_abi_xlen): New function.
15710 (riscv_isa_flen): Update to get answer from isa_features.
15711 (riscv_abi_flen): New function.
15712 (riscv_has_fp_abi): Update to get answer from abi_features.
15713 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15715 (riscv_call_info) <xlen, flen>: Update comment.
15716 (riscv_call_arg_struct): Remove invalid assertions
15717 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15719 (riscv_gdbarch_init): Gather isa features and abi features
15720 separately, ensure both match on the gdbarch when reusing an old
15721 gdbarch. Relax an error check to allow 32-bit abi float to run on
15722 a target with 64-bit float hardware.
15724 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15726 * source.c (search_command_helper): Stop reverse search
15727 when line 1 has been searched.
15729 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15731 * record-full.c (record_full_base_target::close): Rewrite
15732 record_full_core_buf_list free logic.
15734 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15736 * break-catch-syscall.c (print_one_catch_syscall): xfree
15739 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15741 * top.c (print_gdb_version): Update Copyright year in version
15744 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15746 Update copyright year range in all GDB files.
15748 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15750 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15752 For older changes see ChangeLog-2018.
15758 version-control: never