aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-m32r-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/linux-m32r-low.c')
-rw-r--r--gdb/gdbserver/linux-m32r-low.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/gdbserver/linux-m32r-low.c b/gdb/gdbserver/linux-m32r-low.c
index 6fb6d13..3baaf2f 100644
--- a/gdb/gdbserver/linux-m32r-low.c
+++ b/gdb/gdbserver/linux-m32r-low.c
@@ -53,18 +53,20 @@ m32r_cannot_fetch_register (int regno)
}
static CORE_ADDR
-m32r_get_pc ()
+m32r_get_pc (struct regcache *regcache)
{
unsigned long pc;
- collect_register_by_name ("pc", &pc);
+ collect_register_by_name (regcache, "pc", &pc);
+ if (debug_threads)
+ fprintf (stderr, "stop pc is %08lx\n", pc);
return pc;
}
static void
-m32r_set_pc (CORE_ADDR pc)
+m32r_set_pc (struct regcache *regcache, CORE_ADDR pc)
{
unsigned long newpc = pc;
- supply_register_by_name ("pc", &newpc);
+ supply_register_by_name (regcache, "pc", &newpc);
}
static const unsigned short m32r_breakpoint = 0x10f1;