From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30569 invoked by alias); 15 Aug 2002 19:29:43 -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 30518 invoked from network); 15 Aug 2002 19:29:42 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 15 Aug 2002 19:29:42 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17fQJU-0003SR-00; Thu, 15 Aug 2002 14:29:44 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17fQJt-0002MW-00; Thu, 15 Aug 2002 15:30:09 -0400 Date: Thu, 15 Aug 2002 12:29:00 -0000 From: Daniel Jacobowitz To: Lucy Zhang Cc: gdb@sources.redhat.com Subject: Re: missing text segment in Elf dump Message-ID: <20020815193009.GA8816@nevyn.them.org> Mail-Followup-To: Lucy Zhang , gdb@sources.redhat.com References: <001901c24487$03088940$9a0a0109@zhangl> <20020815180824.GA4211@nevyn.them.org> <003301c24489$e8206280$9a0a0109@zhangl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003301c24489$e8206280$9a0a0109@zhangl> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00162.txt.bz2 On Thu, Aug 15, 2002 at 11:30:56AM -0700, Lucy Zhang wrote: > Can you elaborate on how GDB gets it from the application? and by > application do you mean the executable file? Yes. They are both ELF binaries with mapped sections. GDB can read data directly from the application; and the kernel generally will not dump it. > 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 No, this has nothing to do with segments, only with debug information. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer