X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsparc64-nat.c;h=a810564ce05b066267b69ab0c76c42d0db210523;hb=2117c711ae07700adb57ea5b5ca61e4c32d7e3d2;hp=40a8b3b3904ac072735816498809daf0a98869f2;hpb=386c036baa78260724d16fb2672450b09b684dcb;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sparc64-nat.c b/gdb/sparc64-nat.c index 40a8b3b390..a810564ce0 100644 --- a/gdb/sparc64-nat.c +++ b/gdb/sparc64-nat.c @@ -1,12 +1,12 @@ /* Native-dependent code for GNU/Linux UltraSPARC. - Copyright 2003 Free Software Foundation, Inc. + Copyright (C) 2003-2014 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,9 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + along with this program. If not, see . */ #include "defs.h" #include "gdbarch.h" @@ -28,10 +26,10 @@ /* Determine whether `gregset_t' contains register REGNUM. */ static int -sparc64_gregset_supplies_p (int regnum) +sparc64_gregset_supplies_p (struct gdbarch *gdbarch, int regnum) { - if (gdbarch_ptr_bit (current_gdbarch) == 32) - return sparc32_gregset_supplies_p (regnum); + if (gdbarch_ptr_bit (gdbarch) == 32) + return sparc32_gregset_supplies_p (gdbarch, regnum); /* Integer registers. */ if ((regnum >= SPARC_G1_REGNUM && regnum <= SPARC_G7_REGNUM) @@ -54,10 +52,10 @@ sparc64_gregset_supplies_p (int regnum) /* Determine whether `fpregset_t' contains register REGNUM. */ static int -sparc64_fpregset_supplies_p (int regnum) +sparc64_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum) { - if (gdbarch_ptr_bit (current_gdbarch) == 32) - return sparc32_fpregset_supplies_p (regnum); + if (gdbarch_ptr_bit (gdbarch) == 32) + return sparc32_fpregset_supplies_p (gdbarch, regnum); /* Floating-point registers. */ if ((regnum >= SPARC_F0_REGNUM && regnum <= SPARC_F31_REGNUM)