Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: drow@false.org, gdb@sourceware.org
Subject: Re: Debugging a frameless function
Date: Sat, 02 May 2009 09:23:00 -0000	[thread overview]
Message-ID: <834ow3g8qh.fsf@gnu.org> (raw)
In-Reply-To: <200904291908.n3TJ8ic6007273@brahms.sibelius.xs4all.nl>

> Date: Wed, 29 Apr 2009 21:08:44 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: drow@false.org, gdb@sourceware.org
> 
> > > Date: Wed, 29 Apr 2009 14:39:46 -0400
> > > From: Daniel Jacobowitz <drow@false.org>
> > > Cc: gdb@sourceware.org
> > 
> > Thanks for responding.
> > 
> > > Sounds like the debug info is bad.
> > 
> > But then why does GDB 6.1 have no problems debugging the same binary?
> 
> Did GDB 6.1 have the DWARF2 frame unwinder enabled for DJGPP?

Interestingly, it did, at least if my reading of the code is correct.

i386-tdep.c from GDB 6.1 says:

  /* Hook in the DWARF CFI frame unwinder.  */
  frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);

whereas in current CVS we have this instead:

  /* Hook in the DWARF CFI frame unwinder.  */
  dwarf2_append_unwinders (gdbarch);

and dwarf2_append_unwinders is simply

  /* Append the DWARF-2 frame unwinders to GDBARCH's list.  */
  void
  dwarf2_append_unwinders (struct gdbarch *gdbarch)
  {
    frame_unwind_append_unwinder (gdbarch, &dwarf2_frame_unwind);
    frame_unwind_append_unwinder (gdbarch, &dwarf2_signal_frame_unwind);
  }

So the only difference, beyond the code changes in the called
subroutines, is that in the current code base we also append an
unwinder for signal frames.  But since DJGPP does not have such
frames, that isn't supposed to do any harm, is it?

TIA


  parent reply	other threads:[~2009-05-02  9:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-29 18:39 Eli Zaretskii
2009-04-29 18:54 ` Daniel Jacobowitz
2009-04-29 19:09   ` Eli Zaretskii
2009-04-29 19:12     ` Mark Kettenis
2009-04-29 20:44       ` Eli Zaretskii
2009-05-02  9:23       ` Eli Zaretskii [this message]
2009-04-29 19:23     ` Daniel Jacobowitz
2009-04-29 19:24       ` Eli Zaretskii
2009-05-02  9:17       ` Eli Zaretskii
2009-04-29 18:57 ` Mark Kettenis

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=834ow3g8qh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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