7 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12 * remote.c (remote_pass_signals): Remove local 'buf' and use
14 (remote_program_signals): Likewise.
18 * ctf.c: Include "inferior.h" and "gdbthread.h".
19 (CTF_PID): A new macro.
20 (ctf_open): Call inferior_appeared and add_thread_silent.
21 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
22 (ctf_thread_alive): New function.
23 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
31 * tracepoint.c (TFILE_PID): Remove.
32 (tfile_open): Don't add thread and inferior.
33 (tfile_close): Don't set 'inferior_ptid'. Don't call
35 (tfile_thread_alive): Remove.
36 (init_tfile_ops): Don't set field 'to_thread_alive' of
41 * remote.c (remote_start_remote): Call remote_check_symbols even
42 if only symbol-file (not file) has been given.
46 * gdbarch.sh (skip_entrypoint): New callback.
47 * gdbarch.c, gdbarch.h: Regenerate.
48 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
49 * infrun.c (fill_in_stop_func): Likewise.
50 * ppc-linux-tdep.c: Include "elf/ppc64.h".
51 (ppc_elfv2_elf_make_msymbol_special): New function.
52 (ppc_elfv2_skip_entrypoint): Likewise.
53 (ppc_linux_init_abi): Install them for ELFv2.
57 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
58 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
59 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
60 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
61 structures returned in GPRs.
65 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
66 offset to the stack parameter list for the ELFv2 ABI.
70 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
71 set_gdbarch_convert_from_func_ptr_addr and
72 set_gdbarch_elf_make_msymbol_special for ELFv1.
73 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
74 function descriptors on ELFv1.
75 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
76 set up r12 at function entry.
80 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
81 (struct gdbarch_tdep): New member elf_abi.
83 * rs6000-tdep.c: Include "elf/ppc64.h".
84 (rs6000_gdbarch_init): Detect ELF ABI version.
88 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
89 within a register pair holding a DFP 128-bit value on little-endian.
90 (ppc64_sysv_abi_return_value_base): Likewise.
91 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
92 (dfp_pseudo_register_write): Likewise.
96 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
97 offset on little-endian when passing _Decimal32.
98 (ppc64_sysv_abi_return_value_base): Likewise for return values.
102 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
103 of the overlapped FP register within the VSX register on little-
105 (efpr_pseudo_register_write): Likewise.
109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
110 offset on little-endian when passing small structures.
114 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
115 (struct ppc64_sysv_argpos): New data structure.
116 (ppc64_sysv_abi_push_float): Remove.
117 (ppc64_sysv_abi_push_val): New function.
118 (ppc64_sysv_abi_push_integer): Likewise.
119 (ppc64_sysv_abi_push_freg): Likewise.
120 (ppc64_sysv_abi_push_vreg): Likewise.
121 (ppc64_sysv_abi_push_param): Likewise.
122 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
123 (ppc64_sysv_abi_return_value_base): New function.
124 (ppc64_sysv_abi_return_value): Refactor to use it.
128 * NEWS: Document new target powerpc64le-*-linux*.
132 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
133 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
135 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
136 register set used in ELF core dumps. Add floating-point register set.
140 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
141 dwarf2_to_gdb[] table using symbolic constants. Adjust
142 penultimate entry from number representing the PC register
143 to symbolic constant representing the MDR register. Add
144 constant for the PC register to the end of the table.
148 * bsd-kvm.c: Include <sys/param.h>
152 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
156 * ada-lang.h (clear_ada_sym_cache): Delete.
160 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
164 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
165 the sigreturn register save area only if the syscall is
170 * valops.c (value_slice): Minor reformatting.
174 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
178 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
180 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
181 (ada_ignore_descriptive_types_p): New static global.
182 (find_parallel_type_by_descriptive_type): Return immediately
183 if ada_ignore_descriptive_types_p is set.
184 (_initialize_ada_language): Register new commands "maintenance
185 set ada", "maintenance show ada", "maintenance set ada
186 ignore-descriptive-types" and "maintenance show ada
187 ignore-descriptive-types".
188 * NEWS: Add entry for new "maint ada set/show
189 ignore-descriptive-types" commands.
193 * record-btrace.c (record_btrace_close): Call btrace_teardown
198 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
203 * ada-typeprint (type_is_full_subrange_of_target_type):
205 (print_range): Add parameter bounds_prefered_p. If not set,
206 try printing range types using the name of their base type.
207 (print_range_type): Add parameter bounds_prefered_p.
208 Use it in call to print_range.
209 (print_array_type, ada_print_type): Update calls to print_range
210 and print_range_type.
214 * ada-typeprint.c (print_array_type, print_choices, print_range)
215 (print_range_bound, print_dynamic_range_bound, print_range_type):
220 * ada-typeprint.c (print_range): Add missing empty line
221 after local declaration.
225 * ada-valprint.c (print_optional_low_bound): Get index_type's
226 target type for as long as it is a TYPE_CODE_RANGE.
230 * procfs.c (procfs_make_note_section): Remove assertion and
235 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
236 * corelow.c (get_core_siginfo): Likewise.
240 * remote.c (remote_write_bytes_aux): Change type of 'len' to
241 ULONGEST. Don't check 'len' is negative.
242 (remote_write_bytes): Change type of 'len' to ULONGEST.
247 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
248 Handle exception from frame.block.
249 (FrameVars.fetch_frame_locals): Likewise.
254 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
255 on a NULL pointer. Move "goto error" to correct place.
260 * python/py-framefilter.c (apply_frame_filter): Call
261 ensure_python_env after computing gdbarch.
265 * target.c (raw_memory_xfer_partial): Change argument type
266 from void * to gdb_byte *.
267 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
271 New gdbserver option --debug-format=timestamp.
276 * syscalls/s390x-linux.xml: New file.
277 * syscalls/s390-linux.xml: New file.
278 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
279 (XML_SYSCALL_FILENAME_S390X): Likewise.
280 (op_svc): New enum value for SVC opcode.
281 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
282 (s390_linux_get_syscall_number): New function.
283 (s390_gdbarch_init): Register '*get_syscall_number' and the
284 syscall xml file name.
285 * data-directory/Makefile.in (SYSCALLS_FILES): Add
286 "s390-linux.xml" and "s390x-linux.xml".
287 * NEWS: Announce new feature.
291 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
295 * xtensa-config.c: Include defs.h.
299 * common/common-utils.h: Add "ARI:" comment beside __func__
304 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
309 * configure.ac: Call AM_PROG_INSTALL_STRIP.
310 * configure: Regenerate.
311 * aclocal.m4: Regenerate.
312 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
313 New substituted variables.
314 (install-strip): New target.
315 (INSTALL_SCRIPT): New substituted variable.
316 (FLAGS_TO_PASS): Add it.
317 (install-only): Use $(INSTALL_SCRIPT) rather than
318 $(INSTALL_PROGRAM) for gcore.
322 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
327 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
328 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
329 (deprecated_cmd_warning, complete_on_cmdlist): Update.
330 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
331 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
332 (struct cmd_list_element) <flags>: Remove.
333 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
334 doc_allocated>: New fields.
335 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
337 * maint.c (maintenance_do_deprecate): Update.
338 * top.c (execute_command): Update.
342 * xtensa-linux-nat.c: Include asm/ptrace.h.
346 * Makefile.in (SFILES): Add d-support.c.
347 (COMMON_OBS): Add d-support.o.
348 * d-lang.h (d_parse_symbol): Add comment, now defined in
350 * d-lang.c (parse_call_convention)
351 (parse_attributes, parse_function_types)
352 (parse_function_args, parse_type, parse_identifier)
353 (call_convention_p, d_parse_symbol): Move functions to ...
354 * d-support.c: ... New file.
358 * d-lang.h (d_parse_symbol): Add declaration.
359 * d-lang.c (extract_identifiers)
360 (extract_type_info): Remove functions.
361 (parse_call_convention, parse_attributes)
362 (parse_function_types, parse_function_args)
363 (parse_type, parse_identifier, call_convention_p)
364 (d_parse_symbol): New functions.
365 (d_demangle): Use d_parse_symbol to demangle D symbols.
369 * d-lang.h (struct builtin_d_type): New data type.
370 (builtin_d_type): Add declaration.
371 * d-lang.c (d_language_arch_info, build_d_types)
372 (builtin_d_type): New functions.
373 (enum d_primitive_types): New data type.
374 (d_language_defn): Change c_language_arch_info to
375 d_language_arch_info.
376 (d_type_data): New static variable.
377 (_initialize_d_language): Initialize d_type_data.
381 * d-lang.h (d_main_name): Add declaration.
382 * d-lang.c (d_main_name): New function.
383 * symtab.c (find_main_name): Add call to d_main_name.
387 * d-lang.c (d_language_defn): Change macro_expansion_c to
392 * MAINTAINERS: Add myself as a write-after-approval maintainer.
396 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
397 gdb_exception" declaration.
398 * remote.c (getpkt_or_notif_sane): Likewise.
402 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
403 function, contents of dirnames_to_char_ptr_vec_append moved here.
404 (delim_string_to_char_ptr_vec): New function.
405 (dirnames_to_char_ptr_vec_append): Rewrite.
406 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
410 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
412 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
413 #include "common-utils.h".
414 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
415 * common/vec.h (VEC_ASSERT_PASS): Update.
416 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
417 (MACH_CHECK_ERROR): Update.
421 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
423 * gdbarch.h: Regenerate.
427 * value.c (struct value) <regnum>: Move earlier.
431 * remote.c (extended_remote_create_inferior): Rename from
432 extended_remote_create_inferior_1. Add "ops" argument. Remove
437 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
438 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
443 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
447 * btrace.h (btrace_thread_flag): New.
448 (struct btrace_thread_info) <flags>: New.
449 * record-btrace.c (record_btrace_resume_thread)
450 (record_btrace_find_thread_to_move, btrace_step_no_history)
451 (btrace_step_stopped, record_btrace_start_replaying)
452 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
453 (record_btrace_find_resume_thread): New.
454 (record_btrace_resume, record_btrace_wait): Extend.
455 (record_btrace_can_execute_reverse): New.
456 (record_btrace_open): Fail in non-stop mode.
457 (record_btrace_set_replay): Split into this, ...
458 (record_btrace_stop_replaying): ... this, ...
459 (record_btrace_clear_histories): ... and this.
460 (init_record_btrace_ops): Init to_can_execute_reverse.
465 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
466 (forward_target_decr_pc_after_break)
467 (target_decr_pc_after_break): New.
468 * target.c (forward_target_decr_pc_after_break)
469 (target_decr_pc_after_break): New.
470 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
471 instead of gdbarch_decr_pc_after_break.
472 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
473 instead of gdbarch_decr_pc_after_break.
474 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
475 instead of gdbarch_decr_pc_after_break.
476 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
477 instead of gdbarch_decr_pc_after_break.
478 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
479 instead of gdbarch_decr_pc_after_break.
480 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
481 instead of gdbarch_decr_pc_after_break.
485 * btrace.c: Include regcache.h.
486 (btrace_add_pc): New.
487 (btrace_enable): Call btrace_add_pc.
488 (btrace_is_empty): New.
489 * btrace.h (btrace_is_empty): New.
490 * record-btrace.c (require_btrace, record_btrace_info): Call
495 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
497 (linux_disable_btrace): Change return type.
498 * common/linux-btrace.h (linux_read_btrace): Change parameters
499 and return type to allow error reporting. Update users.
500 (linux_disable_btrace): Change return type. Update users.
501 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
504 (btrace_block) <begin>: Comment on BEGIN == 0.
505 * btrace.c (btrace_compute_ftrace): Start from the end of
507 (btrace_stitch_trace, btrace_clear_history): New.
508 (btrace_fetch): Read delta trace, return if replaying.
509 (btrace_clear): Move clear history code to btrace_clear_history.
510 (parse_xml_btrace): Throw an error if parsing failed.
511 * target.h (struct target_ops) <to_read_btrace>: Change parameters
512 and return type to allow error reporting.
513 (target_read_btrace): Change parameters and return type to allow
515 * target.c (target_read_btrace): Update.
516 * remote.c (remote_read_btrace): Support delta reads. Pass
522 * record.h (record_btrace_frame_unwind)
523 (record_btrace_tailcall_frame_unwind): New declarations.
524 * dwarf2-frame: Include record.h
525 (dwarf2_frame_cfa): Throw an error for btrace frames.
526 * record-btrace.c: Include hashtab.h.
527 (btrace_get_bfun_name): New.
528 (btrace_call_history): Call btrace_get_bfun_name.
529 (struct btrace_frame_cache): New.
531 (bfcache_hash, bfcache_eq, bfcache_new): New.
532 (btrace_get_frame_function): New.
533 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
534 (record_btrace_frame_this_id): Compute own id.
535 (record_btrace_frame_prev_register): Provide PC, throw_error
536 for all other registers.
537 (record_btrace_frame_sniffer): Detect btrace frames.
538 (record_btrace_tailcall_frame_sniffer): New.
539 (record_btrace_frame_dealloc_cache): New.
540 (record_btrace_frame_unwind): Add new functions.
541 (record_btrace_tailcall_frame_unwind): New.
542 (_initialize_record_btrace): Allocate cache.
543 * btrace.c (btrace_clear): Call reinit_frame_cache.
548 * record-btrace.c (record_btrace_set_replay)
549 (record_btrace_goto_begin, record_btrace_goto_end)
550 (record_btrace_goto): New.
551 (init_record_btrace_ops): Initialize them.
556 * record-btrace.c (record_btrace_find_new_threads)
557 (record_btrace_thread_alive): New.
558 (init_record_btrace_ops): Initialize to_find_new_threads and
563 * record-btrace.c (record_btrace_resume): New.
564 (record_btrace_wait): New.
565 (init_record_btrace_ops): Initialize to_wait and to_resume.
569 * record-btrace.c (record_btrace_xfer_partial)
570 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
571 (record_btrace_allow_memory_access): New.
572 (init_record_btrace_ops): Initialize new methods.
573 * target.c (raw_memory_xfer_partial): Bail out if target reports
574 that this memory is not available.
578 * target.h (target_ops) <to_insert_breakpoint>
579 <to_remove_breakpoint>: Add target_ops parameter.
580 (forward_target_insert_breakpoint): New.
581 (forward_target_remove_breakpoint): New.
582 (memory_remove_breakpoint, memory_insert_breakpoint):
583 Add target_ops parameter.
584 * target.c (target_insert_breakpoint): Split into this and ...
585 (forward_target_insert_breakpoint): ... this.
586 (target_remove_breakpoint): Split into this and ...
587 (forward_target_remove_breakpoint): ... this.
588 (debug_to_insert_breakpoint): Add target_ops parameter.
589 Call forward_target_insert_breakpoint.
590 (debug_to_remove_breakpoint): Add target_ops parameter.
591 Call forward_target_remove_breakpoint.
592 (update_current_target): Do not inherit or default to_insert_breakpoint
593 and to_remove_breakpoint.
594 * corelow.c (ignore): Add target_ops parameter.
595 * exec.c (ignore): Add target_ops parameter.
596 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
597 Add target_ops parameter.
598 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
599 Add target_ops parameter.
600 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
601 Add target_ops parameter.
602 * record-full.c (record_full_beneath_to_insert_breakpoint)
603 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
604 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
605 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
606 (record_full_core_remove_breakpoint): Add target_ops parameter.
608 (record_full_beneath_to_insert_breakpoint_ops)
609 (record_full_beneath_to_remove_breakpoint_ops)
610 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
611 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
612 tmp_to_remove_breakpoint_ops,
613 record_full_beneath_to_insert_breakpoint_ops, and
614 record_full_beneath_to_remove_breakpoint_ops.
615 * remote-m32r-sdi.c (m32r_insert_breakpoint)
616 (m32r_remove_breakpoint): Add target_ops parameter.
617 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
618 Add target_ops parameter.
619 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
620 Add target_ops parameter.
625 * record-btrace.c: Include frame-unwind.h.
626 (record_btrace_frame_unwind_stop_reason)
627 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
628 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
630 (init_record_btrace_ops): Install it.
634 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
639 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
644 * frame-unwind.c: Include target.h.
645 (frame_unwind_try_unwinder): New function with code from ...
646 (frame_unwind_find_by_frame): ... here. New variable
647 unwinder_from_target, call also target_get_unwinder)
648 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
649 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
650 * target.h (struct target_ops): New fields to_get_unwinder and
651 to_get_tailcall_unwinder.
652 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
656 * record-btrace.c (record_btrace_fetch_registers)
657 (record_btrace_store_registers)
658 (record_btrace_to_prepare_to_store): New.
659 (init_record_btrace_ops): Add the above.
663 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
664 * target.h (struct target_ops) <to_prepare_to_store>: Add
666 (target_prepare_to_store): Add argument.
667 * target.c (debug_to_prepare_to_store): Add argument.
668 (update_current_target): Update.
669 * remote.c (remote_prepare_to_store): Add 'self' argument.
670 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
671 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
672 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
673 * record-full.c (record_full_core_prepare_to_store): Add 'self'
675 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
676 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
677 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
678 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
679 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
683 * btrace.h (replay) <replay>: New.
684 (btrace_is_replaying): New.
685 * btrace.c (btrace_clear): Free replay iterator.
686 (btrace_is_replaying): New.
687 * record-btrace.c (record_btrace_is_replaying): New.
688 (record_btrace_info): Print insn number if replaying.
689 (record_btrace_insn_history): Start at replay position.
690 (record_btrace_call_history): Start at replay position.
691 (init_record_btrace_ops): Init to_record_is_replaying.
695 * record-btrace.c (record_btrace_insn_history_range): Include
697 (record_btrace_insn_history_from): Adjust range.
698 (record_btrace_call_history_range): Include
700 (record_btrace_call_history_from): Adjust range.
701 * NEWS: Announce changes.
705 * record.h (enum record_print_flag)
706 <record_print_indent_calls>: New.
707 * record.c (get_call_history_modifiers): Recognize /c modifier.
708 (_initialize_record): Document /c modifier.
709 * record-btrace.c (btrace_call_history): Add btinfo parameter.
710 Reorder fields. Optionally indent the function name. Update
712 * NEWS: Announce changes.
716 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
720 * btrace.c (ftrace_new_function): Start counting at one.
721 * record-btrace.c (record_btrace_info): Adjust number of calls
727 * record-btrace.c (btrace_call_history_insn_range): Print
728 insn range as [begin, end].
732 * btrace.h (struct btrace_func_link): New.
733 (enum btrace_function_flag): New.
734 (struct btrace_inst): Rename to ...
735 (struct btrace_insn): ...this. Update all users.
736 (struct btrace_func) <ibegin, iend>: Remove.
737 (struct btrace_func_link): New.
738 (struct btrace_func): Rename to ...
739 (struct btrace_function): ...this. Update all users.
740 (struct btrace_function) <segment, flow, up, insn, insn_offset)
741 (number, level, flags>: New.
742 (struct btrace_insn_iterator): Rename to ...
743 (struct btrace_insn_history): ...this.
745 (struct btrace_insn_iterator, btrace_call_iterator): New.
746 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
747 (struct btrace_target_info) <begin, end, level>
748 <insn_history, call_history>: New.
749 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
750 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
751 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
752 (btrace_call_number, btrace_call_begin, btrace_call_end)
753 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
754 (btrace_find_function_by_number, btrace_set_insn_history)
755 (btrace_set_call_history): New.
756 * btrace.c (btrace_init_insn_iterator)
757 (btrace_init_func_iterator, compute_itrace): Remove.
758 (ftrace_print_function_name, ftrace_print_filename)
759 (ftrace_skip_file): Change
761 (ftrace_init_func): Remove.
762 (ftrace_debug): Use new btrace_function fields.
763 (ftrace_function_switched): Also consider gaining and
764 losing symbol information).
765 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
766 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
767 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
769 (ftrace_new_function): Move. Remove debug print.
770 (ftrace_update_lines, ftrace_update_insns): New.
771 (ftrace_update_function): Check for call, ret, and jump.
772 (compute_ftrace): Renamed to ...
773 (btrace_compute_ftrace): ...this. Rewritten to compute call
775 (btrace_fetch, btrace_clear): Updated.
776 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
777 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
778 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
779 (btrace_call_number, btrace_call_begin, btrace_call_end)
780 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
781 (btrace_find_function_by_number, btrace_set_insn_history)
782 (btrace_set_call_history): New.
783 * record-btrace.c (require_btrace): Use new btrace thread
785 (record_btrace_info, btrace_insn_history)
786 (record_btrace_insn_history, record_btrace_insn_history_range):
787 Use new btrace thread info fields and new iterator.
788 (btrace_func_history_src_line): Rename to ...
789 (btrace_call_history_src_line): ...this. Use new btrace
791 (btrace_func_history): Rename to ...
792 (btrace_call_history): ...this. Use new btrace thread info
793 fields and new iterator.
794 (record_btrace_call_history, record_btrace_call_history_range):
795 Use new btrace thread info fields and new iterator.
799 * frame.h (frame_id_build_unavailable_stack_special): New.
800 * frame.c (frame_id_build_unavailable_stack_special): New.
804 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
805 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
806 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
808 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
809 (i386_insn_is_jump, i386_jmp_p): New.
810 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
811 insn_is_jump to gdbarch.
812 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
813 * gdbarch.h: Regenerated.
814 * gdbarch.c: Regenerated.
815 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
816 (default_insn_is_jump): New.
817 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
818 (default_insn_is_jump): New.
822 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
824 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
825 (btrace_read_type) <btrace_read_new>: Change to ...
826 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
830 * common/linux-btrace.c (linux_read_btrace): Free trace from
835 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
840 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
841 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
842 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
843 (set_objfile_main_name): New function.
844 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
845 language_of_main>: New fields.
846 (set_objfile_main_name): Declare.
847 * symtab.c (find_main_name): Loop over objfiles to find the main
849 (set_main_name): Now static.
850 (get_main_info): Add comment.
851 * symtab.h (set_main_name): Don't declare.
855 * symtab.c (main_progspace_key): New global.
856 (struct main_info): New.
857 (name_of_main, language_of_main): Remove.
858 (get_main_info, main_info_cleanup): New function.
859 (set_main_name, main_name, main_language): Use get_main_info.
860 (_initialize_symtab): Initialize main_progspace_key.
864 * dbxread.c (process_one_symbol): Update.
865 * dwarf2read.c (read_partial_die): Update.
866 * symfile.c (set_initial_language): Call main_language.
867 * symtab.c (language_of_main): Now static.
868 (set_main_name): Add 'lang' parameter.
869 (find_main_name): Update.
870 (main_language): New function.
871 (symtab_observer_executable_changed): Update.
872 * symtab.h (set_main_name): Update.
873 (language_of_main): Remove.
874 (main_language): Declare.
878 * symfile.c (init_entry_point_info): Use new "initialized" field.
880 * objfiles.h (struct entry_point) <initialized>: New field.
881 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
882 (struct objfile) <ei>: ...here. Remove.
883 * objfiles.c (entry_point_address_query): Update.
887 * objfiles.c (entry_point_address_query): Relocate entry point
889 (objfile_relocate1): Do not relocate entry point address.
890 * objfiles.h (struct entry_info) <entry_point>: Update comment.
891 <the_bfd_section_index>: New field.
892 * symfile.c (init_entry_point_info): Find the entry point's
897 * solib-frv.c (enable_break): Use entry_point_address_query.
901 * NEWS: Add note on improved process record-replay on
906 * arm-tdep.c (enum arm_record_result): New enum.
907 (arm_record_unsupported_insn): New function.
908 (arm_record_coproc_data_proc): Removed.
909 (thumb2_record_ld_st_multiple): New function.
910 (thumb2_record_ld_st_dual_ex_tbb): New function.
911 (thumb2_record_data_proc_sreg_mimm): New function.
912 (thumb2_record_ps_dest_generic): New function.
913 (thumb2_record_branch_misc_cntrl): New function.
914 (thumb2_record_str_single_data): New function.
915 (thumb2_record_ld_mem_hints): New function.
916 (thumb2_record_ld_word): New function.
917 (thumb2_record_lmul_lmla_div): New function.
918 (thumb2_record_decode_insn_handler): New function.
919 (decode_insn): Add thumb32 instruction handlers.
923 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
924 (struct arm_linux_record_tdep): Declare.
925 (arm_canonicalize_syscall): New function.
926 (arm_all_but_pc_registers_record): New function.
927 (arm_linux_syscall_record): New function.
928 (arm_linux_init_abi): Add syscall recording constructs.
929 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
930 decoding. (arm_record_coproc_data_proc): Update arm syscall
932 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
933 <arm_syscall_record>: New field.
934 * configure.tgt (arm*-*-linux*): Add linux-record.o to
939 * arm-tdep.c (thumb_record_misc): Update to use sp as base
940 register for push instruction recording.
944 * arm-tdep.c (thumb_record_misc): Update to correct logical
945 error while recording ldm, ldmia and pop instructions.
949 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
953 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
954 (go32_resume, go32_fetch_registers, store_register)
955 (go32_store_registers, go32_prepare_to_store)
956 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
957 (go32_create_inferior, go32_can_run, go32_terminal_init)
958 (go32_terminal_inferior, go32_terminal_ours): Delete forward
963 * target.h (async_callback_ftype): New typedef.
964 (struct target_ops) <to_async>: Use it.
968 * python/py-value.c (get_field_type): Remove unnecessary curly
969 braces for single-statement if block.
973 * python/py-type.c (convert_field): Add missing empty line
978 * symfile.h (expand_symtabs_matching): Renamed from
979 expand_partial_symbol_names. Update prototype.
980 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
981 * symfile.c (expand_symtabs_matching): Renamed from
982 expand_partial_symbol_names. New args file_matcher, kind.
983 Rename arg fun to symbol_matcher.
984 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
985 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
986 ada_expand_partial_symbol_name.
987 (ada_make_symbol_completion_list): Update to call
988 expand_symtabs_matching.
989 (ada_add_global_exceptions): Call expand_symtabs_matching.
990 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
991 call map_symbol_filenames.
992 * symtab.c (sources_info): Update to call map_symbol_filenames.
993 (search_symbols): Call expand_symtabs_matching.
994 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
995 (default_make_symbol_completion_list_break_on): Update to call
996 expand_symtabs_matching.
997 (make_source_files_completion_list): Update to call
998 map_symbol_filenames.
1002 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
1003 (expand_symtabs_symbol_matcher_ftype): New typedef.
1004 (quick_symbol_functions.expand_symtabs_matching): Update to use.
1005 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1006 * symfile.c (expand_partial_symbol_names): Update to use
1007 expand_symtabs_symbol_matcher_ftype.
1008 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
1009 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1010 Arg name_matcher renamed to symbol_matcher.
1011 * psymtab.c (recursively_search_psymtabs): Update to use
1012 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
1014 (expand_symtabs_matching_via_partial): Update to use
1015 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
1016 Arg name_matcher renamed to symbol_matcher.
1020 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
1021 (map_partial_symbol_filenames): Ditto.
1022 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
1023 (map_partial_symbol_filenames): Ditto.
1024 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
1025 (map_partial_symbol_filenames): Ditto.
1026 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
1027 (map_partial_symbol_filenames): Ditto.
1028 * symtab.c: Delete #include "psymtab.h".
1033 * infrun.c (use_displaced_stepping): Use find_record_target
1034 instead of RECORD_IS_USED.
1035 (adjust_pc_after_break): Use record_full_is_used instead of
1037 * record-btrace.c (record_btrace_open): Call record_preopen
1038 instead of checking RECORD_IS_USED.
1039 * record-full.c (record_full_shortname)
1040 (record_full_core_shortname): New globals.
1041 (record_full_is_used): New function.
1042 (find_full_open): Call record_preopen instead of checking
1044 (init_record_full_ops): Set the target's shortname to
1045 record_full_shortname.
1046 (init_record_full_core_ops): Set the target's shortname to
1047 record_full_core_shortname.
1048 * record-full.h (record_full_is_used): Declare.
1049 * record.c (find_record_target): Make extern.
1050 (record_preopen): New function.
1051 * record.h (RECORD_IS_USED): Delete macro.
1052 (find_record_target, record_preopen): Declare functions.
1056 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
1057 'len''s type to ULONGEST.
1058 (core_xfer_shared_libraries_aix): Likewise.
1059 * gdbarch.c, gdbarch.h: Regenerated.
1060 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
1061 Change type of 'len' to ULONGEST.
1062 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1063 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1067 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
1068 type of 'len' to ULONGEST.
1069 (linux_xfer_osdata_processgroups): Likewise.
1070 (linux_xfer_osdata_threads): Likewise.
1071 (linux_xfer_osdata_fds): Likewise.
1072 (linux_xfer_osdata_isockets): Likewise.
1073 (linux_xfer_osdata_shm): Likewise.
1074 (linux_xfer_osdata_sem): Likewise.
1075 (linux_xfer_osdata_msg): Likewise.
1076 (linux_common_xfer_osdata): Likewise.
1077 (struct osdata_type) <getter>: Likewise.
1078 * common/linux-osdata.h (linux_common_xfer_osdata): Update
1083 * target.h (target_xfer_partial_ftype): Update.
1084 (struct target_ops) <to_xfer_partial>: Change 'len' type to
1086 * aix-thread.c (aix_thread_xfer_partial): Change type of
1087 argument 'len' to ULONGEST.
1088 * auxv.c (procfs_xfer_auxv): Likewise.
1089 (ld_so_xfer_auxv): Likewise.
1090 (memory_xfer_auxv): Likewise.
1091 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1092 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1093 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1094 * corelow.c (core_xfer_partial): Likewise.
1095 * ctf.c (ctf_xfer_partial): Likewise.
1096 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
1098 (darwin_read_dyld_info): Likewise.
1099 (darwin_xfer_partial): Likewise.
1100 * exec.c (section_table_xfer_memory_partial): Likewise.
1101 (exec_xfer_partial): Likewise.
1102 * exec.h (section_table_xfer_memory_partial): Update
1104 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
1105 instead of plongest.
1106 (gnu_xfer_partial): Likewise.
1107 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
1108 (ia64_hpux_xfer_solib_got): Likewise.
1109 (ia64_hpux_xfer_partial): Likewise.
1110 * ia64-linux-nat.c (ia64_linux_xfer_partial):
1111 * inf-ptrace.c (inf_ptrace_xfer_partial):
1112 * inf-ttrace.c (inf_ttrace_xfer_partial):
1113 * linux-nat.c (linux_xfer_siginfo): Likewise.
1114 (linux_nat_xfer_partial): Likewise.
1115 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
1116 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
1117 * monitor.c (monitor_xfer_memory): Likewise.
1118 (monitor_xfer_partial): Likewise.
1119 * procfs.c (procfs_xfer_partial): Likewise.
1120 * record-full.c (record_full_xfer_partial): Likewise.
1121 (record_full_core_xfer_partial): Likewise.
1122 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
1123 instead of plongest.
1124 (gdbsim_xfer_partial): Likewise.
1125 * remote.c (remote_xfer_partial): Likewise.
1126 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1127 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1129 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1130 (rs6000_xfer_shared_libraries): Likewise.
1131 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1132 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1133 (sparc_xfer_partial): Likewise.
1134 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1135 (spu_xfer_partial): Likewise.
1136 * spu-multiarch.c (spu_xfer_partial): Likewise.
1137 * target.c (target_read_live_memory): Likewise.
1138 (memory_xfer_live_readonly_partial): Likewise.
1139 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
1140 (target_xfer_partial, default_xfer_partial): Likewise.
1141 (current_xfer_partial): Likewise.
1142 * tracepoint.c (tfile_xfer_partial): Likewise.
1143 * windows-nat.c (windows_xfer_memory): Likewise. Call
1144 pulongest instead of plongest.
1145 (windows_xfer_partial): Likewise.
1146 (windows_xfer_shared_libraries): Likewise.
1150 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
1151 target_xfer_partial_ftype.
1157 * valops.c (value_struct_elt_bitpos): New function
1158 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
1159 object to 'None' if the field name is an empty string ("").
1160 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
1161 attribute to look for a field when 'name' is 'None'.
1162 (get_field_type): New function
1167 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
1168 (try_open_dwop_file): Ditto.
1169 * gdb_bfd.c: #include "vec.h".
1170 (bfdp): New typedef.
1171 (struct gdb_bfd_data): New member included_bfds.
1172 (gdb_bfd_unref): Unref all included bfds.
1173 (gdb_bfd_record_inclusion): New function.
1174 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
1178 * gdbcore.h (deprecated_core_resize_section_table): Remove.
1182 * defs.h (use_windows): Remove.
1183 * gdb.c (main): Update.
1184 * main.c (captured_main, gdb_main): Update.
1185 * main.h (struct captured_main_args) <use_windows>: Remove.
1186 * top.c (use_windows): Remove.
1190 * defs.h (deprecated_flush_hook): Remove.
1195 * linux-thread-db.c (try_thread_db_load): Add parameter
1196 check_auto_load_safe. Move here the file_is_auto_load_safe call.
1197 (try_thread_db_load_from_pdir_1): Move it there from here.
1198 (try_thread_db_load_from_sdir): Update caller.
1199 (try_thread_db_load_from_dir): Move it there from here.
1203 * regformats/regdat.sh: Always rewrite the register file.
1207 * Makefile.in (CHECK_HEADERS): New variable.
1208 (check-headers:): New rule.
1212 * cli/cli-setshow.c (do_set_command): Update.
1213 * defs.h (deprecated_set_hook): Remove.
1214 * top.c (deprecated_set_hook): Remove.
1218 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
1219 the tracepoint if the PC is a pseudo-register.
1223 * defs.h (XCALLOC): Remove.
1224 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
1225 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
1226 * dwarf2loc.c (allocate_piece_closure): Likewise.
1227 * elfread.c (elf_symfile_segments): Likewise.
1228 (elf_symfile_segments): Likewise.
1229 * gdbtypes.c (copy_type_recursive): Likewise.
1230 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
1231 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
1232 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
1234 * mt-tdep.c (mt_gdbarch_init): Likewise.
1235 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
1237 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
1238 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
1239 * registry.c (registry_alloc_data): Likewise.
1240 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
1241 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1242 * serial.c (serial_fdopen_ops): Likewise.
1243 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
1245 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
1246 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
1251 * defs.h (XMALLOC): Remove.
1252 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
1253 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1254 * cli-out.c (struct ui_out *): Likewise.
1255 * cli/cli-dump.c (add_dump_command): Likewise.
1256 (add_dump_command): Likewise.
1257 * complaints.c (get_complaints): Likewise.
1258 (find_complaint): Likewise.
1259 * dwarf2-frame.c (execute_cfa_program): Likewise.
1260 * dwarf2read.c (abbrev_table_read_table): Likewise.
1261 * gdbarch.sh: Likewise.
1262 * gdbarch.c: Rebuild.
1263 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
1264 * interps.c (interp_new): Likewise.
1265 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
1266 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1267 * mi/mi-console.c (mi_console_file_new): Likewise.
1268 * mi/mi-interp.c (mi_interpreter_init): Likewise.
1269 * mi/mi-out.c (mi_out_new): Likewise.
1270 * mi/mi-parse.c (mi_parse): Likewise.
1271 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
1272 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1273 * observer.c (xalloc_observer_list_node): Likewise.
1274 * regcache.c (regcache_xmalloc_1): Likewise.
1275 * reggroups.c (reggroup_new): Likewise.
1276 (_initialize_reggroup): Likewise.
1277 * registry.c (register_data_with_cleanup): Likewise.
1278 * remote.c (remote_notif_stop_alloc_reply): Likewise.
1279 * ser-base.c (serial_ttystate): Likewise.
1280 * ser-mingw.c (make_pipe_state): Likewise.
1281 * ser-pipe.c (pipe_open): Likewise.
1282 * serial.c (serial_open): Likewise.
1283 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1284 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1285 (tui_alloc_win_info): Likewise.
1286 (tui_add_content_elements): Likewise.
1287 * tui/tui-file.c (tui_file_new): Likewise.
1288 * tui/tui-out.c (tui_out_new): Likewise.
1289 * ui-file.c (mem_file_new): Likewise.
1290 * ui-out.c (push_level): Likewise.
1291 (make_cleanup_ui_out_end): Likewise.
1292 (append_header_to_list): Likewise.
1293 (ui_out_new): Likewise.
1294 * user-regs.c (user_reg_add_builtin): Likewise.
1298 * defs.h (XZALLOC): Remove.
1299 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
1300 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1301 (get_ada_tasks_inferior_data): Likewise.
1302 * auto-load.c (get_auto_load_pspace_data): Likewise.
1303 * auxv.c (get_auxv_inferior_data): Likewise.
1304 * bfd-target.c (target_bfd_reopen): Likewise.
1305 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
1306 (deprecated_insert_raw_breakpoint): Likewise.
1307 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
1308 * corelow.c (core_open): Likewise.
1309 * darwin-nat.c (darwin_check_new_threads): Likewise.
1310 (darwin_attach_pid): Likewise.
1311 * dummy-frame.c (dummy_frame_push): Likewise.
1312 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1313 * dwarf2loc.c (allocate_piece_closure): Likewise.
1314 * elfread.c (elf_symfile_segments): Likewise.
1315 * eval.c (ptrmath_type_p): Likewise.
1316 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
1317 * gdbtypes.c (alloc_type_arch): Likewise.
1318 (alloc_type_instance): Likewise.
1319 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1320 * inf-child.c (inf_child_can_use_agent): Likewise.
1321 * inflow.c (get_inflow_inferior_data): Likewise.
1322 * infrun.c (save_infcall_suspend_state): Likewise.
1323 * jit.c (jit_reader_load): Likewise.
1324 (get_jit_objfile_data): Likewise.
1325 (get_jit_program_space_data): Likewise.
1326 (jit_object_open_impl): Likewise.
1327 (jit_symtab_open_impl): Likewise.
1328 (jit_block_open_impl): Likewise.
1329 (jit_frame_sniffer): Likewise.
1330 * linux-fork.c (add_fork): Likewise.
1331 * maint.c (make_command_stats_cleanup): Likewise.
1332 * objfiles.c (get_objfile_pspace_data): Likewise.
1333 * opencl-lang.c (struct lval_closure): Likewise.
1334 * osdata.c (osdata_start_osdata): Likewise.
1335 * progspace.c (new_address_space): Likewise.
1336 (add_program_space): Likewise.
1337 * remote-sim.c (get_sim_inferior_data): Likewise.
1338 * sh-tdep.c (sh_gdbarch_init): Likewise.
1339 * skip.c (Ignore): Likewise.
1340 (skip_delete_command): Likewise.
1341 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1342 (library_list_start_library): Likewise.
1343 (solib_aix_current_sos): Likewise.
1344 * solib-darwin.c (get_darwin_info): Likewise.
1345 (darwin_current_sos): Likewise.
1346 * solib-dsbt.c (get_dsbt_info): Likewise.
1347 * solib-ia64-hpux.c (new_so_list): Likewise.
1348 (ia64_hpux_get_solib_linkage_addr): Likewise.
1349 * solib-spu.c (append_ocl_sos): Likewise.
1350 (spu_current_sos): Likewise.
1351 * solib-svr4.c (get_svr4_info): Likewise.
1352 (svr4_keep_data_in_core): Likewise.
1353 (library_list_start_library): Likewise.
1354 (svr4_default_sos): Likewise.
1355 (svr4_read_so_list): Likewise.
1356 * solib-target.c (library_list_start_library): Likewise.
1357 (solib_target_current_sos): Likewise.
1358 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
1359 * symfile-debug.c (install_symfile_debug_logging): Likewise.
1360 * symfile.c (default_symfile_segments): Likewise.
1361 * target-descriptions.c (tdesc_data_init): Likewise.
1362 (tdesc_create_reg): Likewise.
1363 (struct tdesc_type *): Likewise.
1364 (tdesc_create_vector): Likewise.
1365 (tdesc_set_struct_size): Likewise.
1366 (struct tdesc_type *): Likewise.
1367 (tdesc_free_feature): Likewise.
1368 (tdesc_create_feature): Likewise.
1369 * windows-nat.c (windows_add_thread): Likewise.
1370 (windows_make_so): Likewise.
1371 * xml-support.c (gdb_xml_body_text): Likewise.
1372 (gdb_xml_create_parser_and_cleanup): Likewise.
1373 (xml_process_xincludes): Likewise.
1374 * xml-syscall.c (allocate_syscalls_info): Likewise.
1375 (syscall_create_syscall_desc): Likewise.
1379 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
1380 function, with code from i386_stap_parse_special_token.
1381 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1382 (i386_stap_parse_special_token): Move code to the two functions
1389 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
1390 bp_err_string. Don't mark the location shlib_disabled if the
1391 error thrown wasn't a generic or memory error. Catch errors
1392 thrown while inserting breakpoints in overlayed code. Output
1393 error message of software breakpoints.
1394 * remote.c (remote_insert_breakpoint): If this breakpoint has
1395 target-side commands but this stub doesn't support Z0 packets,
1396 throw NOT_SUPPORTED_ERROR error.
1397 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
1398 * target.h (target_insert_breakpoint): Extend comment.
1399 (target_insert_hw_breakpoint): Add comment.
1403 * remote.c (remote_add_thread): Add threads silently if starting
1405 (remote_notice_new_inferior): If in all-stop, and starting up,
1406 don't call notice_new_inferior.
1407 (get_current_thread): New function, factored out from ...
1408 (add_current_inferior_and_thread): ... this. Adjust.
1409 (remote_start_remote) <all-stop>: Fetch the thread list. If we
1410 found any thread, then select the remote's current thread as GDB's
1415 * NEWS: Create a new section for the next release branch.
1416 Rename the section of the current branch, now that it has
1421 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
1422 * version.in: Bump version to 7.7.50.DATE-cvs.
1426 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
1427 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
1428 (spu_xfer_partial): Cast 'buf' to 'const char *'.
1432 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
1433 return value of bfd_get_filename to symbol_file_add_from_bfd.
1438 * coff-pe-read.c (struct read_pe_section_data): Add index field.
1439 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
1440 to prim_record_mininal_symbol_and_info.
1441 (add_pe_forwarded_sym): Use known section number of forwarded symbol
1442 in call to prim_record_minimal_symbol_and_info.
1443 (read_pe_exported_syms): Set index field of section_data.
1447 * features/aarch64-core.xml (cpsr): Change to be 64bit.
1448 * features/aarch64.c: Regenerate.
1452 * target.c (return_null): Define.
1453 (update_current_target): Use it instead of return_zero for
1454 functions that return a pointer.
1458 * source.c (add_path): Fix check for duplicated paths in the previously
1463 * ada-lang.c: Remove duplicated include statements.
1464 * alphabsd-nat.c: Ditto.
1465 * amd64-darwin-tdep.c: Ditto.
1466 * amd64fbsd-nat.c: Ditto.
1467 * auto-load.c: Ditto.
1469 * breakpoint.c: Ditto.
1471 * fork-child.c: Ditto.
1472 * gdb_usleep.c: Ditto.
1473 * i386-darwin-tdep.c: Ditto.
1474 * i386fbsd-nat.c: Ditto.
1476 * inferior.c: Ditto.
1478 * linux-nat.c: Ditto.
1479 * linux-tdep.c: Ditto.
1480 * m68kbsd-nat.c: Ditto.
1481 * m68klinux-nat.c: Ditto.
1482 * microblaze-tdep.c: Ditto.
1483 * mips-linux-tdep.c: Ditto.
1484 * mn10300-tdep.c: Ditto.
1485 * nto-tdep.c: Ditto.
1486 * opencl-lang.c: Ditto.
1488 * printcmd.c: Ditto.
1489 * regcache.c: Ditto.
1490 * remote-m32r-sdi.c: Ditto.
1494 * tilegx-linux-nat.c: Ditto.
1495 * tilegx-tdep.c: Ditto.
1496 * tracepoint.c: Ditto.
1498 * vaxbsd-nat.c: Ditto.
1499 * windows-nat.c: Ditto.
1500 * xtensa-tdep.c: Ditto.
1504 * spu-linux-nat.c (_initialize_spu_nat): Declare.
1509 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
1510 (pdc_write_regs): Likewise.
1511 (fetch_regs_kernel_thread): Likewise.
1512 (store_regs_kernel_thread): Likewise.
1516 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
1517 tagged type objects to their actual type.
1521 * ada-valprint.c (print_field_values): Add "language" parameter.
1522 Update calls to print_field_values and print_variant_part.
1523 Pass new parameter "language" in call to val_print instead
1524 of "current_language". Replace call to ada_val_print by call
1526 (print_variant_part): Add "language" parameter.
1527 (ada_val_print_struct_union): Update call to print_field_values.
1531 * ada-valprint.c (ui_memcpy): Delete.
1532 (ada_print_floating): Update documentation. Add empty line
1533 between between function documentation and implementation.
1534 Delete variable "buffer". Use ui_file_xstrdup in place of
1535 ui_file_put. Minor adjustments following this change.
1539 * ada-valprint.c (ada_val_print_string): New function,
1540 extracted from ada_val_print_array.
1541 (ada_val_print_array): Replace extracted code by call
1542 to ada_val_print_string followed by a return. Move
1543 "else" branch to the function's top block.
1547 * ada-valprint.c (ada_val_print_array): Move implementation
1548 down. Rename parameter "offset" and "val" into "offset_aligned"
1549 and "original_value" respectively. Add parameter "offset".
1553 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
1554 re-organizing the code. Change the "???" message printed
1555 when target type is a TYPE_CODE_UNDEF into
1556 "<ref to undefined type>".
1560 * ada-valprint.c (print_record): Delete, implementation inlined...
1561 (ada_val_print_struct_union): ... here. Remove call to
1562 ada_check_typedef in inlined implementation.
1566 * ada-valprint.c (ada_val_print_gnat_array): New function,
1567 extracted from ada_val_print_1;
1568 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
1569 (ada_val_print_flt, ada_val_print_struct_union)
1570 (ada_val_print_ref): Likewise.
1571 (ada_val_print_1): Delete variables i and elttype.
1572 Replace extracted-out code by call to corresponding
1577 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
1581 * ada-valprint.c (ada_val_print_1): Replace calls to
1582 ada_val_print_1 by calls to val_print.
1586 * ada-valprint.c (ada_val_print_1): Add parameter "language".
1587 Update calls to self accordingly. Replace calls to c_val_print
1588 by calls to val_print.
1592 * ada-valprint.c (print_record): Delete declaration.
1593 (adjust_type_signedness, ada_val_print_1): Likewise.
1594 (ada_val_print): Move function implementation down.
1595 (print_variant_part, print_field_values, print_record):
1596 Move function implementation up.
1600 * python/py-type.c (typy_get_name): New function.
1601 (type_object_getset): Add entry for attribute "name".
1602 * NEWS: Add entry mentioning this new attribute.
1606 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
1611 * gnu-nat.c (info_port_rights): Add qualifier const to
1616 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
1620 * gnu-nat.c (make_inf) Update declaration.
1621 (make_inf): Make it static.
1622 (inf_set_traced): Likewise.
1623 (inf_port_to_thread, inf_task_died_status): Likewise.
1627 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
1631 * gnu-nat.c (_initialize_gnu_nat): Declare.
1635 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
1637 (struct gdbarch_info) <byte_order>: Change type to
1639 <byte_order_for_code>: Likewise.
1640 * gdbarch.c, gdbarch.h: Regenerated.
1644 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
1648 * doublest.c (convert_doublest_to_floatformat): Use const, not
1650 * somread.c (som_symtab_read): Likewise.
1654 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
1655 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
1656 (gdb_bfd_fopen): Ditto.
1657 (gdb_bfd_openr): Ditto.
1658 (gdb_bfd_openw): Ditto.
1659 (gdb_bfd_openr_iovec): Ditto.
1660 (gdb_bfd_fdopenr): Ditto.
1661 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
1662 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
1664 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
1666 * symfile-mem.c (symbol_file_add_from_memory): Removed
1667 gdb_bfd_stash_filename.
1671 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
1676 Update year range in copyright notice of all files.
1680 * top.c (print_gdb_version): Set copyright year to 2014.
1684 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
1686 For older changes see ChangeLog-2013.
1692 version-control: never