This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: gdb/709, C++ static members
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: carlton at math dot stanford dot edu
- Date: Wed, 18 Sep 2002 13:55:50 -0400
- Subject: Re: PATCH: gdb/709, C++ static members
- References: <20020918154026.GA24749@nevyn.them.org>
On Wed, Sep 18, 2002 at 11:40:26AM -0400, Daniel Jacobowitz wrote:
> David, your earlier patch:
>
> * values.c (value_static_field): Treat an unresolved location the
> same as a nonexistent symbol. Fix PR gdb/635.
>
> pointed me in the right direction for this fix. As you may have pointed out
> at the time, read_var_value does basically the same thing your fix does in
> that case. It turns out that there's some other cases - this particular one
> was LOC_CONST_BYTES - where read_var_value does the right thing and
> value_static_field doesn't. So I just had value_static_field call
> read_var_value, which fixes your testcase and also a new one I'll post later
> for gdb/709.
>
> Committed, since static members are a C++ thing.
And on the branch, since it got reported in GNATS twice in one day...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer