This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize v850-tdep.c, v850ice.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH RFC] Protoize v850-tdep.c, v850ice.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Fri, 3 Nov 2000 18:11:29 -0700
More protoization...
* v850-tdep.c (handle_prepare, handle_pushm): Remove extraneous
blank line after function declarator.
* v850ice.c (v850ice_xfer_memory, do_gdb): Protoize.
Index: v850-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/v850-tdep.c,v
retrieving revision 1.5
diff -u -r1.5 v850-tdep.c
--- v850-tdep.c 2000/10/27 19:17:57 1.5
+++ v850-tdep.c 2000/11/04 00:59:37
@@ -114,7 +114,6 @@
static void
handle_prepare (int insn, int insn2, CORE_ADDR * current_pc_ptr,
struct prologue_info *pi, struct pifsr **pifsr_ptr)
-
{
CORE_ADDR current_pc = *current_pc_ptr;
struct pifsr *pifsr = *pifsr_ptr;
@@ -191,7 +190,6 @@
static void
handle_pushm (int insn, int insn2, struct prologue_info *pi,
struct pifsr **pifsr_ptr)
-
{
struct pifsr *pifsr = *pifsr_ptr;
long list12 = ((insn & 0x0f) << 16) + (insn2 & 0xfff0);
Index: v850ice.c
===================================================================
RCS file: /cvs/src/src/gdb/v850ice.c,v
retrieving revision 1.5
diff -u -r1.5 v850ice.c
--- v850ice.c 2000/07/30 01:48:27 1.5
+++ v850ice.c 2000/11/04 00:59:38
@@ -584,18 +584,15 @@
/* Read or write LEN bytes from inferior memory at MEMADDR, transferring
to or from debugger address MYADDR. Write to inferior if SHOULD_WRITE is
- nonzero. Returns length of data written or read; 0 for error.
+ nonzero. TARGET is unused. Returns length of data written or read;
+ 0 for error.
We can only read/write MAX_BLOCK_SIZE bytes at a time, though, or the DLL
- dies */
+ dies. */
/* ARGSUSED */
static int
-v850ice_xfer_memory (memaddr, myaddr, len, should_write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int should_write;
- struct target_ops *target; /* ignored */
+v850ice_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
+ int should_write, struct target_ops *target)
{
long retval;
char cmd[100];
@@ -826,11 +823,7 @@
}
static void
-do_gdb (cmd, str, func, count)
- char *cmd;
- char *str;
- void (*func) (char *, int);
- int count;
+do_gdb (char *cmd, char *str, void (*func) (char *, int), int count)
{
ReplyMessage ((LRESULT) 1);