From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 7C3973858C52 for ; Fri, 23 Sep 2022 06:03:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7C3973858C52 Received: by mail-wm1-x329.google.com with SMTP id e10-20020a05600c4e4a00b003b4eff4ab2cso2604612wmq.4 for ; Thu, 22 Sep 2022 23:03:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=lSQ7GRburjeokavlrTWNDYYQty4DhLf/Zn521yb2f+g=; b=lPgwe5yVqe1pkiOw/0fFZFP3mPwriU7AVo5qiglGS/BS9bKUH1P3vjLxbjPc1Ih0L3 wJ8hamRDv0vtMEEyL9tY94nMl/EFsviczXjXaAg5670X2s/lw4qYjQkYgNPc2X2SawUl 95aUFxhpaCBRH8bwWG5+jOq1FxiWozQnBoSVY4UsvfDJ+i4u7C0sV2PUg+uekAZNfv/w 8ZXIF2Hf4XacbJKVx7YnZLN6B7ODvkAYA9WWvanIEIhXXqR6GotC37db05ou0Dar+xea gv9QQHrx9IXAyZBmbGAJCZtArBQvm30cPhrwfTtKnFjmTC3yC33Sf4YObk51WmbMFqyB Nn0A== X-Gm-Message-State: ACrzQf16/j/yf3HICdKtd+Y6gZwLo2cOA4KLjG8h3a8ZSDMcIUXuUi7h voQt4rtrw0w4t9FwbEHJ9+U= X-Google-Smtp-Source: AMsMyM7JaZoAMgUTrE+bJ2nty81R5G3HZdo+F2DnW4nKnKeB/SLdxIlLdrJMY9NcShyuRAMc+BCEEw== X-Received: by 2002:a05:600c:1c22:b0:3b4:b2bc:15e4 with SMTP id j34-20020a05600c1c2200b003b4b2bc15e4mr4729413wms.69.1663913012163; Thu, 22 Sep 2022 23:03:32 -0700 (PDT) Received: from ubuntu-22.. (intel10.cs.nthu.edu.tw. [140.114.89.60]) by smtp.gmail.com with ESMTPSA id e10-20020a5d6d0a000000b0022aeba020casm7848318wrq.83.2022.09.22.23.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 23:03:31 -0700 (PDT) From: Johnson Sun To: BrunoLarsen , gdb-patches@sourceware.org Cc: j3.soon777@gmail.com Subject: [PATCH v2] [gdb/python] Replace gdbpy_should_stop with gdbpy_breakpoint_cond_says_stop Date: Fri, 23 Sep 2022 14:00:28 +0800 Message-Id: <20220923060027.78902-1-j3.soon777@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220920172426.90659-1-j3.soon777@gmail.com> References: <20220920172426.90659-1-j3.soon777@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2022 06:03:35 -0000 In 2014, the function `gdbpy_should_stop' has been replaced with `gdbpy_breakpoint_cond_says_stop' This replaces `gdbpy_should_stop' with `gdbpy_breakpoint_cond_says_stop' in the comments. Since `gdbpy_should_stop' has been renamed as noted in `gdb/ChangeLog-2014': * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed from gdbpy_should_stop. Change result type to enum scr_bp_stop. --- gdb/python/py-finishbreakpoint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c index c80096f6810..dcf86317779 100644 --- a/gdb/python/py-finishbreakpoint.c +++ b/gdb/python/py-finishbreakpoint.c @@ -90,7 +90,7 @@ bpfinishpy_dealloc (PyObject *self) Py_TYPE (self)->tp_free (self); } -/* Triggered when gdbpy_should_stop is about to execute the `stop' callback +/* Triggered when gdbpy_breakpoint_cond_says_stop is about to execute the `stop' callback of the gdb.FinishBreakpoint object BP_OBJ. Will compute and cache the `return_value', if possible. */ @@ -134,7 +134,7 @@ bpfinishpy_pre_stop_hook (struct gdbpy_breakpoint_object *bp_obj) } } -/* Triggered when gdbpy_should_stop has triggered the `stop' callback +/* Triggered when gdbpy_breakpoint_cond_says_stop has triggered the `stop' callback of the gdb.FinishBreakpoint object BP_OBJ. */ void -- 2.34.1 base-commit: c99b2113a478a075e8d8f7c3848a92f1ce73f847