]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/breakpoint.c
gdb: remove bpstat typedef, rename bpstats to bpstat
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 5 Nov 2021 19:29:20 +0000 (15:29 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 8 Nov 2021 21:39:14 +0000 (16:39 -0500)
commit313f3b21cbcd3475c2fc6030abb26e6c8346d03b
treebe75de561691f60bc061a6711805a57db50ecbe0
parent9be90c6894a208b32ed7237d4b31ecf9afb1ec8a
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
23 files changed:
gdb/ada-lang.c
gdb/ada-tasks.c
gdb/break-catch-sig.c
gdb/break-catch-syscall.c
gdb/break-catch-throw.c
gdb/breakpoint.c
gdb/breakpoint.h
gdb/cli/cli-interp.c
gdb/gdbthread.h
gdb/infcmd.c
gdb/infrun.c
gdb/inline-frame.c
gdb/inline-frame.h
gdb/mi/mi-interp.c
gdb/observable.h
gdb/python/py-finishbreakpoint.c
gdb/python/py-inferior.c
gdb/python/py-stopevent.c
gdb/python/py-stopevent.h
gdb/python/python-internal.h
gdb/solib-aix.c
gdb/tui/tui-hooks.c
gdb/tui/tui-interp.c