Hi guys, Here's the new version of the patch. I've made some modifications in order to "follow the pattern" already established in this portion of the code. As a side effect, the code is cleaner now since it has less #ifdef statements and uses control variables to decide if a ptrace flag is present or not. Thanks to Luis Machado for his valuable comments regarding this. Best regards, -- Sérgio Durigan Júnior Linux on Power Toolchain - Software Engineer Linux Technology Center - LTC IBM Brazil 2009-01-06 Sergio Durigan Junior * configure.ac: Checking the existence of PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETREGS64, PTRACE_SETREGS64, PTRACE_GETFPREGS and PTRACE_SETFPREGS in . * ppc-linux-nat.c (have_ptrace_getsetregs): New variable. (have_ptrace_getsetfpregs): Likewise. (fetch_all_gp_regs): New function. (fetch_gp_regs): New function. (fetch_all_fp_regs): Likewise. (fetch_fp_regs): New function. (fetch_ppc_registers): Using the new methods to fetch general- purpose and floating-pointer registers. (store_all_gp_regs): New function. (store_gp_regs): Likewise. (store_all_fp_regs): New function. (store_fp_regs): Likewise. (store_ppc_registers): Using the new methods to store general- purpose and floating-pointer registers.