[1/4] No longer handle negative 'step' in 'proceed'

Message ID 1426084798-1032-2-git-send-email-palves@redhat.com
State New, archived
Headers

Commit Message

Pedro Alves March 11, 2015, 2:39 p.m. UTC
  Nothing ever passes a negative 'step' to proceed.
Gets rid of one of the few remaining stop_after_trap references.

gdb/ChangeLog
2015-03-11  Pedro Alves  <palves@redhat.com>

	* infrun.c (proceed): No longer handle negative step.
---
 gdb/infrun.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
  

Patch

diff --git a/gdb/infrun.c b/gdb/infrun.c
index 0f8f531..ed4ba79 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2588,10 +2588,8 @@  proceed (CORE_ADDR addr, enum gdb_signal siggnal, int step)
   pc = regcache_read_pc (regcache);
   tp = inferior_thread ();
 
-  if (step > 0)
+  if (step)
     step_start_function = find_pc_function (pc);
-  if (step < 0)
-    stop_after_trap = 1;
 
   /* Fill in with reasonable starting values.  */
   init_thread_stepping_state (tp);