aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-05-26 18:23:32 +0000
committerPedro Alves <palves@redhat.com>2011-05-26 18:23:32 +0000
commitd8b344530cba74a754ec101ccdd8869b3a48ec90 (patch)
treedc20a0ff8d93fc103aeaac00750dd2441f8de255 /gdb/infrun.c
parent3ddcae71bb5390c67dcd033fdd0267b9f7aa38ad (diff)
downloadgdb-d8b344530cba74a754ec101ccdd8869b3a48ec90.zip
gdb-d8b344530cba74a754ec101ccdd8869b3a48ec90.tar.gz
gdb-d8b344530cba74a754ec101ccdd8869b3a48ec90.tar.bz2
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8502e69..46b2fe1 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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);
}
}