projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdbserver/linux-low: turn '{collect, supply}_ptrace_register' into methods
[deliverable/binutils-gdb.git]
/
gdbserver
/
linux-ppc-low.cc
diff --git
a/gdbserver/linux-ppc-low.cc
b/gdbserver/linux-ppc-low.cc
index deb2ef64f1270e906b4dcbe68e323d140fc5b680..e0310856c2098903173815fe605adbc987a99863 100644
(file)
--- a/
gdbserver/linux-ppc-low.cc
+++ b/
gdbserver/linux-ppc-low.cc
@@
-56,6
+56,12
@@
public:
bool supports_z_point_type (char z_type) override;
bool supports_z_point_type (char z_type) override;
+
+ void low_collect_ptrace_register (regcache *regcache, int regno,
+ char *buf) override;
+
+ void low_supply_ptrace_register (regcache *regcache, int regno,
+ const char *buf) override;
protected:
void low_arch_setup () override;
protected:
void low_arch_setup () override;
@@
-208,8
+214,9
@@
ppc_target::low_cannot_fetch_register (int regno)
return false;
}
return false;
}
-static void
-ppc_collect_ptrace_register (struct regcache *regcache, int regno, char *buf)
+void
+ppc_target::low_collect_ptrace_register (regcache *regcache, int regno,
+ char *buf)
{
memset (buf, 0, sizeof (long));
{
memset (buf, 0, sizeof (long));
@@
-234,9
+241,9
@@
ppc_collect_ptrace_register (struct regcache *regcache, int regno, char *buf)
perror_with_name ("Unexpected byte order");
}
perror_with_name ("Unexpected byte order");
}
-
static
void
-ppc_
supply_ptrace_register (struct regcache *regcache
,
-
int regno,
const char *buf)
+void
+ppc_
target::low_supply_ptrace_register (regcache *regcache, int regno
,
+
const char *buf)
{
if (__BYTE_ORDER == __LITTLE_ENDIAN)
{
{
if (__BYTE_ORDER == __LITTLE_ENDIAN)
{
@@
-401,14
+408,19
@@
static void ppc_fill_gregset (struct regcache *regcache, void *buf)
{
int i;
{
int i;
+ ppc_target *my_ppc_target = (ppc_target *) the_linux_target;
+
for (i = 0; i < 32; i++)
for (i = 0; i < 32; i++)
- ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
+ my_ppc_target->low_collect_ptrace_register (regcache, i,
+ (char *) buf + ppc_regmap[i]);
for (i = 64; i < 70; i++)
for (i = 64; i < 70; i++)
- ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
+ my_ppc_target->low_collect_ptrace_register (regcache, i,
+ (char *) buf + ppc_regmap[i]);
for (i = 71; i < 73; i++)
for (i = 71; i < 73; i++)
- ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
+ my_ppc_target->low_collect_ptrace_register (regcache, i,
+ (char *) buf + ppc_regmap[i]);
}
/* Program Priority Register regset fill function. */
}
/* Program Priority Register regset fill function. */
@@
-3416,8
+3428,6
@@
ppc_get_ipa_tdesc_idx (void)
}
struct linux_target_ops the_low_target = {
}
struct linux_target_ops the_low_target = {
- ppc_collect_ptrace_register,
- ppc_supply_ptrace_register,
NULL, /* siginfo_fixup */
NULL, /* new_process */
NULL, /* delete_process */
NULL, /* siginfo_fixup */
NULL, /* new_process */
NULL, /* delete_process */
This page took
0.024054 seconds
and
4
git commands to generate.