This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/4] No longer handle negative 'step' in 'proceed'
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 11 Mar 2015 14:39:55 +0000
- Subject: [PATCH 1/4] No longer handle negative 'step' in 'proceed'
- Authentication-results: sourceware.org; auth=none
- References: <1426084798-1032-1-git-send-email-palves at redhat dot com>
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(-)
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);
--
1.9.3