From 68c8d698d4e7df0ca1197ef8546a37d2738957ee Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Wed, 5 May 1993 22:26:57 +0000 Subject: * Patches from Jeffrey Law . * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm, and ssm instructions. * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New helper functions for print_insn. --- gdb/hppa-tdep.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gdb/hppa-tdep.c') diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 5f574d1..49af79e 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -125,6 +125,24 @@ extract_5_store (word) return low_sign_extend (word & MASK_5, 5); } +/* extract the immediate field from a break instruction */ + +unsigned +extract_5r_store (word) + unsigned word; +{ + return (word & MASK_5); +} + +/* extract the immediate field from a {sr}sm instruction */ + +unsigned +extract_5R_store (word) + unsigned word; +{ + return (word >> 16 & MASK_5); +} + /* extract an 11 bit immediate field */ int -- cgit v1.1