Add alignment option.
[deliverable/binutils-gdb.git] / gdb / ns32km3-nat.c
index 087bb72b2429fddab9e19db2807aea322911970f..89696ba0fcaba0e2ca8af1401069b2d53b2e7824 100644 (file)
@@ -15,7 +15,7 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "inferior.h"
@@ -58,27 +58,15 @@ static int reg_offset[] =
  * Caller knows that the regs handled in one transaction are of same size.
  */
 #define FETCH_REGS(state, regnum, count) \
-  bcopy ((char *)state+reg_offset[ regnum ], \
-        &registers[REGISTER_BYTE (regnum)], \
-        count*sizeof (REGISTER_TYPE))
+  memcpy (&registers[REGISTER_BYTE (regnum)], \
+         (char *)state+reg_offset[ regnum ], \
+         count*REGISTER_SIZE)
 
 /* Store COUNT contiguous registers to thread STATE starting from REGNUM */
 #define STORE_REGS(state, regnum, count) \
-  bcopy (&registers[REGISTER_BYTE (regnum)], \
-        (char *)state+reg_offset[ regnum ], \
-        count*sizeof (REGISTER_TYPE))
-\f
-/* 4.4 bfd support function */
-/* jtv@hut.fi: UNIMPLEMENTED!!!!! */
-
-void
-fetch_core_registers (core_regs, core_reg_size, which)
-     char *core_regs;
-     unsigned int core_reg_size;
-     int which;
-{
-  error ("Unimplemented routine fetch_core_registers called");
-}
+  memcpy ((char *)state+reg_offset[ regnum ], \
+         &registers[REGISTER_BYTE (regnum)], \
+         count*REGISTER_SIZE)
 \f
 /*
  * Fetch inferiors registers for gdb.
This page took 0.024174 seconds and 4 git commands to generate.