Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Maxim Grigoriev <maxim@tensilica.com>
Cc: gdb@sourceware.org, Marc Gauthier <marc@tensilica.com>,
		Bob Wilson <bwilson@tensilica.com>
Subject: Re: Xtensa port
Date: Sat, 23 Sep 2006 14:26:00 -0000	[thread overview]
Message-ID: <20060923142650.GA7584@nevyn.them.org> (raw)
In-Reply-To: <45147F94.4020701@hq.tensilica.com>

On Fri, Sep 22, 2006 at 05:28:04PM -0700, Maxim Grigoriev wrote:
> I need an FP number. And, the most reliable source for this information 
> is DWARF data.

You're relying on the presence of DWARF symbolic debug information, and
yet you can't use DWARF-2 unwinding (.debug_frame, dwarf2-frame.c) and
avoid the issue entirely?  And you have no way to determine this
reliably from instruction scanning, like other ports do (see
prologue-value.c)?  I'd recommend either in preference to this.
I can't tell you how much work either would be, because I don't
know much about Xtensa.

The problem with using DW_AT_frame_base is that there's no guarantee
it is related to what you want it to be in this context.  The compiler
has a lot of freedom in what it places there; it's only meaningful
in context of local variable locations in the same frame.  For
instance, you're completely ignoring any bias.

> If there is no such "utility" request ( which I thought is the case ), 
> I'd need to introduce it. That would be an update to the generic part of 
> GDB. And, I was given specific instructions to avoid any updates to the 
> generic code, when I submit an architecture port.

I don't know why.  They should generally be done separately, with
individual explanations, but hacking around the GDB core instead of
fixing it is generally frowned upon.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-09-23 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <45142A88.7000805@hq.tensilica.com>
     [not found] ` <20060922190726.GA8221@nevyn.them.org>
2006-09-23  0:28   ` Maxim Grigoriev
2006-09-23 14:26     ` Daniel Jacobowitz [this message]
2006-09-28  1:15 Maxim Grigoriev
  -- strict thread matches above, loose matches on Subject: below --
2006-09-22 18:30 Maxim Grigoriev

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=20060923142650.GA7584@nevyn.them.org \
    --to=drow@false.org \
    --cc=bwilson@tensilica.com \
    --cc=gdb@sourceware.org \
    --cc=marc@tensilica.com \
    --cc=maxim@tensilica.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