aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2009-06-22 19:33:41 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2009-06-22 19:33:41 +0000
commit4463ce244d595312be683e7df686eea59a4a1987 (patch)
tree9f2246e5d8d8471bad76177ffdfa941882699d3a
parentf667014e3f62ae004b522d5e05fc6e9fd3b3d5c5 (diff)
downloadgdb-4463ce244d595312be683e7df686eea59a4a1987.zip
gdb-4463ce244d595312be683e7df686eea59a4a1987.tar.gz
gdb-4463ce244d595312be683e7df686eea59a4a1987.tar.bz2
* linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
* proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. * regcache.c (get_regcache): Likewise. * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. * win32-low.c (child_fetch_inferior_registers): Remove check for regno 0.
-rw-r--r--gdb/gdbserver/ChangeLog9
-rw-r--r--gdb/gdbserver/linux-low.c2
-rw-r--r--gdb/gdbserver/proc-service.c2
-rw-r--r--gdb/gdbserver/regcache.c2
-rw-r--r--gdb/gdbserver/spu-low.c4
-rw-r--r--gdb/gdbserver/win32-low.c2
6 files changed, 13 insertions, 8 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index b973d55..f2d55c4 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,12 @@
+2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
+ * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
+ * regcache.c (get_regcache): Likewise.
+ * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
+ * win32-low.c (child_fetch_inferior_registers): Remove check for
+ regno 0.
+
2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
Pedro Alves <pedro@codesourcery.com>
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 21bf523..7ff112e 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -2054,7 +2054,7 @@ error_exit:;
static void
usr_fetch_inferior_registers (int regno)
{
- if (regno == -1 || regno == 0)
+ if (regno == -1)
for (regno = 0; regno < the_low_target.num_regs; regno++)
fetch_register (regno);
else
diff --git a/gdb/gdbserver/proc-service.c b/gdb/gdbserver/proc-service.c
index 7999f4a..76eb424 100644
--- a/gdb/gdbserver/proc-service.c
+++ b/gdb/gdbserver/proc-service.c
@@ -110,7 +110,7 @@ ps_lgetregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, prgregset_t gregset)
save_inferior = current_inferior;
current_inferior = reg_inferior;
- the_target->fetch_registers (0);
+ the_target->fetch_registers (-1);
gregset_info()->fill_function (gregset);
current_inferior = save_inferior;
diff --git a/gdb/gdbserver/regcache.c b/gdb/gdbserver/regcache.c
index 9b93307..c61a605 100644
--- a/gdb/gdbserver/regcache.c
+++ b/gdb/gdbserver/regcache.c
@@ -53,7 +53,7 @@ get_regcache (struct thread_info *inf, int fetch)
/* FIXME - fetch registers for INF */
if (fetch && regcache->registers_valid == 0)
{
- fetch_inferior_registers (0);
+ fetch_inferior_registers (-1);
regcache->registers_valid = 1;
}
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c
index 8307c4e..89d80c2 100644
--- a/gdb/gdbserver/spu-low.c
+++ b/gdb/gdbserver/spu-low.c
@@ -471,10 +471,6 @@ spu_fetch_registers (int regno)
int fd;
CORE_ADDR addr;
- /* ??? Some callers use 0 to mean all registers. */
- if (regno == 0)
- regno = -1;
-
/* We must be stopped on a spu_run system call. */
if (!parse_spufs_run (&fd, &addr))
return;
diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c
index f3943ab..869a1cd 100644
--- a/gdb/gdbserver/win32-low.c
+++ b/gdb/gdbserver/win32-low.c
@@ -331,7 +331,7 @@ child_fetch_inferior_registers (int r)
{
int regno;
win32_thread_info *th = thread_rec (current_inferior_ptid (), TRUE);
- if (r == -1 || r == 0 || r > NUM_REGS)
+ if (r == -1 || r > NUM_REGS)
child_fetch_inferior_registers (NUM_REGS);
else
for (regno = 0; regno < r; regno++)