From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QFIACafZCGPBni0AWB0awg (envelope-from ) for ; Fri, 26 Aug 2022 10:33:11 -0400 Received: by simark.ca (Postfix, from userid 112) id 22BBE1E4A7; Fri, 26 Aug 2022 10:33:11 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=bNc6G7iA; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D59D91E222 for ; Fri, 26 Aug 2022 10:33:10 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 69D7E38515C3 for ; Fri, 26 Aug 2022 14:33:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69D7E38515C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661524390; bh=LxgMvW1YHjmP/DcpqBNOLsY6A1j5hnxFMjz6EiGN88s=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=bNc6G7iA6IDEq357sTF49kRBQrmyEUf7O9FwK3Y6xxo2BWgnm8x0hJImoeQ3UeW3n Ob31RhssvREQFC/32sw4Km1Y87NoP4JvyktHycrc80eVvg84LO4iUEwEcG/fUXzCsM jkGqpNa0zyP8gu9iMRkOj1Un3Uc9JJ89nc0Ee0Ik= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id F14C13858403 for ; Fri, 26 Aug 2022 14:32:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F14C13858403 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 27QEWjpi017814 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Aug 2022 10:32:49 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 27QEWjpi017814 Received: from simark.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id F241B1E222; Fri, 26 Aug 2022 10:32:44 -0400 (EDT) To: gdb-patches@sourceware.org Subject: [pushed] gdb: change bpstat_print's kind parameter to target_waitkind Date: Fri, 26 Aug 2022 10:32:44 -0400 Message-Id: <20220826143244.1827961-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Fri, 26 Aug 2022 14:32:45 +0000 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: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Change from int to target_waitkind, which is really what is is. While at it, remove some outdated doc. The return value is described by a relatively self-describing enum, not a numerical value like the doc says. Change-Id: Id899c853a857c7891c45e5b1639024067d5b59cd --- gdb/breakpoint.c | 2 +- gdb/breakpoint.h | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 2fe74ea0d3a4..8f0b19f85184 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4803,7 +4803,7 @@ print_solib_event (bool is_catchpoint) further info to be printed. */ enum print_stop_action -bpstat_print (bpstat *bs, int kind) +bpstat_print (bpstat *bs, target_waitkind kind) { enum print_stop_action val; diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index aaf7549b660a..93f30c9c13d4 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -35,6 +35,7 @@ #include "gdbsupport/refcounted-object.h" #include "gdbsupport/safe-iterator.h" #include "cli/cli-script.h" +#include "target/waitstatus.h" struct block; struct gdbpy_breakpoint_object; @@ -1226,10 +1227,8 @@ extern bool bpstat_causes_stop (bpstat *); just to things like whether watchpoints are set. */ extern bool bpstat_should_step (); -/* Print a message indicating what happened. Returns nonzero to - say that only the source line should be printed after this (zero - return means print the frame as well as the source line). */ -extern enum print_stop_action bpstat_print (bpstat *, int); +/* Print a message indicating what happened. */ +extern enum print_stop_action bpstat_print (bpstat *bs, target_waitkind kind); /* Put in *NUM the breakpoint number of the first breakpoint we are stopped at. *BSP upon return is a bpstat which points to the base-commit: 4fd404c298db4e19dbf87331d3b02f451af4c5cd -- 2.37.2