aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-11-08 10:00:14 +0100
committerTom de Vries <tdevries@suse.de>2024-11-08 10:00:14 +0100
commit221d3ac93d820d8f6c4c57935b3d79936ea00aa8 (patch)
tree5d08a89ea32c5e74db6526de3b1e035dbbb1f844
parenta2578d52bd581c5a4208a6372b3c0b25916525ce (diff)
downloadbinutils-221d3ac93d820d8f6c4c57935b3d79936ea00aa8.zip
binutils-221d3ac93d820d8f6c4c57935b3d79936ea00aa8.tar.gz
binutils-221d3ac93d820d8f6c4c57935b3d79936ea00aa8.tar.bz2
[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>
-rw-r--r--gdb/alpha-tdep.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index fa042b2..301ab5c 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);