GDB (xrefs)
/tmp/gdb-8.1/gdb/sparc64-nat.c
Go to the documentation of this file.
1 /* Native-dependent code for GNU/Linux UltraSPARC.
2 
3  Copyright (C) 2003-2018 Free Software Foundation, Inc.
4 
5  This file is part of GDB.
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 #include "defs.h"
21 #include "gdbarch.h"
22 
23 #include "sparc64-tdep.h"
24 #include "sparc-nat.h"
25 
26 /* Determine whether `gregset_t' contains register REGNUM. */
27 
28 static int
30 {
31  if (gdbarch_ptr_bit (gdbarch) == 32)
33 
34  /* Integer registers. */
39  return 1;
40 
41  /* Control registers. */
47  return 1;
48 
49  return 0;
50 }
51 
52 /* Determine whether `fpregset_t' contains register REGNUM. */
53 
54 static int
56 {
57  if (gdbarch_ptr_bit (gdbarch) == 32)
59 
60  /* Floating-point registers. */
63  return 1;
64 
65  /* Control registers. */
67  return 1;
68 
69  return 0;
70 }
71 
72 void
74 {
81 }
int sparc32_gregset_supplies_p(struct gdbarch *gdbarch, int regnum)
Definition: sparc-nat.c:98
void sparc64_collect_fpregset(const struct sparc_fpregmap *fpregmap, const struct regcache *regcache, int regnum, void *fpregs)
int gdbarch_ptr_bit(struct gdbarch *gdbarch)
Definition: gdbarch.c:1831
int sparc32_fpregset_supplies_p(struct gdbarch *gdbarch, int regnum)
Definition: sparc-nat.c:120
void _initialize_sparc64_nat(void)
Definition: sparc64-nat.c:73
#define sparc_supply_fpregset
void sparc64_collect_gregset(const struct sparc_gregmap *gregmap, const struct regcache *regcache, int regnum, void *gregs)
void sparc64_supply_gregset(const struct sparc_gregmap *gregmap, struct regcache *regcache, int regnum, const void *gregs)
static int sparc64_gregset_supplies_p(struct gdbarch *gdbarch, int regnum)
Definition: sparc64-nat.c:29
#define sparc_supply_gregset
void sparc64_supply_fpregset(const struct sparc_fpregmap *fpregmap, struct regcache *regcache, int regnum, const void *fpregs)
#define sparc_collect_fpregset
static int sparc64_fpregset_supplies_p(struct gdbarch *gdbarch, int regnum)
Definition: sparc64-nat.c:55
int regnum
Definition: aarch64-tdep.c:77
#define sparc_collect_gregset
int(* sparc_fpregset_supplies_p)(struct gdbarch *, int)
Definition: sparc-nat.c:93
int(* sparc_gregset_supplies_p)(struct gdbarch *, int)
Definition: sparc-nat.c:92