aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorDonald Lindsay <dlindsay@redhat.com>1999-11-16 03:37:02 +0000
committerDonald Lindsay <dlindsay@redhat.com>1999-11-16 03:37:02 +0000
commitcfbd315cb24f6ed795f715fe376182bfcc7b52de (patch)
tree38e4af4fcb5a0f657edebfbe5373164bc14c4b7b /opcodes/arm-dis.c
parent73c89d4876b3b10276edb1a5858d4c7e365f029a (diff)
downloadgdb-cfbd315cb24f6ed795f715fe376182bfcc7b52de.zip
gdb-cfbd315cb24f6ed795f715fe376182bfcc7b52de.tar.gz
gdb-cfbd315cb24f6ed795f715fe376182bfcc7b52de.tar.bz2
Added 'X' format to ARM code.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 9687134..9c44bf8 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -491,6 +491,14 @@ print_insn_arm (pc, info, given)
func (stream, "\t; IMBRange");
}
break;
+ case 'X':
+ {
+ long reg;
+ reg = given >> bitstart;
+ reg &= (2 << (bitend - bitstart)) - 1;
+ func (stream, "%01x", reg & 0xf);
+ }
+ break;
case 'f':
{
long reg;