Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Berlin <dan@cgsoftware.com>
To: Jim Blandy <jimb@zwingli.cygnus.com>
Cc: Jiri Smid <smid@suse.cz>, gdb-patches@sources.redhat.com
Subject: Re: [RFC/RFA] use of dwarf2 unwind informations
Date: Wed, 17 Oct 2001 09:19:00 -0000	[thread overview]
Message-ID: <87k7xutq5k.fsf@cgsoftware.com> (raw)
In-Reply-To: <npu1wy8cz4.fsf@zwingli.cygnus.com>

Jim Blandy <jimb@zwingli.cygnus.com> writes:

> Jiri Smid <smid@suse.cz> writes:
>>   This is code which allows gdb to use dwarf2 frame informations for
>> stack unwinding.
> 
> It looks good; could you commit this?
> 
> I have some initial questions, though:
> 
> - How can I get GCC to produce .debug_frame sections to test this?
>   Do you have a patch for GCC I could use, or is there some flag we
>   can use to simply have GCC divert its .eh_frame contents to a
>   .debug_frame section?
Errr, gcc trunk will produce debug_frame info by default for dwarf2
now.


> 
> - It's my understanding that the .eh_frame format used by GCC and the
>   .debug_frame format described in the Dwarf2 standard are actually
>   slightly different.  Which one does your patch support?

It depends.
Unless he changed the code i gave him a whole lot, which reading
through the reading portion, he didn't, it should support both.

> 
> - Is context_cpy correct?  It seems to me that it copies the immediate
>   contents of the `struct context', but then only copies the first
>   element of the `reg' array.
> 
> - The `read_pointer' function assumes `sizeof (CORE_ADDR)' in GDB
>   gives the size of pointers appearing the Dwarf 2 information.  This
>   confuses a host type (CORE_ADDR) with what I think is supposed to be
>   a target-sized address.  CORE_ADDR is simply the largest unsigned
>   integer type GDB can find.  I think it should use TARGET_ADDR_BIT /
>   TARGET_CHAR_BIT, unless the Dwarf 2 info specifies the proper size
>   somewhere, the way it does for .debug_info data.
> 
> 
> ... Anyway, I'll keep reading.  Thanks very much!

-- 
"I went to court for a parking ticket.  I pleaded insanity.  I
said, "Your honor, why would anyone in their right mind park in
the passing lane?"
"-Steven Wright


  reply	other threads:[~2001-10-17  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-27  2:48 Jiri Smid
2001-10-02 11:12 ` Jim Blandy
2001-10-17  9:08 ` Jim Blandy
2001-10-17  9:19   ` Daniel Berlin [this message]
2001-10-17  9:26     ` Daniel Berlin
2001-12-06 15:26 ` Daniel Jacobowitz

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=87k7xutq5k.fsf@cgsoftware.com \
    --to=dan@cgsoftware.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@zwingli.cygnus.com \
    --cc=smid@suse.cz \
    /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