diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2008-01-09 01:24:07 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2008-01-09 01:24:07 +0000 |
commit | 50e8458f68f42c3f46ef5ea265a1162ab9fb7648 (patch) | |
tree | f8651b579be2c9aeafa264131bc79ca2eb2ae621 /opcodes | |
parent | 60b4775e82df324c0cb3735269092bb50044b262 (diff) | |
download | gdb-50e8458f68f42c3f46ef5ea265a1162ab9fb7648.zip gdb-50e8458f68f42c3f46ef5ea265a1162ab9fb7648.tar.gz gdb-50e8458f68f42c3f46ef5ea265a1162ab9fb7648.tar.bz2 |
2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (set_bitfield): Use fail () on error.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/i386-gen.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 8db2966..5afdccf 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ 2008-01-08 H.J. Lu <hongjiu.lu@intel.com> + * i386-gen.c (set_bitfield): Use fail () on error. + +2008-01-08 H.J. Lu <hongjiu.lu@intel.com> + * i386-gen.c (lineno): New. (filename): Likewise. (set_bitfield): Report filename and line numer on error. diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 1db9660..d7e3d16 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -451,9 +451,7 @@ set_bitfield (const char *f, bitfield *array, unsigned int size) return; } - printf ("%s: %d: Unknown bitfield: %s\n", - filename, lineno, f); - abort (); + fail (_("%s: %d: Unknown bitfield: %s\n"), filename, lineno, f); } static void |