/* Target-dependent code for NetBSD/hppa
- Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2008-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,
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., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
#include "osabi.h"
#include "trad-frame.h"
#include "tramp-frame.h"
-#include "gdb_assert.h"
-#include "gdb_string.h"
-
#include "hppa-tdep.h"
#include "hppabsd-tdep.h"
REGCACHE. If REGNUM is -1, do this for all registers in REGSET. */
static void
-hppanbsd_supply_gregset (const struct regset *regset, struct regcache *regcache,
- int regnum, const void *gregs, size_t len)
+hppanbsd_supply_gregset (const struct regset *regset,
+ struct regcache *regcache,
+ int regnum, const void *gregs, size_t len)
{
const gdb_byte *regs = gregs;
- size_t offset;
int i;
gdb_assert (len >= HPPANBSD_SIZEOF_GREGS);
/* NetBSD/hppa register set. */
-static struct regset hppanbsd_gregset =
+static const struct regset hppanbsd_gregset =
{
NULL,
hppanbsd_supply_gregset