From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10001 invoked by alias); 15 Aug 2002 18:08:05 -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 9938 invoked from network); 15 Aug 2002 18:08:04 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 15 Aug 2002 18:08:04 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17fP2R-0003Lv-00; Thu, 15 Aug 2002 13:08:03 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17fP2m-00016N-00; Thu, 15 Aug 2002 14:08:24 -0400 Date: Thu, 15 Aug 2002 11:08:00 -0000 From: Daniel Jacobowitz To: Lucy Zhang Cc: gdb@sources.redhat.com Subject: Re: missing text segment in Elf dump Message-ID: <20020815180824.GA4211@nevyn.them.org> Mail-Followup-To: Lucy Zhang , gdb@sources.redhat.com References: <001901c24487$03088940$9a0a0109@zhangl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c24487$03088940$9a0a0109@zhangl> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00160.txt.bz2 On Thu, Aug 15, 2002 at 11:10:12AM -0700, Lucy Zhang wrote: > Hi, > > When GDB is debugging an ELF core dump, what is it use for the text segment. > I realized in the Elf core that I've created from another dump file, that > the text segment is cut off because the size is too big. The actual text > segment spans 0x8048000 - 0x98cc4e0, but I only included the first 8MB of > the area in the ELF dump. So I'm wondering what affects will this have on > GDB? what kind of information will be missing due to the incomplete text > segment? Most ELF core dumps don't even include the text segment. GDB gets it from the application instead, and only writeable segments are in the core file... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer