mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 03:48:11 +08:00
2007-05-31 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by gdbarch_cannot_fetch_register. * alpha-nat.c (fetch_osf_core_registers): Likewise. * hppa-linux-nat.c (fetch_register): Likewise. * inf-ptrace.c (inf_ptrace_fetch_register): Likewise. * m68klinux-nat.c (fetch_register): Likewise. * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Likewise. * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by gdbarch_cannot_store_register. * hppa-linux-nat.c (store_register): Likewise. * inf-ptrace.c (inf_ptrace_store_register): Likewise. * regcache.c (regcache_raw_write): Likewise. * m68klinux-nat.c (store_register): Likewise. * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise. * gdbarch.c, gdbarch.h: Regenerate.
This commit is contained in:
@ -123,7 +123,7 @@ fetch_register (struct regcache *regcache, int regno)
|
||||
char buf[MAX_REGISTER_SIZE];
|
||||
int tid;
|
||||
|
||||
if (CANNOT_FETCH_REGISTER (regno))
|
||||
if (gdbarch_cannot_fetch_register (current_gdbarch, regno))
|
||||
{
|
||||
memset (buf, '\0', register_size (current_gdbarch, regno)); /* Supply zeroes */
|
||||
regcache_raw_supply (regcache, regno, buf);
|
||||
@ -185,10 +185,8 @@ store_register (const struct regcache *regcache, int regno)
|
||||
int tid;
|
||||
char buf[MAX_REGISTER_SIZE];
|
||||
|
||||
if (CANNOT_STORE_REGISTER (regno))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (gdbarch_cannot_store_register (current_gdbarch, regno))
|
||||
return;
|
||||
|
||||
/* Overload thread id onto process id */
|
||||
tid = TIDGET (inferior_ptid);
|
||||
|
Reference in New Issue
Block a user