]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/tdep] Use raw_supply_zeroed for Alpha r31 reg
authorTom de Vries <tdevries@suse.de>
Fri, 8 Nov 2024 09:00:14 +0000 (10:00 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 8 Nov 2024 09:00:14 +0000 (10:00 +0100)
Use reg_buffer::raw_supply_zeroed for Alpha register r31.

Tested by rebuilding on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/alpha-tdep.c

index fa042b252b03253c78be76c30fedb1eeff485eed..301ab5cd01db63a7482cd68f92b3114b6434a77a 100644 (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);