* hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
authorJoel Brobecker <brobecker@gnat.com>
Mon, 13 Jun 2005 13:43:33 +0000 (13:43 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 13 Jun 2005 13:43:33 +0000 (13:43 +0000)
        bits of top byte in address.

gdb/ChangeLog
gdb/hppa-tdep.c

index 2e725e8..6a5c47b 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all
+       bits of top byte in address.
+
 2005-06-13  Wu Zhou  <woodzltc@cn.ibm.com>
 
        * eval.c (evaluate_subexp_standard): Add code to check the target
index 4db6ec8..c13231c 100644 (file)
@@ -2527,7 +2527,7 @@ hppa_pc_requires_run_before_use (CORE_ADDR pc)
      minimal symbols, I'm resorting to the gross hack of checking the
      top byte of the address for all 1's.  Sigh.  */
 
-  return (!target_has_stack && (pc & 0xFF000000));
+  return (!target_has_stack && (pc & 0xFF000000) == 0xFF000000);
 }
 
 /* Return the GDB type object for the "standard" data type of data in