aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorOrjan Friberg <orjanf@axis.com>2001-09-24 08:04:10 +0000
committerOrjan Friberg <orjanf@axis.com>2001-09-24 08:04:10 +0000
commit7ab98e9e4f7a1f9b904a1b9dbcbb9c9323a33f8f (patch)
tree687208ff66077154b22988f1c3113365fd0abdc4 /gdb/cris-tdep.c
parent1d50f91e2820da74b8f47ebaf2f327d72f9657c2 (diff)
downloadgdb-7ab98e9e4f7a1f9b904a1b9dbcbb9c9323a33f8f.zip
gdb-7ab98e9e4f7a1f9b904a1b9dbcbb9c9323a33f8f.tar.gz
gdb-7ab98e9e4f7a1f9b904a1b9dbcbb9c9323a33f8f.tar.bz2
2001-09-24 Orjan Friberg <orjanf@axis.com>
* cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1 from correct register.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 50d81b4..5b03a91 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3070,7 +3070,7 @@ reg_mode_add_sub_cmp_and_or_move_op (unsigned short inst,
return;
}
/* The instruction has the PC as its target register. */
- operand1 = inst_env->reg[operand1];
+ operand1 = inst_env->reg[cris_get_operand1 (inst)];
operand2 = inst_env->reg[REG_PC];
/* Check if it's a extend, signed or zero instruction. */