From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id A35203857C49; Fri, 29 Apr 2022 22:21:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A35203857C49 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Boolify print_solib_event X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 2f9ee862bca8e9c8548a6b17927b64c249fb25d4 X-Git-Newrev: 4e9e993a7e7e741703474f0ae4e311657cec4a60 Message-Id: <20220429222159.A35203857C49@sourceware.org> Date: Fri, 29 Apr 2022 22:21:59 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2022 22:21:59 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4e9e993a7e7e= 741703474f0ae4e311657cec4a60 commit 4e9e993a7e7e741703474f0ae4e311657cec4a60 Author: Tom Tromey Date: Thu Jan 13 16:32:33 2022 -0700 Boolify print_solib_event =20 Change print_solib_event to accept a bool parameter and update the callers. Diff: --- gdb/break-catch-load.c | 2 +- gdb/breakpoint.c | 6 +++--- gdb/breakpoint.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c index 93e371c00ca..393fc61923d 100644 --- a/gdb/break-catch-load.c +++ b/gdb/break-catch-load.c @@ -133,7 +133,7 @@ print_it_catch_solib (bpstat *bs) uiout->text ("\n"); if (uiout->is_mi_like_p ()) uiout->field_string ("disp", bpdisp_text (b->disposition)); - print_solib_event (1); + print_solib_event (true); return PRINT_SRC_AND_LOC; } =20 diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0710f7251dd..683b24beb7e 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4628,7 +4628,7 @@ print_bp_stop_message (bpstat *bs) /* See breakpoint.h. */ =20 void -print_solib_event (int is_catchpoint) +print_solib_event (bool is_catchpoint) { bool any_deleted =3D !current_program_space->deleted_solibs.empty (); bool any_added =3D !current_program_space->added_solibs.empty (); @@ -4721,7 +4721,7 @@ bpstat_print (bpstat *bs, int kind) OS-level shared library event, do the same thing. */ if (kind =3D=3D TARGET_WAITKIND_LOADED) { - print_solib_event (0); + print_solib_event (false); return PRINT_NOTHING; } =20 @@ -11910,7 +11910,7 @@ internal_bkpt_print_it (bpstat *bs) /* Did we stop because the user set the stop_on_solib_events variable? (If so, we report this as a generic, "Stopped due to shlib event" message.) */ - print_solib_event (0); + print_solib_event (false); break; =20 case bp_thread_event: diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index e71f93bb5cd..8c0c3a3d5b9 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1807,6 +1807,6 @@ extern void catch_exception_event (enum exception_eve= nt_kind ex_event, IS_CATCHPOINT is true if the event is due to a "catch load" catchpoint, false otherwise. */ =20 -extern void print_solib_event (int is_catchpoint); +extern void print_solib_event (bool is_catchpoint); =20 #endif /* !defined (BREAKPOINT_H) */