This is the mail archive of the gdb-patches@sourceware.org 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: [RFA] Patch to limit field name completion candidates


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Daniel> You don't recurse into base classes... for C++ this is
Daniel> obviously a substantial problem.

Thanks -- I will look at this.

Daniel> Then there's the additional question of dynamic type.

I did think about this one, but forgot to mention it.

I don't see a good way to make it work in general.  It could be made
to work sometimes, but not always.  In particular I think we could add
a "don't evaluate side effects" mode to expression evaluation -- this
would do an ok job except for the case of an expression involving an
inferior function call.  In that case I think we could still only use
the static type.

Tom


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