From: Elena Zannoni <ezannoni@redhat.com>
To: Michal Ludvig <mludvig@suse.cz>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] eh_frame handling
Date: Mon, 20 May 2002 18:10:00 -0000 [thread overview]
Message-ID: <15593.40545.942503.555444@localhost.redhat.com> (raw)
In-Reply-To: <3CE26A82.2070207@suse.cz>
Michal Ludvig writes:
> Michal Ludvig wrote:
> > Hi all,
> > these changes will allow backtrace even through objects without
> > debug_frame section. Note that gcc must produce all information
> > necessary in eh_frame (perhaps -fasynchronous-unwind-tables flag?).
> >
> > 2002-05-14 Michal Ludvig <mludvig@suse.cz>
> > * dwarf2cfi.c (frame_state_for): Added safety check for a valid
> > fde->cie_ptr.
> > (dwarf2_build_frame_info): Added handling for eh_frame.
>
> I have slightly rewritten finding the appropriate CIE for a given FDE so
> that it counts with multiple objfiles now.
>
> Any comments? Can I commit?
>
> Michal Ludvig
> --
> * SuSE CR, s.r.o * mludvig@suse.cz
> * +420 2 9654 5373 * http://www.suse.cz
> Index: dwarf2cfi.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v
> retrieving revision 1.5
> diff -c -3 -p -r1.5 dwarf2cfi.c
> *** dwarf2cfi.c 14 May 2002 08:24:26 -0000 1.5
> --- dwarf2cfi.c 15 May 2002 13:59:06 -0000
> *************** frame_state_for (struct context *context
> *** 802,812 ****
> context->args_size = 0;
> context->lsda = 0;
>
> ! if ((fde = get_fde_for_addr (context->ra - 1)) != NULL)
> ! {
> ! fs->pc = fde->initial_location;
>
> cie = fde->cie_ptr;
> fs->code_align = cie->code_align;
> fs->data_align = cie->data_align;
> fs->retaddr_column = cie->ra;
> --- 802,816 ----
> context->args_size = 0;
> context->lsda = 0;
>
> ! if ((fde = get_fde_for_addr (context->ra - 1)) == NULL)
> ! return;
> !
We shouldn't be using assignments inside conditions. Could you split
this up?
The rest is approved.
I have a general question about this file. There are basically no
comments in it, would it be possible to add something here and there
to help figure out what's going on?
Thanks
Elena
next prev parent reply other threads:[~2002-05-21 1:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 9:01 Michal Ludvig
2002-05-15 7:02 ` Michal Ludvig
2002-05-20 18:10 ` Elena Zannoni [this message]
2002-05-22 7:52 ` Michal Ludvig
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=15593.40545.942503.555444@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mludvig@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