summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-09-30 16:02:35 +0000
committerPierre Muller <muller@sourceware.org>2010-09-30 16:02:35 +0000
commite7390eec2e49ac9d5bf459e26dcf905aa74c2e07 (patch)
tree1d58d23c91816467ef8ef8e4edcf693ab61bd6af
parentd2ae9c847a107449b04d81f50ba6c6ba7e81ad2a (diff)
downloadbinutils-gdb-e7390eec2e49ac9d5bf459e26dcf905aa74c2e07.tar.gz
* s390-mkopc.c (main): Exit with error 1 if sscanf fails
to parse all 6 parameters.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/s390-mkopc.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 379a2986cf4..934247be4e3 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-30 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * s390-mkopc.c (main): Exit with error 1 if sscanf fails
+ to parse all 6 parameters.
+
2010-09-28 Pierre Muller <muller@ics.u-strasbg.fr>
* s390-mkopc.c (main): Change description array size to 80.
diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c
index d4cf3c999d8..b3f13ab5368 100644
--- a/opcodes/s390-mkopc.c
+++ b/opcodes/s390-mkopc.c
@@ -393,7 +393,10 @@ main (void)
insertExpandedMnemonic (opcode, mnemonic, format, min_cpu, mode_bits);
}
else
- fprintf (stderr, "Couldn't scan line %s\n", currentLine);
+ {
+ fprintf (stderr, "Couldn't scan line %s\n", currentLine);
+ exit (1);
+ }
}
dumpTable ();