From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19052 invoked by alias); 13 Sep 2005 16:09:25 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 19009 invoked by uid 22791); 13 Sep 2005 16:09:14 -0000 Received: from multi.imgtec.com (HELO multi.imgtec.com) (194.200.65.239) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 13 Sep 2005 16:09:14 +0000 X-SEF-Processed: 5_0_0_812__2005_09_13_17_08_57 Received: from Unknown [192.168.5.239] by multi.imgtec.com - SurfControl E-mail Filter (5.0); Tue, 13 Sep 2005 17:08:57 +0100 Received: from lemail1.le.imgtec.org ([192.168.152.65]) by klmail1.kl.imgtec.org with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Sep 2005 17:08:57 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Gas error messages Date: Tue, 13 Sep 2005 16:09:00 -0000 Message-ID: <0D107966AF6D79418315B7C5549F4B5104DFED@lemail1.le.imgtec.org> From: "Will Newton" To: "Frank Ch. Eigler" Cc: X-SW-Source: 2005-q3/txt/msg00025.txt.bz2 =20 > > I'm parsing an operand with a custom parser, e.g.: > > [...] > > And then in the .opc file: > > Parse_my_parser(...) > > [...] >=20 > Are you sure this function in the .opc file is being used?=20=20 > Parsers are normally named "parse_*" instead of "Parse_*". Sorry, I have to use Outlook for my email. It is most insistent that my sentences begin with capital letters. :-) The function is actually called "parse_byte_offset6" and is definitely called. > > However, when the error message is returned, instead of printing my=20 > > error message, as expected, gas spits out: > > test.s:28: Error: unrecognized keyword/register name [...] >=20 > It's hard to say definitively. The error message could come=20 > from a prior operand, or a different problem. It may be=20 > informative to inspect the opcodes/ generated files, put=20 > debugger breakpoints or printf's into the code, and running=20 > the test again. I have added printfs and if I return anything other than NULL I get the error above. I'm using binutils 2.16.1 and cgen HEAD. I'll try with a newer binutils and see if that changes anything.