From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17193 invoked by alias); 16 Jun 2005 07:42:56 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17158 invoked by uid 22791); 16 Jun 2005 07:42:46 -0000 Received: from mail08.syd.optusnet.com.au (HELO mail08.syd.optusnet.com.au) (211.29.132.189) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 16 Jun 2005 07:42:46 +0000 Received: from localhost.localdomain (c220-237-160-143.lowrp1.vic.optusnet.com.au [220.237.160.143]) by mail08.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j5G7gfvA030634 for ; Thu, 16 Jun 2005 17:42:42 +1000 From: Hamish Rodda To: gdb@sources.redhat.com Subject: Re: Unwinding stack past main() when it has another name Date: Thu, 16 Jun 2005 07:42:00 -0000 User-Agent: KMail/1.7.2 References: <200506152247.07232.rodda@kde.org> <200506160112.58152.rodda@kde.org> <20050615163658.GA18795@nevyn.them.org> In-Reply-To: <20050615163658.GA18795@nevyn.them.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7883041.uLnGJWh7AG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506161743.00708.rodda@kde.org> X-SW-Source: 2005-06/txt/msg00168.txt.bz2 --nextPart7883041.uLnGJWh7AG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 1198 On Thu, 16 Jun 2005 02:36 am, Daniel Jacobowitz wrote: > On Thu, Jun 16, 2005 at 01:12:54AM +1000, Hamish Rodda wrote: > > Yep... here's a snippet: > > > > #21 0x00002aaaacab22fa in QApplication::exec () at > > kernel/qapplication.cpp:2522 > > #22 0x00002aaaaabd0a84 in kdemain (argc=3D, > > argv=3D0x7fffffbd8ce8) at /opt/kde4/src/kdebase/kate/app/kwritemain.cpp= :696 > > #23 0x00002aaaaf227d95 in __libc_start_main () from /lib/libc.so.6 > > #24 0x00000000004007ea in _start () at ../sysdeps/x86_64/elf/start.S:113 > > > > In gdb 6.3 on amd64, this trace would be follwed by approx 800 - 1000 > > useless "frames". > > > > I don't exactly know why or how the kdemain() function works, but I know > > it has something to do with kdeinit... there's some comments in the > > source in the kde svn repository, under kdelibs/kinit/* > > Presumably main() tail called to kdemain. Does the backtrace stop OK > at _start? If so, is there really a problem? Yes, so no, there's not a problem with gdb cvs... the logic to detect the=20 start must have changed from 6.3 though. So, as long as the logic stays th= e=20 same that's fine, it was more out of curiosity. Thanks, Hamish. --nextPart7883041.uLnGJWh7AG Content-Type: application/pgp-signature Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCsS2EH8BtnSmIlUYRApU3AKDH8alyA2TUEknDmzRX9XcgyzvdFgCguMKt F+PoFO8ttIMZYFuLS2JwOC4= =0GJm -----END PGP SIGNATURE----- --nextPart7883041.uLnGJWh7AG--