This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix execution_direction's type


On 10/09/2015 04:34 PM, Pedro Alves wrote:
> 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
> 
> 2015-10-09  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.

Now pushed.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]