aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-07-03 22:25:33 +0000
committerNick Clifton <nickc@redhat.com>2000-07-03 22:25:33 +0000
commit00d2865b835b1bba05334dcbb20201b6d99534d6 (patch)
tree7e0c931ab3e73f75424dfc50ef7c19190ef67401 /opcodes
parentc07ab2ec0cc5730de491dc2164d3af73ac5f904c (diff)
downloadgdb-00d2865b835b1bba05334dcbb20201b6d99534d6.zip
gdb-00d2865b835b1bba05334dcbb20201b6d99534d6.tar.gz
gdb-00d2865b835b1bba05334dcbb20201b6d99534d6.tar.bz2
Tidy up formatting.
Add -mall-opcodes, -mno-skip-bug, -mno-wrap.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/avr-dis.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index ad38600..737d7af 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
+
+ * avr-dis.c (avr_operand): Change _ () to _() around all strings
+ marked for translation (exception from the usual coding style).
+ (print_insn_avr): Initialize insn2 to avoid warnings.
+
2000-07-03 Kazu Hirata <kazu@hxi.com>
* h8300-dis.c (bfd_h8_disassemble): Improve readability.
diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c
index a774d8b..ee91d7f 100644
--- a/opcodes/avr-dis.c
+++ b/opcodes/avr-dis.c
@@ -103,7 +103,7 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs)
case 0: *buf++ = 'Z'; break;
case 2: *buf++ = 'Y'; break;
case 3: *buf++ = 'X'; break;
- default: buf += sprintf (buf, _ (" unknown register ")); break;
+ default: buf += sprintf (buf, _(" unknown register ")); break;
}
if (insn & 0x1)
*buf++ = '+';
@@ -165,7 +165,7 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs)
break;
case 'n':
- sprintf (buf, _ ("Internal disassembler error"));
+ sprintf (buf, _("Internal disassembler error"));
break;
case 'K':
@@ -205,7 +205,7 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs)
break;
default:
- sprintf (buf, _ ("unknown constraint `%c'"), constraint);
+ sprintf (buf, _("unknown constraint `%c'"), constraint);
}
}
@@ -280,6 +280,7 @@ print_insn_avr(addr, info)
op2[0] = 0;
comment1[0] = 0;
comment2[0] = 0;
+ insn2 = 0;
if (opcode->insn_size > 1)
{