Re: [RFA/stabs reader] Fix v3 duplicate constructors problem

Jason Merrill
2001-12-04T16:25:28Z

>>>>> "Michael" == Michael Snyder <msnyder@cygnus.com> writes:

> Jason Merrill wrote:

>> You can't call a constructor directly in C++; no reason to allow it from
>> GDB.

> OTOH, there are a lot of things that you can do from GDB
> that you cannot do programmatically. Accessing private data
> would be an example. Since GDB can call any other function,
> is there a strong reason why it should not be able to call
> the constructors?

Constructors and destructors have traditionally had a special calling
convention. Though I suppose that as of v3, we've gone to clones rather
than extra hidden parameters, so it would be more feasible to allow users
to call them directly from the debugger. In any case, it needs some sort
of special handling.

Jason