Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [pushed] gdb: change bpstat_print's kind parameter to target_waitkind
@ 2022-08-26 14:32 Simon Marchi via Gdb-patches
  0 siblings, 0 replies; only message in thread
From: Simon Marchi via Gdb-patches @ 2022-08-26 14:32 UTC (permalink / raw)
  To: 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-26 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26 14:32 [pushed] gdb: change bpstat_print's kind parameter to target_waitkind Simon Marchi via Gdb-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox