aboutsummaryrefslogtreecommitdiff
path: root/opcodes/hppa-dis.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-09-23 14:28:25 +0000
committerJeff Law <law@redhat.com>1999-09-23 14:28:25 +0000
commit1fb72ed1442b771de7b294c66b4301bec9719948 (patch)
tree30c0db745ca2159f4371059bfbaaf617e3a3bd82 /opcodes/hppa-dis.c
parentfd232ac8d59c3a988d839ab5665aa58c90e6889c (diff)
downloadgdb-1fb72ed1442b771de7b294c66b4301bec9719948.zip
gdb-1fb72ed1442b771de7b294c66b4301bec9719948.tar.gz
gdb-1fb72ed1442b771de7b294c66b4301bec9719948.tar.bz2
* hppa-dis.c (print_insn_hppa): Replace 'B', 'M', 'g' and 'l' with
cleaner code using completer prefixes. Add 'Y'.
Diffstat (limited to 'opcodes/hppa-dis.c')
-rw-r--r--opcodes/hppa-dis.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c
index 35f32ec..5925217 100644
--- a/opcodes/hppa-dis.c
+++ b/opcodes/hppa-dis.c
@@ -512,6 +512,15 @@ print_insn_hppa (memaddr, info)
(*info->fprintf_func) (info->stream, "%s ",
short_bytes_compl_names[GET_COMPL (insn)]);
break;
+ case 'g':
+ (*info->fprintf_func) (info->stream, ",gate");
+ case 'p':
+ (*info->fprintf_func) (info->stream, ",l,push");
+ break;
+ case 'P':
+ (*info->fprintf_func) (info->stream, ",pop");
+ break;
+ case 'l':
case 'L':
(*info->fprintf_func) (info->stream, ",l");
break;
@@ -851,6 +860,11 @@ print_insn_hppa (memaddr, info)
/* addil %r1 implicit output. */
(*info->fprintf_func) (info->stream, "%%r1");
break;
+
+ case 'Y':
+ /* be,l %sr0,%r31 implicit output. */
+ (*info->fprintf_func) (info->stream, "%%sr0,%%r31");
+ break;
case '.':
(*info->fprintf_func) (info->stream, "%d",
@@ -1067,21 +1081,13 @@ print_insn_hppa (memaddr, info)
+ extract_22 (insn)),
info);
break;
- case 'B':
- fputs_filtered (",pop", info);
- break;
- case 'M':
- fputs_filtered (",push", info);
+ case 'Y':
+ /* be,l %sr0,%r31 implicit output. */
+ (*info->fprintf_func) (info->stream, "%%sr0,%%r31");
break;
case 'L':
fputs_filtered (",%r2", info);
break;
- case 'g':
- fputs_filtered (",gate", info);
- break;
- case 'l':
- fputs_filtered (",l", info);
- break;
default:
(*info->fprintf_func) (info->stream, "%c", *s);
break;