From: Tom de Vries Date: Fri, 8 Nov 2024 09:00:14 +0000 (+0100) Subject: [gdb/tdep] Use raw_supply_zeroed for Alpha r31 reg X-Git-Tag: gdb-16-branchpoint~519 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=221d3ac93d820d8f6c4c57935b3d79936ea00aa8;p=thirdparty%2Fbinutils-gdb.git [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 --- diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index fa042b252b0..301ab5cd01d 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -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);