From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6982 invoked by alias); 12 Jun 2007 11:11:24 -0000 Received: (qmail 6973 invoked by uid 22791); 12 Jun 2007 11:11:23 -0000 X-Spam-Check-By: sourceware.org Received: from mx.freeshell.ORG (HELO sdf.lonestar.org) (192.94.73.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Jun 2007 11:11:22 +0000 Received: from sdf.lonestar.org (taviso@faeroes.freeshell.org [192.94.73.9]) by sdf.lonestar.org (8.14.1/8.13.8) with ESMTP id l5CBBDSH017758; Tue, 12 Jun 2007 11:11:15 GMT Received: from localhost (localhost [[UNIX: localhost]]) by sdf.lonestar.org (8.14.1/8.12.8/Submit) id l5CBBCsm021227; Tue, 12 Jun 2007 11:11:13 GMT Date: Tue, 12 Jun 2007 11:11:00 -0000 From: Tavis Ormandy To: Sudhakar G Cc: gdb@sourceware.org Subject: Re: debugging stripped binary/library & coredump without binary Message-ID: <20070612111106.GE8386@sdf.lonestar.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00089.txt.bz2 On Tue, Jun 12, 2007 at 04:22:43PM +0530, Sudhakar G wrote: > 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. > It is, use objcopy with `--only-keep-debug` to make use of it. Thanks, Tavis. -- ------------------------------------- taviso@sdf.lonestar.org | finger me for my pgp key. -------------------------------------------------------