mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
Protoization.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2000-10-06 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* remote-eb.c (eb_xfer_inferior_memory): Protoize.
|
||||||
|
* remote-es.c (es1800_xfer_inferior_memory, es1800_files_info):
|
||||||
|
Protoize.
|
||||||
|
* remote-mm.c (expect_msg): Protoize.
|
||||||
|
|
||||||
2000-10-04 Kevin Buettner <kevinb@redhat.com>
|
2000-10-04 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* rs6000-tdep.c (skip_prologue): Add new parameter lim_pc.
|
* rs6000-tdep.c (skip_prologue): Add new parameter lim_pc.
|
||||||
|
@ -871,15 +871,15 @@ eb_prepare_to_store (void)
|
|||||||
/* Do nothing, since we can store individual regs */
|
/* Do nothing, since we can store individual regs */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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. */
|
||||||
|
|
||||||
/* FIXME-someday! Merge these two. */
|
|
||||||
int
|
int
|
||||||
eb_xfer_inferior_memory (memaddr, myaddr, len, write, target)
|
eb_xfer_inferior_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 eb_write_inferior_memory (memaddr, myaddr, len);
|
return eb_write_inferior_memory (memaddr, myaddr, len);
|
||||||
|
@ -954,15 +954,12 @@ tohex (int nib)
|
|||||||
memaddr - the target's address
|
memaddr - the target's address
|
||||||
myaddr - gdb's address
|
myaddr - gdb's address
|
||||||
len - number of bytes
|
len - number of bytes
|
||||||
write - write if != 0 otherwise read */
|
write - write if != 0 otherwise read
|
||||||
|
tops - unused */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
es1800_xfer_inferior_memory (memaddr, myaddr, len, write, tops)
|
es1800_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
|
||||||
CORE_ADDR memaddr;
|
int write, struct target_ops *tops)
|
||||||
char *myaddr;
|
|
||||||
int len;
|
|
||||||
int write;
|
|
||||||
struct target_ops *tops; /* Unused */
|
|
||||||
{
|
{
|
||||||
int origlen = len;
|
int origlen = len;
|
||||||
int xfersize;
|
int xfersize;
|
||||||
@ -1065,11 +1062,10 @@ es1800_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Information about the current target */
|
/* Display information about the current target. TOPS is unused. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
es1800_files_info (tops)
|
es1800_files_info (struct target_ops *tops)
|
||||||
struct target_ops *tops; /* Unused */
|
|
||||||
{
|
{
|
||||||
printf ("ES1800 Attached to %s at %d baud in %s mode\n", savename, 19200,
|
printf ("ES1800 Attached to %s at %d baud in %s mode\n", savename, 19200,
|
||||||
MODE);
|
MODE);
|
||||||
|
@ -1698,15 +1698,15 @@ error_msg_str (INT32 code)
|
|||||||
return (cbuf);
|
return (cbuf);
|
||||||
}
|
}
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
/*
|
|
||||||
* Receive a message and expect it to be of type msgcode.
|
/* Receive a message, placing it in MSG_BUF, and expect it to be of
|
||||||
* Returns 0/1 on failure/success.
|
type MSGCODE. If an error occurs, a non-zero FROM_TTY indicates
|
||||||
*/
|
that the message should be printed.
|
||||||
|
|
||||||
|
Return 0 for failure, 1 for success. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
expect_msg (msgcode, msg_buf, from_tty)
|
expect_msg (INT32 msgcode, union msg_t *msg_buf, int from_tty)
|
||||||
INT32 msgcode; /* Msg code we expect */
|
|
||||||
union msg_t *msg_buf; /* Where to put the message received */
|
|
||||||
int from_tty; /* Print message on error if non-zero */
|
|
||||||
{
|
{
|
||||||
int retries = 0;
|
int retries = 0;
|
||||||
while (msg_recv_serial (msg_buf) && (retries++ < MAX_RETRIES));
|
while (msg_recv_serial (msg_buf) && (retries++ < MAX_RETRIES));
|
||||||
|
Reference in New Issue
Block a user