From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2921 invoked by alias); 4 Jul 2003 01:32:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2907 invoked from network); 4 Jul 2003 01:32:41 -0000 Received: from unknown (HELO mail.cs.umass.edu) (128.119.243.168) by sources.redhat.com with SMTP; 4 Jul 2003 01:32:41 -0000 Received: from localhost (IDENT:RIniR4iQLxOr/f36KYLnHe8g15pknHEP@loki.cs.umass.edu [128.119.243.168]) by mail.cs.umass.edu (8.12.9/8.12.5) with ESMTP id h641W2IN005907; Thu, 3 Jul 2003 21:32:02 -0400 Date: Fri, 04 Jul 2003 01:32:00 -0000 Message-Id: <20030703.213202.102137044.kazu@cs.umass.edu> To: msnyder@redhat.com Cc: gdb@sources.redhat.com, rsandifo@redhat.com, dvenkat@noida.hcltech.com Subject: Re: Signal 4 from h8300-hms-run From: Kazu Hirata In-Reply-To: <3F04C3DC.4050002@redhat.com> References: <20030703.175942.48518372.kazu@cs.umass.edu> <3F04C3DC.4050002@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Net-Tests: NO (loki, relay 128.119.243.168) X-Spam-Checked: This message probably not SPAM X-Spam-Score: -2.3, Required: 5 X-Spam-Tests: IN_REP_TO,QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES X-Spam-Report: ---- Start SpamAssassin results -2.30 points, 5 required; * -0.5 -- Has a valid-looking References header * -0.5 -- Has a In-Reply-To header * -0.3 -- BODY: Contains twice quoted reply * -0.5 -- BODY: Contains what looks like a quoted email text * -0.5 -- Reply with quoted text ---- End of SpamAssassin results X-Scanned-By: MIMEDefang 2.30 (www . roaringpenguin . com / mimedefang) X-SW-Source: 2003-07/txt/msg00072.txt.bz2 Hi Michael, > > While playing with the mainline of gdb, I noticed that h8300-hms-run > > does not seem to simulate the following. > > > > .h8300h > > .section .rodata > > .align 2 > > .L9: > > .long 1234 > > .align 1 > > .global _main > > _main: > > sub.l er0,er0 > > mov.l @(.L9,er0),er0 > > sub.l er0,er0 > > rts > > .end > > > > The expected output is nothing, but h8300-hms-run says > > > > program stopped with signal 4. > > > > If I change @(.L9,er0) to @.L9, I don't get the error any more. I am > > currently getting a lot of failures in gcc testsuite, and I am > > wondering if they all come from the same reason. I haven't figures > > out how this happens or which patch is causing this. The problem > > occurs with or without > > > > http://sources.redhat.com/ml/gdb-patches/2003-07/msg00053.html > > Hmmm... There's a subtle difference between constants that are > allowed to be symbols, and constants that aren't. But if it > assembles, it should run. > > Can you check to see if the assembler output is correct? OK. I tried two versions of binutils, 2003-06-25 15:00GMT and 2003-06-25 16:00GMT. They generate different output. Specifically, the former translates "mov.l @..." into "mov.w @(.L9,er0),er0", whereas the latter correctly translates. I confirmed that the binary of the latter is correct. Feeding this binary into gdb at "2003-06-25 16:00GMT" fails, so the issue seems to be on the simulator side. Kazu Hirata