public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: eliz@gnu.org
Cc: brobecker@gnat.com, mec.gnu@mindspring.com, cagney@gnu.org,
	gdb@sources.redhat.com
Subject: Re: [6.2] PROBLEMS file
Date: Fri, 23 Jul 2004 11:22:00 -0000	[thread overview]
Message-ID: <200407230923.i6N9NWOt005359@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <6654-Fri23Jul2004110924+0300-eliz@gnu.org>

   Date: Fri, 23 Jul 2004 11:09:25 +0200
   From: "Eli Zaretskii" <eliz@gnu.org>

   I did.  It's possible that I misunderstand something, or even make
   some stupid mistake, but there's no need to assume I didn't read the
   message to which I responded.

Sorry Eli.  I lost my temper a bit.  The issue keeps coming up again
and again :-(.

   > Frame #2 is executing Microsoft shit.  I
   > don't know what debugging format they use, and I don't think they ship
   > their official releases with debugging info in it.

   Sorry, I fail to see the relevance of this.  No matter what debug info
   is there, GDB should be able to track stack frames, shouldn't it?  And
   it actually does at least once: it succeeds in showing
   WaitForSingleObjectEx as the caller of ntdll!ZwWaitForSingleObject.
   Why can't it continue from there?  Unless someone can prove to us (by
   disassemblying at that spot) that the functions which give us trouble
   are frameless, I'm not sure we should dismiss this case so easily.

Joel and I looked at the disassembled code, it's a complicated
function that defenitely doesn't set up a proper frame.

   > The code looks like hand-optimized assembler.

   Btw, Joel, could you please see if GDB 5.x did succeed to show a good
   backtrace in this very case?

It (silently) skipped a few frames.

   Anyway, the real reason I said what I did was that I see something
   very similar in a DJGPP-compiled Emacs; see below.  Now this is pure
   GCC code and DJGPP runtime, no Microsoft shit anywhere in sight, and I
   can tell you with 100% certainty that no hand-optimized assembly is
   used anywhere in the frames that are misbehaving in GDB.  It's all
   part of Emacs sources written in C, you can actually look up the
   sources in the Emacs codebase.  Doesn't it look similar to what Joel
   posted?

In some ways, yes.  GDB loses track after frame #21, but I doubt
whether recursive_edit_1 is a frameless function.  Can you post a
dissassembly of that function?

Mark

  reply	other threads:[~2004-07-23  9:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-22 12:14 Michael Elizabeth Chastain
2004-07-22 18:28 ` Joel Brobecker
2004-07-22 19:26   ` Eli Zaretskii
2004-07-22 20:51     ` Mark Kettenis
2004-07-23  9:24       ` Eli Zaretskii
2004-07-23 11:22         ` Mark Kettenis [this message]
2004-07-23 12:03           ` Eli Zaretskii
2004-07-23 12:13             ` Eli Zaretskii
2004-07-23 12:16             ` Dave Korn
2004-07-23 13:36             ` Mark Kettenis
2004-07-23 16:17               ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2004-07-23  5:44 Michael Elizabeth Chastain
2004-07-23 20:44 ` Andrew Cagney
2004-07-19  3:51 Andrew Cagney
2004-07-19 21:01 ` Eli Zaretskii
2004-07-21 21:12   ` Mark Kettenis
2004-07-21 22:05     ` H. J. Lu
2004-07-22 20:58       ` Mark Kettenis
2004-07-22 21:33         ` Joel Brobecker
2004-07-22 21:38         ` H. J. Lu
2004-07-21 22:17     ` Andrew Cagney
2004-07-22  7:13       ` Eli Zaretskii
2004-07-22 13:04     ` Dave Korn
2004-07-22 15:17       ` 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=200407230923.i6N9NWOt005359@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=brobecker@gnat.com \
    --cc=cagney@gnu.org \
    --cc=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=mec.gnu@mindspring.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).