Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] DWARF frame unwinder executes one too many rows
Date: Mon, 06 Aug 2012 15:19:00 -0000	[thread overview]
Message-ID: <20120806151824.GA5438@host2.jankratochvil.net> (raw)
In-Reply-To: <873940kqeu.fsf@fleche.redhat.com>

On Mon, 06 Aug 2012 17:10:01 +0200, Tom Tromey wrote:
> You left out an important part of my message:
> 
> "but looking at the diff it appears I just hoisted the call to
> get_frame_pc out of execute_cfa_program."

That's true but I do not see any change with it.  get_frame_pc was just called
in the callers instead, not as the first statement of the callee.

8d35b3995d73e87826263f02da0fd05190d34638

 execute_cfa_program (struct dwarf2_fde *fde, const gdb_byte *insn_ptr,
-                    const gdb_byte *insn_end, struct frame_info *this_frame,
-                    struct dwarf2_frame_state *fs)
+                    const gdb_byte *insn_end, struct gdbarch *gdbarch,
+                    CORE_ADDR pc, struct dwarf2_frame_state *fs)
 {
   int eh_frame_p = fde->eh_frame_p;
-  CORE_ADDR pc = get_frame_pc (this_frame);
   int bytes_read;
and
   execute_cfa_program (fde, fde->cie->initial_instructions,
-                      fde->cie->end, this_frame, fs);
+                      fde->cie->end, gdbarch, get_frame_pc (this_frame), fs);
and
-  execute_cfa_program (fde, fde->instructions, fde->end, this_frame, fs);
+  execute_cfa_program (fde, fde->instructions, fde->end, gdbarch,
+                      get_frame_pc (this_frame), fs);


Moreover without a reproducer I do not feel comfortable to say anything.


Jan


  reply	other threads:[~2012-08-06 15:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-26 22:51 Joel Brobecker
2012-07-27 11:07 ` asmwarrior
2012-07-27 11:15   ` asmwarrior
2012-07-27 12:14     ` Joel Brobecker
2012-07-30 17:43 ` Tom Tromey
2012-08-16 15:47   ` Joel Brobecker
2012-08-04 12:30 ` Jan Kratochvil
2012-08-06 14:05   ` Tom Tromey
2012-08-06 15:06     ` Jan Kratochvil
2012-08-06 15:10       ` Tom Tromey
2012-08-06 15:19         ` Jan Kratochvil [this message]
2012-08-17 18:14   ` [patch] testsuite: Test the unwinder off-by-one [Re: [RFA] DWARF frame unwinder executes one too many rows] Jan Kratochvil
2012-08-27 16:35     ` [commit] " Jan Kratochvil

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=20120806151824.GA5438@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@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