From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1338 invoked by alias); 30 Oct 2007 01:27:42 -0000 Received: (qmail 1321 invoked by uid 22791); 30 Oct 2007 01:27:42 -0000 X-Spam-Check-By: sourceware.org Received: from pool-70-20-17-24.bstnma.fios.verizon.net (HELO ednor.cgf.cx) (70.20.17.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Oct 2007 01:27:40 +0000 Received: by ednor.cgf.cx (Postfix, from userid 201) id 3095F679009; Mon, 29 Oct 2007 21:27:39 -0400 (EDT) Date: Tue, 30 Oct 2007 04:05:00 -0000 From: Christopher Faylor To: Pedro Alves , 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: <20071030012739.GB28693@ednor.casa.cgf.cx> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, insight@sourceware.org References: <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> <20071029123318.GA16009@caradoc.them.org> <47266460.10204@portugalmail.pt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47266460.10204@portugalmail.pt> User-Agent: Mutt/1.5.16 (2007-06-09) 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/msg00787.txt.bz2 On Mon, Oct 29, 2007 at 10:53:20PM +0000, Pedro Alves wrote: > I'm a bit puzzled, since I've just found out that: > > strip --strip-debug ${dest} -o ${stripped_file} > strip --only-keep-debug main.exe -o ${debug_file} > objcopy --add-gnu-debuglink=${debug_file} ${stripped_file} ${dest} > > ... currently plays nicelly in PE/coff + stabs+. The > CONTENTS | ALLOC sections simply get > the CONTENTS dropped, thus it seems that gdb > doesn't need any fixing after all. > >> objdump.exe -h main.exe > > main.exe: file format pei-i386 > > Sections: > Idx Name Size VMA LMA File off Algn > 0 .text 000003a0 00401000 00401000 00000400 2**4 > CONTENTS, ALLOC, LOAD, READONLY, CODE > 1 .data 00100000 00402000 00402000 00000800 2**4 > CONTENTS, ALLOC, LOAD, DATA > 2 .bss 00000040 00502000 00502000 00000000 2**4 > ALLOC > 3 .idata 00000170 00503000 00503000 00100800 2**2 > CONTENTS, ALLOC, LOAD, DATA > 4 .gnu_debuglink 00000014 00504000 00504000 00100a00 2**2 > CONTENTS, READONLY, DEBUGGING > >> objdump.exe -h main.exe.dbg > > main.exe.dbg: file format pei-i386 > > Sections: > Idx Name Size VMA LMA File off Algn > 0 .text 000003a0 00401000 00401000 00000000 2**4 > ALLOC, LOAD, READONLY, CODE > 1 .data 00100000 00402000 00402000 00000000 2**4 > ALLOC, LOAD, DATA > 2 .bss 00000040 00502000 00502000 00000000 2**4 > ALLOC > 3 .idata 00000170 00503000 00503000 00000000 2**2 > ALLOC, LOAD, DATA > 4 .stab 0000c630 00504000 00504000 00000268 2**2 > CONTENTS, READONLY, DEBUGGING, EXCLUDE > 5 .stabstr 0004e99f 00511000 00511000 0000ca68 2**0 > CONTENTS, READONLY, DEBUGGING, EXCLUDE > > > Chris, Brian, would it be possible to instead fix the > cygwin1.dbg generation to do something similar to > the above recipe? No need to ask anyone. Just make the changes you're proposing and see if they work. cgf