From: Daniel Jacobowitz <drow@false.org>
To: Hamish Rodda <rodda@kde.org>
Cc: gdb@sources.redhat.com
Subject: Re: Unwinding stack past main() when it has another name
Date: Wed, 15 Jun 2005 14:16:00 -0000 [thread overview]
Message-ID: <20050615141624.GB14209@nevyn.them.org> (raw)
In-Reply-To: <200506152247.07232.rodda@kde.org>
On Wed, Jun 15, 2005 at 10:46:37PM +1000, Hamish Rodda wrote:
> Hi,
>
> I'm just curious if there's a better solution for a problem I've come up
> against recently. I have been using gdb 6.3 and finding that all of my kde
> program backtraces contain hundreds of irrelevant and corrupt-looking frames.
> Upgrading to cvs fixed most of the problem (the corrupt looking frames), but
> some frames still remain before the main function, which in kde programs is
> called kdemain().
>
> Is there something the kde sources can do to have gdb recognise kdemain() as
> the replacement main() function, and thus prevent gdb from unwinding past it?
Is there really no main() on the backtrace? There's no easy way in C
to mark another function as main or as not-backtraceable.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-06-15 14:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-15 12:46 Hamish Rodda
2005-06-15 14:16 ` Daniel Jacobowitz [this message]
2005-06-15 15:14 ` Hamish Rodda
2005-06-15 16:37 ` Daniel Jacobowitz
2005-06-16 7:42 ` Hamish Rodda
2005-06-16 13:23 ` Daniel Jacobowitz
2005-06-16 21:22 ` Steven Johnson
2005-06-16 22:05 ` Daniel Jacobowitz
2005-06-16 22:46 ` Steven Johnson
2005-06-17 11:21 ` Richard Earnshaw
2005-06-18 13:13 ` Eli Zaretskii
2005-06-16 23:36 ` 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=20050615141624.GB14209@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=rodda@kde.org \
/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