2007-10-08 Markus Deuling <deuling@de.ibm.com>

* alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
	gdbarch.
	* alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
	(alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
	(alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
	get_frame_arch to get at the current architecture by regcache or by
	frame, respectively.
	* alpha-nat.c (fetch_osf_core_registers): Likewise.
This commit is contained in:
Ulrich Weigand
2007-10-08 12:47:09 +00:00
parent ad010def89
commit ec7cc0e816
4 changed files with 26 additions and 13 deletions

View File

@@ -49,6 +49,7 @@ fetch_osf_core_registers (struct regcache *regcache,
char *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR reg_addr)
{
struct gdbarch *gdbarch = get_regcache_arch (regcache);
int regno;
int addr;
int bad_reg = -1;
@@ -87,7 +88,7 @@ fetch_osf_core_registers (struct regcache *regcache,
for (regno = 0; regno < ALPHA_NUM_REGS; regno++)
{
if (gdbarch_cannot_fetch_register (current_gdbarch, regno))
if (gdbarch_cannot_fetch_register (gdbarch, regno))
{
regcache_raw_supply (regcache, regno, NULL);
continue;
@@ -112,7 +113,7 @@ fetch_osf_core_registers (struct regcache *regcache,
if (bad_reg >= 0)
{
error (_("Register %s not found in core file."),
gdbarch_register_name (current_gdbarch, bad_reg));
gdbarch_register_name (gdbarch, bad_reg));
}
}