Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Max Weninger <max@takefive.co.at>
To: axp-list@redhat.com
Subject: Re: gdb
Date: Mon, 30 Aug 1999 19:12:55 +0200 (CEST)	[thread overview]
Message-ID: <199908301712.TAA12992@extreme.takefive.co.at> (raw)
In-Reply-To: <199908301520.JAA10545@ellpspace.math.ualberta.ca>

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
         .-|      
_________._|____________________________________________________


  reply	other threads:[~1999-08-30 17:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-29  0:09 gdb Larry Snyder
1999-08-30 12:07 ` gdb Max Weninger
1999-08-30 15:20   ` gdb Michal Jaegermann
1999-08-30 17:12     ` Max Weninger [this message]
1999-08-30 18:19       ` gdb Wes Bauske
1999-08-30 20:15         ` gdb Michal Jaegermann
1999-08-31  8:56         ` gdb Max Weninger
     [not found] <m0uM6E7-0001thC@atheist.tamu.edu>
1996-05-22 11:45 ` gdb Jim Nance
     [not found] <Pine.SUN.3.91.960510085342.3960A-100000@edge.edge.net>
1996-05-17 15:56 ` gdb Harald Koenig
     [not found] <Pine.LNX.3.91.960509080842.11981C-100000@linux.cs.Helsinki.FI>
1996-05-09 15:43 ` gdb Richard Henderson
     [not found] <richard@atheist.tamu.edu>
1996-05-09 14:55 ` gdb Eric Youngdale
     [not found] <Pine.LNX.3.91.960508210447.27170G-100000@linux.cs.Helsinki.FI>
1996-05-09  8:16 ` gdb Harald Koenig
  -- strict thread matches above, loose matches on Subject: below --
1996-05-09  4:34 gdb David Mosberger-Tang
1996-05-09  3:47 gdb Eric Youngdale
1996-05-09  5:29 ` gdb Linus Torvalds
1996-05-08 20:15 gdb Richard Henderson
1996-05-09  8:23 ` gdb Harald Koenig
1996-05-09 16:04   ` gdb Richard Henderson
1996-05-08 19:07 gdb Richard Gorton
1996-05-08 18:51 gdb Craig Burley
     [not found] <torvalds@cs.Helsinki.FI>
1996-05-08 17:19 ` gdb Eric Youngdale
1996-05-08 18:24 ` gdb Eric Youngdale
1996-05-08 17:53 gdb David Mosberger
1996-05-08 18:16 ` gdb Linus Torvalds
1996-05-07 14:23 gdb David Mosberger-Tang
1996-05-07 15:48 ` gdb Richard Henderson
1996-05-07  6:32 gdb Harald Koenig
1996-05-08 17:06 ` gdb Linus Torvalds
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox