diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-02-27 21:18:14 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-02-27 21:18:14 +0000 |
commit | 35f5825a72aa7f4fcddc06f6505f3ab3f39951ff (patch) | |
tree | 6276a812272a225bfd382e98c5237e38d0ac7069 /gdb/gdbserver/linux-amd64-ipa.c | |
parent | 3bd0f5efd1910d53733ff9962deee99d7e45d1de (diff) | |
download | binutils-gdb-35f5825a72aa7f4fcddc06f6505f3ab3f39951ff.tar.gz |
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/linux-amd64-ipa.c')
-rw-r--r-- | gdb/gdbserver/linux-amd64-ipa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-amd64-ipa.c b/gdb/gdbserver/linux-amd64-ipa.c index 359a689925d..60665a71d63 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]); |