aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-22 11:27:31 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-22 13:57:54 -0500
commitc272a98cbf596ddf1a70a41801c6e86d9564d152 (patch)
tree366b8b105f8450dd1894aebbbae82b8e1946d249 /gdb/infrun.h
parent06de25b7af21eb1173d7b86c5c0f37aae5ec2674 (diff)
downloadgdb-c272a98cbf596ddf1a70a41801c6e86d9564d152.zip
gdb-c272a98cbf596ddf1a70a41801c6e86d9564d152.tar.gz
gdb-c272a98cbf596ddf1a70a41801c6e86d9564d152.tar.bz2
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
Diffstat (limited to 'gdb/infrun.h')
-rw-r--r--gdb/infrun.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.h b/gdb/infrun.h
index c5f98d9..644e57f 100644
--- a/gdb/infrun.h
+++ b/gdb/infrun.h
@@ -209,7 +209,7 @@ extern void print_stop_event (struct ui_out *uiout, bool displays = true);
/* Pretty print the results of target_wait, for debugging purposes. */
extern void print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid,
- const struct target_waitstatus *ws);
+ const struct target_waitstatus &ws);
extern int signal_stop_state (int);