From fe6fdd96e9e398466a8313819d23f15e02598bc4 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 5 Feb 2002 03:44:25 +0000 Subject: [PATCH] 2002-02-04 Michael Snyder * gdb.base/ovlymgr.c (ovly_copy): Generalize for targets other than d10v and m32r. --- gdb/testsuite/ChangeLog | 9 +++++++++ gdb/testsuite/gdb.base/ovlymgr.c | 8 +++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 83570a3d766..92cc9d4456b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-02-04 Michael Snyder + + * gdb.base/ovlymgr.c (ovly_copy): Generalize for targets + other than d10v and m32r. + 2002-02-02 Richard Earnshaw * gdb.base/default.exp: Rewrite test patterns to reduce time @@ -78,6 +83,10 @@ * gdb.base/maint.exp: Update ``maint internal-error'' to match continue/quit query. Update copyright. +2002-01-14 Michael Snyder + + * gdb.base/gcore.exp: Remove extra debugging output. + 2002-01-13 Daniel Jacobowitz * gdb.c++/demangle.exp: Accept slightly dubious v2 demangler result diff --git a/gdb/testsuite/gdb.base/ovlymgr.c b/gdb/testsuite/gdb.base/ovlymgr.c index bdb90feae6b..0b04c54b546 100644 --- a/gdb/testsuite/gdb.base/ovlymgr.c +++ b/gdb/testsuite/gdb.base/ovlymgr.c @@ -185,11 +185,6 @@ D10VTranslate (unsigned long logical, 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; @@ -220,6 +215,9 @@ ovly_copy (unsigned long dst, unsigned long src, long size) D10VTranslate (dst, &dmap_dst, &d); } DMAP = dmap_save; +#else + memcpy ((void *) dst, (void *) src, size); #endif /* D10V */ + return; } -- 2.30.2