This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Re: Roadmap beginnings
On Mon, Jul 14, 2008 at 12:04:00PM -0600, Tom Tromey wrote:
> I thought operator overloading did not work, but a simple test case
> shows that it actually does. And, I can at least print elements of a
> std::vector<int> using "p v[3]", and "p *it" works for an iterator of
> this vector.
Yes. Operator overloading works fine, as long as the available
overloads are relatively easy to locate and distinguish. If they come
from different scopes or you start needing to make constructor calls
to convert, GDB will rapidly throw up its hands. That's where we get
into the part of the G++ front end that's been described to me as
"about 10,000 lines to get right".
GDB doesn't know how to call constructors, either - it can't do "new".
That seems like it would be a more serious limitation, but I can't
think the last time I wanted to do it. Anyway, a simple matter of
programming.
I think the discussion of GDB limitations is wandering a bit afield
for this conversation; I'll stop answering for a bit, and perhaps put
together a combined response or a wiki page with summary, later on.
--
Daniel Jacobowitz
CodeSourcery