projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* gdb.base/maint.exp: Only dump symbols from one source file
[deliverable/binutils-gdb.git]
/
gdb
/
remote-vxmips.c
diff --git
a/gdb/remote-vxmips.c
b/gdb/remote-vxmips.c
index d2043772579d22cfe3a82fc3c4bcacda84cc3b5a..441bd9bb2dae08ab577ba4d7fe24e9ccb7fc3869 100644
(file)
--- a/
gdb/remote-vxmips.c
+++ b/
gdb/remote-vxmips.c
@@
-30,11
+30,11
@@
#include "gdbcore.h"
#include "command.h"
#include "symtab.h"
#include "gdbcore.h"
#include "command.h"
#include "symtab.h"
-#include "symfile.h" /* for struct complaint */
+#include "symfile.h"
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "gdb_string.h"
#include <errno.h>
-#include <signal.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
@@
-103,18
+103,19
@@
vx_read_register (int regno)
/* Copy the general registers. */
/* Copy the general registers. */
- bcopy (&mips_greg_packet[MIPS_R_GP0], ®isters[0], 32 * MIPS_GREG_SIZE);
+ bcopy (&mips_greg_packet[MIPS_R_GP0], &deprecated_registers[0],
+ 32 * MIPS_GREG_SIZE);
/* Copy SR, LO, HI, and PC. */
bcopy (&mips_greg_packet[MIPS_R_SR],
/* Copy SR, LO, HI, and PC. */
bcopy (&mips_greg_packet[MIPS_R_SR],
- ®isters[REGISTER_BYTE (PS_REGNUM)], MIPS_GREG_SIZE);
+ &
deprecated_
registers[REGISTER_BYTE (PS_REGNUM)], MIPS_GREG_SIZE);
bcopy (&mips_greg_packet[MIPS_R_LO],
bcopy (&mips_greg_packet[MIPS_R_LO],
- ®isters[REGISTER_BYTE (LO_REGNUM)], MIPS_GREG_SIZE);
+ &
deprecated_
registers[REGISTER_BYTE (LO_REGNUM)], MIPS_GREG_SIZE);
bcopy (&mips_greg_packet[MIPS_R_HI],
bcopy (&mips_greg_packet[MIPS_R_HI],
- ®isters[REGISTER_BYTE (HI_REGNUM)], MIPS_GREG_SIZE);
+ &
deprecated_
registers[REGISTER_BYTE (HI_REGNUM)], MIPS_GREG_SIZE);
bcopy (&mips_greg_packet[MIPS_R_PC],
bcopy (&mips_greg_packet[MIPS_R_PC],
- ®isters[REGISTER_BYTE (PC_REGNUM)], MIPS_GREG_SIZE);
+ &
deprecated_
registers[REGISTER_BYTE (PC_REGNUM)], MIPS_GREG_SIZE);
/* If the target has floating point registers, fetch them.
Otherwise, zero the floating point register values in
/* If the target has floating point registers, fetch them.
Otherwise, zero the floating point register values in
@@
-129,26
+130,26
@@
vx_read_register (int regno)
/* Copy the floating point registers. */
bcopy (&mips_fpreg_packet[MIPS_R_FP0],
/* Copy the floating point registers. */
bcopy (&mips_fpreg_packet[MIPS_R_FP0],
- ®isters[REGISTER_BYTE (FP0_REGNUM)],
+ &
deprecated_
registers[REGISTER_BYTE (FP0_REGNUM)],
REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
/* Copy the floating point control/status register (fpcsr). */
bcopy (&mips_fpreg_packet[MIPS_R_FPCSR],
REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
/* Copy the floating point control/status register (fpcsr). */
bcopy (&mips_fpreg_packet[MIPS_R_FPCSR],
- ®isters[REGISTER_BYTE (FCRCS_REGNUM)],
+ &
deprecated_
registers[REGISTER_BYTE (FCRCS_REGNUM)],
REGISTER_RAW_SIZE (FCRCS_REGNUM));
}
else
{
REGISTER_RAW_SIZE (FCRCS_REGNUM));
}
else
{
- bzero ((char *) ®isters[REGISTER_BYTE (FP0_REGNUM)],
+ bzero ((char *) &
deprecated_
registers[REGISTER_BYTE (FP0_REGNUM)],
REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
- bzero ((char *) ®isters[REGISTER_BYTE (FCRCS_REGNUM)],
+ bzero ((char *) &
deprecated_
registers[REGISTER_BYTE (FCRCS_REGNUM)],
REGISTER_RAW_SIZE (FCRCS_REGNUM));
}
/* Mark the register cache valid. */
REGISTER_RAW_SIZE (FCRCS_REGNUM));
}
/* Mark the register cache valid. */
- registers_fetched ();
+
deprecated_
registers_fetched ();
}
/* Store a register or registers into the VxWorks target.
}
/* Store a register or registers into the VxWorks target.
@@
-162,17
+163,18
@@
vx_write_register (int regno)
/* Store general registers. */
/* Store general registers. */
- bcopy (®isters[0], &mips_greg_packet[MIPS_R_GP0], 32 * MIPS_GREG_SIZE);
+ bcopy (&deprecated_registers[0], &mips_greg_packet[MIPS_R_GP0],
+ 32 * MIPS_GREG_SIZE);
/* Copy SR, LO, HI, and PC. */
/* Copy SR, LO, HI, and PC. */
- bcopy (®isters[REGISTER_BYTE (PS_REGNUM)],
+ bcopy (&
deprecated_
registers[REGISTER_BYTE (PS_REGNUM)],
&mips_greg_packet[MIPS_R_SR], MIPS_GREG_SIZE);
&mips_greg_packet[MIPS_R_SR], MIPS_GREG_SIZE);
- bcopy (®isters[REGISTER_BYTE (LO_REGNUM)],
+ bcopy (&
deprecated_
registers[REGISTER_BYTE (LO_REGNUM)],
&mips_greg_packet[MIPS_R_LO], MIPS_GREG_SIZE);
&mips_greg_packet[MIPS_R_LO], MIPS_GREG_SIZE);
- bcopy (®isters[REGISTER_BYTE (HI_REGNUM)],
+ bcopy (&
deprecated_
registers[REGISTER_BYTE (HI_REGNUM)],
&mips_greg_packet[MIPS_R_HI], MIPS_GREG_SIZE);
&mips_greg_packet[MIPS_R_HI], MIPS_GREG_SIZE);
- bcopy (®isters[REGISTER_BYTE (PC_REGNUM)],
+ bcopy (&
deprecated_
registers[REGISTER_BYTE (PC_REGNUM)],
&mips_greg_packet[MIPS_R_PC], MIPS_GREG_SIZE);
net_write_registers (mips_greg_packet, MIPS_GREG_PLEN, PTRACE_SETREGS);
&mips_greg_packet[MIPS_R_PC], MIPS_GREG_SIZE);
net_write_registers (mips_greg_packet, MIPS_GREG_PLEN, PTRACE_SETREGS);
@@
-183,13
+185,13
@@
vx_write_register (int regno)
{
/* Copy the floating point data registers. */
{
/* Copy the floating point data registers. */
- bcopy (®isters[REGISTER_BYTE (FP0_REGNUM)],
+ bcopy (&
deprecated_
registers[REGISTER_BYTE (FP0_REGNUM)],
&mips_fpreg_packet[MIPS_R_FP0],
REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
/* Copy the floating point control/status register (fpcsr). */
&mips_fpreg_packet[MIPS_R_FP0],
REGISTER_RAW_SIZE (FP0_REGNUM) * 32);
/* Copy the floating point control/status register (fpcsr). */
- bcopy (®isters[REGISTER_BYTE (FCRCS_REGNUM)],
+ bcopy (&
deprecated_
registers[REGISTER_BYTE (FCRCS_REGNUM)],
&mips_fpreg_packet[MIPS_R_FPCSR],
REGISTER_RAW_SIZE (FCRCS_REGNUM));
&mips_fpreg_packet[MIPS_R_FPCSR],
REGISTER_RAW_SIZE (FCRCS_REGNUM));
This page took
0.026312 seconds
and
4
git commands to generate.