From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 875 invoked by alias); 22 Jul 2010 17:26:21 -0000 Received: (qmail 859 invoked by uid 22791); 22 Jul 2010 17:26:19 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Jul 2010 17:26:13 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id B309713038; Thu, 22 Jul 2010 10:26:11 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost2.vmware.com (Postfix) with ESMTP id A84E98E582; Thu, 22 Jul 2010 10:26:11 -0700 (PDT) Message-ID: <4C487F33.1030807@vmware.com> Date: Thu, 22 Jul 2010 17:26:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Mathew Yeates CC: "gdb@sourceware.org" Subject: Re: help with loading core files References: <4C487AD8.7030203@vmware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: 2010-07/txt/msg00086.txt.bz2 Mathew Yeates wrote: > I'm not sure about your first question. > 1) I run my program in the debugger and go to a particular line > 2) I generate a core file with generate-core-file > 3) I exit gdb > 4) I run gdb myexecutable mycorefile Oh, ok, then signal 5 is the correct signal. > Shouldn't I be able to continue my program from here? Instead, I get > "Program terminated with signal 5, Trace/breakpoint trap" > And I can't continue because I get > "The program is not being run." No, you can't resume running from a corefile. > x86_64 x86_64 x86_64 GNU/Linux > > > On Thu, Jul 22, 2010 at 10:07 AM, Michael Snyder wrote: >> Mathew Yeates wrote: >>> Hi >>> I posted something about this earlier and I now have time to try and >>> figure this out. >>> When I run gdb myexe mycore >>> I get >>> Program terminated with signal 5, Trace/breakpoint trap. >>> >>> This is gdb-7.2.50.20100713. >>> >>> Any ideas for me to try? I'm no gdb guru but maybe I can generate info >>> usable to someone. >>> >>> Mathew >> What signal do you believe your corefile should be reporting? >> >> What host and operating system are you running on? >>