aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-gen.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-02-19 12:53:27 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-02-19 12:53:27 -0800
commit10632b79991d519b39ffb2edac40605795b47d6f (patch)
treeb286d6401af7e4a6f828ba57195e36d6ebde0c89 /opcodes/i386-gen.c
parent0ff2b86e7c14177ec7f9e1257f8e697814794017 (diff)
downloadgdb-10632b79991d519b39ffb2edac40605795b47d6f.zip
gdb-10632b79991d519b39ffb2edac40605795b47d6f.tar.gz
gdb-10632b79991d519b39ffb2edac40605795b47d6f.tar.bz2
Don't output trailing space
* i386-gen.c (output_cpu_flags): Don't output trailing space. (output_opcode_modifier): Likewise. (output_operand_type): Likewise. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r--opcodes/i386-gen.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 343f58d..59f7e09 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -713,7 +713,10 @@ output_cpu_flags (FILE *table, bitfield *flags, unsigned int size,
for (i = 0; i < size - 1; i++)
{
- fprintf (table, "%d, ", flags[i].value);
+ if (((i + 1) % 20) != 0)
+ fprintf (table, "%d, ", flags[i].value);
+ else
+ fprintf (table, "%d,", flags[i].value);
if (((i + 1) % 20) == 0)
{
/* We need \\ for macro. */
@@ -801,7 +804,10 @@ output_opcode_modifier (FILE *table, bitfield *modifier, unsigned int size)
for (i = 0; i < size - 1; i++)
{
- fprintf (table, "%d, ", modifier[i].value);
+ if (((i + 1) % 20) != 0)
+ fprintf (table, "%d, ", modifier[i].value);
+ else
+ fprintf (table, "%d,", modifier[i].value);
if (((i + 1) % 20) == 0)
fprintf (table, "\n ");
}
@@ -842,12 +848,15 @@ output_operand_type (FILE *table, bitfield *types, unsigned int size,
for (i = 0; i < size - 1; i++)
{
- fprintf (table, "%d, ", types[i].value);
+ if (((i + 1) % 20) != 0)
+ fprintf (table, "%d, ", types[i].value);
+ else
+ fprintf (table, "%d,", types[i].value);
if (((i + 1) % 20) == 0)
{
/* We need \\ for macro. */
if (macro)
- fprintf (table, "\\\n%s", indent);
+ fprintf (table, " \\\n%s", indent);
else
fprintf (table, "\n%s", indent);
}