From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by sourceware.org (Postfix) with ESMTPS id EFE11385E82C for ; Mon, 16 Mar 2020 18:18:01 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5F92726D0D4; Mon, 16 Mar 2020 14:18:01 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1JO2KJr7Cf8G; Mon, 16 Mar 2020 14:18:01 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 2FF2626D0D3; Mon, 16 Mar 2020 14:18:01 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 2FF2626D0D3 X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IZzC5t9hSf4v; Mon, 16 Mar 2020 14:18:01 -0400 (EDT) Received: from [10.0.0.11] (unknown [192.222.164.54]) by mail.efficios.com (Postfix) with ESMTPSA id 14F6326D1EB; Mon, 16 Mar 2020 14:18:01 -0400 (EDT) Subject: Re: [PATCH 6/7] gdb: select "Cygwin" OS ABI for Cygwin binaries To: Christian Biesinger , Simon Marchi Cc: gdb-patches , Jon Turney References: <20200316170845.184386-1-simon.marchi@polymtl.ca> <20200316170845.184386-7-simon.marchi@polymtl.ca> From: Simon Marchi Message-ID: Date: Mon, 16 Mar 2020 14:18:00 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 18:18:02 -0000 On 2020-03-16 2:16 p.m., Christian Biesinger wrote: >> @@ -898,6 +900,105 @@ static const struct internalvar_funcs tlb_funcs = >> NULL >> }; >> >> +/* Layout of an element of a PE's Import Directory Table. Based on: >> + >> + https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#import-directory-table >> + */ >> + >> +struct pe_import_directory_entry >> +{ >> + uint32_t import_lookup_table_rva; >> + uint32_t timestamp; >> + uint32_t forwarder_chain; >> + uint32_t name_rva; >> + uint32_t import_address_table_rva; >> +}; >> + >> +gdb_static_assert (sizeof (pe_import_directory_entry) == 20); >> + >> +/* Return true if the Portable Executable behind ABFD uses the Cygwin dll >> + (cygwin1.dll). */ >> +/* See windows-tdep.h. */ > > Remove the first of these two comments? Indeed, thanks. Simon