From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14544 invoked by alias); 1 Mar 2005 14:26:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14481 invoked from network); 1 Mar 2005 14:26:20 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 1 Mar 2005 14:26:20 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1D68K9-00015m-1g; Tue, 01 Mar 2005 09:26:09 -0500 Date: Tue, 01 Mar 2005 14:26:00 -0000 From: Daniel Jacobowitz To: Roopesh Kohad Cc: gdb@sources.redhat.com Subject: Re: function address from object file? Message-ID: <20050301142608.GA4067@nevyn.them.org> Mail-Followup-To: Roopesh Kohad , gdb@sources.redhat.com References: <1a223dc60503010114bbb95fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a223dc60503010114bbb95fd@mail.gmail.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00007.txt.bz2 On Tue, Mar 01, 2005 at 02:44:30PM +0530, Roopesh Kohad wrote: > $ gcc -c -g -o a.o a.c > $ gdb a.o > (gdb) info file Obviously this isn't the whole session, since you've skipped the version string from GDB. > Symbols from "/tmp/a.o". > Local exec file: > `/tmp/a.o', file type pe-i386. > Entry point: 0x0 > 0x00000000 - 0x00000070 is .text Support for debugging unlinked objects was added to GDB a couple releases ago - for ELF. I do not know if it will work for pe-i386 or not. -- Daniel Jacobowitz CodeSourcery, LLC