aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}