projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use malloc/free in the dbgapi callbacks
[deliverable/binutils-gdb.git]
/
gdb
/
sparc-ravenscar-thread.c
diff --git
a/gdb/sparc-ravenscar-thread.c
b/gdb/sparc-ravenscar-thread.c
index b076232e0426b246e0c968fb8a259c0492a45b77..3455677ab65f3ead3845cf9d38e781af8b46194b 100644
(file)
--- a/
gdb/sparc-ravenscar-thread.c
+++ b/
gdb/sparc-ravenscar-thread.c
@@
-1,6
+1,6
@@
/* Ravenscar SPARC target support.
/* Ravenscar SPARC target support.
- Copyright (C) 2004-20
18
Free Software Foundation, Inc.
+ Copyright (C) 2004-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-24,12
+24,13
@@
#include "inferior.h"
#include "ravenscar-thread.h"
#include "sparc-ravenscar-thread.h"
#include "inferior.h"
#include "ravenscar-thread.h"
#include "sparc-ravenscar-thread.h"
+#include "gdbarch.h"
-st
atic void sparc_ravenscar_fetch_registers (struct regcache *regcache,
- int regnum);
-static void sparc_ravenscar_store_registers (struct regcache *regcache,
-
int regnum)
;
-
static void sparc_ravenscar_prepare_to_store (struct regcache *regcache)
;
+st
ruct sparc_ravenscar_ops : public ravenscar_arch_ops
+{
+ void fetch_registers (struct regcache *, int) override;
+
void store_registers (struct regcache *, int) override
;
+
}
;
/* Register offsets from a referenced address (exempli gratia the
Thread_Descriptor). The referenced address depends on the register
/* Register offsets from a referenced address (exempli gratia the
Thread_Descriptor). The referenced address depends on the register
@@
-100,8
+101,8
@@
register_in_thread_descriptor_p (int regnum)
/* to_fetch_registers when inferior_ptid is different from the running
thread. */
/* to_fetch_registers when inferior_ptid is different from the running
thread. */
-
static
void
-sparc_ravenscar_fetch_registers (struct regcache *regcache, int regnum)
+void
+sparc_ravenscar_
ops::
fetch_registers (struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = regcache->arch ();
const int sp_regnum = gdbarch_sp_regnum (gdbarch);
{
struct gdbarch *gdbarch = regcache->arch ();
const int sp_regnum = gdbarch_sp_regnum (gdbarch);
@@
-140,20
+141,11
@@
sparc_ravenscar_fetch_registers (struct regcache *regcache, int regnum)
}
}
}
}
-/* to_prepare_to_store when inferior_ptid is different from the running
- thread. */
-
-static void
-sparc_ravenscar_prepare_to_store (struct regcache *regcache)
-{
- /* Nothing to do. */
-}
-
/* to_store_registers when inferior_ptid is different from the running
thread. */
/* to_store_registers when inferior_ptid is different from the running
thread. */
-
static
void
-sparc_ravenscar_store_registers (struct regcache *regcache, int regnum)
+void
+sparc_ravenscar_
ops::
store_registers (struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = regcache->arch ();
int buf_size = register_size (gdbarch, regnum);
{
struct gdbarch *gdbarch = regcache->arch ();
int buf_size = register_size (gdbarch, regnum);
@@
-178,12
+170,7
@@
sparc_ravenscar_store_registers (struct regcache *regcache, int regnum)
buf_size);
}
buf_size);
}
-static struct ravenscar_arch_ops sparc_ravenscar_ops =
-{
- sparc_ravenscar_fetch_registers,
- sparc_ravenscar_store_registers,
- sparc_ravenscar_prepare_to_store
-};
+static struct sparc_ravenscar_ops sparc_ravenscar_ops;
/* Register ravenscar_arch_ops in GDBARCH. */
/* Register ravenscar_arch_ops in GDBARCH. */
This page took
0.026014 seconds
and
4
git commands to generate.