mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-19 17:24:14 +08: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:
@ -74,7 +74,7 @@ static const struct inferior_data *infpy_inf_data_key;
|
||||
} while (0)
|
||||
|
||||
static void
|
||||
python_on_normal_stop (struct bpstats *bs, int print_frame)
|
||||
python_on_normal_stop (struct bpstat *bs, int print_frame)
|
||||
{
|
||||
enum gdb_signal stop_signal;
|
||||
|
||||
|
Reference in New Issue
Block a user