From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90563 invoked by alias); 17 Apr 2019 16:21:06 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 90552 invoked by uid 89); 17 Apr 2019 16:21:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=Best, you! X-HELO: mail-ot1-f48.google.com Received: from mail-ot1-f48.google.com (HELO mail-ot1-f48.google.com) (209.85.210.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Apr 2019 16:21:04 +0000 Received: by mail-ot1-f48.google.com with SMTP id e5so6780199otk.12 for ; Wed, 17 Apr 2019 09:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=hvLhm8HC9g9wVF9TcXUZj7RWyQ1e5zrkQvRGZLp/0wU=; b=mbyQ0u/V/inzIOTrhkHwbWdQUr0ZLDFdgkWb1yECA+VITSg/rTc39HyVsvU1WzUUAe 0d/LhEr2VDmVtfE9ipe9FIVWLCtO1S5yo1KRoxEUfsa7PaIO53wiRgUbRIRXFhFV4ZNH wY9OSyfuqLM3o8LnoFIU9GTDr87JAy4cyVgGF5HBrJhEI8a14kh/VLUh5YguFlxeu5wb ocATvgaogXYPzOZ72KqQs4Cq1tzTEYwHeT8KfgcUiBxe7OAoVDU/cY/QuysFD/r+kCZv 736SpOGOsnzphUijzbfcPAJDgjW0uUyzy4Cs1cNQoU8stwQEUV5mscJAjn5ZTMN/XAcT Vunw== MIME-Version: 1.0 From: Artem Razin Date: Wed, 17 Apr 2019 16:21:00 -0000 Message-ID: Subject: Reading DWARF debug information from a PE executable To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00013.txt.bz2 Hi, This is my first question here and I hope it is suitable for this list. I need (Windows/C++) to read DWARF debug information from a PE executable. For example, mingw places debug information in this format. I've tried to adopt libdwarf but it seems to be able to read files in ELF format only. At the same time mingw places debug information to several PE sections. Is there any way to pass raw data from these sections to libdwarf to read debug information? Or probably there are other ways to work with DWARF in case of PE executables... Thank you! -- Best regards, Artem A. Razin