From: Yao Qi <yao@codesourcery.com>
To: asmwarrior <asmwarrior@gmail.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [msys+mingw] build error [-Werror=uninitialized]
Date: Fri, 16 Mar 2012 07:45:00 -0000 [thread overview]
Message-ID: <4F62EF65.1030203@codesourcery.com> (raw)
In-Reply-To: <4F62EC5C.1050609@gmail.com>
On 03/16/2012 03:31 PM, asmwarrior wrote:
> TRY_CATCH (ex, RETURN_MASK_ERROR)
> {
> addr = value_as_address (vfn);
> }
> Which means addr is set before passed to print_function_pointer_address() call.
>
> So I'm not sure why gcc report such warning.
No idea on this. Patch below fixes the problem on my box.
--
Yao (é½å°§)
2012-03-16 Yao Qi <yao@codesourcery.com>
index 0ba6ab5..5bfabe3 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -870,7 +870,7 @@ print_one_vtable (struct gdbarch *gdbarch, struct
value *value,
for (i = 0; i <= max_voffset; ++i)
{
struct value *vfn;
- CORE_ADDR addr;
+ CORE_ADDR addr = 0;
volatile struct gdb_exception ex;
printf_filtered ("[%d]: ", i);
next prev parent reply other threads:[~2012-03-16 7:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 1:56 asmwarrior
2012-03-16 7:26 ` Yao Qi
2012-03-16 7:31 ` asmwarrior
2012-03-16 7:45 ` Yao Qi [this message]
2012-03-16 8:19 ` [commit] " Jan Kratochvil
2012-03-16 8:23 ` asmwarrior
2012-03-16 14:09 ` asmwarrior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F62EF65.1030203@codesourcery.com \
--to=yao@codesourcery.com \
--cc=asmwarrior@gmail.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox