From b138ce370d0b62f15547b24c5aac4a8a02af07d9 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 22 Jun 2011 10:09:22 +0000 Subject: [PATCH] gdb/ * infrun.c (handle_inferior_event): Remove write-only local variable `sw_single_step_trap_p'. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 954fb5317a2..b11442854f4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-06-22 Yao Qi + + * infrun.c (handle_inferior_event): Remove write-only local variable + `sw_single_step_trap_p'. + 2011-06-20 Tom Tromey * symtab.c (lookup_language_this): End loop if block is NULL. diff --git a/gdb/infrun.c b/gdb/infrun.c index a5dbcbd5e0d..8616f99bd46 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3090,7 +3090,6 @@ handle_inferior_event (struct execution_control_state *ecs) { struct frame_info *frame; struct gdbarch *gdbarch; - int sw_single_step_trap_p = 0; int stopped_by_watchpoint; int stepped_after_stopped_by_watchpoint = 0; struct symtab_and_line stop_pc_sal; @@ -3845,7 +3844,6 @@ handle_inferior_event (struct execution_control_state *ecs) } else if (singlestep_breakpoints_inserted_p) { - sw_single_step_trap_p = 1; ecs->random_signal = 0; } } -- 2.30.2