Fix execution_direction's type
authorPedro Alves <palves@redhat.com>
Tue, 13 Oct 2015 18:40:50 +0000 (19:40 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 13 Oct 2015 18:40:50 +0000 (19:40 +0100)
commit170742de5dd5be2156f938e00e2451526ef57d5c
tree724d67ab6251af91e7f1e276fecd249b389f1450
parentbfb1c7963b15b31073c9adf2d97ff1cf953ec99c
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.
gdb/ChangeLog
gdb/infrun.c
gdb/infrun.h
This page took 0.026819 seconds and 4 git commands to generate.