summaryrefslogtreecommitdiff
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
commit209f55e1179efaa9d2815bc1388a2e8e7f8a982e (patch)
tree62337815aacd0fca8c62a026a9793da1569d4000 /opcodes
parent70508b8dc33dc15bf707c456a3e75ba567bc6cb2 (diff)
downloadgdb-209f55e1179efaa9d2815bc1388a2e8e7f8a982e.tar.gz
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 ad3860082c2..737d7af05e7 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 a774d8b7c34..ee91d7f223c 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)
{