From patchwork Thu Dec 20 01:24:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viktor Prutyanov X-Patchwork-Id: 10738433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0819D6C2 for ; Thu, 20 Dec 2018 01:26:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBE5D2862A for ; Thu, 20 Dec 2018 01:26:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFFAF28639; Thu, 20 Dec 2018 01:26:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2DB6D2862A for ; Thu, 20 Dec 2018 01:26:32 +0000 (UTC) Received: from localhost ([::1]:34846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZn6d-0005nA-E6 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 19 Dec 2018 20:26:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZn5S-0005lf-1N for qemu-devel@nongnu.org; Wed, 19 Dec 2018 20:25:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZn5M-0002p3-FQ for qemu-devel@nongnu.org; Wed, 19 Dec 2018 20:25:16 -0500 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]:42783) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZn5G-0002dq-DS for qemu-devel@nongnu.org; Wed, 19 Dec 2018 20:25:10 -0500 Received: by mail-lf1-x144.google.com with SMTP id l10so52147lfh.9 for ; Wed, 19 Dec 2018 17:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phystech-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Ka8AdiaPgf9eQWiJxYheUaW39eSg8UqbDOwqxecFCfI=; b=gzgmnHYeMr9crUIboER8MKeNQnwfpx2Jt6tUlPaueaZs/qgzkDnzllxut2mD4Kfqxn kjBCN38VkrLsEMqNqjC5XskzsNHeVsOsuwlJxfopke50HzlkpQJCwPTnhJxrtg3tLCoj q/YAAzEgm9vYHGP1PcDhOq/VDPq27MtcsNYoBw9nHu8rK99FDoBtasWxaRQbXUVaaQ3p sB7f4fEf4km6mSEbEUyn+oDD0QvrtYNSUeqmfySFt+pK1xrHq623PPlWoihV2d9Aj0LA RhhU8HAcP/YUavWngYyFs3xcMLRZl/jbIpBs4yHCf2Fdz9EWe4xT2qbDA+PL39X8DCki FRgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ka8AdiaPgf9eQWiJxYheUaW39eSg8UqbDOwqxecFCfI=; b=b0M96LCnrdHpXZziwtT91aebcu0+18xrt1/to5oKNmuj0kRo52EzS4Innn2uZtBE5v 82TiAZbb7xVvVMfQ/WeMWN5wG93VPFReaCZWNp34UDN/GDC+rvokDb7VgHNkI0urVD+q vd69CndQ2JVNiOfIdJsa9yn1hppLC4080Vwu7Rk8EjqhRm2oYZbUTIvHG3TQCwP5vXlM hKXLPlEfdcVPLB8SIHlh+Un3aRKEd7Onux39ZJzoHCOH5SLrfjeuMs+C9cATIuRLNn6t xYurgvsGbRKh/Gu6FCtELZIeXwnfBXzdFAf2TZi/TXTsNwIAkXiZZh7Eehp/y+XnQO+H Kgrw== X-Gm-Message-State: AA+aEWZbx7kfBXopY2UEH7BRXPEnehHeBouWUKpEgnU8aiA7kc82J2CM ZCcQga3Gd/Pzzx4V27XpQ58Bhg== X-Google-Smtp-Source: AFSGD/WgeNvIshpD9Jn2gPJwoo3t5DvwHyiIvZB9lddUrbXtKhpbx4Eqqg0x+ac5pctN6uSJfatyEg== X-Received: by 2002:a19:f813:: with SMTP id a19mr13242928lff.67.1545269102628; Wed, 19 Dec 2018 17:25:02 -0800 (PST) Received: from localhost.localdomain ([93.175.11.132]) by smtp.gmail.com with ESMTPSA id z7-v6sm3737540lji.42.2018.12.19.17.25.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Dec 2018 17:25:01 -0800 (PST) From: Viktor Prutyanov To: pbonzini@redhat.com, rkagan@virtuozzo.com Date: Thu, 20 Dec 2018 04:24:35 +0300 Message-Id: <20181220012441.13694-1-viktor.prutyanov@phystech.edu> X-Mailer: git-send-email 2.17.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::144 Subject: [Qemu-devel] [PATCH v2 0/6] contrib/elf2dmp: elf2dmp for Windows hosts 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: qemu-devel@nongnu.org, Viktor Prutyanov Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP In most cases, it is more convenient to convert a dump on the same machine on which the analysis is performed. Because of WinDbg, the analysis of guest Windows problems needs Windows host anyway, so it is useful to have dump convertion tool near the debugger. After these patches elf2dmp can be built both for Linux and Windows (x86 and x86_64) hosts. Viktor Prutyanov (6): contrib/elf2dmp: fix elf.h including contrib/elf2dmp: use GLib in ELF processing contrib/elf2dmp: use GLib in PDB processing contrib/elf2dmp: fix structures definitions contrib/elf2dmp: fix printf format configure: enable elf2dmp build for Windows hosts Makefile | 4 ++-- configure | 4 ++-- contrib/elf2dmp/kdbg.h | 12 ++++++++---- contrib/elf2dmp/main.c | 27 +++++++++++++++------------ contrib/elf2dmp/pdb.c | 33 +++++++++++---------------------- contrib/elf2dmp/pdb.h | 4 +++- contrib/elf2dmp/pe.h | 6 ++++-- contrib/elf2dmp/qemu_elf.c | 27 ++++++++------------------- contrib/elf2dmp/qemu_elf.h | 10 +++++----- 9 files changed, 58 insertions(+), 69 deletions(-)