From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15368 invoked by alias); 4 Jul 2003 00:01: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 15281 invoked from network); 4 Jul 2003 00:01:37 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 4 Jul 2003 00:01:37 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h6401aH29565 for ; Thu, 3 Jul 2003 20:01:36 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h6401WS20219; Thu, 3 Jul 2003 20:01:32 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h6401WK14394; Thu, 3 Jul 2003 17:01:32 -0700 Message-ID: <3F04C3DC.4050002@redhat.com> Date: Fri, 04 Jul 2003 00:01:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kazu Hirata CC: gdb@sources.redhat.com, rsandifo@redhat.com, dvenkat@noida.hcltech.com Subject: Re: Signal 4 from h8300-hms-run References: <20030703.175942.48518372.kazu@cs.umass.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00071.txt.bz2 Kazu Hirata wrote: > Hi, > > 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? Michael