mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
[gdb/tdep] Use raw_supply_zeroed for Alpha r31 reg
Use reg_buffer::raw_supply_zeroed for Alpha register r31. Tested by rebuilding on x86_64-linux. Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
a2578d52bd
commit
221d3ac93d
@ -1480,11 +1480,7 @@ alpha_supply_int_regs (struct regcache *regcache, int regno,
|
||||
regcache->raw_supply (i, regs + i * 8);
|
||||
|
||||
if (regno == ALPHA_ZERO_REGNUM || regno == -1)
|
||||
{
|
||||
const gdb_byte zero[8] = { 0 };
|
||||
|
||||
regcache->raw_supply (ALPHA_ZERO_REGNUM, zero);
|
||||
}
|
||||
regcache->raw_supply_zeroed (ALPHA_ZERO_REGNUM);
|
||||
|
||||
if (regno == ALPHA_PC_REGNUM || regno == -1)
|
||||
regcache->raw_supply (ALPHA_PC_REGNUM, pc);
|
||||
|
Loading…
Reference in New Issue
Block a user