diff options
author | Pedro Alves <palves@redhat.com> | 2015-10-13 19:40:50 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-10-13 19:40:50 +0100 |
commit | 170742de5dd5be2156f938e00e2451526ef57d5c (patch) | |
tree | 724d67ab6251af91e7f1e276fecd249b389f1450 /gdb/infrun.h | |
parent | bfb1c7963b15b31073c9adf2d97ff1cf953ec99c (diff) | |
download | gdb-170742de5dd5be2156f938e00e2451526ef57d5c.zip gdb-170742de5dd5be2156f938e00e2451526ef57d5c.tar.gz gdb-170742de5dd5be2156f938e00e2451526ef57d5c.tar.bz2 |
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.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/infrun.h b/gdb/infrun.h index ab27538..7364065 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); |