2004-02-22 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 22 Feb 2004 16:55:03 +0000 (16:55 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 22 Feb 2004 16:55:03 +0000 (16:55 +0000)
* hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
unsigned.
(hppa_frame_find_saved_regs): Fix "std" instruction pattern

gdb/ChangeLog
gdb/hppa-tdep.c

index 7baa02adfefa1428e1fe6f084d8d86c1e9471a69..9461c209adfadfba99489cdc3bbd3dad3bdf36d5 100644 (file)
@@ -1,5 +1,9 @@
 2004-02-22  Andrew Cagney  <cagney@redhat.com>
 
+       * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
+       unsigned.
+       (hppa_frame_find_saved_regs): Fix "std" instruction pattern
+       
        * config/pa/tm-hppa.h: Update copyright.
        (DEPRECATED_INIT_FRAME_PC): Delete macro.
        (deprecated_init_frame_pc_default): Delete declaration.
index 3cf05cf1d5282ecabbe4b77c65a8615cf9ad9bac..94124798e109a6d56a8890625a123fc6d9121707 100644 (file)
@@ -702,7 +702,7 @@ find_unwind_entry (CORE_ADDR pc)
 const unsigned char *
 hppa_breakpoint_from_pc (CORE_ADDR *pc, int *len)
 {
-  static const char breakpoint[] = {0x00, 0x01, 0x00, 0x04};
+  static const unsigned char breakpoint[] = {0x00, 0x01, 0x00, 0x04};
   (*len) = sizeof (breakpoint);
   return breakpoint;
 }
@@ -4149,7 +4149,7 @@ hppa_frame_find_saved_regs (struct frame_info *frame_info,
              && extract_14 (inst) >= 0)
            frame_saved_regs[reg] = get_frame_base (frame_info);
          /* A std has explicit post_modify forms.  */
-         else if ((inst & 0xfc00000c0) == 0x70000008)
+         else if ((inst & 0xfc00000c) == 0x70000008)
            frame_saved_regs[reg] = get_frame_base (frame_info);
          else
            {