From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3905 invoked by alias); 15 Aug 2002 18:27:18 -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 3859 invoked from network); 15 Aug 2002 18:27:18 -0000 Received: from unknown (HELO uclink4.berkeley.edu) (128.32.25.39) by sources.redhat.com with SMTP; 15 Aug 2002 18:27:18 -0000 Received: from zhangl (p1.almaden.ibm.com [198.4.83.52]) by uclink4.berkeley.edu (8.12.3/8.12.3) with SMTP id g7FIRHdL012071; Thu, 15 Aug 2002 11:27:17 -0700 (PDT) Message-ID: <003301c24489$e8206280$9a0a0109@zhangl> From: "Lucy Zhang" To: "Daniel Jacobowitz" Cc: References: <001901c24487$03088940$9a0a0109@zhangl> <20020815180824.GA4211@nevyn.them.org> Subject: Re: missing text segment in Elf dump Date: Thu, 15 Aug 2002 11:27:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-08/txt/msg00161.txt.bz2 Can you elaborate on how GDB gets it from the application? and by application do you mean the executable file? Also, when I try to look at the source code using "list", does this have anything to do with the text segment? I ask because it would work for some source files and not for others. i.e. (gdb) list condvar.c:88 83 condvar.c: No such file or directory. in condvar.c thank you, Lucy ----- Original Message ----- From: "Daniel Jacobowitz" To: "Lucy Zhang" Cc: Sent: Thursday, August 15, 2002 11:08 AM Subject: Re: missing text segment in Elf dump > 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