From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25832 invoked by alias); 29 Oct 2007 12:33:28 -0000 Received: (qmail 25814 invoked by uid 22791); 29 Oct 2007 12:33:26 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 29 Oct 2007 12:33:22 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9F0D998348; Mon, 29 Oct 2007 12:33:20 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 70C7B98347; Mon, 29 Oct 2007 12:33:20 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1ImTny-0004Ep-P1; Mon, 29 Oct 2007 08:33:18 -0400 Date: Mon, 29 Oct 2007 12:57:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org, insight@sourceware.org Subject: Re: syms_from_objfile() warnings and win32-nat.c IO redirection (Was: suppress annoying warnings about cygwin1.dbg) Message-ID: <20071029123318.GA16009@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, insight@sourceware.org References: <46804DAD.4020309@portugalmail.pt> <20070625234015.GA17640@caradoc.them.org> <46833EB0.E8ABC8CB@dessent.net> <20070628104601.GA10328@caradoc.them.org> <20071011195327.GB8200@caradoc.them.org> <470FFB00.9909C731@dessent.net> <47101DB4.6010204@portugalmail.pt> <20071024184207.GA10943@caradoc.them.org> <4725378D.5010800@portugalmail.pt> <4053daab0710290203q5aa79bam6a8e87e5c6a837ba@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4053daab0710290203q5aa79bam6a8e87e5c6a837ba@mail.gmail.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00750.txt.bz2 On Mon, Oct 29, 2007 at 09:03:08AM +0000, Pedro Alves wrote: > Can anyone point me into why the non-debug sections are > preserved (as NOBITS) in the seperate debug file? > Could it be so support the case where the section headers > were stripped in the main file? > To help if there are relocs against section symbols in > the debug info? Not sure if that makes sense in > a NOBITS section. > Or, are they added so to keep tools that currently expect > them there happy? I don't think you can do without them, because you have a symbol table in the separate file; the symbol table needs to say which section each symbol is defined in. But I'm just extrapolating this from what I know about ELF. What I know about PE/COFF wouldn't fill a teacup. If the symbol table doesn't exist in the original file, and you don't load the debug file with the right offsets, the symbols aren't going to be found at the correct addresses. I haven't looked at your previous message yet - I'll try to today. -- Daniel Jacobowitz CodeSourcery