3 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
5 (enum aarch64_memory_operand_type): New.
9 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
13 * ada-lang.c (ada_enum_name): Constify local.
14 * ada-typeprint.c (print_range_bound): Constify locals.
15 * c-varobj.c (c_describe_child): Likewise.
16 * cli/cli-setshow.c (do_set_command): Likewise.
17 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
18 * dwarf2read.c (find_file_and_directory): Likewise.
19 (anonymous_struct_prefix, dwarf2_name): Likewise.
20 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
21 * go-lang.c (unpack_mangled_go_symbol): Likewise.
22 * jv-typeprint.c (java_type_print_base): Likewise.
23 * ser-tcp.c (net_open): Likewise.
24 * symfile.c (deduce_language_from_filename): Likewise.
25 * symtab.c (gdb_mangle_name): Likewise.
26 * tui/tui-io.c (tui_redisplay_readline): Likewise.
30 * infrun.c (restore_execution_direction): New function.
31 (fetch_inferior_event): Use it instead of
32 make_cleanup_restore_integer.
33 (execution_direction): Change type to enum
35 * infrun.h (execution_direction): Likewise.
39 * ada-lang.c (ada_value_primitive_packed_val): Constify
40 locals. Use value_contents_writeable. Remove casts.
44 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
49 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
50 write_memory with write_memory_unsigned_integer.
54 * solib-dsbt.c (cmp_name): Constify arguments.
55 * solib-frv.c (cmp_name): Likewise.
56 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
57 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
58 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
59 (gdb_bfd_lookup_symbol): Likewise.
60 * solib.h (gdb_bfd_lookup_symbol): Likewise.
61 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
65 * stack.c (parse_frame_specification): Remove message parameter,
66 replace with fixed string in function body, update function
68 (frame_info): Remove message to parse_frame_specification.
69 (select_frame_command): Likewise.
73 * stack.c (parse_frame_specification): Delete.
74 (parse_frame_specification_1): Rename to
75 parse_frame_specification.
76 (frame_info): Use parse_frame_specification.
77 (select_frame_command): Likewise.
78 (return_command): Use select_frame and print_stack_frame rather
79 than frame_command and select_frame_command.
80 (func_command): Use get_current_frame rather than
81 parse_frame_specification.
85 * stack.c (func_command): Return early when there is no ARG
90 * stack.c: Include safe-ctype.h not ctype.h.
91 (parse_frame_specification): Use ISSPACE not isspace.
92 (backtrace_command): Use TOLOWER not tolower.
96 * mep-tdep.c (current_me_module): Add cast.
97 (mep_gdbarch_init): Likewise.
101 * m32c-tdep.c (m32c_move_reg_t): Replace with...
102 (m32c_write_reg_t): ...this and...
103 (m32c_read_reg_t): ...this.
104 (struct m32c_reg): Update types of read and write.
105 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
107 (m32c_banked_read): Likewise.
108 (m32c_sb_read): Likewise.
109 (m32c_part_read): Likewise.
110 (m32c_cat_read): Likewise.
111 (m32c_r3r2r1r0_read): Likewise.
112 (m32c_raw_write): Change declaration type to m32c_write_reg_t
113 and adjust definition.
114 (m32c_banked_write): Likewise.
115 (m32c_sb_write): Likewise.
116 (m32c_part_write): Likewise.
117 (m32c_cat_write): Likewise.
118 (m32c_r3r2r1r0_write): Likewise.
122 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
126 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
127 gdb_sys_no_syscall instead of -1.
131 * NEWS: Mention the change.
135 * arch/aarch64-insn.c (emit_load_store): Rename to ...
136 (aarch64_emit_load_store): ... it. All callers updated.
140 * arch/aarch64-insn.c (emit_insn): Rename to ...
141 (aarch64_emit_insn): ... it. All callers updated.
145 * aarch64-linux-tdep.c: Include arch-utils.h.
146 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
147 set_gdbarch_displaced_step_copy_insn,
148 set_gdbarch_displaced_step_fixup,
149 set_gdbarch_displaced_step_free_closure,
150 set_gdbarch_displaced_step_location,
151 and set_gdbarch_displaced_step_hw_singlestep.
152 * aarch64-tdep.c (struct displaced_step_closure): New.
153 (struct aarch64_displaced_step_data): New.
154 (aarch64_displaced_step_b): New function.
155 (aarch64_displaced_step_b_cond): Likewise.
156 (aarch64_register): Likewise.
157 (aarch64_displaced_step_cb): Likewise.
158 (aarch64_displaced_step_tb): Likewise.
159 (aarch64_displaced_step_adr): Likewise.
160 (aarch64_displaced_step_ldr_literal): Likewise.
161 (aarch64_displaced_step_others): Likewise.
162 (aarch64_displaced_step_copy_insn): Likewise.
163 (aarch64_displaced_step_fixup): Likewise.
164 (aarch64_displaced_step_hw_singlestep): Likewise.
165 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
166 (aarch64_displaced_step_copy_insn): Declare.
167 (aarch64_displaced_step_fixup): Declare.
168 (aarch64_displaced_step_hw_singlestep): Declare.
169 * arch/aarch64-insn.c (emit_insn): Moved from
170 gdbserver/linux-aarch64-low.c.
171 (emit_load_store): Likewise.
172 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
173 gdbserver/linux-aarch64-low.c.
174 (struct aarch64_register): Likewise.
175 (struct aarch64_memory_operand): Likewise.
177 (can_encode_int32): New macro.
178 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
179 (emit_tb, emit_nop): Likewise.
180 (emit_insn): Declare.
181 (emit_load_store): Declare.
185 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
186 gdbserver/linux-aarch64-low.c.
187 (aarch64_relocate_instruction): Likewise.
188 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
189 (struct aarch64_insn_data): Moved from
190 gdbserver/linux-aarch64-low.c.
191 (struct aarch64_insn_visitor): Likewise.
192 (aarch64_relocate_instruction): Declare.
196 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
197 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
198 to the returned value.
202 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
203 is large enough for BIT_SIZE. Update function comment.
207 * ada-lang.c (ada_value_primitive_packed_val): Move
208 src_len variable to local block where used. Override
209 BIT_SIZE if bigger than size of resolved type.
213 * gdbtypes.h (is_scalar_type): Add extern declaration.
214 * gdbtypes.c (is_scalar_type): Make non-static.
215 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
216 to compute IS_SCALAR instead of doing it ourselves.
220 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
221 of case where TYPE is dynamic.
225 * ada-lang.c (ada_unpack_from_contents): New function,
226 extracted from ada_value_primitive_packed_val.
227 (ada_value_primitive_packed_val): Replace extracted out code
228 by call to ada_unpack_from_contents.
232 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
233 variable declarations.
237 * ada-lang.c (ada_value_primitive_packed_val): Change the type
238 of local variables src and unpacked to "gdb_type *" instead of
243 * ada-lang.c (ada_value_primitive_packed_val): Make the name
244 of various local variables more explicit and consistent.
245 No real code change otherwise.
249 * i386-tdep.h (struct gdbarch_tdep): Change type of
250 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
254 * cris-tdep.c (struct instruction_environment): Change type of
255 byte_order to enum bfd_endian.
259 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
260 enum gdb_syscall casts.
264 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
265 * arm-tdep.c (struct stack_item): Likewise.
266 (push_stack_item): Add gdb_byte* cast.
267 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
268 (push_stack_item): Add gdb_byte* cast.
269 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
271 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
272 (push_stack_item): Add gdb_byte* cast.
273 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
275 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
277 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
278 gdb_byte* and remove unnecessary cast.
279 (h8300h_extract_return_value): Likewise.
280 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
281 (h8300h_store_return_value): Likewise.
282 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
283 gdb_byte* and remove unnecessary cast.
284 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
286 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
287 gdb_byte* and remove unnecessary cast.
288 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
290 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
291 (mep_pseudo_cr64_read): Likewise.
292 (mep_pseudo_csr_write): Likewise.
293 (mep_pseudo_cr32_write): Likewise.
294 (mep_pseudo_cr64_write): Likewise.
295 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
296 gdb_byte* and add cast.
297 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
298 gdb_byte* and remove unnecessary cast.
299 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
301 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
303 * printcmd.c (void): Likewise.
304 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
305 gdb_byte* and add cast.
306 (infpy_write_memory): Likewise.
307 (infpy_search_memory): Likewise.
308 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
310 (regcache_raw_write_unsigned): Likewise.
311 (regcache_cooked_write_signed): Likewise.
312 (regcache_cooked_write_unsigned): Likewise.
313 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
318 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
319 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
323 * stack.c (print_stack_frame):
324 * utils.c (printchar): Fix typos in commentary.
328 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
329 (PostfixExpression): Support `expr.sizeof' expressions.
330 (PrimaryExpression): Support `typeof(expr)' expressions.
334 * MAINTAINERS: Update my email address.
338 * record-btrace.c (record_btrace_resume): Fix void return.
342 * aarch64-tdep.c: Include opcode/aarch64.h.
343 (submask): Move it above.
346 (aarch64_software_single_step): Call aarch64_decode_insn.
347 Decode instruction by aarch64_inst instead of using
348 aarch64_decode_bcond and decode_masked_match.
352 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
353 only when the file is binary.
357 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
362 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
366 * dwarf2read.c (setup_type_unit_groups): Add comment.
370 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
371 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
372 (x86_linux_create_target): Don't install
373 x86_linux_always_non_stop_p.
377 * remote.c (remote_parse_stop_reply): Call strprefix instead
382 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
383 * gdbarch.h: Regenerate.
384 * i386-tdep.c (i386_gdbarch_init): Remove cast to
385 struct gdbarch_tdep_info *.
386 * mips-tdep.c (mips_gdbarch_init): Likewise.
387 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
388 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
389 * spu-multiarch.c (spu_gdbarch): Likewise.
393 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
398 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
399 and union arguments the same as pointer arguments when determining
404 * ft32-tdep.c: #include "opcode/ft32.h".
405 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
406 (ft32_analyze_prologue): Use FT32_* macros.
410 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
415 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
419 * common/filestuff.c (make_cleanup_close): Update comment.
423 * btrace.c (parse_xml_btrace_block): Fix cast of
424 xml_find_attribute's return value.
425 * memory-map.c (memory_map_start_memory): Likewise.
426 * solib-svr4.c (library_list_start_library): Likewise.
427 * solib-target.c (library_list_start_segment): Likewise.
428 (library_list_start_section): Likewise.
429 * tracepoint.c (traceframe_info_start_memory): Likewise.
433 * d-namespace.c (d_lookup_symbol): New arg langdef.
434 All callers updated. Support looking up symbol as a primitive type.
435 (lookup_module_scope): New arg langdef. All callers updated.
436 Call d_lookup_symbol directly for simple bare symbols.
440 * macrocmd.c (print_macro_callback): Add cast(s).
441 * macrotab.c (macro_bcache_str): Likewise.
442 (new_macro_definition): Likewise.
443 * main.c (captured_main): Likewise.
444 * maint.c (print_bfd_section_info): Likewise.
445 * mdebugread.c (mdebug_build_psymtabs): Likewise.
446 (basic_type): Likewise.
447 * memattr.c (mem_region_cmp): Likewise.
448 * memory-map.c (memory_map_start_memory): Likewise.
449 (memory_map_end_memory): Likewise.
450 (memory_map_start_property): Likewise.
451 (memory_map_end_property): Likewise.
452 (clear_result): Likewise.
453 * memrange.c (compare_mem_ranges): Likewise.
454 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
455 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
456 * mi/mi-console.c (mi_console_file_delete): Likewise.
457 (mi_console_file_fputs): Likewise.
458 (mi_console_raw_packet): Likewise.
459 (mi_console_file_flush): Likewise.
460 (mi_console_set_raw): Likewise.
461 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
462 (mi_new_thread): Likewise.
463 (mi_thread_exit): Likewise.
464 (mi_record_changed): Likewise.
465 (mi_inferior_added): Likewise.
466 (mi_inferior_appeared): Likewise.
467 (mi_inferior_exit): Likewise.
468 (mi_inferior_removed): Likewise.
469 (mi_interp_data): Likewise.
470 (mi_on_normal_stop): Likewise.
471 (mi_traceframe_changed): Likewise.
472 (mi_tsv_created): Likewise.
473 (mi_tsv_deleted): Likewise.
474 (mi_tsv_modified): Likewise.
475 (mi_breakpoint_created): Likewise.
476 (mi_breakpoint_deleted): Likewise.
477 (mi_breakpoint_modified): Likewise.
478 (mi_output_running_pid): Likewise.
479 (mi_inferior_count): Likewise.
480 (mi_solib_loaded): Likewise.
481 (mi_solib_unloaded): Likewise.
482 (mi_command_param_changed): Likewise.
483 (mi_memory_changed): Likewise.
484 (report_initial_inferior): Likewise.
485 (mi_ui_out): Likewise.
486 (mi_set_logging): Likewise.
487 * mi/mi-main.c (collect_cores): Likewise.
488 (print_one_inferior): Likewise.
489 (free_vector_of_ints): Likewise.
490 (free_splay_tree): Likewise.
491 (mi_execute_command): Likewise.
492 * mi/mi-out.c (mi_table_body): Likewise.
493 (mi_table_end): Likewise.
494 (mi_table_header): Likewise.
495 (mi_begin): Likewise.
497 (mi_field_int): Likewise.
498 (mi_field_string): Likewise.
499 (mi_field_fmt): Likewise.
500 (mi_flush): Likewise.
501 (mi_redirect): Likewise.
502 (field_separator): Likewise.
504 (mi_close): Likewise.
505 (mi_out_buffered): Likewise.
506 (mi_out_rewind): Likewise.
507 (mi_out_put): Likewise.
508 (mi_version): Likewise.
509 (mi_out_data_dtor): Likewise.
510 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
511 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
512 * minidebug.c (lzma_open): Likewise.
513 (lzma_pread): Likewise.
514 (lzma_close): Likewise.
515 (lzma_stat): Likewise.
516 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
517 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
518 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
519 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
520 (mips_micro_frame_cache): Likewise.
521 (mips_insn32_frame_cache): Likewise.
522 (mips_stub_frame_cache): Likewise.
523 (gdb_print_insn_mips): Likewise.
524 (value_of_mips_user_reg): Likewise.
525 (mips_gdbarch_init): Likewise.
526 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
527 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
528 (mipsnbsd_supply_gregset): Likewise.
529 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
530 (am33_collect_gregset_method): Likewise.
531 (am33_collect_fpregset_method): Likewise.
532 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
533 * moxie-tdep.c (moxie_frame_cache): Likewise.
534 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
535 (msp430_analyze_frame_prologue): Likewise.
536 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
537 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
538 (nios2_collect_gregset): Likewise.
539 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
540 (nios2_stub_frame_cache): Likewise.
541 * objc-lang.c (find_methods): Likewise.
542 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
543 (get_objfile_pspace_data): Likewise.
544 (get_objfile_bfd_data): Likewise.
545 (objfile_bfd_data_free): Likewise.
546 (add_to_objfile_sections): Likewise.
547 (do_free_objfile_cleanup): Likewise.
548 (resume_section_map_updates_cleanup): Likewise.
549 * opencl-lang.c (builtin_opencl_type): Likewise.
550 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
551 * osdata.c (osdata_start_osdata): Likewise.
552 (osdata_start_item): Likewise.
553 (osdata_start_column): Likewise.
554 (osdata_end_column): Likewise.
555 (clear_parsing_data): Likewise.
556 (osdata_free_cleanup): Likewise.
557 * parse.c (type_stack_cleanup): Likewise.
558 (exp_uses_objfile_iter): Likewise.
559 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
560 (ppc_linux_collect_gregset): Likewise.
561 (ppu2spu_prev_arch): Likewise.
562 (ppu2spu_this_id): Likewise.
563 (ppu2spu_prev_register): Likewise.
564 (ppu2spu_unwind_register): Likewise.
565 (ppu2spu_sniffer): Likewise.
566 (ppu2spu_dealloc_cache): Likewise.
567 (ppc_linux_init_abi): Likewise.
568 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
569 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
570 * progspace.c (restore_program_space): Likewise.
571 * psymtab.c (find_pc_sect_psymtab): Likewise.
572 (compare_psymbols): Likewise.
573 (psymbol_bcache_full): Likewise.
574 (allocate_psymtab): Likewise.
575 (discard_psymtabs_upto): Likewise.
576 * python/py-block.c (set_block): Likewise.
577 (del_objfile_blocks): Likewise.
578 * python/py-breakpoint.c (build_bp_list): Likewise.
579 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
580 (build_inferior_list): Likewise.
581 (py_free_inferior): Likewise.
582 * python/py-objfile.c (py_free_objfile): Likewise.
583 (objfile_to_objfile_object): Likewise.
584 * python/py-prettyprint.c (py_restore_tstate): Likewise.
585 * python/py-progspace.c (py_free_pspace): Likewise.
586 (pspace_to_pspace_object): Likewise.
587 * python/py-symbol.c (set_symbol): Likewise.
588 (del_objfile_symbols): Likewise.
589 * python/py-symtab.c (set_sal): Likewise.
590 (set_symtab): Likewise.
591 (del_objfile_symtab): Likewise.
592 (del_objfile_sal): Likewise.
593 * python/py-type.c (save_objfile_types): Likewise.
594 (set_type): Likewise.
595 * python/py-unwind.c (pyuw_prev_register): Likewise.
596 (pyuw_on_new_gdbarch): Likewise.
597 * python/py-utils.c (py_decref): Likewise.
598 (py_xdecref): Likewise.
599 (gdb_py_generic_dict): Likewise.
600 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
601 (gdbpy_clone_xmethod_worker_data): Likewise.
602 (gdbpy_get_xmethod_arg_types): Likewise.
603 (gdbpy_get_xmethod_result_type): Likewise.
604 (gdbpy_invoke_xmethod): Likewise.
605 * python/python.c (gdbpy_apply_type_printers): Likewise.
606 (gdbpy_free_type_printers): Likewise.
607 * record-btrace.c (record_btrace_disable_callback): Likewise.
608 (bfcache_hash): Likewise.
609 (bfcache_eq): Likewise.
610 (btrace_get_frame_function): Likewise.
611 (record_btrace_frame_unwind_stop_reason): Likewise.
612 (record_btrace_frame_this_id): Likewise.
613 (record_btrace_frame_prev_register): Likewise.
614 (record_btrace_frame_dealloc_cache): Likewise.
615 * record-full.c (record_full_message_wrapper): Likewise.
616 (record_full_save_cleanups): Likewise.
617 * regcache.c (regcache_descr): Likewise.
618 (do_regcache_xfree): Likewise.
619 (do_regcache_invalidate): Likewise.
620 (do_cooked_read): Likewise.
621 (regcache_transfer_regset): Likewise.
622 * reggroups.c (reggroup_add): Likewise.
623 (reggroup_next): Likewise.
624 (reggroup_prev): Likewise.
625 * remote-fileio.c (do_remote_fileio_request): Likewise.
626 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
627 (do_notif_event_xfree): Likewise.
628 * remote.c (get_remote_arch_state): Likewise.
629 (remote_pspace_data_cleanup): Likewise.
630 (get_remote_exec_file): Likewise.
631 (set_pspace_remote_exec_file): Likewise.
632 (compare_pnums): Likewise.
633 (clear_threads_listing_context): Likewise.
634 (remote_newthread_step): Likewise.
635 (start_thread): Likewise.
636 (end_thread): Likewise.
637 (remove_child_of_pending_fork): Likewise.
638 (remove_stop_reply_for_inferior): Likewise.
639 (remove_stop_reply_of_remote_state): Likewise.
640 (remote_notif_remove_once_on_match): Likewise.
641 (stop_reply_match_ptid_and_ws): Likewise.
642 (kill_child_of_pending_fork): Likewise.
643 (register_remote_g_packet_guess): Likewise.
644 (remote_read_description_p): Likewise.
645 (remote_read_description): Likewise.
646 (free_actions_list_cleanup_wrapper): Likewise.
647 (remote_async_serial_handler): Likewise.
648 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
649 (rl78_analyze_frame_prologue): Likewise.
650 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
651 (ppc_supply_fpregset): Likewise.
652 (ppc_supply_vsxregset): Likewise.
653 (ppc_supply_vrregset): Likewise.
654 (ppc_collect_gregset): Likewise.
655 (ppc_collect_fpregset): Likewise.
656 (ppc_collect_vsxregset): Likewise.
657 (ppc_collect_vrregset): Likewise.
658 (e500_move_ev_register): Likewise.
659 (do_regcache_raw_write): Likewise.
660 (rs6000_frame_cache): Likewise.
661 (rs6000_epilogue_frame_cache): Likewise.
662 (rs6000_gdbarch_init): Likewise.
663 * rx-tdep.c (rx_get_opcode_byte): Likewise.
664 (rx_analyze_frame_prologue): Likewise.
665 (rx_frame_type): Likewise.
666 (rx_frame_sniffer_common): Likewise.
667 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
668 (s390_frame_unwind_cache): Likewise.
669 (s390_stub_frame_unwind_cache): Likewise.
670 (s390_sigtramp_frame_unwind_cache): Likewise.
671 * score-tdep.c (score_make_prologue_cache): Likewise.
672 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
673 (sentinel_frame_prev_arch): Likewise.
674 * ser-base.c (fd_event): Likewise.
675 (push_event): Likewise.
676 (ser_base_write): Likewise.
677 * ser-pipe.c (pipe_close): Likewise.
678 * serial.c (serial_write): Likewise.
679 * sh-tdep.c (sh_frame_cache): Likewise.
680 (sh_stub_this_id): Likewise.
681 * sh64-tdep.c (sh64_frame_cache): Likewise.
682 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
683 (library_list_start_library): Likewise.
684 (library_list_start_list): Likewise.
685 (solib_aix_free_library_list): Likewise.
686 * solib-darwin.c (get_darwin_info): Likewise.
687 * solib-dsbt.c (get_dsbt_info): Likewise.
688 * solib-spu.c (append_ocl_sos): Likewise.
689 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
690 (get_svr4_info): Likewise.
691 (library_list_start_library): Likewise.
692 (svr4_library_list_start_list): Likewise.
693 (hash_probe_and_action): Likewise.
694 (equal_probe_and_action): Likewise.
695 (svr4_update_solib_event_breakpoint): Likewise.
696 (set_solib_svr4_fetch_link_map_offsets): Likewise.
697 (svr4_fetch_link_map_offsets): Likewise.
698 (svr4_have_link_map_offsets): Likewise.
699 * solib-target.c (library_list_start_segment): Likewise.
700 (library_list_start_section): Likewise.
701 (library_list_start_library): Likewise.
702 (library_list_end_library): Likewise.
703 (library_list_start_list): Likewise.
704 (solib_target_free_library_list): Likewise.
705 * solib.c (solib_ops): Likewise.
706 (set_solib_ops): Likewise.
707 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
708 * sparc-tdep.c (sparc_frame_cache): Likewise.
709 (sparc32_frame_cache): Likewise.
710 (sparc32_supply_gregset): Likewise.
711 (sparc32_collect_gregset): Likewise.
712 (sparc32_supply_fpregset): Likewise.
713 (sparc32_collect_fpregset): Likewise.
714 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
715 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
716 (sparc64_collect_gregset): Likewise.
717 (sparc64_supply_fpregset): Likewise.
718 (sparc64_collect_fpregset): Likewise.
719 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
720 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
721 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
722 (sparc64obsd_trapframe_cache): Likewise.
723 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
724 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
725 * spu-multiarch.c (spu_gdbarch): Likewise.
726 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
727 (spu2ppu_prev_arch): Likewise.
728 (spu2ppu_this_id): Likewise.
729 (spu2ppu_prev_register): Likewise.
730 (spu2ppu_dealloc_cache): Likewise.
731 (spu_dis_asm_print_address): Likewise.
732 (gdb_print_insn_spu): Likewise.
733 (spu_get_overlay_table): Likewise.
734 * stabsread.c (rs6000_builtin_type): Likewise.
735 * stack.c (do_print_variable_and_value): Likewise.
736 * stap-probe.c (get_stap_base_address_1): Likewise.
737 * symfile-debug.c (debug_qf_has_symbols): Likewise.
738 (debug_qf_find_last_source_symtab): Likewise.
739 (debug_qf_forget_cached_source_info): Likewise.
740 (debug_qf_map_symtabs_matching_filename): Likewise.
741 (debug_qf_lookup_symbol): Likewise.
742 (debug_qf_print_stats): Likewise.
743 (debug_qf_dump): Likewise.
744 (debug_qf_relocate): Likewise.
745 (debug_qf_expand_symtabs_for_function): Likewise.
746 (debug_qf_expand_all_symtabs): Likewise.
747 (debug_qf_expand_symtabs_with_fullname): Likewise.
748 (debug_qf_map_matching_symbols): Likewise.
749 (debug_qf_expand_symtabs_matching): Likewise.
750 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
751 (debug_qf_map_symbol_filenames): Likewise.
752 (debug_sym_get_probes): Likewise.
753 (debug_sym_new_init): Likewise.
754 (debug_sym_init): Likewise.
755 (debug_sym_read): Likewise.
756 (debug_sym_read_psymbols): Likewise.
757 (debug_sym_finish): Likewise.
758 (debug_sym_offsets): Likewise.
759 (debug_sym_read_linetable): Likewise.
760 (debug_sym_relocate): Likewise.
761 (uninstall_symfile_debug_logging): Likewise.
762 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
763 * symfile.c (place_section): Likewise.
764 (add_section_size_callback): Likewise.
765 (load_progress): Likewise.
766 (load_section_callback): Likewise.
767 (clear_memory_write_data): Likewise.
768 (allocate_symtab): Likewise.
769 * symmisc.c (maintenance_expand_file_matcher): Likewise.
770 * symtab.c (lookup_symtab_callback): Likewise.
771 (hash_demangled_name_entry): Likewise.
772 (eq_demangled_name_entry): Likewise.
773 (get_symbol_cache): Likewise.
774 (symbol_cache_cleanup): Likewise.
775 (set_symbol_cache_size): Likewise.
776 (symbol_cache_flush): Likewise.
777 (maintenance_print_symbol_cache): Likewise.
778 (maintenance_print_symbol_cache_statistics): Likewise.
779 (delete_filename_seen_cache): Likewise.
780 (output_partial_symbol_filename): Likewise.
781 (search_symbols_file_matches): Likewise.
782 (search_symbols_name_matches): Likewise.
783 (do_free_completion_list): Likewise.
784 (maybe_add_partial_symtab_filename): Likewise.
785 (get_main_info): Likewise.
786 (main_info_cleanup): Likewise.
787 * target-dcache.c (target_dcache_cleanup): Likewise.
788 (target_dcache_init_p): Likewise.
789 (target_dcache_invalidate): Likewise.
790 (target_dcache_get): Likewise.
791 (target_dcache_get_or_init): Likewise.
792 * target-descriptions.c (target_find_description): Likewise.
793 (tdesc_find_type): Likewise.
794 (tdesc_data_cleanup): Likewise.
795 (tdesc_find_arch_register): Likewise.
796 (tdesc_register_name): Likewise.
797 (tdesc_register_type): Likewise.
798 (tdesc_register_reggroup_p): Likewise.
799 (set_tdesc_pseudo_register_name): Likewise.
800 (set_tdesc_pseudo_register_type): Likewise.
801 (set_tdesc_pseudo_register_reggroup_p): Likewise.
802 (tdesc_use_registers): Likewise.
803 (free_target_description): Likewise.
804 * target-memory.c (compare_block_starting_address): Likewise.
805 (cleanup_request_data): Likewise.
806 (cleanup_write_requests_vector): Likewise.
807 * target.c (open_target): Likewise.
808 (cleanup_restore_target_terminal): Likewise.
809 (free_memory_read_result_vector): Likewise.
810 * thread.c (disable_thread_stack_temporaries): Likewise.
811 (finish_thread_state_cleanup): Likewise.
812 (do_restore_current_thread_cleanup): Likewise.
813 (restore_current_thread_cleanup_dtor): Likewise.
814 (set_thread_refcount): Likewise.
815 (tp_array_compar): Likewise.
816 (do_captured_thread_select): Likewise.
817 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
818 (tic6x_stub_this_id): Likewise.
819 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
820 * top.c (do_restore_instream_cleanup): Likewise.
821 (gdb_readline_wrapper_cleanup): Likewise.
822 (kill_or_detach): Likewise.
823 (print_inferior_quit_action): Likewise.
824 * tracefile-tfile.c (match_blocktype): Likewise.
825 (build_traceframe_info): Likewise.
826 * tracefile.c (trace_file_writer_xfree): Likewise.
827 * tracepoint.c (memrange_cmp): Likewise.
828 (do_collect_symbol): Likewise.
829 (do_clear_collection_list): Likewise.
830 (do_restore_current_traceframe_cleanup): Likewise.
831 (restore_current_traceframe_cleanup_dtor): Likewise.
832 (free_current_marker): Likewise.
833 (traceframe_info_start_memory): Likewise.
834 (traceframe_info_start_tvar): Likewise.
835 (free_result): Likewise.
836 * tramp-frame.c (tramp_frame_cache): Likewise.
837 * tui/tui-file.c (tui_file_delete): Likewise.
838 (tui_fileopen): Likewise.
839 (tui_sfileopen): Likewise.
840 (tui_file_isatty): Likewise.
841 (tui_file_rewind): Likewise.
842 (tui_file_put): Likewise.
843 (tui_file_fputs): Likewise.
844 (tui_file_get_strbuf): Likewise.
845 (tui_file_adjust_strbuf): Likewise.
846 (tui_file_flush): Likewise.
847 * tui/tui-layout.c (make_command_window): Likewise.
848 (make_data_window): Likewise.
849 (show_source_disasm_command): Likewise.
850 (show_data): Likewise.
851 (make_source_or_disasm_window): Likewise.
852 (show_source_or_disasm_and_command): Likewise.
853 * tui/tui-out.c (tui_field_int): Likewise.
854 (tui_field_string): Likewise.
855 (tui_field_fmt): Likewise.
856 (tui_text): Likewise.
857 * typeprint.c (hash_typedef_field): Likewise.
858 (eq_typedef_field): Likewise.
859 (do_free_typedef_hash): Likewise.
860 (copy_typedef_hash_element): Likewise.
861 (do_free_global_table): Likewise.
862 (find_global_typedef): Likewise.
863 (find_typedef_in_hash): Likewise.
864 * ui-file.c (ui_file_write_for_put): Likewise.
865 (do_ui_file_xstrdup): Likewise.
866 (mem_file_delete): Likewise.
867 (mem_file_rewind): Likewise.
868 (mem_file_put): Likewise.
869 (mem_file_write): Likewise.
870 (stdio_file_delete): Likewise.
871 (stdio_file_flush): Likewise.
872 (stdio_file_read): Likewise.
873 (stdio_file_write): Likewise.
874 (stdio_file_write_async_safe): Likewise.
875 (stdio_file_fputs): Likewise.
876 (stdio_file_isatty): Likewise.
877 (stdio_file_fseek): Likewise.
878 (tee_file_delete): Likewise.
879 (tee_file_flush): Likewise.
880 (tee_file_write): Likewise.
881 (tee_file_fputs): Likewise.
882 (tee_file_isatty): Likewise.
883 * ui-out.c (do_cleanup_table_end): Likewise.
884 (do_cleanup_end): Likewise.
885 * user-regs.c (user_reg_add): Likewise.
886 (user_reg_map_name_to_regnum): Likewise.
887 (usernum_to_user_reg): Likewise.
888 (maintenance_print_user_registers): Likewise.
889 * utils.c (do_bfd_close_cleanup): Likewise.
890 (do_fclose_cleanup): Likewise.
891 (do_obstack_free): Likewise.
892 (do_ui_file_delete): Likewise.
893 (do_ui_out_redirect_pop): Likewise.
894 (do_free_section_addr_info): Likewise.
895 (restore_integer): Likewise.
896 (do_unpush_target): Likewise.
897 (do_htab_delete_cleanup): Likewise.
898 (do_restore_ui_file): Likewise.
899 (do_value_free): Likewise.
900 (do_free_so): Likewise.
901 (free_current_contents): Likewise.
902 (do_regfree_cleanup): Likewise.
903 (core_addr_hash): Likewise.
904 (core_addr_eq): Likewise.
905 (do_free_char_ptr_vec): Likewise.
906 * v850-tdep.c (v850_frame_cache): Likewise.
907 * varobj.c (do_free_variable_cleanup): Likewise.
908 * vax-tdep.c (vax_supply_gregset): Likewise.
909 (vax_frame_cache): Likewise.
910 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
911 * xml-support.c (gdb_xml_body_text): Likewise.
912 (gdb_xml_values_cleanup): Likewise.
913 (gdb_xml_start_element): Likewise.
914 (gdb_xml_start_element_wrapper): Likewise.
915 (gdb_xml_end_element): Likewise.
916 (gdb_xml_end_element_wrapper): Likewise.
917 (gdb_xml_cleanup): Likewise.
918 (gdb_xml_fetch_external_entity): Likewise.
919 (gdb_xml_parse_attr_enum): Likewise.
920 (xinclude_start_include): Likewise.
921 (xinclude_end_include): Likewise.
922 (xml_xinclude_default): Likewise.
923 (xml_xinclude_start_doctype): Likewise.
924 (xml_xinclude_end_doctype): Likewise.
925 (xml_xinclude_cleanup): Likewise.
926 (xml_fetch_content_from_file): Likewise.
927 * xml-syscall.c (free_syscalls_info): Likewise.
928 (syscall_start_syscall): Likewise.
929 * xml-tdesc.c (tdesc_end_arch): Likewise.
930 (tdesc_end_osabi): Likewise.
931 (tdesc_end_compatible): Likewise.
932 (tdesc_start_target): Likewise.
933 (tdesc_start_feature): Likewise.
934 (tdesc_start_reg): Likewise.
935 (tdesc_start_union): Likewise.
936 (tdesc_start_struct): Likewise.
937 (tdesc_start_flags): Likewise.
938 (tdesc_start_field): Likewise.
939 (tdesc_start_vector): Likewise.
940 (fetch_available_features_from_target): Likewise.
941 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
942 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
943 (xtensa_frame_cache): Likewise.
944 (xtensa_frame_prev_register): Likewise.
945 (xtensa_extract_return_value): Likewise.
949 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
950 (aarch64_make_stub_cache): Likewise.
951 (value_of_aarch64_user_reg): Likewise.
952 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
953 (get_ada_inferior_data): Likewise.
954 (get_ada_pspace_data): Likewise.
955 (ada_pspace_data_cleanup): Likewise.
956 (ada_complete_symbol_matcher): Likewise.
957 (ada_exc_search_name_matches): Likewise.
958 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
959 (get_ada_tasks_inferior_data): Likewise.
960 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
961 (splay_obstack_alloc): Likewise.
962 (splay_obstack_free): Likewise.
963 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
964 (alpha_linux_collect_gregset): Likewise.
965 (alpha_linux_supply_fpregset): Likewise.
966 (alpha_linux_collect_fpregset): Likewise.
967 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
968 * alpha-tdep.c (alpha_lds): Likewise.
969 (alpha_sts): Likewise.
970 (alpha_sigtramp_frame_unwind_cache): Likewise.
971 (alpha_heuristic_frame_unwind_cache): Likewise.
972 (alpha_supply_int_regs): Likewise.
973 (alpha_fill_int_regs): Likewise.
974 (alpha_supply_fp_regs): Likewise.
975 (alpha_fill_fp_regs): Likewise.
976 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
977 (alphanbsd_aout_supply_gregset): Likewise.
978 (alphanbsd_supply_gregset): Likewise.
979 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
980 (amd64_x32_linux_init_abi): Likewise.
981 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
982 (amd64_collect_native_gregset): Likewise.
983 * amd64-tdep.c (amd64_frame_cache): Likewise.
984 (amd64_sigtramp_frame_cache): Likewise.
985 (amd64_epilogue_frame_cache): Likewise.
986 (amd64_supply_fxsave): Likewise.
987 (amd64_supply_xsave): Likewise.
988 (amd64_collect_fxsave): Likewise.
989 (amd64_collect_xsave): Likewise.
990 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
991 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
992 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
993 (arm_linux_collect_gregset): Likewise.
994 (arm_linux_supply_nwfpe): Likewise.
995 (arm_linux_collect_nwfpe): Likewise.
996 (arm_linux_supply_vfp): Likewise.
997 (arm_linux_collect_vfp): Likewise.
998 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
999 (arm_prologue_unwind_stop_reason): Likewise.
1000 (arm_prologue_this_id): Likewise.
1001 (arm_prologue_prev_register): Likewise.
1002 (arm_exidx_data_free): Likewise.
1003 (arm_find_exidx_entry): Likewise.
1004 (arm_stub_this_id): Likewise.
1005 (arm_m_exception_this_id): Likewise.
1006 (arm_m_exception_prev_register): Likewise.
1007 (arm_normal_frame_base): Likewise.
1008 (gdb_print_insn_arm): Likewise.
1009 (arm_objfile_data_free): Likewise.
1010 (arm_record_special_symbol): Likewise.
1011 (value_of_arm_user_reg): Likewise.
1012 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1013 (armbsd_supply_gregset): Likewise.
1014 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1015 (get_auto_load_pspace_data): Likewise.
1016 (hash_loaded_script_entry): Likewise.
1017 (eq_loaded_script_entry): Likewise.
1018 (clear_section_scripts): Likewise.
1019 (collect_matching_scripts): Likewise.
1020 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1021 (get_auxv_inferior_data): Likewise.
1022 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1023 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1024 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1025 (target_bfd_xclose): Likewise.
1026 (target_bfd_get_section_table): Likewise.
1027 * bfin-tdep.c (bfin_frame_cache): Likewise.
1028 * block.c (find_block_in_blockvector): Likewise.
1029 (call_site_for_pc): Likewise.
1030 (block_find_non_opaque_type_preferred): Likewise.
1031 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1032 (signal_catchpoint_remove_location): Likewise.
1033 (signal_catchpoint_breakpoint_hit): Likewise.
1034 (signal_catchpoint_print_one): Likewise.
1035 (signal_catchpoint_print_mention): Likewise.
1036 (signal_catchpoint_print_recreate): Likewise.
1037 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1038 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1039 (bp_location_compare_addrs): Likewise.
1040 (get_first_locp_gte_addr): Likewise.
1041 (check_tracepoint_command): Likewise.
1042 (do_map_commands_command): Likewise.
1043 (get_breakpoint_objfile_data): Likewise.
1044 (free_breakpoint_probes): Likewise.
1045 (do_captured_breakpoint_query): Likewise.
1046 (compare_breakpoints): Likewise.
1047 (bp_location_compare): Likewise.
1048 (bpstat_remove_breakpoint_callback): Likewise.
1049 (do_delete_breakpoint_cleanup): Likewise.
1050 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1051 (bsd_uthread_set_collect_uthread): Likewise.
1052 (bsd_uthread_activate): Likewise.
1053 (bsd_uthread_fetch_registers): Likewise.
1054 (bsd_uthread_store_registers): Likewise.
1055 * btrace.c (check_xml_btrace_version): Likewise.
1056 (parse_xml_btrace_block): Likewise.
1057 (parse_xml_btrace_pt_config_cpu): Likewise.
1058 (parse_xml_btrace_pt_raw): Likewise.
1059 (parse_xml_btrace_pt): Likewise.
1060 (parse_xml_btrace_conf_bts): Likewise.
1061 (parse_xml_btrace_conf_pt): Likewise.
1062 (do_btrace_data_cleanup): Likewise.
1063 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1064 * charset.c (cleanup_iconv): Likewise.
1065 (do_cleanup_iterator): Likewise.
1066 * cli-out.c (cli_uiout_dtor): Likewise.
1067 (cli_table_begin): Likewise.
1068 (cli_table_body): Likewise.
1069 (cli_table_end): Likewise.
1070 (cli_table_header): Likewise.
1071 (cli_begin): Likewise.
1072 (cli_end): Likewise.
1073 (cli_field_int): Likewise.
1074 (cli_field_skip): Likewise.
1075 (cli_field_string): Likewise.
1076 (cli_field_fmt): Likewise.
1077 (cli_spaces): Likewise.
1078 (cli_text): Likewise.
1079 (cli_message): Likewise.
1080 (cli_wrap_hint): Likewise.
1081 (cli_flush): Likewise.
1082 (cli_redirect): Likewise.
1083 (out_field_fmt): Likewise.
1084 (field_separator): Likewise.
1085 (cli_out_set_stream): Likewise.
1086 * cli/cli-cmds.c (compare_symtabs): Likewise.
1087 * cli/cli-dump.c (call_dump_func): Likewise.
1088 (restore_section_callback): Likewise.
1089 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1090 (do_restore_user_call_depth): Likewise.
1091 (do_free_command_lines_cleanup): Likewise.
1092 * coff-pe-read.c (get_section_vmas): Likewise.
1093 (pe_as16): Likewise.
1094 (pe_as32): Likewise.
1095 * coffread.c (coff_symfile_read): Likewise.
1096 * common/agent.c (agent_look_up_symbols): Likewise.
1097 * common/filestuff.c (do_close_cleanup): Likewise.
1098 * common/format.c (free_format_pieces_cleanup): Likewise.
1099 * common/vec.c (vec_o_reserve): Likewise.
1100 * compile/compile-c-support.c (print_one_macro): Likewise.
1101 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1102 (eq_symbol_error): Likewise.
1103 (del_symbol_error): Likewise.
1104 (error_symbol_once): Likewise.
1105 (gcc_convert_symbol): Likewise.
1106 (gcc_symbol_address): Likewise.
1107 (hash_symname): Likewise.
1108 (eq_symname): Likewise.
1109 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1110 (eq_type_map_instance): Likewise.
1111 (insert_type): Likewise.
1112 (convert_type): Likewise.
1113 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1114 (setup_sections): Likewise.
1115 (link_hash_table_free): Likewise.
1116 (copy_sections): Likewise.
1117 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1118 * compile/compile.c (compile_print_value): Likewise.
1119 (do_rmdir): Likewise.
1120 (cleanup_compile_instance): Likewise.
1121 (cleanup_unlink_file): Likewise.
1122 * completer.c (free_completion_tracker): Likewise.
1123 * corelow.c (add_to_spuid_list): Likewise.
1124 * cp-namespace.c (reset_directive_searched): Likewise.
1125 * cp-support.c (reset_directive_searched): Likewise.
1126 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1127 (cris_frame_unwind_cache): Likewise.
1128 * d-lang.c (builtin_d_type): Likewise.
1129 * d-namespace.c (reset_directive_searched): Likewise.
1130 * dbxread.c (dbx_free_symfile_info): Likewise.
1131 (do_free_bincl_list_cleanup): Likewise.
1132 * disasm.c (hash_dis_line_entry): Likewise.
1133 (eq_dis_line_entry): Likewise.
1134 (dis_asm_print_address): Likewise.
1135 (fprintf_disasm): Likewise.
1136 (do_ui_file_delete): Likewise.
1137 * doublest.c (convert_floatformat_to_doublest): Likewise.
1138 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1139 (dummy_frame_prev_register): Likewise.
1140 (dummy_frame_this_id): Likewise.
1141 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1142 (cache_eq): Likewise.
1143 (cache_find): Likewise.
1144 (tailcall_frame_this_id): Likewise.
1145 (dwarf2_tailcall_prev_register_first): Likewise.
1146 (tailcall_frame_prev_register): Likewise.
1147 (tailcall_frame_dealloc_cache): Likewise.
1148 (tailcall_frame_prev_arch): Likewise.
1149 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1150 (dwarf2_frame_set_init_reg): Likewise.
1151 (dwarf2_frame_init_reg): Likewise.
1152 (dwarf2_frame_set_signal_frame_p): Likewise.
1153 (dwarf2_frame_signal_frame_p): Likewise.
1154 (dwarf2_frame_set_adjust_regnum): Likewise.
1155 (dwarf2_frame_adjust_regnum): Likewise.
1156 (clear_pointer_cleanup): Likewise.
1157 (dwarf2_frame_cache): Likewise.
1158 (find_cie): Likewise.
1159 (dwarf2_frame_find_fde): Likewise.
1160 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1161 (free_dwarf_expr_context_cleanup): Likewise.
1162 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1163 (locexpr_get_frame_base): Likewise.
1164 (loclist_find_frame_base_location): Likewise.
1165 (loclist_get_frame_base): Likewise.
1166 (dwarf_expr_dwarf_call): Likewise.
1167 (dwarf_expr_get_base_type): Likewise.
1168 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1169 (dwarf_expr_get_obj_addr): Likewise.
1170 (entry_data_value_coerce_ref): Likewise.
1171 (entry_data_value_copy_closure): Likewise.
1172 (entry_data_value_free_closure): Likewise.
1173 (get_frame_address_in_block_wrapper): Likewise.
1174 (dwarf2_evaluate_property): Likewise.
1175 (dwarf2_compile_property_to_c): Likewise.
1176 (needs_frame_read_addr_from_reg): Likewise.
1177 (needs_frame_get_reg_value): Likewise.
1178 (needs_frame_frame_base): Likewise.
1179 (needs_frame_frame_cfa): Likewise.
1180 (needs_frame_tls_address): Likewise.
1181 (needs_frame_dwarf_call): Likewise.
1182 (needs_dwarf_reg_entry_value): Likewise.
1183 (get_ax_pc): Likewise.
1184 (locexpr_read_variable): Likewise.
1185 (locexpr_read_variable_at_entry): Likewise.
1186 (locexpr_read_needs_frame): Likewise.
1187 (locexpr_describe_location): Likewise.
1188 (locexpr_tracepoint_var_ref): Likewise.
1189 (locexpr_generate_c_location): Likewise.
1190 (loclist_read_variable): Likewise.
1191 (loclist_read_variable_at_entry): Likewise.
1192 (loclist_describe_location): Likewise.
1193 (loclist_tracepoint_var_ref): Likewise.
1194 (loclist_generate_c_location): Likewise.
1195 * dwarf2read.c (line_header_hash_voidp): Likewise.
1196 (line_header_eq_voidp): Likewise.
1197 (dwarf2_has_info): Likewise.
1198 (dwarf2_get_section_info): Likewise.
1199 (locate_dwz_sections): Likewise.
1200 (hash_file_name_entry): Likewise.
1201 (eq_file_name_entry): Likewise.
1202 (delete_file_name_entry): Likewise.
1203 (dw2_setup): Likewise.
1204 (dw2_get_file_names_reader): Likewise.
1205 (dw2_find_pc_sect_compunit_symtab): Likewise.
1206 (hash_signatured_type): Likewise.
1207 (eq_signatured_type): Likewise.
1208 (add_signatured_type_cu_to_table): Likewise.
1209 (create_debug_types_hash_table): Likewise.
1210 (lookup_dwo_signatured_type): Likewise.
1211 (lookup_dwp_signatured_type): Likewise.
1212 (lookup_signatured_type): Likewise.
1213 (hash_type_unit_group): Likewise.
1214 (eq_type_unit_group): Likewise.
1215 (get_type_unit_group): Likewise.
1216 (process_psymtab_comp_unit_reader): Likewise.
1217 (sort_tu_by_abbrev_offset): Likewise.
1218 (process_skeletonless_type_unit): Likewise.
1219 (psymtabs_addrmap_cleanup): Likewise.
1220 (dwarf2_read_symtab): Likewise.
1221 (psymtab_to_symtab_1): Likewise.
1222 (die_hash): Likewise.
1224 (load_full_comp_unit_reader): Likewise.
1225 (reset_die_in_process): Likewise.
1226 (free_cu_line_header): Likewise.
1227 (handle_DW_AT_stmt_list): Likewise.
1228 (hash_dwo_file): Likewise.
1229 (eq_dwo_file): Likewise.
1230 (hash_dwo_unit): Likewise.
1231 (eq_dwo_unit): Likewise.
1232 (create_dwo_cu_reader): Likewise.
1233 (create_dwo_unit_in_dwp_v1): Likewise.
1234 (create_dwo_unit_in_dwp_v2): Likewise.
1235 (lookup_dwo_unit_in_dwp): Likewise.
1236 (dwarf2_locate_dwo_sections): Likewise.
1237 (dwarf2_locate_common_dwp_sections): Likewise.
1238 (dwarf2_locate_v2_dwp_sections): Likewise.
1239 (hash_dwp_loaded_cutus): Likewise.
1240 (eq_dwp_loaded_cutus): Likewise.
1241 (lookup_dwo_cutu): Likewise.
1242 (abbrev_table_free_cleanup): Likewise.
1243 (dwarf2_free_abbrev_table): Likewise.
1244 (find_partial_die_in_comp_unit): Likewise.
1245 (free_line_header_voidp): Likewise.
1246 (follow_die_offset): Likewise.
1247 (follow_die_sig_1): Likewise.
1248 (free_heap_comp_unit): Likewise.
1249 (free_stack_comp_unit): Likewise.
1250 (dwarf2_free_objfile): Likewise.
1251 (per_cu_offset_and_type_hash): Likewise.
1252 (per_cu_offset_and_type_eq): Likewise.
1253 (get_die_type_at_offset): Likewise.
1254 (partial_die_hash): Likewise.
1255 (partial_die_eq): Likewise.
1256 (dwarf2_per_objfile_free): Likewise.
1257 (hash_strtab_entry): Likewise.
1258 (eq_strtab_entry): Likewise.
1259 (add_string): Likewise.
1260 (hash_symtab_entry): Likewise.
1261 (eq_symtab_entry): Likewise.
1262 (delete_symtab_entry): Likewise.
1263 (cleanup_mapped_symtab): Likewise.
1264 (add_indices_to_cpool): Likewise.
1265 (hash_psymtab_cu_index): Likewise.
1266 (eq_psymtab_cu_index): Likewise.
1267 (add_address_entry_worker): Likewise.
1268 (unlink_if_set): Likewise.
1269 (write_one_signatured_type): Likewise.
1270 (save_gdb_index_command): Likewise.
1271 * elfread.c (elf_symtab_read): Likewise.
1272 (elf_gnu_ifunc_cache_hash): Likewise.
1273 (elf_gnu_ifunc_cache_eq): Likewise.
1274 (elf_gnu_ifunc_record_cache): Likewise.
1275 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1276 (elf_get_probes): Likewise.
1277 (probe_key_free): Likewise.
1278 * f-lang.c (builtin_f_type): Likewise.
1279 * frame-base.c (frame_base_append_sniffer): Likewise.
1280 (frame_base_set_default): Likewise.
1281 (frame_base_find_by_frame): Likewise.
1282 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1283 (frame_unwind_append_unwinder): Likewise.
1284 (frame_unwind_find_by_frame): Likewise.
1285 * frame.c (frame_addr_hash): Likewise.
1286 (frame_addr_hash_eq): Likewise.
1287 (frame_stash_find): Likewise.
1288 (do_frame_register_read): Likewise.
1289 (unwind_to_current_frame): Likewise.
1290 (frame_cleanup_after_sniffer): Likewise.
1291 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1292 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1293 * ft32-tdep.c (ft32_frame_cache): Likewise.
1294 * gcore.c (do_bfd_delete_cleanup): Likewise.
1295 (gcore_create_callback): Likewise.
1296 * gdb_bfd.c (hash_bfd): Likewise.
1298 (gdb_bfd_open): Likewise.
1299 (free_one_bfd_section): Likewise.
1300 (gdb_bfd_ref): Likewise.
1301 (gdb_bfd_unref): Likewise.
1302 (get_section_descriptor): Likewise.
1303 (gdb_bfd_map_section): Likewise.
1304 (gdb_bfd_crc): Likewise.
1305 (gdb_bfd_mark_parent): Likewise.
1306 (gdb_bfd_record_inclusion): Likewise.
1307 (gdb_bfd_requires_relocations): Likewise.
1308 (print_one_bfd): Likewise.
1309 * gdbtypes.c (type_pair_hash): Likewise.
1310 (type_pair_eq): Likewise.
1311 (builtin_type): Likewise.
1312 (objfile_type): Likewise.
1313 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1314 (vtable_address_point_offset): Likewise.
1315 (gnuv3_get_vtable): Likewise.
1316 (hash_value_and_voffset): Likewise.
1317 (eq_value_and_voffset): Likewise.
1318 (compare_value_and_voffset): Likewise.
1319 (compute_vtable_size): Likewise.
1320 (gnuv3_get_typeid_type): Likewise.
1321 * go-lang.c (builtin_go_type): Likewise.
1322 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1323 (bkscm_eq_block_smob): Likewise.
1324 (bkscm_objfile_block_map): Likewise.
1325 (bkscm_del_objfile_blocks): Likewise.
1326 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1327 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1328 (gdbscm_disasm_print_address): Likewise.
1329 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1330 (frscm_eq_frame_smob): Likewise.
1331 (frscm_inferior_frame_map): Likewise.
1332 (frscm_del_inferior_frames): Likewise.
1333 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1334 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1335 (ofscm_objfile_smob_from_objfile): Likewise.
1336 * guile/scm-ports.c (ioscm_write): Likewise.
1337 (ioscm_file_port_delete): Likewise.
1338 (ioscm_file_port_rewind): Likewise.
1339 (ioscm_file_port_put): Likewise.
1340 (ioscm_file_port_write): Likewise.
1341 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1342 (psscm_pspace_smob_from_pspace): Likewise.
1343 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1344 (scscm_recording_unwind_handler): Likewise.
1345 (gdbscm_with_catch): Likewise.
1346 (scscm_call_0_body): Likewise.
1347 (scscm_call_1_body): Likewise.
1348 (scscm_call_2_body): Likewise.
1349 (scscm_call_3_body): Likewise.
1350 (scscm_call_4_body): Likewise.
1351 (scscm_apply_1_body): Likewise.
1352 (scscm_eval_scheme_string): Likewise.
1353 (gdbscm_safe_eval_string): Likewise.
1354 (scscm_source_scheme_script): Likewise.
1355 (gdbscm_safe_source_script): Likewise.
1356 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1357 (gdbscm_call_scm_from_stringn): Likewise.
1358 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1359 (syscm_eq_symbol_smob): Likewise.
1360 (syscm_get_symbol_map): Likewise.
1361 (syscm_del_objfile_symbols): Likewise.
1362 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1363 (stscm_eq_symtab_smob): Likewise.
1364 (stscm_objfile_symtab_map): Likewise.
1365 (stscm_del_objfile_symtabs): Likewise.
1366 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1367 (tyscm_eq_type_smob): Likewise.
1368 (tyscm_type_map): Likewise.
1369 (tyscm_copy_type_recursive): Likewise.
1370 (save_objfile_types): Likewise.
1371 * guile/scm-utils.c (extract_arg): Likewise.
1372 * h8300-tdep.c (h8300_frame_cache): Likewise.
1373 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1374 * hppa-tdep.c (compare_unwind_entries): Likewise.
1375 (find_unwind_entry): Likewise.
1376 (hppa_frame_cache): Likewise.
1377 (hppa_stub_frame_unwind_cache): Likewise.
1378 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1379 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1380 (hppaobsd_supply_fpregset): Likewise.
1381 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1382 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1383 * i386-tdep.c (i386_frame_cache): Likewise.
1384 (i386_epilogue_frame_cache): Likewise.
1385 (i386_sigtramp_frame_cache): Likewise.
1386 (i386_supply_gregset): Likewise.
1387 (i386_collect_gregset): Likewise.
1388 (i386_gdbarch_init): Likewise.
1389 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1390 (i386obsd_trapframe_cache): Likewise.
1391 * i387-tdep.c (i387_supply_fsave): Likewise.
1392 (i387_collect_fsave): Likewise.
1393 (i387_supply_fxsave): Likewise.
1394 (i387_collect_fxsave): Likewise.
1395 (i387_supply_xsave): Likewise.
1396 (i387_collect_xsave): Likewise.
1397 * ia64-tdep.c (ia64_frame_cache): Likewise.
1398 (ia64_sigtramp_frame_cache): Likewise.
1399 * infcmd.c (attach_command_continuation): Likewise.
1400 (attach_command_continuation_free_args): Likewise.
1401 * inferior.c (restore_inferior): Likewise.
1402 (delete_thread_of_inferior): Likewise.
1403 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1404 (get_inflow_inferior_data): Likewise.
1405 (inflow_inferior_exit): Likewise.
1406 * infrun.c (displaced_step_clear_cleanup): Likewise.
1407 (restore_current_uiout_cleanup): Likewise.
1408 (release_stop_context_cleanup): Likewise.
1409 (do_restore_infcall_suspend_state_cleanup): Likewise.
1410 (do_restore_infcall_control_state_cleanup): Likewise.
1411 (restore_inferior_ptid): Likewise.
1412 * inline-frame.c (block_starting_point_at): Likewise.
1413 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1414 * jit.c (get_jit_objfile_data): Likewise.
1415 (get_jit_program_space_data): Likewise.
1416 (jit_object_close_impl): Likewise.
1417 (jit_find_objf_with_entry_addr): Likewise.
1418 (jit_breakpoint_deleted): Likewise.
1419 (jit_unwind_reg_set_impl): Likewise.
1420 (jit_unwind_reg_get_impl): Likewise.
1421 (jit_dealloc_cache): Likewise.
1422 (jit_frame_sniffer): Likewise.
1423 (jit_frame_prev_register): Likewise.
1424 (jit_prepend_unwinder): Likewise.
1425 (jit_inferior_exit_hook): Likewise.
1426 (free_objfile_data): Likewise.
1427 * jv-lang.c (jv_per_objfile_free): Likewise.
1428 (get_dynamics_objfile): Likewise.
1429 (get_java_class_symtab): Likewise.
1430 (builtin_java_type): Likewise.
1431 * language.c (language_string_char_type): Likewise.
1432 (language_bool_type): Likewise.
1433 (language_lookup_primitive_type): Likewise.
1434 (language_lookup_primitive_type_as_symbol): Likewise.
1435 * linespec.c (hash_address_entry): Likewise.
1436 (eq_address_entry): Likewise.
1437 (iterate_inline_only): Likewise.
1438 (iterate_name_matcher): Likewise.
1439 (decode_line_2_compare_items): Likewise.
1440 (collect_one_symbol): Likewise.
1441 (compare_symbols): Likewise.
1442 (compare_msymbols): Likewise.
1443 (add_symtabs_to_list): Likewise.
1444 (collect_symbols): Likewise.
1445 (compare_msyms): Likewise.
1446 (add_minsym): Likewise.
1447 (cleanup_linespec_result): Likewise.
1448 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1449 * linux-nat.c (delete_lwp_cleanup): Likewise.
1450 (count_events_callback): Likewise.
1451 (select_event_lwp_callback): Likewise.
1452 (resume_stopped_resumed_lwps): Likewise.
1453 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1454 (invalidate_linux_cache_inf): Likewise.
1455 (get_linux_inferior_data): Likewise.
1456 (linux_find_memory_regions_thunk): Likewise.
1457 (linux_make_mappings_callback): Likewise.
1458 (linux_corefile_thread_callback): Likewise.
1459 (find_mapping_size): Likewise.
1460 * linux-thread-db.c (find_new_threads_callback): Likewise.
1461 * lm32-tdep.c (lm32_frame_cache): Likewise.
1462 * m2-lang.c (builtin_m2_type): Likewise.
1463 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1464 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1465 (m32r_linux_supply_gregset): Likewise.
1466 (m32r_linux_collect_gregset): Likewise.
1467 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1468 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1469 * m68k-tdep.c (m68k_frame_cache): Likewise.
1470 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1471 (m68kbsd_supply_gregset): Likewise.
1472 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1473 * m88k-tdep.c (m88k_frame_cache): Likewise.
1474 (m88k_supply_gregset): Likewise.
1478 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1479 to allocation result assignment.
1480 * ada-exp.y (write_object_renaming): Likewise.
1481 (write_ambiguous_var): Likewise.
1482 (ada_nget_field_index): Likewise.
1483 (write_var_or_type): Likewise.
1484 * ada-lang.c (ada_decode_symbol): Likewise.
1485 (ada_value_assign): Likewise.
1486 (value_pointer): Likewise.
1487 (cache_symbol): Likewise.
1488 (add_nonlocal_symbols): Likewise.
1489 (ada_name_for_lookup): Likewise.
1490 (symbol_completion_add): Likewise.
1491 (ada_to_fixed_type_1): Likewise.
1492 (ada_get_next_arg): Likewise.
1493 (defns_collected): Likewise.
1494 * ada-lex.l (processId): Likewise.
1495 (processString): Likewise.
1496 * ada-tasks.c (read_known_tasks_array): Likewise.
1497 (read_known_tasks_list): Likewise.
1498 * ada-typeprint.c (decoded_type_name): Likewise.
1499 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1500 * amd64-tdep.c (amd64_push_arguments): Likewise.
1501 (amd64_displaced_step_copy_insn): Likewise.
1502 (amd64_classify_insn_at): Likewise.
1503 (amd64_relocate_instruction): Likewise.
1504 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1505 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1506 (initialize_current_architecture): Likewise.
1507 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1508 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1509 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1510 (arm_push_dummy_call): Likewise.
1511 (extend_buffer_earlier): Likewise.
1512 (arm_adjust_breakpoint_address): Likewise.
1513 (arm_skip_stub): Likewise.
1514 * auto-load.c (filename_is_in_pattern): Likewise.
1515 (maybe_add_script_file): Likewise.
1516 (maybe_add_script_text): Likewise.
1517 (auto_load_objfile_script_1): Likewise.
1518 * auxv.c (ld_so_xfer_auxv): Likewise.
1519 * ax-general.c (new_agent_expr): Likewise.
1520 (grow_expr): Likewise.
1521 (ax_reg_mask): Likewise.
1522 * bcache.c (bcache_full): Likewise.
1523 * breakpoint.c (program_breakpoint_here_p): Likewise.
1524 * btrace.c (parse_xml_raw): Likewise.
1525 * build-id.c (build_id_to_debug_bfd): Likewise.
1526 * buildsym.c (end_symtab_with_blockvector): Likewise.
1527 * c-exp.y (string_exp): Likewise.
1528 (qualified_name): Likewise.
1529 (write_destructor_name): Likewise.
1530 (operator_stoken): Likewise.
1531 (parse_number): Likewise.
1532 (scan_macro_expansion): Likewise.
1534 (c_print_token): Likewise.
1535 * c-lang.c (c_get_string): Likewise.
1536 (emit_numeric_character): Likewise.
1537 * charset.c (wchar_iterate): Likewise.
1538 * cli/cli-cmds.c (complete_command): Likewise.
1539 (make_command): Likewise.
1540 * cli/cli-dump.c (restore_section_callback): Likewise.
1541 (restore_binary_file): Likewise.
1542 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1543 * cli/cli-script.c (execute_control_command): Likewise.
1544 * cli/cli-setshow.c (do_set_command): Likewise.
1545 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1546 (read_pe_exported_syms): Likewise.
1547 * coffread.c (coff_read_struct_type): Likewise.
1548 (coff_read_enum_type): Likewise.
1549 * common/btrace-common.c (btrace_data_append): Likewise.
1550 * common/buffer.c (buffer_grow): Likewise.
1551 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1552 * common/format.c (parse_format_string): Likewise.
1553 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1554 * common/xml-utils.c (xml_escape_text): Likewise.
1555 * compile/compile-object-load.c (copy_sections): Likewise.
1556 (compile_object_load): Likewise.
1557 * compile/compile-object-run.c (compile_object_run): Likewise.
1558 * completer.c (filename_completer): Likewise.
1559 * corefile.c (read_memory_typed_address): Likewise.
1560 (write_memory_unsigned_integer): Likewise.
1561 (write_memory_signed_integer): Likewise.
1562 (complete_set_gnutarget): Likewise.
1563 * corelow.c (get_core_register_section): Likewise.
1564 * cp-name-parser.y (d_grab): Likewise.
1565 (allocate_info): Likewise.
1566 (cp_new_demangle_parse_info): Likewise.
1567 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1568 (cp_lookup_symbol_in_namespace): Likewise.
1569 (lookup_namespace_scope): Likewise.
1570 (find_symbol_in_baseclass): Likewise.
1571 (cp_lookup_nested_symbol): Likewise.
1572 (cp_lookup_transparent_type_loop): Likewise.
1573 * cp-support.c (copy_string_to_obstack): Likewise.
1574 (make_symbol_overload_list): Likewise.
1575 (make_symbol_overload_list_namespace): Likewise.
1576 (make_symbol_overload_list_adl_namespace): Likewise.
1577 (first_component_command): Likewise.
1578 * cp-valprint.c (cp_print_value): Likewise.
1579 * ctf.c (ctf_xfer_partial): Likewise.
1580 * d-exp.y (StringExp): Likewise.
1581 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1582 (lookup_module_scope): Likewise.
1583 (find_symbol_in_baseclass): Likewise.
1584 (d_lookup_nested_symbol): Likewise.
1585 * dbxread.c (find_stab_function_addr): Likewise.
1586 (read_dbx_symtab): Likewise.
1587 (dbx_end_psymtab): Likewise.
1588 (cp_set_block_scope): Likewise.
1589 * dcache.c (dcache_alloc): Likewise.
1590 * demangle.c (_initialize_demangler): Likewise.
1591 * dicos-tdep.c (dicos_load_module_p): Likewise.
1592 * dictionary.c (dict_create_hashed_expandable): Likewise.
1593 (dict_create_linear_expandable): Likewise.
1594 (expand_hashtable): Likewise.
1595 (add_symbol_linear_expandable): Likewise.
1596 * dwarf2-frame.c (add_cie): Likewise.
1597 (add_fde): Likewise.
1598 (dwarf2_build_frame_info): Likewise.
1599 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1600 (dwarf_expr_fetch_address): Likewise.
1601 (add_piece): Likewise.
1602 (execute_stack_op): Likewise.
1603 * dwarf2loc.c (chain_candidate): Likewise.
1604 (dwarf_entry_parameter_to_value): Likewise.
1605 (read_pieced_value): Likewise.
1606 (write_pieced_value): Likewise.
1607 * dwarf2read.c (dwarf2_read_section): Likewise.
1608 (add_type_unit): Likewise.
1609 (read_comp_units_from_section): Likewise.
1610 (fixup_go_packaging): Likewise.
1611 (dwarf2_compute_name): Likewise.
1612 (dwarf2_physname): Likewise.
1613 (create_dwo_unit_in_dwp_v1): Likewise.
1614 (create_dwo_unit_in_dwp_v2): Likewise.
1615 (read_func_scope): Likewise.
1616 (read_call_site_scope): Likewise.
1617 (dwarf2_attach_fields_to_type): Likewise.
1618 (process_structure_scope): Likewise.
1619 (mark_common_block_symbol_computed): Likewise.
1620 (read_common_block): Likewise.
1621 (abbrev_table_read_table): Likewise.
1622 (guess_partial_die_structure_name): Likewise.
1623 (fixup_partial_die): Likewise.
1624 (add_file_name): Likewise.
1625 (dwarf2_const_value_data): Likewise.
1626 (dwarf2_const_value_attr): Likewise.
1627 (build_error_marker_type): Likewise.
1628 (guess_full_die_structure_name): Likewise.
1629 (anonymous_struct_prefix): Likewise.
1630 (typename_concat): Likewise.
1631 (dwarf2_canonicalize_name): Likewise.
1632 (dwarf2_name): Likewise.
1633 (write_constant_as_bytes): Likewise.
1634 (dwarf2_fetch_constant_bytes): Likewise.
1635 (copy_string): Likewise.
1636 (parse_macro_definition): Likewise.
1637 * elfread.c (elf_symfile_segments): Likewise.
1638 (elf_rel_plt_read): Likewise.
1639 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1640 (elf_gnu_ifunc_resolve_by_got): Likewise.
1641 (elf_read_minimal_symbols): Likewise.
1642 (elf_gnu_ifunc_record_cache): Likewise.
1643 * event-top.c (top_level_prompt): Likewise.
1644 (command_line_handler): Likewise.
1645 * exec.c (resize_section_table): Likewise.
1646 * expprint.c (print_subexp_standard): Likewise.
1647 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1648 * findcmd.c (parse_find_args): Likewise.
1649 * findvar.c (address_from_register): Likewise.
1650 * frame.c (get_prev_frame_always): Likewise.
1651 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1652 (get_section_descriptor): Likewise.
1653 * gdb_obstack.c (obconcat): Likewise.
1654 (obstack_strdup): Likewise.
1655 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1656 (create_set_type): Likewise.
1657 (lookup_unsigned_typename): Likewise.
1658 (lookup_signed_typename): Likewise.
1659 (resolve_dynamic_union): Likewise.
1660 (resolve_dynamic_struct): Likewise.
1661 (add_dyn_prop): Likewise.
1662 (copy_dynamic_prop_list): Likewise.
1663 (arch_flags_type): Likewise.
1664 (append_composite_type_field_raw): Likewise.
1665 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1666 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1667 * go-exp.y (string_exp): Likewise.
1668 * go-lang.c (go_demangle): Likewise.
1669 * guile/guile.c (compute_scheme_string): Likewise.
1670 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1671 (gdbscm_canonicalize_command_name): Likewise.
1672 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1673 (ioscm_init_memory_port): Likewise.
1674 (ioscm_reinit_memory_port): Likewise.
1675 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1676 (gdbscm_gc_dup_argv): Likewise.
1677 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1678 * hppa-tdep.c (internalize_unwinds): Likewise.
1679 (read_unwind_info): Likewise.
1680 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1681 (windows_core_xfer_shared_libraries): Likewise.
1682 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1683 (i386_stap_parse_special_token_triplet): Likewise.
1684 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1685 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1686 * inf-child.c (inf_child_fileio_readlink): Likewise.
1687 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1688 (inf_ptrace_store_register): Likewise.
1689 * infrun.c (follow_exec): Likewise.
1690 (displaced_step_prepare_throw): Likewise.
1691 (save_stop_context): Likewise.
1692 (save_infcall_suspend_state): Likewise.
1693 * jit.c (jit_read_descriptor): Likewise.
1694 (jit_read_code_entry): Likewise.
1695 (jit_symtab_line_mapping_add_impl): Likewise.
1696 (finalize_symtab): Likewise.
1697 (jit_unwind_reg_get_impl): Likewise.
1698 * jv-exp.y (QualifiedName): Likewise.
1699 * jv-lang.c (get_java_utf8_name): Likewise.
1700 (type_from_class): Likewise.
1701 (java_demangle_type_signature): Likewise.
1702 (java_class_name_from_physname): Likewise.
1703 * jv-typeprint.c (java_type_print_base): Likewise.
1704 * jv-valprint.c (java_value_print): Likewise.
1705 * language.c (add_language): Likewise.
1706 * linespec.c (add_sal_to_sals_basic): Likewise.
1707 (add_sal_to_sals): Likewise.
1708 (decode_objc): Likewise.
1709 (find_linespec_symbols): Likewise.
1710 * linux-fork.c (fork_save_infrun_state): Likewise.
1711 * linux-nat.c (linux_nat_detach): Likewise.
1712 (linux_nat_fileio_readlink): Likewise.
1713 * linux-record.c (record_linux_sockaddr): Likewise.
1714 (record_linux_msghdr): Likewise.
1716 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1717 (linux_collect_regset_section_cb): Likewise.
1718 (linux_get_siginfo_data): Likewise.
1719 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1720 (try_thread_db_load_from_dir): Likewise.
1721 (thread_db_load_search): Likewise.
1722 (info_auto_load_libthread_db): Likewise.
1723 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1724 (m32c_m16c_pointer_to_address): Likewise.
1725 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1726 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1727 * machoread.c (macho_check_dsym): Likewise.
1728 * macroexp.c (resize_buffer): Likewise.
1729 (gather_arguments): Likewise.
1730 (maybe_expand): Likewise.
1731 * macrotab.c (new_macro_key): Likewise.
1732 (new_source_file): Likewise.
1733 (new_macro_definition): Likewise.
1734 * mdebugread.c (parse_symbol): Likewise.
1735 (parse_type): Likewise.
1736 (parse_partial_symbols): Likewise.
1737 (psymtab_to_symtab_1): Likewise.
1738 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1739 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1740 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1741 (mi_cmd_data_read_memory_bytes): Likewise.
1742 (mi_cmd_data_write_memory_bytes): Likewise.
1743 (mi_cmd_trace_frame_collected): Likewise.
1744 * mi/mi-parse.c (mi_parse_argv): Likewise.
1745 (mi_parse): Likewise.
1746 * minidebug.c (lzma_open): Likewise.
1747 (lzma_pread): Likewise.
1748 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1749 (mips_print_fp_register): Likewise.
1750 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1751 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1752 * mt-tdep.c (mt_register_name): Likewise.
1753 (mt_registers_info): Likewise.
1754 (mt_push_dummy_call): Likewise.
1755 * namespace.c (add_using_directive): Likewise.
1756 * nat/linux-btrace.c (perf_event_read): Likewise.
1757 (linux_enable_bts): Likewise.
1758 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1759 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1760 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1761 (nto_parse_redirection): Likewise.
1762 * objc-lang.c (objc_demangle): Likewise.
1763 (find_methods): Likewise.
1764 * objfiles.c (get_objfile_bfd_data): Likewise.
1765 (set_objfile_main_name): Likewise.
1766 (allocate_objfile): Likewise.
1767 (objfile_relocate): Likewise.
1768 (update_section_map): Likewise.
1769 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1770 * p-exp.y (exp): Likewise.
1772 * p-valprint.c (pascal_object_print_value): Likewise.
1773 * parse.c (initialize_expout): Likewise.
1774 (mark_completion_tag): Likewise.
1775 (copy_name): Likewise.
1776 (parse_float): Likewise.
1777 (type_stack_reserve): Likewise.
1778 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1779 (ppu2spu_prev_register): Likewise.
1780 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1781 * printcmd.c (printf_wide_c_string): Likewise.
1782 (printf_pointer): Likewise.
1783 * probe.c (parse_probes): Likewise.
1784 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1785 (cmdpy_init): Likewise.
1786 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1787 * python/py-symtab.c (set_sal): Likewise.
1788 * python/py-unwind.c (pyuw_sniffer): Likewise.
1789 * python/python.c (python_interactive_command): Likewise.
1790 (compute_python_string): Likewise.
1791 * ravenscar-thread.c (get_running_thread_id): Likewise.
1792 * record-full.c (record_full_exec_insn): Likewise.
1793 (record_full_core_open_1): Likewise.
1794 * regcache.c (regcache_raw_read_signed): Likewise.
1795 (regcache_raw_read_unsigned): Likewise.
1796 (regcache_cooked_read_signed): Likewise.
1797 (regcache_cooked_read_unsigned): Likewise.
1798 * remote-fileio.c (remote_fileio_func_open): Likewise.
1799 (remote_fileio_func_rename): Likewise.
1800 (remote_fileio_func_unlink): Likewise.
1801 (remote_fileio_func_stat): Likewise.
1802 (remote_fileio_func_system): Likewise.
1803 * remote-mips.c (mips_xfer_memory): Likewise.
1804 (mips_load_srec): Likewise.
1805 (pmon_end_download): Likewise.
1806 * remote.c (new_remote_state): Likewise.
1807 (map_regcache_remote_table): Likewise.
1808 (remote_register_number_and_offset): Likewise.
1809 (init_remote_state): Likewise.
1810 (get_memory_packet_size): Likewise.
1811 (remote_pass_signals): Likewise.
1812 (remote_program_signals): Likewise.
1813 (remote_start_remote): Likewise.
1814 (remote_check_symbols): Likewise.
1815 (remote_query_supported): Likewise.
1816 (extended_remote_attach): Likewise.
1817 (process_g_packet): Likewise.
1818 (store_registers_using_G): Likewise.
1819 (putpkt_binary): Likewise.
1820 (read_frame): Likewise.
1821 (compare_sections_command): Likewise.
1822 (remote_hostio_pread): Likewise.
1823 (remote_hostio_readlink): Likewise.
1824 (remote_file_put): Likewise.
1825 (remote_file_get): Likewise.
1826 (remote_pid_to_exec_file): Likewise.
1827 (_initialize_remote): Likewise.
1828 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1829 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1830 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1831 (bfd_uses_spe_extensions): Likewise.
1832 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1833 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1834 * solib-dsbt.c (decode_loadmap): Likewise.
1835 (fetch_loadmap): Likewise.
1836 (scan_dyntag): Likewise.
1837 (enable_break): Likewise.
1838 (dsbt_relocate_main_executable): Likewise.
1839 * solib-frv.c (fetch_loadmap): Likewise.
1840 (enable_break2): Likewise.
1841 (frv_relocate_main_executable): Likewise.
1842 * solib-spu.c (spu_relocate_main_executable): Likewise.
1843 (spu_bfd_open): Likewise.
1844 * solib-svr4.c (lm_info_read): Likewise.
1845 (read_program_header): Likewise.
1846 (find_program_interpreter): Likewise.
1847 (scan_dyntag): Likewise.
1848 (elf_locate_base): Likewise.
1849 (open_symbol_file_object): Likewise.
1850 (read_program_headers_from_bfd): Likewise.
1851 (svr4_relocate_main_executable): Likewise.
1852 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1853 * solib.c (solib_find_1): Likewise.
1854 (exec_file_find): Likewise.
1855 (solib_find): Likewise.
1856 * source.c (openp): Likewise.
1857 (print_source_lines_base): Likewise.
1858 (forward_search_command): Likewise.
1859 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1860 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1861 (spu_get_overlay_table): Likewise.
1862 * stabsread.c (patch_block_stabs): Likewise.
1863 (define_symbol): Likewise.
1865 (read_member_functions): Likewise.
1866 (read_one_struct_field): Likewise.
1867 (read_enum_type): Likewise.
1868 (common_block_start): Likewise.
1869 * stack.c (read_frame_arg): Likewise.
1870 (backtrace_command): Likewise.
1871 * stap-probe.c (stap_parse_register_operand): Likewise.
1872 * symfile.c (syms_from_objfile_1): Likewise.
1873 (find_separate_debug_file): Likewise.
1874 (load_command): Likewise.
1875 (load_progress): Likewise.
1876 (load_section_callback): Likewise.
1877 (reread_symbols): Likewise.
1878 (add_filename_language): Likewise.
1879 (allocate_compunit_symtab): Likewise.
1880 (read_target_long_array): Likewise.
1881 (simple_read_overlay_table): Likewise.
1882 * symtab.c (symbol_set_names): Likewise.
1883 (resize_symbol_cache): Likewise.
1884 (rbreak_command): Likewise.
1885 (completion_list_add_name): Likewise.
1886 (completion_list_objc_symbol): Likewise.
1887 (add_filename_to_list): Likewise.
1888 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1889 * target-memory.c (target_write_memory_blocks): Likewise.
1890 * target.c (target_read_string): Likewise.
1891 (read_whatever_is_readable): Likewise.
1892 (target_read_alloc_1): Likewise.
1893 (simple_search_memory): Likewise.
1894 (target_fileio_read_alloc_1): Likewise.
1895 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1896 * top.c (command_line_input): Likewise.
1897 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1898 * tracefile.c (tracefile_fetch_registers): Likewise.
1899 * tracepoint.c (add_memrange): Likewise.
1900 (init_collection_list): Likewise.
1901 (add_aexpr): Likewise.
1902 (trace_dump_actions): Likewise.
1903 (parse_trace_status): Likewise.
1904 (parse_tracepoint_definition): Likewise.
1905 (parse_tsv_definition): Likewise.
1906 (parse_static_tracepoint_marker_definition): Likewise.
1907 * tui/tui-file.c (tui_sfileopen): Likewise.
1908 (tui_file_adjust_strbuf): Likewise.
1909 * tui/tui-io.c (tui_expand_tabs): Likewise.
1910 * tui/tui-source.c (tui_set_source_content): Likewise.
1911 * typeprint.c (find_global_typedef): Likewise.
1912 * ui-file.c (do_ui_file_xstrdup): Likewise.
1913 (ui_file_obsavestring): Likewise.
1914 (mem_file_write): Likewise.
1915 * utils.c (make_hex_string): Likewise.
1916 (get_regcomp_error): Likewise.
1917 (puts_filtered_tabular): Likewise.
1918 (gdb_realpath_keepfile): Likewise.
1919 (ldirname): Likewise.
1920 (gdb_bfd_errmsg): Likewise.
1921 (substitute_path_component): Likewise.
1922 * valops.c (search_struct_method): Likewise.
1923 (find_oload_champ_namespace_loop): Likewise.
1924 * valprint.c (print_decimal_chars): Likewise.
1925 (read_string): Likewise.
1926 (generic_emit_char): Likewise.
1927 * varobj.c (varobj_delete): Likewise.
1928 (varobj_value_get_print_value): Likewise.
1929 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1930 * windows-tdep.c (display_one_tib): Likewise.
1931 * xcoffread.c (read_xcoff_symtab): Likewise.
1932 (process_xcoff_symbol): Likewise.
1933 (swap_sym): Likewise.
1934 (scan_xcoff_symtab): Likewise.
1935 (xcoff_initial_scan): Likewise.
1936 * xml-support.c (gdb_xml_end_element): Likewise.
1937 (xml_process_xincludes): Likewise.
1938 (xml_fetch_content_from_file): Likewise.
1939 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1940 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1944 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1945 instead of builtin_func_ptr.
1946 (ft32_pointer_to_address): New function.
1947 (ft32_address_class_type_flags): New function.
1948 (ft32_address_class_type_flags_to_name): New function.
1949 (ft32_address_class_name_to_type_flags): New function.
1950 (ft32_gdbarch_init): Set tdep->pc_type. Call
1951 set_gdbarch_pointer_to_address,
1952 set_gdbarch_address_class_type_flags
1953 set_gdbarch_address_class_name_to_type_flags,
1954 and set_gdbarch_address_class_type_flags_to_name.
1955 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1959 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1960 value is a reference, actually dereference it in order to get
1961 the underlying value.
1965 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1969 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1970 * linespec.c (linespec_lexer_lex_string): Same.
1974 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1978 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1979 variable. Call aarch64_decode_adr instead of
1980 aarch64_decode_adrp.
1981 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1982 (aarch64_decode_adr): New function declaration.
1983 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1984 (aarch64_decode_adr): New function, factored out from
1985 aarch64_decode_adrp to decode both adr and adrp instructions.
1989 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1990 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1991 (aarch64-insn.o): New rule.
1992 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1993 (aarch64*-*-linux*): Likewise.
1994 * arch/aarch64-insn.c: New file.
1995 * arch/aarch64-insn.h: New file.
1996 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1997 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1998 arch/aarch64-insn.h.
1999 (decode_add_sub_imm): Rename to ...
2000 (aarch64_decode_add_sub_imm): ... this.
2001 (decode_adrp): Rename to ...
2002 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2003 Declare in arch/aarch64-insn.h.
2004 (decode_b): Rename to ...
2005 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2006 Declare in arch/aarch64-insn.h.
2007 (decode_bcond): Rename to ...
2008 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2009 Declare in arch/aarch64-insn.h.
2010 (decode_br): Rename to ...
2011 (aarch64_decode_br): ... this.
2012 (decode_cb): Rename to ...
2013 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2014 Declare in arch/aarch64-insn.h.
2015 (decode_eret): Rename to ...
2016 (aarch64_decode_eret): ... this.
2017 (decode_movz): Rename to ...
2018 (aarch64_decode_movz): ... this.
2019 (decode_orr_shifted_register_x): Rename to ...
2020 (aarch64_decode_orr_shifted_register_x): ... this.
2021 (decode_ret): Rename to ...
2022 (aarch64_decode_ret): ... this.
2023 (decode_stp_offset): Rename to ...
2024 (aarch64_decode_stp_offset): ... this.
2025 (decode_stp_offset_wb): Rename to ...
2026 (aarch64_decode_stp_offset_wb): ... this.
2027 (decode_stur): Rename to ...
2028 (aarch64_decode_stur): ... this.
2029 (decode_tb): Rename to ...
2030 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2031 Declare in arch/aarch64-insn.h.
2032 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2036 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2040 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2041 variable name that collides with a parameter.
2045 * dwarf2loc.c (locexpr_get_frame_base): Renames
2046 block_op_get_frame_base.
2047 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2048 block_op_get_frame_base by reference to locexpr_get_frame_base.
2049 (loclist_get_frame_base): New function, near identical copy of
2050 locexpr_get_frame_base.
2051 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2052 block_op_get_frame_base by reference to loclist_get_frame_base.
2056 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2057 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2061 * linux-thread-db.c (record_thread): Return the created thread.
2062 (thread_from_lwp): Likewise.
2063 (thread_db_get_thread_local_address): Update.
2067 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2068 move only member demangled_name up. All uses updated.
2072 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2073 kind of minimal symbol in the error message.
2074 * objfiles.c (objfile_flavour_name): New function.
2075 * objfiles.h (objfile_flavour_name): Declare.
2079 * nat/aarch64-linux.c: Include elf/common.h,
2080 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2081 (aarch64_ps_get_thread_area): New function.
2082 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2083 (aarch64_ps_get_thread_area): Declare.
2084 * aarch64-linux-nat.c (ps_get_thread_area): Call
2085 aarch64_ps_get_thread_area.
2089 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2093 * NEWS: Announce new scheduler-locking mode.
2094 * infrun.c (schedlock_replay): New.
2095 (scheduler_enums): Add schedlock_replay.
2096 (scheduler_mode): Change default to schedlock_replay.
2097 (user_visible_resume_ptid): Handle schedlock_replay.
2098 (clear_proceed_status_thread): Stop replaying if resumed thread is
2100 (schedlock_applies): Handle schedlock_replay.
2101 (_initialize_infrun): Document new scheduler-locking mode.
2102 * record-btrace.c (record_btrace_resume): Remove code to stop other
2103 threads when not replaying the resumed thread.
2107 * record-btrace.c ((record_btrace_will_replay): New.
2108 (init_record_btrace_ops): Initialize to_record_will_replay.
2109 * record-full.c ((record_full_will_replay): New.
2110 (init_record_full_ops): Initialize to_record_will_replay.
2111 * target-delegates.c: Regenerated.
2112 * target.c (target_record_will_replay): New.
2113 * target.h (struct target_ops) <to_record_will_replay>: New.
2114 (target_record_will_replay): New.
2118 * record-btrace.c (record_btrace_resume): Call
2119 target_record_stop_replaying.
2120 (record_btrace_stop_replaying_all): New.
2121 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2122 * record-full.c (record_full_stop_replaying): New.
2123 (init_record_full_ops ): Initialize to_record_stop_replaying.
2124 * target-delegates.c: Regenerated.
2125 * target.c (target_record_stop_replaying): New.
2126 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2127 (target_record_stop_replaying): New.
2131 * record-btrace.c (record_btrace_xfer_partial)
2132 (record_btrace_store_registers, record_btrace_prepare_to_store):
2133 Call record_btrace_is_replaying with inferior_ptid instead of
2135 (record_btrace_store_registers): Change error message.
2139 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2140 Update users to pass minus_one_ptid.
2141 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2142 * record.c (cmd_record_delete): Pass inferior_ptid to
2143 target_record_is_replaying.
2144 * target-delegates.c: Regenerated.
2145 * target.c (target_record_is_replaying): Add ptid argument.
2146 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2148 (target_record_is_replaying): Add ptid argument.
2152 * record-btrace.c (record_btrace_open): Remove non_stop check.
2153 * NEWS: Announce that record btrace supports non-stop mode.
2157 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2158 in the TARKET_WAITKIND_NO_HISTORY case.
2162 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2163 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2167 * record-btrace.c (get_thread_current_frame): New.
2168 (record_btrace_start_replaying): Call get_thread_current_frame.
2172 * record-btrace.c (record_btrace_resume_thread): A move request
2173 overwrites a previous move request.
2174 (record_btrace_find_resume_thread): Removed.
2175 (record_btrace_resume): Resume all requested threads.
2179 * record-btrace.c: Include vec.h.
2180 (record_btrace_find_thread_to_move): Removed.
2181 (btrace_step_no_resumed, btrace_step_again)
2182 (record_btrace_stop_replaying_at_end): New.
2183 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2184 (record_btrace_single_step_forward): Remove calls to
2185 record_btrace_stop_replaying.
2186 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2187 BTHR_RCONT. Keep threads at the end of their history moving.
2188 (record_btrace_wait): Call record_btrace_step_thread for all threads
2189 until one reports an event. Call record_btrace_stop_replaying_at_end
2190 for the eventing thread.
2194 * record-btrace.c (record_btrace_single_step_forward): Return
2195 NO_HISTORY if a step brings us to the end of the execution history.
2199 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2201 (record_btrace_single_step_forward): ... here and
2202 (record_btrace_single_step_backward): ... here.
2206 * record-btrace.c (btrace_step_spurious)
2207 (record_btrace_single_step_forward)
2208 (record_btrace_single_step_backward): New.
2209 (record_btrace_step_thread): Call record_btrace_single_step_forward
2210 and record_btrace_single_step_backward.
2214 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2215 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2219 * record-btrace.c (btrace_thread_flag_to_str)
2220 (record_btrace_cancel_resume): New.
2221 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2222 (record_btrace_resume): Print execution direction.
2223 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2224 (record_btrace_wait): Call record_btrace_cancel_resume.
2228 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2229 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2230 (record_btrace_find_thread_to_move): Also accept threads that have
2232 (btrace_step_stopped_on_request, record_btrace_stop): New.
2233 (record_btrace_step_thread): Support BTHR_STOP.
2234 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2235 (init_record_btrace_ops): Initialize to_stop.
2239 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2240 target_is_non_stop_p ().
2244 * ada-typeprint.c (print_array_type): Do not describe arrays as
2245 packed when they embed dynamic elements.
2249 * symtab.h (address_class): Document that TLS variables
2250 are handled by LOC_UNRESOLVED.
2251 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2252 * printcmd.c (address_info): Don't relocate TLS variables.
2256 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2257 (decode_adrp): Likewise.
2258 (decode_b): Likewise.
2259 (decode_bcond): Likewise.
2260 (decode_br): Likewise.
2261 (decode_cb): Likewise.
2262 (decode_eret): Likewise.
2263 (decode_movz): Likewise.
2264 (decode_orr_shifted_register_x): Likewise.
2265 (decode_ret): Likewise.
2266 (decode_stp_offset): Likewise.
2267 (decode_stp_offset_wb): Likewise.
2268 (decode_stur): Likewise.
2269 (decode_tb): Likewise.
2270 (aarch64_analyze_prologue): Likewise.
2271 (pass_in_x): Likewise.
2272 (pass_in_v): Likewise.
2273 (pass_on_stack): Likewise.
2274 (aarch64_push_dummy_call): Likewise.
2275 (aarch64_extract_return_value): Likewise.
2276 (aarch64_store_return_value): Likewise.
2277 (aarch64_return_value): Likewise.
2278 (aarch64_record_asimd_load_store): Likewise.
2279 (aarch64_record_load_store): Likewise.
2280 (aarch64_record_data_proc_simd_fp): Likewise.
2284 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2285 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2286 (ppc64_skip_trampoline_code_1): ... here.
2287 (ppc64_skip_trampoline_code): New wrapper function.
2288 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2292 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2294 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2295 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2296 if target_can_do_single_step returns 1.
2297 * remote.c (struct vCont_action_support) <s, S>: New fields.
2298 (PACKET_vContSupported): New enum.
2299 (remote_protocol_features): New element for vContSupported.
2300 (remote_query_supported): Append "vContSupported+".
2301 (remote_vcont_probe): Remove support_s and support_S, use
2302 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2303 vCont packet if c and C actions are not supported.
2304 (remote_can_do_single_step): New function.
2305 (init_remote_ops): Install it to to_can_do_single_step.
2306 (_initialize_remote): Call add_packet_config_cmd.
2307 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2308 (target_can_do_single_step): New macro.
2309 * target-delegates.c: Re-generated.
2313 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2314 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2315 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2317 (aarch64_siginfo_from_compat_siginfo): New function.
2318 * nat/aarch64-linux.h: Include signal.h.
2319 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2320 (compat_timer_t, compat_clock_t): Likewise.
2321 (struct compat_timeval): New.
2322 (union compat_sigval): New.
2323 (struct compat_siginfo): New.
2324 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2325 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2326 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2327 (cpt_si_band, cpt_si_fd): Likewise.
2331 * infrun.c (current_stop_id): New global.
2332 (get_stop_id, new_stop_id): New functions.
2333 (fetch_inferior_event): Handle normal_stop proceeding the target.
2334 (struct stop_context): New.
2335 (save_stop_context, release_stop_context_cleanup)
2336 (stop_context_changed): New functions.
2337 (normal_stop): Return true if the hook-stop changes the stop
2339 * infrun.h (get_stop_id): Declare.
2340 (normal_stop): Now returns int. Add documentation.
2344 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2345 comment. Handle packed arrays.
2349 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2350 mention of maint set/show target-non-stop.
2354 * NEWS: Announce new remote packets for the exec-events
2355 feature and the exec-events feature and associated commands.
2359 * remote.c (remote_exec_event_p): New function.
2360 (remote_insert_exec_catchpoint): New function.
2361 (remote_remove_exec_catchpoint): New function.
2362 (init_extended_remote_ops): Initialize extended_remote_ops
2363 members to_insert_exec_catchpoint and
2364 to_remove_exec_catchpoint.
2369 * infrun.c (follow_exec): Use process-style ptid for
2370 exec message. Call add_inferior_with_spaces and
2372 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2373 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2374 * remote.c (remote_pspace_data): New static variable.
2375 (remote_pspace_data_cleanup): New function.
2376 (get_remote_exec_file): New function.
2377 (set_remote_exec_file_1): New function.
2378 (set_remote_exec_file): New function.
2379 (show_remote_exec_file): New function.
2380 (remote_exec_file): Delete static variable.
2381 (anonymous enum) <PACKET_exec_event_feature>: New
2382 enumeration constant.
2383 (remote_protocol_features): Add entry for exec-events feature.
2384 (remote_query_supported): Add client side of qSupported query
2385 for exec-events feature.
2386 (remote_follow_exec): New function.
2387 (remote_parse_stop_reply): Handle 'exec' stop reason.
2388 (extended_remote_run, extended_remote_create_inferior): Call
2389 get_remote_exec_file and set_remote_exec_file_1.
2390 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2392 (_initialize_remote): Call
2393 register_program_space_data_with_cleanup. Call
2394 add_packet_config_cmd for remote exec-events feature.
2395 Modify call to add_setshow_string_noescape_cmd for exec-file
2396 to use new functions set_remote_exec_file and
2397 show_remote_exec_file.
2398 * target-debug.h, target-delegates.c: Regenerated.
2399 * target.c (target_follow_exec): New function.
2400 * target.h (struct target_ops) <to_follow_exec>: New member.
2401 (target_follow_exec): Declare new function.
2405 * aarch64-tdep.c (decode_cb): Move up comment describing the
2407 (decode_tb): Fix a typo in comment above the function. Move up
2408 comment describing the encoding.
2412 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2417 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2418 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2422 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2427 * ada-lang.c (ada_search_struct_field): Constify parameters
2429 (xget_renaming_scope): Likewise.
2430 (ada_is_redundant_range_encoding): Likewise.
2431 (scan_discrim_bound): Likewise.
2432 (to_fixed_range_type): Likewise.
2436 * breakpoint.c (download_tracepoint_locations): New local
2437 can_download_tracepoint. Check the result of
2438 target_can_download_tracepoint and save it in
2439 can_download_tracepoint if there are tracepoints to download.
2440 * linux-nat.h (enum tribool): Move it to ...
2441 * common/common-types.h: ... here.
2445 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2446 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2450 * continuations.c (add_continuation, restore_thread_cleanup)
2451 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2452 (do_all_continuations_thread, do_all_continuations)
2453 (discard_all_continuations_thread_callback)
2454 (discard_all_continuations_thread, discard_all_continuations)
2455 (add_intermediate_continuation)
2456 (do_all_intermediate_continuations_thread_callback)
2457 (do_all_intermediate_continuations_thread)
2458 (do_all_intermediate_continuations)
2459 (discard_all_intermediate_continuations_thread_callback)
2460 (discard_all_intermediate_continuations_thread)
2461 (discard_all_intermediate_continuations): Delete.
2462 * continuations.h (add_continuation, do_all_continuations)
2463 (do_all_continuations_thread, discard_all_continuations)
2464 (discard_all_continuations_thread, add_intermediate_continuation)
2465 (do_all_intermediate_continuations)
2466 (do_all_intermediate_continuations_thread)
2467 (discard_all_intermediate_continuations)
2468 (discard_all_intermediate_continuations_thread): Delete
2470 * event-top.c (stdin_event_handler): Delete references to
2472 * gdbthread.h (struct thread_info): Delete continuations and
2473 intermediate_continuations fields.
2474 * inf-loop.c (inferior_event_handler): Remove references to
2476 * infrun.c (infrun_thread_stop_requested_callback): Remove
2477 references to continuations.
2478 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2479 * thread.c: Don't include "continuations.h".
2480 (clear_thread_inferior_resources): Remove references to
2485 * infcall.c (struct dummy_frame_context_saver): Delete.
2486 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2487 (dummy_frame_context_saver_drop)
2488 (dummy_frame_context_saver_cleanup)
2489 (dummy_frame_context_saver_get_regs)
2490 (dummy_frame_context_saver_setup): Delete.
2491 * infcall.h (dummy_frame_context_saver_drop)
2492 (dummy_frame_context_saver_cleanup)
2493 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2495 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2496 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2497 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2501 * breakpoint.c: Include "thread-fsm.h".
2502 (struct until_break_command_continuation_args): Delete.
2503 (struct until_break_fsm): New.
2504 (until_break_fsm_ops): New global.
2505 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2506 (until_break_command_continuation): Delete.
2507 (until_break_fsm_clean_up): New function.
2508 (until_break_fsm_async_reply_reason): New function.
2509 (until_break_command): Adjust to create an until_break_fsm instead
2511 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2513 * infcmd.c (struct until_next_fsm): New.
2514 (until_next_fsm_ops): New global.
2515 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2516 (until_next_continuation): Delete.
2517 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2519 (until_next_command): Adjust to create a new until_next_fsm
2520 instead of a continuation.
2524 * infcall.c: Include thread_fsm.h.
2525 (struct call_return_meta_info): New.
2526 (get_call_return_value): New function, factored out from
2527 call_function_by_hand_dummy.
2528 (struct call_thread_fsm): New.
2529 (call_thread_fsm_ops): New global.
2530 (new_call_thread_fsm, call_thread_fsm_should_stop)
2531 (call_thread_fsm_should_notify_stop): New functions.
2532 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2534 (call_function_by_hand_dummy): Create a new call_thread_fsm
2535 instance, associate it with the thread, and wait for the FSM to
2536 finish. If finished successfully, fetch the function's result
2537 value out of the FSM.
2538 * infrun.c (fetch_inferior_event): If the FSM says the stop
2539 shouldn't be notified, don't call normal_stop.
2540 (maybe_remove_breakpoints): New function, factored out from ...
2541 (normal_stop): ... here. Simplify.
2542 * infrun.h (maybe_remove_breakpoints): Declare.
2543 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2544 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2545 (thread_fsm_should_notify_stop): Declare.
2549 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2550 * breakpoint.c (handle_jit_event): Print debug output.
2551 (bpstat_what): Split event callback handling to ...
2552 (bpstat_run_callbacks): ... this new function.
2553 (momentary_bkpt_print_it): No longer handle bp_finish here.
2554 * breakpoint.h (bpstat_run_callbacks): Declare.
2555 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2556 <thread_fsm>: New field.
2557 (thread_cancel_execution_command): Declare.
2558 * infcmd.c: Include thread-fsm.h.
2559 (struct step_command_fsm): New.
2560 (step_command_fsm_ops): New global.
2561 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2562 (step_1): Adjust to use step_command_fsm_prepare and
2564 (struct step_1_continuation_args): Delete.
2565 (step_1_continuation): Delete.
2566 (step_command_fsm_should_stop): New function.
2567 (step_once): Delete.
2568 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2569 (prepare_one_step): New function, based on step_once.
2570 (until_next_command): Remove step_multi reference.
2571 (struct return_value_info): New.
2572 (print_return_value): Rename to ...
2573 (print_return_value_1): ... this. New struct return_value_info
2575 (print_return_value): Reimplement as wrapper around
2576 print_return_value_1.
2577 (struct finish_command_fsm): New.
2578 (finish_command_continuation): Delete.
2579 (finish_command_fsm_ops): New global.
2580 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2582 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2584 (finish_command_continuation_free_arg): Delete.
2585 (finish_command_fsm_async_reply_reason): New.
2586 (finish_backward, finish_forward): Change symbol parameter to a
2587 finish_command_fsm. Adjust.
2588 (finish_command): Create a finish_command_fsm. Adjust.
2589 * infrun.c: Include "thread-fsm.h".
2590 (clear_proceed_status_thread): Delete the thread's FSM.
2591 (infrun_thread_stop_requested_callback): Cancel the thread's
2593 (clean_up_just_stopped_threads_fsms): New function.
2594 (fetch_inferior_event): Handle the event_thread's should_stop
2595 method saying the command isn't done yet.
2596 (process_event_stop_test): Run breakpoint callbacks here.
2597 (print_stop_event): Rename to ...
2598 (print_stop_location): ... this.
2599 (restore_current_uiout_cleanup): New function.
2600 (print_stop_event): Reimplement.
2601 (normal_stop): No longer notify the end_stepping_range observers
2602 here handle "step N" nor "finish" here. No longer call
2603 print_stop_event here.
2604 * infrun.h (struct return_value_info): Forward declare.
2605 (print_return_value): Declare.
2606 (print_stop_event): Change prototype.
2607 * thread-fsm.c: New file.
2608 * thread-fsm.h: New file.
2609 * thread.c: Include "thread-fsm.h".
2610 (thread_cancel_execution_command): New function.
2611 (clear_thread_inferior_resources): Call it.
2612 * cli/cli-interp.c (cli_on_normal_stop): New function.
2613 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2615 * mi/mi-interp.c: Include "thread-fsm.h".
2616 (restore_current_uiout_cleanup): Delete.
2617 (mi_on_normal_stop): If the thread has an FSM associated, and it
2618 finished, ask it for the async-reply-reason to print. Always call
2619 print_stop_event here, regardless of the top-level interpreter.
2620 Check bpstat_what to tell whether an asynchronous breakpoint hit
2622 * tui/tui-interp.c (tui_on_normal_stop): New function.
2623 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2627 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2628 check whether the target can async.
2629 * inf-loop.c (inferior_event_handler): Only call target_async if
2630 the target can async.
2631 * infcall.c: Include top.h and interps.h.
2632 (run_inferior_call): For the interpreter to sync mode while
2633 running the infcall. Call wait_sync_command_done instead of
2634 wait_for_inferior plus normal_stop.
2635 * infcmd.c (prepare_execution_command): Don't check whether the
2636 target can async when running in the foreground.
2637 (step_1): Delete synchronous case handling.
2638 (step_once): Always install a continuation, even in sync mode.
2639 (until_next_command, finish_forward): Don't check whether the
2641 (attach_command_post_wait, notice_new_inferior): Always install a
2642 continuation, even in sync mode.
2643 * infrun.c (mark_infrun_async_event_handler): New function.
2644 (proceed): In sync mode, mark infrun's event source instead of
2645 waiting for events here.
2646 (fetch_inferior_event): If the target can't async, do a blocking
2648 (prepare_to_wait): In sync mode, mark infrun's event source.
2649 (infrun_async_inferior_event_handler): No longer bail out if the
2651 * infrun.h (mark_infrun_async_event_handler): New declaration.
2652 * linux-nat.c (linux_nat_wait_1): Remove calls to
2653 set_sigint_trap/clear_sigint_trap.
2654 (linux_nat_terminal_inferior): No longer check whether the target
2656 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2658 (mi_execute_command_input_handler): No longer check whether the
2659 target is async. Update and simplify comment.
2660 * target.c (default_target_wait): New function.
2661 * target.h (struct target_ops) <to_wait>: Now defaults to
2662 default_target_wait.
2663 (default_target_wait): Declare.
2664 * top.c (wait_sync_command_done): New function, factored out from
2666 (maybe_wait_sync_command_done): ... this.
2667 * top.h (wait_sync_command_done): Declare.
2668 * target-delegates.c: Regenerate.
2672 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2673 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2674 Remove include of sys/utsname.h.
2675 (linux_determine_kernel_ptr_bits): Remove.
2676 (linux_determine_kernel_start): New.
2677 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2679 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2680 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2682 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2687 * guile/guile-internal.h (as_a_scm_t_subr): New.
2688 * guile/guile.c (misc_guile_functions): Use it.
2689 * guile/scm-arch.c (arch_functions): Use it.
2690 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2692 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2693 * guile/scm-cmd.c (command_functions): Use it.
2694 * guile/scm-disasm.c (disasm_functions): Use it.
2695 * guile/scm-exception.c (exception_functions)
2696 (private_exception_functions): Use it.
2697 * guile/scm-frame.c (frame_functions)
2698 * guile/scm-gsmob.c (gsmob_functions): Use it.
2699 * guile/scm-iterator.c (iterator_functions): Use it.
2700 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2701 * guile/scm-math.c (math_functions): Use it.
2702 * guile/scm-objfile.c (objfile_functions): Use it.
2703 * guile/scm-param.c (parameter_functions): Use it.
2704 * guile/scm-ports.c (port_functions, private_port_functions): Use
2706 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2707 * guile/scm-progspace.c (pspace_functions): Use it.
2708 * guile/scm-string.c (string_functions): Use it.
2709 * guile/scm-symbol.c (symbol_functions): Use it.
2710 * guile/scm-symtab.c (symtab_functions): Use it.
2711 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2713 * guile/scm-value.c (value_functions): Use it.
2717 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2718 (tui_next_win): Likewise.
2719 (tui_prev_win): Likewise.
2720 (tui_partial_win_by_name): Likewise.
2721 (tui_init_generic_part): Likewise.
2722 (init_content_element): Likewise.
2723 (tui_del_window): Likewise.
2724 (tui_free_window): Likewise.
2725 (tui_del_data_windows): Likewise.
2726 (tui_free_data_content): Likewise.
2727 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2728 * tui/tui-regs.c (tui_show_register_group): Likewise.
2729 * tui/tui-win.c (tui_resize_all): Likewise.
2730 (tui_set_focus): Likewise.
2731 (tui_set_win_height): Likewise.
2732 (make_invisible_and_set_new_height): Likewise.
2733 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2734 * tui/tui-wingeneral.c (make_visible): Likewise.
2738 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2742 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2744 * dbxread.c (dbx_end_psymtab): Likewise.
2745 * gnu-nat.c (gnu_write_inferior): Likewise.
2746 * mdebugread.c (cross_ref): Likewise.
2747 * p-valprint.c (pascal_val_print): Likewise.
2748 * xcoffread.c (xcoff_end_psymtab): Likewise.
2752 * NEWS: Mention the aarch64 multi-arch debugging support.
2756 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2757 type instead of a TYPE_CODE_INT one for the string_char_type
2758 and the ada_primitive_type_char types.
2762 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2763 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2764 aarch64_linux_region_ok_for_watchpoint.
2765 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2767 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2772 * gdb_obstack.h (obstack_strdup): Declare.
2773 * gdb_obstack.c (obstack_strdup): Define.
2774 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2775 * gdbarch.c: Regenerate.
2776 * gdbarch.h: Regenerate.
2777 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2781 * gdbtypes.c (copy_type_recursive): Update documentation.
2785 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2790 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2794 * solib-svr4.c (solib_event_probe_action): Call
2795 get_probe_argument_count using TRY...CATCH.
2796 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2800 * probe.h (struct probe_ops) <get_probe_argument_count,
2801 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2802 the comment that the function can throw an exception.
2803 (get_probe_argument_count): Likewise.
2804 (evaluate_probe_argument): Likewise.
2805 * stap-probe.c (stap_get_opcode): Call error instead of
2807 (stap_get_expected_argument_type): Likewise. Add argument
2808 'probe'. Improve error message by mentioning the probe's name.
2809 (stap_parse_probe_arguments): Adjust call to
2810 stap_get_expected_argument_type.
2811 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2812 not zero. Call internal_error if GDB requests an argument but the
2813 probe has no arguments.
2817 * ada-lang.c (ada_resolve_function): Do not ask the user what
2818 match to use when in completion mode.
2822 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2827 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2828 call_abi using XSHAL_ABI macro.
2832 * symtab.h (struct symbol): Tweak comment.
2836 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2837 gdbarch obstack instead of on the heap. Update commentary
2846 * NEWS: Update entry about non-8-bits addressable memory.
2852 * solib.c (solib_global_lookup): Fetch arch from objfile,
2857 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2858 attempt to relocate a TLS variable offset.
2862 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2863 registered yet. Set inferior_ptid while calling target_read_memory.
2867 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2868 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2869 * linux-nat.c (check_stopped_by_breakpoint): Use
2870 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2874 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2875 thread was not yet discovered, use thread_from_lwp instead of
2876 calling thread_db_find_new_threads_1.
2880 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2885 * NEWS: Document support for non-8-bits addressable memory.
2889 * configure.ac: Remove AC_TYPE_SIGNAL call.
2890 * configure, config.in: Regenerate.
2894 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2895 * extension-priv.h: Include signal.h.
2896 (struct signal_handler) <handler>: Change type to sighandler_t.
2897 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2898 * inflow.c (sigint_ours, sigquit_ours): Change type to
2900 (child_terminal_inferior): Remove casts.
2901 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2902 (osig): Change type to sighandler_t.
2903 * nto-procfs.c (ofunc): Change type to sighandler_t.
2904 (procfs_wait): Remove casts.
2905 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2906 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2907 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2911 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2912 * gnulib/aclocal.m4: Renegerate.
2913 * gnulib/config.in: Renegerate.
2914 * gnulib/configure: Renegerate.
2915 * gnulib/import/Makefile.am: Update.
2916 * gnulib/import/Makefile.in: Regenerate.
2917 * gnulib/import/m4/gnulib-cache.m4: Update.
2918 * gnulib/import/m4/gnulib-comp.m4: Update.
2919 * gnulib/import/m4/signal_h.m4: New file.
2920 * gnulib/import/signal.in.h: New file.
2924 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2925 (MIN_MEMORY_PACKET_SIZE): New.
2926 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2927 (get_memory_packet_size): Adjust. No longer limit the max packet
2929 (set_memory_packet_size): Adjust, and remove dead code.
2930 (remote_check_symbols): Use xmalloc and a cleanup instead of
2932 (remote_packet_size): No longer cap the packet size.
2933 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2937 * compile/compile.c (compile_to_object): Mention language in
2942 * target.c (target_pre_inferior): Unset attach_flag.
2946 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2947 * gdbarch.c: Re-generate.
2951 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2952 function with the XNEW-family equivalent.
2953 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2954 * ada-exp.y (write_ambiguous_var): Likewise.
2955 * ada-lang.c (resolve_subexp): Likewise.
2956 (user_select_syms): Likewise.
2957 (assign_aggregate): Likewise.
2958 (ada_evaluate_subexp): Likewise.
2959 (cache_symbol): Likewise.
2960 * addrmap.c (allocate_key): Likewise.
2961 (addrmap_create_mutable): Likewise.
2962 * aix-thread.c (sync_threadlists): Likewise.
2963 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2964 (alpha_gdbarch_init): Likewise.
2965 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2966 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2967 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2968 * arm-tdep.c (push_stack_item): Likewise.
2969 (arm_displaced_step_copy_insn): Likewise.
2970 (arm_gdbarch_init): Likewise.
2971 (_initialize_arm_tdep): Likewise.
2972 * avr-tdep.c (push_stack_item): Likewise.
2973 * ax-general.c (new_agent_expr): Likewise.
2974 * block.c (block_initialize_namespace): Likewise.
2975 * breakpoint.c (alloc_counted_command_line): Likewise.
2976 (update_dprintf_command_list): Likewise.
2977 (parse_breakpoint_sals): Likewise.
2978 (decode_static_tracepoint_spec): Likewise.
2979 (until_break_command): Likewise.
2980 (clear_command): Likewise.
2981 (update_global_location_list): Likewise.
2982 (get_breakpoint_objfile_data) Likewise.
2983 * btrace.c (ftrace_new_function): Likewise.
2984 (btrace_set_insn_history): Likewise.
2985 (btrace_set_call_history): Likewise.
2986 * buildsym.c (add_symbol_to_list): Likewise.
2987 (record_pending_block): Likewise.
2988 (start_subfile): Likewise.
2989 (start_buildsym_compunit): Likewise.
2990 (push_subfile): Likewise.
2991 (end_symtab_get_static_block): Likewise.
2992 (buildsym_init): Likewise.
2993 * cli/cli-cmds.c (source_command): Likewise.
2994 * cli/cli-decode.c (add_cmd): Likewise.
2995 * cli/cli-script.c (build_command_line): Likewise.
2996 (setup_user_args): Likewise.
2997 (realloc_body_list): Likewise.
2998 (process_next_line): Likewise.
2999 (copy_command_lines): Likewise.
3000 * cli/cli-setshow.c (do_set_command): Likewise.
3001 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3002 * coffread.c (coff_locate_sections): Likewise.
3003 (coff_symtab_read): Likewise.
3004 (coff_read_struct_type): Likewise.
3005 * common/cleanups.c (make_my_cleanup2): Likewise.
3006 * common/common-exceptions.c (throw_it): Likewise.
3007 * common/filestuff.c (make_cleanup_close): Likewise.
3008 * common/format.c (parse_format_string): Likewise.
3009 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3010 * compile/compile-object-load.c (munmap_list_add): Likewise.
3011 (compile_object_load): Likewise.
3012 * compile/compile-object-run.c (compile_object_run): Likewise.
3013 * compile/compile.c (append_args): Likewise.
3014 * corefile.c (specify_exec_file_hook): Likewise.
3015 * cp-support.c (make_symbol_overload_list): Likewise.
3016 * cris-tdep.c (push_stack_item): Likewise.
3017 (cris_gdbarch_init): Likewise.
3018 * ctf.c (ctf_trace_file_writer_new): Likewise.
3019 * dbxread.c (init_header_files): Likewise.
3020 (add_new_header_file): Likewise.
3021 (init_bincl_list): Likewise.
3022 (dbx_end_psymtab): Likewise.
3023 (start_psymtab): Likewise.
3024 (dbx_end_psymtab): Likewise.
3025 * dcache.c (dcache_init): Likewise.
3026 * dictionary.c (dict_create_hashed): Likewise.
3027 (dict_create_hashed_expandable): Likewise.
3028 (dict_create_linear): Likewise.
3029 (dict_create_linear_expandable): Likewise.
3030 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3031 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3032 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3033 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3034 (decode_frame_entry_1): Likewise.
3035 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3036 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3037 * dwarf2read.c (dwarf2_has_info): Likewise.
3038 (create_signatured_type_table_from_index): Likewise.
3039 (dwarf2_read_index): Likewise.
3040 (dw2_get_file_names_reader): Likewise.
3041 (create_all_type_units): Likewise.
3042 (read_cutu_die_from_dwo): Likewise.
3043 (init_tu_and_read_dwo_dies): Likewise.
3044 (init_cutu_and_read_dies): Likewise.
3045 (create_all_comp_units): Likewise.
3046 (queue_comp_unit): Likewise.
3047 (inherit_abstract_dies): Likewise.
3048 (read_call_site_scope): Likewise.
3049 (dwarf2_add_field): Likewise.
3050 (dwarf2_add_typedef): Likewise.
3051 (dwarf2_add_member_fn): Likewise.
3052 (attr_to_dynamic_prop): Likewise.
3053 (abbrev_table_alloc_abbrev): Likewise.
3054 (abbrev_table_read_table): Likewise.
3055 (add_include_dir): Likewise.
3056 (add_file_name): Likewise.
3057 (dwarf_decode_line_header): Likewise.
3058 (dwarf2_const_value_attr): Likewise.
3059 (dwarf_alloc_block): Likewise.
3060 (parse_macro_definition): Likewise.
3061 (set_die_type): Likewise.
3062 (write_psymtabs_to_index): Likewise.
3063 (create_cus_from_index): Likewise.
3064 (dwarf2_create_include_psymtab): Likewise.
3065 (process_psymtab_comp_unit_reader): Likewise.
3066 (build_type_psymtab_dependencies): Likewise.
3067 (read_comp_units_from_section): Likewise.
3068 (compute_compunit_symtab_includes): Likewise.
3069 (create_dwo_unit_in_dwp_v1): Likewise.
3070 (create_dwo_unit_in_dwp_v2): Likewise.
3071 (read_func_scope): Likewise.
3072 (process_structure_scope): Likewise.
3073 (mark_common_block_symbol_computed): Likewise.
3074 (load_partial_dies): Likewise.
3075 (dwarf2_symbol_mark_computed): Likewise.
3076 * elfread.c (elf_symfile_segments): Likewise.
3077 (elf_read_minimal_symbols): Likewise.
3078 * environ.c (make_environ): Likewise.
3079 * eval.c (evaluate_subexp_standard): Likewise.
3080 * event-loop.c (create_file_handler): Likewise.
3081 (create_async_signal_handler): Likewise.
3082 (create_async_event_handler): Likewise.
3083 (create_timer): Likewise.
3084 * exec.c (build_section_table): Likewise.
3085 * fbsd-nat.c (fbsd_remember_child): Likewise.
3086 * fork-child.c (fork_inferior): Likewise.
3087 * frv-tdep.c (new_variant): Likewise.
3088 * gdbarch.sh (gdbarch_alloc): Likewise.
3089 (append_name): Likewise.
3090 * gdbtypes.c (rank_function): Likewise.
3091 (copy_type_recursive): Likewise.
3092 (add_dyn_prop): Likewise.
3093 * gnu-nat.c (make_proc): Likewise.
3094 (make_inf): Likewise.
3095 (gnu_write_inferior): Likewise.
3096 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3097 (build_std_type_info_type): Likewise.
3098 * guile/scm-param.c (compute_enum_list): Likewise.
3099 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3100 * guile/scm-value.c (gdbscm_value_call): Likewise.
3101 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3102 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3103 (read_unwind_info): Likewise.
3104 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3105 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3106 (call_function_by_hand_dummy): Likewise.
3107 * infcmd.c (step_once): Likewise.
3108 (finish_forward): Likewise.
3109 (attach_command): Likewise.
3110 (notice_new_inferior): Likewise.
3111 * inferior.c (add_inferior_silent): Likewise.
3112 * infrun.c (add_displaced_stepping_state): Likewise.
3113 (save_infcall_control_state): Likewise.
3114 (save_inferior_ptid): Likewise.
3115 (_initialize_infrun): Likewise.
3116 * jit.c (bfd_open_from_target_memory): Likewise.
3117 (jit_gdbarch_data_init): Likewise.
3118 * language.c (add_language): Likewise.
3119 * linespec.c (decode_line_2): Likewise.
3120 * linux-nat.c (add_to_pid_list): Likewise.
3121 (add_initial_lwp): Likewise.
3122 * linux-thread-db.c (add_thread_db_info): Likewise.
3123 (record_thread): Likewise.
3124 (info_auto_load_libthread_db): Likewise.
3125 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3127 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3128 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3129 * macrocmd.c (macro_define_command): Likewise.
3130 * macroexp.c (gather_arguments): Likewise.
3131 * macroscope.c (sal_macro_scope): Likewise.
3132 * macrotab.c (new_macro_table): Likewise.
3133 * mdebugread.c (push_parse_stack): Likewise.
3134 (parse_partial_symbols): Likewise.
3135 (parse_symbol): Likewise.
3136 (psymtab_to_symtab_1): Likewise.
3137 (new_block): Likewise.
3138 (new_psymtab): Likewise.
3139 (mdebug_build_psymtabs): Likewise.
3140 (add_pending): Likewise.
3141 (elfmdebug_build_psymtabs): Likewise.
3142 * mep-tdep.c (mep_gdbarch_init): Likewise.
3143 * mi/mi-main.c (mi_execute_command): Likewise.
3144 * mi/mi-parse.c (mi_parse_argv): Likewise.
3145 * minidebug.c (lzma_open): Likewise.
3146 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3147 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3148 * mips-tdep.c (mips_gdbarch_init): Likewise.
3149 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3150 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3151 * mt-tdep.c (mt_registers_info): Likewise.
3152 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3153 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3154 (linux_enable_pt): Likewise.
3155 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3156 (linux_xfer_osdata_processgroups): Likewise.
3157 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3158 * nto-procfs.c (procfs_meminfo): Likewise.
3159 * objc-lang.c (start_msglist): Likewise.
3160 (selectors_info): Likewise.
3161 (classes_info): Likewise.
3162 (find_methods): Likewise.
3163 * objfiles.c (allocate_objfile): Likewise.
3164 (update_section_map): Likewise.
3165 * osabi.c (gdbarch_register_osabi): Likewise.
3166 (gdbarch_register_osabi_sniffer): Likewise.
3167 * parse.c (start_arglist): Likewise.
3168 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3169 (hwdebug_insert_point): Likewise.
3170 * printcmd.c (display_command): Likewise.
3171 (ui_printf): Likewise.
3172 * procfs.c (create_procinfo): Likewise.
3173 (load_syscalls): Likewise.
3174 (proc_get_LDT_entry): Likewise.
3175 (proc_update_threads): Likewise.
3176 * prologue-value.c (make_pv_area): Likewise.
3177 (pv_area_store): Likewise.
3178 * psymtab.c (extend_psymbol_list): Likewise.
3179 (init_psymbol_list): Likewise.
3180 (allocate_psymtab): Likewise.
3181 * python/py-inferior.c (add_thread_object): Likewise.
3182 * python/py-param.c (compute_enum_values): Likewise.
3183 * python/py-value.c (valpy_call): Likewise.
3184 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3185 * python/python.c (ensure_python_env): Likewise.
3186 * record-btrace.c (record_btrace_start_replaying): Likewise.
3187 * record-full.c (record_full_reg_alloc): Likewise.
3188 (record_full_mem_alloc): Likewise.
3189 (record_full_end_alloc): Likewise.
3190 (record_full_core_xfer_partial): Likewise.
3191 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3192 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3193 * remote-notif.c (remote_notif_state_allocate): Likewise.
3194 * remote.c (demand_private_info): Likewise.
3195 (remote_notif_stop_alloc_reply): Likewise.
3196 (remote_enable_btrace): Likewise.
3197 * reverse.c (save_bookmark_command): Likewise.
3198 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3199 * rx-tdep.c (rx_gdbarch_init): Likewise.
3200 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3201 * ser-go32.c (dos_get_tty_state): Likewise.
3202 (dos_copy_tty_state): Likewise.
3203 * ser-mingw.c (ser_windows_open): Likewise.
3204 (ser_console_wait_handle): Likewise.
3205 (ser_console_get_tty_state): Likewise.
3206 (make_pipe_state): Likewise.
3207 (net_windows_open): Likewise.
3208 * ser-unix.c (hardwire_get_tty_state): Likewise.
3209 (hardwire_copy_tty_state): Likewise.
3210 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3211 * solib-dsbt.c (dsbt_current_sos): Likewise.
3212 (dsbt_relocate_main_executable): Likewise.
3213 * solib-frv.c (frv_current_sos): Likewise.
3214 (frv_relocate_main_executable): Likewise.
3215 * solib-spu.c (spu_bfd_fopen): Likewise.
3216 * solib-svr4.c (lm_info_read): Likewise.
3217 (svr4_copy_library_list): Likewise.
3218 (svr4_default_sos): Likewise.
3219 * source.c (find_source_lines): Likewise.
3220 (line_info): Likewise.
3221 (add_substitute_path_rule): Likewise.
3222 * spu-linux-nat.c (spu_bfd_open): Likewise.
3223 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3224 * stabsread.c (dbx_lookup_type): Likewise.
3225 (read_type): Likewise.
3226 (read_member_functions): Likewise.
3227 (read_struct_fields): Likewise.
3228 (read_baseclasses): Likewise.
3229 (read_args): Likewise.
3230 (_initialize_stabsread): Likewise.
3231 * stack.c (func_command): Likewise.
3232 * stap-probe.c (handle_stap_probe): Likewise.
3233 * symfile.c (addrs_section_sort): Likewise.
3234 (addr_info_make_relative): Likewise.
3235 (load_section_callback): Likewise.
3236 (add_symbol_file_command): Likewise.
3237 (init_filename_language_table): Likewise.
3238 * symtab.c (create_filename_seen_cache): Likewise.
3239 (sort_search_symbols_remove_dups): Likewise.
3240 (search_symbols): Likewise.
3241 * target.c (make_cleanup_restore_target_terminal): Likewise.
3242 * thread.c (new_thread): Likewise.
3243 (enable_thread_stack_temporaries): Likewise.
3244 (make_cleanup_restore_current_thread): Likewise.
3245 (thread_apply_all_command): Likewise.
3246 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3247 * top.c (gdb_readline_wrapper): Likewise.
3248 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3249 * tracepoint.c (trace_find_line_command): Likewise.
3250 (all_tracepoint_actions_and_cleanup): Likewise.
3251 (make_cleanup_restore_current_traceframe): Likewise.
3252 (get_uploaded_tp): Likewise.
3253 (get_uploaded_tsv): Likewise.
3254 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3255 (tui_alloc_win_info): Likewise.
3256 (tui_alloc_content): Likewise.
3257 (tui_add_content_elements): Likewise.
3258 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3259 (tui_set_disassem_content): Likewise.
3260 * ui-file.c (ui_file_new): Likewise.
3261 (stdio_file_new): Likewise.
3262 (tee_file_new): Likewise.
3263 * utils.c (make_cleanup_restore_integer): Likewise.
3264 (add_internal_problem_command): Likewise.
3265 * v850-tdep.c (v850_gdbarch_init): Likewise.
3266 * valops.c (find_oload_champ): Likewise.
3267 * value.c (allocate_value_lazy): Likewise.
3268 (record_latest_value): Likewise.
3269 (create_internalvar): Likewise.
3270 * varobj.c (install_variable): Likewise.
3271 (new_variable): Likewise.
3272 (new_root_variable): Likewise.
3274 (_initialize_varobj): Likewise.
3275 * windows-nat.c (windows_make_so): Likewise.
3276 * x86-nat.c (x86_add_process): Likewise.
3277 * xcoffread.c (arrange_linetable): Likewise.
3278 (allocate_include_entry): Likewise.
3279 (process_linenos): Likewise.
3280 (SYMBOL_DUP): Likewise.
3281 (xcoff_start_psymtab): Likewise.
3282 (xcoff_end_psymtab): Likewise.
3283 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3284 * xtensa-tdep.c (xtensa_register_type): Likewise.
3285 * gdbarch.c: Regenerate.
3286 * gdbarch.h: Regenerate.
3290 * infrun.c (follow_exec): Re-order operations for
3291 handling follow-exec-mode "new".
3292 (handle_inferior_event_1): Assign ecs->event_thread
3293 to the current thread.
3294 * remote.c (get_remote_arch_state): Add an assertion.
3298 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3303 * defs.h (maybe_quit): Declare.
3304 (QUIT): Now calls maybe_quit.
3305 * event-loop.c (clear_async_signal_handler)
3306 (async_signal_handler_is_marked): New functions.
3307 * event-loop.h (async_signal_handler_is_marked)
3308 (clear_async_signal_handler): New declarations.
3309 * remote.c (remote_check_pending_interrupt): New function.
3310 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3311 longer check whether the target is async. If waiting for a stop
3312 reply, and a Ctrl-C as been sent to the target, offer to
3313 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3314 Otherwise do not disconnect and throw a quit.
3315 (_initialize_remote): Install remote_check_pending_interrupt as
3316 to_check_pending_interrupt.
3317 * target.c (target_check_pending_interrupt): New function.
3318 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3320 (target_check_pending_interrupt): New declaration.
3321 * utils.c (maybe_quit): New function.
3322 * target-delegates.c: Regenerate.
3326 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3327 Rename local variable pid to tid, and get lwpid of lwp. Update
3332 * ada-lang.c (ada_read_var_value): Add a var_block argument
3333 and pass it to default_read_var_value.
3334 * block.c (block_static_link): New accessor.
3335 * block.h (block_static_link): Declare it.
3336 * buildsym.c (finish_block_internal): Add a static_link
3337 argument. If there is a static link, associate it to the new
3339 (finish_block): Add a static link argument and pass it to
3340 finish_block_internal.
3341 (end_symtab_get_static_block): Update calls to finish_block and
3342 to finish_block_internal.
3343 (end_symtab_with_blockvector): Update call to
3344 finish_block_internal.
3345 * buildsym.h: Forward-declare struct dynamic_prop.
3346 (struct context_stack): Add a static_link field.
3347 (finish_block): Add a static link argument.
3348 * c-exp.y: Remove an obsolete comment (evaluation of variables
3349 already start from the selected frame, and now they climb *up*
3350 the call stack) and propagate the block information to the
3351 produced expression.
3352 * d-exp.y: Likewise.
3353 * f-exp.y: Likewise.
3354 * go-exp.y: Likewise.
3355 * jv-exp.y: Likewise.
3356 * m2-exp.y: Likewise.
3357 * p-exp.y: Likewise.
3358 * coffread.c (coff_symtab_read): Update calls to finish_block.
3359 * dbxread.c (process_one_symbol): Likewise.
3360 * xcoffread.c (read_xcoff_symtab): Likewise.
3361 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3362 "sym" parameter to struct block_symbol, update its uses and pass
3363 its block to calls to read_var_value.
3364 (convert_symbol_sym): Update the calls to convert_one_symbol.
3365 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3366 call to read_var_value.
3367 * dwarf2loc.c (block_op_get_frame_base): New.
3368 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3369 get_frame_base method.
3370 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3371 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3372 instead of the selected frame in order to evaluate the
3374 (dwarf2_evaluate_property): Add a frame argument. Update call
3375 to dwarf2_locexpr_baton_eval to provide a frame in available and
3376 to handle the absence of address stack.
3377 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3378 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3380 (read_func_scope): Record any available static link description.
3381 Update call to finish_block.
3382 (read_lexical_block_scope): Update call to finish_block.
3383 * findvar.c (follow_static_link): New.
3384 (get_hosting_frame): New.
3385 (default_read_var_value): Add a var_block argument. Use
3386 get_hosting_frame to handle non-local references.
3387 (read_var_value): Add a var_block argument and pass it to the
3388 LA_READ_VAR_VALUE method.
3389 * gdbtypes.c (resolve_dynamic_range): Update calls to
3390 dwarf2_evaluate_property.
3391 (resolve_dynamic_type_internal): Likewise.
3392 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3393 read_var_value, passing it the block coming from symbol lookup.
3394 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3395 read_var_value (TODO).
3396 * infcmd.c (finish_command_continuation): Update call to
3397 read_var_value, passing it the block coming from symbol lookup.
3398 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3399 * language.h (struct language_defn): Add a var_block argument to
3400 the LA_READ_VAR_VALUE method.
3401 * objfiles.c (struct static_link_htab_entry): New.
3402 (static_link_htab_entry_hash): New.
3403 (static_link_htab_entry_eq): New.
3404 (objfile_register_static_link): New.
3405 (objfile_lookup_static_link): New.
3406 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3407 * objfiles.h: Include hashtab.h.
3408 (struct objfile): Add a static_links field.
3409 (objfile_register_static_link): New.
3410 (objfile_lookup_static_link): New.
3411 * printcmd.c (print_variable_and_value): Update call to
3413 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3414 * python/py-frame.c (frapy_read_var): Update call to
3415 read_var_value, passing it the block coming from symbol lookup.
3416 * python/py-framefilter.c (extract_sym): Add a sym_block
3417 parameter and set the pointed value to NULL (TODO).
3418 (enumerate_args): Update call to extract_sym.
3419 (enumerate_locals): Update calls to extract_sym and to
3421 * python/py-symbol.c (sympy_value): Update call to
3422 read_var_value (TODO).
3423 * stack.c (read_frame_local): Update call to read_var_value.
3424 (read_frame_arg): Likewise.
3425 (return_command): Likewise.
3426 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3428 (struct symbol): Add a block field.
3429 (SYMBOL_BLOCK): New accessor.
3430 * valops.c (value_of_variable): Remove frame/block handling and
3431 pass the block argument to read_var_value, which does this job
3433 (value_struct_elt_for_reference): Update calls to
3435 (value_of_this): Pass the block found to read_var_value.
3436 * value.h (read_var_value): Add a var_block argument.
3437 (default_read_var_value): Likewise.
3441 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3442 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3443 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3447 * Makefile.in (aarch64-liunx.o): New rule.
3448 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3449 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3450 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3451 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3453 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3454 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3455 * nat/aarch64-linux.c: New file.
3456 * nat/aarch64-linux.h: New file.
3460 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3461 lwp_arch_private_info and ptid_of_lwp.
3465 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3466 Move it to nat/aarch64-linux-hw-point.c.
3467 (debug_reg_change_callback): Likewise.
3468 (aarch64_notify_debug_reg_change): :Likewise.
3469 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3470 (aarch64_dr_update_callback_param): New.
3471 (debug_reg_change_callback): New function.
3472 (aarch64_notify_debug_reg_change): Likewise.
3473 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3474 Remove the declaration.
3478 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3479 Call current_lwp_ptid.
3483 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3488 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3489 ptid_get_pid rather than ptid_get_lwp.
3493 * NEWS (New commands): Mention set/show remote
3494 multiprocess-extensions-packet.
3495 * remote.c (remote_query_supported): Only tell the server to use
3496 the multiprocess extensions if the user hasn't force-disabled them
3497 with "set remote multiprocess-extensions-packet off".
3501 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3502 1029a8112290f6eee9d7878a391c49db42c999bd.
3503 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3505 * gnulib/import/Makefile.am: Update.
3506 * gnulib/import/Makefile.in: Update.
3507 * gnulib/import/alloca.in.h: Update.
3508 * gnulib/import/basename-lgpl.c: Update.
3509 * gnulib/import/canonicalize-lgpl.c: Update.
3510 * gnulib/import/config.charset: Update.
3511 * gnulib/import/dirent.in.h: Update.
3512 * gnulib/import/dirfd.c: Update.
3513 * gnulib/import/dirname-lgpl.c: Update.
3514 * gnulib/import/dirname.h: Update.
3515 * gnulib/import/dosname.h: Update.
3516 * gnulib/import/errno.in.h: Update.
3517 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3518 * gnulib/import/extra/snippet/c++defs.h: Update.
3519 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3520 * gnulib/import/extra/update-copyright: Update.
3521 * gnulib/import/float+.h: Update.
3522 * gnulib/import/float.c: Update.
3523 * gnulib/import/float.in.h: Update.
3524 * gnulib/import/fnmatch.c: Update.
3525 * gnulib/import/fnmatch.in.h: Update.
3526 * gnulib/import/fnmatch_loop.c: Update.
3527 * gnulib/import/fpucw.h: Update.
3528 * gnulib/import/frexp.c: Update.
3529 * gnulib/import/frexpl.c: Update.
3530 * gnulib/import/gettimeofday.c: Update.
3531 * gnulib/import/inttypes.in.h: Update.
3532 * gnulib/import/isnan.c: Update.
3533 * gnulib/import/isnand-nolibm.h: Update.
3534 * gnulib/import/isnand.c: Update.
3535 * gnulib/import/isnanl-nolibm.h: Update.
3536 * gnulib/import/isnanl.c: Update.
3537 * gnulib/import/itold.c: Update.
3538 * gnulib/import/localcharset.c: Update.
3539 * gnulib/import/localcharset.h: Update.
3540 * gnulib/import/lstat.c: Update.
3541 * gnulib/import/m4/00gnulib.m4: Update.
3542 * gnulib/import/m4/absolute-header.m4: Update.
3543 * gnulib/import/m4/alloca.m4: Update.
3544 * gnulib/import/m4/canonicalize.m4: Update.
3545 * gnulib/import/m4/codeset.m4: Update.
3546 * gnulib/import/m4/configmake.m4: Update.
3547 * gnulib/import/m4/dirent_h.m4: Update.
3548 * gnulib/import/m4/dirfd.m4: Update.
3549 * gnulib/import/m4/dirname.m4: Update.
3550 * gnulib/import/m4/double-slash-root.m4: Update.
3551 * gnulib/import/m4/eealloc.m4: Update.
3552 * gnulib/import/m4/errno_h.m4: Update.
3553 * gnulib/import/m4/exponentd.m4: Update.
3554 * gnulib/import/m4/exponentl.m4: Update.
3555 * gnulib/import/m4/extensions.m4: Update.
3556 * gnulib/import/m4/extern-inline.m4: Update.
3557 * gnulib/import/m4/fcntl-o.m4: Update.
3558 * gnulib/import/m4/float_h.m4: Update.
3559 * gnulib/import/m4/fnmatch.m4: Update.
3560 * gnulib/import/m4/fpieee.m4: Update.
3561 * gnulib/import/m4/frexp.m4: Update.
3562 * gnulib/import/m4/frexpl.m4: Update.
3563 * gnulib/import/m4/gettimeofday.m4: Update.
3564 * gnulib/import/m4/glibc21.m4: Update.
3565 * gnulib/import/m4/gnulib-cache.m4: Update.
3566 * gnulib/import/m4/gnulib-common.m4: Update.
3567 * gnulib/import/m4/gnulib-comp.m4: Update.
3568 * gnulib/import/m4/gnulib-tool.m4: Update.
3569 * gnulib/import/m4/include_next.m4: Update.
3570 * gnulib/import/m4/inttypes-pri.m4: Update.
3571 * gnulib/import/m4/inttypes.m4: Update.
3572 * gnulib/import/m4/isnand.m4: Update.
3573 * gnulib/import/m4/isnanl.m4: Update.
3574 * gnulib/import/m4/largefile.m4: Update.
3575 * gnulib/import/m4/localcharset.m4: Update.
3576 * gnulib/import/m4/locale-fr.m4: Update.
3577 * gnulib/import/m4/locale-ja.m4: Update.
3578 * gnulib/import/m4/locale-zh.m4: Update.
3579 * gnulib/import/m4/longlong.m4: Update.
3580 * gnulib/import/m4/lstat.m4: Update.
3581 * gnulib/import/m4/malloc.m4: Update.
3582 * gnulib/import/m4/malloca.m4: Update.
3583 * gnulib/import/m4/math_h.m4: Update.
3584 * gnulib/import/m4/mbrtowc.m4: Update.
3585 * gnulib/import/m4/mbsinit.m4: Update.
3586 * gnulib/import/m4/mbsrtowcs.m4: Update.
3587 * gnulib/import/m4/mbstate_t.m4: Update.
3588 * gnulib/import/m4/memchr.m4: Update.
3589 * gnulib/import/m4/memmem.m4: Update.
3590 * gnulib/import/m4/mmap-anon.m4: Update.
3591 * gnulib/import/m4/multiarch.m4: Update.
3592 * gnulib/import/m4/nocrash.m4: Update.
3593 * gnulib/import/m4/off_t.m4: Update.
3594 * gnulib/import/m4/pathmax.m4: Update.
3595 * gnulib/import/m4/readlink.m4: Update.
3596 * gnulib/import/m4/rename.m4: Update.
3597 * gnulib/import/m4/rmdir.m4: Update.
3598 * gnulib/import/m4/ssize_t.m4: Update.
3599 * gnulib/import/m4/stat.m4: Update.
3600 * gnulib/import/m4/stdbool.m4: Update.
3601 * gnulib/import/m4/stddef_h.m4: Update.
3602 * gnulib/import/m4/stdint.m4: Update.
3603 * gnulib/import/m4/stdio_h.m4: Update.
3604 * gnulib/import/m4/stdlib_h.m4: Update.
3605 * gnulib/import/m4/string_h.m4: Update.
3606 * gnulib/import/m4/strstr.m4: Update.
3607 * gnulib/import/m4/strtok_r.m4: Update.
3608 * gnulib/import/m4/sys_socket_h.m4: Update.
3609 * gnulib/import/m4/sys_stat_h.m4: Update.
3610 * gnulib/import/m4/sys_time_h.m4: Update.
3611 * gnulib/import/m4/sys_types_h.m4: Update.
3612 * gnulib/import/m4/time_h.m4: Update.
3613 * gnulib/import/m4/unistd_h.m4: Update.
3614 * gnulib/import/m4/warn-on-use.m4: Update.
3615 * gnulib/import/m4/wchar_h.m4: Update.
3616 * gnulib/import/m4/wchar_t.m4: Update.
3617 * gnulib/import/m4/wctype_h.m4: Update.
3618 * gnulib/import/m4/wint_t.m4: Update.
3619 * gnulib/import/malloc.c: Update.
3620 * gnulib/import/malloca.c: Update.
3621 * gnulib/import/malloca.h: Update.
3622 * gnulib/import/math.in.h: Update.
3623 * gnulib/import/mbrtowc.c: Update.
3624 * gnulib/import/mbsinit.c: Update.
3625 * gnulib/import/mbsrtowcs-impl.h: Update.
3626 * gnulib/import/mbsrtowcs-state.c: Update.
3627 * gnulib/import/mbsrtowcs.c: Update.
3628 * gnulib/import/memchr.c: Update.
3629 * gnulib/import/memmem.c: Update.
3630 * gnulib/import/pathmax.h: Update.
3631 * gnulib/import/readlink.c: Update.
3632 * gnulib/import/ref-add.sin: Update.
3633 * gnulib/import/ref-del.sin: Update.
3634 * gnulib/import/rename.c: Update.
3635 * gnulib/import/rmdir.c: Update.
3636 * gnulib/import/same-inode.h: Update.
3637 * gnulib/import/stat.c: Update.
3638 * gnulib/import/stdbool.in.h: Update.
3639 * gnulib/import/stddef.in.h: Update.
3640 * gnulib/import/stdint.in.h: Update.
3641 * gnulib/import/stdio.c: Update.
3642 * gnulib/import/stdio.in.h: Update.
3643 * gnulib/import/stdlib.in.h: Update.
3644 * gnulib/import/str-two-way.h: Update.
3645 * gnulib/import/streq.h: Update.
3646 * gnulib/import/string.in.h: Update.
3647 * gnulib/import/stripslash.c: Update.
3648 * gnulib/import/strnlen1.c: Update.
3649 * gnulib/import/strnlen1.h: Update.
3650 * gnulib/import/strstr.c: Update.
3651 * gnulib/import/strtok_r.c: Update.
3652 * gnulib/import/sys_stat.in.h: Update.
3653 * gnulib/import/sys_time.in.h: Update.
3654 * gnulib/import/sys_types.in.h: Update.
3655 * gnulib/import/time.in.h: Update.
3656 * gnulib/import/unistd.in.h: Update.
3657 * gnulib/import/verify.h: Update.
3658 * gnulib/import/wchar.in.h: Update.
3659 * gnulib/import/wctype.in.h: Update.
3660 * gnulib/import/gettimeofday.c: New file.
3661 * gnulib/import/m4/absolute-header.m4: New file.
3662 * gnulib/import/m4/gettimeofday.m4: New file.
3663 * gnulib/import/m4/sys_socket_h.m4: New file.
3664 * gnulib/import/m4/sys_time_h.m4: New file.
3665 * gnulib/import/stdio.c: Delete file.
3666 * gnulib/import/sys_time.in.h: New file.
3670 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3671 * common/gdb_sys_time.h: New file.
3672 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3673 * gdb_select.h: Likewise.
3674 * gdb_usleep.c: Likewise.
3675 * maint.c: Likewise.
3676 * mi/mi-main.c: Likewise.
3677 * mi/mi-parse.h: Likewise.
3678 * remote-fileio.c: Likewise.
3679 * remote-m32r-sdi.c: Likewise.
3680 * remote.c: Likewise.
3681 * ser-base.c: Likewise.
3682 * ser-pipe.c: Likewise.
3683 * ser-tcp.c: Likewise.
3684 * ser-unix.c: Likewise.
3685 * symfile.c: Likewise.
3686 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3687 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3688 * utils.c: Likewise.
3692 * NEWS: Mention removed support for the various ROM monitors.
3693 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3694 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3695 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3697 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3699 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3700 dsrec.o from gdb_target_obs.
3701 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3702 from gdb_target_obs.
3703 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3705 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3706 dink32-rom.o from gdb_target_obs.
3707 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3708 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3709 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3710 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3714 * frame.c (null_frame_id): Explicitly zero-initialize.
3718 * dwarf2read.c (struct dwarf2_section_info): Rename field
3719 'asection' to 'section'.
3720 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3721 (dwarf2_locate_sections, dwarf2_locate_sections)
3722 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3723 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3724 (dwarf2_locate_v2_dwp_sections): Adjust.
3728 * top.h (gdb_in_secondary_prompt_p): Declare.
3729 * top.c (gdb_secondary_prompt_depth): Define.
3730 (gdb_in_secondary_prompt_p): Define.
3731 (gdb_readline_wrapper_cleanup): Decrement
3732 gdb_secondary_prompt_depth.
3733 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3734 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3735 are in a secondary prompt.
3739 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3744 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3748 * target.h (struct target_ops) <to_fileio_open>: New argument
3749 warn_if_slow. Update comment. All implementations updated.
3750 (target_fileio_open_warn_if_slow): New declaration.
3751 * target.c (target_fileio_open): Renamed as...
3752 (target_fileio_open_1): ...this. New argument warn_if_slow.
3753 Pass warn_if_slow to implementation. Update debug printing.
3754 (target_fileio_open): New function.
3755 (target_fileio_open_warn_if_slow): Likewise.
3756 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3757 target_fileio_open_warn_if_slow.
3761 * nat/linux-namespaces.c (linux_mntns_access_fs):
3762 Do not overwrite old_chain.
3766 * arch/xtensa.h: New file.
3767 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3768 (ps_get_thread_area): New function.
3769 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3770 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3771 * xtensa-tdep.c (osabi.h): New #include.
3772 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3773 xtensa-specific hooks.
3774 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3775 member and move the structure to arch/xtensa.h.
3779 * remote.c (struct readahead_cache): New.
3780 (struct remote_state) <readahead_cache>: New field.
3781 (remote_open_1): Invalidate the cache.
3782 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3784 (remote_hostio_pwrite): Invalidate the readahead cache.
3785 (remote_hostio_pread): Rename to ...
3786 (remote_hostio_pread_vFile): ... this.
3787 (remote_hostio_pread_from_cache): New function.
3788 (remote_hostio_pread): Reimplement.
3789 (remote_hostio_close): Invalidate the readahead cache.
3794 * procfs.c: Include "filestuff.h".
3798 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3800 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3801 cur_line or curch, instead call wmove().
3802 (init_win_info) [CMD_WIN]: Likewise.
3803 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3804 instead call getcury().
3805 (tui_redisplay_readline): Don't set cur_line or curch.
3806 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3808 (tui_cont_sig): Remove call to wmove.
3809 (tui_getc): Don't read cur_line or curch, instead call getcury()
3810 or getyx(). Don't set curch.
3811 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3812 set cur_line or curch. Always move cursor to (0,0).
3816 * infrun.c (print_target_wait_results): Make extern.
3817 * infrun.h (print_target_wait_results): Declare.
3818 * remote.c (set_stop_requested_callback): Delete.
3819 (process_initial_stop_replies): New function.
3820 (remote_start_remote): Use it.
3821 (stop_reply_queue_length): New function.
3825 * dwarf2read.c (process_full_comp_unit): To tell whether
3826 start_subfile managed to deduce a language, test for
3827 language_unknown instead of language_c.
3831 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3836 * dwarf2read.c (dwarf2_string_attr): New function.
3837 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3838 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3839 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3840 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3841 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3847 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3849 * mi/mi-out.c: #include "vec.h".
3850 (ui_filep): New type.
3851 (DEV_VEC_P (ui_filep)): New type.
3852 (struct ui_out_data) <buffer, original_buffer>: Delete.
3853 (struct ui_out_data) <streams>: New member.
3854 (mi_ui_out_impl): Add data_destroy field.
3855 (mi_field_string, mi_field_fmt): Update.
3856 (mi_flush, mi_redirect, field_separator): Update.
3857 (mi_open, mi_close): Update.
3858 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3859 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3860 (mi_out_new): Call mi_out_data_ctor.
3864 * remote.c (strprefix): New.
3865 (remote_parse_stop_reply): Use strprefix instead of strncmp
3866 to ensure exact match of keyword.
3870 * gdb_bfd.c (debug_bfd_cache): New variable.
3871 (show_bfd_cache_debug): New function.
3872 (gdb_bfd_open): Add debug logging.
3873 (gdb_bfd_ref): Likewise.
3874 (gdb_bfd_unref): Likewise.
3875 (_initialize_gdb_bfd): Add new set/show command.
3876 * NEWS: Mention new command.
3880 * gdb_bfd.c (bfd_sharing): New variable.
3881 (show_bfd_sharing): New function.
3882 (gdb_bfd_open): Check bfd_sharing variable.
3883 (_initialize_gdb_bfd): Add new set/show command.
3884 * NEWS: Mention new command.
3888 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3890 (struct gdb_bfd_cache_search): Likewise.
3891 (eq_bfd): Compare the size, inode, and device id fields.
3892 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3893 (gdb_bfd_ref): Likewise.
3894 (gdb_bfd_unref): Likewise.
3898 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3899 target implements to_always_non_stop_p, call it.
3900 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3901 (x86_linux_create_target): Install it as to_always_non_stop_p
3906 * ui-out.c (default_ui_out_impl): Add comment.
3910 * d-exp.y (type_aggregate_p): New function.
3911 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3912 (classify_inner_name): Likewise.
3913 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3917 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3919 (add_psymbol_to_list): Ditto.
3923 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3924 updated. Call end_psymtab_common.
3925 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3927 (build_type_psymtabs_reader): Ditto.
3928 * psympriv.h (sort_pst_symbols): Delete.
3929 (end_psymtab_common): Declare.
3930 * psymtab.c (sort_pst_symbols): Make static.
3931 (end_psymtab_common): New function.
3932 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3936 * defs.h (LANGUAGE_BITS): Define.
3937 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3938 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3939 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3940 (minimal_symbol_type): Add nr_minsym_types.
3941 (MINSYM_TYPE_BITS): Define.
3942 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3943 (domain_enum_tag): Add NR_DOMAINS.
3944 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3945 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3949 * objfiles.h: Whitespace cleanup.
3950 * psympriv.h: Whitespace cleanup.
3951 * psymtab.c: Whitespace/coding convention cleanup.
3955 * inferior.c (detach_inferior_command): Don't call
3956 any_thread_of_process when pid is 0.
3957 (kill_inferior_command): Likewise.
3962 * NEWS: Document new /s modifier for the disassemble command.
3963 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3964 (_initialize_cli_cmds): Update online docs of disassemble command.
3965 * disasm.c: #include "source.h".
3966 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3968 (dis_line_entry): New struct.
3969 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3970 (allocate_dis_line_table): New functions.
3971 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3972 (dump_insns): New arg end_pc. All callers updated.
3973 (do_mixed_source_and_assembly_deprecated): Renamed from
3974 do_mixed_source_and_assembly. All callers updated.
3975 (do_mixed_source_and_assembly): New function.
3976 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3977 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3978 DISASSEMBLY_SOURCE. All uses updated.
3979 (DISASSEMBLY_SOURCE): New macro.
3980 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3984 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3985 `typename' to `type_name' to avoid C++ reserved word.
3989 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3990 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3995 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3996 xstrprintf instead of malloc and sprintf.
3997 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3998 (lex_one_token): Likewise.
4002 * solib-svr4.c (read_program_header): Add base_addr argument to
4003 report the runtime address of the segment.
4004 (find_program_interpreter): Update read_program_header call to pass
4005 a NULL pointer for the new argument.
4006 (scan_dyntag): Add ptr_addr argument to report the runtime address
4008 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4009 read_program_header to get the base address of the dynamic segment.
4010 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4011 read_program_header.
4012 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4016 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4020 * d-exp.y (%union): Add voidval.
4021 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4022 name in the lexing stage.
4023 (PostfixExpression): Move symbol completion handling in grammar here
4024 from PrimaryExpression.
4025 (PrimaryExpression): Move routines to handle resolving identifier
4026 tokens in the grammar here from push_expression_name.
4027 (IdentifierExp): Remove the handling of alternating '.' and identifier
4029 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4030 (BasicType): Remove C-style typename rules.
4031 (d_type_from_name, d_module_from_name, push_variable)
4032 (push_fieldnames, push_type_name, push_module_name)
4033 (push_expression_name): Remove.
4034 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4035 (token_and_value): New type.
4036 (token_fifo, popping, name_obstack): New globals.
4037 (classify_name): New function.
4038 (classify_inner_name): Likewise.
4040 (d_parse): Initialize token_fifo, popping and name_obstack.
4044 * Makefile.in (SFILES): Add d-namespace.c.
4045 (COMMON_OBS): Add d-namespace.o.
4046 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4047 la_lookup_symbol_nonlocal callback function pointer.
4048 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4049 (d_lookup_nested_symbol): New declaration.
4050 * d-namespace.c: New file.
4054 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4055 cleanup after the decref cleanup, not before.
4059 * ada-lang.c: Include namespace.h
4060 (aux_add_nonlocal_symbols): Fix a function name in comment.
4061 (ada_add_block_renamings): New.
4062 (add_nonlocal_symbols): Add global renamings handling.
4063 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4065 (ada_add_all_symbols): ... this new function.
4066 (ada_add_block_symbols): Try to match the input name against the
4067 "using directives list", perform a recursive symbol lookup on
4068 the matched declarations.
4069 * block.h (struct block): Move the_namespace to top-level as
4070 namespace_info. Remove the language_specific field.
4071 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4072 * buildsym.h (using_directives): Rename into...
4073 (local_using_directives): ... this.
4074 (global_using_directives): New.
4075 (struct context_stack): Rename the using_directives field into
4076 local_using_directives.
4077 * buildsym.c (finish_block_internal): Deal with the proper
4078 using directives repository (local or global).
4079 (prepare_for_building): Reset local_using_directives. Assert
4080 that there is no pending global using directive.
4081 (reset_symtab_globals): Reset global_using_directives and
4082 local_using_directives.
4083 (end_symtab_get_static_block): Don't ignore symtabs that have
4084 only using directives.
4085 (push_context): Update references to local_using_directives.
4086 (buildsym_init): Do not reset using_directives.
4087 * cp-support.c: Include namespace.h.
4088 * cp-support.h (struct using_direct): Move to namespace.h.
4089 (cp_add_using_directives): Move to namespace.h.
4090 * cp-namespace.c: Include namespace.h
4091 (cp_add_using_directive): Move to namespace.c, rename it to
4092 add_using_directive, add a "using_directives" argument and use
4093 it as the pending using directives repository. All callers
4095 * dwarf2read.c (using_directives): New.
4096 (read_import_statement): Call using_directives.
4097 (read_func_scope): Update references to local_using_directives.
4098 (read_lexical_block_scope): Likewise.
4099 (read_namespace): Update the heading comment, call
4101 * namespace.h: New file.
4102 * namespace.c: New file.
4103 * Makefile.in (SFILES): Add namespace.c.
4104 (COMMON_OBS): Add namespace.o
4108 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4113 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4114 reserved C++ keyword "explicit" to "explicit_loc".
4115 * breakpoint.c (create_overlay_event_breakpoint)
4116 (create_longjmp_master_breakpoint)
4117 (create_std_terminate_master_breakpoint)
4118 (create_exception_master_breakpoint, update_static_tracepoint):
4119 Rename reserved C++ keyword "explicit" to "explicit_loc".
4120 * completer.c (collect_explicit_location_matches)
4121 (explicit_location_completer): Rename reserved C++ keyword
4122 "explicit" to "explicit_loc".
4123 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4124 (canonicalize_linespec, create_sals_line_offset)
4125 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4126 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4127 "explicit" to "explicit_loc".
4128 * location.c (struct event_location) <explicit>: Rename to
4130 (initialize_explicit_location, new_explicit_location)
4131 (explicit_location_to_string_internal, explicit_location_to_linespec):
4132 Rename reserved C++ keyword "explicit" to "explicit_loc".
4133 * location.h (explicit_location_to_string)
4134 (explicit_location_to_linespec, initialize_explicit_location)
4135 (new_explicit_location): Rename reserved C++ keyword "explicit"
4137 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4138 keyword "explicit" to "explicit_loc".
4142 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4143 and only call decode_line_1 when it is non-NULL.
4147 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4148 location address is not meaningful.
4149 (breakpoint_address_is_meaningful): Update comment.
4153 * NEWS: Mention explicit locations.
4154 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4155 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4156 (_initialize_breakpoint): Update documentation for
4157 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4161 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4162 explicit locations, options "--source", "--function",
4163 "--label", and "--line".
4167 * completer.c: Include location.h.
4168 (enum match_type): New enum.
4169 (location_completer): Rename to ...
4170 (linespec_completer): ... this.
4171 (collect_explicit_location_matches, backup_text_ptr)
4172 (explicit_location_completer): New functions.
4173 (location_completer): "New" function; handle linespec
4174 and explicit location completions.
4175 (complete_line_internal): Remove all location completer-specific
4177 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4178 (find_toplevel_char): Export.
4179 (linespec_parse_line_offset): Export.
4180 Issue error if STRING is not numerical.
4181 (gdb_get_linespec_parser_quote_characters): New function.
4182 * linespec.h (linespec_parse_line_offset): Declare.
4183 (get_gdb_linespec_parser_quote_characters): Declare.
4184 (is_ada_operator): Declare.
4185 (find_toplevel_char): Declare.
4186 (linespec_lexer_lex_keyword): Declare.
4187 * location.c (explicit_to_event_location): New function.
4188 (explicit_location_lex_one): New function.
4189 (string_to_explicit_location): New function.
4190 (string_to_event_location): Handle explicit locations.
4191 * location.h (explicit_to_event_location): Declare.
4192 (string_to_explicit_location): Declare.
4196 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4197 linespec into explicit location.
4198 * breakpoint.c (create_overlay_breakpoint)
4199 (create_longjmp_master_breakpoint)
4200 (create_std_terminate_master_breakpoint)
4201 (create_exception_master_breakpoint): Convert linespec into explicit
4203 (update_static_tracepoint): Convert linespec into explicit location.
4204 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4206 (struct linespec) <expression, expr_pc, source_filename>
4207 <function_name, label_name, line_offset>: Replace with ...
4208 <explicit>: ... this.
4209 <is_linespec>: New member.
4210 (PARSER_EXPLICIT): New accessor macro.
4211 (undefined_label_error): New function.
4212 (source_file_not_found_error): New function.
4213 (linespec_parse_basic): The parser result is now an explicit location.
4214 Use PARSER_EXPLICIT to access it.
4215 Use undefined_label_error.
4216 (canonicalize_linespec): Convert canonical linespec into explicit
4218 Move string representation of location to explicit_location_to_linespec
4219 and use it and explicit_location_to_string to save string
4220 representations of the canonical location.
4221 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4222 explicit location. Update all references.
4223 (convert_explicit_location_to_sals): New function.
4224 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4225 result's explicit location.
4226 (linespec_state_constructor): Initialize is_linespec.
4227 Use PARSER_EXPLICIT.
4228 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4230 (event_location_to_sals): For linespec locations, set is_linespec.
4231 Handle explicit locations.
4232 (decode_objc): 'ls' contains an explicit location now. Update all
4234 (symtabs_from_filename): Use source_file_not_found_error.
4235 * location.c (struct event_location.u) <explicit>: New member.
4236 (initialize_explicit_location): New function.
4237 (initialize_event_location): Initialize explicit locations.
4238 (new_explicit_location, get_explicit_location)
4239 (get_explicit_location_const): New functions.
4240 (explicit_to_string_internal): New function; most of contents moved
4241 from canonicalize_linespec.
4242 (explicit_location_to_string): New function.
4243 (explicit_location_to_linespec): New function.
4244 (copy_event_location, delete_event_location)
4245 (event_location_to_string_const, event_location_empty_p): Handle
4247 * location.h (enum offset_relative_sign, struct line_offset): Move
4248 here from linespec.h.
4249 (enum event_location_type): Add EXPLICIT_LOCATION.
4250 (struct explicit_location): New structure.
4251 (explicit_location_to_string): Declare.
4252 (explicit_location_to_linespec): Declare.
4253 (new_explicit_location, get_explicit_locationp
4254 (get_explicit_location_const, initialize_explicit_location): Declare.
4258 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4259 linespec for stap probe to probe location.
4260 * breakpoint.c (create_longjmp_master_breakpoint)
4261 (create_exception_master_breakpoint): Likewise.
4262 (break_command_1): Remove local variable `arg_cp'.
4263 Check location type to set appropriate breakpoint ops methods.
4264 (trace_command): Likewise.
4265 * linespec.c (event_location_to_sals): Assert on probe locations.
4266 * location.c (EL_PROBE): Add macro definition.
4267 (new_probe_location, get_probe_location): New functions.
4268 (copy_event_location, delete_event_location, event_location_to_string)
4269 (string_to_event_location, event_location_empty_p): Handle probe
4271 * location.h (enum event_location_type): Add PROBE_LOCATION.
4272 (new_probe_location, get_probe_location): Declare.
4273 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4274 Convert linespec into probe location.
4278 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4279 Convert linespec to address location.
4280 * linespec.c (canonicalize_linespec): Do not handle address
4282 (convert_address_location_to_sals): New function; contents moved
4284 (convert_linespc_to_sals): ... here.
4285 (parse_linespec): Remove address locations from linespec grammar.
4286 Remove handling of address locations.
4287 (linespec_lex_to_end): Remove handling of address linespecs.
4288 (event_location_to_sals): Handle ADDRESS_LOCATION.
4289 (linespec_expression_to_pc): Export.
4290 * linespec.h (linespec_expression_to_pc): Add declaration.
4291 * location.c (struct event_location.u) <address>: New member.
4292 (new_address_location, get_address_location): New functions.
4293 (copy_event_location, delete_event_location, event_location_to_string)
4294 (string_to_event_location, event_location_empty_p): Handle address
4296 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4297 (new_address_location, get_address_location): Declare.
4298 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4299 to address location.
4300 * spu-tdep.c (spu_catch_start): Likewise.
4304 * ax-gdb.c: Include location.h.
4305 (agent_command_1) Use linespec location instead of address
4307 * break-catch-throw.c: Include location.h.
4308 (re_set_exception_catchpoint): Use linespec locations instead
4310 * breakpoint.c: Include location.h.
4311 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4312 (create_std_terminate_master_breakpoint)
4313 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4314 Use linespec location instead of address string.
4315 (print_breakpoint_location): Use locations and
4316 event_location_to_string.
4317 Print extra_string for pending locations for non-MI streams.
4318 (print_one_breakpoint_location): Use locations and
4319 event_location_to_string.
4320 (init_raw_breakpoint_without_location): Initialize b->location.
4321 (create_thread_event_breakpoint): Use linespec location instead of
4323 (init_breakpoint_sal): Likewise.
4324 Only save extra_string if it is non-NULL and not the empty string.
4325 Use event_location_to_string instead of `addr_string'.
4326 Constify `p' and `endp'.
4327 Use skip_spaces_const/skip_space_const instead of non-const versions.
4328 Copy the location into the breakpoint.
4329 If LOCATION is NULL, save the breakpoint address as a linespec location
4330 instead of an address string.
4331 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4332 event_location. All uses updated.
4333 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4334 (parse_breakpoint_sals): Use locations instead of address strings.
4335 Remove check for empty linespec with conditional.
4337 (decode_static_tracepoint_spec): Make argument const and update
4339 (create_breakpoint): Change `arg' to a struct event_location and
4341 Remove `copy_arg' and `addr_start'.
4342 If EXTRA_STRING is empty, set it to NULL.
4343 Don't populate `canonical' for pending breakpoints.
4344 Pass `extra_string' to find_condition_and_thread.
4345 Clear `extra_string' if `rest' was NULL.
4346 Do not error with "garbage after location" if setting a dprintf
4348 Copy the location into the breakpoint instead of an address string.
4349 (break_command_1): Use string_to_event_location and pass this to
4350 create_breakpoint instead of an address string.
4351 Check against `arg_cp' for a probe linespec.
4352 (dprintf_command): Use string_to_event_location and pass this to
4353 create_breakpoint instead of an address string.
4354 Throw an exception if no format string was specified.
4355 (print_recreate_ranged_breakpoint): Use event_location_to_string
4356 instead of address strings.
4357 (break_range_command, until_break_command)
4358 (init_ada_exception_breakpoint): Use locations instead
4360 (say_where): Print out extra_string for pending locations.
4361 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4363 (base_breakpoint_create_sals_from_location): Use struct event_location
4364 instead of address string.
4365 Remove `addr_start' and `copy_arg' parameters.
4366 (base_breakpoint_decode_location): Use struct event_location instead of
4368 (bkpt_re_set): Use locations instead of address strings.
4369 Use event_location_empty_p to check for unset location.
4370 (bkpt_print_recreate): Use event_location_to_string instead of
4372 Print out extra_string for pending locations.
4373 (bkpt_create_sals_from_location, bkpt_decode_location)
4374 (bkpt_probe_create_sals_from_location): Use struct event_location
4375 instead of address string.
4376 (bkpt_probe_decode_location): Use struct event_location instead of
4378 (tracepoint_print_recreate): Use event_location_to_string to
4379 recreate the tracepoint.
4380 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4381 (tracepoint_probe_create_sals_from_location)
4382 (tracepoint_probe_decode_location): Use struct event_location
4383 instead of address string.
4384 (dprintf_print_recreate): Use event_location_to_string to recreate
4386 (dprintf_re_set): Remove check for valid/missing format string.
4387 (strace_marker_create_sals_from_location)
4388 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4389 (update_static_tracepoint): Use struct event_location instead of
4391 (location_to_sals): Likewise.
4392 Pass `extra_string' to find_condition_and_thread.
4393 For newly resolved pending breakpoint locations, clear the location's
4394 string representation.
4395 Assert that the breakpoint's condition string is NULL when
4396 condition_not_parsed.
4397 (breakpoint_re_set_default, create_sals_from_location_default)
4398 (decode_location_default, trace_command, ftrace_command)
4399 (strace_command, create_tracepoint_from_upload): Use locations
4400 instead of address strings.
4401 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4402 Use struct event_location instead of address string.
4404 <decode_location>: Likewise.
4405 (struct breakpoint) <addr_string>: Change to struct event_location
4406 and rename `location'.
4407 <addr_string_range_end>: Change to struct event_location and rename
4408 `location_range_end'.
4409 (create_breakpoint): Use struct event_location instead of address
4411 * cli/cli-cmds.c: Include location.h.
4412 (edit_command, list_command): Use locations instead of address strings.
4413 * elfread.c: Include location.h.
4414 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4415 * guile/scm-breakpoint.c: Include location.h.
4416 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4417 (gdbscm_register_breakpoint): Use locations instead of address
4419 * linespec.c: Include location.h.
4420 (struct ls_parser) <stream>: Change to const char *.
4421 (PARSER_STREAM): Update.
4422 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4423 keywords must be followed by whitespace.
4424 (canonicalize_linespec): Save a linespec location into `canonical'.
4425 Save a canonical linespec into `canonical'.
4426 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4428 Update function description.
4429 (linespec_parser_new): Initialize `parser'.
4430 Update initialization of parsing stream.
4431 (event_location_to_sals): New function.
4432 (decode_line_full): Change `argptr' to a struct event_location and
4433 rename it `location'.
4434 Use locations instead of address strings.
4435 Call event_location_to_sals instead of parse_linespec.
4436 (decode_line_1): Likewise.
4437 (decode_line_with_current_source, decode_line_with_last_displayed)
4438 Use locations instead of address strings.
4439 (decode_objc): Likewise.
4440 Change `argptr' to const char * and rename `arg'.
4441 (destroy_linespec_result): Delete the linespec result's location
4442 instead of freeing the address string.
4443 * linespec.h (struct linespec_result) <addr_string>: Change to
4444 struct event_location and rename to ...
4445 <location>: ... this.
4446 (decode_line_1, decode_line_full): Change `argptr' to struct
4447 event_location. All callers updated.
4448 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4449 (mi_cmd_break_insert_1): Use locations instead of address strings.
4450 Throw an error if there was "garbage" at the end of the specified
4452 * probe.c: Include location.h.
4453 (parse_probes): Change `argptr' to struct event_location.
4454 Use event locations instead of address strings.
4455 * probe.h (parse_probes): Change `argptr' to struct event_location.
4456 * python/py-breakpoint.c: Include location.h.
4457 (bppy_get_location): Constify local variable `str'.
4458 Use event_location_to_string.
4459 (bppy_init): Use locations instead of address strings.
4460 * python/py-finishbreakpoint.c: Include location.h.
4461 (bpfinishpy_init): Remove local variable `addr_str'.
4462 Use locations instead of address strings.
4463 * python/python.c: Include location.h.
4464 (gdbpy_decode_line): Use locations instead of address strings.
4465 * remote.c: Include location.h.
4466 (remote_download_tracepoint): Use locations instead of address
4468 * spu-tdep.c: Include location.h.
4469 (spu_catch_start): Remove local variable `buf'.
4470 Use locations instead of address strings.
4471 * tracepoint.c: Include location.h.
4472 (scope_info): Use locations instead of address strings.
4473 (encode_source_string): Constify parameter `src'.
4474 * tracepoint.h (encode_source_string): Likewise.
4478 * Makefile.in (SFILES): Add location.c.
4479 (HFILES_NO_SRCDIR): Add location.h.
4480 (COMMON_OBS): Add location.o.
4481 * linespec.c (linespec_lex_to_end): New function.
4482 * linespec.h (linespec_lex_to_end): Declare.
4483 * location.c: New file.
4484 * location.h: New file.
4488 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4489 Renamed to create_sals_from_location.
4490 <decode_linespec>: Renamed to decode_location.
4492 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4493 (create_sals_from_location_default): ... this.
4494 (addr_string_to_sals): Renamed to ...
4495 (location_to_sals): ... this.
4496 (decode_linespec_default): Renamed to ...
4497 (decode_location_default): ... this.
4498 (base_breakpoint_create_sals_from_address): Renamed to ...
4499 (base_breakpoint_create_sals_from_location): ... this.
4500 (bkpt_create_sals_from_address): Renamed to ...
4501 (bkpt_create_sals_from_location): ... this.
4502 (bkpt_decode_linespec): Renamed to ...
4503 (bkpt_decode_location): ... this.
4504 (bkpt_probe_create_sals_from_address): Renamed to ...
4505 (bkpt_probe_create_sals_from_location): ... this.
4506 (tracepoint_create_sals_from_address): Renamed to ...
4507 (tracepoint_create_sals_from_location): ... this.
4508 (tracepoint_decode_linespec): Renamed to ...
4509 (tracepoint_decode_location): ... this.
4510 (tracepoint_probe_create_sals_from_address): Renamed to ...
4511 (tracepoint_probe_create_sals_from_location): ... this.
4512 (tracepoint_probe_decode_linespec): Renamed to ...
4513 (tracepoint_probe_decode_location): ... this.
4514 (strace_marker_create_sals_from_address): Renamed to ...
4515 (strace_marker_create_sals_from_location): ... this.
4516 (decode_linespec_default): Renamed to ...
4517 (decode_location_default): ... this.
4523 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4524 make_file_symbol_completion_list and made static.
4525 (make_file_symbol_completion_list): New function.
4529 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4530 trailing new-line at end of warning message.
4531 (proceed): Add i18n marker to error messages.
4535 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4539 * s390-linux-tdep.c (is_non_branch_ril)
4540 (s390_displaced_step_copy_insn): New functions.
4541 (s390_displaced_step_fixup): Update comment.
4542 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4543 gdbarch_displaced_step_copy_insn hook.
4547 * infrun.c (displaced_step_prepare_throw): Return -1 if
4548 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4550 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4551 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4553 (ppc_displaced_step_copy_insn): New function.
4554 (ppc_displaced_step_fixup): Update comment.
4555 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4556 gdbarch_displaced_step_copy_insn hook.
4557 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4559 * gdbarch.h: Regenerate.
4563 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4565 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4566 Return false if dispaced stepping failed before.
4567 (resume): Pass the current inferior to
4568 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4569 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4570 displaced_stepping_failed flag, and fall back to an in-line
4575 * darwin-nat.c (darwin_stop): Rename to ...
4576 (darwin_interrupt): ... this.
4577 (_initialize_darwin_inferior): Adjust.
4578 * gnu-nat.c (gnu_stop): Delete.
4579 (gnu_target): Don't install gnu_stop.
4580 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4581 (inf_ptrace_interrupt): ... this.
4582 (inf_ptrace_target): Adjust.
4583 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4585 * linux-nat (linux_nat_stop): Rename to ...
4586 (linux_nat_interrupt): ... this.
4587 (linux_nat_stop): Reimplement.
4588 (linux_nat_add_target): Install linux_nat_interrupt.
4589 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4590 (nto_handle_sigint_twice): ... this.
4591 (nto_interrupt): Rename to ...
4592 (nto_handle_sigint): ... this. Call target_interrupt instead of
4594 (procfs_wait): Adjust.
4595 (procfs_stop): Rename to ...
4596 (procfs_interrupt): ... this.
4597 (init_procfs_targets): Adjust.
4598 * procfs.c (procfs_stop): Rename to ...
4599 (procfs_interrupt): ... this.
4600 (procfs_target): Adjust.
4601 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4602 (m32r_interrupt): ... this.
4603 (init_m32r_ops): Adjust.
4604 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4605 (gdbsim_interrupt_inferior): ... this.
4606 (gdbsim_stop): Rename to ...
4607 (gdbsim_interrupt): ... this.
4608 (gdbsim_cntrl_c): Adjust.
4609 (init_gdbsim_ops): Adjust.
4610 * remote.c (sync_remote_interrupt): Adjust comments.
4611 (remote_stop_as): Rename to ...
4612 (remote_interrupt_as): ... this.
4613 (remote_stop): Adjust comment.
4614 (remote_interrupt): New function.
4615 (init_remote_ops): Install remote_interrupt.
4616 * target.c (target_interrupt): New function.
4617 * target.h (struct target_ops) <to_interrupt>: New field.
4618 (target_interrupt): New declaration.
4619 * windows-nat.c (windows_stop): Rename to ...
4620 (windows_interrupt): ... this.
4621 * target-delegates.c: Regenerate.
4625 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4626 threads" as alternative to "switching back to stepped thread".
4630 * NEWS: Mention "maint set/show target-non-stop".
4631 * breakpoint.c (update_global_location_list): Check
4632 target_is_non_stop_p instead of non_stop.
4633 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4634 * infrun.c (show_can_use_displaced_stepping)
4635 (can_use_displaced_stepping_p, start_step_over_inferior):
4637 (internal_resume_ptid): New function.
4639 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4640 all-stop mode but the target is always in non-stop mode, start all
4641 the other threads that are implicitly resumed too.
4642 (for_each_just_stopped_thread, fetch_inferior_event)
4643 (adjust_pc_after_break, stop_all_threads): Check
4644 target_is_non_stop_p instead of non_stop.
4645 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4646 with the target always in non-stop mode.
4647 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4648 instead of non_stop.
4649 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4650 instead of non_stop.
4651 (keep_going_stepped_thread): Use internal_resume_ptid.
4652 (stop_waiting): If in all-stop mode, and the target is in non-stop
4653 mode, stop all threads.
4654 (keep_going_pass): Likewise, when starting a new in-line step-over
4656 * linux-nat.c (get_pending_status, select_event_lwp)
4657 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4658 target_is_non_stop_p instead of non_stop.
4659 (linux_nat_always_non_stop_p): New function.
4660 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4661 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4662 * target-delegates.c: Regenerate.
4663 * target.c (target_is_non_stop_p): New function.
4664 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4665 (maint_set_target_non_stop_command)
4666 (maint_show_target_non_stop_command): New functions.
4667 (_initilize_target): Install "maint set/show target-non-stop"
4669 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4670 (target_non_stop_enabled): New declaration.
4671 (target_is_non_stop_p): New declaration.
4675 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4676 has a pending status, return true.
4677 * gdbthread.h: Include target/waitstatus.h.
4678 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4679 stop_pc>: New fields.
4680 (struct thread_info) <resumed>: New field.
4681 (set_resumed): Declare.
4682 * infrun.c: Include "event-loop.h".
4683 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4684 (infrun_async): New function.
4685 (clear_step_over_info): Add debug output.
4686 (displaced_step_in_progress_any_inferior): New function.
4687 (displaced_step_fixup): New returns int.
4688 (start_step_over): Handle in-line step-overs too. Assert the
4689 thread is marked resumed.
4690 (resume_cleanups): Clear the thread's resumed flag.
4691 (resume): Set the thread's resumed flag. Return early if the
4692 thread has a pending status. Allow stepping a breakpoint with no
4694 (proceed): Adjust to check 'resumed' instead of 'executing'.
4695 (clear_proceed_status_thread): If the thread has a pending status,
4696 and that status is a finished step, discard the pending status.
4697 (clear_proceed_status): Don't clear step_over_info here.
4698 (random_pending_event_thread, do_target_wait): New functions.
4699 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4701 (wait_one): New function.
4702 (THREAD_STOPPED_BY): New macro.
4703 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4704 (thread_stopped_by_hw_breakpoint): New functions.
4705 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4707 (handle_inferior_event): Also call set_resumed(false) on all
4708 threads implicitly stopped by the event.
4709 (restart_threads, resumed_thread_with_pending_status): New
4711 (finish_step_over): If we were doing an in-line step-over before,
4712 and no longer are after trying to start a new step-over, restart
4713 all threads. If we have multiple threads with pending events,
4714 save the current event and go through the event loop again.
4715 (handle_signal_stop): Return early if finish_step_over returns
4717 <random signal>: If we get a signal while stepping over a
4718 breakpoint in-line in non-stop mode, restart all threads. Clear
4719 step_over_info before delivering the signal.
4720 (keep_going_stepped_thread): Use internal_error instead of
4721 gdb_assert. Mark the thread as resumed.
4722 (keep_going_pass_signal): Assert the thread isn't already resumed.
4723 If some other thread is doing an in-line step-over, defer the
4724 resume. If we just started a new in-line step-over, stop all
4725 threads. Don't clear step_over_info.
4726 (infrun_async_inferior_event_handler): New function.
4727 (_initialize_infrun): Create async event handler with
4728 infrun_async_inferior_event_handler as callback.
4729 (infrun_async): New declaration.
4730 * target.c (target_async): New function.
4731 * target.h (target_async): Declare macro and readd as function
4733 * target/waitstatus.h (enum target_stop_reason)
4734 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4735 * thread.c (new_thread): Clear the new waitstatus field.
4736 (set_resumed): New function.
4740 * infrun.c (keep_going_stepped_thread): New function, factored out
4742 (switch_back_to_stepped_thread): ... here.
4746 * infrun.c (currently_stepping): Extend intro comment.
4747 * target.h (target_resume): Extend intro comment.
4751 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4752 of inferior_ptid. If the stepped thread vanished, return 0
4753 instead of resuming here. Use reset_ecs. Print the prev_pc and
4754 the current stop_pc in log message. Clear trap_expected if the
4755 thread advanced. Don't pass currently_stepping to
4760 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4761 * infrun.c (struct execution_control_state): Move higher up in the
4763 (reset_ecs): New function.
4764 (start_step_over): Now returns int. Rewrite to use
4765 keep_going_pass_signal instead of manually starting a displaced step.
4766 (resume): Don't call set_running here. If displaced stepping
4767 can't start now, clear trap_expected.
4768 (find_thread_needs_step_over): Delete function.
4769 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4770 If the current thread needs a step over, push it in the step-over
4771 chain. Don't set insert breakpoints nor call resume directly
4772 here. Instead rewrite to use start_step_over and
4773 keep_going_pass_signal.
4774 (finish_step_over): New function.
4775 (handle_signal_stop): Call finish_step_over instead of
4777 (switch_back_to_stepped_thread): If the event thread needs another
4778 step-over do that first. Use start_step_over.
4779 (keep_going_pass_signal): New function, factored out from ...
4780 (keep_going): ... here.
4781 (_initialize_infrun): Comment moved here.
4782 * thread.c (set_running_thread): New function.
4783 (set_running, finish_thread_state): Use set_running_thread.
4787 * gdbthread.h (struct thread_info) <step_over_prev,
4788 step_over_next>: New fields.
4789 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4790 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4792 * infrun.c (struct displaced_step_request): Delete.
4793 (struct displaced_step_inferior_state) <step_request_queue>:
4795 (displaced_step_prepare): Assert that trap_expected is set. Use
4796 thread_step_over_chain_enqueue. Split starting a new displaced
4798 (start_step_over): ... this new function.
4799 (resume): Assert the thread isn't waiting for a step over already.
4800 (proceed): Assert the thread isn't waiting for a step over
4802 (infrun_thread_stop_requested): Adjust to remove threads from the
4803 embedded step-over chain.
4804 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4805 displaced_step_fixup.
4806 (handle_signal_stop): Call start_step_over after
4807 displaced_step_fixup.
4808 * infrun.h (step_over_queue_head): New declaration.
4809 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4810 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4811 (thread_step_over_chain_enqueue)
4812 (thread_step_over_chain_remove): New functions.
4813 (delete_thread_1): Remove thread from the step-over chain.
4817 * infrun.c (thread_still_needs_step_over): Rename to ...
4818 (thread_still_needs_step_over_bp): ... this.
4819 (enum step_over_what): New.
4820 (thread_still_needs_step_over): Reimplement.
4824 * remote.c (remote_wait_as): If not waiting for a stop reply,
4825 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4826 requested, don't block waiting forever.
4830 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4831 waitstatus pointers instead of an ecs. Adjust.
4832 (handle_inferior_event): Adjust caller.
4836 * infrun.c (handle_inferior_event): If we get
4837 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4838 mode, mark all threads of the exiting process as not-executing.
4839 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4840 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4841 exiting process, if inferior_ptid still points at a process.
4842 * thread.c (struct current_thread_cleanup) <next>: New field.
4843 (current_thread_cleanup_chain): New global.
4844 (restore_current_thread_ptid_changed): New function.
4845 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4846 current_thread_cleanup_chain list.
4847 (make_cleanup_restore_current_thread): Add the cleanup data to the
4848 current_thread_cleanup_chain list.
4849 (_initialize_thread): Install restore_current_thread_ptid_changed
4850 as thread_ptid_changed observer.
4854 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4855 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4856 smaller than expected.
4860 * stack.c (get_frame_language): Moved ...
4861 * frame.c (get_frame_language): ... to here.
4862 * language.h (get_frame_language): Declaration moved to frame.h.
4863 * frame.h: Add language.h include, for language enum.
4864 (get_frame_language): Declaration moved from language.h.
4865 * language.c: Add frame.h include.
4866 * top.c: Add frame.h include.
4867 * symtab.h (struct obj_section): Declare.
4868 (struct cmd_list_element): Declare.
4872 * language.c (show_language_command): Find selected frame before
4873 asking for the language of that frame.
4874 (set_language_command): Likewise.
4875 * language.h (get_frame_language): Add frame parameter.
4876 * stack.c (get_frame_language): Add frame parameter, assert
4877 parameter is not NULL, update comment and reindent.
4878 * top.c (check_frame_language_change): Pass the selected frame
4879 into get_frame_language.
4883 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4884 (pt_btrace_insn_flags): New.
4885 (ftrace_add_pt): Call pt_btrace_insn_flags.
4886 * btrace.h (btrace_insn_flag): New.
4887 (btrace_insn) <flags>: New.
4888 * record-btrace.c (btrace_insn_history): Print insn prefix.
4889 * NEWS: Announce it.
4893 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4894 * configure: Regenerate.
4898 * Makefile.in (LIBICONV): Define.
4899 (CLIBS): Add LIBICONV.
4900 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4901 * configure: Regenerate.
4906 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4907 (arm_set_abi): Likewise.
4908 * ax-general.c (ax_print): Likewise.
4909 * c-exp.y (exp : string_exp): Likewise.
4910 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4911 (do_compile_dwarf_expr_to_c): Likewise.
4912 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4914 * dwarf2expr.c (execute_stack_op): Likewise.
4915 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4916 (disassemble_dwarf_expression): Likewise.
4917 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4918 (read_array_order): Likewise.
4919 (abbrev_table_read_table): Likewise.
4920 (read_attribute_value): Likewise.
4921 (skip_unknown_opcode): Likewise.
4922 (dwarf_decode_macro_bytes): Likewise.
4923 (dwarf_decode_macros): Likewise.
4924 * eval.c (value_f90_subarray): Likewise.
4925 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4926 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4927 * infrun.c (handle_command): Likewise.
4928 * memory-map.c (memory_map_start_memory): Likewise.
4929 * osabi.c (set_osabi): Likewise.
4930 * parse.c (operator_length_standard): Likewise.
4931 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4932 single return point.
4933 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4934 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4935 (gdbpy_lookup_global_symbol): Likewise.
4936 * record-full.c (record_full_restore): Likewise.
4937 * regcache.c (regcache_register_status): Likewise.
4938 (regcache_raw_read): Likewise.
4939 (regcache_cooked_read): Likewise.
4940 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4941 * symtab.c (initialize_ordinary_address_classes): Likewise.
4942 * target-debug.h (target_debug_print_signals): Likewise.
4943 * utils.c (do_restore_current_language): Likewise.
4948 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4952 * complaints.c (enum complaint_series): Add newlines and remove
4953 out of date comment.
4954 (struct complaints) <series>: Change type to enum
4955 complaint_series and remove out of date comment.
4956 (symfile_complaint_hook): Use equivalent enum value
4957 ISOLATED_MESSAGE instead of 0.
4961 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4966 * common/agent.c (symbol_list) <required>: Remove.
4970 * target/waitstatus.h (enum target_stop_reason)
4971 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4976 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4977 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4978 case where BS->STOP is not set.
4982 * nat/gdb_thread_db.h: Add copyright header.
4983 Protect against multiple inclusion.
4987 * aarch64-linux-nat.c (get_thread_id): Remove.
4988 (debug_reg_change_callback): Call ptid_get_lwp instead of
4990 (fetch_gregs_from_thread): Likewise.
4991 (store_gregs_to_thread): Likewise.
4992 (fetch_fpregs_from_thread): Likewise.
4993 (store_fpregs_to_thread): Likewise.
4994 (aarch64_linux_get_debug_reg_capacity): Likewise.
4995 * arm-linux-nat.c (get_thread_id): Remove.
4996 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4997 * xtensa-linux-nat.c (get_thread_id): Remove.
4998 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4999 * arm-linux-nat.c (get_thread_id): Remove.
5000 (GET_THREAD_ID): Remove.
5001 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5002 (store_fpregs, fetch_regs, store_regs): Likewise.
5003 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5004 (fetch_vfp_regs, store_vfp_regs): Likewise.
5005 (arm_linux_read_description): Likewise.
5006 (arm_linux_get_hwbp_cap): Likewise.
5007 * xtensa-linux-nat.c (get_thread_id): Remove.
5008 (GET_THREAD_ID): Remove.
5009 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5014 * python/py-linetable.c: Fix case of Linetable to LineTable
5015 in docstrings and code comments.
5016 * python/py-symtab.c: Same.
5020 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5025 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5030 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5031 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5032 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5033 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5034 (td_thr_validate_ftype, td_thr_get_info_ftype)
5035 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5036 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5038 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5039 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5040 local macros and use them instead of verbose_dlsym and dlsym
5045 * nios2-tdep.h: Include opcode/nios2.h here.
5046 (NIOS2_CDX_OPCODE_SIZE): New.
5047 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5048 * nios2-tdep.c: Don't include opcode/nios2.h here.
5049 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5051 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5052 (nios2_match_addi, nios2_match_orhi): Likewise.
5053 (nios2_match_stw, nios2_match_ldw): Likewise.
5054 (nios2_match_rdctl): Likewise.
5055 (nios2_match_stwm, nios2_match_ldwm): New.
5056 (nios2_match_branch): Add cases for R2 encodings.
5057 (nios2_match_jmpi, nios2_match_calli): Likewise.
5058 (nios2_match_jmpr, nios2_match_callr): Likewise.
5059 (nios2_match_break, nios2_match_trap): Likewise.
5060 (nios2_in_epilogue_p): Add R2 support.
5061 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5063 (nios2_breakpoint_from_pc): Handle R2 instructions.
5064 (nios2_get_next_pc): Likewise. Adjust call to
5065 tdep->syscall_next_pc.
5066 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5067 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5068 instruction field macros instead of literal hex values.
5069 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5070 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5071 Use size field from OP instead of assuming all instructions
5073 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5077 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5078 variable warning with some compilers.
5082 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5083 in comment. Replace "rw" with "type".
5084 (arm_linux_remove_watchpoint): Change type of "rw" to
5085 "enum target_hw_bp_type".
5089 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5091 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5092 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5093 * mt-tdep.c (mt_skip_prologue): Likewise.
5094 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5098 * ada-exp.y (write_object_renaming): Replace struct
5099 ada_symbol_info with struct block_symbol. Update field
5100 references accordingly.
5101 (block_lookup, select_possible_type_sym): Likewise.
5102 (find_primitive_type): Likewise. Also update call to
5103 ada_lookup_symbol to extract the symbol itself.
5104 (write_var_or_type, write_name_assoc): Likewise.
5105 * ada-lang.h (struct ada_symbol_info): Remove.
5106 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5107 struct block_symbol.
5108 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5109 (ada_lookup_symbol): Return struct block_symbol instead of a
5111 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5112 with struct block_symbol.
5113 (resolve_subexp, ada_resolve_function, sort_choices,
5114 user_select_syms, is_nonfunction, add_defn_to_vec,
5115 num_defns_collected, defns_collected,
5116 symbols_are_identical_enums, remove_extra_symbols,
5117 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5118 ada_lookup_symbol_list, ada_iterate_over_symbols,
5119 ada_lookup_encoded_symbol, get_var_value): Likewise.
5120 (ada_lookup_symbol): Return a block_symbol instead of a mere
5121 symbol. Replace struct ada_symbol_info with struct
5123 (ada_lookup_symbol_nonlocal): Likewise.
5124 (standard_lookup): Make block passing explicit through
5125 lookup_symbol_in_language.
5126 * ada-tasks.c (get_tcb_types_info): Update the calls to
5127 lookup_symbol_in_language to extract the mere symbol out of the
5129 (ada_tasks_inferior_data_sniffer): Likewise.
5130 * ax-gdb.c (gen_static_field): Likewise for the call to
5132 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5134 (gen_expr): Likewise.
5135 * c-exp.y: Likewise. Remove uses of block_found.
5136 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5137 (classify_name): Likewise. Rename the "sym" local variable to
5139 * c-valprint.c (print_unpacked_pointer): Likewise.
5140 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5141 "sym" parameter from struct symbol * to struct block_symbol.
5142 Use it to remove uses of block_found. Deal with struct
5143 block_symbol from lookup functions.
5144 (gcc_convert_symbol): Likewise. Update the call to
5146 * compile/compile-object-load.c (compile_object_load): Deal with
5147 struct block_symbol from lookup functions.
5148 * cp-namespace.c (cp_lookup_nested_symbol_1,
5149 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5150 cp_search_static_and_baseclasses,
5151 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5152 cp_lookup_symbol_imports_or_template,
5153 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5154 lookup_namespace_scope, cp_lookup_nonlocal,
5155 find_symbol_in_baseclass): Return struct block_symbol instead of
5156 mere symbols and deal with struct block_symbol from lookup
5158 * cp-support.c (inspect_type, replace_typedefs,
5159 cp_lookup_rtti_type): Deal with struct block_symbol from
5161 * cp-support.h (cp_lookup_symbol_nonlocal,
5162 cp_lookup_symbol_from_namespace,
5163 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5164 Return struct block_symbol instead of mere symbols.
5165 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5167 Deal with struct block_symbol from lookup functions. Remove
5168 uses of block_found.
5169 * eval.c (evaluate_subexp_standard): Update call to
5170 cp_lookup_symbol_namespace.
5171 * f-exp.y: Deal with struct block_symbol from lookup functions.
5172 Remove uses of block_found.
5174 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5175 lookup_enum, lookup_template_type, check_typedef): Deal with
5176 struct block_symbol from lookup functions.
5177 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5178 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5179 (gdbscm_lookup_global_symbol): Likewise.
5180 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5181 * go-exp.y: Likewise. Remove uses of block_found.
5182 (package_name_p, classify_packaged_name, classify_name):
5184 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5185 * jv-exp.y (push_variable): Likewise.
5186 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5187 * language.c (language_bool_type): Likewise.
5188 * language.h (struct language_defn): Update
5189 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5191 * linespec.c (find_label_symbols): Deal with struct block_symbol
5192 from lookup functions.
5193 * m2-exp.y: Likewise. Remove uses of block_found.
5195 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5196 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5197 * p-exp.y: Likewise. Remove uses of block_found.
5199 * p-valprint.c (pascal_val_print): Likewise.
5200 * parse.c (write_dollar_variable): Likewise. Remove uses of
5202 * parser-defs.h (struct symtoken): Turn the SYM field into a
5203 struct block_symbol.
5204 * printcmd.c (address_info): Deal with struct block_symbol from
5206 * python/py-frame.c (frapy_read_var): Likewise.
5207 * python/py-symbol.c (gdbpy_lookup_symbol,
5208 gdbpy_lookup_global_symbol): Likewise.
5209 * skip.c (skip_function_command): Likewise.
5210 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5211 block_symbol instead of a mere symbol.
5212 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5213 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5214 * solib.c (solib_global_lookup): Likewise.
5215 * solist.h (solib_global_lookup): Likewise.
5216 (struct target_so_ops): Update lookup_lib_global_symbol to
5217 return a struct block_symbol rather than a mere symbol.
5218 * source.c (select_source_symtab): Deal with struct block_symbol
5219 from lookup functions.
5220 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5222 * symfile.c (set_initial_language): Likewise.
5223 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5225 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5226 (struct symbol_cache_slot): Turn the FOUND field into a struct
5228 (block_found): Remove.
5229 (eq_symbol_entry): Update to deal with struct block_symbol in
5231 (symbol_cache_lookup): Return a struct block_symbol rather than
5233 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5234 appropriately the cache slots. Update callers.
5235 (symbol_cache_dump): Update cache slots handling to the type
5237 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5238 lookup_symbol_aux, lookup_local_symbol,
5239 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5240 lookup_symbol_in_objfile_symtabs,
5241 lookup_symbol_in_objfile_from_linkage_name,
5242 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5243 lookup_symbol_in_static_block, lookup_static_symbol,
5244 lookup_global_symbol):
5245 Return a struct block_symbol rather than a mere symbol. Deal
5246 with struct block_symbol from other lookup functions. Remove
5247 uses of block_found.
5248 (lookup_symbol_in_block): Remove uses of block_found.
5249 (struct global_sym_lookup_data): Turn the RESULT field into a
5250 struct block_symbol.
5251 (lookup_symbol_global_iterator_cb): Update references to the
5253 (search_symbols): Deal with struct block_symbol from lookup
5255 * symtab.h (struct block_symbol): New structure.
5256 (block_found): Remove.
5257 (lookup_symbol_in_language, lookup_symbol,
5258 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5259 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5260 lookup_global_symbol_from_objfile): Return a struct block_symbol
5261 rather than just a mere symbol. Update comments to remove
5262 mentions of block_found.
5263 * valops.c (find_function_in_inferior,
5264 value_struct_elt_for_reference, value_maybe_namespace_elt,
5265 value_of_this): Deal with struct block_symbol from lookup
5267 * value.c (value_static_field, value_fn_field): Likewise.
5271 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5277 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5278 type or value instead of integer.
5279 (aarch64_linux_insert_watchpoint): Likewise.
5280 (aarch64_linux_remove_watchpoint): Likewise.
5281 * ada-lang.c (ada_op_print_tab): Likewise.
5282 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5283 (amd64_linux_syscall_record_common): Likewise.
5284 * arch-utils.c (target_byte_order_user): Likewise.
5285 (default_byte_order): Likewise.
5286 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5287 (arm_linux_get_hwbp_type): Likewise.
5288 (arm_linux_hw_watchpoint_initialize): Likewise.
5289 (arm_linux_insert_watchpoint): Likewise.
5290 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5291 (arm_linux_syscall_record): Likewise.
5292 * breakpoint.c (update_watchpoint): Likewise.
5293 (breakpoint_here_p): Likewise.
5294 (bpstat_print): Likewise.
5295 (enable_breakpoint_disp): Likewise.
5296 * c-lang.c (c_op_print_tab): Likewise.
5297 * cli/cli-decode.c (add_info_alias): Likewise.
5298 * d-lang.c (d_op_print_tab): Likewise.
5299 * eval.c (evaluate_subexp_standard): Likewise.
5300 * f-exp.y (dot_ops): Likewise.
5301 (f77_keywords): Likewise.
5302 * f-lang.c (f_op_print_tab): Likewise.
5303 * go-lang.c (go_op_print_tab): Likewise.
5304 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5305 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5306 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5307 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5308 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5309 (struct scm_from_stringn_data): Likewise.
5310 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5311 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5312 (ia64_linux_remove_watchpoint): Likewise.
5313 (ia64_linux_can_use_hw_breakpoint): Likewise.
5314 * infrun.c (print_stop_event): Likewise.
5315 * jv-lang.c (java_op_print_tab): Likewise.
5316 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5317 * linux-nat.h (struct lwp_info): Likewise.
5318 * linux-thread-db.c (enable_thread_event): Likewise.
5319 * m2-lang.c (m2_op_print_tab): Likewise.
5320 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5321 (mi_cmd_stack_list_variables): Likewise.
5322 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5323 * mi/mi-out.c (mi_table_begin): Likewise.
5324 (mi_table_header): Likewise.
5325 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5326 (mips_linux_insert_watchpoint): Likewise.
5327 (mips_linux_remove_watchpoint): Likewise.
5328 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5329 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5330 (mips_linux_watch_type_to_irw): Likewise.
5331 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5332 (procfs_insert_hw_watchpoint): Likewise.
5333 (procfs_remove_hw_watchpoint): Likewise.
5334 (procfs_hw_watchpoint): Likewise.
5335 (procfs_can_use_hw_breakpoint): Likewise.
5336 (procfs_remove_hw_watchpoint): Likewise.
5337 (procfs_insert_hw_watchpoint): Likewise.
5338 * p-lang.c (pascal_op_print_tab): Likewise.
5339 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5340 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5341 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5342 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5343 (procfs_insert_watchpoint): Likewise.
5344 (procfs_remove_watchpoint): Likewise.
5345 * psymtab.c (recursively_search_psymtabs): Likewise.
5346 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5347 (m32r_insert_watchpoint): Likewise.
5348 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5349 (mips_insert_watchpoint): Likewise.
5350 (mips_remove_watchpoint): Likewise.
5351 * remote.c (watchpoint_to_Z_packet): Likewise.
5352 (remote_insert_watchpoint): Likewise.
5353 (remote_remove_watchpoint): Likewise.
5354 (remote_check_watch_resources): Likewise.
5355 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5356 (s390_remove_watchpoint): Likewise.
5357 (s390_can_use_hw_breakpoint): Likewise.
5358 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5359 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5360 * target.h (struct target_ops): Likewise.
5361 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5362 * ui-out.c (struct ui_out_hdr): Likewise.
5363 (append_header_to_list): Likewise.
5364 (get_next_header): Likewise.
5365 (verify_field): Likewise.
5366 (ui_out_begin): Likewise.
5367 (ui_out_field_int): Likewise.
5368 (ui_out_field_fmt_int): Likewise.
5369 (ui_out_field_skip): Likewise.
5370 (ui_out_field_string): Likewise.
5371 (ui_out_field_fmt): Likewise.
5372 * varobj.c (new_variable): Likewise.
5373 * x86-nat.c (x86_insert_watchpoint): Likewise.
5374 (x86_remove_watchpoint): Likewise.
5375 (x86_can_use_hw_breakpoint): Likewise.
5376 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5377 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5378 previously anonymous enumeration type..
5379 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5381 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5382 (target_debug_print_enum_bptype): New.
5383 * target-delegates.c: Regenerate.
5387 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5388 already says and disallow non-stack memory writes in the prologue.
5392 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5393 reflect how current GCC emits stack overflow checks. Match
5394 both trap and break instructions for backward compatbility.
5395 Disallow other trap and break instructions in the prologue.
5400 * linux-nat.c (wait_lwp): Report to the core when thread group
5407 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5408 mark the new thread as resumed. Remove STOPPING parameter.
5409 (wait_lwp): Adjust call to linux_handle_extended_wait.
5410 (linux_nat_filter_event): Adjust call to
5411 linux_handle_extended_wait.
5412 (resume_stopped_resumed_lwps): Add debug output.
5416 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5418 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5419 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5420 gdbarch_fast_tracepoint_valid_at.
5421 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5422 * gdbarch.h: Regenerate.
5423 * gdbarch.c: Regenerate.
5424 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5425 argument. Do not set it.
5426 * remote.c (remote_download_tracepoint): Adjust call to
5427 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5428 the instruction length.
5432 * arm-tdep.h (enum gdb_regnum): Move it to ...
5433 * arch/arm.h: ... here. New file.
5434 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5438 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5439 Change its type to int *.
5440 (decode_br): Rename link argument to is_blr. Change its type to
5442 (decode_cb): Rename op argument to is_cbnz. Change its type to
5444 (decode_tb): Rename op argument to is_tbnz. Change its type to
5445 int *. Set is_tbnz to either 1 or 0.
5446 (aarch64_analyze_prologue): Change type of is_link to int. Add
5447 new variables is_cbnz and is_tbnz. Adjust call to
5448 aarch64_decode_cb and aarch64_decode_tb.
5452 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5454 (mips_linux_new_thread): Likewise.
5455 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5459 * top.c: Include "tui/tui.h".
5460 (undo_terminal_modifications_before_exit): New static function.
5461 (quit_force): Use it.
5465 * target.c (terminal_state): Initialize to terminal_is_ours.
5470 * dcache.c (dcache_read_memory_partial): Call
5471 raw_memory_xfer_partial.
5472 * target.c (raw_memory_xfer_partial): Make it non-static.
5473 * target.h (raw_memory_xfer_partial): Declare.
5477 * c-valprint.c (c_val_print_array): Consider addressable memory
5479 (c_val_print_ptr): Likewise.
5480 (c_val_print_int): Likewise.
5481 * findvar.c (read_frame_register_value): Likewise.
5482 * valarith.c (find_size_for_pointer_math): Likewise.
5483 (value_ptrdiff): Likewise.
5484 (value_subscripted_rvalue): Likewise.
5485 * valops.c (read_value_memory): Likewise (and rename variables).
5486 (value_assign): Likewise.
5487 (value_repeat): Likewise.
5488 (value_array): Likewise.
5489 (value_slice): Likewise.
5490 * valprint.c (generic_val_print_ptr): Likewise.
5491 (generic_val_print_enum): Likewise.
5492 (generic_val_print_bool): Likewise.
5493 (generic_val_print_int): Likewise.
5494 (generic_val_print_char): Likewise.
5495 (generic_val_print_float): Likewise.
5496 (generic_val_print_decfloat): Likewise.
5497 (generic_val_print_complex): Likewise.
5498 (val_print_scalar_formatted): Likewise.
5499 (val_print_array_elements): Likewise.
5500 * value.c (set_value_parent): Likewise.
5501 (value_contents_copy_raw): Likewise.
5502 (set_internalvar_component): Likewise.
5503 (value_primitive_field): Likewise.
5504 (value_fetch_lazy): Likewise.
5505 * value.h (read_value_memory): Update comment.
5509 * value.c (get_value_arch): New function.
5510 * value.h (get_value_arch): New declaration.
5514 * value.c (struct value): Update comments.
5518 * gdbtypes.c (type_length_units): New function.
5519 * gdbtypes.h (type_length_units): New declaration.
5520 (struct type) <length>: Update comment.
5524 * valprint.c (generic_val_print): Factor out complex
5525 printing code to ...
5526 (generic_val_print_complex): ... this new function.
5530 * valprint.c (generic_val_print): Factor out decfloat
5531 printing code to ...
5532 (generic_val_print_decfloat): ... this new function.
5536 * valprint.c (generic_val_print): Factor out float
5537 printing code to ...
5538 (generic_val_print_float): ... this new function.
5542 * valprint.c (generic_val_print): Factor out char
5543 printing code to ...
5544 (generic_val_print_char): ... this new function.
5548 * valprint.c (generic_val_print): Factor out integer
5549 printing code to ...
5550 (generic_val_print_int): ... this new function.
5554 * valprint.c (generic_val_print): Factor out bool
5555 printing code to ...
5556 (generic_val_print_bool): ... this new function.
5560 * valprint.c (generic_val_print): Factor out function/method
5561 printing code to ...
5562 (generic_val_print_func): ... this new function.
5566 * valprint.c (generic_val_print): Factor out flags
5567 printing code to ...
5568 (generic_val_print_flags): ... this new function.
5572 * valprint.c (generic_val_print): Factor out enum
5573 printing code to ...
5574 (generic_val_print_enum): ... this new function.
5578 * valprint.c (generic_val_print): Factor out reference
5579 printing code to ...
5580 (generic_val_print_ref): ... this new function.
5584 * valprint.c (generic_val_print): Factor out memberptr
5585 printing code to ...
5586 (generic_val_print_memberptr): ... this new function.
5590 * valprint.c (generic_val_print): Factor out pointer
5591 printing code to ...
5592 (generic_val_print_ptr): ... this new function.
5596 * valprint.c (generic_val_print): Factor out array
5597 printing code to ...
5598 (generic_val_print_array): ... this new function.
5602 * valprint.c (generic_val_print): Factor out
5603 print_unpacked_pointer code to ...
5604 (print_unpacked_pointer): ... this new function.
5608 * event-top.c (handle_sigterm): Don't inspect
5609 target_can_async_p. Always set the quit flag and always mark
5610 the async signal handler.
5614 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5618 * remote.c (read_ptid): Return null_ptid when no thread id
5620 (remote_current_thread): Add log warning for malformed
5622 (remote_start_remote): Add log warning when current thread
5627 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5628 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5629 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5634 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5635 is resumed, and extend the debug log.
5639 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5643 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5645 * alpha-linux-nat.c: Likewise.
5646 * amd64-linux-nat.c: Likewise.
5647 * arm-linux-nat.c: Likewise.
5648 * hppa-linux-nat.c: Likewise.
5649 * i386-linux-nat.c: Likewise.
5650 * ia64-linux-nat.c: Likewise.
5651 * linux-fork.c: Likewise.
5652 * linux-nat.c: Likewise.
5653 * m32r-linux-nat.c: Likewise.
5654 * m68klinux-nat.c: Likewise.
5655 * mips-linux-nat.c: Likewise.
5656 * nat/linux-btrace.c: Likewise.
5657 * nat/linux-ptrace.c: Likewise.
5658 * nat/linux-ptrace.h
5659 * nat/mips-linux-watch.c: Likewise.
5660 * nat/x86-linux-dregs.c: Likewise.
5661 * ppc-linux-nat.c: Likewise.
5662 * s390-linux-nat.c: Likewise.
5663 * spu-linux-nat.c: Likewise.
5664 * tilegx-linux-nat.c: Likewise.
5665 * x86-linux-nat.c: Likewise.
5666 * xtensa-linux-nat.c: Likewise.
5670 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5671 __ptrace_request as first parameter type instead of int.
5672 (PTRACE_TYPE_ARG1): Define.
5673 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5674 that casts first argument to PTRACE_TYPE_ARG1.
5675 * config.in: Regenerate.
5676 * configure: Regenerate.
5680 * gdb_ptrace.h: Move ...
5681 * nat/gdb_ptrace.h: ... here.
5682 * inf-ptrace.c: Adjust.
5686 * acinclude.m4: Include ptrace.m4.
5687 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5688 * ptrace.m4: ... to this new file.
5692 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5693 (load_cu): Handle dummy CUs.
5694 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5695 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5699 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5700 documentation to say that it returns a list rather than
5702 (linetable_object_methods): Update the docstring of the
5703 "source_line" entry.
5707 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5708 type to the recursive call instead of the original (maybe
5709 TYPE_CODE_TYPEDEF) type.
5713 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5714 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5715 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5719 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5720 Move it to nat/aarch64-linux-hw-point.c.
5721 (aarch64_linux_child_post_startup_inferior): Update.
5722 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5724 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5729 * common/btrace-common.c (btrace_data_append): Change case label.
5733 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5735 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5736 "unsigned long long".
5740 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5741 to be set for SEC_ALLOC sections too.
5745 * Makefile.in (HFILES_NO_SRCDIR): Add
5746 nat/aarch64-linux-hw-point.h.
5747 (aarch64-linux-hw-point.o): New rule.
5748 * nat/aarch64-linux-hw-point.h: New file.
5749 * nat/aarch64-linux-hw-point.c: New file.
5750 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5751 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5752 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5753 (AARCH64_HWP_ALIGNMENT): Likewise.
5754 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5755 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5756 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5757 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5758 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5759 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5760 (struct aarch64_debug_reg_state): Likewise.
5761 (struct arch_lwp_info): Likewise.
5762 (aarch64_linux_set_debug_regs): Likewise.
5763 (aarch64_notify_debug_reg_change): Remove static.
5764 (aarch64_align_watchpoint): Likewise.
5765 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5766 (aarch64_watchpoint_length): Likewise.
5767 (aarch64_point_encode_ctrl_reg): Likewise
5768 (aarch64_point_is_aligned): Likewise.
5769 (aarch64_dr_state_insert_one_point): Likewise.
5770 (aarch64_dr_state_remove_one_point): Likewise.
5771 (aarch64_handle_breakpoint): Likewise.
5772 (aarch64_handle_aligned_watchpoint): Likewise.
5773 (aarch64_handle_unaligned_watchpoint): Likewise.
5774 (aarch64_handle_watchpoint): Likewise.
5775 * config/aarch64/linux.mh (NAT_FILE): Add
5776 aarch64-linux-hw-point.o.
5780 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5781 state and don't call aarch64_get_debug_reg_state. All callers
5783 (aarch64_linux_insert_hw_breakpoint): Call
5784 aarch64_get_debug_reg_state earlier.
5785 (aarch64_linux_remove_hw_breakpoint): Likewise.
5786 (aarch64_handle_aligned_watchpoint): Add argument state and
5787 don't call aarch64_get_debug_reg_state. All callers update.
5788 (aarch64_handle_unaligned_watchpoint): Likewise.
5789 (aarch64_handle_watchpoint): Add argument state.
5790 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5792 (aarch64_linux_remove_watchpoint): Likewise.
5796 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5798 (aarch64_handle_unaligned_watchpoint): Likewise.
5802 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5803 argument type's type to 'enum target_hw_bp_type'.
5804 (aarch64_dr_state_remove_one_point): Likewise.
5805 (aarch64_handle_breakpoint): Likewise.
5806 (aarch64_linux_insert_hw_breakpoint): Likewise.
5807 (aarch64_linux_remove_hw_breakpoint): Likewise.
5808 (aarch64_handle_aligned_watchpoint): Likewise.
5812 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5813 ptid_get_pid instead of get_thread_id.
5817 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5818 (add_current_inferior_and_thread): Don't initialise ptid.
5822 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5823 unavailable if invalid.
5827 Revert the previous 6 commits:
5828 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5829 Move gdb_regex* to common/
5830 Prepare linux_find_memory_regions_full & co. for move
5831 Move linux_find_memory_regions_full & co.
5832 gdbserver build-id attribute generator
5833 Validate symbol file using build-id
5838 Validate symbol file using build-id.
5839 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5840 and 'show validate-build-id'. Add build-id attribute.
5841 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5842 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5843 * solib-frv.c (_initialize_frv_solib): Ditto.
5844 * solib-spu.c (set_spu_solib_ops): Ditto.
5845 * solib-svr4.c: Include rsp-low.h.
5846 (NOTE_GNU_BUILD_ID_NAME): New define.
5847 (svr4_validate): New function.
5848 (svr4_copy_library_list): Duplicate field build_id.
5849 (library_list_start_library): Parse 'build-id' attribute.
5850 (svr4_library_attributes): Add 'build-id' attribute.
5851 (_initialize_svr4_solib): Assign validate value.
5852 * solib-target.c (solib.h): Include.
5853 (_initialize_solib_target): Assign validate value.
5854 * solib.c (validate_build_id, show_validate_build_id): New.
5855 (solib_map_sections): Use ops->validate.
5856 (clear_so): Free build_id.
5857 (default_solib_validate): New function.
5858 (_initialize_solib): Add "validate-build-id".
5859 * solib.h (default_solib_validate): New declaration.
5860 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5861 (target_so_ops): New field 'validate'.
5866 gdbserver build-id attribute generator.
5867 * features/library-list-svr4.dtd (library-list-svr4): New
5868 'build-id' attribute.
5873 Move linux_find_memory_regions_full & co.
5874 * linux-tdep.c (nat/linux-maps.h): Include.
5875 (gdb_regex.h): Remove the include.
5876 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5877 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5878 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5879 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5880 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5881 and target/target.h.
5882 (struct smaps_vmflags, read_mapping, decode_vmflags)
5883 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5884 (linux_find_memory_regions_full): Move from linux-tdep.c.
5885 * nat/linux-maps.h (read_mapping): New declaration.
5886 (linux_find_memory_region_ftype, enum filterflags): Moved from
5888 (linux_find_memory_regions_full): New declaration.
5889 * target.c (target/target-utils.h): Include.
5890 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5891 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5892 definitions to target/target-utils.c.
5893 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5894 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5896 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5897 (read_alloc): New declaration.
5898 (read_stralloc_func_ftype): New typedef.
5899 (read_stralloc): New declaration.
5900 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5905 Prepare linux_find_memory_regions_full & co. for move.
5906 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5907 (linux_find_memory_regions_full): Change signature and prepare
5908 for moving to linux-maps.
5909 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5910 (linux_find_memory_regions_thunk): New.
5911 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5912 (linux_find_memory_regions_gdb): New.
5913 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5914 (linux_make_mappings_corefile_notes): Use
5915 linux_find_memory_regions_gdb.
5916 * target.c (read_alloc_pread_ftype): New typedef.
5917 (target_fileio_read_alloc_1_pread): New function.
5918 (read_alloc): Refactor from target_fileio_read_alloc_1.
5919 (read_stralloc_func_ftype): New typedef.
5920 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5921 (read_stralloc): Refactored from target_fileio_read_stralloc.
5922 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5926 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5928 (COMMON_OBS): Add gdb_regex.o.
5930 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5931 --without-included-regex and USE_INCLUDED_REGEX.
5932 * common/gdb_regex.c: New file from utils.c functions.
5933 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5934 file wrapping define name.
5935 * configure: Rebuilt.
5936 * configure.ac (gdb_use_included_regex, --without-included-regex)
5937 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5938 * gdb_regex.h: Move it to common/gdb_regex.h.
5939 * utils.c: Remove include gdb_regex.h.
5940 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5941 (compile_rx_or_error): Move them to common/gdb_regex.c.
5946 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5947 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5948 common/target-utils.h.
5949 (COMMON_OBS): Add target-utils.o.
5950 (linux-maps.o, target-utils.o): New.
5951 * target/target-utils.c: New file.
5952 * target/target-utils.h: New file.
5953 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5954 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5955 * nat/linux-maps.c: New file.
5956 * nat/linux-maps.h: New file.
5961 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5962 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5963 (perf_event_read_bts): Change the type of SIZE and READ.
5964 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5965 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5966 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5968 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5969 buffer size to UINT_MAX.
5970 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5972 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5973 <last_head>: Change type.
5974 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5975 * common/btrace-common.c (btrace_data_append): Change the type of
5977 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5982 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5983 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5985 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5986 (ada_array_length): Likewise.
5987 (find_parallel_type_by_descriptive_type): Likewise.
5988 (ada_check_typedef): Likewise.
5989 * arm-tdep.c (arm_return_in_memory): Likewise.
5990 * ax-gdb.c (gen_trace_static_fields): Likewise.
5991 (gen_struct_ref_recursive): Likewise.
5992 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5993 (variable: block COLONCOLON name): Likewise.
5994 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5995 * c-lang.c (classify_type): Likewise.
5996 * c-typeprint.c (c_print_type): Likewise.
5997 (c_print_typedef): Likewise.
5998 (c_type_print_base): Likewise.
5999 * c-valprint.c (c_val_print): Likewise.
6000 * compile/compile-c-types.c (convert_type): Likewise.
6001 * compile/compile-object-load.c (get_out_value_type): Likewise.
6002 * completer.c (add_struct_fields): Likewise.
6003 (expression_completer): Likewise.
6004 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6005 (cp_lookup_nested_symbol_1): Likewise.
6006 (cp_lookup_nested_symbol): Likewise.
6007 * cp-valprint.c (cp_print_value_fields): Likewise.
6008 (cp_print_static_field): Likewise.
6009 * d-valprint.c (d_val_print): Likewise.
6010 * eval.c (evaluate_subexp_standard): Likewise.
6011 (evaluate_subexp_for_sizeof): Likewise.
6012 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6013 * f-typeprint.c (f_type_print_base): Likewise.
6014 * f-valprint.c (f_val_print): Likewise.
6015 * gdbtypes.c (get_discrete_bounds): Likewise.
6016 (create_array_type_with_stride): Likewise.
6017 (type_name_no_tag_or_error): Likewise.
6018 (lookup_struct_elt_type): Likewise.
6019 (get_unsigned_type_max): Likewise.
6020 (internal_type_vptr_fieldno): Likewise.
6021 (set_type_vptr_fieldno): Likewise.
6022 (internal_type_vptr_basetype): Likewise.
6023 (set_type_vptr_basetype): Likewise.
6024 (get_vptr_fieldno): Likewise.
6025 (is_integral_type): Likewise.
6026 (is_scalar_type): Likewise.
6027 (is_scalar_type_recursive): Likewise.
6028 (distance_to_ancestor): Likewise.
6029 (is_unique_ancestor_worker): Likewise.
6030 (check_types_equal): Likewise.
6031 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6035 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6036 also test for language_d.
6037 (dwarf2_compute_name): Likewise.
6038 (read_func_scope): Likewise.
6039 (read_structure_type): Likewise.
6040 (new_symbol_full): Likewise.
6041 (determine_prefix): Likewise.
6042 (read_import_statement): Use dot as the separator for language_d.
6043 (typename_concat): Likewise, but don't prefix the D main function.
6047 * nat/linux-namespaces.c (setns): Rename from this ...
6048 (do_setns): ... to this. Support calling setns if it exists.
6049 (mnsh_handle_setns): Call do_setns.
6053 * exec.c (exec_file_attach): Add period at the end of error
6058 * tui/tui-win.c (window_name_completer): New function.
6059 (focus_completer): Call window_name_completer. All old content
6060 moved into window_name_completer.
6061 (winheight_completer): New function.
6062 (_initialize_tui_win): Rename variable. Add completer to
6063 winheight command. Update doc string on winheight.
6067 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6068 all nios2 mach variants.
6072 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6073 of target_read_memory.
6077 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6079 (parse_scrolling_args): Likewise.
6083 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6084 names in this function.
6088 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6089 (CMD_NAME): Likewise.
6090 (DATA_NAME): Likewise.
6091 (DISASSEM_NAME): Likewise.
6092 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6093 (tui_set_win_height): Likewise.
6094 (parse_scrolling_args): Likewise.
6098 * record-btrace.c (record_btrace_goto_begin)
6099 (record_btrace_goto_end, record_btrace_goto): Move call to
6100 print_stack_frame ...
6101 (record_btrace_set_replay): ... here. Set stop_pc.
6102 * record-full.c (record_full_goto_entry): Set stop_pc.
6106 * NEWS: Mention support for tracepoints on aarch64-linux.
6110 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6112 (the_low_target): Install it.
6116 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6117 * gdb.trace/collection.exp: Likewise.
6118 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6119 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6120 * gdb.trace/report.exp: Likewise.
6121 * gdb.trace/trace-break.exp: Likewise.
6122 * gdb.trace/unavailable.exp: Likewise.
6123 * gdb.trace/while-dyn.exp: Likewise.
6127 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6128 (aarch64_gen_return_address): New function.
6129 (aarch64_gdbarch_init): Hook it.
6133 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6134 swallow NOT_AVAILABLE_ERROR.
6135 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6136 available_p is not set.
6137 (aarch64_stub_frame_unwind_stop_reason): New function.
6138 (aarch64_stub_unwind): Install it.
6142 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6144 (aarch64_make_prologue_cache_1): New function, factored out from
6145 aarch64_make_prologue_cache. Do not allocate cache. Set
6147 (aarch64_make_prologue_cache): Reimplement wrapping
6148 aarch64_make_prologue_cache_1, and swallowing
6149 NOT_AVAILABLE_ERROR.
6150 (aarch64_prologue_frame_unwind_stop_reason): New function.
6151 Return UNWIND_UNAVAILABLE if available_p is not set.
6152 (aarch64_prologue_unwind): Install it.
6153 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6154 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6155 frame_id_build_unavailable_stack if available_p is not set.
6159 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6161 (aarch64_scan_prologue): Set prev_pc.
6162 (aarch64_make_prologue_cache): Set func.
6163 (aarch64_make_stub_cache): Set prev_pc.
6164 (aarch64_prologue_this_id): Remove local variables id, pc and
6165 func. Read prev_pc and func from cache.
6166 (aarch64_stub_this_id): Read prev_pc from cache.
6170 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6171 argument this_cache. Remove unused local variables reg and
6172 unwound_fp. Return early if this_cache is already set. Set
6174 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6178 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6179 New argument this_cache. Return early if this_cache is already
6180 set. Set this_cache.
6181 (aarch64_prologue_this_id): Update call to
6182 aarch64_make_prologue_cache.
6183 (aarch64_prologue_prev_register): Likewise.
6184 (aarch64_normal_frame_base): Likewise.
6188 * c-valprint.c (c_val_print): Factor out memberptr printing code
6189 from c_val_print to ...
6190 (c_val_print_memberptr): ... this new function.
6194 * c-valprint.c (c_val_print): Factor out int printing code to ...
6195 (c_val_print_int): ... this new function.
6199 * c-valprint.c (c_val_print): Factor out struct and union
6200 printing code to ...
6201 (c_val_print_struct): ... this new function ...
6202 (c_val_print_union): ... and this new function.
6206 * c-valprint.c (c_val_print): Factor out pointer printing code
6208 (c_val_print_ptr): ... this new function.
6212 * c-valprint.c (c_valprint): Factor our array printing code from
6214 (c_val_print_array): ... this new function.
6218 * c-valprint.c (c_val_print): Factor out pointer printing code
6220 (print_unpacked_pointer): ... this new function.
6224 * c-valprint.c (c_val_print): Remove an assignment to i and move
6229 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6230 argument ptid. Update comments. Caller update.
6234 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6239 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6243 * progspace.c (delete_program_space): Add missing spaces.
6247 * inferior.c (delete_inferior_1): Rename to ...
6248 (delete_inferior): ..., remove 'silent' parameter, delete
6249 program space when unused and remove call to prune_program_spaces.
6250 Remove the old, unused, delete_inferior.
6251 (delete_inferior_silent): Remove.
6252 (prune_inferiors): Change call from delete_inferior_1 to
6253 delete_inferior and remove 'silent' parameter. Remove call to
6254 prune_program_spaces.
6255 (remove_inferior_command): Idem.
6256 * inferior.h (delete_inferior_1): Rename to...
6257 (delete_inferior): ..., remove 'silent' parameter and remove the
6258 original delete_inferior.
6259 (delete_inferior_silent): Remove.
6260 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6261 delete_inferior_1 to delete_inferior and remove 'silent'
6263 * progspace.c (prune_program_spaces): Remove.
6264 (pspace_empty_p): Rename to...
6265 (program_space_empty_p): ... and make non-static.
6266 (delete_program_space): New.
6267 * progspace.h (prune_program_spaces): Remove declaration.
6268 (program_space_empty_p): New declaration.
6269 (delete_program_space): New declaration.
6270 * monitor.c (monitor_close): Replace call to
6271 delete_thread_silent and delete_inferior_silent with
6272 discard_all_inferiors.
6276 * defs.h (deprecated_register_changed_hook): Remove prototype.
6277 * interps.c (clear_iterpreter_hooks): Remove reference to
6278 deprecated_register_changed_hook.
6279 * top.c (deprecated_register_changed_hook): Remove prototype.
6280 * valops.c (value_assign): Remove reference to
6281 deprecated_register_changed_hook.
6282 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6283 Add comment documenting the function.
6284 (tui_register_changed_observer): Define.
6285 (tui_install_hooks): Remove reference to
6286 deprecated_register_changed_hook. Set
6287 tui_register_changed_observer.
6288 (tui_remove_hooks): Remove reference to
6289 deprecated_register_changed_hook. Unset
6290 tui_register_changed_observer.
6295 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6300 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6304 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6308 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6309 Use safe_strerror() instead of strerror().
6313 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6314 * features/arm-with-m-fpa-layout.c: Regenerated.
6315 * features/arm-with-m-vfp-d16.xml: Likewise.
6316 * features/arm-with-m-vfp-d16.c: Regenerated.
6317 * features/arm-with-m.xml: Likewise.
6318 * features/arm-with-m.c: Regenerated.
6319 * features/arm-with-neon.xml: Likewise.
6320 * features/arm-with-neon.c: Regenerated.
6321 * features/arm-with-vfpv2.xml: Likewise.
6322 * features/arm-with-vfpv2.c: Regenerated.
6323 * features/arm-with-vfpv3.xml: Likewise.
6324 * features/arm-with-vfpv3.c: Regenerated.
6328 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6330 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6332 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6333 if target is 32-bit.
6334 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6335 if target is 32-bit.
6336 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6337 if target is 32-bit.
6338 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6339 if target is 32-bit.
6340 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6341 (aarch64_linux_read_description): Return the right target
6343 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6344 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6345 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6350 * aarch32-linux-nat.c: New file.
6351 * aarch32-linux-nat.h: New file.
6352 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6353 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6354 aarch32_gp_regcache_supply.
6355 (store_regs): Move code to aarch32-linux-nat.c. Call
6356 aarch32_gp_regcache_collect.
6357 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6358 aarch32_vfp_regcache_supply.
6359 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6360 aarch32_vfp_regcache_collect.
6361 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6365 * arm-linux-nat.c (store_fpregister): Remove.
6366 (store_register): Likewise.
6367 (fetch_fpregister): Likewise.
6368 (fetch_register): Likewise.
6369 (arm_linux_store_inferior_registers): Call store_regs and
6370 store_fpregs instead.
6371 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6376 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6381 * NEWS: Create a new section for the next release branch.
6382 Rename the section of the current branch, now that it has
6387 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6388 * version.in: Bump version to 7.10.50.DATE-cvs.
6392 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6393 breakpoints in a special way.
6394 (remove_breakpoint): Likewise.
6395 (mark_breakpoints_out): Likewise.
6399 * doc/gdb.texinfo (TUI): Add comma after @xref.
6403 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6404 instead of casting the structure type.
6408 * valops.c (search_struct_field): Remove OFFSET parameter.
6409 (value_cast_structs): Adjust calls to search_struct_field.
6410 (value_struct_elt): Same.
6411 (find_overload_match): Same.
6415 * value.c (value_fetch_lazy): Update comment, change return
6417 * value.h (value_fetch_lazy): Change return value to void.
6421 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6422 (tui_win_name): Make parameter and result const.
6423 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6427 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6428 use printf_unfiltered.
6429 (set_mpx_cmd): Add missing trailing space to command string
6431 (_initialize_i386_tdep): Give the "mpx" prefix command its
6436 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6437 (enum rx_frame_type): New.
6438 (struct rx_prologue): Add new field `frame_type'.
6439 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6440 parameter in the prologue struct. Add code for recording
6441 locations of PC and PSW for fast interrupt and exception frames.
6442 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6443 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6444 (rx_frame_type): New function.
6445 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6446 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6448 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6449 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6450 RX_FRAME_TYPE_FAST_INTERRUPT.
6451 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6452 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6453 (rx_frame_unwind): Use rx_frame_sniffer instead of
6454 default_frame_sniffer.
6455 (rx_frame_unwind): New unwinder.
6456 (rx_gdbarch_init): Register new unwinder.
6460 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6461 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6462 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6464 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6468 Fix GCC false warning.
6469 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6473 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6474 typo in the debugging message.
6478 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6479 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6480 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6481 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6482 (btrace_maint_clear): New.
6483 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6484 (pt_print_packet, btrace_maint_decode_pt)
6485 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6486 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6487 (maint_btrace_packet_history_cmd)
6488 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6489 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6490 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6491 (maint_info_btrace_cmd, _initialize_btrace): New.
6492 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6493 (btrace_maint_packet_history, btrace_maint_info): New.
6494 (btrace_thread_info) <maint>: New.
6495 * NEWS: Announce it.
6499 * btrace.c (btrace_fetch): Append the new trace data.
6500 (btrace_clear): Clear the stored trace data.
6501 * btrace.h (btrace_thread_info) <data>: New.
6502 * common/btrace-common.h (btrace_data_clear)
6503 (btrace_data_append): New.
6504 * common/btrace-common.c (btrace_data_clear)
6505 (btrace_data_append): New.
6509 * nat/linux-btrace.c (linux_enable_bts): Check for
6510 PERF_ATTR_SIZE_VER5.
6511 Check for data_offset and data_size fields. Use them.
6515 * NEWS: Announce new commands "record btrace pt" and "record pt".
6516 Announce new options "set|show record btrace pt buffer-size".
6517 * btrace.c: Include "rsp-low.h".
6518 Include "inttypes.h".
6519 (btrace_add_pc): Add forward declaration.
6520 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6521 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6522 (btrace_compute_ftrace_pt): New.
6523 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6524 (check_xml_btrace_version): Update version check.
6525 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6526 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6527 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6528 (btrace_pt_children): New.
6529 (btrace_children): Add support for "pt".
6530 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6531 (btrace_conf_children): Add support for "pt".
6532 * btrace.h: Include "intel-pt.h".
6533 (btrace_pt_error): New.
6534 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6535 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6536 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6537 (struct btrace_config_pt): New.
6538 (struct btrace_config)<pt>: New.
6539 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6540 (struct btrace_data)<pt>: New.
6541 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6543 * features/btrace.dtd (btrace)<pt>: New.
6544 (pt, pt-config, cpu): New.
6545 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6546 (perf_event_pt_event_type, kernel_supports_pt)
6547 (linux_supports_pt): New.
6548 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6549 (linux_enable_bts): Free tinfo on error.
6550 (linux_enable_pt): New.
6551 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6552 (linux_disable_pt): New.
6553 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6554 (linux_fill_btrace_pt_config, linux_read_pt): New.
6555 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6556 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6557 (struct btrace_target_info)<pt>: New.
6558 * record-btrace.c (set_record_btrace_pt_cmdlist)
6559 (show_record_btrace_pt_cmdlist): New.
6560 (record_btrace_print_pt_conf): New.
6561 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6562 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6563 (cmd_record_btrace_pt_start): New.
6564 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6565 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6566 (_initialize_record_btrace): Add new commands.
6567 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6568 (remote_protocol_features): Add "Qbtrace:pt".
6569 Add "Qbtrace-conf:pt:size".
6570 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6571 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6572 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6573 (_initialize_remote): Add new commands.
6577 * configure.ac: check for libipt
6578 * configure: Regenerate.
6579 * config.in: Regenerate.
6580 * Makefile.in (LIBIPT): New.
6581 (CLIBS): Add $LIBIPT.
6582 * NEWS: document new configure options
6586 * compile/compile-object-load.c (compile_object_load): Replace debug
6587 message "lookup undefined ELF symbol" by 3 more specific messages.
6591 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6592 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6593 (rl78_gdbarch_init): Initialize rl78_psw_type.
6597 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6598 Update commentary. Always refresh the registers when frame
6599 information has changed.
6600 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6601 Change return type to int. Return 1 if frame information has
6602 changed, 0 otherwise.
6603 (tui_before_prompt): Update commentary.
6604 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6610 * frame.c (select_frame): Remove reference to
6611 deprecated_selected_frame_level_changed_hook.
6612 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6614 * stack.c (deprecated_selected_frame_level_changed_hook):
6616 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6618 (tui_refresh_frame_and_register_information): ... this. Bail
6619 out if there is no stack. Don't update register information
6620 unless registers_too_p is true.
6621 (tui_print_frame_info_listing_hook): Rename to ...
6622 (tui_dummy_print_frame_info_listing_hook): ... this.
6623 (tui_before_prompt): New function.
6624 (tui_normal_stop): New function.
6625 (tui_before_prompt_observer): New observer.
6626 (tui_normal_stop_observer): New observer.
6627 (tui_install_hooks): Set
6628 deprecated_print_frame_info_listing_hook to
6629 tui_dummy_print_frame_info_listing_hook. Register
6630 tui_before_prompt_observer to call tui_before_prompt and
6631 tui_normal_stop_observer to call tui_normal_stop. Remove
6632 reference to deprecated_selected_frame_level_changed_hook.
6633 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6634 and tui_normal_stop_observer. Remove reference to
6635 deprecated_selected_frame_level_changed_hook.
6640 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6641 return an int instead of void. Return whether the locator
6643 (tui_show_frame_info): If the locator info has not changed, then
6644 bail out early to avoid refreshing the windows.
6648 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6649 LOCATOR_WIN to tui_alloc_content.
6654 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6659 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6660 (rx_dwarf_reg_to_regnum): New function.
6661 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6667 * infcall.c (run_inferior_call): On infcall success, if the thread
6668 was marked stopped before, reset it back to stopped.
6669 * infrun.c (resume): Don't suppress the set_running calls when
6671 (normal_stop): Only discard the finish_thread_state cleanup if the
6676 * MAINTAINERS (Write After Approval): Update my email address.
6682 * block.c (block_lookup_symbol): For non-function blocks,
6683 continue to search for a symbol with an exact domain match
6684 Otherwise, return any previously found "best domain" symbol.
6685 (block_lookup_symbol_primary): Likewise.
6689 * NEWS: Mention the new option "history remove-duplicates".
6690 * top.c (history_remove_duplicates): New static variable.
6691 (show_history_remove_duplicates): New static function.
6692 (gdb_add_history): Conditionally remove duplicate history
6694 (init_main): Add "history remove-duplicates" option.
6698 * tui/tui-win.c (focus_completer): New static function.
6699 (_initialize_tui_win): Set the completion function of the
6700 "focus" command to focus_completer.
6704 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6706 * symtab.c (find_function_start_sal): Likewise.
6710 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6711 it is the empty string after trailing slashes have been stripped.
6715 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6716 * infrun.c (follow_exec): Likewise.
6717 * remote.c (remote_filesystem_is_local): Likewise.
6718 * solib.c (solib_find_1): Likewise.
6722 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6723 return value from lrealpath.
6727 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6731 * remote-sim.c: Include gdb_bfd.h.
6732 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6733 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6737 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6738 set_gdbarch_get_siginfo_type.
6739 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6740 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6741 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6742 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6743 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6744 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6745 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6746 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6747 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6748 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6752 * common/buffer.c (stdint.h): Do not include.
6753 * common/print-utils.c (stdint.h): Likewise.
6754 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6755 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6756 * ft32-tdep.c (gdb_assert.h): Likewise.
6757 * guile/scm-utils.c (stdint.h): Likewise.
6758 * i386-linux-tdep.c (stdint.h): Likewise.
6759 * i386-tdep.c (stdint.h): Likewise.
6760 * nat/linux-btrace.c (stdint.h): Likewise.
6761 * nat/linux-btrace.h (stdint.h): Likewise.
6762 * nat/linux-ptrace.c (stdint.h): Likewise.
6763 * nat/mips-linux-watch.h (stdint.h): Likewise.
6764 * ppc-linux-nat.c (stdint.h): Likewise.
6765 * python/python-internal.h (stdint.h): Likewise.
6766 * stub-termcap.c (stdlib.h): Likewise.
6767 * target/target.h (stdint.h): Likewise.
6768 * xtensa-linux-nat.c (stdint.h): Likewise.
6772 * top.c (init_history): Look at errno after calling strtol to
6773 properly map large GDBHISTSIZE values to infinity.
6777 * inferior.h (struct inferior_suspend_state): Delete, unused.
6778 All references deleted.
6782 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6783 (microblaze_push_dummy_call): Likewise.
6784 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6785 and set_gdbarch_push_dummy_call.
6789 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6790 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6791 (amd64_linux_store_inferior_registers): Likewise.
6792 * arm-linux-nat.c (fetch_fpregister): Likewise.
6793 (fetch_fpregs, store_fpregister): Likewise.
6794 (store_fpregister, store_fpregs): Likewise.
6795 (fetch_register, fetch_regs): Likewise.
6796 (store_register, store_regs): Likewise.
6797 (fetch_vfp_regs, store_vfp_regs): Likewise.
6798 (arm_linux_read_description): Check have_ptrace_getregset is
6799 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6801 * i386-linux-nat.c (fetch_xstateregs): Check
6802 have_ptrace_getregset is not TRIBOOL_TRUE.
6803 (store_xstateregs): Likewise.
6804 * linux-nat.c (have_ptrace_getregset): Change its type to
6806 * linux-nat.h (tribool): New enum.
6807 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6808 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6812 * NEWS: Mention Sun's version of stabs is no longer supported.
6813 * elfread.c (free_elfinfo): Delete. All uses updated.
6814 (elfstab_offset_sections): Delete. All uses updated.
6815 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6816 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6818 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6819 All callers updated.
6823 * common/rsp-low.c (needs_escaping): New.
6824 (remote_escape_output): Add unit_size parameter. Refactor to
6825 support multi-byte addressable units. Rename parameters.
6826 * common/rsp-low.h (remote_escape_output): Add unit_size
6827 parameter and rename others. Update doc.
6828 * remote.c (align_for_efficient_write): New.
6829 (remote_write_bytes_aux): Add unit_size parameter and use it.
6830 Rename some variables. Update doc.
6831 (remote_xfer_partial): Get unit size and use it.
6832 (remote_read_bytes_1): Add unit_size parameter and use it.
6833 Rename some variables. Update doc.
6834 (remote_write_bytes): Same.
6835 (remote_xfer_live_readonly_partial): Same.
6836 (remote_read_bytes): Same.
6837 (remote_flash_write): Update call to remote_write_bytes_aux.
6838 (remote_write_qxfer): Update call to remote_escape_output.
6839 (remote_search_memory): Same.
6840 (remote_hostio_pwrite): Same.
6844 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6845 locations as inserted.
6846 Update and expand comment about permanent locations.
6847 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6848 Move comment to add_location_to_breakpoint.
6849 (update_global_location_list): Don't error out if a permanent
6850 breakpoint is not marked inserted.
6851 Don't error out if a non-permanent breakpoint location is inserted on
6852 top of a permanent breakpoint.
6856 * breakpoint.c (make_breakpoint_permanent): Remove unused
6858 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6863 * NEWS: Mention new GDBHISTSIZE behavior.
6864 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6865 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6869 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6870 * top.c (init_history): Read from GDBHISTSIZE instead of
6872 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6876 * top.c (gdb_safe_append_history): Do not call
6877 history_truncate_file if the history is not stifled.
6881 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6882 * syscalls/s390x-linux.xml: Likewise.
6886 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6890 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6891 target_terminal_ours_for_output() before calling
6892 tui_show_frame_info(), and restore the original terminal
6893 settings afterwards.
6897 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6901 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6903 (mi_cmd_data_write_memory_bytes): Same.
6907 * corefile.c (write_memory): Update doc.
6908 * gdbcore.h (write_memory): Same.
6912 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6913 (dump_mapping_p): Use it for parameter filterflags.
6914 (linux_find_memory_regions_full): Use it for variable filterflags.
6919 Merge multiple hex conversions.
6920 * monitor.c: Include rsp-low.h.
6921 (fromhex): Remove definition.
6926 Move utility functions to common/.
6927 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6928 Move defs to common/common-utils.c.
6929 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6930 (skip_to_space_const): Move decls to common/common-utils.h.
6931 * common/common-defs.h: Move include of common-types.h before
6933 * common/common-utils.c: Include host-defs.h and ctype.h.
6934 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6936 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6938 * common/common-utils.h (strtoulst): Move decl from utils.h.
6939 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6940 Move from cli/cli-utils.h.
6941 * common/host-defs.h: Include limits.h.
6942 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6943 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6944 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6945 common/common-utils.h.
6946 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6947 (strtoulst): Move to common/common-utils.c.
6948 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6952 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6956 * build-id.c: Don't include elf-bfd.h.
6957 (build_id_bfd_get): Use bfd_build_id.
6958 (build_id_verify): Ditto.
6959 * build-id.h: Ditto.
6960 (find_separate_debug_file_by_buildid): Ditto.
6961 * python/py-objfile.c: Don't include elf-bfd.h.
6962 (objfpy_get_build_id) Use bfd_build_id.
6963 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6964 * coffread.c: Include build-id.h.
6965 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6969 * windows-nat.c (do_windows_fetch_inferior_registers)
6970 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6971 conditional with __CYGWIN__.
6975 * completer.c: Add arch-utils.h include.
6976 (enum reg_completer_targets): New enum.
6977 (reg_or_group_completer_1): New function containing old
6978 reg_or_group_completer, add and use new parameter to control what
6979 is completed on. Use get_current_arch rather than architecture of
6980 currently selected frame.
6981 (reg_or_group_completer): Call new reg_or_group_completer_1.
6982 (reggroup_completer): Call new reg_or_group_completer_1.
6983 * completer.h (reggroup_completer): Add declaration.
6984 * tui/tui-regs.c: Add 'completer.h' include.
6985 (tui_reg_next_command): Renamed to...
6986 (tui_reg_next): ...this. Adjust parameters and return rather than
6988 (tui_reg_prev_command): Renamed to...
6989 (tui_reg_prev): ...this. Adjust parameters and return rather than
6991 (tui_reg_float_command): Delete.
6992 (tui_reg_general_command): Delete.
6993 (tui_reg_system_command): Delete.
6994 (tui_reg_command): Rewrite to perform switching of register group.
6996 (tuireglist): Remove.
6997 (tui_reggroup_completer): New function.
6998 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6999 creation of 'tui reg' command.
7000 * NEWS: Add comment about 'tui reg' changes.
7004 * target.c (target_read): Consider addressable unit size when
7005 reading from a memory object.
7006 (read_memory_robust): Same.
7007 (read_whatever_is_readable): Same.
7008 (target_write_with_progress): Consider addressable unit size
7009 when writing to a memory object.
7010 * target.h (target_read): Update documentation.
7011 (target_write): Add documentation.
7015 * arch-utils.h (default_addressable_memory_unit_size): New.
7016 * arch-utils.c (default_addressable_memory_unit_size): New.
7017 * gdbarch.sh (addressable_memory_unit_size): New.
7018 * gdbarch.h: Re-generate.
7019 * gdbarch.c: Re-generate.
7023 * target.c (target_read): Rename variables and use
7025 (target_read_with_progress): Same.
7026 (read_memory_robust): Constify parameters and rename
7028 (read_whatever_is_readable): Constify parameters,
7029 rename variables, adjust formatting.
7030 * target.h (read_memory_robust): Constify parameters.
7034 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7035 synthetic (non-AltiVec) vector types.
7036 (ppc64_sysv_abi_return_value): Likewise.
7040 PR breakpoints/16465
7041 * breakpoint.c (create_breakpoint): Save extra_string for
7042 pending breakpoints.
7046 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7047 and bt_mask to CORE_ADDR.
7051 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7052 (mnsh_recv_message): Likewise.
7056 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7057 long long int and plongest instead of %ll.
7061 * nat/linux-namespaces.c (gdb_wait.h): New include.
7062 (sys/wait.h): Do not include.
7066 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7067 end_sequence is true.
7072 * solib-target.c (library_list_start_list): Use explicit NULL
7077 * solib-target.c (library_list_start_list): Do not dereference
7078 variable version in its initialization. Make the VERSION check handle
7080 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7084 * NEWS: Announce support for direct access of executable and
7085 shared library files when attaching to inferiors in containers
7086 on GNU/Linux systems.
7090 * remote.c (struct remote_state) <fs_pid>: New field.
7091 (new_remote_state): Initialize the above.
7092 (PACKET_vFile_setfs): New enum value.
7093 (remote_hostio_set_filesystem): New function.
7094 (remote_hostio_open): Call the above.
7095 (remote_hostio_unlink): Likewise.
7096 (remote_hostio_readlink): Likewise.
7097 (_initialize_remote): Register new "set/show remote
7098 hostio-setfs-packet" command.
7099 * NEWS: Announce new vFile:setfs packet.
7103 * linux-nat.c (nat/linux-namespaces.h): New include.
7104 (fileio.h): Likewise.
7105 (linux_nat_filesystem_is_local): New function.
7106 (linux_nat_fileio_pid_of): Likewise.
7107 (linux_nat_fileio_open): Likewise.
7108 (linux_nat_fileio_readlink): Likewise.
7109 (linux_nat_fileio_unlink): Likewise.
7110 (linux_nat_add_target): Initialize to_filesystem_is_local,
7111 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7112 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7114 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7118 * target.h (struct inferior): New forward declaration.
7119 (struct target_ops) <to_filesystem_is_local>: Update comment.
7120 (struct target_ops) <to_fileio_open>: New argument inf.
7121 Update comment. All implementations updated.
7122 (struct target_ops) <to_fileio_unlink>: Likewise.
7123 (struct target_ops) <to_fileio_readlink>: Likewise.
7124 (target_filesystem_is_local): Update comment.
7125 (target_fileio_open): New argument inf. Update comment.
7126 (target_fileio_unlink): Likewise.
7127 (target_fileio_readlink): Likewise.
7128 (target_fileio_read_alloc): Likewise.
7129 (target_fileio_read_stralloc): Likewise.
7130 * target.c (target_fileio_open): New argument inf.
7131 Pass inf to implementation. Update debug printing.
7132 (target_fileio_unlink): Likewise.
7133 (target_fileio_readlink): Likewise.
7134 (target_fileio_read_alloc_1): New argument inf. Pass inf
7135 to target_fileio_open.
7136 (target_fileio_read_alloc): New argument inf. Pass inf to
7137 target_fileio_read_alloc_1.
7138 (target_fileio_read_stralloc): Likewise.
7139 * gdb_bfd.c (inferior.h): New include.
7140 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7141 argument with new argument "inferior". Pass inferior to
7143 (gdb_bfd_open): Supply inferior argument to
7144 gdb_bfd_iovec_fileio_open.
7145 * linux-tdep.c (linux_info_proc): Supply inf argument to
7146 relevant target_fileio calls.
7147 (linux_find_memory_regions_full): Likewise.
7148 (linux_fill_prpsinfo): Likewise.
7149 * remote.c (remote_filesystem_is_local): Supply inf
7150 argument to remote_hostio_open.
7151 (remote_file_put): Likewise.
7152 (remote_file_get): Likewise.
7153 (remote_file_delete): Supply inf argument to
7154 remote_hostio_unlink.
7158 * inf-child.c (inf_child_fileio_open): Replace comment.
7159 (inf_child_fileio_pwrite): Likewise.
7160 (inf_child_fileio_pread): Likewise.
7161 (inf_child_fileio_fstat): Insert blank line before comment.
7162 (inf_child_fileio_close): Replace comment.
7163 (inf_child_fileio_unlink): Likewise.
7164 (inf_child_fileio_readlink): Likewise.
7165 * remote.c (remote_hostio_open): Likewise.
7166 (remote_hostio_pread): Likewise.
7167 (remote_hostio_pwrite): Likewise.
7168 (remote_hostio_close): Likewise.
7169 (remote_hostio_unlink): Likewise.
7170 (remote_hostio_readlink): Likewise.
7171 (remote_hostio_fstat): Likewise.
7172 (remote_filesystem_is_local): Likewise.
7173 * target.c (target_fileio_open): Likewise.
7174 (target_fileio_pwrite): Likewise.
7175 (target_fileio_pread): Likewise.
7176 (target_fileio_fstat): Insert blank line before comment.
7177 (target_fileio_close): Replace comment.
7178 (target_fileio_unlink): Likewise.
7179 (target_fileio_readlink): Likewise.
7180 (target_fileio_read_alloc): Likewise.
7181 (target_fileio_read_stralloc): Likewise.
7185 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7186 (check_pid_namespace_match): Use linux_ns_same rather than
7187 linux_proc_pid_get_ns to spot PID namespace mismatches.
7188 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7189 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7193 * configure.ac (AC_CHECK_FUNCS): Add setns.
7194 * config.in: Regenerate.
7195 * configure: Likewise.
7196 * nat/linux-namespaces.h: New file.
7197 * nat/linux-namespaces.c: Likewise.
7198 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7199 (linux-namespaces.o): New rule.
7200 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7201 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7202 * config/arm/linux.mh (NATDEPFILES): Likewise.
7203 * config/i386/linux.mh (NATDEPFILES): Likewise.
7204 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7205 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7206 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7207 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7208 * config/mips/linux.mh (NATDEPFILES): Likewise.
7209 * config/pa/linux.mh (NATDEPFILES): Likewise.
7210 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7211 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7212 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7213 * config/s390/linux.mh (NATDEPFILES): Likewise.
7214 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7215 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7216 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7217 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7221 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7222 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7223 (make_cleanup_close): Likewise.
7224 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7225 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7226 (make_cleanup_close): Likewise.
7230 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7231 from SuspendThread().
7235 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7236 from OutputDebugString.
7241 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7242 MPX_BT_MASK_32): New macros.
7243 (i386_mpx_set_bounds): New function that implements
7244 the command "set-mpx-bound".
7245 (i386_mpx_enabled): Helper function to test MPX availability.
7246 (i386_mpx_bd_base): Helper function to calculate the base directory
7248 (i386_mpx_get_bt_entry): Helper function to access a bound
7250 (i386_mpx_print_bounds): Effectively display bound information.
7251 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7253 (_initialize_i386_tdep):
7254 Add "bound" to the commands "show mpx" and "set mpx" commands.
7255 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7256 and "show mpx" commands.
7257 * NEWS: List new commands for MPX support.
7261 * common/fileio.h (fileio_to_host_mode): New declaration.
7262 * common/fileio.c (fileio_to_host_mode): New Function.
7263 * inf-child.c (inf_child_fileio_open): Process mode argument
7264 with fileio_to_host_mode.
7268 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7273 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7274 * remote.c (remote_filesystem_is_local): ...here.
7278 * gdbarch.c: Regenerate it.
7282 * arch-utils.c (default_infcall_munmap): New.
7283 * arch-utils.h (default_infcall_munmap): New declaration.
7284 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7285 (munmap_list_free, munmap_listp_free_cleanup): New.
7286 (struct setup_sections_data): Add field munmap_list_headp.
7287 (setup_sections): Call munmap_list_add.
7288 (compile_object_load): New variable munmap_list_head, initialize
7289 setup_sections_data.munmap_list_headp, return munmap_list_head.
7290 * compile/compile-object-load.h (struct munmap_list): New declaration.
7291 (struct compile_module): Add field munmap_list_head.
7292 (munmap_list_free): New declaration.
7293 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7295 (do_module_cleanup): Call munmap_list_free.
7296 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7297 * gdbarch.c: Regenerate.
7298 * gdbarch.h: Regenerate.
7299 * gdbarch.sh (infcall_munmap): New.
7300 * linux-tdep.c (linux_infcall_munmap): New.
7301 (linux_init_abi): Install it.
7306 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7310 * i386-linux-nat.c: Include linux-nat.h.
7316 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7318 * dwarf2loc.c (chain_candidate): Likewise.
7322 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7323 (store_vfp_regs): Use PTRACE_SETREGSET.
7327 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7328 (fetch_fpregs): Likewise.
7329 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7330 (store_fpregs): Likewise.
7334 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7335 (fetch_regs): Likewise.
7336 (store_regs): Use PTRACE_SETREGSET.
7337 (store_register): Likewise.
7341 * arm-linux-nat.c (arm_linux_read_description): Check whether
7342 kernel supports PTRACE_GETREGSET.
7346 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7347 * linux-nat.c: ... here.
7348 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7350 * linux-nat.h: ... here.
7354 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7355 * i386-linux-nat.c: Likewise.
7356 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7357 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7358 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7359 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7360 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7364 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7365 compatible to what read_child and write_child return. This
7366 unbreaks that DJGPP build of GDB which was broken since v7.7.
7370 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7375 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7376 rather than internal_error for an unrecognized value.
7380 * xtensa-tdep.c (xtensa_pseudo_register_read)
7381 (xtensa_pseudo_register_write): Don't alias last pseudo register
7386 * infrun.c (follow_fork_inferior): Ensure the use of
7387 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7392 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7396 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7397 (arm_linux_fetch_inferior_registers): Use
7398 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7399 (arm_linux_store_inferior_registers): Likewise.
7400 (arm_linux_read_description): Don't set
7401 arm_linux_has_wmmx_registers.
7402 * arm-tdep.c (arm_gdbarch_init): Set
7403 tdep->have_wmmx_registers according target descriptions.
7404 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7409 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7410 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7411 instead of arm_linux_vfp_register_count.
7412 (store_vfp_regs): Likewise.
7413 (arm_linux_fetch_inferior_registers): Likewise.
7414 (arm_linux_store_inferior_registers): Likewise.
7415 (arm_linux_read_description): Don't set
7416 arm_linux_vfp_register_count.
7417 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7419 * arm-tdep.c (arm_gdbarch_init): Add assert on
7421 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7422 field to vfp_register_count. All users updated.
7426 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7427 ELFOSABI_GNU binaries.
7431 * dwarf2read.c (lnp_state_machine): New typedef.
7432 (lnp_reader_state): New typedef.
7433 (dwarf_record_line_1): Renamed from dwarf_record_line.
7434 All callers updated.
7435 (dwarf_record_line): New function.
7436 (init_lnp_state_machine): New function.
7437 (check_line_address): Replace p_record_line parameter with state.
7438 All callers updated.
7439 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7440 Update to record state in lnp_state_machine.
7444 * dwarf2read.c (record_line_ftype): New typedef.
7445 (check_line_address): New function.
7446 (dwarf_decode_lines_1): Call it.
7450 * NEWS: Mention "set debug dwarf-line".
7451 * dwarf2read.c (dwarf_line_debug): New static global.
7452 (add_include_dir): Add debug dwarf-line support.
7453 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7454 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7458 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7459 All callers updated.
7460 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7461 * cp-support.h (cp_lookup_nested_symbol): Update.
7466 * block.c (block_find_symbol): New function.
7467 (block_find_non_opaque_type): Ditto.
7468 (block_find_non_opaque_type_preferred): Ditto.
7469 * block.h (block_symbol_matcher_ftype): New typedef.
7470 (block_find_symbol): Declare.
7471 (block_find_non_opaque_type): Ditto.
7472 (block_find_non_opaque_type_preferred): Ditto.
7473 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7474 * psymtab.c (psym_lookup_symbol): Ditto.
7475 * symtab.c (basic_lookup_transparent_type_1): New function.
7476 (basic_lookup_transparent_type): Call it.
7480 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7481 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7485 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7487 (aarch64_record_load_store): Likewise.
7491 PR c++/18141, c++/18417.
7492 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7497 * NEWS: Add entries for command renamings.
7498 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7500 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7501 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7503 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7504 All callers updated. Fix spelling of DWARF in help text.
7505 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7507 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7509 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7510 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7511 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7513 (show_dwarf_always_disassemble): Renamed from
7514 show_dwarf2_always_disassemble. All callers updated.
7515 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7516 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7517 "set/show dwarf max-cache-age". Rename
7518 "set/show dwarf2 always-disassemble" to
7519 "set/show dwarf always-disassemble". Rename
7520 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7521 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7526 * python/py-lazy-string.c (stpy_convert_to_value): Use
7527 gdbpy_gdb_memory_error not PyExc_MemoryError.
7528 (gdbpy_create_lazy_string_object): Ditto.
7532 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7536 * tui/tui-regs.c (tui_reg_prev_command): New function.
7537 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7538 * reggroups.c (reggroup_prev): New function.
7539 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7544 * aarch64-linux-tdep.c: Include linux-record.h and
7546 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7547 (aarch64_syscall): New enum.
7548 (aarch64_canonicalize_syscall): New function.
7549 (aarch64_all_but_pc_registers_record): New function.
7550 (aarch64_linux_syscall_record): New function.
7551 (aarch64_linux_init_abi): Install AArch64 process record
7552 handler. Update to handle syscall recording.
7553 * aarch64-tdep.c: Include record.h and record-full.h.
7554 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7555 (struct aarch64_mem_r): Define.
7556 (aarch64_record_result): New enum.
7557 (struct insn_decode_record): Define.
7558 (insn_decode_record): New typedef.
7559 (aarch64_record_data_proc_reg): New function.
7560 (aarch64_record_data_proc_imm): New function.
7561 (aarch64_record_branch_except_sys): New function.
7562 (aarch64_record_load_store): New function.
7563 (aarch64_record_data_proc_simd_fp): New function.
7564 (aarch64_record_asimd_load_store): New function.
7565 (aarch64_record_decode_insn_handler): New function.
7566 (deallocate_reg_mem): New function.
7567 (aarch64_process_record): New function.
7568 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7570 (aarch64_process_record): New extern declaration.
7571 * configure.tgt: Add linux-record.o to gdb_target_obs.
7572 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7576 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7581 * amd64-tdep.c: Replace in_function_epilogue_p with
7582 stack_frame_destroyed_p throughout.
7583 * arch-utils.c: Ditto.
7584 * arch-utils.h: Ditto.
7585 * arm-tdep.c: Ditto.
7586 * breakpoint.c: Ditto.
7587 * gdbarch.sh: Ditto.
7588 * hppa-tdep.c: Ditto.
7589 * i386-tdep.c: Ditto.
7590 * mips-tdep.c: Ditto.
7591 * nios2-tdep.c: Ditto.
7592 * rs6000-tdep.c: Ditto.
7593 * s390-linux-tdep.c: Ditto.
7594 * score-tdep.c: Ditto.
7596 * sparc-tdep.c: Ditto.
7597 * sparc-tdep.h: Ditto.
7598 * sparc64-tdep.c: Ditto.
7599 * spu-tdep.c: Ditto.
7600 * tic6x-tdep.c: Ditto.
7601 * tilegx-tdep.c: Ditto.
7602 * xstormy16-tdep.c: Ditto.
7603 * gdbarch.c, gdbarch.h: Re-generated.
7607 * NEWS: Mention 'tui enable' and 'tui disable'.
7608 * tui/tui.c (tui_enable_command): New function.
7609 (tui_disable_command): New function.
7610 (_initialize_tui): New function.
7614 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7618 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7623 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7625 (tui_set_layout_for_display_command): ...here, before calling
7626 tui_set_layout. Only set the layout if gdb has not already
7627 entered the TUI_FAILURE state.
7631 * tui/tui-layout.c (layout_completer): New function.
7632 (_initialize_tui_layout): Set completer on layout command.
7636 * tui/tui-layout.c (tui_set_layout): Remove
7637 tui_register_display_type parameter. Remove all checking of this
7638 parameter, and reindent function. Update header comment.
7639 (tui_set_layout_for_display_command): Rename to...
7640 (tui_set_layout_by_name): ...this, and don't check for different
7641 register class types, don't pass a tui_register_display_type to
7642 tui_set_layout. Update header comment.
7643 (layout_names): Remove register set specific names.
7644 * tui/tui-layout.h (tui_set_layout): Remove
7645 tui_register_display_type parameter.
7646 * tui/tui.c (tui_rl_change_windows): Don't pass a
7647 tui_register_display_type to tui_set_layout.
7648 (tui_rl_delete_other_windows): Likewise.
7649 (tui_enable): Likewise.
7650 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7651 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7652 (TUI_GENERAL_REGS_NAME): Remove.
7653 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7654 (TUI_SPECIAL_REGS_NAME): Remove.
7655 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7656 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7657 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7658 (enum tui_register_display_type): Remove.
7659 (struct tui_layout_def): Remove regs_display_type and
7660 float_regs_display_type fields.
7661 (struct tui_data_info): Remove regs_display_type field.
7662 (tui_layout_command): Use new name for
7663 tui_set_layout_for_display_command.
7664 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7665 (tui_clear_win_detail): Don't initialise removed fields of
7667 * tui/tui-regs.c (tui_show_registers): Use new name for
7668 tui_set_layout_for_display_command.
7669 * tui/tui.h (tui_set_layout_for_display_command): Rename
7671 (tui_set_layout_by_name): ...this.
7672 * printcmd.c (display_command): Remove tui related layout call,
7677 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7678 (handle_inferior_event): New function.
7682 * ada-lang.c (to_fixed_array_type): Rename local variable
7683 typename into type_name.
7687 Fix ASAN crash for gdb.compile/compile.exp.
7688 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7692 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7693 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7694 * compile/compile-object-load.c (setup_sections, compile_object_load):
7696 * compile/compile.c (compile_to_object): Likewise.
7700 * NEWS: Mention support for unbuffered Guile memory ports.
7701 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7702 (ioscm_lseek_address): Improve overflow calculation.
7703 (gdbscm_memory_port_fill_input): Add assert.
7704 (gdbscm_memory_port_write): Handle unbuffered ports.
7705 Handle large writes identical to Guile's fport_write.
7706 (gdbscm_memory_port_seek): Fix seeking past end check.
7707 (gdbscm_memory_port_close): Handle closing unbuffered port.
7708 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7709 (ioscm_init_memory_port): Handle unbuffered ports.
7710 (ioscm_reinit_memory_port): Ditto.
7711 (ioscm_init_memory_port): Update size calculation.
7712 (gdbscm_open_memory): Support zero sized ports.
7716 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7717 variable compiler warnings.
7721 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7726 * NEWS (Changes since GDB 7.9): Add compile print.
7727 * compile/compile-c-support.c (add_code_header, add_code_footer)
7728 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7729 COMPILE_I_PRINT_VALUE_SCOPE.
7730 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7731 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7733 * compile/compile-object-load.c: Include block.h.
7734 (get_out_value_type): New function.
7735 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7736 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7738 * compile/compile-object-load.h (struct compile_module): Add fields
7739 out_value_addr and out_value_type.
7740 * compile/compile-object-run.c: Include valprint.h and compile.h.
7741 (struct do_module_cleanup): Add fields out_value_addr and
7743 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7744 COMPILE_I_PRINT_VALUE_SCOPE.
7745 (compile_object_run): Propagate out_value_addr and out_value_type.
7746 Pass OUT_VALUE_ADDR.
7747 * compile/compile.c: Include valprint.h.
7748 (compile_print_value, compile_print_command): New functions.
7749 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7750 (_initialize_compile): Update compile code help text. Install
7751 compile_print_command.
7752 * compile/compile.h (compile_print_value): New prototype.
7753 * defs.h (enum compile_i_scope_types): Add
7754 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7758 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7759 Rely on its parameter count.
7760 (compile_object_load): Replace lookup_minimal_symbol_text by
7761 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7763 * compile/compile-object-load.h (struct compile_module): Replace
7764 func_addr by func_sym.
7765 * compile/compile-object-run.c: Include block.h.
7766 (compile_object_run): Reset module variable after it is freed. Use
7767 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7771 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7772 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7773 (c_compute_program): Call generate_register_struct after typedefs.
7774 * compile/compile-loc2c.c (push, pushf_register_address)
7775 (pushf_register): Cast to GCC_UINTPTR.
7776 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7777 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7778 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7779 * compile/compile.c (_initialize_compile): Enable warnings for
7784 * cli/cli-script.c (execute_control_command): Update
7785 eval_compile_command caller.
7786 * compile/compile-object-load.c (compile_object_load): Add parameters
7787 scope and scope_data. Set them.
7788 * compile/compile-object-load.h (struct compile_module): Add fields
7789 scope and scope_data.
7790 (compile_object_load): Add parameters scope and scope_data.
7791 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7792 scope and scope_data.
7793 (compile_object_run): Propagate the fields scope and scope_data.
7794 * compile/compile.c (compile_file_command, compile_code_command):
7795 Update eval_compile_command callers.
7796 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7797 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7798 * defs.h (struct command_line): Add field scope_data.
7802 * printcmd.c (struct format_data): Move it to valprint.h.
7803 (print_command_parse_format, print_value): New functions from ...
7804 (print_command_1): ... here. Call them.
7805 * valprint.h (struct format_data): Move it here from printcmd.c.
7806 (print_command_parse_format, print_value): New declarations.
7810 * compile/compile-object-load.c (compile_object_load): Add
7811 COMPILE_DEBUG message.
7815 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7816 index to get element instead of enum value.
7817 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7818 of index to compute length, but enum values to compute bounds.
7819 (ada_array_length): Use enum position of index instead of enum value.
7820 (pos_atr): Move position computation to...
7821 (ada_evaluate_subexp): Use enum values to compute bounds.
7822 * gdbtypes.c (discrete_position): ...this new function.
7823 * gdbtypes.h (discrete_position): New function declaration.
7824 * valprint.c (val_print_array_elements): Call discrete_position
7825 to handle array indexed by non-contiguous enumeration types.
7829 * ada-lang.c (find_parallel_type_by_descriptive_type):
7830 Go through typedefs during lookup.
7831 (to_fixed_array_type): Add support for non-bit packed arrays
7832 as variable-length fields.
7837 * event-loop.c (gdb_notifier) <next_file_handler,
7838 next_poll_fds_index>: New fields.
7839 (get_next_file_handler_to_handle_and_advance): New function.
7840 (delete_file_handler): If deleting the next file handler to
7841 handle, advance to the next file handler.
7842 (gdb_wait_for_event): Bail early if no event fired. Poll file
7843 handlers in round-robin fashion.
7847 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7848 'private' to 'priv'.
7852 * nat/linux-nat.h: Include "target/waitstatus.h".
7856 * python/py-unwind.c (struct reg_info): Move out of ...
7857 (struct cached_frame_info): ... this scope.
7858 (pending_frame_object_type, unwind_info_object_type): Make extern.
7862 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7863 accumSize is never negative.
7867 * tui/tui-command.c: Remove include of <ctype.h>.
7868 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7872 * dwarf2read.c (die_needs_namespace): Return 1 for
7873 DW_TAG_inlined_subroutine.
7877 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7878 (regcache_cpy_no_passthrough): Make it static, add function comment.
7879 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7880 (regcache_cpy_no_passthrough): Remove declaration.
7884 * gdbthread.h (struct thread_control_state): Update comment for
7886 * infcall.c (run_inferior_call): Update comment about
7888 * infcmd.c (get_return_value): Update comment about stop_registers.
7889 (finish_forward): Update comment about proceed_to_finish.
7890 * infrun.c (stop_registers): Remove.
7891 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7892 * infrun.h (stop_registers): Remove.
7896 * infcall.c (struct dummy_frame_context_saver)
7897 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7898 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7899 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7901 (call_function_by_hand_dummy): Move discard_cleanups of
7902 inf_status_cleanup before dummy_frame_push. Call
7903 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7904 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7905 * infcall.h (struct dummy_frame_context_saver)
7906 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7907 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7909 * infcmd.c: Include infcall.h.
7910 (get_return_value): Add parameter ctx_saver, use it instead of
7912 (print_return_value): Add parameter ctx_saver, pass it.
7913 (struct finish_command_continuation_args): Add field ctx_saver.
7914 (finish_command_continuation): Update print_return_value caller.
7915 (finish_command_continuation_free_arg): Free also ctx_saver.
7916 (finish_forward): Call dummy_frame_context_saver_setup.
7917 * inferior.h (struct dummy_frame_context_saver): New declaration.
7918 (get_return_value): Add parameter ctx_saver.
7919 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7920 get_return_value caller.
7924 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7925 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7926 (remove_dummy_frame): Process dtor_list.
7927 (pop_dummy_frame): Process dtor_list.
7928 (register_dummy_frame_dtor): Maintain dtor_list.
7929 (find_dummy_frame_dtor): Handle dtor_list.
7930 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7935 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7937 (compile_object_run): Update do_module_cleanup caller.
7938 * dummy-frame.c: Include infcall.h.
7939 (struct dummy_frame): Update dtor comment.
7940 (remove_dummy_frame): Call dtor.
7941 (pop_dummy_frame): Update dtor caller.
7942 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7951 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7952 Xmethods now being able to specify a result type to that new
7957 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7958 first before resizing the window.
7959 * tui/tui.c (tui_enable): Likewise.
7963 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7964 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7965 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7966 dummy_dtor parameter.
7967 * infcall.h: Include dummy-frame.h.
7968 (call_function_by_hand_dummy_dtor_ftype): Remove.
7969 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7975 * top.c (history_size_setshow_var): Change type to signed.
7976 Initialize to -2. Update documentation.
7977 (set_readline_history_size): Define.
7978 (set_history_size_command): Use it. Remove logic for handling
7980 (init_history): Use set_readline_history_size(). Test for a
7981 value of -2 instead of 0 when determining whether to set a
7982 default history size.
7983 (init_main): Decode the argument of the "size" command as a
7984 zuinteger_unlimited.
7988 * dwarf2read.c (struct file_entry): Tweak comments.
7989 (get_debug_line_section): Tweak comments.
7993 * NEWS: Announce fork support in the RSP and support
7994 for fork debugging in extended mode.
7998 * remote.c (remote_insert_fork_catchpoint): New function.
7999 (remote_remove_fork_catchpoint): New function.
8000 (remote_insert_vfork_catchpoint): New function.
8001 (remote_remove_vfork_catchpoint): New function.
8002 (pending_fork_parent_callback): New function.
8003 (remove_new_fork_child): New function.
8004 (remote_update_thread_list): Call remote_notif_get_pending_events
8005 and remove_new_fork_child.
8006 (extended_remote_kill): Kill fork child when killing the
8007 parent before follow_fork completes.
8008 (init_extended_remote_ops): Initialize target vector with
8009 new fork catchpoint functions.
8013 * remote.c (remove_vfork_event_p): New function.
8014 (remote_follow_fork): Add vfork event type to event checking.
8015 (remote_parse_stop_reply): New stop reasons "vfork" and
8016 "vforkdone" for RSP 'T' Stop Reply Packet.
8020 * linux-nat.c (linux_nat_ptrace_options): New function.
8021 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8022 Call linux_nat_ptrace_options and use different argument to
8023 linux_enable_event_reporting.
8024 (_initialize_linux_nat): Delete call to
8025 linux_ptrace_set_additional_flags.
8026 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8027 supported_ptrace_options.
8028 (additional_flags): Delete variable.
8029 (linux_check_ptrace_features): Use supported_ptrace_options.
8030 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8031 Likewise, and remove additional_flags check.
8032 (linux_enable_event_reporting): Change 'attached' argument to
8033 'options'. Use supported_ptrace_options.
8034 (ptrace_supports_feature): Change comment. Use
8035 supported_ptrace_options.
8036 (linux_ptrace_set_additional_flags): Delete function.
8037 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8038 Delete function prototype.
8039 * remote.c (remote_fork_event_p): New function.
8040 (remote_detach_pid): New function.
8041 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8042 if doing detach-on-fork.
8043 (remote_follow_fork): New function.
8044 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8045 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8046 (init_extended_remote_ops): Initialize to_follow_fork.
8050 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8051 from static to extern.
8052 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8053 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8054 * PACKET_vfork_event_feature>: New enumeration constants.
8055 (remote_protocol_features): Add table entries for new packets.
8056 (remote_query_supported): Add new feature queries to qSupported
8061 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8062 for fake PIDs as well as real ones.
8063 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8067 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8068 * python/py-value.c (valpy_reference_value): New function.
8069 (valpy_const_value): Likewise.
8070 (value_object_methods): Add new methods.
8071 * value.c (make_cv_value): New function.
8072 * value.h (make_cv_value): Declare.
8077 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8078 to 'lh->include_dirs' before accessing to it.
8079 (psymtab_include_file_name): Likewise.
8080 (dwarf_decode_lines_1): Likewise.
8081 (dwarf_decode_lines): Likewise.
8082 (file_file_name): Likewise.
8086 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8087 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8088 (nios2_linux_rt_sigreturn_init): Adjust base address of
8093 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8094 "trap 31" as the breakpoint instruction on all targets.
8098 * infcmd.c (print_return_value): Remove unused declaration.
8102 * dwarf2read.c (attr_to_dynamic_prop)
8103 <DW_AT_data_member_location>: Use read_type_die isntead of
8108 * ada-lang.c (ada_convert_actual): Add handling of formals
8109 passed inside an aligner type.
8113 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8118 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8119 Print xmethod matcher status.
8123 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8124 register in the regcache when treating the PSWM register, and vice
8129 * linux-thread-db.c (struct thread_db_info)
8130 <td_ta_map_id2thr_p>: Remove field.
8131 (try_thread_db_load_1): Remove initialization for the above.
8135 * linux-thread-db.c (struct thread_db_info)
8136 <td_thr_validate_p>: Remove field.
8137 (try_thread_db_load_1): Remove initialization for the above.
8141 * compile/compile-object-load.c (compile_object_load): Support
8146 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8147 const. Use new variables for the const compatibility.
8148 (eval_compile_command): Make the cmd_string parameter const.
8149 * compile/compile.h (eval_compile_command): Make the cmd_string
8154 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8156 * top.c (deprecated_init_ui_hook): Delete.
8157 (gdb_init): Remove handling of deprecated_init_ui_hook.
8158 * interps.c (clear_interpreter_hooks): Remove handling of
8159 deprecated_init_ui_hook.
8160 * main.c (captured_main): Update comment.
8164 * solib.c (_initialize_solib): Add "info dll" alias creation.
8165 * windows-nat.c (set_windows_aliases): Delete.
8166 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8168 * NEWS: Add news entry about "info dll" now being available
8173 * ada-lang.c (value_assign_to_component): Reformat and improve
8174 documentation. Remove all trailing spaces.
8178 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8179 Stop counting inlined frames as soon as an out-of-line function
8184 * dwarf2read.c (inherit_abstract_dies): Skip
8185 DW_TAG_GNU_call_site dies while inheriting children of an
8186 abstract DIE into a scope.
8187 (read_lexical_block_scope): Inherit abstract DIE's for
8192 * ada-valprint.c (val_print_packed_array_elements): Delete
8193 variable "len". Add a type-length check when comparing two
8194 consecutive elements of the array. Use the element's actual
8195 length in call to value_contents_eq.
8196 * ada-lang.c (ada_value_primitive_packed_val): Always return
8197 a value whose type has been resolved.
8201 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8202 BIT_SIZE and LEN if the size of the resolved type is smaller
8203 than BIT_SIZE * HOST_CHAR_BIT.
8207 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8208 correct address in call to value_at. Adjust call to
8209 value_address accordingly.
8213 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8218 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8219 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8221 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8222 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8223 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8224 Add handling of addr_stack->valaddr.
8225 (resolve_dynamic_type): Add "valaddr" parameter.
8226 Set pinfo.valaddr field.
8227 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8228 resolve_dynamic_type.
8229 (ada_discrete_type_low_bound): Likewise.
8230 * findvar.c (default_read_var_value): Likewise.
8231 * value.c (value_from_contents_and_address): Likewise.
8235 * gdbtypes.c (resolve_dynamic_array): Use
8236 create_array_type_with_stride instead of create_array_type.
8240 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8246 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8247 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8248 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8249 * extension-priv.h (struct extension_language_ops)
8250 <get_xmethod_result_type>: New member.
8251 * extension.c (get_xmethod_result_type): New function.
8252 * extension.h (get_xmethod_result_type): Declare.
8253 * python/py-xmethods.c (get_result_type_method_name): New static
8255 (py_get_result_type_method_name): Ditto.
8256 (gdbpy_get_xmethod_result_type): New function.
8257 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8258 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8259 * python/python.c (python_extension_ops): Add
8260 gdbpy_get_xmethod_result_type.
8261 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8262 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8264 (value_x_unop): Ditto.
8265 * value.c (result_type_of_xmethod): New function.
8266 * value.h (result_type_of_xmethod): Declare.
8270 * solib.c (solib_find_1): Allow fd argument to be NULL.
8271 (exec_file_find): Update comment.
8272 (solib_find): Likewise.
8273 * exec.c (exec_file_locate_attach): Use NULL as fd
8274 argument to exec_file_find to avoid having to close
8276 * infrun.c (follow_exec): Likewise.
8281 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8282 name or __name__ attributes. Handle gdb module as first argument.
8287 * python/py-prettyprint.c (print_children): Verify result of children
8288 iterator. Provide better error message.
8289 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8290 * python/python.c (gdbpy_print_python_errors_p): New function.
8294 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8298 * NEWS: Mention gdb.Type.optimized_out method.
8299 * python/py-type.c (typy_optimized_out): New function.
8303 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8307 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8308 (initialize_utils): Move call of init_page_info() to ...
8309 * top.c (gdb_init): ... here.
8313 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8314 (tui_sigwinch_handler): Still update our idea of
8315 the terminal's width and height even when TUI is not active.
8319 * utils.h (set_screen_width_and_height): Declare.
8320 * utils.c (set_screen_width_and_height): Define.
8321 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8325 * infrun.c (solist.h): New include.
8326 (follow_exec): Use exec_file_find to prefix execd_pathname
8331 * tui/tui-source.c (tui_set_source_content): Avoid calling
8332 strcpy() when offset is 0.
8337 * tui/tui-data.c (tui_free_window): Don't free the locator
8338 window when passed an SRC_WIN or a DISASSEM_WIN.
8342 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8343 (tui_win_content): Move declaration.
8344 (struct tui_gen_win_info): Give 'content' field the
8345 type tui_win_content.
8346 * tui/tui-data.c (init_content_element): Remove redundant and
8348 (tui_add_content_elements): Remove erroneous cast.
8349 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8351 (tui_get_begin_asm_address): Likewise.
8352 * tui/tui-regs.c (tui_show_registers): Likewise.
8353 (tui_show_register_group): Likewise.
8354 (tui_display_registers_from): Likewise.
8355 (tui_check_register_values): Likewise.
8356 * tui/tui-source.c (tui_set_source_content): Likewise.
8357 (tui_set_source_content_nil): Likewise.
8358 (tui_source_is_displayed): Likewise.
8359 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8360 (tui_set_locator_fullname): Likewise.
8361 (tui_set_locator_info): Likewise.
8362 (tui_show_frame_info): Likewise.
8363 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8364 (tui_show_source_line): Likewise.
8365 (tui_horizontal_source_scroll): Likewise.
8366 (tui_update_breakpoint_info): Likewise.
8367 (tui_set_exec_info_content): Likewise.
8368 (tui_show_exec_info_content): Likewise.
8369 (tui_alloc_source_buffer): Likewise.
8370 (tui_line_is_displayed): Likewise.
8371 (tui_addr_is_displayed): Likewise.
8375 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8376 event if PL_FLAG_EXEC is set.
8377 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8378 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8379 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8380 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8381 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8385 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8386 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8387 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8388 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8389 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8390 [PT_LWPINFO] (fbsd_wait): New function.
8391 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8392 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8393 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8394 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8395 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8396 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8397 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8398 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8399 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8401 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8402 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8403 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8404 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8405 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8406 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8407 Set "to_post_attach" to "fbsd_post_attach".
8411 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8412 (fbsd_find_memory_regions): Mark static.
8413 (fbsd_nat_add_target): New function.
8414 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8415 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8416 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8417 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8418 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8419 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8423 * objfiles.c (allocate_objfile): Do not attempt to expand name
8424 if name is a "target:" filename.
8425 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8426 to load auto-load scripts for objfiles with "target:" filenames.
8430 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8431 (enum s390_vector_abi_kind): New enum.
8432 (struct gdbarch_tdep)<vector_abi>: New field.
8433 (s390_effective_inner_type): Add parameter min_size. Stop
8434 unwrapping if the inner type is smaller than min_size.
8435 (s390_function_arg_float): Adjust call to
8436 s390_effective_inner_type.
8437 (s390_function_arg_vector): New function.
8438 (s390_function_arg_integer): Adjust comment.
8439 (struct s390_arg_state)<vr>: New field.
8440 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8441 arguments according to vector ABI when appropriate.
8442 (s390_push_dummy_call): Initialize the argument state's field
8443 'vr'. Adjust calls to s390_handle_arg.
8444 (s390_register_return_value): Handle vector return values.
8445 (s390_return_value): Apply the "register" return value convention
8446 to a vector when appropriate.
8447 (s390_gdbarch_init): Initialize tdep->vector_abi.
8448 * NEWS: Announce S390 vector ABI support.
8452 * s390-linux-tdep.c (s390_return_value_convention): Remove
8453 function. Inline its logic...
8454 (s390_return_value): ...here. Instead, move the handling of the
8455 "register" return value convention...
8456 (s390_register_return_value): ...here. New function.
8461 (is_float_singleton): Remove function. Move the "singleton" part
8463 (s390_effective_inner_type): ...here. New function.
8464 (is_float_like): Remove function. Inline its logic...
8465 (s390_function_arg_float): ...here.
8466 (is_pointer_like, is_integer_like, is_struct_like): Remove
8467 functions. Inline their logic...
8468 (s390_function_arg_integer): ...here.
8469 (s390_function_arg_pass_by_reference): Remove function.
8470 (extend_simple_arg): Remove function.
8471 (alignment_of): Remove function.
8472 (struct s390_arg_state): New structure.
8473 (s390_handle_arg): New function.
8474 (s390_push_dummy_call): Move parameter placement logic to the new
8475 function s390_handle_arg. Call it for calculating the stack area
8476 sizes first, and again for actually writing the parameters.
8480 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8481 false if the argument is zero.
8485 * ada-lang.c (template_to_static_fixed_type): Return input type
8486 when it is already fixed. Cache the input type itself when not
8487 creating a static fixed copy. Make it explicit that we never
8488 molestate the input type.
8489 * gdbtypes.c (resolve_dynamic_struct): Reset the
8490 TYPE_TARGET_TYPE field for resolved copies.
8494 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8495 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8496 (template_to_static_fixed_type): Call ada_check_typedef only
8501 * cli/cli-dump.c (srec_dump_command): Add internationalization
8503 (ihex_dump_command): Likewise.
8504 (tekhex_dump_command): Likewise.
8505 (binary_dump_command): Likewise.
8506 (binary_append_command): Likewise.
8510 * cli/cli-dump.c (verilog_cmdlist): New variable.
8511 (dump_verilog_memory): New function.
8512 (dump_verilog_value): New function.
8513 (verilog_dump_command): New function.
8514 (_initialize_cli_dump): Add new commands to support verilog dump
8516 * NEWS: Add entry for "dump verilog".
8520 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8521 descriptive type when there is none.
8525 * tui/tui-win.c (tui_async_resize_screen): Call
8526 rl_resize_terminal().
8530 * windows-nat.c (handle_output_debug_string): Don't change
8531 current_event.dwThreadId.
8532 (get_windows_debug_event): Use thread_id, rather than relying on
8533 current_event.dwThreadId being changed.
8537 * windows-nat.c (windows_continue): Report an error if
8538 ContinueDebugEvent() fails.
8542 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8546 * windows-nat.c (get_windows_debug_event): Replace retval with
8547 thread_id throughout. Update stale comment.
8551 * windows-nat.c (get_windows_debug_event): Don't use ternary
8552 conditional operator.
8557 p-exp.y (yylex): Reorganize code to return the matched pattern
8558 for a field of this.
8562 * common/fileio.h (fileio_to_host_openflags): New declaration.
8563 * common/fileio.c (fcntl.h): New include.
8564 (fileio_to_host_openflags): New function, factored out from...
8565 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8570 * rl78-tdep.c (RL78_SP_ADDR): Define.
8571 (opc_reg_to_gdb_regnum): New static function.
8572 (rl78_analyze_prologue): Recognize instructions forming slightly
8573 more interesting prologues.
8579 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8580 TYPE_CODE_REF types so that they are not considered as dynamic
8581 depending on the referenced type.
8582 (resolve_dynamic_type_internal): Likewise.
8588 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8589 "top_level" parameter.
8590 (resolve_dynamic_type_internal): Remove the unused "top_level"
8591 parameter. Update call to is_dynamic_type_internal.
8592 (is_dynamic_type): Update call to is_dynamic_type_internal.
8593 (resolve_dynamic_range): Update call to
8594 resolve_dynamic_type_internal.
8595 (resolve_dynamic_union): Likewise.
8596 (resolve_dynamic_struct): Likewise.
8597 (resolve_dynamic_type): Likewise.
8601 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8606 * reply_mig_hack.awk: Robustify parsing.
8608 * reply_mig_hack.awk: Don't bother to declare an intermediate
8609 function pointer variable.
8613 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8614 to "exec_displacement" to avoid confusion with inner use of the name.
8618 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8619 if HW point of TYPE isn't supported.
8624 * target.h (target_can_use_hardware_watchpoint): Update comments.
8625 Remove trailing ";".
8629 * remote.c (remote_add_inferior): New argument try_open_exec.
8630 If nonzero, attempt to open the inferior's executable file as
8631 the main executable if no main executable is open already.
8632 All callers updated.
8633 * NEWS: Mention that GDB now supports automatic location and
8634 retrieval of executable + files from remote targets.
8638 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8639 * remote.c (PACKET_qXfer_exec_file): Likewise.
8640 (remote_protocol_features): Register the
8641 "qXfer:exec-file:read" feature.
8642 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8643 (remote_pid_to_exec_file): New function.
8644 (init_remote_ops): Initialize to_pid_to_exec_file.
8645 (_initialize_remote): Register new "set/show remote
8646 pid-to-exec-file-packet" command.
8647 * NEWS: Announce new qXfer:exec-file:read packet.
8651 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8653 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8654 New function, factored out from...
8655 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8659 * exec.c (solist.h): New include.
8660 (exec_file_locate_attach): Prefix absolute executable
8661 paths with gdb_sysroot if set.
8662 * NEWS: Mention that executable paths may be prepended
8667 * solist.h (exec_file_find): New declaration.
8668 * solib.c (solib_find_1): New function, factored out from...
8669 (solib_find): ...here.
8670 (exec_file_find): New function.
8674 * gdbcore.h (exec_file_locate_attach): New declaration.
8675 * exec.c (exec_file_locate_attach): New function, factored
8677 * infcmd.c (attach_command_post_wait): ...here.
8681 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8685 * infrun.c (maybe_software_singlestep): Declare.
8686 (displaced_step_fixup): Call maybe_software_singlestep.
8690 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8694 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8698 * python/lib/gdb/command/unwinders.py: Add parentheses.
8702 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8706 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8710 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8711 dsc->insn_size instead of 4.
8715 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8716 * minidebug.c (lzma_stat): Likewise.
8717 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8718 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8722 * MAINTAINERS: Update my email address.
8726 * amd64-tdep.c (amd64_target_description): New function.
8727 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8728 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8729 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8730 x86 extended save area.
8731 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8732 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8733 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8734 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8735 "amd64fbsd_read_description".
8736 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8737 (amd64fbsd_supply_xstateregset): New function.
8738 (amd64fbsd_collect_xstateregset): New function.
8739 Add "amd64fbsd_xstateregset".
8740 (amd64fbsd_iterate_over_regset_sections): New function.
8741 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8742 "I386_FBSD_XSAVE_XCR0_OFFSET".
8743 Add "iterate_over_regset_sections" gdbarch method.
8744 Add "core_read_description" gdbarch method.
8745 * i386-tdep.c (i386_target_description): New function.
8746 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8747 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8748 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8749 x86 extended save area.
8750 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8751 * i386bsd-nat.h: Export i386bsd_xsave_len.
8752 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8753 (_initialize_i386fbsd_nat): Set "to_read_description" to
8754 "i386fbsd_read_description".
8755 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8756 (i386fbsd_core_read_description): New function.
8757 (i386fbsd_supply_xstateregset): New function.
8758 (i386fbsd_collect_xstateregset): New function.
8759 Add "i386fbsd_xstateregset".
8760 (i386fbsd_iterate_over_regset_sections): New function.
8761 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8762 "I386_FBSD_XSAVE_XCR0_OFFSET".
8763 Add "iterate_over_regset_sections" gdbarch method.
8764 Add "core_read_description" gdbarch method.
8765 * i386fbsd-tdep.h: New file.
8769 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8770 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8772 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8774 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8776 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8778 * defs.h (xdb_commands): Remove declaration.
8779 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8780 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8781 * infcmd.c (run_no_args_command, go_command): Remove.
8782 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8783 * infrun.c (xdb_handle_command): Remove.
8784 (_initialize_infrun): Remove xdb_commands for lz and z.
8785 * main.c (xdb_commands): Remove variable.
8786 (captured_main): Remove "xdb" from long_options.
8787 (print_gdb_help): Remove --xdb from help.
8788 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8789 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8790 * stack.c (backtrace_full_command, args_plus_locals_info)
8791 (current_frame_command): Remove.
8792 (_initialize_stack): Remove xdb_commands for t, T and l.
8793 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8794 * thread.c (_initialize_thread): Remove xdb_commands condition.
8795 * tui/tui-layout.c (tui_toggle_layout_command)
8796 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8797 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8798 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8799 (tui_scroll_regs_backward_command): Remove.
8800 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8801 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8802 (_initialize_tui_win): Remove xdb_commands for U and w.
8803 * utils.c (pagination_on_command, pagination_off_command): Remove.
8804 (initialize_utils): Remove xdb_commands for am and sm.
8808 * infrun.c (displaced_step_fixup): Switch to the event ptid
8809 earlier. If the thread stopped for a watchpoint and the
8810 target/arch has non-continuable watchpoints, cancel the displaced
8812 (resume): Don't start a displaced step if in-line step-over info
8817 * infrun.c (displaced_step_in_progress): New function.
8818 (do_target_resume): Advise target to report all signals if
8824 * infrun.c (process_event_stop_test): Don't assume a step-resume
8825 is set if tp->stepped_breakpoint is true.
8829 * arm-tdep.c (install_alu_reg): Update comment.
8830 (thumb_copy_alu_reg): Remove local variable rn. Update
8831 debugging message. Use r2 instead of r1 in the modified
8837 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8838 linux_displaced_step_location as gdbarch_displaced_step_location
8840 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8841 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8842 * linux-tdep.c (linux_displaced_step_location): New function,
8843 based on ppc_linux_displaced_step_location.
8844 * linux-tdep.h (linux_displaced_step_location): New declaration.
8845 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8846 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8848 (ppc_linux_init_abi): Install linux_displaced_step_location as
8849 gdbarch_displaced_step_location hook, even without Cell/B.E..
8850 (_initialize_ppc_linux_tdep): Don't install
8851 ppc_linux_inferior_created as inferior_created observer.
8852 * s390-linux-tdep.c (s390_gdbarch_init): Install
8853 linux_displaced_step_location as gdbarch_displaced_step_location
8858 * common/common-remote-fileio.h: Rename to...
8859 * common/fileio.h: ...this. Update all references.
8860 (remote_fileio_to_fio_error): Rename to...
8861 (host_to_fileio_error): ...this.
8862 (remote_fileio_to_be): Rename to...
8863 (host_to_bigendian): ...this. Update all callers.
8864 (remote_fileio_to_fio_uint): Rename to...
8865 (host_to_fileio_uint): ...this. Update all callers.
8866 (remote_fileio_to_fio_time): Rename to...
8867 (host_to_fileio_time): ...this. Update all callers.
8868 (remote_fileio_to_fio_stat): Rename to...
8869 (host_to_fileio_stat): ...this.
8870 Update all references.
8871 * common/common-remote-fileio.c: Rename to...
8872 * common/fileio.c: ...this. Update all references.
8873 (remote_fileio_to_fio_error): Rename to...
8874 (host_to_fileio_error): ...this. Update all callers.
8875 (remote_fileio_mode_to_target): Rename to...
8876 (fileio_mode_pack): ...this. Update all callers.
8877 (remote_fileio_to_fio_mode): Rename to...
8878 (host_to_fileio_mode): ...this. Update all callers.
8879 (remote_fileio_to_fio_ulong): Rename to...
8880 (host_to_fileio_ulong): ...this. Update all callers.
8881 (remote_fileio_to_fio_stat): Rename to...
8882 (host_to_fileio_stat): ...this. Update all callers.
8886 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8887 (frame_functions): Bind gdbscm_frame_read_register to
8888 frame-read-register.
8889 * guile/lib/gdb.scm (frame-read-register): Export.
8893 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8895 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8896 New function, factored out the named functions below.
8897 * inf-child.c (gdb/fileio.h): Remove include.
8898 (common-remote-fileio.h): New include.
8899 (inf_child_errno_to_fileio_error): Remove function. Update
8900 all callers to use remote_fileio_to_fio_error.
8901 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8905 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8909 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8910 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8911 * configure: Regenerated.
8915 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8916 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8917 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8918 * gnulib/import/Makefile.am: Update.
8919 * gnulib/import/Makefile.in: Update.
8920 * gnulib/import/m4/gnulib-cache.m4: Update.
8921 * gnulib/import/m4/gnulib-comp.m4: Update.
8922 * gnulib/import/m4/strtok_r.m4: New file.
8923 * gnulib/import/strtok_r.c: New file.
8927 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8928 "called too early to check prototype".
8933 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8934 use a caching mechanism. Adjust comments and code to reflect
8935 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8936 (cmdpy_completer_handle_brkchars): Adjust call to
8937 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8938 (cmdpy_completer): Likewise.
8942 * spu-tdep.c (spu_gdbarch_init): Don't call
8943 set_gdbarch_cannot_step_breakpoint.
8947 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8951 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8952 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8953 (delete_exited_threads): New declaration.
8954 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8955 * linux-nat.c (linux_nat_update_thread_list): New function.
8956 (linux_nat_add_target): Install it.
8957 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8958 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8959 (delete_exited_threads): New function.
8963 * infrun.c (resume) <displaced stepping debug output>: Get the
8964 leader thread's regcache, not resume_ptid's.
8968 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8970 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8971 Include symbol domain in debugging output.
8976 * configure.ac: Remove the mingw32-specific stub-termcap.o
8977 fallback, and instead fallback to the stub termcap on all hosts.
8978 * configure: Regenerate.
8979 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8984 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8985 "top_level" parameter.
8986 (resolve_dynamic_type_internal): Remove the unused "top_level"
8987 parameter. Update call to is_dynamic_type_internal.
8988 (is_dynamic_type): Update call to is_dynamic_type_internal.
8989 (resolve_dynamic_range): Update call to
8990 resolve_dynamic_type_internal.
8991 (resolve_dynamic_union): Likewise.
8992 (resolve_dynamic_struct): Likewise.
8993 (resolve_dynamic_type): Likewise.
8997 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8998 TYPE_CODE_REF types so that they are not considered as dynamic
8999 depending on the referenced type.
9000 (resolve_dynamic_type_internal): Likewise.
9004 * Makefile.in (top_srcdir): New.
9005 * configure: Regenerated.
9009 * NEWS: Announce the new default sysroot of "target:".
9013 * main.c (captured_main): Set gdb_sysroot to "target:"
9014 if not otherwise set.
9018 * exec.c (exec_file_attach): Support "target:" filenames.
9022 * solib.c (solib_find): Strip "target:" prefix from sysroot
9023 if accessing local files.
9027 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9028 checks and error messages.
9032 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9033 (remote_filename_p): Remove declaration.
9034 (remote_bfd_open): Likewise.
9035 * remote.c (remote_bfd_iovec_open): Remove function.
9036 (remote_bfd_iovec_close): Likewise.
9037 (remote_bfd_iovec_pread): Likewise.
9038 (remote_bfd_iovec_stat): Likewise.
9039 (remote_filename_p): Likewise.
9040 (remote_bfd_open): Likewise.
9041 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9042 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9043 (gdb_bfd_open_maybe_remote): Remove function.
9044 (symfile_bfd_open): Replace remote filename check with
9045 target filename check.
9046 (reread_symbols): Use gdb_bfd_open.
9047 * build-id.c (gdbcore.h): New include.
9048 (build_id_to_debug_bfd): Use gdb_bfd_open.
9049 * infcmd.c (attach_command_post_wait): Remove remote filename
9051 * solib.c (solib_find): Replace remote-specific handling with
9052 target-specific handling. Update comments where necessary.
9053 (solib_bfd_open): Replace remote-specific handling with
9054 target-specific handling.
9055 (gdb_sysroot_changed): New function.
9056 (_initialize_solib): Call the above when gdb_sysroot changes.
9057 * windows-tdep.c (gdbcore.h): New include.
9058 (windows_xfer_shared_library): Use gdb_bfd_open.
9062 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9063 (is_target_filename): New declaration.
9064 (gdb_bfd_has_target_filename): Likewise.
9065 (gdb_bfd_open): Update documentation comment.
9066 * gdb_bfd.c (target.h): New include.
9067 (gdb/fileio.h): Likewise.
9068 (is_target_filename): New function.
9069 (gdb_bfd_has_target_filename): Likewise.
9070 (fileio_errno_to_host): Likewise.
9071 (gdb_bfd_iovec_fileio_open): Likewise.
9072 (gdb_bfd_iovec_fileio_pread): Likewise.
9073 (gdb_bfd_iovec_fileio_close): Likewise.
9074 (gdb_bfd_iovec_fileio_fstat): Likewise.
9075 (gdb_bfd_open): Use target fileio to access paths prefixed
9076 with "target:" where necessary.
9080 * target.h (struct target_ops) <to_filesystem_is_local>:
9082 (target_filesystem_is_local): New macro.
9083 * target-delegates.c: Regenerate.
9084 * remote.c (remote_filesystem_is_local): New function.
9085 (init_remote_ops): Initialize to_filesystem_is_local.
9089 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9090 (target_fileio_fstat): New declaration.
9091 * target.c (target_fileio_fstat): New function.
9092 * inf-child.c (inf_child_fileio_fstat): Likewise.
9093 (inf_child_target): Initialize to_fileio_fstat.
9094 * remote.c (init_remote_ops): Likewise.
9098 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9099 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9100 (py-unwind.o): New recipe.
9101 * NEWS: mention Python frame unwinding.
9102 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9103 gdb/unwinder.py and gdb/command/unwinder.py
9104 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9106 (execute_unwinders): New function.
9107 * python/lib/gdb/command/unwinders.py: New file.
9108 * python/lib/gdb/unwinder.py: New file.
9109 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9110 (objfpy_dealloc): Decrement frame_unwinders reference count.
9111 (objfpy_initialize): Create frame_unwinders list.
9112 (objfpy_get_frame_unwinders): New function.
9113 (objfpy_set_frame_unwinders): Ditto.
9114 (objfile_getset): Add frame_unwinders attribute to Objfile.
9115 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9116 (pspy_dealloc): Decrement frame_unwinders reference count.
9117 (pspy_initialize): Create frame_unwinders list.
9118 (pspy_get_frame_unwinders): New function.
9119 (pspy_set_frame_unwinders): Ditto.
9120 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9121 * python/py-unwind.c: New file.
9122 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9123 (objpy_get_frame_unwinders): New prototype.
9124 (gdbpy_initialize_unwind): New prototype.
9125 * python/python.c (gdbpy_apply_type_printers): Call
9126 gdbpy_initialize_unwind.
9130 * infrun.c (resume): Check currently_stepping after clearing
9131 stepped_breakpoint, not before.
9135 * infrun.c (print_target_wait_results): Print all the ptid
9140 * infrun.c (keep_going): Also discard cleanups if inserting
9145 * infrun.c (wait_for_inferior): Install the
9146 finish_thread_state_cleanup cleanup across the whole function, not
9147 just around handle_inferior_event.
9151 * infrun.c (resume) <step past permanent breakpoint>: Use
9156 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9160 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9164 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9165 list if it was marked exited.
9169 * configure: Regenerated.
9176 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9177 New enum identifying the various options of the coredump_filter
9179 (struct smaps_vmflags): New struct.
9180 (use_coredump_filter): New variable.
9181 (decode_vmflags): New function.
9182 (mapping_is_anonymous_p): Likewise.
9183 (dump_mapping_p): Likewise.
9184 (linux_find_memory_regions_full): New variables
9185 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9186 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9187 parsing of its information. Implement memory mapping filtering
9188 based on its contents.
9189 (show_use_coredump_filter): New function.
9190 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9191 * NEWS: Mention the possibility of using the
9192 '/proc/PID/coredump_filter' file when generating a corefile.
9193 Mention new command 'set use-coredump-filter'.
9197 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9198 read_memory_unsigned_integer.
9202 * Makefile.in (ZLIB): New.
9203 (ZLIBINC): Likewise.
9204 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9205 (CLIBS): Add $(ZLIB).
9206 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9208 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9209 * top.c (print_gdb_configuration): Remove --with-zlib and
9211 * config.in: Regenerated.
9212 * configure: Likewise.
9216 * NEWS: Mention info os cpus support.
9217 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9218 (struct osdata_type): Add cpus entry, reorder the entries in
9223 * compile/compile.c (compile_to_object): Allow triplets with or
9229 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9230 klass in VAR_DOMAIN.
9234 * remote.c (remote_mourn_1): Remove function. Update all callers
9235 to use remote_mourn.
9236 (extended_remote_mourn_1): Remove function. Update all callers
9237 to use extended_remote_mourn.
9238 (extended_remote_attach_1): Remove function. Update all callers
9239 to use extended_remote_attach.
9243 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9244 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9245 (ALLDEPFILES): Add ft32-tdep.c.
9246 * configure.tgt: Add FT32 entry.
9247 * ft32-tdep.c: New file, FT32 target-dependent code.
9248 * ft32-tdep.h: New file, FT32 target-dependent code.
9255 * printcmd.c (print_command_1): Move expr variable scope.
9259 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9263 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9268 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9269 exception raised while parsing the probe arguments.
9270 Force parsing to be done using the C language parser.
9271 * expression.h (parse_expression_with_language): Declare.
9272 * parse.c (parse_expression_with_language): New function.
9276 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9281 * dwarf2read.c (struct partial_die_info): Add has_const_value
9283 (add_partial_symbol): Don't punt on symbols that have const_value
9285 (read_partial_die): Detect DW_AT_const_value.
9290 * printcmd.c (print_command_1): Move expr variable scope.
9295 * printcmd.c (validate_format): Make the parameter cmdname const.
9299 * remote.c (_initialize_remote): Update comment.
9304 * coffread.c (coff_symfile_read): When constructing the name of an
9305 import stub symbol from import symbol for amd64, only skip the
9306 char after _imp_ if the target is underscored (like i386) and the
9307 char is indeed the target's leading char.
9311 * target.h <to_async>: Replace 'callback' and 'context' parameters
9312 with boolean 'enable' parameter.
9313 (target_async): Replace CALLBACK and CONTEXT parameters with
9314 boolean ENABLE parameter.
9315 * inf-loop.c (inferior_event_handler): Adjust.
9316 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9317 (linux_nat_resume): Adjust.
9318 (async_client_callback, async_client_context): Delete.
9319 (handle_target_event): Call inferior_event_handler directly.
9320 (linux_nat_async): Replace 'callback' and 'context' parameters
9321 with boolean 'enable' parameter. Adjust. Remove references to
9322 async_client_callback and async_client_context.
9323 (linux_nat_close): Adjust.
9324 * record-btrace.c (record_btrace_async): Replace 'callback' and
9325 'context' parameters with boolean 'enable' parameter. Adjust.
9326 (record_btrace_resume): Adjust.
9327 * record-full.c (record_full_async): Replace 'callback' and
9328 'context' parameters with boolean 'enable' parameter. Adjust.
9329 (record_full_resume, record_full_core_resume): Adjust.
9330 * remote.c (struct remote_state) <async_client_callback,
9331 async_client_context>: Delete fields.
9332 (remote_start_remote, extended_remote_attach_1, remote_resume)
9333 (extended_remote_create_inferior): Adjust.
9334 (remote_async_serial_handler): Call inferior_event_handler
9336 (remote_async): Replace 'callback' and 'context' parameters with
9337 boolean 'enable' parameter. Adjust.
9338 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9340 * target-delegates.c: Regenerate.
9345 * target.c (fileio_ft_t): New typedef, define object vector.
9346 (fileio_fhandles): New static variable.
9347 (is_closed_fileio_fh): New macro.
9348 (lowest_closed_fd): New static variable.
9349 (acquire_fileio_fd): New function.
9350 (release_fileio_fd): Likewise.
9351 (fileio_fd_to_fh): New macro.
9352 (target_fileio_open): Wrap the file descriptor on success.
9353 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9354 (target_fileio_pread): Likewise.
9355 (target_fileio_close): Likewise.
9359 * thread.c (thread_apply_all_command): Take exited threads into
9364 * infrun.c (resume, proceed): Mention
9365 switch_back_to_stepped_thread, not switch_back_to_stepping.
9369 * infrun.c (user_visible_resume_ptid): Rewrite going from
9370 most-locked to unlocked instead of the opposite. Move comment ...
9371 * infrun.h (user_visible_resume_ptid): ... here.
9375 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9376 to resume the event lwp. Use the lwp's ptid instead of the passed
9377 in (maybe wildcard) ptid.
9378 (stop_wait_callback): Tweak debug log output.
9379 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9381 (linux_nat_filter_event): In debug output, distinguish a
9382 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9383 before trying to resume the lwp.
9387 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9388 pointer indirection.
9389 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9390 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9394 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9395 Renames DYN_ATTR_DATA_LOCATION.
9396 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9397 DYN_ATTR_DATA_LOCATION.
9398 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9399 instead of DYN_ATTR_DATA_LOCATION.
9403 * breakpoint.c (until_break_command): Adjust call to proceed.
9404 * gdbthread.h (struct thread_control_state) <stepping_command>:
9406 * infcall.c (run_inferior_call): Adjust call to proceed.
9407 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9408 Adjust calls to proceed.
9409 (set_step_frame): Set the current thread's step_start_function
9411 (step_once): Adjust calls to proceed.
9412 (jump_command, signal_command, until_next_command)
9413 (finish_backward, finish_forward, proceed_after_attach_callback)
9414 (attach_command_post_wait): Adjust calls to proceed.
9415 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9416 (do_target_resume): New function, factored out from ...
9417 (resume): ... here. Remove 'step' parameter. Instead, check
9418 currently_stepping to determine whether the thread should be
9420 (proceed): Remove 'step' parameter and don't set the thread's
9421 step_start_function here. Adjust call to 'resume'.
9422 (handle_inferior_event): Adjust calls to 'resume'.
9423 (switch_back_to_stepped_thread): Use do_target_resume instead of
9425 (keep_going): Adjust calls to 'resume'.
9426 * infrun.h (proceed): Remove 'step' parameter.
9428 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9430 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9434 * gdbthread.h (struct thread_control_state) <stepping_command>:
9436 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9437 the thread's stepping_command field.
9438 * infrun.c (resume): Check the thread's stepping_command flag to
9439 determine which threads should be resumed. Rename 'entry_step'
9441 (clear_proceed_status_thread): Clear 'stepping_command'.
9442 (schedlock_applies): Change parameter type to struct thread_info
9444 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9445 (switch_back_to_stepped_thread): Adjust calls to
9446 'schedlock_applies'.
9447 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9451 * infrun.c (step_start_function): Delete and ...
9452 * gdbthread.h (struct thread_control_state) <step_start_function>:
9453 ... now a field here.
9454 * infrun.c (clear_proceed_status_thread): Clear the thread's
9455 step_start_function.
9456 (proceed, process_event_stop_test, print_stop_event): Adjust.
9460 * infrun.c (proceed): No longer handle negative step.
9464 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9465 (x86_linux_prepare_to_resume): Likewise.
9466 * x86-linux-nat.c (x86_linux_new_thread):
9467 Moved to nat/x86-linux.c.
9468 (x86_linux_prepare_to_resume): Likewise.
9469 * nat/x86-linux.c (x86_linux_new_thread): New function.
9470 (x86_linux_prepare_to_resume): Likewise.
9474 * nat/x86-linux-dregs.h: New file.
9475 * nat/x86-linux-dregs.c: Likewise.
9476 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9477 (x86-linux-dregs.o): New rule.
9478 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9479 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9480 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9481 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9482 (x86_linux_dr_get): Likewise.
9483 (x86_linux_dr_set): Likewise.
9484 (x86_linux_dr_get_addr): Likewise.
9485 (x86_linux_dr_get_control): Likewise.
9486 (x86_linux_dr_get_status): Likewise.
9487 (update_debug_registers_callback): Likewise.
9488 (x86_linux_dr_set_control): Likewise.
9489 (x86_linux_dr_set_addr): Likewise.
9490 (x86_linux_update_debug_registers): Likewise.
9494 * x86-linux-nat.c (x86_linux_update_debug_registers):
9495 New function, factored out from...
9496 (x86_linux_prepare_to_resume): ...this.
9500 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9501 (x86_linux_dr_set): Likewise.
9502 (x86_linux_dr_get_addr): Likewise.
9503 (x86_linux_dr_get_control): Likewise.
9504 (x86_linux_dr_get_status): Likewise.
9505 (update_debug_registers_callback): Likewise.
9506 (x86_linux_dr_set_control): Likewise.
9507 (x86_linux_dr_set_addr): Likewise.
9508 (x86_linux_prepare_to_resume): Likewise.
9509 (x86_linux_new_thread): Likewise.
9513 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9514 (x86_linux_new_thread): Rename argument.
9518 * nat/x86-linux.h: New file.
9519 * nat/x86-linux.c: Likewise.
9520 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9521 (x86-linux.o): New rule.
9522 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9523 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9524 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9525 (lwp_set_arch_private_info): New declaration.
9526 (lwp_arch_private_info): Likewise.
9527 * linux-nat.c (lwp_set_arch_private_info): New function.
9528 (lwp_arch_private_info): Likewise.
9529 * x86-linux-nat.c: Include nat/x86-linux.h.
9530 (arch_lwp_info): Removed structure.
9531 (update_debug_registers_callback):
9532 Use lwp_set_debug_registers_changed.
9533 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9534 and lwp_set_debug_registers_changed.
9535 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9539 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9540 (lwp_is_stopped): Likewise.
9541 (lwp_stop_reason): Likewise.
9542 * linux-nat.c (ptid_of_lwp): New function.
9543 (lwp_is_stopped): Likewise.
9544 (lwp_is_stopped_by_watchpoint): Likewise.
9545 * x86-linux-nat.c (update_debug_registers_callback):
9547 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9552 * linux-nat.h (linux_stop_lwp): Move declaration to...
9553 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9557 * linux-nat.h: Include nat/linux-nat.h.
9558 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9559 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9560 (iterate_over_lwps_ftype): New typedef.
9561 (iterate_over_lwps): New declaration.
9562 * linux-nat.h (iterate_over_lwps): Update comment. Use
9563 iterate_over_lwps_ftype. Update callback return value check.
9567 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9568 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9572 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9573 * linux-nat.c (current_lwp_ptid): New function.
9574 * x86-linux-nat.c: Include nat/linux-nat.h.
9575 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9576 (x86_linux_dr_get_control): Likewise.
9577 (x86_linux_dr_get_status): Likewise.
9578 (x86_linux_dr_set_control): Likewise.
9579 (x86_linux_dr_set_addr): Likewise.
9583 PR breakpoints/16466
9584 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9588 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9589 * ser-unix.c (hardwire_setparity): Likewise.
9593 * NEWS: Mention set/show serial parity command.
9594 * monitor.c (monitor_open): Call serial_setparity.
9595 * remote.c (remote_open_1): Likewise.
9596 * ser-base.c (ser_base_serparity): New function.
9597 * ser-base.h (ser_base_setparity): Add declaration.
9598 * ser-go32.c (dos_ops): Set "setparity" field.
9599 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9601 (ser_windows_setparity): New function.
9602 (hardwire_ops): Add ser_windows_setparity.
9603 (tty_ops): Add NULL for setparity field.
9604 (pipe_ops): Add ser_base_setparity.
9605 (tcp_ops): Likewise.
9606 * ser-pipe.c (pipe_ops): Likewise.
9607 * ser-tcp.c (tcp_ops): Likewise.
9608 * ser-unix.c (hardwire_setparity): Add declaration.
9609 (hardwire_raw): Don't reset PARENB flag.
9610 (hardwire_setparity): New function.
9611 (hardwire_ops): Add hardwire_setparity.
9612 * serial.c (serial_setparity): New function.
9613 (serial_parity): New global.
9614 (parity_none, parity_odd, parity_even, parity_enums, parity):
9616 (set_parity): New function.
9617 (_initialize_serial): Add set/show serial parity commands.
9618 * serial.h (GDBPARITY_NONE): Define.
9619 (GDBPARITY_ODD): Define.
9620 (GDBPARITY_EVEN): Define.
9621 (serial_setparity) Add declaration.
9622 (struct serial_ops): Add setparity field.
9623 * target.h (serial_parity): Add declaration.
9627 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9631 * breakpoint.c (parse_breakpoint_sals): Use
9632 linespec_lexer_lex_keyword to ascertain if the user specified
9634 * linespec.c [IF_KEYWORD_INDEX]: Define.
9635 (linespec_lexer_lex_keyword): Export.
9636 (struct ls_parser) <keyword_ok>: Remove.
9637 A keyword is only a keyword if not followed by another keyword.
9638 (linespec_lexer_lex_one): Remove keyword_ok handling.
9639 Add comment explaining why the parsing stream is not advanced
9640 when a keyword is seen.
9641 (parse_linespec): Remove parser->keyword_ok.
9642 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9647 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9648 if we find a static method with DW_AT_vtable_elem_location.
9652 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9653 before the second loop, to avoid undefined behavior. Reported by
9658 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9659 data_location usage to linked list.
9660 (resolve_dynamic_type_internal): Adapt data_location to
9662 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9663 (copy_type_recursive, copy_type): Add copy of linked list.
9664 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9665 (struct dynamic_prop_list): New struct.
9666 * dwarf2read.c (set_die_type): Set data_location data.
9670 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9671 inner block and make it const.
9672 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9676 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9677 * breakpoint.h (set_breakpoint_condition): Update declaration.
9681 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9685 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9689 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9693 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9694 (nto_init_solib_absolute_prefix): Likewise.
9698 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9699 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9703 * config/djgpp/README: Remove gdb.hp.
9707 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9708 set_gdbarch_cannot_step_breakpoint.
9712 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9713 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9714 instead call perror_with_name.
9715 (check_ptrace_stopped_lwp_gone): New function.
9716 (linux_resume_one_lwp): Reimplement as wrapper around
9717 linux_resume_one_lwp_throw that swallows errors if the LWP is
9719 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9720 swallows errors if the LWP is gone. Use
9721 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9725 * linux-nat.c (status_callback): Return early if the LWP has no
9730 * linux-nat.c (select_event_lwp_callback): Update comment to no
9731 longer mention SIGTRAP.
9735 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9736 redirection code to ...
9737 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9738 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9742 (remote_protocol_features): Remove the "vFile:fstat" feature.
9743 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9748 * aarch64-linux-tdep.c: Include xml-syscall.h
9749 (aarch64_linux_get_syscall_number): New function.
9750 (aarch64_linux_init_abi): Call
9751 set_gdbarch_get_syscall_number.
9752 * syscalls/aarch64-linux.xml: New file.
9756 * ser-base.h (ser_base_setstopbits): Change second argument name
9757 from "rate" to "num".
9763 * common/common-remote-fileio.h (sys/stat.h): New include.
9764 (stuct stat): Remove forward declaration.
9768 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9769 before writing core register notes.
9774 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9775 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9776 (tgoto): Wrap with extern "C".
9781 * stub-termcap.c (tputs): Change prototype.
9786 * windows-nat.c (struct thread_info_struct): Rename to ...
9787 (struct windows_thread_info_struct): ... this.
9788 (thread_info): Rename to ...
9789 (windows_thread_info): ... this.
9795 * NEWS: New Removed targets and native configurations.
9800 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9801 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9802 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9803 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9804 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9805 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9806 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9808 * config/ia64/hpux.mh: Remove file.
9809 * config/pa/hpux.mh: Remove file.
9810 * configure: Rebuilt.
9811 * configure.ac (dlgetmodinfo, somread.o): Remove.
9812 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9813 (ia64-*-hpux*): Remove its float format exception.
9814 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9815 * hppa-hpux-nat.c: Remove file.
9816 * hppa-hpux-tdep.c: Remove file.
9817 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9818 Move them here from hppa-tdep.h
9819 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9820 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9821 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9822 Move them to hppa-tdep.c.
9823 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9825 * ia64-hpux-nat.c: Remove file.
9826 * ia64-hpux-tdep.c: Remove file.
9827 * ia64-hpux-tdep.h: Remove file.
9828 * inf-ttrace.c: Remove file.
9829 * inf-ttrace.h: Remove file.
9830 * solib-ia64-hpux.c: Remove file.
9831 * solib-ia64-hpux.h: Remove file.
9832 * solib-pa64.c: Remove file.
9833 * solib-pa64.h: Remove file.
9834 * solib-som.c: Remove file.
9835 * solib-som.h: Remove file.
9836 * somread.c: Remove file.
9840 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9841 * config.in: Regenerate.
9842 * configure: Regenerate.
9843 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9845 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9846 enumerate memory regions if present.
9850 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9851 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9853 (i386fbsd_sigtramp_p): Likewise.
9857 * MAINTAINERS (Write After Approval): Add John Baldwin.
9861 * solib.c (_initialize_solib): Make "set/show sysroot" use
9862 add_setshow_optional_filename_cmd so it can be restored to
9863 empty after being set.
9867 * Makefile.in (SFILES): New source break-catch-syscall.c.
9868 (COMMON_OBS): New object break-catch-syscall.o.
9869 * break-catch-syscall.c: New file.
9870 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9871 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9872 (struct syscall_catchpoint): Likewise.
9873 (dtor_catch_syscall): Likewise.
9874 (catch_syscall_inferior_data): Likewise.
9875 (struct catch_syscall_inferior_data): Likewise.
9876 (get_catch_syscall_inferior_data): Likewise.
9877 (catch_syscall_inferior_data_cleanup): Likewise.
9878 (insert_catch_syscall): Likewise.
9879 (remove_catch_syscall): Likewise.
9880 (breakpoint_hit_catch_syscall): Likewise.
9881 (print_it_catch_syscall): Likewise.
9882 (print_one_catch_syscall): Likewise.
9883 (print_mention_catch_syscall): Likewise.
9884 (print_recreate_catch_syscall): Likewise.
9885 (catch_syscall_breakpoint_ops): Likewise.
9886 (syscall_catchpoint_p): Likewise.
9887 (create_syscall_event_catchpoint): Likewise.
9888 (catch_syscall_split_args): Likewise.
9889 (catch_syscall_command_1): Likewise.
9890 (is_syscall_catchpoint_enabled): Likewise.
9891 (catch_syscall_enabled): Likewise.
9892 (catching_syscall_number): Likewise.
9893 (catch_syscall_completer): Likewise.
9894 (clear_syscall_counts): Likewise.
9895 (initialize_breakpoint_ops): Move initialization of syscall
9896 catchpoints to break-catch-syscall.c.
9897 (_initialize_breakpoint): Move code related to syscall catchpoints
9898 to break-catch-syscall.c.
9902 * breakpoint.c (breakpoint_find_if): New function.
9903 * breakpoint.h (breakpoint_find_if): New prototype.
9907 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9908 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9909 (remote_fileio_to_host_ulong): Likewise.
9910 (remote_fileio_to_host_mode): Likewise.
9911 (remote_fileio_to_host_time): Likewise.
9912 (remote_fileio_to_host_stat): Likewise.
9913 * remote.c (PACKET_vFile_fstat): New enum value.
9914 (remote_protocol_features): Register the "vFile:fstat" feature.
9915 (remote_hostio_fstat): New function.
9916 (remote_bfd_iovec_stat): Use the above.
9917 (_initialize_remote): Register new "set/show remote
9918 hostio-fstat-packet" command.
9919 * symfile.c (separate_debug_file_exists): Update comment.
9920 * NEWS: Announce new vFile:fstat packet.
9924 * common/common-remote-fileio.h: New file.
9925 * common/common-remote-fileio.c: Likewise.
9926 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9927 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9928 (COMMON_OBS): Add common-remote-fileio.o.
9929 (common-remote-fileio.o): New rule.
9930 * remote-fileio.h (common-remote-fileio.h): New include.
9931 * remote-fileio.c (gdb/fileio.h): Do not include.
9932 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9933 (remote_fileio_to_fio_uint): Likewise.
9934 (remote_fileio_to_fio_time): Likewise.
9935 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9936 (remote_fileio_to_fio_mode): Likewise.
9937 (remote_fileio_to_fio_ulong): Likewise.
9938 (remote_fileio_to_fio_stat): Likewise.
9942 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9943 we were checking the cached type, not the cached dynamic type.
9947 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9948 other strings, as these are on the GC'd heap, and will be
9949 collected along with the smob.
9953 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9954 (objfile_functions): Bind gdbscm_objfile_progspace to
9956 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9960 * guile/guile.c (_initialize_guile): Disable automatic
9961 finalization, if Guile offers us that possibility.
9962 * guile/guile.c (call_initialize_gdb_module):
9963 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9964 finalizers in appropriate places.
9965 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9966 scm_set_automatic_finalization_enabled.
9967 * configure: Regenerated.
9971 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9976 * s390-linux-nat.c (struct arch_lwp_info): New.
9977 (s390_fix_watch_points): Rename to...
9978 (s390_prepare_to_resume): ...this. Skip the PER info update
9979 unless the watch points have changed.
9980 (s390_refresh_per_info, s390_new_thread): New functions.
9981 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9982 s390_fix_watch_points.
9983 (s390_remove_watchpoint): Likewise.
9984 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9985 Register s390_prepare_to_resume.
9991 * common/gdb_socket.h: New file.
9992 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9994 (net_open): Use union gdb_sockaddr_u.
9998 * configure.ac (build_warnings): Move -Wmissing-prototypes
9999 -Wdeclaration-after-statement -Wmissing-parameter-type
10000 -Wold-style-declaration -Wold-style-definition to the C-specific
10002 * configure: Regenerate.
10006 * common/gdb_socket.h: New file.
10007 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10009 (net_open): Use union gdb_sockaddr_u.
10013 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10014 (exceptions_state_mc_action_iter)
10015 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10017 [__cplusplus] (try_scope_depth): New global.
10018 [__cplusplus] (exception_try_scope_entry)
10019 (exception_try_scope_exit, gdb_exception_sliced_copy)
10020 (exception_rethrow): New functions.
10021 (throw_exception): In C++ mode, throw
10022 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10023 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10024 (throw_it): In C++ mode, use try_scope_depth.
10025 * common/common-exceptions.h [!__cplusplus]
10026 (exceptions_state_mc_action_iter)
10027 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10029 [__cplusplus] (exception_try_scope_entry)
10030 (exception_try_scope_exit, exception_rethrow): Declare.
10031 [__cplusplus] (struct exception_try_scope): New struct.
10032 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10034 (struct gdb_exception_RETURN_MASK_ALL)
10035 (struct gdb_exception_RETURN_MASK_ERROR)
10036 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10040 * main.c (handle_command_errors): Remove volatile qualifier from
10045 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10047 * gdbtypes.c (safe_parse_type): Remove empty line.
10048 (types_deeply_equal):
10049 * guile/scm-frame.c (gdbscm_frame_name):
10050 * linux-thread-db.c (find_new_threads_once):
10051 * python/py-breakpoint.c (bppy_get_commands):
10052 * record-btrace.c (record_btrace_insert_breakpoint)
10053 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10054 (record_btrace_start_replaying): Adjust to avoid code between TRY
10059 * common/common-exceptions.c (struct catcher) <exception>: No
10060 longer a pointer to volatile exception. Now an exception value.
10061 <mask>: Delete field.
10062 (exceptions_state_mc_init): Remove all parameters. Adjust.
10063 (exceptions_state_mc): No longer pop the catcher here.
10064 (exceptions_state_mc_catch): New function.
10065 (throw_exception): Adjust.
10066 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10068 (exceptions_state_mc_catch): Declare.
10069 (TRY_CATCH): Rename to ...
10070 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10071 (CATCH, END_CATCH): New.
10072 All callers adjusted.
10076 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10080 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10081 (amd64_epilogue_frame_cache): Normal exception handling code.
10082 * break-catch-throw.c (check_status_exception_catchpoint)
10083 (re_set_exception_catchpoint): Ditto.
10084 * cli/cli-interp.c (safe_execute_command):
10085 * cli/cli-script.c (script_from_file): Ditto.
10086 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10088 * compile/compile-object-run.c (compile_object_run): Ditto.
10089 * cp-abi.c (baseclass_offset): Ditto.
10090 * cp-valprint.c (cp_print_value): Ditto.
10091 * exceptions.c (catch_exceptions_with_msg):
10092 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10093 * frame.c (get_frame_address_in_block_if_available): Ditto.
10094 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10095 (i386_sigtramp_frame_cache): Ditto.
10096 * infcmd.c (post_create_inferior): Ditto.
10097 * linespec.c (parse_linespec, find_linespec_symbols):
10098 * p-valprint.c (pascal_object_print_value): Ditto.
10099 * parse.c (parse_expression_for_completion): Ditto.
10100 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10101 * remote.c (remote_get_noisy_reply): Ditto.
10102 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10103 * solib-svr4.c (solib_svr4_r_map): Ditto.
10107 * common/common-utils.h (startswith): New inline function.
10108 All places where this logic was used updated to use the above.
10113 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10114 after reading the breakpoint's shadow memory.
10118 * hppabsd-nat.c: Remove file.
10119 * hppaobsd-nat.c: New file.
10120 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10122 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10127 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10128 (target_decr_pc_after_break): Delete declaration.
10129 * target.c (default_target_decr_pc_after_break)
10130 (target_decr_pc_after_break): Delete.
10131 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10132 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10133 * linux-thread-db.c (check_event): Likewise.
10134 * infrun.c (adjust_pc_after_break): Likewise.
10135 * darwin-nat.c (cancel_breakpoint): Likewise.
10136 * aix-thread.c (aix_thread_wait): Likewise.
10137 * target-delegates.c: Regenerate.
10141 * linux-nat.c (save_sigtrap): Check for breakpoints before
10142 checking watchpoints.
10143 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10144 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10145 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10146 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10147 (linux_nat_stopped_by_sw_breakpoint)
10148 (linux_nat_supports_stopped_by_sw_breakpoint)
10149 (linux_nat_stopped_by_hw_breakpoint)
10150 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10151 (linux_nat_wait_1): Don't re-increment the PC if relying on
10152 SIGTRAP's siginfo->si_code.
10153 (linux_nat_add_target): Install new target methods.
10154 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10155 offset if the target already adjusted the PC.
10156 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10157 (GDB_ARCH_TRAP_BRKPT): New.
10158 (TRAP_HWBKPT): Define if not already defined.
10162 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10163 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10165 <stop_reason>: New field.
10166 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10167 (packet_set_cmd_state): New function.
10168 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10170 (remote_query_supported): If not disabled with the corresponding
10171 "set remote foo-packet" command, report support for the swbreak
10172 and hwbreak features.
10173 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10175 <stop_reason>: New field.
10176 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10177 (remote_wait_as): Adjust.
10178 (remote_stopped_by_sw_breakpoint)
10179 (remote_supports_stopped_by_sw_breakpoint)
10180 (remote_stopped_by_hw_breakpoint)
10181 (remote_supports_stopped_by_hw_breakpoint): New functions.
10182 (remote_stopped_by_watchpoint): New function.
10183 (init_remote_ops): Install them.
10184 (_initialize_remote): Register new "set/show remote
10185 swbreak-feature-packet" and "set/show remote
10186 swbreak-feature-packet" commands.
10190 * btrace.h: Include target/waitstatus.h.
10191 (struct btrace_thread_info) <stop_reason>: New field.
10192 * record-btrace.c (record_btrace_step_thread): Use
10193 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10194 (record_btrace_decr_pc_after_break): Delete.
10195 (record_btrace_stopped_by_sw_breakpoint)
10196 (record_btrace_supports_stopped_by_sw_breakpoint)
10197 (record_btrace_stopped_by_hw_breakpoint)
10198 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10199 (init_record_btrace_ops): Install them.
10200 * record-full.c (record_full_hw_watchpoint): Delete and replace
10202 (record_full_stop_reason): ... this throughout.
10203 (record_full_exec_insn): Adjust.
10204 (record_full_wait_1): Adjust. No longer re-increment the PC.
10205 (record_full_wait_1): Adjust. Use
10206 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10207 (record_full_stopped_by_watchpoint): Adjust.
10208 (record_full_stopped_by_sw_breakpoint)
10209 (record_full_supports_stopped_by_sw_breakpoint)
10210 (record_full_supports_stopped_by_sw_breakpoint)
10211 (record_full_stopped_by_hw_breakpoint)
10212 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10213 (init_record_full_ops, init_record_full_core_ops): Install them.
10214 * record.c (record_check_stopped_by_breakpoint): New function.
10215 * record.h: Include target/waitstatus.h.
10216 (record_check_stopped_by_breakpoint): New declaration.
10220 enum lwp_stop_reason -> enum target_stop_reason
10221 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10222 (linux_nat_stopped_by_watchpoint, status_callback)
10223 (linux_nat_wait_1): Adjust.
10224 * linux-nat.h (enum lwp_stop_reason): Delete.
10225 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10226 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10227 * target/waitstatus.h (enum target_stop_reason): New.
10231 * breakpoint.c (need_moribund_for_location_type): New function.
10232 (bpstat_stop_status): Don't skipping checking moribund locations
10233 of breakpoint types which the target tell caused a stop.
10234 (program_breakpoint_here_p): New function, factored out from ...
10235 (bp_loc_is_permanent): ... this.
10236 (update_global_location_list): Don't create a moribund location if
10237 the target supports reporting stops of the type of the removed
10239 * breakpoint.h (program_breakpoint_here_p): New declaration.
10240 * infrun.c (adjust_pc_after_break): Return early if the target has
10241 already adjusted the PC. Add comments.
10242 (handle_signal_stop): If nothing explains a signal, and the target
10243 tells us the stop was caused by a software breakpoint, check if
10244 there's a breakpoint instruction in the memory. If so, adjust the
10245 PC before presenting the stop to the user. Otherwise, ignore the
10246 trap. If nothing explains a signal, and the target tells us the
10247 stop was caused by a hardware breakpoint, ignore the trap.
10248 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10249 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10250 to_supports_stopped_by_hw_breakpoint>: New fields.
10251 (target_stopped_by_sw_breakpoint)
10252 (target_supports_stopped_by_sw_breakpoint)
10253 (target_stopped_by_hw_breakpoint)
10254 (target_supports_stopped_by_hw_breakpoint): Define.
10255 * target-delegates.c: Regenerate.
10259 * infrun.c (follow_fork_inferior): Use the whole of the
10260 inferior_ptid and pending_follow.related_pid ptids instead of
10261 building ptids from the process components. Adjust verbose output
10262 to use target_pid_to_str.
10263 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10264 inferior_ptid and pending_follow.related_pid ptids instead of
10265 building ptids from the process components.
10269 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10270 (inf_ptrace_insert_fork_catchpoint): New function.
10271 (inf_ptrace_remove_fork_catchpoint): New function.
10272 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10276 * s390-linux-tdep.c (s390_register_name): Return empty string
10277 instead of NULL for registers that shouldn't be visible.
10281 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10282 XML file for 64-bit targets.
10286 * target.h (find_default_create_inferior): Remove declaration.
10287 (find_default_attach): Likewise.
10291 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10292 Use ptid_get_pid to get the overall process id when resuming all
10297 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10298 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10299 * inf-ptrace.c (get_ptrace_pid): New function.
10300 (inf_ptrace_resume): Use it.
10301 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10302 to the lower layer.
10306 * nat/linux-btrace.c: Include sys/utsname.h.
10307 (linux_determine_kernel_ptr_bits): New.
10308 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10309 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10314 * btrace.c (ftrace_update_function): Treat return as tailcall for
10315 "_dl_runtime_resolve".
10319 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10320 * btrace.c (ftrace_debug): Do not print the line range.
10321 (ftrace_skip_file, ftrace_update_lines): Remove.
10322 (ftrace_new_function): Remove lbegin and lend initialization.
10323 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10324 * record-btrace.c (btrace_compute_src_line_range): New.
10325 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10329 * infrun.c (follow_exec): Delete all threads of the process except
10330 the event thread. Extended comments.
10334 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10338 * utils.h: Remove <stdbool.h> #include.
10339 (producer_is_gcc): Change return type to "int".
10340 * utils.c (producer_is_gcc): Change return type to int.
10341 Return 1 instead of true, and 0 instead of false.
10342 Adjust function documentation accordingly.
10346 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10347 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10349 (s390_linux_store_inferior_registers): Likewise.
10350 (s390_get_hwcap): Remove function. Embed its logic...
10351 (s390_read_description): ...here. Yield a target description with
10352 vector registers if applicable.
10353 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10354 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10355 "features/s390x-tevx-linux64.c".
10356 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10357 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10358 for "GNU/Linux-specific registers".
10359 (s390_dwarf_reg_r0l): New enum value.
10360 (s390_dwarf_reg_to_regnum): Support vector registers.
10361 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10362 of GPR lower halves.
10363 (regnum_is_vxr_full): New function.
10364 (s390_register_name): New function.
10365 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10366 f0-f15 and v0l-v15l.
10367 (s390_pseudo_register_type): Likewise.
10368 (s390_pseudo_register_read): Likewise.
10369 (s390_pseudo_register_write): Likewise.
10370 (s390_value_from_register): Account for the fact that values are
10371 placed left-justified in vector registers.
10372 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10373 the vector reggroup and omit them from the general reggroup.
10374 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10375 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10376 (s390_iterate_over_regset_sections): Add iterations for the two
10377 new vector regsets.
10378 (s390_core_read_description): Yield a target description with
10379 vector registers if applicable.
10380 (s390_gdbarch_init): Handle target descriptions with vector
10381 registers. Add "register_name" gdbarch method.
10382 (_initialize_s390_tdep): Call new tdesc initialization functions.
10383 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10384 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10385 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10386 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10387 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10388 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10389 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10390 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10391 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10392 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10393 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10394 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10395 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10396 (S390_NUM_REGS): Adjust value.
10397 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10398 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10399 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10400 * NEWS: Announce S/390 vector register support.
10404 * features/s390-tevx-linux64.xml: New file.
10405 * features/s390-vx-linux64.xml: New file.
10406 * features/s390-vx.xml: New file.
10407 * features/s390x-tevx-linux64.xml: New file.
10408 * features/s390x-vx-linux64.xml: New file.
10409 * features/Makefile (WHICH): Add s390-vx-linux64,
10410 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10411 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10412 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10414 * features/s390-tevx-linux64.c: New generated file.
10415 * features/s390-vx-linux64.c: Likewise.
10416 * features/s390x-tevx-linux64.c: Likewise.
10417 * features/s390x-vx-linux64.c: Likewise.
10418 * regformats/s390-tevx-linux64.dat: Likewise.
10419 * regformats/s390-vx-linux64.dat: Likewise.
10420 * regformats/s390x-tevx-linux64.dat: Likewise.
10421 * regformats/s390x-vx-linux64.dat: Likewise.
10425 * symtab.h (struct symtab) <next>: Fix comment.
10429 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10434 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10438 * common/common-exceptions.h (exception_none): Declare.
10439 * common/common-exceptions.c (exception_none): Moved from
10441 (exceptions_state_mc_init): Use exception_none.
10442 * exceptions.c (exception_none): Move to
10443 common/common-exceptions.c.
10444 * exceptions.h (exception_none): Move to
10445 common/common-exceptions.h.
10449 * main.c (catch_command_errors, catch_command_errors_const):
10450 Remove 'mask' argument. Adjust.
10451 (captured_main): Adjust callers.
10455 * python/python-internal.h: Include "extension-priv.h".
10459 * breakpoint.h (enum print_stop_action): Move further up in the
10464 * gdbarch.sh: Include regcache.h.
10465 * gdbarch.h: Regenerate.
10469 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10470 Remove duplicate const.
10471 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10476 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10477 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10478 * features/feature_to_c.sh: Tag the generated xml_builtin array
10479 with extern const in C++ mode.
10483 * minidebug.c (struct lzma_stream): Rename to ...
10484 (struct gdb_lzma_stream): ... this.
10485 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10489 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10491 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10492 (mi_cmd_stack_list_variables): Use it.
10496 * x86-linux-nat.c (u_debugreg_offset): New function.
10497 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10501 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10503 Include break-common.h.
10508 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10509 local used to iterate over enums.
10510 * completer.c (signal_completer): Likewise.
10511 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10512 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10513 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10514 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10515 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10516 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10517 * tui-wingeneral.c (tui_refresh_all): Likewise.
10521 * target.h: Include "infrun.h".
10525 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10529 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10531 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10535 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10536 cli_mld_erase_entire_line, and make it extern "C".
10537 * common/common-defs.h (EXTERN_C): New.
10538 * completer.c (_rl_completion_prefix_display_length)
10539 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10540 out of gdb_display_match_list_1.
10541 (_rl_qsort_string_compare): Move declaration out of
10542 gdb_display_match_list_1, and make it extern "C".
10543 * defs.h (re_comp): Use EXTERN_C.
10544 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10545 and make it extern "C".
10546 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10547 and make it extern "C".
10548 (main): Move declaration out of maintenance_set_profile_cmd.
10549 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10554 * python/python.c (GdbMethods): Rename to ...
10555 (python_GdbMethods): ... this and make extern.
10556 (GdbModuleDef): Rename to ...
10557 (python_GdbModuleDef): ... this and make extern.
10561 * record-btrace.c (set_record_btrace_cmdlist)
10562 (show_record_btrace_cmdlist): Remove redefinitions.
10567 * dwarf2-frame.c (enum cfa_how_kind, struct
10568 dwarf2_frame_state_reg_info): Move out of struct
10569 dwarf2_frame_state.
10570 * dwarf2read.c (struct tu_stats): Move out of struct
10571 dwarf2_per_objfile.
10572 (struct file_entry): Move out of struct line_header.
10573 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10574 typedef_field_list): Move out of struct field_info.
10575 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10576 Move out of struct dynamic_prop.
10577 (union type_owner, union field_location, struct field, struct
10578 range_bounds, union type_specific): Move out of struct main_type.
10579 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10580 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10581 (struct call_site_target, union call_site_parameter_u, struct
10582 call_site_parameter): Move out of struct call_site.
10583 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10585 (enum srcdest_kind): Move out of struct srcdest.
10586 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10587 * prologue-value.h (enum prologue_value_kind): Move out of struct
10589 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10591 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10592 out of struct field_info.
10593 * symfile.h (struct other_sections): Move out of struct
10595 * symtab.c (struct symbol_cache_slot): Move out struct
10596 block_symbol_cache.
10597 * target-descriptions.c (enum tdesc_type_kind): Move out of
10598 typedef struct tdesc_type.
10599 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10600 struct tui_line_or_address.
10601 * value.c (enum internalvar_kind, union internalvar_data): Move
10602 out of struct internalvar.
10603 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10609 Rename symbols whose names are reserved C++ keywords throughout.
10613 * Makefile.in (COMPILER): New, get it from autoconf.
10614 (COMPILE.pre, CC_LD): Use COMPILER.
10615 (CXX): Get from autoconf instead.
10616 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10617 * acinclude.m4: Include build-with-cxx.m4.
10618 * build-with-cxx.m4: New file.
10619 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10620 Disable -Werror by default if building in C++ mode.
10621 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10622 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10623 Run supported-warning-flags tests with the C++ compiler.
10624 Save/restore CXXFLAGS too.
10625 * configure: Regenerate.
10629 * libiberty.m4: New file.
10630 * acinclude.m4: Include libiberty.m4.
10631 * configure.ac: Call libiberty_INIT.
10632 * config.in, configure: Regenerate.
10636 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10637 31-bit targets, but 64-bit targets as well.
10638 (s390_gnu_triplet_regexp): New function.
10639 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10640 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10645 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10646 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10647 from CONTEXT_DEBUGGER.
10651 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10653 (set_type_vptr_fieldno): Ditto.
10654 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10655 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10659 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10660 * complaints.c (vcomplaint): Pass argument FMT directly to
10661 printf-like functions instead of complaint->fmt.
10662 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10663 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10664 * compile/compile-loc2c.c (pushf, unary, binary): Add
10666 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10668 (BINARY): Pass string literal as format string to 'binary'.
10669 * compile/compile-object-load.c (link_callbacks_einfo): Add
10671 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10675 * windows-termcap.c: Rename to ...
10676 * stub-termcap.c: ... this. Adjust header line.
10677 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10679 * configure: Regenerate.
10680 * configure.ac: Refer to stub-termcap.o instead of
10682 * gdb_curses.h: Mention stub-termcap.c instead of
10687 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10688 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10692 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10696 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10697 bfd_canonicalize_symtab.
10701 * amd64fbsd-nat.c: Include sys/user.h.
10702 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10703 instead of KERN_PS_STRINGS to locate the signal trampoline.
10704 * i386fbsd-nat.c: Include sys/user.h.
10705 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10706 instead of KERN_PS_STRINGS to locate the signal trampoline.
10707 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10708 (amd64fbsd_sigtramp_p): New.
10709 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10710 longer set default values.
10711 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10712 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10713 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10714 (i386fbsd_freebsd4_sigtramp_start)
10715 (i386fbsd_freebsd4_sigtramp_middle)
10716 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10717 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10718 (i386fbsd_sigtramp_p): New.
10719 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10720 longer set default values.
10721 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10725 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10726 get_frame_register instead of frame_unwind_register_unsigned.
10731 * compile/compile-c-support.c (c_compute_program): Change // comment.
10732 * compile/compile-object-load.c (setup_sections): Change // comment.
10737 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10741 * remote.c (skip_to_semicolon): New function.
10742 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10743 special case the stop reasons that look like hex numbers
10744 upfront. Instead handle real register numbers after matching
10745 all the known stop reasons.
10749 PR c++/17976, symtab/17821
10750 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10751 is_in_anonymous. All callers updated.
10752 (find_symbol_in_baseclass): Ditto.
10753 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10754 for symbols in an anonymous namespace.
10755 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10756 DW_AT_name directly.
10757 (dwarf2_name): Convert missing namespace name to
10758 CP_ANONYMOUS_NAMESPACE_STR.
10762 * linux-nat.c (linux_handle_extended_wait): Call
10763 thread_db_notice_clone whenever a new clone LWP is detected.
10764 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10766 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10767 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10768 (linux_unstop_all_lwps): Declare.
10769 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10770 (thread_get_info_callback): Delete.
10771 (thread_from_lwp): Use td_thr_get_info and record_thread.
10772 (thread_db_attach_lwp): Delete.
10773 (thread_db_notice_clone): New function.
10774 (try_thread_db_load_1): If /proc is mounted and shows the
10775 process'es task list, walk over all LWPs and call thread_from_lwp
10776 instead of relying on td_ta_thr_iter.
10777 (attach_thread): Don't call check_thread_signals here. Split the
10778 tail part of the function (which adds the thread to the core GDB
10779 thread list) to ...
10780 (record_thread): ... this function. Call check_thread_signals
10782 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10783 call thread_from_lwp.
10784 (thread_db_update_thread_list): Rename to ...
10785 (thread_db_update_thread_list_org): ... this.
10786 (thread_db_update_thread_list): New function.
10787 (thread_db_find_thread_from_tid): Delete.
10788 (thread_db_get_ada_task_ptid): Simplify.
10789 * nat/linux-procfs.c: Include <sys/stat.h>.
10790 (linux_proc_task_list_dir_exists): New function.
10791 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10795 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10796 main LWP. Handle the case of waitpid returning 0 if we're already
10797 attached to the LWP. Don't set the LWP's last_resume_kind to
10798 resume_stop if we already knew about the LWP.
10799 (linux_nat_filter_event): Add debug logs.
10803 * target.h (forward_target_decr_pc_after_break): Delete
10809 * linux-thread-db.c (thread_get_info_callback): Return early if
10810 the thread's lwp id is -1.
10818 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10819 (dtrace_get_probes) Change type of variable 'dof'.
10823 PR breakpoints/16812
10824 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10825 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10826 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10830 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10834 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10836 (tui_putc): Don't call tui_handle_resize_during_io.
10837 (tui_getc): Likewise.
10838 (tui_mld_getc): Likewise.
10839 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10840 (tui_sigwinch_token): New static variable.
10841 (tui_initialize_win): Adjust documentation. Set
10842 tui_sigwinch_token.
10843 (tui_async_resize_screen): New asynchronous callback.
10844 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10845 invoke tui_async_resize_screen.
10849 * configure: Regenerated.
10850 * configure.ac: Use GDB_AC_TRANSFORM.
10851 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10852 * acinclude.m4: sinclude transform.m4.
10853 * transform.m4: New file.
10854 (GDB_AC_TRANSFORM): New macro.
10858 * NEWS: Announce the support for DTrace SDT probes.
10862 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10863 (amd64_dtrace_parse_probe_argument): New function.
10864 (amd64_dtrace_probe_is_enabled): Likewise.
10865 (amd64_dtrace_enable_probe): Likewise.
10866 (amd64_dtrace_disable_probe): Likewise.
10867 (amd64_linux_init_abi): Register the
10868 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10869 `gdbarch_dtrace_disable_probe' and
10870 `gdbarch_dtrace_probe_is_enabled' hooks.
10871 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10872 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10873 (amd64_dtrace_enable_probe_sequence): Likewise.
10874 (amd64_dtrace_disable_probe_sequence): Likewise.
10878 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10879 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10880 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10882 * Makefile.in (SFILES): dtrace-probe.c added.
10883 * configure: Regenerate.
10884 * dtrace-probe.c: New file.
10885 (SHT_SUNW_dof): New constant.
10886 (dtrace_probe_type): New enum.
10887 (dtrace_probe_arg): New struct.
10888 (dtrace_probe_arg_s): New typedef.
10889 (struct dtrace_probe_enabler): New struct.
10890 (dtrace_probe_enabler_s): New typedef.
10891 (dtrace_probe): New struct.
10892 (dtrace_probe_is_linespec): New function.
10893 (dtrace_dof_sect_type): New enum.
10894 (dtrace_dof_dofh_ident): Likewise.
10895 (dtrace_dof_encoding): Likewise.
10896 (DTRACE_DOF_ENCODE_LSB): Likewise.
10897 (DTRACE_DOF_ENCODE_MSB): Likewise.
10898 (dtrace_dof_hdr): New struct.
10899 (dtrace_dof_sect): Likewise.
10900 (dtrace_dof_provider): Likewise.
10901 (dtrace_dof_probe): Likewise.
10902 (DOF_UINT): New macro.
10903 (DTRACE_DOF_PTR): Likewise.
10904 (DTRACE_DOF_SECT): Likewise.
10905 (dtrace_process_dof_probe): New function.
10906 (dtrace_process_dof): Likewise.
10907 (dtrace_build_arg_exprs): Likewise.
10908 (dtrace_get_arg): Likewise.
10909 (dtrace_get_probes): Likewise.
10910 (dtrace_get_probe_argument_count): Likewise.
10911 (dtrace_can_evaluate_probe_arguments): Likewise.
10912 (dtrace_evaluate_probe_argument): Likewise.
10913 (dtrace_compile_to_ax): Likewise.
10914 (dtrace_probe_destroy): Likewise.
10915 (dtrace_gen_info_probes_table_header): Likewise.
10916 (dtrace_gen_info_probes_table_values): Likewise.
10917 (dtrace_probe_is_enabled): Likewise.
10918 (dtrace_probe_ops): New variable.
10919 (info_probes_dtrace_command): New function.
10920 (_initialize_dtrace_probe): Likewise.
10921 (dtrace_type_name): Likewise.
10925 * gdbarch.sh (dtrace_parse_probe_argument): New.
10926 (dtrace_probe_is_enabled): Likewise.
10927 (dtrace_enable_probe): Likewise.
10928 (dtrace_disable_probe): Likewise.
10929 * gdbarch.c: Regenerate.
10930 * gdbarch.h: Regenerate.
10934 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10935 stap_probe_ops for `enable_probe' and `disable_probe'.
10936 * probe.c (enable_probes_command): New function.
10937 (disable_probes_command): Likewise.
10938 (_initialize_probe): Define the cli commands `enable probe' and
10940 (parse_probe_linespec): New function.
10941 (info_probes_for_ops): Use parse_probe_linespec.
10942 * probe.h (probe_ops): New hooks `enable_probe' and
10947 * probe.c (compute_probe_arg): Moved from stap-probe.c
10948 (compile_probe_arg): Likewise.
10949 (probe_funcs): Likewise.
10950 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10951 (compile_probe_arg): Likewise.
10952 (probe_funcs): Likewise.
10956 * probe.c (print_ui_out_not_applicables): New function.
10957 (exists_probe_with_pops): Likewise.
10958 (info_probes_for_ops): Do not include column headers for probe
10959 types for which no probe has been actually found on any object.
10960 Also invoke `print_ui_out_not_applicables' in order to match the
10961 column rows with the header when probes of several types are
10963 Print the "Type" column.
10964 * probe.h (probe_ops): Added a new probe operation `type_name'.
10965 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10966 (stap_type_name): New function.
10970 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10971 (key_is_command_char): Delete.
10975 * tui/tui.c (tui_enable): Resize windows before anything
10976 might show a window.
10981 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10982 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10984 * aarch64-tdep.h (tdesc_aarch64): Declare.
10988 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10992 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10993 anonymous_namespace to is_in_anonymous for consistency with the rest
10995 (cp_lookup_bare_symbol): Fix typo in comment.
10996 (cp_search_static_and_baseclasses): Ditto.
10997 (search_symbol_list): Use vertical space in comment better.
10998 (reset_directive_searched): Ditto. Fix typo.
10999 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11003 * MAINTAINERS: Update my email address.
11007 * symtab.c (completion_list_add_name): Fix memory leak.
11011 * completer.c (complete_line): Remove incorrect comment.
11015 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11016 (py_print_frame): Use RETURN_MASK_ERROR.
11020 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11021 function comment. Wrap all function that can throw in cleanups.
11022 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11027 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11028 Remove the error label.
11032 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11033 with goto first, indent the former else codepath left. Put variable
11034 'elided' to a new inner block.
11038 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11042 * xcoffread.c (within_function): Delete.
11047 * breakpoint.c (base_breakpoint_ops): Delete.
11048 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11049 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11050 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11051 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11052 * python/py-arch.c (arch_object_type): Make extern.
11053 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11054 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11055 * python/py-cmd.c (cmdpy_object_type): Make extern.
11056 * python/py-continueevent.c (continue_event_object_type)
11057 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11058 parameter. Update all callers.
11059 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11060 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11061 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11062 * python/py-function.c (fnpy_object_type): Make extern.
11063 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11064 * python/py-infevents.c (call_pre_event_object_type)
11065 (inferior_call_post_event_object_type).
11066 (memory_changed_event_object_type): Make extern.
11067 * python/py-infthread.c (thread_object_type): Make extern.
11068 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11069 * python/py-linetable.c (linetable_entry_object_type)
11070 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11071 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11072 (clear_objfiles_event_object_type): Make extern.
11073 * python/py-objfile.c (objfile_object_type): Make extern.
11074 * python/py-param.c (parmpy_object_type): Make extern.
11075 * python/py-progspace.c (pspace_object_type): Make extern.
11076 * python/py-signalevent.c (signal_event_object_type): Make extern.
11077 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11078 * python/py-type.c (type_object_type, field_object_type)
11079 (type_iterator_object_type): Make extern.
11080 * python/python.c (python_extension_script_ops)
11081 (python_extension_ops): Make extern.
11082 * stap-probe.c (stap_probe_ops): Make extern.
11086 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11087 because the event thread is not the current thread.
11091 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11092 been initialized yet, return NULL.
11096 * symfile.h (new_symfile_objfile): Delete.
11097 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11098 All callers updated.
11102 * tui/tui-io.c (tui_handle_resize_during_io): Call
11103 tui_update_gdb_sizes() after resizing the screen.
11104 * tui/tui.c (tui_enable): Resize the terminal before
11105 calling tui_update_gdb_sizes().
11109 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11110 line before printing a newline.
11114 * utils.c (producer_is_gcc): Return true or false.
11118 * utils.h (producer_is_gcc): Change return type to bool. Add major
11120 * utils.c (producer_is_gcc): Likewise.
11121 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11122 * dwarf2read.c (check_producer): Likewise.
11126 * infrun.c (displaced_step_fixup): Switch to the event thread
11127 before calling gdbarch_displaced_step_fixup.
11131 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11135 * ada-varobj.c (ada_name_of_child): Constify parent.
11136 (ada_path_expr_of_child): Same.
11137 (ada_value_of_child): Same.
11138 (ada_type_of_child): Same.
11139 * c-varobj.c (c_is_path_expr_parent): Same.
11140 (c_describe_child): Same.
11141 (c_name_of_child): Same.
11142 (c_value_of_child): Same.
11143 (c_type_of_child): Same.
11144 (cplus_number_of_children): Same.
11145 (cplus_describe_child): Constify var.
11146 (cplus_name_of_child): Constify parent.
11147 (cplus_value_of_child): Same.
11148 (cplus_type_of_child): Same.
11149 * jv-varobj.c (java_name_of_child): Same.
11150 (java_value_of_child): Same.
11151 (java_type_of_child): Same.
11152 * varobj.c (value_of_child): Same.
11153 (varobj_default_is_path_expr_parent): Constify var, parent and return
11155 (varobj_get_path_expr): Constify var, modify path_expr through
11157 (install_new_value): Constify parent.
11158 (value_of_child): Constify parent.
11159 * varobj.h (struct varobj): Constify parent.
11160 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11162 (varobj_get_path_expr): Constify var.
11163 (varobj_get_path_expr_parent): Constify var and return value.
11167 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11168 (arm_prologue_this_id): Move PC and SP limit checks to
11169 arm_prologue_unwind_stop_reason.
11170 (arm_prologue_unwind) <stop_reason> : Set to
11171 arm_prologue_unwind_stop_reason.
11175 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11176 DW_LANG_Fortran08 as language_fortran.
11181 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11182 of pointer against char.
11186 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11187 (c_type_print_modifier): Likewise.
11188 * dwarf2read.c (read_tag_atomic_type): New function.
11189 (read_type_die_1): Handle DW_TAG_atomic_type.
11190 * gdbtypes.c (make_atomic_type): New function.
11191 (recursive_dump_type): Handle TYPE_ATOMIC.
11192 * gdbtypes.h (enum type_flag_values): Renumber.
11193 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11194 (TYPE_ATOMIC): New macro.
11195 (make_atomic_type): Declare.
11199 * btrace.c (ftrace_find_call): Skip gaps.
11200 (ftrace_new_function): Initialize level.
11201 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11202 (ftrace_new_switch): Update
11204 (ftrace_new_gap): New.
11205 (ftrace_update_function): Create new function after gap.
11206 (btrace_compute_ftrace_bts): Create gap on error.
11207 (btrace_stitch_bts): Update parameters. Clear trace if it
11209 (btrace_stitch_trace): Update parameters. Update callers.
11210 (btrace_clear): Reset the number of gaps.
11211 (btrace_insn_get): Return NULL if the iterator points to a gap.
11212 (btrace_insn_number): Return zero if the iterator points to a gap.
11213 (btrace_insn_end): Allow gaps at the end.
11214 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11215 (btrace_find_insn_by_number): Assert that the found iterator does
11216 not point to a gap.
11217 (btrace_call_next, btrace_call_prev): Assert that the last function
11219 * btrace.h (btrace_bts_error): New.
11220 (btrace_function): Update comment.
11221 (btrace_function) <insn, insn_offset, number>: Update comment.
11222 (btrace_function) <errcode>: New.
11223 (btrace_thread_info) <ngaps>: New.
11224 (btrace_thread_info) <replay>: Update comment.
11225 (btrace_insn_get): Update comment.
11226 * record-btrace.c (btrace_ui_out_decode_error): New.
11227 (record_btrace_info): Print number of gaps.
11228 (btrace_insn_history, btrace_call_history): Call
11229 btrace_ui_out_decode_error for gaps.
11230 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11234 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11235 * nat/linux-btrace.c: (btrace_this_cpu): New.
11236 (cpu_supports_bts): Call btrace_this_cpu.
11237 (intel_supports_bts): Add cpu parameter.
11241 * btrace.h (btrace_insn_class): New.
11242 (btrace_insn) <size, iclass>: New.
11243 * btrace.c (ftrace_find_call): Update parameters. Update users.
11244 Use instruction classification.
11245 (ftrace_new_return): Update parameters. Update users.
11246 (ftrace_update_function): Update parameters. Update users. Use
11247 instruction classification.
11248 (ftrace_update_insns): Update parameters. Update users.
11249 (ftrace_classify_insn): New.
11250 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11251 TRY_CATCH around call to gdb_insn_length.
11255 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11256 Update parameters. Update users.
11260 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11261 (btrace_conf_bts_attributes): New.
11262 (btrace_conf_children): Add attributes.
11263 * common/btrace-common.h (btrace_config_bts): New.
11264 (btrace_config)<bts>: New.
11265 (btrace_config): Update comment.
11266 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11268 * features/btrace-conf.dtd: Increment version. Add size
11269 attribute to bts element.
11270 * record-btrace.c (set_record_btrace_bts_cmdlist,
11271 show_record_btrace_bts_cmdlist): New.
11272 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11273 record_btrace_print_conf, cmd_set_record_btrace_bts,
11274 cmd_show_record_btrace_bts): New.
11275 (record_btrace_info): Call record_btrace_print_conf.
11276 (_initialize_record_btrace): Add commands.
11277 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11278 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11279 (btrace_sync_conf): Synchronize bts size.
11280 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11281 * NEWS: Announce new commands and new packets.
11285 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11286 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11287 (x86_linux_btrace_conf): New.
11288 (x86_linux_create_target): Initialize to_btrace_conf.
11289 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11290 Check format. Split into this and ...
11291 (linux_enable_bts): ... this.
11292 (linux_btrace_conf): New.
11293 (perf_event_skip_record): Renamed into ...
11294 (perf_event_skip_bts_record): ... this. Updated users.
11295 (linux_disable_btrace): Split into this and ...
11296 (linux_disable_bts): ... this.
11297 (linux_read_btrace): Check format.
11298 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11299 (linux_btrace_conf): New.
11300 (btrace_target_info)<ptid>: Moved.
11301 (btrace_target_info)<conf>: New.
11302 (btrace_target_info): Split into this and ...
11303 (btrace_tinfo_bts): ... this. Updated users.
11304 * btrace.c (btrace_enable): Update parameters.
11305 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11306 (btrace_conf_children, btrace_conf_attributes)
11307 (btrace_conf_elements): New.
11308 * btrace.h (btrace_enable): Update parameters.
11309 (btrace_conf, parse_xml_btrace_conf): New.
11310 * common/btrace-common.h (btrace_config): New.
11311 * feature/btrace-conf.dtd: New.
11312 * record-btrace.c (record_btrace_conf): New.
11313 (record_btrace_cmdlist): New.
11314 (record_btrace_enable_warn, record_btrace_open): Pass
11315 &record_btrace_conf.
11316 (record_btrace_info): Print recording format.
11317 (cmd_record_btrace_bts_start): New.
11318 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11319 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11320 Add "record bts" alias command.
11321 * remote.c (remote_state)<btrace_config>: New.
11322 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11323 (remote_protocol_features): Add qXfer:btrace-conf:read.
11324 (remote_open_1): Call remote_btrace_reset.
11325 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11326 (btrace_target_info)<conf>: New.
11327 (btrace_sync_conf, btrace_read_config): New.
11328 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11330 (remote_btrace_conf): New.
11331 (init_remote_ops): Initialize to_btrace_conf.
11332 (_initialize_remote): Add qXfer:btrace-conf packet.
11333 * target.c (target_enable_btrace): Update parameters.
11334 (target_btrace_conf): New.
11335 * target.h (target_enable_btrace): Update parameters.
11336 (target_btrace_conf): New.
11337 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11338 (target_ops)<to_enable_btrace>: Update parameters and comment.
11339 (target_ops)<to_btrace_conf>: New.
11340 * target-delegates: Regenerate.
11341 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11342 (target_debug_print_const_struct_btrace_target_info_p): New.
11343 * NEWS: Announce new command and new packet.
11347 * nat/linux-btrace.h (perf_event_buffer): New.
11348 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11350 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11351 (perf_event_buffer_size, perf_event_buffer_begin)
11352 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11354 (perf_event_new_data): New.
11358 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11359 * record-btrace.c (record_btrace_open): Remove call to
11360 target_supports_btrace.
11361 * remote.c (remote_supports_btrace): Update parameters.
11362 * target.c (target_supports_btrace): Update parameters.
11363 * target.h (to_supports_btrace, target_supports_btrace): Update
11365 * target-delegates.c: Regenerate.
11366 * target-debug.h (target_debug_print_enum_btrace_format): New.
11367 * nat/linux-btrace.c
11368 (kernel_supports_btrace): Rename into ...
11369 (kernel_supports_bts): ... this. Update users. Update warning text.
11370 (intel_supports_btrace): Rename into ...
11371 (intel_supports_bts): ... this. Update users.
11372 (cpu_supports_btrace): Rename into ...
11373 (cpu_supports_bts): ... this. Update users.
11374 (linux_supports_btrace): Update parameters. Split into this and ...
11375 (linux_supports_bts): ... this.
11376 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11380 * Makefile.in (SFILES): Add common/btrace-common.c.
11381 (COMMON_OBS): Add common/btrace-common.o.
11382 (btrace-common.o): Add build rules.
11383 * btrace.c (parse_xml_btrace): Update parameters.
11384 (parse_xml_btrace_block): Set format field.
11385 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11386 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11387 (btrace_compute_ftrace): Split into this and...
11388 (btrace_compute_ftrace_bts): ...this.
11389 (btrace_stitch_trace): Split into this and...
11390 (btrace_stitch_bts): ...this.
11391 * btrace.h (parse_xml_btrace): Update parameters.
11392 (make_cleanup_btrace_data): New.
11393 * common/btrace-common.c: New.
11394 * common/btrace-common.h: Include common-defs.h.
11395 (btrace_block_s): Update comment.
11396 (btrace_format): New.
11397 (btrace_format_string): New.
11398 (btrace_data_bts): New.
11399 (btrace_data): New.
11400 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11401 * remote.c (remote_read_btrace): Update parameters.
11402 * target.c (target_read_btrace): Update parameters.
11403 * target.h (target_read_btrace): Update parameters.
11404 (target_ops)<to_read_btrace>: Update parameters.
11405 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11406 * target-delegates.c: Regenerate.
11407 * target-debug (target_debug_print_struct_btrace_data_p): New.
11408 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11409 (linux_read_bts): ...this.
11410 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11414 * remote-m32r-sdi.c: Include symfile.h.
11418 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11419 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11424 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11429 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11430 (enable_count_command): Check args for NULL value.
11434 * guile/scm-frame.c: Fix spelling errors in a comment.
11438 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11439 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11444 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11445 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11447 (resume_stopped_resumed_lwps): Don't check whether the thread is
11448 marked as executing.
11449 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11453 * regset.h (struct regset): Add flags field.
11454 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11455 * corelow.c (get_core_register_section): Add warning if the size
11456 exceeds the requested size and the regset does not have the
11457 REGSET_VARIABLE_SIZE flag set.
11458 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11460 * armbsd-tdep.c (armbsd_gregset): Likewise.
11461 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11462 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11463 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11464 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11468 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11469 For ".reg-xstate", explicitly specify the requested section size
11470 via X86_XSTATE_SIZE instead of just 0 on input and
11471 X86_XSTATE_MAX_SIZE on output.
11472 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11477 PR corefiles/17808:
11478 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11479 function type, particularly its SIZE parameter.
11480 * gdbarch.h: Regenerate.
11481 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11482 actual against required size using ">=" instead of "==".
11483 (amd64_collect_fpregset): Likewise.
11484 * i386-tdep.c (i386_supply_gregset): Likewise.
11485 (i386_collect_gregset): Likewise.
11486 (i386_supply_fpregset): Likewise.
11487 (i386_collect_fpregset): Likewise.
11488 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11489 (mips_fill_gregset_wrapper): Likewise.
11490 (mips_supply_fpregset_wrapper): Likewise.
11491 (mips_fill_fpregset_wrapper): Likewise.
11492 (mips64_supply_gregset_wrapper): Likewise.
11493 (mips64_fill_gregset_wrapper): Likewise.
11494 (mips64_supply_fpregset_wrapper): Likewise.
11495 (mips64_fill_fpregset_wrapper): Likewise.
11496 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11497 (am33_supply_fpregset_method): Likewise.
11498 (am33_collect_gregset_method): Likewise.
11499 (am33_collect_fpregset_method): Likewise.
11506 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11507 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11508 * tui/tui-file.c: #include tui/tui-command.h.
11509 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11510 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11511 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11515 Fix build breakage.
11516 * event-loop.c (gdb_do_one_event): Add default switch case.
11520 Filter out inferior gcc option -fpreprocessed.
11521 * compile/compile.c (filter_args): New function.
11522 (get_args): Use it.
11526 * event-loop.c: Don't declare nor define a queue type for
11528 (event_queue): Delete.
11529 (create_event, create_file_event, gdb_event_xfree)
11530 (initialize_event_loop, process_event): Delete.
11531 (gdb_do_one_event): Return as soon as one event is handled.
11532 (handle_file_event): Change prototype. Used the passed in
11533 file_handler pointer and ready_mask instead of looping over all
11535 (gdb_wait_for_event): Update the poll/select timeouts before
11536 blocking. Run event handlers directly instead of queueing events.
11537 Return as soon as one event is handled.
11538 (struct async_event_handler_data): Delete.
11539 (invoke_async_event_handler): Delete.
11540 (check_async_event_handlers): Change return type to int. Run
11541 event handlers directly instead of queueing events. Return as
11542 soon as one event is handled.
11543 (handle_timer_event): Delete.
11544 (update_wait_timeout): New function, factored out from
11546 (poll_timers): Reimplement.
11547 * event-loop.h (initialize_event_loop): Delete declaration.
11548 * top.c (gdb_init): Don't call initialize_event_loop.
11552 * event-loop.c (clear_async_event_handler): New function.
11553 * event-loop.h (clear_async_event_handler): New declaration.
11554 * record-btrace.c (record_btrace_async): New function.
11555 (init_record_btrace_ops): Install record_btrace_async.
11556 * record-full.c (record_full_async): New function.
11557 (record_full_resume): Don't mark the async event source here.
11558 (init_record_full_ops): Install record_full_async.
11559 (record_full_core_resume): Don't mark the async event source here.
11560 (init_record_full_core_ops): Install record_full_async.
11561 * remote.c (remote_async): Mark and clear the async stop reply
11562 queue event-loop token as appropriate.
11566 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11567 target_is_async_p instead of target_can_async.
11568 (linux_nat_wait): Use target_is_async_p instead of
11569 target_can_async. Don't enable async here.
11570 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11571 target_is_async_p instead of target_can_async.
11575 * varobj.h (lang_varobj_ops): Mention which return values need
11580 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11585 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11586 results found in the cache.
11591 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11592 when allocating a new one.
11596 * MAINTAINERS: Remove myself.
11600 * dwarf2read.c (process_structure_scope): Update setting of
11601 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11602 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11603 (set_type_vptr_fieldno): New function.
11604 (internal_type_vptr_basetype): New function.
11605 (set_type_vptr_basetype): New function.
11606 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11607 TYPE_VPTR_BASETYPE.
11608 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11609 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11610 (print_cplus_stuff): ... moved here.
11611 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11612 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11614 (struct cplus_struct_type): ... here. All uses updated.
11615 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11616 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11617 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11618 * stabsread.c (read_tilde_fields): Update setting of
11619 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11623 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11625 (cp_print_class_member): Rename local domain to self_type.
11626 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11627 domain_type to self_type.
11628 (set_die_type) <need_gnat_info>: Handle
11629 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11630 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11631 TYPE_SPECIFIC_SELF_TYPE.
11632 * gdbtypes.c (internal_type_self_type): New function.
11633 (set_type_self_type): New function.
11634 (smash_to_memberptr_type): Rename parameter domain to self_type.
11635 Update setting of TYPE_SELF_TYPE.
11636 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11637 (smash_to_method_type): Rename parameter domain to self_type.
11638 Update setting of TYPE_SELF_TYPE.
11639 (check_stub_method): Call smash_to_method_type.
11640 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11641 (copy_type_recursive): Ditto.
11642 * gdbtypes.h (enum type_specific_kind): New value
11643 TYPE_SPECIFIC_SELF_TYPE.
11644 (struct main_type) <type_specific>: New member self_type.
11645 (struct cplus_struct_type) <fn_field.type>: Update comment.
11646 (TYPE_SELF_TYPE): Rewrite.
11647 (internal_type_self_type, set_type_self_type): Declare.
11648 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11650 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11651 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11653 * stabsread.c (read_member_functions): Mark methods with
11654 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11659 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11664 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11665 or unions. Return zero if union.
11666 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11667 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11669 (compute_vtable_size): Assert only passed structs.
11670 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11674 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11683 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11685 * common/common-exceptions.h (enum errors)
11686 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11687 * completer.h (get_max_completions_reached_message): New declaration.
11688 (max_completions): Likewise.
11689 (completion_tracker_t): New typedef.
11690 (new_completion_tracker): New declaration.
11691 (make_cleanup_free_completion_tracker): Likewise.
11692 (maybe_add_completion_enum): New enum.
11693 (maybe_add_completion): New declaration.
11694 (throw_max_completions_reached_error): Likewise.
11695 * completer.c (max_completions): New global variable.
11696 (new_completion_tracker): New function.
11697 (free_completion_tracker): Likewise.
11698 (make_cleanup_free_completion_tracker): Likewise.
11699 (maybe_add_completions): Likewise.
11700 (throw_max_completions_reached_error): Likewise.
11701 (complete_line): Remove duplicates and limit result to max_completions
11703 (get_max_completions_reached_message): New function.
11704 (gdb_display_match_list): Handle max_completions.
11705 (_initialize_completer): New declaration and function.
11706 * symtab.c: Include completer.h.
11707 (completion_tracker): New static variable.
11708 (completion_list_add_name): Call maybe_add_completion.
11709 (default_make_symbol_completion_list_break_on_1): Renamed from
11710 default_make_symbol_completion_list_break_on. Maintain
11711 completion_tracker across calls to completion_list_add_name.
11712 (default_make_symbol_completion_list_break_on): New function.
11713 * top.c (init_main): Set rl_completion_display_matches_hook.
11714 * tui/tui-io.c: Include completer.h.
11715 (tui_old_rl_display_matches_hook): New static global.
11716 (tui_rl_display_match_list): Notify user if max-completions reached.
11717 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11718 * NEWS (New Options): Mention set/show max-completions.
11722 * symtab.c (struct add_name_data) <code>: New field.
11724 (add_symtab_completions): New function.
11725 (symtab_expansion_callback): Likewise.
11726 (default_make_symbol_completion_list_break_on): Set datum.code.
11727 Move minimal symbol scan before calling expand_symtabs_matching.
11728 Scan known primary symtabs for externs and statics before calling
11729 expand_symtabs_matching. Pass symtab_expansion_callback as
11730 expansion_notify argument to expand_symtabs_matching. Do not scan
11731 primary symtabs for externs and statics after calling
11732 expand_symtabs_matching.
11736 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11737 (struct quick_symbol_functions) <expand_symtabs_matching>:
11738 New argument expansion_notify. All uses updated.
11739 (expand_symtabs_matching): New argument expansion_notify.
11741 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11742 Also print expansion notify.
11743 * symtab.c (expand_symtabs_matching_via_partial): Call
11744 expansion_notify whenever a partial symbol table is expanded.
11745 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11746 expansion_notify whenever a symbol table is instantiated.
11750 * cli-out.c: #include completer.h, readline/readline.h.
11751 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11752 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11753 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11754 * cli-out.h (cli_display_match_list): Declare.
11755 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11756 (ELLIPSIS_LEN): Ditto.
11757 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11758 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11759 (gdb_fnprint, gdb_print_filename): Ditto.
11760 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11761 (gdb_display_match_list): Ditto.
11762 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11763 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11764 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11765 (match_list_displayer): New struct.
11766 (gdb_display_match_list): Declare.
11767 * top.c (init_main): Set rl_completion_display_matches_hook.
11768 * tui/tui-io.c: #include completer.h.
11769 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11770 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11771 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11772 (tui_mld_getc, tui_mld_read_key): Ditto.
11773 (tui_rl_display_match_list): Rewrite.
11774 (tui_handle_resize_during_io): New arg for_completion. All callers
11779 Add symbol lookup cache.
11780 * NEWS: Document new options and commands.
11781 * symtab.c (symbol_cache_key): New static global.
11782 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11783 (SYMBOL_LOOKUP_FAILED): New macro.
11784 (symbol_cache_slot_state): New enum.
11785 (block_symbol_cache): New struct.
11786 (symbol_cache): New struct.
11787 (new_symbol_cache_size, symbol_cache_size): New static globals.
11788 (hash_symbol_entry, eq_symbol_entry): New functions.
11789 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11790 (make_symbol_cache, free_symbol_cache): New functions.
11791 (get_symbol_cache, symbol_cache_cleanup): New function.
11792 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11793 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11794 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11795 (symbol_cache_flush, symbol_cache_dump): New functions.
11796 (maintenance_print_symbol_cache): New function.
11797 (maintenance_flush_symbol_cache): New function.
11798 (symbol_cache_stats): New function.
11799 (maintenance_print_symbol_cache_statistics): New function.
11800 (symtab_new_objfile_observer): New function.
11801 (symtab_free_objfile_observer): New function.
11802 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11803 (_initialize_symtab): Init symbol_cache_key. New parameter
11804 maint symbol-cache-size. New maint commands print symbol-cache,
11805 print symbol-cache-statistics, flush-symbol-cache.
11806 Install new_objfile, free_objfile observers.
11811 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11816 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11817 * auto-load.c: #include ctype.h.
11818 (struct auto_load_pspace_info): Replace member loaded_scripts with
11819 new members loaded_script_files, loaded_script_texts.
11820 (auto_load_pspace_data_cleanup): Update.
11821 (init_loaded_scripts_info): Update.
11822 (get_auto_load_pspace_data_for_loading): Update.
11823 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11825 (maybe_add_script_text): New function.
11826 (clear_section_scripts): Update.
11827 (source_script_file, execute_script_contents): New functions.
11828 (source_section_scripts): Add support for
11829 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11830 (print_scripts): New function.
11831 (auto_load_info_scripts): Also print inlined scripts.
11832 (maybe_print_unsupported_script_warning): Renamed from
11833 unsupported_script_warning_print. All callers updated.
11834 (maybe_print_script_not_found_warning): Renamed from
11835 script_not_found_warning_print. All callers updated.
11836 * extension-priv.h (struct extension_language_script_ops): New member
11837 objfile_script_executor.
11838 * extension.c (ext_lang_objfile_script_executor): New function.
11839 * extension.h (objfile_script_executor_func): New typedef.
11840 (ext_lang_objfile_script_executor): Declare.
11841 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11842 * guile/guile.c (guile_extension_script_ops): Update.
11843 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11844 * python/python.c (python_extension_script_ops): Update.
11845 (gdbpy_execute_objfile_script): New function.
11849 * tui/tui-io.c (tui_expand_tabs): New function.
11850 (tui_puts, tui_redisplay_readline): Expand TABs into the
11851 appropriate number of spaces.
11852 * tui/tui-regs.c: Include tui-io.h.
11853 (tui_register_format): Call tui_expand_tabs to expand TABs into
11854 the appropriate number of spaces.
11855 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11859 * NEWS: "info source" command now display producer string if present.
11860 * source.c (source_info): Print producer string if present.
11864 * varobj.c (varobj_delete): Fix comment.
11868 * varobj.c (create_child): Modify comment.
11872 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11874 (ada_name_of_variable): Same.
11875 (ada_path_expr_of_child): Same.
11876 (ada_value_of_variable): Same.
11877 (ada_value_is_changeable_p): Same.
11878 (ada_value_has_mutated): Same.
11879 * c-varobj.c (varobj_is_anonymous_child): Same.
11880 (c_is_path_expr_parent): Same.
11881 (c_number_of_children): Same.
11882 (c_name_of_variable): Same.
11883 (c_path_expr_of_child): Same.
11885 (c_value_of_variable): Same.
11886 (cplus_number_of_children): Same.
11887 (cplus_name_of_variable): Same.
11888 (cplus_path_expr_of_child): Same.
11889 (cplus_value_of_variable): Same.
11890 * jv-varobj.c (java_number_of_children): Same.
11891 (java_name_of_variable): Same.
11892 (java_path_expr_of_child): Same.
11893 (java_value_of_variable): Same.
11894 * varobj.c (number_of_children): Same.
11895 (name_of_variable): Same.
11897 (varobj_ensure_python_env): Same.
11898 (varobj_get_objname): Same.
11899 (varobj_get_expression): Same.
11900 (varobj_get_display_format): Same.
11901 (varobj_get_display_hint): Same.
11902 (varobj_has_more): Same.
11903 (varobj_get_thread_id): Same.
11904 (varobj_get_frozen): Same.
11905 (dynamic_varobj_has_child_method): Same.
11906 (varobj_get_gdb_type): Same.
11907 (is_path_expr_parent): Same.
11908 (varobj_default_is_path_expr_parent): Same.
11909 (varobj_get_language): Same.
11910 (varobj_get_attributes): Same.
11911 (varobj_is_dynamic_p): Same.
11912 (varobj_get_child_range): Same.
11913 (varobj_value_has_mutated): Same.
11914 (varobj_get_value_type): Same.
11915 (number_of_children): Same.
11916 (name_of_variable): Same.
11917 (check_scope): Same.
11918 (varobj_editable_p): Same.
11919 (varobj_value_is_changeable_p): Same.
11920 (varobj_floating_p): Same.
11921 (varobj_default_value_is_changeable_p): Same.
11925 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11926 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11928 (cplus_path_expr_of_child): Same.
11932 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11934 (mi_cmd_var_info_expression): Same.
11935 * varobj.c (varobj_get_expression): Mention in the comment that
11936 the result must by freed by the caller.
11940 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11942 (varobj_update_one): Same.
11943 * varobj.c (update_type_if_necessary): Free curr_type_str and
11945 (varobj_get_type): Specify in comment that the result needs to be
11946 freed by the caller.
11951 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11955 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11956 * utils.c (producer_is_gcc_ge_4): Likewise.
11957 (producer_is_gcc): New function.
11958 * utils.h (producer_is_gcc): New declaration.
11962 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11964 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11965 parameter by "addr_stack" parameter.
11966 (resolve_dynamic_range): Replace "addr" parameter by
11967 "stack_addr" parameter. Update function documentation.
11968 Update code accordingly.
11969 (resolve_dynamic_array, resolve_dynamic_union)
11970 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11971 (resolve_dynamic_type): Update code, following the changes made
11972 to resolve_dynamic_type_internal's interface.
11973 * dwarf2loc.h (struct property_addr_info): New.
11974 (dwarf2_evaluate_property): Replace "address" parameter
11975 by "addr_stack" parameter. Adjust function documentation.
11976 (struct dwarf2_offset_baton): New.
11977 (struct dwarf2_property_baton): Update documentation of
11978 field "referenced_type" to be more general. New field
11979 "offset_info" in union data field.
11980 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11981 parameter by "addr_stack" parameter. Adjust code accordingly.
11982 Add support for PROP_ADDR_OFFSET properties.
11983 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11984 DW_AT_data_member_location attributes as well. Use case
11985 statements instead of if/else condition.
11989 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11990 Return zero if PARENT_VALUE is NULL and parent_type's
11991 range type is dynamic.
11995 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11996 nonzero if the type's subtype is dynamic.
11997 (resolve_dynamic_range): Also resolve the range's subtype.
12002 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12006 * NEWS: Mention gdb.Objfile.username.
12007 * python/py-objfile.c (objfpy_get_username): New function.
12008 (objfile_getset): Add "username".
12012 * stack.c (return_command): Markup warning message with _.
12016 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12020 Fix 100x slowdown regression on DWZ files.
12021 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12022 (struct line_header): Add offset and offset_in_dwz.
12023 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12024 (free_line_header_voidp): New declaration.
12025 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12027 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12028 (handle_DW_AT_stmt_list): Use line_header_hash.
12029 (free_line_header_voidp): New function.
12030 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12031 (dwarf_decode_lines): New parameter decode_mapping, use it.
12032 (dwarf2_free_objfile): Free line_header_hash.
12037 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12042 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12044 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12045 calling_convention an 8 bit bit field.
12046 (TYPE_NO_RETURN): New macro.
12047 * infcmd.c (finish_command): Query if function does not return
12049 * stack.c (return_command): Likewise.
12053 * linux-nat.c (linux_is_async_p): New macro.
12054 (linux_nat_is_async_p):
12055 (linux_nat_terminal_inferior): Check whether the target can async
12056 instead of whether it is already async.
12057 (linux_nat_terminal_ours): Don't check whether the target is
12059 (linux_async_pipe): Use linux_is_async_p.
12063 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12065 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12066 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12067 Sort tp_array using tp_array_compar.
12068 (_initialize_thread): Extend thread_apply_all_command help.
12072 * corelow.c (core_open): Call also thread_command.
12073 * gdbthread.h (thread_command): New prototype moved from ...
12074 * thread.c (thread_command): ... here.
12075 (thread_command): Make it global.
12079 * configure.ac [*mingw32*]: Check $curses_found instead of
12081 * configure: Regenerate.
12082 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12083 HAVE_NCURSES_NCURSES_H checks.
12087 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12088 fails with the 1st arg NULL, try again with "unknown". Don't test
12089 the "cup" capability: it isn't supported by the Windows port of
12090 ncurses, but the Windows console driver is still capable of
12095 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12099 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12100 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12101 reason that "make TAGS" is broken.
12105 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12106 and check additional store instructions.
12110 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12114 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12115 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12116 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12117 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12118 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12119 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12120 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12121 ppc_process_record_op19, ppc_process_record_op31,
12122 ppc_process_record_op59, ppc_process_record_op60,
12123 ppc_process_record_op63): Likewise.
12127 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12128 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12133 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12134 ppc_process_record_op31, ppc_process_record_op59,
12135 ppc_process_record_op60, ppc_process_record_op63,
12136 ppc_process_record): Fix -Wformat warning.
12137 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12138 Remove unused variables.
12142 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12146 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12147 CONFIG_OBS if not building with a curses library.
12148 * configure: Regenerate.
12150 * windows-termcap.c: Include defs.h. Make the whole body empty if
12151 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12152 HAVE_NCURSES_NCURSES_H is defined.
12156 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12157 from end of line to start of next line.
12161 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12162 Scan PLT stub backward for reverse debugging.
12163 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12168 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12170 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12172 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12173 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12174 (ppc_linux_init_abi): Set process_record, process_record_signal.
12175 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12176 ppc_linux_record_tdep to gdbarch_tdep.
12177 (ppc_process_record): New declaration.
12178 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12179 ppc_process_record_op19, ppc_process_record_op31,
12180 ppc_process_record_op59, ppc_process_record_op60,
12181 ppc_process_record_op63, ppc_process_record): New functions.
12185 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12186 rs6000_in_function_epilogue_frame_p and add an argument
12188 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12189 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12191 (rs6000_epilogue_frame_unwind): New.
12192 (rs6000_gdbarch_init): Append epilogue unwinder.
12196 * nat/linux-personality.c: Replace "#ifndef
12197 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12198 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12203 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12205 (_initialize_tui_win) <border-kind, border-mode>:
12206 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12207 (tui_set_tab_width_command): Fix the commentary.
12209 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12211 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12213 (tui_set_tab_width_command): Delete and recreate the source and
12214 the disassembly windows, to show the effect of the changed tab
12217 * tui/tui-data.h (LINE_PREFIX): Make shorter
12218 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12219 "Thread NNNNN.XXXX" thread ID notation on Windows.
12223 Fix gcc-5 compilation.
12224 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12228 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12229 (linux-personality.o): New rule.
12230 * common/common-defs.h: Include <stdint.h>.
12231 * config/aarch64/linux.mh (NATDEPFILES): Include
12232 linux-personality.o.
12233 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12234 * config/arm/linux.mh (NATDEPFILES): Likewise.
12235 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12236 * config/i386/linux.mh (NATDEPFILES): Likewise.
12237 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12238 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12239 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12240 * config/mips/linux.mh (NATDEPFILES): Likewise.
12241 * config/pa/linux.mh (NATDEPFILES): Likewise.
12242 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12243 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12244 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12245 * config/s390/linux.mh (NATDEPFILES): Likewise.
12246 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12247 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12248 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12249 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12250 * defs.h: Remove #include <stdint.h> (moved to
12251 common/common-defs.h).
12252 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12253 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12254 nat/linux-personality.c).
12255 (linux_nat_create_inferior): Remove code to disable address space
12256 randomization (moved to nat/linux-personality.c). Create cleanup
12257 to disable address space randomization.
12258 * nat/linux-personality.c: New file.
12259 * nat/linux-personality.h: Likewise.
12263 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12264 common/posix-strerror.c.
12265 (posix-strerror.o): New rule.
12266 (mingw-strerror.o): Likewise.
12267 * common/common-utils.h (safe_strerror): Move prototype to here,
12269 * common/common.host: New file.
12270 * common/mingw-strerror.c: Likewise.
12271 * common/posix-strerror.c: Likewise.
12272 * configure: Regenerated.
12273 * configure.ac: Source common/common.host. Add variable
12274 common_host_obs to gdb_host_obs.
12275 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12276 gdb/common/posix-strerror.c when warning about the use of
12278 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12279 common/mingw-strerror.c.
12280 * posix-hdep.c (safe_strerror): Remove definition; move it to
12281 common/posix-hdep.c.
12282 * utils.h (safe_strerror): Remove prototype; move to
12283 common/common-utils.h.
12287 GDB 7.8.2 released.
12291 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12292 ___XA type if the array has already been fixed.
12296 * Makefile.in (ppc-linux.o): New rule.
12297 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12298 * configure.ac: AC_CHECK_FUNCS(getauxval).
12299 * config.in: Re-generated.
12300 * configure: Re-generated.
12301 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12303 * nat/ppc-linux.c: New file.
12304 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12305 Call ppc64_64bit_inferior_p.
12309 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12311 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12312 (PPC_FEATURE_HAS_DFP): Likewise.
12313 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12314 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12315 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12316 Include "nat/ppc-linux.h".
12317 * nat/ppc-linux.h: New file.
12318 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12323 * breakpoint.c: Include "interps.h".
12324 (bpstat_do_actions_1): Also check whether the interpreter is
12330 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12331 reinstall if the interpreter is sync.
12335 * objfiles.c (objfile_filename): New function.
12336 * objfiles.h (objfile_filename): Declare it.
12337 (objfile_name): Add function comment.
12338 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12339 bfd file name (which may be realpath'd), and the original name.
12343 * NEWS: Create a new section for the next release branch.
12344 Rename the section of the current branch, now that it has
12349 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12350 * version.in: Bump version to 7.9.50.DATE-cvs.
12354 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12355 Remove trailing new-line in argument of call to warning.
12359 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12360 new-line in argument of call to "warning".
12364 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12365 in static block, then try searching for primitive types.
12369 * top.h (gdb_add_history): Declare.
12370 * top.c (command_count): New variable.
12371 (gdb_add_history): New function.
12372 (gdb_safe_append_history): New static function.
12373 (quit_force): Call it.
12374 (command_line_input): Use gdb_add_history instead of
12376 * event-top.c (command_line_handler): Likewise.
12381 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12382 <setjmp.h> #include.
12386 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12391 * NEWS: The "maint demangle" command is renamed as "demangle".
12392 * demangle.c: #include cli/cli-utils.h, language.h.
12393 (demangle_command): New function.
12394 (_initialize_demangle): Add new command "demangle".
12395 * maint.c (maintenance_demangle): Stub out.
12396 (_initialize_maint_cmds): Update help text for "maint demangle",
12397 and mark as deprecated.
12401 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12402 inferior_thread is a function.
12406 * Makefile.in (.y.c): Don't munge yacc's #line
12411 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12412 to prompt for input.
12413 * tui/tui-hooks.c (tui_query_hook): Remove.
12414 (tui_install_hooks): Don't set deprecated_query_hook.
12415 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12416 height calculation. Always update the command window's cur_line.
12420 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12422 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12424 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12425 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12427 (check_stopped_by_watchpoint): New function.
12428 (save_sigtrap): Reimplement.
12429 (linux_nat_stopped_by_watchpoint): Adjust.
12430 (linux_nat_lp_status_is_event): Delete.
12431 (stop_wait_callback): Only call save_sigtrap after storing the
12433 (status_callback): If the thread had been stopped for a breakpoint
12434 that has since been removed, discard the event and resume the LWP.
12435 (count_events_callback, select_event_lwp_callback): Use
12436 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12437 (cancel_breakpoint): Rename to ...
12438 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12439 stopped for a software breakpoint or hardware breakpoint.
12440 (select_event_lwp): Only give preference to the stepping LWP in
12441 all-stop mode. Adjust comments.
12442 (stop_and_resume_callback): Remove references to new_pending_p.
12443 (linux_nat_filter_event): Likewise. Leave exit events of the
12444 leader thread pending here. Handle signal short circuiting here.
12445 Only call save_sigtrap after storing the pending waitstatus.
12446 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12447 new_pending. Don't handle leaving events the caller is not
12448 interested in pending here, nor handle signal short-circuiting
12449 here. Also give equal priority to all LWPs that have had events
12450 in non-stop mode. If reporting a software breakpoint event,
12451 unadjust the LWP's PC.
12452 * linux-nat.h (enum lwp_stop_reason): New.
12453 (struct lwp_info) <stop_pc>: New field.
12454 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12455 (struct lwp_info) <stop_reason>: New field.
12456 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12460 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12461 Set the LWP's 'resumed' flag.
12465 * linux-nat.c (linux_resume_one_lwp): New function.
12466 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12467 (linux_nat_resume): Use lwp_status_pending_p and
12468 linux_resume_one_lwp.
12469 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12470 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12471 (status_callback, running_callback): Use lwp_status_pending_p.
12472 (lwp_status_pending_p): New function.
12473 (stop_and_resume_callback): Use lwp_status_pending_p.
12474 (linux_nat_filter_event): Use linux_resume_one_lwp.
12475 (linux_nat_wait_1): Always use status_callback to look for an LWP
12476 with a pending status. Use linux_resume_one_lwp.
12477 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12478 linux_resume_one_lwp.
12482 * breakpoint.c (bp_location_inserted_here_p): New function,
12483 factored out from ...
12484 (breakpoint_inserted_here_p): ... here. Use
12485 ALL_BP_LOCATIONS_AT_ADDR.
12486 (software_breakpoint_inserted_here_p): Use
12487 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12491 Skip enabling event reporting if the kernel supports
12492 PTRACE_EVENT_CLONE.
12493 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12494 (thread_db_use_events): New function.
12495 (try_thread_db_load_1): Check thread_db_use_events before enabling
12497 (update_thread_state): New function.
12498 (attach_thread): Use it. Check thread_db_use_events before
12499 enabling event reporting.
12500 (thread_db_detach): Check thread_db_use_events before disabling
12502 (find_new_threads_callback): Check thread_db_use_events before
12503 enabling event reporting. Update the thread's state if not using
12504 libthread_db events.
12508 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12509 about to wait for is > 0.
12510 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12511 the kernel thread ID is -1.
12515 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12516 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12517 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12518 ptrace option flags.
12519 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12521 * nat/linux-procfs.c: Include <dirent.h>.
12522 (linux_proc_get_int): New parameter "warn". Handle it.
12523 (linux_proc_get_tgid): Adjust.
12524 (linux_proc_get_tracerpid): Rename to ...
12525 (linux_proc_get_tracerpid_nowarn): ... this.
12526 (linux_proc_pid_get_state): New function, factored out from
12527 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12529 (linux_proc_pid_is_gone): New function.
12530 (linux_proc_pid_is_stopped): Adjust.
12531 (linux_proc_pid_is_zombie_maybe_warn)
12532 (linux_proc_pid_is_zombie_nowarn): New functions.
12533 (linux_proc_pid_is_zombie): Use
12534 linux_proc_pid_is_zombie_maybe_warn.
12535 (linux_proc_attach_tgid_threads): New function.
12536 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12537 (linux_proc_get_tracerpid): Rename to ...
12538 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12539 (linux_proc_pid_is_gone): New declaration.
12540 (linux_proc_pid_is_zombie): Update comment.
12541 (linux_proc_pid_is_zombie_nowarn): New declaration.
12542 (linux_proc_attach_lwp_func): New typedef.
12543 (linux_proc_attach_tgid_threads): New declaration.
12544 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12545 use nowarn functions.
12546 (linux_ptrace_attach_fail_reason_string): Move here from
12547 gdbserver/linux-low.c and rename.
12548 (ptrace_supports_feature): If the current ptrace options are not
12549 known yet, check them now, instead of asserting.
12550 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12555 * linux-thread-db.c (thread_db_find_new_threads_silently)
12556 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12557 (find_new_threads_once): Print debug output on gdb_stdlog.
12562 * compile/compile.c: Include "gdb_wait.h".
12563 (do_rmdir): Check return value, and free 'zap'.
12568 * dwarf2loc.c (indirect_pieced_value): Don't call
12569 gdb_sign_extend. Call extract_signed_integer instead.
12570 * utils.c (gdb_sign_extend): Remove.
12571 * utils.h (gdb_sign_extend): Remove declaration.
12576 * stabsread.c (define_symbol): Set language for C++ special symbols.
12580 * inflow.c (initial_gdb_ttystate): Tweak comment.
12584 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12585 comment documenting function.
12589 * terminal.h (set_initial_gdb_ttystate): Declare.
12590 * inflow.c (initial_gdb_ttystate): New static variable.
12591 (set_initial_gdb_ttystate): New setter.
12592 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12593 instead of our current terminal state.
12594 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12598 * guile/scm-type.c (tyscm_array_1): Add comment.
12599 * python/py-type.c (typy_array_1): Add comment.
12603 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12604 error if N2 is equal to N1 - 1.
12608 * python/py-type.c (typy_array_1): Do not raise negative-length
12609 exception if N2 is equal to N1 - 1.
12613 * c-exp.y: Whitespace cleanup.
12614 (classify_inner_name): Remove extra ;.
12618 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12623 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12627 * symtab.h (struct symbol): Fix typo in comment.
12631 Update year range in copyright notice of all files.
12635 * top.c (print_gdb_version): Update copyright year to 2015.
12639 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12641 For older changes see ChangeLog-2014.
12647 version-control: never