From nobody Tue Feb 10 10:54:48 2026 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549393526126445.9652937941115; Tue, 5 Feb 2019 11:05:26 -0800 (PST) Received: from localhost ([127.0.0.1]:38055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr61y-0000ro-SW for importer@patchew.org; Tue, 05 Feb 2019 14:05:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr5GT-0002VG-Lj for qemu-devel@nongnu.org; Tue, 05 Feb 2019 13:16:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gr5GK-0003rz-2j for qemu-devel@nongnu.org; Tue, 05 Feb 2019 13:16:05 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:37802) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gr5GJ-0003qO-Q3 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 13:15:59 -0500 Received: by mail-wm1-x32f.google.com with SMTP id g67so4751223wmd.2 for ; Tue, 05 Feb 2019 10:15:59 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id p5sm8931665wmh.16.2019.02.05.10.15.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 10:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZCAjxndc1SI1yasRKgzJAMBm7PQddIm2dg2oDVwxfD0=; b=GoGQM2qr5Nh/5pJzAK+RTwrb1oSp++DZZCYj3nnuyeOKGEw8wq6eFSRNsKy2jsOJWV 93+VWCSUhZMdLfJ7hf0WvNb0hIgI7FG+HRyXZtsuM7dwtfdetWm4pHO/+3qUHGYzhNiU WinzlWD5EirwqlIfIOWoHI+yX+R9/iZ/Ejl4HFsK+iRKEdW9WZ9oMu6P2SVHy1OdfbV/ 3C7dMcRGo44spQgbmsgQXoEHi1yVKw/Yzic86hQB/VHFWeu5ApuZikFsEHpK5+qNnOvi B/ZNJZAMSe7tsVglZmRZrcY5OJ8lOyxbQq8ui1ESNHdfY39t7HtAPHo8kkYL09izHwwa DNwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ZCAjxndc1SI1yasRKgzJAMBm7PQddIm2dg2oDVwxfD0=; b=jm6euVUhAEaQC5r8jcmTqJzhN8L3of1V6ccCmzJNjWq/b6cVeVHPVxC4wCVqXyIr4y 3AWntltr5rGE0/LoCyv4++CSJMAU2KZk56kiCrHCD6LNLmZbUSJAI0LcU5AgQi5PsUVe CZ+G3QJQY8PNxBTQrRH5bj2vnQRYFUIiKGytc/s8dXHkqQZDLHtF4Hbq4HitI56h7SUk /GoPbWsR3xC3xegTmm7OH/ZHd1reZa/ORRJ00sRJCU7cMmflsNx/bL9bio8ODyNzkja9 hcP5BZjhmfDn3HZuLZsiIcpBnecbcEjyEKht3obAiiZUt6KY6+jWyJmNIk1Rre2yWKTj nrkw== X-Gm-Message-State: AHQUAuYyYYkg/jJ80/30WDIAzov9ztym/OtiPAMkPEj9aFE6SXfF1BEE 0T8qROaWBCanfKzd+WoYqbSvccQj X-Google-Smtp-Source: AHgI3IY9EfAhuWJIMJCkYQMLiQg4I7QDQ1rVADrLMFOefb1AIOnA4/w5WOkgdxwZlZ/qgcPVcN+ZWg== X-Received: by 2002:a7b:cc86:: with SMTP id p6mr3370wma.19.1549390558491; Tue, 05 Feb 2019 10:15:58 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 5 Feb 2019 19:14:39 +0100 Message-Id: <1549390526-24246-30-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1549390526-24246-1-git-send-email-pbonzini@redhat.com> References: <1549390526-24246-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32f Subject: [Qemu-devel] [PULL 29/76] contrib/elf2dmp: fix structures definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Viktor Prutyanov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Viktor Prutyanov Remove duplicate structures definitions in case of build for Windows hosts. Signed-off-by: Viktor Prutyanov Message-Id: <20181220012441.13694-5-viktor.prutyanov@phystech.edu> Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/kdbg.h | 12 ++++++++---- contrib/elf2dmp/pdb.h | 2 ++ contrib/elf2dmp/pe.h | 6 ++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/contrib/elf2dmp/kdbg.h b/contrib/elf2dmp/kdbg.h index 851b57c..002e3d0 100644 --- a/contrib/elf2dmp/kdbg.h +++ b/contrib/elf2dmp/kdbg.h @@ -25,11 +25,15 @@ typedef struct DBGKD_GET_VERSION64 { uint64_t DebuggerDataList; } DBGKD_GET_VERSION64; =20 +#ifndef _WIN32 +typedef struct LIST_ENTRY64 { + struct LIST_ENTRY64 *Flink; + struct LIST_ENTRY64 *Blink; +} LIST_ENTRY64; +#endif + typedef struct DBGKD_DEBUG_DATA_HEADER64 { - struct LIST_ENTRY64 { - struct LIST_ENTRY64 *Flink; - struct LIST_ENTRY64 *Blink; - } List; + LIST_ENTRY64 List; uint32_t OwnerTag; uint32_t Size; } DBGKD_DEBUG_DATA_HEADER64; diff --git a/contrib/elf2dmp/pdb.h b/contrib/elf2dmp/pdb.h index 1640d54..4ea8925 100644 --- a/contrib/elf2dmp/pdb.h +++ b/contrib/elf2dmp/pdb.h @@ -9,12 +9,14 @@ #define PDB_H =20 =20 +#ifndef _WIN32 typedef struct GUID { unsigned int Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID; +#endif =20 struct PDB_FILE { uint32_t size; diff --git a/contrib/elf2dmp/pe.h b/contrib/elf2dmp/pe.h index dafb26a..c2a4a6b 100644 --- a/contrib/elf2dmp/pe.h +++ b/contrib/elf2dmp/pe.h @@ -9,6 +9,7 @@ #define PE_H =20 =20 +#ifndef _WIN32 typedef struct IMAGE_DOS_HEADER { uint16_t e_magic; /* 0x00: MZ Header signature */ uint16_t e_cblp; /* 0x02: Bytes on last page of file */ @@ -87,8 +88,6 @@ typedef struct IMAGE_NT_HEADERS64 { IMAGE_OPTIONAL_HEADER64 OptionalHeader; } __attribute__ ((packed)) IMAGE_NT_HEADERS64; =20 -#define IMAGE_FILE_DEBUG_DIRECTORY 6 - typedef struct IMAGE_DEBUG_DIRECTORY { uint32_t Characteristics; uint32_t TimeDateStamp; @@ -101,6 +100,9 @@ typedef struct IMAGE_DEBUG_DIRECTORY { } __attribute__ ((packed)) IMAGE_DEBUG_DIRECTORY; =20 #define IMAGE_DEBUG_TYPE_CODEVIEW 2 +#endif + +#define IMAGE_FILE_DEBUG_DIRECTORY 6 =20 typedef struct guid_t { uint32_t a; --=20 1.8.3.1