From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123399 invoked by alias); 15 Jul 2017 01:01:01 -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 108765 invoked by uid 89); 15 Jul 2017 01:00:34 -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.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-exchange-antispam-report-cfa-test:201702281529075, Hx-spam-relays-external:15.01.1240.020, H*RU:15.01.1240.020, H*r:15.01.1240.020 X-Spam-Status: No, score=-1.6 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: smtpauth2.wiscmail.wisc.edu Received: from wmauth2.doit.wisc.edu (HELO smtpauth2.wiscmail.wisc.edu) (144.92.197.222) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 15 Jul 2017 01:00:18 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) id <0OT300H00X8P0N00@smtpauth2.wiscmail.wisc.edu> for elfutils-devel@sourceware.org; Fri, 14 Jul 2017 20:00:06 -0500 (CDT) X-Spam-Report: AuthenticatedSender=yes, SenderIP=216.32.181.22 X-Spam-PmxInfo: Server=avs-2, Version=6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2017.7.15.5416, AntiVirus-Engine: 5.38.0, AntiVirus-Data: 2017.6.27.5380000, SenderIP=216.32.181.22 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03lp0022.outbound.protection.outlook.com [216.32.181.22]) by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPS id <0OT300MR8XG54530@smtpauth2.wiscmail.wisc.edu> for elfutils-devel@sourceware.org; Fri, 14 Jul 2017 20:00:06 -0500 (CDT) Received: from DM2PR06MB272.namprd06.prod.outlook.com (10.141.100.154) by DM2PR06MB271.namprd06.prod.outlook.com (10.141.100.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Sat, 15 Jul 2017 01:00:04 +0000 Received: from DM2PR06MB272.namprd06.prod.outlook.com ([fe80::297f:6a7e:3019:1c34]) by DM2PR06MB272.namprd06.prod.outlook.com ([fe80::297f:6a7e:3019:1c34%27]) with mapi id 15.01.1240.020; Sat, 15 Jul 2017 01:00:04 +0000 From: Sasha Da Rocha Pinheiro To: "elfutils-devel@sourceware.org" Subject: Dwarf_FDE (libdw) Thread-topic: Dwarf_FDE (libdw) Thread-index: AQHS/QVpzQDxCHY/kUq1gBXo+u7+5Q== Date: Sat, 15 Jul 2017 01:01: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;DM2PR06MB271;7:YSvkDue1ha2d2s1NAUpHjqBjG1uDeWP9HJcEOuPNKHpK+XjJlAplGt846MnM1/jVovM2NF89ftgdBS8AFsCvj1OGfqgXQmDD+EiLekt1tkIxpOiQWULY6lO/FP8ESz4WxvBUpQQURNlQIKIVYx5H5sdg0SGuAN7kFccJt5boS3aHe0BWSU0P6ZeTqlAH8/TxrzPR2pI0KFf0F1buz3w/BJxly+8BYB9p80Uik4gdPNP9RdssX4trxP2t0sadrS6BzsnrtHKdd24UJlaYriLpLUqobs+42XjqqV4y70+KN/Mi7k4TSb5EU5dUGcfh4gxWyuxoQlhz2crePMVNrwWxmSDP5agHhBY/Joa9K1TOTPu6vTiKcJGKQnRyjME+I9G0g+Rmb5f50Yq5dLZjHn7tR4Srag6kMsVxcoaw26neCrn9o21B2OkIiuWXDBWhe+YZ0FNm+N1FfHkV6Xldn0CKOC1Y2GuC70aKAAwBC+Xn/Mga2l8fGdf1d4gunCxE1IvTWr7awDYOr/b+slppjadbr9JQQY65Ex4u0QW7p19E8szn6k0RqddV8tt9xtfiJTrTVVwgtvFD/hpsetQrniUnJiRrrquROL4SQelN58z4Z79uJTgJ+X76wL3Q9yZrscafzQt87WcPeN7W4+ryldG+xBFvDS2qTHUTf0R8LbbQpWGTbnoyOTx7CGqtMi8m4E8R7v84B8vS3s7QNVYUDce+iBvnqSzTh1NFuP3RNekCOHn4QQkmvbrqIsGLft+vaUBq5JYYOzEuKgTfdR2XnS5aB5BdUk/0JViYl/zOxOjZl1w= x-ms-office365-filtering-correlation-id: bfe24617-e555-4199-c7a3-08d4cb1cd446 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)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM2PR06MB271; x-ms-traffictypediagnostic: DM2PR06MB271: x-exchange-antispam-report-test: UriScan:(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)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201702281529075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM2PR06MB271;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM2PR06MB271; x-forefront-prvs: 0369E8196C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(8676002)(99286003)(86362001)(81166006)(8936002)(6436002)(9686003)(54356999)(14454004)(50986999)(5640700003)(110136004)(6506006)(2900100001)(38730400002)(53936002)(66066001)(75432002)(2501003)(6916009)(88552002)(55016002)(5250100002)(7696004)(3846002)(25786009)(305945005)(7736002)(102836003)(6116002)(33656002)(74316002)(3280700002)(3660700001)(189998001)(5660300001)(2351001)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR06MB271;H:DM2PR06MB272.namprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-OriginatorOrg: wisc.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2017 01:00:04.4985 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2ca68321-0eda-4908-88b2-424a8cb4b0f9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR06MB271 X-SW-Source: 2017-q3/txt/msg00009.txt.bz2 Hi, I did not understand how to get the augmentation_data of a FDE. Could anyone explain me? Also, is the start and end of Dwarf_FDE to be used as [initial_location, initial_location+address_range)?? Regards, Sasha typedef struct { /* Section offset of CIE this FDE refers to. This will never be DW_CIE_ID_64 in an FDE. If this value is DW_CIE_ID_64, this is actually a Dwarf_CIE structure. */ Dwarf_Off CIE_pointer; /* We can't really decode anything further without looking up the CIE and checking its augmentation string. Here follows the encoded initial_location and address_range, then any augmentation data, then the instruction stream. This FDE describes PC locations in the byte range [initial_location, initial_location+address_range). When the CIE augmentation string uses 'z', the augmentation data is a DW_FORM_block (self-sized). Otherwise, when we understand the augmentation string completely, fde_augmentation_data_size gives the number of bytes of augmentation data before the instructions. */ const uint8_t *start; const uint8_t *end; } Dwarf_FDE;