From bd2b40ac129b167f1a709589dee9c009a04a6e21 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 25 Jul 2022 14:06:35 -0300 Subject: 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/\ Approved-by: Tom Tomey --- gdb/rl78-tdep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/rl78-tdep.c') diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c index 1ce0435..af01747 100644 --- a/gdb/rl78-tdep.c +++ b/gdb/rl78-tdep.c @@ -1078,7 +1078,7 @@ rl78_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) /* Implement the "unwind_pc" gdbarch method. */ static CORE_ADDR -rl78_unwind_pc (struct gdbarch *arch, struct frame_info *next_frame) +rl78_unwind_pc (struct gdbarch *arch, frame_info_ptr next_frame) { return rl78_addr_bits_remove (arch, frame_unwind_register_unsigned (next_frame, @@ -1091,7 +1091,7 @@ rl78_unwind_pc (struct gdbarch *arch, struct frame_info *next_frame) return that struct as the value of this function. */ static struct rl78_prologue * -rl78_analyze_frame_prologue (struct frame_info *this_frame, +rl78_analyze_frame_prologue (frame_info_ptr this_frame, void **this_prologue_cache) { if (!*this_prologue_cache) @@ -1118,7 +1118,7 @@ rl78_analyze_frame_prologue (struct frame_info *this_frame, /* Given a frame and a prologue cache, return this frame's base. */ static CORE_ADDR -rl78_frame_base (struct frame_info *this_frame, void **this_prologue_cache) +rl78_frame_base (frame_info_ptr this_frame, void **this_prologue_cache) { struct rl78_prologue *p = rl78_analyze_frame_prologue (this_frame, this_prologue_cache); @@ -1130,7 +1130,7 @@ rl78_frame_base (struct frame_info *this_frame, void **this_prologue_cache) /* Implement the "frame_this_id" method for unwinding frames. */ static void -rl78_this_id (struct frame_info *this_frame, +rl78_this_id (frame_info_ptr this_frame, void **this_prologue_cache, struct frame_id *this_id) { *this_id = frame_id_build (rl78_frame_base (this_frame, @@ -1141,7 +1141,7 @@ rl78_this_id (struct frame_info *this_frame, /* Implement the "frame_prev_register" method for unwinding frames. */ static struct value * -rl78_prev_register (struct frame_info *this_frame, +rl78_prev_register (frame_info_ptr this_frame, void **this_prologue_cache, int regnum) { struct rl78_prologue *p @@ -1315,7 +1315,7 @@ rl78_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) /* Implement the "dummy_id" gdbarch method. */ static struct frame_id -rl78_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) +rl78_dummy_id (struct gdbarch *gdbarch, frame_info_ptr this_frame) { return frame_id_build (rl78_make_data_address -- cgit v1.1