Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: m68k structure return register
Date: Fri, 05 Oct 2007 20:36:00 -0000	[thread overview]
Message-ID: <20071005203623.GA12982@caradoc.them.org> (raw)
In-Reply-To: <200710051631.30523.vladimir@codesourcery.com>

On Fri, Oct 05, 2007 at 04:31:29PM +0400, Vladimir Prus wrote:
> Ok, so we can made structure return register right for all
> targets, except for uclinux.
> Or we can keep it as it us today -- wrong for bare-metal,
> rtems and unclinuxoldabi.
> Which one seems better?

I stumbled on another option today.  Take a look at target_is_uclinux
in m68klinux-tdep.c.

This is a property of the target, not reflected in the gdbarch,
unfortunately.  So we don't know it when we're initializing a
gdbarch and we can't record the result with the gdbarch.  We
might have to put a function pointer in the tdep structure
which returns the right register to use.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2007-10-05 20:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20  9:25 Vladimir Prus
2007-09-19 12:46 ` Vladimir Prus
2007-09-19 14:06   ` Daniel Jacobowitz
2007-09-20  9:06     ` Ralf Corsepius
2007-09-30 20:40     ` Vladimir Prus
     [not found]       ` <20070930204008.GA15765@caradoc.them.org>
2007-10-05 12:31         ` Vladimir Prus
2007-10-05 20:36           ` Daniel Jacobowitz [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=20071005203623.GA12982@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=vladimir@codesourcery.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