}
static char *
-outreg (int regno, char *buf)
+outreg (struct regcache *regcache, int regno, char *buf)
{
if ((regno >> 12) != 0)
*buf++ = tohex ((regno >> 12) & 0xf);
*buf++ = tohex ((regno >> 4) & 0xf);
*buf++ = tohex (regno & 0xf);
*buf++ = ':';
- collect_register_as_string (regno, buf);
+ collect_register_as_string (regcache, regno, buf);
buf += 2 * register_size (regno);
*buf++ = ';';
{
struct thread_info *saved_inferior;
const char **regp;
+ struct regcache *regcache;
sprintf (buf, "T%02x", status->value.sig);
buf += strlen (buf);
current_inferior = find_thread_ptid (ptid);
+ regcache = get_thread_regcache (current_inferior, 1);
+
if (the_target->stopped_by_watchpoint != NULL
&& (*the_target->stopped_by_watchpoint) ())
{
while (*regp)
{
- buf = outreg (find_regno (*regp), buf);
+ buf = outreg (regcache, find_regno (*regp), buf);
regp ++;
}
*buf = '\0';