summaryrefslogtreecommitdiff
path: root/gdb/infrun.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-10-13 19:40:50 +0100
committerPedro Alves <palves@redhat.com>2015-10-13 19:40:50 +0100
commit170742de5dd5be2156f938e00e2451526ef57d5c (patch)
tree724d67ab6251af91e7f1e276fecd249b389f1450 /gdb/infrun.h
parentbfb1c7963b15b31073c9adf2d97ff1cf953ec99c (diff)
Fix execution_direction's type
This fixes a few build errors like these in C++ mode: src/gdb/reverse.c: In function ‘void exec_reverse_once(char*, char*, int)’: src/gdb/reverse.c:49:34: error: invalid conversion from ‘int’ to ‘exec_direction_kind’ [-fpermissive] enum exec_direction_kind dir = execution_direction; ^ make: *** [reverse.o] Error 1 gdb/ChangeLog: 2015-10-13 Pedro Alves <palves@redhat.com> * infrun.c (restore_execution_direction): New function. (fetch_inferior_event): Use it instead of make_cleanup_restore_integer. (execution_direction): Change type to enum exec_direction_kind. * infrun.h (execution_direction): Likewise.
Diffstat (limited to 'gdb/infrun.h')
-rw-r--r--gdb/infrun.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/infrun.h b/gdb/infrun.h
index ab27538bd3..7364065531 100644
--- a/gdb/infrun.h
+++ b/gdb/infrun.h
@@ -74,10 +74,8 @@ enum exec_direction_kind
EXEC_REVERSE
};
-/* The current execution direction. This should only be set to enum
- exec_direction_kind values. It is only an int to make it
- compatible with make_cleanup_restore_integer. */
-extern int execution_direction;
+/* The current execution direction. */
+extern enum exec_direction_kind execution_direction;
extern void start_remote (int from_tty);