From 313f3b21cbcd3475c2fc6030abb26e6c8346d03b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 5 Nov 2021 15:29:20 -0400 Subject: gdb: remove bpstat typedef, rename bpstats to bpstat I don't find that the bpstat typedef, which hides a pointer, is particularly useful. In fact, it confused me many times, and I just see it as something to remember that adds cognitive load. Also, with C++, we might want to be able to pass bpstats objects by const-reference, not necessarily by pointer. So, remove the bpstat typedef and rename struct bpstats to bpstat (since it represents one bpstat, it makes sense that it is singular). Change-Id: I52e763b6e54ee666a9e045785f686d37b4f5f849 --- gdb/ada-lang.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index d964dae..e76a300 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -11805,7 +11805,7 @@ should_stop_exception (const struct bp_location *bl) for all exception catchpoint kinds. */ static void -check_status_exception (bpstat bs) +check_status_exception (bpstat *bs) { bs->stop = should_stop_exception (bs->bp_location_at.get ()); } @@ -11814,7 +11814,7 @@ check_status_exception (bpstat bs) for all exception catchpoint kinds. */ static enum print_stop_action -print_it_exception (bpstat bs) +print_it_exception (bpstat *bs) { struct ui_out *uiout = current_uiout; struct breakpoint *b = bs->breakpoint_at; -- cgit v1.1