Protoization.
This commit is contained in:
parent
d64552c589
commit
e082ddcac6
|
@ -1,3 +1,9 @@
|
||||||
|
2000-10-01 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* remote-adapt.c (adapt_insert_breakpoint, adapt_remove_breakpoint):
|
||||||
|
Protoize.
|
||||||
|
* remote-array.c (write_monitor, array_xfer_memory): Protoize.
|
||||||
|
|
||||||
2000-09-29 Kevin Buettner <kevinb@redhat.com>
|
2000-09-29 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* ppc-linux-nat.c (supply_gregset, fill_gregset): Change type
|
* ppc-linux-nat.c (supply_gregset, fill_gregset): Change type
|
||||||
|
|
|
@ -1293,10 +1293,14 @@ adapt_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
|
|
||||||
#define MAX_BREAKS 8
|
#define MAX_BREAKS 8
|
||||||
static int num_brkpts = 0;
|
static int num_brkpts = 0;
|
||||||
|
|
||||||
|
/* Insert a breakpoint at ADDR. SAVE is normally the address of the
|
||||||
|
pattern buffer where the instruction that the breakpoint overwrites
|
||||||
|
is saved. It is unused here since the Adapt Monitor is responsible
|
||||||
|
for saving/restoring the original instruction. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
adapt_insert_breakpoint (addr, save)
|
adapt_insert_breakpoint (CORE_ADDR addr, char *save)
|
||||||
CORE_ADDR addr;
|
|
||||||
char *save; /* Throw away, let adapt save instructions */
|
|
||||||
{
|
{
|
||||||
if (num_brkpts < MAX_BREAKS)
|
if (num_brkpts < MAX_BREAKS)
|
||||||
{
|
{
|
||||||
|
@ -1314,10 +1318,13 @@ adapt_insert_breakpoint (addr, save)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Remove a breakpoint at ADDR. SAVE is normally the previously
|
||||||
|
saved pattern, but is unused here as the Adapt Monitor is
|
||||||
|
responsible for saving/restoring instructions. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
adapt_remove_breakpoint (addr, save)
|
adapt_remove_breakpoint (CORE_ADDR addr, char *save)
|
||||||
CORE_ADDR addr;
|
|
||||||
char *save; /* Throw away, let adapt save instructions */
|
|
||||||
{
|
{
|
||||||
if (num_brkpts > 0)
|
if (num_brkpts > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -216,9 +216,7 @@ printf_monitor (char *pattern,...)
|
||||||
* write_monitor -- send raw data to monitor.
|
* write_monitor -- send raw data to monitor.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
write_monitor (data, len)
|
write_monitor (char data[], int len)
|
||||||
char data[];
|
|
||||||
int len;
|
|
||||||
{
|
{
|
||||||
if (SERIAL_WRITE (array_desc, data, len))
|
if (SERIAL_WRITE (array_desc, data, len))
|
||||||
fprintf (stderr, "SERIAL_WRITE failed: %s\n", safe_strerror (errno));
|
fprintf (stderr, "SERIAL_WRITE failed: %s\n", safe_strerror (errno));
|
||||||
|
@ -1020,14 +1018,15 @@ array_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
return (count);
|
return (count);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME-someday! merge these two. */
|
/* Transfer LEN bytes between GDB address MYADDR and target address
|
||||||
|
MEMADDR. If WRITE is non-zero, transfer them to the target,
|
||||||
|
otherwise transfer them from the target. TARGET is unused.
|
||||||
|
|
||||||
|
Returns the number of bytes transferred. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
array_xfer_memory (memaddr, myaddr, len, write, target)
|
array_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||||
CORE_ADDR memaddr;
|
struct target_ops *target)
|
||||||
char *myaddr;
|
|
||||||
int len;
|
|
||||||
int write;
|
|
||||||
struct target_ops *target; /* ignored */
|
|
||||||
{
|
{
|
||||||
if (write)
|
if (write)
|
||||||
return array_write_inferior_memory (memaddr, myaddr, len);
|
return array_write_inferior_memory (memaddr, myaddr, len);
|
||||||
|
|
Loading…
Reference in New Issue