aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-01-08 22:14:15 +0000
committerMichael Snyder <msnyder@vmware.com>2002-01-08 22:14:15 +0000
commitc6b92abd3df567ae24c1806d4d398b921b14306a (patch)
tree131b67ece387a3e602c27de8344071a22ea37d92
parent4b09dc8c14cd3dd0030c60976811a2b849bf9989 (diff)
downloadgdb-c6b92abd3df567ae24c1806d4d398b921b14306a.zip
gdb-c6b92abd3df567ae24c1806d4d398b921b14306a.tar.gz
gdb-c6b92abd3df567ae24c1806d4d398b921b14306a.tar.bz2
2002-01-07 Michael Snyder <msnyder@redhat.com>
* arm-linux-nat.c: Remove references to regcache.c internal data (registers[] and register_valid[]).
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arm-linux-nat.c24
2 files changed, 17 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 87b2ea6..ae1bbae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2002-01-07 Michael Snyder <msnyder@redhat.com>
+ * arm-linux-nat.c: Remove references to regcache.c internal data
+ (registers[] and register_valid[]).
+
+2002-01-07 Michael Snyder <msnyder@redhat.com>
+
* linux-proc.c: New file. Implement child_pid_to_exec_file,
so that attaching to a pid will automatically read the process's
symbol file and shlibs.
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index 52d6c64..4d32491 100644
--- a/gdb/arm-linux-nat.c
+++ b/gdb/arm-linux-nat.c
@@ -194,7 +194,7 @@ store_nwfpe_extended (unsigned int fn, FPA11 * fpa11)
void
store_nwfpe_register (int regno, FPA11 * fpa11)
{
- if (register_valid[regno])
+ if (register_cached (regno))
{
unsigned int fn = regno - F0_REGNUM;
switch (fpa11->fType[fn])
@@ -216,7 +216,7 @@ store_nwfpe_register (int regno, FPA11 * fpa11)
/* Get the value of a particular register from the floating point
- state of the process and store it into registers[]. */
+ state of the process and store it into regcache. */
static void
fetch_fpregister (int regno)
@@ -265,7 +265,7 @@ fetch_fpregister (int regno)
}
/* Get the whole floating point state of the process and store it
- into registers[]. */
+ into regcache. */
static void
fetch_fpregs (void)
@@ -313,7 +313,7 @@ fetch_fpregs (void)
}
/* Save a particular register into the floating point state of the
- process using the contents from registers[]. */
+ process using the contents from regcache. */
static void
store_fpregister (int regno)
@@ -333,7 +333,7 @@ store_fpregister (int regno)
}
/* Store fpsr. */
- if (FPS_REGNUM == regno && register_valid[FPS_REGNUM])
+ if (FPS_REGNUM == regno && register_cached (FPS_REGNUM))
read_register_gen (FPS_REGNUM, (char *) &fp.fpsr);
/* Store the floating point register. */
@@ -351,7 +351,7 @@ store_fpregister (int regno)
}
/* Save the whole floating point state of the process using
- the contents from registers[]. */
+ the contents from regcache. */
static void
store_fpregs (void)
@@ -371,7 +371,7 @@ store_fpregs (void)
}
/* Store fpsr. */
- if (register_valid[FPS_REGNUM])
+ if (register_cached (FPS_REGNUM))
read_register_gen (FPS_REGNUM, (char *) &fp.fpsr);
/* Store the floating point registers. */
@@ -389,7 +389,7 @@ store_fpregs (void)
}
/* Fetch a general register of the process and store into
- registers[]. */
+ regcache. */
static void
fetch_register (int regno)
@@ -426,7 +426,7 @@ fetch_register (int regno)
}
/* Fetch all general registers of the process and store into
- registers[]. */
+ regcache. */
static void
fetch_regs (void)
@@ -457,7 +457,7 @@ fetch_regs (void)
}
/* Store all general registers of the process from the values in
- registers[]. */
+ regcache. */
static void
store_register (int regno)
@@ -465,7 +465,7 @@ store_register (int regno)
int ret, tid;
elf_gregset_t regs;
- if (!register_valid[regno])
+ if (!register_cached (regno))
return;
/* Get the thread id for the ptrace call. */
@@ -509,7 +509,7 @@ store_regs (void)
for (regno = A1_REGNUM; regno <= PC_REGNUM; regno++)
{
- if (register_valid[regno])
+ if (register_cached (regno))
read_register_gen (regno, (char *) &regs[regno]);
}