diff options
Diffstat (limited to 'gdb/sparc-nat.c')
-rw-r--r-- | gdb/sparc-nat.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index b8d0bed..1219612 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for SPARC. - Copyright (C) 2003-2024 Free Software Foundation, Inc. + Copyright (C) 2003-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -154,9 +154,7 @@ sparc_fetch_inferior_registers (process_stratum_target *proc_target, if (regnum == SPARC_G0_REGNUM) { - gdb_byte zero[8] = { 0 }; - - regcache->raw_supply (SPARC_G0_REGNUM, &zero); + regcache->raw_supply_zeroed (SPARC_G0_REGNUM); return; } @@ -311,9 +309,7 @@ sparc_xfer_wcookie (enum target_object object, } -void _initialize_sparc_nat (); -void -_initialize_sparc_nat () +INIT_GDB_FILE (sparc_nat) { /* Default to using SunOS 4 register sets. */ if (sparc_gregmap == NULL) |