[1/4] No longer handle negative 'step' in 'proceed'
Commit Message
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(-)
@@ -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);