Gas error messages
Frank Ch. Eigler
fche@redhat.com
Tue Sep 13 14:56:00 GMT 2005
Hi -
On Tue, Sep 13, 2005 at 03:50:47PM +0100, Will Newton wrote:
> I'm parsing an operand with a custom parser, e.g.:
> [...]
> And then in the .opc file:
> Parse_my_parser(...)
> [...]
Are you sure this function in the .opc file is being used? Parsers
are normally named "parse_*" instead of "Parse_*".
> However, when the error message is returned, instead of printing my
> error message, as expected, gas spits out:
> test.s:28: Error: unrecognized keyword/register name
> [...]
It's hard to say definitively. The error message could come from a
prior operand, or a different problem. It may be informative to
inspect the opcodes/ generated files, put debugger breakpoints or
printf's into the code, and running the test again.
- FChE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/cgen/attachments/20050913/55a744c5/attachment.sig>
More information about the Cgen
mailing list