From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18928 invoked by alias); 29 Oct 2007 22:53:43 -0000 Received: (qmail 18911 invoked by uid 22791); 29 Oct 2007 22:53:41 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 29 Oct 2007 22:53:34 +0000 Received: by mu-out-0910.google.com with SMTP id g7so2275091muf for ; Mon, 29 Oct 2007 15:53:31 -0700 (PDT) Received: by 10.82.154.12 with SMTP id b12mr12247784bue.1193698411175; Mon, 29 Oct 2007 15:53:31 -0700 (PDT) Received: from ?78.130.29.130? ( [78.130.29.130]) by mx.google.com with ESMTPS id c5sm4034614nfi.2007.10.29.15.53.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Oct 2007 15:53:29 -0700 (PDT) Message-ID: <47266460.10204@portugalmail.pt> Date: Mon, 29 Oct 2007 22:54:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: 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) 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> <20071029123318.GA16009@caradoc.them.org> In-Reply-To: <20071029123318.GA16009@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00780.txt.bz2 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? I'm posting a few patches to enable sepdebug.exp and sepsymtab.exp testing on Cygwin. I've also locally hacked shreloc.exp to generate seperate debug info to test shared objects, and relocation, as that isn't currently tested by sepdebug.exp. It worked fine. This means the patches upthread are withdrawn for now. Cheers, Pedro Alves