OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [reggroups.h] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* Register groupings for GDB, the GNU debugger.
2
 
3
   Copyright (C) 2002, 2007, 2008 Free Software Foundation, Inc.
4
 
5
   Contributed by Red Hat.
6
 
7
   This file is part of GDB.
8
 
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 3 of the License, or
12
   (at your option) any later version.
13
 
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
21
 
22
#ifndef REGGROUPS_H
23
#define REGGROUPS_H
24
 
25
struct gdbarch;
26
struct reggroup;
27
 
28
enum reggroup_type { USER_REGGROUP, INTERNAL_REGGROUP };
29
 
30
/* Pre-defined, user visible, register groups.  */
31
extern struct reggroup *const general_reggroup;
32
extern struct reggroup *const float_reggroup;
33
extern struct reggroup *const system_reggroup;
34
extern struct reggroup *const vector_reggroup;
35
extern struct reggroup *const all_reggroup;
36
 
37
/* Pre-defined, internal, register groups.  */
38
extern struct reggroup *const save_reggroup;
39
extern struct reggroup *const restore_reggroup;
40
 
41
/* Create a new local register group.  */
42
extern struct reggroup *reggroup_new (const char *name,
43
                                      enum reggroup_type type);
44
 
45
/* Add a register group (with attribute values) to the pre-defined list.  */
46
extern void reggroup_add (struct gdbarch *gdbarch, struct reggroup *group);
47
 
48
/* Register group attributes.  */
49
extern const char *reggroup_name (struct reggroup *reggroup);
50
extern enum reggroup_type reggroup_type (struct reggroup *reggroup);
51
 
52
/* Interator for the architecture's register groups.  Pass in NULL,
53
   returns the first group.  Pass in a group, returns the next group,
54
   or NULL when the last group is reached.  */
55
extern struct reggroup *reggroup_next (struct gdbarch *gdbarch,
56
                                       struct reggroup *last);
57
 
58
/* Is REGNUM a member of REGGROUP?  */
59
extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
60
                                        struct reggroup *reggroup);
61
 
62
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.