From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31287 invoked by alias); 13 Jun 2007 09:06:48 -0000 Received: (qmail 31278 invoked by uid 22791); 13 Jun 2007 09:06:47 -0000 X-Spam-Check-By: sourceware.org Received: from qb-out-0506.google.com (HELO qb-out-0506.google.com) (72.14.204.232) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Jun 2007 09:06:43 +0000 Received: by qb-out-0506.google.com with SMTP id o24so1601365qba for ; Wed, 13 Jun 2007 02:06:41 -0700 (PDT) Received: by 10.114.124.1 with SMTP id w1mr399622wac.1181725600331; Wed, 13 Jun 2007 02:06:40 -0700 (PDT) Received: by 10.114.53.11 with HTTP; Wed, 13 Jun 2007 02:06:40 -0700 (PDT) Message-ID: Date: Wed, 13 Jun 2007 09:06:00 -0000 From: "Sudhakar G" To: "Sudhakar G" , gdb@sourceware.org Subject: Re: debugging stripped binary/library & coredump without binary In-Reply-To: <20070612112359.GD29495@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070612112359.GD29495@caradoc.them.org> 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: 2007-06/txt/msg00102.txt.bz2 Thanks Daniel. But I want to know how to debug once core file is opened without access to program file but with access only to source code. Are there any tips? Thanks Sudhakar On 6/12/07, Daniel Jacobowitz wrote: > On Tue, Jun 12, 2007 at 04:22:43PM +0530, Sudhakar G wrote: > > For certain reasons I want strip the symbols in my modules. But I want > > to know how to debug the program in such case. I used to debug running > > program at object/assembly level but only with the help of symbols > > which help me in setting breakpoints. But with symbols stripped, I am > > at loss as to how to debug. I know there is a command called > > "symbol-file" in gdb which will help in loading the symbol file. Not > > sure if it is of help. But I could not figure out how to generate > > symbol file for a program or library though I spent some time with gcc > > and ld man pages. > > You can use separate debug files, or you can just save the unstripped > file and use that for GDB instead. > > > I also want to know if there is anyway in opening the coredump and > > debugging it if the actual program is not available. > > gdb -c, but it does not work as well as if you give it a program. > > -- > Daniel Jacobowitz > CodeSourcery >