aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-01-31 10:54:09 -0500
committerSimon Marchi <simon.marchi@efficios.com>2024-01-31 16:19:29 -0500
commit9c175474a81dc6422e0a57e747bf9dfbacf8270d (patch)
tree0b3f0e42a1db43b158590cdd3cdf8922715e1481
parent249e54204b13f9acdd5fbca355fed305e8595f31 (diff)
downloadgdb-9c175474a81dc6422e0a57e747bf9dfbacf8270d.zip
gdb-9c175474a81dc6422e0a57e747bf9dfbacf8270d.tar.gz
gdb-9c175474a81dc6422e0a57e747bf9dfbacf8270d.tar.bz2
gdb: remove some unnecessary frame_info_ptr resets
This code was probably needed before we had reinflatable frame_info_ptrs, it's not necessary anymore. Change-Id: I5474c6081ee1e39624c9266b05dbe01351a130b5 Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdb/arm-linux-tdep.c3
-rw-r--r--gdb/elfread.c2
-rw-r--r--gdb/infcall.c3
-rw-r--r--gdb/infcmd.c3
-rw-r--r--gdb/infrun.c3
-rw-r--r--gdb/stack.c3
6 files changed, 0 insertions, 17 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 97debab..b559de0 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -1047,9 +1047,6 @@ arm_linux_copy_svc (struct gdbarch *gdbarch, struct regcache *regs,
= set_momentary_breakpoint (gdbarch, sal, get_frame_id (frame),
bp_step_resume).release ();
- /* set_momentary_breakpoint invalidates FRAME. */
- frame = NULL;
-
/* We need to make sure we actually insert the momentary
breakpoint set above. */
insert_breakpoints ();
diff --git a/gdb/elfread.c b/gdb/elfread.c
index eca2700..e8a0c4d 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -989,8 +989,6 @@ elf_gnu_ifunc_resolver_stop (code_breakpoint *b)
prev_frame_id,
bp_gnu_ifunc_resolver_return).release ();
- /* set_momentary_breakpoint invalidates PREV_FRAME. */
- prev_frame = NULL;
/* Add new b_return to the ring list b->related_breakpoint. */
gdb_assert (b_return->related_breakpoint == b_return);
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 4079f9e..145ce25 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1300,9 +1300,6 @@ call_function_by_hand_dummy (struct value *function,
= set_momentary_breakpoint (gdbarch, sal,
dummy_id, bp_call_dummy).release ();
- /* set_momentary_breakpoint invalidates FRAME. */
- frame = NULL;
-
bpt->disposition = disp_del;
gdb_assert (bpt->related_breakpoint == bpt);
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 5e5f750..54063b3 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1757,9 +1757,6 @@ finish_forward (struct finish_command_fsm *sm, frame_info_ptr frame)
get_stack_frame_id (frame),
bp_finish);
- /* set_momentary_breakpoint invalidates FRAME. */
- frame = nullptr;
-
set_longjmp_breakpoint (tp, frame_id);
/* We want to print return value, please... */
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8ccaf33..87965fb 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -8848,9 +8848,6 @@ insert_exception_resume_breakpoint (struct thread_info *tp,
handler,
bp_exception_resume).release ();
- /* set_momentary_breakpoint_at_pc invalidates FRAME. */
- frame = nullptr;
-
tp->control.exception_resume_breakpoint = bp;
}
}
diff --git a/gdb/stack.c b/gdb/stack.c
index bf31583..e444242 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2307,9 +2307,6 @@ print_variable_and_value_data::operator() (const char *print_name,
print_variable_and_value (print_name, sym, frame, stream, num_tabs);
- /* print_variable_and_value invalidates FRAME. */
- frame = NULL;
-
values_printed = 1;
}