4 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
5 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
6 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
7 (dwarf_expr_context::get_addr_index): Likewise
8 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9 (symbol_needs_eval_context::get_addr_index): Likewise
10 (disassemble_dwarf_expression): Add DW_OP_addrx
11 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
12 (read_cutu_die_from_dwo): Update comment
13 (skip_one_die): Add DW_FORM_addrx
14 (read_attribute_value): Likewise
15 (var_decode_location): Add DW_OP_addrx
16 (dwarf2_const_value_attr): Add DW_FORM_addrx
17 (dump_die_shallow): Likewise
18 (dwarf2_fetch_constant_bytes): Likewise
19 (decode_locdesc): Add DW_OP_addrx
20 (skip_form_bytes): Add DW_FORM_addrx
24 * MAINTAINERS (Write After Approval): Add self.
28 * solib-svr4.c (get_svr4_info): Add pspace parameter.
29 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
30 (open_symbol_file_object): Likewise.
31 (svr4_default_sos): Add info parameter.
32 (svr4_read_so_list): Likewise.
33 (svr4_current_sos_direct): Adjust functions calls to pass down
35 (svr4_current_sos_1): Add info parameter.
36 (svr4_current_sos): Call get_svr4_info, pass info down to
38 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
40 (svr4_in_dynsym_resolve_code): Pass current_program_space to
42 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
44 (probes_table_remove_objfile_probes): Likewise.
45 (register_solib_event_probe): Add info parameter.
46 (solist_update_incremental): Pass info parameter down to
48 (disable_probes_interface): Add info parameter.
49 (svr4_handle_solib_event): Pass current_program_space to
50 get_svr4_info. Adjust disable_probes_interface cleanup.
51 (svr4_create_probe_breakpoints): Add info parameter, pass it
52 down to register_solib_event_probe.
53 (svr4_create_solib_event_breakpoints): Add info parameter,
54 pass it down to svr4_create_probe_breakpoints.
55 (enable_break): Pass info down to
56 svr4_create_solib_event_breakpoints.
57 (svr4_solib_create_inferior_hook): Pass current_program_space to
59 (svr4_clear_solib): Likewise.
63 * solib-svr4.c (svr4_free_objfile_observer): New.
64 (probe_and_action::objfile): New field.
65 (probes_table_htab_remove_objfile_probes)
66 (probes_table_remove_objfile_probes): New functions.
67 (register_solib_event_probe): Add 'objfile' parameter. Store it
68 in the new probe_and_action. Don't store the probe in 'lookup'.
69 (svr4_create_probe_breakpoints): Pass objfile to
70 register_solib_event_probe.
71 (_initialize_svr4_solib): Register a free_objfile observer.
75 * common/queue.h: Remove.
79 * event-loop.c: Don't include "common/queue.h".
83 * remote.c (remote_target): Use delete.
84 * remote-notif.h: Include <list>, not "common/queue.h".
85 (notif_client_p): Remove typedef.
86 (remote_notif_state): Add constructor, destructor, initializer.
87 <notif_queue>: Now a std::list.
88 (remote_notif_state_xfree): Don't declare.
89 * remote-notif.c (remote_notif_process, handle_notification)
90 (remote_notif_state_allocate): Update.
91 (~remote_notif_state): Rename from remote_notif_state_xfree.
95 * symfile.c (reread_symbols): Update.
96 * objfiles.c (objfile_register_static_link)
97 (objfile_lookup_static_link): Update
98 (~objfile) Don't delete static_links.
99 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
103 * type-stack.h (struct type_stack) <insert>: Constify string.
104 * type-stack.c (type_stack::insert): Constify string.
105 * gdbtypes.h (lookup_template_type): Update.
106 (address_space_name_to_int): Update.
107 * gdbtypes.c (address_space_name_to_int): Make space_identifier
109 (lookup_template_type): Make name const.
110 * c-exp.y: Update rules.
111 (lex_one_token, classify_name, classify_inner_name)
112 (c_print_token): Update.
113 * p-exp.y: Update rules.
115 * f-exp.y: Update rules.
117 * d-exp.y: Update rules.
118 (lex_one_token, classify_name, classify_inner_name): Update.
119 * parse.c (write_dollar_variable, copy_name): Return std::string.
120 * parser-defs.h (copy_name): Change return type.
121 * m2-exp.y: Update rules.
123 * go-exp.y (lex_one_token): Update.
125 (classify_unsafe_function, classify_packaged_name)
126 (classify_name, yylex): Update.
130 * configure.ac: add --enable-source-highlight switch.
131 * configure: Regenerate.
132 * top.c (print_gdb_version): plumb --enable-source-highlight
133 status to "show configuration".
137 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
139 (empty_record, ada_template_to_fixed_record_type_1)
140 (template_to_static_fixed_type)
141 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
142 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
143 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
149 * source.c (print_source_lines_base): Advance "iter" when a
150 control character is seen.
154 * inferior.h (struct infcall_suspend_state_deleter):
155 Catch exception in destructor to avoid crash.
159 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
160 close to the add_com "shell".
164 * process-stratum-target.h (class process_stratum_target)
165 <stratum>: Add "final".
169 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
170 against nullptr before use.
174 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
179 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
180 code read might fail, assume 4-byte breakpoint in that case.
184 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
185 rather than a hand-rolled POD check when checking for forced MEMORY
190 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
191 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
193 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
194 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
195 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
200 * aarch64-linux-nat.c
201 (aarch64_linux_nat_target::thread_architecture): Add override.
202 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
207 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
211 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
212 target types of size 96-bits, add some additional comments, and
213 check that the builtin type we found was the correct size.
217 * utils.c (prompt_for_continue): Don't restore the styling at the
218 end, as applied_style has the wrong value. This fixes styling in
219 long lists of file names that are interrupted by the "Continue?"
224 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
225 * c-lang.c (c_language_defn): Likewise.
226 (cplus_language_defn): Likewise.
227 (asm_language_defn): Likewise.
228 (minimal_language_defn): Likewise.
229 * d-lang.c (d_language_defn): Likewise.
230 * f-lang.c (f_language_defn): Likewise.
231 * go-lang.c (go_language_defn): Likewise.
232 * language.c (unknown_language_defn): Likewise.
233 (auto_language_defn): Likewise.
234 * language.h (struct language_defn): Remove la_magic field.
235 (LANG_MAGIC): Delete.
236 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
237 * objc-lang.c (objc_language_defn): Likewise.
238 * opencl-lang.c (opencl_language_defn): Likewise.
239 * p-lang.c (pascal_language_defn): Likewise.
240 * rust-lang.c (rust_language_defn): Likewise.
244 * riscv-tdep.c (riscv_type_align): New function.
245 (riscv_type_alignment): Delete.
246 (riscv_arg_location): Use 'type_align'.
247 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
251 * gdbtypes.c (type_align): A struct with no non-static fields also
256 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
258 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
260 (riscv_struct_info::analyse): New implementation using new
261 analyse_inner member function.
262 (riscv_struct_info::field_offset): New member function.
263 (riscv_struct_info::m_offsets): New member variable.
264 (riscv_struct_info::analyse_inner): New private member function,
265 takes the old implementation of riscv_struct_info::analyse but
266 extended to track field offsets.
267 (riscv_call_arg_struct): Update the struct folding special cases
268 to handle cases where empty C++ structs, which are non-zero
270 (riscv_arg_location): Initialise the length of each location, a
271 non-zero length now indicates the location is in use.
272 (riscv_push_dummy_call): Allow for the first location having a
273 non-zero offset when setting up arguments.
274 (riscv_return_value): Likewise, but for return values.
278 * utils.c (internal_vproblem): Make "msg" const.
282 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
283 * trad-frame.c (trad_frame_reset_saved_regs): New function.
284 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
285 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
289 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
291 (fill_gregset): Call amd64_linux_collect_native_gregset instead
292 of amd64_collect_native_gregset.
293 (amd64_linux_nat_target::store_registers): Likewise.
297 * symtab.c (lookup_global_symbol_from_objfile)
298 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
299 * objfiles.h (class separate_debug_iterator): New.
300 (class separate_debug_range): New.
301 (struct objfile) <separate_debug_objfiles>: New method.
302 (objfile_separate_debug_iterate): Don't declare.
303 * objfiles.c (separate_debug_iterator::operator++): Rename from
304 objfile_separate_debug_iterate.
305 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
307 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
312 * symfile.c (reread_symbols): Remove old comment.
313 * objfiles.c (free_all_objfiles): Fix a typo.
317 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
318 * minsyms.c (lookup_minimal_symbol): Use foreach.
319 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
320 (lookup_minimal_symbol_solib_trampoline): Likewise.
321 * symfile.c (reread_symbols): Use foreach.
327 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
328 (rust_lex_int_test): Change "value" to be LONGEST.
329 (rust_lex_tests): Add test for long integer literal.
333 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
335 (extended_remote_target::attach): Update.
336 (remote_target::remote_notice_new_inferior): Update.
337 (remote_target::add_current_inferior_and_thread): Update.
338 * inferior.c (exit_inferior_1): Use "false".
339 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
343 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
348 * python/py-inferior.c (infpy_thread_from_thread_handle):
349 Adjust comments to reflect renaming of thread_from_thread_handle
350 to thread_from_handle. Adjust keywords. Fix type error message.
351 (inferior_object_methods): Add thread_from_handle. Retain
352 thread_from_thread_handle, but mark it as deprecated.
356 * gdbthread.h (find_thread_by_handle): Revise declaration.
357 * thread.c (find_thread_by_handle): Likewise. Adjust
359 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
360 support for buffer objects as handles.
364 * python/py-infthread.c (thpy_thread_handle): New function.
365 (thread_object_methods): Register thpy_thread_handle.
369 * gdbthread.h (thread_to_thread_handle): Declare.
370 * thread.c (gdbtypes.h): Include.
371 (thread_to_thread_handle): New function.
373 * target.h (struct target_ops): Add thread_info_to_thread_handle.
374 (target_thread_info_to_thread_handle): Declare.
375 * target.c (target_thread_info_to_thread_handle): New function.
376 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
377 * target-delegates.c: Regenerate.
379 * linux-thread-db.c (class thread_db_target): Add method
380 thread_info_to_thread_handle.
381 (thread_db_target::thread_info_to_thread_handle): Define.
382 * remote.c (class remote_target): Add new method
383 thread_info_to_thread_handle.
384 (remote_target::thread_info_to_thread_handle): Define.
388 * common/common-exceptions.c (throw_exception): Don't create
389 named object to throw; throw directly.
390 (throw_it): Likewise. Don't initialize gdb_exception::message
391 here, with new; pass FMT and AP to the ctor instead.
392 * common/common-exceptions.h: Include <string>.
393 (gdb_exception::gdb_exception(enum return_reason, enum errors,
394 const char *, va_list)): New ctor. Use std::make_shared.
395 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
397 (gdb_exception_error::gdb_exception_error(enum errors, const char
399 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
401 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
403 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
404 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
409 * valops.c (value_rtti_indirect_type): Replace throw_exception
411 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
413 * thread.c (thr_try_catch_cmd): Replace throw_exception with
415 * target.c (target_translate_tls_address): Replace throw_exception
417 * stack.c (frame_apply_command_count): Replace throw_exception
419 * solib-spu.c (append_ocl_sos): Replace throw_exception with
421 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
423 * rs6000-tdep.c (rs6000_frame_cache)
424 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
425 * remote.c: Replace throw_exception with throw.
426 * record-full.c (record_full_message, record_full_wait_1)
427 (record_full_restore): Replace throw_exception with throw.
429 (get_thread_current_frame_id, record_btrace_start_replaying)
430 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
431 (cmd_record_btrace_start): Replace throw_exception with throw.
432 * parse.c (parse_exp_in_context_1): Replace throw_exception with
434 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
435 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
437 (find_linespec_symbols): Replace throw_exception with throw.
438 * infrun.c (displaced_step_prepare, resume): Replace
439 throw_exception with throw.
440 * infcmd.c (post_create_inferior): Replace throw_exception with
442 * inf-loop.c (inferior_event_handler): Replace throw_exception
444 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
445 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
446 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
447 (get_prev_frame_always, get_frame_pc_if_available)
448 (get_frame_address_in_block_if_available, get_frame_language):
449 Replace throw_exception with throw.
450 * frame-unwind.c (frame_unwind_try_unwinder): Replace
451 throw_exception with throw.
452 * eval.c (fetch_subexp_value, evaluate_var_value)
453 (evaluate_funcall, evaluate_subexp_standard): Replace
454 throw_exception with throw.
455 * dwarf2loc.c (call_site_find_chain)
456 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
457 Replace throw_exception with throw.
458 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
460 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
462 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
463 * completer.c (complete_line_internal): Replace throw_exception
465 * compile/compile-object-run.c (compile_object_run): Replace
466 throw_exception with throw.
467 * cli/cli-script.c (process_next_line): Replace throw_exception
469 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
470 (btrace_enable, btrace_maint_update_pt_packets): Replace
471 throw_exception with throw.
472 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
473 throw_exception with throw.
474 * break-catch-throw.c (re_set_exception_catchpoint): Replace
475 throw_exception with throw.
476 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
477 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
478 * aarch64-tdep.c (aarch64_make_prologue_cache)
479 (aarch64_make_stub_cache): Replace throw_exception with throw.
483 * common/common-exceptions.c (throw_exception): Rename from
484 throw_exception_cxx. Remove old copy. Make argument const.
485 (throw_it): Create and throw exception objects directly.
486 * common/common-exceptions.h (throw_exception): Make argument
488 (struct gdb_exception_error): Add constructor.
489 (struct gdb_exception_quit): Add constructor.
493 * common/common-exceptions.h (exception_rethrow): Don't declare.
494 (TRY_SJLJ): Update comment.
495 (TRY, CATCH, END_CATCH): Remove.
496 * common/common-exceptions.c (exception_rethrow): Remove.
500 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
502 (gdb_exception_error): Rename from
503 gdb_exception_RETURN_MASK_ERROR.
504 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
505 (gdb_quit_bad_alloc): Update.
506 * aarch64-tdep.c: Update.
507 * ada-lang.c: Update.
508 * ada-typeprint.c: Update.
509 * ada-valprint.c: Update.
510 * amd64-tdep.c: Update.
511 * arch-utils.c: Update.
512 * break-catch-throw.c: Update.
513 * breakpoint.c: Update.
515 * c-varobj.c: Update.
516 * cli/cli-cmds.c: Update.
517 * cli/cli-interp.c: Update.
518 * cli/cli-script.c: Update.
519 * common/common-exceptions.c: Update.
520 * common/new-op.c: Update.
521 * common/selftest.c: Update.
522 * compile/compile-c-symbols.c: Update.
523 * compile/compile-cplus-symbols.c: Update.
524 * compile/compile-object-load.c: Update.
525 * compile/compile-object-run.c: Update.
526 * completer.c: Update.
529 * cp-support.c: Update.
530 * cp-valprint.c: Update.
531 * darwin-nat.c: Update.
532 * disasm-selftests.c: Update.
533 * dtrace-probe.c: Update.
534 * dwarf-index-cache.c: Update.
535 * dwarf-index-write.c: Update.
536 * dwarf2-frame-tailcall.c: Update.
537 * dwarf2-frame.c: Update.
538 * dwarf2loc.c: Update.
539 * dwarf2read.c: Update.
541 * event-loop.c: Update.
542 * event-top.c: Update.
544 * f-valprint.c: Update.
545 * fbsd-tdep.c: Update.
546 * frame-unwind.c: Update.
548 * gdbtypes.c: Update.
549 * gnu-v3-abi.c: Update.
550 * guile/guile-internal.h: Update.
551 * guile/scm-block.c: Update.
552 * guile/scm-breakpoint.c: Update.
553 * guile/scm-cmd.c: Update.
554 * guile/scm-disasm.c: Update.
555 * guile/scm-frame.c: Update.
556 * guile/scm-lazy-string.c: Update.
557 * guile/scm-math.c: Update.
558 * guile/scm-param.c: Update.
559 * guile/scm-ports.c: Update.
560 * guile/scm-pretty-print.c: Update.
561 * guile/scm-symbol.c: Update.
562 * guile/scm-symtab.c: Update.
563 * guile/scm-type.c: Update.
564 * guile/scm-value.c: Update.
565 * i386-linux-tdep.c: Update.
566 * i386-tdep.c: Update.
567 * inf-loop.c: Update.
572 * language.c: Update.
573 * linespec.c: Update.
574 * linux-fork.c: Update.
575 * linux-nat.c: Update.
576 * linux-tdep.c: Update.
577 * linux-thread-db.c: Update.
579 * mi/mi-cmd-break.c: Update.
580 * mi/mi-cmd-stack.c: Update.
581 * mi/mi-interp.c: Update.
582 * mi/mi-main.c: Update.
583 * objc-lang.c: Update.
584 * p-valprint.c: Update.
586 * ppc-linux-tdep.c: Update.
587 * printcmd.c: Update.
588 * python/py-arch.c: Update.
589 * python/py-breakpoint.c: Update.
590 * python/py-cmd.c: Update.
591 * python/py-finishbreakpoint.c: Update.
592 * python/py-frame.c: Update.
593 * python/py-framefilter.c: Update.
594 * python/py-gdb-readline.c: Update.
595 * python/py-inferior.c: Update.
596 * python/py-infthread.c: Update.
597 * python/py-lazy-string.c: Update.
598 * python/py-linetable.c: Update.
599 * python/py-objfile.c: Update.
600 * python/py-param.c: Update.
601 * python/py-prettyprint.c: Update.
602 * python/py-progspace.c: Update.
603 * python/py-record-btrace.c: Update.
604 * python/py-record.c: Update.
605 * python/py-symbol.c: Update.
606 * python/py-type.c: Update.
607 * python/py-unwind.c: Update.
608 * python/py-utils.c: Update.
609 * python/py-value.c: Update.
610 * python/python.c: Update.
611 * record-btrace.c: Update.
612 * record-full.c: Update.
613 * remote-fileio.c: Update.
615 * riscv-tdep.c: Update.
616 * rs6000-aix-tdep.c: Update.
617 * rs6000-tdep.c: Update.
618 * rust-exp.y: Update.
619 * rust-lang.c: Update.
620 * s390-tdep.c: Update.
621 * selftest-arch.c: Update.
622 * solib-dsbt.c: Update.
623 * solib-frv.c: Update.
624 * solib-spu.c: Update.
625 * solib-svr4.c: Update.
627 * sparc64-linux-tdep.c: Update.
629 * symfile-mem.c: Update.
634 * tracefile-tfile.c: Update.
636 * typeprint.c: Update.
637 * unittests/cli-utils-selftests.c: Update.
638 * unittests/parse-connection-spec-selftests.c: Update.
640 * valprint.c: Update.
643 * windows-nat.c: Update.
644 * x86-linux-nat.c: Update.
645 * xml-support.c: Update.
649 * xml-support.c: Use C++ exception handling.
650 * x86-linux-nat.c: Use C++ exception handling.
651 * windows-nat.c: Use C++ exception handling.
652 * varobj.c: Use C++ exception handling.
653 * value.c: Use C++ exception handling.
654 * valprint.c: Use C++ exception handling.
655 * valops.c: Use C++ exception handling.
656 * unittests/parse-connection-spec-selftests.c: Use C++ exception
658 * unittests/cli-utils-selftests.c: Use C++ exception handling.
659 * typeprint.c: Use C++ exception handling.
660 * tui/tui.c: Use C++ exception handling.
661 * tracefile-tfile.c: Use C++ exception handling.
662 * top.c: Use C++ exception handling.
663 * thread.c: Use C++ exception handling.
664 * target.c: Use C++ exception handling.
665 * symmisc.c: Use C++ exception handling.
666 * symfile-mem.c: Use C++ exception handling.
667 * stack.c: Use C++ exception handling.
668 * sparc64-linux-tdep.c: Use C++ exception handling.
669 * solib.c: Use C++ exception handling.
670 * solib-svr4.c: Use C++ exception handling.
671 * solib-spu.c: Use C++ exception handling.
672 * solib-frv.c: Use C++ exception handling.
673 * solib-dsbt.c: Use C++ exception handling.
674 * selftest-arch.c: Use C++ exception handling.
675 * s390-tdep.c: Use C++ exception handling.
676 * rust-lang.c: Use C++ exception handling.
677 * rust-exp.y: Use C++ exception handling.
678 * rs6000-tdep.c: Use C++ exception handling.
679 * rs6000-aix-tdep.c: Use C++ exception handling.
680 * riscv-tdep.c: Use C++ exception handling.
681 * remote.c: Use C++ exception handling.
682 * remote-fileio.c: Use C++ exception handling.
683 * record-full.c: Use C++ exception handling.
684 * record-btrace.c: Use C++ exception handling.
685 * python/python.c: Use C++ exception handling.
686 * python/py-value.c: Use C++ exception handling.
687 * python/py-utils.c: Use C++ exception handling.
688 * python/py-unwind.c: Use C++ exception handling.
689 * python/py-type.c: Use C++ exception handling.
690 * python/py-symbol.c: Use C++ exception handling.
691 * python/py-record.c: Use C++ exception handling.
692 * python/py-record-btrace.c: Use C++ exception handling.
693 * python/py-progspace.c: Use C++ exception handling.
694 * python/py-prettyprint.c: Use C++ exception handling.
695 * python/py-param.c: Use C++ exception handling.
696 * python/py-objfile.c: Use C++ exception handling.
697 * python/py-linetable.c: Use C++ exception handling.
698 * python/py-lazy-string.c: Use C++ exception handling.
699 * python/py-infthread.c: Use C++ exception handling.
700 * python/py-inferior.c: Use C++ exception handling.
701 * python/py-gdb-readline.c: Use C++ exception handling.
702 * python/py-framefilter.c: Use C++ exception handling.
703 * python/py-frame.c: Use C++ exception handling.
704 * python/py-finishbreakpoint.c: Use C++ exception handling.
705 * python/py-cmd.c: Use C++ exception handling.
706 * python/py-breakpoint.c: Use C++ exception handling.
707 * python/py-arch.c: Use C++ exception handling.
708 * printcmd.c: Use C++ exception handling.
709 * ppc-linux-tdep.c: Use C++ exception handling.
710 * parse.c: Use C++ exception handling.
711 * p-valprint.c: Use C++ exception handling.
712 * objc-lang.c: Use C++ exception handling.
713 * mi/mi-main.c: Use C++ exception handling.
714 * mi/mi-interp.c: Use C++ exception handling.
715 * mi/mi-cmd-stack.c: Use C++ exception handling.
716 * mi/mi-cmd-break.c: Use C++ exception handling.
717 * main.c: Use C++ exception handling.
718 * linux-thread-db.c: Use C++ exception handling.
719 * linux-tdep.c: Use C++ exception handling.
720 * linux-nat.c: Use C++ exception handling.
721 * linux-fork.c: Use C++ exception handling.
722 * linespec.c: Use C++ exception handling.
723 * language.c: Use C++ exception handling.
724 * jit.c: Use C++ exception handling.
725 * infrun.c: Use C++ exception handling.
726 * infcmd.c: Use C++ exception handling.
727 * infcall.c: Use C++ exception handling.
728 * inf-loop.c: Use C++ exception handling.
729 * i386-tdep.c: Use C++ exception handling.
730 * i386-linux-tdep.c: Use C++ exception handling.
731 * guile/scm-value.c: Use C++ exception handling.
732 * guile/scm-type.c: Use C++ exception handling.
733 * guile/scm-symtab.c: Use C++ exception handling.
734 * guile/scm-symbol.c: Use C++ exception handling.
735 * guile/scm-pretty-print.c: Use C++ exception handling.
736 * guile/scm-ports.c: Use C++ exception handling.
737 * guile/scm-param.c: Use C++ exception handling.
738 * guile/scm-math.c: Use C++ exception handling.
739 * guile/scm-lazy-string.c: Use C++ exception handling.
740 * guile/scm-frame.c: Use C++ exception handling.
741 * guile/scm-disasm.c: Use C++ exception handling.
742 * guile/scm-cmd.c: Use C++ exception handling.
743 * guile/scm-breakpoint.c: Use C++ exception handling.
744 * guile/scm-block.c: Use C++ exception handling.
745 * guile/guile-internal.h: Use C++ exception handling.
746 * gnu-v3-abi.c: Use C++ exception handling.
747 * gdbtypes.c: Use C++ exception handling.
748 * frame.c: Use C++ exception handling.
749 * frame-unwind.c: Use C++ exception handling.
750 * fbsd-tdep.c: Use C++ exception handling.
751 * f-valprint.c: Use C++ exception handling.
752 * exec.c: Use C++ exception handling.
753 * event-top.c: Use C++ exception handling.
754 * event-loop.c: Use C++ exception handling.
755 * eval.c: Use C++ exception handling.
756 * dwarf2read.c: Use C++ exception handling.
757 * dwarf2loc.c: Use C++ exception handling.
758 * dwarf2-frame.c: Use C++ exception handling.
759 * dwarf2-frame-tailcall.c: Use C++ exception handling.
760 * dwarf-index-write.c: Use C++ exception handling.
761 * dwarf-index-cache.c: Use C++ exception handling.
762 * dtrace-probe.c: Use C++ exception handling.
763 * disasm-selftests.c: Use C++ exception handling.
764 * darwin-nat.c: Use C++ exception handling.
765 * cp-valprint.c: Use C++ exception handling.
766 * cp-support.c: Use C++ exception handling.
767 * cp-abi.c: Use C++ exception handling.
768 * corelow.c: Use C++ exception handling.
769 * completer.c: Use C++ exception handling.
770 * compile/compile-object-run.c: Use C++ exception handling.
771 * compile/compile-object-load.c: Use C++ exception handling.
772 * compile/compile-cplus-symbols.c: Use C++ exception handling.
773 * compile/compile-c-symbols.c: Use C++ exception handling.
774 * common/selftest.c: Use C++ exception handling.
775 * common/new-op.c: Use C++ exception handling.
776 * cli/cli-script.c: Use C++ exception handling.
777 * cli/cli-interp.c: Use C++ exception handling.
778 * cli/cli-cmds.c: Use C++ exception handling.
779 * c-varobj.c: Use C++ exception handling.
780 * btrace.c: Use C++ exception handling.
781 * breakpoint.c: Use C++ exception handling.
782 * break-catch-throw.c: Use C++ exception handling.
783 * arch-utils.c: Use C++ exception handling.
784 * amd64-tdep.c: Use C++ exception handling.
785 * ada-valprint.c: Use C++ exception handling.
786 * ada-typeprint.c: Use C++ exception handling.
787 * ada-lang.c: Use C++ exception handling.
788 * aarch64-tdep.c: Use C++ exception handling.
792 * xml-support.c (gdb_xml_parser::parse): Update.
793 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
794 * value.c (show_convenience): Update.
795 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
796 (test_parse_flags_qcs): Update.
797 * thread.c (thr_try_catch_cmd): Update.
798 * target.c (target_translate_tls_address): Update.
799 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
800 (info_frame_command_core, frame_apply_command_count): Update.
801 * rust-exp.y (rust_lex_exception_test): Update.
802 * riscv-tdep.c (riscv_print_one_register_info): Update.
803 * remote.c (remote_target::enable_btrace): Update.
804 * record-btrace.c (record_btrace_enable_warn): Update.
805 * python/py-utils.c (gdbpy_convert_exception): Update.
806 * printcmd.c (do_one_display, print_variable_and_value): Update.
807 * mi/mi-main.c (mi_print_exception): Update.
808 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
809 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
810 * linux-nat.c (linux_nat_target::attach): Update.
811 * linux-fork.c (class scoped_switch_fork_info): Update.
812 * infrun.c (displaced_step_prepare): Update.
813 * infcall.c (call_function_by_hand_dummy): Update.
814 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
815 * gnu-v3-abi.c (print_one_vtable): Update.
816 * frame.c (get_prev_frame_always): Update.
817 * f-valprint.c (info_common_command_for_block): Update.
818 * exec.c (try_open_exec_file): Update.
819 * exceptions.c (print_exception, exception_print)
820 (exception_fprintf, exception_print_same): Update.
821 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
822 * dwarf-index-cache.c (index_cache::store)
823 (index_cache::lookup_gdb_index): Update.
824 * darwin-nat.c (maybe_cache_shell): Update.
825 * cp-valprint.c (cp_print_value_fields): Update.
826 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
827 (gcc_cplus_symbol_address): Update.
828 * compile/compile-c-symbols.c (gcc_convert_symbol)
829 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
830 * common/selftest.c: Update.
831 * common/common-exceptions.h (struct gdb_exception) <message>: Now
833 (exception_try_scope_entry, exception_try_scope_exit): Don't
835 (struct exception_try_scope): Remove.
836 (TRY): Don't use exception_try_scope.
837 (struct gdb_exception): Add constructor, operator=.
839 (struct gdb_exception_RETURN_MASK_ALL)
840 (struct gdb_exception_RETURN_MASK_ERROR)
841 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
842 (struct gdb_quit_bad_alloc): Update.
843 * common/common-exceptions.c (exception_none): Change
845 (struct catcher) <state, exception>: Initialize inline.
846 <prev>: Remove member.
847 (current_catcher): Remove.
848 (catchers): New global.
849 (exceptions_state_mc_init): Simplify.
850 (catcher_pop): Remove.
851 (exceptions_state_mc, exceptions_state_mc_catch): Update.
852 (try_scope_depth, exception_try_scope_entry)
853 (exception_try_scope_exit): Remove.
854 (throw_exception_sjlj): Update.
855 (exception_messages, exception_messages_size): Remove.
856 (throw_it): Simplify.
857 (gdb_exception_sliced_copy): Remove.
858 (throw_exception_cxx): Update.
859 * cli/cli-script.c (script_from_file): Update.
860 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
862 * ada-valprint.c (ada_val_print): Update.
863 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
864 (create_excep_cond_exprs): Update.
868 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
869 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
870 (TRY, CATCH, END_CATCH): Remove some definitions.
871 * common/common-exceptions.c: Don't use GDB_XCPT.
872 (catcher_list_size): Remove.
873 (throw_exception, throw_it): Simplify.
877 Revert the header-sorting patch.
878 * ft32-tdep.c: Revert.
879 * frv-tdep.c: Revert.
880 * frv-linux-tdep.c: Revert.
882 * frame-unwind.c: Revert.
883 * frame-base.c: Revert.
884 * fork-child.c: Revert.
887 * filesystem.c: Revert.
888 * filename-seen-cache.h: Revert.
889 * filename-seen-cache.c: Revert.
890 * fbsd-tdep.c: Revert.
891 * fbsd-nat.h: Revert.
892 * fbsd-nat.c: Revert.
893 * f-valprint.c: Revert.
894 * f-typeprint.c: Revert.
896 * extension.h: Revert.
897 * extension.c: Revert.
898 * extension-priv.h: Revert.
899 * expprint.c: Revert.
902 * exceptions.c: Revert.
903 * event-top.c: Revert.
904 * event-loop.c: Revert.
907 * dwarf2read.h: Revert.
908 * dwarf2read.c: Revert.
909 * dwarf2loc.c: Revert.
910 * dwarf2expr.h: Revert.
911 * dwarf2expr.c: Revert.
912 * dwarf2-frame.c: Revert.
913 * dwarf2-frame-tailcall.c: Revert.
914 * dwarf-index-write.h: Revert.
915 * dwarf-index-write.c: Revert.
916 * dwarf-index-common.c: Revert.
917 * dwarf-index-cache.h: Revert.
918 * dwarf-index-cache.c: Revert.
919 * dummy-frame.c: Revert.
920 * dtrace-probe.c: Revert.
923 * disasm-selftests.c: Revert.
924 * dictionary.c: Revert.
925 * dicos-tdep.c: Revert.
926 * demangle.c: Revert.
929 * darwin-nat.h: Revert.
930 * darwin-nat.c: Revert.
931 * darwin-nat-info.c: Revert.
932 * d-valprint.c: Revert.
933 * d-namespace.c: Revert.
936 * csky-tdep.c: Revert.
937 * csky-linux-tdep.c: Revert.
938 * cris-tdep.c: Revert.
939 * cris-linux-tdep.c: Revert.
940 * cp-valprint.c: Revert.
941 * cp-support.c: Revert.
942 * cp-namespace.c: Revert.
945 * corefile.c: Revert.
946 * continuations.c: Revert.
947 * completer.h: Revert.
948 * completer.c: Revert.
949 * complaints.c: Revert.
950 * coffread.c: Revert.
951 * coff-pe-read.c: Revert.
955 * c-varobj.c: Revert.
956 * c-valprint.c: Revert.
957 * c-typeprint.c: Revert.
959 * buildsym.c: Revert.
960 * buildsym-legacy.c: Revert.
961 * build-id.h: Revert.
962 * build-id.c: Revert.
964 * bsd-uthread.c: Revert.
965 * breakpoint.h: Revert.
966 * breakpoint.c: Revert.
967 * break-catch-throw.c: Revert.
968 * break-catch-syscall.c: Revert.
969 * break-catch-sig.c: Revert.
970 * blockframe.c: Revert.
972 * bfin-tdep.c: Revert.
973 * bfin-linux-tdep.c: Revert.
974 * bfd-target.c: Revert.
976 * ax-general.c: Revert.
979 * avr-tdep.c: Revert.
981 * auto-load.c: Revert.
982 * arm-wince-tdep.c: Revert.
983 * arm-tdep.c: Revert.
984 * arm-symbian-tdep.c: Revert.
985 * arm-pikeos-tdep.c: Revert.
986 * arm-obsd-tdep.c: Revert.
987 * arm-nbsd-tdep.c: Revert.
988 * arm-nbsd-nat.c: Revert.
989 * arm-linux-tdep.c: Revert.
990 * arm-linux-nat.c: Revert.
991 * arm-fbsd-tdep.c: Revert.
992 * arm-fbsd-nat.c: Revert.
993 * arm-bsd-tdep.c: Revert.
994 * arch-utils.c: Revert.
995 * arc-tdep.c: Revert.
996 * arc-newlib-tdep.c: Revert.
997 * annotate.h: Revert.
998 * annotate.c: Revert.
999 * amd64-windows-tdep.c: Revert.
1000 * amd64-windows-nat.c: Revert.
1001 * amd64-tdep.c: Revert.
1002 * amd64-sol2-tdep.c: Revert.
1003 * amd64-obsd-tdep.c: Revert.
1004 * amd64-obsd-nat.c: Revert.
1005 * amd64-nbsd-tdep.c: Revert.
1006 * amd64-nbsd-nat.c: Revert.
1007 * amd64-nat.c: Revert.
1008 * amd64-linux-tdep.c: Revert.
1009 * amd64-linux-nat.c: Revert.
1010 * amd64-fbsd-tdep.c: Revert.
1011 * amd64-fbsd-nat.c: Revert.
1012 * amd64-dicos-tdep.c: Revert.
1013 * amd64-darwin-tdep.c: Revert.
1014 * amd64-bsd-nat.c: Revert.
1015 * alpha-tdep.c: Revert.
1016 * alpha-obsd-tdep.c: Revert.
1017 * alpha-nbsd-tdep.c: Revert.
1018 * alpha-mdebug-tdep.c: Revert.
1019 * alpha-linux-tdep.c: Revert.
1020 * alpha-linux-nat.c: Revert.
1021 * alpha-bsd-tdep.c: Revert.
1022 * alpha-bsd-nat.c: Revert.
1023 * aix-thread.c: Revert.
1025 * addrmap.c: Revert.
1026 * ada-varobj.c: Revert.
1027 * ada-valprint.c: Revert.
1028 * ada-typeprint.c: Revert.
1029 * ada-tasks.c: Revert.
1030 * ada-lang.c: Revert.
1031 * aarch64-tdep.c: Revert.
1032 * aarch64-ravenscar-thread.c: Revert.
1033 * aarch64-newlib-tdep.c: Revert.
1034 * aarch64-linux-tdep.c: Revert.
1035 * aarch64-linux-nat.c: Revert.
1036 * aarch64-fbsd-tdep.c: Revert.
1037 * aarch64-fbsd-nat.c: Revert.
1038 * aarch32-linux-nat.c: Revert.
1042 * ft32-tdep.c: Sort headers.
1043 * frv-tdep.c: Sort headers.
1044 * frv-linux-tdep.c: Sort headers.
1045 * frame.c: Sort headers.
1046 * frame-unwind.c: Sort headers.
1047 * frame-base.c: Sort headers.
1048 * fork-child.c: Sort headers.
1049 * findvar.c: Sort headers.
1050 * findcmd.c: Sort headers.
1051 * filesystem.c: Sort headers.
1052 * filename-seen-cache.h: Sort headers.
1053 * filename-seen-cache.c: Sort headers.
1054 * fbsd-tdep.c: Sort headers.
1055 * fbsd-nat.h: Sort headers.
1056 * fbsd-nat.c: Sort headers.
1057 * f-valprint.c: Sort headers.
1058 * f-typeprint.c: Sort headers.
1059 * f-lang.c: Sort headers.
1060 * extension.h: Sort headers.
1061 * extension.c: Sort headers.
1062 * extension-priv.h: Sort headers.
1063 * expprint.c: Sort headers.
1064 * exec.h: Sort headers.
1065 * exec.c: Sort headers.
1066 * exceptions.c: Sort headers.
1067 * event-top.c: Sort headers.
1068 * event-loop.c: Sort headers.
1069 * eval.c: Sort headers.
1070 * elfread.c: Sort headers.
1071 * dwarf2read.h: Sort headers.
1072 * dwarf2read.c: Sort headers.
1073 * dwarf2loc.c: Sort headers.
1074 * dwarf2expr.h: Sort headers.
1075 * dwarf2expr.c: Sort headers.
1076 * dwarf2-frame.c: Sort headers.
1077 * dwarf2-frame-tailcall.c: Sort headers.
1078 * dwarf-index-write.h: Sort headers.
1079 * dwarf-index-write.c: Sort headers.
1080 * dwarf-index-common.c: Sort headers.
1081 * dwarf-index-cache.h: Sort headers.
1082 * dwarf-index-cache.c: Sort headers.
1083 * dummy-frame.c: Sort headers.
1084 * dtrace-probe.c: Sort headers.
1085 * disasm.h: Sort headers.
1086 * disasm.c: Sort headers.
1087 * disasm-selftests.c: Sort headers.
1088 * dictionary.c: Sort headers.
1089 * dicos-tdep.c: Sort headers.
1090 * demangle.c: Sort headers.
1091 * dcache.h: Sort headers.
1092 * dcache.c: Sort headers.
1093 * darwin-nat.h: Sort headers.
1094 * darwin-nat.c: Sort headers.
1095 * darwin-nat-info.c: Sort headers.
1096 * d-valprint.c: Sort headers.
1097 * d-namespace.c: Sort headers.
1098 * d-lang.c: Sort headers.
1099 * ctf.c: Sort headers.
1100 * csky-tdep.c: Sort headers.
1101 * csky-linux-tdep.c: Sort headers.
1102 * cris-tdep.c: Sort headers.
1103 * cris-linux-tdep.c: Sort headers.
1104 * cp-valprint.c: Sort headers.
1105 * cp-support.c: Sort headers.
1106 * cp-namespace.c: Sort headers.
1107 * cp-abi.c: Sort headers.
1108 * corelow.c: Sort headers.
1109 * corefile.c: Sort headers.
1110 * continuations.c: Sort headers.
1111 * completer.h: Sort headers.
1112 * completer.c: Sort headers.
1113 * complaints.c: Sort headers.
1114 * coffread.c: Sort headers.
1115 * coff-pe-read.c: Sort headers.
1116 * cli-out.h: Sort headers.
1117 * cli-out.c: Sort headers.
1118 * charset.c: Sort headers.
1119 * c-varobj.c: Sort headers.
1120 * c-valprint.c: Sort headers.
1121 * c-typeprint.c: Sort headers.
1122 * c-lang.c: Sort headers.
1123 * buildsym.c: Sort headers.
1124 * buildsym-legacy.c: Sort headers.
1125 * build-id.h: Sort headers.
1126 * build-id.c: Sort headers.
1127 * btrace.c: Sort headers.
1128 * bsd-uthread.c: Sort headers.
1129 * breakpoint.h: Sort headers.
1130 * breakpoint.c: Sort headers.
1131 * break-catch-throw.c: Sort headers.
1132 * break-catch-syscall.c: Sort headers.
1133 * break-catch-sig.c: Sort headers.
1134 * blockframe.c: Sort headers.
1135 * block.c: Sort headers.
1136 * bfin-tdep.c: Sort headers.
1137 * bfin-linux-tdep.c: Sort headers.
1138 * bfd-target.c: Sort headers.
1139 * bcache.c: Sort headers.
1140 * ax-general.c: Sort headers.
1141 * ax-gdb.h: Sort headers.
1142 * ax-gdb.c: Sort headers.
1143 * avr-tdep.c: Sort headers.
1144 * auxv.c: Sort headers.
1145 * auto-load.c: Sort headers.
1146 * arm-wince-tdep.c: Sort headers.
1147 * arm-tdep.c: Sort headers.
1148 * arm-symbian-tdep.c: Sort headers.
1149 * arm-pikeos-tdep.c: Sort headers.
1150 * arm-obsd-tdep.c: Sort headers.
1151 * arm-nbsd-tdep.c: Sort headers.
1152 * arm-nbsd-nat.c: Sort headers.
1153 * arm-linux-tdep.c: Sort headers.
1154 * arm-linux-nat.c: Sort headers.
1155 * arm-fbsd-tdep.c: Sort headers.
1156 * arm-fbsd-nat.c: Sort headers.
1157 * arm-bsd-tdep.c: Sort headers.
1158 * arch-utils.c: Sort headers.
1159 * arc-tdep.c: Sort headers.
1160 * arc-newlib-tdep.c: Sort headers.
1161 * annotate.h: Sort headers.
1162 * annotate.c: Sort headers.
1163 * amd64-windows-tdep.c: Sort headers.
1164 * amd64-windows-nat.c: Sort headers.
1165 * amd64-tdep.c: Sort headers.
1166 * amd64-sol2-tdep.c: Sort headers.
1167 * amd64-obsd-tdep.c: Sort headers.
1168 * amd64-obsd-nat.c: Sort headers.
1169 * amd64-nbsd-tdep.c: Sort headers.
1170 * amd64-nbsd-nat.c: Sort headers.
1171 * amd64-nat.c: Sort headers.
1172 * amd64-linux-tdep.c: Sort headers.
1173 * amd64-linux-nat.c: Sort headers.
1174 * amd64-fbsd-tdep.c: Sort headers.
1175 * amd64-fbsd-nat.c: Sort headers.
1176 * amd64-dicos-tdep.c: Sort headers.
1177 * amd64-darwin-tdep.c: Sort headers.
1178 * amd64-bsd-nat.c: Sort headers.
1179 * alpha-tdep.c: Sort headers.
1180 * alpha-obsd-tdep.c: Sort headers.
1181 * alpha-nbsd-tdep.c: Sort headers.
1182 * alpha-mdebug-tdep.c: Sort headers.
1183 * alpha-linux-tdep.c: Sort headers.
1184 * alpha-linux-nat.c: Sort headers.
1185 * alpha-bsd-tdep.c: Sort headers.
1186 * alpha-bsd-nat.c: Sort headers.
1187 * aix-thread.c: Sort headers.
1188 * agent.c: Sort headers.
1189 * addrmap.c: Sort headers.
1190 * ada-varobj.c: Sort headers.
1191 * ada-valprint.c: Sort headers.
1192 * ada-typeprint.c: Sort headers.
1193 * ada-tasks.c: Sort headers.
1194 * ada-lang.c: Sort headers.
1195 * aarch64-tdep.c: Sort headers.
1196 * aarch64-ravenscar-thread.c: Sort headers.
1197 * aarch64-newlib-tdep.c: Sort headers.
1198 * aarch64-linux-tdep.c: Sort headers.
1199 * aarch64-linux-nat.c: Sort headers.
1200 * aarch64-fbsd-tdep.c: Sort headers.
1201 * aarch64-fbsd-nat.c: Sort headers.
1202 * aarch32-linux-nat.c: Sort headers.
1206 * varobj.c (varobj_create): Update.
1207 * rust-exp.y (struct rust_parser) <update_innermost_block,
1208 lookup_symbol>: New methods.
1209 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1211 (rust_parser::rust_lookup_type)
1212 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1213 * printcmd.c (display_command, do_one_display): Update.
1214 * parser-defs.h (struct parser_state) <parser_state>: Add
1215 "tracker" parameter.
1216 (block_tracker): New member.
1217 (class innermost_block_tracker) <innermost_block_tracker>: Add
1219 <reset>: Remove method.
1220 (innermost_block): Don't declare.
1221 (null_post_parser): Update.
1222 * parse.c (innermost_block): Remove global.
1223 (write_dollar_variable): Update.
1224 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1225 Remove "tracker_types" parameter.
1226 (parse_expression): Add "tracker" parameter.
1227 (parse_expression_for_completion): Update.
1228 (null_post_parser): Add "tracker" parameter.
1229 * p-exp.y: Update rules.
1230 * m2-exp.y: Update rules.
1231 * language.h (struct language_defn) <la_post_parser>: Add
1232 "tracker" parameter.
1233 * go-exp.y: Update rules.
1234 * f-exp.y: Update rules.
1235 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1237 * d-exp.y: Update rules.
1238 * c-exp.y: Update rules.
1239 * breakpoint.c (set_breakpoint_condition): Create an
1240 innermost_block_tracker.
1241 (watch_command_1): Likewise.
1242 * ada-lang.c (resolve): Add "tracker" parameter.
1243 (resolve_subexp): Likewise.
1244 * ada-exp.y (write_var_from_sym): Update.
1248 * type-stack.h: New file.
1249 * type-stack.c: New file.
1250 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1252 (insert_into_type_stack, insert_type, push_type, push_type_int)
1253 (insert_type_address_space, pop_type, pop_type_int)
1254 (pop_typelist, pop_type_stack, append_type_stack)
1255 (push_type_stack, get_type_stack, push_typelist)
1256 (follow_type_instance_flags, follow_types): Don't declare.
1257 * parse.c (type_stack): Remove global.
1258 (parse_exp_in_context): Update.
1259 (insert_into_type_stack, insert_type, push_type, push_type_int)
1260 (insert_type_address_space, pop_type, pop_type_int)
1261 (pop_typelist, pop_type_stack, append_type_stack)
1262 (push_type_stack, get_type_stack, push_typelist)
1263 (follow_type_instance_flags, follow_types): Remove (moved to
1265 * f-exp.y (type_stack): New global.
1267 (push_kind_type, f_parse): Update.
1268 * d-exp.y (type_stack): New global.
1271 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1273 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1274 (HFILES_NO_SRCDIR): Add type-stack.h.
1278 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1279 (rust_parser::convert_ast_to_expression, rust_parse)
1280 (rust_lex_test_completion, rust_lex_tests): Update.
1281 * parser-defs.h (struct expr_completion_state): New.
1282 (struct parser_state) <parser_state>: Add completion parameter.
1283 <mark_struct_expression, mark_completion_tag>: New methods.
1284 <parse_completion, m_completion_state>: New members.
1285 (prefixify_expression, null_post_parser): Update.
1286 (mark_struct_expression, mark_completion_tag): Don't declare.
1287 * parse.c (parse_completion, expout_last_struct)
1288 (expout_tag_completion_type, expout_completion_name): Remove
1290 (parser_state::mark_struct_expression)
1291 (parser_state::mark_completion_tag): Now methods.
1292 (prefixify_expression): Add last_struct parameter.
1293 (prefixify_subexp): Likewise.
1294 (parse_exp_1): Update.
1295 (parse_exp_in_context): Add cstate parameter. Update.
1296 (parse_expression_for_completion): Create an
1297 expr_completion_state.
1298 (null_post_parser): Add "completion" parameter.
1299 * p-exp.y: Update rules.
1301 * language.h (struct language_defn) <la_post_parser>: Add
1302 "completing" parameter.
1303 * go-exp.y: Update rules.
1304 (lex_one_token): Update.
1305 * expression.h (parse_completion): Don't declare.
1306 * d-exp.y: Update rules.
1307 (lex_one_token): Update rules.
1308 * c-exp.y: Update rules.
1309 (lex_one_token): Update.
1310 * ada-lang.c (resolve): Add "parse_completion" parameter.
1311 (resolve_subexp): Likewise.
1312 (ada_resolve_function): Likewise.
1316 * parser-defs.h (struct parser_state) <start_arglist,
1317 end_arglist>: New methods.
1318 <arglist_len, m_funcall_chain>: New members.
1319 (arglist_len, start_arglist, end_arglist): Don't declare.
1320 * parse.c (arglist_len, funcall_chain): Remove global.
1321 (start_arglist, end_arglist): Remove functions.
1322 (parse_exp_in_context): Update.
1323 * p-exp.y: Update rules.
1324 * m2-exp.y: Update rules.
1325 * go-exp.y: Update rules.
1326 * f-exp.y: Update rules.
1327 * d-exp.y: Update rules.
1328 * c-exp.y: Update rules.
1332 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1333 lex_operator, push_back>: New methods.
1335 (rust_parser::lex_hex, lex_escape): Rename and update.
1336 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1337 (rust_parser::lex_operator): Rename and update.
1338 (rust_parser::lex_number, rustyylex, rustyyerror)
1339 (rust_lex_test_init, rust_lex_test_sequence)
1340 (rust_lex_test_push_back, rust_lex_tests): Update.
1341 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1343 <lexptr, prev_lexptr>: New members.
1344 (lexptr, prev_lexptr): Don't declare.
1345 * parse.c (lexptr, prev_lexptr): Remove globals.
1346 (parse_exp_in_context): Update.
1347 * p-exp.y (yylex, yyerror): Update.
1348 * m2-exp.y (parse_number, yylex, yyerror): Update.
1349 * go-exp.y (lex_one_token, yyerror): Update.
1350 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1351 * d-exp.y (lex_one_token, yyerror): Update.
1352 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1353 (lex_one_token, yyerror): Update.
1354 * ada-lex.l (YY_INPUT): Update.
1355 (rewind_to_char): Update.
1356 * ada-exp.y (yyerror): Update.
1360 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1361 * parser-defs.h (struct parser_state) <parser_state>: Add new
1363 <comma_terminates>: New member.
1364 (comma_terminates): Don't declare global.
1365 * parse.c (comma_terminates): Remove global.
1366 (parse_exp_in_context): Update.
1367 * p-exp.y (yylex): Update.
1368 * m2-exp.y (yylex): Update.
1369 * go-exp.y (lex_one_token): Update.
1370 * f-exp.y (yylex): Update.
1371 * d-exp.y (lex_one_token): Update.
1372 * c-exp.y (lex_one_token): Update.
1373 * ada-lex.l: Update.
1377 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1378 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1379 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1380 * parser-defs.h (paren_depth): Don't declare.
1381 * parse.c (paren_depth): Remove global.
1382 (parse_exp_in_context): Update.
1383 * p-exp.y (paren_depth): New global.
1384 (pascal_parse): Initialize it.
1385 * m2-exp.y (paren_depth): New global.
1386 (m2_parse): Initialize it.
1387 * go-exp.y (paren_depth): New global.
1388 (go_parse): Initialize it.
1389 * f-exp.y (paren_depth): New global.
1390 (f_parse): Initialize it.
1391 * d-exp.y (paren_depth): New global.
1392 (d_parse): Initialize it.
1393 * c-exp.y (paren_depth): New global.
1394 (c_parse): Initialize it.
1395 * ada-lex.l (paren_depth): New global.
1396 (lexer_init): Initialize it.
1400 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1401 (rust_parser::convert_ast_to_type)
1402 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1403 * parser-defs.h (struct parser_state) <parser_state>: Add
1404 parameters. Initialize new members.
1405 <expression_context_block, expression_context_pc>: New members.
1406 * parse.c (expression_context_block, expression_context_pc):
1408 (parse_exp_in_context): Update.
1409 * p-exp.y: Update all rules.
1411 * m2-exp.y: Update all rules.
1413 * go-exp.y (yylex): Update.
1414 * f-exp.y (yylex): Update.
1415 * d-exp.y: Update all rules.
1417 * c-exp.y: Update all rules.
1418 (lex_one_token, classify_name, yylex, c_parse): Update.
1419 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1423 * gdbarch.h, gdbarch.c: Rebuild.
1424 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1426 (struct stap_parse_info): Replace "parser_state" with
1428 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1429 (parser_state): New class.
1430 * parse.c (expr_builder): Rename.
1431 (expr_builder::release): Rename.
1432 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1433 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1434 (write_exp_elt_longcst, write_exp_elt_floatcst)
1435 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1436 (write_exp_string_vector, write_exp_bitstring)
1437 (write_exp_msymbol, mark_struct_expression)
1438 (write_dollar_variable)
1439 (insert_type_address_space, increase_expout_size): Replace
1440 "parser_state" with "expr_builder".
1441 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1442 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1443 "parser_state" with "expr_builder".
1447 * rust-exp.y: Replace "parse_language" with method call.
1449 (yylex): Replace "parse_language" with method call.
1451 (yylex): Replace "parse_language" with method call.
1452 * go-exp.y (classify_name): Replace "parse_language" with method
1454 * f-exp.y (yylex): Replace "parse_language" with method call.
1455 * d-exp.y (lex_one_token): Replace "parse_language" with method
1458 (lex_one_token, classify_name, yylex): Replace "parse_language"
1460 * ada-exp.y (find_primitive_type, type_char)
1461 (type_system_address): Replace "parse_language" with method call.
1465 * rust-exp.y: Replace "parse_gdbarch" with method call.
1466 * parse.c (write_dollar_variable, insert_type_address_space):
1467 Replace "parse_gdbarch" with method call.
1468 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1470 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1472 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1473 "parse_gdbarch" with method call.
1474 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1476 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1477 "parse_gdbarch" with method call.
1478 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1479 "parse_gdbarch" with method call.
1480 * c-exp.y (parse_type, parse_number, classify_name): Replace
1481 "parse_gdbarch" with method call.
1482 * ada-lex.l: Replace "parse_gdbarch" with method call.
1483 * ada-exp.y (parse_type, find_primitive_type, type_char)
1484 (type_system_address): Replace "parse_gdbarch" with method call.
1488 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1489 * stap-probe.c (stap_parse_argument): Update.
1490 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1491 initial_size parameter.
1492 * rust-exp.y (rust_lex_tests): Update.
1493 * parse.c (parser_state): Update.
1494 (parse_exp_in_context): Update.
1495 * parser-defs.h (struct parser_state) <parser_state>: Remove
1496 "initial_size" parameter.
1500 * parser-defs.h (increase_expout_size): Don't declare.
1501 * parse.c (increase_expout_size): Now static.
1505 * gnu-nat.c (gnu_nat_target::wait): Fix
1506 target_waitstatus_to_string call.
1510 * eval.c (evaluate_subexp_standard): Handle internal functions
1511 during Fortran function call handling.
1515 * NEWS: Mention new internal functions.
1516 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1517 (read_base_type): Use dwarf2_init_complex_target_type.
1518 * value.c (creal_internal_fn): New function.
1519 (cimag_internal_fn): New function.
1520 (_initialize_values): Register new internal functions.
1524 * infrun.c (stop_all_threads): If debug_infrun, always
1525 trace the wait status after wait_one, using
1526 target_waitstatus_to_string and target_pid_to_str.
1527 (handle_inferior_event): Replace various trace of
1528 wait status kind by a single trace.
1529 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1530 wait status kind image by target_waitstatus_to_string.
1531 * target/waitstatus.c (target_waitstatus_to_string): Fix
1537 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1542 * top.c (quit_force): Call 'finalize_values'.
1543 * value.c (finalize_values): New function.
1544 * value.h (finalize_values): Declare.
1548 * NEWS: Announce $_gdb_major and $_gdb_minor.
1550 * top.c (init_gdb_version_vars): New function.
1551 (gdb_init): Call init_gdb_version_vars.
1555 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1556 help text. Remove dead code.
1560 From Siddhesh Poyarekar:
1561 * f-lang.h (f77_get_upperbound): Return LONGEST.
1562 (f77_get_lowerbound): Likewise.
1563 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1564 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1566 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1567 plongest to format print it.
1568 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1569 (f77_get_upperbound): Likewise.
1570 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1571 LOWER_BOUND to LONGEST.
1572 (f77_create_arrayprint_offset_tbl): Likewise.
1576 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1577 %s/pulongest for TYPE_LENGTH instead of %d in format
1579 * ada-typerint.c (ada_print_type): Likewise.
1580 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1581 * compile/compile-c-support.c (generate_register_struct): Likewise.
1582 * gdbtypes.c (recursive_dump_type): Likewise.
1583 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1584 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1585 instead of %d in format strings.
1586 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1587 to std::min to ULONGEST.
1588 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1589 instead of %d in format strings.
1590 * tracepoint.c (info_scope_command): Likewise.
1591 * typeprint.c (print_offset_data::update)
1592 (print_offset_data::finish): Likewise.
1593 * xtensa-tdep.c (xtensa_store_return_value)
1594 (xtensa_push_dummy_call): Likewise.
1598 * windows-nat.c (display_selector): Fixed format specifications
1603 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1607 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1608 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1609 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1610 (nios2_linux_init_abi): Install it.
1614 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1618 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1623 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1627 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1628 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1629 method to compute the bounds of range types. Also print "[evaluated]"
1630 if the bounds' values come from a dynamic evaluation.
1634 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1635 whitespace when pretty printing is on.
1639 * ppc-linux-nat.c: Add include.
1643 * NEWS: Mention AArch64 Pointer Authentication.
1647 * arm-linux-nat.c: Add include.
1651 * source-cache.c (source_cache::get_source_lines): Re-read
1652 fullname after calling open_source_file.
1656 * NEWS: Mention TLS support for FreeBSD.
1660 * minsyms.c (BUNCH_SIZE): Update comment.
1661 (~minimal_symbol_reader): Remove old comment.
1662 (compact_minimal_symbols): Update comment.
1663 (minimal_symbol_reader::install): Remove old comment. Update
1668 * s390-linux-nat.c: Add include.
1672 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1673 Call linux_get_hwcap.
1674 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1676 (aarch64_linux_get_hwcap): Remove function.
1677 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
1679 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
1681 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1682 * linux-tdep.c (linux_get_hwcap): Add function.
1683 (linux_get_hwcap2): Likewise.
1684 * linux-tdep.h (linux_get_hwcap): Add declaration.
1685 (linux_get_hwcap2): Likewise.
1686 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
1687 (ppc_linux_get_hwcap2): Likewise.
1688 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
1690 (ppc_linux_nat_target::insert_watchpoint): Likewise.
1691 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
1692 (ppc_linux_nat_target::read_description): Likewise.
1693 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
1694 * s390-linux-nat.c: Likewise.
1695 * s390-linux-tdep.c (s390_core_read_description): Likewise.
1699 * ada-lang.c (standard_lookup): Simplify initialization.
1700 (ada_lookup_symbol_nonlocal): Simplify return.
1701 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
1702 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
1703 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
1704 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
1706 * solib.c (solib_global_lookup): Simplify.
1707 * symtab.c (null_block_symbol): Remove.
1708 (symbol_cache_lookup): Simplify returns.
1709 (lookup_language_this): Simplify returns.
1710 (lookup_symbol_aux): Simplify return.
1711 (lookup_local_symbol): Simplify returns.
1712 (lookup_global_symbol_from_objfile): Simplify return.
1713 (lookup_symbol_in_objfile_symtabs)
1714 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
1715 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
1716 (lookup_static_symbol, lookup_global_symbol): Simplify return.
1717 * cp-namespace.c (cp_lookup_bare_symbol)
1718 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
1719 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
1720 (cp_lookup_nested_symbol): Don't use null_block_symbol.
1721 (cp_lookup_symbol_via_imports): Simplify initialization.
1722 (find_symbol_in_baseclass): Likewise.
1723 * symtab.h (null_block_symbol): Remove.
1724 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
1725 (d_lookup_nested_symbol, d_lookup_symbol_imports)
1726 (d_lookup_symbol_module): Likewise.
1727 (find_symbol_in_baseclass): Simplify initialization.
1731 * expression.h: Don't include symtab.h.
1732 (struct block): Forward declare.
1736 * c-exp.y (typebase): Remove casts.
1737 * gdbtypes.c (lookup_unsigned_typename, )
1738 (lookup_signed_typename): Remove cast.
1739 * eval.c (parse_to_comma_and_eval): Remove cast.
1740 * parse.c (write_dollar_variable): Remove cast.
1741 * block.h (struct block) <superblock>: Now const.
1742 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
1743 * psymtab.c (psym_map_matching_symbols): Make "block" const.
1744 (map_block): Make "block" const.
1745 * symfile.h (struct quick_symbol_functions)
1746 <map_matching_symbols>: Constify block argument to "callback".
1747 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
1749 (find_pc_sect_compunit_symtab): Make "b" const.
1750 (find_symbol_at_address): Likewise.
1751 (search_symbols): Likewise.
1752 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
1753 (dw2_debug_names_lookup_symbol): Likewise.
1754 (dw2_map_matching_symbols): Update.
1755 * p-valprint.c (pascal_val_print): Remove "block".
1756 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
1757 (aux_add_nonlocal_symbols): Make "block" const.
1758 (resolve_subexp): Remove cast.
1759 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
1761 (iterate_over_file_blocks): Likewise.
1762 * f-exp.y (%union) <bval>: Remove.
1763 * coffread.c (patch_opaque_types): Make "b" const.
1764 * spu-tdep.c (spu_catch_start): Make "block" const.
1765 * c-valprint.c (print_unpacked_pointer): Remove "block".
1766 * symmisc.c (dump_symtab_1): Make "b" const.
1767 (block_depth): Make "block" const.
1768 * d-exp.y (%union) <bval>: Remove.
1769 * cp-support.h (cp_lookup_rtti_type): Update.
1770 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
1771 * psymtab.c (psym_lookup_symbol): Make "block" const.
1772 (maintenance_check_psymtabs): Make "b" const.
1773 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
1774 (enumerate_locals, enumerate_args): Update.
1775 * python/py-symtab.c (stpy_global_block): Make "block" const.
1776 (stpy_static_block): Likewise.
1777 * inline-frame.c (block_starting_point_at): Make "new_block"
1779 * block.c (find_block_in_blockvector): Make return type const.
1780 (blockvector_for_pc_sect): Make "b" const.
1781 (find_block_in_blockvector): Make "b" const.
1785 * varobj.c (varobj_create): Update.
1786 * symfile.c (clear_symtab_users): Don't reset innermost_block.
1787 * printcmd.c (display_command, do_one_display): Don't reset
1789 * parser-defs.h (enum innermost_block_tracker_type): Move to
1791 (innermost_block): Update comment.
1792 * parse.c (parse_exp_1): Add tracker_types parameter.
1793 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
1794 tracker_types parameter. Reset innermost_block.
1795 (parse_exp_in_context): Remove.
1796 (parse_expression_for_completion): Update.
1797 * objfiles.c (~objfile): Don't reset expression_context_block or
1799 * expression.h (enum innermost_block_tracker_type): Move from
1801 (parse_exp_1): Add tracker_types parameter.
1802 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
1803 reset innermost_block.
1807 * objfiles.h: Include bcache.h.
1811 * linespec.c (get_current_search_block): Use
1812 scoped_restore_current_language.
1813 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
1818 * aarch64-linux-tdep.c
1819 (aarch64_linux_iterate_over_regset_sections): Check for pauth
1821 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
1826 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
1828 (aarch64_analyze_prologue_test): Add PACIASP test.
1829 (aarch64_prologue_prev_register): Unmask PC value.
1834 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
1835 (aarch64_dwarf2_prev_register): Unmask PC value.
1836 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
1837 (aarch64_execute_dwarf_cfa_vendor_op): Check for
1838 DW_CFA_AARCH64_negate_ra_state.
1839 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
1844 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
1846 (aarch64_pseudo_register_name): Likewise.
1847 (aarch64_pseudo_register_type): Likewise.
1848 (aarch64_pseudo_register_reggroup_p): Likewise.
1849 (aarch64_gdbarch_init): Add pauth registers.
1850 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
1851 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
1852 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
1853 (struct gdbarch_tdep): Add regnum for ra_state.
1858 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
1863 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
1865 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
1866 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
1867 (aarch64_gdbarch_init): Add puth registers.
1868 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
1869 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
1870 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
1875 * aarch64-linux-nat.c
1876 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
1877 * aarch64-linux-tdep.c
1878 (aarch64_linux_core_read_description): Likewise.
1879 (aarch64_linux_get_hwcap): New function.
1880 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
1881 (aarch64_linux_get_hwcap): New declaration.
1886 * aarch64-linux-nat.c
1887 (aarch64_linux_nat_target::read_description): Add pauth param.
1888 * aarch64-linux-tdep.c
1889 (aarch64_linux_core_read_description): Likewise.
1890 * aarch64-tdep.c (struct target_desc): Add in pauth.
1891 (aarch64_read_description): Add pauth param.
1892 (aarch64_gdbarch_init): Likewise.
1893 * aarch64-tdep.h (aarch64_read_description): Likewise.
1894 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1895 * arch/aarch64.h (aarch64_create_target_description): Likewise.
1896 * features/Makefile: Add new files.
1897 * features/aarch64-pauth.c: New file.
1898 * features/aarch64-pauth.xml: New file.
1902 * infrun.c (handle_inferior_event): Rename from
1903 handle_inferior_event_1. Create a scoped_value_mark.
1904 (handle_inferior_event): Remove.
1908 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
1909 * infrun.h (print_stop_event): Add "displays" parameter.
1910 * infrun.c (print_stop_event): Add "displays" parameter.
1914 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
1915 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
1916 to -1. Fix TABs vs spaces.
1917 (tui_ui_out::tui_ui_out): Don't initialize fields here.
1918 * tui/tui-out.h (tui_ui_out) Add intro comments.
1919 <m_line, m_start_of_line>: In-class initialize, and add describing
1924 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
1926 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
1931 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
1932 m_line and m_start_of_line.
1936 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
1937 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
1938 it returns a newline. This fixes a regression in TU mode, whereby
1939 the next line is output on the same screen line as the user input.
1943 * minsyms.c (minimal_symbol_reader::install): Remove call to
1948 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
1950 (apply_style): New, factored out from ...
1951 (apply_ansi_escape): ... this. Handle reverse video mode.
1952 (tui_set_reverse_mode): New function.
1953 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
1954 * tui/tui-winsource.c (tui_show_source_line): Use
1955 tui_set_reverse_mode instead of setting A_STANDOUT.
1956 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
1961 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
1966 * ada-lang.c (empty_array): Add "high" parameter.
1967 (ada_evaluate_subexp): Update.
1971 * unittests/string_view-selftests.c: Define
1972 _initialize_string_view_selftests unconditionally.
1977 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
1982 * windows-nat.c (display_selector): Fix format specifiers.
1986 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
1987 tui_refill_source_window instead of tui_refresh_win, to update the
1988 current execution line. This fixes redisplay of the current line
1989 when stepping through the code with "next" or "step".
1993 * source-cache.c (source_cache::get_source_lines): Call
1994 find_source_lines to initialize s->nlines. This fixes vertical
1995 scrolling of TUI source window when the DOWN arrow is pressed.
1999 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2000 linux-thread-db.c (_initialize_thread_db): Likewise.
2004 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2005 wclrtoeol in tui_show_source_line". This reverts changes made in
2006 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2010 * symtab.h (struct minimal_symbol): Derive from
2011 general_symbol_info.
2012 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2013 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2014 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2015 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2016 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2017 (MSYMBOL_SEARCH_NAME): Update.
2018 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2019 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2020 * minsyms.c (minimal_symbol_reader::record_full): Update.
2024 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2028 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2030 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2032 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2033 (build_minimal_symbol_hash_tables)
2034 (minimal_symbol_reader::install): Update.
2038 * symtab.c (create_demangled_names_hash): Update.
2039 (symbol_set_names): Update.
2040 * objfiles.h (struct objfile_per_bfd_storage)
2041 <demangled_names_hash>: Now an htab_up.
2042 * objfiles.c (objfile_per_bfd_storage): Simplify.
2046 * objfiles.h (struct objfile_per_bfd_storage): Declare
2048 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2050 (get_objfile_bfd_data): Use new. Don't initialize
2052 (free_objfile_per_bfd_storage): Remove.
2053 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2057 * symfile.c (reread_symbols): Update.
2058 * objfiles.c (objfile::objfile): Update.
2059 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2060 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2062 (minimal_symbol_reader::install): Update.
2063 (terminate_minimal_symbol_table): Remove.
2064 * jit.c (jit_object_close_impl): Update.
2068 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2073 * objfiles.h (struct objfile_per_bfd_storage)
2074 <demangled_hash_languages>: Now a bitset.
2075 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2076 (lookup_minimal_symbol): Update.
2080 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2081 Don't return the symbol.
2082 * coffread.c (record_minimal_symbol): Use record_full.
2086 The MS-Windows port of ncurses fails to switch to a color pair if
2087 one or both of the colors are the implicit default colors. This
2088 change records the default colors when TUI is initialized, and
2089 then specifies them explicitly when a color pair uses the default
2090 colors. This allows color styling in TUI mode on MS-Windows.
2092 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2094 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2095 colors in ncurses_norm_attr.
2096 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2097 "none", replace it with the default color recorded in
2102 * source-cache.h (class source_cache) <get_source_lines>: Return
2104 * source-cache.c (source_cache::extract_lines): Handle case where
2105 first_pos==npos. Return std::string.
2106 (source_cache::get_source_lines): Update.
2110 * NEWS: Add item for "style sources" commands.
2111 * source-cache.c (source_cache::get_source_lines): Check
2113 * cli/cli-style.c (source_styling): New global.
2114 (_initialize_cli_style): Add "style sources" commands.
2115 (show_style_sources): New function.
2116 * cli/cli-style.h (source_styling): Declare.
2121 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2122 * tui/tui-winsource.c (tui_refill_source_window): New function,
2124 (tui_horizontal_source_scroll): ... here. Move some logic.
2125 * cli/cli-style.c (set_style_enabled): Notify new observable.
2126 * tui/tui-hooks.c (tui_redisplay_source): New function.
2127 (tui_attach_detach_observers): Attach or detach
2128 tui_redisplay_source.
2129 * observable.h (source_styling_changed): New observable.
2130 * observable.c: Define source_styling_changed observable.
2134 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2135 (i386_gnu_nat_target::store_registers): Update.
2136 * target-debug.h (target_debug_print_std_string): New macro.
2137 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2138 * windows-tdep.c (display_one_tib): Update.
2139 * tui/tui-stack.c (tui_make_status_line): Update.
2140 * top.c (print_inferior_quit_action): Update.
2141 * thread.c (thr_try_catch_cmd): Update.
2142 (add_thread_with_info): Update.
2143 (thread_target_id_str): Update.
2144 (thr_try_catch_cmd): Update.
2145 (thread_command): Update.
2146 (thread_find_command): Update.
2147 * record-btrace.c (record_btrace_target::info_record)
2148 (record_btrace_resume_thread, record_btrace_target::resume)
2149 (record_btrace_cancel_resume, record_btrace_step_thread)
2150 (record_btrace_target::wait, record_btrace_target::wait)
2151 (record_btrace_target::wait, record_btrace_target::stop): Update.
2152 * progspace.c (print_program_space): Update.
2153 * process-stratum-target.c
2154 (process_stratum_target::thread_address_space): Update.
2155 * linux-fork.c (linux_fork_mourn_inferior)
2156 (detach_checkpoint_command, info_checkpoints_command)
2157 (linux_fork_context): Update.
2158 (linux_fork_detach): Update.
2159 (class scoped_switch_fork_info): Update.
2160 (delete_checkpoint_command): Update.
2161 * infrun.c (follow_fork_inferior): Update.
2162 (follow_fork_inferior): Update.
2163 (proceed_after_vfork_done): Update.
2164 (handle_vfork_child_exec_or_exit): Update.
2165 (follow_exec): Update.
2166 (displaced_step_prepare_throw): Update.
2167 (displaced_step_restore): Update.
2168 (start_step_over): Update.
2170 (clear_proceed_status_thread): Update.
2172 (print_target_wait_results): Update.
2173 (do_target_wait): Update.
2174 (context_switch): Update.
2175 (stop_all_threads): Update.
2176 (restart_threads): Update.
2177 (finish_step_over): Update.
2178 (handle_signal_stop): Update.
2179 (switch_back_to_stepped_thread): Update.
2180 (keep_going_pass_signal): Update.
2181 (print_exited_reason): Update.
2182 (normal_stop): Update.
2183 * inferior.c (inferior_pid_to_str): Change return type.
2184 (print_selected_inferior): Update.
2185 (add_inferior): Update.
2186 (detach_inferior): Update.
2187 * dummy-frame.c (fprint_dummy_frames): Update.
2188 * dcache.c (dcache_info_1): Update.
2189 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2190 (btrace_fetch, btrace_clear): Update.
2191 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2192 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2194 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2195 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2196 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2197 * gdbarch.c, gdbarch.h: Rebuild.
2198 * gdbarch.sh (core_pid_to_str): Change return type.
2199 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2201 (windows_nat_target::pid_to_str): Change return type.
2202 (windows_delete_thread): Update.
2203 (windows_nat_target::attach): Update.
2204 (windows_nat_target::files_info): Update.
2205 * target-delegates.c: Rebuild.
2206 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2208 (sol_thread_target::pid_to_str): Change return type.
2209 * remote.c (class remote_target) <pid_to_str>: Change return
2211 (remote_target::pid_to_str): Change return type.
2212 (extended_remote_target::attach, remote_target::remote_stop_ns)
2213 (remote_target::remote_notif_remove_queued_reply)
2214 (remote_target::push_stop_reply, remote_target::disable_btrace):
2216 (extended_remote_target::attach): Update.
2217 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2219 (gdbsim_target::pid_to_str): Change return type.
2220 * ravenscar-thread.c (struct ravenscar_thread_target)
2221 <pid_to_str>: Change return type.
2222 (ravenscar_thread_target::pid_to_str): Change return type.
2223 * procfs.c (class procfs_target) <pid_to_str>: Change return
2225 (procfs_target::pid_to_str): Change return type.
2226 (procfs_target::attach): Update.
2227 (procfs_target::detach): Update.
2228 (procfs_target::fetch_registers): Update.
2229 (procfs_target::store_registers): Update.
2230 (procfs_target::wait): Update.
2231 (procfs_target::files_info): Update.
2232 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2233 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2235 (nto_procfs_target::pid_to_str): Change return type.
2236 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2237 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2239 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2241 (attach_proc_task_lwp_callback, get_detach_signal)
2242 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2243 (linux_nat_target::resume, wait_lwp, stop_callback)
2244 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2245 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2246 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2247 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2248 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2250 (inf_ptrace_target::attach): Update.
2251 (inf_ptrace_target::files_info): Update.
2252 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2254 (go32_nat_target::pid_to_str): Change return type.
2255 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2256 (gnu_nat_target::wait): Update.
2257 (gnu_nat_target::wait): Update.
2258 (gnu_nat_target::resume): Update.
2259 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2260 (fbsd_nat_target::wait): Update.
2261 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2263 (darwin_nat_target::attach): Update.
2264 * corelow.c (class core_target) <pid_to_str>: Change return type.
2265 (core_target::pid_to_str): Change return type.
2266 * target.c (normal_pid_to_str): Change return type.
2267 (default_pid_to_str): Likewise.
2268 (target_pid_to_str): Change return type.
2269 (target_translate_tls_address): Update.
2270 (target_announce_detach): Update.
2271 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2273 (bsd_uthread_target::pid_to_str): Change return type.
2274 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2276 (bsd_kvm_target::pid_to_str): Change return type.
2277 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2279 (aix_thread_target::pid_to_str): Change return type.
2280 * target.h (struct target_ops) <pid_to_str>: Change return type.
2281 (target_pid_to_str, normal_pid_to_str): Likewise.
2282 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2284 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2286 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2288 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2290 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2292 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2297 * NEWS: Mention that the new default MI version is 3. Mention
2298 changes to the output of commands and events that deal with
2299 multi-location breakpoints.
2300 * breakpoint.c: Include "mi/mi-out.h".
2301 (print_one_breakpoint): Change output syntax if using MI version
2303 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2305 (mi_multi_location_breakpoint_output_fixed): New.
2306 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2307 (mi_cmd_fix_multi_location_breakpoint_output): New.
2308 (mi_multi_location_breakpoint_output_fixed): New.
2309 * mi/mi-cmds.c (mi_cmds): Register command
2310 -fix-multi-location-breakpoint-output.
2311 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2316 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2317 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2318 instantiate mi_ui_out based on interpreter name.
2319 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2320 * mi/mi-main.c (mi_load_progress): Likewise.
2324 * NEWS: Combine separate "New targets" sections for 8.3.
2328 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2329 (ppcfbsd_init_abi): Install gdbarch
2330 "fetch_tls_load_module_address" and "get_thread_local_address"
2335 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2336 (riscv_fbsd_init_abi): Install gdbarch
2337 "fetch_tls_load_module_address" and "get_thread_local_address"
2342 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2343 (i386fbsd_init_abi): Install gdbarch
2344 "fetch_tls_load_module_address" and "get_thread_local_address"
2349 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2350 (amd64fbsd_init_abi): Install gdbarch
2351 "fetch_tls_load_module_address" and "get_thread_local_address"
2356 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2357 (struct fbsd_pspace_data): New type.
2358 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2359 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2360 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2361 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2362 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2366 * gdbtypes.c (lookup_struct_elt): New function.
2367 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2368 * gdbtypes.h (struct struct_elt): New type.
2369 (lookup_struct_elt): New prototype.
2373 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2374 remove disabled code block.
2378 * gdbarch.sh (get_thread_local_address): New method.
2379 * gdbarch.h, gdbarch.c: Regenerate.
2380 * target.c (target_translate_tls_address): Use
2381 gdbarch_get_thread_local_address if present instead of
2382 target::get_thread_local_address.
2386 * target.h (target::get_thread_local_address): Update comment.
2390 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2391 objfile->separate_debug_objfile_backlink if not NULL.
2395 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2396 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2397 (amd64bsd_store_inferior_registers): Likewise.
2398 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2399 Enable segment base registers.
2400 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2401 PT_GETFSBASE and PT_GETGSBASE.
2402 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2404 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2405 segment base registers.
2406 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2410 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2411 Update calls to i386_target_description to add 'segments'
2413 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2414 add segment base registers.
2415 * arch/i386.c (i386_create_target_description): Add 'segments'
2416 parameter to enable segment base registers.
2417 * arch/i386.h (i386_create_target_description): Likewise.
2418 * features/i386/32bit-segments.xml: New file.
2419 * features/i386/32bit-segments.c: Generate.
2420 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2421 call to i386_target_description to add 'segments' parameter.
2422 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2423 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2424 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2425 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2426 if feature is present.
2427 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2428 Add 'segments' parameter to call to i386_target_description.
2429 (i386_target_description): Add 'segments' parameter to enable
2430 segment base registers.
2431 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2432 to call to i386_target_description.
2433 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2434 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2435 Define I386_NUM_REGS.
2436 (i386_target_description): Add 'segments' parameter to enable
2437 segment base registers.
2442 * source-cache.c: #undef open and close, to avoid unresolved
2443 externals during linking.
2447 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2448 const. Add initializers.
2449 (_initialize_remote): Don't initialize ptid globals.
2453 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2457 * cp-name-parser.y (main): Remove unused 'len' variable.
2461 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2462 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2466 * linux-nat.c (iterate_over_lwps): Update.
2467 (stop_callback): Remove parameter.
2468 (stop_wait_callback, detach_callback, resume_set_callback)
2469 (select_singlestep_lwp_callback, set_ignore_sigint)
2470 (status_callback, resumed_callback, resume_clear_callback)
2471 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2473 (linux_nat_target::detach, linux_nat_target::resume)
2474 (linux_stop_and_wait_all_lwps, select_event_lwp)
2475 (linux_nat_filter_event, linux_nat_wait_1)
2476 (linux_nat_target::kill, linux_nat_target::stop)
2477 (linux_nat_target::stop): Update.
2478 (linux_nat_resume_callback): Change type.
2479 (resume_stopped_resumed_lwps, count_events_callback)
2480 (select_event_lwp_callback): Likewise.
2481 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2482 * arm-linux-nat.c (struct update_registers_data): Remove.
2483 (update_registers_callback): Change type.
2484 (arm_linux_insert_hw_breakpoint1): Update.
2485 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2487 (x86_linux_dr_set_addr): Update.
2488 (x86_linux_dr_set_control): Update.
2489 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2490 (iterate_over_lwps): Use gdb::function_view.
2491 * nat/aarch64-linux-hw-point.c (struct
2492 aarch64_dr_update_callback_param): Remove.
2493 (debug_reg_change_callback): Change type.
2494 (aarch64_notify_debug_reg_change): Update.
2495 * s390-linux-nat.c (s390_refresh_per_info): Update.
2499 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2500 redundant assignment to "this_cu".
2504 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2508 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2510 (rank_one_type): ... this.
2514 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2516 (rank_one_type): ... this.
2520 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2522 (rank_one_type): ... this.
2526 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2528 (rank_one_type): ... this.
2532 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2534 (rank_one_type): ... this.
2538 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2540 (rank_one_type): ... this.
2544 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2546 (rank_one_type): ... this.
2550 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2552 (rank_one_type): ... this.
2556 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2558 (rank_one_type): ... this.
2562 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2564 (rank_one_type): ... this.
2568 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2570 (rank_one_type): ... this.
2574 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2576 (rank_one_type): ... this.
2580 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2581 inferior-events' shows the example events.
2585 Support styling on native MS-Windows console
2588 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2589 on MS-Windows if $TERM is not defined.
2591 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2593 * posix-hdep.c (gdb_console_fputs):
2594 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2596 * ui-file.h (gdb_console_fputs): Add prototype.
2598 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2599 back to fputs only if the former returns zero.
2603 * symmisc.c (print_symbol_bcache_statistics): Update.
2604 (print_objfile_statistics): Update.
2605 * symfile.c (allocate_symtab): Update.
2606 * stabsread.c: Don't include bcache.h.
2607 * psymtab.h (struct psymbol_bcache): Don't declare.
2608 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2609 (psymbol_bcache_init, psymbol_bcache_free)
2610 (psymbol_bcache_get_bcache): Don't declare.
2611 * psymtab.c (struct psymbol_bcache): Remove.
2612 (psymtab_storage::psymtab_storage): Update.
2613 (psymtab_storage::~psymtab_storage): Update.
2614 (psymbol_bcache_init, psymbol_bcache_free)
2615 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2616 (add_psymbol_to_bcache): Update.
2617 (allocate_psymtab): Update.
2618 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2619 macro_cache>: No longer pointers.
2620 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2621 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2622 * macrotab.c (macro_bcache): Update.
2623 * macroexp.c: Don't include bcache.h.
2624 * gdbtypes.c (check_types_worklist): Update.
2625 (types_deeply_equal): Remove TRY/CATCH. Update.
2626 * elfread.c (elf_symtab_read): Update.
2627 * dwarf2read.c: Don't include bcache.h.
2628 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2629 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2630 (print_bcache_statistics, bcache_memory_used): Don't declare.
2631 (struct bcache): Move from bcache.c. Add constructor, destructor,
2632 methods. Rename all data members.
2633 * bcache.c (struct bcache): Move to bcache.h.
2634 (bcache::expand_hash_table): Rename from expand_hash_table.
2636 (bcache::insert): Rename from bcache_full.
2637 (bcache::compare): Rename from bcache_compare.
2638 (bcache_xmalloc): Remove.
2639 (bcache::~bcache): Rename from bcache_xfree.
2640 (bcache::print_statistics): Rename from print_bcache_statistics.
2641 (bcache::memory_used): Rename from bcache_memory_used.
2645 * infrun.c (normal_stop): Also check for
2646 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2650 * f-lang.c (value_from_host_double): Moved to...
2651 * value.c (value_from_host_double): ...here.
2652 * value.h (value_from_host_double): Declare.
2653 * guile/scm-math.c (vlscm_convert_typed_number): Use
2654 value_from_host_double.
2655 (vlscm_convert_number): Likewise.
2656 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2657 * python/py-value.c (convert_value_from_python): Likewise.
2661 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
2665 * utils.h (free_current_contents): Don't declare.
2666 * utils.c (free_current_contents): Remove.
2670 * top.c (quit_force): Update.
2671 * main.c (captured_command_loop): Update.
2672 * common/new-op.c (operator new): Update.
2673 * common/common-exceptions.c (struct catcher)
2674 <save_cleanup_chain>: Remove member.
2675 (exceptions_state_mc_init): Update.
2676 (exception_try_scope_entry): Return nullptr.
2677 (exception_try_scope_exit, exception_rethrow)
2678 (throw_exception_sjlj, throw_exception_cxx): Update.
2679 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
2680 (all_cleanups, do_cleanups, discard_cleanups)
2681 (discard_final_cleanups, save_cleanups, save_final_cleanups)
2682 (restore_cleanups, restore_final_cleanups): Don't declare.
2683 (do_final_cleanups): Remove parameter.
2684 * common/cleanups.c (cleanup_chain, make_cleanup)
2685 (make_cleanup_dtor, all_cleanups, do_cleanups)
2686 (discard_my_cleanups, discard_cleanups)
2687 (discard_final_cleanups, save_my_cleanups, save_cleanups)
2688 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
2689 (null_cleanup): Remove.
2690 (do_final_cleanups): Remove parameter.
2694 * remote.c (remote_target::remote_parse_stop_reply): Use
2699 * stabsread.c (struct stabs_field_info): Rename from field_info.
2700 <list, fnlist>: Add initializers.
2701 <obstack>: New member.
2702 (read_member_functions, read_struct_fields, read_baseclasses):
2703 Allocate on obstack. Don't use cleanups.
2704 (read_one_struct_field, read_member_functions, read_struct_fields)
2705 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
2706 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
2707 (read_struct_type): Update.
2711 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
2712 * common/filestuff.h (make_cleanup_close): Don't declare.
2713 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
2718 * solib-aix.c: Use make_scope_exit.
2722 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
2723 Use make_scope_exit.
2727 * solib-svr4.c (disable_probes_interface): Remove parameter.
2728 (svr4_handle_solib_event): Use make_scope_exit.
2732 * remote.c (struct stop_reply_deleter): Remove.
2733 (stop_reply_up): Update.
2734 (struct stop_reply): Derive from notif_event. Don't typedef.
2735 <regcache>: Now a std::vector.
2736 (stop_reply_xfree): Remove.
2737 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
2738 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
2739 (remote_target::discard_pending_stop_replies): Use delete.
2740 (remote_target::remote_parse_stop_reply): Update.
2741 (remote_target::process_stop_reply): Update.
2742 * remote-notif.h (struct notif_event): Add virtual destructor.
2743 Remove "dtr" member.
2744 (struct notif_client) <alloc_event>: Return a unique_ptr.
2745 (notif_event_xfree): Don't declare.
2746 (notif_event_up): New typedef.
2747 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
2748 (notif_event_xfree, do_notif_event_xfree): Remove.
2749 (remote_notif_state_xfree): Update.
2753 * infrun.c (displaced_step_clear_cleanup): Now a
2754 forward_scope_exit type.
2755 (displaced_step_prepare_throw): Update.
2756 (displaced_step_fixup): Update.
2760 * inferior.h (class inferior): Update comment.
2761 * gdbthread.h (class thread_info): Update comment.
2766 * stabsread.h (struct stab_section_list): Remove.
2767 (coffstab_build_psymtabs): Update.
2768 * dbxread.c (symbuf_sections): Now a std::vector.
2769 (sect_idx): New global.
2770 (fill_symbuf): Update.
2771 (coffstab_build_psymtabs): Change type of stabsects parameter.
2773 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
2775 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
2776 (coff_locate_sections): Update.
2777 (coff_symfile_read): Remove cleanups. Update.
2778 (init_stringtab): Add storage parameter.
2779 (free_stringtab, free_stringtab_cleanup): Remove.
2780 (init_lineno): Add storage parameter.
2781 (free_linetab, free_linetab_cleanup): Remove.
2785 * linux-fork.c (fork_info::clobber_regs): Delete.
2786 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
2787 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
2789 (scoped_switch_fork_info::scoped_switch_fork_info)
2790 (checkpoint_command, linux_fork_context): Adjust
2791 fork_save_infrun_state calls.
2795 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
2796 (inf_has_multiple_threads): Return 'bool' and rewrite using
2797 inferior_info::threads().
2801 * linux-fork.c: Include <list>.
2802 (fork_list): Now a std::list instance.
2803 (fork_info): Add ctor, dtor, and in-class initialize all fields.
2804 (forks_exist_p, find_last_fork): Adjust.
2808 (free_fork): Delete, folded into fork_info::~fork_info().
2809 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
2811 (init_fork_list): Delete.
2812 (linux_fork_killall, linux_fork_mourn_inferior)
2813 (linux_fork_detach, info_checkpoints_command): Adjust.
2814 (_initialize_linux_fork): No longer call init_fork_list.
2818 * linux-fork.c (new_fork): New, split out of ...
2819 (add_fork): ... this. Return void. Move "first fork" special
2820 case from here, to ...
2821 (checkpoint_command): ... here.
2822 * linux-linux.h (add_fork): Return void.
2826 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
2832 * f-exp.y: New token, UNOP_INTRINSIC.
2833 (exp): New pattern using UNOP_INTRINSIC token.
2834 (f77_keywords): Add 'abs' keyword.
2835 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
2836 (value_from_host_double): New function.
2837 (evaluate_subexp_f): Support UNOP_ABS.
2841 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
2846 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
2847 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
2848 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
2852 * f-exp.y (convert_to_kind_type): Handle more type kinds.
2857 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
2858 * f-exp.y: Define 'KIND' token.
2859 (exp): New pattern for KIND expressions.
2860 (ptype): Handle types with a kind extension.
2861 (direct_abs_decl): Extend to spot kind extensions.
2862 (f77_keywords): Add 'kind' to the list.
2863 (push_kind_type): New function.
2864 (convert_to_kind_type): New function.
2865 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
2866 * parse.c (operator_length_standard): Likewise.
2867 * parser-defs.h (enum type_pieces): Add tp_kind.
2868 * std-operator.def: Add UNOP_KIND.
2872 * f-exp.y (f_parse): Set yydebug.
2876 * f-lang.c (evaluate_subexp_f): New function.
2877 (exp_descriptor_f): New global.
2878 (f_language_defn): Use exp_descriptor_f instead of
2879 exp_descriptor_standard.
2883 * f-exp.y (struct token): Add comments.
2884 (dot_ops): Remove uppercase versions and the end marker.
2885 (f77_keywords): Likewise.
2886 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
2887 entries in the dot_ops array are case insensitive, and use
2888 strncasecmp to compare strings. Also some whitespace cleanup in
2889 this area. Similar for the f77_keywords array, except entries in
2890 this list might be case sensitive.
2894 * f-exp.y (struct f77_boolean_val): Add comments.
2895 (boolean_values): Remove uppercase versions, and end marker.
2896 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
2897 and use strncasecmp to achieve case insensitivity. Additionally,
2898 perform whitespace cleanup around this code.
2902 * remote-sim.c (gdbsim_target_open): Use result of
2909 * eval.c (evaluate_subexp_standard): Call Fortran argument
2911 * f-lang.c (struct value): A value which can be passed into a
2912 Fortran function call.
2913 (fortran_argument_convert): Wrap Fortran arguments in a pointer
2915 (struct type): Value ready for a Fortran function call.
2916 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
2918 * f-lang.h (fortran_argument_convert): Declaration.
2919 (fortran_preserve_arg_pointer): Declaration.
2920 * infcall.c (value_arg_coerce): Call Fortran argument logic.
2924 * python/py-prettyprint.c (print_string_repr): Remove #if.
2925 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
2929 * target.c (the_dummy_target): Move later. Change type to
2931 (initialize_targets): Don't initialize the_dummy_target.
2935 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
2936 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
2940 * windows-nat.c (windows_nat_target::attach)
2941 (windows_nat_target::detach): Don't call gdb_flush.
2942 * valprint.c (generic_val_print, val_print, val_print_string):
2943 Don't call gdb_flush.
2944 * utils.c (defaulted_query): Don't call gdb_flush.
2945 * typeprint.c (print_type_scalar): Don't call gdb_flush.
2946 * target.c (target_announce_detach): Don't call gdb_flush.
2947 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
2948 * remote.c (extended_remote_target::attach): Don't call
2950 * procfs.c (procfs_target::detach): Don't call gdb_flush.
2951 * printcmd.c (do_examine): Don't call gdb_flush.
2952 (info_display_command): Don't call gdb_flush.
2953 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
2954 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
2955 * memattr.c (info_mem_command): Don't call gdb_flush.
2956 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
2957 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
2958 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
2959 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
2960 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
2961 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
2962 (gnu_nat_target::detach): Don't call gdb_flush.
2963 * f-valprint.c (f_val_print): Don't call gdb_flush.
2964 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
2965 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
2966 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
2968 * c-valprint.c (c_val_print): Don't call gdb_flush.
2969 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
2973 * varobj.c (update_dynamic_varobj_children): Update.
2974 (install_default_visualizer): Use reset, not release.
2975 * value.c (set_internalvar): Update.
2976 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
2977 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
2978 ATTRIBUTE_UNUSED_RESULT.
2982 * remote.c (class scoped_remote_fd) <release>: Add
2983 ATTRIBUTE_UNUSED_RESULT.
2987 * macroexp.c (struct macro_buffer) <release>: Add
2988 ATTRIBUTE_UNUSED_RESULT.
2992 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
2993 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
2994 ATTRIBUTE_UNUSED_RESULT.
2998 * common/scoped_fd.h (class scoped_fd) <release>: Add
2999 ATTRIBUTE_UNUSED_RESULT.
3003 * parser-defs.h (struct parser_state) <release>: Add
3004 ATTRIBUTE_UNUSED_RESULT.
3008 * utils.h (class gdb_argv) <release>: Add
3009 ATTRIBUTE_UNUSED_RESULT.
3010 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3014 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3015 for-loop range, to avoid compiler warnings.
3017 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3018 avoid compiler warnings about unused variables.
3020 * NEWS: Mention end of support for native debugging on MS-Windows
3024 * common/netstuff.c:
3025 * gdbserver/gdbreplay.c
3026 * gdbserver/remote-utils.c:
3028 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3029 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3030 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3031 'getaddrinfo' and 'freeaddrinfo' were not available before
3032 Windows XP, and mingw.org's MinGW headers by default define
3033 _WIN32_WINNT to 0x500.
3037 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3043 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3044 set_sigint_trap, clear_sigint_trap.
3048 * target.c (target_detach): Clear the regcache and the
3053 * utils.c (set_screen_size): When we cap the height/width sizes,
3054 tweak the corresponding command variable to show "unlimited":
3059 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3060 before calling rl_set_screen_size.
3064 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3066 * python/py-value.c: Remove Python 2.4 workaround.
3067 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3069 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3070 Python 2.4 workaround.
3071 * python/python-internal.h: Remove Python 2.4 comment.
3072 (Py_ssize_t): Don't define.
3073 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3074 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3075 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3076 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3077 * python/python.c (do_start_initialization): Remove Python 2.4
3079 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3080 (print_children): Remove Python 2.4 workaround.
3081 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3083 (CHARBUFFERPROC_NAME): Remove.
3084 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3085 Python 2.4 workaround.
3089 * NEWS: Note minimum Python version.
3093 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3094 code from these functions. Remove corresponding ifdefs. Use
3095 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3096 Remove gotos and target of gotos.
3097 (infpy_search_memory): Likewise.
3101 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3102 (hppa_gdbarch_init): Don't register deleted functions with
3107 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3108 (h8300_unwind_sp): Delete.
3109 (h8300_dummy_id): Delete.
3110 (h8300_gdbarch_init): Don't register deleted functions with
3115 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3116 (ft32_unwind_pc): Delete.
3117 (ft32_unwind_sp): Delete.
3118 (ft32_gdbarch_init): Don't register deleted functions with
3123 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3124 (frv_unwind_pc): Delete.
3125 (frv_unwind_sp): Delete.
3126 (frv_gdbarch_init): Don't register deleted functions with
3131 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3132 (riscv_unwind_pc): Delete.
3133 (riscv_unwind_sp): Delete.
3134 (riscv_gdbarch_init): Don't register deleted functions with
3139 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3140 (csky_unwind_pc): Delete.
3141 (csky_unwind_sp): Delete.
3142 (csky_gdbarch_init): Don't register deleted functions with
3147 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3148 (cris_unwind_pc): Delete.
3149 (cris_unwind_sp): Delete.
3150 (cris_gdbarch_init): Don't register deleted functions with
3155 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3156 (bfin_unwind_pc): Delete.
3157 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3161 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3162 (arm_unwind_pc): Delete.
3163 (arm_unwind_sp): Delete.
3164 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3168 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3169 (arc_unwind_pc): Delete.
3170 (arc_unwind_sp): Delete.
3171 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3175 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3176 (alpha_unwind_pc): Delete.
3177 (alpha_gdbarch_init): Don't register deleted functions with
3182 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3183 (aarch64_unwind_pc): Delete.
3184 (aarch64_unwind_sp): Delete.
3185 (aarch64_gdbarch_init): Don't register deleted functions with
3190 * gdbtypes.c (type_align): Don't consider static members when
3191 computing structure alignment.
3195 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3196 return 0 for other types.
3197 * arch-utils.c (default_type_align): Always return 0.
3198 * gdbarch.h: Regenerate.
3199 * gdbarch.sh (type_align): Extend comment.
3200 * gdbtypes.c (type_align): Add additional comments, always call
3201 gdbarch_type_align before applying the default rules.
3202 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3203 generic code will then apply a suitable default.
3204 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3205 types, return 0 for other types.
3209 * NEWS: Create a new section for the next release branch.
3210 Rename the section of the current branch, now that it has
3215 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3216 * version.in: Bump version to 8.3.50.DATE-git.
3220 * aix-thread.c (ptid_cmp): Remove unused variable.
3221 (get_signaled_thread): Likewise.
3222 (store_regs_user_thread): Likewise.
3223 (store_regs_kernel_thread): Likewise.
3224 (fetch_regs_kernel_thread): Remove shadowed variable.
3228 * features/riscv/32bit-cpu.xml: Add register numbers.
3229 * features/riscv/32bit-fpu.c: Regenerate.
3230 * features/riscv/32bit-fpu.xml: Add register numbers.
3231 * features/riscv/64bit-cpu.xml: Add register numbers.
3232 * features/riscv/64bit-fpu.c: Regenerate.
3233 * features/riscv/64bit-fpu.xml: Add register numbers.
3237 * NEWS: Mention two argument form of gdb.Value constructor.
3238 * python/py-value.c (convert_buffer_and_type_to_value): New
3240 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3241 Add support for handling an optional second argument. Call
3242 convert_buffer_and_type_to_value as appropriate.
3243 * python/python-internal.h (Py_buffer_deleter): New struct.
3244 (Py_buffer_up): New typedef.
3248 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3249 instead of releasing ownership.
3253 * dwarf2read.c (open_and_init_dwp_file): Call
3254 elf_numsections instead of bfd_count_sections to initialize
3255 dwp_file->num_sections.
3259 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3263 * gcore.in: Add '--readnever' option when invoking GDB.
3267 * MAINTAINERS: Update my email address.
3271 * build-id.c (build_id_to_debug_bfd_1): New function.
3272 (build_id_to_debug_bfd): Look for separate debug file in
3277 * gdbarch.sh: Update the copyright year range that is placed into
3283 * linespec.c (create_sals_line_offset): Search for the default
3284 symtab's filename instead of its fullname.
3288 * NEWS: Update style defaults.
3292 * main.c (captured_main_1): Disable styling in batch mode.
3296 * symtab.c (symtab_symbol_info): Fix typos.
3300 * findcmd.c (_initialize_mem_search): Use upper case for
3301 metasyntactic variables.
3305 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3306 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3310 * top.h (source_file_name): Change to std::string.
3311 * top.c (source_file_name): Likewise.
3312 (command_line_input): Adjust.
3313 * cli/cli-script.c (script_from_file): Adjust.
3317 * ravenscar-thread.c
3318 (ravenscar_thread_target::update_thread_list): Don't call
3319 ada_build_task_list.
3320 * ada-lang.h (ada_build_task_list): Don't declare.
3321 * ada-tasks.c (struct ada_tasks_inferior_data)
3322 <task_list_valid_p>: Now bool.
3323 (read_known_tasks, ada_task_list_changed)
3324 (ada_tasks_invalidate_inferior_data): Update.
3325 (read_known_tasks_array): Return bool.
3326 (read_known_tasks_list): Likewise.
3327 (read_known_tasks): Return void.
3328 (ada_build_task_list): Now static.
3332 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3333 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3337 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3338 variant for ada_tasks_pspace_data_handle and
3339 ada_tasks_inferior_data_handle.
3340 (ada_tasks_pspace_data_cleanup): New function.
3341 (ada_tasks_inferior_data_cleanup): New function.
3345 * macrotab.h (macro_source_fullname): Return a std::string.
3346 * macrotab.c (macro_include, check_for_redefinition)
3347 (macro_undef, macro_lookup_definition, foreach_macro)
3348 (foreach_macro_in_scope): Update.
3349 (macro_source_fullname): Return a std::string.
3350 * macrocmd.c (show_pp_source_pos): Update.
3354 * macrocmd.c (show_pp_source_pos): Style the file names.
3359 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3363 * ada-lang.c (user_select_syms): Use filtered printing.
3364 * utils.c (wrap_style): New global.
3365 (desired_style): Remove.
3366 (emit_style_escape): Add stream parameter.
3367 (set_output_style, reset_terminal_style, prompt_for_continue):
3369 (flush_wrap_buffer): Only flush gdb_stdout.
3370 (wrap_here): Set wrap_style.
3371 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3372 treat escape sequences as a character. Change when wrap buffer is
3374 (fputs_styled): Do not set the output style when the default is
3376 * ui-style.h (struct ui_file_style) <is_default>: New method.
3377 * source.c (print_source_lines_base): Emit escape sequences in one
3382 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3383 integers and enumeration types.
3387 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3388 instead of lookup_symbol_in_language
3389 (do_exact_match): New function.
3390 (ada_get_symbol_name_matcher): Return do_exact_match when
3391 doing a verbatim match.
3395 * ravenscar-thread.c (ravenscar_thread_target::resume)
3396 (ravenscar_thread_target::wait): Special case wildcard requests.
3400 * ravenscar-thread.c (base_ptid): Remove.
3401 (struct ravenscar_thread_target) <close>: New method.
3402 <m_base_ptid>: New member.
3403 <update_inferior_ptid, active_task, task_is_currently_active,
3404 runtime_initialized>: Declare methods.
3405 <ravenscar_thread_target>: Add constructor.
3406 (ravenscar_thread_target::task_is_currently_active)
3407 (ravenscar_thread_target::update_inferior_ptid)
3408 (ravenscar_runtime_initialized): Rename. Now methods.
3409 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3410 (ravenscar_thread_target::update_thread_list): Update.
3411 (ravenscar_thread_target::active_task): Now method.
3412 (ravenscar_thread_target::store_registers)
3413 (ravenscar_thread_target::prepare_to_store)
3414 (ravenscar_thread_target::prepare_to_store)
3415 (ravenscar_thread_target::mourn_inferior): Update.
3416 (ravenscar_inferior_created): Use "new" to create target.
3417 (ravenscar_thread_target::get_ada_task_ptid): Update.
3418 (_initialize_ravenscar): Don't initialize base_ptid.
3419 (ravenscar_ops): Remove global.
3423 * target.h (push_target): Declare new overload.
3424 * target.c (push_target): New overload, taking an rvalue reference.
3425 * remote.c (remote_target::open_1): Use push_target overload.
3426 * corelow.c (core_target_open): Use push_target overload.
3430 * ravenscar-thread.c (is_ravenscar_task)
3431 (ravenscar_task_is_currently_active): Return bool.
3432 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3433 (_initialize_ravenscar): Remove "(void)".
3434 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3439 * ravenscar-thread.c (ravenscar_runtime_initializer)
3440 (has_ravenscar_runtime, get_running_thread_id)
3441 (ravenscar_thread_target::resume): Fix indentation.
3445 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3446 from ravenscar_arch_ops.
3447 (sparc_ravenscar_ops::fetch_registers)
3448 (sparc_ravenscar_ops::store_registers): Now methods.
3449 (sparc_ravenscar_prepare_to_store): Remove.
3450 (sparc_ravenscar_ops): Redefine.
3451 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3452 methods and destructor. Remove members.
3453 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3454 (ravenscar_thread_target::store_registers)
3455 (ravenscar_thread_target::prepare_to_store): Update.
3456 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3458 (struct ppc_ravenscar_powerpc_ops): Derive from
3460 (ppc_ravenscar_powerpc_ops::fetch_registers)
3461 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3462 (ppc_ravenscar_powerpc_ops): Redefine.
3463 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3464 (ppc_ravenscar_e500_ops::fetch_registers)
3465 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3466 (ppc_ravenscar_e500_ops): Redefine.
3467 * aarch64-ravenscar-thread.c
3468 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3469 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3470 (aarch64_ravenscar_fetch_registers)
3471 (aarch64_ravenscar_store_registers): Now methods.
3472 (aarch64_ravenscar_ops): Redefine.
3476 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3477 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3478 (ravenscar_thread_target::stopped_by_watchpoint)
3479 (ravenscar_thread_target::stopped_data_address)
3480 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3484 * ravenscar-thread.c: Fix some typos.
3489 * ada-lang.c (ada_exception_sal): Change addr_string to a
3491 (create_ada_exception_catchpoint): Update.
3496 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3497 (bp_location_ops): Remove.
3498 (base_breakpoint_allocate_location): Update.
3499 (free_bp_location): Update.
3500 * ada-lang.c (class ada_catchpoint_location)
3501 <ada_catchpoint_location>: Remove ops parameter.
3502 (ada_catchpoint_location_dtor): Remove.
3503 (ada_catchpoint_location_ops): Remove.
3504 (allocate_location_exception): Update.
3505 * breakpoint.h (struct bp_location_ops): Remove.
3506 (class bp_location) <bp_location>: Remove bp_location_ops
3508 <~bp_location>: Add destructor.
3514 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3521 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3522 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3526 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3527 (check_empty): Use "const char *".
3529 * gnu-nat.c (gnu_nat_target::detach): Instead of
3530 'detach_inferior (pid)' call
3531 'detach_inferior (find_inferior_pid (pid))'.
3533 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3534 'nat/fork-inferior.o'.
3535 * gnu-nat.c: #include "nat/fork-inferior.h".
3537 * gnu-nat.c (gnu_nat_target::detach): Instead of
3538 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3539 * gnu-nat.h: #include "inf-child.h".
3540 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3541 'i386_gnu_nat_target::fetch_registers'.
3542 (gnu_store_registers): Rename/move to
3543 'i386_gnu_nat_target::store_registers'.
3545 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3546 * gnu-nat.h (mach_thread_info): New function.
3547 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3549 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3553 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3557 * windows-nat.c (windows_add_thread): Add new parameter
3558 "main_thread_p" with default value set to false. Update
3559 function documentation as well as all callers.
3560 (windows_delete_thread): Likewise.
3561 (fake_create_process): Update call to windows_add_thread.
3562 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3563 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3564 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3565 call to windows_delete_thread.
3569 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3573 * symfile.c (find_separate_debug_file): Use canonical path of
3574 sysroot with child_path instead of gdb_sysroot if it is valid.
3578 * symfile.c (find_separate_debug_file): Use child_path to
3579 determine if an object file is under a sysroot.
3583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3584 unittests/child-path-selftests.c.
3585 * common/pathstuff.c (child_path): New function.
3586 * common/pathstuff.h (child_path): New prototype.
3587 * unittests/child-path-selftests.c: New file.
3591 * symfile.c (find_separate_debug_file): Look for separate debug
3592 files in debug directories under the sysroot.
3596 * symtab.h (struct minimal_symbol data_p): New const method.
3597 (struct minimal_symbol text_p): Likewise.
3598 * symtab.c (output_source_filename): Use file name style
3600 (print_symbol_info): Likewise.
3601 (print_msymbol_info): Use address style to print addresses.
3602 Use function name style to print executable text symbols.
3603 (expand_symtab_containing_pc): Use data_p.
3604 (find_pc_sect_compunit_symtab): Likewise.
3608 * breakpoint.c (describe_other_breakpoints): Use address style
3610 (say_where): Likewise.
3614 * ada-typeprint.c (print_func_type): Print function name
3615 style to print function name.
3616 * c-typeprint.c (c_print_type_1): Likewise.
3620 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3625 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3630 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3631 TYPE_CODE_REF types.
3635 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3636 (riscv_linux_fregset): New.
3637 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3641 * thread.c (thread_cancel_execution_command): Update.
3642 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3644 (struct thread_fsm_ops): Remove.
3645 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3646 (thread_fsm_should_stop, thread_fsm_return_value)
3647 (thread_fsm_set_finished, thread_fsm_finished_p)
3648 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3650 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3651 * infrun.c (clear_proceed_status_thread)
3652 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3653 (print_stop_event): Update.
3654 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3656 (step_command_fsm_ops): Remove.
3657 (new_step_command_fsm): Remove.
3659 (step_command_fsm::should_stop): Rename from
3660 step_command_fsm_should_stop.
3661 (step_command_fsm::clean_up): Rename from
3662 step_command_fsm_clean_up.
3663 (step_command_fsm::do_async_reply_reason): Rename from
3664 step_command_fsm_async_reply_reason.
3665 (struct until_next_fsm): Inherit from thread_fsm. Add
3667 (until_next_fsm_ops): Remove.
3668 (new_until_next_fsm): Remove.
3669 (until_next_fsm::should_stop): Rename from
3670 until_next_fsm_should_stop.
3671 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
3672 (until_next_fsm::do_async_reply_reason): Rename from
3673 until_next_fsm_async_reply_reason.
3674 (struct finish_command_fsm): Inherit from thread_fsm. Add
3675 constructor. Change type of breakpoint.
3676 (finish_command_fsm_ops): Remove.
3677 (new_finish_command_fsm): Remove.
3678 (finish_command_fsm::should_stop): Rename from
3679 finish_command_fsm_should_stop.
3680 (finish_command_fsm::clean_up): Rename from
3681 finish_command_fsm_clean_up.
3682 (finish_command_fsm::return_value): Rename from
3683 finish_command_fsm_return_value.
3684 (finish_command_fsm::do_async_reply_reason): Rename from
3685 finish_command_fsm_async_reply_reason.
3686 (finish_command): Update.
3687 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
3689 (call_thread_fsm_ops): Remove.
3690 (call_thread_fsm::call_thread_fsm): Rename from
3691 new_call_thread_fsm.
3692 (call_thread_fsm::should_stop): Rename from
3693 call_thread_fsm_should_stop.
3694 (call_thread_fsm::should_notify_stop): Rename from
3695 call_thread_fsm_should_notify_stop.
3696 (run_inferior_call, call_function_by_hand_dummy): Update.
3697 * cli/cli-interp.c (should_print_stop_to_console): Update.
3698 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
3699 Add constructor. Change type of location_breakpoint,
3701 (until_break_fsm_ops): Remove.
3702 (new_until_break_fsm): Remove.
3703 (until_break_fsm::should_stop): Rename from
3704 until_break_fsm_should_stop.
3705 (until_break_fsm::clean_up): Rename from
3706 until_break_fsm_clean_up.
3707 (until_break_fsm::do_async_reply_reason): Rename from
3708 until_break_fsm_async_reply_reason.
3709 (until_break_command): Update.
3710 * thread-fsm.c: Remove.
3711 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
3715 * yy-remap.h: Add include guard.
3716 * xtensa-tdep.h: Add include guard.
3717 * xcoffread.h: Rename include guard.
3718 * varobj-iter.h: Add include guard.
3719 * tui/tui.h: Rename include guard.
3720 * tui/tui-winsource.h: Rename include guard.
3721 * tui/tui-wingeneral.h: Rename include guard.
3722 * tui/tui-windata.h: Rename include guard.
3723 * tui/tui-win.h: Rename include guard.
3724 * tui/tui-stack.h: Rename include guard.
3725 * tui/tui-source.h: Rename include guard.
3726 * tui/tui-regs.h: Rename include guard.
3727 * tui/tui-out.h: Rename include guard.
3728 * tui/tui-layout.h: Rename include guard.
3729 * tui/tui-io.h: Rename include guard.
3730 * tui/tui-hooks.h: Rename include guard.
3731 * tui/tui-file.h: Rename include guard.
3732 * tui/tui-disasm.h: Rename include guard.
3733 * tui/tui-data.h: Rename include guard.
3734 * tui/tui-command.h: Rename include guard.
3735 * tic6x-tdep.h: Add include guard.
3736 * target/waitstatus.h: Rename include guard.
3737 * target/wait.h: Rename include guard.
3738 * target/target.h: Rename include guard.
3739 * target/resume.h: Rename include guard.
3740 * target-float.h: Rename include guard.
3741 * stabsread.h: Add include guard.
3742 * rs6000-tdep.h: Add include guard.
3743 * riscv-fbsd-tdep.h: Add include guard.
3744 * regformats/regdef.h: Rename include guard.
3745 * record.h: Rename include guard.
3746 * python/python.h: Rename include guard.
3747 * python/python-internal.h: Rename include guard.
3748 * python/py-stopevent.h: Rename include guard.
3749 * python/py-ref.h: Rename include guard.
3750 * python/py-record.h: Rename include guard.
3751 * python/py-record-full.h: Rename include guard.
3752 * python/py-record-btrace.h: Rename include guard.
3753 * python/py-instruction.h: Rename include guard.
3754 * python/py-events.h: Rename include guard.
3755 * python/py-event.h: Rename include guard.
3756 * procfs.h: Add include guard.
3757 * proc-utils.h: Add include guard.
3758 * p-lang.h: Add include guard.
3759 * or1k-tdep.h: Rename include guard.
3760 * observable.h: Rename include guard.
3761 * nto-tdep.h: Rename include guard.
3762 * nat/x86-linux.h: Rename include guard.
3763 * nat/x86-linux-dregs.h: Rename include guard.
3764 * nat/x86-gcc-cpuid.h: Add include guard.
3765 * nat/x86-dregs.h: Rename include guard.
3766 * nat/x86-cpuid.h: Rename include guard.
3767 * nat/ppc-linux.h: Rename include guard.
3768 * nat/mips-linux-watch.h: Rename include guard.
3769 * nat/linux-waitpid.h: Rename include guard.
3770 * nat/linux-ptrace.h: Rename include guard.
3771 * nat/linux-procfs.h: Rename include guard.
3772 * nat/linux-osdata.h: Rename include guard.
3773 * nat/linux-nat.h: Rename include guard.
3774 * nat/linux-namespaces.h: Rename include guard.
3775 * nat/linux-btrace.h: Rename include guard.
3776 * nat/glibc_thread_db.h: Rename include guard.
3777 * nat/gdb_thread_db.h: Rename include guard.
3778 * nat/gdb_ptrace.h: Rename include guard.
3779 * nat/fork-inferior.h: Rename include guard.
3780 * nat/amd64-linux-siginfo.h: Rename include guard.
3781 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
3782 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
3783 * nat/aarch64-linux.h: Rename include guard.
3784 * nat/aarch64-linux-hw-point.h: Rename include guard.
3785 * mn10300-tdep.h: Add include guard.
3786 * mips-linux-tdep.h: Add include guard.
3787 * mi/mi-parse.h: Rename include guard.
3788 * mi/mi-out.h: Rename include guard.
3789 * mi/mi-main.h: Rename include guard.
3790 * mi/mi-interp.h: Rename include guard.
3791 * mi/mi-getopt.h: Rename include guard.
3792 * mi/mi-console.h: Rename include guard.
3793 * mi/mi-common.h: Rename include guard.
3794 * mi/mi-cmds.h: Rename include guard.
3795 * mi/mi-cmd-break.h: Rename include guard.
3796 * m2-lang.h: Add include guard.
3797 * location.h: Rename include guard.
3798 * linux-record.h: Rename include guard.
3799 * linux-nat.h: Add include guard.
3800 * linux-fork.h: Add include guard.
3801 * i386-darwin-tdep.h: Rename include guard.
3802 * hppa-linux-offsets.h: Add include guard.
3803 * guile/guile.h: Rename include guard.
3804 * guile/guile-internal.h: Rename include guard.
3805 * gnu-nat.h: Rename include guard.
3806 * gdb-stabs.h: Rename include guard.
3807 * frv-tdep.h: Add include guard.
3808 * f-lang.h: Add include guard.
3809 * event-loop.h: Add include guard.
3810 * darwin-nat.h: Rename include guard.
3811 * cp-abi.h: Rename include guard.
3812 * config/sparc/nm-sol2.h: Rename include guard.
3813 * config/nm-nto.h: Rename include guard.
3814 * config/nm-linux.h: Add include guard.
3815 * config/i386/nm-i386gnu.h: Rename include guard.
3816 * config/djgpp/nl_types.h: Rename include guard.
3817 * config/djgpp/langinfo.h: Rename include guard.
3818 * compile/gcc-cp-plugin.h: Add include guard.
3819 * compile/gcc-c-plugin.h: Add include guard.
3820 * compile/compile.h: Rename include guard.
3821 * compile/compile-object-run.h: Rename include guard.
3822 * compile/compile-object-load.h: Rename include guard.
3823 * compile/compile-internal.h: Rename include guard.
3824 * compile/compile-cplus.h: Rename include guard.
3825 * compile/compile-c.h: Rename include guard.
3826 * common/xml-utils.h: Rename include guard.
3827 * common/x86-xstate.h: Rename include guard.
3828 * common/version.h: Rename include guard.
3829 * common/vec.h: Rename include guard.
3830 * common/tdesc.h: Rename include guard.
3831 * common/selftest.h: Rename include guard.
3832 * common/scoped_restore.h: Rename include guard.
3833 * common/scoped_mmap.h: Rename include guard.
3834 * common/scoped_fd.h: Rename include guard.
3835 * common/safe-iterator.h: Rename include guard.
3836 * common/run-time-clock.h: Rename include guard.
3837 * common/refcounted-object.h: Rename include guard.
3838 * common/queue.h: Rename include guard.
3839 * common/ptid.h: Rename include guard.
3840 * common/print-utils.h: Rename include guard.
3841 * common/preprocessor.h: Rename include guard.
3842 * common/pathstuff.h: Rename include guard.
3843 * common/observable.h: Rename include guard.
3844 * common/netstuff.h: Rename include guard.
3845 * common/job-control.h: Rename include guard.
3846 * common/host-defs.h: Rename include guard.
3847 * common/gdb_wait.h: Rename include guard.
3848 * common/gdb_vecs.h: Rename include guard.
3849 * common/gdb_unlinker.h: Rename include guard.
3850 * common/gdb_unique_ptr.h: Rename include guard.
3851 * common/gdb_tilde_expand.h: Rename include guard.
3852 * common/gdb_sys_time.h: Rename include guard.
3853 * common/gdb_string_view.h: Rename include guard.
3854 * common/gdb_splay_tree.h: Rename include guard.
3855 * common/gdb_setjmp.h: Rename include guard.
3856 * common/gdb_ref_ptr.h: Rename include guard.
3857 * common/gdb_optional.h: Rename include guard.
3858 * common/gdb_locale.h: Rename include guard.
3859 * common/gdb_assert.h: Rename include guard.
3860 * common/filtered-iterator.h: Rename include guard.
3861 * common/filestuff.h: Rename include guard.
3862 * common/fileio.h: Rename include guard.
3863 * common/environ.h: Rename include guard.
3864 * common/common-utils.h: Rename include guard.
3865 * common/common-types.h: Rename include guard.
3866 * common/common-regcache.h: Rename include guard.
3867 * common/common-inferior.h: Rename include guard.
3868 * common/common-gdbthread.h: Rename include guard.
3869 * common/common-exceptions.h: Rename include guard.
3870 * common/common-defs.h: Rename include guard.
3871 * common/common-debug.h: Rename include guard.
3872 * common/cleanups.h: Rename include guard.
3873 * common/buffer.h: Rename include guard.
3874 * common/btrace-common.h: Rename include guard.
3875 * common/break-common.h: Rename include guard.
3876 * cli/cli-utils.h: Rename include guard.
3877 * cli/cli-style.h: Rename include guard.
3878 * cli/cli-setshow.h: Rename include guard.
3879 * cli/cli-script.h: Rename include guard.
3880 * cli/cli-interp.h: Rename include guard.
3881 * cli/cli-decode.h: Rename include guard.
3882 * cli/cli-cmds.h: Rename include guard.
3883 * charset-list.h: Add include guard.
3884 * buildsym-legacy.h: Rename include guard.
3885 * bfin-tdep.h: Add include guard.
3886 * ax.h: Rename include guard.
3887 * arm-linux-tdep.h: Add include guard.
3888 * arm-fbsd-tdep.h: Add include guard.
3889 * arch/xtensa.h: Rename include guard.
3890 * arch/tic6x.h: Add include guard.
3891 * arch/i386.h: Add include guard.
3892 * arch/arm.h: Rename include guard.
3893 * arch/arm-linux.h: Rename include guard.
3894 * arch/arm-get-next-pcs.h: Rename include guard.
3895 * arch/amd64.h: Add include guard.
3896 * arch/aarch64-insn.h: Rename include guard.
3897 * arch-utils.h: Rename include guard.
3898 * annotate.h: Add include guard.
3899 * amd64-darwin-tdep.h: Rename include guard.
3900 * aarch64-linux-tdep.h: Add include guard.
3901 * aarch64-fbsd-tdep.h: Add include guard.
3902 * aarch32-linux-nat.h: Add include guard.
3906 * macrotab.c (macro_define_internal): New function that
3907 factorizes macro_define_object_internal and macro_define_function
3909 (macro_define_object_internal): Use macro_define_internal.
3910 (macro_define_function): Likewise.
3914 * macrocmd.c (extract_identifier): Return
3915 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
3920 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
3924 * target.c (target_stack::unpush): Move assertion earlier.
3929 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
3930 (gdbpy_parse_and_eval): Likewise.
3931 * python/python-internal.h (gdbpy_allow_threads): New class.
3935 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
3936 (aarch64_fbsd_fpregmap): Move earlier.
3937 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
3938 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
3939 instead of individual calls to trad_frame_set_reg_addr.
3940 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
3942 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
3943 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
3944 instead of individual calls to trad_frame_set_reg_addr.
3948 * CONTRIBUTE: Replace contribution list with wiki link.
3952 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
3956 * xtensa-linux-nat.c: Fix common/ includes.
3957 * xml-support.h: Fix common/ includes.
3958 * xml-support.c: Fix common/ includes.
3959 * x86-linux-nat.c: Fix common/ includes.
3960 * windows-nat.c: Fix common/ includes.
3961 * varobj.h: Fix common/ includes.
3962 * varobj.c: Fix common/ includes.
3963 * value.c: Fix common/ includes.
3964 * valops.c: Fix common/ includes.
3965 * utils.c: Fix common/ includes.
3966 * unittests/xml-utils-selftests.c: Fix common/ includes.
3967 * unittests/utils-selftests.c: Fix common/ includes.
3968 * unittests/unpack-selftests.c: Fix common/ includes.
3969 * unittests/tracepoint-selftests.c: Fix common/ includes.
3970 * unittests/style-selftests.c: Fix common/ includes.
3971 * unittests/string_view-selftests.c: Fix common/ includes.
3972 * unittests/scoped_restore-selftests.c: Fix common/ includes.
3973 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
3974 * unittests/scoped_fd-selftests.c: Fix common/ includes.
3975 * unittests/rsp-low-selftests.c: Fix common/ includes.
3976 * unittests/parse-connection-spec-selftests.c: Fix common/
3978 * unittests/optional-selftests.c: Fix common/ includes.
3979 * unittests/offset-type-selftests.c: Fix common/ includes.
3980 * unittests/observable-selftests.c: Fix common/ includes.
3981 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
3982 * unittests/memrange-selftests.c: Fix common/ includes.
3983 * unittests/memory-map-selftests.c: Fix common/ includes.
3984 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
3985 * unittests/function-view-selftests.c: Fix common/ includes.
3986 * unittests/environ-selftests.c: Fix common/ includes.
3987 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
3988 * unittests/common-utils-selftests.c: Fix common/ includes.
3989 * unittests/cli-utils-selftests.c: Fix common/ includes.
3990 * unittests/array-view-selftests.c: Fix common/ includes.
3991 * ui-file.c: Fix common/ includes.
3992 * tui/tui-io.c: Fix common/ includes.
3993 * tracepoint.h: Fix common/ includes.
3994 * tracepoint.c: Fix common/ includes.
3995 * tracefile-tfile.c: Fix common/ includes.
3996 * top.h: Fix common/ includes.
3997 * top.c: Fix common/ includes.
3998 * thread.c: Fix common/ includes.
3999 * target/waitstatus.h: Fix common/ includes.
4000 * target/waitstatus.c: Fix common/ includes.
4001 * target.h: Fix common/ includes.
4002 * target.c: Fix common/ includes.
4003 * target-memory.c: Fix common/ includes.
4004 * target-descriptions.c: Fix common/ includes.
4005 * symtab.h: Fix common/ includes.
4006 * symfile.c: Fix common/ includes.
4007 * stap-probe.c: Fix common/ includes.
4008 * spu-linux-nat.c: Fix common/ includes.
4009 * sparc-nat.c: Fix common/ includes.
4010 * source.c: Fix common/ includes.
4011 * solib.c: Fix common/ includes.
4012 * solib-target.c: Fix common/ includes.
4013 * ser-unix.c: Fix common/ includes.
4014 * ser-tcp.c: Fix common/ includes.
4015 * ser-pipe.c: Fix common/ includes.
4016 * ser-base.c: Fix common/ includes.
4017 * selftest-arch.c: Fix common/ includes.
4018 * s12z-tdep.c: Fix common/ includes.
4019 * rust-exp.y: Fix common/ includes.
4020 * rs6000-aix-tdep.c: Fix common/ includes.
4021 * riscv-tdep.c: Fix common/ includes.
4022 * remote.c: Fix common/ includes.
4023 * remote-notif.h: Fix common/ includes.
4024 * remote-fileio.h: Fix common/ includes.
4025 * remote-fileio.c: Fix common/ includes.
4026 * regcache.h: Fix common/ includes.
4027 * regcache.c: Fix common/ includes.
4028 * record-btrace.c: Fix common/ includes.
4029 * python/python.c: Fix common/ includes.
4030 * python/py-type.c: Fix common/ includes.
4031 * python/py-inferior.c: Fix common/ includes.
4032 * progspace.h: Fix common/ includes.
4033 * producer.c: Fix common/ includes.
4034 * procfs.c: Fix common/ includes.
4035 * proc-api.c: Fix common/ includes.
4036 * printcmd.c: Fix common/ includes.
4037 * ppc-linux-nat.c: Fix common/ includes.
4038 * parser-defs.h: Fix common/ includes.
4039 * osdata.c: Fix common/ includes.
4040 * obsd-nat.c: Fix common/ includes.
4041 * nat/x86-linux.c: Fix common/ includes.
4042 * nat/x86-linux-dregs.c: Fix common/ includes.
4043 * nat/x86-dregs.h: Fix common/ includes.
4044 * nat/x86-dregs.c: Fix common/ includes.
4045 * nat/ppc-linux.c: Fix common/ includes.
4046 * nat/mips-linux-watch.h: Fix common/ includes.
4047 * nat/mips-linux-watch.c: Fix common/ includes.
4048 * nat/linux-waitpid.c: Fix common/ includes.
4049 * nat/linux-ptrace.h: Fix common/ includes.
4050 * nat/linux-ptrace.c: Fix common/ includes.
4051 * nat/linux-procfs.c: Fix common/ includes.
4052 * nat/linux-personality.c: Fix common/ includes.
4053 * nat/linux-osdata.c: Fix common/ includes.
4054 * nat/linux-namespaces.c: Fix common/ includes.
4055 * nat/linux-btrace.h: Fix common/ includes.
4056 * nat/linux-btrace.c: Fix common/ includes.
4057 * nat/fork-inferior.c: Fix common/ includes.
4058 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4059 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4060 * nat/aarch64-linux.c: Fix common/ includes.
4061 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4062 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4063 * namespace.h: Fix common/ includes.
4064 * mips-linux-tdep.c: Fix common/ includes.
4065 * minsyms.c: Fix common/ includes.
4066 * mi/mi-parse.h: Fix common/ includes.
4067 * mi/mi-main.c: Fix common/ includes.
4068 * mi/mi-cmd-env.c: Fix common/ includes.
4069 * memrange.h: Fix common/ includes.
4070 * memattr.c: Fix common/ includes.
4071 * maint.h: Fix common/ includes.
4072 * maint.c: Fix common/ includes.
4073 * main.c: Fix common/ includes.
4074 * machoread.c: Fix common/ includes.
4075 * location.c: Fix common/ includes.
4076 * linux-thread-db.c: Fix common/ includes.
4077 * linux-nat.c: Fix common/ includes.
4078 * linux-fork.c: Fix common/ includes.
4079 * inline-frame.c: Fix common/ includes.
4080 * infrun.c: Fix common/ includes.
4081 * inflow.c: Fix common/ includes.
4082 * inferior.h: Fix common/ includes.
4083 * inferior.c: Fix common/ includes.
4084 * infcmd.c: Fix common/ includes.
4085 * inf-ptrace.c: Fix common/ includes.
4086 * inf-child.c: Fix common/ includes.
4087 * ia64-linux-nat.c: Fix common/ includes.
4088 * i387-tdep.c: Fix common/ includes.
4089 * i386-tdep.c: Fix common/ includes.
4090 * i386-linux-tdep.c: Fix common/ includes.
4091 * i386-linux-nat.c: Fix common/ includes.
4092 * i386-go32-tdep.c: Fix common/ includes.
4093 * i386-fbsd-tdep.c: Fix common/ includes.
4094 * i386-fbsd-nat.c: Fix common/ includes.
4095 * guile/scm-type.c: Fix common/ includes.
4096 * guile/guile.c: Fix common/ includes.
4097 * go32-nat.c: Fix common/ includes.
4098 * gnu-nat.c: Fix common/ includes.
4099 * gdbthread.h: Fix common/ includes.
4100 * gdbarch-selftests.c: Fix common/ includes.
4101 * gdb_usleep.c: Fix common/ includes.
4102 * gdb_select.h: Fix common/ includes.
4103 * gdb_bfd.c: Fix common/ includes.
4104 * gcore.c: Fix common/ includes.
4105 * fork-child.c: Fix common/ includes.
4106 * findvar.c: Fix common/ includes.
4107 * fbsd-nat.c: Fix common/ includes.
4108 * event-top.c: Fix common/ includes.
4109 * event-loop.c: Fix common/ includes.
4110 * dwarf2read.c: Fix common/ includes.
4111 * dwarf2loc.c: Fix common/ includes.
4112 * dwarf2-frame.c: Fix common/ includes.
4113 * dwarf-index-cache.c: Fix common/ includes.
4114 * dtrace-probe.c: Fix common/ includes.
4115 * disasm-selftests.c: Fix common/ includes.
4116 * defs.h: Fix common/ includes.
4117 * csky-tdep.c: Fix common/ includes.
4118 * cp-valprint.c: Fix common/ includes.
4119 * cp-support.h: Fix common/ includes.
4120 * cp-support.c: Fix common/ includes.
4121 * corelow.c: Fix common/ includes.
4122 * completer.h: Fix common/ includes.
4123 * completer.c: Fix common/ includes.
4124 * compile/compile.c: Fix common/ includes.
4125 * compile/compile-loc2c.c: Fix common/ includes.
4126 * compile/compile-cplus-types.c: Fix common/ includes.
4127 * compile/compile-cplus-symbols.c: Fix common/ includes.
4128 * command.h: Fix common/ includes.
4129 * cli/cli-dump.c: Fix common/ includes.
4130 * cli/cli-cmds.c: Fix common/ includes.
4131 * charset.c: Fix common/ includes.
4132 * build-id.c: Fix common/ includes.
4133 * btrace.h: Fix common/ includes.
4134 * btrace.c: Fix common/ includes.
4135 * breakpoint.h: Fix common/ includes.
4136 * breakpoint.c: Fix common/ includes.
4138 (enum agent_op): Fix common/ includes.
4139 * ax-general.c (struct aop_map): Fix common/ includes.
4140 * ax-gdb.c: Fix common/ includes.
4141 * auxv.c: Fix common/ includes.
4142 * auto-load.c: Fix common/ includes.
4143 * arm-tdep.c: Fix common/ includes.
4144 * arch/riscv.c: Fix common/ includes.
4145 * arch/ppc-linux-common.c: Fix common/ includes.
4146 * arch/i386.c: Fix common/ includes.
4147 * arch/arm.c: Fix common/ includes.
4148 * arch/arm-linux.c: Fix common/ includes.
4149 * arch/arm-get-next-pcs.c: Fix common/ includes.
4150 * arch/amd64.c: Fix common/ includes.
4151 * arch/aarch64.c: Fix common/ includes.
4152 * arch/aarch64-insn.c: Fix common/ includes.
4153 * arch-utils.c: Fix common/ includes.
4154 * amd64-windows-tdep.c: Fix common/ includes.
4155 * amd64-tdep.c: Fix common/ includes.
4156 * amd64-sol2-tdep.c: Fix common/ includes.
4157 * amd64-obsd-tdep.c: Fix common/ includes.
4158 * amd64-nbsd-tdep.c: Fix common/ includes.
4159 * amd64-linux-tdep.c: Fix common/ includes.
4160 * amd64-linux-nat.c: Fix common/ includes.
4161 * amd64-fbsd-tdep.c: Fix common/ includes.
4162 * amd64-fbsd-nat.c: Fix common/ includes.
4163 * amd64-dicos-tdep.c: Fix common/ includes.
4164 * amd64-darwin-tdep.c: Fix common/ includes.
4165 * agent.c: Fix common/ includes.
4166 * ada-lang.h: Fix common/ includes.
4167 * ada-lang.c: Fix common/ includes.
4168 * aarch64-tdep.c: Fix common/ includes.
4172 * common/create-version.sh: Use common/version.h.
4176 * infrun.c (signal_stop, signal_print, signal_program)
4177 (signal_catch, signal_pass): Now arrays instead of pointers.
4178 (update_signals_program_target, do_target_resume)
4179 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4180 * linux-nat.c (linux_nat_target::pass_signals)
4181 (linux_nat_target::create_inferior, linux_nat_target::attach):
4183 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4184 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4185 * procfs.c (procfs_target::pass_signals): Adjust.
4186 * record-full.c (record_full_target::resume): Adjust.
4187 * remote.c (remote_target::pass_signals)
4188 (remote_target::program_signals): Adjust.
4189 * target-debug.h (target_debug_print_signals): Now takes a
4190 gdb::array_view as parameter. Adjust.
4191 * target.h (target_ops) <pass_signals, program_signals>: Replace
4192 pointer and length parameters with gdb::array_view.
4193 (target_pass_signals, target_program_signals): Likewise.
4194 * target-delegates.c: Regenerate.
4198 * common/forward-scope-exit.h
4199 (forward_scope_exit::forward_scope_exit): Pass arguments to
4200 m_bind_function directly, instead of creating a std::bind and
4205 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4207 (pass_in_v_vfp_candidate): Likewise.
4212 * regcache.c (class regcache_invalidator): Remove.
4213 (regcache::raw_write): Use make_scope_exit.
4217 * ui-out.h (class ui_out_emit_type): Update comment.
4221 * infrun.c (fetch_inferior_event): Update comment.
4226 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4228 (fetch_inferior_event): Use SCOPE_EXIT.
4234 * infrun.c (disable_thread_events): Delete.
4235 (stop_all_threads): Use SCOPE_EXIT.
4240 * symfile.c: Include forward-scope-exit.h.
4241 (clear_symtab_users_cleanup): Replace forward declaration with
4242 a FORWARD_SCOPE_EXIT.
4243 (syms_from_objfile_1): Use the forward_scope_exit and
4244 gdb::optional instead of cleanup_function.
4245 (reread_symbols): Use the forward_scope_exit instead of
4247 (clear_symtab_users_cleanup): Remove function.
4252 * linux-nat.c: Include scope-exit.h.
4253 (cleanup_target_stop): Remove.
4254 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4260 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4261 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4267 * infrun.c (fetch_inferior_event): Use scope_exit.
4268 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4269 * top.c (execute_command): Use scope_exit.
4270 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4271 * utils.c (do_bpstat_clear_actions_cleanup)
4272 (make_bpstat_clear_actions_cleanup): Remove.
4277 * infrun.c: Include "common/scope-exit.h"
4278 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4279 (wait_for_inferior): Use SCOPE_EXIT.
4280 (fetch_inferior_event): Use scope_exit.
4285 * breakpoint.c (create_breakpoint): Remove cleanup.
4293 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4298 * gdbthread.h: Include "common/forward-scope-exit.h".
4299 (scoped_finish_thread_state): Redefine custom class in terms of
4305 * common/forward-scope-exit.h: New file.
4311 * common/scope-exit.h: New file.
4315 * common/preprocessor.h (ESC): Rename to ...
4316 (ESC_PARENS): ... this.
4317 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4318 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4322 * language.h (class scoped_switch_to_sym_language_if_auto):
4323 Initialize m_lang in both cases.
4327 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4332 * corelow.c: Do not include sys/file.h.
4336 * tui/tui-wingeneral.h: Include gdb_curses.h.
4340 * source-cache.h (class source_cache) <get_source_lines,
4341 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4345 * remote-fileio.h (struct remote_target): Declare.
4349 * python/py-arch.c: Do not include py-ref.h.
4350 * python/py-bpevent.c: Do not include py-ref.h.
4351 * python/py-cmd.c: Do not include py-ref.h.
4352 * python/py-continueevent.c: Do not include py-ref.h.
4353 * python/py-event.h: Do not include py-ref.h.
4354 * python/py-evtregistry.c: Do not include py-ref.h.
4355 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4356 * python/py-frame.c: Do not include py-ref.h.
4357 * python/py-framefilter.c: Do not include py-ref.h.
4358 * python/py-function.c: Do not include py-ref.h.
4359 * python/py-infevents.c: Do not include py-ref.h.
4360 * python/py-linetable.c: Do not include py-ref.h.
4361 * python/py-objfile.c: Do not include py-ref.h.
4362 * python/py-param.c: Do not include py-ref.h.
4363 * python/py-prettyprint.c: Do not include py-ref.h.
4364 * python/py-progspace.c: Do not include py-ref.h.
4365 * python/py-symbol.c: Do not include py-ref.h.
4366 * python/py-symtab.c: Do not include py-ref.h.
4367 * python/py-type.c: Do not include py-ref.h.
4368 * python/py-unwind.c: Do not include py-ref.h.
4369 * python/py-utils.c: Do not include py-ref.h.
4370 * python/py-value.c: Do not include py-ref.h.
4371 * python/py-varobj.c: Do not include py-ref.h.
4372 * python/py-xmethods.c: Do not include py-ref.h.
4373 * python/python.c: Do not include py-ref.h.
4374 * varobj.c: Do not include py-ref.h.
4378 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4383 * compile/compile-cplus-types.c: Remove a comment by #include.
4387 * compile/gcc-c-plugin.h: Include compile-internal.h.
4391 * stabsread.c (EXTERN): Do not define.
4392 (symnum, next_symbol_text_func, processing_gcc_compilation)
4393 (within_function, global_sym_chain, global_stabs)
4394 (previous_stab_code, this_object_header_files)
4395 (n_this_object_header_files)
4396 (n_allocated_this_object_header_files): Define.
4397 * stabsread.h (EXTERN): Never define. Use "extern".
4401 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4406 * ui-out.c: Fix includes.
4407 * tui/tui-source.c: Fix includes.
4408 * target.c: Fix includes.
4409 * remote.c: Fix includes.
4410 * regcache.c: Fix includes.
4411 * python/py-block.c: Fix includes.
4412 * printcmd.c: Fix includes.
4413 * or1k-tdep.c: Fix includes.
4414 * mi/mi-main.c: Fix includes.
4415 * m32r-tdep.c: Fix includes.
4416 * csky-tdep.c: Fix includes.
4417 * compile/compile-cplus-types.c: Fix includes.
4418 * cli/cli-interp.c: Fix includes.
4422 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4427 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4429 (struct objfile) <msymbols_range>: Move from top level.
4430 <msymbols>: New method.
4431 (class objfile_msymbols): Remove.
4432 * symtab.c (default_collect_symbol_completion_matches_break_on):
4434 * symmisc.c (dump_msymbols): Update.
4435 * stabsread.c (scan_file_globals): Update.
4436 * objc-lang.c (info_selectors_command, info_classes_command)
4437 (find_methods): Update.
4438 * minsyms.c (find_solib_trampoline_target): Update.
4439 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4440 * coffread.c (coff_symfile_read): Update.
4441 * ada-lang.c (ada_lookup_simple_minsym)
4442 (ada_collect_symbol_completion_matches): Update.
4446 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4447 type. Remove no-argument constructor.
4448 <iterator::operator++>: Simplify.
4450 <end>: Use minimal_symbol_count.
4454 * objfiles.h (struct objfile) <psymtabs>: New method.
4455 (class objfile_psymtabs): Remove.
4456 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4458 <range>: New method.
4459 (require_partial_symbols): Change return type.
4460 * psymtab.c (require_partial_symbols)
4461 (psym_expand_symtabs_matching): Update.
4462 * mdebugread.c (parse_partial_symbols): Update.
4463 * dbxread.c (dbx_end_psymtab): Update.
4467 * symtab.c (lookup_objfile_from_block)
4468 (lookup_symbol_in_objfile_symtabs)
4469 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4470 (find_line_symtab, info_sources_command)
4471 (default_collect_symbol_completion_matches_break_on)
4472 (make_source_files_completion_list): Update.
4473 * symmisc.c (print_objfile_statistics, dump_objfile)
4474 (maintenance_print_symbols, maintenance_info_symtabs)
4475 (maintenance_check_symtabs, maintenance_info_line_tables):
4477 * source.c (select_source_symtab)
4478 (forget_cached_source_info_for_objfile): Update.
4479 * objfiles.h (class objfile_compunits): Remove.
4480 (struct objfile) <compunits_range>: New typedef.
4481 (compunits): New method.
4482 * objfiles.c (objfile_relocate1): Update.
4483 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4484 * maint.c (count_symtabs_and_blocks): Update.
4485 * linespec.c (iterate_over_all_matching_symtabs): Update.
4486 * cp-support.c (add_symbol_overload_list_qualified): Update.
4487 * coffread.c (coff_symtab_read): Update.
4488 * ada-lang.c (add_nonlocal_symbols)
4489 (ada_collect_symbol_completion_matches)
4490 (ada_add_global_exceptions): Update.
4494 * progspace.h (program_space) <objfiles_safe_range>: New
4496 <objfiles_safe>: New method.
4497 * objfiles.h (class all_objfiles_safe): Remove.
4498 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4499 * jit.c (jit_inferior_exit_hook): Update.
4503 * progspace.h (program_space) <objfiles_range>: New typedef.
4504 <objfiles>: New method.
4505 <objfiles_head>: Rename from objfiles.
4506 (object_files): Update.
4507 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4508 * guile/scm-pretty-print.c
4509 (ppscm_find_pretty_printer_from_objfiles): Update.
4510 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4511 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4513 * python/py-progspace.c (pspy_get_objfiles): Update.
4514 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4516 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4517 (objfpy_lookup_objfile_by_build_id): Update.
4518 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4519 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4521 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4522 (expand_symtab_containing_pc, lookup_objfile_from_block)
4523 (lookup_static_symbol, basic_lookup_transparent_type)
4524 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4525 (find_line_symtab, info_sources_command)
4526 (default_collect_symbol_completion_matches_break_on)
4527 (make_source_files_completion_list, find_main_name): Update.
4528 * symmisc.c (print_symbol_bcache_statistics)
4529 (print_objfile_statistics, maintenance_print_symbols)
4530 (maintenance_print_msymbols, maintenance_print_objfiles)
4531 (maintenance_info_symtabs, maintenance_check_symtabs)
4532 (maintenance_expand_symtabs, maintenance_info_line_tables):
4534 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4535 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4536 (map_overlay_command, unmap_overlay_command)
4537 (simple_overlay_update, expand_symtabs_matching)
4538 (map_symbol_filenames): Update.
4539 * symfile-debug.c (set_debug_symfile): Update.
4540 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4542 * source.c (select_source_symtab, forget_cached_source_info):
4544 * solib.c (solib_read_symbols): Update.
4545 * solib-spu.c (append_ocl_sos): Update.
4546 * psymtab.c (maintenance_print_psymbols)
4547 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4548 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4549 * printcmd.c (info_symbol_command): Update.
4550 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4552 * objfiles.h (class all_objfiles): Remove.
4553 * objfiles.c (have_partial_symbols, have_full_symbols)
4554 (have_minimal_symbols, qsort_cmp, update_section_map)
4555 (shared_objfile_contains_address_p)
4556 (default_iterate_over_objfiles_in_search_order): Update.
4557 * objc-lang.c (info_selectors_command, info_classes_command)
4558 (find_methods): Update.
4559 * minsyms.c (find_solib_trampoline_target): Update.
4560 * maint.c (maintenance_info_sections)
4561 (maintenance_translate_address, count_symtabs_and_blocks):
4563 * main.c (captured_main_1): Update.
4564 * linux-thread-db.c (try_thread_db_load_from_pdir)
4565 (has_libpthread): Update.
4566 * linespec.c (iterate_over_all_matching_symtabs)
4567 (search_minsyms_for_name): Update.
4568 * jit.c (jit_find_objf_with_entry_addr): Update.
4569 * hppa-tdep.c (find_unwind_entry)
4570 (hppa_lookup_stub_minimal_symbol): Update.
4571 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4573 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4574 (elf_gnu_ifunc_resolve_by_got): Update.
4575 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4576 * dwarf-index-write.c (save_gdb_index_command): Update.
4577 * cp-support.c (add_symbol_overload_list_qualified): Update.
4578 * breakpoint.c (create_overlay_event_breakpoint)
4579 (create_longjmp_master_breakpoint)
4580 (create_std_terminate_master_breakpoint)
4581 (create_exception_master_breakpoint): Update.
4582 * blockframe.c (find_pc_partial_function): Update.
4583 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4584 (ada_collect_symbol_completion_matches)
4585 (ada_add_global_exceptions): Update.
4589 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4591 (solib_target_parse_libraries): Change return type.
4592 (library_list_start_segment, library_list_start_section)
4593 (library_list_end_library, library_list_start_library); Update.
4594 (solib_target_free_library_list): Remove.
4595 (solib_target_parse_libraries): Remove cleanup. Change return
4597 (solib_target_current_sos): Update.
4599 2019-01-17 Tom Tromey <tromey@bapiya>
4601 * valprint.c: Replace "the the" with "the".
4602 * symtab.c: Replace "the the" with "the".
4603 * solib.c: Replace "the the" with "the".
4604 * solib-dsbt.c: Replace "the the" with "the".
4605 * linespec.c: Replace "the the" with "the".
4606 * dwarf2loc.h: Replace "the the" with "the".
4607 * amd64-windows-tdep.c: Replace "the the" with "the".
4608 * aarch64-tdep.c: Replace "the the" with "the".
4613 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4614 <builder>: Rename to ..
4615 <m_builder>: ... this and make private.
4616 (dwarf2_cu::get_builder): New method. Change all users of
4617 `builder' to use this method.
4618 (dwarf2_start_symtab): Move to ...
4619 (dwarf2_cu::start_symtab): ... here. Update all callers
4620 (setup_type_unit_groups): Move to ...
4621 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4623 (dwarf2_cu::reset_builder): New method.
4624 (process_full_compunit, process_full_type_unit): Use
4625 dwarf2_cu::reset_builder.
4626 (follow_die_offset): Record the ancestor CU if it is different
4627 from the followed DIE's CU.
4628 (follow_die_sig_1): Likewise.
4632 * remote.c (class remote_state) <buf>: Now a char_vector.
4634 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4636 (remote_target::getpkt_or_notif_sane_1)
4637 (remote_target::getpkt_sane)
4638 (remote_target::getpkt_or_notif_sane): Likewise.
4639 (class remote_target) <putpkt>: New overload.
4640 (remote_target::read_frame): Change type of "buf_p". Remove
4642 (packet_ok): New overload.
4643 (packet_check_result): New overload.
4648 * remote-notif.c (handle_notification, remote_notif_ack)
4649 (remote_notif_parse): Make "buf" const.
4650 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4652 (remote_notif_parse, remote_notif_ack, handle_notification):
4654 * remote.c (remote_notif_stop_parse): Make "buf" const.
4655 (remote_target::remote_parse_stop_reply): Make "buf" const.
4656 (remote_notif_stop_ack): Make "buf" const.
4660 * remote.c (remote_console_output): Make parameter const.
4664 * target-debug.h (target_debug_print_signals): Constify.
4665 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
4666 * procfs.c (procfs_target::pass_signals): Update.
4667 * linux-nat.c (linux_nat_target::pass_signals): Update.
4668 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
4669 * target-delegates.c: Rebuild.
4670 * remote.c (remote_target::program_signals): Update.
4671 (remote_target::pass_signals): Update.
4672 * target.c (target_pass_signals): Constify argument.
4673 (target_program_signals): Likewise.
4674 * target.h (struct target_ops) <pass_signals, program_signals>:
4676 (target_pass_signals, target_program_signals): Constify argument.
4681 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
4685 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
4687 * rs6000-tdep.c: Include reggroups.h.
4688 (IS_V_ALIAS_PSEUDOREG): Define.
4689 (rs6000_register_name): Return names for the "vX" aliases.
4690 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
4691 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
4692 aliases. Call default_register_reggroup_p for all other
4694 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
4696 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
4697 Handle "vX" aliases.
4698 (v_alias_pseudo_register_collect): New function.
4699 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
4700 (rs6000_gdbarch_init): Initialize "vX" aliases as
4701 pseudo-registers. Restore registration of
4702 rs6000_pseudo_register_reggroup_p with
4703 set_tdesc_pseudo_register_reggroup_p.
4707 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
4708 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
4709 set_gdbarch_num_pseudo_regs.
4713 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
4714 Remove arg prefixname, add do_set and do_show.
4715 Add member functions set_list and show_list.
4716 * cli/cli-style.c (class cli_style_option): Update accordingly.
4717 (style_set_list): Move to file scope.
4718 (style_show_list): Likewise.
4719 (set_style): Call help_list.
4720 (show_style): Call cmd_show_list.
4721 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
4722 Update to use the new macro.
4726 * ada-lang.c (_initialize_ada_language): Expand the help text
4727 for the "catch exception" command.
4731 * symtab.c (matching_obj_sections): Initialize obj,
4732 declare it closer to its usage.
4736 * thread-iter.h (inf_threads_iterator): Use next_iterator.
4737 (basic_inf_threads_range): Remove.
4738 (inf_threads_range, inf_non_exited_threads_range)
4739 (safe_inf_threads_range): Use next_adapter.
4745 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
4746 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
4752 * dictionary.c (pending_to_vector): Remove.
4753 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4754 Remove _1 suffix, replacing functions of the same name. Update
4756 (dict_create_hashed, dict_create_hashed_expandable)
4757 (dict_create_linear, dict_create_linear_expandable, dict_free)
4758 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
4759 Make functions static.
4765 * dictionary.h (struct dictionary): Replace declaration with
4767 (dict_create_hashed, dict_create_hashed_expandable)
4768 (dict_create_linear, dict_create_linear_expandable)
4769 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
4770 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
4771 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
4772 taking multidictionary argument.
4773 [ALL_DICT_SYMBOLS]: Update for multidictionary.
4774 * block.h (struct block) <dict>: Change to multidictionary
4775 and rename `multidict'.
4776 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
4777 symmisc.c: Update all dictionary references to multidictionary.
4783 * dictionary.c: Include unordered_map.
4784 (pending_to_vector): New function.
4785 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4786 Rewrite the non-"_1" functions to take vector instead
4788 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
4789 "new" _1 versions of the same name.
4790 (multidictionary): Define.
4791 (std::hash<enum language): New definition.
4792 (collate_pending_symbols_by_language, mdict_create_hashed)
4793 (mdict_create_hashed_expandable, mdict_create_linear)
4794 (mdict_create_linear_expandable, mdict_free)
4795 (find_language_dictionary, create_new_language_dictionary)
4796 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
4797 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
4798 (mdict_size, mdict_empty): New functions.
4799 * dictionary.h (mdict_iterator): Define.
4803 * breakpoint.c (read_uploaded_action)
4804 (create_tracepoint_from_upload): Adjust to use
4805 gdb::unique_xmalloc_ptr.
4806 * ctf.c (ctf_write_uploaded_tp):
4807 (SET_ARRAY_FIELD): Use emplace_back.
4808 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
4809 * tracefile-tfile.c (tfile_write_uploaded_tp):
4810 * tracepoint.c (parse_tracepoint_definition): Adjust to use
4811 gdb::unique_xmalloc_ptr.
4812 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
4813 at_string, cond_string, cmd_strings>: Replace char pointers
4814 with gdb::unique_xmalloc_ptr.
4818 * solib-target.c (library_list_start_library): Don't xstrdup name.
4822 * mdebugread.c (parse_partial_symbols): Use
4823 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
4827 * linux-fork.c (scoped_switch_fork_info)
4828 <~scoped_switch_fork_info>: Fix incorrect variable name.
4832 * linux-fork.c (scoped_switch_fork_info)
4833 <scoped_switch_fork_info>: Make explicit.
4834 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
4838 * objfiles.h (objfile::reset_psymtabs): Update.
4839 * objfiles.c (objfile::objfile): Update.
4840 * psymtab.h (psymtab_storage::obstack): Update.
4841 (psymtab_storage::m_obstack): Use gdb::optional.
4842 (class psymtab_storage): Update comment. Remove objfile
4844 * psymtab.c (psymtab_storage::psymtab_storage): Update.
4848 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
4849 <free_psymtabs>: Now private.
4850 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
4851 (allocate_psymtab): Use new method.
4855 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
4856 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
4857 * mdebugread.c (parse_partial_symbols): Use
4858 allocate_dependencies.
4859 * dwarf2read.c (dwarf2_create_include_psymtab): Use
4860 allocate_dependencies.
4861 (process_psymtab_comp_unit_reader)
4862 (build_type_psymtab_dependencies): Likewise.
4863 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
4867 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
4868 PSYMBOL_SET_LANGUAGE.
4869 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
4873 * psymtab.h (psymtab_storage::obstack): New method.
4874 <m_obstack>: Rename from obstack; now private.
4875 * psymtab.c (psymtab_storage): Update.
4876 * dwarf2read.c (create_addrmap_from_index)
4877 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
4882 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
4883 * objfiles.h (objfile::reset_psymtabs): New method.
4887 * symmisc.c (print_symbol_bcache_statistics): Update.
4888 (print_objfile_statistics): Update.
4889 * symfile.c (reread_symbols): Update.
4890 * psymtab.h (class psymtab_storage): New.
4891 * psymtab.c (psymtab_storage): New constructor.
4892 (~psymtab_storage): New destructor.
4893 (require_partial_symbols): Update.
4894 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
4895 (find_pc_sect_psymtab, find_pc_sect_psymbol)
4896 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
4897 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
4898 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
4899 (start_psymtab_common, end_psymtab_common)
4900 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
4901 (allocate_psymtab): Update.
4902 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
4904 (dump_psymtab_addrmap, maintenance_print_psymbols)
4905 (maintenance_check_psymtabs): Update.
4906 (class objfile_psymtabs): Move to objfiles.h.
4907 * psympriv.h (discard_psymtab): Now inline.
4908 (psymtab_discarder::psymtab_discarder): Update.
4909 (psymtab_discarder::~psymtab_discarder): Update.
4910 (ALL_OBJFILE_PSYMTABS): Rewrite.
4911 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
4912 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
4914 <partial_symtabs>: New field.
4915 (class objfile_psymtabs): Move from psymtab.h. Update.
4916 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
4918 (objfile::~objfile): Don't destroy psymbol_cache.
4919 * mdebugread.c (parse_partial_symbols): Update.
4920 * dwarf2read.c (create_addrmap_from_index)
4921 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4922 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
4923 (add_partial_subprogram, dwarf2_ranges_read): Update.
4924 * dwarf-index-write.c (write_address_map)
4925 (write_one_signatured_type, recursively_write_psymbols)
4926 (class debug_names, class debug_names, write_psymtabs_to_index):
4931 * symtab.h (SYMBOL_SET_NAMES): Update.
4932 (symbol_set_names): Update.
4933 (MSYMBOL_SET_NAMES): Update.
4934 * symtab.c (symbol_set_names): Change argument to be an
4935 objfile_per_bfd_storage.
4936 * psymtab.c (add_psymbol_to_bcache): Update.
4937 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
4941 * symtab.c (create_demangled_names_hash): Change argument to be an
4942 objfile_per_bfd_storage.
4943 (symbol_set_names): Update.
4947 * xcoffread.c (xcoff_initial_scan): Unconditionally call
4949 * psymtab.c (init_psymbol_list): Do nothing if already called.
4950 * psympriv.h (init_psymbol_list): Add comment.
4951 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
4953 * dbxread.c (dbx_symfile_read): Unconditionally call
4958 * xcoffread.c (scan_xcoff_symtab): Update.
4959 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
4961 * mdebugread.c (parse_partial_symbols)
4962 (handle_psymbol_enumerators): Update.
4963 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
4964 * dbxread.c (read_dbx_symtab): Update.
4965 * psympriv.h (psymbol_placement): New enum.
4966 (add_psymbol_to_list): Update.
4970 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
4971 static_psymbols parameters.
4972 (scan_xcoff_symtab): Update.
4973 * psymtab.c (start_psymtab_common): Remove global_psymbols and
4974 static_psymbols parameters.
4975 * psympriv.h (start_psymtab_common): Update.
4976 * mdebugread.c (parse_partial_symbols): Update.
4977 * dwarf2read.c (create_partial_symtab): Update.
4978 * dbxread.c (read_dbx_symtab): Update.
4979 (start_psymtab): Remove global_psymbols and static_psymbols
4984 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
4985 * psymtab.c (allocate_psymtab): Add comment.
4986 * psympriv.h (allocate_psymtab): Add comment.
4987 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
4989 * dbxread.c (dbx_end_psymtab): Remove some initializations.
4993 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
4995 * mipsread.c: Include mdebugread.h.
4996 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
4998 * elfread.c: Include mdebugread.h.
5002 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5003 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5004 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5005 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5006 (psym_lookup_symbol, psym_find_last_source_symtab)
5007 (psym_forget_cached_source_info, psym_print_stats)
5008 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5009 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5010 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5011 (psym_find_compunit_symtab_by_address)
5012 (maintenance_print_psymbols, maintenance_info_psymtabs)
5013 (maintenance_check_psymtabs): Use ranged for.
5014 * psymtab.h (class objfile_psymtabs): New.
5015 (require_partial_symbols): Return objfile_psymtabs.
5016 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5020 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5021 (find_pc_mapped_section, list_overlays_command)
5022 (map_overlay_command, unmap_overlay_command)
5023 (simple_overlay_update): Use all_objfiles.
5024 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5025 * printcmd.c (info_symbol_command): Use all_objfiles.
5026 * objfiles.h (ALL_OBJSECTIONS): Remove.
5027 * maint.c (maintenance_translate_address): Use all_objfiles.
5028 * gcore.c (gcore_create_callback): Use all_objfiles.
5029 (objfile_find_memory_regions): Likewise.
5033 * symtab.c (find_line_symtab, info_sources_command)
5034 (make_source_files_completion_list): Use objfile_compunits.
5035 * source.c (select_source_symtab): Use objfile_compunits.
5036 * objfiles.h (struct objfile): Update comment.
5037 (ALL_OBJFILES): Remove.
5038 (ALL_FILETABS): Remove.
5039 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5044 * symmisc.c (print_objfile_statistics, dump_objfile)
5045 (maintenance_print_symbols): Use compunit_filetabs.
5046 * source.c (forget_cached_source_info_for_objfile): Use
5048 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5049 (ALL_FILETABS): Use compunit_filetabs.
5050 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5051 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5055 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5056 (compunit_filetabs): New.
5057 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5059 (info_sources_command, make_source_files_completion_list): Remove
5061 * symmisc.c (print_objfile_statistics, dump_objfile)
5062 (maintenance_print_symbols): Remove declaration.
5063 (maintenance_info_symtabs): Use compunit_filetabs.
5064 (maintenance_info_line_tables): Likewise.
5065 * source.c (select_source_symtab): Change local variable name.
5066 (forget_cached_source_info_for_objfile): Remove declaration.
5067 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5068 * objfiles.c (objfile_relocate1): Remove declaration.
5069 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5071 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5072 * coffread.c (coff_symtab_read): Remove declaration.
5073 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5078 * symtab.c (lookup_objfile_from_block)
5079 (find_pc_sect_compunit_symtab, search_symbols)
5080 (default_collect_symbol_completion_matches_break_on): Use
5082 * objfiles.h (ALL_COMPUNITS): Remove.
5083 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5084 * cp-support.c (add_symbol_overload_list_qualified): Use
5086 * ada-lang.c (ada_collect_symbol_completion_matches)
5087 (ada_add_global_exceptions): Use objfile_compunits.
5091 * source.c (select_source_symtab)
5092 (forget_cached_source_info_for_objfile): Remove declaration.
5093 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5095 * maint.c (count_symtabs_and_blocks): Remove declaration.
5096 * cp-support.c (add_symbol_overload_list_qualified): Remove
5098 * coffread.c (coff_symtab_read): Remove declaration.
5099 * symtab.c (lookup_symbol_in_objfile_symtabs)
5100 (basic_lookup_transparent_type_1): Use objfile_compunits.
5101 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5102 (info_sources_command, search_symbols)
5103 (default_collect_symbol_completion_matches_break_on)
5104 (make_source_files_completion_list): Remove declaration.
5105 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5106 (ada_collect_symbol_completion_matches)
5107 (ada_add_global_exceptions): Remove declaration.
5108 * linespec.c (iterate_over_all_matching_symtabs): Use
5110 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5111 (class objfile_compunits): New.
5112 (ALL_COMPUNITS): Use objfile_compunits.
5113 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5114 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5116 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5120 * symtab.c (search_symbols)
5121 (default_collect_symbol_completion_matches_break_on): Use
5123 * ada-lang.c (ada_lookup_simple_minsym)
5124 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5125 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5126 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5128 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5129 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5130 * objc-lang.c (find_methods): Use objfile_msymbols.
5131 (info_selectors_command, info_classes_command): Likewise.
5132 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5133 * objfiles.h (class objfile_msymbols): New.
5134 (ALL_OBJFILE_MSYMBOLS): Remove.
5135 (ALL_MSYMBOLS): Remove.
5139 * common/next-iterator.h (next_adapter): Add Iterator template
5141 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5142 (class all_objfiles_safe): New.
5143 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5144 * objfiles.c (put_objfile_before): Update comment.
5145 (add_separate_debug_objfile): Likewise.
5146 (free_all_objfiles): Use all_objfiles_safe.
5147 (objfile_purge_solibs): Likewise.
5151 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5152 (expand_symtab_containing_pc, lookup_static_symbol)
5153 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5154 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5156 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5157 * breakpoint.c (create_overlay_event_breakpoint)
5158 (create_longjmp_master_breakpoint)
5159 (create_std_terminate_master_breakpoint)
5160 (create_exception_master_breakpoint): Use all_objfiles.
5161 * linux-thread-db.c (try_thread_db_load_from_pdir)
5162 (has_libpthread): Use all_objfiles.
5163 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5164 * linespec.c (iterate_over_all_matching_symtabs)
5165 (search_minsyms_for_name): Use all_objfiles.
5166 * maint.c (maintenance_info_sections): Use all_objfiles.
5167 * main.c (captured_main_1): Use all_objfiles.
5168 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5169 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5170 * guile/scm-pretty-print.c
5171 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5172 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5173 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5174 (maintenance_print_msymbols): Use all_objfiles.
5175 * source.c (select_source_symtab): Use all_objfiles.
5176 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5177 * symfile.c (remove_symbol_file_command)
5178 (expand_symtabs_matching, map_symbol_filenames): Use
5180 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5182 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5183 * objc-lang.c (find_methods): Use all_objfiles.
5184 * objfiles.c (have_partial_symbols, have_full_symbols)
5185 (have_minimal_symbols, qsort_cmp)
5186 (default_iterate_over_objfiles_in_search_order): Use
5188 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5189 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5190 (maintenance_check_psymtabs): Use all_objfiles.
5191 (ALL_PSYMTABS): Remove.
5192 * compile/compile-object-run.c (do_module_cleanup): Use
5194 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5195 * cp-support.c (add_symbol_overload_list_qualified): Use
5197 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5199 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5200 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5202 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5203 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5204 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5206 * solib.c (solib_read_symbols): Use all_objfiles
5210 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5211 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5213 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5214 * symmisc.c (print_symbol_bcache_statistics)
5215 (print_objfile_statistics, maintenance_print_objfiles)
5216 (maintenance_info_symtabs, maintenance_check_symtabs)
5217 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5219 * source.c (forget_cached_source_info): Use all_objfiles.
5220 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5221 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5222 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5223 * objfiles.c (update_section_map): Use all_objfiles.
5224 (shared_objfile_contains_address_p): Likewise.
5225 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5226 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5230 * common/next-iterator.h: New file.
5231 * objfiles.h (class all_objfiles): New.
5232 (struct objfile_iterator): New.
5236 * NEWS: Move the description of the changed "frame", "select-frame",
5237 and "info frame" commands to the Changed commands section.
5241 * gdbtypes.c (check_stub_method_group): Remove handling of old
5243 * linespec.c (find_methods): Likewise.
5244 * stabsread.c (read_member_functions): Likewise.
5245 * valops.c (search_struct_method): Likewise.
5246 (value_struct_elt_for_reference): Likewise.
5247 * NEWS: Mention this change.
5251 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5253 * source.c (print_source_lines_base): Update line number check.
5254 (print_source_lines): New function.
5255 (source_lines_range::source_lines_range): New function.
5256 * source.h (class source_lines_range): New class.
5257 (print_source_lines): New declaration.
5261 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5267 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5268 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5269 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5270 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5271 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5272 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5276 * source.c (select_source_symtab): Move header comment to
5277 declaration in source.h.
5278 (forget_cached_source_info_for_objfile): Likewise.
5279 (forget_cached_source_info): Likewise.
5280 (identify_source_line): Likewise.
5281 * source.h (identify_source_line): Move declaration from symtab.h
5282 and add comment from source.c
5283 (print_source_lines): Likewise.
5284 (forget_cached_source_info_for_objfile): Likewise.
5285 (forget_cached_source_info): Likewise.
5286 (select_source_symtab): Likewise.
5287 (enum print_source_lines_flag): Move definition from symtab.h.
5288 * symtab.h (identify_source_line): Move declaration to source.h.
5289 (print_source_lines): Likewise.
5290 (forget_cached_source_info_for_objfile): Likewise.
5291 (forget_cached_source_info): Likewise.
5292 (select_source_symtab): Likewise.
5293 (enum print_source_lines_flag): Move definition to source.h.
5294 * tui/tui-hooks.c: Add 'source.h' include.
5298 * source.c (print_source_lines_base): Handle requests to print
5299 reverse line number sequences, and guard against empty lines
5304 * source.c (print_source_lines_base): Fix skip of '\r' if next
5309 * c-exp.y (struct c_parse_state) <macro_original_text,
5310 expansion_obstack>: New member.
5311 (macro_original_text, expansion_obstack): Remove globals.
5312 (scan_macro_expansion, scanning_macro_expansion)
5313 (finished_macro_expansion): Update.
5314 (scan_macro_cleanup): Remove.
5315 (yylex, c_parse): Update.
5319 * c-exp.y (struct c_parse_state) <strings>: New member.
5320 (operator_stoken): Update.
5324 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5325 (union type_stack_elt) <typelist_val>: Now a pointer to
5327 (type_stack_cleanup): Don't declare.
5328 (push_typelist): Update.
5329 * parse.c (pop_typelist): Return a std::vector.
5330 (push_typelist): Take a std::vector.
5331 (follow_types): Update. Do not free args.
5332 (type_stack_cleanup): Remove.
5333 * c-exp.y (struct c_parse_state): New.
5334 (cpstate): New global.
5335 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5336 (nonempty_typelist): Update.
5337 (func_mod): Create a new vector.
5338 (c_parse): Create a c_parse_state.
5339 (check_parameter_typelist): Do not delete params.
5340 (function_method): Update. Do not delete type_list.
5345 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5347 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5348 (print_return_value): Likewise.
5352 * contrib/cleanup_check.py: Remove.
5353 * contrib/gcc-with-excheck: Remove.
5354 * contrib/exsummary.py: Remove.
5355 * contrib/excheck.py: Remove.
5359 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5360 NULL. Initialize tpprev to NULL instead of assigning it
5361 to NULL on the next statement.
5362 * windows-nat.c (windows_delete_thread): Remove check for
5363 main_thread_id before printing thread exit notifications.
5364 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5365 Remove thread ID check against main_thread_id.
5366 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5367 windows_delete_thread.
5368 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5372 * compile/compile.c (_initialize_compile): Use upper case for
5373 metasyntactic variables.
5374 * symmisc.c (_initialize_symmisc): Use upper case for
5375 metasyntactic variables.
5376 * psymtab.c (_initialize_psymtab): Use upper case for
5377 metasyntactic variables.
5378 * demangle.c (demangle_command): Use upper case for metasyntactic
5380 (_initialize_demangler): Likewise.
5381 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5386 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5390 * python/py-symtab.c (salpy_str): Update.
5391 (struct salpy_sal_object) <symtab>: Now a PyObject.
5392 (salpy_dealloc): Update.
5393 (del_objfile_sal): Use gdbpy_ref.
5397 * python/py-type.c (convert_field): Use new_reference. Return
5399 (make_fielditem): Return gdbpy_ref.
5400 (typy_fields): Update.
5401 (typy_getitem): Update.
5402 (field_name): Return gdbpy_ref. Use new_reference.
5403 (typy_iterator_iternext): Update.
5407 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5411 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5412 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5413 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5414 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5415 (pspy_set_type_printers): Likewise.
5416 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5417 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5418 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5419 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5420 (objfpy_set_type_printers): Likewise.
5424 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5425 (gdbpy_print_stack): Use gdbpy_err_fetch.
5426 * python/python-internal.h (class gdbpy_err_fetch): New class.
5427 (class gdbpy_enter) <m_error_type, m_error_value,
5428 m_error_traceback>: Remove.
5429 <m_error>: New member.
5430 (gdbpy_exception_to_string): Don't declare.
5431 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5432 * python/py-value.c (convert_value_from_python): Use
5434 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5435 gdbpy_exception_to_string.
5436 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5437 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5442 * linux-nat.c (delete_lwp_cleanup): Delete.
5443 (struct lwp_deleter): New struct.
5444 (lwp_info_up): New typedef.
5445 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5450 * linux-fork.c (class scoped_switch_fork_info): New class.
5451 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5455 * valops.c (find_overload_match): Remove use of null_cleanup, and
5456 calls to do_cleanups.
5460 * compile/compile-cplus-types.c
5461 (compile_cplus_instance::decl_name): Handle changes to
5463 * cp-support.c (cp_func_name): Update header comment, update
5465 * cp-support.h (cp_func_name): Update return type in declaration.
5466 * valops.c (find_overload_match): Move temp_func local to top
5467 level of function and change its type. Use temp_func to hold and
5468 delete temporary string obtained from cp_func_name.
5472 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5473 gdb::char_vector, remove cleanup, and update uses of `msg`.
5477 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5481 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5482 (tdesc_parse_xml): Remove cleanups.
5483 * target-descriptions.h (make_cleanup_free_target_description):
5485 (target_desc_deleter): New struct.
5486 (target_desc_up): New typedef.
5487 * target-descriptions.c (target_desc_deleter::operator()): Rename
5488 from free_target_description.
5489 (make_cleanup_free_target_description): Remove.
5493 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5494 constructor, destructor.
5495 (linespec_parser): Remove typedef.
5496 (~linespec_parser): Rename from linespec_parser_delete.
5497 (linespec_lex_to_end, linespec_complete_label)
5498 (linespec_complete): Update.
5499 (decode_line_full): Remove cleanups.
5500 (decode_line_1): Update.
5504 * python/python-internal.h (inferior_to_inferior_object): Change
5506 * python/py-exitedevent.c (create_exited_event_object): Update.
5507 * python/py-inferior.c (inferior_to_inferior_object): Return
5509 (python_new_inferior, python_inferior_deleted)
5510 (thread_to_thread_object, delete_thread_object)
5511 (build_inferior_list, gdbpy_selected_inferior): Update.
5512 * python/py-infthread.c (create_thread_object): Update. Also fail
5513 if inferior_to_inferior_object fails.
5517 * inferior.h (class inferior) <displaced_step_state>: New field.
5518 * infrun.h (struct displaced_step_state): Move here from
5519 infrun.c. Initialize fields, add constructor.
5520 <inf>: Remove field.
5521 <reset>: New method.
5522 * infrun.c (struct displaced_step_inferior_state): Move to
5524 (displaced_step_inferior_states): Remove.
5525 (get_displaced_stepping_state): Adust.
5526 (displaced_step_in_progress_any_inferior): Adjust.
5527 (displaced_step_in_progress_thread): Adjust.
5528 (displaced_step_in_progress): Adjust.
5529 (add_displaced_stepping_state): Remove.
5530 (get_displaced_step_closure_by_addr): Adjust.
5531 (remove_displaced_stepping_state): Remove.
5532 (infrun_inferior_exit): Call displaced_step_state.reset.
5533 (use_displaced_stepping): Don't check for NULL.
5534 (displaced_step_prepare_throw): Call
5535 get_displaced_stepping_state.
5536 (displaced_step_fixup): Don't check for NULL.
5537 (prepare_for_detach): Don't check for NULL.
5541 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5542 in case of call that did not complete.
5546 * symfile.c (find_separate_debug_file): Fix search of debug files for
5551 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5553 * python/py-frame.c (frapy_older): Remove cast.
5554 (frapy_newer): Likewise.
5555 * python/py-breakpoint.c (local_setattro): Remove cast.
5556 * python/py-arch.c (archpy_name): Remove local variable.
5557 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5561 * unittests/basic_string_view/element_access/char/empty.cc:
5562 Fix year range in copyright header.
5566 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5568 <operator==>: Update with for removed field.
5570 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5571 <isa_features>: ...this.
5572 <abi_features>: New field.
5573 (riscv_isa_flen): Update comment.
5574 (riscv_abi_xlen): New declaration.
5575 (riscv_abi_flen): New declaration.
5576 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5578 (riscv_abi_xlen): New function.
5579 (riscv_isa_flen): Update to get answer from isa_features.
5580 (riscv_abi_flen): New function.
5581 (riscv_has_fp_abi): Update to get answer from abi_features.
5582 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5584 (riscv_call_info) <xlen, flen>: Update comment.
5585 (riscv_call_arg_struct): Remove invalid assertions
5586 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5588 (riscv_gdbarch_init): Gather isa features and abi features
5589 separately, ensure both match on the gdbarch when reusing an old
5590 gdbarch. Relax an error check to allow 32-bit abi float to run on
5591 a target with 64-bit float hardware.
5595 * source.c (search_command_helper): Stop reverse search
5596 when line 1 has been searched.
5600 * record-full.c (record_full_base_target::close): Rewrite
5601 record_full_core_buf_list free logic.
5605 * break-catch-syscall.c (print_one_catch_syscall): xfree
5610 * top.c (print_gdb_version): Update Copyright year in version
5615 Update copyright year range in all GDB files.
5619 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
5621 For older changes see ChangeLog-2018.
5627 version-control: never