This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] ppc-linux-nat.c AltiVec regs ptrace


On Feb 21,  4:25pm, Elena Zannoni wrote:

> Ok, here is the patch again [(N+1)th time!:-)]
[...]
> Note the GNU/Linux change freebie!

Cool!

> 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
> 
> 	* ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
> 	(have_ptrace_getvrregs): Define for run time checks.
> 	(fetch_register, store_register): Fetch/store altivec register
> 	when needed.
> 	(fetch_altivec_register, store_altivec-register): New functions.

Nit: Make that store_altivec_register.  (Change hyphen to underscore.)

> 	(supply_vrregset, fill_vrregset): New functions.
> 	(fetch_altivec_registers, store_altivec_registers): New functions.
> 	(fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
> 	registers as well.
> 	Use GNU/Linux where applicable.

Looks good otherwise.  Check it in!

Thanks,

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]