This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix execution_direction's type
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Tue, 13 Oct 2015 19:44:22 +0100
- Subject: Re: [PATCH] Fix execution_direction's type
- Authentication-results: sourceware.org; auth=none
- References: <1444404887-10192-1-git-send-email-palves at redhat dot com>
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