Change GDB to use frame_info_ptr
authorTom Tromey <tom@tromey.com>
Mon, 25 Jul 2022 17:06:35 +0000 (14:06 -0300)
committerBruno Larsen <blarsen@redhat.com>
Mon, 10 Oct 2022 09:57:10 +0000 (11:57 +0200)
commitbd2b40ac129b167f1a709589dee9c009a04a6e21
tree675eb8430a923c94353eca0ec2e7b56cfc1eae37
parentba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24
Change GDB to use frame_info_ptr

This changes GDB to use frame_info_ptr instead of frame_info *
The substitution was done with multiple sequential `sed` commands:

sed 's/^struct frame_info;/class frame_info_ptr;/'
sed 's/struct frame_info \*/frame_info_ptr /g' - which left some
    issues in a few files, that were manually fixed.
sed 's/\<frame_info \*/frame_info_ptr /g'
sed 's/frame_info_ptr $/frame_info_ptr/g' - used to remove whitespace
    problems.

The changed files were then manually checked and some 'sed' changes
undone, some constructors and some gets were added, according to what
made sense, and what Tromey originally did

Co-Authored-By: Bruno Larsen <blarsen@redhat.com>
Approved-by: Tom Tomey <tom@tromey.com>
249 files changed:
gdb/aarch64-fbsd-tdep.c
gdb/aarch64-linux-tdep.c
gdb/aarch64-tdep.c
gdb/ada-lang.c
gdb/ada-lang.h
gdb/alpha-linux-tdep.c
gdb/alpha-mdebug-tdep.c
gdb/alpha-netbsd-tdep.c
gdb/alpha-obsd-tdep.c
gdb/alpha-tdep.c
gdb/alpha-tdep.h
gdb/amd64-darwin-tdep.c
gdb/amd64-fbsd-tdep.c
gdb/amd64-linux-tdep.c
gdb/amd64-netbsd-tdep.c
gdb/amd64-obsd-tdep.c
gdb/amd64-sol2-tdep.c
gdb/amd64-tdep.c
gdb/amd64-tdep.h
gdb/amd64-windows-tdep.c
gdb/arc-linux-tdep.c
gdb/arc-tdep.c
gdb/arc-tdep.h
gdb/arch-utils.c
gdb/arch-utils.h
gdb/arm-fbsd-tdep.c
gdb/arm-linux-tdep.c
gdb/arm-obsd-tdep.c
gdb/arm-tdep.c
gdb/arm-tdep.h
gdb/arm-wince-tdep.c
gdb/avr-tdep.c
gdb/ax-gdb.c
gdb/bfin-linux-tdep.c
gdb/bfin-tdep.c
gdb/blockframe.c
gdb/bpf-tdep.c
gdb/break-catch-throw.c
gdb/breakpoint.c
gdb/c-lang.c
gdb/cli/cli-cmds.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-cplus-symbols.c
gdb/compile/compile-loc2c.c
gdb/cp-abi.c
gdb/cp-abi.h
gdb/cris-tdep.c
gdb/csky-linux-tdep.c
gdb/csky-tdep.c
gdb/defs.h
gdb/dtrace-probe.c
gdb/dummy-frame.c
gdb/dummy-frame.h
gdb/dwarf2/expr.c
gdb/dwarf2/expr.h
gdb/dwarf2/frame-tailcall.c
gdb/dwarf2/frame-tailcall.h
gdb/dwarf2/frame.c
gdb/dwarf2/frame.h
gdb/dwarf2/loc.c
gdb/dwarf2/loc.h
gdb/elfread.c
gdb/eval.c
gdb/extension-priv.h
gdb/extension.c
gdb/extension.h
gdb/f-valprint.c
gdb/findvar.c
gdb/frame-base.c
gdb/frame-base.h
gdb/frame-unwind.c
gdb/frame-unwind.h
gdb/frame.c
gdb/frame.h
gdb/frv-linux-tdep.c
gdb/frv-tdep.c
gdb/ft32-tdep.c
gdb/gcore.c
gdb/gdbarch-components.py
gdb/gdbarch-gen.h
gdb/gdbarch-selftests.c
gdb/gdbarch.c
gdb/gdbtypes.h
gdb/gnu-v3-abi.c
gdb/guile/scm-frame.c
gdb/h8300-tdep.c
gdb/hppa-bsd-tdep.c
gdb/hppa-linux-tdep.c
gdb/hppa-netbsd-tdep.c
gdb/hppa-tdep.c
gdb/hppa-tdep.h
gdb/i386-bsd-tdep.c
gdb/i386-darwin-tdep.c
gdb/i386-darwin-tdep.h
gdb/i386-fbsd-tdep.c
gdb/i386-gnu-tdep.c
gdb/i386-linux-tdep.c
gdb/i386-netbsd-tdep.c
gdb/i386-nto-tdep.c
gdb/i386-obsd-tdep.c
gdb/i386-sol2-tdep.c
gdb/i386-tdep.c
gdb/i386-tdep.h
gdb/i386-windows-tdep.c
gdb/i387-tdep.c
gdb/i387-tdep.h
gdb/ia64-libunwind-tdep.c
gdb/ia64-libunwind-tdep.h
gdb/ia64-tdep.c
gdb/ia64-tdep.h
gdb/infcall.c
gdb/infcmd.c
gdb/inferior.h
gdb/infrun.c
gdb/infrun.h
gdb/inline-frame.c
gdb/inline-frame.h
gdb/iq2000-tdep.c
gdb/jit.c
gdb/language.c
gdb/language.h
gdb/lm32-tdep.c
gdb/loongarch-linux-tdep.c
gdb/loongarch-tdep.c
gdb/loongarch-tdep.h
gdb/m32c-tdep.c
gdb/m32r-linux-tdep.c
gdb/m32r-tdep.c
gdb/m68hc11-tdep.c
gdb/m68k-linux-tdep.c
gdb/m68k-tdep.c
gdb/m68k-tdep.h
gdb/macroscope.c
gdb/mep-tdep.c
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-main.c
gdb/microblaze-linux-tdep.c
gdb/microblaze-tdep.c
gdb/minsyms.c
gdb/mips-fbsd-tdep.c
gdb/mips-linux-tdep.c
gdb/mips-netbsd-tdep.c
gdb/mips-sde-tdep.c
gdb/mips-tdep.c
gdb/mips-tdep.h
gdb/mips64-obsd-tdep.c
gdb/mn10300-linux-tdep.c
gdb/mn10300-tdep.c
gdb/moxie-tdep.c
gdb/msp430-tdep.c
gdb/nds32-tdep.c
gdb/nios2-linux-tdep.c
gdb/nios2-tdep.c
gdb/nios2-tdep.h
gdb/objc-lang.c
gdb/observable.h
gdb/or1k-linux-tdep.c
gdb/or1k-tdep.c
gdb/ppc-fbsd-tdep.c
gdb/ppc-linux-tdep.c
gdb/ppc-netbsd-tdep.c
gdb/ppc-obsd-tdep.c
gdb/ppc-tdep.h
gdb/ppc64-tdep.c
gdb/ppc64-tdep.h
gdb/printcmd.c
gdb/probe.c
gdb/probe.h
gdb/python/py-event.h
gdb/python/py-finishbreakpoint.c
gdb/python/py-frame.c
gdb/python/py-framefilter.c
gdb/python/py-inferior.c
gdb/python/py-infevents.c
gdb/python/py-symbol.c
gdb/python/py-unwind.c
gdb/python/python-internal.h
gdb/record-btrace.c
gdb/riscv-fbsd-tdep.c
gdb/riscv-linux-tdep.c
gdb/riscv-tdep.c
gdb/riscv-tdep.h
gdb/rl78-tdep.c
gdb/rs6000-aix-tdep.c
gdb/rs6000-tdep.c
gdb/rx-tdep.c
gdb/s12z-tdep.c
gdb/s390-linux-tdep.c
gdb/s390-tdep.c
gdb/s390-tdep.h
gdb/sentinel-frame.c
gdb/sh-linux-tdep.c
gdb/sh-tdep.c
gdb/skip.c
gdb/sol2-tdep.c
gdb/sol2-tdep.h
gdb/solib-svr4.c
gdb/sparc-linux-tdep.c
gdb/sparc-netbsd-tdep.c
gdb/sparc-obsd-tdep.c
gdb/sparc-sol2-tdep.c
gdb/sparc-tdep.c
gdb/sparc-tdep.h
gdb/sparc64-fbsd-tdep.c
gdb/sparc64-linux-tdep.c
gdb/sparc64-netbsd-tdep.c
gdb/sparc64-obsd-tdep.c
gdb/sparc64-sol2-tdep.c
gdb/sparc64-tdep.c
gdb/sparc64-tdep.h
gdb/stack.c
gdb/stack.h
gdb/stap-probe.c
gdb/std-regs.c
gdb/symfile.h
gdb/symtab.h
gdb/tic6x-linux-tdep.c
gdb/tic6x-tdep.c
gdb/tic6x-tdep.h
gdb/tilegx-linux-tdep.c
gdb/tilegx-tdep.c
gdb/top.c
gdb/tracepoint.c
gdb/trad-frame.c
gdb/trad-frame.h
gdb/tramp-frame.c
gdb/tramp-frame.h
gdb/tui/tui-disasm.c
gdb/tui/tui-disasm.h
gdb/tui/tui-hooks.c
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h
gdb/tui/tui-source.c
gdb/tui/tui-source.h
gdb/tui/tui-stack.c
gdb/tui/tui-stack.h
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h
gdb/user-regs.c
gdb/user-regs.h
gdb/v850-tdep.c
gdb/valops.c
gdb/value.c
gdb/value.h
gdb/varobj.c
gdb/vax-tdep.c
gdb/xstormy16-tdep.c
gdb/xtensa-tdep.c
gdb/z80-tdep.c