From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18101 invoked by alias); 4 Dec 2001 16:25:27 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 18050 invoked from network); 4 Dec 2001 16:25:20 -0000 Received: from unknown (HELO localhost.localdomain) (195.224.55.237) by sources.redhat.com with SMTP; 4 Dec 2001 16:25:20 -0000 Received: (from jason@localhost) by localhost.localdomain (8.11.6/8.11.6) id fB4GPCv29293; Tue, 4 Dec 2001 16:25:12 GMT X-Authentication-Warning: localhost.localdomain: jason set sender to jason@redhat.com using -f To: Michael Snyder 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> <3C0C0A1F.E9274328@cygnus.com> From: Jason Merrill In-Reply-To: <3C0C0A1F.E9274328@cygnus.com> (Michael Snyder's message of "Mon, 03 Dec 2001 15:26:23 -0800") Date: Tue, 04 Dec 2001 08:25:00 -0000 Message-ID: User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2001-12/txt/msg00129.txt.bz2 >>>>> "Michael" == Michael Snyder 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