diff options
author | Tom Tromey <tom@tromey.com> | 2022-07-25 14:06:35 -0300 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2022-10-10 11:57:10 +0200 |
commit | bd2b40ac129b167f1a709589dee9c009a04a6e21 (patch) | |
tree | 675eb8430a923c94353eca0ec2e7b56cfc1eae37 /gdb/gdbarch-components.py | |
parent | ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24 (diff) | |
download | gdb-bd2b40ac129b167f1a709589dee9c009a04a6e21.zip gdb-bd2b40ac129b167f1a709589dee9c009a04a6e21.tar.gz gdb-bd2b40ac129b167f1a709589dee9c009a04a6e21.tar.bz2 |
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>
Diffstat (limited to 'gdb/gdbarch-components.py')
-rw-r--r-- | gdb/gdbarch-components.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/gdbarch-components.py b/gdb/gdbarch-components.py index b8d7648..ba16f4a 100644 --- a/gdb/gdbarch-components.py +++ b/gdb/gdbarch-components.py @@ -613,7 +613,7 @@ frame. """, type="struct frame_id", name="dummy_id", - params=[("struct frame_info *", "this_frame")], + params=[("frame_info_ptr ", "this_frame")], predefault="default_dummy_id", invalid=False, ) @@ -676,7 +676,7 @@ Return true if the code of FRAME is writable. """, type="int", name="code_of_frame_writable", - params=[("struct frame_info *", "frame")], + params=[("frame_info_ptr ", "frame")], predefault="default_code_of_frame_writable", invalid=False, ) @@ -686,7 +686,7 @@ Method( name="print_registers_info", params=[ ("struct ui_file *", "file"), - ("struct frame_info *", "frame"), + ("frame_info_ptr ", "frame"), ("int", "regnum"), ("int", "all"), ], @@ -699,7 +699,7 @@ Method( name="print_float_info", params=[ ("struct ui_file *", "file"), - ("struct frame_info *", "frame"), + ("frame_info_ptr ", "frame"), ("const char *", "args"), ], predefault="default_print_float_info", @@ -711,7 +711,7 @@ Method( name="print_vector_info", params=[ ("struct ui_file *", "file"), - ("struct frame_info *", "frame"), + ("frame_info_ptr ", "frame"), ("const char *", "args"), ], predicate=True, @@ -755,7 +755,7 @@ FRAME corresponds to the longjmp frame. """, type="int", name="get_longjmp_target", - params=[("struct frame_info *", "frame"), ("CORE_ADDR *", "pc")], + params=[("frame_info_ptr ", "frame"), ("CORE_ADDR *", "pc")], predicate=True, invalid=True, ) @@ -778,7 +778,7 @@ Function( type="int", name="register_to_value", params=[ - ("struct frame_info *", "frame"), + ("frame_info_ptr ", "frame"), ("int", "regnum"), ("struct type *", "type"), ("gdb_byte *", "buf"), @@ -792,7 +792,7 @@ Function( type="void", name="value_to_register", params=[ - ("struct frame_info *", "frame"), + ("frame_info_ptr ", "frame"), ("int", "regnum"), ("struct type *", "type"), ("const gdb_byte *", "buf"), @@ -1065,7 +1065,7 @@ Value( Method( type="CORE_ADDR", name="unwind_pc", - params=[("struct frame_info *", "next_frame")], + params=[("frame_info_ptr ", "next_frame")], predefault="default_unwind_pc", invalid=False, ) @@ -1073,7 +1073,7 @@ Method( Method( type="CORE_ADDR", name="unwind_sp", - params=[("struct frame_info *", "next_frame")], + params=[("frame_info_ptr ", "next_frame")], predefault="default_unwind_sp", invalid=False, ) @@ -1085,7 +1085,7 @@ frame-base. Enable frame-base before frame-unwind. """, type="int", name="frame_num_args", - params=[("struct frame_info *", "frame")], + params=[("frame_info_ptr ", "frame")], predicate=True, invalid=True, ) @@ -1260,7 +1260,7 @@ further single-step is needed before the instruction finishes. """, type="int", name="single_step_through_delay", - params=[("struct frame_info *", "frame")], + params=[("frame_info_ptr ", "frame")], predicate=True, invalid=True, ) @@ -1280,7 +1280,7 @@ disassembler. Perhaps objdump can handle it? Function( type="CORE_ADDR", name="skip_trampoline_code", - params=[("struct frame_info *", "frame"), ("CORE_ADDR", "pc")], + params=[("frame_info_ptr ", "frame"), ("CORE_ADDR", "pc")], predefault="generic_skip_trampoline_code", invalid=False, ) @@ -1503,7 +1503,7 @@ Fetch the pointer to the ith function argument. type="CORE_ADDR", name="fetch_pointer_argument", params=[ - ("struct frame_info *", "frame"), + ("frame_info_ptr ", "frame"), ("int", "argi"), ("struct type *", "type"), ], @@ -2664,7 +2664,7 @@ Return a string containing any flags for the given PC in the given FRAME. """, type="std::string", name="get_pc_address_flags", - params=[("frame_info *", "frame"), ("CORE_ADDR", "pc")], + params=[("frame_info_ptr ", "frame"), ("CORE_ADDR", "pc")], predefault="default_get_pc_address_flags", invalid=False, ) |