This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] No longer handle negative 'step' in 'proceed'


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3333f03ae1b02b321717b4bc4887201ed4fc6a26

commit 3333f03ae1b02b321717b4bc4887201ed4fc6a26
Author: Pedro Alves <palves@redhat.com>
Date:   Tue Mar 24 17:50:29 2015 +0000

    No longer handle negative 'step' in 'proceed'
    
    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.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/infrun.c  | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 62a8a44..0bb5aeb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]