From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31359 invoked by alias); 3 Dec 2001 23:25:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31303 invoked from network); 3 Dec 2001 23:25:24 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 3 Dec 2001 23:25:24 -0000 Received: from cygnus.com (taarna.cygnus.com [205.180.230.102]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id PAA20747; Mon, 3 Dec 2001 15:25:21 -0800 (PST) Message-ID: <3C0C0A1F.E9274328@cygnus.com> Date: Mon, 03 Dec 2001 15:25:00 -0000 From: Michael Snyder Organization: Red Hat X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jason Merrill CC: gdb-patches@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: [RFA/stabs reader] Fix v3 duplicate constructors problem References: <20011203154836.A28821@nevyn.them.org> <20011203172931.A2512@nevyn.them.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00071.txt.bz2 Jason Merrill wrote: > > >>>>> "Daniel" == Daniel Jacobowitz writes: > > >> What does GDB actually use the member function information for? What > >> impact would this change have, other than the output of ptype? > > > Right now, the big thing is probably member function calls. If the > > constructor is called from GDB, we want to get the complete object > > constructor. I'm not 100% sure this is even possible, though. > > 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? If constructors are a special case type of function which GDB cannot call, we ought to document that fact.