Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kazu Hirata <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
Date: Fri, 04 Jul 2003 02:14:00 -0000	[thread overview]
Message-ID: <20030703.221347.40819673.kazu@cs.umass.edu> (raw)
In-Reply-To: <3F04C3DC.4050002@redhat.com>

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?

I just built latest mainline gdb again, and I noticed that the error
is now gone.  All this might be simply due to my oversight and/or
operator error.  I'll run gcc testsuite to see what happens.

Sorry for taking up your time.

Kazu Hirata


      parent reply	other threads:[~2003-07-04  2:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-03 22:00 Kazu Hirata
2003-07-03 23:09 ` Kazu Hirata
2003-07-04  0:01 ` Michael Snyder
2003-07-04  1:32   ` Kazu Hirata
2003-07-04  2:14   ` Kazu Hirata [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030703.221347.40819673.kazu@cs.umass.edu \
    --to=kazu@cs.umass.edu \
    --cc=dvenkat@noida.hcltech.com \
    --cc=gdb@sources.redhat.com \
    --cc=msnyder@redhat.com \
    --cc=rsandifo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox