From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4478 invoked from network); 30 Aug 1999 17:13:07 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 30 Aug 1999 17:13:07 -0000 Received: from takefive.takefive.co.at (takefive.takefive.co.at [193.81.18.150]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA05788 for ; Mon, 30 Aug 1999 13:13:04 -0400 Received: from extreme.takefive.co.at (extreme [193.81.18.174]) by takefive.takefive.co.at (8.8.8/1.0T5H) with ESMTP id TAA19965 for ; Mon, 30 Aug 1999 19:13:01 +0200 (MET DST) Received: from takefive.co.at (extreme.takefive.co.at [193.81.18.174]) by extreme.takefive.co.at (8.9.3/8.9.3) with ESMTP id TAA12992 for ; Mon, 30 Aug 1999 19:12:58 +0200 Message-Id: <199908301712.TAA12992@extreme.takefive.co.at> Date: Mon, 30 Aug 1999 19:12:55 +0200 (CEST) From: Max Weninger Subject: Re: gdb To: axp-list@redhat.com In-Reply-To: <199908301520.JAA10545@ellpspace.math.ualberta.ca> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII On 30 Aug, Michal Jaegermann wrote: > Max Weninger wrote: >> >> The problems are still there. With a stock gdb 4.17 and egcs you will >> get "strange" results using "next" and "step" commands. Strange means >> that e.g. next runs till the end. >> >> The problem is that egcs generates incorrect information about function >> prologues. This problem has been dicussed on the gdb mailing list. > > Somehow this does not mesh up with my experience; i.e. prologues info > is undoubtely incorrect. Still my "private" workaround is after > breaking in a function to step through one or two executable statements. > Unless I compiled with -fomit-frame-pointer gdb as a rule is "catching > up" and a backtrace is looking sane. Is that different for others? What do you mean with "executable statements" ? >> Another problem is reading core dumps generated with 2.2.x kernels. > > I do not recall reasonable cores ever (beyond an information what > generated it). For this a workaround is to run a program from gdb > and provoke a crash. gdb will catch exception and one can usually > get more information than from a static core. Quite often it is > possible to attach gdb to a running process somewhat closer to a point > in which is crashing so an overhead is smaller. This is particularly > true with programs with GUI or some other user interaction. IMHO analysing core dumps is on of the favour "features" of unixes. e.g. when a customer of us has a crash he just sends the core dump. This can give you an huge amount of information what leads to the crash. Max -- _______________________________________________________________ \ o/\_ DI Max Weninger <\__,\ Email (max@takefive.co.at) ">. | ` .-| TakeFive Software - Jakob-Haringer-Str. 8 . \ A-5020 Salzburg - AUSTRIA . \ Tel: +43 662 4579150 - Fax: +43 662 4579156 .-| _________._|____________________________________________________