* linux-low.h (struct linux_target_ops): Replace left_pad_xfer field

by collect_ptrace_register and supply_ptrace_register hooks.
	* linux-low.c (fetch_register): Use supply_ptrace_register callback
	instead of checking for the_low_target.left_pad_xfer.
	(usr_store_inferior_registers): Use collect_ptrace_register callback
	instead of checking for the_low_target.left_pad_xfer.

	* linux-s390-low.c (s390_collect_ptrace_register): New function.
	(s390_supply_ptrace_register): Likewise.
	(s390_fill_gregset): Call s390_collect_ptrace_register.
	(the_low_target): Update.

	* linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
	(ppc_supply_ptrace_register): Likewise.
	(the_low_target): Update.

	* linux-i386-low.c (the_low_target): Update.
	* linux-x86-64-low.c (the_low_target): Update.
This commit is contained in:
Ulrich Weigand
2008-02-27 03:33:07 +00:00
parent d61ddec435
commit ee1a7ae440
7 changed files with 104 additions and 15 deletions

View File

@@ -205,6 +205,7 @@ struct linux_target_ops the_low_target = {
NULL,
NULL,
NULL,
0,
NULL,
NULL,
"i386"
};