[0/4] Remove gdbcmd.h

Message ID 20240423192327.2750109-1-simon.marchi@polymtl.ca
Headers
Series Remove gdbcmd.h |

Message

Simon Marchi April 23, 2024, 7:22 p.m. UTC
  gdbcmd.h is a remnant from the past, move all the declarations it holds
in more appropriate headers and remove it.

Simon Marchi (4):
  gdb: move execute function declarations from gdbcmd.h to top.h
  gdb: remove unused print_command_line and print_command_lines
    declarations
  gdb: move style_set_list/style_show_list declarations to
    cli/cli-style.h
  gdb: remove gdbcmd.h

 gdb/Makefile.in                     |  1 -
 gdb/aarch64-linux-nat.c             |  2 +-
 gdb/aarch64-tdep.c                  |  2 +-
 gdb/ada-lang.c                      |  2 +-
 gdb/ada-tasks.c                     |  2 +-
 gdb/agent.c                         |  2 +-
 gdb/aix-thread.c                    |  2 +-
 gdb/alpha-tdep.c                    |  2 +-
 gdb/amd64-tdep.c                    |  2 +-
 gdb/arc-tdep.c                      |  2 +-
 gdb/arch-utils.c                    |  2 +-
 gdb/arm-tdep.c                      |  2 +-
 gdb/auto-load.c                     |  1 -
 gdb/avr-tdep.c                      |  2 +-
 gdb/ax-gdb.c                        |  2 +-
 gdb/blockframe.c                    |  2 +-
 gdb/bpf-tdep.c                      |  2 +-
 gdb/break-catch-sig.c               |  2 +-
 gdb/break-catch-syscall.c           |  2 +-
 gdb/break-catch-throw.c             |  2 +-
 gdb/breakpoint.c                    |  2 +-
 gdb/bt-utils.c                      |  2 +-
 gdb/btrace.c                        |  2 +-
 gdb/charset.c                       |  2 +-
 gdb/cli/cli-cmds.c                  |  1 -
 gdb/cli/cli-logging.c               |  2 +-
 gdb/cli/cli-script.c                |  1 -
 gdb/cli/cli-style.h                 |  4 ++
 gdb/coff-pe-read.c                  |  2 +-
 gdb/compile/compile-cplus-symbols.c |  2 +-
 gdb/compile/compile-cplus-types.c   |  2 +-
 gdb/compile/compile-object-load.c   |  2 +-
 gdb/compile/compile.c               |  2 +-
 gdb/complaints.c                    |  3 +-
 gdb/completer.c                     |  2 +-
 gdb/copying.awk                     |  2 +-
 gdb/copying.c                       |  2 +-
 gdb/corefile.c                      |  2 +-
 gdb/corelow.c                       |  2 +-
 gdb/cp-abi.c                        |  2 +-
 gdb/cp-support.c                    |  2 +-
 gdb/cp-valprint.c                   |  2 +-
 gdb/cris-tdep.c                     |  2 +-
 gdb/csky-tdep.c                     |  2 +-
 gdb/darwin-nat-info.c               |  2 +-
 gdb/darwin-nat.c                    |  2 +-
 gdb/dcache.c                        |  2 +-
 gdb/disasm.c                        |  2 +-
 gdb/dummy-frame.c                   |  2 +-
 gdb/dwarf2/index-write.c            |  2 +-
 gdb/dwarf2/loc.c                    |  2 +-
 gdb/dwarf2/read.c                   |  2 +-
 gdb/event-top.c                     |  2 +-
 gdb/exec.c                          |  2 +-
 gdb/f-lang.c                        |  2 +-
 gdb/fbsd-nat.c                      |  2 +-
 gdb/filesystem.c                    |  2 +-
 gdb/findcmd.c                       |  2 +-
 gdb/fork-child.c                    |  2 +-
 gdb/frame.c                         |  2 +-
 gdb/ft32-tdep.c                     |  2 +-
 gdb/gdb-demangle.c                  |  2 +-
 gdb/gdb_bfd.c                       |  2 +-
 gdb/gdbcmd.h                        | 72 -----------------------------
 gdb/gdbtypes.c                      |  2 +-
 gdb/gnu-nat.c                       |  2 +-
 gdb/go32-nat.c                      |  2 +-
 gdb/guile/guile.c                   |  1 -
 gdb/guile/scm-auto-load.c           |  1 -
 gdb/guile/scm-breakpoint.c          |  2 +-
 gdb/guile/scm-cmd.c                 |  2 +-
 gdb/guile/scm-param.c               |  2 +-
 gdb/hppa-tdep.c                     |  2 +-
 gdb/i386-darwin-nat.c               |  2 +-
 gdb/i386-tdep.c                     |  2 +-
 gdb/infcall.c                       |  2 +-
 gdb/infcmd.c                        |  2 +-
 gdb/inferior.c                      |  2 +-
 gdb/inflow.c                        |  2 +-
 gdb/interps.c                       |  2 +-
 gdb/jit.c                           |  2 +-
 gdb/language.c                      |  2 +-
 gdb/linux-fork.c                    |  2 +-
 gdb/linux-nat.c                     |  2 +-
 gdb/linux-tdep.c                    |  2 +-
 gdb/linux-thread-db.c               |  2 +-
 gdb/m32r-tdep.c                     |  2 +-
 gdb/m68hc11-tdep.c                  |  2 +-
 gdb/machoread.c                     |  2 +-
 gdb/macrocmd.c                      |  2 +-
 gdb/maint-test-options.c            |  2 +-
 gdb/maint-test-settings.c           |  2 +-
 gdb/maint.c                         |  1 -
 gdb/memattr.c                       |  2 +-
 gdb/mep-tdep.c                      |  2 +-
 gdb/mi/mi-main.c                    |  2 +-
 gdb/microblaze-linux-tdep.c         |  2 +-
 gdb/microblaze-tdep.c               |  2 +-
 gdb/mips-linux-nat.c                |  2 +-
 gdb/mips-tdep.c                     |  2 +-
 gdb/moxie-tdep.c                    |  2 +-
 gdb/nios2-tdep.c                    |  2 +-
 gdb/objc-lang.c                     |  2 +-
 gdb/observable.c                    |  2 +-
 gdb/or1k-tdep.c                     |  2 +-
 gdb/osabi.c                         |  2 +-
 gdb/osdata.c                        |  2 +-
 gdb/p-valprint.c                    |  2 +-
 gdb/parse.c                         |  2 +-
 gdb/ppc-linux-tdep.c                |  2 +-
 gdb/printcmd.c                      |  3 +-
 gdb/proc-api.c                      |  2 +-
 gdb/procfs.c                        |  2 +-
 gdb/progspace.c                     |  2 +-
 gdb/psymtab.c                       |  2 +-
 gdb/python/py-auto-load.c           |  2 +-
 gdb/python/py-breakpoint.c          |  2 +-
 gdb/python/py-cmd.c                 |  2 +-
 gdb/python/py-function.c            |  2 +-
 gdb/python/py-param.c               |  2 +-
 gdb/python/py-record-btrace.c       |  2 +-
 gdb/python/py-unwind.c              |  2 +-
 gdb/python/python.c                 |  2 +-
 gdb/ravenscar-thread.c              |  2 +-
 gdb/record-btrace.c                 |  3 +-
 gdb/record-full.c                   |  3 +-
 gdb/record.c                        |  3 +-
 gdb/regcache-dump.c                 |  2 +-
 gdb/regcache.c                      |  1 -
 gdb/reggroups.c                     |  2 +-
 gdb/remote-fileio.c                 |  2 +-
 gdb/remote-notif.c                  |  2 +-
 gdb/remote.c                        |  2 +-
 gdb/riscv-tdep.c                    |  2 +-
 gdb/rs6000-tdep.c                   |  2 +-
 gdb/s12z-tdep.c                     |  2 +-
 gdb/s390-linux-nat.c                |  2 +-
 gdb/ser-go32.c                      |  2 +-
 gdb/ser-tcp.c                       |  2 +-
 gdb/ser-unix.c                      |  2 +-
 gdb/serial.c                        |  2 +-
 gdb/sh-tdep.c                       |  2 +-
 gdb/skip.c                          |  2 +-
 gdb/sol-thread.c                    |  2 +-
 gdb/source.c                        |  2 +-
 gdb/sparc64-tdep.c                  |  2 +-
 gdb/stack.c                         |  3 +-
 gdb/stap-probe.c                    |  2 +-
 gdb/symfile-debug.c                 |  2 +-
 gdb/symfile-mem.c                   |  2 +-
 gdb/symfile.c                       |  2 +-
 gdb/symmisc.c                       |  2 +-
 gdb/symtab.c                        |  1 -
 gdb/target-dcache.c                 |  1 -
 gdb/target-descriptions.c           |  2 +-
 gdb/target.c                        |  2 +-
 gdb/thread.c                        |  3 +-
 gdb/tic6x-tdep.c                    |  2 +-
 gdb/tilegx-tdep.c                   |  2 +-
 gdb/top.c                           | 14 +++---
 gdb/top.h                           | 24 ++++++++++
 gdb/tracepoint.c                    |  2 +-
 gdb/tui/tui-regs.c                  |  2 +-
 gdb/tui/tui-win.c                   |  1 -
 gdb/tui/tui.c                       |  2 +-
 gdb/typeprint.c                     |  2 +-
 gdb/utils.c                         |  2 +-
 gdb/valops.c                        |  2 +-
 gdb/valprint.c                      |  2 +-
 gdb/value.c                         |  2 +-
 gdb/varobj.c                        |  2 +-
 gdb/windows-nat.c                   |  2 +-
 gdb/windows-tdep.c                  |  2 +-
 gdb/x86-nat.c                       |  2 +-
 gdb/xml-support.c                   |  2 +-
 gdb/xstormy16-tdep.c                |  2 +-
 gdb/xtensa-tdep.c                   |  2 +-
 gdb/z80-tdep.c                      |  2 +-
 178 files changed, 205 insertions(+), 253 deletions(-)
 delete mode 100644 gdb/gdbcmd.h


base-commit: 3e562e4be872771fbd3fa2526a97eccb69458add
  

Comments

Tom Tromey April 25, 2024, 1:55 p.m. UTC | #1
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> gdbcmd.h is a remnant from the past, move all the declarations it holds
Simon> in more appropriate headers and remove it.

Maybe it's a leftover from the old libgdb thing.  I don't really know.
Anyway, thank you.
Approved-By: Tom Tromey <tom@tromey.com>

Tom
  
Simon Marchi April 25, 2024, 5:05 p.m. UTC | #2
On 4/25/24 9:55 AM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
> 
> Simon> gdbcmd.h is a remnant from the past, move all the declarations it holds
> Simon> in more appropriate headers and remove it.
> 
> Maybe it's a leftover from the old libgdb thing.  I don't really know.
> Anyway, thank you.
> Approved-By: Tom Tromey <tom@tromey.com>
> 
> Tom

Thanks, pushed.

Simon