#endif
#include <sys/param.h>
#include "bfd.h"
-#include "callback.h"
-#include "remote-sim.h"
+#include "gdb/callback.h"
+#include "gdb/remote-sim.h"
#include "../../newlib/libc/sys/w65/sys/syscall.h"
#include "interp.h"
0
};
-void
-sim_store_register (rn, value)
+int
+sim_store_register (rn, value, length)
int rn;
unsigned char *value;
+ int length;
{
unsigned int val;
int i;
}
*(rinfo[rn].ptr) = val;
+ return -1;
}
-void
-sim_fetch_register (rn, buf)
+int
+sim_fetch_register (rn, buf, length)
int rn;
unsigned char *buf;
+ int length;
{
unsigned int val = *(rinfo[rn].ptr);
int i;
*buf++ = val;
val = val >> 8;
}
+ return -1;
}