* nlm/gdbserve.c, nlm/ppc.c, nlm/ppc.h: Don't try to use
authorJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 22 Dec 1994 21:33:00 +0000 (21:33 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 22 Dec 1994 21:33:00 +0000 (21:33 +0000)
  ALTERNATE_MEM_FUNCS.

gdb/nlm/gdbserve.c
gdb/nlm/ppc.c
gdb/nlm/ppc.h

index 483885a3c71390f874ded57c522f5632e2b087e8..1ad1c0884302c2fce2d9844f6ce84ce5e4e249a2 100644 (file)
@@ -69,8 +69,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <time.h>
+#include <ctype.h>
 #include <errno.h>
+#include <time.h>
 
 #ifdef __i386__
 #include <dfs.h>
@@ -380,14 +381,14 @@ volatile int mem_err = 0;
    to mem_fault, they won't get restored, so there better not be any
    saved).  */
 
-static int
+int
 get_char (addr)
      char *addr;
 {
   return *addr;
 }
 
-static void
+void
 set_char (addr, val)
      char *addr;
      int val;
index 80185c138ec6f06da09394f4220ef9f86a71348e..e171efcb5e7c6fecd6569ae4a4388dddaf4d4efa 100644 (file)
@@ -61,12 +61,12 @@ registers_to_frame (regs, frame)
   hex2mem (&regs[MQ_REGNUM * 4 * 2], &frame->ExceptionState.u.SpecialRegistersEnumerated.CsavedMQ, 4 * 1, 0);
 }
 
-extern int ReadByteAltDebugger (char* addr, char *theByte);
-
-extern int WriteByteAltDebugger (char* addr, char theByte);
 
 extern volatile int mem_err;
 
+#ifdef ALTERNATE_MEM_FUNCS
+extern int ReadByteAltDebugger (char* addr, char *theByte);
+extern int WriteByteAltDebugger (char* addr, char theByte);
 int
 get_char (addr)
      char *addr;
@@ -87,6 +87,7 @@ set_char (addr, val)
   if (!WriteByteAltDebugger (addr, val))
     mem_err = 1;
 }
+#endif
 
 int
 mem_write (dst, src, len)
index 849531bc61541ba70050b45550693e456ebc6ff4..84cee6b11a38b2b14c982e2f495f358ec30b1475 100644 (file)
@@ -157,7 +157,9 @@ struct StackFrame
 extern unsigned char breakpoint_insn[];
 #define BREAKPOINT_SIZE 4
 
+#if 0
 #define ALTERNATE_MEM_FUNCS    /* We need our own get_char/set_char */
+#endif
 
 extern int get_char (char *addr);
 extern void set_char (char *addr, int val);
This page took 0.027707 seconds and 4 git commands to generate.