From patchwork Thu Nov 3 17:55:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 17167 Received: (qmail 50022 invoked by alias); 3 Nov 2016 17:55:51 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 50008 invoked by uid 89); 3 Nov 2016 17:55:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:sk:001a114, H*MI:sk:001a114, H*MI:google, H*M:google X-HELO: mail-pa0-f73.google.com Received: from mail-pa0-f73.google.com (HELO mail-pa0-f73.google.com) (209.85.220.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 Nov 2016 17:55:50 +0000 Received: by mail-pa0-f73.google.com with SMTP id gx4so1847454pac.0 for ; Thu, 03 Nov 2016 10:55:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to; bh=euUCcTJYxFMlMY9GNwvcjnnrKYReaD9RQ0xsSBjcP1I=; b=F7TUZghoElnE3qK434qTa47H2FMlPDuC+wT1iV9yUGungTKDIXret1RGB4HCnUc3o7 nVzzE7cY9MAcfcYcxe+QqkMk7fpF2CLN043zI5Ds/7Na2oJvjb8hRgDOxM85VIZvi0jx mgenNiSdi/VYVhtOuaS1t1stoPF7Y6JyLfL7iDRAaUh8w6THjmLLBSw9ZChrLlLRx4l6 v2IX5d0zNdMpC/y8ruaLdfSC1SihU4s+ngdI+47kEVvrtm7r6yjlE8DOLXJCw/JNCP7L dTQCCTMqc7OuNsqhD8BrfNGoBthjNiaqodPMC1gWYKzbknlQ5RbUlYaXz/1Mvtp0xikk 98jg== X-Gm-Message-State: ABUngvfg2nPBaMyZLIXEoaseuFmhASNXCit5qefE7AhGgemL00bLjm4BUSp0rvAW+l+sf0be002NdeHOVwB7nLaKByLMCPgD8mr4JEwVapKl5D5RBiJtPpn39piuM5DwtzvYfvOoxHh7xaoCyeaIDGtyNimbK6pwTE5mFmQtOVCZKf9i0Ol6OQ== MIME-Version: 1.0 X-Received: by 10.98.43.20 with SMTP id r20mr2893283pfr.35.1478195748442; Thu, 03 Nov 2016 10:55:48 -0700 (PDT) Message-ID: <001a11439b707ef48905406944e2@google.com> Date: Thu, 03 Nov 2016 17:55:48 +0000 Subject: [PATCH] python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. From: Doug Evans To: gdb-patches@sourceware.org X-IsSubscribed: yes Hi. I happened to notice this while reading the code. 2016-11-03 Doug Evans * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate. diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index cc685ae..92ce138 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -212,9 +212,7 @@ unwind_infopy_str (PyObject *self) get_user_print_options (&opts); fprintf_unfiltered (strfile, "\nSaved registers: ("); - for (i = 0; - i < VEC_iterate (saved_reg, unwind_info->saved_regs, i, reg); - i++) + for (i = 0; VEC_iterate (saved_reg, unwind_info->saved_regs, i, reg); i++) { struct value *value = value_object_to_value (reg->value);