aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-27 21:18:14 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-27 21:18:14 +0000
commit35f5825a72aa7f4fcddc06f6505f3ab3f39951ff (patch)
tree6276a812272a225bfd382e98c5237e38d0ac7069 /gdb/gdbserver
parent3bd0f5efd1910d53733ff9962deee99d7e45d1de (diff)
downloadgdb-35f5825a72aa7f4fcddc06f6505f3ab3f39951ff.zip
gdb-35f5825a72aa7f4fcddc06f6505f3ab3f39951ff.tar.gz
gdb-35f5825a72aa7f4fcddc06f6505f3ab3f39951ff.tar.bz2
2011-02-26 Michael Snyder <msnyder@vmware.com>
* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error in comparison.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-amd64-ipa.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index ed1bf12..29b175f 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-27 Michael Snyder <msnyder@vmware.com>
+
+ * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
+ in comparison.
+
2011-02-26 Michael Snyder <msnyder@vmware.com>
* utils.c (decimal2str): Eliminate dead code and dead param.
diff --git a/gdb/gdbserver/linux-amd64-ipa.c b/gdb/gdbserver/linux-amd64-ipa.c
index 359a689..60665a7 100644
--- a/gdb/gdbserver/linux-amd64-ipa.c
+++ b/gdb/gdbserver/linux-amd64-ipa.c
@@ -69,7 +69,7 @@ supply_fast_tracepoint_registers (struct regcache *regcache,
ULONGEST __attribute__ ((visibility("default"), used))
gdb_agent_get_raw_reg (const unsigned char *raw_regs, int regnum)
{
- if (regnum > X86_64_NUM_FT_COLLECT_GREGS)
+ if (regnum >= X86_64_NUM_FT_COLLECT_GREGS)
return 0;
return *(ULONGEST *) (raw_regs + x86_64_ft_collect_regmap[regnum]);