aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-12 22:19:02 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-12 22:19:02 +0000
commitf2c9ca0856f99aaddc3f12d8addd1d900dbea575 (patch)
treea3c91aa1d2dc4180fee2dabab692f762a861e7db /gdb/infcmd.c
parent090ddb2a8c306b210b4d085f195398105da49448 (diff)
downloadgdb-f2c9ca0856f99aaddc3f12d8addd1d900dbea575.zip
gdb-f2c9ca0856f99aaddc3f12d8addd1d900dbea575.tar.gz
gdb-f2c9ca0856f99aaddc3f12d8addd1d900dbea575.tar.bz2
2004-05-12 Andrew Cagney <cagney@redhat.com>
* thread.c (load_infrun_state): Delete step_sp. * infrun.c (context_switch): Ditto. * inferior.h (step_sp): Ditto. * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto. * gdbthread.h (struct thread_info, save_infrun_state) (restore_infrun_state): Ditto.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 0b91266..a1a8ac3 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -186,11 +186,6 @@ CORE_ADDR step_range_end; /* Exclusive */
struct frame_id step_frame_id;
-/* Our notion of the current stack pointer. */
-/* NOTE: cagney/2004-05-09: This variable is not used and should be
- garbage collected. */
-CORE_ADDR step_sp;
-
enum step_over_calls_kind step_over_calls;
/* If stepping, nonzero means step count is > 1
@@ -625,7 +620,6 @@ step_1 (int skip_subroutines, int single_inst, char *count_string)
if (!frame) /* Avoid coredump here. Why tho? */
error ("No current frame");
step_frame_id = get_frame_id (frame);
- step_sp = read_sp ();
if (!single_inst)
{
@@ -725,7 +719,6 @@ step_once (int skip_subroutines, int single_inst, int count)
if (!frame) /* Avoid coredump here. Why tho? */
error ("No current frame");
step_frame_id = get_frame_id (frame);
- step_sp = read_sp ();
if (!single_inst)
{
@@ -978,7 +971,6 @@ until_next_command (int from_tty)
step_over_calls = STEP_OVER_ALL;
step_frame_id = get_frame_id (frame);
- step_sp = read_sp ();
step_multi = 0; /* Only one call to proceed */