+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.
enum exec_direction_kind
{
EXEC_FORWARD,
- EXEC_REVERSE,
- EXEC_ERROR
+ EXEC_REVERSE
};
/* The current execution direction. This should only be set to enum
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);
}
}
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."));
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);