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.
This commit is contained in:
Pedro Alves 2015-03-24 17:50:29 +00:00
parent ad235a410a
commit 3333f03ae1
2 changed files with 5 additions and 3 deletions

View 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.

View 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);