diff options
author | Paul Brook <paul@codesourcery.com> | 2005-03-17 17:44:14 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2005-03-17 17:44:14 +0000 |
commit | d6e5fd7484618b927c3977fd37ae6a5231fbd56b (patch) | |
tree | 24cb0519fda5fb8389c2654fe8f26958d3125ee2 /gdb/amd64-tdep.c | |
parent | 27b733a838613e6ae4d1587b1bb39b2e8d41a6da (diff) | |
download | gdb-d6e5fd7484618b927c3977fd37ae6a5231fbd56b.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 01584cc770e..e6fabc68b00 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) |