From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14505 invoked by alias); 4 Jun 2018 16:16:17 -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 14454 invoked by uid 89); 4 Jun 2018 16:16:16 -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.4 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,SPF_PASS autolearn=no version=3.3.2 spammy=permit, HTo:U*mark, H*Ad:U*mark, HContent-type:charset X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,SPF_PASS autolearn=no 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; Mon, 04 Jun 2018 16:16:15 +0000 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03lp0056.outbound.protection.outlook.com [216.32.180.56]) by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPS id <0P9T00DUY3V02B20@smtpauth2.wiscmail.wisc.edu> for elfutils-devel@sourceware.org; Mon, 04 Jun 2018 11:16:13 -0500 (CDT) X-Spam-Report: AuthenticatedSender=yes, SenderIP=[216.32.180.56] X-Wisc-Env-From-B64: ZGFyb2NoYXBpbmhlQHdpc2MuZWR1 X-Spam-PmxInfo: Server=avs-2, Version=6.4.3.2751440, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2018.6.4.160917, AntiVirus-Engine: 5.49.1, AntiVirus-Data: 2018.5.8.5491002, SenderIP=[216.32.180.56] 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=AV1SkC0P2kqyhi/8UGUr7PjMVg4HVn5OCo57iAT0TAw=; b=bbJJouXKp0gjay6BwMNnAQb07JUvXjrVc/gFc1SzoWOb74P/83tGl/8ozpKRaZXX++A2oyrbsi2HOIs8kHi23g817WMSs3YGHszFbLJ6v5CX419FzEbtFZW8/mc1m/ITbFFhL3mWDX0u0mnQyWen8YSIgqPxV6VgI5mT+kua5R8= Received: from BN6PR06MB2932.namprd06.prod.outlook.com (10.175.128.22) by BN6PR06MB2372.namprd06.prod.outlook.com (10.173.20.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Mon, 4 Jun 2018 16:16:11 +0000 Received: from BN6PR06MB2932.namprd06.prod.outlook.com ([fe80::c09:d9bd:2506:fc5b]) by BN6PR06MB2932.namprd06.prod.outlook.com ([fe80::c09:d9bd:2506:fc5b%8]) with mapi id 15.20.0820.015; Mon, 4 Jun 2018 16:16:11 +0000 From: Sasha Da Rocha Pinheiro To: "elfutils-devel@sourceware.org" , "Mark Wielaard" Subject: dwarf_next_cfi returns -1 Thread-topic: dwarf_next_cfi returns -1 Thread-index: AQHT/B9K/deFoJC+IUGt8+TCdSvfjQ== Date: Mon, 04 Jun 2018 16:16: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;BN6PR06MB2372;7:lTPRx/AxCmIuvlXprIox8ckvF5B+iOgK/AovbolaNn87CUnEsK2+HOD0tknuIcwMAC6MgGDlu3vHShFUlNSY2bPNIQWj70j9e74HFRlBRp1yweJfZajiEzHhUgH8u+yGC7oYMtcV8iCqjAFYYMuT3twUIc0ZZlAsT/xKjCaE5c0ddVbbhlf2CW+MrSLxeEuRe3UXhxFjsgyUIw3uA0e/dHFe3jJZ/3yqVYd2iRQkClKLTn5teOkZwSDa3flIcA+e 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:BN6PR06MB2372; x-ms-traffictypediagnostic: BN6PR06MB2372: 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)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:BN6PR06MB2372;BCL:0;PCL:0;RULEID:;SRVR:BN6PR06MB2372; x-forefront-prvs: 069373DFB6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39380400002)(376002)(39860400002)(396003)(346002)(366004)(189003)(199004)(6116002)(8936002)(110136005)(316002)(3660700001)(786003)(476003)(478600001)(33656002)(8676002)(3280700002)(74316002)(9686003)(81166006)(81156014)(86362001)(3846002)(99286004)(7736002)(105586002)(66066001)(25786009)(486006)(53936002)(106356001)(59450400001)(6506007)(75432002)(14454004)(6346003)(26005)(97736004)(186003)(102836004)(55016002)(5250100002)(6436002)(7696005)(2501003)(2900100001)(5660300001)(7116003)(68736007)(88552002)(305945005)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR06MB2372;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: nXf0feQGqslthQfUCvv4gihX0P1+BymYGLBwIfW7A+4H1kLZLmjCd8lJUhqfln3goR/vYwpmwxfA1LbLbLTSUm9pfG/T2ljeuIWEsdjYjjdcYdkGfaIzyEZ/ZfvNhr7dWcl5+buxrgwJVT5NtYyENTTpekvvvWtvxFtaKvHeeMHDgx1lvgjTQDVtE2z8FqS0 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: 38a1e16a-d707-4a53-f4e8-08d5ca367ce5 X-OriginatorOrg: wisc.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 38a1e16a-d707-4a53-f4e8-08d5ca367ce5 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2018 16:16:11.4189 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2ca68321-0eda-4908-88b2-424a8cb4b0f9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR06MB2372 X-SW-Source: 2018-q2/txt/msg00144.txt.bz2 Hi, We had a case where dwarf_next_cfi returns -1 but the offset does not updat= e, as we should expect by the comment: =A0330=A0=A0=A0 On errors, returns -1.=A0 Some format errors will permit sa= fely =A0331=A0=A0=A0 skipping to the next CFI entry though the current one is un= usable. =A0332=A0=A0=A0 In that case, *NEXT_OFF will be updated before a -1 return. Is there a correct way to deal with it, or just check if the NEXT_OFF had c= hanged? Sasha