From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 7245 invoked from network); 30 Aug 1999 15:20:14 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 30 Aug 1999 15:20:14 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA06239 for ; Mon, 30 Aug 1999 11:20:13 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id JAA10545 for axp-list@redhat.com; Mon, 30 Aug 1999 09:20:10 -0600 From: Michal Jaegermann Message-Id: <199908301520.JAA10545@ellpspace.math.ualberta.ca> Subject: Re: gdb To: axp-list@redhat.com Date: Mon, 30 Aug 1999 09:20:10 -0600 (MDT) In-Reply-To: <199908301208.OAA15048@extreme.takefive.co.at> from "Max Weninger" at Aug 30, 99 02:07:59 pm Content-Type: text 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? > 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. Michal