diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-11-05 15:29:20 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-11-08 16:39:14 -0500 |
commit | 313f3b21cbcd3475c2fc6030abb26e6c8346d03b (patch) | |
tree | be75de561691f60bc061a6711805a57db50ecbe0 /gdb/mi | |
parent | 9be90c6894a208b32ed7237d4b31ecf9afb1ec8a (diff) | |
download | fsf-binutils-gdb-313f3b21cbcd3475c2fc6030abb26e6c8346d03b.zip fsf-binutils-gdb-313f3b21cbcd3475c2fc6030abb26e6c8346d03b.tar.gz fsf-binutils-gdb-313f3b21cbcd3475c2fc6030abb26e6c8346d03b.tar.bz2 |
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
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-interp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 144521b..ea08304 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -64,7 +64,7 @@ static void mi_on_signal_received (enum gdb_signal siggnal); static void mi_on_end_stepping_range (void); static void mi_on_signal_exited (enum gdb_signal siggnal); static void mi_on_exited (int exitstatus); -static void mi_on_normal_stop (struct bpstats *bs, int print_frame); +static void mi_on_normal_stop (struct bpstat *bs, int print_frame); static void mi_on_no_history (void); static void mi_new_thread (struct thread_info *t); @@ -614,7 +614,7 @@ mi_on_no_history (void) } static void -mi_on_normal_stop_1 (struct bpstats *bs, int print_frame) +mi_on_normal_stop_1 (struct bpstat *bs, int print_frame) { /* Since this can be called when CLI command is executing, using cli interpreter, be sure to use MI uiout for output, @@ -673,7 +673,7 @@ mi_on_normal_stop_1 (struct bpstats *bs, int print_frame) } static void -mi_on_normal_stop (struct bpstats *bs, int print_frame) +mi_on_normal_stop (struct bpstat *bs, int print_frame) { SWITCH_THRU_ALL_UIS () { |