This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Generalization for ovlymgr.c



Makes it less specific to the two targets to which 
it has been ported so far (easier to port new targets).

2002-02-04  Michael Snyder  <msnyder@redhat.com>

	* gdb.base/ovlymgr.c  (ovly_copy): Generalize for targets
	  other than d10v and m32r.

Index: gdb.base/ovlymgr.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/ovlymgr.c,v
retrieving revision 1.1.1.1
diff -c -3 -p -r1.1.1.1 ovlymgr.c
*** ovlymgr.c	1999/04/16 01:34:31	1.1.1.1
--- ovlymgr.c	2002/02/05 03:43:28
*************** D10VTranslate (unsigned long logical,
*** 185,195 ****
  static void
  ovly_copy (unsigned long dst, unsigned long src, long size)
  {
- #ifdef  __M32R__
-   memcpy ((void *) dst, (void *) src, size);
-   return;
- #endif /* M32R */
- 
  #ifdef  __D10V__
    unsigned long *s, *d, tmp;
    short dmap_src, dmap_dst;
--- 185,190 ----
*************** ovly_copy (unsigned long dst, unsigned l
*** 220,225 ****
--- 215,223 ----
  	D10VTranslate (dst, &dmap_dst, &d);
      }
    DMAP = dmap_save;
+ #else
+   memcpy ((void *) dst, (void *) src, size);
  #endif /* D10V */
+   return;
  }
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]