projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update to 2.23.1
[platform/upstream/binutils.git]
/
gdb
/
vax-tdep.c
diff --git
a/gdb/vax-tdep.c
b/gdb/vax-tdep.c
index
f42a398
..
2793261
100644
(file)
--- a/
gdb/vax-tdep.c
+++ b/
gdb/vax-tdep.c
@@
-1,7
+1,6
@@
/* Target-dependent code for the VAX.
/* Target-dependent code for the VAX.
- Copyright (C) 1986, 1989, 1991, 1992, 1995, 1996, 1998, 1999, 2000, 2002,
- 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1986-2014 Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-33,8
+32,6
@@
#include "trad-frame.h"
#include "value.h"
#include "trad-frame.h"
#include "value.h"
-#include "gdb_string.h"
-
#include "vax-tdep.h"
/* Return the name of register REGNUM. */
#include "vax-tdep.h"
/* Return the name of register REGNUM. */
@@
-56,7
+53,7
@@
vax_register_name (struct gdbarch *gdbarch, int regnum)
}
/* Return the GDB type object for the "standard" data type of data in
}
/* Return the GDB type object for the "standard" data type of data in
- register REGNUM. */
+ register REGNUM.
*/
static struct type *
vax_register_type (struct gdbarch *gdbarch, int regnum)
static struct type *
vax_register_type (struct gdbarch *gdbarch, int regnum)
@@
-86,23
+83,21
@@
vax_supply_gregset (const struct regset *regset, struct regcache *regcache,
/* VAX register set. */
/* VAX register set. */
-static struct regset vax_gregset =
+static
const
struct regset vax_gregset =
{
NULL,
vax_supply_gregset
};
{
NULL,
vax_supply_gregset
};
-/* Return the appropriate register set for the core section identified
- by SECT_NAME and SECT_SIZE. */
+/* Iterate over core file register note sections. */
-static const struct regset *
-vax_regset_from_core_section (struct gdbarch *gdbarch,
- const char *sect_name, size_t sect_size)
+static void
+vax_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 >= VAX_NUM_REGS * 4)
- return &vax_gregset;
-
- return NULL;
+ cb (".reg", VAX_NUM_REGS * 4, &vax_gregset, NULL, cb_data);
}
\f
/* The VAX UNIX calling convention uses R1 to pass a structure return
}
\f
/* The VAX UNIX calling convention uses R1 to pass a structure return
@@
-204,7
+199,7
@@
vax_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
\f
static enum return_value_convention
\f
static enum return_value_convention
-vax_return_value (struct gdbarch *gdbarch, struct
type *func_type
,
+vax_return_value (struct gdbarch *gdbarch, struct
value *function
,
struct type *type, struct regcache *regcache,
gdb_byte *readbuf, const gdb_byte *writebuf)
{
struct type *type, struct regcache *regcache,
gdb_byte *readbuf, const gdb_byte *writebuf)
{
@@
-401,6
+396,7
@@
vax_frame_prev_register (struct frame_info *this_frame,
static const struct frame_unwind vax_frame_unwind =
{
NORMAL_FRAME,
static const struct frame_unwind vax_frame_unwind =
{
NORMAL_FRAME,
+ default_frame_unwind_stop_reason,
vax_frame_this_id,
vax_frame_prev_register,
NULL,
vax_frame_this_id,
vax_frame_prev_register,
NULL,
@@
-485,8
+481,8
@@
vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_pc_regnum (gdbarch, VAX_PC_REGNUM);
set_gdbarch_ps_regnum (gdbarch, VAX_PS_REGNUM);
set_gdbarch_pc_regnum (gdbarch, VAX_PC_REGNUM);
set_gdbarch_ps_regnum (gdbarch, VAX_PS_REGNUM);
- set_gdbarch_
regset_from_core_section
- (gdbarch, vax_
regset_from_core_section
);
+ set_gdbarch_
iterate_over_regset_sections
+ (gdbarch, vax_
iterate_over_regset_sections
);
/* Frame and stack info */
set_gdbarch_skip_prologue (gdbarch, vax_skip_prologue);
/* Frame and stack info */
set_gdbarch_skip_prologue (gdbarch, vax_skip_prologue);