From 673e1bab44eae4dd31c45ea2b84d025f5ac00d5e Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Fri, 18 Aug 1995 13:27:21 +0000 Subject: [PATCH] * sparc-tdep.c (isbranch): Fix typo which caused wrong target addresses for annulled branches. --- gdb/ChangeLog | 5 +++++ gdb/sparc-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d19e663..51e4a04 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 18 06:26:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * sparc-tdep.c (isbranch): Fix typo which caused wrong + target addresses for annulled branches. + Wed Aug 16 21:54:39 1995 Jeff Law (law@snake.cs.utah.edu) * config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define. diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 45031a2..5a1eaa3 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -16,7 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* ??? Support for calling functions from gdb in sparc64 is unfinished. */ @@ -537,7 +537,7 @@ isbranch (instruction, addr, target) val = X_A (instruction) ? baa : ba; else val = X_A (instruction) ? bicca : bicc; - switch (X_OP (instruction)) + switch (X_OP2 (instruction)) { case 2: case 6: -- 2.7.4