No longer handle negative 'step' in 'proceed'
authorPedro Alves <palves@redhat.com>
Tue, 24 Mar 2015 17:50:29 +0000 (17:50 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 24 Mar 2015 17:50:29 +0000 (17:50 +0000)
Nothing ever passes a negative 'step' to proceed.
Gets rid of one of the few remaining stop_after_trap references.

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

* infrun.c (proceed): No longer handle negative step.

gdb/ChangeLog
gdb/infrun.c

index 62a8a449d71cdf5868f13c65ff959c61b9a0f6e3..0bb5aebcd8ffc784facdc66f4a382b78882d515a 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-24  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (proceed): No longer handle negative step.
+
 2015-03-24  Gary Benson  <gbenson@redhat.com>
 
        * nat/x86-linux.h (x86_linux_new_thread): New declaration.
index 0f8f531a584b7a8e53eedabbe17536786dd234e3..ed4ba79787c41e928821f02e5872fbec663e5800 100644 (file)
@@ -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);
This page took 0.041384 seconds and 4 git commands to generate.