aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-tdep.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-03-17 17:44:14 +0000
committerPaul Brook <paul@codesourcery.com>2005-03-17 17:44:14 +0000
commit16aff9a6772b8c51d550e2c0a2f1e60bd24739a1 (patch)
treee693668c12c06c1a415d7fff9209b44629bb3c80 /gdb/amd64-tdep.c
parentde7f8cc8e0f573fc75e53373251d58309d6e6c84 (diff)
downloadgdb-16aff9a6772b8c51d550e2c0a2f1e60bd24739a1.zip
gdb-16aff9a6772b8c51d550e2c0a2f1e60bd24739a1.tar.gz
gdb-16aff9a6772b8c51d550e2c0a2f1e60bd24739a1.tar.bz2
2005-03-17 Paul Brook <paul@codesourcery.com>
* amd64-tdep.c (amd64_dwarf_reg_to_regnum): Fix broken logic. * s390-tdep.c (s390_dwarf_reg_to_regnum): Ditto.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r--gdb/amd64-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 01584cc..e6fabc6 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -200,7 +200,7 @@ amd64_dwarf_reg_to_regnum (int reg)
{
int regnum = -1;
- if (reg >= 0 || reg < amd64_dwarf_regmap_len)
+ if (reg >= 0 && reg < amd64_dwarf_regmap_len)
regnum = amd64_dwarf_regmap[reg];
if (regnum == -1)