projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update comment of linespec_lexer_lex_keyword.
[deliverable/binutils-gdb.git]
/
gdb
/
armbsd-tdep.c
diff --git
a/gdb/armbsd-tdep.c
b/gdb/armbsd-tdep.c
index ed9035aa3eb30d738499362a25a8df28134886fb..c043b5142735fd366963124bfda2ae4c1bd175ed 100644
(file)
--- a/
gdb/armbsd-tdep.c
+++ b/
gdb/armbsd-tdep.c
@@
-1,12
+1,12
@@
/* Target-dependent code for ARM BSD's.
/* Target-dependent code for ARM BSD's.
- Copyright (C) 2006
, 2007
Free Software Foundation, Inc.
+ Copyright (C) 2006
-2015
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
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,
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@
-15,18
+15,13
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
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 "regcache.h"
#include "regset.h"
#include "defs.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
-#include "gdb_assert.h"
-#include "gdb_string.h"
-
#include "arm-tdep.h"
/* Core file support. */
#include "arm-tdep.h"
/* Core file support. */
@@
-37,7
+32,7
@@
/* Sizeof `struct fpreg' in <machine/reg.h. */
#define ARMBSD_SIZEOF_FPREGS ((1 + (8 * 3)) * 4)
/* Sizeof `struct fpreg' in <machine/reg.h. */
#define ARMBSD_SIZEOF_FPREGS ((1 + (8 * 3)) * 4)
-int
+
static
int
armbsd_fpreg_offset (int regnum)
{
if (regnum == ARM_FPS_REGNUM)
armbsd_fpreg_offset (int regnum)
{
if (regnum == ARM_FPS_REGNUM)
@@
-100,30
+95,28
@@
armbsd_supply_gregset (const struct regset *regset,
/* ARM register sets. */
/* ARM register sets. */
-static struct regset armbsd_gregset =
+static
const
struct regset armbsd_gregset =
{
NULL,
{
NULL,
- armbsd_supply_gregset
+ armbsd_supply_gregset,
+ NULL,
+ REGSET_VARIABLE_SIZE
};
};
-static struct regset armbsd_fpregset =
+static
const
struct regset armbsd_fpregset =
{
NULL,
armbsd_supply_fpregset
};
{
NULL,
armbsd_supply_fpregset
};
-/* Return the appropriate register set for the core section identified
- by SECT_NAME and SECT_SIZE. */
+/* Iterate over supported core file register note sections. */
-const struct regset *
-armbsd_regset_from_core_section (struct gdbarch *gdbarch,
- const char *sect_name, size_t sect_size)
+void
+armbsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
+ iterate_over_regset_sections_cb *cb,
+ void *cb_data,
+ const struct regcache *regcache)
{
{
- if (strcmp (sect_name, ".reg") == 0 && sect_size >= ARMBSD_SIZEOF_GREGS)
- return &armbsd_gregset;
-
- if (strcmp (sect_name, ".reg2") == 0 && sect_size >= ARMBSD_SIZEOF_FPREGS)
- return &armbsd_fpregset;
-
- return NULL;
+ cb (".reg", ARMBSD_SIZEOF_GREGS, &armbsd_gregset, NULL, cb_data);
+ cb (".reg2", ARMBSD_SIZEOF_FPREGS, &armbsd_fpregset, NULL, cb_data);
}
}
This page took
0.024574 seconds
and
4
git commands to generate.