Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: davidm@hpl.hp.com, gdb-patches@sources.redhat.com
Subject: Re: new gdb arch routine FRAME_UNCHANGED
Date: Mon, 13 May 2002 14:15:00 -0000	[thread overview]
Message-ID: <15584.11515.164115.822423@napali.hpl.hp.com> (raw)
In-Reply-To: <3CDDE701.90603@cygnus.com>

>>>>> On Sat, 11 May 2002 23:52:33 -0400, Andrew Cagney <ac131313@cygnus.com> said:

  Andrew> Tossing out the work-in-progress will probably be useful -
  Andrew> KevinB (ia64 maintainer) would at very likely be interested
  Andrew> in what is comming his way :-)

Oh, I already discussed the complete patch with KevinB.

  Andrew> Hmm, is it possible to re-enter a function without changing
  Andrew> the register stack pointer?

Yes.

  Andrew> If it isn't then the register
  Andrew> stack pointer could be used for frame->frame.

That doesn't work.  I think you might be able to get away with using
the memory stack pointer *OR* the register stack pointer as a unique
id for each frame, but that seems rather ugly and I suspect there are
cases where you might run into ambiguities.

  >> Is the idea to treat frame_id as an opaque structure?  If so, I
  >> could add a routine to the unwind library API to obtain a unique
  >> frame-id for a given frame.  That way, the ia64 issue could be
  >> hidden behind the API.

  Andrew> The value can't be really opaque.  GUI code and MI are
  Andrew> easier if they don't have to worry about malloc/free
  Andrew> (frame_id being a lightweight) and MI needs to be able to
  Andrew> pass the contents back to clients.

Oh, by "opaque" I didn't mean a "void *".  Just an object of a fixed
size with an undefined structure.  I agree that it's preferable to be
able to declare automatic variables of this type.  I was thinking of
having an array of "void *" inside an struct, with the array size
being architecture-specific.

  Andrew> However, gdbarch methods to fill in and compare frame_id's
  Andrew> could certainly be added.

OK, that would probably do it.  Do you see any need to calculate a
hash or is comparison for equality sufficient?

	--david




  reply	other threads:[~2002-05-13 21:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-10 17:23 David Mosberger
2002-05-10 18:04 ` Andrew Cagney
2002-05-10 19:05   ` David Mosberger
2002-05-11 20:52     ` Andrew Cagney
2002-05-13 14:15       ` David Mosberger [this message]
2002-05-13 15:46         ` Andrew Cagney
2002-05-13 15:57           ` Kevin Buettner
2002-05-13 16:14             ` Andrew Cagney
2002-05-13 19:43               ` David Mosberger
2002-05-13 19:57                 ` Andrew Cagney
2002-05-13 20:33               ` David Mosberger
2002-06-26 20:26 ` Andrew Cagney

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=15584.11515.164115.822423@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=ac131313@cygnus.com \
    --cc=davidm@hpl.hp.com \
    --cc=gdb-patches@sources.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