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/inline-frame.c | |
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/inline-frame.c')
-rw-r--r-- | gdb/inline-frame.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c index df7bd82..6c1ac2c 100644 --- a/gdb/inline-frame.c +++ b/gdb/inline-frame.c @@ -308,9 +308,9 @@ block_starting_point_at (CORE_ADDR pc, const struct block *block) set at FRAME_BLOCK. */ static bool -stopped_by_user_bp_inline_frame (const block *frame_block, bpstat stop_chain) +stopped_by_user_bp_inline_frame (const block *frame_block, bpstat *stop_chain) { - for (bpstat s = stop_chain; s != NULL; s = s->next) + for (bpstat *s = stop_chain; s != nulltr; s = s->next) { struct breakpoint *bpt = s->breakpoint_at; @@ -341,7 +341,7 @@ stopped_by_user_bp_inline_frame (const block *frame_block, bpstat stop_chain) /* See inline-frame.h. */ void -skip_inline_frames (thread_info *thread, bpstat stop_chain) +skip_inline_frames (thread_info *thread, bpstat *stop_chain) { const struct block *frame_block, *cur_block; std::vector<struct symbol *> skipped_syms; |