From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 59F403858403; Fri, 26 Aug 2022 14:32:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59F403858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661524358; bh=Xp9SXYTmgAKxmxJu/k8uk381ciKCW51/IF/kF3UM0X0=; h=From:To:Subject:Date:From; b=bnQMW1RD80sok938VwAWxqrlVmTRWVfoNwqHwvhD4NEspV+uEyKGieToevWa1ZJkL HWL9Dri4tvmQlmWUqXp3qdWaz+E0uEokkwpzp4gnsmauzdB7d0Y+R+2KLMxZyUU9/B OlbnCK4nlqx1yobifb2+DPNRePl1pRzMka68rZJI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: change bpstat_print's kind parameter to target_waitkind X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 4fd404c298db4e19dbf87331d3b02f451af4c5cd X-Git-Newrev: 403c71fdace8e0f16807470ec1c3dc505bcb78d4 Message-Id: <20220826143238.59F403858403@sourceware.org> Date: Fri, 26 Aug 2022 14:32:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D403c71fdace8= e0f16807470ec1c3dc505bcb78d4 commit 403c71fdace8e0f16807470ec1c3dc505bcb78d4 Author: Simon Marchi Date: Thu Aug 25 15:38:44 2022 -0400 gdb: change bpstat_print's kind parameter to target_waitkind =20 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. =20 Change-Id: Id899c853a857c7891c45e5b1639024067d5b59cd Diff: --- 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 2fe74ea0d3a..8f0b19f8518 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4803,7 +4803,7 @@ print_solib_event (bool is_catchpoint) further info to be printed. */ =20 enum print_stop_action -bpstat_print (bpstat *bs, int kind) +bpstat_print (bpstat *bs, target_waitkind kind) { enum print_stop_action val; =20 diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index aaf7549b660..93f30c9c13d 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" =20 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 (); =20 -/* 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 ki= nd); =20 /* Put in *NUM the breakpoint number of the first breakpoint we are stopped at. *BSP upon return is a bpstat which points to the