From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25638 invoked by alias); 10 Mar 2008 15:54:16 -0000 Received: (qmail 25627 invoked by uid 22791); 10 Mar 2008 15:54:15 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Mar 2008 15:53:53 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1JYkJy-0000Sl-LN; Mon, 10 Mar 2008 15:53:50 +0000 Message-ID: <47D55990.441EF8B1@dessent.net> Date: Mon, 10 Mar 2008 16:02:00 -0000 From: Brian Dessent Reply-To: gdb@sourceware.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Taras D CC: gdb@sourceware.org Subject: Re: stack trace and breaking before crash References: <4024fa2d0803100747g289cf2abl248dbc80b007356a@mail.gmail.com> <4024fa2d0803100824t788d284cq438043063335c750@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00105.txt.bz2 Taras D wrote: > 1) A program that crashes is writing a stack trace. However, the stack > trace is in heaxadecimal. Is there anyway of replacing the hexadecimal > numbers with symbols? Set error_start to dumper to get a real core dump instead of the stack trace file. Then load the core into gdb. > 2) Is it possible to get gdb to break before the program crashes? In > VS 2003, the program breaks execution before the crash allowing > inspection of the stack/variables/etc. The exception I'm getting is: > Exception: STATUS_ACCESS_VIOLATION at eip=610AE0E9. I've tried typing > in bt after the crash occurs but the output doesn't seem to be a stack > trace of the running program. Set error_start to gdb and you will be taken to the point of the exception when it occurs. Brian