* linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
in comparison.
+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.
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]);