From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98124 invoked by alias); 23 May 2018 20:09:13 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 98110 invoked by uid 89); 23 May 2018 20:09:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.4 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-type:charset, HContent-type:text, HContent-type:iso-8859-1, HContent-type:plain X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: smtpauth3.wiscmail.wisc.edu Received: from wmauth3.doit.wisc.edu (HELO smtpauth3.wiscmail.wisc.edu) (144.92.197.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 May 2018 20:09:10 +0000 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03lp0049.outbound.protection.outlook.com [216.32.180.49]) by smtpauth3.wiscmail.wisc.edu (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPS id <0P97003EZ6N7L6D0@smtpauth3.wiscmail.wisc.edu> for elfutils-devel@sourceware.org; Wed, 23 May 2018 15:09:08 -0500 (CDT) X-Spam-Report: AuthenticatedSender=yes, SenderIP=[216.32.180.49] X-Wisc-Env-From-B64: ZGFyb2NoYXBpbmhlQHdpc2MuZWR1 X-Spam-PmxInfo: Server=avs-3, Version=6.4.3.2751440, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2018.5.23.195715, AntiVirus-Engine: 5.49.1, AntiVirus-Data: 2018.5.8.5491002, SenderIP=[216.32.180.49] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wisc.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W7v3Bl601i5K1wCmQDbVYNBXuctBOPIZOzQDLNnQdEE=; b=GMNbzZchxSmuAGWSWC1T4qikTIHT3+79ME5nDB/POUS/G6Eo0fbiH/ffRshnXsQNoMzZIoptUFAd4UidhkAG1V9FJidYZ4osYpXwVgfgVDdHKzjZ/LqFMpQ5cV7F4VPKpT+mGYEoZASTuTcCNXFrN3DONA/y5vtWQtpuRWjEv7U= Received: from BN6PR06MB2932.namprd06.prod.outlook.com (10.175.128.22) by BN6PR06MB2772.namprd06.prod.outlook.com (10.175.127.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.11; Wed, 23 May 2018 20:09:06 +0000 Received: from BN6PR06MB2932.namprd06.prod.outlook.com ([fe80::fd77:298b:c8f0:69c]) by BN6PR06MB2932.namprd06.prod.outlook.com ([fe80::fd77:298b:c8f0:69c%8]) with mapi id 15.20.0797.011; Wed, 23 May 2018 20:09:06 +0000 From: Sasha Da Rocha Pinheiro To: "elfutils-devel@sourceware.org" , "Mark Wielaard" Subject: dwarf_begin_elf() won't create handle without .debug_* sections Thread-topic: dwarf_begin_elf() won't create handle without .debug_* sections Thread-index: AQHT8s4EPBU6/muQ6UmxPhj9qvf9pw== Date: Wed, 23 May 2018 20:09:00 -0000 Message-id: Accept-Language: en-US, pt-BR Content-language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Originating-IP: [128.105.14.107] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR06MB2772;7:nWcCZ8TRG3wBTZ4x4XMrZ9hiDi2DRHPxZPiXeeZPzVLSrW7EAx2hrHRcfCLZ56UsifQDozlIdM9p0ZnZS4WZYGNwFKUZKWBXtRU8KY3Fsz36DqFhoJXD+F2oXaH683ccS6DAm50Rd34GzXdv/bdrSz/Dlwcnp9AP7kMnXSkGu0QNQ+RQ+qQtMpYDRP36fg33w4GM829Bk9GJHrEKotjm7BFYOafaqHNwinwAPeRBzWCkKeFXtZUfKrdOzUKXQ+di x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(8989080)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7153060)(7193020);SRVR:BN6PR06MB2772; x-ms-traffictypediagnostic: BN6PR06MB2772: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:BN6PR06MB2772;BCL:0;PCL:0;RULEID:;SRVR:BN6PR06MB2772; x-forefront-prvs: 06818431B9 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(366004)(39380400002)(39860400002)(53754006)(189003)(199004)(3280700002)(26005)(3660700001)(5250100002)(88552002)(7736002)(305945005)(75432002)(110136005)(6436002)(478600001)(66066001)(99286004)(186003)(2501003)(8676002)(6346003)(2906002)(786003)(316002)(74316002)(81166006)(102836004)(81156014)(6506007)(8936002)(575784001)(86362001)(5660300001)(97736004)(6116002)(106356001)(3846002)(25786009)(68736007)(7696005)(486006)(476003)(2900100001)(105586002)(33656002)(14454004)(6306002)(53936002)(966005)(9686003)(55016002)(142923001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR06MB2772;H:BN6PR06MB2932.namprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: wisc.edu does not designate permitted sender hosts) Authentication-results: spf=none (sender IP is ) smtp.mailfrom=darochapinhe@wisc.edu; x-microsoft-antispam-message-info: n1jNBmLvOtagR8RWsrqVfaIdHYSuJ9h9ne18AT4UPoUEWk7X4hIePX+rzLPV8kHxKdk6+gUJnLbDTiRgFpMi7VN0xt8A9Sn0vf9eCO2dGTJFVHmWkW0ZVAofXs18/Wf4OgYYaIvALZmb1dnixAtBqfPP9EBxCrwqGbgDTZpJHQbjNV+u97NZa6BqoAln9uYt spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: quoted-printable MIME-version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e9e5170c-f742-4b3f-e247-08d5c0e909b6 X-OriginatorOrg: wisc.edu X-MS-Exchange-CrossTenant-Network-Message-Id: e9e5170c-f742-4b3f-e247-08d5c0e909b6 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2018 20:09:06.3284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2ca68321-0eda-4908-88b2-424a8cb4b0f9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR06MB2772 X-SW-Source: 2018-q2/txt/msg00078.txt.bz2 Hi all,=20 I have some binaries that do not have .debug_* sections but have .eh_frame = and .gcc_except_table. Looking at: https://sourceware.org/git/?p=3Delfutils.git;a=3Dblob;f=3Dlibdw/dwarf_b= egin_elf.c;hb=3D144b73c49acf3ed894e4635aedb9b0d1208ade2e#l50 it seems that dwarf_begin_elf() will not create a Dwarf handle for this fil= e. Am I correct? So, the functions=20 dwarf_cfi_addrframe,=20 dwarf_frame_info,=20 dwarf_frame_cfa, and dwarf_frame_register will get info from .debug_frame while dwarf_next_cfi can get info either fr= om .debug_frame or .gcc_except_table, but without some abstractions? Since /* Opaque type representing a CFI section found in a DWARF or ELF file.= */ typedef struct Dwarf_CFI_s Dwarf_CFI; can we say Dwarf_CFI is only about .debug_frame? Even though dwarf_next_cfi= uses Dwarf_CFI_Entry but not Dwarf_CFI? I know .eh_frame has slightly different format from .debug_frame, and it's = not defined by the DWARF specification but LSB, so is it the reason why thi= s is kinda confusing? Regards, Sasha