2011-05-26 Pedro Alves <pedro@codesourcery.com>

gdb/
	* inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
	* infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
	Internal error on invalid values.
	* reverse.c: Don't handle EXEC_ERROR.
	* mi/mi-main.c: Don't handle EXEC_ERROR.
This commit is contained in:
Pedro Alves 2011-05-26 18:23:32 +00:00
parent 3ddcae71bb
commit d8b344530c
5 changed files with 12 additions and 13 deletions

View file

@ -1,3 +1,11 @@
2011-05-26 Pedro Alves <pedro@codesourcery.com>
* inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
* infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
Internal error on invalid values.
* reverse.c: Don't handle EXEC_ERROR.
* mi/mi-main.c: Don't handle EXEC_ERROR.
2011-05-26 Pedro Alves <pedro@codesourcery.com>
* record.c: Include event-loop.h, inf-loop.h.

View file

@ -352,8 +352,7 @@ enum stop_kind
enum exec_direction_kind
{
EXEC_FORWARD,
EXEC_REVERSE,
EXEC_ERROR
EXEC_REVERSE
};
/* The current execution direction. This should only be set to enum

View file

@ -6920,12 +6920,10 @@ show_exec_direction_func (struct ui_file *out, int from_tty,
case EXEC_REVERSE:
fprintf_filtered (out, _("Reverse.\n"));
break;
case EXEC_ERROR:
default:
fprintf_filtered (out, _("Forward (target `%s' does not "
"support exec-direction).\n"),
target_shortname);
break;
internal_error (__FILE__, __LINE__,
_("bogus execution_direction value: %d"),
(int) execution_direction);
}
}

View file

@ -285,9 +285,6 @@ exec_reverse_continue (char **argv, int argc)
enum exec_direction_kind dir = execution_direction;
struct cleanup *old_chain;
if (dir == EXEC_ERROR)
error (_("Target %s does not support this command."), target_shortname);
if (dir == EXEC_REVERSE)
error (_("Already in reverse mode."));

View file

@ -50,9 +50,6 @@ exec_reverse_once (char *cmd, char *args, int from_tty)
enum exec_direction_kind dir = execution_direction;
struct cleanup *old_chain;
if (dir == EXEC_ERROR)
error (_("Target %s does not support this command."), target_shortname);
if (dir == EXEC_REVERSE)
error (_("Already in reverse mode. Use '%s' or 'set exec-dir forward'."),
cmd);