This is the mail archive of the gdb-patches@sources.redhat.com 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: gdb/709, C++ static members


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


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