From c272a98cbf596ddf1a70a41801c6e86d9564d152 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 22 Nov 2021 11:27:31 -0500 Subject: gdb: pass more const target_waitstatus by reference While working on target_waitstatus changes, I noticed a few places where const target_waitstatus objects could be passed by reference instead of by pointers. And in some cases, places where a target_waitstatus could be passed as const, but was not. Convert them as much as possible. Change-Id: Ied552d464be5d5b87489913b95f9720a5ad50c5a --- gdb/break-catch-sig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/break-catch-sig.c') diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 0998aa9..7fe35dc 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -149,16 +149,16 @@ static int signal_catchpoint_breakpoint_hit (const struct bp_location *bl, const address_space *aspace, CORE_ADDR bp_addr, - const struct target_waitstatus *ws) + const target_waitstatus &ws) { const struct signal_catchpoint *c = (const struct signal_catchpoint *) bl->owner; gdb_signal signal_number; - if (ws->kind () != TARGET_WAITKIND_STOPPED) + if (ws.kind () != TARGET_WAITKIND_STOPPED) return 0; - signal_number = ws->sig (); + signal_number = ws.sig (); /* If we are catching specific signals in this breakpoint, then we must guarantee that the called signal is the same signal we are -- cgit v1.1