mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
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
This commit is contained in:
@@ -144,7 +144,7 @@ classify_exception_breakpoint (struct breakpoint *b)
|
||||
/* Implement the 'check_status' method. */
|
||||
|
||||
static void
|
||||
check_status_exception_catchpoint (struct bpstats *bs)
|
||||
check_status_exception_catchpoint (struct bpstat *bs)
|
||||
{
|
||||
struct exception_catchpoint *self
|
||||
= (struct exception_catchpoint *) bs->breakpoint_at;
|
||||
@@ -227,7 +227,7 @@ re_set_exception_catchpoint (struct breakpoint *self)
|
||||
}
|
||||
|
||||
static enum print_stop_action
|
||||
print_it_exception_catchpoint (bpstat bs)
|
||||
print_it_exception_catchpoint (bpstat *bs)
|
||||
{
|
||||
struct ui_out *uiout = current_uiout;
|
||||
struct breakpoint *b = bs->breakpoint_at;
|
||||
|
||||
Reference in New Issue
Block a user