From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17883 invoked by alias); 12 Jun 2007 11:23:48 -0000 Received: (qmail 17872 invoked by uid 22791); 12 Jun 2007 11:23:48 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Jun 2007 11:23:46 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 97FC5982F1; Tue, 12 Jun 2007 11:23:44 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 7E622982DC; Tue, 12 Jun 2007 11:23:44 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1Hy4Tf-0007lM-Dc; Tue, 12 Jun 2007 07:23:59 -0400 Date: Tue, 12 Jun 2007 11:23:00 -0000 From: Daniel Jacobowitz To: Sudhakar G Cc: gdb@sourceware.org Subject: Re: debugging stripped binary/library & coredump without binary Message-ID: <20070612112359.GD29495@caradoc.them.org> Mail-Followup-To: Sudhakar G , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00093.txt.bz2 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