summaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2005-01-01 12:28:21 +0000
committerJoel Brobecker <brobecker@gnat.com>2005-01-01 12:28:21 +0000
commita79722dec0d3d4fd0b542f43fc16e89bbc26d129 (patch)
tree3fb2083234b4095e9553245d01155d20855e025c /gdb/hppa-tdep.c
parentb85bb8e00f1066106cd41901372958cfe8627e1a (diff)
downloadgdb-a79722dec0d3d4fd0b542f43fc16e89bbc26d129.tar.gz
* hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
in register number for addil instruction.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index d4317d1a585..7b12e7d1191 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1285,9 +1285,9 @@ prologue_inst_adjust_sp (unsigned long inst)
if ((inst & 0xffe00008) == 0x73c00008)
return (inst & 0x1 ? -1 << 13 : 0) | (((inst >> 4) & 0x3ff) << 3);
- /* addil high21,%r1; ldo low11,(%r1),%r30)
+ /* addil high21,%r30; ldo low11,(%r1),%r30)
save high bits in save_high21 for later use. */
- if ((inst & 0xffe00000) == 0x28200000)
+ if ((inst & 0xffe00000) == 0x2bc00000)
{
save_high21 = hppa_extract_21 (inst);
return 0;