From e22b26cbff2524e200749627f4ee49a16e8b2fe2 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Sat, 1 Jan 2005 12:28:21 +0000 Subject: [PATCH] * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion in register number for addil instruction. --- gdb/ChangeLog | 5 +++++ gdb/hppa-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 04eafd886e2..d80f820cb2c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-01-01 Joel Brobecker + + * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion + in register number for addil instruction. + 2004-12-28 Jim Blandy * remote.c (fetch_register_using_p): Recognize a register value 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; -- 2.30.2