From: Michael Chastain <mec.gnu@mindspring.com>
To: gdb@sources.redhat.com, cagney@gnu.org
Subject: Re: Abort backtrace when consecutive zero PCs?
Date: Wed, 15 Sep 2004 18:47:00 -0000 [thread overview]
Message-ID: <41488E3B.nailC0Y21J3UA@mindspring.com> (raw)
In-Reply-To: <41487D1D.7040504@gnu.org>
Andrew Cagney <cagney@gnu.org> wrote:
> While we definitly need to allow a backtrace through a single zero PC
> (for a NULL pointer call - signull.exp) should we make GDB abort when
> two or more consecutive frames have a zero PC?
Perhaps abort it after an identical frame is seen a second time?
It's not the zero-ness that kills us, it's the repetition.
The naive check would take O(n^2/2) time for n stack frames,
but if you use a clever data structure, it would be O(n lg n) time.
Michael
next prev parent reply other threads:[~2004-09-15 18:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-15 17:36 Andrew Cagney
2004-09-15 18:47 ` Michael Chastain [this message]
2004-09-15 20:13 ` Andrew Cagney
2004-09-15 22:13 ` Daniel Jacobowitz
2004-09-15 22:46 ` Andrew Cagney
2004-09-15 23:10 ` Daniel Jacobowitz
2004-09-15 23:35 ` Andrew Cagney
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=41488E3B.nailC0Y21J3UA@mindspring.com \
--to=mec.gnu@mindspring.com \
--cc=cagney@gnu.org \
--cc=gdb@sources.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