mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
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:
@ -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>
|
2011-05-26 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* record.c: Include event-loop.h, inf-loop.h.
|
* record.c: Include event-loop.h, inf-loop.h.
|
||||||
|
@ -352,8 +352,7 @@ enum stop_kind
|
|||||||
enum exec_direction_kind
|
enum exec_direction_kind
|
||||||
{
|
{
|
||||||
EXEC_FORWARD,
|
EXEC_FORWARD,
|
||||||
EXEC_REVERSE,
|
EXEC_REVERSE
|
||||||
EXEC_ERROR
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* The current execution direction. This should only be set to enum
|
/* The current execution direction. This should only be set to enum
|
||||||
|
@ -6920,12 +6920,10 @@ show_exec_direction_func (struct ui_file *out, int from_tty,
|
|||||||
case EXEC_REVERSE:
|
case EXEC_REVERSE:
|
||||||
fprintf_filtered (out, _("Reverse.\n"));
|
fprintf_filtered (out, _("Reverse.\n"));
|
||||||
break;
|
break;
|
||||||
case EXEC_ERROR:
|
|
||||||
default:
|
default:
|
||||||
fprintf_filtered (out, _("Forward (target `%s' does not "
|
internal_error (__FILE__, __LINE__,
|
||||||
"support exec-direction).\n"),
|
_("bogus execution_direction value: %d"),
|
||||||
target_shortname);
|
(int) execution_direction);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -285,9 +285,6 @@ exec_reverse_continue (char **argv, int argc)
|
|||||||
enum exec_direction_kind dir = execution_direction;
|
enum exec_direction_kind dir = execution_direction;
|
||||||
struct cleanup *old_chain;
|
struct cleanup *old_chain;
|
||||||
|
|
||||||
if (dir == EXEC_ERROR)
|
|
||||||
error (_("Target %s does not support this command."), target_shortname);
|
|
||||||
|
|
||||||
if (dir == EXEC_REVERSE)
|
if (dir == EXEC_REVERSE)
|
||||||
error (_("Already in reverse mode."));
|
error (_("Already in reverse mode."));
|
||||||
|
|
||||||
|
@ -50,9 +50,6 @@ exec_reverse_once (char *cmd, char *args, int from_tty)
|
|||||||
enum exec_direction_kind dir = execution_direction;
|
enum exec_direction_kind dir = execution_direction;
|
||||||
struct cleanup *old_chain;
|
struct cleanup *old_chain;
|
||||||
|
|
||||||
if (dir == EXEC_ERROR)
|
|
||||||
error (_("Target %s does not support this command."), target_shortname);
|
|
||||||
|
|
||||||
if (dir == EXEC_REVERSE)
|
if (dir == EXEC_REVERSE)
|
||||||
error (_("Already in reverse mode. Use '%s' or 'set exec-dir forward'."),
|
error (_("Already in reverse mode. Use '%s' or 'set exec-dir forward'."),
|
||||||
cmd);
|
cmd);
|
||||||
|
Reference in New Issue
Block a user