Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: Kazu Hirata <kazu@cs.umass.edu>
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 00:01:00 -0000	[thread overview]
Message-ID: <3F04C3DC.4050002@redhat.com> (raw)
In-Reply-To: <20030703.175942.48518372.kazu@cs.umass.edu>

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




  parent reply	other threads:[~2003-07-04  0:01 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 [this message]
2003-07-04  1:32   ` Kazu Hirata
2003-07-04  2:14   ` Kazu Hirata

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=3F04C3DC.4050002@redhat.com \
    --to=msnyder@redhat.com \
    --cc=dvenkat@noida.hcltech.com \
    --cc=gdb@sources.redhat.com \
    --cc=kazu@cs.umass.edu \
    --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