diff options
author | Nick Clifton <nickc@redhat.com> | 2000-07-03 21:52:37 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-07-03 21:52:37 +0000 |
commit | c07ab2ec0cc5730de491dc2164d3af73ac5f904c (patch) | |
tree | cb02d0bcf5ec2191488fe525c06daabe9bbc3462 /opcodes/h8300-dis.c | |
parent | 2bfa91eece204bb61c03bc149026a1c6a114a5a5 (diff) | |
download | gdb-c07ab2ec0cc5730de491dc2164d3af73ac5f904c.zip gdb-c07ab2ec0cc5730de491dc2164d3af73ac5f904c.tar.gz gdb-c07ab2ec0cc5730de491dc2164d3af73ac5f904c.tar.bz2 |
Fix formatting.
Diffstat (limited to 'opcodes/h8300-dis.c')
-rw-r--r-- | opcodes/h8300-dis.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/opcodes/h8300-dis.c b/opcodes/h8300-dis.c index 489aa8c..61350b0 100644 --- a/opcodes/h8300-dis.c +++ b/opcodes/h8300-dis.c @@ -87,7 +87,7 @@ bfd_h8_disassemble (addr, info, mode) int bit = 0; int plen = 0; static boolean init = 0; - struct h8_opcode *q = h8_opcodes; + struct h8_opcode *q; char CONST **pregnames = mode != 0 ? lregnames : wregnames; int status; int l; @@ -112,13 +112,11 @@ bfd_h8_disassemble (addr, info, mode) status = info->read_memory_func (addr + l, data + l, 2, info); /* Find the exact opcode/arg combo. */ - while (q->name) + for (q = h8_opcodes; q->name; q++) { - op_type *nib; + op_type *nib = q->data.nib; unsigned int len = 0; - nib = q->data.nib; - while (1) { op_type looking_for = *nib; @@ -398,7 +396,7 @@ bfd_h8_disassemble (addr, info, mode) } fail: - q++; + ; } /* Fell off the end. */ |