From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76849 invoked by alias); 15 Oct 2019 08:43:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 76838 invoked by uid 89); 15 Oct 2019 08:42:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy= X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Oct 2019 08:42:58 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id 030A620188; Tue, 15 Oct 2019 04:42:55 -0400 (EDT) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id 7D3B6208EF; Tue, 15 Oct 2019 04:42:50 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 5A06429ED0; Tue, 15 Oct 2019 04:42:50 -0400 (EDT) X-Gerrit-PatchSet: 3 Date: Tue, 15 Oct 2019 08:43:00 -0000 From: "Christian Biesinger (Code Review)" To: Christian Biesinger , gdb-patches@sourceware.org Cc: Simon Marchi Auto-Submitted: auto-generated X-Gerrit-MessageType: comment Subject: Change in binutils-gdb[master]: Change iterate_over_breakpoints to take a function_view X-Gerrit-Change-Id: Ia9de4deecae562a70a40f5cd49f5a74d64570251 X-Gerrit-Change-Number: 21 X-Gerrit-ChangeURL: X-Gerrit-Commit: 0b9b4e0e275df7ab3f0b16dd963c8c5f49e84090 In-Reply-To: References: X-Gerrit-Comment-Date: Tue, 15 Oct 2019 04:42:49 -0400 Reply-To: cbiesinger@google.com, simon.marchi@polymtl.ca, cbiesinger@google.com, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/3.0.3 Content-Type: text/plain; charset=UTF-8 Message-Id: <20191015084250.5A06429ED0@gnutoolchain-gerrit.osci.io> X-SW-Source: 2019-10/txt/msg00401.txt.bz2 Christian Biesinger has posted comments on this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21 ...................................................................... Uploaded patch set 3. (6 comments) https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/breakpoint.c File gdb/breakpoint.c: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/breakpoint.c@15131 PS2, Line 15131: iterate_over_breakpoints : (gdb::function_view callback) > This would fit on a single line. Done https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/dummy-frame.c File gdb/dummy-frame.c: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/dummy-frame.c@169 PS2, Line 169: iterate_over_breakpoints ([dummy] (breakpoint* bp) > Same comment about formatting as in py-finishbreakpoint.c. Done https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/guile/scm-breakpoint.c File gdb/guile/scm-breakpoint.c: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/guile/scm-breakpoint.c@551 PS2, Line 551: ([&] (breakpoint *bp) { return bpscm_build_bp_list(bp, &list); }) > For readability, I'd like if you took that out of the "if". Either: […] Done; I chose to remove the if. https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/python/py-breakpoint.c File gdb/python/py-breakpoint.c: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/python/py-breakpoint.c@909 PS2, Line 909: ([&] (breakpoint *bp) { return build_bp_list(bp, list.get ()); }) != NULL) > Same comment about formatting as in scm-breakpoint. […] Done https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/python/py-finishbreakpoint.c File gdb/python/py-finishbreakpoint.c: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/python/py-finishbreakpoint.c@386 PS2, Line 386: iterate_over_breakpoints ([&] (breakpoint *bp) { : return bpfinishpy_detect_out_scope_cb : (bp, bs == NULL ? NULL : bs->breakpoint_at); }); > I was told before to place the curly braces of the lambda like this, to mimic how we format scopes: […] Done, thanks. https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21/2/gdb/python/py-finishbreakpoint.c@399 PS2, Line 399: iterate_over_breakpoints ([&] (breakpoint *bp) { > Same. Done -- To view, visit https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/21 To unsubscribe, or for help writing mail filters, visit https://gnutoolchain-gerrit.osci.io/r/settings