binutils-gdb/gdb/mi
Pedro Alves 74421c0bc8 Rename base_breakpoint -> code_breakpoint
Even after the previous patches reworking the inheritance of several
breakpoint types, the present breakpoint hierarchy looks a bit
surprising, as we have "breakpoint" as the superclass, and then
"base_breakpoint" inherits from "breakpoint".  Like so, simplified:

   breakpoint
       base_breakpoint
          ordinary_breakpoint
	  internal_breakpoint
	  momentary_breakpoint
	  ada_catchpoint
	  exception_catchpoint
       tracepoint
       watchpoint
       catchpoint
	  exec_catchpoint
	  ...

The surprising part to me is having "base_breakpoint" being a subclass
of "breakpoint".  I'm just refering to naming here -- I mean, you'd
expect that it would be the top level baseclass that would be called
"base".

Just flipping the names of breakpoint and base_breakpoint around
wouldn't be super great for us, IMO, given we think of every type of
*point as a breakpoint at the user visible level.  E.g., "info
breakpoints" shows watchpoints, tracepoints, etc.  So it makes to call
the top level class breakpoint.

Instead, I propose renaming base_breakpoint to code_breakpoint.  The
previous patches made sure that all code breakpoints inherit from
base_breakpoint, so it's fitting.  Also, "code breakpoint" contrasts
nicely with a watchpoint also being typically known as a "data
breakpoint".

After this commit, the resulting hierarchy looks like:

   breakpoint
       code_breakpoint
          ordinary_breakpoint
	  internal_breakpoint
	  momentary_breakpoint
	  ada_catchpoint
	  exception_catchpoint
       tracepoint
       watchpoint
       catchpoint
	  exec_catchpoint
	  ...

... which makes a lot more sense to me.

I've left this patch as last in the series in case people want to
bikeshed on the naming.

"code" has a nice property that it's exactly as many letters as
"base", so this patch didn't require any reindentation.  :-)

Change-Id: Id8dc06683a69fad80d88e674f65e826d6a4e3f66
2022-05-20 20:41:02 +01:00
..
ChangeLog-1999-2003
mi-cmd-break.c Rename base_breakpoint -> code_breakpoint 2022-05-20 20:41:02 +01:00
mi-cmd-break.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-cmd-catch.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-cmd-disas.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-cmd-env.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-cmd-file.c gdb: remove SYMTAB_COMPUNIT macro, add getter/setter 2022-02-06 15:48:19 -05:00
mi-cmd-info.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-cmd-stack.c gdb: remove BLOCK_SUPERBLOCK macro 2022-04-27 22:05:03 -04:00
mi-cmd-target.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-cmd-var.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
mi-cmds.c gdb/python: remove gdb._mi_commands dict 2022-03-18 20:29:57 -04:00
mi-cmds.h gdb/python: remove gdb._mi_commands dict 2022-03-18 20:29:57 -04:00
mi-common.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-common.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-console.c Unify gdb putc functions 2022-03-29 12:46:24 -06:00
mi-console.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-getopt.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-getopt.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-interp.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
mi-interp.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-main.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
mi-main.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-out.c Unify gdb printf functions 2022-03-29 12:46:24 -06:00
mi-out.h Convert wrap_here to use integer parameter 2022-01-26 15:19:13 -07:00
mi-parse.c Remove host_hex_value 2022-02-04 07:37:22 -07:00
mi-parse.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mi-symbol-cmds.c Replace symbol_symtab with symbol::symtab 2022-04-20 09:28:40 -06:00