From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123272 invoked by alias); 17 Jul 2017 17:53:53 -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 123196 invoked by uid 89); 17 Jul 2017 17:53:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,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: smtpauth4.wiscmail.wisc.edu Received: from wmauth4.doit.wisc.edu (HELO smtpauth4.wiscmail.wisc.edu) (144.92.197.145) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Jul 2017 17:53:46 +0000 MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Received: from avs-daemon.smtpauth4.wiscmail.wisc.edu by smtpauth4.wiscmail.wisc.edu (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) id <0OT800100X2H6600@smtpauth4.wiscmail.wisc.edu> for elfutils-devel@sourceware.org; Mon, 17 Jul 2017 12:52:33 -0500 (CDT) X-Spam-Report: AuthenticatedSender=yes, SenderIP=216.32.181.178 X-Spam-PmxInfo: Server=avs-4, Version=6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2017.7.17.174216, AntiVirus-Engine: 5.38.0, AntiVirus-Data: 2017.6.22.5380000, SenderIP=216.32.181.178 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01lp0178.outbound.protection.outlook.com [216.32.181.178]) by smtpauth4.wiscmail.wisc.edu (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPS id <0OT80097ZXNFV360@smtpauth4.wiscmail.wisc.edu>; Mon, 17 Jul 2017 12:52:28 -0500 (CDT) Received: from BN6PR06MB3090.namprd06.prod.outlook.com (10.174.95.164) by BN6PR06MB3091.namprd06.prod.outlook.com (10.174.95.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Mon, 17 Jul 2017 17:52:27 +0000 Received: from BN6PR06MB3090.namprd06.prod.outlook.com ([10.174.95.164]) by BN6PR06MB3090.namprd06.prod.outlook.com ([10.174.95.164]) with mapi id 15.01.1261.021; Mon, 17 Jul 2017 17:52:27 +0000 From: Sasha Da Rocha Pinheiro To: Mark Wielaard Cc: "elfutils-devel@sourceware.org" Subject: Re: Dwarf_FDE (libdw) Thread-topic: Dwarf_FDE (libdw) Thread-index: AQHS/QVpzQDxCHY/kUq1gBXo+u7+5aJVaRMAgAICk3CAAJuWAIAAPLxigAALv4CAAABJBw== Date: Mon, 17 Jul 2017 17:53:00 -0000 Message-id: References: <20170715213020.GA2445@stream> <1500298136.14595.368.camel@klomp.org> <20170717174821.GA2236@stream> In-reply-to: <20170717174821.GA2236@stream> 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;BN6PR06MB3091;7:XGjhArkRU5mb23jh7EgbHOxL3sCuP1uNUaCpTwU+42XFFt7I0t0w8jR4Ae+9TH8jlZBh+WBXhfIkVEolVF9egRYS5Xp6ww2+2nKXrrzCcKcMt2CdRGwF5n1fboWhGmKlCDW6/0pi6y9x7g6n3b6tjR9mq8LXW+sjokO3O4Dil+DRxA9C32/tvoOVT6jjdY4gb3i0ycLNNiv62MhbNydtYN8AiC4UpfzKZWJbISPSgd9ZPfNqOVzPNUJYxNYtxdkjXkK0M8JA2meEFFPRrVIo0iCUKScj7wdG2hkqF0uJYjsSbFxd8kaRcf5c4yskgw3NBZSE2J+/zQGKvdXf864+PAX8CtItCaF3VmGqPNRlpB5BoqyVsQudrc1WmAJA0/uX9pXCH3+HxKQZtxjG8MTVIC34oactUSkHHhZ0vYIIOJvrkyg2CKW8iNqPsIfQUf0nRjyydSfyOgt3FFyc/889QLBWWfbYGI1JDsqIFmsKngNuK9rfLA9mcbF5zGetMj1HtZz5AV9sCGLWNn2xR0UuXHkxf0C4F2rPNkU+aTtJ2ZCHJAtsBCpHwAdc5ns+9bvMJ/ql5mUUFp1iAEKFD3mBXDJxyP0m7g8Rk0Oz6cy1AGTkuQBAzTgxbSHvGEhMSMmPkeLAV612vUcRcnlzraPPwdvI/vwqbzhp54cnOq73kB7kLxDKB08m1OOBXACKRe2a0ZeS0A7MD/rHMtagXha1i4VE80L1Q3NPGdEIO1rVUBtvnxNxfOtNdUuvNKx6bOv7vSaRDMNVfPG2QeMqEsopW5lBszUCIisz1v1yKTBKgaE= x-ms-office365-filtering-correlation-id: 9f46189f-6208-4672-080d-08d4cd3c9665 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR06MB3091; x-ms-traffictypediagnostic: BN6PR06MB3091: x-exchange-antispam-report-test: UriScan:(133145235818549)(236129657087228); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123558100)(20161123562025)(20161123560025)(20161123555025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR06MB3091;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR06MB3091; x-forefront-prvs: 0371762FE7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(24454002)(377454003)(75432002)(102836003)(3846002)(14454004)(6116002)(110136004)(6246003)(6306002)(6506006)(55016002)(53936002)(6436002)(99286003)(9686003)(2900100001)(478600001)(966005)(38730400002)(7696004)(53546010)(66066001)(50986999)(76176999)(7736002)(81166006)(54356999)(33656002)(8676002)(4326008)(2906002)(8936002)(3660700001)(88552002)(229853002)(3280700002)(189998001)(93886004)(305945005)(2950100002)(25786009)(86362001)(5660300001)(74316002)(6916009)(77096006);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR06MB3091;H:BN6PR06MB3090.namprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-transfer-encoding: quoted-printable X-OriginatorOrg: wisc.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2017 17:52:26.9299 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2ca68321-0eda-4908-88b2-424a8cb4b0f9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR06MB3091 X-SW-Source: 2017-q3/txt/msg00024.txt.bz2 Yes, that's what I am trying to do right now.=20 Try/catch blocks or exception handling is the right term I guess. From: Mark Wielaard Sent: Monday, July 17, 2017 12:48 PM To: Sasha Da Rocha Pinheiro Cc: elfutils-devel@sourceware.org Subject: Re: Dwarf_FDE (libdw) =A0=20=20=20 On Mon, Jul 17, 2017 at 05:16:00PM +0000, Sasha Da Rocha Pinheiro wrote: > So you're saying that the augmentation data of a FDE is the augmentation > data of its CIE? > https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/ehframech= pt.html Chapter 8. Exception Frames - Linux Foundation refspecs.linuxfoundation.org Chapter 8. Exception Frames. When using languages that support exceptions, = such as C++, additional information must be provided to the runtime environ= ment that ... > says differently. If you need to read the low-level augmentation data from an FDE then you need to know whether it is there and how the FDE addresses are encoded. Which is encoded in the CIE augmentation data. > The thing is I need to get catch blocks, and eh_frame is not exactly > Dwarf format. That's why I need FDE augmentation data also. > Libdw doesn't do this, am I correct? libdw handles both .debug_frame and .eh_frame data. And you can use the Dwarf_Frames to unwind. I believe the only thing not directly exposed are the lsda and personality pointers. Is that the functionality that you need for "catch blocks"? Cheers, Mark =20=20=20=20