aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc64-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-21Add missing comments in rs6000-tdep.c, ppc64-tdep.c and ppc-linux-tdep.c.Wei-cheng Wang1-1/+4
gdb/ChangeLog: * ppc-linux-tdep.c (ppc_skip_trampoline_code, ppc_canonicalize_syscall, ppc_linux_syscall_record, ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. * rs6000-tdep.c (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, ppc_process_record_op19, ppc_process_record_op31, ppc_process_record_op59, ppc_process_record_op60, ppc_process_record_op63): Likewise.
2015-01-17Skip-trampoline for PowerPC reverse-stepping.Wei-cheng Wang1-28/+60
2015-01-01Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker1-1/+1
gdb/ChangeLog: Update year range in copyright notice of all files.
2014-06-03Support fusion for ELFv2 stubsAlan Modra1-2/+29
Power8 fuses addis,addi and addis,ld sequences when the target of the addis is the same as the addi/ld. Thus addis r12,r2,xxx@ha addi r12,r12,xxx@l / ld r12,xxx@l(r12) is faster than addis r11,r2,xxx@ha addi r12,r11,xxx@l / ld r12,xxx@l(r11) So use the form that allows fusion in plt call and branch stubs. bfd/ * elf64-ppc.c (ADDIS_R12_R2): Define. (build_plt_stub): Support fusion on ELFv2 stub. (ppc_build_one_stub): Likewise for plt branch stubs. gold/ * powerpc.cc (addis_12_2): Define. (Stub_table::do_write): Support fusion on ELFv2 stubs. ld/testsuite/ * ld-powerpc/elfv2exe.d: Update for changed plt call stubs. gdb/ * ppc64-tdep.c (ppc64_standard_linkage8): New. (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2014-01-28Fix typo in ppc64_standard_linkage7Ulrich Weigand1-1/+1
The ppc64_standard_linkage7 pattern added by Alan's recent patch: https://sourceware.org/ml/gdb-patches/2013-11/msg00274.html contains a typo: the ELFv2 TOC slot offset is 24, not 40. This was correct in the comment, but not the actual code. ChangeLog: * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2014-01-01Update Copyright year range in all files maintained by GDB.Joel Brobecker1-1/+1
2013-11-15PowerPC64 ELFv2 trampoline matchAlan Modra1-28/+173
ELFv2 needs different plt call stubs to ELFv1, register usage differs too. When I added these to ld I changed register usage in the ELFv1 stubs as well, simplifying the linker code and (perhaps) future maintenance. All well and good, but this means gdb needs to cope with more stub variants. This patch also handles skipping over addis/addi setting up r2 in ELFv2 global entry code. We want breakpoints to be set past this point to catch calls via the local entry point. * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from.. (ppc64_desc_entry_point): ..this. Update comments here and at call points. (ppc64_standard_linkage1, ppc64_standard_linkage2, ppc64_standard_linkage3): Update comments. (ppc64_standard_linkage4, ppc64_standard_linkage5, (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn patterns. (ppc64_standard_linkage4_target): New function. (ppc64_skip_trampoline_code): Skip ELFv2 patterns too. * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct nop match. Fix comment wrap.
2013-07-17 * nto-tdep.c (nto_relocate_section_addresses): Update,Doug Evans1-1/+2
target_section.bfd deleted. * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto. * s390-tdep.c (s390_load): Ditto. * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2013-06-04 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.Alan Modra1-56/+86
* rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian. (ppc_insns_match_pattern): Add frame param. Avoid multiple target mem reads on optional insns. * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update ppc_insns_match_pattern calls. * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3): Add match for power7 thread safety insns, and new order of std 2,40(1) insn. Correct code shown for _dl_runtime_resolve invocation in comment, and update rest of comment. (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): Delete. (ppc64_standard_linkage2_target): Update insn offsets. (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer stubs first. Update calls.
2013-02-22 * elfread.c (elf_symtab_read): Do not use udata.p here to findAlan Modra1-0/+15
symbol size. * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function. * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare. * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above. * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2013-02-01Add missing file from the previous commit.Andreas Tobler1-0/+363