[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:
Tom de Vries 2024-11-08 10:00:14 +01:00
parent a2578d52bd
commit 221d3ac93d

View File

@ -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);