From 7b5c6b52e4427fd82b0240b52acefb12f83db001 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 13 Jun 2005 13:43:33 +0000 Subject: [PATCH] * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all bits of top byte in address. --- gdb/ChangeLog | 5 +++++ gdb/hppa-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e725e83e02..6a5c47b90b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-06-13 Joel Brobecker + + * hppa-tdep.c (hppa_pc_requires_run_before_use): Really test all + bits of top byte in address. + 2005-06-13 Wu Zhou * eval.c (evaluate_subexp_standard): Add code to check the target diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 4db6ec85f29..c13231c466d 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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 -- 2.30.2