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>
This commit is contained in:
Tom Tromey
2022-07-25 14:06:35 -03:00
committed by Bruno Larsen
parent ba380b3e51
commit bd2b40ac12
249 changed files with 1527 additions and 1522 deletions
gdb
aarch64-fbsd-tdep.caarch64-linux-tdep.caarch64-tdep.cada-lang.cada-lang.halpha-linux-tdep.calpha-mdebug-tdep.calpha-netbsd-tdep.calpha-obsd-tdep.calpha-tdep.calpha-tdep.hamd64-darwin-tdep.camd64-fbsd-tdep.camd64-linux-tdep.camd64-netbsd-tdep.camd64-obsd-tdep.camd64-sol2-tdep.camd64-tdep.camd64-tdep.hamd64-windows-tdep.carc-linux-tdep.carc-tdep.carc-tdep.harch-utils.carch-utils.harm-fbsd-tdep.carm-linux-tdep.carm-obsd-tdep.carm-tdep.carm-tdep.harm-wince-tdep.cavr-tdep.cax-gdb.cbfin-linux-tdep.cbfin-tdep.cblockframe.cbpf-tdep.cbreak-catch-throw.cbreakpoint.cc-lang.c
cli
compile
cp-abi.ccp-abi.hcris-tdep.ccsky-linux-tdep.ccsky-tdep.cdefs.hdtrace-probe.cdummy-frame.cdummy-frame.h
dwarf2
elfread.ceval.cextension-priv.hextension.cextension.hf-valprint.cfindvar.cframe-base.cframe-base.hframe-unwind.cframe-unwind.hframe.cframe.hfrv-linux-tdep.cfrv-tdep.cft32-tdep.cgcore.cgdbarch-components.pygdbarch-gen.hgdbarch-selftests.cgdbarch.cgdbtypes.hgnu-v3-abi.c
guile
h8300-tdep.chppa-bsd-tdep.chppa-linux-tdep.chppa-netbsd-tdep.chppa-tdep.chppa-tdep.hi386-bsd-tdep.ci386-darwin-tdep.ci386-darwin-tdep.hi386-fbsd-tdep.ci386-gnu-tdep.ci386-linux-tdep.ci386-netbsd-tdep.ci386-nto-tdep.ci386-obsd-tdep.ci386-sol2-tdep.ci386-tdep.ci386-tdep.hi386-windows-tdep.ci387-tdep.ci387-tdep.hia64-libunwind-tdep.cia64-libunwind-tdep.hia64-tdep.cia64-tdep.hinfcall.cinfcmd.cinferior.hinfrun.cinfrun.hinline-frame.cinline-frame.hiq2000-tdep.cjit.clanguage.clanguage.hlm32-tdep.cloongarch-linux-tdep.cloongarch-tdep.cloongarch-tdep.hm32c-tdep.cm32r-linux-tdep.cm32r-tdep.cm68hc11-tdep.cm68k-linux-tdep.cm68k-tdep.cm68k-tdep.hmacroscope.cmep-tdep.c
mi
microblaze-linux-tdep.cmicroblaze-tdep.cminsyms.cmips-fbsd-tdep.cmips-linux-tdep.cmips-netbsd-tdep.cmips-sde-tdep.cmips-tdep.cmips-tdep.hmips64-obsd-tdep.cmn10300-linux-tdep.cmn10300-tdep.cmoxie-tdep.cmsp430-tdep.cnds32-tdep.cnios2-linux-tdep.cnios2-tdep.cnios2-tdep.hobjc-lang.cobservable.hor1k-linux-tdep.cor1k-tdep.cppc-fbsd-tdep.cppc-linux-tdep.cppc-netbsd-tdep.cppc-obsd-tdep.cppc-tdep.hppc64-tdep.cppc64-tdep.hprintcmd.cprobe.cprobe.h
python
record-btrace.criscv-fbsd-tdep.criscv-linux-tdep.criscv-tdep.criscv-tdep.hrl78-tdep.crs6000-aix-tdep.crs6000-tdep.crx-tdep.cs12z-tdep.cs390-linux-tdep.cs390-tdep.cs390-tdep.hsentinel-frame.csh-linux-tdep.csh-tdep.cskip.csol2-tdep.csol2-tdep.hsolib-svr4.csparc-linux-tdep.csparc-netbsd-tdep.csparc-obsd-tdep.csparc-sol2-tdep.csparc-tdep.csparc-tdep.hsparc64-fbsd-tdep.csparc64-linux-tdep.csparc64-netbsd-tdep.csparc64-obsd-tdep.csparc64-sol2-tdep.csparc64-tdep.csparc64-tdep.hstack.cstack.hstap-probe.cstd-regs.csymfile.hsymtab.htic6x-linux-tdep.ctic6x-tdep.ctic6x-tdep.htilegx-linux-tdep.ctilegx-tdep.ctop.ctracepoint.ctrad-frame.ctrad-frame.htramp-frame.ctramp-frame.h
tui
user-regs.cuser-regs.hv850-tdep.cvalops.cvalue.cvalue.hvarobj.cvax-tdep.cxstormy16-tdep.cxtensa-tdep.cz80-tdep.c

@ -55,7 +55,7 @@ enum inferior_call_kind
extern int emit_inferior_call_event (inferior_call_kind kind,
ptid_t thread, CORE_ADDR addr);
extern int emit_register_changed_event (struct frame_info *frame,
extern int emit_register_changed_event (frame_info_ptr frame,
int regnum);
extern int emit_memory_changed_event (CORE_ADDR addr, ssize_t len);
extern int evpy_emit_event (PyObject *event,