This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] Simplify event-loop core, remove two-step event processing
- From: Pedro Alves <palves at redhat dot com>
- To: Alex Velenko <Alex dot Velenko at arm dot com>, Patrick Palka <patrick at parcs dot ath dot cx>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 04 Feb 2015 19:17:55 +0100
- Subject: Re: [PATCH 3/3] Simplify event-loop core, remove two-step event processing
- Authentication-results: sourceware.org; auth=none
- References: <1422292759-22307-1-git-send-email-palves at redhat dot com> <1422292759-22307-4-git-send-email-palves at redhat dot com> <CA+C-WL_S7MTCb5rLWbpkMbR0JMQvH98mrWD-sZ50erNhVkN6JQ at mail dot gmail dot com> <54D25832 dot 1010007 at arm dot com>
On 02/04/2015 06:34 PM, Alex Velenko wrote:
> On 03/02/15 22:48, Patrick Palka wrote:
>> This patch causes a build failure when compiling GDB with GCC 4.9:
>>
>> /home/patrick/code/binutils-gdb/gdb/event-loop.c: In function
>> ‘gdb_do_one_event’:
>> /home/patrick/code/binutils-gdb/gdb/event-loop.c:296:10: error: ‘res’
>> may be used uninitialized in this function
>> [-Werror=maybe-uninitialized]
>> if (res > 0)
>> ^
>>
>
> Hi,
> Event-loop.c "gdb_do_one_event" function did not initialize variable "res".
> This caused gdb_binutils to fail building. This patch fixes it.
Thanks! However, this fixed it for me:
https://sourceware.org/ml/gdb-patches/2015-02/msg00075.html
Can you make sure you have that in your tree?
Thanks,
Pedro Alves